chatlab-cli 0.35.0 → 0.36.1

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 (218) hide show
  1. package/README.md +7 -7
  2. package/dist/{chat-command-24RYGJAS.mjs → chat-command-XPJ43KSW.mjs} +11 -11
  3. package/dist/chat-command-XPJ43KSW.mjs.map +1 -0
  4. package/dist/{chunk-7IGBPZMI.mjs → chunk-2JPFBIAG.mjs} +268 -76
  5. package/dist/chunk-2JPFBIAG.mjs.map +1 -0
  6. package/dist/{chunk-GQMCDWZQ.mjs → chunk-5MJO4AJB.mjs} +2 -2
  7. package/dist/{chunk-QKEARRFH.mjs → chunk-67HNPYZJ.mjs} +3 -3
  8. package/dist/{chunk-U36TQMAF.mjs → chunk-6QP47LID.mjs} +2 -2
  9. package/dist/{chunk-4GWWKHWA.mjs → chunk-FJOGBUXU.mjs} +892 -6990
  10. package/dist/chunk-FJOGBUXU.mjs.map +1 -0
  11. package/dist/{chunk-KIMJXKZO.mjs → chunk-JOVL7OTW.mjs} +2 -2
  12. package/dist/{chunk-ZBPPLXM4.mjs → chunk-L7TIIVAY.mjs} +63 -63
  13. package/dist/chunk-L7TIIVAY.mjs.map +1 -0
  14. package/dist/{chunk-DC7IUDNV.mjs → chunk-NFTCEJBJ.mjs} +27 -9
  15. package/dist/chunk-NFTCEJBJ.mjs.map +1 -0
  16. package/dist/{chunk-KXDJ7N6N.mjs → chunk-NQHZPSW2.mjs} +2 -2
  17. package/dist/chunk-Q3NEL2KK.mjs +19126 -0
  18. package/dist/chunk-Q3NEL2KK.mjs.map +1 -0
  19. package/dist/{chunk-DEFEU567.mjs → chunk-R73XMAB2.mjs} +13 -11
  20. package/dist/chunk-R73XMAB2.mjs.map +1 -0
  21. package/dist/{chunk-BRZ6YIBR.mjs → chunk-X2QBH24F.mjs} +8 -3
  22. package/dist/chunk-X2QBH24F.mjs.map +1 -0
  23. package/dist/chunk-YKMQLAVP.mjs +25 -0
  24. package/dist/chunk-YKMQLAVP.mjs.map +1 -0
  25. package/dist/cli.mjs +10 -10
  26. package/dist/contacts-worker.mjs +2 -2
  27. package/dist/global-insight-worker.mjs +136 -4
  28. package/dist/global-insight-worker.mjs.map +1 -1
  29. package/dist/{http-3K4YMWDE.mjs → http-5RVY5J5U.mjs} +13 -13
  30. package/dist/{import-D4LV565A.mjs → import-ILTWVHKU.mjs} +8 -8
  31. package/dist/index.mjs +13 -13
  32. package/dist/{mcp-KL22FKQ2.mjs → mcp-Y2YXOFB4.mjs} +9 -9
  33. package/dist/people-relationships-worker.mjs +2 -2
  34. package/dist/semantic-index-worker.mjs +1 -1
  35. package/dist/{service-KZTHBDQ5.mjs → service-ZAHXRSFD.mjs} +6 -6
  36. package/dist/service-ZAHXRSFD.mjs.map +1 -0
  37. package/dist/{src-COIB6Z4P.mjs → src-OV5ZNE3Z.mjs} +124 -98
  38. package/dist/{stream-import-FSXCFG4M.mjs → stream-import-XOUM3Z5W.mjs} +8 -8
  39. package/dist/{undici-MU5I3L6Q.mjs → undici-UGXDRJLV.mjs} +193 -193
  40. package/dist/undici-UGXDRJLV.mjs.map +1 -0
  41. package/dist/{update-checker-3N7HQEP2.mjs → update-checker-UL2FBLXH.mjs} +3 -5
  42. package/dist/{update-checker-3N7HQEP2.mjs.map → update-checker-UL2FBLXH.mjs.map} +1 -1
  43. package/dist/{worker-runtime-DPS2LURI.mjs → worker-runtime-JNGURHDM.mjs} +6 -6
  44. package/dist-cli-web/assets/AISettingsTab-vvjijrc5.js +1 -0
  45. package/dist-cli-web/assets/{AboutTab-DMPziKjj.js → AboutTab-CxI8zJNz.js} +1 -1
  46. package/dist-cli-web/assets/ActionToolsPanel.vue_vue_type_script_setup_true_lang-w0hHEodr.js +110 -0
  47. package/dist-cli-web/assets/Alert-_MYcI_E2.js +1 -0
  48. package/dist-cli-web/assets/ApiSettingsTab-CK7U6dVA.js +2 -0
  49. package/dist-cli-web/assets/BatchManageTab-1WnEqqpB.js +1 -0
  50. package/dist-cli-web/assets/{BufferResource-BXSJADxx.js → BufferResource-i64DlwQT.js} +1 -1
  51. package/dist-cli-web/assets/{CanvasRenderer-Cq--8UQ_.js → CanvasRenderer-B76mEt9A.js} +1 -1
  52. package/dist-cli-web/assets/ChatRecordDrawer-Bp6OSCrz.js +1 -0
  53. package/dist-cli-web/assets/ChatRecordWorkspace-CyfPIlIy.js +11 -0
  54. package/dist-cli-web/assets/ChatRecordWorkspace-D_oJMtqh.css +1 -0
  55. package/dist-cli-web/assets/Checkbox-Ci7IeRw1.js +1 -0
  56. package/dist-cli-web/assets/DataDirCleanupNotice-Dh63pOLt.js +1 -0
  57. package/dist-cli-web/assets/DatePicker.vue_vue_type_script_setup_true_lang-DqNBNa1D.js +1 -0
  58. package/dist-cli-web/assets/DebugToolsPanel-CbNsD9co.js +1 -0
  59. package/dist-cli-web/assets/EChart.vue_vue_type_script_setup_true_lang-YeqmodwE.js +1 -0
  60. package/dist-cli-web/assets/EChartBar.vue_vue_type_script_setup_true_lang-C3pZmq0v.js +1 -0
  61. package/dist-cli-web/assets/EChartLine.vue_vue_type_script_setup_true_lang-Co6olfwv.js +1 -0
  62. package/dist-cli-web/assets/{EChartWordcloud-KV0MdsDE.js → EChartWordcloud-rDusZwSq.js} +1 -1
  63. package/dist-cli-web/assets/{Filter-DVaqcFmI.js → Filter-yxkeHO78.js} +1 -1
  64. package/dist-cli-web/assets/GlobalTaskBar-BlZ-fFiq.js +1 -0
  65. package/dist-cli-web/assets/GroupRelationshipGalaxyView-BXQBX0zJ.js +1 -0
  66. package/dist-cli-web/assets/Label-CFAZFBQX.js +1 -0
  67. package/dist-cli-web/assets/LoadingState.vue_vue_type_script_setup_true_lang-CwgpqtMZ.js +1 -0
  68. package/dist-cli-web/assets/MessageExportModal-DU71grc7.js +1 -0
  69. package/dist-cli-web/assets/PageHeader-BDPf4NuI.js +1 -0
  70. package/dist-cli-web/assets/PageTabs.vue_vue_type_script_setup_true_lang-_j82asQU.js +1 -0
  71. package/dist-cli-web/assets/{RelationshipGalaxyCanvas-6EamagxG.js → RelationshipGalaxyCanvas-BODk18aA.js} +14 -14
  72. package/dist-cli-web/assets/RelationshipGalaxyThreeCanvas-BJyuRiC-.js +4168 -0
  73. package/dist-cli-web/assets/RelationshipGalaxyThreeCanvas-CCasBcBQ.css +1 -0
  74. package/dist-cli-web/assets/{RenderTargetSystem-mYuj4uBS.js → RenderTargetSystem-CVMvAUSv.js} +1 -1
  75. package/dist-cli-web/assets/RovingFocusItem-DC_06OmN.js +1 -0
  76. package/dist-cli-web/assets/ScreenCaptureModal-DrBFDOtC.js +1 -0
  77. package/dist-cli-web/assets/SectionTabs.vue_vue_type_script_setup_true_lang-C-Zj2biH.js +1 -0
  78. package/dist-cli-web/assets/Select-DLK2LYhO.js +1 -0
  79. package/dist-cli-web/assets/SettingsModal-BFkxzo0Y.css +1 -0
  80. package/dist-cli-web/assets/SettingsModal-DqaR4Dx5.js +2 -0
  81. package/dist-cli-web/assets/StorageTab-B0ebN0f8.js +1 -0
  82. package/dist-cli-web/assets/Switch-CokhQWxm.js +1 -0
  83. package/dist-cli-web/assets/Tabs-D1UiZNaZ.js +1 -0
  84. package/dist-cli-web/assets/Tabs-N3Q-Mpqi.js +1 -0
  85. package/dist-cli-web/assets/{ThemeCard.vue_vue_type_script_setup_true_lang-DPIvbq75.js → ThemeCard.vue_vue_type_script_setup_true_lang-OT-I0mbU.js} +1 -1
  86. package/dist-cli-web/assets/TimeSelect.vue_vue_type_script_setup_true_lang-Ccunouyf.js +1 -0
  87. package/dist-cli-web/assets/{VisuallyHiddenInput-BOdkR_GC.js → VisuallyHiddenInput-OAJEt_Y5.js} +1 -1
  88. package/dist-cli-web/assets/{WebGLRenderer-BB8ukBI_.js → WebGLRenderer-DuUeftYD.js} +1 -1
  89. package/dist-cli-web/assets/{WebGPURenderer-DDOzF1Kc.js → WebGPURenderer-DoWQxiWZ.js} +1 -1
  90. package/dist-cli-web/assets/aiChat-CdADfRnU.js +8 -0
  91. package/dist-cli-web/assets/{browserAll-BRqlnNxq.js → browserAll-Cb-mtR2y.js} +1 -1
  92. package/dist-cli-web/assets/{cli-web-ClAJ6Tao.js → cli-web-BHQCZLLg.js} +1 -1
  93. package/dist-cli-web/assets/{fetch-LY-yerw1.js → fetch-AvsnJLWJ.js} +1 -1
  94. package/dist-cli-web/assets/{fetch-Dy38lkAa.js → fetch-B-6tyYWu.js} +1 -1
  95. package/dist-cli-web/assets/{fetch-Bcy2T8Fe.js → fetch-B4PYy5JS.js} +1 -1
  96. package/dist-cli-web/assets/{fetch-DWAIk_6_.js → fetch-BbcFaCRB.js} +1 -1
  97. package/dist-cli-web/assets/fetch-BkA_so1e.js +1 -0
  98. package/dist-cli-web/assets/{fetch-q480XYZQ.js → fetch-BzXuAaT3.js} +8 -5
  99. package/dist-cli-web/assets/fetch-CW2fKvGp.js +1 -0
  100. package/dist-cli-web/assets/{fetch-DijSOvop.js → fetch-DEub4tOo.js} +1 -1
  101. package/dist-cli-web/assets/{fetch-CGu53cxT.js → fetch-DLTlYnDB.js} +1 -1
  102. package/dist-cli-web/assets/fetch-Qs38Hx1V.js +1 -0
  103. package/dist-cli-web/assets/{fetch-CP1afnT0.js → fetch-sYDJ-Zs8.js} +1 -1
  104. package/dist-cli-web/assets/{fetch-DzKlTaLz.js → fetch-ul8-uQIb.js} +1 -1
  105. package/dist-cli-web/assets/host-B6SQ6OGo.js +1 -0
  106. package/dist-cli-web/assets/host-DYIkQqvY.js +1 -0
  107. package/dist-cli-web/assets/{index-Di6FmCdk.js → index--IEkRjKe.js} +10 -10
  108. package/dist-cli-web/assets/index-9iaY_EWG.js +1 -0
  109. package/dist-cli-web/assets/index-B4J99zv3.css +1 -0
  110. package/dist-cli-web/assets/index-BBeqtL8d.css +1 -0
  111. package/dist-cli-web/assets/index-BnaLj2dx.css +1 -0
  112. package/dist-cli-web/assets/index-C7omDgiJ.js +2 -0
  113. package/dist-cli-web/assets/index-CHsM84U1.js +2 -0
  114. package/dist-cli-web/assets/index-CL8u01Pf.js +137 -0
  115. package/dist-cli-web/assets/{index-CNzv7aBW.js → index-CShh95fU.js} +1 -1
  116. package/dist-cli-web/assets/index-C_OS8Y8W.js +1 -0
  117. package/dist-cli-web/assets/{index-BRV_D8dv.js → index-D64XYYts.js} +1 -1
  118. package/dist-cli-web/assets/index-DrCc8p_I.css +1 -0
  119. package/dist-cli-web/assets/index-Dz_ddyZS.css +1 -0
  120. package/dist-cli-web/assets/index-UpTe1KzQ.js +1 -0
  121. package/dist-cli-web/assets/index-a8Hw6eD8.js +1 -0
  122. package/dist-cli-web/assets/index-jwjzZNKm.js +1 -0
  123. package/dist-cli-web/assets/index-pkxlF8Ee.js +1 -0
  124. package/dist-cli-web/assets/index-sWxuTsa7.js +36 -0
  125. package/dist-cli-web/assets/{people-page-header-Bh3KXD4g.js → people-page-header-0jvXFFnh.js} +1 -1
  126. package/dist-cli-web/assets/{prompt-DcAcgQiB.js → prompt-BPYj29Vq.js} +1 -1
  127. package/dist-cli-web/assets/{semantic-index-config-builder-CK6v64Y1.js → semantic-index-config-builder-vO37z355.js} +1 -1
  128. package/dist-cli-web/assets/service-CVoA9yNf.js +1 -0
  129. package/dist-cli-web/assets/{service-YZnJyEMq.js → service-D29Vftq9.js} +1 -1
  130. package/dist-cli-web/assets/service-DMysyLCa.js +1 -0
  131. package/dist-cli-web/assets/{useFormControl-B-aXrJZN.js → useFormControl-DVawP2DO.js} +1 -1
  132. package/dist-cli-web/assets/useTable-Bv3R_Hux.js +1 -0
  133. package/dist-cli-web/assets/useToast-BA0EwImD.js +1 -0
  134. package/dist-cli-web/assets/{vendor-echarts-DfAMQxdr.js → vendor-echarts-hTLhTs52.js} +5 -5
  135. package/dist-cli-web/assets/{vendor-echarts-wordcloud-BsaEJTPY.js → vendor-echarts-wordcloud-B8CF_NgP.js} +1 -1
  136. package/dist-cli-web/assets/{vendor-zrender-PFmZe1EY.js → vendor-zrender-D8psf1AA.js} +2 -2
  137. package/dist-cli-web/assets/{webworkerAll-Dwqmy_YO.js → webworkerAll-ZPE_yGnC.js} +1 -1
  138. package/dist-cli-web/index.html +2 -2
  139. package/package.json +4 -4
  140. package/dist/chat-command-24RYGJAS.mjs.map +0 -1
  141. package/dist/chunk-22YJOBA3.mjs +0 -9826
  142. package/dist/chunk-22YJOBA3.mjs.map +0 -1
  143. package/dist/chunk-4GWWKHWA.mjs.map +0 -1
  144. package/dist/chunk-7IGBPZMI.mjs.map +0 -1
  145. package/dist/chunk-BRZ6YIBR.mjs.map +0 -1
  146. package/dist/chunk-DC7IUDNV.mjs.map +0 -1
  147. package/dist/chunk-DEFEU567.mjs.map +0 -1
  148. package/dist/chunk-QZCNVAH6.mjs +0 -14
  149. package/dist/chunk-QZCNVAH6.mjs.map +0 -1
  150. package/dist/chunk-ZBPPLXM4.mjs.map +0 -1
  151. package/dist/service-KZTHBDQ5.mjs.map +0 -1
  152. package/dist/undici-MU5I3L6Q.mjs.map +0 -1
  153. package/dist-cli-web/assets/AISettingsTab-rQC2ocFH.js +0 -1
  154. package/dist-cli-web/assets/ActionToolsPanel.vue_vue_type_script_setup_true_lang-CnRLt_1j.js +0 -110
  155. package/dist-cli-web/assets/Alert--bTQXRcZ.js +0 -1
  156. package/dist-cli-web/assets/ApiSettingsTab-CtXl4I28.js +0 -2
  157. package/dist-cli-web/assets/BatchManageTab-1KaCPweN.js +0 -1
  158. package/dist-cli-web/assets/ChatRecordDrawer-BC0F7ok1.js +0 -11
  159. package/dist-cli-web/assets/ChatRecordDrawer-Tt6UduRC.css +0 -1
  160. package/dist-cli-web/assets/Checkbox-CwajNPGF.js +0 -1
  161. package/dist-cli-web/assets/DataDirCleanupNotice-D0Oruka2.js +0 -1
  162. package/dist-cli-web/assets/DatePicker.vue_vue_type_script_setup_true_lang-C4CsoIlq.js +0 -1
  163. package/dist-cli-web/assets/DebugToolsPanel-DVDwS-wz.js +0 -1
  164. package/dist-cli-web/assets/GlobalTaskBar-DpPMX0jx.js +0 -1
  165. package/dist-cli-web/assets/GroupRelationshipGalaxyView-CLnO3phW.js +0 -1
  166. package/dist-cli-web/assets/Label-Bt2U4lGy.js +0 -1
  167. package/dist-cli-web/assets/LoadingState.vue_vue_type_script_setup_true_lang-Cnshyn0f.js +0 -1
  168. package/dist-cli-web/assets/MessageExportModal-BozaR9UZ.js +0 -1
  169. package/dist-cli-web/assets/PageHeader-CEe0xTl3.js +0 -1
  170. package/dist-cli-web/assets/PageTabs.vue_vue_type_script_setup_true_lang-D2DZrrnv.js +0 -1
  171. package/dist-cli-web/assets/RelationshipGalaxyThreeCanvas-B6GB4PWS.js +0 -4108
  172. package/dist-cli-web/assets/RelationshipGalaxyThreeCanvas-TYGOUDiv.css +0 -1
  173. package/dist-cli-web/assets/RovingFocusItem-B2y6BG1a.js +0 -1
  174. package/dist-cli-web/assets/ScreenCaptureModal-BvAtSNNR.js +0 -1
  175. package/dist-cli-web/assets/SectionTabs.vue_vue_type_script_setup_true_lang-ueEF4zHE.js +0 -1
  176. package/dist-cli-web/assets/Select-Cm4I8u9n.js +0 -1
  177. package/dist-cli-web/assets/SettingsModal-CjVax3I6.css +0 -1
  178. package/dist-cli-web/assets/SettingsModal-Cwshzj7i.js +0 -2
  179. package/dist-cli-web/assets/StorageTab-D7HzH16Y.js +0 -1
  180. package/dist-cli-web/assets/Switch-BVw4e_19.js +0 -1
  181. package/dist-cli-web/assets/Tabs-Dqwkh3Ea.js +0 -1
  182. package/dist-cli-web/assets/Tabs-OrJkANIA.js +0 -1
  183. package/dist-cli-web/assets/TimeSelect.vue_vue_type_script_setup_true_lang-dEdo6CqM.js +0 -1
  184. package/dist-cli-web/assets/aiChat-CzFSFuOJ.js +0 -8
  185. package/dist-cli-web/assets/annual-summary-time-range-CmrAqcuj.js +0 -1
  186. package/dist-cli-web/assets/base-CawUl6ET.js +0 -1
  187. package/dist-cli-web/assets/dateFormat-DXuDxIye.js +0 -1
  188. package/dist-cli-web/assets/fetch-3_xX8Yi8.js +0 -1
  189. package/dist-cli-web/assets/index-0dp58uL4.css +0 -1
  190. package/dist-cli-web/assets/index-1X7zdLgJ.css +0 -1
  191. package/dist-cli-web/assets/index-4enwdBcq.css +0 -1
  192. package/dist-cli-web/assets/index-AudHHbMs.js +0 -1
  193. package/dist-cli-web/assets/index-CF4DTbvD.js +0 -1
  194. package/dist-cli-web/assets/index-CMLoht5R.js +0 -1
  195. package/dist-cli-web/assets/index-CMPHZH6B.css +0 -1
  196. package/dist-cli-web/assets/index-CXUTiy-V.js +0 -1
  197. package/dist-cli-web/assets/index-D5m0P4ss.js +0 -36
  198. package/dist-cli-web/assets/index-DkOrt7_X.js +0 -2
  199. package/dist-cli-web/assets/index-Dlb6fC68.js +0 -1
  200. package/dist-cli-web/assets/index-IA7YUjQX.js +0 -2
  201. package/dist-cli-web/assets/index-ZsZwPLWy.css +0 -1
  202. package/dist-cli-web/assets/index-kzU381y1.js +0 -1
  203. package/dist-cli-web/assets/index-z8Vogc-b.js +0 -137
  204. package/dist-cli-web/assets/lazy-overlay-visibility-Bd9ZFOgR.js +0 -1
  205. package/dist-cli-web/assets/member-select-utils-BXZ3oHct.js +0 -1
  206. package/dist-cli-web/assets/useTable-DPEMaGby.js +0 -1
  207. package/dist-cli-web/assets/useToast-B36MzFFy.js +0 -1
  208. /package/dist/{chunk-GQMCDWZQ.mjs.map → chunk-5MJO4AJB.mjs.map} +0 -0
  209. /package/dist/{chunk-QKEARRFH.mjs.map → chunk-67HNPYZJ.mjs.map} +0 -0
  210. /package/dist/{chunk-U36TQMAF.mjs.map → chunk-6QP47LID.mjs.map} +0 -0
  211. /package/dist/{chunk-KIMJXKZO.mjs.map → chunk-JOVL7OTW.mjs.map} +0 -0
  212. /package/dist/{chunk-KXDJ7N6N.mjs.map → chunk-NQHZPSW2.mjs.map} +0 -0
  213. /package/dist/{http-3K4YMWDE.mjs.map → http-5RVY5J5U.mjs.map} +0 -0
  214. /package/dist/{import-D4LV565A.mjs.map → import-ILTWVHKU.mjs.map} +0 -0
  215. /package/dist/{mcp-KL22FKQ2.mjs.map → mcp-Y2YXOFB4.mjs.map} +0 -0
  216. /package/dist/{src-COIB6Z4P.mjs.map → src-OV5ZNE3Z.mjs.map} +0 -0
  217. /package/dist/{stream-import-FSXCFG4M.mjs.map → stream-import-XOUM3Z5W.mjs.map} +0 -0
  218. /package/dist/{worker-runtime-DPS2LURI.mjs.map → worker-runtime-JNGURHDM.mjs.map} +0 -0
@@ -0,0 +1 @@
1
+ .relationship-galaxy-3d[data-v-6da0ea8b]{background:radial-gradient(ellipse at 46% 44%,rgba(92,73,144,.1) 0%,rgba(12,14,30,.02) 44%,transparent 68%),radial-gradient(ellipse at 62% 58%,rgba(32,112,152,.08) 0%,transparent 52%),radial-gradient(ellipse at 32% 62%,rgba(150,46,90,.055) 0%,transparent 48%),linear-gradient(180deg,#070813,#03050c 58%,#020309);box-shadow:inset 0 0 180px #000000bd}.relationship-galaxy-3d__label[data-v-6da0ea8b]{pointer-events:auto;position:absolute;border:0;max-width:190px;padding:0;transform:translate(-50%);background:transparent;color:#e6ecff8f;cursor:pointer;font-size:9.5px;font-weight:600;letter-spacing:.035em;line-height:1.1;overflow:hidden;text-overflow:ellipsis;text-shadow:0 0 4px rgba(0,0,0,.9),0 2px 4px rgba(0,0,0,1);white-space:nowrap;will-change:transform,opacity}.relationship-galaxy-3d__label[data-v-6da0ea8b]:focus-visible{outline:1px solid rgba(255,230,185,.72);outline-offset:4px}.relationship-galaxy-3d__label--medium[data-v-6da0ea8b]{color:#f0f4ffe0;font-size:10.5px;font-weight:750;text-shadow:0 0 3px rgba(0,0,0,.95),0 1px 5px rgba(0,0,0,1)}.relationship-galaxy-3d__label--major[data-v-6da0ea8b]{color:#fbfcff;font-size:12px;font-weight:850;text-shadow:0 0 4px rgba(255,255,255,.26),0 2px 10px rgba(0,0,0,1)}.relationship-galaxy-3d__label--selected[data-v-6da0ea8b]{color:#fff6fb;font-size:13px;font-weight:900;letter-spacing:.06em;text-shadow:0 0 10px rgba(255,134,173,.42),0 2px 12px rgba(0,0,0,1)}
@@ -1,4 +1,4 @@
1
- import{Y as Ve,N as oe,M as m,G as Ne,b as je,a as $e,Z as le,j as l,r as W,_ as w,$ as qe,a0 as z,a1 as T,R as V,a2 as de,a3 as Ke,T as f,c as g,K as D,a4 as ue,w as ce,a5 as ee,a6 as he,a7 as pe,a8 as fe,a9 as me,x as P,aa as Ye,C as E,D as N,L as y,ab as B,ac as Je,P as Xe,ad as Ze,I as Qe,t as te,ae as re,af as p,e as et,q as O,ag as tt,ah as rt,ai as st,aj as nt}from"./RelationshipGalaxyCanvas-6EamagxG.js";import{F as at}from"./Filter-DVaqcFmI.js";var it=`in vec2 vMaskCoord;
1
+ import{Y as Ve,N as oe,M as m,G as Ne,b as je,a as $e,Z as le,j as l,r as W,_ as w,$ as qe,a0 as z,a1 as T,R as V,a2 as de,a3 as Ke,T as f,c as g,K as D,a4 as ue,w as ce,a5 as ee,a6 as he,a7 as pe,a8 as fe,a9 as me,x as P,aa as Ye,C as E,D as N,L as y,ab as B,ac as Je,P as Xe,ad as Ze,I as Qe,t as te,ae as re,af as p,e as et,q as O,ag as tt,ah as rt,ai as st,aj as nt}from"./RelationshipGalaxyCanvas-BODk18aA.js";import{F as at}from"./Filter-yxkeHO78.js";var it=`in vec2 vMaskCoord;
2
2
  in vec2 vTextureCoord;
3
3
 
4
4
  uniform sampler2D uTexture;
@@ -0,0 +1 @@
1
+ import{a as b,q as y,s as I,v as g,x as F,y as C,o as K,c as S,w as l,z as h,e as n,P as w,b as q,f as u,A as B,B as T,C as x,D as R}from"./index-sWxuTsa7.js";var _=b({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(d){const r=d,a=y(),f=I(),i=u(()=>r.tabStopId||f),c=u(()=>a.currentTabStopId.value===i.value),{getItems:p,CollectionItem:v}=g();F(()=>{r.focusable&&a.onFocusableItemAdd()}),C(()=>{r.focusable&&a.onFocusableItemRemove()});function m(e){if(e.key==="Tab"&&e.shiftKey){a.onItemShiftTab();return}if(e.target!==e.currentTarget)return;const t=B(e,a.orientation.value,a.dir.value);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||!r.allowShiftKey&&e.shiftKey)return;e.preventDefault();let o=[...p().map(s=>s.ref).filter(s=>s.dataset.disabled!=="")];if(t==="last")o.reverse();else if(t==="prev"||t==="next"){t==="prev"&&o.reverse();const s=o.indexOf(e.currentTarget);o=a.loop.value?T(o,s+1):o.slice(s+1)}x(()=>R(o))}}return(e,t)=>(K(),S(n(v),null,{default:l(()=>[h(n(w),{tabindex:c.value?0:-1,"data-orientation":n(a).orientation.value,"data-active":e.active?"":void 0,"data-disabled":e.focusable?void 0:"",as:e.as,"as-child":e.asChild,onMousedown:t[0]||(t[0]=o=>{e.focusable?n(a).onItemFocus(i.value):o.preventDefault()}),onFocus:t[1]||(t[1]=o=>n(a).onItemFocus(i.value)),onKeydown:m},{default:l(()=>[q(e.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),A=_;export{A as R};
@@ -0,0 +1 @@
1
+ import{a as f,o as n,c as g,w as x,i as e,z as c,a4 as h,a5 as k,h as v,l as b,f as w,a7 as y}from"./index-sWxuTsa7.js";import"./vendor-snapdom--nZvo8Sg.js";const B={class:"flex flex-col"},C={class:"flex items-center justify-between border-b border-gray-200 px-6 py-4 dark:border-gray-700"},U={class:"flex items-center gap-3"},z={class:"flex h-10 w-10 items-center justify-center rounded-xl bg-gradient-to-br from-pink-400 to-pink-600"},D={class:"bg-gray-100 p-4 dark:bg-gray-800"},M={class:"mx-auto max-h-[60vh] overflow-auto rounded-lg bg-white shadow-overlay dark:bg-page-dark"},N=["src"],j=f({__name:"ScreenCaptureModal",props:{open:{type:Boolean},imageData:{}},emits:["update:open"],setup(o,{emit:i}){const r=o,l=i,a=w({get:()=>r.open,set:s=>l("update:open",s)});function d(){a.value=!1}return(s,t)=>{const m=h,p=k,u=y;return n(),g(u,{open:a.value,"onUpdate:open":t[0]||(t[0]=_=>a.value=_),ui:{content:"max-w-4xl z-100"}},{content:x(()=>[e("div",B,[e("div",C,[e("div",U,[e("div",z,[c(m,{name:"i-heroicons-camera",class:"h-5 w-5 text-white"})]),t[1]||(t[1]=e("div",null,[e("h2",{class:"text-lg font-semibold text-gray-900 dark:text-white"},"截图预览")],-1))]),c(p,{icon:"i-heroicons-x-mark",variant:"ghost",color:"neutral",size:"sm",onClick:d})]),e("div",D,[e("div",M,[o.imageData?(n(),v("img",{key:0,src:o.imageData,alt:"截图预览",class:"block w-full"},null,8,N)):b("",!0)])])])]),_:1},8,["open"])}}});export{j as default};
@@ -0,0 +1 @@
1
+ import{a as r,Z as n,o as d,c as u,$ as p,w as c,b as f,a0 as g,a1 as i}from"./index-sWxuTsa7.js";const k=r({__name:"SectionTabs",props:i({items:{},persistKey:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:i(["change"],["update:modelValue"]),setup(s,{emit:l}){const o=n(s,"modelValue"),m=l;return(a,e)=>(d(),u(g,{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=t=>o.value=t),items:s.items,"persist-key":s.persistKey,mode:"section",size:"sm",bordered:!1,onChange:e[1]||(e[1]=t=>m("change",t))},p({_:2},[a.$slots.right?{name:"right",fn:c(()=>[f(a.$slots,"right")]),key:"0"}:void 0]),1032,["modelValue","items","persist-key"]))}});export{k as _};
@@ -0,0 +1 @@
1
+ import{bU as et,r as z,f as M,bl as tt,a as R,aM as Ae,aN as Oe,v as ve,bv as at,o as d,c as C,w as y,b as I,e,bk as Re,h as K,l as j,F as le,j as xe,m as $,bV as lt,aQ as me,J as Le,i as Pe,ac as it,bW as He,bX as nt,bY as rt,bZ as ot,b_ as st,b$ as je,c0 as ut,z as F,c1 as dt,aP as fe,c2 as ct,k as Ue,g as pt,c3 as Ve,u as ne,x as J,C as ce,bx as ft,P as Y,am as gt,a_ as Se,c4 as vt,c5 as mt,y as Ge,a$ as Ee,bm as yt,c6 as ht,s as $e,c7 as bt,c8 as _t,c9 as xt,ca as St,a6 as ie,p as pe,aq as qt,ar as wt,aR as Ct,aS as It,aW as Tt,aT as kt,bA as Bt,cb as De,aX as ae,n as D,a4 as _e,at as Fe,b0 as Pt,bC as de,cc as zt,bB as At,cd as Me,ce as Be,au as Lt,cf as Et,av as Ne,cg as $t}from"./index-sWxuTsa7.js";import{u as Ot}from"./useFormControl-DVawP2DO.js";import{c as Ke}from"./clamp-jFYhBC76.js";function Rt(n){const s=et({nonce:z()});return M(()=>n?.value||s.nonce?.value)}const Vt=[" ","Enter","ArrowUp","ArrowDown"],Dt=[" ","Enter"],G=10;function ge(n,s,a){return n===void 0?!1:Array.isArray(n)?n.some(g=>ze(g,s,a)):ze(n,s,a)}function ze(n,s,a){return n===void 0||s===void 0?!1:typeof n=="string"?n===s:typeof a=="function"?a(n,s):typeof a=="string"?n?.[a]===s?.[a]:tt(n,s)}function Ft(n){return n==null||n===""||Array.isArray(n)&&n.length===0}const Mt={key:0,value:""},[Q,Ye]=me("SelectRoot");var Nt=R({inheritAttrs:!1,__name:"SelectRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},by:{type:[String,Function],required:!1},dir:{type:String,required:!1},multiple:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:open"],setup(n,{emit:s}){const a=n,g=s,{required:r,disabled:u,multiple:t,dir:c}=Ae(a),v=Oe(a,"modelValue",g,{defaultValue:a.defaultValue??(t.value?[]:void 0),passive:a.modelValue===void 0,deep:!0}),m=Oe(a,"open",g,{defaultValue:a.defaultOpen,passive:a.open===void 0}),b=z(),h=z(),_=z({x:0,y:0}),x=M(()=>t.value&&Array.isArray(v.value)?v.value?.length===0:Re(v.value));ve({isProvider:!0});const p=at(c),E=Ot(b),L=z(new Set),W=M(()=>Array.from(L.value).map(l=>l.value).join(";"));function N(l){if(t.value){const S=Array.isArray(v.value)?[...v.value]:[],f=S.findIndex(w=>ze(w,l,a.by));f===-1?S.push(l):S.splice(f,1),v.value=[...S]}else v.value=l}function B(l){return Array.from(L.value).find(S=>ge(l,S.value,a.by))}return Ye({triggerElement:b,onTriggerChange:l=>{b.value=l},valueElement:h,onValueElementChange:l=>{h.value=l},contentId:"",modelValue:v,onValueChange:N,by:a.by,open:m,multiple:t,required:r,onOpenChange:l=>{m.value=l},dir:p,triggerPointerDownPosRef:_,disabled:u,isEmptyModelValue:x,optionsSet:L,onOptionAdd:l=>{const S=B(l.value);S&&L.value.delete(S),L.value.add(l)},onOptionRemove:l=>{const S=B(l.value);S&&L.value.delete(S)}}),(l,S)=>(d(),C(e(lt),null,{default:y(()=>[I(l.$slots,"default",{modelValue:e(v),open:e(m)}),e(E)&&l.name?(d(),C(Ht,{key:W.value,"aria-hidden":"true",tabindex:"-1",multiple:e(t),required:e(r),name:l.name,autocomplete:l.autocomplete,disabled:e(u),value:e(v)},{default:y(()=>[e(Re)(e(v))?(d(),K("option",Mt)):j("v-if",!0),(d(!0),K(le,null,xe(Array.from(L.value),f=>(d(),K("option",$({key:f.value??""},{ref_for:!0},f),null,16))),128))]),_:1},8,["multiple","required","name","autocomplete","disabled","value"])):j("v-if",!0)]),_:3}))}}),Kt=Nt,Wt=R({__name:"BubbleSelect",props:{autocomplete:{type:String,required:!1},autofocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},form:{type:String,required:!1},multiple:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},size:{type:Number,required:!1},value:{type:null,required:!1}},setup(n){const s=n,a=z(),g=Q();Le(()=>s.value,(u,t)=>{const c=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(c,"value").set;if(u!==t&&m&&a.value){const b=new Event("change",{bubbles:!0});m.call(a.value,u),a.value.dispatchEvent(b)}});function r(u){g.onValueChange(u.target.value)}return(u,t)=>(d(),C(e(it),{"as-child":""},{default:y(()=>[Pe("select",$({ref_key:"selectElement",ref:a},s,{onInput:r}),[I(u.$slots,"default")],16)]),_:3}))}}),Ht=Wt,jt=R({__name:"SelectPopperPosition",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1,default:G},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const a=He(n);return(g,r)=>(d(),C(e(nt),$(e(a),{style:{boxSizing:"border-box","--reka-select-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-select-content-available-width":"var(--reka-popper-available-width)","--reka-select-content-available-height":"var(--reka-popper-available-height)","--reka-select-trigger-width":"var(--reka-popper-anchor-width)","--reka-select-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:y(()=>[I(g.$slots,"default")]),_:3},16))}}),Ut=jt;const Xe={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[ye,Ze]=me("SelectContent");var Gt=R({__name:"SelectContentImpl",props:{position:{type:String,required:!1,default:"item-aligned"},bodyLock:{type:Boolean,required:!1,default:!0},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(n,{emit:s}){const a=n,g=s,r=Q();rt(),ot(a.bodyLock);const{CollectionSlot:u,getItems:t}=ve(),c=z();st(c);const{search:v,handleTypeaheadSearch:m}=je(),b=z(),h=z(),_=z(),x=z(!1),p=z(!1),E=z(!1);function L(){h.value&&c.value&&Ve([h.value,c.value])}Le(x,()=>{L()});const{onOpenChange:W,triggerPointerDownPosRef:N}=r;ut(f=>{if(!c.value)return;let w={x:0,y:0};const T=k=>{w={x:Math.abs(Math.round(k.pageX)-(N.value?.x??0)),y:Math.abs(Math.round(k.pageY)-(N.value?.y??0))}},P=k=>{k.pointerType!=="touch"&&(w.x<=10&&w.y<=10?k.preventDefault():c.value?.contains(k.target)||W(!1),document.removeEventListener("pointermove",T),N.value=null)};N.value!==null&&(document.addEventListener("pointermove",T),document.addEventListener("pointerup",P,{capture:!0,once:!0})),f(()=>{document.removeEventListener("pointermove",T),document.removeEventListener("pointerup",P,{capture:!0})})});function B(f){const w=f.ctrlKey||f.altKey||f.metaKey;if(f.key==="Tab"&&f.preventDefault(),!w&&f.key.length===1&&m(f.key,t()),["ArrowUp","ArrowDown","Home","End"].includes(f.key)){let P=[...t().map(k=>k.ref)];if(["ArrowUp","End"].includes(f.key)&&(P=P.slice().reverse()),["ArrowUp","ArrowDown"].includes(f.key)){const k=f.target,Z=P.indexOf(k);P=P.slice(Z+1)}setTimeout(()=>Ve(P)),f.preventDefault()}}const l=M(()=>a.position==="popper"?a:{}),S=He(l.value);return Ze({content:c,viewport:b,onViewportChange:f=>{b.value=f},itemRefCallback:(f,w,T)=>{const P=!p.value&&!T,k=ge(r.modelValue.value,w,r.by);if(r.multiple.value){if(E.value)return;(k||P)&&(h.value=f,k&&(E.value=!0))}else(k||P)&&(h.value=f);P&&(p.value=!0)},selectedItem:h,selectedItemText:_,onItemLeave:()=>{c.value?.focus()},itemTextRefCallback:(f,w,T)=>{const P=!p.value&&!T;(ge(r.modelValue.value,w,r.by)||P)&&(_.value=f)},focusSelectedItem:L,position:a.position,isPositioned:x,searchRef:v}),(f,w)=>(d(),C(e(u),null,{default:y(()=>[F(e(dt),{"as-child":"",onMountAutoFocus:w[6]||(w[6]=fe(()=>{},["prevent"])),onUnmountAutoFocus:w[7]||(w[7]=T=>{g("closeAutoFocus",T),!T.defaultPrevented&&(e(r).triggerElement.value?.focus({preventScroll:!0}),T.preventDefault())})},{default:y(()=>[F(e(ct),{"as-child":"","disable-outside-pointer-events":f.disableOutsidePointerEvents,onFocusOutside:w[2]||(w[2]=fe(()=>{},["prevent"])),onDismiss:w[3]||(w[3]=T=>e(r).onOpenChange(!1)),onEscapeKeyDown:w[4]||(w[4]=T=>g("escapeKeyDown",T)),onPointerDownOutside:w[5]||(w[5]=T=>g("pointerDownOutside",T))},{default:y(()=>[(d(),C(Ue(f.position==="popper"?Ut:Qt),$({...f.$attrs,...e(S)},{id:e(r).contentId,ref:T=>{if(!T)return;const P=e(pt)(T);P?.hasAttribute("data-reka-popper-content-wrapper")?c.value=P.firstElementChild:c.value=P},role:"listbox","data-state":e(r).open.value?"open":"closed",dir:e(r).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:w[0]||(w[0]=fe(()=>{},["prevent"])),onPlaced:w[1]||(w[1]=T=>x.value=!0),onKeydown:B}),{default:y(()=>[I(f.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3},8,["disable-outside-pointer-events"])]),_:3})]),_:3}))}}),Yt=Gt;const[Xt,Zt]=me("SelectItemAlignedPosition");var Jt=R({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["placed"],setup(n,{emit:s}){const a=n,g=s,{getItems:r}=ve(),u=Q(),t=ye(),c=z(!1),v=z(!0),m=z(),{forwardRef:b,currentElement:h}=ne(),{viewport:_,selectedItem:x,selectedItemText:p,focusSelectedItem:E}=t;function L(){if(u.triggerElement.value&&u.valueElement.value&&m.value&&h.value&&_?.value&&x?.value&&p?.value){const B=u.triggerElement.value.getBoundingClientRect(),l=h.value.getBoundingClientRect(),S=u.valueElement.value.getBoundingClientRect(),f=p.value.getBoundingClientRect();if(u.dir.value!=="rtl"){const o=f.left-l.left,O=S.left-o,V=B.left-O,H=B.width+V,U=Math.max(H,l.width),ee=window.innerWidth-G,i=Ke(O,G,Math.max(G,ee-U));m.value.style.minWidth=`${H}px`,m.value.style.left=`${i}px`}else{const o=l.right-f.right,O=window.innerWidth-S.right-o,V=window.innerWidth-B.right-O,H=B.width+V,U=Math.max(H,l.width),ee=window.innerWidth-G,i=Ke(O,G,Math.max(G,ee-U));m.value.style.minWidth=`${H}px`,m.value.style.right=`${i}px`}const w=r().map(o=>o.ref),T=window.innerHeight-G*2,P=_.value.scrollHeight,k=window.getComputedStyle(h.value),Z=Number.parseInt(k.borderTopWidth,10),re=Number.parseInt(k.paddingTop,10),oe=Number.parseInt(k.borderBottomWidth,10),qe=Number.parseInt(k.paddingBottom,10),he=Z+re+P+qe+oe,q=Math.min(x.value.offsetHeight*5,he),se=window.getComputedStyle(_.value),be=Number.parseInt(se.paddingTop,10),we=Number.parseInt(se.paddingBottom,10),X=B.top+B.height/2-G,Ce=T-X,ue=x.value.offsetHeight/2,Ie=x.value.offsetTop+ue,A=Z+re+Ie,Te=he-A;if(A<=X){const o=x.value===w.at(-1);m.value.style.bottom="0px";const O=h.value.clientHeight-_.value.offsetTop-_.value.offsetHeight,V=Math.max(Ce,ue+(o?we:0)+O+oe),H=A+V;m.value.style.height=`${H}px`}else{const o=x.value===w[0];m.value.style.top="0px";const V=Math.max(X,Z+_.value.offsetTop+(o?be:0)+ue)+Te;m.value.style.height=`${V}px`,_.value.scrollTop=A-X+_.value.offsetTop}m.value.style.margin=`${G}px 0`,m.value.style.minHeight=`${q}px`,m.value.style.maxHeight=`${T}px`,g("placed"),requestAnimationFrame(()=>c.value=!0)}}const W=z("");J(async()=>{await ce(),L(),h.value&&(W.value=window.getComputedStyle(h.value).zIndex)});function N(B){B&&v.value===!0&&(L(),E?.(),v.value=!1)}return ft(u.triggerElement,()=>{L()}),Zt({contentWrapper:m,shouldExpandOnScrollRef:c,onScrollButtonChange:N}),(B,l)=>(d(),K("div",{ref_key:"contentWrapperElement",ref:m,style:gt({display:"flex",flexDirection:"column",position:"fixed",zIndex:W.value})},[F(e(Y),$({ref:e(b),style:{boxSizing:"border-box",maxHeight:"100%"}},{...B.$attrs,...a}),{default:y(()=>[I(B.$slots,"default")]),_:3},16)],4))}}),Qt=Jt,ea=R({__name:"SelectArrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(n){const s=n,a=ye(Xe);return(g,r)=>e(a).position==="popper"?(d(),C(e(vt),Se($({key:0},s)),{default:y(()=>[I(g.$slots,"default")]),_:3},16)):j("v-if",!0)}}),ta=ea,aa=R({inheritAttrs:!1,__name:"SelectProvider",props:{context:{type:Object,required:!0}},setup(n){return Ye(n.context),Ze(Xe),(a,g)=>I(a.$slots,"default")}}),la=aa;const ia={key:1};var na=R({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(n,{emit:s}){const a=n,r=mt(a,s),u=Q(),t=z();J(()=>{t.value=new DocumentFragment});const c=z(),v=M(()=>a.forceMount||u.open.value),m=z(v.value);let b;function h(){b&&(clearTimeout(b),b=void 0)}return Le(v,(_,x,p)=>{h(),b=setTimeout(()=>{m.value=v.value,b=void 0}),p(h)}),Ge(h),(_,x)=>v.value||m.value||c.value?.present?(d(),C(e(yt),{key:0,ref_key:"presenceRef",ref:c,present:v.value},{default:y(()=>[F(Yt,Se(Ee({...e(r),..._.$attrs})),{default:y(()=>[I(_.$slots,"default")]),_:3},16)]),_:3},8,["present"])):t.value?(d(),K("div",ia,[(d(),C(ht,{to:t.value},[F(la,{context:e(u)},{default:y(()=>[I(_.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):j("v-if",!0)}}),ra=na;const[oa,sa]=me("SelectGroup");var ua=R({__name:"SelectGroup",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const s=n,a=$e(void 0,"reka-select-group");return sa({id:a}),(g,r)=>(d(),C(e(Y),$({role:"group"},s,{"aria-labelledby":e(a)}),{default:y(()=>[I(g.$slots,"default")]),_:3},16,["aria-labelledby"]))}}),da=ua;const[Je,ca]=me("SelectItem");var pa=R({__name:"SelectItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(n,{emit:s}){const a=n,g=s,{disabled:r}=Ae(a),u=Q(),t=ye(),{forwardRef:c,currentElement:v}=ne(),{CollectionItem:m}=ve(),b=M(()=>ge(u.modelValue?.value,a.value,u.by)),h=z(!1),_=z(a.textValue??""),x=$e(void 0,"reka-select-item-text"),p="select.select";async function E(l){if(l.defaultPrevented)return;const S={originalEvent:l,value:a.value};bt(p,L,S)}async function L(l){await ce(),g("select",l),!l.defaultPrevented&&(r.value||(u.onValueChange(a.value),u.multiple.value||u.onOpenChange(!1)))}async function W(l){await ce(),!l.defaultPrevented&&(r.value?t.onItemLeave?.():l.currentTarget?.focus({preventScroll:!0}))}async function N(l){await ce(),!l.defaultPrevented&&l.currentTarget===_t()&&t.onItemLeave?.()}async function B(l){await ce(),!(l.defaultPrevented||t.searchRef?.value!==""&&l.key===" ")&&(Dt.includes(l.key)&&E(l),l.key===" "&&l.preventDefault())}if(a.value==="")throw new Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return J(()=>{v.value&&t.itemRefCallback(v.value,a.value,a.disabled)}),ca({value:a.value,disabled:r,textId:x,isSelected:b,onItemTextChange:l=>{_.value=((_.value||l?.textContent)??"").trim()}}),(l,S)=>(d(),C(e(m),{value:{textValue:_.value}},{default:y(()=>[F(e(Y),{ref:e(c),role:"option","aria-labelledby":e(x),"data-highlighted":h.value?"":void 0,"aria-selected":b.value,"data-state":b.value?"checked":"unchecked","aria-disabled":e(r)||void 0,"data-disabled":e(r)?"":void 0,tabindex:e(r)?void 0:-1,as:l.as,"as-child":l.asChild,onFocus:S[0]||(S[0]=f=>h.value=!0),onBlur:S[1]||(S[1]=f=>h.value=!1),onPointerup:E,onPointerdown:S[2]||(S[2]=f=>{f.currentTarget.focus({preventScroll:!0})}),onTouchend:S[3]||(S[3]=fe(()=>{},["prevent","stop"])),onPointermove:W,onPointerleave:N,onKeydown:B},{default:y(()=>[I(l.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"])]),_:3},8,["value"]))}}),fa=pa,ga=R({__name:"SelectItemIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(n){const s=n,a=Je();return(g,r)=>e(a).isSelected.value?(d(),C(e(Y),$({key:0,"aria-hidden":"true"},s),{default:y(()=>[I(g.$slots,"default")]),_:3},16)):j("v-if",!0)}}),va=ga,ma=R({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(n){const s=n,a=Q(),g=ye(),r=Je(),{forwardRef:u,currentElement:t}=ne(),c=M(()=>({value:r.value,disabled:r.disabled.value,textContent:t.value?.textContent??r.value?.toString()??""}));return J(()=>{t.value&&(r.onItemTextChange(t.value),g.itemTextRefCallback(t.value,r.value,r.disabled.value),a.onOptionAdd(c.value))}),Ge(()=>{a.onOptionRemove(c.value)}),(v,m)=>(d(),C(e(Y),$({id:e(r).textId,ref:e(u)},{...s,...v.$attrs}),{default:y(()=>[I(v.$slots,"default")]),_:3},16,["id"]))}}),ya=ma,ha=R({__name:"SelectLabel",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(n){const s=n,a=oa({id:""});return(g,r)=>(d(),C(e(Y),$(s,{id:e(a).id}),{default:y(()=>[I(g.$slots,"default")]),_:3},16,["id"]))}}),ba=ha,_a=R({__name:"SelectPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(n){const s=n;return(a,g)=>(d(),C(e(xt),Se(Ee(s)),{default:y(()=>[I(a.$slots,"default")]),_:3},16))}}),xa=_a,Sa=R({__name:"SelectSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const s=n;return(a,g)=>(d(),C(e(Y),$({"aria-hidden":"true"},s),{default:y(()=>[I(a.$slots,"default")]),_:3},16))}}),qa=Sa,wa=R({__name:"SelectTrigger",props:{disabled:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(n){const s=n,a=Q(),{forwardRef:g,currentElement:r}=ne(),u=M(()=>a.disabled?.value||s.disabled);a.contentId||=$e(void 0,"reka-select-content"),J(()=>{a.onTriggerChange(r.value)});const{getItems:t}=ve(),{search:c,handleTypeaheadSearch:v,resetTypeahead:m}=je();function b(){u.value||(a.onOpenChange(!0),m())}function h(_){b(),a.triggerPointerDownPosRef.value={x:Math.round(_.pageX),y:Math.round(_.pageY)}}return(_,x)=>(d(),C(e(St),{"as-child":"",reference:_.reference},{default:y(()=>[F(e(Y),{ref:e(g),role:"combobox",type:_.as==="button"?"button":void 0,"aria-controls":e(a).contentId,"aria-expanded":e(a).open.value||!1,"aria-required":e(a).required?.value,"aria-autocomplete":"none",disabled:u.value,dir:e(a)?.dir.value,"data-state":e(a)?.open.value?"open":"closed","data-disabled":u.value?"":void 0,"data-placeholder":e(Ft)(e(a).modelValue?.value)?"":void 0,"as-child":_.asChild,as:_.as,onClick:x[0]||(x[0]=p=>{p?.currentTarget?.focus()}),onPointerdown:x[1]||(x[1]=p=>{if(p.pointerType==="touch")return p.preventDefault();const E=p.target;E.hasPointerCapture(p.pointerId)&&E.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&(h(p),p.preventDefault())}),onPointerup:x[2]||(x[2]=fe(p=>{p.pointerType==="touch"&&h(p)},["prevent"])),onKeydown:x[3]||(x[3]=p=>{const E=e(c)!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&E&&p.key===" "||(e(v)(p.key,e(t)()),e(Vt).includes(p.key)&&(b(),p.preventDefault()))})},{default:y(()=>[I(_.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]),_:3},8,["reference"]))}}),Ca=wa,Ia=R({__name:"SelectValue",props:{placeholder:{type:String,required:!1,default:""},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(n){const s=n,{forwardRef:a,currentElement:g}=ne(),r=Q();J(()=>{r.valueElement=g});const u=M(()=>{let c=[];const v=Array.from(r.optionsSet.value),m=b=>v.find(h=>ge(b,h.value,r.by));return Array.isArray(r.modelValue.value)?c=r.modelValue.value.map(b=>m(b)?.textContent??""):c=[m(r.modelValue.value)?.textContent??""],c.filter(Boolean)}),t=M(()=>u.value.length?u.value.join(", "):s.placeholder);return(c,v)=>(d(),C(e(Y),{ref:e(a),as:c.as,"as-child":c.asChild,style:{pointerEvents:"none"},"data-placeholder":u.value.length?void 0:s.placeholder},{default:y(()=>[I(c.$slots,"default",{selectedLabel:u.value,modelValue:e(r).modelValue.value},()=>[ie(pe(t.value),1)])]),_:3},8,["as","as-child","data-placeholder"]))}}),Ta=Ia,ka=R({__name:"SelectViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const s=n,{nonce:a}=Ae(s),g=Rt(a),r=ye(),u=r.position==="item-aligned"?Xt():void 0,{forwardRef:t,currentElement:c}=ne();J(()=>{r?.onViewportChange(c.value)});const v=z(0);function m(b){const h=b.currentTarget,{shouldExpandOnScrollRef:_,contentWrapper:x}=u??{};if(_?.value&&x?.value){const p=Math.abs(v.value-h.scrollTop);if(p>0){const E=window.innerHeight-G*2,L=Number.parseFloat(x.value.style.minHeight),W=Number.parseFloat(x.value.style.height),N=Math.max(L,W);if(N<E){const B=N+p,l=Math.min(E,B),S=B-l;x.value.style.height=`${l}px`,x.value.style.bottom==="0px"&&(h.scrollTop=S>0?S:0,x.value.style.justifyContent="flex-end")}}}v.value=h.scrollTop}return(b,h)=>(d(),K(le,null,[F(e(Y),$({ref:e(t),"data-reka-select-viewport":"",role:"presentation"},{...b.$attrs,...s},{style:{position:"relative",flex:1,overflow:"hidden auto"},onScroll:m}),{default:y(()=>[I(b.$slots,"default")]),_:3},16),F(e(Y),{as:"style",nonce:e(g)},{default:y(()=>h[0]||(h[0]=[ie(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-select-viewport]::-webkit-scrollbar { display: none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),Ba=ka;const We={slots:{base:["relative group rounded-md inline-flex items-center disabled:cursor-not-allowed disabled:opacity-75","transition-colors"],leading:"absolute inset-y-0 start-0 flex items-center",leadingIcon:"shrink-0 text-dimmed",leadingAvatar:"shrink-0",leadingAvatarSize:"",trailing:"absolute inset-y-0 end-0 flex items-center",trailingIcon:"shrink-0 text-dimmed",value:"truncate pointer-events-none",placeholder:"truncate text-dimmed",arrow:"fill-bg stroke-default",content:"max-h-[min(15rem,var(--reka-select-content-available-height,15rem))] w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden origin-(--reka-select-content-transform-origin) pointer-events-auto flex flex-col",viewport:"relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",group:"p-1 isolate",empty:"text-center text-muted",label:"font-semibold text-highlighted",separator:"-mx-1 my-1 h-px bg-border",item:["group relative w-full flex items-start select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50","transition-colors before:transition-colors"],itemLeadingIcon:["shrink-0 text-dimmed group-data-highlighted:not-group-data-disabled:text-default","transition-colors"],itemLeadingAvatar:"shrink-0",itemLeadingAvatarSize:"",itemLeadingChip:"shrink-0",itemLeadingChipSize:"",itemTrailing:"ms-auto inline-flex gap-1.5 items-center",itemTrailingIcon:"shrink-0",itemWrapper:"flex-1 flex flex-col min-w-0",itemLabel:"truncate",itemDescription:"truncate text-muted"},variants:{fieldGroup:{horizontal:"not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]",vertical:"not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"},size:{xs:{base:"px-2 py-1 text-xs gap-1",leading:"ps-2",trailing:"pe-2",leadingIcon:"size-4",leadingAvatarSize:"3xs",trailingIcon:"size-4",label:"p-1 text-[10px]/3 gap-1",item:"p-1 text-xs gap-1",itemLeadingIcon:"size-4",itemLeadingAvatarSize:"3xs",itemLeadingChip:"size-4",itemLeadingChipSize:"sm",itemTrailingIcon:"size-4",empty:"p-2 text-xs"},sm:{base:"px-2.5 py-1.5 text-xs gap-1.5",leading:"ps-2.5",trailing:"pe-2.5",leadingIcon:"size-4",leadingAvatarSize:"3xs",trailingIcon:"size-4",label:"p-1.5 text-[10px]/3 gap-1.5",item:"p-1.5 text-xs gap-1.5",itemLeadingIcon:"size-4",itemLeadingAvatarSize:"3xs",itemLeadingChip:"size-4",itemLeadingChipSize:"sm",itemTrailingIcon:"size-4",empty:"p-2.5 text-xs"},md:{base:"px-2.5 py-1.5 text-sm gap-1.5",leading:"ps-2.5",trailing:"pe-2.5",leadingIcon:"size-5",leadingAvatarSize:"2xs",trailingIcon:"size-5",label:"p-1.5 text-xs gap-1.5",item:"p-1.5 text-sm gap-1.5",itemLeadingIcon:"size-5",itemLeadingAvatarSize:"2xs",itemLeadingChip:"size-5",itemLeadingChipSize:"md",itemTrailingIcon:"size-5",empty:"p-2.5 text-sm"},lg:{base:"px-3 py-2 text-sm gap-2",leading:"ps-3",trailing:"pe-3",leadingIcon:"size-5",leadingAvatarSize:"2xs",trailingIcon:"size-5",label:"p-2 text-xs gap-2",item:"p-2 text-sm gap-2",itemLeadingIcon:"size-5",itemLeadingAvatarSize:"2xs",itemLeadingChip:"size-5",itemLeadingChipSize:"md",itemTrailingIcon:"size-5",empty:"p-3 text-sm"},xl:{base:"px-3 py-2 text-base gap-2",leading:"ps-3",trailing:"pe-3",leadingIcon:"size-6",leadingAvatarSize:"xs",trailingIcon:"size-6",label:"p-2 text-sm gap-2",item:"p-2 text-base gap-2",itemLeadingIcon:"size-6",itemLeadingAvatarSize:"xs",itemLeadingChip:"size-6",itemLeadingChipSize:"lg",itemTrailingIcon:"size-6",empty:"p-3 text-base"}},variant:{outline:"text-highlighted bg-default ring ring-inset ring-accented hover:bg-elevated disabled:bg-default",soft:"text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",subtle:"text-highlighted bg-elevated ring ring-inset ring-accented hover:bg-accented/75 disabled:bg-elevated",ghost:"text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",none:"text-highlighted bg-transparent focus:outline-none"},color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},leading:{true:""},trailing:{true:""},loading:{true:""},highlight:{true:""},fixed:{false:""},type:{file:"file:me-1.5 file:font-medium file:text-muted file:outline-none"},position:{popper:{content:"data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]"},"item-aligned":{content:""}},multiple:{true:""}},compoundVariants:[{color:"primary",variant:["outline","subtle"],class:"outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary"},{color:"secondary",variant:["outline","subtle"],class:"outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary"},{color:"success",variant:["outline","subtle"],class:"outline-success/25 focus-visible:outline-3 focus-visible:ring-success"},{color:"info",variant:["outline","subtle"],class:"outline-info/25 focus-visible:outline-3 focus-visible:ring-info"},{color:"warning",variant:["outline","subtle"],class:"outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning"},{color:"error",variant:["outline","subtle"],class:"outline-error/25 focus-visible:outline-3 focus-visible:ring-error"},{color:"primary",variant:["soft","ghost"],class:"outline-primary/25 focus-visible:outline-3"},{color:"secondary",variant:["soft","ghost"],class:"outline-secondary/25 focus-visible:outline-3"},{color:"success",variant:["soft","ghost"],class:"outline-success/25 focus-visible:outline-3"},{color:"info",variant:["soft","ghost"],class:"outline-info/25 focus-visible:outline-3"},{color:"warning",variant:["soft","ghost"],class:"outline-warning/25 focus-visible:outline-3"},{color:"error",variant:["soft","ghost"],class:"outline-error/25 focus-visible:outline-3"},{color:"primary",highlight:!0,class:"ring ring-inset ring-primary"},{color:"secondary",highlight:!0,class:"ring ring-inset ring-secondary"},{color:"success",highlight:!0,class:"ring ring-inset ring-success"},{color:"info",highlight:!0,class:"ring ring-inset ring-info"},{color:"warning",highlight:!0,class:"ring ring-inset ring-warning"},{color:"error",highlight:!0,class:"ring ring-inset ring-error"},{color:"neutral",variant:["outline","subtle"],class:"outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted"},{color:"neutral",variant:["soft","ghost"],class:"outline-inverted/25 focus-visible:outline-3"},{color:"neutral",highlight:!0,class:"ring ring-inset ring-inverted"},{leading:!0,size:"xs",class:"ps-7"},{leading:!0,size:"sm",class:"ps-8"},{leading:!0,size:"md",class:"ps-9"},{leading:!0,size:"lg",class:"ps-10"},{leading:!0,size:"xl",class:"ps-11"},{trailing:!0,size:"xs",class:"pe-7"},{trailing:!0,size:"sm",class:"pe-8"},{trailing:!0,size:"md",class:"pe-9"},{trailing:!0,size:"lg",class:"pe-10"},{trailing:!0,size:"xl",class:"pe-11"},{loading:!0,leading:!0,class:{leadingIcon:"animate-spin"}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:"animate-spin"}},{fixed:!1,size:"xs",class:"md:text-xs"},{fixed:!1,size:"sm",class:"md:text-xs"},{fixed:!1,size:"md",class:"md:text-sm"},{fixed:!1,size:"lg",class:"md:text-sm"}],defaultVariants:{size:"md",color:"primary",variant:"outline",position:"popper"}},La=Object.assign({inheritAttrs:!1},{__name:"Select",props:{id:{type:String,required:!1},placeholder:{type:String,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},trailingIcon:{type:null,required:!1},selectedIcon:{type:null,required:!1},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},valueKey:{type:null,required:!1,default:"value"},labelKey:{type:null,required:!1,default:"label"},descriptionKey:{type:null,required:!1,default:"description"},items:{type:null,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1},modelModifiers:{type:null,required:!1},multiple:{type:Boolean,required:!1},highlight:{type:Boolean,required:!1},autofocus:{type:Boolean,required:!1},autofocusDelay:{type:Number,required:!1,default:0},class:{type:null,required:!1},ui:{type:Object,required:!1},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1}},emits:["change","blur","focus","update:modelValue","update:open"],setup(n,{expose:s,emit:a}){const g=n,r=a,u=qt(),t=wt("select",g),c=Lt(),v=Ct(It(t,"open","defaultOpen","disabled","autocomplete","required","multiple"),r),m=Tt(ae(()=>t.portal)),b=M(()=>t.content?.position??c.ui?.select?.defaultVariants?.position??We.defaultVariants?.position),h=ae(()=>Be(t.content,{side:"bottom",sideOffset:8,collisionPadding:8,position:b.value})),_=ae(()=>Be(t.arrow,{rounded:!0})),{emitFormChange:x,emitFormInput:p,emitFormBlur:E,emitFormFocus:L,size:W,color:N,id:B,name:l,highlight:S,disabled:f,ariaAttrs:w}=kt(g),{orientation:T,size:P}=Bt(g),{isLeading:k,isTrailing:Z,leadingIconName:re,trailingIconName:oe}=At(ae(()=>Be(t,{trailingIcon:c.ui.icons.chevronDown}))),qe=M(()=>P.value||W.value),he=M(()=>b.value==="item-aligned"),q=M(()=>Ne({extend:Ne(We),...c.ui?.select||{}})({color:N.value??t.color,variant:t.variant,size:qe.value??t.size,loading:t.loading,highlight:S.value??t.highlight,leading:k.value||!!t.avatar||!!u.leading,trailing:Z.value||!!u.trailing,fieldGroup:T.value,position:b.value,multiple:t.multiple})),se=M(()=>t.items?.length?$t(t.items)?t.items:[t.items]:[]),be=M(()=>se.value.flatMap(o=>o));function we(o){if(t.multiple&&Array.isArray(o)){const O=o.map(V=>Me(be.value,V,{labelKey:t.labelKey,valueKey:t.valueKey})).filter(V=>V!=null&&V!=="");return O.length>0?O.join(", "):void 0}return Me(be.value,o,{labelKey:t.labelKey,valueKey:t.valueKey})}const X=De("triggerRef");function Ce(){t.autofocus&&X.value?.$el?.focus({focusVisible:!0})}J(()=>{setTimeout(()=>{Ce()},t.autofocusDelay)});function ue(o){t.modelModifiers?.trim&&(typeof o=="string"||o===null||o===void 0)&&(o=o?.trim()??null),t.modelModifiers?.number&&(o=Et(o)),t.modelModifiers?.nullable&&(o??=null),t.modelModifiers?.optional&&!t.modelModifiers?.nullable&&o!==null&&(o??=void 0);const O=new Event("change",{target:{value:o}});r("change",O),x(),p()}function Ie(o){if(o){const O=new FocusEvent("focus");r("focus",O),L()}else{const O=new FocusEvent("blur");r("blur",O),E()}}function A(o){return typeof o=="object"&&o!==null}function Te(o){o||X.value?.$el?.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,button:0}))}const ke=De("viewportRef");return s({triggerRef:ae(()=>X.value?.$el),viewportRef:ae(()=>{const o=ke.value;return o&&typeof o=="object"&&"$el"in o?o.$el:o})}),(o,O)=>(d(),C(e(Kt),$({name:e(l)},e(v),{autocomplete:e(t).autocomplete,disabled:e(f),"default-value":e(t).defaultValue,"model-value":n.modelValue,"onUpdate:modelValue":ue,"onUpdate:open":Ie}),{default:y(({modelValue:V,open:H})=>[F(e(Ca),$({id:e(B),ref_key:"triggerRef",ref:X,"data-slot":"base",class:q.value.base({class:[e(t).ui?.base,e(t).class]})},{...o.$attrs,...e(w)},{onClick:U=>Te(H)}),{default:y(()=>[e(k)||e(t).avatar||u.leading?(d(),K("span",{key:0,"data-slot":"leading",class:D(q.value.leading({class:e(t).ui?.leading}))},[I(o.$slots,"leading",{modelValue:V,open:H,ui:q.value},()=>[e(k)&&e(re)?(d(),C(_e,{key:0,name:e(re),"data-slot":"leadingIcon",class:D(q.value.leadingIcon({class:e(t).ui?.leadingIcon}))},null,8,["name","class"])):e(t).avatar?(d(),C(Fe,$({key:1,size:e(t).ui?.itemLeadingAvatarSize||q.value.itemLeadingAvatarSize()},e(t).avatar,{"data-slot":"itemLeadingAvatar",class:q.value.itemLeadingAvatar({class:e(t).ui?.itemLeadingAvatar})}),null,16,["size","class"])):j("",!0)])],2)):j("",!0),(d(!0),K(le,null,xe([we(V)],U=>(d(),C(e(Ta),{key:U,"data-slot":U!=null?"value":"placeholder",class:D(U!=null?q.value.value({class:e(t).ui?.value}):q.value.placeholder({class:e(t).ui?.placeholder}))},{default:y(()=>[I(o.$slots,"default",{modelValue:V,open:H,ui:q.value},()=>[ie(pe(U??e(t).placeholder??" "),1)])]),_:2},1032,["data-slot","class"]))),128)),e(Z)||u.trailing?(d(),K("span",{key:1,"data-slot":"trailing",class:D(q.value.trailing({class:e(t).ui?.trailing}))},[I(o.$slots,"trailing",{modelValue:V,open:H,ui:q.value},()=>[e(oe)?(d(),C(_e,{key:0,name:e(oe),"data-slot":"trailingIcon",class:D(q.value.trailingIcon({class:e(t).ui?.trailingIcon}))},null,8,["name","class"])):j("",!0)])],2)):j("",!0)]),_:2},1040,["id","class","onClick"]),F(e(xa),Se(Ee(e(m))),{default:y(()=>[F(e(Pt),null,{default:y(()=>[F(e(ra),$({"data-slot":"content",class:q.value.content({class:e(t).ui?.content})},h.value),{default:y(()=>[I(o.$slots,"content-top"),(d(),C(Ue(he.value?e(Ba):"div"),{ref_key:"viewportRef",ref:ke,role:"presentation","data-slot":"viewport",class:D(q.value.viewport({class:e(t).ui?.viewport}))},{default:y(()=>[(d(!0),K(le,null,xe(se.value,(U,ee)=>(d(),C(e(da),{key:`group-${ee}`,"data-slot":"group",class:D(q.value.group({class:e(t).ui?.group}))},{default:y(()=>[(d(!0),K(le,null,xe(U,(i,te)=>(d(),K(le,{key:`group-${ee}-${te}`},[A(i)&&i.type==="label"?(d(),C(e(ba),{key:0,"data-slot":"label",class:D(q.value.label({class:[e(t).ui?.label,i.ui?.label,i.class]}))},{default:y(()=>[ie(pe(e(de)(i,e(t).labelKey)),1)]),_:2},1032,["class"])):A(i)&&i.type==="separator"?(d(),C(e(qa),{key:1,"data-slot":"separator",class:D(q.value.separator({class:[e(t).ui?.separator,i.ui?.separator,i.class]}))},null,8,["class"])):(d(),C(e(fa),{key:2,"data-slot":"item",class:D(q.value.item({class:[e(t).ui?.item,A(i)&&i.ui?.item,A(i)&&i.class]})),disabled:A(i)&&i.disabled,value:A(i)?e(de)(i,e(t).valueKey):i,onSelect:Qe=>A(i)&&i.onSelect?.(Qe)},{default:y(()=>[I(o.$slots,"item",{item:i,index:te,ui:q.value},()=>[I(o.$slots,"item-leading",{item:i,index:te,ui:q.value},()=>[A(i)&&i.icon?(d(),C(_e,{key:0,name:i.icon,"data-slot":"itemLeadingIcon",class:D(q.value.itemLeadingIcon({class:[e(t).ui?.itemLeadingIcon,i.ui?.itemLeadingIcon]}))},null,8,["name","class"])):A(i)&&i.avatar?(d(),C(Fe,$({key:1,size:i.ui?.itemLeadingAvatarSize||e(t).ui?.itemLeadingAvatarSize||q.value.itemLeadingAvatarSize()},{ref_for:!0},i.avatar,{"data-slot":"itemLeadingAvatar",class:q.value.itemLeadingAvatar({class:[e(t).ui?.itemLeadingAvatar,i.ui?.itemLeadingAvatar]})}),null,16,["size","class"])):A(i)&&i.chip?(d(),C(zt,$({key:2,size:i.ui?.itemLeadingChipSize||e(t).ui?.itemLeadingChipSize||q.value.itemLeadingChipSize(),inset:"",standalone:""},{ref_for:!0},i.chip,{"data-slot":"itemLeadingChip",class:q.value.itemLeadingChip({class:[e(t).ui?.itemLeadingChip,i.ui?.itemLeadingChip]})}),null,16,["size","class"])):j("",!0)]),Pe("span",{"data-slot":"itemWrapper",class:D(q.value.itemWrapper({class:[e(t).ui?.itemWrapper,A(i)&&i.ui?.itemWrapper]}))},[F(e(ya),{"data-slot":"itemLabel",class:D(q.value.itemLabel({class:[e(t).ui?.itemLabel,A(i)&&i.ui?.itemLabel]}))},{default:y(()=>[I(o.$slots,"item-label",{item:i,index:te},()=>[ie(pe(A(i)?e(de)(i,e(t).labelKey):i),1)])]),_:2},1032,["class"]),A(i)&&(e(de)(i,e(t).descriptionKey)||u["item-description"])?(d(),K("span",{key:0,"data-slot":"itemDescription",class:D(q.value.itemDescription({class:[e(t).ui?.itemDescription,A(i)&&i.ui?.itemDescription]}))},[I(o.$slots,"item-description",{item:i,index:te},()=>[ie(pe(e(de)(i,e(t).descriptionKey)),1)])],2)):j("",!0)],2),Pe("span",{"data-slot":"itemTrailing",class:D(q.value.itemTrailing({class:[e(t).ui?.itemTrailing,A(i)&&i.ui?.itemTrailing]}))},[I(o.$slots,"item-trailing",{item:i,index:te,ui:q.value}),F(e(va),{"as-child":""},{default:y(()=>[F(_e,{name:e(t).selectedIcon||e(c).ui.icons.check,"data-slot":"itemTrailingIcon",class:D(q.value.itemTrailingIcon({class:[e(t).ui?.itemTrailingIcon,A(i)&&i.ui?.itemTrailingIcon]}))},null,8,["name","class"])]),_:2},1024)],2)])]),_:2},1032,["class","disabled","value","onSelect"]))],64))),128))]),_:2},1032,["class"]))),128))]),_:3},8,["class"])),I(o.$slots,"content-bottom"),e(t).arrow?(d(),C(e(ta),$({key:0},_.value,{"data-slot":"arrow",class:q.value.arrow({class:e(t).ui?.arrow})}),null,16,["class"])):j("",!0)]),_:3},16,["class"])]),_:3})]),_:3},16)]),_:3},16,["name","autocomplete","disabled","default-value","model-value"]))}});export{La as _};
@@ -0,0 +1 @@
1
+ .tab-slide-enter-active[data-v-0c35b6a3],.tab-slide-leave-active[data-v-0c35b6a3]{transition:opacity .2s ease,transform .2s ease}.tab-slide-enter-from[data-v-0c35b6a3]{opacity:0;transform:translateY(10px)}.tab-slide-leave-to[data-v-0c35b6a3]{opacity:0;transform:translateY(-10px)}
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AISettingsTab-vvjijrc5.js","assets/index-sWxuTsa7.js","assets/vendor-snapdom--nZvo8Sg.js","assets/index-DrCc8p_I.css","assets/Tabs-D1UiZNaZ.js","assets/RovingFocusItem-DC_06OmN.js","assets/Tabs-N3Q-Mpqi.js","assets/Alert-_MYcI_E2.js","assets/Select-DLK2LYhO.js","assets/useFormControl-DVawP2DO.js","assets/clamp-jFYhBC76.js","assets/VisuallyHiddenInput-OAJEt_Y5.js","assets/semantic-index-config-builder-vO37z355.js","assets/Switch-CokhQWxm.js","assets/Label-CFAZFBQX.js","assets/prompt-BPYj29Vq.js","assets/Checkbox-Ci7IeRw1.js","assets/BatchManageTab-1WnEqqpB.js","assets/useToast-BA0EwImD.js","assets/useTable-Bv3R_Hux.js","assets/StorageTab-B0ebN0f8.js","assets/service-D29Vftq9.js","assets/AboutTab-CxI8zJNz.js","assets/ApiSettingsTab-CK7U6dVA.js","assets/SectionTabs.vue_vue_type_script_setup_true_lang-C-Zj2biH.js"])))=>i.map(i=>d[i]);
2
+ import{a as R,bn as oe,o as i,c as C,bo as ne,m as ie,e as s,a3 as G,x as Z,h as f,i as e,z as d,a4 as Q,a6 as j,p as u,ap as le,w as q,a5 as re,n as W,l as V,r as T,f as A,I as X,a8 as ce,az as Y,ag as de,aB as F,F as K,bd as H,j as ue,am as ge,bp as me,aA as be,aa as ve,a7 as pe,_ as fe,b as _e,J as he,aD as ye,bq as xe,br as O,bs as D,C as J,ae as ke}from"./index-sWxuTsa7.js";import{_ as ee}from"./Tabs-D1UiZNaZ.js";import{_ as we}from"./Switch-CokhQWxm.js";import{T as Te}from"./Tabs-N3Q-Mpqi.js";import{u as Ce}from"./prompt-BPYj29Vq.js";import{_ as Se}from"./PageTabs.vue_vue_type_script_setup_true_lang-_j82asQU.js";import"./vendor-snapdom--nZvo8Sg.js";import"./RovingFocusItem-DC_06OmN.js";import"./Label-CFAZFBQX.js";import"./useFormControl-DVawP2DO.js";import"./VisuallyHiddenInput-OAJEt_Y5.js";const $e=R({inheritAttrs:!1,__name:"UiIconButton",props:{icon:{},label:{},tone:{default:"neutral"},variant:{default:"ghost"},size:{default:"sm"},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["click","focus","blur","keydown","keyup"],setup(b,{emit:t}){const g=t,l=oe();return(r,m)=>(i(),C(ne,ie(s(l),{icon:b.icon,"accessible-label":b.label,tone:b.tone,variant:b.variant,size:b.size,loading:b.loading,disabled:b.disabled,onClick:m[0]||(m[0]=o=>g("click",o)),onFocus:m[1]||(m[1]=o=>g("focus",o)),onBlur:m[2]||(m[2]=o=>g("blur",o)),onKeydown:m[3]||(m[3]=o=>g("keydown",o)),onKeyup:m[4]||(m[4]=o=>g("keyup",o))}),null,16,["icon","accessible-label","tone","variant","size","loading","disabled"]))}}),Pe={class:"mb-3 flex items-center gap-2 text-sm font-semibold text-gray-900 dark:text-white"},Ve={class:"rounded-lg border border-gray-200 bg-gray-50 p-4 dark:border-gray-700 dark:bg-gray-800/50"},Ae={class:"flex items-center justify-between"},Ue={class:"flex-1 pr-4"},Be={class:"text-sm font-medium text-gray-900 dark:text-white"},Ie={class:"text-xs text-gray-500 dark:text-gray-400"},Le={class:"w-64"},ze={key:0,class:"mt-4 space-y-3"},Me={class:"mb-1.5 block text-xs font-medium text-gray-700 dark:text-gray-300"},Ee={key:0,class:"mt-1 text-xs text-red-500"},Oe={key:1,class:"mt-1 text-xs text-gray-400"},De={class:"flex items-center gap-3"},je={key:0,class:"flex items-center gap-1.5"},Re=R({__name:"NetworkSettingsSection",setup(b){const{t}=G(),g=T("system"),l=T(""),r=T(""),m=T(!1),o=T(!1),n=T(null),x=A(()=>[{label:t("settings.basic.network.modeOff"),value:"off"},{label:t("settings.basic.network.modeSystem"),value:"system"},{label:t("settings.basic.network.modeManual"),value:"manual"}]);async function w(){try{const a=await window.networkApi.getProxyConfig();g.value=a.mode||"system",l.value=a.url||""}catch(a){console.error("获取代理配置失败:",a)}}function S(a){if(!a)return r.value="",!0;try{const k=new URL(a);return["http:","https:"].includes(k.protocol)?(r.value="",!0):(r.value=t("settings.basic.network.onlyHttpSupported"),!1)}catch{return r.value=t("settings.basic.network.invalidProxyUrl"),!1}}async function $(){if(n.value=null,g.value==="manual"&&!l.value.trim()){r.value=t("settings.basic.network.enterProxyFirst");return}if(!(g.value==="manual"&&!S(l.value))){m.value=!0;try{const a=await window.networkApi.saveProxyConfig({mode:g.value,url:l.value.trim()});a.success||(r.value=a.error||t("settings.basic.network.saveFailed"))}catch(a){console.error("保存代理配置失败:",a),r.value=t("settings.basic.network.saveFailed")}finally{m.value=!1}}}async function B(a){const k=a;g.value=k,n.value=null,r.value="",k!=="manual"&&await $()}function U(){n.value=null,l.value?S(l.value):r.value=""}async function L(){g.value==="manual"&&l.value.trim()&&await $()}async function v(){if(!l.value.trim()){r.value=t("settings.basic.network.enterProxyFirst");return}if(S(l.value)){o.value=!0,n.value=null;try{const a=await window.networkApi.testProxyConnection(l.value.trim());n.value={success:a.success,message:a.success?t("settings.basic.network.connectionSuccess"):a.error||t("settings.basic.network.connectionFailed")}}catch(a){n.value={success:!1,message:t("settings.basic.network.connectionFailed")+": "+(a instanceof Error?a.message:String(a))}}finally{o.value=!1}}}return Z(()=>{w()}),(a,k)=>{const I=Q,z=ee,M=le,_=re;return i(),f("div",null,[e("h3",Pe,[d(I,{name:"i-heroicons-globe-alt",class:"h-4 w-4 text-cyan-500"}),j(" "+u(s(t)("settings.basic.network.title")),1)]),e("div",Ve,[e("div",Ae,[e("div",Ue,[e("p",Be,u(s(t)("settings.basic.network.proxyMode")),1),e("p",Ie,u(s(t)("settings.basic.network.proxyModeDesc")),1)]),e("div",Le,[d(z,{"model-value":g.value,size:"sm",class:"gap-0",items:x.value,"onUpdate:modelValue":B},null,8,["model-value","items"])])]),g.value==="manual"?(i(),f("div",ze,[e("div",null,[e("label",Me,u(s(t)("settings.basic.network.proxyAddress")),1),d(M,{modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=h=>l.value=h),placeholder:s(t)("settings.basic.network.proxyPlaceholder"),color:r.value?"error":"neutral",size:"sm",class:"w-full",onInput:U,onBlur:L},null,8,["modelValue","placeholder","color"]),r.value?(i(),f("p",Ee,u(r.value),1)):(i(),f("p",Oe,u(s(t)("settings.basic.network.proxyHelp")),1))]),e("div",De,[d(_,{loading:o.value,disabled:o.value||!l.value.trim(),color:"neutral",variant:"soft",size:"sm",onClick:v},{default:q(()=>[d(I,{name:"i-heroicons-signal",class:"mr-1 h-4 w-4"}),j(" "+u(o.value?s(t)("settings.basic.network.testing"):s(t)("settings.basic.network.testConnection")),1)]),_:1},8,["loading","disabled"]),n.value?(i(),f("div",je,[d(I,{name:n.value.success?"i-heroicons-check-circle":"i-heroicons-x-circle",class:W(["h-4 w-4",n.value.success?"text-green-500":"text-red-500"])},null,8,["name","class"]),e("span",{class:W(["text-xs",n.value.success?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400"])},u(n.value.message),3)])):V("",!0)])])):V("",!0)])])}}}),Ne={class:"space-y-6 pb-6"},Fe={class:"mb-3 flex items-center gap-2 text-sm font-semibold text-gray-900 dark:text-white"},He={class:"rounded-lg border border-gray-200 bg-gray-50 dark:border-gray-700 dark:bg-gray-800/50"},qe={class:"flex items-center justify-between p-4"},Ge={class:"flex-1 pr-4"},Ke={class:"text-sm font-medium text-gray-900 dark:text-white"},Je={class:"w-72"},We={class:"flex items-center justify-between p-4"},Ye={class:"flex-1 pr-4"},Ze={class:"text-sm font-medium text-gray-900 dark:text-white"},Qe={class:"text-xs text-gray-500 dark:text-gray-400"},Xe={class:"flex items-center justify-between p-4"},et={class:"flex-1 pr-4"},tt={class:"text-sm font-medium text-gray-900 dark:text-white"},st={class:"w-64"},at={class:"mb-3 flex items-center gap-2 text-sm font-semibold text-gray-900 dark:text-white"},ot={class:"rounded-lg border border-gray-200 bg-gray-50 dark:border-gray-700 dark:bg-gray-800/50"},nt={class:"flex items-center justify-between p-4"},it={class:"flex-1 pr-4"},lt={class:"text-sm font-medium text-gray-900 dark:text-white"},rt={class:"w-64"},ct={class:"flex items-center justify-between p-4"},dt={class:"flex-1 pr-4"},ut={class:"text-sm font-medium text-gray-900 dark:text-white"},gt={class:"flex shrink-0 items-center gap-1.5"},mt=["aria-label","aria-pressed","onClick"],bt={key:0,class:"absolute inset-0 flex items-center justify-center text-gray-800/70"},vt={class:"mb-3 flex items-center gap-2 text-sm font-semibold text-gray-900 dark:text-white"},pt={class:"rounded-lg border border-gray-200 bg-gray-50 dark:border-gray-700 dark:bg-gray-800/50"},ft={class:"flex items-center justify-between p-4"},_t={class:"flex-1 pr-4"},ht={class:"text-sm font-medium text-gray-900 dark:text-white"},yt={class:"w-64"},xt={key:0,class:"border-t border-gray-200 dark:border-gray-700"},kt={key:1,class:"flex items-center justify-between p-4"},wt={class:"flex-1 pr-4"},Tt={class:"text-sm font-medium text-gray-900 dark:text-white"},Ct={class:"text-xs text-gray-500 dark:text-gray-400"},St={class:"w-64"},$t=R({__name:"BasicSettingsTab",props:{showToolsPanel:{type:Boolean,default:!0}},setup(b){const{t}=G(),g=X(),l=ce(),{toolsPanelPosition:r}=Y(g),{locale:m,defaultSessionTab:o,insightCardTheme:n,debugMode:x}=Y(l),w=T(!1),S=T(!0),$=F,B=T("background");let U="background";Z(async()=>{{S.value=!1;return}});async function L(y){}async function v(y){if(y!=="background"&&y!=="quit")return;const c=y;B.value=c,(await be().setDesktopCloseBehavior(c)).success?U=c:B.value=U}const a=de({emitAuto:!0,initialValue:"light"}),k=A(()=>[{label:t("settings.basic.appearance.auto"),value:"auto"},{label:t("settings.basic.appearance.light"),value:"light"},{label:t("settings.basic.appearance.dark"),value:"dark"}]);function I(y,c){return{background:`linear-gradient(135deg, color-mix(in srgb, ${y} 35%, white), color-mix(in srgb, ${c} 42%, white))`}}function z(y){n.value=y}const M=A(()=>ve.map(y=>({label:y.nativeName,value:y.code}))),_=A({get:()=>m.value,set:y=>l.setLocale(y)}),h=A(()=>[{label:t("settings.basic.defaultTab.insights"),value:"insights"},{label:t("settings.basic.defaultTab.aiChat"),value:"ai-chat"}]),P=A(()=>[{label:t("settings.basic.toolsPanel.positionHeader"),value:"header"},{label:t("settings.basic.toolsPanel.positionSide"),value:"side"}]),te=A(()=>[{label:t("settings.basic.closeBehavior.background"),value:"background"},{label:t("settings.basic.closeBehavior.quit"),value:"quit"}]);return(y,c)=>{const E=Q,se=we,N=ee;return i(),f("div",Ne,[e("div",null,[e("h3",Fe,[d(E,{name:"i-heroicons-cog-6-tooth",class:"h-4 w-4 text-gray-500"}),j(" "+u(s(t)("settings.basic.general.title")),1)]),e("div",He,[e("div",qe,[e("div",Ge,[e("p",Ke,u(s(t)("settings.basic.language.description")),1)]),e("div",Je,[d(Te,{modelValue:_.value,"onUpdate:modelValue":c[0]||(c[0]=p=>_.value=p),size:"sm",class:"gap-0",items:M.value},null,8,["modelValue","items"])])]),s(F)?(i(),f(K,{key:0},[c[6]||(c[6]=e("div",{class:"border-t border-gray-200 dark:border-gray-700"},null,-1)),e("div",We,[e("div",Ye,[e("p",Ze,u(s(t)("settings.basic.autoLaunch.openAtLogin")),1),e("p",Qe,u(S.value?s(t)("settings.basic.autoLaunch.openAtLoginDesc"):s(t)("settings.basic.autoLaunch.devModeHint")),1)]),d(se,{modelValue:w.value,"onUpdate:modelValue":[c[1]||(c[1]=p=>w.value=p),L],disabled:!S.value},null,8,["modelValue","disabled"])]),s($)?(i(),f(K,{key:0},[c[5]||(c[5]=e("div",{class:"border-t border-gray-200 dark:border-gray-700"},null,-1)),e("div",Xe,[e("div",et,[e("p",tt,u(s(t)("settings.basic.closeBehavior.label")),1)]),e("div",st,[d(N,{"model-value":B.value,size:"sm",class:"gap-0",items:te.value,"onUpdate:modelValue":v},null,8,["model-value","items"])])])],64)):V("",!0)],64)):V("",!0)])]),e("div",null,[e("h3",at,[d(E,{name:"i-heroicons-paint-brush",class:"h-4 w-4 text-pink-500"}),j(" "+u(s(t)("settings.basic.appearance.title")),1)]),e("div",ot,[e("div",nt,[e("div",it,[e("p",lt,u(s(t)("settings.basic.appearance.themeMode")),1)]),e("div",rt,[d(N,{modelValue:s(a),"onUpdate:modelValue":c[2]||(c[2]=p=>H(a)?a.value=p:null),size:"sm",class:"gap-0",items:k.value},null,8,["modelValue","items"])])]),c[7]||(c[7]=e("div",{class:"border-t border-gray-200 dark:border-gray-700"},null,-1)),e("div",ct,[e("div",dt,[e("p",ut,u(s(t)("settings.basic.appearance.insightCardTheme")),1)]),e("div",gt,[(i(!0),f(K,null,ue(s(me),(p,ae)=>(i(),f("button",{key:p.id,type:"button",class:"group flex h-9 w-9 items-center justify-center rounded-full outline-none transition-colors hover:bg-gray-200/60 focus-visible:ring-2 focus-visible:ring-primary-500/40 dark:hover:bg-gray-700/70","aria-label":s(t)("settings.basic.appearance.insightCardThemeOption",{index:ae+1}),"aria-pressed":s(n)===p.id,onClick:Rt=>z(p.id)},[e("span",{class:W(["relative block h-6 w-6 overflow-hidden rounded-full shadow-sm ring-1 transition-all",s(n)===p.id?"ring-2 ring-primary-500 ring-offset-2 ring-offset-gray-50 dark:ring-primary-400 dark:ring-offset-gray-800":"ring-black/5 group-hover:ring-black/10 dark:ring-white/10 dark:group-hover:ring-white/20"]),style:ge(I(p.startColor,p.endColor))},[s(n)===p.id?(i(),f("span",bt,[d(E,{name:"i-heroicons-check-20-solid",class:"h-3.5 w-3.5"})])):V("",!0)],6)],8,mt))),128))])])])]),e("div",null,[e("h3",vt,[d(E,{name:"i-heroicons-adjustments-horizontal",class:"h-4 w-4 text-purple-500"}),j(" "+u(s(t)("settings.basic.preferences.title")),1)]),e("div",pt,[e("div",ft,[e("div",_t,[e("p",ht,u(s(t)("settings.basic.defaultTab.description")),1)]),e("div",yt,[d(N,{modelValue:s(o),"onUpdate:modelValue":c[3]||(c[3]=p=>H(o)?o.value=p:null),size:"sm",class:"gap-0",items:h.value},null,8,["modelValue","items"])])]),b.showToolsPanel&&s(x)?(i(),f("div",xt)):V("",!0),b.showToolsPanel&&s(x)?(i(),f("div",kt,[e("div",wt,[e("p",Tt,u(s(t)("settings.basic.toolsPanel.positionLabel")),1),e("p",Ct,u(s(t)("settings.basic.toolsPanel.positionDesc")),1)]),e("div",St,[d(N,{modelValue:s(r),"onUpdate:modelValue":c[4]||(c[4]=p=>H(r)?r.value=p:null),size:"sm",class:"gap-0",items:P.value},null,8,["modelValue","items"])])])):V("",!0)])]),s(F)?(i(),C(Re,{key:0})):V("",!0)])}}}),Pt={class:"flex h-[100dvh] min-h-0 flex-col overflow-hidden sm:h-[85vh] sm:min-h-[650px]"},Vt={class:"shrink-0 border-b border-gray-200 px-4 pt-4 sm:px-6 sm:pt-5 dark:border-gray-800"},At={class:"flex items-center justify-between"},Ut={class:"flex items-center gap-3"},Bt={class:"flex h-8 w-8 items-center justify-center rounded-lg bg-primary-600 dark:bg-primary-500"},It={class:"text-lg font-semibold text-gray-900 dark:text-white"},Lt={class:"relative flex-1"},zt={class:"absolute inset-0 overflow-y-auto p-4 sm:p-6"},Mt=R({__name:"SettingsDialogShell",props:{open:{type:Boolean},activeTab:{},tabs:{}},emits:["update:open","update:activeTab"],setup(b,{emit:t}){const g=b,l=t,{t:r}=G(),m=A({get:()=>g.activeTab,set:o=>l("update:activeTab",o)});return(o,n)=>{const x=pe;return i(),C(x,{open:b.open,ui:{content:"w-full sm:max-w-[900px] z-[100]",overlay:"z-[99] bg-gray-200/80 backdrop-blur-sm dark:bg-page-dark/80"},"onUpdate:open":n[2]||(n[2]=w=>l("update:open",w))},{content:q(()=>[e("div",Pt,[e("div",Vt,[e("div",At,[e("div",Ut,[e("div",Bt,[d(s(fe),{name:"i-heroicons-cog-6-tooth",size:"md",class:"text-white"})]),e("h2",It,u(s(r)("settings.title")),1)]),d(s($e),{icon:"i-heroicons-x-mark",label:s(r)("common.close"),onClick:n[0]||(n[0]=w=>l("update:open",!1))},null,8,["label"])]),d(s(Se),{modelValue:m.value,"onUpdate:modelValue":n[1]||(n[1]=w=>m.value=w),class:"mt-4 pb-3",items:b.tabs},null,8,["modelValue","items"])]),e("div",Lt,[e("div",zt,[_e(o.$slots,"default")])])])]),_:3},8,["open"])}}});function Et(b,t){return he(b,t,{immediate:!0})}const Ot={key:"settings",class:"h-full"},Dt={key:"about",class:"h-full overflow-y-auto"},jt=R({__name:"SettingsModal",setup(b){const t=O(()=>D(()=>import("./AISettingsTab-vvjijrc5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]))),g=null,l=O(()=>D(()=>import("./BatchManageTab-1WnEqqpB.js"),__vite__mapDeps([17,1,2,3,16,9,11,5,14,18,19]))),r=O(()=>D(()=>import("./StorageTab-B0ebN0f8.js"),__vite__mapDeps([20,1,2,3,4,5,21]))),m=O(()=>D(()=>import("./AboutTab-CxI8zJNz.js"),__vite__mapDeps([22,13,1,2,3,14,9,11,18]))),o=O(()=>D(()=>import("./ApiSettingsTab-CK7U6dVA.js"),__vite__mapDeps([23,1,2,3,13,14,9,11,24,16,5,4]))),n=null,{t:x}=G(),w=Ce(),S=X(),{showSettings:$,settingsTab:B,settingsSubTab:U}=Y(S),L=A(()=>[{id:"settings",label:x("settings.tabs.basic"),icon:"i-heroicons-cog-6-tooth"},{id:"ai",label:x("settings.tabs.ai"),icon:"i-heroicons-sparkles"},{id:"api",label:x("settings.tabs.api"),icon:"i-heroicons-server-stack"},{id:"data",label:x("settings.tabs.dataManage"),icon:"i-heroicons-rectangle-stack"},{id:"storage",label:x("settings.tabs.storage"),icon:"i-heroicons-folder-open"},{id:"about",label:x("settings.tabs.about"),icon:"i-heroicons-information-circle"}]),v=T("settings"),a=T({});function k(_,h){a.value[_]=h}function I(){w.notifyAIConfigChanged()}function z(_){v.value=_,J(()=>{a.value[_]?.refresh?.()})}function M(_){const h=a.value[v.value];h?.scrollToSection&&h.scrollToSection(_)}return Et($,async _=>{if(_){const h=B.value||"settings";v.value=L.value.some(P=>P.id===h)?h:"settings",U.value&&(await J(),setTimeout(()=>M(U.value),100)),J(()=>{a.value[v.value]?.refresh?.()})}}),(_,h)=>(i(),C(Mt,{open:s($),"onUpdate:open":h[0]||(h[0]=P=>H($)?$.value=P:null),"active-tab":v.value,tabs:L.value,"onUpdate:activeTab":z},{default:q(()=>[d(ye,{name:"tab-slide",mode:"out-in"},{default:q(()=>[v.value==="settings"?(i(),f("div",Ot,[d($t)])):v.value==="ai"?(i(),C(s(t),{key:"ai",ref:P=>k("ai",P),onConfigChanged:I},null,512)):s(xe)&&v.value==="navigation"?(i(),C(s(g),{key:"navigation"})):v.value==="data"?(i(),C(s(l),{key:"data","focus-owner-issues":s(U)==="missing-owner"},null,8,["focus-owner-issues"])):v.value==="api"?(i(),C(s(o),{key:"api"})):v.value==="storage"?(i(),C(s(r),{key:"storage",ref:P=>k("storage",P)},null,512)):s(F)&&v.value==="security"?(i(),C(s(n),{key:"security"})):v.value==="about"?(i(),f("div",Dt,[d(s(m))])):V("",!0)]),_:1})]),_:1},8,["open","active-tab","tabs"]))}}),Xt=ke(jt,[["__scopeId","data-v-0c35b6a3"]]);export{Xt as default};
@@ -0,0 +1 @@
1
+ import{a as Z,a3 as ye,x as be,o as d,h as _,i as e,z as i,a4 as ke,a6 as f,p as s,e as a,c as S,w as g,l as m,a5 as De,F as q,j as X,ap as we,aB as y,a7 as Ce,r as l,f as G}from"./index-sWxuTsa7.js";import{a as Le}from"./Tabs-D1UiZNaZ.js";import{useCacheService as L}from"./service-D29Vftq9.js";import"./vendor-snapdom--nZvo8Sg.js";import"./RovingFocusItem-DC_06OmN.js";const J="chatlab_ignore_migrate_default_hint";function Me(x){const h=x.getItem(J);if(!h)return null;try{const t=JSON.parse(h);return!t.ignoredForDataDir||!t.ignoredAt?null:{ignoredForDataDir:t.ignoredForDataDir,ignoredAt:t.ignoredAt}}catch{return null}}function ze(x,h){return Me(x)?.ignoredForDataDir===h}function Se(x,h){x.setItem(J,JSON.stringify({ignoredForDataDir:h,ignoredAt:new Date().toISOString()}))}function Ie(x){x.removeItem(J)}const Be={class:"space-y-6"},Te={class:"flex items-center justify-between"},je={class:"flex items-center gap-2 text-sm font-semibold text-gray-900 dark:text-white"},Ae={class:"mt-1 text-xs text-gray-500 dark:text-gray-400"},Ee={class:"flex items-center gap-2"},$e={class:"rounded-lg bg-gray-100 px-3 py-1.5 dark:bg-gray-800"},Fe={class:"text-xs text-gray-500 dark:text-gray-400"},Ne={class:"text-sm font-semibold text-gray-900 dark:text-white"},Re={key:0,class:"rounded-lg border border-gray-200 border-l-2 border-l-primary-400 bg-gray-50 px-3 py-3 dark:border-gray-700 dark:border-l-primary-500 dark:bg-gray-800/50"},Ue={class:"flex items-start gap-3"},He={class:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-primary-100 text-primary-600 dark:bg-primary-900/50 dark:text-primary-300"},Ve={class:"min-w-0 flex-1"},Oe={class:"text-sm font-semibold text-gray-900 dark:text-white"},Pe={class:"mt-0.5 text-xs leading-5 text-gray-600 dark:text-gray-400"},qe={class:"mt-2.5 divide-y divide-gray-200 pl-11 dark:divide-gray-700"},Ge={class:"min-w-0 flex-1"},Je=["title"],Ke={class:"mt-0.5 text-xs text-gray-400"},We={class:"flex shrink-0 items-center gap-1"},Qe={key:1,class:"flex items-center justify-center py-8"},Ye={class:"ml-2 text-sm text-gray-500"},Xe={key:2,class:"rounded-lg border border-gray-200 bg-gray-50 dark:border-gray-700 dark:bg-gray-800/50"},Ze={class:"divide-y divide-gray-200 dark:divide-gray-700"},et={class:"flex min-w-0 items-center gap-3"},tt={class:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-gray-200 text-gray-500 dark:bg-gray-700 dark:text-gray-400"},at={class:"flex min-w-0 items-center gap-2"},st={class:"w-32 shrink-0 truncate text-sm font-medium text-gray-900 dark:text-white"},ot={class:"flex min-w-0 items-center gap-1.5 text-xs text-gray-500 dark:text-gray-400"},nt={class:"truncate"},rt={class:"ml-4 flex shrink-0 items-center gap-3"},it={class:"flex items-center gap-1.5 text-xs text-gray-400 tabular-nums"},lt={class:"w-20 text-right"},ct={class:"w-16 text-right"},dt={class:"flex w-16 shrink-0 items-center justify-end gap-1"},ut={class:"rounded-lg border border-gray-200 bg-gray-50 p-4 dark:border-gray-700 dark:bg-gray-800/50"},gt={class:"flex items-start justify-between gap-3"},ft={class:"min-w-0 flex-1"},vt={class:"text-sm font-medium text-gray-900 dark:text-white"},_t={class:"mt-0.5 text-xs text-gray-500 dark:text-gray-400"},mt={class:"mt-1 text-xs text-gray-500 dark:text-gray-400"},ht={class:"shrink-0"},pt={class:"mt-3 flex items-center gap-2"},xt={key:0,class:"mt-1 text-xs text-gray-500 dark:text-gray-400"},yt={key:1,class:"mt-3 flex items-center justify-between rounded-lg border border-blue-200 bg-blue-50 p-3 dark:border-blue-800/50 dark:bg-blue-900/20"},bt={class:"text-xs font-medium text-blue-700 dark:text-blue-300"},kt={class:"mt-0.5 font-mono text-xs text-blue-600 dark:text-blue-400"},Dt={class:"flex shrink-0 items-center gap-2"},wt={class:"mt-2 text-xs text-amber-600 dark:text-amber-400"},Ct={key:2,class:"mt-1 text-xs text-red-500"},Lt={class:"p-5"},Mt={class:"mb-4 flex items-center gap-3"},zt={class:"flex h-10 w-10 items-center justify-center rounded-full bg-amber-100 dark:bg-amber-900/30"},St={class:"text-lg font-semibold text-gray-900 dark:text-white"},It={class:"space-y-3 text-sm text-gray-600 dark:text-gray-400"},Bt={class:"rounded-lg bg-gray-100 p-3 dark:bg-gray-800"},Tt={class:"text-xs text-gray-500 dark:text-gray-400"},jt={class:"mt-1 font-mono text-sm text-gray-900 dark:text-white"},At={class:"rounded-lg border border-amber-200 bg-amber-50 p-3 dark:border-amber-800/50 dark:bg-amber-900/20"},Et={class:"text-xs text-amber-700 dark:text-amber-400"},$t={class:"mt-5 flex justify-end gap-2"},Ft={class:"p-5"},Nt={class:"flex items-start gap-3"},Rt={class:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-red-50 text-red-600 dark:bg-red-950/40 dark:text-red-400"},Ut={class:"min-w-0 flex-1"},Ht={class:"text-base font-semibold text-gray-900 dark:text-white"},Vt={class:"mt-1 text-sm leading-6 text-gray-600 dark:text-gray-400"},Ot={key:0,class:"mt-4 rounded-lg bg-gray-50 px-3 py-2.5 dark:bg-gray-800/60"},Pt={class:"break-all font-mono text-xs text-gray-700 dark:text-gray-300"},qt={class:"mt-5 flex justify-end gap-2"},Gt={class:"p-5"},Jt={class:"mb-4 flex items-center gap-3"},Kt={class:"flex h-10 w-10 items-center justify-center rounded-full bg-green-100 dark:bg-green-900/30"},Wt={class:"text-lg font-semibold text-gray-900 dark:text-white"},Qt={class:"text-sm text-gray-600 dark:text-gray-400"},Yt={class:"mt-5 flex justify-end"},Xt=Z({__name:"StorageManageSection",setup(x,{expose:h}){const{t}=ye(),b=l(null),I=l(!1),F=l(null),k=l(""),B=l(""),M=l(""),K=l("settings.storage.dataLocation.managedDescription"),W=l(!1),Q=l(!1),T=l(!1),p=l(!1),v=l(null),j=l(!1),R=l([]),A=l(null),w=l(null),E=l(!1),D=l(!1),C=l(null),z=l(!1),N=l(!1);function U(o){if(o===0)return"0 B";const n=["B","KB","MB","GB"],c=Math.floor(Math.log(o)/Math.log(1024));return`${(o/Math.pow(1024,c)).toFixed(c>0?1:0)} ${n[c]}`}const ee=G(()=>b.value?U(b.value.totalSize):"0 B");async function $(){I.value=!0;try{b.value=await L().getInfo()}catch(o){console.error("获取缓存信息失败:",o)}finally{I.value=!1}}const Y=G(()=>T.value||!!k.value),te=G(()=>Y.value&&k.value&&M.value&&k.value!==M.value&&W.value&&!j.value);function ae(){if(!k.value||!M.value){j.value=!1;return}try{j.value=ze(localStorage,k.value)}catch{j.value=!1}}async function H(){try{const o=await L().getDataDir();k.value=o.path,B.value=o.pendingMigration?.to||o.path,M.value=o.defaultPath||"",K.value=o.managedDescription||"settings.storage.dataLocation.managedDescription",W.value=!!o.hasLegacyDataAtDefaultDir,Q.value=o.isCustom,T.value=y||!!o.canSetDataDir,R.value=o.pendingCleanups??[],ae()}catch(o){console.error("获取数据目录失败:",o)}}async function se(o){F.value=o;try{const n=await L().clear(o);n.success?await $():console.error("清理缓存失败:",n.error)}catch(n){console.error("清理缓存失败:",n)}finally{F.value=null}}async function V(o){try{await L().openDir(o)}catch(n){console.error("打开目录失败:",n)}}async function oe(){await V("base")}async function ne(){await V("userData")}async function re(o){try{await L().openDataDirCleanup(o)}catch(n){v.value=n instanceof Error?n.message:String(n)}}function ie(o){A.value=o,E.value=!0}async function le(){const o=A.value;if(o){w.value=o.id;try{const n=await L().deleteDataDirCleanup(o.id);if(!n.success){v.value=n.error||t("settings.storage.dataLocation.cleanupDeleteFailed");return}E.value=!1,A.value=null,await Promise.all([H(),$()])}catch(n){v.value=n instanceof Error?n.message:String(n)}finally{w.value=null}}}async function ce(){v.value=null;try{const o=await window.cacheApi.selectDataDir();if(!o.success||!o.path){o.error==="INSTALL_DIR_FORBIDDEN"&&(v.value=t("settings.storage.dataLocation.installDirForbidden"));return}C.value=o.path,z.value=!0,D.value=!0}catch(o){v.value=o instanceof Error?o.message:String(o)}}async function de(){v.value=null,C.value=null,z.value=!0,D.value=!0}function ue(){v.value=null,C.value=null,z.value=!0,D.value=!0}function ge(){v.value=null;const o=B.value.trim();if(!o){v.value=t("settings.storage.dataLocation.pathRequired");return}C.value=o,z.value=!0,D.value=!0}function fe(){if(!(!k.value||!M.value)){try{Se(localStorage,k.value)}catch{}j.value=!0}}async function ve(){D.value=!1,await me(C.value,z.value)}function _e(){D.value=!1,C.value=null,z.value=!1}async function me(o,n){p.value=!0;try{const c=y?await window.cacheApi.setDataDir(o,n):await L().setDataDir(o,n);if(!c.success){v.value=c.error||"设置失败";return}if(c.requiresRelaunch!==!1)try{Ie(localStorage)}catch{}if(c.requiresRelaunch===!1){await H();return}N.value=!0}catch(c){v.value=c instanceof Error?c.message:String(c)}finally{p.value=!1}}async function he(){N.value=!1}return be(()=>{$(),H()}),h({refresh:$}),(o,n)=>{const c=ke,u=De,pe=Le,xe=we,O=Ce;return d(),_("div",Be,[e("div",Te,[e("div",null,[e("h3",je,[i(c,{name:"i-heroicons-folder-open",class:"h-4 w-4 text-amber-500"}),f(" "+s(a(t)("settings.storage.title")),1)]),e("p",Ae,s(a(t)("settings.storage.description")),1)]),e("div",Ee,[b.value?.baseDir?(d(),S(u,{key:0,icon:"i-heroicons-folder-open",variant:"ghost",size:"sm",onClick:oe},{default:g(()=>[f(s(a(t)("settings.storage.openRootDir")),1)]),_:1})):m("",!0),e("div",$e,[e("span",Fe,s(a(t)("settings.storage.totalUsage")),1),e("span",Ne,s(ee.value),1)]),i(u,{icon:"i-heroicons-arrow-path",variant:"ghost",size:"sm",loading:I.value,onClick:$},null,8,["loading"])])]),R.value.length>0?(d(),_("div",Re,[e("div",Ue,[e("div",He,[i(c,{name:"i-heroicons-archive-box",class:"h-4 w-4"})]),e("div",Ve,[e("p",Oe,s(a(t)("settings.storage.dataLocation.cleanupTitle")),1),e("p",Pe,s(a(t)("settings.storage.dataLocation.cleanupDescription")),1)])]),e("div",qe,[(d(!0),_(q,null,X(R.value,r=>(d(),_("div",{key:r.id,class:"flex items-center gap-3 py-2.5 first:pt-0 last:pb-0"},[e("div",Ge,[e("p",{class:"truncate font-mono text-xs text-gray-700 dark:text-gray-300",title:r.sourceDir},s(r.sourceDir),9,Je),e("p",Ke,s(r.exists?U(r.size):a(t)("settings.storage.notExist")),1)]),e("div",We,[i(u,{icon:"i-heroicons-folder-open",variant:"ghost",size:"xs",disabled:!r.exists||w.value!==null,onClick:P=>re(r.id)},{default:g(()=>[f(s(a(t)("settings.storage.dataLocation.open")),1)]),_:1},8,["disabled","onClick"]),i(u,{icon:"i-heroicons-trash",color:"red",variant:"soft",size:"xs",loading:w.value===r.id,disabled:w.value!==null,onClick:P=>ie(r)},{default:g(()=>[f(s(a(t)("settings.storage.dataLocation.cleanupDeleteAction")),1)]),_:1},8,["loading","disabled","onClick"])])]))),128))])])):m("",!0),I.value&&!b.value?(d(),_("div",Qe,[i(c,{name:"i-heroicons-arrow-path",class:"h-5 w-5 animate-spin text-gray-400"}),e("span",Ye,s(a(t)("settings.storage.loading")),1)])):b.value?(d(),_("div",Xe,[e("div",Ze,[(d(!0),_(q,null,X(b.value.directories,r=>(d(),_("div",{key:r.id,class:"group flex items-center justify-between px-4 py-2.5 transition-colors hover:bg-gray-100/50 dark:hover:bg-gray-700/30"},[e("div",et,[e("div",tt,[i(c,{name:r.icon,class:"h-3.5 w-3.5"},null,8,["name"])]),e("div",at,[e("span",st,s(a(t)(r.name)),1),e("span",ot,[e("span",nt,s(a(t)(r.description)),1),r.exists?m("",!0):(d(),S(pe,{key:0,color:"neutral",variant:"subtle",size:"xs"},{default:g(()=>[f(s(a(t)("settings.storage.notExist")),1)]),_:1}))])])]),e("div",rt,[e("div",it,[e("span",lt,s(r.fileCount)+" "+s(a(t)("settings.storage.files")),1),n[5]||(n[5]=e("span",null,"·",-1)),e("span",ct,s(U(r.size)),1)]),e("div",dt,[i(u,{icon:"i-heroicons-folder-open",color:"neutral",variant:"ghost",size:"xs",class:"hover:bg-gray-200/80 dark:hover:bg-gray-700","aria-label":a(t)("settings.storage.open"),title:a(t)("settings.storage.open"),onClick:P=>V(r.id)},null,8,["aria-label","title","onClick"]),r.canClear&&r.size>0?(d(),S(u,{key:0,icon:"i-heroicons-trash",color:"error",variant:"ghost",size:"xs",loading:F.value===r.id,disabled:F.value!==null,"aria-label":a(t)("settings.storage.clear"),title:a(t)("settings.storage.clear"),onClick:P=>se(r.id)},null,8,["loading","disabled","aria-label","title","onClick"])):m("",!0)])])]))),128))])])):m("",!0),Y.value?(d(),_(q,{key:3},[e("div",ut,[e("div",gt,[e("div",ft,[e("p",vt,s(a(t)("settings.storage.dataLocation.title")),1),e("p",_t,s(a(t)("settings.storage.dataLocation.description")),1),e("p",mt,s(a(t)(K.value)),1)]),e("div",ht,[i(u,{icon:"i-heroicons-folder-open",variant:"ghost",size:"xs",onClick:ne},{default:g(()=>[f(s(a(t)("settings.storage.dataLocation.open")),1)]),_:1})])]),e("div",pt,[i(xe,{modelValue:B.value,"onUpdate:modelValue":n[0]||(n[0]=r=>B.value=r),readonly:a(y)||!T.value,size:"sm",class:"min-w-0 flex-1"},null,8,["modelValue","readonly"]),a(y)?(d(),S(u,{key:0,size:"sm",variant:"soft",loading:p.value,disabled:p.value,onClick:ce},{default:g(()=>[f(s(a(t)("settings.storage.dataLocation.choose")),1)]),_:1},8,["loading","disabled"])):T.value?(d(),S(u,{key:1,size:"sm",variant:"soft",loading:p.value,disabled:p.value||!B.value.trim(),onClick:ge},{default:g(()=>[f(s(a(t)("settings.storage.dataLocation.applyPath")),1)]),_:1},8,["loading","disabled"])):m("",!0),Q.value?(d(),S(u,{key:2,size:"sm",variant:"ghost",disabled:p.value,onClick:de},{default:g(()=>[f(s(a(t)("settings.storage.dataLocation.reset")),1)]),_:1},8,["disabled"])):m("",!0)]),!a(y)&&T.value?(d(),_("p",xt,s(a(t)("settings.storage.dataLocation.serverPathHint")),1)):m("",!0),te.value?(d(),_("div",yt,[e("div",null,[e("p",bt,s(a(t)("settings.storage.dataLocation.migrateHint")),1),e("p",kt,s(M.value),1)]),e("div",Dt,[i(u,{size:"sm",variant:"ghost",disabled:p.value,onClick:fe},{default:g(()=>[f(s(a(t)("settings.storage.dataLocation.ignoreMigrateHint")),1)]),_:1},8,["disabled"]),i(u,{size:"sm",color:"primary",variant:"soft",loading:p.value,disabled:p.value,onClick:ue},{default:g(()=>[f(s(a(t)("settings.storage.dataLocation.migrateAction")),1)]),_:1},8,["loading","disabled"])])])):m("",!0),e("p",wt,s(a(y)?a(t)("settings.storage.dataLocation.restartTip"):a(t)("settings.storage.dataLocation.cliRestartTip")),1),v.value?(d(),_("p",Ct,s(v.value),1)):m("",!0)]),i(O,{open:D.value,"onUpdate:open":n[1]||(n[1]=r=>D.value=r),ui:{content:"z-[101]",overlay:"z-[100]"}},{content:g(()=>[e("div",Lt,[e("div",Mt,[e("div",zt,[i(c,{name:"i-heroicons-exclamation-triangle",class:"h-5 w-5 text-amber-600 dark:text-amber-400"})]),e("h3",St,s(a(t)("settings.storage.dataLocation.confirmTitle")),1)]),e("div",It,[e("p",null,s(a(t)("settings.storage.dataLocation.confirmMessage")),1),e("div",Bt,[e("p",Tt,s(a(t)("settings.storage.dataLocation.newPath")),1),e("p",jt,s(C.value||a(t)("settings.storage.dataLocation.defaultPath")),1)]),e("div",At,[e("p",Et,s(a(y)?a(t)("settings.storage.dataLocation.confirmWarning"):a(t)("settings.storage.dataLocation.cliConfirmWarning")),1)])]),e("div",$t,[i(u,{variant:"ghost",onClick:_e},{default:g(()=>[f(s(a(t)("settings.storage.dataLocation.cancel")),1)]),_:1}),i(u,{color:"primary",onClick:ve},{default:g(()=>[f(s(a(t)("settings.storage.dataLocation.confirm")),1)]),_:1})])])]),_:1},8,["open"]),i(O,{open:E.value,"onUpdate:open":n[3]||(n[3]=r=>E.value=r),ui:{content:"sm:max-w-[500px] z-[103]",overlay:"z-[102]"}},{content:g(()=>[e("div",Ft,[e("div",Nt,[e("div",Rt,[i(c,{name:"i-heroicons-trash",class:"h-5 w-5"})]),e("div",Ut,[e("h3",Ht,s(a(t)("settings.storage.dataLocation.cleanupDeleteConfirmTitle")),1),e("p",Vt,s(a(t)("settings.storage.dataLocation.cleanupDeleteConfirmDescription")),1)])]),A.value?(d(),_("div",Ot,[e("p",Pt,s(A.value.sourceDir),1)])):m("",!0),e("div",qt,[i(u,{variant:"ghost",disabled:w.value!==null,onClick:n[2]||(n[2]=r=>E.value=!1)},{default:g(()=>[f(s(a(t)("common.cancel")),1)]),_:1},8,["disabled"]),i(u,{color:"red",loading:w.value!==null,onClick:le},{default:g(()=>[f(s(a(t)("settings.storage.dataLocation.cleanupDeleteConfirmAction")),1)]),_:1},8,["loading"])])])]),_:1},8,["open"]),i(O,{open:N.value,"onUpdate:open":n[4]||(n[4]=r=>N.value=r),dismissible:!1,ui:{content:"z-[101]",overlay:"z-[100]"}},{content:g(()=>[e("div",Gt,[e("div",Jt,[e("div",Kt,[i(c,{name:"i-heroicons-check-circle",class:"h-5 w-5 text-green-600 dark:text-green-400"})]),e("h3",Wt,s(a(t)("settings.storage.dataLocation.migrationQueuedTitle")),1)]),e("p",Qt,s(a(y)?a(t)("settings.storage.dataLocation.migrationSuccessMessage"):a(t)("settings.storage.dataLocation.cliMigrationSuccessMessage")),1),e("div",Yt,[i(u,{color:"primary",onClick:he},{default:g(()=>[f(s(a(y)?a(t)("settings.storage.dataLocation.relaunchNow"):a(t)("settings.storage.dataLocation.acknowledge")),1)]),_:1})])])]),_:1},8,["open"])],64)):m("",!0)])}}}),Zt={class:"h-full overflow-y-auto"},na=Z({__name:"StorageTab",setup(x,{expose:h}){const t=l(null);return h({refresh:()=>t.value?.refresh()}),(b,I)=>(d(),_("div",Zt,[i(Xt,{ref_key:"storageManageRef",ref:t},null,512)]))}});export{na as default};
@@ -0,0 +1 @@
1
+ import{a as $,aM as M,aN as O,u as T,o as r,c as d,w as h,b as y,e,l as p,m as A,aO as U,aP as D,P as S,f as v,aQ as H,aq as Q,ar as G,aR as J,aS as W,aT as X,aU as Y,aV as Z,i as ee,n as o,z as I,a4 as x,h as _,F as ae,a6 as F,p as R,au as te,av as P}from"./index-sWxuTsa7.js";import{L as se}from"./Label-CFAZFBQX.js";import{u as re}from"./useFormControl-DVawP2DO.js";import{V as le}from"./VisuallyHiddenInput-OAJEt_Y5.js";const[ie,oe]=H("SwitchRoot");var ne=$({__name:"SwitchRoot",props:{defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1},id:{type:String,required:!1},value:{type:String,required:!1,default:"on"},trueValue:{type:null,required:!1,default:()=>!0},falseValue:{type:null,required:!1,default:()=>!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue"],setup(m,{emit:c}){const t=m,u=c,{disabled:n}=M(t),a=O(t,"modelValue",u,{defaultValue:t.defaultValue??t.falseValue,passive:t.modelValue===void 0}),i=v(()=>a.value===t.trueValue);function f(){n.value||(a.value=i.value?t.falseValue:t.trueValue)}const{forwardRef:q,currentElement:b}=T(),w=re(b),V=v(()=>t.id&&b.value?document.querySelector(`[for="${t.id}"]`)?.innerText:void 0);return oe({checked:i,toggleCheck:f,disabled:n}),(s,C)=>(r(),d(e(S),A(s.$attrs,{id:s.id,ref:e(q),role:"switch",type:s.as==="button"?"button":void 0,value:s.value,"aria-label":s.$attrs["aria-label"]||V.value,"aria-checked":i.value,"aria-required":s.required,"data-state":i.value?"checked":"unchecked","data-disabled":e(n)?"":void 0,"as-child":s.asChild,as:s.as,disabled:e(n),onClick:f,onKeydown:U(D(f,["prevent"]),["enter"])}),{default:h(()=>[y(s.$slots,"default",{modelValue:e(a),checked:i.value}),e(w)&&s.name?(r(),d(e(le),{key:0,type:"checkbox",name:s.name,disabled:e(n),required:s.required,value:s.value,checked:i.value},null,8,["name","disabled","required","value","checked"])):p("v-if",!0)]),_:3},16,["id","type","value","aria-label","aria-checked","aria-required","data-state","data-disabled","as-child","as","disabled","onKeydown"]))}}),de=ne,ue=$({__name:"SwitchThumb",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(m){const c=ie();return T(),(t,u)=>(r(),d(e(S),{"data-state":e(c).checked.value?"checked":"unchecked","data-disabled":e(c).disabled.value?"":void 0,"as-child":t.asChild,as:t.as},{default:h(()=>[y(t.$slots,"default")]),_:3},8,["data-state","data-disabled","as-child","as"]))}}),ce=ue;const pe={slots:{root:"relative flex items-start",base:["inline-flex items-center shrink-0 rounded-full border-2 border-transparent focus-visible:outline-3 data-[state=unchecked]:bg-accented","transition-[background] duration-200"],container:"flex items-center",thumb:"group pointer-events-none rounded-full bg-default shadow-lg ring-0 transition-transform duration-200 data-[state=unchecked]:translate-x-0 data-[state=unchecked]:rtl:-translate-x-0 flex items-center justify-center",icon:["absolute shrink-0 group-data-[state=unchecked]:text-dimmed opacity-0 size-10/12","transition-[color,opacity] duration-200"],wrapper:"ms-2",label:"block font-medium text-default",description:"text-muted"},variants:{color:{primary:{base:"data-[state=checked]:bg-primary outline-primary/25",icon:"group-data-[state=checked]:text-primary"},secondary:{base:"data-[state=checked]:bg-secondary outline-secondary/25",icon:"group-data-[state=checked]:text-secondary"},success:{base:"data-[state=checked]:bg-success outline-success/25",icon:"group-data-[state=checked]:text-success"},info:{base:"data-[state=checked]:bg-info outline-info/25",icon:"group-data-[state=checked]:text-info"},warning:{base:"data-[state=checked]:bg-warning outline-warning/25",icon:"group-data-[state=checked]:text-warning"},error:{base:"data-[state=checked]:bg-error outline-error/25",icon:"group-data-[state=checked]:text-error"},neutral:{base:"data-[state=checked]:bg-inverted outline-inverted/25",icon:"group-data-[state=checked]:text-highlighted"}},size:{xs:{base:"w-7",container:"h-4",thumb:"size-3 data-[state=checked]:translate-x-3 data-[state=checked]:rtl:-translate-x-3",wrapper:"text-xs"},sm:{base:"w-8",container:"h-4",thumb:"size-3.5 data-[state=checked]:translate-x-3.5 data-[state=checked]:rtl:-translate-x-3.5",wrapper:"text-xs"},md:{base:"w-9",container:"h-5",thumb:"size-4 data-[state=checked]:translate-x-4 data-[state=checked]:rtl:-translate-x-4",wrapper:"text-sm"},lg:{base:"w-10",container:"h-5",thumb:"size-4.5 data-[state=checked]:translate-x-4.5 data-[state=checked]:rtl:-translate-x-4.5",wrapper:"text-sm"},xl:{base:"w-11",container:"h-6",thumb:"size-5 data-[state=checked]:translate-x-5 data-[state=checked]:rtl:-translate-x-5",wrapper:"text-base"}},checked:{true:{icon:"group-data-[state=checked]:opacity-100"}},unchecked:{true:{icon:"group-data-[state=unchecked]:opacity-100"}},loading:{true:{icon:"animate-spin"}},highlight:{true:""},required:{true:{label:"after:content-['*'] after:ms-0.5 after:text-error"}},disabled:{true:{root:"opacity-75",base:"cursor-not-allowed",label:"cursor-not-allowed",description:"cursor-not-allowed"}}},compoundVariants:[{color:"primary",highlight:!0,class:{base:"ring ring-primary"}},{color:"secondary",highlight:!0,class:{base:"ring ring-secondary"}},{color:"success",highlight:!0,class:{base:"ring ring-success"}},{color:"info",highlight:!0,class:{base:"ring ring-info"}},{color:"warning",highlight:!0,class:{base:"ring ring-warning"}},{color:"error",highlight:!0,class:{base:"ring ring-error"}},{color:"neutral",highlight:!0,class:{base:"ring ring-inverted"}}],defaultVariants:{color:"primary",size:"md"}},be=Object.assign({inheritAttrs:!1},{__name:"Switch",props:{as:{type:null,required:!1},color:{type:null,required:!1},size:{type:null,required:!1},highlight:{type:Boolean,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},checkedIcon:{type:null,required:!1},uncheckedIcon:{type:null,required:!1},label:{type:String,required:!1},description:{type:String,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},disabled:{type:Boolean,required:!1},id:{type:String,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},value:{type:String,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1},trueValue:{type:null,required:!1},falseValue:{type:null,required:!1}},emits:["change","update:modelValue"],setup(m,{emit:c}){const t=m,u=Q(),n=c,a=G("switch",t),i=te(),f=J(W(a,"required","value","defaultValue","modelValue","trueValue","falseValue"),n),{id:q,emitFormChange:b,emitFormInput:w,size:V,color:s,highlight:C,name:N,disabled:z,ariaAttrs:j}=X(t),B=q.value??Y(),E=Z(),K=v(()=>{const{"data-state":g,...k}=E;return k}),l=v(()=>P({extend:P(pe),...i.ui?.switch||{}})({size:V.value??a.size,color:s.value??a.color,highlight:C.value??a.highlight,required:a.required,loading:a.loading,disabled:z.value||a.loading}));function L(g){const k=new Event("change",{target:{value:g}});n("change",k),b(),w()}return(g,k)=>(r(),d(e(S),{as:e(a).as,"data-slot":"root",class:o(l.value.root({class:[e(a).ui?.root,e(a).class]}))},{default:h(()=>[ee("div",{"data-slot":"container",class:o(l.value.container({class:e(a).ui?.container}))},[I(e(de),A({id:e(B)},{...e(f),...K.value,...e(j)},{name:e(N),disabled:e(z)||e(a).loading,"data-slot":"base",class:l.value.base({class:e(a).ui?.base}),"onUpdate:modelValue":L}),{default:h(()=>[I(e(ce),{"data-slot":"thumb",class:o(l.value.thumb({class:e(a).ui?.thumb}))},{default:h(()=>[e(a).loading?(r(),d(x,{key:0,name:e(a).loadingIcon||e(i).ui.icons.loading,"data-slot":"icon",class:o(l.value.icon({class:e(a).ui?.icon,checked:!0,unchecked:!0}))},null,8,["name","class"])):(r(),_(ae,{key:1},[e(a).checkedIcon?(r(),d(x,{key:0,name:e(a).checkedIcon,"data-slot":"icon",class:o(l.value.icon({class:e(a).ui?.icon,checked:!0}))},null,8,["name","class"])):p("",!0),e(a).uncheckedIcon?(r(),d(x,{key:1,name:e(a).uncheckedIcon,"data-slot":"icon",class:o(l.value.icon({class:e(a).ui?.icon,unchecked:!0}))},null,8,["name","class"])):p("",!0)],64))]),_:1},8,["class"])]),_:1},16,["id","name","disabled","class"])],2),e(a).label||u.label||e(a).description||u.description?(r(),_("div",{key:0,"data-slot":"wrapper",class:o(l.value.wrapper({class:e(a).ui?.wrapper}))},[e(a).label||u.label?(r(),d(e(se),{key:0,for:e(B),"data-slot":"label",class:o(l.value.label({class:e(a).ui?.label}))},{default:h(()=>[y(g.$slots,"label",{label:e(a).label},()=>[F(R(e(a).label),1)])]),_:3},8,["for","class"])):p("",!0),e(a).description||u.description?(r(),_("p",{key:1,"data-slot":"description",class:o(l.value.description({class:e(a).ui?.description}))},[y(g.$slots,"description",{description:e(a).description},()=>[F(R(e(a).description),1)])],2)):p("",!0)],2)):p("",!0)]),_:3},8,["as","class"]))}});export{be as _};
@@ -0,0 +1 @@
1
+ import{a as A,aM as P,bv as J,u as C,aN as Q,s as U,o as u,c as f,w as m,b as y,e as a,P as w,r as S,G as W,aQ as X,x as Y,ak as Z,z as k,am as aa,l as z,bm as ea,f as _,J as ta,bw as ia,bx as sa,m as I,by as ra,bz as na,aO as la,aP as oa,aq as O,ar as F,bA as da,a4 as M,n as h,at as j,h as B,p as R,bB as ua,av as V,au as G,aR as ca,aS as ga,F as K,j as L,bC as q,a6 as N}from"./index-sWxuTsa7.js";import{R as va}from"./RovingFocusItem-DC_06OmN.js";const[T,fa]=X("TabsRoot");var pa=A({__name:"TabsRoot",props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:"automatic"},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(c,{emit:l}){const g=c,e=l,{orientation:p,unmountOnHide:d,dir:t}=P(g),s=J(t);C();const r=Q(g,"modelValue",e,{defaultValue:g.defaultValue,passive:g.modelValue===void 0}),n=S(),b=W(new Set);return fa({modelValue:r,changeModelValue:o=>{r.value=o},orientation:p,dir:s,unmountOnHide:d,activationMode:g.activationMode,baseId:U(void 0,"reka-tabs"),tabsList:n,contentIds:b,registerContent:o=>{b.value=new Set([...b.value,o])},unregisterContent:o=>{const v=new Set(b.value);v.delete(o),b.value=v}}),(o,v)=>(u(),f(a(w),{dir:a(s),"data-orientation":a(p),"as-child":o.asChild,as:o.as},{default:m(()=>[y(o.$slots,"default",{modelValue:a(r)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),ba=pa;function H(c,l){return`${c}-trigger-${l}`}function D(c,l){return`${c}-content-${l}`}var ya=A({__name:"TabsContent",props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(c){const l=c,{forwardRef:g}=C(),e=T(),p=_(()=>H(e.baseId,l.value)),d=_(()=>D(e.baseId,l.value)),t=_(()=>l.value===e.modelValue.value),s=S(t.value);return Y(()=>{e.registerContent(l.value),requestAnimationFrame(()=>{s.value=!1})}),Z(()=>{e.unregisterContent(l.value)}),(r,n)=>(u(),f(a(ea),{present:r.forceMount||t.value,"force-mount":""},{default:m(({present:b})=>[k(a(w),{id:d.value,ref:a(g),"as-child":r.asChild,as:r.as,role:"tabpanel","data-state":t.value?"active":"inactive","data-orientation":a(e).orientation.value,"aria-labelledby":p.value,hidden:!b,tabindex:"0",style:aa({animationDuration:s.value?"0s":void 0})},{default:m(()=>[!a(e).unmountOnHide.value||b?y(r.$slots,"default",{key:0}):z("v-if",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),ma=ya,xa=A({__name:"TabsIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(c,{expose:l}){const g=c,e=T();l({updateIndicatorStyle:s}),C();const p=ra(),d=S({size:null,position:null}),t=S([]);ta(()=>[e.modelValue.value,e?.dir.value],()=>{s()},{immediate:!0,flush:"post"}),ia(()=>{t.value=Array.from(e.tabsList.value?.querySelectorAll('[role="tab"]')||[])}),sa(_(()=>[e.tabsList.value,...t.value]),s);function s(){const r=e.tabsList.value?.querySelector('[role="tab"][data-state="active"]');r&&(e.orientation.value==="horizontal"?d.value={size:r.offsetWidth,position:r.offsetLeft}:d.value={size:r.offsetHeight,position:r.offsetTop})}return(r,n)=>a(p)&&typeof d.value.size=="number"?(u(),f(a(w),I({key:0},g,{style:{"--reka-tabs-indicator-size":`${d.value.size}px`,"--reka-tabs-indicator-position":`${d.value.position}px`}}),{default:m(()=>[y(r.$slots,"default")]),_:3},16,["style"])):z("v-if",!0)}}),ha=xa,za=A({__name:"TabsList",props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(c){const l=c,{loop:g}=P(l),{forwardRef:e,currentElement:p}=C(),d=T();return d.tabsList=p,(t,s)=>(u(),f(a(na),{"as-child":"",orientation:a(d).orientation.value,dir:a(d).dir.value,loop:a(g)},{default:m(()=>[k(a(w),{ref:a(e),role:"tablist","as-child":t.asChild,as:t.as,"aria-orientation":a(d).orientation.value},{default:m(()=>[y(t.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),_a=za,qa=A({__name:"TabsTrigger",props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(c){const l=c,{forwardRef:g}=C(),e=T(),p=_(()=>H(e.baseId,l.value)),d=_(()=>e.contentIds.value.has(l.value)?D(e.baseId,l.value):void 0),t=_(()=>l.value===e.modelValue.value);return(s,r)=>(u(),f(a(va),{"as-child":"",focusable:!s.disabled,active:t.value},{default:m(()=>[k(a(w),{id:p.value,ref:a(g),role:"tab",type:s.as==="button"?"button":void 0,as:s.as,"as-child":s.asChild,"aria-selected":t.value?"true":"false","aria-controls":d.value,"data-state":t.value?"active":"inactive",disabled:s.disabled,"data-disabled":s.disabled?"":void 0,"data-orientation":a(e).orientation.value,onMousedown:r[0]||(r[0]=oa(n=>{!s.disabled&&n.ctrlKey===!1?a(e).changeModelValue(s.value):n.preventDefault()},["left"])),onKeydown:r[1]||(r[1]=la(n=>a(e).changeModelValue(s.value),["enter","space"])),onFocus:r[2]||(r[2]=()=>{const n=a(e).activationMode!=="manual";!t.value&&!s.disabled&&n&&a(e).changeModelValue(s.value)})},{default:m(()=>[y(s.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),wa=qa;const Ia={slots:{base:"font-medium inline-flex items-center",label:"truncate",leadingIcon:"shrink-0",leadingAvatar:"shrink-0",leadingAvatarSize:"",trailingIcon:"shrink-0"},variants:{fieldGroup:{horizontal:"not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]",vertical:"not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"},color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},variant:{solid:"",outline:"",soft:"",subtle:""},size:{xs:{base:"text-[8px]/3 px-1 py-0.5 gap-1 rounded-sm",leadingIcon:"size-3",leadingAvatarSize:"3xs",trailingIcon:"size-3"},sm:{base:"text-[10px]/3 px-1.5 py-1 gap-1 rounded-sm",leadingIcon:"size-3",leadingAvatarSize:"3xs",trailingIcon:"size-3"},md:{base:"text-xs px-2 py-1 gap-1 rounded-md",leadingIcon:"size-4",leadingAvatarSize:"3xs",trailingIcon:"size-4"},lg:{base:"text-sm px-2 py-1 gap-1.5 rounded-md",leadingIcon:"size-5",leadingAvatarSize:"2xs",trailingIcon:"size-5"},xl:{base:"text-base px-2.5 py-1 gap-1.5 rounded-md",leadingIcon:"size-6",leadingAvatarSize:"2xs",trailingIcon:"size-6"}},square:{true:""}},compoundVariants:[{color:"primary",variant:"solid",class:"bg-primary text-inverted"},{color:"secondary",variant:"solid",class:"bg-secondary text-inverted"},{color:"success",variant:"solid",class:"bg-success text-inverted"},{color:"info",variant:"solid",class:"bg-info text-inverted"},{color:"warning",variant:"solid",class:"bg-warning text-inverted"},{color:"error",variant:"solid",class:"bg-error text-inverted"},{color:"primary",variant:"outline",class:"text-primary ring ring-inset ring-primary/50"},{color:"secondary",variant:"outline",class:"text-secondary ring ring-inset ring-secondary/50"},{color:"success",variant:"outline",class:"text-success ring ring-inset ring-success/50"},{color:"info",variant:"outline",class:"text-info ring ring-inset ring-info/50"},{color:"warning",variant:"outline",class:"text-warning ring ring-inset ring-warning/50"},{color:"error",variant:"outline",class:"text-error ring ring-inset ring-error/50"},{color:"primary",variant:"soft",class:"bg-primary/10 text-primary"},{color:"secondary",variant:"soft",class:"bg-secondary/10 text-secondary"},{color:"success",variant:"soft",class:"bg-success/10 text-success"},{color:"info",variant:"soft",class:"bg-info/10 text-info"},{color:"warning",variant:"soft",class:"bg-warning/10 text-warning"},{color:"error",variant:"soft",class:"bg-error/10 text-error"},{color:"primary",variant:"subtle",class:"bg-primary/10 text-primary ring ring-inset ring-primary/25"},{color:"secondary",variant:"subtle",class:"bg-secondary/10 text-secondary ring ring-inset ring-secondary/25"},{color:"success",variant:"subtle",class:"bg-success/10 text-success ring ring-inset ring-success/25"},{color:"info",variant:"subtle",class:"bg-info/10 text-info ring ring-inset ring-info/25"},{color:"warning",variant:"subtle",class:"bg-warning/10 text-warning ring ring-inset ring-warning/25"},{color:"error",variant:"subtle",class:"bg-error/10 text-error ring ring-inset ring-error/25"},{color:"neutral",variant:"solid",class:"text-inverted bg-inverted"},{color:"neutral",variant:"outline",class:"ring ring-inset ring-accented text-default bg-default"},{color:"neutral",variant:"soft",class:"text-default bg-elevated"},{color:"neutral",variant:"subtle",class:"ring ring-inset ring-accented text-default bg-elevated"},{size:"xs",square:!0,class:"p-0.5"},{size:"sm",square:!0,class:"p-1"},{size:"md",square:!0,class:"p-1"},{size:"lg",square:!0,class:"p-1"},{size:"xl",square:!0,class:"p-1"}],defaultVariants:{color:"primary",variant:"solid",size:"md"}},Sa={__name:"Badge",props:{as:{type:null,required:!1,default:"span"},label:{type:[String,Number],required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1}},setup(c){const l=c,g=O(),e=F("badge",l),p=G(),{orientation:d,size:t}=da(l),{isLeading:s,isTrailing:r,leadingIconName:n,trailingIconName:b}=ua(e),o=_(()=>V({extend:V(Ia),...p.ui?.badge||{}})({color:e.color,variant:e.variant,size:t.value??e.size,square:e.square||!g.default&&!e.label,fieldGroup:d.value}));return(v,$)=>(u(),f(a(w),{as:a(e).as,"data-slot":"base",class:h(o.value.base({class:[a(e).ui?.base,a(e).class]}))},{default:m(()=>[y(v.$slots,"leading",{ui:o.value},()=>[a(s)&&a(n)?(u(),f(M,{key:0,name:a(n),"data-slot":"leadingIcon",class:h(o.value.leadingIcon({class:a(e).ui?.leadingIcon}))},null,8,["name","class"])):a(e).avatar?(u(),f(j,I({key:1,size:a(e).ui?.leadingAvatarSize||o.value.leadingAvatarSize()},a(e).avatar,{"data-slot":"leadingAvatar",class:o.value.leadingAvatar({class:a(e).ui?.leadingAvatar})}),null,16,["size","class"])):z("",!0)]),y(v.$slots,"default",{ui:o.value},()=>[a(e).label!==void 0&&a(e).label!==null?(u(),B("span",{key:0,"data-slot":"label",class:h(o.value.label({class:a(e).ui?.label}))},R(a(e).label),3)):z("",!0)]),y(v.$slots,"trailing",{ui:o.value},()=>[a(r)&&a(b)?(u(),f(M,{key:0,name:a(b),"data-slot":"trailingIcon",class:h(o.value.trailingIcon({class:a(e).ui?.trailingIcon}))},null,8,["name","class"])):z("",!0)])]),_:3},8,["as","class"]))}},ka={slots:{root:"flex items-center gap-2",list:"relative flex p-1 group",indicator:"absolute transition-[translate,width] duration-200",trigger:["group relative inline-flex items-center min-w-0 data-[state=inactive]:text-muted hover:data-[state=inactive]:not-disabled:text-default font-medium rounded-md disabled:cursor-not-allowed disabled:opacity-75","transition-colors"],leadingIcon:"shrink-0",leadingAvatar:"shrink-0",leadingAvatarSize:"",label:"truncate",trailingBadge:"shrink-0",trailingBadgeSize:"sm",content:"w-full rounded-md focus-visible:outline-3"},variants:{color:{primary:{content:"outline-primary/25"},secondary:{content:"outline-secondary/25"},success:{content:"outline-success/25"},info:{content:"outline-info/25"},warning:{content:"outline-warning/25"},error:{content:"outline-error/25"},neutral:{content:"outline-inverted/25"}},variant:{pill:{list:"bg-elevated rounded-lg",trigger:["grow","in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:content-[''] in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:absolute in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:inset-0 in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:rounded-md in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:shadow-xs in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:-z-10 in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:isolate"],indicator:"rounded-md shadow-xs"},link:{list:"border-default",indicator:"rounded-full",trigger:"in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:content-[''] in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:absolute in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:rounded-full"}},orientation:{horizontal:{root:"flex-col",list:"w-full",indicator:"left-0 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position)",trigger:"justify-center"},vertical:{list:"flex-col",indicator:"top-0 h-(--reka-tabs-indicator-size) translate-y-(--reka-tabs-indicator-position)"}},size:{xs:{trigger:"px-2 py-1 text-xs gap-1",leadingIcon:"size-4",leadingAvatarSize:"3xs"},sm:{trigger:"px-2.5 py-1.5 text-xs gap-1.5",leadingIcon:"size-4",leadingAvatarSize:"3xs"},md:{trigger:"px-3 py-1.5 text-sm gap-1.5",leadingIcon:"size-5",leadingAvatarSize:"2xs"},lg:{trigger:"px-3 py-2 text-sm gap-2",leadingIcon:"size-5",leadingAvatarSize:"2xs"},xl:{trigger:"px-3 py-2 text-base gap-2",leadingIcon:"size-6",leadingAvatarSize:"xs"}}},compoundVariants:[{orientation:"horizontal",variant:"pill",class:{indicator:"inset-y-1"}},{orientation:"horizontal",variant:"link",class:{list:"border-b -mb-px",indicator:"-bottom-px h-px",trigger:"in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:inset-x-0 in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:-bottom-[calc(var(--spacing)+1px)] in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:h-px"}},{orientation:"vertical",variant:"pill",class:{indicator:"inset-x-1",list:"items-center",trigger:"w-full justify-center"}},{orientation:"vertical",variant:"link",class:{list:"border-s -ms-px",indicator:"-start-px w-px",trigger:"in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:inset-y-0 in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:-start-[calc(var(--spacing)+1px)] in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:w-px"}},{color:"primary",variant:"pill",class:{indicator:"bg-primary",trigger:["data-[state=active]:text-inverted outline-primary/25 focus-visible:outline-3","in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-primary"]}},{color:"secondary",variant:"pill",class:{indicator:"bg-secondary",trigger:["data-[state=active]:text-inverted outline-secondary/25 focus-visible:outline-3","in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-secondary"]}},{color:"success",variant:"pill",class:{indicator:"bg-success",trigger:["data-[state=active]:text-inverted outline-success/25 focus-visible:outline-3","in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-success"]}},{color:"info",variant:"pill",class:{indicator:"bg-info",trigger:["data-[state=active]:text-inverted outline-info/25 focus-visible:outline-3","in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-info"]}},{color:"warning",variant:"pill",class:{indicator:"bg-warning",trigger:["data-[state=active]:text-inverted outline-warning/25 focus-visible:outline-3","in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-warning"]}},{color:"error",variant:"pill",class:{indicator:"bg-error",trigger:["data-[state=active]:text-inverted outline-error/25 focus-visible:outline-3","in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-error"]}},{color:"neutral",variant:"pill",class:{indicator:"bg-inverted",trigger:["data-[state=active]:text-inverted outline-inverted/25 focus-visible:outline-3","in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-inverted"]}},{color:"primary",variant:"link",class:{indicator:"bg-primary",trigger:["data-[state=active]:text-primary outline-primary/25 focus-visible:outline-3","in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-primary"]}},{color:"secondary",variant:"link",class:{indicator:"bg-secondary",trigger:["data-[state=active]:text-secondary outline-secondary/25 focus-visible:outline-3","in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-secondary"]}},{color:"success",variant:"link",class:{indicator:"bg-success",trigger:["data-[state=active]:text-success outline-success/25 focus-visible:outline-3","in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-success"]}},{color:"info",variant:"link",class:{indicator:"bg-info",trigger:["data-[state=active]:text-info outline-info/25 focus-visible:outline-3","in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-info"]}},{color:"warning",variant:"link",class:{indicator:"bg-warning",trigger:["data-[state=active]:text-warning outline-warning/25 focus-visible:outline-3","in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-warning"]}},{color:"error",variant:"link",class:{indicator:"bg-error",trigger:["data-[state=active]:text-error outline-error/25 focus-visible:outline-3","in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-error"]}},{color:"neutral",variant:"link",class:{indicator:"bg-inverted",trigger:["data-[state=active]:text-highlighted outline-inverted/25 focus-visible:outline-3","in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-inverted"]}}],defaultVariants:{color:"primary",variant:"pill",size:"md"}},Ba={__name:"Tabs",props:{as:{type:null,required:!1},items:{type:Array,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},orientation:{type:null,required:!1,default:"horizontal"},content:{type:Boolean,required:!1,default:!0},valueKey:{type:null,required:!1,default:"value"},labelKey:{type:null,required:!1,default:"label"},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultValue:{type:[String,Number],required:!1,default:"0"},modelValue:{type:[String,Number],required:!1},activationMode:{type:String,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:["update:modelValue"],setup(c,{expose:l,emit:g}){const e=c,p=g,d=O(),t=F("tabs",e),s=G(),r=ca(ga(t,"as","unmountOnHide"),p),n=_(()=>V({extend:V(ka),...s.ui?.tabs||{}})({color:t.color,variant:t.variant,size:t.size,orientation:t.orientation})),b=S([]);function o(v,$){b.value[v]=$}return l({triggersRef:b}),(v,$)=>(u(),f(a(ba),I(a(r),{"model-value":a(t).modelValue,"default-value":a(t).defaultValue,orientation:a(t).orientation,"activation-mode":a(t).activationMode,"data-slot":"root",class:n.value.root({class:[a(t).ui?.root,a(t).class]})}),{default:m(()=>[k(a(_a),{"data-slot":"list",class:h(n.value.list({class:a(t).ui?.list}))},{default:m(()=>[k(a(ha),{"data-slot":"indicator",class:h(n.value.indicator({class:a(t).ui?.indicator}))},null,8,["class"]),y(v.$slots,"list-leading"),(u(!0),B(K,null,L(a(t).items,(i,x)=>(u(),f(a(wa),{key:a(q)(i,a(t).valueKey)??x,ref_for:!0,ref:E=>o(x,E),value:a(q)(i,a(t).valueKey)??String(x),disabled:i.disabled,"data-slot":"trigger",class:h(n.value.trigger({class:[a(t).ui?.trigger,i.ui?.trigger]}))},{default:m(()=>[y(v.$slots,"leading",{item:i,index:x,ui:n.value},()=>[i.icon?(u(),f(M,{key:0,name:i.icon,"data-slot":"leadingIcon",class:h(n.value.leadingIcon({class:[a(t).ui?.leadingIcon,i.ui?.leadingIcon]}))},null,8,["name","class"])):i.avatar?(u(),f(j,I({key:1,size:i.ui?.leadingAvatarSize||a(t).ui?.leadingAvatarSize||n.value.leadingAvatarSize()},{ref_for:!0},i.avatar,{"data-slot":"leadingAvatar",class:n.value.leadingAvatar({class:[a(t).ui?.leadingAvatar,i.ui?.leadingAvatar]})}),null,16,["size","class"])):z("",!0)]),a(q)(i,a(t).labelKey)||d.default?(u(),B("span",{key:0,"data-slot":"label",class:h(n.value.label({class:[a(t).ui?.label,i.ui?.label]}))},[y(v.$slots,"default",{item:i,index:x},()=>[N(R(a(q)(i,a(t).labelKey)),1)])],2)):z("",!0),y(v.$slots,"trailing",{item:i,index:x,ui:n.value},()=>[i.badge||i.badge===0?(u(),f(Sa,I({key:0,color:"neutral",variant:"outline",size:i.ui?.trailingBadgeSize||a(t).ui?.trailingBadgeSize||n.value.trailingBadgeSize()},{ref_for:!0},typeof i.badge=="string"||typeof i.badge=="number"?{label:i.badge}:i.badge,{"data-slot":"trailingBadge",class:n.value.trailingBadge({class:[a(t).ui?.trailingBadge,i.ui?.trailingBadge]})}),null,16,["size","class"])):z("",!0)])]),_:2},1032,["value","disabled","class"]))),128)),y(v.$slots,"list-trailing")]),_:3},8,["class"]),a(t).content?(u(!0),B(K,{key:0},L(a(t).items,(i,x)=>(u(),f(a(ma),{key:a(q)(i,a(t).valueKey)??x,value:a(q)(i,a(t).valueKey)??String(x),"data-slot":"content",class:h(n.value.content({class:[a(t).ui?.content,i.ui?.content,i.class]}))},{default:m(()=>[y(v.$slots,i.slot||"content",{item:i,index:x,ui:n.value},()=>[N(R(i.content),1)])]),_:2},1032,["value","class"]))),128)):z("",!0)]),_:3},16,["model-value","default-value","orientation","activation-mode","class"]))}};export{Ba as _,Sa as a};
@@ -0,0 +1 @@
1
+ import{_ as T}from"./Tabs-D1UiZNaZ.js";import{a as x,J as V,o as k,h as w,z as y,r as m,f as z,C,ae as W}from"./index-sWxuTsa7.js";const E=x({__name:"Tabs",props:{modelValue:{},items:{},size:{}},emits:["update:modelValue"],setup(s,{emit:d}){const c=s,f=d,o=m(),l=m(),a=z({get:()=>c.modelValue,set:e=>f("update:modelValue",e)}),u=async()=>{if(await C(),!o.value||!l.value)return;const e=c.items.findIndex(h=>h.value===a.value);if(e<0)return;const t=l.value.$el.querySelectorAll('[role="tab"]')[e];if(!t)return;const i=o.value,b=i.clientWidth,p=t.offsetLeft,v=t.offsetWidth,_=p+v/2-b/2;i.scrollTo({left:Math.max(0,_),behavior:"smooth"})};return V(a,()=>{u()},{immediate:!1}),(e,n)=>{const r=T;return k(),w("div",{ref_key:"scrollContainer",ref:o,class:"overflow-x-auto overflow-y-hidden scrollbar-hide"},[y(r,{ref_key:"tabsRef",ref:l,modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=t=>a.value=t),size:s.size,items:s.items,content:!1,class:"min-w-max"},null,8,["modelValue","size","items"])],512)}}}),g=W(E,[["__scopeId","data-v-4a114c59"]]);export{g as T};
@@ -1 +1 @@
1
- import{a,o as r,i as d,n,e as s}from"./index-D5m0P4ss.js";const i=a({__name:"ThemeCard",props:{shadow:{type:Boolean,default:!0}},setup(e){return(o,t)=>(r(),d("div",{class:n(["overflow-hidden rounded-2xl border border-gray-200/60 bg-card-bg transition-shadow duration-300 hover:shadow-lg motion-reduce:transition-none dark:border-white/5 dark:bg-card-dark",{"shadow-elevated":e.shadow}])},[s(o.$slots,"default")],2))}});export{i as _};
1
+ import{a,o as r,h as d,n,b as s}from"./index-sWxuTsa7.js";const i=a({__name:"ThemeCard",props:{shadow:{type:Boolean,default:!0}},setup(e){return(o,t)=>(r(),d("div",{class:n(["overflow-hidden rounded-2xl border border-gray-200/60 bg-card-bg transition-shadow duration-300 hover:shadow-lg motion-reduce:transition-none dark:border-white/5 dark:bg-card-dark",{"shadow-elevated":e.shadow}])},[s(o.$slots,"default")],2))}});export{i as _};
@@ -0,0 +1 @@
1
+ import{aE as D,a as ye,a3 as pe,x as be,ak as Se,J as Ye,o as T,h as $,n as L,z as w,c as xe,a5 as De,i as F,p as Z,l as ee,r as f,f as d,K as Me}from"./index-sWxuTsa7.js";import{_ as he}from"./Select-DLK2LYhO.js";import{T as we}from"./Tabs-N3Q-Mpqi.js";import{_ as ae}from"./DatePicker.vue_vue_type_script_setup_true_lang-DqNBNa1D.js";function te(o){const u=new Date(o*1e3),l=u.getFullYear(),r=String(u.getMonth()+1).padStart(2,"0"),i=String(u.getDate()).padStart(2,"0");return`${l}-${r}-${i}`}function Fe(o){const u=new Date(o*1e3),l=u.getFullYear(),r=String(u.getMonth()+1).padStart(2,"0"),i=String(u.getDate()).padStart(2,"0"),p=String(u.getHours()).padStart(2,"0"),v=String(u.getMinutes()).padStart(2,"0");return`${l}-${r}-${i} ${p}:${v}`}function Ee(o){return D.unix(o).format("YYYY-MM-DD HH:mm:ss")}function Qe(o,u){const l=te(o);if(u===null)return`${l} ~ 至今`;const r=te(u);return l===r?l:`${l} ~ ${r}`}function le(o,u,l="YYYY/MM/DD",r=" - "){const i=D.unix(o).format(l),p=D.unix(u).format(l);return i===p?i:`${i}${r}${p}`}const E=["recent","quarter","year","custom"],ne=[365,730,1825,0];function ze(o){if(!o)return[...E];const u=new Set(o),l=E.filter(r=>u.has(r));return l.length>0?l:[...E]}function qe(o){if(!o)return[...ne];const u=new Set(o),l=ne.filter(r=>u.has(r));return l.length>0?l:[365]}function Te(o,u){return[o??"",u?.availableYears.join(",")??"",u?.fullRange?.start??"",u?.fullRange?.end??""].join("|")}const ke={key:1,class:"flex items-center"},Re={key:2,class:"flex items-center"},Ve={key:3,class:"flex items-center gap-1"},Be=ye({__name:"TimeSelect",props:{sessionId:{},modelValue:{},visible:{type:Boolean,default:!0},initialState:{},rangeSource:{},allowedModes:{},allowedRecentDays:{},size:{default:"md"}},emits:["update:modelValue","update:fullRange","update:availableYears","initializationComplete"],setup(o,{emit:u}){const l=o,r=u,{t:i}=pe(),p=f(!1),v=f([]),c=f(null),k=d(()=>ze(l.allowedModes)),C=d(()=>qe(l.allowedRecentDays)),z=d(()=>l.size==="sm"?"xs":"sm"),Q=d(()=>l.size==="sm"?"text-xs":"text-sm"),b=f("recent"),S=f(365),g=f(0),m=f(0),y=f(1),Y=f(""),x=f(""),R=f(!1);let q=0;function V(a){const e=new Date(a*1e3);return{year:e.getFullYear(),quarter:Math.floor(e.getMonth()/3)+1}}function re(a,e){const t=(e-1)*3,s=new Date(a,t,1,0,0,0),n=new Date(a,t+3,0,23,59,59);return{startTs:Math.floor(s.getTime()/1e3),endTs:Math.floor(n.getTime()/1e3)}}function se(a){const e=new Date(a,0,1,0,0,0),t=new Date(a,11,31,23,59,59);return{startTs:Math.floor(e.getTime()/1e3),endTs:Math.floor(t.getTime()/1e3)}}const ue=d(()=>[{label:i("common.timeSelect.mode.recent"),value:"recent"},{label:i("common.timeSelect.mode.quarter"),value:"quarter"},{label:i("common.timeSelect.mode.year"),value:"year"},{label:i("common.timeSelect.mode.custom"),value:"custom"}].filter(a=>k.value.includes(a.value))),oe=d(()=>{const a=new Map([[365,i("common.timeSelect.recent.oneYear")],[730,i("common.timeSelect.recent.twoYears")],[1825,i("common.timeSelect.recent.fiveYears")],[0,i("common.timeSelect.recent.all")]]);return C.value.map(e=>({label:a.get(e)??String(e),value:e}))}),B=d(()=>c.value?V(c.value.start):{year:0,quarter:1}),O=d(()=>c.value?V(c.value.end):{year:0,quarter:1}),ie=d(()=>{const a=B.value;return m.value>a.year||m.value===a.year&&y.value>a.quarter}),ce=d(()=>{const a=O.value;return m.value<a.year||m.value===a.year&&y.value<a.quarter}),de=d(()=>v.value.length===0?!1:v.value.indexOf(g.value)<v.value.length-1),ve=d(()=>v.value.length===0?!1:v.value.indexOf(g.value)>0),U=d(()=>i("common.timeSelect.quarter.label",{year:m.value,quarter:y.value})),A=d(()=>i("common.timeSelect.year.label",{year:g.value}));function me(a){return{365:i("common.timeSelect.display.recent365"),730:i("common.timeSelect.display.recent730"),1825:i("common.timeSelect.display.recent1825")}[a]||""}function N(a){return C.value.includes(a)?a:C.value[0]??365}function fe(){if(!c.value)return null;const a={mode:b.value};switch(b.value){case"recent":{if(a.recentDays=S.value,S.value===0)return{startTs:c.value.start,endTs:c.value.end,displayLabel:le(c.value.start,c.value.end),isFullRange:!0,state:a};const e=c.value.end;return{startTs:Math.max(e-S.value*86400,c.value.start),endTs:e,displayLabel:me(S.value),isFullRange:!1,state:a}}case"quarter":return a.quarterYear=m.value,a.quarter=y.value,{...re(m.value,y.value),displayLabel:U.value,isFullRange:!1,state:a};case"year":return a.year=g.value,{...se(g.value),displayLabel:A.value,isFullRange:!1,state:a};case"custom":{if(a.customStart=Y.value,a.customEnd=x.value,!Y.value||!x.value)return null;let e=D(Y.value).startOf("day").unix(),t=D(x.value).endOf("day").unix();return e>t&&([e,t]=[t,e]),{startTs:e,endTs:t,displayLabel:le(e,t),isFullRange:!1,state:a}}}}function M(){const a=fe();a&&r("update:modelValue",a)}function P(a){let e=m.value,t=y.value+a;t>4&&(e++,t=1),t<1&&(e--,t=4);const s=B.value,n=O.value;e<s.year||e===s.year&&t<s.quarter||e>n.year||e===n.year&&t>n.quarter||(m.value=e,y.value=t,M())}function _(a){const e=v.value,s=e.indexOf(g.value)-a;s>=0&&s<e.length&&(g.value=e[s],M())}function ge(a){if(c.value)switch(a){case"recent":S.value=N(S.value);break;case"quarter":{const{year:e,quarter:t}=V(c.value.end);m.value=e,y.value=t;break}case"year":{g.value=v.value[0]||new Date(c.value.end*1e3).getFullYear();break}case"custom":{const e=c.value.end,t=Math.max(e-30*86400,c.value.start);Y.value=D.unix(t).format("YYYY-MM-DD"),x.value=D.unix(e).format("YYYY-MM-DD");break}}}const j=d({get:()=>b.value,set:a=>{b.value=a,R.value=!0,ge(a),R.value=!1,M()}}),H=d({get:()=>S.value,set:a=>{S.value=a,M()}}),K=d({get:()=>Y.value,set:a=>{Y.value=a,x.value&&M()}}),J=d({get:()=>x.value,set:a=>{x.value=a,Y.value&&M()}});async function G(){const a=++q;if(!l.rangeSource&&!l.sessionId){v.value=[],c.value=null,r("update:modelValue",null),r("update:fullRange",null),r("update:availableYears",[]),p.value=!0,r("initializationComplete",!1);return}let e=!1;try{let t,s;if(l.rangeSource)t=l.rangeSource.availableYears,s=l.rangeSource.fullRange;else{const h=Me();[t,s]=await Promise.all([h.getAvailableYears(l.sessionId),h.getTimeRange(l.sessionId)])}if(a!==q)return;v.value=t,c.value=s,e=s!==null,r("update:fullRange",s),r("update:availableYears",t);const n=l.initialState,W=n?.mode??k.value[0]??"recent",X=k.value.includes(W)?W:k.value[0]??"recent";switch(b.value=X,R.value=!0,X){case"recent":S.value=N(n?.recentDays??365);break;case"quarter":{if(n?.quarterYear&&n?.quarter)m.value=n.quarterYear,y.value=n.quarter;else if(s){const{year:h,quarter:I}=V(s.end);m.value=h,y.value=I}break}case"year":{n?.year&&t.includes(n.year)?g.value=n.year:g.value=t[0]||0;break}case"custom":{if(n?.customStart&&n?.customEnd)Y.value=n.customStart,x.value=n.customEnd;else if(s){const h=s.end,I=Math.max(h-30*86400,s.start);Y.value=D.unix(I).format("YYYY-MM-DD"),x.value=D.unix(h).format("YYYY-MM-DD")}break}}R.value=!1,e?M():r("update:modelValue",null)}catch(t){if(a!==q)return;console.error("TimeSelect 加载数据失败:",t),v.value=[],c.value=null,r("update:modelValue",null),r("update:fullRange",null),r("update:availableYears",[])}finally{a===q&&(p.value=!0,r("initializationComplete",e))}}return be(()=>{G()}),Se(()=>{q++}),Ye(()=>Te(l.sessionId,l.rangeSource),()=>{p.value=!1,G()}),(a,e)=>{const t=he,s=De;return p.value?(T(),$("div",{key:0,class:L(["flex items-center gap-2",{invisible:!o.visible}])},[w(t,{modelValue:j.value,"onUpdate:modelValue":e[0]||(e[0]=n=>j.value=n),items:ue.value,"value-key":"value",size:z.value,color:"neutral",variant:"soft",ui:{item:"py-1.5"},class:"h-8 w-[88px] shrink-0 rounded-lg bg-elevated focus-visible:ring-1 focus-visible:ring-gray-300/60 dark:focus-visible:ring-white/15"},null,8,["modelValue","items","size"]),b.value==="recent"?(T(),xe(we,{key:0,modelValue:H.value,"onUpdate:modelValue":e[1]||(e[1]=n=>H.value=n),items:oe.value,size:z.value,class:"min-w-0 shrink"},null,8,["modelValue","items","size"])):b.value==="quarter"?(T(),$("div",ke,[w(s,{icon:"i-heroicons-chevron-left",size:z.value,variant:"ghost",color:"neutral",disabled:!ie.value,onClick:e[2]||(e[2]=n=>P(-1))},null,8,["size","disabled"]),F("span",{class:L(["whitespace-nowrap px-0.5 font-medium text-gray-700 dark:text-gray-300",Q.value])},Z(U.value),3),w(s,{icon:"i-heroicons-chevron-right",size:z.value,variant:"ghost",color:"neutral",disabled:!ce.value,onClick:e[3]||(e[3]=n=>P(1))},null,8,["size","disabled"])])):b.value==="year"?(T(),$("div",Re,[w(s,{icon:"i-heroicons-chevron-left",size:z.value,variant:"ghost",color:"neutral",disabled:!de.value,onClick:e[4]||(e[4]=n=>_(-1))},null,8,["size","disabled"]),F("span",{class:L(["whitespace-nowrap px-0.5 font-medium text-gray-700 dark:text-gray-300",Q.value])},Z(A.value),3),w(s,{icon:"i-heroicons-chevron-right",size:z.value,variant:"ghost",color:"neutral",disabled:!ve.value,onClick:e[5]||(e[5]=n=>_(1))},null,8,["size","disabled"])])):b.value==="custom"?(T(),$("div",Ve,[w(ae,{modelValue:K.value,"onUpdate:modelValue":e[6]||(e[6]=n=>K.value=n),"width-class":"w-28",clearable:!1,size:o.size},null,8,["modelValue","size"]),e[8]||(e[8]=F("span",{class:"text-xs text-gray-400"},"-",-1)),w(ae,{modelValue:J.value,"onUpdate:modelValue":e[7]||(e[7]=n=>J.value=n),"width-class":"w-28",clearable:!1,size:o.size},null,8,["modelValue","size"])])):ee("",!0)],2)):ee("",!0)}}});export{Be as _,Ee as a,Qe as b,le as c,Fe as d,te as f};
@@ -1 +1 @@
1
- import{a as m,w as g,o as n,c as o,m as p,a9 as h,aa as E,g as d,i as c,s as B,F as f,q as V}from"./index-D5m0P4ss.js";var k=m({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(i){const e=i,{primitiveElement:s,currentElement:l}=E(),t=d(()=>e.checked??e.value);return g(t,(a,r)=>{if(!l.value)return;const u=l.value,_=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(_,"value").set;if(v&&a!==r){const b=new Event("input",{bubbles:!0}),q=new Event("change",{bubbles:!0});v.call(u,a),u.dispatchEvent(b),u.dispatchEvent(q)}}),(a,r)=>(n(),o(h,p({ref_key:"primitiveElement",ref:s},{...e,...a.$attrs},{as:"input"}),null,16))}}),y=k,A=m({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(i){const e=i,s=d(()=>typeof e.value=="object"&&Array.isArray(e.value)&&e.value.length===0&&e.required),l=d(()=>typeof e.value=="string"||typeof e.value=="number"||typeof e.value=="boolean"||e.value===null||e.value===void 0?[{name:e.name,value:e.value}]:typeof e.value=="object"&&Array.isArray(e.value)?e.value.flatMap((t,a)=>typeof t=="object"?Object.entries(t).map(([r,u])=>({name:`${e.name}[${a}][${r}]`,value:u})):{name:`${e.name}[${a}]`,value:t}):e.value!==null&&typeof e.value=="object"&&!Array.isArray(e.value)?Object.entries(e.value).map(([t,a])=>({name:`${e.name}[${t}]`,value:a})):[]);return(t,a)=>(n(),c(f,null,[B(" We render single input if it's required "),s.value?(n(),o(y,p({key:t.name},{...e,...t.$attrs},{name:t.name,value:t.value}),null,16,["name","value"])):(n(!0),c(f,{key:1},V(l.value,r=>(n(),o(y,p({key:r.name},{ref_for:!0},{...e,...t.$attrs},{name:r.name,value:r.value}),null,16,["name","value"]))),128))],2112))}}),w=A;export{w as V};
1
+ import{a as m,J as h,o as l,c as o,m as p,ac as g,ad as E,f as d,h as c,l as B,F as f,j as V}from"./index-sWxuTsa7.js";var k=m({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(i){const e=i,{primitiveElement:s,currentElement:n}=E(),t=d(()=>e.checked??e.value);return h(t,(a,r)=>{if(!n.value)return;const u=n.value,_=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(_,"value").set;if(v&&a!==r){const b=new Event("input",{bubbles:!0}),q=new Event("change",{bubbles:!0});v.call(u,a),u.dispatchEvent(b),u.dispatchEvent(q)}}),(a,r)=>(l(),o(g,p({ref_key:"primitiveElement",ref:s},{...e,...a.$attrs},{as:"input"}),null,16))}}),y=k,A=m({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(i){const e=i,s=d(()=>typeof e.value=="object"&&Array.isArray(e.value)&&e.value.length===0&&e.required),n=d(()=>typeof e.value=="string"||typeof e.value=="number"||typeof e.value=="boolean"||e.value===null||e.value===void 0?[{name:e.name,value:e.value}]:typeof e.value=="object"&&Array.isArray(e.value)?e.value.flatMap((t,a)=>typeof t=="object"?Object.entries(t).map(([r,u])=>({name:`${e.name}[${a}][${r}]`,value:u})):{name:`${e.name}[${a}]`,value:t}):e.value!==null&&typeof e.value=="object"&&!Array.isArray(e.value)?Object.entries(e.value).map(([t,a])=>({name:`${e.name}[${t}]`,value:a})):[]);return(t,a)=>(l(),c(f,null,[B(" We render single input if it's required "),s.value?(l(),o(y,p({key:t.name},{...e,...t.$attrs},{name:t.name,value:t.value}),null,16,["name","value"])):(l(!0),c(f,{key:1},V(n.value,r=>(l(),o(y,p({key:r.name},{ref_for:!0},{...e,...t.$attrs},{name:r.name,value:r.value}),null,16,["name","value"]))),128))],2112))}}),I=A;export{I as V};
@@ -1,4 +1,4 @@
1
- import{D as R,a as F,j as d,z as P,d as B,w as b,g as q,b as Ce,S as O,T as S,ak as Ne,L as Z,al as De,c as T,ab as X,q as y,K as C,N as M,r as g,M as J,am as Q,an as Ie,ao as ee,ap as Ge,aq as Ue,A as Fe,R as Pe}from"./RelationshipGalaxyCanvas-6EamagxG.js";import{e as Oe,G as Me,c as Le,b as we,U as He,B as te,d as N,f as re,g as Ve}from"./BufferResource-BXSJADxx.js";import{R as Xe,S as ke,d as We}from"./RenderTargetSystem-mYuj4uBS.js";import"./index-D5m0P4ss.js";import"./vendor-snapdom--nZvo8Sg.js";import"./index-IA7YUjQX.js";import"./Tabs-OrJkANIA.js";import"./RovingFocusItem-B2y6BG1a.js";import"./useToast-B36MzFFy.js";import"./LoadingState.vue_vue_type_script_setup_true_lang-Cnshyn0f.js";import"./people-page-header-Bh3KXD4g.js";import"./relationship-galaxy-connections-Cg4G5yYE.js";import"./relationship-galaxy-viewport-Cwfa51ER.js";import"./Filter-DVaqcFmI.js";function je(){const{userAgent:t}=R.get().getNavigator();return/^((?!chrome|android).)*safari/i.test(t)}class ne{constructor(){this._tempState=F.for2d(),this._didUploadHash={}}init(e){e.renderer.runners.contextChange.add(this)}contextChange(){this._didUploadHash={}}start(e,r,n){const s=e.renderer,i=this._didUploadHash[n.uid];s.shader.bind(n,i),i||(this._didUploadHash[n.uid]=!0),s.shader.updateUniformGroup(s.globalUniforms.uniformGroup),s.geometry.bind(r,n.glProgram)}execute(e,r){const n=e.renderer;this._tempState.blendMode=r.blendMode,n.state.set(this._tempState);const s=r.textures.textures;for(let i=0;i<r.textures.count;i++)n.texture.bind(s[i],i);n.geometry.draw(r.topology,r.size,r.start)}}ne.extension={type:[d.WebGLPipesAdaptor],name:"batch"};var A=(t=>(t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",t))(A||{});class Ke{constructor(e,r){this._lastBindBaseLocation=-1,this._lastBindCallId=-1,this.buffer=e||null,this.updateID=-1,this.byteLength=-1,this.type=r}destroy(){this.buffer=null,this.updateID=-1,this.byteLength=-1,this.type=-1,this._lastBindBaseLocation=-1,this._lastBindCallId=-1}}class se{constructor(e){this._boundBufferBases=Object.create(null),this._minBaseLocation=0,this._nextBindBaseIndex=this._minBaseLocation,this._bindCallId=0,this._renderer=e,this._managedBuffers=new P({renderer:e,type:"resource",onUnload:this.onBufferUnload.bind(this),name:"glBuffer"})}destroy(){this._managedBuffers.destroy(),this._renderer=null,this._gl=null,this._boundBufferBases={}}contextChange(){this._gl=this._renderer.gl,this.destroyAll(!0),this._maxBindings=this._renderer.limits.maxUniformBindings}getGlBuffer(e){return e._gcLastUsed=this._renderer.gc.now,e._gpuData[this._renderer.uid]||this.createGLBuffer(e)}bind(e){const{_gl:r}=this,n=this.getGlBuffer(e);r.bindBuffer(n.type,n.buffer)}bindBufferBase(e,r){const{_gl:n}=this;this._boundBufferBases[r]!==e&&(this._boundBufferBases[r]=e,e._lastBindBaseLocation=r,n.bindBufferBase(n.UNIFORM_BUFFER,r,e.buffer))}nextBindBase(e){this._bindCallId++,this._minBaseLocation=0,e&&(this._boundBufferBases[0]=null,this._minBaseLocation=1,this._nextBindBaseIndex<1&&(this._nextBindBaseIndex=1))}freeLocationForBufferBase(e){let r=this.getLastBindBaseLocation(e);if(r>=this._minBaseLocation)return e._lastBindCallId=this._bindCallId,r;let n=0,s=this._nextBindBaseIndex;for(;n<2;){s>=this._maxBindings&&(s=this._minBaseLocation,n++);const i=this._boundBufferBases[s];if(i&&i._lastBindCallId===this._bindCallId){s++;continue}break}return r=s,this._nextBindBaseIndex=s+1,n>=2?-1:(e._lastBindCallId=this._bindCallId,this._boundBufferBases[r]=null,r)}getLastBindBaseLocation(e){const r=e._lastBindBaseLocation;return this._boundBufferBases[r]===e?r:-1}bindBufferRange(e,r,n,s){const{_gl:i}=this;n||(n=0),r||(r=0),this._boundBufferBases[r]=null,i.bindBufferRange(i.UNIFORM_BUFFER,r||0,e.buffer,n*256,s||256)}updateBuffer(e){const{_gl:r}=this,n=this.getGlBuffer(e);if(e._updateID===n.updateID)return n;n.updateID=e._updateID,r.bindBuffer(n.type,n.buffer);const s=e.data,i=e.descriptor.usage&B.STATIC?r.STATIC_DRAW:r.DYNAMIC_DRAW;return s?n.byteLength>=s.byteLength?r.bufferSubData(n.type,0,s,0,e._updateSize/s.BYTES_PER_ELEMENT):(n.byteLength=s.byteLength,r.bufferData(n.type,s,i)):(n.byteLength=e.descriptor.size,r.bufferData(n.type,n.byteLength,i)),n}destroyAll(e=!1){this._managedBuffers.removeAll(e)}onBufferUnload(e,r=!1){const n=e._gpuData[this._renderer.uid];n&&(r||this._gl.deleteBuffer(n.buffer))}createGLBuffer(e){const{_gl:r}=this;let n=A.ARRAY_BUFFER;e.descriptor.usage&B.INDEX?n=A.ELEMENT_ARRAY_BUFFER:e.descriptor.usage&B.UNIFORM&&(n=A.UNIFORM_BUFFER);const s=new Ke(r.createBuffer(),n);return e._gpuData[this._renderer.uid]=s,this._managedBuffers.add(e),s}resetState(){this._boundBufferBases=Object.create(null)}}se.extension={type:[d.WebGLSystem],name:"buffer"};const L=class ie{constructor(e){this.supports={uint32Indices:!0,uniformBufferObject:!0,vertexArrayObject:!0,srgbTextures:!0,nonPowOf2wrapping:!0,msaa:!0,nonPowOf2mipmaps:!0},this._renderer=e,this.extensions=Object.create(null),this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this)}get isLost(){return!this.gl||this.gl.isContextLost()}contextChange(e){this.gl=e,this._renderer.gl=e}init(e){e={...ie.defaultOptions,...e};let r=this.multiView=e.multiView;if(e.context&&r&&(b("Renderer created with both a context and multiview enabled. Disabling multiView as both cannot work together."),r=!1),r?this.canvas=R.get().createCanvas(this._renderer.canvas.width,this._renderer.canvas.height):this.canvas=this._renderer.view.canvas,e.context)this.initFromContext(e.context);else{const n=this._renderer.background.alpha<1,s=e.premultipliedAlpha??!0,i=e.antialias&&!this._renderer.backBuffer.useBackBuffer;this.createContext(e.preferWebGLVersion,{alpha:n,premultipliedAlpha:s,antialias:i,stencil:!0,preserveDrawingBuffer:e.preserveDrawingBuffer,powerPreference:e.powerPreference??"default"})}}ensureCanvasSize(e){if(!this.multiView){e!==this.canvas&&b("multiView is disabled, but targetCanvas is not the main canvas");return}const{canvas:r}=this;(r.width<e.width||r.height<e.height)&&(r.width=Math.max(e.width,e.width),r.height=Math.max(e.height,e.height))}initFromContext(e){this.gl=e,this.webGLVersion=e instanceof R.get().getWebGLRenderingContext()?1:2,this.getExtensions(),this.validateContext(e),this._renderer.runners.contextChange.emit(e);const r=this._renderer.view.canvas;r.addEventListener("webglcontextlost",this.handleContextLost,!1),r.addEventListener("webglcontextrestored",this.handleContextRestored,!1)}createContext(e,r){let n;const s=this.canvas;if(e===2&&(n=s.getContext("webgl2",r)),!n&&(n=s.getContext("webgl",r),!n))throw new Error("This browser does not support WebGL. Try using the canvas renderer");this.gl=n,this.initFromContext(this.gl)}getExtensions(){const{gl:e}=this,r={anisotropicFiltering:e.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc"),bptc:e.getExtension("EXT_texture_compression_bptc"),rgtc:e.getExtension("EXT_texture_compression_rgtc"),loseContext:e.getExtension("WEBGL_lose_context")};if(this.webGLVersion===1)this.extensions={...r,drawBuffers:e.getExtension("WEBGL_draw_buffers"),depthTexture:e.getExtension("WEBGL_depth_texture"),vertexArrayObject:e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:e.getExtension("OES_element_index_uint"),floatTexture:e.getExtension("OES_texture_float"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),textureHalfFloat:e.getExtension("OES_texture_half_float"),textureHalfFloatLinear:e.getExtension("OES_texture_half_float_linear"),vertexAttribDivisorANGLE:e.getExtension("ANGLE_instanced_arrays"),srgb:e.getExtension("EXT_sRGB")};else{this.extensions={...r,colorBufferFloat:e.getExtension("EXT_color_buffer_float")};const n=e.getExtension("WEBGL_provoking_vertex");n&&n.provokingVertexWEBGL(n.FIRST_VERTEX_CONVENTION_WEBGL)}}handleContextLost(e){e.preventDefault(),this._contextLossForced&&(this._contextLossForced=!1,setTimeout(()=>{this.gl.isContextLost()&&this.extensions.loseContext?.restoreContext()},0))}handleContextRestored(){this.getExtensions(),this._renderer.runners.contextChange.emit(this.gl)}destroy(){const e=this._renderer.view.canvas;this._renderer=null,e.removeEventListener("webglcontextlost",this.handleContextLost),e.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext?.loseContext()}forceContextLoss(){this.extensions.loseContext?.loseContext(),this._contextLossForced=!0}validateContext(e){const r=e.getContextAttributes();r&&!r.stencil&&b("Provided WebGL context does not have a stencil buffer, masks may not render correctly");const n=this.supports,s=this.webGLVersion===2,i=this.extensions;n.uint32Indices=s||!!i.uint32ElementIndex,n.uniformBufferObject=s,n.vertexArrayObject=s||!!i.vertexArrayObject,n.srgbTextures=s||!!i.srgb,n.nonPowOf2wrapping=s,n.nonPowOf2mipmaps=s,n.msaa=s,n.uint32Indices||b("Provided WebGL context does not support 32 index buffer, large scenes may not render correctly")}};L.extension={type:[d.WebGLSystem],name:"context"};L.defaultOptions={context:null,premultipliedAlpha:!0,preserveDrawingBuffer:!1,powerPreference:void 0,preferWebGLVersion:2,multiView:!1};let $e=L;var G=(t=>(t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t))(G||{}),w=(t=>(t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t))(w||{}),h=(t=>(t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT",t))(h||{});const k={uint8x2:h.UNSIGNED_BYTE,uint8x4:h.UNSIGNED_BYTE,sint8x2:h.BYTE,sint8x4:h.BYTE,unorm8x2:h.UNSIGNED_BYTE,unorm8x4:h.UNSIGNED_BYTE,snorm8x2:h.BYTE,snorm8x4:h.BYTE,uint16x2:h.UNSIGNED_SHORT,uint16x4:h.UNSIGNED_SHORT,sint16x2:h.SHORT,sint16x4:h.SHORT,unorm16x2:h.UNSIGNED_SHORT,unorm16x4:h.UNSIGNED_SHORT,snorm16x2:h.SHORT,snorm16x4:h.SHORT,float16x2:h.HALF_FLOAT,float16x4:h.HALF_FLOAT,float32:h.FLOAT,float32x2:h.FLOAT,float32x3:h.FLOAT,float32x4:h.FLOAT,uint32:h.UNSIGNED_INT,uint32x2:h.UNSIGNED_INT,uint32x3:h.UNSIGNED_INT,uint32x4:h.UNSIGNED_INT,sint32:h.INT,sint32x2:h.INT,sint32x3:h.INT,sint32x4:h.INT};function Ye(t){return k[t]??k.float32}const ze={"point-list":0,"line-list":1,"line-strip":3,"triangle-list":4,"triangle-strip":5};class qe{constructor(){this.vaoCache=Object.create(null)}destroy(){this.vaoCache=Object.create(null)}}class ae{constructor(e){this._renderer=e,this._activeGeometry=null,this._activeVao=null,this.hasVao=!0,this.hasInstance=!0,this._managedGeometries=new P({renderer:e,type:"resource",onUnload:this.onGeometryUnload.bind(this),name:"glGeometry"})}contextChange(){const e=this.gl=this._renderer.gl;if(!this._renderer.context.supports.vertexArrayObject)throw new Error("[PixiJS] Vertex Array Objects are not supported on this device");this.destroyAll(!0);const r=this._renderer.context.extensions.vertexArrayObject;r&&(e.createVertexArray=()=>r.createVertexArrayOES(),e.bindVertexArray=s=>r.bindVertexArrayOES(s),e.deleteVertexArray=s=>r.deleteVertexArrayOES(s));const n=this._renderer.context.extensions.vertexAttribDivisorANGLE;n&&(e.drawArraysInstanced=(s,i,a,c)=>{n.drawArraysInstancedANGLE(s,i,a,c)},e.drawElementsInstanced=(s,i,a,c,o)=>{n.drawElementsInstancedANGLE(s,i,a,c,o)},e.vertexAttribDivisor=(s,i)=>n.vertexAttribDivisorANGLE(s,i)),this._activeGeometry=null,this._activeVao=null}bind(e,r){const n=this.gl;this._activeGeometry=e;const s=this.getVao(e,r);this._activeVao!==s&&(this._activeVao=s,n.bindVertexArray(s)),this.updateBuffers()}resetState(){this.unbind()}updateBuffers(){const e=this._activeGeometry,r=this._renderer.buffer;for(let n=0;n<e.buffers.length;n++){const s=e.buffers[n];r.updateBuffer(s)}e._gcLastUsed=this._renderer.gc.now}checkCompatibility(e,r){const n=e.attributes,s=r._attributeData;for(const i in s)if(!n[i])throw new Error(`shader and geometry incompatible, geometry missing the "${i}" attribute`)}getSignature(e,r){const n=e.attributes,s=r._attributeData,i=["g",e.uid];for(const a in n)s[a]&&i.push(a,s[a].location);return i.join("-")}getVao(e,r){return e._gpuData[this._renderer.uid]?.vaoCache[r._key]||this.initGeometryVao(e,r)}initGeometryVao(e,r,n=!0){const s=this._renderer.gl,i=this._renderer.buffer;this._renderer.shader._getProgramData(r),this.checkCompatibility(e,r);const a=this.getSignature(e,r);let c=e._gpuData[this._renderer.uid];c||(c=new qe,e._gpuData[this._renderer.uid]=c,this._managedGeometries.add(e));const o=c.vaoCache;let u=o[a];if(u)return o[r._key]=u,u;Oe(e,r._attributeData);const _=e.buffers;u=s.createVertexArray(),s.bindVertexArray(u);for(let l=0;l<_.length;l++){const f=_[l];i.bind(f)}return this.activateVao(e,r),o[r._key]=u,o[a]=u,s.bindVertexArray(null),u}onGeometryUnload(e,r=!1){const n=e._gpuData[this._renderer.uid];if(!n)return;const s=n.vaoCache;if(!r)for(const i in s)this._activeVao!==s[i]&&this.resetState(),this.gl.deleteVertexArray(s[i])}destroyAll(e=!1){this._managedGeometries.removeAll(e)}activateVao(e,r){const n=this._renderer.gl,s=this._renderer.buffer,i=e.attributes;e.indexBuffer&&s.bind(e.indexBuffer);let a=null;for(const c in i){const o=i[c],u=o.buffer,_=s.getGlBuffer(u),l=r._attributeData[c];if(l){a!==_&&(s.bind(u),a=_);const f=l.location;n.enableVertexAttribArray(f);const m=q(o.format),p=Ye(o.format);if(l.format?.substring(1,4)==="int"?n.vertexAttribIPointer(f,m.size,p,o.stride,o.offset):n.vertexAttribPointer(f,m.size,p,m.normalised,o.stride,o.offset),o.instance)if(this.hasInstance){const E=o.divisor??1;n.vertexAttribDivisor(f,E)}else throw new Error("geometry error, GPU Instancing is not supported on this device")}}}draw(e,r,n,s){const{gl:i}=this._renderer,a=this._activeGeometry,c=ze[e||a.topology];if(s??(s=a.instanceCount),a.indexBuffer){const o=a.indexBuffer.data.BYTES_PER_ELEMENT,u=o===2?i.UNSIGNED_SHORT:i.UNSIGNED_INT;s!==1?i.drawElementsInstanced(c,r||a.indexBuffer.data.length,u,(n||0)*o,s):i.drawElements(c,r||a.indexBuffer.data.length,u,(n||0)*o)}else s!==1?i.drawArraysInstanced(c,n||0,r||a.getSize(),s):i.drawArrays(c,n||0,r||a.getSize());return this}unbind(){this.gl.bindVertexArray(null),this._activeVao=null,this._activeGeometry=null}destroy(){this._managedGeometries.destroy(),this._renderer=null,this.gl=null,this._activeVao=null,this._activeGeometry=null}}ae.extension={type:[d.WebGLSystem],name:"geometry"};const Ze=new Ne({attributes:{aPosition:[-1,-1,3,-1,-1,3]}}),H=class oe{constructor(e){this.useBackBuffer=!1,this._useBackBufferThisRender=!1,this._renderer=e}init(e={}){const{useBackBuffer:r,antialias:n}={...oe.defaultOptions,...e};this.useBackBuffer=r,this._antialias=n,this._renderer.context.supports.msaa||(b("antialiasing, is not supported on when using the back buffer"),this._antialias=!1),this._state=F.for2d();const s=new Ce({vertex:`
1
+ import{D as R,a as F,j as d,z as P,d as B,w as b,g as q,b as Ce,S as O,T as S,ak as Ne,L as Z,al as De,c as T,ab as X,q as y,K as C,N as M,r as g,M as J,am as Q,an as Ie,ao as ee,ap as Ge,aq as Ue,A as Fe,R as Pe}from"./RelationshipGalaxyCanvas-BODk18aA.js";import{e as Oe,G as Me,c as Le,b as we,U as He,B as te,d as N,f as re,g as Ve}from"./BufferResource-i64DlwQT.js";import{R as Xe,S as ke,d as We}from"./RenderTargetSystem-CVMvAUSv.js";import"./index-sWxuTsa7.js";import"./vendor-snapdom--nZvo8Sg.js";import"./index-C7omDgiJ.js";import"./Tabs-D1UiZNaZ.js";import"./RovingFocusItem-DC_06OmN.js";import"./useToast-BA0EwImD.js";import"./LoadingState.vue_vue_type_script_setup_true_lang-CwgpqtMZ.js";import"./people-page-header-0jvXFFnh.js";import"./relationship-galaxy-connections-Cg4G5yYE.js";import"./relationship-galaxy-viewport-Cwfa51ER.js";import"./Filter-yxkeHO78.js";function je(){const{userAgent:t}=R.get().getNavigator();return/^((?!chrome|android).)*safari/i.test(t)}class ne{constructor(){this._tempState=F.for2d(),this._didUploadHash={}}init(e){e.renderer.runners.contextChange.add(this)}contextChange(){this._didUploadHash={}}start(e,r,n){const s=e.renderer,i=this._didUploadHash[n.uid];s.shader.bind(n,i),i||(this._didUploadHash[n.uid]=!0),s.shader.updateUniformGroup(s.globalUniforms.uniformGroup),s.geometry.bind(r,n.glProgram)}execute(e,r){const n=e.renderer;this._tempState.blendMode=r.blendMode,n.state.set(this._tempState);const s=r.textures.textures;for(let i=0;i<r.textures.count;i++)n.texture.bind(s[i],i);n.geometry.draw(r.topology,r.size,r.start)}}ne.extension={type:[d.WebGLPipesAdaptor],name:"batch"};var A=(t=>(t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",t))(A||{});class Ke{constructor(e,r){this._lastBindBaseLocation=-1,this._lastBindCallId=-1,this.buffer=e||null,this.updateID=-1,this.byteLength=-1,this.type=r}destroy(){this.buffer=null,this.updateID=-1,this.byteLength=-1,this.type=-1,this._lastBindBaseLocation=-1,this._lastBindCallId=-1}}class se{constructor(e){this._boundBufferBases=Object.create(null),this._minBaseLocation=0,this._nextBindBaseIndex=this._minBaseLocation,this._bindCallId=0,this._renderer=e,this._managedBuffers=new P({renderer:e,type:"resource",onUnload:this.onBufferUnload.bind(this),name:"glBuffer"})}destroy(){this._managedBuffers.destroy(),this._renderer=null,this._gl=null,this._boundBufferBases={}}contextChange(){this._gl=this._renderer.gl,this.destroyAll(!0),this._maxBindings=this._renderer.limits.maxUniformBindings}getGlBuffer(e){return e._gcLastUsed=this._renderer.gc.now,e._gpuData[this._renderer.uid]||this.createGLBuffer(e)}bind(e){const{_gl:r}=this,n=this.getGlBuffer(e);r.bindBuffer(n.type,n.buffer)}bindBufferBase(e,r){const{_gl:n}=this;this._boundBufferBases[r]!==e&&(this._boundBufferBases[r]=e,e._lastBindBaseLocation=r,n.bindBufferBase(n.UNIFORM_BUFFER,r,e.buffer))}nextBindBase(e){this._bindCallId++,this._minBaseLocation=0,e&&(this._boundBufferBases[0]=null,this._minBaseLocation=1,this._nextBindBaseIndex<1&&(this._nextBindBaseIndex=1))}freeLocationForBufferBase(e){let r=this.getLastBindBaseLocation(e);if(r>=this._minBaseLocation)return e._lastBindCallId=this._bindCallId,r;let n=0,s=this._nextBindBaseIndex;for(;n<2;){s>=this._maxBindings&&(s=this._minBaseLocation,n++);const i=this._boundBufferBases[s];if(i&&i._lastBindCallId===this._bindCallId){s++;continue}break}return r=s,this._nextBindBaseIndex=s+1,n>=2?-1:(e._lastBindCallId=this._bindCallId,this._boundBufferBases[r]=null,r)}getLastBindBaseLocation(e){const r=e._lastBindBaseLocation;return this._boundBufferBases[r]===e?r:-1}bindBufferRange(e,r,n,s){const{_gl:i}=this;n||(n=0),r||(r=0),this._boundBufferBases[r]=null,i.bindBufferRange(i.UNIFORM_BUFFER,r||0,e.buffer,n*256,s||256)}updateBuffer(e){const{_gl:r}=this,n=this.getGlBuffer(e);if(e._updateID===n.updateID)return n;n.updateID=e._updateID,r.bindBuffer(n.type,n.buffer);const s=e.data,i=e.descriptor.usage&B.STATIC?r.STATIC_DRAW:r.DYNAMIC_DRAW;return s?n.byteLength>=s.byteLength?r.bufferSubData(n.type,0,s,0,e._updateSize/s.BYTES_PER_ELEMENT):(n.byteLength=s.byteLength,r.bufferData(n.type,s,i)):(n.byteLength=e.descriptor.size,r.bufferData(n.type,n.byteLength,i)),n}destroyAll(e=!1){this._managedBuffers.removeAll(e)}onBufferUnload(e,r=!1){const n=e._gpuData[this._renderer.uid];n&&(r||this._gl.deleteBuffer(n.buffer))}createGLBuffer(e){const{_gl:r}=this;let n=A.ARRAY_BUFFER;e.descriptor.usage&B.INDEX?n=A.ELEMENT_ARRAY_BUFFER:e.descriptor.usage&B.UNIFORM&&(n=A.UNIFORM_BUFFER);const s=new Ke(r.createBuffer(),n);return e._gpuData[this._renderer.uid]=s,this._managedBuffers.add(e),s}resetState(){this._boundBufferBases=Object.create(null)}}se.extension={type:[d.WebGLSystem],name:"buffer"};const L=class ie{constructor(e){this.supports={uint32Indices:!0,uniformBufferObject:!0,vertexArrayObject:!0,srgbTextures:!0,nonPowOf2wrapping:!0,msaa:!0,nonPowOf2mipmaps:!0},this._renderer=e,this.extensions=Object.create(null),this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this)}get isLost(){return!this.gl||this.gl.isContextLost()}contextChange(e){this.gl=e,this._renderer.gl=e}init(e){e={...ie.defaultOptions,...e};let r=this.multiView=e.multiView;if(e.context&&r&&(b("Renderer created with both a context and multiview enabled. Disabling multiView as both cannot work together."),r=!1),r?this.canvas=R.get().createCanvas(this._renderer.canvas.width,this._renderer.canvas.height):this.canvas=this._renderer.view.canvas,e.context)this.initFromContext(e.context);else{const n=this._renderer.background.alpha<1,s=e.premultipliedAlpha??!0,i=e.antialias&&!this._renderer.backBuffer.useBackBuffer;this.createContext(e.preferWebGLVersion,{alpha:n,premultipliedAlpha:s,antialias:i,stencil:!0,preserveDrawingBuffer:e.preserveDrawingBuffer,powerPreference:e.powerPreference??"default"})}}ensureCanvasSize(e){if(!this.multiView){e!==this.canvas&&b("multiView is disabled, but targetCanvas is not the main canvas");return}const{canvas:r}=this;(r.width<e.width||r.height<e.height)&&(r.width=Math.max(e.width,e.width),r.height=Math.max(e.height,e.height))}initFromContext(e){this.gl=e,this.webGLVersion=e instanceof R.get().getWebGLRenderingContext()?1:2,this.getExtensions(),this.validateContext(e),this._renderer.runners.contextChange.emit(e);const r=this._renderer.view.canvas;r.addEventListener("webglcontextlost",this.handleContextLost,!1),r.addEventListener("webglcontextrestored",this.handleContextRestored,!1)}createContext(e,r){let n;const s=this.canvas;if(e===2&&(n=s.getContext("webgl2",r)),!n&&(n=s.getContext("webgl",r),!n))throw new Error("This browser does not support WebGL. Try using the canvas renderer");this.gl=n,this.initFromContext(this.gl)}getExtensions(){const{gl:e}=this,r={anisotropicFiltering:e.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc"),bptc:e.getExtension("EXT_texture_compression_bptc"),rgtc:e.getExtension("EXT_texture_compression_rgtc"),loseContext:e.getExtension("WEBGL_lose_context")};if(this.webGLVersion===1)this.extensions={...r,drawBuffers:e.getExtension("WEBGL_draw_buffers"),depthTexture:e.getExtension("WEBGL_depth_texture"),vertexArrayObject:e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:e.getExtension("OES_element_index_uint"),floatTexture:e.getExtension("OES_texture_float"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),textureHalfFloat:e.getExtension("OES_texture_half_float"),textureHalfFloatLinear:e.getExtension("OES_texture_half_float_linear"),vertexAttribDivisorANGLE:e.getExtension("ANGLE_instanced_arrays"),srgb:e.getExtension("EXT_sRGB")};else{this.extensions={...r,colorBufferFloat:e.getExtension("EXT_color_buffer_float")};const n=e.getExtension("WEBGL_provoking_vertex");n&&n.provokingVertexWEBGL(n.FIRST_VERTEX_CONVENTION_WEBGL)}}handleContextLost(e){e.preventDefault(),this._contextLossForced&&(this._contextLossForced=!1,setTimeout(()=>{this.gl.isContextLost()&&this.extensions.loseContext?.restoreContext()},0))}handleContextRestored(){this.getExtensions(),this._renderer.runners.contextChange.emit(this.gl)}destroy(){const e=this._renderer.view.canvas;this._renderer=null,e.removeEventListener("webglcontextlost",this.handleContextLost),e.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext?.loseContext()}forceContextLoss(){this.extensions.loseContext?.loseContext(),this._contextLossForced=!0}validateContext(e){const r=e.getContextAttributes();r&&!r.stencil&&b("Provided WebGL context does not have a stencil buffer, masks may not render correctly");const n=this.supports,s=this.webGLVersion===2,i=this.extensions;n.uint32Indices=s||!!i.uint32ElementIndex,n.uniformBufferObject=s,n.vertexArrayObject=s||!!i.vertexArrayObject,n.srgbTextures=s||!!i.srgb,n.nonPowOf2wrapping=s,n.nonPowOf2mipmaps=s,n.msaa=s,n.uint32Indices||b("Provided WebGL context does not support 32 index buffer, large scenes may not render correctly")}};L.extension={type:[d.WebGLSystem],name:"context"};L.defaultOptions={context:null,premultipliedAlpha:!0,preserveDrawingBuffer:!1,powerPreference:void 0,preferWebGLVersion:2,multiView:!1};let $e=L;var G=(t=>(t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t))(G||{}),w=(t=>(t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t))(w||{}),h=(t=>(t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT",t))(h||{});const k={uint8x2:h.UNSIGNED_BYTE,uint8x4:h.UNSIGNED_BYTE,sint8x2:h.BYTE,sint8x4:h.BYTE,unorm8x2:h.UNSIGNED_BYTE,unorm8x4:h.UNSIGNED_BYTE,snorm8x2:h.BYTE,snorm8x4:h.BYTE,uint16x2:h.UNSIGNED_SHORT,uint16x4:h.UNSIGNED_SHORT,sint16x2:h.SHORT,sint16x4:h.SHORT,unorm16x2:h.UNSIGNED_SHORT,unorm16x4:h.UNSIGNED_SHORT,snorm16x2:h.SHORT,snorm16x4:h.SHORT,float16x2:h.HALF_FLOAT,float16x4:h.HALF_FLOAT,float32:h.FLOAT,float32x2:h.FLOAT,float32x3:h.FLOAT,float32x4:h.FLOAT,uint32:h.UNSIGNED_INT,uint32x2:h.UNSIGNED_INT,uint32x3:h.UNSIGNED_INT,uint32x4:h.UNSIGNED_INT,sint32:h.INT,sint32x2:h.INT,sint32x3:h.INT,sint32x4:h.INT};function Ye(t){return k[t]??k.float32}const ze={"point-list":0,"line-list":1,"line-strip":3,"triangle-list":4,"triangle-strip":5};class qe{constructor(){this.vaoCache=Object.create(null)}destroy(){this.vaoCache=Object.create(null)}}class ae{constructor(e){this._renderer=e,this._activeGeometry=null,this._activeVao=null,this.hasVao=!0,this.hasInstance=!0,this._managedGeometries=new P({renderer:e,type:"resource",onUnload:this.onGeometryUnload.bind(this),name:"glGeometry"})}contextChange(){const e=this.gl=this._renderer.gl;if(!this._renderer.context.supports.vertexArrayObject)throw new Error("[PixiJS] Vertex Array Objects are not supported on this device");this.destroyAll(!0);const r=this._renderer.context.extensions.vertexArrayObject;r&&(e.createVertexArray=()=>r.createVertexArrayOES(),e.bindVertexArray=s=>r.bindVertexArrayOES(s),e.deleteVertexArray=s=>r.deleteVertexArrayOES(s));const n=this._renderer.context.extensions.vertexAttribDivisorANGLE;n&&(e.drawArraysInstanced=(s,i,a,c)=>{n.drawArraysInstancedANGLE(s,i,a,c)},e.drawElementsInstanced=(s,i,a,c,o)=>{n.drawElementsInstancedANGLE(s,i,a,c,o)},e.vertexAttribDivisor=(s,i)=>n.vertexAttribDivisorANGLE(s,i)),this._activeGeometry=null,this._activeVao=null}bind(e,r){const n=this.gl;this._activeGeometry=e;const s=this.getVao(e,r);this._activeVao!==s&&(this._activeVao=s,n.bindVertexArray(s)),this.updateBuffers()}resetState(){this.unbind()}updateBuffers(){const e=this._activeGeometry,r=this._renderer.buffer;for(let n=0;n<e.buffers.length;n++){const s=e.buffers[n];r.updateBuffer(s)}e._gcLastUsed=this._renderer.gc.now}checkCompatibility(e,r){const n=e.attributes,s=r._attributeData;for(const i in s)if(!n[i])throw new Error(`shader and geometry incompatible, geometry missing the "${i}" attribute`)}getSignature(e,r){const n=e.attributes,s=r._attributeData,i=["g",e.uid];for(const a in n)s[a]&&i.push(a,s[a].location);return i.join("-")}getVao(e,r){return e._gpuData[this._renderer.uid]?.vaoCache[r._key]||this.initGeometryVao(e,r)}initGeometryVao(e,r,n=!0){const s=this._renderer.gl,i=this._renderer.buffer;this._renderer.shader._getProgramData(r),this.checkCompatibility(e,r);const a=this.getSignature(e,r);let c=e._gpuData[this._renderer.uid];c||(c=new qe,e._gpuData[this._renderer.uid]=c,this._managedGeometries.add(e));const o=c.vaoCache;let u=o[a];if(u)return o[r._key]=u,u;Oe(e,r._attributeData);const _=e.buffers;u=s.createVertexArray(),s.bindVertexArray(u);for(let l=0;l<_.length;l++){const f=_[l];i.bind(f)}return this.activateVao(e,r),o[r._key]=u,o[a]=u,s.bindVertexArray(null),u}onGeometryUnload(e,r=!1){const n=e._gpuData[this._renderer.uid];if(!n)return;const s=n.vaoCache;if(!r)for(const i in s)this._activeVao!==s[i]&&this.resetState(),this.gl.deleteVertexArray(s[i])}destroyAll(e=!1){this._managedGeometries.removeAll(e)}activateVao(e,r){const n=this._renderer.gl,s=this._renderer.buffer,i=e.attributes;e.indexBuffer&&s.bind(e.indexBuffer);let a=null;for(const c in i){const o=i[c],u=o.buffer,_=s.getGlBuffer(u),l=r._attributeData[c];if(l){a!==_&&(s.bind(u),a=_);const f=l.location;n.enableVertexAttribArray(f);const m=q(o.format),p=Ye(o.format);if(l.format?.substring(1,4)==="int"?n.vertexAttribIPointer(f,m.size,p,o.stride,o.offset):n.vertexAttribPointer(f,m.size,p,m.normalised,o.stride,o.offset),o.instance)if(this.hasInstance){const E=o.divisor??1;n.vertexAttribDivisor(f,E)}else throw new Error("geometry error, GPU Instancing is not supported on this device")}}}draw(e,r,n,s){const{gl:i}=this._renderer,a=this._activeGeometry,c=ze[e||a.topology];if(s??(s=a.instanceCount),a.indexBuffer){const o=a.indexBuffer.data.BYTES_PER_ELEMENT,u=o===2?i.UNSIGNED_SHORT:i.UNSIGNED_INT;s!==1?i.drawElementsInstanced(c,r||a.indexBuffer.data.length,u,(n||0)*o,s):i.drawElements(c,r||a.indexBuffer.data.length,u,(n||0)*o)}else s!==1?i.drawArraysInstanced(c,n||0,r||a.getSize(),s):i.drawArrays(c,n||0,r||a.getSize());return this}unbind(){this.gl.bindVertexArray(null),this._activeVao=null,this._activeGeometry=null}destroy(){this._managedGeometries.destroy(),this._renderer=null,this.gl=null,this._activeVao=null,this._activeGeometry=null}}ae.extension={type:[d.WebGLSystem],name:"geometry"};const Ze=new Ne({attributes:{aPosition:[-1,-1,3,-1,-1,3]}}),H=class oe{constructor(e){this.useBackBuffer=!1,this._useBackBufferThisRender=!1,this._renderer=e}init(e={}){const{useBackBuffer:r,antialias:n}={...oe.defaultOptions,...e};this.useBackBuffer=r,this._antialias=n,this._renderer.context.supports.msaa||(b("antialiasing, is not supported on when using the back buffer"),this._antialias=!1),this._state=F.for2d();const s=new Ce({vertex:`
2
2
  attribute vec2 aPosition;
3
3
  out vec2 vUv;
4
4
 
@@ -1,4 +1,4 @@
1
- import{y as L,a as D,j as l,z as k,e as pe,H as le,D as T,c as C,d as B,B as fe,I as z,J as w,w as v,K as y,q as ge,L as me,N as O,O as R,r as G,M as F,Q as I,V as _e,W,X as be,S as H,T as E,A as xe,R as ye}from"./RelationshipGalaxyCanvas-6EamagxG.js";import{c as Ge,u as Pe,U as Se,B as Te,G as Be,e as Ce,l as ve,a as Ue,t as Me}from"./BufferResource-BXSJADxx.js";import{R as we,S as Re,d as Ee}from"./RenderTargetSystem-mYuj4uBS.js";import"./index-D5m0P4ss.js";import"./vendor-snapdom--nZvo8Sg.js";import"./index-IA7YUjQX.js";import"./Tabs-OrJkANIA.js";import"./RovingFocusItem-B2y6BG1a.js";import"./useToast-B36MzFFy.js";import"./LoadingState.vue_vue_type_script_setup_true_lang-Cnshyn0f.js";import"./people-page-header-Bh3KXD4g.js";import"./relationship-galaxy-connections-Cg4G5yYE.js";import"./relationship-galaxy-viewport-Cwfa51ER.js";import"./Filter-DVaqcFmI.js";const P=D.for2d();class N{start(e,t,r){const s=e.renderer,i=s.encoder,n=r.gpuProgram;this._shader=r,this._geometry=t,i.setGeometry(t,n),P.blendMode="normal",s.pipeline.getPipeline(t,n,P);const o=s.globalUniforms.bindGroup;i.resetBindGroup(1),i.setBindGroup(0,o,n)}execute(e,t){const r=this._shader.gpuProgram,s=e.renderer,i=s.encoder;if(!t.bindGroup){const u=t.textures;t.bindGroup=L(u.textures,u.count,s.limits.maxBatchableTextures)}P.blendMode=t.blendMode;const n=s.bindGroup.getBindGroup(t.bindGroup,r,1),o=s.pipeline.getPipeline(this._geometry,r,P,t.topology);t.bindGroup._touch(s.gc.now,s.tick),i.setPipeline(o),i.renderPassEncoder.setBindGroup(1,n),i.renderPassEncoder.drawIndexed(t.size,1,t.start)}}N.extension={type:[l.WebGPUPipesAdaptor],name:"batch"};class V{constructor(e){this._hash=Object.create(null),this._renderer=e}contextChange(e){this._gpu=e}getBindGroup(e,t,r){return e._updateKey(),this._hash[e._key]||this._createBindGroup(e,t,r)}_createBindGroup(e,t,r){const s=this._gpu.device,i=t.layout[r],n=[],o=this._renderer;for(const g in i){const p=e.resources[g]??e.resources[i[g]];let h;if(p._resourceType==="uniformGroup"){const d=p;o.ubo.updateUniformGroup(d);const f=d.buffer;h={buffer:o.buffer.getGPUBuffer(f),offset:0,size:f.descriptor.size}}else if(p._resourceType==="buffer"){const d=p;h={buffer:o.buffer.getGPUBuffer(d),offset:0,size:d.descriptor.size}}else if(p._resourceType==="bufferResource"){const d=p;h={buffer:o.buffer.getGPUBuffer(d.buffer),offset:d.offset,size:d.size}}else if(p._resourceType==="textureSampler"){const d=p;h=o.texture.getGpuSampler(d)}else if(p._resourceType==="textureSource"){const d=p;h=o.texture.getTextureView(d)}n.push({binding:i[g],resource:h})}const u=o.shader.getProgramData(t).bindGroups[r],c=s.createBindGroup({layout:u,entries:n});return this._hash[e._key]=c,c}destroy(){this._hash=null,this._renderer=null}}V.extension={type:[l.WebGPUSystem],name:"bindGroup"};class Ae{constructor(e){this.gpuBuffer=e}destroy(){this.gpuBuffer.destroy(),this.gpuBuffer=null}}class j{constructor(e){this._renderer=e,this._managedBuffers=new k({renderer:e,type:"resource",onUnload:this.onBufferUnload.bind(this),name:"gpuBuffer"})}contextChange(e){this._gpu=e}getGPUBuffer(e){return e._gcLastUsed=this._renderer.gc.now,e._gpuData[this._renderer.uid]?.gpuBuffer||this.createGPUBuffer(e)}updateBuffer(e){const t=this.getGPUBuffer(e),r=e.data;return e._updateID&&r&&(e._updateID=0,this._gpu.device.queue.writeBuffer(t,0,r.buffer,0,(e._updateSize||r.byteLength)+3&-4)),t}destroyAll(){this._managedBuffers.removeAll()}onBufferUnload(e){e.off("update",this.updateBuffer,this),e.off("change",this.onBufferChange,this)}createGPUBuffer(e){const t=this._gpu.device.createBuffer(e.descriptor);return e._updateID=0,e._resourceId=pe("resource"),e.data&&(le(e.data.buffer,t.getMappedRange(),e.data.byteOffset,e.data.byteLength),t.unmap()),e._gpuData[this._renderer.uid]=new Ae(t),this._managedBuffers.add(e)&&(e.on("update",this.updateBuffer,this),e.on("change",this.onBufferChange,this)),t}onBufferChange(e){this._managedBuffers.remove(e),e._updateID=0,this.createGPUBuffer(e)}destroy(){this._managedBuffers.destroy(),this._renderer=null,this._gpu=null}}j.extension={type:[l.WebGPUSystem],name:"buffer"};class Le{constructor({minUniformOffsetAlignment:e}){this._minUniformOffsetAlignment=256,this.byteIndex=0,this._minUniformOffsetAlignment=e,this.data=new Float32Array(65535)}clear(){this.byteIndex=0}addEmptyGroup(e){if(e>this._minUniformOffsetAlignment/4)throw new Error(`UniformBufferBatch: array is too large: ${e*4}`);const t=this.byteIndex;let r=t+e*4;if(r=Math.ceil(r/this._minUniformOffsetAlignment)*this._minUniformOffsetAlignment,r>this.data.length*4)throw new Error("UniformBufferBatch: ubo batch got too big");return this.byteIndex=r,t}addGroup(e){const t=this.addEmptyGroup(e.length);for(let r=0;r<e.length;r++)this.data[t/4+r]=e[r];return t}destroy(){this.data=null}}class K{constructor(e){this._colorMaskCache=15,this._renderer=e}setMask(e){this._colorMaskCache!==e&&(this._colorMaskCache=e,this._renderer.pipeline.setColorMask(e))}destroy(){this._renderer=null,this._colorMaskCache=null}}K.extension={type:[l.WebGPUSystem],name:"colorMask"};class U{constructor(e){this._renderer=e}async init(e){return this._initPromise?this._initPromise:(this._initPromise=(e.gpu?Promise.resolve(e.gpu):this._createDeviceAndAdaptor(e)).then(t=>{this.gpu=t,this.extensions={transientAttachment:typeof GPUTextureUsage.TRANSIENT_ATTACHMENT=="number"},this._renderer.runners.contextChange.emit(this.gpu)}),this._initPromise)}contextChange(e){this._renderer.gpu=e}async _createDeviceAndAdaptor(e){const t=await T.get().getNavigator().gpu.requestAdapter({powerPreference:e.powerPreference,forceFallbackAdapter:e.forceFallbackAdapter}),r=["texture-compression-bc","texture-compression-astc","texture-compression-etc2"].filter(i=>t.features.has(i)),s=await t.requestDevice({requiredFeatures:r});return{adapter:t,device:s}}destroy(){this.gpu=null,this.extensions=null,this._renderer=null}}U.extension={type:[l.WebGPUSystem],name:"device"};U.defaultOptions={powerPreference:void 0,forceFallbackAdapter:!1};class q{constructor(e){this._boundBindGroup=Object.create(null),this._boundVertexBuffer=Object.create(null),this._renderer=e}renderStart(){this.commandFinished=new Promise(e=>{this._resolveCommandFinished=e}),this.commandEncoder=this._renderer.gpu.device.createCommandEncoder()}beginRenderPass(e){this.endRenderPass(),this._clearCache(),this.renderPassEncoder=this.commandEncoder.beginRenderPass(e.descriptor)}endRenderPass(){this.renderPassEncoder&&this.renderPassEncoder.end(),this.renderPassEncoder=null}setViewport(e){this.renderPassEncoder.setViewport(e.x,e.y,e.width,e.height,0,1)}setPipelineFromGeometryProgramAndState(e,t,r,s){const i=this._renderer.pipeline.getPipeline(e,t,r,s);this.setPipeline(i)}setPipeline(e){this._boundPipeline!==e&&(this._boundPipeline=e,this.renderPassEncoder.setPipeline(e))}_setVertexBuffer(e,t){this._boundVertexBuffer[e]!==t&&(this._boundVertexBuffer[e]=t,this.renderPassEncoder.setVertexBuffer(e,this._renderer.buffer.updateBuffer(t)))}_setIndexBuffer(e){if(this._boundIndexBuffer===e)return;this._boundIndexBuffer=e;const t=e.data.BYTES_PER_ELEMENT===2?"uint16":"uint32";this.renderPassEncoder.setIndexBuffer(this._renderer.buffer.updateBuffer(e),t)}resetBindGroup(e){this._boundBindGroup[e]=null}setBindGroup(e,t,r){if(this._boundBindGroup[e]===t)return;this._boundBindGroup[e]=t,t._touch(this._renderer.gc.now,this._renderer.tick);const s=this._renderer.bindGroup.getBindGroup(t,r,e);this.renderPassEncoder.setBindGroup(e,s)}setGeometry(e,t){const r=this._renderer.pipeline.getBufferNamesToBind(e,t);for(const s in r)this._setVertexBuffer(parseInt(s,10),e.attributes[r[s]].buffer);e.indexBuffer&&this._setIndexBuffer(e.indexBuffer)}_setShaderBindGroups(e,t){for(const r in e.groups){const s=e.groups[r];t||this._syncBindGroup(s),this.setBindGroup(r,s,e.gpuProgram)}}_syncBindGroup(e){for(const t in e.resources){const r=e.resources[t];r.isUniformGroup&&this._renderer.ubo.updateUniformGroup(r)}}draw(e){const{geometry:t,shader:r,state:s,topology:i,size:n,start:o,instanceCount:u,skipSync:c}=e;this.setPipelineFromGeometryProgramAndState(t,r.gpuProgram,s,i),this.setGeometry(t,r.gpuProgram),this._setShaderBindGroups(r,c),t.indexBuffer?this.renderPassEncoder.drawIndexed(n||t.indexBuffer.data.length,u??t.instanceCount,o||0):this.renderPassEncoder.draw(n||t.getSize(),u??t.instanceCount,o||0)}finishRenderPass(){this.renderPassEncoder&&(this.renderPassEncoder.end(),this.renderPassEncoder=null)}postrender(){this.finishRenderPass(),this._gpu.device.queue.submit([this.commandEncoder.finish()]),this._resolveCommandFinished(),this.commandEncoder=null}restoreRenderPass(){const e=this._renderer.renderTarget.adaptor.getDescriptor(this._renderer.renderTarget.renderTarget,!1,[0,0,0,1],this._renderer.renderTarget.mipLevel,this._renderer.renderTarget.layer);this.renderPassEncoder=this.commandEncoder.beginRenderPass(e);const t=this._boundPipeline,r={...this._boundVertexBuffer},s=this._boundIndexBuffer,i={...this._boundBindGroup};this._clearCache();const n=this._renderer.renderTarget.viewport;this.renderPassEncoder.setViewport(n.x,n.y,n.width,n.height,0,1),this.setPipeline(t);for(const o in r)this._setVertexBuffer(o,r[o]);for(const o in i)this.setBindGroup(o,i[o],null);this._setIndexBuffer(s)}_clearCache(){for(let e=0;e<16;e++)this._boundBindGroup[e]=null,this._boundVertexBuffer[e]=null;this._boundIndexBuffer=null,this._boundPipeline=null}destroy(){this._renderer=null,this._gpu=null,this._boundBindGroup=null,this._boundVertexBuffer=null,this._boundIndexBuffer=null,this._boundPipeline=null}contextChange(e){this._gpu=e}}q.extension={type:[l.WebGPUSystem],name:"encoder",priority:1};class Y{constructor(e){this._renderer=e}contextChange(){this.maxTextures=this._renderer.device.gpu.device.limits.maxSampledTexturesPerShaderStage,this.maxBatchableTextures=this.maxTextures}destroy(){}}Y.extension={type:[l.WebGPUSystem],name:"limits"};class ${constructor(e){this._renderTargetStencilState=Object.create(null),this._renderer=e,e.renderTarget.onRenderTargetChange.add(this)}onRenderTargetChange(e){let t=this._renderTargetStencilState[e.uid];t||(t=this._renderTargetStencilState[e.uid]={stencilMode:C.DISABLED,stencilReference:0}),this._activeRenderTarget=e,this.setStencilMode(t.stencilMode,t.stencilReference)}setStencilMode(e,t){const r=this._renderTargetStencilState[this._activeRenderTarget.uid];r.stencilMode=e,r.stencilReference=t;const s=this._renderer;s.pipeline.setStencilMode(e),s.encoder.renderPassEncoder.setStencilReference(t)}destroy(){this._renderer.renderTarget.onRenderTargetChange.remove(this),this._renderer=null,this._activeRenderTarget=null,this._renderTargetStencilState=null}}$.extension={type:[l.WebGPUSystem],name:"stencil"};const S={i32:{align:4,size:4},u32:{align:4,size:4},f32:{align:4,size:4},f16:{align:2,size:2},"vec2<i32>":{align:8,size:8},"vec2<u32>":{align:8,size:8},"vec2<f32>":{align:8,size:8},"vec2<f16>":{align:4,size:4},"vec3<i32>":{align:16,size:12},"vec3<u32>":{align:16,size:12},"vec3<f32>":{align:16,size:12},"vec3<f16>":{align:8,size:6},"vec4<i32>":{align:16,size:16},"vec4<u32>":{align:16,size:16},"vec4<f32>":{align:16,size:16},"vec4<f16>":{align:8,size:8},"mat2x2<f32>":{align:8,size:16},"mat2x2<f16>":{align:4,size:8},"mat3x2<f32>":{align:8,size:24},"mat3x2<f16>":{align:4,size:12},"mat4x2<f32>":{align:8,size:32},"mat4x2<f16>":{align:4,size:16},"mat2x3<f32>":{align:16,size:32},"mat2x3<f16>":{align:8,size:16},"mat3x3<f32>":{align:16,size:48},"mat3x3<f16>":{align:8,size:24},"mat4x3<f32>":{align:16,size:64},"mat4x3<f16>":{align:8,size:32},"mat2x4<f32>":{align:16,size:32},"mat2x4<f16>":{align:8,size:16},"mat3x4<f32>":{align:16,size:48},"mat3x4<f16>":{align:8,size:24},"mat4x4<f32>":{align:16,size:64},"mat4x4<f16>":{align:8,size:32}};function De(a){const e=a.map(r=>({data:r,offset:0,size:0}));let t=0;for(let r=0;r<e.length;r++){const s=e[r];let i=S[s.data.type].size;const n=S[s.data.type].align;if(!S[s.data.type])throw new Error(`[Pixi.js] WebGPU UniformBuffer: Unknown type ${s.data.type}`);s.data.size>1&&(i=Math.max(i,n)*s.data.size),t=Math.ceil(t/n)*n,s.size=i,s.offset=t,t+=i}return t=Math.ceil(t/16)*16,{uboElements:e,size:t}}function ke(a,e){const{size:t,align:r}=S[a.data.type],s=(r-t)/4,i=a.data.type.indexOf("i32")>=0?"dataInt32":"data";return`
1
+ import{y as L,a as D,j as l,z as k,e as pe,H as le,D as T,c as C,d as B,B as fe,I as z,J as w,w as v,K as y,q as ge,L as me,N as O,O as R,r as G,M as F,Q as I,V as _e,W,X as be,S as H,T as E,A as xe,R as ye}from"./RelationshipGalaxyCanvas-BODk18aA.js";import{c as Ge,u as Pe,U as Se,B as Te,G as Be,e as Ce,l as ve,a as Ue,t as Me}from"./BufferResource-i64DlwQT.js";import{R as we,S as Re,d as Ee}from"./RenderTargetSystem-CVMvAUSv.js";import"./index-sWxuTsa7.js";import"./vendor-snapdom--nZvo8Sg.js";import"./index-C7omDgiJ.js";import"./Tabs-D1UiZNaZ.js";import"./RovingFocusItem-DC_06OmN.js";import"./useToast-BA0EwImD.js";import"./LoadingState.vue_vue_type_script_setup_true_lang-CwgpqtMZ.js";import"./people-page-header-0jvXFFnh.js";import"./relationship-galaxy-connections-Cg4G5yYE.js";import"./relationship-galaxy-viewport-Cwfa51ER.js";import"./Filter-yxkeHO78.js";const P=D.for2d();class N{start(e,t,r){const s=e.renderer,i=s.encoder,n=r.gpuProgram;this._shader=r,this._geometry=t,i.setGeometry(t,n),P.blendMode="normal",s.pipeline.getPipeline(t,n,P);const o=s.globalUniforms.bindGroup;i.resetBindGroup(1),i.setBindGroup(0,o,n)}execute(e,t){const r=this._shader.gpuProgram,s=e.renderer,i=s.encoder;if(!t.bindGroup){const u=t.textures;t.bindGroup=L(u.textures,u.count,s.limits.maxBatchableTextures)}P.blendMode=t.blendMode;const n=s.bindGroup.getBindGroup(t.bindGroup,r,1),o=s.pipeline.getPipeline(this._geometry,r,P,t.topology);t.bindGroup._touch(s.gc.now,s.tick),i.setPipeline(o),i.renderPassEncoder.setBindGroup(1,n),i.renderPassEncoder.drawIndexed(t.size,1,t.start)}}N.extension={type:[l.WebGPUPipesAdaptor],name:"batch"};class V{constructor(e){this._hash=Object.create(null),this._renderer=e}contextChange(e){this._gpu=e}getBindGroup(e,t,r){return e._updateKey(),this._hash[e._key]||this._createBindGroup(e,t,r)}_createBindGroup(e,t,r){const s=this._gpu.device,i=t.layout[r],n=[],o=this._renderer;for(const g in i){const p=e.resources[g]??e.resources[i[g]];let h;if(p._resourceType==="uniformGroup"){const d=p;o.ubo.updateUniformGroup(d);const f=d.buffer;h={buffer:o.buffer.getGPUBuffer(f),offset:0,size:f.descriptor.size}}else if(p._resourceType==="buffer"){const d=p;h={buffer:o.buffer.getGPUBuffer(d),offset:0,size:d.descriptor.size}}else if(p._resourceType==="bufferResource"){const d=p;h={buffer:o.buffer.getGPUBuffer(d.buffer),offset:d.offset,size:d.size}}else if(p._resourceType==="textureSampler"){const d=p;h=o.texture.getGpuSampler(d)}else if(p._resourceType==="textureSource"){const d=p;h=o.texture.getTextureView(d)}n.push({binding:i[g],resource:h})}const u=o.shader.getProgramData(t).bindGroups[r],c=s.createBindGroup({layout:u,entries:n});return this._hash[e._key]=c,c}destroy(){this._hash=null,this._renderer=null}}V.extension={type:[l.WebGPUSystem],name:"bindGroup"};class Ae{constructor(e){this.gpuBuffer=e}destroy(){this.gpuBuffer.destroy(),this.gpuBuffer=null}}class j{constructor(e){this._renderer=e,this._managedBuffers=new k({renderer:e,type:"resource",onUnload:this.onBufferUnload.bind(this),name:"gpuBuffer"})}contextChange(e){this._gpu=e}getGPUBuffer(e){return e._gcLastUsed=this._renderer.gc.now,e._gpuData[this._renderer.uid]?.gpuBuffer||this.createGPUBuffer(e)}updateBuffer(e){const t=this.getGPUBuffer(e),r=e.data;return e._updateID&&r&&(e._updateID=0,this._gpu.device.queue.writeBuffer(t,0,r.buffer,0,(e._updateSize||r.byteLength)+3&-4)),t}destroyAll(){this._managedBuffers.removeAll()}onBufferUnload(e){e.off("update",this.updateBuffer,this),e.off("change",this.onBufferChange,this)}createGPUBuffer(e){const t=this._gpu.device.createBuffer(e.descriptor);return e._updateID=0,e._resourceId=pe("resource"),e.data&&(le(e.data.buffer,t.getMappedRange(),e.data.byteOffset,e.data.byteLength),t.unmap()),e._gpuData[this._renderer.uid]=new Ae(t),this._managedBuffers.add(e)&&(e.on("update",this.updateBuffer,this),e.on("change",this.onBufferChange,this)),t}onBufferChange(e){this._managedBuffers.remove(e),e._updateID=0,this.createGPUBuffer(e)}destroy(){this._managedBuffers.destroy(),this._renderer=null,this._gpu=null}}j.extension={type:[l.WebGPUSystem],name:"buffer"};class Le{constructor({minUniformOffsetAlignment:e}){this._minUniformOffsetAlignment=256,this.byteIndex=0,this._minUniformOffsetAlignment=e,this.data=new Float32Array(65535)}clear(){this.byteIndex=0}addEmptyGroup(e){if(e>this._minUniformOffsetAlignment/4)throw new Error(`UniformBufferBatch: array is too large: ${e*4}`);const t=this.byteIndex;let r=t+e*4;if(r=Math.ceil(r/this._minUniformOffsetAlignment)*this._minUniformOffsetAlignment,r>this.data.length*4)throw new Error("UniformBufferBatch: ubo batch got too big");return this.byteIndex=r,t}addGroup(e){const t=this.addEmptyGroup(e.length);for(let r=0;r<e.length;r++)this.data[t/4+r]=e[r];return t}destroy(){this.data=null}}class K{constructor(e){this._colorMaskCache=15,this._renderer=e}setMask(e){this._colorMaskCache!==e&&(this._colorMaskCache=e,this._renderer.pipeline.setColorMask(e))}destroy(){this._renderer=null,this._colorMaskCache=null}}K.extension={type:[l.WebGPUSystem],name:"colorMask"};class U{constructor(e){this._renderer=e}async init(e){return this._initPromise?this._initPromise:(this._initPromise=(e.gpu?Promise.resolve(e.gpu):this._createDeviceAndAdaptor(e)).then(t=>{this.gpu=t,this.extensions={transientAttachment:typeof GPUTextureUsage.TRANSIENT_ATTACHMENT=="number"},this._renderer.runners.contextChange.emit(this.gpu)}),this._initPromise)}contextChange(e){this._renderer.gpu=e}async _createDeviceAndAdaptor(e){const t=await T.get().getNavigator().gpu.requestAdapter({powerPreference:e.powerPreference,forceFallbackAdapter:e.forceFallbackAdapter}),r=["texture-compression-bc","texture-compression-astc","texture-compression-etc2"].filter(i=>t.features.has(i)),s=await t.requestDevice({requiredFeatures:r});return{adapter:t,device:s}}destroy(){this.gpu=null,this.extensions=null,this._renderer=null}}U.extension={type:[l.WebGPUSystem],name:"device"};U.defaultOptions={powerPreference:void 0,forceFallbackAdapter:!1};class q{constructor(e){this._boundBindGroup=Object.create(null),this._boundVertexBuffer=Object.create(null),this._renderer=e}renderStart(){this.commandFinished=new Promise(e=>{this._resolveCommandFinished=e}),this.commandEncoder=this._renderer.gpu.device.createCommandEncoder()}beginRenderPass(e){this.endRenderPass(),this._clearCache(),this.renderPassEncoder=this.commandEncoder.beginRenderPass(e.descriptor)}endRenderPass(){this.renderPassEncoder&&this.renderPassEncoder.end(),this.renderPassEncoder=null}setViewport(e){this.renderPassEncoder.setViewport(e.x,e.y,e.width,e.height,0,1)}setPipelineFromGeometryProgramAndState(e,t,r,s){const i=this._renderer.pipeline.getPipeline(e,t,r,s);this.setPipeline(i)}setPipeline(e){this._boundPipeline!==e&&(this._boundPipeline=e,this.renderPassEncoder.setPipeline(e))}_setVertexBuffer(e,t){this._boundVertexBuffer[e]!==t&&(this._boundVertexBuffer[e]=t,this.renderPassEncoder.setVertexBuffer(e,this._renderer.buffer.updateBuffer(t)))}_setIndexBuffer(e){if(this._boundIndexBuffer===e)return;this._boundIndexBuffer=e;const t=e.data.BYTES_PER_ELEMENT===2?"uint16":"uint32";this.renderPassEncoder.setIndexBuffer(this._renderer.buffer.updateBuffer(e),t)}resetBindGroup(e){this._boundBindGroup[e]=null}setBindGroup(e,t,r){if(this._boundBindGroup[e]===t)return;this._boundBindGroup[e]=t,t._touch(this._renderer.gc.now,this._renderer.tick);const s=this._renderer.bindGroup.getBindGroup(t,r,e);this.renderPassEncoder.setBindGroup(e,s)}setGeometry(e,t){const r=this._renderer.pipeline.getBufferNamesToBind(e,t);for(const s in r)this._setVertexBuffer(parseInt(s,10),e.attributes[r[s]].buffer);e.indexBuffer&&this._setIndexBuffer(e.indexBuffer)}_setShaderBindGroups(e,t){for(const r in e.groups){const s=e.groups[r];t||this._syncBindGroup(s),this.setBindGroup(r,s,e.gpuProgram)}}_syncBindGroup(e){for(const t in e.resources){const r=e.resources[t];r.isUniformGroup&&this._renderer.ubo.updateUniformGroup(r)}}draw(e){const{geometry:t,shader:r,state:s,topology:i,size:n,start:o,instanceCount:u,skipSync:c}=e;this.setPipelineFromGeometryProgramAndState(t,r.gpuProgram,s,i),this.setGeometry(t,r.gpuProgram),this._setShaderBindGroups(r,c),t.indexBuffer?this.renderPassEncoder.drawIndexed(n||t.indexBuffer.data.length,u??t.instanceCount,o||0):this.renderPassEncoder.draw(n||t.getSize(),u??t.instanceCount,o||0)}finishRenderPass(){this.renderPassEncoder&&(this.renderPassEncoder.end(),this.renderPassEncoder=null)}postrender(){this.finishRenderPass(),this._gpu.device.queue.submit([this.commandEncoder.finish()]),this._resolveCommandFinished(),this.commandEncoder=null}restoreRenderPass(){const e=this._renderer.renderTarget.adaptor.getDescriptor(this._renderer.renderTarget.renderTarget,!1,[0,0,0,1],this._renderer.renderTarget.mipLevel,this._renderer.renderTarget.layer);this.renderPassEncoder=this.commandEncoder.beginRenderPass(e);const t=this._boundPipeline,r={...this._boundVertexBuffer},s=this._boundIndexBuffer,i={...this._boundBindGroup};this._clearCache();const n=this._renderer.renderTarget.viewport;this.renderPassEncoder.setViewport(n.x,n.y,n.width,n.height,0,1),this.setPipeline(t);for(const o in r)this._setVertexBuffer(o,r[o]);for(const o in i)this.setBindGroup(o,i[o],null);this._setIndexBuffer(s)}_clearCache(){for(let e=0;e<16;e++)this._boundBindGroup[e]=null,this._boundVertexBuffer[e]=null;this._boundIndexBuffer=null,this._boundPipeline=null}destroy(){this._renderer=null,this._gpu=null,this._boundBindGroup=null,this._boundVertexBuffer=null,this._boundIndexBuffer=null,this._boundPipeline=null}contextChange(e){this._gpu=e}}q.extension={type:[l.WebGPUSystem],name:"encoder",priority:1};class Y{constructor(e){this._renderer=e}contextChange(){this.maxTextures=this._renderer.device.gpu.device.limits.maxSampledTexturesPerShaderStage,this.maxBatchableTextures=this.maxTextures}destroy(){}}Y.extension={type:[l.WebGPUSystem],name:"limits"};class ${constructor(e){this._renderTargetStencilState=Object.create(null),this._renderer=e,e.renderTarget.onRenderTargetChange.add(this)}onRenderTargetChange(e){let t=this._renderTargetStencilState[e.uid];t||(t=this._renderTargetStencilState[e.uid]={stencilMode:C.DISABLED,stencilReference:0}),this._activeRenderTarget=e,this.setStencilMode(t.stencilMode,t.stencilReference)}setStencilMode(e,t){const r=this._renderTargetStencilState[this._activeRenderTarget.uid];r.stencilMode=e,r.stencilReference=t;const s=this._renderer;s.pipeline.setStencilMode(e),s.encoder.renderPassEncoder.setStencilReference(t)}destroy(){this._renderer.renderTarget.onRenderTargetChange.remove(this),this._renderer=null,this._activeRenderTarget=null,this._renderTargetStencilState=null}}$.extension={type:[l.WebGPUSystem],name:"stencil"};const S={i32:{align:4,size:4},u32:{align:4,size:4},f32:{align:4,size:4},f16:{align:2,size:2},"vec2<i32>":{align:8,size:8},"vec2<u32>":{align:8,size:8},"vec2<f32>":{align:8,size:8},"vec2<f16>":{align:4,size:4},"vec3<i32>":{align:16,size:12},"vec3<u32>":{align:16,size:12},"vec3<f32>":{align:16,size:12},"vec3<f16>":{align:8,size:6},"vec4<i32>":{align:16,size:16},"vec4<u32>":{align:16,size:16},"vec4<f32>":{align:16,size:16},"vec4<f16>":{align:8,size:8},"mat2x2<f32>":{align:8,size:16},"mat2x2<f16>":{align:4,size:8},"mat3x2<f32>":{align:8,size:24},"mat3x2<f16>":{align:4,size:12},"mat4x2<f32>":{align:8,size:32},"mat4x2<f16>":{align:4,size:16},"mat2x3<f32>":{align:16,size:32},"mat2x3<f16>":{align:8,size:16},"mat3x3<f32>":{align:16,size:48},"mat3x3<f16>":{align:8,size:24},"mat4x3<f32>":{align:16,size:64},"mat4x3<f16>":{align:8,size:32},"mat2x4<f32>":{align:16,size:32},"mat2x4<f16>":{align:8,size:16},"mat3x4<f32>":{align:16,size:48},"mat3x4<f16>":{align:8,size:24},"mat4x4<f32>":{align:16,size:64},"mat4x4<f16>":{align:8,size:32}};function De(a){const e=a.map(r=>({data:r,offset:0,size:0}));let t=0;for(let r=0;r<e.length;r++){const s=e[r];let i=S[s.data.type].size;const n=S[s.data.type].align;if(!S[s.data.type])throw new Error(`[Pixi.js] WebGPU UniformBuffer: Unknown type ${s.data.type}`);s.data.size>1&&(i=Math.max(i,n)*s.data.size),t=Math.ceil(t/n)*n,s.size=i,s.offset=t,t+=i}return t=Math.ceil(t/16)*16,{uboElements:e,size:t}}function ke(a,e){const{size:t,align:r}=S[a.data.type],s=(r-t)/4,i=a.data.type.indexOf("i32")>=0?"dataInt32":"data";return`
2
2
  v = uv.${a.data.name};
3
3
  ${e!==0?`offset += ${e};`:""}
4
4