@runeya/runeya 2.0.145 → 2.0.147

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 (194) hide show
  1. package/agent/index.js +36 -25
  2. package/agent/index.js.map +1 -1
  3. package/agent-manager-46C4NIQ2.js +13 -0
  4. package/chat-CMNDMXIP.js +28 -0
  5. package/{chunk-ONVAH65J.js → chunk-2NE52CL5.js} +422 -2172
  6. package/chunk-2NE52CL5.js.map +1 -0
  7. package/chunk-4D3GCBPO.js +462 -0
  8. package/chunk-4D3GCBPO.js.map +1 -0
  9. package/{chunk-NCO4OOYT.js → chunk-4LJQIQMN.js} +2 -2
  10. package/{chunk-QF56Z6LI.js → chunk-5XG3X2TM.js} +29 -1481
  11. package/chunk-5XG3X2TM.js.map +1 -0
  12. package/chunk-6IBPK6UE.js +1063 -0
  13. package/chunk-6IBPK6UE.js.map +1 -0
  14. package/chunk-7QXP4FXD.js +969 -0
  15. package/chunk-7QXP4FXD.js.map +1 -0
  16. package/chunk-DA2DZBTL.js +43 -0
  17. package/chunk-DA2DZBTL.js.map +1 -0
  18. package/chunk-DFPZ4MTI.js +1041 -0
  19. package/chunk-DFPZ4MTI.js.map +1 -0
  20. package/{chunk-Q4RPY3VW.js → chunk-JNK6H5KH.js} +185 -1014
  21. package/chunk-JNK6H5KH.js.map +1 -0
  22. package/{chunk-FE53XX4M.js → chunk-NPMSBYXC.js} +3 -3
  23. package/{chunk-KS7A5CTW.js → chunk-VPSQJOSN.js} +12 -2
  24. package/{chunk-KS7A5CTW.js.map → chunk-VPSQJOSN.js.map} +1 -1
  25. package/chunk-WDHLEO5S.js +809 -0
  26. package/chunk-WDHLEO5S.js.map +1 -0
  27. package/{companion-HBYSY2D5.js → companion-XKMNRIJB.js} +10 -5
  28. package/environment-resolver-ZDTF3MHI.js +18 -0
  29. package/external-NMKQPROK.js +387 -0
  30. package/external-NMKQPROK.js.map +1 -0
  31. package/index.js +15 -6
  32. package/index.js.map +1 -1
  33. package/{install-gate-JAEK4BDZ.js → install-gate-OJJEUU4E.js} +2 -2
  34. package/mcp-ready-TAPBAOZY.js +9 -0
  35. package/mcp-server/external.d.ts +44 -0
  36. package/mcp-server/external.js +2679 -0
  37. package/mcp-server/external.js.map +1 -0
  38. package/mcp-server/index.js +159 -39
  39. package/mcp-server/index.js.map +1 -1
  40. package/mcp-server/launch.d.ts +25 -1
  41. package/mcp-server/launch.js +22 -1
  42. package/mcp-server/launch.js.map +1 -1
  43. package/package.json +1 -1
  44. package/project-store-FLXTAD3J.js +23 -0
  45. package/project-store-FLXTAD3J.js.map +1 -0
  46. package/settings-manager-XPLBO35P.js +10 -0
  47. package/settings-manager-XPLBO35P.js.map +1 -0
  48. package/{src-IODFUZ7A.js → src-KWO3CKZU.js} +1083 -551
  49. package/src-KWO3CKZU.js.map +1 -0
  50. package/{vault-resolver-PN3TYCLJ.js → vault-resolver-E7KPKA5C.js} +2 -2
  51. package/vault-resolver-E7KPKA5C.js.map +1 -0
  52. package/web/assets/{AgentScalarChatInterface.vue-npQgDxeP.js → AgentScalarChatInterface.vue-DKBinB_l.js} +2 -2
  53. package/web/assets/AgentTerminalPage-CixU7x6O.js +1 -0
  54. package/web/assets/AiChatModals-BvGUd-QD.css +1 -0
  55. package/web/assets/AiChatModals-C-hXImkO.js +4 -0
  56. package/web/assets/AppLayout-At9wk0sx.js +1 -0
  57. package/web/assets/{AppLayout-tsw5Ow0w.css → AppLayout-BlhwflMq.css} +1 -1
  58. package/web/assets/AuditPage-BkqbHxjY.js +1 -0
  59. package/web/assets/CloudAccountPage-D5C2SCS9.js +1 -0
  60. package/web/assets/CloudMessagingPage-Bi57GGHO.js +2 -0
  61. package/web/assets/DashboardPage-dEQop9ql.js +1 -0
  62. package/web/assets/DirectoryPickerDialog-DIMSeDhw.js +1 -0
  63. package/web/assets/{EditorIcon-CypGLV6w.js → EditorIcon-W3Szca4J.js} +1 -1
  64. package/web/assets/EnvironmentForm-C5emavNh.js +1 -0
  65. package/web/assets/EnvironmentFormPage-BIoy8fsW.js +1 -0
  66. package/web/assets/EnvironmentListPage-BDYeh7XF.js +1 -0
  67. package/web/assets/{FlagChip-R_T5qYpL.js → FlagChip-DPtIBCjQ.js} +1 -1
  68. package/web/assets/KanbanBoardPage-BlCcjBwV.js +4 -0
  69. package/web/assets/KanbanListPage-DbXONxfC.js +1 -0
  70. package/web/assets/LaunchProjectPage-Cg92hHwQ.js +1 -0
  71. package/web/assets/LaunchServicesPage-CO8gOB9D.js +1 -0
  72. package/web/assets/LaunchServicesPage-h5o3zLcy.css +1 -0
  73. package/web/assets/{LaunchShell-CGNYr-do.js → LaunchShell-CDb21ihZ.js} +1 -1
  74. package/web/assets/LogViewer-DsusKk2b.js +3 -0
  75. package/web/assets/OrgKeyPrompt-CX9K7r9I.js +1 -0
  76. package/web/assets/ProcessControls-B7hWVqiR.css +1 -0
  77. package/web/assets/ProcessControls-TEZutuxq.js +1 -0
  78. package/web/assets/ProcessDetailPage-Cj23FECq.js +1 -0
  79. package/web/assets/ProcessMetrics-1P6iE2Il.js +1 -0
  80. package/web/assets/ProjectCreateDialog-D3aMWKfw.js +1 -0
  81. package/web/assets/{ProjectLocationGate-bUd_tFpI.js → ProjectLocationGate-DU0Jj8Nw.js} +1 -1
  82. package/web/assets/ProjectPublishDialog-D7sNKei3.js +1 -0
  83. package/web/assets/{RandomJobTestPage-BFNC827R.js → RandomJobTestPage-DQUMRHyf.js} +1 -1
  84. package/web/assets/{ScenarioEditorPage-vMoRt0Qn.css → ScenarioEditorPage-BSjSX4bw.css} +1 -1
  85. package/web/assets/ScenarioEditorPage-DvCdcY9m.js +14 -0
  86. package/web/assets/SendToChatDialog-BdWKjYmv.js +1 -0
  87. package/web/assets/ServiceControlsBar-B_J5m-Kc.js +1 -0
  88. package/web/assets/ServiceDetailPage-DhJcjFfY.js +2 -0
  89. package/web/assets/{ServiceDetailPage-COdaCZ6r.css → ServiceDetailPage-DnSf5cm9.css} +1 -1
  90. package/web/assets/ServiceFormPage-fp8NCHSv.js +1 -0
  91. package/web/assets/SettingsPage-NH2fQap4.css +1 -0
  92. package/web/assets/SettingsPage-s28BodWe.js +2086 -0
  93. package/web/assets/UnlockPage-BXXIPHW_.js +1 -0
  94. package/web/assets/VaultMigrationPage-BfNuKtkJ.js +1 -0
  95. package/web/assets/{VersionBadge-DBquJl76.js → VersionBadge-CW7czacg.js} +1 -1
  96. package/web/assets/{WikiPage-GtwpJPqf.js → WikiPage-BiwpCM3E.js} +1 -1
  97. package/web/assets/WikiView-CMch_06Z.js +1 -0
  98. package/web/assets/{add-scalar-classes-DhSSqZ5l.js → add-scalar-classes-Ckanjq1h.js} +14 -14
  99. package/web/assets/{agent.store-Co44dMZf.js → agent.store-piokQ9Dt.js} +1 -1
  100. package/web/assets/{auth-Bk1GP5sB.js → auth-BT_jf-5e.js} +2 -2
  101. package/web/assets/cloud-chat.store-CDKh4tIy.js +1 -0
  102. package/web/assets/{cloud-client-0zD_NI6q.js → cloud-client-CzPdZLDq.js} +2 -2
  103. package/web/assets/{cloud-session-Cjw54Y--.js → cloud-session-BYfn6YM4.js} +2 -2
  104. package/web/assets/floating-ui.dom-DF3oyfHd.js +1 -0
  105. package/web/assets/i18n-D0FT7rCj.js +1 -0
  106. package/web/assets/index-3LTzgeU-.css +1 -0
  107. package/web/assets/index-Ci2CNnit.js +309 -0
  108. package/web/assets/modal-iRaP1izE.js +5 -0
  109. package/web/assets/notification.store-CvvuTBVz.js +1 -0
  110. package/web/assets/{project-launch.store-B5nhdGdh.js → project-launch.store-CTmbl8UY.js} +1 -1
  111. package/web/assets/{project.store-Bm2JWNbd.js → project.store-CNC6_4r4.js} +1 -1
  112. package/web/assets/runtime-dom.esm-bundler-CyEVRK6B.js +1 -0
  113. package/web/assets/scenario.store-BIFQPXgl.js +7 -0
  114. package/web/assets/{service.store-XS50iGKo.js → service.store-B40U4QzI.js} +1 -1
  115. package/web/assets/settings-scope-CyWMCjRY.js +1 -0
  116. package/web/assets/settings.store-Dw6bAoWE.js +1 -0
  117. package/web/assets/{src-Cgix2VOi.js → src-CrNi4Pjg.js} +3 -3
  118. package/web/assets/src-DIBHat7I.js +3 -0
  119. package/web/assets/src-DtCW_XCh.js +1 -0
  120. package/web/assets/{src-BDZKZr9n.css → src-g1DRo8xZ.css} +1 -1
  121. package/web/assets/{trpc-CfuFkKgp.js → trpc-BAZGRZBD.js} +3 -3
  122. package/web/assets/{useCloudOrg-J8DAnocE.js → useCloudOrg-EnXFBwt1.js} +1 -1
  123. package/web/assets/useEnvVarAutocomplete-BxJh2Lw0.js +1 -0
  124. package/web/assets/useProjectCatalog-BrvUGv9A.js +1 -0
  125. package/web/assets/{useProjectCloudOrg-BnlKts7x.js → useProjectCloudOrg-Czxlg00k.js} +1 -1
  126. package/web/assets/{useServiceUrlHost-hKbKtPMu.js → useServiceUrlHost-Szz9y3rh.js} +1 -1
  127. package/web/assets/vue-i18n-o7yraQpR.js +3 -0
  128. package/web/index.html +21 -21
  129. package/agent-manager-THV3LJOF.js +0 -11
  130. package/chat-XYCHMTFE.js +0 -23
  131. package/chunk-ONVAH65J.js.map +0 -1
  132. package/chunk-Q4RPY3VW.js.map +0 -1
  133. package/chunk-QF56Z6LI.js.map +0 -1
  134. package/settings-manager-QVQRJO6V.js +0 -10
  135. package/src-IODFUZ7A.js.map +0 -1
  136. package/web/assets/AgentTerminalPage-BTH3yCS2.js +0 -1
  137. package/web/assets/AiChatModals-EfRuvId7.css +0 -1
  138. package/web/assets/AiChatModals-It9jnB26.js +0 -4
  139. package/web/assets/AppLayout-BTg2CADo.js +0 -1
  140. package/web/assets/AuditPage-2PKKGLZs.js +0 -1
  141. package/web/assets/CloudAccountPage-CHL61gLe.js +0 -1
  142. package/web/assets/CloudMessagingPage-cgKnABPH.js +0 -2
  143. package/web/assets/DashboardPage-CRntTMKY.js +0 -1
  144. package/web/assets/DirectoryPickerDialog-DCyhT3-W.js +0 -1
  145. package/web/assets/EnvironmentForm-C96PFWRE.js +0 -1
  146. package/web/assets/EnvironmentFormPage-ChorAd63.js +0 -1
  147. package/web/assets/EnvironmentListPage-Dw9ziaI8.js +0 -1
  148. package/web/assets/KanbanBoardPage-BZHbEj-q.js +0 -4
  149. package/web/assets/KanbanListPage-B0jlfKqs.js +0 -1
  150. package/web/assets/LaunchProjectPage-BVs1JwbV.js +0 -1
  151. package/web/assets/LaunchServicesPage-DoLDPqQq.css +0 -1
  152. package/web/assets/LaunchServicesPage-PBYJly9N.js +0 -1
  153. package/web/assets/LogViewer-BDObx29F.js +0 -3
  154. package/web/assets/OrgKeyPrompt-BbcwiwGw.js +0 -1
  155. package/web/assets/ProcessControls-BlpnVylq.css +0 -1
  156. package/web/assets/ProcessControls-DY0HTKde.js +0 -1
  157. package/web/assets/ProcessDetailPage-BZ9kIQqn.js +0 -1
  158. package/web/assets/ProcessMetrics-Crlfkelj.js +0 -1
  159. package/web/assets/ProjectCreateDialog-C1wVDPcK.js +0 -1
  160. package/web/assets/ProjectPublishDialog-APUS1WEN.js +0 -1
  161. package/web/assets/ScenarioEditorPage-DFVsMVu5.js +0 -14
  162. package/web/assets/SendToChatDialog-QHIkxNio.js +0 -1
  163. package/web/assets/ServiceControlsBar-_UQXb6g0.js +0 -1
  164. package/web/assets/ServiceDetailPage-DGIXgHwR.js +0 -2
  165. package/web/assets/ServiceFormPage-RliAfS3_.js +0 -1
  166. package/web/assets/SettingsPage-BSSHxxjM.js +0 -2086
  167. package/web/assets/SettingsPage-W8YszhUL.css +0 -1
  168. package/web/assets/UnlockPage-17EgfpJs.js +0 -1
  169. package/web/assets/VaultMigrationPage-DeMxpXXJ.js +0 -1
  170. package/web/assets/WikiView-BqaqxMxW.js +0 -1
  171. package/web/assets/cloud-chat.store-CadB14dZ.js +0 -1
  172. package/web/assets/editor.store-DmM6ZlTm.js +0 -1
  173. package/web/assets/floating-ui.dom-DWhsZyqT.js +0 -1
  174. package/web/assets/i18n-8FjeJaKW.js +0 -1
  175. package/web/assets/index-B9DJf2V0.js +0 -309
  176. package/web/assets/index-teBqdnuv.css +0 -1
  177. package/web/assets/modal-UK8xRSnh.js +0 -5
  178. package/web/assets/scenario.store-88w6P6s2.js +0 -7
  179. package/web/assets/settings-scope-CKPq86HZ.js +0 -1
  180. package/web/assets/settings.store-BCJ0LJQA.js +0 -1
  181. package/web/assets/src--GO-VSJ0.js +0 -5
  182. package/web/assets/src-DBipSD56.js +0 -1
  183. package/web/assets/useEnvVarAutocomplete-C6zOXYqi.js +0 -1
  184. package/web/assets/useProjectCatalog-BB5IR6o8.js +0 -1
  185. package/web/assets/vue-draggable-plus-BHsveB8w.css +0 -1
  186. package/web/assets/vue-draggable-plus-D5ni4jMk.js +0 -1
  187. /package/{agent-manager-THV3LJOF.js.map → agent-manager-46C4NIQ2.js.map} +0 -0
  188. /package/{chat-XYCHMTFE.js.map → chat-CMNDMXIP.js.map} +0 -0
  189. /package/{chunk-NCO4OOYT.js.map → chunk-4LJQIQMN.js.map} +0 -0
  190. /package/{chunk-FE53XX4M.js.map → chunk-NPMSBYXC.js.map} +0 -0
  191. /package/{companion-HBYSY2D5.js.map → companion-XKMNRIJB.js.map} +0 -0
  192. /package/{settings-manager-QVQRJO6V.js.map → environment-resolver-ZDTF3MHI.js.map} +0 -0
  193. /package/{install-gate-JAEK4BDZ.js.map → install-gate-OJJEUU4E.js.map} +0 -0
  194. /package/{vault-resolver-PN3TYCLJ.js.map → mcp-ready-TAPBAOZY.js.map} +0 -0
@@ -1,2086 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AgentScalarChatInterface.vue-npQgDxeP.js","assets/reactivity.esm-bundler-BQ9SB2vv.js","assets/runtime-core.esm-bundler-DujKY9QV.js","assets/floating-ui.dom-DWhsZyqT.js","assets/schemas-68I2iCLF.js","assets/add-scalar-classes-DhSSqZ5l.js","assets/rolldown-runtime-Dd_uD5pT.js","assets/preload-helper-BZ1Pz5am.js","assets/index-B9DJf2V0.js","assets/src--GO-VSJ0.js","assets/src-CcvmgMAA.css","assets/project-launch.store-B5nhdGdh.js","assets/trpc-CfuFkKgp.js","assets/auth-Bk1GP5sB.js","assets/i18n-8FjeJaKW.js","assets/useApi-s_02lHjl-DZYO2tHU.js","assets/vue-router-fin80h5W.js","assets/scenario.store-88w6P6s2.js","assets/project.store-Bm2JWNbd.js","assets/error-DpF7X5iu.js","assets/use-polling-CEkhIY_9.js","assets/useAiChatDrawer-D_ofn8Eo.js","assets/settings-scope-CKPq86HZ.js","assets/dist-N4nrnbnA.js","assets/service.store-XS50iGKo.js","assets/scenario-DOeZsRCE.css","assets/app-mode-BVpTuh0i.js","assets/cloud-auth-D_am4FlK.js","assets/useProjectCatalog-BB5IR6o8.js","assets/cloud-session-Cjw54Y--.js","assets/cloud-client-0zD_NI6q.js","assets/AiChatModals-It9jnB26.js","assets/editor.api-Bef3xeth.js","assets/editor-8AbsNvUX.css","assets/toggleHighContrast-Dqz1Qao1.js","assets/toggleHighContrast--ixms01u.css","assets/register-BLGIM2pN.js","assets/agent.store-Co44dMZf.js","assets/AiChatModals-EfRuvId7.css","assets/vue-draggable-plus-D5ni4jMk.js","assets/editor.store-DmM6ZlTm.js","assets/vue-draggable-plus-BHsveB8w.css","assets/process-BWkHpZOM.js","assets/theme-BZCAxfJD.js","assets/index-teBqdnuv.css","assets/interface-content-folder.svg-CnsmgXBU.js","assets/browser-BpWB_ayN.js","assets/modal-UK8xRSnh.js"])))=>i.map(i=>d[i]);
2
- import{n as e}from"./rolldown-runtime-Dd_uD5pT.js";import{B as t,C as n,F as r,N as i,m as a,x as o}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{$ as s,B as c,Ct as l,D as u,E as d,Ft as f,H as p,Ht as m,J as h,L as g,O as _,Pt as v,Rt as ee,St as te,T as ne,Ut as re,Yt as y,_ as b,b as x,bt as S,ct as ie,dt as ae,en as C,et as w,ft as oe,g as T,gt as se,it as ce,k as E,mt as D,nn as le,nt as ue,o as O,ot as de,qt as k,rn as A,rt as fe,tn as j,tt as M,v as N,w as pe,wt as me,xt as P,y as F,z as he}from"./runtime-core.esm-bundler-DujKY9QV.js";import{A as ge,F as _e,I,N as ve,P as ye,k as be,p as xe}from"./floating-ui.dom-DWhsZyqT.js";import{D as Se,E as Ce,H as we,J as Te,P as Ee,S as De,U as Oe,V as ke,W as Ae,Y as je,dt as L,ft as Me,i as Ne,j as Pe,k as Fe,l as Ie,mt as Le,n as Re,q as ze,r as Be,w as Ve}from"./src--GO-VSJ0.js";import{a as He,i as Ue,n as We}from"./project-launch.store-B5nhdGdh.js";import{g as Ge,h as Ke}from"./useApi-s_02lHjl-DZYO2tHU.js";import{n as qe,o as Je,t as Ye}from"./scenario.store-88w6P6s2.js";import{r as R}from"./trpc-CfuFkKgp.js";import{t as Xe}from"./preload-helper-BZ1Pz5am.js";import{r as Ze}from"./auth-Bk1GP5sB.js";import{n as Qe,r as $e}from"./project.store-Bm2JWNbd.js";import{n as et}from"./error-DpF7X5iu.js";import{n as tt,r as nt}from"./cloud-session-Cjw54Y--.js";import{n as rt}from"./cloud-client-0zD_NI6q.js";import{s as it}from"./composables-DiiOYol8.js";import{t as at}from"./use-polling-CEkhIY_9.js";import{n as ot,r as st,t as ct}from"./AiChatModals-It9jnB26.js";import{t as lt}from"./editor.store-DmM6ZlTm.js";import{t as ut}from"./useAiChatDrawer-D_ofn8Eo.js";import{t as dt}from"./settings-scope-CKPq86HZ.js";import{d as ft}from"./dist-N4nrnbnA.js";import{t as pt}from"./service.store-XS50iGKo.js";import{t as mt}from"./agent.store-Co44dMZf.js";import{G as ht,K as gt,b as _t,l as vt,q as yt,u as bt,x as xt,y as St}from"./index-B9DJf2V0.js";import{t as Ct}from"./EditorIcon-CypGLV6w.js";import{r as wt,t as Tt}from"./OrgKeyPrompt-BbcwiwGw.js";import{i as Et,r as Dt,t as Ot}from"./CloudAccountPage-CHL61gLe.js";import{t as kt}from"./FlagChip-R_T5qYpL.js";import{t as At}from"./LogViewer-BDObx29F.js";import{t as jt}from"./settings.store-BCJ0LJQA.js";import{$ as Mt,$i as Nt,$n as Pt,$r as Ft,$t as It,Aa as Lt,Ai as z,An as Rt,Ar as zt,At as Bt,B as Vt,Bi as Ht,Bn as Ut,Br as Wt,Bt as Gt,C as Kt,Ca as qt,Ci as Jt,Cn as Yt,Cr as Xt,Ct as Zt,D as Qt,Da as $t,Di as B,Dn as en,Dr as tn,E as nn,Ea as rn,Ei as V,En as an,Er as on,F as sn,Fa as cn,Fi as ln,Fn as un,Fr as dn,Ft as fn,G as pn,Gi as mn,Gn as hn,Gr as gn,Gt as _n,H as vn,Hi as yn,Hn as bn,Hr as xn,Ht as Sn,I as Cn,Ia as wn,Ii as Tn,In as En,Ir as Dn,It as On,J as kn,Ji as An,Jn as jn,Jr as Mn,Jt as Nn,K as Pn,Ki as Fn,Kr as In,Kt as Ln,L as Rn,La as zn,Li as Bn,Ln as Vn,Lr as Hn,M as Un,Ma as Wn,Mi as H,Mn as Gn,Mr as Kn,Mt as qn,N as Jn,Na as Yn,Ni as U,Nn as Xn,Nr as Zn,Nt as Qn,O as $n,Oa as er,Oi as tr,On as nr,Or as rr,Ot as ir,P as ar,Pa as or,Pi as W,Pn as sr,Pr as cr,Pt as lr,Q as ur,Qi as dr,Qn as fr,Qr as pr,Qt as mr,R as hr,Ra as G,Ri as gr,Rn as _r,Rr as vr,Rt as yr,S as br,Sa as xr,Si as K,Sn as Sr,Sr as Cr,St as wr,T as Tr,Ta as Er,Ti as Dr,Tn as Or,Tr as kr,U as Ar,Ui as q,Un as jr,Ur as Mr,Ut as Nr,V as Pr,Vi as Fr,Vn as Ir,Vr as Lr,Vt as Rr,W as zr,Wi as Br,Wn as Vr,Wr as Hr,Wt as Ur,X as Wr,Xi as Gr,Xn as Kr,Xr as qr,Xt as Jr,Y as Yr,Yi as Xr,Yn as Zr,Yr as Qr,Yt as $r,Z as ei,Zi as ti,Zn as ni,Zr as ri,Zt as ii,_ as ai,_a as oi,_i as si,_n as ci,_r as li,a as ui,aa as di,ai as fi,an as pi,ar as mi,at as hi,b as gi,ba as _i,bi as vi,bn as yi,br as bi,bt as xi,c as Si,ca as Ci,ci as wi,cn as Ti,cr as Ei,ct as Di,da as Oi,di as ki,dn as Ai,dr as ji,dt as Mi,ea as Ni,ei as Pi,en as Fi,er as Ii,et as Li,fa as Ri,fi as zi,fn as Bi,ft as Vi,ga as Hi,gi as Ui,gn as Wi,gr as Gi,gt as Ki,ha as qi,hi as Ji,ht as Yi,i as Xi,ia as Zi,ii as Qi,in as $i,ir as ea,it as ta,ja as na,ji as J,jn as ra,jr as ia,jt as aa,k as oa,ka as sa,ki as ca,kn as la,kr as ua,kt as da,l as fa,la as pa,li as ma,ln as ha,lr as ga,lt as _a,ma as va,mi as ya,mn as ba,mt as xa,na as Sa,ni as Ca,nn as wa,nt as Ta,oa as Ea,oi as Da,on as Oa,or as ka,ot as Aa,pa as ja,pi as Ma,pr as Na,pt as Pa,q as Fa,qi as Ia,qn as La,qr as Ra,qt as za,r as Ba,ra as Va,ri as Ha,rn as Ua,rr as Wa,rt as Ga,s as Ka,sa as qa,si as Ja,sn as Ya,sr as Xa,st as Za,t as Qa,ta as $a,ti as eo,tn as to,tr as no,ua as ro,ui as io,ur as ao,ut as oo,v as so,va as co,vi as lo,vr as uo,vt as fo,w as po,wa as mo,wi as ho,wn as go,wr as _o,x as vo,xa as yo,xi as Y,xn as bo,ya as xo,yi as So,yn as Co,yr as wo,yt as To,z as Eo,za as Do,zi as Oo,zn as ko,zr as Ao,zt as jo}from"./add-scalar-classes-DhSSqZ5l.js";import{r as Mo,t as No}from"./browser-BpWB_ayN.js";var Po={class:`traefik-settings`},Fo={class:`traefik-row`},Io={class:`traefik-row`},Lo={class:`traefik-field`},Ro={class:`traefik-field`},zo={class:`traefik-field`},Bo={class:`traefik-field`},Vo={for:`traefik-dns-credentials`},Ho={key:0,class:`hint-ok`},Uo=[`href`],Wo={class:`traefik-ports`},Go={class:`traefik-field traefik-field--small`},Ko={class:`traefik-field traefik-field--small`},qo={class:`traefik-actions`},Jo={key:1,class:`traefik-renewal-notice`},Yo={key:2,class:`traefik-validation`},Xo={key:3,class:`traefik-config-files`},Zo={class:`traefik-logs-header`},Qo={class:`config-tabs`},$o={class:`traefik-logs-content`},es={key:4,class:`traefik-logs`},ts={class:`traefik-logs-header`},ns=Me(E({__name:`TraefikSettings`,props:{agentId:{}},emits:[`saved`],setup(e,{emit:r}){let i=`acmedns.alidns.allinkl.arvancloud.autodns.azure.azuredns.bindman.bluecat.brandit.bunny.checkdomain.civo.clouddns.cloudflare.cloudns.cloudxns.conoha.constellix.cpanel.desec.designate.digitalocean.dnshomede.dnsimple.dnsmadeeasy.dnsover.dnspod.dode.domeneshop.dreamhost.duckdns.dyn.dynu.easydns.edgedns.efficientip.epik.exoscale.freemyip.gandi.gandiv5.gcloud.gcore.glesys.godaddy.hetzner.hostingde.hosttech.httpnet.huaweicloud.hurricane.hyperone.ibmcloud.iij.iijdpf.infoblox.infomaniak.internetbs.inwx.ionos.ipv64.iwantmyname.joker.linode.liquidweb.loopia.luadns.mailinabox.metaname.mydnsjp.mythicbeasts.namecheap.namedotcom.namesilo.nearlyfreespeech.netcup.netlify.nicmanager.nifcloud.njalla.nodion.ns1.openstack.oracle.otc.ovh.pdns.plesk.porkbun.rackspace.radix.rcodezero.regru.rfc2136.route53.sakuracloud.scaleway.selectel.servercow.simply.sonic.stackpath.tencentcloud.transip.ultradns.variomedia.vegadns.versio.vinyldns.vkcloud.vscale.vultr.webnames.websupport.wedos.yandex.yandex360.zoneee.zonomi`.split(`.`),a=n([]);function o(e){let t=e.query.toLowerCase();a.value=t?i.filter(e=>e.includes(t)):i.slice(0,20)}let s=e,c=r,l=n({enabled:!1,acmeEmail:``,wildcardDomain:``,httpPort:80,httpsPort:443,dnsProvider:``,acmeStaging:!1}),f=n([]),p=n(!1),h=n(!1),g=n(!1),_=n(null),v=n(!1),ee=n(!1),te=n(!1),ne=n(null),re=n(`static`);async function y(){if(ne.value){ne.value=null;return}try{ne.value=await R.settings.getAgentTraefikConfigFiles.query({agentId:s.agentId})}catch{ne.value={static:`(erreur)`,dynamic:`(erreur)`}}}let ie=n(null),ae=n(null),w=null;T(()=>_.value?.some(e=>e.id===`ssl_cert`&&!e.ok)??!1);function se(){ce(),ie.value=[];let e=R.settings.streamAgentTraefikLogs.subscribe({agentId:s.agentId},{onData(e){ie.value=[...ie.value??[],...e.lines],M(()=>{ae.value&&(ae.value.scrollTop=ae.value.scrollHeight)})}});w=()=>e.unsubscribe()}function ce(){w?.(),w=null}oe(ce);async function E(){let e=await R.settings.getAgentTraefikConfig.query({agentId:s.agentId});l.value.enabled=e.enabled,l.value.acmeEmail=e.acmeEmail??``,l.value.wildcardDomain=e.wildcardDomain??``,l.value.httpPort=e.httpPort,l.value.httpsPort=e.httpsPort,l.value.dnsProvider=e.dnsProvider??``,l.value.acmeStaging=e.acmeStaging??!1,p.value=e.hasDnsCredentials,f.value=(e.dnsCredentialKeys??[]).map(e=>({key:e,value:``}))}m(()=>s.agentId,E,{immediate:!0});function le(){f.value=[...f.value,{key:``,value:``}]}function ue(e){f.value=f.value.filter((t,n)=>n!==e)}async function de(){ee.value=!0;try{await R.settings.restartAgentTraefik.mutate({agentId:s.agentId}),se()}finally{ee.value=!1}}async function k(){v.value=!0,_.value=null,te.value=!1;try{await R.settings.renewAgentTraefikCert.mutate({agentId:s.agentId}),te.value=!0,se(),setTimeout(()=>fe(),1e4)}finally{v.value=!1}}async function fe(){g.value=!0,_.value=null,te.value=!1;try{let e=await R.settings.validateAgentTraefikConfig.query({agentId:s.agentId});_.value=e.checks}finally{g.value=!1}}async function j(){h.value=!0;try{let e={};for(let{key:t,value:n}of f.value)t.trim()&&n.trim()&&(e[t.trim()]=n);await R.settings.updateAgentTraefikConfig.mutate({agentId:s.agentId,enabled:l.value.enabled,acmeEmail:l.value.acmeEmail||void 0,wildcardDomain:l.value.wildcardDomain||void 0,httpPort:l.value.httpPort,httpsPort:l.value.httpsPort,dnsProvider:l.value.dnsProvider||void 0,acmeStaging:l.value.acmeStaging,...Object.keys(e).length>0&&{dnsCredentials:e}}),Object.keys(e).length>0&&(p.value=!0,f.value=f.value.map(e=>({key:e.key,value:``}))),c(`saved`)}finally{h.value=!1}}return(e,n)=>(D(),x(`div`,Po,[b(`div`,Fo,[n[11]||=b(`span`,null,`Activer Traefik`,-1),u(t(Fe),{modelValue:l.value.enabled,"onUpdate:modelValue":n[0]||=e=>l.value.enabled=e},null,8,[`modelValue`])]),l.value.enabled?(D(),x(O,{key:0},[b(`div`,Io,[n[12]||=b(`span`,null,[d(` Let's Encrypt staging `),b(`small`,{style:{display:`block`,color:`var(--r-text-muted)`}},`Certificats de test, pas de limite de taux`)],-1),u(t(Fe),{modelValue:l.value.acmeStaging,"onUpdate:modelValue":n[1]||=e=>l.value.acmeStaging=e},null,8,[`modelValue`])]),b(`div`,Lo,[n[13]||=b(`label`,{for:`traefik-wildcard-domain`},`Domaine wildcard`,-1),u(t(Te),{id:`traefik-wildcard-domain`,modelValue:l.value.wildcardDomain,"onUpdate:modelValue":n[2]||=e=>l.value.wildcardDomain=e,placeholder:`*.local.mondomaine.com`},null,8,[`modelValue`]),n[14]||=b(`small`,null,[d(`Enregistrement DNS requis : `),b(`code`,null,`*.local.mondomaine.com A 127.0.0.1`)],-1)]),b(`div`,Ro,[n[15]||=b(`label`,{for:`traefik-acme-email`},`Email ACME (Let's Encrypt)`,-1),u(t(Te),{id:`traefik-acme-email`,modelValue:l.value.acmeEmail,"onUpdate:modelValue":n[3]||=e=>l.value.acmeEmail=e,placeholder:`contact@mondomaine.com`},null,8,[`modelValue`])]),b(`div`,zo,[n[16]||=b(`label`,{for:`traefik-dns-provider`},`Provider DNS`,-1),u(t(Ne),{"input-id":`traefik-dns-provider`,modelValue:l.value.dnsProvider,"onUpdate:modelValue":n[4]||=e=>l.value.dnsProvider=e,suggestions:a.value,placeholder:`cloudflare`,dropdown:``,onComplete:o},null,8,[`modelValue`,`suggestions`]),n[17]||=b(`small`,null,[d(` Identifiant lego du provider — `),b(`a`,{href:`https://go-acme.github.io/lego/dns/index.html`,target:`_blank`,rel:`noopener`},`liste complète`)],-1)]),b(`div`,Bo,[b(`label`,Vo,[n[18]||=d(` Variables d'environnement du provider DNS `,-1),p.value&&f.value.length===0?(D(),x(`span`,Ho,`✓ configurées`)):F(``,!0)]),b(`small`,null,[n[19]||=d(` Variables requises par le provider. `,-1),l.value.dnsProvider&&i.includes(l.value.dnsProvider)?(D(),x(`a`,{key:0,href:`https://go-acme.github.io/lego/dns/${l.value.dnsProvider}/`,target:`_blank`,rel:`noopener`},` Voir les variables pour `+A(l.value.dnsProvider),9,Uo)):F(``,!0),n[20]||=d(` Stockées chiffrées — les valeurs ne sont jamais relues. `,-1)]),(D(!0),x(O,null,S(f.value,(e,n)=>(D(),x(`div`,{key:n,class:`credential-row`},[u(t(Te),{modelValue:e.key,"onUpdate:modelValue":t=>e.key=t,placeholder:`NOM_VARIABLE`,class:`credential-key`},null,8,[`modelValue`,`onUpdate:modelValue`]),u(t(Ve),{modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,placeholder:p.value?`••••••••`:`valeur`,feedback:!1,"toggle-mask":``,class:`credential-value`},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`]),u(t(L),{icon:`ti ti-trash`,severity:`danger`,variant:`text`,size:`small`,onClick:e=>ue(n)},null,8,[`onClick`])]))),128)),u(t(L),{id:`traefik-dns-credentials`,icon:`ti ti-plus`,label:`Ajouter une variable`,size:`small`,variant:`outlined`,onClick:le})]),b(`div`,Wo,[b(`div`,Go,[n[21]||=b(`label`,{for:`traefik-http-port`},`Port HTTP`,-1),u(t(Te),{id:`traefik-http-port`,modelValue:l.value.httpPort,"onUpdate:modelValue":n[5]||=e=>l.value.httpPort=e,modelModifiers:{number:!0}},null,8,[`modelValue`])]),b(`div`,Ko,[n[22]||=b(`label`,{for:`traefik-https-port`},`Port HTTPS`,-1),u(t(Te),{id:`traefik-https-port`,modelValue:l.value.httpsPort,"onUpdate:modelValue":n[6]||=e=>l.value.httpsPort=e,modelModifiers:{number:!0}},null,8,[`modelValue`])])])],64)):F(``,!0),b(`div`,qo,[u(t(L),{label:`Enregistrer`,icon:`ti ti-device-floppy`,loading:h.value,onClick:j},null,8,[`loading`]),u(t(L),{label:`Redémarrer`,icon:`ti ti-refresh`,severity:`secondary`,loading:ee.value,onClick:de},null,8,[`loading`]),u(t(L),{label:`Réémettre cert`,icon:`ti ti-shield`,severity:`warn`,loading:v.value,onClick:k},null,8,[`loading`]),u(t(L),{label:`Config`,icon:`ti ti-file-pencil`,severity:`secondary`,onClick:y}),u(t(L),{label:`Logs`,icon:`ti ti-align-left`,severity:`secondary`,onClick:se}),u(t(L),{label:`Vérifier`,icon:`ti ti-circle-check`,severity:`secondary`,loading:g.value,onClick:fe},null,8,[`loading`])]),te.value?(D(),x(`div`,Jo,[...n[23]||=[b(`i`,{class:`ti ti-spin ti-loader-2`},null,-1),b(`span`,null,[d(`Challenge DNS-01 en cours — le certificat peut prendre `),b(`strong`,null,`1 à 3 minutes`),d(` selon la propagation DNS. Suivez les logs ci-dessous puis cliquez sur `),b(`strong`,null,`Vérifier`),d(`.`)],-1)]])):F(``,!0),_.value?(D(),x(`div`,Yo,[(D(!0),x(O,null,S(_.value,e=>(D(),x(`div`,{key:e.id,class:C([`validation-item`,e.ok?`validation-item--ok`:`validation-item--fail`])},[b(`i`,{class:C(e.ok?`ti ti-check`:`ti ti-x`)},null,2),b(`span`,null,A(e.message),1)],2))),128))])):F(``,!0),ne.value?(D(),x(`div`,Xo,[b(`div`,Zo,[b(`div`,Qo,[b(`button`,{class:C([`config-tab`,re.value===`static`&&`config-tab--active`]),onClick:n[7]||=e=>re.value=`static`},`traefik.yml`,2),b(`button`,{class:C([`config-tab`,re.value===`dynamic`&&`config-tab--active`]),onClick:n[8]||=e=>re.value=`dynamic`},`services.yml`,2)]),u(t(L),{icon:`ti ti-x`,variant:`text`,size:`small`,onClick:n[9]||=e=>ne.value=null})]),b(`pre`,$o,A(re.value===`static`?ne.value.static:ne.value.dynamic),1)])):F(``,!0),ie.value===null?F(``,!0):(D(),x(`div`,es,[b(`div`,ts,[n[24]||=b(`span`,null,[d(`Logs Traefik `),b(`span`,{class:`logs-live`},`● live`)],-1),u(t(L),{icon:`ti ti-x`,variant:`text`,size:`small`,onClick:n[10]||=e=>{ce(),ie.value=null}})]),b(`pre`,{ref_key:`logsEl`,ref:ae,class:`traefik-logs-content`},A(ie.value.join(`
3
- `)||`(en attente de logs…)`),513)]))]))}}),[[`__scopeId`,`data-v-dbbd59b3`]]),rs={class:`traefik-dialog-layout`},is={class:`traefik-dialog-left`},as={class:`traefik-dialog-right`},os={class:`fs-header`},ss={class:`fs-tree`},cs=[`onClick`],ls={class:`fs-dir`},us={class:`fs-name`},ds={key:0,class:`fs-empty`},fs={key:0,class:`fs-content`},ps=Me(E({__name:`TraefikDialog`,props:{agentId:{}},setup(e){let r=e,i=n([]),a=n(null),o=n(!1);async function s(){o.value=!0;try{let e=await R.settings.getAgentTraefikFileTree.query({agentId:r.agentId});i.value=e,e.length>0&&!a.value&&(a.value=e[0])}catch{i.value=[]}finally{o.value=!1}}m(()=>r.agentId,s,{immediate:!0});function c(e){return e.split(`/`).filter(Boolean).pop()??e}function l(e){let t=e.split(`/`).filter(Boolean);return t.length>1?t.slice(0,-1).join(`/`)+`/`:``}return(n,r)=>(D(),x(`div`,rs,[b(`div`,is,[u(ns,{"agent-id":e.agentId,onSaved:s},null,8,[`agent-id`])]),b(`div`,as,[b(`div`,os,[r[0]||=b(`span`,null,`~/.runeya/traefik/`,-1),u(t(L),{icon:`ti ti-refresh`,variant:`text`,size:`small`,loading:o.value,onClick:s},null,8,[`loading`])]),b(`div`,ss,[(D(!0),x(O,null,S(i.value,e=>(D(),x(`button`,{key:e.path,class:C([`fs-entry`,{"fs-entry--active":a.value?.path===e.path}]),onClick:t=>a.value=e},[r[1]||=b(`i`,{class:`ti ti-file fs-icon`},null,-1),b(`span`,ls,A(l(e.path)),1),b(`span`,us,A(c(e.path)),1)],10,cs))),128)),i.value.length===0&&!o.value?(D(),x(`div`,ds,` Aucun fichier — démarrez Traefik d'abord `)):F(``,!0)]),a.value?(D(),x(`pre`,fs,A(a.value.content),1)):F(``,!0)])]))}}),[[`__scopeId`,`data-v-6b2d251e`]]),ms={class:`agent-page`},hs={key:0,class:`page-header`},gs={key:1,class:`loading-container`},_s={key:2,class:`error-container`},vs={key:3,class:`empty-container`},ys={class:`agent-name`},bs={class:`agent-url`},xs={class:`runner-tags`},Ss={key:0,class:`text-muted`},Cs={class:`action-grid`},ws={class:`passthrough-description`},Ts={key:0,class:`passthrough-list`},Es={class:`passthrough-item-info`},Ds={key:0,class:`passthrough-value`},Os={key:1,class:`passthrough-undefined`},ks={key:2,class:`passthrough-unsaved`},As={key:1,class:`text-muted passthrough-empty`},js={class:`passthrough-add`},Ms={key:2,class:`passthrough-error`},Ns={class:`form-group`},Ps={for:`agent-name`},Fs={class:`form-group`},Is={for:`agent-url`},Ls={class:`form-hint`},Rs={class:`form-group`},zs={for:`agent-passphrase`},Bs={class:`form-hint`},Vs={key:0,class:`form-group`},Hs={for:`agent-owner`},Us={class:`form-hint`},Ws={class:`form-group test-connection`},Gs=Me(E({__name:`AgentPage`,props:{embedded:{type:Boolean}},setup(e,{expose:r}){let i=e,a=Ee(),o=Pe(),s=mt(),{t:c}=Le(),f=n(!1),p=n(!1),m=n(null),h=n({name:``,url:``,passphrase:``,orgId:null}),g=n([]);async function _(){try{let[e,t]=await Promise.all([R.cloudSync.list.query(),tt()]),n=new Map(t.map(e=>[e.id,e.name]));g.value=e.map(e=>({label:n.get(e.orgId)??e.orgId,value:e.orgId}))}catch{g.value=[]}}let v=T(()=>m.value!==null),ee=T(()=>v.value?c(`agentPage.dialog.editHeader`):c(`agentPage.dialog.registerHeader`)),te=T(()=>v.value?c(`actions.save`):c(`agentPage.registerAgent`)),ne=T(()=>{let{name:e,url:t,passphrase:n}=h.value;return!(!e.trim()||!t.trim()||!v.value&&!n.trim())}),re=n(!1),ae=n(null),C=T(()=>{let{url:e,passphrase:t}=h.value;return e.trim()?!!t.trim()||v.value:!1}),w=n(!1),se=n(!1),ce=n(null),E=n(``);function le(e){ce.value=e.config.id,E.value=e.config.name,se.value=!0}let ue=n(!1),de=n(!1),fe=n(null),j=n(``),M=n([]),pe=n(new Set),me=n({}),P=n(``),he=/^[A-Za-z_][A-Za-z0-9_]*$/,ge=T(()=>{let e=P.value.trim();return e?he.test(e)?M.value.includes(e)?c(`agentPage.passthrough.alreadyInList`):``:c(`agentPage.passthrough.invalidVarName`):``}),I=T(()=>P.value.trim().length>0&&!ge.value);async function ve(e){fe.value=e.config.id,j.value=e.config.name;let t=e.config.passthroughEnv??[];M.value=[...t],pe.value=new Set(t),me.value={},P.value=``,w.value=!0,de.value=!0;try{me.value=await R.agent.getPassthroughEnv.query({id:e.config.id})}catch{}finally{de.value=!1}}function ye(){let e=P.value.trim();e&&!ge.value&&(M.value=[...M.value,e],P.value=``)}function be(e){M.value=M.value.filter((t,n)=>n!==e)}async function xe(){if(fe.value){ue.value=!0;try{await s.updatePassthroughEnv(fe.value,M.value),a.add({severity:`success`,summary:c(`agentPage.passthrough.updated`),life:3e3}),w.value=!1}catch(e){a.add({severity:`error`,summary:c(`common.error`),detail:et(e)??c(`agentPage.passthrough.saveFailed`),life:5e3})}finally{ue.value=!1}}}let Se=at(()=>s.fetchAll(),6e4,`agent-page:fetch-all`);function Ce(){m.value=null,h.value={name:``,url:``,passphrase:``,orgId:null},ae.value=null,f.value=!0,_()}function ke(e){m.value=e.config.id,h.value={name:e.config.name,url:e.config.url,passphrase:``,orgId:null},ae.value=null,f.value=!0}async function Ae(){re.value=!0,ae.value=null;try{let e={url:h.value.url.trim()};h.value.passphrase.trim()&&(e.passphrase=h.value.passphrase.trim()),v.value&&(e.agentId=m.value),ae.value=await R.agent.testConnection.mutate(e)}catch(e){ae.value={success:!1,error:et(e)??c(`agentPage.dialog.testFailed`)}}finally{re.value=!1}}async function Me(){let{name:e,url:t,passphrase:n}=h.value;p.value=!0;try{if(v.value){let r={name:e.trim(),url:t.trim()};n.trim()&&(r.passphrase=n.trim()),await R.agent.update.mutate({id:m.value,...r}),a.add({severity:`success`,summary:c(`agentPage.toast.updated`),detail:c(`agentPage.toast.updatedDetail`,{name:e}),life:3e3})}else await R.agent.register.mutate({name:e.trim(),url:t.trim(),passphrase:n.trim(),orgId:h.value.orgId}),a.add({severity:`success`,summary:c(`agentPage.toast.registered`),detail:c(`agentPage.toast.registeredDetail`,{name:e}),life:3e3});f.value=!1,await s.fetchAll()}catch(e){a.add({severity:`error`,summary:c(`common.error`),detail:et(e)??c(`agentPage.toast.saveFailed`),life:5e3})}finally{p.value=!1}}function Ne(e){o.require({message:c(`agentPage.confirm.removeMessage`,{name:e.config.name}),header:c(`agentPage.confirm.removeHeader`),icon:`ti ti-alert-triangle`,rejectLabel:c(`actions.cancel`),acceptLabel:c(`agentPage.remove`),acceptProps:{severity:`danger`},accept:()=>Fe(e.config.id)})}async function Fe(e){try{await R.agent.remove.mutate({id:e}),a.add({severity:`success`,summary:c(`agentPage.toast.removed`),life:2e3}),await s.fetchAll()}catch(e){a.add({severity:`error`,summary:c(`common.error`),detail:et(e)??c(`agentPage.toast.removeFailed`),life:5e3})}}return ie(()=>{s.fetchAll(),s.subscribeStatus(),Se.start()}),oe(()=>{s.unsubscribeStatus(),Se.stop()}),r({openRegisterDialog:Ce}),(e,n)=>{let r=l(`tooltip`);return D(),x(`div`,ms,[i.embedded?F(``,!0):(D(),x(`div`,hs,[b(`h1`,null,A(t(c)(`agents.title`)),1),u(t(L),{label:t(c)(`agentPage.registerAgent`),icon:`ti ti-plus`,onClick:Ce},null,8,[`label`])])),t(s).loading&&t(s).agents.length===0?(D(),x(`div`,gs,[u(t(we))])):t(s).error&&t(s).agents.length===0?(D(),x(`div`,_s,[n[11]||=b(`i`,{class:`ti ti-alert-triangle`,style:{"font-size":`2rem`,color:`var(--r-red-500)`}},null,-1),b(`p`,null,A(t(s).error),1),u(t(L),{label:t(c)(`agentPage.retry`),icon:`ti ti-refresh`,severity:`secondary`,onClick:n[0]||=e=>t(s).fetchAll()},null,8,[`label`])])):t(s).agents.length===0?(D(),x(`div`,vs,[n[12]||=b(`i`,{class:`ti ti-server`,style:{"font-size":`3rem`}},null,-1),b(`p`,null,A(t(c)(`agentPage.empty`)),1),u(t(L),{label:t(c)(`agentPage.registerAgent`),icon:`ti ti-plus`,onClick:Ce},null,8,[`label`])])):(D(),N(t(Re),{key:4,value:t(s).agents,stripedRows:``,paginator:!0,rows:10,"rows-per-page-options":[5,10,20],class:`agents-table`},{default:k(()=>[u(t(Be),{field:`config.name`,header:t(c)(`common.name`)},{body:k(({data:e})=>[b(`span`,ys,[n[13]||=b(`i`,{class:`ti ti-server`},null,-1),d(` `+A(e.config.name)+` `,1),e.isLocal?(D(),N(t(Oe),{key:0,value:t(c)(`agents.local`),severity:`secondary`,size:`small`},null,8,[`value`])):F(``,!0)])]),_:1},8,[`header`]),u(t(Be),{field:`config.url`,header:t(c)(`common.url`)},{body:k(({data:e})=>[b(`code`,bs,A(e.config.url),1)]),_:1},8,[`header`]),u(t(Be),{header:t(c)(`common.status`),style:{width:`140px`}},{body:k(({data:e})=>[u(t(Oe),{value:e.status.connected?t(c)(`agents.connected`):t(c)(`agents.disconnected`),severity:e.status.connected?`success`:`danger`,icon:e.status.connected?`ti ti-circle-check`:`ti ti-circle-x`},null,8,[`value`,`severity`,`icon`])]),_:1},8,[`header`]),u(t(Be),{header:t(c)(`agentPage.runners`),style:{width:`180px`},class:`hide-on-mobile`},{body:k(({data:e})=>[b(`div`,xs,[(D(!0),x(O,null,S(e.status.runnersAvailable??[],e=>(D(),N(t(Oe),{key:e,value:e,severity:e===`docker`?`warn`:`info`,size:`small`},null,8,[`value`,`severity`]))),128)),e.status.runnersAvailable?.length?F(``,!0):(D(),x(`span`,Ss,`-`))])]),_:1},8,[`header`]),u(t(Be),{header:t(c)(`agentPage.actions`),style:{width:`110px`}},{body:k(({data:e})=>[b(`div`,Cs,[y(u(t(L),{icon:`ti ti-world`,severity:`info`,variant:`text`,rounded:``,size:`small`,onClick:t=>ve(e)},null,8,[`onClick`]),[[r,t(c)(`agentPage.passthrough.titleShort`),void 0,{top:!0}]]),y(u(t(L),{icon:`ti ti-server`,severity:`info`,variant:`text`,rounded:``,size:`small`,onClick:t=>le(e)},null,8,[`onClick`]),[[r,`Traefik`,void 0,{top:!0}]]),y(u(t(L),{icon:`ti ti-pencil`,severity:`info`,variant:`text`,rounded:``,size:`small`,disabled:e.isLocal,onClick:t=>ke(e)},null,8,[`disabled`,`onClick`]),[[r,e.isLocal?t(c)(`agentPage.localCannotEdit`):t(c)(`agentPage.editAgent`),void 0,{top:!0}]]),y(u(t(L),{icon:`ti ti-trash`,severity:`danger`,variant:`text`,rounded:``,size:`small`,disabled:e.isLocal,onClick:t=>Ne(e)},null,8,[`disabled`,`onClick`]),[[r,e.isLocal?t(c)(`agentPage.localCannotRemove`):t(c)(`agentPage.removeAgent`),void 0,{top:!0}]])])]),_:1},8,[`header`])]),_:1},8,[`value`])),u(t(je),{visible:w.value,"onUpdate:visible":n[3]||=e=>w.value=e,header:t(c)(`agentPage.passthrough.header`,{name:j.value}),style:{width:`550px`},modal:``,closable:!ue.value},{footer:k(()=>[u(t(L),{label:t(c)(`actions.cancel`),severity:`secondary`,variant:`text`,disabled:ue.value,onClick:n[2]||=e=>w.value=!1},null,8,[`label`,`disabled`]),u(t(L),{label:t(c)(`actions.save`),icon:`ti ti-check`,loading:ue.value,onClick:xe},null,8,[`label`,`loading`])]),default:k(()=>[b(`p`,ws,A(t(c)(`agentPage.passthrough.description`)),1),M.value.length>0?(D(),x(`div`,Ts,[(D(!0),x(O,null,S(M.value,(e,n)=>(D(),x(`div`,{key:e,class:`passthrough-item`},[b(`div`,Es,[b(`code`,null,A(e),1),me.value[e]===void 0?!de.value&&pe.value.has(e)?(D(),x(`span`,Os,A(t(c)(`agentPage.passthrough.undefined`)),1)):!de.value&&!pe.value.has(e)?(D(),x(`span`,ks,A(t(c)(`agentPage.passthrough.notSaved`)),1)):F(``,!0):(D(),x(`span`,Ds,`= `+A(me.value[e]),1))]),u(t(L),{icon:`ti ti-x`,severity:`danger`,variant:`text`,rounded:``,size:`small`,onClick:e=>be(n)},null,8,[`onClick`])]))),128))])):(D(),x(`p`,As,A(t(c)(`agentPage.passthrough.empty`)),1)),b(`div`,js,[u(t(Te),{modelValue:P.value,"onUpdate:modelValue":n[1]||=e=>P.value=e,placeholder:t(c)(`agentPage.passthrough.placeholder`),class:`passthrough-add-input`,onKeyup:_e(ye,[`enter`])},null,8,[`modelValue`,`placeholder`]),u(t(L),{icon:`ti ti-plus`,label:t(c)(`actions.add`),size:`small`,disabled:!I.value,onClick:ye},null,8,[`label`,`disabled`])]),ge.value?(D(),x(`small`,Ms,A(ge.value),1)):F(``,!0)]),_:1},8,[`visible`,`header`,`closable`]),u(t(je),{visible:f.value,"onUpdate:visible":n[9]||=e=>f.value=e,header:ee.value,style:{width:`500px`},modal:``,closable:!p.value},{footer:k(()=>[u(t(L),{label:t(c)(`actions.cancel`),severity:`secondary`,variant:`text`,disabled:p.value,onClick:n[8]||=e=>f.value=!1},null,8,[`label`,`disabled`]),u(t(L),{label:te.value,icon:`ti ti-check`,loading:p.value,disabled:!ne.value,onClick:Me},null,8,[`label`,`loading`,`disabled`])]),default:k(()=>[b(`div`,Ns,[b(`label`,Ps,A(t(c)(`common.name`))+` *`,1),u(t(Te),{id:`agent-name`,modelValue:h.value.name,"onUpdate:modelValue":n[4]||=e=>h.value.name=e,placeholder:t(c)(`agentPage.dialog.namePlaceholder`),class:`w-full`,autofocus:``},null,8,[`modelValue`,`placeholder`])]),b(`div`,Fs,[b(`label`,Is,A(t(c)(`common.url`))+` *`,1),u(t(Te),{id:`agent-url`,modelValue:h.value.url,"onUpdate:modelValue":n[5]||=e=>h.value.url=e,placeholder:t(c)(`agentPage.dialog.urlPlaceholder`),class:`w-full`},null,8,[`modelValue`,`placeholder`]),b(`small`,Ls,A(t(c)(`agentPage.dialog.urlHint`)),1)]),b(`div`,Rs,[b(`label`,zs,A(t(c)(`agentPage.dialog.passphrase`))+` `+A(v.value?``:`*`),1),u(t(Ve),{id:`agent-passphrase`,modelValue:h.value.passphrase,"onUpdate:modelValue":n[6]||=e=>h.value.passphrase=e,placeholder:v.value?t(c)(`agentPage.dialog.passphraseKeep`):t(c)(`agentPage.dialog.passphrasePlaceholder`),feedback:!1,toggleMask:``,class:`w-full`,inputClass:`w-full`},null,8,[`modelValue`,`placeholder`]),b(`small`,Bs,A(t(c)(`agentPage.dialog.passphraseHint`)),1)]),!v.value&&g.value.length?(D(),x(`div`,Vs,[b(`label`,Hs,A(t(c)(`agentPage.dialog.owner`)),1),u(t(De),{id:`agent-owner`,modelValue:h.value.orgId,"onUpdate:modelValue":n[7]||=e=>h.value.orgId=e,options:[{label:t(c)(`agentPage.dialog.ownerMachine`),value:null},...g.value],"option-label":`label`,"option-value":`value`,class:`w-full`},null,8,[`modelValue`,`options`]),b(`small`,Us,A(t(c)(`agentPage.dialog.ownerHint`)),1)])):F(``,!0),b(`div`,Ws,[u(t(L),{label:t(c)(`agentPage.dialog.testConnection`),icon:`ti ti-bolt`,severity:`secondary`,variant:`outlined`,size:`small`,loading:re.value,disabled:!C.value,onClick:Ae},null,8,[`label`,`loading`,`disabled`]),ae.value?.success?(D(),N(t(Oe),{key:0,value:t(c)(`agents.connected`),severity:`success`,icon:`ti ti-circle-check`},null,8,[`value`])):ae.value&&!ae.value.success?(D(),N(t(Oe),{key:1,value:ae.value.error??t(c)(`agentPage.dialog.connectionFailed`),severity:`danger`,icon:`ti ti-circle-x`},null,8,[`value`])):F(``,!0)])]),_:1},8,[`visible`,`header`,`closable`]),u(t(je),{visible:se.value,"onUpdate:visible":n[10]||=e=>se.value=e,header:`Traefik — ${E.value}`,style:{width:`90vw`,maxWidth:`1400px`},modal:``,"dismissable-mask":``},{default:k(()=>[ce.value?(D(),N(ps,{key:0,"agent-id":ce.value},null,8,[`agent-id`])):F(``,!0)]),_:1},8,[`visible`,`header`])])}}}),[[`__scopeId`,`data-v-0cafa443`]]),Ks={class:`api-keys-page`},qs={key:0,class:`api-keys-page__empty`},Js={key:1,class:`api-keys-page__empty`},Ys={class:`api-keys-list`},Xs={class:`api-key-card__body`},Zs={class:`api-key-card__name`},Qs={key:0,class:`badge badge--info`},$s={class:`api-key-card__meta`},ec={class:`api-key-card__url-row`},tc={class:`api-key-card__url`},nc=[`title`,`onClick`],rc=[`title`,`onClick`],ic={class:`api-key-card__skill`},ac=[`onClick`],oc={key:0,class:`skill-panel`},sc={class:`skill-panel__tools`},cc=[`onClick`],lc={class:`skill-panel__header`},uc={class:`skill-panel__hint`},dc={class:`skill-panel__btns`},fc=[`disabled`,`title`,`onClick`],pc=[`title`,`onClick`],mc={class:`skill-panel__code`},hc={class:`api-key-card__actions`},gc=[`title`,`onClick`],_c=[`title`,`onClick`],vc={key:3,class:`api-key-form`},yc={class:`form-field`},bc={for:`apikeys-key-name`},xc={key:0,class:`form-field`},Sc={for:`apikeys-key-owner`},Cc={class:`form-field`},wc={for:`apikeys-svc-search`},Tc={key:0,class:`svc-list-container`},Ec={class:`svc-list-search`},Dc={class:`svc-list-scroll`},Oc={key:0,class:`form-hint svc-list-empty`},kc=[`onClick`],Ac={class:`svc-perm-row__name`},jc={class:`svc-perm-summary`},Mc=[`title`,`onClick`],Nc={key:0,class:`svc-perm-row__actions`},Pc={key:1,class:`svc-perm-row__envs`},Fc={class:`env-perm-row__name`},Ic=[`onClick`],Lc={key:0,class:`env-add-row`},Rc={key:1,class:`svc-add-row`},zc={key:2,class:`form-hint`},Bc={key:3,class:`form-hint`},Vc={class:`import-modal__body`},Hc={class:`import-modal__desc`},Uc={class:`import-section`},Wc={class:`svc-perm-row__actions`},Gc={class:`import-section`},Kc={class:`import-section__label`},qc={class:`svc-perm-row__envs`},Jc={class:`env-perm-row__name`},Yc=[`onClick`],Xc={key:0,class:`env-add-row`},Zc={class:`form-field`},Qc={for:`apikeys-storage-private`},$c={class:`radio-label`},el={class:`radio-label`},tl={class:`form-actions`},nl={class:`form-actions__right`},rl=[`disabled`],il=[`disabled`],al={key:0,class:`ti ti-spin ti-loader-2`},ol={class:`renew-modal__title`},sl={class:`renew-modal__body`},cl=[`disabled`],ll=[`disabled`],ul=Me(E({__name:`ApiKeysPage`,setup(e,{expose:r}){let{t:i}=Le(),a=Ee(),o=pt(),s=$e(),c=n([]),l=n(!1),f=T(()=>o.services.map(e=>({id:e.id,name:e.name})));function p(e){return s.findServiceEnvironments(e).map(e=>{let t=e.activateOn?s.getById(e.activateOn):null;return{id:e.id,name:t?.name??e.name}})}let h=n(!1),g=n(null),_=n(``),v=n(!1),ee=n(null),te=n([]);async function ne(){try{let[e,t]=await Promise.all([R.cloudSync.list.query(),tt()]),n=new Map(t.map(e=>[e.id,e.name]));te.value=e.map(e=>({label:n.get(e.orgId)??e.orgId,value:e.orgId}))}catch{te.value=[]}}let re=n(!1),y=n([]),ae=n(new Set),w=n(``);function oe(e){let t=new Set(ae.value);t.has(e)?t.delete(e):t.add(e),ae.value=t}let se=n(null),ce=n(new Set),E=n(new Map),le=n(null),ue=n(null),de=n(!1),fe=n(!1),j=n(!1),M=n([`service:read`]),pe=n([]);function me(){M.value=[`service:read`],pe.value=[],j.value=!0}function P(e){M.value=M.value.includes(e)?M.value.filter(t=>t!==e):[...M.value,e]}function he(e){pe.value=[...pe.value,{environmentId:e,actions:[`env:read`],includeSecrets:!1}]}function ge(e){pe.value=pe.value.filter((t,n)=>n!==e)}function _e(e,t){pe.value=pe.value.map((n,r)=>{if(r!==e)return n;let i=n.actions.includes(t)?n.actions.filter(e=>e!==t):[...n.actions,t];return{...n,actions:i}})}function ve(e){pe.value=pe.value.map((t,n)=>n===e?{...t,includeSecrets:!t.includeSecrets}:t)}let ye=T(()=>{let e=new Set(pe.value.map(e=>e.environmentId));return s.globalEnvironments.filter(t=>!e.has(t.id))});function be(){let e=L.value;if(e.length===0){j.value=!1;return}let t=e.map(e=>({serviceId:e.id,actions:[...M.value],environments:pe.value.flatMap(t=>{let n=s.findServiceEnvironment(e.id,t.environmentId);return n?[{environmentId:n.id,actions:[...t.actions],includeSecrets:t.includeSecrets}]:[]})}));y.value=[...y.value,...t],j.value=!1}let xe=[{id:`claude`,label:`Claude Code`,file:`.claude/skills/runeya/SKILL.md`,hint:`Create`,canWrite:!0},{id:`gemini`,label:`Gemini CLI`,file:`GEMINI.md`,hint:`Insert into`,canWrite:!1},{id:`codex`,label:`Codex CLI`,file:`AGENTS.md`,hint:`Insert into`,canWrite:!1},{id:`cursor`,label:`Cursor`,file:`.cursor/rules/runeya.mdc`,hint:`Create`,canWrite:!0},{id:`copilot`,label:`Copilot`,file:`.github/copilot-instructions.md`,hint:`Insert into`,canWrite:!1},{id:`windsurf`,label:`Windsurf`,file:`.windsurf/rules/runeya.md`,hint:`Create`,canWrite:!0}],we=[{value:`service:read`,label:i(`apiKeysPage.read`)},{value:`logs:read`,label:`Logs`},{value:`service:status`,label:i(`actions.status`)},{value:`service:healthcheck`,label:`Healthcheck`},{value:`service:start`,label:i(`actions.start`)},{value:`service:stop`,label:i(`actions.stop`)},{value:`service:restart`,label:i(`actions.restart`)}],Oe=T(()=>new Set(y.value.map(e=>e.serviceId))),Ae=T(()=>{let e=w.value.trim().toLowerCase();return e?y.value.map((e,t)=>({perm:e,idx:t})).filter(({perm:t})=>St(t.serviceId).toLowerCase().includes(e)):y.value.map((e,t)=>({perm:e,idx:t}))}),L=T(()=>f.value.filter(e=>!Oe.value.has(e.id)));function Me(e){return E.value.get(e)??`claude`}function Ne(e,t){let n=new Map(E.value);n.set(e,t),E.value=n}async function Pe(){l.value=!0;try{c.value=await R.apiKeys.list.query()}catch(e){a.add({severity:`error`,summary:i(`apiKeysPage.error`),detail:e.message,life:4e3})}finally{l.value=!1}}ie(Pe);function Fe(e){return`http://localhost:${window.location.port||`4000`}/${ot(e)}/llms.txt`}function Ie(e){let t=e.services.length;return i(`apiKeysPage.scopeSummary`,t,{named:{count:t}})}function Re(e){return{serviceId:e,actions:[`service:read`],environments:[]}}function ze(){g.value=null,_.value=``,v.value=!1,y.value=[],ae.value=new Set,w.value=``,ee.value=null,h.value=!0,ne()}function Be(e){et=!0,g.value=e.id,_.value=e.name,v.value=e.isPublic,y.value=e.scopes.services.map(e=>({serviceId:e.serviceId,actions:[...e.actions],environments:e.environments.map(e=>({environmentId:e.environmentId,actions:[...e.actions],includeSecrets:e.includeSecrets}))})),ae.value=new Set,w.value=``,de.value=!1,h.value=!0}function Ve(){h.value=!1,g.value=null}function He(e){let t=y.value.length;y.value=[...y.value,Re(e)],ae.value=new Set([...ae.value,t])}function Ue(e){y.value=y.value.filter((t,n)=>n!==e)}function We(e,t){let n=y.value[e],r=n.actions.includes(t)?n.actions.filter(e=>e!==t):[...n.actions,t];y.value=y.value.map((t,n)=>n===e?{...t,actions:r}:t)}function Ge(e){return new Set(y.value[e].environments.map(e=>e.environmentId))}function Ke(e){let t=Ge(e),n=y.value[e]?.serviceId;return n?p(n).filter(e=>!t.has(e.id)):[]}function qe(e,t){let n={environmentId:t,actions:[`env:read`],includeSecrets:!1};y.value=y.value.map((t,r)=>r===e?{...t,environments:[...t.environments,n]}:t)}function Je(e,t){y.value=y.value.map((n,r)=>r===e?{...n,environments:n.environments.filter((e,n)=>n!==t)}:n)}function Ye(e,t,n){y.value=y.value.map((r,i)=>{if(i!==e)return r;let a=r.environments.map((e,r)=>{if(r!==t)return e;let i=e.actions.includes(n)?e.actions.filter(e=>e!==n):[...e.actions,n];return{...e,actions:i}});return{...r,environments:a}})}function Xe(e,t){y.value=y.value.map((n,r)=>{if(r!==e)return n;let i=n.environments.map((e,n)=>n===t?{...e,includeSecrets:!e.includeSecrets}:e);return{...n,environments:i}})}function Ze(){return{services:y.value.map(e=>({serviceId:e.serviceId,actions:e.actions,environments:e.environments.map(e=>({environmentId:e.environmentId,actions:e.actions,includeSecrets:e.includeSecrets}))}))}}let Qe=null,et=!1;m([y,v],()=>{if(g.value){if(et){et=!1;return}Qe&&clearTimeout(Qe),Qe=setTimeout(async()=>{try{let e=Ze();await R.apiKeys.update.mutate({id:g.value,name:_.value.trim(),scopes:e,isPublic:v.value}),c.value=await R.apiKeys.list.query()}catch(e){a.add({severity:`error`,summary:i(`apiKeysPage.error`),detail:e.message,life:5e3})}},300)}},{deep:!0});async function nt(){if(!_.value.trim()){a.add({severity:`warn`,summary:i(`validation.requiredField`),detail:i(`validation.nameRequired`),life:3e3});return}re.value=!0;try{let e=Ze();if(g.value)await R.apiKeys.update.mutate({id:g.value,name:_.value.trim(),scopes:e,isPublic:v.value}),a.add({severity:`success`,summary:i(`apiKeysPage.updated`),detail:i(`apiKeysPage.keyUpdated`),life:3e3});else{let t=await R.apiKeys.create.mutate({name:_.value.trim(),scopes:e,isPublic:v.value,orgId:ee.value});it.value={...it.value,[t.id]:t.key},a.add({severity:`success`,summary:i(`apiKeysPage.keyCreated`),life:3e3})}Ve(),await Pe()}catch(e){a.add({severity:`error`,summary:i(`apiKeysPage.error`),detail:e.message,life:5e3})}finally{re.value=!1}}async function rt(e){try{await R.apiKeys.remove.mutate({id:e}),await Pe(),a.add({severity:`success`,summary:i(`apiKeysPage.deleted`),detail:i(`apiKeysPage.keyRevoked`),life:3e3})}catch(e){a.add({severity:`error`,summary:i(`apiKeysPage.error`),detail:e.message,life:4e3})}}let it=n({});async function at(e){let t=it.value[e];if(t)return t;let{key:n}=await R.apiKeys.reveal.query({id:e});return it.value={...it.value,[e]:n},n}function ot(e){return it.value[e.id]??`${`•`.repeat(8)}${e.keyPreview}`}async function st(e){await lt(await at(e.id),e.id+`key`)}async function ct(e){await at(e.id),await lt(Fe(e),e.id+`url`)}async function lt(e,t){await navigator.clipboard.writeText(e),se.value=t,setTimeout(()=>{se.value=null},2e3)}async function ut(e){let t=new Set(ce.value);t.has(e)?t.delete(e):(t.add(e),await at(e)),ce.value=t}function dt(e){let t=Fe(e),n=e.scopes.services.map(e=>f.value.find(t=>t.id===e.serviceId)?.name??e.serviceId),r=n.length===0?`No services accessible.`:`Accessible services: ${n.join(`, `)}.`,i={"service:read":`read service configs and status`,"logs:read":`read service logs`,"service:status":`get service status`,"service:healthcheck":`get service health`,"service:start":`start services`,"service:stop":`stop services`,"service:restart":`restart services`,"env:read":`read environment variables`,"env:write":`write environment variables`};return{url:t,scopeLines:r,actionList:[...new Set(e.scopes.services.flatMap(e=>[...e.actions,...e.environments.flatMap(e=>e.actions)]))].map(e=>`- ${i[e]??e}`).join(`
4
- `)}}function ft(e){let{url:t,scopeLines:n,actionList:r}=dt(e);return`# Runeya — ${e.name}
5
-
6
- Manage and monitor local development services via the Runeya instance running on this machine.
7
-
8
- ## Context
9
-
10
- Before answering any question about services, their status, or their logs, fetch the llms.txt:
11
-
12
- \`\`\`
13
- ${t}
14
- \`\`\`
15
-
16
- ${n}
17
-
18
- ## Permissions
19
-
20
- ${r}
21
-
22
- ## Usage
23
-
24
- - Fetch the llms.txt URL above to discover available services and their current status.
25
- - Use the documented API endpoints to start, stop, restart services or read their logs.
26
- - Always re-fetch the llms.txt if the user asks about a service you don't have info on yet.
27
-
28
- ## Important
29
-
30
- **Always use \`curl\` (or equivalent HTTP client like \`fetch\`, \`axios\`, \`httpx\`) to call the API — never open a browser or use browser automation tools.**
31
- `}function mt(e){let{url:t,scopeLines:n,actionList:r}=dt(e);return`## Runeya — ${e.name}
32
-
33
- You have access to a Runeya instance for managing local development services.
34
-
35
- Before answering any question about services, fetch the llms.txt endpoint for up-to-date context:
36
-
37
- \`\`\`
38
- ${t}
39
- \`\`\`
40
-
41
- ${n}
42
-
43
- Allowed actions:
44
- ${r}
45
-
46
- Always re-fetch the llms.txt if the user asks about a service not yet in context.
47
-
48
- **Always use \`curl\` or an HTTP client to call the API — never use a browser or browser automation.**
49
- `}function ht(e){let{url:t,scopeLines:n,actionList:r}=dt(e);return`## Runeya — ${e.name}
50
-
51
- You can manage local development services via the Runeya instance on this machine.
52
-
53
- Fetch the following URL for up-to-date service context before answering service-related questions:
54
-
55
- \`\`\`
56
- ${t}
57
- \`\`\`
58
-
59
- ${n}
60
-
61
- Allowed actions:
62
- ${r}
63
-
64
- **Always use \`curl\` or an HTTP client to call the API — never use a browser or browser automation.**
65
- `}function gt(e){let{url:t,scopeLines:n,actionList:r}=dt(e);return`---
66
- description: Runeya local service manager (${e.name})
67
- alwaysApply: false
68
- ---
69
-
70
- # Runeya — ${e.name}
71
-
72
- Manage and monitor local development services via the Runeya instance on this machine.
73
-
74
- When the user asks about services, their status, or logs, fetch the llms.txt first:
75
-
76
- \`\`\`
77
- ${t}
78
- \`\`\`
79
-
80
- ${n}
81
-
82
- Allowed actions:
83
- ${r}
84
-
85
- **Always use \`curl\` or an HTTP client to call the API — never use a browser or browser automation.**
86
- `}function _t(e){let{url:t,scopeLines:n,actionList:r}=dt(e);return`## Runeya — ${e.name}
87
-
88
- When asked about local development services, fetch the Runeya llms.txt for context:
89
-
90
- \`\`\`
91
- ${t}
92
- \`\`\`
93
-
94
- ${n}
95
-
96
- Allowed actions:
97
- ${r}
98
-
99
- **Always use \`curl\` or an HTTP client to call the API — never use a browser or browser automation.**
100
- `}function vt(e){let{url:t,scopeLines:n,actionList:r}=dt(e);return`---
101
- trigger: manual
102
- description: Runeya local service manager (${e.name})
103
- ---
104
-
105
- # Runeya — ${e.name}
106
-
107
- Manage and monitor local development services via the Runeya instance on this machine.
108
-
109
- Fetch the llms.txt before answering service-related questions:
110
-
111
- \`\`\`
112
- ${t}
113
- \`\`\`
114
-
115
- ${n}
116
-
117
- Allowed actions:
118
- ${r}
119
-
120
- **Always use \`curl\` or an HTTP client to call the API — never use a browser or browser automation.**
121
- `}function yt(e,t){switch(t){case`gemini`:return mt(e);case`codex`:return ht(e);case`cursor`:return gt(e);case`copilot`:return _t(e);case`windsurf`:return vt(e);default:return ft(e)}}async function bt(){if(g.value){fe.value=!0;try{let e=await R.apiKeys.renewKey.mutate({id:g.value});it.value={...it.value,[e.id]:e.key},await Pe(),de.value=!1,a.add({severity:`success`,summary:i(`apiKeysPage.keyRenewed`),detail:i(`apiKeysPage.oldKeyRevoked`),life:4e3})}catch(e){a.add({severity:`error`,summary:i(`apiKeysPage.error`),detail:e.message,life:5e3})}finally{fe.value=!1}}}async function xt(e,t){le.value=e.id;try{await at(e.id);let n=yt(e,t.id);await R.apiKeys.writeSkillFile.mutate({relativePath:t.file,content:n}),ue.value=e.id,a.add({severity:`success`,summary:i(`apiKeysPage.written`),detail:t.file,life:3e3}),setTimeout(()=>{ue.value=null},2500)}catch(e){a.add({severity:`error`,summary:i(`apiKeysPage.error`),detail:e.message,life:5e3})}finally{le.value=null}}function St(e){return f.value.find(t=>t.id===e)?.name??e}function Ct(e){let t=s.getById(e);return t?(t.activateOn?s.getById(t.activateOn):null)?.name??t.name:e}return r({openCreate:ze}),(e,n)=>(D(),x(`div`,Ks,[l.value?(D(),x(`div`,qs,A(t(i)(`apiKeysPage.loading`)),1)):c.value.length===0&&!h.value?(D(),x(`div`,Js,A(t(i)(`apiKeysPage.noApiKey`)),1)):F(``,!0),h.value?F(``,!0):(D(),N(t(ke),{key:2,class:`api-keys-card`},{content:k(()=>[b(`div`,Ys,[(D(!0),x(O,null,S(c.value,e=>(D(),x(`div`,{key:e.id,class:`api-key-card`},[b(`div`,Xs,[b(`div`,Zs,[n[12]||=b(`i`,{class:`ti ti-key`},null,-1),d(` `+A(e.name)+` `,1),e.isPublic?(D(),x(`span`,Qs,A(t(i)(`apiKeysPage.shareable`)),1)):F(``,!0)]),b(`div`,$s,A(t(i)(`apiKeysPage.createdOn`))+` `+A(new Date(e.createdAt).toLocaleDateString())+` · `+A(Ie(e.scopes)),1),b(`div`,ec,[b(`code`,tc,A(Fe(e)),1),b(`button`,{class:`btn btn--ghost btn--xs`,title:se.value===e.id+`url`?t(i)(`apiKeysPage.copied`):t(i)(`apiKeysPage.copyUrl`),onClick:t=>ct(e)},[b(`i`,{class:C(se.value===e.id+`url`?`ti ti-check`:`ti ti-copy`)},null,2)],8,nc),b(`button`,{class:`btn btn--ghost btn--xs`,title:se.value===e.id+`key`?t(i)(`apiKeysPage.copied`):t(i)(`apiKeysPage.copyKeyOnly`),onClick:t=>st(e)},[b(`i`,{class:C(se.value===e.id+`key`?`ti ti-check`:`ti ti-key`)},null,2)],8,rc)]),b(`div`,ic,[b(`button`,{class:`btn btn--ghost btn--xs skill-toggle`,onClick:t=>ut(e.id)},[n[13]||=b(`i`,{class:`ti ti-bolt`},null,-1),d(` `+A(t(i)(`apiKeysPage.aiIntegration`))+` `,1),b(`i`,{class:C(ce.value.has(e.id)?`ti ti-chevron-up`:`ti ti-chevron-down`)},null,2)],8,ac),ce.value.has(e.id)?(D(),x(`div`,oc,[b(`div`,sc,[(D(),x(O,null,S(xe,t=>b(`button`,{key:t.id,class:C([`skill-tool-btn`,{"skill-tool-btn--active":Me(e.id)===t.id}]),onClick:n=>Ne(e.id,t.id)},A(t.label),11,cc)),64))]),b(`div`,lc,[b(`span`,uc,[d(A(xe.find(t=>t.id===Me(e.id))?.hint)+` `,1),b(`code`,null,A(xe.find(t=>t.id===Me(e.id))?.file),1)]),b(`div`,dc,[xe.find(t=>t.id===Me(e.id))?.canWrite?(D(),x(`button`,{key:0,class:`btn btn--ghost btn--xs`,disabled:le.value===e.id,title:ue.value===e.id?t(i)(`apiKeysPage.written`):t(i)(`apiKeysPage.writeFileToDisk`),onClick:t=>xt(e,xe.find(t=>t.id===Me(e.id)))},[b(`i`,{class:C(le.value===e.id?`ti ti-spin ti-loader-2`:ue.value===e.id?`ti ti-check`:`ti ti-file-pencil`)},null,2),d(` `+A(ue.value===e.id?t(i)(`apiKeysPage.written`):t(i)(`apiKeysPage.write`)),1)],8,fc)):F(``,!0),b(`button`,{class:`btn btn--ghost btn--xs`,title:se.value===e.id+`skill`?t(i)(`apiKeysPage.copied`):t(i)(`apiKeysPage.copy`),onClick:t=>lt(yt(e,Me(e.id)),e.id+`skill`)},[b(`i`,{class:C(se.value===e.id+`skill`?`ti ti-check`:`ti ti-copy`)},null,2),d(` `+A(se.value===e.id+`skill`?t(i)(`apiKeysPage.copied`):t(i)(`apiKeysPage.copy`)),1)],8,pc)])]),b(`pre`,mc,A(yt(e,Me(e.id))),1)])):F(``,!0)])]),b(`div`,hc,[b(`button`,{class:`btn btn--ghost btn--xs`,title:t(i)(`apiKeysPage.editKey`),onClick:t=>Be(e)},[...n[14]||=[b(`i`,{class:`ti ti-pencil`},null,-1)]],8,gc),b(`button`,{class:`btn btn--danger btn--xs`,title:t(i)(`apiKeysPage.revokeKey`),onClick:t=>rt(e.id)},[...n[15]||=[b(`i`,{class:`ti ti-trash`},null,-1)]],8,_c)])]))),128))])]),_:1})),h.value?(D(),x(`div`,vc,[b(`h2`,null,A(g.value?t(i)(`apiKeysPage.editOrNewTitle`):t(i)(`apiKeysPage.newTitle`)),1),b(`div`,yc,[b(`label`,bc,A(t(i)(`apiKeysPage.keyNameLabel`)),1),u(t(Te),{id:`apikeys-key-name`,modelValue:_.value,"onUpdate:modelValue":n[0]||=e=>_.value=e,fluid:``,placeholder:`ex. Claude Desktop`,maxlength:`200`},null,8,[`modelValue`])]),!g.value&&te.value.length?(D(),x(`div`,xc,[b(`label`,Sc,A(t(i)(`apiKeysPage.ownerLabel`)),1),u(t(De),{modelValue:ee.value,"onUpdate:modelValue":n[1]||=e=>ee.value=e,"input-id":`apikeys-key-owner`,options:[{value:null,label:t(i)(`apiKeysPage.ownerMachine`)},...te.value],"option-label":`label`,"option-value":`value`,fluid:``},null,8,[`modelValue`,`options`])])):F(``,!0),b(`div`,Cc,[b(`label`,wc,A(t(i)(`apiKeysPage.servicesAndPermissions`)),1),y.value.length>0?(D(),x(`div`,Tc,[b(`div`,Ec,[n[17]||=b(`i`,{class:`ti ti-search svc-list-search__icon`},null,-1),u(t(Te),{id:`apikeys-svc-search`,modelValue:w.value,"onUpdate:modelValue":n[2]||=e=>w.value=e,class:`svc-list-search__input`,placeholder:t(i)(`apiKeysPage.searchService`)},null,8,[`modelValue`,`placeholder`]),w.value?(D(),x(`button`,{key:0,class:`svc-list-search__clear`,onClick:n[3]||=e=>w.value=``},[...n[16]||=[b(`i`,{class:`ti ti-x`},null,-1)]])):F(``,!0)]),b(`div`,Dc,[Ae.value.length===0?(D(),x(`p`,Oc,A(t(i)(`apiKeysPage.noResults`)),1)):F(``,!0),(D(!0),x(O,null,S(Ae.value,({perm:e,idx:r})=>(D(),x(`div`,{key:e.serviceId,class:`svc-perm-row`},[b(`div`,{class:`svc-perm-row__header`,onClick:e=>oe(r)},[b(`span`,Ac,[b(`i`,{class:C([ae.value.has(r)?`ti ti-chevron-down`:`ti ti-chevron-right`,`svc-chevron`])},null,2),n[18]||=b(`i`,{class:`ti ti-server`},null,-1),d(` `+A(St(e.serviceId))+` `,1),b(`span`,jc,[d(A(e.actions.length)+` action`+A(e.actions.length===1?``:`s`)+` `,1),e.environments.length>0?(D(),x(O,{key:0},[d(`· `+A(e.environments.length)+` env`,1)],64)):F(``,!0)])]),b(`button`,{class:`btn btn--ghost btn--xs`,title:t(i)(`apiKeysPage.removeService`),onClick:I(e=>Ue(r),[`stop`])},[...n[19]||=[b(`i`,{class:`ti ti-x`},null,-1)]],8,Mc)],8,kc),ae.value.has(r)?(D(),x(`div`,Nc,[(D(),x(O,null,S(we,t=>u(kt,{key:t.value,"model-value":e.actions.includes(t.value),label:t.label,"onUpdate:modelValue":e=>We(r,t.value)},null,8,[`model-value`,`label`,`onUpdate:modelValue`])),64))])):F(``,!0),ae.value.has(r)?(D(),x(`div`,Pc,[(D(!0),x(O,null,S(e.environments,(e,a)=>(D(),x(`div`,{key:e.environmentId,class:`env-perm-row`},[b(`span`,Fc,[n[20]||=b(`i`,{class:`ti ti-world`},null,-1),d(` `+A(Ct(e.environmentId)),1)]),u(kt,{"model-value":e.actions.includes(`env:read`),label:t(i)(`apiKeysPage.read`),"onUpdate:modelValue":e=>Ye(r,a,`env:read`)},null,8,[`model-value`,`label`,`onUpdate:modelValue`]),e.actions.includes(`env:read`)?(D(),N(kt,{key:0,class:`action-chip--sub`,"model-value":e.includeSecrets,label:t(i)(`apiKeysPage.secrets`),"onUpdate:modelValue":e=>Xe(r,a)},null,8,[`model-value`,`label`,`onUpdate:modelValue`])):F(``,!0),u(kt,{"model-value":e.actions.includes(`env:write`),label:t(i)(`apiKeysPage.writePermission`),"onUpdate:modelValue":e=>Ye(r,a,`env:write`)},null,8,[`model-value`,`label`,`onUpdate:modelValue`]),b(`button`,{class:`btn btn--ghost btn--xs`,onClick:e=>Je(r,a)},[...n[21]||=[b(`i`,{class:`ti ti-x`},null,-1)]],8,Ic)]))),128)),Ke(r).length>0?(D(),x(`div`,Lc,[u(t(De),{"model-value":null,options:Ke(r),"option-label":`name`,"option-value":`id`,placeholder:t(i)(`apiKeysPage.addEnvironment`),size:`small`,"onUpdate:modelValue":e=>qe(r,e)},null,8,[`options`,`placeholder`,`onUpdate:modelValue`])])):F(``,!0)])):F(``,!0)]))),128))])])):F(``,!0),L.value.length>0?(D(),x(`div`,Rc,[u(t(De),{"model-value":null,options:L.value,"option-label":`name`,"option-value":`id`,placeholder:t(i)(`apiKeysPage.addService`),filter:``,fluid:``,"onUpdate:modelValue":n[4]||=e=>He(e)},null,8,[`options`,`placeholder`]),b(`button`,{class:`btn btn--ghost btn--sm`,onClick:me},[n[22]||=b(`i`,{class:`ti ti-download`},null,-1),d(` `+A(t(i)(`apiKeysPage.importMissing`))+` (`+A(L.value.length)+`) `,1)])])):f.value.length===0?(D(),x(`p`,zc,A(t(i)(`apiKeysPage.noServicesAvailable`)),1)):L.value.length===0?(D(),x(`p`,Bc,A(t(i)(`apiKeysPage.allServicesAdded`)),1)):F(``,!0),u(t(je),{visible:j.value,"onUpdate:visible":n[7]||=e=>j.value=e,modal:``,header:t(i)(`apiKeysPage.importMissingHeader`),style:{width:`480px`}},{footer:k(()=>[b(`button`,{class:`btn btn--ghost`,onClick:n[6]||=e=>j.value=!1},A(t(i)(`actions.cancel`)),1),b(`button`,{class:`btn btn--primary`,onClick:be},[n[26]||=b(`i`,{class:`ti ti-download`},null,-1),d(` `+A(t(i)(`apiKeysPage.importServices`,{count:L.value.length})),1)])]),default:k(()=>[b(`div`,Vc,[b(`p`,Hc,[b(`strong`,null,A(L.value.length),1),d(` service`+A(L.value.length===1?``:`s`)+` `+A(t(i)(`apiKeysPage.willBeAdded`)),1)]),b(`div`,Uc,[n[23]||=b(`div`,{class:`import-section__label`},`Actions`,-1),b(`div`,Wc,[(D(),x(O,null,S(we,e=>u(kt,{key:e.value,"model-value":M.value.includes(e.value),label:e.label,"onUpdate:modelValue":t=>P(e.value)},null,8,[`model-value`,`label`,`onUpdate:modelValue`])),64))])]),b(`div`,Gc,[b(`div`,Kc,A(t(i)(`apiKeysPage.environments`)),1),b(`div`,qc,[(D(!0),x(O,null,S(pe.value,(e,r)=>(D(),x(`div`,{key:e.environmentId,class:`env-perm-row`},[b(`span`,Jc,[n[24]||=b(`i`,{class:`ti ti-world`},null,-1),d(` `+A(Ct(e.environmentId)),1)]),u(kt,{"model-value":e.actions.includes(`env:read`),label:t(i)(`apiKeysPage.read`),"onUpdate:modelValue":e=>_e(r,`env:read`)},null,8,[`model-value`,`label`,`onUpdate:modelValue`]),e.actions.includes(`env:read`)?(D(),N(kt,{key:0,class:`action-chip--sub`,"model-value":e.includeSecrets,label:t(i)(`apiKeysPage.secrets`),"onUpdate:modelValue":e=>ve(r)},null,8,[`model-value`,`label`,`onUpdate:modelValue`])):F(``,!0),u(kt,{"model-value":e.actions.includes(`env:write`),label:t(i)(`apiKeysPage.writePermission`),"onUpdate:modelValue":e=>_e(r,`env:write`)},null,8,[`model-value`,`label`,`onUpdate:modelValue`]),b(`button`,{class:`btn btn--ghost btn--xs`,onClick:e=>ge(r)},[...n[25]||=[b(`i`,{class:`ti ti-x`},null,-1)]],8,Yc)]))),128)),ye.value.length>0?(D(),x(`div`,Xc,[u(t(De),{"model-value":null,options:ye.value,"option-label":`name`,"option-value":`id`,placeholder:t(i)(`apiKeysPage.addEnvironment`),size:`small`,"onUpdate:modelValue":n[5]||=e=>he(e)},null,8,[`options`,`placeholder`])])):F(``,!0)])])])]),_:1},8,[`visible`,`header`])]),b(`div`,Zc,[b(`label`,Qc,A(t(i)(`apiKeysPage.storageLabel`)),1),u(t(Se),{modelValue:v.value,"onUpdate:modelValue":n[8]||=e=>v.value=e,class:`radio-group`},{default:k(()=>[b(`label`,$c,[u(t(Ce),{"input-id":`apikeys-storage-private`,value:!1}),d(` `+A(t(i)(`apiKeysPage.privateOnly`))+` (`,1),n[27]||=b(`code`,null,`api-keys.private.json`,-1),d(` `+A(t(i)(`apiKeysPage.privateOnlyHint`))+`) `,1)]),b(`label`,el,[u(t(Ce),{value:!0}),d(` `+A(t(i)(`apiKeysPage.shareableLabel`))+` (`,1),n[28]||=b(`code`,null,`api-keys.json`,-1),d(` `+A(t(i)(`apiKeysPage.shareableHint`))+`) `,1)])]),_:1},8,[`modelValue`])]),b(`div`,tl,[g.value?(D(),x(`button`,{key:0,class:`btn btn--ghost btn--renew`,onClick:n[9]||=e=>de.value=!0},[n[29]||=b(`i`,{class:`ti ti-refresh`},null,-1),d(` `+A(t(i)(`apiKeysPage.renewKey`)),1)])):F(``,!0),b(`div`,nl,[b(`button`,{class:`btn btn--ghost`,disabled:re.value,onClick:Ve},A(t(i)(`actions.cancel`)),9,rl),b(`button`,{class:`btn btn--primary`,disabled:re.value,onClick:nt},[re.value?(D(),x(`i`,al)):F(``,!0),d(` `+A(g.value?t(i)(`apiKeysPage.saveOrCreate`):t(i)(`apiKeysPage.createKey`)),1)],8,il)])]),u(t(je),{visible:de.value,"onUpdate:visible":n[11]||=e=>de.value=e,modal:``,style:{width:`420px`}},{header:k(()=>[b(`span`,ol,[n[30]||=b(`i`,{class:`ti ti-alert-triangle renew-modal__title-icon`},null,-1),d(` `+A(t(i)(`apiKeysPage.renewKeyHeader`)),1)])]),footer:k(()=>[b(`button`,{class:`btn btn--ghost`,disabled:fe.value,onClick:n[10]||=e=>de.value=!1},A(t(i)(`actions.cancel`)),9,cl),b(`button`,{class:`btn btn--danger`,disabled:fe.value,onClick:bt},[b(`i`,{class:C(fe.value?`ti ti-spin ti-loader-2`:`ti ti-refresh`)},null,2),d(` `+A(t(i)(`apiKeysPage.renewKey`)),1)],8,ll)]),default:k(()=>[b(`div`,sl,[b(`p`,null,A(t(i)(`apiKeysPage.renewBodyLine1`)),1),b(`p`,null,A(t(i)(`apiKeysPage.renewBodyLine2`)),1)])]),_:1},8,[`visible`])])):F(``,!0)]))}}),[[`__scopeId`,`data-v-3638081a`]]),dl=Ue(`network`,()=>{let e=n(`localhost`),t=n(0),r=n(!1),i=n([]),a=null;function o(n){e.value=n.host,t.value=n.port,r.value=n.lanEnabled,i.value=n.lanUrls}function s(){return a??=R.settings.getNetwork.query().then(o).catch(()=>{a=null}),a}async function c(e){o(await R.settings.setLanMode.mutate({enabled:e}))}return{host:e,port:t,lanEnabled:r,lanUrls:i,ensureLoaded:s,setLanMode:c}}),fl={class:`cloud-banner__text`},pl={class:`cloud-banner__title`},ml={class:`cloud-banner__desc`},hl={class:`cloud-banner__action`},gl={class:`setting-row`},_l={class:`setting-value`},vl={class:`path-value`},yl={class:`setting-row`},bl={class:`setting-value`},xl={class:`path-value`},Sl={class:`setting-row`},Cl={class:`setting-value`,style:{"flex-direction":`column`,"align-items":`stretch`,gap:`0.5rem`}},wl={style:{display:`flex`,"align-items":`center`,gap:`0.75rem`}},Tl={style:{color:`var(--r-text-muted)`,"font-size":`0.85rem`}},El={key:0,style:{display:`flex`,"flex-direction":`column`,gap:`0.25rem`}},Dl={class:`path-value`},Ol={style:{margin:`0 0 0.5rem`,color:`var(--r-text-muted)`,"font-size":`0.85rem`}},kl={class:`setting-row`},Al={for:`launcher-name`,class:`setting-label`},jl={class:`setting-value`},Ml={class:`setting-row`},Nl={for:`launcher-scope`,class:`setting-label`},Pl={class:`setting-value`,style:{"flex-direction":`column`,"align-items":`stretch`,gap:`0.5rem`}},Fl={style:{display:`flex`,"align-items":`center`,gap:`0.75rem`}},Il={style:{"font-size":`0.85rem`}},Ll={style:{color:`var(--r-text-muted)`,"font-size":`0.8rem`}},Rl={key:0,class:`setting-row`},zl={for:`launcher-project`,class:`setting-label`},Bl={class:`setting-value`,style:{"flex-direction":`column`,"align-items":`stretch`,gap:`0.5rem`}},Vl={style:{display:`flex`,"align-items":`center`,gap:`0.75rem`}},Hl={style:{"font-size":`0.85rem`}},Ul={style:{color:`var(--r-text-muted)`,"font-size":`0.8rem`}},Wl={class:`setting-row`},Gl={class:`setting-label`},Kl={class:`setting-value`,style:{"flex-direction":`column`,"align-items":`stretch`,gap:`0.5rem`}},ql={style:{display:`flex`,"align-items":`center`,gap:`0.75rem`,"flex-wrap":`wrap`}},Jl={for:`launcher-port`,style:{"font-size":`0.85rem`}},Yl={for:`launcher-agent-port`,style:{"font-size":`0.85rem`}},Xl={style:{color:`var(--r-text-muted)`,"font-size":`0.8rem`}},Zl={class:`setting-actions`},Ql={key:1,style:{"margin-top":`0.75rem`}},$l={class:`launcher-report`},eu={style:{color:`var(--r-text-muted)`,"font-size":`0.8rem`}},tu={class:`setting-row`},nu={class:`setting-value`,style:{"flex-direction":`column`,"align-items":`stretch`,gap:`0.5rem`}},ru=Me(E({__name:`SettingsGeneral`,setup(e){let{t:r}=Le(),i=Ge(),a=Ke(),{isLinked:o}=nt();function s(){i.push({name:`settings`,query:{section:`cloud`}})}let c=Ee(),l=n(``),f=n(!1),p=n(``),m=n(``),h=dl(),{lanEnabled:g,host:_,port:v,lanUrls:ee}=He(h),te=n(!1);async function ne(e){te.value=!0;try{await h.setLanMode(e),c.add({severity:`success`,summary:e?`Runeya est exposé sur le réseau local`:`Runeya n'écoute plus que localement`,life:2500})}catch(e){c.add({severity:`error`,summary:`Erreur`,detail:e.message,life:4e3})}finally{te.value=!1}}async function re(e){try{await navigator.clipboard.writeText(e),c.add({severity:`success`,summary:`Copié`,life:1500})}catch{c.add({severity:`error`,summary:`Copie impossible`,life:2500})}}let y=n(null),ae=n(``),C=n(!0),w=n(null),oe=n(null),se=Qe(),ce=We(),E=typeof a.query.launcherProject==`string`?a.query.launcherProject:null,le=T(()=>E??ce.activeProjectId),ue=T(()=>{let e=le.value;return e?se.getById(e)?.name??e:``}),de=n(E!==null),fe=n(null),j=n(!1),pe=n(``),me=T(()=>y.value?.available===!0&&y.value.fromDesktop===!1);async function P(){if(y.value&&w.value!==null&&oe.value!==null){j.value=!0,pe.value=``;try{let e=await R.desktop.installLauncher.mutate({name:ae.value.trim(),workingDir:C.value?y.value.workingDir:null,port:w.value,agentPort:oe.value,projectId:de.value?le.value:null});pe.value=e.output,c.add({severity:`success`,summary:r(`settingsPage.launcherCreated`),detail:e.name,life:3e3})}catch(e){c.add({severity:`error`,summary:r(`settingsPage.launcherFailed`),detail:e.message,life:5e3})}finally{j.value=!1}}}ie(async()=>{try{let e=await R.settings.get.query();l.value=e.globalDocsPath??``}catch{}await h.ensureLoaded();try{let e=await R.desktop.suggestLauncher.query();y.value=e,ae.value=E&&ue.value?ft(ue.value):e.name,w.value=e.port,oe.value=e.agentPort,E&&(await M(),fe.value?.$el?.scrollIntoView?.({block:`start`,behavior:`smooth`}))}catch{}try{let e=await R.settings.getPaths.query();p.value=e.cwd,m.value=e.dataDir}catch{}});async function he(){let e=l.value.trim();f.value=!0;try{await R.settings.update.mutate({globalDocsPath:e||void 0}),c.add({severity:`success`,summary:`Sauvegardé`,life:1500})}catch(e){c.add({severity:`error`,summary:`Erreur`,detail:e.message,life:4e3})}finally{f.value=!1}}return(e,n)=>(D(),x(O,null,[t(o)?F(``,!0):(D(),x(`button`,{key:0,type:`button`,class:`cloud-banner`,onClick:s},[n[10]||=b(`i`,{class:`ti ti-cloud cloud-banner__icon`},null,-1),b(`div`,fl,[b(`strong`,pl,A(t(r)(`settingsPage.cloudBannerTitle`)),1),b(`span`,ml,A(t(r)(`settingsPage.cloudBannerText`)),1)]),b(`span`,hl,[d(A(t(r)(`settingsPage.cloudBannerAction`))+` `,1),n[9]||=b(`i`,{class:`ti ti-arrow-right`},null,-1)])])),u(t(ke),{class:`settings-card`,style:{"margin-bottom":`1rem`}},{title:k(()=>[...n[11]||=[d(`Emplacement`,-1)]]),content:k(()=>[b(`div`,gl,[n[12]||=b(`span`,{class:`setting-label`},`Répertoire de travail`,-1),b(`div`,_l,[b(`code`,vl,A(p.value||`—`),1),p.value?(D(),N(t(L),{key:0,icon:`ti ti-copy`,variant:`text`,rounded:``,"aria-label":`Copier le répertoire de travail`,onClick:n[0]||=e=>re(p.value)})):F(``,!0)])]),b(`div`,yl,[n[13]||=b(`span`,{class:`setting-label`},`Dossier de données`,-1),b(`div`,bl,[b(`code`,xl,A(m.value||`—`),1),m.value?(D(),N(t(L),{key:0,icon:`ti ti-copy`,variant:`text`,rounded:``,"aria-label":`Copier le dossier de données`,onClick:n[1]||=e=>re(m.value)})):F(``,!0)])])]),_:1}),u(t(ke),{class:`settings-card`,style:{"margin-bottom":`1rem`}},{title:k(()=>[...n[14]||=[d(`Réseau local`,-1)]]),content:k(()=>[b(`div`,Sl,[n[17]||=b(`label`,{for:`general-lan`,class:`setting-label`},`Exposer sur le réseau local`,-1),b(`div`,Cl,[b(`div`,wl,[u(t(Fe),{"input-id":`general-lan`,"model-value":t(g),disabled:te.value,"onUpdate:modelValue":n[2]||=e=>ne(e)},null,8,[`model-value`,`disabled`]),b(`span`,Tl,[n[15]||=d(` Écoute actuelle : `,-1),b(`code`,null,A(t(_)||`—`)+`:`+A(t(v)||`—`),1)])]),n[16]||=b(`small`,{style:{color:`var(--r-text-muted)`,"font-size":`0.8rem`}},[d(` Équivalent de l'option `),b(`code`,null,`--lan`),d(` au démarrage : le serveur écoute sur `),b(`code`,null,`0.0.0.0`),d(` et devient joignable depuis les autres machines du réseau. Appliqué immédiatement, sans redémarrage, et conservé au prochain lancement. À n'activer que sur un réseau de confiance. `)],-1),t(g)&&t(ee).length?(D(),x(`div`,El,[(D(!0),x(O,null,S(t(ee),e=>(D(),x(`div`,{key:e,class:`setting-value`},[b(`code`,Dl,A(e),1),u(t(L),{icon:`ti ti-copy`,variant:`text`,rounded:``,"aria-label":`Copier l'adresse`,onClick:t=>re(e)},null,8,[`onClick`])]))),128))])):F(``,!0)])])]),_:1}),me.value?(D(),N(t(ke),{key:1,ref_key:`launcherCard`,ref:fe,class:`settings-card`,style:{"margin-bottom":`1rem`}},{title:k(()=>[d(A(t(r)(`settingsPage.launcherTitle`)),1)]),content:k(()=>[b(`p`,Ol,A(t(r)(`settingsPage.launcherLead`)),1),b(`div`,kl,[b(`label`,Al,A(t(r)(`settingsPage.launcherName`)),1),b(`div`,jl,[u(t(Te),{id:`launcher-name`,modelValue:ae.value,"onUpdate:modelValue":n[3]||=e=>ae.value=e,class:`setting-input`,disabled:j.value},null,8,[`modelValue`,`disabled`])])]),b(`div`,Ml,[b(`label`,Nl,A(t(r)(`settingsPage.launcherScope`)),1),b(`div`,Pl,[b(`div`,Fl,[u(t(Fe),{modelValue:C.value,"onUpdate:modelValue":n[4]||=e=>C.value=e,"input-id":`launcher-scope`,disabled:j.value},null,8,[`modelValue`,`disabled`]),b(`span`,Il,A(C.value?t(r)(`settingsPage.launcherScopeProject`):t(r)(`settingsPage.launcherScopeGlobal`)),1)]),b(`small`,Ll,[C.value?(D(),x(O,{key:0},[d(A(t(r)(`settingsPage.launcherScopeProjectHint`))+` `,1),b(`code`,null,A(y.value?.workingDir),1)],64)):(D(),x(O,{key:1},[d(A(t(r)(`settingsPage.launcherScopeGlobalHint`)),1)],64))])])]),le.value?(D(),x(`div`,Rl,[b(`label`,zl,A(t(r)(`settingsPage.launcherProject`)),1),b(`div`,Bl,[b(`div`,Vl,[u(t(Fe),{modelValue:de.value,"onUpdate:modelValue":n[5]||=e=>de.value=e,"input-id":`launcher-project`,disabled:j.value,"data-testid":`launcher-open-project`},null,8,[`modelValue`,`disabled`]),b(`span`,Hl,A(ue.value),1)]),b(`small`,Ul,A(de.value?t(r)(`settingsPage.launcherProjectOnHint`):t(r)(`settingsPage.launcherProjectOffHint`)),1)])])):F(``,!0),b(`div`,Wl,[b(`span`,Gl,A(t(r)(`settingsPage.launcherPorts`)),1),b(`div`,Kl,[b(`div`,ql,[b(`label`,Jl,A(t(r)(`settingsPage.launcherPort`)),1),u(t(Ie),{modelValue:w.value,"onUpdate:modelValue":n[6]||=e=>w.value=e,"input-id":`launcher-port`,min:1,max:65535,"use-grouping":!1,disabled:j.value,"input-style":`width: 6rem;`},null,8,[`modelValue`,`disabled`]),b(`label`,Yl,A(t(r)(`settingsPage.launcherAgentPort`)),1),u(t(Ie),{modelValue:oe.value,"onUpdate:modelValue":n[7]||=e=>oe.value=e,"input-id":`launcher-agent-port`,min:1,max:65535,"use-grouping":!1,disabled:j.value,"input-style":`width: 6rem;`},null,8,[`modelValue`,`disabled`])]),b(`small`,Xl,A(t(r)(`settingsPage.launcherPortsHint`)),1)])]),b(`div`,Zl,[u(t(L),{label:t(r)(`settingsPage.launcherCreate`),icon:`ti ti-device-desktop`,loading:j.value,disabled:!ae.value.trim()||!w.value||!oe.value,onClick:P},null,8,[`label`,`loading`,`disabled`])]),pe.value?(D(),x(`div`,Ql,[b(`pre`,$l,A(pe.value),1),b(`small`,eu,A(t(r)(`settingsPage.launcherUninstallHint`)),1)])):F(``,!0)]),_:1},512)):F(``,!0),u(t(ke),{class:`settings-card`,style:{"margin-bottom":`1rem`}},{title:k(()=>[...n[18]||=[d(`Wiki global`,-1)]]),content:k(()=>[b(`div`,tu,[n[20]||=b(`label`,{for:`general-docs-path`,class:`setting-label`},`Dossier des docs`,-1),b(`div`,nu,[u(t(Te),{id:`general-docs-path`,modelValue:l.value,"onUpdate:modelValue":n[8]||=e=>l.value=e,class:`setting-input`,placeholder:`wiki`,onBlur:he,onKeydown:_e(I(he,[`prevent`]),[`enter`])},null,8,[`modelValue`,`onKeydown`]),n[19]||=b(`small`,{style:{color:`var(--r-text-muted)`,"font-size":`0.8rem`}},[d(` Nom du dossier (ex. `),b(`code`,null,`wiki`),d(`, `),b(`code`,null,`docs/equipe`),d(`) — créé automatiquement à côté du dossier de données de Runeya. Laisser vide pour utiliser `),b(`code`,null,`wiki`),d(` par défaut. `)],-1)])])]),_:1})],64))}}),[[`__scopeId`,`data-v-677de251`]]);function iu(){let e=n([]),t=n(!1);async function r(n){t.value=!0;try{e.value=await R.service.list.query({orgId:n})}catch{e.value=[]}finally{t.value=!1}}return{services:e,loading:t,load:r}}var au=[{id:`scenarios`,title:`Scenario`,desc:`Events related to scenario execution and user actions.`,icon:`ti ti-sitemap`,items:[{key:`scenario_waiting_input`,label:`Scenario asks for input`,desc:`Notify when an scenario run pauses and waits for a user answer.`}]},{id:`ai-conversations`,title:`AI Conversations`,desc:`Notifications for AI flow completion and failures.`,icon:`ti ti-brain`,items:[{key:`ai_conversation_complete`,label:`AI conversation completed`,desc:`Notify when an AI conversation finishes successfully.`},{key:`ai_conversation_error`,label:`AI conversation error`,desc:`Notify when an AI conversation fails.`}]},{id:`services`,title:`Services`,desc:`Operational events from your managed services.`,icon:`ti ti-server`,items:[{key:`service_error_log`,label:`Service error logs`,desc:`Notify when a service emits an error/fatal log line.`,serviceGranular:!0},{key:`service_status_changed`,label:`Service status changes`,desc:`Notify on status transitions (starting/running/stopped/errored).`,serviceGranular:!0},{key:`service_health_changed`,label:`Service health changes`,desc:`Notify on health transitions (healthy/unhealthy/unknown).`,serviceGranular:!0}]}],ou={class:`notification-groups`},su={class:`notification-group__header`},cu=[`aria-expanded`,`onClick`],lu={class:`notification-group__title-wrap`},uu={class:`notification-group__title`},du={class:`notification-group__desc`},fu={class:`notification-group__actions`},pu={key:0,class:`settings-form`},mu={class:`setting-row setting-row--toggle`},hu={class:`setting-label-group`},gu=[`for`],_u={class:`setting-hint`},vu={class:`notification-item__right`},yu=[`aria-expanded`,`onClick`],bu={key:0,class:`notification-item__services`},xu={key:0,class:`notification-item__services-empty`},Su={class:`notification-item__service-name`},Cu=Me(E({__name:`SettingsNotifications`,setup(e){let{t:r}=Le(),i=Ee(),a=vt(),{services:o,load:s}=iu(),c=n(Object.fromEntries(au.map(e=>[e.id,!1]))),l=n({});function d(e){return!!c.value[e]}function f(e){c.value[e]=!c.value[e]}function p(e){return e.items.every(e=>!!a.preferences[e.key])}function m(e){let t=!p(e),n=Object.create(null);for(let r of e.items)n[r.key]=t;a.updatePreferences(n).catch(e=>{console.error(`[Settings] Failed to bulk update notification preferences`,e),i.add({severity:`error`,summary:r(`common.error`),detail:r(`settingsPage.failedToSavePrefs`),life:3e3})})}function h(e,t){a.updatePreferences({[e]:t}).catch(e=>{console.error(`[Settings] Failed to update notification preference`,e),i.add({severity:`error`,summary:r(`common.error`),detail:r(`settingsPage.failedToSavePref`),life:3e3})})}return ie(()=>{a.loadPreferences().catch(()=>{}),s(dt().orgId??null)}),(e,n)=>(D(),N(t(ke),{class:`settings-card`},{content:k(()=>[b(`div`,ou,[(D(!0),x(O,null,S(t(au),e=>(D(),x(`section`,{key:e.id,class:`notification-group`},[b(`header`,su,[b(`button`,{type:`button`,class:`notification-group__collapse-button`,"aria-expanded":!d(e.id),onClick:t=>f(e.id)},[b(`div`,lu,[b(`i`,{class:C([e.icon,`notification-group__icon`])},null,2),b(`h3`,uu,A(e.title),1),b(`i`,{class:C([`ti notification-group__chevron`,d(e.id)?`ti-chevron-right`:`ti-chevron-down`])},null,2)]),b(`p`,du,A(e.desc),1)],8,cu),b(`div`,fu,[u(t(L),{size:`small`,severity:`secondary`,variant:`text`,disabled:t(a).preferencesLoading,label:p(e)?t(r)(`settingsPage.disableAll`):t(r)(`settingsPage.enableAll`),onClick:I(t=>m(e),[`stop`])},null,8,[`disabled`,`label`,`onClick`])])]),d(e.id)?F(``,!0):(D(),x(`div`,pu,[(D(!0),x(O,null,S(e.items,e=>(D(),x(`div`,{key:e.key,class:`notification-item`},[b(`div`,mu,[b(`div`,hu,[b(`label`,{for:`notif-${e.key}`,class:`setting-label`},A(e.label),9,gu),b(`small`,_u,A(e.desc),1)]),b(`div`,vu,[e.serviceGranular?(D(),x(`button`,{key:0,type:`button`,class:`notification-item__services-toggle`,"aria-expanded":!!l.value[e.key],onClick:t=>l.value[e.key]=!l.value[e.key]},[n[0]||=b(`i`,{class:`ti ti-adjustments-horizontal`},null,-1),b(`i`,{class:C([`ti`,l.value[e.key]?`ti-chevron-up`:`ti-chevron-down`])},null,2)],8,yu)):F(``,!0),u(t(Fe),{"input-id":`notif-${e.key}`,"model-value":t(a).preferences[e.key],disabled:t(a).preferencesLoading,"onUpdate:modelValue":t=>h(e.key,!!t)},null,8,[`input-id`,`model-value`,`disabled`,`onUpdate:modelValue`])])]),e.serviceGranular&&l.value[e.key]?(D(),x(`div`,bu,[t(o).length===0?(D(),x(`p`,xu,` No services configured. `)):F(``,!0),(D(!0),x(O,null,S(t(o),n=>(D(),x(`div`,{key:n.id,class:`notification-item__service-row`},[b(`span`,Su,A(n.name),1),u(t(Fe),{"model-value":t(a).isServiceEnabled(e.key,n.id),disabled:t(a).preferencesLoading||!t(a).preferences[e.key],"onUpdate:modelValue":r=>t(a).setServiceExcluded(e.key,n.id,!r)},null,8,[`model-value`,`disabled`,`onUpdate:modelValue`])]))),128))])):F(``,!0)]))),128))]))]))),128))])]),_:1}))}}),[[`__scopeId`,`data-v-0fb9ce82`]]),wu={class:`security-cards`},Tu={class:`card-title`},Eu={class:`card-desc`},Du={class:`setting-row`},Ou={class:`setting-label`},ku={class:`card-title`},Au={class:`card-desc`},ju={class:`card-desc`},Mu={key:0,class:`card-desc`},Nu={key:1,class:`card-desc`},Pu={class:`card-desc foreign-heading`},Fu=Me(E({__name:`SettingsSecurity`,setup(e){let{t:r}=Le(),i=Ee(),a=Ge(),o=n(``),s=n(!1),c=n([]),l=n(``),f=n(new Set),p=n(!1),m=T(()=>c.value.filter(e=>e.foreign||!f.value.has(e.orgId))),h=T(()=>{let e=new Map;for(let t of m.value.filter(e=>e.foreign))e.set(t.cloudUrl,[...e.get(t.cloudUrl)??[],t]);return[...e.entries()].map(([e,t])=>({cloudUrl:e,orgs:t}))}),g=T(()=>m.value.filter(e=>!e.foreign)),_=n(null);async function v(){s.value=!0;try{let e=await R.setup.getEncryptionKeyHex.query();o.value=e.keyHex}catch(e){i.add({severity:`error`,summary:r(`common.error`),detail:et(e)??r(`common.error`),life:4e3})}finally{s.value=!1}}async function ee(){try{let e=await tt();if(f.value=new Set(e.map(e=>e.id)),!e.length)return;await R.cloudSync.rememberOrgNames.mutate({orgs:e.map(e=>({orgId:e.id,name:e.name}))})}catch{f.value=new Set}}async function te(){p.value=!0;try{await ee();let e=await wt();c.value=e.orgs,l.value=e.currentCloud}catch(e){i.add({severity:`error`,summary:r(`common.error`),detail:et(e)??r(`common.error`),life:4e3})}finally{p.value=!1}}function ne(){a.push({name:`settings`,query:{section:`cloud`}})}return ie(()=>{v(),te()}),(e,n)=>(D(),x(`div`,wu,[u(t(ke),{class:`settings-card`},{title:k(()=>[b(`div`,Tu,[n[2]||=b(`i`,{class:`ti ti-key`},null,-1),b(`span`,null,A(t(r)(`settingsPage.machineKey`)),1)])]),content:k(()=>[b(`p`,Eu,A(t(r)(`settingsPage.machineKeyDesc`)),1),b(`div`,Du,[b(`span`,Ou,A(t(r)(`settingsPage.keyHex`)),1),u(Et,{"key-hex":s.value?null:o.value,"copied-detail":t(r)(`settingsPage.encryptionKeyCopied`)},null,8,[`key-hex`,`copied-detail`])])]),_:1}),u(t(ke),{class:`settings-card`},{title:k(()=>[b(`div`,ku,[n[3]||=b(`i`,{class:`ti ti-building`},null,-1),b(`span`,null,A(t(r)(`settingsPage.orgKeysUnlisted`)),1)])]),content:k(()=>[b(`p`,Au,A(t(r)(`settingsPage.orgKeysUnlistedDesc`)),1),b(`p`,ju,[d(A(t(r)(`settingsPage.orgKeysSeeCloud`))+` `,1),u(t(L),{label:t(r)(`settingsPage.cloud`),variant:`link`,size:`small`,class:`see-cloud`,onClick:ne},null,8,[`label`])]),l.value?(D(),x(`p`,Mu,A(t(r)(`settingsPage.orgKeysCurrentCloud`,{cloud:l.value})),1)):F(``,!0),!p.value&&!m.value.length?(D(),x(`p`,Nu,A(t(r)(`settingsPage.orgKeysUnlistedEmpty`)),1)):F(``,!0),(D(!0),x(O,null,S(g.value,e=>(D(),N(Dt,{key:e.orgId,"org-id":e.orgId,org:e,onAdopt:t=>_.value=e.orgId},null,8,[`org-id`,`org`,`onAdopt`]))),128)),(D(!0),x(O,null,S(h.value,e=>(D(),x(O,{key:e.cloudUrl},[b(`p`,Pu,A(t(r)(`settingsPage.orgKeysOtherCloud`,{cloud:e.cloudUrl})),1),(D(!0),x(O,null,S(e.orgs,e=>(D(),N(Dt,{key:e.orgId,"org-id":e.orgId,org:e,onAdopt:t=>_.value=e.orgId},null,8,[`org-id`,`org`,`onAdopt`]))),128))],64))),128))]),_:1}),u(Tt,{"org-id":_.value,reference:`vault`,title:t(r)(`settingsPage.adoptKey`),hint:t(r)(`settingsPage.adoptKeyDesc`),"confirm-label":t(r)(`settingsPage.adoptKeyConfirm`),onClose:n[0]||=e=>_.value=null,onAdopted:n[1]||=e=>{_.value=null,te()}},null,8,[`org-id`,`title`,`hint`,`confirm-label`])]))}}),[[`__scopeId`,`data-v-336d11c8`]]),Iu={class:`card-title`},Lu={class:`card-desc`},Ru={key:0,class:`editor-warning`},zu={key:1,class:`setting-row`},Bu={for:`editor-default`,class:`setting-label`},Vu={key:0,class:`editor-option`},Hu={class:`editor-option`},Uu={key:2,class:`editor-detected`},Wu={class:`hint`},Gu=Me(E({__name:`SettingsEditor`,setup(e){let{t:n}=Le(),r=lt(),i=T(()=>r.installedEditors.map(e=>({label:e.name,value:e.key}))),a=T(()=>r.defaultEditor?.key??null);function o(e){e&&r.setDefault(e)}return ie(()=>{r.fetchAvailable()}),(e,s)=>(D(),N(t(ke),{class:`settings-card`},{title:k(()=>[b(`div`,Iu,[u(Ct,{"editor-key":a.value,size:16},null,8,[`editor-key`]),b(`span`,null,A(t(n)(`settingsPage.preferredEditor`)),1)])]),content:k(()=>[b(`p`,Lu,A(t(n)(`settingsPage.preferredEditorHint`)),1),t(r).installedEditors.length===0&&t(r).availableEditors.length>0?(D(),x(`div`,Ru,[u(t(Ae),{severity:`warn`},{default:k(()=>[d(A(t(n)(`settingsPage.noEditorsDetected`)),1)]),_:1})])):(D(),x(`div`,zu,[b(`label`,Bu,A(t(n)(`settingsPage.defaultEditor`)),1),u(t(De),{"input-id":`editor-default`,"model-value":a.value,options:i.value,"option-label":`label`,"option-value":`value`,placeholder:t(n)(`settingsPage.selectEditor`),class:`setting-input`,"onUpdate:modelValue":o},{value:k(e=>[e.value?(D(),x(`div`,Vu,[u(Ct,{"editor-key":e.value,size:16},null,8,[`editor-key`]),b(`span`,null,A(i.value.find(t=>t.value===e.value)?.label),1)])):F(``,!0)]),option:k(e=>[b(`div`,Hu,[u(Ct,{"editor-key":e.option.value,size:16},null,8,[`editor-key`]),b(`span`,null,A(e.option.label),1)])]),_:1},8,[`model-value`,`options`,`placeholder`])])),t(r).installedEditors.length>0?(D(),x(`div`,Uu,[b(`small`,Wu,A(t(n)(`settingsPage.detectedEditors`))+`: `+A(t(r).installedEditors.map(e=>e.name).join(`, `)),1)])):F(``,!0)]),_:1}))}}),[[`__scopeId`,`data-v-d2f8cc30`]]),Ku={class:`parsers-scope`},qu={key:0},Ju={key:1},Yu={key:0,class:`parsers-loading`},Xu={key:1,class:`parsers-empty`},Zu={key:2,class:`parsers-list`},Qu={class:`parsers-name`},$u={key:0,class:`parsers-desc-inline`},ed={class:`parsers-actions`},td={class:`parser-dialog__layout`},nd={class:`dialog-form`},rd={class:`dialog-form__field`},id={for:`parsers-name`,class:`dialog-form__label`},ad={class:`dialog-form__field`},od={for:`parsers-description`,class:`dialog-form__label`},sd={class:`dialog-form__field dialog-form__field--inline`},cd={for:`parsers-enabled`,class:`dialog-form__label`},ld={class:`dialog-form__switch`},ud={class:`dialog-form__switch-label`},dd={class:`dialog-form__field dialog-form__field--code`},fd={for:`parsers-code`,class:`dialog-form__label`},pd={class:`dialog-form__templates`},md={class:`dialog-form__templates-label`},hd={class:`tpl-option`},gd={class:`tpl-option__body`},_d={class:`tpl-option__name`},vd={class:`tpl-option__desc`},yd={class:`parser-sim`},bd={class:`parser-sim__header`},xd={class:`parser-sim__title`},Sd={key:0,class:`parser-sim__status`},Cd={class:`parser-sim__body`},wd={class:`parser-sim__col`},Td={class:`parser-sim__col-label`},Ed={class:`parser-sim__col parser-sim__col--output`},Dd={class:`parser-sim__col-label`},Od={key:0,class:`parser-sim__error`},kd={key:1,class:`parser-sim__empty`},Ad={class:`parser-ai-prompt`},jd=`
122
- type LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'fatal';
123
-
124
- interface LogLine {
125
- readonly raw: string;
126
- readonly stream: 'stdout' | 'stderr';
127
- level: LogLevel;
128
- message: string;
129
- hidden: boolean;
130
- metadata: Record<string, unknown>;
131
- json?: Record<string, unknown>;
132
- }
133
-
134
- declare function parser(line: LogLine): LogLine;
135
- `,Md=`(line) => {
136
- if (/ERROR/.test(line.raw)) {
137
- return { ...line, level: 'error' };
138
- }
139
- return line;
140
- }`,Nd=`[INFO] Server started on port 3000
141
- [ERROR] Failed to connect to database: ECONNREFUSED
142
- [WARN] Memory usage is high: 87%
143
- {"level":"info","msg":"Request handled","duration":42}`,Pd=Me(E({__name:`SettingsParsers`,setup(e,{expose:r}){let{t:i}=Le();Ee();let a=Pe(),o=jt(),s=Qe(),c=it(rt),f=T(()=>{let e=s.currentProject?.orgId;return e?c.organizations.value.find(t=>t.id===e)?.name??e:``}),p=T(()=>[...o.userParsers].sort((e,t)=>e.name.localeCompare(t.name))),h=n({name:``,description:``,code:Md,enabled:!0}),g=n(Nd),_=n([]),v=n(null),ee=n(!1),te=n(0),ne=new Set([`debug`,`info`,`warn`,`error`,`fatal`]),re=T(()=>_.value.map((e,t)=>{let n=e.output??e.input,r=ne.has(n.level)?n.level:`info`;return{id:`${te.value}-${t}`,processId:`preview`,timestamp:new Date,level:r,message:e.error?`[parser error] ${e.error}`:n.message,raw:e.input.raw,stream:n.stream===`stderr`?`stderr`:`stdout`,hidden:n.hidden,metadata:e.error?{error:e.error}:n.metadata,json:n.json,logCard:n.logCard}})),ae=null,w=n(!1),se=n(``),ce=n(!1),E=n(null),le=n(``),ue=n(!1),de=bt();m(de.generatedCode,e=>{e&&(h.value.code=e,ue.value=!1,de.clearResult())});function fe(){se.value=``,w.value=!0}function j(){se.value.trim()&&(w.value=!1,ce.value=!0)}function pe(){let e=[];e.push(`Task: ${se.value}`),e.push(`
144
- ## Log parser contract
145
-
146
- Each parser is an arrow function \`(line: LogLine) => LogLine\` that runs in a pipeline.
147
- Return the (mutated or spread) line to pass it through, or set \`line.hidden = true\` to hide it.
148
-
149
- \`\`\`typescript
150
- interface LogLine {
151
- readonly raw: string;
152
- readonly stream: 'stdout'|'stderr';
153
- level: 'debug'|'info'|'warn'|'error'|'fatal';
154
- message: string;
155
- hidden: boolean;
156
- metadata: Record<string, unknown>;
157
- json?: Record<string, unknown>;
158
- }
159
- \`\`\`
160
-
161
- ## Example
162
-
163
- Input log line: \`{"level":"error","msg":"DB timeout","latency":320}\`
164
-
165
- Expected parser:
166
- \`\`\`javascript
167
- (line) => {
168
- if (!line.json) return line;
169
- return {
170
- ...line,
171
- level: line.json.level ?? line.level,
172
- message: line.json.msg ?? line.message,
173
- metadata: { latency: line.json.latency },
174
- };
175
- }
176
- \`\`\``),g.value.trim()&&e.push(`## Sample logs to handle\n\`\`\`\n${g.value.trim()}\n\`\`\``);let t=h.value.code.trim();return t&&t!==Md.trim()&&e.push(`## Current parser code (modify if needed)\n\`\`\`javascript\n${t}\n\`\`\``),e.push("## Output\nReply with ONLY the ```javascript code block. No explanation, no prose."),e.join(`
177
-
178
- `)}function me(e,t,n,r){ce.value=!1;let i=pe();le.value=i,E.value?.showScenarioDialog(e,i,t,n??void 0,r)}async function P(e,t,n){ce.value=!1;let r=pe(),i=qe(),a=ut(),o=await i.createConversation({runner:e===`keep`?void 0:e,providerId:t??void 0});o&&(de.setPendingConv(o.id),ue.value=!0,a.openPopulate(),await M(),i.send(r,()=>{}))}async function he(e,t,n,r,i,a){let o=t||le.value,s=qe(),c=await s.createConversation({scenarioId:e,scenarioInput:o,providerId:i});if(!c)return;let l=n!==`keep`||r.trim()?{...n===`keep`?{}:{runnerOverride:n},...r.trim()?{modelOverride:r.trim()}:{},...a?{agentId:a}:{}}:void 0;de.setPendingConv(c.id),ue.value=!0,ut().open(),s.startScenarioRun(c.id,e,o,void 0,l)}async function ge(){let e=h.value.code.trim();if(!e)return;let t=g.value.split(`
179
- `).map(e=>e.trim()).filter(Boolean);if(t.length===0){_.value=[],v.value=null;return}ee.value=!0,v.value=null;try{let n=await R.settings.testParser.mutate({code:e,sampleLogs:t.map(e=>({raw:e,stream:`stdout`}))});te.value++,_.value=n.results}catch(e){v.value=et(e),_.value=[]}finally{ee.value=!1}}function ve(){ae&&clearTimeout(ae),ae=setTimeout(()=>ge(),400)}m([()=>h.value.code,g],ve);let ye=T(()=>h.value.name.trim()&&h.value.code.trim());function be(){h.value={name:``,description:``,code:Md,enabled:!0},_.value=[],v.value=null}function xe(){be(),o.openCreateDialog()}async function Se(){try{o.editingParser?.id?await o.updateParser({id:o.editingParser.id,...h.value}):await o.createParser(h.value),o.closeDialog(),be()}catch{}}function Ce(e){h.value={name:e.name,description:e.description||``,code:e.code,enabled:e.enabled},o.openEditDialog(e)}function we(e){a.require({header:i(`settingsPage.deleteParser`),message:`Are you sure you want to delete "${e.name}"?`,icon:`ti ti-alert-triangle`,acceptLabel:i(`actions.delete`),rejectLabel:i(`actions.cancel`),accept:async()=>{try{await o.deleteParser(e.id)}catch{}}})}let Oe=[{label:`level — Error Extractor`,icon:`ti ti-alert-circle`,description:`Override level based on a keyword in the raw line`,code:`(line) => {
180
- if (/ERROR|FATAL/i.test(line.raw)) return { ...line, level: "error" };
181
- if (/WARN/i.test(line.raw)) return { ...line, level: "warn" };
182
- return line;
183
- }`,sampleLogs:`[INFO] Server started on port 3000
184
- [WARN] Memory usage is high: 87%
185
- [ERROR] Failed to connect to database: ECONNREFUSED
186
- [FATAL] Out of memory — process exiting`},{label:`message — Rewrite from raw`,icon:`ti ti-pencil`,description:`Extract a cleaner message from the raw line`,code:`(line) => {
187
- const match = line.raw.match(/^\\[\\w+\\]\\s+(.+)$/);
188
- if (match) return { ...line, message: match[1] };
189
- return line;
190
- }`,sampleLogs:`[INFO] Server started on port 3000
191
- [ERROR] Failed to connect to database
192
- [WARN] Disk space below 10%`},{label:`json — Parse structured logs`,icon:`ti ti-code`,description:`Parse JSON lines and promote fields to level / message / metadata`,code:`(line) => {
193
- try {
194
- const parsed = JSON.parse(line.raw);
195
- const level = parsed.level ?? parsed.severity ?? line.level;
196
- const message = parsed.msg ?? parsed.message ?? line.message;
197
- const { level: _l, severity: _s, msg: _m, message: _msg, ...rest } = parsed;
198
- return { ...line, level, message, json: parsed, metadata: { ...line.metadata, ...rest } };
199
- } catch { return line; }
200
- }`,sampleLogs:`{"level":"info","msg":"Server started","port":3000}
201
- {"level":"error","msg":"DB connection failed","host":"db:5432"}`},{label:`hidden — Filter noise`,icon:`ti ti-eye-off`,description:`Hide lines matching a pattern from the log viewer`,code:`(line) => {
202
- const isNoise = /GET \\/health/.test(line.raw) || /GET \\/ping/.test(line.raw);
203
- if (isNoise) return { ...line, hidden: true };
204
- return line;
205
- }`,sampleLogs:`GET /health 200 2ms
206
- GET /api/users 200 34ms
207
- GET /ping 200 1ms`},{label:`stream — stderr to error`,icon:`ti ti-arrows-exchange`,description:`Promote lines from stderr to error level automatically`,code:`(line) => {
208
- if (line.stream === "stderr" && line.level === "info") return { ...line, level: "error" };
209
- return line;
210
- }`,sampleLogs:`Unhandled promise rejection: TypeError
211
- Error: ENOENT: no such file or directory`},{label:`Pino — JSON logger`,icon:`ti ti-server`,description:`Parse Pino's JSON output with numeric level codes`,code:`(line) => {
212
- try {
213
- const parsed = JSON.parse(line.raw);
214
- if (parsed.level === undefined) return line;
215
- const PINO_LEVELS = { 10: "debug", 20: "debug", 30: "info", 40: "warn", 50: "error", 60: "error" };
216
- const level = typeof parsed.level === "number" ? (PINO_LEVELS[parsed.level] ?? "info") : parsed.level;
217
- const message = parsed.msg ?? parsed.message ?? line.message;
218
- const { level: _l, msg: _m, message: _mm, time: _t, pid: _p, hostname: _h, ...rest } = parsed;
219
- return { ...line, level, message, json: parsed, metadata: { ...line.metadata, ...rest } };
220
- } catch { return line; }
221
- }`,sampleLogs:`{"level":30,"time":1705314225123,"pid":1337,"msg":"Server listening","port":3000}
222
- {"level":50,"time":1705314227554,"pid":1337,"msg":"Unhandled error"}`}],Ae=n(null);function Me(e){h.value.code=e.code,g.value=e.sampleLogs,Ae.value=null}return ie(()=>{o.fetchParsers(),o.subscribeParsers(),c.refresh()}),oe(()=>{o.unsubscribeParsers()}),r({openCreate:xe}),(e,n)=>{let r=l(`tooltip`);return D(),x(O,null,[u(t(ke),{class:`settings-card`},{content:k(()=>[b(`p`,Ku,[n[14]||=b(`i`,{class:`ti ti-users`},null,-1),f.value?(D(),x(`span`,qu,A(t(i)(`settingsPage.parsersOrgScope`,{org:f.value})),1)):(D(),x(`span`,Ju,A(t(i)(`settingsPage.parsersMachineScope`)),1))]),t(o).loading?(D(),x(`div`,Yu,[n[15]||=b(`i`,{class:`ti ti-spin ti-loader-2`},null,-1),b(`span`,null,A(t(i)(`settingsPage.loadingParsers`)),1)])):p.value.length===0?(D(),x(`div`,Xu,A(t(i)(`settingsPage.noParsers`)),1)):(D(),x(`div`,Zu,[(D(!0),x(O,null,S(p.value,e=>(D(),x(`div`,{key:e.id,class:`parsers-row`},[b(`span`,Qu,A(e.name),1),e.description?(D(),x(`span`,$u,A(e.description),1)):F(``,!0),b(`div`,ed,[y(b(`i`,{class:C(e.enabled?`ti ti-check parsers-icon--on`:`ti ti-x parsers-icon--off`)},null,2),[[r,e.enabled?t(i)(`common.enabled`):t(i)(`common.disabled`),void 0,{top:!0}]]),u(t(L),{icon:`ti ti-pencil`,severity:`info`,variant:`text`,rounded:``,size:`small`,onClick:t=>Ce(e)},null,8,[`onClick`]),u(t(L),{icon:`ti ti-trash`,severity:`danger`,variant:`text`,rounded:``,size:`small`,onClick:t=>we(e)},null,8,[`onClick`])])]))),128))]))]),_:1}),u(t(je),{class:`parser-dialog`,visible:t(o).createDialogOpen,"onUpdate:visible":n[9]||=e=>t(o).createDialogOpen=e,header:t(o).editingParser?t(i)(`settingsPage.editParser`):t(i)(`settingsPage.newParser`),modal:!0,style:{width:`calc(100vw - 20px)`,height:`calc(100vh - 20px)`}},{footer:k(()=>[u(t(L),{label:t(i)(`actions.cancel`),severity:`secondary`,variant:`outlined`,onClick:n[7]||=e=>t(o).closeDialog()},null,8,[`label`]),u(t(L),{label:t(i)(`actions.save`),icon:`ti ti-check`,disabled:!ye.value||t(o).loading,loading:t(o).loading,onClick:n[8]||=e=>Se()},null,8,[`label`,`disabled`,`loading`])]),default:k(()=>[b(`div`,td,[b(`div`,nd,[b(`div`,rd,[b(`label`,id,[n[16]||=b(`i`,{class:`ti ti-tag`},null,-1),b(`span`,null,A(t(i)(`common.name`)),1)]),u(t(Te),{id:`parsers-name`,modelValue:h.value.name,"onUpdate:modelValue":n[0]||=e=>h.value.name=e,placeholder:`e.g., ErrorExtractor`,class:`dialog-form__input`},null,8,[`modelValue`])]),b(`div`,ad,[b(`label`,od,[n[17]||=b(`i`,{class:`ti ti-info-circle`},null,-1),b(`span`,null,A(t(i)(`common.description`)),1)]),u(t(Te),{id:`parsers-description`,modelValue:h.value.description,"onUpdate:modelValue":n[1]||=e=>h.value.description=e,placeholder:t(i)(`settingsPage.optionalDesc`),class:`dialog-form__input`},null,8,[`modelValue`,`placeholder`])]),b(`div`,sd,[b(`label`,cd,[n[18]||=b(`i`,{class:`ti ti-power`},null,-1),b(`span`,null,A(t(i)(`settingsPage.enabledLabel`)),1)]),b(`div`,ld,[u(t(Fe),{"input-id":`parsers-enabled`,modelValue:h.value.enabled,"onUpdate:modelValue":n[2]||=e=>h.value.enabled=e},null,8,[`modelValue`]),b(`span`,ud,A(h.value.enabled?t(i)(`common.active`):t(i)(`common.inactive`)),1)])]),b(`div`,dd,[b(`label`,fd,[n[19]||=b(`i`,{class:`ti ti-code`},null,-1),b(`span`,null,A(t(i)(`settingsPage.codeLabel`)),1),u(t(L),{icon:`ti ti-brain`,size:`small`,severity:`secondary`,variant:`text`,loading:ue.value,class:`dialog-form__ai-btn`,onClick:fe},null,8,[`loading`])]),n[20]||=b(`small`,{class:`dialog-form__hint`},[b(`code`,null,`(line: LogLine) => LogLine`),d(` — enrich and return the line; return unchanged to pass through`)],-1),u(ot,{id:`parsers-code`,modelValue:h.value.code,"onUpdate:modelValue":n[3]||=e=>h.value.code=e,language:`javascript`,height:`100%`,"extra-lib":jd},null,8,[`modelValue`])]),b(`div`,pd,[b(`span`,md,A(t(i)(`settingsPage.quickTemplates`)),1),u(t(De),{modelValue:Ae.value,"onUpdate:modelValue":n[4]||=e=>Ae.value=e,options:Oe,"option-label":`label`,placeholder:`Choose a template…`,filter:``,"filter-placeholder":`Search templates…`,class:`dialog-form__templates-select`,onChange:n[5]||=e=>Ae.value&&Me(Ae.value)},{option:k(({option:e})=>[b(`div`,hd,[b(`i`,{class:C([e.icon,`tpl-option__icon`])},null,2),b(`span`,gd,[b(`span`,_d,A(e.label),1),b(`span`,vd,A(e.description),1)])])]),_:1},8,[`modelValue`])])]),b(`div`,yd,[b(`div`,bd,[b(`span`,xd,[n[21]||=b(`i`,{class:`ti ti-player-play`},null,-1),d(A(t(i)(`settingsPage.liveSimulation`)),1)]),ee.value?(D(),x(`span`,Sd,[n[22]||=b(`i`,{class:`ti ti-spin ti-loader-2`},null,-1),d(` `+A(t(i)(`settingsPage.simRunning`)),1)])):F(``,!0)]),b(`div`,Cd,[b(`div`,wd,[b(`div`,Td,A(t(i)(`settingsPage.sampleLogs`)),1),u(t(ze),{modelValue:g.value,"onUpdate:modelValue":n[6]||=e=>g.value=e,class:`parser-sim__textarea`,rows:`8`,placeholder:`Paste sample log lines here…`},null,8,[`modelValue`])]),b(`div`,Ed,[b(`div`,Dd,A(t(i)(`settingsPage.simOutput`)),1),v.value?(D(),x(`div`,Od,[n[23]||=b(`i`,{class:`ti ti-alert-circle`},null,-1),d(` `+A(v.value),1)])):re.value.length===0&&!ee.value?(D(),x(`div`,kd,A(t(i)(`settingsPage.simEmpty`)),1)):(D(),N(At,{key:2,logs:re.value,loading:ee.value,class:`parser-sim__viewer`},null,8,[`logs`,`loading`]))])])])])]),_:1},8,[`visible`,`header`]),u(t(je),{visible:w.value,"onUpdate:visible":n[12]||=e=>w.value=e,header:`Generate parser with AI`,modal:!0,style:{width:`500px`}},{footer:k(()=>[u(t(L),{label:`Cancel`,severity:`secondary`,variant:`outlined`,onClick:n[11]||=e=>w.value=!1}),u(t(L),{label:`Next`,icon:`ti ti-arrow-right`,"icon-pos":`right`,disabled:!se.value.trim(),onClick:j},null,8,[`disabled`])]),default:k(()=>[b(`div`,Ad,[n[24]||=b(`p`,{class:`parser-ai-prompt__desc`},`Describe what your log parser should do. The AI will generate the JavaScript function for you.`,-1),u(t(ze),{modelValue:se.value,"onUpdate:modelValue":n[10]||=e=>se.value=e,rows:`4`,placeholder:`e.g. Parse JSON logs and extract the level and message fields.`,class:`parser-ai-prompt__input`,"auto-resize":``,onKeydown:_e(I(j,[`ctrl`]),[`enter`])},null,8,[`modelValue`,`onKeydown`])])]),_:1},8,[`visible`]),u(t(je),{visible:ce.value,"onUpdate:visible":n[13]||=e=>ce.value=e,header:`Choose AI runner`,modal:!0,style:{width:`700px`,maxHeight:`80vh`}},{default:k(()=>[u(st,{compact:``,onSelectScenario:me,onSkip:P})]),_:1},8,[`visible`]),u(ct,{ref_key:`parserAiModalsRef`,ref:E,onConfirmScenarioStart:he},null,512)],64)}}}),[[`__scopeId`,`data-v-0e74635d`]]),Fd={class:`providers-scope`},Id={key:0},Ld={key:1},Rd={class:`companion-settings`},zd={class:`companion-settings__title`},Bd={class:`companion-settings__lead`},Vd={class:`companion-settings__row`},Hd={class:`companion-settings__label`},Ud={class:`companion-settings__hint`},Wd={class:`companion-settings__row companion-settings__row--stack`},Gd={class:`companion-settings__label`},Kd={class:`companion-settings__hint`},qd={class:`companion-settings__actions`},Jd={class:`companion-settings__row companion-settings__row--stack`},Yd={class:`companion-settings__label`},Xd={class:`companion-settings__hint`},Zd={class:`companion-settings__actions`},Qd={key:0,class:`companion-settings__editor`},$d={class:`companion-settings__hint`},ef={key:0,class:`providers-loading`},tf={key:1,class:`providers-empty`},nf={key:2,class:`ai-providers-list`},rf={class:`ai-provider-info`},af={class:`ai-provider-name`},of={class:`ai-provider-type`},sf={key:0,class:`ai-provider-model`},cf={class:`ai-provider-key`},lf={class:`ai-provider-actions`},uf={key:0,class:`ai-provider-badge`},df={class:`dialog-form`},ff={class:`dialog-form__field`},pf={for:`aiprov-name`,class:`dialog-form__label`},mf={class:`dialog-form__field`},hf={for:`aiprov-provider`,class:`dialog-form__label`},gf={key:0,class:`ai-provider-info-block`},_f={class:`ai-provider-info-block__text`},vf=[`href`],yf={class:`ai-provider-info-block__models`},bf={class:`ai-provider-info-block__models-label`},xf={key:1,class:`dialog-form__field`},Sf={for:`aiprov-apikey`,class:`dialog-form__label`},Cf={class:`dialog-form__field`},wf={for:`aiprov-model`,class:`dialog-form__label`},Tf=Me(E({__name:`SettingsAiProviders`,setup(e,{expose:r}){let{t:i}=Le(),a=Qe(),o=n(!1),s=n(!1),c=n(!1),l=n(``),f=n(``),p=n(``),h=n(``),g=qe(),{claudeCodeAvailable:_,codexAvailable:v,cliModels:ee}=He(g),te=T(()=>[{value:``,label:i(`settingsPage.companionRunnerFollow`),disabled:!1},...xt({"claude-code":_.value,codex:v.value},f.value||`claude-code`,e=>i(`aiChatPage.runnerNotInstalled`,{runner:e}))]),ne=T(()=>f.value||`claude-code`),re=T(()=>_t(i(`aiChat.companionModelDefault`),ee.value[ne.value],p.value));m(ne,e=>{g.loadCliModels(e)},{immediate:!0});let y=T(()=>St(i(`aiChat.companionEffortDefault`),e=>i(`aiChat.companionEffort_${e}`))),ae=n(!1),w=T(()=>l.value.trim().length===0);async function oe(){o.value=!0;try{let e=await R.settings.getCompanionSettings.query();c.value=e.enabledByDefault,l.value=e.prompt,f.value=e.runner,p.value=e.model,h.value=e.effort}catch(e){fe.add({severity:`error`,summary:i(`settingsPage.companionLoadFailed`),detail:et(e),life:4e3})}finally{o.value=!1}}async function se(e){s.value=!0;try{await R.settings.setCompanionSettings.mutate(e)}catch(e){fe.add({severity:`error`,summary:i(`settingsPage.companionSaveFailed`),detail:et(e),life:4e3}),await oe()}finally{s.value=!1}}function ce(e){c.value=e,se({enabledByDefault:e})}function E(e){let t=e===`codex`||e===`claude-code`?e:``;f.value=t,p.value=``,se({runner:t,model:``})}function le(e){h.value=e===`low`||e===`normal`||e===`high`?e:``,se({effort:h.value})}function ue(e){p.value=typeof e==`string`?e:``,se({model:p.value})}function de(){l.value=``,se({prompt:``})}let fe=Ee(),j=Pe(),M=[{label:`Anthropic (Claude)`,value:`anthropic`},{label:`OpenAI (ChatGPT)`,value:`openai`},{label:`Mistral AI`,value:`mistral`},{label:`Groq`,value:`groq`},{label:`Ollama (local)`,value:`ollama`}],pe=T(()=>({anthropic:{description:i(`settingsAiProviders.anthropicDesc`),url:`https://console.anthropic.com/settings/keys`,urlLabel:`console.anthropic.com → API Keys`,keyRequired:!0,defaultModels:[`claude-opus-4-6`,`claude-sonnet-4-6`,`claude-haiku-4-5`]},openai:{description:i(`settingsAiProviders.openaiDesc`),url:`https://platform.openai.com/api-keys`,urlLabel:`platform.openai.com → API keys`,keyRequired:!0,defaultModels:[`gpt-4o`,`gpt-4o-mini`,`o3-mini`,`o1`]},mistral:{description:i(`settingsAiProviders.mistralDesc`),url:`https://console.mistral.ai/api-keys/`,urlLabel:`console.mistral.ai → API Keys`,keyRequired:!0,defaultModels:[`mistral-large-latest`,`mistral-medium-latest`,`codestral-latest`]},groq:{description:i(`settingsAiProviders.groqDesc`),url:`https://console.groq.com/keys`,urlLabel:`console.groq.com → API Keys`,keyRequired:!0,defaultModels:[`llama-3.3-70b-versatile`,`llama-3.1-8b-instant`,`mixtral-8x7b-32768`]},ollama:{description:i(`settingsAiProviders.ollamaDesc`),url:`https://ollama.com/download`,urlLabel:i(`settingsAiProviders.ollamaUrlLabel`),keyRequired:!1,defaultModels:[`llama3.2`,`mistral`,`phi3`,`gemma3`]}})),me=T(()=>pe.value[I.value.provider]),P=n([]),he=n(!1),ge=n(!1),_e=n(null),I=n({name:``,provider:`anthropic`,apiKey:``,model:``}),ve=T(()=>I.value.name.trim()&&(I.value.provider===`ollama`||I.value.apiKey.trim()||_e.value!==null));async function ye(){he.value=!0;try{let e=await R.settings.listAIProviders.query(dt());P.value=e}catch(e){fe.add({severity:`error`,summary:i(`common.error`),detail:et(e)??i(`common.error`),life:4e3})}finally{he.value=!1}}function be(){_e.value=null,I.value={name:``,provider:`anthropic`,apiKey:``,model:``},ge.value=!0}function xe(e){_e.value=e.id,I.value={name:e.name,provider:e.provider,apiKey:``,model:e.model??``},ge.value=!0}let Se=T(()=>{let e=a.currentProject;return e?.orgId?Ce.value.get(e.orgId)??e.orgId:``}),Ce=n(new Map);async function we(){try{let e=await R.cloudSync.orgNames.query();Ce.value=new Map(Object.entries(e))}catch{}try{let e=await tt();Ce.value=new Map(e.map(e=>[e.id,e.name])),e.length&&await R.cloudSync.rememberOrgNames.mutate({orgs:e.map(e=>({orgId:e.id,name:e.name}))})}catch{}}async function Oe(){he.value=!0;try{_e.value?(await R.settings.updateAIProvider.mutate({id:_e.value,name:I.value.name,provider:I.value.provider,...I.value.apiKey?{apiKey:I.value.apiKey}:{},model:I.value.model||void 0,...dt()}),fe.add({severity:`success`,summary:i(`settingsPage.updated`),detail:i(`settingsPage.aiProviderUpdated`),life:2e3})):(await R.settings.createAIProvider.mutate({name:I.value.name,provider:I.value.provider,apiKey:I.value.apiKey,model:I.value.model||void 0,...dt()}),fe.add({severity:`success`,summary:i(`settingsPage.created`),detail:i(`settingsPage.aiProviderAdded`),life:2e3})),ge.value=!1,await ye()}catch(e){fe.add({severity:`error`,summary:i(`common.error`),detail:et(e)??i(`common.error`),life:4e3})}finally{he.value=!1}}async function Ae(e){try{await R.settings.setActiveAIProvider.mutate({id:e,...dt()}),await ye(),fe.add({severity:`success`,summary:i(`settingsPage.activeProviderSet`),detail:i(`settingsPage.activeProviderSetDesc`),life:2500})}catch(e){fe.add({severity:`error`,summary:i(`common.error`),detail:et(e)??i(`common.error`),life:4e3})}}function Me(e){j.require({header:i(`settingsPage.deleteParser`),message:`Are you sure you want to delete "${e.name}"?`,icon:`ti ti-alert-triangle`,acceptLabel:i(`actions.delete`),rejectLabel:i(`actions.cancel`),accept:async()=>{try{await R.settings.deleteAIProvider.mutate({id:e.id,...dt()}),await ye(),fe.add({severity:`success`,summary:i(`settingsPage.deleted`),detail:i(`settingsPage.aiProviderRemoved`),life:2e3})}catch(e){fe.add({severity:`error`,summary:i(`common.error`),detail:et(e)??i(`common.error`),life:4e3})}}})}return m(()=>[a.currentProject?.id,a.currentProject?.orgId],()=>{ye()},{immediate:!0}),ie(()=>{oe(),g.checkCliAvailability(),we()}),r({openCreateAIProvider:be}),(e,n)=>(D(),x(O,null,[u(t(ke),{class:`settings-card`},{content:k(()=>[b(`p`,Fd,[n[9]||=b(`i`,{class:`ti ti-lock`},null,-1),Se.value?(D(),x(`span`,Id,A(t(i)(`settingsPage.aiProvidersOrgScope`,{org:Se.value})),1)):(D(),x(`span`,Ld,A(t(i)(`settingsPage.aiProvidersMachineScope`)),1))]),b(`section`,Rd,[b(`h3`,zd,[n[10]||=b(`i`,{class:`ti ti-eye`},null,-1),d(` `+A(t(i)(`settingsPage.companionTitle`)),1)]),b(`p`,Bd,A(t(i)(`settingsPage.companionLead`)),1),b(`div`,Vd,[u(t(Fe),{"model-value":c.value,disabled:o.value||s.value,"onUpdate:modelValue":ce},null,8,[`model-value`,`disabled`]),b(`div`,null,[b(`div`,Hd,A(t(i)(`settingsPage.companionEnableByDefault`)),1),b(`div`,Ud,A(t(i)(`settingsPage.companionEnableByDefaultHint`)),1)])]),b(`div`,Wd,[b(`div`,null,[b(`div`,Gd,A(t(i)(`settingsPage.companionDefaultRunner`)),1),b(`div`,Kd,A(t(i)(`settingsPage.companionDefaultRunnerHint`)),1)]),b(`div`,qd,[u(t(De),{"model-value":f.value,options:te.value,"option-label":`label`,"option-value":`value`,"option-disabled":`disabled`,size:`small`,disabled:o.value||s.value,"aria-label":t(i)(`settingsPage.companionDefaultRunner`),"onUpdate:modelValue":E},null,8,[`model-value`,`options`,`disabled`,`aria-label`]),re.value.length>1?(D(),N(t(De),{key:0,"model-value":p.value,options:re.value,"option-label":`label`,"option-value":`value`,size:`small`,disabled:o.value||s.value,"aria-label":t(i)(`aiChat.companionModel`),"onUpdate:modelValue":ue},null,8,[`model-value`,`options`,`disabled`,`aria-label`])):F(``,!0),u(t(De),{"model-value":h.value,options:y.value,"option-label":`label`,"option-value":`value`,size:`small`,disabled:o.value||s.value,"aria-label":t(i)(`aiChat.companionEffort`),"onUpdate:modelValue":le},null,8,[`model-value`,`options`,`disabled`,`aria-label`])])]),b(`div`,Jd,[b(`div`,null,[b(`div`,Yd,A(t(i)(`settingsPage.companionPrompt`)),1),b(`div`,Xd,A(w.value?t(i)(`settingsPage.companionPromptDefault`):t(i)(`settingsPage.companionPromptCustom`)),1)]),b(`div`,Zd,[u(t(L),{size:`small`,variant:`text`,icon:ae.value?`ti ti-chevron-up`:`ti ti-pencil`,label:ae.value?t(i)(`actions.close`):t(i)(`settingsPage.companionPromptEdit`),onClick:n[0]||=e=>ae.value=!ae.value},null,8,[`icon`,`label`]),w.value?F(``,!0):(D(),N(t(L),{key:0,size:`small`,variant:`text`,severity:`secondary`,icon:`ti ti-refresh`,label:t(i)(`settingsPage.companionPromptReset`),disabled:s.value,onClick:de},null,8,[`label`,`disabled`]))])]),ae.value?(D(),x(`div`,Qd,[u(t(ze),{modelValue:l.value,"onUpdate:modelValue":n[1]||=e=>l.value=e,rows:`14`,"auto-resize":``,class:`companion-settings__textarea`,placeholder:t(i)(`settingsPage.companionPromptPlaceholder`),onBlur:n[2]||=e=>se({prompt:l.value})},null,8,[`modelValue`,`placeholder`]),b(`p`,$d,A(t(i)(`settingsPage.companionPromptEditorHint`)),1)])):F(``,!0)]),he.value&&P.value.length===0?(D(),x(`div`,ef,[n[11]||=b(`i`,{class:`ti ti-spin ti-loader-2`},null,-1),b(`span`,null,A(t(i)(`actions.loading`)),1)])):P.value.length===0?(D(),x(`div`,tf,A(t(i)(`settingsPage.noAiProviders`)),1)):(D(),x(`div`,nf,[(D(!0),x(O,null,S(P.value,e=>(D(),x(`div`,{key:e.id,class:C([`ai-provider-row`,{"ai-provider-row--active":e.active}])},[b(`div`,rf,[b(`span`,af,A(e.name),1),b(`span`,of,A(M.find(t=>t.value===e.provider)?.label??e.provider),1),e.model?(D(),x(`span`,sf,A(e.model),1)):F(``,!0),b(`code`,cf,A(e.maskedKey),1)]),b(`div`,lf,[e.active?(D(),x(`span`,uf,[n[12]||=b(`i`,{class:`ti ti-circle-check`},null,-1),d(` `+A(t(i)(`common.active`)),1)])):(D(),N(t(L),{key:1,label:t(i)(`settingsPage.setActive`),icon:`ti ti-check`,severity:`secondary`,variant:`outlined`,size:`small`,onClick:t=>Ae(e.id)},null,8,[`label`,`onClick`])),u(t(L),{icon:`ti ti-pencil`,severity:`info`,variant:`text`,rounded:``,size:`small`,onClick:t=>xe(e)},null,8,[`onClick`]),u(t(L),{icon:`ti ti-trash`,severity:`danger`,variant:`text`,rounded:``,size:`small`,onClick:t=>Me(e)},null,8,[`onClick`])])],2))),128))]))]),_:1}),u(t(je),{visible:ge.value,"onUpdate:visible":n[8]||=e=>ge.value=e,header:_e.value?t(i)(`settingsPage.editAiProvider`):t(i)(`settingsPage.addAiProvider`),modal:!0,style:{width:`36rem`}},{footer:k(()=>[u(t(L),{label:t(i)(`actions.cancel`),severity:`secondary`,variant:`outlined`,onClick:n[7]||=e=>ge.value=!1},null,8,[`label`]),u(t(L),{label:t(i)(`actions.save`),icon:`ti ti-check`,disabled:!ve.value||he.value,loading:he.value,onClick:Oe},null,8,[`label`,`disabled`,`loading`])]),default:k(()=>[b(`div`,df,[b(`div`,ff,[b(`label`,pf,[n[13]||=b(`i`,{class:`ti ti-tag`},null,-1),b(`span`,null,A(t(i)(`common.name`)),1)]),u(t(Te),{id:`aiprov-name`,modelValue:I.value.name,"onUpdate:modelValue":n[3]||=e=>I.value.name=e,placeholder:t(i)(`settingsPage.aiProviderNamePlaceholder`),class:`dialog-form__input`},null,8,[`modelValue`,`placeholder`])]),b(`div`,mf,[b(`label`,hf,[n[14]||=b(`i`,{class:`ti ti-brain`},null,-1),b(`span`,null,A(t(i)(`settingsPage.providerLabel`)),1)]),u(t(De),{"input-id":`aiprov-provider`,modelValue:I.value.provider,"onUpdate:modelValue":n[4]||=e=>I.value.provider=e,options:M,"option-label":`label`,"option-value":`value`,class:`dialog-form__input`},null,8,[`modelValue`])]),me.value?(D(),x(`div`,gf,[b(`p`,_f,A(me.value.description),1),me.value.url?(D(),x(`a`,{key:0,href:me.value.url,target:`_blank`,rel:`noopener noreferrer`,class:`ai-provider-info-block__link`},[n[15]||=b(`i`,{class:`ti ti-external-link`},null,-1),d(` `+A(me.value.urlLabel),1)],8,vf)):F(``,!0),b(`div`,yf,[b(`span`,bf,A(t(i)(`settingsPage.commonModels`)),1),(D(!0),x(O,null,S(me.value.defaultModels,e=>(D(),x(`code`,{key:e,class:`ai-provider-info-block__model-tag`},A(e),1))),128))])])):F(``,!0),me.value?.keyRequired?(D(),x(`div`,xf,[b(`label`,Sf,[n[16]||=b(`i`,{class:`ti ti-key`},null,-1),b(`span`,null,A(t(i)(`settingsPage.apiKeyLabel`))+A(_e.value?` (${t(i)(`settingsPage.apiKeyLeaveEmpty`)})`:``),1)]),u(t(Te),{id:`aiprov-apikey`,modelValue:I.value.apiKey,"onUpdate:modelValue":n[5]||=e=>I.value.apiKey=e,type:`password`,placeholder:_e.value?t(i)(`settingsPage.apiKeyKeepPlaceholder`):`sk-...`,class:`dialog-form__input`},null,8,[`modelValue`,`placeholder`])])):F(``,!0),b(`div`,Cf,[b(`label`,wf,[n[17]||=b(`i`,{class:`ti ti-settings`},null,-1),b(`span`,null,[d(A(t(i)(`settingsPage.modelOverride`))+` `,1),b(`small`,null,`(`+A(t(i)(`common.optional`))+`)`,1)])]),u(t(Te),{id:`aiprov-model`,modelValue:I.value.model,"onUpdate:modelValue":n[6]||=e=>I.value.model=e,placeholder:`${t(i)(`settingsPage.modelOverridePlaceholder`,{model:me.value?.defaultModels[0]??`model-name`})}`,class:`dialog-form__input`},null,8,[`modelValue`,`placeholder`])])])]),_:1},8,[`visible`,`header`])],64))}}),[[`__scopeId`,`data-v-472904c6`]]),Ef={key:0,class:`scenario-empty`},Df={key:1,class:`scenario-list`},Of={class:`scenario-info`},kf={key:0,class:`scenario-desc`},Af={class:`scenario-meta`},jf={class:`scenario-actions`},Mf=Me(E({__name:`SettingsScenario`,setup(e){let{t:n}=Le(),r=Ge(),i=Ye(),{scenarios:a}=He(i);return ie(()=>{i.fetchScenarios()}),(e,o)=>(D(),N(t(ke),{class:`settings-card`},{content:k(()=>[t(a).length===0?(D(),x(`div`,Ef,A(t(n)(`settingsPage.noScenarios`)),1)):(D(),x(`div`,Df,[(D(!0),x(O,null,S(t(a),e=>(D(),x(`div`,{key:e.id,class:`scenario-row`},[b(`div`,Of,[b(`i`,{class:C([t(Je)(e.icon,`building`),`scenario-icon`])},null,2),b(`div`,null,[b(`strong`,null,A(e.name),1),e.description?(D(),x(`span`,kf,A(e.description),1)):F(``,!0),b(`div`,Af,A(t(n)(`settingsPage.scenarioNodes`,{count:e.nodes.length}))+` · `+A(t(n)(`settingsPage.scenarioGroups`,{count:e.groups.length})),1)])]),b(`div`,jf,[u(t(L),{icon:`ti ti-pencil`,variant:`text`,rounded:``,size:`small`,onClick:n=>t(r).push({name:`scenario-edit`,params:{id:e.id}})},null,8,[`onClick`]),u(t(L),{icon:`ti ti-copy`,variant:`text`,rounded:``,size:`small`,severity:`secondary`,onClick:n=>t(i).duplicateScenario(e.id)},null,8,[`onClick`]),u(t(L),{icon:`ti ti-trash`,variant:`text`,rounded:``,size:`small`,severity:`danger`,onClick:n=>t(i).deleteScenario(e.id)},null,8,[`onClick`])])]))),128))]))]),_:1}))}}),[[`__scopeId`,`data-v-f04ea540`]]),Nf={class:`changelog-settings`},Pf={key:0,class:`state`},Ff={key:1,class:`state`},If={key:2,class:`state`},Lf=Me(E({__name:`SettingsChangelog`,setup(e){let{t:n}=Le(),{releases:r,loading:i,failed:a,load:o}=gt(`app`);return ie(o),(e,s)=>(D(),x(`div`,Nf,[t(i)?(D(),x(`div`,Pf,[u(t(we),{style:{width:`2rem`,height:`2rem`}})])):t(a)?(D(),x(`div`,Ff,[b(`span`,null,A(t(n)(`changelog.failed`)),1),u(t(L),{label:t(n)(`changelog.retry`),size:`small`,variant:`text`,onClick:s[0]||=e=>t(o)()},null,8,[`label`])])):t(r).length?(D(),N(ht,{key:3,releases:t(r)},null,8,[`releases`])):(D(),x(`p`,If,A(t(n)(`changelog.empty`)),1))]))}}),[[`__scopeId`,`data-v-5b38ad31`]]),Rf={class:`setting-row`},zf={class:`setting-label`},Bf={class:`setting-value`},Vf={class:`setting-row`},Hf={class:`setting-label`},Uf={class:`setting-value`},Wf={class:`setting-row`},Gf={class:`setting-label`},Kf={class:`setting-value`,style:{gap:`0.75rem`}},qf={key:1},Jf={class:`setting-row`},Yf={class:`setting-label`},Xf={class:`setting-value`},Zf={class:`card-title-row`},Qf={key:0,class:`setting-row`},$f={class:`setting-value`},ep={class:`setting-row`},tp={class:`setting-value`},np={class:`setting-row`},rp={class:`setting-label`},ip={class:`setting-value`},ap={class:`setting-row`},op={class:`setting-label`},sp={class:`setting-value`},cp={class:`setting-row`},lp={class:`setting-label`},up={class:`setting-value`},dp={class:`setting-row`},fp={class:`setting-label`},pp={class:`setting-value`},mp={class:`setting-row`},hp={class:`setting-label`},gp={class:`setting-value`},_p={class:`setting-row`},vp={class:`setting-value`},yp={key:0},bp={class:`setting-row`},xp={class:`setting-label`},Sp={class:`setting-value`},Cp={class:`setting-row`},wp={class:`setting-label`},Tp={class:`setting-value`},Ep={key:2,class:`setting-row`},Dp={class:`setting-value`},Op=Me(E({__name:`SettingsAbout`,setup(e){let{t:r}=Le(),i=Ee(),a=n(null),o=n(!0);function s(e){if(!Number.isFinite(e)||e<=0)return`0 B`;let t=[`B`,`KB`,`MB`,`GB`,`TB`],n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),t.length-1);return`${(e/1024**n).toFixed(n===0?0:1)} ${t[n]}`}function c(e){let t=Math.floor(e/1e3),n=Math.floor(t/86400),r=Math.floor(t%86400/3600),i=Math.floor(t%3600/60),a=[];return n&&a.push(`${n}j`),r&&a.push(`${r}h`),a.push(`${i}min`),a.join(` `)}async function l(){o.value=!0;try{a.value=await R.health.systemInfo.query()}catch{a.value=null}finally{o.value=!1}}function f(){let e=a.value,t=[`# Runeya — Informations système`,``,`## Application`,`- **Version installée** : ${m.value}`,`- **Dernière version** : ${h.value??`inconnue`}`,`- **Statut** : ${r(te[g.value])}`,``];return e&&t.push(`## Système`,`- **Node.js** : ${e.nodeVersion}`,`- **Plateforme** : ${e.platform} (${e.arch})`,`- **OS** : ${e.osType} ${e.osRelease}`,`- **Hôte** : ${e.hostname}`,`- **CPU** : ${e.cpuModel} × ${e.cpuCount}`,`- **Mémoire** : ${s(e.freeMemoryBytes)} libre / ${s(e.totalMemoryBytes)} totale`,`- **Docker** : ${e.dockerVersion??`non détecté`}`,`- **Uptime serveur** : ${c(e.serverUptimeMs)}`,`- **Uptime OS** : ${c(e.osUptimeSec*1e3)}`,``),t.join(`
223
- `)}function p(){let e=f(),t=new Blob([e],{type:`text/markdown;charset=utf-8`}),n=URL.createObjectURL(t),a=document.createElement(`a`);a.href=n,a.download=`runeya-system-info.md`,document.body.appendChild(a),a.click(),a.remove(),URL.revokeObjectURL(n),i.add({severity:`success`,summary:r(`settingsPage.exportDone`),life:1500})}let{current:m,latest:h,status:g,loading:_,check:v}=yt(),ee={"up-to-date":`success`,outdated:`warn`,ahead:`info`,dev:`info`,unknown:`secondary`},te={"up-to-date":`settingsPage.versionUpToDate`,outdated:`settingsPage.versionOutdated`,ahead:`settingsPage.versionAhead`,dev:`settingsPage.versionDev`,unknown:`settingsPage.versionUnknown`};function ne(){v({force:!0})}return ie(()=>{v(),l()}),(e,n)=>(D(),x(O,null,[u(t(ke),{class:`settings-card`},{title:k(()=>[d(A(t(r)(`settingsPage.applicationTitle`)),1)]),content:k(()=>[b(`div`,Rf,[b(`span`,zf,A(t(r)(`settingsPage.versionLabel`)),1),b(`div`,Bf,[b(`span`,null,A(t(_)?t(r)(`settingsPage.versionChecking`):t(m)??`—`),1)])]),b(`div`,Vf,[b(`span`,Hf,A(t(r)(`settingsPage.versionLatest`)),1),b(`div`,Uf,[b(`span`,null,A(t(_)?t(r)(`settingsPage.versionChecking`):t(h)??`—`),1)])]),b(`div`,Wf,[b(`span`,Gf,A(t(r)(`settingsPage.versionStatusRow`)),1),b(`div`,Kf,[t(_)?(D(),x(`span`,qf,A(t(r)(`settingsPage.versionChecking`)),1)):(D(),N(t(Oe),{key:0,value:t(r)(te[t(g)]),severity:ee[t(g)],icon:t(g)===`up-to-date`?`ti ti-check`:t(g)===`outdated`?`ti ti-arrow-up`:`ti ti-info-circle`},null,8,[`value`,`severity`,`icon`])),u(t(L),{label:t(r)(`settingsPage.versionRecheck`),icon:`ti ti-refresh`,variant:`text`,size:`small`,loading:t(_),onClick:ne},null,8,[`label`,`loading`])])]),b(`div`,Jf,[b(`span`,Yf,A(t(r)(`settingsPage.runtimeLabel`)),1),b(`div`,Xf,[b(`span`,null,A(t(r)(`settingsPage.runtimeValue`)),1)])])]),_:1}),u(t(ke),{class:`settings-card`,style:{"margin-top":`1rem`}},{title:k(()=>[b(`div`,Zf,[b(`span`,null,A(t(r)(`settingsPage.systemTitle`)),1),u(t(L),{label:t(r)(`settingsPage.exportMarkdown`),icon:`ti ti-download`,size:`small`,variant:`outlined`,disabled:o.value,onClick:p},null,8,[`label`,`disabled`])])]),content:k(()=>[o.value?(D(),x(`div`,Qf,[b(`span`,$f,A(t(r)(`settingsPage.versionChecking`)),1)])):a.value?(D(),x(O,{key:1},[b(`div`,ep,[n[0]||=b(`span`,{class:`setting-label`},`Node.js`,-1),b(`div`,tp,[b(`span`,null,A(a.value.nodeVersion),1)])]),b(`div`,np,[b(`span`,rp,A(t(r)(`settingsPage.sysPlatform`)),1),b(`div`,ip,[b(`span`,null,A(a.value.platform)+` (`+A(a.value.arch)+`)`,1)])]),b(`div`,ap,[b(`span`,op,A(t(r)(`settingsPage.sysOs`)),1),b(`div`,sp,[b(`span`,null,A(a.value.osType)+` `+A(a.value.osRelease),1)])]),b(`div`,cp,[b(`span`,lp,A(t(r)(`settingsPage.sysHostname`)),1),b(`div`,up,[b(`span`,null,A(a.value.hostname),1)])]),b(`div`,dp,[b(`span`,fp,A(t(r)(`settingsPage.sysCpu`)),1),b(`div`,pp,[b(`span`,null,A(a.value.cpuModel)+` × `+A(a.value.cpuCount),1)])]),b(`div`,mp,[b(`span`,hp,A(t(r)(`settingsPage.sysMemory`)),1),b(`div`,gp,[b(`span`,null,A(s(a.value.freeMemoryBytes))+` / `+A(s(a.value.totalMemoryBytes)),1)])]),b(`div`,_p,[n[1]||=b(`span`,{class:`setting-label`},`Docker`,-1),b(`div`,vp,[a.value.dockerVersion?(D(),x(`span`,yp,A(a.value.dockerVersion),1)):(D(),N(t(Oe),{key:1,value:t(r)(`settingsPage.dockerNotDetected`),severity:`secondary`},null,8,[`value`]))])]),b(`div`,bp,[b(`span`,xp,A(t(r)(`settingsPage.sysServerUptime`)),1),b(`div`,Sp,[b(`span`,null,A(c(a.value.serverUptimeMs)),1)])]),b(`div`,Cp,[b(`span`,wp,A(t(r)(`settingsPage.sysOsUptime`)),1),b(`div`,Tp,[b(`span`,null,A(c(a.value.osUptimeSec*1e3)),1)])])],64)):(D(),x(`div`,Ep,[b(`span`,Dp,A(t(r)(`settingsPage.versionUnknown`)),1)]))]),_:1})],64))}}),[[`__scopeId`,`data-v-3261b86d`]]),kp={class:`diagnostics`},Ap={class:`block`},jp={class:`block__header`},Mp={class:`block__title`},Np={class:`block__desc`},Pp={key:2,class:`empty`},Fp={key:3,class:`instances`},Ip={class:`instance__main`},Lp={class:`instance__port`},Rp={key:0,class:`tag tag--current`},zp={class:`instance__meta`},Bp=[`title`],Vp={key:0,class:`instance__actions`},Hp={key:1,class:`instance__actions`},Up={class:`block`},Wp={class:`block__header`},Gp={class:`block__title`},Kp={class:`block__desc`},qp={class:`toolbar`},Jp={class:`toolbar__toggle`},Yp={for:`diag-streaming`},Xp={class:`toolbar__actions`},Zp={key:0,class:`empty`},Qp={class:`log-line__time`},$p={class:`log-line__text`},em={key:1,class:`follow-hint`},tm=2e3,nm=Me(E({__name:`SettingsDiagnostics`,setup(e){let{t:r}=Le(),i=Pe(),a=n([]),o=n(!0),s=n(!0),c=n(`all`),l=n(``),f=n(``),p=n(null),h=null,g=T(()=>[{label:r(`settingsDiagnostics.sourceAll`),value:`all`},{label:r(`settingsDiagnostics.sourceServer`),value:`server`},{label:r(`settingsDiagnostics.sourceAgent`),value:`agent`}]),_=T(()=>{let e=l.value.trim().toLowerCase();return a.value.filter(t=>!(c.value!==`all`&&t.source!==c.value||e&&!t.text.toLowerCase().includes(e)))}),v=T(()=>a.value.at(-1)?.seq??0);function ee(e){e.seq<=v.value||(a.value.push(e),a.value.length>tm&&a.value.splice(0,a.value.length-tm),s.value&&te())}async function te(){await M();let e=p.value;e&&(e.scrollTop=e.scrollHeight)}function ne(){re(),f.value=``;let e=R.diagnostics.streamLogs.subscribe({afterSeq:v.value},{onData:ee,onError:e=>{f.value=e.message}});h=()=>e.unsubscribe()}function re(){h?.(),h=null}m(o,e=>e?ne():re());function y(){let e=p.value;if(!e)return;let t=e.scrollHeight-e.scrollTop-e.clientHeight<24;s.value=t}function ae(){a.value=[]}async function w(){let e=_.value.map(e=>`${new Date(e.at).toISOString()} [${e.source}] ${e.text}`).join(`
224
- `);await navigator.clipboard.writeText(e)}function oe(e){return`log-line--${e}`}function se(e){return new Date(e).toLocaleTimeString()}let E=n([]),le=n(!1),ue=n(``),de=n(``),fe=null;async function j(){le.value=!0,ue.value=``;try{E.value=await R.diagnostics.instances.query()}catch(e){ue.value=e.message}finally{le.value=!1}}function pe(e){if(e===null)return`—`;let t=Math.floor(e/1e3),n=Math.floor(t/86400),r=Math.floor(t%86400/3600),i=Math.floor(t%3600/60);return n>0?`${n} j ${r} h`:r>0?`${r} h ${i} min`:i>0?`${i} min`:`${t} s`}function me(e){window.open(`http://localhost:${e.port}`,`_blank`,`noopener`)}let P=n(null),he=n(null);function ge(e){return e.restartBlockedBy===`legacy`?r(`settingsDiagnostics.restartBlockedLegacy`):e.restartBlockedBy===`secrets`?r(`settingsDiagnostics.restartBlockedSecrets`):r(`settingsDiagnostics.restartTooltip`)}function _e(e){i.require({message:e.current?r(`settingsDiagnostics.restartSelfConfirm`):r(`settingsDiagnostics.restartConfirm`,{port:e.port,cwd:e.cwd}),header:r(`settingsDiagnostics.restartConfirmTitle`),icon:`ti ti-alert-triangle`,acceptLabel:r(`settingsDiagnostics.restart`),rejectLabel:r(`settingsDiagnostics.restartCancel`),accept:()=>void I(e)})}async function I(e){he.value=e.pid,ue.value=``,de.value=``;try{let t=await R.diagnostics.restartInstance.mutate({pid:e.pid});if(t.self){de.value=r(`settingsDiagnostics.restartSelfPending`),be();return}de.value=t.portReleased?r(`settingsDiagnostics.restartDone`,{pid:t.pid}):r(`settingsDiagnostics.restartPortBusy`,{pid:t.pid,port:e.port})}catch(e){ue.value=e.message}finally{he.value=null,await j()}}function ve(e){i.require({message:r(`settingsDiagnostics.killConfirm`,{port:e.port,cwd:e.cwd}),header:r(`settingsDiagnostics.killConfirmTitle`),icon:`ti ti-alert-triangle`,acceptLabel:r(`settingsDiagnostics.kill`),rejectLabel:r(`settingsDiagnostics.killCancel`),acceptProps:{severity:`danger`},accept:()=>void ye(e)})}async function ye(e){P.value=e.pid,ue.value=``,de.value=``;try{let t=await R.diagnostics.killInstance.mutate({pid:e.pid});t.server===`denied`?ue.value=r(`settingsDiagnostics.killDenied`):t.server===`failed`&&(ue.value=r(`settingsDiagnostics.killFailed`))}catch(e){ue.value=e.message}finally{P.value=null,await j()}}async function be(){he.value=null,re(),fe&&=(clearInterval(fe),null);let e=Date.now()+6e4;for(await new Promise(e=>setTimeout(e,2e3));Date.now()<e;){try{if((await fetch(`/api/trpc/health.check`,{signal:AbortSignal.timeout(1e3)})).ok){window.location.reload();return}}catch{}await new Promise(e=>setTimeout(e,500))}de.value=``,ue.value=r(`settingsDiagnostics.restartSelfTimeout`)}return ie(async()=>{try{a.value=await R.diagnostics.recentLogs.query({limit:500})}catch(e){f.value=e.message}te(),o.value&&ne(),await j(),fe=setInterval(()=>void j(),1e4)}),ce(()=>{re(),fe&&clearInterval(fe)}),(e,n)=>(D(),x(`div`,kp,[b(`section`,Ap,[b(`div`,jp,[b(`div`,null,[b(`h3`,Mp,A(t(r)(`settingsDiagnostics.instancesTitle`)),1),b(`p`,Np,A(t(r)(`settingsDiagnostics.instancesDesc`)),1)]),u(t(L),{icon:`ti ti-refresh`,label:t(r)(`settingsDiagnostics.refresh`),size:`small`,variant:`outlined`,loading:le.value,onClick:j},null,8,[`label`,`loading`])]),ue.value?(D(),N(t(Ae),{key:0,severity:`error`},{default:k(()=>[d(A(ue.value),1)]),_:1})):de.value?(D(),N(t(Ae),{key:1,severity:`success`},{default:k(()=>[d(A(de.value),1)]),_:1})):E.value.length===0&&!le.value?(D(),x(`p`,Pp,A(t(r)(`settingsDiagnostics.instancesEmpty`)),1)):(D(),x(`ul`,Fp,[(D(!0),x(O,null,S(E.value,e=>(D(),x(`li`,{key:e.pid,class:`instance`},[b(`div`,Ip,[b(`span`,Lp,[b(`i`,{class:C([`ti`,e.fromDesktop?`ti-device-desktop`:`ti-code`])},null,2),d(` localhost:`+A(e.port),1)]),e.current?(D(),x(`span`,Rp,A(t(r)(`settingsDiagnostics.thisInstance`)),1)):F(``,!0)]),b(`div`,zp,[b(`span`,{title:e.cwd,class:`instance__cwd`},A(e.cwd),9,Bp),n[4]||=b(`span`,null,`·`,-1),b(`span`,null,`v`+A(e.version),1),n[5]||=b(`span`,null,`·`,-1),b(`span`,null,A(t(r)(`settingsDiagnostics.uptime`))+` `+A(pe(e.uptimeMs)),1),n[6]||=b(`span`,null,`·`,-1),b(`span`,null,`pid `+A(e.pid),1),n[7]||=b(`span`,null,`·`,-1),b(`span`,null,A(t(r)(`settingsDiagnostics.agentPort`))+` `+A(e.agentPort),1)]),e.current?(D(),x(`div`,Vp,[u(t(L),{icon:`ti ti-rotate`,label:t(r)(`settingsDiagnostics.restart`),title:ge(e),size:`small`,variant:`text`,disabled:!e.restartable,loading:he.value===e.pid,onClick:t=>_e(e)},null,8,[`label`,`title`,`disabled`,`loading`,`onClick`])])):(D(),x(`div`,Hp,[u(t(L),{icon:`ti ti-external-link`,label:t(r)(`settingsDiagnostics.open`),size:`small`,variant:`text`,onClick:t=>me(e)},null,8,[`label`,`onClick`]),u(t(L),{icon:`ti ti-rotate`,label:t(r)(`settingsDiagnostics.restart`),title:ge(e),size:`small`,variant:`text`,disabled:!e.restartable,loading:he.value===e.pid,onClick:t=>_e(e)},null,8,[`label`,`title`,`disabled`,`loading`,`onClick`]),u(t(L),{icon:`ti ti-power`,label:t(r)(`settingsDiagnostics.kill`),title:t(r)(`settingsDiagnostics.killTooltip`),size:`small`,variant:`text`,severity:`danger`,loading:P.value===e.pid,onClick:t=>ve(e)},null,8,[`label`,`title`,`loading`,`onClick`])]))]))),128))]))]),b(`section`,Up,[b(`div`,Wp,[b(`div`,null,[b(`h3`,Gp,A(t(r)(`settingsDiagnostics.logsTitle`)),1),b(`p`,Kp,A(t(r)(`settingsDiagnostics.logsDesc`)),1)])]),b(`div`,qp,[u(t(De),{modelValue:c.value,"onUpdate:modelValue":n[0]||=e=>c.value=e,options:g.value,"option-label":`label`,"option-value":`value`,size:`small`,class:`toolbar__source`},null,8,[`modelValue`,`options`]),u(t(Te),{modelValue:l.value,"onUpdate:modelValue":n[1]||=e=>l.value=e,placeholder:t(r)(`settingsDiagnostics.searchPlaceholder`),size:`small`,class:`toolbar__search`},null,8,[`modelValue`,`placeholder`]),b(`div`,Jp,[u(t(Fe),{modelValue:o.value,"onUpdate:modelValue":n[2]||=e=>o.value=e,"input-id":`diag-streaming`},null,8,[`modelValue`]),b(`label`,Yp,A(t(r)(`settingsDiagnostics.live`)),1)]),n[8]||=b(`div`,{class:`toolbar__spacer`},null,-1),b(`div`,Xp,[u(t(L),{icon:`ti ti-copy`,label:t(r)(`settingsDiagnostics.copy`),size:`small`,variant:`text`,onClick:w},null,8,[`label`]),u(t(L),{icon:`ti ti-eraser`,label:t(r)(`settingsDiagnostics.clear`),size:`small`,variant:`text`,onClick:ae},null,8,[`label`])])]),f.value?(D(),N(t(Ae),{key:0,severity:`warn`},{default:k(()=>[d(A(f.value),1)]),_:1})):F(``,!0),b(`div`,{ref_key:`logEl`,ref:p,class:`log`,onScroll:y},[_.value.length===0?(D(),x(`p`,Zp,A(t(r)(`settingsDiagnostics.logsEmpty`)),1)):F(``,!0),(D(!0),x(O,null,S(_.value,e=>(D(),x(`div`,{key:e.seq,class:C([`log-line`,oe(e.level)])},[b(`span`,Qp,A(se(e.at)),1),b(`span`,{class:C([`log-line__source`,`log-line__source--${e.source}`])},A(e.source),3),b(`span`,$p,A(e.text),1)],2))),128))],544),!s.value&&o.value?(D(),x(`p`,em,[u(t(L),{icon:`ti ti-chevrons-down`,label:t(r)(`settingsDiagnostics.resumeScroll`),size:`small`,variant:`text`,onClick:n[3]||=e=>{s.value=!0,te()}},null,8,[`label`])])):F(``,!0)])]))}}),[[`__scopeId`,`data-v-7cc5031a`]]),rm=e=>typeof e==`object`&&!!e;function im(e){return typeof e==`object`&&e&&`$ref`in e?rm(e[`$ref-value`])?e[`$ref-value`]:void 0:e}function am(e,t){t&&(e.includes(t)||e.push(t))}function om(e,t,n=0){e&&!t.visited.has(e)&&(t.visited.add(e),[...e.oneOf??[],...e.anyOf??[],...e.allOf??[]].forEach(e=>{om(im(e),t,n)}),cn(e)&&e.properties&&Object.entries(e.properties).forEach(([e,r])=>{let i=im(r);t.visit(e,i),n+1<t.maxPropertyDepth&&om(i,t,n+1)}))}function sm(e,t){let n=G(e?.requestBody)?.content;if(!n)return;let r=new Set;Object.values(n).forEach(e=>{om(G(G(e)?.schema),{visit:t,visited:r,maxPropertyDepth:2})})}function cm(e){let t=[];return e.forEach(e=>{am(t,G(e)?.name)}),t}function lm(e){let t=[];return e.forEach(e=>{am(t,G(e)?.description)}),t}function um(e){let t=[];return sm(e,e=>{am(t,e)}),t}function dm(e){let t=[];return sm(e,(e,n)=>{n&&`description`in n&&typeof n.description==`string`&&am(t,n.description)}),t}function fm(e){let t=[];return om(e,{visit:e=>am(t,e),visited:new Set,maxPropertyDepth:2}),t}function pm(e){let t=[];return om(e,{visit:(e,n)=>{n&&`description`in n&&typeof n.description==`string`&&am(t,n.description)},visited:new Set,maxPropertyDepth:2}),t}var X=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},mm={en:{common:{additionalProperties:`additional properties`,const:`const`,deprecated:`deprecated`,description:`Description`,discriminator:`Discriminator`,enum:`enum`,format:`Format`,greaterThan:`greater than`,httpMethod:`HTTP Method`,keys:`keys`,lessThan:`less than`,max:`max`,min:`min`,maxLength:`max length`,minLength:`min length`,multipleOf:`multiple of`,nullable:`nullable`,path:`Path`,propertyNames:`property names`,pattern:`Pattern`,readOnly:`read-only`,required:`required`,hideValues:`Hide values`,showAllValues:`Show all values`,type:`Type`,unique:`unique`,values:`values`,writeOnly:`write-only`},search:{label:`Search`,inputLabel:`Enter search query`,open:`Open Search`,placeholder:`Search...`,clear:`Clear Search`,keyboardShortcut:`Keyboard Shortcut:`,command:`Command`,control:`Control`,results:`Reference Search Results`,navigate:`Navigate`,select:`Select`,instructions:`Press up arrow / down arrow to navigate, enter to select, type to filter results`,entryHeading:`Heading`,entryOperation:`Operation`,entryTag:`Tag`,entryTagGroup:`Tag Group`,entryWebhook:`Webhook`},navigation:{introduction:`Introduction`,closeGroup:`Close Group`,closeMenu:`Close Menu`,openGroup:`Open Group`,openMenu:`Open Menu`,operations:`Operations`,endpoints:`{name} endpoints`,showAllEndpoints:`Show all {name} endpoints`,sidebarFor:`Sidebar for {name}`,mainContent:`API documentation for {name}`,collapsed:`Collapsed`,webhooks:`Webhooks`},server:{label:`Server`,select:`Select a server`},info:{termsOfService:`Terms of Service`},asyncapi:{servers:`Servers`,protocols:`Protocols`},clientLibraries:{heading:`Client Libraries`,more:`More`,selectAll:`Select from all clients`},operation:{body:`Body`,cookies:`Cookies`,headers:`Headers`,pathParameters:`Path Parameters`,queryParameters:`Query Parameters`,requestBody:`Request Body`,responses:`Responses`,testRequest:`Test Request`,webhook:`Webhook`,selectedContentType:`Selected Content Type`,hideHeaders:`Hide Headers`,showHeaders:`Show Headers`,callbacks:`Callbacks`},response:{exampleResponses:`Example Responses`,noBody:`No Body`,showSchema:`Show Schema`,status:`Status`},schema:{example:`Example`,examples:`Examples`,default:`Default`,schema:`Schema`,emptyObject:`Empty object`,showAdditionalProperties:`Show additional properties`,childAttributes:`Child Attributes`,hideChildAttributes:`Hide {name}`,showChildAttributes:`Show {name}`,forName:`for {name}`,showSchemaDetails:`Show Schema Details`,oneOf:`One of`,anyOf:`Any of`,allOf:`All of`,not:`Not`,unknownType:`unknown type`},download:{openapi:`Download OpenAPI Document`,asyncapi:`Download AsyncAPI Document`},models:{label:`Models`},actions:{copyLink:`Copy link`,copyLinkTo:`Copy link to {name}`,copyToClipboard:`Copy link to clipboard`,copyEndpointUrl:`Copy endpoint URL`,showMore:`Show More`},agent:{askAi:`Ask AI`,askAiAgent:`Ask AI Agent`,close:`Close Client`},mcp:{generate:`Generate MCP`,connect:`Connect MCP`},developerTools:{title:`Developer Tools`,configure:`Configure`,share:`Share`,deploy:`Deploy`,scalarConfiguration:`Scalar Configuration`,theme:`Theme`,layout:`Layout`,layoutOptions:`Layout Options`,intro:`The developer tools allow you to customize the appearance and behavior of your documentation. You can also share your documentation using the Scalar Registry.`,disableToolbarBefore:`To disable the toolbar, set`,disableToolbarAfter:`in your configuration.`,localhostOnly:`The developer tools will only appear when running on localhost.`,layoutModern:`Modern`,layoutClassic:`Classic`,showSidebar:`Show Sidebar`,defaultOpenFirstTag:`Default Open First Tag`,defaultOpenAllTags:`Default Open All Tags`,expandAll:`Expand All {label}`,expandAllResponses:`Expand All Responses`,hideClientButton:`Hide Client Button`,hideDarkModeToggle:`Hide Dark Mode Toggle`,hideModels:`Hide {label}`,hideSearch:`Hide Search`,showOperationId:`Show Operation ID`,hideTestRequestButton:`Hide Test Request Button`,scalarDocs:`Scalar Docs`,deployDescription:`Deploy your documentation on Scalar, the modern documentation platform for your API and everything else.`,shareTitle:`Share your API Reference`,shareDescription:`Upload your OpenAPI document to share your API Reference with others. As easy as pressing a button.`,uploadDocument:`Upload Document`,temporaryLinkExpiration:`Your document will automatically be deleted after 7 days.`,deployOnScalar:`Deploy on Scalar`,deployFree:`Deploy your documentation for free.`,additionalFeaturesMightRequire:`Additional features might require`,generate:`Generate`,passwordProtection:`Password Protection`,customDomains:`Custom Domains`,freeFormContent:`Free-form content`,cdnInfrastructure:`CDN Infrastructure`,pullFromGitHub:`Pull from GitHub`,markdownMdx:`Markdown/MDX`,spectralLinting:`Spectral Linting`,jsonSchemaHosting:`JSON Schema Hosting`,askAi:`Ask AI`,mcpServers:`MCP Servers`,unableToExportDocument:`Unable to export active document`,unknownError:`An unknown error occurred`},gettingStarted:{swaggerEditor:`Swagger Editor`,description:`Welcome to the Scalar API References + Swagger Editor, a Free & Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references.`,showExample:`Show Example`,uploadFile:`Upload File`,integrations:`INTEGRATIONS`,theming:`THEMING`,features:`Features`,customize:`Customize`,customizeDescription:`Bring your typography & color palettes, or use our themes!`,testing:`Testing`,testingDescription:`A deeply integrated Rest API Client (Also Free & Open-Source)`,search:`Search`,searchDescription:`Fully integrated Search (Using fuse.js)`,hosting:`Hosting`,hostingDescription:`Free subdomain hosting on https://apidocumentation.com`,openApiSwagger:`OpenAPI & Swagger`,openApiSwaggerDescription:`Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0`,codeSamples:`Code Samples`,codeSamplesDescription:`Code samples to show off your API in most popular languages`},footer:{poweredByScalar:`Powered by Scalar`},authentication:{title:`Authentication`,accepts:`Accepts`,allOf:`all of:`,authentication:`authentication`,optional:`Auth Optional`,oneOf:`one of:`,required:`Auth Required`,requires:`Requires`}},ru:{common:{additionalProperties:`дополнительные свойства`,const:`константа`,deprecated:`устарело`,description:`Описание`,discriminator:`Дискриминатор`,enum:`enum`,format:`Формат`,greaterThan:`больше чем`,httpMethod:`HTTP-метод`,keys:`ключи`,lessThan:`меньше чем`,max:`макс.`,min:`мин.`,maxLength:`макс. длина`,minLength:`мин. длина`,multipleOf:`кратно`,nullable:`может быть null`,path:`Путь`,propertyNames:`имена свойств`,pattern:`Шаблон`,readOnly:`только чтение`,required:`обязательно`,hideValues:`Скрыть значения`,showAllValues:`Показать все значения`,type:`Тип`,unique:`уникально`,values:`значения`,writeOnly:`только запись`},search:{label:`Поиск`,inputLabel:`Введите поисковый запрос`,open:`Открыть поиск`,placeholder:`Поиск...`,clear:`Очистить поиск`,keyboardShortcut:`Сочетание клавиш:`,command:`Command`,control:`Control`,results:`Результаты поиска по документации`,navigate:`Навигация`,select:`Выбрать`,instructions:`Нажмите стрелку вверх или вниз для навигации, Enter для выбора, вводите текст для фильтрации результатов`,entryHeading:`Заголовок`,entryOperation:`Операция`,entryTag:`Тег`,entryTagGroup:`Группа тегов`,entryWebhook:`Вебхук`},navigation:{introduction:`Введение`,closeGroup:`Закрыть группу`,closeMenu:`Закрыть меню`,openGroup:`Открыть группу`,openMenu:`Открыть меню`,operations:`Операции`,endpoints:`Эндпоинты {name}`,showAllEndpoints:`Показать все эндпоинты {name}`,sidebarFor:`Боковая панель для {name}`,mainContent:`Документация API для {name}`,collapsed:`Свернуто`,webhooks:`Вебхуки`},server:{label:`Сервер`,select:`Выберите сервер`},info:{termsOfService:`Условия использования`},asyncapi:{servers:`Серверы`,protocols:`Протоколы`},clientLibraries:{heading:`Клиентские библиотеки`,more:`Ещё`,selectAll:`Выбрать из всех клиентов`},operation:{body:`Тело`,cookies:`Cookie`,headers:`Заголовки`,pathParameters:`Параметры пути`,queryParameters:`Query-параметры`,requestBody:`Тело запроса`,responses:`Ответы`,testRequest:`Проверить запрос`,webhook:`Вебхук`,selectedContentType:`Выбранный тип содержимого`,hideHeaders:`Скрыть заголовки`,showHeaders:`Показать заголовки`,callbacks:`Обратные вызовы`},response:{exampleResponses:`Примеры ответов`,noBody:`Нет тела`,showSchema:`Показать схему`,status:`Статус`},schema:{example:`Пример`,examples:`Примеры`,default:`Значение по умолчанию`,schema:`Схема`,emptyObject:`Пустой объект`,showAdditionalProperties:`Показать дополнительные свойства`,childAttributes:`Дочерние атрибуты`,hideChildAttributes:`Скрыть {name}`,showChildAttributes:`Показать {name}`,forName:`для {name}`,showSchemaDetails:`Показать детали схемы`,oneOf:`Один из`,anyOf:`Любой из`,allOf:`Все из`,not:`Не`,unknownType:`неизвестный тип`},download:{openapi:`Скачать OpenAPI-документ`,asyncapi:`Скачать AsyncAPI-документ`},models:{label:`Модели`},actions:{copyLink:`Скопировать ссылку`,copyLinkTo:`Скопировать ссылку на {name}`,copyToClipboard:`Скопировать ссылку в буфер обмена`,copyEndpointUrl:`Скопировать URL endpoint-а`,showMore:`Показать ещё`},agent:{askAi:`Спросить AI`,askAiAgent:`Спросить AI-агента`,close:`Закрыть клиент`},mcp:{generate:`Создать MCP`,connect:`Подключить MCP`},developerTools:{title:`Инструменты разработчика`,configure:`Настроить`,share:`Поделиться`,deploy:`Опубликовать`,scalarConfiguration:`Конфигурация Scalar`,theme:`Тема`,layout:`Макет`,layoutOptions:`Параметры макета`,intro:`Инструменты разработчика позволяют настроить внешний вид и поведение документации. Также можно поделиться документацией через Scalar Registry.`,disableToolbarBefore:`Чтобы отключить панель, установите`,disableToolbarAfter:`в конфигурации.`,localhostOnly:`Инструменты разработчика отображаются только при запуске на localhost.`,layoutModern:`Современный`,layoutClassic:`Классический`,showSidebar:`Показать боковую панель`,defaultOpenFirstTag:`Открывать первый тег по умолчанию`,defaultOpenAllTags:`Открывать все теги по умолчанию`,expandAll:`Развернуть все {label}`,expandAllResponses:`Развернуть все ответы`,hideClientButton:`Скрыть кнопку клиента`,hideDarkModeToggle:`Скрыть переключатель тёмной темы`,hideModels:`Скрыть {label}`,hideSearch:`Скрыть поиск`,showOperationId:`Показать ID операции`,hideTestRequestButton:`Скрыть кнопку тестового запроса`,scalarDocs:`Scalar Docs`,deployDescription:`Опубликуйте документацию на Scalar — современной платформе документации для вашего API и не только.`,shareTitle:`Поделиться API Reference`,shareDescription:`Загрузите документ OpenAPI, чтобы поделиться API Reference с другими. Так же просто, как нажать кнопку.`,uploadDocument:`Загрузить документ`,temporaryLinkExpiration:`Документ будет автоматически удалён через 7 дней.`,deployOnScalar:`Опубликовать на Scalar`,deployFree:`Опубликуйте документацию бесплатно.`,additionalFeaturesMightRequire:`Для дополнительных возможностей может потребоваться`,generate:`Создать`,passwordProtection:`Защита паролем`,customDomains:`Пользовательские домены`,freeFormContent:`Произвольный контент`,cdnInfrastructure:`CDN-инфраструктура`,pullFromGitHub:`Загрузка из GitHub`,markdownMdx:`Markdown/MDX`,spectralLinting:`Линтинг Spectral`,jsonSchemaHosting:`Хостинг JSON Schema`,askAi:`Спросить AI`,mcpServers:`MCP-серверы`,unableToExportDocument:`Не удалось экспортировать активный документ`,unknownError:`Произошла неизвестная ошибка`},gettingStarted:{swaggerEditor:`Swagger Editor`,description:`Добро пожаловать в Scalar API References + Swagger Editor — бесплатный инструмент с открытым исходным кодом, который принимает файл Swagger/OAS и создаёт красивые API Reference.`,showExample:`Показать пример`,uploadFile:`Загрузить файл`,integrations:`ИНТЕГРАЦИИ`,theming:`ТЕМЫ`,features:`Возможности`,customize:`Настройка`,customizeDescription:`Используйте свою типографику и цветовые палитры или наши темы!`,testing:`Тестирование`,testingDescription:`Глубоко интегрированный REST API Client (тоже бесплатный и с открытым исходным кодом)`,search:`Поиск`,searchDescription:`Полностью интегрированный поиск (с использованием fuse.js)`,hosting:`Хостинг`,hostingDescription:`Бесплатный хостинг на поддомене https://apidocumentation.com`,openApiSwagger:`OpenAPI и Swagger`,openApiSwaggerDescription:`Поддержка OpenAPI 3.1, OpenAPI 3.0 и Swagger 2.0`,codeSamples:`Примеры кода`,codeSamplesDescription:`Примеры кода для демонстрации вашего API на самых популярных языках`},footer:{poweredByScalar:`Работает на Scalar`},authentication:{title:`Аутентификация`,accepts:`Принимает`,allOf:`все из:`,authentication:`аутентификация`,optional:`Аутентификация необязательна`,oneOf:`одно из:`,required:`Требуется аутентификация`,requires:`Требуется`}},es:{common:{additionalProperties:`propiedades adicionales`,const:`constante`,deprecated:`obsoleto`,description:`Descripción`,discriminator:`Discriminador`,enum:`enum`,format:`Formato`,greaterThan:`mayor que`,httpMethod:`Método HTTP`,keys:`claves`,lessThan:`menor que`,max:`máx.`,min:`mín.`,maxLength:`longitud máx.`,minLength:`longitud mín.`,multipleOf:`múltiplo de`,nullable:`admite null`,path:`Ruta`,propertyNames:`nombres de propiedades`,pattern:`Patrón`,readOnly:`solo lectura`,required:`obligatorio`,hideValues:`Ocultar valores`,showAllValues:`Mostrar todos los valores`,type:`Tipo`,unique:`único`,values:`valores`,writeOnly:`solo escritura`},search:{label:`Buscar`,inputLabel:`Introduce tu consulta de búsqueda`,open:`Abrir búsqueda`,placeholder:`Buscar...`,clear:`Borrar búsqueda`,keyboardShortcut:`Atajo de teclado:`,command:`Comando`,control:`Control`,results:`Resultados de búsqueda de la referencia`,navigate:`Navegar`,select:`Seleccionar`,instructions:`Pulsa flecha arriba o abajo para navegar, Enter para seleccionar y escribe para filtrar resultados`,entryHeading:`Encabezado`,entryOperation:`Operación`,entryTag:`Etiqueta`,entryTagGroup:`Grupo de etiquetas`,entryWebhook:`Webhook`},navigation:{introduction:`Introducción`,closeGroup:`Cerrar grupo`,closeMenu:`Cerrar menú`,openGroup:`Abrir grupo`,openMenu:`Abrir menú`,operations:`Operaciones`,endpoints:`Endpoints de {name}`,showAllEndpoints:`Mostrar todos los endpoints de {name}`,sidebarFor:`Barra lateral de {name}`,mainContent:`Documentación de la API de {name}`,collapsed:`Contraído`,webhooks:`Webhooks`},server:{label:`Servidor`,select:`Seleccionar un servidor`},info:{termsOfService:`Términos del servicio`},asyncapi:{servers:`Servidores`,protocols:`Protocolos`},clientLibraries:{heading:`Bibliotecas cliente`,more:`Más`,selectAll:`Seleccionar entre todos los clientes`},operation:{body:`Cuerpo`,cookies:`Cookies`,headers:`Encabezados`,pathParameters:`Parámetros de ruta`,queryParameters:`Parámetros de consulta`,requestBody:`Cuerpo de la solicitud`,responses:`Respuestas`,testRequest:`Probar solicitud`,webhook:`Webhook`,selectedContentType:`Tipo de contenido seleccionado`,hideHeaders:`Ocultar encabezados`,showHeaders:`Mostrar encabezados`,callbacks:`Callbacks`},response:{exampleResponses:`Ejemplos de respuesta`,noBody:`Sin cuerpo`,showSchema:`Mostrar esquema`,status:`Estado`},schema:{example:`Ejemplo`,examples:`Ejemplos`,default:`Predeterminado`,schema:`Esquema`,emptyObject:`Objeto vacío`,showAdditionalProperties:`Mostrar propiedades adicionales`,childAttributes:`Atributos secundarios`,hideChildAttributes:`Ocultar {name}`,showChildAttributes:`Mostrar {name}`,forName:`para {name}`,showSchemaDetails:`Mostrar detalles del esquema`,oneOf:`Uno de`,anyOf:`Cualquiera de`,allOf:`Todos de`,not:`No`,unknownType:`tipo desconocido`},download:{openapi:`Descargar documento OpenAPI`,asyncapi:`Descargar documento AsyncAPI`},models:{label:`Modelos`},actions:{copyLink:`Copiar enlace`,copyLinkTo:`Copiar enlace a {name}`,copyToClipboard:`Copiar enlace al portapapeles`,copyEndpointUrl:`Copiar URL del endpoint`,showMore:`Mostrar más`},agent:{askAi:`Preguntar a IA`,askAiAgent:`Preguntar al agente de IA`,close:`Cerrar cliente`},mcp:{generate:`Generar MCP`,connect:`Conectar MCP`},developerTools:{title:`Herramientas de desarrollo`,configure:`Configurar`,share:`Compartir`,deploy:`Desplegar`,scalarConfiguration:`Configuración de Scalar`,theme:`Tema`,layout:`Diseño`,layoutOptions:`Opciones de diseño`,intro:`Las herramientas de desarrollo te permiten personalizar la apariencia y el comportamiento de tu documentación. También puedes compartir tu documentación con Scalar Registry.`,disableToolbarBefore:`Para desactivar la barra de herramientas, configura`,disableToolbarAfter:`en tu configuración.`,localhostOnly:`Las herramientas de desarrollo solo aparecerán al ejecutarse en localhost.`,layoutModern:`Moderno`,layoutClassic:`Clásico`,showSidebar:`Mostrar barra lateral`,defaultOpenFirstTag:`Abrir la primera etiqueta por defecto`,defaultOpenAllTags:`Abrir todas las etiquetas por defecto`,expandAll:`Expandir todo {label}`,expandAllResponses:`Expandir todas las respuestas`,hideClientButton:`Ocultar botón del cliente`,hideDarkModeToggle:`Ocultar selector de modo oscuro`,hideModels:`Ocultar {label}`,hideSearch:`Ocultar búsqueda`,showOperationId:`Mostrar ID de operación`,hideTestRequestButton:`Ocultar botón de solicitud de prueba`,scalarDocs:`Scalar Docs`,deployDescription:`Despliega tu documentación en Scalar, la plataforma moderna de documentación para tu API y mucho más.`,shareTitle:`Comparte tu API Reference`,shareDescription:`Sube tu documento OpenAPI para compartir tu API Reference con otras personas. Tan fácil como pulsar un botón.`,uploadDocument:`Subir documento`,temporaryLinkExpiration:`Tu documento se eliminará automáticamente después de 7 días.`,deployOnScalar:`Desplegar en Scalar`,deployFree:`Despliega tu documentación gratis.`,additionalFeaturesMightRequire:`Las funciones adicionales pueden requerir`,generate:`Generar`,passwordProtection:`Protección con contraseña`,customDomains:`Dominios personalizados`,freeFormContent:`Contenido libre`,cdnInfrastructure:`Infraestructura CDN`,pullFromGitHub:`Importar desde GitHub`,markdownMdx:`Markdown/MDX`,spectralLinting:`Linting de Spectral`,jsonSchemaHosting:`Alojamiento de JSON Schema`,askAi:`Preguntar a IA`,mcpServers:`Servidores MCP`,unableToExportDocument:`No se pudo exportar el documento activo`,unknownError:`Se produjo un error desconocido`},gettingStarted:{swaggerEditor:`Swagger Editor`,description:`Bienvenido a Scalar API References + Swagger Editor, una herramienta gratuita y de código abierto que toma tu archivo Swagger/OAS y genera API References elegantes.`,showExample:`Mostrar ejemplo`,uploadFile:`Subir archivo`,integrations:`INTEGRACIONES`,theming:`TEMAS`,features:`Funciones`,customize:`Personalizar`,customizeDescription:`Usa tu tipografía y paletas de colores, o nuestros temas.`,testing:`Pruebas`,testingDescription:`Un REST API Client profundamente integrado (también gratuito y de código abierto)`,search:`Búsqueda`,searchDescription:`Búsqueda completamente integrada (con fuse.js)`,hosting:`Hosting`,hostingDescription:`Hosting gratuito en un subdominio de https://apidocumentation.com`,openApiSwagger:`OpenAPI y Swagger`,openApiSwaggerDescription:`Compatibilidad con OpenAPI 3.1, OpenAPI 3.0 y Swagger 2.0`,codeSamples:`Ejemplos de código`,codeSamplesDescription:`Ejemplos de código para mostrar tu API en los lenguajes más populares`},footer:{poweredByScalar:`Desarrollado por Scalar`},authentication:{title:`Autenticación`,accepts:`Acepta`,allOf:`todo lo siguiente:`,authentication:`autenticación`,optional:`Autenticación opcional`,oneOf:`uno de:`,required:`Autenticación requerida`,requires:`Requiere`}},fr:{common:{additionalProperties:`propriétés supplémentaires`,const:`constante`,deprecated:`obsolète`,description:`Description`,discriminator:`Discriminateur`,enum:`enum`,format:`Format`,greaterThan:`supérieur à`,httpMethod:`Méthode HTTP`,keys:`clés`,lessThan:`inférieur à`,max:`max.`,min:`min.`,maxLength:`longueur max.`,minLength:`longueur min.`,multipleOf:`multiple de`,nullable:`nullable`,path:`Chemin`,propertyNames:`noms des propriétés`,pattern:`Motif`,readOnly:`lecture seule`,required:`obligatoire`,hideValues:`Masquer les valeurs`,showAllValues:`Afficher toutes les valeurs`,type:`Type`,unique:`unique`,values:`valeurs`,writeOnly:`écriture seule`},search:{label:`Rechercher`,inputLabel:`Saisissez votre recherche`,open:`Ouvrir la recherche`,placeholder:`Rechercher...`,clear:`Effacer la recherche`,keyboardShortcut:`Raccourci clavier :`,command:`Commande`,control:`Contrôle`,results:`Résultats de recherche de la référence`,navigate:`Naviguer`,select:`Sélectionner`,instructions:`Appuyez sur flèche haut ou bas pour naviguer, Entrée pour sélectionner, saisissez du texte pour filtrer les résultats`,entryHeading:`Titre`,entryOperation:`Opération`,entryTag:`Balise`,entryTagGroup:`Groupe de balises`,entryWebhook:`Webhook`},navigation:{introduction:`Introduction`,closeGroup:`Fermer le groupe`,closeMenu:`Fermer le menu`,openGroup:`Ouvrir le groupe`,openMenu:`Ouvrir le menu`,operations:`Opérations`,endpoints:`Endpoints de {name}`,showAllEndpoints:`Afficher tous les endpoints de {name}`,sidebarFor:`Barre latérale pour {name}`,mainContent:`Documentation de l’API pour {name}`,collapsed:`Réduit`,webhooks:`Webhooks`},server:{label:`Serveur`,select:`Sélectionner un serveur`},info:{termsOfService:`Conditions d’utilisation`},asyncapi:{servers:`Serveurs`,protocols:`Protocoles`},clientLibraries:{heading:`Bibliothèques clientes`,more:`Plus`,selectAll:`Sélectionner parmi tous les clients`},operation:{body:`Corps`,cookies:`Cookies`,headers:`En-têtes`,pathParameters:`Paramètres de chemin`,queryParameters:`Paramètres de requête`,requestBody:`Corps de la requête`,responses:`Réponses`,testRequest:`Tester la requête`,webhook:`Webhook`,selectedContentType:`Type de contenu sélectionné`,hideHeaders:`Masquer les en-têtes`,showHeaders:`Afficher les en-têtes`,callbacks:`Callbacks`},response:{exampleResponses:`Exemples de réponses`,noBody:`Aucun corps`,showSchema:`Afficher le schéma`,status:`Statut`},schema:{example:`Exemple`,examples:`Exemples`,default:`Par défaut`,schema:`Schéma`,emptyObject:`Objet vide`,showAdditionalProperties:`Afficher les propriétés supplémentaires`,childAttributes:`Attributs enfants`,hideChildAttributes:`Masquer {name}`,showChildAttributes:`Afficher {name}`,forName:`pour {name}`,showSchemaDetails:`Afficher les détails du schéma`,oneOf:`Un parmi`,anyOf:`N’importe lequel parmi`,allOf:`Tous parmi`,not:`Non`,unknownType:`type inconnu`},download:{openapi:`Télécharger le document OpenAPI`,asyncapi:`Télécharger le document AsyncAPI`},models:{label:`Modèles`},actions:{copyLink:`Copier le lien`,copyLinkTo:`Copier le lien vers {name}`,copyToClipboard:`Copier le lien dans le presse-papiers`,copyEndpointUrl:`Copier l’URL de l’endpoint`,showMore:`Afficher plus`},agent:{askAi:`Demander à l’IA`,askAiAgent:`Demander à l’agent IA`,close:`Fermer le client`},mcp:{generate:`Générer MCP`,connect:`Connecter MCP`},developerTools:{title:`Outils de développement`,configure:`Configurer`,share:`Partager`,deploy:`Déployer`,scalarConfiguration:`Configuration Scalar`,theme:`Thème`,layout:`Mise en page`,layoutOptions:`Options de mise en page`,intro:`Les outils de développement vous permettent de personnaliser l’apparence et le comportement de votre documentation. Vous pouvez aussi partager votre documentation avec Scalar Registry.`,disableToolbarBefore:`Pour désactiver la barre d’outils, définissez`,disableToolbarAfter:`dans votre configuration.`,localhostOnly:`Les outils de développement apparaissent uniquement lors d’une exécution sur localhost.`,layoutModern:`Moderne`,layoutClassic:`Classique`,showSidebar:`Afficher la barre latérale`,defaultOpenFirstTag:`Ouvrir le premier tag par défaut`,defaultOpenAllTags:`Ouvrir tous les tags par défaut`,expandAll:`Tout développer pour {label}`,expandAllResponses:`Développer toutes les réponses`,hideClientButton:`Masquer le bouton client`,hideDarkModeToggle:`Masquer le sélecteur de mode sombre`,hideModels:`Masquer {label}`,hideSearch:`Masquer la recherche`,showOperationId:`Afficher l’ID d’opération`,hideTestRequestButton:`Masquer le bouton de requête de test`,scalarDocs:`Scalar Docs`,deployDescription:`Déployez votre documentation sur Scalar, la plateforme moderne de documentation pour votre API et bien plus encore.`,shareTitle:`Partager votre API Reference`,shareDescription:`Téléversez votre document OpenAPI pour partager votre API Reference avec d’autres personnes. Aussi simple qu’un clic.`,uploadDocument:`Téléverser le document`,temporaryLinkExpiration:`Votre document sera automatiquement supprimé après 7 jours.`,deployOnScalar:`Déployer sur Scalar`,deployFree:`Déployez votre documentation gratuitement.`,additionalFeaturesMightRequire:`Les fonctionnalités supplémentaires peuvent nécessiter`,generate:`Générer`,passwordProtection:`Protection par mot de passe`,customDomains:`Domaines personnalisés`,freeFormContent:`Contenu libre`,cdnInfrastructure:`Infrastructure CDN`,pullFromGitHub:`Import depuis GitHub`,markdownMdx:`Markdown/MDX`,spectralLinting:`Linting Spectral`,jsonSchemaHosting:`Hébergement JSON Schema`,askAi:`Demander à l’IA`,mcpServers:`Serveurs MCP`,unableToExportDocument:`Impossible d’exporter le document actif`,unknownError:`Une erreur inconnue est survenue`},gettingStarted:{swaggerEditor:`Swagger Editor`,description:`Bienvenue dans Scalar API References + Swagger Editor, un outil gratuit et open source qui transforme votre fichier Swagger/OAS en belles API References.`,showExample:`Afficher l’exemple`,uploadFile:`Téléverser un fichier`,integrations:`INTÉGRATIONS`,theming:`THÈMES`,features:`Fonctionnalités`,customize:`Personnaliser`,customizeDescription:`Utilisez votre typographie et vos palettes de couleurs, ou nos thèmes !`,testing:`Tests`,testingDescription:`Un REST API Client profondément intégré (également gratuit et open source)`,search:`Recherche`,searchDescription:`Recherche entièrement intégrée (avec fuse.js)`,hosting:`Hébergement`,hostingDescription:`Hébergement gratuit sur un sous-domaine de https://apidocumentation.com`,openApiSwagger:`OpenAPI et Swagger`,openApiSwaggerDescription:`Prise en charge d’OpenAPI 3.1, OpenAPI 3.0 et Swagger 2.0`,codeSamples:`Exemples de code`,codeSamplesDescription:`Des exemples de code pour présenter votre API dans les langages les plus populaires`},footer:{poweredByScalar:`Propulsé par Scalar`},authentication:{title:`Authentification`,accepts:`Accepte`,allOf:`tous les éléments :`,authentication:`authentification`,optional:`Authentification optionnelle`,oneOf:`l’un des éléments :`,required:`Authentification requise`,requires:`Requiert`}},de:{common:{additionalProperties:`zusätzliche Eigenschaften`,const:`Konstante`,deprecated:`veraltet`,description:`Beschreibung`,discriminator:`Diskriminator`,enum:`enum`,format:`Format`,greaterThan:`größer als`,httpMethod:`HTTP-Methode`,keys:`Schlüssel`,lessThan:`kleiner als`,max:`max.`,min:`min.`,maxLength:`max. Länge`,minLength:`min. Länge`,multipleOf:`Vielfaches von`,nullable:`nullable`,path:`Pfad`,propertyNames:`Eigenschaftsnamen`,pattern:`Muster`,readOnly:`nur lesbar`,required:`erforderlich`,hideValues:`Werte ausblenden`,showAllValues:`Alle Werte anzeigen`,type:`Typ`,unique:`eindeutig`,values:`Werte`,writeOnly:`nur schreibbar`},search:{label:`Suchen`,inputLabel:`Suchbegriff eingeben`,open:`Suche öffnen`,placeholder:`Suchen...`,clear:`Suche löschen`,keyboardShortcut:`Tastenkürzel:`,command:`Befehl`,control:`Steuerung`,results:`Suchergebnisse der Referenz`,navigate:`Navigieren`,select:`Auswählen`,instructions:`Drücken Sie Pfeil nach oben oder unten zum Navigieren, Enter zum Auswählen und tippen Sie zum Filtern der Ergebnisse`,entryHeading:`Überschrift`,entryOperation:`Operation`,entryTag:`Tag`,entryTagGroup:`Tag-Gruppe`,entryWebhook:`Webhook`},navigation:{introduction:`Einführung`,closeGroup:`Gruppe schließen`,closeMenu:`Menü schließen`,openGroup:`Gruppe öffnen`,openMenu:`Menü öffnen`,operations:`Operationen`,endpoints:`{name}-Endpunkte`,showAllEndpoints:`Alle {name}-Endpunkte anzeigen`,sidebarFor:`Seitenleiste für {name}`,mainContent:`API-Dokumentation für {name}`,collapsed:`Eingeklappt`,webhooks:`Webhooks`},server:{label:`Server`,select:`Server auswählen`},info:{termsOfService:`Nutzungsbedingungen`},asyncapi:{servers:`Server`,protocols:`Protokolle`},clientLibraries:{heading:`Client-Bibliotheken`,more:`Mehr`,selectAll:`Aus allen Clients auswählen`},operation:{body:`Body`,cookies:`Cookies`,headers:`Header`,pathParameters:`Pfadparameter`,queryParameters:`Query-Parameter`,requestBody:`Request Body`,responses:`Antworten`,testRequest:`Request testen`,webhook:`Webhook`,selectedContentType:`Ausgewählter Inhaltstyp`,hideHeaders:`Header ausblenden`,showHeaders:`Header anzeigen`,callbacks:`Callbacks`},response:{exampleResponses:`Beispielantworten`,noBody:`Kein Body`,showSchema:`Schema anzeigen`,status:`Status`},schema:{example:`Beispiel`,examples:`Beispiele`,default:`Standard`,schema:`Schema`,emptyObject:`Leeres Objekt`,showAdditionalProperties:`Zusätzliche Eigenschaften anzeigen`,childAttributes:`Untergeordnete Attribute`,hideChildAttributes:`{name} ausblenden`,showChildAttributes:`{name} anzeigen`,forName:`für {name}`,showSchemaDetails:`Schema-Details anzeigen`,oneOf:`Eines von`,anyOf:`Beliebiges von`,allOf:`Alle von`,not:`Nicht`,unknownType:`unbekannter Typ`},download:{openapi:`OpenAPI-Dokument herunterladen`,asyncapi:`AsyncAPI-Dokument herunterladen`},models:{label:`Modelle`},actions:{copyLink:`Link kopieren`,copyLinkTo:`Link zu {name} kopieren`,copyToClipboard:`Link in die Zwischenablage kopieren`,copyEndpointUrl:`Endpoint-URL kopieren`,showMore:`Mehr anzeigen`},agent:{askAi:`KI fragen`,askAiAgent:`KI-Agent fragen`,close:`Client schließen`},mcp:{generate:`MCP generieren`,connect:`MCP verbinden`},developerTools:{title:`Entwicklertools`,configure:`Konfigurieren`,share:`Teilen`,deploy:`Bereitstellen`,scalarConfiguration:`Scalar-Konfiguration`,theme:`Theme`,layout:`Layout`,layoutOptions:`Layout-Optionen`,intro:`Mit den Entwicklertools kannst du das Aussehen und Verhalten deiner Dokumentation anpassen. Du kannst deine Dokumentation auch über Scalar Registry teilen.`,disableToolbarBefore:`Um die Toolbar zu deaktivieren, setze`,disableToolbarAfter:`in deiner Konfiguration.`,localhostOnly:`Die Entwicklertools werden nur angezeigt, wenn sie auf localhost ausgeführt werden.`,layoutModern:`Modern`,layoutClassic:`Klassisch`,showSidebar:`Seitenleiste anzeigen`,defaultOpenFirstTag:`Ersten Tag standardmäßig öffnen`,defaultOpenAllTags:`Alle Tags standardmäßig öffnen`,expandAll:`Alle {label} erweitern`,expandAllResponses:`Alle Antworten erweitern`,hideClientButton:`Client-Schaltfläche ausblenden`,hideDarkModeToggle:`Dark-Mode-Umschalter ausblenden`,hideModels:`{label} ausblenden`,hideSearch:`Suche ausblenden`,showOperationId:`Operation-ID anzeigen`,hideTestRequestButton:`Test-Request-Schaltfläche ausblenden`,scalarDocs:`Scalar Docs`,deployDescription:`Veröffentliche deine Dokumentation auf Scalar, der modernen Dokumentationsplattform für deine API und alles Weitere.`,shareTitle:`API Reference teilen`,shareDescription:`Lade dein OpenAPI-Dokument hoch, um deine API Reference mit anderen zu teilen. So einfach wie ein Klick.`,uploadDocument:`Dokument hochladen`,temporaryLinkExpiration:`Dein Dokument wird nach 7 Tagen automatisch gelöscht.`,deployOnScalar:`Auf Scalar veröffentlichen`,deployFree:`Veröffentliche deine Dokumentation kostenlos.`,additionalFeaturesMightRequire:`Zusätzliche Funktionen erfordern möglicherweise`,generate:`Generieren`,passwordProtection:`Passwortschutz`,customDomains:`Eigene Domains`,freeFormContent:`Freiform-Inhalte`,cdnInfrastructure:`CDN-Infrastruktur`,pullFromGitHub:`Von GitHub laden`,markdownMdx:`Markdown/MDX`,spectralLinting:`Spectral-Linting`,jsonSchemaHosting:`JSON-Schema-Hosting`,askAi:`KI fragen`,mcpServers:`MCP-Server`,unableToExportDocument:`Aktives Dokument konnte nicht exportiert werden`,unknownError:`Ein unbekannter Fehler ist aufgetreten`},gettingStarted:{swaggerEditor:`Swagger Editor`,description:`Willkommen bei Scalar API References + Swagger Editor, einem kostenlosen Open-Source-Tool, das deine Swagger/OAS-Datei in schöne API References verwandelt.`,showExample:`Beispiel anzeigen`,uploadFile:`Datei hochladen`,integrations:`INTEGRATIONEN`,theming:`THEMES`,features:`Funktionen`,customize:`Anpassen`,customizeDescription:`Nutze deine Typografie und Farbpaletten oder unsere Themes!`,testing:`Testen`,testingDescription:`Ein tief integrierter REST API Client (ebenfalls kostenlos und Open Source)`,search:`Suche`,searchDescription:`Vollständig integrierte Suche (mit fuse.js)`,hosting:`Hosting`,hostingDescription:`Kostenloses Subdomain-Hosting auf https://apidocumentation.com`,openApiSwagger:`OpenAPI und Swagger`,openApiSwaggerDescription:`Unterstützung für OpenAPI 3.1, OpenAPI 3.0 und Swagger 2.0`,codeSamples:`Codebeispiele`,codeSamplesDescription:`Codebeispiele, um deine API in den beliebtesten Sprachen zu präsentieren`},footer:{poweredByScalar:`Bereitgestellt von Scalar`},authentication:{title:`Authentifizierung`,accepts:`Akzeptiert`,allOf:`alle von:`,authentication:`Authentifizierung`,optional:`Authentifizierung optional`,oneOf:`eines von:`,required:`Authentifizierung erforderlich`,requires:`Erfordert`}},"zh-CN":{common:{additionalProperties:`附加属性`,const:`常量`,deprecated:`已弃用`,description:`描述`,discriminator:`鉴别器`,enum:`枚举`,format:`格式`,greaterThan:`大于`,httpMethod:`HTTP 方法`,keys:`键`,lessThan:`小于`,max:`最大值`,min:`最小值`,maxLength:`最大长度`,minLength:`最小长度`,multipleOf:`倍数`,nullable:`可为 null`,path:`路径`,propertyNames:`属性名称`,pattern:`模式`,readOnly:`只读`,required:`必填`,hideValues:`隐藏值`,showAllValues:`显示所有值`,type:`类型`,unique:`唯一`,values:`值`,writeOnly:`只写`},search:{label:`搜索`,inputLabel:`输入搜索查询`,open:`打开搜索`,placeholder:`搜索...`,clear:`清除搜索`,keyboardShortcut:`键盘快捷键:`,command:`Command 键`,control:`Control 键`,results:`参考文档搜索结果`,navigate:`导航`,select:`选择`,instructions:`按上/下箭头导航,按 Enter 选择,输入内容筛选结果`,entryHeading:`标题`,entryOperation:`操作`,entryTag:`标签`,entryTagGroup:`标签组`,entryWebhook:`Webhook`},navigation:{introduction:`简介`,closeGroup:`关闭分组`,closeMenu:`关闭菜单`,openGroup:`打开分组`,openMenu:`打开菜单`,operations:`操作`,endpoints:`{name} 端点`,showAllEndpoints:`显示 {name} 的所有端点`,sidebarFor:`{name} 的侧边栏`,mainContent:`{name} 的 API 文档`,collapsed:`已折叠`,webhooks:`Webhooks`},server:{label:`服务器`,select:`选择服务器`},info:{termsOfService:`服务条款`},asyncapi:{servers:`服务器`,protocols:`协议`},clientLibraries:{heading:`客户端库`,more:`更多`,selectAll:`从所有客户端中选择`},operation:{body:`请求体`,cookies:`Cookie`,headers:`请求头`,pathParameters:`路径参数`,queryParameters:`查询参数`,requestBody:`请求体`,responses:`响应`,testRequest:`测试请求`,webhook:`Webhook`,selectedContentType:`已选内容类型`,hideHeaders:`隐藏标头`,showHeaders:`显示标头`,callbacks:`回调`},response:{exampleResponses:`响应示例`,noBody:`无内容`,showSchema:`显示 Schema`,status:`状态`},schema:{example:`示例`,examples:`示例`,default:`默认值`,schema:`架构`,emptyObject:`空对象`,showAdditionalProperties:`显示附加属性`,childAttributes:`子属性`,hideChildAttributes:`隐藏 {name}`,showChildAttributes:`显示 {name}`,forName:`对于 {name}`,showSchemaDetails:`显示架构详情`,oneOf:`其中一个`,anyOf:`任意一个`,allOf:`全部`,not:`非`,unknownType:`未知类型`},download:{openapi:`下载 OpenAPI 文档`,asyncapi:`下载 AsyncAPI 文档`},models:{label:`模型`},actions:{copyLink:`复制链接`,copyLinkTo:`复制指向 {name} 的链接`,copyToClipboard:`复制链接到剪贴板`,copyEndpointUrl:`复制端点 URL`,showMore:`显示更多`},agent:{askAi:`询问 AI`,askAiAgent:`询问 AI 助手`,close:`关闭客户端`},mcp:{generate:`生成 MCP`,connect:`连接 MCP`},developerTools:{title:`开发者工具`,configure:`配置`,share:`分享`,deploy:`部署`,scalarConfiguration:`Scalar 配置`,theme:`主题`,layout:`布局`,layoutOptions:`布局选项`,intro:`开发者工具可用于自定义文档的外观和行为。你也可以通过 Scalar Registry 分享文档。`,disableToolbarBefore:`要禁用工具栏,请在配置中设置`,disableToolbarAfter:`。`,localhostOnly:`开发者工具只会在 localhost 上运行时显示。`,layoutModern:`现代`,layoutClassic:`经典`,showSidebar:`显示侧边栏`,defaultOpenFirstTag:`默认打开第一个标签`,defaultOpenAllTags:`默认打开所有标签`,expandAll:`展开所有 {label}`,expandAllResponses:`展开所有响应`,hideClientButton:`隐藏客户端按钮`,hideDarkModeToggle:`隐藏深色模式开关`,hideModels:`隐藏 {label}`,hideSearch:`隐藏搜索`,showOperationId:`显示操作 ID`,hideTestRequestButton:`隐藏测试请求按钮`,scalarDocs:`Scalar Docs`,deployDescription:`将你的文档部署到 Scalar,这是适用于 API 等内容的现代文档平台。`,shareTitle:`分享你的 API Reference`,shareDescription:`上传 OpenAPI 文档,与其他人分享你的 API Reference。只需点击按钮即可。`,uploadDocument:`上传文档`,temporaryLinkExpiration:`你的文档将在 7 天后自动删除。`,deployOnScalar:`部署到 Scalar`,deployFree:`免费部署你的文档。`,additionalFeaturesMightRequire:`其他功能可能需要`,generate:`生成`,passwordProtection:`密码保护`,customDomains:`自定义域名`,freeFormContent:`自由内容`,cdnInfrastructure:`CDN 基础设施`,pullFromGitHub:`从 GitHub 拉取`,markdownMdx:`Markdown/MDX`,spectralLinting:`Spectral Linting`,jsonSchemaHosting:`JSON Schema 托管`,askAi:`询问 AI`,mcpServers:`MCP 服务器`,unableToExportDocument:`无法导出当前文档`,unknownError:`发生未知错误`},gettingStarted:{swaggerEditor:`Swagger Editor`,description:`欢迎使用 Scalar API References + Swagger Editor,这是一款免费开源工具,可将你的 Swagger/OAS 文件生成精美的 API References。`,showExample:`显示示例`,uploadFile:`上传文件`,integrations:`集成`,theming:`主题`,features:`功能`,customize:`自定义`,customizeDescription:`使用你的排版和调色板,或使用我们的主题!`,testing:`测试`,testingDescription:`深度集成的 REST API Client(同样免费且开源)`,search:`搜索`,searchDescription:`完整集成的搜索(使用 fuse.js)`,hosting:`托管`,hostingDescription:`在 https://apidocumentation.com 上免费托管子域名`,openApiSwagger:`OpenAPI 和 Swagger`,openApiSwaggerDescription:`支持 OpenAPI 3.1、OpenAPI 3.0 和 Swagger 2.0`,codeSamples:`代码示例`,codeSamplesDescription:`用最流行语言展示你的 API 的代码示例`},footer:{poweredByScalar:`由 Scalar 提供支持`},authentication:{title:`身份验证`,accepts:`接受`,allOf:`全部:`,authentication:`身份认证`,optional:`身份认证可选`,oneOf:`其中之一:`,required:`需要身份认证`,requires:`需要`}},ar:{common:{additionalProperties:`خصائص إضافية`,const:`ثابت`,deprecated:`مهمل`,description:`الوصف`,discriminator:`المميّز`,enum:`تعداد`,format:`التنسيق`,greaterThan:`أكبر من`,httpMethod:`طريقة HTTP`,keys:`المفاتيح`,lessThan:`أقل من`,max:`الحد الأقصى`,min:`الحد الأدنى`,maxLength:`أقصى طول`,minLength:`أدنى طول`,multipleOf:`مضاعف لـ`,nullable:`يقبل null`,path:`المسار`,propertyNames:`أسماء الخصائص`,pattern:`النمط`,readOnly:`قراءة فقط`,required:`مطلوب`,hideValues:`إخفاء القيم`,showAllValues:`عرض كل القيم`,type:`النوع`,unique:`فريد`,values:`القيم`,writeOnly:`كتابة فقط`},search:{label:`بحث`,inputLabel:`أدخل استعلام البحث`,open:`فتح البحث`,placeholder:`بحث...`,clear:`مسح البحث`,keyboardShortcut:`اختصار لوحة المفاتيح:`,command:`مفتاح الأوامر`,control:`مفتاح التحكم`,results:`نتائج البحث في المرجع`,navigate:`تنقّل`,select:`اختيار`,instructions:`اضغط السهم للأعلى أو للأسفل للتنقل، Enter للاختيار، واكتب لتصفية النتائج`,entryHeading:`عنوان`,entryOperation:`عملية`,entryTag:`وسم`,entryTagGroup:`مجموعة وسوم`,entryWebhook:`خطاف ويب`},navigation:{introduction:`المقدمة`,closeGroup:`إغلاق المجموعة`,closeMenu:`إغلاق القائمة`,openGroup:`فتح المجموعة`,openMenu:`فتح القائمة`,operations:`العمليات`,endpoints:`نقاط نهاية {name}`,showAllEndpoints:`إظهار كل نقاط نهاية {name}`,sidebarFor:`الشريط الجانبي لـ {name}`,mainContent:`وثائق واجهة برمجة التطبيقات لـ {name}`,collapsed:`مطوي`,webhooks:`خطافات الويب`},server:{label:`الخادم`,select:`اختر خادماً`},info:{termsOfService:`شروط الخدمة`},asyncapi:{servers:`الخوادم`,protocols:`البروتوكولات`},clientLibraries:{heading:`مكتبات العملاء`,more:`المزيد`,selectAll:`اختر من جميع العملاء`},operation:{body:`الجسم`,cookies:`ملفات تعريف الارتباط`,headers:`الرؤوس`,pathParameters:`معاملات المسار`,queryParameters:`معاملات الاستعلام`,requestBody:`جسم الطلب`,responses:`الاستجابات`,testRequest:`اختبار الطلب`,webhook:`خطاف ويب`,selectedContentType:`نوع المحتوى المحدد`,hideHeaders:`إخفاء الرؤوس`,showHeaders:`إظهار الرؤوس`,callbacks:`عمليات الاستدعاء`},response:{exampleResponses:`أمثلة الاستجابات`,noBody:`لا يوجد جسم`,showSchema:`عرض المخطط`,status:`الحالة`},schema:{example:`مثال`,examples:`أمثلة`,default:`الافتراضي`,schema:`المخطط`,emptyObject:`كائن فارغ`,showAdditionalProperties:`إظهار الخصائص الإضافية`,childAttributes:`السمات الفرعية`,hideChildAttributes:`إخفاء {name}`,showChildAttributes:`إظهار {name}`,forName:`لـ {name}`,showSchemaDetails:`إظهار تفاصيل المخطط`,oneOf:`واحد من`,anyOf:`أي من`,allOf:`كل من`,not:`ليس`,unknownType:`نوع غير معروف`},download:{openapi:`تنزيل مستند OpenAPI`,asyncapi:`تنزيل مستند AsyncAPI`},models:{label:`النماذج`},actions:{copyLink:`نسخ الرابط`,copyLinkTo:`نسخ الرابط إلى {name}`,copyToClipboard:`نسخ الرابط إلى الحافظة`,copyEndpointUrl:`نسخ رابط endpoint`,showMore:`عرض المزيد`},agent:{askAi:`اسأل الذكاء الاصطناعي`,askAiAgent:`اسأل وكيل الذكاء الاصطناعي`,close:`إغلاق العميل`},mcp:{generate:`إنشاء MCP`,connect:`ربط MCP`},developerTools:{title:`أدوات المطورين`,configure:`الإعداد`,share:`مشاركة`,deploy:`نشر`,scalarConfiguration:`إعدادات Scalar`,theme:`السمة`,layout:`التخطيط`,layoutOptions:`خيارات التخطيط`,intro:`تتيح لك أدوات المطورين تخصيص مظهر الوثائق وسلوكها. يمكنك أيضًا مشاركة وثائقك باستخدام Scalar Registry.`,disableToolbarBefore:`لتعطيل شريط الأدوات، عيّن`,disableToolbarAfter:`في الإعدادات.`,localhostOnly:`لن تظهر أدوات المطورين إلا عند التشغيل على localhost.`,layoutModern:`حديث`,layoutClassic:`كلاسيكي`,showSidebar:`إظهار الشريط الجانبي`,defaultOpenFirstTag:`فتح أول وسم افتراضيًا`,defaultOpenAllTags:`فتح كل الوسوم افتراضيًا`,expandAll:`توسيع كل {label}`,expandAllResponses:`توسيع كل الاستجابات`,hideClientButton:`إخفاء زر العميل`,hideDarkModeToggle:`إخفاء مفتاح الوضع الداكن`,hideModels:`إخفاء {label}`,hideSearch:`إخفاء البحث`,showOperationId:`إظهار معرّف العملية`,hideTestRequestButton:`إخفاء زر طلب الاختبار`,scalarDocs:`Scalar Docs`,deployDescription:`انشر وثائقك على Scalar، منصة الوثائق الحديثة لواجهة API الخاصة بك وكل شيء آخر.`,shareTitle:`مشاركة API Reference`,shareDescription:`حمّل مستند OpenAPI لمشاركة API Reference مع الآخرين. الأمر بسيط كضغط زر.`,uploadDocument:`تحميل المستند`,temporaryLinkExpiration:`سيتم حذف المستند تلقائيًا بعد 7 أيام.`,deployOnScalar:`النشر على Scalar`,deployFree:`انشر وثائقك مجانًا.`,additionalFeaturesMightRequire:`قد تتطلب الميزات الإضافية`,generate:`إنشاء`,passwordProtection:`الحماية بكلمة مرور`,customDomains:`نطاقات مخصصة`,freeFormContent:`محتوى حر`,cdnInfrastructure:`بنية CDN التحتية`,pullFromGitHub:`السحب من GitHub`,markdownMdx:`Markdown/MDX`,spectralLinting:`فحص Spectral`,jsonSchemaHosting:`استضافة JSON Schema`,askAi:`اسأل الذكاء الاصطناعي`,mcpServers:`خوادم MCP`,unableToExportDocument:`تعذر تصدير المستند النشط`,unknownError:`حدث خطأ غير معروف`},gettingStarted:{swaggerEditor:`Swagger Editor`,description:`مرحبًا بك في Scalar API References + Swagger Editor، أداة مجانية ومفتوحة المصدر تأخذ ملف Swagger/OAS الخاص بك وتنشئ API References جميلة.`,showExample:`إظهار مثال`,uploadFile:`تحميل ملف`,integrations:`التكاملات`,theming:`السمات`,features:`الميزات`,customize:`التخصيص`,customizeDescription:`استخدم الخطوط ولوحات الألوان الخاصة بك، أو استخدم سماتنا!`,testing:`الاختبار`,testingDescription:`REST API Client مدمج بعمق (مجاني ومفتوح المصدر أيضًا)`,search:`البحث`,searchDescription:`بحث مدمج بالكامل (باستخدام fuse.js)`,hosting:`الاستضافة`,hostingDescription:`استضافة مجانية لنطاق فرعي على https://apidocumentation.com`,openApiSwagger:`OpenAPI و Swagger`,openApiSwaggerDescription:`دعم OpenAPI 3.1 و OpenAPI 3.0 و Swagger 2.0`,codeSamples:`أمثلة التعليمات البرمجية`,codeSamplesDescription:`أمثلة تعليمات برمجية لعرض API الخاص بك بأشهر اللغات`},footer:{poweredByScalar:`مدعوم من Scalar`},authentication:{title:`المصادقة`,accepts:`يقبل`,allOf:`كل ما يلي:`,authentication:`المصادقة`,optional:`المصادقة اختيارية`,oneOf:`واحد من:`,required:`المصادقة مطلوبة`,requires:`يتطلب`}}},hm=new Set([`ar`,`fa`,`he`,`ur`]),gm=(e,t)=>{if(!t||!na(t))return{...e};let n={...e};for(let[e,r]of Object.entries(t)){if(r===void 0)continue;let t=n[e];n[e]=na(t)&&na(r)?gm(t,r):r}return n},_m=Symbol(`LOCALIZATION`),vm=e=>{if(!e)return`en`;if(e in mm)return e;let t=e.replace(`_`,`-`).toLowerCase();if(t.startsWith(`zh`))return`zh-CN`;let n=t.split(`-`)[0];return Object.keys(mm).find(e=>e.toLowerCase()===n)??`en`},ym=e=>{if(e?.direction&&e.direction!==`auto`)return e.direction;let t=(e?.locale??`en`).replace(`_`,`-`).split(`-`)[0]?.toLowerCase();return t&&hm.has(t)?`rtl`:`ltr`},bm=e=>{let t=e?.locale??`en`,n=vm(t),r=gm(gm(mm.en,mm[n]),e?.translations);return{locale:t,direction:ym(e),translations:r}},xm=(e,t)=>t.split(`.`).reduce((e,t)=>{if(na(e))return e[t]},e),Sm=(e,t,n)=>{let r=xm(e,t),i=typeof r==`string`?r:t;return n?Object.entries(n).reduce((e,[t,n])=>e.replaceAll(`{${t}}`,String(n)),i):i},Cm=e=>{let t=T(()=>bm(r(e)));return{locale:T(()=>t.value.locale),direction:T(()=>t.value.direction),translations:T(()=>t.value.translations),translate:(e,n)=>Sm(t.value.translations,e,n)}},wm=e=>{let t=Cm(e);return se(_m,t),t},Z=()=>h(_m,Cm(void 0));function Tm(){return new Lt([],{keys:[{name:`title`,weight:.7},{name:`operationId`,weight:.6},{name:`parameters`,weight:.55},{name:`body`,weight:.55},{name:`path`,weight:.5},{name:`tag`,weight:.4},{name:`description`,weight:.3},{name:`method`,weight:.3},{name:`responseExamples`,weight:.25},{name:`parameterDescriptions`,weight:.2},{name:`bodyDescriptions`,weight:.2}],threshold:.3,distance:100,includeScore:!0,includeMatches:!0,ignoreLocation:!0,useExtendedSearch:!0,findAllMatches:!0})}var Em=e=>na(e),Dm=e=>{if(e===void 0)return;let t=G(e),n=na(t)&&`schemaFormat`in t?G(t.schema):t;return Em(n)?n:void 0},Om=e=>Dm(e.payload),km=e=>Dm(e.headers),Am=(e,t)=>{if(!e.components)return;let n=G(e.components,Do).schemas?.[t];return Dm(n)},jm=e=>e.type===`text`&&typeof e.id==`string`&&e.id.endsWith(`/description/introduction`);function Mm(e){switch(e.errorType){case Q.ArrayContains:return`Expected array to contain at least one matching value`;case Q.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case Q.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case Q.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case Q.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case Q.ArrayUniqueItems:return`Expected array elements to be unique`;case Q.Array:return`Expected array`;case Q.AsyncIterator:return`Expected AsyncIterator`;case Q.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case Q.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case Q.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case Q.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case Q.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case Q.BigInt:return`Expected bigint`;case Q.Boolean:return`Expected boolean`;case Q.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case Q.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case Q.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case Q.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case Q.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case Q.Date:return`Expected Date`;case Q.Function:return`Expected function`;case Q.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case Q.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case Q.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case Q.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case Q.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case Q.Integer:return`Expected integer`;case Q.IntersectUnevaluatedProperties:return`Unexpected property`;case Q.Intersect:return`Expected all values to match`;case Q.Iterator:return`Expected Iterator`;case Q.Literal:return`Expected ${typeof e.schema.const==`string`?`'${e.schema.const}'`:e.schema.const}`;case Q.Never:return`Never`;case Q.Not:return`Value should not match`;case Q.Null:return`Expected null`;case Q.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case Q.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case Q.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case Q.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case Q.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case Q.Number:return`Expected number`;case Q.Object:return`Expected object`;case Q.ObjectAdditionalProperties:return`Unexpected property`;case Q.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case Q.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case Q.ObjectRequiredProperty:return`Expected required property`;case Q.Promise:return`Expected Promise`;case Q.RegExp:return`Expected string to match regular expression`;case Q.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case Q.StringFormat:return`Expected string to match '${e.schema.format}' format`;case Q.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case Q.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case Q.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case Q.String:return`Expected string`;case Q.Symbol:return`Expected symbol`;case Q.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case Q.Tuple:return`Expected tuple`;case Q.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case Q.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case Q.Uint8Array:return`Expected Uint8Array`;case Q.Undefined:return`Expected undefined`;case Q.Union:return`Expected union value`;case Q.Void:return`Expected void`;case Q.Kind:return`Expected kind '${e.schema[ti]}'`;default:return`Unknown error type`}}var Nm=Mm;function Pm(){return Nm}var Q;(function(e){e[e.ArrayContains=0]=`ArrayContains`,e[e.ArrayMaxContains=1]=`ArrayMaxContains`,e[e.ArrayMaxItems=2]=`ArrayMaxItems`,e[e.ArrayMinContains=3]=`ArrayMinContains`,e[e.ArrayMinItems=4]=`ArrayMinItems`,e[e.ArrayUniqueItems=5]=`ArrayUniqueItems`,e[e.Array=6]=`Array`,e[e.AsyncIterator=7]=`AsyncIterator`,e[e.BigIntExclusiveMaximum=8]=`BigIntExclusiveMaximum`,e[e.BigIntExclusiveMinimum=9]=`BigIntExclusiveMinimum`,e[e.BigIntMaximum=10]=`BigIntMaximum`,e[e.BigIntMinimum=11]=`BigIntMinimum`,e[e.BigIntMultipleOf=12]=`BigIntMultipleOf`,e[e.BigInt=13]=`BigInt`,e[e.Boolean=14]=`Boolean`,e[e.DateExclusiveMaximumTimestamp=15]=`DateExclusiveMaximumTimestamp`,e[e.DateExclusiveMinimumTimestamp=16]=`DateExclusiveMinimumTimestamp`,e[e.DateMaximumTimestamp=17]=`DateMaximumTimestamp`,e[e.DateMinimumTimestamp=18]=`DateMinimumTimestamp`,e[e.DateMultipleOfTimestamp=19]=`DateMultipleOfTimestamp`,e[e.Date=20]=`Date`,e[e.Function=21]=`Function`,e[e.IntegerExclusiveMaximum=22]=`IntegerExclusiveMaximum`,e[e.IntegerExclusiveMinimum=23]=`IntegerExclusiveMinimum`,e[e.IntegerMaximum=24]=`IntegerMaximum`,e[e.IntegerMinimum=25]=`IntegerMinimum`,e[e.IntegerMultipleOf=26]=`IntegerMultipleOf`,e[e.Integer=27]=`Integer`,e[e.IntersectUnevaluatedProperties=28]=`IntersectUnevaluatedProperties`,e[e.Intersect=29]=`Intersect`,e[e.Iterator=30]=`Iterator`,e[e.Kind=31]=`Kind`,e[e.Literal=32]=`Literal`,e[e.Never=33]=`Never`,e[e.Not=34]=`Not`,e[e.Null=35]=`Null`,e[e.NumberExclusiveMaximum=36]=`NumberExclusiveMaximum`,e[e.NumberExclusiveMinimum=37]=`NumberExclusiveMinimum`,e[e.NumberMaximum=38]=`NumberMaximum`,e[e.NumberMinimum=39]=`NumberMinimum`,e[e.NumberMultipleOf=40]=`NumberMultipleOf`,e[e.Number=41]=`Number`,e[e.ObjectAdditionalProperties=42]=`ObjectAdditionalProperties`,e[e.ObjectMaxProperties=43]=`ObjectMaxProperties`,e[e.ObjectMinProperties=44]=`ObjectMinProperties`,e[e.ObjectRequiredProperty=45]=`ObjectRequiredProperty`,e[e.Object=46]=`Object`,e[e.Promise=47]=`Promise`,e[e.RegExp=48]=`RegExp`,e[e.StringFormatUnknown=49]=`StringFormatUnknown`,e[e.StringFormat=50]=`StringFormat`,e[e.StringMaxLength=51]=`StringMaxLength`,e[e.StringMinLength=52]=`StringMinLength`,e[e.StringPattern=53]=`StringPattern`,e[e.String=54]=`String`,e[e.Symbol=55]=`Symbol`,e[e.TupleLength=56]=`TupleLength`,e[e.Tuple=57]=`Tuple`,e[e.Uint8ArrayMaxByteLength=58]=`Uint8ArrayMaxByteLength`,e[e.Uint8ArrayMinByteLength=59]=`Uint8ArrayMinByteLength`,e[e.Uint8Array=60]=`Uint8Array`,e[e.Undefined=61]=`Undefined`,e[e.Union=62]=`Union`,e[e.Void=63]=`Void`})(Q||={});var Fm=class extends dr{constructor(e){super(`Unknown type`),this.schema=e}};function Im(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function Lm(e){return e!==void 0}var Rm=class{constructor(e){this.iterator=e}[Symbol.iterator](){return this.iterator}First(){let e=this.iterator.next();return e.done?void 0:e.value}};function $(e,t,n,r,i=[]){return{type:e,schema:t,path:n,value:r,message:Pm()({errorType:e,path:n,schema:t,value:r,errors:i}),errors:i}}function*zm(e,t,n,r){}function*Bm(e,t,n,r){}function*Vm(e,t,n,r){if(!Ni(r))return yield $(Q.Array,e,n,r);Lm(e.minItems)&&!(r.length>=e.minItems)&&(yield $(Q.ArrayMinItems,e,n,r)),Lm(e.maxItems)&&!(r.length<=e.maxItems)&&(yield $(Q.ArrayMaxItems,e,n,r));for(let i=0;i<r.length;i++)yield*yh(e.items,t,`${n}/${i}`,r[i]);if(e.uniqueItems===!0&&!(function(){let e=new Set;for(let t of r){let n=Fr(t);if(e.has(n))return!1;e.add(n)}return!0})()&&(yield $(Q.ArrayUniqueItems,e,n,r)),!(Lm(e.contains)||Lm(e.minContains)||Lm(e.maxContains)))return;let i=Lm(e.contains)?e.contains:Fn(),a=r.reduce((e,r,a)=>yh(i,t,`${n}${a}`,r).next().done===!0?e+1:e,0);a===0&&(yield $(Q.ArrayContains,e,n,r)),pa(e.minContains)&&a<e.minContains&&(yield $(Q.ArrayMinContains,e,n,r)),pa(e.maxContains)&&a>e.maxContains&&(yield $(Q.ArrayMaxContains,e,n,r))}function*Hm(e,t,n,r){$a(r)||(yield $(Q.AsyncIterator,e,n,r))}function*Um(e,t,n,r){if(!Sa(r))return yield $(Q.BigInt,e,n,r);Lm(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)&&(yield $(Q.BigIntExclusiveMaximum,e,n,r)),Lm(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)&&(yield $(Q.BigIntExclusiveMinimum,e,n,r)),Lm(e.maximum)&&!(r<=e.maximum)&&(yield $(Q.BigIntMaximum,e,n,r)),Lm(e.minimum)&&!(r>=e.minimum)&&(yield $(Q.BigIntMinimum,e,n,r)),Lm(e.multipleOf)&&r%e.multipleOf!==BigInt(0)&&(yield $(Q.BigIntMultipleOf,e,n,r))}function*Wm(e,t,n,r){Va(r)||(yield $(Q.Boolean,e,n,r))}function*Gm(e,t,n,r){yield*yh(e.returns,t,n,r.prototype)}function*Km(e,t,n,r){if(!Zi(r))return yield $(Q.Date,e,n,r);Lm(e.exclusiveMaximumTimestamp)&&!(r.getTime()<e.exclusiveMaximumTimestamp)&&(yield $(Q.DateExclusiveMaximumTimestamp,e,n,r)),Lm(e.exclusiveMinimumTimestamp)&&!(r.getTime()>e.exclusiveMinimumTimestamp)&&(yield $(Q.DateExclusiveMinimumTimestamp,e,n,r)),Lm(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)&&(yield $(Q.DateMaximumTimestamp,e,n,r)),Lm(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)&&(yield $(Q.DateMinimumTimestamp,e,n,r)),Lm(e.multipleOfTimestamp)&&r.getTime()%e.multipleOfTimestamp!==0&&(yield $(Q.DateMultipleOfTimestamp,e,n,r))}function*qm(e,t,n,r){di(r)||(yield $(Q.Function,e,n,r))}function*Jm(e,t,n,r){let i=globalThis.Object.values(e.$defs),a=e.$defs[e.$ref];yield*yh(a,[...t,...i],n,r)}function*Ym(e,t,n,r){if(!Ea(r))return yield $(Q.Integer,e,n,r);Lm(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)&&(yield $(Q.IntegerExclusiveMaximum,e,n,r)),Lm(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)&&(yield $(Q.IntegerExclusiveMinimum,e,n,r)),Lm(e.maximum)&&!(r<=e.maximum)&&(yield $(Q.IntegerMaximum,e,n,r)),Lm(e.minimum)&&!(r>=e.minimum)&&(yield $(Q.IntegerMinimum,e,n,r)),Lm(e.multipleOf)&&r%e.multipleOf!==0&&(yield $(Q.IntegerMultipleOf,e,n,r))}function*Xm(e,t,n,r){let i=!1;for(let a of e.allOf)for(let e of yh(a,t,n,r))i=!0,yield e;if(i)return yield $(Q.Intersect,e,n,r);if(e.unevaluatedProperties===!1){let t=new RegExp(mn(e));for(let i of Object.getOwnPropertyNames(r))t.test(i)||(yield $(Q.IntersectUnevaluatedProperties,e,`${n}/${i}`,r))}if(typeof e.unevaluatedProperties==`object`){let i=new RegExp(mn(e));for(let a of Object.getOwnPropertyNames(r))if(!i.test(a)){let i=yh(e.unevaluatedProperties,t,`${n}/${a}`,r[a]).next();i.done||(yield i.value)}}}function*Zm(e,t,n,r){qa(r)||(yield $(Q.Iterator,e,n,r))}function*Qm(e,t,n,r){r!==e.const&&(yield $(Q.Literal,e,n,r))}function*$m(e,t,n,r){yield $(Q.Never,e,n,r)}function*eh(e,t,n,r){yh(e.not,t,n,r).next().done===!0&&(yield $(Q.Not,e,n,r))}function*th(e,t,n,r){Ci(r)||(yield $(Q.Null,e,n,r))}function*nh(e,t,n,r){if(!Nt.IsNumberLike(r))return yield $(Q.Number,e,n,r);Lm(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)&&(yield $(Q.NumberExclusiveMaximum,e,n,r)),Lm(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)&&(yield $(Q.NumberExclusiveMinimum,e,n,r)),Lm(e.maximum)&&!(r<=e.maximum)&&(yield $(Q.NumberMaximum,e,n,r)),Lm(e.minimum)&&!(r>=e.minimum)&&(yield $(Q.NumberMinimum,e,n,r)),Lm(e.multipleOf)&&r%e.multipleOf!==0&&(yield $(Q.NumberMultipleOf,e,n,r))}function*rh(e,t,n,r){if(!Nt.IsObjectLike(r))return yield $(Q.Object,e,n,r);Lm(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)&&(yield $(Q.ObjectMinProperties,e,n,r)),Lm(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)&&(yield $(Q.ObjectMaxProperties,e,n,r));let i=Array.isArray(e.required)?e.required:[],a=Object.getOwnPropertyNames(e.properties),o=Object.getOwnPropertyNames(r);for(let t of i)o.includes(t)||(yield $(Q.ObjectRequiredProperty,e.properties[t],`${n}/${Im(t)}`,void 0));if(e.additionalProperties===!1)for(let t of o)a.includes(t)||(yield $(Q.ObjectAdditionalProperties,e,`${n}/${Im(t)}`,r[t]));if(typeof e.additionalProperties==`object`)for(let i of o)a.includes(i)||(yield*yh(e.additionalProperties,t,`${n}/${Im(i)}`,r[i]));for(let i of a){let a=e.properties[i];e.required&&e.required.includes(i)?(yield*yh(a,t,`${n}/${Im(i)}`,r[i]),Br(e)&&!(i in r)&&(yield $(Q.ObjectRequiredProperty,a,`${n}/${Im(i)}`,void 0))):Nt.IsExactOptionalProperty(r,i)&&(yield*yh(a,t,`${n}/${Im(i)}`,r[i]))}}function*ih(e,t,n,r){ro(r)||(yield $(Q.Promise,e,n,r))}function*ah(e,t,n,r){if(!Nt.IsRecordLike(r))return yield $(Q.Object,e,n,r);Lm(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)&&(yield $(Q.ObjectMinProperties,e,n,r)),Lm(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)&&(yield $(Q.ObjectMaxProperties,e,n,r));let[i,a]=Object.entries(e.patternProperties)[0],o=new RegExp(i);for(let[e,i]of Object.entries(r))o.test(e)&&(yield*yh(a,t,`${n}/${Im(e)}`,i));if(typeof e.additionalProperties==`object`)for(let[i,a]of Object.entries(r))o.test(i)||(yield*yh(e.additionalProperties,t,`${n}/${Im(i)}`,a));if(e.additionalProperties===!1){for(let[t,i]of Object.entries(r))if(!o.test(t))return yield $(Q.ObjectAdditionalProperties,e,`${n}/${Im(t)}`,i)}}function*oh(e,t,n,r){yield*yh(yn(e,t),t,n,r)}function*sh(e,t,n,r){if(!Oi(r))return yield $(Q.String,e,n,r);if(Lm(e.minLength)&&!(r.length>=e.minLength)&&(yield $(Q.StringMinLength,e,n,r)),Lm(e.maxLength)&&!(r.length<=e.maxLength)&&(yield $(Q.StringMaxLength,e,n,r)),!new RegExp(e.source,e.flags).test(r))return yield $(Q.RegExp,e,n,r)}function*ch(e,t,n,r){if(!Oi(r))return yield $(Q.String,e,n,r);Lm(e.minLength)&&!(r.length>=e.minLength)&&(yield $(Q.StringMinLength,e,n,r)),Lm(e.maxLength)&&!(r.length<=e.maxLength)&&(yield $(Q.StringMaxLength,e,n,r)),Oi(e.pattern)&&(new RegExp(e.pattern).test(r)||(yield $(Q.StringPattern,e,n,r))),Oi(e.format)&&(Gr(e.format)?Xr(e.format)(r)||(yield $(Q.StringFormat,e,n,r)):yield $(Q.StringFormatUnknown,e,n,r))}function*lh(e,t,n,r){Ri(r)||(yield $(Q.Symbol,e,n,r))}function*uh(e,t,n,r){if(!Oi(r))return yield $(Q.String,e,n,r);new RegExp(e.pattern).test(r)||(yield $(Q.StringPattern,e,n,r))}function*dh(e,t,n,r){yield*yh(yn(e,t),t,n,r)}function*fh(e,t,n,r){if(!Ni(r))return yield $(Q.Tuple,e,n,r);if(e.items===void 0&&r.length!==0||r.length!==e.maxItems)return yield $(Q.TupleLength,e,n,r);if(e.items)for(let i=0;i<e.items.length;i++)yield*yh(e.items[i],t,`${n}/${i}`,r[i])}function*ph(e,t,n,r){va(r)||(yield $(Q.Undefined,e,n,r))}function*mh(e,t,n,r){if(Ht(e,t,r))return;let i=e.anyOf.map(e=>new Rm(yh(e,t,n,r)));yield $(Q.Union,e,n,r,i)}function*hh(e,t,n,r){if(!ja(r))return yield $(Q.Uint8Array,e,n,r);Lm(e.maxByteLength)&&!(r.length<=e.maxByteLength)&&(yield $(Q.Uint8ArrayMaxByteLength,e,n,r)),Lm(e.minByteLength)&&!(r.length>=e.minByteLength)&&(yield $(Q.Uint8ArrayMinByteLength,e,n,r))}function*gh(e,t,n,r){}function*_h(e,t,n,r){Nt.IsVoidLike(r)||(yield $(Q.Void,e,n,r))}function*vh(e,t,n,r){Ia(e[ti])(e,r)||(yield $(Q.Kind,e,n,r))}function*yh(e,t,n,r){let i=Lm(e.$id)?[...t,e]:t,a=e;switch(a[ti]){case`Any`:return yield*zm(a,i,n,r);case`Argument`:return yield*Bm(a,i,n,r);case`Array`:return yield*Vm(a,i,n,r);case`AsyncIterator`:return yield*Hm(a,i,n,r);case`BigInt`:return yield*Um(a,i,n,r);case`Boolean`:return yield*Wm(a,i,n,r);case`Constructor`:return yield*Gm(a,i,n,r);case`Date`:return yield*Km(a,i,n,r);case`Function`:return yield*qm(a,i,n,r);case`Import`:return yield*Jm(a,i,n,r);case`Integer`:return yield*Ym(a,i,n,r);case`Intersect`:return yield*Xm(a,i,n,r);case`Iterator`:return yield*Zm(a,i,n,r);case`Literal`:return yield*Qm(a,i,n,r);case`Never`:return yield*$m(a,i,n,r);case`Not`:return yield*eh(a,i,n,r);case`Null`:return yield*th(a,i,n,r);case`Number`:return yield*nh(a,i,n,r);case`Object`:return yield*rh(a,i,n,r);case`Promise`:return yield*ih(a,i,n,r);case`Record`:return yield*ah(a,i,n,r);case`Ref`:return yield*oh(a,i,n,r);case`RegExp`:return yield*sh(a,i,n,r);case`String`:return yield*ch(a,i,n,r);case`Symbol`:return yield*lh(a,i,n,r);case`TemplateLiteral`:return yield*uh(a,i,n,r);case`This`:return yield*dh(a,i,n,r);case`Tuple`:return yield*fh(a,i,n,r);case`Undefined`:return yield*ph(a,i,n,r);case`Union`:return yield*mh(a,i,n,r);case`Uint8Array`:return yield*hh(a,i,n,r);case`Unknown`:return yield*gh(a,i,n,r);case`Void`:return yield*_h(a,i,n,r);default:if(!An(a[ti]))throw new Fm(e);return yield*vh(a,i,n,r)}}function bh(...e){return new Rm(e.length===3?yh(e[0],e[1],``,e[2]):yh(e[0],[],``,e[1]))}var xh=(e,t)=>{let n=t.get(e);if(n)return n;let r=e.schema();return t.set(e,r),r},Sh=e=>e.type===`optional`?Sh(e.schema):e.type===`literal`||e.type===`union`&&e.schemas.length>0&&e.schemas.every(Sh),Ch=(e,t,n,r=new WeakMap)=>{if(Bn(t)&&r.get(t)?.has(e))return 1;let i=Bn(t);if(i){let n=r.get(t)??new Set;n.add(e),r.set(t,n)}try{if(e.type===`object`){if(!Bn(t))return 0;let i=Object.keys(e.properties);return i.length===0?1:i.reduce((i,a)=>{if(!(a in t))return i;let o=e.properties[a],s=t[a],c=Ch(o,s,n,r);return Sh(o)?i+(c>0?c*10:0):i+(c>0?c:1)},0)}return e.type===`array`?+!!Array.isArray(t):e.type===`record`?+!!Bn(t):e.type===`optional`?t===void 0?1:Ch(e.schema,t,n,r):e.type===`union`?Math.max(...e.schemas.map(e=>Ch(e,t,n,r))):e.type===`intersection`?e.schemas.length===0?1:e.schemas.reduce((e,i)=>e+Ch(i,t,n,r),0):e.type===`lazy`?Ch(xh(e,n),t,n,r):e.type===`evaluate`?Ch(e.schema,e.expression(t),n,r):+!!Tn(e,t)}finally{i&&r.get(t)?.delete(e)}},wh=(e,t,n,r)=>{if(Bn(e)||Array.isArray(e)){let i=r.get(e)||new Map;i.set(t,n),r.set(e,i)}},Th=(e,t,n,r)=>{if((Bn(t)||Array.isArray(t))&&n.get(t)?.has(e))return n.get(t)?.get(e);if(!e||e.type===`any`||e.type===`unknown`)return t;if(e.type===`function`)return typeof t==`function`?t:()=>void 0;if(e.type===`number`)return Tn(e,t)?t:e.default??0;if(e.type===`string`)return Tn(e,t)?t:e.default??``;if(e.type===`boolean`)return Tn(e,t)?t:e.default??!1;if(e.type===`nullable`)return null;if(e.type!==`notDefined`){if(e.type===`optional`)return t===void 0?void 0:Th(e.schema,t,n,r);if(e.type===`array`){if(!Array.isArray(t))return[];let i=Array(t.length);wh(t,e,i,n);for(let a=0;a<t.length;a++)i[a]=Th(e.items,t[a],n,r);return i}if(e.type===`record`){if(!Bn(t))return{};let i={};wh(t,e,i,n);for(let a of Object.keys(t))i[a]=Th(e.value,t[a],n,r);return i}if(e.type===`object`){let i=Object.keys(e.properties),a=Bn(t)?t:null,o={};wh(t,e,o,n);for(let t of i){let i=e.properties[t],s=a?.[t];(i.type!==`optional`||s!==void 0)&&(o[t]=Th(i,s,n,r))}return o}return e.type===`union`?Th(e.schemas.reduce((e,n)=>{let i=Ch(n,t,r);return i>e.score?{schema:n,score:i}:e},{schema:e.schemas[0],score:0}).schema,t,n,r):e.type===`intersection`?e.schemas.reduce((e,i)=>Object.assign(e,Th(i,t,n,r)),{}):e.type===`literal`?e.value:e.type===`lazy`?Th(xh(e,r),t,n,r):e.type===`evaluate`?Th(e.schema,e.expression(t),n,r):(console.warn(`Unknown schema type:`,e),t)}},Eh=(e,t,n=new WeakMap,r=new WeakMap)=>Th(e,t,n,r);function Dh(e,t){if(ao(e))return G(e.components?.schemas?.[t]);if(ga(e))return Am(e,t)}function Oh(e){if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return``}}function kh(e){let t=Object.values(e.examples??{}).flatMap(e=>{let t=G(e);return!t||!(`value`in t)?[]:Oh(t.value)}).filter(e=>e.length>0),n=`example`in e&&e.example!==void 0?Oh(e.example):``;return n?[n,...t]:t}function Ah(e){return e?Object.values(e).flatMap(e=>{let t=G(e);return t?.content?Object.values(t.content).flatMap(e=>{let t=G(e);return t?kh(t):[]}):[]}).filter(e=>e.length>0):[]}var jh={heading:`Heading`,tagGroup:`Tag Group`,webhook:`Webhook`,webhooks:`Webhooks`,introduction:`Introduction`};function Mh(e,t){let n=[],r=t?.modelsSectionLabel??`Models`,i=t?.labels??jh;function a(t){t.forEach(t=>{Nh(t,n,e,r,i),`children`in t&&t.children&&a(t.children)})}return a(e?.[`x-scalar-navigation`]?.children??[]),n}function Nh(e,t,n,r,i){let a=ao(n)?n:void 0;if(e.type===`operation`){let n=mi(a?.paths?.[e.path]),r=G(ea(a?.paths?.[e.path],e.method))??{},i={...r,parameters:Wa(n?.parameters,r.parameters)},o=cm(i.parameters??[]),s=lm(i.parameters??[]),c=um(i),l=dm(i),u=Ah(i.responses);t.push({type:`operation`,title:e.title,id:e.id,description:i.description||``,method:e.method,path:e.path,body:c,bodyDescriptions:l,parameters:o,parameterDescriptions:s,responseExamples:u,operationId:i.operationId,entry:e});return}if(e.type===`webhook`){let n=G(ea(a?.webhooks?.[e.name],e.method))??{},r=n.description||``;t.push({id:e.id,type:`webhook`,title:e.title,description:`Webhook`,method:e.method,body:``,bodyDescriptions:r?[r]:[],operationId:n.operationId,entry:e});return}if(e.type===`model`){let i=Dh(n,e.name),a=i?.description??``,o=fm(i),s=pm(i);t.push({type:`model`,title:e.title,description:r,id:e.id,body:o,bodyDescriptions:a?[a,...s]:s,entry:e});return}if(e.type===`models`){t.push({id:e.id,type:`heading`,title:r,description:i.heading,body:``,entry:e});return}if(e.type===`tag`&&e.isWebhooks===!0){t.push({id:e.id,type:`heading`,title:i.webhooks,description:i.heading,body:``,entry:e});return}if(e.type===`tag`&&e.isGroup===!1){t.push({id:e.id,title:e.title,description:e.description||``,type:`tag`,body:``,entry:e});return}if(e.type===`tag`&&e.isGroup===!0){t.push({id:e.id,title:e.title,description:i.tagGroup,type:`tag`,body:``,entry:e});return}if(e.type===`text`){t.push({id:e.id,type:`heading`,title:jm(e)?i.introduction:e.title??``,description:i.heading,body:``,entry:e});return}}var Ph=25;function Fh(e,t=er,i={heading:`Heading`,tagGroup:`Tag Group`,webhook:`Webhook`,webhooks:`Webhooks`,introduction:`Introduction`}){let a=T(()=>Mh(r(e),{labels:r(i),modelsSectionLabel:r(t)??`Models`})),o=T(()=>{let e=Tm();return e.setCollection(a.value),e}),s=n(``);return{results:T(()=>s.value.length===0?a.value.slice(0,Ph).map((e,t)=>({item:e,refIndex:t})):o.value.search(s.value,{limit:Ph})),query:s}}var Ih={key:0},Lh={key:1},Rh={key:2},zh={key:3},Bh={key:4},Vh={key:5},Hh=E({name:`ScalarIconArrowUp`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,Ih,[...i[0]||=[b(`path`,{d:`M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,Lh,[...i[1]||=[b(`path`,{d:`M200,112H56l72-72Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M205.66,106.34l-72-72a8,8,0,0,0-11.32,0l-72,72A8,8,0,0,0,56,120h64v96a8,8,0,0,0,16,0V120h64a8,8,0,0,0,5.66-13.66ZM75.31,104,128,51.31,180.69,104Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,Rh,[...i[2]||=[b(`path`,{d:`M207.39,115.06A8,8,0,0,1,200,120H136v96a8,8,0,0,1-16,0V120H56a8,8,0,0,1-5.66-13.66l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,207.39,115.06Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,zh,[...i[3]||=[b(`path`,{d:`M204.24,116.24a6,6,0,0,1-8.48,0L134,54.49V216a6,6,0,0,1-12,0V54.49L60.24,116.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0l72,72A6,6,0,0,1,204.24,116.24Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,Bh,[...i[4]||=[b(`path`,{d:`M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,Vh,[...i[5]||=[b(`path`,{d:`M202.83,114.83a4,4,0,0,1-5.66,0L132,49.66V216a4,4,0,0,1-8,0V49.66L58.83,114.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0l72,72A4,4,0,0,1,202.83,114.83Z`},null,-1)]])):F(``,!0)],16))}}),Uh={key:0},Wh={key:1},Gh={key:2},Kh={key:3},qh={key:4},Jh={key:5},Yh=E({name:`ScalarIconBookOpen`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,Uh,[...i[0]||=[b(`path`,{d:`M232,44H160a43.86,43.86,0,0,0-32,13.85A43.86,43.86,0,0,0,96,44H24A12,12,0,0,0,12,56V200a12,12,0,0,0,12,12H96a20,20,0,0,1,20,20,12,12,0,0,0,24,0,20,20,0,0,1,20-20h72a12,12,0,0,0,12-12V56A12,12,0,0,0,232,44ZM96,188H36V68H96a20,20,0,0,1,20,20V192.81A43.79,43.79,0,0,0,96,188Zm124,0H160a43.71,43.71,0,0,0-20,4.83V88a20,20,0,0,1,20-20h60Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,Wh,[...i[1]||=[b(`path`,{d:`M232,56V200H160a32,32,0,0,0-32,32,32,32,0,0,0-32-32H24V56H96a32,32,0,0,1,32,32,32,32,0,0,1,32-32Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,Gh,[...i[2]||=[b(`path`,{d:`M240,56V200a8,8,0,0,1-8,8H160a24,24,0,0,0-24,23.94,7.9,7.9,0,0,1-5.12,7.55A8,8,0,0,1,120,232a24,24,0,0,0-24-24H24a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H88a32,32,0,0,1,32,32v87.73a8.17,8.17,0,0,0,7.47,8.25,8,8,0,0,0,8.53-8V80a32,32,0,0,1,32-32h64A8,8,0,0,1,240,56Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,Kh,[...i[3]||=[b(`path`,{d:`M232,50H160a38,38,0,0,0-32,17.55A38,38,0,0,0,96,50H24a6,6,0,0,0-6,6V200a6,6,0,0,0,6,6H96a26,26,0,0,1,26,26,6,6,0,0,0,12,0,26,26,0,0,1,26-26h72a6,6,0,0,0,6-6V56A6,6,0,0,0,232,50ZM96,194H30V62H96a26,26,0,0,1,26,26V204.31A37.86,37.86,0,0,0,96,194Zm130,0H160a37.87,37.87,0,0,0-26,10.32V88a26,26,0,0,1,26-26h66Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,qh,[...i[4]||=[b(`path`,{d:`M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,Jh,[...i[5]||=[b(`path`,{d:`M232,52H160a36,36,0,0,0-32,19.54A36,36,0,0,0,96,52H24a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H96a28,28,0,0,1,28,28,4,4,0,0,0,8,0,28,28,0,0,1,28-28h72a4,4,0,0,0,4-4V56A4,4,0,0,0,232,52ZM96,196H28V60H96a28,28,0,0,1,28,28V209.4A35.93,35.93,0,0,0,96,196Zm132,0H160a35.94,35.94,0,0,0-28,13.41V88a28,28,0,0,1,28-28h68Z`},null,-1)]])):F(``,!0)],16))}}),Xh={key:0},Zh={key:1},Qh={key:2},$h={key:3},eg={key:4},tg={key:5},ng=E({name:`ScalarIconBracketsCurly`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,Xh,[...i[0]||=[b(`path`,{d:`M54.8,119.49A35.06,35.06,0,0,1,49.05,128a35.06,35.06,0,0,1,5.75,8.51C60,147.24,60,159.83,60,172c0,25.94,1.84,32,20,32a12,12,0,0,1,0,24c-19.14,0-32.2-6.9-38.8-20.51C36,196.76,36,184.17,36,172c0-25.94-1.84-32-20-32a12,12,0,0,1,0-24c18.16,0,20-6.06,20-32,0-12.17,0-24.76,5.2-35.49C47.8,34.9,60.86,28,80,28a12,12,0,0,1,0,24c-18.16,0-20,6.06-20,32C60,96.17,60,108.76,54.8,119.49ZM240,116c-18.16,0-20-6.06-20-32,0-12.17,0-24.76-5.2-35.49C208.2,34.9,195.14,28,176,28a12,12,0,0,0,0,24c18.16,0,20,6.06,20,32,0,12.17,0,24.76,5.2,35.49A35.06,35.06,0,0,0,207,128a35.06,35.06,0,0,0-5.75,8.51C196,147.24,196,159.83,196,172c0,25.94-1.84,32-20,32a12,12,0,0,0,0,24c19.14,0,32.2-6.9,38.8-20.51C220,196.76,220,184.17,220,172c0-25.94,1.84-32,20-32a12,12,0,0,0,0-24Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,Zh,[...i[1]||=[b(`path`,{d:`M240,128c-64,0,0,88-64,88H80c-64,0,0-88-64-88,64,0,0-88,64-88h96C240,40,176,128,240,128Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M43.18,128a29.78,29.78,0,0,1,8,10.26c4.8,9.9,4.8,22,4.8,33.74,0,24.31,1,36,24,36a8,8,0,0,1,0,16c-17.48,0-29.32-6.14-35.2-18.26-4.8-9.9-4.8-22-4.8-33.74,0-24.31-1-36-24-36a8,8,0,0,1,0-16c23,0,24-11.69,24-36,0-11.72,0-23.84,4.8-33.74C50.68,38.14,62.52,32,80,32a8,8,0,0,1,0,16C57,48,56,59.69,56,84c0,11.72,0,23.84-4.8,33.74A29.78,29.78,0,0,1,43.18,128ZM240,120c-23,0-24-11.69-24-36,0-11.72,0-23.84-4.8-33.74C205.32,38.14,193.48,32,176,32a8,8,0,0,0,0,16c23,0,24,11.69,24,36,0,11.72,0,23.84,4.8,33.74a29.78,29.78,0,0,0,8,10.26,29.78,29.78,0,0,0-8,10.26c-4.8,9.9-4.8,22-4.8,33.74,0,24.31-1,36-24,36a8,8,0,0,0,0,16c17.48,0,29.32-6.14,35.2-18.26,4.8-9.9,4.8-22,4.8-33.74,0-24.31,1-36,24-36a8,8,0,0,0,0-16Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,Qh,[...i[2]||=[b(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM88,155.84c.29,14.26.41,20.16,16,20.16a8,8,0,0,1,0,16c-31.27,0-31.72-22.43-32-35.84C71.71,141.9,71.59,136,56,136a8,8,0,0,1,0-16c15.59,0,15.71-5.9,16-20.16C72.28,86.43,72.73,64,104,64a8,8,0,0,1,0,16c-15.59,0-15.71,5.9-16,20.16-.17,8.31-.41,20.09-8,27.84C87.59,135.75,87.83,147.53,88,155.84ZM200,136c-15.59,0-15.71,5.9-16,20.16-.28,13.41-.73,35.84-32,35.84a8,8,0,0,1,0-16c15.59,0,15.71-5.9,16-20.16.17-8.31.41-20.09,8-27.84-7.6-7.75-7.84-19.53-8-27.84C167.71,85.9,167.59,80,152,80a8,8,0,0,1,0-16c31.27,0,31.72,22.43,32,35.84.29,14.26.41,20.16,16,20.16a8,8,0,0,1,0,16Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,$h,[...i[3]||=[b(`path`,{d:`M39.91,128a27.68,27.68,0,0,1,9.49,11.13C54,148.62,54,160.51,54,172c0,24.27,1.21,38,26,38a6,6,0,0,1,0,12c-16.88,0-27.81-5.6-33.4-17.13C42,195.38,42,183.49,42,172c0-24.27-1.21-38-26-38a6,6,0,0,1,0-12c24.79,0,26-13.73,26-38,0-11.49,0-23.38,4.6-32.87C52.19,39.6,63.12,34,80,34a6,6,0,0,1,0,12C55.21,46,54,59.73,54,84c0,11.49,0,23.38-4.6,32.87A27.68,27.68,0,0,1,39.91,128ZM240,122c-24.79,0-26-13.73-26-38,0-11.49,0-23.38-4.6-32.87C203.81,39.6,192.88,34,176,34a6,6,0,0,0,0,12c24.79,0,26,13.73,26,38,0,11.49,0,23.38,4.6,32.87A27.68,27.68,0,0,0,216.09,128a27.68,27.68,0,0,0-9.49,11.13C202,148.62,202,160.51,202,172c0,24.27-1.21,38-26,38a6,6,0,0,0,0,12c16.88,0,27.81-5.6,33.4-17.13,4.6-9.49,4.6-21.38,4.6-32.87,0-24.27,1.21-38,26-38a6,6,0,0,0,0-12Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,eg,[...i[4]||=[b(`path`,{d:`M43.18,128a29.78,29.78,0,0,1,8,10.26c4.8,9.9,4.8,22,4.8,33.74,0,24.31,1,36,24,36a8,8,0,0,1,0,16c-17.48,0-29.32-6.14-35.2-18.26-4.8-9.9-4.8-22-4.8-33.74,0-24.31-1-36-24-36a8,8,0,0,1,0-16c23,0,24-11.69,24-36,0-11.72,0-23.84,4.8-33.74C50.68,38.14,62.52,32,80,32a8,8,0,0,1,0,16C57,48,56,59.69,56,84c0,11.72,0,23.84-4.8,33.74A29.78,29.78,0,0,1,43.18,128ZM240,120c-23,0-24-11.69-24-36,0-11.72,0-23.84-4.8-33.74C205.32,38.14,193.48,32,176,32a8,8,0,0,0,0,16c23,0,24,11.69,24,36,0,11.72,0,23.84,4.8,33.74a29.78,29.78,0,0,0,8,10.26,29.78,29.78,0,0,0-8,10.26c-4.8,9.9-4.8,22-4.8,33.74,0,24.31-1,36-24,36a8,8,0,0,0,0,16c17.48,0,29.32-6.14,35.2-18.26,4.8-9.9,4.8-22,4.8-33.74,0-24.31,1-36,24-36a8,8,0,0,0,0-16Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,tg,[...i[5]||=[b(`path`,{d:`M35.89,128C52,136.23,52,155.64,52,172c0,24.8,1.35,40,28,40a4,4,0,0,1,0,8c-36,0-36-26.61-36-48,0-24.8-1.35-40-28-40a4,4,0,0,1,0-8c26.65,0,28-15.2,28-40,0-21.39,0-48,36-48a4,4,0,0,1,0,8C53.35,44,52,59.2,52,84,52,100.36,52,119.77,35.89,128ZM240,124c-26.65,0-28-15.2-28-40,0-21.39,0-48-36-48a4,4,0,0,0,0,8c26.65,0,28,15.2,28,40,0,16.36,0,35.77,16.11,44C204,136.23,204,155.64,204,172c0,24.8-1.35,40-28,40a4,4,0,0,0,0,8c36,0,36-26.61,36-48,0-24.8,1.35-40,28-40a4,4,0,0,0,0-8Z`},null,-1)]])):F(``,!0)],16))}}),rg={key:0},ig={key:1},ag={key:2},og={key:3},sg={key:4},cg={key:5},lg=E({name:`ScalarIconCaretUpDown`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,rg,[...i[0]||=[b(`path`,{d:`M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,ig,[...i[1]||=[b(`path`,{d:`M80,176h96l-48,48ZM128,32,80,80h96Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Zm-48,44.69L99.31,184h57.38ZM80,88h96a8,8,0,0,0,5.66-13.66l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,80,88Zm48-44.69L156.69,72H99.31Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,ag,[...i[2]||=[b(`path`,{d:`M72.61,83.06a8,8,0,0,1,1.73-8.72l48-48a8,8,0,0,1,11.32,0l48,48A8,8,0,0,1,176,88H80A8,8,0,0,1,72.61,83.06ZM176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,og,[...i[3]||=[b(`path`,{d:`M180.24,171.76a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-48-48a6,6,0,0,1,8.48-8.48L128,215.51l43.76-43.75A6,6,0,0,1,180.24,171.76Zm-96-87.52L128,40.49l43.76,43.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,sg,[...i[4]||=[b(`path`,{d:`M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,cg,[...i[5]||=[b(`path`,{d:`M178.83,173.17a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-48-48a4,4,0,0,1,5.66-5.66L128,218.34l45.17-45.17A4,4,0,0,1,178.83,173.17Zm-96-90.34L128,37.66l45.17,45.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66Z`},null,-1)]])):F(``,!0)],16))}}),ug={key:0},dg={key:1},fg={key:2},pg={key:3},mg={key:4},hg={key:5},gg=E({name:`ScalarIconCloud`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,ug,[...i[0]||=[b(`path`,{d:`M160,36A92.09,92.09,0,0,0,79,84.36,68,68,0,1,0,72,220h88a92,92,0,0,0,0-184Zm0,160H72a44,44,0,0,1-1.82-88A91.86,91.86,0,0,0,68,128a12,12,0,0,0,24,0,68,68,0,1,1,68,68Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,dg,[...i[1]||=[b(`path`,{d:`M240,128a80,80,0,0,1-80,80H72A56,56,0,1,1,85.92,97.74l0,.1A80,80,0,0,1,240,128Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M160,40A88.09,88.09,0,0,0,81.29,88.67,64,64,0,1,0,72,216h88a88,88,0,0,0,0-176Zm0,160H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.11A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,72,72Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,fg,[...i[2]||=[b(`path`,{d:`M160.06,40A88.1,88.1,0,0,0,81.29,88.67h0A87.48,87.48,0,0,0,72,127.73,8.18,8.18,0,0,1,64.57,136,8,8,0,0,1,56,128a103.66,103.66,0,0,1,5.34-32.92,4,4,0,0,0-4.75-5.18A64.09,64.09,0,0,0,8,152c0,35.19,29.75,64,65,64H160a88.09,88.09,0,0,0,87.93-91.48C246.11,77.54,207.07,40,160.06,40Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,pg,[...i[3]||=[b(`path`,{d:`M160,42A86.11,86.11,0,0,0,82.43,90.88,62,62,0,1,0,72,214h88a86,86,0,0,0,0-172Zm0,160H72a50,50,0,0,1,0-100,50.67,50.67,0,0,1,5.91.35A85.61,85.61,0,0,0,74,128a6,6,0,0,0,12,0,74,74,0,1,1,74,74Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,mg,[...i[4]||=[b(`path`,{d:`M160,40A88.09,88.09,0,0,0,81.29,88.67,64,64,0,1,0,72,216h88a88,88,0,0,0,0-176Zm0,160H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.11A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,72,72Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,hg,[...i[5]||=[b(`path`,{d:`M160,44A84.11,84.11,0,0,0,83.59,93.12,60.71,60.71,0,0,0,72,92a60,60,0,0,0,0,120h88a84,84,0,0,0,0-168Zm0,160H72a52,52,0,1,1,8.55-103.3A83.66,83.66,0,0,0,76,128a4,4,0,0,0,8,0,76,76,0,1,1,76,76Z`},null,-1)]])):F(``,!0)],16))}}),_g={key:0},vg={key:1},yg={key:2},bg={key:3},xg={key:4},Sg={key:5},Cg=E({name:`ScalarIconFileMd`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,_g,[...i[0]||=[b(`path`,{d:`M100,152v56a12,12,0,0,1-24,0V190.07l-6.17,8.81a12,12,0,0,1-19.66,0L44,190.07V208a12,12,0,0,1-24,0V152a12,12,0,0,1,21.83-6.88L60,171.07l18.17-25.95A12,12,0,0,1,100,152Zm84,28a40,40,0,0,1-40,40H128a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,184,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,160,180Zm60-92V224a12,12,0,0,1-24,0V104H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88Zm-60-8h23L160,57Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,vg,[...i[1]||=[b(`path`,{d:`M208,88H152V32Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V224a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM144,144H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h16a36,36,0,0,0,0-72Zm0,56h-8V160h8a20,20,0,0,1,0,40Zm-40-48v56a8,8,0,0,1-16,0V177.38L74.55,196.59a8,8,0,0,1-13.1,0L48,177.38V208a8,8,0,0,1-16,0V152a8,8,0,0,1,14.55-4.59L68,178.05l21.45-30.64A8,8,0,0,1,104,152Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,yg,[...i[2]||=[b(`path`,{d:`M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H196a4,4,0,0,1,4,4V224a8,8,0,0,0,9.19,7.91,8.15,8.15,0,0,0,6.81-8.16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Zm-8,56H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,144,144Zm-.49,56H136V160h8a20,20,0,0,1,20,20.77C163.58,191.59,154.34,200,143.51,200ZM104,152v55.73A8.17,8.17,0,0,1,96.53,216,8,8,0,0,1,88,208V177.38l-13.32,19a8.3,8.3,0,0,1-4.2,3.2,8,8,0,0,1-9-3L48,177.38v30.35A8.17,8.17,0,0,1,40.53,216,8,8,0,0,1,32,208V152.31a8.27,8.27,0,0,1,4.56-7.53,8,8,0,0,1,10,2.63L68,178.05l21.27-30.39a8.28,8.28,0,0,1,8.06-3.55A8,8,0,0,1,104,152Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,bg,[...i[3]||=[b(`path`,{d:`M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V224a6,6,0,0,0,12,0V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM144,146H128a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6h16a34,34,0,0,0,0-68Zm0,56H134V158h10a22,22,0,0,1,0,44Zm-42-50v56a6,6,0,0,1-12,0V171L72.92,195.44a6,6,0,0,1-9.84,0L46,171v37a6,6,0,0,1-12,0V152a6,6,0,0,1,10.92-3.44l23.08,33,23.08-33A6,6,0,0,1,102,152Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,xg,[...i[4]||=[b(`path`,{d:`M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V224a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM144,144H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h16a36,36,0,0,0,0-72Zm0,56h-8V160h8a20,20,0,0,1,0,40Zm-40-48v56a8,8,0,0,1-16,0V177.38L74.55,196.59a8,8,0,0,1-13.1,0L48,177.38V208a8,8,0,0,1-16,0V152a8,8,0,0,1,14.55-4.59L68,178.05l21.45-30.64A8,8,0,0,1,104,152Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,Sg,[...i[5]||=[b(`path`,{d:`M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V224a4,4,0,0,0,8,0V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM144,148H128a4,4,0,0,0-4,4v56a4,4,0,0,0,4,4h16a32,32,0,0,0,0-64Zm0,56H132V156h12a24,24,0,0,1,0,48Zm-44-52v56a4,4,0,0,1-8,0V164.69l-20.72,29.6a4,4,0,0,1-6.56,0L44,164.69V208a4,4,0,0,1-8,0V152a4,4,0,0,1,7.28-2.29L68,185l24.72-35.31A4,4,0,0,1,100,152Z`},null,-1)]])):F(``,!0)],16))}}),wg={key:0},Tg={key:1},Eg={key:2},Dg={key:3},Og={key:4},kg={key:5},Ag=E({name:`ScalarIconGavel`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,wg,[...i[0]||=[b(`path`,{d:`M246.14,113.86l-16-16a20,20,0,0,0-23.06-3.75l-45.2-45.2a20,20,0,0,0-3.74-23.06l-16-16a20,20,0,0,0-28.28,0l-64,64a20,20,0,0,0,0,28.28l16,16a20,20,0,0,0,23,3.79L29.36,181.38a32,32,0,0,0,45.26,45.26L134,167.21a20,20,0,0,0,3.81,22.94l16,16a20,20,0,0,0,28.29,0l64-64a20,20,0,0,0,0-28.29ZM80,98.34,69.64,88,128,29.65,138.34,40ZM57.64,209.67a8,8,0,0,1-11.31-11.32l59.52-59.52,11.31,11.32Zm92.7-60.29-43.72-43.72,39-39,43.72,43.72Zm17.65,37L157.65,176,216,117.66,226.34,128Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,Tg,[...i[1]||=[b(`path`,{d:`M149.66,45.66l-64,64a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,0-11.32l64-64a8,8,0,0,1,11.32,0l16,16A8,8,0,0,1,149.66,45.66Zm88,76.68-16-16a8,8,0,0,0-11.32,0l-64,64a8,8,0,0,0,0,11.32l16,16a8,8,0,0,0,11.32,0l64-64A8,8,0,0,0,237.66,122.34Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M243.32,116.69l-16-16a16,16,0,0,0-20.84-1.53L156.84,49.52a16,16,0,0,0-1.52-20.84l-16-16a16,16,0,0,0-22.63,0l-64,64a16,16,0,0,0,0,22.63l16,16a16,16,0,0,0,20.83,1.52L96.69,124,31.31,189.38A25,25,0,0,0,66.63,224.7L132,159.32l7.17,7.16a16,16,0,0,0,1.52,20.84l16,16a16,16,0,0,0,22.63,0l64-64A16,16,0,0,0,243.32,116.69ZM80,104,64,88l64-64,16,16ZM55.32,213.38a9,9,0,0,1-12.69,0,9,9,0,0,1,0-12.68L108,135.32,120.69,148ZM101,105.66,145.66,61,195,110.34,150.35,155ZM168,192l-16-16,4-4h0l56-56h0l4-4,16,16Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,Eg,[...i[2]||=[b(`path`,{d:`M52.69,99.31a16,16,0,0,1,0-22.63l64-64a16,16,0,0,1,22.63,22.63l-64,64a16,16,0,0,1-22.63,0Zm190.63,17.37a16,16,0,0,0-22.63,0l-64,64a16,16,0,0,0,0,22.63h0a16,16,0,0,0,22.63,0l64-64A16,16,0,0,0,243.32,116.68Zm-35.11-15.8L155.12,47.79a4,4,0,0,0-5.66,0L87.8,109.45a4,4,0,0,0,0,5.66L103,130.34,28.69,204.69a16,16,0,0,0,22.62,22.62L125.66,153l15.23,15.23a4,4,0,0,0,5.66,0l61.66-61.66A4,4,0,0,0,208.21,100.88Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,Dg,[...i[3]||=[b(`path`,{d:`M241.91,118.1l-16-16a14,14,0,0,0-19.55-.23L154.13,49.64a14,14,0,0,0-.23-19.55l-16-16a14,14,0,0,0-19.8,0l-64,64a14,14,0,0,0,0,19.8l16,16a14,14,0,0,0,19.55.23L99.52,124,32.73,190.79a23,23,0,0,0,32.48,32.49L132,156.49l9.87,9.87a14,14,0,0,0,.23,19.55l16,16a14,14,0,0,0,19.8,0l64-64A14,14,0,0,0,241.91,118.1Zm-91.56,39.76-52.21-52.2,47.52-47.52,52.2,52.2ZM78.59,105.41l-16-16a2,2,0,0,1,0-2.83l64-64a2,2,0,0,1,2.83,0l16,16a2,2,0,0,1,0,2.83l-64,64A2,2,0,0,1,78.59,105.41ZM56.73,214.8a11,11,0,0,1-15.52-15.52L108,132.49,123.52,148Zm176.69-85.38-64,64a2,2,0,0,1-2.83,0l-16-16a2,2,0,0,1,0-2.83l64-64a2,2,0,0,1,2.83,0l16,16A2,2,0,0,1,233.42,129.42Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,Og,[...i[4]||=[b(`path`,{d:`M243.32,116.69l-16-16a16,16,0,0,0-20.84-1.53L156.84,49.52a16,16,0,0,0-1.52-20.84l-16-16a16,16,0,0,0-22.63,0l-64,64a16,16,0,0,0,0,22.63l16,16a16,16,0,0,0,20.83,1.52L96.69,124,31.31,189.38A25,25,0,0,0,66.63,224.7L132,159.32l7.17,7.16a16,16,0,0,0,1.52,20.84l16,16a16,16,0,0,0,22.63,0l64-64A16,16,0,0,0,243.32,116.69ZM80,104,64,88l64-64,16,16ZM55.32,213.38a9,9,0,0,1-12.69,0,9,9,0,0,1,0-12.68L108,135.32,120.69,148ZM101,105.66,145.66,61,195,110.34,150.35,155ZM168,192l-16-16,4-4h0l56-56h0l4-4,16,16Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,kg,[...i[5]||=[b(`path`,{d:`M240.49,119.52l-16-16a12,12,0,0,0-17,0l-1.17,1.17-55-55,1.18-1.17a12,12,0,0,0,0-17l-16-16a12,12,0,0,0-17,0l-64,64a12,12,0,0,0,0,17l16,16a12,12,0,0,0,17,0l1.17-1.18L102.34,124l-68.2,68.21A21,21,0,0,0,63.8,221.87L132,153.66l12.69,12.69-1.18,1.17a12,12,0,0,0,0,17l16,16a12,12,0,0,0,17,0l64-64a12,12,0,0,0,0-17ZM77.17,106.83l-16-16a4,4,0,0,1,0-5.66l64-64a4,4,0,0,1,5.66,0l16,16a4,4,0,0,1,0,5.65l-64,64A4,4,0,0,1,77.17,106.83Zm-19,109.38A13,13,0,1,1,39.8,197.87L108,129.66,126.34,148ZM95.31,105.66l50.35-50.35,55,55-50.35,50.35Zm139.52,25.17-64,64a4,4,0,0,1-5.66,0l-16-16a4,4,0,0,1,0-5.65l64-64a4,4,0,0,1,5.66,0l16,16a4,4,0,0,1,0,5.66Z`},null,-1)]])):F(``,!0)],16))}}),jg={key:0},Mg={key:1},Ng={key:2},Pg={key:3},Fg={key:4},Ig={key:5},Lg=E({name:`ScalarIconGitBranch`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,jg,[...i[0]||=[b(`path`,{d:`M236,64a36,36,0,1,0-48,33.94V112a4,4,0,0,1-4,4H96a27.8,27.8,0,0,0-4,.29V97.94a36,36,0,1,0-24,0v60.12a36,36,0,1,0,24,0V144a4,4,0,0,1,4-4h88a28,28,0,0,0,28-28V97.94A36.07,36.07,0,0,0,236,64ZM80,52A12,12,0,1,1,68,64,12,12,0,0,1,80,52Zm0,152a12,12,0,1,1,12-12A12,12,0,0,1,80,204ZM200,76a12,12,0,1,1,12-12A12,12,0,0,1,200,76Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,Mg,[...i[1]||=[b(`path`,{d:`M224,64a24,24,0,1,1-24-24A24,24,0,0,1,224,64Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192ZM200,80a16,16,0,1,1,16-16A16,16,0,0,1,200,80Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,Ng,[...i[2]||=[b(`path`,{d:`M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,Pg,[...i[3]||=[b(`path`,{d:`M230,64a30,30,0,1,0-36,29.4V112a10,10,0,0,1-10,10H96a21.84,21.84,0,0,0-10,2.42v-31a30,30,0,1,0-12,0v69.2a30,30,0,1,0,12,0V144a10,10,0,0,1,10-10h88a22,22,0,0,0,22-22V93.4A30.05,30.05,0,0,0,230,64ZM62,64A18,18,0,1,1,80,82,18,18,0,0,1,62,64ZM98,192a18,18,0,1,1-18-18A18,18,0,0,1,98,192ZM200,82a18,18,0,1,1,18-18A18,18,0,0,1,200,82Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,Fg,[...i[4]||=[b(`path`,{d:`M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192ZM200,80a16,16,0,1,1,16-16A16,16,0,0,1,200,80Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,Ig,[...i[5]||=[b(`path`,{d:`M228,64a28,28,0,1,0-32,27.71V112a12,12,0,0,1-12,12H96a19.91,19.91,0,0,0-12,4V91.71a28,28,0,1,0-8,0v72.58a28,28,0,1,0,8,0V144a12,12,0,0,1,12-12h88a20,20,0,0,0,20-20V91.71A28,28,0,0,0,228,64ZM60,64A20,20,0,1,1,80,84,20,20,0,0,1,60,64Zm40,128a20,20,0,1,1-20-20A20,20,0,0,1,100,192ZM200,84a20,20,0,1,1,20-20A20,20,0,0,1,200,84Z`},null,-1)]])):F(``,!0)],16))}}),Rg={key:0},zg={key:1},Bg={key:2},Vg={key:3},Hg={key:4},Ug={key:5},Wg=E({name:`ScalarIconGlobeSimple`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,Rg,[...i[0]||=[b(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm83.13,96H179.56a144.3,144.3,0,0,0-21.35-66.36A84.22,84.22,0,0,1,211.13,116ZM128,207c-9.36-10.81-24.46-33.13-27.45-67h54.94a119.74,119.74,0,0,1-17.11,52.77A108.61,108.61,0,0,1,128,207Zm-27.45-91a119.74,119.74,0,0,1,17.11-52.77A108.61,108.61,0,0,1,128,49c9.36,10.81,24.46,33.13,27.45,67ZM97.79,49.64A144.3,144.3,0,0,0,76.44,116H44.87A84.22,84.22,0,0,1,97.79,49.64ZM44.87,140H76.44a144.3,144.3,0,0,0,21.35,66.36A84.22,84.22,0,0,1,44.87,140Zm113.34,66.36A144.3,144.3,0,0,0,179.56,140h31.57A84.22,84.22,0,0,1,158.21,206.36Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,zg,[...i[1]||=[b(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm87.62,96H175.79C174,83.49,159.94,57.67,148.41,42.4A88.19,88.19,0,0,1,215.63,120ZM96.23,136h63.54c-2.31,41.61-22.23,67.11-31.77,77C118.45,203.1,98.54,177.6,96.23,136Zm0-16C98.54,78.39,118.46,52.89,128,43c9.55,9.93,29.46,35.43,31.77,77Zm11.36-77.6C96.06,57.67,82,83.49,80.21,120H40.37A88.19,88.19,0,0,1,107.59,42.4ZM40.37,136H80.21c1.82,36.51,15.85,62.33,27.38,77.6A88.19,88.19,0,0,1,40.37,136Zm108,77.6c11.53-15.27,25.56-41.09,27.38-77.6h39.84A88.19,88.19,0,0,1,148.41,213.6Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,Bg,[...i[2]||=[b(`path`,{d:`M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm87.62,96H175.79C174,83.49,159.94,57.67,148.41,42.4A88.19,88.19,0,0,1,215.63,120ZM96.23,136h63.54c-2.31,41.61-22.23,67.11-31.77,77C118.45,203.1,98.54,177.6,96.23,136Zm0-16C98.54,78.39,118.46,52.89,128,43c9.55,9.93,29.46,35.43,31.77,77Zm52.18,93.6c11.53-15.27,25.56-41.09,27.38-77.6h39.84A88.19,88.19,0,0,1,148.41,213.6Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,Vg,[...i[3]||=[b(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm89.8,96H173.89c-1.54-40.77-18.48-68.23-30.43-82.67A90.19,90.19,0,0,1,217.8,122ZM128,215.83a110,110,0,0,1-15.19-19.45A128.37,128.37,0,0,1,94.13,134h67.74a128.37,128.37,0,0,1-18.68,62.38A110,110,0,0,1,128,215.83ZM94.13,122a128.37,128.37,0,0,1,18.68-62.38A110,110,0,0,1,128,40.17a110,110,0,0,1,15.19,19.45A128.37,128.37,0,0,1,161.87,122Zm18.41-82.67c-12,14.44-28.89,41.9-30.43,82.67H38.2A90.19,90.19,0,0,1,112.54,39.33ZM38.2,134H82.11c1.54,40.77,18.48,68.23,30.43,82.67A90.19,90.19,0,0,1,38.2,134Zm105.26,82.67c11.95-14.44,28.89-41.9,30.43-82.67H217.8A90.19,90.19,0,0,1,143.46,216.67Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,Hg,[...i[4]||=[b(`path`,{d:`M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm87.62,96H175.79C174,83.49,159.94,57.67,148.41,42.4A88.19,88.19,0,0,1,215.63,120ZM96.23,136h63.54c-2.31,41.61-22.23,67.11-31.77,77C118.45,203.1,98.54,177.6,96.23,136Zm0-16C98.54,78.39,118.46,52.89,128,43c9.55,9.93,29.46,35.43,31.77,77Zm11.36-77.6C96.06,57.67,82,83.49,80.21,120H40.37A88.19,88.19,0,0,1,107.59,42.4ZM40.37,136H80.21c1.82,36.51,15.85,62.33,27.38,77.6A88.19,88.19,0,0,1,40.37,136Zm108,77.6c11.53-15.27,25.56-41.09,27.38-77.6h39.84A88.19,88.19,0,0,1,148.41,213.6Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,Ug,[...i[5]||=[b(`path`,{d:`M128,28h0A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm91.9,96h-48c-1.15-45.55-21.74-74.52-33.48-87.4A92.14,92.14,0,0,1,219.91,124ZM128,218.61c-8.32-8-34.57-37.13-35.93-86.61h71.86C162.57,181.48,136.32,210.61,128,218.61ZM92.07,124C93.43,74.52,119.68,45.39,128,37.39c8.32,8,34.57,37.13,35.93,86.61Zm25.47-87.4C105.8,49.48,85.21,78.45,84.06,124h-48A92.14,92.14,0,0,1,117.54,36.6ZM36.09,132h48c1.15,45.55,21.74,74.52,33.48,87.4A92.14,92.14,0,0,1,36.09,132Zm102.37,87.4c11.74-12.88,32.33-41.85,33.48-87.4h48A92.14,92.14,0,0,1,138.46,219.4Z`},null,-1)]])):F(``,!0)],16))}}),Gg={key:0},Kg={key:1},qg={key:2},Jg={key:3},Yg={key:4},Xg={key:5},Zg=E({name:`ScalarIconHash`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,Gg,[...i[0]||=[b(`path`,{d:`M224,84H180.2l7.61-41.85a12,12,0,0,0-23.62-4.3L155.8,84H116.2l7.61-41.85a12,12,0,1,0-23.62-4.3L91.8,84H48a12,12,0,0,0,0,24H87.44l-7.27,40H32a12,12,0,0,0,0,24H75.8l-7.61,41.85a12,12,0,0,0,9.66,14A11.43,11.43,0,0,0,80,228a12,12,0,0,0,11.8-9.86L100.2,172h39.6l-7.61,41.85a12,12,0,0,0,9.66,14,11.43,11.43,0,0,0,2.16.2,12,12,0,0,0,11.8-9.86L164.2,172H208a12,12,0,0,0,0-24H168.56l7.27-40H224a12,12,0,0,0,0-24Zm-79.83,64H104.56l7.27-40h39.61Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,Kg,[...i[1]||=[b(`path`,{d:`M165.82,96l-11.64,64h-64l11.64-64Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M224,88H175.4l8.47-46.57a8,8,0,0,0-15.74-2.86l-9,49.43H111.4l8.47-46.57a8,8,0,0,0-15.74-2.86L95.14,88H48a8,8,0,0,0,0,16H92.23L83.5,152H32a8,8,0,0,0,0,16H80.6l-8.47,46.57a8,8,0,0,0,6.44,9.3A7.79,7.79,0,0,0,80,224a8,8,0,0,0,7.86-6.57l9-49.43H144.6l-8.47,46.57a8,8,0,0,0,6.44,9.3A7.79,7.79,0,0,0,144,224a8,8,0,0,0,7.86-6.57l9-49.43H208a8,8,0,0,0,0-16H163.77l8.73-48H224a8,8,0,0,0,0-16Zm-76.5,64H99.77l8.73-48h47.73Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,qg,[...i[2]||=[b(`path`,{d:`M116.25,112h31.5l-8,32h-31.5ZM224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48Zm-16,56a8,8,0,0,0-8-8H168.25l7.51-30.06a8,8,0,0,0-15.52-3.88L151.75,96h-31.5l7.51-30.06a8,8,0,0,0-15.52-3.88L103.75,96H64a8,8,0,0,0,0,16H99.75l-8,32H56a8,8,0,0,0,0,16H87.75l-7.51,30.06a8,8,0,0,0,5.82,9.7,8.13,8.13,0,0,0,2,.24,8,8,0,0,0,7.75-6.06L104.25,160h31.5l-7.51,30.06a8,8,0,0,0,5.82,9.7A8.13,8.13,0,0,0,136,200a8,8,0,0,0,7.75-6.06L152.25,160H192a8,8,0,0,0,0-16H156.25l8-32H200A8,8,0,0,0,208,104Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,Jg,[...i[3]||=[b(`path`,{d:`M224,90H173l8.89-48.93a6,6,0,1,0-11.8-2.14L160.81,90H109l8.89-48.93a6,6,0,0,0-11.8-2.14L96.81,90H48a6,6,0,0,0,0,12H94.63l-9.46,52H32a6,6,0,0,0,0,12H83L74.1,214.93a6,6,0,0,0,4.83,7A5.64,5.64,0,0,0,80,222a6,6,0,0,0,5.89-4.93L95.19,166H147l-8.89,48.93a6,6,0,0,0,4.83,7,5.64,5.64,0,0,0,1.08.1,6,6,0,0,0,5.89-4.93L159.19,166H208a6,6,0,0,0,0-12H161.37l9.46-52H224a6,6,0,0,0,0-12Zm-74.83,64H97.37l9.46-52h51.8Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,Yg,[...i[4]||=[b(`path`,{d:`M224,88H175.4l8.47-46.57a8,8,0,0,0-15.74-2.86l-9,49.43H111.4l8.47-46.57a8,8,0,0,0-15.74-2.86L95.14,88H48a8,8,0,0,0,0,16H92.23L83.5,152H32a8,8,0,0,0,0,16H80.6l-8.47,46.57a8,8,0,0,0,6.44,9.3A7.79,7.79,0,0,0,80,224a8,8,0,0,0,7.86-6.57l9-49.43H144.6l-8.47,46.57a8,8,0,0,0,6.44,9.3A7.79,7.79,0,0,0,144,224a8,8,0,0,0,7.86-6.57l9-49.43H208a8,8,0,0,0,0-16H163.77l8.73-48H224a8,8,0,0,0,0-16Zm-76.5,64H99.77l8.73-48h47.73Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,Xg,[...i[5]||=[b(`path`,{d:`M224,92H170.61l9.33-51.28a4,4,0,1,0-7.88-1.44L162.48,92H106.61l9.33-51.28a4,4,0,1,0-7.88-1.44L98.48,92H48a4,4,0,0,0,0,8H97L86.84,156H32a4,4,0,0,0,0,8H85.39l-9.33,51.28a4,4,0,0,0,3.22,4.65A3.65,3.65,0,0,0,80,220a4,4,0,0,0,3.94-3.29L93.52,164h55.87l-9.33,51.28a4,4,0,0,0,3.22,4.65,3.65,3.65,0,0,0,.72.07,4,4,0,0,0,3.94-3.29L157.52,164H208a4,4,0,0,0,0-8H159l10.19-56H224a4,4,0,0,0,0-8Zm-73.16,64H95l10.19-56H161Z`},null,-1)]])):F(``,!0)],16))}}),Qg={key:0},$g={key:1},e_={key:2},t_={key:3},n_={key:4},r_={key:5},i_=E({name:`ScalarIconLink`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,Qg,[...i[0]||=[b(`path`,{d:`M117.18,188.74a12,12,0,0,1,0,17l-5.12,5.12A58.26,58.26,0,0,1,70.6,228h0A58.62,58.62,0,0,1,29.14,127.92L63.89,93.17a58.64,58.64,0,0,1,98.56,28.11,12,12,0,1,1-23.37,5.44,34.65,34.65,0,0,0-58.22-16.58L46.11,144.89A34.62,34.62,0,0,0,70.57,204h0a34.41,34.41,0,0,0,24.49-10.14l5.11-5.12A12,12,0,0,1,117.18,188.74ZM226.83,45.17a58.65,58.65,0,0,0-82.93,0l-5.11,5.11a12,12,0,0,0,17,17l5.12-5.12a34.63,34.63,0,1,1,49,49L175.1,145.86A34.39,34.39,0,0,1,150.61,156h0a34.63,34.63,0,0,1-33.69-26.72,12,12,0,0,0-23.38,5.44A58.64,58.64,0,0,0,150.56,180h.05a58.28,58.28,0,0,0,41.47-17.17l34.75-34.75a58.62,58.62,0,0,0,0-82.91Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,$g,[...i[1]||=[b(`path`,{d:`M218.34,119.6,183.6,154.34a46.58,46.58,0,0,1-44.31,12.26c-.31.34-.62.67-.95,1L103.6,202.34A46.63,46.63,0,1,1,37.66,136.4L72.4,101.66A46.6,46.6,0,0,1,116.71,89.4c.31-.34.62-.67,1-1L152.4,53.66a46.63,46.63,0,0,1,65.94,65.94Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,7.78,8.22H152a8,8,0,0,0,8-7.78A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,e_,[...i[2]||=[b(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM115.7,192.49a43.31,43.31,0,0,1-55-66.43l25.37-25.37a43.35,43.35,0,0,1,61.25,0,42.9,42.9,0,0,1,9.95,15.43,8,8,0,1,1-15,5.6A27.33,27.33,0,0,0,97.37,112L72,137.37a27.32,27.32,0,0,0,34.68,41.91,8,8,0,1,1,9,13.21Zm79.61-62.55-25.37,25.37A43,43,0,0,1,139.32,168h0a43.35,43.35,0,0,1-40.53-28.12,8,8,0,1,1,15-5.6A27.35,27.35,0,0,0,139.28,152h0a27.14,27.14,0,0,0,19.32-8L184,118.63a27.32,27.32,0,0,0-34.68-41.91,8,8,0,1,1-9-13.21,43.32,43.32,0,0,1,55,66.43Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,t_,[...i[3]||=[b(`path`,{d:`M238,88.18a52.42,52.42,0,0,1-15.4,35.66l-34.75,34.75A52.28,52.28,0,0,1,150.62,174h-.05A52.63,52.63,0,0,1,98,119.9a6,6,0,0,1,6-5.84h.17a6,6,0,0,1,5.83,6.16A40.62,40.62,0,0,0,150.58,162h0a40.4,40.4,0,0,0,28.73-11.9l34.75-34.74A40.63,40.63,0,0,0,156.63,57.9l-11,11a6,6,0,0,1-8.49-8.49l11-11a52.62,52.62,0,0,1,74.43,0A52.83,52.83,0,0,1,238,88.18Zm-127.62,98.9-11,11A40.36,40.36,0,0,1,70.6,210h0a40.63,40.63,0,0,1-28.7-69.36L76.62,105.9A40.63,40.63,0,0,1,146,135.77a6,6,0,0,0,5.83,6.16H152a6,6,0,0,0,6-5.84A52.63,52.63,0,0,0,68.14,97.42L33.38,132.16A52.63,52.63,0,0,0,70.56,222h0a52.26,52.26,0,0,0,37.22-15.42l11-11a6,6,0,1,0-8.49-8.48Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,n_,[...i[4]||=[b(`path`,{d:`M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,16,.45A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,r_,[...i[5]||=[b(`path`,{d:`M236,88.12a50.44,50.44,0,0,1-14.81,34.31l-34.75,34.74A50.33,50.33,0,0,1,150.62,172h-.05A50.63,50.63,0,0,1,100,120a4,4,0,0,1,4-3.89h.11a4,4,0,0,1,3.89,4.11A42.64,42.64,0,0,0,150.58,164h0a42.32,42.32,0,0,0,30.14-12.49l34.75-34.74a42.63,42.63,0,1,0-60.29-60.28l-11,11a4,4,0,0,1-5.66-5.65l11-11A50.64,50.64,0,0,1,236,88.12ZM111.78,188.49l-11,11A42.33,42.33,0,0,1,70.6,212h0a42.63,42.63,0,0,1-30.11-72.77l34.75-34.74A42.63,42.63,0,0,1,148,135.82a4,4,0,0,0,8,.23A50.64,50.64,0,0,0,69.55,98.83L34.8,133.57A50.63,50.63,0,0,0,70.56,220h0a50.33,50.33,0,0,0,35.81-14.83l11-11a4,4,0,1,0-5.65-5.66Z`},null,-1)]])):F(``,!0)],16))}}),a_={key:0},o_={key:1},s_={key:2},c_={key:3},l_={key:4},u_={key:5},d_=E({name:`ScalarIconList`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,a_,[...i[0]||=[b(`path`,{d:`M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM40,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24ZM216,180H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,o_,[...i[1]||=[b(`path`,{d:`M216,64V192H40V64Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,s_,[...i[2]||=[b(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM192,184H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,c_,[...i[3]||=[b(`path`,{d:`M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,l_,[...i[4]||=[b(`path`,{d:`M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,u_,[...i[5]||=[b(`path`,{d:`M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM40,68H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8ZM216,188H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z`},null,-1)]])):F(``,!0)],16))}}),f_={key:0},p_={key:1},m_={key:2},h_={key:3},g_={key:4},__={key:5},v_=E({name:`ScalarIconLockSimple`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,f_,[...i[0]||=[b(`path`,{d:`M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,p_,[...i[1]||=[b(`path`,{d:`M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,m_,[...i[2]||=[b(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,h_,[...i[3]||=[b(`path`,{d:`M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,g_,[...i[4]||=[b(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,__,[...i[5]||=[b(`path`,{d:`M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z`},null,-1)]])):F(``,!0)],16))}}),y_={key:0},b_={key:1},x_={key:2},S_={key:3},C_={key:4},w_={key:5},T_=E({name:`ScalarIconLockSimpleOpen`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,y_,[...i[0]||=[b(`path`,{d:`M208,76H100V56a28,28,0,0,1,28-28c13.51,0,25.65,9.62,28.24,22.39a12,12,0,1,0,23.52-4.78C174.87,21.5,153.1,4,128,4A52.06,52.06,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76Zm-4,128H52V100H204Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,b_,[...i[1]||=[b(`path`,{d:`M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M208,80H96V56a32,32,0,0,1,32-32c15.37,0,29.2,11,32.16,25.59a8,8,0,0,0,15.68-3.18C171.32,24.15,151.2,8,128,8A48.05,48.05,0,0,0,80,56V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80Zm0,128H48V96H208V208Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,x_,[...i[2]||=[b(`path`,{d:`M224,96V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V96A16,16,0,0,1,48,80H80V56A48.05,48.05,0,0,1,128,8c23.2,0,43.32,16.15,47.84,38.41a8,8,0,0,1-15.68,3.18C157.2,35,143.37,24,128,24A32,32,0,0,0,96,56V80H208A16,16,0,0,1,224,96Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,S_,[...i[3]||=[b(`path`,{d:`M208,82H94V56a34,34,0,0,1,34-34c16.3,0,31,11.69,34.12,27.19a6,6,0,0,0,11.76-2.38C169.55,25.48,150.26,10,128,10A46.06,46.06,0,0,0,82,56V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82Zm2,126a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,C_,[...i[4]||=[b(`path`,{d:`M208,80H96V56a32,32,0,0,1,32-32c15.37,0,29.2,11,32.16,25.59a8,8,0,0,0,15.68-3.18C171.32,24.15,151.2,8,128,8A48.05,48.05,0,0,0,80,56V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80Zm0,128H48V96H208V208Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,w_,[...i[5]||=[b(`path`,{d:`M208,84H92V56a36,36,0,0,1,36-36c17.24,0,32.75,12.38,36.08,28.8a4,4,0,1,0,7.84-1.6C167.78,26.81,149.31,12,128,12A44.05,44.05,0,0,0,84,56V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84Zm4,124a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z`},null,-1)]])):F(``,!0)],16))}}),E_={key:0},D_={key:1},O_={key:2},k_={key:3},A_={key:4},j_={key:5},M_=E({name:`ScalarIconMinus`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,E_,[...i[0]||=[b(`path`,{d:`M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,D_,[...i[1]||=[b(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,O_,[...i[2]||=[b(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,k_,[...i[3]||=[b(`path`,{d:`M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,A_,[...i[4]||=[b(`path`,{d:`M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,j_,[...i[5]||=[b(`path`,{d:`M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128Z`},null,-1)]])):F(``,!0)],16))}}),N_={key:0},P_={key:1},F_={key:2},I_={key:3},L_={key:4},R_={key:5},z_=E({name:`ScalarIconPlay`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,N_,[...i[0]||=[b(`path`,{d:`M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,P_,[...i[1]||=[b(`path`,{d:`M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,F_,[...i[2]||=[b(`path`,{d:`M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,I_,[...i[3]||=[b(`path`,{d:`M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,L_,[...i[4]||=[b(`path`,{d:`M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,R_,[...i[5]||=[b(`path`,{d:`M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z`},null,-1)]])):F(``,!0)],16))}}),B_={key:0},V_={key:1},H_={key:2},U_={key:3},W_={key:4},G_={key:5},K_=E({name:`ScalarIconPlugsConnected`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,B_,[...i[0]||=[b(`path`,{d:`M240.49,15.51a12,12,0,0,0-17,0L173.94,65.09l-2.54-2.55a36.05,36.05,0,0,0-50.91,0L100,83l-3.51-3.52a12,12,0,0,0-17,17L83,100,62.54,120.49a36,36,0,0,0,0,50.91l2.55,2.54L15.51,223.51a12,12,0,0,0,17,17l49.57-49.58,2.54,2.55a36.06,36.06,0,0,0,50.91,0L156,173l3.51,3.52a12,12,0,0,0,17-17L173,156l20.49-20.49a36,36,0,0,0,0-50.91l-2.55-2.54,49.58-49.57A12,12,0,0,0,240.49,15.51Zm-121.95,161a12,12,0,0,1-17,0L79.51,154.43a12,12,0,0,1,0-17L100,117l39,39Zm58-57.95h0L156,139l-39-39,20.49-20.49a12,12,0,0,1,17,0l22.06,22.06a12,12,0,0,1,0,17ZM85.27,33.37a12,12,0,0,1,21.46-10.74l8,16A12,12,0,1,1,93.27,49.37Zm-68,57.26a12,12,0,0,1,16.1-5.36l16,8a12,12,0,1,1-10.74,21.46l-16-8A12,12,0,0,1,17.27,90.63Zm221.46,74.74a12,12,0,0,1-16.1,5.36l-16-8a12,12,0,0,1,10.74-21.46l16,8A12,12,0,0,1,238.73,165.37Zm-68,57.26a12,12,0,1,1-21.46,10.74l-8-16a12,12,0,0,1,21.46-10.74Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,V_,[...i[1]||=[b(`path`,{d:`M185,127,127,185a24,24,0,0,1-33.94,0L71,162.91A24,24,0,0,1,71,129L129,71a24,24,0,0,1,33.94,0L185,93.09A24,24,0,0,1,185,127Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M237.66,18.34a8,8,0,0,0-11.32,0l-52.4,52.41-5.37-5.38a32.05,32.05,0,0,0-45.26,0L100,88.69l-6.34-6.35A8,8,0,0,0,82.34,93.66L88.69,100,65.37,123.31a32,32,0,0,0,0,45.26l5.38,5.37-52.41,52.4a8,8,0,0,0,11.32,11.32l52.4-52.41,5.37,5.38a32.06,32.06,0,0,0,45.26,0L156,167.31l6.34,6.35a8,8,0,0,0,11.32-11.32L167.31,156l23.32-23.31a32,32,0,0,0,0-45.26l-5.38-5.37,52.41-52.4A8,8,0,0,0,237.66,18.34Zm-116.29,161a16,16,0,0,1-22.62,0L76.69,157.25a16,16,0,0,1,0-22.62L100,111.31,144.69,156Zm57.94-57.94h0L156,144.69,111.31,100l23.32-23.31a16,16,0,0,1,22.62,0l22.06,22a16,16,0,0,1,0,22.63ZM88.57,35A8,8,0,0,1,103.43,29l8,20A8,8,0,0,1,96.57,55ZM24.57,93A8,8,0,0,1,35,88.57l20,8A8,8,0,0,1,49,111.43l-20-8A8,8,0,0,1,24.57,93ZM231.43,163a8,8,0,0,1-10.4,4.46l-20-8A8,8,0,1,1,207,144.57l20,8A8,8,0,0,1,231.43,163Zm-64,58.06A8,8,0,0,1,152.57,227l-8-20A8,8,0,0,1,159.43,201Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,H_,[...i[2]||=[b(`path`,{d:`M88.57,35A8,8,0,0,1,103.43,29l8,20A8,8,0,0,1,96.57,55ZM29,103.43l20,8A8,8,0,1,0,55,96.57l-20-8A8,8,0,0,0,29,103.43ZM227,152.57l-20-8A8,8,0,1,0,201,159.43l20,8A8,8,0,0,0,227,152.57ZM159.43,201A8,8,0,0,0,144.57,207l8,20A8,8,0,1,0,167.43,221ZM237.91,18.52a8,8,0,0,0-11.5-.18L174,70.75l-5.38-5.38a32,32,0,0,0-45.28,0L106.14,82.54a4,4,0,0,0,0,5.66l61.7,61.66a4,4,0,0,0,5.66,0l16.74-16.74a32.76,32.76,0,0,0,9.81-22.52,31.82,31.82,0,0,0-9.37-23.17l-5.38-5.37,52.2-52.17A8.22,8.22,0,0,0,237.91,18.52ZM85.64,90.34a8,8,0,0,0-11.49.18,8.22,8.22,0,0,0,.41,11.37L80.67,108,65.34,123.31A31.82,31.82,0,0,0,56,146.47,32.75,32.75,0,0,0,65.77,169l5,4.94L18.49,226.13a8.21,8.21,0,0,0-.61,11.1,8,8,0,0,0,11.72.43L82,185.25l5.37,5.38a32.1,32.1,0,0,0,45.29,0L148,175.31l6.34,6.35a8,8,0,0,0,11.32-11.32Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,U_,[...i[3]||=[b(`path`,{d:`M236.24,19.76a6,6,0,0,0-8.48,0L173.94,73.57l-6.79-6.78a30,30,0,0,0-42.42,0L100,91.51l-7.76-7.75a6,6,0,0,0-8.48,8.48L91.51,100,66.79,124.73a30,30,0,0,0,0,42.42l6.78,6.79L19.76,227.76a6,6,0,1,0,8.48,8.48l53.82-53.81,6.79,6.78a30,30,0,0,0,42.42,0L156,164.49l7.76,7.75a6,6,0,0,0,8.48-8.48L164.49,156l24.72-24.73a30,30,0,0,0,0-42.42l-6.78-6.79,53.81-53.82A6,6,0,0,0,236.24,19.76Zm-113.45,161a18,18,0,0,1-25.46,0L75.27,158.67a18,18,0,0,1,0-25.46L100,108.49,147.51,156Zm57.94-57.94L156,147.51,108.49,100l24.72-24.73a18,18,0,0,1,25.46,0l22.06,22.06a18,18,0,0,1,0,25.46ZM90.43,34.23a6,6,0,0,1,11.14-4.46l8,20a6,6,0,1,1-11.14,4.46Zm-64,59.54a6,6,0,0,1,7.8-3.34l20,8a6,6,0,1,1-4.46,11.14l-20-8A6,6,0,0,1,26.43,93.77Zm203.14,68.46a6,6,0,0,1-7.8,3.34l-20-8a6,6,0,0,1,4.46-11.14l20,8A6,6,0,0,1,229.57,162.23Zm-64,59.54a6,6,0,1,1-11.14,4.46l-8-20a6,6,0,0,1,11.14-4.46Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,W_,[...i[4]||=[b(`path`,{d:`M237.66,18.34a8,8,0,0,0-11.32,0l-52.4,52.41-5.37-5.38a32.05,32.05,0,0,0-45.26,0L100,88.69l-6.34-6.35A8,8,0,0,0,82.34,93.66L88.69,100,65.37,123.31a32,32,0,0,0,0,45.26l5.38,5.37-52.41,52.4a8,8,0,0,0,11.32,11.32l52.4-52.41,5.37,5.38a32,32,0,0,0,45.26,0L156,167.31l6.34,6.35a8,8,0,0,0,11.32-11.32L167.31,156l23.32-23.31a32,32,0,0,0,0-45.26l-5.38-5.37,52.41-52.4A8,8,0,0,0,237.66,18.34Zm-116.29,161a16,16,0,0,1-22.62,0L76.69,157.25a16,16,0,0,1,0-22.62L100,111.31,144.69,156Zm57.94-57.94L156,144.69,111.31,100l23.32-23.31a16,16,0,0,1,22.62,0l22.06,22A16,16,0,0,1,179.31,121.37ZM88.57,35A8,8,0,0,1,103.43,29l8,20A8,8,0,0,1,96.57,55ZM24.57,93A8,8,0,0,1,35,88.57l20,8A8,8,0,0,1,49,111.43l-20-8A8,8,0,0,1,24.57,93ZM231.43,163a8,8,0,0,1-10.4,4.46l-20-8A8,8,0,1,1,207,144.57l20,8A8,8,0,0,1,231.43,163Zm-64,58.06A8,8,0,0,1,152.57,227l-8-20A8,8,0,0,1,159.43,201Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,G_,[...i[5]||=[b(`path`,{d:`M234.83,21.17a4,4,0,0,0-5.66,0L173.94,76.4l-8.2-8.2a28,28,0,0,0-39.6,0L100,94.34l-9.17-9.17a4,4,0,0,0-5.66,5.66L94.34,100,68.2,126.14a28,28,0,0,0,0,39.6l8.2,8.2L21.17,229.17a4,4,0,0,0,5.66,5.66L82.06,179.6l8.2,8.2a28,28,0,0,0,39.6,0L156,161.66l9.17,9.17a4,4,0,0,0,5.66-5.66L161.66,156l26.14-26.14a28,28,0,0,0,0-39.6l-8.2-8.2,55.23-55.23A4,4,0,0,0,234.83,21.17Zm-110.63,161a20,20,0,0,1-28.28,0L73.86,160.08a20,20,0,0,1,0-28.28L100,105.66,150.34,156Zm57.94-57.94L156,150.34,105.66,100,131.8,73.86a20,20,0,0,1,28.28,0l22.06,22.06A20,20,0,0,1,182.14,124.2ZM92.29,33.49a4,4,0,1,1,7.42-3l8,20a4,4,0,0,1-2.22,5.2A3.91,3.91,0,0,1,104,56a4,4,0,0,1-3.71-2.51Zm-64,61a4,4,0,0,1,5.2-2.22l20,8A4,4,0,0,1,52,108a3.91,3.91,0,0,1-1.49-.29l-20-8A4,4,0,0,1,28.29,94.51Zm199.42,67A4,4,0,0,1,224,164a3.91,3.91,0,0,1-1.49-.29l-20-8a4,4,0,1,1,3-7.42l20,8A4,4,0,0,1,227.71,161.49Zm-64,61a4,4,0,0,1-2.22,5.2A3.91,3.91,0,0,1,160,228a4,4,0,0,1-3.71-2.51l-8-20a4,4,0,0,1,7.42-3Z`},null,-1)]])):F(``,!0)],16))}}),q_={key:0},J_={key:1},Y_={key:2},X_={key:3},Z_={key:4},Q_={key:5},$_=E({name:`ScalarIconScroll`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,q_,[...i[0]||=[b(`path`,{d:`M92,92a12,12,0,0,1,12-12h60a12,12,0,0,1,0,24H104A12,12,0,0,1,92,92Zm12,52h60a12,12,0,0,0,0-24H104a12,12,0,0,0,0,24Zm132,48a36,36,0,0,1-36,36H88a36,36,0,0,1-36-36V64a12,12,0,0,0-24,0c0,3.73,3.35,6.51,3.38,6.54l-.18-.14h0A12,12,0,1,1,16.81,89.59h0C15.49,88.62,4,79.55,4,64A36,36,0,0,1,40,28H176a36,36,0,0,1,36,36V164h4a12,12,0,0,1,7.2,2.4C224.51,167.38,236,176.45,236,192ZM92.62,172.2A12,12,0,0,1,104,164h84V64a12,12,0,0,0-12-12H73.94A35.88,35.88,0,0,1,76,64V192a12,12,0,0,0,24,0c0-3.58-3.17-6.38-3.2-6.4A12,12,0,0,1,92.62,172.2ZM212,192a7.69,7.69,0,0,0-1.24-4h-87a30.32,30.32,0,0,1,.26,4,35.84,35.84,0,0,1-2.06,12H200A12,12,0,0,0,212,192Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,J_,[...i[1]||=[b(`path`,{d:`M200,176H104s8,6,8,16a24,24,0,0,1-48,0V64A24,24,0,0,0,40,40H176a24,24,0,0,1,24,24Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,Y_,[...i[2]||=[b(`path`,{d:`M220.8,169.6A8,8,0,0,0,216,168h-8V64a32,32,0,0,0-32-32H40A32,32,0,0,0,8,64C8,77.61,18.05,85.54,19.2,86.4h0A7.89,7.89,0,0,0,24,88a8,8,0,0,0,4.87-14.33h0C28.83,73.62,24,69.74,24,64a16,16,0,0,1,32,0V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32C232,178.39,222,170.46,220.8,169.6ZM104,96h64a8,8,0,0,1,0,16H104a8,8,0,0,1,0-16Zm-8,40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Zm104,72H107.71A31.82,31.82,0,0,0,112,192a26.92,26.92,0,0,0-1.21-8h102a12.58,12.58,0,0,1,3.23,8A16,16,0,0,1,200,208Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,X_,[...i[3]||=[b(`path`,{d:`M98,136a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H104A6,6,0,0,1,98,136Zm6-26h64a6,6,0,0,0,0-12H104a6,6,0,0,0,0,12Zm126,82a30,30,0,0,1-30,30H88a30,30,0,0,1-30-30V64a18,18,0,0,0-36,0c0,6.76,5.58,11.19,5.64,11.23A6,6,0,1,1,20.4,84.8C20,84.48,10,76.85,10,64A30,30,0,0,1,40,34H176a30,30,0,0,1,30,30V170h10a6,6,0,0,1,3.6,1.2C220,171.52,230,179.15,230,192Zm-124,0c0-6.76-5.59-11.19-5.64-11.23A6,6,0,0,1,104,170h90V64a18,18,0,0,0-18-18H64a29.82,29.82,0,0,1,6,18V192a18,18,0,0,0,36,0Zm112,0a14.94,14.94,0,0,0-4.34-10H115.88A24.83,24.83,0,0,1,118,192a29.87,29.87,0,0,1-6,18h88A18,18,0,0,0,218,192Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,Z_,[...i[4]||=[b(`path`,{d:`M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,Q_,[...i[5]||=[b(`path`,{d:`M100,104a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H104A4,4,0,0,1,100,104Zm4,36h64a4,4,0,0,0,0-8H104a4,4,0,0,0,0,8Zm124,52a28,28,0,0,1-28,28H88a28,28,0,0,1-28-28V64a20,20,0,0,0-40,0c0,7.78,6.34,12.75,6.4,12.8a4,4,0,1,1-4.8,6.4C21.21,82.91,12,75.86,12,64A28,28,0,0,1,40,36H176a28,28,0,0,1,28,28V172h12a4,4,0,0,1,2.4.8C218.79,173.09,228,180.14,228,192Zm-120,0c0-7.78-6.34-12.75-6.4-12.8A4,4,0,0,1,104,172h92V64a20,20,0,0,0-20-20H59.57A27.9,27.9,0,0,1,68,64V192a20,20,0,0,0,40,0Zm112,0c0-6-3.74-10.3-5.5-12H112.61A23.31,23.31,0,0,1,116,192a27.94,27.94,0,0,1-8.42,20H200A20,20,0,0,0,220,192Z`},null,-1)]])):F(``,!0)],16))}}),ev={key:0},tv={key:1},nv={key:2},rv={key:3},iv={key:4},av={key:5},ov=E({name:`ScalarIconSparkle`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,ev,[...i[0]||=[b(`path`,{d:`M199,125.31l-49.88-18.39L130.69,57a19.92,19.92,0,0,0-37.38,0L74.92,106.92,25,125.31a19.92,19.92,0,0,0,0,37.38l49.88,18.39L93.31,231a19.92,19.92,0,0,0,37.38,0l18.39-49.88L199,162.69a19.92,19.92,0,0,0,0-37.38Zm-63.38,35.16a12,12,0,0,0-7.11,7.11L112,212.28l-16.47-44.7a12,12,0,0,0-7.11-7.11L43.72,144l44.7-16.47a12,12,0,0,0,7.11-7.11L112,75.72l16.47,44.7a12,12,0,0,0,7.11,7.11L180.28,144ZM140,40a12,12,0,0,1,12-12h12V16a12,12,0,0,1,24,0V28h12a12,12,0,0,1,0,24H188V64a12,12,0,0,1-24,0V52H152A12,12,0,0,1,140,40ZM252,88a12,12,0,0,1-12,12h-4v4a12,12,0,0,1-24,0v-4h-4a12,12,0,0,1,0-24h4V72a12,12,0,0,1,24,0v4h4A12,12,0,0,1,252,88Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,tv,[...i[1]||=[b(`path`,{d:`M194.82,151.43l-55.09,20.3-20.3,55.09a7.92,7.92,0,0,1-14.86,0l-20.3-55.09-55.09-20.3a7.92,7.92,0,0,1,0-14.86l55.09-20.3,20.3-55.09a7.92,7.92,0,0,1,14.86,0l20.3,55.09,55.09,20.3A7.92,7.92,0,0,1,194.82,151.43Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,nv,[...i[2]||=[b(`path`,{d:`M208,144a15.78,15.78,0,0,1-10.42,14.94L146,178l-19,51.62a15.92,15.92,0,0,1-29.88,0L78,178l-51.62-19a15.92,15.92,0,0,1,0-29.88L78,110l19-51.62a15.92,15.92,0,0,1,29.88,0L146,110l51.62,19A15.78,15.78,0,0,1,208,144ZM152,48h16V64a8,8,0,0,0,16,0V48h16a8,8,0,0,0,0-16H184V16a8,8,0,0,0-16,0V32H152a8,8,0,0,0,0,16Zm88,32h-8V72a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0V96h8a8,8,0,0,0,0-16Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,rv,[...i[3]||=[b(`path`,{d:`M196.89,130.94,144.4,111.6,125.06,59.11a13.92,13.92,0,0,0-26.12,0L79.6,111.6,27.11,130.94a13.92,13.92,0,0,0,0,26.12L79.6,176.4l19.34,52.49a13.92,13.92,0,0,0,26.12,0L144.4,176.4l52.49-19.34a13.92,13.92,0,0,0,0-26.12Zm-4.15,14.86-55.08,20.3a6,6,0,0,0-3.56,3.56l-20.3,55.08a1.92,1.92,0,0,1-3.6,0L89.9,169.66a6,6,0,0,0-3.56-3.56L31.26,145.8a1.92,1.92,0,0,1,0-3.6l55.08-20.3a6,6,0,0,0,3.56-3.56l20.3-55.08a1.92,1.92,0,0,1,3.6,0l20.3,55.08a6,6,0,0,0,3.56,3.56l55.08,20.3a1.92,1.92,0,0,1,0,3.6ZM146,40a6,6,0,0,1,6-6h18V16a6,6,0,0,1,12,0V34h18a6,6,0,0,1,0,12H182V64a6,6,0,0,1-12,0V46H152A6,6,0,0,1,146,40ZM246,88a6,6,0,0,1-6,6H230v10a6,6,0,0,1-12,0V94H208a6,6,0,0,1,0-12h10V72a6,6,0,0,1,12,0V82h10A6,6,0,0,1,246,88Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,iv,[...i[4]||=[b(`path`,{d:`M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,av,[...i[5]||=[b(`path`,{d:`M196.2,132.81l-53.36-19.65L123.19,59.8a11.93,11.93,0,0,0-22.38,0L81.16,113.16,27.8,132.81a11.93,11.93,0,0,0,0,22.38l53.36,19.65,19.65,53.36a11.93,11.93,0,0,0,22.38,0l19.65-53.36,53.36-19.65a11.93,11.93,0,0,0,0-22.38Zm-2.77,14.87L138.35,168a4,4,0,0,0-2.37,2.37l-20.3,55.08a3.92,3.92,0,0,1-7.36,0L88,170.35A4,4,0,0,0,85.65,168l-55.08-20.3a3.92,3.92,0,0,1,0-7.36L85.65,120A4,4,0,0,0,88,117.65l20.3-55.08a3.92,3.92,0,0,1,7.36,0L136,117.65a4,4,0,0,0,2.37,2.37l55.08,20.3a3.92,3.92,0,0,1,0,7.36ZM148,40a4,4,0,0,1,4-4h20V16a4,4,0,0,1,8,0V36h20a4,4,0,0,1,0,8H180V64a4,4,0,0,1-8,0V44H152A4,4,0,0,1,148,40Zm96,48a4,4,0,0,1-4,4H228v12a4,4,0,0,1-8,0V92H208a4,4,0,0,1,0-8h12V72a4,4,0,0,1,8,0V84h12A4,4,0,0,1,244,88Z`},null,-1)]])):F(``,!0)],16))}}),sv={key:0},cv={key:1},lv={key:2},uv={key:3},dv={key:4},fv={key:5},pv=E({name:`ScalarIconTag`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,sv,[...i[0]||=[b(`path`,{d:`M246.15,133.18,146.83,33.86A19.85,19.85,0,0,0,132.69,28H40A12,12,0,0,0,28,40v92.69a19.85,19.85,0,0,0,5.86,14.14l99.32,99.32a20,20,0,0,0,28.28,0l84.69-84.69A20,20,0,0,0,246.15,133.18Zm-98.83,93.17L52,131V52h79l95.32,95.32ZM104,88A16,16,0,1,1,88,72,16,16,0,0,1,104,88Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,cv,[...i[1]||=[b(`path`,{d:`M237.66,153,153,237.66a8,8,0,0,1-11.31,0L42.34,138.34A8,8,0,0,1,40,132.69V40h92.69a8,8,0,0,1,5.65,2.34l99.32,99.32A8,8,0,0,1,237.66,153Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63Zm-96,96L48,132.69V48h84.69L232,147.31ZM96,84A12,12,0,1,1,84,72,12,12,0,0,1,96,84Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,lv,[...i[2]||=[b(`path`,{d:`M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63ZM84,96A12,12,0,1,1,96,84,12,12,0,0,1,84,96Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,uv,[...i[3]||=[b(`path`,{d:`M241.91,137.42,142.59,38.1a13.94,13.94,0,0,0-9.9-4.1H40a6,6,0,0,0-6,6v92.69a13.94,13.94,0,0,0,4.1,9.9l99.32,99.32a14,14,0,0,0,19.8,0l84.69-84.69A14,14,0,0,0,241.91,137.42Zm-8.49,11.31-84.69,84.69a2,2,0,0,1-2.83,0L46.59,134.1a2,2,0,0,1-.59-1.41V46h86.69a2,2,0,0,1,1.41.59l99.32,99.31A2,2,0,0,1,233.42,148.73ZM94,84A10,10,0,1,1,84,74,10,10,0,0,1,94,84Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,dv,[...i[4]||=[b(`path`,{d:`M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63Zm-96,96L48,132.69V48h84.69L232,147.31ZM96,84A12,12,0,1,1,84,72,12,12,0,0,1,96,84Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,fv,[...i[5]||=[b(`path`,{d:`M240.49,138.83,141.17,39.51A11.93,11.93,0,0,0,132.69,36H40a4,4,0,0,0-4,4v92.69a11.93,11.93,0,0,0,3.51,8.48l99.32,99.32a12,12,0,0,0,17,0l84.69-84.69a12,12,0,0,0,0-17Zm-5.66,11.31-84.69,84.69a4,4,0,0,1-5.65,0L45.17,135.51A4,4,0,0,1,44,132.69V44h88.69a4,4,0,0,1,2.82,1.17l99.32,99.32A4,4,0,0,1,234.83,150.14ZM92,84a8,8,0,1,1-8-8A8,8,0,0,1,92,84Z`},null,-1)]])):F(``,!0)],16))}}),mv={key:0},hv={key:1},gv={key:2},_v={key:3},vv={key:4},yv={key:5},bv=E({name:`ScalarIconTerminalWindow`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,mv,[...i[0]||=[b(`path`,{d:`M72.5,150.63,100.79,128,72.5,105.37a12,12,0,1,1,15-18.74l40,32a12,12,0,0,1,0,18.74l-40,32a12,12,0,0,1-15-18.74ZM144,172h32a12,12,0,0,0,0-24H144a12,12,0,0,0,0,24ZM236,56V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V196H212Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,hv,[...i[1]||=[b(`path`,{d:`M224,56V200a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M128,128a8,8,0,0,1-3,6.25l-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32A8,8,0,0,1,128,128Zm48,24H136a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm56-96V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,gv,[...i[2]||=[b(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm-91,94.25-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32a8,8,0,0,1,0,12.5ZM176,168H136a8,8,0,0,1,0-16h40a8,8,0,0,1,0,16Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,_v,[...i[3]||=[b(`path`,{d:`M126,128a6,6,0,0,1-2.25,4.69l-40,32a6,6,0,0,1-7.5-9.38L110.4,128,76.25,100.69a6,6,0,1,1,7.5-9.38l40,32A6,6,0,0,1,126,128Zm50,26H136a6,6,0,0,0,0,12h40a6,6,0,0,0,0-12Zm54-98V200a14,14,0,0,1-14,14H40a14,14,0,0,1-14-14V56A14,14,0,0,1,40,42H216A14,14,0,0,1,230,56Zm-12,0a2,2,0,0,0-2-2H40a2,2,0,0,0-2,2V200a2,2,0,0,0,2,2H216a2,2,0,0,0,2-2Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,vv,[...i[4]||=[b(`path`,{d:`M128,128a8,8,0,0,1-3,6.25l-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32A8,8,0,0,1,128,128Zm48,24H136a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm56-96V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,yv,[...i[5]||=[b(`path`,{d:`M122.5,124.88a4,4,0,0,1,0,6.24l-40,32a4,4,0,0,1-5-6.24L113.6,128,77.5,99.12a4,4,0,0,1,5-6.24ZM176,156H136a4,4,0,0,0,0,8h40a4,4,0,0,0,0-8ZM228,56V200a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V56A12,12,0,0,1,40,44H216A12,12,0,0,1,228,56Zm-8,0a4,4,0,0,0-4-4H40a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H216a4,4,0,0,0,4-4Z`},null,-1)]])):F(``,!0)],16))}}),xv={key:0},Sv={key:1},Cv={key:2},wv={key:3},Tv={key:4},Ev={key:5},Dv=E({name:`ScalarIconTextAlignLeft`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,xv,[...i[0]||=[b(`path`,{d:`M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,52H168a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm176,16H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Zm-48,40H40a12,12,0,0,0,0,24H168a12,12,0,0,0,0-24Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,Sv,[...i[1]||=[b(`path`,{d:`M216,64V168a16,16,0,0,1-16,16H40V64Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,48H168a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm176,24H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm-48,40H40a8,8,0,0,0,0,16H168a8,8,0,0,0,0-16Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,Cv,[...i[2]||=[b(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM160,184H64a8,8,0,0,1,0-16h96a8,8,0,0,1,0,16Zm32-32H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16ZM56,112a8,8,0,0,1,8-8h96a8,8,0,0,1,0,16H64A8,8,0,0,1,56,112ZM192,88H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,wv,[...i[3]||=[b(`path`,{d:`M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,46H168a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm176,28H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Zm-48,40H40a6,6,0,0,0,0,12H168a6,6,0,0,0,0-12Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,Tv,[...i[4]||=[b(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,48H168a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm176,24H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm-48,40H40a8,8,0,0,0,0,16H168a8,8,0,0,0,0-16Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,Ev,[...i[5]||=[b(`path`,{d:`M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,44H168a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm176,32H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Zm-48,40H40a4,4,0,0,0,0,8H168a4,4,0,0,0,0-8Z`},null,-1)]])):F(``,!0)],16))}}),Ov={key:0},kv={key:1},Av={key:2},jv={key:3},Mv={key:4},Nv={key:5},Pv=E({name:`ScalarIconWarningOctagon`,props:{label:{},weight:{}},setup(e){let{bind:n,weight:r}=ko(e);return(e,i)=>(D(),x(`svg`,w({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(n)),[P(e.$slots,`default`),t(r)===`bold`?(D(),x(`g`,Ov,[...i[0]||=[b(`path`,{d:`M116,132V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0ZM236,91.55v72.9a19.86,19.86,0,0,1-5.86,14.14l-51.55,51.55A19.85,19.85,0,0,1,164.45,236H91.55a19.85,19.85,0,0,1-14.14-5.86L25.86,178.59A19.86,19.86,0,0,1,20,164.45V91.55a19.86,19.86,0,0,1,5.86-14.14L77.41,25.86A19.85,19.85,0,0,1,91.55,20h72.9a19.85,19.85,0,0,1,14.14,5.86l51.55,51.55A19.86,19.86,0,0,1,236,91.55Zm-24,1.66L162.79,44H93.21L44,93.21v69.58L93.21,212h69.58L212,162.79ZM128,156a16,16,0,1,0,16,16A16,16,0,0,0,128,156Z`},null,-1)]])):t(r)===`duotone`?(D(),x(`g`,kv,[...i[1]||=[b(`path`,{d:`M224,91.55v72.9a8,8,0,0,1-2.34,5.66l-51.55,51.55a8,8,0,0,1-5.66,2.34H91.55a8,8,0,0,1-5.66-2.34L34.34,170.11A8,8,0,0,1,32,164.45V91.55a8,8,0,0,1,2.34-5.66L85.89,34.34A8,8,0,0,1,91.55,32h72.9a8,8,0,0,1,5.66,2.34l51.55,51.55A8,8,0,0,1,224,91.55Z`,opacity:`0.2`},null,-1),b(`path`,{d:`M120,136V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0ZM232,91.55v72.9a15.86,15.86,0,0,1-4.69,11.31l-51.55,51.55A15.86,15.86,0,0,1,164.45,232H91.55a15.86,15.86,0,0,1-11.31-4.69L28.69,175.76A15.86,15.86,0,0,1,24,164.45V91.55a15.86,15.86,0,0,1,4.69-11.31L80.24,28.69A15.86,15.86,0,0,1,91.55,24h72.9a15.86,15.86,0,0,1,11.31,4.69l51.55,51.55A15.86,15.86,0,0,1,232,91.55Zm-16,0L164.45,40H91.55L40,91.55v72.9L91.55,216h72.9L216,164.45ZM128,160a12,12,0,1,0,12,12A12,12,0,0,0,128,160Z`},null,-1)]])):t(r)===`fill`?(D(),x(`g`,Av,[...i[2]||=[b(`path`,{d:`M227.31,80.23,175.77,28.69A16.13,16.13,0,0,0,164.45,24H91.55a16.13,16.13,0,0,0-11.32,4.69L28.69,80.23A16.13,16.13,0,0,0,24,91.55v72.9a16.13,16.13,0,0,0,4.69,11.32l51.54,51.54A16.13,16.13,0,0,0,91.55,232h72.9a16.13,16.13,0,0,0,11.32-4.69l51.54-51.54A16.13,16.13,0,0,0,232,164.45V91.55A16.13,16.13,0,0,0,227.31,80.23ZM120,80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z`},null,-1)]])):t(r)===`light`?(D(),x(`g`,jv,[...i[3]||=[b(`path`,{d:`M122,136V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0ZM230,91.55v72.9a13.92,13.92,0,0,1-4.1,9.9L174.35,225.9a13.92,13.92,0,0,1-9.9,4.1H91.55a13.92,13.92,0,0,1-9.9-4.1L30.1,174.35a13.92,13.92,0,0,1-4.1-9.9V91.55a13.92,13.92,0,0,1,4.1-9.9L81.65,30.1a13.92,13.92,0,0,1,9.9-4.1h72.9a13.92,13.92,0,0,1,9.9,4.1L225.9,81.65A13.92,13.92,0,0,1,230,91.55Zm-12,0a2,2,0,0,0-.59-1.42L165.87,38.59a2,2,0,0,0-1.42-.59H91.55a2,2,0,0,0-1.41.59L38.58,90.13A2,2,0,0,0,38,91.55v72.9a2,2,0,0,0,.59,1.42l51.54,51.54a2,2,0,0,0,1.42.59h72.9a2,2,0,0,0,1.41-.59l51.56-51.54a2,2,0,0,0,.58-1.42ZM128,162a10,10,0,1,0,10,10A10,10,0,0,0,128,162Z`},null,-1)]])):t(r)===`regular`?(D(),x(`g`,Mv,[...i[4]||=[b(`path`,{d:`M120,136V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0ZM232,91.55v72.9a15.86,15.86,0,0,1-4.69,11.31l-51.55,51.55A15.86,15.86,0,0,1,164.45,232H91.55a15.86,15.86,0,0,1-11.31-4.69L28.69,175.76A15.86,15.86,0,0,1,24,164.45V91.55a15.86,15.86,0,0,1,4.69-11.31L80.24,28.69A15.86,15.86,0,0,1,91.55,24h72.9a15.86,15.86,0,0,1,11.31,4.69l51.55,51.55A15.86,15.86,0,0,1,232,91.55Zm-16,0L164.45,40H91.55L40,91.55v72.9L91.55,216h72.9L216,164.45ZM128,160a12,12,0,1,0,12,12A12,12,0,0,0,128,160Z`},null,-1)]])):t(r)===`thin`?(D(),x(`g`,Nv,[...i[5]||=[b(`path`,{d:`M124,136V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0ZM228,91.55v72.9a12,12,0,0,1-3.51,8.49l-51.55,51.55a12,12,0,0,1-8.49,3.51H91.55a12,12,0,0,1-8.49-3.51L31.51,172.94A12,12,0,0,1,28,164.45V91.55a12,12,0,0,1,3.51-8.49L83.06,31.51A12,12,0,0,1,91.55,28h72.9a12,12,0,0,1,8.49,3.51l51.55,51.55A12,12,0,0,1,228,91.55Zm-8,0a4,4,0,0,0-1.17-2.83L167.28,37.17A4.06,4.06,0,0,0,164.45,36H91.55a4.06,4.06,0,0,0-2.83,1.17L37.17,88.72A4,4,0,0,0,36,91.55v72.9a4,4,0,0,0,1.17,2.83l51.55,51.55A4.06,4.06,0,0,0,91.55,220h72.9a4.06,4.06,0,0,0,2.83-1.17l51.55-51.55a4,4,0,0,0,1.17-2.83ZM128,164a8,8,0,1,0,8,8A8,8,0,0,0,128,164Z`},null,-1)]])):F(``,!0)],16))}}),Fv=100,Iv=e=>{if(window.getComputedStyle(e).display!==`contents`)return e;for(let t of e.children)if(t instanceof HTMLElement&&t.offsetParent!==null)return t;return e},Lv=e=>e.dataset.sidebarType===`heading`?e.querySelector(`.sidebar-heading`)?.offsetHeight??0:0,Rv=(e,t)=>{let n=e.offsetTop,r=e.offsetParent;for(;r&&r!==t;)n+=r.offsetTop,r=r.offsetParent;return n},zv=(e,t=Fv)=>{if(typeof window>`u`)return;let n=document.querySelector(`[data-sidebar-id="${e}"]`),r=n?.closest(`.custom-scroll, .custom-scrollbar`)??null;if(!n||!r)return;let i=Rv(Iv(n),r)+Lv(n)-t;r.scrollTo({top:i>0?i:0})},Bv=[`aria-selected`],Vv={key:0,class:`flex h-fit items-center text-sm font-medium text-c-3 group-hover:text-c-1`},Hv={class:`flex min-w-0 flex-1 flex-col gap-0.5`},Uv={class:`flex items-center gap-1`},Wv={class:`flex-1 truncate zoomed:whitespace-normal! wrap-break-word font-medium`},Gv={key:0,class:`text-base text-c-2`},Kv={key:0,class:`truncate zoomed:whitespace-normal! wrap-break-word text-c-2`},qv=E({inheritAttrs:!1,__name:`ScalarSearchResultItem`,props:{icon:{type:[Object,Function]},selected:{type:Boolean}},setup(e){let{cx:n}=Ut();return(r,i)=>(D(),x(`a`,w({"aria-selected":e.selected,role:`option`,tabindex:`-1`},t(n)(`group flex cursor-pointer gap-2 rounded px-2 py-1.5 no-underline hover:bg-b-2 text-base/5`,{"bg-b-2":e.selected})),[e.icon?(D(),x(`div`,Vv,[P(r.$slots,`icon`,{},()=>[e.icon?(D(),N(t(Yt),{key:0,class:`size-4`,icon:e.icon},null,8,[`icon`])):F(``,!0)]),i[0]||=b(`span`,null,` `,-1)])):F(``,!0),b(`div`,Hv,[b(`div`,Uv,[b(`div`,Wv,[P(r.$slots,`default`)]),r.$slots.addon?(D(),x(`div`,Gv,[P(r.$slots,`addon`)])):F(``,!0)]),r.$slots.description?(D(),x(`div`,Kv,[P(r.$slots,`description`)])):F(``,!0)])],16,Bv))}}),Jv=E({inheritAttrs:!1,__name:`ScalarSearchResultList`,props:{noResults:{type:Boolean}},setup(e){let{cx:n}=Ut();return(r,i)=>(D(),x(`div`,w({role:`listbox`},t(n)(`flex flex-col`)),[e.noResults?P(r.$slots,`noResults`,{key:0},()=>[i[0]||=b(`div`,{class:`flex flex-col items-center gap-2 px-3 py-4`},[b(`div`,{class:`text-base font-medium text-c-2`,role:`alert`},` No results found `)],-1)]):F(``,!0),P(r.$slots,`default`)],16))}}),Yv={class:`sr-only`},Xv={class:`inline-flex items-center gap-1`},Zv={class:`sr-only`},Qv={class:`sr-only`},$v={class:`sr-only`},ey=E({__name:`SearchResult`,props:{id:{},isSelected:{type:Boolean},result:{},modelsSectionLabel:{default:()=>er}},setup(e){let{translate:n}=Z(),r={heading:Dv,model:ng,operation:bv,tag:pv,webhook:bv},i=T(()=>({heading:n(`search.entryHeading`),operation:n(`search.entryOperation`),tag:n(`search.entryTag`),model:e.modelsSectionLabel,webhook:n(`search.entryWebhook`)}));return(a,o)=>(D(),N(t(qv),{id:e.id,icon:r[e.result.item.type],selected:e.isSelected},pe({default:k(()=>[b(`span`,{class:C({"text-decoration-line":e.result.item.entry.type===`operation`&&e.result.item.entry.isDeprecated})},[b(`span`,Yv,[d(A(i.value[e.result.item.type])+`:\xA0 `,1),e.result.item.entry.type===`operation`&&e.result.item.entry.isDeprecated?(D(),x(O,{key:0},[d(` (`+A(t(n)(`common.deprecated`))+`)\xA0 `,1)],64)):F(``,!0)]),d(` `+A(e.result.item.title)+` `,1),o[0]||=b(`span`,{class:`sr-only`},`,`,-1)],2)]),_:2},[e.result.item.type!==`webhook`&&(e.result.item.method||e.result.item.path)&&e.result.item.path!==e.result.item.title?{name:`description`,fn:k(()=>[b(`span`,Xv,[e.result.item.type===`operation`?(D(),x(O,{key:0},[u(t(jr),{"aria-hidden":`true`,method:e.result.item.method??`get`},null,8,[`method`]),b(`span`,Zv,A(t(n)(`common.httpMethod`))+`: `+A(e.result.item.method??`get`),1)],64)):F(``,!0),b(`span`,Qv,A(t(n)(`common.path`))+`:\xA0`,1),d(` `+A(e.result.item.path),1)])]),key:`0`}:e.result.item.description?{name:`description`,fn:k(()=>[b(`span`,$v,A(t(n)(`common.description`))+`:\xA0`,1),d(` `+A(e.result.item.description),1)]),key:`1`}:void 0]),1032,[`id`,`icon`,`selected`]))}}),ty=E({props:{onFocus:{type:Function,required:!0}},setup(e){let t=n(!0);return()=>t.value?c(za,{as:`button`,type:`button`,features:Nn.Focusable,onFocus(n){n.preventDefault();let r,i=50;function a(){var n;if(i--<=0){r&&cancelAnimationFrame(r);return}if((n=e.onFocus)!=null&&n.call(e)){t.value=!1,cancelAnimationFrame(r);return}r=requestAnimationFrame(a)}r=requestAnimationFrame(a)}}):null}}),ny=(e=>(e[e.Forwards=0]=`Forwards`,e[e.Backwards=1]=`Backwards`,e))(ny||{}),ry=(e=>(e[e.Less=-1]=`Less`,e[e.Equal=0]=`Equal`,e[e.Greater=1]=`Greater`,e))(ry||{}),iy=Symbol(`TabsContext`);function ay(e){let t=h(iy,null);if(t===null){let t=Error(`<${e} /> is missing a parent <TabGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ay),t}return t}var oy=Symbol(`TabsSSRContext`),sy=E({name:`TabGroup`,emits:{change:e=>!0},props:{as:{type:[Object,String],default:`template`},selectedIndex:{type:[Number],default:null},defaultIndex:{type:[Number],default:0},vertical:{type:[Boolean],default:!1},manual:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:r,emit:i}){let a=n(e.selectedIndex??e.defaultIndex),o=n([]),s=n([]),l=T(()=>e.selectedIndex!==null),u=T(()=>l.value?e.selectedIndex:a.value);function d(e){let t=Fi(f.tabs.value,pi),n=Fi(f.panels.value,pi),r=t.filter(e=>{var t;return!((t=pi(e))!=null&&t.hasAttribute(`disabled`))});if(e<0||e>t.length-1){let i=$i(a.value===null?0:Math.sign(e-a.value),{[-1]:()=>1,0:()=>$i(Math.sign(e),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0}),o=$i(i,{0:()=>t.indexOf(r[0]),1:()=>t.indexOf(r[r.length-1])});o!==-1&&(a.value=o),f.tabs.value=t,f.panels.value=n}else{let i=t.slice(0,e),o=[...t.slice(e),...i].find(e=>r.includes(e));if(!o)return;let s=t.indexOf(o)??f.selectedIndex.value;s===-1&&(s=f.selectedIndex.value),a.value=s,f.tabs.value=t,f.panels.value=n}}let f={selectedIndex:T(()=>a.value??e.defaultIndex??null),orientation:T(()=>e.vertical?`vertical`:`horizontal`),activation:T(()=>e.manual?`manual`:`auto`),tabs:o,panels:s,setSelectedIndex(e){u.value!==e&&i(`change`,e),l.value||d(e)},registerTab(e){if(o.value.includes(e))return;let t=o.value[a.value];if(o.value.push(e),o.value=Fi(o.value,pi),!l.value){let e=o.value.indexOf(t)??a.value;e!==-1&&(a.value=e)}},unregisterTab(e){let t=o.value.indexOf(e);t!==-1&&o.value.splice(t,1)},registerPanel(e){s.value.includes(e)||(s.value.push(e),s.value=Fi(s.value,pi))},unregisterPanel(e){let t=s.value.indexOf(e);t!==-1&&s.value.splice(t,1)}};se(iy,f);let p=n({tabs:[],panels:[]}),h=n(!1);ie(()=>{h.value=!0}),se(oy,T(()=>h.value?null:p.value));let g=T(()=>e.selectedIndex);return ie(()=>{m([g],()=>d(e.selectedIndex??e.defaultIndex),{immediate:!0})}),re(()=>{if(!l.value||u.value==null||f.tabs.value.length<=0)return;let e=Fi(f.tabs.value,pi);e.some((e,t)=>pi(f.tabs.value[t])!==pi(e))&&f.setSelectedIndex(e.findIndex(e=>pi(e)===pi(f.tabs.value[u.value])))}),()=>{let n={selectedIndex:a.value};return c(O,[o.value.length<=0&&c(ty,{onFocus:()=>{for(let e of o.value){let t=pi(e);if(t?.tabIndex===0)return t.focus(),!0}return!1}}),$r({theirProps:{...r,...ii(e,[`selectedIndex`,`defaultIndex`,`manual`,`vertical`,`onChange`])},ourProps:{},slot:n,slots:t,attrs:r,name:`TabGroup`})])}}}),cy=E({name:`TabList`,props:{as:{type:[Object,String],default:`div`}},setup(e,{attrs:t,slots:n}){let r=ay(`TabList`);return()=>{let i={selectedIndex:r.selectedIndex.value},a={role:`tablist`,"aria-orientation":r.orientation.value};return $r({ourProps:a,theirProps:e,slot:i,attrs:t,slots:n,name:`TabList`})}}}),ly=E({name:`Tab`,props:{as:{type:[Object,String],default:`button`},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:i}){let a=e.id??`headlessui-tabs-tab-${Oa()}`,o=ay(`Tab`),s=n(null);i({el:s,$el:s}),ie(()=>o.registerTab(s)),oe(()=>o.unregisterTab(s));let c=h(oy),l=T(()=>{if(c.value){let e=c.value.tabs.indexOf(a);return e===-1?c.value.tabs.push(a)-1:e}return-1}),u=T(()=>{let e=o.tabs.value.indexOf(s);return e===-1?l.value:e}),d=T(()=>u.value===o.selectedIndex.value);function f(e){let t=e();if(t===wa.Success&&o.activation.value===`auto`){let e=Ua(s)?.activeElement,t=o.tabs.value.findIndex(t=>pi(t)===e);t!==-1&&o.setSelectedIndex(t)}return t}function p(e){let t=o.tabs.value.map(e=>pi(e)).filter(Boolean);if(e.key===Ln.Space||e.key===Ln.Enter){e.preventDefault(),e.stopPropagation(),o.setSelectedIndex(u.value);return}switch(e.key){case Ln.Home:case Ln.PageUp:return e.preventDefault(),e.stopPropagation(),f(()=>to(t,It.First));case Ln.End:case Ln.PageDown:return e.preventDefault(),e.stopPropagation(),f(()=>to(t,It.Last))}if(f(()=>$i(o.orientation.value,{vertical(){return e.key===Ln.ArrowUp?to(t,It.Previous|It.WrapAround):e.key===Ln.ArrowDown?to(t,It.Next|It.WrapAround):wa.Error},horizontal(){return e.key===Ln.ArrowLeft?to(t,It.Previous|It.WrapAround):e.key===Ln.ArrowRight?to(t,It.Next|It.WrapAround):wa.Error}}))===wa.Success)return e.preventDefault()}let m=n(!1);function g(){var t;m.value||(m.value=!0,!e.disabled&&((t=pi(s))==null||t.focus({preventScroll:!0}),o.setSelectedIndex(u.value),Ti(()=>{m.value=!1})))}function _(e){e.preventDefault()}let v=mr(T(()=>({as:e.as,type:t.type})),s);return()=>{let n={selected:d.value,disabled:e.disabled??!1},{...i}=e,c={ref:s,onKeydown:p,onMousedown:_,onClick:g,id:a,role:`tab`,type:v.value,"aria-controls":pi(o.panels.value[u.value])?.id,"aria-selected":d.value,tabIndex:d.value?0:-1,disabled:e.disabled?!0:void 0};return $r({ourProps:c,theirProps:i,slot:n,attrs:t,slots:r,name:`Tab`})}}}),uy=E({name:`TabPanels`,props:{as:{type:[Object,String],default:`div`}},setup(e,{slots:t,attrs:n}){let r=ay(`TabPanels`);return()=>{let i={selectedIndex:r.selectedIndex.value};return $r({theirProps:e,ourProps:{},slot:i,attrs:n,slots:t,name:`TabPanels`})}}}),dy=E({name:`TabPanel`,props:{as:{type:[Object,String],default:`div`},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null},tabIndex:{type:Number,default:0}},setup(e,{attrs:t,slots:r,expose:i}){let a=e.id??`headlessui-tabs-panel-${Oa()}`,o=ay(`TabPanel`),s=n(null);i({el:s,$el:s}),ie(()=>o.registerPanel(s)),oe(()=>o.unregisterPanel(s));let l=h(oy),u=T(()=>{if(l.value){let e=l.value.panels.indexOf(a);return e===-1?l.value.panels.push(a)-1:e}return-1}),d=T(()=>{let e=o.panels.value.indexOf(s);return e===-1?u.value:e}),f=T(()=>d.value===o.selectedIndex.value);return()=>{let n={selected:f.value},{tabIndex:i,...l}=e,u={ref:s,id:a,role:`tabpanel`,"aria-labelledby":pi(o.tabs.value[d.value])?.id,tabIndex:f.value?i:-1};return!f.value&&e.unmount&&!e.static?c(za,{as:`span`,"aria-hidden":!0,...u}):$r({ourProps:u,theirProps:l,slot:n,attrs:t,slots:r,features:Jr.Static|Jr.RenderStrategy,visible:f.value,name:`TabPanel`})}}}),fy={class:`mb-0 flex flex-col`,role:`search`},py={"aria-hidden":`true`,class:`contents`},my={class:`sr-only`},hy=X(E({__name:`SearchModal`,props:{modalState:{},document:{},eventBus:{},modelsSectionLabel:{}},setup(e){let r=e,{translate:i}=Z(),o=v(),s=`${o}-search-result`,c=`${o}-search-instructions`,{query:l,results:f}=Fh(()=>r.document,()=>r.modelsSectionLabel,()=>({heading:i(`search.entryHeading`),tagGroup:i(`search.entryTagGroup`),webhook:i(`search.entryWebhook`),webhooks:i(`navigation.webhooks`),introduction:i(`navigation.introduction`)})),p=n(void 0);m(()=>r.modalState.open,e=>{e&&(l.value=``)});let h=e=>{let t=e===`up`?-1:1,n=f.value.length;typeof p.value==`number`?p.value=(p.value+t+n)%n:p.value=t===-1?n-1:0};function g(e){if(typeof e!=`number`||!f.value[e])return;let t=f.value[e];r.modalState.hide(),r.eventBus.emit(`scroll-to:nav-item`,{id:t.item.id})}let _=T(()=>{let e=f.value[p.value??-1];return e?`search-result-${e.item.id}`:void 0});return(n,o)=>(D(),N(t(Rr),{"aria-label":t(i)(`search.label`),state:e.modalState,variant:`search`},{default:k(()=>[b(`div`,fy,[u(t(Gt),{modelValue:t(l),"onUpdate:modelValue":o[0]||=e=>a(l)?l.value=e:null,"aria-activedescendant":_.value,"aria-autocomplete":`list`,"aria-controls":s,"aria-describedby":c,clearLabel:t(i)(`search.clear`),label:t(i)(`search.inputLabel`),placeholder:t(i)(`search.placeholder`),role:`combobox`,onBlur:o[1]||=e=>p.value=void 0,onKeydown:[o[2]||=_e(I(e=>h(`down`),[`stop`,`prevent`]),[`down`]),o[3]||=_e(I(()=>g(p.value),[`stop`,`prevent`]),[`enter`]),o[4]||=_e(I(e=>h(`up`),[`stop`,`prevent`]),[`up`])]},null,8,[`modelValue`,`aria-activedescendant`,`clearLabel`,`label`,`placeholder`])]),u(t(Jv),{id:s,"aria-label":t(i)(`search.results`),class:`custom-scroll px-1 pb-1`,noResults:!t(f).length},{query:k(()=>[d(A(t(l)),1)]),default:k(()=>[(D(!0),x(O,null,S(t(f),(e,t)=>(D(),N(ey,{id:`search-result-${e.item.id}`,key:e.refIndex,isSelected:p.value===t,modelsSectionLabel:r.modelsSectionLabel,result:e,onClick:I(()=>g(t),[`prevent`])},null,8,[`id`,`isSelected`,`modelsSectionLabel`,`result`,`onClick`]))),128))]),_:1},8,[`aria-label`,`noResults`]),b(`div`,{id:c,class:`ref-search-meta`},[b(`span`,py,[b(`span`,null,`↑↓ `+A(t(i)(`search.navigate`)),1),b(`span`,null,`⏎ `+A(t(i)(`search.select`)),1)]),b(`span`,my,A(t(i)(`search.instructions`)),1)])]),_:1},8,[`aria-label`,`state`]))}}),[[`__scopeId`,`data-v-ae9b4ecb`]]),gy={class:`sr-only`},_y={"aria-hidden":`true`,class:`sidebar-search-placeholder`},vy={class:`sr-only`},yy={class:`sr-only`},by=E({__name:`SearchButton`,props:{forceIcon:{type:Boolean},searchHotKey:{default:`k`},hideModels:{type:Boolean},modelsSectionLabel:{default:()=>er},document:{},eventBus:{}},setup(e){let r=n(),i=Sn(),{translate:a}=Z(),o=n(!1);ie(()=>{o.value=jo()});let s=t=>{(jo()?t.metaKey:t.ctrlKey)&&t.key===e.searchHotKey&&(t.preventDefault(),t.stopPropagation(),i.open?i.hide():i.show())};m(()=>i.open,async(e,t)=>{!e&&t&&(await M(),r.value?.$el.focus())}),ie(()=>window.addEventListener(`keydown`,s)),ce(()=>window.removeEventListener(`keydown`,s));function c(){i.show()}return(n,s)=>(D(),x(O,null,[e.forceIcon?(D(),N(t(ba),{key:0,icon:t(Rt),label:t(a)(`search.label`),onClick:c},null,8,[`icon`,`label`])):(D(),N(t(Wi),{key:1,ref_key:`button`,ref:r,class:C([`w-full`,n.$attrs.class]),shortcutLabel:t(a)(`search.keyboardShortcut`),onClick:c},{shortcut:k(()=>[o.value?(D(),x(O,{key:0},[b(`span`,vy,A(t(a)(`search.command`)),1),s[0]||=b(`span`,{"aria-hidden":`true`},`⌘`,-1)],64)):(D(),x(O,{key:1},[b(`span`,yy,A(t(a)(`search.control`)),1),s[1]||=b(`span`,{"aria-hidden":`true`},`⌃`,-1)],64)),d(` `+A(e.searchHotKey),1)]),default:k(()=>[b(`span`,gy,A(t(a)(`search.open`)),1),b(`span`,_y,A(t(a)(`search.label`)),1)]),_:1},8,[`class`,`shortcutLabel`])),u(hy,{document:e.document,eventBus:e.eventBus,modalState:t(i),modelsSectionLabel:e.modelsSectionLabel},null,8,[`document`,`eventBus`,`modalState`,`modelsSectionLabel`])],64))}}),xy={class:`asyncapi-sidebar-filter min-w-0`},Sy={class:`text-c-1 truncate`},Cy=E({__name:`SidebarFilter`,props:{label:{},options:{},modelValue:{}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,i=n,a=T(()=>r.options.find(e=>e.id===r.modelValue)??r.options[0]);return(n,r)=>(D(),x(`li`,xy,[u(t(fn),{label:e.label,modelValue:a.value,options:e.options,resize:``,teleport:``,"onUpdate:modelValue":r[0]||=e=>i(`update:modelValue`,e.id)},{default:k(()=>[u(t(Sr),{is:`button`,class:`w-full items-center text-left`},{aside:k(()=>[u(t(lg),{class:`text-c-1 ml-1 size-3 shrink-0 self-center`,weight:`bold`})]),default:k(()=>[b(`span`,Sy,A(a.value?.label),1)]),_:1})]),_:1},8,[`label`,`modelValue`,`options`])]))}}),wy=[`ws`,`wss`],Ty=e=>e?.variables?Gi(e.variables).reduce((e,[t,n])=>{let r=G(n);return r.default!=null&&(e[String(t)]=String(r.default)),e},{}):{},Ey=(e,t)=>{let n=e;return t.serverVariables&&(n=on(n,t.serverVariables)),t.environmentVariables&&(n=kr(n,t.environmentVariables)),t.pathParameters&&(n=on(n,t.pathParameters)),n},Dy=e=>e?.trim().toLowerCase()||void 0,Oy=e=>e.trim().toLowerCase(),ky=e=>wy.includes(e.trim().toLowerCase()),Ay=(e,t)=>{let n=Ty(e),r=`${Oy(e.protocol)}://${Ey(e.host,{serverVariables:n,environmentVariables:t})}`;if(!e.pathname)return r;let i=Ey(e.pathname,{serverVariables:n,environmentVariables:t});return wo(r,i)},jy=e=>{if(e)return G(e).ws},My=(e,t)=>{let n=jy(e.bindings),r=t?jy(t.bindings):void 0;if(n||r)return{...n,...r,query:Py(n?.query,r?.query)}},Ny=e=>{if(!e)return;let t=G(e);if(t!==!0&&t!==!1&&na(t))return t},Py=(e,t)=>{let n=Ny(e),r=Ny(t);if(!n&&!r)return;if(!n)return t;if(!r)return e;let i=`properties`in n?n.properties:void 0,a=`properties`in r?r.properties:void 0;return Object.assign({},n,r,{properties:{...i,...a}})},Fy=e=>{if(e!==!0&&e!==!1&&na(e)){if(`default`in e&&e.default!==void 0)return e.default;if(`example`in e&&e.example!==void 0)return e.example;if(`enum`in e&&Array.isArray(e.enum)&&e.enum[0]!==void 0)return e.enum[0]}},Iy=(e,t,n)=>{if(n!=null){if(Array.isArray(n)){n.forEach(n=>Iy(e,t,n));return}if(typeof n==`object`){e.append(t,JSON.stringify(n));return}e.append(t,String(n))}},Ly=(e,t)=>{let n=new URLSearchParams,r=Ny(e?.query),i=r&&`properties`in r?r.properties:void 0;if(na(i))for(let[e,t]of Object.entries(i))Iy(n,e,Fy(t));if(t)for(let[e,r]of Gi(t))n.delete(e),Iy(n,e,r);return n},Ry=({server:e,channel:t,operation:n=null,pathParameters:r={},queryParameters:i={},environmentVariables:a})=>{let o=Ty(e),s=Ay(e,a),c=t.address;if(c==null||c===``){let e=Ly(My(t,n),i);return bi(s,``,e,!0)}let l=Ey(c,{serverVariables:o,environmentVariables:a,pathParameters:r}),u=Ly(My(t,n),i);return bi(s,l,u,!0)},zy=e=>e.replace(/~/g,`~0`).replace(/\//g,`~1`),By=(e,t)=>{let n=`#/${t.map(zy).join(`/`)}/`;if(!e.startsWith(n))return;let r=_o(()=>$t(e.slice(1)));if(!r.ok)return;let i=r.data;if(i.length!==t.length+1)return;for(let e=0;e<t.length;e++)if(i[e]!==t[e])return;let a=i[t.length];return a&&a.length>0?a:void 0},Vy=e=>By(e,[`channels`]),Hy=(e,t)=>{if(e.channels){for(let[n,r]of Object.entries(e.channels))if(G(r)===t)return n}},Uy=(e,t)=>{let n=t.channel;if(!n)return;let r=`$ref`in n?Vy(n.$ref):void 0;if(r&&e.channels?.[r]){let t=G(e.channels[r]);return{channelName:r,channel:t,channelAddress:typeof t.address==`string`&&t.address.length>0?t.address:r}}let i=G(n),a=r??Hy(e,i)??(typeof i.address==`string`&&i.address.length>0?i.address:void 0);if(a)return{channelName:a,channel:i,channelAddress:typeof i.address==`string`&&i.address.length>0?i.address:a}},Wy=e=>G(e),Gy=e=>By(e,[`servers`]),Ky=(e,t)=>{if(!t?.servers)return;let n=new Set;for(let r of t.servers){let t=Gy(r.$ref);t&&e.servers?.[t]&&n.add(t)}return n},qy=(e,t={})=>{let{channel:n=null,operation:r=null,pathParameters:i={},queryParameters:a={},environmentVariables:o,webSocketOnly:s=!0}=t,c=e.servers??{},l=Ky(e,n);return Gi(c).filter(([e])=>l?.has(e)??!0).map(([e,t])=>{let s=Wy(t),c=s.protocol.trim().toLowerCase(),l=ky(c),u=Ay(s,o),d={name:e,server:s,host:s.host,protocol:c,description:s.description,title:s.title,url:u,isWebSocket:l};return n&&(d.connectionUrl=Ry({server:s,channel:n,operation:r,pathParameters:i,queryParameters:a,environmentVariables:o})),d}).filter(e=>!s||e.isWebSocket)},Jy=(e,t,n)=>{if(!ga(e))return t[0]??null;let r=e[`x-scalar-selected-server`];return r==null?t[0]??null:t.find(({name:e})=>e===r)??t[0]??null},Yy=e=>{let t=new Map;for(let[n,r]of Gi(e.servers??{})){let e=Dy(G(r).protocol);e&&t.set(n,e)}return t},Xy=e=>[{id:`all`,label:`All protocols`},...[...new Set(Yy(e).values())].sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e.toUpperCase()}))],Zy=e=>[{id:`all`,label:`All servers`},...Gi(e.servers??{}).map(([e,t])=>{let n=Dy(G(t).protocol);return{id:e,label:n?`${e} (${n})`:e}})],Qy=e=>({serverProtocols:Yy(e),allServerNames:new Set(Ii(e.servers??{}))}),$y=(e,t,n=Qy(e))=>{let r=Ky(e,Uy(e,t)?.channel??null),i=r?new Set([...r].filter(e=>n.allServerNames.has(e))):new Set(n.allServerNames),a=new Set;for(let[e,t]of n.serverProtocols)i.has(e)&&a.add(t);return{serverNames:i,protocols:a}},eb=e=>e.reduce((e,t)=>{let n=G(t);return n.security===void 0?e:n.security},void 0),tb=e=>{let t=e.traits??[];if(t.length===0)return e;let n=eb(t),r=t.reduce((e,t)=>{let n=G(t);if(!n.bindings)return e;let r=G(n.bindings);return e?{...G(e),...r}:r},void 0),i=e.security!==void 0,a=e.security??n,o=r&&e.bindings?{...G(r),...G(e.bindings)}:e.bindings??r;return{...e,...a!==void 0||i?{security:a}:{},...o===e.bindings?{}:{bindings:o}}},nb=E({__name:`AsyncApiSidebarFilters`,props:s({document:{},is:{default:`li`}},{protocol:{default:``},protocolModifiers:{},server:{default:``},serverModifiers:{}}),emits:[`update:protocol`,`update:server`],setup(e){let n=f(e,`protocol`),r=f(e,`server`),i=T(()=>e.document?Xy(e.document):[]),a=T(()=>e.document?Zy(e.document):[]),o=T(()=>i.value.length>2),s=T(()=>a.value.length>2);return(c,l)=>o.value||s.value?(D(),N(t(Bi),{key:0,is:e.is,class:`asyncapi-sidebar-filters`},{items:k(()=>[o.value?(D(),N(Cy,{key:0,modelValue:n.value,"onUpdate:modelValue":l[0]||=e=>n.value=e,label:`Protocol`,options:i.value},null,8,[`modelValue`,`options`])):F(``,!0),s.value?(D(),N(Cy,{key:1,modelValue:r.value,"onUpdate:modelValue":l[1]||=e=>r.value=e,label:`Server`,options:a.value},null,8,[`modelValue`,`options`])):F(``,!0)]),default:k(()=>[l[2]||=d(` Filters `,-1)]),_:1},8,[`is`])):F(``,!0)}}),rb=({protocol:e,server:t})=>(!e||e===`all`)&&(!t||t===`all`),ib=(e,t)=>!t||t===`all`||e.has(t),ab=(e,t,n,r)=>{if(e.type===`asyncapi-operation`){let i=t.operations?.[e.operationName];if(!i)return e;let{protocols:a,serverNames:o}=$y(t,G(i,Do),r);return ib(a,n.protocol)&&ib(o,n.server)?e:null}if(e.type===`asyncapi-channel`||e.type===`tag`){let i=e.children??[],a=i.flatMap(e=>{let i=ab(e,t,n,r);return i?[i]:[]});return i.length>0&&a.length===0?null:{...e,children:a}}return e},ob=(e,t,n)=>{if(rb(n))return e;let r=Qy(t);return e.flatMap(e=>{let i=ab(e,t,n,r);return i?[i]:[]})},sb=Symbol(),cb=n(null);function lb(e){let t=n(!1),r=n(``),i={showAgent:t,agentEnabled:e.agentEnabled??T(()=>Xt(window.location.href)),prefilledMessage:r,openAgent:e=>{r.value=e??``,t.value=!0},closeAgent:()=>{t.value=!1,r.value=``},toggleAgent:()=>{t.value=!t.value,t.value||(r.value=``)}};return cb.value=i,i}function ub(){let e=h(sb,void 0);return T(()=>e??cb.value??void 0)}var db=E({__name:`AgentScalarButton`,setup(e){let n=ub(),{translate:r}=Z();return(e,i)=>(D(),x(`button`,{class:`bg-sidebar-b-search text-sidebar-c-2 hover:text-sidebar-c-1 flex items-center gap-1.5 rounded border px-2 text-base whitespace-nowrap`,type:`button`,onClick:i[0]||=e=>t(n)?.toggleAgent()},[u(t(ov)),d(` `+A(t(r)(`agent.askAi`)),1)]))}}),fb={class:`agent-scalar-container custom-scroll custom-scroll-self-contain-overflow overflow-auto px-6`},pb=X(E({__name:`AgentScalarDrawer`,props:{agentScalarConfiguration:{},externalUrls:{},workspaceStore:{}},setup(e){let n=ub(),{translate:r}=Z(),i=_(async()=>Xe(()=>import(`./AgentScalarChatInterface.vue-npQgDxeP.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])));return(a,o)=>(D(),x(O,null,[u(xe,{enterActiveClass:`transition-opacity duration-500`,enterFromClass:`opacity-0`,enterToClass:`opacity-100`,leaveActiveClass:`transition-opacity duration-200`,leaveFromClass:`opacity-100`,leaveToClass:`opacity-0`},{default:k(()=>[y(b(`div`,{class:`agent-scalar-overlay bg-backdrop fixed inset-0 z-10 ease-[cubic-bezier(0.77,0,0.175,1)]`,onClick:o[0]||=e=>t(n)?.closeAgent()},null,512),[[ye,t(n)?.showAgent.value]])]),_:1}),u(xe,{enterActiveClass:`transition-transform duration-300`,enterFromClass:`-translate-x-full`,enterToClass:`translate-x-0`,leaveActiveClass:`transition-transform duration-200`,leaveFromClass:`translate-x-0`,leaveToClass:`-translate-x-full`},{default:k(()=>[y(b(`div`,{class:`agent-scalar left-refs-w-sidebar bg-b-1 fixed inset-y-0 right-12 z-10 grid border-r shadow-lg`,onKeydown:o[2]||=_e(e=>t(n)?.closeAgent(),[`escape`])},[b(`div`,fb,[u(t(i),{agentScalarConfiguration:e.agentScalarConfiguration,externalUrls:e.externalUrls,prefilledMessage:t(n)?.prefilledMessage,workspaceStore:e.workspaceStore},null,8,[`agentScalarConfiguration`,`externalUrls`,`prefilledMessage`,`workspaceStore`])]),u(t(ba),{class:`agent-scalar-exit-button absolute top-2 right-2`,icon:t(en),label:t(r)(`agent.close`),weight:`bold`,onClick:o[1]||=e=>t(n)?.closeAgent()},null,8,[`icon`,`label`])],544),[[ye,t(n)?.showAgent.value]])]),_:1})],64))}}),[[`__scopeId`,`data-v-3496197b`]]);function mb(e){return!!e&&typeof e==`object`&&`url`in e&&typeof e.url==`string`}async function hb(e,t){let n=JSON.stringify({document:e}),r=`${t.apiBaseUrl}/core/share/upload/apis`,i=await fetch(Cr(t.proxyUrl,r),{method:`POST`,headers:{"Content-Type":`application/json`},body:n});if(!i.ok)throw Error(` Failed to generate temporary link, server responded with ${i.status}`);let a=await i.json();if(!mb(a))throw Error(`Failed to generate temporary link, invalid response from server`);return a.url}function gb(e){try{return!!new URL(e)}catch{return!1}}var _b={class:`scalar-mcp-layer`},vb=[`href`,`target`],yb=[`href`,`target`],bb=X(E({__name:`OpenMCPButton`,props:s({config:{},externalUrls:{},url:{},workspace:{}},{url:{},urlModifiers:{}}),emits:[`update:url`],setup(e){let n=e,{copyToClipboard:r}=Bt(),{translate:i}=Z(),{toast:a}=qn(),o=da(),s=n.config?.name||n.config?.url,c=btoa(JSON.stringify(n.config??{})),l=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(n.config?.name??``)}&config=${c}`,p=`vscode:mcp/install?${encodeURIComponent(JSON.stringify(n.config??{}))}`,m=f(e,`url`);async function h(){if(o.isLoading||!n.workspace)return;if(m.value&&gb(m.value)){g(m.value);return}o.start();let e=n.workspace.exportActiveDocument(`json`);if(!e){a(i(`developerTools.unableToExportDocument`),`error`),await o.invalidate();return}try{m.value=await hb(e,n.externalUrls),await o.validate(),g(m.value),await M(),await o.clear()}catch(e){a(e instanceof Error?e.message:i(`developerTools.unknownError`),`error`),await o.invalidate()}}function g(e){let t=new URL(`${n.externalUrls.dashboardUrl}/register`);t.searchParams.set(`url`,e),t.searchParams.set(`createMcp`,`true`),window.open(t.toString(),`_blank`)}return(n,a)=>(D(),x(`div`,_b,[b(`a`,{class:`scalar-mcp-layer-link`,href:t(s)?p:void 0,target:t(s)?`_blank`:void 0,onClick:a[0]||=e=>{t(s)||(e.preventDefault(),h())}},[a[3]||=b(`svg`,{class:`mcp-logo`,fill:`currentColor`,height:`800`,viewBox:`0 0 32 32`,width:`800`,xmlns:`http://www.w3.org/2000/svg`},[b(`path`,{d:`M30.865 3.448 24.282.281a1.99 1.99 0 0 0-2.276.385L9.397 12.171 3.902 8.004a1.33 1.33 0 0 0-1.703.073L.439 9.681a1.33 1.33 0 0 0-.005 1.969L5.2 15.999.434 20.348a1.33 1.33 0 0 0 .005 1.969l1.76 1.604a1.33 1.33 0 0 0 1.703.073l5.495-4.172 12.615 11.51a1.98 1.98 0 0 0 2.271.385l6.589-3.172a1.99 1.99 0 0 0 1.13-1.802V5.248c0-.766-.443-1.469-1.135-1.802zm-6.86 19.818L14.432 16l9.573-7.266z`})],-1),a[4]||=d(` VS Code `,-1),u(t(_r),{class:`mcp-nav ml-auto size-4`})],8,vb),b(`a`,{class:`scalar-mcp-layer-link`,href:t(s)?l:void 0,target:t(s)?`_blank`:void 0,onClick:a[1]||=e=>{t(s)||(e.preventDefault(),h())}},[a[5]||=b(`svg`,{class:`mcp-logo`,viewBox:`0 0 466.73 532.09`,xmlns:`http://www.w3.org/2000/svg`},[b(`path`,{d:`M457.43 125.94 244.42 2.96a22.13 22.13 0 0 0-22.12 0L9.3 125.94C3.55 129.26 0 135.4 0 142.05v247.99c0 6.65 3.55 12.79 9.3 16.11l213.01 122.98a22.13 22.13 0 0 0 22.12 0l213.01-122.98c5.75-3.32 9.3-9.46 9.3-16.11V142.05c0-6.65-3.55-12.79-9.3-16.11zm-13.38 26.05L238.42 508.15c-1.39 2.4-5.06 1.42-5.06-1.36V273.58c0-4.66-2.49-8.97-6.53-11.31L24.87 145.67c-2.4-1.39-1.42-5.06 1.36-5.06h411.26c5.84 0 9.49 6.33 6.57 11.39h-.01Z`,style:{fill:`currentColor`}})],-1),a[6]||=d(` Cursor `,-1),u(t(_r),{class:`mcp-nav ml-auto size-4`})],8,yb),t(s)?(D(),x(`div`,{key:1,class:`scalar-mcp-layer-link`,onClick:a[2]||=n=>t(r)(e.config?.url??``)},[d(A(t(i)(`mcp.connect`))+` `,1),a[8]||=b(`svg`,{class:`mcp-logo ml-auto`,fill:`none`,height:`173`,viewBox:`0 0 156 173`,width:`156`,xmlns:`http://www.w3.org/2000/svg`},[b(`path`,{d:`m6 80.912 67.882-67.883c9.373-9.372 24.569-9.372 33.941 0s9.373 24.569 0 33.942L56.558 98.236`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-width":`12`}),b(`path`,{d:`m57.265 97.529 50.558-50.558c9.373-9.373 24.569-9.373 33.942 0l.353.353c9.373 9.373 9.373 24.569 0 33.941L80.725 142.66a8 8 0 0 0 0 11.313l12.606 12.607`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-width":`12`}),b(`path`,{d:`M90.853 30 40.648 80.205c-9.372 9.372-9.372 24.568 0 33.941 9.373 9.372 24.569 9.372 33.941 0l50.205-50.205`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-width":`12`})],-1)])):(D(),x(`div`,{key:0,class:`scalar-mcp-layer-link`,onClick:h},[a[7]||=b(`svg`,{class:`mcp-logo`,fill:`none`,height:`173`,viewBox:`0 0 156 173`,width:`156`,xmlns:`http://www.w3.org/2000/svg`},[b(`path`,{d:`m6 80.912 67.882-67.883c9.373-9.372 24.569-9.372 33.941 0s9.373 24.569 0 33.942L56.558 98.236`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-width":`12`}),b(`path`,{d:`m57.265 97.529 50.558-50.558c9.373-9.373 24.569-9.373 33.942 0l.353.353c9.373 9.373 9.373 24.569 0 33.941L80.725 142.66a8 8 0 0 0 0 11.313l12.606 12.607`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-width":`12`}),b(`path`,{d:`M90.853 30 40.648 80.205c-9.372 9.372-9.372 24.568 0 33.941 9.373 9.372 24.569 9.372 33.941 0l50.205-50.205`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-width":`12`})],-1),d(` `+A(t(i)(`mcp.generate`))+` `,1),u(t(_r),{class:`mcp-nav ml-auto size-4`})]))]))}}),[[`__scopeId`,`data-v-5b614c7b`]]),xb={},Sb={class:`references-classic-header-container`},Cb={class:`references-classic-header`},wb={class:`references-classic-header-content`};function Tb(e,t){return D(),x(`div`,Sb,[b(`div`,Cb,[b(`div`,wb,[P(e.$slots,`default`,{},void 0,!0)]),P(e.$slots,`dark-mode-toggle`,{},void 0,!0)])])}var Eb=X(xb,[[`render`,Tb],[`__scopeId`,`data-v-8a3822ca`]]),Db=`-49% 0px -49% 0px`,Ob=(e,t,n)=>{ie(()=>{let r={rootMargin:n?.immediate?`0px 0px 0px 0px`:Db,threshold:0};e.value&&wr(e,([e])=>{e?.isIntersecting?t():n?.onExit?.()},r)})},kb=[`content.start`,`content.end`],Ab=(e,t,n,r)=>`${e}/plugin-view/${t}/${n}/${r}`,jb=({plugins:e=[]})=>{let t=new Map;return e.forEach(e=>{let n=e();t.set(n.name,n)}),{getSpecificationExtensions:e=>{let n=[];for(let r of t.values())for(let t of r.extensions)t.name===e&&n.push(t);return n},getViewComponents:(e,n)=>{let r=[];for(let i of t.values()){let t=i.views?.[e];t&&t.forEach((t,a)=>{r.push({...t,id:Ab(n,i.name,e,a)})})}return r},notifyInit:e=>{for(let n of t.values())n.hooks?.onInit?.({config:e})},notifyConfigChange:e=>{for(let n of t.values())n.hooks?.onConfigChange?.({config:e})},notifyDestroy:()=>{for(let e of t.values())e.hooks?.onDestroy?.()},getApiClientPlugins:()=>{let e=[];for(let n of t.values())n.apiClientPlugins&&e.push(...n.apiClientPlugins);return e},getSidebarEntries:e=>{let n=[];for(let r of t.values())for(let t of kb)(r.views?.[t])?.forEach((i,a)=>{i.sidebar?.show&&i.sidebar.label&&n.push({id:Ab(e,r.name,t,a),label:i.sidebar.label,viewName:t})});return n}}},Mb=Symbol(),Nb=()=>h(Mb)||jb({}),Pb={SELECTED_CLIENT:`scalar-reference-selected-client-v2`,AUTH:`scalar-reference-auth`},Fb=()=>typeof window>`u`?{getItem:()=>null,setItem:()=>null,removeItem:()=>null}:localStorage,Ib=Fb(),Lb=()=>{let e=Pb.SELECTED_CLIENT;return{get:()=>Ib.getItem(e),set:t=>{Ib.setItem(e,t)}}},Rb=()=>{let e=e=>`${Pb.AUTH}-${e}`;return{getAuth:t=>Oo(Ki,JSON.parse(Ib.getItem(e(t))??`{}`)),setAuth:(t,n)=>{Ib.setItem(e(t),JSON.stringify(n))}}},zb=({debounceDelay:e=500,maxWait:t=1e4,persistAuth:n=!1})=>{let{execute:r}=Vi({delay:e,maxWait:t}),i=Rb(),a=Lb(),o=()=>typeof n==`function`?n():n;return{hooks:{onWorkspaceStateChanges(e){if(e.type===`meta`){let t=e.value[`x-scalar-default-client`];t!==void 0&&r(`x-scalar-default-client`,()=>a.set(t));return}o()&&e.type===`auth`&&r(`auth-${e.documentName}`,()=>i.setAuth(e.documentName,e.value))}}}},Bb=e=>e.replace(/^\/+|\/+$/g,``),Vb=e=>e.startsWith(`#`),Hb=e=>e.replace(/^#+/,``).replace(/\/+$/g,``),Ub=(e,t)=>t?`${t}${e?`/`:``}${e}`:e,Wb=(e,t)=>e===t?``:e.startsWith(`${t}/`)?e.slice(t.length+1):null,Gb=e=>e?`/${e.split(`/`).map(e=>encodeURIComponent(e)).join(`/`)}`:``,Kb=(e,t)=>{let n=typeof e==`string`?new URL(e):e;return Ub(decodeURIComponent(n.hash.slice(1)),t)},qb=(e,t,n)=>{let r=typeof e==`string`?new URL(e):e,i=Gb(Bb(t));if(r.pathname.startsWith(i)){let e=r.pathname.slice(i.length);return Ub(decodeURIComponent(e.startsWith(`/`)?e.slice(1):e),n)}return n??``},Jb=(e,t,n)=>{let r=typeof e==`string`?new URL(e):e,i=Wb(decodeURIComponent(r.hash.slice(1)),Hb(t));return i===null?n??``:Ub(i,n)},Yb=(e,t)=>{let n=typeof e==`string`?new URL(e):e;if(Vb(t)){let e=decodeURIComponent(n.hash);return e===t||e.startsWith(`${t}/`)}let r=Gb(Bb(t));return n.pathname===r||n.pathname.startsWith(`${r}/`)},Xb=(e,t,n)=>typeof t==`string`?Vb(t)?Jb(e,t,n):qb(e,t,n):Kb(e,n),Zb=e=>{let t=e.endsWith(`/`),n=e.split(`/`).filter(Boolean).slice(1).join(`/`);return t&&n?`${n}/`:n},Qb=(e,t,n)=>{if(typeof window>`u`)return;let r=n?e:Zb(e),i=new URL(window.location.href);return typeof t==`string`?Vb(t)?i.hash=[Hb(t),r].filter(Boolean).join(`/`):i.pathname=`${Bb(t)}/${r}`:i.hash=r,i},$b=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),ex=e=>({value:decodeURIComponent(e.hash.slice(1)),write:t=>{e.hash=t}}),tx=(e,t)=>{if(typeof t!=`string`)return[ex(e)];if(Vb(t)){let n=Hb(t);return[{value:Wb(decodeURIComponent(e.hash.slice(1)),n)??``,write:t=>{e.hash=[n,t].filter(Boolean).join(`/`)}},ex(e)]}let n=Bb(t),r=Wb(e.pathname,Gb(n));return[{value:r===null?``:decodeURIComponent(r),write:t=>{e.pathname=n?`/${n}/${t}`:`/${t}`}},ex(e)]},nx=(e,t)=>{for(let{match:n,replace:r}of t){let t=e.replace(n,r);if(t!==e)return t}return e},rx=`(?:(?:tag-group/[^/]+/)?tag/[^/]+/)?`,ix=({modelsSectionSlug:e,documentSlug:t,isMultiDocument:n})=>{let r=$b(t),i=n?`${r}/${rx}`:`(?:${r}/${rx})?`,a=t=>({match:RegExp(`^(${i})${$b(t)}/`),replace:(t,n)=>`${n}${e}/`}),o=[a(`model`)];return e!==`models`&&o.push(a(`models`)),o},ax=(e,t,n,r,i)=>{if(!n)return null;let a=new URL(typeof e==`string`?e:e.toString()),o=ix({modelsSectionSlug:t,documentSlug:n,isMultiDocument:r}),s=!1;for(let e of tx(a,i)){let t=nx(e.value,o);t!==e.value&&(e.write(t),s=!0)}return s?a:null},ox=e=>{let t=e.match(/(.*)(\.body\.|\.path\.|\.query\.|\.header\.)(.*)/);return t&&typeof t[1]==`string`&&typeof t[2]==`string`?{rawId:t[1],params:t[2].slice(1)+t[3]}:{rawId:e,params:``}},sx=o(new Set),cx=o(new Set),lx=o(new Set),ux=n(!1),dx=3e3,fx=n(!1),px=n(``),mx=e=>{px.value===e&&(px.value=``)},hx=o(new Set),gx=new Set,_x=o(new Map),vx=e=>_x.get(e),yx=(e,t)=>{!Number.isFinite(t)||t<=0||_x.set(e,Math.round(t))},bx=e=>{e&&gx.add(e)},xx=()=>{let e=Mi();return hx.add(e),()=>setTimeout(()=>hx.delete(e),100)},Sx=T(()=>hx.size===0),Cx=()=>{if(typeof window>`u`||ux.value)return;ux.value=!0;let e=async()=>{let e=[...sx],t=[...cx];if(e.length===0&&t.length===0){gx.forEach(e=>e()),gx.clear(),ux.value=!1,fx.value=!0;return}for(let t of e)lx.add(t),sx.delete(t);for(let e of t)lx.add(e),cx.delete(e);await M(),gx.forEach(e=>e()),gx.clear(),ux.value=!1,fx.value=!0};window.requestIdleCallback?window.requestIdleCallback(e,{timeout:1500}):M(e)};ir([()=>cx.size,()=>sx.size,()=>ux.value],()=>{(cx.size>0||sx.size>0)&&!ux.value&&Cx()},{debounce:300,maxWait:1500});var wx=e=>{e&&!lx.has(e)&&!sx.has(e)&&cx.add(e)},Tx=e=>{e&&!sx.has(e)&&sx.add(e)},Ex=(e,t=!1)=>{e&&!lx.has(e)&&(t?Tx(e):wx(e),ux.value||Cx())},Dx=()=>{typeof window<`u`&&window.setTimeout(()=>Cx(),400)},Ox=e=>{sx.delete(e),cx.delete(e),lx.delete(e),_x.delete(e)};function kx(e){return ce(()=>{Ox(e)}),{isReady:T(()=>typeof window>`u`||sx.has(e)||lx.has(e))}}var Ax=(e,t,n)=>{let r=n(e),i=!lx.has(e)||r?.children?.some(e=>!lx.has(e.id))?Mx(e):void 0;bx(i);let a=xx(),{rawId:o}=ox(e);if(px.value=e,Tx(e),Tx(o),r?.children&&r.children.slice(0,2).forEach(e=>Tx(e.id)),r?.parent){let t=n(r.parent.id),i=t?.children?.findIndex(t=>t.id===e);i!==void 0&&i>=0&&t?.children?.slice(i,i+2).forEach(e=>Tx(e.id))}t(o,!0);let s=e=>{let r=n(e)?.parent;r&&(Tx(r.id),t(r.id,!0),s(r.id))};s(o),M(()=>{jx(e,Date.now()+dx,a,i)})},jx=(e,t,n,r)=>{let i=document.getElementById(e);i?(i.scrollIntoView({block:`start`}),mx(e),n()):Date.now()<t?requestAnimationFrame(()=>jx(e,t,n,r)):(mx(e),n(),r?.())},Mx=e=>{let t=!1,n=r=>{let i=document.getElementById(e);i&&i.scrollIntoView({block:`start`}),r||requestAnimationFrame(()=>n(t))};return n(!1),()=>{t=!0}},Nx={class:`sr-only`},Px={class:`overflow-x-auto`},Fx={key:1,class:`text-c-1 flex h-auto w-full items-center gap-0.75 !rounded-b-xl px-3 py-1.5 text-base leading-[20px] whitespace-nowrap`},Ix={class:`sr-only`},Lx={class:`overflow-x-auto`},Rx=E({__name:`Selector`,props:{selectedServer:{},servers:{},target:{}},emits:[`update:modelValue`],setup(e,{expose:n,emit:r}){let i=r,{translate:a}=Z(),o=T(()=>e.servers.map(e=>({id:e.name,label:e.url}))),s=T(()=>e.selectedServer?.url?.replace(/\/$/,``)||``),c=T(()=>o.value.find(t=>t.id===e.selectedServer?.name));return n({servers:e.servers,serverUrlWithoutTrailingSlash:s,serverOptions:o,selectedServer:e.selectedServer}),(n,r)=>o.value.length>1?(D(),N(t(fn),{key:0,ref:`elem`,class:`group`,modelValue:c.value,options:o.value,placement:`bottom-start`,resize:``,target:e.target,"onUpdate:modelValue":r[0]||=e=>i(`update:modelValue`,e.id)},{default:k(()=>[u(t(oo),{class:`bg-b-1 text-c-1 h-auto w-full justify-start gap-1.5 overflow-x-auto rounded-t-none !rounded-b-xl px-3 py-1.5 text-base/5.25 font-normal whitespace-nowrap -outline-offset-1`,variant:`ghost`},{default:k(()=>[b(`span`,Nx,A(t(a)(`server.label`))+`:`,1),b(`span`,Px,A(s.value||t(a)(`server.select`)),1),u(t(En),{class:`text-c-2 ui-open:rotate-180 mt-0.25 size-3 transition-transform duration-100`,weight:`bold`})]),_:1})]),_:1},8,[`modelValue`,`options`,`target`])):(D(),x(`div`,Fx,[b(`span`,Ix,A(t(a)(`server.label`))+`:`,1),b(`span`,Lx,A(s.value),1)]))}}),zx={class:`bg-b-2 flex h-8 items-center rounded-t-xl border-x border-t px-3 py-2.5 font-medium`},Bx=[`id`],Vx=E({__name:`AsyncApiServerSelector`,props:{eventBus:{},selectedServer:{},servers:{}},setup(e){let n=v(),{translate:r}=Z(),i=T(()=>{let t=e.selectedServer?.server.variables;if(t)return Object.fromEntries(Object.entries(t).map(([e,t])=>{let n=G(t);return[e,{default:n.default??``,enum:n.enum,description:n.description}]}))}),a=t=>{e.eventBus.emit(`asyncapi-server:update:selected`,{name:t})},o=(t,n)=>{e.selectedServer&&e.eventBus.emit(`asyncapi-server:update:variables`,{name:e.selectedServer.name,key:t,value:n})};return(s,c)=>(D(),x(O,null,[b(`label`,zx,A(t(r)(`server.label`)),1),b(`div`,{id:t(n),class:C([`border`,{"rounded-b-xl":!e.selectedServer?.description&&!i.value}])},[e.servers.length?(D(),N(Rx,{key:0,selectedServer:e.selectedServer,servers:e.servers,target:t(n),"onUpdate:modelValue":a},null,8,[`selectedServer`,`servers`,`target`])):F(``,!0)],10,Bx),u(t(_a),{layout:`reference`,variables:i.value,"onUpdate:variable":o},null,8,[`variables`]),e.selectedServer?.description?(D(),N(t(ta),{key:0,class:`text-c-3 rounded-b-xl border-x border-b px-3 py-1.5`,value:e.selectedServer.description},null,8,[`value`])):F(``,!0)],64))}}),Hx=[`shell/curl`,`ruby/native`,`node/undici`,`php/guzzle`,`python/python3`],Ux=(e,t=Hx)=>!!(e&&t.includes(e)),Wx=(e,t=Hx)=>{let n=new Map;for(let t of e)for(let e of t.options)n.set(e.id,e);return t.flatMap(e=>n.get(e)??[])},Gx=(...e)=>{for(let t of e)if(t){if(!Array.isArray(t)){let e=G(t);if(e?.url)return e;continue}for(let e of t){let t=G(e);if(t?.url)return t}}return null},Kx=(...e)=>{for(let t of e){let e=t?.trim();if(e)return e}},qx=(e,t)=>typeof t.address==`string`&&t.address.length>0?t.address:e,Jx=(e,t)=>Kx(e.title,e.summary)??qx(t,e),Yx=(e,t)=>Kx(e.title,e.summary)??t,Xx=(e,t)=>Kx(e.title,e.summary,e.name)??t,Zx=e=>e.match(/^#\/channels\/([^/]+)$/)?.[1],Qx=(e,t)=>{let n=t.channel;if(!n||!(`$ref`in n))return;let r=Zx(n.$ref);if(!r)return;let i=e.channels?.[r];if(i)return{channelName:r,channel:G(i,Do)}},$x=(e,t,n)=>{let r=t.messages??{};if(e.messages===void 0)return Ii(r);if(e.messages.length===0)return[];let i=`#/channels/${n}/messages/`,a=new Set;for(let t of e.messages)if(`$ref`in t){if(t.$ref.startsWith(i)){let e=t.$ref.slice(i.length);if(r[e]){a.add(e);continue}}for(let[e,n]of Object.entries(r))n&&`$ref`in n&&n.$ref===t.$ref&&a.add(e)}return[...a]},eS=e=>{let t=G(e,Do);return{name:t.name,description:t.description}},tS=(e,t)=>{if(t===`alpha`){e.sort((e,t)=>e.title.localeCompare(t.title));return}if(t===`method`){e.sort((e,t)=>e.action.localeCompare(t.action));return}typeof t==`function`&&e.sort((e,n)=>t({method:e.action,path:e.operationName,ref:e.operationName,httpVerb:e.action},{method:n.action,path:n.operationName,ref:n.operationName,httpVerb:n.action}))},nS=e=>{e.sort((e,t)=>e.title.localeCompare(t.title))},rS=({channelName:e,channel:t,operationId:n,messageNames:r,generateId:i})=>{let a=r.flatMap(r=>{let a=t.messages?.[r];if(!a)return[];let o=G(a,Do);return $n(o)?[]:[{type:`asyncapi-message`,id:i({type:`asyncapi-message`,messageName:r,channelName:e,parentId:n}),title:Xx(o,r),messageName:r,channelName:e}]});return nS(a),a},iS=({operationName:e,operation:t,channel:n,channelName:r,channelAddress:i,generateId:a,parentId:o})=>{if($n(t))return;let s=a({type:`asyncapi-operation`,operationName:e,parentId:o}),c=rS({channelName:r,channel:n,operationId:s,messageNames:$x(t,n,r),generateId:a});return{type:`asyncapi-operation`,id:s,title:Yx(t,e),operationName:e,action:t.action,channelName:r,channelAddress:i,children:c.length>0?c:void 0}},aS=({bucket:e,operationEntries:t,generateId:n,parentId:r,parentTag:i,operationsSorter:a,document:o})=>{if($n(e.channel))return;let s=n({type:`asyncapi-channel`,channelName:e.channelName,parentId:r,parentTag:i}),c=t.flatMap(({operationName:t,operation:r})=>{let i=iS({operationName:t,operation:r,channel:e.channel,channelName:e.channelName,channelAddress:e.channelAddress,generateId:n,parentId:s});return i?[i]:[]});if(tS(c,a),c.length===0)return;let l=o.channels?.[e.channelName];return l&&!(`$ref`in l)&&(l[`x-scalar-order`]=c.map(e=>e.id)),{type:`asyncapi-channel`,id:s,title:Jx(e.channel,e.channelName),channelName:e.channelName,channelAddress:e.channelAddress,children:c}},oS=({tag:e,generateId:t,children:n,parentId:r})=>{let i=t({type:`tag`,tag:e,parentId:r,isGroup:!1}),a=e[`x-displayName`]??e.name??`Untitled Tag`;return e[`x-scalar-order`]=n.map(e=>e.id),{type:`tag`,id:i,title:a,name:e.name||a,description:e.description,children:n,isGroup:!1,isWebhooks:!1}},sS=({tagKeys:e,tagsMap:t,documentId:n,options:{tagsSorter:r,generateId:i},sortOrder:a})=>{let o=e.flatMap(e=>{let{tag:r,entries:a}=Tr({tagsMap:t,name:e,documentId:n,generateId:i});if($n(r))return[];let o=r[`x-scalar-order`];return oS({tag:r,generateId:i,children:o?oa(a,o,e=>e.id):a,parentId:n})});return a?oa(o,a,e=>e.id):(r===`alpha`?o.sort((e,t)=>e.title.localeCompare(t.title)):typeof r==`function`&&o.sort((e,a)=>r(Tr({tagsMap:t,name:e.name,documentId:n,generateId:i}).tag,Tr({tagsMap:t,name:a.name,documentId:n,generateId:i}).tag)),o)},cS=(e,t,n)=>{let r=e.get(t);if(r)return r;let i={channelName:t,channel:n,channelAddress:qx(t,n),channelTags:n.tags?.map(eS)??[],operations:[]};return e.set(t,i),i},lS=e=>{let t=new Map;for(let[n,r]of Object.entries(e.channels??{})){if(!r)continue;let e=G(r,Do);$n(e)||cS(t,n,e)}for(let[n,r]of Object.entries(e.operations??{})){if(!r)continue;let i=G(r,Do);if($n(i))continue;let a=Qx(e,i);a&&cS(t,a.channelName,a.channel).operations.push({operationName:n,operation:i})}return t},uS=(e,t,n)=>{let{generateId:r,operationsSorter:i,tagsSorter:a,hideModels:o,modelsSectionLabel:s}=nn(e,n),c=r({type:`document`,info:t.info,name:e}),l=lS(t),u=new Map,d=[];for(let e of l.values()){if(e.channelTags.length===0){let n=aS({bucket:e,operationEntries:e.operations,generateId:r,parentId:c,operationsSorter:i,document:t});n&&d.push(n)}for(let n of e.channelTags){let a=n.name??`Untitled Tag`,{id:o,entries:s}=Tr({tagsMap:u,name:a,documentId:c,generateId:r});if(s.some(t=>t.type===`asyncapi-channel`&&t.channelName===e.channelName))continue;let l=aS({bucket:e,operationEntries:e.operations,generateId:r,parentId:o,parentTag:{tag:n,id:o},operationsSorter:i,document:t});l&&s.push(l)}}let f=t.components?G(t.components,Do):void 0,p=!o&&f?.schemas?br({documentId:c,document:{components:f},generateId:r,tagsMap:u}):[],m=Kt({generateId:r,parentId:c,info:t.info});u.size>0&&m.push(...sS({tagKeys:[...u.keys()],tagsMap:u,documentId:c,options:{tagsSorter:a,generateId:r},sortOrder:t[`x-scalar-order`]})),i===`alpha`&&d.sort((e,t)=>e.title.localeCompare(t.title)),m.push(...d),p.length&&m.push({type:`models`,id:r({type:`model`,parentId:c}),title:s,name:s,children:p});let h=t[`x-scalar-order`],g=h?oa(m,h,e=>e.id):m;return t[`x-scalar-order`]=co(g.map(e=>e.id)),{id:c,type:`document`,title:t.info?.title?.trim()||`Untitled Document`,name:e,children:g,icon:t[`x-scalar-icon`]}},dS={class:`client-libraries-text`},fS={"aria-hidden":`true`,class:`client-libraries-icon__more`},pS={key:1,class:`client-libraries-icon`,height:`50`,role:`presentation`,viewBox:`0 0 50 50`,width:`50`,xmlns:`http://www.w3.org/2000/svg`},mS={key:0,class:`client-libraries-text client-libraries-text-more`},hS={class:`sr-only`},gS=X(E({__name:`ClientDropdown`,props:{clientOptions:{},selectedClient:{},featuredClients:{},eventBus:{}},setup(e){let r=n(),{translate:i}=Z(),a=e=>`programming-language-${e===`js`?`javascript`:e}`,o=t=>{if(!r.value)return;let n=Cn(r.value);setTimeout(()=>{n()},300),t.clientKey!==`custom`&&e.eventBus.emit(`workspace:update:selected-client`,t.id)},s=T(()=>e.selectedClient?.split(`/`)[0]);return(n,c)=>(D(),x(`div`,{ref_key:`containerRef`,ref:r,class:`client-libraries-content`},[(D(!0),x(O,null,S(e.featuredClients,n=>(D(),N(t(ly),{key:n.clientKey,class:C([`client-libraries rendered-code-sdks`,{"client-libraries__active":n.id===e.selectedClient}])},{default:k(()=>[b(`div`,{class:C(`client-libraries-icon__${n.targetKey}`)},[u(t(go),{class:`client-libraries-icon`,icon:a(n.targetKey)},null,8,[`icon`])],2),b(`span`,dS,A(n.targetTitle),1)]),_:2},1032,[`class`]))),128)),u(t(hr),{filterFn:t(Ta),modelValue:t(ei)(e.clientOptions,e.selectedClient),options:e.clientOptions,placement:`bottom-end`,teleport:``,"onUpdate:modelValue":c[0]||=e=>o(e)},{default:k(()=>[b(`button`,{class:C([`client-libraries client-libraries__select`,{"client-libraries__active":e.selectedClient&&!t(Ux)(e.selectedClient)}]),type:`button`},[b(`div`,fS,[e.selectedClient&&!t(Ux)(e.selectedClient)?(D(),x(`div`,{key:0,class:C(`client-libraries-icon__${s.value}`)},[s.value?(D(),N(t(go),{key:0,class:`client-libraries-icon`,icon:a(s.value)},null,8,[`icon`])):F(``,!0)],2)):(D(),x(`svg`,pS,[...c[1]||=[b(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},[b(`path`,{d:`M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0`})],-1)]]))]),e.clientOptions.length?(D(),x(`span`,mS,A(t(i)(`clientLibraries.more`)),1)):F(``,!0),b(`span`,hS,A(t(i)(`clientLibraries.selectAll`)),1)],2)]),_:1},8,[`filterFn`,`modelValue`,`options`])],512))}}),[[`__scopeId`,`data-v-783c0ba4`]]),_S={key:0,ref:`wrapper-ref`},vS=[`id`],yS=[`id`],bS=X(E({__name:`ClientSelector`,props:{clientOptions:{},selectedClient:{default:()=>Li},eventBus:{}},setup(e,{expose:r}){let i=v(),a=v(),{translate:o}=Z(),s=e=>!!e?.startsWith(`custom/`),c=n(s(e.selectedClient)?Li:e.selectedClient);m(()=>e.selectedClient,e=>{s(e)||(c.value=e)});let l=T(()=>e.clientOptions.flatMap(e=>e.options.find(e=>e.id===c.value)??[])[0]),f=T(()=>Wx(e.clientOptions)),p=T(()=>f.value.findIndex(e=>c.value===e.id)),h=ee(`wrapper-ref`),g=t=>{let n=f.value[t];n&&h.value&&e.eventBus.emit(`workspace:update:selected-client`,n.id)};return r({selectedClientOption:l}),(n,r)=>e.clientOptions.length?(D(),x(`div`,_S,[u(t(sy),{manual:``,selectedIndex:p.value,onChange:g},{default:k(()=>[b(`div`,{id:t(i),class:`client-libraries-heading`},A(t(o)(`clientLibraries.heading`)),9,vS),u(t(cy),{"aria-labelledby":t(i),class:`client-libraries-list`},{default:k(()=>[u(gS,{clientOptions:e.clientOptions,eventBus:e.eventBus,featuredClients:f.value,morePanel:t(a),selectedClient:c.value},null,8,[`clientOptions`,`eventBus`,`featuredClients`,`morePanel`,`selectedClient`])]),_:1},8,[`aria-labelledby`]),u(t(uy),null,{default:k(()=>[t(Ux)(c.value)?(D(!0),x(O,{key:0},S(f.value,e=>(D(),N(t(dy),{key:e.id,class:`selected-client card-footer -outline-offset-2`},{default:k(()=>[d(A(e.title),1)]),_:2},1024))),128)):(D(),x(`div`,{key:1,id:t(a),class:`selected-client card-footer -outline-offset-2`,role:`tabpanel`,tabindex:`0`},A(l.value?.title),9,yS))]),_:1})]),_:1},8,[`selectedIndex`])],512)):F(``,!0)}}),[[`__scopeId`,`data-v-d02a9cbe`]]),xS=e=>e?Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(`x-`))):{},SS=X(E({__name:`Badge`,props:{color:{}},setup(e){let t=T(()=>e.color?{"--badge-background-color":e.color,"--badge-text-color":`color-mix(in srgb, ${e.color}, black 40%)`}:{});return(e,n)=>(D(),x(`div`,{class:`badge`,style:le(t.value)},[P(e.$slots,`default`,{},void 0,!0)],4))}}),[[`__scopeId`,`data-v-fb946bb8`]]),CS=[`href`],wS=X(E({__name:`DownloadLink`,props:{documentDownloadType:{},eventBus:{},documentUrl:{},documentType:{default:`openapi`}},setup(e){let{translate:t}=Z(),n=T(()=>e.documentType===`asyncapi`?t(`download.asyncapi`):t(`download.openapi`)),r=t=>{e.eventBus.emit(`ui:download:document`,{format:t})};return(t,i)=>[`yaml`,`json`,`both`].includes(e.documentDownloadType)||e.documentDownloadType===`direct`&&e.documentUrl?(D(),x(`div`,{key:0,class:C([`download-container group`,{"download-both":e.documentDownloadType===`both`}])},[e.documentDownloadType===`direct`&&e.documentUrl?(D(),x(`a`,{key:0,class:`download-link download-button`,href:e.documentUrl},[b(`span`,null,A(n.value),1)],8,CS)):F(``,!0),e.documentDownloadType===`json`||e.documentDownloadType===`both`?(D(),x(`button`,{key:1,class:`download-button`,type:`button`,onClick:i[0]||=I(()=>r(`json`),[`prevent`])},[b(`span`,null,A(n.value),1),u(SS,{class:`extension hidden group-hover:flex`},{default:k(()=>[...i[2]||=[d(`json`,-1)]]),_:1})])):F(``,!0),e.documentDownloadType===`yaml`||e.documentDownloadType===`both`?(D(),x(`button`,{key:2,class:`download-button`,type:`button`,onClick:i[1]||=I(()=>r(`yaml`),[`prevent`])},[b(`span`,null,A(n.value),1),u(SS,{class:`extension hidden group-hover:flex`},{default:k(()=>[...i[3]||=[d(`yaml`,-1)]]),_:1})])):F(``,!0)],2)):F(``,!0)}}),[[`__scopeId`,`data-v-deac5eaa`]]),TS=X(E({__name:`IntroductionCard`,props:{row:{type:Boolean}},setup(e){return(t,n)=>(D(),x(`div`,{class:C([`introduction-card`,{"introduction-card-row":e.row}])},[P(t.$slots,`default`,{},void 0,!0)],2))}}),[[`__scopeId`,`data-v-5764c94a`]]),ES=X(E({__name:`Section`,emits:[`intersecting`],setup(e,{emit:t}){let n=t,r=ee(`section`);return Ob(r,()=>n(`intersecting`)),(e,t)=>(D(),x(`section`,{ref_key:`section`,ref:r,class:`section`},[P(e.$slots,`default`,{},void 0,!0)],512))}}),[[`__scopeId`,`data-v-be4443e9`]]),DS={},OS={class:`section-column`};function kS(e,t){return D(),x(`div`,OS,[P(e.$slots,`default`,{},void 0,!0)])}var AS=X(DS,[[`render`,kS],[`__scopeId`,`data-v-699c28e3`]]),jS={},MS={class:`section-columns`};function NS(e,t){return D(),x(`div`,MS,[P(e.$slots,`default`,{},void 0,!0)])}var PS=X(jS,[[`render`,NS],[`__scopeId`,`data-v-8b9602bf`]]),FS={key:1,class:`section-container`},IS=X(E({__name:`SectionContainer`,props:{omit:{type:Boolean}},setup(e){return(t,n)=>e.omit?P(t.$slots,`default`,{key:0},void 0,!0):(D(),x(`div`,FS,[P(t.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-20a1472a`]]),LS={},RS={class:`section-content`};function zS(e,t){return D(),x(`div`,RS,[P(e.$slots,`default`,{},void 0,!0)])}var BS=X(LS,[[`render`,zS],[`__scopeId`,`data-v-6101128d`]]),VS={class:`section-header-wrapper xl:gap-12`},HS=X(E({__name:`SectionHeader`,props:{tight:{type:Boolean},removeMargin:{type:Boolean,default:!1}},setup(e){return(t,n)=>(D(),x(`div`,VS,[b(`div`,{class:C([`section-header`,{tight:e.tight,"mb-3":!e.removeMargin}])},[P(t.$slots,`default`,{},void 0,!0)],2),t.$slots.links?P(t.$slots,`links`,{key:0},void 0,!0):F(``,!0)]))}}),[[`__scopeId`,`data-v-09a18ec6`]]),US=X(E({__name:`SectionHeaderTag`,props:{level:{default:1}},setup(e){return(t,n)=>(D(),N(me(`h${e.level}`),{class:`section-header-label`},{default:k(()=>[P(t.$slots,`default`,{},void 0,!0)]),_:3}))}}),[[`__scopeId`,`data-v-f1ac6c38`]]),WS={key:0,class:`text-base`},GS=E({__name:`SpecificationExtension`,props:{value:{}},setup(e){let{getSpecificationExtensions:n}=Nb();function r(e){return Object.keys(e??{}).filter(e=>e.startsWith(`x-`))}function i(e){return e.flatMap(e=>n(e)).filter(e=>e.component)}let a=T(()=>r(e.value)),o=T(()=>i(a.value));return(n,r)=>typeof e.value==`object`&&o.value.length?(D(),x(`div`,WS,[(D(!0),x(O,null,S(o.value,n=>(D(),N(t(so),null,{default:k(()=>[n.renderer?(D(),N(me(n.renderer),w({key:0,ref_for:!0},{[n.name]:e.value?.[n.name],component:n.component}),null,16)):(D(),N(me(n.component),w({key:1,ref_for:!0},{[n.name]:e.value?.[n.name]}),null,16))]),_:2},1024))),256))])):F(``,!0)}}),KS=[`id`],qS=E({__name:`InfoMarkdownSection`,props:{id:{},content:{},transformHeading:{type:Function},eventBus:{}},setup(e){let n=ee(`element`);return Ob(n,()=>e.id?e.eventBus?.emit(`intersecting:nav-item`,{id:e.id}):void 0),(r,i)=>(D(),x(`div`,{id:e.id,ref_key:`element`,ref:n,class:`introduction-description-heading scroll-mt-16`},[u(t(ta),{transform:e.transformHeading,transformType:`heading`,value:e.content,withImages:``},null,8,[`transform`,`value`])],8,KS))}}),JS={key:0,class:`introduction-description mt-6 flex flex-col`},YS=X(E({__name:`InfoDescription`,props:{eventBus:{},headingSlugGenerator:{type:Function},description:{}},setup(e){let t=T(()=>{if(!e.description)return[];let{slug:t}=po();return Za(e.description).map(n=>{let r=hi(n)[0];return{id:r?e.headingSlugGenerator({...r,slug:t(r.value)}):void 0,content:n}})}),n=t=>{if(!Aa(t))return t;let{slug:n}=po(),r=Di(t);return t.data={hProperties:{id:e.headingSlugGenerator({depth:t.depth,value:r,slug:n(r)})}},t};return(r,i)=>e.description?(D(),x(`div`,JS,[(D(!0),x(O,null,S(t.value,t=>(D(),N(qS,{id:t.id,key:t.id,content:t.content,eventBus:e.eventBus,transformHeading:n},null,8,[`id`,`content`,`eventBus`]))),128))])):F(``,!0)}}),[[`__scopeId`,`data-v-0370764f`]]),XS=X(E({__name:`LinkList`,setup(e){let t=n(),r=n(!1),i=()=>{if(!t.value)return;let{scrollWidth:e,clientWidth:n}=t.value;r.value=e>n},a=null;return ie(()=>{i(),window.addEventListener(`resize`,i),t.value&&(a=new MutationObserver(()=>{i()}),a.observe(t.value,{childList:!0,subtree:!0}))}),oe(()=>{window.removeEventListener(`resize`,i),a&&=(a.disconnect(),null)}),(e,n)=>(D(),x(`div`,{ref_key:`containerRef`,ref:t,class:C([{"icons-only":r.value},`custom-scroll mb-3 flex h-auto min-h-8 max-w-full items-center gap-2 overflow-x-auto text-base whitespace-nowrap xl:mb-1.5`])},[P(e.$slots,`default`,{},void 0,!0)],2))}}),[[`__scopeId`,`data-v-b59b0acf`]]),ZS={key:0,class:`group flex items-center last:border-r-0 xl:border-r xl:first:ml-auto`},QS=[`href`],$S={key:0,class:`ml-1 empty:hidden`},eC={key:1,class:`ml-1 empty:hidden`},tC=E({__name:`ExternalDocs`,props:{value:{}},setup(e){return(n,r)=>e.value?(D(),x(`div`,ZS,[b(`a`,{href:e.value.url,class:`text-c-1 hover:bg-b-2 mr-2 flex min-h-7 min-w-7 items-center rounded-lg border px-2 py-1 no-underline group-last:mr-0 xl:border-none`,target:`_blank`,rel:`noopener noreferrer`},[u(t(Vn),{weight:`bold`,class:`size-3 text-current`}),e.value.description?(D(),x(`span`,$S,A(e.value.description),1)):(D(),x(`span`,eC,A(e.value.url),1))],8,QS)])):F(``,!0)}}),nC={key:0,class:`group flex items-center last:border-r-0 xl:border-r xl:first:ml-auto`},rC=[`href`],iC={class:`ml-1 empty:hidden`},aC={key:1,class:`group flex items-center last:border-r-0 xl:border-r xl:first:ml-auto`},oC=[`href`],sC={class:`ml-1 empty:hidden`},cC={key:2,class:`group flex items-center last:border-r-0 xl:border-r xl:first:ml-auto`},lC=E({__name:`Contact`,props:{value:{}},setup(e){let n=Ir({base:`text-c-1 mr-2 flex min-h-7 min-w-7 items-center rounded-lg border px-2 py-1 group-last:mr-0 xl:border-none`,variants:{link:{true:`no-underline hover:bg-b-2`}}});return(r,i)=>e.value?(D(),x(O,{key:0},[e.value.email?(D(),x(`div`,nC,[b(`a`,{class:C(t(n)({link:!0})),href:`mailto:${e.value.email}`},[u(t(Gn),{weight:`bold`,class:`size-3 text-current`}),b(`span`,iC,A(e.value.name),1)],10,rC)])):F(``,!0),e.value.url?(D(),x(`div`,aC,[b(`a`,{class:C(t(n)({link:!0})),href:e.value.url,rel:`noopener noreferrer`,target:`_blank`},[u(t(i_),{weight:`bold`,class:`size-3 text-current`}),b(`span`,sC,A(e.value.email?``:e.value.name),1)],10,oC)])):!e.value.email&&e.value.name?(D(),x(`div`,cC,[b(`span`,{class:C(t(n)({link:!1}))},A(e.value.name),3)])):F(``,!0)],64)):F(``,!0)}}),uC={class:`group flex items-center last:border-r-0 xl:border-r xl:first:ml-auto`},dC=[`href`],fC={class:`ml-1 empty:hidden`},pC=E({__name:`InfoLink`,props:{name:{},url:{}},setup(e){return(n,r)=>(D(),x(`div`,uC,[b(`a`,{class:`text-c-1 hover:bg-b-2 mr-2 flex min-h-7 min-w-7 items-center rounded-lg border px-2 py-1 no-underline group-last:mr-0 xl:border-none`,href:e.url,target:`_blank`,rel:`noopener noreferrer`},[u(t(i_),{weight:`bold`,class:`size-3 text-current`}),b(`span`,fC,A(e.name),1)],8,dC)]))}}),mC={class:`group flex h-fit items-center last:border-r-0 xl:border-r xl:first:ml-auto`},hC=[`href`],gC={class:`ml-1 empty:hidden`},_C={class:`ml-1 empty:hidden`},vC=E({__name:`License`,props:{value:{}},setup(e){return(n,r)=>(D(),x(`div`,mC,[e.value?.url?(D(),x(`a`,{key:0,class:`text-c-1 hover:bg-b-2 mr-2 flex min-h-7 min-w-7 items-center rounded-lg border px-2 py-1 no-underline group-last:mr-0 xl:border-none`,href:e.value.url,rel:`noopener noreferrer`,target:`_blank`},[u(t(Ag),{class:`size-3 text-current`,weight:`bold`}),b(`span`,gC,A(e.value?.name||`identifier`in e.value&&e.value.identifier||e.value.url),1)],8,hC)):(D(),x(O,{key:1},[u(t(Ag),{class:`size-3 text-current`,weight:`bold`}),b(`span`,_C,A(e.value?.name),1)],64))]))}}),yC={key:0,class:`group flex items-center last:border-r-0 xl:border-r xl:first:ml-auto`},bC=[`href`],xC={class:`ml-1 empty:hidden`},SC=E({__name:`TermsOfService`,props:{value:{}},setup(e){let{translate:n}=Z();return(r,i)=>e.value?(D(),x(`div`,yC,[b(`a`,{class:`text-c-1 hover:bg-b-2 mr-2 flex min-h-7 min-w-7 items-center rounded-lg border px-2 py-1 no-underline group-last:mr-0 xl:border-none`,href:e.value,rel:`noopener noreferrer`,target:`_blank`},[u(t($_),{class:`size-3 text-current`,weight:`bold`}),b(`span`,xC,A(t(n)(`info.termsOfService`)),1)],8,bC)])):F(``,!0)}}),CC=E({__name:`InfoLinks`,props:{info:{},externalDocs:{}},setup(e){let n=T(()=>{let t=e.info[`x-scalar-links`];return Array.isArray(t)?t.filter(e=>typeof e?.name==`string`&&typeof e?.url==`string`):[]}),r=T(()=>!!(e.externalDocs||e.info.contact||e.info.license||e.info.termsOfService||n.value.length));return(i,a)=>r.value?(D(),N(t(XS),{key:0},{default:k(()=>[e.externalDocs?(D(),N(t(tC),{key:0,value:e.externalDocs},null,8,[`value`])):F(``,!0),e.info.contact?(D(),N(t(lC),{key:1,value:e.info.contact},null,8,[`value`])):F(``,!0),e.info.license?(D(),N(t(vC),{key:2,value:t(G)(e.info.license)},null,8,[`value`])):F(``,!0),e.info.termsOfService?(D(),N(t(SC),{key:3,value:e.info.termsOfService},null,8,[`value`])):F(``,!0),(D(!0),x(O,null,S(n.value,e=>(D(),N(t(pC),{key:e.url,name:e.name,url:e.url},null,8,[`name`,`url`]))),128))]),_:1})):F(``,!0)}}),wC=E({__name:`InfoVersion`,props:{version:{}},setup(e){let n=T(()=>{if(e.version==null)return e.version;let t=String(e.version);return/^\d/.test(t)?`v${t}`:t});return(e,r)=>n.value?(D(),N(t(SS),{key:0},{default:k(()=>[d(A(n.value),1)]),_:1})):F(``,!0)}}),TC={class:`introduction-loading flex flex-col gap-5`,"aria-hidden":`true`},EC={key:0,class:`flex flex-col gap-3 sm:flex-row sm:gap-6`},DC=X(E({__name:`IntroductionLoading`,props:{hasAside:{type:Boolean,default:!0}},setup(e){return(n,r)=>(D(),x(`div`,TC,[r[3]||=ne(`<div class="flex gap-1.5" data-v-1bd6e256><div class="introduction-skeleton h-6 w-14 rounded-full" data-v-1bd6e256></div><div class="introduction-skeleton h-6 w-24 rounded-full" data-v-1bd6e256></div></div><div class="grid grid-cols-1 gap-3 xl:grid-cols-2 xl:gap-12" data-v-1bd6e256><div class="introduction-skeleton h-9 w-3/5 rounded-lg" data-v-1bd6e256></div><div class="flex flex-wrap items-center gap-2 xl:justify-end" data-v-1bd6e256><div class="introduction-skeleton h-5 w-28 rounded" data-v-1bd6e256></div><div class="introduction-skeleton h-5 w-28 rounded" data-v-1bd6e256></div><div class="introduction-skeleton h-5 w-12 rounded" data-v-1bd6e256></div></div></div>`,2),u(t(PS),null,{default:k(()=>[u(t(AS),null,{default:k(()=>[...r[0]||=[b(`div`,{class:`flex flex-col gap-3`},[b(`div`,{class:`introduction-skeleton mb-2 h-5 w-56 rounded`}),b(`div`,{class:`introduction-skeleton h-4 w-full rounded`}),b(`div`,{class:`introduction-skeleton h-4 w-11/12 rounded`}),b(`div`,{class:`introduction-skeleton h-4 w-4/5 rounded`}),b(`div`,{class:`introduction-skeleton mt-4 h-6 w-40 rounded`}),b(`div`,{class:`introduction-skeleton h-4 w-3/4 rounded`}),b(`div`,{class:`introduction-skeleton h-4 w-2/3 rounded`}),b(`div`,{class:`introduction-skeleton h-4 w-1/2 rounded`})],-1)]]),_:1}),e.hasAside?(D(),N(t(AS),{key:0},{default:k(()=>[...r[1]||=[b(`div`,{class:`sticky-cards gap-3`},[b(`div`,{class:`introduction-skeleton h-20 w-full rounded-lg`}),b(`div`,{class:`introduction-skeleton h-28 w-full rounded-lg`}),b(`div`,{class:`introduction-skeleton h-28 w-full rounded-lg`})],-1)]]),_:1})):F(``,!0)]),_:1}),e.hasAside?F(``,!0):(D(),x(`div`,EC,[...r[2]||=[b(`div`,{class:`introduction-skeleton h-28 w-full flex-1 rounded-lg`},null,-1),b(`div`,{class:`introduction-skeleton h-28 w-full flex-1 rounded-lg`},null,-1),b(`div`,{class:`introduction-skeleton h-28 w-full flex-1 rounded-lg`},null,-1)]]))]))}}),[[`__scopeId`,`data-v-1bd6e256`]]),OC=E({__name:`SpecificationVersion`,props:{documentType:{default:`openapi`},version:{}},setup(e){let n=T(()=>e.documentType===`asyncapi`?`AsyncAPI`:`OpenAPI`);return(r,i)=>e.version?(D(),N(t(SS),{key:0},{default:k(()=>[d(A(n.value)+` `+A(e.version),1)]),_:1})):F(``,!0)}}),kC={class:`flex gap-1.5`},AC={class:`sticky-cards`},jC=X(E({__name:`IntroductionLayout`,props:{id:{},documentType:{},specificationVersion:{},info:{},externalDocs:{},documentExtensions:{},infoExtensions:{},headingSlugGenerator:{type:Function},eventBus:{}},setup(e){let{translate:n}=Z();return(r,i)=>(D(),N(t(IS),null,{default:k(()=>[u(t(ES),{id:e.id,"aria-label":t(n)(`navigation.introduction`),class:`introduction-section z-1 gap-12`,onIntersecting:i[0]||=()=>e.id&&e.eventBus?.emit(`intersecting:nav-item`,{id:e.id})},{default:k(()=>[u(t(BS),null,{default:k(()=>[e.info?(D(),x(O,{key:1},[b(`div`,kC,[u(wC,{version:e.info?.version},null,8,[`version`]),u(OC,{documentType:e.documentType,version:e.specificationVersion},null,8,[`documentType`,`version`])]),u(t(HS),{tight:``},{links:k(()=>[u(CC,{externalDocs:e.externalDocs,info:e.info},null,8,[`externalDocs`,`info`])]),default:k(()=>[u(t(US),{level:1},{default:k(()=>[d(A(e.info?.title),1)]),_:1})]),_:1}),u(t(PS),null,{default:k(()=>[u(t(AS),null,{default:k(()=>[P(r.$slots,`download-link`,{},void 0,!0),u(YS,{description:e.info?.description,eventBus:e.eventBus,headingSlugGenerator:e.headingSlugGenerator},null,8,[`description`,`eventBus`,`headingSlugGenerator`])]),_:3}),r.$slots.aside?(D(),N(t(AS),{key:0},{default:k(()=>[b(`div`,AC,[P(r.$slots,`aside`,{},void 0,!0)])]),_:3})):F(``,!0)]),_:3}),u(t(GS),{value:e.documentExtensions},null,8,[`value`]),u(t(GS),{value:e.infoExtensions},null,8,[`value`])],64)):(D(),N(DC,{key:0,hasAside:!!r.$slots.aside},null,8,[`hasAside`]))]),_:3}),P(r.$slots,`after`,{},void 0,!0)]),_:3},8,[`id`,`aria-label`])]),_:3}))}}),[[`__scopeId`,`data-v-d6744cde`]]),MC=E({__name:`InfoBlock`,props:{id:{},specificationVersion:{},info:{},externalDocs:{},documentExtensions:{},infoExtensions:{},eventBus:{},headingSlugGenerator:{type:Function},layout:{},documentDownloadType:{default:`both`},documentUrl:{},documentType:{}},setup(e){let t=T(()=>e.layout===`classic`?`after`:`aside`);return(n,r)=>(D(),N(jC,{id:e.id,documentExtensions:e.documentExtensions,documentType:e.documentType,eventBus:e.eventBus,externalDocs:e.externalDocs,headingSlugGenerator:e.headingSlugGenerator,info:e.info,infoExtensions:e.infoExtensions,specificationVersion:e.specificationVersion},{[t.value]:k(()=>[u(TS,{row:e.layout===`classic`},{default:k(()=>[P(n.$slots,`selectors`)]),_:3},8,[`row`])]),"download-link":k(()=>[u(wS,{documentDownloadType:e.documentDownloadType,documentType:e.documentType,documentUrl:e.documentUrl,eventBus:e.eventBus},null,8,[`documentDownloadType`,`documentType`,`documentUrl`,`eventBus`])]),_:2},1032,[`id`,`documentExtensions`,`documentType`,`eventBus`,`externalDocs`,`headingSlugGenerator`,`info`,`infoExtensions`,`specificationVersion`]))}}),NC={},PC={class:`introduction-card-item`};function FC(e,t){return D(),x(`div`,PC,[P(e.$slots,`default`,{},void 0,!0)])}var IC=X(NC,[[`render`,FC],[`__scopeId`,`data-v-dfab866f`]]),LC=e=>{let t=Math.max(0,...[...e.matchAll(/`+/g)].map(e=>e[0].length)),n="`".repeat(Math.max(3,t+1));return`${n}\n${e}\n${n}`},RC=e=>Array.isArray(e)?e.flatMap(e=>{if(typeof e?.lang!=`string`)return[];let t=typeof e.description==`string`&&e.description.trim()?e.description:``,n=typeof e.source==`string`?e.source.trim():``;if(!t&&!n)return[];let r=[t,n&&LC(n)].filter(Boolean).join(`
225
-
226
- `);return[{lang:e.lang,description:r}]}):[],zC={c:`programming-language-c`,clojure:`programming-language-clojure`,csharp:`programming-language-csharp`,"c#":`programming-language-csharp`,cs:`programming-language-csharp`,css:`programming-language-css3`,css3:`programming-language-css3`,dart:`programming-language-dart`,fsharp:`programming-language-fsharp`,"f#":`programming-language-fsharp`,go:`programming-language-go`,golang:`programming-language-go`,html:`programming-language-html5`,html5:`programming-language-html5`,http:`programming-language-http`,java:`programming-language-java`,javascript:`programming-language-javascript`,js:`programming-language-javascript`,json:`programming-language-json`,kotlin:`programming-language-kotlin`,node:`programming-language-node`,"node.js":`programming-language-node`,nodejs:`programming-language-node`,objc:`programming-language-objc`,"objective-c":`programming-language-objc`,ocaml:`programming-language-ocaml`,php:`programming-language-php`,powershell:`programming-language-powershell`,python:`programming-language-python`,py:`programming-language-python`,r:`programming-language-r`,ruby:`programming-language-ruby`,rb:`programming-language-ruby`,rust:`programming-language-rust`,rs:`programming-language-rust`,scala:`programming-language-scala`,shell:`programming-language-shell`,bash:`programming-language-shell`,sh:`programming-language-shell`,curl:`programming-language-shell`,swift:`programming-language-swift`,typescript:`programming-language-typescript`,ts:`programming-language-typescript`},BC=e=>zC[e.trim().toLowerCase()],VC=(e,t,n)=>{let r=e.length;if(t<=0)return r;let i=n=>{let r=0,i=0;for(let a of e){if(r+a>t-n)break;r+=a,i++}return i};return i(0)>=r?r:Math.max(1,i(n))},HC={key:0},UC=[`id`],WC={class:`client-libraries-content`},GC=[`aria-labelledby`],KC=[`id`,`aria-selected`,`tabindex`,`onClick`,`onKeydown`],qC={class:`client-libraries-text`},JC={class:`client-libraries-text`},YC={"aria-hidden":`true`,class:`client-libraries-measure-clip`},XC={class:`client-libraries-text`},ZC={class:`client-libraries`},QC={class:`client-libraries-text`},$C=[`aria-labelledby`],ew=X(E({__name:`SdkInstallationInstructions`,props:{xScalarSdkInstallation:{},selectedClient:{},eventBus:{}},setup(e){let r=v(),i=v(),a=`${i}-panel`,{translate:o}=Z(),s=T(()=>RC(e.xScalarSdkInstallation).map(e=>({...e,icon:BC(e.lang)}))),c=n(0),l=T(()=>s.value[c.value]),d=T(()=>Wr(s.value.map(e=>({lang:e.lang,source:``})))),f=t=>{c.value=t;let n=d.value[t];n&&e.eventBus?.emit(`workspace:update:selected-client`,n)};m([()=>e.selectedClient,d],([e,t])=>{let n=e?t.findIndex(t=>t===e):-1;n>=0?c.value=n:c.value>t.length-1&&(c.value=0)},{immediate:!0}),m(()=>s.value.map(e=>e.lang).join(`
227
- `),()=>void M(te));let p=n(),h=n(),g=n(0),_=n([]),ee=n(0),te=()=>{let e=h.value,t=p.value;if(!e||!t)return;let n=Array.from(e.children).map(e=>e.offsetWidth);_.value=n.slice(0,s.value.length),ee.value=n[s.value.length]??0,g.value=t.clientWidth},ne=T(()=>!_.value.length||g.value<=0?s.value.length:VC(_.value,g.value,ee.value)),re=T(()=>s.value.slice(0,ne.value)),y=T(()=>c.value>=ne.value),ae=T(()=>s.value.slice(ne.value).map((e,t)=>({id:String(ne.value+t),label:e.lang}))),w=T(()=>ae.value.find(e=>e.id===String(c.value))),oe=e=>{e&&f(Number(e.id))},se=T(()=>y.value?r:`${i}-tab-${c.value}`),E=T(()=>y.value?-1:c.value),le=e=>{M(()=>{p.value?.querySelectorAll(`[role="tab"]`)[e]?.focus()})},ue=(e,t)=>{let n=ne.value-1,r=t;switch(e.key){case`ArrowRight`:case`ArrowDown`:r=t>=n?0:t+1;break;case`ArrowLeft`:case`ArrowUp`:r=t<=0?n:t-1;break;case`Home`:r=0;break;case`End`:r=n;break;default:return}e.preventDefault(),f(r),le(r)},de,fe=0,j=()=>{if(typeof requestAnimationFrame>`u`){te();return}cancelAnimationFrame(fe),fe=requestAnimationFrame(te)};return ie(()=>{typeof ResizeObserver<`u`&&(de=new ResizeObserver(j),p.value&&de.observe(p.value),h.value&&de.observe(h.value)),te()}),ce(()=>{de?.disconnect(),typeof cancelAnimationFrame<`u`&&cancelAnimationFrame(fe)}),(e,n)=>s.value.length?(D(),x(`div`,HC,[b(`div`,{id:t(r),class:`client-libraries-heading`},A(t(o)(`clientLibraries.heading`)),9,UC),b(`div`,WC,[b(`div`,{ref_key:`tabsRef`,ref:p,"aria-labelledby":t(r),class:`client-libraries-row`,role:`tablist`},[(D(!0),x(O,null,S(re.value,(e,n)=>(D(),x(`button`,{id:`${t(i)}-tab-${n}`,key:n,"aria-controls":a,"aria-selected":n===c.value,class:C([`client-libraries`,{"client-libraries__active":n===c.value}]),role:`tab`,tabindex:n===E.value?0:-1,type:`button`,onClick:e=>f(n),onKeydown:e=>ue(e,n)},[e.icon?(D(),N(t(go),{key:0,class:`client-libraries-icon`,icon:e.icon},null,8,[`icon`])):F(``,!0),b(`span`,qC,A(e.lang),1)],42,KC))),128)),ne.value<s.value.length?(D(),N(t(hr),{key:0,modelValue:w.value,options:ae.value,placement:`bottom-end`,teleport:``,"onUpdate:modelValue":oe},{default:k(()=>[b(`button`,{class:C([`client-libraries client-libraries-more`,{"client-libraries__active":y.value}]),type:`button`},[u(t(go),{class:`client-libraries-icon`,icon:y.value&&l.value?.icon?l.value.icon:`Ellipses`},null,8,[`icon`]),b(`span`,JC,A(t(o)(`clientLibraries.more`)),1)],2)]),_:1},8,[`modelValue`,`options`])):F(``,!0)],8,GC),b(`div`,YC,[b(`div`,{ref_key:`measureRef`,ref:h,class:`client-libraries-row client-libraries-row--measure`},[(D(!0),x(O,null,S(s.value,(e,n)=>(D(),x(`span`,{key:n,class:`client-libraries`},[e.icon?(D(),N(t(go),{key:0,class:`client-libraries-icon`,icon:e.icon},null,8,[`icon`])):F(``,!0),b(`span`,XC,A(e.lang),1)]))),128)),b(`span`,ZC,[u(t(go),{class:`client-libraries-icon`,icon:`Ellipses`}),b(`span`,QC,A(t(o)(`clientLibraries.more`)),1)])],512)])]),l.value?.description?(D(),x(`div`,{key:0,id:a,"aria-labelledby":se.value,class:`selected-client`,role:`tabpanel`,tabindex:`0`},[u(t(ta),{value:l.value.description},null,8,[`value`])],8,$C)):F(``,!0)])):F(``,!0)}}),[[`__scopeId`,`data-v-9cbb007b`]]),tw={class:`sr-only`},nw={class:`overflow-x-auto`},rw={key:1,class:`text-c-1 flex h-auto w-full items-center gap-0.75 !rounded-b-xl px-3 py-1.5 text-base leading-[20px] whitespace-nowrap`},iw={class:`sr-only`},aw={class:`overflow-x-auto`},ow=E({__name:`Selector`,props:{selectedServer:{},servers:{},target:{}},emits:[`update:modelValue`],setup(e,{expose:n,emit:r}){let i=r,{translate:a}=Z(),o=T(()=>e.servers.map(e=>({id:e.url,label:e.url}))),s=T(()=>e.selectedServer?.url?.replace(/\/$/,``)||``),c=T(()=>o.value.find(t=>t.id===e.selectedServer?.url));return n({servers:e.servers,serverUrlWithoutTrailingSlash:s,serverOptions:o,selectedServer:e.selectedServer}),(n,r)=>o.value.length>1?(D(),N(t(fn),{key:0,ref:`elem`,class:`group`,modelValue:c.value,options:o.value,placement:`bottom-start`,resize:``,target:e.target,"onUpdate:modelValue":r[0]||=e=>i(`update:modelValue`,e.id)},{default:k(()=>[u(t(oo),{class:`bg-b-1 text-c-1 h-auto w-full justify-start gap-1.5 overflow-x-auto rounded-t-none !rounded-b-xl px-3 py-1.5 text-base/5.25 font-normal whitespace-nowrap -outline-offset-1`,variant:`ghost`},{default:k(()=>[b(`span`,tw,A(t(a)(`server.label`))+`:`,1),b(`span`,nw,A(s.value||t(a)(`server.select`)),1),u(t(En),{class:`text-c-2 ui-open:rotate-180 mt-0.25 size-3 transition-transform duration-100`,weight:`bold`})]),_:1})]),_:1},8,[`modelValue`,`options`,`target`])):(D(),x(`div`,rw,[b(`span`,iw,A(t(a)(`server.label`))+`:`,1),b(`span`,aw,A(s.value),1)]))}}),sw={class:`bg-b-2 flex h-8 items-center rounded-t-xl border-x border-t px-3 py-2.5 font-medium`},cw=[`id`],lw=E({__name:`ServerSelector`,props:{eventBus:{},selectedServer:{},servers:{}},setup(e){let n=v(),{translate:r}=Z(),i=t=>{e.eventBus.emit(`server:update:selected`,{url:e.selectedServer?.url===t?``:t,meta:{type:`document`}})},a=(t,n)=>{let r=e.servers.findIndex(t=>t.url===e.selectedServer?.url);r!==-1&&e.eventBus.emit(`server:update:variables`,{index:r,key:t,value:n,meta:{type:`document`}})};return(o,s)=>(D(),x(O,null,[b(`label`,sw,A(t(r)(`server.label`)),1),b(`div`,{id:t(n),class:C([`border`,{"rounded-b-xl":!e.selectedServer?.description&&!e.selectedServer?.variables}])},[e.servers.length?(D(),N(ow,{key:0,selectedServer:e.selectedServer,servers:e.servers,target:t(n),"onUpdate:modelValue":i},null,8,[`selectedServer`,`servers`,`target`])):F(``,!0)],10,cw),u(t(_a),{layout:`reference`,variables:e.selectedServer?.variables,"onUpdate:variable":a},null,8,[`variables`]),e.selectedServer?.description?(D(),N(t(ta),{key:0,class:`text-c-3 rounded-b-xl border-x border-b px-3 py-1.5`,value:e.selectedServer.description},null,8,[`value`])):F(``,!0)],64))}}),uw={class:`section-accordion-button-content`},dw={key:0,class:`section-accordion-button-actions`},fw={key:0,class:`section-accordion-description`},pw={class:`section-accordion-content-card`},mw=X(E({__name:`SectionAccordion`,props:{transparent:{type:Boolean},modelValue:{type:Boolean}},emits:[`update:modelValue`],setup(e,{emit:r}){let i=r,a=n(),o=To(a);return(n,r)=>(D(),N(t(Nr),{as:`section`,class:C([`section-accordion`,{"section-accordion-transparent":e.transparent}])},{default:k(()=>[u(t(Ur),{ref_key:`button`,ref:a,class:`section-accordion-button`,onClick:r[0]||=()=>i(`update:modelValue`,!e.modelValue)},{default:k(()=>[b(`div`,uw,[P(n.$slots,`title`,{},void 0,!0)]),n.$slots.actions?(D(),x(`div`,dw,[P(n.$slots,`actions`,{active:t(o)||e.modelValue},void 0,!0)])):F(``,!0),u(t(un),{class:C([`section-accordion-chevron size-4.5 transition-transform`,{"rotate-90":e.modelValue}])},null,8,[`class`])]),_:3},512),e.modelValue?(D(),N(t(_n),{key:0,class:`section-accordion-content`,static:``},{default:k(()=>[n.$slots.description?(D(),x(`div`,fw,[P(n.$slots,`description`,{},void 0,!0)])):F(``,!0),b(`div`,pw,[P(n.$slots,`default`,{},void 0,!0)])]),_:3})):F(``,!0)]),_:3},8,[`class`]))}}),[[`__scopeId`,`data-v-ff689b94`]]),hw={key:0,class:`screenreader-only`},gw=X(E({__name:`ScreenReader`,props:{if:{type:Boolean,default:!0}},setup(e){return(e,t)=>e.$props.if?(D(),x(`span`,hw,[P(e.$slots,`default`,{},void 0,!0)])):P(e.$slots,`default`,{key:1},void 0,!0)}}),[[`__scopeId`,`data-v-df2e1026`]]),_w=[`id`],vw={class:`relative`},yw=E({__name:`Anchor`,emits:[`copyAnchorUrl`],setup(e,{emit:n}){let r=n,i=v(),{translate:a}=Z(),{cx:o}=Ut();return(e,n)=>(D(),x(`span`,j(he(t(o)(`group/heading wrap-break-word relative`))),[b(`span`,{id:t(i),class:`contents`},[P(e.$slots,`default`)],8,_w),b(`span`,vw,[n[1]||=b(`span`,null,`​`,-1),u(t(oo),{"aria-describedby":t(i),class:`absolute top-1/2 left-0 inline-block h-fit -translate-y-1/2 px-1.5 py-1 opacity-0 group-hover/heading:opacity-100 group-has-focus-visible/heading:opacity-100`,variant:`ghost`,onClick:n[0]||=I(()=>r(`copyAnchorUrl`),[`stop`])},{default:k(()=>[u(t(Zg),{"aria-hidden":`true`,class:`size-4.5`}),u(gw,null,{default:k(()=>[d(A(t(a)(`actions.copyLink`)),1)]),_:1})]),_:1},8,[`aria-describedby`])])],16))}}),bw=e=>{if(typeof e!=`object`||!e||Array.isArray(e)||`oneOf`in e||`anyOf`in e||`allOf`in e||`not`in e)return!1;let t=`type`in e;if(t&&Array.isArray(e.type))return e.type.includes(`object`);let n=t&&e.type===`object`;if(n)return!0;if(t&&!n)return!1;let r=`properties`in e,i=`additionalProperties`in e,a=`patternProperties`in e;return r||i||a},xw={key:0,class:`schema-type`},Sw=[`title`],Cw=X(E({__name:`SchemaHeading`,props:{value:{},name:{}},setup(e){let{translate:n}=Z(),r=T(()=>`type`in e.value?e.value.type:e.value.enum?`enum`:Yn(e.value)&&e.value.items?`array`:bw(e.value)&&(e.value.properties||e.value.additionalProperties)?`object`:`unknown`);return(i,a)=>typeof e.value==`object`?(D(),x(`span`,xw,[b(`span`,{class:`schema-type-icon`,title:`type`in e.value&&typeof e.value.type==`string`?e.value.type:`type`in e.value&&Array.isArray(e.value.type)?e.value.type.join(` | `):t(n)(`schema.unknownType`)},[t(bw)(e.value)?(D(),x(O,{key:0},[d(` {} `)],64)):F(``,!0),t(Yn)(e.value)?(D(),x(O,{key:1},[d(` [] `)],64)):F(``,!0),e.value.enum?(D(),x(O,{key:2},[d(` enum `)],64)):F(``,!0)],8,Sw),e.name?(D(),N(t(an),{key:0,preset:`property`,text:e.name},null,8,[`text`])):(D(),x(O,{key:1},[d(A(r.value),1)],64))])):F(``,!0)}}),[[`__scopeId`,`data-v-e2018ca6`]]),ww=[`id`],Tw={class:`sr-only`},Ew=E({__name:`WithBreadcrumb`,props:{breadcrumb:{},eventBus:{}},setup(e){let{translate:n}=Z(),r=T(()=>n(`actions.copyLinkTo`,{name:e.breadcrumb?.[e.breadcrumb.length-1]??``}));return(n,i)=>e.breadcrumb&&e.breadcrumb.length>0?(D(),x(`div`,{key:0,id:e.breadcrumb.join(`.`),class:`relative scroll-mt-24`},[P(n.$slots,`default`),b(`button`,{class:`text-c-3 hover:text-c-1 absolute -top-2 -left-4.5 flex h-[calc(100%+16px)] w-4.5 cursor-pointer items-center justify-center pr-1.5 opacity-0 group-hover:opacity-100 focus-visible:opacity-100`,type:`button`,onClick:i[0]||=()=>e.eventBus?.emit(`copy-url:nav-item`,{id:e.breadcrumb.join(`.`)})},[u(t(i_),{class:`size-3`,weight:`bold`}),b(`span`,Tw,[P(n.$slots,`sr-label`,{},()=>[d(A(r.value),1)])])])],8,ww)):P(n.$slots,`default`,{key:1})}}),Dw=Symbol(`schema-ancestors`),Ow=e=>{if(e&&typeof e==`object`)return`$ref`in e&&typeof e.$ref==`string`?e.$ref:e},kw=[`allOf`,`oneOf`,`anyOf`],Aw=e=>`type`in e&&e.type?Array.isArray(e.type)?e.type.includes(`object`):e.type===`object`:`properties`in e,jw=e=>`$ref`in e||`discriminator`in e||kw.some(t=>t in e),Mw=e=>{if(!Yn(e)||typeof e.items!=`object`)return!1;if(`$ref`in e.items)return!0;let t=G(e.items);return t?Aw(t)||jw(t)||Yn(t):!1},Nw=e=>{if(!e||!Yn(e)||typeof e.items!=`object`)return!1;if(`$ref`in e.items)return!0;let t=G(e.items);return t?jw(t)||Aw(t)?!0:Mw(t):!1},Pw=e=>{if(!e)return null;let t=e.match(tn.REF_NAME);return t?t[1]:null},Fw=[`oneOf`,`anyOf`,`allOf`,`not`],Iw=(e,t)=>{if(!e||!Yn(e))return!1;let n=e.items;return!n||typeof n!=`object`||!(t in n)?!1:!Nw(e)},Lw=e=>e.startsWith(`#/`)||e.includes(`/`)?e:`#/components/schemas/${e}`,Rw=(e,t)=>{if(e.oneOf||e.anyOf||!t?.components?.schemas)return null;let n=Object.values(e.discriminator?.mapping??{}).filter(e=>typeof e==`string`).map(e=>{let n=Lw(e),r=Pw(n),i=r?ua.schema(t.components?.schemas?.[r]):void 0;if(i)return{$ref:n,"$ref-value":i}}).filter(qi);return n.length===0?null:{...ua.schema(e),oneOf:n}},zw=(e,t)=>{if(!e)return[];let n=Rw(e,t);return Fw.map(t=>t===`oneOf`&&n?{composition:t,value:n}:Iw(e,t)&&Yn(e)&&e.items?{composition:t,value:ua.schema(e.items)}:e[t]&&!(Yn(e)&&e.items&&typeof e.items==`object`&&t in e.items)?{composition:t,value:ua.schema(e)}:null).filter(qi)},Bw=e=>{if(!e)return[];if(e.enum)return e.enum;if(Yn(e)&&typeof e.items==`object`){let t=ua.schema(e.items);if(t&&`enum`in t&&t.enum)return t.enum}return[]},Vw={integer:{_default:`Integer numbers.`,int32:`Signed 32-bit integers (commonly used integer type).`,int64:`Signed 64-bit integers (long type).`},string:{date:`full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21`,"date-time":`the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z`,password:`a hint to UIs to mask the input`,base64:`base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==`,byte:`base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==`,binary:`binary data, used to describe files`}},Hw=e=>{if(!wn(e))return null;let t=Array.isArray(e.type)?e.type[0]:e.type;if(!t)return null;let n=Vw[t];return n?n[`format`in e&&e.format||`contentEncoding`in e&&e.contentEncoding||`_default`]??null:null};function Uw(e){if(!e||typeof e!=`object`)return e;let t=Fw.find(t=>t in e&&t!==`not`);if(!t)return{...e};let n=e[t];if(!Array.isArray(n))return{...e};let{[t]:r,nullable:i,...a}=e,o=Object.keys(a).length>0,{filteredSchemas:s,hasNullSchema:c}=n.reduce((e,t)=>{let n=ua.schema(t);return`type`in n&&n.type===`null`?e.hasNullSchema=!0:e.filteredSchemas.push(n),e},{filteredSchemas:[],hasNullSchema:!1}),l=c||i===!0;if(s.length===1){let e={...a,...s[0]};return l&&(e.nullable=!0),e}if((t===`oneOf`||t===`anyOf`)&&(o||s.some(e=>e.allOf))){let n=s.map(e=>{let t=ua.schema(e);if(t.allOf?.length===1){let{allOf:e,...n}=t;return{...a,...n,...ua.schema(e[0])}}return{...a,...t}}),r={[t]:n};return typeof e.description==`string`&&(r.description=e.description),l&&(r.nullable=!0),r}if(s.length!==n.length){let n={...e,[t]:s};return l&&(n.nullable=!0),n}return{...e}}var Ww=(e,t)=>!e||e.allOf?null:t&&e.description?t===e.description?t:`${t}\n\n${e.description}`:t||e.description||null,Gw=(e,t,n=!1)=>t||n?!0:e?e.deprecated===!0||e.const!==void 0||e.enum?.length===1||`type`in e&&e.type!==void 0||`nullable`in e&&e.nullable===!0||e.writeOnly===!0||e.readOnly===!0:!1,Kw=new Set([`description`,`title`]),qw=(e,t,n=new Set)=>{if(!e?.allOf?.length||!Array.isArray(e.allOf))return t||{};let r={},{allOf:i,...a}=e;for(let t of e.allOf){if(!t||typeof t!=`object`)continue;let e=ua.schema(t);if(e.allOf){Jw(r,qw(e,void 0,n),!1,n);continue}Jw(r,e,!1,n)}return Object.keys(a).length>0&&Jw(r,a,!0,n),t&&typeof t==`object`&&(t.allOf?Jw(r,qw(t,void 0,n),!0,n):Jw(r,t,!0,n)),r},Jw=(e,t,n=!1,r=new Set)=>{let i=Ii(t);if(i.length!==0)for(let a of i){let i=G(t[a]);if(i!==void 0){if(a===`required`)Array.isArray(i)&&i.length>0&&(e.required=e.required?.length?[...new Set([...e.required,...i])]:i.slice());else if(a===`properties`)i&&typeof i==`object`&&(e.properties||={},Yw(e.properties,i,r));else if(a===`items`){let n=ua.schema(i);if(n){if(Yn(t)){if(e.items||={},n.allOf){let t=qw(n,void 0,r);Object.assign(e.items,t)}else Xw(G(e.items),n,r)}else if(n.allOf){let t=qw(n,void 0,r);`properties`in t&&(`properties`in e||(e.properties={}),`properties`in e&&Yw(e.properties,t.properties,r))}else`items`in e||(e.items=n)}}else if(a===`enum`)Array.isArray(i)&&i.length>0&&(e.enum=[...new Set([...e.enum||[],...i])]);else if(a===`oneOf`||a===`anyOf`)Array.isArray(i)&&i.length>0&&(n||e[a]===void 0)&&(e[a]=i);else if(a===`allOf`)continue;else(n||Kw.has(a)||e[a]===void 0)&&(e[a]=i)}}},Yw=(e,t,n=new Set)=>{let r=Object.keys(t??{});if(t&&e&&r.length!==0)for(let i of r){let r=ua.schema(t[i]);if(!r){delete e[i];continue}if(typeof r!=`object`){e[i]=r;continue}if(!e[i]){r.allOf?e[i]=qw(r,void 0,n):Yn(r)&&ua.schema(r.items)?.allOf?e[i]={...r,items:qw(ua.schema(r.items),void 0,n)}:t[i]&&(e[i]=t[i]);continue}let a=ua.schema(e[i]),o=r.$ref;if(typeof o==`string`&&n.has(o)){e[i]=a;continue}let s=typeof o==`string`?new Set(n).add(o):n;if(r.allOf)e[i]=qw({allOf:[a,...r.allOf]},void 0,s);else if(Yn(r)&&Yn(a)&&r.items){let t=ua.schema(a.items);e[i]={...a,type:`array`,items:t?Zw(t,ua.schema(r.items),s):ua.schema(r.items)}}else if(`properties`in a&&`properties`in r){let t={...a,...r};t.properties={...a.properties},Yw(t.properties,r.properties,s),e[i]=t}else e[i]={...r,...a}}},Xw=(e,t,n=new Set)=>{if(t.allOf||e.allOf){let r=[];if(e.allOf)for(let t of e.allOf)r.push(ua.schema(t));else r.push(e);if(t.allOf)for(let e of t.allOf)r.push(ua.schema(e));else r.push(t);let i=qw({allOf:r},void 0,n);Object.assign(e,i);return}Object.assign(e,t),`properties`in e&&`properties`in t&&Yw(e.properties,t.properties,n)},Zw=(e,t,n=new Set)=>{let r=t.$ref;return typeof r==`string`?n.has(r)?e:Qw(e,t,new Set(n).add(r)):Qw(e,t,n)},Qw=(e,t,n=new Set)=>{if(e.allOf||t.allOf){let r=[];if(e.allOf)for(let t of e.allOf)r.push(ua.schema(t));else r.push(e);if(t.allOf)for(let e of t.allOf)r.push(ua.schema(e));else r.push(t);return qw({allOf:r},void 0,n)}let r={...e,...t};return`properties`in e&&`properties`in t&&(r.properties={...e.properties},Yw(r.properties,t.properties,n)),r},$w=Symbol(),eT=e=>e?`array ${e.includes(` | `)?`(${e})`:e}[]`:`array`,tT=(e,t=!1)=>{if(!e.items)return`array`;let n=eT(nT(ua.schema(e.items)));return t?n:e.nullable?`${n} | null`:n},nT=e=>{if(!e)return``;let t=ua.schema(e);if(t.const!==void 0)return`const`;if(`type`in t&&Array.isArray(t.type)){if(t.type.includes(`array`)&&t.items){let e=tT(t,!0),n=t.type.filter(e=>e!==`array`);return n.length>0?`${e} | ${n.join(` | `)}`:e}return t.type.join(` | `)}return Yn(t)?tT(t,!1):`type`in t&&t.type&&t.contentEncoding?`${t.type} • ${t.contentEncoding}`:`type`in t?t.type:``},rT=e=>{if(!e)return null;let t=ua.schema(e),n=`$ref`in e?Pw(e.$ref)??null:null;return t.title?{schemaKey:n,label:t.title}:t.name?{schemaKey:n,label:t.name}:`$ref`in e&&n?{schemaKey:n,label:n}:null},iT=e=>{if(!bw(e))return!1;let t=Object.keys(e.properties??{}).length===0,n=e.additionalProperties===void 0||e.additionalProperties===!1,r=Object.keys(e.patternProperties??{}).length===0;return t&&n&&r},aT=(e,t)=>e.reduce((e,n)=>{let r=t?.[n];return r&&(e[n]=r),e},{}),oT=(e,t,{hideReadOnly:n=!1,hideWriteOnly:r=!1,orderSchemaPropertiesBy:i=`alpha`,orderRequiredPropertiesFirst:a=!0}={})=>{if(!bw(e)||!e.properties)return[];let o=Object.keys(e.properties),s=new Set(e.required||[]);return o.sort((n,r)=>{let o=n===t?.propertyName,c=r===t?.propertyName,l=s.has(n),u=s.has(r);if(o&&!c)return-1;if(!o&&c)return 1;let d=e.properties?.[n],f=e.properties?.[r],p=d&&typeof d==`object`&&`x-order`in d?d[`x-order`]:void 0,m=f&&typeof f==`object`&&`x-order`in f?f[`x-order`]:void 0;if(p!==void 0&&m!==void 0)return Number(p)-Number(m);if(p!==void 0&&m===void 0)return-1;if(p===void 0&&m!==void 0)return 1;if(a){if(l&&!u)return-1;if(!l&&u)return 1}return i===`alpha`?n.localeCompare(r):0}).filter(t=>{let i=e.properties&&ua.schema(e.properties[t]);return!(n&&i?.readOnly===!0||r&&i?.writeOnly===!0)})},sT=E({__name:`SchemaObjectProperties`,props:{schema:{},discriminator:{},compact:{type:Boolean},hideHeading:{type:Boolean},level:{},hideModelNames:{type:Boolean},breadcrumb:{},eventBus:{},options:{},schemaContext:{},compositionPath:{}},setup(e){let n=T(()=>oT(e.schema,e.discriminator,e.options)),r=(e,t)=>{let n=typeof e==`boolean`?e:ua.schema(e);if(typeof n==`object`&&typeof n[`x-additionalPropertiesName`]==`string`&&n[`x-additionalPropertiesName`].trim().length>0)return`${n[`x-additionalPropertiesName`].trim()}`;if(t){let e=ua.schema(t);if(e?.title)return e.title}return`propertyName`},i=e=>{if(!e)return;let t=ua.schema(e);if(t&&`enum`in t&&Array.isArray(t.enum)&&t.enum.length>0)return t.enum},a=T(()=>{if(bw(e.schema)&&e.schema.additionalProperties)return i(e.schema.propertyNames)}),o=T(()=>{if(bw(e.schema)&&e.schema.additionalProperties)return e.schema.propertyNames?ua.schema(e.schema.propertyNames):void 0}),s=e=>{if(e)return ua.schema(e)},c=e=>{if(e)return typeof e.description==`string`?e.description:void 0},l=e=>{let t=typeof e==`boolean`?e:ua.schema(e);return t===!0||typeof t==`object`&&Object.keys(t).length===0||typeof t!=`object`||!(`type`in t)?{type:`anything`,...typeof t==`object`?t:{}}:t};return(i,u)=>(D(),x(O,null,[t(bw)(e.schema)&&e.schema.properties?(D(!0),x(O,{key:0},S(n.value,n=>(D(),N(mE,{key:n,breadcrumb:e.breadcrumb,compact:e.compact,compositionPath:e.compositionPath,compositionPathSegment:n,cycleKey:t(Ow)(e.schema.properties[n]),description:c(e.schema.properties[n]),discriminator:e.discriminator,eventBus:e.eventBus,hideHeading:e.hideHeading,hideModelNames:e.hideModelNames,level:e.level,name:n,options:e.options,required:e.schema.required?.includes(n),schema:s(e.schema.properties[n]),schemaContext:e.schemaContext},null,8,[`breadcrumb`,`compact`,`compositionPath`,`compositionPathSegment`,`cycleKey`,`description`,`discriminator`,`eventBus`,`hideHeading`,`hideModelNames`,`level`,`name`,`options`,`required`,`schema`,`schemaContext`]))),128)):F(``,!0),t(bw)(e.schema)&&e.schema.patternProperties?(D(!0),x(O,{key:1},S(Object.entries(e.schema.patternProperties),([n,r])=>(D(),N(mE,{key:n,breadcrumb:e.breadcrumb,compact:e.compact,compositionPath:e.compositionPath,compositionPathSegment:n,cycleKey:t(Ow)(r),description:c(r),discriminator:e.discriminator,eventBus:e.eventBus,hideHeading:e.hideHeading,hideModelNames:e.hideModelNames,level:e.level,name:n,options:e.options,schema:s(r),schemaContext:e.schemaContext},null,8,[`breadcrumb`,`compact`,`compositionPath`,`compositionPathSegment`,`cycleKey`,`description`,`discriminator`,`eventBus`,`hideHeading`,`hideModelNames`,`level`,`name`,`options`,`schema`,`schemaContext`]))),128)):F(``,!0),t(bw)(e.schema)&&e.schema.additionalProperties?(D(),N(mE,{key:2,breadcrumb:e.breadcrumb,compact:e.compact,compositionPath:e.compositionPath,compositionPathSegment:r(e.schema.additionalProperties,e.schema.propertyNames),cycleKey:t(Ow)(e.schema.additionalProperties),discriminator:e.discriminator,eventBus:e.eventBus,hideHeading:e.hideHeading,hideModelNames:e.hideModelNames,level:e.level,name:r(e.schema.additionalProperties,e.schema.propertyNames),noncollapsible:``,options:e.options,propertyNamesEnum:a.value,propertyNamesSchema:o.value,schema:l(e.schema.additionalProperties),schemaContext:e.schemaContext,variant:`additionalProperties`},null,8,[`breadcrumb`,`compact`,`compositionPath`,`compositionPathSegment`,`cycleKey`,`discriminator`,`eventBus`,`hideHeading`,`hideModelNames`,`level`,`name`,`options`,`propertyNamesEnum`,`propertyNamesSchema`,`schema`,`schemaContext`])):F(``,!0)],64))}}),cT={key:0,class:`schema-card-description`},lT={key:1,class:`pt-2`},uT={key:0,class:`schema-properties`},dT=X(E({__name:`Schema`,props:{schema:{},level:{default:0},name:{},compact:{type:Boolean},noncollapsible:{type:Boolean,default:!1},hideHeading:{type:Boolean},hideDescription:{type:Boolean,default:!1},additionalProperties:{type:Boolean},hideModelNames:{type:Boolean,default:!1},discriminator:{},breadcrumb:{},eventBus:{},options:{},schemaContext:{},compositionPath:{},cycleKey:{}},setup(e){let{translate:n}=Z(),r=h(Dw,void 0),i=T(()=>e.cycleKey!=null&&!!r?.has(e.cycleKey)),a=new Set(r??[]);e.cycleKey!=null&&a.add(e.cycleKey),se(Dw,a);let o=T(()=>!!e.options.expandAllSchemaProperties&&!i.value),s=T(()=>!e.noncollapsible&&e.level>0),c=T(()=>{if(!e.breadcrumb?.length)return!1;let t=e.breadcrumb.join(`.`),n=px.value;return n===t||n.startsWith(`${t}.`)}),l=T(()=>e.noncollapsible||o.value||c.value),f=T(()=>e.schema?.title??n(`schema.childAttributes`)),p=T(()=>e.hideDescription?null:e.schema?.allOf&&e.schema.allOf.length>0&&e.name===`Request Body`?qw(e.schema)?.description||null:!e.schema?.description||typeof e.schema.description!=`string`||e.schema.enum||!(`properties`in e.schema)&&!(`patternProperties`in e.schema)&&!(`additionalProperties`in e.schema)?null:e.schema.description),m=t=>{e.noncollapsible&&t.stopPropagation()};return(r,i)=>typeof e.schema==`object`&&Object.keys(e.schema).length?(D(),N(t(Nr),{key:0,defaultOpen:l.value},{default:k(({open:r})=>[b(`div`,{class:C([`schema-card`,[`schema-card--level-${e.level}`,{"schema-card--compact":e.compact,"schema-card--open":r},{"border-t":e.additionalProperties&&r}]])},[p.value?(D(),x(`div`,cT,[u(t(ta),{value:p.value},null,8,[`value`])])):F(``,!0),t(iT)(e.schema)?(D(),x(`div`,lT,A(t(n)(`schema.emptyObject`)),1)):F(``,!0),b(`div`,{class:C([`schema-properties`,{"schema-properties-open":r}])},[e.additionalProperties?y((D(),x(`div`,uT,[u(t(Ur),{as:`button`,class:`schema-card-title schema-card-title--compact`,onClickCapture:m},{default:k(()=>[u(t(go),{class:`schema-card-title-icon`,icon:`Add`,size:`sm`}),d(` `+A(t(n)(`schema.showAdditionalProperties`))+` `,1),e.name?(D(),N(gw,{key:0},{default:k(()=>[d(A(t(n)(`schema.forName`,{name:e.name})),1)]),_:1})):F(``,!0)]),_:1})],512)),[[ye,!r]]):s.value?y((D(),N(t(Ur),{key:1,as:e.noncollapsible?`div`:`button`,class:C([`schema-card-title`,{"schema-card-title--compact":e.compact}]),style:le({top:`calc(var(--refs-viewport-offset) + calc(var(--schema-title-height) * ${e.level}))`}),onClickCapture:m},{default:k(()=>[e.compact?(D(),x(O,{key:0},[u(t(go),{class:C([`schema-card-title-icon`,{"schema-card-title-icon--open":r}]),icon:`Add`,size:`sm`},null,8,[`class`]),r?(D(),x(O,{key:0},[d(A(t(n)(`schema.hideChildAttributes`,{name:f.value})),1)],64)):(D(),x(O,{key:1},[d(A(t(n)(`schema.showChildAttributes`,{name:f.value})),1)],64)),e.name?(D(),N(gw,{key:2},{default:k(()=>[d(A(t(n)(`schema.forName`,{name:e.name})),1)]),_:1})):F(``,!0)],64)):(D(),x(O,{key:1},[u(t(go),{class:C([`schema-card-title-icon`,{"schema-card-title-icon--open":r}]),icon:`Add`,size:`sm`},null,8,[`class`]),u(Cw,{name:e.schema?.title??e.name,value:e.schema},null,8,[`name`,`value`])],64))]),_:2},1032,[`as`,`class`,`style`])),[[ye,!e.hideHeading&&!(e.noncollapsible&&e.compact)]]):F(``,!0),!e.additionalProperties||r?(D(),N(t(_n),{key:2,as:`ul`,static:!s.value},{default:k(()=>[t(bw)(e.schema)?(D(),N(sT,{key:0,breadcrumb:e.breadcrumb,compact:e.compact,compositionPath:e.compositionPath,discriminator:e.discriminator,eventBus:e.eventBus,hideHeading:e.hideHeading,hideModelNames:e.hideModelNames,level:e.level+1,options:e.options,schema:e.schema,schemaContext:e.schemaContext},null,8,[`breadcrumb`,`compact`,`compositionPath`,`discriminator`,`eventBus`,`hideHeading`,`hideModelNames`,`level`,`options`,`schema`,`schemaContext`])):(D(),x(O,{key:1},[e.schema?(D(),N(mE,{key:0,breadcrumb:e.breadcrumb,compact:e.compact,compositionPath:e.compositionPath,eventBus:e.eventBus,hideHeading:e.hideHeading,hideModelNames:e.hideModelNames,level:e.level,options:e.options,schema:e.schema,schemaContext:e.schemaContext},null,8,[`breadcrumb`,`compact`,`compositionPath`,`eventBus`,`hideHeading`,`hideModelNames`,`level`,`options`,`schema`,`schemaContext`])):F(``,!0)],64))]),_:1},8,[`static`])):F(``,!0)],2)],2)]),_:1},8,[`defaultOpen`])):F(``,!0)}}),[[`__scopeId`,`data-v-b482770e`]]),fT={class:`property-rule`},pT={class:`composition-selector bg-b-1.5 hover:bg-b-2 flex w-full cursor-pointer items-center gap-1 rounded-t-lg border px-2.5 py-2.5 pr-3 text-left`,type:`button`},mT={class:`text-c-2`},hT={key:0,class:`text-red`},gT={class:`composition-panel`},_T=E({__name:`SchemaComposition`,props:{composition:{},discriminator:{},name:{},schema:{},level:{},compact:{type:Boolean,default:!1},hideHeading:{type:Boolean,default:!1},hideModelNames:{type:Boolean},breadcrumb:{},eventBus:{},options:{},schemaContext:{},compositionPath:{}},setup(e){let r=e,{translate:i}=Z(),a=T(()=>[r.schema[r.composition]].flat().map(e=>({value:ua.schema(e),original:e})).filter(e=>qi(e.value))),o=T(()=>a.value.map((e,t)=>{let n=ua.schema(e.original),r=(rT(n)?.label??nT(n))||i(`schema.schema`);return{id:String(t),label:r}})),s=T(()=>r.compositionPath?.length?[...r.compositionPath,r.composition].join(`.`):``),c=h($w,void 0),l=T(()=>{if(r.schemaContext!==`requestBody`||!c?.value||!s.value)return 0;let e=c.value[s.value];return typeof e!=`number`||Number.isNaN(e)?0:Math.max(0,Math.min(e,o.value.length-1))}),f=n();m([o,l],([e,t])=>{(!f.value||!e.some(e=>e.id===f.value?.id))&&(f.value=e[t]??e[0])},{immediate:!0});let p=e=>i(`schema.${e}`),g=T(()=>a.value[Number(f.value?.id??`0`)]?.value),_=T(()=>r.schemaContext===`requestBody`&&r.compositionPath?.length===1),v=T(()=>Ow(a.value[Number(f.value?.id??`0`)]?.original)),ee=n(!!r.options.expandAllSchemaProperties);return c&&r.schemaContext===`requestBody`&&s.value&&m(f,e=>{let t=e?Number(e.id):0;Number.isNaN(t)||(c.value={...c.value,[s.value]:t})},{immediate:!0}),(n,a)=>(D(),x(`div`,fT,[r.composition===`allOf`?(D(),N(dT,{key:0,breadcrumb:e.breadcrumb,compact:e.compact,compositionPath:e.compositionPath,discriminator:e.discriminator,eventBus:e.eventBus,hideDescription:_.value,hideHeading:e.hideHeading,hideModelNames:e.hideModelNames,level:e.level+1,name:e.name,noncollapsible:!0,options:e.options,schema:t(qw)(e.schema),schemaContext:e.schemaContext},null,8,[`breadcrumb`,`compact`,`compositionPath`,`discriminator`,`eventBus`,`hideDescription`,`hideHeading`,`hideModelNames`,`level`,`name`,`options`,`schema`,`schemaContext`])):(D(),x(O,{key:1},[u(t(fn),{modelValue:f.value,"onUpdate:modelValue":a[0]||=e=>f.value=e,options:o.value,resize:``},{default:k(()=>[b(`button`,pT,[b(`span`,mT,A(p(r.composition)),1),b(`span`,{class:C([`composition-selector-label text-c-1`,{"line-through":g.value?.deprecated}])},A(f.value?.label||t(i)(`schema.schema`)),3),g.value?.deprecated?(D(),x(`div`,hT,A(t(i)(`common.deprecated`)),1)):F(``,!0),u(t(En))])]),_:1},8,[`modelValue`,`options`]),b(`div`,gT,[!ee.value&&e.level>2?(D(),x(`button`,{key:0,class:`bg-b-1 hover:bg-b-2 text-c-1 flex w-full items-center justify-center gap-2 rounded-b-lg border border-t-0 px-2 py-2 text-sm font-medium transition-colors`,type:`button`,onClick:a[1]||=e=>ee.value=!0},[d(A(t(i)(`schema.showSchemaDetails`))+` `,1),u(t(En),{class:`h-3 w-3`})])):(D(),N(dT,{key:f.value?.id??`0`,breadcrumb:e.breadcrumb,compact:e.compact,compositionPath:e.compositionPath,cycleKey:v.value,discriminator:e.discriminator,eventBus:e.eventBus,hideHeading:e.hideHeading,hideModelNames:e.hideModelNames,level:e.level+1,name:e.name,noncollapsible:!0,options:e.options,schema:g.value,schemaContext:e.schemaContext},null,8,[`breadcrumb`,`compact`,`compositionPath`,`cycleKey`,`discriminator`,`eventBus`,`hideHeading`,`hideModelNames`,`level`,`name`,`options`,`schema`,`schemaContext`]))])],64))]))}}),vT={class:`property-enum-value`},yT={class:`property-enum-value-content`},bT={class:`property-enum-value-label`},xT={key:0,class:`property-enum-value-description`},ST=X(E({__name:`SchemaEnumPropertyItem`,props:{label:{},description:{}},setup(e){return(n,r)=>(D(),x(`li`,vT,[b(`div`,yT,[b(`span`,bT,[u(t(an),{text:e.label,preset:`property`},null,8,[`text`])]),e.description?(D(),x(`span`,xT,[u(t(ta),{value:e.description},null,8,[`value`])])):F(``,!0)])]))}}),[[`__scopeId`,`data-v-4375ecfd`]]),CT={key:0,class:`property-enum`},wT={key:0,class:`property-enum-property-names`},TT={key:1,class:`property-enum-property-names`},ET={class:`property-enum-values`},DT={key:1},OT=9,kT=5,AT=` `,jT=X(E({__name:`SchemaEnums`,props:{value:{},propertyNames:{type:Boolean}},setup(e){let{translate:r}=Z(),i=T(()=>e.value&&(e.value.enum||Yn(e.value)&&ua.schema(e.value.items)?.enum)||[]),a=T(()=>i.value.length>OT),o=T(()=>a.value?kT:i.value.length),s=T(()=>i.value.slice(0,o.value)),c=T(()=>i.value.slice(o.value)),l=(t,n)=>{let r=e.value?.[`x-enumDescriptions`]??e.value?.[`x-enum-descriptions`];if(r){if(Array.isArray(r))return r[n];if(typeof r==`object`&&r)return r[String(t)]}},f=(t,n)=>{let r=e.value?.[`x-enum-varnames`]??e.value?.[`x-enumNames`],i=Array.isArray(r)?r[n]:void 0;return i?`${t}${AT}=${AT}${i}`:String(t)},p=n(!1),m=()=>{p.value=!p.value};return(n,h)=>i.value.length>0?(D(),x(`div`,CT,[e.propertyNames?(D(),x(`div`,wT,A(t(r)(`common.propertyNames`)),1)):(D(),x(`div`,TT,A(t(r)(`common.values`)),1)),b(`ul`,ET,[(D(!0),x(O,null,S(s.value,(e,t)=>(D(),N(ST,{key:String(e),description:l(e,t),label:f(e,t)},null,8,[`description`,`label`]))),128)),a.value&&p.value?(D(!0),x(O,{key:0},S(c.value,(e,t)=>(D(),N(ST,{key:String(e),description:l(e,o.value+t),label:f(e,o.value+t)},null,8,[`description`,`label`]))),128)):F(``,!0),a.value?(D(),x(`li`,DT,[u(t(oo),{class:`enum-toggle-button my-2 flex h-fit gap-1 rounded-full border py-1.5 pr-2.5 pl-2 leading-none`,variant:`ghost`,onClick:m},{default:k(()=>[u(t(la),{class:C({"rotate-45":p.value}),weight:`bold`},null,8,[`class`]),d(` `+A(p.value?t(r)(`common.hideValues`):t(r)(`common.showAllValues`)),1)]),_:1})])):F(``,!0)])])):F(``,!0)}}),[[`__scopeId`,`data-v-bf1bfd02`]]),MT={},NT={class:`text-c-3 hover:text-c-1 underline`,type:`button`};function PT(e,t){return D(),x(`button`,NT,[P(e.$slots,`default`)])}var FT=X(MT,[[`render`,PT]]),IT=E({__name:`RenderString`,props:{value:{}},setup(e){let t=T(()=>e.value===``?`''`:e.value===null?`null`:e.value===void 0?`undefined`:e.value);return(e,n)=>A(t.value)}});function LT(e){return Array.isArray(e)?`[${e.map(e=>typeof e==`string`?`"${e.toString().trim()}"`:typeof e==`object`?JSON.stringify(e):e===void 0?`undefined`:e===null?`null`:e).join(`, `)}]`:e===null?`null`:typeof e==`object`?JSON.stringify(e):e===void 0?`undefined`:typeof e==`string`?e.trim():e.toString().trim()}var RT={key:0,class:`property-default`},zT={class:`property-default-label`,type:`button`},BT={class:`property-default-value-list`},VT=X(E({__name:`SchemaPropertyDefault`,props:{value:{}},setup(e){let{copyToClipboard:n}=Bt(),{translate:r}=Z();return(i,a)=>e.value===void 0?F(``,!0):(D(),x(`div`,RT,[b(`button`,zT,[b(`span`,null,A(t(r)(`schema.default`)),1)]),b(`div`,BT,[b(`button`,{class:`property-default-value group`,type:`button`,onClick:a[0]||=r=>t(n)(t(LT)(e.value))},[b(`span`,null,A(t(LT)(e.value)),1),u(t(go),{class:`group-hover:text-c-1 text-c-3 ml-auto min-h-3 min-w-3`,icon:`Clipboard`,size:`xs`})])])]))}}),[[`__scopeId`,`data-v-cc878a44`]]),HT={key:0,class:`property-detail-prefix`},UT={key:1,class:`property-detail-value`},WT={key:2,class:`property-detail-value`},GT=X(E({__name:`SchemaPropertyDetail`,props:{truncate:{type:Boolean},code:{type:Boolean}},setup(e){return(t,n)=>(D(),x(`span`,{class:C([`property-detail`,{"property-detail-truncate":e.truncate}])},[t.$slots.prefix?(D(),x(`div`,HT,[P(t.$slots,`prefix`,{},void 0,!0),n[0]||=d(`\xA0 `,-1)])):F(``,!0),e.code?(D(),x(`code`,UT,[P(t.$slots,`default`,{},void 0,!0)])):(D(),x(`span`,WT,[P(t.$slots,`default`,{},void 0,!0)]))],2))}}),[[`__scopeId`,`data-v-1295f965`]]);function KT(e){let t=e.trim();return t===``?e:t}function qT(e){return Array.isArray(e)?`[${e.map(e=>typeof e==`string`?`"${KT(e)}"`:typeof e==`object`?JSON.stringify(e):e===void 0?`undefined`:e===null?`null`:e).join(`, `)}]`:e===null?`null`:typeof e==`object`?JSON.stringify(e):e===void 0?`undefined`:KT(typeof e==`string`?e:e.toString())}var JT={key:0,class:`property-example`},YT={class:`property-example-value-list`},XT={key:1,class:`property-example`},ZT={class:`property-example-value-list`},QT=[`onClick`],$T=X(E({__name:`SchemaPropertyExamples`,props:{examples:{},example:{}},setup(e){let{copyToClipboard:n}=Bt(),{translate:r}=Z(),i=T(()=>e.example!==void 0),a=T(()=>e.examples&&typeof e.examples==`object`?e.examples:{}),o=T(()=>Object.keys(a.value).length>0),s=T(()=>Object.keys(a.value).length===1?r(`schema.example`):r(`schema.examples`));function c(e){if(na(e)){if(`value`in e)return e.value;if(`externalValue`in e)return e.externalValue}return e}return(l,f)=>(D(),x(O,null,[i.value?(D(),x(`div`,JT,[u(FT,{class:`decoration-dotted`},{default:k(()=>[d(A(t(r)(`schema.example`)),1)]),_:1}),b(`div`,YT,[b(`button`,{class:`property-example-value group`,type:`button`,onClick:f[0]||=r=>t(n)(t(qT)(e.example))},[b(`span`,null,A(t(qT)(e.example)),1),u(t(go),{class:`group-hover:text-c-1 text-c-3 ml-auto min-h-3 min-w-3`,icon:`Clipboard`,size:`xs`})])])])):F(``,!0),o.value?(D(),x(`div`,XT,[u(FT,{class:`decoration-dotted`},{default:k(()=>[d(A(s.value),1)]),_:1}),b(`div`,ZT,[(D(!0),x(O,null,S(a.value,(e,r)=>(D(),x(`button`,{key:r,class:`property-example-value group`,type:`button`,onClick:r=>t(n)(t(qT)(c(e)))},[b(`span`,null,A(t(qT)(c(e))),1),u(t(go),{class:`text-c-3 group-hover:text-c-1 ml-auto min-h-3 min-w-3`,icon:`Clipboard`,size:`xs`})],8,QT))),128))])])):F(``,!0)],64))}}),[[`__scopeId`,`data-v-370db0bd`]]),eE={class:`property-heading`},tE={key:1,class:`property-discriminator`},nE={key:3,class:`property-additional`},rE={key:4,class:`property-deprecated`},iE={key:5,class:`property-const`},aE={key:7,class:`property-write-only`},oE={key:8,class:`property-read-only`},sE={key:9,class:`property-required`},cE=X(E({__name:`SchemaPropertyHeading`,props:{value:{},enum:{type:Boolean},isDiscriminator:{type:Boolean,default:!1},required:{type:Boolean,default:!1},additional:{type:Boolean},withExamples:{type:Boolean,default:!0},hideModelNames:{type:Boolean,default:!1},modelName:{},propertyNames:{},eventBus:{default:null}},setup(e){let n=e,{translate:r}=Z(),a=i(n,`value`),o=T(()=>{if(!a.value)return;let e=a.value;if(e.const!==void 0)return e.const;if(e.enum?.length===1)return e.enum[0];if(Yn(e)&&e.items){let t=ua.schema(e.items);if(qi(t.const))return t.const;if(t.enum?.length===1)return t.enum[0]}}),s=T(()=>{if(!a.value)return[];let e=a.value,t=[];return Yn(e)&&((e.minItems||e.maxItems)&&t.push({key:`array-range`,value:`${e.minItems||``}…${e.maxItems||``}`}),e.uniqueItems&&t.push({key:`unique-items`,value:`${r(`common.unique`)}!`})),zn(e)&&(e.minLength&&t.push({key:`min-length`,prefix:`${r(`common.minLength`)}: `,value:e.minLength}),e.maxLength&&t.push({key:`max-length`,prefix:`${r(`common.maxLength`)}: `,value:e.maxLength}),e.pattern&&t.push({key:`pattern`,value:e.pattern,code:!0,truncate:!0})),(zn(e)||or(e))&&e.format&&t.push({key:`format`,value:e.format,truncate:!0}),or(e)&&(qi(e.exclusiveMinimum)&&t.push({key:`exclusive-minimum`,prefix:`${r(`common.greaterThan`)}: `,value:e.exclusiveMinimum}),qi(e.minimum)&&t.push({key:`minimum`,prefix:`${r(`common.min`)}: `,value:e.minimum}),qi(e.exclusiveMaximum)&&t.push({key:`exclusive-maximum`,prefix:`${r(`common.lessThan`)}: `,value:e.exclusiveMaximum}),qi(e.maximum)&&t.push({key:`maximum`,prefix:`${r(`common.max`)}: `,value:e.maximum}),qi(e.multipleOf)&&t.push({key:`multiple-of`,prefix:`${r(`common.multipleOf`)}: `,value:e.multipleOf})),t}),c=T(()=>{if(!n.value||n.hideModelNames)return null;if(n.modelName)return{schemaKey:n.modelName,label:n.modelName};let e=rT(n.value);if(e)return{schemaKey:e.schemaKey,label:e.label};if(Yn(n.value)&&n.value.items){let e=rT(n.value.items);return e?{schemaKey:e.schemaKey,label:`${e.label}[]`}:null}return null}),l=T(()=>!n.value||!(`type`in n.value)?!1:n.value.type===`array`||!o.value),f=T(()=>n.value?nT(n.value):``),p=T(()=>{let e=n.propertyNames;if(!e)return;let t=[nT(e)];`format`in e&&typeof e.format==`string`&&t.push(e.format);let r=t.filter(Boolean).join(` · `);return r.length>0?r:void 0}),m=T(()=>{if(n.value&&`example`in n.value&&n.value.example!==void 0)return n.value.example;if(n.value&&Yn(n.value)){let e=ua.schema(n.value.items);if(e&&`example`in e&&e.example!==void 0)return e.example}});return(e,i)=>(D(),x(`div`,eE,[e.$slots.name?(D(),x(`div`,{key:0,class:C([`property-name`,{deprecated:n.value?.deprecated}])},[P(e.$slots,`name`,{},void 0,!0)],2)):F(``,!0),n.isDiscriminator?(D(),x(`div`,tE,A(t(r)(`common.discriminator`)),1)):F(``,!0),n.value?(D(),x(O,{key:2},[l.value?(D(),N(GT,{key:0,truncate:``},{default:k(()=>[u(gw,null,{default:k(()=>[d(A(t(r)(`common.type`))+`:`,1)]),_:1}),d(` `+A(f.value)+` `,1),c.value?(D(),x(O,{key:0},[i[1]||=d(` · `,-1),n.eventBus&&c.value.schemaKey?(D(),N(FT,{key:0,onClick:i[0]||=e=>n.eventBus.emit(`scroll-to:model-by-name`,{name:c.value.schemaKey})},{default:k(()=>[d(A(c.value.label),1)]),_:1})):(D(),x(O,{key:1},[d(A(c.value.label),1)],64))],64)):F(``,!0)]),_:1})):F(``,!0),p.value?(D(),N(GT,{key:1,truncate:``},{prefix:k(()=>[d(A(t(r)(`common.keys`))+`:`,1)]),default:k(()=>[d(` `+A(p.value),1)]),_:1})):F(``,!0),(D(!0),x(O,null,S(s.value,e=>(D(),N(GT,{key:e.key,code:e.code,truncate:e.truncate},pe({default:k(()=>[e.key===`format`?(D(),N(gw,{key:0},{default:k(()=>[d(A(t(r)(`common.format`))+`: `,1)]),_:1})):e.key===`pattern`?(D(),N(gw,{key:1},{default:k(()=>[d(A(t(r)(`common.pattern`))+`: `,1)]),_:1})):F(``,!0),d(` `+A(e.value),1)]),_:2},[e.prefix?{name:`prefix`,fn:k(()=>[d(A(e.prefix),1)]),key:`0`}:void 0]),1032,[`code`,`truncate`]))),128)),n.enum?(D(),N(GT,{key:2},{default:k(()=>[d(A(t(r)(`common.enum`)),1)]),_:1})):F(``,!0)],64)):F(``,!0),n.additional?(D(),x(`div`,nE,[n.value?.[`x-additionalPropertiesName`]?(D(),x(O,{key:0},[d(A(n.value[`x-additionalPropertiesName`]),1)],64)):(D(),x(O,{key:1},[d(A(t(r)(`common.additionalProperties`)),1)],64))])):F(``,!0),n.value?.deprecated?(D(),x(`div`,rE,[u(t(SS),null,{default:k(()=>[d(A(t(r)(`common.deprecated`)),1)]),_:1})])):F(``,!0),o.value===void 0?(D(),x(O,{key:6},[n.value?.nullable===!0?(D(),N(GT,{key:0},{default:k(()=>[d(A(t(r)(`common.nullable`)),1)]),_:1})):F(``,!0)],64)):(D(),x(`div`,iE,[u(GT,{truncate:``},{prefix:k(()=>[d(A(t(r)(`common.const`))+`: `,1)]),default:k(()=>[u(IT,{value:o.value},null,8,[`value`])]),_:1})])),n.value?.writeOnly?(D(),x(`div`,aE,A(t(r)(`common.writeOnly`)),1)):n.value?.readOnly?(D(),x(`div`,oE,A(t(r)(`common.readOnly`)),1)):F(``,!0),n.required?(D(),x(`div`,sE,A(t(r)(`common.required`)),1)):F(``,!0),u(VT,{value:n.value?.default},null,8,[`value`]),n.withExamples?(D(),N($T,{key:10,example:m.value,examples:n.value?.examples},null,8,[`example`,`examples`])):F(``,!0)]))}}),[[`__scopeId`,`data-v-18714eaa`]]),lE={key:0,class:`property-name-pattern-properties`},uE={key:1,class:`property-name-additional-properties`},dE={key:1,class:`property-description`},fE={key:4,class:`children`},pE={key:5,class:`children`},mE=X(E({__name:`SchemaProperty`,props:{is:{},schema:{},noncollapsible:{type:Boolean},level:{default:0},name:{},required:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},discriminator:{},description:{},hideModelNames:{type:Boolean,default:!1},hideHeading:{type:Boolean},modelName:{},variant:{},breadcrumb:{},eventBus:{},options:{},propertyNamesEnum:{},propertyNamesSchema:{},schemaContext:{},compositionPath:{},compositionPathSegment:{},cycleKey:{}},setup(e){let n=[`oneOf`,`anyOf`,`allOf`],r=e,i=T(()=>Uw(r.schema)),a=T(()=>r.breadcrumb&&r.name?[...r.breadcrumb,r.name]:void 0),o=T(()=>r.compositionPathSegment?[...r.compositionPath??[],r.compositionPathSegment]:r.compositionPath??[]),s=T(()=>[...o.value,`items`]),c=T(()=>r.level<=2),l=T(()=>Nw(i.value)),f=T(()=>h.value.length>0),p=T(()=>{let e=i.value;if(!e||!(`properties`in e||`additionalProperties`in e)||`allOf`in e)return!1;let t=e.type,n=typeof t==`string`&&t!==`object`;return bw(e)||!n}),m=T(()=>{let e=i.value;return!e||!Yn(e)||typeof e.items!=`object`?!1:l.value}),h=T(()=>Bw(i.value)),g=T(()=>Hw(i.value)),_=T(()=>Ww(i.value,r.description)),v=T(()=>{let e=i.value;if(!e)return e;let{oneOf:t,anyOf:n,allOf:r,not:a,...o}=e;if(_.value&&`description`in o){let{description:e,...t}=o;return t}return o}),ee=T(()=>Gw(i.value,r.name,r.required)),te=T(()=>zw(i.value,r.options.document)),ne=T(()=>{let e=i.value;if(!e||!Yn(e)||typeof e.items!=`object`)return;let t=ua.schema(e.items);return n.some(e=>Array.isArray(t?.[e])&&t[e]?.length===1)?Uw(t):t}),re=T(()=>{let e=i.value;if(e&&Yn(e))return Ow(e.items)}),y=T(()=>!!(r.name&&r.discriminator?.propertyName===r.name));return(n,r)=>(D(),N(me(e.is??`li`),{class:C([`property`,[`property--level-${e.level}`,{"property--compact":e.compact,"property--deprecated":i.value?.deprecated}]])},{default:k(()=>[ee.value?(D(),N(cE,{key:0,class:`group`,enum:f.value,eventBus:e.eventBus,hideModelNames:e.hideModelNames,isDiscriminator:y.value,modelName:e.modelName,propertyNames:e.propertyNamesSchema,required:e.required,value:i.value},pe({_:2},[e.name?{name:`name`,fn:k(()=>[u(t(Ew),{breadcrumb:c.value?a.value:void 0,eventBus:e.eventBus},{default:k(()=>[e.variant===`patternProperties`?(D(),x(`span`,lE,[u(t(an),{preset:`property`,text:e.name},null,8,[`text`])])):e.variant===`additionalProperties`?(D(),x(`span`,uE,[u(t(an),{preset:`property`,text:e.name},null,8,[`text`])])):(D(),N(t(an),{key:2,preset:`property`,text:e.name},null,8,[`text`]))]),_:1},8,[`breadcrumb`,`eventBus`])]),key:`0`}:void 0,i.value?.example===void 0?void 0:{name:`example`,fn:k(()=>[d(` Example: `+A(i.value.example),1)]),key:`1`}]),1032,[`enum`,`eventBus`,`hideModelNames`,`isDiscriminator`,`modelName`,`propertyNames`,`required`,`value`])):F(``,!0),_.value||g.value?(D(),x(`div`,dE,[u(t(ta),{value:_.value||g.value||``},null,8,[`value`])])):F(``,!0),e.propertyNamesEnum&&e.propertyNamesEnum.length>0?(D(),N(jT,{key:2,propertyNames:``,value:{enum:e.propertyNamesEnum}},null,8,[`value`])):F(``,!0),h.value.length>0?(D(),N(jT,{key:3,value:i.value},null,8,[`value`])):F(``,!0),p.value?(D(),x(`div`,fE,[u(dT,{breadcrumb:a.value,compact:e.compact,compositionPath:o.value,cycleKey:e.cycleKey,eventBus:e.eventBus,hideModelNames:e.hideModelNames,level:e.level+1,name:e.name,noncollapsible:e.noncollapsible,options:e.options,schema:v.value,schemaContext:e.schemaContext},null,8,[`breadcrumb`,`compact`,`compositionPath`,`cycleKey`,`eventBus`,`hideModelNames`,`level`,`name`,`noncollapsible`,`options`,`schema`,`schemaContext`])])):F(``,!0),m.value&&ne.value?(D(),x(`div`,pE,[u(dT,{compact:e.compact,compositionPath:s.value,cycleKey:re.value,eventBus:e.eventBus,hideModelNames:e.hideModelNames,level:e.level+1,name:e.name,noncollapsible:e.noncollapsible,options:e.options,schema:t(ua).schema(ne.value),schemaContext:e.schemaContext},null,8,[`compact`,`compositionPath`,`cycleKey`,`eventBus`,`hideModelNames`,`level`,`name`,`noncollapsible`,`options`,`schema`,`schemaContext`])])):F(``,!0),(D(!0),x(O,null,S(te.value,t=>(D(),N(_T,{key:t.composition,breadcrumb:e.breadcrumb,compact:e.compact,composition:t.composition,compositionPath:o.value,discriminator:e.schema?.discriminator,eventBus:e.eventBus,hideHeading:e.hideHeading,hideModelNames:e.hideModelNames,level:e.level,name:e.name,noncollapsible:e.noncollapsible,options:e.options,schema:t.value,schemaContext:e.schemaContext},null,8,[`breadcrumb`,`compact`,`composition`,`compositionPath`,`discriminator`,`eventBus`,`hideHeading`,`hideModelNames`,`level`,`name`,`noncollapsible`,`options`,`schema`,`schemaContext`]))),128)),u(t(GS),{value:i.value},null,8,[`value`])]),_:1},8,[`class`]))}}),[[`__scopeId`,`data-v-f14a8d89`]]),hE={key:0,class:`properties`},gE={key:1},_E=X(E({__name:`ClassicLayout`,props:{id:{},name:{},schema:{},isCollapsed:{type:Boolean},eventBus:{},document:{},options:{}},setup(e){return(n,r)=>(D(),N(t(mw),{"aria-label":e.schema.title??e.name,modelValue:!e.isCollapsed,"onUpdate:modelValue":r[1]||=t=>e.eventBus?.emit(`toggle:nav-item`,{id:e.id,open:t})},{title:k(()=>[u(t(yw),{class:`reference-models-anchor`,eventBus:e.eventBus,onCopyAnchorUrl:r[0]||=()=>e.eventBus?.emit(`copy-url:nav-item`,{id:e.id})},{default:k(()=>[u(t(US),{level:3},{default:k(()=>[u(t(Cw),{class:`reference-models-label`,name:e.schema.title??e.name,value:e.schema},null,8,[`name`,`value`])]),_:1})]),_:1},8,[`eventBus`])]),default:k(()=>[`properties`in e.schema?(D(),x(`div`,hE,[(D(!0),x(O,null,S(Object.entries(e.schema.properties??{}),([n,r])=>(D(),N(t(mE),{key:n,eventBus:e.eventBus,hideModelNames:e.options.hideModels,name:n,options:{...e.options,document:e.document},required:e.schema.required?.includes(n),schema:t(ua).schema(r)},null,8,[`eventBus`,`hideModelNames`,`name`,`options`,`required`,`schema`]))),128))])):(D(),x(`div`,gE,[u(t(mE),{eventBus:e.eventBus,hideModelNames:e.options.hideModels,options:{...e.options,document:e.document},schema:e.schema},null,8,[`eventBus`,`hideModelNames`,`options`,`schema`])]))]),_:1},8,[`aria-label`,`modelValue`]))}}),[[`__scopeId`,`data-v-f3ae088e`]]),vE=[`aria-label`],yE=[`id`,`aria-controls`,`aria-expanded`],bE=X(E({__name:`CompactSection`,props:{id:{},label:{},modelValue:{type:Boolean}},emits:[`update:modelValue`,`copyAnchorUrl`],setup(e,{emit:n}){let r=n;return(n,i)=>(D(),x(`section`,{"aria-label":e.label,class:`collapsible-section`},[b(`button`,{id:e.id,"aria-controls":e.id,"aria-expanded":e.modelValue,class:C([`collapsible-section-trigger`,{"collapsible-section-trigger-open":e.modelValue}]),type:`button`,onClick:i[1]||=t=>r(`update:modelValue`,!e.modelValue)},[u(t(un),{class:C([`size-3 transition-transform duration-100`,{"rotate-90":e.modelValue}]),weight:`bold`},null,8,[`class`]),u(t(yw),{class:`collapsible-section-header`,onCopyAnchorUrl:i[0]||=()=>r(`copyAnchorUrl`)},{default:k(()=>[P(n.$slots,`heading`,{},void 0,!0)]),_:3})],10,yE),e.modelValue?(D(),N(ES,{key:0,class:`collapsible-section-content`,label:e.label},{default:k(()=>[P(n.$slots,`default`,{},void 0,!0)]),_:3},8,[`label`])):F(``,!0)],8,vE))}}),[[`__scopeId`,`data-v-999a158a`]]),xE=E({__name:`ModernLayout`,props:{id:{},name:{},schema:{},isCollapsed:{type:Boolean},eventBus:{},document:{},options:{}},setup(e){return(n,r)=>(D(),N(t(bE),{id:e.id,key:e.name,label:e.name,modelValue:!e.isCollapsed,onCopyAnchorUrl:r[0]||=()=>e.eventBus?.emit(`copy-url:nav-item`,{id:e.id}),"onUpdate:modelValue":r[1]||=t=>e.eventBus?.emit(`toggle:nav-item`,{id:e.id,open:t})},{heading:k(()=>[u(t(US),{level:3},{default:k(()=>[u(t(Cw),{name:e.schema.title??e.name,value:e.schema},null,8,[`name`,`value`])]),_:1})]),default:k(()=>[u(t(so),null,{default:k(()=>[u(t(dT),{eventBus:e.eventBus,hideModelNames:e.options.hideModels,hideHeading:``,level:1,noncollapsible:``,options:{...e.options,document:e.document},schema:e.schema},null,8,[`eventBus`,`hideModelNames`,`options`,`schema`])]),_:1})]),_:1},8,[`id`,`label`,`modelValue`]))}}),SE=E({__name:`Model`,props:{id:{},name:{},options:{},schema:{},isCollapsed:{type:Boolean},eventBus:{},document:{}},setup(e){let t=ee(`section`);return Ob(t,()=>e.eventBus?.emit(`intersecting:nav-item`,{id:e.id})),(n,r)=>e.schema?(D(),x(`div`,{key:0,ref_key:`section`,ref:t},[e.options.layout===`classic`?(D(),N(_E,{key:0,id:e.id,document:e.document,eventBus:e.eventBus,isCollapsed:e.isCollapsed,name:e.name,options:e.options,schema:e.schema},null,8,[`id`,`document`,`eventBus`,`isCollapsed`,`name`,`options`,`schema`])):(D(),N(xE,{key:1,id:e.id,document:e.document,eventBus:e.eventBus,isCollapsed:e.isCollapsed,name:e.name,options:e.options,schema:e.schema},null,8,[`id`,`document`,`eventBus`,`isCollapsed`,`name`,`options`,`schema`]))],512)):F(``,!0)}}),CE={class:`section-accordion-wrapper`},wE={class:`section-accordion-title`},TE=X(E({__name:`SectionContainerAccordion`,props:{modelValue:{type:Boolean}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=n;return(n,i)=>(D(),x(`section`,CE,[u(t(Nr),{as:`div`,class:`section-accordion`},{default:k(()=>[u(t(Ur),{class:`section-accordion-button`,onClick:i[0]||=t=>r(`update:modelValue`,!e.modelValue)},{default:k(()=>[u(t(un),{class:C([`section-accordion-chevron size-5 transition-transform`,{"rotate-90":e.modelValue}])},null,8,[`class`]),b(`div`,wE,[P(n.$slots,`title`,{},void 0,!0)])]),_:3}),e.modelValue?(D(),N(t(_n),{key:0,class:`section-accordion-content`,static:``},{default:k(()=>[P(n.$slots,`default`,{},void 0,!0)]),_:3})):F(``,!0)]),_:3})]))}}),[[`__scopeId`,`data-v-9419dd23`]]),EE={class:`show-more`,type:`button`},DE=X(E({__name:`ShowMoreButton`,setup(e){let{translate:n}=Z();return(e,r)=>(D(),x(`button`,EE,[d(A(t(n)(`actions.showMore`))+` `,1),u(t(En),{class:`text-c-2 mt-0.25 size-3`,weight:`bold`})]))}}),[[`__scopeId`,`data-v-8d844cc7`]]),OE=E({__name:`ModelTag`,props:{id:{},isCollapsed:{type:Boolean},eventBus:{},layout:{},modelsSectionLabel:{default:()=>er}},setup(e){return(n,r)=>e.layout===`modern`?(D(),N(IS,{key:0},{default:k(()=>[u(t(ES),{id:e.id,"aria-label":e.modelsSectionLabel,onIntersecting:r[1]||=()=>e.eventBus?.emit(`intersecting:nav-item`,{id:e.id})},{default:k(()=>[u(t(HS),null,{default:k(()=>[u(US,{level:2},{default:k(()=>[d(A(e.modelsSectionLabel),1)]),_:1})]),_:1}),e.isCollapsed?(D(),N(DE,{key:1,id:e.id,class:`top-0`,onClick:r[0]||=()=>e.eventBus.emit(`toggle:nav-item`,{id:e.id,open:!0})},null,8,[`id`])):P(n.$slots,`default`,{key:0})]),_:3},8,[`id`,`aria-label`])]),_:3})):(D(),N(TE,{key:1,"aria-label":e.modelsSectionLabel,class:`pb-12`,modelValue:!e.isCollapsed,"onUpdate:modelValue":r[2]||=()=>e.eventBus?.emit(`toggle:nav-item`,{id:e.id,open:e.isCollapsed})},{title:k(()=>[u(t(HS),{level:2},{default:k(()=>[d(A(e.modelsSectionLabel),1)]),_:1})]),default:k(()=>[P(n.$slots,`default`)]),_:3},8,[`aria-label`,`modelValue`]))}}),kE=X(E({__name:`ClassicLayout`,props:{tag:{},isCollapsed:{type:Boolean},eventBus:{}},setup(e){return(n,r)=>(D(),N(t(TE),{"aria-label":e.tag.title,class:C([`tag-section`,{"tag-section-group":e.tag.isGroup}]),modelValue:!e.isCollapsed,"onUpdate:modelValue":r[1]||=t=>e.eventBus?.emit(`toggle:nav-item`,{id:e.tag.id,open:t})},{title:k(()=>[u(t(HS),{class:C([`tag-name`,{"tag-group-name":e.tag.isGroup}])},{default:k(()=>[u(t(yw),{onCopyAnchorUrl:r[0]||=()=>e.eventBus?.emit(`copy-url:nav-item`,{id:e.tag.id})},{default:k(()=>[u(t(US),{level:2},{default:k(()=>[d(A(e.tag.title),1)]),_:1})]),_:1})]),_:1},8,[`class`]),u(t(ta),{class:`tag-description`,value:e.tag?.description,withImages:``},null,8,[`value`])]),default:k(()=>[P(n.$slots,`default`,{},void 0,!0)]),_:3},8,[`aria-label`,`class`,`modelValue`]))}}),[[`__scopeId`,`data-v-ee09ae3d`]]),AE=E({__name:`HttpMethod`,props:{as:{},property:{},short:{type:Boolean},method:{}},setup(e){let t=e,n=T(()=>hn(String(t.method||``))),r=T(()=>Vr(t.method));return(t,i)=>(D(),N(me(e.as??`span`),{class:`uppercase`,style:le({[e.property||`color`]:n.value.colorVar})},{default:k(()=>[P(t.$slots,`default`),d(` `+A(e.short?n.value.short:r.value),1)]),_:3},8,[`style`]))}}),jE=X(E({__name:`OperationsListItem`,props:{operation:{},isCollapsed:{type:Boolean},eventBus:{}},setup(e){let n=T(()=>`path`in e.operation?e.operation.path:e.operation.title),r=e=>e.type===`webhook`;return(i,a)=>(D(),x(`li`,{key:e.operation.id,class:`contents`},[e.isCollapsed?(D(),N(t(US),{key:0,class:`sr-only`,level:3},{default:k(()=>[d(A(e.operation.title)+` (Hidden) `,1)]),_:1})):F(``,!0),b(`a`,{class:`endpoint`,onClick:a[0]||=I(()=>e.eventBus?.emit(`scroll-to:nav-item`,{id:e.operation.id}),[`prevent`])},[u(t(AE),{class:`endpoint-method items-center justify-end gap-2`,method:e.operation.method},{default:k(()=>[r(e.operation)?(D(),N(t(nr),{key:0,class:`size-3.5`,style:le({color:t(hn)(e.operation.method).colorVar})},null,8,[`style`])):F(``,!0)]),_:1},8,[`method`]),b(`span`,{class:C([`endpoint-path`,{deprecated:e.operation.isDeprecated}])},A(n.value),3)])]))}}),[[`__scopeId`,`data-v-ad8530a6`]]),ME=[`aria-label`],NE=X(E({__name:`OperationsList`,props:{tag:{},eventBus:{}},setup(e){let{translate:n}=Z(),r=T(()=>e.tag.children?.filter(e=>e.type===`operation`||e.type===`webhook`)??[]);return(i,a)=>e.tag.children&&e.tag.children?.length>0?(D(),N(t(Fa),{key:0,class:`endpoints-card`},{default:k(()=>[u(t(zr),{muted:``},{default:k(()=>[u(gw,null,{default:k(()=>[d(A(e.tag.title),1)]),_:1}),d(` `+A(e.tag.isWebhooks?t(n)(`navigation.webhooks`):t(n)(`navigation.operations`)),1)]),_:1}),u(t(Pn),{class:`custom-scroll max-h-[60vh]`},{default:k(()=>[b(`ul`,{"aria-label":t(n)(`navigation.endpoints`,{name:e.tag.title}),class:`endpoints`},[(D(!0),x(O,null,S(r.value,t=>(D(),N(jE,{key:t.id,eventBus:e.eventBus,operation:t},null,8,[`eventBus`,`operation`]))),128))],8,ME)]),_:1})]),_:1})):F(``,!0)}}),[[`__scopeId`,`data-v-0315c99b`]]),PE=E({__name:`TagSection`,props:{tag:{},headerId:{},isCollapsed:{type:Boolean},eventBus:{}},setup(e){let{translate:n}=Z();return(r,i)=>e.tag?(D(),N(t(ES),{key:0,id:e.tag.id,role:`none`,onIntersecting:i[1]||=()=>e.eventBus?.emit(`intersecting:nav-item`,{id:e.tag.id})},{default:k(()=>[u(t(HS),null,{default:k(()=>[u(t(yw),{onCopyAnchorUrl:i[0]||=()=>e.eventBus?.emit(`copy-url:nav-item`,{id:e.tag.id})},{default:k(()=>[u(t(US),{id:e.headerId,level:2},{default:k(()=>[d(A(e.tag.title)+` `,1),e.isCollapsed?(D(),N(gw,{key:0},{default:k(()=>[d(` (`+A(t(n)(`navigation.collapsed`))+`) `,1)]),_:1})):F(``,!0)]),_:1},8,[`id`])]),_:1})]),_:1}),u(t(BS),null,{default:k(()=>[u(t(PS),null,{default:k(()=>[u(t(AS),null,{default:k(()=>[u(t(ta),{clamp:e.isCollapsed?7:void 0,value:e.tag?.description??``,withImages:``},null,8,[`clamp`,`value`])]),_:1}),u(t(AS),null,{default:k(()=>[u(t(NE),{eventBus:e.eventBus,tag:e.tag},null,8,[`eventBus`,`tag`])]),_:1})]),_:1})]),_:1}),u(t(GS),{value:e.tag.xKeys},null,8,[`value`])]),_:1},8,[`id`])):F(``,!0)}}),FE={key:2,class:`contents divide-y`},IE=X(E({__name:`ModernLayout`,props:{tag:{},moreThanOneTag:{type:Boolean},isCollapsed:{type:Boolean},eventBus:{}},setup(e){let{translate:n}=Z(),r=v(),i=T(()=>e.moreThanOneTag||e.tag?.title!=="default"||e.tag?.description!==``),a=T(()=>(e.tag?.children?.length??0)>0);return(o,s)=>(D(),N(t(IS),{"aria-labelledby":t(r),class:`tag-section-container`,role:`region`},{default:k(()=>[i.value?(D(),N(PE,{key:0,eventBus:e.eventBus,headerId:t(r),isCollapsed:e.isCollapsed,tag:e.tag},null,8,[`eventBus`,`headerId`,`isCollapsed`,`tag`])):F(``,!0),e.isCollapsed&&e.moreThanOneTag&&a.value?(D(),N(DE,{key:1,id:e.tag.id,"aria-label":t(n)(`navigation.showAllEndpoints`,{name:e.tag.title}),onClick:s[0]||=()=>e.eventBus?.emit(`toggle:nav-item`,{id:e.tag.id,open:!0})},null,8,[`id`,`aria-label`])):F(``,!0),e.isCollapsed&&e.moreThanOneTag?F(``,!0):(D(),x(`div`,FE,[P(o.$slots,`default`,{},void 0,!0)]))]),_:3},8,[`aria-labelledby`]))}}),[[`__scopeId`,`data-v-76bc20f3`]]),LE=E({__name:`Tag`,props:{tag:{},layout:{},moreThanOneTag:{type:Boolean},isCollapsed:{type:Boolean},eventBus:{}},setup(e){return(t,n)=>e.layout===`classic`?(D(),N(kE,{key:0,eventBus:e.eventBus,isCollapsed:e.isCollapsed,layout:e.layout,tag:e.tag},{default:k(()=>[P(t.$slots,`default`)]),_:3},8,[`eventBus`,`isCollapsed`,`layout`,`tag`])):(D(),N(IE,{key:1,eventBus:e.eventBus,isCollapsed:e.isCollapsed,layout:e.layout,moreThanOneTag:e.moreThanOneTag,tag:e.tag},{default:k(()=>[P(t.$slots,`default`)]),_:3},8,[`eventBus`,`isCollapsed`,`layout`,`moreThanOneTag`,`tag`]))}}),RE=[`id`,`data-placeholder`],zE=760,BE=1200,VE=E({__name:`Lazy`,props:{id:{},expanded:{type:Boolean,default:!1}},setup(e){let t=`${BE}px 0px`,{isReady:r}=kx(e.id),i=n(null),a=n(vx(e.id)??zE),o=null,s=T(()=>r.value||e.expanded);return ie(()=>{if(typeof window<`u`){if(!(`IntersectionObserver`in window)){Ex(e.id,!0);return}wr(i,([t])=>{t?.isIntersecting&&!r.value&&Ex(e.id,!0)},{rootMargin:t})}}),m(()=>s.value,(t,n)=>{if(n&&!t&&i.value){let t=i.value.offsetHeight;Number.isFinite(t)&&t>0&&(a.value=t,yx(e.id,t))}},{flush:`pre`}),m(()=>s.value,t=>{if(!t){o?.disconnect(),o=null;return}M(()=>{if(!i.value||typeof ResizeObserver>`u`)return;o||=new ResizeObserver(()=>{if(!i.value)return;let t=i.value.offsetHeight;Number.isFinite(t)&&t>0&&(a.value=t,yx(e.id,t))}),o.observe(i.value);let t=i.value.offsetHeight;Number.isFinite(t)&&t>0&&(a.value=t,yx(e.id,t))})},{immediate:!0}),ce(()=>{o?.disconnect()}),(t,n)=>(D(),x(`div`,{id:s.value?void 0:e.id,ref_key:`lazyContainerRef`,ref:i,"data-placeholder":!s.value,"data-testid":`lazy-container`,style:le({height:s.value?void 0:`${a.value}px`})},[s.value?P(t.$slots,`default`,{key:0}):F(``,!0)],12,RE))}}),HE=E({inheritAttrs:!1,__name:`ContentTypeSelect`,props:s({content:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let{translate:n}=Z(),r=f(e,`modelValue`),i=T(()=>Object.keys(e.content??{})),a=T({get:()=>o.value.find(e=>e.id===r.value),set:e=>{e&&(r.value=e.id)}}),o=T(()=>i.value.map(e=>({id:e,label:e}))),s=Ir({base:`font-normal text-c-2 bg-b-1 py-1 flex items-center gap-1 rounded-full text-xs leading-none border`,variants:{dropdown:{true:`hover:text-c-1 pl-2 pr-1.5 font-medium cursor-pointer`,false:`px-2`}}});return(e,c)=>i.value.length>1?(D(),N(t(fn),{key:0,modelValue:a.value,"onUpdate:modelValue":c[1]||=e=>a.value=e,options:o.value,placement:`bottom-end`,teleport:``,onClick:c[2]||=I(()=>{},[`stop`])},{default:k(({open:i})=>[u(t(oo),w({class:[`h-fit`,t(s)({dropdown:!0})],variant:`ghost`},e.$attrs,{onClick:c[0]||=I(()=>{},[`stop`])}),{default:k(()=>[u(gw,null,{default:k(()=>[d(A(t(n)(`operation.selectedContentType`))+`: `,1)]),_:1}),b(`span`,null,A(r.value),1),u(t(En),{class:C([`size-2.75 transition-transform duration-100`,{"rotate-180":i}]),weight:`bold`},null,8,[`class`])]),_:2},1040,[`class`])]),_:1},8,[`modelValue`,`options`])):(D(),x(`div`,w({key:1,class:[`selected-content-type`,t(s)({dropdown:!1})]},e.$attrs,{tabindex:`0`}),[b(`span`,null,A(r.value),1)],16))}}),UE=E({__name:`Header`,props:{header:{},name:{},breadcrumb:{},eventBus:{},document:{},orderSchemaPropertiesBy:{},orderRequiredPropertiesFirst:{type:Boolean},expandAllSchemaProperties:{type:Boolean}},setup(e){return(n,r)=>`schema`in e.header&&e.header.schema?(D(),N(mE,{key:0,breadcrumb:e.breadcrumb?[...e.breadcrumb,`headers`]:void 0,description:e.header.description,eventBus:e.eventBus,name:e.name,options:{orderRequiredPropertiesFirst:e.orderRequiredPropertiesFirst,orderSchemaPropertiesBy:e.orderSchemaPropertiesBy,expandAllSchemaProperties:e.expandAllSchemaProperties,document:e.document},schema:t(G)(e.header.schema)},null,8,[`breadcrumb`,`description`,`eventBus`,`name`,`options`,`schema`])):F(``,!0)}}),WE=X(E({__name:`Headers`,props:{headers:{},breadcrumb:{},eventBus:{},document:{},orderRequiredPropertiesFirst:{type:Boolean},orderSchemaPropertiesBy:{},expandAllSchemaProperties:{type:Boolean}},setup(e){let{translate:n}=Z();return(r,i)=>(D(),N(t(Nr),null,{default:k(({open:r})=>[b(`div`,{class:C([`headers-card headers-card--compact`,[{"headers-card--open":r}]])},[b(`div`,{class:C([`headers-properties`,{"headers-properties-open":r}])},[u(t(Ur),{class:`headers-card-title headers-card-title--compact`,style:{top:`calc(var(--refs-viewport-offset)))`}},{default:k(()=>[u(t(go),{class:C([`headers-card-title-icon`,{"headers-card-title-icon--open":r}]),icon:`Add`,size:`sm`},null,8,[`class`]),r?(D(),x(O,{key:0},[d(A(t(n)(`operation.hideHeaders`)),1)],64)):(D(),x(O,{key:1},[d(A(t(n)(`operation.showHeaders`)),1)],64))]),_:2},1024),u(t(_n),null,{default:k(()=>[(D(!0),x(O,null,S(e.headers,(n,r)=>(D(),N(UE,{key:r,breadcrumb:e.breadcrumb?[...e.breadcrumb,`headers`]:void 0,document:e.document,eventBus:e.eventBus,expandAllSchemaProperties:e.expandAllSchemaProperties,header:t(G)(n),name:r,orderRequiredPropertiesFirst:e.orderRequiredPropertiesFirst,orderSchemaPropertiesBy:e.orderSchemaPropertiesBy},null,8,[`breadcrumb`,`document`,`eventBus`,`expandAllSchemaProperties`,`header`,`name`,`orderRequiredPropertiesFirst`,`orderSchemaPropertiesBy`]))),128))]),_:1})],2)],2)]),_:1}))}}),[[`__scopeId`,`data-v-b7ba0e6f`]]),GE=e=>e!==void 0,KE=({parameter:e,schemaExamples:t,contentExamples:n})=>{let r=`examples`in e&&Wn(e.examples)?e.examples:{},i=Object.values({...r,...Wn(n)?n:{}}).filter(GE),a=i.length===0&&`example`in e&&e.example!==void 0?[e.example]:[],o=(t??a).filter(GE);return[...i,...o]},qE={class:`parameter-item group/parameter-item`},JE={class:`parameter-item-name min-w-0`},YE={key:1,class:`flex-1`},XE=X(E({__name:`ParameterListItem`,props:{parameter:{},name:{},breadcrumb:{},eventBus:{},collapsableItems:{type:Boolean},document:{},options:{}},setup(e){let r=n(!1),i=T(()=>`schema`in e.parameter&&e.parameter.schema?G(e.parameter.schema):null),a=T(()=>!(`content`in e.parameter)||!e.parameter.content||Object.keys(e.parameter.content).length===0?null:e.parameter.content),o=n(Object.keys(a.value||{})[0]??``),s=T(()=>`headers`in e.parameter&&e.parameter.headers?e.parameter.headers:null),c=T(()=>a.value?a.value?.[o.value]?.schema:`schema`in e.parameter&&e.parameter.schema?e.parameter.schema:null),l=T(()=>{let e=c.value;return e&&`$ref`in e?Pw(e.$ref):null}),d=T(()=>{let t=c.value,n=a.value?G(t):i.value,r=`deprecated`in e.parameter?e.parameter.deprecated:i.value?.deprecated,s=KE({parameter:e.parameter,schemaExamples:i.value?.examples,contentExamples:a.value?.[o.value]?.examples});return{...n,deprecated:r,examples:s}}),f=T(()=>!!(a.value||s.value||i.value||r.value));return(n,i)=>(D(),x(`li`,qE,[u(t(Nr),null,{default:k(({open:n})=>[e.collapsableItems?(D(),N(me(f.value?t(Ur):`div`),{key:0,class:C([`parameter-item-trigger`,{"parameter-item-trigger-open":n}])},{default:k(()=>[b(`div`,JE,[f.value?(D(),N(t(un),{key:0,class:C([`parameter-item-icon size-3 transition-transform duration-100`,{"rotate-90":n}]),weight:`bold`},null,8,[`class`])):F(``,!0),b(`div`,null,[u(t(an),{preset:`property`,text:e.name},null,8,[`text`])])]),!n&&e.parameter.description?(D(),N(t(Ga),{key:0,truncated:r.value,"onUpdate:truncated":i[0]||=e=>r.value=e,class:`parameter-item-description-summary min-w-0 flex-1`,controlled:``,value:e.parameter.description},null,8,[`truncated`,`value`])):(D(),x(`div`,YE))]),_:2},1032,[`class`])):F(``,!0),u(t(_n),{class:`parameter-item-container parameter-item-container-markdown`,static:!e.collapsableItems},{default:k(()=>[e.collapsableItems&&e.parameter.description?(D(),N(t(ta),{key:0,class:`parameter-item-description`,value:e.parameter.description},null,8,[`value`])):F(``,!0),s.value?(D(),N(WE,{key:1,breadcrumb:e.breadcrumb,document:e.document,eventBus:e.eventBus,expandAllSchemaProperties:e.options.expandAllSchemaProperties,headers:s.value,orderRequiredPropertiesFirst:e.options.orderRequiredPropertiesFirst,orderSchemaPropertiesBy:e.options.orderSchemaPropertiesBy},null,8,[`breadcrumb`,`document`,`eventBus`,`expandAllSchemaProperties`,`headers`,`orderRequiredPropertiesFirst`,`orderSchemaPropertiesBy`])):F(``,!0),u(mE,{is:`div`,breadcrumb:e.breadcrumb,compact:``,description:e.collapsableItems?``:e.parameter.description,eventBus:e.eventBus,hideWriteOnly:!0,modelName:l.value,name:e.collapsableItems?``:e.name,noncollapsible:!0,options:{hideWriteOnly:!0,orderRequiredPropertiesFirst:e.options.orderRequiredPropertiesFirst,orderSchemaPropertiesBy:e.options.orderSchemaPropertiesBy,expandAllSchemaProperties:e.options.expandAllSchemaProperties,document:e.document},required:`required`in e.parameter&&e.parameter.required,schema:d.value},null,8,[`breadcrumb`,`description`,`eventBus`,`modelName`,`name`,`options`,`required`,`schema`])]),_:1},8,[`static`]),f.value&&a.value?(D(),x(`div`,{key:1,class:C([`absolute top-[calc(10px+0.5lh)] right-0 z-0 flex -translate-y-1/2 items-center text-base`,{"opacity-0 group-focus-within/parameter-item:opacity-100 group-hover/parameter-item:opacity-100":!n}])},[i[2]||=b(`div`,{class:`from-b-1 absolute inset-y-0 -left-6 -z-1 w-8 bg-linear-to-l from-40% to-transparent`},null,-1),u(HE,{modelValue:o.value,"onUpdate:modelValue":i[1]||=e=>o.value=e,content:a.value},null,8,[`modelValue`,`content`])],2)):F(``,!0)]),_:1})]))}}),[[`__scopeId`,`data-v-94968dbd`]]),ZE={key:0,class:`mt-6`},QE=[`id`],$E=[`aria-labelledby`],eD=E({__name:`ParameterList`,props:{parameters:{},breadcrumb:{},eventBus:{},collapsableItems:{type:Boolean},document:{},options:{}},setup(e){let n=v();return(r,i)=>e.parameters?.length?(D(),x(`div`,ZE,[b(`div`,{id:t(n),class:`text-c-1 mt-3 mb-3 text-lg leading-[1.45] font-medium`},[P(r.$slots,`title`)],8,QE),b(`ul`,{"aria-labelledby":t(n),class:`mb-3 list-none p-0 text-sm`},[(D(!0),x(O,null,S(e.parameters,t=>(D(),N(XE,{key:t.name,breadcrumb:e.breadcrumb,collapsableItems:e.collapsableItems,document:e.document,eventBus:e.eventBus,name:t.name,options:e.options,parameter:t},null,8,[`breadcrumb`,`collapsableItems`,`document`,`eventBus`,`name`,`options`,`parameter`]))),128))],8,$E)])):F(``,!0)}}),tD={key:0,class:`async-api-labels`},nD={class:`sr-only`},rD={class:`sr-only`},iD=X(E({__name:`AsyncApiLabels`,props:{servers:{default:()=>[]},protocols:{default:()=>[]}},setup(e){let{translate:n}=Z(),r=T(()=>e.servers.length>0||e.protocols.length>0);return(i,a)=>r.value?(D(),x(`div`,tD,[e.servers.length?(D(),x(O,{key:0},[b(`span`,nD,A(t(n)(`asyncapi.servers`))+`:`,1),(D(!0),x(O,null,S(e.servers,e=>(D(),N(t(SS),{key:`server-${e}`,class:`async-api-label--server`,title:e},{default:k(()=>[d(A(e),1)]),_:2},1032,[`title`]))),128))],64)):F(``,!0),e.protocols.length?(D(),x(O,{key:1},[b(`span`,rD,A(t(n)(`asyncapi.protocols`))+`:`,1),(D(!0),x(O,null,S(e.protocols,e=>(D(),N(t(SS),{key:`protocol-${e}`,class:`async-api-label--protocol`,title:e},{default:k(()=>[d(A(e),1)]),_:2},1032,[`title`]))),128))],64)):F(``,!0)])):F(``,!0)}}),[[`__scopeId`,`data-v-6f21951e`]]),aD=e=>e?Object.entries(e).map(([e,t])=>{let n=G(t)??{},r={type:`string`};n.enum&&(r.enum=n.enum),n.default!==void 0&&(r.default=n.default),n.examples&&(r.examples=n.examples);let i={name:e,in:`path`,required:!0,schema:r};return n.description&&(i.description=n.description),i}):[],oD=e=>({orderRequiredPropertiesFirst:e?.orderRequiredPropertiesFirst??!1,orderSchemaPropertiesBy:e?.orderSchemaPropertiesBy??`preserve`,expandAllSchemaProperties:e?.expandAllSchemaProperties??!1}),sD=(e,t)=>(e??[]).filter(e=>e.type===t),cD=(e,t)=>{let n=qy(e,{channel:t??null,webSocketOnly:!1});return{servers:n.map(e=>e.name),protocols:[...new Set(n.map(e=>e.protocol).filter(Boolean))]}},lD=(...e)=>{for(let t of e){let e=t?.trim();if(e)return e}return``},uD=(e,t)=>{let n=e.channels?.[t];return n?G(n,Do):void 0},dD=(e,t,n)=>{let r=uD(e,t)?.messages?.[n];return r?G(r,Do):void 0},fD=(e,t)=>{let n=e.operations?.[t];return n?tb(G(n,Do)):void 0},pD=[`id`],mD={class:`message-heading`},hD={key:1,class:`message-schema`},gD={key:2,class:`message-schema`},_D=X(E({__name:`Message`,props:{message:{},document:{},eventBus:{},options:{},expandedItems:{default:()=>({})}},setup(e){let r=v(),i=ee(`section`);Ob(i,()=>e.eventBus?.emit(`intersecting:nav-item`,{id:e.message.id}));let a=T(()=>dD(e.document,e.message.channelName,e.message.messageName)),o=T(()=>lD(a.value?.title,e.message.title,e.message.messageName)),s=T(()=>a.value?.description||a.value?.summary||``),c=T(()=>{let e=a.value?.bindings;if(!e)return[];let t=G(e);return Object.entries(t).filter(([,e])=>e!=null).map(([e])=>e.toLowerCase())}),l=T(()=>{let t=uD(e.document,e.message.channelName),{protocols:n}=cD(e.document,t);return[...new Set([...n,...c.value])]}),f=T(()=>a.value?Om(a.value):void 0),p=T(()=>a.value?km(a.value):void 0),h=T(()=>({hideReadOnly:!1,...oD(e.options)})),g=n(e.expandedItems[e.message.id]??!1);m(()=>e.expandedItems[e.message.id],e=>{e!==void 0&&(g.value=e)});let _=t=>{g.value=t,e.eventBus?.emit(`toggle:nav-item`,{id:e.message.id,open:t})};return(n,a)=>(D(),x(`div`,{id:e.message.id,ref_key:`section`,ref:i,class:`message`},[u(t(mw),{class:`message-accordion`,modelValue:g.value,"onUpdate:modelValue":_},{title:k(()=>[u(t(yw),{onCopyAnchorUrl:a[0]||=()=>e.eventBus?.emit(`copy-url:nav-item`,{id:e.message.id})},{default:k(()=>[b(`span`,mD,[u(t(US),{id:t(r),class:`message-title`,level:4},{default:k(()=>[d(A(o.value),1)]),_:1},8,[`id`]),u(iD,{protocols:l.value},null,8,[`protocols`])])]),_:1})]),default:k(()=>[s.value?(D(),N(t(ta),{key:0,class:`message-description`,value:s.value,withImages:``},null,8,[`value`])):F(``,!0),p.value?(D(),x(`div`,hD,[a[1]||=b(`div`,{class:`message-schema-title`},`Headers`,-1),u(t(dT),{compact:``,eventBus:e.eventBus,name:`Headers`,noncollapsible:``,options:h.value,schema:p.value},null,8,[`eventBus`,`options`,`schema`])])):F(``,!0),f.value?(D(),x(`div`,gD,[a[2]||=b(`div`,{class:`message-schema-title`},`Payload`,-1),u(t(dT),{compact:``,eventBus:e.eventBus,name:`Payload`,noncollapsible:``,options:h.value,schema:f.value},null,8,[`eventBus`,`options`,`schema`])])):F(``,!0)]),_:1},8,[`modelValue`])],8,pD))}}),[[`__scopeId`,`data-v-50be0795`]]),vD=[`id`],yD={class:`operation-header`},bD=X(E({__name:`Operation`,props:{operation:{},document:{},eventBus:{},options:{},expandedItems:{default:()=>({})}},setup(e){let n=v(),r=ee(`section`);Ob(r,()=>e.eventBus?.emit(`intersecting:nav-item`,{id:e.operation.id}));let i=T(()=>fD(e.document,e.operation.operationName)),a=T(()=>lD(i.value?.title,e.operation.title,e.operation.operationName)),o=T(()=>i.value?.description||i.value?.summary||``),s=T(()=>sD(e.operation.children,`asyncapi-message`));return(i,c)=>(D(),x(`div`,{id:e.operation.id,ref_key:`section`,ref:r,class:C([`operation`,`operation--${e.operation.action}`])},[b(`div`,yD,[b(`span`,{class:C([`operation-action`,`operation-action--${e.operation.action}`])},A(e.operation.action),3),u(t(yw),{onCopyAnchorUrl:c[0]||=()=>e.eventBus?.emit(`copy-url:nav-item`,{id:e.operation.id})},{default:k(()=>[u(t(US),{id:t(n),class:`operation-title`,level:3},{default:k(()=>[d(A(a.value),1)]),_:1},8,[`id`])]),_:1})]),o.value?(D(),N(t(ta),{key:0,class:`operation-description`,value:o.value,withImages:``},null,8,[`value`])):F(``,!0),(D(!0),x(O,null,S(s.value,t=>(D(),N(_D,{key:t.id,document:e.document,eventBus:e.eventBus,expandedItems:e.expandedItems,message:t,options:e.options},null,8,[`document`,`eventBus`,`expandedItems`,`message`,`options`]))),128))],10,vD))}}),[[`__scopeId`,`data-v-ef35fcd1`]]),xD=X(E({__name:`Channel`,props:{channel:{},document:{},layout:{},isCollapsed:{type:Boolean},eventBus:{},options:{},expandedItems:{default:()=>({})}},setup(e){let n=v(),r=T(()=>uD(e.document,e.channel.channelName)),i=T(()=>r.value?.description??``),a=T(()=>lD(r.value?.title,e.channel.channelAddress)),o=T(()=>aD(r.value?.parameters)),s=T(()=>({hideModels:e.options?.hideModels??!1,...oD(e.options)})),c=T(()=>cD(e.document,r.value)),l=T(()=>sD(e.channel.children,`asyncapi-operation`));return(r,f)=>e.layout===`classic`?(D(),N(t(TE),{key:0,"aria-label":a.value,class:`channel-section`,modelValue:!e.isCollapsed,"onUpdate:modelValue":f[1]||=t=>e.eventBus?.emit(`toggle:nav-item`,{id:e.channel.id,open:t})},{title:k(()=>[u(t(HS),{class:`channel-name`},{default:k(()=>[u(t(yw),{onCopyAnchorUrl:f[0]||=()=>e.eventBus?.emit(`copy-url:nav-item`,{id:e.channel.id})},{default:k(()=>[u(t(US),{level:2},{default:k(()=>[d(A(a.value),1)]),_:1})]),_:1})]),_:1}),u(iD,{class:`channel-labels`,protocols:c.value.protocols,servers:c.value.servers},null,8,[`protocols`,`servers`]),u(t(ta),{class:`channel-description`,value:i.value,withImages:``},null,8,[`value`])]),default:k(()=>[o.value.length?(D(),N(eD,{key:0,eventBus:e.eventBus,options:s.value,parameters:o.value},{title:k(()=>[...f[4]||=[d(`Parameters`,-1)]]),_:1},8,[`eventBus`,`options`,`parameters`])):F(``,!0),(D(!0),x(O,null,S(l.value,t=>(D(),N(bD,{key:t.id,document:e.document,eventBus:e.eventBus,expandedItems:e.expandedItems,operation:t,options:e.options},null,8,[`document`,`eventBus`,`expandedItems`,`operation`,`options`]))),128))]),_:1},8,[`aria-label`,`modelValue`])):(D(),N(t(IS),{key:1,"aria-labelledby":t(n),role:`region`},{default:k(()=>[u(t(ES),{id:e.channel.id,role:`none`,onIntersecting:f[3]||=()=>e.eventBus?.emit(`intersecting:nav-item`,{id:e.channel.id})},{default:k(()=>[u(t(HS),null,{default:k(()=>[u(t(yw),{onCopyAnchorUrl:f[2]||=()=>e.eventBus?.emit(`copy-url:nav-item`,{id:e.channel.id})},{default:k(()=>[u(t(US),{id:t(n),level:2},{default:k(()=>[d(A(a.value),1)]),_:1},8,[`id`])]),_:1})]),_:1}),u(t(BS),null,{default:k(()=>[u(iD,{class:`channel-labels`,protocols:c.value.protocols,servers:c.value.servers},null,8,[`protocols`,`servers`]),u(t(ta),{value:i.value,withImages:``},null,8,[`value`]),o.value.length?(D(),N(eD,{key:0,eventBus:e.eventBus,options:s.value,parameters:o.value},{title:k(()=>[...f[5]||=[d(`Parameters`,-1)]]),_:1},8,[`eventBus`,`options`,`parameters`])):F(``,!0),(D(!0),x(O,null,S(l.value,t=>(D(),N(bD,{key:t.id,document:e.document,eventBus:e.eventBus,expandedItems:e.expandedItems,operation:t,options:e.options},null,8,[`document`,`eventBus`,`expandedItems`,`operation`,`options`]))),128))]),_:1})]),_:1},8,[`id`])]),_:1},8,[`aria-labelledby`]))}}),[[`__scopeId`,`data-v-067fde89`]]),SD=E({__name:`AsyncApiTraversedEntry`,props:{entries:{},document:{},expandedItems:{},options:{},eventBus:{},level:{default:0}},setup(e){let n=e=>e.type===`tag`&&e.isGroup===!0,r=e=>e.type===`tag`&&!n(e),i=e=>e.type===`asyncapi-channel`,a=e=>e.type===`models`,o=e=>e.type===`model`,s=T(()=>e.document.components?G(e.document.components,Do).schemas:void 0),c=t=>Am(e.document,t);return(l,d)=>{let f=te(`AsyncApiTraversedEntry`,!0);return D(!0),x(O,null,S(e.entries,l=>(D(),N(VE,{id:l.id,key:`${l.id}-${e.options.layout}`,expanded:!!e.expandedItems[l.id]},{default:k(()=>[i(l)?(D(),N(xD,{key:0,channel:l,document:e.document,eventBus:e.eventBus,expandedItems:e.expandedItems,isCollapsed:!e.expandedItems[l.id],layout:e.options.layout,options:e.options},null,8,[`channel`,`document`,`eventBus`,`expandedItems`,`isCollapsed`,`layout`,`options`])):r(l)||n(l)&&e.options.layout===`classic`?(D(),N(t(LE),{key:1,eventBus:e.eventBus,isCollapsed:!e.expandedItems[l.id],layout:e.options.layout,moreThanOneTag:e.entries.filter(r).length>1,tag:l},{default:k(()=>[l.children?.length?(D(),N(f,{key:0,document:e.document,entries:l.children,eventBus:e.eventBus,expandedItems:e.expandedItems,level:e.level+1,options:e.options},null,8,[`document`,`entries`,`eventBus`,`expandedItems`,`level`,`options`])):F(``,!0)]),_:2},1032,[`eventBus`,`isCollapsed`,`layout`,`moreThanOneTag`,`tag`])):n(l)?(D(),N(f,{key:2,document:e.document,entries:l.children??[],eventBus:e.eventBus,expandedItems:e.expandedItems,level:e.level+1,options:e.options},null,8,[`document`,`entries`,`eventBus`,`expandedItems`,`level`,`options`])):a(l)&&s.value?(D(),N(OE,{key:3,id:l.id,eventBus:e.eventBus,isCollapsed:!e.expandedItems[l.id],layout:e.options.layout,modelsSectionLabel:e.options.modelsSectionLabel},{default:k(()=>[u(f,{document:e.document,entries:l.children??[],eventBus:e.eventBus,expandedItems:e.expandedItems,level:e.level+1,options:e.options},null,8,[`document`,`entries`,`eventBus`,`expandedItems`,`level`,`options`])]),_:2},1032,[`id`,`eventBus`,`isCollapsed`,`layout`,`modelsSectionLabel`])):o(l)&&c(l.name)?(D(),N(SE,{key:4,id:l.id,eventBus:e.eventBus,isCollapsed:!e.expandedItems[l.id],name:l.name,options:e.options,schema:c(l.name)},null,8,[`id`,`eventBus`,`isCollapsed`,`name`,`options`,`schema`])):F(``,!0)]),_:2},1032,[`id`,`expanded`]))),128)}}}),CD=E({__name:`Auth`,props:{options:{},authStore:{},document:{},eventBus:{},securitySchemes:{},selectedServer:{},environment:{}},setup(e){let{translate:n}=Z(),r=T(()=>no(ao(e.document)?e.document.security:void 0)),i=T(()=>e.authStore.getAuthSelectedSchemas({type:`document`,documentName:ao(e.document)?e.document[`x-scalar-navigation`]?.name??``:``})),a=T(()=>fr(i.value,void 0,r.value,e.securitySchemes,e.options.authentication?.preferredSecurityScheme));return(i,o)=>Object.keys(e.securitySchemes).length?(D(),N(t(fa),{key:0,createAnySecurityScheme:e.options.authentication?.createAnySecurityScheme??!1,environment:e.environment,eventBus:e.eventBus,isStatic:``,layout:`reference`,meta:{type:`document`},options:{oauth2RedirectUri:e.options.oauth2RedirectUri},persistAuth:e.options.persistAuth,proxyUrl:e.options.proxyUrl??``,securityRequirements:r.value,securitySchemes:e.securitySchemes,selectedSecurity:a.value,server:e.selectedServer,title:t(n)(`authentication.title`)},null,8,[`createAnySecurityScheme`,`environment`,`eventBus`,`options`,`persistAuth`,`proxyUrl`,`securityRequirements`,`securitySchemes`,`selectedSecurity`,`server`,`title`])):F(``,!0)}}),wD=e=>Object.keys(e).sort().join(`,`),TD=(e,t,n,r,i={})=>{let a=t?.security??e.security??[],o=fr(n,r,a),s=new Set(a.map(e=>wD(e))),c=o.selectedSchemes[o.selectedIndex];if(c&&s.has(wD(c)))return Pt(i,c);for(let e of o.selectedSchemes)if(s.has(wD(e)))return Pt(i,e);return t?.security?.length?Pt(i,a[0]??{}):[]},ED=(e,t)=>{let n=e?.security??t.security??[],r=t.components?.securitySchemes??{},i=!1,a=[];for(let e of n){if(!Jn(e)){i=!0;continue}let t=Object.entries(e).map(([e,t])=>({name:e,scheme:G(r[e]),scopes:t.filter(e=>e.length>0)}));t.length>0&&a.push({schemes:t})}return a.length===0?{state:i?`optional`:`none`,requirements:[]}:{state:i?`optional`:`required`,requirements:a}},DD={key:0},OD=X(E({__name:`OperationPath`,props:{path:{},deprecated:{type:Boolean}},setup(e){let t=e,n=e=>e.startsWith(`{`)&&e.endsWith(`}`),r=T(()=>t.path.split(/({[^}]+})/));return(t,i)=>(D(),x(`span`,{class:C([`operation-path`,{deprecated:e.deprecated}])},[(D(!0),x(O,null,S(r.value,(e,t)=>(D(),x(O,{key:t},[n(e)?(D(),x(`em`,DD,A(e),1)):(D(),x(O,{key:1},[d(A(e),1)],64))],64))),128))],2))}}),[[`__scopeId`,`data-v-ec6c8861`]]),kD=E({inheritAttrs:!1,__name:`ScalarVirtualCodeBlock`,props:{content:{},lang:{default:`plaintext`},copy:{type:[String,Boolean],default:`hover`},lineHeight:{default:20}},setup(e){let{cx:n}=Ut();return(r,i)=>(D(),x(`div`,j(he(t(n)(`scalar-code-block group/code-block flex flex-col`,`relative bg-b-1 min-h-0 min-w-0`))),[u(Rn,{containerClass:`custom-scroll overflow-auto flex flex-1 max-h-screen`,contentClass:`language-plaintext whitespace-pre font-code text-base p-2`,lineHeight:e.lineHeight,text:e.content},null,8,[`lineHeight`,`text`]),e.copy?(D(),N(Pr,{key:0,class:C([`scalar-code-copy absolute top-2.5 right-2.5`,[{"opacity-100":e.copy===`always`}]]),content:e.content,showLang:!0,lang:e.lang},{backdrop:k(()=>[u(Ar,{class:`scalar-code-copy-backdrop -right-1.5 -top-1`})]),_:1},8,[`class`,`content`,`lang`])):F(``,!0)],16))}}),AD=2e4,jD=E({__name:`ExampleSchema`,props:{id:{},schema:{}},setup(e){let n=T(()=>{if(e.schema)return Vt(oi(e.schema))}),r=T(()=>(n.value?.length??0)>AD);return(i,a)=>r.value?(D(),N(t(kD),{key:1,id:e.id,class:`bg-b-2`,content:n.value??``,lang:`json`},null,8,[`id`,`content`])):(D(),N(t(Eo),{key:0,id:e.id,class:`bg-b-2`,lang:`json`,prettyPrintedContent:n.value??``},null,8,[`id`,`prettyPrintedContent`]))}}),MD={key:2,class:`empty-state`},ND=2e4,PD=X(E({__name:`ExampleResponse`,props:{response:{},example:{}},setup(e){let{translate:n}=Z(),r=()=>{if(e.example!==void 0)return oi(e.example)?.value??``;if(e.response?.schema)return rr(oi(e.response.schema),{emptyString:`string`,mode:`read`})},i=T(()=>{let e=r();if(e!==void 0)return Vt(e)}),a=T(()=>i.value!==void 0&&i.value.length>ND);return(e,r)=>i.value!==void 0&&!a.value?(D(),N(t(Eo),{key:0,class:`bg-b-2`,lang:`json`,prettyPrintedContent:i.value},null,8,[`prettyPrintedContent`])):i.value!==void 0&&a.value?(D(),N(t(kD),{key:1,class:`bg-b-2`,content:i.value,lang:`json`},null,8,[`content`])):(D(),x(`div`,MD,A(t(n)(`response.noBody`)),1))}}),[[`__scopeId`,`data-v-ce6cfefc`]]),FD=X(E({__name:`ExampleResponseTab`,setup(e){return(e,n)=>(D(),N(t(ly),{as:`template`},{default:k(({selected:t})=>[b(`button`,{class:C([`tab`,{"tab-selected":t}]),type:`button`},[b(`span`,null,[P(e.$slots,`default`,{},void 0,!0)])],2)]),_:3}))}}),[[`__scopeId`,`data-v-804dba49`]]),ID=X(E({__name:`ExampleResponseTabList`,emits:[`change`],setup(e,{emit:n}){let r=n,i=e=>{r(`change`,e)};return(e,n)=>(D(),N(t(zr),{class:`scalar-card-header scalar-card-header-tabs`},{actions:k(()=>[P(e.$slots,`actions`,{},void 0,!0)]),default:k(()=>[u(t(sy),{onChange:i},{default:k(()=>[u(t(cy),{class:`tab-list custom-scroll`},{default:k(()=>[P(e.$slots,`default`,{},void 0,!0)]),_:3})]),_:3})]),_:3}))}}),[[`__scopeId`,`data-v-49a8c0af`]]);function LD(e){if(typeof e==`string`)return e.replace(/;.*$/,``).replace(/\/(?!.*vnd\.|fhir\+).*\+/,`/`).trim()}function RD(e){if(!e)return e;let t={...e};return Object.entries(t).forEach(([e,n])=>{let r=LD(e);r&&(t[r]=n)}),t}function zD(e){if(!e)return!1;let t=!!e.schema,n=`example`in e&&e.example!==null,r=!!e.examples;return t||n||r}function BD(e){return e==="default"||/^[1-5][0-9]{2}$/.test(e)||/^[1-5]XX$/.test(e)}function VD(e,t){if(t!==void 0)return BD(t)?!!e:!1;let n=RD(e?.content),r=Ii(n??{});return zD(n?.[`application/json`]??n?.[`application/xml`]??n?.[`text/plain`]??n?.[`text/html`]??n?.[`*/*`]??n?.[r[0]??``])}var HD={key:1,class:`scalar-card-checkbox`},UD=[`aria-controls`],WD={class:`response-description`},GD=X(E({__name:`ExampleResponses`,props:{responses:{},selectedExample:{},eventBus:{}},setup(e){let{translate:i}=Z(),a=v(),{copyToClipboard:o}=Bt(),s=T(()=>Object.keys(e.responses??{}).sort()),c=T(()=>s.value.filter(t=>VD(G(e.responses?.[t]),t))),l=n(0);m(c,t=>{if(t.length===0)l.value=0;else if(l.value>=t.length)l.value=t.length-1;else return;g.value=_(e.selectedExample)});let f=T(()=>{let t=r(c)[r(l)]??``;return G(e.responses?.[t])}),p=T(()=>{let e=RD(f.value?.content),t=Ii(e??{});return e?.[t[0]??``]}),h=T(()=>!!p.value?.examples&&Object.keys(p.value?.examples??{}).length>1),g=n(``),_=e=>{let t=Object.keys(p.value?.examples??{});return e&&t.includes(e)?e:g.value&&t.includes(g.value)?g.value:t[0]??``};g.value=_(e.selectedExample),m(()=>e.selectedExample,e=>{g.value=_(e)});let ee=t=>{g.value=t,e.eventBus?.emit(`workspace:update:selected-example`,t)},te=T(()=>{if(p.value)return h.value&&g.value?p.value.examples?.[g.value]:Hi(p.value,void 0,void 0)}),ne=t=>{l.value=t,g.value=_(e.selectedExample)},re=n(!1);return(e,n)=>c.value.length?(D(),N(t(Fa),{key:0,"aria-label":t(i)(`response.exampleResponses`),class:`response-card`,role:`region`},{default:k(()=>[u(ID,{onChange:ne},{actions:k(()=>[p.value?.example?(D(),x(`button`,{key:0,class:`code-copy`,type:`button`,onClick:n[0]||=()=>t(o)(p.value?.example)},[u(t(go),{icon:`Clipboard`,width:`12px`})])):F(``,!0),p.value?.schema?(D(),x(`label`,HD,[d(A(t(i)(`response.showSchema`))+` `,1),y(b(`input`,{"onUpdate:modelValue":n[1]||=e=>re.value=e,"aria-controls":t(a),class:`scalar-card-checkbox-input`,type:`checkbox`},null,8,UD),[[be,re.value]]),n[2]||=b(`span`,{class:`scalar-card-checkbox-checkmark`},null,-1)])):F(``,!0)]),default:k(()=>[(D(!0),x(O,null,S(c.value,e=>(D(),N(FD,{key:e,"aria-controls":t(a)},{default:k(()=>[u(gw,null,{default:k(()=>[d(A(t(i)(`response.status`))+`:`,1)]),_:1}),d(` `+A(e),1)]),_:2},1032,[`aria-controls`]))),128))]),_:1}),u(t(Pn),{class:`grid flex-1`},{default:k(()=>[p.value?.schema&&re.value?(D(),N(jD,{key:0,id:t(a),schema:p.value?.schema},null,8,[`id`,`schema`])):(D(),N(PD,{key:1,id:t(a),example:te.value,response:p.value},null,8,[`id`,`example`,`response`]))]),_:1}),f.value?.description||h.value?(D(),N(t(pn),{key:0,class:`response-card-footer`},{default:k(()=>[h.value?(D(),N(t(kn),{key:0,class:`response-example-selector px-0`,examples:p.value?.examples,modelValue:g.value,"onUpdate:modelValue":ee},null,8,[`examples`,`modelValue`])):F(``,!0),b(`div`,WD,[f.value?.description?(D(),N(t(ta),{key:0,class:`response-description-markdown`,value:f.value.description},null,8,[`value`])):F(``,!0)])]),_:1})):F(``,!0)]),_:1},8,[`aria-label`])):F(``,!0)}}),[[`__scopeId`,`data-v-5123cd9f`]]),KD=e=>`schema`in e&&e.schema!==void 0,qD=e=>G(e),JD=(e,t,n,r,i)=>{let{example:a,examples:o,...s}=e;return{...s,name:t,description:n,required:r,schema:i}},YD=(e,t,n)=>{if(!t.properties)return[e];let r=new Set(t.required??[]),i=Object.entries(t.properties).flatMap(([t,i])=>{let a=qD(i);if(!a)return[];let o=`${n}[${t}]`,s=JD(e,o,a.description??e.description,r.has(t),a);return cn(a)&&a.properties?YD(s,a,o):[s]});return i.length>0?i:[e]},XD=e=>{if(e.in!==`query`||!KD(e)||e.style!==`deepObject`)return[e];let t=qD(e.schema);return!t||!cn(t)?[e]:YD(e,t,e.name)},ZD=e=>!!(e?.[`x-internal`]||e?.[`x-scalar-ignore`]),QD=[`aria-label`],$D={class:`request-body-header`},eO={class:`request-body-title`},tO={key:0,class:`text-c-2 text-xs leading-none font-normal`,"data-testid":`request-body-schema-name`},nO={class:`flex items-center gap-2`},rO={key:0,class:`request-body-required`},iO={key:0,class:`request-body-description`},aO={key:0,class:`request-body-schema`},oO={key:1,class:`request-body-schema`},sO=12,cO=X(E({__name:`RequestBody`,props:s({breadcrumb:{},requestBody:{},eventBus:{},document:{},options:{}},{selectedContentType:{default:`application/json`},selectedContentTypeModifiers:{}}),emits:[`update:selectedContentType`],setup(e){let{translate:n}=Z(),r=T(()=>Object.keys(e.requestBody?.content??{})),i=f(e,`selectedContentType`);e.requestBody?.content&&r.value[0]&&(i.value=r.value[0]);let a=T(()=>e.requestBody?.content?.[i.value]?.schema),o=T(()=>G(a.value)),s=T(()=>(a.value&&rT(a.value))??null),c=T(()=>{if(!o.value||!bw(o.value))return null;let t=oT(o.value,o.value.discriminator,{hideReadOnly:!0,orderSchemaPropertiesBy:e.options.orderSchemaPropertiesBy,orderRequiredPropertiesFirst:e.options.orderRequiredPropertiesFirst});if(t.length<=sO)return null;let{properties:n,...r}=o.value;return n?{visibleProperties:{...r,properties:aT(t.slice(0,sO),n)},collapsedProperties:{...r,properties:aT(t.slice(sO),n)}}:null}),l=T(()=>Object.keys(e.requestBody?.content??{}).length>0||e.requestBody?.description||e.requestBody?.required);return(r,a)=>e.requestBody&&l.value?(D(),x(`div`,{key:0,"aria-label":t(n)(`operation.requestBody`),class:`request-body`,role:`group`},[b(`div`,$D,[b(`div`,eO,[P(r.$slots,`title`,{},void 0,!0),s.value?(D(),x(`span`,tO,[a[2]||=b(`span`,{class:`text-c-3 mx-1.5`},`·`,-1),e.eventBus&&s.value.schemaKey?(D(),N(FT,{key:0,onClick:a[0]||=t=>e.eventBus.emit(`scroll-to:model-by-name`,{name:s.value.schemaKey})},{default:k(()=>[d(A(s.value.label),1)]),_:1})):(D(),x(O,{key:1},[d(A(s.value.label),1)],64))])):F(``,!0)]),b(`div`,nO,[e.requestBody.required?(D(),x(`div`,rO,A(t(n)(`common.required`)),1)):F(``,!0),u(HE,{modelValue:i.value,"onUpdate:modelValue":a[1]||=e=>i.value=e,content:e.requestBody.content},null,8,[`modelValue`,`content`])]),e.requestBody.description?(D(),x(`div`,iO,[u(t(ta),{value:e.requestBody.description},null,8,[`value`])])):F(``,!0)]),c.value?(D(),x(`div`,aO,[u(t(dT),{breadcrumb:e.breadcrumb,compact:``,compositionPath:[`requestBody`],eventBus:e.eventBus,name:t(n)(`operation.requestBody`),noncollapsible:``,options:{hideReadOnly:!0,orderRequiredPropertiesFirst:e.options.orderRequiredPropertiesFirst,orderSchemaPropertiesBy:e.options.orderSchemaPropertiesBy,expandAllSchemaProperties:e.options.expandAllSchemaProperties,document:e.document},schema:c.value.visibleProperties,schemaContext:`requestBody`},null,8,[`breadcrumb`,`eventBus`,`name`,`options`,`schema`]),u(t(dT),{additionalProperties:``,breadcrumb:e.breadcrumb,compact:``,compositionPath:[`requestBody`],eventBus:e.eventBus,hideDescription:``,name:t(n)(`operation.requestBody`),options:{hideReadOnly:!0,orderRequiredPropertiesFirst:e.options.orderRequiredPropertiesFirst,orderSchemaPropertiesBy:e.options.orderSchemaPropertiesBy,expandAllSchemaProperties:e.options.expandAllSchemaProperties,document:e.document},schema:c.value.collapsedProperties,schemaContext:`requestBody`},null,8,[`breadcrumb`,`eventBus`,`name`,`options`,`schema`])])):o.value?(D(),x(`div`,oO,[u(t(dT),{breadcrumb:e.breadcrumb,compact:``,compositionPath:[`requestBody`],eventBus:e.eventBus,hideReadOnly:!0,name:t(n)(`operation.requestBody`),noncollapsible:``,options:{hideReadOnly:!0,orderRequiredPropertiesFirst:e.options.orderRequiredPropertiesFirst,orderSchemaPropertiesBy:e.options.orderSchemaPropertiesBy,expandAllSchemaProperties:e.options.expandAllSchemaProperties,document:e.document},schema:o.value,schemaContext:`requestBody`},null,8,[`breadcrumb`,`eventBus`,`name`,`options`,`schema`])])):F(``,!0)],8,QD)):F(``,!0)}}),[[`__scopeId`,`data-v-6092df54`]]),lO=E({__name:`OperationParameters`,props:s({breadcrumb:{},parameters:{default:()=>[]},requestBody:{},eventBus:{},document:{},options:{}},{selectedContentType:{},selectedContentTypeModifiers:{}}),emits:[`update:selectedContentType`],setup(e){let{translate:n}=Z(),r=f(e,`selectedContentType`),i=T(()=>(e.parameters??[]).reduce((e,t)=>{let n=G(t);return ZD(n)||XD(n).forEach(t=>{e[t.in].push(t)}),e},{cookie:[],header:[],path:[],query:[]}));return(a,o)=>(D(),x(O,null,[u(eD,{breadcrumb:e.breadcrumb?[...e.breadcrumb,`path`]:void 0,document:e.document,eventBus:e.eventBus,options:e.options,parameters:i.value.path},{title:k(()=>[d(A(t(n)(`operation.pathParameters`)),1)]),_:1},8,[`breadcrumb`,`document`,`eventBus`,`options`,`parameters`]),u(eD,{breadcrumb:e.breadcrumb?[...e.breadcrumb,`query`]:void 0,document:e.document,eventBus:e.eventBus,options:e.options,parameters:i.value.query},{title:k(()=>[d(A(t(n)(`operation.queryParameters`)),1)]),_:1},8,[`breadcrumb`,`document`,`eventBus`,`options`,`parameters`]),u(eD,{breadcrumb:e.breadcrumb?[...e.breadcrumb,`headers`]:void 0,document:e.document,eventBus:e.eventBus,options:e.options,parameters:i.value.header},{title:k(()=>[d(A(t(n)(`operation.headers`)),1)]),_:1},8,[`breadcrumb`,`document`,`eventBus`,`options`,`parameters`]),u(eD,{breadcrumb:e.breadcrumb?[...e.breadcrumb,`cookies`]:void 0,document:e.document,eventBus:e.eventBus,options:e.options,parameters:i.value.cookie},{title:k(()=>[d(A(t(n)(`operation.cookies`)),1)]),_:1},8,[`breadcrumb`,`document`,`eventBus`,`options`,`parameters`]),e.requestBody?(D(),N(cO,{key:0,selectedContentType:r.value,"onUpdate:selectedContentType":o[0]||=e=>r.value=e,breadcrumb:e.breadcrumb?[...e.breadcrumb,`body`]:void 0,document:e.document,eventBus:e.eventBus,options:e.options,requestBody:e.requestBody},{title:k(()=>[d(A(t(n)(`operation.body`)),1)]),_:1},8,[`selectedContentType`,`breadcrumb`,`document`,`eventBus`,`options`,`requestBody`])):F(``,!0)],64))}}),uO={key:0,class:`mt-6`},dO={class:`text-c-1 mt-3 mb-3 leading-[1.45] font-medium`},fO=[`aria-label`],pO=E({__name:`OperationResponses`,props:{responses:{},breadcrumb:{},collapsableItems:{type:Boolean},eventBus:{},document:{},options:{}},setup(e){let{translate:n}=Z();return(r,i)=>Object.keys(e.responses??{}).length?(D(),x(`div`,uO,[b(`div`,dO,A(t(n)(`operation.responses`)),1),b(`ul`,{"aria-label":t(n)(`operation.responses`),class:`mb-3 list-none p-0 text-sm`},[(D(!0),x(O,null,S(e.responses,(n,r)=>(D(),N(XE,{key:r,breadcrumb:e.breadcrumb,collapsableItems:e.collapsableItems,document:e.document,eventBus:e.eventBus,name:r,options:e.options,parameter:t(G)(n)},null,8,[`breadcrumb`,`collapsableItems`,`document`,`eventBus`,`name`,`options`,`parameter`]))),128))],8,fO)])):F(``,!0)}}),mO={class:`group callback-list-item`},hO={class:`font-code bg-b-1 callback-sticky-offset callback-list-item-title sticky flex cursor-pointer flex-row items-start gap-2 border-t py-2.5 text-sm group-open:flex-wrap`},gO={class:`text-c-1 min-w-0 flex-1 truncate text-sm leading-5 font-bold group-open:whitespace-normal`},_O={class:`text-c-2 font-normal`},vO={class:`callback-operation-container flex flex-col gap-2`},yO=X(E({__name:`Callback`,props:{callback:{},method:{},name:{},url:{},eventBus:{},document:{},options:{}},setup(e){return(n,r)=>(D(),x(`details`,mO,[b(`summary`,hO,[u(t(un),{class:`callback-list-item-icon text-c-3 group-hover:text-c-1 absolute top-3.5 -left-5 size-3 transition-transform duration-100 group-open:rotate-90`,weight:`bold`}),u(t(AE),{as:`span`,class:`request-method py-0.75 font-bold`,method:e.method},null,8,[`method`]),b(`div`,gO,[d(A(e.name)+` `,1),b(`span`,_O,A(e.url),1)])]),b(`div`,vO,[u(lO,{document:e.document,eventBus:e.eventBus,options:e.options,parameters:e.callback.parameters?.map(e=>t(G)(e))??[],requestBody:t(G)(e.callback.requestBody)},null,8,[`document`,`eventBus`,`options`,`parameters`,`requestBody`]),u(pO,{collapsableItems:!1,document:e.document,eventBus:e.eventBus,options:e.options,responses:e.callback.responses},null,8,[`document`,`eventBus`,`options`,`responses`])])]))}}),[[`__scopeId`,`data-v-474e6fa6`]]),bO=[`aria-label`],xO={class:`callbacks-title text-c-1 my-3 text-lg font-medium`},SO=E({__name:`Callbacks`,props:{path:{},callbacks:{},eventBus:{},document:{},options:{}},setup(e){let{translate:n}=Z(),r=T(()=>{let t=[];return Gi(e.callbacks).forEach(([e,n])=>{Gi(G(n)).forEach(([n,r])=>{typeof r==`object`&&r&&Gi(r).forEach(([r,i])=>{ka(r)&&t.push({name:e,url:n,method:r,callback:i})})})}),t});return(i,a)=>(D(),x(`div`,{"aria-label":t(n)(`operation.callbacks`),class:`callbacks-list gap-3`,role:`group`},[b(`div`,xO,A(t(n)(`operation.callbacks`)),1),(D(!0),x(O,null,S(r.value,({callback:t,method:n,name:r,url:i})=>(D(),N(yO,{key:`${r}-${i}-${n}`,callback:t,document:e.document,eventBus:e.eventBus,method:n,name:r,options:e.options,path:e.path,url:i},null,8,[`callback`,`document`,`eventBus`,`method`,`name`,`options`,`path`,`url`]))),128))],8,bO))}}),CO={key:0},wO={key:1},TO=E({__name:`SecurityRequirementBadgeScheme`,props:{is:{default:`li`},scheme:{}},setup(e){return(t,n)=>(D(),N(me(e.is),{class:`markdown`},{default:k(()=>[d(A(e.scheme.name)+` `,1),e.scheme.scheme?.type?(D(),x(`code`,CO,A(e.scheme.scheme.type),1)):F(``,!0),e.scheme.scopes.length?(D(),x(`ul`,wO,[(D(!0),x(O,null,S(e.scheme.scopes,e=>(D(),x(`li`,{key:e,class:`font-code text-c-2`},A(e),1))),128))])):F(``,!0)]),_:1}))}}),EO={key:2},DO={class:`flex max-w-xs min-w-48 flex-col gap-1.5 p-2 text-sm`},OO={class:`font-medium`},kO={key:0,class:`contents`},AO={key:1,class:`contents`},jO={key:1,class:`contents`},MO=E({__name:`SecurityRequirementBadge`,props:{requiredSecurity:{},hideLabel:{type:Boolean,default:!1}},setup(e){let{translate:n}=Z(),r=T(()=>e.requiredSecurity.state===`required`?n(`authentication.required`):n(`authentication.optional`)),i=T(()=>e.requiredSecurity.state===`required`?n(`authentication.requires`):n(`authentication.accepts`)),a=T(()=>e.requiredSecurity.requirements.length===1&&e.requiredSecurity.requirements[0]?.schemes.length===1),o=T(()=>e.requiredSecurity.requirements.length===1&&(e.requiredSecurity.requirements[0]?.schemes.length??0)>1),s=T(()=>e.requiredSecurity.requirements.length>1);return(c,l)=>e.requiredSecurity.state===`none`?F(``,!0):(D(),N(t(Si),{key:0,placement:`bottom-end`},{popover:k(()=>[b(`div`,DO,[b(`div`,OO,[d(A(i.value)+` `,1),a.value?(D(),N(TO,{key:0,is:`span`,class:`contents`,scheme:e.requiredSecurity.requirements[0].schemes[0]},null,8,[`scheme`])):s.value?(D(),x(O,{key:1},[d(A(t(n)(`authentication.oneOf`)),1)],64)):o.value?(D(),x(O,{key:2},[d(A(t(n)(`authentication.allOf`)),1)],64)):(D(),x(O,{key:3},[d(A(t(n)(`authentication.authentication`)),1)],64))]),s.value?(D(),x(`ul`,kO,[(D(!0),x(O,null,S(e.requiredSecurity.requirements,(e,t)=>(D(),x(`li`,{key:t,class:`markdown`},[e.schemes.length===1?(D(),N(TO,{key:0,is:`span`,class:`contents`,scheme:e.schemes[0]},null,8,[`scheme`])):(D(),x(`ul`,AO,[(D(!0),x(O,null,S(e.schemes,(e,t)=>(D(),N(TO,{key:t,scheme:e},null,8,[`scheme`]))),128))]))]))),128))])):o.value?(D(),x(`ul`,jO,[(D(!0),x(O,null,S(e.requiredSecurity.requirements[0].schemes,(e,t)=>(D(),N(TO,{key:t,scheme:e},null,8,[`scheme`]))),128))])):F(``,!0)])]),default:k(()=>[b(`button`,{class:C([`security-requirement-badge inline-flex w-fit shrink-0 items-center justify-center gap-1 text-sm`,e.requiredSecurity.state===`optional`?`text-c-2`:`text-c-1 font-medium`]),type:`button`,onClick:l[0]||=I(()=>{},[`stop`])},[e.requiredSecurity.state===`required`?(D(),N(t(v_),{key:0,class:`size-3`,weight:`bold`})):(D(),N(t(T_),{key:1,class:`size-3`,weight:`bold`})),e.hideLabel?F(``,!0):(D(),x(`span`,EO,A(r.value),1))],2)]),_:1}))}}),NO;(function(e){e.Deprecated=`deprecated`,e.Experimental=`experimental`,e.Stable=`stable`})(NO||={});var PO=e=>e.deprecated||e[`x-scalar-stability`]===NO.Deprecated,FO=e=>e.deprecated?NO.Deprecated:e[`x-scalar-stability`],IO=e=>{switch(FO(e)){case NO.Deprecated:return`text-red`;case NO.Experimental:return`text-orange`;case NO.Stable:return`text-green`;default:return``}},LO=[`method`],RO=X(E({__name:`TestRequestButton`,props:{id:{},method:{},path:{},eventBus:{},exampleName:{},requestBodyCompositionSelection:{}},setup(e){let{translate:n}=Z(),r=()=>{let t={id:e.id,...e.exampleName&&{exampleName:e.exampleName},...e.requestBodyCompositionSelection&&Object.keys(e.requestBodyCompositionSelection).length>0&&{requestBodyCompositionSelection:e.requestBodyCompositionSelection}};e.eventBus.emit(`ui:open:client-modal`,t)};return(i,a)=>(D(),x(`button`,{class:`show-api-client-button`,method:e.method,type:`button`,onClick:I(r,[`stop`])},[u(t(z_),{class:`size-3`,weight:`fill`}),b(`span`,null,A(t(n)(`operation.testRequest`)),1),u(gw,null,{default:k(()=>[d(`(`+A(e.method)+` `+A(e.path)+`)`,1)]),_:1})],8,LO))}}),[[`__scopeId`,`data-v-ad72d914`]]),zO=E({__name:`XBadges`,props:{position:{},badges:{}},setup(e){let n=T(()=>Array.isArray(e.badges)?e.badges.filter(t=>t.position===e.position||e.position===`after`&&!t.position):[]);return(e,r)=>n.value.length?(D(!0),x(O,{key:0},S(n.value,e=>(D(),N(t(SS),{key:e.name,color:e.color},{default:k(()=>[d(A(e.name),1)]),_:2},1032,[`color`]))),128)):F(``,!0)}}),BO={class:`operation-title`},VO={class:`operation-details`},HO={class:`endpoint-label`},UO={class:`endpoint-label-path`},WO={class:`endpoint-label-name`},GO={key:1,class:`font-code text-sm`},KO={class:`endpoint-content`},qO={class:`operation-details-card`},JO={key:0,class:`operation-details-card-item`},YO={class:`operation-details-card-item`},XO={class:`operation-details-card-item`},ZO={key:1,class:`operation-details-card-item`},QO=X(E({__name:`ClassicLayout`,props:{id:{},method:{},options:{},path:{},clientOptions:{},isCollapsed:{type:Boolean},isWebhook:{type:Boolean},selectedClient:{},selectedExample:{},eventBus:{},operation:{},selectedServer:{},selectedSecuritySchemes:{},requiredSecurity:{},document:{}},setup(e){let{translate:r}=Z(),i=T(()=>e.operation.summary||e.path||``),a=T(()=>xS(e.operation)),o=n(),s=n(``),c=n({}),l=T(()=>({...c.value})),f=T(()=>JSON.stringify(l.value));se($w,c);let{copyToClipboard:p}=Bt();return(n,c)=>(D(),N(t(mw),{id:e.id,"aria-label":i.value,class:`reference-endpoint`,modelValue:!e.isCollapsed,transparent:``,"onUpdate:modelValue":c[4]||=t=>e.eventBus?.emit(`toggle:nav-item`,{id:e.id,open:t})},pe({title:k(()=>[b(`div`,BO,[b(`div`,VO,[u(t(AE),{class:`endpoint-type`,method:e.method,short:``},null,8,[`method`]),u(t(yw),{class:`endpoint-anchor`,onCopyAnchorUrl:c[0]||=()=>e.eventBus?.emit(`copy-url:nav-item`,{id:e.id})},{default:k(()=>[b(`h3`,HO,[b(`div`,UO,[u(OD,{deprecated:t(PO)(e.operation),path:e.path},null,8,[`deprecated`,`path`])]),b(`div`,WO,A(i.value),1),t(FO)(e.operation)?(D(),N(t(SS),{key:0,class:C([`capitalize`,t(IO)(e.operation)])},{default:k(()=>[d(A(t(FO)(e.operation)),1)]),_:1},8,[`class`])):F(``,!0),e.isWebhook?(D(),N(t(SS),{key:1,class:`font-code text-green flex w-fit items-center justify-center gap-1`},{default:k(()=>[u(t(nr),{weight:`bold`}),d(` `+A(t(r)(`operation.webhook`)),1)]),_:1})):F(``,!0),u(t(zO),{badges:e.operation[`x-badges`],position:`before`},null,8,[`badges`])])]),_:1})])])]),actions:k(({active:n})=>[u(MO,{hideLabel:``,requiredSecurity:e.requiredSecurity},null,8,[`requiredSecurity`]),u(t(zO),{badges:e.operation[`x-badges`],position:`after`},null,8,[`badges`]),e.options.hideTestRequestButton?F(``,!0):(D(),x(O,{key:0},[n&&!e.isWebhook?(D(),N(t(RO),{key:0,id:e.id,eventBus:e.eventBus,exampleName:s.value,method:e.method,path:e.path,requestBodyCompositionSelection:l.value},null,8,[`id`,`eventBus`,`exampleName`,`method`,`path`,`requestBodyCompositionSelection`])):(D(),N(t(z_),{key:1,class:`endpoint-try-hint size-4.5`}))],64)),e.options.showOperationId&&e.operation.operationId?(D(),x(`span`,GO,A(e.operation.operationId),1)):F(``,!0),u(t(ba),{class:`endpoint-copy p-0.5`,icon:t(Xn),label:t(r)(`actions.copyEndpointUrl`),size:`xs`,variant:`ghost`,onClick:c[1]||=I(n=>t(p)(e.path),[`stop`])},null,8,[`icon`,`label`])]),default:k(()=>[b(`div`,KO,[b(`div`,qO,[Object.keys(a.value).length>0?(D(),x(`div`,JO,[u(GS,{value:a.value},null,8,[`value`])])):F(``,!0),b(`div`,YO,[u(lO,{selectedContentType:o.value,"onUpdate:selectedContentType":c[2]||=e=>o.value=e,document:e.document,eventBus:e.eventBus,options:e.options,parameters:e.operation.parameters,requestBody:t(G)(e.operation.requestBody)},null,8,[`selectedContentType`,`document`,`eventBus`,`options`,`parameters`,`requestBody`])]),b(`div`,XO,[u(pO,{document:e.document,eventBus:e.eventBus,options:e.options,responses:e.operation.responses},null,8,[`document`,`eventBus`,`options`,`responses`])]),e.operation?.callbacks?(D(),x(`div`,ZO,[u(SO,{callbacks:e.operation.callbacks,document:e.document,eventBus:e.eventBus,options:e.options,path:e.path},null,8,[`callbacks`,`document`,`eventBus`,`options`,`path`])])):F(``,!0)]),e.operation.responses?(D(),N(t(GD),{key:0,class:`operation-example-card`,eventBus:e.eventBus,responses:e.operation.responses,selectedExample:e.selectedExample},null,8,[`eventBus`,`responses`,`selectedExample`])):F(``,!0),b(`div`,null,[e.operation.externalDocs?(D(),N(t(XS),{key:0},{default:k(()=>[u(t(tC),{value:e.operation.externalDocs},null,8,[`value`])]),_:1})):F(``,!0),u(t(so),null,{default:k(()=>[(D(),N(t(sn),{key:f.value,class:`operation-example-card`,clientOptions:e.clientOptions,eventBus:e.eventBus,fallback:``,isWebhook:e.isWebhook,method:e.method,operation:e.operation,path:e.path,requestBodyCompositionSelection:l.value,securitySchemes:e.selectedSecuritySchemes,selectedClient:e.selectedClient,selectedContentType:o.value,selectedExample:e.selectedExample,selectedServer:e.selectedServer,"onUpdate:exampleKey":c[3]||=e=>s.value=e},null,8,[`clientOptions`,`eventBus`,`isWebhook`,`method`,`operation`,`path`,`requestBodyCompositionSelection`,`securitySchemes`,`selectedClient`,`selectedContentType`,`selectedExample`,`selectedServer`]))]),_:1})])])]),_:2},[e.operation.description?{name:`description`,fn:k(()=>[u(t(ta),{anchorPrefix:e.id,"aria-label":t(r)(`common.description`),role:`group`,transformType:`heading`,value:e.operation.description,withAnchors:``,withImages:``},null,8,[`anchorPrefix`,`aria-label`,`value`])]),key:`0`}:void 0]),1032,[`id`,`aria-label`,`modelValue`]))}}),[[`__scopeId`,`data-v-9d937e58`]]),$O={class:`ask-agent-scalar-input-label`},ek=[`placeholder`],tk={class:`ask-agent-scalar-send`,type:`submit`},nk=X(E({__name:`AskAgentButton`,setup(e){let r=ub(),{translate:i}=Z(),a=n(``),o=n();function s(){r.value?.openAgent(a.value),a.value=``}return(e,n)=>t(r)?.agentEnabled.value?(D(),x(`form`,{key:0,class:`agent-button-container`,onClick:n[1]||=e=>o.value?.focus(),onSubmit:n[2]||=I(e=>s(),[`prevent`])},[u(t(ov),{class:`size-3 shrink-0`,weight:`fill`}),b(`div`,$O,A(t(i)(`agent.askAiAgent`)),1),y(b(`input`,{ref_key:`inputRef`,ref:o,"onUpdate:modelValue":n[0]||=e=>a.value=e,class:C([`ask-agent-scalar-input`,{"ask-agent-scalar-input-not-empty":a.value.length>0}]),placeholder:t(i)(`agent.askAiAgent`)},null,10,ek),[[ve,a.value]]),b(`button`,tk,[u(t(Hh),{class:`size-3`,weight:`bold`})])],32)):F(``,!0)}}),[[`__scopeId`,`data-v-10a4fb90`]]),rk={class:`flex flex-row justify-between gap-1`},ik={class:`flex gap-1`},ak={class:`flex gap-1`},ok={class:`operation-layout`},sk={class:`operation-auth`},ck={class:`operation-description`},lk={class:`operation-details`},uk={class:`examples`},dk={class:`flex`},fk=X(E({__name:`ModernLayout`,props:{id:{},method:{},options:{},path:{},clientOptions:{},isWebhook:{type:Boolean},selectedClient:{},selectedExample:{},eventBus:{},operation:{},selectedServer:{},selectedSecuritySchemes:{},requiredSecurity:{},document:{}},setup(e){let{translate:r}=Z(),i=T(()=>e.operation.summary||e.path||``),a=v(),o=T(()=>xS(e.operation)),s=n(),c=n({}),l=T(()=>({...c.value})),f=T(()=>JSON.stringify(l.value));return se($w,c),(n,c)=>(D(),N(t(ES),{id:e.id,"aria-labelledby":t(a),label:i.value,tabindex:`-1`,onIntersecting:c[2]||=()=>e.eventBus?.emit(`intersecting:nav-item`,{id:e.id})},{default:k(()=>[u(t(BS),null,{default:k(()=>[b(`div`,rk,[b(`div`,ik,[e.options?.showOperationId&&e.operation.operationId?(D(),N(t(SS),{key:0},{default:k(()=>[d(A(e.operation.operationId),1)]),_:1})):F(``,!0),t(FO)(e.operation)?(D(),N(t(SS),{key:1,class:C([`capitalize`,t(IO)(e.operation)])},{default:k(()=>[d(A(t(FO)(e.operation)),1)]),_:1},8,[`class`])):F(``,!0),e.isWebhook?(D(),N(t(SS),{key:2,class:`font-code text-green flex w-fit items-center justify-center gap-1`},{default:k(()=>[u(t(nr),{weight:`bold`}),d(` `+A(t(r)(`operation.webhook`)),1)]),_:1})):F(``,!0),u(t(zO),{badges:e.operation[`x-badges`],position:`before`},null,8,[`badges`])]),b(`div`,ak,[u(t(zO),{badges:e.operation[`x-badges`],position:`after`},null,8,[`badges`])])]),b(`div`,ok,[b(`div`,{class:C([`operation-title`,t(PO)(e.operation)&&`deprecated`])},[u(t(yw),{onCopyAnchorUrl:c[0]||=()=>e.eventBus?.emit(`copy-url:nav-item`,{id:e.id})},{default:k(()=>[u(t(US),{id:t(a),level:3},{default:k(()=>[d(A(i.value),1)]),_:1},8,[`id`])]),_:1})],2),b(`div`,sk,[u(MO,{requiredSecurity:e.requiredSecurity},null,8,[`requiredSecurity`])]),b(`div`,ck,[u(GS,{value:o.value},null,8,[`value`]),u(t(ta),{anchorPrefix:e.id,"aria-label":t(r)(`common.description`),role:`group`,transformType:`heading`,value:e.operation.description,withAnchors:``,withImages:``},null,8,[`anchorPrefix`,`aria-label`,`value`])]),b(`div`,lk,[u(lO,{selectedContentType:s.value,"onUpdate:selectedContentType":c[1]||=e=>s.value=e,breadcrumb:[e.id],document:e.document,eventBus:e.eventBus,options:e.options,parameters:e.operation.parameters,requestBody:t(G)(e.operation.requestBody)},null,8,[`selectedContentType`,`breadcrumb`,`document`,`eventBus`,`options`,`parameters`,`requestBody`]),u(pO,{breadcrumb:[e.id],collapsableItems:!e.options.expandAllResponses,document:e.document,eventBus:e.eventBus,options:e.options,responses:e.operation.responses},null,8,[`breadcrumb`,`collapsableItems`,`document`,`eventBus`,`options`,`responses`]),u(t(so),null,{default:k(()=>[e.operation.callbacks?(D(),N(SO,{key:0,callbacks:e.operation.callbacks,class:`mt-6`,document:e.document,eventBus:e.eventBus,options:e.options,path:e.path},null,8,[`callbacks`,`document`,`eventBus`,`options`,`path`])):F(``,!0)]),_:1})]),b(`div`,uk,[e.operation.externalDocs?(D(),N(t(XS),{key:0},{default:k(()=>[u(t(tC),{value:e.operation.externalDocs},null,8,[`value`])]),_:1})):F(``,!0),u(t(so),null,{default:k(()=>[(D(),N(t(sn),{key:f.value,clientOptions:e.clientOptions,eventBus:e.eventBus,fallback:``,isWebhook:e.isWebhook,method:e.method,operation:e.operation,path:e.path,requestBodyCompositionSelection:l.value,securitySchemes:e.selectedSecuritySchemes,selectedClient:e.selectedClient,selectedContentType:s.value,selectedExample:e.selectedExample,selectedServer:e.selectedServer},pe({header:k(()=>[u(OD,{class:`font-code text-c-2 [&_em]:text-c-1 min-w-0 [&_em]:not-italic`,deprecated:e.operation?.deprecated,path:e.path},null,8,[`deprecated`,`path`])]),_:2},[e.isWebhook?void 0:{name:`footer`,fn:k(({exampleName:n})=>[b(`div`,dk,[u(nk),e.options.hideTestRequestButton?F(``,!0):(D(),N(t(RO),{key:0,id:e.id,eventBus:e.eventBus,exampleName:n,method:e.method,path:e.path,requestBodyCompositionSelection:l.value},null,8,[`id`,`eventBus`,`exampleName`,`method`,`path`,`requestBodyCompositionSelection`]))])]),key:`0`}]),1032,[`clientOptions`,`eventBus`,`isWebhook`,`method`,`operation`,`path`,`requestBodyCompositionSelection`,`securitySchemes`,`selectedClient`,`selectedContentType`,`selectedExample`,`selectedServer`]))]),_:1}),u(t(so),null,{default:k(()=>[e.operation.responses?(D(),N(t(GD),{key:0,eventBus:e.eventBus,responses:e.operation.responses,selectedExample:e.selectedExample,style:{"margin-top":`12px`}},null,8,[`eventBus`,`responses`,`selectedExample`])):F(``,!0)]),_:1})])])]),_:1})]),_:1},8,[`id`,`aria-labelledby`,`label`]))}}),[[`__scopeId`,`data-v-eb0b9f7e`]]),pk=E({__name:`Operation`,props:{id:{},method:{},options:{},document:{},path:{},pathValue:{},server:{},securitySchemes:{},clientOptions:{},isCollapsed:{type:Boolean},isWebhook:{type:Boolean},selectedClient:{},selectedExample:{},eventBus:{},authStore:{}},setup(e){let t=T(()=>{let t=G(e.pathValue?.[e.method]);if(!t)return null;let n=Wa(e.pathValue?.parameters,t.parameters);return{...t,parameters:n}}),n=T(()=>Gx(t.value?.servers??null,e.pathValue?.servers??null,e.server)),r=T(()=>ED(t.value,e.document)),i=T(()=>TD(e.document,t.value,e.authStore.getAuthSelectedSchemas({type:`document`,documentName:e.document?.[`x-scalar-navigation`]?.name??``}),e.authStore.getAuthSelectedSchemas({type:`operation`,documentName:e.document?.[`x-scalar-navigation`]?.name??``,path:e.path,method:e.method}),e.securitySchemes));return(a,o)=>t.value?(D(),x(O,{key:0},[e.options.layout===`classic`?(D(),N(QO,{key:0,id:e.id,clientOptions:e.clientOptions,document:e.document,eventBus:e.eventBus,isCollapsed:e.isCollapsed,isWebhook:e.isWebhook,method:e.method,operation:t.value,options:e.options,path:e.path,requiredSecurity:r.value,selectedClient:e.selectedClient,selectedExample:e.selectedExample,selectedSecuritySchemes:i.value,selectedServer:n.value},null,8,[`id`,`clientOptions`,`document`,`eventBus`,`isCollapsed`,`isWebhook`,`method`,`operation`,`options`,`path`,`requiredSecurity`,`selectedClient`,`selectedExample`,`selectedSecuritySchemes`,`selectedServer`])):(D(),N(fk,{key:1,id:e.id,clientOptions:e.clientOptions,document:e.document,eventBus:e.eventBus,isWebhook:e.isWebhook,method:e.method,operation:t.value,options:e.options,path:e.path,requiredSecurity:r.value,selectedClient:e.selectedClient,selectedExample:e.selectedExample,selectedSecuritySchemes:i.value,selectedServer:n.value},null,8,[`id`,`clientOptions`,`document`,`eventBus`,`isWebhook`,`method`,`operation`,`options`,`path`,`requiredSecurity`,`selectedClient`,`selectedExample`,`selectedSecuritySchemes`,`selectedServer`]))],64)):F(``,!0)}}),mk=[`id`],hk=E({__name:`TraversedEntry`,props:{authStore:{},level:{default:0},entries:{},document:{},clientOptions:{},options:{},selectedServer:{},securitySchemes:{},selectedClient:{},selectedExample:{},expandedItems:{},eventBus:{}},setup(e){let n=e=>e.type===`tag`&&e.isGroup===!0,r=e=>e.type===`tag`&&!n(e)&&e.id!==`models`,i=e=>e.type===`operation`,a=e=>e.type===`webhook`,o=e=>e.type===`models`,s=e=>e.type===`model`;function c(t){return a(t)?mi(e.document.webhooks?.[t.name]):mi(e.document.paths?.[t.path])}return(l,d)=>{let f=te(`TraversedEntry`,!0);return D(!0),x(O,null,S(e.entries,l=>(D(),N(VE,{id:l.id,key:`${l.id}-${e.options.layout}`,expanded:!!e.expandedItems[l.id]},{default:k(()=>[i(l)||a(l)?(D(),N(t(IS),{key:0,omit:e.level!==0},{default:k(()=>[u(t(pk),{id:l.id,authStore:e.authStore,clientOptions:e.clientOptions,document:e.document,eventBus:e.eventBus,isCollapsed:!e.expandedItems[l.id],isWebhook:a(l),method:l.method,options:e.options,path:a(l)?l.name:l.path,pathValue:c(l),securitySchemes:e.securitySchemes,selectedClient:e.selectedClient,selectedExample:e.selectedExample,server:e.selectedServer},null,8,[`id`,`authStore`,`clientOptions`,`document`,`eventBus`,`isCollapsed`,`isWebhook`,`method`,`options`,`path`,`pathValue`,`securitySchemes`,`selectedClient`,`selectedExample`,`server`])]),_:2},1032,[`omit`])):r(l)||n(l)&&e.options.layout===`classic`?(D(),N(t(LE),{key:1,eventBus:e.eventBus,isCollapsed:!e.expandedItems[l.id],layout:e.options.layout,moreThanOneTag:e.entries.filter(r).length>1,tag:l},{default:k(()=>[`children`in l&&l.children?.length?(D(),N(f,{key:0,authStore:e.authStore,clientOptions:e.clientOptions,document:e.document,entries:l.children,eventBus:e.eventBus,expandedItems:e.expandedItems,level:e.level+1,options:e.options,securitySchemes:e.securitySchemes,selectedClient:e.selectedClient,selectedExample:e.selectedExample,selectedServer:e.selectedServer},null,8,[`authStore`,`clientOptions`,`document`,`entries`,`eventBus`,`expandedItems`,`level`,`options`,`securitySchemes`,`selectedClient`,`selectedExample`,`selectedServer`])):F(``,!0)]),_:2},1032,[`eventBus`,`isCollapsed`,`layout`,`moreThanOneTag`,`tag`])):n(l)?(D(),x(`div`,{key:2,id:l.id},[u(f,{authStore:e.authStore,clientOptions:e.clientOptions,document:e.document,entries:l.children||[],eventBus:e.eventBus,expandedItems:e.expandedItems,level:e.level+1,options:e.options,securitySchemes:e.securitySchemes,selectedClient:e.selectedClient,selectedExample:e.selectedExample,selectedServer:e.selectedServer},null,8,[`authStore`,`clientOptions`,`document`,`entries`,`eventBus`,`expandedItems`,`level`,`options`,`securitySchemes`,`selectedClient`,`selectedExample`,`selectedServer`])],8,mk)):o(l)&&e.document.components?.schemas?(D(),N(OE,{key:3,id:l.id,eventBus:e.eventBus,isCollapsed:!e.expandedItems[l.id],layout:e.options.layout,modelsSectionLabel:e.options.modelsSectionLabel},{default:k(()=>[u(f,{authStore:e.authStore,clientOptions:e.clientOptions,document:e.document,entries:l.children||[],eventBus:e.eventBus,expandedItems:e.expandedItems,level:e.level+1,options:e.options,securitySchemes:e.securitySchemes,selectedClient:e.selectedClient,selectedExample:e.selectedExample,selectedServer:e.selectedServer},null,8,[`authStore`,`clientOptions`,`document`,`entries`,`eventBus`,`expandedItems`,`level`,`options`,`securitySchemes`,`selectedClient`,`selectedExample`,`selectedServer`])]),_:2},1032,[`id`,`eventBus`,`isCollapsed`,`layout`,`modelsSectionLabel`])):s(l)&&e.document.components?.schemas?.[l.name]?(D(),N(SE,{key:4,id:l.id,document:e.document,eventBus:e.eventBus,isCollapsed:!e.expandedItems[l.id],name:l.name,options:e.options,schema:t(G)(e.document.components.schemas[l.name])},null,8,[`id`,`document`,`eventBus`,`isCollapsed`,`name`,`options`,`schema`])):F(``,!0)]),_:2},1032,[`id`,`expanded`]))),128)}}}),gk=[`id`],_k=E({__name:`RenderPluginView`,props:{item:{},options:{},eventBus:{}},setup(e){let n=ee(`el`);return Ob(n,()=>{e.item.sidebar?.show&&e.eventBus?.emit(`intersecting:nav-item`,{id:e.item.id})}),(r,i)=>(D(),x(`div`,{id:e.item.id,ref_key:`el`,ref:n},[u(t(so),null,{default:k(()=>[e.item.renderer?(D(),N(me(e.item.renderer),j(w({key:0},{component:e.item.component,options:e.options,...e.item.props})),null,16)):(D(),N(me(e.item.component),j(w({key:1},{options:e.options,...e.item.props})),null,16))]),_:1})],8,gk))}}),vk={key:0,class:`plugin-view`},yk=E({__name:`RenderPlugins`,props:{viewName:{},options:{},eventBus:{},documentSlug:{}},setup(e){let{getViewComponents:t}=Nb(),n=T(()=>t(e.viewName,e.documentSlug));return(t,r)=>n.value.length?(D(),x(`div`,vk,[(D(!0),x(O,null,S(n.value,t=>(D(),N(_k,{key:t.id,eventBus:e.eventBus,item:t,options:e.options},null,8,[`eventBus`,`item`,`options`]))),128))])):F(``,!0)}}),bk={},xk={class:`section-flare`};function Sk(e,t){return D(),x(`div`,xk,[...t[0]||=[ne(`<div class="section-flare-item" data-v-5cebff7a></div><div class="section-flare-item" data-v-5cebff7a></div><div class="section-flare-item" data-v-5cebff7a></div><div class="section-flare-item" data-v-5cebff7a></div><div class="section-flare-item" data-v-5cebff7a></div><div class="section-flare-item" data-v-5cebff7a></div><div class="section-flare-item" data-v-5cebff7a></div><div class="section-flare-item" data-v-5cebff7a></div>`,8)]])}var Ck=X(bk,[[`render`,Sk],[`__scopeId`,`data-v-5cebff7a`]]),wk={class:`narrow-references-container`},Tk={key:2,class:`h-dvh`},Ek=E({__name:`Content`,props:{infoSectionId:{},documentSlug:{},options:{},document:{},clientDocument:{},authStore:{},xScalarDefaultClient:{},xScalarDefaultExample:{},items:{},expandedItems:{},eventBus:{},environment:{},headingSlugGenerator:{type:Function}},setup(e){let n=T(()=>Yr(Ka(e.options.hiddenClients))),r=T(()=>RC(i.value?.info?.[`x-scalar-sdk-installation`])),i=T(()=>ao(e.document)?e.document:void 0),a=T(()=>ao(e.clientDocument)?e.clientDocument:void 0),o=T(()=>ga(e.document)?e.document:void 0),s=T(()=>ga(e.clientDocument)?e.clientDocument:void 0),c=T(()=>Ei(e.document)),l=T(()=>ga(e.document)?e.document[`x-original-aas-version`]??e.document.asyncapi:i.value?.[`x-original-oas-version`]),d=T(()=>xS(e.document)),f=T(()=>xS(e.document?.info)),p=T(()=>jn(e.options?.servers??a.value?.servers,{baseServerUrl:e.options?.baseServerURL,documentUrl:e.clientDocument?.[`x-scalar-original-source-url`]})),m=T(()=>La(a.value??null,null,null,p.value)),h=T(()=>s.value?qy(s.value,{webSocketOnly:!1}):[]),g=T(()=>Jy(s.value??null,h.value)),_=T(()=>Zr(a.value?.components?.securitySchemes,e.options.authentication?.securitySchemes,e.authStore,a.value?.[`x-scalar-navigation`]?.name??``,e.options.oauth2RedirectUri));return ie(()=>{Dx()}),(a,s)=>(D(),x(O,null,[u(t(Ck)),b(`div`,wk,[P(a.$slots,`start`),u(t(yk),{documentSlug:e.documentSlug,eventBus:e.eventBus,options:e.options,viewName:`content.start`},null,8,[`documentSlug`,`eventBus`,`options`]),u(t(MC),{id:e.infoSectionId,documentDownloadType:e.options.documentDownloadType,documentExtensions:d.value,documentType:c.value,documentUrl:e.document?.[`x-scalar-original-source-url`],eventBus:e.eventBus,externalDocs:i.value?.externalDocs,headingSlugGenerator:e.headingSlugGenerator,info:e.document?.info,infoExtensions:f.value,layout:e.options.layout,specificationVersion:l.value},{selectors:k(()=>[u(t(so),null,{default:k(()=>[p.value?.length?(D(),N(t(IC),{key:0,class:`scalar-reference-intro-server scalar-client introduction-card-item text-base leading-normal [--scalar-address-bar-height:0px]`},{default:k(()=>[u(t(lw),{eventBus:e.eventBus,selectedServer:m.value,servers:p.value},null,8,[`eventBus`,`selectedServer`,`servers`])]),_:1})):F(``,!0)]),_:1}),u(t(so),null,{default:k(()=>[h.value.length?(D(),N(t(IC),{key:0,class:`scalar-reference-intro-server scalar-client introduction-card-item text-base leading-normal [--scalar-address-bar-height:0px]`},{default:k(()=>[u(t(Vx),{eventBus:e.eventBus,selectedServer:g.value,servers:h.value},null,8,[`eventBus`,`selectedServer`,`servers`])]),_:1})):F(``,!0)]),_:1}),u(t(so),null,{default:k(()=>[e.document&&!e.options.hideTestRequestButton?(D(),N(t(IC),{key:0,class:`scalar-reference-intro-auth scalar-client introduction-card-item leading-normal`},{default:k(()=>[u(t(CD),{authStore:e.authStore,document:e.clientDocument,environment:e.environment,eventBus:e.eventBus,options:e.options,securitySchemes:_.value,selectedServer:m.value},null,8,[`authStore`,`document`,`environment`,`eventBus`,`options`,`securitySchemes`,`selectedServer`])]),_:1})):F(``,!0)]),_:1}),u(t(so),null,{default:k(()=>[r.value.length?(D(),N(t(IC),{key:0,class:`introduction-card-item scalar-reference-intro-clients`},{default:k(()=>[u(t(ew),{class:`introduction-card-item scalar-reference-intro-clients`,eventBus:e.eventBus,selectedClient:e.xScalarDefaultClient,xScalarSdkInstallation:r.value},null,8,[`eventBus`,`selectedClient`,`xScalarSdkInstallation`])]),_:1})):n.value.length&&!o.value?(D(),N(t(IC),{key:1,class:`introduction-card-item scalar-reference-intro-clients`},{default:k(()=>[u(t(bS),{class:`introduction-card-item scalar-reference-intro-clients`,clientOptions:n.value,eventBus:e.eventBus,selectedClient:e.xScalarDefaultClient},null,8,[`clientOptions`,`eventBus`,`selectedClient`])]),_:1})):F(``,!0)]),_:1})]),_:1},8,[`id`,`documentDownloadType`,`documentExtensions`,`documentType`,`documentUrl`,`eventBus`,`externalDocs`,`headingSlugGenerator`,`info`,`infoExtensions`,`layout`,`specificationVersion`]),e.items.length&&i.value?(D(),N(hk,{key:0,authStore:e.authStore,clientOptions:n.value,document:i.value,entries:e.items,eventBus:e.eventBus,expandedItems:e.expandedItems,options:e.options,securitySchemes:_.value,selectedClient:e.xScalarDefaultClient,selectedExample:e.xScalarDefaultExample,selectedServer:m.value},null,8,[`authStore`,`clientOptions`,`document`,`entries`,`eventBus`,`expandedItems`,`options`,`securitySchemes`,`selectedClient`,`selectedExample`,`selectedServer`])):e.items.length&&o.value?(D(),N(t(SD),{key:1,document:o.value,entries:e.items,eventBus:e.eventBus,expandedItems:e.expandedItems,options:e.options},null,8,[`document`,`entries`,`eventBus`,`expandedItems`,`options`])):F(``,!0),u(t(yk),{documentSlug:e.documentSlug,eventBus:e.eventBus,options:e.options,viewName:`content.end`},null,8,[`documentSlug`,`eventBus`,`options`]),P(a.$slots,`end`),t(fx)?F(``,!0):(D(),x(`div`,Tk))])],64))}}),Dk={class:`flex h-(--scalar-header-height) w-full items-center border-b bg-inherit px-2`},Ok={key:1,class:`flex-1 text-sm font-medium whitespace-nowrap`},kk={class:`flex h-6 items-center gap-1 pl-1`},Ak=E({__name:`MobileHeader`,props:{breadcrumb:{},isSidebarOpen:{type:Boolean},showSidebar:{type:Boolean}},emits:[`toggleSidebar`],setup(e,{emit:n}){let{translate:r}=Z(),i=n,a=Ir({base:`lg:hidden items-center bg-b-1 sticky top-(--scalar-custom-header-height,0) z-10 [grid-area:header]`,variants:{open:{true:`h-(--refs-sidebar-height) custom-scrollbar flex flex-col z-50`}}});return(n,o)=>(D(),x(O,null,[P(n.$slots,`sidebar`,j(he({sidebarClasses:`hidden lg:flex sticky top-(--refs-header-height) h-(--refs-sidebar-height) w-(--refs-sidebar-width) [grid-area:navigation]`}))),b(`div`,{class:C([`t-doc__header`,t(a)({open:e.isSidebarOpen})])},[b(`header`,Dk,[e.showSidebar?(D(),N(t(ba),{key:0,icon:e.isSidebarOpen?t(en):t(d_),label:e.isSidebarOpen?t(r)(`navigation.closeMenu`):t(r)(`navigation.openMenu`),size:`md`,onClick:o[0]||=e=>i(`toggleSidebar`)},null,8,[`icon`,`label`])):F(``,!0),e.showSidebar?(D(),x(`span`,Ok,A(e.breadcrumb),1)):P(n.$slots,`search`,{key:2}),b(`div`,kk,[P(n.$slots,`actions`)])]),e.isSidebarOpen?P(n.$slots,`sidebar`,j(w({key:0},{sidebarClasses:`overflow-y-auto custom-scrollbar min-h-0 flex-1 w-full border-none`}))):F(``,!0)],2)],64))}}),jk={class:`text-c-2 hover:text-c-1 hover:bg-b-2 flex items-center gap-1 rounded px-2 py-2.25 text-base leading-none`,type:`button`},Mk={class:`custom-scroll bg-b-1 flex flex-col gap-7 rounded-lg p-7 pb-6`},Nk={class:`text-c-2 flex items-center justify-center gap-1 p-2 text-sm`},Pk=E({__name:`ApiReferenceToolbarPopover`,setup(e){let{translate:n}=Z();return(e,r)=>(D(),N(t(Si),{class:`max-h-[inherit] max-w-[inherit] p-0 text-base`,placement:`bottom-end`,teleport:``},{default:k(({open:n})=>[P(e.$slots,`button`,{open:n},()=>[b(`button`,jk,[P(e.$slots,`label`),u(t(En),{class:C([`size-3`,{"rotate-180":n}])},null,8,[`class`])])])]),popover:k(r=>[b(`div`,Mk,[P(e.$slots,`default`,j(he(r)))]),b(`div`,Nk,[u(t(ra),{class:`size-3.5 shrink-0`}),b(`div`,null,[P(e.$slots,`info`,{},()=>[d(A(t(n)(`developerTools.localhostOnly`)),1)])])])]),backdrop:k(()=>[u(t(On),{class:`bg-b-2 rounded-lg`})]),_:3}))}}),Fk={class:`text-c-2 hover:text-c-1 hover:bg-b-2 ml-auto flex items-center gap-1 rounded px-2 py-2.25 text-base leading-none`,type:`button`},Ik={class:`-m-2 flex flex-col gap-2 leading-relaxed`},Lk={class:`bg-b-2 inline-flex items-center gap-0.5 rounded border px-1 py-0.5 text-sm`},Rk=`showDeveloperTools: "never"`,zk=E({__name:`ApiReferenceToolbarTitle`,setup(e){let{copyToClipboard:n}=Bt(),{translate:r}=Z();return(e,i)=>(D(),N(Pk,{class:`w-120`,placement:`bottom-start`},{button:k(()=>[b(`button`,Fk,[u(t(ra)),d(` `+A(t(r)(`developerTools.title`)),1)])]),info:k(()=>[d(A(t(r)(`developerTools.localhostOnly`)),1)]),default:k(()=>[b(`div`,Ik,[b(`div`,null,A(t(r)(`developerTools.intro`)),1),b(`div`,null,[d(A(t(r)(`developerTools.disableToolbarBefore`))+` `,1),b(`div`,Lk,[b(`code`,{class:`font-code`},A(Rk)),u(t(ba),{class:`-m-1 p-1.25`,icon:t(Xn),label:t(r)(`actions.copyToClipboard`),size:`sm`,onClick:i[0]||=e=>t(n)(Rk)},null,8,[`icon`,`label`])]),d(` `+A(t(r)(`developerTools.disableToolbarAfter`)),1)])])]),_:1}))}}),Bk={},Vk={class:`text-c-3 [&_code]:font-code [&_a:hover]:text-c-1 text-center leading-normal [&_a]:underline`};function Hk(e,t){return D(),x(`p`,Vk,[P(e.$slots,`default`)])}var Uk=X(Bk,[[`render`,Hk]]),Wk=E({__name:`ApiReferenceToolbarRegisterButton`,props:s({workspace:{},externalUrls:{},sdks:{default:()=>[]}},{url:{},urlModifiers:{}}),emits:[`update:url`],setup(e){let n=f(e,`url`),{toast:r}=qn(),i=da(),{translate:a}=Z();function o(t){let n=new URL(`${e.externalUrls.dashboardUrl}/register`);n.searchParams.set(`url`,t),e.sdks.forEach(e=>n.searchParams.append(`sdk`,e)),window.open(n.toString(),`_blank`)}async function s(){if(i.isLoading||!e.workspace)return;if(n.value){o(n.value);return}i.start();let t=e.workspace.exportActiveDocument(`json`);if(!t){r(a(`developerTools.unableToExportDocument`),`error`),await i.invalidate();return}try{n.value=await hb(t,e.externalUrls),await i.validate(),o(n.value),await M(),await i.clear()}catch(e){r(e instanceof Error?e.message:a(`developerTools.unknownError`),`error`),await i.invalidate()}}return(e,n)=>(D(),N(t(oo),{class:`h-auto p-2.5`,loader:t(i),onClick:s},{default:k(()=>[P(e.$slots,`default`,{},()=>[d(A(t(a)(`developerTools.generate`)),1)])]),_:3},8,[`loader`]))}}),Gk={class:`text-c-2 mb-2 grid grid-cols-2 gap-2.5 font-medium`},Kk=E({__name:`ApiReferenceToolbarShareRegister`,props:{workspace:{},externalUrls:{}},setup(e){let{translate:n}=Z(),r=[{icon:v_,labelKey:`developerTools.passwordProtection`},{icon:Wg,labelKey:`developerTools.customDomains`},{icon:Yh,labelKey:`developerTools.freeFormContent`},{icon:gg,labelKey:`developerTools.cdnInfrastructure`},{icon:Lg,labelKey:`developerTools.pullFromGitHub`},{icon:Cg,labelKey:`developerTools.markdownMdx`},{icon:Pv,labelKey:`developerTools.spectralLinting`},{icon:ng,labelKey:`developerTools.jsonSchemaHosting`},{icon:ov,labelKey:`developerTools.askAi`},{icon:K_,labelKey:`developerTools.mcpServers`}];return(i,a)=>(D(),x(O,null,[b(`ul`,Gk,[(D(),x(O,null,S(r,e=>b(`li`,{key:e.labelKey,class:`flex items-center gap-2`},[(D(),N(me(e.icon),{class:`text-c-3 size-3.5`,weight:`bold`})),d(` `+A(t(n)(e.labelKey)),1)])),64))]),u(Wk,{externalUrls:e.externalUrls,workspace:e.workspace},{default:k(()=>[d(A(t(n)(`developerTools.deployOnScalar`)),1)]),_:1},8,[`externalUrls`,`workspace`]),u(Uk,null,{default:k(()=>[d(A(t(n)(`developerTools.deployFree`))+` `,1),a[0]||=b(`br`,null,null,-1),d(` `+A(t(n)(`developerTools.additionalFeaturesMightRequire`))+` `,1),a[1]||=b(`span`,null,[b(`a`,{href:`https://scalar.com/products/docs/getting-started`,target:`_blank`},` Scalar Pro. `)],-1)]),_:1})],64))}}),qk={key:0,class:`flex items-start justify-between gap-2 text-sm/none text-c-1 whitespace-nowrap font-medium`},Jk=E({inheritAttrs:!1,__name:`ScalarFormField`,props:{is:{default:`label`}},setup(e){let{cx:n}=Ut();return(r,i)=>(D(),N(me(e.is),j(he(t(n)(`flex flex-col gap-1.5 rounded`))),{default:k(()=>[r.$slots.label?(D(),x(`div`,qk,[P(r.$slots,`label`)])):F(``,!0),P(r.$slots,`default`),r.$slots.below?(D(),x(`span`,{key:1,class:C(t(n)(`-mt-1.5 text-sm`))},[P(r.$slots,`below`)],2)):F(``,!0)]),_:3},16))}}),Yk=E({inheritAttrs:!1,__name:`ScalarFormInputGroup`,props:{is:{default:`div`}},setup(e){let{cx:n}=Ut();return lr(),(r,i)=>(D(),N(me(e.is),j(he(t(n)(`flex flex-col border rounded divide-y`))),{default:k(()=>[P(r.$slots,`default`)]),_:3},16))}}),Xk={},Zk={class:`flex min-w-0 flex-col gap-3`},Qk={class:`contents`},$k={class:`text-base font-medium text-c-1`};function eA(e,t,n,r,i,a){return D(),x(`fieldset`,Zk,[b(`legend`,Qk,[b(`span`,$k,[P(e.$slots,`label`)])]),P(e.$slots,`default`)])}var tA=Or(Xk,[[`render`,eA]]),nA={class:`text-c-2 mb-2 leading-normal`},rA=E({__name:`DeployApiReference`,props:{workspace:{},externalUrls:{}},setup(e){let{translate:n}=Z();return(r,i)=>(D(),N(Pk,{class:`w-120`},{label:k(()=>[d(A(t(n)(`developerTools.deploy`)),1)]),default:k(()=>[u(t(tA),null,{label:k(()=>[d(A(t(n)(`developerTools.scalarDocs`)),1)]),default:k(()=>[b(`p`,nA,A(t(n)(`developerTools.deployDescription`)),1),u(Kk,{externalUrls:e.externalUrls,workspace:e.workspace},null,8,[`externalUrls`,`workspace`])]),_:1})]),_:1}))}}),iA=E({__name:`ScalarCheckbox`,props:{selected:{type:Boolean},indeterminate:{type:Boolean,default:!1},type:{default:`checkbox`}},setup(e){let n=e;return(e,r)=>(D(),x(`div`,{class:C([`flex size-4 items-center justify-center p-0.75`,[n.selected||n.indeterminate&&n.type===`checkbox`?`bg-c-accent text-b-1`:`text-transparent shadow-border`,n.type===`checkbox`?`rounded`:`rounded-full`]])},[n.selected?(D(),N(t(sr),{key:0,class:`size-3`,weight:`bold`})):n.indeterminate&&n.type===`checkbox`?(D(),N(t(M_),{key:1,"aria-hidden":`true`,class:`size-3`,weight:`bold`})):F(``,!0)],2))}}),aA={class:`flex-1 text-left min-w-0 truncate`},oA=[`type`],sA=E({inheritAttrs:!1,__name:`ScalarCheckboxInput`,props:s({type:{default:`checkbox`},indeterminate:{type:Boolean,default:!1}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=e,r=f(e,`modelValue`),{stylingAttrsCx:i,otherAttrs:a}=Ut();return(e,o)=>(D(),N(t(Qn),w({is:`label`},t(i)(`cursor-pointer gap-2 hover:bg-b-2`,{"text-c-1":r.value})),{default:k(()=>[u(iA,{class:`shrink-0`,indeterminate:n.indeterminate&&n.type===`checkbox`,selected:r.value,type:n.type},null,8,[`indeterminate`,`selected`,`type`]),b(`div`,aA,[P(e.$slots,`default`)]),y(b(`input`,w({ref:`inputEl`,"onUpdate:modelValue":o[0]||=e=>r.value=e,class:`sr-only`,type:n.type},t(a)),null,16,oA),[[ge,r.value]])]),_:3},16))}}),cA=E({__name:`ScalarCheckboxRadioGroup`,props:s({options:{default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=f(e,`modelValue`),r=v();return(i,a)=>(D(),N(t(Yk),null,{default:k(()=>[(D(!0),x(O,null,S(e.options,e=>(D(),N(sA,{key:e.value,modelValue:n.value?.value===e.value,name:t(r),type:`radio`,value:e.value,"onUpdate:modelValue":t=>n.value=t?e:void 0},{default:k(()=>[d(A(e.label),1)]),_:2},1032,[`modelValue`,`name`,`value`,`onUpdate:modelValue`]))),128))]),_:1}))}}),lA=E({__name:`ApiReferenceToolbarConfigLayout`,props:{modelValue:{},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let n=f(e,`modelValue`),{translate:r}=Z(),i=T(()=>[{label:r(`developerTools.layoutModern`),value:`modern`},{label:r(`developerTools.layoutClassic`),value:`classic`}]),a=T({get:()=>i.value.find(e=>e.value===n.value)??i.value[0],set:e=>n.value=e.value});return(e,n)=>(D(),N(t(cA),{modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,options:i.value},null,8,[`modelValue`,`options`]))}}),uA=[`aria-checked`,`aria-disabled`],dA={key:0,class:`sr-only`},fA=E({__name:`ScalarToggle`,props:s({disabled:{type:Boolean},label:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=e,r=f(e,`modelValue`);function i(){n.disabled||(r.value=!r.value)}let a=Ir({base:`relative h-3.5 min-w-6 w-6 cursor-pointer rounded-full bg-b-3 transition-colors duration-300`,variants:{checked:{true:`bg-c-accent`},disabled:{true:`cursor-not-allowed opacity-40`}}});return(n,o)=>(D(),x(`button`,{"aria-checked":r.value,"aria-disabled":e.disabled,class:C(t(bn)(t(a)({checked:r.value,disabled:e.disabled}))),role:`switch`,type:`button`,onClick:i},[b(`div`,{class:C([`absolute left-px top-px flex h-3 w-3 items-center justify-center rounded-full bg-b-1 text-c-accent transition-transform duration-300`,{"translate-x-2.5":r.value}])},null,2),e.label?(D(),x(`span`,dA,A(e.label),1)):F(``,!0)],10,uA))}}),pA={class:`flex-1 text-left min-w-0 truncate`},mA=E({inheritAttrs:!1,__name:`ScalarToggleInput`,props:{modelValue:{type:Boolean},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let n=f(e,`modelValue`),{stylingAttrsCx:r,otherAttrs:i}=Ut();return(e,a)=>(D(),N(t(Qn),w({is:`label`},t(r)(`cursor-pointer gap-2 hover:bg-b-2`,{"text-c-1":n.value})),{default:k(()=>[b(`div`,pA,[P(e.$slots,`default`)]),u(fA,w({modelValue:n.value,"onUpdate:modelValue":a[0]||=e=>n.value=e,class:`shrink-0`},t(i)),null,16,[`modelValue`])]),_:3},16))}}),hA=E({__name:`ApiReferenceToolbarConfigLayoutOptions`,props:s({configuration:{}},{modelValue:{default:{}},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=f(e,`modelValue`),{translate:r}=Z();function i(t,r=!1){return n.value[t]??e.configuration?.[t]??r}function a(e,t,r=!1){t===r?n.value=Object.fromEntries(Object.entries(n.value).filter(([t])=>e!==t)):n.value={...n.value,[e]:t}}let o=T(()=>e.configuration?.modelsSectionLabel??`Models`),s=T(()=>r(`developerTools.expandAll`,{label:o.value})),c=T(()=>r(`developerTools.hideModels`,{label:o.value}));return(e,n)=>(D(),N(t(Yk),null,{default:k(()=>[u(t(mA),{modelValue:i(`showSidebar`,!0),"onUpdate:modelValue":n[0]||=e=>a(`showSidebar`,!!e,!0)},{default:k(()=>[d(A(t(r)(`developerTools.showSidebar`)),1)]),_:1},8,[`modelValue`]),u(t(mA),{modelValue:i(`defaultOpenFirstTag`,!0),"onUpdate:modelValue":n[1]||=e=>a(`defaultOpenFirstTag`,!!e,!0)},{default:k(()=>[d(A(t(r)(`developerTools.defaultOpenFirstTag`)),1)]),_:1},8,[`modelValue`]),u(t(mA),{modelValue:i(`defaultOpenAllTags`),"onUpdate:modelValue":n[2]||=e=>a(`defaultOpenAllTags`,!!e)},{default:k(()=>[d(A(t(r)(`developerTools.defaultOpenAllTags`)),1)]),_:1},8,[`modelValue`]),u(t(mA),{modelValue:i(`expandAllModelSections`),"onUpdate:modelValue":n[3]||=e=>a(`expandAllModelSections`,!!e)},{default:k(()=>[d(A(s.value),1)]),_:1},8,[`modelValue`]),u(t(mA),{modelValue:i(`expandAllResponses`),"onUpdate:modelValue":n[4]||=e=>a(`expandAllResponses`,!!e)},{default:k(()=>[d(A(t(r)(`developerTools.expandAllResponses`)),1)]),_:1},8,[`modelValue`]),u(t(mA),{modelValue:i(`hideClientButton`),"onUpdate:modelValue":n[5]||=e=>a(`hideClientButton`,!!e)},{default:k(()=>[d(A(t(r)(`developerTools.hideClientButton`)),1)]),_:1},8,[`modelValue`]),u(t(mA),{modelValue:i(`hideDarkModeToggle`),"onUpdate:modelValue":n[6]||=e=>a(`hideDarkModeToggle`,!!e)},{default:k(()=>[d(A(t(r)(`developerTools.hideDarkModeToggle`)),1)]),_:1},8,[`modelValue`]),u(t(mA),{modelValue:i(`hideModels`),"onUpdate:modelValue":n[7]||=e=>a(`hideModels`,!!e)},{default:k(()=>[d(A(c.value),1)]),_:1},8,[`modelValue`]),u(t(mA),{modelValue:i(`hideSearch`),"onUpdate:modelValue":n[8]||=e=>a(`hideSearch`,!!e)},{default:k(()=>[d(A(t(r)(`developerTools.hideSearch`)),1)]),_:1},8,[`modelValue`]),u(t(mA),{modelValue:i(`showOperationId`),"onUpdate:modelValue":n[9]||=e=>a(`showOperationId`,!!e)},{default:k(()=>[d(A(t(r)(`developerTools.showOperationId`)),1)]),_:1},8,[`modelValue`]),u(t(mA),{modelValue:i(`hideTestRequestButton`),"onUpdate:modelValue":n[10]||=e=>a(`hideTestRequestButton`,!!e)},{default:k(()=>[d(A(t(r)(`developerTools.hideTestRequestButton`)),1)]),_:1},8,[`modelValue`])]),_:1}))}}),gA=`/* Inter (--scalar-font) */
228
- /* cyrillic-ext */
229
- @font-face {
230
- font-family: "Inter";
231
- font-style: normal;
232
- font-weight: 100 900;
233
- font-display: swap;
234
- src: url(https://fonts.scalar.com/inter-cyrillic-ext.woff2) format("woff2");
235
- unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
236
- }
237
- /* cyrillic */
238
- @font-face {
239
- font-family: "Inter";
240
- font-style: normal;
241
- font-weight: 100 900;
242
- font-display: swap;
243
- src: url(https://fonts.scalar.com/inter-cyrillic.woff2) format("woff2");
244
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
245
- }
246
- /* greek-ext */
247
- @font-face {
248
- font-family: "Inter";
249
- font-style: normal;
250
- font-weight: 100 900;
251
- font-display: swap;
252
- src: url(https://fonts.scalar.com/inter-greek-ext.woff2) format("woff2");
253
- unicode-range: U+1F00-1FFF;
254
- }
255
- /* greek */
256
- @font-face {
257
- font-family: "Inter";
258
- font-style: normal;
259
- font-weight: 100 900;
260
- font-display: swap;
261
- src: url(https://fonts.scalar.com/inter-greek.woff2) format("woff2");
262
- unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
263
- }
264
- /* vietnamese */
265
- @font-face {
266
- font-family: "Inter";
267
- font-style: normal;
268
- font-weight: 100 900;
269
- font-display: swap;
270
- src: url(https://fonts.scalar.com/inter-vietnamese.woff2) format("woff2");
271
- unicode-range:
272
- U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
273
- U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
274
- U+0329, U+1EA0-1EF9, U+20AB;
275
- }
276
- /* latin-ext */
277
- @font-face {
278
- font-family: "Inter";
279
- font-style: normal;
280
- font-weight: 100 900;
281
- font-display: swap;
282
- src: url(https://fonts.scalar.com/inter-latin-ext.woff2) format("woff2");
283
- unicode-range:
284
- U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
285
- U+A720-A7FF;
286
- }
287
- /* latin */
288
- @font-face {
289
- font-family: "Inter";
290
- font-style: normal;
291
- font-weight: 100 900;
292
- font-display: swap;
293
- src: url(https://fonts.scalar.com/inter-latin.woff2) format("woff2");
294
- unicode-range:
295
- U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
296
- U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
297
- U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
298
- }
299
- /* keyboard symbols (←↑→↓↵⇧⇪⌘⌥) */
300
- @font-face {
301
- font-family: "Inter";
302
- font-style: normal;
303
- font-weight: 100 900;
304
- font-display: swap;
305
- src: url(https://fonts.scalar.com/inter-symbols.woff2) format("woff2");
306
- unicode-range: U+2190-2193, U+21B5, U+21E7, U+21EA, U+2318, U+2325;
307
- }
308
- /* JetBrains Mono (--scalar-font-code) */
309
- /* cyrillic-ext */
310
- @font-face {
311
- font-family: "JetBrains Mono";
312
- font-style: normal;
313
- font-weight: 400;
314
- src: url(https://fonts.scalar.com/mono-cyrillic-ext.woff2) format("woff2");
315
- unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
316
- }
317
- /* cyrillic */
318
- @font-face {
319
- font-family: "JetBrains Mono";
320
- font-style: normal;
321
- font-weight: 400;
322
- src: url(https://fonts.scalar.com/mono-cyrillic.woff2) format("woff2");
323
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
324
- }
325
- /* greek */
326
- @font-face {
327
- font-family: "JetBrains Mono";
328
- font-style: normal;
329
- font-weight: 400;
330
- src: url(https://fonts.scalar.com/mono-greek.woff2) format("woff2");
331
- unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
332
- }
333
- /* vietnamese */
334
- @font-face {
335
- font-family: "JetBrains Mono";
336
- font-style: normal;
337
- font-weight: 400;
338
- src: url(https://fonts.scalar.com/mono-vietnamese.woff2) format("woff2");
339
- unicode-range:
340
- U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
341
- U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
342
- U+0329, U+1EA0-1EF9, U+20AB;
343
- }
344
- /* latin-ext */
345
- @font-face {
346
- font-family: "JetBrains Mono";
347
- font-style: normal;
348
- font-weight: 400;
349
- src: url(https://fonts.scalar.com/mono-latin-ext.woff2) format("woff2");
350
- unicode-range:
351
- U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
352
- U+A720-A7FF;
353
- }
354
- /* latin */
355
- @font-face {
356
- font-family: "JetBrains Mono";
357
- font-style: normal;
358
- font-weight: 400;
359
- src: url(https://fonts.scalar.com/mono-latin.woff2) format("woff2");
360
- unicode-range:
361
- U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
362
- U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
363
- U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
364
- }
365
- `,_A=`/* basic theme */
366
- :root {
367
- --scalar-text-decoration: underline;
368
- --scalar-text-decoration-hover: underline;
369
- }
370
-
371
- .dark-mode {
372
- --scalar-background-1: #131313;
373
- --scalar-background-2: #1d1d1d;
374
- --scalar-background-3: #272727;
375
- --scalar-background-card: #1d1d1d;
376
-
377
- --scalar-color-1: rgba(255, 255, 255, 0.9);
378
- --scalar-color-2: rgba(255, 255, 255, 0.62);
379
- --scalar-color-3: rgba(255, 255, 255, 0.44);
380
-
381
- --scalar-color-accent: var(--scalar-color-1);
382
- --scalar-background-accent: var(--scalar-background-3);
383
-
384
- --scalar-border-color: #2a2b2a;
385
- }
386
-
387
- .light-mode,
388
- .light-mode .dark-mode {
389
- --scalar-background-1: #f9f9f9;
390
- --scalar-background-2: #f1f1f1;
391
- --scalar-background-3: #e7e7e7;
392
- --scalar-background-card: #fff;
393
-
394
- --scalar-color-1: #1b1b1b;
395
- --scalar-color-2: #757575;
396
- --scalar-color-3: #8e8e8e;
397
-
398
- --scalar-color-accent: var(--scalar-color-1);
399
- --scalar-background-accent: var(--scalar-background-3);
400
-
401
- --scalar-border-color: rgba(0, 0, 0, 0.1);
402
- }
403
-
404
- /* Document Sidebar */
405
- .t-doc__sidebar {
406
- --scalar-color-green: var(--scalar-color-1);
407
- --scalar-color-red: var(--scalar-color-1);
408
- --scalar-color-yellow: var(--scalar-color-1);
409
- --scalar-color-blue: var(--scalar-color-1);
410
- --scalar-color-orange: var(--scalar-color-1);
411
- --scalar-color-purple: var(--scalar-color-1);
412
- }
413
-
414
- .light-mode .t-doc__sidebar,
415
- .dark-mode .t-doc__sidebar {
416
- --scalar-sidebar-background-1: var(--scalar-background-1);
417
- --scalar-sidebar-color-1: var(--scalar-color-1);
418
- --scalar-sidebar-color-2: var(--scalar-color-2);
419
- --scalar-sidebar-border-color: var(--scalar-border-color);
420
-
421
- --scalar-sidebar-item-hover-background: var(--scalar-background-2);
422
- --scalar-sidebar-item-hover-color: currentColor;
423
-
424
- --scalar-sidebar-item-active-background: var(--scalar-background-accent);
425
- --scalar-sidebar-color-active: var(--scalar-color-accent);
426
-
427
- --scalar-sidebar-search-background: transparent;
428
- --scalar-sidebar-search-color: var(--scalar-color-3);
429
- --scalar-sidebar-search-border-color: var(--scalar-border-color);
430
- }
431
- /* advanced */
432
- .light-mode .dark-mode,
433
- .light-mode {
434
- --scalar-color-green: #069061;
435
- --scalar-color-red: #ef0006;
436
- --scalar-color-yellow: #edbe20;
437
- --scalar-color-blue: #0082d0;
438
- --scalar-color-orange: #fb892c;
439
- --scalar-color-purple: #5203d1;
440
-
441
- --scalar-button-1: rgba(0, 0, 0, 1);
442
- --scalar-button-1-hover: rgba(0, 0, 0, 0.8);
443
- --scalar-button-1-color: #fff;
444
- }
445
- .dark-mode {
446
- --scalar-color-green: #00b648;
447
- --scalar-color-red: #dd2f2c;
448
- --scalar-color-yellow: #ffc90d;
449
- --scalar-color-blue: #4eb3ec;
450
- --scalar-color-orange: #ff8d4d;
451
- --scalar-color-purple: #b191f9;
452
-
453
- --scalar-button-1: rgba(255, 255, 255, 1);
454
- --scalar-button-1-hover: rgba(255, 255, 255, 0.9);
455
- --scalar-button-1-color: black;
456
- }
457
-
458
- .scalar-api-client__item,
459
- .scalar-card,
460
- .dark-mode .dark-mode.scalar-card {
461
- --scalar-background-1: var(--scalar-background-card);
462
- --scalar-background-2: var(--scalar-background-1);
463
- --scalar-background-3: var(--scalar-background-1);
464
- }
465
- .dark-mode .dark-mode.scalar-card {
466
- --scalar-background-3: var(--scalar-background-3);
467
- }
468
-
469
- .light-mode *::selection {
470
- background-color: color-mix(in srgb, var(--scalar-color-blue), transparent 70%);
471
- }
472
- .dark-mode *::selection {
473
- background-color: color-mix(in srgb, var(--scalar-color-blue), transparent 50%);
474
- }
475
- `,vA=`/* basic theme */
476
- :root {
477
- --scalar-text-decoration: underline;
478
- --scalar-text-decoration-hover: underline;
479
- }
480
- .light-mode {
481
- --scalar-background-1: #f0f2f5;
482
- --scalar-background-2: #eaecf0;
483
- --scalar-background-3: #e0e2e6;
484
- --scalar-border-color: rgb(213 213 213);
485
-
486
- --scalar-color-1: rgb(9, 9, 11);
487
- --scalar-color-2: rgb(113, 113, 122);
488
- --scalar-color-3: rgba(25, 25, 28, 0.5);
489
-
490
- --scalar-color-accent: var(--scalar-color-1);
491
- --scalar-background-accent: #8ab4f81f;
492
- }
493
- .light-mode .scalar-card.dark-mode,
494
- .dark-mode {
495
- --scalar-background-1: #000e23;
496
- --scalar-background-2: #01132e;
497
- --scalar-background-3: #03193b;
498
- --scalar-border-color: #2e394c;
499
-
500
- --scalar-color-1: #fafafa;
501
- --scalar-color-2: rgb(161, 161, 170);
502
- --scalar-color-3: rgba(255, 255, 255, 0.533);
503
-
504
- --scalar-color-accent: var(--scalar-color-1);
505
- --scalar-background-accent: #8ab4f81f;
506
-
507
- --scalar-code-language-color-supersede: var(--scalar-color-1);
508
- }
509
- /* Document Sidebar */
510
- .light-mode .t-doc__sidebar,
511
- .dark-mode .t-doc__sidebar {
512
- --scalar-sidebar-background-1: var(--scalar-background-1);
513
- --scalar-sidebar-color-1: var(--scalar-color-1);
514
- --scalar-sidebar-color-2: var(--scalar-color-2);
515
- --scalar-sidebar-border-color: var(--scalar-border-color);
516
-
517
- --scalar-sidebar-item-hover-background: var(--scalar-background-2);
518
- --scalar-sidebar-item-hover-color: currentColor;
519
-
520
- --scalar-sidebar-item-active-background: var(--scalar-background-3);
521
- --scalar-sidebar-color-active: var(--scalar-color-accent);
522
-
523
- --scalar-sidebar-search-background: rgba(255, 255, 255, 0.1);
524
- --scalar-sidebar-search-border-color: var(--scalar-border-color);
525
- --scalar-sidebar-search-color: var(--scalar-color-3);
526
- z-index: 1;
527
- }
528
- .light-mode .t-doc__sidebar {
529
- --scalar-sidebar-search-background: white;
530
- }
531
- /* advanced */
532
- .light-mode {
533
- --scalar-color-green: #069061;
534
- --scalar-color-red: #ef0006;
535
- --scalar-color-yellow: #edbe20;
536
- --scalar-color-blue: #0082d0;
537
- --scalar-color-orange: #fb892c;
538
- --scalar-color-purple: #5203d1;
539
-
540
- --scalar-button-1: rgba(0, 0, 0, 1);
541
- --scalar-button-1-hover: rgba(0, 0, 0, 0.8);
542
- --scalar-button-1-color: #fff;
543
- }
544
- .dark-mode {
545
- --scalar-color-green: rgba(69, 255, 165, 0.823);
546
- --scalar-color-red: #ff8589;
547
- --scalar-color-yellow: #ffcc4d;
548
- --scalar-color-blue: #6bc1fe;
549
- --scalar-color-orange: #f98943;
550
- --scalar-color-purple: #b191f9;
551
-
552
- --scalar-button-1: rgba(255, 255, 255, 1);
553
- --scalar-button-1-hover: rgba(255, 255, 255, 0.9);
554
- --scalar-button-1-color: black;
555
- }
556
- /* Custom theme */
557
- /* Document header */
558
- @keyframes headerbackground {
559
- from {
560
- background: transparent;
561
- backdrop-filter: none;
562
- }
563
- to {
564
- background: var(--scalar-header-background-1);
565
- backdrop-filter: blur(12px);
566
- }
567
- }
568
-
569
- .light-mode .t-doc__header,
570
- .dark-mode .t-doc__header {
571
- animation: headerbackground forwards;
572
- animation-timeline: scroll();
573
- animation-range: 0px 200px;
574
- }
575
-
576
- /* Document Layout */
577
- .dark-mode .t-doc .layout-content {
578
- background: transparent;
579
- }
580
-
581
- .dark-mode h2.t-editor__heading,
582
- .dark-mode .t-editor__page-title h1,
583
- .dark-mode h1.section-header:not(::selection),
584
- .dark-mode .markdown h1,
585
- .dark-mode .markdown h2,
586
- .dark-mode .markdown h3,
587
- .dark-mode .markdown h4,
588
- .dark-mode .markdown h5,
589
- .dark-mode .markdown h6 {
590
- -webkit-text-fill-color: transparent;
591
- background-image: linear-gradient(to right bottom, rgb(255, 255, 255) 30%, rgba(255, 255, 255, 0.38));
592
- -webkit-background-clip: text;
593
- background-clip: text;
594
- }
595
- /* Hero Section Flare */
596
- .section-flare-item:nth-of-type(1) {
597
- --c1: #ffffff;
598
- --c2: #babfd8;
599
- --c3: #2e8bb2;
600
- --c4: #1a8593;
601
- --c5: #0a143e;
602
- --c6: #0a0f52;
603
- --c7: #2341b8;
604
-
605
- --solid: var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6), var(--c7);
606
- --solid-wrap: var(--solid), var(--c1);
607
- --trans:
608
- var(--c1), transparent, var(--c2), transparent, var(--c3),
609
- transparent, var(--c4), transparent, var(--c5), transparent, var(--c6),
610
- transparent, var(--c7);
611
- --trans-wrap: var(--trans), transparent, var(--c1);
612
-
613
- background:
614
- radial-gradient(circle, var(--trans)), conic-gradient(from 180deg, var(--trans-wrap)),
615
- radial-gradient(circle, var(--trans)), conic-gradient(var(--solid-wrap));
616
- width: 70vw;
617
- height: 700px;
618
- border-radius: 50%;
619
- filter: blur(100px);
620
- z-index: 0;
621
- right: 0;
622
- position: absolute;
623
- transform: rotate(-45deg);
624
- top: -300px;
625
- opacity: 0.3;
626
- }
627
- .section-flare-item:nth-of-type(3) {
628
- --star-color: #6b9acc;
629
- --star-color2: #446b8d;
630
- --star-color3: #3e5879;
631
- background-image:
632
- radial-gradient(2px 2px at 20px 30px, var(--star-color2), rgba(0, 0, 0, 0)),
633
- radial-gradient(2px 2px at 40px 70px, var(--star-color), rgba(0, 0, 0, 0)),
634
- radial-gradient(2px 2px at 50px 160px, var(--star-color3), rgba(0, 0, 0, 0)),
635
- radial-gradient(2px 2px at 90px 40px, var(--star-color), rgba(0, 0, 0, 0)),
636
- radial-gradient(2px 2px at 130px 80px, var(--star-color), rgba(0, 0, 0, 0)),
637
- radial-gradient(2px 2px at 160px 120px, var(--star-color3), rgba(0, 0, 0, 0));
638
- background-repeat: repeat;
639
- background-size: 200px 200px;
640
- width: 100%;
641
- height: 100%;
642
- mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);
643
- }
644
- .section-flare {
645
- top: -150px !important;
646
- height: 100vh;
647
- background: linear-gradient(#000, var(--scalar-background-1));
648
- width: 100vw;
649
- overflow-x: hidden;
650
- }
651
- .light-mode .section-flare {
652
- display: none;
653
- }
654
- .light-mode .scalar-card {
655
- --scalar-background-1: #fff;
656
- --scalar-background-2: #fff;
657
- --scalar-background-3: #fff;
658
- }
659
-
660
- *::selection {
661
- background-color: color-mix(in srgb, var(--scalar-color-blue), transparent 60%);
662
- }
663
-
664
- @media (max-width: 1000px) {
665
- .light-mode .t-doc__sidebar,
666
- .dark-mode .t-doc__sidebar {
667
- --scalar-sidebar-background-1: var(--scalar-background-1);
668
- }
669
- .light-mode .t-doc__header,
670
- .dark-mode .t-doc__header {
671
- animation: none;
672
- background: var(--scalar-header-background-1);
673
- backdrop-filter: blur(12px);
674
- }
675
- }
676
- `,yA=`/* basic theme */
677
- :root {
678
- --scalar-text-decoration: underline;
679
- --scalar-text-decoration-hover: underline;
680
- }
681
- .light-mode {
682
- --scalar-color-1: rgb(9, 9, 11);
683
- --scalar-color-2: rgb(113, 113, 122);
684
- --scalar-color-3: rgba(25, 25, 28, 0.5);
685
- --scalar-color-accent: var(--scalar-color-1);
686
-
687
- --scalar-background-1: #fff;
688
- --scalar-background-2: #f4f4f5;
689
- --scalar-background-3: #e3e3e6;
690
- --scalar-background-accent: #8ab4f81f;
691
-
692
- --scalar-border-color: rgb(228, 228, 231);
693
- --scalar-code-language-color-supersede: var(--scalar-color-1);
694
- }
695
- .dark-mode {
696
- --scalar-color-1: #fafafa;
697
- --scalar-color-2: rgb(161, 161, 170);
698
- --scalar-color-3: rgba(255, 255, 255, 0.533);
699
- --scalar-color-accent: var(--scalar-color-1);
700
-
701
- --scalar-background-1: #09090b;
702
- --scalar-background-2: #18181b;
703
- --scalar-background-3: #2c2c30;
704
- --scalar-background-accent: #8ab4f81f;
705
-
706
- --scalar-border-color: rgba(255, 255, 255, 0.16);
707
- --scalar-code-language-color-supersede: var(--scalar-color-1);
708
- }
709
-
710
- /* Document Sidebar */
711
- .light-mode .t-doc__sidebar,
712
- .dark-mode .t-doc__sidebar {
713
- --scalar-sidebar-background-1: var(--scalar-background-1);
714
- --scalar-sidebar-color-1: var(--scalar-color-1);
715
- --scalar-sidebar-color-2: var(--scalar-color-2);
716
- --scalar-sidebar-border-color: var(--scalar-border-color);
717
-
718
- --scalar-sidebar-item-hover-color: currentColor;
719
- --scalar-sidebar-item-hover-background: var(--scalar-background-2);
720
-
721
- --scalar-sidebar-item-active-background: var(--scalar-background-3);
722
- --scalar-sidebar-color-active: var(--scalar-color-accent);
723
-
724
- --scalar-sidebar-search-background: transparent;
725
- --scalar-sidebar-search-border-color: var(--scalar-border-color);
726
- --scalar-sidebar-search-color: var(--scalar-color-3);
727
- }
728
- .light-mode .t-doc__sidebar {
729
- --scalar-sidebar-item-active-background: var(--scalar-background-2);
730
- }
731
- /* advanced */
732
- .light-mode {
733
- --scalar-color-green: #069061;
734
- --scalar-color-red: #ef0006;
735
- --scalar-color-yellow: #edbe20;
736
- --scalar-color-blue: #0082d0;
737
- --scalar-color-orange: #fb892c;
738
- --scalar-color-purple: #5203d1;
739
-
740
- --scalar-button-1: rgba(0, 0, 0, 1);
741
- --scalar-button-1-hover: rgba(0, 0, 0, 0.8);
742
- --scalar-button-1-color: #fff;
743
- }
744
- .dark-mode {
745
- --scalar-color-green: rgba(69, 255, 165, 0.823);
746
- --scalar-color-red: #ff8589;
747
- --scalar-color-yellow: #ffcc4d;
748
- --scalar-color-blue: #6bc1fe;
749
- --scalar-color-orange: #f98943;
750
- --scalar-color-purple: #b191f9;
751
-
752
- --scalar-button-1: rgba(255, 255, 255, 1);
753
- --scalar-button-1-hover: rgba(255, 255, 255, 0.9);
754
- --scalar-button-1-color: black;
755
- }
756
- /* Custom theme */
757
- .dark-mode h2.t-editor__heading,
758
- .dark-mode .t-editor__page-title h1,
759
- .dark-mode h1.section-header:not(::selection),
760
- .dark-mode .markdown h1,
761
- .dark-mode .markdown h2,
762
- .dark-mode .markdown h3,
763
- .dark-mode .markdown h4,
764
- .dark-mode .markdown h5,
765
- .dark-mode .markdown h6 {
766
- -webkit-text-fill-color: transparent;
767
- background-image: linear-gradient(to right bottom, rgb(255, 255, 255) 30%, rgba(255, 255, 255, 0.38));
768
- -webkit-background-clip: text;
769
- background-clip: text;
770
- }
771
- .examples .scalar-card-footer {
772
- --scalar-background-3: transparent;
773
- padding-top: 0;
774
- }
775
- /* Hero section flare */
776
- .section-flare {
777
- width: 100vw;
778
- height: 550px;
779
- position: absolute;
780
- }
781
- .section-flare-item:nth-of-type(1) {
782
- position: absolute;
783
- width: 100vw;
784
- height: 550px;
785
- --stripesDark: repeating-linear-gradient(100deg, #000 0%, #000 7%, transparent 10%, transparent 12%, #000 16%);
786
- --rainbow: repeating-linear-gradient(100deg, #fff 10%, #fff 16%, #fff 22%, #fff 30%);
787
- background-image: var(--stripesDark), var(--rainbow);
788
- background-size: 300%, 200%;
789
- background-position:
790
- 50% 50%,
791
- 50% 50%;
792
- filter: invert(100%);
793
- -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);
794
- mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);
795
- pointer-events: none;
796
- opacity: 0.07;
797
- }
798
- .dark-mode .section-flare-item:nth-of-type(1) {
799
- background-image: var(--stripesDark), var(--rainbow);
800
- filter: opacity(50%) saturate(200%);
801
- opacity: 0.25;
802
- height: 350px;
803
- }
804
- .section-flare-item:nth-of-type(1):after {
805
- content: "";
806
- position: absolute;
807
- top: 0;
808
- right: 0;
809
- bottom: 0;
810
- left: 0;
811
- background-image: var(--stripesDark), var(--rainbow);
812
- background-size: 200%, 100%;
813
- background-attachment: fixed;
814
- mix-blend-mode: difference;
815
- }
816
- .dark-mode .section-flare:after {
817
- background-image: var(--stripesDark), var(--rainbow);
818
- }
819
- .section-flare-item:nth-of-type(2) {
820
- --star-color: #fff;
821
- --star-color2: #fff;
822
- --star-color3: #fff;
823
- width: 100%;
824
- height: 100%;
825
- position: absolute;
826
- background-image:
827
- radial-gradient(2px 2px at 20px 30px, var(--star-color2), rgba(0, 0, 0, 0)),
828
- radial-gradient(2px 2px at 40px 70px, var(--star-color), rgba(0, 0, 0, 0)),
829
- radial-gradient(2px 2px at 50px 160px, var(--star-color3), rgba(0, 0, 0, 0)),
830
- radial-gradient(2px 2px at 90px 40px, var(--star-color), rgba(0, 0, 0, 0)),
831
- radial-gradient(2px 2px at 130px 80px, var(--star-color), rgba(0, 0, 0, 0)),
832
- radial-gradient(2px 2px at 160px 120px, var(--star-color3), rgba(0, 0, 0, 0));
833
- background-repeat: repeat;
834
- background-size: 200px 200px;
835
- mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);
836
- opacity: 0.2;
837
- }
838
- .light-mode *::selection {
839
- background-color: color-mix(in srgb, var(--scalar-color-blue), transparent 70%);
840
- }
841
- .dark-mode *::selection {
842
- background-color: color-mix(in srgb, var(--scalar-color-blue), transparent 50%);
843
- }
844
-
845
- /* document header */
846
- .light-mode .t-doc__header,
847
- .dark-mode .t-doc__header {
848
- animation: headerbackground forwards;
849
- animation-timeline: scroll();
850
- animation-range: 0px 200px;
851
- }
852
- @keyframes headerbackground {
853
- from {
854
- background: transparent;
855
- backdrop-filter: none;
856
- }
857
- to {
858
- background: var(--scalar-header-background-1);
859
- backdrop-filter: blur(12px);
860
- }
861
- }
862
- /* remove flare on safari to prevent dropped frames on scroll */
863
- @supports (-webkit-hyphens: none) {
864
- .section-flare {
865
- display: none;
866
- }
867
- }
868
-
869
- /* document background */
870
- .light-mode .t-doc .layout-content,
871
- .dark-mode .t-doc .layout-content {
872
- background: transparent;
873
- }
874
- `,bA=`/* basic theme */
875
- :root {
876
- --scalar-text-decoration: underline;
877
- --scalar-text-decoration-hover: underline;
878
- }
879
- .light-mode {
880
- --scalar-background-1: #fff;
881
- --scalar-background-2: #f6f6f6;
882
- --scalar-background-3: #e7e7e7;
883
- --scalar-background-accent: #8ab4f81f;
884
-
885
- --scalar-color-1: #1b1b1b;
886
- --scalar-color-2: #757575;
887
- --scalar-color-3: #8e8e8e;
888
-
889
- --scalar-color-accent: #0099ff;
890
- --scalar-border-color: #dfdfdf;
891
- }
892
- .dark-mode {
893
- --scalar-background-1: #0f0f0f;
894
- --scalar-background-2: #1a1a1a;
895
- --scalar-background-3: #272727;
896
-
897
- --scalar-color-1: #e7e7e7;
898
- --scalar-color-2: #a4a4a4;
899
- --scalar-color-3: #797979;
900
-
901
- --scalar-color-accent: #00aeff;
902
- --scalar-background-accent: #3ea6ff1f;
903
-
904
- --scalar-border-color: #2d2d2d;
905
- }
906
- /* Document Sidebar */
907
- .light-mode,
908
- .dark-mode {
909
- --scalar-sidebar-background-1: var(--scalar-background-1);
910
- --scalar-sidebar-color-1: var(--scalar-color-1);
911
- --scalar-sidebar-color-2: var(--scalar-color-2);
912
- --scalar-sidebar-border-color: var(--scalar-border-color);
913
-
914
- --scalar-sidebar-item-hover-background: var(--scalar-background-2);
915
- --scalar-sidebar-item-hover-color: var(--scalar-sidebar-color-2);
916
-
917
- --scalar-sidebar-item-active-background: var(--scalar-background-2);
918
- --scalar-sidebar-color-active: var(--scalar-sidebar-color-1);
919
-
920
- --scalar-sidebar-indent-border: var(--scalar-sidebar-border-color);
921
- --scalar-sidebar-indent-border-hover: var(--scalar-sidebar-border-color);
922
- --scalar-sidebar-indent-border-active: var(--scalar-sidebar-border-color);
923
-
924
- --scalar-sidebar-search-background: color-mix(in srgb, var(--scalar-background-2), var(--scalar-background-1));
925
- --scalar-sidebar-search-color: var(--scalar-color-3);
926
- --scalar-sidebar-search-border-color: var(--scalar-border-color);
927
- }
928
- /* advanced */
929
- .light-mode {
930
- --scalar-color-green: #069061;
931
- --scalar-color-red: #ef0006;
932
- --scalar-color-yellow: #edbe20;
933
- --scalar-color-blue: #0082d0;
934
- --scalar-color-orange: #ff5800;
935
- --scalar-color-purple: #5203d1;
936
-
937
- --scalar-link-color: var(--scalar-color-1);
938
- --scalar-link-color-hover: var(--scalar-link-color);
939
-
940
- --scalar-button-1: rgba(0, 0, 0, 1);
941
- --scalar-button-1-hover: rgba(0, 0, 0, 0.8);
942
- --scalar-button-1-color: #fff;
943
-
944
- --scalar-tooltip-background: color-mix(in srgb, #1a1a1a, transparent 10%);
945
- --scalar-tooltip-color: color-mix(in srgb, #fff, transparent 15%);
946
-
947
- --scalar-color-alert: color-mix(in srgb, var(--scalar-color-orange), var(--scalar-color-1) 20%);
948
- --scalar-color-danger: color-mix(in srgb, var(--scalar-color-red), var(--scalar-color-1) 20%);
949
-
950
- --scalar-background-alert: color-mix(in srgb, var(--scalar-color-orange), var(--scalar-background-1) 95%);
951
- --scalar-background-danger: color-mix(in srgb, var(--scalar-color-red), var(--scalar-background-1) 95%);
952
- }
953
- .dark-mode {
954
- --scalar-color-green: #00b648;
955
- --scalar-color-red: #dc1b19;
956
- --scalar-color-yellow: #ffc90d;
957
- --scalar-color-blue: #4eb3ec;
958
- --scalar-color-orange: #ff8d4d;
959
- --scalar-color-purple: #b191f9;
960
-
961
- --scalar-link-color: var(--scalar-color-1);
962
- --scalar-link-color-hover: var(--scalar-link-color);
963
-
964
- --scalar-button-1: rgba(255, 255, 255, 1);
965
- --scalar-button-1-hover: rgba(255, 255, 255, 0.9);
966
- --scalar-button-1-color: black;
967
-
968
- --scalar-tooltip-background: color-mix(in srgb, var(--scalar-background-1), #fff 10%);
969
- --scalar-tooltip-color: color-mix(in srgb, #fff, transparent 5%);
970
-
971
- --scalar-color-danger: color-mix(in srgb, var(--scalar-color-red), var(--scalar-background-1) 20%);
972
-
973
- --scalar-background-alert: color-mix(in srgb, var(--scalar-color-orange), var(--scalar-background-1) 95%);
974
- --scalar-background-danger: color-mix(in srgb, var(--scalar-color-red), var(--scalar-background-1) 95%);
975
- }
976
- @supports (color: color(display-p3 1 1 1)) {
977
- .light-mode {
978
- --scalar-color-accent: color(display-p3 0 0.6 1 / 1);
979
- --scalar-color-green: color(display-p3 0.023529 0.564706 0.380392 / 1);
980
- --scalar-color-red: color(display-p3 0.937255 0 0.023529 / 1);
981
- --scalar-color-yellow: color(display-p3 0.929412 0.745098 0.12549 / 1);
982
- --scalar-color-blue: color(display-p3 0 0.509804 0.815686 / 1);
983
- --scalar-color-orange: color(display-p3 1 0.4 0.02);
984
- --scalar-color-purple: color(display-p3 0.321569 0.011765 0.819608 / 1);
985
- }
986
- .dark-mode {
987
- --scalar-color-accent: color(display-p3 0.07 0.67 1);
988
- --scalar-color-green: color(display-p3 0 0.713725 0.282353 / 1);
989
- --scalar-color-red: color(display-p3 0.862745 0.105882 0.098039 / 1);
990
- --scalar-color-yellow: color(display-p3 1 0.788235 0.05098 / 1);
991
- --scalar-color-blue: color(display-p3 0.305882 0.701961 0.92549 / 1);
992
- --scalar-color-orange: color(display-p3 1 0.552941 0.301961 / 1);
993
- --scalar-color-purple: color(display-p3 0.694118 0.568627 0.976471 / 1);
994
- }
995
- }
996
- `,xA=`.light-mode {
997
- --scalar-color-1: #1b1b1b;
998
- --scalar-color-2: #757575;
999
- --scalar-color-3: #8e8e8e;
1000
- --scalar-color-accent: #f06292;
1001
-
1002
- --scalar-background-1: #fff;
1003
- --scalar-background-2: #f6f6f6;
1004
- --scalar-background-3: #e7e7e7;
1005
-
1006
- --scalar-border-color: rgba(0, 0, 0, 0.1);
1007
- }
1008
- .dark-mode {
1009
- --scalar-color-1: rgba(255, 255, 255, 0.9);
1010
- --scalar-color-2: rgba(156, 163, 175, 1);
1011
- --scalar-color-3: rgba(255, 255, 255, 0.44);
1012
- --scalar-color-accent: #f06292;
1013
-
1014
- --scalar-background-1: #111728;
1015
- --scalar-background-2: #1e293b;
1016
- --scalar-background-3: #334155;
1017
- --scalar-background-accent: #f062921f;
1018
-
1019
- --scalar-border-color: rgba(255, 255, 255, 0.1);
1020
- }
1021
-
1022
- /* Document Sidebar */
1023
- .light-mode .t-doc__sidebar,
1024
- .dark-mode .t-doc__sidebar {
1025
- --scalar-sidebar-background-1: var(--scalar-background-1);
1026
- --scalar-sidebar-color-1: var(--scalar-color-1);
1027
- --scalar-sidebar-color-2: var(--scalar-color-2);
1028
- --scalar-sidebar-border-color: var(--scalar-border-color);
1029
-
1030
- --scalar-sidebar-item-hover-background: var(--scalar-background-2);
1031
- --scalar-sidebar-item-hover-color: currentColor;
1032
-
1033
- --scalar-sidebar-item-active-background: #f062921f;
1034
- --scalar-sidebar-color-active: var(--scalar-color-accent);
1035
-
1036
- --scalar-sidebar-search-background: transparent;
1037
- --scalar-sidebar-search-color: var(--scalar-color-3);
1038
- --scalar-sidebar-search-border-color: var(--scalar-border-color);
1039
- }
1040
-
1041
- /* advanced */
1042
- .light-mode {
1043
- --scalar-button-1: rgb(49 53 56);
1044
- --scalar-button-1-color: #fff;
1045
- --scalar-button-1-hover: rgb(28 31 33);
1046
-
1047
- --scalar-color-green: #069061;
1048
- --scalar-color-red: #ef0006;
1049
- --scalar-color-yellow: #edbe20;
1050
- --scalar-color-blue: #0082d0;
1051
- --scalar-color-orange: #fb892c;
1052
- --scalar-color-purple: #5203d1;
1053
-
1054
- --scalar-scrollbar-color: rgba(0, 0, 0, 0.18);
1055
- --scalar-scrollbar-color-active: rgba(0, 0, 0, 0.36);
1056
- }
1057
- .dark-mode {
1058
- --scalar-button-1: #f6f6f6;
1059
- --scalar-button-1-color: #000;
1060
- --scalar-button-1-hover: #e7e7e7;
1061
-
1062
- --scalar-color-green: #a3ffa9;
1063
- --scalar-color-red: #ffa3a3;
1064
- --scalar-color-yellow: #fffca3;
1065
- --scalar-color-blue: #a5d6ff;
1066
- --scalar-color-orange: #e2ae83;
1067
- --scalar-color-purple: #d2a8ff;
1068
-
1069
- --scalar-scrollbar-color: rgba(255, 255, 255, 0.24);
1070
- --scalar-scrollbar-color-active: rgba(255, 255, 255, 0.48);
1071
- }
1072
- .section-flare {
1073
- width: 100%;
1074
- height: 400px;
1075
- position: absolute;
1076
- }
1077
- .section-flare-item:first-of-type:before {
1078
- content: "";
1079
- position: absolute;
1080
- top: 0;
1081
- right: 0;
1082
- bottom: 0;
1083
- left: 0;
1084
- --stripes: repeating-linear-gradient(100deg, #fff 0%, #fff 0%, transparent 2%, transparent 12%, #fff 17%);
1085
- --stripesDark: repeating-linear-gradient(100deg, #000 0%, #000 0%, transparent 10%, transparent 12%, #000 17%);
1086
- --rainbow: repeating-linear-gradient(100deg, #60a5fa 10%, #e879f9 16%, #5eead4 22%, #60a5fa 30%);
1087
- contain: strict;
1088
- contain-intrinsic-size: 100vw 40vh;
1089
- background-image: var(--stripesDark), var(--rainbow);
1090
- background-size: 300%, 200%;
1091
- background-position:
1092
- 50% 50%,
1093
- 50% 50%;
1094
- filter: opacity(20%) saturate(200%);
1095
- -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);
1096
- mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);
1097
- pointer-events: none;
1098
- }
1099
- .section-flare-item:first-of-type:after {
1100
- content: "";
1101
- position: absolute;
1102
- top: 0;
1103
- right: 0;
1104
- bottom: 0;
1105
- left: 0;
1106
- background-image: var(--stripes), var(--rainbow);
1107
- background-size: 200%, 100%;
1108
- background-attachment: fixed;
1109
- mix-blend-mode: difference;
1110
- background-image: var(--stripesDark), var(--rainbow);
1111
- pointer-events: none;
1112
- }
1113
- .light-mode .section-flare-item:first-of-type:after,
1114
- .light-mode .section-flare-item:first-of-type:before {
1115
- background-image: var(--stripes), var(--rainbow);
1116
- filter: opacity(4%) saturate(200%);
1117
- }
1118
- `,SA=`.light-mode {
1119
- color-scheme: light;
1120
- --scalar-color-1: #1c1e21;
1121
- --scalar-color-2: #757575;
1122
- --scalar-color-3: #8e8e8e;
1123
- --scalar-color-disabled: #b4b1b1;
1124
- --scalar-color-ghost: #a7a7a7;
1125
- --scalar-color-accent: #2f8555;
1126
- --scalar-background-1: #fff;
1127
- --scalar-background-2: #f5f5f5;
1128
- --scalar-background-3: #ededed;
1129
- --scalar-background-4: rgba(0, 0, 0, 0.06);
1130
- --scalar-background-accent: #2f85551f;
1131
-
1132
- --scalar-border-color: rgba(0, 0, 0, 0.1);
1133
- --scalar-scrollbar-color: rgba(0, 0, 0, 0.18);
1134
- --scalar-scrollbar-color-active: rgba(0, 0, 0, 0.36);
1135
- --scalar-lifted-brightness: 1;
1136
- --scalar-backdrop-brightness: 1;
1137
-
1138
- --scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);
1139
- --scalar-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px, rgba(0, 0, 0, 0.08) 0px 3px 8px 0px, #eeeeed 0px 0 0 1px;
1140
-
1141
- --scalar-button-1: rgb(49 53 56);
1142
- --scalar-button-1-color: #fff;
1143
- --scalar-button-1-hover: rgb(28 31 33);
1144
-
1145
- --scalar-color-green: #007300;
1146
- --scalar-color-red: #af272b;
1147
- --scalar-color-yellow: #b38200;
1148
- --scalar-color-blue: #3b8ba5;
1149
- --scalar-color-orange: #fb892c;
1150
- --scalar-color-purple: #5203d1;
1151
- }
1152
-
1153
- .dark-mode {
1154
- color-scheme: dark;
1155
- --scalar-color-1: rgba(255, 255, 255, 0.9);
1156
- --scalar-color-2: rgba(255, 255, 255, 0.62);
1157
- --scalar-color-3: rgba(255, 255, 255, 0.44);
1158
- --scalar-color-disabled: rgba(255, 255, 255, 0.34);
1159
- --scalar-color-ghost: rgba(255, 255, 255, 0.26);
1160
- --scalar-color-accent: #27c2a0;
1161
- --scalar-background-1: #1b1b1d;
1162
- --scalar-background-2: #242526;
1163
- --scalar-background-3: #3b3b3b;
1164
- --scalar-background-4: rgba(255, 255, 255, 0.06);
1165
- --scalar-background-accent: #27c2a01f;
1166
-
1167
- --scalar-border-color: rgba(255, 255, 255, 0.1);
1168
- --scalar-scrollbar-color: rgba(255, 255, 255, 0.24);
1169
- --scalar-scrollbar-color-active: rgba(255, 255, 255, 0.48);
1170
- --scalar-lifted-brightness: 1.45;
1171
- --scalar-backdrop-brightness: 0.5;
1172
-
1173
- --scalar-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, 0.1);
1174
- --scalar-shadow-2:
1175
- rgba(15, 15, 15, 0.2) 0px 3px 6px, rgba(15, 15, 15, 0.4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, 0.1);
1176
-
1177
- --scalar-button-1: #f6f6f6;
1178
- --scalar-button-1-color: #000;
1179
- --scalar-button-1-hover: #e7e7e7;
1180
-
1181
- --scalar-color-green: #26b226;
1182
- --scalar-color-red: #fb565b;
1183
- --scalar-color-yellow: #ffc426;
1184
- --scalar-color-blue: #6ecfef;
1185
- --scalar-color-orange: #ff8d4d;
1186
- --scalar-color-purple: #b191f9;
1187
- }
1188
- `,CA=`/* basic theme */
1189
- .light-mode {
1190
- --scalar-color-1: #1b1b1b;
1191
- --scalar-color-2: #757575;
1192
- --scalar-color-3: #8e8e8e;
1193
- --scalar-color-accent: #7070ff;
1194
-
1195
- --scalar-background-1: #fff;
1196
- --scalar-background-2: #f6f6f6;
1197
- --scalar-background-3: #e7e7e7;
1198
- --scalar-background-accent: #7070ff1f;
1199
-
1200
- --scalar-border-color: rgba(0, 0, 0, 0.1);
1201
-
1202
- --scalar-code-language-color-supersede: var(--scalar-color-3);
1203
- }
1204
- .dark-mode {
1205
- --scalar-color-1: #f7f8f8;
1206
- --scalar-color-2: rgb(180, 188, 208);
1207
- --scalar-color-3: #b4bcd099;
1208
- --scalar-color-accent: #828fff;
1209
-
1210
- --scalar-background-1: #000212;
1211
- --scalar-background-2: #0d0f1e;
1212
- --scalar-background-3: #232533;
1213
- --scalar-background-accent: #8ab4f81f;
1214
-
1215
- --scalar-border-color: #313245;
1216
- --scalar-code-language-color-supersede: var(--scalar-color-3);
1217
- }
1218
- /* Document Sidebar */
1219
- .light-mode .t-doc__sidebar {
1220
- --scalar-sidebar-background-1: var(--scalar-background-1);
1221
- --scalar-sidebar-item-hover-color: currentColor;
1222
- --scalar-sidebar-item-hover-background: var(--scalar-background-2);
1223
- --scalar-sidebar-item-active-background: var(--scalar-background-accent);
1224
- --scalar-sidebar-border-color: var(--scalar-border-color);
1225
- --scalar-sidebar-color-1: var(--scalar-color-1);
1226
- --scalar-sidebar-color-2: var(--scalar-color-2);
1227
- --scalar-sidebar-color-active: var(--scalar-color-accent);
1228
- --scalar-sidebar-search-background: rgba(0, 0, 0, 0.05);
1229
- --scalar-sidebar-search-border-color: 1px solid rgba(0, 0, 0, 0.05);
1230
- --scalar-sidebar-search-color: var(--scalar-color-3);
1231
- --scalar-background-2: rgba(0, 0, 0, 0.03);
1232
- }
1233
- .dark-mode .t-doc__sidebar {
1234
- --scalar-sidebar-background-1: var(--scalar-background-1);
1235
- --scalar-sidebar-item-hover-color: currentColor;
1236
- --scalar-sidebar-item-hover-background: var(--scalar-background-2);
1237
- --scalar-sidebar-item-active-background: rgba(255, 255, 255, 0.1);
1238
- --scalar-sidebar-border-color: var(--scalar-border-color);
1239
- --scalar-sidebar-color-1: var(--scalar-color-1);
1240
- --scalar-sidebar-color-2: var(--scalar-color-2);
1241
- --scalar-sidebar-color-active: var(--scalar-color-accent);
1242
- --scalar-sidebar-search-background: rgba(255, 255, 255, 0.1);
1243
- --scalar-sidebar-search-border-color: 1px solid rgba(255, 255, 255, 0.05);
1244
- --scalar-sidebar-search-color: var(--scalar-color-3);
1245
- }
1246
- /* advanced */
1247
- .light-mode {
1248
- --scalar-color-green: #069061;
1249
- --scalar-color-red: #ef0006;
1250
- --scalar-color-yellow: #edbe20;
1251
- --scalar-color-blue: #0082d0;
1252
- --scalar-color-orange: #fb892c;
1253
- --scalar-color-purple: #5203d1;
1254
-
1255
- --scalar-button-1: rgba(0, 0, 0, 1);
1256
- --scalar-button-1-hover: rgba(0, 0, 0, 0.8);
1257
- --scalar-button-1-color: #fff;
1258
- }
1259
- .dark-mode {
1260
- --scalar-color-green: #00b648;
1261
- --scalar-color-red: #dc1b19;
1262
- --scalar-color-yellow: #ffc90d;
1263
- --scalar-color-blue: #4eb3ec;
1264
- --scalar-color-orange: #ff8d4d;
1265
- --scalar-color-purple: #b191f9;
1266
-
1267
- --scalar-button-1: rgba(255, 255, 255, 1);
1268
- --scalar-button-1-hover: rgba(255, 255, 255, 0.9);
1269
- --scalar-button-1-color: black;
1270
- }
1271
- /* Custom Theme */
1272
- .dark-mode h2.t-editor__heading,
1273
- .dark-mode .t-editor__page-title h1,
1274
- .dark-mode h1.section-header:not(::selection),
1275
- .dark-mode .markdown h1,
1276
- .dark-mode .markdown h2,
1277
- .dark-mode .markdown h3,
1278
- .dark-mode .markdown h4,
1279
- .dark-mode .markdown h5,
1280
- .dark-mode .markdown h6 {
1281
- -webkit-text-fill-color: transparent;
1282
- background-image: linear-gradient(to right bottom, rgb(255, 255, 255) 30%, rgba(255, 255, 255, 0.38));
1283
- -webkit-background-clip: text;
1284
- background-clip: text;
1285
- }
1286
- .sidebar-search {
1287
- backdrop-filter: blur(12px);
1288
- }
1289
- @keyframes headerbackground {
1290
- from {
1291
- background: transparent;
1292
- backdrop-filter: none;
1293
- }
1294
- to {
1295
- background: var(--scalar-header-background-1);
1296
- backdrop-filter: blur(12px);
1297
- }
1298
- }
1299
- .dark-mode .scalar-card {
1300
- background: rgba(255, 255, 255, 0.05) !important;
1301
- }
1302
- .dark-mode .scalar-card * {
1303
- --scalar-background-2: transparent !important;
1304
- --scalar-background-1: transparent !important;
1305
- }
1306
- .light-mode .dark-mode.scalar-card *,
1307
- .light-mode .dark-mode.scalar-card {
1308
- --scalar-background-1: #0d0f1e !important;
1309
- --scalar-background-2: #0d0f1e !important;
1310
- --scalar-background-3: #191b29 !important;
1311
- }
1312
- .light-mode .dark-mode.scalar-card {
1313
- background: #191b29 !important;
1314
- }
1315
- .badge {
1316
- box-shadow: 0 0 0 1px var(--scalar-border-color);
1317
- margin-right: 6px;
1318
- }
1319
-
1320
- .table-row.required-parameter .table-row-item:nth-of-type(2):after {
1321
- background: transparent;
1322
- box-shadow: none;
1323
- }
1324
- /* Hero Section Flare */
1325
- .section-flare {
1326
- width: 100vw;
1327
- background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.3), transparent);
1328
- height: 100vh;
1329
- }
1330
- .light-mode *::selection {
1331
- background-color: color-mix(in srgb, var(--scalar-color-accent), transparent 70%);
1332
- }
1333
- .dark-mode *::selection {
1334
- background-color: color-mix(in srgb, var(--scalar-color-accent), transparent 50%);
1335
- }
1336
-
1337
- /* document layout */
1338
- .light-mode .t-doc .layout-content,
1339
- .dark-mode .t-doc .layout-content {
1340
- background: transparent;
1341
- }
1342
- `,wA=`/* basic theme */
1343
- .light-mode {
1344
- color-scheme: light;
1345
- --scalar-color-1: #322b3b;
1346
- --scalar-color-2: #645676;
1347
- --scalar-color-3: #9789a9;
1348
- --scalar-color-accent: #40b4c4;
1349
-
1350
- --scalar-background-1: #fff;
1351
- --scalar-background-2: #f4f2f7;
1352
- --scalar-background-3: #cfc7dc;
1353
- --scalar-background-accent: #f3fafb;
1354
-
1355
- --scalar-border-color: #e4e0eb;
1356
- }
1357
- .dark-mode {
1358
- color-scheme: dark;
1359
- --scalar-color-1: #fff;
1360
- --scalar-color-2: #b8b6ba;
1361
- --scalar-color-3: #706c74;
1362
- --scalar-color-accent: #ed78c2;
1363
-
1364
- --scalar-background-1: #27212e;
1365
- --scalar-background-2: #322c39;
1366
- --scalar-background-3: #4c4059;
1367
- --scalar-background-accent: #eb64b91f;
1368
-
1369
- --scalar-border-color: rgba(255, 255, 255, 0.1);
1370
- }
1371
-
1372
- /* Sidebar */
1373
- .light-mode .t-doc__sidebar {
1374
- --scalar-sidebar-background-1: var(--scalar-background-1);
1375
- --scalar-sidebar-item-hover-color: currentColor;
1376
- --scalar-sidebar-item-hover-background: var(--scalar-background-2);
1377
- --scalar-sidebar-item-active-background: var(--scalar-background-accent);
1378
- --scalar-sidebar-border-color: var(--scalar-border-color);
1379
- --scalar-sidebar-color-1: var(--scalar-color-1);
1380
- --scalar-sidebar-color-2: var(--scalar-color-2);
1381
- --scalar-sidebar-color-active: var(--scalar-color-accent);
1382
- --scalar-sidebar-search-background: var(--scalar-background-2);
1383
- --scalar-sidebar-search-border-color: var(--scalar-sidebar-border-color);
1384
- --scalar-sidebar-search--color: var(--scalar-color-3);
1385
- }
1386
- .dark-mode .t-doc__sidebar {
1387
- --scalar-sidebar-background-1: var(--scalar-background-1);
1388
- --scalar-sidebar-item-hover-color: currentColor;
1389
- --scalar-sidebar-item-hover-background: var(--scalar-background-2);
1390
- --scalar-sidebar-item-active-background: var(--scalar-background-accent);
1391
- --scalar-sidebar-border-color: var(--scalar-border-color);
1392
- --scalar-sidebar-color-1: var(--scalar-color-1);
1393
- --scalar-sidebar-color-2: var(--scalar-color-2);
1394
- --scalar-sidebar-color-active: var(--scalar-color-accent);
1395
- --scalar-sidebar-search-background: var(--scalar-background-2);
1396
- --scalar-sidebar-search-border-color: #514c56;
1397
- --scalar-sidebar-search--color: var(--scalar-color-3);
1398
- }
1399
- /* advanced */
1400
- .light-mode {
1401
- --scalar-button-1: rgb(49 53 56);
1402
- --scalar-button-1-color: #fff;
1403
- --scalar-button-1-hover: rgb(28 31 33);
1404
-
1405
- --scalar-color-green: #74dfc4;
1406
- --scalar-color-red: #d887f5;
1407
- --scalar-color-yellow: #ffe261;
1408
- --scalar-color-blue: #40b4c4;
1409
- --scalar-color-orange: #ff52bf;
1410
- --scalar-color-purple: #91889b;
1411
-
1412
- --scalar-scrollbar-color: rgba(0, 0, 0, 0.18);
1413
- --scalar-scrollbar-color-active: rgba(0, 0, 0, 0.36);
1414
- }
1415
- .dark-mode {
1416
- --scalar-button-1: #f6f6f6;
1417
- --scalar-button-1-color: #27212e;
1418
- --scalar-button-1-hover: #e7e7e7;
1419
-
1420
- --scalar-color-green: #74dfc4;
1421
- --scalar-color-red: #d887f5;
1422
- --scalar-color-yellow: #ffe261;
1423
- --scalar-color-blue: #40b4c4;
1424
- --scalar-color-orange: #ff52bf;
1425
- --scalar-color-purple: #91889b;
1426
-
1427
- --scalar-scrollbar-color: rgba(255, 255, 255, 0.24);
1428
- --scalar-scrollbar-color-active: rgba(255, 255, 255, 0.48);
1429
- }
1430
- /* Radius */
1431
- :root {
1432
- --scalar-radius: 2px;
1433
- --scalar-radius-lg: 3px;
1434
- --scalar-radius-xl: 4px;
1435
- }
1436
- /* P3 color support */
1437
- @supports (color: color(display-p3 1 1 1)) {
1438
- .light-mode {
1439
- --scalar-color-accent: color(display-p3 0.25098 0.705882 0.768627 / 1);
1440
- --scalar-color-green: color(display-p3 0.454902 0.87451 0.768627 / 1);
1441
- --scalar-color-red: color(display-p3 0.847059 0.529412 0.960784 / 1);
1442
- --scalar-color-yellow: color(display-p3 1 0.886275 0.380392 / 1);
1443
- --scalar-color-blue: color(display-p3 0.25098 0.705882 0.768627 / 1);
1444
- --scalar-color-orange: color(display-p3 1 0.321569 0.74902 / 1);
1445
- --scalar-color-purple: color(display-p3 0.568627 0.533333 0.607843 / 1);
1446
- }
1447
- .dark-mode {
1448
- --scalar-color-accent: color(display-p3 0.929412 0.470588 0.760784 / 1);
1449
- --scalar-color-green: color(display-p3 0.454902 0.87451 0.768627 / 1);
1450
- --scalar-color-red: color(display-p3 0.847059 0.529412 0.960784 / 1);
1451
- --scalar-color-yellow: color(display-p3 1 0.886275 0.380392 / 1);
1452
- --scalar-color-blue: color(display-p3 0.25098 0.705882 0.768627 / 1);
1453
- --scalar-color-orange: color(display-p3 1 0.321569 0.74902 / 1);
1454
- --scalar-color-purple: color(display-p3 0.568627 0.533333 0.607843 / 1);
1455
- }
1456
- }
1457
- `,TA=`/* basic theme */
1458
- :root {
1459
- --scalar-text-decoration: underline;
1460
- --scalar-text-decoration-hover: underline;
1461
- }
1462
- .light-mode {
1463
- --scalar-background-1: #f9f6f0;
1464
- --scalar-background-2: #f2efe8;
1465
- --scalar-background-3: #e9e7e2;
1466
- --scalar-border-color: rgba(203, 165, 156, 0.6);
1467
-
1468
- --scalar-color-1: #c75549;
1469
- --scalar-color-2: #c75549;
1470
- --scalar-color-3: #c75549;
1471
-
1472
- --scalar-color-accent: #c75549;
1473
- --scalar-background-accent: #dcbfa81f;
1474
-
1475
- --scalar-code-language-color-supersede: var(--scalar-color-1);
1476
- }
1477
- .dark-mode {
1478
- --scalar-background-1: #140507;
1479
- --scalar-background-2: #20090c;
1480
- --scalar-background-3: #321116;
1481
- --scalar-border-color: #3c3031;
1482
-
1483
- --scalar-color-1: rgba(255, 255, 255, 0.9);
1484
- --scalar-color-2: rgba(255, 255, 255, 0.62);
1485
- --scalar-color-3: rgba(255, 255, 255, 0.44);
1486
-
1487
- --scalar-color-accent: rgba(255, 255, 255, 0.9);
1488
- --scalar-background-accent: #441313;
1489
-
1490
- --scalar-code-language-color-supersede: var(--scalar-color-1);
1491
- }
1492
-
1493
- /* Document Sidebar */
1494
- .light-mode .t-doc__sidebar,
1495
- .dark-mode .t-doc__sidebar {
1496
- --scalar-sidebar-background-1: var(--scalar-background-1);
1497
- --scalar-sidebar-color-1: var(--scalar-color-1);
1498
- --scalar-sidebar-color-2: var(--scalar-color-2);
1499
- --scalar-sidebar-border-color: var(--scalar-border-color);
1500
-
1501
- --scalar-sidebar-item-hover-color: currentColor;
1502
- --scalar-sidebar-item-hover-background: var(--scalar-background-2);
1503
-
1504
- --scalar-sidebar-item-active-background: var(--scalar-background-3);
1505
- --scalar-sidebar-color-active: var(--scalar-color-accent);
1506
-
1507
- --scalar-sidebar-search-background: rgba(255, 255, 255, 0.1);
1508
- --scalar-sidebar-search-color: var(--scalar-color-3);
1509
- --scalar-sidebar-search-border-color: var(--scalar-border-color);
1510
- z-index: 1;
1511
- }
1512
- /* advanced */
1513
- .light-mode {
1514
- --scalar-color-green: #09533a;
1515
- --scalar-color-red: #aa181d;
1516
- --scalar-color-yellow: #ab8d2b;
1517
- --scalar-color-blue: #19689a;
1518
- --scalar-color-orange: #b26c34;
1519
- --scalar-color-purple: #4c2191;
1520
-
1521
- --scalar-button-1: rgba(0, 0, 0, 1);
1522
- --scalar-button-1-hover: rgba(0, 0, 0, 0.8);
1523
- --scalar-button-1-color: #fff;
1524
- }
1525
- .dark-mode {
1526
- --scalar-color-green: rgba(69, 255, 165, 0.823);
1527
- --scalar-color-red: #ff8589;
1528
- --scalar-color-yellow: #ffcc4d;
1529
- --scalar-color-blue: #6bc1fe;
1530
- --scalar-color-orange: #f98943;
1531
- --scalar-color-purple: #b191f9;
1532
-
1533
- --scalar-button-1: rgba(255, 255, 255, 1);
1534
- --scalar-button-1-hover: rgba(255, 255, 255, 0.9);
1535
- --scalar-button-1-color: black;
1536
- }
1537
- /* Custom Theme */
1538
- .dark-mode h2.t-editor__heading,
1539
- .dark-mode .t-editor__page-title h1,
1540
- .dark-mode h1.section-header:not(::selection),
1541
- .dark-mode .markdown h1,
1542
- .dark-mode .markdown h2,
1543
- .dark-mode .markdown h3,
1544
- .dark-mode .markdown h4,
1545
- .dark-mode .markdown h5,
1546
- .dark-mode .markdown h6 {
1547
- -webkit-text-fill-color: transparent;
1548
- background-image: linear-gradient(to right bottom, rgb(255, 255, 255) 30%, rgba(255, 255, 255, 0.38));
1549
- -webkit-background-clip: text;
1550
- background-clip: text;
1551
- }
1552
- .light-mode .t-doc__sidebar {
1553
- --scalar-sidebar-search-background: white;
1554
- }
1555
- .examples .scalar-card-footer {
1556
- --scalar-background-3: transparent;
1557
- padding-top: 0;
1558
- }
1559
- /* Hero section flare */
1560
- .section-flare {
1561
- overflow-x: hidden;
1562
- height: 100vh;
1563
- left: initial;
1564
- }
1565
- .section-flare-item:nth-of-type(1) {
1566
- background: #d25019;
1567
- position: relative;
1568
- top: -150px;
1569
- right: -400px;
1570
- width: 80vw;
1571
- height: 500px;
1572
- margin-top: -150px;
1573
- border-radius: 50%;
1574
- filter: blur(100px);
1575
- z-index: 0;
1576
- }
1577
- .light-mode .section-flare {
1578
- display: none;
1579
- }
1580
- *::selection {
1581
- background-color: color-mix(in srgb, var(--scalar-color-red), transparent 75%);
1582
- }
1583
-
1584
- /* document layout */
1585
- .dark-mode .t-doc .layout-content {
1586
- background: transparent;
1587
- }
1588
- `,EA=`.light-mode {
1589
- color-scheme: light;
1590
- --scalar-color-1: #000000;
1591
- --scalar-color-2: #000000;
1592
- --scalar-color-3: #000000;
1593
- --scalar-color-accent: #645b0f;
1594
- --scalar-background-1: #ccc9b3;
1595
- --scalar-background-2: #c2bfaa;
1596
- --scalar-background-3: #b8b5a1;
1597
- --scalar-background-accent: #000000;
1598
-
1599
- --scalar-border-color: rgba(0, 0, 0, 0.2);
1600
- --scalar-scrollbar-color: rgba(0, 0, 0, 0.18);
1601
- --scalar-scrollbar-color-active: rgba(0, 0, 0, 0.36);
1602
- --scalar-lifted-brightness: 1;
1603
- --scalar-backdrop-brightness: 1;
1604
-
1605
- --scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);
1606
- --scalar-shadow-2:
1607
- rgba(0, 0, 0, 0.08) 0px 13px 20px 0px, rgba(0, 0, 0, 0.08) 0px 3px 8px 0px, var(--scalar-border-color) 0px 0 0 1px;
1608
-
1609
- --scalar-button-1: rgb(49 53 56);
1610
- --scalar-button-1-color: #fff;
1611
- --scalar-button-1-hover: rgb(28 31 33);
1612
-
1613
- --scalar-color-red: #b91c1c;
1614
- --scalar-color-orange: #a16207;
1615
- --scalar-color-green: #047857;
1616
- --scalar-color-blue: #1d4ed8;
1617
- --scalar-color-orange: #c2410c;
1618
- --scalar-color-purple: #6d28d9;
1619
- }
1620
-
1621
- .dark-mode {
1622
- color-scheme: dark;
1623
- --scalar-color-1: #fffef3;
1624
- --scalar-color-2: #fffef3;
1625
- --scalar-color-3: #fffef3;
1626
- --scalar-color-accent: #c3b531;
1627
- --scalar-background-1: #313332;
1628
- --scalar-background-2: #393b3a;
1629
- --scalar-background-3: #414342;
1630
- --scalar-background-accent: #fffef3;
1631
-
1632
- --scalar-border-color: #505452;
1633
- --scalar-scrollbar-color: rgba(255, 255, 255, 0.24);
1634
- --scalar-scrollbar-color-active: rgba(255, 255, 255, 0.48);
1635
- --scalar-lifted-brightness: 1.45;
1636
- --scalar-backdrop-brightness: 0.5;
1637
-
1638
- --scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);
1639
- --scalar-shadow-2:
1640
- rgba(15, 15, 15, 0.2) 0px 3px 6px, rgba(15, 15, 15, 0.4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, 0.1);
1641
-
1642
- --scalar-button-1: #f6f6f6;
1643
- --scalar-button-1-color: #000;
1644
- --scalar-button-1-hover: #e7e7e7;
1645
-
1646
- --scalar-color-green: #00b648;
1647
- --scalar-color-red: #dc1b19;
1648
- --scalar-color-yellow: #ffc90d;
1649
- --scalar-color-blue: #4eb3ec;
1650
- --scalar-color-orange: #ff8d4d;
1651
- --scalar-color-purple: #b191f9;
1652
- }
1653
-
1654
- /* Sidebar */
1655
- .light-mode .t-doc__sidebar,
1656
- .dark-mode .t-doc__sidebar {
1657
- --scalar-sidebar-background-1: var(--scalar-background-1);
1658
- --scalar-sidebar-color-1: var(--scalar-color-1);
1659
- --scalar-sidebar-color-2: var(--scalar-color-2);
1660
- --scalar-sidebar-border-color: var(--scalar-border-color);
1661
-
1662
- --scalar-sidebar-item-hover-background: var(--scalar-background-2);
1663
- --scalar-sidebar-item-hover-color: currentColor;
1664
-
1665
- --scalar-sidebar-item-active-background: var(--scalar-background-3);
1666
- --scalar-sidebar-color-active: var(--scalar-color-1);
1667
-
1668
- --scalar-sidebar-search-background: transparent;
1669
- --scalar-sidebar-search-color: var(--scalar-color-3);
1670
- --scalar-sidebar-search-border-color: var(--scalar-border-color);
1671
- }
1672
- *::selection {
1673
- background-color: color-mix(in srgb, var(--scalar-color-accent), transparent 80%);
1674
- }
1675
- `,DA=`/* basic theme */
1676
- .light-mode {
1677
- --scalar-background-1: #fff;
1678
- --scalar-background-2: #f5f6f8;
1679
- --scalar-background-3: #eceef1;
1680
-
1681
- --scalar-color-1: #1b1b1b;
1682
- --scalar-color-2: #757575;
1683
- --scalar-color-3: #8e8e8e;
1684
-
1685
- --scalar-color-accent: #5469d4;
1686
- --scalar-background-accent: #5469d41f;
1687
-
1688
- --scalar-border-color: rgba(215, 215, 206, 0.68);
1689
- }
1690
- .dark-mode {
1691
- --scalar-background-1: #15171c;
1692
- --scalar-background-2: #1c1e24;
1693
- --scalar-background-3: #22252b;
1694
-
1695
- --scalar-color-1: #fafafa;
1696
- --scalar-color-2: #c9ced8;
1697
- --scalar-color-3: #8c99ad;
1698
-
1699
- --scalar-color-accent: #5469d4;
1700
- --scalar-background-accent: #5469d41f;
1701
-
1702
- --scalar-border-color: #3f4145;
1703
- }
1704
- /* Document Sidebar */
1705
- .light-mode .t-doc__sidebar,
1706
- .dark-mode .t-doc__sidebar {
1707
- --scalar-sidebar-background-1: var(--scalar-background-1);
1708
- --scalar-sidebar-color-1: var(--scalar-color-1);
1709
- --scalar-sidebar-color-2: var(--scalar-color-2);
1710
- --scalar-sidebar-border-color: var(--scalar-border-color);
1711
-
1712
- --scalar-sidebar-item-hover-color: currentColor;
1713
- --scalar-sidebar-item-hover-background: var(--scalar-background-3);
1714
-
1715
- --scalar-sidebar-item-active-background: var(--scalar-background-accent);
1716
- --scalar-sidebar-color-active: var(--scalar-color-accent);
1717
-
1718
- --scalar-sidebar-search-background: var(--scalar-background-1);
1719
- --scalar-sidebar-search-color: var(--scalar-color-3);
1720
- --scalar-sidebar-search-border-color: var(--scalar-border-color);
1721
- }
1722
-
1723
- /* advanced */
1724
- .light-mode {
1725
- --scalar-color-green: #17803d;
1726
- --scalar-color-red: #e10909;
1727
- --scalar-color-yellow: #edbe20;
1728
- --scalar-color-blue: #1763a6;
1729
- --scalar-color-orange: #e25b09;
1730
- --scalar-color-purple: #5c3993;
1731
-
1732
- --scalar-button-1: rgba(0, 0, 0, 1);
1733
- --scalar-button-1-hover: rgba(0, 0, 0, 0.8);
1734
- --scalar-button-1-color: #fff;
1735
- }
1736
- .dark-mode {
1737
- --scalar-color-green: #30a159;
1738
- --scalar-color-red: #dc1b19;
1739
- --scalar-color-yellow: #eec644;
1740
- --scalar-color-blue: #2b7abf;
1741
- --scalar-color-orange: #f07528;
1742
- --scalar-color-purple: #7a59b1;
1743
-
1744
- --scalar-button-1: rgba(255, 255, 255, 1);
1745
- --scalar-button-1-hover: rgba(255, 255, 255, 0.9);
1746
- --scalar-button-1-color: black;
1747
- }
1748
- .light-mode *::selection {
1749
- background-color: color-mix(in srgb, var(--scalar-color-accent), transparent 70%);
1750
- }
1751
- .dark-mode *::selection {
1752
- background-color: color-mix(in srgb, var(--scalar-color-accent), transparent 50%);
1753
- }
1754
- `,OA=`/* basic theme */
1755
- .light-mode {
1756
- --scalar-background-1: #f3f3ee;
1757
- --scalar-background-2: #e8e8e3;
1758
- --scalar-background-3: #e4e4df;
1759
- --scalar-border-color: rgba(215, 215, 206, 0.85);
1760
-
1761
- --scalar-color-1: #1b1b1b;
1762
- --scalar-color-2: #757575;
1763
- --scalar-color-3: #8e8e8e;
1764
-
1765
- --scalar-color-accent: #1763a6;
1766
- --scalar-background-accent: #1f648e1f;
1767
- }
1768
- .dark-mode {
1769
- --scalar-background-1: #09090b;
1770
- --scalar-background-2: #18181b;
1771
- --scalar-background-3: #2c2c30;
1772
- --scalar-border-color: rgba(255, 255, 255, 0.17);
1773
-
1774
- --scalar-color-1: #fafafa;
1775
- --scalar-color-2: rgb(161, 161, 170);
1776
- --scalar-color-3: rgba(255, 255, 255, 0.533);
1777
-
1778
- --scalar-color-accent: #4eb3ec;
1779
- --scalar-background-accent: #8ab4f81f;
1780
- }
1781
- /* Document Sidebar */
1782
- .light-mode .t-doc__sidebar,
1783
- .dark-mode .t-doc__sidebar {
1784
- --scalar-sidebar-background-1: var(--scalar-background-1);
1785
- --scalar-sidebar-color-1: var(--scalar-color-1);
1786
- --scalar-sidebar-color-2: var(--scalar-color-2);
1787
- --scalar-sidebar-border-color: var(--scalar-border-color);
1788
-
1789
- --scalar-sidebar-item-hover-background: var(--scalar-background-2);
1790
- --scalar-sidebar-item-hover-color: currentColor;
1791
-
1792
- --scalar-sidebar-item-active-background: var(--scalar-background-3);
1793
- --scalar-sidebar-color-active: var(--scalar-color-1);
1794
-
1795
- --scalar-sidebar-search-background: var(--scalar-background-1);
1796
- --scalar-sidebar-search-border-color: var(--scalar-border-color);
1797
- --scalar-sidebar-search-color: var(--scalar-color-3);
1798
- }
1799
-
1800
- /* advanced */
1801
- .light-mode {
1802
- --scalar-color-green: #17803d;
1803
- --scalar-color-red: #e10909;
1804
- --scalar-color-yellow: #edbe20;
1805
- --scalar-color-blue: #1763a6;
1806
- --scalar-color-orange: #e25b09;
1807
- --scalar-color-purple: #5c3993;
1808
-
1809
- --scalar-button-1: rgba(0, 0, 0, 1);
1810
- --scalar-button-1-hover: rgba(0, 0, 0, 0.8);
1811
- --scalar-button-1-color: #fff;
1812
- }
1813
- .dark-mode {
1814
- --scalar-color-green: #30a159;
1815
- --scalar-color-red: #dc1b19;
1816
- --scalar-color-yellow: #eec644;
1817
- --scalar-color-blue: #2b7abf;
1818
- --scalar-color-orange: #f07528;
1819
- --scalar-color-purple: #7a59b1;
1820
-
1821
- --scalar-button-1: rgba(255, 255, 255, 1);
1822
- --scalar-button-1-hover: rgba(255, 255, 255, 0.9);
1823
- --scalar-button-1-color: black;
1824
- }
1825
- .dark-mode h2.t-editor__heading,
1826
- .dark-mode .t-editor__page-title h1,
1827
- .dark-mode h1.section-header:not(::selection),
1828
- .dark-mode .markdown h1,
1829
- .dark-mode .markdown h2,
1830
- .dark-mode .markdown h3,
1831
- .dark-mode .markdown h4,
1832
- .dark-mode .markdown h5,
1833
- .dark-mode .markdown h6 {
1834
- -webkit-text-fill-color: transparent;
1835
- background-image: linear-gradient(to right bottom, rgb(255, 255, 255) 30%, rgba(255, 255, 255, 0.38));
1836
- -webkit-background-clip: text;
1837
- background-clip: text;
1838
- }
1839
- .light-mode *::selection {
1840
- background-color: color-mix(in srgb, var(--scalar-color-accent), transparent 70%);
1841
- }
1842
- .dark-mode *::selection {
1843
- background-color: color-mix(in srgb, var(--scalar-color-accent), transparent 50%);
1844
- }
1845
- `,kA=`.light-mode {
1846
- color-scheme: light;
1847
- --scalar-color-1: #584c27;
1848
- --scalar-color-2: #616161;
1849
- --scalar-color-3: #a89f84;
1850
- --scalar-color-accent: #b58900;
1851
- --scalar-background-1: #fdf6e3;
1852
- --scalar-background-2: #eee8d5;
1853
- --scalar-background-3: #ddd6c1;
1854
- --scalar-background-accent: #b589001f;
1855
-
1856
- --scalar-border-color: #ded8c8;
1857
- --scalar-scrollbar-color: rgba(0, 0, 0, 0.18);
1858
- --scalar-scrollbar-color-active: rgba(0, 0, 0, 0.36);
1859
- --scalar-lifted-brightness: 1;
1860
- --scalar-backdrop-brightness: 1;
1861
-
1862
- --scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);
1863
- --scalar-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px, rgba(0, 0, 0, 0.08) 0px 3px 8px 0px, #eeeeed 0px 0 0 1px;
1864
-
1865
- --scalar-button-1: rgb(49 53 56);
1866
- --scalar-button-1-color: #fff;
1867
- --scalar-button-1-hover: rgb(28 31 33);
1868
-
1869
- --scalar-color-red: #b91c1c;
1870
- --scalar-color-orange: #a16207;
1871
- --scalar-color-green: #047857;
1872
- --scalar-color-blue: #1d4ed8;
1873
- --scalar-color-orange: #c2410c;
1874
- --scalar-color-purple: #6d28d9;
1875
- }
1876
-
1877
- .dark-mode {
1878
- color-scheme: dark;
1879
- --scalar-color-1: #fff;
1880
- --scalar-color-2: #cccccc;
1881
- --scalar-color-3: #6d8890;
1882
- --scalar-color-accent: #007acc;
1883
- --scalar-background-1: #00212b;
1884
- --scalar-background-2: #012b36;
1885
- --scalar-background-3: #004052;
1886
- --scalar-background-accent: #015a6f;
1887
-
1888
- --scalar-border-color: #2f4851;
1889
- --scalar-scrollbar-color: rgba(255, 255, 255, 0.24);
1890
- --scalar-scrollbar-color-active: rgba(255, 255, 255, 0.48);
1891
- --scalar-lifted-brightness: 1.45;
1892
- --scalar-backdrop-brightness: 0.5;
1893
-
1894
- --scalar-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, 0.1);
1895
- --scalar-shadow-2:
1896
- rgba(15, 15, 15, 0.2) 0px 3px 6px, rgba(15, 15, 15, 0.4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, 0.1);
1897
-
1898
- --scalar-button-1: #f6f6f6;
1899
- --scalar-button-1-color: #000;
1900
- --scalar-button-1-hover: #e7e7e7;
1901
-
1902
- --scalar-color-green: #00b648;
1903
- --scalar-color-red: #dc1b19;
1904
- --scalar-color-yellow: #ffc90d;
1905
- --scalar-color-blue: #4eb3ec;
1906
- --scalar-color-orange: #ff8d4d;
1907
- --scalar-color-purple: #b191f9;
1908
- }
1909
-
1910
- /* Sidebar */
1911
- .light-mode .t-doc__sidebar {
1912
- --scalar-sidebar-background-1: var(--scalar-background-1);
1913
- --scalar-sidebar-item-hover-color: currentColor;
1914
- --scalar-sidebar-item-hover-background: var(--scalar-background-2);
1915
- --scalar-sidebar-item-active-background: var(--scalar-background-accent);
1916
- --scalar-sidebar-border-color: var(--scalar-border-color);
1917
- --scalar-sidebar-color-1: var(--scalar-color-1);
1918
- --scalar-sidebar-color-2: var(--scalar-color-2);
1919
- --scalar-sidebar-color-active: var(--scalar-color-accent);
1920
- --scalar-sidebar-search-background: var(--scalar-background-2);
1921
- --scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);
1922
- --scalar-sidebar-search--color: var(--scalar-color-3);
1923
- }
1924
-
1925
- .dark-mode .t-doc__sidebar {
1926
- --scalar-sidebar-background-1: var(--scalar-background-1);
1927
- --scalar-sidebar-item-hover-color: currentColor;
1928
- --scalar-sidebar-item-hover-background: var(--scalar-background-2);
1929
- --scalar-sidebar-item-active-background: var(--scalar-background-accent);
1930
- --scalar-sidebar-border-color: var(--scalar-border-color);
1931
- --scalar-sidebar-color-1: var(--scalar-color-1);
1932
- --scalar-sidebar-color-2: var(--scalar-color-2);
1933
- --scalar-sidebar-color-active: var(--scalar-sidebar-color-1);
1934
- --scalar-sidebar-search-background: var(--scalar-background-2);
1935
- --scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);
1936
- --scalar-sidebar-search--color: var(--scalar-color-3);
1937
- }
1938
- *::selection {
1939
- background-color: color-mix(in srgb, var(--scalar-color-accent), transparent 70%);
1940
- }
1941
- `;function AA(){if(typeof window>`u`)return!1;let e=document.createElement(`div`);e.setAttribute(`style`,`width:30px;height:30px;overflow-y:scroll;`),e.classList.add(`scrollbar-test`);let t=document.createElement(`div`);t.setAttribute(`style`,`width:100%;height:40px`),e.appendChild(t),document.body.appendChild(e);let n=30-e.firstChild.clientWidth;return document.body.removeChild(e),!!n}var jA=[`alternate`,`default`,`moon`,`purple`,`solarized`,`bluePlanet`,`deepSpace`,`saturn`,`kepler`,`elysiajs`,`fastify`,`mars`,`laserwave`,`none`],MA={default:`Default`,alternate:`Alternate`,moon:`Moon`,purple:`Purple`,solarized:`Solarized`,elysiajs:`Elysia.js`,fastify:`Fastify`,bluePlanet:`Blue Planet`,saturn:`Saturn`,kepler:`Kepler-11e`,mars:`Mars`,deepSpace:`Deep Space`,laserwave:`Laserwave`,none:`None`},NA={default:{uid:`qTQR9jSM8E-LihpyZzPOi`,name:`Default`,description:`Default Scalar theme`,theme:bA,slug:`default`},alternate:{uid:`2skUDSH4S8HYFF9yXysr-`,name:`Alternate`,description:`Alternate Scalar theme`,theme:_A,slug:`alternate`},moon:{uid:`DG9ZUNp5lJhDeX_kPX4Bl`,name:`Moon`,description:`Lunar styles`,theme:EA,slug:`moon`},purple:{uid:`pE_1ysxcZ-y2LM1GGNBUv`,name:`Purple`,description:`Purple Scalar theme`,theme:DA,slug:`purple`},solarized:{uid:`BdGVG1vf-4nYl3wJKyj8l`,name:`Solarized`,description:`Solarized Scalar theme`,theme:kA,slug:`solarized`},bluePlanet:{uid:`X12IfAvl7ue-42V2lW40S`,name:`Blue Planet`,description:`Blue Planet Scalar theme`,theme:vA,slug:`blue-planet`},deepSpace:{uid:`K8b38NWQiicq4-zXGXKdI`,name:`Deep Space`,description:`Deep Space Scalar theme`,theme:yA,slug:`deep-space`},saturn:{uid:`1jyAjmbIZQG-RUU4Ugk9o`,name:`Saturn`,description:`Saturn Scalar theme`,theme:OA,slug:`saturn`},kepler:{uid:`jZ6dnWbtqQ0Hz3s9jLPH0`,name:`Kepler-11e`,description:`Kepler-11e Scalar theme`,theme:CA,slug:`kepler-11e`},mars:{uid:`YY4LQgwiXix55-TmMz9qd`,name:`Mars`,description:`Mars Scalar theme`,theme:TA,slug:`mars`},laserwave:{uid:`c5fZEi-K-hP-xXf885dkf`,name:`Laserwave`,description:`Laserwave Scalar theme`,theme:wA,slug:`laserwave`},elysiajs:{uid:`nEVZkRmCylPkT0o9YJa7y`,name:`Elysia.js`,description:`Elysia.js theme`,theme:xA,slug:`elysiajs`},fastify:{uid:`nTZcdcM2_yHFZFxTQe9Kk`,name:`Fastify`,description:`Fastify theme`,theme:SA,slug:`fastify`}};Object.values(NA);var PA=(e,t)=>{let{fonts:n=!0,layer:r=`scalar-theme`}=t??{},i=[NA[e||`default`]?.theme??`/* basic theme */
1942
- :root {
1943
- --scalar-text-decoration: underline;
1944
- --scalar-text-decoration-hover: underline;
1945
- }
1946
- .light-mode {
1947
- --scalar-background-1: #fff;
1948
- --scalar-background-2: #f6f6f6;
1949
- --scalar-background-3: #e7e7e7;
1950
- --scalar-background-accent: #8ab4f81f;
1951
-
1952
- --scalar-color-1: #1b1b1b;
1953
- --scalar-color-2: #757575;
1954
- --scalar-color-3: #8e8e8e;
1955
-
1956
- --scalar-color-accent: #0099ff;
1957
- --scalar-border-color: #dfdfdf;
1958
- }
1959
- .dark-mode {
1960
- --scalar-background-1: #0f0f0f;
1961
- --scalar-background-2: #1a1a1a;
1962
- --scalar-background-3: #272727;
1963
-
1964
- --scalar-color-1: #e7e7e7;
1965
- --scalar-color-2: #a4a4a4;
1966
- --scalar-color-3: #797979;
1967
-
1968
- --scalar-color-accent: #00aeff;
1969
- --scalar-background-accent: #3ea6ff1f;
1970
-
1971
- --scalar-border-color: #2d2d2d;
1972
- }
1973
- /* Document Sidebar */
1974
- .light-mode,
1975
- .dark-mode {
1976
- --scalar-sidebar-background-1: var(--scalar-background-1);
1977
- --scalar-sidebar-color-1: var(--scalar-color-1);
1978
- --scalar-sidebar-color-2: var(--scalar-color-2);
1979
- --scalar-sidebar-border-color: var(--scalar-border-color);
1980
-
1981
- --scalar-sidebar-item-hover-background: var(--scalar-background-2);
1982
- --scalar-sidebar-item-hover-color: var(--scalar-sidebar-color-2);
1983
-
1984
- --scalar-sidebar-item-active-background: var(--scalar-background-2);
1985
- --scalar-sidebar-color-active: var(--scalar-sidebar-color-1);
1986
-
1987
- --scalar-sidebar-indent-border: var(--scalar-sidebar-border-color);
1988
- --scalar-sidebar-indent-border-hover: var(--scalar-sidebar-border-color);
1989
- --scalar-sidebar-indent-border-active: var(--scalar-sidebar-border-color);
1990
-
1991
- --scalar-sidebar-search-background: color-mix(in srgb, var(--scalar-background-2), var(--scalar-background-1));
1992
- --scalar-sidebar-search-color: var(--scalar-color-3);
1993
- --scalar-sidebar-search-border-color: var(--scalar-border-color);
1994
- }
1995
- /* advanced */
1996
- .light-mode {
1997
- --scalar-color-green: #069061;
1998
- --scalar-color-red: #ef0006;
1999
- --scalar-color-yellow: #edbe20;
2000
- --scalar-color-blue: #0082d0;
2001
- --scalar-color-orange: #ff5800;
2002
- --scalar-color-purple: #5203d1;
2003
-
2004
- --scalar-link-color: var(--scalar-color-1);
2005
- --scalar-link-color-hover: var(--scalar-link-color);
2006
-
2007
- --scalar-button-1: rgba(0, 0, 0, 1);
2008
- --scalar-button-1-hover: rgba(0, 0, 0, 0.8);
2009
- --scalar-button-1-color: #fff;
2010
-
2011
- --scalar-tooltip-background: color-mix(in srgb, #1a1a1a, transparent 10%);
2012
- --scalar-tooltip-color: color-mix(in srgb, #fff, transparent 15%);
2013
-
2014
- --scalar-color-alert: color-mix(in srgb, var(--scalar-color-orange), var(--scalar-color-1) 20%);
2015
- --scalar-color-danger: color-mix(in srgb, var(--scalar-color-red), var(--scalar-color-1) 20%);
2016
-
2017
- --scalar-background-alert: color-mix(in srgb, var(--scalar-color-orange), var(--scalar-background-1) 95%);
2018
- --scalar-background-danger: color-mix(in srgb, var(--scalar-color-red), var(--scalar-background-1) 95%);
2019
- }
2020
- .dark-mode {
2021
- --scalar-color-green: #00b648;
2022
- --scalar-color-red: #dc1b19;
2023
- --scalar-color-yellow: #ffc90d;
2024
- --scalar-color-blue: #4eb3ec;
2025
- --scalar-color-orange: #ff8d4d;
2026
- --scalar-color-purple: #b191f9;
2027
-
2028
- --scalar-link-color: var(--scalar-color-1);
2029
- --scalar-link-color-hover: var(--scalar-link-color);
2030
-
2031
- --scalar-button-1: rgba(255, 255, 255, 1);
2032
- --scalar-button-1-hover: rgba(255, 255, 255, 0.9);
2033
- --scalar-button-1-color: black;
2034
-
2035
- --scalar-tooltip-background: color-mix(in srgb, var(--scalar-background-1), #fff 10%);
2036
- --scalar-tooltip-color: color-mix(in srgb, #fff, transparent 5%);
2037
-
2038
- --scalar-color-danger: color-mix(in srgb, var(--scalar-color-red), var(--scalar-background-1) 20%);
2039
-
2040
- --scalar-background-alert: color-mix(in srgb, var(--scalar-color-orange), var(--scalar-background-1) 95%);
2041
- --scalar-background-danger: color-mix(in srgb, var(--scalar-color-red), var(--scalar-background-1) 95%);
2042
- }
2043
- @supports (color: color(display-p3 1 1 1)) {
2044
- .light-mode {
2045
- --scalar-color-accent: color(display-p3 0 0.6 1 / 1);
2046
- --scalar-color-green: color(display-p3 0.023529 0.564706 0.380392 / 1);
2047
- --scalar-color-red: color(display-p3 0.937255 0 0.023529 / 1);
2048
- --scalar-color-yellow: color(display-p3 0.929412 0.745098 0.12549 / 1);
2049
- --scalar-color-blue: color(display-p3 0 0.509804 0.815686 / 1);
2050
- --scalar-color-orange: color(display-p3 1 0.4 0.02);
2051
- --scalar-color-purple: color(display-p3 0.321569 0.011765 0.819608 / 1);
2052
- }
2053
- .dark-mode {
2054
- --scalar-color-accent: color(display-p3 0.07 0.67 1);
2055
- --scalar-color-green: color(display-p3 0 0.713725 0.282353 / 1);
2056
- --scalar-color-red: color(display-p3 0.862745 0.105882 0.098039 / 1);
2057
- --scalar-color-yellow: color(display-p3 1 0.788235 0.05098 / 1);
2058
- --scalar-color-blue: color(display-p3 0.305882 0.701961 0.92549 / 1);
2059
- --scalar-color-orange: color(display-p3 1 0.552941 0.301961 / 1);
2060
- --scalar-color-purple: color(display-p3 0.694118 0.568627 0.976471 / 1);
2061
- }
2062
- }
2063
- `,n?gA:``].join(``);return r?`@layer ${r} {\n${i}}`:i},FA=[`--scalar-color-1`,`--scalar-color-2`,`--scalar-color-3`,`--scalar-background-1`,`--scalar-background-2`,`--scalar-background-3`,`--scalar-color-accent`];function IA(e,t){let n=[...t.matchAll(RegExp(`(${e}): ([^;]+);`,`gm`))];return n.length===0?{}:Object.fromEntries(n.map(e=>[e[1],e[2]]))}function LA(e){return e?{...IA(`--scalar-color-[1-3]`,e),...IA(`--scalar-background-[1-3]`,e),...IA(`--scalar-color-accent`,e)}:{}}function RA(e){return{colors:T(()=>({light:LA(r(e).match(/\.light-mode[^{]*{[^}]*}/m)?.[0]),dark:LA(r(e).match(/\.dark-mode[^{]*{[^}]*}/m)?.[0])}))}}var zA=E({inheritAttrs:!1,__name:`ScalarThemeSwatches`,props:{css:{}},setup(e){let{colors:n}=RA(()=>e.css),{cx:r}=Ut();return(e,i)=>(D(),x(`div`,w({style:{"--bg-light":t(n).light[`--scalar-background-1`],"--bg-dark":t(n).dark[`--scalar-background-1`]}},t(r)(`flex *:size-3 overflow-hidden rounded`,`bg-(--bg-light) dark:bg-(--bg-dark)`)),[(D(!0),x(O,null,S(t(FA),e=>(D(),x(`div`,{key:e,class:`bg-(--bg-light) dark:bg-(--bg-dark)`,style:le({"--bg-light":t(n).light[e],"--bg-dark":t(n).dark[e]})},null,4))),128))],16))}}),BA={class:`min-w-0 flex-1 truncate text-left`},VA={class:`text-c-1 inline-block min-w-0 flex-1 truncate`},HA=E({__name:`ApiReferenceToolbarConfigTheme`,props:{modelValue:{},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let n=f(e,`modelValue`),r=T(()=>jA.filter(e=>e!==`none`).map(e=>({id:e,label:MA[e],css:NA[e].theme}))),i=T({get:()=>{let e=n.value??`default`;return r.value.find(t=>t.id===e)??r.value[0]},set:e=>n.value=e.id});return(e,n)=>(D(),N(t(hr),{modelValue:i.value,"onUpdate:modelValue":n[0]||=e=>i.value=e,options:r.value,resize:``},{default:k(({open:e})=>[u(t(Qn),null,{default:k(()=>[b(`div`,BA,A(i.value.label),1),u(t(zA),{class:`mr-2`,css:i.value.css},null,8,[`css`]),u(t(En),{class:C([`size-3.5 transition-transform`,{"rotate-180":e}])},null,8,[`class`])]),_:2},1024)]),option:k(({selected:e,option:n})=>[u(t(yr),{selected:e},null,8,[`selected`]),b(`span`,VA,A(n.label),1),u(t(zA),{css:n.css},null,8,[`css`])]),_:1},8,[`modelValue`,`options`]))}}),UA={class:`flex flex-col gap-4`},WA=E({__name:`ModifyConfiguration`,props:s({configuration:{}},{overrides:{},overridesModifiers:{}}),emits:[`update:overrides`],setup(e){let n=f(e,`overrides`),{translate:r}=Z(),i=T(()=>Vt({...n.value,...e.configuration,...n.value})),a=T({get:()=>n.value?.theme??e.configuration?.theme??`default`,set:e=>n.value={...n.value,theme:e}}),o=T({get:()=>n.value?.layout??e.configuration?.layout??`modern`,set:e=>n.value={...n.value,layout:e}});return(s,c)=>(D(),N(Pk,{class:`w-120`},{label:k(()=>[d(A(t(r)(`developerTools.configure`)),1)]),default:k(()=>[u(t(tA),null,{label:k(()=>[d(A(t(r)(`developerTools.scalarConfiguration`)),1)]),default:k(()=>[u(t(Eo),{class:`bg-b-1.5 flex max-h-40 flex-col rounded border text-sm`,content:i.value,lang:`json`},null,8,[`content`])]),_:1}),b(`div`,UA,[u(t(Jk),null,{label:k(()=>[d(A(t(r)(`developerTools.theme`)),1)]),default:k(()=>[u(HA,{modelValue:a.value,"onUpdate:modelValue":c[0]||=e=>a.value=e},null,8,[`modelValue`])]),_:1}),u(t(Jk),null,{label:k(()=>[d(A(t(r)(`developerTools.layout`)),1)]),default:k(()=>[u(lA,{modelValue:o.value,"onUpdate:modelValue":c[1]||=e=>o.value=e},null,8,[`modelValue`])]),_:1}),u(t(Jk),{is:`div`},{label:k(()=>[d(A(t(r)(`developerTools.layoutOptions`)),1)]),default:k(()=>[u(hA,{modelValue:n.value,"onUpdate:modelValue":c[2]||=e=>n.value=e,configuration:e.configuration},null,8,[`modelValue`,`configuration`])]),_:1})])]),_:1}))}}),GA={class:`flex items-center flex-1 relative`},KA={key:0,class:`select-none whitespace-nowrap text-transparent`},qA=[`aria-readonly`,`readonly`],JA={key:1,class:`absolute flex items-center inset-0 select-none overflow-hidden whitespace-nowrap`},YA={key:0,class:`text-c-2`},XA={class:`text-transparent`},ZA={key:1,class:`text-c-2`},QA=E({inheritAttrs:!1,__name:`ScalarTextInput`,props:s({readonly:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:s([`click`],[`update:modelValue`]),setup(e,{emit:r}){let i=r,a=f(e,`modelValue`),o=n(),{stylingAttrsCx:s,otherAttrs:c}=Ut();ie(()=>{`autofocus`in c.value&&o.value?.focus()});function l(t){i(`click`,t),e.readonly?o.value?.select():o.value?.focus()}return(n,r)=>(D(),N(t(Qn),w({is:`div`},t(s)(`cursor-text text-c-1`,e.readonly?``:`focus-within:bg-b-1`),{onClick:l}),{default:k(()=>[b(`div`,GA,[n.$slots.prefix?(D(),x(`div`,KA,[P(n.$slots,`prefix`)])):F(``,!0),y(b(`input`,w({ref_key:`input`,ref:o,"onUpdate:modelValue":r[0]||=e=>a.value=e,"aria-readonly":e.readonly||void 0,class:`z-1 min-w-0 flex-1 rounded-none border-none bg-transparent placeholder:font-[inherit] focus-within:outline-none`,readonly:e.readonly},t(c)),null,16,qA),[[ge,a.value]]),n.$slots.prefix||n.$slots.suffix?(D(),x(`div`,JA,[n.$slots.prefix?(D(),x(`span`,YA,[P(n.$slots,`prefix`)])):F(``,!0),b(`span`,XA,A(a.value||n.$attrs.placeholder),1),n.$slots.suffix?(D(),x(`span`,ZA,[P(n.$slots,`suffix`)])):F(``,!0)])):F(``,!0)]),P(n.$slots,`aside`)]),_:3},16))}}),$A=E({__name:`ScalarTextInputCopy`,props:s({duration:{default:1500},editable:{type:Boolean},immediate:{type:Boolean}},{modelValue:{},modelModifiers:{},copied:{type:Boolean,default:!1},copiedModifiers:{}}),emits:[`update:modelValue`,`update:copied`],setup(e){ie(()=>{e.immediate&&n.value&&i(n.value)});let n=f(e,`modelValue`),r=f(e,`copied`),{copy:i,copied:a}=fo({legacy:!0,copiedDuring:e.duration});return m(a,e=>r.value=e),(o,s)=>(D(),N(QA,{modelValue:n.value,"onUpdate:modelValue":s[1]||=e=>n.value=e,readonly:!e.editable,onClick:s[2]||=e=>n.value&&t(i)(n.value)},{aside:k(()=>[u(t(vn),{class:`z-1`,copied:r.value||t(a),placement:`left`,onClick:s[0]||=I(e=>n.value&&t(i)(n.value),[`stop`])},pe({backdrop:k(()=>[u(t(Ar),{class:`bg-b-1.5`})]),_:2},[o.$slots.copy?{name:`copy`,fn:k(()=>[P(o.$slots,`copy`)]),key:`0`}:void 0,o.$slots.copied?{name:`copied`,fn:k(()=>[P(o.$slots,`copied`)]),key:`1`}:void 0]),1032,[`copied`])]),_:3},8,[`modelValue`,`readonly`]))}}),ej=E({__name:`ApiReferenceToolbarShareTemporary`,props:s({workspace:{},externalUrls:{}},{url:{},urlModifiers:{}}),emits:[`update:url`],setup(e){let{toast:n}=qn(),r=da(),{translate:i}=Z(),a=f(e,`url`);async function o(){if(r.isLoading||!e.workspace||a.value)return;r.start();let t=e.workspace.exportActiveDocument(`json`);if(!t){n(i(`developerTools.unableToExportDocument`),`error`),await r.invalidate();return}try{let n=await hb(t,e.externalUrls);await r.validate({duration:900,persist:!0}),a.value=n}catch(e){n(e instanceof Error?e.message:i(`developerTools.unknownError`),`error`),await r.invalidate()}}return(n,s)=>(D(),x(O,null,[a.value?(D(),N(t($A),{key:0,immediate:``,modelValue:a.value,name:`temporary-link`,placeholder:`${e.externalUrls.registryUrl}/share/apis/…`},null,8,[`modelValue`,`placeholder`])):(D(),N(t(oo),{key:1,class:`h-auto p-2.5`,loader:t(r),variant:`gradient`,onClick:o},{default:k(()=>[d(A(t(i)(`developerTools.uploadDocument`)),1)]),_:1},8,[`loader`])),u(Uk,{class:`-mt-1`},{default:k(()=>[d(A(t(i)(`developerTools.temporaryLinkExpiration`)),1)]),_:1})],64))}}),tj={class:`text-c-2 mb-2 leading-normal`},nj=E({__name:`ShareApiReference`,props:{workspace:{},externalUrls:{}},setup(e){let{translate:n}=Z();return(r,i)=>(D(),N(Pk,{class:`w-120`},{label:k(()=>[d(A(t(n)(`developerTools.share`)),1)]),default:k(()=>[u(t(tA),null,{label:k(()=>[d(A(t(n)(`developerTools.shareTitle`)),1)]),default:k(()=>[b(`p`,tj,A(t(n)(`developerTools.shareDescription`)),1),u(ej,{externalUrls:e.externalUrls,workspace:e.workspace},null,8,[`externalUrls`,`workspace`])]),_:1})]),_:1}))}}),rj=[`aria-label`],ij={class:`-mx-2 flex max-w-(--refs-content-max-width) flex-1 items-center`},aj={class:`flex flex-1 items-center`},oj=E({__name:`DeveloperTools`,props:s({workspace:{},configuration:{},externalUrls:{}},{overrides:{},overridesModifiers:{}}),emits:[`update:overrides`],setup(e){let n=f(e,`overrides`),{translate:r}=Z(),i=T(()=>e.configuration?.showDeveloperTools===`always`?!0:e.configuration?.showDeveloperTools===`never`||typeof window>`u`?!1:Xt(window.location.href));return(a,o)=>i.value?(D(),x(`header`,{key:0,"aria-label":t(r)(`developerTools.title`),class:`api-reference-toolbar bg-b-1 relative z-1 flex h-10 justify-center border-b px-15`},[b(`div`,ij,[b(`div`,aj,[u(zk)]),u(WA,{overrides:n.value,"onUpdate:overrides":o[0]||=e=>n.value=e,configuration:e.configuration},null,8,[`overrides`,`configuration`]),e.workspace?(D(),x(O,{key:0},[u(nj,{externalUrls:e.externalUrls,workspace:e.workspace},null,8,[`externalUrls`,`workspace`]),u(rA,{externalUrls:e.externalUrls,workspace:e.workspace},null,8,[`externalUrls`,`workspace`])],64)):F(``,!0)])],8,rj)):F(``,!0)}}),sj={key:0,class:`document-selector px-3 pt-3`},cj={class:`group/dropdown-label text-c-2 hover:text-c-1 flex w-full cursor-pointer items-center gap-1 font-medium`,type:`button`},lj={class:`overflow-hidden text-base text-ellipsis`},uj=E({__name:`DocumentSelector`,props:{options:{},modelValue:{}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,i=n,a=T(()=>r.options.map(e=>({id:e.id,label:e.label}))),o=T(()=>a.value.find(e=>e.id===r.modelValue));return(n,r)=>e.options.length>1?(D(),x(`div`,sj,[u(t(fn),{modelValue:o.value,options:a.value,resize:``,"onUpdate:modelValue":r[0]||=e=>i(`update:modelValue`,e.id)},{default:k(({open:e})=>[b(`button`,cj,[b(`span`,lj,A(o.value?.label||`Select API`),1),u(t(En),{class:C([`size-3 text-current transition-transform`,{"rotate-180":e}]),weight:`bold`},null,8,[`class`])])]),_:1},8,[`modelValue`,`options`])])):F(``,!0)}}),dj=()=>typeof window>`u`||typeof window?.matchMedia!=`function`?`light`:window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`;function fj(){try{return new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window})}catch{return new MouseEvent(`click`,{bubbles:!0,cancelable:!0})}}async function pj(e){try{return JSON.parse(e)}catch{let{parse:t}=await Xe(async()=>{let{parse:e}=await import(`./browser-BpWB_ayN.js`).then(e=>e.n);return{parse:e}},__vite__mapDeps([46,6]));return t(e,{maxAliasCount:1e4,merge:!0})}}function mj(e){let t=e.trimStart();return t.startsWith(`{`)||t.startsWith(`[`)?`json`:`yaml`}async function hj(e,t,n){if(t===n)return e;let r=await pj(e);if(n===`json`)return JSON.stringify(r,null,2);let{stringify:i}=await Xe(async()=>{let{stringify:e}=await import(`./browser-BpWB_ayN.js`).then(e=>e.n);return{stringify:e}},__vite__mapDeps([46,6]));return i(r)}async function gj(e,t,n){let r=mj(e),i=n??r,a=`${t??`openapi`}.${i}`,o=i===`json`?`application/json`:`application/x-yaml`,s=await hj(e,r,i),c=new Blob([s],{type:o}),l=URL.createObjectURL(c),u=document.createElement(`a`);u.href=l,u.download=a,u.dispatchEvent(fj()),setTimeout(()=>{window.URL.revokeObjectURL(l),u.remove()},100)}var _j=e=>{let t=Lb().get();Mt(t)&&!e.workspace[`x-scalar-default-client`]&&e.update(`x-scalar-default-client`,t)},vj=(e,t)=>{let n=Rb().getAuth(t);e.auth.load({[t]:n})},yj=(e,t)=>{let n={hooks:{}};return m([()=>e.value.onBeforeRequest,()=>e.value.onRequestBuilt,()=>e.value.onRequestSent,()=>t.value],([e,t,r,i])=>{let a=li(i);n.hooks||={},n.hooks.beforeRequest=e?async t=>{let n=uo(t.requestBuilder,{envVariables:a,allowMissingRequestServerBase:!0});if(!n.ok){console.error(`[@scalar/api-reference] onBeforeRequest was not run because the request could not be built:`,n.message??n.error);return}await e({request:Na(...n.data.requestPayload),requestBuilder:t.requestBuilder,envVariables:a})}:void 0,n.hooks.requestBuilt=t?async e=>{await t({request:e.request,requestBuilder:e.requestBuilder,envVariables:a})}:void 0,n.hooks.responseReceived=r?e=>{r(e.request.url)}:void 0},{immediate:!0}),[n]},bj=new Set([`theme-color`,`google-site-verification`,`og`,`article`,`book`,`profile`,`twitter`,`author`]),xj={META:new Set([`twitter`]),OG:new Set([`og`,`book`,`article`,`profile`,`fb`]),MEDIA:new Set([`ogImage`,`ogVideo`,`ogAudio`,`twitterImage`]),HTTP_EQUIV:new Set([`contentType`,`defaultStyle`,`xUaCompatible`])},Sj={articleExpirationTime:`article:expiration_time`,articleModifiedTime:`article:modified_time`,articlePublishedTime:`article:published_time`,bookReleaseDate:`book:release_date`,fbAppId:`fb:app_id`,ogAudioSecureUrl:`og:audio:secure_url`,ogAudioUrl:`og:audio`,ogImageSecureUrl:`og:image:secure_url`,ogImageUrl:`og:image`,ogSiteName:`og:site_name`,ogVideoSecureUrl:`og:video:secure_url`,ogVideoUrl:`og:video`,profileFirstName:`profile:first_name`,profileLastName:`profile:last_name`,profileUsername:`profile:username`,msapplicationConfig:`msapplication-Config`,msapplicationTileColor:`msapplication-TileColor`,msapplicationTileImage:`msapplication-TileImage`},Cj={appleItunesApp:{unpack:{entrySeparator:`, `,resolve:({key:e,value:t})=>`${wj(e)}=${t}`}},refresh:{metaKey:`http-equiv`,unpack:{entrySeparator:`;`,resolve:({key:e,value:t})=>e===`seconds`?`${t}`:void 0}},robots:{unpack:{entrySeparator:`, `,resolve:({key:e,value:t})=>typeof t==`boolean`?wj(e):`${wj(e)}:${t}`}},contentSecurityPolicy:{metaKey:`http-equiv`,unpack:{entrySeparator:`; `,resolve:({key:e,value:t})=>`${wj(e)} ${t}`}},charset:{}};function wj(e){let t=e.replace(/([A-Z])/g,`-$1`).toLowerCase(),n=t.indexOf(`-`);return n===-1?t:xj.META.has(t.slice(0,n))||xj.OG.has(t.slice(0,n))?e.replace(/([A-Z])/g,`:$1`).toLowerCase():t}function Tj(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>String(t)!==`false`&&e))}function Ej(e){return Array.isArray(e)?e.map(Ej):!e||typeof e!=`object`?e:Object.fromEntries(Object.entries(e).map(([e,t])=>[wj(e),Ej(t)]))}function Dj(e,t={}){let{entrySeparator:n=``,keyValueSeparator:r=``,wrapValue:i,resolve:a}=t;return Object.entries(e).map(([e,n])=>{if(a){let t=a({key:e,value:n});if(t!==void 0)return t}let o=typeof n==`object`?Dj(n,t):typeof n==`number`?n.toString():typeof n==`string`&&i?`${i}${n.replace(new RegExp(i,`g`),`\\${i}`)}${i}`:n;return`${e}${r}${o}`}).join(n)}function Oj(e,t){let n=Tj(t),r=wj(e),i=kj(r);return bj.has(r)?Mj(Object.fromEntries(Object.entries(n).map(([t,n])=>[`${e}${t===`url`?``:`${t[0].toUpperCase()}${t.slice(1)}`}`,n]))||{}).sort((e,t)=>(e[i]?.length||0)-(t[i]?.length||0)):[{[i]:r,...n}]}function kj(e){if(Cj[e]?.metaKey===`http-equiv`||xj.HTTP_EQUIV.has(e))return`http-equiv`;let t=wj(e),n=t.indexOf(`:`);return n===-1?`name`:xj.OG.has(t.slice(0,n))?`property`:`name`}function Aj(e){return Sj[e]||wj(e)}function jj(e,t){return t===`refresh`?`${e.seconds};url=${e.url}`:Dj(Ej(e),{keyValueSeparator:`=`,entrySeparator:`, `,resolve:({value:e,key:t})=>e===null?``:typeof e==`boolean`?t:void 0,...Cj[t]?.unpack})}function Mj(e){let t=[],n={};for(let[r,i]of Object.entries(e)){if(Array.isArray(i)){if(r===`themeColor`){i.forEach(e=>{typeof e==`object`&&e&&t.push({name:`theme-color`,...e})});continue}for(let e of i)if(typeof e==`object`&&e){let n=[],i=[];for(let[t,a]of Object.entries(e)){let e=Mj({[`${r}${t===`url`?``:`:${t}`}`]:a});(t===`url`?n:i).push(...e)}t.push(...n,...i)}else t.push(...typeof e==`string`?Mj({[r]:e}):Oj(r,e));continue}if(typeof i==`object`&&i){if(xj.MEDIA.has(r)){let e=r.startsWith(`twitter`)?`twitter`:`og`,n=r.replace(/^(og|twitter)/,``).toLowerCase(),a=e===`twitter`?`name`:`property`;i.url&&t.push({[a]:`${e}:${n}`,content:i.url}),i.secureUrl&&t.push({[a]:`${e}:${n}:secure_url`,content:i.secureUrl});for(let[r,o]of Object.entries(i))r!==`url`&&r!==`secureUrl`&&t.push({[a]:`${e}:${n}:${r}`,content:o})}else bj.has(wj(r))?t.push(...Oj(r,i)):n[r]=Tj(i)}else n[r]=i}let r=Object.entries(n).map(([e,t])=>{if(e===`charset`)return{charset:t===null?`_null`:t};let n=kj(e),r=Aj(e),i=t===null?`_null`:typeof t==`object`?jj(t,e):typeof t==`number`?t.toString():t;return n===`http-equiv`?{"http-equiv":r,content:i}:{[n]:r,content:i}});return[...t,...r].map(e=>`content`in e&&e.content===`_null`?{...e,content:null}:e)}function Nj(e){return e}var Pj=Nj({key:`flatMeta`,hooks:{"entries:normalize":e=>{let t=[];e.tags=e.tags.map(e=>e.tag===`_flatMeta`?(t.push(Mj(e.props).map(t=>({...e,tag:`meta`,props:t}))),!1):e).filter(Boolean).concat(...t)}}});function Fj(e,t,n){typeof e==`function`&&(!n||n!==`titleTemplate`&&(n[0]!==`o`||n[1]!==`n`))&&(e=e());let r=t?t(n,e):e;if(Array.isArray(r))return r.map(e=>Fj(e,t));if(r?.constructor===Object){let e={};for(let n of Object.keys(r))e[n]=Fj(r[n],t,n);return e}return r}var Ij=(e,t)=>a(t)?r(t):t,Lj=`usehead`;function Rj(){if(p()){let e=h(Lj);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function zj(e,t={}){let n=t.head||Rj();return n.ssr?n.push(e||{},t):Bj(n,e,t)}function Bj(e,t,r={}){let i=n(!1),a;return re(()=>{let n=i.value?{}:Fj(t,Ij);a?a.patch(n):a=e.push(n,r)}),g()&&(ce(()=>{a.dispose()}),de(()=>{i.value=!0}),ue(()=>{i.value=!1})),a}function Vj(e={},t={}){(t.head||Rj()).use(Pj);let{title:n,titleTemplate:r,...i}=e;return zj({title:n,titleTemplate:r,_flatMeta:i},t)}var Hj=({config:e,store:t,isDarkMode:n})=>{m(()=>r(e).defaultHttpClient,e=>{if(e){let{targetKey:n,clientKey:r}=e,i=`${n}/${r}`;ur(i)&&t.update(`x-scalar-default-client`,i)}},{immediate:!0}),m(()=>r(e).darkMode,e=>t.update(`x-scalar-color-mode`,e?`dark`:`light`)),m(()=>n.value,e=>t.update(`x-scalar-color-mode`,e?`dark`:`light`),{immediate:!0}),r(e).metaData&&Vj(r(e).metaData),m(()=>r(e).proxyUrl,e=>t.update(`x-scalar-active-proxy`,e),{immediate:!0}),xi(T(()=>r(e).favicon))};z({name:U({typeComment:"Name of specification extension property. Has to start with `x-`."}),component:ln({typeComment:`Vue component to render the specification extension`}),renderer:J(ln({typeComment:`Custom renderer to render the specification extension`}))});var Uj=z({component:ln({typeComment:`Vue component to render in the view`}),renderer:J(ln({typeComment:`Custom renderer to render the view component (e.g., ReactRenderer)`})),props:J(H(U(),vi()),{typeComment:`Additional props to pass to the component`}),sidebar:J(z({show:K(),label:U()}),{typeComment:`Sidebar configuration. Set show: true to display in sidebar.`})});z({"content.start":J(Y(Uj),{typeComment:`Components to render before the Introduction/Info section`}),"content.end":J(Y(Uj),{typeComment:`Components to render at specific views in the API Reference`})}),z({onInit:J(ho()),onConfigChange:J(ho()),onDestroy:J(ho())});var Wj=ho(),Gj=z({dashboardUrl:U({default:`https://dashboard.scalar.com`}),registryUrl:U({default:`https://registry.scalar.com`}),proxyUrl:U({default:`https://proxy.scalar.com`}),apiBaseUrl:U({default:`https://api.scalar.com`})},{typeComment:`External service URLs used by Scalar packages`}),Kj=z({title:J(U(),{typeComment:`The title of the OpenAPI document.`}),slug:J(U(),{typeComment:`The slug of the OpenAPI document used in the URL. If none is passed, the title will be used. If no title is used, it will just use the index.`}),authentication:J(vi(),{typeComment:`Prefill authentication`}),baseServerURL:J(U(),{typeComment:`Base URL for the API server`}),hideClientButton:K({default:!1,typeComment:`Whether to hide the client button`}),proxyUrl:J(U(),{typeComment:`URL to a request proxy for the API client`}),oauth2RedirectUri:J(U(),{typeComment:`Default OAuth 2.0 redirect URI used to prefill auth flows in the API client.`}),searchHotKey:J(W([B(`a`),B(`b`),B(`c`),B(`d`),B(`e`),B(`f`),B(`g`),B(`h`),B(`i`),B(`j`),B(`k`),B(`l`),B(`m`),B(`n`),B(`o`),B(`p`),B(`q`),B(`r`),B(`s`),B(`t`),B(`u`),B(`v`),B(`w`),B(`x`),B(`y`),B(`z`)]),{typeComment:`Key used with CTRL/CMD to open the search modal (defaults to 'k' e.g. CMD+k)`}),servers:J(Y(vi()),{typeComment:`List of OpenAPI server objects`}),showSidebar:K({default:!0,typeComment:`Whether to show the sidebar`}),showDeveloperTools:W([B(`localhost`),B(`always`),B(`never`)],{typeComment:`Whether and when to show the developer tools.`}),showToolbar:W([B(`localhost`),B(`always`),B(`never`)],{typeComment:`@deprecated Use showDeveloperTools instead`}),operationTitleSource:W([B(`summary`),B(`path`)],{typeComment:`Whether to use the operation summary or the operation path for the sidebar and search`}),theme:W([B(`default`),B(`alternate`),B(`moon`),B(`purple`),B(`solarized`),B(`bluePlanet`),B(`deepSpace`),B(`saturn`),B(`kepler`),B(`elysiajs`),B(`fastify`),B(`mars`),B(`laserwave`),B(`none`)],{typeComment:`A string to use one of the color presets`}),_integration:J(W([B(`adonisjs`),B(`astro`),B(`docusaurus`),B(`dotnet`),B(`elysiajs`),B(`express`),B(`fastapi`),B(`fastify`),B(`go`),B(`hono`),B(`html`),B(`laravel`),B(`litestar`),B(`nestjs`),B(`nextjs`),B(`nitro`),B(`nuxt`),B(`platformatic`),B(`react`),B(`rust`),B(`svelte`),B(`vue`),tr()]),{typeComment:`Integration type identifier`}),onRequestSent:J(ho(),{typeComment:`onRequestSent is fired when a request is sent`}),persistAuth:K({default:!1,typeComment:`Whether to persist auth to local storage`}),telemetry:K({default:!0,typeComment:`Enables / disables telemetry`}),externalUrls:Gj}),qj=W([U(),tr(),H(U(),vi()),ho()]),Jj=z({default:K({default:!1}),url:J(U(),{typeComment:`URL to an OpenAPI/Swagger document`}),content:J(qj,{typeComment:`Directly embed the OpenAPI document. Can be a string, object, function returning an object, or null. It is recommended to pass a URL instead of content.`}),title:J(U(),{typeComment:"The title of the OpenAPI document. Used for the page title and the document name in the dropdown. With multiple `sources`, set this per source."}),slug:J(U(),{typeComment:"The slug of the OpenAPI document used in the URL. If none is passed, the title will be used. With multiple `sources`, set this per source."}),spec:J(z({url:J(U()),content:J(qj)}),{typeComment:"@deprecated Use `url` and `content` on the top level instead."}),agent:J(z({key:J(U()),disabled:J(K()),hideAddApi:J(K(),{typeComment:`When true, hide the control to add more APIs in the agent chat. Only preloaded/registry documents are shown; the public API list is not offered.`})}),{typeComment:`Agent Scalar configuration`})}),Yj=Dr([Kj,Jj,z({layout:W([B(`modern`),B(`classic`)],{typeComment:`The layout to use for the references`}),proxy:J(U(),{typeComment:`@deprecated Use proxyUrl instead`}),fetch:J(ho(),{typeComment:"@deprecated Use `customFetch` instead."}),customFetch:J(ho(),{typeComment:"Custom fetch function used both when loading the OpenAPI document and when sending requests from the API client. Can be used to add custom headers, attach credentials (for example `credentials: 'include'`), handle auth, etc."}),plugins:J(Y(Wj),{typeComment:`Plugins for the API reference`}),isEditable:K({default:!1,typeComment:`Allows the user to inject an editor for the spec`}),hideModels:K({default:!1,typeComment:`Whether to show models in the sidebar, search, and content.`}),modelsSectionLabel:J(W([B(`Models`),B(`Schemas`),U()]),{typeComment:"Label for the components.schemas section in the sidebar, content, and search. Use `Schemas` for OpenAPI terminology."}),localization:J(z({locale:J(U()),direction:J(W([B(`auto`),B(`ltr`),B(`rtl`)])),translations:J(H(U(),vi()))}),{typeComment:`API Reference UI localization. Select a built-in locale, override labels, and control LTR/RTL rendering.`}),documentDownloadType:W([B(`both`),B(`yaml`),B(`json`),B(`direct`),B(`none`)],{typeComment:"Sets the file type of the document to download, set to `none` to hide the download button"}),hideDownloadButton:J(K(),{typeComment:"@deprecated Use `documentDownloadType: 'none'` instead"}),hideTestRequestButton:K({default:!1,typeComment:`Whether to show the "Test Request" button`}),hideSearch:K({default:!1,typeComment:`Whether to show the sidebar search bar`}),showOperationId:K({default:!1,typeComment:`Whether to show the operationId`}),darkMode:J(K(),{typeComment:`Whether dark mode is on or off initially (light mode)`}),forceDarkModeState:J(W([B(`dark`),B(`light`)]),{typeComment:`forceDarkModeState makes it always this state no matter what`}),hideDarkModeToggle:K({default:!1,typeComment:`Whether to show the dark mode toggle`}),metaData:J(vi(),{typeComment:`If used, passed data will be added to the HTML header. @see https://unhead.unjs.io/usage/composables/use-seo-meta`}),favicon:J(U(),{typeComment:`Path to a favicon image`}),hiddenClients:J(W([H(U(),W([K(),Y(U())])),Y(U()),B(!0)]),{typeComment:"List of httpsnippet clients to hide from the clients menu. By default hides Unirest, pass `[]` to show all clients"}),defaultHttpClient:J(z({targetKey:U(),clientKey:U()}),{typeComment:`Determine the HTTP client that is selected by default`}),customCss:J(U(),{typeComment:`Custom CSS to be added to the page`}),onServerChange:J(ho(),{typeComment:`onServerChange is fired on selected server change`}),onDocumentSelect:J(ho(),{typeComment:`onDocumentSelect is fired when the config is selected`}),onLoaded:J(ho(),{typeComment:`Callback fired when the reference is fully loaded`}),onBeforeRequest:J(ho(),{typeComment:`Fired before the outbound request is built; callback receives a mutable request builder. Experimental API.`}),onRequestBuilt:J(ho(),{typeComment:`Fired right before the outbound request is sent; callback receives the exact fetch Request that goes over the wire. Experimental API.`}),onShowMore:J(ho(),{typeComment:`onShowMore is fired when the user clicks the "Show more" button on the references`}),onSidebarClick:J(ho(),{typeComment:`onSidebarClick is fired when the user clicks on a sidebar item`}),pathRouting:J(z({basePath:U()}),{typeComment:`Route using paths instead of hashes, your server MUST support this. @experimental`}),mcp:J(z({name:J(U(),{typeComment:`Display name for the MCP server`}),url:J(U(),{typeComment:`URL of the MCP server`}),disabled:J(K(),{typeComment:`When true, disables the MCP integration`})}),{typeComment:`MCP (Model Context Protocol) configuration. When provided, enables MCP integration with the given name and url.`}),generateHeadingSlug:J(ho(),{typeComment:`Customize the heading portion of the hash`}),generateModelSlug:J(ho(),{typeComment:`Customize the model portion of the hash`}),generateTagSlug:J(ho(),{typeComment:`Customize the tag portion of the hash`}),generateOperationSlug:J(ho(),{typeComment:`Customize the operation portion of the hash`}),generateWebhookSlug:J(ho(),{typeComment:`Customize the webhook portion of the hash`}),setPageTitle:J(ho(),{typeComment:`Customize the browser tab title for the section currently in view`}),redirect:J(ho(),{typeComment:`To handle redirects, pass a function that receives the current path/hash and passes that to history.replaceState`}),withDefaultFonts:K({default:!0,typeComment:`Whether to include default fonts`}),defaultOpenFirstTag:K({default:!0,typeComment:`Whether to expand the first tag in the sidebar when no specific URL target is present`}),defaultOpenAllTags:K({default:!1,typeComment:`Whether to expand all tags by default. Warning: this can cause performance issues on big documents`}),expandAllModelSections:K({default:!1,typeComment:`Whether to expand all models by default. Warning: this can cause performance issues on big documents`}),expandAllResponses:K({default:!1,typeComment:`Whether to expand all responses by default. Warning: this can cause performance issues on big documents`}),expandAllSchemaProperties:K({default:!1,typeComment:`Whether to expand all nested schema properties by default. The Show/Hide Child Attributes toggle remains available so nested sections can still be collapsed manually. Warning: this can cause performance issues on big documents`}),tagsSorter:J(W([B(`alpha`),ho()]),{typeComment:`Function to sort tags`}),operationsSorter:J(W([B(`alpha`),B(`method`),ho()]),{typeComment:`Function to sort operations`}),orderSchemaPropertiesBy:W([B(`alpha`),B(`preserve`)],{typeComment:`Order the schema properties by`}),orderRequiredPropertiesFirst:K({default:!0,typeComment:`Sort the schema properties by required ones first`})})]),Xj=`https://api.scalar.com/request-proxy`,Zj=`https://proxy.scalar.com`,Qj=e=>{let t=Eh(Yj,e);return t.hideDownloadButton&&(console.warn(`[DEPRECATED] You're using the deprecated 'hideDownloadButton' attribute. Use 'documentDownloadType: 'none'' instead.`),t.documentDownloadType=`none`),t.spec?.url&&(console.warn(`[DEPRECATED] You're using the deprecated 'spec.url' attribute. Remove the spec prefix and move the 'url' attribute to the top level.`),t.url=t.spec.url,delete t.spec),t.spec?.content&&(console.warn(`[DEPRECATED] You're using the deprecated 'spec.content' attribute. Remove the spec prefix and move the 'content' attribute to the top level.`),t.content=t.spec.content,delete t.spec),t.proxy&&(console.warn(`[DEPRECATED] You're using the deprecated 'proxy' attribute. Use 'proxyUrl' instead.`),t.proxyUrl||=t.proxy,delete t.proxy),t.fetch&&(console.warn(`[DEPRECATED] You're using the deprecated 'fetch' attribute. Use 'customFetch' instead.`),t.customFetch||=t.fetch,delete t.fetch),t.proxyUrl===Xj&&(console.warn(`[DEPRECATED] Warning: configuration.proxyUrl points to our old proxy (${Xj}).`),console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${Zj}) instead.`),console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${Zj}). Read more: https://github.com/scalar/scalar`),t.proxyUrl=Zj),t.showToolbar&&t.showToolbar!==`localhost`&&(console.warn(`[DEPRECATED] You're using the deprecated 'showToolbar' attribute. Use 'showDeveloperTools' instead.`),t.showDeveloperTools=t.showToolbar,delete t.showToolbar),t.modelsSectionLabel??=er,t};z({cdn:U({default:`https://cdn.jsdelivr.net/npm/@scalar/api-reference`}),pageTitle:U({default:`Scalar API Reference`}),nonce:J(U())});var $j=e=>!!e.url?.trim()||!!e.content,eM=e=>{let{slug:t}=po(),n={};return e&&(Array.isArray(e)?e:[e]).flatMap(e=>{if(sa(e)){let{sources:t,...n}=e;return t?.map(e=>({...n,...e}))??[]}return[e]}).map(e=>Qj(e)).filter($j).map((e,n)=>nM(e,n,t)).forEach(e=>{let{url:t,content:r,...i}=e;n[e.slug]={config:i,title:e.title,slug:e.slug,default:!!e?.default,agent:e.agent,source:r?{content:tM(r)??{}}:{url:t}}}),n},tM=e=>e?typeof e==`function`?tM(e()):typeof e==`string`?ui(e):e:null,nM=(e,t=0,n)=>e.title?{...e,slug:e.slug||n(e.title),title:e.title}:e.slug?{...e,slug:n(e.slug),title:e.slug}:{...e,slug:`api-${t+1}`,title:`API #${t+1}`},rM=e=>typeof window>`u`?ni(e):window.structuredClone(e),iM=(e,t)=>{let n=performance.now(),r=t(),i=performance.now(),a=Math.round(i-n);return console.info(`${e}: ${a} ms`),r},aM=async(e,t)=>{let n=performance.now(),r=await t(),i=performance.now(),a=Math.round(i-n);return console.info(`${e}: ${a} ms`),r};function oM(e){try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`}catch{return!1}}function sM(e){if(!/^\s*(\{)/.test(e.slice(0,500)))return!1;try{let t=JSON.parse(e);return na(t)}catch{return!1}}function cM(e){return/^\s*(?:-\s*)?[\w\-]+\s*:\s*.+\n.*/.test(e)}function lM(e){return!oM(e)&&!cM(e)&&!sM(e)}var uM=()=>{var e=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})},a=(i,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(let c of n(a))!r.call(i,c)&&c!==o&&e(i,c,{get:()=>a[c],enumerable:!(s=t(a,c))||s.enumerable});return i},o=t=>a(e({},`__esModule`,{value:!0}),t),s={};i(s,{default:()=>Ne});var c=e=>Array.isArray(e),l=e=>typeof e==`function`,u=e=>e.length===0,d=e=>typeof e==`number`,f=e=>typeof e==`object`&&!!e,p=e=>e instanceof RegExp,m=e=>typeof e==`string`,h=e=>e===void 0,g=e=>{let t=new Map;return n=>{let r=t.get(n);if(r)return r;let i=e(n);return t.set(n,i),i}},_=(e,t,n={})=>{let r={cache:{},input:e,index:0,indexMax:0,options:n,output:[]};if(oe(t)(r)&&r.index===e.length)return r.output;throw Error(`Failed to parse at index ${r.indexMax}`)},v=(e,t)=>c(e)?ee(e,t):m(e)?ne(e,t):te(e,t),ee=(e,t)=>{let n={};for(let t of e){if(t.length!==1)throw Error(`Invalid character: "${t}"`);let e=t.charCodeAt(0);n[e]=!0}return e=>{let r=e.index,i=e.input;for(;e.index<i.length&&i.charCodeAt(e.index)in n;)e.index+=1;let a=e.index;if(a>r){if(!h(t)&&!e.options.silent){let n=e.input.slice(r,a),o=l(t)?t(n,i,String(r)):t;h(o)||e.output.push(o)}e.indexMax=Math.max(e.indexMax,e.index)}return!0}},te=(e,t)=>{let n=e.source,r=e.flags.replace(/y|$/,`y`),i=new RegExp(n,r);return C(e=>{i.lastIndex=e.index;let n=i.exec(e.input);if(n){if(!h(t)&&!e.options.silent){let r=l(t)?t(...n,e.input,String(e.index)):t;h(r)||e.output.push(r)}return e.index+=n[0].length,e.indexMax=Math.max(e.indexMax,e.index),!0}return!1})},ne=(e,t)=>n=>{if(n.input.startsWith(e,n.index)){if(!h(t)&&!n.options.silent){let r=l(t)?t(e,n.input,String(n.index)):t;h(r)||n.output.push(r)}return n.index+=e.length,n.indexMax=Math.max(n.indexMax,n.index),!0}return!1},re=(e,t,n,r)=>{let i=oe(e);return C(ae(ie(e=>{let r=0;for(;r<n;){let t=e.index;if(!i(e)||(r+=1,e.index===t))break}return r>=t})))},y=(e,t)=>re(e,0,1),b=(e,t)=>re(e,0,1/0),x=(e,t)=>{let n=e.map(oe);return C(ae(ie(e=>{for(let t=0,r=n.length;t<r;t++)if(!n[t](e))return!1;return!0})))},S=(e,t)=>{let n=e.map(oe);return C(ae(e=>{for(let t=0,r=n.length;t<r;t++)if(n[t](e))return!0;return!1}))},ie=(e,t=!1)=>{let n=oe(e);return e=>{let r=e.index,i=e.output.length,a=n(e);return(!a||t)&&(e.index=r,e.output.length!==i&&(e.output.length=i)),a}},ae=(e,t)=>oe(e),C=(()=>{let e=0;return t=>{let n=oe(t),r=e+=1;return e=>{var t;if(e.options.memoization===!1)return n(e);let i=e.index,a=(t=e.cache)[r]||(t[r]=new Map),o=a.get(i);if(o===!1)return!1;if(d(o))return e.index=o,!0;if(o)return e.index=o.index,o.output?.length&&e.output.push(...o.output),!0;{let t=e.output.length;if(n(e)){let n=e.index,r=e.output.length;if(r>t){let o=e.output.slice(t,r);a.set(i,{index:n,output:o})}else a.set(i,n);return!0}return a.set(i,!1),!1}}}})(),w=e=>{let t;return n=>(t||=oe(e()),t(n))},oe=g(e=>{if(l(e))return u(e)?w(e):e;if(m(e)||p(e))return v(e);if(c(e))return x(e);if(f(e))return S(Object.values(e));throw Error(`Invalid rule`)}),T=`abcdefghijklmnopqrstuvwxyz`,se=e=>{let t=``;for(;e>0;)t=T[(e-1)%26]+t,e=Math.floor((e-1)/26);return t},ce=e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t=t*26+T.indexOf(e[n])+1;return t},E=(e,t)=>{if(t<e)return E(t,e);let n=[];for(;e<=t;)n.push(e++);return n},D=(e,t,n)=>E(e,t).map(e=>String(e).padStart(n,`0`)),le=(e,t)=>E(ce(e),ce(t)).map(se),ue=e=>e,O=e=>de(t=>_(t,e,{memoization:!1}).join(``)),de=e=>{let t={};return n=>t[n]??(t[n]=e(n))},k=v(/^\*\*\/\*$/,`.*`),A=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/,(e,t,n)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}`),fe=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/,(e,t,n,r)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}(?:${r.replaceAll(`,`,`|`).replaceAll(`.`,`\\.`)})`),j=v(/\\./,ue),M=v(/[$.*+?^(){}[\]\|]/,e=>`\\${e}`),N=v(/./,ue),pe=S([v(/^(?:!!)*!(.*)$/,(e,t)=>`(?!^${ke(t)}$).*?`),v(/^(!!)+/,``)]),me=S([v(/\/(\*\*\/)+/,`(?:/.+/|/)`),v(/^(\*\*\/)+/,`(?:^|.*/)`),v(/\/(\*\*)$/,`(?:/.*|$)`),v(/\*\*/,`.*`)]),P=S([v(/\*\/(?!\*\*\/)/,`[^/]*/`),v(/\*/,`[^/]*`)]),F=v(`?`,`[^/]`),he=v(`[`,ue),ge=v(`]`,ue),_e=v(/[!^]/,`^/`),I=v(/[a-z]-[a-z]|[0-9]-[0-9]/i,ue),ve=S([j,v(/[$.*+?^(){}[\|]/,e=>`\\${e}`),I,v(/[^\]]/,ue)]),ye=x([he,y(_e),b(ve),ge]),be=v(`{`,`(?:`),xe=v(`}`,`)`),Se=x([be,S([v(/(\d+)\.\.(\d+)/,(e,t,n)=>D(+t,+n,Math.min(t.length,n.length)).join(`|`)),v(/([a-z]+)\.\.([a-z]+)/,(e,t,n)=>le(t,n).join(`|`)),v(/([A-Z]+)\.\.([A-Z]+)/,(e,t,n)=>le(t.toLowerCase(),n.toLowerCase()).join(`|`).toUpperCase())]),xe]),Ce=v(`{`,`(?:`),we=v(`}`,`)`),Te=v(`,`,`|`),Ee=v(/[$.*+?^(){[\]\|]/,e=>`\\${e}`),De=v(/[^}]/,ue),Oe=x([Ce,b(S([me,P,F,ye,Se,w(()=>Oe),j,Ee,Te,De])),we]),ke=O(b(S([k,A,fe,pe,me,P,F,ye,Se,Oe,j,M,N]))),Ae=v(/\\./,ue),je=v(/./,ue),L=O(b(S([Ae,v(/\*\*\*+/,`*`),v(/([^/{[(!])\*\*/,(e,t)=>`${t}*`),v(/(^|.)\*\*(?=[^*/)\]}])/,(e,t)=>`${t}*`),je]))),Me=(e,t)=>{let n=Array.isArray(e)?e:[e];if(!n.length)return!1;let r=n.map(Me.compile),i=n.every(e=>/(\/(?:\*\*)?|\[\/\])$/.test(e)),a=t.replace(/[\\\/]+/g,`/`).replace(/\/$/,i?`/`:``);return r.some(e=>e.test(a))};Me.compile=e=>RegExp(`^${ke(L(e))}$`,`s`);var Ne=Me;return o(s)})();return e.default||e},dM,fM=(e,t)=>(dM||(dM=uM(),uM=null),dM(e,t)),pM=/^[A-Za-z]:\//;function mM(e=``){return e&&e.replace(/\\/g,`/`).replace(pM,e=>e.toUpperCase())}var hM=/^[/\\]{2}/,gM=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,_M=/^[A-Za-z]:$/,vM=/^\/([A-Za-z]:)?$/,yM=/.(\.[^./]+|\.)$/,bM=/^[/\\]|^[a-zA-Z]:[/\\]/,xM=function(e){if(e.length===0)return`.`;e=mM(e);let t=e.match(hM),n=EM(e),r=e[e.length-1]===`/`;return e=TM(e,!n),e.length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),_M.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!EM(e)?`/${e}`:e)},SM=function(...e){let t=``;for(let n of e)if(n){if(t.length>0){let e=t[t.length-1]===`/`,r=n[0]===`/`;t+=e&&r?n.slice(1):e||r?n:`/${n}`}else t+=n}return xM(t)};function CM(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var wM=function(...e){e=e.map(e=>mM(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:CM();i&&i.length!==0&&(t=`${i}/${t}`,n=EM(i))}return t=TM(t,!n),n&&!EM(t)?`/${t}`:t.length>0?t:`.`};function TM(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(i!==s-1&&a!==1){if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1}i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}var EM=function(e){return gM.test(e)},DM=function(e){return mM(e)},OM=function(e){if(e===`..`)return``;let t=yM.exec(mM(e));return t&&t[1]||``},kM=function(e,t){let n=wM(e).replace(vM,`$1`).split(`/`),r=wM(t).replace(vM,`$1`).split(`/`);if(r[0][1]===`:`&&n[0][1]===`:`&&n[0]!==r[0])return r.join(`/`);let i=[...n];for(let e of i){if(r[0]!==e)break;n.shift(),r.shift()}return[...n.map(()=>`..`),...r].join(`/`)},AM=function(e){let t=mM(e).replace(/\/$/,``).split(`/`).slice(0,-1);return t.length===1&&_M.test(t[0])&&(t[0]+=`/`),t.join(`/`)||(EM(e)?`/`:`.`)},jM=function(e){let t=e.ext?e.ext.startsWith(`.`)?e.ext:`.${e.ext}`:``,n=[e.root,e.dir,e.base??(e.name??``)+t].filter(Boolean);return mM(e.root?wM(...n):n.join(`/`))},MM=function(e,t){let n=mM(e).split(`/`),r=``;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t){r=t;break}}return t&&r.endsWith(t)?r.slice(0,-t.length):r},NM={__proto__:null,basename:MM,dirname:AM,extname:OM,format:jM,isAbsolute:EM,join:SM,matchesGlob:(e,t)=>fM(t,xM(e)),normalize:xM,normalizeString:TM,parse:function(e){let t=bM.exec(e)?.[0]?.replace(/\\/g,`/`)||``,n=MM(e),r=OM(n);return{root:t,dir:AM(e),base:n,ext:r,name:n.slice(0,n.length-r.length)}},relative:kM,resolve:wM,sep:`/`,toNamespacedPath:DM},PM=globalThis.process?.platform===`win32`?`;`:`:`,FM={posix:void 0,win32:void 0},IM=(e=PM)=>new Proxy(NM,{get(t,n){return n===`delimiter`?e:n===`posix`?LM:n===`win32`?RM:FM[n]||NM[n]}}),LM=IM(`:`),RM=IM(`;`),zM=(e,t)=>{if(oM(t))return t;if(oM(e)){let n=new URL(e);return n.pathname=LM.posix.resolve(`/`,LM.dirname(n.pathname),t),n.toString()}return LM.resolve(LM.dirname(e),t)};function BM(e){return decodeURI(e.replace(/~1/g,`/`).replace(/~0/g,`~`))}function VM(e){return e.split(`/`).slice(1).map(BM)}function HM(e,t,n){if(t===``)throw Error(`Cannot set value at root ('') pointer`);let r=VM(t);r.forEach(e=>ji(e));let i=e;for(let e=0;e<r.length;e++){let t=r[e],a=e===r.length-1,o=r[e+1],s=/^\d+$/.test(o??``);a?i[t]=n:((!(t in i)||typeof i[t]!=`object`)&&(i[t]=s?[]:{}),i=i[t])}}var UM=(e,t)=>{if(oM(e)&&oM(t)){let n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;let i=LM.dirname(LM.posix.resolve(`/`,r.pathname)),a=LM.posix.resolve(`/`,n.pathname);return LM.posix.relative(i,a)}if(oM(t)){let n=new URL(t),r=LM.dirname(LM.posix.resolve(`/`,n.pathname));return n.pathname=LM.posix.relative(r,LM.posix.resolve(`/`,e)),n.toString()}if(oM(e))return e;let n=LM.dirname(LM.resolve(t)),r=LM.resolve(e);return LM.relative(n,r)};function WM(e){let t=ai(e).substring(0,7);return t.match(/^\d+$/)?`a`+t.substring(1):t}async function GM(e,t,n,r,i=0){if(i>=100)throw`Can not generate unique compressed values`;let a=await e(r??t);return n[a]!==void 0&&n[a]!==t?GM(e,t,n,a,i+1):(n[a]=t,a)}var KM=(e,t)=>{let n=Object.fromEntries(Object.entries(t).map(([e,t])=>[t,e]));return{generate:async r=>{let i=n[r];if(i)return i;let a=await GM(e,r,t),o=a.match(/^\d+$/)?`a${a}`:a;return n[r]=o,o}}},qM=e=>na(e)&&`$ref`in e&&typeof e.$ref==`string`;function JM(e){return e.startsWith(`#`)}function YM(e,t){let n=t.find(t=>t.validate(e));return n?n.exec(e):Promise.resolve({ok:!1})}function XM(e,t){if(!JM(e))throw`Please provide an internal ref`;return`#/${t.map(vo).join(`/`)}${e.substring(1)}`}function ZM(e,t){if(Array.isArray(e)){e.forEach(e=>ZM(e,t));return}if(na(e)&&(Object.values(e).forEach(e=>ZM(e,t)),typeof e==`object`&&`$ref`in e&&typeof e.$ref==`string`)){let n=e.$ref;if(!JM(n))return;e.$ref=XM(n,t)}}var QM=(e,t,n,r,i,a=!1,o=new Set)=>{let s=qt(t,VM(n)).value;if(o.has(s))return;o.add(s),HM(e,n,s);let c=n=>{if(n&&typeof n==`object`){`$ref`in n&&typeof n.$ref==`string`&&(n.$ref.startsWith(`#/${r}/${vo(i)}`)||a)&&QM(e,t,n.$ref.substring(1),r,i,a,o);for(let e of Object.values(n))c(e)}};c(s)},$M={externalDocuments:`x-ext`,externalDocumentsMappings:`x-ext-urls`};async function eN(e,t){t.externalDocumentsKey=t.externalDocumentsKey??$M.externalDocuments,t.externalDocumentsMappingsKey=t.externalDocumentsMappingsKey??$M.externalDocumentsMappings;let n=t.cache??new Map,r=t.plugins.filter(e=>e.type===`loader`),i=t.plugins.filter(e=>e.type===`lifecycle`),a=await(async()=>{if(typeof e!=`string`)return e;let t=await YM(e,r);if(t.ok&&typeof t.data==`object`)return t.data;throw Error(`Failed to resolve input: Please provide a valid string value or pass a loader to process the input`)})(),o=t.root??a,s=Er(o),c=t.root!==void 0&&t.root!==a||t.depth!==void 0,l=t.visitedNodes??new Set,u=mo(o)||(t.origin?t.origin:typeof e==`string`&&(oM(e)||lM(e))?e:`/`);o[t.externalDocumentsMappingsKey]===void 0&&(o[t.externalDocumentsMappingsKey]={});let{generate:d}=KM(t.compress??WM,o[t.externalDocumentsMappingsKey]),f=async(e,...n)=>{let r=t.hooks?.[e];r&&await r(...n);for(let t of i){let r=t[e];r&&await r(...n)}},p=async(e,i=u,a=!1,m=0,h=[],g=null)=>{if(t.depth!==void 0&&m>t.depth||!na(e)&&!Array.isArray(e)||l.has(e))return;l.add(e);let _={path:h,resolutionCache:n,parentNode:g,rootNode:o,loaders:r};await f(`onBeforeNodeProcess`,e,_);let v=mo(e);if(qM(e)){let l=e.$ref,h=`$global`in e&&typeof e.$global==`boolean`&&e.$global,g=rn(l,v??i,s);if(g!==void 0){if(c){let e=VM(`/${g}`),t=e.length>0?qt(o,e.slice(0,-1)).value:void 0,n=qt(o,e);await p(n.value,n.context,a,m+1,e,t)}await f(`onAfterNodeProcess`,e,_);return}let[ee,te=``]=l.split(`#`,2),ne=zM(v??i,ee),re=UM(ne,u),y=await d(re),b=n.has(re);b||n.set(re,YM(ne,r)),await f(`onResolveStart`,e);let x=await n.get(re);if(x.ok){b||(h||ZM(x.data,[$M.externalDocuments,y]),await p(x.data,h?i:ne,h,m+1,[t.externalDocumentsKey,y,o[t.externalDocumentsMappingsKey]]),HM(o,`/${t.externalDocumentsMappingsKey}/${vo(y)}`,re)),t.treeShake===!0?QM(o,{[t.externalDocumentsKey]:{[y]:x.data}},XM(`#${te}`,[t.externalDocumentsKey,y]).substring(1),t.externalDocumentsKey,y):b||HM(o,`/${t.externalDocumentsKey}/${y}`,x.data),e.$ref=XM(`#${te}`,[t.externalDocumentsKey,y]),await f(`onResolveSuccess`,e),await f(`onAfterNodeProcess`,e,_);return}return await f(`onResolveError`,e),await f(`onAfterNodeProcess`,e,_),console.warn(`Failed to resolve external reference "${ne}". The reference may be invalid, inaccessible, or missing a loader for this type of reference.`)}for(let n in e)n!==t.externalDocumentsKey&&n!==t.externalDocumentsMappingsKey&&await p(e[n],v??i,a,m+1,[...h,n],e);await f(`onAfterNodeProcess`,e,_)};return await p(a),!t.urlMap&&!c&&delete o[t.externalDocumentsMappingsKey],a}var tN=class{data;next;constructor(e){this.data=e,this.next=null}},nN=class{front;rear;size;constructor(){this.front=null,this.rear=null,this.size=0}enqueue(e){let t=new tN(e);this.isEmpty()||!this.rear?(this.front=t,this.rear=t):(this.rear.next=t,this.rear=t),this.size++}dequeue(){if(this.isEmpty()||!this.front)return null;let e=this.front;return this.front=this.front.next,this.front===null&&(this.rear=null),this.size--,e.data}peek(){return this.isEmpty()||!this.front?null:this.front.data}isEmpty(){return this.size===0}getSize(){return this.size}toString(){let e=this.front,t=[];for(;e;)t.push(e.data),e=e.next;return t.join(` -> `)}};function rN(e){let t=0,n=new nN,r=()=>{if(n.isEmpty()||t>=e)return;let r=n.dequeue();r&&r()};return async i=>{t>=e&&await new Promise(e=>n.enqueue(e)),t++;try{return await i()}finally{t--,r()}}}var iN=e=>e.startsWith(``)?e.slice(1):e;function aN(e){if(e!==null){if(typeof e==`string`){let t=iN(e);if(t.trim()===``)return;try{return JSON.parse(t)}catch{let e=/^[^:]+:/.test(t),n=t.slice(0,50).trimStart(),r=n.startsWith(`{`)||n.startsWith(`[`);return!e||r?void 0:Mo(t,{maxAliasCount:1e4,merge:!0})}}return e}}var oN=e=>{try{return new URL(e).host}catch{return null}};async function sN(e,t,n){try{let r=oN(e),i=n?.headers?.find(e=>e.domains.find(e=>e===r)!==void 0)?.headers,a=n?.fetch??fetch,o=await t(()=>a(e,{headers:i}));if(o.ok){let e=await o.text();return{ok:!0,data:aN(e),raw:e}}let s=o.headers.get(`Content-Type`)??``;return[`text/html`,`application/xml`].includes(s)&&console.warn(`[WARN] We only support JSON/YAML formats, received ${s}`),console.warn(`[WARN] Fetch failed with status ${o.status} ${o.statusText} for URL: ${e}`),{ok:!1}}catch{return console.warn(`[WARN] Failed to parse JSON/YAML from URL: ${e}`),{ok:!1}}}function cN(e){let t=e?.limit?rN(e.limit):e=>e();return{type:`loader`,validate:oM,exec:n=>sN(n,t,e)}}var lN=class extends Error{constructor(e){super(e),this.name=`InvalidChangesDetectedError`}},uN=(e,t)=>{let n=(e,t,r,i=0)=>{if(t[i]===void 0)throw new lN(`Process aborted. Path ${t.join(`.`)} at depth ${i} is undefined, check diff object`);if(i>=t.length-1){r.type===`add`||r.type===`update`?e[t[i]]=r.changes:Array.isArray(e)?e.splice(Number.parseInt(t[i]),1):delete e[t[i]];return}if(e[t[i]]===void 0||typeof e[t[i]]!=`object`)throw new lN(`Process aborted, check diff object`);n(e[t[i]],t,r,i+1)};for(let r of t)n(e,r.path,r);return e},dN=(e,t)=>{let n=[],r=(e,t,i=[])=>{if(typeof e!=typeof t){if(e===void 0){n.push({path:i,changes:t,type:`add`});return}if(t===void 0){n.push({path:i,changes:e,type:`delete`});return}n.push({path:i,changes:t,type:`update`});return}if(typeof e==`object`&&typeof t==`object`&&e!==null&&t!==null){let n=new Set([...Object.keys(e),...Object.keys(t)]);for(let a of n)r(e[a],t[a],[...i,a]);return}e!==t&&n.push({path:i,changes:t,type:`update`})};return r(e,t),n},fN=class{value;children;constructor(e,t){this.value=e,this.children=t}},pN=class{root;constructor(){this.root=new fN(null,{})}addPath(e,t){let n=this.root;for(let t of e)n.children[t]||(n.children[t]=new fN(null,{})),n=n.children[t];n.value=t}findMatch(e,t){let n=this.root;for(let r of e){n.value!==null&&t(n.value);let e=n.children[r];if(!e)return;n=e}let r=e=>{for(let t of Object.keys(e?.children??{}))e&&Object.hasOwn(e.children,t)&&r(e?.children[t]);e?.value&&t(e.value)};r(n)}},mN=(e,t)=>{if(typeof e!=typeof t)return!0;if(typeof e==`object`&&typeof t==`object`&&e!==null&&t!==null){let n=new Set([...Object.keys(e),...Object.keys(t)]);for(let r of n)if(e[r]!==void 0&&t[r]!==void 0&&mN(e[r],t[r]))return!0;return!1}return e!==t},hN=(e,t)=>{for(let n in t)if(!(n in e))e[n]=t[n];else{let r=e[n],i=t[n];typeof r==`object`&&r&&typeof i==`object`&&i&&(e[n]=hN(r,i))}return e},gN=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<=e.length;++n)if(e[n]!==t[n])return!1;return!0},_N=(e,t)=>{let n=new pN;for(let[t,r]of e.entries())n.addPath(r.path,{index:t,changes:r});let r=new Set,i=new Set,a=new Map,o=new Map;for(let[e,s]of t.entries())n.findMatch(s.path,t=>{if(s.type===`delete`){if(t.changes.type===`delete`)t.changes.path.length>s.path.length?r.add(t.index):i.add(t.index);else{r.add(t.index),i.add(e);let n=o.get(e);n===void 0?o.set(e,[[t.changes],[s]]):n[0].push(t.changes)}}if(s.type===`add`||s.type===`update`){if(gN(s.path,t.changes.path)&&t.changes.type!==`delete`&&!mN(s.changes,t.changes.changes)){r.add(t.index),typeof s.changes==`object`&&hN(s.changes,t.changes.changes);return}r.add(t.index),i.add(e);let n=a.get(t.index);n===void 0?a.set(t.index,[[t.changes],[s]]):n[1].push(s)}});let s=[...a.values(),...o.values()];return{diffs:[...e.filter((e,t)=>!r.has(t)),...t.filter((e,t)=>!i.has(t))],conflicts:s}};function vN(e){if(typeof e==`object`&&e){if(Array.isArray(e)){for(let t of e)vN(t);return}if(e.xml&&typeof e.xml==`object`){if(e.xml.wrapped===!0&&e.xml.attribute===!0)throw Error(`Invalid XML configuration: wrapped and attribute cannot be true at the same time.`);e.xml.wrapped===!0&&(delete e.xml.wrapped,e.xml.nodeType=`element`),e.xml.attribute===!0&&(delete e.xml.attribute,e.xml.nodeType=`attribute`)}for(let t in e)Object.hasOwn(e,t)&&vN(e[t])}}function yN(e){if(e[`x-tagGroups`]&&Array.isArray(e[`x-tagGroups`])){let t=e[`x-tagGroups`];e.tags||=[];let n=new Map;for(let e of t)for(let t of e.tags)n.set(t,e.name);if(Array.isArray(e.tags)){for(let t of e.tags)if(typeof t==`object`&&t&&`name`in t){let e=n.get(t.name);e&&(t.kind=e.toLowerCase().includes(`nav`)||e.toLowerCase().includes(`navigation`)?`nav`:e.toLowerCase().includes(`audience`)?`audience`:e.toLowerCase().includes(`badge`)?`badge`:`nav`)}}delete e[`x-tagGroups`]}}function bN(e){let t=e;if(typeof t==`object`&&t&&typeof t.openapi==`string`&&t.openapi?.startsWith(`3.1`))t.openapi=`3.2.0`;else return t;return yN(t),vN(t),t}function xN(e,t,n=[]){let r={};for(let[i,a]of Object.entries(e)){let e=[...n,i];if(Array.isArray(a)){r[i]=a.map((n,r)=>typeof n==`object`&&!Array.isArray(n)&&n!==null?xN(n,t,[...e,r.toString()]):n);continue}if(typeof a==`object`&&a){r[i]=xN(a,t,e);continue}r[i]=a}return t(r,n)}var SN=`application/json`;function CN(e){let t=e[`x-example`],n=e[`x-examples`];return delete e[`x-example`],delete e[`x-examples`],{xExample:t,xExamples:n}}function wN(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).length>0}function TN(e){return wN(e)&&Object.values(e).every(e=>typeof e==`object`&&!!e&&!Array.isArray(e))}function EN(e){if(typeof e!=`object`||!e)return!0;let t=e;return!(t.allOf||t.oneOf||t.anyOf||t.items||t.$ref||`additionalProperties`in t||[`enum`,`const`,`not`,`format`,`multipleOf`,`maximum`,`exclusiveMaximum`,`minimum`,`exclusiveMinimum`,`maxLength`,`minLength`,`pattern`,`maxItems`,`minItems`,`uniqueItems`,`maxProperties`,`minProperties`,`required`].some(e=>e in t)||typeof t.properties==`object`&&t.properties!==null&&Object.keys(t.properties).length>0)}function DN(e){let t=Object.keys(e);if(t.some(t=>{let n=e[t];return n?.example!==void 0||n?.examples!==void 0}))for(let n of t){let t=e[n];if(!t)continue;let r=t.example!==void 0||t.examples!==void 0;t.schema!==void 0&&!r&&Object.keys(t).length===1&&EN(t.schema)&&delete e[n]}}var ON=new Set([`summary`,`description`,`value`,`externalValue`]);function kN(e){if(typeof e!=`object`||!e)return!1;let t=e,n=`value`in t||`externalValue`in t,r=Object.keys(t).every(e=>ON.has(e));return n&&r}function AN(e){return kN(e)?e:{value:e}}var jN=/^[a-zA-Z0-9*+.-]+\/[a-zA-Z0-9*+.+-]+$/;function MN(e){return jN.test(e)}function NN(e){return Object.entries(e).reduce((e,[t,n])=>(e[t]={value:n},e),{})}var PN=e=>{switch(e){case`application`:return`clientCredentials`;case`accessCode`:return`authorizationCode`;case`implicit`:return`implicit`;case`password`:return`password`;default:return e}};function FN(e){let t=e;if(typeof t==`object`&&t&&typeof t.swagger==`string`&&t.swagger?.startsWith(`2.0`))t.openapi=`3.0.4`,delete t.swagger;else return t;if(t.host){let e=Array.isArray(t.schemes)&&t.schemes?.length?t.schemes:[`http`];t.servers=e.map(e=>({url:`${e}://${t.host}${t.basePath??``}`})),delete t.basePath,delete t.schemes,delete t.host}else t.basePath&&(t.servers=[{url:t.basePath}],delete t.basePath);if(t.definitions&&(t.components=Object.assign({},t.components,{schemas:t.definitions}),delete t.definitions,t=xN(t,e=>(typeof e.$ref==`string`&&e.$ref.startsWith(`#/definitions/`)&&(e.$ref=e.$ref.replace(/^#\/definitions\//,`#/components/schemas/`)),e))),t=xN(t,e=>(e.type===`file`&&(e.type=`string`,e.format=`binary`),e)),Object.hasOwn(t,`parameters`)){t=xN(t,e=>{if(typeof e.$ref==`string`&&e.$ref.startsWith(`#/parameters/`)){let n=e.$ref.split(`/`)[2];if(!n)return e;let r=t.parameters&&typeof t.parameters==`object`&&n in t.parameters?t.parameters[n]:void 0;e.$ref=r&&typeof r==`object`&&`in`in r&&(r.in===`body`||r.in===`formData`)?e.$ref.replace(/^#\/parameters\//,`#/components/requestBodies/`):e.$ref.replace(/^#\/parameters\//,`#/components/parameters/`)}return e}),t.components??={};let e={},n={},r=t.parameters&&typeof t.parameters==`object`?t.parameters:{};for(let[i,a]of Object.entries(r))a&&typeof a==`object`&&(`$ref`in a?e[i]=RN(a):`in`in a&&(a.in===`body`?n[i]=WN(a,t.consumes??[SN]):a.in===`formData`?n[i]=GN([a],t.consumes):e[i]=RN(a)));Object.keys(e).length>0&&(t.components.parameters=e),Object.keys(n).length>0&&(t.components.requestBodies=n),delete t.parameters}if(Object.hasOwn(t,`responses`)&&typeof t.responses==`object`&&t.responses!==null){t=xN(t,e=>(typeof e.$ref==`string`&&e.$ref.startsWith(`#/responses/`)&&(e.$ref=e.$ref.replace(/^#\/responses\//,`#/components/responses/`)),e)),t.components??={};let e={},n=t.responses;for(let[r,i]of Object.entries(n))if(i&&typeof i==`object`){if(`$ref`in i)e[r]=i;else{let n=i,a=t.produces??[SN];if(n.schema){typeof n.content!=`object`&&(n.content={});for(let e of a)n.content[e]={schema:n.schema};delete n.schema}if(n.examples&&typeof n.examples==`object`){typeof n.content!=`object`&&(n.content={});let e=a[0]??SN;for(let[t,r]of Object.entries(n.examples))if(MN(t))typeof n.content[t]!=`object`&&(n.content[t]={}),n.content[t].example=r;else{typeof n.content[e]!=`object`&&(n.content[e]={});let i=n.content[e];typeof i.examples!=`object`&&(i.examples={}),i.examples[t]=AN(r)}delete n.examples}n.content&&typeof n.content==`object`&&DN(n.content),n.headers&&typeof n.headers==`object`&&(n.headers=Object.entries(n.headers).reduce((e,[t,n])=>n&&typeof n==`object`?{[t]:zN(n),...e}:e,{})),e[r]=n}}Object.keys(e).length>0&&(t.components.responses=e),delete t.responses}if(typeof t.paths==`object`){for(let e in t.paths)if(Object.hasOwn(t.paths,e)){let n=t.paths&&typeof t.paths==`object`&&e in t.paths?t.paths[e]:void 0;if(!n||typeof n!=`object`)continue;let r;for(let e in n)if(e===`parameters`&&Object.hasOwn(n,e)){let e=KN(n.parameters,t.consumes??[SN]);n.parameters=e.parameters,r=e.requestBody}else if(Object.hasOwn(n,e)){let i=n[e];if(r&&(i.requestBody=r),i.parameters){let e=KN(i.parameters,i.consumes??t.consumes??[SN]);i.parameters=e.parameters,e.requestBody&&(i.requestBody=e.requestBody)}if(delete i.consumes,i.responses){for(let e in i.responses)if(Object.hasOwn(i.responses,e)){let n=i.responses[e];if(n.headers&&typeof n.headers==`object`&&(n.headers=Object.entries(n.headers).reduce((e,[t,n])=>n&&typeof n==`object`?{[t]:zN(n),...e}:e,{})),n.schema){let e=t.produces??i.produces??[SN];typeof n.content!=`object`&&(n.content={});for(let t of e)n.content[t]={schema:n.schema};delete n.schema}if(n.examples&&typeof n.examples==`object`){typeof n.content!=`object`&&(n.content={});let e=(t.produces??i.produces??[SN])[0]??SN;for(let[t,r]of Object.entries(n.examples))if(MN(t))typeof n.content[t]!=`object`&&(n.content[t]={}),n.content[t].example=r;else{typeof n.content[e]!=`object`&&(n.content[e]={});let i=n.content[e];typeof i.examples!=`object`&&(i.examples={}),i.examples[t]=AN(r)}delete n.examples}n.content&&typeof n.content==`object`&&DN(n.content)}}delete i.produces,i.parameters?.length===0&&delete i.parameters}}}if(t.securityDefinitions){(typeof t.components!=`object`||t.components===null)&&(t.components={}),t.components&&typeof t.components==`object`&&Object.assign(t.components,{securitySchemes:{}});for(let[e,n]of Object.entries(t.securityDefinitions))if(typeof n==`object`){if(`type`in n&&n.type===`oauth2`){let{flow:r,authorizationUrl:i,tokenUrl:a,scopes:o}=n;t.components&&typeof t.components==`object`&&`securitySchemes`in t.components&&t.components.securitySchemes&&Object.assign(t.components.securitySchemes,{[e]:{type:`oauth2`,flows:{[PN(r||`implicit`)]:Object.assign({},i&&{authorizationUrl:i},a&&{tokenUrl:a},o&&{scopes:o})}}})}else`type`in n&&n.type===`basic`?t.components&&typeof t.components==`object`&&`securitySchemes`in t.components&&t.components.securitySchemes&&Object.assign(t.components.securitySchemes,{[e]:{type:`http`,scheme:`basic`}}):t.components&&typeof t.components==`object`&&`securitySchemes`in t.components&&t.components.securitySchemes&&Object.assign(t.components.securitySchemes,{[e]:n})}delete t.securityDefinitions}return delete t.consumes,delete t.produces,t}function IN(e){return[`type`,`format`,`default`,`items`,`maximum`,`exclusiveMaximum`,`minimum`,`exclusiveMinimum`,`maxLength`,`minLength`,`pattern`,`maxItems`,`minItems`,`uniqueItems`,`enum`,`multipleOf`].reduce((t,n)=>(Object.hasOwn(e,n)&&(t[n]=e[n],delete e[n]),t),{})}function LN(e){if(e===`formData`)throw Error(`Encountered a formData parameter which should have been filtered out by the caller`);if(e===`body`)throw Error(`Encountered a body parameter which should have been filtered out by the caller`);return e}function RN(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=UN(e),n=IN(e),{xExample:r,xExamples:i}=CN(e);if(wN(r)?e.examples=NN(r):wN(i)&&(e.examples=Object.entries(i).reduce((e,[t,n])=>(e[t]=AN(n),e),{})),delete e.collectionFormat,delete e.default,!e.in)throw Error(`Parameter object must have an "in" property`);return{schema:n,...t,...e,in:LN(e.in)}}function zN(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=IN(e);return{...e,schema:t}}var BN={ssv:{style:`spaceDelimited`,explode:!1},pipes:{style:`pipeDelimited`,explode:!1},multi:{style:`form`,explode:!0},csv:{style:`form`,explode:!1},tsv:{}},VN={ssv:{},pipes:{},multi:{},csv:{style:`simple`,explode:!1},tsv:{}},HN={header:VN,query:BN,path:VN};function UN(e){if(e.type!==`array`||e.in!==`query`&&e.in!==`path`&&e.in!==`header`)return{};let t=e.collectionFormat??`csv`;return e.in in HN&&t in HN[e.in]?HN[e.in][t]:{}}function WN(e,t){let{xExample:n,xExamples:r}=CN(e);delete e.name,delete e.in;let{schema:i,...a}=e,o={content:{},...a};if(o.content)for(let e of t){if(o.content[e]={schema:i},wN(r)&&e in r){let t=r[e];wN(t)&&Object.values(t).every(e=>kN(e))?o.content[e].examples=t:TN(t)?o.content[e].examples=Object.entries(t).reduce((e,[t,n])=>(e[t]=AN(n),e),{}):o.content[e].examples={default:AN(t)}}else wN(r)&&!Object.keys(r).some(MN)&&(o.content[e].examples=Object.entries(r).reduce((e,[t,n])=>(e[t]=AN(n),e),{}));!o.content[e].examples&&wN(n)&&e in n&&(o.content[e].example=n[e])}return o}function GN(e,t=[`multipart/form-data`]){let n={content:{}},r=t.filter(e=>e===`multipart/form-data`||e===`application/x-www-form-urlencoded`),i=r.length>0?r:[`multipart/form-data`];if(n.content)for(let t of i){n.content[t]={schema:{type:`object`,properties:{},required:[]}};let r=n.content?.[t];if(r?.schema&&typeof r.schema==`object`&&`properties`in r.schema)for(let t of e)t.name&&r.schema.properties&&(r.schema.properties[t.name]={type:t.type,description:t.description,...t.format?{format:t.format}:{}},t.required&&Array.isArray(r.schema.required)&&r.schema.required.push(t.name))}return n}function KN(e,t){let n={parameters:e.filter(e=>e.in!==`body`&&e.in!==`formData`).map(e=>RN(e))},r=structuredClone(e.find(e=>e.in===`body`)??{});r&&Object.keys(r).length&&(n.requestBody=WN(r,t));let i=e.filter(e=>e.in===`formData`);if(i.length>0){let e=GN(i,t);n.requestBody=typeof n.requestBody==`object`?{...n.requestBody,content:{...n.requestBody.content,...e.content}}:e,typeof n.requestBody!=`object`&&(n.requestBody={content:{}})}return n}var qN=new Set([`properties`,`items`,`allOf`,`anyOf`,`oneOf`,`not`,`additionalProperties`,`schema`]);function JN(e){return e?!!(e.some(e=>qN.has(e))||e.some(e=>e.endsWith(`Schema`))||e.length>=2&&e[0]===`components`&&e[1]===`schemas`):!1}function YN(e){let t=e;return t===null||typeof t.openapi!=`string`||!t.openapi.startsWith(`3.0`)?t:(t.openapi=`3.1.1`,t=xN(t,XN),t)}var XN=(e,t)=>{e.type!==void 0&&e.nullable===!0&&(e.type=[e.type,`null`],delete e.nullable),e.exclusiveMinimum===!0?(e.exclusiveMinimum=e.minimum,delete e.minimum):e.exclusiveMinimum===!1&&delete e.exclusiveMinimum,e.exclusiveMaximum===!0?(e.exclusiveMaximum=e.maximum,delete e.maximum):e.exclusiveMaximum===!1&&delete e.exclusiveMaximum;let n=t?.some((e,n)=>e===`examples`&&n>0&&t[n-1]!==`properties`);if(e.example!==void 0&&!n&&(e.examples=JN(t)?[e.example]:{default:{value:e.example}},delete e.example),e.type===`object`&&e.properties!==void 0&&(t?.slice(0,-1))?.some((e,n)=>e===`content`&&t?.[n+1]===`multipart/form-data`)&&e.properties!==null)for(let t of Object.values(e.properties))typeof t==`object`&&t&&`type`in t&&`format`in t&&t.type===`string`&&t.format===`binary`&&(t.contentMediaType=`application/octet-stream`,delete t.format);if(t?.includes(`content`)&&t?.includes(`application/octet-stream`))return{};let{format:r,...i}=e;if(e.type===`string`){if(e.format===`binary`)return{...i,type:`string`,contentMediaType:`application/octet-stream`};if(e.format===`base64`)return{...i,type:`string`,contentEncoding:`base64`};if(e.format===`byte`){let e=(t?.slice(0,-1))?.find((e,n)=>t?.[n-1]===`content`);return{...i,type:`string`,contentEncoding:`base64`,contentMediaType:e}}}return e[`x-webhooks`]!==void 0&&(e.webhooks=e[`x-webhooks`],delete e[`x-webhooks`]),e};function ZN(e,t){let n=FN(e);if(t===`3.0`)return n;let r=YN(n);return t===`3.1`?r:bN(r)}var QN="```",$N=(e,t)=>`${QN}${e}\n${t.trimEnd()}\n${QN}`,eP=(e,t)=>`@example\n${$N(e,t)}`,tP=e=>`\`${e}\``,nP=(...e)=>e.join(`
2064
-
2065
- `),rP=(e,t)=>nP(e,eP(t.language,t.body)),iP=z({"x-internal":J(K({typeComment:`When true, hides the entity from public documentation`}))},{typeName:`XInternal`,typeComment:rP(`Marks an entity as internal (hidden from external consumers).`,{language:`yaml`,body:`x-internal: true`})}),aP=z({"x-original-aas-version":J(U({typeComment:`Original AsyncAPI Specification version the document was loaded with.`}))},{typeName:`XOriginalAasVersion`,typeComment:rP(`Original AsyncAPI Specification version of the source document before ingestion.`,{language:`yaml`,body:`x-original-aas-version: "3.0.0"`})});z({"x-original-oas-version":J(U({typeComment:`Original OpenAPI Specification version of the source document.`}))},{typeName:`XOriginalOasVersion`,typeComment:rP(`Original OpenAPI Specification version of the source document before ingestion.`,{language:`yaml`,body:`x-original-oas-version: "3.1.0"`})});var oP=z({name:U({typeComment:`Variable name`}),value:W([z({description:J(U()),default:U()}),U()],{typeComment:`Variable value as a string, or an object with description and default`})},{typeName:`XScalarEnvVar`,typeComment:`An environment variable definition`}),sP=z({description:J(U({typeComment:`Optional description for the environment`})),color:U({typeComment:`Color for the environment (for example a hex value)`}),variables:Y(oP,{typeComment:`Variables available in this environment`})},{typeName:`XScalarEnvironment`,typeComment:`A named environment with variables and display color`});z({"x-scalar-environments":J(H(U(),sP,{typeComment:`Environments keyed by name`}))},{typeName:`XScalarEnvironments`,typeComment:rP(`Named environments with variables for the API client (base URLs, tokens, etc.).`,{language:`yaml`,body:`x-scalar-environments:
2066
- production:
2067
- color: "#00ff00"
2068
- variables:
2069
- - name: apiKey
2070
- value: prod-key`})}),z({"x-scalar-icon":J(U({typeComment:`Icon identifier or URL for the API description`}))},{typeName:`XScalarIcon`,typeComment:rP(`A custom icon representing the API description in the Scalar UI.`,{language:`yaml`,body:`x-scalar-icon: rocket`})});var cP=z({"x-scalar-ignore":J(K({typeComment:`When true, the entity is hidden or ignored in the UI`}))},{typeName:`XScalarIgnore`,typeComment:rP(`Internal extension to mark an entity as ignored in the Scalar UI.`,{language:`yaml`,body:`x-scalar-ignore: true`})}),lP=z({"x-scalar-is-dirty":J(K({typeComment:`When true, the document has unsaved changes`}))},{typeName:`XScalarIsDirty`,typeComment:rP(`Tracks whether the document has been modified since it was last saved.`,{language:`yaml`,body:`x-scalar-is-dirty: true`})}),uP=z({name:U({typeComment:`The label to display for the link.`}),url:U({typeComment:`The URL the link points to.`})},{typeName:`XScalarLinkItem`,typeComment:`A named link to display alongside the API info`});z({"x-scalar-links":J(Y(uP,{typeComment:`Additional named links to display alongside the API info (e.g. privacy policy, imprint)`}))},{typeName:`XScalarLinks`,typeComment:rP(`Additional named links to display alongside the API info, for example a privacy policy or an imprint. This is handy for the legal texts that some countries require on public websites.`,{language:`yaml`,body:`x-scalar-links:
2071
- - name: Privacy Policy
2072
- url: https://example.com/privacy
2073
- - name: Imprint
2074
- url: https://example.com/imprint`})});var dP=z({"x-scalar-navigation":J(vi({typeComment:"Serialized client navigation tree (`TraversedDocument`) for this API description"}))},{typeName:`XScalarNavigation`,typeComment:"Client-side navigation tree persisted on the document. Matches `TraversedDocumentObjectRef` in strict OpenAPI schemas."}),fP=z({"x-scalar-original-document-hash":U({typeComment:`Hash of the document as originally loaded from an external source`})},{typeName:`XScalarOriginalDocumentHash`,typeComment:rP(`Tracks the original document hash when loading from an external source. Used to detect modifications since last save.`,{language:`yaml`,body:`x-scalar-original-document-hash: "abc123"`})}),pP=z({"x-scalar-original-source-url":J(U({typeComment:`Original document source URL when loaded from an external source`}))},{typeName:`XScalarOriginalSourceUrl`,typeComment:rP(`Original document source URL when the API description was loaded from an external source.`,{language:`yaml`,body:`x-scalar-original-source-url: https://example.com/openapi.yaml`})}),mP=z({namespace:U({typeComment:`The namespace under which this registry meta is scoped.`}),slug:U({typeComment:`A unique slug identifier for this registry meta within the namespace.`}),version:U({typeComment:`The version of the registry meta.`}),commitHash:J(U({typeComment:`Last known commit hash of this document. Is going to be used to track if the document has been modified since it was last saved.`})),conflictCheckedAgainstHash:J(U({typeComment:"Registry commit hash that the cached `hasConflict` flag was computed against. When the registry advertises a different hash later, the cached result is stale and the conflict check must be re-run."})),hasConflict:J(K({typeComment:"Cached outcome of the last conflict check, valid only while `conflictCheckedAgainstHash` matches the registry current hash for this version."}))},{typeName:`XScalarRegistryMetaInner`,typeComment:`Registry meta namespace and slug`}),hP=z({"x-scalar-registry-meta":J(mP)},{typeName:`XScalarRegistryMeta`,typeComment:rP(`Registry sync metadata for a document published to Scalar Registry.`,{language:`yaml`,body:`x-scalar-registry-meta:
2075
- namespace: acme
2076
- slug: public-api
2077
- version: "1.0.0"`})}),gP=z({lang:U({typeComment:"Programming language or platform (for example `TypeScript`, `Java`, `Python`)"}),description:J(U({typeComment:`Installation instructions in Markdown (supports fenced code blocks)`})),source:J(U({typeComment:"@deprecated Use `description` instead. When set, it is appended to `description` as a fenced code block (or used on its own when there is no `description`)."}))},{typeName:`XScalarSdkInstallationItem`,typeComment:`One SDK installation instruction block`});z({"x-scalar-sdk-installation":J(Y(gP,{typeComment:`Installation instructions shown in the API reference`}))},{typeName:`XScalarSdkInstallation`,typeComment:rP(`Scalar SDK installation instructions for the API description.`,{language:`yaml`,body:`x-scalar-sdk-installation:
2078
- - lang: TypeScript
2079
- description: Install our SDK from npm with \`npm install @scalar/sdk\``})});var _P=z({"x-scalar-watch-mode":J(K({typeComment:`When true, the document is watched for external file changes`}))},{typeName:`XScalarWatchMode`,typeComment:rP(`Whether the document is in watch mode (reloads when the source file changes).`,{language:`yaml`,body:`x-scalar-watch-mode: true`})}),vP=z({"x-tags":J(Y(U(),{typeComment:`Ordered list of tag names for this schema object`}))},{typeName:`XTags`,typeComment:rP(`Custom tag ordering hints for schema objects in the sidebar.`,{language:`yaml`,body:`x-tags:
2080
- - users
2081
- - admin`})}),yP=z({"x-scalar-selected-server":J(U({typeComment:"The currently selected server. For OpenAPI documents this is the server URL; for AsyncAPI documents this is the server name (key in `document.servers`)."}))},{typeName:`XScalarSelectedServer`,typeComment:rP("The currently selected server for this API description. For OpenAPI documents the value is the server URL; for AsyncAPI documents the value is the server name (key in `document.servers`).",{language:`yaml`,body:`x-scalar-selected-server: https://api.example.com`})}),bP=z({"x-additionalPropertiesName":J(U({typeComment:`Human-readable label for additional properties on this schema`}))},{typeName:`XAdditionalPropertiesName`,typeComment:rP(`Display name for additional properties on a schema object.`,{language:`yaml`,body:`x-additionalPropertiesName: metadata`})}),xP=W([H(U(),U()),Y(U())]),SP=z({"x-enumDescriptions":J(xP,{typeComment:`Map or list of descriptions keyed by enum value (camelCase spelling)`}),"x-enum-descriptions":J(xP,{typeComment:`Map or list of descriptions keyed by enum value (kebab-case spelling)`})},{typeName:`XEnumDescriptions`,typeComment:rP(`Descriptions for enum values. Keys must match enum values.`,{language:`yaml`,body:`x-enumDescriptions:
2082
- other: Other reason`})}),CP=z({"x-enum-varnames":J(Y(U(),{typeComment:"Display names for enum values (same order as `enum`)"})),"x-enumNames":J(Y(U(),{typeComment:`Alias for x-enum-varnames — display names for enum values`}))},{typeName:`XEnumVarNames`,typeComment:rP(`Display names for enum values. Must match the order of the ${tP(`enum`)} array.`,{language:`yaml`,body:`enum: [moon, asteroid]
2083
- x-enum-varnames: [Moon, Asteroid]`})}),wP=z({"x-examples":J(H(U(),vi(),{typeComment:`Map of example name to example value`}))},{typeName:`XExamples`,typeComment:rP(`Named examples attached to a schema. Keys are example names; values are the example payloads.`,{language:`yaml`,body:`x-examples:
2084
- user:
2085
- id: 1
2086
- name: Ada`})}),TP=z({"x-variable":J(U({typeComment:`Variable name used for substitution in the API client`}))},{typeName:`XVariable`,typeComment:rP(`References a variable for schema property substitution in the API client.`,{language:`yaml`,body:`x-variable: userId`})}),EP=z({propertyName:U({typeComment:`REQUIRED. The name of the property in the payload that will hold the discriminating value. This property SHOULD be required in the payload schema, as the behavior when the property is absent is undefined.`}),mapping:J(H(U(),U(),{typeComment:`An object to hold mappings between payload values and schema names or URI references.`}))},{typeName:`DiscriminatorObject`}),DP=z({url:U({typeComment:`REQUIRED. The URI for the target documentation. This MUST be in the form of a URI.`}),description:J(U({typeComment:`A description of the target documentation. CommonMark syntax MAY be used for rich text representation.`}))},{typeName:`ExternalDocumentationObject`}),OP=z({$status:J(W([B(`loading`),B(`error`)]),{typeComment:`Indicates the current status of the reference resolution. Can be either 'loading' while fetching the reference or 'error' if the resolution failed.`}),$global:J(K({typeComment:`Indicates whether this reference should be resolved globally across all documents, rather than just within the current document context.`}))},{typeName:`ReferenceObjectExtensions`}),kP=z({$ref:U({typeComment:`REQUIRED. The reference identifier. This MUST be in the form of a URI.`}),summary:J(U({typeComment:`A short summary which by default SHOULD override that of the referenced component. If the referenced object-type does not allow a summary field, then this field has no effect.`})),description:J(U({typeComment:`A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for rich text representation. If the referenced object-type does not allow a description field, then this field has no effect.`}))},{typeName:`ReferenceObject`}),AP=e=>W([kP,e]),jP=z({name:J(U({typeComment:`Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being "array" (outside the items), it will affect the wrapping element if and only if wrapped is true. If wrapped is false, it will be ignored.`})),namespace:J(U({typeComment:`The URI of the namespace definition. Value MUST be in the form of a non-relative URI.`})),prefix:J(U({typeComment:`The prefix to be used for the name.`})),attribute:J(K({typeComment:`Declares whether the property definition translates to an attribute instead of an element. Default value is false.`})),wrapped:J(K({typeComment:`MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items).`}))},{typeName:`XMLObject`}),MP=[cP,iP,TP,wP,SP,CP,bP,vP],NP=z({name:J(U({typeComment:`Schema name (extension).`})),title:J(U({typeComment:`A title for the schema.`})),description:J(U({typeComment:`A description of the schema.`})),default:J(vi({typeComment:`Default value for the schema.`})),enum:J(Y(vi(),{typeComment:`Array of allowed values.`,typeName:`JsonSchemaEnum`})),const:J(vi({typeComment:`Constant value that must match exactly.`})),contentMediaType:J(U({typeComment:`Media type for content validation.`})),contentEncoding:J(U({typeComment:`Content encoding.`})),contentSchema:J(AP(V(()=>GP))),deprecated:J(K({typeComment:`Whether the schema is deprecated.`})),discriminator:J(EP),readOnly:J(K({typeComment:`Whether the schema is read-only.`})),writeOnly:J(K({typeComment:`Whether the schema is write-only.`})),xml:J(jP),externalDocs:J(DP),example:J(vi({typeComment:`A free-form field to include an example of an instance for this schema. Deprecated in favor of the JSON Schema examples keyword.`})),examples:J(Y(vi(),{typeComment:`An array of examples of valid instances for this schema. This keyword follows the JSON Schema Draft 2020-12 specification.`,typeName:`SchemaExamplesArray`})),allOf:J(Y(AP(V(()=>GP)),{typeName:`SchemaObjectAllOf`})),oneOf:J(Y(AP(V(()=>GP)),{typeName:`SchemaObjectOneOf`})),anyOf:J(Y(AP(V(()=>GP)),{typeName:`SchemaObjectAnyOf`})),not:J(AP(V(()=>GP)))}),PP=z({multipleOf:J(ca({typeComment:`Number must be a multiple of this value.`})),maximum:J(ca({typeComment:`Maximum value (inclusive).`})),exclusiveMaximum:J(ca({typeComment:`Maximum value (exclusive).`})),minimum:J(ca({typeComment:`Minimum value (inclusive).`})),exclusiveMinimum:J(ca({typeComment:`Minimum value (exclusive).`}))}),FP=Dr([z({type:W([B(`number`),B(`integer`)]),format:J(U({typeComment:`Different subtypes.`}))}),PP],{typeName:`NumberSchemaObject`}),IP=z({maxLength:J(ca({typeComment:`Maximum string length.`})),minLength:J(ca({typeComment:`Minimum string length.`})),pattern:J(U({typeComment:`Regular expression pattern.`}))}),LP=Dr([z({type:B(`string`),format:J(U({typeComment:`Different subtypes.`}))}),IP],{typeName:`StringSchemaObject`}),RP=z({maxProperties:J(ca({typeComment:`Maximum number of properties.`})),minProperties:J(ca({typeComment:`Minimum number of properties.`})),properties:J(H(U(),AP(V(()=>GP)),{typeName:`SchemaObjectProperties`})),required:J(Y(U(),{typeName:`SchemaObjectRequired`})),additionalProperties:J(W([AP(V(()=>GP)),z({}),K()],{typeName:`SchemaObjectAdditionalProperties`})),patternProperties:J(H(U(),AP(V(()=>GP)),{typeName:`SchemaObjectPatternProperties`})),propertyNames:J(AP(V(()=>GP)))}),zP=Dr([z({type:B(`object`)}),RP],{typeName:`ObjectSchemaObject`}),BP=z({maxItems:J(ca({typeComment:`Maximum number of items in array.`})),minItems:J(ca({typeComment:`Minimum number of items in array.`})),uniqueItems:J(K({typeComment:`Whether array items must be unique.`})),items:J(AP(V(()=>GP))),prefixItems:J(Y(AP(V(()=>GP)),{typeComment:`Schema for tuple validation.`}))}),VP=Dr([z({type:B(`array`)}),BP],{typeName:`ArraySchemaObject`}),HP=W([B(`null`),B(`boolean`),B(`string`),B(`number`),B(`integer`),B(`object`),B(`array`)],{typeName:`SchemaObjectMultiTypeKeywords`}),UP=z({type:W([B(`null`),B(`boolean`)],{typeName:`SchemaObjectOtherTypeKeyword`})}),WP=Dr([z({type:Y(HP,{typeName:`SchemaObjectMultiTypeKeywordArray`}),format:J(U({typeComment:`Different subtypes.`}))}),PP,IP,BP,RP],{typeName:`MultiTypeSchemaObject`}),GP=Dr([NP,...MP,W([UP,FP,LP,zP,VP,WP,z({})])],{typeName:`SchemaObject`}),KP=z({$ref:U({typeComment:`REQUIRED. The reference string.`})},{typeName:`AsyncApiReferenceObject`,typeComment:`JSON Reference for AsyncAPI components.`}),qP=e=>na(e)&&`$ref`in e?qP(e[`$ref-value`]):e,JP=e=>Dr([KP,z({"$ref-value":Jt(qP,e)}),OP]),YP=e=>W([e,JP(e)]),XP=z({schemaFormat:J(U({typeComment:`Media type identifying the schema format. When omitted, defaults to the AsyncAPI JSON Schema vocabulary for the document version.`})),schema:ln({typeComment:`REQUIRED. Schema definition in the format given by schemaFormat.`})},{typeName:`AsyncApiMultiFormatSchemaObject`}),ZP=W([B(!0),B(!1),GP],{typeName:`AsyncApiSchemaJsonShape`}),QP=YP(ZP),$P=YP(W([XP,ZP],{typeName:`AsyncApiMultiFormatSchemaOrSchemaObject`})),eF=z({method:J(W([B(`GET`),B(`POST`)],{typeComment:`HTTP method used when establishing the WebSocket connection (typically GET).`})),query:J(QP,{typeComment:`Schema Object describing WebSocket handshake query parameters (type object with properties). May be a Reference Object.`}),headers:J(QP,{typeComment:`Schema Object describing HTTP headers sent during the WebSocket handshake (type object with properties). May be a Reference Object.`}),bindingVersion:J(U({typeComment:`Version of the WebSocket binding. When omitted, "latest" is assumed per the binding spec.`}))},{typeName:`AsyncApiWsBindingObject`,typeComment:`AsyncAPI WebSocket binding for handshake method, query, and headers.`}),tF=[`http`,`ws`,`kafka`,`anypointmq`,`amqp`,`amqp1`,`mqtt`,`mqtt5`,`nats`,`jms`,`sns`,`solace`,`sqs`,`stomp`,`redis`,`mercure`,`ibmmq`,`googlepubsub`,`pulsar`,`ros2`],nF=()=>J(ln({typeComment:`Protocol-specific binding definition (see AsyncAPI protocol bindings).`})),rF=()=>{let e={};for(let t of tF)e[t]=t===`ws`?J(eF):nF();return e},iF=(e,t)=>z(rF(),{typeName:e,typeComment:t}),aF=iF(`AsyncApiServerBindingsObject`,`Map describing protocol-specific definitions for a server (AsyncAPI 3.1.0).`),oF=iF(`AsyncApiChannelBindingsObject`,`Map describing protocol-specific definitions for a channel (AsyncAPI 3.1.0).`),sF=iF(`AsyncApiOperationBindingsObject`,`Map describing protocol-specific definitions for an operation (AsyncAPI 3.1.0).`),cF=iF(`AsyncApiMessageBindingsObject`,`Map describing protocol-specific definitions for a message (AsyncAPI 3.1.0).`),lF=YP(z({description:J(U({typeComment:`A short description of the target documentation. CommonMark syntax MAY be used for rich text representation.`})),url:U({typeComment:`REQUIRED. The URL for the target documentation. This MUST be in the form of an absolute URL.`})},{typeName:`AsyncApiExternalDocumentationObject`})),uF=YP(z({description:J(U({typeComment:`An optional description of the identifier. CommonMark syntax MAY be used for rich text representation.`})),location:U({typeComment:`REQUIRED. A runtime expression that specifies the location of the correlation ID.`})},{typeName:`AsyncApiCorrelationIdObject`})),dF=z({headers:J(H(U(),ln(),{typeComment:`Example headers; MUST validate against the Message Object headers field when present.`})),payload:J(ln({typeComment:`Example payload; MUST validate against the Message Object payload field when present.`})),name:J(U({typeComment:`A machine-friendly name.`})),summary:J(U({typeComment:`A short summary of what the example is about.`}))},{typeName:`AsyncApiMessageExampleObject`}),fF=YP(z({name:U({typeComment:`REQUIRED. The name of the tag.`}),description:J(U({typeComment:`A short description for the tag. CommonMark syntax MAY be used for rich text representation.`})),externalDocs:J(lF)},{typeName:`AsyncApiTagObject`})),pF=Y(fF,{typeName:`AsyncApiTagsObject`,typeComment:`A list of Tag Objects (entries MAY be Reference Objects).`}),mF=YP(z({headers:J($P),correlationId:J(uF),contentType:J(U({typeComment:`The content type to use when encoding/decoding a message payload (for example application/json).`})),name:J(U({typeComment:`A machine-friendly name for the message.`})),title:J(U({typeComment:`A human-friendly title for the message.`})),summary:J(U({typeComment:`A short summary of what the message is about.`})),description:J(U({typeComment:`A verbose explanation of the message. CommonMark syntax MAY be used for rich text representation.`})),tags:J(pF),externalDocs:J(lF),bindings:J(YP(cF)),examples:J(Y(YP(dF)))},{typeName:`AsyncApiMessageTraitObject`})),hF=V(()=>YP(z({headers:J($P),payload:J($P),correlationId:J(uF),contentType:J(U({typeComment:`The content type to use when encoding/decoding a message payload (for example application/json).`})),name:J(U({typeComment:`A machine-friendly name for the message.`})),title:J(U({typeComment:`A human-friendly title for the message.`})),summary:J(U({typeComment:`A short summary of what the message is about.`})),description:J(U({typeComment:`A verbose explanation of the message. CommonMark syntax MAY be used for rich text representation.`})),tags:J(pF),externalDocs:J(lF),bindings:J(YP(cF)),examples:J(Y(YP(dF))),traits:J(Y(mF))},{typeName:`AsyncApiMessageObject`}))),gF=H(U(),hF,{typeName:`AsyncApiMessagesObject`,typeComment:`Map of messageId to Message Object or Reference Object.`}),_F=YP(z({enum:J(Y(U(),{typeComment:`An enumeration of string values for substitution.`})),default:J(U({typeComment:`The default value to use for substitution, and to send, if an alternate value is not supplied.`})),description:J(U({typeComment:`An optional description for the parameter. CommonMark syntax MAY be used for rich text representation.`})),examples:J(Y(U(),{typeComment:`Examples of the parameter value.`})),location:J(U({typeComment:`A runtime expression that specifies the location of the parameter value.`}))},{typeName:`AsyncApiParameterObject`})),vF=H(U(),_F,{typeName:`AsyncApiParametersObject`,typeComment:`Map of parameter name to Parameter Object or Reference Object.`}),yF=z({authorizationUrl:J(U({typeComment:`REQUIRED for implicit and authorizationCode flows. The authorization URL (absolute URL).`})),tokenUrl:J(U({typeComment:`REQUIRED for password, clientCredentials, and authorizationCode flows. The token URL (absolute URL).`})),refreshUrl:J(U({typeComment:`The URL to be used for obtaining refresh tokens. This MUST be in the form of an absolute URL.`})),availableScopes:J(H(U(),U(),{typeComment:`REQUIRED for OAuth2 flows. Map of scope name to a short description.`}))},{typeName:`AsyncApiOAuthFlowObject`}),bF=z({implicit:J(YP(yF)),password:J(YP(yF)),clientCredentials:J(YP(yF)),authorizationCode:J(YP(yF))},{typeName:`AsyncApiOAuthFlowsObject`}),xF=YP(z({type:W([B(`userPassword`),B(`apiKey`),B(`X509`),B(`symmetricEncryption`),B(`asymmetricEncryption`),B(`httpApiKey`),B(`http`),B(`oauth2`),B(`openIdConnect`),B(`plain`),B(`scramSha256`),B(`scramSha512`),B(`gssapi`)],{typeComment:`REQUIRED. Security scheme type: userPassword, apiKey, X509, symmetricEncryption, asymmetricEncryption, httpApiKey, http, oauth2, openIdConnect, plain, scramSha256, scramSha512, gssapi.`}),description:J(U({typeComment:`A short description for security scheme. CommonMark syntax MAY be used for rich text representation.`})),name:J(U({typeComment:`REQUIRED for httpApiKey. The name of the header, query or cookie parameter.`})),in:J(W([B(`user`),B(`password`),B(`query`),B(`header`),B(`cookie`)],{typeComment:`REQUIRED for apiKey and httpApiKey. Location of the API key: user, password, query, header, or cookie.`})),scheme:J(U({typeComment:`REQUIRED for http. The name of the HTTP Authorization scheme to be used in the Authorization header.`})),bearerFormat:J(U({typeComment:`A hint to the client to identify how the bearer token is formatted.`})),flows:J(YP(bF)),openIdConnectUrl:J(U({typeComment:`REQUIRED for openIdConnect. OpenId Connect URL to discover OAuth2 configuration values (absolute URL).`})),scopes:J(Y(U(),{typeComment:`List of the needed scope names for oauth2 and openIdConnect.`}))},{typeName:`AsyncApiSecuritySchemeObject`})),SF=YP(z({enum:J(Y(U(),{typeComment:`An enumeration of string values for substitution.`})),default:J(U({typeComment:`The default value to use for substitution, and to send, if an alternate value is not supplied.`})),description:J(U({typeComment:`An optional description for the server variable. CommonMark syntax MAY be used for rich text representation.`})),examples:J(Y(U(),{typeComment:`Examples of the server variable.`}))},{typeName:`AsyncApiServerVariableObject`})),CF=YP(z({host:U({typeComment:`REQUIRED. The server host name. It MAY include the port. Supports Server Variables in {braces}.`}),protocol:U({typeComment:`REQUIRED. The protocol this server supports for connection.`}),protocolVersion:J(U({typeComment:`The version of the protocol used for connection (for example 0-9-1 for AMQP).`})),pathname:J(U({typeComment:`The path to a resource in the host. Supports Server Variables in {braces}.`})),description:J(U({typeComment:`An optional string describing the server. CommonMark syntax MAY be used for rich text representation.`})),title:J(U({typeComment:`A human-friendly title for the server.`})),summary:J(U({typeComment:`A short summary of the server.`})),variables:J(H(U(),SF,{typeComment:`Map between a variable name and its Server Variable Object or Reference Object.`})),security:J(Y(xF,{typeComment:`Alternative security schemes for this server; only one of the security scheme objects need to be satisfied.`})),tags:J(pF),externalDocs:J(lF),bindings:J(YP(aF))},{typeName:`AsyncApiServerObject`})),wF=H(U(),CF,{typeName:`AsyncApiServersObject`,typeComment:`Map of server name to Server Object or Reference Object.`}),TF=V(()=>z({address:J(W([U(),tr()],{typeComment:`Channel address or null when unknown.`})),messages:J(gF),title:J(U({typeComment:`A human-friendly title for the channel.`})),summary:J(U({typeComment:`A short summary of the channel.`})),description:J(U({typeComment:`An optional description of this channel. CommonMark syntax MAY be used for rich text representation.`})),servers:J(Y(JP(CF),{typeComment:`References to Server definitions where this channel is available (Reference Objects only in the raw document).`})),parameters:J(vF),tags:J(pF),externalDocs:J(lF),bindings:J(YP(oF))},{typeName:`AsyncApiChannelObject`})),EF=H(U(),YP(TF),{typeName:`AsyncApiChannelsObject`,typeComment:`Map of channelId to Channel Object or Reference Object.`}),DF=YP(z({description:J(U({typeComment:`An optional description of the address. CommonMark syntax MAY be used for rich text representation.`})),location:U({typeComment:`REQUIRED. A runtime expression that specifies the location of the reply address.`})},{typeName:`AsyncApiOperationReplyAddressObject`})),OF=V(()=>YP(z({address:J(DF),channel:J(JP(TF)),messages:J(Y(JP(hF),{typeComment:`List of $ref pointers to Message Objects used as reply payloads (Reference Objects only in the raw document).`}))},{typeName:`AsyncApiOperationReplyObject`}))),kF=YP(z({title:J(U({typeComment:`A human-friendly title for the operation.`})),summary:J(U({typeComment:`A short summary of what the operation is about.`})),description:J(U({typeComment:`A verbose explanation of the operation. CommonMark syntax MAY be used for rich text representation.`})),security:J(Y(xF,{typeComment:`Security schemes for this operation. Only one of the security scheme objects MUST be satisfied.`})),tags:J(pF),externalDocs:J(lF),bindings:J(YP(sF))},{typeName:`AsyncApiOperationTraitObject`})),AF=V(()=>YP(z({action:W([B(`send`),B(`receive`)],{typeComment:`REQUIRED. send when the application sends to the channel; receive when it receives from the channel.`}),channel:JP(TF),title:J(U({typeComment:`A human-friendly title for the operation.`})),summary:J(U({typeComment:`A short summary of what the operation is about.`})),description:J(U({typeComment:`A verbose explanation of the operation. CommonMark syntax MAY be used for rich text representation.`})),security:J(Y(xF,{typeComment:`Security schemes for this operation. Only one of the security scheme objects MUST be satisfied.`})),tags:J(pF),externalDocs:J(lF),bindings:J(YP(sF)),traits:J(Y(kF)),messages:J(Y(JP(hF),{typeComment:`Subset of channel messages as Reference Objects only. Omit to include all channel messages; use [] for none.`})),reply:J(OF)},{typeName:`AsyncApiOperationObject`}))),jF=H(U(),AF,{typeName:`AsyncApiOperationsObject`,typeComment:`Map of operationId to Operation Object or Reference Object.`}),MF=V(()=>z({schemas:J(H(U(),$P,{typeComment:`Reusable Multi Format Schema, Schema Object, or Reference Object.`})),servers:J(H(U(),CF)),channels:J(EF),operations:J(H(U(),AF)),messages:J(H(U(),hF)),securitySchemes:J(H(U(),xF)),serverVariables:J(H(U(),SF)),parameters:J(H(U(),_F)),correlationIds:J(H(U(),uF)),replies:J(H(U(),OF)),replyAddresses:J(H(U(),DF)),externalDocs:J(H(U(),lF)),tags:J(H(U(),fF)),operationTraits:J(H(U(),kF)),messageTraits:J(H(U(),mF)),serverBindings:J(H(U(),YP(aF))),channelBindings:J(H(U(),YP(oF))),operationBindings:J(H(U(),YP(sF))),messageBindings:J(H(U(),YP(cF)))},{typeName:`AsyncApiComponentsObject`,typeComment:`Reusable objects. Definitions here have no effect unless referenced from outside components.`})),NF=z({name:J(U({typeComment:`The identifying name of the contact person/organization.`})),url:J(U({typeComment:`The URL pointing to the contact information. This MUST be in the form of an absolute URL.`})),email:J(U({typeComment:`The email address of the contact person/organization.`}))},{typeName:`AsyncApiContactObject`}),PF=YP(z({name:U({typeComment:`REQUIRED. The license name used for the API.`}),url:J(U({typeComment:`A URL to the license used for the API. This MUST be in the form of an absolute URL.`}))},{typeName:`AsyncApiLicenseObject`})),FF=z({title:U({typeComment:`REQUIRED. The title of the application.`}),version:U({typeComment:`REQUIRED. Provides the version of the application API (not to be confused with the AsyncAPI Specification version).`}),description:J(U({typeComment:`A short description of the application. CommonMark syntax MAY be used for rich text representation.`})),termsOfService:J(U({typeComment:`A URL to the Terms of Service for the API (absolute URL).`})),contact:J(NF),license:J(PF),tags:J(pF),externalDocs:J(lF)},{typeName:`AsyncApiInfoObject`}),IF=Dr([aP,dP,pP,fP,lP,_P,hP,yP],{typeName:`AsyncApiExtensions`,typeComment:`AsyncAPI document-level Scalar extensions shared with workspace tooling.`}),LF=z({asyncapi:U({typeComment:`REQUIRED. AsyncAPI Specification version (major.minor.patch). Patch MAY include a hyphen suffix.`}),id:J(U({typeComment:`Identifier of the application the AsyncAPI document is defining (URI, RFC3986).`})),info:FF,servers:J(wF),defaultContentType:J(U({typeComment:`Default content type when encoding/decoding a message payload (for example application/json).`})),channels:J(EF),operations:J(jF),components:J(YP(MF))},{typeName:`AsyncApiDocumentCore`,typeComment:`Root AsyncAPI 3.1.0 document combining resource listing and API declaration.`}),RF=Dr([LF,IF],{typeName:`AsyncApiObject`,typeComment:`Root AsyncAPI 3.1.0 document including Scalar workspace extensions (AsyncApiExtensionsSchema).`}),zF=q.Object({name:q.String(),value:q.String()}),BF=q.Object({url:q.String(),method:q.String(),httpVersion:q.String(),headers:q.Array(zF),cookies:q.Array(zF),headersSize:q.Number(),queryString:q.Array(zF),bodySize:q.Number(),postData:q.Optional(q.Union([q.Object({mimeType:q.String(),text:q.String()}),q.Object({mimeType:q.String(),params:q.Array(q.Object({name:q.String(),value:q.Optional(q.String())}))})]))}),VF=q.Object({status:q.Number(),statusText:q.String(),headers:q.Array(zF),cookies:q.Array(zF),httpVersion:q.String(),redirectURL:q.String(),headersSize:q.Number(),bodySize:q.Number(),content:q.Object({size:q.Number(),mimeType:q.String(),encoding:q.Optional(q.String()),text:q.Optional(q.String())})}),HF=q.Object({time:q.Number(),timestamp:q.Number(),request:BF,response:VF,meta:q.Object({example:q.String()}),requestMetadata:q.Object({variables:q.Record(q.String(),q.String())})}),UF=q.Record(q.String(),q.Record(q.String(),q.Array(HF))),WF=q.Record(q.String(),UF),GF=5,KF=({hooks:e})=>{let t=o({});return{getHistory:(e,n,r)=>t[e]?.[n]?.[r],addHistory:(n,r,i,a)=>{t[n]||={},t[n][r]||={},t[n][r][i]||=[],t[n][r][i].length>=GF&&(t[n][r][i]=co(t[n][r][i].filter((e,t)=>t!==0),{depth:1})),t[n][r][i].push(a),e?.onHistoryChange?.(n)},clearOperationHistory:(n,r,i)=>{delete t[n]?.[r]?.[i],e?.onHistoryChange?.(n)},clearPathHistory:(n,r)=>{delete t[n]?.[r],e?.onHistoryChange?.(n)},clearDocumentHistory:n=>{delete t[n],e?.onHistoryChange?.(n)},load:n=>{let r=Oo(WF,n);Yi(t,r),Object.keys(r).forEach(t=>{e?.onHistoryChange?.(t)})},export:()=>co(t)}},qF=e=>e.fetch?e.fetch:((t,n)=>fetch(Cr(e.proxyUrl,t.toString()),n)),JF=(e,t)=>{if(e&&typeof e==`object`&&`$ref`in e&&typeof e.$ref==`string`&&e.$ref.startsWith(`#`)){let n=VM(e.$ref.slice(1));return JF(Ba(t.rootNode,n),t)}return e},YF=()=>({type:`lifecycle`,onResolveStart:e=>{e.$status=`loading`},onResolveError:e=>{e.$status=`error`},onResolveSuccess:e=>{delete e.$status}}),XF=()=>({type:`lifecycle`,onAfterNodeProcess:async(e,t)=>{let n=e.externalValue,r=t.resolutionCache;if(typeof n!=`string`)return;let i=t.loaders.find(e=>e.validate(n));if(!i)return;r.has(n)||r.set(n,i.exec(n));let a=await r.get(n);a?.ok&&(e.value=a.data)}}),ZF=()=>({type:`lifecycle`,onBeforeNodeProcess:async(e,t)=>{let{path:n,resolutionCache:r,parentNode:i}=t,a=e.$ref;if(typeof a!=`string`||!i||!n.length)return;let o=t.loaders.find(e=>e.validate(a));if(o&&n[0]===`info`){r.has(a)||r.set(a,o.exec(a));let e=await r.get(a);e?.ok&&(i[n.at(-1)]=e.data)}}}),QF=()=>({type:`lifecycle`,onBeforeNodeProcess:(e,t)=>{let n=e.$ref,r=t.rootNode[`x-ext-urls`];typeof n==`string`&&typeof r==`object`&&r&&xa(n)&&(e.$ref=r[n.split(`/`).at(-1)??``]??n)}}),$F=()=>({type:`lifecycle`,onAfterNodeProcess:(e,t)=>{let{path:n}=t;if(n.length===3&&n[0]===`components`&&n[1]===`securitySchemes`){let n=JF(e,t);typeof n==`object`&&n&&`scheme`in n&&typeof n.scheme==`string`&&n.scheme.toLowerCase()!==n.scheme&&(n.scheme=n.scheme.toLowerCase())}}}),eI=()=>({type:`lifecycle`,onBeforeNodeProcess:(e,t)=>{let{path:n}=t;if(typeof e.$ref==`string`&&(n[0]!==`components`||n[1]!==`schemas`)){let t=new Set([`$ref`,`summary`,`description`,`$status`]);Object.keys(e).forEach(n=>{t.has(n)||delete e[n]})}}}),tI=()=>({type:`lifecycle`,onBeforeNodeProcess:(e,t)=>{let{path:n}=t;if(n.length!==2||n[0]!==`paths`||typeof n[1]!=`string`)return;let r=n[1];for(let n of fi){let i=JF(e[n],t);if(!na(i))continue;let a=e=>{let n=JF(e,t);return na(n)&&`name`in n&&typeof n.name==`string`&&`in`in n&&typeof n.in==`string`},o=e=>{let n=JF(e,t);return a(n)&&n.in===`path`},s=(`parameters`in i&&Array.isArray(i.parameters)?i.parameters:[]).filter(a),c=new Set(s.map(e=>JF(e,t)).filter(o).map(e=>e.name)),l=(`parameters`in e&&Array.isArray(e.parameters)?e.parameters:[]).filter(e=>{let n=JF(e,t);if(!o(n))return!1;let r=!c.has(n.name);return r&&c.add(n.name),r}),u=Un(r,r,[...s,...l],e=>JF(e,t));u.length>0&&(i.parameters=u)}}}),nI=[`__scalar_`,`$status`],rI=()=>({type:`lifecycle`,onBeforeNodeProcess:e=>{if(na(e))for(let t of nI)t in e&&delete e[t]}}),iI=e=>{let t=z({name:J(U({typeComment:`The name of the contact.`})),url:J(U({typeComment:`The URI for the contact information. This MUST be in the form of a URI.`})),email:J(U({typeComment:`The email address of the contact person/organization. This MUST be in the form of an email address.`}))},{typeName:`ContactObject`}),n=z({name:J(U({typeComment:`REQUIRED. The license name used for the API.`})),identifier:J(U({typeComment:`An SPDX license expression for the API. The identifier field is mutually exclusive of the url field.`})),url:J(U({typeComment:`A URI for the license used for the API. This MUST be in the form of a URI. The url field is mutually exclusive of the identifier field.`}))},{typeName:`LicenseObject`}),r=Dr([z({title:U({typeComment:`REQUIRED. The title of the API.`}),version:U({typeComment:`REQUIRED. The version of the OpenAPI Document (which is distinct from the OpenAPI Specification version or the version of the API being described or the version of the OpenAPI Description).`}),summary:J(U({typeComment:`A short summary of the API.`})),description:J(U({typeComment:`A description of the API. CommonMark syntax MAY be used for rich text representation.`})),termsOfService:J(U({typeComment:`A URI for the Terms of Service for the API. This MUST be in the form of a URI.`})),contact:J(t),license:J(n)},{typeName:`InfoObject`}),Ca,Ha]),i=z({enum:J(Y(U(),{typeComment:`An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty.`})),default:J(U({typeComment:`The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. If the enum is defined, the value MUST exist in the enum's values. Note that this behavior is different from the Schema Object's default keyword, which documents the receiver's behavior rather than inserting the value into the data.`})),description:J(U({typeComment:`An optional description for the server variable. CommonMark syntax MAY be used for rich text representation.`}))},{typeName:`ServerVariableObject`}),a=z({url:U({typeComment:`REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the document containing the Server Object is being served. Variable substitutions will be made when a variable is named in {braces}.`}),description:J(U({typeComment:`An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation.`})),variables:J(H(U(),i,{typeComment:`A map between a variable name and its value. The value is used for substitution in the server's URL template.`}))},{typeName:`ServerObject`}),o=z({url:U({typeComment:`REQUIRED. The URI for the target documentation. This MUST be in the form of a URI.`}),description:J(U({typeComment:`A description of the target documentation. CommonMark syntax MAY be used for rich text representation.`}))},{typeName:`ExternalDocumentationObject`}),s=Dr([z({name:U({typeComment:`REQUIRED. The name of the tag.`}),description:J(U({typeComment:`A description for the tag. CommonMark syntax MAY be used for rich text representation.`})),externalDocs:J(o)},{typeName:`TagObject`}),ia,Mn,Ra,wi]),c=H(U(),Y(U()),{typeName:`SecurityRequirementObject`,typeComment:`Lists the required security schemes to execute this operation. An empty object ({}) indicates anonymous access is supported.`}),l=z({name:J(U({typeComment:`Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being "array" (outside the items), it will affect the wrapping element if and only if wrapped is true. If wrapped is false, it will be ignored.`})),namespace:J(U({typeComment:`The URI of the namespace definition. Value MUST be in the form of a non-relative URI.`})),prefix:J(U({typeComment:`The prefix to be used for the name.`})),attribute:J(K({typeComment:`Declares whether the property definition translates to an attribute instead of an element. Default value is false.`})),wrapped:J(K({typeComment:`MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items).`}))},{typeName:`XMLObject`}),u=z({propertyName:U({typeComment:`REQUIRED. The name of the property in the payload that will hold the discriminating value. This property SHOULD be required in the payload schema, as the behavior when the property is absent is undefined.`}),mapping:J(H(U(),U(),{typeComment:`An object to hold mappings between payload values and schema names or URI references.`}))},{typeName:`DiscriminatorObject`}),d=[Ra,Mn,Zn,dn,Hn,Dn,vr,cr,Ao],f=z({name:J(U({typeComment:`Schema name (extension).`})),title:J(U({typeComment:`A title for the schema.`})),description:J(U({typeComment:`A description of the schema.`})),default:J(vi({typeComment:`Default value for the schema.`})),enum:J(Y(vi(),{typeComment:`Array of allowed values.`,typeName:`JsonSchemaEnum`})),const:J(vi({typeComment:`Constant value that must match exactly.`})),contentMediaType:J(U({typeComment:`Media type for content validation.`})),contentEncoding:J(U({typeComment:`Content encoding.`})),contentSchema:J(e(V(()=>x))),deprecated:J(K({typeComment:`Whether the schema is deprecated.`})),discriminator:J(u),readOnly:J(K({typeComment:`Whether the schema is read-only.`})),writeOnly:J(K({typeComment:`Whether the schema is write-only.`})),xml:J(l),externalDocs:J(o),example:J(vi({typeComment:`A free-form field to include an example of an instance for this schema. Deprecated in favor of the JSON Schema examples keyword.`})),examples:J(Y(vi(),{typeComment:`An array of examples of valid instances for this schema. This keyword follows the JSON Schema Draft 2020-12 specification.`,typeName:`SchemaExamplesArray`})),allOf:J(Y(e(V(()=>x)),{typeName:`SchemaObjectAllOf`})),oneOf:J(Y(e(V(()=>x)),{typeName:`SchemaObjectOneOf`})),anyOf:J(Y(e(V(()=>x)),{typeName:`SchemaObjectAnyOf`})),not:J(e(V(()=>x)))}),p=z({__scalar_:U({typeComment:`Internal marker for schema object disambiguation.`})}),m=z({multipleOf:J(ca({typeComment:`Number must be a multiple of this value.`})),maximum:J(ca({typeComment:`Maximum value (inclusive).`})),exclusiveMaximum:J(ca({typeComment:`Maximum value (exclusive).`})),minimum:J(ca({typeComment:`Minimum value (inclusive).`})),exclusiveMinimum:J(ca({typeComment:`Minimum value (exclusive).`}))}),h=Dr([z({type:W([B(`number`),B(`integer`)]),format:J(U({typeComment:`Different subtypes.`}))}),m],{typeName:`NumberSchemaObject`}),g=z({maxLength:J(ca({typeComment:`Maximum string length.`})),minLength:J(ca({typeComment:`Minimum string length.`})),pattern:J(U({typeComment:`Regular expression pattern.`}))}),_=Dr([z({type:B(`string`),format:J(U({typeComment:`Different subtypes.`}))}),g],{typeName:`StringSchemaObject`}),v=z({maxProperties:J(ca({typeComment:`Maximum number of properties.`})),minProperties:J(ca({typeComment:`Minimum number of properties.`})),properties:J(H(U(),e(V(()=>x)),{typeName:`SchemaObjectProperties`})),required:J(Y(U(),{typeName:`SchemaObjectRequired`})),additionalProperties:J(W([K(),e(V(()=>x))],{typeName:`SchemaObjectAdditionalProperties`})),patternProperties:J(H(U(),e(V(()=>x)),{typeName:`SchemaObjectPatternProperties`})),propertyNames:J(e(V(()=>x)))}),ee=Dr([z({type:B(`object`)}),v],{typeName:`ObjectSchemaObject`}),te=z({maxItems:J(ca({typeComment:`Maximum number of items in array.`})),minItems:J(ca({typeComment:`Minimum number of items in array.`})),uniqueItems:J(K({typeComment:`Whether array items must be unique.`})),items:J(e(V(()=>x))),prefixItems:J(Y(e(V(()=>x)),{typeComment:`Schema for tuple validation.`}))}),ne=Dr([z({type:B(`array`)}),te],{typeName:`ArraySchemaObject`}),re=W([B(`null`),B(`boolean`),B(`string`),B(`number`),B(`integer`),B(`object`),B(`array`)],{typeName:`SchemaObjectMultiTypeKeywords`}),y=z({type:W([B(`null`),B(`boolean`)],{typeName:`SchemaObjectOtherTypeKeyword`})}),b=Dr([z({type:Y(re,{typeName:`SchemaObjectMultiTypeKeywordArray`}),format:J(U({typeComment:`Different subtypes.`}))}),m,g,te,v],{typeName:`MultiTypeSchemaObject`}),x=Dr([f,...d,W([p,y,h,_,ee,ne,b])],{typeName:`SchemaObject`}),S=z({description:J(U({typeComment:`A description for security scheme. CommonMark syntax MAY be used for rich text representation.`}))}),ie=z({...S.properties,type:B(`apiKey`),name:U({typeComment:`REQUIRED. The name of the header, query or cookie parameter to be used.`}),in:W([B(`query`),B(`header`),B(`cookie`)],{typeComment:`REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie".`})},{typeName:`ApiKeySecuritySchemeObject`}),ae=z({...S.properties,type:B(`http`),scheme:W([B(`basic`),B(`bearer`)],{typeName:`HttpSecuritySchemeScheme`,typeComment:`REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235.`}),bearerFormat:J(U({typeComment:`A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes.`}))},{typeName:`HttpSecuritySchemeObject`}),C=[Ft,Pi,qr,ri,pr],w=z({refreshUrl:U({typeComment:`The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`}),scopes:H(U(),U(),{typeComment:`REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty.`,typeName:`OAuthFlowScopes`})},{typeName:`OAuthFlowBaseCore`}),oe=Dr([w,...C,z({authorizationUrl:U({typeComment:`REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`})},{typeName:`ImplicitOAuthFlowObject`})]),T=Dr([w,...C,z({tokenUrl:U({typeComment:`REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`})},{typeName:`PasswordOAuthFlowObject`}),eo]),se=Dr([w,...C,z({tokenUrl:U({typeComment:`REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`})},{typeName:`ClientCredentialsOAuthFlowObject`}),eo]),ce=Dr([w,...C,z({authorizationUrl:U({typeComment:`REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`}),tokenUrl:U({typeComment:`REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`})},{typeName:`AuthorizationCodeOAuthFlowObject`}),Qr,eo]),E=z({implicit:J(oe),password:J(T),clientCredentials:J(se),authorizationCode:J(ce)},{typeName:`OAuthFlowsObject`}),D=Dr([z({...S.properties,type:B(`oauth2`),flows:E},{typeName:`OAuth2SecuritySchemeObject`}),Kn]),le=z({...S.properties,type:B(`openIdConnect`),openIdConnectUrl:U({typeComment:`REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata.`})},{typeName:`OpenIdConnectSecuritySchemeObject`}),ue=W([ie,ae,D,le],{typeName:`SecuritySchemeObject`}),O=z({schemas:J(H(U(),e(x),{typeName:`ComponentsSchemas`})),responses:J(H(U(),e(V(()=>ge)),{typeName:`ComponentsResponses`})),parameters:J(H(U(),e(V(()=>P)),{typeName:`ComponentsParameters`})),examples:J(H(U(),e(V(()=>de)),{typeName:`ComponentsExamples`})),requestBodies:J(H(U(),e(V(()=>F)),{typeName:`ComponentsRequestBodies`})),headers:J(H(U(),e(V(()=>j)),{typeName:`ComponentsHeaders`})),securitySchemes:J(H(U(),e(V(()=>ue)),{typeName:`ComponentsSecuritySchemes`})),links:J(H(U(),e(V(()=>he)),{typeName:`ComponentsLinks`})),callbacks:J(H(U(),e(V(()=>I)),{typeName:`ComponentsCallbacks`})),pathItems:J(H(U(),V(()=>ye),{typeName:`ComponentsPathItems`}))},{typeName:`ComponentsObject`}),de=Dr([z({summary:J(U({typeComment:`Short description for the example.`})),description:J(U({typeComment:`Long description for the example. CommonMark syntax MAY be used for rich text representation.`})),value:J(vi({typeComment:`Embedded literal example. The value field and externalValue field are mutually exclusive.`})),externalValue:J(U({typeComment:`A URI that identifies the literal example. The value field and externalValue field are mutually exclusive.`}))},{typeName:`ExampleObject`}),Qi]),k=z({description:J(U({typeComment:`A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.`})),required:J(K({typeComment:`Determines whether this header is mandatory. The default value is false.`})),deprecated:J(K({typeComment:`Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false.`}))},{typeName:`HeaderBase`}),A=Dr([k,z({style:J(U({typeComment:`Describes how the header value will be serialized. The default (and only legal value for headers) is "simple".`})),explode:J(K({typeComment:`When this is true, header values of type array or object generate a single header whose value is a comma-separated list of the array items or key-value pairs of the map, see Style Examples.`})),schema:J(e(V(()=>x))),example:J(vi()),examples:J(H(U(),e(V(()=>de)),{typeName:`HeaderExamples`}))},{typeName:`HeaderObjectWithSchema`})]),fe=Dr([k,z({content:J(H(U(),V(()=>N),{typeName:`HeaderContent`}))},{typeName:`HeaderObjectWithContent`})]),j=W([A,fe],{typeName:`HeaderObject`}),M=z({contentType:J(U({typeComment:`The Content-Type for encoding a specific property. The value is a comma-separated list, each element of which is either a specific media type (e.g. image/png) or a wildcard media type (e.g. image/*).`})),headers:J(H(U(),e(V(()=>j)),{typeName:`EncodingHeaders`}))},{typeName:`EncodingObject`}),N=z({schema:J(e(V(()=>x))),example:J(vi({typeComment:`Example of the media type.`})),examples:J(H(U(),e(V(()=>de)),{typeName:`MediaTypeExamples`})),encoding:J(H(U(),M,{typeComment:`A map between a property name and its encoding information. The key, being the property name, MUST exist in the schema as a property.`,typeName:`MediaTypeEncoding`}))},{typeName:`MediaTypeObject`}),pe=Dr([z({name:U({typeComment:`REQUIRED. The name of the parameter. Parameter names are case sensitive. If in is "path", the name field MUST correspond to a template expression occurring within the path field in the Paths Object.`}),in:W([B(`query`),B(`header`),B(`path`),B(`cookie`)],{typeName:`ParameterLocation`,typeComment:`REQUIRED. The location of the parameter. Possible values are "query", "header", "path" or "cookie".`}),description:J(U({typeComment:`A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.`})),required:J(K({typeComment:`Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true.`})),deprecated:J(K({typeComment:`Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false.`})),allowEmptyValue:J(K({typeComment:`If true, clients MAY pass a zero-length string value in place of parameters that would otherwise be omitted entirely. This field is valid only for query parameters.`})),allowReserved:J(K({typeComment:`When this is true, parameter values are serialized using reserved expansion, as defined by RFC6570. This field only applies to parameters with an in value of query. The default value is false.`})),style:J(U({typeComment:`Describes how the parameter value will be serialized (depending on the schema type).`})),explode:J(K({typeComment:`When this is true, parameter values of type array or object generate separate parameters for each array item or object property.`})),schema:J(e(V(()=>x))),example:J(vi()),examples:J(H(U(),e(V(()=>de)),{typeName:`ParameterExamples`}))},{typeName:`ParameterObjectWithSchema`}),Lr,Mn,Ra]),me=Dr([z({name:U({typeComment:`REQUIRED. The name of the parameter. Parameter names are case sensitive. If in is "path", the name field MUST correspond to a template expression occurring within the path field in the Paths Object.`}),in:W([B(`query`),B(`header`),B(`path`),B(`cookie`)],{typeName:`ParameterLocation`,typeComment:`REQUIRED. The location of the parameter. Possible values are "query", "header", "path" or "cookie".`}),description:J(U({typeComment:`A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.`})),required:J(K({typeComment:`Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true.`})),deprecated:J(K({typeComment:`Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false.`})),allowEmptyValue:J(K({typeComment:`If true, clients MAY pass a zero-length string value in place of parameters that would otherwise be omitted entirely. This field is valid only for query parameters.`})),allowReserved:J(K({typeComment:`When this is true, parameter values are serialized using reserved expansion, as defined by RFC6570. This field only applies to parameters with an in value of query. The default value is false.`})),content:J(H(U(),V(()=>N),{typeName:`ParameterContent`}))},{typeName:`ParameterObjectWithContent`}),Lr,Mn,Ra]),P=W([pe,me],{typeName:`ParameterObject`}),F=Dr([z({description:J(U({typeComment:`A brief description of the request body. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.`})),content:H(U(),V(()=>N),{typeComment:`REQUIRED. The content of the request body. The key is a media type or media type range and the value describes it.`,typeName:`RequestBodyContent`}),required:J(K({typeComment:`Determines if the request body is required in the request. Defaults to false.`}))},{typeName:`RequestBodyObject`}),Wt]),he=z({operationRef:J(U({typeComment:`A URI reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object.`})),operationId:J(U({typeComment:`The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field.`})),parameters:J(H(U(),vi(),{typeComment:`A map representing parameters to pass to an operation as specified with operationId or identified via operationRef.`,typeName:`LinkParameters`})),requestBody:J(vi({typeComment:`A literal value or {expression} to use as a request body when calling the target operation.`})),description:J(U({typeComment:`A description of the link. CommonMark syntax MAY be used for rich text representation.`})),server:J(a)},{typeName:`LinkObject`}),ge=z({description:U({typeComment:`REQUIRED. A description of the response. CommonMark syntax MAY be used for rich text representation.`}),headers:J(H(U(),e(V(()=>j)),{typeName:`ResponseHeaders`})),content:J(H(U(),V(()=>N),{typeName:`ResponseContent`})),links:J(H(U(),e(V(()=>he)),{typeName:`ResponseLinks`}))},{typeName:`ResponseObject`}),_e=H(U(),e(V(()=>ge)),{typeName:`ResponsesObject`}),I=H(U(),e(V(()=>ye)),{typeName:`CallbackObject`}),ve=Dr([z({tags:J(Y(U(),{typeComment:`A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.`,typeName:`OperationTags`})),summary:J(U({typeComment:`A short summary of what the operation does.`})),description:J(U({typeComment:`A verbose explanation of the operation behavior. CommonMark syntax MAY be used for rich text representation.`})),externalDocs:J(o),operationId:J(U({typeComment:`Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.`})),parameters:J(Y(e(V(()=>P)),{typeName:`OperationParameters`})),requestBody:J(e(V(()=>F))),responses:J(V(()=>_e)),deprecated:J(K({typeComment:`Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default value is false.`})),security:J(Y(c,{typeName:`OperationSecurity`})),servers:J(Y(a,{typeName:`OperationServers`})),callbacks:J(H(U(),e(V(()=>I)),{typeName:`OperationCallbacks`}))},{typeName:`OperationObject`}),In,Mn,Ra,gn,xn,Mr,zi,ki,Hr,Ja]),ye=z({$ref:J(U({typeComment:`Allows for a referenced definition of this path item. The value MUST be in the form of a URI, and the referenced structure MUST be in the form of a Path Item Object.`})),summary:J(U({typeComment:`An optional string summary, intended to apply to all operations in this path.`})),description:J(U({typeComment:`An optional string description, intended to apply to all operations in this path. CommonMark syntax MAY be used for rich text representation.`})),get:J(e(V(()=>ve))),put:J(e(V(()=>ve))),post:J(e(V(()=>ve))),delete:J(e(V(()=>ve))),patch:J(e(V(()=>ve))),connect:J(e(V(()=>ve))),options:J(e(V(()=>ve))),head:J(e(V(()=>ve))),trace:J(e(V(()=>ve))),servers:J(Y(a,{typeName:`PathItemServers`})),parameters:J(Y(e(V(()=>P)),{typeName:`PathItemParameters`}))},{typeName:`PathItemObject`}),be=z({"x-original-oas-version":J(U({typeComment:`Original OpenAPI Specification version of the source document.`})),[gr.document.navigation]:J(vi({typeComment:`Client navigation tree (TraversedDocument) for this OpenAPI description. Matches TraversedDocumentObjectRef in strict schemas.`}))},{typeName:`OpenApiExtensionsPartial`}),xe=z({openapi:U({typeComment:`REQUIRED. This string MUST be the version number of the OpenAPI Specification that the OpenAPI Document uses. The openapi field SHOULD be used by tooling to interpret the OpenAPI Document. This is not related to the API info.version string.`}),info:r,jsonSchemaDialect:J(U({typeComment:`The default value for the $schema keyword within Schema Objects contained within this OAS document. This MUST be in the form of a URI.`})),servers:J(Y(a,{typeComment:`An array of Server Objects, which provide connectivity information to a target server. If the servers field is not provided, or is an empty array, the default value would be a Server Object with a url value of /.`,typeName:`OpenApiServers`})),paths:J(H(U(),ye,{typeComment:`The available paths and operations for the API.`,typeName:`PathsObject`})),webhooks:J(H(U(),ye,{typeComment:`The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement.`,typeName:`WebhooksObject`})),components:J(O),security:J(Y(c,{typeComment:`A declaration of which security mechanisms can be used across the API. The list of values includes alternative Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied to authorize a request.`,typeName:`OpenApiSecurity`})),tags:J(Y(s,{typeComment:`A list of tags used by the OpenAPI Description with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools.`})),externalDocs:J(o)},{typeName:`OpenApiDocumentCore`});return Dr([xe,be,Ji,Da,So,Ja,lo,wi,ma,Ui,si,io,Ma,ya,ki,zi],{typeName:`OpenApiDocument`,typeComment:`Root OpenAPI 3.1 document including Scalar workspace extensions (OpenApiExtensionsSchema).`})},aI=z({$status:J(W([B(`loading`),B(`error`)]),{typeComment:`Indicates the current status of the reference resolution. Can be either 'loading' while fetching the reference or 'error' if the resolution failed.`}),$global:J(K({typeComment:`Indicates whether this reference should be resolved globally across all documents, rather than just within the current document context.`}))},{typeName:`ReferenceObjectExtensions`}),oI=z({$ref:U({typeComment:`REQUIRED. The reference identifier. This MUST be in the form of a URI.`}),summary:J(U({typeComment:`A short summary which by default SHOULD override that of the referenced component. If the referenced object-type does not allow a summary field, then this field has no effect.`})),description:J(U({typeComment:`A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for rich text representation. If the referenced object-type does not allow a description field, then this field has no effect.`}))},{typeName:`ReferenceObject`}),sI=e=>na(e)&&`$ref`in e?sI(e[`$ref-value`]):e,cI=e=>W([e,Dr([oI,z({"$ref-value":Jt(sI,e)}),aI])]);function lI(e){if(`url`in e)return cN({fetch:e.fetch}).exec(e.url);if(`path`in e){let t=e.fileLoader;return t?t.exec(e.path):(console.error(`No loader provided for loading files`),Promise.resolve({ok:!1}))}return Promise.resolve({ok:!0,data:e.document,raw:JSON.stringify(e.document)})}var uI=e=>{if(`url`in e)return e.url;if(`path`in e)return e.path},dI=iI(cI),fI=new Set([`x-scalar-is-dirty`,`x-scalar-registry-meta`]),pI=e=>{let t=ni(e);for(let e of[`x-ext`,`x-ext-urls`,`x-scalar-navigation`,`x-scalar-is-dirty`,`x-original-oas-version`,`x-scalar-original-document-hash`,`x-scalar-original-source-url`,`x-scalar-registry-meta`])delete t[e];return t},mI=e=>{let{verbose:t=!1}=e??{},n=(e,n)=>t?iM(e,n):n(),r=(e,n)=>t?aM(e,n):n(),i={},a=t=>{e?.plugins?.forEach(e=>e.hooks?.onWorkspaceStateChanges?.(t))},s=o(_i({...e?.meta,documents:{},get activeDocument(){return s.documents[p()]}},{hooks:{onAfterChange(e){let t=e[0];if(t===`documents`){if(e.length<2){console.log(`[WARN]: Overriding entire documents object is not supported`);return}let t=e[1],n=s.documents[t]??{openapi:`3.1.0`,info:{title:``,version:``},"x-scalar-original-document-hash":``},r={type:`documents`,documentName:t,value:co(n),path:e.slice(2)};r.path.length>0&&!fI.has(r.path[0])&&(n[`x-scalar-is-dirty`]=!0),a(r);return}if(t===`activeDocument`){let t=p(),n=s.documents[t]??{openapi:`3.1.0`,info:{title:``,version:``},"x-scalar-original-document-hash":``},r={type:`documents`,documentName:t,value:co(n),path:e.slice(2)};r.path.length>0&&!fI.has(r.path[0])&&(n[`x-scalar-is-dirty`]=!0),a(r);return}let{activeDocument:n,documents:r,...i}=s,o={type:`meta`,value:co(i,{depth:1})};a(o)}}})),{originalDocuments:c,intermediateDocuments:l,overrides:u}=_i({originalDocuments:{},intermediateDocuments:{},overrides:{}},{hooks:{onAfterChange(e){let t=e[0];if(!t||e.length<2)return;let n=e[1];if(t===`originalDocuments`){let r={type:t,documentName:n,value:co(c[n]??{}),path:e.splice(2)};a(r)}if(t===`intermediateDocuments`){let r={type:t,documentName:n,value:co(l[n]??{}),path:e.splice(2)};a(r)}if(t===`overrides`){let e={type:t,documentName:n,value:co(u[n]??{})};a(e)}}}}),d=KF({hooks:{onHistoryChange:e=>{a({type:`history`,documentName:e,value:d.export()[e]??{}})}}}),f=Pa({hooks:{onAuthChange:e=>{a({type:`auth`,documentName:e,value:f.export()[e]??{secrets:{},selected:{document:{selectedIndex:0,selectedSchemes:[]},path:{}}}})}}});function p(){return s[gr.workspace.activeDocument]??Object.keys(s.documents)[0]??``}function m(e,t,n){let r=c[e];if(r)return t===`json`?n?JSON.stringify(r):JSON.stringify(r,null,2):No.stringify(r)}let h=async e=>{let t=s.documents[e],n=await ne(e);return!t||!n?(console.warn(`Failed to save document, active document is missing`),!1):(c[e]=n,l[e]=ni(n),t[`x-scalar-is-dirty`]=!1,!0)};async function g(t,a){let{name:o}=t,d=ni(t.meta),f=n(`deepClone`,()=>ni(t.document));n(`initialize`,()=>{t.initialize!==!1&&(c[o]=ni(f),l[o]=ni(f),u[o]=t.overrides??{},i[o]={fetch:t.fetch})});let p=[cN({fetch:i[o]?.fetch??e?.fetch})];if(e?.fileLoader&&p.push(e.fileLoader),ga(f)){let e=yo({...f,...d,"x-original-aas-version":f.asyncapi,"x-scalar-original-document-hash":t.documentHash,"x-scalar-original-source-url":t.documentSource});await r(`bundle`,async()=>await eN(xr(e),{treeShake:!1,plugins:p,urlMap:!0,origin:t.documentSource}));let i=n(`coerceValue`,()=>Eh(RF,ni(xr(e))));if(n(`mergeObjects`,()=>Kr(e,i)),e[gr.document.navigation]===void 0){let t=uS(o,e,a);e[gr.document.navigation]=t}s.documents[o]=xo(e,{overrides:co(u[o])});return}let m=n(`upgrade`,()=>ZN(ni(f),`3.1`)),h=yo({...m,...d,"x-original-oas-version":c[o]?.openapi??c[o]?.swagger,"x-scalar-original-document-hash":t.documentHash,"x-scalar-original-source-url":t.documentSource},{showInternal:!0});if(h[gr.document.navigation]===void 0){await r(`bundle`,async()=>await eN(xr(h),{treeShake:!1,plugins:[...p,eI(),XF(),ZF(),$F(),tI()],urlMap:!0,origin:t.documentSource}));let e=n(`coerceValue`,()=>Eh(dI,ni(h)));n(`mergeObjects`,()=>Kr(h,e))}if(!Ht(zt,h)){let e=Array.from(bh(zt,h));console.warn(`document validation errors: `),console.warn(e.map(e=>({message:e.message,path:e.path,schema:e.schema,value:e.value})))}if(h[gr.document.navigation]===void 0){let e=gi(o,h,a);h[gr.document.navigation]=e}s.documents[o]=xo(yo(xr(h)),{overrides:co(u[o])})}async function _(t,n){let{name:i,meta:a}=t,o=qF({fetch:t.fetch??e?.fetch,proxyUrl:s[`x-scalar-active-proxy`]??void 0}),c=await r(`loadDocument`,async()=>await lI({...t,fetch:o,fileLoader:e?.fileLoader}));return await r(`addDocument`,async()=>c.ok?na(c.data)?(await g({...t,document:c.data,documentSource:uI(t),documentHash:ai(c.raw)},n),!0):(console.error(`Failed to load document '${i}': response data is not a valid object`),s.documents[i]={...a,openapi:`3.1.0`,info:{title:`Document '${i}' could not be loaded`,version:`unknown`},"x-scalar-original-document-hash":`not-a-hash`},!1):(console.error(`Failed to fetch document '${i}': request was not successful`),s.documents[i]={...a,openapi:`3.1.0`,info:{title:`Document '${i}' could not be loaded`,version:`unknown`},"x-scalar-original-document-hash":`not-a-hash`},!1))}let v=e=>co(c[e],{depth:1})||null,ee=e=>co(l[e],{depth:1})||null,te=e=>!!l[e],ne=async e=>{let t=co(s.documents[e],{depth:1});return t?pI(await eN(ni(t),{plugins:[QF(),rI()],treeShake:!1,urlMap:!0})):null},re=e=>{let t=s.documents[e];if(!t)return console.error(`Document '${e}' does not exist in the workspace.`),!1;if(!ao(t))return!1;let n=gi(e,t);return t[gr.document.navigation]=n,!0},y=new Set;return{get workspace(){return s},get history(){return d},get auth(){return f},update(e,t){ji(e),Object.assign(s,{[e]:t})},getEditableDocument:ne,getOriginalDocument:v,getIntermediateDocument:ee,updateDocument(e,t,n){let r=s.documents[e===`active`?p():e];return r?(ji(t),Object.assign(r,{[t]:n}),!0):!1},async replaceDocument(e,t){let n=co(s.documents[e],{depth:1});if(!n)return console.error(`Document '${e}' does not exist in the workspace.`);await g({name:e,document:t,documentSource:n[`x-scalar-original-source-url`],documentHash:n[`x-scalar-original-document-hash`],meta:{"x-scalar-registry-meta":n[`x-scalar-registry-meta`],"x-scalar-is-dirty":!0,"x-scalar-navigation":void 0},initialize:!1})},resolve:e=>{let t=s.activeDocument,n=Ba(t,e);return na(n)?eN(n,{root:t,treeShake:!1,plugins:[cN(),YF(),XF()],urlMap:!0,visitedNodes:y}):(console.error(`Invalid path provided for resolution. Path: [${e.join(`, `)}]. Found value of type: ${typeof n}. Expected an object.`),Promise.resolve())},addDocument:_,deleteDocument:e=>{if(!s.documents[e])return;delete s.documents[e],delete c[e],delete l[e],delete u[e],delete i[e],d.clearDocumentHistory(e),f.clearDocumentAuth(e);let t=Object.keys(s.documents);s[`x-scalar-active-document`]===e&&(s[`x-scalar-active-document`]=t[0]??void 0),a({type:`deleteDocument`,documentName:e})},exportDocument:m,exportActiveDocument:(e,t)=>m(p(),e,t),buildSidebar:re,saveDocument:h,promoteIntermediateToOriginal:te,async revertDocumentChanges(e){let t=co(s.documents[e],{depth:1}),n=co(c[e],{depth:1});t&&n&&(l[e]=ni(n),await g({name:e,document:n,documentSource:t[`x-scalar-original-source-url`],documentHash:t[`x-scalar-original-document-hash`],initialize:!1,meta:{"x-scalar-registry-meta":t[`x-scalar-registry-meta`]}}))},commitDocument(e){console.warn(`Commit operation for document '${e}' is not implemented yet.`)},exportWorkspace(){let{activeDocument:e,documents:t,...n}=co(s);return{documents:{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,co(t)]))},meta:co(n)??{},originalDocuments:co(c),intermediateDocuments:co(l),overrides:co(u),history:d.export(),auth:f.export()}},loadWorkspace(e){Yi(s.documents,Object.fromEntries(Object.entries(e.documents).map(([t,n])=>[t,xo(yo(n),{overrides:e.overrides[t]})]))),Yi(c,e.originalDocuments),Yi(l,e.intermediateDocuments),Yi(u,e.overrides),Yi(s,e.meta),d.load(e.history),f.load(e.auth)},importWorkspaceFromSpecification:e=>{let{documents:t,overrides:n,info:r,workspace:i,...a}=e;return Yi(s,a),Promise.all(Object.entries(t??{}).map(([e,t])=>_({url:t.$ref,name:e,overrides:n?.[e]})))},rebaseDocument:async t=>{let{name:n}=t,a=co(c[n],{depth:1}),o=co(s.documents[n],{depth:1}),d=await ne(n);if(!a||!d||!o)return{ok:!1,type:`CORRUPTED_STATE`,message:`Cannot rebase document '${n}': missing original or active document state`};let f=await r(`loadDocument`,async()=>await lI({...t,fetch:t.fetch??e?.fetch,fileLoader:e?.fileLoader}));if(!f.ok||!na(f.data))return{ok:!1,type:`FETCH_FAILED`,message:`Failed to fetch document '${n}': request was not successful or returned invalid data`};let p=ai(f.raw);if(o[`x-scalar-original-document-hash`]===p)return{ok:!1,type:`NO_CHANGES_DETECTED`,message:`No changes detected for document '${n}': document hash matches the active document`};let m=f.data;u[n]=t.overrides??{},i[n]={fetch:t.fetch};let h=dN(a,m);if(h.length===0)return{ok:!1,type:`NO_CHANGES_DETECTED`,message:`No changes detected for document '${n}' after fetching the latest version.`};let _=_N(h,dN(a,d));return{ok:!0,conflicts:_.conflicts,changes:_.diffs,applyChanges:async e=>{let r=(()=>{if(`resolvedConflicts`in e){let t=_.diffs.concat(e.resolvedConflicts);return uN(ni(a),t)}return e.resolvedDocument})(),i=dN(m,r).length>0;c[n]=r,l[n]=ni(r);let s=ao(o),u=s?o[`x-scalar-environments`]:void 0,d=s?o[`x-scalar-order`]:void 0,p=r.servers,h=o.servers,v=Array.isArray(p)&&p.length>0,ee=Array.isArray(h)&&h.length>0,te=!ga(r)&&!v&&ee?ni(h):void 0;await g({...t,document:{...r,[gr.document.navigation]:void 0},documentSource:uI(t),documentHash:ai(f.raw),initialize:!1,meta:{...t.meta,"x-scalar-registry-meta":o[`x-scalar-registry-meta`],"x-scalar-watch-mode":o[`x-scalar-watch-mode`],"x-scalar-selected-server":o[`x-scalar-selected-server`],...u===void 0?{}:{"x-scalar-environments":u},...d===void 0?{}:{"x-scalar-order":d},...te===void 0?{}:{servers:te},"x-scalar-is-dirty":i}})}}}}},hI={Date:!0,RegExp:!0,String:!0,Number:!0};function gI(e,t,n={cyclesFix:!0},r=[]){let i=[],a=Array.isArray(e);for(let o in e){let s=e[o],c=a?+o:o;if(!(o in t)){i.push({type:`REMOVE`,path:[c],oldValue:e[o]});continue}let l=t[o],u=typeof s==`object`&&typeof l==`object`&&Array.isArray(s)===Array.isArray(l);s&&l&&u&&!hI[Object.getPrototypeOf(s)?.constructor?.name]&&(!n.cyclesFix||!r.includes(s))?i.push.apply(i,gI(s,l,n,n.cyclesFix?r.concat([s]):[]).map(e=>(e.path.unshift(c),e))):s!==l&&!(Number.isNaN(s)&&Number.isNaN(l))&&!(u&&(isNaN(s)?s+``==l+``:+s==+l))&&i.push({path:[c],type:`CHANGE`,value:l,oldValue:s})}let o=Array.isArray(t);for(let n in t)n in e||i.push({type:`CREATE`,path:[o?+n:n],value:t[n]});return i}var _I=[`dir`,`lang`],vI={key:1,class:`flex gap-1.5 px-3 pt-3`},yI={class:`no-underline hover:underline`,href:`https://www.scalar.com`,target:`_blank`},bI={key:1},xI=[`aria-label`,`inert`],SI={class:`w-64 empty:hidden`},CI={key:2,class:`references-footer`};typeof window<`u`&&console.info(`@scalar/api-reference@1.62.0`);var wI=X(E({__name:`ApiReference`,props:{configuration:{}},setup(e,{expose:r}){let i=e,{copyToClipboard:a}=Bt(),o=T(AA),s=ar({debug:!1}),c=n(!1);Ya(()=>v());let l=T(()=>eM(i.configuration)),f=T(()=>Object.keys(l.value).length>1),p=n(Object.values(l.value).find(e=>e.default)?.slug??l.value[Object.keys(l.value)?.[0]??``]?.slug??``);if(typeof window<`u`){let e=new URL(window.location.href),t=e.searchParams.get(`api`);if(t&&l.value[t]){p.value=t;let n=Qb(Xb(e,l.value[t].config.pathRouting?.basePath,t),l.value[t].config.pathRouting?.basePath,f.value);n&&(n.searchParams.delete(`api`),window.history.replaceState({},``,n.toString()))}let n=Xb(e,Object.values(l.value).map(e=>e.config.pathRouting?.basePath).find(t=>t?Yb(e,t):!1),f.value?void 0:p.value).split(`/`)[0];n&&l.value[n]&&(p.value=n)}let h=T(()=>Object.values(l.value).map(e=>({label:e.title,id:e.slug}))),g=n(``),_=n(``),te=T(()=>{let e=M.workspace.activeDocument;return ga(e)?e:null});m(p,()=>{g.value=``,_.value=``});let ne=n({}),re=(e,t)=>{let n=bm(e.localization),r=ne.value.modelsSectionLabel??(t?.modelsSectionLabel===`Models`?void 0:t?.modelsSectionLabel);return{...e,modelsSectionLabel:r??n.translations.models.label??`Models`}},y=T(()=>{let e=l.value[p.value]?.config;return re({...Eh(Yj,{}),...e,...ne.value},e)}),S=wm(()=>y.value.localization),w=T(()=>({...y.value,labels:{closeGroup:S.translate(`navigation.closeGroup`),httpMethod:S.translate(`common.httpMethod`),openGroup:S.translate(`navigation.openGroup`)}})),oe=T(()=>S.locale.value.replace(`_`,`-`)),E=T(()=>y.value.pathRouting?.basePath),le=T(()=>PA(y.value.theme,{fonts:y.value.withDefaultFonts})),ue=T(()=>`${y.value.customCss??``}\n${le.value}`),O=jb({plugins:Object.values(l.value).flatMap(e=>e.config.plugins??[])});if(se(Mb,O),O.notifyInit(y.value),m(y,e=>O.notifyConfigChange(e)),typeof window<`u`){let e=ax(window.location.href,Qt(y.value.modelsSectionLabel??`Models`),p.value,f.value,y.value.pathRouting?.basePath);e&&window.history.replaceState({},``,e.toString())}if(y.value.redirect&&typeof window<`u`){let e=y.value.redirect((y.value.pathRouting?window.location.pathname:``)+window.location.hash);e&&window.history.replaceState({},``,e)}function de(e,t,n){let r=Qb(t||e,n.pathRouting?.basePath,f.value);r&&window.history.replaceState({},``,r.toString()),p.value=e}let M=mI({verbose:!1}),ge=mI({verbose:!1,plugins:[zb({persistAuth:()=>y.value.persistAuth??!1})]}),{toggleColorMode:_e,isDarkMode:I}=Co({initialColorMode:{true:`dark`,false:`light`,undefined:`system`}[String(y.value.darkMode)],overrideColorMode:y.value.forceDarkModeState}),ve=T(()=>M.workspace.activeDocument),ye=T(()=>O.getSidebarEntries(p.value).reduce((e,t)=>(e[t.viewName].push({id:t.id,title:t.label,type:`text`}),e),{"content.start":[],"content.end":[]})),be=e=>{let t=S.translate(`navigation.introduction`),n=S.translate(`navigation.webhooks`),r=y.value.modelsSectionLabel??`Models`,i=e=>{let a=!1,o=e.map(e=>{let o=e;if(jm(e)&&e.title!==t?o={...e,title:t}:e.type===`tag`&&e.isWebhooks===!0&&(e.title!==n||e.name!==n)?o={...e,title:n,name:n}:e.type===`models`&&(e.title!==r||e.name!==r)&&(o={...e,title:r,name:r}),`children`in e&&e.children){let t=i(e.children);t!==e.children&&(o=o===e?{...e}:o,o.children=t)}return o!==e&&(a=!0),o});return a?o:e};return i(e)},xe=ha(T(()=>Object.entries(M.workspace.documents).map(([e,t])=>{let n=t[`x-scalar-navigation`]?.children??[],r=e===p.value?[...ye.value[`content.start`],...be(n),...ye.value[`content.end`]]:be(n);return{id:e,type:`document`,description:t.info.description,name:t.info.title??e,title:t.info.title??e,children:r}})),{hooks:{}}),Se=e=>{e.forEach(e=>{(e.type===`tag`||e.type===`models`)&&xe.setExpanded(e.id,!0),`children`in e&&e.children&&Se(e.children)})},Ce=T(()=>{let e=y.value;if(!e)return[];let t=xe.items.value.find(e=>e.id===p.value)?.children??[],n=te.value?ob(t,te.value,{protocol:g.value,server:_.value}):t;if(e.defaultOpenAllTags&&Se(n),e.expandAllModelSections){let e=n.find(e=>e.type===`models`);e&&(xe.setExpanded(e.id,!0),e.children?.forEach(e=>{xe.setExpanded(e.id,!0)}))}return n}),we=T(()=>Ce.value.find(jm)?.id??`${p.value}/description/introduction`),Te=n(``),Ee=T(()=>({breadcrumb:Te.value})),De=e=>{let t=xe.getEntryById(e);!t||t.type===`document`?Te.value=``:Te.value=t.title},Oe=e=>{De(e),xe.setSelected(e),Ax(e,xe.setExpanded,xe.getEntryById)},ke=e=>{let t=y.value?.setPageTitle,n=xe.getEntryById(e);if(!t||typeof document>`u`||!n?.title)return;let r=M.workspace.activeDocument;document.title=t({title:n.title,document:{title:r?.info?.title??p.value,slug:p.value}})};Hj({config:()=>y.value,store:M,isDarkMode:I}),Hj({config:()=>y.value,store:ge,isDarkMode:I});let Ae=T(()=>Xa(M,M.workspace.activeDocument??null).environment);typeof window<`u`&&(window.dataDumpWorkspace=()=>M),r({eventBus:s,workspaceStore:M,sidebarItems:Ce});let je=T(()=>Ce.value.filter(e=>e.type===`models`).flatMap(e=>e.children??[]).filter(e=>e.type===`model`).reduce((e,t)=>(e[t.name]=t.id,e),{}));s.on(`scroll-to:model-by-name`,({name:e})=>{let t=je.value[e];t&&Oe(t)});let L=async(e,t)=>{let n=await M.addDocument(e,t),r=M.exportWorkspace();return ge.loadWorkspace({auth:{},documents:{[e.name]:rM(r.documents[e.name])??{openapi:`3.1.0`,info:{title:``,version:``},"x-scalar-original-document-hash":``}},intermediateDocuments:{},originalDocuments:{},overrides:{},history:{},meta:{}}),n},Me=async(e,t)=>{let n=l.value[e];if(!n){console.warn(`Document ${e} not found in configList`);return}let r=re({...n.config,...ne.value},n.config),i=r.onDocumentSelect?.();if(de(e,t,r),Ie.value?.route({documentSlug:e,method:`get`,path:`/`}),!M.workspace.documents[e]){let t=await L(n.source.url?{name:e,url:n.source.url,fetch:r.customFetch}:{name:e,document:n.source.content??{}},r),i=ge.workspace.documents[e];if(t===!0&&ao(i)&&i[`x-scalar-selected-server`]===void 0){let t=jn(n.config.servers??i.servers,{baseServerUrl:y.value.baseServerURL,documentUrl:n.source.url});t.length>0&&ge.updateDocument(e,`x-scalar-selected-server`,t[0].url)}}if(M.update(`x-scalar-active-document`,e),ge.update(`x-scalar-active-document`,e),r.persistAuth&&vj(ge,e),(async()=>{await i,r.onLoaded?.(e)})(),t&&t!==e)Oe(t);else if(r.defaultOpenFirstTag){let e=Ce.value.find(e=>e.type===`tag`);e&&xe.setExpanded(e.id,!0)}ke(t&&t!==e?t:e)};m(()=>Object.values(l.value),async(e,t)=>{let n=async(e,t)=>{let n=re({...e.config,...ne.value},e.config);if(M.workspace.documents[e.slug]){if(e.source.url&&e.source.url!==t?.source.url){await L({name:e.slug,url:e.source.url,fetch:n.customFetch},n);return}e.source.content&&gI(e.source.content,t&&`content`in t.source?t.source.content??{}:{}).length&&await L({name:e.slug,document:e.source.content},n)}};e.forEach((e,r)=>n(e,t[r]));let r=e.map(e=>e.slug),i=t.map(e=>e.slug);(r.length!==i.length||!r.every((e,t)=>e===i[t]))&&await Me(r[0]??``)},{deep:!0}),ae(()=>Me(p.value)),fe(async()=>{_j(ge),await Me(p.value,Xb(window.location.href,l.value[p.value]?.config.pathRouting?.basePath,f.value?void 0:p.value))});let Ne=T(()=>l.value[p.value]?.source?.url),Pe=lb({agentEnabled:T(()=>l.value[p.value]?.agent?.disabled?!1:typeof window<`u`&&Xt(window.location.href)?!0:!!l.value[p.value]?.agent?.key)});se(sb,Pe);let Fe=ee(`modal`),Ie=n(null);ie(async()=>{if(!Fe.value)return;let{createApiClientModal:e}=await Xe(async()=>{let{createApiClientModal:e}=await import(`./modal-UK8xRSnh.js`).then(e=>e.t);return{createApiClientModal:e}},__vite__mapDeps([47,6,1,2,3,5,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,4,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46]));Fe.value&&(Ie.value=e({el:Fe.value,eventBus:s,workspaceStore:ge,options:y,plugins:[...O.getApiClientPlugins(),...yj(y,Ae)]}))}),ce(()=>{O.notifyDestroy(),Ie.value?.app.unmount()}),s.on(`server:update:selected`,({url:e})=>y.value.onServerChange?.(e)),s.on(`asyncapi-server:update:selected`,({name:e})=>{let t=ge.workspace.activeDocument;if(!ga(t))return;let n=qy(t,{webSocketOnly:!1}).find(t=>t.name===e);y.value.onServerChange?.(n?.url??e)}),s.on(`ui:download:document`,({format:e})=>{let t=M.exportActiveDocument(e);if(!t){console.error(`No document found to download`);return}gj(t,p.value??`openapi`,e)});let Le=(e,t)=>{let n=xe.getEntryById(e);if(ke(e),(n?.type===`tag`||n?.type===`models`||n?.type===`text`)&&xe.isExpanded(e)&&xe.selectedItem.value===e){let t=xx();xe.setExpanded(e,!1),t();return}n?.type!==`tag`&&n?.type!==`models`&&(c.value=!1),Oe(e);let r=Qb(e,E.value,f.value);r&&(window.history.pushState({},``,r),t===`sidebar`&&y.value.onSidebarClick?.(r.toString())),Pe.showAgent.value&&Pe.closeAgent()};s.on(`select:nav-item`,({id:e})=>Le(e)),s.on(`scroll-to:nav-item`,({id:e})=>Le(e)),s.on(`intersecting:nav-item`,({id:e})=>{if(!Sx.value)return;xe.setSelected(e),De(e),ke(e),zv(e);let t=Qb(e,E.value,f.value);t&&M.workspace.activeDocument&&window.history.replaceState({},``,t.toString())}),s.on(`toggle:nav-item`,({id:e,open:t})=>{if(t){y.value.onShowMore?.(e);let t=xe.getEntryById(e);if(t&&`children`in t&&t.children){let e=t.children[0];e&&Tx(e.id)}}xe.setExpanded(e,t??!xe.isExpanded(e))}),s.on(`copy-url:nav-item`,({id:e})=>{let t=Qb(e,E.value,f.value)?.toString();return t&&a(t)}),fe(()=>{window.history.scrollRestoration=`manual`,Qa(),window.addEventListener(`popstate`,()=>{let e=Xb(window.location.href,y.value.pathRouting?.basePath,f.value?void 0:p.value);e&&Oe(e)})});let Re=ee(`documentStartRef`);Ob(Re,()=>{s.emit(`intersecting:nav-item`,{id:we.value})},{onExit:()=>{let e=window.innerHeight/2,t=document.elementsFromPoint(window.innerWidth/2,e).find(e=>e.tagName===`SECTION`&&e.id);t?.id&&s.emit(`intersecting:nav-item`,{id:t.id})},immediate:!0});let ze=T(()=>{let e=M.workspace[`x-scalar-color-mode`];return e===`system`?dj():e}),Be=Zt(typeof document<`u`?document.body:null);m(Pe.showAgent,()=>Be.value=Pe.showAgent.value);let Ve=T(()=>!y.value.mcp?.disabled&&!!(typeof window<`u`&&Xt(window.location.href)||y.value.mcp));return(e,n)=>(D(),x(`div`,null,[(D(),N(me(`style`),{innerHTML:ue.value},null,8,[`innerHTML`])),b(`div`,{ref:`documentEl`,class:C([`scalar-app scalar-api-reference references-layout`,[{"scalar-api-references-standalone-mobile":y.value.showSidebar,"scalar-scrollbars-obtrusive":o.value,"references-editable":y.value.isEditable,"references-sidebar":y.value.showSidebar,"references-sidebar-mobile-open":c.value,"references-classic":y.value.layout===`classic`},e.$attrs.class]]),dir:t(S).direction.value,lang:oe.value},[t(Pe).agentEnabled.value?(D(),N(t(pb),{key:0,agentScalarConfiguration:l.value[p.value]?.agent,externalUrls:y.value.externalUrls,workspaceStore:t(M)},null,8,[`agentScalarConfiguration`,`externalUrls`,`workspaceStore`])):F(``,!0),y.value.layout===`modern`?(D(),N(Ak,{key:1,breadcrumb:Te.value,isSidebarOpen:c.value,showSidebar:y.value.showSidebar,onToggleSidebar:n[5]||=()=>c.value=!c.value},{search:k(()=>[y.value.hideSearch?F(``,!0):(D(),N(by,{key:0,class:`my-2`,document:ve.value,eventBus:t(s),hideModels:y.value.hideModels,modelsSectionLabel:y.value.modelsSectionLabel,searchHotKey:y.value.searchHotKey,showSidebar:y.value.showSidebar},null,8,[`document`,`eventBus`,`hideModels`,`modelsSectionLabel`,`searchHotKey`,`showSidebar`]))]),sidebar:k(({sidebarClasses:r})=>[y.value.showSidebar&&y.value.layout===`modern`?(D(),N(t(Ai),{key:0,"aria-label":t(S).translate(`navigation.sidebarFor`,{name:t(M).workspace.activeDocument?.info?.title??``}),class:C([`t-doc__sidebar`,r]),isExpanded:t(xe).isExpanded,isSelected:t(xe).isSelected,items:Ce.value,layout:`reference`,options:w.value,role:`navigation`,onSelectItem:n[3]||=e=>Le(e,`sidebar`),onToggleGroup:n[4]||=e=>t(xe).setExpanded(e,!t(xe).isExpanded(e))},{header:k(()=>[h.value.length>1?(D(),N(uj,{key:0,modelValue:p.value,options:h.value,"onUpdate:modelValue":Me},null,8,[`modelValue`,`options`])):F(``,!0),y.value.hideSearch?F(``,!0):(D(),x(`div`,vI,[u(by,{document:ve.value,eventBus:t(s),hideModels:y.value.hideModels,modelsSectionLabel:y.value.modelsSectionLabel,searchHotKey:y.value.searchHotKey},null,8,[`document`,`eventBus`,`hideModels`,`modelsSectionLabel`,`searchHotKey`]),t(Pe).agentEnabled.value?(D(),N(t(db),{key:0})):F(``,!0)])),P(e.$slots,`sidebar-start`,j(he(Ee.value)),void 0,!0)]),before:k(()=>[u(t(nb),{protocol:g.value,"onUpdate:protocol":n[0]||=e=>g.value=e,server:_.value,"onUpdate:server":n[1]||=e=>_.value=e,document:te.value},null,8,[`protocol`,`server`,`document`]),te.value?(D(),N(t(Bi),{key:0,class:`asyncapi-sidebar-document-section`},{default:k(()=>[...n[10]||=[d(` Document `,-1)]]),_:1})):F(``,!0)]),footer:k(()=>[P(e.$slots,`sidebar-end`,j(he(Ee.value)),()=>[u(t(ci),{class:`darklight-reference`},{description:k(()=>[b(`a`,yI,A(t(S).translate(`footer.poweredByScalar`)),1)]),toggle:k(()=>[!y.value.hideDarkModeToggle&&!y.value.forceDarkModeState?(D(),N(t(yi),{key:0,modelValue:ze.value===`dark`,"onUpdate:modelValue":n[2]||=()=>t(_e)()},null,8,[`modelValue`])):(D(),x(`span`,bI))]),default:k(()=>[!y.value.hideClientButton&&!Ve.value?(D(),N(t(Xi),{key:0,buttonSource:`sidebar`,integration:y.value._integration,isDevelopment:t(!1),url:Ne.value},null,8,[`integration`,`isDevelopment`,`url`])):F(``,!0),Ve.value?(D(),N(t(bb),{key:1,config:y.value.mcp,externalUrls:y.value.externalUrls,isDevelopment:t(!1),url:Ne.value,workspace:t(M)},null,8,[`config`,`externalUrls`,`isDevelopment`,`url`,`workspace`])):F(``,!0)]),_:1})],!0)]),_:3},8,[`aria-label`,`class`,`isExpanded`,`isSelected`,`items`,`options`])):F(``,!0)]),_:3},8,[`breadcrumb`,`isSidebarOpen`,`showSidebar`])):F(``,!0),b(`main`,{"aria-label":t(S).translate(`navigation.mainContent`,{name:t(M).workspace.activeDocument?.info?.title??``}),class:`references-rendered`,inert:t(Pe).showAgent.value},[u(Ek,{authStore:t(ge).auth,clientDocument:t(ge).workspace.activeDocument,document:t(M).workspace.activeDocument,documentSlug:p.value,environment:Ae.value,eventBus:t(s),expandedItems:t(xe).expandedItems.value,headingSlugGenerator:y.value.generateHeadingSlug??(e=>`${p.value}/description/${e.slug}`),infoSectionId:we.value,items:Ce.value,options:y.value,xScalarDefaultClient:t(ge).workspace[`x-scalar-default-client`],xScalarDefaultExample:t(ge).workspace[`x-scalar-default-example`]},pe({start:k(()=>[b(`div`,{ref_key:`documentStartRef`,ref:Re},null,512),t(M).workspace.activeDocument?(D(),N(t(oj),{key:0,overrides:ne.value,"onUpdate:overrides":n[6]||=e=>ne.value=e,class:`references-developer-tools`,configuration:y.value,externalUrls:y.value.externalUrls,workspace:t(M)},null,8,[`overrides`,`configuration`,`externalUrls`,`workspace`])):F(``,!0),y.value.layout===`classic`?(D(),N(Eb,{key:1},{"dark-mode-toggle":k(()=>[!y.value.hideDarkModeToggle&&!y.value.forceDarkModeState?(D(),N(t(bo),{key:0,class:`text-c-2 hover:text-c-1`,mode:ze.value,style:{transform:`scale(1.4)`},variant:`icon`,onClick:n[9]||=()=>t(_e)()},null,8,[`mode`])):F(``,!0)]),default:k(()=>[b(`div`,SI,[h.value.length>1?(D(),N(uj,{key:0,modelValue:p.value,options:h.value,"onUpdate:modelValue":Me},null,8,[`modelValue`,`options`])):F(``,!0),u(t(nb),{is:`div`,protocol:g.value,"onUpdate:protocol":n[7]||=e=>g.value=e,server:_.value,"onUpdate:server":n[8]||=e=>_.value=e,document:te.value},null,8,[`protocol`,`server`,`document`])]),y.value.hideSearch?F(``,!0):(D(),N(by,{key:0,class:`t-doc__sidebar max-w-64`,document:ve.value,eventBus:t(s),hideModels:y.value.hideModels,modelsSectionLabel:y.value.modelsSectionLabel,searchHotKey:y.value.searchHotKey},null,8,[`document`,`eventBus`,`hideModels`,`modelsSectionLabel`,`searchHotKey`]))]),_:1})):F(``,!0),P(e.$slots,`content-start`,j(he(Ee.value)),void 0,!0)]),end:k(()=>[P(e.$slots,`content-end`,j(he(Ee.value)),void 0,!0)]),_:2},[y.value.isEditable?{name:`empty-state`,fn:k(()=>[P(e.$slots,`editor-placeholder`,j(he(Ee.value)),void 0,!0)]),key:`0`}:void 0]),1032,[`authStore`,`clientDocument`,`document`,`documentSlug`,`environment`,`eventBus`,`expandedItems`,`headingSlugGenerator`,`infoSectionId`,`items`,`options`,`xScalarDefaultClient`,`xScalarDefaultExample`])],8,xI),e.$slots.footer?(D(),x(`div`,CI,[P(e.$slots,`footer`,j(he(Ee.value)),void 0,!0)])):F(``,!0),b(`div`,{ref_key:`modal`,ref:Fe},null,512)],10,_I),u(t(aa))]))}}),[[`__scopeId`,`data-v-876968b6`]]),TI=`/assets/style-DQjoOYCj.css`,EI={class:`api-docs`},DI={class:`api-docs__toolbar`},OI={class:`api-docs__toolbar-label`},kI={class:`api-docs__content`},AI=`__browser_jwt__`,jI=Me(E({__name:`ApiDocsPage`,setup(e){let r=null,i=null,{t:a}=Le(),o=n([]),s=n(AI),c=n(document.documentElement.classList.contains(`dark-mode`));ie(async()=>{r=document.createElement(`link`),r.rel=`stylesheet`,r.href=TI,document.head.appendChild(r),i=new MutationObserver(()=>{c.value=document.documentElement.classList.contains(`dark-mode`)}),i.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`]});try{o.value=await R.apiKeys.list.query()}catch{}}),oe(()=>{r&&=(document.head.removeChild(r),null),i?.disconnect(),i=null});let l=T(()=>[{label:a(`apiDocsPage.browserJwt`),value:AI},...o.value.map(e=>({label:`API Key — ${e.name}`,value:e.id}))]),d=n(``);m(s,async e=>{if(!e||e===AI){d.value=``;return}try{let{key:t}=await R.apiKeys.reveal.query({id:e});d.value=t}catch{d.value=``}});let f=T(()=>s.value===AI?Ze()??``:d.value),p=T(()=>({url:`/api/openapi.json`,darkMode:c.value,forceDarkModeState:c.value?`dark`:`light`,layout:`modern`,withDefaultFonts:!1,hideDarkModeToggle:!0,showDeveloperTools:`never`,agent:{disabled:!0},persistAuth:!0,defaultOpenAllTags:!1,authentication:{preferredSecurityScheme:`BearerAuth`,securitySchemes:{BearerAuth:{token:f.value}}}}));return(e,n)=>(D(),x(`div`,EI,[b(`div`,DI,[b(`span`,OI,A(t(a)(`apiDocsPage.authentication`)),1),u(t(De),{modelValue:s.value,"onUpdate:modelValue":n[0]||=e=>s.value=e,options:l.value,"option-label":`label`,"option-value":`value`,style:{"min-width":`260px`}},null,8,[`modelValue`,`options`])]),b(`div`,kI,[u(t(wI),{configuration:p.value},null,8,[`configuration`])])]))}}),[[`__scopeId`,`data-v-a921e175`]]),MI={class:`settings-page`},NI={class:`settings-layout`},PI={class:`settings-nav`},FI=[`onClick`],II={class:`section-header`},LI={class:`section-title`},RI={class:`section-desc`},zI={class:`section-header`},BI={class:`section-title`},VI={class:`section-desc`},HI={class:`section-header`},UI={class:`section-title`},WI={class:`section-desc`},GI={class:`section-header`},KI={class:`section-title`},qI={class:`section-desc`},JI={class:`section-header`},YI={class:`section-title`},XI={class:`section-desc`},ZI={class:`section-header section-header--has-actions`},QI={class:`section-header__text`},$I={class:`section-title`},eL={class:`section-desc`},tL={class:`section-header__actions`},nL={class:`section-header section-header--has-actions`},rL={class:`section-header__text`},iL={class:`section-title`},aL={class:`section-desc`},oL={class:`section-header__actions`},sL={class:`section-header section-header--has-actions`},cL={class:`section-header__text`},lL={class:`section-title`},uL={class:`section-desc`},dL={class:`section-header__actions`},fL={class:`section-header section-header--has-actions`},pL={class:`section-header__text`},mL={class:`section-title`},hL={class:`section-desc`},gL={class:`section-header__actions`},_L={class:`section-header section-header--has-actions`},vL={class:`section-header__text`},yL={class:`section-title`},bL={class:`section-desc`},xL={class:`section-header__actions`},SL={class:`section-header`},CL={class:`section-title`},wL={class:`section-desc`},TL={class:`section-header`},EL={class:`section-title`},DL={class:`section-desc`},OL={class:`section-header`},kL={class:`section-title`},AL={class:`section-desc`},jL=E({__name:`SettingsPage`,setup(e){let{t:r}=Le(),i=Ge(),a=Ke(),o=n(null),s=n(!1),c=n(!1);function l(){let e=o.value;e&&(s.value=e.scrollLeft>0,c.value=e.scrollLeft+e.clientWidth<e.scrollWidth-1)}function d(e){let t=o.value;t&&t.scrollBy({left:e===`left`?-120:120,behavior:`smooth`})}ie(()=>{l(),o.value?.addEventListener(`scroll`,l),new ResizeObserver(l).observe(o.value)});let f=new Set([`general`,`cloud`,`notifications`,`security`,`editor`,`parsers`,`ai`,`scenario`,`api-keys`,`agents`,`diagnostics`,`api-docs`,`changelog`,`about`]),p=a.query.section??`general`,h=n(f.has(p)?p:`general`),g=[{id:`general`,label:r(`settingsPage.general`),icon:`ti ti-adjustments-horizontal`},{id:`cloud`,label:r(`settingsPage.cloud`),icon:`ti ti-cloud`},{id:`notifications`,label:r(`settingsPage.notifications`),icon:`ti ti-bell`},{id:`security`,label:r(`settingsPage.security`),icon:`ti ti-shield`},{id:`editor`,label:r(`settingsPage.codeEditor`),icon:`ti ti-code`},{id:`parsers`,label:r(`settingsPage.navLogParsers`),icon:`ti ti-list`},{id:`ai`,label:r(`settingsPage.navAiProviders`),icon:`ti ti-brain`},{id:`scenario`,label:r(`settingsPage.navScenario`),icon:`ti ti-building`},{id:`api-keys`,label:r(`nav.apiKeys`),icon:`ti ti-key`},{id:`agents`,label:r(`nav.agents`),icon:`ti ti-server`},{id:`diagnostics`,label:r(`settingsPage.navDiagnostics`),icon:`ti ti-activity`},{id:`api-docs`,label:r(`nav.apiDocs`),icon:`ti ti-book`},{id:`changelog`,label:r(`changelog.navTitle`),icon:`ti ti-sparkles`},{id:`about`,label:r(`settingsPage.navAbout`),icon:`ti ti-info-circle`}],_=n(null),v=n(null),ee=n(null),te=n(null);return m(h,e=>{a.query.section!==e&&i.replace({name:`settings`,query:{section:e}})}),m(()=>a.query.section,e=>{let t=e;t&&f.has(t)&&t!==h.value&&(h.value=t)}),(e,n)=>(D(),x(`div`,MI,[b(`div`,NI,[b(`nav`,PI,[s.value?(D(),x(`button`,{key:0,class:`settings-nav__chevron settings-nav__chevron--left`,onClick:n[0]||=e=>d(`left`)},[...n[7]||=[b(`i`,{class:`ti ti-chevron-left`},null,-1)]])):F(``,!0),b(`ul`,{ref_key:`navListRef`,ref:o,class:`settings-nav__list`,onScroll:l},[(D(),x(O,null,S(g,e=>b(`li`,{key:e.id,class:C([`settings-nav__item`,{"settings-nav__item--active":h.value===e.id}]),onClick:t=>h.value=e.id},[b(`i`,{class:C([e.icon,`settings-nav__icon`])},null,2),b(`span`,null,A(e.label),1)],10,FI)),64))],544),c.value?(D(),x(`button`,{key:1,class:`settings-nav__chevron settings-nav__chevron--right`,onClick:n[1]||=e=>d(`right`)},[...n[8]||=[b(`i`,{class:`ti ti-chevron-right`},null,-1)]])):F(``,!0)]),b(`main`,{class:C([`settings-content`,{"settings-content--fullpage":h.value===`api-docs`}])},[h.value===`general`?(D(),x(O,{key:0},[b(`div`,II,[b(`h2`,LI,A(t(r)(`settingsPage.general`)),1),b(`p`,RI,A(t(r)(`settingsPage.generalDesc`)),1)]),u(ru)],64)):h.value===`cloud`?(D(),x(O,{key:1},[b(`div`,zI,[b(`h2`,BI,A(t(r)(`settingsPage.cloud`)),1),b(`p`,VI,A(t(r)(`settingsPage.cloudSectionDesc`)),1)]),u(Ot)],64)):h.value===`notifications`?(D(),x(O,{key:2},[b(`div`,HI,[b(`h2`,UI,A(t(r)(`settingsPage.notifications`)),1),b(`p`,WI,A(t(r)(`settingsPage.notificationsDesc`)),1)]),u(Cu)],64)):h.value===`security`?(D(),x(O,{key:3},[b(`div`,GI,[b(`h2`,KI,A(t(r)(`settingsPage.security`)),1),b(`p`,qI,A(t(r)(`settingsPage.securityDesc`)),1)]),u(Fu)],64)):h.value===`editor`?(D(),x(O,{key:4},[b(`div`,JI,[b(`h2`,YI,A(t(r)(`settingsPage.codeEditor`)),1),b(`p`,XI,A(t(r)(`settingsPage.codeEditorDesc`)),1)]),u(Gu)],64)):h.value===`parsers`?(D(),x(O,{key:5},[b(`div`,ZI,[b(`div`,QI,[b(`h2`,$I,A(t(r)(`settingsPage.logParsersTitle`)),1),b(`p`,eL,A(t(r)(`settingsPage.logParsersDesc`)),1)]),b(`div`,tL,[u(t(L),{label:t(r)(`settingsPage.newParser`),icon:`ti ti-plus`,severity:`secondary`,variant:`outlined`,size:`small`,onClick:n[2]||=e=>_.value?.openCreate()},null,8,[`label`])])]),u(Pd,{ref_key:`parsersRef`,ref:_},null,512)],64)):h.value===`ai`?(D(),x(O,{key:6},[b(`div`,nL,[b(`div`,rL,[b(`h2`,iL,A(t(r)(`settingsPage.navAiProviders`)),1),b(`p`,aL,A(t(r)(`settingsPage.aiProvidersDesc`)),1)]),b(`div`,oL,[u(t(L),{label:t(r)(`settingsPage.addProvider`),icon:`ti ti-plus`,severity:`secondary`,variant:`outlined`,size:`small`,onClick:n[3]||=e=>v.value?.openCreateAIProvider()},null,8,[`label`])])]),u(Tf,{ref_key:`aiProvidersRef`,ref:v},null,512)],64)):h.value===`scenario`?(D(),x(O,{key:7},[b(`div`,sL,[b(`div`,cL,[b(`h2`,lL,A(t(r)(`settingsPage.navScenario`)),1),b(`p`,uL,A(t(r)(`settingsPage.scenarioDesc`)),1)]),b(`div`,dL,[u(t(L),{icon:`ti ti-plus`,label:t(r)(`settingsPage.newScenario`),severity:`secondary`,variant:`outlined`,size:`small`,onClick:n[4]||=e=>t(i).push({name:`scenario-new`})},null,8,[`label`])])]),u(Mf)],64)):h.value===`api-keys`?(D(),x(O,{key:8},[b(`div`,fL,[b(`div`,pL,[b(`h2`,mL,A(t(r)(`nav.apiKeys`)),1),b(`p`,hL,A(t(r)(`apiKeysPage.desc`)),1)]),b(`div`,gL,[u(t(L),{label:t(r)(`apiKeysPage.newApiKey`),icon:`ti ti-plus`,severity:`secondary`,variant:`outlined`,size:`small`,onClick:n[5]||=e=>ee.value?.openCreate()},null,8,[`label`])])]),u(ul,{ref_key:`apiKeysPageRef`,ref:ee},null,512)],64)):h.value===`agents`?(D(),x(O,{key:9},[b(`div`,_L,[b(`div`,vL,[b(`h2`,yL,A(t(r)(`nav.agents`)),1),b(`p`,bL,A(t(r)(`agents.settingsDesc`)),1)]),b(`div`,xL,[u(t(L),{label:t(r)(`agentPage.registerAgent`),icon:`ti ti-plus`,severity:`secondary`,variant:`outlined`,size:`small`,onClick:n[6]||=e=>te.value?.openRegisterDialog()},null,8,[`label`])])]),u(Gs,{ref_key:`agentPageRef`,ref:te,embedded:!0},null,512)],64)):h.value===`diagnostics`?(D(),x(O,{key:10},[b(`div`,SL,[b(`h2`,CL,A(t(r)(`settingsPage.navDiagnostics`)),1),b(`p`,wL,A(t(r)(`settingsPage.diagnosticsDesc`)),1)]),u(nm)],64)):h.value===`api-docs`?(D(),N(jI,{key:11})):h.value===`changelog`?(D(),x(O,{key:12},[b(`div`,TL,[b(`h2`,EL,A(t(r)(`changelog.navTitle`)),1),b(`p`,DL,A(t(r)(`changelog.navDesc`)),1)]),u(Lf)],64)):h.value===`about`?(D(),x(O,{key:13},[b(`div`,OL,[b(`h2`,kL,A(t(r)(`settingsPage.navAbout`)),1),b(`p`,AL,A(t(r)(`settingsPage.aboutDesc`)),1)]),u(Op)],64)):F(``,!0)],2)])]))}}),ML=e({default:()=>NL}),NL=Me(jL,[[`__scopeId`,`data-v-712639eb`]]);export{Yj as a,Fb as c,Eh as d,NL as default,eN as i,v_ as l,mI as n,QA as o,cN as r,Pb as s,ML as t,Hh as u};