@scalar/api-reference 1.60.0 → 1.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/browser/chunks/{AgentScalarChatInterface-CesFQ_Ax.js → AgentScalarChatInterface-BhUn0w1j.js} +2 -2
- package/dist/browser/chunks/{ScalarTextInput.vue-C14zmVNI.js → ScalarTextInput.vue-BUzf4Z_k.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-LBDjZSmM.js → modal-CKthJJWy.js} +2 -2
- package/dist/browser/chunks/{modal-BZzcBkVp.js → modal-CZI71Aau.js} +19 -19
- 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-wW8jg8wN.js → vendor-BeJNu9KM.js} +2 -2
- package/dist/browser/standalone.esm.js +6 -6
- package/dist/browser/standalone.js +248 -248
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +1 -1
- package/dist/components/ApiReference.vue.js.map +1 -1
- package/dist/components/ApiReference.vue.script.js +12 -6
- package/dist/components/ApiReference.vue.script.js.map +1 -1
- package/dist/components/Content/AsyncApi/AsyncApiLabels.vue.d.ts +10 -0
- package/dist/components/Content/AsyncApi/AsyncApiLabels.vue.d.ts.map +1 -0
- package/dist/components/Content/AsyncApi/AsyncApiLabels.vue.js +9 -0
- package/dist/components/Content/AsyncApi/AsyncApiLabels.vue.js.map +1 -0
- package/dist/components/Content/AsyncApi/AsyncApiLabels.vue.script.js +43 -0
- package/dist/components/Content/AsyncApi/AsyncApiLabels.vue.script.js.map +1 -0
- package/dist/components/Content/AsyncApi/AsyncApiTraversedEntry.vue.d.ts.map +1 -1
- package/dist/components/Content/AsyncApi/AsyncApiTraversedEntry.vue.js.map +1 -1
- package/dist/components/Content/AsyncApi/AsyncApiTraversedEntry.vue.script.js +2 -0
- package/dist/components/Content/AsyncApi/AsyncApiTraversedEntry.vue.script.js.map +1 -1
- package/dist/components/Content/AsyncApi/Channel.vue.d.ts +4 -1
- package/dist/components/Content/AsyncApi/Channel.vue.d.ts.map +1 -1
- package/dist/components/Content/AsyncApi/Channel.vue.js +1 -1
- package/dist/components/Content/AsyncApi/Channel.vue.js.map +1 -1
- package/dist/components/Content/AsyncApi/Channel.vue.script.js +98 -44
- package/dist/components/Content/AsyncApi/Channel.vue.script.js.map +1 -1
- package/dist/components/Content/AsyncApi/Message.vue.d.ts +18 -0
- package/dist/components/Content/AsyncApi/Message.vue.d.ts.map +1 -0
- package/dist/components/Content/AsyncApi/Message.vue.js +9 -0
- package/dist/components/Content/AsyncApi/Message.vue.js.map +1 -0
- package/dist/components/Content/AsyncApi/Message.vue.script.js +159 -0
- package/dist/components/Content/AsyncApi/Message.vue.script.js.map +1 -0
- package/dist/components/Content/AsyncApi/Operation.vue.d.ts +18 -0
- package/dist/components/Content/AsyncApi/Operation.vue.d.ts.map +1 -0
- package/dist/components/Content/AsyncApi/Operation.vue.js +9 -0
- package/dist/components/Content/AsyncApi/Operation.vue.js.map +1 -0
- package/dist/components/Content/AsyncApi/Operation.vue.script.js +84 -0
- package/dist/components/Content/AsyncApi/Operation.vue.script.js.map +1 -0
- package/dist/components/Content/AsyncApi/helpers/async-api-render-options.d.ts +14 -0
- package/dist/components/Content/AsyncApi/helpers/async-api-render-options.d.ts.map +1 -0
- package/dist/components/Content/AsyncApi/helpers/async-api-render-options.js +14 -0
- package/dist/components/Content/AsyncApi/helpers/async-api-render-options.js.map +1 -0
- package/dist/components/Content/AsyncApi/helpers/filter-children-by-type.d.ts +9 -0
- package/dist/components/Content/AsyncApi/helpers/filter-children-by-type.d.ts.map +1 -0
- package/dist/components/Content/AsyncApi/helpers/filter-children-by-type.js +12 -0
- package/dist/components/Content/AsyncApi/helpers/filter-children-by-type.js.map +1 -0
- package/dist/components/Content/AsyncApi/helpers/get-async-api-labels.d.ts +13 -0
- package/dist/components/Content/AsyncApi/helpers/get-async-api-labels.d.ts.map +1 -0
- package/dist/components/Content/AsyncApi/helpers/get-async-api-labels.js +23 -0
- package/dist/components/Content/AsyncApi/helpers/get-async-api-labels.js.map +1 -0
- package/dist/components/Content/AsyncApi/helpers/pick-heading.d.ts +10 -0
- package/dist/components/Content/AsyncApi/helpers/pick-heading.d.ts.map +1 -0
- package/dist/components/Content/AsyncApi/helpers/pick-heading.js +20 -0
- package/dist/components/Content/AsyncApi/helpers/pick-heading.js.map +1 -0
- package/dist/components/Content/AsyncApi/helpers/resolve-async-api-nodes.d.ts +21 -0
- package/dist/components/Content/AsyncApi/helpers/resolve-async-api-nodes.d.ts.map +1 -0
- package/dist/components/Content/AsyncApi/helpers/resolve-async-api-nodes.js +35 -0
- package/dist/components/Content/AsyncApi/helpers/resolve-async-api-nodes.js.map +1 -0
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +1 -1
- package/dist/components/Content/Schema/Schema.vue.js.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.script.js +2 -1
- package/dist/components/Content/Schema/Schema.vue.script.js.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.script.js +16 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.script.js.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.script.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.script.js +21 -6
- package/dist/components/Content/Schema/SchemaProperty.vue.script.js.map +1 -1
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +10 -9
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js.map +1 -1
- package/dist/helpers/get-async-api-message-payload-schema.d.ts +18 -0
- package/dist/helpers/get-async-api-message-payload-schema.d.ts.map +1 -0
- package/dist/helpers/get-async-api-message-payload-schema.js +33 -0
- package/dist/helpers/get-async-api-message-payload-schema.js.map +1 -0
- package/dist/helpers/get-async-api-model-schema.d.ts.map +1 -1
- package/dist/helpers/get-async-api-model-schema.js +2 -11
- package/dist/helpers/get-async-api-model-schema.js.map +1 -1
- package/dist/helpers/map-config-plugins.d.ts +8 -3
- package/dist/helpers/map-config-plugins.d.ts.map +1 -1
- package/dist/helpers/map-config-plugins.js +22 -4
- package/dist/helpers/map-config-plugins.js.map +1 -1
- package/dist/style.css +416 -311
- package/dist/vue-styles.css +398 -298
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @scalar/api-reference
|
|
2
2
|
|
|
3
|
+
## 1.61.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#9520](https://github.com/scalar/scalar/pull/9520): Render AsyncAPI operations and their messages (with payload and header schemas) nested inside each channel, in both the modern and classic layouts
|
|
8
|
+
- [#9569](https://github.com/scalar/scalar/pull/9569): Show server and protocol labels when rendering AsyncAPI channels and messages: each channel header lists the servers it's available on and their protocols, and each message surfaces every protocol it's carried over (its channel's server protocols unioned with its own binding protocols)
|
|
9
|
+
- [#9515](https://github.com/scalar/scalar/pull/9515): feat: add `requestBuilt` client plugin hook and `onRequestBuilt` configuration callback that receive the exact fetch `Request` that is sent over the wire
|
|
10
|
+
|
|
11
|
+
The hook runs after the request has been built, right before it is sent. Header mutations apply to the outgoing request and the body bytes match what the server receives, which makes request signing possible: hashing the body of a rebuilt `multipart/form-data` request would produce a different multipart boundary than the request that is actually sent.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#9559](https://github.com/scalar/scalar/pull/9559): Render an object's own properties when they are factored out alongside a composition keyword (`anyOf`/`oneOf`/`allOf`/`not`)
|
|
16
|
+
- [#9542](https://github.com/scalar/scalar/pull/9542): Fix an SSR hydration mismatch in the injected `<style>` tag: the CSS is now rendered verbatim instead of being HTML-escaped on the server (`"` became `"`), which broke font styles and caused a hydration mismatch.
|
|
17
|
+
- [#9546](https://github.com/scalar/scalar/pull/9546): fix: let a later `allOf` member override the `description` and `title` of an earlier one
|
|
18
|
+
- [#9557](https://github.com/scalar/scalar/pull/9557): Fix `oneOf`/`anyOf` being dropped when nested inside an `allOf`. The composition is now preserved so its variants keep rendering alongside the merged base properties, instead of only the first `allOf` member showing up.
|
|
19
|
+
|
|
3
20
|
## 1.60.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
|
|
6
6
|
* /____/\____/_/ |_/_____/_/ |_/_/ |_|
|
|
7
7
|
*
|
|
8
|
-
* @scalar/api-reference 1.
|
|
8
|
+
* @scalar/api-reference 1.61.0
|
|
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,Bo as a,Cn as o,Ct as s,Eo as c,Et as l,F as u,Fa as d,G as f,Gn as p,H as m,Hn as h,Ho as g,I as ee,Ia as te,In as ne,J as re,K as _,Kt as ie,L as ae,Lo as oe,M as se,N as ce,Nn as le,Oa as ue,On as de,Oo as fe,P as v,Pa as pe,Pn as me,Q as he,R as y,Ro as ge,T as _e,Ta as ve,To as ye,U as b,Uo as be,Ut as xe,V as x,Vo as Se,W as S,Y as Ce,Z as we,Zt as Te,ba as Ee,bi as De,bn as Oe,bt as ke,dr as Ae,et as je,fr as Me,it as Ne,j as Pe,ja as Fe,k as Ie,kn as Le,n as Re,q as ze,r as Be,rn as Ve,tt as He,wt as Ue,xn as We,y as Ge,za as Ke,zo as qe}from"./vendor-wW8jg8wN.js";import{c as Je,g as Ye,h as Xe,i as Ze,m as Qe,n as $e,o as et,r as tt,s as nt,t as rt,v as it,y as at}from"./ScalarTextInput.vue-C14zmVNI.js";import{A as ot,B as st,C as ct,D as lt,G as ut,Gt as dt,H as C,K as ft,P as pt,R as mt,S as w,St as ht,Tt as T,U as gt,Yt as E,Z as _t,at as D,b as O,d as k,dt as vt,et as yt,f as A,gt as j,i as M,j as bt,l as N,mt as xt,ot as St,p as P,tt as Ct,u as F,ut as wt,v as Tt,xt as Et,y as I,yt as Dt}from"./runtime-core.esm-bundler-Byrbbu5Q.js";import{a as Ot,i as kt,r as At,t as jt}from"./modal-BZzcBkVp.js";var Mt={key:0},Nt={key:1},Pt={key:2},Ft={key:3},It={key:4},Lt={key:5},Rt=w({name:`ScalarIconArrowRight`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=Ke(e);return(e,r)=>(C(),P(`svg`,ot({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},T(t)),[ft(e.$slots,`default`),T(n)===`bold`?(C(),P(`g`,Mt,[...r[0]||=[F(`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)]])):T(n)===`duotone`?(C(),P(`g`,Nt,[...r[1]||=[F(`path`,{d:`M216,128l-72,72V56Z`,opacity:`0.2`},null,-1),F(`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)]])):T(n)===`fill`?(C(),P(`g`,Pt,[...r[2]||=[F(`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)]])):T(n)===`light`?(C(),P(`g`,Ft,[...r[3]||=[F(`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)]])):T(n)===`regular`?(C(),P(`g`,It,[...r[4]||=[F(`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)]])):T(n)===`thin`?(C(),P(`g`,Lt,[...r[5]||=[F(`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)]])):A(``,!0)],16))}}),zt={key:0},Bt={key:1},Vt={key:2},Ht={key:3},Ut={key:4},Wt={key:5},Gt=w({name:`ScalarIconUpload`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=Ke(e);return(e,r)=>(C(),P(`svg`,ot({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},T(t)),[ft(e.$slots,`default`),T(n)===`bold`?(C(),P(`g`,zt,[...r[0]||=[F(`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)]])):T(n)===`duotone`?(C(),P(`g`,Bt,[...r[1]||=[F(`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),F(`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)]])):T(n)===`fill`?(C(),P(`g`,Vt,[...r[2]||=[F(`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)]])):T(n)===`light`?(C(),P(`g`,Ht,[...r[3]||=[F(`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)]])):T(n)===`regular`?(C(),P(`g`,Ut,[...r[4]||=[F(`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)]])):T(n)===`thin`?(C(),P(`g`,Wt,[...r[5]||=[F(`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)]])):A(``,!0)],16))}}),Kt={key:0},qt={key:1},Jt={key:2},Yt={key:3},Xt={key:4},Zt={key:5},Qt=w({name:`ScalarIconXCircle`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=Ke(e);return(e,r)=>(C(),P(`svg`,ot({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},T(t)),[ft(e.$slots,`default`),T(n)===`bold`?(C(),P(`g`,Kt,[...r[0]||=[F(`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)]])):T(n)===`duotone`?(C(),P(`g`,qt,[...r[1]||=[F(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`},null,-1),F(`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)]])):T(n)===`fill`?(C(),P(`g`,Jt,[...r[2]||=[F(`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)]])):T(n)===`light`?(C(),P(`g`,Yt,[...r[3]||=[F(`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)]])):T(n)===`regular`?(C(),P(`g`,Xt,[...r[4]||=[F(`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)]])):T(n)===`thin`?(C(),P(`g`,Zt,[...r[5]||=[F(`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)]])):A(``,!0)],16))}});function L(e,t){return{code:e,detail:t}}var $t=qe({id:g(),title:g(),namespace:g(),currentVersion:g(),logoUrl:be([g(),oe()]),slug:g()});function en(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 tn(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 nn(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 rn={safeFn:en,fromUnsafe:tn,resultsToResult:nn};function an({getAccessToken:e,getAgentKey:t}){let n=e?.(),r=t?.();return{...n&&{Authorization:`Bearer ${n}`},...r&&{"x-scalar-agent-key":r}}}function on({baseUrl:e,getAccessToken:t,getAgentKey:n}){let i=qe({message:g(),code:g()}),a=rn.safeFn(async({path:r,method:a=`get`,query:o,body:s,responseSchema:c})=>{let l=`${e}${r}${o?`?${new URLSearchParams(o)}`:``}`,u=await rn.fromUnsafe(async()=>fetch(l,{method:a,...s&&{body:JSON.stringify(s)},headers:{...an({getAccessToken:t,getAgentKey:n})}}),e=>L(`FAILED_TO_FETCH`,e));if(!u.success)return u;let d=await rn.fromUnsafe(async()=>u.data.json(),e=>L(`FAILED_TO_FETCH_DATA`,e));if(!d.success)return{success:!1,error:L(`UNKNOWN_ERROR`,`Unknown error occurred. Please contact support.`)};if(!u.data.ok){if(!at(i,d.data))return{success:!1,error:L(`UNKNOWN_ERROR`,`Unknown error occurred. Please contact support.`)};let e=it(i,d.data);return{success:!1,error:L(e.code,e.message)}}return at(c,d.data)?{success:!0,data:it(c,d.data)}:{success:!1,error:L(`INVALID_RESPONSE`,`Invalid response. Please contact support`)}});return{search:async e=>a({path:`/vector/registry/search`,query:{query:e},responseSchema:qe({results:r($t)})}),getDocument:async e=>a({path:`/vector/registry/document/${e.namespace}/${e.slug}`,responseSchema:$t}),getKeyDocuments:async()=>a({path:`/vector/registry/documents`,responseSchema:qe({documents:r($t)})}),getCuratedDocuments:async()=>a({path:`/vector/registry/curated`,responseSchema:qe({results:r($t)})})}}function sn(e,t){return`${e}/${t}`}var cn=`execute-request`;qe({method:g(),path:g(),headers:a(Se(g(),g())),body:a(g()),documentName:g(),documentIdentifier:g({typeComment:`Needed for legacy support for old clients`})});var ln=e=>{let t=un(e,0);if(t===void 0||!fn(e[t]))return;let n=un(e,t+1);if(n!==void 0)return pn(e,t,n)},un=(e,t)=>{for(let n=t;n<e.length;n+=1){let t=e[n];if(!dn(t))return n}},dn=e=>e===` `||e===` `||e===`
|
|
15
|
+
import{A as e,Aa as t,An as n,Ao as r,B as i,Bo as a,Cn as o,Ct as s,Eo as c,Et as l,F as u,Fa as d,G as f,Gn as p,H as m,Hn as h,Ho as g,I as ee,Ia as te,In as ne,J as re,K as _,Kt as ie,L as ae,Lo as oe,M as se,N as ce,Nn as le,Oa as ue,On as de,Oo as fe,P as v,Pa as pe,Pn as me,Q as he,R as y,Ro as ge,T as _e,Ta as ve,To as ye,U as b,Uo as be,Ut as xe,V as x,Vo as Se,W as S,Y as Ce,Z as we,Zt as Te,ba as Ee,bi as De,bn as Oe,bt as ke,dr as Ae,et as je,fr as Me,it as Ne,j as Pe,ja as Fe,k as Ie,kn as Le,n as Re,q as ze,r as Be,rn as Ve,tt as He,wt as Ue,xn as We,y as Ge,za as Ke,zo as qe}from"./vendor-BeJNu9KM.js";import{c as Je,g as Ye,h as Xe,i as Ze,m as Qe,n as $e,o as et,r as tt,s as nt,t as rt,v as it,y as at}from"./ScalarTextInput.vue-BUzf4Z_k.js";import{A as ot,B as st,C as ct,D as lt,G as ut,Gt as dt,H as C,K as ft,P as pt,R as mt,S as w,St as ht,Tt as T,U as gt,Yt as E,Z as _t,at as D,b as O,d as k,dt as vt,et as yt,f as A,gt as j,i as M,j as bt,l as N,mt as xt,ot as St,p as P,tt as Ct,u as F,ut as wt,v as Tt,xt as Et,y as I,yt as Dt}from"./runtime-core.esm-bundler-Byrbbu5Q.js";import{a as Ot,i as kt,r as At,t as jt}from"./modal-CZI71Aau.js";var Mt={key:0},Nt={key:1},Pt={key:2},Ft={key:3},It={key:4},Lt={key:5},Rt=w({name:`ScalarIconArrowRight`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=Ke(e);return(e,r)=>(C(),P(`svg`,ot({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},T(t)),[ft(e.$slots,`default`),T(n)===`bold`?(C(),P(`g`,Mt,[...r[0]||=[F(`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)]])):T(n)===`duotone`?(C(),P(`g`,Nt,[...r[1]||=[F(`path`,{d:`M216,128l-72,72V56Z`,opacity:`0.2`},null,-1),F(`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)]])):T(n)===`fill`?(C(),P(`g`,Pt,[...r[2]||=[F(`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)]])):T(n)===`light`?(C(),P(`g`,Ft,[...r[3]||=[F(`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)]])):T(n)===`regular`?(C(),P(`g`,It,[...r[4]||=[F(`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)]])):T(n)===`thin`?(C(),P(`g`,Lt,[...r[5]||=[F(`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)]])):A(``,!0)],16))}}),zt={key:0},Bt={key:1},Vt={key:2},Ht={key:3},Ut={key:4},Wt={key:5},Gt=w({name:`ScalarIconUpload`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=Ke(e);return(e,r)=>(C(),P(`svg`,ot({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},T(t)),[ft(e.$slots,`default`),T(n)===`bold`?(C(),P(`g`,zt,[...r[0]||=[F(`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)]])):T(n)===`duotone`?(C(),P(`g`,Bt,[...r[1]||=[F(`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),F(`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)]])):T(n)===`fill`?(C(),P(`g`,Vt,[...r[2]||=[F(`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)]])):T(n)===`light`?(C(),P(`g`,Ht,[...r[3]||=[F(`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)]])):T(n)===`regular`?(C(),P(`g`,Ut,[...r[4]||=[F(`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)]])):T(n)===`thin`?(C(),P(`g`,Wt,[...r[5]||=[F(`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)]])):A(``,!0)],16))}}),Kt={key:0},qt={key:1},Jt={key:2},Yt={key:3},Xt={key:4},Zt={key:5},Qt=w({name:`ScalarIconXCircle`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=Ke(e);return(e,r)=>(C(),P(`svg`,ot({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},T(t)),[ft(e.$slots,`default`),T(n)===`bold`?(C(),P(`g`,Kt,[...r[0]||=[F(`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)]])):T(n)===`duotone`?(C(),P(`g`,qt,[...r[1]||=[F(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`},null,-1),F(`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)]])):T(n)===`fill`?(C(),P(`g`,Jt,[...r[2]||=[F(`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)]])):T(n)===`light`?(C(),P(`g`,Yt,[...r[3]||=[F(`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)]])):T(n)===`regular`?(C(),P(`g`,Xt,[...r[4]||=[F(`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)]])):T(n)===`thin`?(C(),P(`g`,Zt,[...r[5]||=[F(`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)]])):A(``,!0)],16))}});function L(e,t){return{code:e,detail:t}}var $t=qe({id:g(),title:g(),namespace:g(),currentVersion:g(),logoUrl:be([g(),oe()]),slug:g()});function en(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 tn(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 nn(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 rn={safeFn:en,fromUnsafe:tn,resultsToResult:nn};function an({getAccessToken:e,getAgentKey:t}){let n=e?.(),r=t?.();return{...n&&{Authorization:`Bearer ${n}`},...r&&{"x-scalar-agent-key":r}}}function on({baseUrl:e,getAccessToken:t,getAgentKey:n}){let i=qe({message:g(),code:g()}),a=rn.safeFn(async({path:r,method:a=`get`,query:o,body:s,responseSchema:c})=>{let l=`${e}${r}${o?`?${new URLSearchParams(o)}`:``}`,u=await rn.fromUnsafe(async()=>fetch(l,{method:a,...s&&{body:JSON.stringify(s)},headers:{...an({getAccessToken:t,getAgentKey:n})}}),e=>L(`FAILED_TO_FETCH`,e));if(!u.success)return u;let d=await rn.fromUnsafe(async()=>u.data.json(),e=>L(`FAILED_TO_FETCH_DATA`,e));if(!d.success)return{success:!1,error:L(`UNKNOWN_ERROR`,`Unknown error occurred. Please contact support.`)};if(!u.data.ok){if(!at(i,d.data))return{success:!1,error:L(`UNKNOWN_ERROR`,`Unknown error occurred. Please contact support.`)};let e=it(i,d.data);return{success:!1,error:L(e.code,e.message)}}return at(c,d.data)?{success:!0,data:it(c,d.data)}:{success:!1,error:L(`INVALID_RESPONSE`,`Invalid response. Please contact support`)}});return{search:async e=>a({path:`/vector/registry/search`,query:{query:e},responseSchema:qe({results:r($t)})}),getDocument:async e=>a({path:`/vector/registry/document/${e.namespace}/${e.slug}`,responseSchema:$t}),getKeyDocuments:async()=>a({path:`/vector/registry/documents`,responseSchema:qe({documents:r($t)})}),getCuratedDocuments:async()=>a({path:`/vector/registry/curated`,responseSchema:qe({results:r($t)})})}}function sn(e,t){return`${e}/${t}`}var cn=`execute-request`;qe({method:g(),path:g(),headers:a(Se(g(),g())),body:a(g()),documentName:g(),documentIdentifier:g({typeComment:`Needed for legacy support for old clients`})});var ln=e=>{let t=un(e,0);if(t===void 0||!fn(e[t]))return;let n=un(e,t+1);if(n!==void 0)return pn(e,t,n)},un=(e,t)=>{for(let n=t;n<e.length;n+=1){let t=e[n];if(!dn(t))return n}},dn=e=>e===` `||e===` `||e===`
|
|
16
16
|
`||e===`\r`,fn=e=>e===`{`||e===`[`,pn=(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 mn(r);if(r===void 0)r=t;else if(r[0]===t)r+=t;else return}},mn=e=>e===void 0?0:e[0]===` `?e.length:e,hn=(e,t)=>{let n=gn(e,`toPrecision`,t,t);return n===void 0?gn(e,`toExponential`,t,t):n},gn=(e,t,n,r)=>{let i=e[t](r).replace(_n,`$1`).replace(vn,`$1`);return i.length<=n?i:r===1?void 0:gn(e,t,n,r-1)},_n=/(e)\+/iu,vn=/\.?0*($|e)/iu,yn=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Input must be a JSON string: ${e}`);bn(t)},bn=e=>{if(xn(e),e<0)throw TypeError(`"maxSize" argument must be positive: ${e}`);if(e<7)throw TypeError(`"maxSize" argument must be at least 7: ${e}`)},xn=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}`)},Sn=(e,t,n)=>Cn(e,t,kn(t,n)),Cn=(e,t,n)=>{if(n>=t)return n;let r=e[n];return r>=Pn&&r<=Fn?Cn(e,t,n+1):n},wn=(e,t,n)=>n===void 0?n:Tn(e,kn(t,n)),Tn=(e,t)=>En(e,t)?t-3:Dn(e,t)?t-2:On(e,t)?t-1:t,En=(e,t)=>t>=3&&e[t-3]>=An&&e[t-3]<=jn,Dn=(e,t)=>t>=2&&e[t-2]>=Mn,On=(e,t)=>t>=1&&e[t-1]>=Nn,kn=(e,t)=>t<0||Object.is(t,-0)?Math.max(e+t,0):t,An=240,jn=244,Mn=224,Nn=194,Pn=128,Fn=191,In=(e,t,n)=>{let r=globalThis.Buffer.from(e),i=Sn(r,r.length,t),a=wn(r,r.length,n);return i===0&&a>=r.length?r.toString():r.toString(`utf8`,i,a)},Ln=55296,Rn=56319,zn=56320,Bn=57343,Vn=/[\uD800-\uDFFF]/gu,Hn=e=>Un(e)?e.replace(Vn,`�`):e,Un=e=>{for(let t=0;t<e.length;t+=1){let n=e.codePointAt(t);if(n>=55296&&n<=57343)return!0}return!1},Wn=({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},Gn=(e,t,n)=>t<0||Object.is(t,-0)?qn(e,t,n):Kn(e,t,n),Kn=(e,t,n)=>Wn({input:e,targetByteCount:t,firstStartSurrogate:Ln,lastStartSurrogate:Rn,firstEndSurrogate:zn,lastEndSurrogate:Bn,increment:1,canBacktrack:n,shift:0,charIndexInit:0}),qn=(e,t,n)=>Wn({input:e,targetByteCount:-t,firstStartSurrogate:zn,lastStartSurrogate:Bn,firstEndSurrogate:Ln,lastEndSurrogate:Rn,increment:-1,canBacktrack:!n,shift:1,charIndexInit:e.length-1}),Jn=(e,t,n)=>{let r=Gn(e,t,!1),i=Yn(e,n);return Hn(r===0&&i===void 0?e:e.slice(r,i))},Yn=(e,t)=>{if(t===void 0)return t;let n=Gn(e,t,!0);return n===e.length?void 0:n},Xn=(e,t,n)=>{let{textEncoder:r,textDecoder:i}=Zn(),a=er(e),{written:o}=r.encodeInto(e,a),s=Sn(a,o,t),c=wn(a,o,n),l=c===void 0?o:Math.min(c,o),u=a.subarray(s,l);return i.decode(u)},Zn=()=>(Qn===void 0&&(Qn=new globalThis.TextEncoder,$n=new globalThis.TextDecoder(`utf8`,{fatal:!1})),{textEncoder:Qn,textDecoder:$n}),Qn,$n,er=e=>{let t=e.length*3;return t>1e5?new Uint8Array(t):((tr===void 0||tr.length<t)&&(tr=new Uint8Array(t)),tr)},tr,nr=(e,t)=>{if(t===void 0)return t;let n=rr(e,t);return n>=e.length*ir?void 0:n},rr=(e,t)=>t<=e.length*-ir?0:t,ir=4,ar=(e,t,n)=>{if(typeof e!=`string`)throw TypeError(`First argument must be a string: ${e}`);or(t),sr(n)},or=e=>{if(e===void 0)throw TypeError(`Second argument is required.`);cr(`Second`,e)},sr=e=>{e!==void 0&&cr(`Third`,e)},cr=(e,t)=>{if(!Number.isInteger(t))throw TypeError(`${e} argument must be an integer: ${t}`)},lr=e=>{let t=!0,n=0;for(let r=0;r<dr;r+=1){let i=ur(e,r);i<=127||(t&&=!1,i>2047&&(n+=1))}return{asciiOnly:t,longCharsPercentage:n/dr}},ur=(e,t)=>{let n=dr-1,r=1-(n-t)/n,i=Math.round(r*(e.length-1));return e.charCodeAt(i)},dr=50,fr=(e,t,n)=>{if(ar(e,t,n),e===``)return e;let r=rr(e,t),i=nr(e,n);return i===void 0&&Object.is(r,0)?Hn(e):pr(e,r,i)},pr=(e,t,n)=>{if(e.length<=mr)return Jn(e,t,n);let{asciiOnly:r,longCharsPercentage:i}=lr(e);return r?gr(e,t,n):i>=hr?Jn(e,t,n):_r(e,t,n)},mr=200,hr=.4,gr=(e,t,n)=>`Buffer`in globalThis&&`from`in globalThis.Buffer?In(e,t,n):_r(e,t,n),_r=(e,t,n)=>`TextEncoder`in globalThis?Xn(e,t,n):Jn(e,t,n),vr=(e,t)=>Sr(`${yr(fr(xr(JSON.stringify(e)),0,t-wr.length-Cr.length*2))}${wr}`),yr=e=>e.replace(br,``),br=/(\\|\\u[0-9a-fA-F]{0,3})$/u,xr=e=>e.slice(Cr.length,-Cr.length),Sr=e=>`${Cr}${e}${Cr}`,Cr=`"`,wr=`...`,Tr=e=>globalThis.Buffer.byteLength(e),Er=e=>{let t=e.length,n=t;for(let r=0;r<t;r+=1){let t=e.charCodeAt(r);if(t<=Dr)continue;if(t<=Or){n+=1;continue}if(n+=2,t<kr||t>Ar)continue;let i=e.charCodeAt(r+1);i<jr||i>Mr||(r+=1)}return n},Dr=127,Or=2047,kr=55296,Ar=56319,jr=56320,Mr=57343,Nr=()=>Pr.bind(void 0,new TextEncoder),Pr=(e,t)=>{let n=Fr(t);return e.encodeInto(t,n).written},Fr=e=>{let t=e.length*3;return t>1e5?new Uint8Array(t):((Ir===void 0||Ir.length<t)&&(Ir=new Uint8Array(t)),Ir)},Ir,Lr=()=>`Buffer`in globalThis&&`byteLength`in globalThis.Buffer?Tr:`TextEncoder`in globalThis?Rr.bind(void 0,Nr()):Er,Rr=(e,t)=>t.length<100?Er(t):e(t),zr=Lr(),Br=e=>{if(e===null)return Vr;if(e===!0)return Hr;if(e===!1)return Ur;let t=typeof e;return t===`object`?Wr:t===`number`?JSON.stringify(e).length:Gr(e)},Vr=4,Hr=4,Ur=5,Wr=2,Gr=e=>zr(JSON.stringify(e)),Kr=({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}},qr=e=>Br(e),Jr=(e,t,n)=>Zr({empty:e,indent:t,depth:n,keySpaceSize:0})+$r(e),Yr=({key:e,empty:t,indent:n,depth:r})=>{let i=Zr({empty:t,indent:n,depth:r,keySpaceSize:1}),a=Gr(e),o=$r(t);return i+a+Xr+o},Xr=1,Zr=({empty:e,indent:t,depth:n,keySpaceSize:r})=>{if(t===void 0)return 0;let i=Qr+t*(n+1),a=e?Qr+t*n:0;return r+i+a},Qr=1,$r=e=>e?0:ei,ei=1,ti=({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}=Kr({size:s,increment:r,maxSize:i,truncatedProps:t,path:f,value:d});return m?{empty:o,size:p,truncatedProps:h}:ni({value:d,truncatedProps:t,path:f,maxSize:i,empty:o,size:s,newSize:p,truncateValue:c,indent:l,depth:u})},ni=({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}},ri=({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=Jr(l.empty,o,s);l=ti({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}},ii=({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=Yr({key:t,empty:l.empty,indent:o,depth:s});l=ti({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}},ai=({value:e,truncatedProps:t,path:n,size:r,maxSize:i,indent:a,depth:o})=>{let{size:s,stop:c,truncatedProps:l}=Kr({size:r,increment:qr(e),maxSize:i,truncatedProps:t,path:n,value:e});return c?{value:void 0,size:s,truncatedProps:l}:oi({value:e,truncatedProps:l,path:n,size:s,maxSize:i,indent:a,depth:o})},oi=({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)?ri({array:e,truncatedProps:t,path:n,size:r,maxSize:i,truncateValue:ai,indent:a,depth:o}):ii({object:e,truncatedProps:t,path:n,size:r,maxSize:i,truncateValue:ai,indent:a,depth:o}),si=(e,t)=>{yn(e,t);let n=ci(e),r=li(e),{value:i,truncatedProps:a}=ai({value:r,truncatedProps:[],path:[],size:0,maxSize:t,indent:n,depth:0});return{jsonString:ui({newValue:i,value:r,maxSize:t,indent:n}),truncatedProps:a}},ci=e=>{let t=ln(e);return typeof t==`string`?t.length:t},li=e=>{try{return JSON.parse(e)}catch(t){throw TypeError(`Invalid JSON string: "${e}"\n${t.message}`)}},ui=({newValue:e,value:t,maxSize:n,indent:r})=>e===void 0?typeof t==`number`?hn(t,n):vr(t,n):JSON.stringify(e,void 0,r),di=5e4,fi=rn.safeFn(async e=>e.headers.get(`content-type`)===`application/json`?{success:!0,data:await e.json()}:{success:!0,data:await e.text()},e=>L(`FAILED_TO_PARSE_RESPONSE_BODY`,{originalError:e})),pi=e=>JSON.parse(si(JSON.stringify(e),di).jsonString),mi=rn.safeFn(async(e,t)=>{let n=await fetch(e,t),r=await fi(n);return n.ok?r.success?{success:!0,data:{status:n.status,responseBody:pi(r.data),headers:Object.fromEntries(n.headers.entries())}}:r:{success:!1,error:L(`REQUEST_NOT_OK`,{status:n.status,url:n.url,responseBody:pi(r.success?r.data:void 0),headers:Object.fromEntries(n.headers.entries())})}},e=>L(`FAILED_TO_FETCH`,{originalError:e}));function hi({path:e,activeServer:t,proxyUrl:n,queryParams:r}){return Me(n,Ot({path:e,server:t,urlParams:r}))}var gi=rn.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:L(`DOCUMENT_SETTINGS_COULD_NOT_BE_DETERMINED`,{documentName:c})};let u=kt(l.securitySchemes).reduce((e,t)=>{let n=t.format===`basic`?`Basic ${Ae(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 mi(hi({path:a,activeServer:l.activeServer,proxyUrl:r,queryParams:u.queryParams}),f);return n.addToolOutput({tool:cn,toolCallId:t,output:p,state:`output-available`}),p},e=>L(`FAILED_TO_EXECUTE_REQUEST`,e)),_i={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 vi(e){return Object.values(e.paths??{}).flatMap(e=>Object.values(e??{}))}function yi(e,t,r){let i=n(t?.components?.securitySchemes,{},r,e),a=ne(t.security),o=le(r.getAuthSelectedSchemas({type:`document`,documentName:e}),void 0,a);return me(i,o.selectedSchemes[o.selectedIndex]??{})}function bi(e){let t=[];for(let[n,r]of Object.entries(e.workspace.documents))p(r)&&t.push([n,r]);return Object.fromEntries(t.map(([t,n])=>[t,{activeServer:de(n,null,null,Le(n.servers,{documentUrl:n[`x-scalar-original-source-url`]})),securitySchemes:yi(t,n,e.auth)}]))}var xi=tt(),Si=()=>{let e=e=>`${$e.AUTH}-${e}`;return{getAuth:t=>De(Ie,JSON.parse(xi.getItem(e(t))??`{}`)),setAuth:(t,n)=>{xi.setItem(e(t),JSON.stringify(n))}}},Ci=({documentName:e,workspaceStore:t})=>{let n=Si().getAuth(e);t.auth.load({[e]:n})};function wi(e){try{return JSON.parse(e)}catch{return}}var Ti=`scalar/agent-terms-accepted`;function Ei(){let e=j(!1);mt(()=>{e.value=localStorage.getItem(Ti)===`true`});function t(){e.value=!0,localStorage.setItem(Ti,`true`)}return{accepted:e,accept:t}}var Di=5e3,Oi=`scalar-tmp-doc`;function ki({namespace:e,slug:t}){localStorage.setItem(Oi,JSON.stringify({namespace:e,slug:t}))}var Ai=qe({namespace:g(),slug:g()});function ji(){let e=localStorage.getItem(Oi);if(e)return it(Ai,JSON.parse(e))}function Mi(){localStorage.getItem(Oi)&&localStorage.removeItem(Oi)}function Ni(){let e=Q(),t=j();function n(t){let n=`${e.baseUrl}${t}`;return Me(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=qe({url:g(),namespace:g(),slug:g()});if(!at(s,o)){t.value={type:`error`,error:`Failed to process document.`};return}let c=it(s,o);t.value={type:`processing`};let l=await fetch(n(`/vector/registry/embeddings/${c.namespace}/${c.slug}`),{method:`GET`});if(ki({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},Di),c}catch{t.value={type:`error`,error:`Failed to upload your OpenAPI document.`};return}}return{uploadTempDocument:r,uploadState:t}}var Pi=({debounceDelay:e=500,maxWait:t=1e4,persistAuth:n=!1})=>{let{execute:r}=Be({delay:e,maxWait:t}),i=Si(),a=()=>typeof n==`function`?n():n;return{hooks:{onWorkspaceStateChanges(e){a()&&e.type===`auth`&&r(`auth`,()=>i.setAuth(e.documentName,e.value))}}}},Fi=rn.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 nt(u.toString(),{plugins:[et({headers:d})],treeShake:!1}),m=sn(e,t);return await n.addDocument({name:m,document:p},o),n.update(`x-scalar-active-document`,m),Ci({documentName:m,workspaceStore:n}),{success:!0,data:l.data}},e=>L(`UNABLE_TO_LOAD_DOCUMENT`,e)),Ii=`vercel.ai.error`,Li=Symbol.for(Ii),Ri,zi,Bi=class e extends (zi=Error,Ri=Li,zi){constructor({name:e,message:t,cause:n}){super(t),this[Ri]=!0,this.name=e,this.cause=n}static isInstance(t){return e.hasMarker(t,Ii)}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 Vi(e){return e==null?`unknown error`:typeof e==`string`?e:e instanceof Error?e.message:JSON.stringify(e)}var Hi=`AI_InvalidArgumentError`,Ui=`vercel.ai.error.${Hi}`,Wi=Symbol.for(Ui),Gi,Ki,qi=class extends (Ki=Bi,Gi=Wi,Ki){constructor({message:e,cause:t,argument:n}){super({name:Hi,message:e,cause:t}),this[Gi]=!0,this.argument=n}static isInstance(e){return Bi.hasMarker(e,Ui)}},Ji=`AI_JSONParseError`,Yi=`vercel.ai.error.${Ji}`,Xi=Symbol.for(Yi),Zi,Qi,$i=class extends (Qi=Bi,Zi=Xi,Qi){constructor({text:e,cause:t}){super({name:Ji,message:`JSON parsing failed: Text: ${e}.
|
|
18
18
|
Error message: ${Vi(t)}`,cause:t}),this[Zi]=!0,this.text=e}static isInstance(e){return Bi.hasMarker(e,Yi)}},ea=`AI_TypeValidationError`,ta=`vercel.ai.error.${ea}`,na=Symbol.for(ta),ra,ia,aa=class e extends (ia=Bi,ra=na,ia){constructor({value:e,cause:t}){super({name:ea,message:`Type validation failed: Value: ${JSON.stringify(e)}.
|
package/dist/browser/chunks/{ScalarTextInput.vue-C14zmVNI.js → ScalarTextInput.vue-BUzf4Z_k.js}
RENAMED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
|
|
6
6
|
* /____/\____/_/ |_/_____/_/ |_/_/ |_|
|
|
7
7
|
*
|
|
8
|
-
* @scalar/api-reference 1.
|
|
8
|
+
* @scalar/api-reference 1.61.0
|
|
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{$ as n,$i as r,$r as i,Ai as a,Ao as o,Ar as s,Bi as c,Bo as l,Br as u,Ci as d,Co as f,D as p,Di as m,E as h,Ei as g,Fi as _,Fn as v,Fo as y,Fr as ee,Gi as te,Gn as ne,Go as b,Gr as re,Hi as x,Ho as S,Hr as ie,Ii as ae,Io as C,Ir as oe,Ji as se,Jr as ce,Ki as le,Kr as ue,Li as de,Lo as fe,Lr as pe,Mi as w,Mn as T,Mo as E,Mr as me,Ni as he,No as D,Nr as ge,O as _e,Oi as ve,Or as ye,Pi as be,Po as O,Pr as xe,Qi as Se,Qr as Ce,Ri as we,Rn as Te,Ro as k,Rr as Ee,Si as De,Ti as Oe,Ui as ke,Uo as A,Ur as Ae,Vi as je,Vo as j,Vr as Me,Wi as Ne,Wn as Pe,Wo as M,Wr as Fe,Xr as Ie,Yi as Le,Yr as Re,Zi as N,Zn as ze,Zr as Be,_i as Ve,aa as He,ai as Ue,bi as We,di as Ge,ea as Ke,ei as qe,fi as Je,fr as Ye,gi as Xe,h as Ze,hi as Qe,ia as $e,ii as et,ji as tt,jn as nt,jo as P,jr as rt,ki as it,ko as F,kr as at,la as I,li as ot,ma as st,mi as ct,na as lt,ni as ut,nt as dt,o as ft,oi as pt,pa as mt,pi as ht,qi as gt,qr as _t,ra as vt,ri as yt,s as bt,sa as L,si as xt,ta as St,ti as Ct,ua as wt,ui as Tt,vi as Et,wi as R,wn as Dt,xi as Ot,yi as kt,za as At,zi as jt,zo as z,zr as Mt}from"./vendor-wW8jg8wN.js";import{A as Nt,B as Pt,D as Ft,Gt as It,H as B,J as Lt,K as Rt,Q as zt,R as Bt,S as Vt,Tt as V,U as Ht,Yt as Ut,at as Wt,b as Gt,d as Kt,dt as qt,f as Jt,gt as Yt,k as Xt,l as Zt,mt as Qt,ot as $t,p as H,tt as en,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},tn=(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=>tn(e.items,t,n));if(e.type===`record`)return W(t)?Object.keys(t).every(r=>tn(e.key,r,n)&&tn(e.value,t[r],n)):!1;if(e.type===`object`)return W(t)?Object.keys(e.properties).every(r=>tn(e.properties[r],t[r],n)):!1;if(e.type===`optional`)return t===void 0||tn(e.schema,t,n);if(e.type===`union`)return e.schemas.some(e=>tn(e,t,n));if(e.type===`intersection`)return e.schemas.length===0?!0:W(t)?e.schemas.every(e=>tn(e,t,n)):!1;if(e.type===`literal`)return t===e.value;if(e.type===`lazy`)return tn(e.schema(),t,n);if(e.type===`evaluate`)return tn(e.schema,e.expression(t),n);let r=e;return console.warn(`Unknown schema type:`,r),!1}finally{r&&n.get(t)?.delete(e)}},nn=(e,t,n=new WeakMap)=>tn(e,t,n),rn=(e,t)=>{let n=t.get(e);if(n)return n;let r=e.schema();return t.set(e,r),r},an=e=>e.type===`optional`?an(e.schema):e.type===`literal`?!0:e.type===`union`?e.schemas.length>0&&e.schemas.every(an):!1,on=(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=on(o,s,n,r);return an(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:on(e.schema,t,n,r):e.type===`union`?Math.max(...e.schemas.map(e=>on(e,t,n,r))):e.type===`intersection`?e.schemas.length===0?1:e.schemas.reduce((e,i)=>e+on(i,t,n,r),0):e.type===`lazy`?on(rn(e,n),t,n,r):e.type===`evaluate`?on(e.schema,e.expression(t),n,r):nn(e,t)?1:0}finally{i&&r.get(t)?.delete(e)}},sn=(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)}},cn=(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 nn(e,t)?t:e.default??0;if(e.type===`string`)return nn(e,t)?t:e.default??``;if(e.type===`boolean`)return nn(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:cn(e.schema,t,n,r);if(e.type===`array`){if(!Array.isArray(t))return[];let i=Array(t.length);sn(t,e,i,n);for(let a=0;a<t.length;a++)i[a]=cn(e.items,t[a],n,r);return i}if(e.type===`record`){if(!W(t))return{};let i={};sn(t,e,i,n);for(let a of Object.keys(t))i[a]=cn(e.value,t[a],n,r);return i}if(e.type===`object`){let i=Object.keys(e.properties),a=W(t)?t:null,o={};sn(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]=cn(i,s,n,r))}return o}if(e.type===`union`)return cn(e.schemas.reduce((e,n)=>{let i=on(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,cn(i,t,n,r)),{});if(e.type===`literal`)return e.value;if(e.type===`lazy`)return cn(rn(e,r),t,n,r);if(e.type===`evaluate`)return cn(e.schema,e.expression(t),n,r);let i=e;return console.warn(`Unknown schema type:`,i),t},ln=(e,t,n=new WeakMap,r=new WeakMap)=>cn(e,t,n,r);z({name:S({typeComment:"Name of specification extension property. Has to start with `x-`."}),component:M({typeComment:`Vue component to render the specification extension`}),renderer:l(M({typeComment:`Custom renderer to render the specification extension`}))});var un=z({component:M({typeComment:`Vue component to render in the view`}),renderer:l(M({typeComment:`Custom renderer to render the view component (e.g., ReactRenderer)`})),props:l(j(S(),F()),{typeComment:`Additional props to pass to the component`}),sidebar:l(z({show:P(),label:S()}),{typeComment:`Sidebar configuration. Set show: true to display in sidebar.`})});z({"content.start":l(o(un),{typeComment:`Components to render before the Introduction/Info section`}),"content.end":l(o(un),{typeComment:`Components to render at specific views in the API Reference`})}),z({onInit:l(D()),onConfigChange:l(D()),onDestroy:l(D())});var dn=D(),fn=z({dashboardUrl:S({default:`https://dashboard.scalar.com`}),registryUrl:S({default:`https://registry.scalar.com`}),proxyUrl:S({default:`https://proxy.scalar.com`}),apiBaseUrl:S({default:`https://api.scalar.com`})},{typeComment:`External service URLs used by Scalar packages`}),pn=z({title:l(S(),{typeComment:`The title of the OpenAPI document.`}),slug:l(S(),{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:l(F(),{typeComment:`Prefill authentication`}),baseServerURL:l(S(),{typeComment:`Base URL for the API server`}),hideClientButton:P({default:!1,typeComment:`Whether to hide the client button`}),proxyUrl:l(S(),{typeComment:`URL to a request proxy for the API client`}),oauth2RedirectUri:l(S(),{typeComment:`Default OAuth 2.0 redirect URI used to prefill auth flows in the API client.`}),searchHotKey:l(A([C(`a`),C(`b`),C(`c`),C(`d`),C(`e`),C(`f`),C(`g`),C(`h`),C(`i`),C(`j`),C(`k`),C(`l`),C(`m`),C(`n`),C(`o`),C(`p`),C(`q`),C(`r`),C(`s`),C(`t`),C(`u`),C(`v`),C(`w`),C(`x`),C(`y`),C(`z`)]),{typeComment:`Key used with CTRL/CMD to open the search modal (defaults to 'k' e.g. CMD+k)`}),servers:l(o(F()),{typeComment:`List of OpenAPI server objects`}),showSidebar:P({default:!0,typeComment:`Whether to show the sidebar`}),showDeveloperTools:A([C(`localhost`),C(`always`),C(`never`)],{typeComment:`Whether and when to show the developer tools.`}),showToolbar:A([C(`localhost`),C(`always`),C(`never`)],{typeComment:`@deprecated Use showDeveloperTools instead`}),operationTitleSource:A([C(`summary`),C(`path`)],{typeComment:`Whether to use the operation summary or the operation path for the sidebar and search`}),theme:A([C(`default`),C(`alternate`),C(`moon`),C(`purple`),C(`solarized`),C(`bluePlanet`),C(`deepSpace`),C(`saturn`),C(`kepler`),C(`elysiajs`),C(`fastify`),C(`mars`),C(`laserwave`),C(`none`)],{typeComment:`A string to use one of the color presets`}),_integration:l(A([C(`adonisjs`),C(`astro`),C(`docusaurus`),C(`dotnet`),C(`elysiajs`),C(`express`),C(`fastapi`),C(`fastify`),C(`go`),C(`hono`),C(`html`),C(`laravel`),C(`litestar`),C(`nestjs`),C(`nextjs`),C(`nitro`),C(`nuxt`),C(`platformatic`),C(`react`),C(`rust`),C(`svelte`),C(`vue`),fe()]),{typeComment:`Integration type identifier`}),onRequestSent:l(D(),{typeComment:`onRequestSent is fired when a request is sent`}),persistAuth:P({default:!1,typeComment:`Whether to persist auth to local storage`}),telemetry:P({default:!0,typeComment:`Enables / disables telemetry`}),externalUrls:fn}),mn=A([S(),fe(),j(S(),F()),D()]),hn=O([pn,z({default:P({default:!1}),url:l(S(),{typeComment:`URL to an OpenAPI/Swagger document`}),content:l(mn,{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:l(S(),{typeComment:"The title of the OpenAPI document. @deprecated Please move `title` to the top level and remove the `spec` prefix."}),slug:l(S(),{typeComment:"The slug of the OpenAPI document used in the URL. @deprecated Please move `slug` to the top level and remove the `spec` prefix."}),spec:l(z({url:l(S()),content:l(mn)}),{typeComment:"@deprecated Use `url` and `content` on the top level instead."}),agent:l(z({key:l(S()),disabled:l(P()),hideAddApi:l(P(),{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`})}),z({layout:A([C(`modern`),C(`classic`)],{typeComment:`The layout to use for the references`}),proxy:l(S(),{typeComment:`@deprecated Use proxyUrl instead`}),fetch:l(D(),{typeComment:"@deprecated Use `customFetch` instead."}),customFetch:l(D(),{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:l(o(dn),{typeComment:`Plugins for the API reference`}),isEditable:P({default:!1,typeComment:`Allows the user to inject an editor for the spec`}),hideModels:P({default:!1,typeComment:`Whether to show models in the sidebar, search, and content.`}),modelsSectionLabel:l(A([C(`Models`),C(`Schemas`),S()]),{typeComment:"Label for the components.schemas section in the sidebar, content, and search. Use `Schemas` for OpenAPI terminology."}),documentDownloadType:A([C(`both`),C(`yaml`),C(`json`),C(`direct`),C(`none`)],{typeComment:"Sets the file type of the document to download, set to `none` to hide the download button"}),hideDownloadButton:l(P(),{typeComment:"@deprecated Use `documentDownloadType: 'none'` instead"}),hideTestRequestButton:P({default:!1,typeComment:`Whether to show the "Test Request" button`}),hideSearch:P({default:!1,typeComment:`Whether to show the sidebar search bar`}),showOperationId:P({default:!1,typeComment:`Whether to show the operationId`}),darkMode:l(P(),{typeComment:`Whether dark mode is on or off initially (light mode)`}),forceDarkModeState:l(A([C(`dark`),C(`light`)]),{typeComment:`forceDarkModeState makes it always this state no matter what`}),hideDarkModeToggle:P({default:!1,typeComment:`Whether to show the dark mode toggle`}),metaData:l(F(),{typeComment:`If used, passed data will be added to the HTML header. @see https://unhead.unjs.io/usage/composables/use-seo-meta`}),favicon:l(S(),{typeComment:`Path to a favicon image`}),hiddenClients:l(A([j(S(),A([P(),o(S())])),o(S()),C(!0)]),{typeComment:"List of httpsnippet clients to hide from the clients menu. By default hides Unirest, pass `[]` to show all clients"}),defaultHttpClient:l(z({targetKey:S(),clientKey:S()}),{typeComment:`Determine the HTTP client that is selected by default`}),customCss:l(S(),{typeComment:`Custom CSS to be added to the page`}),onServerChange:l(D(),{typeComment:`onServerChange is fired on selected server change`}),onDocumentSelect:l(D(),{typeComment:`onDocumentSelect is fired when the config is selected`}),onLoaded:l(D(),{typeComment:`Callback fired when the reference is fully loaded`}),onBeforeRequest:l(D(),{typeComment:`Fired before the outbound request is built; callback receives a mutable request builder. Experimental API.`}),onShowMore:l(D(),{typeComment:`onShowMore is fired when the user clicks the "Show more" button on the references`}),onSidebarClick:l(D(),{typeComment:`onSidebarClick is fired when the user clicks on a sidebar item`}),pathRouting:l(z({basePath:S()}),{typeComment:`Route using paths instead of hashes, your server MUST support this. @experimental`}),mcp:l(z({name:l(S(),{typeComment:`Display name for the MCP server`}),url:l(S(),{typeComment:`URL of the MCP server`}),disabled:l(P(),{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:l(D(),{typeComment:`Customize the heading portion of the hash`}),generateModelSlug:l(D(),{typeComment:`Customize the model portion of the hash`}),generateTagSlug:l(D(),{typeComment:`Customize the tag portion of the hash`}),generateOperationSlug:l(D(),{typeComment:`Customize the operation portion of the hash`}),generateWebhookSlug:l(D(),{typeComment:`Customize the webhook portion of the hash`}),setPageTitle:l(D(),{typeComment:`Customize the browser tab title for the section currently in view`}),redirect:l(D(),{typeComment:`To handle redirects, pass a function that receives the current path/hash and passes that to history.replaceState`}),withDefaultFonts:P({default:!0,typeComment:`Whether to include default fonts`}),defaultOpenFirstTag:P({default:!0,typeComment:`Whether to expand the first tag in the sidebar when no specific URL target is present`}),defaultOpenAllTags:P({default:!1,typeComment:`Whether to expand all tags by default. Warning: this can cause performance issues on big documents`}),expandAllModelSections:P({default:!1,typeComment:`Whether to expand all models by default. Warning: this can cause performance issues on big documents`}),expandAllResponses:P({default:!1,typeComment:`Whether to expand all responses by default. Warning: this can cause performance issues on big documents`}),expandAllSchemaProperties:P({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:l(A([C(`alpha`),D()]),{typeComment:`Function to sort tags`}),operationsSorter:l(A([C(`alpha`),C(`method`),D()]),{typeComment:`Function to sort operations`}),orderSchemaPropertiesBy:A([C(`alpha`),C(`preserve`)],{typeComment:`Order the schema properties by`}),orderRequiredPropertiesFirst:P({default:!0,typeComment:`Sort the schema properties by required ones first`})})]),gn=`https://api.scalar.com/request-proxy`,_n=`https://proxy.scalar.com`,vn=e=>{let t=ln(hn,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===gn&&(console.warn(`[DEPRECATED] Warning: configuration.proxyUrl points to our old proxy (${gn}).`),console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${_n}) instead.`),console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${_n}). Read more: https://github.com/scalar/scalar`),t.proxyUrl=_n),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??=b,t},yn={key:0},bn={key:1},xn={key:2},Sn={key:3},Cn={key:4},wn={key:5},Tn=Vt({name:`ScalarIconArrowUp`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=At(e);return(e,r)=>(B(),H(`svg`,Nt({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},V(t)),[Rt(e.$slots,`default`),V(n)===`bold`?(B(),H(`g`,yn,[...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`,bn,[...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`,xn,[...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`,Sn,[...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`,Cn,[...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`,wn,[...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)]])):Jt(``,!0)],16))}}),En={key:0},Dn={key:1},On={key:2},kn={key:3},An={key:4},jn={key:5},Mn=Vt({name:`ScalarIconLockSimple`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=At(e);return(e,r)=>(B(),H(`svg`,Nt({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},V(t)),[Rt(e.$slots,`default`),V(n)===`bold`?(B(),H(`g`,En,[...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`,Dn,[...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`,On,[...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`,kn,[...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`,An,[...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`,jn,[...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)]])):Jt(``,!0)],16))}});function Nn(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[w]}'`;default:return`Unknown error type`}}var Pn=Nn;function Fn(){return Pn}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 In=class extends he{constructor(e){super(`Unknown type`),this.schema=e}};function Ln(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function K(e){return e!==void 0}var Rn=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:Fn()({errorType:e,path:n,schema:t,value:r,errors:i}),errors:i}}function*zn(e,t,n,r){}function*Bn(e,t,n,r){}function*Vn(e,t,n,r){if(!_(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=De(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:m(),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)),Ne(e.minContains)&&a<e.minContains&&(yield q(G.ArrayMinContains,e,n,r)),Ne(e.maxContains)&&a>e.maxContains&&(yield q(G.ArrayMaxContains,e,n,r))}function*Hn(e,t,n,r){ae(r)||(yield q(G.AsyncIterator,e,n,r))}function*Un(e,t,n,r){if(!de(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*Wn(e,t,n,r){we(r)||(yield q(G.Boolean,e,n,r))}function*Gn(e,t,n,r){yield*J(e.returns,t,n,r.prototype)}function*Kn(e,t,n,r){if(!jt(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*qn(e,t,n,r){c(r)||(yield q(G.Function,e,n,r))}function*Jn(e,t,n,r){let i=globalThis.Object.values(e.$defs),a=e.$defs[e.$ref];yield*J(a,[...t,...i],n,r)}function*Yn(e,t,n,r){if(!je(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*Xn(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(g(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(g(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*Zn(e,t,n,r){x(r)||(yield q(G.Iterator,e,n,r))}function*Qn(e,t,n,r){r!==e.const&&(yield q(G.Literal,e,n,r))}function*$n(e,t,n,r){yield q(G.Never,e,n,r)}function*er(e,t,n,r){J(e.not,t,n,r).next().done===!0&&(yield q(G.Not,e,n,r))}function*tr(e,t,n,r){ke(r)||(yield q(G.Null,e,n,r))}function*nr(e,t,n,r){if(!be.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*rr(e,t,n,r){if(!be.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}/${Ln(t)}`,void 0));if(e.additionalProperties===!1)for(let t of o)a.includes(t)||(yield q(G.ObjectAdditionalProperties,e,`${n}/${Ln(t)}`,r[t]));if(typeof e.additionalProperties==`object`)for(let i of o)a.includes(i)||(yield*J(e.additionalProperties,t,`${n}/${Ln(i)}`,r[i]));for(let i of a){let a=e.properties[i];e.required&&e.required.includes(i)?(yield*J(a,t,`${n}/${Ln(i)}`,r[i]),Oe(e)&&!(i in r)&&(yield q(G.ObjectRequiredProperty,a,`${n}/${Ln(i)}`,void 0))):be.IsExactOptionalProperty(r,i)&&(yield*J(a,t,`${n}/${Ln(i)}`,r[i]))}}function*ir(e,t,n,r){te(r)||(yield q(G.Promise,e,n,r))}function*ar(e,t,n,r){if(!be.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}/${Ln(e)}`,i));if(typeof e.additionalProperties==`object`)for(let[i,a]of Object.entries(r))o.test(i)||(yield*J(e.additionalProperties,t,`${n}/${Ln(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}/${Ln(t)}`,i)}}function*or(e,t,n,r){yield*J(d(e,t),t,n,r)}function*sr(e,t,n,r){if(!le(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*cr(e,t,n,r){if(!le(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)),le(e.pattern)&&(new RegExp(e.pattern).test(r)||(yield q(G.StringPattern,e,n,r))),le(e.format)&&(tt(e.format)?a(e.format)(r)||(yield q(G.StringFormat,e,n,r)):yield q(G.StringFormatUnknown,e,n,r))}function*lr(e,t,n,r){gt(r)||(yield q(G.Symbol,e,n,r))}function*ur(e,t,n,r){if(!le(r))return yield q(G.String,e,n,r);new RegExp(e.pattern).test(r)||(yield q(G.StringPattern,e,n,r))}function*dr(e,t,n,r){yield*J(d(e,t),t,n,r)}function*fr(e,t,n,r){if(!_(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*pr(e,t,n,r){Le(r)||(yield q(G.Undefined,e,n,r))}function*mr(e,t,n,r){if(Ot(e,t,r))return;let i=e.anyOf.map(e=>new Rn(J(e,t,n,r)));yield q(G.Union,e,n,r,i)}function*hr(e,t,n,r){if(!se(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*gr(e,t,n,r){}function*_r(e,t,n,r){be.IsVoidLike(r)||(yield q(G.Void,e,n,r))}function*vr(e,t,n,r){ve(e[w])(e,r)||(yield q(G.Kind,e,n,r))}function*J(e,t,n,r){let i=K(e.$id)?[...t,e]:t,a=e;switch(a[w]){case`Any`:return yield*zn(a,i,n,r);case`Argument`:return yield*Bn(a,i,n,r);case`Array`:return yield*Vn(a,i,n,r);case`AsyncIterator`:return yield*Hn(a,i,n,r);case`BigInt`:return yield*Un(a,i,n,r);case`Boolean`:return yield*Wn(a,i,n,r);case`Constructor`:return yield*Gn(a,i,n,r);case`Date`:return yield*Kn(a,i,n,r);case`Function`:return yield*qn(a,i,n,r);case`Import`:return yield*Jn(a,i,n,r);case`Integer`:return yield*Yn(a,i,n,r);case`Intersect`:return yield*Xn(a,i,n,r);case`Iterator`:return yield*Zn(a,i,n,r);case`Literal`:return yield*Qn(a,i,n,r);case`Never`:return yield*$n(a,i,n,r);case`Not`:return yield*er(a,i,n,r);case`Null`:return yield*tr(a,i,n,r);case`Number`:return yield*nr(a,i,n,r);case`Object`:return yield*rr(a,i,n,r);case`Promise`:return yield*ir(a,i,n,r);case`Record`:return yield*ar(a,i,n,r);case`Ref`:return yield*or(a,i,n,r);case`RegExp`:return yield*sr(a,i,n,r);case`String`:return yield*cr(a,i,n,r);case`Symbol`:return yield*lr(a,i,n,r);case`TemplateLiteral`:return yield*ur(a,i,n,r);case`This`:return yield*dr(a,i,n,r);case`Tuple`:return yield*fr(a,i,n,r);case`Undefined`:return yield*pr(a,i,n,r);case`Union`:return yield*mr(a,i,n,r);case`Uint8Array`:return yield*hr(a,i,n,r);case`Unknown`:return yield*gr(a,i,n,r);case`Void`:return yield*_r(a,i,n,r);default:if(!it(a[w]))throw new In(e);return yield*vr(a,i,n,r)}}function yr(...e){return new Rn(e.length===3?J(e[0],e[1],``,e[2]):J(e[0],[],``,e[1]))}var br=Symbol(),xr=()=>Ft(br,!1),Sr=()=>{Ht(br,!0)},Cr=Vt({inheritAttrs:!1,__name:`ScalarFormInput`,props:{is:{default:`button`}},setup(e){let{cx:t}=mt(),n=xr(),r=st({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(),Kt(Lt(e.is),Nt({type:e.is===`button`?`button`:void 0},V(t)(V(r)({button:e.is===`button`,grouped:V(n)}))),{default:Wt(()=>[Rt(i.$slots,`default`)]),_:3},16,[`type`]))}}),wr=Dt(Vt({inheritAttrs:!1,__name:`ScalarColorModeToggleIcon`,props:{is:{default:`button`},mode:{default:`light`}},setup(e){let{cx:t}=mt(),n=Zt(()=>e.mode===`dark`?`Set light mode`:`Set dark mode`);return(r,i)=>(B(),Kt(Lt(e.is),Nt({"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:Wt(()=>[...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`]]),Tr=[`aria-pressed`],Er=Vt({inheritAttrs:!1,__name:`ScalarColorModeToggleButton`,props:{modelValue:{type:Boolean},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let{cx:t}=mt(),n=zt(e,`modelValue`);return(e,r)=>(B(),H(`button`,Nt({"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:It([`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}])},[Gt(wr,{is:`div`,mode:n.value?`dark`:`light`},null,8,[`mode`])],2)],16,Tr))}}),Dr=Yt(`dark`),Or=Yt(`light`),kr=A([C(`system`),C(`dark`),C(`light`)]);function Ar(e={}){let{initialColorMode:t=`system`,overrideColorMode:n}=e;function r(){Dr.value=o.value===`dark`?`light`:`dark`,!(typeof window>`u`)&&window?.localStorage?.setItem(`colorMode`,Dr.value)}function i(e){Dr.value=e,!(typeof window>`u`)&&window?.localStorage?.setItem(`colorMode`,Dr.value)}function a(){return typeof window>`u`?`light`:typeof window?.matchMedia==`function`?window?.matchMedia(`(prefers-color-scheme: dark)`)?.matches?`dark`:`light`:`dark`}let o=Zt({get:()=>Dr.value===`system`?Or.value:Dr.value,set:i}),s=Zt({get:()=>o.value===`dark`,set:e=>i(e?`dark`:`light`)});function c(){typeof document>`u`||typeof window>`u`||((n??(Dr.value===`system`?Or.value:Dr.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=nn(kr,l)?l:null;Dr.value=n??u??t,en([Dr,Or],c,{immediate:!0});let d=()=>{Or.value=a()},f=Yt(null);return Bt(()=>{Or.value=a(),typeof window<`u`&&typeof window?.matchMedia==`function`&&(f.value=window.matchMedia(`(prefers-color-scheme: dark)`),f.value?.addEventListener(`change`,d))}),Pt(()=>{f.value?.removeEventListener(`change`,d)}),{colorMode:Zt({get:()=>Dr.value,set:i}),darkLightMode:o,isDarkMode:s,toggleColorMode:r,setColorMode:i,getSystemModePreference:a}}var jr=Vt({__name:`ScalarColorModeToggle`,props:{variant:{default:`switch`}},setup(e){let{isDarkMode:t,toggleColorMode:n,darkLightMode:r}=Ar(),i=Zt(()=>t.value?`Set light mode`:`Set dark mode`);return(a,o)=>e.variant===`switch`?(B(),Kt(Er,{key:0,modelValue:V(t),"onUpdate:modelValue":o[0]||=e=>qt(t)?t.value=e:null,"aria-label":i.value},null,8,[`modelValue`,`aria-label`])):(B(),Kt(wr,{key:1,"aria-label":i.value,mode:V(r),onClick:V(n)},null,8,[`aria-label`,`mode`,`onClick`]))}}),Mr=(e,t)=>{let n=performance.now(),r=t(),i=performance.now(),a=Math.round(i-n);return console.info(`${e}: ${a} ms`),r},Nr=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 Pr(e){try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`}catch{return!1}}function Fr(e){if(!/^\s*(\{)/.test(e.slice(0,500)))return!1;try{return L(JSON.parse(e))}catch{return!1}}function Ir(e){return/^\s*(?:-\s*)?[\w\-]+\s*:\s*.+\n.*/.test(e)}function Lr(e){return!Pr(e)&&!Ir(e)&&!Fr(e)}var Rr=()=>{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:()=>Re});var c=e=>Array.isArray(e),l=e=>typeof e==`function`,u=e=>e.length===0,d=e=>typeof e==`number`,f=e=>typeof e==`object`&&!!e,p=e=>e instanceof RegExp,m=e=>typeof e==`string`,h=e=>e===void 0,g=e=>{let t=new Map;return n=>{let r=t.get(n);if(r)return r;let i=e(n);return t.set(n,i),i}},_=(e,t,n={})=>{let r={cache:{},input:e,index:0,indexMax:0,options:n,output:[]};if(se(t)(r)&&r.index===e.length)return r.output;throw Error(`Failed to parse at index ${r.indexMax}`)},v=(e,t)=>c(e)?y(e,t):m(e)?te(e,t):ee(e,t),y=(e,t)=>{let n={};for(let t of e){if(t.length!==1)throw Error(`Invalid character: "${t}"`);let e=t.charCodeAt(0);n[e]=!0}return e=>{let r=e.index,i=e.input;for(;e.index<i.length&&i.charCodeAt(e.index)in n;)e.index+=1;let a=e.index;if(a>r){if(!h(t)&&!e.options.silent){let n=e.input.slice(r,a),o=l(t)?t(n,i,String(r)):t;h(o)||e.output.push(o)}e.indexMax=Math.max(e.indexMax,e.index)}return!0}},ee=(e,t)=>{let n=e.source,r=e.flags.replace(/y|$/,`y`),i=new RegExp(n,r);return C(e=>{i.lastIndex=e.index;let n=i.exec(e.input);if(n){if(!h(t)&&!e.options.silent){let r=l(t)?t(...n,e.input,String(e.index)):t;h(r)||e.output.push(r)}return e.index+=n[0].length,e.indexMax=Math.max(e.indexMax,e.index),!0}else return!1})},te=(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},ne=(e,t,n,r)=>{let i=se(e);return C(ae(ie(e=>{let r=0;for(;r<n;){let t=e.index;if(!i(e)||(r+=1,e.index===t))break}return r>=t})))},b=(e,t)=>ne(e,0,1),re=(e,t)=>ne(e,0,1/0),x=(e,t)=>{let n=e.map(se);return C(ae(ie(e=>{for(let t=0,r=n.length;t<r;t++)if(!n[t](e))return!1;return!0})))},S=(e,t)=>{let n=e.map(se);return C(ae(e=>{for(let t=0,r=n.length;t<r;t++)if(n[t](e))return!0;return!1}))},ie=(e,t=!1)=>{let n=se(e);return e=>{let r=e.index,i=e.output.length,a=n(e);return(!a||t)&&(e.index=r,e.output.length!==i&&(e.output.length=i)),a}},ae=(e,t)=>se(e),C=(()=>{let e=0;return t=>{let n=se(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}}}})(),oe=e=>{let t;return n=>(t||=se(e()),t(n))},se=g(e=>{if(l(e))return u(e)?oe(e):e;if(m(e)||p(e))return v(e);if(c(e))return x(e);if(f(e))return S(Object.values(e));throw Error(`Invalid rule`)}),ce=`abcdefghijklmnopqrstuvwxyz`,le=e=>{let t=``;for(;e>0;)t=ce[(e-1)%26]+t,e=Math.floor((e-1)/26);return t},ue=e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t=t*26+ce.indexOf(e[n])+1;return t},de=(e,t)=>{if(t<e)return de(t,e);let n=[];for(;e<=t;)n.push(e++);return n},fe=(e,t,n)=>de(e,t).map(e=>String(e).padStart(n,`0`)),pe=(e,t)=>de(ue(e),ue(t)).map(le),w=e=>e,T=e=>E(t=>_(t,e,{memoization:!1}).join(``)),E=e=>{let t={};return n=>t[n]??(t[n]=e(n))},me=v(/^\*\*\/\*$/,`.*`),he=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/,(e,t,n)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}`),D=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/,(e,t,n,r)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}(?:${r.replaceAll(`,`,`|`).replaceAll(`.`,`\\.`)})`),ge=v(/\\./,w),_e=v(/[$.*+?^(){}[\]\|]/,e=>`\\${e}`),ve=v(/./,w),ye=S([v(/^(?:!!)*!(.*)$/,(e,t)=>`(?!^${Pe(t)}$).*?`),v(/^(!!)+/,``)]),be=S([v(/\/(\*\*\/)+/,`(?:/.+/|/)`),v(/^(\*\*\/)+/,`(?:^|.*/)`),v(/\/(\*\*)$/,`(?:/.*|$)`),v(/\*\*/,`.*`)]),O=S([v(/\*\/(?!\*\*\/)/,`[^/]*/`),v(/\*/,`[^/]*`)]),xe=v(`?`,`[^/]`),Se=v(`[`,w),Ce=v(`]`,w),we=v(/[!^]/,`^/`),Te=v(/[a-z]-[a-z]|[0-9]-[0-9]/i,w),k=S([ge,v(/[$.*+?^(){}[\|]/,e=>`\\${e}`),Te,v(/[^\]]/,w)]),Ee=x([Se,b(we),re(k),Ce]),De=v(`{`,`(?:`),Oe=v(`}`,`)`),ke=x([De,S([v(/(\d+)\.\.(\d+)/,(e,t,n)=>fe(+t,+n,Math.min(t.length,n.length)).join(`|`)),v(/([a-z]+)\.\.([a-z]+)/,(e,t,n)=>pe(t,n).join(`|`)),v(/([A-Z]+)\.\.([A-Z]+)/,(e,t,n)=>pe(t.toLowerCase(),n.toLowerCase()).join(`|`).toUpperCase())]),Oe]),A=v(`{`,`(?:`),Ae=v(`}`,`)`),je=v(`,`,`|`),j=v(/[$.*+?^(){[\]\|]/,e=>`\\${e}`),Me=v(/[^}]/,w),Ne=x([A,re(S([be,O,xe,Ee,ke,oe(()=>Ne),ge,j,je,Me])),Ae]),Pe=T(re(S([me,he,D,ye,be,O,xe,Ee,ke,Ne,ge,_e,ve]))),M=v(/\\./,w),Fe=v(/./,w),Ie=T(re(S([M,v(/\*\*\*+/,`*`),v(/([^/{[(!])\*\*/,(e,t)=>`${t}*`),v(/(^|.)\*\*(?=[^*/)\]}])/,(e,t)=>`${t}*`),Fe]))),Le=(e,t)=>{let n=Array.isArray(e)?e:[e];if(!n.length)return!1;let r=n.map(Le.compile),i=n.every(e=>/(\/(?:\*\*)?|\[\/\])$/.test(e)),a=t.replace(/[\\\/]+/g,`/`).replace(/\/$/,i?`/`:``);return r.some(e=>e.test(a))};Le.compile=e=>RegExp(`^${Pe(Ie(e))}$`,`s`);var Re=Le;return o(s)})();return e.default||e},zr,Br=(e,t)=>(zr||(zr=Rr(),Rr=null),zr(e,t)),Vr=/^[A-Za-z]:\//;function Hr(e=``){return e&&e.replace(/\\/g,`/`).replace(Vr,e=>e.toUpperCase())}var Ur=/^[/\\]{2}/,Wr=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Gr=/^[A-Za-z]:$/,Kr=/^\/([A-Za-z]:)?$/,qr=/.(\.[^./]+|\.)$/,Jr=/^[/\\]|^[a-zA-Z]:[/\\]/,Yr=function(e){if(e.length===0)return`.`;e=Hr(e);let t=e.match(Ur),n=ei(e),r=e[e.length-1]===`/`;return e=$r(e,!n),e.length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),Gr.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!ei(e)?`/${e}`:e)},Xr=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 Yr(t)};function Zr(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var Qr=function(...e){e=e.map(e=>Hr(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:Zr();!i||i.length===0||(t=`${i}/${t}`,n=ei(i))}return t=$r(t,!n),n&&!ei(t)?`/${t}`:t.length>0?t:`.`};function $r(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 ei=function(e){return Wr.test(e)},ti=function(e){return Hr(e)},ni=function(e){if(e===`..`)return``;let t=qr.exec(Hr(e));return t&&t[1]||``},ri=function(e,t){let n=Qr(e).replace(Kr,`$1`).split(`/`),r=Qr(t).replace(Kr,`$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(`/`)},ii=function(e){let t=Hr(e).replace(/\/$/,``).split(`/`).slice(0,-1);return t.length===1&&Gr.test(t[0])&&(t[0]+=`/`),t.join(`/`)||(ei(e)?`/`:`.`)},ai=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 Hr(e.root?Qr(...n):n.join(`/`))},oi=function(e,t){let n=Hr(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},si={__proto__:null,basename:oi,dirname:ii,extname:ni,format:ai,isAbsolute:ei,join:Xr,matchesGlob:(e,t)=>Br(t,Yr(e)),normalize:Yr,normalizeString:$r,parse:function(e){let t=Jr.exec(e)?.[0]?.replace(/\\/g,`/`)||``,n=oi(e),r=ni(n);return{root:t,dir:ii(e),base:n,ext:r,name:n.slice(0,n.length-r.length)}},relative:ri,resolve:Qr,sep:`/`,toNamespacedPath:ti},ci=globalThis.process?.platform===`win32`?`;`:`:`,li={posix:void 0,win32:void 0},ui=(e=ci)=>new Proxy(si,{get(t,n){return n===`delimiter`?e:n===`posix`?Y:n===`win32`?di:li[n]||si[n]}}),Y=ui(`:`),di=ui(`;`),fi=(e,t)=>{if(Pr(t))return t;if(Pr(e)){let n=new URL(e);return n.pathname=Y.posix.resolve(`/`,Y.dirname(n.pathname),t),n.toString()}return Y.resolve(Y.dirname(e),t)};function pi(e){return decodeURI(e.replace(/~1/g,`/`).replace(/~0/g,`~`))}function mi(e){return e.split(`/`).slice(1).map(pi)}function hi(e,t,n){if(t===``)throw Error(`Cannot set value at root ('') pointer`);let r=mi(t);r.forEach(e=>ze(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 gi=(e,t)=>{if(Pr(e)&&Pr(t)){let n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;let i=Y.dirname(Y.posix.resolve(`/`,r.pathname)),a=Y.posix.resolve(`/`,n.pathname);return Y.posix.relative(i,a)}if(Pr(t)){let n=new URL(t),r=Y.dirname(Y.posix.resolve(`/`,n.pathname));return n.pathname=Y.posix.relative(r,Y.posix.resolve(`/`,e)),n.toString()}if(Pr(e))return e;let n=Y.dirname(Y.resolve(t)),r=Y.resolve(e);return Y.relative(n,r)};function _i(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function vi(e){let t=n(e).substring(0,7);return t.match(/^\d+$/)?`a`+t.substring(1):t}async function yi(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?yi(e,t,n,a,i+1):(n[a]=t,a)}var bi=(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 yi(e,r,t),o=a.match(/^\d+$/)?`a${a}`:a;return n[r]=o,o}}},xi=e=>L(e)&&`$ref`in e&&typeof e.$ref==`string`;function Si(e){return e.startsWith(`#`)}function Ci(e,t){let n=t.find(t=>t.validate(e));return n?n.exec(e):Promise.resolve({ok:!1})}function wi(e,t){if(!Si(e))throw`Please provide an internal ref`;return`#/${t.map(_i).join(`/`)}${e.substring(1)}`}function Ti(e,t){if(Array.isArray(e)){e.forEach(e=>Ti(e,t));return}if(L(e)&&(Object.values(e).forEach(e=>Ti(e,t)),typeof e==`object`&&`$ref`in e&&typeof e.$ref==`string`)){let n=e.$ref;if(!Si(n))return;e.$ref=wi(n,t)}}var Ei=(e,t,n,r,i,a=!1,o=new Set)=>{let s=lt(t,mi(n)).value;if(o.has(s))return;o.add(s),hi(e,n,s);let c=n=>{if(!(!n||typeof n!=`object`)){`$ref`in n&&typeof n.$ref==`string`&&(n.$ref.startsWith(`#/${r}/${_i(i)}`)||a)&&Ei(e,t,n.$ref.substring(1),r,i,a,o);for(let e of Object.values(n))c(e)}};c(s)},Di={externalDocuments:`x-ext`,externalDocumentsMappings:`x-ext-urls`};async function Oi(e,t){t.externalDocumentsKey=t.externalDocumentsKey??Di.externalDocuments,t.externalDocumentsMappingsKey=t.externalDocumentsMappingsKey??Di.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 Ci(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=$e(o),c=t.root!==void 0&&t.root!==a||t.depth!==void 0,l=t.visitedNodes??new Set,u=vt(o)||(t.origin?t.origin:typeof e==`string`&&(Pr(e)||Lr(e))?e:`/`);o[t.externalDocumentsMappingsKey]===void 0&&(o[t.externalDocumentsMappingsKey]={});let{generate:d}=bi(t.compress??vi,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||!L(e)&&!Array.isArray(e)||l.has(e))return;l.add(e);let _={path:h,resolutionCache:n,parentNode:g,rootNode:o,loaders:r};await f(`onBeforeNodeProcess`,e,_);let v=vt(e);if(xi(e)){let l=e.$ref,h=`$global`in e&&typeof e.$global==`boolean`&&e.$global,g=He(l,v??i,s);if(g!==void 0){if(c){let e=mi(`/${g}`),t=e.length>0?lt(o,e.slice(0,-1)).value:void 0,n=lt(o,e);await p(n.value,n.context,a,m+1,e,t)}await f(`onAfterNodeProcess`,e,_);return}let[y,ee=``]=l.split(`#`,2),te=fi(v??i,y),ne=gi(te,u),b=await d(ne),re=n.has(ne);re||n.set(ne,Ci(te,r)),await f(`onResolveStart`,e);let x=await n.get(ne);if(x.ok){re||(h||Ti(x.data,[Di.externalDocuments,b]),await p(x.data,h?i:te,h,m+1,[t.externalDocumentsKey,b,o[t.externalDocumentsMappingsKey]]),hi(o,`/${t.externalDocumentsMappingsKey}/${_i(b)}`,ne)),t.treeShake===!0?Ei(o,{[t.externalDocumentsKey]:{[b]:x.data}},wi(`#${ee}`,[t.externalDocumentsKey,b]).substring(1),t.externalDocumentsKey,b):re||hi(o,`/${t.externalDocumentsKey}/${b}`,x.data),e.$ref=wi(`#${ee}`,[t.externalDocumentsKey,b]),await f(`onResolveSuccess`,e),await f(`onAfterNodeProcess`,e,_);return}return await f(`onResolveError`,e),await f(`onAfterNodeProcess`,e,_),console.warn(`Failed to resolve external reference "${te}". The reference may be invalid, inaccessible, or missing a loader for this type of reference.`)}for(let n in e)n===t.externalDocumentsKey||n===t.externalDocumentsMappingsKey||await p(e[n],v??i,a,m+1,[...h,n],e);await f(`onAfterNodeProcess`,e,_)};return await p(a),!t.urlMap&&!c&&delete o[t.externalDocumentsMappingsKey],a}var ki=class{data;next;constructor(e){this.data=e,this.next=null}},Ai=class{front;rear;size;constructor(){this.front=null,this.rear=null,this.size=0}enqueue(e){let t=new ki(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 ji(e){let t=0,n=new Ai,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 Mi=e=>e.startsWith(``)?e.slice(1):e;function Ni(t){if(t!==null){if(typeof t==`string`){let n=Mi(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 Pi=e=>{try{return new URL(e).host}catch{return null}};async function Fi(e,t,n){try{let r=Pi(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:Ni(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 Ii(e){let t=e?.limit?ji(e.limit):e=>e();return{type:`loader`,validate:Pr,exec:n=>Fi(n,t,e)}}var Li=class extends Error{constructor(e){super(e),this.name=`InvalidChangesDetectedError`}},Ri=(e,t)=>{let n=(e,t,r,i=0)=>{if(t[i]===void 0)throw new Li(`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 Li(`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},zi=(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},Bi=class{value;children;constructor(e,t){this.value=e,this.children=t}},Vi=class{root;constructor(){this.root=new Bi(null,{})}addPath(e,t){let n=this.root;for(let t of e)n.children[t]||(n.children[t]=new Bi(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)}},Hi=(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&&Hi(e[r],t[r]))return!0;return!1}return e!==t},Ui=(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]=Ui(r,i))}return e},Wi=(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},Gi=(e,t)=>{let n=new Vi;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(Wi(s.path,t.changes.path)&&t.changes.type!==`delete`&&!Hi(s.changes,t.changes.changes)){r.add(t.index),typeof s.changes==`object`&&Ui(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 Ki(e){if(!(typeof e!=`object`||!e)){if(Array.isArray(e)){for(let t of e)Ki(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)&&Ki(e[t])}}function qi(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 Ji(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 qi(t),Ki(t),t}function Yi(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?Yi(n,t,[...e,r.toString()]):n);continue}if(typeof a==`object`&&a){r[i]=Yi(a,t,e);continue}r[i]=a}return t(r,n)}var Xi=`application/json`;function Zi(e){let t=e[`x-example`],n=e[`x-examples`];return delete e[`x-example`],delete e[`x-examples`],{xExample:t,xExamples:n}}function Qi(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).length>0}function $i(e){return Qi(e)&&Object.values(e).every(e=>typeof e==`object`&&!!e&&!Array.isArray(e))}function ea(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 ta(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&&ea(t.schema)&&delete e[n]}}var na=new Set([`summary`,`description`,`value`,`externalValue`]);function ra(e){if(typeof e!=`object`||!e)return!1;let t=e,n=`value`in t||`externalValue`in t,r=Object.keys(t).every(e=>na.has(e));return n&&r}function ia(e){return ra(e)?e:{value:e}}var aa=/^[a-zA-Z0-9*+.-]+\/[a-zA-Z0-9*+.+-]+$/;function oa(e){return aa.test(e)}function sa(e){return Object.entries(e).reduce((e,[t,n])=>(e[t]={value:n},e),{})}var ca=e=>{switch(e){case`application`:return`clientCredentials`;case`accessCode`:return`authorizationCode`;case`implicit`:return`implicit`;case`password`:return`password`;default:return e}};function la(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=Yi(t,e=>(typeof e.$ref==`string`&&e.$ref.startsWith(`#/definitions/`)&&(e.$ref=e.$ref.replace(/^#\/definitions\//,`#/components/schemas/`)),e))),t=Yi(t,e=>(e.type===`file`&&(e.type=`string`,e.format=`binary`),e)),Object.hasOwn(t,`parameters`)){t=Yi(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]=fa(a):`in`in a&&(a.in===`body`?n[i]=va(a,t.consumes??[Xi]):a.in===`formData`?n[i]=ya([a],t.consumes):e[i]=fa(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=Yi(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??[Xi];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]??Xi;for(let[t,r]of Object.entries(n.examples))if(oa(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]=ia(r)}delete n.examples}n.content&&typeof n.content==`object`&&ta(n.content),n.headers&&typeof n.headers==`object`&&(n.headers=Object.entries(n.headers).reduce((e,[t,n])=>n&&typeof n==`object`?{[t]:pa(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=ba(n.parameters,t.consumes??[Xi]);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=ba(i.parameters,i.consumes??t.consumes??[Xi]);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]:pa(n),...e}:e,{})),n.schema){let e=t.produces??i.produces??[Xi];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??[Xi])[0]??Xi;for(let[t,r]of Object.entries(n.examples))if(oa(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]=ia(r)}delete n.examples}n.content&&typeof n.content==`object`&&ta(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:{[ca(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 ua(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 da(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 fa(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=_a(e),n=ua(e),{xExample:r,xExamples:i}=Zi(e);if(Qi(r)?e.examples=sa(r):Qi(i)&&(e.examples=Object.entries(i).reduce((e,[t,n])=>(e[t]=ia(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:da(e.in)}}function pa(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=ua(e);return{...e,schema:t}}var ma={ssv:{style:`spaceDelimited`,explode:!1},pipes:{style:`pipeDelimited`,explode:!1},multi:{style:`form`,explode:!0},csv:{style:`form`,explode:!1},tsv:{}},ha={ssv:{},pipes:{},multi:{},csv:{style:`simple`,explode:!1},tsv:{}},ga={header:ha,query:ma,path:ha};function _a(e){if(e.type!==`array`||!(e.in===`query`||e.in===`path`||e.in===`header`))return{};let t=e.collectionFormat??`csv`;return e.in in ga&&t in ga[e.in]?ga[e.in][t]:{}}function va(e,t){let{xExample:n,xExamples:r}=Zi(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},Qi(r)&&e in r){let t=r[e];Qi(t)&&Object.values(t).every(e=>ra(e))?o.content[e].examples=t:$i(t)?o.content[e].examples=Object.entries(t).reduce((e,[t,n])=>(e[t]=ia(n),e),{}):o.content[e].examples={default:ia(t)}}else Qi(r)&&!Object.keys(r).some(oa)&&(o.content[e].examples=Object.entries(r).reduce((e,[t,n])=>(e[t]=ia(n),e),{}));!o.content[e].examples&&Qi(n)&&e in n&&(o.content[e].example=n[e])}return o}function ya(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 ba(e,t){let n={parameters:e.filter(e=>!(e.in===`body`||e.in===`formData`)).map(e=>fa(e))},r=structuredClone(e.find(e=>e.in===`body`)??{});r&&Object.keys(r).length&&(n.requestBody=va(r,t));let i=e.filter(e=>e.in===`formData`);if(i.length>0){let e=ya(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 xa=new Set([`properties`,`items`,`allOf`,`anyOf`,`oneOf`,`not`,`additionalProperties`,`schema`]);function Sa(e){return e?!!(e.some(e=>xa.has(e))||e.some(e=>e.endsWith(`Schema`))||e.length>=2&&e[0]===`components`&&e[1]===`schemas`):!1}function Ca(e){let t=e;return t===null||typeof t.openapi!=`string`||!t.openapi.startsWith(`3.0`)?t:(t.openapi=`3.1.1`,t=Yi(t,wa),t)}var wa=(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&&(Sa(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 Ta(e,t){let n=la(e);if(t===`3.0`)return n;let r=Ca(n);return t===`3.1`?r:Ji(r)}var Ea="```",Da=(e,t)=>`${Ea}${e}\n${t.trimEnd()}\n${Ea}`,Oa=(e,t)=>`@example\n${Da(e,t)}`,ka=e=>`\`${e}\``,Aa=(...e)=>e.join(`
|
|
15
|
+
import{r as e,t}from"./browser-67K6wmG9.js";import{$ as n,$i as r,$r as i,Ai as a,Ao as o,Ar as s,Bi as c,Bo as l,Br as u,Ci as d,Co as f,D as p,Di as m,E as h,Ei as g,Fi as _,Fn as v,Fo as y,Fr as ee,Gi as te,Gn as ne,Go as b,Gr as re,Hi as x,Ho as S,Hr as ie,Ii as ae,Io as C,Ir as oe,Ji as se,Jr as ce,Ki as le,Kr as ue,Li as de,Lo as fe,Lr as pe,Mi as w,Mn as T,Mo as E,Mr as me,Ni as he,No as D,Nr as ge,O as _e,Oi as ve,Or as ye,Pi as be,Po as O,Pr as xe,Qi as Se,Qr as Ce,Ri as we,Rn as Te,Ro as k,Rr as Ee,Si as De,Ti as Oe,Ui as ke,Uo as A,Ur as Ae,Vi as je,Vo as j,Vr as Me,Wi as Ne,Wn as Pe,Wo as M,Wr as Fe,Xr as Ie,Yi as Le,Yr as Re,Zi as N,Zn as ze,Zr as Be,_i as Ve,aa as He,ai as Ue,bi as We,di as Ge,ea as Ke,ei as qe,fi as Je,fr as Ye,gi as Xe,h as Ze,hi as Qe,ia as $e,ii as et,ji as tt,jn as nt,jo as P,jr as rt,ki as it,ko as F,kr as at,la as I,li as ot,ma as st,mi as ct,na as lt,ni as ut,nt as dt,o as ft,oi as pt,pa as mt,pi as ht,qi as gt,qr as _t,ra as vt,ri as yt,s as bt,sa as L,si as xt,ta as St,ti as Ct,ua as wt,ui as Tt,vi as Et,wi as R,wn as Dt,xi as Ot,yi as kt,za as At,zi as jt,zo as z,zr as Mt}from"./vendor-BeJNu9KM.js";import{A as Nt,B as Pt,D as Ft,Gt as It,H as B,J as Lt,K as Rt,Q as zt,R as Bt,S as Vt,Tt as V,U as Ht,Yt as Ut,at as Wt,b as Gt,d as Kt,dt as qt,f as Jt,gt as Yt,k as Xt,l as Zt,mt as Qt,ot as $t,p as H,tt as en,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},tn=(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=>tn(e.items,t,n));if(e.type===`record`)return W(t)?Object.keys(t).every(r=>tn(e.key,r,n)&&tn(e.value,t[r],n)):!1;if(e.type===`object`)return W(t)?Object.keys(e.properties).every(r=>tn(e.properties[r],t[r],n)):!1;if(e.type===`optional`)return t===void 0||tn(e.schema,t,n);if(e.type===`union`)return e.schemas.some(e=>tn(e,t,n));if(e.type===`intersection`)return e.schemas.length===0?!0:W(t)?e.schemas.every(e=>tn(e,t,n)):!1;if(e.type===`literal`)return t===e.value;if(e.type===`lazy`)return tn(e.schema(),t,n);if(e.type===`evaluate`)return tn(e.schema,e.expression(t),n);let r=e;return console.warn(`Unknown schema type:`,r),!1}finally{r&&n.get(t)?.delete(e)}},nn=(e,t,n=new WeakMap)=>tn(e,t,n),rn=(e,t)=>{let n=t.get(e);if(n)return n;let r=e.schema();return t.set(e,r),r},an=e=>e.type===`optional`?an(e.schema):e.type===`literal`?!0:e.type===`union`?e.schemas.length>0&&e.schemas.every(an):!1,on=(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=on(o,s,n,r);return an(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:on(e.schema,t,n,r):e.type===`union`?Math.max(...e.schemas.map(e=>on(e,t,n,r))):e.type===`intersection`?e.schemas.length===0?1:e.schemas.reduce((e,i)=>e+on(i,t,n,r),0):e.type===`lazy`?on(rn(e,n),t,n,r):e.type===`evaluate`?on(e.schema,e.expression(t),n,r):nn(e,t)?1:0}finally{i&&r.get(t)?.delete(e)}},sn=(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)}},cn=(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 nn(e,t)?t:e.default??0;if(e.type===`string`)return nn(e,t)?t:e.default??``;if(e.type===`boolean`)return nn(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:cn(e.schema,t,n,r);if(e.type===`array`){if(!Array.isArray(t))return[];let i=Array(t.length);sn(t,e,i,n);for(let a=0;a<t.length;a++)i[a]=cn(e.items,t[a],n,r);return i}if(e.type===`record`){if(!W(t))return{};let i={};sn(t,e,i,n);for(let a of Object.keys(t))i[a]=cn(e.value,t[a],n,r);return i}if(e.type===`object`){let i=Object.keys(e.properties),a=W(t)?t:null,o={};sn(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]=cn(i,s,n,r))}return o}if(e.type===`union`)return cn(e.schemas.reduce((e,n)=>{let i=on(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,cn(i,t,n,r)),{});if(e.type===`literal`)return e.value;if(e.type===`lazy`)return cn(rn(e,r),t,n,r);if(e.type===`evaluate`)return cn(e.schema,e.expression(t),n,r);let i=e;return console.warn(`Unknown schema type:`,i),t},ln=(e,t,n=new WeakMap,r=new WeakMap)=>cn(e,t,n,r);z({name:S({typeComment:"Name of specification extension property. Has to start with `x-`."}),component:M({typeComment:`Vue component to render the specification extension`}),renderer:l(M({typeComment:`Custom renderer to render the specification extension`}))});var un=z({component:M({typeComment:`Vue component to render in the view`}),renderer:l(M({typeComment:`Custom renderer to render the view component (e.g., ReactRenderer)`})),props:l(j(S(),F()),{typeComment:`Additional props to pass to the component`}),sidebar:l(z({show:P(),label:S()}),{typeComment:`Sidebar configuration. Set show: true to display in sidebar.`})});z({"content.start":l(o(un),{typeComment:`Components to render before the Introduction/Info section`}),"content.end":l(o(un),{typeComment:`Components to render at specific views in the API Reference`})}),z({onInit:l(D()),onConfigChange:l(D()),onDestroy:l(D())});var dn=D(),fn=z({dashboardUrl:S({default:`https://dashboard.scalar.com`}),registryUrl:S({default:`https://registry.scalar.com`}),proxyUrl:S({default:`https://proxy.scalar.com`}),apiBaseUrl:S({default:`https://api.scalar.com`})},{typeComment:`External service URLs used by Scalar packages`}),pn=z({title:l(S(),{typeComment:`The title of the OpenAPI document.`}),slug:l(S(),{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:l(F(),{typeComment:`Prefill authentication`}),baseServerURL:l(S(),{typeComment:`Base URL for the API server`}),hideClientButton:P({default:!1,typeComment:`Whether to hide the client button`}),proxyUrl:l(S(),{typeComment:`URL to a request proxy for the API client`}),oauth2RedirectUri:l(S(),{typeComment:`Default OAuth 2.0 redirect URI used to prefill auth flows in the API client.`}),searchHotKey:l(A([C(`a`),C(`b`),C(`c`),C(`d`),C(`e`),C(`f`),C(`g`),C(`h`),C(`i`),C(`j`),C(`k`),C(`l`),C(`m`),C(`n`),C(`o`),C(`p`),C(`q`),C(`r`),C(`s`),C(`t`),C(`u`),C(`v`),C(`w`),C(`x`),C(`y`),C(`z`)]),{typeComment:`Key used with CTRL/CMD to open the search modal (defaults to 'k' e.g. CMD+k)`}),servers:l(o(F()),{typeComment:`List of OpenAPI server objects`}),showSidebar:P({default:!0,typeComment:`Whether to show the sidebar`}),showDeveloperTools:A([C(`localhost`),C(`always`),C(`never`)],{typeComment:`Whether and when to show the developer tools.`}),showToolbar:A([C(`localhost`),C(`always`),C(`never`)],{typeComment:`@deprecated Use showDeveloperTools instead`}),operationTitleSource:A([C(`summary`),C(`path`)],{typeComment:`Whether to use the operation summary or the operation path for the sidebar and search`}),theme:A([C(`default`),C(`alternate`),C(`moon`),C(`purple`),C(`solarized`),C(`bluePlanet`),C(`deepSpace`),C(`saturn`),C(`kepler`),C(`elysiajs`),C(`fastify`),C(`mars`),C(`laserwave`),C(`none`)],{typeComment:`A string to use one of the color presets`}),_integration:l(A([C(`adonisjs`),C(`astro`),C(`docusaurus`),C(`dotnet`),C(`elysiajs`),C(`express`),C(`fastapi`),C(`fastify`),C(`go`),C(`hono`),C(`html`),C(`laravel`),C(`litestar`),C(`nestjs`),C(`nextjs`),C(`nitro`),C(`nuxt`),C(`platformatic`),C(`react`),C(`rust`),C(`svelte`),C(`vue`),fe()]),{typeComment:`Integration type identifier`}),onRequestSent:l(D(),{typeComment:`onRequestSent is fired when a request is sent`}),persistAuth:P({default:!1,typeComment:`Whether to persist auth to local storage`}),telemetry:P({default:!0,typeComment:`Enables / disables telemetry`}),externalUrls:fn}),mn=A([S(),fe(),j(S(),F()),D()]),hn=O([pn,z({default:P({default:!1}),url:l(S(),{typeComment:`URL to an OpenAPI/Swagger document`}),content:l(mn,{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:l(S(),{typeComment:"The title of the OpenAPI document. @deprecated Please move `title` to the top level and remove the `spec` prefix."}),slug:l(S(),{typeComment:"The slug of the OpenAPI document used in the URL. @deprecated Please move `slug` to the top level and remove the `spec` prefix."}),spec:l(z({url:l(S()),content:l(mn)}),{typeComment:"@deprecated Use `url` and `content` on the top level instead."}),agent:l(z({key:l(S()),disabled:l(P()),hideAddApi:l(P(),{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`})}),z({layout:A([C(`modern`),C(`classic`)],{typeComment:`The layout to use for the references`}),proxy:l(S(),{typeComment:`@deprecated Use proxyUrl instead`}),fetch:l(D(),{typeComment:"@deprecated Use `customFetch` instead."}),customFetch:l(D(),{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:l(o(dn),{typeComment:`Plugins for the API reference`}),isEditable:P({default:!1,typeComment:`Allows the user to inject an editor for the spec`}),hideModels:P({default:!1,typeComment:`Whether to show models in the sidebar, search, and content.`}),modelsSectionLabel:l(A([C(`Models`),C(`Schemas`),S()]),{typeComment:"Label for the components.schemas section in the sidebar, content, and search. Use `Schemas` for OpenAPI terminology."}),documentDownloadType:A([C(`both`),C(`yaml`),C(`json`),C(`direct`),C(`none`)],{typeComment:"Sets the file type of the document to download, set to `none` to hide the download button"}),hideDownloadButton:l(P(),{typeComment:"@deprecated Use `documentDownloadType: 'none'` instead"}),hideTestRequestButton:P({default:!1,typeComment:`Whether to show the "Test Request" button`}),hideSearch:P({default:!1,typeComment:`Whether to show the sidebar search bar`}),showOperationId:P({default:!1,typeComment:`Whether to show the operationId`}),darkMode:l(P(),{typeComment:`Whether dark mode is on or off initially (light mode)`}),forceDarkModeState:l(A([C(`dark`),C(`light`)]),{typeComment:`forceDarkModeState makes it always this state no matter what`}),hideDarkModeToggle:P({default:!1,typeComment:`Whether to show the dark mode toggle`}),metaData:l(F(),{typeComment:`If used, passed data will be added to the HTML header. @see https://unhead.unjs.io/usage/composables/use-seo-meta`}),favicon:l(S(),{typeComment:`Path to a favicon image`}),hiddenClients:l(A([j(S(),A([P(),o(S())])),o(S()),C(!0)]),{typeComment:"List of httpsnippet clients to hide from the clients menu. By default hides Unirest, pass `[]` to show all clients"}),defaultHttpClient:l(z({targetKey:S(),clientKey:S()}),{typeComment:`Determine the HTTP client that is selected by default`}),customCss:l(S(),{typeComment:`Custom CSS to be added to the page`}),onServerChange:l(D(),{typeComment:`onServerChange is fired on selected server change`}),onDocumentSelect:l(D(),{typeComment:`onDocumentSelect is fired when the config is selected`}),onLoaded:l(D(),{typeComment:`Callback fired when the reference is fully loaded`}),onBeforeRequest:l(D(),{typeComment:`Fired before the outbound request is built; callback receives a mutable request builder. Experimental API.`}),onRequestBuilt:l(D(),{typeComment:`Fired right before the outbound request is sent; callback receives the exact fetch Request that goes over the wire. Experimental API.`}),onShowMore:l(D(),{typeComment:`onShowMore is fired when the user clicks the "Show more" button on the references`}),onSidebarClick:l(D(),{typeComment:`onSidebarClick is fired when the user clicks on a sidebar item`}),pathRouting:l(z({basePath:S()}),{typeComment:`Route using paths instead of hashes, your server MUST support this. @experimental`}),mcp:l(z({name:l(S(),{typeComment:`Display name for the MCP server`}),url:l(S(),{typeComment:`URL of the MCP server`}),disabled:l(P(),{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:l(D(),{typeComment:`Customize the heading portion of the hash`}),generateModelSlug:l(D(),{typeComment:`Customize the model portion of the hash`}),generateTagSlug:l(D(),{typeComment:`Customize the tag portion of the hash`}),generateOperationSlug:l(D(),{typeComment:`Customize the operation portion of the hash`}),generateWebhookSlug:l(D(),{typeComment:`Customize the webhook portion of the hash`}),setPageTitle:l(D(),{typeComment:`Customize the browser tab title for the section currently in view`}),redirect:l(D(),{typeComment:`To handle redirects, pass a function that receives the current path/hash and passes that to history.replaceState`}),withDefaultFonts:P({default:!0,typeComment:`Whether to include default fonts`}),defaultOpenFirstTag:P({default:!0,typeComment:`Whether to expand the first tag in the sidebar when no specific URL target is present`}),defaultOpenAllTags:P({default:!1,typeComment:`Whether to expand all tags by default. Warning: this can cause performance issues on big documents`}),expandAllModelSections:P({default:!1,typeComment:`Whether to expand all models by default. Warning: this can cause performance issues on big documents`}),expandAllResponses:P({default:!1,typeComment:`Whether to expand all responses by default. Warning: this can cause performance issues on big documents`}),expandAllSchemaProperties:P({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:l(A([C(`alpha`),D()]),{typeComment:`Function to sort tags`}),operationsSorter:l(A([C(`alpha`),C(`method`),D()]),{typeComment:`Function to sort operations`}),orderSchemaPropertiesBy:A([C(`alpha`),C(`preserve`)],{typeComment:`Order the schema properties by`}),orderRequiredPropertiesFirst:P({default:!0,typeComment:`Sort the schema properties by required ones first`})})]),gn=`https://api.scalar.com/request-proxy`,_n=`https://proxy.scalar.com`,vn=e=>{let t=ln(hn,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===gn&&(console.warn(`[DEPRECATED] Warning: configuration.proxyUrl points to our old proxy (${gn}).`),console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${_n}) instead.`),console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${_n}). Read more: https://github.com/scalar/scalar`),t.proxyUrl=_n),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??=b,t},yn={key:0},bn={key:1},xn={key:2},Sn={key:3},Cn={key:4},wn={key:5},Tn=Vt({name:`ScalarIconArrowUp`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=At(e);return(e,r)=>(B(),H(`svg`,Nt({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},V(t)),[Rt(e.$slots,`default`),V(n)===`bold`?(B(),H(`g`,yn,[...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`,bn,[...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`,xn,[...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`,Sn,[...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`,Cn,[...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`,wn,[...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)]])):Jt(``,!0)],16))}}),En={key:0},Dn={key:1},On={key:2},kn={key:3},An={key:4},jn={key:5},Mn=Vt({name:`ScalarIconLockSimple`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:n}=At(e);return(e,r)=>(B(),H(`svg`,Nt({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},V(t)),[Rt(e.$slots,`default`),V(n)===`bold`?(B(),H(`g`,En,[...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`,Dn,[...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`,On,[...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`,kn,[...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`,An,[...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`,jn,[...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)]])):Jt(``,!0)],16))}});function Nn(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[w]}'`;default:return`Unknown error type`}}var Pn=Nn;function Fn(){return Pn}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 In=class extends he{constructor(e){super(`Unknown type`),this.schema=e}};function Ln(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function K(e){return e!==void 0}var Rn=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:Fn()({errorType:e,path:n,schema:t,value:r,errors:i}),errors:i}}function*zn(e,t,n,r){}function*Bn(e,t,n,r){}function*Vn(e,t,n,r){if(!_(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=De(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:m(),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)),Ne(e.minContains)&&a<e.minContains&&(yield q(G.ArrayMinContains,e,n,r)),Ne(e.maxContains)&&a>e.maxContains&&(yield q(G.ArrayMaxContains,e,n,r))}function*Hn(e,t,n,r){ae(r)||(yield q(G.AsyncIterator,e,n,r))}function*Un(e,t,n,r){if(!de(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*Wn(e,t,n,r){we(r)||(yield q(G.Boolean,e,n,r))}function*Gn(e,t,n,r){yield*J(e.returns,t,n,r.prototype)}function*Kn(e,t,n,r){if(!jt(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*qn(e,t,n,r){c(r)||(yield q(G.Function,e,n,r))}function*Jn(e,t,n,r){let i=globalThis.Object.values(e.$defs),a=e.$defs[e.$ref];yield*J(a,[...t,...i],n,r)}function*Yn(e,t,n,r){if(!je(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*Xn(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(g(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(g(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*Zn(e,t,n,r){x(r)||(yield q(G.Iterator,e,n,r))}function*Qn(e,t,n,r){r!==e.const&&(yield q(G.Literal,e,n,r))}function*$n(e,t,n,r){yield q(G.Never,e,n,r)}function*er(e,t,n,r){J(e.not,t,n,r).next().done===!0&&(yield q(G.Not,e,n,r))}function*tr(e,t,n,r){ke(r)||(yield q(G.Null,e,n,r))}function*nr(e,t,n,r){if(!be.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*rr(e,t,n,r){if(!be.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}/${Ln(t)}`,void 0));if(e.additionalProperties===!1)for(let t of o)a.includes(t)||(yield q(G.ObjectAdditionalProperties,e,`${n}/${Ln(t)}`,r[t]));if(typeof e.additionalProperties==`object`)for(let i of o)a.includes(i)||(yield*J(e.additionalProperties,t,`${n}/${Ln(i)}`,r[i]));for(let i of a){let a=e.properties[i];e.required&&e.required.includes(i)?(yield*J(a,t,`${n}/${Ln(i)}`,r[i]),Oe(e)&&!(i in r)&&(yield q(G.ObjectRequiredProperty,a,`${n}/${Ln(i)}`,void 0))):be.IsExactOptionalProperty(r,i)&&(yield*J(a,t,`${n}/${Ln(i)}`,r[i]))}}function*ir(e,t,n,r){te(r)||(yield q(G.Promise,e,n,r))}function*ar(e,t,n,r){if(!be.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}/${Ln(e)}`,i));if(typeof e.additionalProperties==`object`)for(let[i,a]of Object.entries(r))o.test(i)||(yield*J(e.additionalProperties,t,`${n}/${Ln(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}/${Ln(t)}`,i)}}function*or(e,t,n,r){yield*J(d(e,t),t,n,r)}function*sr(e,t,n,r){if(!le(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*cr(e,t,n,r){if(!le(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)),le(e.pattern)&&(new RegExp(e.pattern).test(r)||(yield q(G.StringPattern,e,n,r))),le(e.format)&&(tt(e.format)?a(e.format)(r)||(yield q(G.StringFormat,e,n,r)):yield q(G.StringFormatUnknown,e,n,r))}function*lr(e,t,n,r){gt(r)||(yield q(G.Symbol,e,n,r))}function*ur(e,t,n,r){if(!le(r))return yield q(G.String,e,n,r);new RegExp(e.pattern).test(r)||(yield q(G.StringPattern,e,n,r))}function*dr(e,t,n,r){yield*J(d(e,t),t,n,r)}function*fr(e,t,n,r){if(!_(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*pr(e,t,n,r){Le(r)||(yield q(G.Undefined,e,n,r))}function*mr(e,t,n,r){if(Ot(e,t,r))return;let i=e.anyOf.map(e=>new Rn(J(e,t,n,r)));yield q(G.Union,e,n,r,i)}function*hr(e,t,n,r){if(!se(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*gr(e,t,n,r){}function*_r(e,t,n,r){be.IsVoidLike(r)||(yield q(G.Void,e,n,r))}function*vr(e,t,n,r){ve(e[w])(e,r)||(yield q(G.Kind,e,n,r))}function*J(e,t,n,r){let i=K(e.$id)?[...t,e]:t,a=e;switch(a[w]){case`Any`:return yield*zn(a,i,n,r);case`Argument`:return yield*Bn(a,i,n,r);case`Array`:return yield*Vn(a,i,n,r);case`AsyncIterator`:return yield*Hn(a,i,n,r);case`BigInt`:return yield*Un(a,i,n,r);case`Boolean`:return yield*Wn(a,i,n,r);case`Constructor`:return yield*Gn(a,i,n,r);case`Date`:return yield*Kn(a,i,n,r);case`Function`:return yield*qn(a,i,n,r);case`Import`:return yield*Jn(a,i,n,r);case`Integer`:return yield*Yn(a,i,n,r);case`Intersect`:return yield*Xn(a,i,n,r);case`Iterator`:return yield*Zn(a,i,n,r);case`Literal`:return yield*Qn(a,i,n,r);case`Never`:return yield*$n(a,i,n,r);case`Not`:return yield*er(a,i,n,r);case`Null`:return yield*tr(a,i,n,r);case`Number`:return yield*nr(a,i,n,r);case`Object`:return yield*rr(a,i,n,r);case`Promise`:return yield*ir(a,i,n,r);case`Record`:return yield*ar(a,i,n,r);case`Ref`:return yield*or(a,i,n,r);case`RegExp`:return yield*sr(a,i,n,r);case`String`:return yield*cr(a,i,n,r);case`Symbol`:return yield*lr(a,i,n,r);case`TemplateLiteral`:return yield*ur(a,i,n,r);case`This`:return yield*dr(a,i,n,r);case`Tuple`:return yield*fr(a,i,n,r);case`Undefined`:return yield*pr(a,i,n,r);case`Union`:return yield*mr(a,i,n,r);case`Uint8Array`:return yield*hr(a,i,n,r);case`Unknown`:return yield*gr(a,i,n,r);case`Void`:return yield*_r(a,i,n,r);default:if(!it(a[w]))throw new In(e);return yield*vr(a,i,n,r)}}function yr(...e){return new Rn(e.length===3?J(e[0],e[1],``,e[2]):J(e[0],[],``,e[1]))}var br=Symbol(),xr=()=>Ft(br,!1),Sr=()=>{Ht(br,!0)},Cr=Vt({inheritAttrs:!1,__name:`ScalarFormInput`,props:{is:{default:`button`}},setup(e){let{cx:t}=mt(),n=xr(),r=st({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(),Kt(Lt(e.is),Nt({type:e.is===`button`?`button`:void 0},V(t)(V(r)({button:e.is===`button`,grouped:V(n)}))),{default:Wt(()=>[Rt(i.$slots,`default`)]),_:3},16,[`type`]))}}),wr=Dt(Vt({inheritAttrs:!1,__name:`ScalarColorModeToggleIcon`,props:{is:{default:`button`},mode:{default:`light`}},setup(e){let{cx:t}=mt(),n=Zt(()=>e.mode===`dark`?`Set light mode`:`Set dark mode`);return(r,i)=>(B(),Kt(Lt(e.is),Nt({"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:Wt(()=>[...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`]]),Tr=[`aria-pressed`],Er=Vt({inheritAttrs:!1,__name:`ScalarColorModeToggleButton`,props:{modelValue:{type:Boolean},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let{cx:t}=mt(),n=zt(e,`modelValue`);return(e,r)=>(B(),H(`button`,Nt({"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:It([`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}])},[Gt(wr,{is:`div`,mode:n.value?`dark`:`light`},null,8,[`mode`])],2)],16,Tr))}}),Dr=Yt(`dark`),Or=Yt(`light`),kr=A([C(`system`),C(`dark`),C(`light`)]);function Ar(e={}){let{initialColorMode:t=`system`,overrideColorMode:n}=e;function r(){Dr.value=o.value===`dark`?`light`:`dark`,!(typeof window>`u`)&&window?.localStorage?.setItem(`colorMode`,Dr.value)}function i(e){Dr.value=e,!(typeof window>`u`)&&window?.localStorage?.setItem(`colorMode`,Dr.value)}function a(){return typeof window>`u`?`light`:typeof window?.matchMedia==`function`?window?.matchMedia(`(prefers-color-scheme: dark)`)?.matches?`dark`:`light`:`dark`}let o=Zt({get:()=>Dr.value===`system`?Or.value:Dr.value,set:i}),s=Zt({get:()=>o.value===`dark`,set:e=>i(e?`dark`:`light`)});function c(){typeof document>`u`||typeof window>`u`||((n??(Dr.value===`system`?Or.value:Dr.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=nn(kr,l)?l:null;Dr.value=n??u??t,en([Dr,Or],c,{immediate:!0});let d=()=>{Or.value=a()},f=Yt(null);return Bt(()=>{Or.value=a(),typeof window<`u`&&typeof window?.matchMedia==`function`&&(f.value=window.matchMedia(`(prefers-color-scheme: dark)`),f.value?.addEventListener(`change`,d))}),Pt(()=>{f.value?.removeEventListener(`change`,d)}),{colorMode:Zt({get:()=>Dr.value,set:i}),darkLightMode:o,isDarkMode:s,toggleColorMode:r,setColorMode:i,getSystemModePreference:a}}var jr=Vt({__name:`ScalarColorModeToggle`,props:{variant:{default:`switch`}},setup(e){let{isDarkMode:t,toggleColorMode:n,darkLightMode:r}=Ar(),i=Zt(()=>t.value?`Set light mode`:`Set dark mode`);return(a,o)=>e.variant===`switch`?(B(),Kt(Er,{key:0,modelValue:V(t),"onUpdate:modelValue":o[0]||=e=>qt(t)?t.value=e:null,"aria-label":i.value},null,8,[`modelValue`,`aria-label`])):(B(),Kt(wr,{key:1,"aria-label":i.value,mode:V(r),onClick:V(n)},null,8,[`aria-label`,`mode`,`onClick`]))}}),Mr=(e,t)=>{let n=performance.now(),r=t(),i=performance.now(),a=Math.round(i-n);return console.info(`${e}: ${a} ms`),r},Nr=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 Pr(e){try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`}catch{return!1}}function Fr(e){if(!/^\s*(\{)/.test(e.slice(0,500)))return!1;try{return L(JSON.parse(e))}catch{return!1}}function Ir(e){return/^\s*(?:-\s*)?[\w\-]+\s*:\s*.+\n.*/.test(e)}function Lr(e){return!Pr(e)&&!Ir(e)&&!Fr(e)}var Rr=()=>{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:()=>Re});var c=e=>Array.isArray(e),l=e=>typeof e==`function`,u=e=>e.length===0,d=e=>typeof e==`number`,f=e=>typeof e==`object`&&!!e,p=e=>e instanceof RegExp,m=e=>typeof e==`string`,h=e=>e===void 0,g=e=>{let t=new Map;return n=>{let r=t.get(n);if(r)return r;let i=e(n);return t.set(n,i),i}},_=(e,t,n={})=>{let r={cache:{},input:e,index:0,indexMax:0,options:n,output:[]};if(se(t)(r)&&r.index===e.length)return r.output;throw Error(`Failed to parse at index ${r.indexMax}`)},v=(e,t)=>c(e)?y(e,t):m(e)?te(e,t):ee(e,t),y=(e,t)=>{let n={};for(let t of e){if(t.length!==1)throw Error(`Invalid character: "${t}"`);let e=t.charCodeAt(0);n[e]=!0}return e=>{let r=e.index,i=e.input;for(;e.index<i.length&&i.charCodeAt(e.index)in n;)e.index+=1;let a=e.index;if(a>r){if(!h(t)&&!e.options.silent){let n=e.input.slice(r,a),o=l(t)?t(n,i,String(r)):t;h(o)||e.output.push(o)}e.indexMax=Math.max(e.indexMax,e.index)}return!0}},ee=(e,t)=>{let n=e.source,r=e.flags.replace(/y|$/,`y`),i=new RegExp(n,r);return C(e=>{i.lastIndex=e.index;let n=i.exec(e.input);if(n){if(!h(t)&&!e.options.silent){let r=l(t)?t(...n,e.input,String(e.index)):t;h(r)||e.output.push(r)}return e.index+=n[0].length,e.indexMax=Math.max(e.indexMax,e.index),!0}else return!1})},te=(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},ne=(e,t,n,r)=>{let i=se(e);return C(ae(ie(e=>{let r=0;for(;r<n;){let t=e.index;if(!i(e)||(r+=1,e.index===t))break}return r>=t})))},b=(e,t)=>ne(e,0,1),re=(e,t)=>ne(e,0,1/0),x=(e,t)=>{let n=e.map(se);return C(ae(ie(e=>{for(let t=0,r=n.length;t<r;t++)if(!n[t](e))return!1;return!0})))},S=(e,t)=>{let n=e.map(se);return C(ae(e=>{for(let t=0,r=n.length;t<r;t++)if(n[t](e))return!0;return!1}))},ie=(e,t=!1)=>{let n=se(e);return e=>{let r=e.index,i=e.output.length,a=n(e);return(!a||t)&&(e.index=r,e.output.length!==i&&(e.output.length=i)),a}},ae=(e,t)=>se(e),C=(()=>{let e=0;return t=>{let n=se(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}}}})(),oe=e=>{let t;return n=>(t||=se(e()),t(n))},se=g(e=>{if(l(e))return u(e)?oe(e):e;if(m(e)||p(e))return v(e);if(c(e))return x(e);if(f(e))return S(Object.values(e));throw Error(`Invalid rule`)}),ce=`abcdefghijklmnopqrstuvwxyz`,le=e=>{let t=``;for(;e>0;)t=ce[(e-1)%26]+t,e=Math.floor((e-1)/26);return t},ue=e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t=t*26+ce.indexOf(e[n])+1;return t},de=(e,t)=>{if(t<e)return de(t,e);let n=[];for(;e<=t;)n.push(e++);return n},fe=(e,t,n)=>de(e,t).map(e=>String(e).padStart(n,`0`)),pe=(e,t)=>de(ue(e),ue(t)).map(le),w=e=>e,T=e=>E(t=>_(t,e,{memoization:!1}).join(``)),E=e=>{let t={};return n=>t[n]??(t[n]=e(n))},me=v(/^\*\*\/\*$/,`.*`),he=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/,(e,t,n)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}`),D=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/,(e,t,n,r)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}(?:${r.replaceAll(`,`,`|`).replaceAll(`.`,`\\.`)})`),ge=v(/\\./,w),_e=v(/[$.*+?^(){}[\]\|]/,e=>`\\${e}`),ve=v(/./,w),ye=S([v(/^(?:!!)*!(.*)$/,(e,t)=>`(?!^${Pe(t)}$).*?`),v(/^(!!)+/,``)]),be=S([v(/\/(\*\*\/)+/,`(?:/.+/|/)`),v(/^(\*\*\/)+/,`(?:^|.*/)`),v(/\/(\*\*)$/,`(?:/.*|$)`),v(/\*\*/,`.*`)]),O=S([v(/\*\/(?!\*\*\/)/,`[^/]*/`),v(/\*/,`[^/]*`)]),xe=v(`?`,`[^/]`),Se=v(`[`,w),Ce=v(`]`,w),we=v(/[!^]/,`^/`),Te=v(/[a-z]-[a-z]|[0-9]-[0-9]/i,w),k=S([ge,v(/[$.*+?^(){}[\|]/,e=>`\\${e}`),Te,v(/[^\]]/,w)]),Ee=x([Se,b(we),re(k),Ce]),De=v(`{`,`(?:`),Oe=v(`}`,`)`),ke=x([De,S([v(/(\d+)\.\.(\d+)/,(e,t,n)=>fe(+t,+n,Math.min(t.length,n.length)).join(`|`)),v(/([a-z]+)\.\.([a-z]+)/,(e,t,n)=>pe(t,n).join(`|`)),v(/([A-Z]+)\.\.([A-Z]+)/,(e,t,n)=>pe(t.toLowerCase(),n.toLowerCase()).join(`|`).toUpperCase())]),Oe]),A=v(`{`,`(?:`),Ae=v(`}`,`)`),je=v(`,`,`|`),j=v(/[$.*+?^(){[\]\|]/,e=>`\\${e}`),Me=v(/[^}]/,w),Ne=x([A,re(S([be,O,xe,Ee,ke,oe(()=>Ne),ge,j,je,Me])),Ae]),Pe=T(re(S([me,he,D,ye,be,O,xe,Ee,ke,Ne,ge,_e,ve]))),M=v(/\\./,w),Fe=v(/./,w),Ie=T(re(S([M,v(/\*\*\*+/,`*`),v(/([^/{[(!])\*\*/,(e,t)=>`${t}*`),v(/(^|.)\*\*(?=[^*/)\]}])/,(e,t)=>`${t}*`),Fe]))),Le=(e,t)=>{let n=Array.isArray(e)?e:[e];if(!n.length)return!1;let r=n.map(Le.compile),i=n.every(e=>/(\/(?:\*\*)?|\[\/\])$/.test(e)),a=t.replace(/[\\\/]+/g,`/`).replace(/\/$/,i?`/`:``);return r.some(e=>e.test(a))};Le.compile=e=>RegExp(`^${Pe(Ie(e))}$`,`s`);var Re=Le;return o(s)})();return e.default||e},zr,Br=(e,t)=>(zr||(zr=Rr(),Rr=null),zr(e,t)),Vr=/^[A-Za-z]:\//;function Hr(e=``){return e&&e.replace(/\\/g,`/`).replace(Vr,e=>e.toUpperCase())}var Ur=/^[/\\]{2}/,Wr=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Gr=/^[A-Za-z]:$/,Kr=/^\/([A-Za-z]:)?$/,qr=/.(\.[^./]+|\.)$/,Jr=/^[/\\]|^[a-zA-Z]:[/\\]/,Yr=function(e){if(e.length===0)return`.`;e=Hr(e);let t=e.match(Ur),n=ei(e),r=e[e.length-1]===`/`;return e=$r(e,!n),e.length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),Gr.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!ei(e)?`/${e}`:e)},Xr=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 Yr(t)};function Zr(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var Qr=function(...e){e=e.map(e=>Hr(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:Zr();!i||i.length===0||(t=`${i}/${t}`,n=ei(i))}return t=$r(t,!n),n&&!ei(t)?`/${t}`:t.length>0?t:`.`};function $r(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 ei=function(e){return Wr.test(e)},ti=function(e){return Hr(e)},ni=function(e){if(e===`..`)return``;let t=qr.exec(Hr(e));return t&&t[1]||``},ri=function(e,t){let n=Qr(e).replace(Kr,`$1`).split(`/`),r=Qr(t).replace(Kr,`$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(`/`)},ii=function(e){let t=Hr(e).replace(/\/$/,``).split(`/`).slice(0,-1);return t.length===1&&Gr.test(t[0])&&(t[0]+=`/`),t.join(`/`)||(ei(e)?`/`:`.`)},ai=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 Hr(e.root?Qr(...n):n.join(`/`))},oi=function(e,t){let n=Hr(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},si={__proto__:null,basename:oi,dirname:ii,extname:ni,format:ai,isAbsolute:ei,join:Xr,matchesGlob:(e,t)=>Br(t,Yr(e)),normalize:Yr,normalizeString:$r,parse:function(e){let t=Jr.exec(e)?.[0]?.replace(/\\/g,`/`)||``,n=oi(e),r=ni(n);return{root:t,dir:ii(e),base:n,ext:r,name:n.slice(0,n.length-r.length)}},relative:ri,resolve:Qr,sep:`/`,toNamespacedPath:ti},ci=globalThis.process?.platform===`win32`?`;`:`:`,li={posix:void 0,win32:void 0},ui=(e=ci)=>new Proxy(si,{get(t,n){return n===`delimiter`?e:n===`posix`?Y:n===`win32`?di:li[n]||si[n]}}),Y=ui(`:`),di=ui(`;`),fi=(e,t)=>{if(Pr(t))return t;if(Pr(e)){let n=new URL(e);return n.pathname=Y.posix.resolve(`/`,Y.dirname(n.pathname),t),n.toString()}return Y.resolve(Y.dirname(e),t)};function pi(e){return decodeURI(e.replace(/~1/g,`/`).replace(/~0/g,`~`))}function mi(e){return e.split(`/`).slice(1).map(pi)}function hi(e,t,n){if(t===``)throw Error(`Cannot set value at root ('') pointer`);let r=mi(t);r.forEach(e=>ze(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 gi=(e,t)=>{if(Pr(e)&&Pr(t)){let n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;let i=Y.dirname(Y.posix.resolve(`/`,r.pathname)),a=Y.posix.resolve(`/`,n.pathname);return Y.posix.relative(i,a)}if(Pr(t)){let n=new URL(t),r=Y.dirname(Y.posix.resolve(`/`,n.pathname));return n.pathname=Y.posix.relative(r,Y.posix.resolve(`/`,e)),n.toString()}if(Pr(e))return e;let n=Y.dirname(Y.resolve(t)),r=Y.resolve(e);return Y.relative(n,r)};function _i(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function vi(e){let t=n(e).substring(0,7);return t.match(/^\d+$/)?`a`+t.substring(1):t}async function yi(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?yi(e,t,n,a,i+1):(n[a]=t,a)}var bi=(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 yi(e,r,t),o=a.match(/^\d+$/)?`a${a}`:a;return n[r]=o,o}}},xi=e=>L(e)&&`$ref`in e&&typeof e.$ref==`string`;function Si(e){return e.startsWith(`#`)}function Ci(e,t){let n=t.find(t=>t.validate(e));return n?n.exec(e):Promise.resolve({ok:!1})}function wi(e,t){if(!Si(e))throw`Please provide an internal ref`;return`#/${t.map(_i).join(`/`)}${e.substring(1)}`}function Ti(e,t){if(Array.isArray(e)){e.forEach(e=>Ti(e,t));return}if(L(e)&&(Object.values(e).forEach(e=>Ti(e,t)),typeof e==`object`&&`$ref`in e&&typeof e.$ref==`string`)){let n=e.$ref;if(!Si(n))return;e.$ref=wi(n,t)}}var Ei=(e,t,n,r,i,a=!1,o=new Set)=>{let s=lt(t,mi(n)).value;if(o.has(s))return;o.add(s),hi(e,n,s);let c=n=>{if(!(!n||typeof n!=`object`)){`$ref`in n&&typeof n.$ref==`string`&&(n.$ref.startsWith(`#/${r}/${_i(i)}`)||a)&&Ei(e,t,n.$ref.substring(1),r,i,a,o);for(let e of Object.values(n))c(e)}};c(s)},Di={externalDocuments:`x-ext`,externalDocumentsMappings:`x-ext-urls`};async function Oi(e,t){t.externalDocumentsKey=t.externalDocumentsKey??Di.externalDocuments,t.externalDocumentsMappingsKey=t.externalDocumentsMappingsKey??Di.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 Ci(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=$e(o),c=t.root!==void 0&&t.root!==a||t.depth!==void 0,l=t.visitedNodes??new Set,u=vt(o)||(t.origin?t.origin:typeof e==`string`&&(Pr(e)||Lr(e))?e:`/`);o[t.externalDocumentsMappingsKey]===void 0&&(o[t.externalDocumentsMappingsKey]={});let{generate:d}=bi(t.compress??vi,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||!L(e)&&!Array.isArray(e)||l.has(e))return;l.add(e);let _={path:h,resolutionCache:n,parentNode:g,rootNode:o,loaders:r};await f(`onBeforeNodeProcess`,e,_);let v=vt(e);if(xi(e)){let l=e.$ref,h=`$global`in e&&typeof e.$global==`boolean`&&e.$global,g=He(l,v??i,s);if(g!==void 0){if(c){let e=mi(`/${g}`),t=e.length>0?lt(o,e.slice(0,-1)).value:void 0,n=lt(o,e);await p(n.value,n.context,a,m+1,e,t)}await f(`onAfterNodeProcess`,e,_);return}let[y,ee=``]=l.split(`#`,2),te=fi(v??i,y),ne=gi(te,u),b=await d(ne),re=n.has(ne);re||n.set(ne,Ci(te,r)),await f(`onResolveStart`,e);let x=await n.get(ne);if(x.ok){re||(h||Ti(x.data,[Di.externalDocuments,b]),await p(x.data,h?i:te,h,m+1,[t.externalDocumentsKey,b,o[t.externalDocumentsMappingsKey]]),hi(o,`/${t.externalDocumentsMappingsKey}/${_i(b)}`,ne)),t.treeShake===!0?Ei(o,{[t.externalDocumentsKey]:{[b]:x.data}},wi(`#${ee}`,[t.externalDocumentsKey,b]).substring(1),t.externalDocumentsKey,b):re||hi(o,`/${t.externalDocumentsKey}/${b}`,x.data),e.$ref=wi(`#${ee}`,[t.externalDocumentsKey,b]),await f(`onResolveSuccess`,e),await f(`onAfterNodeProcess`,e,_);return}return await f(`onResolveError`,e),await f(`onAfterNodeProcess`,e,_),console.warn(`Failed to resolve external reference "${te}". The reference may be invalid, inaccessible, or missing a loader for this type of reference.`)}for(let n in e)n===t.externalDocumentsKey||n===t.externalDocumentsMappingsKey||await p(e[n],v??i,a,m+1,[...h,n],e);await f(`onAfterNodeProcess`,e,_)};return await p(a),!t.urlMap&&!c&&delete o[t.externalDocumentsMappingsKey],a}var ki=class{data;next;constructor(e){this.data=e,this.next=null}},Ai=class{front;rear;size;constructor(){this.front=null,this.rear=null,this.size=0}enqueue(e){let t=new ki(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 ji(e){let t=0,n=new Ai,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 Mi=e=>e.startsWith(``)?e.slice(1):e;function Ni(t){if(t!==null){if(typeof t==`string`){let n=Mi(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 Pi=e=>{try{return new URL(e).host}catch{return null}};async function Fi(e,t,n){try{let r=Pi(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:Ni(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 Ii(e){let t=e?.limit?ji(e.limit):e=>e();return{type:`loader`,validate:Pr,exec:n=>Fi(n,t,e)}}var Li=class extends Error{constructor(e){super(e),this.name=`InvalidChangesDetectedError`}},Ri=(e,t)=>{let n=(e,t,r,i=0)=>{if(t[i]===void 0)throw new Li(`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 Li(`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},zi=(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},Bi=class{value;children;constructor(e,t){this.value=e,this.children=t}},Vi=class{root;constructor(){this.root=new Bi(null,{})}addPath(e,t){let n=this.root;for(let t of e)n.children[t]||(n.children[t]=new Bi(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)}},Hi=(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&&Hi(e[r],t[r]))return!0;return!1}return e!==t},Ui=(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]=Ui(r,i))}return e},Wi=(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},Gi=(e,t)=>{let n=new Vi;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(Wi(s.path,t.changes.path)&&t.changes.type!==`delete`&&!Hi(s.changes,t.changes.changes)){r.add(t.index),typeof s.changes==`object`&&Ui(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 Ki(e){if(!(typeof e!=`object`||!e)){if(Array.isArray(e)){for(let t of e)Ki(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)&&Ki(e[t])}}function qi(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 Ji(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 qi(t),Ki(t),t}function Yi(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?Yi(n,t,[...e,r.toString()]):n);continue}if(typeof a==`object`&&a){r[i]=Yi(a,t,e);continue}r[i]=a}return t(r,n)}var Xi=`application/json`;function Zi(e){let t=e[`x-example`],n=e[`x-examples`];return delete e[`x-example`],delete e[`x-examples`],{xExample:t,xExamples:n}}function Qi(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).length>0}function $i(e){return Qi(e)&&Object.values(e).every(e=>typeof e==`object`&&!!e&&!Array.isArray(e))}function ea(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 ta(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&&ea(t.schema)&&delete e[n]}}var na=new Set([`summary`,`description`,`value`,`externalValue`]);function ra(e){if(typeof e!=`object`||!e)return!1;let t=e,n=`value`in t||`externalValue`in t,r=Object.keys(t).every(e=>na.has(e));return n&&r}function ia(e){return ra(e)?e:{value:e}}var aa=/^[a-zA-Z0-9*+.-]+\/[a-zA-Z0-9*+.+-]+$/;function oa(e){return aa.test(e)}function sa(e){return Object.entries(e).reduce((e,[t,n])=>(e[t]={value:n},e),{})}var ca=e=>{switch(e){case`application`:return`clientCredentials`;case`accessCode`:return`authorizationCode`;case`implicit`:return`implicit`;case`password`:return`password`;default:return e}};function la(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=Yi(t,e=>(typeof e.$ref==`string`&&e.$ref.startsWith(`#/definitions/`)&&(e.$ref=e.$ref.replace(/^#\/definitions\//,`#/components/schemas/`)),e))),t=Yi(t,e=>(e.type===`file`&&(e.type=`string`,e.format=`binary`),e)),Object.hasOwn(t,`parameters`)){t=Yi(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]=fa(a):`in`in a&&(a.in===`body`?n[i]=va(a,t.consumes??[Xi]):a.in===`formData`?n[i]=ya([a],t.consumes):e[i]=fa(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=Yi(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??[Xi];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]??Xi;for(let[t,r]of Object.entries(n.examples))if(oa(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]=ia(r)}delete n.examples}n.content&&typeof n.content==`object`&&ta(n.content),n.headers&&typeof n.headers==`object`&&(n.headers=Object.entries(n.headers).reduce((e,[t,n])=>n&&typeof n==`object`?{[t]:pa(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=ba(n.parameters,t.consumes??[Xi]);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=ba(i.parameters,i.consumes??t.consumes??[Xi]);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]:pa(n),...e}:e,{})),n.schema){let e=t.produces??i.produces??[Xi];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??[Xi])[0]??Xi;for(let[t,r]of Object.entries(n.examples))if(oa(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]=ia(r)}delete n.examples}n.content&&typeof n.content==`object`&&ta(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:{[ca(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 ua(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 da(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 fa(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=_a(e),n=ua(e),{xExample:r,xExamples:i}=Zi(e);if(Qi(r)?e.examples=sa(r):Qi(i)&&(e.examples=Object.entries(i).reduce((e,[t,n])=>(e[t]=ia(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:da(e.in)}}function pa(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=ua(e);return{...e,schema:t}}var ma={ssv:{style:`spaceDelimited`,explode:!1},pipes:{style:`pipeDelimited`,explode:!1},multi:{style:`form`,explode:!0},csv:{style:`form`,explode:!1},tsv:{}},ha={ssv:{},pipes:{},multi:{},csv:{style:`simple`,explode:!1},tsv:{}},ga={header:ha,query:ma,path:ha};function _a(e){if(e.type!==`array`||!(e.in===`query`||e.in===`path`||e.in===`header`))return{};let t=e.collectionFormat??`csv`;return e.in in ga&&t in ga[e.in]?ga[e.in][t]:{}}function va(e,t){let{xExample:n,xExamples:r}=Zi(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},Qi(r)&&e in r){let t=r[e];Qi(t)&&Object.values(t).every(e=>ra(e))?o.content[e].examples=t:$i(t)?o.content[e].examples=Object.entries(t).reduce((e,[t,n])=>(e[t]=ia(n),e),{}):o.content[e].examples={default:ia(t)}}else Qi(r)&&!Object.keys(r).some(oa)&&(o.content[e].examples=Object.entries(r).reduce((e,[t,n])=>(e[t]=ia(n),e),{}));!o.content[e].examples&&Qi(n)&&e in n&&(o.content[e].example=n[e])}return o}function ya(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 ba(e,t){let n={parameters:e.filter(e=>!(e.in===`body`||e.in===`formData`)).map(e=>fa(e))},r=structuredClone(e.find(e=>e.in===`body`)??{});r&&Object.keys(r).length&&(n.requestBody=va(r,t));let i=e.filter(e=>e.in===`formData`);if(i.length>0){let e=ya(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 xa=new Set([`properties`,`items`,`allOf`,`anyOf`,`oneOf`,`not`,`additionalProperties`,`schema`]);function Sa(e){return e?!!(e.some(e=>xa.has(e))||e.some(e=>e.endsWith(`Schema`))||e.length>=2&&e[0]===`components`&&e[1]===`schemas`):!1}function Ca(e){let t=e;return t===null||typeof t.openapi!=`string`||!t.openapi.startsWith(`3.0`)?t:(t.openapi=`3.1.1`,t=Yi(t,wa),t)}var wa=(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&&(Sa(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 Ta(e,t){let n=la(e);if(t===`3.0`)return n;let r=Ca(n);return t===`3.1`?r:Ji(r)}var Ea="```",Da=(e,t)=>`${Ea}${e}\n${t.trimEnd()}\n${Ea}`,Oa=(e,t)=>`@example\n${Da(e,t)}`,ka=e=>`\`${e}\``,Aa=(...e)=>e.join(`
|
|
16
16
|
|
|
17
17
|
`),X=(e,t)=>Aa(e,Oa(t.language,t.body)),ja=z({"x-internal":l(P({typeComment:`When true, hides the entity from public documentation`}))},{typeName:`XInternal`,typeComment:X(`Marks an entity as internal (hidden from external consumers).`,{language:`yaml`,body:`x-internal: true`})}),Ma=z({"x-original-aas-version":l(S({typeComment:`Original AsyncAPI Specification version the document was loaded with.`}))},{typeName:`XOriginalAasVersion`,typeComment:X(`Original AsyncAPI Specification version of the source document before ingestion.`,{language:`yaml`,body:`x-original-aas-version: "3.0.0"`})}),Na=z({"x-scalar-ignore":l(P({typeComment:`When true, the entity is hidden or ignored in the UI`}))},{typeName:`XScalarIgnore`,typeComment:X(`Internal extension to mark an entity as ignored in the Scalar UI.`,{language:`yaml`,body:`x-scalar-ignore: true`})}),Pa=z({"x-scalar-is-dirty":l(P({typeComment:`When true, the document has unsaved changes`}))},{typeName:`XScalarIsDirty`,typeComment:X(`Tracks whether the document has been modified since it was last saved.`,{language:`yaml`,body:`x-scalar-is-dirty: true`})}),Fa=z({"x-scalar-navigation":l(F({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."}),Ia=z({"x-scalar-original-document-hash":S({typeComment:`Hash of the document as originally loaded from an external source`})},{typeName:`XScalarOriginalDocumentHash`,typeComment:X(`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"`})}),La=z({"x-scalar-original-source-url":l(S({typeComment:`Original document source URL when loaded from an external source`}))},{typeName:`XScalarOriginalSourceUrl`,typeComment:X(`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`})}),Ra=z({namespace:S({typeComment:`The namespace under which this registry meta is scoped.`}),slug:S({typeComment:`A unique slug identifier for this registry meta within the namespace.`}),version:S({typeComment:`The version of the registry meta.`}),commitHash:l(S({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:l(S({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:l(P({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`}),za=z({"x-scalar-registry-meta":l(Ra)},{typeName:`XScalarRegistryMeta`,typeComment:X(`Registry sync metadata for a document published to Scalar Registry.`,{language:`yaml`,body:`x-scalar-registry-meta:
|
|
18
18
|
namespace: acme
|