@scalar/api-reference 1.62.3 → 1.62.4
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.
- package/CHANGELOG.md +2 -0
- package/dist/browser/chunks/{AgentScalarChatInterface-CNs5mxby.js → AgentScalarChatInterface-uEJhFXkB.js} +2 -2
- package/dist/browser/chunks/{ScalarTextInput.vue-D_L-rtQC.js → ScalarTextInput.vue-DfHAfVG5.js} +2 -2
- package/dist/browser/chunks/basic-shape-diamond.svg-BTEOT1FL.js +1 -1
- package/dist/browser/chunks/basic-shape-hexagon.svg-BSPzaCgF.js +1 -1
- package/dist/browser/chunks/basic-shape-primary-circle-ellipse-round.svg-DKmZ8UUU.js +1 -1
- package/dist/browser/chunks/basic-shape-primary-square-rectangle.svg-n2YRykHD.js +1 -1
- package/dist/browser/chunks/basic-shape-shield.svg-Bec9cJDA.js +1 -1
- package/dist/browser/chunks/browser-67K6wmG9.js +1 -1
- package/dist/browser/chunks/computer-device-desktop-monitor.svg-m6j893Hb.js +1 -1
- package/dist/browser/chunks/computer-device-desktop.svg-Dk1VVO7k.js +1 -1
- package/dist/browser/chunks/computer-device-laptop.svg-BNGVUCYS.js +1 -1
- package/dist/browser/chunks/computer-device-mobile-phone-android-samsung-back.svg-CC4UUTFw.js +1 -1
- package/dist/browser/chunks/computer-device-mobile-phone-android-samsung.svg-D8ExpMpL.js +1 -1
- package/dist/browser/chunks/computer-device-mobile-phone-iphone-x-back.svg-CLm7sgMM.js +1 -1
- package/dist/browser/chunks/computer-device-mobile-phone-iphone-x.svg-Xrttg6_7.js +1 -1
- package/dist/browser/chunks/computer-device-mobile-tablet-touch.svg-DQ2oTvOG.js +1 -1
- package/dist/browser/chunks/computer-device-mobile-tablet.svg-DCr0XlRc.js +1 -1
- package/dist/browser/chunks/computer-device-network-ethernet-cat6.svg-AK9l0iOl.js +1 -1
- package/dist/browser/chunks/computer-device-network-lan-www.svg-gUIdFBlE.js +1 -1
- package/dist/browser/chunks/computer-device-network-wifi-connection.svg-Be-EMm4e.js +1 -1
- package/dist/browser/chunks/computer-device-network-wifi-router.svg-Dc2VzyqK.js +1 -1
- package/dist/browser/chunks/ecology-science-erlenmeyer-flask.svg-DHgy7Jfd.js +1 -1
- package/dist/browser/chunks/image-flash-lightning.svg-EETR_y1q.js +1 -1
- package/dist/browser/chunks/image-picture-flower.svg-DN1AYzJU.js +1 -1
- package/dist/browser/chunks/interface-alert-exclamation-diamond.svg-C5NozMV_.js +1 -1
- package/dist/browser/chunks/interface-alert-exclamation-triangle-warning.svg-DaAg2fF5.js +1 -1
- package/dist/browser/chunks/interface-alert-information-circle.svg-ckkkt9Mv.js +1 -1
- package/dist/browser/chunks/interface-award-crown.svg-pjvn9hY-.js +1 -1
- package/dist/browser/chunks/interface-bookmark-tag.svg-r2r-lQq4.js +1 -1
- package/dist/browser/chunks/interface-bookmark.svg-BK9HKQBT.js +1 -1
- package/dist/browser/chunks/interface-calendar-date-one.svg-DNnF0M1I.js +1 -1
- package/dist/browser/chunks/interface-content-book-open-pages.svg-CQj_w9Vp.js +1 -1
- package/dist/browser/chunks/interface-content-book-page.svg-DppoeJRe.js +1 -1
- package/dist/browser/chunks/interface-content-file.svg-CvcD7OiY.js +1 -1
- package/dist/browser/chunks/interface-content-folder.svg-BmtS5I9A.js +1 -1
- package/dist/browser/chunks/interface-copy-clipboard.svg-Be6EI50X.js +1 -1
- package/dist/browser/chunks/interface-edit-attachment.svg-G5TKzpWX.js +1 -1
- package/dist/browser/chunks/interface-edit-binocular.svg-jzL-DvGB.js +1 -1
- package/dist/browser/chunks/interface-edit-magic-wand.svg-BOTlymvp.js +1 -1
- package/dist/browser/chunks/interface-edit-tool-paint-roller.svg-s9dwryx7.js +1 -1
- package/dist/browser/chunks/interface-edit-tool-pencil.svg-C7v0dbB3.js +1 -1
- package/dist/browser/chunks/interface-favorite-award.svg-CYHUgUG0.js +1 -1
- package/dist/browser/chunks/interface-favorite-flag.svg-C10zlKOb.js +1 -1
- package/dist/browser/chunks/interface-favorite-heart.svg-eoduXxlz.js +1 -1
- package/dist/browser/chunks/interface-favorite-star.svg-BSmxJetr.js +1 -1
- package/dist/browser/chunks/interface-favorite-stars-sparkles.svg-JTFLj3Ls.js +1 -1
- package/dist/browser/chunks/interface-hierarchy-flowchart.svg-Cg_Wy0kN.js +1 -1
- package/dist/browser/chunks/interface-home-house.svg-DytoGRnv.js +1 -1
- package/dist/browser/chunks/interface-hyperlink.svg-CuEfmmQI.js +1 -1
- package/dist/browser/chunks/interface-lighting-brightness.svg-DSK0h_Pa.js +1 -1
- package/dist/browser/chunks/interface-lock-closed.svg-Cn6TaLYv.js +1 -1
- package/dist/browser/chunks/interface-lock-open-unlock.svg-CVkG5-9W.js +1 -1
- package/dist/browser/chunks/interface-login-key.svg-y-cwwXjN.js +1 -1
- package/dist/browser/chunks/interface-search.svg-S-puVFJB.js +1 -1
- package/dist/browser/chunks/interface-setting-cog.svg-CTH4_lLg.js +1 -1
- package/dist/browser/chunks/interface-share-megaphone-bullhorn.svg-Pbp39MyC.js +1 -1
- package/dist/browser/chunks/interface-share-rocket.svg-BgCsIRZO.js +1 -1
- package/dist/browser/chunks/interface-share-satellite.svg-DAMN9d5G.js +1 -1
- package/dist/browser/chunks/interface-share-space-ship.svg-Dt-Mejxk.js +1 -1
- package/dist/browser/chunks/interface-share.svg-vFYTXSti.js +1 -1
- package/dist/browser/chunks/interface-signal-square.svg-DNG4LpAe.js +1 -1
- package/dist/browser/chunks/interface-time-clock-circle.svg-Bpz-nLxo.js +1 -1
- package/dist/browser/chunks/interface-time-hour-glass.svg-D7agfKsH.js +1 -1
- package/dist/browser/chunks/interface-users-multiple.svg-CkPJBBnG.js +1 -1
- package/dist/browser/chunks/interface-weather-moon.svg-CaTZFMPO.js +1 -1
- package/dist/browser/chunks/mail-chat-bubble-square.svg-DC8RIihp.js +1 -1
- package/dist/browser/chunks/mail-send-email-paper-airplane.svg-D8OLs9jz.js +1 -1
- package/dist/browser/chunks/mail-send-envelope.svg-CV33h5Sx.js +1 -1
- package/dist/browser/chunks/{modal-CfujTjCR.js → modal-D09WtmIH.js} +2 -2
- package/dist/browser/chunks/{modal-BvqLUPs5.js → modal-VSnkfbyL.js} +3 -3
- package/dist/browser/chunks/money-cashier-receipt.svg-CJL8C2gs.js +1 -1
- package/dist/browser/chunks/money-currency-dollar-pay.svg-VdBplCTx.js +1 -1
- package/dist/browser/chunks/money-graph-arrow-increase.svg-DcRov3zk.js +1 -1
- package/dist/browser/chunks/money-graph-bar-chart-increase.svg-Cc7KxjX-.js +1 -1
- package/dist/browser/chunks/nature-ecology-leaf.svg-DR3cTZxt.js +1 -1
- package/dist/browser/chunks/phone-telephone.svg-DyY0gUlk.js +1 -1
- package/dist/browser/chunks/programming-bug.svg-BHLT-Qhp.js +1 -1
- package/dist/browser/chunks/programming-cloud.svg-B6YW33ba.js +1 -1
- package/dist/browser/chunks/programming-computer-database-server.svg-B6o5Sdn-.js +1 -1
- package/dist/browser/chunks/programming-computer-database.svg-Cl7OVtpJ.js +1 -1
- package/dist/browser/chunks/programming-module-four-layout.svg-BQrerL1x.js +1 -1
- package/dist/browser/chunks/programming-module-three.svg-B2KTQzBM.js +1 -1
- package/dist/browser/chunks/programming-module.svg-CiID7kPm.js +1 -1
- package/dist/browser/chunks/programming-script-code.svg-D1M5rtkN.js +1 -1
- package/dist/browser/chunks/runtime-core.esm-bundler-Byrbbu5Q.js +1 -1
- package/dist/browser/chunks/shopping-cart.svg-BEegiIR9.js +1 -1
- package/dist/browser/chunks/shopping-gift-present.svg-BUHwuLix.js +1 -1
- package/dist/browser/chunks/shopping-shipping-box-parcel-package.svg-D6fxWdYx.js +1 -1
- package/dist/browser/chunks/tag-new-circle.svg-jsg1bGs0.js +1 -1
- package/dist/browser/chunks/travel-map-earth-globe.svg-ClbMiU-f.js +1 -1
- package/dist/browser/chunks/{vendor-BlFFskFr.js → vendor-C5HmjoOQ.js} +2 -2
- package/dist/browser/standalone.esm.js +4 -4
- package/dist/browser/standalone.js +5 -5
- package/dist/components/ApiReference.vue.script.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.script.js.map +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
|
|
6
6
|
* /____/\____/_/ |_/_____/_/ |_/_/ |_|
|
|
7
7
|
*
|
|
8
|
-
* @scalar/api-reference 1.62.
|
|
8
|
+
* @scalar/api-reference 1.62.4
|
|
9
9
|
*
|
|
10
10
|
* Website: https://scalar.com
|
|
11
11
|
* GitHub: https://github.com/scalar/scalar
|
|
12
12
|
* License: https://github.com/scalar/scalar/blob/main/LICENSE
|
|
13
13
|
**/
|
|
14
14
|
|
|
15
|
-
import{A as e,Aa as t,An as n,Ao as r,B as i,Ba as a,C as o,Cn as s,Ct as c,D as l,Dt as u,E as d,En as f,Et as p,F as m,Fa as h,Fo as g,Gn as _,Go as ee,Hn as te,Ho as ne,I as re,Ia as ie,In as ae,Jo as oe,Ko as se,Kt as ce,L as le,M as v,N as y,Na as ue,Nn as de,No as fe,On as pe,P as b,Pn as me,R as he,S as ge,Si as _e,T as ve,Ta as ye,U as be,Uo as xe,V as Se,Va as Ce,W as we,Wa as Te,Wo as Ee,Yt as De,b as Oe,d as ke,en as Ae,et as je,fr as Me,j as Ne,jo as Pe,k as Fe,kn as Ie,kt as Le,m as Re,on as ze,pr as Be,qo as x,rt as Ve,tt as He,v as Ue,w as We,wn as Ge,x as Ke,y as qe,za as Je}from"./vendor-BlFFskFr.js";import{a as Ye,g as Xe,h as Ze,i as Qe,m as $e,n as et,o as tt,r as nt,s as rt,t as it,v as at,y as ot}from"./ScalarTextInput.vue-D_L-rtQC.js";import{A as st,B as ct,C as lt,D as ut,G as dt,Gt as ft,H as S,K as pt,P as mt,R as ht,S as C,St as gt,Tt as w,U as _t,Yt as T,Z as vt,at as E,b as D,d as O,dt as yt,et as bt,f as k,gt as A,i as j,j as xt,l as M,mt as St,ot as Ct,p as N,tt as wt,u as P,ut as Tt,v as Et,xt as Dt,y as F,yt as Ot}from"./runtime-core.esm-bundler-Byrbbu5Q.js";import{a as kt,i as At,r as jt,t as Mt}from"./modal-BvqLUPs5.js";var Nt={key:0},Pt={key:1},Ft={key:2},It={key:3},Lt={key:4},Rt={key:5},zt=C({name:`ScalarIconArrowRight`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=Te(e);return(e,r)=>(S(),N(`svg`,st({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},w(t)),[pt(e.$slots,`default`),w(n)===`bold`?(S(),N(`g`,Nt,[...r[0]||=[P(`path`,{d:`M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z`},null,-1)]])):w(n)===`duotone`?(S(),N(`g`,Pt,[...r[1]||=[P(`path`,{d:`M216,128l-72,72V56Z`,opacity:`0.2`},null,-1),P(`path`,{d:`M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z`},null,-1)]])):w(n)===`fill`?(S(),N(`g`,Ft,[...r[2]||=[P(`path`,{d:`M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z`},null,-1)]])):w(n)===`light`?(S(),N(`g`,It,[...r[3]||=[P(`path`,{d:`M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z`},null,-1)]])):w(n)===`regular`?(S(),N(`g`,Lt,[...r[4]||=[P(`path`,{d:`M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z`},null,-1)]])):w(n)===`thin`?(S(),N(`g`,Rt,[...r[5]||=[P(`path`,{d:`M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z`},null,-1)]])):k(``,!0)],16))}}),Bt={key:0},Vt={key:1},Ht={key:2},Ut={key:3},Wt={key:4},Gt={key:5},Kt=C({name:`ScalarIconUpload`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=Te(e);return(e,r)=>(S(),N(`svg`,st({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},w(t)),[pt(e.$slots,`default`),w(n)===`bold`?(S(),N(`g`,Bt,[...r[0]||=[P(`path`,{d:`M188,184a16,16,0,1,1,16-16A16,16,0,0,1,188,184Zm36-68H180a12,12,0,0,0,0,24h40v56H36V140H76a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116ZM88.49,80.49,116,53v75a12,12,0,0,0,24,0V53l27.51,27.52a12,12,0,1,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,1,0,17,17Z`},null,-1)]])):w(n)===`duotone`?(S(),N(`g`,Vt,[...r[1]||=[P(`path`,{d:`M232,136v64a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V136a8,8,0,0,1,8-8H224A8,8,0,0,1,232,136Z`,opacity:`0.2`},null,-1),P(`path`,{d:`M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H80a8,8,0,0,1,0,16H32v64H224V136H176a8,8,0,0,1,0-16h48A16,16,0,0,1,240,136ZM85.66,77.66,120,43.31V128a8,8,0,0,0,16,0V43.31l34.34,34.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,77.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z`},null,-1)]])):w(n)===`fill`?(S(),N(`g`,Ht,[...r[2]||=[P(`path`,{d:`M74.34,77.66a8,8,0,0,1,0-11.32l48-48a8,8,0,0,1,11.32,0l48,48a8,8,0,0,1-11.32,11.32L136,43.31V128a8,8,0,0,1-16,0V43.31L85.66,77.66A8,8,0,0,1,74.34,77.66ZM240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16h68a4,4,0,0,1,4,4v3.46c0,13.45,11,24.79,24.46,24.54A24,24,0,0,0,152,128v-4a4,4,0,0,1,4-4h68A16,16,0,0,1,240,136Zm-40,32a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z`},null,-1)]])):w(n)===`light`?(S(),N(`g`,Ut,[...r[3]||=[P(`path`,{d:`M238,136v64a14,14,0,0,1-14,14H32a14,14,0,0,1-14-14V136a14,14,0,0,1,14-14H80a6,6,0,0,1,0,12H32a2,2,0,0,0-2,2v64a2,2,0,0,0,2,2H224a2,2,0,0,0,2-2V136a2,2,0,0,0-2-2H176a6,6,0,0,1,0-12h48A14,14,0,0,1,238,136ZM84.24,76.24,122,38.49V128a6,6,0,0,0,12,0V38.49l37.76,37.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48ZM198,168a10,10,0,1,0-10,10A10,10,0,0,0,198,168Z`},null,-1)]])):w(n)===`regular`?(S(),N(`g`,Wt,[...r[4]||=[P(`path`,{d:`M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H80a8,8,0,0,1,0,16H32v64H224V136H176a8,8,0,0,1,0-16h48A16,16,0,0,1,240,136ZM85.66,77.66,120,43.31V128a8,8,0,0,0,16,0V43.31l34.34,34.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,77.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z`},null,-1)]])):w(n)===`thin`?(S(),N(`g`,Gt,[...r[5]||=[P(`path`,{d:`M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H80a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H176a4,4,0,0,1,0-8h48A12,12,0,0,1,236,136ZM82.83,74.83,124,33.66V128a4,4,0,0,0,8,0V33.66l41.17,41.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z`},null,-1)]])):k(``,!0)],16))}}),qt={key:0},Jt={key:1},Yt={key:2},Xt={key:3},Zt={key:4},Qt={key:5},$t=C({name:`ScalarIconXCircle`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=Te(e);return(e,r)=>(S(),N(`svg`,st({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},w(t)),[pt(e.$slots,`default`),w(n)===`bold`?(S(),N(`g`,qt,[...r[0]||=[P(`path`,{d:`M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z`},null,-1)]])):w(n)===`duotone`?(S(),N(`g`,Jt,[...r[1]||=[P(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`},null,-1),P(`path`,{d:`M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`},null,-1)]])):w(n)===`fill`?(S(),N(`g`,Yt,[...r[2]||=[P(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z`},null,-1)]])):w(n)===`light`?(S(),N(`g`,Xt,[...r[3]||=[P(`path`,{d:`M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`},null,-1)]])):w(n)===`regular`?(S(),N(`g`,Zt,[...r[4]||=[P(`path`,{d:`M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`},null,-1)]])):w(n)===`thin`?(S(),N(`g`,Qt,[...r[5]||=[P(`path`,{d:`M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`},null,-1)]])):k(``,!0)],16))}});function I(e,t){return{code:e,detail:t}}var en=Ee({id:x(),title:x(),namespace:x(),currentVersion:x(),logoUrl:oe([x(),ne()]),slug:x()});function tn(e,t){let n=e=>({success:!1,error:t?.(e)??null});return(...t)=>{try{let r=e(...t);return r instanceof Promise?r.catch(n):r}catch(e){return n(e)}}}function nn(e,t){let n=e=>({success:!1,error:t?.(e)??null}),r=e=>({success:!0,data:e});try{let t=e();return t instanceof Promise?t.then(r).catch(n):r(t)}catch(e){return n(e)}}function rn(e){let t=!0,n=[],r=[];for(let i of e)i.success?r.push(i.data):(t=!1,n.push(i.error));return t?{success:!0,data:r}:{success:!1,error:n}}var an={safeFn:tn,fromUnsafe:nn,resultsToResult:rn};function on({getAccessToken:e,getAgentKey:t}){let n=e?.(),r=t?.();return{...n&&{Authorization:`Bearer ${n}`},...r&&{"x-scalar-agent-key":r}}}function sn({baseUrl:e,getAccessToken:t,getAgentKey:n}){let r=Ee({message:x(),code:x()}),i=an.safeFn(async({path:i,method:a=`get`,query:o,body:s,responseSchema:c})=>{let l=`${e}${i}${o?`?${new URLSearchParams(o)}`:``}`,u=await an.fromUnsafe(async()=>fetch(l,{method:a,...s&&{body:JSON.stringify(s)},headers:{...on({getAccessToken:t,getAgentKey:n})}}),e=>I(`FAILED_TO_FETCH`,e));if(!u.success)return u;let d=await an.fromUnsafe(async()=>u.data.json(),e=>I(`FAILED_TO_FETCH_DATA`,e));if(!d.success)return{success:!1,error:I(`UNKNOWN_ERROR`,`Unknown error occurred. Please contact support.`)};if(!u.data.ok){if(!ot(r,d.data))return{success:!1,error:I(`UNKNOWN_ERROR`,`Unknown error occurred. Please contact support.`)};let e=at(r,d.data);return{success:!1,error:I(e.code,e.message)}}return ot(c,d.data)?{success:!0,data:at(c,d.data)}:{success:!1,error:I(`INVALID_RESPONSE`,`Invalid response. Please contact support`)}});return{search:async e=>i({path:`/vector/registry/search`,query:{query:e},responseSchema:Ee({results:g(en)})}),getDocument:async e=>i({path:`/vector/registry/document/${e.namespace}/${e.slug}`,responseSchema:en}),getKeyDocuments:async()=>i({path:`/vector/registry/documents`,responseSchema:Ee({documents:g(en)})}),getCuratedDocuments:async()=>i({path:`/vector/registry/curated`,responseSchema:Ee({results:g(en)})})}}function cn(e,t){return`${e}/${t}`}var ln=`execute-request`;Ee({method:x(),path:x(),headers:ee(se(x(),x())),body:ee(x()),documentName:x(),documentIdentifier:x({typeComment:`Needed for legacy support for old clients`})});var un=e=>{let t=dn(e,0);if(t===void 0||!pn(e[t]))return;let n=dn(e,t+1);if(n!==void 0)return mn(e,t,n)},dn=(e,t)=>{for(let n=t;n<e.length;n+=1){let t=e[n];if(!fn(t))return n}},fn=e=>e===` `||e===` `||e===`
|
|
15
|
+
import{A as e,Aa as t,An as n,Ao as r,B as i,Ba as a,C as o,Cn as s,Ct as c,D as l,Dt as u,E as d,En as f,Et as p,F as m,Fa as h,Fo as g,Gn as _,Go as ee,Hn as te,Ho as ne,I as re,Ia as ie,In as ae,Jo as oe,Ko as se,Kt as ce,L as le,M as v,N as y,Na as ue,Nn as de,No as fe,On as pe,P as b,Pn as me,R as he,S as ge,Si as _e,T as ve,Ta as ye,U as be,Uo as xe,V as Se,Va as Ce,W as we,Wa as Te,Wo as Ee,Yt as De,b as Oe,d as ke,en as Ae,et as je,fr as Me,j as Ne,jo as Pe,k as Fe,kn as Ie,kt as Le,m as Re,on as ze,pr as Be,qo as x,rt as Ve,tt as He,v as Ue,w as We,wn as Ge,x as Ke,y as qe,za as Je}from"./vendor-C5HmjoOQ.js";import{a as Ye,g as Xe,h as Ze,i as Qe,m as $e,n as et,o as tt,r as nt,s as rt,t as it,v as at,y as ot}from"./ScalarTextInput.vue-DfHAfVG5.js";import{A as st,B as ct,C as lt,D as ut,G as dt,Gt as ft,H as S,K as pt,P as mt,R as ht,S as C,St as gt,Tt as w,U as _t,Yt as T,Z as vt,at as E,b as D,d as O,dt as yt,et as bt,f as k,gt as A,i as j,j as xt,l as M,mt as St,ot as Ct,p as N,tt as wt,u as P,ut as Tt,v as Et,xt as Dt,y as F,yt as Ot}from"./runtime-core.esm-bundler-Byrbbu5Q.js";import{a as kt,i as At,r as jt,t as Mt}from"./modal-VSnkfbyL.js";var Nt={key:0},Pt={key:1},Ft={key:2},It={key:3},Lt={key:4},Rt={key:5},zt=C({name:`ScalarIconArrowRight`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=Te(e);return(e,r)=>(S(),N(`svg`,st({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},w(t)),[pt(e.$slots,`default`),w(n)===`bold`?(S(),N(`g`,Nt,[...r[0]||=[P(`path`,{d:`M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z`},null,-1)]])):w(n)===`duotone`?(S(),N(`g`,Pt,[...r[1]||=[P(`path`,{d:`M216,128l-72,72V56Z`,opacity:`0.2`},null,-1),P(`path`,{d:`M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z`},null,-1)]])):w(n)===`fill`?(S(),N(`g`,Ft,[...r[2]||=[P(`path`,{d:`M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z`},null,-1)]])):w(n)===`light`?(S(),N(`g`,It,[...r[3]||=[P(`path`,{d:`M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z`},null,-1)]])):w(n)===`regular`?(S(),N(`g`,Lt,[...r[4]||=[P(`path`,{d:`M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z`},null,-1)]])):w(n)===`thin`?(S(),N(`g`,Rt,[...r[5]||=[P(`path`,{d:`M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z`},null,-1)]])):k(``,!0)],16))}}),Bt={key:0},Vt={key:1},Ht={key:2},Ut={key:3},Wt={key:4},Gt={key:5},Kt=C({name:`ScalarIconUpload`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=Te(e);return(e,r)=>(S(),N(`svg`,st({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},w(t)),[pt(e.$slots,`default`),w(n)===`bold`?(S(),N(`g`,Bt,[...r[0]||=[P(`path`,{d:`M188,184a16,16,0,1,1,16-16A16,16,0,0,1,188,184Zm36-68H180a12,12,0,0,0,0,24h40v56H36V140H76a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116ZM88.49,80.49,116,53v75a12,12,0,0,0,24,0V53l27.51,27.52a12,12,0,1,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,1,0,17,17Z`},null,-1)]])):w(n)===`duotone`?(S(),N(`g`,Vt,[...r[1]||=[P(`path`,{d:`M232,136v64a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V136a8,8,0,0,1,8-8H224A8,8,0,0,1,232,136Z`,opacity:`0.2`},null,-1),P(`path`,{d:`M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H80a8,8,0,0,1,0,16H32v64H224V136H176a8,8,0,0,1,0-16h48A16,16,0,0,1,240,136ZM85.66,77.66,120,43.31V128a8,8,0,0,0,16,0V43.31l34.34,34.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,77.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z`},null,-1)]])):w(n)===`fill`?(S(),N(`g`,Ht,[...r[2]||=[P(`path`,{d:`M74.34,77.66a8,8,0,0,1,0-11.32l48-48a8,8,0,0,1,11.32,0l48,48a8,8,0,0,1-11.32,11.32L136,43.31V128a8,8,0,0,1-16,0V43.31L85.66,77.66A8,8,0,0,1,74.34,77.66ZM240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16h68a4,4,0,0,1,4,4v3.46c0,13.45,11,24.79,24.46,24.54A24,24,0,0,0,152,128v-4a4,4,0,0,1,4-4h68A16,16,0,0,1,240,136Zm-40,32a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z`},null,-1)]])):w(n)===`light`?(S(),N(`g`,Ut,[...r[3]||=[P(`path`,{d:`M238,136v64a14,14,0,0,1-14,14H32a14,14,0,0,1-14-14V136a14,14,0,0,1,14-14H80a6,6,0,0,1,0,12H32a2,2,0,0,0-2,2v64a2,2,0,0,0,2,2H224a2,2,0,0,0,2-2V136a2,2,0,0,0-2-2H176a6,6,0,0,1,0-12h48A14,14,0,0,1,238,136ZM84.24,76.24,122,38.49V128a6,6,0,0,0,12,0V38.49l37.76,37.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48ZM198,168a10,10,0,1,0-10,10A10,10,0,0,0,198,168Z`},null,-1)]])):w(n)===`regular`?(S(),N(`g`,Wt,[...r[4]||=[P(`path`,{d:`M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H80a8,8,0,0,1,0,16H32v64H224V136H176a8,8,0,0,1,0-16h48A16,16,0,0,1,240,136ZM85.66,77.66,120,43.31V128a8,8,0,0,0,16,0V43.31l34.34,34.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,77.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z`},null,-1)]])):w(n)===`thin`?(S(),N(`g`,Gt,[...r[5]||=[P(`path`,{d:`M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H80a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H176a4,4,0,0,1,0-8h48A12,12,0,0,1,236,136ZM82.83,74.83,124,33.66V128a4,4,0,0,0,8,0V33.66l41.17,41.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z`},null,-1)]])):k(``,!0)],16))}}),qt={key:0},Jt={key:1},Yt={key:2},Xt={key:3},Zt={key:4},Qt={key:5},$t=C({name:`ScalarIconXCircle`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=Te(e);return(e,r)=>(S(),N(`svg`,st({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},w(t)),[pt(e.$slots,`default`),w(n)===`bold`?(S(),N(`g`,qt,[...r[0]||=[P(`path`,{d:`M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z`},null,-1)]])):w(n)===`duotone`?(S(),N(`g`,Jt,[...r[1]||=[P(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`},null,-1),P(`path`,{d:`M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`},null,-1)]])):w(n)===`fill`?(S(),N(`g`,Yt,[...r[2]||=[P(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z`},null,-1)]])):w(n)===`light`?(S(),N(`g`,Xt,[...r[3]||=[P(`path`,{d:`M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`},null,-1)]])):w(n)===`regular`?(S(),N(`g`,Zt,[...r[4]||=[P(`path`,{d:`M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`},null,-1)]])):w(n)===`thin`?(S(),N(`g`,Qt,[...r[5]||=[P(`path`,{d:`M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`},null,-1)]])):k(``,!0)],16))}});function I(e,t){return{code:e,detail:t}}var en=Ee({id:x(),title:x(),namespace:x(),currentVersion:x(),logoUrl:oe([x(),ne()]),slug:x()});function tn(e,t){let n=e=>({success:!1,error:t?.(e)??null});return(...t)=>{try{let r=e(...t);return r instanceof Promise?r.catch(n):r}catch(e){return n(e)}}}function nn(e,t){let n=e=>({success:!1,error:t?.(e)??null}),r=e=>({success:!0,data:e});try{let t=e();return t instanceof Promise?t.then(r).catch(n):r(t)}catch(e){return n(e)}}function rn(e){let t=!0,n=[],r=[];for(let i of e)i.success?r.push(i.data):(t=!1,n.push(i.error));return t?{success:!0,data:r}:{success:!1,error:n}}var an={safeFn:tn,fromUnsafe:nn,resultsToResult:rn};function on({getAccessToken:e,getAgentKey:t}){let n=e?.(),r=t?.();return{...n&&{Authorization:`Bearer ${n}`},...r&&{"x-scalar-agent-key":r}}}function sn({baseUrl:e,getAccessToken:t,getAgentKey:n}){let r=Ee({message:x(),code:x()}),i=an.safeFn(async({path:i,method:a=`get`,query:o,body:s,responseSchema:c})=>{let l=`${e}${i}${o?`?${new URLSearchParams(o)}`:``}`,u=await an.fromUnsafe(async()=>fetch(l,{method:a,...s&&{body:JSON.stringify(s)},headers:{...on({getAccessToken:t,getAgentKey:n})}}),e=>I(`FAILED_TO_FETCH`,e));if(!u.success)return u;let d=await an.fromUnsafe(async()=>u.data.json(),e=>I(`FAILED_TO_FETCH_DATA`,e));if(!d.success)return{success:!1,error:I(`UNKNOWN_ERROR`,`Unknown error occurred. Please contact support.`)};if(!u.data.ok){if(!ot(r,d.data))return{success:!1,error:I(`UNKNOWN_ERROR`,`Unknown error occurred. Please contact support.`)};let e=at(r,d.data);return{success:!1,error:I(e.code,e.message)}}return ot(c,d.data)?{success:!0,data:at(c,d.data)}:{success:!1,error:I(`INVALID_RESPONSE`,`Invalid response. Please contact support`)}});return{search:async e=>i({path:`/vector/registry/search`,query:{query:e},responseSchema:Ee({results:g(en)})}),getDocument:async e=>i({path:`/vector/registry/document/${e.namespace}/${e.slug}`,responseSchema:en}),getKeyDocuments:async()=>i({path:`/vector/registry/documents`,responseSchema:Ee({documents:g(en)})}),getCuratedDocuments:async()=>i({path:`/vector/registry/curated`,responseSchema:Ee({results:g(en)})})}}function cn(e,t){return`${e}/${t}`}var ln=`execute-request`;Ee({method:x(),path:x(),headers:ee(se(x(),x())),body:ee(x()),documentName:x(),documentIdentifier:x({typeComment:`Needed for legacy support for old clients`})});var un=e=>{let t=dn(e,0);if(t===void 0||!pn(e[t]))return;let n=dn(e,t+1);if(n!==void 0)return mn(e,t,n)},dn=(e,t)=>{for(let n=t;n<e.length;n+=1){let t=e[n];if(!fn(t))return n}},fn=e=>e===` `||e===` `||e===`
|
|
16
16
|
`||e===`\r`,pn=e=>e===`{`||e===`[`,mn=(e,t,n)=>{let r;for(let i=n-1;i>t;--i){let t=e[i];if(t===`\r`)return;if(t===`
|
|
17
17
|
`)return hn(r);if(r===void 0)r=t;else if(r[0]===t)r+=t;else return}},hn=e=>e===void 0?0:e[0]===` `?e.length:e,gn=(e,t)=>{let n=_n(e,`toPrecision`,t,t);return n===void 0?_n(e,`toExponential`,t,t):n},_n=(e,t,n,r)=>{let i=e[t](r).replace(vn,`$1`).replace(yn,`$1`);return i.length<=n?i:r===1?void 0:_n(e,t,n,r-1)},vn=/(e)\+/iu,yn=/\.?0*($|e)/iu,bn=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Input must be a JSON string: ${e}`);xn(t)},xn=e=>{if(Sn(e),e<0)throw TypeError(`"maxSize" argument must be positive: ${e}`);if(e<7)throw TypeError(`"maxSize" argument must be at least 7: ${e}`)},Sn=e=>{if(e===void 0)throw TypeError(`"maxSize" argument must be defined`);if(!Number.isInteger(e))throw TypeError(`"maxSize" argument must be an integer: ${e}`)},Cn=(e,t,n)=>wn(e,t,An(t,n)),wn=(e,t,n)=>{if(n>=t)return n;let r=e[n];return r>=Fn&&r<=In?wn(e,t,n+1):n},Tn=(e,t,n)=>n===void 0?n:En(e,An(t,n)),En=(e,t)=>Dn(e,t)?t-3:On(e,t)?t-2:kn(e,t)?t-1:t,Dn=(e,t)=>t>=3&&e[t-3]>=jn&&e[t-3]<=Mn,On=(e,t)=>t>=2&&e[t-2]>=Nn,kn=(e,t)=>t>=1&&e[t-1]>=Pn,An=(e,t)=>t<0||Object.is(t,-0)?Math.max(e+t,0):t,jn=240,Mn=244,Nn=224,Pn=194,Fn=128,In=191,Ln=(e,t,n)=>{let r=globalThis.Buffer.from(e),i=Cn(r,r.length,t),a=Tn(r,r.length,n);return i===0&&a>=r.length?r.toString():r.toString(`utf8`,i,a)},Rn=55296,zn=56319,Bn=56320,Vn=57343,Hn=/[\uD800-\uDFFF]/gu,Un=e=>Wn(e)?e.replace(Hn,`�`):e,Wn=e=>{for(let t=0;t<e.length;t+=1){let n=e.codePointAt(t);if(n>=55296&&n<=57343)return!0}return!1},Gn=({input:e,targetByteCount:t,firstStartSurrogate:n,lastStartSurrogate:r,firstEndSurrogate:i,lastEndSurrogate:a,increment:o,canBacktrack:s,shift:c,charIndexInit:l})=>{let u=l,d=u,f=0;for(;f<t;u+=o){d=u;let t=e.charCodeAt(u);if(Number.isNaN(t))break;if(t<=127){f+=1;continue}if(t<=2047){f+=2;continue}if(f+=3,t<n||t>r)continue;let s=e.charCodeAt(u+o);Number.isNaN(s)||s<i||s>a||(f+=1,u+=o)}return(s&&f>t?d:u)+c},Kn=(e,t,n)=>t<0||Object.is(t,-0)?Jn(e,t,n):qn(e,t,n),qn=(e,t,n)=>Gn({input:e,targetByteCount:t,firstStartSurrogate:Rn,lastStartSurrogate:zn,firstEndSurrogate:Bn,lastEndSurrogate:Vn,increment:1,canBacktrack:n,shift:0,charIndexInit:0}),Jn=(e,t,n)=>Gn({input:e,targetByteCount:-t,firstStartSurrogate:Bn,lastStartSurrogate:Vn,firstEndSurrogate:Rn,lastEndSurrogate:zn,increment:-1,canBacktrack:!n,shift:1,charIndexInit:e.length-1}),Yn=(e,t,n)=>{let r=Kn(e,t,!1),i=Xn(e,n);return Un(r===0&&i===void 0?e:e.slice(r,i))},Xn=(e,t)=>{if(t===void 0)return t;let n=Kn(e,t,!0);return n===e.length?void 0:n},Zn=(e,t,n)=>{let{textEncoder:r,textDecoder:i}=Qn(),a=tr(e),{written:o}=r.encodeInto(e,a),s=Cn(a,o,t),c=Tn(a,o,n),l=c===void 0?o:Math.min(c,o),u=a.subarray(s,l);return i.decode(u)},Qn=()=>($n===void 0&&($n=new globalThis.TextEncoder,er=new globalThis.TextDecoder(`utf8`,{fatal:!1})),{textEncoder:$n,textDecoder:er}),$n,er,tr=e=>{let t=e.length*3;return t>1e5?new Uint8Array(t):((nr===void 0||nr.length<t)&&(nr=new Uint8Array(t)),nr)},nr,rr=(e,t)=>{if(t===void 0)return t;let n=ir(e,t);return n>=e.length*ar?void 0:n},ir=(e,t)=>t<=e.length*-ar?0:t,ar=4,or=(e,t,n)=>{if(typeof e!=`string`)throw TypeError(`First argument must be a string: ${e}`);sr(t),cr(n)},sr=e=>{if(e===void 0)throw TypeError(`Second argument is required.`);lr(`Second`,e)},cr=e=>{e!==void 0&&lr(`Third`,e)},lr=(e,t)=>{if(!Number.isInteger(t))throw TypeError(`${e} argument must be an integer: ${t}`)},ur=e=>{let t=!0,n=0;for(let r=0;r<fr;r+=1){let i=dr(e,r);i<=127||(t&&=!1,i>2047&&(n+=1))}return{asciiOnly:t,longCharsPercentage:n/fr}},dr=(e,t)=>{let n=fr-1,r=1-(n-t)/n,i=Math.round(r*(e.length-1));return e.charCodeAt(i)},fr=50,pr=(e,t,n)=>{if(or(e,t,n),e===``)return e;let r=ir(e,t),i=rr(e,n);return i===void 0&&Object.is(r,0)?Un(e):mr(e,r,i)},mr=(e,t,n)=>{if(e.length<=hr)return Yn(e,t,n);let{asciiOnly:r,longCharsPercentage:i}=ur(e);return r?_r(e,t,n):i>=gr?Yn(e,t,n):vr(e,t,n)},hr=200,gr=.4,_r=(e,t,n)=>`Buffer`in globalThis&&`from`in globalThis.Buffer?Ln(e,t,n):vr(e,t,n),vr=(e,t,n)=>`TextEncoder`in globalThis?Zn(e,t,n):Yn(e,t,n),yr=(e,t)=>Cr(`${br(pr(Sr(JSON.stringify(e)),0,t-Tr.length-wr.length*2))}${Tr}`),br=e=>e.replace(xr,``),xr=/(\\|\\u[0-9a-fA-F]{0,3})$/u,Sr=e=>e.slice(wr.length,-wr.length),Cr=e=>`${wr}${e}${wr}`,wr=`"`,Tr=`...`,Er=e=>globalThis.Buffer.byteLength(e),Dr=e=>{let t=e.length,n=t;for(let r=0;r<t;r+=1){let t=e.charCodeAt(r);if(t<=Or)continue;if(t<=kr){n+=1;continue}if(n+=2,t<Ar||t>jr)continue;let i=e.charCodeAt(r+1);i<Mr||i>Nr||(r+=1)}return n},Or=127,kr=2047,Ar=55296,jr=56319,Mr=56320,Nr=57343,Pr=()=>Fr.bind(void 0,new TextEncoder),Fr=(e,t)=>{let n=Ir(t);return e.encodeInto(t,n).written},Ir=e=>{let t=e.length*3;return t>1e5?new Uint8Array(t):((Lr===void 0||Lr.length<t)&&(Lr=new Uint8Array(t)),Lr)},Lr,Rr=()=>`Buffer`in globalThis&&`byteLength`in globalThis.Buffer?Er:`TextEncoder`in globalThis?zr.bind(void 0,Pr()):Dr,zr=(e,t)=>t.length<100?Dr(t):e(t),Br=Rr(),Vr=e=>{if(e===null)return Hr;if(e===!0)return Ur;if(e===!1)return Wr;let t=typeof e;return t===`object`?Gr:t===`number`?JSON.stringify(e).length:Kr(e)},Hr=4,Ur=4,Wr=5,Gr=2,Kr=e=>Br(JSON.stringify(e)),qr=({size:e,increment:t,maxSize:n,truncatedProps:r,path:i,value:a})=>{let o=e+t,s=o>n;return s?{size:e,stop:s,truncatedProps:[...r,{path:i,value:a}]}:{size:o,stop:s,truncatedProps:r}},Jr=e=>Vr(e),Yr=(e,t,n)=>Qr({empty:e,indent:t,depth:n,keySpaceSize:0})+ei(e),Xr=({key:e,empty:t,indent:n,depth:r})=>{let i=Qr({empty:t,indent:n,depth:r,keySpaceSize:1}),a=Kr(e),o=ei(t);return i+a+Zr+o},Zr=1,Qr=({empty:e,indent:t,depth:n,keySpaceSize:r})=>{if(t===void 0)return 0;let i=$r+t*(n+1),a=e?$r+t*n:0;return r+i+a},$r=1,ei=e=>e?0:ti,ti=1,ni=({parent:e,truncatedProps:t,path:n,increment:r,maxSize:i,key:a,empty:o,size:s,truncateValue:c,indent:l,depth:u})=>{let d=e[a],f=[...n,a],{size:p,stop:m,truncatedProps:h}=qr({size:s,increment:r,maxSize:i,truncatedProps:t,path:f,value:d});return m?{empty:o,size:p,truncatedProps:h}:ri({value:d,truncatedProps:t,path:f,maxSize:i,empty:o,size:s,newSize:p,truncateValue:c,indent:l,depth:u})},ri=({value:e,truncatedProps:t,path:n,maxSize:r,empty:i,size:a,newSize:o,truncateValue:s,indent:c,depth:l})=>{let{value:u,size:d,truncatedProps:f}=s({value:e,truncatedProps:t,path:n,size:o,maxSize:r,indent:c,depth:l+1});return u===void 0?{empty:i,size:a,truncatedProps:f}:{empty:!1,size:d,value:u,truncatedProps:f}},ii=({array:e,truncatedProps:t,path:n,size:r,maxSize:i,truncateValue:a,indent:o,depth:s})=>{let c=[],l={empty:!0,size:r,truncatedProps:t};for(let t=0;t<e.length;t+=1){let r=Yr(l.empty,o,s);l=ni({parent:e,truncatedProps:l.truncatedProps,path:n,increment:r,maxSize:i,key:t,empty:l.empty,size:l.size,truncateValue:a,indent:o,depth:s}),l.value!==void 0&&c.push(l.value)}return{value:c,size:l.size,truncatedProps:l.truncatedProps}},ai=({object:e,truncatedProps:t,path:n,size:r,maxSize:i,truncateValue:a,indent:o,depth:s})=>{let c={},l={empty:!0,size:r,truncatedProps:t};for(let t in e){let r=Xr({key:t,empty:l.empty,indent:o,depth:s});l=ni({parent:e,truncatedProps:l.truncatedProps,path:n,increment:r,maxSize:i,key:t,empty:l.empty,size:l.size,truncateValue:a,indent:o,depth:s}),l.value!==void 0&&(c[t]=l.value)}return{value:c,size:l.size,truncatedProps:l.truncatedProps}},oi=({value:e,truncatedProps:t,path:n,size:r,maxSize:i,indent:a,depth:o})=>{let{size:s,stop:c,truncatedProps:l}=qr({size:r,increment:Jr(e),maxSize:i,truncatedProps:t,path:n,value:e});return c?{value:void 0,size:s,truncatedProps:l}:si({value:e,truncatedProps:l,path:n,size:s,maxSize:i,indent:a,depth:o})},si=({value:e,truncatedProps:t,path:n,size:r,maxSize:i,indent:a,depth:o})=>typeof e!=`object`||!e?{value:e,size:r,truncatedProps:t}:Array.isArray(e)?ii({array:e,truncatedProps:t,path:n,size:r,maxSize:i,truncateValue:oi,indent:a,depth:o}):ai({object:e,truncatedProps:t,path:n,size:r,maxSize:i,truncateValue:oi,indent:a,depth:o}),ci=(e,t)=>{bn(e,t);let n=li(e),r=ui(e),{value:i,truncatedProps:a}=oi({value:r,truncatedProps:[],path:[],size:0,maxSize:t,indent:n,depth:0});return{jsonString:di({newValue:i,value:r,maxSize:t,indent:n}),truncatedProps:a}},li=e=>{let t=un(e);return typeof t==`string`?t.length:t},ui=e=>{try{return JSON.parse(e)}catch(t){throw TypeError(`Invalid JSON string: "${e}"\n${t.message}`)}},di=({newValue:e,value:t,maxSize:n,indent:r})=>e===void 0?typeof t==`number`?gn(t,n):yr(t,n):JSON.stringify(e,void 0,r),fi=5e4,pi=an.safeFn(async e=>e.headers.get(`content-type`)===`application/json`?{success:!0,data:await e.json()}:{success:!0,data:await e.text()},e=>I(`FAILED_TO_PARSE_RESPONSE_BODY`,{originalError:e})),mi=e=>JSON.parse(ci(JSON.stringify(e),fi).jsonString),hi=an.safeFn(async(e,t)=>{let n=await fetch(e,t),r=await pi(n);return n.ok?r.success?{success:!0,data:{status:n.status,responseBody:mi(r.data),headers:Object.fromEntries(n.headers.entries())}}:r:{success:!1,error:I(`REQUEST_NOT_OK`,{status:n.status,url:n.url,responseBody:mi(r.success?r.data:void 0),headers:Object.fromEntries(n.headers.entries())})}},e=>I(`FAILED_TO_FETCH`,{originalError:e}));function gi({path:e,activeServer:t,proxyUrl:n,queryParams:r}){return Be(n,kt({path:e,server:t,urlParams:r}))}var _i=an.safeFn(async({documentSettings:e,toolCallId:t,chat:n,proxyUrl:r,input:{method:i,path:a,body:o,headers:s,documentName:c}})=>{let l=e[c];if(!l)return{success:!1,error:I(`DOCUMENT_SETTINGS_COULD_NOT_BE_DETERMINED`,{documentName:c})};let u=At(l.securitySchemes).reduce((e,t)=>{let n=t.format===`basic`?`Basic ${Me(t.value)}`:t.format===`bearer`?`Bearer ${t.value}`:t.value;return t.in===`header`?e.headers[t.name]=n:t.in===`query`?e.queryParams.set(t.name,n):t.in===`cookie`&&(e.cookies[t.name]=n),e},{headers:{},queryParams:new URLSearchParams,cookies:{}}),d=Object.entries(u.cookies).map(([e,t])=>`${e}=${t}`).join(`; `),f={method:i,body:o,headers:{...s,...u.headers,Cookie:d}},p=await hi(gi({path:a,activeServer:l.activeServer,proxyUrl:r,queryParams:u.queryParams}),f);return n.addToolOutput({tool:ln,toolCallId:t,output:p,state:`output-available`}),p},e=>I(`FAILED_TO_EXECUTE_REQUEST`,e)),vi={DEFAULT_PROXY_URL:`https://proxy.scalar.com`,PRIVACY_POLICY:`https://scalar.com/legal/privacy-policy`,TERMS_AND_CONDITIONS:`https://scalar.com/legal/terms-and-conditions`,AGENT_SCALAR_DOCUMENTATION:`https://scalar.com/products/agent/getting-started`,PROXY_SOURCE_CODE:`https://github.com/scalar/scalar/tree/main/projects/proxy-scalar-com`};function yi(e){return Object.values(e.paths??{}).flatMap(e=>Object.values(e??{}))}function bi(e,t,r){let i=n(t?.components?.securitySchemes,{},r,e),a=ae(t.security),o=de(r.getAuthSelectedSchemas({type:`document`,documentName:e}),void 0,a);return me(i,o.selectedSchemes[o.selectedIndex]??{})}function xi(e){let t=[];for(let[n,r]of Object.entries(e.workspace.documents))_(r)&&t.push([n,r]);return Object.fromEntries(t.map(([t,n])=>[t,{activeServer:pe(n,null,null,Ie(n.servers,{documentUrl:n[`x-scalar-original-source-url`]})),securitySchemes:bi(t,n,e.auth)}]))}var Si=nt(),Ci=()=>{let e=e=>`${et.AUTH}-${e}`;return{getAuth:t=>_e(Ue,JSON.parse(Si.getItem(e(t))??`{}`)),setAuth:(t,n)=>{Si.setItem(e(t),JSON.stringify(n))}}},wi=({documentName:e,workspaceStore:t})=>{let n=Ci().getAuth(e);t.auth.load({[e]:n})};function Ti(e){try{return JSON.parse(e)}catch{return}}var Ei=`scalar/agent-terms-accepted`;function Di(){let e=A(!1);ht(()=>{e.value=localStorage.getItem(Ei)===`true`});function t(){e.value=!0,localStorage.setItem(Ei,`true`)}return{accepted:e,accept:t}}var Oi=5e3,ki=`scalar-tmp-doc`;function Ai({namespace:e,slug:t}){localStorage.setItem(ki,JSON.stringify({namespace:e,slug:t}))}var ji=Ee({namespace:x(),slug:x()});function Mi(){let e=localStorage.getItem(ki);if(e)return at(ji,JSON.parse(e))}function Ni(){localStorage.getItem(ki)&&localStorage.removeItem(ki)}function Pi(){let e=Q(),t=A();function n(t){let n=`${e.baseUrl}${t}`;return Be(e.platformProxyUrl,n)}async function r(r,i=!1){try{t.value={type:`uploading`};let a=await fetch(n(`/core/share/upload/apis${i?`?source=agent`:``}`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({document:r})});if(!a.ok){t.value={type:`error`,error:`Failed to upload your OpenAPI document.`};return}let o=await a.json(),s=Ee({url:x(),namespace:x(),slug:x()});if(!ot(s,o)){t.value={type:`error`,error:`Failed to process document.`};return}let c=at(s,o);t.value={type:`processing`};let l=await fetch(n(`/vector/registry/embeddings/${c.namespace}/${c.slug}`),{method:`GET`});if(Ai({namespace:c.namespace,slug:c.slug}),await e.addDocument({namespace:c.namespace,slug:c.slug,removable:!1,tmp:!0}),!l.ok){t.value={type:`error`,error:`Failed to embed document.`};return}return t.value={type:`done`},e.uploadedTmpDocumentUrl.value=c.url,setTimeout(()=>{t.value=void 0},Oi),c}catch{t.value={type:`error`,error:`Failed to upload your OpenAPI document.`};return}}return{uploadTempDocument:r,uploadState:t}}var Fi=({debounceDelay:e=500,maxWait:t=1e4,persistAuth:n=!1})=>{let{execute:r}=He({delay:e,maxWait:t}),i=Ci(),a=()=>typeof n==`function`?n():n;return{hooks:{onWorkspaceStateChanges(e){a()&&e.type===`auth`&&r(`auth`,()=>i.setAuth(e.documentName,e.value))}}}},Ii=an.safeFn(async({namespace:e,slug:t,workspaceStore:n,registryDocuments:r,getAccessToken:i,registryUrl:a,config:o,api:s,removable:c})=>{let l=await s.getDocument({namespace:e,slug:t});if(!l.success)return l;r.value.push({...l.data,removable:c});let u=new URL(`/@${e}/apis/${t}/latest`,a),d=[],f=i?.();f&&d.push({domains:[new URL(a).host],headers:{"x-scalar-auth":f}});let p=await tt(u.toString(),{plugins:[Ye({headers:d})],treeShake:!1}),m=cn(e,t);return await n.addDocument({name:m,document:p},o),n.update(`x-scalar-active-document`,m),wi({documentName:m,workspaceStore:n}),{success:!0,data:l.data}},e=>I(`UNABLE_TO_LOAD_DOCUMENT`,e)),Li=`vercel.ai.error`,Ri=Symbol.for(Li),zi,Bi,Vi=class e extends (Bi=Error,zi=Ri,Bi){constructor({name:e,message:t,cause:n}){super(t),this[zi]=!0,this.name=e,this.cause=n}static isInstance(t){return e.hasMarker(t,Li)}static hasMarker(e,t){let n=Symbol.for(t);return typeof e==`object`&&!!e&&n in e&&typeof e[n]==`boolean`&&e[n]===!0}};function Hi(e){return e==null?`unknown error`:typeof e==`string`?e:e instanceof Error?e.message:JSON.stringify(e)}var Ui=`AI_InvalidArgumentError`,Wi=`vercel.ai.error.${Ui}`,Gi=Symbol.for(Wi),Ki,qi,Ji=class extends (qi=Vi,Ki=Gi,qi){constructor({message:e,cause:t,argument:n}){super({name:Ui,message:e,cause:t}),this[Ki]=!0,this.argument=n}static isInstance(e){return Vi.hasMarker(e,Wi)}},Yi=`AI_JSONParseError`,Xi=`vercel.ai.error.${Yi}`,Zi=Symbol.for(Xi),Qi,$i,ea=class extends ($i=Vi,Qi=Zi,$i){constructor({text:e,cause:t}){super({name:Yi,message:`JSON parsing failed: Text: ${e}.
|
|
18
18
|
Error message: ${Hi(t)}`,cause:t}),this[Qi]=!0,this.text=e}static isInstance(e){return Vi.hasMarker(e,Xi)}},ta=`AI_TypeValidationError`,na=`vercel.ai.error.${ta}`,ra=Symbol.for(na),ia,aa,oa=class e extends (aa=Vi,ia=ra,aa){constructor({value:e,cause:t}){super({name:ta,message:`Type validation failed: Value: ${JSON.stringify(e)}.
|
package/dist/browser/chunks/{ScalarTextInput.vue-D_L-rtQC.js → ScalarTextInput.vue-DfHAfVG5.js}
RENAMED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
|
|
6
6
|
* /____/\____/_/ |_/_____/_/ |_/_/ |_|
|
|
7
7
|
*
|
|
8
|
-
* @scalar/api-reference 1.62.
|
|
8
|
+
* @scalar/api-reference 1.62.4
|
|
9
9
|
*
|
|
10
10
|
* Website: https://scalar.com
|
|
11
11
|
* GitHub: https://github.com/scalar/scalar
|
|
12
12
|
* License: https://github.com/scalar/scalar/blob/main/LICENSE
|
|
13
13
|
**/
|
|
14
14
|
|
|
15
|
-
import{r as e,t}from"./browser-67K6wmG9.js";import{$r as n,Ai as r,Ar as i,Bi as a,Bo as o,Br as s,Ci as c,Di as l,Dn as u,Ei as d,Fi as f,Fn as p,Fo as m,Fr as h,G as g,Gi as ee,Gn as _,Go as v,Gr as te,H as ne,Hi as y,Ho as b,Hr as x,Ii as S,Io as C,Ir as re,J as ie,Ji as ae,Jo as w,Jr as T,Ki as oe,Ko as E,Kr as se,Li as ce,Lo as le,Lr as ue,Mi as D,Mn as O,Mr as de,Ni as k,Nr as fe,Oi as pe,Oo as me,Pi as he,Po as A,Pr as ge,Q as _e,Qr as ve,Ri as ye,Rn as be,Ro as j,Rr as xe,Si as Se,Ti as Ce,Ui as we,Uo as M,Ur as Te,Vi as Ee,Vo as N,Vr as De,Wa as Oe,Wi as ke,Wn as Ae,Wo as P,Wr as je,Xi as Me,Xo as Ne,Xr as Pe,Y as Fe,Yi as Ie,Yo as Le,Yr as Re,Zi as ze,Zn as Be,Zr as Ve,_ as He,_i as Ue,aa as We,ai as Ge,bi as Ke,ca as qe,ci as Je,da as Ye,di as Xe,ei as Ze,fi as Qe,g as $e,ga as et,gi as tt,h as nt,ha as F,hi as rt,ia as it,ii as at,ji as ot,jn as st,jr as ct,ki as lt,kr as ut,la as dt,li as ft,mi as pt,ni as mt,oa as ht,oi as gt,pa as I,pi as _t,pr as vt,qi as yt,qo as L,qr as bt,ra as R,ri as xt,sa as St,si as Ct,ti as wt,ua as Tt,va as Et,vi as Dt,wi as Ot,xi as kt,ya as At,yi as jt,zi as Mt,zo as z,zr as Nt}from"./vendor-BlFFskFr.js";import{A as Pt,B as Ft,D as It,Gt as Lt,H as B,J as Rt,K as zt,Q as Bt,R as Vt,S as Ht,Tt as V,U as Ut,Yt as Wt,at as Gt,b as Kt,d as qt,dt as Jt,f as Yt,gt as Xt,k as Zt,l as Qt,mt as $t,ot as en,p as H,tt as tn,u as U}from"./runtime-core.esm-bundler-Byrbbu5Q.js";var W=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},nn=(e,t,n)=>{if(!e)return!1;let r=W(t)||Array.isArray(t);if(r&&n.get(t)?.has(e))return!0;if(r){let r=n.get(t)??new Set;r.add(e),n.set(t,r)}try{if(e.type===`any`||e.type===`unknown`)return!0;if(e.type===`function`)return typeof t==`function`;if(e.type===`number`)return typeof t==`number`&&!Number.isNaN(t)&&Number.isFinite(t);if(e.type===`string`)return typeof t==`string`;if(e.type===`boolean`)return typeof t==`boolean`;if(e.type===`nullable`)return t===null;if(e.type===`notDefined`)return t===void 0;if(e.type===`array`)return Array.isArray(t)&&t.every(t=>nn(e.items,t,n));if(e.type===`record`)return W(t)?Object.keys(t).every(r=>nn(e.key,r,n)&&nn(e.value,t[r],n)):!1;if(e.type===`object`)return W(t)?Object.keys(e.properties).every(r=>nn(e.properties[r],t[r],n)):!1;if(e.type===`optional`)return t===void 0||nn(e.schema,t,n);if(e.type===`union`)return e.schemas.some(e=>nn(e,t,n));if(e.type===`intersection`)return e.schemas.length===0?!0:W(t)?e.schemas.every(e=>nn(e,t,n)):!1;if(e.type===`literal`)return t===e.value;if(e.type===`lazy`)return nn(e.schema(),t,n);if(e.type===`evaluate`)return nn(e.schema,e.expression(t),n);let r=e;return console.warn(`Unknown schema type:`,r),!1}finally{r&&n.get(t)?.delete(e)}},rn=(e,t,n=new WeakMap)=>nn(e,t,n),an=(e,t)=>{let n=t.get(e);if(n)return n;let r=e.schema();return t.set(e,r),r},on=e=>e.type===`optional`?on(e.schema):e.type===`literal`?!0:e.type===`union`?e.schemas.length>0&&e.schemas.every(on):!1,sn=(e,t,n,r=new WeakMap)=>{if(W(t)&&r.get(t)?.has(e))return 1;let i=W(t);if(i){let n=r.get(t)??new Set;n.add(e),r.set(t,n)}try{if(e.type===`object`){if(!W(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=sn(o,s,n,r);return on(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`?W(t)?1:0:e.type===`optional`?t===void 0?1:sn(e.schema,t,n,r):e.type===`union`?Math.max(...e.schemas.map(e=>sn(e,t,n,r))):e.type===`intersection`?e.schemas.length===0?1:e.schemas.reduce((e,i)=>e+sn(i,t,n,r),0):e.type===`lazy`?sn(an(e,n),t,n,r):e.type===`evaluate`?sn(e.schema,e.expression(t),n,r):rn(e,t)?1:0}finally{i&&r.get(t)?.delete(e)}},cn=(e,t,n,r)=>{if(W(e)||Array.isArray(e)){let i=r.get(e)||new Map;i.set(t,n),r.set(e,i)}},ln=(e,t,n,r)=>{if((W(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 rn(e,t)?t:e.default??0;if(e.type===`string`)return rn(e,t)?t:e.default??``;if(e.type===`boolean`)return rn(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:ln(e.schema,t,n,r);if(e.type===`array`){if(!Array.isArray(t))return[];let i=Array(t.length);cn(t,e,i,n);for(let a=0;a<t.length;a++)i[a]=ln(e.items,t[a],n,r);return i}if(e.type===`record`){if(!W(t))return{};let i={};cn(t,e,i,n);for(let a of Object.keys(t))i[a]=ln(e.value,t[a],n,r);return i}if(e.type===`object`){let i=Object.keys(e.properties),a=W(t)?t:null,o={};cn(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]=ln(i,s,n,r))}return o}if(e.type===`union`)return ln(e.schemas.reduce((e,n)=>{let i=sn(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,ln(i,t,n,r)),{});if(e.type===`literal`)return e.value;if(e.type===`lazy`)return ln(an(e,r),t,n,r);if(e.type===`evaluate`)return ln(e.schema,e.expression(t),n,r);let i=e;return console.warn(`Unknown schema type:`,i),t},un=(e,t,n=new WeakMap,r=new WeakMap)=>ln(e,t,n,r);P({name:L({typeComment:"Name of specification extension property. Has to start with `x-`."}),component:Le({typeComment:`Vue component to render the specification extension`}),renderer:v(Le({typeComment:`Custom renderer to render the specification extension`}))});var dn=P({component:Le({typeComment:`Vue component to render in the view`}),renderer:v(Le({typeComment:`Custom renderer to render the view component (e.g., ReactRenderer)`})),props:v(E(L(),A()),{typeComment:`Additional props to pass to the component`}),sidebar:v(P({show:C(),label:L()}),{typeComment:`Sidebar configuration. Set show: true to display in sidebar.`})});P({"content.start":v(m(dn),{typeComment:`Components to render before the Introduction/Info section`}),"content.end":v(m(dn),{typeComment:`Components to render at specific views in the API Reference`})}),P({onInit:v(j()),onConfigChange:v(j()),onDestroy:v(j())});var fn=j(),pn=P({dashboardUrl:L({default:`https://dashboard.scalar.com`}),registryUrl:L({default:`https://registry.scalar.com`}),proxyUrl:L({default:`https://proxy.scalar.com`}),apiBaseUrl:L({default:`https://api.scalar.com`})},{typeComment:`External service URLs used by Scalar packages`}),mn=P({title:v(L(),{typeComment:`The title of the OpenAPI document.`}),slug:v(L(),{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:v(A(),{typeComment:`Prefill authentication`}),baseServerURL:v(L(),{typeComment:`Base URL for the API server`}),hideClientButton:C({default:!1,typeComment:`Whether to hide the client button`}),proxyUrl:v(L(),{typeComment:`URL to a request proxy for the API client`}),oauth2RedirectUri:v(L(),{typeComment:`Default OAuth 2.0 redirect URI used to prefill auth flows in the API client.`}),searchHotKey:v(w([N(`a`),N(`b`),N(`c`),N(`d`),N(`e`),N(`f`),N(`g`),N(`h`),N(`i`),N(`j`),N(`k`),N(`l`),N(`m`),N(`n`),N(`o`),N(`p`),N(`q`),N(`r`),N(`s`),N(`t`),N(`u`),N(`v`),N(`w`),N(`x`),N(`y`),N(`z`)]),{typeComment:`Key used with CTRL/CMD to open the search modal (defaults to 'k' e.g. CMD+k)`}),servers:v(m(A()),{typeComment:`List of OpenAPI server objects`}),showSidebar:C({default:!0,typeComment:`Whether to show the sidebar`}),showDeveloperTools:w([N(`localhost`),N(`always`),N(`never`)],{typeComment:`Whether and when to show the developer tools.`}),showToolbar:w([N(`localhost`),N(`always`),N(`never`)],{typeComment:`@deprecated Use showDeveloperTools instead`}),operationTitleSource:w([N(`summary`),N(`path`)],{typeComment:`Whether to use the operation summary or the operation path for the sidebar and search`}),theme:w([N(`default`),N(`alternate`),N(`moon`),N(`purple`),N(`solarized`),N(`bluePlanet`),N(`deepSpace`),N(`saturn`),N(`kepler`),N(`elysiajs`),N(`fastify`),N(`mars`),N(`laserwave`),N(`none`)],{typeComment:`A string to use one of the color presets`}),_integration:v(w([N(`adonisjs`),N(`astro`),N(`docusaurus`),N(`dotnet`),N(`elysiajs`),N(`express`),N(`fastapi`),N(`fastify`),N(`go`),N(`hono`),N(`html`),N(`laravel`),N(`litestar`),N(`nestjs`),N(`nextjs`),N(`nitro`),N(`nuxt`),N(`platformatic`),N(`react`),N(`rust`),N(`svelte`),N(`vue`),b()]),{typeComment:`Integration type identifier`}),onRequestSent:v(j(),{typeComment:`onRequestSent is fired when a request is sent`}),persistAuth:C({default:!1,typeComment:`Whether to persist auth to local storage`}),telemetry:C({default:!0,typeComment:`Enables / disables telemetry`}),externalUrls:pn}),hn=w([L(),b(),E(L(),A()),j()]),gn=z([mn,P({default:C({default:!1}),url:v(L(),{typeComment:`URL to an OpenAPI/Swagger document`}),content:v(hn,{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:v(L(),{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:v(L(),{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:v(P({url:v(L()),content:v(hn)}),{typeComment:"@deprecated Use `url` and `content` on the top level instead."}),agent:v(P({key:v(L()),disabled:v(C()),hideAddApi:v(C(),{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`})}),P({layout:w([N(`modern`),N(`classic`)],{typeComment:`The layout to use for the references`}),proxy:v(L(),{typeComment:`@deprecated Use proxyUrl instead`}),fetch:v(j(),{typeComment:"@deprecated Use `customFetch` instead."}),customFetch:v(j(),{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:v(m(fn),{typeComment:`Plugins for the API reference`}),isEditable:C({default:!1,typeComment:`Allows the user to inject an editor for the spec`}),hideModels:C({default:!1,typeComment:`Whether to show models in the sidebar, search, and content.`}),modelsSectionLabel:v(w([N(`Models`),N(`Schemas`),L()]),{typeComment:"Label for the components.schemas section in the sidebar, content, and search. Use `Schemas` for OpenAPI terminology."}),localization:v(P({locale:v(L()),direction:v(w([N(`auto`),N(`ltr`),N(`rtl`)])),translations:v(E(L(),A()))}),{typeComment:`API Reference UI localization. Select a built-in locale, override labels, and control LTR/RTL rendering.`}),documentDownloadType:w([N(`both`),N(`yaml`),N(`json`),N(`direct`),N(`none`)],{typeComment:"Sets the file type of the document to download, set to `none` to hide the download button"}),hideDownloadButton:v(C(),{typeComment:"@deprecated Use `documentDownloadType: 'none'` instead"}),hideTestRequestButton:C({default:!1,typeComment:`Whether to show the "Test Request" button`}),hideSearch:C({default:!1,typeComment:`Whether to show the sidebar search bar`}),showOperationId:C({default:!1,typeComment:`Whether to show the operationId`}),darkMode:v(C(),{typeComment:`Whether dark mode is on or off initially (light mode)`}),forceDarkModeState:v(w([N(`dark`),N(`light`)]),{typeComment:`forceDarkModeState makes it always this state no matter what`}),hideDarkModeToggle:C({default:!1,typeComment:`Whether to show the dark mode toggle`}),metaData:v(A(),{typeComment:`If used, passed data will be added to the HTML header. @see https://unhead.unjs.io/usage/composables/use-seo-meta`}),favicon:v(L(),{typeComment:`Path to a favicon image`}),hiddenClients:v(w([E(L(),w([C(),m(L())])),m(L()),N(!0)]),{typeComment:"List of httpsnippet clients to hide from the clients menu. By default hides Unirest, pass `[]` to show all clients"}),defaultHttpClient:v(P({targetKey:L(),clientKey:L()}),{typeComment:`Determine the HTTP client that is selected by default`}),customCss:v(L(),{typeComment:`Custom CSS to be added to the page`}),onServerChange:v(j(),{typeComment:`onServerChange is fired on selected server change`}),onDocumentSelect:v(j(),{typeComment:`onDocumentSelect is fired when the config is selected`}),onLoaded:v(j(),{typeComment:`Callback fired when the reference is fully loaded`}),onBeforeRequest:v(j(),{typeComment:`Fired before the outbound request is built; callback receives a mutable request builder. Experimental API.`}),onRequestBuilt:v(j(),{typeComment:`Fired right before the outbound request is sent; callback receives the exact fetch Request that goes over the wire. Experimental API.`}),onShowMore:v(j(),{typeComment:`onShowMore is fired when the user clicks the "Show more" button on the references`}),onSidebarClick:v(j(),{typeComment:`onSidebarClick is fired when the user clicks on a sidebar item`}),pathRouting:v(P({basePath:L()}),{typeComment:`Route using paths instead of hashes, your server MUST support this. @experimental`}),mcp:v(P({name:v(L(),{typeComment:`Display name for the MCP server`}),url:v(L(),{typeComment:`URL of the MCP server`}),disabled:v(C(),{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:v(j(),{typeComment:`Customize the heading portion of the hash`}),generateModelSlug:v(j(),{typeComment:`Customize the model portion of the hash`}),generateTagSlug:v(j(),{typeComment:`Customize the tag portion of the hash`}),generateOperationSlug:v(j(),{typeComment:`Customize the operation portion of the hash`}),generateWebhookSlug:v(j(),{typeComment:`Customize the webhook portion of the hash`}),setPageTitle:v(j(),{typeComment:`Customize the browser tab title for the section currently in view`}),redirect:v(j(),{typeComment:`To handle redirects, pass a function that receives the current path/hash and passes that to history.replaceState`}),withDefaultFonts:C({default:!0,typeComment:`Whether to include default fonts`}),defaultOpenFirstTag:C({default:!0,typeComment:`Whether to expand the first tag in the sidebar when no specific URL target is present`}),defaultOpenAllTags:C({default:!1,typeComment:`Whether to expand all tags by default. Warning: this can cause performance issues on big documents`}),expandAllModelSections:C({default:!1,typeComment:`Whether to expand all models by default. Warning: this can cause performance issues on big documents`}),expandAllResponses:C({default:!1,typeComment:`Whether to expand all responses by default. Warning: this can cause performance issues on big documents`}),expandAllSchemaProperties:C({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:v(w([N(`alpha`),j()]),{typeComment:`Function to sort tags`}),operationsSorter:v(w([N(`alpha`),N(`method`),j()]),{typeComment:`Function to sort operations`}),orderSchemaPropertiesBy:w([N(`alpha`),N(`preserve`)],{typeComment:`Order the schema properties by`}),orderRequiredPropertiesFirst:C({default:!0,typeComment:`Sort the schema properties by required ones first`})})]),_n=`https://api.scalar.com/request-proxy`,vn=`https://proxy.scalar.com`,yn=e=>{let t=un(gn,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===_n&&(console.warn(`[DEPRECATED] Warning: configuration.proxyUrl points to our old proxy (${_n}).`),console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${vn}) instead.`),console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${vn}). Read more: https://github.com/scalar/scalar`),t.proxyUrl=vn),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??=Ne,t},bn={key:0},xn={key:1},Sn={key:2},Cn={key:3},wn={key:4},Tn={key:5},En=Ht({name:`ScalarIconArrowUp`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=Oe(e);return(e,r)=>(B(),H(`svg`,Pt({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},V(t)),[zt(e.$slots,`default`),V(n)===`bold`?(B(),H(`g`,bn,[...r[0]||=[U(`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)]])):V(n)===`duotone`?(B(),H(`g`,xn,[...r[1]||=[U(`path`,{d:`M200,112H56l72-72Z`,opacity:`0.2`},null,-1),U(`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)]])):V(n)===`fill`?(B(),H(`g`,Sn,[...r[2]||=[U(`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)]])):V(n)===`light`?(B(),H(`g`,Cn,[...r[3]||=[U(`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)]])):V(n)===`regular`?(B(),H(`g`,wn,[...r[4]||=[U(`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)]])):V(n)===`thin`?(B(),H(`g`,Tn,[...r[5]||=[U(`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)]])):Yt(``,!0)],16))}}),Dn={key:0},On={key:1},kn={key:2},An={key:3},jn={key:4},Mn={key:5},Nn=Ht({name:`ScalarIconLockSimple`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=Oe(e);return(e,r)=>(B(),H(`svg`,Pt({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},V(t)),[zt(e.$slots,`default`),V(n)===`bold`?(B(),H(`g`,Dn,[...r[0]||=[U(`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)]])):V(n)===`duotone`?(B(),H(`g`,On,[...r[1]||=[U(`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),U(`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)]])):V(n)===`fill`?(B(),H(`g`,kn,[...r[2]||=[U(`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)]])):V(n)===`light`?(B(),H(`g`,An,[...r[3]||=[U(`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)]])):V(n)===`regular`?(B(),H(`g`,jn,[...r[4]||=[U(`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)]])):V(n)===`thin`?(B(),H(`g`,Mn,[...r[5]||=[U(`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)]])):Yt(``,!0)],16))}});function Pn(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[he]}'`;default:return`Unknown error type`}}var Fn=Pn;function In(){return Fn}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 Ln=class extends f{constructor(e){super(`Unknown type`),this.schema=e}};function Rn(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function K(e){return e!==void 0}var zn=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:In()({errorType:e,path:n,schema:t,value:r,errors:i}),errors:i}}function*Bn(e,t,n,r){}function*Vn(e,t,n,r){}function*Hn(e,t,n,r){if(!ce(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=Ot(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:lt(),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)),oe(e.minContains)&&a<e.minContains&&(yield q(G.ArrayMinContains,e,n,r)),oe(e.maxContains)&&a>e.maxContains&&(yield q(G.ArrayMaxContains,e,n,r))}function*Un(e,t,n,r){ye(r)||(yield q(G.AsyncIterator,e,n,r))}function*Wn(e,t,n,r){if(!Mt(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*Gn(e,t,n,r){a(r)||(yield q(G.Boolean,e,n,r))}function*Kn(e,t,n,r){yield*J(e.returns,t,n,r.prototype)}function*qn(e,t,n,r){if(!Ee(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*Jn(e,t,n,r){y(r)||(yield q(G.Function,e,n,r))}function*Yn(e,t,n,r){let i=globalThis.Object.values(e.$defs),a=e.$defs[e.$ref];yield*J(a,[...t,...i],n,r)}function*Xn(e,t,n,r){if(!we(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*Zn(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(pe(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(pe(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*Qn(e,t,n,r){ke(r)||(yield q(G.Iterator,e,n,r))}function*$n(e,t,n,r){r!==e.const&&(yield q(G.Literal,e,n,r))}function*er(e,t,n,r){yield q(G.Never,e,n,r)}function*tr(e,t,n,r){J(e.not,t,n,r).next().done===!0&&(yield q(G.Not,e,n,r))}function*nr(e,t,n,r){ee(r)||(yield q(G.Null,e,n,r))}function*rr(e,t,n,r){if(!S.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*ir(e,t,n,r){if(!S.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}/${Rn(t)}`,void 0));if(e.additionalProperties===!1)for(let t of o)a.includes(t)||(yield q(G.ObjectAdditionalProperties,e,`${n}/${Rn(t)}`,r[t]));if(typeof e.additionalProperties==`object`)for(let i of o)a.includes(i)||(yield*J(e.additionalProperties,t,`${n}/${Rn(i)}`,r[i]));for(let i of a){let a=e.properties[i];e.required&&e.required.includes(i)?(yield*J(a,t,`${n}/${Rn(i)}`,r[i]),l(e)&&!(i in r)&&(yield q(G.ObjectRequiredProperty,a,`${n}/${Rn(i)}`,void 0))):S.IsExactOptionalProperty(r,i)&&(yield*J(a,t,`${n}/${Rn(i)}`,r[i]))}}function*ar(e,t,n,r){yt(r)||(yield q(G.Promise,e,n,r))}function*or(e,t,n,r){if(!S.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}/${Rn(e)}`,i));if(typeof e.additionalProperties==`object`)for(let[i,a]of Object.entries(r))o.test(i)||(yield*J(e.additionalProperties,t,`${n}/${Rn(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}/${Rn(t)}`,i)}}function*sr(e,t,n,r){yield*J(Ce(e,t),t,n,r)}function*cr(e,t,n,r){if(!ae(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*lr(e,t,n,r){if(!ae(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)),ae(e.pattern)&&(new RegExp(e.pattern).test(r)||(yield q(G.StringPattern,e,n,r))),ae(e.format)&&(k(e.format)?D(e.format)(r)||(yield q(G.StringFormat,e,n,r)):yield q(G.StringFormatUnknown,e,n,r))}function*ur(e,t,n,r){Ie(r)||(yield q(G.Symbol,e,n,r))}function*dr(e,t,n,r){if(!ae(r))return yield q(G.String,e,n,r);new RegExp(e.pattern).test(r)||(yield q(G.StringPattern,e,n,r))}function*fr(e,t,n,r){yield*J(Ce(e,t),t,n,r)}function*pr(e,t,n,r){if(!ce(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*mr(e,t,n,r){ze(r)||(yield q(G.Undefined,e,n,r))}function*hr(e,t,n,r){if(c(e,t,r))return;let i=e.anyOf.map(e=>new zn(J(e,t,n,r)));yield q(G.Union,e,n,r,i)}function*gr(e,t,n,r){if(!Me(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*_r(e,t,n,r){}function*vr(e,t,n,r){S.IsVoidLike(r)||(yield q(G.Void,e,n,r))}function*yr(e,t,n,i){r(e[he])(e,i)||(yield q(G.Kind,e,n,i))}function*J(e,t,n,r){let i=K(e.$id)?[...t,e]:t,a=e;switch(a[he]){case`Any`:return yield*Bn(a,i,n,r);case`Argument`:return yield*Vn(a,i,n,r);case`Array`:return yield*Hn(a,i,n,r);case`AsyncIterator`:return yield*Un(a,i,n,r);case`BigInt`:return yield*Wn(a,i,n,r);case`Boolean`:return yield*Gn(a,i,n,r);case`Constructor`:return yield*Kn(a,i,n,r);case`Date`:return yield*qn(a,i,n,r);case`Function`:return yield*Jn(a,i,n,r);case`Import`:return yield*Yn(a,i,n,r);case`Integer`:return yield*Xn(a,i,n,r);case`Intersect`:return yield*Zn(a,i,n,r);case`Iterator`:return yield*Qn(a,i,n,r);case`Literal`:return yield*$n(a,i,n,r);case`Never`:return yield*er(a,i,n,r);case`Not`:return yield*tr(a,i,n,r);case`Null`:return yield*nr(a,i,n,r);case`Number`:return yield*rr(a,i,n,r);case`Object`:return yield*ir(a,i,n,r);case`Promise`:return yield*ar(a,i,n,r);case`Record`:return yield*or(a,i,n,r);case`Ref`:return yield*sr(a,i,n,r);case`RegExp`:return yield*cr(a,i,n,r);case`String`:return yield*lr(a,i,n,r);case`Symbol`:return yield*ur(a,i,n,r);case`TemplateLiteral`:return yield*dr(a,i,n,r);case`This`:return yield*fr(a,i,n,r);case`Tuple`:return yield*pr(a,i,n,r);case`Undefined`:return yield*mr(a,i,n,r);case`Union`:return yield*hr(a,i,n,r);case`Uint8Array`:return yield*gr(a,i,n,r);case`Unknown`:return yield*_r(a,i,n,r);case`Void`:return yield*vr(a,i,n,r);default:if(!ot(a[he]))throw new Ln(e);return yield*yr(a,i,n,r)}}function br(...e){return new zn(e.length===3?J(e[0],e[1],``,e[2]):J(e[0],[],``,e[1]))}var xr=Symbol(),Sr=()=>It(xr,!1),Cr=()=>{Ut(xr,!0)},wr=Ht({inheritAttrs:!1,__name:`ScalarFormInput`,props:{is:{default:`button`}},setup(e){let{cx:t}=Et(),n=Sr(),r=At({base:[`bg-b-1.5 flex items-center text-c-2 gap-0.75 p-3 text-base`,`outline-offset-[-1px] has-[:focus-visible]:outline`],variants:{grouped:{true:`first:rounded-t-[inherit] last:rounded-b-[inherit]`,false:`rounded shadow-border`},button:{true:`cursor-pointer hover:bg-b-2`}}});return(i,a)=>(B(),qt(Rt(e.is),Pt({type:e.is===`button`?`button`:void 0},V(t)(V(r)({button:e.is===`button`,grouped:V(n)}))),{default:Gt(()=>[zt(i.$slots,`default`)]),_:3},16,[`type`]))}});function Tr(e,t,n){let r=new Map;t.forEach((e,t)=>r.set(e,t));let i=[],a=[];return e.forEach(e=>{let t=r.get(n(e));if(t===void 0){a.push(e);return}i[t]=e}),[...i.filter(e=>e!==void 0),...a]}var Er=e=>!!(e?.[`x-internal`]||e?.[`x-scalar-ignore`]),Y=({tagsMap:e,name:t,documentId:n,generateId:r})=>(e.get(t)||e.set(t,{id:r({type:`tag`,tag:{name:t},parentId:n}),parentId:n,entries:[],tag:{name:t}}),e.get(t));function Dr(e){return e.replace(/!\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/(\*{3}|_{3})(.+?)\1/g,`$2`).replace(/(\*{2}|_{2})(.+?)\1/g,`$2`).replace(/(\*|_)(.+?)\1/g,`$2`).replace(/~~(.+?)~~/g,`$1`).replace(/`([^`]+)`/g,`$1`).replace(/<[^>]+>/g,``).replace(/[<>]/g,``).trim()}function Or(e){let t=e.split(/\r?\n/),n=[],r=!1,i=``,a=0;for(let e=0;e<t.length;e++){let o=t[e]??``,s=o.trimStart();if(r){let e=/^(`{3,}|~{3,})\s*$/.exec(s)?.[1];e&&e[0]===i&&e.length>=a&&(r=!1);continue}else{let e=/^(`{3,}|~{3,})/.exec(s)?.[1];if(e){r=!0,i=e.charAt(0),a=e.length;continue}}if(/^(?: {4}|\t)/.test(o))continue;let c=/^(#{1,6})\s+(.+?)(?:\s+#+\s*)?$/.exec(s),l=c?.[1],u=c?.[2];if(l&&u){let e=Dr(u);e&&n.push({depth:l.length,value:e});continue}let d=t[e+1];if(!d||/^(?: {4}|\t)/.test(d))continue;let f=/^(=+|-+)\s*$/.exec(d.trim())?.[1];if(!f)continue;let p=Dr(s);p&&(n.push({depth:f[0]===`=`?1:2,value:p}),e++)}return n}var kr=(e={})=>{let t=new Map;return{slug(n){let r=Fe(n,e),i=t.get(r);if(i===void 0)return t.set(r,0),r;let a=i+1;return t.set(r,a),`${r}-${a}`},reset(){t.clear()}}},Ar=(e,t)=>e.map(e=>({...e,slug:t(e.value)}));function jr(e){let{slug:t}=kr();return Ar(Or(e),t)}var Mr=e=>{let t=Math.min(...e.map(e=>e.depth));return t>=1&&t<=6?t:1},Nr={TITLE:`Introduction`,SLUG:`introduction`},Pr=(e,t,n)=>({id:e({type:`text`,depth:1,slug:Nr.SLUG,parentId:t,info:n,value:Nr.TITLE}),title:Nr.TITLE,type:`text`}),Fr=({generateId:e,parentId:t,info:n})=>{let r=n.description?.trim();if(!r)return[Pr(e,t,n)];let i=jr(r),a=Mr(i),o=[],s=null,c=null;if(!r.startsWith(`#`)){let r=Pr(e,t,n);o.push(r),s=r}for(let r of i){if(r.depth!==a&&r.depth!==a+1)continue;let i={id:e({type:`text`,depth:r.depth,slug:r.slug,parentId:t,info:n,value:r.value}),title:r.value,type:`text`};r.depth===a?(i.children=[],s?(s.children||=[],s.children.push(i)):o.push(i),c=i):c&&c.children?.push(i)}return o},Ir=({ref:e,name:t,generateId:n,parentTag:r,_schema:i,parentId:a})=>{let o=n({name:t,type:`model`,parentTag:r,parentId:a,schema:i}),s=F(i);return{id:o,title:s&&`title`in s&&s.title||t,name:t,ref:e,type:`model`}},Lr=({document:e,tagsMap:t,generateId:n,documentId:r})=>{let i=e.components?.schemas??{},a=[];for(let e in i){if(!Object.hasOwn(i,e))continue;let o=F(i[e],et);if(Er(o))continue;let s=`#/components/schemas/${e}`;o?.[`x-tags`]?o[`x-tags`].forEach(i=>{let{tag:a,id:o}=Y({tagsMap:t,name:i,documentId:r,generateId:n});t.get(i)?.entries.push(Ir({ref:s,name:e,generateId:n,parentTag:{tag:a,id:o},parentId:r}))}):a.push(Ir({ref:s,name:e,generateId:n,_schema:F(i[e]),parentId:r}))}return a},Rr=(...e)=>{for(let t of e){let e=t?.trim();if(e)return e}},zr=(e,t)=>typeof t.address==`string`&&t.address.length>0?t.address:e,Br=(e,t)=>Rr(e.title,e.summary)??zr(t,e),Vr=(e,t)=>Rr(e.title,e.summary)??t,Hr=(e,t)=>Rr(e.title,e.summary,e.name)??t,Ur=e=>e.match(/^#\/channels\/([^/]+)$/)?.[1],Wr=(e,t)=>{let n=t.channel;if(!n||!(`$ref`in n))return;let r=Ur(n.$ref);if(!r)return;let i=e.channels?.[r];if(i)return{channelName:r,channel:F(i,et)}},Gr=(e,t,n)=>{let r=t.messages??{};if(e.messages===void 0)return p(r);if(e.messages.length===0)return[];let i=`#/channels/${n}/messages/`,a=new Set;for(let t of e.messages)if(`$ref`in t){if(t.$ref.startsWith(i)){let e=t.$ref.slice(i.length);if(r[e]){a.add(e);continue}}for(let[e,n]of Object.entries(r))n&&`$ref`in n&&n.$ref===t.$ref&&a.add(e)}return[...a]},Kr=e=>{let t=F(e,et);return{name:t.name,description:t.description}},qr=(e,t)=>{if(t===`alpha`){e.sort((e,t)=>e.title.localeCompare(t.title));return}if(t===`method`){e.sort((e,t)=>e.action.localeCompare(t.action));return}typeof t==`function`&&e.sort((e,n)=>t({method:e.action,path:e.operationName,ref:e.operationName,httpVerb:e.action},{method:n.action,path:n.operationName,ref:n.operationName,httpVerb:n.action}))},Jr=e=>{e.sort((e,t)=>e.title.localeCompare(t.title))},Yr=({channelName:e,channel:t,operationId:n,messageNames:r,generateId:i})=>{let a=r.flatMap(r=>{let a=t.messages?.[r];if(!a)return[];let o=F(a,et);return Er(o)?[]:[{type:`asyncapi-message`,id:i({type:`asyncapi-message`,messageName:r,channelName:e,parentId:n}),title:Hr(o,r),messageName:r,channelName:e}]});return Jr(a),a},Xr=({operationName:e,operation:t,channel:n,channelName:r,channelAddress:i,generateId:a,parentId:o})=>{if(Er(t))return;let s=a({type:`asyncapi-operation`,operationName:e,parentId:o}),c=Yr({channelName:r,channel:n,operationId:s,messageNames:Gr(t,n,r),generateId:a});return{type:`asyncapi-operation`,id:s,title:Vr(t,e),operationName:e,action:t.action,channelName:r,channelAddress:i,children:c.length>0?c:void 0}},Zr=({bucket:e,operationEntries:t,generateId:n,parentId:r,parentTag:i,operationsSorter:a,document:o})=>{if(Er(e.channel))return;let s=n({type:`asyncapi-channel`,channelName:e.channelName,parentId:r,parentTag:i}),c=t.flatMap(({operationName:t,operation:r})=>{let i=Xr({operationName:t,operation:r,channel:e.channel,channelName:e.channelName,channelAddress:e.channelAddress,generateId:n,parentId:s});return i?[i]:[]});if(qr(c,a),c.length===0)return;let l=o.channels?.[e.channelName];return l&&!(`$ref`in l)&&(l[`x-scalar-order`]=c.map(e=>e.id)),{type:`asyncapi-channel`,id:s,title:Br(e.channel,e.channelName),channelName:e.channelName,channelAddress:e.channelAddress,children:c}},Qr=({tag:e,generateId:t,children:n,parentId:r})=>{let i=t({type:`tag`,tag:e,parentId:r,isGroup:!1}),a=e[`x-displayName`]??e.name??`Untitled Tag`;return e[`x-scalar-order`]=n.map(e=>e.id),{type:`tag`,id:i,title:a,name:e.name||a,description:e.description,children:n,isGroup:!1,isWebhooks:!1}},$r=({tagKeys:e,tagsMap:t,documentId:n,options:{tagsSorter:r,generateId:i},sortOrder:a})=>{let o=e.flatMap(e=>{let{tag:r,entries:a}=Y({tagsMap:t,name:e,documentId:n,generateId:i});if(Er(r))return[];let o=r[`x-scalar-order`];return Qr({tag:r,generateId:i,children:o?Tr(a,o,e=>e.id):a,parentId:n})});return a?Tr(o,a,e=>e.id):(r===`alpha`?o.sort((e,t)=>e.title.localeCompare(t.title)):typeof r==`function`&&o.sort((e,a)=>r(Y({tagsMap:t,name:e.name,documentId:n,generateId:i}).tag,Y({tagsMap:t,name:a.name,documentId:n,generateId:i}).tag)),o)},ei=(e,t,n)=>{let r=e.get(t);if(r)return r;let i={channelName:t,channel:n,channelAddress:zr(t,n),channelTags:n.tags?.map(Kr)??[],operations:[]};return e.set(t,i),i},ti=e=>{let t=new Map;for(let[n,r]of Object.entries(e.channels??{})){if(!r)continue;let e=F(r,et);Er(e)||ei(t,n,e)}for(let[n,r]of Object.entries(e.operations??{})){if(!r)continue;let i=F(r,et);if(Er(i))continue;let a=Wr(e,i);a&&ei(t,a.channelName,a.channel).operations.push({operationName:n,operation:i})}return t},ni=(e,t,n)=>{let{generateId:r,operationsSorter:i,tagsSorter:a,hideModels:o,modelsSectionLabel:s}=ie(e,n),c=r({type:`document`,info:t.info,name:e}),l=ti(t),u=new Map,d=[];for(let e of l.values()){if(e.channelTags.length===0){let n=Zr({bucket:e,operationEntries:e.operations,generateId:r,parentId:c,operationsSorter:i,document:t});n&&d.push(n)}for(let n of e.channelTags){let{id:a,entries:o}=Y({tagsMap:u,name:n.name??`Untitled Tag`,documentId:c,generateId:r});if(o.some(t=>t.type===`asyncapi-channel`&&t.channelName===e.channelName))continue;let s=Zr({bucket:e,operationEntries:e.operations,generateId:r,parentId:a,parentTag:{tag:n,id:a},operationsSorter:i,document:t});s&&o.push(s)}}let f=t.components?F(t.components,et):void 0,p=!o&&f?.schemas?Lr({documentId:c,document:{components:f},generateId:r,tagsMap:u}):[],m=Fr({generateId:r,parentId:c,info:t.info});u.size>0&&m.push(...$r({tagKeys:[...u.keys()],tagsMap:u,documentId:c,options:{tagsSorter:a,generateId:r},sortOrder:t[`x-scalar-order`]})),i===`alpha`&&d.sort((e,t)=>e.title.localeCompare(t.title)),m.push(...d),p.length&&m.push({type:`models`,id:r({type:`model`,parentId:c}),title:s,name:s,children:p});let h=t[`x-scalar-order`],g=h?Tr(m,h,e=>e.id):m;return t[`x-scalar-order`]=R(g.map(e=>e.id)),{id:c,type:`document`,title:t.info?.title?.trim()||`Untitled Document`,name:e,children:g,icon:t[`x-scalar-icon`]}};function ri(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}var ii=e=>{let t=new Set(e[`x-draft-examples`]??[]);if(e.requestBody){let n=F(e.requestBody);Object.values(n.content??{}).forEach(e=>{Object.keys(e.examples??{}).forEach(e=>{t.add(e)})})}return e.parameters&&e.parameters.forEach(e=>{let n=F(e)??{};`content`in n&&n.content&&Object.values(n.content).forEach(e=>{Object.keys(e.examples??{}).forEach(e=>{t.add(e)})}),`examples`in n&&n.examples&&Object.keys(n.examples??{}).forEach(e=>{t.add(e)})}),Array.from(t)},ai=e=>e.deprecated||e[`x-scalar-stability`]===x.Deprecated,oi=({ref:e,operation:t,method:n,path:r,generateId:i,parentId:a,parentTag:o,operationTitleSource:s})=>{let c=i({type:`operation`,operation:t,parentTag:o,method:n,path:r,parentId:a}),l=s===`path`?r:t.summary?.trim()?t.summary:r,u=ai(t),d=ii(t).map(e=>({type:`example`,id:i({type:`example`,parentId:c,name:e}),title:e,name:e}));return{id:c,title:l,path:r,method:n,ref:e,type:`operation`,isDeprecated:u,children:d.length?d:void 0}},si=({document:e,tagsMap:t,generateId:n,documentId:r,operationTitleSource:i})=>{let a=[];return Object.entries(e.paths??{}).forEach(([e,o])=>{be(o,(o,s)=>{let c=F(s,et);if(!c||Er(c))return;let l=`#/paths/${ri(e)}/${o}`;c.tags?.length?c.tags.forEach(a=>{let{tag:s,id:u}=Y({tagsMap:t,name:a,documentId:r,generateId:n});t.get(a)?.entries.push(oi({ref:l,operation:c,method:o,path:e,parentTag:{tag:s,id:u},generateId:n,parentId:u,operationTitleSource:i}))}):a.push(oi({ref:l,operation:c,method:o,path:e,generateId:n,parentId:r,operationTitleSource:i}))})}),{untaggedOperations:a}},ci=e=>e?Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(`x-`))):{},li=({tag:e,generateId:t,children:n,isGroup:r=!1,parentId:i})=>{let a=t({type:`tag`,tag:e,parentId:i,isGroup:r}),o=e[`x-displayName`]??e.name??`Untitled Tag`;return e[`x-scalar-order`]=n.map(e=>e.id),{id:a,title:o,name:e.name||o,description:e.description,children:n,isGroup:r,isWebhooks:!1,type:`tag`,xKeys:ci(R(e))}},ui=({_keys:e,tagsMap:t,options:{tagsSorter:n,operationsSorter:r,generateId:i},documentId:a,sortOrder:o})=>{let s=e.flatMap(e=>{let{tag:n,entries:o}=Y({tagsMap:t,name:e,documentId:a,generateId:i});if(Er(n))return[];let s=n[`x-scalar-order`];return s===void 0&&(r===`alpha`?o.sort((e,t)=>e.type===`operation`&&t.type===`operation`?e.title.localeCompare(t.title):0):r===`method`?o.sort((e,t)=>e.type===`operation`&&t.type===`operation`?e.method.localeCompare(t.method):0):typeof r==`function`&&o.sort((e,t)=>{if(!(e.type===`operation`||e.type===`webhook`)||!(t.type===`operation`||t.type===`webhook`))return 0;let n=e.type===`operation`?e.path:e.name,i=t.type===`operation`?t.path:t.name;return r({method:e.method,path:n,ref:e.ref,httpVerb:e.method},{method:t.method,path:i,ref:t.ref,httpVerb:t.method})})),li({tag:n,generateId:i,children:s?Tr(o,s,e=>e.id):o,parentId:a,isGroup:!1})});return o?Tr(s,o,e=>e.id):(n===`alpha`?s.sort((e,n)=>{let r=Y({tagsMap:t,name:e.title,documentId:a,generateId:i}).tag[`x-displayName`]||e.title||`Untitled Tag`,o=Y({tagsMap:t,name:n.title,documentId:a,generateId:i}).tag[`x-displayName`]||n.title||`Untitled Tag`;return r.localeCompare(o)}):typeof n==`function`&&s.sort((e,r)=>n(Y({tagsMap:t,name:e.name,documentId:a,generateId:i}).tag,Y({tagsMap:t,name:r.name,documentId:a,generateId:i}).tag)),s)},di=({document:e,tagsMap:t,documentId:n,options:{generateId:r,tagsSorter:i,operationsSorter:a}})=>e[`x-tagGroups`]?e[`x-tagGroups`].flatMap(e=>{let o=ui({_keys:e.tags,tagsMap:t,options:{tagsSorter:i,operationsSorter:a,generateId:r},documentId:n,sortOrder:e[`x-scalar-order`]});return e[`x-scalar-order`]=o.map(e=>e.id),o.length?li({tag:e,generateId:r,children:o,parentId:n,isGroup:!0}):[]}):ui({_keys:Array.from(t.keys()),tagsMap:t,options:{generateId:r,tagsSorter:i,operationsSorter:a},documentId:n,sortOrder:e[`x-scalar-order`]}),fi=({ref:e,method:t,name:n,title:r,generateId:i,parentTag:a,webhook:o,isDeprecated:s,parentId:c})=>({id:i({type:`webhook`,name:n,method:t,webhook:o,parentTag:a,parentId:c}),title:r,name:n,ref:e,method:t,type:`webhook`,isDeprecated:s}),pi=({document:e,tagsMap:t,generateId:n,untaggedWebhooksParentId:r,documentId:i})=>{let a=[];return Object.entries(e.webhooks??{}).forEach(([e,o])=>{be(o,(o,s)=>{let c=F(s,et);if(!c||Er(c))return;let l=`#/webhooks/${e}/${o}`;c.tags?.length?c.tags.forEach(r=>{let{tag:a,id:s}=Y({tagsMap:t,name:r,documentId:i,generateId:n});t.get(r)?.entries.push(fi({ref:l,method:o,name:e,title:c.summary??e,webhook:c,generateId:n,parentTag:{tag:a,id:s},parentId:s,isDeprecated:ai(c)}))}):a.push(fi({ref:l,method:o,name:e,title:c.summary??e,generateId:n,isDeprecated:ai(c),webhook:c,parentId:r}))})}),a},mi=(e,t,n)=>{let{hideModels:r,modelsSectionLabel:i,tagsSorter:a,operationsSorter:o,generateId:s,operationTitleSource:c}=ie(e,n),l=s({type:`document`,info:t.info,name:e}),u=new Map(t.tags?.map(e=>[e.name??`Untitled Tag`,{id:s({type:`tag`,tag:e,parentId:l}),parentId:l,tag:e,entries:[]}])??[]),d=Fr({generateId:s,parentId:l,info:t.info}),{untaggedOperations:f}=si({document:t,tagsMap:u,generateId:s,documentId:l,operationTitleSource:c}),p=s({type:`webhook`,name:``,parentId:l}),m=pi({document:t,generateId:s,tagsMap:u,untaggedWebhooksParentId:p,documentId:l}),h=di({document:t,tagsMap:u,documentId:l,options:{tagsSorter:a,operationsSorter:o,generateId:s}});if(d.push(...h),d.push(...f),m.length&&d.push({type:`tag`,id:p,title:`Webhooks`,name:`Webhooks`,children:m,isGroup:!1,isWebhooks:!0}),!r&&t.components?.schemas){let e=Lr({documentId:l,document:t,generateId:s,tagsMap:u});e.length&&d.push({type:`models`,id:s({type:`model`,parentId:l}),title:i,name:i,children:e})}let g=t[`x-scalar-order`];return g&&d.sort((e,t)=>{let n=g.indexOf(e.id),r=g.indexOf(t.id);return(n===-1?1/0:n)-(r===-1?1/0:r)}),t[`x-scalar-order`]=R(d.map(e=>e.id)),{id:l,type:`document`,title:t.info?.title?.trim()||`Untitled Document`,name:e,children:d,icon:t[`x-scalar-icon`]}},hi=u(Ht({inheritAttrs:!1,__name:`ScalarColorModeToggleIcon`,props:{is:{default:`button`},mode:{default:`light`}},setup(e){let{cx:t}=Et(),n=Qt(()=>e.mode===`dark`?`Set light mode`:`Set dark mode`);return(r,i)=>(B(),qt(Rt(e.is),Pt({"aria-label":n.value,class:`toggle-icon-${e.mode}`,type:e.is===`button`?`button`:void 0},V(t)(`size-3 flex items-center justify-center text-c-1`)),{default:Gt(()=>[...i[0]||=[U(`span`,{class:`toggle-icon-sun-ray`},null,-1),U(`span`,{class:`toggle-icon-sun-ray`},null,-1),U(`span`,{class:`toggle-icon-sun-ray`},null,-1),U(`span`,{class:`toggle-icon-sun-ray`},null,-1),U(`span`,{class:`toggle-icon-ellipse`},[U(`span`,{class:`toggle-icon-moon-mask`})],-1)]]),_:1},16,[`aria-label`,`class`,`type`]))}}),[[`__scopeId`,`data-v-60be8692`]]),gi=[`aria-pressed`],_i=Ht({inheritAttrs:!1,__name:`ScalarColorModeToggleButton`,props:{modelValue:{type:Boolean},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let{cx:t}=Et(),n=Bt(e,`modelValue`);return(e,r)=>(B(),H(`button`,Pt({"aria-pressed":n.value,type:`button`},V(t)(`group/toggle flex h-6 w-[38px] brightness-lifted -mx-px items-center py-1.5 -my-1.5 relative outline-none`),{onClick:r[0]||=e=>n.value=!n.value}),[r[1]||=U(`div`,{class:`h-3 w-full bg-border mx-px rounded-xl group-focus-visible/toggle:outline -outline-offset-1`},null,-1),U(`div`,{class:Lt([`size-[23px] left-border absolute border rounded-full flex items-center justify-center bg-b-1 group-focus-visible/toggle:outline -outline-offset-1 transition-transform duration-300 ease-in-out`,{"translate-x-[14px]":n.value}])},[Kt(hi,{is:`div`,mode:n.value?`dark`:`light`},null,8,[`mode`])],2)],16,gi))}}),vi=Xt(`dark`),yi=Xt(`light`),bi=w([N(`system`),N(`dark`),N(`light`)]);function xi(e={}){let{initialColorMode:t=`system`,overrideColorMode:n}=e;function r(){vi.value=o.value===`dark`?`light`:`dark`,!(typeof window>`u`)&&window?.localStorage?.setItem(`colorMode`,vi.value)}function i(e){vi.value=e,!(typeof window>`u`)&&window?.localStorage?.setItem(`colorMode`,vi.value)}function a(){return typeof window>`u`?`light`:typeof window?.matchMedia==`function`?window?.matchMedia(`(prefers-color-scheme: dark)`)?.matches?`dark`:`light`:`dark`}let o=Qt({get:()=>vi.value===`system`?yi.value:vi.value,set:i}),s=Qt({get:()=>o.value===`dark`,set:e=>i(e?`dark`:`light`)});function c(){typeof document>`u`||typeof window>`u`||((n??(vi.value===`system`?yi.value:vi.value))===`dark`?(document.body.classList.add(`dark-mode`),document.body.classList.remove(`light-mode`)):(document.body.classList.add(`light-mode`),document.body.classList.remove(`dark-mode`)))}let l=typeof window>`u`?`system`:window?.localStorage?.getItem(`colorMode`),u=rn(bi,l)?l:null;vi.value=n??u??t,tn([vi,yi],c,{immediate:!0});let d=()=>{yi.value=a()},f=Xt(null);return Vt(()=>{yi.value=a(),typeof window<`u`&&typeof window?.matchMedia==`function`&&(f.value=window.matchMedia(`(prefers-color-scheme: dark)`),f.value?.addEventListener(`change`,d))}),Ft(()=>{f.value?.removeEventListener(`change`,d)}),{colorMode:Qt({get:()=>vi.value,set:i}),darkLightMode:o,isDarkMode:s,toggleColorMode:r,setColorMode:i,getSystemModePreference:a}}var Si=Ht({__name:`ScalarColorModeToggle`,props:{variant:{default:`switch`}},setup(e){let{isDarkMode:t,toggleColorMode:n,darkLightMode:r}=xi(),i=Qt(()=>t.value?`Set light mode`:`Set dark mode`);return(a,o)=>e.variant===`switch`?(B(),qt(_i,{key:0,modelValue:V(t),"onUpdate:modelValue":o[0]||=e=>Jt(t)?t.value=e:null,"aria-label":i.value},null,8,[`modelValue`,`aria-label`])):(B(),qt(hi,{key:1,"aria-label":i.value,mode:V(r),onClick:V(n)},null,8,[`aria-label`,`mode`,`onClick`]))}}),Ci=`2.6.0`,wi=`/`;function Ti(e){let t=e;return!I(t)||typeof t.asyncapi!=`string`||!t.asyncapi.startsWith(`1.`)?t:(t.asyncapi=Ci,Ei(t),Oi(t),Ai(t),ji(t),t)}function Ei(e){if(!Array.isArray(e.servers))return;let t={},n=new Set;for(let[r,i]of e.servers.entries()){if(!I(i))continue;let e={};for(let[t,n]of Object.entries(i))t===`scheme`?e.protocol=n:t===`schemeVersion`?e.protocolVersion=n:e[t]=n;let a=Di(typeof i.description==`string`?i.description:``,r,n);n.add(a),t[a]=e}e.servers=t}function Di(e,t,n){let r=Fe(e)||`server-${t}`;if(!n.has(r))return r;let i=2;for(;n.has(`${r}-${i}`);)i+=1;return`${r}-${i}`}function Oi(e){if(!I(e.topics)){typeof e.baseTopic==`string`&&delete e.baseTopic;return}let t=typeof e.baseTopic==`string`?e.baseTopic:``,n={};for(let[r,i]of Object.entries(e.topics)){if(!I(i))continue;let e=t?`${t}.${r}`:r,a={};for(let[e,t]of Object.entries(i))if(e===`parameters`){let e=ki(t);e&&(a.parameters=e)}else e===`publish`||e===`subscribe`?a[e]={message:t}:a[e]=t;n[e]=a}e.channels=n,delete e.topics,delete e.baseTopic}function ki(e){if(!Array.isArray(e))return;let t={};for(let n of e){if(!I(n))continue;if(typeof n.$ref==`string`){let e=n.$ref.split(`/`).pop()??``;e&&(t[e]={$ref:n.$ref});continue}if(typeof n.name!=`string`)continue;let{name:e,...r}=n;t[e]=r}return t}function Ai(e){if(!I(e.stream))return;let t={};Array.isArray(e.stream.read)&&(t.subscribe={message:{oneOf:e.stream.read}}),Array.isArray(e.stream.write)&&(t.publish={message:{oneOf:e.stream.write}});let n=I(e.channels)?e.channels:{};n[wi]=t,e.channels=n,delete e.stream}function ji(e){if(!I(e.events))return;let t={};Array.isArray(e.events.receive)&&(t.subscribe={message:{oneOf:e.events.receive}}),Array.isArray(e.events.send)&&(t.publish={message:{oneOf:e.events.send}});let n=I(e.channels)?e.channels:{};n[wi]=t,e.channels=n,delete e.events}var Mi=`3.0.0`;function Ni(e){let t=e;return!I(t)||typeof t.asyncapi!=`string`||!t.asyncapi.startsWith(`2.`)?t:(t.asyncapi=Mi,zi(t),Pi(t),Bi(t),t)}function Pi(e){if(!I(e.servers))return;let t=Ri(e);for(let n of Object.values(e.servers))if(I(n)){if(typeof n.url==`string`){let{host:e,pathname:t}=Fi(n.url);n.host=e,t&&(n.pathname=t),delete n.url}Array.isArray(n.security)&&(n.security=Ii(n.security,t))}}function Fi(e){let t=e.match(/^[a-zA-Z][a-zA-Z0-9+\-.]*:\/\/(.*)$/),n=t?t[1]:e,r=n.indexOf(`/`);return r===-1?{host:n,pathname:``}:{host:n.slice(0,r),pathname:n.slice(r)}}function Ii(e,t){return e.map(e=>Li(e,t)).filter(e=>e!==void 0)}function Li(e,t){if(!I(e))return;let[n]=Object.entries(e);if(!n)return;let[r,i]=n,a=t[r];return I(a)&&a.type===`oauth2`&&Array.isArray(i)?{...a,scopes:i}:{$ref:`#/components/securitySchemes/${r}`}}function Ri(e){if(!I(e.components)||!I(e.components.securitySchemes))return{};let t={};for(let[n,r]of Object.entries(e.components.securitySchemes))I(r)&&(t[n]=r);return t}function zi(e){if(!(!I(e.components)||!I(e.components.securitySchemes))){for(let t of Object.values(e.components.securitySchemes))if(!(!I(t)||t.type!==`oauth2`||!I(t.flows)))for(let e of Object.values(t.flows))I(e)&&`scopes`in e&&(e.availableScopes=e.scopes,delete e.scopes)}}function Bi(e){if(!I(e.channels))return;let t=Ri(e),n={},r={},i=new Set,a=new Set;for(let[o,s]of Object.entries(e.channels)){if(!I(s))continue;let e=Ki(Gi(o),i),c={address:o},l={};for(let[e,t]of Object.entries(s))if(!(e===`publish`||e===`subscribe`||e===`parameters`)){if(e===`servers`&&Array.isArray(t)){c.servers=t.map(e=>({$ref:`#/servers/${e}`}));continue}c[e]=t}I(s.parameters)&&(c.parameters=s.parameters);let u=Vi(s.publish,l),d=Vi(s.subscribe,l);if(c.messages=l,n[e]=c,I(s.publish)){let n=Ki(Ui(s.publish,`receive`,e),a);r[n]=Wi(s.publish,`receive`,e,u,t)}if(I(s.subscribe)){let n=Ki(Ui(s.subscribe,`send`,e),a);r[n]=Wi(s.subscribe,`send`,e,d,t)}}e.channels=n,e.operations=r}function Vi(e,t){if(!I(e)||!I(e.message))return[];let n=e.message,r=Array.isArray(n.oneOf)?n.oneOf:[n],i=[];for(let e of r){if(!I(e))continue;let n=Hi(e,t);t[n]=e,i.push(n)}return i}function Hi(e,t){if(typeof e.$ref==`string`){let t=e.$ref.split(`/`).pop();if(t)return t}if(typeof e.name==`string`&&e.name)return e.name;let n=0;for(;`message-${n}`in t;)n+=1;return`message-${n}`}function Ui(e,t,n){return typeof e.operationId==`string`&&e.operationId?e.operationId:`${t}-${n}`}function Wi(e,t,n,r,i){let a={action:t,channel:{$ref:`#/channels/${n}`}};for(let[t,n]of Object.entries(e))if(!(t===`message`||t===`operationId`)){if(t===`security`&&Array.isArray(n)){a.security=Ii(n,i);continue}a[t]=n}return a.messages=r.map(e=>({$ref:`#/channels/${n}/messages/${e}`})),a}function Gi(e){return Fe(e.replace(/[^a-zA-Z0-9]+/g,` `))}function Ki(e,t){if(!t.has(e))return t.add(e),e;let n=2;for(;t.has(`${e}-${n}`);)n+=1;let r=`${e}-${n}`;return t.add(r),r}var qi=`3.1.0`,Ji=/^#\/components\/messages\/(.+)$/;function Yi(e){let t=e;return!I(t)||typeof t.asyncapi!=`string`||!t.asyncapi.startsWith(`3.0`)?t:(t.asyncapi=qi,Xi(t),t)}function Xi(e){if(!I(e.operations)||!I(e.channels))return;let t=e.channels;for(let n of Object.values(e.operations))I(n)&&(Zi(n.messages,n.channel,t),I(n.reply)&&Zi(n.reply.messages,n.reply.channel??n.channel,t))}function Zi(e,t,n){if(!Array.isArray(e))return;let r=$i(t);if(!r)return;let i=n[r];if(I(i)){for(let t=0;t<e.length;t+=1){let n=e[t];if(!I(n)||typeof n.$ref!=`string`)continue;let[,a]=n.$ref.match(Ji)??[];a&&(ea(i,a,n.$ref),e[t]={$ref:`#/channels/${r}/messages/${a}`})}Qi(e)}}function Qi(e){let t=new Set,n=0;for(let r of e){if(I(r)&&typeof r.$ref==`string`){if(t.has(r.$ref))continue;t.add(r.$ref)}e[n]=r,n+=1}e.length=n}function $i(e){if(!I(e)||typeof e.$ref!=`string`)return;let t=e.$ref.match(/^#\/channels\/([^/]+)$/);return t?t[1]:void 0}function ea(e,t,n){I(e.messages)||(e.messages={});let r=e.messages;t in r||(r[t]={$ref:n})}function ta(e){return Yi(Ni(Ti(e)))}var na=(e,t)=>{let n=performance.now(),r=t(),i=performance.now(),a=Math.round(i-n);return console.info(`${e}: ${a} ms`),r},ra=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 ia(e){try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`}catch{return!1}}function aa(e){if(!/^\s*(\{)/.test(e.slice(0,500)))return!1;try{return I(JSON.parse(e))}catch{return!1}}function oa(e){return/^\s*(?:-\s*)?[\w\-]+\s*:\s*.+\n.*/.test(e)}function sa(e){return!ia(e)&&!oa(e)&&!aa(e)}var ca=()=>{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:()=>Ie});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}},ee=(e,t,n={})=>{let r={cache:{},input:e,index:0,indexMax:0,options:n,output:[]};if(T(t)(r)&&r.index===e.length)return r.output;throw Error(`Failed to parse at index ${r.indexMax}`)},_=(e,t)=>c(e)?v(e,t):m(e)?ne(e,t):te(e,t),v=(e,t)=>{let n={};for(let t of e){if(t.length!==1)throw Error(`Invalid character: "${t}"`);let e=t.charCodeAt(0);n[e]=!0}return e=>{let r=e.index,i=e.input;for(;e.index<i.length&&i.charCodeAt(e.index)in n;)e.index+=1;let a=e.index;if(a>r){if(!h(t)&&!e.options.silent){let n=e.input.slice(r,a),o=l(t)?t(n,i,String(r)):t;h(o)||e.output.push(o)}e.indexMax=Math.max(e.indexMax,e.index)}return!0}},te=(e,t)=>{let n=e.source,r=e.flags.replace(/y|$/,`y`),i=new RegExp(n,r);return ae(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})},ne=(e,t)=>n=>{if(n.input.startsWith(e,n.index)){if(!h(t)&&!n.options.silent){let r=l(t)?t(e,n.input,String(n.index)):t;h(r)||n.output.push(r)}return n.index+=e.length,n.indexMax=Math.max(n.indexMax,n.index),!0}else return!1},y=(e,t,n,r)=>{let i=T(e);return ae(ie(re(e=>{let r=0;for(;r<n;){let t=e.index;if(!i(e)||(r+=1,e.index===t))break}return r>=t})))},b=(e,t)=>y(e,0,1),x=(e,t)=>y(e,0,1/0),S=(e,t)=>{let n=e.map(T);return ae(ie(re(e=>{for(let t=0,r=n.length;t<r;t++)if(!n[t](e))return!1;return!0})))},C=(e,t)=>{let n=e.map(T);return ae(ie(e=>{for(let t=0,r=n.length;t<r;t++)if(n[t](e))return!0;return!1}))},re=(e,t=!1)=>{let n=T(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}},ie=(e,t)=>T(e),ae=(()=>{let e=0;return t=>{let n=T(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}}}})(),w=e=>{let t;return n=>(t||=T(e()),t(n))},T=g(e=>{if(l(e))return u(e)?w(e):e;if(m(e)||p(e))return _(e);if(c(e))return S(e);if(f(e))return C(Object.values(e));throw Error(`Invalid rule`)}),oe=`abcdefghijklmnopqrstuvwxyz`,E=e=>{let t=``;for(;e>0;)t=oe[(e-1)%26]+t,e=Math.floor((e-1)/26);return t},se=e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t=t*26+oe.indexOf(e[n])+1;return t},ce=(e,t)=>{if(t<e)return ce(t,e);let n=[];for(;e<=t;)n.push(e++);return n},le=(e,t,n)=>ce(e,t).map(e=>String(e).padStart(n,`0`)),ue=(e,t)=>ce(se(e),se(t)).map(E),D=e=>e,O=e=>de(t=>ee(t,e,{memoization:!1}).join(``)),de=e=>{let t={};return n=>t[n]??(t[n]=e(n))},k=_(/^\*\*\/\*$/,`.*`),fe=_(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/,(e,t,n)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}`),pe=_(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/,(e,t,n,r)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}(?:${r.replaceAll(`,`,`|`).replaceAll(`.`,`\\.`)})`),me=_(/\\./,D),he=_(/[$.*+?^(){}[\]\|]/,e=>`\\${e}`),A=_(/./,D),ge=C([_(/^(?:!!)*!(.*)$/,(e,t)=>`(?!^${je(t)}$).*?`),_(/^(!!)+/,``)]),_e=C([_(/\/(\*\*\/)+/,`(?:/.+/|/)`),_(/^(\*\*\/)+/,`(?:^|.*/)`),_(/\/(\*\*)$/,`(?:/.*|$)`),_(/\*\*/,`.*`)]),ve=C([_(/\*\/(?!\*\*\/)/,`[^/]*/`),_(/\*/,`[^/]*`)]),ye=_(`?`,`[^/]`),be=_(`[`,D),j=_(`]`,D),xe=_(/[!^]/,`^/`),Se=_(/[a-z]-[a-z]|[0-9]-[0-9]/i,D),Ce=C([me,_(/[$.*+?^(){}[\|]/,e=>`\\${e}`),Se,_(/[^\]]/,D)]),we=S([be,b(xe),x(Ce),j]),M=_(`{`,`(?:`),Te=_(`}`,`)`),Ee=S([M,C([_(/(\d+)\.\.(\d+)/,(e,t,n)=>le(+t,+n,Math.min(t.length,n.length)).join(`|`)),_(/([a-z]+)\.\.([a-z]+)/,(e,t,n)=>ue(t,n).join(`|`)),_(/([A-Z]+)\.\.([A-Z]+)/,(e,t,n)=>ue(t.toLowerCase(),n.toLowerCase()).join(`|`).toUpperCase())]),Te]),N=_(`{`,`(?:`),De=_(`}`,`)`),Oe=_(`,`,`|`),ke=_(/[$.*+?^(){[\]\|]/,e=>`\\${e}`),Ae=_(/[^}]/,D),P=S([N,x(C([_e,ve,ye,we,Ee,w(()=>P),me,ke,Oe,Ae])),De]),je=O(x(C([k,fe,pe,ge,_e,ve,ye,we,Ee,P,me,he,A]))),Me=_(/\\./,D),Ne=_(/./,D),Pe=O(x(C([Me,_(/\*\*\*+/,`*`),_(/([^/{[(!])\*\*/,(e,t)=>`${t}*`),_(/(^|.)\*\*(?=[^*/)\]}])/,(e,t)=>`${t}*`),Ne]))),Fe=(e,t)=>{let n=Array.isArray(e)?e:[e];if(!n.length)return!1;let r=n.map(Fe.compile),i=n.every(e=>/(\/(?:\*\*)?|\[\/\])$/.test(e)),a=t.replace(/[\\\/]+/g,`/`).replace(/\/$/,i?`/`:``);return r.some(e=>e.test(a))};Fe.compile=e=>RegExp(`^${je(Pe(e))}$`,`s`);var Ie=Fe;return o(s)})();return e.default||e},la,ua=(e,t)=>(la||(la=ca(),ca=null),la(e,t)),da=/^[A-Za-z]:\//;function fa(e=``){return e&&e.replace(/\\/g,`/`).replace(da,e=>e.toUpperCase())}var pa=/^[/\\]{2}/,ma=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,ha=/^[A-Za-z]:$/,ga=/^\/([A-Za-z]:)?$/,_a=/.(\.[^./]+|\.)$/,va=/^[/\\]|^[a-zA-Z]:[/\\]/,ya=function(e){if(e.length===0)return`.`;e=fa(e);let t=e.match(pa),n=wa(e),r=e[e.length-1]===`/`;return e=Ca(e,!n),e.length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),ha.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!wa(e)?`/${e}`:e)},ba=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 ya(t)};function xa(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var Sa=function(...e){e=e.map(e=>fa(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:xa();!i||i.length===0||(t=`${i}/${t}`,n=wa(i))}return t=Ca(t,!n),n&&!wa(t)?`/${t}`:t.length>0?t:`.`};function Ca(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 wa=function(e){return ma.test(e)},Ta=function(e){return fa(e)},Ea=function(e){if(e===`..`)return``;let t=_a.exec(fa(e));return t&&t[1]||``},Da=function(e,t){let n=Sa(e).replace(ga,`$1`).split(`/`),r=Sa(t).replace(ga,`$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(`/`)},Oa=function(e){let t=fa(e).replace(/\/$/,``).split(`/`).slice(0,-1);return t.length===1&&ha.test(t[0])&&(t[0]+=`/`),t.join(`/`)||(wa(e)?`/`:`.`)},ka=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 fa(e.root?Sa(...n):n.join(`/`))},Aa=function(e,t){let n=fa(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},ja={__proto__:null,basename:Aa,dirname:Oa,extname:Ea,format:ka,isAbsolute:wa,join:ba,matchesGlob:(e,t)=>ua(t,ya(e)),normalize:ya,normalizeString:Ca,parse:function(e){let t=va.exec(e)?.[0]?.replace(/\\/g,`/`)||``,n=Aa(e),r=Ea(n);return{root:t,dir:Oa(e),base:n,ext:r,name:n.slice(0,n.length-r.length)}},relative:Da,resolve:Sa,sep:`/`,toNamespacedPath:Ta},Ma=globalThis.process?.platform===`win32`?`;`:`:`,Na={posix:void 0,win32:void 0},Pa=(e=Ma)=>new Proxy(ja,{get(t,n){return n===`delimiter`?e:n===`posix`?X:n===`win32`?Fa:Na[n]||ja[n]}}),X=Pa(`:`),Fa=Pa(`;`),Ia=(e,t)=>{if(ia(t))return t;if(ia(e)){let n=new URL(e);return n.pathname=X.posix.resolve(`/`,X.dirname(n.pathname),t),n.toString()}return X.resolve(X.dirname(e),t)};function La(e){return decodeURI(e.replace(/~1/g,`/`).replace(/~0/g,`~`))}function Ra(e){return e.split(`/`).slice(1).map(La)}function za(e,t,n){if(t===``)throw Error(`Cannot set value at root ('') pointer`);let r=Ra(t);r.forEach(e=>Be(e));let i=e;for(let e=0;e<r.length;e++){let t=r[e],a=e===r.length-1,o=r[e+1],s=/^\d+$/.test(o??``);a?i[t]=n:((!(t in i)||typeof i[t]!=`object`)&&(i[t]=s?[]:{}),i=i[t])}}var Ba=(e,t)=>{if(ia(e)&&ia(t)){let n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;let i=X.dirname(X.posix.resolve(`/`,r.pathname)),a=X.posix.resolve(`/`,n.pathname);return X.posix.relative(i,a)}if(ia(t)){let n=new URL(t),r=X.dirname(X.posix.resolve(`/`,n.pathname));return n.pathname=X.posix.relative(r,X.posix.resolve(`/`,e)),n.toString()}if(ia(e))return e;let n=X.dirname(X.resolve(t)),r=X.resolve(e);return X.relative(n,r)};function Va(e){let t=ne(e).substring(0,7);return t.match(/^\d+$/)?`a`+t.substring(1):t}async function Ha(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?Ha(e,t,n,a,i+1):(n[a]=t,a)}var Ua=(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 Ha(e,r,t),o=a.match(/^\d+$/)?`a${a}`:a;return n[r]=o,o}}},Wa=e=>I(e)&&`$ref`in e&&typeof e.$ref==`string`;function Ga(e){return e.startsWith(`#`)}function Ka(e,t){let n=t.find(t=>t.validate(e));return n?n.exec(e):Promise.resolve({ok:!1})}function qa(e,t){if(!Ga(e))throw`Please provide an internal ref`;return`#/${t.map(ri).join(`/`)}${e.substring(1)}`}function Ja(e,t){if(Array.isArray(e)){e.forEach(e=>Ja(e,t));return}if(I(e)&&(Object.values(e).forEach(e=>Ja(e,t)),typeof e==`object`&&`$ref`in e&&typeof e.$ref==`string`)){let n=e.$ref;if(!Ga(n))return;e.$ref=qa(n,t)}}var Ya=(e,t,n,r,i,a=!1,o=new Set)=>{let s=qe(t,Ra(n)).value;if(o.has(s))return;o.add(s),za(e,n,s);let c=n=>{if(!(!n||typeof n!=`object`)){`$ref`in n&&typeof n.$ref==`string`&&(n.$ref.startsWith(`#/${r}/${ri(i)}`)||a)&&Ya(e,t,n.$ref.substring(1),r,i,a,o);for(let e of Object.values(n))c(e)}};c(s)},Xa={externalDocuments:`x-ext`,externalDocumentsMappings:`x-ext-urls`};async function Za(e,t){t.externalDocumentsKey=t.externalDocumentsKey??Xa.externalDocuments,t.externalDocumentsMappingsKey=t.externalDocumentsMappingsKey??Xa.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 Ka(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=Tt(o),c=t.root!==void 0&&t.root!==a||t.depth!==void 0,l=t.visitedNodes??new Set,u=dt(o)||(t.origin?t.origin:typeof e==`string`&&(ia(e)||sa(e))?e:`/`);o[t.externalDocumentsMappingsKey]===void 0&&(o[t.externalDocumentsMappingsKey]={});let{generate:d}=Ua(t.compress??Va,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||!I(e)&&!Array.isArray(e)||l.has(e))return;l.add(e);let ee={path:h,resolutionCache:n,parentNode:g,rootNode:o,loaders:r};await f(`onBeforeNodeProcess`,e,ee);let _=dt(e);if(Wa(e)){let l=e.$ref,h=`$global`in e&&typeof e.$global==`boolean`&&e.$global,g=Ye(l,_??i,s);if(g!==void 0){if(c){let e=Ra(`/${g}`),t=e.length>0?qe(o,e.slice(0,-1)).value:void 0,n=qe(o,e);await p(n.value,n.context,a,m+1,e,t)}await f(`onAfterNodeProcess`,e,ee);return}let[v,te=``]=l.split(`#`,2),ne=Ia(_??i,v),y=Ba(ne,u),b=await d(y),x=n.has(y);x||n.set(y,Ka(ne,r)),await f(`onResolveStart`,e);let S=await n.get(y);if(S.ok){x||(h||Ja(S.data,[Xa.externalDocuments,b]),await p(S.data,h?i:ne,h,m+1,[t.externalDocumentsKey,b,o[t.externalDocumentsMappingsKey]]),za(o,`/${t.externalDocumentsMappingsKey}/${ri(b)}`,y)),t.treeShake===!0?Ya(o,{[t.externalDocumentsKey]:{[b]:S.data}},qa(`#${te}`,[t.externalDocumentsKey,b]).substring(1),t.externalDocumentsKey,b):x||za(o,`/${t.externalDocumentsKey}/${b}`,S.data),e.$ref=qa(`#${te}`,[t.externalDocumentsKey,b]),await f(`onResolveSuccess`,e),await f(`onAfterNodeProcess`,e,ee);return}return await f(`onResolveError`,e),await f(`onAfterNodeProcess`,e,ee),console.warn(`Failed to resolve external reference "${ne}". The reference may be invalid, inaccessible, or missing a loader for this type of reference.`)}for(let n in e)n===t.externalDocumentsKey||n===t.externalDocumentsMappingsKey||await p(e[n],_??i,a,m+1,[...h,n],e);await f(`onAfterNodeProcess`,e,ee)};return await p(a),!t.urlMap&&!c&&delete o[t.externalDocumentsMappingsKey],a}var Qa=class{data;next;constructor(e){this.data=e,this.next=null}},$a=class{front;rear;size;constructor(){this.front=null,this.rear=null,this.size=0}enqueue(e){let t=new Qa(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 eo(e){let t=0,n=new $a,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 to=e=>e.startsWith(``)?e.slice(1):e;function no(t){if(t!==null){if(typeof t==`string`){let n=to(t);if(n.trim()===``)return;try{return JSON.parse(n)}catch{let t=/^[^:]+:/.test(n),r=n.slice(0,50).trimStart(),i=r.startsWith(`{`)||r.startsWith(`[`);return!t||i?void 0:e(n,{maxAliasCount:1e4,merge:!0})}}return t}}var ro=e=>{try{return new URL(e).host}catch{return null}};async function io(e,t,n){try{let r=ro(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:no(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 ao(e){let t=e?.limit?eo(e.limit):e=>e();return{type:`loader`,validate:ia,exec:n=>io(n,t,e)}}var oo=class extends Error{constructor(e){super(e),this.name=`InvalidChangesDetectedError`}},so=(e,t)=>{let n=(e,t,r,i=0)=>{if(t[i]===void 0)throw new oo(`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 oo(`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},co=(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},lo=class{value;children;constructor(e,t){this.value=e,this.children=t}},uo=class{root;constructor(){this.root=new lo(null,{})}addPath(e,t){let n=this.root;for(let t of e)n.children[t]||(n.children[t]=new lo(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)}},fo=(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&&fo(e[r],t[r]))return!0;return!1}return e!==t},po=(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]=po(r,i))}return e},mo=(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},ho=(e,t)=>{let n=new uo;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(mo(s.path,t.changes.path)&&t.changes.type!==`delete`&&!fo(s.changes,t.changes.changes)){r.add(t.index),typeof s.changes==`object`&&po(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 go(e){if(!(typeof e!=`object`||!e)){if(Array.isArray(e)){for(let t of e)go(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)&&go(e[t])}}function _o(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 vo(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 _o(t),go(t),t}function yo(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?yo(n,t,[...e,r.toString()]):n);continue}if(typeof a==`object`&&a){r[i]=yo(a,t,e);continue}r[i]=a}return t(r,n)}var bo=`application/json`;function xo(e){let t=e[`x-example`],n=e[`x-examples`];return delete e[`x-example`],delete e[`x-examples`],{xExample:t,xExamples:n}}function So(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).length>0}function Co(e){return So(e)&&Object.values(e).every(e=>typeof e==`object`&&!!e&&!Array.isArray(e))}function wo(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 To(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&&wo(t.schema)&&delete e[n]}}var Eo=new Set([`summary`,`description`,`value`,`externalValue`]);function Do(e){if(typeof e!=`object`||!e)return!1;let t=e,n=`value`in t||`externalValue`in t,r=Object.keys(t).every(e=>Eo.has(e));return n&&r}function Oo(e){return Do(e)?e:{value:e}}var ko=/^[a-zA-Z0-9*+.-]+\/[a-zA-Z0-9*+.+-]+$/;function Ao(e){return ko.test(e)}function jo(e){return Object.entries(e).reduce((e,[t,n])=>(e[t]={value:n},e),{})}var Mo=e=>{switch(e){case`application`:return`clientCredentials`;case`accessCode`:return`authorizationCode`;case`implicit`:return`implicit`;case`password`:return`password`;default:return e}};function No(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=yo(t,e=>(typeof e.$ref==`string`&&e.$ref.startsWith(`#/definitions/`)&&(e.$ref=e.$ref.replace(/^#\/definitions\//,`#/components/schemas/`)),e))),t=yo(t,e=>(e.type===`file`&&(e.type=`string`,e.format=`binary`),e)),Object.hasOwn(t,`parameters`)){t=yo(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]=Io(a):`in`in a&&(a.in===`body`?n[i]=Ho(a,t.consumes??[bo]):a.in===`formData`?n[i]=Uo([a],t.consumes):e[i]=Io(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=yo(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??[bo];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]??bo;for(let[t,r]of Object.entries(n.examples))if(Ao(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]=Oo(r)}delete n.examples}n.content&&typeof n.content==`object`&&To(n.content),n.headers&&typeof n.headers==`object`&&(n.headers=Object.entries(n.headers).reduce((e,[t,n])=>n&&typeof n==`object`?{[t]:Lo(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=Wo(n.parameters,t.consumes??[bo]);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=Wo(i.parameters,i.consumes??t.consumes??[bo]);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]:Lo(n),...e}:e,{})),n.schema){let e=t.produces??i.produces??[bo];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??[bo])[0]??bo;for(let[t,r]of Object.entries(n.examples))if(Ao(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]=Oo(r)}delete n.examples}n.content&&typeof n.content==`object`&&To(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:{[Mo(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 Po(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 Fo(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 Io(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=Vo(e),n=Po(e),{xExample:r,xExamples:i}=xo(e);if(So(r)?e.examples=jo(r):So(i)&&(e.examples=Object.entries(i).reduce((e,[t,n])=>(e[t]=Oo(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:Fo(e.in)}}function Lo(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=Po(e);return{...e,schema:t}}var Ro={ssv:{style:`spaceDelimited`,explode:!1},pipes:{style:`pipeDelimited`,explode:!1},multi:{style:`form`,explode:!0},csv:{style:`form`,explode:!1},tsv:{}},zo={ssv:{},pipes:{},multi:{},csv:{style:`simple`,explode:!1},tsv:{}},Bo={header:zo,query:Ro,path:zo};function Vo(e){if(e.type!==`array`||!(e.in===`query`||e.in===`path`||e.in===`header`))return{};let t=e.collectionFormat??`csv`;return e.in in Bo&&t in Bo[e.in]?Bo[e.in][t]:{}}function Ho(e,t){let{xExample:n,xExamples:r}=xo(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},So(r)&&e in r){let t=r[e];So(t)&&Object.values(t).every(e=>Do(e))?o.content[e].examples=t:Co(t)?o.content[e].examples=Object.entries(t).reduce((e,[t,n])=>(e[t]=Oo(n),e),{}):o.content[e].examples={default:Oo(t)}}else So(r)&&!Object.keys(r).some(Ao)&&(o.content[e].examples=Object.entries(r).reduce((e,[t,n])=>(e[t]=Oo(n),e),{}));!o.content[e].examples&&So(n)&&e in n&&(o.content[e].example=n[e])}return o}function Uo(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 Wo(e,t){let n={parameters:e.filter(e=>!(e.in===`body`||e.in===`formData`)).map(e=>Io(e))},r=structuredClone(e.find(e=>e.in===`body`)??{});r&&Object.keys(r).length&&(n.requestBody=Ho(r,t));let i=e.filter(e=>e.in===`formData`);if(i.length>0){let e=Uo(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 Go=new Set([`properties`,`items`,`allOf`,`anyOf`,`oneOf`,`not`,`additionalProperties`,`schema`]);function Ko(e){return e?!!(e.some(e=>Go.has(e))||e.some(e=>e.endsWith(`Schema`))||e.length>=2&&e[0]===`components`&&e[1]===`schemas`):!1}function qo(e){let t=e;return t===null||typeof t.openapi!=`string`||!t.openapi.startsWith(`3.0`)?t:(t.openapi=`3.1.1`,t=yo(t,Jo),t)}var Jo=(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&&(Ko(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 Yo(e,t){let n=No(e);if(t===`3.0`)return n;let r=qo(n);return t===`3.1`?r:vo(r)}var Xo="```",Zo=(e,t)=>`${Xo}${e}\n${t.trimEnd()}\n${Xo}`,Qo=(e,t)=>`@example\n${Zo(e,t)}`,$o=e=>`\`${e}\``,es=(...e)=>e.join(`
|
|
15
|
+
import{r as e,t}from"./browser-67K6wmG9.js";import{$r as n,Ai as r,Ar as i,Bi as a,Bo as o,Br as s,Ci as c,Di as l,Dn as u,Ei as d,Fi as f,Fn as p,Fo as m,Fr as h,G as g,Gi as ee,Gn as _,Go as v,Gr as te,H as ne,Hi as y,Ho as b,Hr as x,Ii as S,Io as C,Ir as re,J as ie,Ji as ae,Jo as w,Jr as T,Ki as oe,Ko as E,Kr as se,Li as ce,Lo as le,Lr as ue,Mi as D,Mn as O,Mr as de,Ni as k,Nr as fe,Oi as pe,Oo as me,Pi as he,Po as A,Pr as ge,Q as _e,Qr as ve,Ri as ye,Rn as be,Ro as j,Rr as xe,Si as Se,Ti as Ce,Ui as we,Uo as M,Ur as Te,Vi as Ee,Vo as N,Vr as De,Wa as Oe,Wi as ke,Wn as Ae,Wo as P,Wr as je,Xi as Me,Xo as Ne,Xr as Pe,Y as Fe,Yi as Ie,Yo as Le,Yr as Re,Zi as ze,Zn as Be,Zr as Ve,_ as He,_i as Ue,aa as We,ai as Ge,bi as Ke,ca as qe,ci as Je,da as Ye,di as Xe,ei as Ze,fi as Qe,g as $e,ga as et,gi as tt,h as nt,ha as F,hi as rt,ia as it,ii as at,ji as ot,jn as st,jr as ct,ki as lt,kr as ut,la as dt,li as ft,mi as pt,ni as mt,oa as ht,oi as gt,pa as I,pi as _t,pr as vt,qi as yt,qo as L,qr as bt,ra as R,ri as xt,sa as St,si as Ct,ti as wt,ua as Tt,va as Et,vi as Dt,wi as Ot,xi as kt,ya as At,yi as jt,zi as Mt,zo as z,zr as Nt}from"./vendor-C5HmjoOQ.js";import{A as Pt,B as Ft,D as It,Gt as Lt,H as B,J as Rt,K as zt,Q as Bt,R as Vt,S as Ht,Tt as V,U as Ut,Yt as Wt,at as Gt,b as Kt,d as qt,dt as Jt,f as Yt,gt as Xt,k as Zt,l as Qt,mt as $t,ot as en,p as H,tt as tn,u as U}from"./runtime-core.esm-bundler-Byrbbu5Q.js";var W=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},nn=(e,t,n)=>{if(!e)return!1;let r=W(t)||Array.isArray(t);if(r&&n.get(t)?.has(e))return!0;if(r){let r=n.get(t)??new Set;r.add(e),n.set(t,r)}try{if(e.type===`any`||e.type===`unknown`)return!0;if(e.type===`function`)return typeof t==`function`;if(e.type===`number`)return typeof t==`number`&&!Number.isNaN(t)&&Number.isFinite(t);if(e.type===`string`)return typeof t==`string`;if(e.type===`boolean`)return typeof t==`boolean`;if(e.type===`nullable`)return t===null;if(e.type===`notDefined`)return t===void 0;if(e.type===`array`)return Array.isArray(t)&&t.every(t=>nn(e.items,t,n));if(e.type===`record`)return W(t)?Object.keys(t).every(r=>nn(e.key,r,n)&&nn(e.value,t[r],n)):!1;if(e.type===`object`)return W(t)?Object.keys(e.properties).every(r=>nn(e.properties[r],t[r],n)):!1;if(e.type===`optional`)return t===void 0||nn(e.schema,t,n);if(e.type===`union`)return e.schemas.some(e=>nn(e,t,n));if(e.type===`intersection`)return e.schemas.length===0?!0:W(t)?e.schemas.every(e=>nn(e,t,n)):!1;if(e.type===`literal`)return t===e.value;if(e.type===`lazy`)return nn(e.schema(),t,n);if(e.type===`evaluate`)return nn(e.schema,e.expression(t),n);let r=e;return console.warn(`Unknown schema type:`,r),!1}finally{r&&n.get(t)?.delete(e)}},rn=(e,t,n=new WeakMap)=>nn(e,t,n),an=(e,t)=>{let n=t.get(e);if(n)return n;let r=e.schema();return t.set(e,r),r},on=e=>e.type===`optional`?on(e.schema):e.type===`literal`?!0:e.type===`union`?e.schemas.length>0&&e.schemas.every(on):!1,sn=(e,t,n,r=new WeakMap)=>{if(W(t)&&r.get(t)?.has(e))return 1;let i=W(t);if(i){let n=r.get(t)??new Set;n.add(e),r.set(t,n)}try{if(e.type===`object`){if(!W(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=sn(o,s,n,r);return on(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`?W(t)?1:0:e.type===`optional`?t===void 0?1:sn(e.schema,t,n,r):e.type===`union`?Math.max(...e.schemas.map(e=>sn(e,t,n,r))):e.type===`intersection`?e.schemas.length===0?1:e.schemas.reduce((e,i)=>e+sn(i,t,n,r),0):e.type===`lazy`?sn(an(e,n),t,n,r):e.type===`evaluate`?sn(e.schema,e.expression(t),n,r):rn(e,t)?1:0}finally{i&&r.get(t)?.delete(e)}},cn=(e,t,n,r)=>{if(W(e)||Array.isArray(e)){let i=r.get(e)||new Map;i.set(t,n),r.set(e,i)}},ln=(e,t,n,r)=>{if((W(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 rn(e,t)?t:e.default??0;if(e.type===`string`)return rn(e,t)?t:e.default??``;if(e.type===`boolean`)return rn(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:ln(e.schema,t,n,r);if(e.type===`array`){if(!Array.isArray(t))return[];let i=Array(t.length);cn(t,e,i,n);for(let a=0;a<t.length;a++)i[a]=ln(e.items,t[a],n,r);return i}if(e.type===`record`){if(!W(t))return{};let i={};cn(t,e,i,n);for(let a of Object.keys(t))i[a]=ln(e.value,t[a],n,r);return i}if(e.type===`object`){let i=Object.keys(e.properties),a=W(t)?t:null,o={};cn(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]=ln(i,s,n,r))}return o}if(e.type===`union`)return ln(e.schemas.reduce((e,n)=>{let i=sn(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,ln(i,t,n,r)),{});if(e.type===`literal`)return e.value;if(e.type===`lazy`)return ln(an(e,r),t,n,r);if(e.type===`evaluate`)return ln(e.schema,e.expression(t),n,r);let i=e;return console.warn(`Unknown schema type:`,i),t},un=(e,t,n=new WeakMap,r=new WeakMap)=>ln(e,t,n,r);P({name:L({typeComment:"Name of specification extension property. Has to start with `x-`."}),component:Le({typeComment:`Vue component to render the specification extension`}),renderer:v(Le({typeComment:`Custom renderer to render the specification extension`}))});var dn=P({component:Le({typeComment:`Vue component to render in the view`}),renderer:v(Le({typeComment:`Custom renderer to render the view component (e.g., ReactRenderer)`})),props:v(E(L(),A()),{typeComment:`Additional props to pass to the component`}),sidebar:v(P({show:C(),label:L()}),{typeComment:`Sidebar configuration. Set show: true to display in sidebar.`})});P({"content.start":v(m(dn),{typeComment:`Components to render before the Introduction/Info section`}),"content.end":v(m(dn),{typeComment:`Components to render at specific views in the API Reference`})}),P({onInit:v(j()),onConfigChange:v(j()),onDestroy:v(j())});var fn=j(),pn=P({dashboardUrl:L({default:`https://dashboard.scalar.com`}),registryUrl:L({default:`https://registry.scalar.com`}),proxyUrl:L({default:`https://proxy.scalar.com`}),apiBaseUrl:L({default:`https://api.scalar.com`})},{typeComment:`External service URLs used by Scalar packages`}),mn=P({title:v(L(),{typeComment:`The title of the OpenAPI document.`}),slug:v(L(),{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:v(A(),{typeComment:`Prefill authentication`}),baseServerURL:v(L(),{typeComment:`Base URL for the API server`}),hideClientButton:C({default:!1,typeComment:`Whether to hide the client button`}),proxyUrl:v(L(),{typeComment:`URL to a request proxy for the API client`}),oauth2RedirectUri:v(L(),{typeComment:`Default OAuth 2.0 redirect URI used to prefill auth flows in the API client.`}),searchHotKey:v(w([N(`a`),N(`b`),N(`c`),N(`d`),N(`e`),N(`f`),N(`g`),N(`h`),N(`i`),N(`j`),N(`k`),N(`l`),N(`m`),N(`n`),N(`o`),N(`p`),N(`q`),N(`r`),N(`s`),N(`t`),N(`u`),N(`v`),N(`w`),N(`x`),N(`y`),N(`z`)]),{typeComment:`Key used with CTRL/CMD to open the search modal (defaults to 'k' e.g. CMD+k)`}),servers:v(m(A()),{typeComment:`List of OpenAPI server objects`}),showSidebar:C({default:!0,typeComment:`Whether to show the sidebar`}),showDeveloperTools:w([N(`localhost`),N(`always`),N(`never`)],{typeComment:`Whether and when to show the developer tools.`}),showToolbar:w([N(`localhost`),N(`always`),N(`never`)],{typeComment:`@deprecated Use showDeveloperTools instead`}),operationTitleSource:w([N(`summary`),N(`path`)],{typeComment:`Whether to use the operation summary or the operation path for the sidebar and search`}),theme:w([N(`default`),N(`alternate`),N(`moon`),N(`purple`),N(`solarized`),N(`bluePlanet`),N(`deepSpace`),N(`saturn`),N(`kepler`),N(`elysiajs`),N(`fastify`),N(`mars`),N(`laserwave`),N(`none`)],{typeComment:`A string to use one of the color presets`}),_integration:v(w([N(`adonisjs`),N(`astro`),N(`docusaurus`),N(`dotnet`),N(`elysiajs`),N(`express`),N(`fastapi`),N(`fastify`),N(`go`),N(`hono`),N(`html`),N(`laravel`),N(`litestar`),N(`nestjs`),N(`nextjs`),N(`nitro`),N(`nuxt`),N(`platformatic`),N(`react`),N(`rust`),N(`svelte`),N(`vue`),b()]),{typeComment:`Integration type identifier`}),onRequestSent:v(j(),{typeComment:`onRequestSent is fired when a request is sent`}),persistAuth:C({default:!1,typeComment:`Whether to persist auth to local storage`}),telemetry:C({default:!0,typeComment:`Enables / disables telemetry`}),externalUrls:pn}),hn=w([L(),b(),E(L(),A()),j()]),gn=z([mn,P({default:C({default:!1}),url:v(L(),{typeComment:`URL to an OpenAPI/Swagger document`}),content:v(hn,{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:v(L(),{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:v(L(),{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:v(P({url:v(L()),content:v(hn)}),{typeComment:"@deprecated Use `url` and `content` on the top level instead."}),agent:v(P({key:v(L()),disabled:v(C()),hideAddApi:v(C(),{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`})}),P({layout:w([N(`modern`),N(`classic`)],{typeComment:`The layout to use for the references`}),proxy:v(L(),{typeComment:`@deprecated Use proxyUrl instead`}),fetch:v(j(),{typeComment:"@deprecated Use `customFetch` instead."}),customFetch:v(j(),{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:v(m(fn),{typeComment:`Plugins for the API reference`}),isEditable:C({default:!1,typeComment:`Allows the user to inject an editor for the spec`}),hideModels:C({default:!1,typeComment:`Whether to show models in the sidebar, search, and content.`}),modelsSectionLabel:v(w([N(`Models`),N(`Schemas`),L()]),{typeComment:"Label for the components.schemas section in the sidebar, content, and search. Use `Schemas` for OpenAPI terminology."}),localization:v(P({locale:v(L()),direction:v(w([N(`auto`),N(`ltr`),N(`rtl`)])),translations:v(E(L(),A()))}),{typeComment:`API Reference UI localization. Select a built-in locale, override labels, and control LTR/RTL rendering.`}),documentDownloadType:w([N(`both`),N(`yaml`),N(`json`),N(`direct`),N(`none`)],{typeComment:"Sets the file type of the document to download, set to `none` to hide the download button"}),hideDownloadButton:v(C(),{typeComment:"@deprecated Use `documentDownloadType: 'none'` instead"}),hideTestRequestButton:C({default:!1,typeComment:`Whether to show the "Test Request" button`}),hideSearch:C({default:!1,typeComment:`Whether to show the sidebar search bar`}),showOperationId:C({default:!1,typeComment:`Whether to show the operationId`}),darkMode:v(C(),{typeComment:`Whether dark mode is on or off initially (light mode)`}),forceDarkModeState:v(w([N(`dark`),N(`light`)]),{typeComment:`forceDarkModeState makes it always this state no matter what`}),hideDarkModeToggle:C({default:!1,typeComment:`Whether to show the dark mode toggle`}),metaData:v(A(),{typeComment:`If used, passed data will be added to the HTML header. @see https://unhead.unjs.io/usage/composables/use-seo-meta`}),favicon:v(L(),{typeComment:`Path to a favicon image`}),hiddenClients:v(w([E(L(),w([C(),m(L())])),m(L()),N(!0)]),{typeComment:"List of httpsnippet clients to hide from the clients menu. By default hides Unirest, pass `[]` to show all clients"}),defaultHttpClient:v(P({targetKey:L(),clientKey:L()}),{typeComment:`Determine the HTTP client that is selected by default`}),customCss:v(L(),{typeComment:`Custom CSS to be added to the page`}),onServerChange:v(j(),{typeComment:`onServerChange is fired on selected server change`}),onDocumentSelect:v(j(),{typeComment:`onDocumentSelect is fired when the config is selected`}),onLoaded:v(j(),{typeComment:`Callback fired when the reference is fully loaded`}),onBeforeRequest:v(j(),{typeComment:`Fired before the outbound request is built; callback receives a mutable request builder. Experimental API.`}),onRequestBuilt:v(j(),{typeComment:`Fired right before the outbound request is sent; callback receives the exact fetch Request that goes over the wire. Experimental API.`}),onShowMore:v(j(),{typeComment:`onShowMore is fired when the user clicks the "Show more" button on the references`}),onSidebarClick:v(j(),{typeComment:`onSidebarClick is fired when the user clicks on a sidebar item`}),pathRouting:v(P({basePath:L()}),{typeComment:`Route using paths instead of hashes, your server MUST support this. @experimental`}),mcp:v(P({name:v(L(),{typeComment:`Display name for the MCP server`}),url:v(L(),{typeComment:`URL of the MCP server`}),disabled:v(C(),{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:v(j(),{typeComment:`Customize the heading portion of the hash`}),generateModelSlug:v(j(),{typeComment:`Customize the model portion of the hash`}),generateTagSlug:v(j(),{typeComment:`Customize the tag portion of the hash`}),generateOperationSlug:v(j(),{typeComment:`Customize the operation portion of the hash`}),generateWebhookSlug:v(j(),{typeComment:`Customize the webhook portion of the hash`}),setPageTitle:v(j(),{typeComment:`Customize the browser tab title for the section currently in view`}),redirect:v(j(),{typeComment:`To handle redirects, pass a function that receives the current path/hash and passes that to history.replaceState`}),withDefaultFonts:C({default:!0,typeComment:`Whether to include default fonts`}),defaultOpenFirstTag:C({default:!0,typeComment:`Whether to expand the first tag in the sidebar when no specific URL target is present`}),defaultOpenAllTags:C({default:!1,typeComment:`Whether to expand all tags by default. Warning: this can cause performance issues on big documents`}),expandAllModelSections:C({default:!1,typeComment:`Whether to expand all models by default. Warning: this can cause performance issues on big documents`}),expandAllResponses:C({default:!1,typeComment:`Whether to expand all responses by default. Warning: this can cause performance issues on big documents`}),expandAllSchemaProperties:C({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:v(w([N(`alpha`),j()]),{typeComment:`Function to sort tags`}),operationsSorter:v(w([N(`alpha`),N(`method`),j()]),{typeComment:`Function to sort operations`}),orderSchemaPropertiesBy:w([N(`alpha`),N(`preserve`)],{typeComment:`Order the schema properties by`}),orderRequiredPropertiesFirst:C({default:!0,typeComment:`Sort the schema properties by required ones first`})})]),_n=`https://api.scalar.com/request-proxy`,vn=`https://proxy.scalar.com`,yn=e=>{let t=un(gn,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===_n&&(console.warn(`[DEPRECATED] Warning: configuration.proxyUrl points to our old proxy (${_n}).`),console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${vn}) instead.`),console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${vn}). Read more: https://github.com/scalar/scalar`),t.proxyUrl=vn),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??=Ne,t},bn={key:0},xn={key:1},Sn={key:2},Cn={key:3},wn={key:4},Tn={key:5},En=Ht({name:`ScalarIconArrowUp`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=Oe(e);return(e,r)=>(B(),H(`svg`,Pt({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},V(t)),[zt(e.$slots,`default`),V(n)===`bold`?(B(),H(`g`,bn,[...r[0]||=[U(`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)]])):V(n)===`duotone`?(B(),H(`g`,xn,[...r[1]||=[U(`path`,{d:`M200,112H56l72-72Z`,opacity:`0.2`},null,-1),U(`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)]])):V(n)===`fill`?(B(),H(`g`,Sn,[...r[2]||=[U(`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)]])):V(n)===`light`?(B(),H(`g`,Cn,[...r[3]||=[U(`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)]])):V(n)===`regular`?(B(),H(`g`,wn,[...r[4]||=[U(`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)]])):V(n)===`thin`?(B(),H(`g`,Tn,[...r[5]||=[U(`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)]])):Yt(``,!0)],16))}}),Dn={key:0},On={key:1},kn={key:2},An={key:3},jn={key:4},Mn={key:5},Nn=Ht({name:`ScalarIconLockSimple`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=Oe(e);return(e,r)=>(B(),H(`svg`,Pt({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},V(t)),[zt(e.$slots,`default`),V(n)===`bold`?(B(),H(`g`,Dn,[...r[0]||=[U(`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)]])):V(n)===`duotone`?(B(),H(`g`,On,[...r[1]||=[U(`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),U(`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)]])):V(n)===`fill`?(B(),H(`g`,kn,[...r[2]||=[U(`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)]])):V(n)===`light`?(B(),H(`g`,An,[...r[3]||=[U(`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)]])):V(n)===`regular`?(B(),H(`g`,jn,[...r[4]||=[U(`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)]])):V(n)===`thin`?(B(),H(`g`,Mn,[...r[5]||=[U(`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)]])):Yt(``,!0)],16))}});function Pn(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[he]}'`;default:return`Unknown error type`}}var Fn=Pn;function In(){return Fn}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 Ln=class extends f{constructor(e){super(`Unknown type`),this.schema=e}};function Rn(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function K(e){return e!==void 0}var zn=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:In()({errorType:e,path:n,schema:t,value:r,errors:i}),errors:i}}function*Bn(e,t,n,r){}function*Vn(e,t,n,r){}function*Hn(e,t,n,r){if(!ce(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=Ot(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:lt(),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)),oe(e.minContains)&&a<e.minContains&&(yield q(G.ArrayMinContains,e,n,r)),oe(e.maxContains)&&a>e.maxContains&&(yield q(G.ArrayMaxContains,e,n,r))}function*Un(e,t,n,r){ye(r)||(yield q(G.AsyncIterator,e,n,r))}function*Wn(e,t,n,r){if(!Mt(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*Gn(e,t,n,r){a(r)||(yield q(G.Boolean,e,n,r))}function*Kn(e,t,n,r){yield*J(e.returns,t,n,r.prototype)}function*qn(e,t,n,r){if(!Ee(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*Jn(e,t,n,r){y(r)||(yield q(G.Function,e,n,r))}function*Yn(e,t,n,r){let i=globalThis.Object.values(e.$defs),a=e.$defs[e.$ref];yield*J(a,[...t,...i],n,r)}function*Xn(e,t,n,r){if(!we(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*Zn(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(pe(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(pe(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*Qn(e,t,n,r){ke(r)||(yield q(G.Iterator,e,n,r))}function*$n(e,t,n,r){r!==e.const&&(yield q(G.Literal,e,n,r))}function*er(e,t,n,r){yield q(G.Never,e,n,r)}function*tr(e,t,n,r){J(e.not,t,n,r).next().done===!0&&(yield q(G.Not,e,n,r))}function*nr(e,t,n,r){ee(r)||(yield q(G.Null,e,n,r))}function*rr(e,t,n,r){if(!S.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*ir(e,t,n,r){if(!S.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}/${Rn(t)}`,void 0));if(e.additionalProperties===!1)for(let t of o)a.includes(t)||(yield q(G.ObjectAdditionalProperties,e,`${n}/${Rn(t)}`,r[t]));if(typeof e.additionalProperties==`object`)for(let i of o)a.includes(i)||(yield*J(e.additionalProperties,t,`${n}/${Rn(i)}`,r[i]));for(let i of a){let a=e.properties[i];e.required&&e.required.includes(i)?(yield*J(a,t,`${n}/${Rn(i)}`,r[i]),l(e)&&!(i in r)&&(yield q(G.ObjectRequiredProperty,a,`${n}/${Rn(i)}`,void 0))):S.IsExactOptionalProperty(r,i)&&(yield*J(a,t,`${n}/${Rn(i)}`,r[i]))}}function*ar(e,t,n,r){yt(r)||(yield q(G.Promise,e,n,r))}function*or(e,t,n,r){if(!S.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}/${Rn(e)}`,i));if(typeof e.additionalProperties==`object`)for(let[i,a]of Object.entries(r))o.test(i)||(yield*J(e.additionalProperties,t,`${n}/${Rn(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}/${Rn(t)}`,i)}}function*sr(e,t,n,r){yield*J(Ce(e,t),t,n,r)}function*cr(e,t,n,r){if(!ae(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*lr(e,t,n,r){if(!ae(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)),ae(e.pattern)&&(new RegExp(e.pattern).test(r)||(yield q(G.StringPattern,e,n,r))),ae(e.format)&&(k(e.format)?D(e.format)(r)||(yield q(G.StringFormat,e,n,r)):yield q(G.StringFormatUnknown,e,n,r))}function*ur(e,t,n,r){Ie(r)||(yield q(G.Symbol,e,n,r))}function*dr(e,t,n,r){if(!ae(r))return yield q(G.String,e,n,r);new RegExp(e.pattern).test(r)||(yield q(G.StringPattern,e,n,r))}function*fr(e,t,n,r){yield*J(Ce(e,t),t,n,r)}function*pr(e,t,n,r){if(!ce(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*mr(e,t,n,r){ze(r)||(yield q(G.Undefined,e,n,r))}function*hr(e,t,n,r){if(c(e,t,r))return;let i=e.anyOf.map(e=>new zn(J(e,t,n,r)));yield q(G.Union,e,n,r,i)}function*gr(e,t,n,r){if(!Me(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*_r(e,t,n,r){}function*vr(e,t,n,r){S.IsVoidLike(r)||(yield q(G.Void,e,n,r))}function*yr(e,t,n,i){r(e[he])(e,i)||(yield q(G.Kind,e,n,i))}function*J(e,t,n,r){let i=K(e.$id)?[...t,e]:t,a=e;switch(a[he]){case`Any`:return yield*Bn(a,i,n,r);case`Argument`:return yield*Vn(a,i,n,r);case`Array`:return yield*Hn(a,i,n,r);case`AsyncIterator`:return yield*Un(a,i,n,r);case`BigInt`:return yield*Wn(a,i,n,r);case`Boolean`:return yield*Gn(a,i,n,r);case`Constructor`:return yield*Kn(a,i,n,r);case`Date`:return yield*qn(a,i,n,r);case`Function`:return yield*Jn(a,i,n,r);case`Import`:return yield*Yn(a,i,n,r);case`Integer`:return yield*Xn(a,i,n,r);case`Intersect`:return yield*Zn(a,i,n,r);case`Iterator`:return yield*Qn(a,i,n,r);case`Literal`:return yield*$n(a,i,n,r);case`Never`:return yield*er(a,i,n,r);case`Not`:return yield*tr(a,i,n,r);case`Null`:return yield*nr(a,i,n,r);case`Number`:return yield*rr(a,i,n,r);case`Object`:return yield*ir(a,i,n,r);case`Promise`:return yield*ar(a,i,n,r);case`Record`:return yield*or(a,i,n,r);case`Ref`:return yield*sr(a,i,n,r);case`RegExp`:return yield*cr(a,i,n,r);case`String`:return yield*lr(a,i,n,r);case`Symbol`:return yield*ur(a,i,n,r);case`TemplateLiteral`:return yield*dr(a,i,n,r);case`This`:return yield*fr(a,i,n,r);case`Tuple`:return yield*pr(a,i,n,r);case`Undefined`:return yield*mr(a,i,n,r);case`Union`:return yield*hr(a,i,n,r);case`Uint8Array`:return yield*gr(a,i,n,r);case`Unknown`:return yield*_r(a,i,n,r);case`Void`:return yield*vr(a,i,n,r);default:if(!ot(a[he]))throw new Ln(e);return yield*yr(a,i,n,r)}}function br(...e){return new zn(e.length===3?J(e[0],e[1],``,e[2]):J(e[0],[],``,e[1]))}var xr=Symbol(),Sr=()=>It(xr,!1),Cr=()=>{Ut(xr,!0)},wr=Ht({inheritAttrs:!1,__name:`ScalarFormInput`,props:{is:{default:`button`}},setup(e){let{cx:t}=Et(),n=Sr(),r=At({base:[`bg-b-1.5 flex items-center text-c-2 gap-0.75 p-3 text-base`,`outline-offset-[-1px] has-[:focus-visible]:outline`],variants:{grouped:{true:`first:rounded-t-[inherit] last:rounded-b-[inherit]`,false:`rounded shadow-border`},button:{true:`cursor-pointer hover:bg-b-2`}}});return(i,a)=>(B(),qt(Rt(e.is),Pt({type:e.is===`button`?`button`:void 0},V(t)(V(r)({button:e.is===`button`,grouped:V(n)}))),{default:Gt(()=>[zt(i.$slots,`default`)]),_:3},16,[`type`]))}});function Tr(e,t,n){let r=new Map;t.forEach((e,t)=>r.set(e,t));let i=[],a=[];return e.forEach(e=>{let t=r.get(n(e));if(t===void 0){a.push(e);return}i[t]=e}),[...i.filter(e=>e!==void 0),...a]}var Er=e=>!!(e?.[`x-internal`]||e?.[`x-scalar-ignore`]),Y=({tagsMap:e,name:t,documentId:n,generateId:r})=>(e.get(t)||e.set(t,{id:r({type:`tag`,tag:{name:t},parentId:n}),parentId:n,entries:[],tag:{name:t}}),e.get(t));function Dr(e){return e.replace(/!\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/(\*{3}|_{3})(.+?)\1/g,`$2`).replace(/(\*{2}|_{2})(.+?)\1/g,`$2`).replace(/(\*|_)(.+?)\1/g,`$2`).replace(/~~(.+?)~~/g,`$1`).replace(/`([^`]+)`/g,`$1`).replace(/<[^>]+>/g,``).replace(/[<>]/g,``).trim()}function Or(e){let t=e.split(/\r?\n/),n=[],r=!1,i=``,a=0;for(let e=0;e<t.length;e++){let o=t[e]??``,s=o.trimStart();if(r){let e=/^(`{3,}|~{3,})\s*$/.exec(s)?.[1];e&&e[0]===i&&e.length>=a&&(r=!1);continue}else{let e=/^(`{3,}|~{3,})/.exec(s)?.[1];if(e){r=!0,i=e.charAt(0),a=e.length;continue}}if(/^(?: {4}|\t)/.test(o))continue;let c=/^(#{1,6})\s+(.+?)(?:\s+#+\s*)?$/.exec(s),l=c?.[1],u=c?.[2];if(l&&u){let e=Dr(u);e&&n.push({depth:l.length,value:e});continue}let d=t[e+1];if(!d||/^(?: {4}|\t)/.test(d))continue;let f=/^(=+|-+)\s*$/.exec(d.trim())?.[1];if(!f)continue;let p=Dr(s);p&&(n.push({depth:f[0]===`=`?1:2,value:p}),e++)}return n}var kr=(e={})=>{let t=new Map;return{slug(n){let r=Fe(n,e),i=t.get(r);if(i===void 0)return t.set(r,0),r;let a=i+1;return t.set(r,a),`${r}-${a}`},reset(){t.clear()}}},Ar=(e,t)=>e.map(e=>({...e,slug:t(e.value)}));function jr(e){let{slug:t}=kr();return Ar(Or(e),t)}var Mr=e=>{let t=Math.min(...e.map(e=>e.depth));return t>=1&&t<=6?t:1},Nr={TITLE:`Introduction`,SLUG:`introduction`},Pr=(e,t,n)=>({id:e({type:`text`,depth:1,slug:Nr.SLUG,parentId:t,info:n,value:Nr.TITLE}),title:Nr.TITLE,type:`text`}),Fr=({generateId:e,parentId:t,info:n})=>{let r=n.description?.trim();if(!r)return[Pr(e,t,n)];let i=jr(r),a=Mr(i),o=[],s=null,c=null;if(!r.startsWith(`#`)){let r=Pr(e,t,n);o.push(r),s=r}for(let r of i){if(r.depth!==a&&r.depth!==a+1)continue;let i={id:e({type:`text`,depth:r.depth,slug:r.slug,parentId:t,info:n,value:r.value}),title:r.value,type:`text`};r.depth===a?(i.children=[],s?(s.children||=[],s.children.push(i)):o.push(i),c=i):c&&c.children?.push(i)}return o},Ir=({ref:e,name:t,generateId:n,parentTag:r,_schema:i,parentId:a})=>{let o=n({name:t,type:`model`,parentTag:r,parentId:a,schema:i}),s=F(i);return{id:o,title:s&&`title`in s&&s.title||t,name:t,ref:e,type:`model`}},Lr=({document:e,tagsMap:t,generateId:n,documentId:r})=>{let i=e.components?.schemas??{},a=[];for(let e in i){if(!Object.hasOwn(i,e))continue;let o=F(i[e],et);if(Er(o))continue;let s=`#/components/schemas/${e}`;o?.[`x-tags`]?o[`x-tags`].forEach(i=>{let{tag:a,id:o}=Y({tagsMap:t,name:i,documentId:r,generateId:n});t.get(i)?.entries.push(Ir({ref:s,name:e,generateId:n,parentTag:{tag:a,id:o},parentId:r}))}):a.push(Ir({ref:s,name:e,generateId:n,_schema:F(i[e]),parentId:r}))}return a},Rr=(...e)=>{for(let t of e){let e=t?.trim();if(e)return e}},zr=(e,t)=>typeof t.address==`string`&&t.address.length>0?t.address:e,Br=(e,t)=>Rr(e.title,e.summary)??zr(t,e),Vr=(e,t)=>Rr(e.title,e.summary)??t,Hr=(e,t)=>Rr(e.title,e.summary,e.name)??t,Ur=e=>e.match(/^#\/channels\/([^/]+)$/)?.[1],Wr=(e,t)=>{let n=t.channel;if(!n||!(`$ref`in n))return;let r=Ur(n.$ref);if(!r)return;let i=e.channels?.[r];if(i)return{channelName:r,channel:F(i,et)}},Gr=(e,t,n)=>{let r=t.messages??{};if(e.messages===void 0)return p(r);if(e.messages.length===0)return[];let i=`#/channels/${n}/messages/`,a=new Set;for(let t of e.messages)if(`$ref`in t){if(t.$ref.startsWith(i)){let e=t.$ref.slice(i.length);if(r[e]){a.add(e);continue}}for(let[e,n]of Object.entries(r))n&&`$ref`in n&&n.$ref===t.$ref&&a.add(e)}return[...a]},Kr=e=>{let t=F(e,et);return{name:t.name,description:t.description}},qr=(e,t)=>{if(t===`alpha`){e.sort((e,t)=>e.title.localeCompare(t.title));return}if(t===`method`){e.sort((e,t)=>e.action.localeCompare(t.action));return}typeof t==`function`&&e.sort((e,n)=>t({method:e.action,path:e.operationName,ref:e.operationName,httpVerb:e.action},{method:n.action,path:n.operationName,ref:n.operationName,httpVerb:n.action}))},Jr=e=>{e.sort((e,t)=>e.title.localeCompare(t.title))},Yr=({channelName:e,channel:t,operationId:n,messageNames:r,generateId:i})=>{let a=r.flatMap(r=>{let a=t.messages?.[r];if(!a)return[];let o=F(a,et);return Er(o)?[]:[{type:`asyncapi-message`,id:i({type:`asyncapi-message`,messageName:r,channelName:e,parentId:n}),title:Hr(o,r),messageName:r,channelName:e}]});return Jr(a),a},Xr=({operationName:e,operation:t,channel:n,channelName:r,channelAddress:i,generateId:a,parentId:o})=>{if(Er(t))return;let s=a({type:`asyncapi-operation`,operationName:e,parentId:o}),c=Yr({channelName:r,channel:n,operationId:s,messageNames:Gr(t,n,r),generateId:a});return{type:`asyncapi-operation`,id:s,title:Vr(t,e),operationName:e,action:t.action,channelName:r,channelAddress:i,children:c.length>0?c:void 0}},Zr=({bucket:e,operationEntries:t,generateId:n,parentId:r,parentTag:i,operationsSorter:a,document:o})=>{if(Er(e.channel))return;let s=n({type:`asyncapi-channel`,channelName:e.channelName,parentId:r,parentTag:i}),c=t.flatMap(({operationName:t,operation:r})=>{let i=Xr({operationName:t,operation:r,channel:e.channel,channelName:e.channelName,channelAddress:e.channelAddress,generateId:n,parentId:s});return i?[i]:[]});if(qr(c,a),c.length===0)return;let l=o.channels?.[e.channelName];return l&&!(`$ref`in l)&&(l[`x-scalar-order`]=c.map(e=>e.id)),{type:`asyncapi-channel`,id:s,title:Br(e.channel,e.channelName),channelName:e.channelName,channelAddress:e.channelAddress,children:c}},Qr=({tag:e,generateId:t,children:n,parentId:r})=>{let i=t({type:`tag`,tag:e,parentId:r,isGroup:!1}),a=e[`x-displayName`]??e.name??`Untitled Tag`;return e[`x-scalar-order`]=n.map(e=>e.id),{type:`tag`,id:i,title:a,name:e.name||a,description:e.description,children:n,isGroup:!1,isWebhooks:!1}},$r=({tagKeys:e,tagsMap:t,documentId:n,options:{tagsSorter:r,generateId:i},sortOrder:a})=>{let o=e.flatMap(e=>{let{tag:r,entries:a}=Y({tagsMap:t,name:e,documentId:n,generateId:i});if(Er(r))return[];let o=r[`x-scalar-order`];return Qr({tag:r,generateId:i,children:o?Tr(a,o,e=>e.id):a,parentId:n})});return a?Tr(o,a,e=>e.id):(r===`alpha`?o.sort((e,t)=>e.title.localeCompare(t.title)):typeof r==`function`&&o.sort((e,a)=>r(Y({tagsMap:t,name:e.name,documentId:n,generateId:i}).tag,Y({tagsMap:t,name:a.name,documentId:n,generateId:i}).tag)),o)},ei=(e,t,n)=>{let r=e.get(t);if(r)return r;let i={channelName:t,channel:n,channelAddress:zr(t,n),channelTags:n.tags?.map(Kr)??[],operations:[]};return e.set(t,i),i},ti=e=>{let t=new Map;for(let[n,r]of Object.entries(e.channels??{})){if(!r)continue;let e=F(r,et);Er(e)||ei(t,n,e)}for(let[n,r]of Object.entries(e.operations??{})){if(!r)continue;let i=F(r,et);if(Er(i))continue;let a=Wr(e,i);a&&ei(t,a.channelName,a.channel).operations.push({operationName:n,operation:i})}return t},ni=(e,t,n)=>{let{generateId:r,operationsSorter:i,tagsSorter:a,hideModels:o,modelsSectionLabel:s}=ie(e,n),c=r({type:`document`,info:t.info,name:e}),l=ti(t),u=new Map,d=[];for(let e of l.values()){if(e.channelTags.length===0){let n=Zr({bucket:e,operationEntries:e.operations,generateId:r,parentId:c,operationsSorter:i,document:t});n&&d.push(n)}for(let n of e.channelTags){let{id:a,entries:o}=Y({tagsMap:u,name:n.name??`Untitled Tag`,documentId:c,generateId:r});if(o.some(t=>t.type===`asyncapi-channel`&&t.channelName===e.channelName))continue;let s=Zr({bucket:e,operationEntries:e.operations,generateId:r,parentId:a,parentTag:{tag:n,id:a},operationsSorter:i,document:t});s&&o.push(s)}}let f=t.components?F(t.components,et):void 0,p=!o&&f?.schemas?Lr({documentId:c,document:{components:f},generateId:r,tagsMap:u}):[],m=Fr({generateId:r,parentId:c,info:t.info});u.size>0&&m.push(...$r({tagKeys:[...u.keys()],tagsMap:u,documentId:c,options:{tagsSorter:a,generateId:r},sortOrder:t[`x-scalar-order`]})),i===`alpha`&&d.sort((e,t)=>e.title.localeCompare(t.title)),m.push(...d),p.length&&m.push({type:`models`,id:r({type:`model`,parentId:c}),title:s,name:s,children:p});let h=t[`x-scalar-order`],g=h?Tr(m,h,e=>e.id):m;return t[`x-scalar-order`]=R(g.map(e=>e.id)),{id:c,type:`document`,title:t.info?.title?.trim()||`Untitled Document`,name:e,children:g,icon:t[`x-scalar-icon`]}};function ri(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}var ii=e=>{let t=new Set(e[`x-draft-examples`]??[]);if(e.requestBody){let n=F(e.requestBody);Object.values(n.content??{}).forEach(e=>{Object.keys(e.examples??{}).forEach(e=>{t.add(e)})})}return e.parameters&&e.parameters.forEach(e=>{let n=F(e)??{};`content`in n&&n.content&&Object.values(n.content).forEach(e=>{Object.keys(e.examples??{}).forEach(e=>{t.add(e)})}),`examples`in n&&n.examples&&Object.keys(n.examples??{}).forEach(e=>{t.add(e)})}),Array.from(t)},ai=e=>e.deprecated||e[`x-scalar-stability`]===x.Deprecated,oi=({ref:e,operation:t,method:n,path:r,generateId:i,parentId:a,parentTag:o,operationTitleSource:s})=>{let c=i({type:`operation`,operation:t,parentTag:o,method:n,path:r,parentId:a}),l=s===`path`?r:t.summary?.trim()?t.summary:r,u=ai(t),d=ii(t).map(e=>({type:`example`,id:i({type:`example`,parentId:c,name:e}),title:e,name:e}));return{id:c,title:l,path:r,method:n,ref:e,type:`operation`,isDeprecated:u,children:d.length?d:void 0}},si=({document:e,tagsMap:t,generateId:n,documentId:r,operationTitleSource:i})=>{let a=[];return Object.entries(e.paths??{}).forEach(([e,o])=>{be(o,(o,s)=>{let c=F(s,et);if(!c||Er(c))return;let l=`#/paths/${ri(e)}/${o}`;c.tags?.length?c.tags.forEach(a=>{let{tag:s,id:u}=Y({tagsMap:t,name:a,documentId:r,generateId:n});t.get(a)?.entries.push(oi({ref:l,operation:c,method:o,path:e,parentTag:{tag:s,id:u},generateId:n,parentId:u,operationTitleSource:i}))}):a.push(oi({ref:l,operation:c,method:o,path:e,generateId:n,parentId:r,operationTitleSource:i}))})}),{untaggedOperations:a}},ci=e=>e?Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(`x-`))):{},li=({tag:e,generateId:t,children:n,isGroup:r=!1,parentId:i})=>{let a=t({type:`tag`,tag:e,parentId:i,isGroup:r}),o=e[`x-displayName`]??e.name??`Untitled Tag`;return e[`x-scalar-order`]=n.map(e=>e.id),{id:a,title:o,name:e.name||o,description:e.description,children:n,isGroup:r,isWebhooks:!1,type:`tag`,xKeys:ci(R(e))}},ui=({_keys:e,tagsMap:t,options:{tagsSorter:n,operationsSorter:r,generateId:i},documentId:a,sortOrder:o})=>{let s=e.flatMap(e=>{let{tag:n,entries:o}=Y({tagsMap:t,name:e,documentId:a,generateId:i});if(Er(n))return[];let s=n[`x-scalar-order`];return s===void 0&&(r===`alpha`?o.sort((e,t)=>e.type===`operation`&&t.type===`operation`?e.title.localeCompare(t.title):0):r===`method`?o.sort((e,t)=>e.type===`operation`&&t.type===`operation`?e.method.localeCompare(t.method):0):typeof r==`function`&&o.sort((e,t)=>{if(!(e.type===`operation`||e.type===`webhook`)||!(t.type===`operation`||t.type===`webhook`))return 0;let n=e.type===`operation`?e.path:e.name,i=t.type===`operation`?t.path:t.name;return r({method:e.method,path:n,ref:e.ref,httpVerb:e.method},{method:t.method,path:i,ref:t.ref,httpVerb:t.method})})),li({tag:n,generateId:i,children:s?Tr(o,s,e=>e.id):o,parentId:a,isGroup:!1})});return o?Tr(s,o,e=>e.id):(n===`alpha`?s.sort((e,n)=>{let r=Y({tagsMap:t,name:e.title,documentId:a,generateId:i}).tag[`x-displayName`]||e.title||`Untitled Tag`,o=Y({tagsMap:t,name:n.title,documentId:a,generateId:i}).tag[`x-displayName`]||n.title||`Untitled Tag`;return r.localeCompare(o)}):typeof n==`function`&&s.sort((e,r)=>n(Y({tagsMap:t,name:e.name,documentId:a,generateId:i}).tag,Y({tagsMap:t,name:r.name,documentId:a,generateId:i}).tag)),s)},di=({document:e,tagsMap:t,documentId:n,options:{generateId:r,tagsSorter:i,operationsSorter:a}})=>e[`x-tagGroups`]?e[`x-tagGroups`].flatMap(e=>{let o=ui({_keys:e.tags,tagsMap:t,options:{tagsSorter:i,operationsSorter:a,generateId:r},documentId:n,sortOrder:e[`x-scalar-order`]});return e[`x-scalar-order`]=o.map(e=>e.id),o.length?li({tag:e,generateId:r,children:o,parentId:n,isGroup:!0}):[]}):ui({_keys:Array.from(t.keys()),tagsMap:t,options:{generateId:r,tagsSorter:i,operationsSorter:a},documentId:n,sortOrder:e[`x-scalar-order`]}),fi=({ref:e,method:t,name:n,title:r,generateId:i,parentTag:a,webhook:o,isDeprecated:s,parentId:c})=>({id:i({type:`webhook`,name:n,method:t,webhook:o,parentTag:a,parentId:c}),title:r,name:n,ref:e,method:t,type:`webhook`,isDeprecated:s}),pi=({document:e,tagsMap:t,generateId:n,untaggedWebhooksParentId:r,documentId:i})=>{let a=[];return Object.entries(e.webhooks??{}).forEach(([e,o])=>{be(o,(o,s)=>{let c=F(s,et);if(!c||Er(c))return;let l=`#/webhooks/${e}/${o}`;c.tags?.length?c.tags.forEach(r=>{let{tag:a,id:s}=Y({tagsMap:t,name:r,documentId:i,generateId:n});t.get(r)?.entries.push(fi({ref:l,method:o,name:e,title:c.summary??e,webhook:c,generateId:n,parentTag:{tag:a,id:s},parentId:s,isDeprecated:ai(c)}))}):a.push(fi({ref:l,method:o,name:e,title:c.summary??e,generateId:n,isDeprecated:ai(c),webhook:c,parentId:r}))})}),a},mi=(e,t,n)=>{let{hideModels:r,modelsSectionLabel:i,tagsSorter:a,operationsSorter:o,generateId:s,operationTitleSource:c}=ie(e,n),l=s({type:`document`,info:t.info,name:e}),u=new Map(t.tags?.map(e=>[e.name??`Untitled Tag`,{id:s({type:`tag`,tag:e,parentId:l}),parentId:l,tag:e,entries:[]}])??[]),d=Fr({generateId:s,parentId:l,info:t.info}),{untaggedOperations:f}=si({document:t,tagsMap:u,generateId:s,documentId:l,operationTitleSource:c}),p=s({type:`webhook`,name:``,parentId:l}),m=pi({document:t,generateId:s,tagsMap:u,untaggedWebhooksParentId:p,documentId:l}),h=di({document:t,tagsMap:u,documentId:l,options:{tagsSorter:a,operationsSorter:o,generateId:s}});if(d.push(...h),d.push(...f),m.length&&d.push({type:`tag`,id:p,title:`Webhooks`,name:`Webhooks`,children:m,isGroup:!1,isWebhooks:!0}),!r&&t.components?.schemas){let e=Lr({documentId:l,document:t,generateId:s,tagsMap:u});e.length&&d.push({type:`models`,id:s({type:`model`,parentId:l}),title:i,name:i,children:e})}let g=t[`x-scalar-order`];return g&&d.sort((e,t)=>{let n=g.indexOf(e.id),r=g.indexOf(t.id);return(n===-1?1/0:n)-(r===-1?1/0:r)}),t[`x-scalar-order`]=R(d.map(e=>e.id)),{id:l,type:`document`,title:t.info?.title?.trim()||`Untitled Document`,name:e,children:d,icon:t[`x-scalar-icon`]}},hi=u(Ht({inheritAttrs:!1,__name:`ScalarColorModeToggleIcon`,props:{is:{default:`button`},mode:{default:`light`}},setup(e){let{cx:t}=Et(),n=Qt(()=>e.mode===`dark`?`Set light mode`:`Set dark mode`);return(r,i)=>(B(),qt(Rt(e.is),Pt({"aria-label":n.value,class:`toggle-icon-${e.mode}`,type:e.is===`button`?`button`:void 0},V(t)(`size-3 flex items-center justify-center text-c-1`)),{default:Gt(()=>[...i[0]||=[U(`span`,{class:`toggle-icon-sun-ray`},null,-1),U(`span`,{class:`toggle-icon-sun-ray`},null,-1),U(`span`,{class:`toggle-icon-sun-ray`},null,-1),U(`span`,{class:`toggle-icon-sun-ray`},null,-1),U(`span`,{class:`toggle-icon-ellipse`},[U(`span`,{class:`toggle-icon-moon-mask`})],-1)]]),_:1},16,[`aria-label`,`class`,`type`]))}}),[[`__scopeId`,`data-v-60be8692`]]),gi=[`aria-pressed`],_i=Ht({inheritAttrs:!1,__name:`ScalarColorModeToggleButton`,props:{modelValue:{type:Boolean},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let{cx:t}=Et(),n=Bt(e,`modelValue`);return(e,r)=>(B(),H(`button`,Pt({"aria-pressed":n.value,type:`button`},V(t)(`group/toggle flex h-6 w-[38px] brightness-lifted -mx-px items-center py-1.5 -my-1.5 relative outline-none`),{onClick:r[0]||=e=>n.value=!n.value}),[r[1]||=U(`div`,{class:`h-3 w-full bg-border mx-px rounded-xl group-focus-visible/toggle:outline -outline-offset-1`},null,-1),U(`div`,{class:Lt([`size-[23px] left-border absolute border rounded-full flex items-center justify-center bg-b-1 group-focus-visible/toggle:outline -outline-offset-1 transition-transform duration-300 ease-in-out`,{"translate-x-[14px]":n.value}])},[Kt(hi,{is:`div`,mode:n.value?`dark`:`light`},null,8,[`mode`])],2)],16,gi))}}),vi=Xt(`dark`),yi=Xt(`light`),bi=w([N(`system`),N(`dark`),N(`light`)]);function xi(e={}){let{initialColorMode:t=`system`,overrideColorMode:n}=e;function r(){vi.value=o.value===`dark`?`light`:`dark`,!(typeof window>`u`)&&window?.localStorage?.setItem(`colorMode`,vi.value)}function i(e){vi.value=e,!(typeof window>`u`)&&window?.localStorage?.setItem(`colorMode`,vi.value)}function a(){return typeof window>`u`?`light`:typeof window?.matchMedia==`function`?window?.matchMedia(`(prefers-color-scheme: dark)`)?.matches?`dark`:`light`:`dark`}let o=Qt({get:()=>vi.value===`system`?yi.value:vi.value,set:i}),s=Qt({get:()=>o.value===`dark`,set:e=>i(e?`dark`:`light`)});function c(){typeof document>`u`||typeof window>`u`||((n??(vi.value===`system`?yi.value:vi.value))===`dark`?(document.body.classList.add(`dark-mode`),document.body.classList.remove(`light-mode`)):(document.body.classList.add(`light-mode`),document.body.classList.remove(`dark-mode`)))}let l=typeof window>`u`?`system`:window?.localStorage?.getItem(`colorMode`),u=rn(bi,l)?l:null;vi.value=n??u??t,tn([vi,yi],c,{immediate:!0});let d=()=>{yi.value=a()},f=Xt(null);return Vt(()=>{yi.value=a(),typeof window<`u`&&typeof window?.matchMedia==`function`&&(f.value=window.matchMedia(`(prefers-color-scheme: dark)`),f.value?.addEventListener(`change`,d))}),Ft(()=>{f.value?.removeEventListener(`change`,d)}),{colorMode:Qt({get:()=>vi.value,set:i}),darkLightMode:o,isDarkMode:s,toggleColorMode:r,setColorMode:i,getSystemModePreference:a}}var Si=Ht({__name:`ScalarColorModeToggle`,props:{variant:{default:`switch`}},setup(e){let{isDarkMode:t,toggleColorMode:n,darkLightMode:r}=xi(),i=Qt(()=>t.value?`Set light mode`:`Set dark mode`);return(a,o)=>e.variant===`switch`?(B(),qt(_i,{key:0,modelValue:V(t),"onUpdate:modelValue":o[0]||=e=>Jt(t)?t.value=e:null,"aria-label":i.value},null,8,[`modelValue`,`aria-label`])):(B(),qt(hi,{key:1,"aria-label":i.value,mode:V(r),onClick:V(n)},null,8,[`aria-label`,`mode`,`onClick`]))}}),Ci=`2.6.0`,wi=`/`;function Ti(e){let t=e;return!I(t)||typeof t.asyncapi!=`string`||!t.asyncapi.startsWith(`1.`)?t:(t.asyncapi=Ci,Ei(t),Oi(t),Ai(t),ji(t),t)}function Ei(e){if(!Array.isArray(e.servers))return;let t={},n=new Set;for(let[r,i]of e.servers.entries()){if(!I(i))continue;let e={};for(let[t,n]of Object.entries(i))t===`scheme`?e.protocol=n:t===`schemeVersion`?e.protocolVersion=n:e[t]=n;let a=Di(typeof i.description==`string`?i.description:``,r,n);n.add(a),t[a]=e}e.servers=t}function Di(e,t,n){let r=Fe(e)||`server-${t}`;if(!n.has(r))return r;let i=2;for(;n.has(`${r}-${i}`);)i+=1;return`${r}-${i}`}function Oi(e){if(!I(e.topics)){typeof e.baseTopic==`string`&&delete e.baseTopic;return}let t=typeof e.baseTopic==`string`?e.baseTopic:``,n={};for(let[r,i]of Object.entries(e.topics)){if(!I(i))continue;let e=t?`${t}.${r}`:r,a={};for(let[e,t]of Object.entries(i))if(e===`parameters`){let e=ki(t);e&&(a.parameters=e)}else e===`publish`||e===`subscribe`?a[e]={message:t}:a[e]=t;n[e]=a}e.channels=n,delete e.topics,delete e.baseTopic}function ki(e){if(!Array.isArray(e))return;let t={};for(let n of e){if(!I(n))continue;if(typeof n.$ref==`string`){let e=n.$ref.split(`/`).pop()??``;e&&(t[e]={$ref:n.$ref});continue}if(typeof n.name!=`string`)continue;let{name:e,...r}=n;t[e]=r}return t}function Ai(e){if(!I(e.stream))return;let t={};Array.isArray(e.stream.read)&&(t.subscribe={message:{oneOf:e.stream.read}}),Array.isArray(e.stream.write)&&(t.publish={message:{oneOf:e.stream.write}});let n=I(e.channels)?e.channels:{};n[wi]=t,e.channels=n,delete e.stream}function ji(e){if(!I(e.events))return;let t={};Array.isArray(e.events.receive)&&(t.subscribe={message:{oneOf:e.events.receive}}),Array.isArray(e.events.send)&&(t.publish={message:{oneOf:e.events.send}});let n=I(e.channels)?e.channels:{};n[wi]=t,e.channels=n,delete e.events}var Mi=`3.0.0`;function Ni(e){let t=e;return!I(t)||typeof t.asyncapi!=`string`||!t.asyncapi.startsWith(`2.`)?t:(t.asyncapi=Mi,zi(t),Pi(t),Bi(t),t)}function Pi(e){if(!I(e.servers))return;let t=Ri(e);for(let n of Object.values(e.servers))if(I(n)){if(typeof n.url==`string`){let{host:e,pathname:t}=Fi(n.url);n.host=e,t&&(n.pathname=t),delete n.url}Array.isArray(n.security)&&(n.security=Ii(n.security,t))}}function Fi(e){let t=e.match(/^[a-zA-Z][a-zA-Z0-9+\-.]*:\/\/(.*)$/),n=t?t[1]:e,r=n.indexOf(`/`);return r===-1?{host:n,pathname:``}:{host:n.slice(0,r),pathname:n.slice(r)}}function Ii(e,t){return e.map(e=>Li(e,t)).filter(e=>e!==void 0)}function Li(e,t){if(!I(e))return;let[n]=Object.entries(e);if(!n)return;let[r,i]=n,a=t[r];return I(a)&&a.type===`oauth2`&&Array.isArray(i)?{...a,scopes:i}:{$ref:`#/components/securitySchemes/${r}`}}function Ri(e){if(!I(e.components)||!I(e.components.securitySchemes))return{};let t={};for(let[n,r]of Object.entries(e.components.securitySchemes))I(r)&&(t[n]=r);return t}function zi(e){if(!(!I(e.components)||!I(e.components.securitySchemes))){for(let t of Object.values(e.components.securitySchemes))if(!(!I(t)||t.type!==`oauth2`||!I(t.flows)))for(let e of Object.values(t.flows))I(e)&&`scopes`in e&&(e.availableScopes=e.scopes,delete e.scopes)}}function Bi(e){if(!I(e.channels))return;let t=Ri(e),n={},r={},i=new Set,a=new Set;for(let[o,s]of Object.entries(e.channels)){if(!I(s))continue;let e=Ki(Gi(o),i),c={address:o},l={};for(let[e,t]of Object.entries(s))if(!(e===`publish`||e===`subscribe`||e===`parameters`)){if(e===`servers`&&Array.isArray(t)){c.servers=t.map(e=>({$ref:`#/servers/${e}`}));continue}c[e]=t}I(s.parameters)&&(c.parameters=s.parameters);let u=Vi(s.publish,l),d=Vi(s.subscribe,l);if(c.messages=l,n[e]=c,I(s.publish)){let n=Ki(Ui(s.publish,`receive`,e),a);r[n]=Wi(s.publish,`receive`,e,u,t)}if(I(s.subscribe)){let n=Ki(Ui(s.subscribe,`send`,e),a);r[n]=Wi(s.subscribe,`send`,e,d,t)}}e.channels=n,e.operations=r}function Vi(e,t){if(!I(e)||!I(e.message))return[];let n=e.message,r=Array.isArray(n.oneOf)?n.oneOf:[n],i=[];for(let e of r){if(!I(e))continue;let n=Hi(e,t);t[n]=e,i.push(n)}return i}function Hi(e,t){if(typeof e.$ref==`string`){let t=e.$ref.split(`/`).pop();if(t)return t}if(typeof e.name==`string`&&e.name)return e.name;let n=0;for(;`message-${n}`in t;)n+=1;return`message-${n}`}function Ui(e,t,n){return typeof e.operationId==`string`&&e.operationId?e.operationId:`${t}-${n}`}function Wi(e,t,n,r,i){let a={action:t,channel:{$ref:`#/channels/${n}`}};for(let[t,n]of Object.entries(e))if(!(t===`message`||t===`operationId`)){if(t===`security`&&Array.isArray(n)){a.security=Ii(n,i);continue}a[t]=n}return a.messages=r.map(e=>({$ref:`#/channels/${n}/messages/${e}`})),a}function Gi(e){return Fe(e.replace(/[^a-zA-Z0-9]+/g,` `))}function Ki(e,t){if(!t.has(e))return t.add(e),e;let n=2;for(;t.has(`${e}-${n}`);)n+=1;let r=`${e}-${n}`;return t.add(r),r}var qi=`3.1.0`,Ji=/^#\/components\/messages\/(.+)$/;function Yi(e){let t=e;return!I(t)||typeof t.asyncapi!=`string`||!t.asyncapi.startsWith(`3.0`)?t:(t.asyncapi=qi,Xi(t),t)}function Xi(e){if(!I(e.operations)||!I(e.channels))return;let t=e.channels;for(let n of Object.values(e.operations))I(n)&&(Zi(n.messages,n.channel,t),I(n.reply)&&Zi(n.reply.messages,n.reply.channel??n.channel,t))}function Zi(e,t,n){if(!Array.isArray(e))return;let r=$i(t);if(!r)return;let i=n[r];if(I(i)){for(let t=0;t<e.length;t+=1){let n=e[t];if(!I(n)||typeof n.$ref!=`string`)continue;let[,a]=n.$ref.match(Ji)??[];a&&(ea(i,a,n.$ref),e[t]={$ref:`#/channels/${r}/messages/${a}`})}Qi(e)}}function Qi(e){let t=new Set,n=0;for(let r of e){if(I(r)&&typeof r.$ref==`string`){if(t.has(r.$ref))continue;t.add(r.$ref)}e[n]=r,n+=1}e.length=n}function $i(e){if(!I(e)||typeof e.$ref!=`string`)return;let t=e.$ref.match(/^#\/channels\/([^/]+)$/);return t?t[1]:void 0}function ea(e,t,n){I(e.messages)||(e.messages={});let r=e.messages;t in r||(r[t]={$ref:n})}function ta(e){return Yi(Ni(Ti(e)))}var na=(e,t)=>{let n=performance.now(),r=t(),i=performance.now(),a=Math.round(i-n);return console.info(`${e}: ${a} ms`),r},ra=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 ia(e){try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`}catch{return!1}}function aa(e){if(!/^\s*(\{)/.test(e.slice(0,500)))return!1;try{return I(JSON.parse(e))}catch{return!1}}function oa(e){return/^\s*(?:-\s*)?[\w\-]+\s*:\s*.+\n.*/.test(e)}function sa(e){return!ia(e)&&!oa(e)&&!aa(e)}var ca=()=>{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:()=>Ie});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}},ee=(e,t,n={})=>{let r={cache:{},input:e,index:0,indexMax:0,options:n,output:[]};if(T(t)(r)&&r.index===e.length)return r.output;throw Error(`Failed to parse at index ${r.indexMax}`)},_=(e,t)=>c(e)?v(e,t):m(e)?ne(e,t):te(e,t),v=(e,t)=>{let n={};for(let t of e){if(t.length!==1)throw Error(`Invalid character: "${t}"`);let e=t.charCodeAt(0);n[e]=!0}return e=>{let r=e.index,i=e.input;for(;e.index<i.length&&i.charCodeAt(e.index)in n;)e.index+=1;let a=e.index;if(a>r){if(!h(t)&&!e.options.silent){let n=e.input.slice(r,a),o=l(t)?t(n,i,String(r)):t;h(o)||e.output.push(o)}e.indexMax=Math.max(e.indexMax,e.index)}return!0}},te=(e,t)=>{let n=e.source,r=e.flags.replace(/y|$/,`y`),i=new RegExp(n,r);return ae(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})},ne=(e,t)=>n=>{if(n.input.startsWith(e,n.index)){if(!h(t)&&!n.options.silent){let r=l(t)?t(e,n.input,String(n.index)):t;h(r)||n.output.push(r)}return n.index+=e.length,n.indexMax=Math.max(n.indexMax,n.index),!0}else return!1},y=(e,t,n,r)=>{let i=T(e);return ae(ie(re(e=>{let r=0;for(;r<n;){let t=e.index;if(!i(e)||(r+=1,e.index===t))break}return r>=t})))},b=(e,t)=>y(e,0,1),x=(e,t)=>y(e,0,1/0),S=(e,t)=>{let n=e.map(T);return ae(ie(re(e=>{for(let t=0,r=n.length;t<r;t++)if(!n[t](e))return!1;return!0})))},C=(e,t)=>{let n=e.map(T);return ae(ie(e=>{for(let t=0,r=n.length;t<r;t++)if(n[t](e))return!0;return!1}))},re=(e,t=!1)=>{let n=T(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}},ie=(e,t)=>T(e),ae=(()=>{let e=0;return t=>{let n=T(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}}}})(),w=e=>{let t;return n=>(t||=T(e()),t(n))},T=g(e=>{if(l(e))return u(e)?w(e):e;if(m(e)||p(e))return _(e);if(c(e))return S(e);if(f(e))return C(Object.values(e));throw Error(`Invalid rule`)}),oe=`abcdefghijklmnopqrstuvwxyz`,E=e=>{let t=``;for(;e>0;)t=oe[(e-1)%26]+t,e=Math.floor((e-1)/26);return t},se=e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t=t*26+oe.indexOf(e[n])+1;return t},ce=(e,t)=>{if(t<e)return ce(t,e);let n=[];for(;e<=t;)n.push(e++);return n},le=(e,t,n)=>ce(e,t).map(e=>String(e).padStart(n,`0`)),ue=(e,t)=>ce(se(e),se(t)).map(E),D=e=>e,O=e=>de(t=>ee(t,e,{memoization:!1}).join(``)),de=e=>{let t={};return n=>t[n]??(t[n]=e(n))},k=_(/^\*\*\/\*$/,`.*`),fe=_(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/,(e,t,n)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}`),pe=_(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/,(e,t,n,r)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}(?:${r.replaceAll(`,`,`|`).replaceAll(`.`,`\\.`)})`),me=_(/\\./,D),he=_(/[$.*+?^(){}[\]\|]/,e=>`\\${e}`),A=_(/./,D),ge=C([_(/^(?:!!)*!(.*)$/,(e,t)=>`(?!^${je(t)}$).*?`),_(/^(!!)+/,``)]),_e=C([_(/\/(\*\*\/)+/,`(?:/.+/|/)`),_(/^(\*\*\/)+/,`(?:^|.*/)`),_(/\/(\*\*)$/,`(?:/.*|$)`),_(/\*\*/,`.*`)]),ve=C([_(/\*\/(?!\*\*\/)/,`[^/]*/`),_(/\*/,`[^/]*`)]),ye=_(`?`,`[^/]`),be=_(`[`,D),j=_(`]`,D),xe=_(/[!^]/,`^/`),Se=_(/[a-z]-[a-z]|[0-9]-[0-9]/i,D),Ce=C([me,_(/[$.*+?^(){}[\|]/,e=>`\\${e}`),Se,_(/[^\]]/,D)]),we=S([be,b(xe),x(Ce),j]),M=_(`{`,`(?:`),Te=_(`}`,`)`),Ee=S([M,C([_(/(\d+)\.\.(\d+)/,(e,t,n)=>le(+t,+n,Math.min(t.length,n.length)).join(`|`)),_(/([a-z]+)\.\.([a-z]+)/,(e,t,n)=>ue(t,n).join(`|`)),_(/([A-Z]+)\.\.([A-Z]+)/,(e,t,n)=>ue(t.toLowerCase(),n.toLowerCase()).join(`|`).toUpperCase())]),Te]),N=_(`{`,`(?:`),De=_(`}`,`)`),Oe=_(`,`,`|`),ke=_(/[$.*+?^(){[\]\|]/,e=>`\\${e}`),Ae=_(/[^}]/,D),P=S([N,x(C([_e,ve,ye,we,Ee,w(()=>P),me,ke,Oe,Ae])),De]),je=O(x(C([k,fe,pe,ge,_e,ve,ye,we,Ee,P,me,he,A]))),Me=_(/\\./,D),Ne=_(/./,D),Pe=O(x(C([Me,_(/\*\*\*+/,`*`),_(/([^/{[(!])\*\*/,(e,t)=>`${t}*`),_(/(^|.)\*\*(?=[^*/)\]}])/,(e,t)=>`${t}*`),Ne]))),Fe=(e,t)=>{let n=Array.isArray(e)?e:[e];if(!n.length)return!1;let r=n.map(Fe.compile),i=n.every(e=>/(\/(?:\*\*)?|\[\/\])$/.test(e)),a=t.replace(/[\\\/]+/g,`/`).replace(/\/$/,i?`/`:``);return r.some(e=>e.test(a))};Fe.compile=e=>RegExp(`^${je(Pe(e))}$`,`s`);var Ie=Fe;return o(s)})();return e.default||e},la,ua=(e,t)=>(la||(la=ca(),ca=null),la(e,t)),da=/^[A-Za-z]:\//;function fa(e=``){return e&&e.replace(/\\/g,`/`).replace(da,e=>e.toUpperCase())}var pa=/^[/\\]{2}/,ma=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,ha=/^[A-Za-z]:$/,ga=/^\/([A-Za-z]:)?$/,_a=/.(\.[^./]+|\.)$/,va=/^[/\\]|^[a-zA-Z]:[/\\]/,ya=function(e){if(e.length===0)return`.`;e=fa(e);let t=e.match(pa),n=wa(e),r=e[e.length-1]===`/`;return e=Ca(e,!n),e.length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),ha.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!wa(e)?`/${e}`:e)},ba=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 ya(t)};function xa(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var Sa=function(...e){e=e.map(e=>fa(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:xa();!i||i.length===0||(t=`${i}/${t}`,n=wa(i))}return t=Ca(t,!n),n&&!wa(t)?`/${t}`:t.length>0?t:`.`};function Ca(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 wa=function(e){return ma.test(e)},Ta=function(e){return fa(e)},Ea=function(e){if(e===`..`)return``;let t=_a.exec(fa(e));return t&&t[1]||``},Da=function(e,t){let n=Sa(e).replace(ga,`$1`).split(`/`),r=Sa(t).replace(ga,`$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(`/`)},Oa=function(e){let t=fa(e).replace(/\/$/,``).split(`/`).slice(0,-1);return t.length===1&&ha.test(t[0])&&(t[0]+=`/`),t.join(`/`)||(wa(e)?`/`:`.`)},ka=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 fa(e.root?Sa(...n):n.join(`/`))},Aa=function(e,t){let n=fa(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},ja={__proto__:null,basename:Aa,dirname:Oa,extname:Ea,format:ka,isAbsolute:wa,join:ba,matchesGlob:(e,t)=>ua(t,ya(e)),normalize:ya,normalizeString:Ca,parse:function(e){let t=va.exec(e)?.[0]?.replace(/\\/g,`/`)||``,n=Aa(e),r=Ea(n);return{root:t,dir:Oa(e),base:n,ext:r,name:n.slice(0,n.length-r.length)}},relative:Da,resolve:Sa,sep:`/`,toNamespacedPath:Ta},Ma=globalThis.process?.platform===`win32`?`;`:`:`,Na={posix:void 0,win32:void 0},Pa=(e=Ma)=>new Proxy(ja,{get(t,n){return n===`delimiter`?e:n===`posix`?X:n===`win32`?Fa:Na[n]||ja[n]}}),X=Pa(`:`),Fa=Pa(`;`),Ia=(e,t)=>{if(ia(t))return t;if(ia(e)){let n=new URL(e);return n.pathname=X.posix.resolve(`/`,X.dirname(n.pathname),t),n.toString()}return X.resolve(X.dirname(e),t)};function La(e){return decodeURI(e.replace(/~1/g,`/`).replace(/~0/g,`~`))}function Ra(e){return e.split(`/`).slice(1).map(La)}function za(e,t,n){if(t===``)throw Error(`Cannot set value at root ('') pointer`);let r=Ra(t);r.forEach(e=>Be(e));let i=e;for(let e=0;e<r.length;e++){let t=r[e],a=e===r.length-1,o=r[e+1],s=/^\d+$/.test(o??``);a?i[t]=n:((!(t in i)||typeof i[t]!=`object`)&&(i[t]=s?[]:{}),i=i[t])}}var Ba=(e,t)=>{if(ia(e)&&ia(t)){let n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;let i=X.dirname(X.posix.resolve(`/`,r.pathname)),a=X.posix.resolve(`/`,n.pathname);return X.posix.relative(i,a)}if(ia(t)){let n=new URL(t),r=X.dirname(X.posix.resolve(`/`,n.pathname));return n.pathname=X.posix.relative(r,X.posix.resolve(`/`,e)),n.toString()}if(ia(e))return e;let n=X.dirname(X.resolve(t)),r=X.resolve(e);return X.relative(n,r)};function Va(e){let t=ne(e).substring(0,7);return t.match(/^\d+$/)?`a`+t.substring(1):t}async function Ha(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?Ha(e,t,n,a,i+1):(n[a]=t,a)}var Ua=(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 Ha(e,r,t),o=a.match(/^\d+$/)?`a${a}`:a;return n[r]=o,o}}},Wa=e=>I(e)&&`$ref`in e&&typeof e.$ref==`string`;function Ga(e){return e.startsWith(`#`)}function Ka(e,t){let n=t.find(t=>t.validate(e));return n?n.exec(e):Promise.resolve({ok:!1})}function qa(e,t){if(!Ga(e))throw`Please provide an internal ref`;return`#/${t.map(ri).join(`/`)}${e.substring(1)}`}function Ja(e,t){if(Array.isArray(e)){e.forEach(e=>Ja(e,t));return}if(I(e)&&(Object.values(e).forEach(e=>Ja(e,t)),typeof e==`object`&&`$ref`in e&&typeof e.$ref==`string`)){let n=e.$ref;if(!Ga(n))return;e.$ref=qa(n,t)}}var Ya=(e,t,n,r,i,a=!1,o=new Set)=>{let s=qe(t,Ra(n)).value;if(o.has(s))return;o.add(s),za(e,n,s);let c=n=>{if(!(!n||typeof n!=`object`)){`$ref`in n&&typeof n.$ref==`string`&&(n.$ref.startsWith(`#/${r}/${ri(i)}`)||a)&&Ya(e,t,n.$ref.substring(1),r,i,a,o);for(let e of Object.values(n))c(e)}};c(s)},Xa={externalDocuments:`x-ext`,externalDocumentsMappings:`x-ext-urls`};async function Za(e,t){t.externalDocumentsKey=t.externalDocumentsKey??Xa.externalDocuments,t.externalDocumentsMappingsKey=t.externalDocumentsMappingsKey??Xa.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 Ka(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=Tt(o),c=t.root!==void 0&&t.root!==a||t.depth!==void 0,l=t.visitedNodes??new Set,u=dt(o)||(t.origin?t.origin:typeof e==`string`&&(ia(e)||sa(e))?e:`/`);o[t.externalDocumentsMappingsKey]===void 0&&(o[t.externalDocumentsMappingsKey]={});let{generate:d}=Ua(t.compress??Va,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||!I(e)&&!Array.isArray(e)||l.has(e))return;l.add(e);let ee={path:h,resolutionCache:n,parentNode:g,rootNode:o,loaders:r};await f(`onBeforeNodeProcess`,e,ee);let _=dt(e);if(Wa(e)){let l=e.$ref,h=`$global`in e&&typeof e.$global==`boolean`&&e.$global,g=Ye(l,_??i,s);if(g!==void 0){if(c){let e=Ra(`/${g}`),t=e.length>0?qe(o,e.slice(0,-1)).value:void 0,n=qe(o,e);await p(n.value,n.context,a,m+1,e,t)}await f(`onAfterNodeProcess`,e,ee);return}let[v,te=``]=l.split(`#`,2),ne=Ia(_??i,v),y=Ba(ne,u),b=await d(y),x=n.has(y);x||n.set(y,Ka(ne,r)),await f(`onResolveStart`,e);let S=await n.get(y);if(S.ok){x||(h||Ja(S.data,[Xa.externalDocuments,b]),await p(S.data,h?i:ne,h,m+1,[t.externalDocumentsKey,b,o[t.externalDocumentsMappingsKey]]),za(o,`/${t.externalDocumentsMappingsKey}/${ri(b)}`,y)),t.treeShake===!0?Ya(o,{[t.externalDocumentsKey]:{[b]:S.data}},qa(`#${te}`,[t.externalDocumentsKey,b]).substring(1),t.externalDocumentsKey,b):x||za(o,`/${t.externalDocumentsKey}/${b}`,S.data),e.$ref=qa(`#${te}`,[t.externalDocumentsKey,b]),await f(`onResolveSuccess`,e),await f(`onAfterNodeProcess`,e,ee);return}return await f(`onResolveError`,e),await f(`onAfterNodeProcess`,e,ee),console.warn(`Failed to resolve external reference "${ne}". The reference may be invalid, inaccessible, or missing a loader for this type of reference.`)}for(let n in e)n===t.externalDocumentsKey||n===t.externalDocumentsMappingsKey||await p(e[n],_??i,a,m+1,[...h,n],e);await f(`onAfterNodeProcess`,e,ee)};return await p(a),!t.urlMap&&!c&&delete o[t.externalDocumentsMappingsKey],a}var Qa=class{data;next;constructor(e){this.data=e,this.next=null}},$a=class{front;rear;size;constructor(){this.front=null,this.rear=null,this.size=0}enqueue(e){let t=new Qa(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 eo(e){let t=0,n=new $a,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 to=e=>e.startsWith(``)?e.slice(1):e;function no(t){if(t!==null){if(typeof t==`string`){let n=to(t);if(n.trim()===``)return;try{return JSON.parse(n)}catch{let t=/^[^:]+:/.test(n),r=n.slice(0,50).trimStart(),i=r.startsWith(`{`)||r.startsWith(`[`);return!t||i?void 0:e(n,{maxAliasCount:1e4,merge:!0})}}return t}}var ro=e=>{try{return new URL(e).host}catch{return null}};async function io(e,t,n){try{let r=ro(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:no(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 ao(e){let t=e?.limit?eo(e.limit):e=>e();return{type:`loader`,validate:ia,exec:n=>io(n,t,e)}}var oo=class extends Error{constructor(e){super(e),this.name=`InvalidChangesDetectedError`}},so=(e,t)=>{let n=(e,t,r,i=0)=>{if(t[i]===void 0)throw new oo(`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 oo(`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},co=(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},lo=class{value;children;constructor(e,t){this.value=e,this.children=t}},uo=class{root;constructor(){this.root=new lo(null,{})}addPath(e,t){let n=this.root;for(let t of e)n.children[t]||(n.children[t]=new lo(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)}},fo=(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&&fo(e[r],t[r]))return!0;return!1}return e!==t},po=(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]=po(r,i))}return e},mo=(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},ho=(e,t)=>{let n=new uo;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(mo(s.path,t.changes.path)&&t.changes.type!==`delete`&&!fo(s.changes,t.changes.changes)){r.add(t.index),typeof s.changes==`object`&&po(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 go(e){if(!(typeof e!=`object`||!e)){if(Array.isArray(e)){for(let t of e)go(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)&&go(e[t])}}function _o(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 vo(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 _o(t),go(t),t}function yo(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?yo(n,t,[...e,r.toString()]):n);continue}if(typeof a==`object`&&a){r[i]=yo(a,t,e);continue}r[i]=a}return t(r,n)}var bo=`application/json`;function xo(e){let t=e[`x-example`],n=e[`x-examples`];return delete e[`x-example`],delete e[`x-examples`],{xExample:t,xExamples:n}}function So(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).length>0}function Co(e){return So(e)&&Object.values(e).every(e=>typeof e==`object`&&!!e&&!Array.isArray(e))}function wo(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 To(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&&wo(t.schema)&&delete e[n]}}var Eo=new Set([`summary`,`description`,`value`,`externalValue`]);function Do(e){if(typeof e!=`object`||!e)return!1;let t=e,n=`value`in t||`externalValue`in t,r=Object.keys(t).every(e=>Eo.has(e));return n&&r}function Oo(e){return Do(e)?e:{value:e}}var ko=/^[a-zA-Z0-9*+.-]+\/[a-zA-Z0-9*+.+-]+$/;function Ao(e){return ko.test(e)}function jo(e){return Object.entries(e).reduce((e,[t,n])=>(e[t]={value:n},e),{})}var Mo=e=>{switch(e){case`application`:return`clientCredentials`;case`accessCode`:return`authorizationCode`;case`implicit`:return`implicit`;case`password`:return`password`;default:return e}};function No(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=yo(t,e=>(typeof e.$ref==`string`&&e.$ref.startsWith(`#/definitions/`)&&(e.$ref=e.$ref.replace(/^#\/definitions\//,`#/components/schemas/`)),e))),t=yo(t,e=>(e.type===`file`&&(e.type=`string`,e.format=`binary`),e)),Object.hasOwn(t,`parameters`)){t=yo(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]=Io(a):`in`in a&&(a.in===`body`?n[i]=Ho(a,t.consumes??[bo]):a.in===`formData`?n[i]=Uo([a],t.consumes):e[i]=Io(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=yo(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??[bo];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]??bo;for(let[t,r]of Object.entries(n.examples))if(Ao(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]=Oo(r)}delete n.examples}n.content&&typeof n.content==`object`&&To(n.content),n.headers&&typeof n.headers==`object`&&(n.headers=Object.entries(n.headers).reduce((e,[t,n])=>n&&typeof n==`object`?{[t]:Lo(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=Wo(n.parameters,t.consumes??[bo]);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=Wo(i.parameters,i.consumes??t.consumes??[bo]);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]:Lo(n),...e}:e,{})),n.schema){let e=t.produces??i.produces??[bo];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??[bo])[0]??bo;for(let[t,r]of Object.entries(n.examples))if(Ao(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]=Oo(r)}delete n.examples}n.content&&typeof n.content==`object`&&To(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:{[Mo(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 Po(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 Fo(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 Io(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=Vo(e),n=Po(e),{xExample:r,xExamples:i}=xo(e);if(So(r)?e.examples=jo(r):So(i)&&(e.examples=Object.entries(i).reduce((e,[t,n])=>(e[t]=Oo(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:Fo(e.in)}}function Lo(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=Po(e);return{...e,schema:t}}var Ro={ssv:{style:`spaceDelimited`,explode:!1},pipes:{style:`pipeDelimited`,explode:!1},multi:{style:`form`,explode:!0},csv:{style:`form`,explode:!1},tsv:{}},zo={ssv:{},pipes:{},multi:{},csv:{style:`simple`,explode:!1},tsv:{}},Bo={header:zo,query:Ro,path:zo};function Vo(e){if(e.type!==`array`||!(e.in===`query`||e.in===`path`||e.in===`header`))return{};let t=e.collectionFormat??`csv`;return e.in in Bo&&t in Bo[e.in]?Bo[e.in][t]:{}}function Ho(e,t){let{xExample:n,xExamples:r}=xo(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},So(r)&&e in r){let t=r[e];So(t)&&Object.values(t).every(e=>Do(e))?o.content[e].examples=t:Co(t)?o.content[e].examples=Object.entries(t).reduce((e,[t,n])=>(e[t]=Oo(n),e),{}):o.content[e].examples={default:Oo(t)}}else So(r)&&!Object.keys(r).some(Ao)&&(o.content[e].examples=Object.entries(r).reduce((e,[t,n])=>(e[t]=Oo(n),e),{}));!o.content[e].examples&&So(n)&&e in n&&(o.content[e].example=n[e])}return o}function Uo(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 Wo(e,t){let n={parameters:e.filter(e=>!(e.in===`body`||e.in===`formData`)).map(e=>Io(e))},r=structuredClone(e.find(e=>e.in===`body`)??{});r&&Object.keys(r).length&&(n.requestBody=Ho(r,t));let i=e.filter(e=>e.in===`formData`);if(i.length>0){let e=Uo(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 Go=new Set([`properties`,`items`,`allOf`,`anyOf`,`oneOf`,`not`,`additionalProperties`,`schema`]);function Ko(e){return e?!!(e.some(e=>Go.has(e))||e.some(e=>e.endsWith(`Schema`))||e.length>=2&&e[0]===`components`&&e[1]===`schemas`):!1}function qo(e){let t=e;return t===null||typeof t.openapi!=`string`||!t.openapi.startsWith(`3.0`)?t:(t.openapi=`3.1.1`,t=yo(t,Jo),t)}var Jo=(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&&(Ko(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 Yo(e,t){let n=No(e);if(t===`3.0`)return n;let r=qo(n);return t===`3.1`?r:vo(r)}var Xo="```",Zo=(e,t)=>`${Xo}${e}\n${t.trimEnd()}\n${Xo}`,Qo=(e,t)=>`@example\n${Zo(e,t)}`,$o=e=>`\`${e}\``,es=(...e)=>e.join(`
|
|
16
16
|
|
|
17
17
|
`),Z=(e,t)=>es(e,Qo(t.language,t.body)),ts=P({"x-internal":v(C({typeComment:`When true, hides the entity from public documentation`}))},{typeName:`XInternal`,typeComment:Z(`Marks an entity as internal (hidden from external consumers).`,{language:`yaml`,body:`x-internal: true`})}),ns=P({"x-original-aas-version":v(L({typeComment:`Original AsyncAPI Specification version the document was loaded with.`}))},{typeName:`XOriginalAasVersion`,typeComment:Z(`Original AsyncAPI Specification version of the source document before ingestion.`,{language:`yaml`,body:`x-original-aas-version: "3.0.0"`})}),rs=P({"x-scalar-ignore":v(C({typeComment:`When true, the entity is hidden or ignored in the UI`}))},{typeName:`XScalarIgnore`,typeComment:Z(`Internal extension to mark an entity as ignored in the Scalar UI.`,{language:`yaml`,body:`x-scalar-ignore: true`})}),is=P({"x-scalar-is-dirty":v(C({typeComment:`When true, the document has unsaved changes`}))},{typeName:`XScalarIsDirty`,typeComment:Z(`Tracks whether the document has been modified since it was last saved.`,{language:`yaml`,body:`x-scalar-is-dirty: true`})}),as=P({"x-scalar-navigation":v(A({typeComment:"Serialized client navigation tree (`TraversedDocument`) for this API description"}))},{typeName:`XScalarNavigation`,typeComment:"Client-side navigation tree persisted on the document. Matches `TraversedDocumentObjectRef` in strict OpenAPI schemas."}),os=P({"x-scalar-original-document-hash":L({typeComment:`Hash of the document as originally loaded from an external source`})},{typeName:`XScalarOriginalDocumentHash`,typeComment:Z(`Tracks the original document hash when loading from an external source. Used to detect modifications since last save.`,{language:`yaml`,body:`x-scalar-original-document-hash: "abc123"`})}),ss=P({"x-scalar-original-source-url":v(L({typeComment:`Original document source URL when loaded from an external source`}))},{typeName:`XScalarOriginalSourceUrl`,typeComment:Z(`Original document source URL when the API description was loaded from an external source.`,{language:`yaml`,body:`x-scalar-original-source-url: https://example.com/openapi.yaml`})}),cs=P({namespace:L({typeComment:`The namespace under which this registry meta is scoped.`}),slug:L({typeComment:`A unique slug identifier for this registry meta within the namespace.`}),version:L({typeComment:`The version of the registry meta.`}),commitHash:v(L({typeComment:`Last known commit hash of this document. Is going to be used to track if the document has been modified since it was last saved.`})),conflictCheckedAgainstHash:v(L({typeComment:"Registry commit hash that the cached `hasConflict` flag was computed against. When the registry advertises a different hash later, the cached result is stale and the conflict check must be re-run."})),hasConflict:v(C({typeComment:"Cached outcome of the last conflict check, valid only while `conflictCheckedAgainstHash` matches the registry current hash for this version."}))},{typeName:`XScalarRegistryMetaInner`,typeComment:`Registry meta namespace and slug`}),ls=P({"x-scalar-registry-meta":v(cs)},{typeName:`XScalarRegistryMeta`,typeComment:Z(`Registry sync metadata for a document published to Scalar Registry.`,{language:`yaml`,body:`x-scalar-registry-meta:
|
|
18
18
|
namespace: acme
|