import{g as w,d as k,r as x,b as $}from"./i18n-eTakDDhg.js";import{R as y,y as u,M as h,S,w as m,t as B,a as M,X as _,V as E,a5 as z,T as G,u as L,x as F,W as I,Y as P}from"./index-BkylzejB.js";import{G as R,s as T}from"./utils.svelte-DZ62NrTu.js";import{M as V}from"./Index.svelte_svelte_type_style_lang-DPM19Rw3.js";import{S as W}from"./index-C-r_2iGV.js";import"./StreamingBar.svelte_svelte_type_style_lang-CFNH9sqm.js";import{B as X}from"./Block-Bl_3z_UU.js";import"./ScrollFade.svelte_svelte_type_style_lang-De9nUaYy.js";import{S as Y}from"./ScrollFade-D517YQIf.js";import{default as me}from"./Example-BbE_ls90.js";import"./clone-IGppQJ7B.js";import"./actions-CWv1ghz2.js";import"./Check-8VzamX5F.js";import"./Copy-Dnm0QzA5.js";import"./IconButtonWrapper-33oacT7w.js";import"./snippet-CC9u6I34.js";import"./MarkdownCode-C5EVJ270.js";import"./html-DvOIMrhY.js";import"./prism-python-C9mU__hj.js";import"./index-B_pwUImq.js";import"./Clear-Daql2pLY.js";/* empty css                                              */var j=I("<!> <div><!></div> <!>",1);function de(g,i){y(i,!0);let c=x(i,["$$slots","$$events","$$legacy"]);const e=new R(c);let s,n=L(!1);function a(){e.props.height&&F(n,T(s?.closest(".block")),!0)}u(()=>{const t=s?.closest(".block");if(!(!t||!e.props.height))return t.addEventListener("scroll",a),h().then(a),()=>t.removeEventListener("scroll",a)}),u(()=>{e.props.value!==void 0&&h().then(a)}),X(g,{get visible(){return e.shared.visible},get elem_id(){return e.shared.elem_id},get elem_classes(){return e.shared.elem_classes},get container(){return e.shared.container},allow_overflow:!0,overflow_behavior:"auto",get height(){return e.props.height},get min_height(){return e.props.min_height},get max_height(){return e.props.max_height},get rtl(){return e.props.rtl},children:(t,q)=>{var l=j(),p=S(l);W(p,w({get autoscroll(){return e.shared.autoscroll},get i18n(){return e.i18n}},()=>e.shared.loading_status,{variant:"center",on_clear_status:()=>e.dispatch("clear_status",e.shared.loading_status)}));var r=_(p,2);let d;var f=E(r);{let o=z(()=>e.props.buttons?.includes("copy"));V(f,{get value(){return e.props.value},get elem_classes(){return e.shared.elem_classes},get visible(){return e.shared.visible},get rtl(){return e.props.rtl},onchange:()=>e.dispatch("change"),oncopy:b=>e.dispatch("copy",b.detail),get latex_delimiters(){return e.props.latex_delimiters},get sanitize_html(){return e.props.sanitize_html},get line_breaks(){return e.props.line_breaks},get header_links(){return e.props.header_links},get show_copy_button(){return m(o)},get loading_status(){return e.shared.loading_status},get theme_mode(){return e.shared.theme_mode}})}P(r),k(r,o=>s=o,()=>s);var v=_(r,2);Y(v,{get visible(){return m(n)}}),B(()=>d=$(r,1,"svelte-16ln60g",null,d,{padding:e.props.padding,pending:e.shared.loading_status?.status==="pending"&&e.shared.loading_status?.show_progress!=="hidden"})),M(t,l)},$$slots:{default:!0}}),G()}export{me as BaseExample,V as BaseMarkdown,de as default};
