1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opens = _____WB$wombat$assign$function_____("opens"); 10(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2598],{20669:function(e,t,n){"use strict";n.d(t,{AIPageLinkSummary:function(){return x}});var r=n(27573),i=n(63530),a=n(80807),o=n(42172),s=n(7653),l=n(97119),c=n(37756),u=n(22551),d=n(1712),p=n(53902);n(43503);var m=(0,n(99976).$)("2d1a1eb75d9a743e7efc8e4d9fafe7ef87e5723c");function f(e,t){return"".concat(e,":").concat(t)}let h=(0,l.U)((e,t)=>({cache:new Map,getSummary:e=>{var n;let{targetSpaceId:r,targetPageId:i}=e;return null!==(n=t().cache.get(f(r,i)))&&void 0!==n?n:""},streamSummary:async n=>{let{currentSpaceId:r,currentPageId:i,currentPageTitle:a,targetSpaceId:o,targetPageId:s,linkPreview:l,linkTitle:c,visitedPages:u}=n,d=f(o,s);if(t().cache.has(d))return;let p=t=>{e(e=>{let n=new Map(e.cache);return n.set(d,t),{cache:n}})};p("");let h=await m({currentSpaceId:r,currentPageId:i,currentPageTitle:a,targetSpaceId:o,targetPageId:s,linkPreview:l,linkTitle:c,visitedPages:u});for await(let e of h)p(null!=e?e:"")}}));function x(e){let{targetSpaceId:t,targetPageId:n,linkPreview:l,linkTitle:m,showTrademark:f=!0}=e,x=(0,d.usePageContext)(),v=(0,i.ZK)(),y=(0,u.hn)(e=>e.pages),{summary:g,streamSummary:b}=h((0,c.N)(e=>({summary:e.getSummary({targetSpaceId:t,targetPageId:n}),streamSummary:e.streamSummary})));return(0,s.useEffect)(()=>{b({currentSpaceId:x.spaceId,currentPageId:x.pageId,currentPageTitle:x.title,targetSpaceId:t,targetPageId:n,linkPreview:l,linkTitle:m,visitedPages:y})},[x.pageId,x.spaceId,x.title,t,n,l,m,y,b]),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"flex w-screen items-center gap-1 font-semibold text-tint text-xs uppercase leading-tight tracking-wide",children:[f?(0,r.jsx)(p.gb,{className:"size-4",busy:!g||0===g.length}):(0,r.jsx)(o.JO,{icon:"sparkle",className:"size-3"}),(0,r.jsx)("h6",{className:"text-tint",children:(0,a.t)(v,"link_tooltip_ai_summary")}
10)]}),g.length>0?(0,r.jsx)("p",{className:"animate-fadeIn",children:g}):(0,r.jsx)("div",{className:"mt-2 flex flex-wrap gap-2",children:["w-[20%] [animation-delay:-1s]","w-[35%] [animation-delay:-0.8s]","w-[25%] [animation-delay:-0.6s]","w-[10%] [animation-delay:-0.4s]","w-[40%] [animation-delay:-0.2s]","w-[30%] [animation-delay:0s]"].map((e,t)=>(0,r.jsx)("div",{className:"".concat(e," h-4 animate-pulse rounded straight-corners:rounded-none bg-tint-active")},"".concat(t,"-").concat(e)))}),g.length>0?(0,r.jsx)("div",{className:"animate-fadeIn text-tint-subtle text-xs",children:(0,a.t)(v,"link_tooltip_ai_summary_description")}):null]})}},48519:function(e,t,n){"use strict";n.r(t),n.d(t,{AnnotationPopover:function(){return s}});var r=n(27573),i=n(98261),a=n(63530),o=n(33298);function s(e){let{children:t,body:n}=e,s=(0,a.ZK)();return(0,r.jsxs)(i.fC,{children:[(0,r.jsx)(i.xz,{asChild:!0,children:(0,r.jsx)("button",{"data-testid":"annotation-button","aria-label":(0,a.Ff)(s,"annotation_button_label"),className:(0,o.t)("decoration-dotted","decoration-1","underline","underline-offset-2"),children:t})}),(0,r.jsx)(i.h_,{children:(0,r.jsxs)(i.VY,{className:(0,o.t)("text-sm","max-w-[280px]","bg-tint","ring-1","ring-tint","rounded","shadow-1xs","shadow-tint-12/1","dark:shadow-tint-1/2","p-3","[&_p]:leading-snug","-outline-offset-2","outline-2","outline-primary/8","z-20"),sideOffset:4,children:[n,(0,r.jsx)(i.Eh,{asChild:!0,children:(0,r.jsxs)("svg",{viewBox:"0 0 8 5",className:(0,o.t)("relative","z-[2]","fill-tint-3","stroke-tint-7","[paint-order:stroke_fill]"),fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("g",{"clip-path":"url(#clipAnnotation)",children:(0,r.jsx)("path",{d:"M0 0L4 4L8 0",strokeWidth:"2",strokeLinecap:"round",stroke:"inherit",fill:"inherit"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clipAnnotation",children:(0,r.jsx)("rect",{width:"8",height:"5",fill:"white"})})})]})})]})})]})}},26748:function(e,t,n){"use strict";n.d(t,{ClientCodeBlock:function(){return v}});var r=n(27573),i=n(7653);let a="undefined"!=typeof IntersectionObserver;var o=n(75073),s=n(77879),l=n(23060),c=n(33298),u=n(48519),d=n(17370);n(18289),n(51477);let p=(0,i.forwardRef)(function(e,t){let{block:n,style:a,lines:o,"aria-busy":s}=e,l=(0,i.useId)(),u=!!n.data.lineNumbers&&n.nodes.length>1,p="wrap"===n.data.overflow,f=n.data.title;return(0,r.jsxs)("div",{ref:t,"aria-busy":s,className:(0,c.t)("group/codeblock grid grid-flow-col",a),children:[(0,r.jsx)("div",{className:"flex items-center justify-start gap-2 text-sm [grid-area:1/1]",children:f?(0,r.jsx)("div",{className:"relative top-px z-20 inline-flex items-center justify-center rounded-t straight-corners:rounded-t-s border border-tint-subtle border-b-0 bg-tint-subtle theme-muted:bg-tint-base px-3 py-2 text-tint text-xs leading-none tracking-wide contrast-more:border-tint contrast-more:bg-tint-base [html.theme-bold.sidebar-filled_&]:bg-tint-base",children:f}):null}),(0,r.jsx)(d.CopyCodeButton,{codeId:l,style:"z-[2] mt-2 mr-2 self-start justify-self-end rounded-md bg-transparent p-1 text-tint text-xs leading-none opacity-0 ring-1 ring-tint backdrop-blur-md transition-opacity duration-75 [grid-area:2/1] hover:ring-tint-hover group-hover/codeblock:opacity-[1]"}),(0,r.jsx)("pre",{className:(0,c.t)("hide-scroll relative overflow-auto border border-tint-subtle bg-tint-subtle theme-muted:bg-tint-base [grid-area:2/1] contrast-more:border-tint contrast-more:bg-tint-base [html.theme-bold.sidebar-filled_&]:bg-tint-base","rounded-md straight-corners:rounded-sm shadow-sm",f&&"rounded-ss-none"),children:(0,r.jsx)("code",{id:l,className:(0,c.t)("inline-grid min-w-full grid-cols-[auto_1fr] p-2 [count-reset:line] print:whitespace-pre-wrap",p&&"whitespace-pre-wrap"),children:o.map((e,t)=>(0,r.jsx)(m,{line:e,isLast:t===o.length-1,withLineNumbers:u},t))})})]})});function m(e){let{line:t,isLast:n,withLineNumbers:i}=e;return(0,r.jsxs)("span",{className:(0,c.t)("highlight-line",t.highlighted&&"highlighted"),children:[i&&(0,r.jsx)("span",{className:"highlight-line-number"}),(0,r.jsxs)("span",{className:"highlight-line-content",children:[(0,r.jsx)(f,{tokens:t.tokens}),!n&&"\n"]})]})}function f(e){let{tokens:t}=e;return t.map((e,t)=>(0,r.jsx)(h,{token:e},t))}function h(e){let{token:t}=e;switch(t.type){case"annotation":return(0,r.jsx)(u.AnnotationPopover,{body:t.body,children:(0,r.jsx)(f,{tokens:t.children})});case"plain":return t.content;case"shiki":if(!t.token.color)return t.token.content;return(0,r.jsx)("span",{style:{color:t.token.color},children:t.token.content});default:(0,l.ZP)(t)}}var x=n(63251);function v(e){let{block:t,style:l,inlines:c}=e,u=(0,i.useRef)(null),d=(0,i.useRef)(!1),[m,f]=(0,i.useState)(!1),h=(0,i.useMemo)(()=>(0,x.C)(t,[]),[t]),[v,y]=(0,i.useState)(null),[g,b]=(0,i.useState)(!1);(0,i.useEffect)(()=>{Promise.all([n.e(7599),n.e(1318),n.e(1346)]).then(n.bind(n,97394)).then(e=>{let{preloadHighlight:n}=e;return n(t)})},[t]);let j=(0,i.useRef)(!1),k=(0,s.Sf)(()=>{j.current=!1,d.current&&f(!0)},100);return(0,o.m)(()=>{j.current=!0,k()},(0,i.useRef)(window)),!function(e,t,n){let r=(0,i.useRef)(t);(0,i.useLayoutEffect)(()=>{r.current=t});let o=(0,i.useRef)(!1);(0,i.useEffect)(()=>
10{if(!a){r.current(!0,()=>{});return}if(!e.current)return;let t=new IntersectionObserver(e=>{let[n]=e;o.current=n.isIntersecting,r.current(n.isIntersecting,()=>{t.disconnect()})},{root:null==n?void 0:n.root,rootMargin:null==n?void 0:n.rootMargin,threshold:null==n?void 0:n.threshold});return t.observe(e.current),()=>t.disconnect()},[e,null==n?void 0:n.root,null==n?void 0:n.rootMargin,null==n?void 0:n.threshold])}(u,(e,t)=>{d.current=e,!j.current&&e&&(t(),f(!0))},{rootMargin:"200px"}),(0,i.useEffect)(()=>{if(m){let e=!1;return b(!0),Promise.all([n.e(7599),n.e(1318),n.e(1346)]).then(n.bind(n,97394)).then(n=>{let{highlight:r}=n;r(t,c).then(t=>{e||(y(t),b(!1))})}),()=>{e=!0}}y(null)},[m,t,c]),(0,r.jsx)(p,{ref:u,"aria-busy":g,block:t,style:l,lines:null!=v?v:h})}},17370:function(e,t,n){"use strict";n.d(t,{CopyCodeButton:function(){return s}});var r=n(27573),i=n(7653),a=n(63530),o=n(33298);function s(e){let{codeId:t,style:n}=e,s=(0,a.ZK)(),[l,c]=i.useState(!1);return i.useEffect(()=>{if(!l)return;let e=setTimeout(()=>{c(!1)},1e3);return()=>{clearTimeout(e)}},[l]),(0,r.jsx)("button",{onClick:()=>{let e=document.getElementById(t);e&&(navigator.clipboard.writeText(function(e){let t="",n=e=>{e instanceof HTMLBRElement?t+="\n":e instanceof HTMLSpanElement?e.classList.contains("ew")?t+="\n":t+=e.innerText:e instanceof HTMLElement?e.childNodes.forEach(n):t+=e.textContent};return n(e),t}(e)),c(!0))},className:(0,o.t)(n,"print:hidden"),children:(0,a.t)(s,l?"code_copied":"code_copy")})}},63251:function(e,t,n){"use strict";n.d(t,{C:function(){return a}});var r=n(23060);function i(e){switch(e.object){case"text":return e.leaves.map(e=>e.text).join("");case"document":case"fragment":case"block":case"inline":if(!("nodes"in e))return"";return e.nodes.map(e=>i(e)).join("");default:(0,r.ZP)(e)}}function a(e,t){let n=Array.from(t);return e.nodes.map(e=>{let t=e.nodes.map(e=>{var t;if("text"===e.object)return{type:"plain",content:i(e)};let r=n.shift();return{type:"annotation",body:null!==(t=null==r?void 0:r.body)&&void 0!==t?t:null,children:[{type:"plain",content:i(e)}]}});return{highlighted:!!e.data.highlighted,tokens:t}})}},62086:function(e,t,n){"use strict";n.d(t,{Details:function(){return s}});var r=n(27573),i=n(7653),a=n(53984),o=n(33298);function s(e){let{children:t,id:n,className:s}=e,l=i.useRef(null),[c,u]=i.useState(!1),d=(0,a.Hp)();return i.useEffect(()=>{var e;if(!d||!l.current)return;d===n&&u(!0);let t=document.getElementById(d);u(!!(t&&(null===(e=l.current)||void 0===e?void 0:e.contains(t))))},[d,n]),(0,r.jsx)("details",{ref:l,id:n,open:e.open||c,className:(0,o.t)(s,"group/expandable","bg-tint-base","border","border-b-0","border-tint-subtle","[&]:mt-[0px]","[&:first-child]:mt-5","[&:first-child]:rounded-t-lg","[:not(&)_+&]:mt-5","[:not(&)_+&]:rounded-t-lg","[&:not(:has(+_&))]:mb-5","[&:not(:has(+_&))]:rounded-b-lg","[&:not(:has(+_&))]:border-b"),children:t})}},94399:function(e,t,n){"use strict";n.d(t,{DynamicTabs:function(){return m}});var r=n(27573),i=n(7653),a=n(53984),o=n(43989),s=n(33298),l=n(42172);let c=(0,s.t)("relative","group/hash");function u(e){let{id:t,block:n,className:i,iconClassName:a,label:o="Direct link to block"}=e,c=function e(t){switch(t.type){case"paragraph":default:return{textSize:"text-base",lineHeight:"leading-normal"};case"heading-1":return{textSize:"text-3xl font-semibold",lineHeight:"leading-tight",marginTop:"mt-[1em]",anchorButtonMarginTop:"mt-[1.05em]"};case"heading-2":return{textSize:"text-2xl font-semibold",lineHeight:"leading-snug",marginTop:"mt-[0.75em]",anchorButtonMarginTop:"mt-[0.9em]"};case"heading-3":return{textSize:"text-xl font-semibold",lineHeight:"leading-snug",marginTop:"mt-[0.5em]",anchorButtonMarginTop:"mt-[0.65em]"};case"divider":return{textSize:"",lineHeight:"leading-none"};case"list-ordered":case"list-tasks":case"list-unordered":case"list-item":return e(t.nodes[0])}}(n);return(0,r.jsx)("div",{className:(0,s.t)("relative","hash","grid","grid-area-1-1","h-[1em]","border-0","opacity-0","group-hover/hash:opacity-[0]","group-focus/hash:opacity-[0]","md:group-hover/hash:md:opacity-[1]","md:group-focus/hash:md:opacity-[1]",i),children:(0,r.jsx)("a",{href:"#".concat(t),"aria-label":o,className:(0,s.t)("inline-flex","h-full","items-start",c.lineHeight),children:(0,r.jsx)(l.JO,{icon:"hashtag",className:(0,s.t)("size-3","self-center","transition-colors","text-transparent","group-hover/hash:text-tint-subtle","contrast-more:group-hover/hash:text-tint-strong",a)})})})}let d=o.r("@gitbook/tabsState",{activeIds:{},activeTitles:[]}),p=new Set;function m(e){let{id:t,block:n,tabs:l,tabsBody:m,style:h}=e,x=(0,a.Hp)(),[v,y]=function(){let e=(0,i.useCallback)(e=>(p.add(e),()=>p.delete(e)),[]),t=(0,i.useCallback)(()=>d,[]),n=(0,i.useCallback)(e=>
10{d=e(d),o.L("@gitbook/tabsState",d),p.forEach(e=>e())},[]);return[i.useSyncExternalStore(e,t,t),n]}(),g=(0,i.useMemo)(()=>{var e,n,r;let i={id:t,tabs:l};return null!==(n=null!==(e=function(e,t){var n;let r=t.activeIds[e.id];return r&&null!==(n=e.tabs.find(e=>e.id===r))&&void 0!==n?n:null}(i,v))&&void 0!==e?e:null!==(r=i.tabs.map(e=>({item:e,score:v.activeTitles.indexOf(e.title)})).filter(e=>{let{score:t}=e;return t>=0}).sort((e,t)=>{let{score:n}=e,{score:r}=t;return r-n}).map(e=>{let{item:t}=e;return t})[0])&&void 0!==r?r:null)&&void 0!==n?n:i.tabs[0]},[t,l,v]),b=(0,a.tm)()?g:l[0],j=i.useCallback(e=>{y(n=>({activeIds:{...n.activeIds,[t]:e.id},activeTitles:e.title?n.activeTitles.filter(t=>t!==e.title).concat([e.title]).slice(-5):n.activeTitles}))},[t,y]);return i.useEffect(()=>{if(!x)return;let e=document.getElementById(x);if(!e)return;let t=e.closest('[role="tabpanel"]');if(!t)return;let n=l.find(e=>e.id===t.id);n&&j(n)},[x,l,j]),(0,r.jsxs)("div",{className:(0,s.t)("rounded-lg","straight-corners:rounded-sm","ring-1","ring-inset","ring-tint-subtle","flex","flex-col","overflow-hidden",h),children:[(0,r.jsx)("div",{role:"tablist",className:(0,s.t)("group/tabs","inline-flex","flex-row","self-stretch","after:flex-[1]","after:bg-tint-12/1","[&:has(button.active-tab:last-of-type):after]:rounded-bl-md"),children:l.map(e=>(0,r.jsxs)("div",{className:(0,s.t)(c,"flex","items-center","gap-3.5","[&:has(+_.active-tab)]:rounded-br-md","[.active-tab_+_&]:rounded-bl-md","[.active-tab_+_:after]:rounded-br-md","after:transition-colors","after:border-r","after:absolute","after:left-[unset]","after:right-0","after:border-tint","after:top-[15%]","after:h-[70%]","after:w-[1px]","px-3.5","py-2","last:after:border-transparent","text-tint","bg-tint-12/1","hover:text-tint-strong","max-w-full","truncate",b.id===e.id?["
10shrink-0","active-tab","text-tint-strong","bg-transparent","after:[&.active-tab]:border-transparent","after:[:has(+_&.active-tab)]:border-transparent","after:[:has(&_+)]:border-transparent"]:null),children:[(0,r.jsx)("button",{type:"button",role:"tab","aria-selected":b.id===e.id,"aria-controls":e.id,id:f(e.id),onClick:()=>{j(e)},className:(0,s.t)("inline-block","text-sm","transition-[color]","font-[500]","relative","max-w-full","truncate"),children:e.title}),(0,r.jsx)(u,{id:f(e.id),block:n,label:"Direct link to tab"})]},e.id))}),l.map((e,t)=>(0,r.jsx)("div",{role:"tabpanel",id:e.id,"aria-labelledby":f(e.id),className:(0,s.t)("p-4",e.id!==b.id?"hidden":null),children:m[t]},e.id))]})}function f(e){return"tab-".concat(e)}},75848:function(e,t,n){"use strict";n.d(t,{PageControlButtons:function(){return d}});var r=n(27573),i=n(42172),a=n(7653),o=n(53984),s=n(53902),l=n(63530),c=n(33298);function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new URLSearchParams({});return(null==e?void 0:e.page)?t.set("page",e.page):t.delete("page"),(null==e?void 0:e.only)?t.set("only","yes"):t.delete("only"),(null==e?void 0:e.limit)&&t.set("limit",String(e.limit)),(null==e?void 0:e.back)&&t.set("back",String(e.back)),t}function d(e){var t;let{params:n,pageIds:d,total:p,trademark:m}=e,f=(0,l.ZK)(),h=a.useMemo(()=>d.map(e=>e[1]),[d]),x=(0,o.yh)(h,{threshold:0}),v=(x?h.indexOf(x):0)+1,y=null===(t=d[v-1])||void 0===t?void 0:t[0];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:(0,c.t)("fixed","left-12","bottom-12","flex","flex-col","gap-2","print:hidden","z-50"),children:[n.only?null:(0,r.jsx)(s.zx,{href:"?".concat(u({...n,page:y,only:!0}).toString()),variant:"secondary",label:(0,l.Ff)(f,"pdf_mode_only_page")}),(0,r.jsx)(s.zx,{href:"?".concat(u({...n,page:void 0,only:!1}).toString()),variant:"secondary",label:(0,l.Ff)(f,"pdf_mode_all")}),m?(0,r.jsx)("div",{className:(0,c.t)("mt-5"),children:m}):null]}),(0,r.jsxs)("div",{className:(0,c.t)("fixed","right-12","bottom-12","flex","flex-col","items-end","gap-2","print:hidden","z-50"),children:[p!==d.length?(0,r.jsxs)("div",{role:"banner",className:(0,c.t)("flex","flex-row","items-start","mb-5","bg-yellow-100","border-yellow-400","text-yellow-800","shadow-sm","border","rounded-md","p-4","max-w-sm"),children:[(0,r.jsx)(i.JO,{icon:"triangle-exclamation",className:(0,c.t)("size-6","mr-3","mt-1")})," ",(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{children:(0,l.t)(f,"pdf_limit_reached",p,d.length)}),(0,r.jsx)("div",{children:(0,r.jsx)("a",{href:"?".concat(u({...n,page:void 0,only:!1,limit:n.limit+50}).toString()),className:(0,c.t)("underline"),children:(0,l.t)(f,"pdf_limit_reached_continue",50)})})]})]}):null,(0,r.jsx)("div",{className:(0,c.t)("flex","flex-row","items-center","justify-center","text-lg","text-tint","px-6","py-2","bg-slate-100","rounded-full","shadow-sm","border-slate-300","border"),children:(0,l.t)(f,"pdf_page_of",v,d.length)})]})]})}},52070:function(e,t,n){"use strict";n.d(t,{PrintButton:function(){return a}});var r=n(27573),i=n(7653);function a(e){let{className:t,children:n,...a}=e,o=i.useCallback(()=>{window.print()},[]);return(0,r.jsx)("button",{...a,"data-testid":"print-button",onClick:o,className:t,children:n})}},1712:function(e,t,n){"use strict";n.r(t),n.d(t,{PageContext:function(){return a},PageContextProvider:function(){return o},usePageContext:function(){return s}});var r=n(27573),i=n(7653);let a=i.createContext(null);function o(e){let{pageId:t,spaceId:n,title:o,children:s}=e,l=i.useMemo(()=>({pageId:t,spaceId:n,title:o}),[t,n,o]);return(0,r.jsx)(a.Provider,{value:l,children:s})}function s(){let e=i.useContext(a);if(!e)throw Error("usePageContext must be used within a PageContextProvider");return e}},75489:function(e,t,n){"use strict";n.d(t,{ClientContexts:function(){return a}});var r=n(27573),i=n(63530);function a(e){let{children:t,language:n}=e;return(0,r.jsx)(i.Xg.Provider,{value:n,children:t})}},53984:function(e,t,n){"use strict";n.d(t,{wm:function(){return v},Hp:function(){return s},tm:function(){return c},yh:function(){return i},aG:function(){return l},_Z:function(){return h}});var r=n(7653);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{rootMargin:n,threshold:i=.5}=t,[a,o]=r.useState(e[0]),s=r.useRef(new Map);return r.useEffect(()=>{let t=e[0];if(o(n=>-1!==e.indexOf(n)?n:t),"undefined"==typeof IntersectionObserver)return;let r=new IntersectionObserver(e=>
10{e.forEach(e=>{let t=e.target.id;t&&s.current.set(t,e.isIntersecting&&e.intersectionRatio>=i)});let t=Array.from(s.current.entries()).find(e=>{let[,t]=e;return t});t&&o(t[0])},{rootMargin:n,threshold:i});return e.forEach(e=>{try{let t=document.getElementById(e);t&&r.observe(t)}catch(e){console.error("Failed to observe section",e)}}),()=>{r.disconnect()}},[e,i,n]),a}var a=n(81695);function o(){return window.location.hash.slice(1)}function s(){let e=(0,a.useParams)(),[t,n]=r.useState(o);return r.useEffect(()=>{n(o())},[e]),t}function l(e){let t=s(),n=(0,a.usePathname)();r.useLayoutEffect(()=>{if(t){let n=document.getElementById(t);n&&(e.scrollMarginTop&&(n.style.scrollMarginTop="".concat(e.scrollMarginTop,"px")),n.scrollIntoView({block:"start",behavior:"smooth"}))}else window.scrollTo(0,0);return()=>{if(t){let e=document.getElementById(t);e&&(e.style.scrollMarginTop="")}}},[t,n,e.scrollMarginTop])}function c(){let[e,t]=r.useState(!1);return r.useEffect(()=>{t(!0)},[]),e}var u=n(11349),d=n(74489);let p={opacity:1,height:"auto",display:"block"},m={opacity:0,height:0,transitionEnd:{display:"none"}},f=(0,u.E)(.02,{ease:e=>e**2});function h(e){let[t,n]=(0,d.H)(),i=r.useRef(void 0);(0,r.useLayoutEffect)(()=>{i.current=e});let a=i.current;return r.useEffect(()=>{if(void 0!==a&&a!==e)try{n(t.current,e?p:m,{duration:.1});let r="& > ul > li";e?n(r,{opacity:1},{delay:f}):n(r,{opacity:0})}catch(e){console.error(e)}},[a,e,n,t]),{show:p,hide:m,scope:t}}var x=n(79884);function v(){var e;let t=(0,a.useParams)(),n=null!==(e=(0,a.useSelectedLayoutSegment)())&&void 0!==e?e:"";return(0,r.useMemo)(()=>"string"==typeof t.pagePath?(0,x.FY)(decodeURIComponent(t.pagePath)):decodeURIComponent(n),[t.pagePath,n])}},75073:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var r=n(7653);function i(e,t){let n=(0,r.useRef)(e);(0,r.useLayoutEffect)(()=>{n.current=e}),(0,r.useEffect)(()=>{let e=null==t?void 0:t.current;if(!e)return;let r=!1,i=e=>{r||(requestAnimationFrame(()=>{n.current(e),r=!1}),r=!0)};return e.addEventListener("scroll",i,{passive:!0}),()=>{e.removeEventListener("scroll",i)}},[t])}},45343:function(e,t,n){"use strict";n.d(t,{ZoomImage:function(){return p}});var r=n(27573),i=n(42172),a=n(45254),o=n.n(a),s=n(7653),l=n(3458),c=n(33298),u=n(97746),d=n.n(u);function p(e){let{src:t,alt:n,width:i}=e,a=s.useRef(null),[c,u]=s.useState(!1),[p,h]=s.useState(!1),[x,v]=s.useState(!1),[y,g]=s.useState(null);s.useEffect(()=>{if("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)return;let e="number"==typeof i?i:0,t=0,n=window.matchMedia("(min-width: 768px)"),r="undefined"!=typeof ResizeObserver?new ResizeObserver(e=>{let n=e[0];if(n&&0!==n.contentRect.width){var r;t=null===(r=e[0])||void 0===r?void 0:r.contentRect.width,g(e[0].contentRect),o()}}):null,o=()=>{n.matches?r&&e&&t&&e<=t?u(!1):u(!0):u(!1)};return"addEventListener"in n&&n.addEventListener("change",o),a.current&&(null==r||r.observe(a.current)),r||o(),()=>{null==r||r.disconnect(),"removeEventListener"in n&&n.removeEventListener("change",o)}},[a,i]),c&&l.preload(t,{as:"image"});let b=s.useCallback(e=>{let n=new Image;n.src=t,n.onload=()=>{null==e||e()}},[t]),j=s.useCallback(()=>{f(()=>{v(!1)},()=>{h(!1)})},[]);return(0,r.jsx)(r.Fragment,{children:x?(0,r.jsxs)(r.Fragment,{children:[y?(0,r.jsx)("span",{style:{display:"block",width:y.width,height:y.height}}):null,l.createPortal((0,r.jsx)(m,{src:t,crossOrigin:e.crossOrigin,alt:null!=n?n:"",onClose:j}),document.body)]}):(0,r.jsx)("img",{"data-testid":"zoom-image",ref:a,...e,alt:null!=n?n:"",onMouseEnter:()=>{c&&b()},onClick:()=>{c&&b(()=>{l.flushSync(()=>h(!0)),f(()=>{v(!0)})})},className:o()(e.className,c?d().zoomImg:null,p?d().zoomImageActive:null)})})}function m(e){let{src:t,alt:n,crossOrigin:a,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,r.jsxs)("div",{"data-testid":"zoom-image-modal",className:o()(d().zoomModal,(0,c.t)("fixed","inset-0","z-50","flex","items-center","justify-center","bg-tint-base/4","backdrop-blur-2xl","p-8")),onClick:l,children:[(0,r.jsx)("img",{src:t,alt:n,crossOrigin:a,className:(0,
10c.t)("max-w-full","max-h-full","object-contain","bg-tint-base")}),(0,r.jsx)("button",{ref:u,className:(0,c.t)("absolute","top-5","right-5","flex","flex-row","items-center","justify-center","text-sm","text-tint","hover:text-tint","hover:bg-tint","hover:border-tint","p-4","rounded-full","bg-tint","border","border-tint","shadow-sm","hover:shadow-md"),onClick:l,children:(0,r.jsx)(i.JO,{icon:"close",className:(0,c.t)("size-5")})})]})}function f(e,t){if(document.startViewTransition)try{document.startViewTransition(()=>{l.flushSync(()=>e())}).finished.then(()=>{t&&t()})}catch(n){if(n instanceof Error&&("AbortError"===n.name||"InvalidStateError"===n.name)){e(),null==t||t();return}throw n}else e(),null==t||t()}},79884:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.join("/").replace(/\/+/g,"/")}function i(e){return e.replace(/^\/+/,"")}n.d(t,{FY:function(){return i},Vo:function(){return r}})},84308:function(e,t,n){"use strict";n.r(t),n.d(t,{ContentKit:function(){return s}});var r=n(27573),i=n(7653),a=n(68595),o=n(32775);function s(e){var t;let{renderContext:n,security:l,initialInput:c,initialOutput:u,children:d,render:p,onAction:m,onComplete:f}=e,[h,x]=i.useState({input:c,children:d,output:u,state:null!==(t=u.state)&&void 0!==t?t:{}}),[v,y]=i.useState(null),g=i.useCallback(async e=>{var t;let r={...h.input,...(null===(t=h.output)||void 0===t?void 0:t.props)?{props:h.output.props}:{},...e,state:{...h.input.state,...h.state,...e.state}},i=await p({renderContext:n,request:r}),a=i.output;if("complete"===a.type)return null==f?void 0:f(a.returnValue);x(e=>({input:r,children:i.children,output:a,state:e.state}))},[x,h,p,f]),b=i.useMemo(()=>({security:l,state:h.state,setState:e=>{x(t=>({...t,state:{...t.state,...e}}))},update:g,dispatchAction:async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=(0,o.a)(h.state,e);switch(t&&(null==m||m(r)),r.action){case"@ui.modal.open":{let e={componentId:r.componentId,props:r.props,context:h.input.context,action:r},t=await p({renderContext:n,request:e});"element"!==t.output.type&&t.output.type||y({mode:"modal",initialInput:e,initialOutput:t.output,initialChildren:t.children});break}case"@ui.url.open":window.open(r.url,"_blank");break;default:await g({action:r})}}}),[g,l,h.state,h.input.context,x,p]),j=i.useCallback(async e=>{"@ui.modal.close"===e.action&&(g({action:e}),y(null))},[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.l.Provider,{value:b,children:h.children}),v?(0,r.jsx)(s,{renderContext:n,security:l,initialInput:v.initialInput,initialOutput:v.initialOutput,render:p,onAction:j,children:v.initialChildren}):null]})}},69125:function(e,t,n){"use strict";n.r(t),n.d(t,{ElementButton:function(){return c}});var r=n(27573),i=n(42172),a=n(7653),o=n(45254),s=n.n(o),l=n(68595);function c(e){var t;let{element:n,icon:o,trailingIcon:c}
10=e,u=(0,l.D)(),[d,p]=a.useState(!1);return(0,r.jsx)("button",{title:n.tooltip,className:s()("contentkit-button","contentkit-button-style-".concat(null!==(t=n.style)&&void 0!==t?t:"secondary")),onClick:e=>{n.disabled||d||(e.stopPropagation(),p(!0),u.dispatchAction(n.onPress).finally(()=>{p(!1)}))},children:d?(0,r.jsx)(i.JO,{icon:"spinner",className:"contentkit-button-loading"}):(0,r.jsxs)(r.Fragment,{children:[o,n.label?(0,r.jsx)("span",{className:"contentkit-button-label",children:n.label}):null,c]})})}},77266:function(e,t,n){"use strict";n.d(t,{ElementCard:function(){return s}});var r=n(27573),i=n(45254),a=n.n(i),o=n(68595);function s(e){let{element:t,children:n,icon:i,hint:s,buttons:l}=e,c=(0,o.D)();return(0,r.jsxs)("div",{className:a()("contentkit-card",t.onPress?"contentkit-card-pressable":null),onClick:()=>{t.onPress&&c.dispatchAction(t.onPress)},children:[t.title?(0,r.jsxs)("div",{className:a()("contentkit-card-header"),children:[i?(0,r.jsx)("div",{className:a()("contentkit-card-icon"),children:i}):null,(0,r.jsxs)("div",{className:a()("contentkit-card-header-content"),children:[(0,r.jsx)("div",{className:a()("contentkit-card-title"),children:t.title}),s?(0,r.jsx)("div",{className:a()("contentkit-card-hint"),children:s}):null]}),l&&l.length>0?(0,r.jsx)("div",{className:a()("contentkit-card-buttons"),children:l}):null]}):null,n?(0,r.jsx)("div",{className:a()("contentkit-card-body"),children:n}):null]})}},13672:function(e,t,n){"use strict";n.d(t,{ElementMarkdownClient:function(){return s}});var r=n(27573),i=n(7653),a=n(68595),o=n(32775);function s(e){let{element:t,initialMarkdown:n=t.content,renderMarkdown:s,children:l}=e,[c,u]=i.useState(null),d=(0,a.D)(),p=(0,o.a)(d.state,t.content);return i.useEffect(()=>{if(n===p){u(null);return}let e=!1;return(async()=>{let t=await s(p);e||u(t)})(),()=>{e=!0}},[n,p]),(0,r.jsx)(r.Fragment,{children:c||l})}},15783:function(e,t,n){"use strict";n.d(t,{ElementModal:function(){return l}});var r=n(27573),i=n(7653),a=n(45254),o=n.n(a),s=n(68595);function l(e){let{element:t,subtitle:n,children:a}=e,l=(0,s.D)(),[c,u]=i.useState(!1);i.useEffect(()=>{u(!0)},[]);let d=async()=>{await l.dispatchAction({action:"@ui.modal.close",returnValue:t.returnValue||{}})};return(0,r.jsx)("div",{className:o()("contentkit-modal-backdrop"),onClick:d,children:(0,r.jsxs)("div",{className:o()("contentkit-modal",c?"contentkit-modal-opened":null),onClick:e=>{e.stopPropagation()},children:[(0,r.jsxs)("div",{className:o()("contentkit-modal-header"),children:[t.title?(0,r.jsx)("h1",{className:o()("contentkit-modal-title"),children:t.title}):null,n?(0,r.jsx)("div",{className:"contentkit-modal-subtitle",children:n}):null]}),(0,r.jsx)("div",{className:o()("contentkit-modal-body"),children:a})]})})}},13870:function(e,t,n){"use strict";n.r(t),n.d(t,{ElementTextInput:function(){return l}});var r=n(27573),i=n(45254),a=n.n(i),o=n(68595),s=n(32775);function l(e){var t,n,i;let{element:l}=e,c=(0,o.D)(),u=null!==(n=null!==(t=(0,s.g)(c.state,l.state))&&void 0!==t?t:l.initialValue)&&void 0!==n?n:"",d=e=>{c.setState({[l.state]:e.target.value})};return l.multiline?(0,r.jsx)("textarea",{disabled:l.disabled,className:a()("contentkit-textinput"),value:u,placeholder:l.placeholder,onChange:d,rows:4}):(0,r.jsx)("input",{type:null!==(i=l.inputType)&&void 0!==i?i:"text",disabled:l.disabled,className:a()("contentkit-textinput"),value:u,placeholder:l.placeholder,onChange:d})}},50665:function(e,t,n){"use strict";n.d(t,{ElementWebframe:function(){return s}});var r=n(27573),i=n(7653),a=n(68595),o=n(32775);function s(e){let{element:t}=e,[n,s]=i.useState(!1),l=(0,a.D)(),c=i.useRef(null),[u,d]=i.useState({}),p=i.useRef(!1),m=i.useRef([]),f=i.useCallback(e=>{let n=new URL(t.source.url);if(l.security.firstPartyDomains.includes(n.host)){if(p.current){var r;if(!c.current)return;null===(r=c.current.contentWindow)||void 0===r||r.postMessage(e,"".concat(n.protocol,"//").concat(n.host))}else m.current.push(e)}},[l.security]);if(i.useEffect(()=>{let e=e=>{if(!c.current)return;let t=e.data;if(!URL.canParse(e.origin))return;let n=new URL(e.origin);if(!l.security.firstPartyDomains.includes(n.host))return;let r=c.current.contentWindow;if(r&&e.source===r){if("string"==typeof t)try{let e=JSON.parse(t);if("iframe.resize"===e.context&&"number"==typeof e.height){let t=r.outerWidth,n=e.he
10ight;d({aspectRatio:t/n,height:n})}}catch(e){return}if(t.action)switch(t.action.action){case"@webframe.ready":p.current=!0,m.current.forEach(e=>{f(e)}),m.current=[];break;case"@webframe.resize":d(e=>({aspectRatio:void 0!==t.action.size.aspectRatio?Number(t.action.size.aspectRatio):e.aspectRatio,height:void 0!==t.action.size.height?Number(t.action.size.height):void 0!==t.action.size.maxHeight?Number(t.action.size.maxHeight):e.height}));break;default:l.update({action:t.action})}}};return window.addEventListener("message",e),s(!0),()=>{window.removeEventListener("message",e)}},[l,f]),i.useEffect(()=>{if(!t.data)return;let e={};return Object.entries(t.data).forEach(t=>{let[n,r]=t;e[n]=(0,o.a)(l.state,r)}),f({state:e})},[t.data,l.state,f]),!n)return null;let h=u.aspectRatio||t.aspectRatio;return(0,r.jsx)("iframe",{ref:c,src:t.source.url,title:t.source.url,allowFullScreen:!0,allow:"clipboard-write",className:"contentkit-webframe",style:{width:"100%",maxWidth:"100%",aspectRatio:h,height:u.height?Math.max(u.height,32):"100%",border:"none"}})}},68595:function(e,t,n){"use strict";n.d(t,{D:function(){return a},l:function(){return i}});var r=n(7653);let i=r.createContext(null);function a(){let e=r.useContext(i);if(!e)throw Error("ContentKit component should be wrapped in <ContentKit>");return e}},32775:function(e,t,n){"use strict";function r(e,t){let n=e[t];return"string"==typeof n?n:"number"==typeof n?"".concat(n):void 0}n.d(t,{a:function(){return function e(t,n){if("string"==typeof n||"number"==typeof n||"boolean"==typeof n||void 0===n)return n;if(Array.isArray(n))return n.map(n=>e(t,n));if("$state"in n&&"string"==typeof n.$state)return t[n.$state];let r={};return Object.entries(n).forEach(n=>{let[i,a]=n;r[i]=e(t,a)}),r}},g:function(){return r}})},54464:function(e,t,n){"use strict";n.r(t),n.d(t,{InteractiveSection:function(){return m}});var r=n(27573),i=n(10607),a=n(7653),o=n(71749),s=n(36559),l=n(52111),c=n(42184),u=n(22660),d=n(80254),p=n(72597);function m(e){var t,n,m=e.id,f=e.className,h=e.toggeable,x=void 0!==h&&h,v=e.defaultOpened,y=e.tabs,g=void 0===y?[]:y,b=e.defaultTab,j=void 0===b?null===(t=g[0])||void 0===t?void 0:t.key:b,k=e.header,N=e.overlay,w=e.toggleIcon,O=e.selectIcon,S=e.stateKey,C=void 0===S?"interactive-section":S,E=(0,u.b)({defaultExpanded:void 0===v||v}),I=(0,a.useRef)(null),P=(0,a.useRef)(null),_=(0,o.q)({},E,I),T=_.buttonProps,R=_.panelProps,A=(0,s.U)(T,P).buttonProps,M=(0,l.F)(),K=M.isFocusVisible,F=M.focusProps,z=(0,d.dW)(C,j),L=null!==(n=g.find(function(e){return e.key===z.key}))&&void 0!==n?n:g[0];return(0,r.jsxs)(p.$0,{id:m,className:(0,i.Z)("openapi-section",x?"openapi-section-toggeable":null,f,x?"".concat(f,"-").concat(E.isExpanded?"opened":"closed"):null),children:[k?(0,r.jsxs)(p.M$,{onClick:function(){x&&E.toggle()},className:f,children:[(0,r.jsxs)(p.Qw,{className:f,children:[(null==L?void 0:L.body)&&x?(0,r.jsx)("button",{...(0,c.d)(A,F),ref:P,className:(0,i.Z)("openapi-section-toggle","".concat(f,"-toggle")),style:{outline:K?"2px solid rgb(var(--primary-color-500) / 0.4)":"none"},children:void 0===w?"â¶":w}):null,k]}),(0,r.jsx)("div",{className:(0,i.Z)("openapi-section-header-controls","".concat(f,"-header-controls")),onClick:function(e){e.stopPropagation()},children:g.length>1?(0,r.jsx)(d.T8,{stateKey:C,items:g,onSelectionChange:function(){E.expand()},icon:O,placement:"bottom end",children:g.map(function(e){return(0,r.jsx)(d.D$,{id:e.key,value:e,children:e.label},e.key)})}):null})]}):null,(!x||E.isExpanded)&&(null==L?void 0:L.body)?(0,r.jsx)(p.tr,{ref:I,...R,className:f,children:null==L?void 0:L.body}):null,N?(0,r.jsx)("div",{className:(0,i.Z)("openapi-section-overlay","".concat(f,"-overlay")),children:N}):null]})}},53841:function(e,t,n){"use strict";n.d(t,{U:function(){return a}});var r=n(27573),i=n(10607);function a(e){var t=e.source,n=e.className;return(0,r.jsx)("div",{className:(0,i.Z)("openapi-markdown",n),dangerouslySetInnerHTML:{__html:t}})}},97325:function(e,t,n){"use strict";n.d(t,{OpenAPIMediaTypeExamplesBody:function(){return u},OpenAPIMediaTypeExamplesSelector:function(){return s}});var r=n(27573),i=n(10607),a=n(80254),o=n(36191);function s(e){var t=e.method,n=e.path,i=e.renderers,s=e.selectIcon,u=e.blockKey;if(!i[0])throw Error("No renderers provided");var d=(0,o.Xe)("request-body-media-type",u),p=(0,a.dW)(d,i[0].mediaType),m=i.find(function(e){return e.mediaType===p.key})||i[0];return(0,r.jsxs)("div",{className:"openapi-codesample-selectors",children:[(0,r.jsx)(l,{selectIcon:s,stateKey:d,renderers:i}),(0,r.jsx)(c,{selectIcon:s,method:t,path:n,renderer:m})]})}function l(e){var t=e.renderers,n=e.stateKey,o=e.selectIcon;if(t.length<2)return null;var s=t.map(function(e){return{key:e.mediaType,label:e.mediaType}});return(0,r.jsx)(a.T8,{className:(0,i.Z)("openapi-select"),items:t.map(function(e){return{key:e.mediaType,label:e.mediaType}}),icon:o,stateKey:n,placement:"bottom start",children:s.map(function(e){return(0,r.jsx)(a.D$,{id:e.key,value:e,children:e.label},e.key)})})}function c(e){var t=e.method,n=e.path,i=e.renderer,o=e.selectIcon;if(i.examples.length<2)return null;var s=i.examples.map(function(e,t){return{key:t,label:e.example.summary||"Example ".concat(t+1)}});return(0,r.jsx)(a.T8,{items:s,icon:o,stateKey:"media-type-sample-".concat(i.mediaType,"-").concat(t,"-").concat(n),placement:"bottom start",children:s.map(function(e){return(0,r.jsx)(a.D$,{id:e.key,value:e,children:e.label},e.key)})})}function u(e){var t,n=e.renderers,i=e.method,s=e.path,l=e.blockKey;if(!n[0])throw Error("No renderers provided");var c=(0,a.dW)((0,o.Xe)("request-body-media-type",l),n[0].mediaType),u=null!==(t=n.find(function(e){return e.mediaType===c.key}))&&void 0!==t?t:n[0];return 0===u.examples.length?u.element:(0,r.jsx)(d,{method:i,path:s,renderer:u})}function d(e){var t,n=e.method,r=e.path,i=e.renderer,o=(0,a.dW)("media-type-sample-".concat(i.mediaType,"-").concat(n,"-").concat(r),i.mediaType),s=null!==(t=i.examples[Number(o.key)])&&void 0!==t?t:i.examples[0];if(!s)throw Error("No example found for key ".concat(o.key));return s.element}},83789:function(e,t,n){"use strict";n.d(t,{OpenAPICodeSampleBody:function(){return p}});var r=n(27573),i=n(7653),a=n(97119),o=n(45180);function s(e){var t,n,i,a,s=e.data,l=e.context,c=e.withServer,u=void 0===c||c,d=e.canCopy,p=s.method,m=s.path,f=s.operation,h=(a=s.servers[0])?(function(e){for(var t=e.split(/{([^}]+)}/g),n=[],r=0;r<t.length;r++){var i=t[r];
10i&&(r%2==0?n.push({kind:"text",text:i}):n.push({kind:"variable",name:i}))}return n})(null!==(t=null==a?void 0:a.url)&&void 0!==t?t:"").map(function(e){var t,n,r;return"text"===e.kind?e.text:null!==(r=null===(n=null===(t=a.variables)||void 0===t?void 0:t[e.name])||void 0===n?void 0:n.default)&&void 0!==r?r:"{".concat(e.name,"}")}).join(""):"",x=(n=[],i=0,m.replace(/\{\s*(\w+)\s*\}|:\w+/g,function(e,t,a){return a>i&&n.push(m.slice(i,a)),n.push((0,r.jsx)("span",{className:"openapi-path-variable",children:e},"offset-".concat(a))),i=a+e.length,e}),i<m.length&&n.push(m.slice(i)),n.map(function(e,t){return"string"==typeof e?(0,r.jsx)("span",{children:e},"part-".concat(t)):e})),v=(0,r.jsxs)(r.Fragment,{children:[u?(0,r.jsx)("span",{className:"openapi-path-server",children:h}):null,x]});return(0,r.jsxs)("div",{className:"openapi-path",children:[(0,r.jsx)("div",{className:"openapi-method openapi-method-".concat(p),children:p}),(0,r.jsx)(o.OpenAPICopyButton,{value:"".concat(u?h:"").concat(m),className:"openapi-path-title","data-deprecated":f.deprecated,isDisabled:!(void 0===d||d),context:{translation:l.translation,icons:l.icons,defaultInteractiveOpened:l.defaultInteractiveOpened,blockKey:l.blockKey,id:l.id,$$isClientContext$$:!0},children:v})]})}var l=n(80254),c=n(72597),u=n(72850);function d(e){var t=e.data,n=e.items,i=e.selectIcon,a=e.context;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s,{context:a,canCopy:!1,withServer:!1,data:t}),n.length>1?(0,r.jsx)(l.T8,{icon:i,items:n,stateKey:"codesample",placement:"bottom end",children:n.map(function(e){return(0,r.jsx)(l.D$,{id:e.key,value:e,children:e.label},e.key)})}):n[0]?(0,r.jsx)("span",{className:"openapi-codesample-label",children:n[0].label}):null]})}function p(e){var t,n,o,s=e.items,l=e.data,p=e.selectIcon,m=e.context;if(!s[0])throw Error("No items provided");var f=(void 0===(t=null===(o=s[0])||void 0===o?void 0:o.key)&&(t="default"),{key:(n=(0,a.o)((0,u.u)("codesample",t))).key,setKey:(0,i.useCallback)(function(e){return n.setKey(e)},[n.setKey])}),h=s.find(function(e){return e.key===f.key})||s[0];return h?(0,r.jsx)(c.Qp,{header:(0,r.jsx)(d,{context:m,selectIcon:p,data:l,items:s}),className:"openapi-codesample",children:(0,r.jsxs)("div",{id:h.key,className:"openapi-codesample-panel",children:[h.body?h.body:null,h.footer?h.footer:null]})}):null}},45180:function(e,t,n){"use strict";n.d(t,{OpenAPICopyButton:function(){return l}});var r=n(27573),i=n(7653),a=n(49888),o=n(21787),s=n(83401);function l(e){var t=e.value,n=e.label,l=e.children,c=e.onPress,u=e.className,d=e.context,p=e.withTooltip,m=(0,i.useState)(!1),f=m[0],h=m[1],x=(0,i.useState)(!1),v=x[0],y=x[1],g=function(){t&&navigator.clipboard.writeText(t).then(function(){y(!0),h(!0),setTimeout(function(){h(!1),y(!1)},2e3)})};return(0,r.jsxs)(a.aJ,{isOpen:v,onOpenChange:y,isDisabled:!(void 0===p||p),closeDelay:200,delay:200,children:[(0,r.jsx)(o.z,{type:"button",preventFocusOnPress:!0,onPress:function(e){g(),null==c||c(e)},className:"openapi-copy-button ".concat(u),...e,children:l}),(0,r.jsx)(a.u,{isOpen:v,onOpenChange:y,placement:"top",offset:4,className:"openapi-tooltip",children:f?(0,s.t)(d.translation,"copied"):n||(0,s.t)(d.translation,"copy_to_clipboard")})]})}},16587:function(e,t,n){"use strict";n.d(t,{a:function(){return l}});var r=n(27573),i=n(10607),a=n(7653),o=n(30474),s=n(21787);function l(e){var t=e.icon,n=e.header,l=e.label,c=e.children,u=e.className,d=(0,a.useState)(!1),p=d[0],m=d[1];return(0,r.jsxs)(o.pJ,{className:(0,i.Z)("openapi-disclosure",u),isExpanded:p,onExpandedChange:m,children:[(0,r.jsxs)(s.z,{slot:"trigger",className:"openapi-disclosure-trigger",style:function(e){return{outline:e.isFocusVisible?"2px solid rgb(var(--primary-color-500) / 0.4)":"none"}},children:[n,(0,r.jsxs)("div",{className:"openapi-disclosure-trigger-label",children:[(0,r.jsx)("span",{children:"function"==typeof l?l(p):l}),t]})]}),(0,r.jsx)(o.V2,{className:"openapi-disclosure-panel",children:p?c:null})]})}},41105:function(e,t,n){"use strict";n.r(t),n.d(t,{OpenAPIMediaTypeContent:function(){return c},useMediaTypesState:function(){return l}});var r=n(27573),i=n(83401);function a(e){var t=e.context;return(0,r.jsx)("pre",{className:"openapi-example-empty",children:(0,r.jsx)("p",{children:(0,i.t)(t.translation,"no_content")})})}var o=n(80254),s=n(72597);function l(e,t){return void 0===t&&(t="default"),(0,o.dW)(e,t)}function c(e){var t,n,i,a=e.stateKey,o=e.items,c=e.selectIcon,p=e.context,m=l(a,null===(t=o[0])||void 0===t?void 0:t.key),f=null!==(i=null===(n=o.find(function(e){return e.key===m.key}))||void 0===n?void 0:n.examples)&&void 0!==i?i:[];return o.length||f.length?(0,r.jsx)(s.Qp,{footer:o.length>1||f.length>1?(0,r.jsx)(u,{items:o,examples:f,selectIcon:c,stateKey:a}):null,className:"openapi-response-media-types-examples",children:(0,r.jsx)(d,{context:p,stateKey:a,items:o,examples:f})}):null}function u(e){var t=e.items,n=e.examples,i=e.stateKey,a=e.selectIcon;return(0,r.jsxs)(r.Fragment,{children:[t.length>1&&(0,r.jsx)(o.T8,{icon:a,items:t,stateKey:i,placement:"bottom start",children:t.map(function(e){return(0,r.jsx)(o.D$,{id:e.key,value:e,children:(0,r.jsx)("span",{children:e.label})},e.key)})}),n&&n.length>1?(0,r.jsx)(o.T8,{icon:a,items:n,stateKey:"".concat(i,"-examples"),placement:"bottom start",children:n.map(function(e){return(0,r.jsx)(o.D$,{id:e.key,value:e,children:(0,r.jsx)("span",{children:e.label})},e.key)})}):null]})}function d(e){var t,n,i,s,c,u,d,p=e.stateKey,m=e.items,f=e.examples,h=e.context,x=l(p,null===(i=m[0])||void 0===i?void 0:i.key),v=null!==(s=m.find(function(e){return e.key===x.key}))&&void 0!==s?s:m[0],y=(t="".concat(p,"-examples"),void 0===(n=null===(u=null===(c=null==v?void 0:v.examples)||void 0===c?void 0:c[0])||void 0===u?void 0:u.ke
10y)&&(n="default"),(0,o.dW)(t,n));if(!v)return null;if(f){var g=null!==(d=f.find(function(e){return e.key===y.key}))&&void 0!==d?d:f[0];return g?g.body:(0,r.jsx)(a,{context:h})}return v.body}},63770:function(e,t,n){"use strict";n.d(t,{OpenAPIResponseExampleContent:function(){return c},x:function(){return l}});var r=n(27573),i=n(10607),a=n(80254),o=n(72597),s=n(36191);function l(e,t){return void 0===t&&(t="default"),(0,a.dW)(p(e),t)}function c(e){var t=e.blockKey,n=e.items,i=e.selectIcon;return(0,r.jsx)(o.Qp,{header:(0,r.jsx)(u,{selectIcon:i,blockKey:t,items:n}),className:"openapi-response-examples",children:(0,r.jsx)(d,{blockKey:t,items:n})})}function u(e){var t=e.items,n=e.blockKey,o=e.selectIcon;if(1===t.length){var l=t[0];return l?(0,r.jsxs)("span",{className:"openapi-response-examples-statuscode-title",children:[(0,r.jsx)("span",{className:(0,i.Z)("openapi-statuscode","openapi-statuscode-".concat((0,s.m6)(l.statusCode)),"openapi-response-examples-statuscode"),children:l.statusCode}),(0,r.jsx)("span",{children:l.label})]}):null}return(0,r.jsx)(a.T8,{items:t,icon:o,stateKey:p(n),placement:"bottom start",children:t.map(function(e){return(0,r.jsxs)(a.D$,{id:e.key,value:e,children:[(0,r.jsx)("span",{className:(0,i.Z)("openapi-statuscode","openapi-statuscode-".concat((0,s.m6)(e.statusCode)),"openapi-response-examples-statuscode"),children:e.statusCode}),(0,r.jsx)("span",{children:e.label})]},e.key)})})}function d(e){var t,n,i=e.blockKey,a=e.items,o=l(i,null===(t=a[0])||void 0===t?void 0:t.key),s=null!==(n=a.find(function(e){return e.key===o.key}))&&void 0!==n?n:a[0];return s?(0,r.jsx)("div",{className:"openapi-response-examples-panel",children:s.body}):null}function p(e){return(0,s.Xe)("openapi-responses",e)}},64701:function(e,t,n){"use strict";n.d(t,{OpenAPIResponses:function(){return E}});var r=n(27573),i=n(10607),a=n(53841),o=n(7653),s=n(60992),l=n(71749),c=n(36559),u=n(52111),d=n(42184),p=n(97335),m=n(22660),f=n(80254),h=function(){return(h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},x=(0,o.createContext)(null);function v(e){var t=e.icon,n=e.groups,i=e.selectStateKey,a=e.selectIcon,o=(0,p.Q)(e);return(0,r.jsx)(x.Provider,{value:o,children:n.map(function(e){return(0,r.jsx)(y,{selectStateKey:i,selectIcon:a,icon:t,group:e},e.key)})})}function y(e){var t,n,i,a,p,v,y,g=e.icon,b=e.group,j=e.selectStateKey,k=e.selectIcon,N=(0,s.Me)(),w=b.key||N,O=(0,o.useContext)(x),S=(null==O?void 0:O.expandedKeys.has(w))||!1,C=(0,m.b)({isExpanded:S,onExpandedChange:function(){O&&O.toggleKey(w)}}),E=(0,o.useRef)(null),I=(0,o.useRef)(null),P=(null==O?void 0:O.isDisabled)||!(null===(t=b.tabs)||void 0===t?void 0:t.length)||!1,_=(0,l.q)(h(h({},e),{isExpanded:S,isDisabled:P}),C,E),T=_.buttonProps,R=_.panelProps,A=(0,c.U)(T,I).buttonProps,M=(0,u.F)(),K=M.isFocusVisible,F=M.focusProps,z=(null===(i=null===(n=b.tabs)||void 0===n?void 0:n[0])||void 0===i?void 0:i.key)||"",L=(0,f.dW)(j,z),q=(null===(a=b.tabs)||void 0===a?void 0:a.find(function(e){return e.key===L.key}))||(null===(p=b.tabs)||void 0===p?void 0:p[0]);return(0,r.jsxs)("div",{className:"openapi-disclosure-group","aria-expanded":C.isExpanded,children:[(0,r.jsxs)("div",{slot:"trigger",ref:I,...(0,d.d)(A,F),"aria-disabled":P,style:{outline:K?"2px solid rgb(var(--primary-color-500)/0.4)":"none"},className:"openapi-disclosure-group-trigger",children:[(0,r.jsx)("div",{className:"openapi-disclosure-group-icon",children:g||(0,r.jsx)("svg",{viewBox:"0 0 24 24",className:"openapi-disclosure-group-icon",children:(0,r.jsx)("path",{d:"m8.25 4.5 7.5 7.5-7.5 7.5"})})}),(0,r.jsxs)("div",{className:"openapi-disclosure-group-label",children:[b.label,b.tabs?(0,r.jsx)("div",{className:"openapi-disclosure-group-mediatype",onClick:function(e){return e.stopPropagation()},children:(null===(v=b.tabs)||void 0===v?void 0:v.length)>1?(0,r.jsx)(f.T8,{icon:k,stateKey:j,onSelectionChange:function(){C.expand()},items:b.tabs,placement:"bottom end",children:b.tabs.map(function(e){return(0,r.jsx)(f.D$,{id:e.key,value:e,children:e.label},e.key)})}):(null===(y=b.tabs[0])||void 0===y?void 0:y.label)?(0,r.jsx)("span",{children:b.tabs[0].label}):null}):null]})]}),C.isExpanded&&q&&(0,r.jsx)("div",{className:"openapi-disclosure-group-panel",ref:E,...R,children:q.body})]})}var g=n(16587),b=n(87363),j=n(70025),k=n(83401),N=n(36191),w=function(){return(w=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function O(e){var t,n,i=e.response,a=e.context,o=e.mediaType,s=Object.entries(null!==(t=i.headers)&&void 0!==t?t:{}).map(function(e){var t=e[0],n=e[1];return[t,null!=n?n:{}]}),l=Object.entries(null!==(n=o.schema)&&void 0!==n?n:{}),c=(0,N._y)(i);return 0!==l.length||c||0!==s.length?(0,r.jsxs)("div",{className:"openapi-response-body",children:[s.length>0?(0,r.jsx)(g.a,{header:(0,r.jsx)(b.t,{context:a,property:{propertyName:(0,k.F)(a.translation,"headers"),schema:{type:"object"},required:null}}),icon:a.icons.plus,label:function(e){return(0,k.F)(a.translation,e?"hide":"show",(0,k.F)(a.translation,1===s.length?"header":"headers"))},children:(0,r.jsx)(j.a,{properties:s.map(function(e){var t=e[0],n=e[1];
10return(0,N.YW)(w({name:t},n))}),context:a})}):null,o.schema&&(0,r.jsx)("div",{className:"openapi-responsebody",children:(0,r.jsx)(j.a,{id:"response-".concat(a.blockKey),properties:[{schema:o.schema,propertyName:(0,k.F)(a.translation,"response"),required:null}],context:a})})]}):null}var S=n(63770),C=n(72597);function E(e){var t,n=e.responses,o=e.context,s=Object.entries(n).filter(function(e){e[0];var t=e[1];return t&&"object"==typeof t}).map(function(e){var t,n=e[0],s=e[1],l=(!s.content||!Object.keys(s.content).length)&&s.headers&&Object.keys(s.headers).length?[{key:"default",label:"",body:(0,r.jsx)(O,{response:s,mediaType:{},context:o})}]:Object.entries(null!==(t=s.content)&&void 0!==t?t:{}).map(function(e){var t=e[0],n=e[1];return{key:t,label:t,body:(0,r.jsx)(O,{response:s,mediaType:n,context:o})}}),c=s.description;return{key:n,label:(0,r.jsxs)("div",{className:"openapi-response-tab-content",children:[(0,r.jsx)("span",{className:(0,i.Z)("openapi-statuscode","openapi-statuscode-".concat((0,N.m6)(n))),children:n}),c?(0,r.jsx)(a.U,{source:c,className:"openapi-response-description"}):(0,N.Jk)(n,o)]}),tabs:l}}),l=(0,S.x)(o.blockKey,null===(t=s[0])||void 0===t?void 0:t.key);return(0,r.jsx)(C.Qp,{header:(0,k.t)(o.translation,"responses"),className:"openapi-responses",children:(0,r.jsx)(v,{icon:o.icons.chevronRight,expandedKeys:l.key?new Set([l.key]):new Set,onExpandedChange:function(e){var t,n=null!==(t=e.values().next().value)&&void 0!==t?t:null;l.setKey(n)},groups:s,selectIcon:o.icons.chevronDown,selectStateKey:(0,N.Xe)("response-media-types",o.blockKey)})})}},87363:function(e,t,n){"use strict";n.d(t,{OpenAPIRootSchemaFromServer:function(){return k},t:function(){return C},OpenAPISchemaPropertiesFromServer:function(){return b}});var r=n(27573),i=n(7653),a=n(10607),o=n(53841),s=n(45180),l=n(16587),c=n(83401);function u(e){var t,n=e.schema,i=e.type,a=e.propertyName,o=e.required,s=e.context,l=n&&(t="",(n.minimum||n.minLength||n.minItems)&&(t+=" \xb7 ".concat((0,c.F)(s.translation,"min").toLowerCase(),": ").concat(n.minimum||n.minLength||n.minItems)),(n.maximum||n.maxLength||n.maxItems)&&(t+=" \xb7 ".concat((0,c.F)(s.translation,"max").toLowerCase(),": ").concat(n.maximum||n.maxLength||n.maxItems)),n.nullable&&(t=" | ".concat((0,c.F)(s.translation,"nullable").toLowerCase())),t);return(0,r.jsxs)("span",{className:"openapi-schema-name",children:[a?(0,r.jsx)("span",{"data-deprecated":null==n?void 0:n.deprecated,className:"openapi-schema-propertyname",children:a}):null,(0,r.jsxs)("span",{children:[i?(0,r.jsx)("span",{className:"openapi-schema-type",children:i}):null,l?(0,r.jsx)("span",{className:"openapi-schema-type",children:l}):null]}),(null==n?void 0:n.readOnly)?(0,r.jsx)("span",{className:"openapi-schema-readonly",children:(0,c.t)(s.translation,"read_only")}):null,(null==n?void 0:n.writeOnly)?(0,r.jsx)("span",{className:"openapi-schema-writeonly",children:(0,c.t)(s.translation,"write_only")}):null,null===o?null:o?(0,r.jsx)("span",{className:"openapi-schema-required",children:(0,c.t)(s.translation,"required")}):(0,r.jsx)("span",{className:"openapi-schema-optional",children:(0,c.t)(s.translation,"optional")}),(null==n?void 0:n.deprecated)?(0,r.jsx)("span",{className:"openapi-deprecated",children:(0,c.t)(s.translation,"deprecated")}):null]})}var d=n(35682),p=n(10895),m=n(92870),f=n(36191),h=function(){return(h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},v=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};function y(e){var t=e.circularRefs,n=e.context,o=e.className,s=e.property,c=x(e,["circularRefs","context","className","property"]),u=s.schema,d=(0,i.useId)(),m=t.get(u);if(m)return(0,r.jsx)(O,{id:m,schema:u});var y=new Map(t);y.set(u,d);var b=E(u),j=function e(t,n){if(void 0===n&&(n=new Set),t.items&&("oneOf"in t.items||"allOf"in t.items||"anyOf"in t.items))return e(t.items,n);var r,i,a,o=t.anyOf?["anyOf",t.anyOf]:t.oneOf?["oneOf",t.oneOf]:t.allOf?["allOf",t.allOf]:null;if(!o)return null;var s=o[0];return function(e,t){switch(e){case"oneOf":return t.reduce(function(e,t){var n=e.at(-1);return n&&"string"===n.type&&n.enum&&"string"===t.type&&t.enum?(n.enum=Array.from(new Set(v(v([],n.enum,!0),t.enum,!0))),n.nullable=n.nullable||t.nullable):e.push(t),e},[]);case"allOf":return t.reduce(function(e,t){var n=e.at(-1);if(n&&"string"===n.type&&n.enum&&"string"===t.type&&t.enum){var r=Object.keys(t);if(r.every(function(e){return["type","enum","nullable"].includes(e)}))return n.enum=Array.from(new Set(v(v([],n.enum,!0),t.enum,!0))),n.nullable=n.nullable||t.nullable,e}if(n&&"object"===n.type&&"object"===t.type){var r=Object.keys(t);if(r.every(function(e){return["type","properties","required","nullable"].includes(e)}))return n.properties=h(h({},n.properties),t.properties),n.required=Array.from(new Set(v(v([],Array.isArray(n.required)?n.required:[],!0),Array.isArray(t.required)?t.required:[],!0))),n.nullable=n.nullable||t.nullable,e}return e.push(t),e},[]);default:return t}}(s,(r=o[1],a=Array.from(i=new Set(n).add(t)).pop(),r.reduce(function(t,n){if((0,f.iy)(n))return t;if(n[s]&&!i.has(n)){var r=e(n,i);return r&&t.push.apply(t,r.map(function(e){return h(h({},e),{required:I(e,a)})})),t}var o=h(h({},n),{required:I(n,a)});return t.push(o),t},[])))}(u,new Set(y.keys())),k=(0,r.jsx)(C,{context:n,property:s}),S=(null==b?void 0:b.length)?(0,r.jsx)(g,{properties:b,circularRefs:y,context:n}):j?(0,r.jsx)("div",{className:"openapi-schema-alternatives",children:j.map(function(e,t){return(0,r.jsxs)("div",{className:"openapi-schema-alternative",children:[(0,r.jsx)(N,{schema:e,circularRefs:y,context:n}),t<j.length-1?(0,r.jsx)(w,{schema:u,context:n}):null]},t)})}):null;return(null==b?void 0:b.length)?(0,r.jsx)(l.a,{icon:n.icons.plus,className:(0,a.Z)("openapi-schema",o),header:k,label:function(e){return(0,p.T)({schema:u,isExpanded:e,context:n})},...c,children:S}):(0,r.jsxs)("div",{id:d,...c,className:(0,a.Z)("openapi-schema",o),children:[k,S]})}function g(e){var t=e.id,n=e.properties,i=e.circularRefs,a=void 0===i?new Map:i,o=e.context;return(0,r.jsx)("div",{id:t,className:"openapi-schema-properties",children:n.map(function(e,t){return(0,r.jsx)(y,{circularRefs:a,property:e,context:o,style:{animationDelay:"".concat(.02*t,"s")}},t)})})}function b(e){return(0,r.jsx)(g,{id:e.id,properties:JSON.parse(e.properties,(0,d.i)()),context:e.context})}function j(e){var t=e.schema,n=e.context,a=e.circularRefs,s=void 0===a?new Map:a,l=(0,i.useId)(),c=E(t),u=(0,f._y)(t);if(null==c?void 0:c.length){var d=new Map(s);return d.set(t,l),(0,r.jsxs)(r.Fragment,{children:[u?(0,r.jsx)(o.U,{source:u,className:"openapi-schema-root-description"}):null,(0,r.jsx)(g,{properties:c,circularRefs:d,context:n})]})}return(0,r.jsx)(y,{className:"openapi-schema-root",property:{schema:t},context:n,circularRefs:s})}function k(e){return(0,r.jsx)(j,{schema:JSON.parse(e.schema,(0,d.i)()),context:e.context})}function N(e){var t=e.schema,n=e.circularRefs,i=e.context,a=E(t);return(null==a?void 0:a.length)?(0,r.jsx)(l.a,{icon:i.icons.plus,header:(0,r.jsx)(C,{property:{schema:t},context:i}),label:function(e){return(0,p.T)({schema:t,isExpanded:e,context:i})},children:(0,r.jsx)(g,{properties:a,circularRefs:n,context:i})}):(0,r.jsx)(y,{property:{schema:t},circularRefs:n,context:i})}function w(e){var t,n,i,a=e.schema,o=e.context,s=a.anyOf||(null===(t=a.items)||void 0===t?void 0:t.anyOf),l=a.oneOf||(null===(n=a.items)||void 0===n?void 0:n.oneOf),u=a.allOf||(null===(i=a.items)||void 0===i?void 0:i.allOf);return s||l||u?(0,r.jsxs)("span",{className:"openapi-schema-alternative-separator",children:[(s||l)&&(0,c.F)(o.translation,"or"),u&&(0,c.F)(o.translation,"and")]}):null}function O(e){var t=e.id,n=e.schema;return(0,r.jsxs)("div",{className:"openapi-schema-circular",children:["Circular reference to ",(0,r.jsx)("a",{href:"#".concat(t),children:P(n)})," ",(0,r.jsx)("span",{className:"openapi-schema-circular-glyph",children:"â©"})]})}function S(e){var t,n=e.schema,i=e.context,a=n["x-gitbook-enum"]?Object.entries(n["x-gitbook-enum"]).map(function(e){return{value:e[0],description:e[1].description}}):n["x-enumDescriptions"]?Object.entries(n["x-enumDescriptions"]).map(function(e){return{value:e[0],description:e[1]}}):null===(t=n.enum)||void 0===t?void 0:t.map(function(e){return{value:e,description:void 0}});return(null==a?void 0:a.length)?(0,r.jsxs)("span",{className:"openapi-schema-enum",children:[(0,c.F)(i.translation,"possible_values"),":"," ",a.map(function(e,t){return(0,r.jsx)("span",{className:"openapi-schema-enum-value",children:(0,r.jsx)(s.OpenAPICopyButton,{value:e.value,label:e.description,withTooltip:!!e.description,context:i,children:(0,r.jsx)("code",{children:"".concat(e.value)})})},t)})]}):null}function C(e){var t=e.property,n=t.schema,i=t.propertyName,a=t.required,s=e.context,l=(0,f._y)(n),c=(0,f.us)(n);return(0,r.jsxs)("div",{className:"openapi-schema-presentation",children:[(0,r.jsx)(u,{schema:n,type:P(n),propertyName:i,required:a,context:s}),"string"==typeof n["x-deprecated-sunset"]?(0,r.jsxs)("div",{className:"openapi-deprecated-sunset openapi-schema-description openapi-markdown",children:["Sunset date:"," ",(0,r.jsx)("span",{className:"openapi-deprecated-sunset-date",children:n["x-deprecated-sunset"]})]}):null,l?(0,r.jsx)(o.U,{source:l,className:"openapi-schema-description"}):null,void 0!==n.default?(0,r.jsxs)("span",{className:"openapi-schema-default",children:["Default:"," ",(0,r.jsx)("code",{children:"string"==typeof n.default&&n.default?n.default:(0,m.l)(n.default)})]}
10):null,"string"==typeof c?(0,r.jsxs)("span",{className:"openapi-schema-example",children:["Example: ",(0,r.jsx)("code",{children:c})]}):null,n.pattern?(0,r.jsxs)("span",{className:"openapi-schema-pattern",children:["Pattern: ",(0,r.jsx)("code",{children:n.pattern})]}):null,(0,r.jsx)(S,{schema:n,context:s})]})}function E(e){if("array"===e.type&&e.items&&!(0,f.iy)(e.items)){var t=e.items;return E(t)||("string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"integer"!==t.type||t.enum?[{propertyName:"items",schema:t}]:null)}if("object"===e.type||e.properties){var n=[];return e.properties&&Object.entries(e.properties).forEach(function(t){var r=t[0],i=t[1];(0,f.iy)(i)||n.push({propertyName:r,required:Array.isArray(e.required)?e.required.includes(r):void 0,schema:i})}),e.additionalProperties&&!(0,f.iy)(e.additionalProperties)&&n.push({propertyName:"Other properties",schema:!0===e.additionalProperties?{}:e.additionalProperties}),n}return null}function I(e,t){return e.required||(null==t?void 0:t.required)?(0,f.iy)(e)?null==t?void 0:t.required:Array.from(new Set(v(v([],(null==t?void 0:t.required)||[],!0),e.required||[],!0))):void 0}function P(e){var t,n="any";return e.enum||e["x-enumDescriptions"]||e["x-gitbook-enum"]?n="".concat(e.type," \xb7 enum"):"array"===e.type&&e.items?n="".concat(P(e.items),"[]"):Array.isArray(e.type)?n=e.type.join(" | "):(e.type||e.properties)&&(n=null!==(t=e.type)&&void 0!==t?t:"object",e.format&&(n+=" \xb7 ".concat(e.format)),"object"===n&&e.title&&(n+=" \xb7 ".concat(e.title.replaceAll(" ","")))),"anyOf"in e?n="any of":"oneOf"in e?n="one of":"allOf"in e?n="all of":"not"in e&&(n="not"),n}},70025:function(e,t,n){"use strict";n.d(t,{a:function(){return o},k:function(){return s}});var r=n(27573),i=n(87363),a=n(35682);function o(e){return(0,r.jsx)(i.OpenAPISchemaPropertiesFromServer,{id:e.id,properties:JSON.stringify(e.properties,(0,a.M)()),context:e.context})}function s(e){return(0,r.jsx)(i.OpenAPIRootSchemaFromServer,{schema:JSON.stringify(e.schema,(0,a.M)()),context:e.context})}},80254:function(e,t,n){"use strict";n.d(t,{D$:function(){return f},T8:function(){return m},dW:function(){return p}});var r=n(27573),i=n(10607),a=n(7653),o=n(96282),s=n(21787),l=n(65156),c=n(10304),u=n(97119),d=n(72850);function p(e,t){void 0===e&&(e="select-state");var n=(0,u.o)((0,d.u)(e,t));return{key:n.key,setKey:(0,a.useCallback)(function(e){return n.setKey(e)},[n.setKey])}}function m(e){var t,n=e.icon,a=e.items,u=e.children,d=e.className,m=e.placement,f=e.stateKey,h=e.selectedKey,x=e.onSelectionChange,v=p(f,null===(t=a[0])||void 0===t?void 0:t.key),y=a.find(function(e){return e.key===v.key})||a[0];return(0,r.jsxs)(o.Ph,{"aria-label":"OpenAPI Select",...e,selectedKey:h||(null==y?void 0:y.key),onSelectionChange:function(e){null==x||x(e),v.setKey(e)},className:(0,i.Z)("openapi-select",d),children:[(0,r.jsxs)(s.z,{children:[(0,r.jsx)(o.ki,{}),void 0===n?"â¼":n]}),(0,r.jsx)(l.J,{placement:m,className:"openapi-select-popover",children:(0,r.jsx)(c.wb,{className:"openapi-select-listbox",items:a,children:u})})]})}function f(e){return(0,r.jsx)(c.m9,{...e,className:function(e){var t=e.isFocused,n=e.isSelected;return(0,i.Z)("openapi-select-item",{"openapi-select-item-focused":t,"openapi-select-item-selected":n})}})}},35790:function(e,t,n){"use strict";n.d(t,{ScalarApiButton:function(){return c}});var r=n(27573),i=n(48423),a=n(7653),o=n(3458),s=n(4489),l=n(83401);function c(e){var t=e.method,n=e.path,i=e.specUrl,s=e.context,c=(0,a.useState)(!1),d=c[0],p=c[1],m=(0,a.useRef)(null);return(0,r.jsxs)("div",{className:"scalar scalar-activate",children:[(0,r.jsxs)("button",{className:"scalar-activate-button button",onClick:function(){var e,t;null===(t=null===(e=m.current)||void 0===e?void 0:e.openClient)||void 0===t||t.call(e),p(!0)},children:[(0,l.t)(s.translation,"test_it"),(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 12",fill:"currentColor",children:(0,r.jsx)("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"})})]}),d&&(0,o.createPortal)((0,r.jsx)(u,{controllerRef:m,method:t,path:n,specUrl:i}),document.body)]})}function u(e){var t=e.method,n=e.path,a=e.specUrl,o=e.controllerRef;return(0,r.jsx)(i.c,{configuration:{url:a},initialRequest:{method:t,path:n},children:(0,r.jsx)(d,{method:t,path:n,controllerRef:o})})}function d(e){var t=e.method,n=e.path,r=e.controllerRef,o=(0,i._)(),l=null==o?void 0:o.open,c=(0,s.useOpenAPIOperationContext)().onOpenClient,u=(0,a.useMemo)(function(){return l?function(){l({method:t,path:n,_source:"gitbook"}),c({method:t,path:n})}:null},[l,t,n,c]);return(0,a.useImperativeHandle)(r,function(){return{openClient:u?function(){return u()}:void 0}},[u]),(0,a.useEffect)(function(){null==u||u()},[u]),null}},72597:function(e,t,n){"use strict";n.d(t,{$0:function(){return a},M$:function(){return o},Qp:function(){return d},Qw:function(){return s},tr:function(){return l}});var r=n(27573),i=n(10607);function a(e){return(0,r.jsx)("div",{...e,className:(0,i.Z)("openapi-section",e.className)})}function o(e){return(0,r.jsx)("div",{...e,className:(0,i.Z)("openapi-section-header",e.className?"".concat(e.className,"-header"):void 0)})}function s(e){return(0,r.jsx)("div",{...e,className:(0,i.Z)("openapi-section-header-content",e.className&&"".concat(e.className,"-header-content"))})}var l=(0,n(7653).forwardRef)(function(e,t){return(0,r.jsx)("div",{ref:t,...e,className:(0,i.Z)("openapi-section-body",e.className&&"".concat(e.className,"-body"))})});function c(e){return(0,r.jsx)("div",{...e,className:(0,i.Z)("openapi-section-footer",e.className&&"".concat(e.className,"-footer"))})}function u(e){return(0,r.jsx)("div",{...e,className:(0,i.Z)("openapi-section-footer-content",e.className&&"".concat(e.className,"-footer-content"))})}function d(e){var t=e.className,n=e.header,i=e.children,d=e.footer;return(0,r.jsxs)(a,{className:t,children:[n?(0,r.jsx)(o,{className:t,children:(0,r.jsx)(s,{className:t,children:n})}):null,(0,r.jsx)(l,{className:t,children:i}),d?(0,r.jsx)(c,{className:t,children:(0,r.jsx)(u,{className:t,children:d})}):null]})}},3052:function(e,t,n){"use strict";n.d(t,{OpenAPISchemaItem:function(){return l}});var r=n(27573),i=n(72597),a=n(16587),o=n(70025),s=n(10895);function l(e){var t=e.schema,n=e.context,l=e.name;return(0,r.jsx)(a.a,{className:"openapi-schemas-disclosure",icon:n.icons.plus,header:l,label:function(e){return(0,s.T)({schema:t,isExpanded:e,context:n})},children:(0,r.jsx)(i.$0,{className:"openapi-section-schemas",children:(0,r.jsx)(i.tr,{children:(0,r.jsx)(o.k,{schema:t,context:n})})})},l)}},83401:function(e,t,n){"use strict";n.d(t,{F:function(){return s},t:function(){return o}});var r=n(27573),i=n(7653),a=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};function o(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var o=e[t];if(!o)throw Error('Translation not found for "'.concat(t,'"'));var s=[],l=o;return(n.forEach(function(e,n){if("string"==typeof e)l=l.replace("${".concat(n+1,"}"),e);else{var a=l.split("${".concat(n+1,"}")),o=a[0],c=a[1];if(void 0===o||void 0===c)throw Error('Invalid translation "'.concat(t,'"'));s.push((0,r.jsx)(i.Fragment,{children:o},"string-".concat(n))),s.push((0,r.jsx)(i.Fragment,{children:e},"arg-".concat(n))),l=c}}),s.length)?(0,r.jsxs)(r.Fragment,{children:[s,l]}):l}function s(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];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.apply(void 0,a([e,t],n,!1)))}},51477:function(){},18289:function(){},97746:function(e){e.exports={zoomModal:"ZoomImage_zoomModal__VzJS3",zoomImg:"ZoomImage_zoomImg__teSyL",zoomImageActive:"ZoomImage_zoomImageActive__C33dt"}}
10,19182:function(e,t,n){"use strict";function r(){return i||(i=!0,Promise.all([n.e(703),n.e(4006)]).then(n.t.bind(n,94006,19)).then(()=>{document.body.classList.add("katex-loaded")})),null}n.r(t),n.d(t,{default:function(){return r}});let i=!1},55127:function(e,t,n){"use strict";n.d(t,{MathJaXLazy:function(){return o}});var r=n(27573),i=n(7653);let a=i.lazy(()=>n.e(1559).then(n.bind(n,71559)));function o(e){return(0,r.jsx)(i.Suspense,{fallback:e.fallback,children:(0,r.jsx)(a,{...e})})}},35682:function(e,t,n){"use strict";n.d(t,{M:function(){return a},i:function(){return o}});var r=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},i=function(e){return"object"==typeof e&&null!=e&&!(e instanceof Boolean)&&!(e instanceof Date)&&!(e instanceof Number)&&!(e instanceof RegExp)&&!(e instanceof String)},a=function(){var e=new WeakMap;return function(t,n){var a,o;if("$reference"!==t&&i(n)){if(e.has(n))return{$reference:(o=e.get(n),"#".concat(o.map(function(e){return String(e).replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")))};e.set(n,r(r([],null!==(a=e.get(this))&&void 0!==a?a:[],!0),[t],!1))}return n}};function o(){var e=new WeakMap,t=new WeakMap,n=new Set;function r(n){for(var r,i=n.$reference.slice(1).split("/"),a=this,o=0;o<i.length;o++)a=a[null===(r=i[o])||void 0===r?void 0:r.replace(/~1/g,"/").replace(/~0/g,"~")];e.get(n)[t.get(n)]=a}return function(a,o){return"$reference"===a?n.add(this):i(o)&&(""===a&&1===Object.keys(this).length?n.forEach(r,this):(e.set(o,this),t.set(o,a))),o}}},10895:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var r=n(83401);function i(e){var t,n=e.schema,i=e.isExpanded,a=e.context;return t="array"===n.type&&n.items&&n.items.oneOf?(0,r.F)(a.translation,"available_items").toLowerCase():(0,r.F)(a.translation,"properties").toLowerCase(),(0,r.F)(a.translation,i?"hide":"show",t)}},72850:function(e,t,n){"use strict";n.d(t,{u:function(){return a}});var r=n(19730),i=new Map,a=function(e,t){return!i.has(e)&&i.set(e,(0,r.M)()(function(e){return{key:null!=t?t:null,setKey:function(t){e(function(){return{key:t}})}}})),i.get(e)}},92870:function(e,t,n){"use strict";function r(e,t,n){return JSON.stringify(e,function(e,n){return e.startsWith("x-gitbook-")?void 0:t?t(e,n):n},n)}n.d(t,{l:function(){return r}})},36191:function(e,t,n){"use strict";n.d(t,{Jk:function(){return m},Xe:function(){return s},YW:function(){return u},_y:function(){return function e(t){return l(t)?"x-gitbook-description-html"in t&&"string"==typeof t["x-gitbook-description-html"]?t["x-gitbook-description-html"].trim():"string"==typeof t.description?t.description.trim():void 0:"items"in t&&"object"==typeof t.items&&l(t.items)?e(t.items):void 0}},iy:function(){return o},m6:function(){return p},us:function(){return c}});var r=n(92870),i=n(83401),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e){return"object"==typeof e&&!!e&&"$ref"in e}function s(e,t){return t?"".concat(t,"_").concat(e):e}function l(e){return"description"in e||"x-gitbook-description-html"in e}function c(e){if("examples"in e&&"object"==typeof e.examples&&e.examples){var t=Object.keys(e.examples)[0];if(t&&e.examples[t])return d(e.examples[t])}return"string"==typeof e.example&&e.example||"number"==typeof e.example||"boolean"==typeof e.example||Array.isArray(e.example)&&e.example.length>0||"object"==typeof e.example&&null!==e.example&&Object.keys(e.example).length>0?d(e.example):e.items&&"object"==typeof e.items?d(e.items.example):void 0}function u(e){var t,n;return o(e)?{propertyName:null!==(t=e.$ref)&&void 0!==t?t:"Unknown ref",schema:{},required:void 0}:{propertyName:e.name,schema:(n=o(e.schema)?void 0:e.schema,a(a(a({},{description:e.description,"x-gitbook-description-html":"x-gitbook-description-html"in e?e["x-gitbook-description-html"]:void 0}),{example:c(e),deprecated:e.deprecated}),n)),required:e.required}}function d(e){return"string"==typeof e?e.replace(/\n/g," ").replace(/\s+/g," ").replace(/([\{\}:,])\s+/g,"$1 ").replace(/\s+([\{\}:,])/g," $1").trim():(0,r.l)(e)}function p(e){switch(f(e)){case 1:return"informational";case 2:return"success";case 3:return"redirect";case 4:case 5:return"error";default:return"unknown"}}function m(e,t){switch(f(e)){case 1:return(0,i.F)(t.translation,"information");case 2:return(0,i.F)(t.translation,"success");case 3:return(0,i.F)(t.translation,"redirect");case 4:case 5:return(0,i.F)(t.translation,"error");default:return""}}function f(e){var t="string"==typeof e?Number.parseInt(e,10):e;return Number.isNaN(t)||t<100||t>=600?"unknown":Math.floor(t/100)}}}]); 11}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.