ryugi-artifacts 1.15.1 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/dist/cli.cjs +48 -15
  2. package/dist/server.cjs +572 -252
  3. package/dist/viewer/CloudDocument-CM9pTTjC.js +1 -0
  4. package/dist/viewer/CloudLiveDocument-DGNdJWbj.js +1 -0
  5. package/dist/viewer/{DocumentLayout-BDQ2bRgn.js → DocumentLayout-BMPgq8pc.js} +157 -157
  6. package/dist/viewer/DocumentPage-g1CqDkue.js +1 -0
  7. package/dist/viewer/{abnfDiagram-VCTEODGH-DXcz0DY8.js → abnfDiagram-VCTEODGH-R_qwpGkI.js} +1 -1
  8. package/dist/viewer/{ar-SA-G6X2FPQ2-DaFICdeh.js → ar-SA-G6X2FPQ2-CQRrwr6s.js} +1 -1
  9. package/dist/viewer/{architectureDiagram-5GKGNRK7-7HwBC9Wz.js → architectureDiagram-5GKGNRK7-B-nxVlz4.js} +1 -1
  10. package/dist/viewer/{az-AZ-76LH7QW2-ro71YLew.js → az-AZ-76LH7QW2-BSmwjSSb.js} +1 -1
  11. package/dist/viewer/{bg-BG-XCXSNQG7-BBql1i2c.js → bg-BG-XCXSNQG7--cdnQcg0.js} +1 -1
  12. package/dist/viewer/{blockDiagram-I7D4REHJ-DN6_CCIZ.js → blockDiagram-I7D4REHJ-C0OuOJoH.js} +1 -1
  13. package/dist/viewer/{bn-BD-2XOGV67Q-D0nEk_sk.js → bn-BD-2XOGV67Q-1ryNaFLF.js} +1 -1
  14. package/dist/viewer/{c4Diagram-7LVT6UL2-BiKuFZ_0.js → c4Diagram-7LVT6UL2-DZkEOB1y.js} +1 -1
  15. package/dist/viewer/{ca-ES-6MX7JW3Y-BzXg8v5p.js → ca-ES-6MX7JW3Y-VdWP3ryz.js} +1 -1
  16. package/dist/viewer/{chunk-4HAMMTFA-D8wduydj.js → chunk-4HAMMTFA-VNoPgKvb.js} +1 -1
  17. package/dist/viewer/{chunk-EIO257PC-KVQLe9-1.js → chunk-EIO257PC-CZIhLO_W.js} +1 -1
  18. package/dist/viewer/{chunk-GMAD6QVW-BPxTHMTi.js → chunk-GMAD6QVW-CqoLeHeY.js} +1 -1
  19. package/dist/viewer/{chunk-GVQU2GXP-C5_2EAAn.js → chunk-GVQU2GXP-CQg0Jmx3.js} +1 -1
  20. package/dist/viewer/{chunk-IMKFNOWR-CoST25Zy.js → chunk-IMKFNOWR-DXIxj3u0.js} +1 -1
  21. package/dist/viewer/{chunk-L3NEJ4N5-DqtaXAcI.js → chunk-L3NEJ4N5-x6DZXmqs.js} +1 -1
  22. package/dist/viewer/{chunk-OSK3NFVY-DacvL7tA.js → chunk-OSK3NFVY-CPGpRAxP.js} +1 -1
  23. package/dist/viewer/{chunk-PWAF6VOD-Cxj_hOdt.js → chunk-PWAF6VOD-B4vVusV7.js} +1 -1
  24. package/dist/viewer/{chunk-SHT3W25Y-D9pKJ6Au.js → chunk-SHT3W25Y-D1zbaWDs.js} +1 -1
  25. package/dist/viewer/{chunk-SVP7TREG-svneeNVA.js → chunk-SVP7TREG-BWLqA0kk.js} +1 -1
  26. package/dist/viewer/{chunk-TICWLB2K-xfr9ROyW.js → chunk-TICWLB2K-D8K_a2Dt.js} +1 -1
  27. package/dist/viewer/{classDiagram-ZZMXUADV-lu71gUXJ.js → classDiagram-ZZMXUADV-Ck-ZG83x.js} +1 -1
  28. package/dist/viewer/{classDiagram-v2-VYDZK3BY-lu71gUXJ.js → classDiagram-v2-VYDZK3BY-Ck-ZG83x.js} +1 -1
  29. package/dist/viewer/{cs-CZ-2BRQDIVT-bwZx9UIu.js → cs-CZ-2BRQDIVT-CgQlVQeV.js} +1 -1
  30. package/dist/viewer/{cynefinDiagram-5FMLGOSQ-DlNaJbj_.js → cynefinDiagram-5FMLGOSQ-Dm5JUsZt.js} +1 -1
  31. package/dist/viewer/{da-DK-5WZEPLOC-BApDVcwE.js → da-DK-5WZEPLOC-BgjfHXZN.js} +1 -1
  32. package/dist/viewer/{dagre-GXQ25YYZ-DWu2Ycc5.js → dagre-GXQ25YYZ-C4a96VLk.js} +1 -1
  33. package/dist/viewer/{de-DE-XR44H4JA-COcHc6Zt.js → de-DE-XR44H4JA-DX-3RcAq.js} +1 -1
  34. package/dist/viewer/{diagram-S7CK7UJ4-D8VO7YKc.js → diagram-S7CK7UJ4-PaaBHmBV.js} +1 -1
  35. package/dist/viewer/{diagram-UQ7AKVKN-D5OcQNY9.js → diagram-UQ7AKVKN-CFIzU-ol.js} +1 -1
  36. package/dist/viewer/{diagram-VX7I27RA-DRHmiAWI.js → diagram-VX7I27RA-CbcVVLx5.js} +1 -1
  37. package/dist/viewer/{diagram-Z3DM3KII-ClXzWLem.js → diagram-Z3DM3KII-2bnKxhw3.js} +1 -1
  38. package/dist/viewer/{dist-BuKe8NdN.js → dist-BB8Cm8p1.js} +1 -1
  39. package/dist/viewer/dist-BGDD3Qfs.js +1 -0
  40. package/dist/viewer/{dist-M7Lz5R2v.js → dist-BNUmLPG3.js} +1 -1
  41. package/dist/viewer/{dist-TX5rYYGW.js → dist-ByHcWAsz.js} +4 -4
  42. package/dist/viewer/{dist-G2JHMLgK.js → dist-C84cxxJs.js} +1 -1
  43. package/dist/viewer/{dist-q1jFGEbP.js → dist-C85UfTX9.js} +1 -1
  44. package/dist/viewer/{dist-BKtxxS1a.js → dist-CAYAG4sb.js} +1 -1
  45. package/dist/viewer/{dist-DLh5uREE.js → dist-CHo5vjEE.js} +1 -1
  46. package/dist/viewer/{dist-CFkCXjQP.js → dist-CPsNYKE1.js} +1 -1
  47. package/dist/viewer/dist-CbM-kcUd.js +6 -0
  48. package/dist/viewer/{dist-C_NwF-ep.js → dist-Cifjyebz.js} +9 -9
  49. package/dist/viewer/{dist-Bgijnk4D.js → dist-Cmmhn-X1.js} +1 -1
  50. package/dist/viewer/dist-DA1ZUPA2.js +1 -0
  51. package/dist/viewer/{dist-DlANbAUX.js → dist-DOIJJqiU.js} +1 -1
  52. package/dist/viewer/{dist-CByD4sdq.js → dist-DYmYmDEo.js} +1 -1
  53. package/dist/viewer/{dist-rgdCugHI.js → dist-DdnIT8Pk.js} +1 -1
  54. package/dist/viewer/{dist-mDWB-P3S.js → dist-DfU4jTpk.js} +1 -1
  55. package/dist/viewer/{dist-DB3o8dUU.js → dist-DuNQu2Qs.js} +1 -1
  56. package/dist/viewer/dist-DyvqUJBr.js +1 -0
  57. package/dist/viewer/{dist-CV7QdHTq.js → dist-Dz0HV18p.js} +1 -1
  58. package/dist/viewer/{dist-DzBPEHnz.js → dist-KZU_4K7q.js} +5 -5
  59. package/dist/viewer/dist-LjHj6cw9.js +9 -0
  60. package/dist/viewer/{dist-a8BuHhYq.js → dist-Saw8jlKm.js} +1 -1
  61. package/dist/viewer/{dist-DfWxOyg4.js → dist-all60C8n.js} +2 -2
  62. package/dist/viewer/{ebnfDiagram-PWID7BFC-BOzsyHEk.js → ebnfDiagram-PWID7BFC-BElETRrd.js} +1 -1
  63. package/dist/viewer/{el-GR-BZB4AONW-h1eLQlP7.js → el-GR-BZB4AONW-CCgkhpuC.js} +1 -1
  64. package/dist/viewer/{en-B4ZKOASM-EdleGu9D.js → en-B4ZKOASM-CkNYcd6h.js} +1 -1
  65. package/dist/viewer/{erDiagram-RLTQ6QDP-BF_tpcM3.js → erDiagram-RLTQ6QDP-BvirYYn6.js} +1 -1
  66. package/dist/viewer/{es-ES-U4NZUMDT-DeaeHEK9.js → es-ES-U4NZUMDT-CHGDrG6V.js} +1 -1
  67. package/dist/viewer/{eu-ES-A7QVB2H4-BzoRNYbw.js → eu-ES-A7QVB2H4-CJvnBnSO.js} +1 -1
  68. package/dist/viewer/{fa-IR-HGAKTJCU-fXYoNuWo.js → fa-IR-HGAKTJCU-DOhVqJIY.js} +1 -1
  69. package/dist/viewer/{fi-FI-Z5N7JZ37-CTVEZXqM.js → fi-FI-Z5N7JZ37-KtjD042q.js} +1 -1
  70. package/dist/viewer/flowDiagram-HODETNUW-B9qTl1Fa.js +1 -0
  71. package/dist/viewer/{fr-FR-RHASNOE6-BizkpgaG.js → fr-FR-RHASNOE6-Fhuh4xKm.js} +1 -1
  72. package/dist/viewer/ganttDiagram-EL5Y4UJY-vMMpYRDJ.js +292 -0
  73. package/dist/viewer/{gl-ES-HMX3MZ6V-rsfHb2R9.js → gl-ES-HMX3MZ6V-GaQgPV8F.js} +1 -1
  74. package/dist/viewer/{he-IL-6SHJWFNN-BmWEwAWC.js → he-IL-6SHJWFNN-DHPr7Ged.js} +1 -1
  75. package/dist/viewer/{hi-IN-IWLTKZ5I-gzYZTFIt.js → hi-IN-IWLTKZ5I-d4wZNnj5.js} +1 -1
  76. package/dist/viewer/{hu-HU-A5ZG7DT2-DqXGHJ4g.js → hu-HU-A5ZG7DT2-qpHSyZvF.js} +1 -1
  77. package/dist/viewer/{id-ID-SAP4L64H-CVbSVAc3.js → id-ID-SAP4L64H-CPrjJiXr.js} +1 -1
  78. package/dist/viewer/{image-GAAHSSAO-B0g7YyLf.js → image-GAAHSSAO-xfEH5EVg.js} +1 -1
  79. package/dist/viewer/index.html +1 -1
  80. package/dist/viewer/index.js +6 -6
  81. package/dist/viewer/index2.css +171 -18
  82. package/dist/viewer/{infoDiagram-27XIBGKW-DOxIYIRL.js → infoDiagram-27XIBGKW-B0yRhU0B.js} +1 -1
  83. package/dist/viewer/{ishikawaDiagram-5VMMS53U-D-U6Fi8F.js → ishikawaDiagram-5VMMS53U-ZFUPUZ0x.js} +1 -1
  84. package/dist/viewer/{it-IT-JPQ66NNP-6PNiI36L.js → it-IT-JPQ66NNP-BnOpgYU3.js} +1 -1
  85. package/dist/viewer/{ja-JP-DBVTYXUO-D3SJtNp5.js → ja-JP-DBVTYXUO-Fma_1_jf.js} +1 -1
  86. package/dist/viewer/{journeyDiagram-3NMN7TZE-8Mz0Nae3.js → journeyDiagram-3NMN7TZE-GaSIHccq.js} +1 -1
  87. package/dist/viewer/{kaa-6HZHGXH3-Bz3WA5yL.js → kaa-6HZHGXH3-Bgd1Vsyj.js} +1 -1
  88. package/dist/viewer/{kab-KAB-ZGHBKWFO-W2PtzMEV.js → kab-KAB-ZGHBKWFO-97ekuQIQ.js} +1 -1
  89. package/dist/viewer/{kanban-definition-UXKFOSKX-BP8HwPzL.js → kanban-definition-UXKFOSKX-BfckuyD5.js} +1 -1
  90. package/dist/viewer/{kk-KZ-P5N5QNE5-Dc1i0Bup.js → kk-KZ-P5N5QNE5-Bxv4UjqE.js} +1 -1
  91. package/dist/viewer/{km-KH-HSX4SM5Z-C88_w0rR.js → km-KH-HSX4SM5Z-8ccFfBZa.js} +1 -1
  92. package/dist/viewer/{ko-KR-MTYHY66A-DWOt-6As.js → ko-KR-MTYHY66A-D-a1HV8D.js} +1 -1
  93. package/dist/viewer/{ku-TR-6OUDTVRD-B7qeFzlo.js → ku-TR-6OUDTVRD-BsdyU65I.js} +1 -1
  94. package/dist/viewer/{lt-LT-XHIRWOB4-Dc9eguDu.js → lt-LT-XHIRWOB4-CIq7DtVN.js} +1 -1
  95. package/dist/viewer/{lv-LV-5QDEKY6T-D9CzWKMj.js → lv-LV-5QDEKY6T-B5B57KgN.js} +1 -1
  96. package/dist/viewer/{mindmap-definition-YA3MSWOX-Bikv3SLv.js → mindmap-definition-YA3MSWOX-x4MVcn_H.js} +1 -1
  97. package/dist/viewer/{mr-IN-CRQNXWMA-CtlsKIl9.js → mr-IN-CRQNXWMA-D1VztqX3.js} +1 -1
  98. package/dist/viewer/{my-MM-5M5IBNSE-CiyAGqHH.js → my-MM-5M5IBNSE-VGJv_B79.js} +1 -1
  99. package/dist/viewer/{nb-NO-T6EIAALU-l9uMRUdk.js → nb-NO-T6EIAALU-CW7CbXP6.js} +1 -1
  100. package/dist/viewer/{nl-NL-IS3SIHDZ-zja_zaqN.js → nl-NL-IS3SIHDZ-0fova8mt.js} +1 -1
  101. package/dist/viewer/{nn-NO-6E72VCQL-BiP5RLsf.js → nn-NO-6E72VCQL-Bl8c9odx.js} +1 -1
  102. package/dist/viewer/{oc-FR-POXYY2M6-CvKUzwab.js → oc-FR-POXYY2M6-Csx8D3AS.js} +1 -1
  103. package/dist/viewer/{pa-IN-N4M65BXN-DioFchQd.js → pa-IN-N4M65BXN-DrioQ4p2.js} +1 -1
  104. package/dist/viewer/{pegDiagram-XKGWAZYB-BSllNtPI.js → pegDiagram-XKGWAZYB-jgQ4-VU8.js} +1 -1
  105. package/dist/viewer/percentages-BXMCSKIN-DRVY_37B.js +1 -0
  106. package/dist/viewer/{pieDiagram-E7YTZNPT-b1-BsaA4.js → pieDiagram-E7YTZNPT-D4W5LODC.js} +3 -3
  107. package/dist/viewer/{pl-PL-T2D74RX3-Ci7dAnI8.js → pl-PL-T2D74RX3-BlG3Tr5U.js} +1 -1
  108. package/dist/viewer/{prod-CPZkgD7t.js → prod-DoKZsOaX.js} +9 -9
  109. package/dist/viewer/{pt-BR-5N22H2LF--VT7NYYE.js → pt-BR-5N22H2LF-BJ_dJDoY.js} +1 -1
  110. package/dist/viewer/{pt-PT-UZXXM6DQ-CWdbQilC.js → pt-PT-UZXXM6DQ-JuaprDPL.js} +1 -1
  111. package/dist/viewer/{quadrantDiagram-AXDQQJYC-D0pucWR0.js → quadrantDiagram-AXDQQJYC-Bjo_a-l0.js} +1 -1
  112. package/dist/viewer/{railroadDiagram-O6MQD6OU-DIPJ2PKr.js → railroadDiagram-O6MQD6OU-B0jgFLfP.js} +1 -1
  113. package/dist/viewer/{requirementDiagram-BXWQKSXE-DEGhiwJ9.js → requirementDiagram-BXWQKSXE-Dsdz_3bL.js} +1 -1
  114. package/dist/viewer/{ro-RO-JPDTUUEW-BK4wLUL7.js → ro-RO-JPDTUUEW-CPbEkuPw.js} +1 -1
  115. package/dist/viewer/{ru-RU-B4JR7IUQ-BDPQ8blU.js → ru-RU-B4JR7IUQ-DtGFv7Yn.js} +1 -1
  116. package/dist/viewer/{sequenceDiagram-WJ2MYXX4-D7sLhGYb.js → sequenceDiagram-WJ2MYXX4-BNHp74bi.js} +1 -1
  117. package/dist/viewer/{si-LK-N5RQ5JYF-D5DWsUAA.js → si-LK-N5RQ5JYF-Cw7PrSGM.js} +1 -1
  118. package/dist/viewer/{sk-SK-C5VTKIMK-Cia9j1Te.js → sk-SK-C5VTKIMK-BdEWLdAf.js} +1 -1
  119. package/dist/viewer/{sl-SI-NN7IZMDC-CV304k5j.js → sl-SI-NN7IZMDC-DWsrAmPB.js} +1 -1
  120. package/dist/viewer/{stateDiagram-D77RDMKH-BMNx9_M8.js → stateDiagram-D77RDMKH-bROf90_R.js} +1 -1
  121. package/dist/viewer/{stateDiagram-v2-MP3YSRHH-CPa9DZs4.js → stateDiagram-v2-MP3YSRHH-BY5bPCMJ.js} +1 -1
  122. package/dist/viewer/subset-shared.chunk-BStnlZMO.js +1 -0
  123. package/dist/viewer/{subset-worker.chunk-CHQzlaj3.js → subset-worker.chunk-ZX5ZauYv.js} +1 -1
  124. package/dist/viewer/{sv-SE-XGPEYMSR-CXdp-XZD.js → sv-SE-XGPEYMSR-CIhIa_l2.js} +1 -1
  125. package/dist/viewer/{swimlanes-42K2YHIH-BwUyxwi3.js → swimlanes-42K2YHIH-DWgSkFMr.js} +1 -1
  126. package/dist/viewer/{swimlanesDiagram-VR7AAH4N-BgxS36EG.js → swimlanesDiagram-VR7AAH4N-CJlfxAhN.js} +1 -1
  127. package/dist/viewer/{ta-IN-2NMHFXQM-CObY6q-8.js → ta-IN-2NMHFXQM-j2fOOXe2.js} +1 -1
  128. package/dist/viewer/{th-TH-HPSO5L25-CEOiELZN.js → th-TH-HPSO5L25-CkgXnjpf.js} +1 -1
  129. package/dist/viewer/{timeline-definition-24CTP7MA-BJ-7Fdfr.js → timeline-definition-24CTP7MA-rnUpi-7k.js} +1 -1
  130. package/dist/viewer/{tr-TR-DEFEU3FU-CPj5dFcB.js → tr-TR-DEFEU3FU-bgJR1iXd.js} +1 -1
  131. package/dist/viewer/{uk-UA-QMV73CPH-BkZyFeXP.js → uk-UA-QMV73CPH-q6uSQxvU.js} +1 -1
  132. package/dist/viewer/{useSandboxFrame-BpJ9uM86.js → useSandboxFrame-Dzr1V3HK.js} +1 -1
  133. package/dist/viewer/{vennDiagram-4TSXK5OY-DnFbjWDw.js → vennDiagram-4TSXK5OY-CeqdYGwH.js} +1 -1
  134. package/dist/viewer/{vi-VN-M7AON7JQ-CkKKOpBQ.js → vi-VN-M7AON7JQ-DTYGZATL.js} +1 -1
  135. package/dist/viewer/{wardleyDiagram-VM6X3IG4-CN_pm__V.js → wardleyDiagram-VM6X3IG4-C8cYdu7b.js} +1 -1
  136. package/dist/viewer/{xychartDiagram-S5SC5T6Z-C7XLywXm.js → xychartDiagram-S5SC5T6Z-Djgu6Zdz.js} +2 -2
  137. package/dist/viewer/{zh-CN-LNUGB5OW-BQcCqsDg.js → zh-CN-LNUGB5OW-BWV3WswS.js} +1 -1
  138. package/dist/viewer/{zh-HK-E62DVLB3-Bp-jK0zw.js → zh-HK-E62DVLB3-Bd20M5Rq.js} +1 -1
  139. package/dist/viewer/{zh-TW-RAJ6MFWO-KmFL88Bs.js → zh-TW-RAJ6MFWO-CVDAstAU.js} +1 -1
  140. package/package.json +1 -1
  141. package/dist/viewer/CloudDocument-CgM3kbiO.js +0 -1
  142. package/dist/viewer/CloudLiveDocument-CdN71jfH.js +0 -1
  143. package/dist/viewer/DocumentPage-BBzAFj4H.js +0 -1
  144. package/dist/viewer/dist-C2adJeNZ.js +0 -9
  145. package/dist/viewer/dist-D0Emc84u.js +0 -1
  146. package/dist/viewer/dist-DcGUli8O.js +0 -1
  147. package/dist/viewer/dist-VupXLYv6.js +0 -1
  148. package/dist/viewer/dist-_3NL_2LS.js +0 -6
  149. package/dist/viewer/flowDiagram-HODETNUW-DpY3t4b0.js +0 -1
  150. package/dist/viewer/ganttDiagram-EL5Y4UJY-DvL8TKGV.js +0 -292
  151. package/dist/viewer/percentages-BXMCSKIN-BRZnWvym.js +0 -1
  152. package/dist/viewer/subset-shared.chunk-ChUk9bHw.js +0 -1
@@ -55,4 +55,4 @@ import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{n as t,t as n}from"./j
55
55
  ${_}px !important;
56
56
  ${v}px !important;
57
57
  }
58
- `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),S.contains(x)&&S.removeChild(x)}},[t]),(0,P.jsx)(iy,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:N.cloneElement(e,{ref:u})})}var oy=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=Zv(sy),d=(0,N.useId)(),f=(0,N.useRef)(n),p=(0,N.useRef)(r);Qv(()=>{f.current=n,p.current=r});let m=!0,h=(0,N.useMemo)(()=>(m=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!f.current&&!u.size&&p.current?.()})}),[n,u,r]);return a&&m&&(h={...h}),(0,N.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),N.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,P.jsx)(ay,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,P.jsx)($v.Provider,{value:h,children:e})};function sy(){return new Map}function cy(e=!0){let t=(0,N.useContext)($v);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,N.useId)();(0,N.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,N.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var ly=e=>e.key||``;function uy(e){let t=[];return N.Children.forEach(e,e=>{(0,N.isValidElement)(e)&&t.push(e)}),t}var dy=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=cy(o),f=(0,N.useMemo)(()=>uy(e),[e]),p=o&&!u?[]:f.map(ly),m=(0,N.useRef)(!0),h=Zv(()=>new Map),g=(0,N.useRef)(new Set),[_,v]=(0,N.useState)(f),[y,b]=(0,N.useState)(f);Qv(()=>{o&&!u&&!y.length&&d?.()},[u,o,y.length,d]),Qv(()=>{m.current=!1;for(let e=0;e<y.length;e++){let t=ly(y[e]);p.includes(t)?(h.delete(t),g.current.delete(t)):h.get(t)!==!0&&h.set(t,!1)}},[y,p.length,p.join(`-`)]);let x=[];if(f!==_){let e=[...f],t=0;for(let n of y){let r=p.indexOf(ly(n));r===-1?(e.splice(t++,0,n),x.push(n)):t=r+x.length+1}return x.every(e=>h.get(ly(e)))?e=f:a===`wait`&&(e=x),b(uy(e)),v(f),null}let{forceRender:S}=(0,N.useContext)(Xv);return(0,P.jsx)(P.Fragment,{children:y.map(e=>{let _=ly(e),b=o&&!u?!1:f===y||p.includes(_);return(0,P.jsx)(oy,{isPresent:b,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:b?void 0:()=>{if(g.current.has(_))return;if(h.has(_))g.current.add(_),h.set(_,!0);else return;let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(S?.(),v([]),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},_)})})},fy=N.createContext(void 0);function py(e){let t=N.useContext(fy);if(t===void 0&&!e)throw Error(Ne(47));return t}var my={...th,disabled:e=>e.disabled,instantType:e=>e.instantType===`trigger-change`&&!th.open(e)?void 0:e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,isPressOpenedByTrigger:(e,t)=>e.openChangeReason===`trigger-press`&&th.isOpenedByTrigger(e,t),isTouchPressOpen:(e,t)=>t&&e.openMethod===`touch`&&e.openChangeReason===`trigger-press`,hasTriggerFocusGuards:(e,t)=>th.isOpenedByTrigger(e,t)&&!e.focusManagerModal,modal:e=>e.modal,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},hy=class extends Km{constructor(e,t,n){let r=new Lm;super(_y(e,r,t,n),vy(r),my)}setOpen=(e,t)=>{let n=t.reason===Ct,r=t.reason===`trigger-press`&&t.event.detail===0,i=!e&&(t.reason===`escape-key`||t.reason==null),a=Am(t),o=this.select(`activeTriggerId`);if(!e&&t.reason===`close-press`&&t.trigger==null&&o!=null&&(t.trigger=this.context.triggerElements.getById(o)??this.select(`activeTriggerElement`)??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let n=km(this.state,e,t.trigger,a());n.openChangeReason=t.reason,this.update(n)};n?(this.context.stickIfOpen=!0,this.context.stickIfOpenTimeout.start(500,()=>{this.context.stickIfOpen=!1}),Sn.flushSync(s)):s();let c;r?c=`click`:i?c=`dismiss`:t.reason===`focus-out`&&(c=`focus`),this.set(`instantType`,c)}};function gy(){let e=new Lm,t=new Ah(Object.freeze(_y(void 0,e)),Object.freeze(vy(e)),my);return Object.assign(t,{setOpen:be})}function _y(e,t,n,r=!1){let i={...Ym(t,n,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i}function vy(e){return{popupRef:N.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:N.createRef(),beforeTriggerFocusGuardRef:N.createRef(),beforeContentFocusGuardRef:N.createRef(),stickIfOpenTimeout:new vn,stickIfOpen:!0,triggerElements:e}}var yy=Pd(function({props:e}){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,modal:o=!1,handle:s,triggerId:c,defaultTriggerId:l=null}=e,u=xy(s,{modal:o,open:r,openProp:n,activeTriggerId:l,triggerIdProp:c});u.useControlledProp(`openProp`,n),u.useControlledProp(`triggerIdProp`,c);let d=u.useState(`open`),f=u.useState(`mounted`),p=u.useState(`payload`);u.useContextCallback(`onOpenChange`,i),u.useContextCallback(`onOpenChangeComplete`,a),Im(u,d),Nm(u);let{forceUnmount:m}=Pm(d,u,()=>{u.context.stickIfOpen=!0,u.set(`openChangeReason`,null)});u.useSyncedValues({modal:o}),N.useEffect(()=>{d||u.context.stickIfOpenTimeout.clear()},[u,d]),N.useImperativeHandle(e.actionsRef,()=>({unmount:m,close:()=>u.setOpen(!1,G(Jt))}),[m,u]);let h=d||f||s!=null;return(0,P.jsxs)(fy.Provider,{value:u,children:[s&&(0,P.jsx)(Em,{handle:s,store:u}),h&&(0,P.jsx)(Sy,{store:u,modal:o}),typeof t==`function`?t({payload:p}):t]})});function by(e){return py(!0)?(0,P.jsx)(yy,{props:e}):(0,P.jsx)(om,{children:(0,P.jsx)(yy,{props:e})})}function xy(e,t){let n=Tm((e,n)=>new hy(t,e,n));return N.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}function Sy({store:e,modal:t}){let n=ym(e.useState(`floatingRootContext`),{outsidePressEvent:{mouse:t===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}}),r=n.reference,i=n.floating;return Fm(e,{activeTriggerProps:r,inactiveTriggerProps:r,popupProps:i}),null}var Cy=Fd(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,handle:s,payload:c,openOnHover:l=!1,delay:u=300,closeDelay:d=0,id:f,...p}=e,m=py(!0),h=nh(s)??m;if(!h)throw Error(Ne(74));let g=yt(f),_=h.useState(`isTriggerActive`,g),v=h.useState(`floatingRootContext`),y=h.useState(`isOpenedByTrigger`,g),b=h.useState(`triggerPopupId`,g),x=N.useRef(null),{registerTrigger:S,isMountedByThisTrigger:C}=Mm(g,x,h,{payload:c,disabled:a,openOnHover:l,closeDelay:d}),w=h.useState(`isPressOpenedByTrigger`,g),T=h.useState(`isTouchPressOpen`,l),E=h.useState(`hasTriggerFocusGuards`,g),D=ph(v,{enabled:!a&&l&&!T,mouseOnly:!0,move:!1,handleClose:kh(),restMs:u,delay:{close:d},triggerElementRef:x,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`}),O=gm(v,{stickIfOpen:U(()=>h.context.stickIfOpen)}),ee=V_(()=>h.select(`open`),e=>{h.set(`openMethod`,e)}),k=h.useState(`triggerProps`,C),{getButtonProps:A,buttonRef:j}=mn({disabled:a,native:o}),M={open(e){return w?Tf.open(e):wf.open(e)}},{handlePreFocusGuardFocus:te,handleFocusTargetFocus:F}=av(h,x),I=st(`button`,e,{state:{disabled:a,open:y},ref:[j,t,S,x],props:[O.reference,D,k,ee,{[Up]:``,id:g,"aria-haspopup":`dialog`,"aria-expanded":y,"aria-controls":b},p,A],stateAttributesMapping:M}),L=(0,P.jsx)(N.Fragment,{children:I},g);return E?(0,P.jsxs)(N.Fragment,{children:[(0,P.jsx)(Kf,{ref:h.context.beforeTriggerFocusGuardRef,onFocus:te}),L,(0,P.jsx)(Kf,{ref:h.context.triggerFocusTargetRef,onFocus:F})]}):L}),wy=N.createContext(void 0);function Ty(){let e=N.useContext(wy);if(e===void 0)throw Error(Ne(45));return e}var Ey=N.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return py().useState(`mounted`)||n?(0,P.jsx)(wy.Provider,{value:n,children:(0,P.jsx)(Zp,{ref:t,...r})}):null}),Dy=N.createContext(void 0);function Oy(){let e=N.useContext(Dy);if(!e)throw Error(Ne(46));return e}var ky=N.forwardRef(function(e,t){let{render:n,className:r,style:i,anchor:a,positionMethod:o,side:s,align:c,sideOffset:l,alignOffset:u,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:p,sticky:m,disableAnchorTracking:h=!1,collisionAvoidance:g=Gp,..._}=e,v=py(),y=Ty(),b=im(),x=v.useState(`floatingRootContext`),S=v.useState(`mounted`),C=v.useState(`open`),w=v.useState(`openChangeReason`),T=v.useState(`activeTriggerElement`),E=v.useState(`modal`),D=v.useState(`openMethod`),O=v.useState(`positionerElement`),ee=v.useState(`instantType`),k=v.useState(`transitionStatus`),A=eg({anchor:a,floatingRootContext:x,positionMethod:o,mounted:S,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:m,disableAnchorTracking:h,keepMounted:y,nodeId:b,collisionAvoidance:g,adaptiveOrigin:v.useState(`adaptiveOrigin`)});C_({store:v,domReference:x.useState(`domReferenceElement`),positionerElement:O,open:C});let j=E===!0&&w!==`trigger-hover`;I_(C&&j,D===`touch`,O,T);let M=v.useStateSetter(`positionerElement`),N=ig(e,{open:C,side:A.side,align:A.align,anchorHidden:A.anchorHidden,instant:ee},{styles:A.positionerStyles,transitionStatus:k,props:_,refs:[t,M],hidden:!S,inert:!C});return(0,P.jsxs)(Dy.Provider,{value:A,children:[S&&j&&(0,P.jsx)(S_,{inert:ag(!C),cutout:T}),(0,P.jsx)(am,{id:b,children:N})]})}),Ay=N.createContext(void 0);function jy(){let[e,t]=N.useState(0),n=U(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:N.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}var My=N.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=py(),l=Oy(),u=Yg(!0)!=null,{context:d,hasClosePart:f}=jy(),p=c.useState(`open`),m=c.useState(`openMethod`),h=c.useState(`instantType`),g=c.useState(`transitionStatus`),_=c.useState(`popupProps`),v=c.useState(`titleElementId`),y=c.useState(`descriptionElementId`),x=c.useState(`modal`),S=c.useState(`mounted`),C=c.useState(`openChangeReason`),w=c.useState(`activeTriggerElement`),T=c.useState(`floatingRootContext`),E=T.useState(`floatingId`),D=c.useState(`disabled`),O=c.useState(`openOnHover`),ee=c.useState(`closeDelay`);On({open:p,ref:c.context.popupRef,onComplete(){p&&c.context.onOpenChangeComplete?.(!0)}}),dh(T,{enabled:O&&!D,closeDelay:ee});let k=a===void 0?wm(c.context.popupRef):a,A=x!==!1&&f;c.useSyncedValue(`focusManagerModal`,A);let j=c.useStateSetter(`popupElement`),M=st(`div`,e,{state:{open:p,side:l.side,align:l.align,instant:h,transitionStatus:g},ref:[t,c.context.popupRef,j],props:[_,{id:E,role:`dialog`,...Cm,"aria-labelledby":v,"aria-describedby":y,onKeyDown(e){u&&r_.has(e.key)&&e.stopPropagation()}},rg(g),s],stateAttributesMapping:Df});return(0,P.jsx)(hm,{context:T,openInteractionType:m,modal:A,disabled:!S||C===`trigger-hover`,initialFocus:k,returnFocus:o,restoreFocus:`popup`,getInsideElements:()=>[c.context.beforeTriggerFocusGuardRef.current],previousFocusableElement:b(w)?w:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,P.jsx)(Ay.Provider,{value:d,children:M})})}),Ny=(e,t)=>()=>{},Py=[.32,.72,0,1],Fy={animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98,transition:{duration:.12,ease:[.4,0,1,1]}},initial:{opacity:0,scale:.97},transition:{duration:.22,ease:Py}},Iy={duration:.18,ease:Py},Ly=(0,N.createContext)(null),Ry=()=>(0,N.use)(Ly),zy=Ly.Provider,By=re({block:`modal`,dataAttributes:[`draggable`,`fullscreen`],elements:[`trigger`,`backdrop`,`viewport`,`wrapper`,`header`,`title`,`description`,`header-actions`,`fullscreen-toggle`,`close`,`content`,`loading`,`footer`]}),Vy={backdrop:{kpwlN0:`lb10a8y8t`,kmkexE:`lb11o4mfb`,kWkggS:`lb2643`,kSiTet:`lb1i2unn7`,kVAEAm:`lbixxii4`,kY2c9j:`lb1i7x82i`,$$css:!0},close:{k87sOh:`lbfr5jun`,kt4wiu:`lb9q68il`,kVAEAm:`lb10l6tqk`,$$css:!0},closeInline:{kVAM5u:`lb181nr7w`,kaIpWk:`lb4pepcl`,ksu8eU:`lbng3xce`,kMzoRj:`lbfn42iu`,kWkggS:`lbjbqb8w lb1ri6zej`,kMwMTN:`lb53gy9q lb1bxu9lh`,kmkexE:`lbxgdrqz`,kkrTdU:`lb1ypdohk`,k3aq6I:`lbcum6zn`,k1xSpc:`lb78zum5`,kGNEyG:`lb6s0dn4`,kjj79g:`lbl56j7k`,kZKoxP:`lb10w6t97`,kmVPX3:`lb1717udv`,kzqmXN:`lb1td3qas`,$$css:!0},content:{kg3NbH:`lb1hr3lfm`,kGO01o:`lb1l90r2v`,kLKAdn:`lbexx8yu`,kXHlph:`lb6ikm8r`,kORKVm:`lb1odjw0f`,$$css:!0},contentNoHeader:{kLKAdn:`lbyamay9`,$$css:!0},denyAnimation:{k44tkh:`lbb8lv0f`,kKVMdj:`lbe2vv0f`,kyAemX:`lb1bx5ho5`,$$css:!0},footer:{kOIVth:`lb167g77z`,k8WAf4:`lb10dr8xq`,kg3NbH:`lb1hr3lfm`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lb13a6bvl`,$$css:!0},fullscreenPopupInner:{kZKoxP:`lb1mkwkuc`,kskxy:`lb1bsd8ea`,ks0D6T:`lbc408io`,kzqmXN:`lb1ng3b2o`,$$css:!0},fullscreenToggle:{kVAM5u:`lb181nr7w`,kaIpWk:`lb4pepcl`,ksu8eU:`lbng3xce`,kMzoRj:`lbfn42iu`,kWkggS:`lbjbqb8w lb1ri6zej`,kMwMTN:`lb53gy9q lb1bxu9lh`,kmkexE:`lbxgdrqz`,kkrTdU:`lb1ypdohk`,k3aq6I:`lbcum6zn`,k1xSpc:`lb78zum5`,kGNEyG:`lb6s0dn4`,kjj79g:`lbl56j7k`,kZKoxP:`lb1fgtraw`,kmVPX3:`lb1717udv`,kzqmXN:`lbgd8bvy`,$$css:!0},header:{k8WAf4:`lb1vvogim`,kg3NbH:`lb1hr3lfm`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lb1qughib`,kAzted:`lb1wxaq2x`,$$css:!0},headerActions:{kOIVth:`lb1jnr06f`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,k71WvV:`lb1lxpwgx`,$$css:!0},headerDraggable:{kkrTdU:`lbt0e3qv`,kfSwDN:`lb87ps6o`,$$css:!0},loading:{k8WAf4:`lbd11lqx`,kg3NbH:`lbnjsko4`,k1xSpc:`lb78zum5`,kjj79g:`lbl56j7k`,$$css:!0},loadingSpinner:{kVAM5u:`lb181nr7w`,kaIpWk:`lb16rqkct`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbdh2fpr`,k44tkh:`lbdz8niu`,ko0y90:`lba4qsjk`,kKVMdj:`lb1v0ides`,kyAemX:`lb1esw782`,kLZC3w:`lb1v8p93f`,k1xSpc:`lb1rg5ohu`,kZKoxP:`lb1v9usgg`,kzqmXN:`lb6jxa94`,$$css:!0},loadingSpinnerLarge:{kZKoxP:`lbxk0z11`,kzqmXN:`lbvy4d1p`,$$css:!0},popup:{kpwlN0:`lb10a8y8t`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lbl56j7k`,kfzvcC:`lb47corl`,kVAEAm:`lbixxii4`,kY2c9j:`lb1mblwae`,$$css:!0},popupInner:{kaIpWk:`lb4pepcl`,kVQacm:`lbb3r6kr`,kWkggS:`lb1w937bt`,kGVxlE:`lb4hq661`,kB7OPa:`lb9f619`,k1xSpc:`lb78zum5`,kXwgrk:`lbdt5ytf`,kSiTet:`lb1i2unn7`,kfzvcC:`lb67bb7w`,kVAEAm:`lb1n2onr6`,k3aq6I:`lbg71pz7 lb1htj8e4`,kIyJzY:`lb1ofcnca lb16bar5h`,k1ekBW:`lbwcsmn1`,kAMwcw:`lbmea1ks lb1gcu4m7`,kskxy:`lbw2jzks`,ks0D6T:`lb1lwm3bp`,kzqmXN:`lbkxa9zd`,$$css:!0},title:{kogj98:`lb1ghz6dp`,kMwMTN:`lb66ogz0`,kGuDYH:`lbif65rj`,k63SB2:`lb1s688f`,kLWn49:`lb37zpob`,$$css:!0},viewport:{kpwlN0:`lb10a8y8t`,kVQacm:`lbysyzu8`,kVAEAm:`lbixxii4`,kY2c9j:`lb1i7x82i`,$$css:!0}},Hy=(e,t,n)=>{let r=se(ue(e).className,n);return typeof t==`function`?e=>se(r,t(e)):se(r,t)},Uy=(0,N.createContext)(null),Wy=(0,N.createContext)(null),Gy=()=>(0,N.use)(Uy),Ky=()=>(0,N.use)(Wy),qy=({open:e,children:t,onExitComplete:n,zIndex:r,...i})=>{let[a,o]=(0,N.useState)(!!e);(0,N.useEffect)(()=>{e&&o(!0)},[e]);let s=(0,N.useCallback)(()=>{o(!1),n?.()},[n]),c=(0,N.useMemo)(()=>({onExitComplete:s}),[s]),{zIndex:l,ref:u}=Ag(`modal`,r),d=(0,N.useMemo)(()=>({popupRef:u,zIndex:l}),[l,u]);return a?(0,P.jsx)(Uy,{value:e,children:(0,P.jsx)(Wy,{value:c,children:(0,P.jsx)(zy,{value:d,children:(0,P.jsx)(Jv,{modal:!0,open:!0,...i,children:t})})})}):null},Jy=({zIndex:e,children:t,...n})=>{let{zIndex:r,ref:i}=Ag(`modal`,e),a=(0,N.useMemo)(()=>({popupRef:i,zIndex:r}),[r,i]);return(0,P.jsx)(zy,{value:a,children:(0,P.jsx)(Jv,{modal:!0,...n,children:t})})},Yy=({open:e,onExitComplete:t,...n})=>e===void 0?(0,P.jsx)(Jy,{...n}):(0,P.jsx)(qy,{open:e,onExitComplete:t,...n}),Xy=({container:e,...t})=>{let n=L();return(0,P.jsx)(Vv,{container:e??n??void 0,...t})},Zy=({className:e,style:t,...n})=>{let r=Gy(),i=Ry(),a=F(),o=i?.zIndex===void 0?void 0:{zIndex:i.zIndex};return r===null?(0,P.jsx)(Nv,{...n,style:{...o,...t},className:Hy(Vy.backdrop,e,By(`backdrop`))}):(0,P.jsx)(Nv,{...n,style:{...o,...t,transition:`none`},className:se(ue(Vy.backdrop).className,By(`backdrop`),e),render:(0,P.jsx)(a.div,{animate:{opacity:+!!r},initial:{opacity:0},transition:Iy})})},Qy=({className:e,children:t,width:n,style:r,motionProps:i,panelClassName:a,panelData:o,panelXstyle:s,popupStyle:c,ref:l,xstyle:u,...d})=>{let f=Gy(),p=Ky(),m=Ry(),h=F(),g=m?.zIndex===void 0?void 0:{zIndex:m.zIndex+1},_=kd([l,m?.popupRef]);return f!==null&&p?(0,P.jsx)(Bv,{...d,ref:_,style:{...g,...c},className:se(ue(Vy.popup,u).className,By(`wrapper`),e),children:(0,P.jsx)(dy,{onExitComplete:p.onExitComplete,children:f?(0,N.createElement)(h.div,{...Fy,...i,key:`modal-popup-panel`,...o,style:{maxWidth:n??void 0,transition:`none`,...r},className:se(ue(Vy.popupInner,s).className,By(),a)},t):null})}):(0,P.jsx)(Bv,{...d,ref:_,style:{...g,...c},className:Hy([Vy.popup,u],e,By(`wrapper`)),children:(0,P.jsx)(`div`,{...o,...H([Vy.popupInner,s],se(By(),a),{maxWidth:n??void 0,...r}),children:t})})},$y=({className:e,style:t,xstyle:n,...r})=>(0,P.jsx)(`div`,{...r,...H([Vy.header,n],se(By(`header`),e),t)}),eb=({className:e,xstyle:t,...n})=>(0,P.jsx)(Yv,{...n,className:Hy([Vy.title,t],e,By(`title`))}),tb=({className:e,style:t,xstyle:n,...r})=>(0,P.jsx)(`div`,{...r,...H([Vy.content,n],se(By(`content`),e),t)}),nb=({className:e,style:t,xstyle:n,...r})=>(0,P.jsx)(`div`,{...r,...H([Vy.footer,n],se(By(`footer`),e),t)}),rb=({className:e,children:t,xstyle:n,...r})=>(0,P.jsx)(Pv,{...r,className:Hy([Vy.closeInline,Vy.close,de.info,n],e,By(`close`)),children:t??(0,P.jsx)(vr,{size:16})}),ib=(0,N.createContext)({close:()=>void 0,setCanDismissByClickOutside:()=>void 0}),ab=()=>(0,N.use)(ib),ob=({children:e,root:t})=>{let n=L(),r=t??n??document.body;return(0,Sn.createPortal)(e,r)},sb=({config:e})=>{let{close:t}=ab(),[n,r]=(0,N.useState)(!1),{cancelText:i=`Cancel`,content:a,okButtonProps:o,okText:s=`OK`,onCancel:c,onOk:l}=e,u=(0,N.useCallback)(()=>{t(),c?.()},[t,c]),d=(0,N.useCallback)(async()=>{if(l)try{let e=l();e&&typeof e.then==`function`&&(r(!0),await e,r(!1))}catch{r(!1);return}t()},[t,l]);return(0,P.jsxs)(P.Fragment,{children:[a&&(0,P.jsx)(`div`,{style:{padding:`12px 16px`},children:a}),(0,P.jsxs)(nb,{children:[(0,P.jsx)(ai,{onClick:u,children:i}),(0,P.jsx)(ai,{loading:n,type:`primary`,...o,onClick:d,children:s})]})]})};sb.displayName=`ConfirmBody`;var cb=0;function lb(){let e=cb++,t=e===0?`BaseModalHost`:`BaseModalHost-${e}`,n=[],r=0,i=new Set,a=()=>i.forEach(e=>e()),o=e=>(i.add(e),()=>i.delete(e)),s=[],c=()=>n,l=()=>s,u=(e,t)=>{let r=!1;n=n.map(n=>n.id===e?(r=!0,{...n,props:{...n.props,...t}}):n),r&&a()},d=e=>{u(e,{open:!1})},f=e=>{let t=n.filter(t=>t.id!==e);t.length!==n.length&&(n=t,a())},p=(0,N.memo)(({entry:e})=>{let{id:t,props:n}=e,{children:r,classNames:i,content:a,footer:o,maskClosable:s,onOpenChange:c,onOpenChangeComplete:l,open:p,styles:m,title:h,width:g}=n,_=p??!0,v=(0,N.useCallback)((e,n)=>{(e||s!==!1||n?.reason!==`outside-press`)&&(e||d(t),c?.(e))},[t,s,c]),y=(0,N.useCallback)(()=>{l?.(!1),f(t)},[t,l]),b=(0,N.useCallback)(()=>d(t),[t]),x=(0,N.useCallback)(e=>u(t,{maskClosable:e}),[t]),S=h!==void 0&&h!==!1&&h!==null;return(0,P.jsx)(ib,{value:{close:b,setCanDismissByClickOutside:x},children:(0,P.jsx)(Yy,{open:_,onExitComplete:y,onOpenChange:v,children:(0,P.jsxs)(Xy,{children:[(0,P.jsx)(Zy,{className:i?.backdrop,style:m?.backdrop}),(0,P.jsxs)(Qy,{className:i?.popup,popupStyle:m?.popup,width:g,children:[S&&(0,P.jsxs)($y,{className:i?.header,style:m?.header,children:[(0,P.jsx)(eb,{className:i?.title,style:m?.title,children:h}),(0,P.jsx)(rb,{className:i?.close,style:m?.close})]}),(0,P.jsx)(tb,{className:i?.content,style:m?.content,xstyle:!S&&Vy.contentNoHeader,children:a??r}),o]})]})})})});p.displayName=`ModalStackItem`;let m=(0,N.memo)(({stack:e})=>og()?e.map(e=>(0,P.jsx)(p,{entry:e},e.id)):null);m.displayName=`ModalStackRenderer`;let h=({root:e})=>{let n=(0,N.useSyncExternalStore)(o,c,l),r=og();return(0,N.useEffect)(()=>{if(!r)return;let n=e??document.body;return Ny(t,n)},[r,e]),!r||n.length===0?null:(0,P.jsx)(ob,{root:e,children:(0,P.jsx)(m,{stack:n})})},g=e=>{let t=`base-modal-${Date.now()}-${r++}`;return n=[...n,{id:t,props:{...e,open:e.open??!0}}],a(),{close:()=>d(t),destroy:()=>f(t),setCanDismissByClickOutside:e=>u(t,{maskClosable:e}),update:e=>u(t,e)}};return{ModalHost:h,confirmModal:e=>{let t=g({content:(0,P.jsx)(sb,{config:e}),styles:{content:{padding:0}},title:e.title,width:e.width??420});return{close:t.close,destroy:t.destroy}},createModal:g}}var ub=lb(),db=ub.ModalHost,fb=ub.createModal;ub.confirmModal;var pb=`(max-width: 640px)`;function mb(e){let t=(0,N.useMemo)(()=>window.matchMedia(e),[e]),[n,r]=(0,N.useState)(t.matches);return(0,N.useEffect)(()=>{let e=()=>r(t.matches);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)},[t]),n}var hb=`allow-scripts allow-modals allow-forms allow-popups allow-downloads`,gb=300,_b=10;function vb(e,t){let n=(0,N.useRef)(null),[r,i]=(0,N.useState)(null),a=(0,N.useRef)(null),o=(0,N.useRef)(0),s=(0,N.useRef)(t);return s.current=t,(0,N.useEffect)(()=>{if(!e||e===r)return;let t=n.current?.contentWindow;if(r===null||!t){i(e);return}let o=!1,s=t=>{o||(o=!0,window.removeEventListener(`message`,c),clearTimeout(l),a.current=t,i(e))},c=e=>{e.source===t&&e.data?.type===`ryugi:state`&&s(e.data.state??null)};window.addEventListener(`message`,c);let l=setTimeout(()=>s(null),gb);return t.postMessage({type:`ryugi:snapshot`},`*`),()=>{o=!0,window.removeEventListener(`message`,c),clearTimeout(l)}},[e,r]),(0,N.useEffect)(()=>{let e=e=>{if(e.source===n.current?.contentWindow){if(e.data?.type===`ryugi:error`){if(o.current>=_b)return;o.current+=1,s.current.onError(String(e.data.message).slice(0,500))}else e.data&&s.current.onMessage?.(e.data)}};return window.addEventListener(`message`,e),()=>window.removeEventListener(`message`,e)},[]),{frameRef:n,src:r,onLoad:()=>{o.current=0,r&&s.current.onLoaded(r);let e=a.current;a.current=null,e&&n.current?.contentWindow?.postMessage({type:`ryugi:restore`,state:e},`*`)}}}export{U_ as $,L as $i,Xd as $n,en as $r,Nh as $t,Ev as A,yt as Ai,Xf as An,Xn as Ar,Cg as At,pv as B,xe as Bi,Ef as Bn,yn as Br,fg as Bt,Jv as C,Ot as Ci,hm as Cn,ur as Cr,Rg as Ct,Nv as D,Yt as Di,Gp as Dn,nr as Dr,Ag as Dt,Pv as E,Ht as Ei,Wp as En,ir as Er,Mg as Et,Tv as F,Ve as Fi,Gf as Fn,On as Fr,gg as Ft,uv as G,fe as Gi,vf as Gn,ln as Gr,eg as Gt,vv as H,be as Hi,Tf as Hn,mn as Hr,ag as Ht,xv as I,Pe as Ii,Rf as In,Dn as Ir,pg as It,nv as J,ue as Ji,$ as Jn,an as Jr,Yh as Jt,sv as K,de as Ki,af as Kn,un as Kr,Wh as Kt,bv as L,Ne as Li,If as Ln,wn as Lr,mg as Lt,wv as M,st as Mi,Jf as Mn,Kn as Mr,xg as Mt,Av as N,Je as Ni,ep as Nn,Wn as Nr,yg as Nt,Cv as O,G as Oi,Qf as On,er as Or,Tg as Ot,kv as P,Ke as Pi,Wf as Pn,Hn as Pr,_g as Pt,J_ as Q,I as Qi,Qd as Qn,$t as Qr,Mh as Qt,mv as R,Te as Ri,Ff as Rn,bn as Rr,hg as Rt,Yv as S,Bt as Si,gm as Sn,fr as Sr,Gg as St,Bv as T,St as Ti,Xp as Tn,or as Tr,Pg as Tt,gv as U,U as Ui,wf as Un,pn as Ur,ig as Ut,yv as V,Se as Vi,Df as Vn,K as Vr,og as Vt,_v as W,he as Wi,_f as Wn,fn as Wr,rg as Wt,Q_ as X,re as Xi,nf as Xn,nn as Xr,Hh as Xt,ev as Y,se as Yi,sf as Yn,rn as Yr,Jh as Yt,Z_ as Z,ae as Zi,ef as Zn,tn as Zr,Rh as Zt,ey as _,zt as _i,Mm as _n,Tr as _r,o_ as _t,db as a,Vt as ai,uh as an,Fd as ar,v_ as at,Zv as b,xt as bi,bm as bn,gr as br,qg as bt,My as c,Jt as ci,nh as cn,_d as cr,Zg as ct,Ey as d,Nt as di,Em as dn,fi as dr,Xg as dt,te as ea,Xt as ei,kh as en,Yd as er,H_ as et,Cy as f,jt as fi,Am as fn,ui as fr,r_ as ft,cy as g,Et as gi,Tm as gn,Yr as gr,t_ as gt,py as h,Ft as hi,Fm as hn,Xr as hr,n_ as ht,mb as i,Gt as ii,dh as in,Pd as ir,x_ as it,Ov as j,mt as ji,Yf as jn,Jn as jr,Sg as jt,Sv as k,bt as ki,$f as kn,Qn as kr,wg as kt,ky as l,kt as li,Km as ln,Ed as lr,Qg as lt,gy as m,Pt as mi,Pm as mn,ii as mr,i_ as mt,vb as n,Dt as ni,bh as nn,Gd as nr,I_ as nt,fb as o,Lt as oi,ah as on,Od as or,u_ as ot,by as p,Mt as pi,Nm as pn,ai as pr,e_ as pt,rv as q,H as qi,of as qn,cn as qr,Uh as qt,pb as r,At as ri,ph as rn,Ud as rr,S_ as rt,ab as s,It as si,rh as sn,kd as sr,d_ as st,hb as t,Ut as ti,xh as tn,Jd as tr,L_ as tt,Oy as u,qt as ui,Cm as un,Hs as ur,$g as ut,$v as v,Rt as vi,Om as vn,br as vr,s_ as vt,Vv as w,Ct as wi,Zp as wn,cr as wr,Vg as wt,Xv as x,Tt as xi,ym as xn,mr as xr,Wg as xt,Qv as y,Kt as yi,Sm as yn,vr as yr,Yg as yt,hv as z,W as zi,Of as zn,vn as zr,ug as zt};
58
+ `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),S.contains(x)&&S.removeChild(x)}},[t]),(0,P.jsx)(iy,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:N.cloneElement(e,{ref:u})})}var oy=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=Zv(sy),d=(0,N.useId)(),f=(0,N.useRef)(n),p=(0,N.useRef)(r);Qv(()=>{f.current=n,p.current=r});let m=!0,h=(0,N.useMemo)(()=>(m=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!f.current&&!u.size&&p.current?.()})}),[n,u,r]);return a&&m&&(h={...h}),(0,N.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),N.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,P.jsx)(ay,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,P.jsx)($v.Provider,{value:h,children:e})};function sy(){return new Map}function cy(e=!0){let t=(0,N.useContext)($v);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,N.useId)();(0,N.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,N.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var ly=e=>e.key||``;function uy(e){let t=[];return N.Children.forEach(e,e=>{(0,N.isValidElement)(e)&&t.push(e)}),t}var dy=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=cy(o),f=(0,N.useMemo)(()=>uy(e),[e]),p=o&&!u?[]:f.map(ly),m=(0,N.useRef)(!0),h=Zv(()=>new Map),g=(0,N.useRef)(new Set),[_,v]=(0,N.useState)(f),[y,b]=(0,N.useState)(f);Qv(()=>{o&&!u&&!y.length&&d?.()},[u,o,y.length,d]),Qv(()=>{m.current=!1;for(let e=0;e<y.length;e++){let t=ly(y[e]);p.includes(t)?(h.delete(t),g.current.delete(t)):h.get(t)!==!0&&h.set(t,!1)}},[y,p.length,p.join(`-`)]);let x=[];if(f!==_){let e=[...f],t=0;for(let n of y){let r=p.indexOf(ly(n));r===-1?(e.splice(t++,0,n),x.push(n)):t=r+x.length+1}return x.every(e=>h.get(ly(e)))?e=f:a===`wait`&&(e=x),b(uy(e)),v(f),null}let{forceRender:S}=(0,N.useContext)(Xv);return(0,P.jsx)(P.Fragment,{children:y.map(e=>{let _=ly(e),b=o&&!u?!1:f===y||p.includes(_);return(0,P.jsx)(oy,{isPresent:b,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:b?void 0:()=>{if(g.current.has(_))return;if(h.has(_))g.current.add(_),h.set(_,!0);else return;let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(S?.(),v([]),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},_)})})},fy=N.createContext(void 0);function py(e){let t=N.useContext(fy);if(t===void 0&&!e)throw Error(Ne(47));return t}var my={...th,disabled:e=>e.disabled,instantType:e=>e.instantType===`trigger-change`&&!th.open(e)?void 0:e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,isPressOpenedByTrigger:(e,t)=>e.openChangeReason===`trigger-press`&&th.isOpenedByTrigger(e,t),isTouchPressOpen:(e,t)=>t&&e.openMethod===`touch`&&e.openChangeReason===`trigger-press`,hasTriggerFocusGuards:(e,t)=>th.isOpenedByTrigger(e,t)&&!e.focusManagerModal,modal:e=>e.modal,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},hy=class extends Km{constructor(e,t,n){let r=new Lm;super(_y(e,r,t,n),vy(r),my)}setOpen=(e,t)=>{let n=t.reason===Ct,r=t.reason===`trigger-press`&&t.event.detail===0,i=!e&&(t.reason===`escape-key`||t.reason==null),a=Am(t),o=this.select(`activeTriggerId`);if(!e&&t.reason===`close-press`&&t.trigger==null&&o!=null&&(t.trigger=this.context.triggerElements.getById(o)??this.select(`activeTriggerElement`)??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let n=km(this.state,e,t.trigger,a());n.openChangeReason=t.reason,this.update(n)};n?(this.context.stickIfOpen=!0,this.context.stickIfOpenTimeout.start(500,()=>{this.context.stickIfOpen=!1}),Sn.flushSync(s)):s();let c;r?c=`click`:i?c=`dismiss`:t.reason===`focus-out`&&(c=`focus`),this.set(`instantType`,c)}};function gy(){let e=new Lm,t=new Ah(Object.freeze(_y(void 0,e)),Object.freeze(vy(e)),my);return Object.assign(t,{setOpen:be})}function _y(e,t,n,r=!1){let i={...Ym(t,n,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i}function vy(e){return{popupRef:N.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:N.createRef(),beforeTriggerFocusGuardRef:N.createRef(),beforeContentFocusGuardRef:N.createRef(),stickIfOpenTimeout:new vn,stickIfOpen:!0,triggerElements:e}}var yy=Pd(function({props:e}){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,modal:o=!1,handle:s,triggerId:c,defaultTriggerId:l=null}=e,u=xy(s,{modal:o,open:r,openProp:n,activeTriggerId:l,triggerIdProp:c});u.useControlledProp(`openProp`,n),u.useControlledProp(`triggerIdProp`,c);let d=u.useState(`open`),f=u.useState(`mounted`),p=u.useState(`payload`);u.useContextCallback(`onOpenChange`,i),u.useContextCallback(`onOpenChangeComplete`,a),Im(u,d),Nm(u);let{forceUnmount:m}=Pm(d,u,()=>{u.context.stickIfOpen=!0,u.set(`openChangeReason`,null)});u.useSyncedValues({modal:o}),N.useEffect(()=>{d||u.context.stickIfOpenTimeout.clear()},[u,d]),N.useImperativeHandle(e.actionsRef,()=>({unmount:m,close:()=>u.setOpen(!1,G(Jt))}),[m,u]);let h=d||f||s!=null;return(0,P.jsxs)(fy.Provider,{value:u,children:[s&&(0,P.jsx)(Em,{handle:s,store:u}),h&&(0,P.jsx)(Sy,{store:u,modal:o}),typeof t==`function`?t({payload:p}):t]})});function by(e){return py(!0)?(0,P.jsx)(yy,{props:e}):(0,P.jsx)(om,{children:(0,P.jsx)(yy,{props:e})})}function xy(e,t){let n=Tm((e,n)=>new hy(t,e,n));return N.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}function Sy({store:e,modal:t}){let n=ym(e.useState(`floatingRootContext`),{outsidePressEvent:{mouse:t===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}}),r=n.reference,i=n.floating;return Fm(e,{activeTriggerProps:r,inactiveTriggerProps:r,popupProps:i}),null}var Cy=Fd(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,handle:s,payload:c,openOnHover:l=!1,delay:u=300,closeDelay:d=0,id:f,...p}=e,m=py(!0),h=nh(s)??m;if(!h)throw Error(Ne(74));let g=yt(f),_=h.useState(`isTriggerActive`,g),v=h.useState(`floatingRootContext`),y=h.useState(`isOpenedByTrigger`,g),b=h.useState(`triggerPopupId`,g),x=N.useRef(null),{registerTrigger:S,isMountedByThisTrigger:C}=Mm(g,x,h,{payload:c,disabled:a,openOnHover:l,closeDelay:d}),w=h.useState(`isPressOpenedByTrigger`,g),T=h.useState(`isTouchPressOpen`,l),E=h.useState(`hasTriggerFocusGuards`,g),D=ph(v,{enabled:!a&&l&&!T,mouseOnly:!0,move:!1,handleClose:kh(),restMs:u,delay:{close:d},triggerElementRef:x,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`}),O=gm(v,{stickIfOpen:U(()=>h.context.stickIfOpen)}),ee=V_(()=>h.select(`open`),e=>{h.set(`openMethod`,e)}),k=h.useState(`triggerProps`,C),{getButtonProps:A,buttonRef:j}=mn({disabled:a,native:o}),M={open(e){return w?Tf.open(e):wf.open(e)}},{handlePreFocusGuardFocus:te,handleFocusTargetFocus:F}=av(h,x),I=st(`button`,e,{state:{disabled:a,open:y},ref:[j,t,S,x],props:[O.reference,D,k,ee,{[Up]:``,id:g,"aria-haspopup":`dialog`,"aria-expanded":y,"aria-controls":b},p,A],stateAttributesMapping:M}),L=(0,P.jsx)(N.Fragment,{children:I},g);return E?(0,P.jsxs)(N.Fragment,{children:[(0,P.jsx)(Kf,{ref:h.context.beforeTriggerFocusGuardRef,onFocus:te}),L,(0,P.jsx)(Kf,{ref:h.context.triggerFocusTargetRef,onFocus:F})]}):L}),wy=N.createContext(void 0);function Ty(){let e=N.useContext(wy);if(e===void 0)throw Error(Ne(45));return e}var Ey=N.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return py().useState(`mounted`)||n?(0,P.jsx)(wy.Provider,{value:n,children:(0,P.jsx)(Zp,{ref:t,...r})}):null}),Dy=N.createContext(void 0);function Oy(){let e=N.useContext(Dy);if(!e)throw Error(Ne(46));return e}var ky=N.forwardRef(function(e,t){let{render:n,className:r,style:i,anchor:a,positionMethod:o,side:s,align:c,sideOffset:l,alignOffset:u,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:p,sticky:m,disableAnchorTracking:h=!1,collisionAvoidance:g=Gp,..._}=e,v=py(),y=Ty(),b=im(),x=v.useState(`floatingRootContext`),S=v.useState(`mounted`),C=v.useState(`open`),w=v.useState(`openChangeReason`),T=v.useState(`activeTriggerElement`),E=v.useState(`modal`),D=v.useState(`openMethod`),O=v.useState(`positionerElement`),ee=v.useState(`instantType`),k=v.useState(`transitionStatus`),A=eg({anchor:a,floatingRootContext:x,positionMethod:o,mounted:S,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:m,disableAnchorTracking:h,keepMounted:y,nodeId:b,collisionAvoidance:g,adaptiveOrigin:v.useState(`adaptiveOrigin`)});C_({store:v,domReference:x.useState(`domReferenceElement`),positionerElement:O,open:C});let j=E===!0&&w!==`trigger-hover`;I_(C&&j,D===`touch`,O,T);let M=v.useStateSetter(`positionerElement`),N=ig(e,{open:C,side:A.side,align:A.align,anchorHidden:A.anchorHidden,instant:ee},{styles:A.positionerStyles,transitionStatus:k,props:_,refs:[t,M],hidden:!S,inert:!C});return(0,P.jsxs)(Dy.Provider,{value:A,children:[S&&j&&(0,P.jsx)(S_,{inert:ag(!C),cutout:T}),(0,P.jsx)(am,{id:b,children:N})]})}),Ay=N.createContext(void 0);function jy(){let[e,t]=N.useState(0),n=U(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:N.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}var My=N.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=py(),l=Oy(),u=Yg(!0)!=null,{context:d,hasClosePart:f}=jy(),p=c.useState(`open`),m=c.useState(`openMethod`),h=c.useState(`instantType`),g=c.useState(`transitionStatus`),_=c.useState(`popupProps`),v=c.useState(`titleElementId`),y=c.useState(`descriptionElementId`),x=c.useState(`modal`),S=c.useState(`mounted`),C=c.useState(`openChangeReason`),w=c.useState(`activeTriggerElement`),T=c.useState(`floatingRootContext`),E=T.useState(`floatingId`),D=c.useState(`disabled`),O=c.useState(`openOnHover`),ee=c.useState(`closeDelay`);On({open:p,ref:c.context.popupRef,onComplete(){p&&c.context.onOpenChangeComplete?.(!0)}}),dh(T,{enabled:O&&!D,closeDelay:ee});let k=a===void 0?wm(c.context.popupRef):a,A=x!==!1&&f;c.useSyncedValue(`focusManagerModal`,A);let j=c.useStateSetter(`popupElement`),M=st(`div`,e,{state:{open:p,side:l.side,align:l.align,instant:h,transitionStatus:g},ref:[t,c.context.popupRef,j],props:[_,{id:E,role:`dialog`,...Cm,"aria-labelledby":v,"aria-describedby":y,onKeyDown(e){u&&r_.has(e.key)&&e.stopPropagation()}},rg(g),s],stateAttributesMapping:Df});return(0,P.jsx)(hm,{context:T,openInteractionType:m,modal:A,disabled:!S||C===`trigger-hover`,initialFocus:k,returnFocus:o,restoreFocus:`popup`,getInsideElements:()=>[c.context.beforeTriggerFocusGuardRef.current],previousFocusableElement:b(w)?w:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,P.jsx)(Ay.Provider,{value:d,children:M})})}),Ny=(e,t)=>()=>{},Py=[.32,.72,0,1],Fy={animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98,transition:{duration:.12,ease:[.4,0,1,1]}},initial:{opacity:0,scale:.97},transition:{duration:.22,ease:Py}},Iy={duration:.18,ease:Py},Ly=(0,N.createContext)(null),Ry=()=>(0,N.use)(Ly),zy=Ly.Provider,By=re({block:`modal`,dataAttributes:[`draggable`,`fullscreen`],elements:[`trigger`,`backdrop`,`viewport`,`wrapper`,`header`,`title`,`description`,`header-actions`,`fullscreen-toggle`,`close`,`content`,`loading`,`footer`]}),Vy={backdrop:{kpwlN0:`lb10a8y8t`,kmkexE:`lb11o4mfb`,kWkggS:`lb2643`,kSiTet:`lb1i2unn7`,kVAEAm:`lbixxii4`,kY2c9j:`lb1i7x82i`,$$css:!0},close:{k87sOh:`lbfr5jun`,kt4wiu:`lb9q68il`,kVAEAm:`lb10l6tqk`,$$css:!0},closeInline:{kVAM5u:`lb181nr7w`,kaIpWk:`lb4pepcl`,ksu8eU:`lbng3xce`,kMzoRj:`lbfn42iu`,kWkggS:`lbjbqb8w lb1ri6zej`,kMwMTN:`lb53gy9q lb1bxu9lh`,kmkexE:`lbxgdrqz`,kkrTdU:`lb1ypdohk`,k3aq6I:`lbcum6zn`,k1xSpc:`lb78zum5`,kGNEyG:`lb6s0dn4`,kjj79g:`lbl56j7k`,kZKoxP:`lb10w6t97`,kmVPX3:`lb1717udv`,kzqmXN:`lb1td3qas`,$$css:!0},content:{kg3NbH:`lb1hr3lfm`,kGO01o:`lb1l90r2v`,kLKAdn:`lbexx8yu`,kXHlph:`lb6ikm8r`,kORKVm:`lb1odjw0f`,$$css:!0},contentNoHeader:{kLKAdn:`lbyamay9`,$$css:!0},denyAnimation:{k44tkh:`lbb8lv0f`,kKVMdj:`lbe2vv0f`,kyAemX:`lb1bx5ho5`,$$css:!0},footer:{kOIVth:`lb167g77z`,k8WAf4:`lb10dr8xq`,kg3NbH:`lb1hr3lfm`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lb13a6bvl`,$$css:!0},fullscreenPopupInner:{kZKoxP:`lb1mkwkuc`,kskxy:`lb1bsd8ea`,ks0D6T:`lbc408io`,kzqmXN:`lb1ng3b2o`,$$css:!0},fullscreenToggle:{kVAM5u:`lb181nr7w`,kaIpWk:`lb4pepcl`,ksu8eU:`lbng3xce`,kMzoRj:`lbfn42iu`,kWkggS:`lbjbqb8w lb1ri6zej`,kMwMTN:`lb53gy9q lb1bxu9lh`,kmkexE:`lbxgdrqz`,kkrTdU:`lb1ypdohk`,k3aq6I:`lbcum6zn`,k1xSpc:`lb78zum5`,kGNEyG:`lb6s0dn4`,kjj79g:`lbl56j7k`,kZKoxP:`lb1fgtraw`,kmVPX3:`lb1717udv`,kzqmXN:`lbgd8bvy`,$$css:!0},header:{k8WAf4:`lb1vvogim`,kg3NbH:`lb1hr3lfm`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lb1qughib`,kAzted:`lb1wxaq2x`,$$css:!0},headerActions:{kOIVth:`lb1jnr06f`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,k71WvV:`lb1lxpwgx`,$$css:!0},headerDraggable:{kkrTdU:`lbt0e3qv`,kfSwDN:`lb87ps6o`,$$css:!0},loading:{k8WAf4:`lbd11lqx`,kg3NbH:`lbnjsko4`,k1xSpc:`lb78zum5`,kjj79g:`lbl56j7k`,$$css:!0},loadingSpinner:{kVAM5u:`lb181nr7w`,kaIpWk:`lb16rqkct`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbdh2fpr`,k44tkh:`lbdz8niu`,ko0y90:`lba4qsjk`,kKVMdj:`lb1v0ides`,kyAemX:`lb1esw782`,kLZC3w:`lb1v8p93f`,k1xSpc:`lb1rg5ohu`,kZKoxP:`lb1v9usgg`,kzqmXN:`lb6jxa94`,$$css:!0},loadingSpinnerLarge:{kZKoxP:`lbxk0z11`,kzqmXN:`lbvy4d1p`,$$css:!0},popup:{kpwlN0:`lb10a8y8t`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lbl56j7k`,kfzvcC:`lb47corl`,kVAEAm:`lbixxii4`,kY2c9j:`lb1mblwae`,$$css:!0},popupInner:{kaIpWk:`lb4pepcl`,kVQacm:`lbb3r6kr`,kWkggS:`lb1w937bt`,kGVxlE:`lb4hq661`,kB7OPa:`lb9f619`,k1xSpc:`lb78zum5`,kXwgrk:`lbdt5ytf`,kSiTet:`lb1i2unn7`,kfzvcC:`lb67bb7w`,kVAEAm:`lb1n2onr6`,k3aq6I:`lbg71pz7 lb1htj8e4`,kIyJzY:`lb1ofcnca lb16bar5h`,k1ekBW:`lbwcsmn1`,kAMwcw:`lbmea1ks lb1gcu4m7`,kskxy:`lbw2jzks`,ks0D6T:`lb1lwm3bp`,kzqmXN:`lbkxa9zd`,$$css:!0},title:{kogj98:`lb1ghz6dp`,kMwMTN:`lb66ogz0`,kGuDYH:`lbif65rj`,k63SB2:`lb1s688f`,kLWn49:`lb37zpob`,$$css:!0},viewport:{kpwlN0:`lb10a8y8t`,kVQacm:`lbysyzu8`,kVAEAm:`lbixxii4`,kY2c9j:`lb1i7x82i`,$$css:!0}},Hy=(e,t,n)=>{let r=se(ue(e).className,n);return typeof t==`function`?e=>se(r,t(e)):se(r,t)},Uy=(0,N.createContext)(null),Wy=(0,N.createContext)(null),Gy=()=>(0,N.use)(Uy),Ky=()=>(0,N.use)(Wy),qy=({open:e,children:t,onExitComplete:n,zIndex:r,...i})=>{let[a,o]=(0,N.useState)(!!e);(0,N.useEffect)(()=>{e&&o(!0)},[e]);let s=(0,N.useCallback)(()=>{o(!1),n?.()},[n]),c=(0,N.useMemo)(()=>({onExitComplete:s}),[s]),{zIndex:l,ref:u}=Ag(`modal`,r),d=(0,N.useMemo)(()=>({popupRef:u,zIndex:l}),[l,u]);return a?(0,P.jsx)(Uy,{value:e,children:(0,P.jsx)(Wy,{value:c,children:(0,P.jsx)(zy,{value:d,children:(0,P.jsx)(Jv,{modal:!0,open:!0,...i,children:t})})})}):null},Jy=({zIndex:e,children:t,...n})=>{let{zIndex:r,ref:i}=Ag(`modal`,e),a=(0,N.useMemo)(()=>({popupRef:i,zIndex:r}),[r,i]);return(0,P.jsx)(zy,{value:a,children:(0,P.jsx)(Jv,{modal:!0,...n,children:t})})},Yy=({open:e,onExitComplete:t,...n})=>e===void 0?(0,P.jsx)(Jy,{...n}):(0,P.jsx)(qy,{open:e,onExitComplete:t,...n}),Xy=({container:e,...t})=>{let n=L();return(0,P.jsx)(Vv,{container:e??n??void 0,...t})},Zy=({className:e,style:t,...n})=>{let r=Gy(),i=Ry(),a=F(),o=i?.zIndex===void 0?void 0:{zIndex:i.zIndex};return r===null?(0,P.jsx)(Nv,{...n,style:{...o,...t},className:Hy(Vy.backdrop,e,By(`backdrop`))}):(0,P.jsx)(Nv,{...n,style:{...o,...t,transition:`none`},className:se(ue(Vy.backdrop).className,By(`backdrop`),e),render:(0,P.jsx)(a.div,{animate:{opacity:+!!r},initial:{opacity:0},transition:Iy})})},Qy=({className:e,children:t,width:n,style:r,motionProps:i,panelClassName:a,panelData:o,panelXstyle:s,popupStyle:c,ref:l,xstyle:u,...d})=>{let f=Gy(),p=Ky(),m=Ry(),h=F(),g=m?.zIndex===void 0?void 0:{zIndex:m.zIndex+1},_=kd([l,m?.popupRef]);return f!==null&&p?(0,P.jsx)(Bv,{...d,ref:_,style:{...g,...c},className:se(ue(Vy.popup,u).className,By(`wrapper`),e),children:(0,P.jsx)(dy,{onExitComplete:p.onExitComplete,children:f?(0,N.createElement)(h.div,{...Fy,...i,key:`modal-popup-panel`,...o,style:{maxWidth:n??void 0,transition:`none`,...r},className:se(ue(Vy.popupInner,s).className,By(),a)},t):null})}):(0,P.jsx)(Bv,{...d,ref:_,style:{...g,...c},className:Hy([Vy.popup,u],e,By(`wrapper`)),children:(0,P.jsx)(`div`,{...o,...H([Vy.popupInner,s],se(By(),a),{maxWidth:n??void 0,...r}),children:t})})},$y=({className:e,style:t,xstyle:n,...r})=>(0,P.jsx)(`div`,{...r,...H([Vy.header,n],se(By(`header`),e),t)}),eb=({className:e,xstyle:t,...n})=>(0,P.jsx)(Yv,{...n,className:Hy([Vy.title,t],e,By(`title`))}),tb=({className:e,style:t,xstyle:n,...r})=>(0,P.jsx)(`div`,{...r,...H([Vy.content,n],se(By(`content`),e),t)}),nb=({className:e,style:t,xstyle:n,...r})=>(0,P.jsx)(`div`,{...r,...H([Vy.footer,n],se(By(`footer`),e),t)}),rb=({className:e,children:t,xstyle:n,...r})=>(0,P.jsx)(Pv,{...r,className:Hy([Vy.closeInline,Vy.close,de.info,n],e,By(`close`)),children:t??(0,P.jsx)(vr,{size:16})}),ib=(0,N.createContext)({close:()=>void 0,setCanDismissByClickOutside:()=>void 0}),ab=()=>(0,N.use)(ib),ob=({children:e,root:t})=>{let n=L(),r=t??n??document.body;return(0,Sn.createPortal)(e,r)},sb=({config:e})=>{let{close:t}=ab(),[n,r]=(0,N.useState)(!1),{cancelText:i=`Cancel`,content:a,okButtonProps:o,okText:s=`OK`,onCancel:c,onOk:l}=e,u=(0,N.useCallback)(()=>{t(),c?.()},[t,c]),d=(0,N.useCallback)(async()=>{if(l)try{let e=l();e&&typeof e.then==`function`&&(r(!0),await e,r(!1))}catch{r(!1);return}t()},[t,l]);return(0,P.jsxs)(P.Fragment,{children:[a&&(0,P.jsx)(`div`,{style:{padding:`12px 16px`},children:a}),(0,P.jsxs)(nb,{children:[(0,P.jsx)(ai,{onClick:u,children:i}),(0,P.jsx)(ai,{loading:n,type:`primary`,...o,onClick:d,children:s})]})]})};sb.displayName=`ConfirmBody`;var cb=0;function lb(){let e=cb++,t=e===0?`BaseModalHost`:`BaseModalHost-${e}`,n=[],r=0,i=new Set,a=()=>i.forEach(e=>e()),o=e=>(i.add(e),()=>i.delete(e)),s=[],c=()=>n,l=()=>s,u=(e,t)=>{let r=!1;n=n.map(n=>n.id===e?(r=!0,{...n,props:{...n.props,...t}}):n),r&&a()},d=e=>{u(e,{open:!1})},f=e=>{let t=n.filter(t=>t.id!==e);t.length!==n.length&&(n=t,a())},p=(0,N.memo)(({entry:e})=>{let{id:t,props:n}=e,{children:r,classNames:i,content:a,footer:o,maskClosable:s,onOpenChange:c,onOpenChangeComplete:l,open:p,styles:m,title:h,width:g}=n,_=p??!0,v=(0,N.useCallback)((e,n)=>{(e||s!==!1||n?.reason!==`outside-press`)&&(e||d(t),c?.(e))},[t,s,c]),y=(0,N.useCallback)(()=>{l?.(!1),f(t)},[t,l]),b=(0,N.useCallback)(()=>d(t),[t]),x=(0,N.useCallback)(e=>u(t,{maskClosable:e}),[t]),S=h!==void 0&&h!==!1&&h!==null;return(0,P.jsx)(ib,{value:{close:b,setCanDismissByClickOutside:x},children:(0,P.jsx)(Yy,{open:_,onExitComplete:y,onOpenChange:v,children:(0,P.jsxs)(Xy,{children:[(0,P.jsx)(Zy,{className:i?.backdrop,style:m?.backdrop}),(0,P.jsxs)(Qy,{className:i?.popup,popupStyle:m?.popup,width:g,children:[S&&(0,P.jsxs)($y,{className:i?.header,style:m?.header,children:[(0,P.jsx)(eb,{className:i?.title,style:m?.title,children:h}),(0,P.jsx)(rb,{className:i?.close,style:m?.close})]}),(0,P.jsx)(tb,{className:i?.content,style:m?.content,xstyle:!S&&Vy.contentNoHeader,children:a??r}),o]})]})})})});p.displayName=`ModalStackItem`;let m=(0,N.memo)(({stack:e})=>og()?e.map(e=>(0,P.jsx)(p,{entry:e},e.id)):null);m.displayName=`ModalStackRenderer`;let h=({root:e})=>{let n=(0,N.useSyncExternalStore)(o,c,l),r=og();return(0,N.useEffect)(()=>{if(!r)return;let n=e??document.body;return Ny(t,n)},[r,e]),!r||n.length===0?null:(0,P.jsx)(ob,{root:e,children:(0,P.jsx)(m,{stack:n})})},g=e=>{let t=`base-modal-${Date.now()}-${r++}`;return n=[...n,{id:t,props:{...e,open:e.open??!0}}],a(),{close:()=>d(t),destroy:()=>f(t),setCanDismissByClickOutside:e=>u(t,{maskClosable:e}),update:e=>u(t,e)}};return{ModalHost:h,confirmModal:e=>{let t=g({content:(0,P.jsx)(sb,{config:e}),styles:{content:{padding:0}},title:e.title,width:e.width??420});return{close:t.close,destroy:t.destroy}},createModal:g}}var ub=lb(),db=ub.ModalHost,fb=ub.createModal;ub.confirmModal;var pb=()=>({version:1,threads:[]});function mb(e){if(e.status===`resolved`)return null;let t=e.messages.filter(e=>!e.deleted).at(-1);return t?t.author===`human`?`agent`:`human`:null}var hb={"Claude Code":`ClaudeCode`,"Claude Cowork":`Claude`,Codex:`Codex`,Cursor:`Cursor`,"Gemini CLI":`GeminiCLI`,"GitHub Copilot":`GithubCopilot`,"Kilo Code":`KiloCode`,OpenCode:`OpenCode`,"Qwen Code":`Qwen`,Antigravity:`Antigravity`,Goose:`Goose`,Amp:`Amp`,Cline:`Cline`,"Roo Code":`RooCode`,Devin:`Devin`,Replit:`Replit`,v0:`V0`},gb=e=>hb[e];function _b({author:e,name:t}){let n=t??(e===`human`?`你`:`Agent`);return{label:n,initial:[...n][0].toUpperCase()}}var vb=(e,t)=>{if(t){if(e&&t===`#000`)return`0 0 0 1px rgba(255,255,255,0.1) inset`;if(!e&&t===`#fff`)return`0 0 0 1px rgba(0,0,0,0.05) inset`}},yb=(0,N.memo)(({shape:e=`circle`,color:t=`#fff`,background:n,size:r,style:i,iconMultiple:a=.75,Icon:o,iconStyle:s,iconClassName:c,...l})=>{let{isDarkMode:u}=Ed();return(0,P.jsx)(fi,{flex:`none`,style:{background:n,borderRadius:e===`circle`?`50%`:Math.floor(r*.1),boxShadow:vb(u,n),color:t,height:r,overflow:`hidden`,width:r,...i},...l,children:o&&(0,P.jsx)(o,{className:c,color:t,size:r,style:{transform:`scale(${a})`,...s}})})}),bb=(0,N.memo)(({Icon:e,style:t,Text:n,color:r,size:i=24,spaceMultiple:a=1,textMultiple:o=1,extra:s,extraStyle:c,showText:l=!0,showLogo:u=!0,extraClassName:d,iconProps:f,inverse:p,...m})=>{let h=e&&u&&(0,P.jsx)(e,{size:i,...f,style:p?{marginLeft:i*a,...f?.style}:{marginRight:i*a,...f?.style}}),g=l&&n&&(0,P.jsx)(n,{size:i*o});return(0,P.jsxs)(ui,{align:`center`,flex:`none`,horizontal:!0,justify:`flex-start`,style:{color:r,...t},...m,children:[p?(0,P.jsxs)(P.Fragment,{children:[g,h]}):(0,P.jsxs)(P.Fragment,{children:[h,g]}),s&&(0,P.jsx)(`span`,{className:d,style:{fontSize:i*o*.95,lineHeight:1,...c},children:s})]})}),xb=/\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;function Sb(e){return Array.from(e.match(xb)??[])}function Cb(e){return Sb(e).map(e=>e.toLowerCase()).join(`-`)}var wb=e=>{let t=(0,N.useId)(),n=`lobe-icons-${Cb(e)}-${t}`;return(0,N.useMemo)(()=>({fill:`url(#${n})`,id:n}),[e])},Tb=(e,t)=>{let n=(0,N.useId)();return(0,N.useMemo)(()=>Array.from({length:t},(t,r)=>{let i=`lobe-icons-${Cb(e)}-${r}-${n}`;return{fill:`url(#${i})`,id:i}}),[e,t,n])},Eb=.8,Db=.3,Ob=`#F34E3F`,kb=`#000`,Ab=Ob,jb=.6,Mb=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:`Amp`}),(0,P.jsx)(`path`,{d:`M15.087 23.18L12.03 24l-2.097-7.823-5.738 5.738-2.251-2.251 5.718-5.719-7.769-2.082.82-3.057 11.294 3.08 3.08 11.295z`}),(0,P.jsx)(`path`,{d:`M19.505 18.762l-3.057.82-2.564-9.573-9.572-2.564.819-3.057 11.295 3.079 3.08 11.295z`}),(0,P.jsx)(`path`,{d:`M23.893 14.374l-3.057.82-2.565-9.572L8.7 3.057 9.52 0l11.295 3.08 3.079 11.294z`})]})),Nb=(0,N.memo)(({...e})=>(0,P.jsx)(yb,{Icon:Mb,"aria-label":`Amp`,background:kb,color:Ab,iconMultiple:jb,...e})),Pb=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:`Amp`}),(0,P.jsx)(`path`,{d:`M15.087 23.18L12.03 24l-2.097-7.823-5.738 5.738-2.251-2.251 5.718-5.719-7.769-2.082.82-3.057 11.294 3.08 3.08 11.295z`,fill:`#F34E3F`}),(0,P.jsx)(`path`,{d:`M19.505 18.762l-3.057.82-2.564-9.573-9.572-2.564.819-3.057 11.295 3.079 3.08 11.295z`,fill:`#F34E3F`}),(0,P.jsx)(`path`,{d:`M23.893 14.374l-3.057.82-2.565-9.572L8.7 3.057 9.52 0l11.295 3.08 3.079 11.294z`,fill:`#F34E3F`})]})),Fb=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 54 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:`Amp`}),(0,P.jsx)(`path`,{d:`M44.055 2C48.405 2 52 5.114 52 10.002c0 5.149-3.66 8.838-8.39 8.838-1.668 0-3.186-.311-4.435-1.015a6.072 6.072 0 01-2.443-2.53l-1.212 8.492-.03.213h-2.447l.041-.285 3.087-21.269h2.424l-.256 1.581C39.801 2.69 41.772 2 44.055 2zm-33.666.028c1.668 0 3.193.312 4.45 1.018a6.084 6.084 0 012.454 2.546l.409-2.932.03-.214h2.419l-2.264 15.763-.03.213h-2.42l.234-1.604c-1.45 1.359-3.443 2.05-5.726 2.05-4.35 0-7.945-3.114-7.945-8.002 0-5.149 3.66-8.838 8.39-8.838zm12.292 16.394h-2.42L22.555 2.66l.03-.213h2.417l-2.32 15.976zm4.354 0h-2.419L26.91 2.66l.03-.213h2.417l-2.32 15.976zM33.71 2.446l-2.32 15.976h-2.42L31.264 2.66l.03-.213h2.417zM10.64 4.143c-3.675 0-6.143 2.932-6.143 6.612 0 1.58.498 3.08 1.48 4.181.976 1.097 2.449 1.817 4.44 1.817 3.674 0 6.143-2.959 6.143-6.64 0-1.78-.617-3.27-1.657-4.314-1.04-1.043-2.517-1.656-4.264-1.656zm32.942-.027c-3.673 0-6.142 2.958-6.142 6.639 0 1.78.617 3.27 1.657 4.313 1.04 1.044 2.517 1.657 4.263 1.657 3.675 0 6.143-2.932 6.143-6.611 0-1.581-.498-3.081-1.479-4.182-.977-1.097-2.45-1.817-4.442-1.817z`})]})),Ib=(0,N.memo)(({type:e=`mono`,...t})=>(0,P.jsx)(bb,{Icon:e===`color`?Pb:Mb,Text:Fb,"aria-label":`Amp`,spaceMultiple:Db,textMultiple:Eb,...t})),Lb=Mb;Lb.Color=Pb,Lb.Text=Fb,Lb.Combine=Ib,Lb.Avatar=Nb,Lb.colorPrimary=Ob,Lb.title=`Amp`;var Rb=`Antigravity`,zb=.3,Bb=`#fff`,Vb=Bb,Hb=`#fff`,Ub=.7,Wb=(0,N.memo)(({size:e=`1em`,style:t,...n})=>{let[r,i,a,o,s,c,l,u,d,f,p,m]=Tb(Rb,12);return(0,P.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:Rb}),(0,P.jsx)(`mask`,{height:`23`,id:r.id,maskUnits:`userSpaceOnUse`,width:`24`,x:`0`,y:`1`,children:(0,P.jsx)(`path`,{d:`M21.751 22.607c1.34 1.005 3.35.335 1.508-1.508C17.73 15.74 18.904 1 12.037 1 5.17 1 6.342 15.74.815 21.1c-2.01 2.009.167 2.511 1.507 1.506 5.192-3.517 4.857-9.714 9.715-9.714 4.857 0 4.522 6.197 9.714 9.715z`,fill:`#fff`})}),(0,P.jsxs)(`g`,{mask:r.fill,children:[(0,P.jsx)(`g`,{filter:i.fill,children:(0,P.jsx)(`path`,{d:`M-1.018-3.992c-.408 3.591 2.686 6.89 6.91 7.37 4.225.48 7.98-2.043 8.387-5.633.408-3.59-2.686-6.89-6.91-7.37-4.225-.479-7.98 2.043-8.387 5.633z`,fill:`#FFE432`})}),(0,P.jsx)(`g`,{filter:a.fill,children:(0,P.jsx)(`path`,{d:`M15.269 7.747c1.058 4.557 5.691 7.374 10.348 6.293 4.657-1.082 7.575-5.653 6.516-10.21-1.058-4.556-5.691-7.374-10.348-6.292-4.657 1.082-7.575 5.653-6.516 10.21z`,fill:`#FC413D`})}),(0,P.jsx)(`g`,{filter:o.fill,children:(0,P.jsx)(`path`,{d:`M-12.443 10.804c1.338 4.703 7.36 7.11 13.453 5.378 6.092-1.733 9.947-6.95 8.61-11.652C8.282-.173 2.26-2.58-3.833-.848-9.925.884-13.78 6.1-12.443 10.804z`,fill:`#00B95C`})}),(0,P.jsx)(`g`,{filter:s.fill,children:(0,P.jsx)(`path`,{d:`M-12.443 10.804c1.338 4.703 7.36 7.11 13.453 5.378 6.092-1.733 9.947-6.95 8.61-11.652C8.282-.173 2.26-2.58-3.833-.848-9.925.884-13.78 6.1-12.443 10.804z`,fill:`#00B95C`})}),(0,P.jsx)(`g`,{filter:c.fill,children:(0,P.jsx)(`path`,{d:`M-7.608 14.703c3.352 3.424 9.126 3.208 12.896-.483 3.77-3.69 4.108-9.459.756-12.883C2.69-2.087-3.083-1.871-6.853 1.82c-3.77 3.69-4.108 9.458-.755 12.883z`,fill:`#00B95C`})}),(0,P.jsx)(`g`,{filter:l.fill,children:(0,P.jsx)(`path`,{d:`M9.932 27.617c1.04 4.482 5.384 7.303 9.7 6.3 4.316-1.002 6.971-5.448 5.93-9.93-1.04-4.483-5.384-7.304-9.7-6.301-4.316 1.002-6.971 5.448-5.93 9.93z`,fill:`#3186FF`})}),(0,P.jsx)(`g`,{filter:u.fill,children:(0,P.jsx)(`path`,{d:`M2.572-8.185C.392-3.329 2.778 2.472 7.9 4.771c5.122 2.3 11.042.227 13.222-4.63 2.18-4.855-.205-10.656-5.327-12.955-5.122-2.3-11.042-.227-13.222 4.63z`,fill:`#FBBC04`})}),(0,P.jsx)(`g`,{filter:d.fill,children:(0,P.jsx)(`path`,{d:`M-3.267 38.686c-5.277-2.072 3.742-19.117 5.984-24.83 2.243-5.712 8.34-8.664 13.616-6.592 5.278 2.071 11.533 13.482 9.29 19.195-2.242 5.713-23.613 14.298-28.89 12.227z`,fill:`#3186FF`})}),(0,P.jsx)(`g`,{filter:f.fill,children:(0,P.jsx)(`path`,{d:`M28.71 17.471c-1.413 1.649-5.1.808-8.236-1.878-3.135-2.687-4.531-6.201-3.118-7.85 1.412-1.649 5.1-.808 8.235 1.878s4.532 6.2 3.119 7.85z`,fill:`#749BFF`})}),(0,P.jsx)(`g`,{filter:p.fill,children:(0,P.jsx)(`path`,{d:`M18.163 9.077c5.81 3.93 12.502 4.19 14.946.577 2.443-3.612-.287-9.727-6.098-13.658-5.81-3.931-12.502-4.19-14.946-.577-2.443 3.612.287 9.727 6.098 13.658z`,fill:`#FC413D`})}),(0,P.jsx)(`g`,{filter:m.fill,children:(0,P.jsx)(`path`,{d:`M-.915 2.684c-1.44 3.473-.97 6.967 1.05 7.804 2.02.837 4.824-1.3 6.264-4.772 1.44-3.473.97-6.967-1.05-7.804-2.02-.837-4.824 1.3-6.264 4.772z`,fill:`#FFEE48`})})]}),(0,P.jsxs)(`defs`,{children:[(0,P.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`17.587`,id:i.id,width:`19.838`,x:`-3.288`,y:`-11.917`,children:[(0,P.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,P.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,P.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`1.117`})]}),(0,P.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`38.565`,id:a.id,width:`38.9`,x:`4.251`,y:`-13.493`,children:[(0,P.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,P.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,P.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`5.4`})]}),(0,P.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`36.517`,id:o.id,width:`40.955`,x:`-21.889`,y:`-10.592`,children:[(0,P.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,P.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,P.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`4.591`})]}),(0,P.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`36.517`,id:s.id,width:`40.955`,x:`-21.889`,y:`-10.592`,children:[(0,P.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,P.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,P.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`4.591`})]}),(0,P.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`36.595`,id:c.id,width:`36.632`,x:`-19.099`,y:`-10.278`,children:[(0,P.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,P.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,P.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`4.591`})]}),(0,P.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`34.087`,id:l.id,width:`33.533`,x:`.981`,y:`8.758`,children:[(0,P.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,P.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,P.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`4.363`})]}),(0,P.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`35.276`,id:u.id,width:`35.978`,x:`-6.143`,y:`-21.659`,children:[(0,P.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,P.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,P.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`3.954`})]}),(0,P.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`46.523`,id:d.id,width:`45.114`,x:`-11.96`,y:`-.46`,children:[(0,P.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,P.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,P.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`3.531`})]}),(0,P.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`24.054`,id:f.id,width:`25.094`,x:`10.485`,y:`.58`,children:[(0,P.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,P.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,P.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`3.159`})]}),(0,P.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`30.007`,id:p.id,width:`33.508`,x:`5.833`,y:`-12.467`,children:[(0,P.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,P.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,P.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`2.669`})]}),(0,P.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`26.151`,id:m.id,width:`22.194`,x:`-8.355`,y:`-8.876`,children:[(0,P.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,P.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,P.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`3.303`})]})]})]})}),Gb=(0,N.memo)(({...e})=>(0,P.jsx)(yb,{Icon:Wb,"aria-label":Rb,background:Vb,color:Hb,iconMultiple:Ub,...e})),Kb=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:Rb}),(0,P.jsx)(`path`,{d:`M21.751 22.607c1.34 1.005 3.35.335 1.508-1.508C17.73 15.74 18.904 1 12.037 1 5.17 1 6.342 15.74.815 21.1c-2.01 2.009.167 2.511 1.507 1.506 5.192-3.517 4.857-9.714 9.715-9.714 4.857 0 4.522 6.197 9.714 9.715z`})]})),qb=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 174 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:Rb}),(0,P.jsx)(`path`,{d:`M165.834 22.734a6.851 6.851 0 01-.148.317 8.749 8.749 0 01-.105.232h-1.856c.085-.183.176-.387.274-.612.099-.21.218-.47.359-.78l.232-.506c.07-.155.147-.33.232-.527.098-.183.211-.415.337-.696l.97-2.108-4.449-10.078h1.94l3.373 7.99h.042l3.247-7.99h1.94l-5.566 12.84c-.056.126-.148.323-.274.59-.113.281-.225.548-.337.801a6.679 6.679 0 01-.211.527zM154.865 9.6V7.976h1.898V4.94h1.792v3.036h2.635V9.6h-2.635v5.861c0 .604.119 1.054.358 1.35.253.28.625.421 1.117.421.225 0 .436-.028.633-.084.197-.07.387-.162.569-.274v1.75a3.916 3.916 0 01-.696.19 3.392 3.392 0 01-.78.084c-.899 0-1.623-.267-2.171-.802-.548-.548-.822-1.279-.822-2.192V9.6h-1.898zM151.661 18.729V7.976h1.792V18.73h-1.792zm.885-12.734a1.24 1.24 0 01-.907-.38 1.24 1.24 0 01-.379-.907c0-.365.127-.667.379-.906a1.24 1.24 0 01.907-.38c.366 0 .668.127.907.38.253.239.379.541.379.906 0 .352-.126.654-.379.907-.239.253-.541.38-.907.38zM144.496 18.729l-4.343-10.753h1.918l3.332 8.644h.042l3.373-8.644h1.876l-4.385 10.753h-1.813zM134.384 19.066c-.801 0-1.503-.154-2.108-.463a3.696 3.696 0 01-1.434-1.266 3.471 3.471 0 01-.506-1.855c0-.787.204-1.447.612-1.982.408-.548.956-.955 1.644-1.223.689-.28 1.448-.421 2.277-.421.478 0 .921.042 1.329.126.407.07.759.162 1.054.274.309.099.541.197.696.296v-.654c0-.815-.289-1.462-.865-1.94-.576-.478-1.279-.716-2.108-.716-.591 0-1.146.133-1.666.4a2.964 2.964 0 00-1.201 1.075l-1.35-1.012a4.344 4.344 0 011.054-1.096c.422-.31.9-.548 1.434-.717a5.848 5.848 0 011.729-.253c1.462 0 2.607.387 3.436 1.16.83.773 1.244 1.813 1.244 3.12v6.81h-1.707v-1.54h-.085c-.182.31-.443.612-.78.907a4.347 4.347 0 01-1.202.696 3.938 3.938 0 01-1.497.274zm.169-1.58c.619 0 1.181-.155 1.687-.465.52-.309.935-.724 1.244-1.244.309-.52.464-1.089.464-1.707-.324-.225-.731-.408-1.223-.549a5.592 5.592 0 00-1.581-.21c-1.027 0-1.779.21-2.256.632-.478.422-.717.942-.717 1.56 0 .59.225 1.069.674 1.434.45.365 1.02.548 1.708.548zM123.833 18.729V7.976h1.708v1.73h.084c.14-.408.372-.76.696-1.055.337-.31.716-.548 1.138-.717a3.312 3.312 0 011.286-.274c.324 0 .577.021.759.063.183.029.352.078.506.148v1.94a3.05 3.05 0 00-.738-.253 3.584 3.584 0 00-.78-.085 2.5 2.5 0 00-1.433.443 3.297 3.297 0 00-1.055 1.18 3.508 3.508 0 00-.379 1.624v6.009h-1.792zM116.438 23.62c-.913 0-1.7-.154-2.361-.464-.646-.295-1.173-.674-1.581-1.138-.394-.464-.675-.935-.843-1.413l1.644-.695c.225.59.604 1.082 1.139 1.476.548.407 1.215.61 2.002.61 1.125 0 1.989-.33 2.594-.99.604-.646.906-1.553.906-2.72v-1.202h-.084c-.337.52-.822.963-1.455 1.329-.632.351-1.37.527-2.213.527a4.76 4.76 0 01-2.552-.717c-.759-.478-1.363-1.139-1.813-1.982-.45-.857-.674-1.841-.674-2.951s.224-2.088.674-2.931c.45-.857 1.054-1.525 1.813-2.003a4.76 4.76 0 012.552-.717c.843 0 1.581.183 2.213.548.633.352 1.118.794 1.455 1.329h.084v-1.54h1.708v10.331c0 1.195-.232 2.186-.696 2.973a4.201 4.201 0 01-1.855 1.75c-.773.394-1.658.59-2.657.59zm0-6.304a3.43 3.43 0 001.75-.463c.535-.324.956-.788 1.265-1.392.324-.604.485-1.328.485-2.171 0-.872-.161-1.603-.485-2.193-.309-.604-.73-1.061-1.265-1.37a3.43 3.43 0 00-1.75-.464c-.632 0-1.215.161-1.749.485-.535.309-.963.766-1.287 1.37-.323.59-.484 1.314-.484 2.171 0 .858.161 1.589.484 2.193.324.59.752 1.047 1.287 1.37a3.43 3.43 0 001.749.464zM107.731 18.729V7.976h1.792V18.73h-1.792zm.886-12.734c-.352 0-.654-.127-.907-.38a1.237 1.237 0 01-.379-.907c0-.365.126-.667.379-.906.253-.253.555-.38.907-.38.365 0 .667.127.906.38.254.239.38.541.38.906 0 .352-.126.654-.38.907-.239.253-.541.38-.906.38zM99.693 9.6V7.976h1.898V4.94h1.792v3.036h2.635V9.6h-2.635v5.861c0 .604.119 1.054.358 1.35.253.28.626.421 1.117.421.225 0 .436-.028.633-.084.197-.07.387-.162.569-.274v1.75a3.916 3.916 0 01-.696.19 3.39 3.39 0 01-.779.084c-.9 0-1.624-.267-2.172-.802-.548-.548-.822-1.279-.822-2.192V9.6h-1.898zM89.427 18.729V7.977h1.707v1.58h.085c.28-.52.738-.97 1.37-1.349.647-.38 1.35-.569 2.108-.569 1.322 0 2.313.387 2.973 1.16.675.759 1.012 1.77 1.012 3.036v6.894H96.89v-6.62c0-1.04-.253-1.771-.759-2.193-.492-.436-1.131-.653-1.918-.653-.59 0-1.11.168-1.56.506-.45.323-.802.745-1.055 1.265a3.713 3.713 0 00-.38 1.644v6.051h-1.791zM74.733 18.729l5.735-15.096h2.024l5.735 15.096h-1.961l-1.54-4.153h-6.493l-1.54 4.153h-1.96zm9.382-5.84l-2.003-5.44-.59-1.623h-.084l-.59 1.623-2.004 5.44h5.271zM10.653 19.068C5.951 19.068 2 15.237 2 10.534 2 5.832 5.95 2 10.653 2c2.601 0 4.45 1.02 5.844 2.351l-1.643 1.643c-1-.937-2.351-1.666-4.2-1.666-3.431 0-6.115 2.769-6.115 6.204 0 3.435 2.684 6.201 6.114 6.201 2.226 0 3.495-.894 4.306-1.707.665-.667 1.103-1.623 1.27-2.936h-5.635V9.76h7.901c.083.417.124.916.124 1.457 0 1.749-.479 3.914-2.017 5.454-1.496 1.56-3.41 2.393-5.949 2.393v.004zM30.454 13.573c0 3.164-2.473 5.495-5.505 5.495s-5.505-2.33-5.505-5.495 2.473-5.496 5.505-5.496 5.505 2.31 5.505 5.496zm-2.411 0c0-1.978-1.435-3.33-3.096-3.33-1.662 0-3.096 1.352-3.096 3.33 0 1.977 1.434 3.33 3.096 3.33 1.661 0 3.096-1.373 3.096-3.33zM42.437 13.573c0 3.164-2.473 5.495-5.505 5.495s-5.505-2.33-5.505-5.495 2.473-5.496 5.505-5.496 5.505 2.31 5.505 5.496zm-2.411 0c0-1.978-1.435-3.33-3.096-3.33-1.662 0-3.096 1.352-3.096 3.33 0 1.977 1.434 3.33 3.096 3.33 1.661 0 3.096-1.373 3.096-3.33zM53.9 8.41v9.865c0 4.059-2.393 5.725-5.22 5.725-2.664 0-4.266-1.79-4.868-3.247l2.101-.874c.374.896 1.29 1.957 2.766 1.957 1.81 0 2.934-1.123 2.934-3.226v-.791h-.083c-.54.667-1.581 1.249-2.892 1.249-2.745 0-5.262-2.393-5.262-5.475s2.517-5.516 5.262-5.516c1.31 0 2.351.582 2.892 1.228h.083V8.41H53.9zm-2.122 5.183c0-1.936-1.29-3.35-2.934-3.35-1.643 0-3.057 1.416-3.057 3.35 0 1.934 1.393 3.31 3.057 3.31s2.934-1.396 2.934-3.31zM58.047 2.582v16.152h-2.413V2.582h2.413zM67.4 15.383l1.872 1.249c-.603.896-2.06 2.436-4.576 2.436-3.12 0-5.45-2.415-5.45-5.495 0-3.268 2.351-5.496 5.18-5.496 2.827 0 4.241 2.269 4.7 3.497l.25.624-7.343 3.038c.561 1.103 1.434 1.666 2.663 1.666 1.228 0 2.08-.602 2.704-1.519zm-5.762-1.978l4.91-2.04c-.271-.687-1.082-1.166-2.038-1.166-1.226 0-2.933 1.082-2.87 3.206h-.002z`})]})),Jb=(0,N.memo)(({type:e=`mono`,...t})=>(0,P.jsx)(bb,{Icon:e===`color`?Wb:Kb,Text:qb,"aria-label":Rb,spaceMultiple:zb,textMultiple:1,...t})),Yb=Kb;Yb.Color=Wb,Yb.Text=qb,Yb.Combine=Jb,Yb.Avatar=Gb,Yb.colorPrimary=Bb,Yb.title=Rb;var Xb=`Claude`,Zb=.8,Qb=.1,$b=`#D97757`,ex=$b,tx=`#fff`,nx=.75,rx=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:Xb}),(0,P.jsx)(`path`,{d:`M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z`})]})),ix=(0,N.memo)(({...e})=>(0,P.jsx)(yb,{Icon:rx,"aria-label":Xb,background:ex,color:tx,iconMultiple:nx,...e})),ax=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:Xb}),(0,P.jsx)(`path`,{d:`M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z`,fill:`#D97757`,fillRule:`nonzero`})]})),ox=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`nonzero`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 97 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:Xb}),(0,P.jsx)(`path`,{d:`M13.623 20.222c-3.417 0-5.753-1.901-6.855-4.827a12.992 12.992 0 01-.838-4.772c0-4.907 2.206-8.315 7.08-8.315 3.275 0 5.297 1.425 6.448 4.826h1.402l-.19-4.69C18.709 1.18 16.258.543 13.276.543c-4.2 0-7.775 1.874-9.763 5.254a11.357 11.357 0 00-1.511 5.872c0 3.753 1.777 7.08 5.113 8.926a11.95 11.95 0 005.943 1.398c3.254 0 5.835-.617 8.122-1.697l.593-5.172h-1.43c-.858 2.362-1.88 3.78-3.574 4.534-.831.373-1.88.564-3.146.564zm14.74-17.914L28.499 0h-.967L23.23 1.29v.699l1.907.882v16.142c0 1.1-.565 1.344-2.043 1.528v1.18h7.319v-1.18c-1.484-.184-2.042-.428-2.042-1.528V2.315l-.007-.007zm29.104 19.685h.565l4.95-.937v-1.208l-.695-.054c-1.157-.109-1.457-.346-1.457-1.29V9.897l.137-2.763h-.783l-4.678.672v1.181l.457.082c1.266.183 1.64.536 1.64 1.419v7.67c-1.212.937-2.369 1.527-3.744 1.527-1.525 0-2.471-.774-2.471-2.58V9.905l.136-2.763h-.804l-4.684.672v1.181l.484.082c1.266.183 1.64.536 1.64 1.418v7.08c0 3 1.703 4.426 4.412 4.426 2.07 0 3.765-1.1 5.038-2.627L57.474 22l-.007-.007zm-13.602-9.55c0-3.836-2.043-5.309-5.733-5.309-3.254 0-5.616 1.344-5.616 3.57 0 .666.238 1.175.721 1.528l2.478-.326c-.109-.746-.163-1.201-.163-1.391 0-1.263.674-1.901 2.042-1.901 2.022 0 3.044 1.419 3.044 3.7v.746l-5.106 1.527c-1.702.462-2.67.863-3.316 1.8a3.386 3.386 0 00-.476 1.9c0 2.172 1.497 3.706 4.057 3.706 1.852 0 3.493-.835 4.922-2.416.51 1.581 1.294 2.416 2.69 2.416 1.13 0 2.15-.455 3.063-1.344l-.272-.937a4.363 4.363 0 01-1.178.163c-.783 0-1.157-.617-1.157-1.826v-5.607zm-6.536 7.378c-1.396 0-2.26-.808-2.26-2.226 0-.964.456-1.528 1.43-1.854l4.139-1.31v3.965c-1.321.997-2.097 1.425-3.31 1.425zm43.095 1.235v-1.208l-.701-.054c-1.158-.109-1.45-.346-1.45-1.29V2.308L78.409 0h-.974l-4.302 1.29v.699l1.906.882V8.18a6.024 6.024 0 00-3.656-1.046c-4.276 0-7.612 3.245-7.612 8.098 0 3.998 2.397 6.761 6.346 6.761 2.042 0 3.819-.99 4.922-2.525l-.136 2.525h.571l4.95-.937zm-8.96-12.313c2.043 0 3.575 1.181 3.575 3.353v6.11a4.91 4.91 0 01-3.547 1.425c-2.928 0-4.412-2.308-4.412-5.39 0-3.462 1.695-5.498 4.385-5.498zm19.424 3.055c-.381-1.792-1.484-2.81-3.016-2.81-2.288 0-3.874 1.717-3.874 4.18 0 3.646 1.934 6.008 5.059 6.008a5.858 5.858 0 005.03-2.953l.913.245c-.408 3.163-3.281 5.525-6.808 5.525-4.14 0-6.992-3.054-6.992-7.399 0-4.378 3.098-7.46 7.237-7.46 3.09 0 5.27 1.853 5.97 5.07l-10.783 3.3V14.05l7.264-2.247v-.006z`})]})),sx=(0,N.memo)(({type:e=`mono`,...t})=>(0,P.jsx)(bb,{Icon:e===`color`?ax:rx,Text:ox,"aria-label":Xb,spaceMultiple:Qb,textMultiple:Zb,...t})),cx=rx;cx.Color=ax,cx.Text=ox,cx.Combine=sx,cx.Avatar=ix,cx.colorPrimary=$b,cx.title=Xb;var lx=`Claude Code`,ux=.75,dx=.3,fx=`#D97757`,px=`#09090B`,mx=fx,hx=.7,gx=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:lx}),(0,P.jsx)(`path`,{clipRule:`evenodd`,d:`M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z`})]})),_x=(0,N.memo)(({...e})=>(0,P.jsx)(yb,{Icon:gx,"aria-label":lx,background:px,color:mx,iconMultiple:hx,...e})),vx=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:lx}),(0,P.jsx)(`path`,{clipRule:`evenodd`,d:`M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z`,fill:`#D97757`,fillRule:`evenodd`})]})),yx=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 56 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:lx}),(0,P.jsx)(`path`,{clipRule:`evenodd`,d:`M8.786 14.088h.67v2.31H4.614v4.506h4.172v.785h.67V24h-6.19v-1.138h-.298V22.1h-.67V20.96H2v-5.758h.968v-1.9h5.818v.785zm0 7.875h.417v1.763H3.519v-.864h-.126v1.001h5.936v-2.037h-.543v.137zm0 .899h-5.14v.728h5.43V22.1h-.29v.762zm-6.362-.9h.544v-.136h-.417v-.865h-.127v1.002zm.253-.273h.291v-.728h-.29v.728zm6.109-6.429H3.944v5.644h.29v-4.916h4.842v-1.49h-.29v.762zm0-.898h.417v1.763H4.36v4.779h.126v-4.642H9.33v-2.037h-.543v.137zM17.5 14.088h.671v1.115h.298v.785h.67V22.1h-.968V24h-6.19v-1.138h-.297V22.1h-.671V20.96h-.298v-5.758h.969v-1.9H17.5v.785zm.97 2.174h.416v5.564h-.968v1.9h-5.684v-.864h-.126v1.001h5.936v-1.9h.969v-5.838h-.544v.137zm0 4.7h-.97v1.9h-5.14v.728h5.431v-1.9h.969v-5.291h-.29v4.562zm-7.33 1h.544v-.136h-.418v-.865h-.127v1.002zm.252-.273h.292v-.728h-.291v.728zm1.267-.785h.29v-4.916h3.576v-.728H12.66v5.644zm.417 0h.127v-4.642h3.322v-.137h-3.449v4.779zm.253 0h3.196v-4.505H13.33v4.505zm4.172-5.701h.29v-.705h-.29v.705zm0-.841h.417v.84h.126v-.977h-.543v.137zM26.216 14.088h.67v1.115h.298v.785h.67V22.1h-.968V24h-6.19v-1.138H20.4v-9.56h5.817v.786zm.968 2.174h.417v5.564h-.968v1.9H20.95v-.864h-.127v1.001h5.936v-1.9h.969v-5.838h-.544v.137zm0 4.7h-.968v1.9h-5.14v.728h5.43v-1.9h.969v-5.291h-.29v4.562zm-4.841-.058h.29v-4.916h2.607v-.728h-2.897v5.644zm.416 0h.127v-4.642h2.354v-.137h-2.48v4.779zm.254 0h2.227v-4.505h-2.227v4.505zm3.203-5.701h.29v-.705h-.29v.705zm0-.841h.417v.84h.127v-.977h-.544v.137zM35.9 14.088h.67v2.31h-4.842v.705h2.235v.786h.67v2.31h-2.905v.704H35.9v.786h.67V24H29.41v-1.138h-.297v-9.56H35.9v.786zm0 7.875h.416v1.763h-6.651v-.864h-.127v1.001h6.905v-2.037H35.9v.137zm0 .899H29.79v.728h6.399V22.1h-.29v.762zm-1.937-3.801h-2.905v1.843h.29v-1.115h2.905v-1.49h-.29v.762zm0-.899h.417v1.764h-2.905v.978h.126v-.841h2.905v-2.037h-.543v.136zM35.9 15.26h-4.842v1.843h.29v-1.115h4.842v-1.49h-.29v.762zm0-.898h.416v1.763h-4.841v.978h.126v-.841h4.842v-2.037H35.9v.137zM8.786 0v.786h.67v2.31H4.614v4.505h4.172v.786h.67v2.31h-6.19V9.56h-.298v-.762h-.67V7.66H2V1.9h.968V0h5.818zm0 8.66h.417v1.764H3.519V9.56h-.126v1.002h5.936V8.524h-.543v.137zm0 .9h-5.14v.727h5.43v-1.49h-.29v.762zm-6.362-.9h.544v-.136h-.417v-.865h-.127v1.002zm.253-.273h.291V7.66h-.29v.728zm6.109-6.429H3.944v5.643h.29V2.686h4.842v-1.49h-.29v.762zm0-.899h.417v1.764H4.36V7.6h.126V2.96H9.33V.923h-.543v.136zM12.66.786h.67V7.6h4.17v.786h.671v2.31h-7.158V9.56h-.298V0h1.944v.786zM17.5 8.66h.418v1.763h-6.652V9.56h-.127v1.002h6.905V8.524h-.543v.137zm0 .898h-6.107v.728h6.398v-1.49h-.29v.762zm-4.84-1.958h.29V1.196h-.29v6.405zm0-6.542h.416v6.542h.127V.923h-.544v.136zM25.248.786h.67V1.9h.298v.786h.67v8.012H24.57V9.559h-.298V6.897h-2.228v3.8h-2.316V9.56h-.298V1.9h.969V0h4.849v.786zm-3.457 9.638h-1.81V9.56h-.127v1.002h2.064v-3.8h2.354v-.137h-2.48v3.8zm4.425-7.464h.417v7.464h-1.81V9.56h-.127v1.002h2.063V2.823h-.543v.137zm-4.842 6.6h-1.266v.727h1.556v-3.8h2.608v-.728h-2.898v3.8zm4.842 0h-1.267v.727h1.557v-7.19h-.29v6.462zM21.374 3.8h.29V2.687h2.608v-.728h-2.898v1.843zm.417 0h.127v-.84h2.354v-.137h-2.48V3.8zm.253 0h2.228v-.704h-2.228v.705zm3.204-1.9h.29v-.704h-.29V1.9zm0-.84h.416v.84h.127V.923h-.543v.136zM30.09.786h.67V7.6h3.196V0H35.9v.786h.67v8.011H35.6v1.9h-6.19V9.56h-.297v-.762h-.671V7.66h-.298V0h1.945v.786zm5.81.273h.416v7.465h-.968v1.9h-5.683V9.56h-.127v1.002h5.937v-1.9h.968V.923H35.9v.136zm0 6.6h-.969v1.9h-5.14v.728h5.43v-1.9h.969v-7.19h-.29v6.462zm-7.33 1.002h.544v-.137h-.418v-.865h-.126v1.002zm.253-.274h.29V7.66h-.29v.728zm1.267-.786h.29V1.196h-.29v6.405zm0-6.542h.416v6.542h.127V.923h-.543v.136zM43.647.786h.67V1.9h.298v.786h.67v6.111h-.969v1.9h-6.19V9.56h-.297V0h5.818v.786zm.968 2.174h.417v5.564h-.969v1.9H38.38V9.56h-.127v1.002h5.937v-1.9h.968V2.823h-.543v.137zm0 4.7h-.968v1.9h-5.14v.727h5.43v-1.9h.968v-5.29h-.29v4.562zM39.773 7.6h.29V2.686h2.608v-.728h-2.898v5.643zm.417 0h.127V2.96h2.354v-.137H40.19V7.6zm.253 0h2.228V3.096h-2.228v4.505zm3.204-5.7h.29v-.705h-.29V1.9zm0-.842h.416V1.9h.127V.923h-.543v.136zM53.33.786H54v2.31h-4.842v.705h2.235v.785h.67v2.311h-2.905v.704h4.172v.786H54v2.31h-7.158V9.56h-.298V0h6.786v.786zm0 7.875h.417v1.763h-6.652V9.56h-.127v1.002h6.905V8.524h-.543v.137zm0 .898h-6.108v.728h6.398v-1.49h-.29v.762zm-1.937-3.8h-2.905V7.6h.29V6.487h2.906v-1.49h-.29v.762zm0-.899h.417v1.764h-2.905V7.6h.127v-.84h2.905V4.722h-.544v.137zm1.937-2.902h-4.842v1.843h.29V2.686h4.842v-1.49h-.29v.762zm0-.899h.417v1.764h-4.842V3.8h.127V2.96h4.841V.923h-.543v.136z`})]})),bx=(0,N.memo)(({type:e=`mono`,...t})=>(0,P.jsx)(bb,{Icon:e===`color`?vx:gx,Text:yx,"aria-label":lx,spaceMultiple:dx,textMultiple:ux,...t})),xx=gx;xx.Color=vx,xx.Text=yx,xx.Combine=bx,xx.Avatar=_x,xx.colorPrimary=fx,xx.title=lx;var Sx=`Cline`,Cx=.7,wx=.2,Tx=`#323B43`,Ex=Tx,Dx=`#fff`,Ox=.6,kx=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:Sx}),(0,P.jsx)(`path`,{d:`M17.035 3.991c2.75 0 4.98 2.24 4.98 5.003v1.667l1.45 2.896a1.01 1.01 0 01-.002.909l-1.448 2.864v1.668c0 2.762-2.23 5.002-4.98 5.002H7.074c-2.751 0-4.98-2.24-4.98-5.002V17.33l-1.48-2.855a1.01 1.01 0 01-.003-.927l1.482-2.887V8.994c0-2.763 2.23-5.003 4.98-5.003h9.962zM8.265 9.6a2.274 2.274 0 00-2.274 2.274v4.042a2.274 2.274 0 004.547 0v-4.042A2.274 2.274 0 008.265 9.6zm7.326 0a2.274 2.274 0 00-2.274 2.274v4.042a2.274 2.274 0 104.548 0v-4.042A2.274 2.274 0 0015.59 9.6z`}),(0,P.jsx)(`path`,{d:`M12.054 5.558a2.779 2.779 0 100-5.558 2.779 2.779 0 000 5.558z`})]})),Ax=(0,N.memo)(({...e})=>(0,P.jsx)(yb,{Icon:kx,"aria-label":Sx,background:Ex,color:Dx,iconMultiple:Ox,...e})),jx=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 88 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:Sx}),(0,P.jsx)(`path`,{d:`M79.558 21.986c-1.13 0-2.167-.189-3.108-.565a7.128 7.128 0 01-2.403-1.569 6.933 6.933 0 01-1.554-2.331 7.876 7.876 0 01-.537-2.925v-.58c0-1.196.189-2.279.566-3.25.376-.97.894-1.798 1.554-2.486a6.84 6.84 0 012.289-1.582 7.005 7.005 0 012.797-.566c1.103 0 2.078.189 2.925.566.848.367 1.56.88 2.134 1.54.575.668 1.008 1.464 1.3 2.388.292.923.438 1.93.438 3.023v1.456H75.362v.07c.103.67.263 1.23.48 1.682.217.452.513.857.89 1.215.377.377.82.669 1.328.876.518.207 1.084.31 1.696.31.838 0 1.62-.16 2.346-.48a4.71 4.71 0 001.794-1.398l1.808 1.752c-.508.734-1.29 1.394-2.345 1.978-1.046.584-2.313.876-3.8.876zm-.41-13.113c-.48 0-.927.09-1.342.269-.405.17-.768.414-1.088.735-.32.33-.589.725-.805 1.187a6.25 6.25 0 00-.48 1.568h7.191v-.226c0-.443-.08-.88-.24-1.314a3.545 3.545 0 00-.678-1.159 3.004 3.004 0 00-1.074-.763c-.424-.198-.919-.297-1.484-.297zM55.043 21.703V6.415h3.052l.212 2.176c.207-.292.433-.56.678-.805.255-.255.523-.48.806-.679a5.555 5.555 0 013.179-.975 6.5 6.5 0 012.148.34 4.11 4.11 0 011.667 1.073c.461.49.82 1.117 1.074 1.88.254.753.381 1.667.381 2.74v9.538h-3.377v-9.48c0-.632-.07-1.16-.212-1.583-.141-.424-.348-.763-.621-1.018a2.3 2.3 0 00-.99-.537 4.736 4.736 0 00-1.328-.17c-.414 0-.8.057-1.158.17a3.421 3.421 0 00-1.611 1.004 4.282 4.282 0 00-.523.706v10.908h-3.377zM38.44 6.415h8.111v12.49h4.493v2.798H38.441v-2.797h4.705v-9.68H38.44V6.416zm4.395-3.956c0-.274.047-.523.141-.75a1.69 1.69 0 01.41-.607c.17-.16.372-.282.607-.367.245-.094.519-.141.82-.141.509 0 .918.131 1.23.395.32.254.503.584.55.99.066.414-.004.776-.212 1.087-.207.302-.508.504-.904.608a1.48 1.48 0 01-.706.353c-.273.057-.575.033-.905-.07a1.396 1.396 0 01-.777-.552 1.758 1.758 0 01-.254-.946zM20.934 0h8.238v18.906h4.634v2.797H20.934v-2.797h4.832V2.812h-4.832V0zM16.71 15.373c-.095.999-.33 1.908-.707 2.727a6.672 6.672 0 01-1.484 2.077 6.542 6.542 0 01-2.218 1.357c-.848.31-1.79.466-2.826.466-.848 0-1.63-.113-2.346-.339a6.467 6.467 0 01-1.893-.99 6.55 6.55 0 01-1.413-1.426 9.438 9.438 0 01-1.003-1.851c-.274-.66-.48-1.375-.622-2.148A14.34 14.34 0 012 12.83v-2.812c0-.8.066-1.573.198-2.317.132-.744.33-1.446.593-2.106A8.284 8.284 0 013.88 3.603a7.296 7.296 0 011.555-1.54 6.953 6.953 0 011.836-.904A7.256 7.256 0 019.49.834c1.083 0 2.049.16 2.896.48.858.32 1.588.773 2.19 1.357a6.337 6.337 0 011.442 2.147c.358.839.588 1.771.692 2.798h-3.391a6.568 6.568 0 00-.353-1.653c-.17-.5-.405-.923-.707-1.272a2.977 2.977 0 00-1.144-.791c-.453-.188-.994-.283-1.625-.283-.443 0-.843.062-1.201.184-.349.122-.66.297-.933.523a3.385 3.385 0 00-.947 1.074 7.033 7.033 0 00-.607 1.455c-.123.471-.217.975-.283 1.512a15.25 15.25 0 00-.084 1.625v2.84c0 .688.037 1.333.113 1.936.084.602.212 1.154.381 1.653.132.414.297.791.495 1.13.207.34.452.631.734.876.292.264.627.466 1.004.608.386.132.824.198 1.314.198.584 0 1.102-.085 1.554-.255.452-.17.838-.419 1.159-.749.31-.32.56-.72.748-1.2.189-.481.311-1.032.368-1.654h3.405z`})]})),Mx=(0,N.memo)(({...e})=>(0,P.jsx)(bb,{Icon:kx,Text:jx,"aria-label":Sx,iconProps:{shape:`square`},spaceMultiple:wx,textMultiple:Cx,...e})),Nx=kx;Nx.Text=jx,Nx.Combine=Mx,Nx.Avatar=Ax,Nx.colorPrimary=Tx,Nx.title=Sx;var Px=`Codex`,Fx=.8,Ix=.2,Lx=`#fff`,Rx=Lx,zx=`#fff`,Bx=.7,Vx=(0,N.memo)(({size:e=`1em`,style:t,...n})=>{let{id:r,fill:i}=wb(Px);return(0,P.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:Px}),(0,P.jsx)(`path`,{clipRule:`evenodd`,d:`M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z`,fill:i,fillRule:`evenodd`}),(0,P.jsx)(`defs`,{children:(0,P.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:r,x1:`12`,x2:`12`,y1:`0`,y2:`24`,children:[(0,P.jsx)(`stop`,{stopColor:`#B1A7FF`}),(0,P.jsx)(`stop`,{offset:`.5`,stopColor:`#7A9DFF`}),(0,P.jsx)(`stop`,{offset:`1`,stopColor:`#3941FF`})]})})]})}),Hx=(0,N.memo)(({...e})=>(0,P.jsx)(yb,{Icon:Vx,"aria-label":Px,background:Rx,color:zx,iconMultiple:Bx,...e})),Ux=(0,N.memo)(({size:e=`1em`,style:t,...n})=>{let{id:r,fill:i}=wb(Px);return(0,P.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:Px}),(0,P.jsx)(`path`,{d:`M19.503 0H4.496A4.496 4.496 0 000 4.496v15.007A4.496 4.496 0 004.496 24h15.007A4.496 4.496 0 0024 19.503V4.496A4.496 4.496 0 0019.503 0z`,fill:`#fff`}),(0,P.jsx)(`path`,{d:`M9.064 3.344a4.578 4.578 0 012.285-.312c1 .115 1.891.54 2.673 1.275.01.01.024.017.037.021a.09.09 0 00.043 0 4.55 4.55 0 013.046.275l.047.022.116.057a4.581 4.581 0 012.188 2.399c.209.51.313 1.041.315 1.595a4.24 4.24 0 01-.134 1.223.123.123 0 00.03.115c.594.607.988 1.33 1.183 2.17.289 1.425-.007 2.71-.887 3.854l-.136.166a4.548 4.548 0 01-2.201 1.388.123.123 0 00-.081.076c-.191.551-.383 1.023-.74 1.494-.9 1.187-2.222 1.846-3.711 1.838-1.187-.006-2.239-.44-3.157-1.302a.107.107 0 00-.105-.024c-.388.125-.78.143-1.204.138a4.441 4.441 0 01-1.945-.466 4.544 4.544 0 01-1.61-1.335c-.152-.202-.303-.392-.414-.617a5.81 5.81 0 01-.37-.961 4.582 4.582 0 01-.014-2.298.124.124 0 00.006-.056.085.085 0 00-.027-.048 4.467 4.467 0 01-1.034-1.651 3.896 3.896 0 01-.251-1.192 5.189 5.189 0 01.141-1.6c.337-1.112.982-1.985 1.933-2.618.212-.141.413-.251.601-.33.215-.089.43-.164.646-.227a.098.098 0 00.065-.066 4.51 4.51 0 01.829-1.615 4.535 4.535 0 011.837-1.388zm3.482 10.565a.637.637 0 000 1.272h3.636a.637.637 0 100-1.272h-3.636zM8.462 9.23a.637.637 0 00-1.106.631l1.272 2.224-1.266 2.136a.636.636 0 101.095.649l1.454-2.455a.636.636 0 00.005-.64L8.462 9.23z`,fill:i}),(0,P.jsx)(`defs`,{children:(0,P.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:r,x1:`12`,x2:`12`,y1:`3`,y2:`21`,children:[(0,P.jsx)(`stop`,{stopColor:`#B1A7FF`}),(0,P.jsx)(`stop`,{offset:`.5`,stopColor:`#7A9DFF`}),(0,P.jsx)(`stop`,{offset:`1`,stopColor:`#3941FF`})]})})]})}),Wx=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:Px}),(0,P.jsx)(`path`,{clipRule:`evenodd`,d:`M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z`})]})),Gx=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 91 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:Px}),(0,P.jsx)(`path`,{d:`M79.915 14.964l-5.53-7.548h3.33l3.88 5.256 3.88-5.256h3.24l-5.5 7.486 5.683 7.792h-3.361l-4.003-5.5-4.064 5.5H74.2l5.715-7.73zM66.368 23c-1.345 0-2.567-.326-3.667-.978-1.08-.652-1.935-1.579-2.567-2.78-.631-1.203-.947-2.608-.947-4.217 0-1.59.316-2.974.947-4.156.652-1.202 1.518-2.129 2.597-2.78 1.08-.652 2.272-.978 3.575-.978 1.813 0 3.33.55 4.553 1.65 1.222 1.1 1.956 2.597 2.2 4.491.082.693.112 1.477.092 2.353H62.09c.06 1.548.489 2.76 1.283 3.636.815.876 1.793 1.314 2.933 1.314h.184c.855 0 1.599-.224 2.23-.672.632-.448 1.06-1.06 1.284-1.833h2.933a6.147 6.147 0 01-2.322 3.575C69.433 22.54 68.018 23 66.368 23zm3.819-9.687c-.082-1.16-.469-2.077-1.161-2.75-.693-.692-1.558-1.038-2.597-1.038h-.214c-.978 0-1.844.315-2.597.947-.734.611-1.212 1.558-1.437 2.841h8.006zM47.834 23c-1.324 0-2.516-.326-3.575-.978-1.039-.652-1.854-1.579-2.444-2.78-.591-1.202-.887-2.598-.887-4.187 0-1.588.306-2.984.917-4.186.611-1.201 1.446-2.128 2.506-2.78 1.08-.652 2.281-.978 3.605-.978 1.08 0 2.047.224 2.903.672.855.449 1.497 1.019 1.925 1.711V1.306h2.903v21.388h-2.903v-2.108c-.408.672-1.06 1.242-1.956 1.711-.896.469-1.894.703-2.994.703zm.58-2.475c.856 0 1.62-.234 2.292-.703.672-.468 1.192-1.11 1.558-1.925.387-.835.58-1.782.58-2.841 0-1.06-.193-1.997-.58-2.812-.366-.835-.886-1.487-1.558-1.955a3.911 3.911 0 00-2.292-.703h-.183c-1.304 0-2.363.51-3.178 1.528-.794 1.018-1.191 2.332-1.191 3.941 0 1.61.397 2.924 1.191 3.942.815 1.019 1.874 1.528 3.178 1.528h.183zM31.022 23c-1.406 0-2.679-.337-3.82-1.009a7.367 7.367 0 01-2.688-2.841c-.652-1.223-.978-2.587-.978-4.095 0-1.507.326-2.862.978-4.064.651-1.222 1.548-2.17 2.688-2.841 1.141-.693 2.414-1.04 3.82-1.04 1.405 0 2.668.347 3.789 1.04 1.14.672 2.037 1.62 2.688 2.841.652 1.202.978 2.557.978 4.064 0 1.508-.326 2.872-.977 4.095a7.367 7.367 0 01-2.69 2.841C33.69 22.663 32.428 23 31.023 23zm.06-2.476c.857 0 1.62-.224 2.293-.672.672-.468 1.201-1.11 1.589-1.925.386-.835.58-1.792.58-2.872 0-1.08-.194-2.027-.58-2.841-.388-.836-.917-1.477-1.59-1.925a3.911 3.911 0 00-2.291-.703H30.9c-1.304 0-2.373.51-3.209 1.528-.814.998-1.222 2.312-1.222 3.941 0 1.63.407 2.954 1.222 3.972.835.998 1.905 1.497 3.209 1.497h.183zM12.053 23c-2.037 0-3.82-.469-5.348-1.406-1.507-.957-2.668-2.271-3.483-3.941S2 14.098 2 12c0-2.098.407-3.982 1.222-5.653.835-1.67 2.017-2.974 3.545-3.91C8.294 1.478 10.057 1 12.053 1c1.609 0 3.055.316 4.338.947 1.304.611 2.363 1.477 3.178 2.597.815 1.1 1.304 2.374 1.467 3.82h-3.117c-.244-1.365-.876-2.465-1.894-3.3-1.019-.856-2.302-1.283-3.85-1.283h-.245c-1.385 0-2.597.356-3.636 1.069-1.039.713-1.833 1.69-2.383 2.933-.55 1.243-.825 2.648-.825 4.217 0 1.568.275 2.974.825 4.216.55 1.243 1.344 2.22 2.383 2.934 1.04.713 2.251 1.07 3.636 1.07h.245c1.548 0 2.831-.418 3.85-1.254 1.039-.855 1.68-1.976 1.925-3.36h3.086c-.184 1.446-.683 2.729-1.497 3.85-.795 1.12-1.844 1.996-3.148 2.627-1.303.611-2.75.917-4.338.917z`})]})),Kx=(0,N.memo)(({type:e=`mono`,...t})=>(0,P.jsx)(bb,{Icon:e===`color`?Ux:Wx,Text:Gx,"aria-label":Px,spaceMultiple:Ix,textMultiple:Fx,...t})),qx=Wx;qx.Color=Ux,qx.Text=Gx,qx.Combine=Kx,qx.Avatar=Hx,qx.colorPrimary=Lx,qx.title=Px;var Jx=`Cursor`,Yx=.7,Xx=.1,Zx=`#000`,Qx=Zx,$x=`#fff`,eS=.6,tS=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:Jx}),(0,P.jsx)(`path`,{d:`M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z`})]})),nS=(0,N.memo)(({...e})=>(0,P.jsx)(yb,{Icon:tS,"aria-label":Jx,background:Qx,color:$x,iconMultiple:eS,...e})),rS=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 123 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:Jx}),(0,P.jsx)(`path`,{d:`M11.995 2.33h6.516v3.582h-6.295C8.82 5.912 6.169 7.868 6.169 12c0 4.133 2.65 6.089 6.047 6.089h6.295v3.581H11.72C6.03 21.67 2 18.336 2 12c0-6.337 4.307-9.67 9.995-9.67zm9.829 0h4.03V14.15c0 2.947 1.354 4.325 4.53 4.325 3.175 0 4.528-1.377 4.528-4.325V2.33h4.03v12.644c0 4.297-2.733 7.025-8.559 7.025-5.826 0-8.56-2.755-8.56-7.052V2.33zm38.185 5.483c0 2.149-1.243 3.801-2.9 4.518v.055c1.74.248 2.624 1.488 2.65 3.169l.084 6.115h-4.031l-.083-5.454c-.027-1.212-.745-1.956-2.181-1.956h-6.71v7.41h-4.03V2.33h11.127c3.644 0 6.074 1.846 6.074 5.483zm-4.059.55c0-1.652-.883-2.561-2.54-2.561H46.84v5.123h6.626c1.518 0 2.485-.909 2.485-2.562zm19.3 7.66c0-1.378-.884-1.957-2.209-2.067l-4.473-.413c-3.866-.358-5.881-1.873-5.881-5.537 0-3.664 2.485-5.675 6.046-5.675h9.885V5.8h-9.609c-1.38 0-2.263.717-2.263 2.094 0 1.378.91 2.039 2.291 2.15l4.556.385c3.452.303 5.715 1.874 5.715 5.565 0 3.691-2.402 5.675-5.798 5.675H63.184V18.2h9.94c1.297 0 2.126-.882 2.126-2.177zM91.097 2c6.074 0 9.912 3.884 9.912 9.972C101.01 18.061 97.006 22 90.932 22s-9.912-3.94-9.912-10.028C81.02 5.884 85.024 2 91.098 2zm5.743 10c0-4.077-2.374-6.474-5.826-6.474-3.451 0-5.826 2.397-5.826 6.474s2.375 6.473 5.826 6.473c3.452 0 5.826-2.396 5.826-6.473zM121 7.813c0 2.149-1.242 3.801-2.899 4.518v.055c1.739.248 2.623 1.488 2.65 3.169l.083 6.115h-4.031l-.083-5.454c-.027-1.212-.745-1.956-2.181-1.956h-6.709v7.41h-4.031V2.33h11.127c3.645 0 6.074 1.846 6.074 5.483zm-4.059.55c0-1.652-.883-2.561-2.54-2.561h-6.571v5.123h6.626c1.518 0 2.485-.909 2.485-2.562z`})]})),iS=(0,N.memo)(({...e})=>(0,P.jsx)(bb,{Icon:tS,Text:rS,"aria-label":Jx,spaceMultiple:Xx,textMultiple:Yx,...e})),aS=tS;aS.Text=rS,aS.Combine=iS,aS.Avatar=nS,aS.colorPrimary=Zx,aS.title=Jx;var oS=`Devin`,sS=.55,cS=.2,lS=`#fff`,uS=lS,dS=`#fff`,fS=.65,pS=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:oS}),(0,P.jsx)(`path`,{d:`M2.033 9.867l2.554 1.483a.589.589 0 00.592 0l2.554-1.483.01-.008a.608.608 0 00.11-.084l.013-.015a.631.631 0 00.076-.1c.003-.005.008-.01.01-.016a.558.558 0 00.052-.125l.007-.028a.611.611 0 00.019-.14V7.868c0-.572.307-1.105.8-1.392a1.595 1.595 0 011.598 0l1.277.742a.54.54 0 00.129.053l.028.01c.044.01.088.015.133.016h.006l.013-.002a.587.587 0 00.27-.074l.011-.004 2.554-1.483a.596.596 0 00.297-.516V2.253a.595.595 0 00-.297-.516L12.293.257a.587.587 0 00-.591 0L9.148 1.737l-.01.01a.609.609 0 00-.109.083l-.014.015a.632.632 0 00-.076.1c-.003.005-.008.01-.01.016a.57.57 0 00-.052.124l-.007.028a.612.612 0 00-.018.14v1.483c0 .572-.307 1.105-.8 1.393a1.597 1.597 0 01-1.599 0l-1.276-.742a.603.603 0 00-.13-.053l-.028-.008a.658.658 0 00-.133-.018h-.02a.57.57 0 00-.269.074c-.003.002-.008.002-.012.005L2.033 5.872a.596.596 0 00-.297.515v2.966c0 .213.113.41.297.515z`,fill:`#3969CA`}),(0,P.jsx)(`path`,{d:`M15.943 10.607a1.596 1.596 0 011.599 0l1.276.74c.041.025.085.04.13.055l.028.008c.043.01.088.016.133.018h.005c.005 0 .01-.002.014-.003a.474.474 0 00.122-.016l.021-.005a.616.616 0 00.126-.052c.004-.002.009-.002.013-.005l2.554-1.482a.597.597 0 00.297-.516V6.383a.596.596 0 00-.297-.515l-2.552-1.483a.587.587 0 00-.592 0l-2.553 1.482-.011.008a.61.61 0 00-.108.084l-.014.016a.637.637 0 00-.076.1c-.003.005-.008.01-.01.016a.57.57 0 00-.052.124l-.007.029a.612.612 0 00-.018.14v1.482c0 .572-.307 1.105-.8 1.393a1.597 1.597 0 01-1.599 0l-1.276-.742a.584.584 0 00-.13-.053l-.028-.008a.62.62 0 00-.133-.018h-.02a.587.587 0 00-.269.074l-.012.004L9.15 10a.596.596 0 00-.296.516v2.966c0 .212.112.409.296.515l2.554 1.483s.008.002.012.005c.04.022.082.04.126.052l.02.004a.57.57 0 00.123.017l.014.002h.006c.054 0 .108-.01.16-.025a.587.587 0 00.13-.054l1.277-.741a1.597 1.597 0 012.398 1.392v1.482c0 .049.007.095.019.14l.007.028a.619.619 0 00.051.125c.004.006.008.01.01.016a.6.6 0 00.076.1l.014.015c.033.032.069.06.108.084.004.002.006.006.011.008l2.554 1.483a.59.59 0 00.593 0l2.554-1.483a.597.597 0 00.296-.516v-2.965a.595.595 0 00-.296-.516l-2.554-1.483s-.008-.002-.012-.005a.54.54 0 00-.126-.051c-.007-.003-.013-.003-.02-.005a.635.635 0 00-.125-.017h-.018a.557.557 0 00-.16.026.588.588 0 00-.13.053l-1.276.742a1.595 1.595 0 01-1.598 0 1.615 1.615 0 010-2.785l-.005-.001z`,fill:`#21C19A`}),(0,P.jsx)(`path`,{d:`M14.848 18.265l-2.554-1.482-.012-.005a.526.526 0 00-.126-.052c-.007-.002-.014-.002-.02-.005a.64.64 0 00-.124-.017h-.02a.56.56 0 00-.16.026.588.588 0 00-.13.053l-1.276.742a1.594 1.594 0 01-1.598 0c-.493-.286-.8-.82-.8-1.393V14.65a.563.563 0 00-.018-.14l-.008-.028a.604.604 0 00-.051-.124l-.01-.017a.603.603 0 00-.076-.1l-.014-.015a.596.596 0 00-.109-.084c-.003-.002-.005-.006-.01-.008L5.178 12.65a.587.587 0 00-.591 0l-2.554 1.483a.596.596 0 00-.297.516v2.965c0 .213.113.41.297.516l2.554 1.483.012.004a.618.618 0 00.267.074l.016.002h.007a.55.55 0 00.16-.026.584.584 0 00.129-.053l1.277-.742a1.597 1.597 0 012.398 1.393v1.482c0 .05.007.095.019.14l.007.028c.013.044.03.085.051.125l.01.016c.022.036.047.07.076.1l.014.015c.032.032.069.06.109.084l.01.008 2.554 1.483a.587.587 0 00.593 0l2.554-1.483a.596.596 0 00.296-.515v-2.966a.596.596 0 00-.296-.516h-.002z`,fill:`#0294DE`})]})),mS=(0,N.memo)(({...e})=>(0,P.jsx)(yb,{Icon:pS,"aria-label":oS,background:uS,color:dS,iconMultiple:fS,...e})),hS=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:oS}),(0,P.jsx)(`path`,{d:`M2.033 9.867l2.554 1.483a.589.589 0 00.592 0l2.554-1.483.01-.008a.608.608 0 00.11-.084l.013-.015a.631.631 0 00.076-.1c.003-.005.008-.01.01-.016a.558.558 0 00.052-.125l.007-.028a.611.611 0 00.019-.14V7.868c0-.572.307-1.105.8-1.392a1.595 1.595 0 011.598 0l1.277.742a.54.54 0 00.129.053l.028.01c.044.01.088.015.133.016h.006l.013-.002a.587.587 0 00.27-.074l.011-.004 2.554-1.483a.596.596 0 00.297-.516V2.253a.595.595 0 00-.297-.516L12.293.257a.587.587 0 00-.591 0L9.148 1.737l-.01.01a.609.609 0 00-.109.083l-.014.015a.632.632 0 00-.076.1c-.003.005-.008.01-.01.016a.57.57 0 00-.052.124l-.007.028a.612.612 0 00-.018.14v1.483c0 .572-.307 1.105-.8 1.393a1.597 1.597 0 01-1.599 0l-1.276-.742a.603.603 0 00-.13-.053l-.028-.008a.658.658 0 00-.133-.018h-.02a.57.57 0 00-.269.074c-.003.002-.008.002-.012.005L2.033 5.872a.596.596 0 00-.297.515v2.966c0 .213.113.41.297.515z`}),(0,P.jsx)(`path`,{d:`M15.943 10.607a1.596 1.596 0 011.599 0l1.276.74c.041.025.085.04.13.055l.028.008c.043.01.088.016.133.018h.005c.005 0 .01-.002.014-.003a.474.474 0 00.122-.016l.021-.005a.616.616 0 00.126-.052c.004-.002.009-.002.013-.005l2.554-1.482a.597.597 0 00.297-.516V6.383a.596.596 0 00-.297-.515l-2.552-1.483a.587.587 0 00-.592 0l-2.553 1.482-.011.008a.61.61 0 00-.108.084l-.014.016a.637.637 0 00-.076.1c-.003.005-.008.01-.01.016a.57.57 0 00-.052.124l-.007.029a.612.612 0 00-.018.14v1.482c0 .572-.307 1.105-.8 1.393a1.597 1.597 0 01-1.599 0l-1.276-.742a.584.584 0 00-.13-.053l-.028-.008a.62.62 0 00-.133-.018h-.02a.587.587 0 00-.269.074l-.012.004L9.15 10a.596.596 0 00-.296.516v2.966c0 .212.112.409.296.515l2.554 1.483s.008.002.012.005c.04.022.082.04.126.052l.02.004a.57.57 0 00.123.017l.014.002h.006c.054 0 .108-.01.16-.025a.587.587 0 00.13-.054l1.277-.741a1.597 1.597 0 012.398 1.392v1.482c0 .049.007.095.019.14l.007.028a.619.619 0 00.051.125c.004.006.008.01.01.016a.6.6 0 00.076.1l.014.015c.033.032.069.06.108.084.004.002.006.006.011.008l2.554 1.483a.59.59 0 00.593 0l2.554-1.483a.597.597 0 00.296-.516v-2.965a.595.595 0 00-.296-.516l-2.554-1.483s-.008-.002-.012-.005a.54.54 0 00-.126-.051c-.007-.003-.013-.003-.02-.005a.635.635 0 00-.125-.017h-.018a.557.557 0 00-.16.026.588.588 0 00-.13.053l-1.276.742a1.595 1.595 0 01-1.598 0 1.615 1.615 0 010-2.785l-.005-.001z`}),(0,P.jsx)(`path`,{d:`M14.848 18.265l-2.554-1.482-.012-.005a.526.526 0 00-.126-.052c-.007-.002-.014-.002-.02-.005a.64.64 0 00-.124-.017h-.02a.56.56 0 00-.16.026.588.588 0 00-.13.053l-1.276.742a1.594 1.594 0 01-1.598 0c-.493-.286-.8-.82-.8-1.393V14.65a.563.563 0 00-.018-.14l-.008-.028a.604.604 0 00-.051-.124l-.01-.017a.603.603 0 00-.076-.1l-.014-.015a.596.596 0 00-.109-.084c-.003-.002-.005-.006-.01-.008L5.178 12.65a.587.587 0 00-.591 0l-2.554 1.483a.596.596 0 00-.297.516v2.965c0 .213.113.41.297.516l2.554 1.483.012.004a.618.618 0 00.267.074l.016.002h.007a.55.55 0 00.16-.026.584.584 0 00.129-.053l1.277-.742a1.597 1.597 0 012.398 1.393v1.482c0 .05.007.095.019.14l.007.028c.013.044.03.085.051.125l.01.016c.022.036.047.07.076.1l.014.015c.032.032.069.06.109.084l.01.008 2.554 1.483a.587.587 0 00.593 0l2.554-1.483a.596.596 0 00.296-.515v-2.966a.596.596 0 00-.296-.516h-.002z`})]})),gS=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 80 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:oS}),(0,P.jsx)(`path`,{d:`M69.069 13.524v10.135h-3.325V6.589h3.191v2.779h.211a4.88 4.88 0 011.846-2.178c.845-.549 1.909-.823 3.191-.823 1.164 0 2.183.245 3.057.734.875.481 1.553 1.2 2.035 2.156.482.955.723 2.137.723 3.545v10.857h-3.325V13.202c0-1.238-.322-2.204-.967-2.9-.645-.705-1.53-1.057-2.657-1.057-.771 0-1.457.167-2.057.5-.593.334-1.064.823-1.412 1.467-.341.638-.511 1.408-.511 2.312zM57.95 23.67V6.602h3.324v17.07H57.95zm1.679-19.703a2.114 2.114 0 01-1.49-.578c-.408-.392-.612-.859-.612-1.4 0-.548.204-1.015.612-1.4A2.092 2.092 0 0159.629 0c.578 0 1.07.196 1.479.589.415.385.622.852.622 1.4 0 .541-.207 1.008-.622 1.4-.408.386-.901.578-1.48.578zM54.824 6.59l-6.193 17.07h-3.558L38.87 6.59h3.57l4.324 13.135h.178L51.255 6.59h3.569zM29.69 24.003c-1.683 0-3.132-.359-4.347-1.078-1.209-.726-2.142-1.744-2.802-3.056-.652-1.318-.979-2.863-.979-4.634 0-1.748.327-3.29.979-4.623.66-1.333 1.579-2.374 2.757-3.122 1.186-.749 2.572-1.123 4.159-1.123.963 0 1.897.16 2.801.478a6.787 6.787 0 012.435 1.5c.72.682 1.286 1.567 1.701 2.656.416 1.082.623 2.397.623 3.945v1.178H23.441v-2.489H33.76c0-.874-.178-1.648-.533-2.323a4.034 4.034 0 00-1.501-1.61c-.638-.394-1.386-.59-2.246-.59-.934 0-1.75.23-2.446.69a4.625 4.625 0 00-1.601 1.777 5.131 5.131 0 00-.556 2.367v1.945c0 1.14.2 2.111.6 2.911.408.8.975 1.412 1.701 1.834.727.415 1.575.623 2.546.623a5.29 5.29 0 001.724-.267c.519-.186.967-.46 1.345-.823.378-.363.667-.81.867-1.344l3.147.567a5.694 5.694 0 01-1.357 2.433c-.645.69-1.456 1.226-2.435 1.612-.97.377-2.079.566-3.324.566zM7.371 23.666H0V.905h7.605c2.231 0 4.147.456 5.748 1.367 1.601.904 2.828 2.204 3.68 3.9.86 1.69 1.29 3.716 1.29 6.08 0 2.37-.434 4.408-1.3 6.112-.86 1.704-2.106 3.015-3.737 3.934-1.63.91-3.602 1.367-5.915 1.367zm-3.935-3.001h3.746c1.735 0 3.177-.326 4.325-.978 1.15-.66 2.01-1.611 2.58-2.856.57-1.252.856-2.778.856-4.579 0-1.785-.285-3.3-.856-4.545-.563-1.244-1.405-2.189-2.524-2.833-1.12-.645-2.509-.967-4.17-.967H3.437v16.758z`})]})),_S=(0,N.memo)(({type:e=`mono`,...t})=>(0,P.jsx)(bb,{Icon:e===`color`?pS:hS,Text:gS,"aria-label":oS,spaceMultiple:cS,textMultiple:sS,...t})),vS=hS;vS.Color=pS,vS.Text=gS,vS.Combine=_S,vS.Avatar=mS,vS.colorPrimary=lS,vS.title=oS;var yS=`Gemini CLI`,bS=.75,xS=.3,SS=`#1E1E2E`,CS=SS,wS=`#fff`,TS=.7,ES=(0,N.memo)(({size:e=`1em`,style:t,...n})=>{let{fill:r,id:i}=wb(yS);return(0,P.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:yS}),(0,P.jsx)(`path`,{d:`M0 4.391A4.391 4.391 0 014.391 0h15.217A4.391 4.391 0 0124 4.391v15.217A4.391 4.391 0 0119.608 24H4.391A4.391 4.391 0 010 19.608V4.391z`,fill:r}),(0,P.jsx)(`path`,{clipRule:`evenodd`,d:`M19.74 1.444a2.816 2.816 0 012.816 2.816v15.48a2.816 2.816 0 01-2.816 2.816H4.26a2.816 2.816 0 01-2.816-2.816V4.26A2.816 2.816 0 014.26 1.444h15.48zM7.236 8.564l7.752 3.728-7.752 3.727v2.802l9.557-4.596v-3.866L7.236 5.763v2.801z`,fill:`#1E1E2E`,fillRule:`evenodd`}),(0,P.jsx)(`defs`,{children:(0,P.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:i,x1:`24`,x2:`0`,y1:`6.587`,y2:`16.494`,children:[(0,P.jsx)(`stop`,{stopColor:`#EE4D5D`}),(0,P.jsx)(`stop`,{offset:`.328`,stopColor:`#B381DD`}),(0,P.jsx)(`stop`,{offset:`.476`,stopColor:`#207CFE`})]})})]})}),DS=(0,N.memo)(({...e})=>(0,P.jsx)(yb,{Icon:ES,"aria-label":yS,background:CS,color:wS,iconMultiple:TS,...e})),OS=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:yS}),(0,P.jsx)(`path`,{d:`M16.793 10.358v3.867L7.236 18.82v-2.8l7.751-3.728-7.75-3.728V5.763l9.556 4.595z`}),(0,P.jsx)(`path`,{clipRule:`evenodd`,d:`M19.608 0A4.392 4.392 0 0124 4.392v15.216A4.392 4.392 0 0119.608 24H4.392A4.392 4.392 0 010 19.608V4.392A4.392 4.392 0 014.392 0h15.216zM4.26 1.444A2.816 2.816 0 001.444 4.26v15.48a2.816 2.816 0 002.816 2.816h15.48a2.816 2.816 0 002.816-2.816V4.26a2.816 2.816 0 00-2.816-2.816H4.26z`})]})),kS=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 152 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:yS}),(0,P.jsx)(`path`,{d:`M146.467 1.472h3.294V22.53h-3.294V1.472zM130.814 1.472h3.294v17.911h9.029v3.147h-12.323V1.472zM118.754 23c-2.039 0-3.902-.48-5.588-1.442a10.433 10.433 0 01-3.971-3.97c-.961-1.686-1.441-3.549-1.441-5.588 0-2.04.48-3.902 1.441-5.588a10.434 10.434 0 013.971-3.97C114.852 1.48 116.715 1 118.754 1c1.588 0 3.029.294 4.323.882a10.234 10.234 0 013.471 2.56l-2.353 2.264c-.726-.863-1.529-1.5-2.412-1.912-.882-.431-1.892-.647-3.029-.647-1.412 0-2.706.324-3.882.97-1.157.648-2.079 1.57-2.765 2.765-.686 1.177-1.03 2.55-1.03 4.118 0 1.568.344 2.95 1.03 4.147a7.258 7.258 0 002.765 2.735c1.176.647 2.47.97 3.882.97 2.353 0 4.353-.98 6-2.94l2.382 2.294A10.73 10.73 0 01123.46 22c-1.432.666-3 1-4.706 1zM96.321 5.353a2.177 2.177 0 01-1.559-.618 2.177 2.177 0 01-.617-1.559c0-.607.206-1.117.617-1.529A2.125 2.125 0 0196.321 1a2.03 2.03 0 011.53.647c.43.412.646.922.646 1.53 0 .607-.215 1.127-.647 1.558-.411.412-.921.618-1.529.618zm-1.618 2.176h3.236v15h-3.236v-15zM77.35 7.53h3.088V9.5h.147c.431-.706 1.069-1.284 1.912-1.735a5.63 5.63 0 012.735-.706c1.824 0 3.206.54 4.147 1.618.96 1.059 1.441 2.51 1.441 4.353v9.5h-3.235v-9.06c0-1.176-.294-2.039-.882-2.588-.569-.548-1.363-.823-2.383-.823-.725 0-1.372.206-1.94.618a3.902 3.902 0 00-1.324 1.588 4.979 4.979 0 00-.47 2.147v8.117H77.35v-15zM71.706 5.353a2.177 2.177 0 01-1.558-.618 2.176 2.176 0 01-.618-1.559c0-.607.206-1.117.618-1.529A2.125 2.125 0 0171.706 1a2.03 2.03 0 011.53.647c.431.412.647.922.647 1.53 0 .607-.216 1.127-.647 1.558-.412.412-.922.618-1.53.618zM70.09 7.529h3.235v15h-3.235v-15zM43.487 7.53h3.088V9.5h.147c.451-.725 1.088-1.313 1.912-1.764a5.426 5.426 0 012.647-.677c1.078 0 2.02.255 2.823.765.804.49 1.383 1.147 1.736 1.97a5.747 5.747 0 012.029-1.97c.863-.51 1.872-.765 3.03-.765 1.725 0 3.029.53 3.91 1.588.903 1.04 1.354 2.461 1.354 4.265v9.617h-3.235v-9.058c0-2.275-.97-3.412-2.912-3.412-1.04 0-1.892.422-2.559 1.265-.666.843-1 1.882-1 3.117v8.088h-3.235v-9.058c0-2.275-1-3.412-3-3.412-1.02 0-1.863.422-2.53 1.265-.646.843-.97 1.882-.97 3.117v8.088h-3.235v-15zM33.394 23c-1.47 0-2.794-.343-3.97-1.03a7.421 7.421 0 01-2.736-2.823c-.647-1.216-.97-2.578-.97-4.088 0-1.431.313-2.755.94-3.97.648-1.236 1.54-2.216 2.677-2.942 1.137-.725 2.431-1.088 3.882-1.088 1.51 0 2.814.333 3.912 1a6.425 6.425 0 012.53 2.735c.587 1.157.882 2.461.882 3.912 0 .274-.03.618-.089 1.03h-11.5c.118 1.392.608 2.47 1.471 3.235a4.6 4.6 0 003.059 1.117c.922 0 1.716-.206 2.382-.617a4.827 4.827 0 001.647-1.736l2.735 1.294c-.705 1.236-1.627 2.206-2.764 2.912-1.137.706-2.5 1.059-4.088 1.059zm3.853-9.735a3.635 3.635 0 00-.5-1.559c-.294-.53-.745-.97-1.353-1.323-.588-.353-1.314-.53-2.177-.53-1.039 0-1.921.314-2.647.941-.706.608-1.196 1.432-1.47 2.47h8.147zM13.03 23c-2 0-3.844-.48-5.53-1.442a10.94 10.94 0 01-4.03-3.94C2.49 15.93 2 14.057 2 12c0-2.059.49-3.922 1.47-5.588a10.87 10.87 0 014.03-3.97C9.186 1.48 11.03 1 13.03 1c1.587 0 3.068.284 4.44.853 1.373.569 2.52 1.363 3.441 2.382L18.617 6.53a6.96 6.96 0 00-2.47-1.764c-.941-.412-1.99-.618-3.147-.618a7.75 7.75 0 00-3.794.97c-1.177.648-2.118 1.57-2.824 2.765C5.676 9.078 5.323 10.451 5.323 12c0 1.549.353 2.921 1.06 4.117.705 1.196 1.646 2.118 2.823 2.765a7.806 7.806 0 003.823.97c1.255 0 2.304-.186 3.147-.558a7.996 7.996 0 002.265-1.5c.431-.432.794-.97 1.088-1.618a6.8 6.8 0 00.618-2.117H13v-2.941h10.264c.098.548.147 1.117.147 1.705 0 1.334-.206 2.618-.617 3.853a8.113 8.113 0 01-1.97 3.177C18.842 21.95 16.243 23 13.028 23z`})]})),AS=(0,N.memo)(({type:e=`mono`,...t})=>(0,P.jsx)(bb,{Icon:e===`color`?ES:OS,Text:kS,"aria-label":yS,spaceMultiple:xS,textMultiple:bS,...t})),jS=OS;jS.Color=ES,jS.Text=kS,jS.Combine=AS,jS.Avatar=DS,jS.colorPrimary=SS,jS.title=yS;var MS=`GithubCopilot`,NS=.75,PS=.3,FS=`#000`,IS=FS,LS=`#fff`,RS=.75,zS=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:MS}),(0,P.jsx)(`path`,{d:`M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z`})]})),BS=(0,N.memo)(({...e})=>(0,P.jsx)(yb,{Icon:zS,"aria-label":MS,background:IS,color:LS,iconMultiple:RS,...e})),VS=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 154 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:MS}),(0,P.jsx)(`path`,{d:`M2 11.875c0 5.256 3.013 8.506 8.19 8.506 4.76 0 8.027-2.72 8.027-7.722v-1.545h-7.982v2.928h4.095c-.161 1.96-1.68 3.25-4.049 3.25-2.6 0-4.347-1.498-4.347-4.334V10.7c0-2.582 1.518-4.31 4.186-4.31 1.91 0 3.267.922 3.68 2.374h3.865c-.437-3.366-3.427-5.625-7.499-5.625C5.29 3.138 2 6.366 2 11.875zm17.308-5.44h3.496V3h-3.496v3.435zm0 13.715h3.496V7.795h-3.496V20.15zm10.544-9.52h2.438V7.795h-2.438V3.922h-3.496v3.873H24.17v2.835h2.186v6.8c0 1.637.69 2.72 2.76 2.72h3.174v-2.766h-2.438V10.63zm3.994 9.52h3.727v-7.076h7.568v7.076h3.726V3.346h-3.726v6.777h-7.568V3.346h-3.727V20.15zM62.385 7.795h-3.497v6.523c0 1.868-1.012 3.205-2.668 3.205-1.38 0-2.162-.83-2.162-2.56V7.796h-3.52v7.722c0 2.95 1.357 4.864 4.118 4.864 1.955 0 3.29-.945 4.002-2.49h.207l.46 2.26h3.06V7.794zm1.698 12.355h3.06l.436-2.213h.207c.713 1.591 2.3 2.444 4.072 2.444 3.174 0 5.015-2.374 5.015-6.385 0-4.057-1.887-6.432-5.084-6.432-1.978 0-3.428 1.014-4.003 2.49h-.207V3h-3.496v17.15zm3.496-5.624v-1.06c0-1.845 1.173-3.043 2.99-3.043 1.657 0 2.738.853 2.738 2.581v1.983c0 1.521-.874 2.559-2.714 2.559-1.864 0-3.014-1.222-3.014-3.02zm21.8 5.855c4.21 0 7.177-2.351 7.683-6.063h-3.151c-.46 2.098-2.186 3.389-4.486 3.389-2.852 0-4.67-1.867-4.67-4.518v-2.743c0-2.882 1.887-4.634 4.716-4.634 2.53 0 4.072 1.36 4.44 3.366h3.151c-.368-3.665-3.243-6.063-7.499-6.063-5.038 0-7.982 3.274-7.982 8.668 0 5.348 2.898 8.598 7.798 8.598zm8.533-6.34c0 3.92 2.346 6.34 5.98 6.34 3.796 0 6.004-2.536 6.004-6.34 0-4.056-2.484-6.338-6.003-6.338-3.635 0-5.981 2.397-5.981 6.339zm2.898.992V13.12c0-1.89 1.22-3.066 3.083-3.066 1.817 0 3.082 1.152 3.082 3.066v1.913c0 1.96-1.288 2.997-3.082 2.997-1.749 0-3.083-1.015-3.083-2.997zM111.018 24h2.853v-6.132h.184c.667 1.453 2.116 2.398 4.186 2.398 3.083 0 4.992-2.26 4.992-6.293 0-3.942-1.863-6.27-4.992-6.27-1.863 0-3.427.852-4.186 2.397h-.184l-.345-2.167h-2.508V24zm6.211-6.063c-2.024 0-3.358-1.314-3.358-3.342v-1.222c0-2.005 1.31-3.342 3.381-3.342 2.002 0 3.037 1.152 3.037 2.881v2.144c0 1.815-1.16 2.849-2.973 2.88l-.087.001zm7.1-11.733h2.83V3.115h-2.83v3.09zm0 13.946h2.83V7.933h-2.83V20.15zm4.338 0h2.83V3.115h-2.83V20.15zm9.927-12.447c3.52 0 6.004 2.282 6.004 6.339 0 3.803-2.208 6.339-6.004 6.339-3.634 0-5.98-2.42-5.98-6.34 0-3.941 2.346-6.338 5.98-6.338zm10.922-3.689v3.919H152v2.328h-2.484v7.607H152v2.282h-2.99c-1.749 0-2.324-.922-2.324-2.282v-7.607h-2.185V7.933h2.185V4.014h2.83zm-10.922 6.04c-1.863 0-3.082 1.175-3.082 3.066v1.913c0 1.982 1.334 2.997 3.082 2.997 1.795 0 3.083-1.038 3.083-2.997V13.12c0-1.914-1.265-3.066-3.083-3.066z`})]})),HS=(0,N.memo)(({...e})=>(0,P.jsx)(bb,{Icon:zS,Text:VS,"aria-label":MS,spaceMultiple:PS,textMultiple:NS,...e})),US=zS;US.Text=VS,US.Combine=HS,US.Avatar=BS,US.colorPrimary=FS,US.title=MS;var WS=`Goose`,GS=.7,KS=.2,qS=`#fff`,JS=qS,YS=`#000`,XS=.65,ZS=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:WS}),(0,P.jsx)(`path`,{d:`M21.595 23.61c1.167-.254 2.405-.944 2.405-.944l-2.167-1.784a12.124 12.124 0 01-2.695-3.131 12.127 12.127 0 00-3.97-4.049l-.794-.462a1.115 1.115 0 01-.488-.815.844.844 0 01.154-.575c.413-.582 2.548-3.115 2.94-3.44.503-.416 1.065-.762 1.586-1.159.074-.056.148-.112.221-.17.003-.002.007-.004.009-.007.167-.131.325-.272.45-.438.453-.524.563-.988.59-1.193-.061-.197-.244-.639-.753-1.148.319.02.705.272 1.056.569.235-.376.481-.773.727-1.171.165-.266-.08-.465-.086-.471h-.001V3.22c-.007-.007-.206-.25-.471-.086-.567.35-1.134.702-1.639 1.021 0 0-.597-.012-1.305.599a2.464 2.464 0 00-.438.45l-.007.009c-.058.072-.114.147-.17.221-.397.521-.743 1.083-1.16 1.587-.323.391-2.857 2.526-3.44 2.94a.842.842 0 01-.574.153 1.115 1.115 0 01-.815-.488l-.462-.794a12.123 12.123 0 00-4.049-3.97 12.133 12.133 0 01-3.13-2.695L1.332 0S.643 1.238.39 2.405c.352.428 1.27 1.49 2.34 2.302C1.58 4.167.73 3.75.06 3.4c-.103.765-.063 1.92.043 2.816.726.317 1.961.806 3.219 1.066-1.006.236-2.11.278-2.961.262.15.554.358 1.119.64 1.688.119.263.25.52.39.77.452.125 2.222.383 3.164.171l-2.51.897a27.776 27.776 0 002.544 2.726c2.031-1.092 2.494-1.241 4.018-2.238-2.467 2.008-3.108 2.828-3.8 3.67l-.483.678c-.25.351-.469.725-.65 1.117-.61 1.31-1.47 4.1-1.47 4.1-.154.486.202.842.674.674 0 0 2.79-.861 4.1-1.47.392-.182.766-.4 1.118-.65l.677-.483c.227-.187.453-.37.701-.586 0 0 1.705 2.02 3.458 3.349l.896-2.511c-.211.942.046 2.712.17 3.163.252.142.509.272.772.392.569.28 1.134.49 1.688.64-.016-.853.026-1.956.261-2.962.26 1.258.75 2.493 1.067 3.219.895.106 2.051.146 2.816.043a73.87 73.87 0 01-1.308-2.67c.811 1.07 1.874 1.988 2.302 2.34h-.001z`})]})),QS=(0,N.memo)(({...e})=>(0,P.jsx)(yb,{Icon:ZS,"aria-label":WS,background:JS,color:YS,iconMultiple:XS,...e})),$S=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 87 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:WS}),(0,P.jsx)(`path`,{d:`M17.122 16.607c0 4.696-3.219 7.393-7.774 7.393-3.674 0-6.255-1.546-7.257-4.637l3.401-1.21c.486 1.786 1.852 2.907 3.856 2.907 2.46 0 4.13-1.211 4.13-4.12v-1.122c-.85 1.121-2.46 2-4.494 2C4.61 17.818 2 14.273 2 9.909 2 5.546 4.611 2 8.984 2c2.004 0 3.644.879 4.494 2V2.303h3.644v14.303zm-3.583-6.85c0-2.908-1.58-4.575-3.857-4.575-2.52 0-4.008 1.757-4.008 4.727 0 2.94 1.488 4.727 4.008 4.727 2.278 0 3.857-1.666 3.857-4.515v-.363zM35.546 10.273c0 4.94-3.188 8.273-7.683 8.273-4.494 0-7.682-3.334-7.682-8.273C20.181 5.333 23.37 2 27.863 2c4.495 0 7.683 3.333 7.683 8.273zm-11.69 0c0 3.242 1.548 5.212 4.007 5.212 2.46 0 4.009-1.97 4.009-5.212 0-3.243-1.549-5.212-4.009-5.212-2.46 0-4.008 1.97-4.008 5.212zM52.957 10.273c0 4.94-3.188 8.273-7.682 8.273s-7.682-3.334-7.682-8.273C37.593 5.333 40.78 2 45.275 2s7.682 3.333 7.682 8.273zm-11.69 0c0 3.242 1.548 5.212 4.008 5.212s4.008-1.97 4.008-5.212c0-3.243-1.549-5.212-4.008-5.212-2.46 0-4.008 1.97-4.008 5.212zM54.336 15.182L57.069 13c.941 1.546 2.763 2.576 4.615 2.576 1.549 0 2.976-.546 2.976-1.97 0-1.364-1.336-1.515-3.856-2.03-2.52-.515-5.405-1.152-5.405-4.546 0-2.909 2.55-5.03 6.224-5.03 2.794 0 5.284 1.242 6.438 3L65.6 7.212c-.91-1.424-2.429-2.242-4.19-2.242-1.488 0-2.46.666-2.46 1.727 0 1.152 1.154 1.364 3.158 1.788 2.703.576 6.104 1.151 6.104 4.788 0 3.211-2.946 5.273-6.56 5.273-2.945 0-5.89-1.182-7.317-3.364zM77.965 18.546c-4.555 0-7.743-3.364-7.743-8.273 0-4.667 3.157-8.273 7.59-8.273 4.616 0 7.076 3.485 7.076 7.849v1.212H73.713c.274 2.727 1.913 4.394 4.252 4.394 1.791 0 3.218-.91 3.704-2.546l3.128 1.182c-1.124 2.787-3.644 4.455-6.832 4.455zm-.183-13.485c-1.882 0-3.34 1.12-3.886 3.272h7.318c-.03-1.757-1.124-3.272-3.432-3.272z`})]})),eC=(0,N.memo)(({...e})=>(0,P.jsx)(bb,{Icon:ZS,Text:$S,"aria-label":WS,iconProps:{shape:`square`},spaceMultiple:KS,textMultiple:GS,...e})),tC=ZS;tC.Text=$S,tC.Combine=eC,tC.Avatar=QS,tC.colorPrimary=qS,tC.title=WS;var nC=`Kilo Code`,rC=.75,iC=.4,aC=`#F8F676`,oC=aC,sC=`#1A1A18`,cC=.7,lC=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:nC}),(0,P.jsx)(`path`,{d:`M16.4 21.016h3.667V24h-4.61l-1.99-2.025v-4.689H16.4v3.73zm6.6 0h-2.933v-3.73H16.4v-2.984h4.61L23 16.327v4.689zm-12.467-4.35H7.6v-2.984h2.933v2.984zM1 13.682h2.933v6.714h6.6v2.984H2.99L1 21.355v-7.673zm22-5.968v2.984h-9.533V7.714h3.278v-3.73h-3.278V1h4.22l1.991 2.025v4.689H23zM3.933 4.357H7.6l2.933 2.984v3.357H7.6V7.341H3.933v3.357H1V1h2.933v3.357zm6.6 0H7.6V1h2.933v3.357z`})]})),uC=(0,N.memo)(({...e})=>(0,P.jsx)(yb,{Icon:lC,"aria-label":nC,background:oC,color:sC,iconMultiple:cC,...e})),dC=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:nC}),(0,P.jsx)(`path`,{d:`M0 0v24h24V0H0zm22.222 22.222H1.778V1.778h20.444v20.444zm-7.555-4.964h2.222v1.778h-2.794L12.89 17.83v-2.794h1.778v2.222zm4 0h-1.778v-2.222h-2.222v-1.778h2.793l1.207 1.207v2.793zm-7.556-2.591H9.333v-1.778h1.778v1.778zm-5.778-1.778h1.778v4h4v1.778H6.54L5.333 17.46V12.89zm13.334-3.556v1.778h-5.778V9.333h1.987V7.111h-1.987V5.333h2.558l1.206 1.207v2.793h2.014zm-11.556-2h2.222l1.778 1.778v2H9.333v-2H7.111v2H5.333V5.333h1.778v2zm4 0H9.333v-2h1.778v2z`})]})),fC=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 147 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:nC}),(0,P.jsx)(`path`,{d:`M138.579 21.999c-1.289 0-2.413-.249-3.371-.746-.959-.498-1.705-1.189-2.239-2.073-.516-.903-.774-1.953-.774-3.15v-3.815c0-1.197.258-2.238.774-3.123a5.467 5.467 0 012.239-2.1c.958-.498 2.082-.746 3.371-.746 1.272 0 2.377.248 3.317.746.958.497 1.695 1.197 2.211 2.1.534.885.801 1.926.801 3.123v2.736h-9.369v1.078c0 1.069.258 1.88.774 2.432.516.535 1.281.802 2.294.802.774 0 1.4-.13 1.879-.387.479-.277.783-.673.912-1.189h3.4c-.258 1.308-.958 2.359-2.101 3.151-1.124.774-2.496 1.16-4.118 1.16zm2.985-8.982v-.83c0-1.05-.249-1.851-.746-2.404-.498-.571-1.244-.857-2.239-.857-.995 0-1.75.286-2.266.857s-.774 1.382-.774 2.432v.58l6.274-.055-.249.277zM120.958 22c-1.511 0-2.736-.525-3.676-1.576-.921-1.05-1.382-2.46-1.382-4.228v-4.118c0-1.787.461-3.206 1.382-4.256.921-1.05 2.146-1.575 3.676-1.575 1.253 0 2.247.359 2.984 1.077.737.7 1.106 1.668 1.106 2.902l-.774-.801h.802l-.111-3.62V1.547h3.455v20.176h-3.372v-2.902h-.774l.774-.802c0 1.235-.369 2.211-1.106 2.93-.737.7-1.731 1.05-2.984 1.05zm1.216-2.985c.884 0 1.566-.258 2.045-.774.497-.534.746-1.271.746-2.21v-3.815c0-.94-.249-1.667-.746-2.183-.479-.534-1.161-.802-2.045-.802-.885 0-1.576.258-2.073.774-.498.516-.746 1.253-.746 2.211v3.814c0 .958.248 1.695.746 2.211.497.516 1.188.774 2.073.774zM105.961 21.972c-1.289 0-2.413-.24-3.371-.719a5.573 5.573 0 01-2.211-2.073c-.516-.902-.774-1.962-.774-3.178v-3.758c0-1.216.258-2.267.774-3.151a5.327 5.327 0 012.211-2.073c.958-.497 2.082-.746 3.371-.746 1.309 0 2.433.249 3.372.746a5.155 5.155 0 012.184 2.073c.534.884.801 1.925.801 3.123v3.786c0 1.216-.267 2.276-.801 3.178a5.386 5.386 0 01-2.184 2.073c-.939.48-2.063.719-3.372.719zm0-3.013c.922 0 1.631-.248 2.129-.746.515-.516.773-1.253.773-2.21v-3.76c0-.976-.258-1.713-.773-2.21-.498-.498-1.207-.747-2.129-.747-.902 0-1.612.25-2.128.747-.515.497-.773 1.234-.773 2.21v3.76c0 .957.258 1.694.773 2.21.516.498 1.226.746 2.128.746zM89.777 22c-1.29 0-2.423-.24-3.4-.719-.958-.497-1.704-1.188-2.238-2.072-.516-.903-.774-1.963-.774-3.179V7.242c0-1.235.258-2.294.774-3.179a5.347 5.347 0 012.239-2.045c.976-.497 2.11-.746 3.399-.746 1.308 0 2.432.249 3.372.746a5.347 5.347 0 012.238 2.045c.535.885.802 1.944.802 3.179h-3.483c0-.958-.258-1.686-.773-2.184-.498-.497-1.216-.746-2.156-.746-.94 0-1.668.249-2.183.746-.516.498-.774 1.216-.774 2.156v8.816c0 .94.258 1.668.774 2.183.516.498 1.243.747 2.183.747.94 0 1.658-.249 2.156-.747.515-.515.773-1.243.773-2.183h3.483c0 1.198-.267 2.248-.802 3.15a5.473 5.473 0 01-2.238 2.101c-.94.48-2.064.719-3.372.719zM57.076 21.972c-1.29 0-2.413-.24-3.372-.719a5.576 5.576 0 01-2.21-2.073c-.517-.902-.774-1.962-.774-3.178v-3.758c0-1.216.258-2.267.773-3.151a5.33 5.33 0 012.211-2.073c.959-.497 2.082-.746 3.372-.746 1.308 0 2.432.249 3.372.746a5.155 5.155 0 012.183 2.073c.535.884.802 1.925.802 3.123v3.786c0 1.216-.267 2.276-.802 3.178a5.385 5.385 0 01-2.183 2.073c-.94.48-2.064.719-3.372.719zm0-3.013c.921 0 1.63-.248 2.128-.746.516-.516.774-1.253.774-2.21v-3.76c0-.976-.258-1.713-.774-2.21-.497-.498-1.207-.747-2.128-.747-.903 0-1.612.25-2.128.747s-.774 1.234-.774 2.21v3.76c0 .957.258 1.694.774 2.21.516.498 1.225.746 2.128.746zM43.102 21.724c-.994 0-1.87-.203-2.625-.609a4.446 4.446 0 01-1.741-1.713c-.424-.756-.636-1.621-.636-2.598V4.671h-4.864V1.548h8.319v15.256c0 .553.157.995.47 1.327.331.313.773.47 1.326.47h4.588v3.123h-4.837zM18.295 21.723v-3.15h5.306V9.644h-4.615V6.522h7.932v12.05h4.698v3.15h-13.32zM24.983 3.98c-.7 0-1.253-.175-1.658-.525-.405-.369-.608-.857-.608-1.465 0-.608.203-1.087.608-1.437C23.73.184 24.283 0 24.983 0s1.253.184 1.659.553c.405.35.608.829.608 1.437 0 .608-.203 1.096-.608 1.465-.406.35-.959.525-1.659.525zM2 21.724V1.548h3.455v8.153h2.404l3.786-8.153h3.759l-4.505 9.673 4.726 10.503h-3.841l-3.98-8.872h-2.35v8.872H2z`})]})),pC=(0,N.memo)(({...e})=>(0,P.jsx)(bb,{Icon:dC,Text:fC,"aria-label":nC,spaceMultiple:iC,textMultiple:rC,...e})),mC=dC;mC.Text=fC,mC.Combine=pC,mC.Avatar=uC,mC.colorPrimary=aC,mC.title=nC;var hC=`opencode`,gC=.6,_C=.2,vC=`#000`,yC=vC,bC=`#fff`,xC=.75,SC=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:hC}),(0,P.jsx)(`path`,{d:`M16 6H8v12h8V6zm4 16H4V2h16v20z`})]})),CC=(0,N.memo)(({...e})=>(0,P.jsx)(yb,{Icon:SC,"aria-label":hC,background:yC,color:bC,iconMultiple:xC,...e})),wC=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 138 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:hC}),(0,P.jsx)(`path`,{d:`M12.429 17.143H5.57v-6.857h6.858v6.857z`,fillOpacity:`.25`}),(0,P.jsx)(`path`,{d:`M12.428 6.857H5.571v10.286h6.857V6.857zm3.43 13.715H2.142V3.429h13.714v17.143z`,fillOpacity:`.75`}),(0,P.jsx)(`path`,{d:`M29.571 17.143h-6.857v-6.857h6.857v6.857z`,fillOpacity:`.25`}),(0,P.jsx)(`path`,{d:`M22.714 17.143h6.858V6.857h-6.858v10.286zM33 20.572H22.714V24h-3.428V3.43H33v17.143z`,fillOpacity:`.75`}),(0,P.jsx)(`path`,{d:`M50.143 13.714v3.429H39.857v-3.429h10.286z`,fillOpacity:`.25`}),(0,P.jsx)(`path`,{d:`M50.143 13.714H39.857v3.429h10.286v3.429H36.429V3.429h13.714v10.285zm-10.286-3.428h6.857V6.857h-6.857v3.429z`,fillOpacity:`.75`}),(0,P.jsx)(`path`,{d:`M63.857 20.571H57V10.286h6.857V20.57z`,fillOpacity:`.25`}),(0,P.jsx)(`path`,{d:`M63.857 6.857H57v13.715h-3.429V3.429h10.286v3.428zm3.429 13.715h-3.429V6.857h3.429v13.715z`,fillOpacity:`.75`}),(0,P.jsx)(`path`,{d:`M84.428 17.143H74.144v-6.857h10.285v6.857z`,fillOpacity:`.25`}),(0,P.jsx)(`path`,{d:`M84.428 6.857H74.144v10.286h10.285v3.429H70.715V3.429H84.43v3.428z`}),(0,P.jsx)(`path`,{d:`M98.143 17.143h-6.857v-6.857h6.857v6.857z`,fillOpacity:`.25`}),(0,P.jsx)(`path`,{d:`M98.143 6.857h-6.857v10.286h6.857V6.857zm3.428 13.715H87.857V3.429h13.714v17.143z`}),(0,P.jsx)(`path`,{d:`M115.286 17.143h-6.857v-6.857h6.857v6.857z`,fillOpacity:`.25`}),(0,P.jsx)(`path`,{d:`M115.286 6.857h-6.857v10.286h6.857V6.857zm3.428 13.714H105V3.43h10.286V0h3.428v20.571z`}),(0,P.jsx)(`path`,{d:`M135.857 13.714v3.429h-10.286v-3.429h10.286z`,fillOpacity:`.25`}),(0,P.jsx)(`path`,{d:`M125.571 6.857v3.429h6.858V6.857h-6.858zm10.286 6.857h-10.286v3.429h10.286v3.429h-13.714V3.429h13.714v10.285z`})]})),TC=(0,N.memo)(({...e})=>(0,P.jsx)(bb,{Text:wC,"aria-label":hC,spaceMultiple:_C,textMultiple:gC,...e})),EC=SC;EC.Text=wC,EC.Combine=TC,EC.Avatar=CC,EC.colorPrimary=vC,EC.title=hC;var DC=`Qwen`,OC=.7,kC=.2,AC=`#615ced`,jC=`linear-gradient(to right, #6336E7, #6F69F7)`,MC=AC,NC=`#fff`,PC=.75,FC=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:DC}),(0,P.jsx)(`path`,{d:`M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z`})]})),IC=(0,N.memo)(({...e})=>(0,P.jsx)(yb,{Icon:FC,"aria-label":DC,background:MC,color:NC,iconMultiple:PC,...e})),LC=(0,N.memo)(({size:e=`1em`,style:t,...n})=>{let{id:r,fill:i}=wb(DC);return(0,P.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:DC}),(0,P.jsx)(`path`,{d:`M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z`,fill:i,fillRule:`nonzero`}),(0,P.jsx)(`defs`,{children:(0,P.jsxs)(`linearGradient`,{id:r,x1:`0%`,x2:`100%`,y1:`0%`,y2:`0%`,children:[(0,P.jsx)(`stop`,{offset:`0%`,stopColor:`#6336E7`,stopOpacity:`.84`}),(0,P.jsx)(`stop`,{offset:`100%`,stopColor:`#6F69F7`,stopOpacity:`.84`})]})})]})}),RC=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 75 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:DC}),(0,P.jsx)(`path`,{d:`M11.425 14.13h3.642l1.529 1.795a7.89 7.89 0 002.166-2.832 8.36 8.36 0 00.771-3.562c0-2.03-.624-3.664-1.874-4.905-1.24-1.25-2.884-1.874-4.931-1.874-1.028 0-1.99.186-2.885.558A6.99 6.99 0 007.45 4.932 8.576 8.576 0 005.656 7.67a8.354 8.354 0 00-.625 3.19c0 2.003.611 3.643 1.834 4.919 1.223 1.276 2.779 1.914 4.666 1.914.39 0 .793-.031 1.21-.093.425-.062.868-.16 1.329-.293l-2.645-3.177zM18.07 22l-2.127-2.46c-.753.293-1.48.51-2.18.652a9.84 9.84 0 01-2.073.226c-2.97 0-5.326-.85-7.072-2.552C2.873 16.164 2 13.865 2 10.966c0-1.577.28-3.052.837-4.426a10.148 10.148 0 012.406-3.576A10.427 10.427 0 018.713.758C10.025.253 11.429 0 12.927 0c2.915 0 5.25.86 7.005 2.579 1.755 1.72 2.632 4.01 2.632 6.872 0 1.764-.354 3.399-1.063 4.905a10.156 10.156 0 01-3.031 3.776L21.714 22H18.07zm5.743-14.675h2.884l2.047 6.433.054.16c.248.789.38 1.373.399 1.755.097-.302.221-.62.372-.958.16-.345.354-.713.585-1.103l4.227-7.218 2.06 7.43c.08.275.146.559.2.851.053.293.097.63.133 1.01.132-.372.265-.708.398-1.01.142-.3.28-.562.412-.784l3.816-6.567h3.243L36.097 20.71l-2.127-7.045a8.683 8.683 0 01-.213-.798 17.846 17.846 0 01-.146-.97 69.17 69.17 0 01-.519 1.063c-.15.302-.265.514-.345.638l-4.28 7.112-4.653-13.385zm24.392 4.785h6.5c-.026-.85-.292-1.52-.797-2.007-.496-.497-1.166-.745-2.008-.745-.957 0-1.768.248-2.432.745-.665.496-1.086 1.165-1.263 2.007zm6.34 3.948l2.061 1.608c-.735.966-1.533 1.67-2.392 2.114-.86.443-1.848.665-2.965.665-1.87 0-3.38-.563-4.533-1.689-1.152-1.134-1.728-2.623-1.728-4.466 0-2.162.66-3.935 1.98-5.317 1.33-1.391 3.018-2.087 5.066-2.087 1.71 0 3.07.532 4.08 1.595 1.02 1.055 1.53 2.473 1.53 4.254 0 .15-.01.345-.027.585-.01.23-.027.51-.054.837h-9.61c0 1.143.288 2.056.864 2.738.576.674 1.342 1.01 2.3 1.01.664 0 1.293-.159 1.887-.478a4.633 4.633 0 001.542-1.369zm14.317 3.868l.957-7.244c.018-.133.031-.27.04-.412.009-.151.013-.368.013-.652 0-.824-.2-1.453-.598-1.887-.399-.444-.98-.665-1.741-.665-1.188 0-2.118.385-2.792 1.156-.673.763-1.112 1.937-1.316 3.523l-.797 6.181H59.77l1.661-12.601h2.752l-.213 1.515c.727-.664 1.476-1.156 2.247-1.475a6.5 6.5 0 012.486-.479c1.293 0 2.3.341 3.017 1.024.727.673 1.09 1.622 1.09 2.845 0 .31-.018.673-.053 1.09-.036.407-.089.886-.16 1.435l-.877 6.647h-2.858z`})]})),zC=(0,N.memo)(({type:e=`mono`,extraStyle:t,...n})=>(0,P.jsx)(bb,{Icon:e===`color`?LC:FC,Text:RC,"aria-label":DC,extraStyle:{fontWeight:500,...t},spaceMultiple:kC,textMultiple:OC,...n})),BC=FC;BC.Color=LC,BC.Text=RC,BC.Combine=zC,BC.Avatar=IC,BC.colorPrimary=AC,BC.colorGradient=jC,BC.title=DC;var VC=`Replit`,HC=.75,UC=.2,WC=`#FD5402`,GC=WC,KC=`#fff`,qC=.6,JC=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:VC}),(0,P.jsx)(`path`,{d:`M11.878 7.761H3.482A1.469 1.469 0 012 6.304V1.457C2 .644 2.67 0 3.482 0h6.913c.827 0 1.483.658 1.483 1.457v6.304zM20.882 16.215h-8.995V7.75h8.995c.87 0 1.588.717 1.588 1.586v5.294c0 .885-.717 1.586-1.588 1.586zM10.395 24H3.482C2.67 24 2 23.343 2 22.546v-4.853c0-.797.67-1.454 1.482-1.454h8.396v6.307c0 .797-.67 1.454-1.483 1.454z`})]})),YC=(0,N.memo)(({...e})=>(0,P.jsx)(yb,{Icon:JC,"aria-label":VC,background:GC,color:KC,iconMultiple:qC,...e})),XC=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:VC}),(0,P.jsx)(`path`,{d:`M11.878 7.761H3.482A1.469 1.469 0 012 6.304V1.457C2 .644 2.67 0 3.482 0h6.913c.827 0 1.483.658 1.483 1.457v6.304zM20.882 16.215h-8.995V7.75h8.995c.87 0 1.588.717 1.588 1.586v5.294c0 .885-.717 1.586-1.588 1.586zM10.395 24H3.482C2.67 24 2 23.343 2 22.546v-4.853c0-.797.67-1.454 1.482-1.454h8.396v6.307c0 .797-.67 1.454-1.483 1.454z`,fill:`#FD5402`})]})),ZC=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 92 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:VC}),(0,P.jsx)(`path`,{d:`M10.831 6.145l-.822.768h-.823L8.93 5.94c-.055-.24-.293-.393-.567-.393H3.097c-.33 0-.585.239-.585.512V7.75c0 .29.256.512.585.512h3.108v7.924h-3.62c-.329 0-.585.24-.585.513v1.69c0 .29.256.513.585.513h11.391c.33 0 .585-.24.585-.512v-1.691c0-.29-.256-.513-.585-.513H9.79v-5.601c0-1.571.988-2.391 2.926-2.391h3.145c.329 0 .585-.24.585-.512V5.82c0-.29-.256-.512-.585-.512h-1.865c-1.372-.017-2.45.222-3.164.837zM24.348 5.307c-4.596 0-7.059 2.38-7.059 7.213 0 4.85 2.444 7.232 6.968 7.232 3.502 0 5.763-1.422 6.365-3.856.091-.338-.2-.657-.565-.657h-2.189a.598.598 0 00-.547.355c-.383 1.048-1.478 1.546-2.955 1.546-2.298 0-3.392-1.226-3.538-4.087h9.976c.548-5.347-1.732-7.746-6.456-7.746zm-3.41 5.579c.346-2.097 1.422-3.074 3.392-3.074 2.097 0 3.082 1.084 3.137 3.074h-6.53zM41.517 5.307c-1.187 0-2.042.255-2.706.867l-.82.766h-.751l-.28-.987a.564.564 0 00-.54-.39h-1.572c-.314 0-.559.237-.559.51V23.49c0 .289.245.51.56.51h2.304c.314 0 .558-.238.558-.51v-3.776l-.296-2.024.768-.17.82.765c.646.578 1.432.867 2.602.867 3.387 0 5.43-2.279 5.43-6.922-.018-4.644-2.043-6.923-5.517-6.923zm-1.134 11.056c-1.729 0-2.689-.867-2.689-2.517V10.58c0-1.65.943-2.518 2.689-2.518 2.112 0 3.072 1.293 3.072 4.134-.017 2.874-.96 4.167-3.072 4.167zM89.517 7.305v-1.76c0-.301-.25-.532-.57-.532h-6.172V1.6c0-.302-.25-.533-.57-.533h-2.347c-.32 0-.57.25-.57.533v3.413h-3.646c-.32 0-.57.249-.57.533v1.76c0 .301.25.532.57.532h3.647v5.226c0 3.998 1.885 5.847 5.94 5.847h3.31c.32 0 .569-.25.569-.534v-1.759c0-.302-.25-.533-.57-.533h-2.774c-2.207 0-2.99-.871-2.99-3.04V7.857h6.174c.32-.018.569-.266.569-.55zM60.926 16.17H57.36V.734c0-.293-.245-.517-.56-.517h-6.993c-.315 0-.56.241-.56.517v1.708c0 .293.245.517.56.517h4.126v13.21H49.3c-.315 0-.56.24-.56.516v1.708c0 .293.245.517.56.517h11.626c.315 0 .56-.241.56-.517v-1.707c0-.294-.245-.518-.56-.518zM71.009 0h-3.164c-.317 0-.563.246-.563.527V2.76c0 .299.246.527.563.527h3.164c.316 0 .562-.246.562-.527V.527A.56.56 0 0071.01 0zM71.436 16.259V5.834c0-.298-.246-.527-.563-.527H63.79c-.316 0-.562.246-.562.527v1.74c0 .3.246.528.562.528h4.201v8.157h-4.2c-.317 0-.563.246-.563.527v1.74c0 .3.246.528.562.528h11.954c.316 0 .562-.246.562-.528v-1.74c0-.299-.246-.527-.562-.527h-4.307z`})]})),QC=(0,N.memo)(({type:e=`mono`,...t})=>(0,P.jsx)(bb,{Icon:e===`color`?XC:JC,Text:ZC,"aria-label":VC,spaceMultiple:UC,textMultiple:HC,...t})),$C=JC;$C.Color=XC,$C.Text=ZC,$C.Combine=QC,$C.Avatar=YC,$C.colorPrimary=WC,$C.title=VC;var ew=`RooCode`,tw=.6,nw=.4,rw=`#000`,iw=rw,aw=`#fff`,ow=.75,sw=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:ew}),(0,P.jsx)(`path`,{d:`M20.113 5.5l-.442 1.557a.157.157 0 01-.196.106l-7.414-2.157a.16.16 0 00-.143.028l-7.342 5.74a.159.159 0 01-.074.032l-4.37.656a.154.154 0 00-.132.162l.02.245c.005.078.071.14.152.141l5.074.128.058.002 3.75-1.953a.16.16 0 01.164.01l2.657 1.847a.152.152 0 01.066.125l-.023 2.45c0 .032.01.063.028.089l3.737 5.227c.03.04.077.065.129.065h1.182a.153.153 0 00.14-.224l-2.664-4.919a.15.15 0 01.005-.152l1.389-2.169a.156.156 0 01.062-.055l4.965-2.456a.16.16 0 01.158.01l1.418.921a.16.16 0 00.087.026h1.289c.125 0 .2-.136.13-.237l-3.578-5.29c-.074-.109-.246-.082-.282.044z`})]})),cw=(0,N.memo)(({...e})=>(0,P.jsx)(yb,{Icon:sw,"aria-label":ew,background:iw,color:aw,iconMultiple:ow,...e})),lw=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 132 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:ew}),(0,P.jsx)(`path`,{d:`M6.666 11.013h5.111c1.07 0 1.872-.235 2.407-.707.535-.47.803-1.237.803-2.297 0-1.02-.268-1.757-.803-2.209-.535-.47-1.337-.706-2.407-.706H6.666v5.92zM2 1.5h11.441c.951 0 1.803.158 2.556.472a5.552 5.552 0 011.961 1.237c.555.53.971 1.148 1.248 1.855.298.687.446 1.433.446 2.238 0 1.237-.267 2.307-.802 3.21-.515.904-1.367 1.59-2.556 2.062v.059c.575.157 1.05.403 1.427.736.376.314.683.697.92 1.149.239.432.407.913.506 1.443.119.53.198 1.06.238 1.59.02.334.04.727.06 1.178.019.452.049.913.088 1.385.06.47.139.922.238 1.354.119.413.287.766.505 1.06h-4.665c-.258-.667-.416-1.462-.476-2.385a35.211 35.211 0 00-.267-2.65c-.159-1.1-.496-1.905-1.01-2.415-.516-.511-1.358-.766-2.527-.766H6.666v8.217H2V1.5zM25.26 14.93c0 .61.059 1.208.177 1.797.12.57.317 1.09.595 1.561.297.452.683.815 1.159 1.09.475.275 1.07.412 1.783.412.713 0 1.307-.137 1.783-.412a3.086 3.086 0 001.159-1.09c.297-.471.505-.991.624-1.56a9.049 9.049 0 00.178-1.797c0-.609-.06-1.208-.178-1.797a4.383 4.383 0 00-.624-1.56 3.085 3.085 0 00-1.16-1.09c-.475-.295-1.069-.442-1.782-.442-.713 0-1.308.147-1.783.442a3.408 3.408 0 00-1.16 1.09 4.75 4.75 0 00-.593 1.56 9.056 9.056 0 00-.179 1.797zm-4.22 0c0-1.216.188-2.316.564-3.298.376-1.001.911-1.845 1.605-2.533a6.928 6.928 0 012.496-1.62c.97-.392 2.06-.588 3.269-.588s2.298.196 3.269.589c.99.373 1.832.913 2.526 1.62.693.687 1.228 1.53 1.605 2.532.376.982.564 2.082.564 3.299s-.188 2.317-.564 3.298a7.302 7.302 0 01-1.605 2.533c-.694.687-1.536 1.217-2.526 1.59-.971.374-2.06.56-3.269.56s-2.298-.186-3.27-.56a7.13 7.13 0 01-2.495-1.59 7.298 7.298 0 01-1.605-2.533c-.377-.981-.565-2.081-.565-3.298zM41.94 14.93c0 .61.06 1.208.179 1.797.119.57.317 1.09.594 1.561a3.41 3.41 0 001.16 1.09c.474.275 1.069.412 1.782.412.713 0 1.308-.137 1.783-.412a3.085 3.085 0 001.16-1.09c.296-.471.505-.991.623-1.56a9.063 9.063 0 00.179-1.797c0-.609-.06-1.208-.179-1.797a4.384 4.384 0 00-.624-1.56 3.084 3.084 0 00-1.159-1.09c-.475-.295-1.07-.442-1.783-.442-.713 0-1.308.147-1.783.442a3.408 3.408 0 00-1.159 1.09 4.748 4.748 0 00-.594 1.56 9.056 9.056 0 00-.179 1.797zm-4.22 0c0-1.216.189-2.316.565-3.298.377-1.001.912-1.845 1.605-2.533a6.928 6.928 0 012.496-1.62c.971-.392 2.06-.588 3.27-.588 1.208 0 2.297.196 3.268.589.99.373 1.833.913 2.526 1.62.694.687 1.228 1.53 1.605 2.532.376.982.564 2.082.564 3.299s-.188 2.317-.564 3.298a7.3 7.3 0 01-1.605 2.533c-.693.687-1.535 1.217-2.526 1.59-.97.374-2.06.56-3.269.56-1.208 0-2.298-.186-3.269-.56a7.13 7.13 0 01-2.496-1.59 7.297 7.297 0 01-1.605-2.533c-.376-.981-.564-2.081-.564-3.298zM76.254 8.569a3.632 3.632 0 00-.535-1.443 4.525 4.525 0 00-2.466-1.944 4.55 4.55 0 00-1.635-.294c-1.05 0-1.942.206-2.675.618a4.857 4.857 0 00-1.783 1.62 7.126 7.126 0 00-1.01 2.297 11.954 11.954 0 00-.297 2.68c0 .884.099 1.748.297 2.592.218.824.554 1.57 1.01 2.238a5.22 5.22 0 001.783 1.62c.733.392 1.625.589 2.675.589 1.426 0 2.536-.432 3.328-1.296.812-.864 1.308-2.003 1.486-3.416h4.517c-.119 1.315-.426 2.503-.921 3.563a8.537 8.537 0 01-1.962 2.71 8.349 8.349 0 01-2.853 1.708c-1.089.393-2.288.589-3.595.589-1.625 0-3.09-.275-4.398-.825-1.288-.569-2.378-1.345-3.27-2.326a10.24 10.24 0 01-2.05-3.446c-.475-1.335-.713-2.768-.713-4.3 0-1.57.238-3.024.713-4.359.476-1.354 1.16-2.532 2.05-3.534.892-1.001 1.982-1.787 3.27-2.356C68.527 1.284 69.993 1 71.618 1c1.169 0 2.268.167 3.299.5a8.62 8.62 0 012.793 1.473 7.635 7.635 0 012.05 2.356c.535.943.872 2.023 1.01 3.24h-4.516zM85.948 14.93c0 .61.06 1.208.178 1.797.12.57.317 1.09.594 1.561.298.452.684.815 1.16 1.09.475.275 1.07.412 1.783.412.713 0 1.307-.137 1.783-.412a3.085 3.085 0 001.159-1.09c.297-.471.505-.991.624-1.56a9.063 9.063 0 00.178-1.797c0-.609-.06-1.208-.178-1.797a4.387 4.387 0 00-.624-1.56 3.084 3.084 0 00-1.16-1.09c-.475-.295-1.07-.442-1.782-.442-.714 0-1.308.147-1.784.442a3.408 3.408 0 00-1.159 1.09 4.755 4.755 0 00-.594 1.56 9.063 9.063 0 00-.178 1.797zm-4.22 0c0-1.216.188-2.316.565-3.298.376-1.001.91-1.845 1.604-2.533a6.928 6.928 0 012.497-1.62c.97-.392 2.06-.588 3.269-.588 1.208 0 2.298.196 3.269.589.99.373 1.832.913 2.525 1.62.694.687 1.229 1.53 1.606 2.532.375.982.563 2.082.563 3.299s-.188 2.317-.563 3.298a7.307 7.307 0 01-1.606 2.533c-.693.687-1.535 1.217-2.525 1.59-.971.374-2.06.56-3.27.56-1.208 0-2.298-.186-3.268-.56a7.13 7.13 0 01-2.497-1.59 7.298 7.298 0 01-1.604-2.533c-.377-.981-.565-2.081-.565-3.298zM109.79 14.871c0-.628-.058-1.227-.178-1.796a4.088 4.088 0 00-.623-1.532 3.225 3.225 0 00-1.1-1.09c-.456-.274-1.03-.412-1.724-.412-.693 0-1.277.138-1.753.413a3.425 3.425 0 00-1.16 1.09 5.283 5.283 0 00-.622 1.56 8.696 8.696 0 00-.179 1.797c0 .589.069 1.178.207 1.767.14.589.357 1.119.655 1.59.316.452.703.825 1.158 1.12.476.274 1.04.412 1.694.412.694 0 1.268-.138 1.724-.413a3.15 3.15 0 001.129-1.09 5.06 5.06 0 00.594-1.59c.12-.589.178-1.197.178-1.826zm.061 5.714h-.061c-.494.825-1.147 1.423-1.96 1.796-.793.354-1.695.53-2.705.53-1.149 0-2.159-.216-3.031-.648a6.425 6.425 0 01-2.169-1.796 8.75 8.75 0 01-1.279-2.621 11.264 11.264 0 01-.415-3.063c0-1.021.14-2.003.415-2.945.298-.962.724-1.806 1.28-2.533a6.35 6.35 0 012.138-1.738c.852-.451 1.843-.677 2.972-.677a5.86 5.86 0 012.585.59 4.407 4.407 0 011.962 1.678h.059V1.5h4.219V22.53h-4.01v-1.944zM125.908 13.281c-.199-1.06-.555-1.865-1.07-2.415-.495-.55-1.258-.824-2.289-.824-.673 0-1.237.118-1.693.353-.436.216-.793.491-1.071.825a3.407 3.407 0 00-.563 1.06 5.3 5.3 0 00-.179 1.002h6.865zm-6.865 2.651c.059 1.355.406 2.336 1.04 2.945.635.609 1.545.913 2.733.913.854 0 1.586-.206 2.2-.618.614-.432.991-.884 1.129-1.355h3.714c-.594 1.826-1.504 3.132-2.733 3.917-1.228.785-2.714 1.178-4.458 1.178-1.208 0-2.297-.186-3.268-.56-.971-.392-1.794-.942-2.467-1.649a7.55 7.55 0 01-1.575-2.533c-.357-.981-.536-2.061-.536-3.24 0-1.138.189-2.198.566-3.18a7.269 7.269 0 011.604-2.533 7.483 7.483 0 012.467-1.708c.971-.412 2.041-.618 3.209-.618 1.308 0 2.447.255 3.418.765a6.522 6.522 0 012.377 2.003 8.125 8.125 0 011.368 2.886c.277 1.08.375 2.21.296 3.387h-11.084z`})]})),uw=(0,N.memo)(({...e})=>(0,P.jsx)(bb,{Icon:sw,Text:lw,"aria-label":ew,spaceMultiple:nw,textMultiple:tw,...e})),dw=sw;dw.Text=lw,dw.Combine=uw,dw.Avatar=cw,dw.colorPrimary=rw,dw.title=ew;var fw=`#000`,pw=fw,mw=`#fff`,hw=.75,gw=(0,N.memo)(({size:e=`1em`,style:t,...n})=>(0,P.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,P.jsx)(`title`,{children:`V0`}),(0,P.jsx)(`path`,{clipRule:`evenodd`,d:`M14.252 8.25h5.624c.088 0 .176.006.26.018l-5.87 5.87a1.889 1.889 0 01-.019-.265V8.25h-2.25v5.623a4.124 4.124 0 004.125 4.125h5.624v-2.25h-5.624c-.09 0-.179-.006-.265-.018l5.874-5.875a1.9 1.9 0 01.02.27v5.623H24v-5.624A4.124 4.124 0 0019.876 6h-5.624v2.25zM0 7.5v.006l7.686 9.788c.924 1.176 2.813.523 2.813-.973V7.5H8.25v6.87L2.856 7.5H0z`})]})),_w=(0,N.memo)(({...e})=>(0,P.jsx)(yb,{Icon:gw,"aria-label":`V0`,background:pw,color:mw,iconMultiple:hw,...e})),vw=gw;vw.Avatar=_w,vw.colorPrimary=fw,vw.title=`V0`;var yw=20,bw={Amp:Lb,Antigravity:Yb,Claude:cx,ClaudeCode:xx,Cline:Nx,Codex:qx,Cursor:aS,Devin:vS,GeminiCLI:jS,GithubCopilot:US,Goose:tC,KiloCode:mC,OpenCode:EC,Qwen:BC,Replit:$C,RooCode:dw,V0:vw};function xw({human:e,initial:t,name:n,src:r}){let[i,a]=(0,N.useState)(null),o=!e&&n?gb(n):void 0;if(o){let e=bw[o];return(0,P.jsx)(e.Avatar,{size:yw,shape:`circle`,style:{flexShrink:0}})}return r&&i!==r?(0,P.jsx)(`img`,{src:r,alt:``,width:yw,height:yw,onError:()=>a(r),className:`xw4jnvo x1qx5ct2 x2lah0s x16rqkct xl1xv1r`}):(0,P.jsx)(`span`,{...{0:{className:`xw4jnvo x1qx5ct2 x2lah0s x16rqkct xrvj5dj x1ku5rj1 xfungia x1k6wstc x1k89be0`},1:{className:`xw4jnvo x1qx5ct2 x2lah0s x16rqkct xrvj5dj x1ku5rj1 xfungia x1k6wstc x614ynp`}}[!!e|0],children:t??(e?`你`:`A`)})}function Sw({placeholder:e,initial:t=``,autoFocus:n,focusKey:r,onSubmit:i,onCancel:a,onChange:o}){let[s,c]=(0,N.useState)(t),[l,u]=(0,N.useState)(!1),d=(0,N.useRef)(null);(0,N.useEffect)(()=>{r&&d.current?.focus({preventScroll:!0})},[r]);let f=e=>{c(e),o?.(e)},p=()=>{let e=s.trim();if(!e)return;let t=i(e);f(``),u(!1),t?.then(t=>{t||(f(e),u(!0))})};return(0,P.jsxs)(`div`,{className:`x1n2onr6 x1nn3v0j xqin4a2 xsag5q8`,onClick:e=>e.stopPropagation(),children:[l?(0,P.jsx)(`div`,{className:`xzueoph x7zghnd xqfszdh x1j6dyjg`,children:`没发出去:电脑离线了,文字还在这里`}):null,(0,P.jsx)(`textarea`,{ref:d,autoFocus:n,value:s,rows:1,placeholder:e,onChange:e=>f(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&p(),e.key===`Escape`&&a?.()},className:`x1lliihq xh8yej3 x9f619 x1gg8mnh x1717udv xjfo4ez xc342km x1a2a7pz xjbqb8w xo2rkog xqfszdh xfifm61 xf2x79s x1dbl2gt xtt52l0 x5f5z56`}),(0,P.jsx)(`button`,{type:`button`,"aria-label":`发送`,title:`发送 ⌘↵`,disabled:!s.trim(),onClick:p,className:`x10l6tqk x131sewu x1jn9clo xgd8bvy x1fgtraw xrvj5dj x1ku5rj1 x1717udv xc342km x16rqkct x19ckca5 xs0jrwl x1ypdohk xtgyt42 x1hc1fzr x2wzlov`,children:(0,P.jsx)(Kn,{size:15,strokeWidth:2.4})})]})}var Cw=e=>new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`});function ww({message:e,onEdit:t,onDelete:n}){let[r,i]=(0,N.useState)(!1),a=e.author===`human`,{label:o,initial:s}=_b(e);return(0,P.jsxs)(`div`,{className:`xp59q4u xaope02 xso031l x1q0q8m5 xtrfj0v x1bta2m4`,children:[(0,P.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x1j9xkj6 x1j6dyjg x1s688f xjpr12u`,children:[(0,P.jsx)(xw,{human:a,initial:s,name:e.name,src:e.avatar}),o,` `,(0,P.jsx)(`span`,{className:`xc7n51q xo1l8bm`,children:Cw(e.editedAt??e.at)}),a&&t&&n&&!e.deleted&&!r?(0,P.jsxs)(`span`,{className:`xvc5jky x78zum5 x17d4w8g`,children:[(0,P.jsx)(`button`,{type:`button`,onClick:()=>i(!0),className:`x1717udv xc342km xjbqb8w xddlp02 xytdrwj x1j6dyjg x1ypdohk`,children:`编辑`}),(0,P.jsx)(`button`,{type:`button`,onClick:n,className:`x1717udv xc342km xjbqb8w xddlp02 xytdrwj x1j6dyjg x1ypdohk`,children:`删除`})]}):null]}),e.deleted?(0,P.jsx)(`div`,{className:`xc7n51q x1k4tb9n`,children:`已删除`}):r?(0,P.jsx)(Sw,{autoFocus:!0,initial:e.text,placeholder:``,onSubmit:e=>(t?.(e),i(!1)),onCancel:()=>i(!1)}):(0,P.jsx)(`div`,{className:`x126k92a xj0a0fe`,children:e.text})]})}function Tw({thread:e,agent:t=`Agent`}){let n=mb(e);return n===`human`?(0,P.jsx)(`span`,{className:`x2lah0s x1j6dyjg x7zghnd`,children:`等你回复`}):n===`agent`?(0,P.jsxs)(`span`,{title:`${t} 下一轮会读到这条`,className:`x2lah0s x1j6dyjg x19ay2w6`,children:[`等 `,t]}):null}function Ew({thread:e,actions:t}){return(0,P.jsx)(P.Fragment,{children:e.messages.map(n=>(0,P.jsx)(ww,{message:n,onEdit:t&&(r=>t.edit(e.id,n.id,r)),onDelete:t&&(()=>t.remove(e.id,n.id))},n.id))})}function Dw({thread:e,label:t,actions:n,agent:r,onClose:i}){let a=e.status===`resolved`;return(0,P.jsxs)(`div`,{className:`xqfszdh xfifm61 x1dbl2gt xo2rkog xt0e3qv`,children:[(0,P.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x167g77z xu97haq xaope02 xso031l x1q0q8m5 xtrfj0v x1j6dyjg xddlp02`,children:[(0,P.jsx)(`span`,{className:`x98rzlu xeuugli xb3r6kr xuxw1ft xlyipyv x1fao0z8`,children:t}),n?(0,P.jsx)(Tw,{thread:e,agent:r}):null,n?a?(0,P.jsx)(`button`,{type:`button`,title:`重新打开`,onClick:()=>n.reopen(e.id),className:`x2lah0s x78zum5 x6s0dn4 x1jnr06f x1717udv xc342km xjbqb8w xddlp02 xytdrwj x1j6dyjg x1ypdohk`,children:(0,P.jsx)(fr,{size:12,strokeWidth:2.2})}):(0,P.jsxs)(`button`,{type:`button`,title:`标为已解决`,onClick:()=>n.resolve(e.id),className:`x2lah0s x78zum5 x6s0dn4 x1jnr06f x1717udv xc342km xjbqb8w xddlp02 xytdrwj x1j6dyjg x1ypdohk`,children:[(0,P.jsx)(Jn,{size:13,strokeWidth:2.4}),`解决`]}):null,i?(0,P.jsx)(`button`,{type:`button`,title:`关闭`,onClick:i,className:`x2lah0s x78zum5 x6s0dn4 x1jnr06f x1717udv xc342km xjbqb8w xddlp02 xytdrwj x1j6dyjg x1ypdohk`,children:(0,P.jsx)(vr,{size:13,strokeWidth:2.2})}):null]}),(0,P.jsx)(Ew,{thread:e,actions:n}),n&&!a?(0,P.jsx)(`div`,{className:`x178xt8z x13fuv20 xxu5053`,children:(0,P.jsx)(Sw,{placeholder:`回复…`,onSubmit:t=>n.reply(e.id,t),onCancel:i})}):null]})}var Ow=`(max-width: 640px)`;function kw(e){let t=(0,N.useMemo)(()=>window.matchMedia(e),[e]),[n,r]=(0,N.useState)(t.matches);return(0,N.useEffect)(()=>{let e=()=>r(t.matches);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)},[t]),n}function Aw(e,t){window.parent!==window&&window.parent.postMessage({type:`ryugi:cloud-header`,id:e,...t},location.origin)}function jw(e,t){let n=t!==null,{title:r,online:i,comments:a,activity:o,retrying:s,reason:c}=t??{};return(0,N.useEffect)(()=>{n&&Aw(e,{title:r,online:i,comments:a,activity:o,retrying:s,reason:c})},[e,n,r,i,a,o,s,c]),n&&window.parent!==window}function Mw(e,t){if(!e||typeof e!=`object`)return null;let n=e;if(n.type!==`ryugi:cloud-header`||n.id!==t)return null;let r={};return typeof n.title==`string`&&(r.title=n.title),(typeof n.online==`boolean`||n.online===null)&&(r.online=n.online),typeof n.comments==`number`&&Number.isSafeInteger(n.comments)&&n.comments>=0&&(r.comments=n.comments),(typeof n.activity==`string`||n.activity===null)&&(r.activity=n.activity),typeof n.retrying==`boolean`&&(r.retrying=n.retrying),(typeof n.reason==`string`||n.reason===null)&&(r.reason=n.reason),r}var Nw=`allow-scripts allow-modals allow-forms allow-popups allow-downloads`,Pw=300,Fw=10;function Iw(e,t){let n=(0,N.useRef)(null),[r,i]=(0,N.useState)(null),a=(0,N.useRef)(null),o=(0,N.useRef)(0),s=(0,N.useRef)(t);return s.current=t,(0,N.useEffect)(()=>{if(!e||e===r)return;let t=n.current?.contentWindow;if(r===null||!t){i(e);return}let o=!1,s=t=>{o||(o=!0,window.removeEventListener(`message`,c),clearTimeout(l),a.current=t,i(e))},c=e=>{e.source===t&&e.data?.type===`ryugi:state`&&s(e.data.state??null)};window.addEventListener(`message`,c);let l=setTimeout(()=>s(null),Pw);return t.postMessage({type:`ryugi:snapshot`},`*`),()=>{o=!0,window.removeEventListener(`message`,c),clearTimeout(l)}},[e,r]),(0,N.useEffect)(()=>{let e=e=>{if(e.source===n.current?.contentWindow){if(e.data?.type===`ryugi:error`){if(o.current>=Fw)return;o.current+=1,s.current.onError(String(e.data.message).slice(0,500))}else e.data&&s.current.onMessage?.(e.data)}};return window.addEventListener(`message`,e),()=>window.removeEventListener(`message`,e)},[]),{frameRef:n,src:r,onLoad:()=>{o.current=0,r&&s.current.onLoaded(r);let e=a.current;a.current=null,e&&n.current?.contentWindow?.postMessage({type:`ryugi:restore`,state:e},`*`)}}}export{vv as $,be as $i,Tf as $n,mn as $r,ag as $t,Qv as A,Kt as Ai,Sm as An,vr as Ar,Yg as At,Sv as B,bt as Bi,$f as Bn,Qn as Br,wg as Bt,Cy as C,jt as Ci,Am as Cn,ui as Cr,r_ as Ct,cy as D,Et as Di,Tm as Dn,Yr as Dr,t_ as Dt,py as E,Ft as Ei,Fm as En,Xr as Er,n_ as Et,Vv as F,Ct as Fi,Zp as Fn,cr as Fr,Vg as Ft,kv as G,Ke as Gi,Wf as Gn,Hn as Gr,_g as Gt,Ov as H,mt as Hi,Yf as Hn,Jn as Hr,Sg as Ht,Bv as I,St as Ii,Xp as In,or as Ir,Pg as It,bv as J,Ne as Ji,If as Jn,wn as Jr,mg as Jt,Tv as K,Ve as Ki,Gf as Kn,On as Kr,gg as Kt,Pv as L,Ht as Li,Wp as Ln,ir as Lr,Mg as Lt,Xv as M,Tt as Mi,ym as Mn,mr as Mr,Wg as Mt,Yv as N,Bt as Ni,gm as Nn,fr as Nr,Gg as Nt,ey as O,zt as Oi,Mm as On,Tr as Or,o_ as Ot,Jv as P,Ot as Pi,hm as Pn,ur as Pr,Rg as Pt,yv as Q,Se as Qi,Df as Qn,K as Qr,og as Qt,Nv as R,Yt as Ri,Gp as Rn,nr as Rr,Ag as Rt,Ey as S,Nt as Si,Em as Sn,fi as Sr,Xg as St,gy as T,Pt as Ti,Pm as Tn,ii as Tr,i_ as Tt,wv as U,st as Ui,Jf as Un,Kn as Ur,xg as Ut,Ev as V,yt as Vi,Xf as Vn,Xn as Vr,Cg as Vt,Av as W,Je as Wi,ep as Wn,Wn as Wr,yg as Wt,hv as X,W as Xi,Of as Xn,vn as Xr,ug as Xt,mv as Y,Te as Yi,Ff as Yn,bn as Yr,hg as Yt,pv as Z,xe as Zi,Ef as Zn,yn as Zr,fg as Zt,fb as _,Lt as _i,ah as _n,Od as _r,u_ as _t,jw as a,ue as aa,an as ai,Yh as an,$ as ar,nv as at,ky as b,kt as bi,Km as bn,Ed as br,Qg as bt,Ew as c,ae as ca,tn as ci,Rh as cn,ef as cr,Z_ as ct,Sw as d,te as da,Xt as di,kh as dn,Yd as dr,H_ as dt,U as ea,pn as ei,ig as en,wf as er,gv as et,xw as f,Ut as fi,xh as fn,Jd as fr,L_ as ft,db as g,Vt as gi,uh as gn,Fd as gr,v_ as gt,mb as h,Gt as hi,dh as hn,Pd as hr,x_ as ht,Aw as i,H as ia,cn as ii,Uh as in,of as ir,rv as it,Zv as j,xt as ji,bm as jn,gr as jr,qg as jt,$v as k,Rt as ki,Om as kn,br as kr,s_ as kt,Dw as l,I as la,$t as li,Mh as ln,Qd as lr,J_ as lt,pb as m,At as mi,ph as mn,Ud as mr,S_ as mt,Iw as n,fe as na,ln as ni,eg as nn,vf as nr,uv as nt,Ow as o,se as oa,rn as oi,Jh as on,sf as or,ev as ot,_b as p,Dt as pi,bh as pn,Gd as pr,I_ as pt,xv as q,Pe as qi,Rf as qn,Dn as qr,pg as qt,Mw as r,de as ra,un as ri,Wh as rn,af as rr,sv as rt,kw as s,re as sa,nn as si,Hh as sn,nf as sr,Q_ as st,Nw as t,he as ta,fn as ti,rg as tn,_f as tr,_v as tt,Tw as u,L as ua,en as ui,Nh as un,Xd as ur,U_ as ut,ab as v,It as vi,rh as vn,kd as vr,d_ as vt,by as w,Mt as wi,Nm as wn,ai as wr,e_ as wt,Oy as x,qt as xi,Cm as xn,Hs as xr,$g as xt,My as y,Jt as yi,nh as yn,_d as yr,Zg as yt,Cv as z,G as zi,Qf as zn,er as zr,Tg as zt};
@@ -1,4 +1,4 @@
1
- import{i as e}from"./chunk-75Z2AOVW-A-EObLCy.js";import{t}from"./src-Caqqw6Gw.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as r,K as i,U as a,a as o,b as s,c,et as l,f as u,nt as d,rt as f,tt as p,v as m,w as h,y as g}from"./chunk-DU6HZSFF-CDWc5UBY.js";import{t as _}from"./rough.esm-Dy-Kn_BL.js";import{p as v}from"./dist-TX5rYYGW.js";var y=(e,t)=>d(e,`a`,-t),b=1e-10;function x(e,t){let n=C(e),r=n.filter(t=>S(t,e)),i=0,a=0,o=[];if(r.length>1){let t=O(r);for(let e=0;e<r.length;++e){let n=r[e];n.angle=Math.atan2(n.x-t.x,n.y-t.y)}r.sort((e,t)=>t.angle-e.angle);let n=r[r.length-1];for(let t=0;t<r.length;++t){let s=r[t];a+=(n.x+s.x)*(s.y-n.y);let c={x:(s.x+n.x)/2,y:(s.y+n.y)/2},l=null;for(let t=0;t<s.parentIndex.length;++t)if(n.parentIndex.includes(s.parentIndex[t])){let r=e[s.parentIndex[t]],i=Math.atan2(s.x-r.x,s.y-r.y),a=Math.atan2(n.x-r.x,n.y-r.y),o=a-i;o<0&&(o+=2*Math.PI);let u=a-o/2,d=T(c,{x:r.x+r.radius*Math.sin(u),y:r.y+r.radius*Math.cos(u)});d>r.radius*2&&(d=r.radius*2),(l==null||l.width>d)&&(l={circle:r,width:d,p1:s,p2:n,large:d>r.radius,sweep:!0})}l!=null&&(o.push(l),i+=w(l.circle.radius,l.width),n=s)}}else{let t=e[0];for(let n=1;n<e.length;++n)e[n].radius<t.radius&&(t=e[n]);let n=!1;for(let r=0;r<e.length;++r)if(T(e[r],t)>Math.abs(t.radius-e[r].radius)){n=!0;break}n?i=a=0:(i=t.radius*t.radius*Math.PI,o.push({circle:t,p1:{x:t.x,y:t.y+t.radius},p2:{x:t.x-b,y:t.y+t.radius},width:t.radius*2,large:!0,sweep:!0}))}return a/=2,t&&(t.area=i+a,t.arcArea=i,t.polygonArea=a,t.arcs=o,t.innerPoints=r,t.intersectionPoints=n),i+a}function S(e,t){return t.every(t=>T(e,t)<t.radius+b)}function C(e){let t=[];for(let n=0;n<e.length;++n)for(let r=n+1;r<e.length;++r){let i=D(e[n],e[r]);for(let e of i)e.parentIndex=[n,r],t.push(e)}return t}function w(e,t){return e*e*Math.acos(1-t/e)-(e-t)*Math.sqrt(t*(2*e-t))}function T(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))}function E(e,t,n){if(n>=e+t)return 0;if(n<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);let r=e-(n*n-t*t+e*e)/(2*n),i=t-(n*n-e*e+t*t)/(2*n);return w(e,r)+w(t,i)}function D(e,t){let n=T(e,t),r=e.radius,i=t.radius;if(n>=r+i||n<=Math.abs(r-i))return[];let a=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-a*a),s=e.x+a*(t.x-e.x)/n,c=e.y+a*(t.y-e.y)/n,l=-(t.y-e.y)*(o/n),u=-(t.x-e.x)*(o/n);return[{x:s+l,y:c-u},{x:s-l,y:c+u}]}function O(e){let t={x:0,y:0};for(let n of e)t.x+=n.x,t.y+=n.y;return t.x/=e.length,t.y/=e.length,t}function k(e,t,n,r){r||={};let i=r.maxIterations||100,a=r.tolerance||1e-10,o=e(t),s=e(n),c=n-t;if(o*s>0)throw`Initial bisect points must have opposite signs`;if(o===0)return t;if(s===0)return n;for(let n=0;n<i;++n){c/=2;let n=t+c,r=e(n);if(r*o>=0&&(t=n),Math.abs(c)<a||r===0)return n}return t+c}function A(e){let t=Array(e);for(let n=0;n<e;++n)t[n]=0;return t}function j(e,t){return A(e).map(()=>A(t))}function M(e,t){let n=0;for(let r=0;r<e.length;++r)n+=e[r]*t[r];return n}function N(e){return Math.sqrt(M(e,e))}function P(e,t,n){for(let r=0;r<t.length;++r)e[r]=t[r]*n}function F(e,t,n,r,i){for(let a=0;a<e.length;++a)e[a]=t*n[a]+r*i[a]}function I(e,t,n){n||={};let r=n.maxIterations||t.length*200,i=n.nonZeroDelta||1.05,a=n.zeroDelta||.001,o=n.minErrorDelta||1e-6,s=n.minErrorDelta||1e-5,c=n.rho===void 0?1:n.rho,l=n.chi===void 0?2:n.chi,u=n.psi===void 0?-.5:n.psi,d=n.sigma===void 0?.5:n.sigma,f,p=t.length,m=Array(p+1);m[0]=t,m[0].fx=e(t),m[0].id=0;for(let n=0;n<p;++n){let r=t.slice();r[n]=r[n]?r[n]*i:a,m[n+1]=r,m[n+1].fx=e(r),m[n+1].id=n+1}function h(e){for(let t=0;t<e.length;t++)m[p][t]=e[t];m[p].fx=e.fx}let g=(e,t)=>e.fx-t.fx,_=t.slice(),v=t.slice(),y=t.slice(),b=t.slice();for(let t=0;t<r;++t){if(m.sort(g),n.history){let e=m.map(e=>{let t=e.slice();return t.fx=e.fx,t.id=e.id,t});e.sort((e,t)=>e.id-t.id),n.history.push({x:m[0].slice(),fx:m[0].fx,simplex:e})}f=0;for(let e=0;e<p;++e)f=Math.max(f,Math.abs(m[0][e]-m[1][e]));if(Math.abs(m[0].fx-m[p].fx)<o&&f<s)break;for(let e=0;e<p;++e){_[e]=0;for(let t=0;t<p;++t)_[e]+=m[t][e];_[e]/=p}let t=m[p];if(F(v,1+c,_,-c,t),v.fx=e(v),v.fx<m[0].fx)F(b,1+l,_,-l,t),b.fx=e(b),b.fx<v.fx?h(b):h(v);else if(v.fx>=m[p-1].fx){let n=!1;if(v.fx>t.fx?(F(y,1+u,_,-u,t),y.fx=e(y),y.fx<t.fx?h(y):n=!0):(F(y,1-u*c,_,u*c,t),y.fx=e(y),y.fx<v.fx?h(y):n=!0),n){if(d>=1)break;for(let t=1;t<m.length;++t)F(m[t],1-d,m[0],d,m[t]),m[t].fx=e(m[t])}}else h(v)}return m.sort(g),{fx:m[0].fx,x:m[0]}}function L(e,t,n,r,i,a,o){let s=n.fx,c=M(n.fxprime,t),l=s,u=s,d=c,f=0;i||=1,a||=1e-6,o||=.1;function p(u,f,p){for(let m=0;m<16;++m)if(i=(u+f)/2,F(r.x,1,n.x,i,t),l=r.fx=e(r.x,r.fxprime),d=M(r.fxprime,t),l>s+a*i*c||l>=p)f=i;else{if(Math.abs(d)<=-o*c)return i;d*(f-u)>=0&&(f=u),u=i,p=l}return 0}for(let m=0;m<10;++m){if(F(r.x,1,n.x,i,t),l=r.fx=e(r.x,r.fxprime),d=M(r.fxprime,t),l>s+a*i*c||m&&l>=u)return p(f,i,u);if(Math.abs(d)<=-o*c)return i;if(d>=0)return p(i,f,l);u=l,f=i,i*=2}return i}function R(e,t,n){let r={x:t.slice(),fx:0,fxprime:t.slice()},i={x:t.slice(),fx:0,fxprime:t.slice()},a=t.slice(),o,s,c=1,l;n||={},l=n.maxIterations||t.length*20,r.fx=e(r.x,r.fxprime),o=r.fxprime.slice(),P(o,r.fxprime,-1);for(let t=0;t<l;++t){if(c=L(e,o,r,i,c),n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:c}),!c)P(o,r.fxprime,-1);else{F(a,1,i.fxprime,-1,r.fxprime);let e=M(r.fxprime,r.fxprime),t=Math.max(0,M(a,i.fxprime)/e);F(o,t,o,-1,i.fxprime),s=r,r=i,i=s}if(N(r.fxprime)<=1e-5)break}return n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:c}),r}function ee(e,t={}){t.maxIterations=t.maxIterations||500;let n=t.initialLayout||ae,r=t.lossFunction||B,i=ne(e,t),a=n(i,t),o=Object.keys(a),s=[];for(let e of o)s.push(a[e].x),s.push(a[e].y);let c=I(e=>{let t={};for(let n=0;n<o.length;++n){let r=o[n];t[r]={x:e[2*n],y:e[2*n+1],radius:a[r].radius}}return r(t,i)},s,t).x;for(let e=0;e<o.length;++e){let t=o[e];a[t].x=c[2*e],a[t].y=c[2*e+1]}return a}var te=1e-10;function z(e,t,n){return Math.min(e,t)*Math.min(e,t)*Math.PI<=n+te?Math.abs(e-t):k(r=>E(e,t,r)-n,0,e+t)}function ne(e,t={}){let n=t.distinct,r=e.map(e=>Object.assign({},e));function i(e){return e.join(`;`)}if(n){let e=new Map;for(let t of r)for(let n=0;n<t.sets.length;n++){let r=String(t.sets[n]);e.set(r,t.size+(e.get(r)||0));for(let i=n+1;i<t.sets.length;i++){let n=String(t.sets[i]),a=`${r};${n}`,o=`${n};${r}`;e.set(a,t.size+(e.get(a)||0)),e.set(o,t.size+(e.get(o)||0))}}for(let t of r)t.sets.length<3&&(t.size=e.get(i(t.sets)))}let a=[],o=new Set;for(let e of r)if(e.sets.length===1)a.push(e.sets[0]);else if(e.sets.length===2){let t=e.sets[0],n=e.sets[1];o.add(i(e.sets)),o.add(i([n,t]))}a.sort((e,t)=>e===t?0:e<t?-1:1);for(let e=0;e<a.length;++e){let t=a[e];for(let n=e+1;n<a.length;++n){let e=a[n];o.has(i([t,e]))||r.push({sets:[t,e],size:0})}}return r}function re(e,t,n){let r=j(t.length,t.length),i=j(t.length,t.length);return e.filter(e=>e.sets.length===2).forEach(e=>{let a=n[e.sets[0]],o=n[e.sets[1]],s=z(Math.sqrt(t[a].size/Math.PI),Math.sqrt(t[o].size/Math.PI),e.size);r[a][o]=r[o][a]=s;let c=0;e.size+1e-10>=Math.min(t[a].size,t[o].size)?c=1:e.size<=1e-10&&(c=-1),i[a][o]=i[o][a]=c}),{distances:r,constraints:i}}function ie(e,t,n,r){for(let e=0;e<t.length;++e)t[e]=0;let i=0;for(let a=0;a<n.length;++a){let o=e[2*a],s=e[2*a+1];for(let c=a+1;c<n.length;++c){let l=e[2*c],u=e[2*c+1],d=n[a][c],f=r[a][c],p=(l-o)*(l-o)+(u-s)*(u-s),m=Math.sqrt(p),h=p-d*d;f>0&&m<=d||f<0&&m>=d||(i+=2*h*h,t[2*a]+=4*h*(o-l),t[2*a+1]+=4*h*(s-u),t[2*c]+=4*h*(l-o),t[2*c+1]+=4*h*(u-s))}}return i}function ae(e,t={}){let n=se(e,t),r=t.lossFunction||B;if(e.length>=8){let i=oe(e,t),a=r(i,e),o=r(n,e);a+1e-8<o&&(n=i)}return n}function oe(e,t={}){let n=t.restarts||10,r=[],i={};for(let t of e)t.sets.length===1&&(i[t.sets[0]]=r.length,r.push(t));let{distances:a,constraints:o}=re(e,r,i),s=N(a.map(N))/a.length;a=a.map(e=>e.map(e=>e/s));let c=(e,t)=>ie(e,t,a,o),l=null;for(let e=0;e<n;++e){let e=R(c,A(a.length*2).map(Math.random),t);(!l||e.fx<l.fx)&&(l=e)}let u=l.x,d={};for(let e=0;e<r.length;++e){let t=r[e];d[t.sets[0]]={x:u[2*e]*s,y:u[2*e+1]*s,radius:Math.sqrt(t.size/Math.PI)}}if(t.history)for(let e of t.history)P(e.x,s);return d}function se(e,t){let n=t&&t.lossFunction?t.lossFunction:B,r={},i={};for(let t of e)if(t.sets.length===1){let e=t.sets[0];r[e]={x:1e10,y:1e10,rowid:r.length,size:t.size,radius:Math.sqrt(t.size/Math.PI)},i[e]=[]}e=e.filter(e=>e.sets.length===2);for(let t of e){let e=t.weight==null?1:t.weight,n=t.sets[0],a=t.sets[1];t.size+te>=Math.min(r[n].size,r[a].size)&&(e=0),i[n].push({set:a,size:t.size,weight:e}),i[a].push({set:n,size:t.size,weight:e})}let a=[];Object.keys(i).forEach(e=>{let t=0;for(let n=0;n<i[e].length;++n)t+=i[e][n].size*i[e][n].weight;a.push({set:e,size:t})});function o(e,t){return t.size-e.size}a.sort(o);let s={};function c(e){return e.set in s}function l(e,t){r[t].x=e.x,r[t].y=e.y,s[t]=!0}l({x:0,y:0},a[0].set);for(let t=1;t<a.length;++t){let s=a[t].set,d=i[s].filter(c),f=r[s];if(d.sort(o),d.length===0)throw`ERROR: missing pairwise overlap information`;let p=[];for(var u=0;u<d.length;++u){let e=r[d[u].set],t=z(f.radius,e.radius,d[u].size);p.push({x:e.x+t,y:e.y}),p.push({x:e.x-t,y:e.y}),p.push({y:e.y+t,x:e.x}),p.push({y:e.y-t,x:e.x});for(let n=u+1;n<d.length;++n){let i=r[d[n].set],a=z(f.radius,i.radius,d[n].size),o=D({x:e.x,y:e.y,radius:t},{x:i.x,y:i.y,radius:a});p.push(...o)}}let m=1e50,h=p[0];for(let t of p){r[s].x=t.x,r[s].y=t.y;let i=n(r,e);i<m&&(m=i,h=t)}l(h,s)}return r}function B(e,t){let n=0;for(let r of t){if(r.sets.length===1)continue;let t;if(r.sets.length===2){let n=e[r.sets[0]],i=e[r.sets[1]];t=E(n.radius,i.radius,T(n,i))}else t=x(r.sets.map(t=>e[t]));let i=r.weight==null?1:r.weight;n+=i*(t-r.size)*(t-r.size)}return n}function ce(e,t){let n=0;for(let r of t){if(r.sets.length===1)continue;let t;if(r.sets.length===2){let n=e[r.sets[0]],i=e[r.sets[1]];t=E(n.radius,i.radius,T(n,i))}else t=x(r.sets.map(t=>e[t]));let i=r.weight==null?1:r.weight,a=Math.log((t+1)/(r.size+1));n+=i*a*a}return n}function le(e,t,n){if(n==null?e.sort((e,t)=>t.radius-e.radius):e.sort(n),e.length>0){let t=e[0].x,n=e[0].y;for(let r of e)r.x-=t,r.y-=n}if(e.length===2&&T(e[0],e[1])<Math.abs(e[1].radius-e[0].radius)&&(e[1].x=e[0].x+e[0].radius-e[1].radius-1e-10,e[1].y=e[0].y),e.length>1){let n=Math.atan2(e[1].x,e[1].y)-t,r=Math.cos(n),i=Math.sin(n);for(let t of e){let e=t.x,n=t.y;t.x=r*e-i*n,t.y=i*e+r*n}}if(e.length>2){let n=Math.atan2(e[2].x,e[2].y)-t;for(;n<0;)n+=2*Math.PI;for(;n>2*Math.PI;)n-=2*Math.PI;if(n>Math.PI){let t=e[1].y/(1e-10+e[1].x);for(let n of e){var r=(n.x+t*n.y)/(1+t*t);n.x=2*r-n.x,n.y=2*r*t-n.y}}}}function ue(e){e.forEach(e=>{e.parent=e});function t(e){return e.parent!==e&&(e.parent=t(e.parent)),e.parent}function n(e,n){let r=t(e);r.parent=t(n)}for(let t=0;t<e.length;++t)for(let r=t+1;r<e.length;++r){let i=e[t].radius+e[r].radius;T(e[t],e[r])+1e-10<i&&n(e[r],e[t])}let r=new Map;for(let n=0;n<e.length;++n){let i=t(e[n]).parent.setid;r.has(i)||r.set(i,[]),r.get(i).push(e[n])}return e.forEach(e=>{delete e.parent}),Array.from(r.values())}function V(e){let t=t=>({max:e.reduce((e,n)=>Math.max(e,n[t]+n.radius),-1/0),min:e.reduce((e,n)=>Math.min(e,n[t]-n.radius),1/0)});return{xRange:t(`x`),yRange:t(`y`)}}function de(e,t,n){t??=Math.PI/2;let r=me(e).map(e=>Object.assign({},e)),i=ue(r);for(let e of i){le(e,t,n);let r=V(e);e.size=(r.xRange.max-r.xRange.min)*(r.yRange.max-r.yRange.min),e.bounds=r}i.sort((e,t)=>t.size-e.size),r=i[0];let a=r.bounds,o=(a.xRange.max-a.xRange.min)/50;function s(e,t,n){if(!e)return;let i=e.bounds,s,c;if(t)s=a.xRange.max-i.xRange.min+o;else{s=a.xRange.max-i.xRange.max;let e=(i.xRange.max-i.xRange.min)/2-(a.xRange.max-a.xRange.min)/2;e<0&&(s+=e)}if(n)c=a.yRange.max-i.yRange.min+o;else{c=a.yRange.max-i.yRange.max;let e=(i.yRange.max-i.yRange.min)/2-(a.yRange.max-a.yRange.min)/2;e<0&&(c+=e)}for(let t of e)t.x+=s,t.y+=c,r.push(t)}let c=1;for(;c<i.length;)s(i[c],!0,!1),s(i[c+1],!1,!0),s(i[c+2],!0,!0),c+=3,a=V(r);return pe(r)}function fe(e,t,n,r,i){let a=me(e);t-=2*r,n-=2*r;let{xRange:o,yRange:s}=V(a);if(o.max===o.min||s.max===s.min)return console.log(`not scaling solution: zero size detected`),e;let c,l;if(i){let e=Math.sqrt(i/Math.PI)*2;c=t/e,l=n/e}else c=t/(o.max-o.min),l=n/(s.max-s.min);let u=Math.min(l,c),d=(t-(o.max-o.min)*u)/2,f=(n-(s.max-s.min)*u)/2;return pe(a.map(e=>({radius:u*e.radius,x:r+d+(e.x-o.min)*u,y:r+f+(e.y-s.min)*u,setid:e.setid})))}function pe(e){let t={};for(let n of e)t[n.setid]=n;return t}function me(e){return Object.keys(e).map(t=>Object.assign(e[t],{setid:t}))}function he(e={}){let t=!1,n=600,r=350,i=15,a=1e3,o=Math.PI/2,s=!0,c=null,l=!0,u=!0,d=null,f=null,p=!1,m=null,h=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,g={},_=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:[`#1f77b4`,`#ff7f0e`,`#2ca02c`,`#d62728`,`#9467bd`,`#8c564b`,`#e377c2`,`#7f7f7f`,`#bcbd22`,`#17becf`],v=0,y=function(e){if(e in g)return g[e];var t=g[e]=_[v];return v+=1,v>=_.length&&(v=0),t},b=ee,x=B;function S(g){let _=g.datum(),v=new Set;_.forEach(e=>{e.size==0&&e.sets.length==1&&v.add(e.sets[0])}),_=_.filter(e=>!e.sets.some(e=>v.has(e)));let S={},C={};if(_.length>0){let e=b(_,{lossFunction:x,distinct:p});s&&(e=de(e,o,f)),S=fe(e,n,r,i,c),C=ve(S,_,h)}let w={};_.forEach(e=>{e.label&&(w[e.sets]=e.label)});function T(e){if(e.sets in w)return w[e.sets];if(e.sets.length==1)return``+e.sets[0]}g.selectAll(`svg`).data([S]).enter().append(`svg`);let E=g.select(`svg`);t?E.attr(`viewBox`,`0 0 ${n} ${r}`):E.attr(`width`,n).attr(`height`,r);let D={},O=!1;E.selectAll(`.venn-area path`).each(function(e){let t=this.getAttribute(`d`);e.sets.length==1&&t&&!p&&(O=!0,D[e.sets[0]]=be(t))});function k(e){return t=>Ce(e.sets.map(e=>{let i=D[e],a=S[e];return i||={x:n/2,y:r/2,radius:1},a||={x:n/2,y:r/2,radius:1},{x:i.x*(1-t)+a.x*t,y:i.y*(1-t)+a.y*t,radius:i.radius*(1-t)+a.radius*t}}),m)}let A=E.selectAll(`.venn-area`).data(_,e=>e.sets),j=A.enter().append(`g`).attr(`class`,e=>`venn-area venn-${e.sets.length==1?`circle`:`intersection`}${e.colour||e.color?` venn-coloured`:``}`).attr(`data-venn-sets`,e=>e.sets.join(`_`)),M=j.append(`path`),N=j.append(`text`).attr(`class`,`label`).text(e=>T(e)).attr(`text-anchor`,`middle`).attr(`dy`,`.35em`).attr(`x`,n/2).attr(`y`,r/2);u&&(M.style(`fill-opacity`,`0`).filter(e=>e.sets.length==1).style(`fill`,e=>e.colour?e.colour:e.color?e.color:y(e.sets)).style(`fill-opacity`,`.25`),N.style(`fill`,t=>t.colour||t.color?`#FFF`:e.textFill?e.textFill:t.sets.length==1?y(t.sets):`#444`));function P(e){return typeof e.transition==`function`?e.transition(`venn`).duration(a):e}let F=g;O&&typeof F.transition==`function`?(F=P(g),F.selectAll(`path`).attrTween(`d`,k)):F.selectAll(`path`).attr(`d`,e=>Ce(e.sets.map(e=>S[e])),m);let I=F.selectAll(`text`).filter(e=>e.sets in C).text(e=>T(e)).attr(`x`,e=>Math.floor(C[e.sets].x)).attr(`y`,e=>Math.floor(C[e.sets].y));l&&(O?`on`in I?I.on(`end`,H(S,T)):I.each(`end`,H(S,T)):I.each(H(S,T)));let L=P(A.exit()).remove();typeof A.transition==`function`&&L.selectAll(`path`).attrTween(`d`,k);let R=L.selectAll(`text`).attr(`x`,n/2).attr(`y`,r/2);return d!==null&&(N.style(`font-size`,`0px`),I.style(`font-size`,d),R.style(`font-size`,`0px`)),{circles:S,textCentres:C,nodes:A,enter:j,update:F,exit:L}}return S.wrap=function(e){return arguments.length?(l=e,S):l},S.useViewBox=function(){return t=!0,S},S.width=function(e){return arguments.length?(n=e,S):n},S.height=function(e){return arguments.length?(r=e,S):r},S.padding=function(e){return arguments.length?(i=e,S):i},S.distinct=function(e){return arguments.length?(p=e,S):p},S.colours=function(e){return arguments.length?(y=e,S):y},S.colors=function(e){return arguments.length?(y=e,S):y},S.fontSize=function(e){return arguments.length?(d=e,S):d},S.round=function(e){return arguments.length?(m=e,S):m},S.duration=function(e){return arguments.length?(a=e,S):a},S.layoutFunction=function(e){return arguments.length?(b=e,S):b},S.normalize=function(e){return arguments.length?(s=e,S):s},S.scaleToFit=function(e){return arguments.length?(c=e,S):c},S.styled=function(e){return arguments.length?(u=e,S):u},S.orientation=function(e){return arguments.length?(o=e,S):o},S.orientationOrder=function(e){return arguments.length?(f=e,S):f},S.lossFunction=function(e){return arguments.length?(x=e==="default"?B:e===`logRatio`?ce:e,S):x},S}function H(e,t){return function(n){let r=this,i=e[n.sets[0]].radius||50,a=t(n)||``,o=a.split(/\s+/).reverse(),s=(a.length+o.length)/3,c=o.pop(),l=[c],u=0,d=1.1;r.textContent=null;let f=[];function p(e){let t=r.ownerDocument.createElementNS(r.namespaceURI,`tspan`);return t.textContent=e,f.push(t),r.append(t),t}let m=p(c);for(;c=o.pop(),c;){l.push(c);let e=l.join(` `);m.textContent=e,e.length>s&&m.getComputedTextLength()>i&&(l.pop(),m.textContent=l.join(` `),l=[c],m=p(c),u++)}let h=.35-u*d/2,g=r.getAttribute(`x`),_=r.getAttribute(`y`);f.forEach((e,t)=>{e.setAttribute(`x`,g),e.setAttribute(`y`,_),e.setAttribute(`dy`,`${h+t*d}em`)})}}function U(e,t,n){let r=t[0].radius-T(t[0],e);for(let n=1;n<t.length;++n){let i=t[n].radius-T(t[n],e);i<=r&&(r=i)}for(let t=0;t<n.length;++t){let i=T(n[t],e)-n[t].radius;i<=r&&(r=i)}return r}function ge(e,t,n){let r=[];for(let t of e)r.push({x:t.x,y:t.y}),r.push({x:t.x+t.radius/2,y:t.y}),r.push({x:t.x-t.radius/2,y:t.y}),r.push({x:t.x,y:t.y+t.radius/2}),r.push({x:t.x,y:t.y-t.radius/2});let i=r[0],a=U(r[0],e,t);for(let n=1;n<r.length;++n){let o=U(r[n],e,t);o>=a&&(i=r[n],a=o)}let o=I(n=>-1*U({x:n[0],y:n[1]},e,t),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,s={x:n?0:o[0],y:o[1]},c=!0;for(let t of e)if(T(s,t)>t.radius){c=!1;break}for(let e of t)if(T(s,e)<e.radius){c=!1;break}if(c)return s;if(e.length==1)return{x:e[0].x,y:e[0].y};let l={};return x(e,l),l.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:l.arcs.length==1?{x:l.arcs[0].circle.x,y:l.arcs[0].circle.y}:t.length?ge(e,[]):O(l.arcs.map(e=>e.p1))}function _e(e){let t={},n=Object.keys(e);for(let e of n)t[e]=[];for(let r=0;r<n.length;r++){let i=n[r],a=e[i];for(let o=r+1;o<n.length;++o){let r=n[o],s=e[r],c=T(a,s);c+s.radius<=a.radius+1e-10?t[r].push(i):c+a.radius<=s.radius+1e-10&&t[i].push(r)}}return t}function ve(e,t,n){let r={},i=_e(e);for(let a=0;a<t.length;++a){let o=t[a].sets,s={},c={};for(let e=0;e<o.length;++e){s[o[e]]=!0;let t=i[o[e]];for(let e=0;e<t.length;++e)c[t[e]]=!0}let l=[],u=[];for(let t in e)t in s?l.push(e[t]):t in c||u.push(e[t]);let d=ge(l,u,n);r[o]=d,d.disjoint&&t[a].size>0&&console.log(`WARNING: area `+o+` not represented on screen`)}return r}function ye(e,t,n){let r=[];return r.push(`
1
+ import{i as e}from"./chunk-75Z2AOVW-A-EObLCy.js";import{t}from"./src-Caqqw6Gw.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as r,K as i,U as a,a as o,b as s,c,et as l,f as u,nt as d,rt as f,tt as p,v as m,w as h,y as g}from"./chunk-DU6HZSFF-CDWc5UBY.js";import{t as _}from"./rough.esm-Dy-Kn_BL.js";import{p as v}from"./dist-ByHcWAsz.js";var y=(e,t)=>d(e,`a`,-t),b=1e-10;function x(e,t){let n=C(e),r=n.filter(t=>S(t,e)),i=0,a=0,o=[];if(r.length>1){let t=O(r);for(let e=0;e<r.length;++e){let n=r[e];n.angle=Math.atan2(n.x-t.x,n.y-t.y)}r.sort((e,t)=>t.angle-e.angle);let n=r[r.length-1];for(let t=0;t<r.length;++t){let s=r[t];a+=(n.x+s.x)*(s.y-n.y);let c={x:(s.x+n.x)/2,y:(s.y+n.y)/2},l=null;for(let t=0;t<s.parentIndex.length;++t)if(n.parentIndex.includes(s.parentIndex[t])){let r=e[s.parentIndex[t]],i=Math.atan2(s.x-r.x,s.y-r.y),a=Math.atan2(n.x-r.x,n.y-r.y),o=a-i;o<0&&(o+=2*Math.PI);let u=a-o/2,d=T(c,{x:r.x+r.radius*Math.sin(u),y:r.y+r.radius*Math.cos(u)});d>r.radius*2&&(d=r.radius*2),(l==null||l.width>d)&&(l={circle:r,width:d,p1:s,p2:n,large:d>r.radius,sweep:!0})}l!=null&&(o.push(l),i+=w(l.circle.radius,l.width),n=s)}}else{let t=e[0];for(let n=1;n<e.length;++n)e[n].radius<t.radius&&(t=e[n]);let n=!1;for(let r=0;r<e.length;++r)if(T(e[r],t)>Math.abs(t.radius-e[r].radius)){n=!0;break}n?i=a=0:(i=t.radius*t.radius*Math.PI,o.push({circle:t,p1:{x:t.x,y:t.y+t.radius},p2:{x:t.x-b,y:t.y+t.radius},width:t.radius*2,large:!0,sweep:!0}))}return a/=2,t&&(t.area=i+a,t.arcArea=i,t.polygonArea=a,t.arcs=o,t.innerPoints=r,t.intersectionPoints=n),i+a}function S(e,t){return t.every(t=>T(e,t)<t.radius+b)}function C(e){let t=[];for(let n=0;n<e.length;++n)for(let r=n+1;r<e.length;++r){let i=D(e[n],e[r]);for(let e of i)e.parentIndex=[n,r],t.push(e)}return t}function w(e,t){return e*e*Math.acos(1-t/e)-(e-t)*Math.sqrt(t*(2*e-t))}function T(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))}function E(e,t,n){if(n>=e+t)return 0;if(n<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);let r=e-(n*n-t*t+e*e)/(2*n),i=t-(n*n-e*e+t*t)/(2*n);return w(e,r)+w(t,i)}function D(e,t){let n=T(e,t),r=e.radius,i=t.radius;if(n>=r+i||n<=Math.abs(r-i))return[];let a=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-a*a),s=e.x+a*(t.x-e.x)/n,c=e.y+a*(t.y-e.y)/n,l=-(t.y-e.y)*(o/n),u=-(t.x-e.x)*(o/n);return[{x:s+l,y:c-u},{x:s-l,y:c+u}]}function O(e){let t={x:0,y:0};for(let n of e)t.x+=n.x,t.y+=n.y;return t.x/=e.length,t.y/=e.length,t}function k(e,t,n,r){r||={};let i=r.maxIterations||100,a=r.tolerance||1e-10,o=e(t),s=e(n),c=n-t;if(o*s>0)throw`Initial bisect points must have opposite signs`;if(o===0)return t;if(s===0)return n;for(let n=0;n<i;++n){c/=2;let n=t+c,r=e(n);if(r*o>=0&&(t=n),Math.abs(c)<a||r===0)return n}return t+c}function A(e){let t=Array(e);for(let n=0;n<e;++n)t[n]=0;return t}function j(e,t){return A(e).map(()=>A(t))}function M(e,t){let n=0;for(let r=0;r<e.length;++r)n+=e[r]*t[r];return n}function N(e){return Math.sqrt(M(e,e))}function P(e,t,n){for(let r=0;r<t.length;++r)e[r]=t[r]*n}function F(e,t,n,r,i){for(let a=0;a<e.length;++a)e[a]=t*n[a]+r*i[a]}function I(e,t,n){n||={};let r=n.maxIterations||t.length*200,i=n.nonZeroDelta||1.05,a=n.zeroDelta||.001,o=n.minErrorDelta||1e-6,s=n.minErrorDelta||1e-5,c=n.rho===void 0?1:n.rho,l=n.chi===void 0?2:n.chi,u=n.psi===void 0?-.5:n.psi,d=n.sigma===void 0?.5:n.sigma,f,p=t.length,m=Array(p+1);m[0]=t,m[0].fx=e(t),m[0].id=0;for(let n=0;n<p;++n){let r=t.slice();r[n]=r[n]?r[n]*i:a,m[n+1]=r,m[n+1].fx=e(r),m[n+1].id=n+1}function h(e){for(let t=0;t<e.length;t++)m[p][t]=e[t];m[p].fx=e.fx}let g=(e,t)=>e.fx-t.fx,_=t.slice(),v=t.slice(),y=t.slice(),b=t.slice();for(let t=0;t<r;++t){if(m.sort(g),n.history){let e=m.map(e=>{let t=e.slice();return t.fx=e.fx,t.id=e.id,t});e.sort((e,t)=>e.id-t.id),n.history.push({x:m[0].slice(),fx:m[0].fx,simplex:e})}f=0;for(let e=0;e<p;++e)f=Math.max(f,Math.abs(m[0][e]-m[1][e]));if(Math.abs(m[0].fx-m[p].fx)<o&&f<s)break;for(let e=0;e<p;++e){_[e]=0;for(let t=0;t<p;++t)_[e]+=m[t][e];_[e]/=p}let t=m[p];if(F(v,1+c,_,-c,t),v.fx=e(v),v.fx<m[0].fx)F(b,1+l,_,-l,t),b.fx=e(b),b.fx<v.fx?h(b):h(v);else if(v.fx>=m[p-1].fx){let n=!1;if(v.fx>t.fx?(F(y,1+u,_,-u,t),y.fx=e(y),y.fx<t.fx?h(y):n=!0):(F(y,1-u*c,_,u*c,t),y.fx=e(y),y.fx<v.fx?h(y):n=!0),n){if(d>=1)break;for(let t=1;t<m.length;++t)F(m[t],1-d,m[0],d,m[t]),m[t].fx=e(m[t])}}else h(v)}return m.sort(g),{fx:m[0].fx,x:m[0]}}function L(e,t,n,r,i,a,o){let s=n.fx,c=M(n.fxprime,t),l=s,u=s,d=c,f=0;i||=1,a||=1e-6,o||=.1;function p(u,f,p){for(let m=0;m<16;++m)if(i=(u+f)/2,F(r.x,1,n.x,i,t),l=r.fx=e(r.x,r.fxprime),d=M(r.fxprime,t),l>s+a*i*c||l>=p)f=i;else{if(Math.abs(d)<=-o*c)return i;d*(f-u)>=0&&(f=u),u=i,p=l}return 0}for(let m=0;m<10;++m){if(F(r.x,1,n.x,i,t),l=r.fx=e(r.x,r.fxprime),d=M(r.fxprime,t),l>s+a*i*c||m&&l>=u)return p(f,i,u);if(Math.abs(d)<=-o*c)return i;if(d>=0)return p(i,f,l);u=l,f=i,i*=2}return i}function R(e,t,n){let r={x:t.slice(),fx:0,fxprime:t.slice()},i={x:t.slice(),fx:0,fxprime:t.slice()},a=t.slice(),o,s,c=1,l;n||={},l=n.maxIterations||t.length*20,r.fx=e(r.x,r.fxprime),o=r.fxprime.slice(),P(o,r.fxprime,-1);for(let t=0;t<l;++t){if(c=L(e,o,r,i,c),n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:c}),!c)P(o,r.fxprime,-1);else{F(a,1,i.fxprime,-1,r.fxprime);let e=M(r.fxprime,r.fxprime),t=Math.max(0,M(a,i.fxprime)/e);F(o,t,o,-1,i.fxprime),s=r,r=i,i=s}if(N(r.fxprime)<=1e-5)break}return n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:c}),r}function ee(e,t={}){t.maxIterations=t.maxIterations||500;let n=t.initialLayout||ae,r=t.lossFunction||B,i=ne(e,t),a=n(i,t),o=Object.keys(a),s=[];for(let e of o)s.push(a[e].x),s.push(a[e].y);let c=I(e=>{let t={};for(let n=0;n<o.length;++n){let r=o[n];t[r]={x:e[2*n],y:e[2*n+1],radius:a[r].radius}}return r(t,i)},s,t).x;for(let e=0;e<o.length;++e){let t=o[e];a[t].x=c[2*e],a[t].y=c[2*e+1]}return a}var te=1e-10;function z(e,t,n){return Math.min(e,t)*Math.min(e,t)*Math.PI<=n+te?Math.abs(e-t):k(r=>E(e,t,r)-n,0,e+t)}function ne(e,t={}){let n=t.distinct,r=e.map(e=>Object.assign({},e));function i(e){return e.join(`;`)}if(n){let e=new Map;for(let t of r)for(let n=0;n<t.sets.length;n++){let r=String(t.sets[n]);e.set(r,t.size+(e.get(r)||0));for(let i=n+1;i<t.sets.length;i++){let n=String(t.sets[i]),a=`${r};${n}`,o=`${n};${r}`;e.set(a,t.size+(e.get(a)||0)),e.set(o,t.size+(e.get(o)||0))}}for(let t of r)t.sets.length<3&&(t.size=e.get(i(t.sets)))}let a=[],o=new Set;for(let e of r)if(e.sets.length===1)a.push(e.sets[0]);else if(e.sets.length===2){let t=e.sets[0],n=e.sets[1];o.add(i(e.sets)),o.add(i([n,t]))}a.sort((e,t)=>e===t?0:e<t?-1:1);for(let e=0;e<a.length;++e){let t=a[e];for(let n=e+1;n<a.length;++n){let e=a[n];o.has(i([t,e]))||r.push({sets:[t,e],size:0})}}return r}function re(e,t,n){let r=j(t.length,t.length),i=j(t.length,t.length);return e.filter(e=>e.sets.length===2).forEach(e=>{let a=n[e.sets[0]],o=n[e.sets[1]],s=z(Math.sqrt(t[a].size/Math.PI),Math.sqrt(t[o].size/Math.PI),e.size);r[a][o]=r[o][a]=s;let c=0;e.size+1e-10>=Math.min(t[a].size,t[o].size)?c=1:e.size<=1e-10&&(c=-1),i[a][o]=i[o][a]=c}),{distances:r,constraints:i}}function ie(e,t,n,r){for(let e=0;e<t.length;++e)t[e]=0;let i=0;for(let a=0;a<n.length;++a){let o=e[2*a],s=e[2*a+1];for(let c=a+1;c<n.length;++c){let l=e[2*c],u=e[2*c+1],d=n[a][c],f=r[a][c],p=(l-o)*(l-o)+(u-s)*(u-s),m=Math.sqrt(p),h=p-d*d;f>0&&m<=d||f<0&&m>=d||(i+=2*h*h,t[2*a]+=4*h*(o-l),t[2*a+1]+=4*h*(s-u),t[2*c]+=4*h*(l-o),t[2*c+1]+=4*h*(u-s))}}return i}function ae(e,t={}){let n=se(e,t),r=t.lossFunction||B;if(e.length>=8){let i=oe(e,t),a=r(i,e),o=r(n,e);a+1e-8<o&&(n=i)}return n}function oe(e,t={}){let n=t.restarts||10,r=[],i={};for(let t of e)t.sets.length===1&&(i[t.sets[0]]=r.length,r.push(t));let{distances:a,constraints:o}=re(e,r,i),s=N(a.map(N))/a.length;a=a.map(e=>e.map(e=>e/s));let c=(e,t)=>ie(e,t,a,o),l=null;for(let e=0;e<n;++e){let e=R(c,A(a.length*2).map(Math.random),t);(!l||e.fx<l.fx)&&(l=e)}let u=l.x,d={};for(let e=0;e<r.length;++e){let t=r[e];d[t.sets[0]]={x:u[2*e]*s,y:u[2*e+1]*s,radius:Math.sqrt(t.size/Math.PI)}}if(t.history)for(let e of t.history)P(e.x,s);return d}function se(e,t){let n=t&&t.lossFunction?t.lossFunction:B,r={},i={};for(let t of e)if(t.sets.length===1){let e=t.sets[0];r[e]={x:1e10,y:1e10,rowid:r.length,size:t.size,radius:Math.sqrt(t.size/Math.PI)},i[e]=[]}e=e.filter(e=>e.sets.length===2);for(let t of e){let e=t.weight==null?1:t.weight,n=t.sets[0],a=t.sets[1];t.size+te>=Math.min(r[n].size,r[a].size)&&(e=0),i[n].push({set:a,size:t.size,weight:e}),i[a].push({set:n,size:t.size,weight:e})}let a=[];Object.keys(i).forEach(e=>{let t=0;for(let n=0;n<i[e].length;++n)t+=i[e][n].size*i[e][n].weight;a.push({set:e,size:t})});function o(e,t){return t.size-e.size}a.sort(o);let s={};function c(e){return e.set in s}function l(e,t){r[t].x=e.x,r[t].y=e.y,s[t]=!0}l({x:0,y:0},a[0].set);for(let t=1;t<a.length;++t){let s=a[t].set,d=i[s].filter(c),f=r[s];if(d.sort(o),d.length===0)throw`ERROR: missing pairwise overlap information`;let p=[];for(var u=0;u<d.length;++u){let e=r[d[u].set],t=z(f.radius,e.radius,d[u].size);p.push({x:e.x+t,y:e.y}),p.push({x:e.x-t,y:e.y}),p.push({y:e.y+t,x:e.x}),p.push({y:e.y-t,x:e.x});for(let n=u+1;n<d.length;++n){let i=r[d[n].set],a=z(f.radius,i.radius,d[n].size),o=D({x:e.x,y:e.y,radius:t},{x:i.x,y:i.y,radius:a});p.push(...o)}}let m=1e50,h=p[0];for(let t of p){r[s].x=t.x,r[s].y=t.y;let i=n(r,e);i<m&&(m=i,h=t)}l(h,s)}return r}function B(e,t){let n=0;for(let r of t){if(r.sets.length===1)continue;let t;if(r.sets.length===2){let n=e[r.sets[0]],i=e[r.sets[1]];t=E(n.radius,i.radius,T(n,i))}else t=x(r.sets.map(t=>e[t]));let i=r.weight==null?1:r.weight;n+=i*(t-r.size)*(t-r.size)}return n}function ce(e,t){let n=0;for(let r of t){if(r.sets.length===1)continue;let t;if(r.sets.length===2){let n=e[r.sets[0]],i=e[r.sets[1]];t=E(n.radius,i.radius,T(n,i))}else t=x(r.sets.map(t=>e[t]));let i=r.weight==null?1:r.weight,a=Math.log((t+1)/(r.size+1));n+=i*a*a}return n}function le(e,t,n){if(n==null?e.sort((e,t)=>t.radius-e.radius):e.sort(n),e.length>0){let t=e[0].x,n=e[0].y;for(let r of e)r.x-=t,r.y-=n}if(e.length===2&&T(e[0],e[1])<Math.abs(e[1].radius-e[0].radius)&&(e[1].x=e[0].x+e[0].radius-e[1].radius-1e-10,e[1].y=e[0].y),e.length>1){let n=Math.atan2(e[1].x,e[1].y)-t,r=Math.cos(n),i=Math.sin(n);for(let t of e){let e=t.x,n=t.y;t.x=r*e-i*n,t.y=i*e+r*n}}if(e.length>2){let n=Math.atan2(e[2].x,e[2].y)-t;for(;n<0;)n+=2*Math.PI;for(;n>2*Math.PI;)n-=2*Math.PI;if(n>Math.PI){let t=e[1].y/(1e-10+e[1].x);for(let n of e){var r=(n.x+t*n.y)/(1+t*t);n.x=2*r-n.x,n.y=2*r*t-n.y}}}}function ue(e){e.forEach(e=>{e.parent=e});function t(e){return e.parent!==e&&(e.parent=t(e.parent)),e.parent}function n(e,n){let r=t(e);r.parent=t(n)}for(let t=0;t<e.length;++t)for(let r=t+1;r<e.length;++r){let i=e[t].radius+e[r].radius;T(e[t],e[r])+1e-10<i&&n(e[r],e[t])}let r=new Map;for(let n=0;n<e.length;++n){let i=t(e[n]).parent.setid;r.has(i)||r.set(i,[]),r.get(i).push(e[n])}return e.forEach(e=>{delete e.parent}),Array.from(r.values())}function V(e){let t=t=>({max:e.reduce((e,n)=>Math.max(e,n[t]+n.radius),-1/0),min:e.reduce((e,n)=>Math.min(e,n[t]-n.radius),1/0)});return{xRange:t(`x`),yRange:t(`y`)}}function de(e,t,n){t??=Math.PI/2;let r=me(e).map(e=>Object.assign({},e)),i=ue(r);for(let e of i){le(e,t,n);let r=V(e);e.size=(r.xRange.max-r.xRange.min)*(r.yRange.max-r.yRange.min),e.bounds=r}i.sort((e,t)=>t.size-e.size),r=i[0];let a=r.bounds,o=(a.xRange.max-a.xRange.min)/50;function s(e,t,n){if(!e)return;let i=e.bounds,s,c;if(t)s=a.xRange.max-i.xRange.min+o;else{s=a.xRange.max-i.xRange.max;let e=(i.xRange.max-i.xRange.min)/2-(a.xRange.max-a.xRange.min)/2;e<0&&(s+=e)}if(n)c=a.yRange.max-i.yRange.min+o;else{c=a.yRange.max-i.yRange.max;let e=(i.yRange.max-i.yRange.min)/2-(a.yRange.max-a.yRange.min)/2;e<0&&(c+=e)}for(let t of e)t.x+=s,t.y+=c,r.push(t)}let c=1;for(;c<i.length;)s(i[c],!0,!1),s(i[c+1],!1,!0),s(i[c+2],!0,!0),c+=3,a=V(r);return pe(r)}function fe(e,t,n,r,i){let a=me(e);t-=2*r,n-=2*r;let{xRange:o,yRange:s}=V(a);if(o.max===o.min||s.max===s.min)return console.log(`not scaling solution: zero size detected`),e;let c,l;if(i){let e=Math.sqrt(i/Math.PI)*2;c=t/e,l=n/e}else c=t/(o.max-o.min),l=n/(s.max-s.min);let u=Math.min(l,c),d=(t-(o.max-o.min)*u)/2,f=(n-(s.max-s.min)*u)/2;return pe(a.map(e=>({radius:u*e.radius,x:r+d+(e.x-o.min)*u,y:r+f+(e.y-s.min)*u,setid:e.setid})))}function pe(e){let t={};for(let n of e)t[n.setid]=n;return t}function me(e){return Object.keys(e).map(t=>Object.assign(e[t],{setid:t}))}function he(e={}){let t=!1,n=600,r=350,i=15,a=1e3,o=Math.PI/2,s=!0,c=null,l=!0,u=!0,d=null,f=null,p=!1,m=null,h=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,g={},_=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:[`#1f77b4`,`#ff7f0e`,`#2ca02c`,`#d62728`,`#9467bd`,`#8c564b`,`#e377c2`,`#7f7f7f`,`#bcbd22`,`#17becf`],v=0,y=function(e){if(e in g)return g[e];var t=g[e]=_[v];return v+=1,v>=_.length&&(v=0),t},b=ee,x=B;function S(g){let _=g.datum(),v=new Set;_.forEach(e=>{e.size==0&&e.sets.length==1&&v.add(e.sets[0])}),_=_.filter(e=>!e.sets.some(e=>v.has(e)));let S={},C={};if(_.length>0){let e=b(_,{lossFunction:x,distinct:p});s&&(e=de(e,o,f)),S=fe(e,n,r,i,c),C=ve(S,_,h)}let w={};_.forEach(e=>{e.label&&(w[e.sets]=e.label)});function T(e){if(e.sets in w)return w[e.sets];if(e.sets.length==1)return``+e.sets[0]}g.selectAll(`svg`).data([S]).enter().append(`svg`);let E=g.select(`svg`);t?E.attr(`viewBox`,`0 0 ${n} ${r}`):E.attr(`width`,n).attr(`height`,r);let D={},O=!1;E.selectAll(`.venn-area path`).each(function(e){let t=this.getAttribute(`d`);e.sets.length==1&&t&&!p&&(O=!0,D[e.sets[0]]=be(t))});function k(e){return t=>Ce(e.sets.map(e=>{let i=D[e],a=S[e];return i||={x:n/2,y:r/2,radius:1},a||={x:n/2,y:r/2,radius:1},{x:i.x*(1-t)+a.x*t,y:i.y*(1-t)+a.y*t,radius:i.radius*(1-t)+a.radius*t}}),m)}let A=E.selectAll(`.venn-area`).data(_,e=>e.sets),j=A.enter().append(`g`).attr(`class`,e=>`venn-area venn-${e.sets.length==1?`circle`:`intersection`}${e.colour||e.color?` venn-coloured`:``}`).attr(`data-venn-sets`,e=>e.sets.join(`_`)),M=j.append(`path`),N=j.append(`text`).attr(`class`,`label`).text(e=>T(e)).attr(`text-anchor`,`middle`).attr(`dy`,`.35em`).attr(`x`,n/2).attr(`y`,r/2);u&&(M.style(`fill-opacity`,`0`).filter(e=>e.sets.length==1).style(`fill`,e=>e.colour?e.colour:e.color?e.color:y(e.sets)).style(`fill-opacity`,`.25`),N.style(`fill`,t=>t.colour||t.color?`#FFF`:e.textFill?e.textFill:t.sets.length==1?y(t.sets):`#444`));function P(e){return typeof e.transition==`function`?e.transition(`venn`).duration(a):e}let F=g;O&&typeof F.transition==`function`?(F=P(g),F.selectAll(`path`).attrTween(`d`,k)):F.selectAll(`path`).attr(`d`,e=>Ce(e.sets.map(e=>S[e])),m);let I=F.selectAll(`text`).filter(e=>e.sets in C).text(e=>T(e)).attr(`x`,e=>Math.floor(C[e.sets].x)).attr(`y`,e=>Math.floor(C[e.sets].y));l&&(O?`on`in I?I.on(`end`,H(S,T)):I.each(`end`,H(S,T)):I.each(H(S,T)));let L=P(A.exit()).remove();typeof A.transition==`function`&&L.selectAll(`path`).attrTween(`d`,k);let R=L.selectAll(`text`).attr(`x`,n/2).attr(`y`,r/2);return d!==null&&(N.style(`font-size`,`0px`),I.style(`font-size`,d),R.style(`font-size`,`0px`)),{circles:S,textCentres:C,nodes:A,enter:j,update:F,exit:L}}return S.wrap=function(e){return arguments.length?(l=e,S):l},S.useViewBox=function(){return t=!0,S},S.width=function(e){return arguments.length?(n=e,S):n},S.height=function(e){return arguments.length?(r=e,S):r},S.padding=function(e){return arguments.length?(i=e,S):i},S.distinct=function(e){return arguments.length?(p=e,S):p},S.colours=function(e){return arguments.length?(y=e,S):y},S.colors=function(e){return arguments.length?(y=e,S):y},S.fontSize=function(e){return arguments.length?(d=e,S):d},S.round=function(e){return arguments.length?(m=e,S):m},S.duration=function(e){return arguments.length?(a=e,S):a},S.layoutFunction=function(e){return arguments.length?(b=e,S):b},S.normalize=function(e){return arguments.length?(s=e,S):s},S.scaleToFit=function(e){return arguments.length?(c=e,S):c},S.styled=function(e){return arguments.length?(u=e,S):u},S.orientation=function(e){return arguments.length?(o=e,S):o},S.orientationOrder=function(e){return arguments.length?(f=e,S):f},S.lossFunction=function(e){return arguments.length?(x=e==="default"?B:e===`logRatio`?ce:e,S):x},S}function H(e,t){return function(n){let r=this,i=e[n.sets[0]].radius||50,a=t(n)||``,o=a.split(/\s+/).reverse(),s=(a.length+o.length)/3,c=o.pop(),l=[c],u=0,d=1.1;r.textContent=null;let f=[];function p(e){let t=r.ownerDocument.createElementNS(r.namespaceURI,`tspan`);return t.textContent=e,f.push(t),r.append(t),t}let m=p(c);for(;c=o.pop(),c;){l.push(c);let e=l.join(` `);m.textContent=e,e.length>s&&m.getComputedTextLength()>i&&(l.pop(),m.textContent=l.join(` `),l=[c],m=p(c),u++)}let h=.35-u*d/2,g=r.getAttribute(`x`),_=r.getAttribute(`y`);f.forEach((e,t)=>{e.setAttribute(`x`,g),e.setAttribute(`y`,_),e.setAttribute(`dy`,`${h+t*d}em`)})}}function U(e,t,n){let r=t[0].radius-T(t[0],e);for(let n=1;n<t.length;++n){let i=t[n].radius-T(t[n],e);i<=r&&(r=i)}for(let t=0;t<n.length;++t){let i=T(n[t],e)-n[t].radius;i<=r&&(r=i)}return r}function ge(e,t,n){let r=[];for(let t of e)r.push({x:t.x,y:t.y}),r.push({x:t.x+t.radius/2,y:t.y}),r.push({x:t.x-t.radius/2,y:t.y}),r.push({x:t.x,y:t.y+t.radius/2}),r.push({x:t.x,y:t.y-t.radius/2});let i=r[0],a=U(r[0],e,t);for(let n=1;n<r.length;++n){let o=U(r[n],e,t);o>=a&&(i=r[n],a=o)}let o=I(n=>-1*U({x:n[0],y:n[1]},e,t),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,s={x:n?0:o[0],y:o[1]},c=!0;for(let t of e)if(T(s,t)>t.radius){c=!1;break}for(let e of t)if(T(s,e)<e.radius){c=!1;break}if(c)return s;if(e.length==1)return{x:e[0].x,y:e[0].y};let l={};return x(e,l),l.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:l.arcs.length==1?{x:l.arcs[0].circle.x,y:l.arcs[0].circle.y}:t.length?ge(e,[]):O(l.arcs.map(e=>e.p1))}function _e(e){let t={},n=Object.keys(e);for(let e of n)t[e]=[];for(let r=0;r<n.length;r++){let i=n[r],a=e[i];for(let o=r+1;o<n.length;++o){let r=n[o],s=e[r],c=T(a,s);c+s.radius<=a.radius+1e-10?t[r].push(i):c+a.radius<=s.radius+1e-10&&t[i].push(r)}}return t}function ve(e,t,n){let r={},i=_e(e);for(let a=0;a<t.length;++a){let o=t[a].sets,s={},c={};for(let e=0;e<o.length;++e){s[o[e]]=!0;let t=i[o[e]];for(let e=0;e<t.length;++e)c[t[e]]=!0}let l=[],u=[];for(let t in e)t in s?l.push(e[t]):t in c||u.push(e[t]);let d=ge(l,u,n);r[o]=d,d.disjoint&&t[a].size>0&&console.log(`WARNING: area `+o+` not represented on screen`)}return r}function ye(e,t,n){let r=[];return r.push(`
2
2
  M`,e,t),r.push(`
3
3
  m`,-n,0),r.push(`
4
4
  a`,n,n,0,1,0,n*2,0),r.push(`
@@ -1,4 +1,4 @@
1
- import"./prod-CPZkgD7t.js";var e={paste:`Dán`,pasteAsPlaintext:`Dán kiểu văn bản thuần`,pasteCharts:`Dán biểu đồ`,selectAll:`Chọn tất cả`,multiSelect:`Thêm mới vào Select`,moveCanvas:`Di chuyển canvas`,cut:`Cắt`,copy:`Sao chép`,copyAsPng:`Sao chép vào bộ nhớ tạm dưới dạng PNG`,copyAsSvg:`Sao chép vào bộ nhớ tạm dưới dạng SVG`,copyText:`Sao chép vào bộ nhớ tạm dưới dạng chữ`,copySource:``,convertToCode:``,bringForward:`Đưa ra trước`,sendToBack:`Hạ xuống dưới`,bringToFront:`Đưa ra đầu tiên`,sendBackward:`Hạ xuống cuối`,delete:`Xóa`,copyStyles:`Sao chép định dạng`,pasteStyles:`Dán định dạng`,stroke:`Nét`,background:`Nền`,fill:`Fill`,strokeWidth:`Độ dày nét`,strokeStyle:`Kiểu nét`,strokeStyle_solid:`Khối`,strokeStyle_dashed:`Gạch ngang`,strokeStyle_dotted:`Nhiều chấm`,sloppiness:`Hoa văn nét`,opacity:`Độ trong suốt`,textAlign:`Căn chỉnh văn bản`,edges:`Cạnh`,sharp:`Nhọn`,round:`Tròn`,arrowheads:`Đầu mũi tên`,arrowhead_none:`Không`,arrowhead_arrow:`Mũi tên`,arrowhead_bar:`Thanh`,arrowhead_circle:``,arrowhead_circle_outline:``,arrowhead_triangle:`Tam giác`,arrowhead_triangle_outline:``,arrowhead_diamond:``,arrowhead_diamond_outline:``,fontSize:`Cỡ chữ`,fontFamily:`Phông chữ`,addWatermark:`Làm với Excalidraw"`,handDrawn:`Vẽ tay`,normal:`Bình thường`,code:`Mã`,small:`Nhỏ`,medium:`Vừa`,large:`Lớn`,veryLarge:`Rất lớn`,solid:`Đặc`,hachure:`Nét gạch gạch`,zigzag:`Zigzag`,crossHatch:`Nét gạch chéo`,thin:`Mỏng`,bold:`In đậm`,left:`Trái`,center:`Giữa`,right:`Phải`,extraBold:`Nét siêu đậm`,architect:`Kiến trúc sư`,artist:`Nghệ sỹ`,cartoonist:`Hoạt hình`,fileTitle:`Tên tập tin`,colorPicker:`Chọn màu`,canvasColors:`Đã dùng trên canvas`,canvasBackground:`Nền canvas`,drawingCanvas:`Canvas vẽ`,layers:`Lớp`,actions:`Chức năng`,language:`Ngôn ngữ`,liveCollaboration:`Hợp tác trực tiếp...`,duplicateSelection:`Tạo bản sao`,untitled:`Không có tiêu đề`,name:`Tên`,yourName:`Tên của bạn`,madeWithExcalidraw:`Làm với Excalidraw`,group:`Gộp nhóm lại lựa chọn`,ungroup:`Tách nhóm lựa chọn`,collaborators:`Cộng tác viên`,showGrid:`Hiển thị lưới`,addToLibrary:`Thêm vào thư viện`,removeFromLibrary:`Xóa khỏi thư viện`,libraryLoadingMessage:`Đang tải thư viện…`,libraries:`Xem thư viện`,loadingScene:`Đang tải về…`,align:`Căn chỉnh`,alignTop:`Căn trên`,alignBottom:`Căn dưới`,alignLeft:`Canh trái`,alignRight:`Canh phải`,centerVertically:`Giữa theo chiều dọc`,centerHorizontally:`Giữa theo chiều ngang`,distributeHorizontally:`Phân bố theo chiều ngang`,distributeVertically:`Phân bố theo chiều dọc`,flipHorizontal:`Lật ngang`,flipVertical:`Lật dọc`,viewMode:`Chế độ xem`,share:`Chia sẻ`,showStroke:`Hiển thị chọn màu`,showBackground:`Hiện thị chọn màu nền`,toggleTheme:``,personalLib:`Thư viện cá nhân`,excalidrawLib:`Thư viện Excalidraw`,decreaseFontSize:`Giảm cỡ chữ`,increaseFontSize:`Tăng cỡ chữ`,unbindText:``,bindText:``,createContainerFromText:``,link:{edit:`Sửa liên kết`,editEmbed:``,create:`Tạo liên kết`,createEmbed:``,label:`Liên kết`,labelEmbed:``,empty:``},lineEditor:{edit:`Điều chỉnh nét`,exit:`Thoát chỉnh nét`},elementLock:{lock:`Khoá`,unlock:`Mở khoá`,lockAll:`Khóa tất cả`,unlockAll:`Mở khóa tất cả`},statusPublished:`Đã đăng tải`,sidebarLock:`Giữ thanh bên luôn mở`,selectAllElementsInFrame:``,removeAllElementsFromFrame:``,eyeDropper:``,textToDiagram:``,prompt:``},t={noItems:`Chưa có món nào...`,hint_emptyLibrary:`Chọn một món trên canvas để thêm nó vào đây, hoặc cài đặt thư viện từ kho lưu trữ công cộng, ở bên dưới.`,hint_emptyPrivateLibrary:`Chọn một món trên canvas để thêm nó vào đây.`},n={clearReset:`Reset canvas`,exportJSON:`Xuất ra tập tin`,exportImage:`Xuất file ảnh...`,export:`Lưu vào...`,copyToClipboard:`Sao chép vào bộ nhớ tạm`,save:`Lưu vào tập tin hiện tại`,saveAs:`Lưu thành`,load:`Mở`,getShareableLink:`Tạo liên kết để chia sẻ`,close:`Đóng`,selectLanguage:`Chọn ngôn ngữ`,scrollBackToContent:`Cuộn về nội dung chính`,zoomIn:`Phóng to`,zoomOut:`Thu nhỏ`,resetZoom:`Đặt lại thu phóng`,menu:`Bảng chọn`,done:`Xong`,edit:`Chỉnh sửa`,undo:`Hoàn tác`,redo:`Làm lại`,resetLibrary:``,createNewRoom:`Tạo phòng mới`,fullScreen:`Toàn màn hình`,darkMode:`Chế độ tối`,lightMode:`Chế độ sáng`,zenMode:`Chế độ zen`,objectsSnapMode:``,exitZenMode:`Thoát chể độ zen`,cancel:`Hủy`,clear:`Làm sạch`,remove:`Xóa`,embed:``,publishLibrary:`Đăng tải`,submit:`Gửi`,confirm:`Xác nhận`,embeddableInteractionButton:``},r={clearReset:`Điều này sẽ dọn hết canvas. Bạn có chắc không?`,couldNotCreateShareableLink:`Không thể tạo đường dẫn chia sẻ.`,couldNotCreateShareableLinkTooBig:`Không thể tạo đường dẫn chia sẻ: bản vẽ quá lớn`,couldNotLoadInvalidFile:`Không thể load tập tin không hợp lệ`,importBackendFailed:``,cannotExportEmptyCanvas:`Không thể xuất canvas trống.`,couldNotCopyToClipboard:``,decryptFailed:`Không thể giải mã dữ liệu.`,uploadedSecurly:``,loadSceneOverridePrompt:``,collabStopOverridePrompt:`Dừng phiên sẽ ghi đè lên bản vẽ được lưu trữ cục bộ trước đó của bạn. Bạn có chắc không?
1
+ import"./prod-DoKZsOaX.js";var e={paste:`Dán`,pasteAsPlaintext:`Dán kiểu văn bản thuần`,pasteCharts:`Dán biểu đồ`,selectAll:`Chọn tất cả`,multiSelect:`Thêm mới vào Select`,moveCanvas:`Di chuyển canvas`,cut:`Cắt`,copy:`Sao chép`,copyAsPng:`Sao chép vào bộ nhớ tạm dưới dạng PNG`,copyAsSvg:`Sao chép vào bộ nhớ tạm dưới dạng SVG`,copyText:`Sao chép vào bộ nhớ tạm dưới dạng chữ`,copySource:``,convertToCode:``,bringForward:`Đưa ra trước`,sendToBack:`Hạ xuống dưới`,bringToFront:`Đưa ra đầu tiên`,sendBackward:`Hạ xuống cuối`,delete:`Xóa`,copyStyles:`Sao chép định dạng`,pasteStyles:`Dán định dạng`,stroke:`Nét`,background:`Nền`,fill:`Fill`,strokeWidth:`Độ dày nét`,strokeStyle:`Kiểu nét`,strokeStyle_solid:`Khối`,strokeStyle_dashed:`Gạch ngang`,strokeStyle_dotted:`Nhiều chấm`,sloppiness:`Hoa văn nét`,opacity:`Độ trong suốt`,textAlign:`Căn chỉnh văn bản`,edges:`Cạnh`,sharp:`Nhọn`,round:`Tròn`,arrowheads:`Đầu mũi tên`,arrowhead_none:`Không`,arrowhead_arrow:`Mũi tên`,arrowhead_bar:`Thanh`,arrowhead_circle:``,arrowhead_circle_outline:``,arrowhead_triangle:`Tam giác`,arrowhead_triangle_outline:``,arrowhead_diamond:``,arrowhead_diamond_outline:``,fontSize:`Cỡ chữ`,fontFamily:`Phông chữ`,addWatermark:`Làm với Excalidraw"`,handDrawn:`Vẽ tay`,normal:`Bình thường`,code:`Mã`,small:`Nhỏ`,medium:`Vừa`,large:`Lớn`,veryLarge:`Rất lớn`,solid:`Đặc`,hachure:`Nét gạch gạch`,zigzag:`Zigzag`,crossHatch:`Nét gạch chéo`,thin:`Mỏng`,bold:`In đậm`,left:`Trái`,center:`Giữa`,right:`Phải`,extraBold:`Nét siêu đậm`,architect:`Kiến trúc sư`,artist:`Nghệ sỹ`,cartoonist:`Hoạt hình`,fileTitle:`Tên tập tin`,colorPicker:`Chọn màu`,canvasColors:`Đã dùng trên canvas`,canvasBackground:`Nền canvas`,drawingCanvas:`Canvas vẽ`,layers:`Lớp`,actions:`Chức năng`,language:`Ngôn ngữ`,liveCollaboration:`Hợp tác trực tiếp...`,duplicateSelection:`Tạo bản sao`,untitled:`Không có tiêu đề`,name:`Tên`,yourName:`Tên của bạn`,madeWithExcalidraw:`Làm với Excalidraw`,group:`Gộp nhóm lại lựa chọn`,ungroup:`Tách nhóm lựa chọn`,collaborators:`Cộng tác viên`,showGrid:`Hiển thị lưới`,addToLibrary:`Thêm vào thư viện`,removeFromLibrary:`Xóa khỏi thư viện`,libraryLoadingMessage:`Đang tải thư viện…`,libraries:`Xem thư viện`,loadingScene:`Đang tải về…`,align:`Căn chỉnh`,alignTop:`Căn trên`,alignBottom:`Căn dưới`,alignLeft:`Canh trái`,alignRight:`Canh phải`,centerVertically:`Giữa theo chiều dọc`,centerHorizontally:`Giữa theo chiều ngang`,distributeHorizontally:`Phân bố theo chiều ngang`,distributeVertically:`Phân bố theo chiều dọc`,flipHorizontal:`Lật ngang`,flipVertical:`Lật dọc`,viewMode:`Chế độ xem`,share:`Chia sẻ`,showStroke:`Hiển thị chọn màu`,showBackground:`Hiện thị chọn màu nền`,toggleTheme:``,personalLib:`Thư viện cá nhân`,excalidrawLib:`Thư viện Excalidraw`,decreaseFontSize:`Giảm cỡ chữ`,increaseFontSize:`Tăng cỡ chữ`,unbindText:``,bindText:``,createContainerFromText:``,link:{edit:`Sửa liên kết`,editEmbed:``,create:`Tạo liên kết`,createEmbed:``,label:`Liên kết`,labelEmbed:``,empty:``},lineEditor:{edit:`Điều chỉnh nét`,exit:`Thoát chỉnh nét`},elementLock:{lock:`Khoá`,unlock:`Mở khoá`,lockAll:`Khóa tất cả`,unlockAll:`Mở khóa tất cả`},statusPublished:`Đã đăng tải`,sidebarLock:`Giữ thanh bên luôn mở`,selectAllElementsInFrame:``,removeAllElementsFromFrame:``,eyeDropper:``,textToDiagram:``,prompt:``},t={noItems:`Chưa có món nào...`,hint_emptyLibrary:`Chọn một món trên canvas để thêm nó vào đây, hoặc cài đặt thư viện từ kho lưu trữ công cộng, ở bên dưới.`,hint_emptyPrivateLibrary:`Chọn một món trên canvas để thêm nó vào đây.`},n={clearReset:`Reset canvas`,exportJSON:`Xuất ra tập tin`,exportImage:`Xuất file ảnh...`,export:`Lưu vào...`,copyToClipboard:`Sao chép vào bộ nhớ tạm`,save:`Lưu vào tập tin hiện tại`,saveAs:`Lưu thành`,load:`Mở`,getShareableLink:`Tạo liên kết để chia sẻ`,close:`Đóng`,selectLanguage:`Chọn ngôn ngữ`,scrollBackToContent:`Cuộn về nội dung chính`,zoomIn:`Phóng to`,zoomOut:`Thu nhỏ`,resetZoom:`Đặt lại thu phóng`,menu:`Bảng chọn`,done:`Xong`,edit:`Chỉnh sửa`,undo:`Hoàn tác`,redo:`Làm lại`,resetLibrary:``,createNewRoom:`Tạo phòng mới`,fullScreen:`Toàn màn hình`,darkMode:`Chế độ tối`,lightMode:`Chế độ sáng`,zenMode:`Chế độ zen`,objectsSnapMode:``,exitZenMode:`Thoát chể độ zen`,cancel:`Hủy`,clear:`Làm sạch`,remove:`Xóa`,embed:``,publishLibrary:`Đăng tải`,submit:`Gửi`,confirm:`Xác nhận`,embeddableInteractionButton:``},r={clearReset:`Điều này sẽ dọn hết canvas. Bạn có chắc không?`,couldNotCreateShareableLink:`Không thể tạo đường dẫn chia sẻ.`,couldNotCreateShareableLinkTooBig:`Không thể tạo đường dẫn chia sẻ: bản vẽ quá lớn`,couldNotLoadInvalidFile:`Không thể load tập tin không hợp lệ`,importBackendFailed:``,cannotExportEmptyCanvas:`Không thể xuất canvas trống.`,couldNotCopyToClipboard:``,decryptFailed:`Không thể giải mã dữ liệu.`,uploadedSecurly:``,loadSceneOverridePrompt:``,collabStopOverridePrompt:`Dừng phiên sẽ ghi đè lên bản vẽ được lưu trữ cục bộ trước đó của bạn. Bạn có chắc không?
2
2
 
3
3
  (Nếu bạn muốn giữ bản vẽ cục bộ của mình, chỉ cần đóng tab trình duyệt.)`,errorAddingToLibrary:`Không thể thêm món vào thư viện`,errorRemovingFromLibrary:`Không thể xoá món khỏi thư viện`,confirmAddLibrary:`Hình {{numShapes}} sẽ được thêm vào thư viện. Bạn chắc chứ?`,imageDoesNotContainScene:`Hình ảnh này dường như không chứa bất kỳ dữ liệu cảnh nào. Bạn đã bật tính năng nhúng cảnh khi xuất chưa?`,cannotRestoreFromImage:``,invalidSceneUrl:``,resetLibrary:``,removeItemsFromsLibrary:`Xoá {{count}} món từ thư viện?`,invalidEncryptionKey:`Khóa mã hóa phải có 22 ký tự. Hợp tác trực tiếp bị vô hiệu hóa.`,collabOfflineWarning:`Không có kết nối internet.
4
4
  Thay đổi của bạn sẽ không được lưu!`},i={unsupportedFileType:`Loại tập tin không được hỗ trợ.`,imageInsertError:`Không thể thêm ảnh. Hãy thử lại sau...`,fileTooBig:`Tệp tin quá lớn. Dung lượng tối đa cho phép là {{maxSize}}.`,svgImageInsertError:`Không thể thêm ảnh SVG. Mã SVG có vẻ sai.`,failedToFetchImage:``,invalidSVGString:`SVG không hợp lệ.`,cannotResolveCollabServer:`Không thể kết nối với máy chủ hợp tác. Hãy tải lại trang và thử lại.`,importLibraryError:`Không thể tải thư viện`,collabSaveFailed:`Không thể lưu vào cơ sở dữ liệu. Nếu vấn đề tiếp tục xảy ra, bạn nên lưu tệp vào máy để đảm bảo bạn không bị mất công việc.`,collabSaveFailed_sizeExceeded:`Không thể lưu vào cơ sở dữ liệu, canvas có vẻ quá lớn. Bạn nên lưu tệp cục bộ để đảm bảo bạn không bị mất công việc.`,imageToolNotSupported:``,brave_measure_text_error:{line1:``,line2:``,line3:``,line4:``},libraryElementTypeError:{embeddable:``,iframe:``,image:``},asyncPasteFailedOnRead:``,asyncPasteFailedOnParse:``,copyToSystemClipboardFailed:``},a={selection:`Lựa chọn`,image:`Chèn ảnh`,rectangle:`Hình chữ nhật`,diamond:`Kim cương`,ellipse:`Hình elíp`,arrow:`Mũi tên`,line:`Đường kẻ`,freedraw:`Vẽ`,text:`Văn bản`,library:`Thư viện`,lock:`Giữ dụng cũ hiện tại sau khi vẽ`,penMode:`Chế độ bút vẽ - ngăn ngừa chạm nhầm`,link:`Thêm/ Chỉnh sửa liên kết cho hình được chọn`,eraser:`Xóa`,frame:``,magicframe:``,embeddable:``,laser:``,hand:`Tay kéo`,extraTools:``,mermaidToExcalidraw:``,magicSettings:``},o={canvasActions:`Hành động canvas`,selectedShapeActions:`Các hành động cho hình dạng đã chọn`,shapes:`Các hình khối`},s={canvasPanning:`Để di chuyển canvas, giữ con lăn chuột hoặc phím cách trong khi kéo, hoặc sử dụng công cụ cầm tay`,linearElement:`Ấn để bắt đầu nhiểm điểm vẽ, kéo để vẽ một đường thẳng`,freeDraw:`Ấn bà kéo, thả khi bạn xong`,text:`Mẹo: bạn có thể thêm văn bản tại bất cứ đâu bằng cách ấn hai lần bằng tool lựa chọn`,embeddable:``,text_selected:`Ấn 2 lần hoặc nhấn ENTER để chỉnh văn bản`,text_editing:`Nhấn Escape hoặc Ctrl/Cmd+ENTER để hoàn thành chỉnh sửa`,linearElementMulti:`Nhấn vào điểm cuối hoặc nhấn Escape hoặc Enter để kết thúc`,lockAngle:`Bạn có thể chỉnh lại góc bằng cách giữ phím SHIFT`,resize:`Bạn có thể chỉnh tỷ lệ bằng cách giữ SHIFT khi chỉnh kích cỡ,
@@ -1,4 +1,4 @@
1
- import{i as e}from"./chunk-75Z2AOVW-A-EObLCy.js";import{n as t}from"./src-Caqqw6Gw.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{D as r,H as i,K as a,U as o,a as s,b as c,c as l,v as u,w as d,x as f,y as p}from"./chunk-DU6HZSFF-CDWc5UBY.js";import{p as m}from"./dist-TX5rYYGW.js";import{n as h}from"./mermaid-parser.core-Cd74p1Qw.js";import{t as g}from"./chunk-JWPE2WC7-DVXcaiue.js";var _=n((e,t)=>{let n=e<=1?e*100:e;if(n<0||n>100)throw Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return n},`toPercent`),v=n((e,t,n)=>({x:_(t,`${n} evolution`),y:_(e,`${n} visibility`)}),`toCoordinates`),y=n(e=>{if(e){if(e===`+<>`)return`bidirectional`;if(e===`+<`)return`backward`;if(e===`+>`)return`forward`}},`getFlowFromPort`),b=n(e=>{if(!e?.startsWith(`+`))return{};let t=/^\+'([^']*)'/.exec(e)?.[1];return e.includes(`<>`)?{flow:`bidirectional`,label:t}:e.includes(`<`)?{flow:`backward`,label:t}:e.includes(`>`)?{flow:`forward`,label:t}:{label:t}},`extractFlowFromArrow`),x=n((e,t)=>{if(g(e,t),e.size&&t.setSize(e.size.width,e.size.height),e.evolution){let n=e.evolution.stages.map(e=>e.secondName?`${e.name.trim()} / ${e.secondName.trim()}`:e.name.trim()),r=e.evolution.stages.filter(e=>e.boundary!==void 0).map(e=>e.boundary);t.updateAxes({stages:n,stageBoundaries:r})}if(e.anchors.forEach(e=>{let n=v(e.visibility,e.evolution,`Anchor "${e.name}"`);t.addNode(e.name,e.name,n.x,n.y,`anchor`)}),e.components.forEach(e=>{let n=v(e.visibility,e.evolution,`Component "${e.name}"`),r=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,i=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,a=e.decorator?.strategy;t.addNode(e.name,e.name,n.x,n.y,`component`,r,i,e.inertia,a)}),e.notes.forEach(e=>{let n=v(e.visibility,e.evolution,`Note "${e.text}"`);t.addNote(e.text,n.x,n.y)}),e.pipelines.forEach(e=>{let n=t.getNode(e.parent);if(!n||typeof n.y!=`number`)throw Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);let r=n.y;t.startPipeline(e.parent),e.components.forEach(n=>{let i=`${e.parent}_${n.name}`,a=n.label?(n.label.negX?-1:1)*n.label.offsetX:void 0,o=n.label?(n.label.negY?-1:1)*n.label.offsetY:void 0,s=_(n.evolution,`Pipeline component "${n.name}" evolution`);t.addNode(i,n.name,s,r,`pipeline-component`,a,o),t.addPipelineComponent(e.parent,i)})}),e.links.forEach(e=>{let n=!!e.arrow&&(e.arrow.includes(`-.->`)||e.arrow.includes(`.-.`)),r=y(e.fromPort)??y(e.toPort),{flow:i,label:a}=b(e.arrow);!r&&i&&(r=i);let o=e.linkLabel,s=a??o;t.addLink(t.resolveNodeId(e.from),t.resolveNodeId(e.to),n,s,r)}),e.evolves.forEach(e=>{let n=t.getNode(e.component);if(n?.y!==void 0){let r=_(e.target,`Evolve target for "${e.component}"`);t.addTrend(e.component,r,n.y)}}),e.annotations.length>0){let n=e.annotations[0],r=v(n.x,n.y,`Annotations box`);t.setAnnotationsBox(r.x,r.y)}e.annotation.forEach(e=>{let n=v(e.x,e.y,`Annotation ${e.number}`);t.addAnnotation(e.number,[{x:n.x,y:n.y}],e.text)}),e.accelerators.forEach(e=>{let n=v(e.x,e.y,`Accelerator "${e.name}"`);t.addAccelerator(e.name,n.x,n.y)}),e.deaccelerators.forEach(e=>{let n=v(e.x,e.y,`Deaccelerator "${e.name}"`);t.addDeaccelerator(e.name,n.x,n.y)})},`populateDb`),S={parser:{yy:void 0},parse:n(async e=>{let n=await h(`wardley`,e);t.debug(n);let r=S.parser?.yy;if(!r||typeof r.addNode!=`function`)throw Error(`parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);x(n,r)},`parse`)},C=new class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{n(this,`WardleyBuilder`)}addNode(e){let t=this.nodes.get(e.id)??{id:e.id,label:e.label},n={...t,...e,className:e.className??t.className,labelOffsetX:e.labelOffsetX??t.labelOffsetX,labelOffsetY:e.labelOffsetY??t.labelOffsetY};this.nodes.set(e.id,n)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});let t=this.nodes.get(e);t&&(t.isPipelineParent=!0)}addPipelineComponent(e,t){let n=this.pipelines.get(e);n&&n.componentIds.push(t);let r=this.nodes.get(t);r&&(r.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,t){this.annotationsBox={x:e,y:t}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,t){this.size={width:e,height:t}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(let[t,n]of this.nodes)if(n.label===e)return t;return e}build(){let e=[];for(let t of this.nodes.values()){if(typeof t.x!=`number`||typeof t.y!=`number`)throw Error(`Node "${t.label}" is missing coordinates`);e.push(t)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}};function w(){return f()[`wardley-beta`]}n(w,`getConfig`);function T(e,t,n,r,i,a,o,s,c){C.addNode({id:e,label:t,x:n,y:r,className:i,labelOffsetX:a,labelOffsetY:o,inertia:s,sourceStrategy:c})}n(T,`addNode`);function E(e,t,n=!1,r,i){C.addLink({source:e,target:t,dashed:n,label:r,flow:i})}n(E,`addLink`);function D(e,t,n){C.addTrend({nodeId:e,targetX:t,targetY:n})}n(D,`addTrend`);function O(e,t,n){C.addAnnotation({number:e,coordinates:t,text:n})}n(O,`addAnnotation`);function k(e,t,n){C.addNote({text:e,x:t,y:n})}n(k,`addNote`);function A(e,t,n){C.addAccelerator({name:e,x:t,y:n})}n(A,`addAccelerator`);function j(e,t,n){C.addDeaccelerator({name:e,x:t,y:n})}n(j,`addDeaccelerator`);function M(e,t){C.setAnnotationsBox(e,t)}n(M,`setAnnotationsBox`);function N(e,t){C.setSize(e,t)}n(N,`setSize`);function P(e){C.startPipeline(e)}n(P,`startPipeline`);function F(e,t){C.addPipelineComponent(e,t)}n(F,`addPipelineComponent`);function I(e){C.setAxes(e)}n(I,`updateAxes`);function L(e){return C.getNode(e)}n(L,`getNode`);function R(e){return C.resolveNodeId(e)}n(R,`resolveNodeId`);function z(){return C.build()}n(z,`getWardleyData`);function B(){C.clear(),s()}n(B,`clear`);var V={getConfig:w,addNode:T,addLink:E,addTrend:D,addAnnotation:O,addNote:k,addAccelerator:A,addDeaccelerator:j,setAnnotationsBox:M,setSize:N,startPipeline:P,addPipelineComponent:F,updateAxes:I,getNode:L,resolveNodeId:R,getWardleyData:z,clear:B,setAccTitle:o,getAccTitle:p,setDiagramTitle:a,getDiagramTitle:d,getAccDescription:u,setAccDescription:i},H=[`Genesis`,`Custom Built`,`Product`,`Commodity`],U=n(()=>{let{themeVariables:e}=f();return{backgroundColor:e.wardley?.backgroundColor??e.background??`#fff`,axisColor:e.wardley?.axisColor??`#000`,axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??`#222`,gridColor:e.wardley?.gridColor??`rgba(100, 100, 100, 0.2)`,componentFill:e.wardley?.componentFill??`#fff`,componentStroke:e.wardley?.componentStroke??`#000`,componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??`#222`,linkStroke:e.wardley?.linkStroke??`#000`,evolutionStroke:e.wardley?.evolutionStroke??`#dc3545`,annotationStroke:e.wardley?.annotationStroke??`#000`,annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??`#222`,annotationFill:e.wardley?.annotationFill??e.background??`#fff`}},`getTheme`),W=n(()=>{let e=f()[`wardley-beta`];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},`getConfigValues`),G={parser:S,db:V,renderer:{draw:n((e,r,i,a)=>{t.debug(`Rendering Wardley map
1
+ import{i as e}from"./chunk-75Z2AOVW-A-EObLCy.js";import{n as t}from"./src-Caqqw6Gw.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{D as r,H as i,K as a,U as o,a as s,b as c,c as l,v as u,w as d,x as f,y as p}from"./chunk-DU6HZSFF-CDWc5UBY.js";import{p as m}from"./dist-ByHcWAsz.js";import{n as h}from"./mermaid-parser.core-Cd74p1Qw.js";import{t as g}from"./chunk-JWPE2WC7-DVXcaiue.js";var _=n((e,t)=>{let n=e<=1?e*100:e;if(n<0||n>100)throw Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return n},`toPercent`),v=n((e,t,n)=>({x:_(t,`${n} evolution`),y:_(e,`${n} visibility`)}),`toCoordinates`),y=n(e=>{if(e){if(e===`+<>`)return`bidirectional`;if(e===`+<`)return`backward`;if(e===`+>`)return`forward`}},`getFlowFromPort`),b=n(e=>{if(!e?.startsWith(`+`))return{};let t=/^\+'([^']*)'/.exec(e)?.[1];return e.includes(`<>`)?{flow:`bidirectional`,label:t}:e.includes(`<`)?{flow:`backward`,label:t}:e.includes(`>`)?{flow:`forward`,label:t}:{label:t}},`extractFlowFromArrow`),x=n((e,t)=>{if(g(e,t),e.size&&t.setSize(e.size.width,e.size.height),e.evolution){let n=e.evolution.stages.map(e=>e.secondName?`${e.name.trim()} / ${e.secondName.trim()}`:e.name.trim()),r=e.evolution.stages.filter(e=>e.boundary!==void 0).map(e=>e.boundary);t.updateAxes({stages:n,stageBoundaries:r})}if(e.anchors.forEach(e=>{let n=v(e.visibility,e.evolution,`Anchor "${e.name}"`);t.addNode(e.name,e.name,n.x,n.y,`anchor`)}),e.components.forEach(e=>{let n=v(e.visibility,e.evolution,`Component "${e.name}"`),r=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,i=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,a=e.decorator?.strategy;t.addNode(e.name,e.name,n.x,n.y,`component`,r,i,e.inertia,a)}),e.notes.forEach(e=>{let n=v(e.visibility,e.evolution,`Note "${e.text}"`);t.addNote(e.text,n.x,n.y)}),e.pipelines.forEach(e=>{let n=t.getNode(e.parent);if(!n||typeof n.y!=`number`)throw Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);let r=n.y;t.startPipeline(e.parent),e.components.forEach(n=>{let i=`${e.parent}_${n.name}`,a=n.label?(n.label.negX?-1:1)*n.label.offsetX:void 0,o=n.label?(n.label.negY?-1:1)*n.label.offsetY:void 0,s=_(n.evolution,`Pipeline component "${n.name}" evolution`);t.addNode(i,n.name,s,r,`pipeline-component`,a,o),t.addPipelineComponent(e.parent,i)})}),e.links.forEach(e=>{let n=!!e.arrow&&(e.arrow.includes(`-.->`)||e.arrow.includes(`.-.`)),r=y(e.fromPort)??y(e.toPort),{flow:i,label:a}=b(e.arrow);!r&&i&&(r=i);let o=e.linkLabel,s=a??o;t.addLink(t.resolveNodeId(e.from),t.resolveNodeId(e.to),n,s,r)}),e.evolves.forEach(e=>{let n=t.getNode(e.component);if(n?.y!==void 0){let r=_(e.target,`Evolve target for "${e.component}"`);t.addTrend(e.component,r,n.y)}}),e.annotations.length>0){let n=e.annotations[0],r=v(n.x,n.y,`Annotations box`);t.setAnnotationsBox(r.x,r.y)}e.annotation.forEach(e=>{let n=v(e.x,e.y,`Annotation ${e.number}`);t.addAnnotation(e.number,[{x:n.x,y:n.y}],e.text)}),e.accelerators.forEach(e=>{let n=v(e.x,e.y,`Accelerator "${e.name}"`);t.addAccelerator(e.name,n.x,n.y)}),e.deaccelerators.forEach(e=>{let n=v(e.x,e.y,`Deaccelerator "${e.name}"`);t.addDeaccelerator(e.name,n.x,n.y)})},`populateDb`),S={parser:{yy:void 0},parse:n(async e=>{let n=await h(`wardley`,e);t.debug(n);let r=S.parser?.yy;if(!r||typeof r.addNode!=`function`)throw Error(`parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);x(n,r)},`parse`)},C=new class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{n(this,`WardleyBuilder`)}addNode(e){let t=this.nodes.get(e.id)??{id:e.id,label:e.label},n={...t,...e,className:e.className??t.className,labelOffsetX:e.labelOffsetX??t.labelOffsetX,labelOffsetY:e.labelOffsetY??t.labelOffsetY};this.nodes.set(e.id,n)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});let t=this.nodes.get(e);t&&(t.isPipelineParent=!0)}addPipelineComponent(e,t){let n=this.pipelines.get(e);n&&n.componentIds.push(t);let r=this.nodes.get(t);r&&(r.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,t){this.annotationsBox={x:e,y:t}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,t){this.size={width:e,height:t}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(let[t,n]of this.nodes)if(n.label===e)return t;return e}build(){let e=[];for(let t of this.nodes.values()){if(typeof t.x!=`number`||typeof t.y!=`number`)throw Error(`Node "${t.label}" is missing coordinates`);e.push(t)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}};function w(){return f()[`wardley-beta`]}n(w,`getConfig`);function T(e,t,n,r,i,a,o,s,c){C.addNode({id:e,label:t,x:n,y:r,className:i,labelOffsetX:a,labelOffsetY:o,inertia:s,sourceStrategy:c})}n(T,`addNode`);function E(e,t,n=!1,r,i){C.addLink({source:e,target:t,dashed:n,label:r,flow:i})}n(E,`addLink`);function D(e,t,n){C.addTrend({nodeId:e,targetX:t,targetY:n})}n(D,`addTrend`);function O(e,t,n){C.addAnnotation({number:e,coordinates:t,text:n})}n(O,`addAnnotation`);function k(e,t,n){C.addNote({text:e,x:t,y:n})}n(k,`addNote`);function A(e,t,n){C.addAccelerator({name:e,x:t,y:n})}n(A,`addAccelerator`);function j(e,t,n){C.addDeaccelerator({name:e,x:t,y:n})}n(j,`addDeaccelerator`);function M(e,t){C.setAnnotationsBox(e,t)}n(M,`setAnnotationsBox`);function N(e,t){C.setSize(e,t)}n(N,`setSize`);function P(e){C.startPipeline(e)}n(P,`startPipeline`);function F(e,t){C.addPipelineComponent(e,t)}n(F,`addPipelineComponent`);function I(e){C.setAxes(e)}n(I,`updateAxes`);function L(e){return C.getNode(e)}n(L,`getNode`);function R(e){return C.resolveNodeId(e)}n(R,`resolveNodeId`);function z(){return C.build()}n(z,`getWardleyData`);function B(){C.clear(),s()}n(B,`clear`);var V={getConfig:w,addNode:T,addLink:E,addTrend:D,addAnnotation:O,addNote:k,addAccelerator:A,addDeaccelerator:j,setAnnotationsBox:M,setSize:N,startPipeline:P,addPipelineComponent:F,updateAxes:I,getNode:L,resolveNodeId:R,getWardleyData:z,clear:B,setAccTitle:o,getAccTitle:p,setDiagramTitle:a,getDiagramTitle:d,getAccDescription:u,setAccDescription:i},H=[`Genesis`,`Custom Built`,`Product`,`Commodity`],U=n(()=>{let{themeVariables:e}=f();return{backgroundColor:e.wardley?.backgroundColor??e.background??`#fff`,axisColor:e.wardley?.axisColor??`#000`,axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??`#222`,gridColor:e.wardley?.gridColor??`rgba(100, 100, 100, 0.2)`,componentFill:e.wardley?.componentFill??`#fff`,componentStroke:e.wardley?.componentStroke??`#000`,componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??`#222`,linkStroke:e.wardley?.linkStroke??`#000`,evolutionStroke:e.wardley?.evolutionStroke??`#dc3545`,annotationStroke:e.wardley?.annotationStroke??`#000`,annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??`#222`,annotationFill:e.wardley?.annotationFill??e.background??`#fff`}},`getTheme`),W=n(()=>{let e=f()[`wardley-beta`];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},`getConfigValues`),G={parser:S,db:V,renderer:{draw:n((e,r,i,a)=>{t.debug(`Rendering Wardley map
2
2
  `+e);let o=W(),s=U(),c=o.nodeRadius*1.6,u=a.db,d=u.getWardleyData(),f=u.getDiagramTitle(),p=d.size?.width??o.width,h=d.size?.height??o.height,g=m(r);g.selectAll(`*`).remove(),l(g,h,p,o.useMaxWidth),g.attr(`viewBox`,`0 0 ${p} ${h}`);let _=g.append(`g`).attr(`class`,`wardley-map`),v=g.append(`defs`);v.append(`marker`).attr(`id`,`arrow-${r}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,6).attr(`markerHeight`,6).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`fill`,s.evolutionStroke).attr(`stroke`,`none`),v.append(`marker`).attr(`id`,`link-arrow-end-${r}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,5).attr(`markerHeight`,5).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`fill`,s.linkStroke).attr(`stroke`,`none`),v.append(`marker`).attr(`id`,`link-arrow-start-${r}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,1).attr(`refY`,5).attr(`markerWidth`,5).attr(`markerHeight`,5).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 10 0 L 0 5 L 10 10 z`).attr(`fill`,s.linkStroke).attr(`stroke`,`none`),_.append(`rect`).attr(`class`,`wardley-background`).attr(`width`,p).attr(`height`,h).attr(`fill`,s.backgroundColor);let y=p-o.padding*2,b=h-o.padding*2;f&&_.append(`text`).attr(`class`,`wardley-title`).attr(`x`,p/2).attr(`y`,o.padding/2).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize*1.05).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(f);let x=n(e=>o.padding+e/100*y,`projectX`),S=n(e=>h-o.padding-e/100*b,`projectY`),C=_.append(`g`).attr(`class`,`wardley-axes`);C.append(`line`).attr(`x1`,o.padding).attr(`x2`,p-o.padding).attr(`y1`,h-o.padding).attr(`y2`,h-o.padding).attr(`stroke`,s.axisColor).attr(`stroke-width`,1),C.append(`line`).attr(`x1`,o.padding).attr(`x2`,o.padding).attr(`y1`,o.padding).attr(`y2`,h-o.padding).attr(`stroke`,s.axisColor).attr(`stroke-width`,1);let w=d.axes.xLabel??`Evolution`,T=d.axes.yLabel??`Visibility`;C.append(`text`).attr(`class`,`wardley-axis-label wardley-axis-label-x`).attr(`x`,o.padding+y/2).attr(`y`,h-o.padding/4).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).text(w),C.append(`text`).attr(`class`,`wardley-axis-label wardley-axis-label-y`).attr(`x`,o.padding/3).attr(`y`,o.padding+b/2).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).attr(`transform`,`rotate(-90 ${o.padding/3} ${o.padding+b/2})`).text(T);let E=d.axes.stages&&d.axes.stages.length>0?d.axes.stages:H;if(E.length>0){let e=_.append(`g`).attr(`class`,`wardley-stages`),t=d.axes.stageBoundaries,n=[];if(t&&t.length===E.length){let e=0;t.forEach(t=>{n.push({start:e,end:t}),e=t})}else{let e=1/E.length;E.forEach((t,r)=>{n.push({start:r*e,end:(r+1)*e})})}E.forEach((t,r)=>{let i=n[r],a=o.padding+i.start*y,c=(a+(o.padding+i.end*y))/2;r>0&&e.append(`line`).attr(`x1`,a).attr(`x2`,a).attr(`y1`,o.padding).attr(`y2`,h-o.padding).attr(`stroke`,`#000`).attr(`stroke-width`,1).attr(`stroke-dasharray`,`5 5`).attr(`opacity`,.8),e.append(`text`).attr(`class`,`wardley-stage-label`).attr(`x`,c).attr(`y`,h-o.padding/1.5).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize-2).attr(`text-anchor`,`middle`).text(t)})}if(o.showGrid){let e=_.append(`g`).attr(`class`,`wardley-grid`);for(let t=1;t<4;t++){let n=t/4,r=o.padding+y*n;e.append(`line`).attr(`x1`,r).attr(`x2`,r).attr(`y1`,o.padding).attr(`y2`,h-o.padding).attr(`stroke`,s.gridColor).attr(`stroke-dasharray`,`2 6`),e.append(`line`).attr(`x1`,o.padding).attr(`x2`,p-o.padding).attr(`y1`,h-o.padding-b*n).attr(`y2`,h-o.padding-b*n).attr(`stroke`,s.gridColor).attr(`stroke-dasharray`,`2 6`)}}let D=new Map;if(d.nodes.forEach(e=>{D.set(e.id,{x:x(e.x),y:S(e.y),node:e})}),d.pipelines.length>0){let e=_.append(`g`).attr(`class`,`wardley-pipelines`),t=_.append(`g`).attr(`class`,`wardley-pipeline-links`);d.pipelines.forEach(n=>{if(n.componentIds.length===0)return;let r=n.componentIds.map(e=>({id:e,pos:D.get(e),node:d.nodes.find(t=>t.id===e)})).filter(e=>e.pos&&e.node).sort((e,t)=>e.node.x-t.node.x);for(let e=0;e<r.length-1;e++){let n=r[e],i=r[e+1];t.append(`line`).attr(`class`,`wardley-pipeline-evolution-link`).attr(`x1`,n.pos.x).attr(`y1`,n.pos.y).attr(`x2`,i.pos.x).attr(`y2`,i.pos.y).attr(`stroke`,s.linkStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,`4 4`)}let i=1/0,a=-1/0,l=0;if(n.componentIds.forEach(e=>{let t=D.get(e);t&&(i=Math.min(i,t.x),a=Math.max(a,t.x),l=t.y)}),i!==1/0&&a!==-1/0){let t=o.nodeRadius*4,r=l-t/2,u=D.get(n.nodeId);u&&(u.x=(i+a)/2,u.y=r-c/6),e.append(`rect`).attr(`class`,`wardley-pipeline-box`).attr(`x`,i-15).attr(`y`,r).attr(`width`,a-i+30).attr(`height`,t).attr(`fill`,`none`).attr(`stroke`,s.axisColor).attr(`stroke-width`,1.5).attr(`rx`,4).attr(`ry`,4)}})}let O=_.append(`g`).attr(`class`,`wardley-links`),k=new Map;d.pipelines.forEach(e=>{k.set(e.nodeId,new Set(e.componentIds))});let A=d.links.filter(e=>!(!D.has(e.source)||!D.has(e.target)||k.get(e.target)?.has(e.source)));O.selectAll(`line`).data(A).enter().append(`line`).attr(`class`,e=>`wardley-link${e.dashed?` wardley-link--dashed`:``}`).attr(`x1`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.source).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=n.x-t.x,a=n.y-t.y,s=Math.sqrt(i*i+a*a);return t.x+i/s*r}).attr(`y1`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.source).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=n.x-t.x,a=n.y-t.y,s=Math.sqrt(i*i+a*a);return t.y+a/s*r}).attr(`x2`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.target).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=t.x-n.x,a=t.y-n.y,s=Math.sqrt(i*i+a*a);return n.x+i/s*r}).attr(`y2`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.target).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=t.x-n.x,a=t.y-n.y,s=Math.sqrt(i*i+a*a);return n.y+a/s*r}).attr(`stroke`,s.linkStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,e=>e.dashed?`6 6`:null).attr(`marker-end`,e=>e.flow===`forward`||e.flow===`bidirectional`?`url(#link-arrow-end-${r})`:null).attr(`marker-start`,e=>e.flow===`backward`||e.flow===`bidirectional`?`url(#link-arrow-start-${r})`:null),O.selectAll(`text`).data(A.filter(e=>e.label)).enter().append(`text`).attr(`class`,`wardley-link-label`).attr(`x`,e=>{let t=D.get(e.source),n=D.get(e.target),r=(t.x+n.x)/2,i=n.y-t.y,a=n.x-t.x;return r+i/Math.sqrt(a*a+i*i)*8}).attr(`y`,e=>{let t=D.get(e.source),n=D.get(e.target),r=(t.y+n.y)/2,i=n.x-t.x,a=n.y-t.y,o=Math.sqrt(i*i+a*a);return r+-i/o*8}).attr(`fill`,s.axisTextColor).attr(`font-size`,o.labelFontSize).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).attr(`transform`,e=>{let t=D.get(e.source),n=D.get(e.target),r=(t.x+n.x)/2,i=(t.y+n.y)/2,a=n.x-t.x,o=n.y-t.y,s=Math.sqrt(a*a+o*o),c=o/s,l=-a/s,u=r+c*8,d=i+l*8,f=Math.atan2(o,a)*180/Math.PI;return(f>90||f<-90)&&(f+=180),`rotate(${f} ${u} ${d})`}).text(e=>e.label);let j=_.append(`g`).attr(`class`,`wardley-trends`),M=d.trends.map(e=>{let t=D.get(e.nodeId);if(!t)return null;let n=x(e.targetX),r=S(e.targetY),i=n-t.x,a=r-t.y,s=Math.sqrt(i*i+a*a),c=o.nodeRadius+2;return{origin:t,targetX:n,targetY:r,adjustedX2:s>c?n-i/s*c:n,adjustedY2:s>c?r-a/s*c:r}}).filter(e=>e!==null);j.selectAll(`line`).data(M).enter().append(`line`).attr(`class`,`wardley-trend`).attr(`x1`,e=>e.origin.x).attr(`y1`,e=>e.origin.y).attr(`x2`,e=>e.adjustedX2).attr(`y2`,e=>e.adjustedY2).attr(`stroke`,s.evolutionStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,`4 4`).attr(`marker-end`,`url(#arrow-${r})`);let N=_.append(`g`).attr(`class`,`wardley-nodes`).selectAll(`g`).data(d.nodes).enter().append(`g`).attr(`class`,e=>[`wardley-node`,e.className?`wardley-node--${e.className}`:``].filter(Boolean).join(` `));N.filter(e=>e.sourceStrategy===`outsource`).append(`circle`).attr(`class`,`wardley-outsource-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`#666`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>e.sourceStrategy===`buy`).append(`circle`).attr(`class`,`wardley-buy-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`#ccc`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>e.sourceStrategy===`build`).append(`circle`).attr(`class`,`wardley-build-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`#eee`).attr(`stroke`,`#000`).attr(`stroke-width`,1);let P=N.filter(e=>e.sourceStrategy===`market`);P.append(`circle`).attr(`class`,`wardley-market-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>!e.isPipelineParent&&e.sourceStrategy!==`market`&&e.className!==`anchor`).append(`circle`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius).attr(`fill`,s.componentFill).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1);let F=o.nodeRadius*.7,I=o.nodeRadius*1.2;if(P.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>D.get(e.id).x).attr(`y1`,e=>D.get(e.id).y-I).attr(`x2`,e=>D.get(e.id).x-I*Math.cos(Math.PI/6)).attr(`y2`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),P.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>D.get(e.id).x-I*Math.cos(Math.PI/6)).attr(`y1`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`x2`,e=>D.get(e.id).x+I*Math.cos(Math.PI/6)).attr(`y2`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),P.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>D.get(e.id).x+I*Math.cos(Math.PI/6)).attr(`y1`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`x2`,e=>D.get(e.id).x).attr(`y2`,e=>D.get(e.id).y-I).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),P.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y-I).attr(`r`,F).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,2),P.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>D.get(e.id).x-I*Math.cos(Math.PI/6)).attr(`cy`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`r`,F).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,2),P.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>D.get(e.id).x+I*Math.cos(Math.PI/6)).attr(`cy`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`r`,F).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,2),N.filter(e=>e.isPipelineParent===!0).append(`rect`).attr(`x`,e=>D.get(e.id).x-c/2).attr(`y`,e=>D.get(e.id).y-c/2).attr(`width`,c).attr(`height`,c).attr(`fill`,s.componentFill).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>e.inertia===!0).append(`line`).attr(`class`,`wardley-inertia`).attr(`x1`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c/2+15:o.nodeRadius+15;return e.sourceStrategy&&(n+=o.nodeRadius+10),t.x+n}).attr(`y1`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c:o.nodeRadius*2;return t.y-n/2}).attr(`x2`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c/2+15:o.nodeRadius+15;return e.sourceStrategy&&(n+=o.nodeRadius+10),t.x+n}).attr(`y2`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c:o.nodeRadius*2;return t.y+n/2}).attr(`stroke`,s.componentStroke).attr(`stroke-width`,6),N.append(`text`).attr(`x`,e=>{let t=D.get(e.id);if(e.className===`anchor`)return e.labelOffsetX===void 0?t.x:t.x+e.labelOffsetX;let n=o.nodeLabelOffset;e.sourceStrategy&&e.labelOffsetX===void 0&&(n+=10);let r=e.labelOffsetX??n;return t.x+r}).attr(`y`,e=>{let t=D.get(e.id);if(e.className===`anchor`)return e.labelOffsetY===void 0?t.y-3:t.y+e.labelOffsetY;let n=-o.nodeLabelOffset;e.sourceStrategy&&e.labelOffsetY===void 0&&(n-=10);let r=e.labelOffsetY??n;return t.y+r}).attr(`class`,`wardley-node-label`).attr(`fill`,e=>e.className===`evolved`?s.evolutionStroke:e.className===`anchor`?`#000`:s.componentLabelColor).attr(`font-size`,o.labelFontSize).attr(`font-weight`,e=>e.className===`anchor`?`bold`:`normal`).attr(`text-anchor`,e=>e.className===`anchor`?`middle`:`start`).attr(`dominant-baseline`,e=>e.className===`anchor`?`middle`:`auto`).text(e=>e.label),d.annotations.length>0){let e=_.append(`g`).attr(`class`,`wardley-annotations`);if(d.annotations.forEach(t=>{let n=t.coordinates.map(e=>({x:x(e.x),y:S(e.y)}));if(n.length>1)for(let t=0;t<n.length-1;t++)e.append(`line`).attr(`class`,`wardley-annotation-line`).attr(`x1`,n[t].x).attr(`y1`,n[t].y).attr(`x2`,n[t+1].x).attr(`y2`,n[t+1].y).attr(`stroke`,s.axisColor).attr(`stroke-width`,1.5).attr(`stroke-dasharray`,`4 4`);n.forEach(n=>{let r=e.append(`g`).attr(`class`,`wardley-annotation`);r.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,10).attr(`fill`,`white`).attr(`stroke`,s.axisColor).attr(`stroke-width`,1.5),r.append(`text`).attr(`x`,n.x).attr(`y`,n.y).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).attr(`font-size`,10).attr(`fill`,s.axisTextColor).attr(`font-weight`,`bold`).text(t.number)})}),d.annotationsBox){let t=x(d.annotationsBox.x),n=S(d.annotationsBox.y),r=e.append(`g`).attr(`class`,`wardley-annotations-box`),i=[...d.annotations].filter(e=>e.text).sort((e,t)=>e.number-t.number),a=[];if(i.forEach((e,i)=>{let o=r.append(`text`).attr(`x`,t+10).attr(`y`,n+10+(i+1)*16).attr(`font-size`,11).attr(`fill`,s.axisTextColor).attr(`text-anchor`,`start`).attr(`dominant-baseline`,`middle`).text(`${e.number}. ${e.text}`);a.push(o)}),a.length>0){let e=0,c=0;a.forEach(t=>{let n=t.node(),r=n.getComputedTextLength();e=Math.max(e,r);let i=n.getBBox();c=Math.max(c,i.height)});let l=e+20+105,u=i.length*16+20+c/2,d=o.padding,f=p-o.padding-l,m=o.padding,g=h-o.padding-u;t=Math.max(d,Math.min(t,f)),n=Math.max(m,Math.min(n,g)),a.forEach((e,r)=>{e.attr(`x`,t+10).attr(`y`,n+10+(r+1)*16)}),r.insert(`rect`,`text`).attr(`x`,t).attr(`y`,n).attr(`width`,l).attr(`height`,u).attr(`fill`,`white`).attr(`stroke`,s.axisColor).attr(`stroke-width`,1.5).attr(`rx`,4).attr(`ry`,4)}}}if(d.notes.length>0){let e=_.append(`g`).attr(`class`,`wardley-notes`);d.notes.forEach(t=>{let n=x(t.x),r=S(t.y);e.append(`text`).attr(`x`,n).attr(`y`,r).attr(`text-anchor`,`start`).attr(`font-size`,11).attr(`fill`,s.axisTextColor).attr(`font-weight`,`bold`).text(t.text)})}if(d.accelerators.length>0){let e=_.append(`g`).attr(`class`,`wardley-accelerators`);d.accelerators.forEach(t=>{let n=x(t.x),r=S(t.y),i=`
3
3
  M ${n} ${r-15}
4
4
  L ${n+60-20} ${r-15}