@runeya/runeya 2.0.21 → 2.0.23

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 (321) hide show
  1. package/agent/index.js +103 -9
  2. package/agent/index.js.map +1 -1
  3. package/agent-manager-2P4THUVA.js +7 -0
  4. package/{chunk-PUNE7P6S.js → chunk-Y2R42AXQ.js} +848 -561
  5. package/chunk-Y2R42AXQ.js.map +1 -0
  6. package/index.js +92 -43
  7. package/index.js.map +1 -1
  8. package/package.json +1 -1
  9. package/{src-K32WI425.js → src-3TOPUVAK.js} +1354 -1083
  10. package/src-3TOPUVAK.js.map +1 -0
  11. package/web/assets/AgentScalarChatInterface.vue-Bk_cXx74.js +13 -0
  12. package/web/assets/AgentTerminalPage-DqXrABlh.js +1 -0
  13. package/web/assets/AiChatPage-B3P7qefE.js +1 -0
  14. package/web/assets/AppLayout-B2e7K0cZ.js +1 -0
  15. package/web/assets/{AuditPage-CUdrFc3C.js → AuditPage-B55qp9MV.js} +1 -1
  16. package/web/assets/{CloudAccountPage-am6AxJRB.js → CloudAccountPage-CGyW79m_.js} +1 -1
  17. package/web/assets/CloudAccountPage-DTity1N0.js +1 -0
  18. package/web/assets/CloudMessagingPage-7RQRbAOB.js +2 -0
  19. package/web/assets/CloudMessagingPage-BUnfNsBz.css +1 -0
  20. package/web/assets/{DashboardPage-pA2caWR9.js → DashboardPage-CwmCbP3t.js} +1 -1
  21. package/web/assets/{EditorIcon-C9E8hRyM.js → EditorIcon-BaldhaS8.js} +1 -1
  22. package/web/assets/{EnvironmentForm-XKpxQ-45.js → EnvironmentForm-Da52SUx4.js} +2 -2
  23. package/web/assets/EnvironmentFormPage-Bab5iOWS.js +1 -0
  24. package/web/assets/EnvironmentListPage-O1fIWq-g.js +1 -0
  25. package/web/assets/EnvironmentSelector-BWzLYssP.js +1 -0
  26. package/web/assets/KanbanBoardPage-BOMHKLHX.css +1 -0
  27. package/web/assets/KanbanBoardPage-BvtIaHqG.js +4 -0
  28. package/web/assets/KanbanListPage-BoNcgR3h.css +1 -0
  29. package/web/assets/KanbanListPage-Cv_QJF00.js +1 -0
  30. package/web/assets/LaunchProjectPage-uB7iIMG1.js +1 -0
  31. package/web/assets/{LaunchServicesPage-CViec72c.js → LaunchServicesPage-1ZN1JYqH.js} +1 -1
  32. package/web/assets/LogViewer-BJxpIK11.js +3 -0
  33. package/web/assets/{ProcessControls-D97-A3dI.js → ProcessControls-C2EYsD-P.js} +1 -1
  34. package/web/assets/ProcessDetailPage-DdOfegjU.js +1 -0
  35. package/web/assets/{ProcessMetrics-CNJ30_ef.js → ProcessMetrics-DpDxpUpO.js} +2 -2
  36. package/web/assets/ProjectDetailPage-DtwRjTew.js +1 -0
  37. package/web/assets/ProjectListPage-D9SUNEFu.js +1 -0
  38. package/web/assets/{RandomJobTestPage-CnY2f-qz.js → RandomJobTestPage-OoAk9WAJ.js} +1 -1
  39. package/web/assets/{ScenarioEditorPage-CBZp7Q34.css → ScenarioEditorPage-GmFIXPDj.css} +1 -1
  40. package/web/assets/ScenarioEditorPage-LhEs4hjS.js +14 -0
  41. package/web/assets/SendToChatDialog-CZWy1K4A.js +1 -0
  42. package/web/assets/ServiceControlsBar-CU6b2KBJ.js +1 -0
  43. package/web/assets/{ServiceDetailPage-DhE1LYrn.css → ServiceDetailPage-BvoD3SB6.css} +1 -1
  44. package/web/assets/ServiceDetailPage-CSaPyV_v.js +2 -0
  45. package/web/assets/ServiceFormPage-D9NFCmmW.js +1 -0
  46. package/web/assets/SettingsPage-BMclTDLy.css +1 -0
  47. package/web/assets/SettingsPage-DXlBFfBq.js +2062 -0
  48. package/web/assets/{SetupPage-CzabsTON.js → SetupPage-dqqf_M_p.js} +1 -1
  49. package/web/assets/UnlockPage-ClEawxOC.css +1 -0
  50. package/web/assets/UnlockPage-DjjpY02d.js +1 -0
  51. package/web/assets/VariablesTable-B4h9eNC_.css +1 -0
  52. package/web/assets/VariablesTable-BFgRnjza.js +1 -0
  53. package/web/assets/{VersionBadge-DUE17MrD.js → VersionBadge-ToW3NGSQ.js} +1 -1
  54. package/web/assets/WikiPage-Djisdsae.js +1 -0
  55. package/web/assets/{WikiView-CUBKfTT-.css → WikiView-CaUVD3f1.css} +1 -1
  56. package/web/assets/WikiView-CiATkY8l.js +1 -0
  57. package/web/assets/{add-scalar-classes-Cfh7_IWy.js → add-scalar-classes-DGwycuRW.js} +3 -3
  58. package/web/assets/auth-errors-DEObS1lG.js +1 -0
  59. package/web/assets/{autocomplete-CrWQ5zMj.js → autocomplete-DP0sGong.js} +1 -1
  60. package/web/assets/{basic-shape-diamond.svg-pjhwN4JT.js → basic-shape-diamond.svg-B0FzUXGN.js} +1 -1
  61. package/web/assets/{basic-shape-hexagon.svg-D0yEDOCC.js → basic-shape-hexagon.svg-BuI9rv44.js} +1 -1
  62. package/web/assets/{basic-shape-primary-circle-ellipse-round.svg-DvZ7CdgE.js → basic-shape-primary-circle-ellipse-round.svg-C0WlStV7.js} +1 -1
  63. package/web/assets/{basic-shape-primary-square-rectangle.svg-ChB1hiGR.js → basic-shape-primary-square-rectangle.svg-ByMGtNMn.js} +1 -1
  64. package/web/assets/{basic-shape-shield.svg-Bxrmr3jg.js → basic-shape-shield.svg-h6znjRmZ.js} +1 -1
  65. package/web/assets/{browser-C2YmKQw8.js → browser-DJeF2lho.js} +1 -1
  66. package/web/assets/{browser-CvQ_J2u9.js → browser-oekISqUb.js} +1 -1
  67. package/web/assets/{card-CpyeL2dI.js → card-B7-be48x.js} +1 -1
  68. package/web/assets/{checkbox-DWNV_RaS.js → checkbox-DDSZK_Pi.js} +1 -1
  69. package/web/assets/{chip-8cRcc2L3.js → chip-BVSQ-56q.js} +1 -1
  70. package/web/assets/{client-DNj6VDDb.js → client-DWfGqqLr.js} +1 -1
  71. package/web/assets/cloud-chat.store-BLFChRpl.js +1 -0
  72. package/web/assets/cloud-client-GmxBhiFl.js +1 -0
  73. package/web/assets/{column-DtLr_xcq.js → column-BHRqZfnh.js} +7 -7
  74. package/web/assets/{computer-device-desktop-monitor.svg-CLGySxTI.js → computer-device-desktop-monitor.svg-CL9XulYR.js} +1 -1
  75. package/web/assets/{computer-device-desktop.svg-DJ9n7_Sq.js → computer-device-desktop.svg-CKWeVTzO.js} +1 -1
  76. package/web/assets/{computer-device-laptop.svg-k6zcRWN4.js → computer-device-laptop.svg-wAkdRlEi.js} +1 -1
  77. package/web/assets/{computer-device-mobile-phone-android-samsung-back.svg-pwKHMzIK.js → computer-device-mobile-phone-android-samsung-back.svg-DOahzxu1.js} +1 -1
  78. package/web/assets/{computer-device-mobile-phone-android-samsung.svg-CR796QT_.js → computer-device-mobile-phone-android-samsung.svg-FBZO3WLS.js} +1 -1
  79. package/web/assets/{computer-device-mobile-phone-iphone-x-back.svg-CY2r7WXK.js → computer-device-mobile-phone-iphone-x-back.svg-CCLknBWv.js} +1 -1
  80. package/web/assets/{computer-device-mobile-phone-iphone-x.svg-BHISnTWX.js → computer-device-mobile-phone-iphone-x.svg-CWdT8wN4.js} +1 -1
  81. package/web/assets/{computer-device-mobile-tablet-touch.svg-DQqDUvnk.js → computer-device-mobile-tablet-touch.svg-Bx1A6qUQ.js} +1 -1
  82. package/web/assets/{computer-device-mobile-tablet.svg-4Ab5vdIo.js → computer-device-mobile-tablet.svg-JpmP6yqf.js} +1 -1
  83. package/web/assets/{computer-device-network-ethernet-cat6.svg-DJf04S68.js → computer-device-network-ethernet-cat6.svg-D6WFbLbI.js} +1 -1
  84. package/web/assets/{computer-device-network-lan-www.svg-CaETgcOJ.js → computer-device-network-lan-www.svg-U8NMAi5b.js} +1 -1
  85. package/web/assets/{computer-device-network-wifi-connection.svg-PndfmFuy.js → computer-device-network-wifi-connection.svg-FuRBLyH4.js} +1 -1
  86. package/web/assets/{computer-device-network-wifi-router.svg-CBLwEbOV.js → computer-device-network-wifi-router.svg-BMzCP2Aw.js} +1 -1
  87. package/web/assets/{cssMode-RVPpAuHz.js → cssMode--4DE_809.js} +1 -1
  88. package/web/assets/{divider-CYFRNVal.js → divider-hPOrl1Iy.js} +1 -1
  89. package/web/assets/{ecology-science-erlenmeyer-flask.svg-BYXK2uKa.js → ecology-science-erlenmeyer-flask.svg-Bnte5Nm-.js} +1 -1
  90. package/web/assets/{fieldset-BCXBPIiB.js → fieldset-BSwilV-Y.js} +1 -1
  91. package/web/assets/{freemarker2-B6guP0jO.js → freemarker2-DUNAk_0P.js} +1 -1
  92. package/web/assets/{handlebars-BxlL79LN.js → handlebars-CoM2DS_1.js} +1 -1
  93. package/web/assets/{html-Dr0M60O0.js → html-CgEDNZ_R.js} +1 -1
  94. package/web/assets/{htmlMode-B63yAhXq.js → htmlMode-QDDBWVzd.js} +1 -1
  95. package/web/assets/{image-flash-lightning.svg-DVtJFd09.js → image-flash-lightning.svg-ZIxta1IB.js} +1 -1
  96. package/web/assets/{image-picture-flower.svg-BaBdyWt-.js → image-picture-flower.svg-BXxhgW1Q.js} +1 -1
  97. package/web/assets/{index-BTYNCNK0.js → index-Dl-HyfHx.js} +244 -244
  98. package/web/assets/{index-DS4VL_1S.css → index-gKo3WNkm.css} +1 -1
  99. package/web/assets/{interface-alert-exclamation-diamond.svg-BQYncN9j.js → interface-alert-exclamation-diamond.svg-bVfL6jBy.js} +1 -1
  100. package/web/assets/{interface-alert-exclamation-triangle-warning.svg-BvQxARpD.js → interface-alert-exclamation-triangle-warning.svg-BrapXyrc.js} +1 -1
  101. package/web/assets/{interface-alert-information-circle.svg-BbiwUtTt.js → interface-alert-information-circle.svg--W3bUw5n.js} +1 -1
  102. package/web/assets/{interface-award-crown.svg-BJs2BJ9S.js → interface-award-crown.svg-CBbbHFIN.js} +1 -1
  103. package/web/assets/{interface-bookmark.svg-WUL572zM.js → interface-bookmark-tag.svg-C4_v-zTY.js} +1 -1
  104. package/web/assets/{interface-bookmark-tag.svg-huwK9o4X.js → interface-bookmark.svg-CIY69-iu.js} +1 -1
  105. package/web/assets/{interface-calendar-date-one.svg-CEkOALKM.js → interface-calendar-date-one.svg-CD7WxblA.js} +1 -1
  106. package/web/assets/{interface-content-book-open-pages.svg-CDxvdidz.js → interface-content-book-open-pages.svg-BamW-eNv.js} +1 -1
  107. package/web/assets/{interface-content-book-page.svg-ROxK9a-V.js → interface-content-book-page.svg-CpHhLWQE.js} +1 -1
  108. package/web/assets/{interface-content-file.svg-69XGQGxu.js → interface-content-file.svg-BmqLN3iR.js} +1 -1
  109. package/web/assets/interface-content-folder.svg-B2phMZXd.js +1 -0
  110. package/web/assets/{interface-content-folder.svg-BjXgivIz.js → interface-content-folder.svg-ffbcORbT.js} +1 -1
  111. package/web/assets/{interface-copy-clipboard.svg-BAAZ1QLS.js → interface-copy-clipboard.svg-MdbbmqXS.js} +1 -1
  112. package/web/assets/{interface-edit-attachment.svg-BCmyBBsd.js → interface-edit-attachment.svg-DtAVj6tp.js} +1 -1
  113. package/web/assets/{interface-edit-binocular.svg-BI3JPE3j.js → interface-edit-binocular.svg-DfT11Y7N.js} +1 -1
  114. package/web/assets/{interface-edit-magic-wand.svg-DhECH5yw.js → interface-edit-magic-wand.svg-D4mLRHJs.js} +1 -1
  115. package/web/assets/{interface-edit-tool-paint-roller.svg-0-Os9Flg.js → interface-edit-tool-paint-roller.svg-Cxa7Ct4C.js} +1 -1
  116. package/web/assets/{interface-edit-tool-pencil.svg-CM5UI5Rv.js → interface-edit-tool-pencil.svg-IRM3BHKY.js} +1 -1
  117. package/web/assets/{interface-favorite-award.svg-BZNkuFiE.js → interface-favorite-award.svg-CLGZ65SX.js} +1 -1
  118. package/web/assets/{interface-favorite-flag.svg-CeHd37SC.js → interface-favorite-flag.svg-ju-VMCAF.js} +1 -1
  119. package/web/assets/{interface-favorite-heart.svg-D5dJ4sOz.js → interface-favorite-heart.svg-DsWpztN8.js} +1 -1
  120. package/web/assets/{interface-favorite-star.svg-B7YeWzmv.js → interface-favorite-star.svg-CCPUYvBO.js} +1 -1
  121. package/web/assets/{interface-favorite-stars-sparkles.svg-BwqCtLSB.js → interface-favorite-stars-sparkles.svg-nf2ra-Mg.js} +1 -1
  122. package/web/assets/{interface-hierarchy-flowchart.svg-q70-KJ80.js → interface-hierarchy-flowchart.svg-CPrjsUHp.js} +1 -1
  123. package/web/assets/{interface-home-house.svg-CUco1zSk.js → interface-home-house.svg-DyWL4dgs.js} +1 -1
  124. package/web/assets/{interface-hyperlink.svg-D6Z-QbxJ.js → interface-hyperlink.svg-DgjI4lGJ.js} +1 -1
  125. package/web/assets/{interface-lighting-brightness.svg-DDJ8wIbt.js → interface-lighting-brightness.svg-BhomgGV0.js} +1 -1
  126. package/web/assets/{interface-lock-closed.svg-1GuN2t9d.js → interface-lock-closed.svg-CDDGuaUG.js} +1 -1
  127. package/web/assets/{interface-lock-open-unlock.svg-CmSL9GCo.js → interface-lock-open-unlock.svg-DxOzefwC.js} +1 -1
  128. package/web/assets/{interface-login-key.svg-Cnur4uLY.js → interface-login-key.svg-CLs728UT.js} +1 -1
  129. package/web/assets/{interface-search.svg-3TqtroIY.js → interface-search.svg-CSE2bUM-.js} +1 -1
  130. package/web/assets/{interface-setting-cog.svg-B7nRfZ1y.js → interface-setting-cog.svg-SfBQ-E_y.js} +1 -1
  131. package/web/assets/{interface-share-megaphone-bullhorn.svg-DraAk4oI.js → interface-share-megaphone-bullhorn.svg-Cg9QEbsW.js} +1 -1
  132. package/web/assets/{interface-share-rocket.svg-CGRtk6J4.js → interface-share-rocket.svg-V9fWt6R5.js} +1 -1
  133. package/web/assets/{interface-share-satellite.svg-COo3kZqu.js → interface-share-satellite.svg-BoAJlAy3.js} +1 -1
  134. package/web/assets/{interface-share-space-ship.svg-iYhfpKY2.js → interface-share-space-ship.svg-CWoqBiZI.js} +1 -1
  135. package/web/assets/{interface-share.svg-BqVe3lWw.js → interface-share.svg-DW6AG6rC.js} +1 -1
  136. package/web/assets/{interface-signal-square.svg-DmGT2kio.js → interface-signal-square.svg-DktTeL2e.js} +1 -1
  137. package/web/assets/{interface-time-clock-circle.svg-Djt_VZVX.js → interface-time-clock-circle.svg-BBnimglQ.js} +1 -1
  138. package/web/assets/{interface-time-hour-glass.svg-DxZVLqJ6.js → interface-time-hour-glass.svg-WNSRow4o.js} +1 -1
  139. package/web/assets/{interface-users-multiple.svg-n8dIXu9r.js → interface-users-multiple.svg-DoeSSDNX.js} +1 -1
  140. package/web/assets/{interface-weather-moon.svg-CExHl6HQ.js → interface-weather-moon.svg-BzUq31T3.js} +1 -1
  141. package/web/assets/{javascript-6lVkE6gP.js → javascript-CDsgZK6E.js} +1 -1
  142. package/web/assets/{jsonMode-CySg6s8T.js → jsonMode-BOQojnkz.js} +1 -1
  143. package/web/assets/{liquid-DSLZY9bf.js → liquid-CT8_Ig_a.js} +1 -1
  144. package/web/assets/{lspLanguageFeatures-C6Gb5-pg.js → lspLanguageFeatures-BW3wbtds.js} +1 -1
  145. package/web/assets/{mail-chat-bubble-square.svg-BqpIkvR_.js → mail-chat-bubble-square.svg-BB3D-jS5.js} +1 -1
  146. package/web/assets/{mail-send-email-paper-airplane.svg-DUkiRZ1x.js → mail-send-email-paper-airplane.svg-BGUFNdDy.js} +1 -1
  147. package/web/assets/{mail-send-envelope.svg-DjjLaPUo.js → mail-send-envelope.svg-CiEf_X3v.js} +1 -1
  148. package/web/assets/{mdx-DuCKQZ3-.js → mdx-BzJqzXG7.js} +1 -1
  149. package/web/assets/{message-CJ-X_z47.js → message-DQfiz3F1.js} +1 -1
  150. package/web/assets/{minus-RXlNS6-g.js → minus-Bh-ngAnz.js} +1 -1
  151. package/web/assets/modal-B6tgGww3.js +1 -0
  152. package/web/assets/{modal-DfNn2ioJ.js → modal-BH8tCrqE.js} +1 -1
  153. package/web/assets/{money-cashier-receipt.svg-CUzOL6J5.js → money-cashier-receipt.svg-nbLywLCi.js} +1 -1
  154. package/web/assets/{money-currency-dollar-pay.svg-CQY_KC9b.js → money-currency-dollar-pay.svg-HtpV_93j.js} +1 -1
  155. package/web/assets/{money-graph-arrow-increase.svg-BDu5i5aF.js → money-graph-arrow-increase.svg-BG4s2n8-.js} +1 -1
  156. package/web/assets/{money-graph-bar-chart-increase.svg-xBlBZYiv.js → money-graph-bar-chart-increase.svg-7ivMfz5M.js} +1 -1
  157. package/web/assets/{multiselect-BbY8SFyO.js → multiselect-CE72JxFr.js} +1 -1
  158. package/web/assets/{nature-ecology-leaf.svg-C_T6wTIZ.js → nature-ecology-leaf.svg-D60IfAE-.js} +1 -1
  159. package/web/assets/{password-B_pKmF_I.js → password-CZ-A_ePM.js} +1 -1
  160. package/web/assets/{phone-telephone.svg-DzUP7zCx.js → phone-telephone.svg-B0OCaSQr.js} +1 -1
  161. package/web/assets/{plus-DfsTcd_H.js → plus-DZy8IO4Z.js} +1 -1
  162. package/web/assets/process.store-XR7BoPqt.js +1 -0
  163. package/web/assets/{programming-bug.svg-C1NvPH7_.js → programming-bug.svg-DDZ7-1a6.js} +1 -1
  164. package/web/assets/{programming-cloud.svg-hVwd5xzu.js → programming-cloud.svg-BZHqbFE1.js} +1 -1
  165. package/web/assets/{programming-computer-database-server.svg-DXvcm62E.js → programming-computer-database-server.svg-CPK0axOF.js} +1 -1
  166. package/web/assets/{programming-computer-database.svg-w2w_GH3u.js → programming-computer-database.svg-Dat_iKWZ.js} +1 -1
  167. package/web/assets/{programming-module-four-layout.svg-DLcwogv0.js → programming-module-four-layout.svg-DYTRTKmF.js} +1 -1
  168. package/web/assets/{programming-module-three.svg-Cfjjs8tf.js → programming-module-three.svg-CU563xPB.js} +1 -1
  169. package/web/assets/{programming-module.svg-ChyMdD4E.js → programming-module.svg-DdRe2d3E.js} +1 -1
  170. package/web/assets/{programming-script-code.svg-D8N99_E3.js → programming-script-code.svg-D5dDzg1B.js} +1 -1
  171. package/web/assets/{python-BT-UPVMQ.js → python-C0tzbgs4.js} +1 -1
  172. package/web/assets/{radiobutton-C9iiy1zq.js → radiobutton-BYEniO96.js} +1 -1
  173. package/web/assets/{razor-DKUraACi.js → razor-BNCtUdbo.js} +1 -1
  174. package/web/assets/router-BpJBXGio.js +1 -0
  175. package/web/assets/{settings.store-PSHvWAzl.js → settings.store-hW2r6ht2.js} +1 -1
  176. package/web/assets/{shopping-cart.svg-C_kTBKvf.js → shopping-cart.svg-yNDOoxiE.js} +1 -1
  177. package/web/assets/{shopping-gift-present.svg-DIfbUecw.js → shopping-gift-present.svg-ZAFtf911.js} +1 -1
  178. package/web/assets/{shopping-shipping-box-parcel-package.svg-DgeqoYij.js → shopping-shipping-box-parcel-package.svg-C_128hOx.js} +1 -1
  179. package/web/assets/{TiptapEditor-CI1pNNDH.js → src-BTZHXzoT.js} +78 -78
  180. package/web/assets/src-CmzYYWZd.css +1 -0
  181. package/web/assets/src-DtlOQm4K.js +1 -0
  182. package/web/assets/src-ZfecJkW9.css +1 -0
  183. package/web/assets/{tabpanel-tgozju6m.js → tabpanel-BiifLLS6.js} +2 -2
  184. package/web/assets/{tag-new-circle.svg-yzrCIErB.js → tag-new-circle.svg-0OOws8vC.js} +1 -1
  185. package/web/assets/{travel-map-earth-globe.svg-C9CMICQQ.js → travel-map-earth-globe.svg-CvwB8JlN.js} +1 -1
  186. package/web/assets/trpc-D0HTyuMG.js +1 -0
  187. package/web/assets/{tsMode-gblCXC3w.js → tsMode-CadFFP73.js} +1 -1
  188. package/web/assets/{typescript-DeVzlCKf.js → typescript-TsqAe_2a.js} +1 -1
  189. package/web/assets/useAiChatDrawer-2ELNp1KU.js +1 -0
  190. package/web/assets/useCloudOrg-BAtUa48Z.css +1 -0
  191. package/web/assets/useCloudOrg-DuypVndp.js +1 -0
  192. package/web/assets/{xml-UwUjH4rq.js → xml-bgdRCuvM.js} +1 -1
  193. package/web/assets/{yaml-DSs0npSB.js → yaml-BRUv0H85.js} +1 -1
  194. package/web/index.html +2 -2
  195. package/agent-manager-QPZUYLJA.js +0 -8
  196. package/chunk-LZWBXYUE.js +0 -354
  197. package/chunk-LZWBXYUE.js.map +0 -1
  198. package/chunk-PUNE7P6S.js.map +0 -1
  199. package/chunk-Q4N37KNN.js +0 -202
  200. package/chunk-Q4N37KNN.js.map +0 -1
  201. package/kanban-commands-53WWMCHQ.js +0 -14
  202. package/kanban-commands-53WWMCHQ.js.map +0 -1
  203. package/src-K32WI425.js.map +0 -1
  204. package/web/assets/AgentScalarChatInterface.vue-S7bbKRqw.js +0 -13
  205. package/web/assets/AgentTerminalPage-c0fCTCzP.js +0 -1
  206. package/web/assets/AiChatPage-B-kfiUI-.js +0 -1
  207. package/web/assets/AppLayout-COTo6zQf.js +0 -1
  208. package/web/assets/CloudAccountPage-H1QGj9tJ.js +0 -1
  209. package/web/assets/CloudMessagingPage-BEtd8B8B.js +0 -2
  210. package/web/assets/CloudMessagingPage-sgMxCh6j.css +0 -1
  211. package/web/assets/EnvironmentFormPage-DMpiq3Zx.js +0 -1
  212. package/web/assets/EnvironmentListPage-C21qJ3iw.js +0 -1
  213. package/web/assets/EnvironmentSelector-Be9yMkjY.js +0 -1
  214. package/web/assets/KanbanBoardPage-CyUTDl_W.css +0 -1
  215. package/web/assets/KanbanBoardPage-SNCSxTz7.js +0 -4
  216. package/web/assets/KanbanListPage-B3JpbFlv.css +0 -1
  217. package/web/assets/KanbanListPage-D-kgPmxI.js +0 -1
  218. package/web/assets/LaunchProjectPage-BbNDYePE.js +0 -1
  219. package/web/assets/LogViewer-CHyPfODD.js +0 -3
  220. package/web/assets/ProcessDetailPage-BlQJDM-W.js +0 -1
  221. package/web/assets/ProjectDetailPage-DdRYMfcl.js +0 -1
  222. package/web/assets/ProjectListPage-BDLXGuEj.js +0 -1
  223. package/web/assets/ScenarioEditorPage-CFNTrVlY.js +0 -14
  224. package/web/assets/SendToChatDialog-BJjY1MAh.css +0 -1
  225. package/web/assets/SendToChatDialog-CtGhyaOw.js +0 -1
  226. package/web/assets/ServiceControlsBar-m_AQmRiR.js +0 -1
  227. package/web/assets/ServiceDetailPage-RCl6IsBs.js +0 -2
  228. package/web/assets/ServiceFormPage-CIJ-tFub.js +0 -1
  229. package/web/assets/SettingsPage-CPF7w35a.css +0 -1
  230. package/web/assets/SettingsPage-tK-RiJrj.js +0 -2062
  231. package/web/assets/SetupKeyPage-CzB_AMfr.js +0 -1
  232. package/web/assets/SetupKeyPage-DoY1Ua1s.css +0 -1
  233. package/web/assets/TiptapEditor-bdEPMd-W.css +0 -1
  234. package/web/assets/UnlockPage-DWM5symg.js +0 -1
  235. package/web/assets/UnlockPage-EZOi-H7d.css +0 -1
  236. package/web/assets/VariablesTable-Bkv0MOKi.css +0 -1
  237. package/web/assets/VariablesTable-DoNJ4OIn.js +0 -1
  238. package/web/assets/WikiPage-COdO-49s.js +0 -1
  239. package/web/assets/WikiView-BS9HHroX.js +0 -1
  240. package/web/assets/auth-errors-D-uOLmKt.js +0 -1
  241. package/web/assets/cloud-chat.store-DHiYOkkN.js +0 -1
  242. package/web/assets/cloud-client-COpvz58o.js +0 -1
  243. package/web/assets/interface-content-folder.svg-Bijbx45w.js +0 -1
  244. package/web/assets/modal-BvVbc_6u.js +0 -1
  245. package/web/assets/process.store-BLMSPw2l.js +0 -1
  246. package/web/assets/router-DBNATEGs.js +0 -1
  247. package/web/assets/trpc-3qbDCsqO.js +0 -1
  248. package/web/assets/useAiChatDrawer-BtC-0qN-.js +0 -1
  249. /package/{agent-manager-QPZUYLJA.js.map → agent-manager-2P4THUVA.js.map} +0 -0
  250. /package/web/assets/{abap-lJFTLuI6.js → abap-DMmvWZUy.js} +0 -0
  251. /package/web/assets/{apex-Bp0KWav8.js → apex-D89PiTzU.js} +0 -0
  252. /package/web/assets/{azcli-DBOe7Uvy.js → azcli-ChnjTTA5.js} +0 -0
  253. /package/web/assets/{bat-Dk_NT_by.js → bat-uLzQ_FhK.js} +0 -0
  254. /package/web/assets/{bicep-B07Mrlc7.js → bicep-CMOK7Q1v.js} +0 -0
  255. /package/web/assets/{cameligo-DL5eNXGn.js → cameligo-D1AyojFH.js} +0 -0
  256. /package/web/assets/{clojure-BzV2Yqu_.js → clojure-D9JoUgXn.js} +0 -0
  257. /package/web/assets/{coffee-Bjlj5hmf.js → coffee-D-5sSToL.js} +0 -0
  258. /package/web/assets/{cpp-C9oth5qz.js → cpp-BqT_t_y9.js} +0 -0
  259. /package/web/assets/{csharp-HyGd049S.js → csharp-CuToYI91.js} +0 -0
  260. /package/web/assets/{csp-DjCDOBuX.js → csp-CffcxvlO.js} +0 -0
  261. /package/web/assets/{css-DIL8RTJ3.js → css-CUD0biQW.js} +0 -0
  262. /package/web/assets/{cypher-DX1zPXL5.js → cypher-ByyWL_9U.js} +0 -0
  263. /package/web/assets/{dart-BBQZd_ZZ.js → dart-B__ipcUn.js} +0 -0
  264. /package/web/assets/{dockerfile-Cj0CaWYx.js → dockerfile-DS-_8bWw.js} +0 -0
  265. /package/web/assets/{ecl-BjmWCTJg.js → ecl-DWsNCBUj.js} +0 -0
  266. /package/web/assets/{elixir-3uWoEjXX.js → elixir-OfjEy-3g.js} +0 -0
  267. /package/web/assets/{flow9-D4r739e9.js → flow9-BPX22hxS.js} +0 -0
  268. /package/web/assets/{fsharp-B3ycAx5T.js → fsharp-CVJcfIUn.js} +0 -0
  269. /package/web/assets/{go-DFHBjfCl.js → go-CfRHZ3yg.js} +0 -0
  270. /package/web/assets/{graphql-DBjIbM_e.js → graphql-BZaO3ttK.js} +0 -0
  271. /package/web/assets/{hcl-Buu_1Hsp.js → hcl-BF9-qUku.js} +0 -0
  272. /package/web/assets/{ini-CgzZhgz_.js → ini-BUvw6xhr.js} +0 -0
  273. /package/web/assets/{java-BczDO0q5.js → java-BZ5BNd2x.js} +0 -0
  274. /package/web/assets/{julia-B142kn-7.js → julia-DN38cgYT.js} +0 -0
  275. /package/web/assets/{kotlin-42XMP7p1.js → kotlin-CjEJKT8q.js} +0 -0
  276. /package/web/assets/{less-BCIsKRqU.js → less-DMEH_Nwq.js} +0 -0
  277. /package/web/assets/{lexon-DTDOH1dQ.js → lexon-CKQUX8Ov.js} +0 -0
  278. /package/web/assets/{lua-BrH-CeNs.js → lua-CuWjKLJ0.js} +0 -0
  279. /package/web/assets/{m3-D-eUeHOI.js → m3-CEp1bVrM.js} +0 -0
  280. /package/web/assets/{markdown-DwpSjZTn.js → markdown-DxtQ_puq.js} +0 -0
  281. /package/web/assets/{mips-DoGTrjVk.js → mips-Dx7qydpO.js} +0 -0
  282. /package/web/assets/{msdax-CQ8McnjQ.js → msdax-DpNCaSiO.js} +0 -0
  283. /package/web/assets/{mysql-Cj3do0ZO.js → mysql-C3xsBDPP.js} +0 -0
  284. /package/web/assets/{objective-c-BZbR8TG8.js → objective-c-BbaVHCX1.js} +0 -0
  285. /package/web/assets/{pascal-23PRDHRq.js → pascal-sDju2faq.js} +0 -0
  286. /package/web/assets/{pascaligo-CxasKTLJ.js → pascaligo-ChCdOH6b.js} +0 -0
  287. /package/web/assets/{perl-Dhxz2Lhx.js → perl-BCgLFj01.js} +0 -0
  288. /package/web/assets/{pgsql-BIbUy7yD.js → pgsql-DtKby69f.js} +0 -0
  289. /package/web/assets/{php-B5qS9qgM.js → php-NYvR17Qb.js} +0 -0
  290. /package/web/assets/{pla-Bolz9fha.js → pla-gSg-RBG0.js} +0 -0
  291. /package/web/assets/{postiats-Ba6dE5lj.js → postiats-BQxHyDfy.js} +0 -0
  292. /package/web/assets/{powerquery-2jW3ONgo.js → powerquery-DzDmbVZN.js} +0 -0
  293. /package/web/assets/{powershell-CMfBIiJp.js → powershell-yy4Q5BEQ.js} +0 -0
  294. /package/web/assets/{protobuf-BpaquOUj.js → protobuf-B_hIk9q0.js} +0 -0
  295. /package/web/assets/{pug-cBG82Ydz.js → pug-CdeEb1ft.js} +0 -0
  296. /package/web/assets/{qsharp-DtqL8Lmt.js → qsharp-CiSquEgT.js} +0 -0
  297. /package/web/assets/{r-CKLew4sj.js → r-D1Ocz1x4.js} +0 -0
  298. /package/web/assets/{redis-BdDxRU-N.js → redis-D42Y12yz.js} +0 -0
  299. /package/web/assets/{redshift-X4a4MlqW.js → redshift-CS62MYfG.js} +0 -0
  300. /package/web/assets/{restructuredtext-LA4Fv05h.js → restructuredtext-CKFSMEXw.js} +0 -0
  301. /package/web/assets/{ruby-CibE_WVM.js → ruby-C4gTaeU3.js} +0 -0
  302. /package/web/assets/{rust-BK6RsiL0.js → rust-C_f2AiHQ.js} +0 -0
  303. /package/web/assets/{sb-BnCCt0Qj.js → sb-CdNdpP1r.js} +0 -0
  304. /package/web/assets/{scala-oaBDrVqj.js → scala-N4EWaFTL.js} +0 -0
  305. /package/web/assets/{scheme-C-wkLC01.js → scheme-CttIARxx.js} +0 -0
  306. /package/web/assets/{scss-BceVGOJY.js → scss-v0wtbxaE.js} +0 -0
  307. /package/web/assets/{shell-CxhBAFA5.js → shell-BJdEWXbc.js} +0 -0
  308. /package/web/assets/{solidity-D9sXgTfx.js → solidity-DKDa59zZ.js} +0 -0
  309. /package/web/assets/{sophia-C4VBhIEM.js → sophia--Kw-vDpr.js} +0 -0
  310. /package/web/assets/{sparql-DbsK2s9y.js → sparql-BI8jS9Pc.js} +0 -0
  311. /package/web/assets/{sql-CuGfE0wH.js → sql-Dz6z--6O.js} +0 -0
  312. /package/web/assets/{st-rB6Bqb2h.js → st-CT8D05gv.js} +0 -0
  313. /package/web/assets/{swift-BtHGe_4T.js → swift-Ayb3KzWx.js} +0 -0
  314. /package/web/assets/{systemverilog-CgKnzwU4.js → systemverilog-BtWJM9O5.js} +0 -0
  315. /package/web/assets/{tcl-DyqQWf87.js → tcl-BJvUWpbV.js} +0 -0
  316. /package/web/assets/{twig-C980XO5P.js → twig-c3YaBCU6.js} +0 -0
  317. /package/web/assets/{typespec-CVmA80px.js → typespec-gFCWLBoZ.js} +0 -0
  318. /package/web/assets/{uuid-2Kb5PDpq.js → uuid-B3B8HIK9.js} +0 -0
  319. /package/web/assets/{vb-rdNQv5VQ.js → vb-CVtfWXV2.js} +0 -0
  320. /package/web/assets/{w3c-keyname-B2B-WOb1.js → w3c-keyname-nn0G3QC2.js} +0 -0
  321. /package/web/assets/{wgsl-64oVbimL.js → wgsl-C_huaGQy.js} +0 -0
@@ -0,0 +1 @@
1
+ import{wn as e}from"./index-Dl-HyfHx.js";function t(){let{t,te:n}=e();return(e,r)=>e&&n(`authErrors.${e}`)?t(`authErrors.${e}`):e?t(`authErrors.default`):r}export{t};
@@ -1,4 +1,4 @@
1
- import{An as e,Br as t,Gn as n,Gr as r,Ht as i,Ii as a,In as o,Kr as s,Kt as c,Mi as l,Mn as u,Ni as ee,Pr as d,Ri as f,Rr as p,Tn as m,Ur as te,Vr as h,Vt as g,Xt as _,Yt as v,Zn as y,Zt as b,_i as x,an as S,bi as ne,dn as re,gn as C,gr as w,hi as T,hr as ie,in as ae,ir as oe,mr as E,or as D,ri as O,sn as se,sr as k,tr as A,ur as j,vi as M,vr as N,xi as ce,xr as le,yi as P,zi as F,zr as I}from"./index-BTYNCNK0.js";import{t as L}from"./chip-8cRcc2L3.js";var R=m.extend({name:`toggleswitch`,style:`
1
+ import{An as e,Br as t,Gn as n,Gr as r,Ht as i,Ii as a,In as o,Kr as s,Kt as c,Mi as l,Mn as u,Ni as ee,Pr as d,Ri as f,Rr as p,Tn as m,Ur as te,Vr as h,Vt as g,Xt as _,Yt as v,Zn as y,Zt as b,_i as x,an as S,bi as ne,dn as re,gn as C,gr as w,hi as T,hr as ie,in as ae,ir as oe,mr as E,or as D,ri as O,sn as se,sr as k,tr as A,ur as j,vi as M,vr as N,xi as ce,xr as le,yi as P,zi as F,zr as I}from"./index-Dl-HyfHx.js";import{t as L}from"./chip-BVSQ-56q.js";var R=m.extend({name:`toggleswitch`,style:`
2
2
  .p-toggleswitch {
3
3
  display: inline-block;
4
4
  width: dt('toggleswitch.width');
@@ -1 +1 @@
1
- import{Rr as e,Vr as t,hi as n}from"./index-BTYNCNK0.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return n(),t(`svg`,r,[...a[0]||=[e(`path`,{d:`m246 98.73-56-64a8 8 0 0 0-6-2.73H72a8 8 0 0 0-6 2.73l-56 64a8 8 0 0 0 .17 10.73l112 120a8 8 0 0 0 11.7 0l112-120a8 8 0 0 0 .13-10.73M222.37 96H180l-36-48h36.37ZM74.58 112l30.13 75.33L34.41 112Zm89.6 0L128 202.46 91.82 112ZM96 96l32-42.67L160 96Zm85.42 16h40.17l-70.3 75.33ZM75.63 48H112L76 96H33.63Z`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Rr as e,Vr as t,hi as n}from"./index-Dl-HyfHx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return n(),t(`svg`,r,[...a[0]||=[e(`path`,{d:`m246 98.73-56-64a8 8 0 0 0-6-2.73H72a8 8 0 0 0-6 2.73l-56 64a8 8 0 0 0 .17 10.73l112 120a8 8 0 0 0 11.7 0l112-120a8 8 0 0 0 .13-10.73M222.37 96H180l-36-48h36.37ZM74.58 112l30.13 75.33L34.41 112Zm89.6 0L128 202.46 91.82 112ZM96 96l32-42.67L160 96Zm85.42 16h40.17l-70.3 75.33ZM75.63 48H112L76 96H33.63Z`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{Rr as e,Vr as t,hi as n}from"./index-BTYNCNK0.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return n(),t(`svg`,r,[...a[0]||=[e(`path`,{d:`m223.68 66.15-88-48.15a15.88 15.88 0 0 0-15.36 0l-88 48.17a16 16 0 0 0-8.32 14v95.64a16 16 0 0 0 8.32 14l88 48.17a15.88 15.88 0 0 0 15.36 0l88-48.17a16 16 0 0 0 8.32-14V80.18a16 16 0 0 0-8.32-14.03M216 175.82 128 224l-88-48.18V80.18L128 32l88 48.17Z`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Rr as e,Vr as t,hi as n}from"./index-Dl-HyfHx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return n(),t(`svg`,r,[...a[0]||=[e(`path`,{d:`m223.68 66.15-88-48.15a15.88 15.88 0 0 0-15.36 0l-88 48.17a16 16 0 0 0-8.32 14v95.64a16 16 0 0 0 8.32 14l88 48.17a15.88 15.88 0 0 0 15.36 0l88-48.17a16 16 0 0 0 8.32-14V80.18a16 16 0 0 0-8.32-14.03M216 175.82 128 224l-88-48.18V80.18L128 32l88 48.17Z`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{Rr as e,Vr as t,hi as n}from"./index-BTYNCNK0.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return n(),t(`svg`,r,[...a[0]||=[e(`path`,{d:`M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Rr as e,Vr as t,hi as n}from"./index-Dl-HyfHx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return n(),t(`svg`,r,[...a[0]||=[e(`path`,{d:`M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{Rr as e,Vr as t,hi as n}from"./index-BTYNCNK0.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return n(),t(`svg`,r,[...a[0]||=[e(`path`,{d:`M208 96a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16h-32a16 16 0 0 0-16 16v8H96v-8a16 16 0 0 0-16-16H48a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h8v64h-8a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-8h64v8a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-8V96Zm-32-48h32v32h-32ZM48 48h32v15.9a.5.5 0 0 0 0 .2V80H48Zm32 160H48v-32h32v15.9a.5.5 0 0 0 0 .2zm128 0h-32v-32h32Zm-24-48h-8a16 16 0 0 0-16 16v8H96v-8a16 16 0 0 0-16-16h-8V96h8a16 16 0 0 0 16-16v-8h64v8a16 16 0 0 0 16 16h8Z`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Rr as e,Vr as t,hi as n}from"./index-Dl-HyfHx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return n(),t(`svg`,r,[...a[0]||=[e(`path`,{d:`M208 96a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16h-32a16 16 0 0 0-16 16v8H96v-8a16 16 0 0 0-16-16H48a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h8v64h-8a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-8h64v8a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-8V96Zm-32-48h32v32h-32ZM48 48h32v15.9a.5.5 0 0 0 0 .2V80H48Zm32 160H48v-32h32v15.9a.5.5 0 0 0 0 .2zm128 0h-32v-32h32Zm-24-48h-8a16 16 0 0 0-16 16v8H96v-8a16 16 0 0 0-16-16h-8V96h8a16 16 0 0 0 16-16v-8h64v8a16 16 0 0 0 16 16h8Z`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{Rr as e,Vr as t,hi as n}from"./index-BTYNCNK0.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return n(),t(`svg`,r,[...a[0]||=[e(`path`,{d:`M208 40H48a16 16 0 0 0-16 16v56c0 52.72 25.52 84.67 46.93 102.19 23.06 18.86 46 25.27 47 25.53a8 8 0 0 0 4.2 0c1-.26 23.91-6.67 47-25.53C198.48 196.67 224 164.72 224 112V56a16 16 0 0 0-16-16m0 16v56c0 2.71-.08 5.37-.23 8H136V56ZM48 56h72v64H48.23c-.15-2.63-.23-5.29-.23-8Zm2.06 80H120v84.55a131 131 0 0 1-30.93-18.74c-21.15-17.3-34.2-39.37-38.99-65.81Zm117.34 65.42a131.3 131.3 0 0 1-31.4 19.11V136h69.91c-4.75 26.24-17.64 48.18-38.51 65.42`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Rr as e,Vr as t,hi as n}from"./index-Dl-HyfHx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return n(),t(`svg`,r,[...a[0]||=[e(`path`,{d:`M208 40H48a16 16 0 0 0-16 16v56c0 52.72 25.52 84.67 46.93 102.19 23.06 18.86 46 25.27 47 25.53a8 8 0 0 0 4.2 0c1-.26 23.91-6.67 47-25.53C198.48 196.67 224 164.72 224 112V56a16 16 0 0 0-16-16m0 16v56c0 2.71-.08 5.37-.23 8H136V56ZM48 56h72v64H48.23c-.15-2.63-.23-5.29-.23-8Zm2.06 80H120v84.55a131 131 0 0 1-30.93-18.74c-21.15-17.3-34.2-39.37-38.99-65.81Zm117.34 65.42a131.3 131.3 0 0 1-31.4 19.11V136h69.91c-4.75 26.24-17.64 48.18-38.51 65.42`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1,4 +1,4 @@
1
- import{ca as e}from"./index-BTYNCNK0.js";var t=Symbol.for(`yaml.alias`),n=Symbol.for(`yaml.document`),r=Symbol.for(`yaml.map`),i=Symbol.for(`yaml.pair`),a=Symbol.for(`yaml.scalar`),o=Symbol.for(`yaml.seq`),s=Symbol.for(`yaml.node.type`),c=e=>!!e&&typeof e==`object`&&e[s]===t,l=e=>!!e&&typeof e==`object`&&e[s]===n,u=e=>!!e&&typeof e==`object`&&e[s]===r,d=e=>!!e&&typeof e==`object`&&e[s]===i,f=e=>!!e&&typeof e==`object`&&e[s]===a,p=e=>!!e&&typeof e==`object`&&e[s]===o;function m(e){if(e&&typeof e==`object`)switch(e[s]){case r:case o:return!0}return!1}function h(e){if(e&&typeof e==`object`)switch(e[s]){case t:case r:case a:case o:return!0}return!1}var g=e=>(f(e)||m(e))&&!!e.anchor,_=Symbol(`break visit`),v=Symbol(`skip children`),y=Symbol(`remove node`);function b(e,t){let n=ee(t);l(e)?x(null,e.contents,n,Object.freeze([e]))===y&&(e.contents=null):x(null,e,n,Object.freeze([]))}b.BREAK=_,b.SKIP=v,b.REMOVE=y;function x(e,t,n,r){let i=w(e,t,n,r);if(h(i)||d(i))return T(e,r,i),x(e,i,n,r);if(typeof i!=`symbol`){if(m(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=x(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===_)return _;else i===y&&(t.items.splice(e,1),--e)}}else if(d(t)){r=Object.freeze(r.concat(t));let e=x(`key`,t.key,n,r);if(e===_)return _;e===y&&(t.key=null);let i=x(`value`,t.value,n,r);if(i===_)return _;i===y&&(t.value=null)}}return i}async function S(e,t){let n=ee(t);l(e)?await C(null,e.contents,n,Object.freeze([e]))===y&&(e.contents=null):await C(null,e,n,Object.freeze([]))}S.BREAK=_,S.SKIP=v,S.REMOVE=y;async function C(e,t,n,r){let i=await w(e,t,n,r);if(h(i)||d(i))return T(e,r,i),C(e,i,n,r);if(typeof i!=`symbol`){if(m(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=await C(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===_)return _;else i===y&&(t.items.splice(e,1),--e)}}else if(d(t)){r=Object.freeze(r.concat(t));let e=await C(`key`,t.key,n,r);if(e===_)return _;e===y&&(t.key=null);let i=await C(`value`,t.value,n,r);if(i===_)return _;i===y&&(t.value=null)}}return i}function ee(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function w(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(u(t))return n.Map?.(e,t,r);if(p(t))return n.Seq?.(e,t,r);if(d(t))return n.Pair?.(e,t,r);if(f(t))return n.Scalar?.(e,t,r);if(c(t))return n.Alias?.(e,t,r)}function T(e,t,n){let r=t[t.length-1];if(m(r))r.items[e]=n;else if(d(r))e===`key`?r.key=n:r.value=n;else if(l(r))r.contents=n;else{let e=c(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var te={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},ne=e=>e.replace(/[!,[\]{}]/g,e=>te[e]),E=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+ne(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&h(e.contents)){let t={};b(e.contents,(e,n)=>{h(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)i===`!!`&&a===`tag:yaml.org,2002:`||(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(`
1
+ import{ca as e}from"./index-Dl-HyfHx.js";var t=Symbol.for(`yaml.alias`),n=Symbol.for(`yaml.document`),r=Symbol.for(`yaml.map`),i=Symbol.for(`yaml.pair`),a=Symbol.for(`yaml.scalar`),o=Symbol.for(`yaml.seq`),s=Symbol.for(`yaml.node.type`),c=e=>!!e&&typeof e==`object`&&e[s]===t,l=e=>!!e&&typeof e==`object`&&e[s]===n,u=e=>!!e&&typeof e==`object`&&e[s]===r,d=e=>!!e&&typeof e==`object`&&e[s]===i,f=e=>!!e&&typeof e==`object`&&e[s]===a,p=e=>!!e&&typeof e==`object`&&e[s]===o;function m(e){if(e&&typeof e==`object`)switch(e[s]){case r:case o:return!0}return!1}function h(e){if(e&&typeof e==`object`)switch(e[s]){case t:case r:case a:case o:return!0}return!1}var g=e=>(f(e)||m(e))&&!!e.anchor,_=Symbol(`break visit`),v=Symbol(`skip children`),y=Symbol(`remove node`);function b(e,t){let n=ee(t);l(e)?x(null,e.contents,n,Object.freeze([e]))===y&&(e.contents=null):x(null,e,n,Object.freeze([]))}b.BREAK=_,b.SKIP=v,b.REMOVE=y;function x(e,t,n,r){let i=w(e,t,n,r);if(h(i)||d(i))return T(e,r,i),x(e,i,n,r);if(typeof i!=`symbol`){if(m(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=x(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===_)return _;else i===y&&(t.items.splice(e,1),--e)}}else if(d(t)){r=Object.freeze(r.concat(t));let e=x(`key`,t.key,n,r);if(e===_)return _;e===y&&(t.key=null);let i=x(`value`,t.value,n,r);if(i===_)return _;i===y&&(t.value=null)}}return i}async function S(e,t){let n=ee(t);l(e)?await C(null,e.contents,n,Object.freeze([e]))===y&&(e.contents=null):await C(null,e,n,Object.freeze([]))}S.BREAK=_,S.SKIP=v,S.REMOVE=y;async function C(e,t,n,r){let i=await w(e,t,n,r);if(h(i)||d(i))return T(e,r,i),C(e,i,n,r);if(typeof i!=`symbol`){if(m(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=await C(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===_)return _;else i===y&&(t.items.splice(e,1),--e)}}else if(d(t)){r=Object.freeze(r.concat(t));let e=await C(`key`,t.key,n,r);if(e===_)return _;e===y&&(t.key=null);let i=await C(`value`,t.value,n,r);if(i===_)return _;i===y&&(t.value=null)}}return i}function ee(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function w(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(u(t))return n.Map?.(e,t,r);if(p(t))return n.Seq?.(e,t,r);if(d(t))return n.Pair?.(e,t,r);if(f(t))return n.Scalar?.(e,t,r);if(c(t))return n.Alias?.(e,t,r)}function T(e,t,n){let r=t[t.length-1];if(m(r))r.items[e]=n;else if(d(r))e===`key`?r.key=n:r.value=n;else if(l(r))r.contents=n;else{let e=c(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var te={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},ne=e=>e.replace(/[!,[\]{}]/g,e=>te[e]),E=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+ne(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&h(e.contents)){let t={};b(e.contents,(e,n)=>{h(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)i===`!!`&&a===`tag:yaml.org,2002:`||(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(`
2
2
  `)}};E.defaultYaml={explicit:!1,version:`1.2`},E.defaultTags={"!!":`tag:yaml.org,2002:`};function re(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function ie(e){let t=new Set;return b(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function ae(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function oe(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=ie(e);let a=ae(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(f(t.node)||m(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}function D(e,t,n,r){if(r&&typeof r==`object`)if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=D(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=D(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=D(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=D(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}return e.call(t,n,r)}function O(e,t,n){if(Array.isArray(e))return e.map((e,t)=>O(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!g(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var se=class{constructor(e){Object.defineProperty(this,s,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!l(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=O(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?D(i,{"":o},``,o):o}},k=class extends se{constructor(e){super(t),this.source=e,Object.defineProperty(this,`tag`,{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],b(e,{Node:(e,t)=>{(c(t)||g(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}return r}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,a=this.resolve(r,t);if(!a){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=n.get(a);if(o||=(O(a,null,t),n.get(a)),o?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=ce(r,a,n)),o.count*o.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(re(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function ce(e,t,n){if(c(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(m(t)){let r=0;for(let i of t.items){let t=ce(e,i,n);t>r&&(r=t)}return r}else if(d(t)){let r=ce(e,t.key,n),i=ce(e,t.value,n);return Math.max(r,i)}return 1}var le=e=>!e||typeof e!=`function`&&typeof e!=`object`,A=class extends se{constructor(e){super(a),this.value=e}toJSON(e,t){return t?.keep?this.value:O(this.value,e,t)}toString(){return String(this.value)}};A.BLOCK_FOLDED=`BLOCK_FOLDED`,A.BLOCK_LITERAL=`BLOCK_LITERAL`,A.PLAIN=`PLAIN`,A.QUOTE_DOUBLE=`QUOTE_DOUBLE`,A.QUOTE_SINGLE=`QUOTE_SINGLE`;var ue=`tag:yaml.org,2002:`;function de(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function j(e,t,n){if(l(e)&&(e=e.contents),h(e))return e;if(d(e)){let t=n.schema[r].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:i,onAnchor:a,onTagObj:s,schema:c,sourceObjects:u}=n,f;if(i&&e&&typeof e==`object`){if(f=u.get(e),f)return f.anchor??=a(e),new k(f.anchor);f={anchor:null,node:null},u.set(e,f)}t?.startsWith(`!!`)&&(t=ue+t.slice(2));let p=de(e,t,c.tags);if(!p){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new A(e);return f&&(f.node=t),t}p=e instanceof Map?c[r]:Symbol.iterator in Object(e)?c[o]:c[r]}s&&(s(p),delete n.onTagObj);let m=p?.createNode?p.createNode(n.schema,e,n):typeof p?.nodeClass?.from==`function`?p.nodeClass.from(n.schema,e,n):new A(e);return t?m.tag=t:p.default||(m.tag=p.tag),f&&(f.node=m),m}function fe(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return j(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var M=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,pe=class extends se{constructor(e,t){super(e),Object.defineProperty(this,`schema`,{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>h(t)||d(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(M(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(m(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,fe(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(m(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&f(i)?i.value:i:m(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!d(t))return!1;let n=t.value;return n==null||e&&f(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return m(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(m(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,fe(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},me=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function N(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var P=(e,t,n)=>e.endsWith(`
3
3
  `)?N(n,t):n.includes(`
4
4
  `)?`
@@ -1 +1 @@
1
- import{A as e,C as t,D as n,E as r,O as i,S as a,T as o,_ as s,a as c,b as l,c as u,d,f,g as p,h as m,i as h,k as g,l as _,m as v,n as y,o as b,p as x,r as S,s as C,t as w,u as T,v as E,w as D,x as O,y as k}from"./browser-C2YmKQw8.js";export{y as parse,c as stringify};
1
+ import{A as e,C as t,D as n,E as r,O as i,S as a,T as o,_ as s,a as c,b as l,c as u,d,f,g as p,h as m,i as h,k as g,l as _,m as v,n as y,o as b,p as x,r as S,s as C,t as w,u as T,v as E,w as D,x as O,y as k}from"./browser-DJeF2lho.js";export{y as parse,c as stringify};
@@ -1,4 +1,4 @@
1
- import{Br as e,Rr as t,Tn as n,Vr as r,hi as i,ri as a,un as o,vi as s}from"./index-BTYNCNK0.js";var c={name:`Card`,extends:{name:`BaseCard`,extends:o,style:n.extend({name:`card`,style:`
1
+ import{Br as e,Rr as t,Tn as n,Vr as r,hi as i,ri as a,un as o,vi as s}from"./index-Dl-HyfHx.js";var c={name:`Card`,extends:{name:`BaseCard`,extends:o,style:n.extend({name:`card`,style:`
2
2
  .p-card {
3
3
  background: dt('card.background');
4
4
  color: dt('card.color');
@@ -1,4 +1,4 @@
1
- import{Br as e,Ii as t,Rr as n,Tn as r,Vr as i,Xt as a,_r as o,cn as s,hi as c,mr as l,ri as u,sr as d,vi as f,yi as p,zr as m}from"./index-BTYNCNK0.js";import{t as h}from"./minus-RXlNS6-g.js";var g=r.extend({name:`checkbox`,style:`
1
+ import{Br as e,Ii as t,Rr as n,Tn as r,Vr as i,Xt as a,_r as o,cn as s,hi as c,mr as l,ri as u,sr as d,vi as f,yi as p,zr as m}from"./index-Dl-HyfHx.js";import{t as h}from"./minus-Bh-ngAnz.js";var g=r.extend({name:`checkbox`,style:`
2
2
  .p-checkbox {
3
3
  position: relative;
4
4
  display: inline-flex;
@@ -1,4 +1,4 @@
1
- import{Br as e,Tn as t,Vr as n,hi as r,on as i,ri as a,sr as o,un as s,vi as c,xi as l,zi as u,zr as d}from"./index-BTYNCNK0.js";var f=t.extend({name:`chip`,style:`
1
+ import{Br as e,Tn as t,Vr as n,hi as r,on as i,ri as a,sr as o,un as s,vi as c,xi as l,zi as u,zr as d}from"./index-Dl-HyfHx.js";var f=t.extend({name:`chip`,style:`
2
2
  .p-chip {
3
3
  display: inline-flex;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{Br as e,Er as t,Jr as n,Kr as r,Mi as i,Mr as a,Ni as o,Oi as s,Rr as c,Ti as l,Ur as u,Vr as d,Yi as f,Zi as p,di as m,hi as h,ni as g,oa as _,ri as v,vi as y,zi as ee,zr as b}from"./index-BTYNCNK0.js";import{$i as x,$r as S,Aa as C,Ai as w,Ba as T,Bi as E,Br as te,Ca as D,Ci as ne,D as O,Da as k,Di as re,Ei as ie,Fa as ae,Fi as A,Gi as oe,Gr as se,Hi as j,Hr as ce,Ii as M,Ji as le,Jn as ue,Jr as de,Ki as fe,Kr as pe,La as me,Li as he,Ma as ge,Mi as _e,Na as ve,Ni as N,Oa as ye,Oi as be,Pa as xe,Pi as P,Qi as F,Qr as Se,R as Ce,Ri as I,S as we,Sa as Te,Si as Ee,Ti as De,Ui as L,Ur as Oe,Vi as R,Vr as ke,Wi as z,Wr as Ae,Xi as je,Xr as Me,Yi as Ne,Yn as Pe,Yr as Fe,Zi as B,Zr as Ie,_ as Le,_a as Re,_i as ze,aa as Be,ai as Ve,ar as He,b as Ue,ba as We,bi as Ge,br as Ke,ca as qe,ci as Je,da as Ye,di as Xe,dt as Ze,ea as Qe,ei as $e,fa as et,fi as tt,ga as nt,gi as rt,ha as it,hi as at,ia as ot,ii as st,ja as ct,ji as V,jr as lt,ka as ut,ki as H,kt as dt,la as ft,li as pt,lt as mt,ma as ht,mi as gt,mt as _t,na as vt,ni as yt,oa as bt,oi as xt,or as U,pa as St,pi as Ct,qi as wt,qr as Tt,r as Et,ra as Dt,ri as Ot,sa as kt,si as At,ta as jt,ti as Mt,ua as Nt,ui as Pt,ut as Ft,va as It,vi as Lt,vr as Rt,wi as zt,x as Bt,xa as Vt,xi as Ht,ya as Ut,yi as Wt,yr as Gt,z as Kt,zi as W,zr as qt}from"./add-scalar-classes-Cfh7_IWy.js";import{n as Jt,t as Yt}from"./browser-C2YmKQw8.js";function Xt(e){switch(e.errorType){case G.ArrayContains:return`Expected array to contain at least one matching value`;case G.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case G.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case G.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case G.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case G.ArrayUniqueItems:return`Expected array elements to be unique`;case G.Array:return`Expected array`;case G.AsyncIterator:return`Expected AsyncIterator`;case G.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case G.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case G.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case G.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case G.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case G.BigInt:return`Expected bigint`;case G.Boolean:return`Expected boolean`;case G.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case G.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case G.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case G.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case G.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case G.Date:return`Expected Date`;case G.Function:return`Expected function`;case G.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case G.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case G.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case G.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case G.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case G.Integer:return`Expected integer`;case G.IntersectUnevaluatedProperties:return`Unexpected property`;case G.Intersect:return`Expected all values to match`;case G.Iterator:return`Expected Iterator`;case G.Literal:return`Expected ${typeof e.schema.const==`string`?`'${e.schema.const}'`:e.schema.const}`;case G.Never:return`Never`;case G.Not:return`Value should not match`;case G.Null:return`Expected null`;case G.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case G.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case G.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case G.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case G.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case G.Number:return`Expected number`;case G.Object:return`Expected object`;case G.ObjectAdditionalProperties:return`Unexpected property`;case G.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case G.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case G.ObjectRequiredProperty:return`Expected required property`;case G.Promise:return`Expected Promise`;case G.RegExp:return`Expected string to match regular expression`;case G.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case G.StringFormat:return`Expected string to match '${e.schema.format}' format`;case G.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case G.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case G.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case G.String:return`Expected string`;case G.Symbol:return`Expected symbol`;case G.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case G.Tuple:return`Expected tuple`;case G.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case G.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case G.Uint8Array:return`Expected Uint8Array`;case G.Undefined:return`Expected undefined`;case G.Union:return`Expected union value`;case G.Void:return`Expected void`;case G.Kind:return`Expected kind '${e.schema[bt]}'`;default:return`Unknown error type`}}var Zt=Xt;function Qt(){return Zt}var G;(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`})(G||={});var $t=class extends kt{constructor(e){super(`Unknown type`),this.schema=e}};function en(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function K(e){return e!==void 0}var tn=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 q(e,t,n,r,i=[]){return{type:e,schema:t,path:n,value:r,message:Qt()({errorType:e,path:n,schema:t,value:r,errors:i}),errors:i}}function*nn(e,t,n,r){}function*rn(e,t,n,r){}function*an(e,t,n,r){if(!ft(r))return yield q(G.Array,e,n,r);K(e.minItems)&&!(r.length>=e.minItems)&&(yield q(G.ArrayMinItems,e,n,r)),K(e.maxItems)&&!(r.length<=e.maxItems)&&(yield q(G.ArrayMaxItems,e,n,r));for(let i=0;i<r.length;i++)yield*J(e.items,t,`${n}/${i}`,r[i]);if(e.uniqueItems===!0&&!(function(){let e=new Set;for(let t of r){let n=je(t);if(e.has(n))return!1;e.add(n)}return!0})()&&(yield q(G.ArrayUniqueItems,e,n,r)),!(K(e.contains)||K(e.minContains)||K(e.maxContains)))return;let i=K(e.contains)?e.contains:jt(),a=r.reduce((e,r,a)=>J(i,t,`${n}${a}`,r).next().done===!0?e+1:e,0);a===0&&(yield q(G.ArrayContains,e,n,r)),It(e.minContains)&&a<e.minContains&&(yield q(G.ArrayMinContains,e,n,r)),It(e.maxContains)&&a>e.maxContains&&(yield q(G.ArrayMaxContains,e,n,r))}function*on(e,t,n,r){Nt(r)||(yield q(G.AsyncIterator,e,n,r))}function*sn(e,t,n,r){if(!Ye(r))return yield q(G.BigInt,e,n,r);K(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)&&(yield q(G.BigIntExclusiveMaximum,e,n,r)),K(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)&&(yield q(G.BigIntExclusiveMinimum,e,n,r)),K(e.maximum)&&!(r<=e.maximum)&&(yield q(G.BigIntMaximum,e,n,r)),K(e.minimum)&&!(r>=e.minimum)&&(yield q(G.BigIntMinimum,e,n,r)),K(e.multipleOf)&&r%e.multipleOf!==BigInt(0)&&(yield q(G.BigIntMultipleOf,e,n,r))}function*cn(e,t,n,r){et(r)||(yield q(G.Boolean,e,n,r))}function*ln(e,t,n,r){yield*J(e.returns,t,n,r.prototype)}function*un(e,t,n,r){if(!St(r))return yield q(G.Date,e,n,r);K(e.exclusiveMaximumTimestamp)&&!(r.getTime()<e.exclusiveMaximumTimestamp)&&(yield q(G.DateExclusiveMaximumTimestamp,e,n,r)),K(e.exclusiveMinimumTimestamp)&&!(r.getTime()>e.exclusiveMinimumTimestamp)&&(yield q(G.DateExclusiveMinimumTimestamp,e,n,r)),K(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)&&(yield q(G.DateMaximumTimestamp,e,n,r)),K(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)&&(yield q(G.DateMinimumTimestamp,e,n,r)),K(e.multipleOfTimestamp)&&r.getTime()%e.multipleOfTimestamp!==0&&(yield q(G.DateMultipleOfTimestamp,e,n,r))}function*dn(e,t,n,r){ht(r)||(yield q(G.Function,e,n,r))}function*fn(e,t,n,r){let i=globalThis.Object.values(e.$defs),a=e.$defs[e.$ref];yield*J(a,[...t,...i],n,r)}function*pn(e,t,n,r){if(!it(r))return yield q(G.Integer,e,n,r);K(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)&&(yield q(G.IntegerExclusiveMaximum,e,n,r)),K(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)&&(yield q(G.IntegerExclusiveMinimum,e,n,r)),K(e.maximum)&&!(r<=e.maximum)&&(yield q(G.IntegerMaximum,e,n,r)),K(e.minimum)&&!(r>=e.minimum)&&(yield q(G.IntegerMinimum,e,n,r)),K(e.multipleOf)&&r%e.multipleOf!==0&&(yield q(G.IntegerMultipleOf,e,n,r))}function*mn(e,t,n,r){let i=!1;for(let a of e.allOf)for(let e of J(a,t,n,r))i=!0,yield e;if(i)return yield q(G.Intersect,e,n,r);if(e.unevaluatedProperties===!1){let t=new RegExp(Qe(e));for(let i of Object.getOwnPropertyNames(r))t.test(i)||(yield q(G.IntersectUnevaluatedProperties,e,`${n}/${i}`,r))}if(typeof e.unevaluatedProperties==`object`){let i=new RegExp(Qe(e));for(let a of Object.getOwnPropertyNames(r))if(!i.test(a)){let i=J(e.unevaluatedProperties,t,`${n}/${a}`,r[a]).next();i.done||(yield i.value)}}}function*hn(e,t,n,r){nt(r)||(yield q(G.Iterator,e,n,r))}function*gn(e,t,n,r){r!==e.const&&(yield q(G.Literal,e,n,r))}function*_n(e,t,n,r){yield q(G.Never,e,n,r)}function*vn(e,t,n,r){J(e.not,t,n,r).next().done===!0&&(yield q(G.Not,e,n,r))}function*yn(e,t,n,r){Re(r)||(yield q(G.Null,e,n,r))}function*bn(e,t,n,r){if(!qe.IsNumberLike(r))return yield q(G.Number,e,n,r);K(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)&&(yield q(G.NumberExclusiveMaximum,e,n,r)),K(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)&&(yield q(G.NumberExclusiveMinimum,e,n,r)),K(e.maximum)&&!(r<=e.maximum)&&(yield q(G.NumberMaximum,e,n,r)),K(e.minimum)&&!(r>=e.minimum)&&(yield q(G.NumberMinimum,e,n,r)),K(e.multipleOf)&&r%e.multipleOf!==0&&(yield q(G.NumberMultipleOf,e,n,r))}function*xn(e,t,n,r){if(!qe.IsObjectLike(r))return yield q(G.Object,e,n,r);K(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)&&(yield q(G.ObjectMinProperties,e,n,r)),K(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)&&(yield q(G.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(G.ObjectRequiredProperty,e.properties[t],`${n}/${en(t)}`,void 0));if(e.additionalProperties===!1)for(let t of o)a.includes(t)||(yield q(G.ObjectAdditionalProperties,e,`${n}/${en(t)}`,r[t]));if(typeof e.additionalProperties==`object`)for(let i of o)a.includes(i)||(yield*J(e.additionalProperties,t,`${n}/${en(i)}`,r[i]));for(let i of a){let a=e.properties[i];e.required&&e.required.includes(i)?(yield*J(a,t,`${n}/${en(i)}`,r[i]),x(e)&&!(i in r)&&(yield q(G.ObjectRequiredProperty,a,`${n}/${en(i)}`,void 0))):qe.IsExactOptionalProperty(r,i)&&(yield*J(a,t,`${n}/${en(i)}`,r[i]))}}function*Sn(e,t,n,r){Ut(r)||(yield q(G.Promise,e,n,r))}function*Cn(e,t,n,r){if(!qe.IsRecordLike(r))return yield q(G.Object,e,n,r);K(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)&&(yield q(G.ObjectMinProperties,e,n,r)),K(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)&&(yield q(G.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*J(a,t,`${n}/${en(e)}`,i));if(typeof e.additionalProperties==`object`)for(let[i,a]of Object.entries(r))o.test(i)||(yield*J(e.additionalProperties,t,`${n}/${en(i)}`,a));if(e.additionalProperties===!1){for(let[t,i]of Object.entries(r))if(!o.test(t))return yield q(G.ObjectAdditionalProperties,e,`${n}/${en(t)}`,i)}}function*wn(e,t,n,r){yield*J(B(e,t),t,n,r)}function*Tn(e,t,n,r){if(!We(r))return yield q(G.String,e,n,r);if(K(e.minLength)&&!(r.length>=e.minLength)&&(yield q(G.StringMinLength,e,n,r)),K(e.maxLength)&&!(r.length<=e.maxLength)&&(yield q(G.StringMaxLength,e,n,r)),!new RegExp(e.source,e.flags).test(r))return yield q(G.RegExp,e,n,r)}function*En(e,t,n,r){if(!We(r))return yield q(G.String,e,n,r);K(e.minLength)&&!(r.length>=e.minLength)&&(yield q(G.StringMinLength,e,n,r)),K(e.maxLength)&&!(r.length<=e.maxLength)&&(yield q(G.StringMaxLength,e,n,r)),We(e.pattern)&&(new RegExp(e.pattern).test(r)||(yield q(G.StringPattern,e,n,r))),We(e.format)&&(Be(e.format)?ot(e.format)(r)||(yield q(G.StringFormat,e,n,r)):yield q(G.StringFormatUnknown,e,n,r))}function*Dn(e,t,n,r){Vt(r)||(yield q(G.Symbol,e,n,r))}function*On(e,t,n,r){if(!We(r))return yield q(G.String,e,n,r);new RegExp(e.pattern).test(r)||(yield q(G.StringPattern,e,n,r))}function*kn(e,t,n,r){yield*J(B(e,t),t,n,r)}function*An(e,t,n,r){if(!ft(r))return yield q(G.Tuple,e,n,r);if(e.items===void 0&&r.length!==0||r.length!==e.maxItems)return yield q(G.TupleLength,e,n,r);if(e.items)for(let i=0;i<e.items.length;i++)yield*J(e.items[i],t,`${n}/${i}`,r[i])}function*jn(e,t,n,r){D(r)||(yield q(G.Undefined,e,n,r))}function*Mn(e,t,n,r){if(Ne(e,t,r))return;let i=e.anyOf.map(e=>new tn(J(e,t,n,r)));yield q(G.Union,e,n,r,i)}function*Nn(e,t,n,r){if(!Te(r))return yield q(G.Uint8Array,e,n,r);K(e.maxByteLength)&&!(r.length<=e.maxByteLength)&&(yield q(G.Uint8ArrayMaxByteLength,e,n,r)),K(e.minByteLength)&&!(r.length>=e.minByteLength)&&(yield q(G.Uint8ArrayMinByteLength,e,n,r))}function*Pn(e,t,n,r){}function*Fn(e,t,n,r){qe.IsVoidLike(r)||(yield q(G.Void,e,n,r))}function*In(e,t,n,r){vt(e[bt])(e,r)||(yield q(G.Kind,e,n,r))}function*J(e,t,n,r){let i=K(e.$id)?[...t,e]:t,a=e;switch(a[bt]){case`Any`:return yield*nn(a,i,n,r);case`Argument`:return yield*rn(a,i,n,r);case`Array`:return yield*an(a,i,n,r);case`AsyncIterator`:return yield*on(a,i,n,r);case`BigInt`:return yield*sn(a,i,n,r);case`Boolean`:return yield*cn(a,i,n,r);case`Constructor`:return yield*ln(a,i,n,r);case`Date`:return yield*un(a,i,n,r);case`Function`:return yield*dn(a,i,n,r);case`Import`:return yield*fn(a,i,n,r);case`Integer`:return yield*pn(a,i,n,r);case`Intersect`:return yield*mn(a,i,n,r);case`Iterator`:return yield*hn(a,i,n,r);case`Literal`:return yield*gn(a,i,n,r);case`Never`:return yield*_n(a,i,n,r);case`Not`:return yield*vn(a,i,n,r);case`Null`:return yield*yn(a,i,n,r);case`Number`:return yield*bn(a,i,n,r);case`Object`:return yield*xn(a,i,n,r);case`Promise`:return yield*Sn(a,i,n,r);case`Record`:return yield*Cn(a,i,n,r);case`Ref`:return yield*wn(a,i,n,r);case`RegExp`:return yield*Tn(a,i,n,r);case`String`:return yield*En(a,i,n,r);case`Symbol`:return yield*Dn(a,i,n,r);case`TemplateLiteral`:return yield*On(a,i,n,r);case`This`:return yield*kn(a,i,n,r);case`Tuple`:return yield*An(a,i,n,r);case`Undefined`:return yield*jn(a,i,n,r);case`Union`:return yield*Mn(a,i,n,r);case`Uint8Array`:return yield*Nn(a,i,n,r);case`Unknown`:return yield*Pn(a,i,n,r);case`Void`:return yield*Fn(a,i,n,r);default:if(!Dt(a[bt]))throw new $t(e);return yield*In(a,i,n,r)}}function Ln(...e){return new tn(e.length===3?J(e[0],e[1],``,e[2]):J(e[0],[],``,e[1]))}var Rn=(e,t)=>{let n=t.get(e);if(n)return n;let r=e.schema();return t.set(e,r),r},zn=e=>e.type===`optional`?zn(e.schema):e.type===`literal`?!0:e.type===`union`?e.schemas.length>0&&e.schemas.every(zn):!1,Bn=(e,t,n,r=new WeakMap)=>{if(fe(t)&&r.get(t)?.has(e))return 1;let i=fe(t);if(i){let n=r.get(t)??new Set;n.add(e),r.set(t,n)}try{if(e.type===`object`){if(!fe(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=Bn(o,s,n,r);return zn(o)?i+(c>0?c*10:0):i+(c>0?c:1)},0)}return e.type===`array`?Array.isArray(t)?1:0:e.type===`record`?fe(t)?1:0:e.type===`optional`?t===void 0?1:Bn(e.schema,t,n,r):e.type===`union`?Math.max(...e.schemas.map(e=>Bn(e,t,n,r))):e.type===`intersection`?e.schemas.length===0?1:e.schemas.reduce((e,i)=>e+Bn(i,t,n,r),0):e.type===`lazy`?Bn(Rn(e,n),t,n,r):e.type===`evaluate`?Bn(e.schema,e.expression(t),n,r):oe(e,t)?1:0}finally{i&&r.get(t)?.delete(e)}},Vn=(e,t,n,r)=>{if(fe(e)||Array.isArray(e)){let i=r.get(e)||new Map;i.set(t,n),r.set(e,i)}},Hn=(e,t,n,r)=>{if((fe(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 oe(e,t)?t:e.default??0;if(e.type===`string`)return oe(e,t)?t:e.default??``;if(e.type===`boolean`)return oe(e,t)?t:e.default??!1;if(e.type===`nullable`)return null;if(e.type===`notDefined`)return;if(e.type===`optional`)return t===void 0?void 0:Hn(e.schema,t,n,r);if(e.type===`array`){if(!Array.isArray(t))return[];let i=Array(t.length);Vn(t,e,i,n);for(let a=0;a<t.length;a++)i[a]=Hn(e.items,t[a],n,r);return i}if(e.type===`record`){if(!fe(t))return{};let i={};Vn(t,e,i,n);for(let a of Object.keys(t))i[a]=Hn(e.value,t[a],n,r);return i}if(e.type===`object`){let i=Object.keys(e.properties),a=fe(t)?t:null,o={};Vn(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]=Hn(i,s,n,r))}return o}if(e.type===`union`)return Hn(e.schemas.reduce((e,n)=>{let i=Bn(n,t,r);return i>e.score?{schema:n,score:i}:e},{schema:e.schemas[0],score:0}).schema,t,n,r);if(e.type===`intersection`)return e.schemas.reduce((e,i)=>Object.assign(e,Hn(i,t,n,r)),{});if(e.type===`literal`)return e.value;if(e.type===`lazy`)return Hn(Rn(e,r),t,n,r);if(e.type===`evaluate`)return Hn(e.schema,e.expression(t),n,r);let i=e;return console.warn(`Unknown schema type:`,i),t};const Un=(e,t,n=new WeakMap,r=new WeakMap)=>Hn(e,t,n,r);var Wn={key:0},Gn={key:1},Kn={key:2},qn={key:3},Jn={key:4},Yn={key:5},Xn=n({name:`ScalarIconArrowUp`,props:{label:{},weight:{}},setup(t){let{bind:n,weight:r}=ue(t);return(t,i)=>(h(),d(`svg`,v({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},_(n)),[y(t.$slots,`default`),_(r)===`bold`?(h(),d(`g`,Wn,[...i[0]||=[c(`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)]])):_(r)===`duotone`?(h(),d(`g`,Gn,[...i[1]||=[c(`path`,{d:`M200,112H56l72-72Z`,opacity:`0.2`},null,-1),c(`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)]])):_(r)===`fill`?(h(),d(`g`,Kn,[...i[2]||=[c(`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)]])):_(r)===`light`?(h(),d(`g`,qn,[...i[3]||=[c(`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)]])):_(r)===`regular`?(h(),d(`g`,Jn,[...i[4]||=[c(`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)]])):_(r)===`thin`?(h(),d(`g`,Yn,[...i[5]||=[c(`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)]])):e(``,!0)],16))}}),Zn={key:0},Qn={key:1},$n={key:2},er={key:3},tr={key:4},nr={key:5},rr=n({name:`ScalarIconLockSimple`,props:{label:{},weight:{}},setup(t){let{bind:n,weight:r}=ue(t);return(t,i)=>(h(),d(`svg`,v({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},_(n)),[y(t.$slots,`default`),_(r)===`bold`?(h(),d(`g`,Zn,[...i[0]||=[c(`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)]])):_(r)===`duotone`?(h(),d(`g`,Qn,[...i[1]||=[c(`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),c(`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)]])):_(r)===`fill`?(h(),d(`g`,$n,[...i[2]||=[c(`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)]])):_(r)===`light`?(h(),d(`g`,er,[...i[3]||=[c(`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)]])):_(r)===`regular`?(h(),d(`g`,tr,[...i[4]||=[c(`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)]])):_(r)===`thin`?(h(),d(`g`,nr,[...i[5]||=[c(`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)]])):e(``,!0)],16))}});const ir={SELECTED_CLIENT:`scalar-reference-selected-client-v2`,AUTH:`scalar-reference-auth`},ar=()=>typeof window>`u`?{getItem:()=>null,setItem:()=>null,removeItem:()=>null}:localStorage;var or={class:`flex items-center flex-1 relative`},sr={key:0,class:`select-none whitespace-nowrap text-transparent`},cr=[`aria-readonly`,`readonly`],lr={key:1,class:`absolute flex items-center inset-0 select-none overflow-hidden whitespace-nowrap`},ur={key:0,class:`text-c-2`},dr={class:`text-transparent`},fr={key:1,class:`text-c-2`},pr=n({inheritAttrs:!1,__name:`ScalarTextInput`,props:g({readonly:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:g([`click`],[`update:modelValue`]),setup(n,{emit:r}){let a=r,s=l(n,`modelValue`),u=p(),{stylingAttrsCx:f,otherAttrs:g}=Pe();m(()=>{`autofocus`in g.value&&u.value?.focus()});function x(e){a(`click`,e),n.readonly?u.value?.select():u.value?.focus()}return(r,a)=>(h(),b(_(dt),v({is:`div`},_(f)(`cursor-text text-c-1`,n.readonly?``:`focus-within:bg-b-1`),{onClick:x}),{default:i(()=>[c(`div`,or,[r.$slots.prefix?(h(),d(`div`,sr,[y(r.$slots,`prefix`)])):e(``,!0),o(c(`input`,v({ref_key:`input`,ref:u,"onUpdate:modelValue":a[0]||=e=>s.value=e,"aria-readonly":n.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:n.readonly},_(g)),null,16,cr),[[t,s.value]]),r.$slots.prefix||r.$slots.suffix?(h(),d(`div`,lr,[r.$slots.prefix?(h(),d(`span`,ur,[y(r.$slots,`prefix`)])):e(``,!0),c(`span`,dr,ee(s.value||r.$attrs.placeholder),1),r.$slots.suffix?(h(),d(`span`,fr,[y(r.$slots,`suffix`)])):e(``,!0)])):e(``,!0)]),y(r.$slots,`aside`)]),_:3},16))}}),mr=n({__name:`ScalarTextInputCopy`,props:g({duration:{default:1500},editable:{type:Boolean},immediate:{type:Boolean}},{modelValue:{},modelModifiers:{},copied:{type:Boolean,default:!1},copiedModifiers:{}}),emits:[`update:modelValue`,`update:copied`],setup(e){m(()=>{e.immediate&&t.value&&o(t.value)});let t=l(e,`modelValue`),n=l(e,`copied`),{copy:o,copied:c}=_t({legacy:!0,copiedDuring:e.duration});return s(c,e=>n.value=e),(s,l)=>(h(),b(pr,{modelValue:t.value,"onUpdate:modelValue":l[1]||=e=>t.value=e,readonly:!e.editable,onClick:l[2]||=e=>t.value&&_(o)(t.value)},{aside:i(()=>[r(_(Ce),{class:`z-1`,copied:n.value||_(c),placement:`left`,onClick:l[0]||=a(e=>t.value&&_(o)(t.value),[`stop`])},u({backdrop:i(()=>[r(_(Kt),{class:`bg-b-1.5`})]),_:2},[s.$slots.copy?{name:`copy`,fn:i(()=>[y(s.$slots,`copy`)]),key:`0`}:void 0,s.$slots.copied?{name:`copied`,fn:i(()=>[y(s.$slots,`copied`)]),key:`1`}:void 0]),1032,[`copied`])]),_:3},8,[`modelValue`,`readonly`]))}});W({name:j({typeComment:"Name of specification extension property. Has to start with `x-`."}),component:z({typeComment:`Vue component to render the specification extension`}),renderer:E(z({typeComment:`Custom renderer to render the specification extension`}))});var hr=W({component:z({typeComment:`Vue component to render in the view`}),renderer:E(z({typeComment:`Custom renderer to render the view component (e.g., ReactRenderer)`})),props:E(R(j(),H()),{typeComment:`Additional props to pass to the component`}),sidebar:E(W({show:V(),label:j()}),{typeComment:`Sidebar configuration. Set show: true to display in sidebar.`})});W({"content.start":E(w(hr),{typeComment:`Components to render before the Introduction/Info section`}),"content.end":E(w(hr),{typeComment:`Components to render at specific views in the API Reference`})}),W({onInit:E(N()),onConfigChange:E(N()),onDestroy:E(N())});const gr=N();var _r=W({dashboardUrl:j({default:`https://dashboard.scalar.com`}),registryUrl:j({default:`https://registry.scalar.com`}),proxyUrl:j({default:`https://proxy.scalar.com`}),apiBaseUrl:j({default:`https://api.scalar.com`})},{typeComment:`External service URLs used by Scalar packages`});const vr=W({title:E(j(),{typeComment:`The title of the OpenAPI document.`}),slug:E(j(),{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:E(H(),{typeComment:`Prefill authentication`}),baseServerURL:E(j(),{typeComment:`Base URL for the API server`}),hideClientButton:V({default:!1,typeComment:`Whether to hide the client button`}),proxyUrl:E(j(),{typeComment:`URL to a request proxy for the API client`}),oauth2RedirectUri:E(j(),{typeComment:`Default OAuth 2.0 redirect URI used to prefill auth flows in the API client.`}),searchHotKey:E(L([M(`a`),M(`b`),M(`c`),M(`d`),M(`e`),M(`f`),M(`g`),M(`h`),M(`i`),M(`j`),M(`k`),M(`l`),M(`m`),M(`n`),M(`o`),M(`p`),M(`q`),M(`r`),M(`s`),M(`t`),M(`u`),M(`v`),M(`w`),M(`x`),M(`y`),M(`z`)]),{typeComment:`Key used with CTRL/CMD to open the search modal (defaults to 'k' e.g. CMD+k)`}),servers:E(w(H()),{typeComment:`List of OpenAPI server objects`}),showSidebar:V({default:!0,typeComment:`Whether to show the sidebar`}),showDeveloperTools:L([M(`localhost`),M(`always`),M(`never`)],{typeComment:`Whether and when to show the developer tools.`}),showToolbar:L([M(`localhost`),M(`always`),M(`never`)],{typeComment:`@deprecated Use showDeveloperTools instead`}),operationTitleSource:L([M(`summary`),M(`path`)],{typeComment:`Whether to use the operation summary or the operation path for the sidebar and search`}),theme:L([M(`default`),M(`alternate`),M(`moon`),M(`purple`),M(`solarized`),M(`bluePlanet`),M(`deepSpace`),M(`saturn`),M(`kepler`),M(`elysiajs`),M(`fastify`),M(`mars`),M(`laserwave`),M(`none`)],{typeComment:`A string to use one of the color presets`}),_integration:E(L([M(`adonisjs`),M(`astro`),M(`docusaurus`),M(`dotnet`),M(`elysiajs`),M(`express`),M(`fastapi`),M(`fastify`),M(`go`),M(`hono`),M(`html`),M(`laravel`),M(`litestar`),M(`nestjs`),M(`nextjs`),M(`nitro`),M(`nuxt`),M(`platformatic`),M(`react`),M(`rust`),M(`svelte`),M(`vue`),he()]),{typeComment:`Integration type identifier`}),onRequestSent:E(N(),{typeComment:`onRequestSent is fired when a request is sent`}),persistAuth:V({default:!1,typeComment:`Whether to persist auth to local storage`}),telemetry:V({default:!0,typeComment:`Enables / disables telemetry`}),externalUrls:_r});var yr=L([j(),he(),R(j(),H()),N()]);const br=P([vr,W({default:V({default:!1}),url:E(j(),{typeComment:`URL to an OpenAPI/Swagger document`}),content:E(yr,{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:E(j(),{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:E(j(),{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:E(W({url:E(j()),content:E(yr)}),{typeComment:"@deprecated Use `url` and `content` on the top level instead."}),agent:E(W({key:E(j()),disabled:E(V()),hideAddApi:E(V(),{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`})}),W({layout:L([M(`modern`),M(`classic`)],{typeComment:`The layout to use for the references`}),proxy:E(j(),{typeComment:`@deprecated Use proxyUrl instead`}),fetch:E(N(),{typeComment:"@deprecated Use `customFetch` instead."}),customFetch:E(N(),{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:E(w(gr),{typeComment:`Plugins for the API reference`}),isEditable:V({default:!1,typeComment:`Allows the user to inject an editor for the spec`}),hideModels:V({default:!1,typeComment:`Whether to show models in the sidebar, search, and content.`}),modelsSectionLabel:E(L([M(`Models`),M(`Schemas`),j()]),{typeComment:"Label for the components.schemas section in the sidebar, content, and search. Use `Schemas` for OpenAPI terminology."}),localization:E(W({locale:E(j()),direction:E(L([M(`auto`),M(`ltr`),M(`rtl`)])),translations:E(R(j(),H()))}),{typeComment:`API Reference UI localization. Select a built-in locale, override labels, and control LTR/RTL rendering.`}),documentDownloadType:L([M(`both`),M(`yaml`),M(`json`),M(`direct`),M(`none`)],{typeComment:"Sets the file type of the document to download, set to `none` to hide the download button"}),hideDownloadButton:E(V(),{typeComment:"@deprecated Use `documentDownloadType: 'none'` instead"}),hideTestRequestButton:V({default:!1,typeComment:`Whether to show the "Test Request" button`}),hideSearch:V({default:!1,typeComment:`Whether to show the sidebar search bar`}),showOperationId:V({default:!1,typeComment:`Whether to show the operationId`}),darkMode:E(V(),{typeComment:`Whether dark mode is on or off initially (light mode)`}),forceDarkModeState:E(L([M(`dark`),M(`light`)]),{typeComment:`forceDarkModeState makes it always this state no matter what`}),hideDarkModeToggle:V({default:!1,typeComment:`Whether to show the dark mode toggle`}),metaData:E(H(),{typeComment:`If used, passed data will be added to the HTML header. @see https://unhead.unjs.io/usage/composables/use-seo-meta`}),favicon:E(j(),{typeComment:`Path to a favicon image`}),hiddenClients:E(L([R(j(),L([V(),w(j())])),w(j()),M(!0)]),{typeComment:"List of httpsnippet clients to hide from the clients menu. By default hides Unirest, pass `[]` to show all clients"}),defaultHttpClient:E(W({targetKey:j(),clientKey:j()}),{typeComment:`Determine the HTTP client that is selected by default`}),customCss:E(j(),{typeComment:`Custom CSS to be added to the page`}),onServerChange:E(N(),{typeComment:`onServerChange is fired on selected server change`}),onDocumentSelect:E(N(),{typeComment:`onDocumentSelect is fired when the config is selected`}),onLoaded:E(N(),{typeComment:`Callback fired when the reference is fully loaded`}),onBeforeRequest:E(N(),{typeComment:`Fired before the outbound request is built; callback receives a mutable request builder. Experimental API.`}),onRequestBuilt:E(N(),{typeComment:`Fired right before the outbound request is sent; callback receives the exact fetch Request that goes over the wire. Experimental API.`}),onShowMore:E(N(),{typeComment:`onShowMore is fired when the user clicks the "Show more" button on the references`}),onSidebarClick:E(N(),{typeComment:`onSidebarClick is fired when the user clicks on a sidebar item`}),pathRouting:E(W({basePath:j()}),{typeComment:`Route using paths instead of hashes, your server MUST support this. @experimental`}),mcp:E(W({name:E(j(),{typeComment:`Display name for the MCP server`}),url:E(j(),{typeComment:`URL of the MCP server`}),disabled:E(V(),{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:E(N(),{typeComment:`Customize the heading portion of the hash`}),generateModelSlug:E(N(),{typeComment:`Customize the model portion of the hash`}),generateTagSlug:E(N(),{typeComment:`Customize the tag portion of the hash`}),generateOperationSlug:E(N(),{typeComment:`Customize the operation portion of the hash`}),generateWebhookSlug:E(N(),{typeComment:`Customize the webhook portion of the hash`}),setPageTitle:E(N(),{typeComment:`Customize the browser tab title for the section currently in view`}),redirect:E(N(),{typeComment:`To handle redirects, pass a function that receives the current path/hash and passes that to history.replaceState`}),withDefaultFonts:V({default:!0,typeComment:`Whether to include default fonts`}),defaultOpenFirstTag:V({default:!0,typeComment:`Whether to expand the first tag in the sidebar when no specific URL target is present`}),defaultOpenAllTags:V({default:!1,typeComment:`Whether to expand all tags by default. Warning: this can cause performance issues on big documents`}),expandAllModelSections:V({default:!1,typeComment:`Whether to expand all models by default. Warning: this can cause performance issues on big documents`}),expandAllResponses:V({default:!1,typeComment:`Whether to expand all responses by default. Warning: this can cause performance issues on big documents`}),expandAllSchemaProperties:V({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:E(L([M(`alpha`),N()]),{typeComment:`Function to sort tags`}),operationsSorter:E(L([M(`alpha`),M(`method`),N()]),{typeComment:`Function to sort operations`}),orderSchemaPropertiesBy:L([M(`alpha`),M(`preserve`)],{typeComment:`Order the schema properties by`}),orderRequiredPropertiesFirst:V({default:!0,typeComment:`Sort the schema properties by required ones first`})})]);var xr=`https://api.scalar.com/request-proxy`,Sr=`https://proxy.scalar.com`;const Cr=e=>{let t=Un(br,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===xr&&(console.warn(`[DEPRECATED] Warning: configuration.proxyUrl points to our old proxy (${xr}).`),console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${Sr}) instead.`),console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${Sr}). Read more: https://github.com/scalar/scalar`),t.proxyUrl=Sr),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??=me,t};W({cdn:j({default:`https://cdn.jsdelivr.net/npm/@scalar/api-reference`}),pageTitle:j({default:`Scalar API Reference`}),nonce:E(j())});const wr=(e,t)=>{let n=performance.now(),r=t(),i=performance.now(),a=Math.round(i-n);return console.info(`${e}: ${a} ms`),r},Tr=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 Er(e){try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`}catch{return!1}}function Dr(e){if(!/^\s*(\{)/.test(e.slice(0,500)))return!1;try{return T(JSON.parse(e))}catch{return!1}}function Or(e){return/^\s*(?:-\s*)?[\w\-]+\s*:\s*.+\n.*/.test(e)}function kr(e){return!Er(e)&&!Or(e)&&!Dr(e)}var Ar=()=>{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:()=>je});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(O(t)(r)&&r.index===e.length)return r.output;throw Error(`Failed to parse at index ${r.indexMax}`)},v=(e,t)=>c(e)?y(e,t):m(e)?b(e,t):ee(e,t),y=(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}},ee=(e,t)=>{let n=e.source,r=e.flags.replace(/y|$/,`y`),i=new RegExp(n,r);return D(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}else return!1})},b=(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}else return!1},x=(e,t,n,r)=>{let i=O(e);return D(te(E(e=>{let r=0;for(;r<n;){let t=e.index;if(!i(e)||(r+=1,e.index===t))break}return r>=t})))},S=(e,t)=>x(e,0,1),C=(e,t)=>x(e,0,1/0),w=(e,t)=>{let n=e.map(O);return D(te(E(e=>{for(let t=0,r=n.length;t<r;t++)if(!n[t](e))return!1;return!0})))},T=(e,t)=>{let n=e.map(O);return D(te(e=>{for(let t=0,r=n.length;t<r;t++)if(n[t](e))return!0;return!1}))},E=(e,t=!1)=>{let n=O(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}},te=(e,t)=>O(e),D=(()=>{let e=0;return t=>{let n=O(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}else return a.set(i,!1),!1}}}})(),ne=e=>{let t;return n=>(t||=O(e()),t(n))},O=g(e=>{if(l(e))return u(e)?ne(e):e;if(m(e)||p(e))return v(e);if(c(e))return w(e);if(f(e))return T(Object.values(e));throw Error(`Invalid rule`)}),k=`abcdefghijklmnopqrstuvwxyz`,re=e=>{let t=``;for(;e>0;)t=k[(e-1)%26]+t,e=Math.floor((e-1)/26);return t},ie=e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t=t*26+k.indexOf(e[n])+1;return t},ae=(e,t)=>{if(t<e)return ae(t,e);let n=[];for(;e<=t;)n.push(e++);return n},A=(e,t,n)=>ae(e,t).map(e=>String(e).padStart(n,`0`)),oe=(e,t)=>ae(ie(e),ie(t)).map(re),se=e=>e,j=e=>ce(t=>_(t,e,{memoization:!1}).join(``)),ce=e=>{let t={};return n=>t[n]??(t[n]=e(n))},M=v(/^\*\*\/\*$/,`.*`),le=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/,(e,t,n)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}`),ue=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/,(e,t,n,r)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}(?:${r.replaceAll(`,`,`|`).replaceAll(`.`,`\\.`)})`),de=v(/\\./,se),fe=v(/[$.*+?^(){}[\]\|]/,e=>`\\${e}`),pe=v(/./,se),me=T([v(/^(?:!!)*!(.*)$/,(e,t)=>`(?!^${Oe(t)}$).*?`),v(/^(!!)+/,``)]),he=T([v(/\/(\*\*\/)+/,`(?:/.+/|/)`),v(/^(\*\*\/)+/,`(?:^|.*/)`),v(/\/(\*\*)$/,`(?:/.*|$)`),v(/\*\*/,`.*`)]),ge=T([v(/\*\/(?!\*\*\/)/,`[^/]*/`),v(/\*/,`[^/]*`)]),_e=v(`?`,`[^/]`),ve=v(`[`,se),N=v(`]`,se),ye=v(/[!^]/,`^/`),be=v(/[a-z]-[a-z]|[0-9]-[0-9]/i,se),xe=T([de,v(/[$.*+?^(){}[\|]/,e=>`\\${e}`),be,v(/[^\]]/,se)]),P=w([ve,S(ye),C(xe),N]),F=v(`{`,`(?:`),Se=v(`}`,`)`),Ce=w([F,T([v(/(\d+)\.\.(\d+)/,(e,t,n)=>A(+t,+n,Math.min(t.length,n.length)).join(`|`)),v(/([a-z]+)\.\.([a-z]+)/,(e,t,n)=>oe(t,n).join(`|`)),v(/([A-Z]+)\.\.([A-Z]+)/,(e,t,n)=>oe(t.toLowerCase(),n.toLowerCase()).join(`|`).toUpperCase())]),Se]),I=v(`{`,`(?:`),we=v(`}`,`)`),Te=v(`,`,`|`),Ee=v(/[$.*+?^(){[\]\|]/,e=>`\\${e}`),De=v(/[^}]/,se),L=w([I,C(T([he,ge,_e,P,Ce,ne(()=>L),de,Ee,Te,De])),we]),Oe=j(C(T([M,le,ue,me,he,ge,_e,P,Ce,L,de,fe,pe]))),R=v(/\\./,se),ke=v(/./,se),z=j(C(T([R,v(/\*\*\*+/,`*`),v(/([^/{[(!])\*\*/,(e,t)=>`${t}*`),v(/(^|.)\*\*(?=[^*/)\]}])/,(e,t)=>`${t}*`),ke]))),Ae=(e,t)=>{let n=Array.isArray(e)?e:[e];if(!n.length)return!1;let r=n.map(Ae.compile),i=n.every(e=>/(\/(?:\*\*)?|\[\/\])$/.test(e)),a=t.replace(/[\\\/]+/g,`/`).replace(/\/$/,i?`/`:``);return r.some(e=>e.test(a))};Ae.compile=e=>RegExp(`^${Oe(z(e))}$`,`s`);var je=Ae;return o(s)})();return e.default||e},jr,Mr=(e,t)=>(jr||(jr=Ar(),Ar=null),jr(e,t)),Nr=/^[A-Za-z]:\//;function Pr(e=``){return e&&e.replace(/\\/g,`/`).replace(Nr,e=>e.toUpperCase())}var Fr=/^[/\\]{2}/,Ir=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Lr=/^[A-Za-z]:$/,Rr=/^\/([A-Za-z]:)?$/,zr=/.(\.[^./]+|\.)$/,Br=/^[/\\]|^[a-zA-Z]:[/\\]/,Vr=function(e){if(e.length===0)return`.`;e=Pr(e);let t=e.match(Fr),n=Kr(e),r=e[e.length-1]===`/`;return e=Gr(e,!n),e.length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),Lr.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!Kr(e)?`/${e}`:e)},Hr=function(...e){let t=``;for(let n of e)if(n)if(t.length>0){let e=t[t.length-1]===`/`,r=n[0]===`/`;e&&r?t+=n.slice(1):t+=e||r?n:`/${n}`}else t+=n;return Vr(t)};function Ur(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var Wr=function(...e){e=e.map(e=>Pr(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:Ur();!i||i.length===0||(t=`${i}/${t}`,n=Kr(i))}return t=Gr(t,!n),n&&!Kr(t)?`/${t}`:t.length>0?t:`.`};function Gr(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}else 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 Kr=function(e){return Ir.test(e)},qr=function(e){return Pr(e)},Jr=function(e){if(e===`..`)return``;let t=zr.exec(Pr(e));return t&&t[1]||``},Yr=function(e,t){let n=Wr(e).replace(Rr,`$1`).split(`/`),r=Wr(t).replace(Rr,`$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(`/`)},Xr=function(e){let t=Pr(e).replace(/\/$/,``).split(`/`).slice(0,-1);return t.length===1&&Lr.test(t[0])&&(t[0]+=`/`),t.join(`/`)||(Kr(e)?`/`:`.`)},Zr=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 Pr(e.root?Wr(...n):n.join(`/`))},Qr=function(e,t){let n=Pr(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},$r={__proto__:null,basename:Qr,dirname:Xr,extname:Jr,format:Zr,isAbsolute:Kr,join:Hr,matchesGlob:(e,t)=>Mr(t,Vr(e)),normalize:Vr,normalizeString:Gr,parse:function(e){let t=Br.exec(e)?.[0]?.replace(/\\/g,`/`)||``,n=Qr(e),r=Jr(n);return{root:t,dir:Xr(e),base:n,ext:r,name:n.slice(0,n.length-r.length)}},relative:Yr,resolve:Wr,sep:`/`,toNamespacedPath:qr},ei=(()=>globalThis.process?.platform===`win32`?`;`:`:`)(),ti={posix:void 0,win32:void 0},ni=(e=ei)=>new Proxy($r,{get(t,n){return n===`delimiter`?e:n===`posix`?Y:n===`win32`?ri:ti[n]||$r[n]}}),Y=ni(`:`),ri=ni(`;`);const ii=(e,t)=>{if(Er(t))return t;if(Er(e)){let n=new URL(e);return n.pathname=Y.posix.resolve(`/`,Y.dirname(n.pathname),t),n.toString()}return Y.resolve(Y.dirname(e),t)};function ai(e){return decodeURI(e.replace(/~1/g,`/`).replace(/~0/g,`~`))}function oi(e){return e.split(`/`).slice(1).map(ai)}function si(e,t,n){if(t===``)throw Error(`Cannot set value at root ('') pointer`);let r=oi(t);r.forEach(e=>Ke(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])}}const ci=(e,t)=>{if(Er(e)&&Er(t)){let n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;let i=Y.dirname(Y.posix.resolve(`/`,r.pathname)),a=Y.posix.resolve(`/`,n.pathname);return Y.posix.relative(i,a)}if(Er(t)){let n=new URL(t),r=Y.dirname(Y.posix.resolve(`/`,n.pathname));return n.pathname=Y.posix.relative(r,Y.posix.resolve(`/`,e)),n.toString()}if(Er(e))return e;let n=Y.dirname(Y.resolve(t)),r=Y.resolve(e);return Y.relative(n,r)};function li(e){let t=Le(e).substring(0,7);return t.match(/^\d+$/)?`a`+t.substring(1):t}async function ui(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?ui(e,t,n,a,i+1):(n[a]=t,a)}const di=(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 ui(e,r,t),o=a.match(/^\d+$/)?`a${a}`:a;return n[r]=o,o}}};var fi=e=>T(e)&&`$ref`in e&&typeof e.$ref==`string`;function pi(e){return e.startsWith(`#`)}function mi(e,t){let n=t.find(t=>t.validate(e));return n?n.exec(e):Promise.resolve({ok:!1})}function hi(e,t){if(!pi(e))throw`Please provide an internal ref`;return`#/${t.map(Bt).join(`/`)}${e.substring(1)}`}function gi(e,t){if(Array.isArray(e)){e.forEach(e=>gi(e,t));return}if(T(e)&&(Object.values(e).forEach(e=>gi(e,t)),typeof e==`object`&&`$ref`in e&&typeof e.$ref==`string`)){let n=e.$ref;if(!pi(n))return;e.$ref=hi(n,t)}}const _i=(e,t,n,r,i,a=!1,o=new Set)=>{let s=ge(t,oi(n)).value;if(o.has(s))return;o.add(s),si(e,n,s);let c=n=>{if(!(!n||typeof n!=`object`)){`$ref`in n&&typeof n.$ref==`string`&&(n.$ref.startsWith(`#/${r}/${Bt(i)}`)||a)&&_i(e,t,n.$ref.substring(1),r,i,a,o);for(let e of Object.values(n))c(e)}};c(s)},vi={externalDocuments:`x-ext`,externalDocumentsMappings:`x-ext-urls`};async function yi(e,t){t.externalDocumentsKey=t.externalDocumentsKey??vi.externalDocuments,t.externalDocumentsMappingsKey=t.externalDocumentsMappingsKey??vi.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 mi(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=xe(o),c=t.root!==void 0&&t.root!==a||t.depth!==void 0,l=t.visitedNodes??new Set,u=(()=>ve(o)||(t.origin?t.origin:typeof e==`string`&&(Er(e)||kr(e))?e:`/`))();o[t.externalDocumentsMappingsKey]===void 0&&(o[t.externalDocumentsMappingsKey]={});let{generate:d}=di(t.compress??li,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||!T(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=ve(e);if(fi(e)){let l=e.$ref,h=`$global`in e&&typeof e.$global==`boolean`&&e.$global,g=ae(l,v??i,s);if(g!==void 0){if(c){let e=oi(`/${g}`),t=e.length>0?ge(o,e.slice(0,-1)).value:void 0,n=ge(o,e);await p(n.value,n.context,a,m+1,e,t)}await f(`onAfterNodeProcess`,e,_);return}let[y,ee=``]=l.split(`#`,2),b=ii(v??i,y),x=ci(b,u),S=await d(x),C=n.has(x);C||n.set(x,mi(b,r)),await f(`onResolveStart`,e);let w=await n.get(x);if(w.ok){C||(h||gi(w.data,[vi.externalDocuments,S]),await p(w.data,h?i:b,h,m+1,[t.externalDocumentsKey,S,o[t.externalDocumentsMappingsKey]]),si(o,`/${t.externalDocumentsMappingsKey}/${Bt(S)}`,x)),t.treeShake===!0?_i(o,{[t.externalDocumentsKey]:{[S]:w.data}},hi(`#${ee}`,[t.externalDocumentsKey,S]).substring(1),t.externalDocumentsKey,S):C||si(o,`/${t.externalDocumentsKey}/${S}`,w.data),e.$ref=hi(`#${ee}`,[t.externalDocumentsKey,S]),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 "${b}". 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 bi=class{data;next;constructor(e){this.data=e,this.next=null}},xi=class{front;rear;size;constructor(){this.front=null,this.rear=null,this.size=0}enqueue(e){let t=new bi(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 Si(e){let t=0,n=new xi,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 Ci=e=>e.startsWith(``)?e.slice(1):e;function wi(e){if(e!==null){if(typeof e==`string`){let t=Ci(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:Jt(t,{maxAliasCount:1e4,merge:!0})}}return e}}var Ti=e=>{try{return new URL(e).host}catch{return null}};async function Ei(e,t,n){try{let r=Ti(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:wi(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 Di(e){let t=e?.limit?Si(e.limit):e=>e();return{type:`loader`,validate:Er,exec:n=>Ei(n,t,e)}}var Oi=class extends Error{constructor(e){super(e),this.name=`InvalidChangesDetectedError`}};const ki=(e,t)=>{let n=(e,t,r,i=0)=>{if(t[i]===void 0)throw new Oi(`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 Oi(`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},Ai=(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};var ji=class{value;children;constructor(e,t){this.value=e,this.children=t}},Mi=class{root;constructor(){this.root=new ji(null,{})}addPath(e,t){let n=this.root;for(let t of e)n.children[t]||(n.children[t]=new ji(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)}};const Ni=(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&&Ni(e[r],t[r]))return!0;return!1}return e!==t},Pi=(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]=Pi(r,i))}return e},Fi=(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},Ii=(e,t)=>{let n=new Mi;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(Fi(s.path,t.changes.path)&&t.changes.type!==`delete`&&!Ni(s.changes,t.changes.changes)){r.add(t.index),typeof s.changes==`object`&&Pi(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 Li(e){if(!(typeof e!=`object`||!e)){if(Array.isArray(e)){for(let t of e)Li(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)&&Li(e[t])}}function Ri(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&&(e.toLowerCase().includes(`nav`)||e.toLowerCase().includes(`navigation`)?t.kind=`nav`:e.toLowerCase().includes(`audience`)?t.kind=`audience`:e.toLowerCase().includes(`badge`)?t.kind=`badge`:t.kind=`nav`)}}delete e[`x-tagGroups`]}}function zi(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 Ri(t),Li(t),t}function Bi(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?Bi(n,t,[...e,r.toString()]):n);continue}if(typeof a==`object`&&a){r[i]=Bi(a,t,e);continue}r[i]=a}return t(r,n)}var Vi=`application/json`;function Hi(e){let t=e[`x-example`],n=e[`x-examples`];return delete e[`x-example`],delete e[`x-examples`],{xExample:t,xExamples:n}}function Ui(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).length>0}function Wi(e){return Ui(e)&&Object.values(e).every(e=>typeof e==`object`&&!!e&&!Array.isArray(e))}function Gi(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 Ki(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&&Gi(t.schema)&&delete e[n]}}var qi=new Set([`summary`,`description`,`value`,`externalValue`]);function Ji(e){if(typeof e!=`object`||!e)return!1;let t=e,n=`value`in t||`externalValue`in t,r=Object.keys(t).every(e=>qi.has(e));return n&&r}function Yi(e){return Ji(e)?e:{value:e}}var Xi=/^[a-zA-Z0-9*+.-]+\/[a-zA-Z0-9*+.+-]+$/;function Zi(e){return Xi.test(e)}function Qi(e){return Object.entries(e).reduce((e,[t,n])=>(e[t]={value:n},e),{})}var $i=e=>{switch(e){case`application`:return`clientCredentials`;case`accessCode`:return`authorizationCode`;case`implicit`:return`implicit`;case`password`:return`password`;default:return e}};function ea(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=Bi(t,e=>(typeof e.$ref==`string`&&e.$ref.startsWith(`#/definitions/`)&&(e.$ref=e.$ref.replace(/^#\/definitions\//,`#/components/schemas/`)),e))),t=Bi(t,e=>(e.type===`file`&&(e.type=`string`,e.format=`binary`),e)),Object.hasOwn(t,`parameters`)){t=Bi(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;r&&typeof r==`object`&&`in`in r&&(r.in===`body`||r.in===`formData`)?e.$ref=e.$ref.replace(/^#\/parameters\//,`#/components/requestBodies/`):e.$ref=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]=ra(a):`in`in a&&(a.in===`body`?n[i]=la(a,t.consumes??[Vi]):a.in===`formData`?n[i]=ua([a],t.consumes):e[i]=ra(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=Bi(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??[Vi];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]??Vi;for(let[t,r]of Object.entries(n.examples))if(Zi(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]=Yi(r)}delete n.examples}n.content&&typeof n.content==`object`&&Ki(n.content),n.headers&&typeof n.headers==`object`&&(n.headers=Object.entries(n.headers).reduce((e,[t,n])=>n&&typeof n==`object`?{[t]:ia(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=da(n.parameters,t.consumes??[Vi]);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=da(i.parameters,i.consumes??t.consumes??[Vi]);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]:ia(n),...e}:e,{})),n.schema){let e=t.produces??i.produces??[Vi];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??[Vi])[0]??Vi;for(let[t,r]of Object.entries(n.examples))if(Zi(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]=Yi(r)}delete n.examples}n.content&&typeof n.content==`object`&&Ki(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:{[$i(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 ta(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 na(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 ra(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=ca(e),n=ta(e),{xExample:r,xExamples:i}=Hi(e);if(Ui(r)?e.examples=Qi(r):Ui(i)&&(e.examples=Object.entries(i).reduce((e,[t,n])=>(e[t]=Yi(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:na(e.in)}}function ia(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=ta(e);return{...e,schema:t}}var aa={ssv:{style:`spaceDelimited`,explode:!1},pipes:{style:`pipeDelimited`,explode:!1},multi:{style:`form`,explode:!0},csv:{style:`form`,explode:!1},tsv:{}},oa={ssv:{},pipes:{},multi:{},csv:{style:`simple`,explode:!1},tsv:{}},sa={header:oa,query:aa,path:oa};function ca(e){if(e.type!==`array`||!(e.in===`query`||e.in===`path`||e.in===`header`))return{};let t=e.collectionFormat??`csv`;return e.in in sa&&t in sa[e.in]?sa[e.in][t]:{}}function la(e,t){let{xExample:n,xExamples:r}=Hi(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},Ui(r)&&e in r){let t=r[e];Ui(t)&&Object.values(t).every(e=>Ji(e))?o.content[e].examples=t:Wi(t)?o.content[e].examples=Object.entries(t).reduce((e,[t,n])=>(e[t]=Yi(n),e),{}):o.content[e].examples={default:Yi(t)}}else Ui(r)&&!Object.keys(r).some(Zi)&&(o.content[e].examples=Object.entries(r).reduce((e,[t,n])=>(e[t]=Yi(n),e),{}));!o.content[e].examples&&Ui(n)&&e in n&&(o.content[e].example=n[e])}return o}function ua(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 da(e,t){let n={parameters:e.filter(e=>!(e.in===`body`||e.in===`formData`)).map(e=>ra(e))},r=structuredClone(e.find(e=>e.in===`body`)??{});r&&Object.keys(r).length&&(n.requestBody=la(r,t));let i=e.filter(e=>e.in===`formData`);if(i.length>0){let e=ua(i,t);typeof n.requestBody==`object`?n.requestBody={...n.requestBody,content:{...n.requestBody.content,...e.content}}:n.requestBody=e,typeof n.requestBody!=`object`&&(n.requestBody={content:{}})}return n}var fa=new Set([`properties`,`items`,`allOf`,`anyOf`,`oneOf`,`not`,`additionalProperties`,`schema`]);function pa(e){return e?!!(e.some(e=>fa.has(e))||e.some(e=>e.endsWith(`Schema`))||e.length>=2&&e[0]===`components`&&e[1]===`schemas`):!1}function ma(e){let t=e;return t===null||typeof t.openapi!=`string`||!t.openapi.startsWith(`3.0`)?t:(t.openapi=`3.1.1`,t=Bi(t,ha),t)}var ha=(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`:!1);if(e.example!==void 0&&!n&&(pa(t)?e.examples=[e.example]:e.examples={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 ga(e,t){let n=ea(e);if(t===`3.0`)return n;let r=ma(n);return t===`3.1`?r:zi(r)}var _a="```";const va=(e,t)=>`${_a}${e}\n${t.trimEnd()}\n${_a}`,ya=(e,t)=>`@example\n${va(e,t)}`,ba=e=>`\`${e}\``,xa=(...e)=>e.join(`
1
+ import{Br as e,Er as t,Jr as n,Kr as r,Mi as i,Mr as a,Ni as o,Oi as s,Rr as c,Ti as l,Ur as u,Vr as d,Yi as f,Zi as p,di as m,hi as h,ni as g,oa as _,ri as v,vi as y,zi as ee,zr as b}from"./index-Dl-HyfHx.js";import{$i as x,$r as S,Aa as C,Ai as w,Ba as T,Bi as E,Br as te,Ca as D,Ci as ne,D as O,Da as k,Di as re,Ei as ie,Fa as ae,Fi as A,Gi as oe,Gr as se,Hi as j,Hr as ce,Ii as M,Ji as le,Jn as ue,Jr as de,Ki as fe,Kr as pe,La as me,Li as he,Ma as ge,Mi as _e,Na as ve,Ni as N,Oa as ye,Oi as be,Pa as xe,Pi as P,Qi as F,Qr as Se,R as Ce,Ri as I,S as we,Sa as Te,Si as Ee,Ti as De,Ui as L,Ur as Oe,Vi as R,Vr as ke,Wi as z,Wr as Ae,Xi as je,Xr as Me,Yi as Ne,Yn as Pe,Yr as Fe,Zi as B,Zr as Ie,_ as Le,_a as Re,_i as ze,aa as Be,ai as Ve,ar as He,b as Ue,ba as We,bi as Ge,br as Ke,ca as qe,ci as Je,da as Ye,di as Xe,dt as Ze,ea as Qe,ei as $e,fa as et,fi as tt,ga as nt,gi as rt,ha as it,hi as at,ia as ot,ii as st,ja as ct,ji as V,jr as lt,ka as ut,ki as H,kt as dt,la as ft,li as pt,lt as mt,ma as ht,mi as gt,mt as _t,na as vt,ni as yt,oa as bt,oi as xt,or as U,pa as St,pi as Ct,qi as wt,qr as Tt,r as Et,ra as Dt,ri as Ot,sa as kt,si as At,ta as jt,ti as Mt,ua as Nt,ui as Pt,ut as Ft,va as It,vi as Lt,vr as Rt,wi as zt,x as Bt,xa as Vt,xi as Ht,ya as Ut,yi as Wt,yr as Gt,z as Kt,zi as W,zr as qt}from"./add-scalar-classes-DGwycuRW.js";import{n as Jt,t as Yt}from"./browser-DJeF2lho.js";function Xt(e){switch(e.errorType){case G.ArrayContains:return`Expected array to contain at least one matching value`;case G.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case G.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case G.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case G.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case G.ArrayUniqueItems:return`Expected array elements to be unique`;case G.Array:return`Expected array`;case G.AsyncIterator:return`Expected AsyncIterator`;case G.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case G.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case G.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case G.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case G.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case G.BigInt:return`Expected bigint`;case G.Boolean:return`Expected boolean`;case G.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case G.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case G.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case G.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case G.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case G.Date:return`Expected Date`;case G.Function:return`Expected function`;case G.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case G.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case G.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case G.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case G.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case G.Integer:return`Expected integer`;case G.IntersectUnevaluatedProperties:return`Unexpected property`;case G.Intersect:return`Expected all values to match`;case G.Iterator:return`Expected Iterator`;case G.Literal:return`Expected ${typeof e.schema.const==`string`?`'${e.schema.const}'`:e.schema.const}`;case G.Never:return`Never`;case G.Not:return`Value should not match`;case G.Null:return`Expected null`;case G.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case G.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case G.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case G.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case G.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case G.Number:return`Expected number`;case G.Object:return`Expected object`;case G.ObjectAdditionalProperties:return`Unexpected property`;case G.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case G.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case G.ObjectRequiredProperty:return`Expected required property`;case G.Promise:return`Expected Promise`;case G.RegExp:return`Expected string to match regular expression`;case G.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case G.StringFormat:return`Expected string to match '${e.schema.format}' format`;case G.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case G.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case G.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case G.String:return`Expected string`;case G.Symbol:return`Expected symbol`;case G.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case G.Tuple:return`Expected tuple`;case G.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case G.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case G.Uint8Array:return`Expected Uint8Array`;case G.Undefined:return`Expected undefined`;case G.Union:return`Expected union value`;case G.Void:return`Expected void`;case G.Kind:return`Expected kind '${e.schema[bt]}'`;default:return`Unknown error type`}}var Zt=Xt;function Qt(){return Zt}var G;(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`})(G||={});var $t=class extends kt{constructor(e){super(`Unknown type`),this.schema=e}};function en(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function K(e){return e!==void 0}var tn=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 q(e,t,n,r,i=[]){return{type:e,schema:t,path:n,value:r,message:Qt()({errorType:e,path:n,schema:t,value:r,errors:i}),errors:i}}function*nn(e,t,n,r){}function*rn(e,t,n,r){}function*an(e,t,n,r){if(!ft(r))return yield q(G.Array,e,n,r);K(e.minItems)&&!(r.length>=e.minItems)&&(yield q(G.ArrayMinItems,e,n,r)),K(e.maxItems)&&!(r.length<=e.maxItems)&&(yield q(G.ArrayMaxItems,e,n,r));for(let i=0;i<r.length;i++)yield*J(e.items,t,`${n}/${i}`,r[i]);if(e.uniqueItems===!0&&!(function(){let e=new Set;for(let t of r){let n=je(t);if(e.has(n))return!1;e.add(n)}return!0})()&&(yield q(G.ArrayUniqueItems,e,n,r)),!(K(e.contains)||K(e.minContains)||K(e.maxContains)))return;let i=K(e.contains)?e.contains:jt(),a=r.reduce((e,r,a)=>J(i,t,`${n}${a}`,r).next().done===!0?e+1:e,0);a===0&&(yield q(G.ArrayContains,e,n,r)),It(e.minContains)&&a<e.minContains&&(yield q(G.ArrayMinContains,e,n,r)),It(e.maxContains)&&a>e.maxContains&&(yield q(G.ArrayMaxContains,e,n,r))}function*on(e,t,n,r){Nt(r)||(yield q(G.AsyncIterator,e,n,r))}function*sn(e,t,n,r){if(!Ye(r))return yield q(G.BigInt,e,n,r);K(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)&&(yield q(G.BigIntExclusiveMaximum,e,n,r)),K(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)&&(yield q(G.BigIntExclusiveMinimum,e,n,r)),K(e.maximum)&&!(r<=e.maximum)&&(yield q(G.BigIntMaximum,e,n,r)),K(e.minimum)&&!(r>=e.minimum)&&(yield q(G.BigIntMinimum,e,n,r)),K(e.multipleOf)&&r%e.multipleOf!==BigInt(0)&&(yield q(G.BigIntMultipleOf,e,n,r))}function*cn(e,t,n,r){et(r)||(yield q(G.Boolean,e,n,r))}function*ln(e,t,n,r){yield*J(e.returns,t,n,r.prototype)}function*un(e,t,n,r){if(!St(r))return yield q(G.Date,e,n,r);K(e.exclusiveMaximumTimestamp)&&!(r.getTime()<e.exclusiveMaximumTimestamp)&&(yield q(G.DateExclusiveMaximumTimestamp,e,n,r)),K(e.exclusiveMinimumTimestamp)&&!(r.getTime()>e.exclusiveMinimumTimestamp)&&(yield q(G.DateExclusiveMinimumTimestamp,e,n,r)),K(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)&&(yield q(G.DateMaximumTimestamp,e,n,r)),K(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)&&(yield q(G.DateMinimumTimestamp,e,n,r)),K(e.multipleOfTimestamp)&&r.getTime()%e.multipleOfTimestamp!==0&&(yield q(G.DateMultipleOfTimestamp,e,n,r))}function*dn(e,t,n,r){ht(r)||(yield q(G.Function,e,n,r))}function*fn(e,t,n,r){let i=globalThis.Object.values(e.$defs),a=e.$defs[e.$ref];yield*J(a,[...t,...i],n,r)}function*pn(e,t,n,r){if(!it(r))return yield q(G.Integer,e,n,r);K(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)&&(yield q(G.IntegerExclusiveMaximum,e,n,r)),K(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)&&(yield q(G.IntegerExclusiveMinimum,e,n,r)),K(e.maximum)&&!(r<=e.maximum)&&(yield q(G.IntegerMaximum,e,n,r)),K(e.minimum)&&!(r>=e.minimum)&&(yield q(G.IntegerMinimum,e,n,r)),K(e.multipleOf)&&r%e.multipleOf!==0&&(yield q(G.IntegerMultipleOf,e,n,r))}function*mn(e,t,n,r){let i=!1;for(let a of e.allOf)for(let e of J(a,t,n,r))i=!0,yield e;if(i)return yield q(G.Intersect,e,n,r);if(e.unevaluatedProperties===!1){let t=new RegExp(Qe(e));for(let i of Object.getOwnPropertyNames(r))t.test(i)||(yield q(G.IntersectUnevaluatedProperties,e,`${n}/${i}`,r))}if(typeof e.unevaluatedProperties==`object`){let i=new RegExp(Qe(e));for(let a of Object.getOwnPropertyNames(r))if(!i.test(a)){let i=J(e.unevaluatedProperties,t,`${n}/${a}`,r[a]).next();i.done||(yield i.value)}}}function*hn(e,t,n,r){nt(r)||(yield q(G.Iterator,e,n,r))}function*gn(e,t,n,r){r!==e.const&&(yield q(G.Literal,e,n,r))}function*_n(e,t,n,r){yield q(G.Never,e,n,r)}function*vn(e,t,n,r){J(e.not,t,n,r).next().done===!0&&(yield q(G.Not,e,n,r))}function*yn(e,t,n,r){Re(r)||(yield q(G.Null,e,n,r))}function*bn(e,t,n,r){if(!qe.IsNumberLike(r))return yield q(G.Number,e,n,r);K(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)&&(yield q(G.NumberExclusiveMaximum,e,n,r)),K(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)&&(yield q(G.NumberExclusiveMinimum,e,n,r)),K(e.maximum)&&!(r<=e.maximum)&&(yield q(G.NumberMaximum,e,n,r)),K(e.minimum)&&!(r>=e.minimum)&&(yield q(G.NumberMinimum,e,n,r)),K(e.multipleOf)&&r%e.multipleOf!==0&&(yield q(G.NumberMultipleOf,e,n,r))}function*xn(e,t,n,r){if(!qe.IsObjectLike(r))return yield q(G.Object,e,n,r);K(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)&&(yield q(G.ObjectMinProperties,e,n,r)),K(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)&&(yield q(G.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(G.ObjectRequiredProperty,e.properties[t],`${n}/${en(t)}`,void 0));if(e.additionalProperties===!1)for(let t of o)a.includes(t)||(yield q(G.ObjectAdditionalProperties,e,`${n}/${en(t)}`,r[t]));if(typeof e.additionalProperties==`object`)for(let i of o)a.includes(i)||(yield*J(e.additionalProperties,t,`${n}/${en(i)}`,r[i]));for(let i of a){let a=e.properties[i];e.required&&e.required.includes(i)?(yield*J(a,t,`${n}/${en(i)}`,r[i]),x(e)&&!(i in r)&&(yield q(G.ObjectRequiredProperty,a,`${n}/${en(i)}`,void 0))):qe.IsExactOptionalProperty(r,i)&&(yield*J(a,t,`${n}/${en(i)}`,r[i]))}}function*Sn(e,t,n,r){Ut(r)||(yield q(G.Promise,e,n,r))}function*Cn(e,t,n,r){if(!qe.IsRecordLike(r))return yield q(G.Object,e,n,r);K(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)&&(yield q(G.ObjectMinProperties,e,n,r)),K(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)&&(yield q(G.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*J(a,t,`${n}/${en(e)}`,i));if(typeof e.additionalProperties==`object`)for(let[i,a]of Object.entries(r))o.test(i)||(yield*J(e.additionalProperties,t,`${n}/${en(i)}`,a));if(e.additionalProperties===!1){for(let[t,i]of Object.entries(r))if(!o.test(t))return yield q(G.ObjectAdditionalProperties,e,`${n}/${en(t)}`,i)}}function*wn(e,t,n,r){yield*J(B(e,t),t,n,r)}function*Tn(e,t,n,r){if(!We(r))return yield q(G.String,e,n,r);if(K(e.minLength)&&!(r.length>=e.minLength)&&(yield q(G.StringMinLength,e,n,r)),K(e.maxLength)&&!(r.length<=e.maxLength)&&(yield q(G.StringMaxLength,e,n,r)),!new RegExp(e.source,e.flags).test(r))return yield q(G.RegExp,e,n,r)}function*En(e,t,n,r){if(!We(r))return yield q(G.String,e,n,r);K(e.minLength)&&!(r.length>=e.minLength)&&(yield q(G.StringMinLength,e,n,r)),K(e.maxLength)&&!(r.length<=e.maxLength)&&(yield q(G.StringMaxLength,e,n,r)),We(e.pattern)&&(new RegExp(e.pattern).test(r)||(yield q(G.StringPattern,e,n,r))),We(e.format)&&(Be(e.format)?ot(e.format)(r)||(yield q(G.StringFormat,e,n,r)):yield q(G.StringFormatUnknown,e,n,r))}function*Dn(e,t,n,r){Vt(r)||(yield q(G.Symbol,e,n,r))}function*On(e,t,n,r){if(!We(r))return yield q(G.String,e,n,r);new RegExp(e.pattern).test(r)||(yield q(G.StringPattern,e,n,r))}function*kn(e,t,n,r){yield*J(B(e,t),t,n,r)}function*An(e,t,n,r){if(!ft(r))return yield q(G.Tuple,e,n,r);if(e.items===void 0&&r.length!==0||r.length!==e.maxItems)return yield q(G.TupleLength,e,n,r);if(e.items)for(let i=0;i<e.items.length;i++)yield*J(e.items[i],t,`${n}/${i}`,r[i])}function*jn(e,t,n,r){D(r)||(yield q(G.Undefined,e,n,r))}function*Mn(e,t,n,r){if(Ne(e,t,r))return;let i=e.anyOf.map(e=>new tn(J(e,t,n,r)));yield q(G.Union,e,n,r,i)}function*Nn(e,t,n,r){if(!Te(r))return yield q(G.Uint8Array,e,n,r);K(e.maxByteLength)&&!(r.length<=e.maxByteLength)&&(yield q(G.Uint8ArrayMaxByteLength,e,n,r)),K(e.minByteLength)&&!(r.length>=e.minByteLength)&&(yield q(G.Uint8ArrayMinByteLength,e,n,r))}function*Pn(e,t,n,r){}function*Fn(e,t,n,r){qe.IsVoidLike(r)||(yield q(G.Void,e,n,r))}function*In(e,t,n,r){vt(e[bt])(e,r)||(yield q(G.Kind,e,n,r))}function*J(e,t,n,r){let i=K(e.$id)?[...t,e]:t,a=e;switch(a[bt]){case`Any`:return yield*nn(a,i,n,r);case`Argument`:return yield*rn(a,i,n,r);case`Array`:return yield*an(a,i,n,r);case`AsyncIterator`:return yield*on(a,i,n,r);case`BigInt`:return yield*sn(a,i,n,r);case`Boolean`:return yield*cn(a,i,n,r);case`Constructor`:return yield*ln(a,i,n,r);case`Date`:return yield*un(a,i,n,r);case`Function`:return yield*dn(a,i,n,r);case`Import`:return yield*fn(a,i,n,r);case`Integer`:return yield*pn(a,i,n,r);case`Intersect`:return yield*mn(a,i,n,r);case`Iterator`:return yield*hn(a,i,n,r);case`Literal`:return yield*gn(a,i,n,r);case`Never`:return yield*_n(a,i,n,r);case`Not`:return yield*vn(a,i,n,r);case`Null`:return yield*yn(a,i,n,r);case`Number`:return yield*bn(a,i,n,r);case`Object`:return yield*xn(a,i,n,r);case`Promise`:return yield*Sn(a,i,n,r);case`Record`:return yield*Cn(a,i,n,r);case`Ref`:return yield*wn(a,i,n,r);case`RegExp`:return yield*Tn(a,i,n,r);case`String`:return yield*En(a,i,n,r);case`Symbol`:return yield*Dn(a,i,n,r);case`TemplateLiteral`:return yield*On(a,i,n,r);case`This`:return yield*kn(a,i,n,r);case`Tuple`:return yield*An(a,i,n,r);case`Undefined`:return yield*jn(a,i,n,r);case`Union`:return yield*Mn(a,i,n,r);case`Uint8Array`:return yield*Nn(a,i,n,r);case`Unknown`:return yield*Pn(a,i,n,r);case`Void`:return yield*Fn(a,i,n,r);default:if(!Dt(a[bt]))throw new $t(e);return yield*In(a,i,n,r)}}function Ln(...e){return new tn(e.length===3?J(e[0],e[1],``,e[2]):J(e[0],[],``,e[1]))}var Rn=(e,t)=>{let n=t.get(e);if(n)return n;let r=e.schema();return t.set(e,r),r},zn=e=>e.type===`optional`?zn(e.schema):e.type===`literal`?!0:e.type===`union`?e.schemas.length>0&&e.schemas.every(zn):!1,Bn=(e,t,n,r=new WeakMap)=>{if(fe(t)&&r.get(t)?.has(e))return 1;let i=fe(t);if(i){let n=r.get(t)??new Set;n.add(e),r.set(t,n)}try{if(e.type===`object`){if(!fe(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=Bn(o,s,n,r);return zn(o)?i+(c>0?c*10:0):i+(c>0?c:1)},0)}return e.type===`array`?Array.isArray(t)?1:0:e.type===`record`?fe(t)?1:0:e.type===`optional`?t===void 0?1:Bn(e.schema,t,n,r):e.type===`union`?Math.max(...e.schemas.map(e=>Bn(e,t,n,r))):e.type===`intersection`?e.schemas.length===0?1:e.schemas.reduce((e,i)=>e+Bn(i,t,n,r),0):e.type===`lazy`?Bn(Rn(e,n),t,n,r):e.type===`evaluate`?Bn(e.schema,e.expression(t),n,r):oe(e,t)?1:0}finally{i&&r.get(t)?.delete(e)}},Vn=(e,t,n,r)=>{if(fe(e)||Array.isArray(e)){let i=r.get(e)||new Map;i.set(t,n),r.set(e,i)}},Hn=(e,t,n,r)=>{if((fe(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 oe(e,t)?t:e.default??0;if(e.type===`string`)return oe(e,t)?t:e.default??``;if(e.type===`boolean`)return oe(e,t)?t:e.default??!1;if(e.type===`nullable`)return null;if(e.type===`notDefined`)return;if(e.type===`optional`)return t===void 0?void 0:Hn(e.schema,t,n,r);if(e.type===`array`){if(!Array.isArray(t))return[];let i=Array(t.length);Vn(t,e,i,n);for(let a=0;a<t.length;a++)i[a]=Hn(e.items,t[a],n,r);return i}if(e.type===`record`){if(!fe(t))return{};let i={};Vn(t,e,i,n);for(let a of Object.keys(t))i[a]=Hn(e.value,t[a],n,r);return i}if(e.type===`object`){let i=Object.keys(e.properties),a=fe(t)?t:null,o={};Vn(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]=Hn(i,s,n,r))}return o}if(e.type===`union`)return Hn(e.schemas.reduce((e,n)=>{let i=Bn(n,t,r);return i>e.score?{schema:n,score:i}:e},{schema:e.schemas[0],score:0}).schema,t,n,r);if(e.type===`intersection`)return e.schemas.reduce((e,i)=>Object.assign(e,Hn(i,t,n,r)),{});if(e.type===`literal`)return e.value;if(e.type===`lazy`)return Hn(Rn(e,r),t,n,r);if(e.type===`evaluate`)return Hn(e.schema,e.expression(t),n,r);let i=e;return console.warn(`Unknown schema type:`,i),t};const Un=(e,t,n=new WeakMap,r=new WeakMap)=>Hn(e,t,n,r);var Wn={key:0},Gn={key:1},Kn={key:2},qn={key:3},Jn={key:4},Yn={key:5},Xn=n({name:`ScalarIconArrowUp`,props:{label:{},weight:{}},setup(t){let{bind:n,weight:r}=ue(t);return(t,i)=>(h(),d(`svg`,v({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},_(n)),[y(t.$slots,`default`),_(r)===`bold`?(h(),d(`g`,Wn,[...i[0]||=[c(`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)]])):_(r)===`duotone`?(h(),d(`g`,Gn,[...i[1]||=[c(`path`,{d:`M200,112H56l72-72Z`,opacity:`0.2`},null,-1),c(`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)]])):_(r)===`fill`?(h(),d(`g`,Kn,[...i[2]||=[c(`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)]])):_(r)===`light`?(h(),d(`g`,qn,[...i[3]||=[c(`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)]])):_(r)===`regular`?(h(),d(`g`,Jn,[...i[4]||=[c(`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)]])):_(r)===`thin`?(h(),d(`g`,Yn,[...i[5]||=[c(`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)]])):e(``,!0)],16))}}),Zn={key:0},Qn={key:1},$n={key:2},er={key:3},tr={key:4},nr={key:5},rr=n({name:`ScalarIconLockSimple`,props:{label:{},weight:{}},setup(t){let{bind:n,weight:r}=ue(t);return(t,i)=>(h(),d(`svg`,v({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},_(n)),[y(t.$slots,`default`),_(r)===`bold`?(h(),d(`g`,Zn,[...i[0]||=[c(`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)]])):_(r)===`duotone`?(h(),d(`g`,Qn,[...i[1]||=[c(`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),c(`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)]])):_(r)===`fill`?(h(),d(`g`,$n,[...i[2]||=[c(`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)]])):_(r)===`light`?(h(),d(`g`,er,[...i[3]||=[c(`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)]])):_(r)===`regular`?(h(),d(`g`,tr,[...i[4]||=[c(`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)]])):_(r)===`thin`?(h(),d(`g`,nr,[...i[5]||=[c(`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)]])):e(``,!0)],16))}});const ir={SELECTED_CLIENT:`scalar-reference-selected-client-v2`,AUTH:`scalar-reference-auth`},ar=()=>typeof window>`u`?{getItem:()=>null,setItem:()=>null,removeItem:()=>null}:localStorage;var or={class:`flex items-center flex-1 relative`},sr={key:0,class:`select-none whitespace-nowrap text-transparent`},cr=[`aria-readonly`,`readonly`],lr={key:1,class:`absolute flex items-center inset-0 select-none overflow-hidden whitespace-nowrap`},ur={key:0,class:`text-c-2`},dr={class:`text-transparent`},fr={key:1,class:`text-c-2`},pr=n({inheritAttrs:!1,__name:`ScalarTextInput`,props:g({readonly:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:g([`click`],[`update:modelValue`]),setup(n,{emit:r}){let a=r,s=l(n,`modelValue`),u=p(),{stylingAttrsCx:f,otherAttrs:g}=Pe();m(()=>{`autofocus`in g.value&&u.value?.focus()});function x(e){a(`click`,e),n.readonly?u.value?.select():u.value?.focus()}return(r,a)=>(h(),b(_(dt),v({is:`div`},_(f)(`cursor-text text-c-1`,n.readonly?``:`focus-within:bg-b-1`),{onClick:x}),{default:i(()=>[c(`div`,or,[r.$slots.prefix?(h(),d(`div`,sr,[y(r.$slots,`prefix`)])):e(``,!0),o(c(`input`,v({ref_key:`input`,ref:u,"onUpdate:modelValue":a[0]||=e=>s.value=e,"aria-readonly":n.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:n.readonly},_(g)),null,16,cr),[[t,s.value]]),r.$slots.prefix||r.$slots.suffix?(h(),d(`div`,lr,[r.$slots.prefix?(h(),d(`span`,ur,[y(r.$slots,`prefix`)])):e(``,!0),c(`span`,dr,ee(s.value||r.$attrs.placeholder),1),r.$slots.suffix?(h(),d(`span`,fr,[y(r.$slots,`suffix`)])):e(``,!0)])):e(``,!0)]),y(r.$slots,`aside`)]),_:3},16))}}),mr=n({__name:`ScalarTextInputCopy`,props:g({duration:{default:1500},editable:{type:Boolean},immediate:{type:Boolean}},{modelValue:{},modelModifiers:{},copied:{type:Boolean,default:!1},copiedModifiers:{}}),emits:[`update:modelValue`,`update:copied`],setup(e){m(()=>{e.immediate&&t.value&&o(t.value)});let t=l(e,`modelValue`),n=l(e,`copied`),{copy:o,copied:c}=_t({legacy:!0,copiedDuring:e.duration});return s(c,e=>n.value=e),(s,l)=>(h(),b(pr,{modelValue:t.value,"onUpdate:modelValue":l[1]||=e=>t.value=e,readonly:!e.editable,onClick:l[2]||=e=>t.value&&_(o)(t.value)},{aside:i(()=>[r(_(Ce),{class:`z-1`,copied:n.value||_(c),placement:`left`,onClick:l[0]||=a(e=>t.value&&_(o)(t.value),[`stop`])},u({backdrop:i(()=>[r(_(Kt),{class:`bg-b-1.5`})]),_:2},[s.$slots.copy?{name:`copy`,fn:i(()=>[y(s.$slots,`copy`)]),key:`0`}:void 0,s.$slots.copied?{name:`copied`,fn:i(()=>[y(s.$slots,`copied`)]),key:`1`}:void 0]),1032,[`copied`])]),_:3},8,[`modelValue`,`readonly`]))}});W({name:j({typeComment:"Name of specification extension property. Has to start with `x-`."}),component:z({typeComment:`Vue component to render the specification extension`}),renderer:E(z({typeComment:`Custom renderer to render the specification extension`}))});var hr=W({component:z({typeComment:`Vue component to render in the view`}),renderer:E(z({typeComment:`Custom renderer to render the view component (e.g., ReactRenderer)`})),props:E(R(j(),H()),{typeComment:`Additional props to pass to the component`}),sidebar:E(W({show:V(),label:j()}),{typeComment:`Sidebar configuration. Set show: true to display in sidebar.`})});W({"content.start":E(w(hr),{typeComment:`Components to render before the Introduction/Info section`}),"content.end":E(w(hr),{typeComment:`Components to render at specific views in the API Reference`})}),W({onInit:E(N()),onConfigChange:E(N()),onDestroy:E(N())});const gr=N();var _r=W({dashboardUrl:j({default:`https://dashboard.scalar.com`}),registryUrl:j({default:`https://registry.scalar.com`}),proxyUrl:j({default:`https://proxy.scalar.com`}),apiBaseUrl:j({default:`https://api.scalar.com`})},{typeComment:`External service URLs used by Scalar packages`});const vr=W({title:E(j(),{typeComment:`The title of the OpenAPI document.`}),slug:E(j(),{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:E(H(),{typeComment:`Prefill authentication`}),baseServerURL:E(j(),{typeComment:`Base URL for the API server`}),hideClientButton:V({default:!1,typeComment:`Whether to hide the client button`}),proxyUrl:E(j(),{typeComment:`URL to a request proxy for the API client`}),oauth2RedirectUri:E(j(),{typeComment:`Default OAuth 2.0 redirect URI used to prefill auth flows in the API client.`}),searchHotKey:E(L([M(`a`),M(`b`),M(`c`),M(`d`),M(`e`),M(`f`),M(`g`),M(`h`),M(`i`),M(`j`),M(`k`),M(`l`),M(`m`),M(`n`),M(`o`),M(`p`),M(`q`),M(`r`),M(`s`),M(`t`),M(`u`),M(`v`),M(`w`),M(`x`),M(`y`),M(`z`)]),{typeComment:`Key used with CTRL/CMD to open the search modal (defaults to 'k' e.g. CMD+k)`}),servers:E(w(H()),{typeComment:`List of OpenAPI server objects`}),showSidebar:V({default:!0,typeComment:`Whether to show the sidebar`}),showDeveloperTools:L([M(`localhost`),M(`always`),M(`never`)],{typeComment:`Whether and when to show the developer tools.`}),showToolbar:L([M(`localhost`),M(`always`),M(`never`)],{typeComment:`@deprecated Use showDeveloperTools instead`}),operationTitleSource:L([M(`summary`),M(`path`)],{typeComment:`Whether to use the operation summary or the operation path for the sidebar and search`}),theme:L([M(`default`),M(`alternate`),M(`moon`),M(`purple`),M(`solarized`),M(`bluePlanet`),M(`deepSpace`),M(`saturn`),M(`kepler`),M(`elysiajs`),M(`fastify`),M(`mars`),M(`laserwave`),M(`none`)],{typeComment:`A string to use one of the color presets`}),_integration:E(L([M(`adonisjs`),M(`astro`),M(`docusaurus`),M(`dotnet`),M(`elysiajs`),M(`express`),M(`fastapi`),M(`fastify`),M(`go`),M(`hono`),M(`html`),M(`laravel`),M(`litestar`),M(`nestjs`),M(`nextjs`),M(`nitro`),M(`nuxt`),M(`platformatic`),M(`react`),M(`rust`),M(`svelte`),M(`vue`),he()]),{typeComment:`Integration type identifier`}),onRequestSent:E(N(),{typeComment:`onRequestSent is fired when a request is sent`}),persistAuth:V({default:!1,typeComment:`Whether to persist auth to local storage`}),telemetry:V({default:!0,typeComment:`Enables / disables telemetry`}),externalUrls:_r});var yr=L([j(),he(),R(j(),H()),N()]);const br=P([vr,W({default:V({default:!1}),url:E(j(),{typeComment:`URL to an OpenAPI/Swagger document`}),content:E(yr,{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:E(j(),{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:E(j(),{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:E(W({url:E(j()),content:E(yr)}),{typeComment:"@deprecated Use `url` and `content` on the top level instead."}),agent:E(W({key:E(j()),disabled:E(V()),hideAddApi:E(V(),{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`})}),W({layout:L([M(`modern`),M(`classic`)],{typeComment:`The layout to use for the references`}),proxy:E(j(),{typeComment:`@deprecated Use proxyUrl instead`}),fetch:E(N(),{typeComment:"@deprecated Use `customFetch` instead."}),customFetch:E(N(),{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:E(w(gr),{typeComment:`Plugins for the API reference`}),isEditable:V({default:!1,typeComment:`Allows the user to inject an editor for the spec`}),hideModels:V({default:!1,typeComment:`Whether to show models in the sidebar, search, and content.`}),modelsSectionLabel:E(L([M(`Models`),M(`Schemas`),j()]),{typeComment:"Label for the components.schemas section in the sidebar, content, and search. Use `Schemas` for OpenAPI terminology."}),localization:E(W({locale:E(j()),direction:E(L([M(`auto`),M(`ltr`),M(`rtl`)])),translations:E(R(j(),H()))}),{typeComment:`API Reference UI localization. Select a built-in locale, override labels, and control LTR/RTL rendering.`}),documentDownloadType:L([M(`both`),M(`yaml`),M(`json`),M(`direct`),M(`none`)],{typeComment:"Sets the file type of the document to download, set to `none` to hide the download button"}),hideDownloadButton:E(V(),{typeComment:"@deprecated Use `documentDownloadType: 'none'` instead"}),hideTestRequestButton:V({default:!1,typeComment:`Whether to show the "Test Request" button`}),hideSearch:V({default:!1,typeComment:`Whether to show the sidebar search bar`}),showOperationId:V({default:!1,typeComment:`Whether to show the operationId`}),darkMode:E(V(),{typeComment:`Whether dark mode is on or off initially (light mode)`}),forceDarkModeState:E(L([M(`dark`),M(`light`)]),{typeComment:`forceDarkModeState makes it always this state no matter what`}),hideDarkModeToggle:V({default:!1,typeComment:`Whether to show the dark mode toggle`}),metaData:E(H(),{typeComment:`If used, passed data will be added to the HTML header. @see https://unhead.unjs.io/usage/composables/use-seo-meta`}),favicon:E(j(),{typeComment:`Path to a favicon image`}),hiddenClients:E(L([R(j(),L([V(),w(j())])),w(j()),M(!0)]),{typeComment:"List of httpsnippet clients to hide from the clients menu. By default hides Unirest, pass `[]` to show all clients"}),defaultHttpClient:E(W({targetKey:j(),clientKey:j()}),{typeComment:`Determine the HTTP client that is selected by default`}),customCss:E(j(),{typeComment:`Custom CSS to be added to the page`}),onServerChange:E(N(),{typeComment:`onServerChange is fired on selected server change`}),onDocumentSelect:E(N(),{typeComment:`onDocumentSelect is fired when the config is selected`}),onLoaded:E(N(),{typeComment:`Callback fired when the reference is fully loaded`}),onBeforeRequest:E(N(),{typeComment:`Fired before the outbound request is built; callback receives a mutable request builder. Experimental API.`}),onRequestBuilt:E(N(),{typeComment:`Fired right before the outbound request is sent; callback receives the exact fetch Request that goes over the wire. Experimental API.`}),onShowMore:E(N(),{typeComment:`onShowMore is fired when the user clicks the "Show more" button on the references`}),onSidebarClick:E(N(),{typeComment:`onSidebarClick is fired when the user clicks on a sidebar item`}),pathRouting:E(W({basePath:j()}),{typeComment:`Route using paths instead of hashes, your server MUST support this. @experimental`}),mcp:E(W({name:E(j(),{typeComment:`Display name for the MCP server`}),url:E(j(),{typeComment:`URL of the MCP server`}),disabled:E(V(),{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:E(N(),{typeComment:`Customize the heading portion of the hash`}),generateModelSlug:E(N(),{typeComment:`Customize the model portion of the hash`}),generateTagSlug:E(N(),{typeComment:`Customize the tag portion of the hash`}),generateOperationSlug:E(N(),{typeComment:`Customize the operation portion of the hash`}),generateWebhookSlug:E(N(),{typeComment:`Customize the webhook portion of the hash`}),setPageTitle:E(N(),{typeComment:`Customize the browser tab title for the section currently in view`}),redirect:E(N(),{typeComment:`To handle redirects, pass a function that receives the current path/hash and passes that to history.replaceState`}),withDefaultFonts:V({default:!0,typeComment:`Whether to include default fonts`}),defaultOpenFirstTag:V({default:!0,typeComment:`Whether to expand the first tag in the sidebar when no specific URL target is present`}),defaultOpenAllTags:V({default:!1,typeComment:`Whether to expand all tags by default. Warning: this can cause performance issues on big documents`}),expandAllModelSections:V({default:!1,typeComment:`Whether to expand all models by default. Warning: this can cause performance issues on big documents`}),expandAllResponses:V({default:!1,typeComment:`Whether to expand all responses by default. Warning: this can cause performance issues on big documents`}),expandAllSchemaProperties:V({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:E(L([M(`alpha`),N()]),{typeComment:`Function to sort tags`}),operationsSorter:E(L([M(`alpha`),M(`method`),N()]),{typeComment:`Function to sort operations`}),orderSchemaPropertiesBy:L([M(`alpha`),M(`preserve`)],{typeComment:`Order the schema properties by`}),orderRequiredPropertiesFirst:V({default:!0,typeComment:`Sort the schema properties by required ones first`})})]);var xr=`https://api.scalar.com/request-proxy`,Sr=`https://proxy.scalar.com`;const Cr=e=>{let t=Un(br,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===xr&&(console.warn(`[DEPRECATED] Warning: configuration.proxyUrl points to our old proxy (${xr}).`),console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${Sr}) instead.`),console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${Sr}). Read more: https://github.com/scalar/scalar`),t.proxyUrl=Sr),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??=me,t};W({cdn:j({default:`https://cdn.jsdelivr.net/npm/@scalar/api-reference`}),pageTitle:j({default:`Scalar API Reference`}),nonce:E(j())});const wr=(e,t)=>{let n=performance.now(),r=t(),i=performance.now(),a=Math.round(i-n);return console.info(`${e}: ${a} ms`),r},Tr=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 Er(e){try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`}catch{return!1}}function Dr(e){if(!/^\s*(\{)/.test(e.slice(0,500)))return!1;try{return T(JSON.parse(e))}catch{return!1}}function Or(e){return/^\s*(?:-\s*)?[\w\-]+\s*:\s*.+\n.*/.test(e)}function kr(e){return!Er(e)&&!Or(e)&&!Dr(e)}var Ar=()=>{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:()=>je});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(O(t)(r)&&r.index===e.length)return r.output;throw Error(`Failed to parse at index ${r.indexMax}`)},v=(e,t)=>c(e)?y(e,t):m(e)?b(e,t):ee(e,t),y=(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}},ee=(e,t)=>{let n=e.source,r=e.flags.replace(/y|$/,`y`),i=new RegExp(n,r);return D(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}else return!1})},b=(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}else return!1},x=(e,t,n,r)=>{let i=O(e);return D(te(E(e=>{let r=0;for(;r<n;){let t=e.index;if(!i(e)||(r+=1,e.index===t))break}return r>=t})))},S=(e,t)=>x(e,0,1),C=(e,t)=>x(e,0,1/0),w=(e,t)=>{let n=e.map(O);return D(te(E(e=>{for(let t=0,r=n.length;t<r;t++)if(!n[t](e))return!1;return!0})))},T=(e,t)=>{let n=e.map(O);return D(te(e=>{for(let t=0,r=n.length;t<r;t++)if(n[t](e))return!0;return!1}))},E=(e,t=!1)=>{let n=O(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}},te=(e,t)=>O(e),D=(()=>{let e=0;return t=>{let n=O(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}else return a.set(i,!1),!1}}}})(),ne=e=>{let t;return n=>(t||=O(e()),t(n))},O=g(e=>{if(l(e))return u(e)?ne(e):e;if(m(e)||p(e))return v(e);if(c(e))return w(e);if(f(e))return T(Object.values(e));throw Error(`Invalid rule`)}),k=`abcdefghijklmnopqrstuvwxyz`,re=e=>{let t=``;for(;e>0;)t=k[(e-1)%26]+t,e=Math.floor((e-1)/26);return t},ie=e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t=t*26+k.indexOf(e[n])+1;return t},ae=(e,t)=>{if(t<e)return ae(t,e);let n=[];for(;e<=t;)n.push(e++);return n},A=(e,t,n)=>ae(e,t).map(e=>String(e).padStart(n,`0`)),oe=(e,t)=>ae(ie(e),ie(t)).map(re),se=e=>e,j=e=>ce(t=>_(t,e,{memoization:!1}).join(``)),ce=e=>{let t={};return n=>t[n]??(t[n]=e(n))},M=v(/^\*\*\/\*$/,`.*`),le=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/,(e,t,n)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}`),ue=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/,(e,t,n,r)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}(?:${r.replaceAll(`,`,`|`).replaceAll(`.`,`\\.`)})`),de=v(/\\./,se),fe=v(/[$.*+?^(){}[\]\|]/,e=>`\\${e}`),pe=v(/./,se),me=T([v(/^(?:!!)*!(.*)$/,(e,t)=>`(?!^${Oe(t)}$).*?`),v(/^(!!)+/,``)]),he=T([v(/\/(\*\*\/)+/,`(?:/.+/|/)`),v(/^(\*\*\/)+/,`(?:^|.*/)`),v(/\/(\*\*)$/,`(?:/.*|$)`),v(/\*\*/,`.*`)]),ge=T([v(/\*\/(?!\*\*\/)/,`[^/]*/`),v(/\*/,`[^/]*`)]),_e=v(`?`,`[^/]`),ve=v(`[`,se),N=v(`]`,se),ye=v(/[!^]/,`^/`),be=v(/[a-z]-[a-z]|[0-9]-[0-9]/i,se),xe=T([de,v(/[$.*+?^(){}[\|]/,e=>`\\${e}`),be,v(/[^\]]/,se)]),P=w([ve,S(ye),C(xe),N]),F=v(`{`,`(?:`),Se=v(`}`,`)`),Ce=w([F,T([v(/(\d+)\.\.(\d+)/,(e,t,n)=>A(+t,+n,Math.min(t.length,n.length)).join(`|`)),v(/([a-z]+)\.\.([a-z]+)/,(e,t,n)=>oe(t,n).join(`|`)),v(/([A-Z]+)\.\.([A-Z]+)/,(e,t,n)=>oe(t.toLowerCase(),n.toLowerCase()).join(`|`).toUpperCase())]),Se]),I=v(`{`,`(?:`),we=v(`}`,`)`),Te=v(`,`,`|`),Ee=v(/[$.*+?^(){[\]\|]/,e=>`\\${e}`),De=v(/[^}]/,se),L=w([I,C(T([he,ge,_e,P,Ce,ne(()=>L),de,Ee,Te,De])),we]),Oe=j(C(T([M,le,ue,me,he,ge,_e,P,Ce,L,de,fe,pe]))),R=v(/\\./,se),ke=v(/./,se),z=j(C(T([R,v(/\*\*\*+/,`*`),v(/([^/{[(!])\*\*/,(e,t)=>`${t}*`),v(/(^|.)\*\*(?=[^*/)\]}])/,(e,t)=>`${t}*`),ke]))),Ae=(e,t)=>{let n=Array.isArray(e)?e:[e];if(!n.length)return!1;let r=n.map(Ae.compile),i=n.every(e=>/(\/(?:\*\*)?|\[\/\])$/.test(e)),a=t.replace(/[\\\/]+/g,`/`).replace(/\/$/,i?`/`:``);return r.some(e=>e.test(a))};Ae.compile=e=>RegExp(`^${Oe(z(e))}$`,`s`);var je=Ae;return o(s)})();return e.default||e},jr,Mr=(e,t)=>(jr||(jr=Ar(),Ar=null),jr(e,t)),Nr=/^[A-Za-z]:\//;function Pr(e=``){return e&&e.replace(/\\/g,`/`).replace(Nr,e=>e.toUpperCase())}var Fr=/^[/\\]{2}/,Ir=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Lr=/^[A-Za-z]:$/,Rr=/^\/([A-Za-z]:)?$/,zr=/.(\.[^./]+|\.)$/,Br=/^[/\\]|^[a-zA-Z]:[/\\]/,Vr=function(e){if(e.length===0)return`.`;e=Pr(e);let t=e.match(Fr),n=Kr(e),r=e[e.length-1]===`/`;return e=Gr(e,!n),e.length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),Lr.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!Kr(e)?`/${e}`:e)},Hr=function(...e){let t=``;for(let n of e)if(n)if(t.length>0){let e=t[t.length-1]===`/`,r=n[0]===`/`;e&&r?t+=n.slice(1):t+=e||r?n:`/${n}`}else t+=n;return Vr(t)};function Ur(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var Wr=function(...e){e=e.map(e=>Pr(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:Ur();!i||i.length===0||(t=`${i}/${t}`,n=Kr(i))}return t=Gr(t,!n),n&&!Kr(t)?`/${t}`:t.length>0?t:`.`};function Gr(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}else 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 Kr=function(e){return Ir.test(e)},qr=function(e){return Pr(e)},Jr=function(e){if(e===`..`)return``;let t=zr.exec(Pr(e));return t&&t[1]||``},Yr=function(e,t){let n=Wr(e).replace(Rr,`$1`).split(`/`),r=Wr(t).replace(Rr,`$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(`/`)},Xr=function(e){let t=Pr(e).replace(/\/$/,``).split(`/`).slice(0,-1);return t.length===1&&Lr.test(t[0])&&(t[0]+=`/`),t.join(`/`)||(Kr(e)?`/`:`.`)},Zr=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 Pr(e.root?Wr(...n):n.join(`/`))},Qr=function(e,t){let n=Pr(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},$r={__proto__:null,basename:Qr,dirname:Xr,extname:Jr,format:Zr,isAbsolute:Kr,join:Hr,matchesGlob:(e,t)=>Mr(t,Vr(e)),normalize:Vr,normalizeString:Gr,parse:function(e){let t=Br.exec(e)?.[0]?.replace(/\\/g,`/`)||``,n=Qr(e),r=Jr(n);return{root:t,dir:Xr(e),base:n,ext:r,name:n.slice(0,n.length-r.length)}},relative:Yr,resolve:Wr,sep:`/`,toNamespacedPath:qr},ei=(()=>globalThis.process?.platform===`win32`?`;`:`:`)(),ti={posix:void 0,win32:void 0},ni=(e=ei)=>new Proxy($r,{get(t,n){return n===`delimiter`?e:n===`posix`?Y:n===`win32`?ri:ti[n]||$r[n]}}),Y=ni(`:`),ri=ni(`;`);const ii=(e,t)=>{if(Er(t))return t;if(Er(e)){let n=new URL(e);return n.pathname=Y.posix.resolve(`/`,Y.dirname(n.pathname),t),n.toString()}return Y.resolve(Y.dirname(e),t)};function ai(e){return decodeURI(e.replace(/~1/g,`/`).replace(/~0/g,`~`))}function oi(e){return e.split(`/`).slice(1).map(ai)}function si(e,t,n){if(t===``)throw Error(`Cannot set value at root ('') pointer`);let r=oi(t);r.forEach(e=>Ke(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])}}const ci=(e,t)=>{if(Er(e)&&Er(t)){let n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;let i=Y.dirname(Y.posix.resolve(`/`,r.pathname)),a=Y.posix.resolve(`/`,n.pathname);return Y.posix.relative(i,a)}if(Er(t)){let n=new URL(t),r=Y.dirname(Y.posix.resolve(`/`,n.pathname));return n.pathname=Y.posix.relative(r,Y.posix.resolve(`/`,e)),n.toString()}if(Er(e))return e;let n=Y.dirname(Y.resolve(t)),r=Y.resolve(e);return Y.relative(n,r)};function li(e){let t=Le(e).substring(0,7);return t.match(/^\d+$/)?`a`+t.substring(1):t}async function ui(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?ui(e,t,n,a,i+1):(n[a]=t,a)}const di=(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 ui(e,r,t),o=a.match(/^\d+$/)?`a${a}`:a;return n[r]=o,o}}};var fi=e=>T(e)&&`$ref`in e&&typeof e.$ref==`string`;function pi(e){return e.startsWith(`#`)}function mi(e,t){let n=t.find(t=>t.validate(e));return n?n.exec(e):Promise.resolve({ok:!1})}function hi(e,t){if(!pi(e))throw`Please provide an internal ref`;return`#/${t.map(Bt).join(`/`)}${e.substring(1)}`}function gi(e,t){if(Array.isArray(e)){e.forEach(e=>gi(e,t));return}if(T(e)&&(Object.values(e).forEach(e=>gi(e,t)),typeof e==`object`&&`$ref`in e&&typeof e.$ref==`string`)){let n=e.$ref;if(!pi(n))return;e.$ref=hi(n,t)}}const _i=(e,t,n,r,i,a=!1,o=new Set)=>{let s=ge(t,oi(n)).value;if(o.has(s))return;o.add(s),si(e,n,s);let c=n=>{if(!(!n||typeof n!=`object`)){`$ref`in n&&typeof n.$ref==`string`&&(n.$ref.startsWith(`#/${r}/${Bt(i)}`)||a)&&_i(e,t,n.$ref.substring(1),r,i,a,o);for(let e of Object.values(n))c(e)}};c(s)},vi={externalDocuments:`x-ext`,externalDocumentsMappings:`x-ext-urls`};async function yi(e,t){t.externalDocumentsKey=t.externalDocumentsKey??vi.externalDocuments,t.externalDocumentsMappingsKey=t.externalDocumentsMappingsKey??vi.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 mi(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=xe(o),c=t.root!==void 0&&t.root!==a||t.depth!==void 0,l=t.visitedNodes??new Set,u=(()=>ve(o)||(t.origin?t.origin:typeof e==`string`&&(Er(e)||kr(e))?e:`/`))();o[t.externalDocumentsMappingsKey]===void 0&&(o[t.externalDocumentsMappingsKey]={});let{generate:d}=di(t.compress??li,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||!T(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=ve(e);if(fi(e)){let l=e.$ref,h=`$global`in e&&typeof e.$global==`boolean`&&e.$global,g=ae(l,v??i,s);if(g!==void 0){if(c){let e=oi(`/${g}`),t=e.length>0?ge(o,e.slice(0,-1)).value:void 0,n=ge(o,e);await p(n.value,n.context,a,m+1,e,t)}await f(`onAfterNodeProcess`,e,_);return}let[y,ee=``]=l.split(`#`,2),b=ii(v??i,y),x=ci(b,u),S=await d(x),C=n.has(x);C||n.set(x,mi(b,r)),await f(`onResolveStart`,e);let w=await n.get(x);if(w.ok){C||(h||gi(w.data,[vi.externalDocuments,S]),await p(w.data,h?i:b,h,m+1,[t.externalDocumentsKey,S,o[t.externalDocumentsMappingsKey]]),si(o,`/${t.externalDocumentsMappingsKey}/${Bt(S)}`,x)),t.treeShake===!0?_i(o,{[t.externalDocumentsKey]:{[S]:w.data}},hi(`#${ee}`,[t.externalDocumentsKey,S]).substring(1),t.externalDocumentsKey,S):C||si(o,`/${t.externalDocumentsKey}/${S}`,w.data),e.$ref=hi(`#${ee}`,[t.externalDocumentsKey,S]),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 "${b}". 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 bi=class{data;next;constructor(e){this.data=e,this.next=null}},xi=class{front;rear;size;constructor(){this.front=null,this.rear=null,this.size=0}enqueue(e){let t=new bi(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 Si(e){let t=0,n=new xi,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 Ci=e=>e.startsWith(``)?e.slice(1):e;function wi(e){if(e!==null){if(typeof e==`string`){let t=Ci(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:Jt(t,{maxAliasCount:1e4,merge:!0})}}return e}}var Ti=e=>{try{return new URL(e).host}catch{return null}};async function Ei(e,t,n){try{let r=Ti(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:wi(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 Di(e){let t=e?.limit?Si(e.limit):e=>e();return{type:`loader`,validate:Er,exec:n=>Ei(n,t,e)}}var Oi=class extends Error{constructor(e){super(e),this.name=`InvalidChangesDetectedError`}};const ki=(e,t)=>{let n=(e,t,r,i=0)=>{if(t[i]===void 0)throw new Oi(`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 Oi(`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},Ai=(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};var ji=class{value;children;constructor(e,t){this.value=e,this.children=t}},Mi=class{root;constructor(){this.root=new ji(null,{})}addPath(e,t){let n=this.root;for(let t of e)n.children[t]||(n.children[t]=new ji(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)}};const Ni=(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&&Ni(e[r],t[r]))return!0;return!1}return e!==t},Pi=(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]=Pi(r,i))}return e},Fi=(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},Ii=(e,t)=>{let n=new Mi;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(Fi(s.path,t.changes.path)&&t.changes.type!==`delete`&&!Ni(s.changes,t.changes.changes)){r.add(t.index),typeof s.changes==`object`&&Pi(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 Li(e){if(!(typeof e!=`object`||!e)){if(Array.isArray(e)){for(let t of e)Li(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)&&Li(e[t])}}function Ri(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&&(e.toLowerCase().includes(`nav`)||e.toLowerCase().includes(`navigation`)?t.kind=`nav`:e.toLowerCase().includes(`audience`)?t.kind=`audience`:e.toLowerCase().includes(`badge`)?t.kind=`badge`:t.kind=`nav`)}}delete e[`x-tagGroups`]}}function zi(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 Ri(t),Li(t),t}function Bi(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?Bi(n,t,[...e,r.toString()]):n);continue}if(typeof a==`object`&&a){r[i]=Bi(a,t,e);continue}r[i]=a}return t(r,n)}var Vi=`application/json`;function Hi(e){let t=e[`x-example`],n=e[`x-examples`];return delete e[`x-example`],delete e[`x-examples`],{xExample:t,xExamples:n}}function Ui(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).length>0}function Wi(e){return Ui(e)&&Object.values(e).every(e=>typeof e==`object`&&!!e&&!Array.isArray(e))}function Gi(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 Ki(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&&Gi(t.schema)&&delete e[n]}}var qi=new Set([`summary`,`description`,`value`,`externalValue`]);function Ji(e){if(typeof e!=`object`||!e)return!1;let t=e,n=`value`in t||`externalValue`in t,r=Object.keys(t).every(e=>qi.has(e));return n&&r}function Yi(e){return Ji(e)?e:{value:e}}var Xi=/^[a-zA-Z0-9*+.-]+\/[a-zA-Z0-9*+.+-]+$/;function Zi(e){return Xi.test(e)}function Qi(e){return Object.entries(e).reduce((e,[t,n])=>(e[t]={value:n},e),{})}var $i=e=>{switch(e){case`application`:return`clientCredentials`;case`accessCode`:return`authorizationCode`;case`implicit`:return`implicit`;case`password`:return`password`;default:return e}};function ea(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=Bi(t,e=>(typeof e.$ref==`string`&&e.$ref.startsWith(`#/definitions/`)&&(e.$ref=e.$ref.replace(/^#\/definitions\//,`#/components/schemas/`)),e))),t=Bi(t,e=>(e.type===`file`&&(e.type=`string`,e.format=`binary`),e)),Object.hasOwn(t,`parameters`)){t=Bi(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;r&&typeof r==`object`&&`in`in r&&(r.in===`body`||r.in===`formData`)?e.$ref=e.$ref.replace(/^#\/parameters\//,`#/components/requestBodies/`):e.$ref=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]=ra(a):`in`in a&&(a.in===`body`?n[i]=la(a,t.consumes??[Vi]):a.in===`formData`?n[i]=ua([a],t.consumes):e[i]=ra(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=Bi(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??[Vi];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]??Vi;for(let[t,r]of Object.entries(n.examples))if(Zi(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]=Yi(r)}delete n.examples}n.content&&typeof n.content==`object`&&Ki(n.content),n.headers&&typeof n.headers==`object`&&(n.headers=Object.entries(n.headers).reduce((e,[t,n])=>n&&typeof n==`object`?{[t]:ia(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=da(n.parameters,t.consumes??[Vi]);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=da(i.parameters,i.consumes??t.consumes??[Vi]);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]:ia(n),...e}:e,{})),n.schema){let e=t.produces??i.produces??[Vi];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??[Vi])[0]??Vi;for(let[t,r]of Object.entries(n.examples))if(Zi(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]=Yi(r)}delete n.examples}n.content&&typeof n.content==`object`&&Ki(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:{[$i(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 ta(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 na(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 ra(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=ca(e),n=ta(e),{xExample:r,xExamples:i}=Hi(e);if(Ui(r)?e.examples=Qi(r):Ui(i)&&(e.examples=Object.entries(i).reduce((e,[t,n])=>(e[t]=Yi(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:na(e.in)}}function ia(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=ta(e);return{...e,schema:t}}var aa={ssv:{style:`spaceDelimited`,explode:!1},pipes:{style:`pipeDelimited`,explode:!1},multi:{style:`form`,explode:!0},csv:{style:`form`,explode:!1},tsv:{}},oa={ssv:{},pipes:{},multi:{},csv:{style:`simple`,explode:!1},tsv:{}},sa={header:oa,query:aa,path:oa};function ca(e){if(e.type!==`array`||!(e.in===`query`||e.in===`path`||e.in===`header`))return{};let t=e.collectionFormat??`csv`;return e.in in sa&&t in sa[e.in]?sa[e.in][t]:{}}function la(e,t){let{xExample:n,xExamples:r}=Hi(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},Ui(r)&&e in r){let t=r[e];Ui(t)&&Object.values(t).every(e=>Ji(e))?o.content[e].examples=t:Wi(t)?o.content[e].examples=Object.entries(t).reduce((e,[t,n])=>(e[t]=Yi(n),e),{}):o.content[e].examples={default:Yi(t)}}else Ui(r)&&!Object.keys(r).some(Zi)&&(o.content[e].examples=Object.entries(r).reduce((e,[t,n])=>(e[t]=Yi(n),e),{}));!o.content[e].examples&&Ui(n)&&e in n&&(o.content[e].example=n[e])}return o}function ua(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 da(e,t){let n={parameters:e.filter(e=>!(e.in===`body`||e.in===`formData`)).map(e=>ra(e))},r=structuredClone(e.find(e=>e.in===`body`)??{});r&&Object.keys(r).length&&(n.requestBody=la(r,t));let i=e.filter(e=>e.in===`formData`);if(i.length>0){let e=ua(i,t);typeof n.requestBody==`object`?n.requestBody={...n.requestBody,content:{...n.requestBody.content,...e.content}}:n.requestBody=e,typeof n.requestBody!=`object`&&(n.requestBody={content:{}})}return n}var fa=new Set([`properties`,`items`,`allOf`,`anyOf`,`oneOf`,`not`,`additionalProperties`,`schema`]);function pa(e){return e?!!(e.some(e=>fa.has(e))||e.some(e=>e.endsWith(`Schema`))||e.length>=2&&e[0]===`components`&&e[1]===`schemas`):!1}function ma(e){let t=e;return t===null||typeof t.openapi!=`string`||!t.openapi.startsWith(`3.0`)?t:(t.openapi=`3.1.1`,t=Bi(t,ha),t)}var ha=(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`:!1);if(e.example!==void 0&&!n&&(pa(t)?e.examples=[e.example]:e.examples={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 ga(e,t){let n=ea(e);if(t===`3.0`)return n;let r=ma(n);return t===`3.1`?r:zi(r)}var _a="```";const va=(e,t)=>`${_a}${e}\n${t.trimEnd()}\n${_a}`,ya=(e,t)=>`@example\n${va(e,t)}`,ba=e=>`\`${e}\``,xa=(...e)=>e.join(`
2
2
 
3
3
  `),X=(e,t)=>xa(e,ya(t.language,t.body)),Sa=W({"x-internal":E(V({typeComment:`When true, hides the entity from public documentation`}))},{typeName:`XInternal`,typeComment:X(`Marks an entity as internal (hidden from external consumers).`,{language:`yaml`,body:`x-internal: true`})}),Ca=W({"x-original-aas-version":E(j({typeComment:`Original AsyncAPI Specification version the document was loaded with.`}))},{typeName:`XOriginalAasVersion`,typeComment:X(`Original AsyncAPI Specification version of the source document before ingestion.`,{language:`yaml`,body:`x-original-aas-version: "3.0.0"`})});W({"x-original-oas-version":E(j({typeComment:`Original OpenAPI Specification version of the source document.`}))},{typeName:`XOriginalOasVersion`,typeComment:X(`Original OpenAPI Specification version of the source document before ingestion.`,{language:`yaml`,body:`x-original-oas-version: "3.1.0"`})});const wa=W({name:j({typeComment:`Variable name`}),value:L([W({description:E(j()),default:j()}),j()],{typeComment:`Variable value as a string, or an object with description and default`})},{typeName:`XScalarEnvVar`,typeComment:`An environment variable definition`}),Ta=W({description:E(j({typeComment:`Optional description for the environment`})),color:j({typeComment:`Color for the environment (for example a hex value)`}),variables:w(wa,{typeComment:`Variables available in this environment`})},{typeName:`XScalarEnvironment`,typeComment:`A named environment with variables and display color`});W({"x-scalar-environments":E(R(j(),Ta,{typeComment:`Environments keyed by name`}))},{typeName:`XScalarEnvironments`,typeComment:X(`Named environments with variables for the API client (base URLs, tokens, etc.).`,{language:`yaml`,body:`x-scalar-environments:
4
4
  production:
@@ -0,0 +1 @@
1
+ import{Lr as e,Oi as t,V as n,bt as r,yr as i}from"./index-Dl-HyfHx.js";import{c as a,n as o,s,t as c,u as l}from"./cloud-client-GmxBhiFl.js";import{t as u}from"./auth-errors-DEObS1lG.js";const d=i(`cloud-chat`,()=>{let{user:i}=s(),d=e(()=>!!i.value),f=l(o,u());t(()=>i.value?.id,e=>{e&&f.refresh()},{immediate:!0});let p=n(),m=r(),h=e(()=>{let e=m.activeProjectId??p.projects[0]?.id;return e?p.getById(e)?.orgId??null:null}),g=a(o,e(()=>{let e=f.organizations.value;if(!e.length)return``;let t=h.value;return t&&e.some(e=>e.id===t)?t:e[0].id}),{streamUrl:c}),_=e(()=>Object.values(g.unread.value).reduce((e,t)=>e+t,0));function v(){g.unread.value={}}function y(e){g.unread.value[e]&&(g.unread.value={...g.unread.value,[e]:0})}return{connected:d,unreadCount:_,clearUnread:v,noteChannelRead:y}});export{d as t};
@@ -0,0 +1 @@
1
+ import{Ji as e,Lr as t,Oi as n,Pt as r,Zi as i,ea as a,jt as o}from"./index-Dl-HyfHx.js";function s(e,t,{onProgress:n,withCredentials:r=!1,timeoutMs:i=3e5}={}){return new Promise(a=>{let o=new XMLHttpRequest;o.open(`POST`,e,!0),o.withCredentials=r,o.timeout=i,o.setRequestHeader(`Content-Type`,t.type||`application/octet-stream`),n&&(o.upload.onprogress=e=>{e.lengthComputable&&e.total>0&&n(e.loaded/e.total)}),o.onload=()=>{let e=null;try{e=JSON.parse(o.responseText)}catch{}n&&o.status>=200&&o.status<300&&n(1),a({data:o.status>=200&&o.status<300?e:null,status:o.status})},o.onerror=()=>a({data:null,status:0}),o.ontimeout=()=>a({data:null,status:0}),o.send(t)})}function c(e){return e.normalize(`NFD`).replace(/\p{Diacritic}/gu,``).toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,100).replace(/-+$/g,``)}function l(e){if(e&&typeof e==`object`){let t=e;return{message:t.error?.message??t.message??`Une erreur est survenue`,code:t.error?.code??t.code}}return{message:`Une erreur est survenue`}}function u(e,t){let{message:n,code:r}=l(e);return t?t(r,n):n}function d(e,t){let n=a([]),r=i(!1),o=i(null);async function s(){r.value=!0,o.value=null;try{let r=await e.organization.list();if(r.error){o.value=u(r.error,t);return}n.value=r.data??[]}catch(e){o.value=u(e,t)}finally{r.value=!1}}async function l(t){let n=t||`org`;for(let t=1;t<=50;t+=1){let r=t===1?n:`${n}-${t}`,i=await e.organization.checkSlug({slug:r});if(!i.error&&i.data?.status)return r}return`${n}-${t.length+51}`}async function d(n){o.value=null;let r=await l(c(n)),i=await e.organization.create({name:n,slug:r});return i.error?(o.value=u(i.error,t),!1):(await s(),!0)}async function f(n,r,i=`member`,a=!1){o.value=null;let s=await e.organization.inviteMember({organizationId:n,email:r,role:i,resend:a});return s.error?(o.value=u(s.error,t),!1):!0}return{organizations:n,loading:r,error:o,refresh:s,create:d,invite:f}}function f(t,r,a={}){let o=a.pollMs??5e3,s=i([]),c=i(null),u=i([]),d=i({}),f=i(!1),p=i(!1),m=i(!1),h=i(!1),g=i(null),_=null,v=new Set,y=null,b=null,x=null;async function S(e,n){let r=await t.$fetch(e,n);return r?.error?(g.value=l(r.error).message,null):r?.data??null}function C(e){let t=e.filter(e=>!v.has(e.id));if(t.length){for(let e of t)v.add(e.id);u.value=[...u.value,...t],_=t.at(-1)?.createdAt??_}}async function w(){if(!r.value)return;let e=await S(`/chat/channel/list`,{method:`GET`,query:{organizationId:r.value}});e&&(s.value=e.channels,d.value=Object.fromEntries(e.channels.map(e=>[e.id,e.id===c.value?0:e.unreadCount??0])))}async function T(e){await S(`/chat/channel/read`,{method:`POST`,body:{channelId:e}})}async function E(){if(!c.value)return;f.value=!0,g.value=null,v.clear(),_=null,m.value=!1;let e=await S(`/chat/message/list`,{method:`GET`,query:{channelId:c.value,limit:`50`}});if(f.value=!1,e){for(let t of e.messages)v.add(t.id);u.value=e.messages,_=e.messages.at(-1)?.createdAt??null,m.value=e.hasMore??!1}}async function D(){let e=c.value;if(!e||p.value||!m.value)return;let t=u.value[0];if(!t)return;p.value=!0;let n=await S(`/chat/message/list`,{method:`GET`,query:{channelId:e,before:t.id,limit:`50`}});if(p.value=!1,!n)return;let r=n.messages.filter(e=>!v.has(e.id));for(let e of r)v.add(e.id);r.length&&(u.value=[...r,...u.value]),m.value=n.hasMore??!1}async function O(e){c.value!==e&&(c.value=e,u.value=[],d.value={...d.value,[e]:0},T(e),await E())}async function k(e){let t=e.trim();if(!t||!c.value)return!1;h.value=!0;let n=await S(`/chat/message/send`,{method:`POST`,body:{channelId:c.value,content:t}});return h.value=!1,n?(C([n.message]),!0):!1}async function A(e,t){if(!r.value)return null;let n=await S(`/chat/channel/create`,{method:`POST`,body:{organizationId:r.value,name:e,isPrivate:t}});return n?(await w(),await O(n.channel.id),n.channel):null}async function j(e){return await S(`/chat/channel/join`,{method:`POST`,body:{channelId:e}})?(await w(),await O(e),!0):!1}async function M(e,t){return!!await S(`/chat/channel/invite`,{method:`POST`,body:{channelId:e,userId:t}})}async function N(e){await S(`/chat/channel/leave`,{method:`POST`,body:{channelId:e}}),c.value===e&&(c.value=null),await w()}async function P(e){if(!r.value||!e.length)return null;let t=await S(`/chat/dm/open`,{method:`POST`,body:{organizationId:r.value,userIds:e}});return t?(await w(),await O(t.channel.id),t.channel):null}async function F(){return r.value?(await S(`/chat/channel/browse`,{method:`GET`,query:{organizationId:r.value}}))?.channels??[]:[]}function I(e){s.value.some(t=>t.id===e.channelId)||w(),e.channelId===c.value?C([e.message]):d.value={...d.value,[e.channelId]:(d.value[e.channelId]??0)+1}}async function L(){if(!c.value)return;let e={channelId:c.value};_&&(e.since=_);let t=await S(`/chat/message/list`,{method:`GET`,query:e});t&&C(t.messages)}function R(){y||=setInterval(()=>void L(),o)}function z(){y&&=(clearInterval(y),null)}function B(e){let t=a.streamUrl?a.streamUrl(e):a.baseURL?`${a.baseURL}/api/chat/stream?organizationId=${encodeURIComponent(e)}`:null;if(!t||typeof EventSource>`u`){R();return}x=new EventSource(t,{withCredentials:!a.streamUrl}),x.onopen=()=>z(),x.onmessage=e=>{try{I(JSON.parse(e.data))}catch{}},x.onerror=()=>R(),R()}function V(){x?.close(),x=null}return n(r,e=>{V(),z(),b&&=(clearInterval(b),null),s.value=[],u.value=[],d.value={},c.value=null,v.clear(),_=null,e&&(w(),B(e),b=setInterval(()=>void w(),2e4))},{immediate:!0}),e(()=>{V(),z(),b&&clearInterval(b)}),{channels:s,activeChannelId:c,messages:u,unread:d,loading:f,loadingOlder:p,hasMore:m,sending:h,error:g,reloadChannels:w,selectChannel:O,send:k,createChannel:A,joinChannel:j,inviteToChannel:M,leaveChannel:N,openDm:P,browseChannels:F,markRead:T,loadOlder:D}}function p(r,a,o={}){let s=o.pollMs??15e3,c=i([]),u=i(null),d=i(null),f=i(!1),p=i(!1),m=i(null),h=i(!1),g=null,_=null,v=t(()=>d.value?.canWrite??!1);async function y(e,t){let n=await r.$fetch(e,t);return n?.error?(m.value=l(n.error).message,null):n?.data??null}async function b(){if(!a.value)return;let e=await y(`/kanban/access`,{method:`GET`,query:{organizationId:a.value}});e&&(d.value=e)}async function x(){if(!a.value)return;let e=await y(`/kanban/board/list`,{method:`GET`,query:{organizationId:a.value}});e&&(c.value=e.boards)}async function S(e){f.value=!0,m.value=null,h.value=!1;let t=await y(`/kanban/board/get`,{method:`GET`,query:{id:e}});f.value=!1,t&&(u.value=t.board)}function C(){u.value=null,h.value=!1}async function w(){let e=u.value;if(!e||h.value||p.value)return;let t=await y(`/kanban/board/get`,{method:`GET`,query:{id:e.id}});!t||h.value||p.value||t.board.updatedAt!==e.updatedAt&&(u.value=t.board)}async function T(e,t=``){if(!a.value)return null;let n=await y(`/kanban/board/create`,{method:`POST`,body:{organizationId:a.value,name:e,description:t}});return n?(await Promise.all([x(),b()]),n.board):null}async function E(e){let t=u.value;if(!t)return!1;p.value=!0,m.value=null;let n=await y(`/kanban/board/update`,{method:`POST`,body:{id:t.id,...e}});return p.value=!1,n?(u.value=n.board,h.value=!1,!0):!1}async function D(e,t){m.value=null;let n=await y(`/kanban/board/update`,{method:`POST`,body:{id:e,...t}});return n?(u.value?.id===e&&(u.value=n.board),await x(),!0):!1}async function O(e){return await y(`/kanban/board/delete`,{method:`POST`,body:{id:e}})?(u.value?.id===e&&C(),await Promise.all([x(),b()]),!0):!1}function k(){h.value=!0}function A(){g||=setInterval(()=>{x(),w()},s)}function j(){g&&=(clearInterval(g),null)}function M(e){e.type===`board.changed`&&e.updatedAt&&e.boardId===u.value?.id&&e.updatedAt===u.value.updatedAt||(x(),e.boardId===u.value?.id&&w())}function N(e){let t=o.streamUrl?o.streamUrl(e):o.baseURL?`${o.baseURL}/api/kanban/stream?organizationId=${encodeURIComponent(e)}`:null;if(!t||typeof EventSource>`u`){A();return}_=new EventSource(t,{withCredentials:!o.streamUrl}),_.onopen=()=>j(),_.onmessage=e=>{try{M(JSON.parse(e.data))}catch{}},_.onerror=()=>A(),A()}function P(){_?.close(),_=null}return n(a,e=>{P(),j(),c.value=[],d.value=null,C(),e&&(x(),b(),N(e))},{immediate:!0}),e(()=>{j(),P()}),{boards:c,activeBoard:u,access:d,canWrite:v,loading:f,saving:p,dirty:h,error:m,reloadBoards:x,refreshAccess:b,openBoard:S,closeBoard:C,refreshActiveBoard:w,createBoard:T,saveBoard:E,updateBoardById:D,deleteBoard:O,markDirty:k}}var m=i(null),h=i(!1),g=i(!1);async function _(){h.value=!0;try{m.value=(await o.cloudAuth.session.query())?.user??null}catch{m.value=null}finally{h.value=!1,g.value=!0}}async function v(){let{url:e}=await o.cloudAuth.startLogin.mutate({returnTo:window.location.origin});window.location.href=e}async function y(){await o.cloudAuth.signOut.mutate(),m.value=null}function b(){return!g.value&&!h.value&&_(),{user:m,loading:h,isLinked:t(()=>m.value!==null),refresh:_,signIn:v,signOut:y}}async function x(e,t={}){try{return await o.cloudAuth.proxy.mutate({path:e,method:t.method??`GET`,...t.query?{query:t.query}:{},...t.body===void 0?{}:{body:t.body}})}catch(e){return{data:null,error:e}}}const S={$fetch:x,organization:{getFullOrganization:e=>x(`/organization/get-full-organization`,{query:{organizationId:e.query.organizationId}}),list:()=>x(`/organization/list`),checkSlug:e=>x(`/organization/check-slug`,{method:`POST`,body:e}),create:e=>x(`/organization/create`,{method:`POST`,body:e}),inviteMember:e=>x(`/organization/invite-member`,{method:`POST`,body:e})}};function C(e,t){let n=r(),i=new URLSearchParams({organizationId:t});return n&&i.set(`token`,n),`${e}?${i.toString()}`}function w(e){return C(`/api/cloud/chat/stream`,e)}function T(e){return C(`/api/cloud/kanban/stream`,e)}async function E(e,t,n){let i=r(),a=new URLSearchParams({organizationId:e,name:t.name});i&&a.set(`token`,i);let o=await s(`/api/cloud/kanban/image?${a.toString()}`,t,{onProgress:n});return o.data?.id?o.data:null}async function D(e,t=``){try{let n=r(),i=new URLSearchParams;n&&i.set(`token`,n);let a=await fetch(`/api/cloud/kanban/file/${encodeURIComponent(e)}?${i.toString()}`,{signal:AbortSignal.timeout(3e5)});if(!a.ok)return null;let o=/^image\/(png|jpeg|webp|gif)$/.test(t)?t:`application/octet-stream`;return URL.createObjectURL(new Blob([await a.arrayBuffer()],{type:o}))}catch{return null}}async function O(e){try{let t=r(),n=new URLSearchParams;t&&n.set(`token`,t),await fetch(`/api/cloud/kanban/file/${encodeURIComponent(e)}?${n.toString()}`,{method:`DELETE`,signal:AbortSignal.timeout(15e3)})}catch{}}export{D as a,f as c,O as i,p as l,S as n,E as o,T as r,b as s,w as t,d as u};