ledgerlevwt.gitbook.io Open in urlscan Pro
2606:4700::6812:151  Public Scan

URL: https://ledgerlevwt.gitbook.io/_next/static/chunks/3955-82e76bd0fc3ca975.js
Submission: On August 19 via api from US — Scanned from CA

Form analysis 0 forms found in the DOM

Text Content

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3955],{18014:function(){},42084:function(){},71932:function(e,t,r){"use strict";r.r(t),r.d(t,{Button:function(){return i}});var n=r(27573),a=r(71474),o=r(67752);function i(e){let{href:t,onClick:r,children:i,variant:s="primary",size:l="default",className:c}=e,u=(0,a.t)("rounded-md","straight-corners:rounded-none","place-self-start","ring-1","ring-inset","grow-0","shrink-0","primary"===s?["bg-primary-600","text-white","ring-dark/2","hover:bg-primary-500","dark:ring-light/3","dark:bg-primary-600","dark:hover:bg-primary-700"]:["bg-dark/2","ring-dark/1","hover:bg-dark/3","dark:bg-light/2","dark:ring-light/1","dark:hover:bg-light/3"],"default"===l?["text-base","px-4","py-2"]:["text-xs","px-3 py-2"],c);return t?(0,n.jsx)(o.Link,{href:t,className:u,children:i}):(0,n.jsx)("button",{onClick:r,className:u,children:i})}},34779:function(e,t,r){"use strict";r.r(t),r.d(t,{Checkbox:function(){return l}});var n=r(27573),a=r(16378),o=r(4037),i=r(7653),s=r(71474);let l=i.forwardRef((e,t)=>{let{className:r,...i}=e;return(0,n.jsxs)(o.fC,{ref:t,className:(0,s.t)("peer","h-4","w-4","shrink-0","rounded-sm","ring-1","bg-primary-300/1","ring-dark/3","ring-inset","grid","place-items-center","data-[state=checked]:bg-primary-300/6","[&>*:has(svg)]:absolute","dark:bg-primary-100/[0.02]","dark:ring-light/3","dark:data-[state=checked]:bg-primary-300/4",r),...i,children:[(0,n.jsx)(o.z$,{className:(0,s.t)("flex","items-center","justify-center","text-opacity-[1]","text-primary-800","grid-area-1-1","z-[1]","relative","dark:text-primary-200"),children:i.checked?(0,n.jsx)(a.JO,{icon:"check",className:"size-3"}):null}),(0,n.jsx)("div",{className:(0,s.t)("flex","items-center","justify-center","text-dark/4","grid-area-1-1","z-[0]","relative","dark:text-light/2"),children:i.checked?(0,n.jsx)(a.JO,{icon:"check",className:"size-3"}):null})]})});l.displayName=o.fC.displayName},61559:function(e,t,r){"use strict";r.r(t),r.d(t,{DateRelative:function(){return i}});var n=r(27573),a=r(7653),o=r(364);function i(e){let{value:t}=e,r=(0,o.ZK)(),[i,s]=a.useState(Date.now());a.useEffect(()=>{let e=setInterval(()=>{s(Date.now())},18e5);return()=>{clearInterval(e)}},[]);let l=new Date(t),c=i-l.getTime();return(0,n.jsx)("time",{"data-visual-test":"transparent",suppressHydrationWarning:!0,dateTime:t,title:l.toLocaleString(),children:function(e,t){if("undefined"==typeof Intl||void 0===Intl.RelativeTimeFormat)return"".concat(Math.floor(t/24/60/60/1e3)," days ago");let r=new Intl.RelativeTimeFormat(e,{style:"long"});return t<36e5?r.format(-Math.floor(t/60/1e3),"minute"):t<864e5?r.format(-Math.floor(t/60/60/1e3),"hour"):t<2592e6?r.format(-Math.floor(t/24/60/60/1e3),"day"):t<31536e6?r.format(-Math.floor(t/30/24/60/60/1e3),"month"):r.format(-Math.floor(t/365/24/60/60/1e3),"year")}(r.locale,c)})}},67752:function(e,t,r){"use strict";r.r(t),r.d(t,{Link:function(){return o}});var n=r(27573),a=r(87659);let o=r(7653).forwardRef(function(e,t){let{href:r,prefetch:o,children:i,...s}=e;return(URL.canParse?URL.canParse(e.href):e.href.startsWith("http"))?(0,n.jsx)("a",{ref:t,...s,href:r,children:i}):(0,n.jsx)(a.default,{ref:t,...e,children:i})})},99761:function(e,t,r){"use strict";r.d(t,{ZoomImage:function(){return d}});var n=r(27573),a=r(16378),o=r(45531),i=r.n(o),s=r(7653),l=r(3458),c=r(71474),u=r(65291),p=r.n(u);function d(e){let{src:t,alt:r,width:a}=e,o=s.useRef(null),[c,u]=s.useState(!1),[d,h]=s.useState(!1),[g,b]=s.useState(!1),[v,y]=s.useState(null);s.useEffect(()=>{if("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)return;let e="number"==typeof a?a:0,t=0,r=window.matchMedia("(min-width: 768px)"),n="undefined"!=typeof ResizeObserver?new ResizeObserver(e=>{let r=e[0];if(r&&0!==r.contentRect.width){var n;t=null===(n=e[0])||void 0===n?void 0:n.contentRect.width,y(e[0].contentRect),i()}}):null,i=()=>{r.matches?n&&e&&t&&e<=t?u(!1):u(!0):u(!1)};return r.addEventListener("change",i),o.current&&(null==n||n.observe(o.current)),n||i(),()=>{null==n||n.disconnect(),r.removeEventListener("change",i)}},[o,a]),c&&l.preload(t,{as:"image"});let k=s.useCallback(e=>{let r=new Image;r.src=t,r.onload=()=>{null==e||e()}},[t]),x=s.useCallback(()=>{f(()=>{b(!1)},()=>{h(!1)})},[]);return(0,n.jsx)(n.Fragment,{children:g?(0,n.jsxs)(n.Fragment,{children:[v?(0,n.jsx)("span",{style:{display:"block",width:v.width,height:v.height}}):null,l.createPortal((0,n.jsx)(m,{src:t,crossOrigin:e.crossOrigin,alt:null!=r?r:"",onClose:x}),document.body)]}):(0,n.jsx)("img",{ref:o,...e,alt:null!=r?r:"",onMouseEnter:()=>{c&&k()},onClick:()=>{c&&k(()=>{l.flushSync(()=>h(!0)),f(()=>{b(!0)})})},className:i()(e.className,c?p().zoomImg:null,d?p().zoomImageActive:null)})})}function m(e){let{src:t,alt:r,crossOrigin:o,onClose:l}=e,u=s.useRef(null);return s.useEffect(()=>{let e=e=>{"Escape"===e.key&&l()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[l]),s.useEffect(()=>{var e;null===(e=u.current)||void 0===e||e.focus()},[]),(0,n.jsxs)("div",{className:i()(p().zoomModal,(0,c.t)("fixed","inset-0","z-50","flex","items-center","justify-center","bg-light","dark:bg-dark","p-8")),onClick:l,children:[(0,n.jsx)("img",{src:t,alt:r,crossOrigin:o,className:(0,c.t)("max-w-full","max-h-full","object-contain","bg-light","dark:bg-dark")}),(0,n.jsx)("button",{ref:u,className:(0,c.t)("absolute","top-5","right-5","flex","flex-row","items-center","justify-center","text-sm","text-dark/6","dark:text-light/5","hover:text-primary","p-4","dark:text-light/5","rounded-full","bg-white","dark:bg-dark/3","shadow-sm","hover:shadow-md","border-slate-300","dark:border-dark/2","border"),onClick:l,children:(0,n.jsx)(a.JO,{icon:"compress-wide",className:(0,c.t)("size-5")})})]})}function f(e,t){document.startViewTransition?document.startViewTransition(()=>{l.flushSync(()=>e())}).finished.then(()=>{t&&t()}):(e(),null==t||t())}},364:function(e,t,r){"use strict";r.d(t,{Ff:function(){return a.F},Xg:function(){return o},ZK:function(){return i},t:function(){return a.t}});var n=r(7653),a=r(38155);let o=n.createContext(null);function i(){let e=n.useContext(o);if(!e)throw Error("The hook useLanguage should be wrapped in a <TranslateContext>");return e}},38155:function(e,t,r){"use strict";r.d(t,{F:function(){return i},t:function(){return o}});var n=r(27573),a=r(7653);function o(e,t){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];let s=e[t];if(!s)throw Error('Translation not found for "'.concat(t,'"'));let l=[],c=s;return(o.forEach((e,t)=>{if("string"==typeof e)c=c.replace("${".concat(t+1,"}"),e);else{let[r,o]=c.split("${".concat(t+1,"}"));l.push((0,n.jsx)(a.Fragment,{children:r},"string-".concat(t))),l.push((0,n.jsx)(a.Fragment,{children:e},"arg-".concat(t))),c=o}}),l.length)?(0,n.jsxs)(n.Fragment,{children:[l,c]}):c}function i(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];return function e(t){if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)return"".concat(t);if(null==t)return"";if(Array.isArray(t))return t.map(e).join("");if("object"==typeof t&&"props"in t)return t.props.children.map(e).join("");throw Error("Unsupported type ".concat(typeof t))}(o(e,t,...n))}},71474:function(e,t,r){"use strict";r.d(t,{t:function(){return a}});var n=r(66290);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.m6)(...t)}},65291:function(e){e.exports={zoomModal:"ZoomImage_zoomModal__VzJS3",zoomImg:"ZoomImage_zoomImg__teSyL",zoomImageActive:"ZoomImage_zoomImageActive__C33dt"}},52846:function(e,t,r){"use strict";r.r(t),r.d(t,{Icon:function(){return s}});var n=r(7653),a=JSON.parse('{"brands":["monero","hooli","yelp","cc-visa","lastfm","shopware","creative-commons-nc","aws","redhat","yoast","cloudflare","ups","pixiv","wpexplorer","dyalog","bity","stackpath","buysellads","first-order","modx","guilded","vnv","square-js","microsoft","qq","orcid","java","invision","creative-commons-pd-alt","centercode","glide-g","drupal","jxl","dart-lang","hire-a-helper","creative-commons-by","unity","whmcs","rocketchat","vk","untappd","mailchimp","css3-alt","square-reddit","vimeo-v","contao","square-font-awesome","deskpro","brave","sistrix","square-instagram","battle-net","the-red-yeti","square-hacker-news","edge","threads","napster","square-snapchat","google-plus-g","artstation","markdown","sourcetree","google-plus","diaspora","foursquare","stack-overflow","github-alt","phoenix-squadron","pagelines","algolia","red-river","creative-commons-sa","safari","google","square-font-awesome-stroke","atlassian","linkedin-in","digital-ocean","nimblr","chromecast","evernote","hacker-news","creative-commons-sampling","adversal","creative-commons","watchman-monitoring","fonticons","weixin","shirtsinbulk","codepen","git-alt","lyft","rev","windows","wizards-of-the-coast","square-viadeo","meetup","centos","adn","cloudsmith","opensuse","pied-piper-alt","square-dribbble","codiepie","node","mix","steam","cc-apple-pay","scribd","debian","openid","instalod","expeditedssl","sellcast","square-twitter","r-project","delicious","freebsd","vuejs","accusoft","ioxhost","fonticons-fi","app-store","cc-mastercard","itunes-note","golang","kickstarter","grav","weibo","uncharted","firstdraft","square-youtube","wikipedia-w","wpressr","angellist","galactic-republic","nfc-directional","skype","joget","fedora","stripe-s","meta","laravel","hotjar","bluetooth-b","square-letterboxd","sticker-mule","creative-commons-zero","hips","behance","reddit","discord","chrome","app-store-ios","cc-discover","wpbeginner","confluence","shoelace","mdb","dochub","accessible-icon","ebay","amazon","unsplash","yarn","square-steam","500px","square-vimeo","asymmetrik","font-awesome","gratipay","apple","hive","gitkraken","keybase","apple-pay","padlet","amazon-pay","square-github","stumbleupon","fedex","phoenix-framework","shopify","neos","square-threads","hackerrank","researchgate","swift","angular","speakap","angrycreative","y-combinator","empire","envira","google-scholar","square-gitlab","studiovinari","pied-piper","wordpress","product-hunt","firefox","linode","goodreads","square-odnoklassniki","jsfiddle","sith","themeisle","page4","hashnode","react","cc-paypal","squarespace","cc-stripe","creative-commons-share","bitcoin","keycdn","opera","itch-io","umbraco","galactic-senate","ubuntu","draft2digital","stripe","houzz","gg","dhl","square-pinterest","xing","blackberry","creative-commons-pd","playstation","quinscape","less","blogger-b","opencart","vine","signal-messenger","paypal","gitlab","typo3","reddit-alien","yahoo","dailymotion","affiliatetheme","pied-piper-pp","bootstrap","odnoklassniki","nfc-symbol","mintbit","ethereum","speaker-deck","creative-commons-nc-eu","patreon","avianex","ello","gofore","bimobject","brave-reverse","facebook-f","square-google-plus","web-awesome","mandalorian","first-order-alt","osi","google-wallet","d-and-d-beyond","periscope","fulcrum","cloudscale","forumbee","mizuni","schlix","square-xing","bandcamp","wpforms","cloudversify","usps","megaport","magento","spotify","optin-monster","fly","aviato","itunes","cuttlefish","blogger","flickr","viber","soundcloud","digg","tencent-weibo","letterboxd","symfony","maxcdn","etsy","facebook-messenger","audible","think-peaks","bilibili","erlang","x-twitter","cotton-bureau","dashcube","42-group","stack-exchange","elementor","square-pied-piper","creative-commons-nd","palfed","superpowers","resolving","xbox","square-web-awesome-stroke","searchengin","tiktok","square-facebook","renren","linux","glide","linkedin","hubspot","deploydog","twitch","flutter","ravelry","mixer","square-lastfm","vimeo","mendeley","uniregistry","figma","creative-commons-remix","cc-amazon-pay","dropbox","instagram","cmplid","upwork","facebook","gripfire","jedi-order","uikit","fort-awesome-alt","phabricator","ussunnah","earlybirds","trade-federation","autoprefixer","whatsapp","square-upwork","slideshare","google-play","viadeo","line","google-drive","servicestack","simplybuilt","bitbucket","imdb","deezer","raspberry-pi","jira","docker","screenpal","bluetooth","gitter","d-and-d","microblog","cc-diners-club","gg-circle","pied-piper-hat","kickstarter-k","yandex","readme","html5","sellsy","square-web-awesome","sass","wirsindhandwerk","buromobelexperte","salesforce","octopus-deploy","medapps","ns8","pinterest-p","apper","fort-awesome","waze","bluesky","cc-jcb","snapchat","fantasy-flight-games","rust","wix","square-behance","supple","webflow","rebel","css3","staylinked","kaggle","space-awesome","deviantart","cpanel","goodreads-g","square-git","square-tumblr","trello","creative-commons-nc-jp","get-pocket","perbyte","grunt","weebly","connectdevelop","leanpub","black-tie","themeco","python","android","bots","free-code-camp","hornbill","js","ideal","git","dev","sketch","yandex-international","cc-amex","uber","github","php","alipay","youtube","skyatlas","firefox-browser","replyd","suse","jenkins","twitter","rockrms","pinterest","buffer","npm","yammer","btc","dribbble","stumbleupon-circle","internet-explorer","stubber","telegram","old-republic","odysee","square-whatsapp","node-js","edge-legacy","slack","medrt","usb","tumblr","vaadin","quora","square-x-twitter","reacteurope","medium","amilia","mixcloud","flipboard","viacoin","critical-role","sitrox","discourse","joomla","mastodon","airbnb","wolf-pack-battalion","buy-n-large","gulp","creative-commons-sampling-plus","strava","ember","canadian-maple-leaf","teamspeak","pushed","wordpress-simple","nutritionix","wodu","google-pay","intercom","zhihu","korvue","pix","steam-symbol"],"custom-icons":["gitbook"]}');let o=new Map;var i=r(22824);let s=n.forwardRef(function(e,t){let r=(0,i.useIcons)(),{icon:s,iconStyle:l=r.iconStyle,className:c="",size:u,...p}=e,[d,m]=function(e,t){var r;let n=null===(r=o.get(t))||void 0===r?void 0:r.get(e);if(n)return n;let i=[e,t];for(let[e,r]of Object.entries(a))if(r.includes(t)){i=[e,t];break}return o.has(t)||o.set(t,new Map),o.get(t).set(e,i),i}(l,s),f=(0,i.getIconAssetURL)(r,d,m);return n.createElement("svg",{ref:t,...p,style:{maskImage:"url(".concat(f,")"),maskRepeat:"no-repeat",maskPosition:"center",...u?{width:u,height:u}:{},...p.style},className:"gb-icon "+c})})},22824:function(e,t,r){"use strict";r.r(t),r.d(t,{IconsProvider:function(){return i},getAssetURL:function(){return l},getIconAssetURL:function(){return c},useIcons:function(){return s}});var n=r(7653),a=r(82076);let o=n.createContext({iconStyle:a.z.Regular});function i(e){let t=n.useContext(o),{children:r,assetsURL:a=t.assetsURL,assetsURLToken:i=t.assetsURLToken,iconStyle:s=t.iconStyle,assetsByStyles:l=t.assetsByStyles}=e,c=n.useMemo(()=>({assetsURL:a,assetsURLToken:i,iconStyle:s,assetsByStyles:l}),[a,i,s,l]);return n.createElement(o.Provider,{value:c},r)}function s(){return n.useContext(o)}function l(e,t){if(!e.assetsURL)throw Error("You first need to pass a assetsURL to <IconsProvider>");let r=e.assetsURL+(e.assetsURL.endsWith("/")?"":"/")+t+"?v=".concat(1);if(!e.assetsURLToken)return r;{let t=new URL(r);return t.searchParams.set("token",e.assetsURLToken),t.toString()}}function c(e,t,r){var n,a;return l(null!==(a=null===(n=e.assetsByStyles)||void 0===n?void 0:n[t])&&void 0!==a?a:e,"svgs/".concat(t,"/").concat(r,".svg"))}},16378:function(e,t,r){"use strict";r.d(t,{JO:function(){return n.Icon}});var n=r(52846);r(82076),r(22824)},82076:function(e,t,r){"use strict";var n,a;r.d(t,{z:function(){return n}}),(a=n||(n={})).Regular="regular",a.SharpRegular="sharp-regular",a.Solid="solid",a.SharpSolid="sharp-solid",a.Duotone="duotone",a.SharpDuotoneSolid="sharp-duotone-solid",a.Light="light",a.SharpLight="sharp-light",a.Thin="thin",a.SharpThin="sharp-thin"},52453:function(e,t,r){"use strict";r.r(t),r.d(t,{InteractiveSection:function(){return o}});var n=r(45531),a=r(7653);function o(e){var t,r;let{id:o,className:i,toggeable:s=!1,defaultOpened:l=!0,tabs:c=[],defaultTab:u=null===(t=c[0])||void 0===t?void 0:t.key,header:p,children:d,overlay:m,toggleOpenIcon:f="▶",toggleCloseIcon:h="▼"}=e,[g,b]=a.useState(l),[v,y]=a.useState(u),k=null!==(r=c.find(e=>e.key===v))&&void 0!==r?r:c[0];return a.createElement("div",{id:o,className:n("openapi-section",s?"openapi-section-toggeable":null,i,s?"".concat(i,"-").concat(g?"opened":"closed"):null)},a.createElement("div",{onClick:()=>{s&&b(!g)},className:n("openapi-section-header","".concat(i,"-header"))},a.createElement("div",{className:n("openapi-section-header-content","".concat(i,"-header-content"))},p),a.createElement("div",{className:n("openapi-section-header-controls","".concat(i,"-header-controls")),onClick:e=>{e.stopPropagation()}},c.length?a.createElement("select",{className:n("openapi-section-select","openapi-select","".concat(i,"-tabs-select")),value:k.key,onChange:e=>{y(e.target.value),b(!0)}},c.map(e=>a.createElement("option",{key:e.key,value:e.key},e.label))):null,(d||(null==k?void 0:k.body))&&s?a.createElement("button",{className:n("openapi-section-toggle","".concat(i,"-toggle")),onClick:()=>b(!g)},g?h:f):null)),(!s||g)&&(d||(null==k?void 0:k.body))?a.createElement("div",{className:n("openapi-section-body","".concat(i,"-body"))},d,null==k?void 0:k.body):null,m)}},86404:function(e,t,r){"use strict";r.d(t,{OpenAPIServerURLVariable:function(){return o}});var n=r(7653),a=r(45531);function o(e){let{variable:t}=e;return n.createElement("span",{className:a("openapi-url-var")},t.default)}},94898:function(e,t,r){"use strict";r.d(t,{OpenAPISpec:function(){return N}});var n=r(7653),a=r(77368);r(93210),r(53216);var o=r(52453),i=r(45531);function s(e){let{source:t,className:r}=e;return n.createElement("div",{className:i("openapi-markdown",r),dangerouslySetInnerHTML:{__html:t}})}let l="__$refResolved";function c(e){if("object"==typeof e&&e&&"$ref"in e)throw Error("Reference found");return e}function u(e){let{propertyName:t,required:r,schema:a,circularRefs:l=new Map,context:c,className:u}=e,d=(0,n.useId)(),v=l.get(a),k=new Map(l).set(a,d),x=v?null:g(a),w=v?null:b(a,new Set(k.keys()));return n.createElement(o.InteractiveSection,{id:d,className:i("openapi-schema",u),toggeable:!!x||!!w,defaultOpened:!!c.defaultInteractiveOpened,toggleOpenIcon:c.icons.chevronRight,toggleCloseIcon:c.icons.chevronDown,tabs:null==w?void 0:w[0].map((e,t)=>({key:"".concat(t),label:y(e,w[1]),body:k.has(e)?n.createElement(f,{id:k.get(e),schema:e}):n.createElement(m,{schema:e,circularRefs:k,context:c})})),header:n.createElement("div",{className:i("openapi-schema-presentation")},n.createElement("div",{className:i("openapi-schema-name")},t?n.createElement("span",{className:i("openapi-schema-propertyname")},t):null,r?n.createElement("span",{className:i("openapi-schema-required")},"*"):null,n.createElement("span",{className:i("openapi-schema-type")},y(a))),a.description?n.createElement(s,{source:a.description,className:"openapi-schema-description"}):null,"string"==typeof a.example||"number"==typeof a.example||"boolean"==typeof a.example?n.createElement("span",{className:"openapi-schema-example"},"Example: ",n.createElement("code",null,JSON.stringify(a.example))):null)},x&&x.length>0||a.enum&&a.enum.length>0||v?n.createElement(n.Fragment,null,(null==x?void 0:x.length)?n.createElement(p,{properties:x,circularRefs:k,context:c}):null,a.enum&&a.enum.length>0?n.createElement(h,{enumValues:a.enum}):null,v?n.createElement(f,{id:v,schema:a}):null):null)}function p(e){let{id:t,properties:r,circularRefs:a,context:o}=e;return r.length?n.createElement("div",{id:t,className:i("openapi-schema-properties")},r.map(e=>n.createElement(u,{key:e.propertyName,circularRefs:a,...e,context:o}))):null}function d(e){let{schema:t,context:r}=e,a=g(t);return a&&a.length>0?n.createElement(p,{properties:a,context:r}):n.createElement(u,{schema:t,context:r,className:"openapi-schema-root"})}function m(e){let{schema:t,circularRefs:r,context:a}=e,o=(0,n.useId)(),i=g(t);return n.createElement(p,{id:o,properties:null!=i?i:[{schema:t}],circularRefs:i?new Map(r).set(t,o):r,context:a})}function f(e){let{id:t,schema:r}=e;return n.createElement("div",{className:"openapi-schema-circular"},"Circular reference to ",n.createElement("a",{href:"#".concat(t)},y(r))," ",n.createElement("span",{className:"openapi-schema-circular-glyph"},"↩"))}function h(e){let{enumValues:t}=e;return n.createElement("div",{className:"openapi-schema-enum"},t.map((e,t)=>n.createElement("span",{key:t,className:"openapi-schema-enum-value"},"".concat(e))))}function g(e){if(e.allOf)return e.allOf.reduce((e,t)=>{var r;return[...e,...null!==(r=g(c(t)))&&void 0!==r?r:[{schema:c(t)}]]},[]);if("array"===e.type&&e.items){let t=c(e.items);return g(t)||[{propertyName:"items",schema:t}]}if("object"===e.type||e.properties){let t=[];if(e.properties&&Object.entries(e.properties).forEach(r=>{let[n,a]=r,o=c(a);o.deprecated||t.push({propertyName:n,required:Array.isArray(e.required)?e.required.includes(n):void 0,schema:o})}),e.additionalProperties){let r=c(e.additionalProperties);t.push({propertyName:"Other properties",schema:!0===r?{}:r})}return t}return null}function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,r=new Set(t).add(e);return e.anyOf?[v("anyOf",e.anyOf.map(c),r),c(e.discriminator)]:e.oneOf?[v("oneOf",e.oneOf.map(c),r),c(e.discriminator)]:(e.allOf,null)}function v(e,t,r){return t.reduce((t,n)=>{if(n[e]&&!r.has(n)){var a;return[...t,...(null===(a=b(n,r))||void 0===a?void 0:a[0])||[]]}return[...t,n]},[])}function y(e,t){if(e.title)return e.title;if(t&&e.properties){let r=c(e.properties[t.propertyName]);if(r&&r.enum)return r.enum.map(e=>e.toString()).join(" | ")}let r="any";if(e.enum)r="enum";else if("array"===e.type&&e.items)r="array of ".concat(y(c(e.items)));else if(e.type||e.properties){var n;r=null!==(n=e.type)&&void 0!==n?n:"object",e.format&&(r+=" (".concat(e.format,")"))}else"anyOf"in e?r="any of":"oneOf"in e?r="one of":"allOf"in e?r="all of":"not"in e&&(r="not");return l in e&&(r="".concat(e[l]," (").concat(r,")")),e.nullable&&(r="nullable ".concat(r)),r}function k(e){var t;let{requestBody:r,context:a}=e;return n.createElement(o.InteractiveSection,{header:"Body",className:"openapi-requestbody",tabs:Object.entries(null!==(t=r.content)&&void 0!==t?t:{}).map(e=>{var t;let[r,o]=e;return{key:r,label:r,body:n.createElement(d,{schema:null!==(t=c(o.schema))&&void 0!==t?t:{},context:a})}}),defaultOpened:a.defaultInteractiveOpened},r.description?n.createElement(s,{source:r.description,className:"openapi-requestbody-description"}):null)}function x(e){var t,r;let{response:a,context:l}=e,u=Object.entries(null!==(t=a.content)&&void 0!==t?t:{}),m=Object.entries(null!==(r=a.headers)&&void 0!==r?r:{}).map(e=>{var t;let[r,n]=e;return[r,null!==(t=c(n))&&void 0!==t?t:{}]});return 0!==u.length||a.description||0!==m.length?n.createElement(n.Fragment,null,a.description?n.createElement(s,{source:a.description,className:"openapi-response-description"}):null,m.length>0?n.createElement(o.InteractiveSection,{toggeable:!0,defaultOpened:!!l.defaultInteractiveOpened,toggleCloseIcon:l.icons.chevronDown,toggleOpenIcon:l.icons.chevronRight,header:"Headers",className:i("openapi-responseheaders")},n.createElement(p,{properties:m.map(e=>{var t;let[r,n]=e;return{propertyName:r,schema:null!==(t=c(n.schema))&&void 0!==t?t:{},required:n.required}}),context:l})):null,u.length>0?n.createElement(o.InteractiveSection,{header:"Body",className:i("openapi-responsebody"),tabs:u.map(e=>{var t;let[r,a]=e;return{key:r,label:r,body:n.createElement(d,{schema:null!==(t=c(a.schema))&&void 0!==t?t:{},context:l})}})}):null):null}function w(e){let{responses:t,context:r}=e;return n.createElement(o.InteractiveSection,{header:"Response",className:i("openapi-responses"),tabs:Object.entries(t).map(e=>{let[t,a]=e;return{key:t,label:t,body:n.createElement(x,{response:c(a),context:r})}})})}function E(e){let{securities:t,context:r}=e;return 0===t.length?null:n.createElement(o.InteractiveSection,{header:"Authorization",className:"openapi-securities",toggeable:!0,defaultOpened:!1,toggleCloseIcon:r.icons.chevronDown,toggleOpenIcon:r.icons.chevronRight,tabs:t.map(e=>{let[t,r]=e;return{key:t,label:t,body:n.createElement(n.Fragment,null,n.createElement("p",{className:"openapi-securities-label"},function(e){switch(e.type){case"apiKey":return"API Key";case"http":if("basic"===e.scheme)return"Basic Auth";if("bearer"==e.scheme)return"Bearer Token ".concat(e.bearerFormat?"(".concat(e.bearerFormat,")"):"");return"HTTP";case"oauth2":return"OAuth2";case"openIdConnect":return"OpenID Connect";default:return e.type}}(r)),r.description?n.createElement(s,{source:r.description,className:"openapi-securities-description"}):null)}})})}function N(e){let{rawData:t,context:r}=e,{operation:i,securities:s}=(0,a.im)(t),l=function(e){let t=["path","query","header"],r=[];return e.forEach(e=>{let t=e.in,n=function(e){switch(e){case"path":return"Path parameters";case"query":return"Query parameters";case"header":return"Header parameters";default:return e}}(e.in),a=r.find(e=>e.key===t);a?a.parameters.push(e):r.push({key:t,label:n,parameters:[e]})}),r.sort((e,r)=>t.indexOf(e.key)-t.indexOf(r.key)),r}((i.parameters||[]).map(c));return n.createElement(n.Fragment,null,s.length>0?n.createElement(E,{securities:s,context:r}):null,l.map(e=>n.createElement(o.InteractiveSection,{key:e.key,className:"openapi-parameters",toggeable:!0,toggleOpenIcon:r.icons.chevronRight,toggleCloseIcon:r.icons.chevronDown,header:e.label,defaultOpened:"path"===e.key||r.defaultInteractiveOpened},n.createElement(p,{properties:e.parameters.map(e=>{var t;return{propertyName:e.name,schema:{description:e.description,example:e.example,...null!==(t=c(e.schema))&&void 0!==t?t:{}},required:e.required}}),context:r}))),i.requestBody?n.createElement(k,{requestBody:c(i.requestBody),context:r}):null,i.responses?n.createElement(w,{responses:c(i.responses),context:r}):null)}},97512:function(e,t,r){"use strict";r.d(t,{ScalarApiButton:function(){return o}});var n=r(86307),a=r(7653);function o(){let e=(0,n._)();return a.createElement("div",{className:"scalar scalar-activate"},a.createElement("button",{className:"scalar-activate-button",onClick:()=>null==e?void 0:e.open()},a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"12",fill:"none"},a.createElement("path",{stroke:"currentColor",strokeWidth:"1.5",d:"M1 10.05V1.43c0-.2.2-.31.37-.22l7.26 4.08c.17.1.17.33.01.43l-7.26 4.54a.25.25 0 0 1-.38-.21Z"})),"Test it"))}}}]);
//# sourceMappingURL=3955-82e76bd0fc3ca975.js.map