import './async-D55cHugf.js';
import { g as attr_style, a as attr, e as ensure_array_like, i as stringify, f as attr_class } from './index-u8mz_F03.js';
import './2-BLdXJizP.js';
import { $ } from './utils.svelte-B2py64Fz.js';
import { s as se } from './prism-python--2v-p3P4.js';
import { e as escape_html } from './escaping-CBnpiEl5.js';
import { h as html } from './html-CfyvkLET.js';
import './context-CBkBucIx.js';
import './index5-BoOEKc6P.js';
import './dev-fallback-Bc5Ork7Y.js';
import './index-Cg-Pg6j3.js';
import './clone-Yk88IHKV.js';

var w={},v;function L(){return v||(v=1,(function(a){a.languages.typescript=a.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:true,greedy:true,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),a.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete a.languages.typescript.parameter,delete a.languages.typescript["literal-property"];var u=a.languages.extend("typescript",{});delete u["class-name"],a.languages.typescript["class-name"].inside=u,a.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:true,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:u}}}}),a.languages.ts=a.languages.typescript;})(Prism)),w}L();function Z(a,u){a.component(e=>{let{docs:g,linkify:f=[],header:h,anchor_links:p,max_height:x}=u,d="python",y=b(g,d);function m(t,i){let l="param-";return typeof i=="string"&&(l+=i+"-"),l+t.toLowerCase().replace(/[^a-z0-9]+/g,"-")}function k(t,i){let l=se.highlight(t,se.languages[i],i);for(const n of f)l=l.replace(new RegExp(n,"g"),`<a href="#h-${n.toLocaleLowerCase()}">${n}</a>`);return l}function b(t,i){return t?Object.entries(t).map(([l,{type:n,description:o,default:c}])=>{let r=n?k(n,i):null;return {name:l,type:r,description:o,default:c?k(c,i):null}}):[]}function _(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank">$1</a>')}const A=t=>{if(t!==void 0){if(typeof t=="number")return t+"px";if(typeof t=="string")return t}};if(e.push(`<div class="wrap svelte-1kuiw39"${attr_style("",{"max-height":A(x)})}><div class="header svelte-1kuiw39">`),h!==null?(e.push("<!--[-->"),e.push(`<span class="title svelte-1kuiw39">${escape_html(h)}</span>`)):e.push("<!--[!-->"),e.push(`<!--]--> <button class="toggle-all svelte-1kuiw39"${attr("title","Open All")}>${escape_html("▼")}</button></div> `),y){e.push("<!--[-->"),e.push('<div class="param-content svelte-1kuiw39"><!--[-->');const t=ensure_array_like(y);for(let i=0,l=t.length;i<l;i++){let{type:n,description:o,default:c,name:r}=t[i];e.push(`<details class="param md svelte-1kuiw39"${attr("id",p?m(r||"",p):void 0)}><summary class="type svelte-1kuiw39">`),p?(e.push("<!--[-->"),e.push(`<a${attr("href",`#${stringify(m(r||"",p))}`)} class="param-link svelte-1kuiw39"><span class="link-icon svelte-1kuiw39">🔗</span></a>`)):e.push("<!--[!-->"),e.push(`<!--]--> <pre${attr_class(`language-${stringify(d)}`,"svelte-1kuiw39")}><code class="svelte-1kuiw39">${escape_html(r)}`),n?(e.push("<!--[-->"),e.push(`: ${html(n)}`)):e.push("<!--[!-->"),e.push("<!--]--></code></pre></summary> "),c?(e.push("<!--[-->"),e.push(`<div${attr_class("default svelte-1kuiw39",void 0,{last:!o})}><span class="svelte-1kuiw39"${attr_style("",{"padding-right":"4px"})}>default</span> <code class="svelte-1kuiw39">= ${html(c)}</code></div>`)):e.push("<!--[!-->"),e.push("<!--]--> "),o?(e.push("<!--[-->"),e.push(`<div class="description svelte-1kuiw39"><p>${html(_(o))}</p></div>`)):e.push("<!--[!-->"),e.push("<!--]--></details>");}e.push("<!--]--></div>");}else e.push("<!--[!-->");e.push("<!--]--></div>");});}function I(a,u){a.component(e=>{const{$$slots:g,$$events:f,...h}=u,p=new $(h);Z(e,{docs:p.props.value,linkify:p.props.linkify,header:p.props.header,anchor_links:p.props.anchor_links,max_height:p.props.max_height});});}

export { I as default };
//# sourceMappingURL=Index49-DCSHhKes.js.map
