1import{S as St}from"./Index-DvJ399W-.js";import{u as He,c as jt}from"./Blocks-BrGSw8d-.js";import{d as qt}from"./index-CnqicUFC.js";import{S as Bt}from"./ShareButton-C2urwshD.js";import{r as Ht}from"./file-url-DulxDZ3L.js";import{I as wt}from"./Image-D4FP5rNG.js";import{V as Mt}from"./Video-DgoV3B-X.js";import"./Index.svelte_svelte_type_style_lang-Cp94WWVp.js";import{M as vt}from"./Example.svelte_svelte_type_style_lang-DyHaW-Bg.js";import"./index-D6iiusuW.js";import{C as Lt}from"./Check-Ck0iADAu.js";import{C as Tt}from"./Copy-ZPOKSMtK.js";import{B as Et}from"./Button-BM3Gfoxv.js";import{B as Pt}from"./BlockLabel-S59nE2jv.js";import"./_commonjsHelpers-BosuxZz1.js";import"./prism-python-b7Hj1w62.js";import"./svelte/svelte.js";const{SvelteComponent:Vt,append:Me,attr:T,detach:At,init:Dt,insert:Nt,noop:ve,safe_not_equal:It,svg_element:pe}=window.__gradio__svelte__internal;function Ut(t){let e,i,l;return{c(){e=pe("svg"),i=pe("path"),l=pe("path"),T(i,"fill","currentColor"),T(i,"d","M17.74 30L16 29l4-7h6a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h9v2H6a4 4 0 0 1-4-4V8a4 4 0 0 1 4-4h20a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4h-4.84Z"),T(l,"fill","currentColor"),T(l,"d","M8 10h16v2H8zm0 6h10v2H8z"),T(e,"xmlns","http://www.w3.org/2000/svg"),T(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),T(e,"aria-hidden","true"),T(e,"role","img"),T(e,"class","iconify iconify--carbon"),T(e,"width","100%"),T(e,"height","100%"),T(e,"preserveAspectRatio","xMidYMid meet"),T(e,"viewBox","0 0 32 32")},m(n,s){Nt(n,e,s),Me(e,i),Me(e,l)},p:ve,i:ve,o:ve,d(n){n&&At(e)}}}class Zt extends Vt{constructor(e){super(),Dt(this,e,null,Ut,It,{})}}const{SvelteComponent:Ft,append:Le,attr:H,detach:Ot,flush:Rt,init:Yt,insert:Gt,noop:Te,safe_not_equal:Jt,svg_element:$e}=window.__gradio__svelte__internal;function Kt(t){let e,i,l,n;return{c(){e=$e("svg"),i=$e("path"),l=$e("path"),H(i,"stroke","currentColor"),H(i,"stroke-width","1.5"),H(i,"stroke-linecap","round"),H(i,"d","M16.472 3.5H4.1a.6.6 0 0 0-.6.6v9.8a.6.6 0 0 0 .6.6h2.768a2 2 0 0 1 1.715.971l2.71 4.517a1.631 1.631 0 0 0 2.961-1.308l-1.022-3.408a.6.6 0 0 1 .574-.772h4.575a2 2 0 0 0 1.93-2.526l-1.91-7A2 2 0 0 0 16.473 3.5Z"),H(l,"stroke","currentColor"),H(l,"stroke-width","1.5"),H(l,"stroke-linecap","round"),H(l,"stroke-linejoin","round"),H(l,"d","M7 14.5v-11"),H(e,"xmlns","http://www.w3.org/2000/svg"),H(e,"viewBox","0 0 24 24"),H(e,"fill",n=t[0]?"currentColor":"none"),H(e,"stroke-width","1.5"),H(e,"color","currentColor")},m(s,r){Gt(s,e,r),Le(e,i),Le(e,l)},p(s,[r]){r&1&&n!==(n=s[0]?"currentColor":"none")&&H(e,"fill",n)},i:Te,o:Te,d(s){s&&Ot(e)}}}function Qt(t,e,i){let{selected:l}=e;return t.$$set=n=>{"selected"in n&&i(0,l=n.selected)},[l]}class Wt extends Ft{constructor(e){super(),Yt(this,e,Qt,Kt,Jt,{selected:0})}get selected(){return this.$$.ctx[0]}set selected(e){this.$$set({selected:e}),Rt()}}const{SvelteComponent:Xt,append:Ee,attr:M,detach:xt,flush:el,init:tl,insert:ll,noop:Pe,safe_not_equal:nl,svg_element:Ce}=window.__gradio__svelte__internal;function il(t){let e,i,l,n;return{c(){e=Ce("svg"),i=Ce("path"),l=Ce("path"),M(i,"stroke","currentColor"),M(i,"stroke-width","1.5"),M(i,"stroke-linecap","round"),M(i,"d","M16.472 20H4.1a.6.6 0 0 1-.6-.6V9.6a.6.6 0 0 1 .6-.6h2.768a2 2 0 0 0 1.715-.971l2.71-4.517a1.631 1.631 0 0 1 2.961 1.308l-1.022 3.408a.6.6 0 0 0 .574.772h4.575a2 2 0 0 1 1.93 2.526l-1.91 7A2 2 0 0 1 16.473 20Z"),M(l,"stroke","currentColor"),M(l,"stroke-width","1.5"),M(l,"stroke-linecap","round"),M(l,"stroke-linejoin","round"),M(l,"d","M7 20V9"),M(e,"xmlns","http://www.w3.org/2000/svg"),M(e,"viewBox","0 0 24 24"),M(e,"fill",n=t[0]?"currentColor":"none"),M(e,"stroke-width","1.5"),M(e,"color","currentColor")},m(s,r){ll(s,e,r),Ee(e,i),Ee(e,l)},p(s,[r]){r&1&&n!==(n=s[0]?"currentColor":"none")&&M(e,"fill",n)},i:Pe,o:Pe,d(s){s&&xt(e)}}}function sl(t,e,i){let{selected:l}=e;return t.$$set=n=>{"selected"in n&&i(0,l=n.selected)},[l]}class al extends Xt{constructor(e){super(),tl(this,e,sl,il,nl,{selected:0})}get selected(){return this.$$.ctx[0]}set selected(e){this.$$set({selected:e}),el()}}const rl=async t=>(await Promise.all(t.map(async i=>await Promise.all(i.map(async(l,n)=>{if(l===null)return"";let s=n===0?"ð":"ð¤",r="";if(typeof l=="string"){const o={audio:/<audio.*?src="(\/file=.*?)"/g,video:/<video.*?src="(\/file=.*?)"/g,image:/<img.*?src="(\/file=.*?)".*?\/>|!\[.*?\]\((\/file=.*?)\)/g};r=l;for(let[a,u]of Object.entries(o)){let _;for(;(_=u.exec(l))!==null;){const m=_[1]||_[2],v=await He(m,"url");r=r.replace(m,v)}}}else{if(!l?.url)return"";const o=await He(l.url,"url");l.mime_type?.includes("audio")?r=`<audio controls src="${o}"></audio>`:l.mime_type?.includes("video")?r=o:l.mime_type?.includes("image")&&(r=`<img src="${o}" />`)}return`${s}: ${r}`}))))).map(i=>i.join(i[0]!==""&&i[1]!==""?` 2`:"")).join(` 3`),{SvelteComponent:ol,assign:je,compute_rest_props:Ve,detach:ul,element:_l,exclude_internal_props:fl,flush:cl,get_spread_update:hl,init:dl,insert:ml,listen:ye,noop:Ae,run_all:bl,safe_not_equal:gl,set_attributes:De,src_url_equal:kl}=window.__gradio__svelte__internal,{createEventDispatcher:wl}=window.__gradio__svelte__internal;function vl(t){let e,i,l,n,s=[{src:i=t[0]},t[2]],r={};for(let o=0;o<s.length;o+=1)r=je(r,s[o]);return{c(){e=_l("audio"),De(e,r)},m(o,a){ml(o,e,a),l||(n=[ye(e,"play",t[1].bind(null,"play")),ye(e,"pause",t[1].bind(null,"pause")),ye(e,"ended",t[1].bind(null,"ended"))],l=!0)},p(o,[a]){De(e,r=hl(s,[a&1&&!kl(e.src,i=o[0])&&{src:i},a&4&&o[2]]))},i:Ae,o:Ae,d(o){o&&ul(e),l=!1,bl(n)}}}function pl(t,e,i){const l=["src"];let n=Ve(e,l),{src:s=void 0}=e,r,o;const a=wl();return t.$$set=u=>{e=je(je({},e),fl(u)),i(2,n=Ve(e,l)),"src"in u&&i(3,s=u.src)},t.$$.update=()=>{if(t.$$.dirty&24){i(0,r=s),i(4,o=s);const u=s;Ht(u).then(_=>{o===u&&i(0,r=_)})}},[r,a,n,s,o]}class $l extends ol{constructor(e){super(),dl(this,e,pl,vl,gl,{src:3})}get src(){return this.$$.ctx[3]}set src(e){this.$$set({src:e}),cl()}}const{SvelteComponent:Cl,append:yl,attr:oe,check_outros:Ne,create_component:pt,destroy_component:$t,detach:zl,element:Sl,flush:jl,group_outros:Ie,init:ql,insert:Bl,listen:Hl,mount_component:Ct,safe_not_equal:Ml,space:Ll,transition_in:Q,transition_out:ee}=window.__gradio__svelte__internal,{onDestroy:Tl}=window.__gradio__svelte__internal;function Ue(t){let e,i;return e=new Tt({}),{c(){pt(e.$$.fragment)},m(l,n){Ct(e,l,n),i=!0},i(l){i||(Q(e.$$.fragment,l),i=!0)},o(l){ee(e.$$.fragment,l),i=!1},d(l){$t(e,l)}}}function Ze(t){let e,i;return e=new Lt({}),{c(){pt(e.$$.fragment)},m(l,n){Ct(e,l,n),i=!0},i(l){i||(Q(e.$$.fragment,l),i=!0)},o(l){ee(e.$$.fragment,l),i=!1},d(l){$t(e,l)}}}function El(t){let e,i,l,n,s,r,o=!t[0]&&Ue(),a=t[0]&&Ze();return{c(){e=Sl("button"),o&&o.c(),i=Ll(),a&&a.c(),oe(e,"class","action svelte-rvlubk"),oe(e,"title","copy"),oe(e,"aria-label",l=t[0]?"Copied message":"Copy message")},m(u,_){Bl(u,e,_),o&&o.m(e,null),yl(e,i),a&&a.m(e,null),n=!0,s||(r=Hl(e,"click",t[1]),s=!0)},p(u,[_]){u[0]?o&&(Ie(),ee(o,1,1,()=>{o=null}
3),Ne()):o?_&1&&Q(o,1):(o=Ue(),o.c(),Q(o,1),o.m(e,i)),u[0]?a?_&1&&Q(a,1):(a=Ze(),a.c(),Q(a,1),a.m(e,null)):a&&(Ie(),ee(a,1,1,()=>{a=null}),Ne()),(!n||_&1&&l!==(l=u[0]?"Copied message":"Copy message"))&&oe(e,"aria-label",l)},i(u){n||(Q(o),Q(a),n=!0)},o(u){ee(o),ee(a),n=!1},d(u){u&&zl(e),o&&o.d(),a&&a.d(),s=!1,r()}}}function Pl(t,e,i){let l=!1,{value:n}=e,s;function r(){i(0,l=!0),s&&clearTimeout(s),s=setTimeout(()=>{i(0,l=!1)},2e3)}async function o(){if("clipboard"in navigator)await navigator.clipboard.writeText(n),r();else{const a=document.createElement("textarea");a.value=n,a.style.position="absolute",a.style.left="-999999px",document.body.prepend(a),a.select();try{document.execCommand("copy"),r()}catch(u){console.error(u)}finally{a.remove()}}}return Tl(()=>{s&&clearTimeout(s)}),t.$$set=a=>{"value"in a&&i(2,n=a.value)},[l,o,n]}class Vl extends Cl{constructor(e){super(),ql(this,e,Pl,El,Ml,{value:2})}get value(){return this.$$.ctx[2]}set value(e){this.$$set({value:e}),jl()}}const{SvelteComponent:Al,attr:x,create_component:Fe,destroy_component:Oe,detach:ze,element:Re,flush:Dl,init:Nl,insert:Se,listen:Ye,mount_component:Ge,run_all:Il,safe_not_equal:Ul,space:Zl,transition_in:Je,transition_out:Ke}=window.__gradio__svelte__internal;function Fl(t){let e,i,l,n,s,r,o,a,u,_;return i=new al({props:{selected:t[1]==="like"}}),r=new Wt({props:{selected:t[1]==="dislike"}}),{c(){e=Re("button"),Fe(i.$$.fragment),n=Zl(),s=Re("button"),Fe(r.$$.fragment),x(e,"aria-label",l=t[1]==="like"?"clicked like":"like"),x(e,"class","svelte-3snf3m"),x(s,"aria-label",o=t[1]==="dislike"?"clicked dislike":"dislike"),x(s,"class","svelte-3snf3m")},m(m,v){Se(m,e,v),Ge(i,e,null),Se(m,n,v),Se(m,s,v),Ge(r,s,null),a=!0,u||(_=[Ye(e,"click",t[2]),Ye(s,"click",t[3])],u=!0)},p(m,[v]){const S={};v&2&&(S.selected=m[1]==="like"),i.$set(S),(!a||v&2&&l!==(l=m[1]==="like"?"clicked like":"like"))&&x(e,"aria-label",l);const h={};v&2&&(h.selected=m[1]==="dislike"),r.$set(h),(!a||v&2&&o!==(o=m[1]==="dislike"?"clicked dislike":"dislike"))&&x(s,"aria-label",o)},i(m){a||(Je(i.$$.fragment,m),Je(r.$$.fragment,m),a=!0)},o(m){Ke(i.$$.fragment,m),Ke(r.$$.fragment,m),a=!1},d(m){m&&(ze(e),ze(n),ze(s)),Oe(i),Oe(r),u=!1,Il(_)}}}function Ol(t,e,i){let{handle_action:l}=e,n=null;const s=()=>{i(1,n="like"),l(n)},r=()=>{i(1,n="dislike"),l(n)};return t.$$set=o=>{"handle_action"in o&&i(0,l=o.handle_action)},[l,n,s,r]}class Rl extends Al{constructor(e){super(),Nl(this,e,Ol,Fl,Ul,{handle_action:0})}get handle_action(){return this.$$.ctx[0]}set handle_action(e){this.$$set({handle_action:e}),Dl()}}const{SvelteComponent:Yl,attr:ue,detach:Gl,element:Jl,flush:Kl,init:Ql,insert:Wl,noop:Qe,safe_not_equal:Xl,set_style:We}=window.__gradio__svelte__internal;function xl(t){let e;return{c(){e=Jl("div"),e.innerHTML=`<span class="sr-only">Loading content</span> <div class="dot-flashing svelte-1gpwetz"></div> 4 Â 5 <div class="dot-flashing svelte-1gpwetz"></div> 6 Â 7 <div class="dot-flashing svelte-1gpwetz"></div>`,ue(e,"class","message pending svelte-1gpwetz"),ue(e,"role","status"),ue(e,"aria-label","Loading response"),ue(e,"aria-live","polite"),We(e,"border-radius",t[0]==="bubble"?"var(--radius-xxl)":"none")},m(i,l){Wl(i,e,l)},p(i,[l]){l&1&&We(e,"border-radius",i[0]==="bubble"?"var(--radius-xxl)":"none")},i:Qe,o:Qe,d(i){i&&Gl(e)}}}function en(t,e,i){let{layout:l="bubble"}=e;return t.$$set=n=>{"layout"in n&&i(0,l=n.layout)},[l]}class tn extends Yl{constructor(e){super(),Ql(this,e,en,xl,Xl,{layout:0})}get layout(){return this.$$.ctx[0]}set layout(e){this.$$set({layout:e}),Kl()}}const{SvelteComponent:ln,action_destroyer:nn,append:X,attr:w,binding_callbacks:sn,bubble:K,check_outros:D,create_component:Z,destroy_component:F,destroy_each:yt,detach:E,element:N,empty:Be,ensure_array_like:_e,flush:j,group_outros:I,init:an,insert:P,listen:Xe,mount_component:O,noop:qe,null_to_empty:xe,run_all:rn,safe_not_equal:on,set_data:un,set_style:ie,space:se,text:_n,toggle_class:z,transition_in:d,transition_out:g}=window.__gradio__svelte__internal,{beforeUpdate:fn,afterUpdate:cn,createEventDispatcher:hn}=window.__gradio__svelte__internal;function et(t,e,i){const l=t.slice();return l[36]=e[i],l[38]=i,l}function tt(t,e,i){const l=t.slice();return l[39]=e[i],l[41]=i,l}function lt(t){let e,i,l;return i=new Bt({props:{i18n:t[13],formatter:rl,value:t[0]}}),i.$on("error",t[22]),i.$on("share",t[23]),{c(){e=N("div"),Z(i.$$.fragment),w(e,"class","share-button svelte-gutj6d")},m(n,s){P(n,e,s),O(i,e,null),l=!0},p(n,s){const r={};s[0]&8192&&(r.i18n=n[13]),s[0]&1&&(r.value=n[0]),i.$set(r)},i(n){l||(d(i.$$.fragment,n),l=!0)},o(n){g(i.$$.fragment,n),l=!1},d(n){n&&E(e),F(i)}}}function dn(t){let e,i,l;return i=new vt({props:{message:t[15],latex_delimiters:t[1]}}),{c(){e=N("center"),Z(i.$$.fragment),w(e,"class","svelte-gutj6d")},m(n,s){P(n,e,s),O(i,e,null),l=!0},p(n,s){const r={};s[0]&32768&&(r.message=n[15]),s[0]&2&&(r.latex_delimiters=n[1]),i.$set(r)},i(n){l||(d(i.$$.fragment,n),l=!0)},o(n){g(i.$$.fragment,n),l=!1},d(n){n&&E(e),F(i)}}}function mn(t){let e,i,l,n=_e(t[0]),s=[];for(let a=0;a<n.length;a+=1)s[a]=ut(et(t,n,a));const r=a=>g(s[a],1,1,()=>{s[a]=null});let o=t[2]&&_t(t);return{c(){for(let a=0;a<s.length;a+=1)s[a].c();e=se(),o&&o.c(),i=Be()},m(a,u){for(let _=0;_<s.length;_+=1)s[_]&&s[_].m(a,u);P(a,e,u),o&&o.m(a,u),P(a,i,u),l=!0},p(a,u){if(u[0]&942043){n=_e(a[0]);let _;for(_=0;_<n.length;_+=1){const m=et(a,n,_);s[_]?(s[_].p(m,u),d(s[_],1)):(s[_]=ut(m),s[_].c(),d(s[_],1),s[_].m(e.parentNode,e))}for(I(),_=n.length;_<s.length;_+=1)r(_);D()}a[2]?o?(o.p(a,u),u[0]&4&&d(o,1)):(o=_t(a),o.c(),d(o,1),o.m(i.parentNode,i)):o&&(I(),g(o,1,1,()=>{o=null}),D())},i(a){if(!l){for(let u=0;u<n.length;u+=1)d(s[u]);d(o),l=!0}}
7,o(a){s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)g(s[u]);g(o),l=!1},d(a){a&&(E(e),E(i)),yt(s,a),o&&o.d(a)}}}function nt(t){let e,i,l,n,s,r,o,a,u,_,m,v,S,h,y,V,C=t[8][t[41]]!==null&&it(t);const Y=[vn,wn,kn,gn,bn],L=[];function G(p,b){return b[0]&1&&(s=null),b[0]&1&&(r=null),b[0]&1&&(o=null),typeof p[39]=="string"?0:(s==null&&(s=!!(p[39]!==null&&p[39].file?.mime_type?.includes("audio"))),s?1:(r==null&&(r=!!(p[39]!==null&&p[39].file?.mime_type?.includes("video"))),r?2:(o==null&&(o=!!(p[39]!==null&&p[39].file?.mime_type?.includes("image"))),o?3:p[39]!==null&&p[39].file?.url!==null?4:-1)))}~(a=G(t,[-1,-1]))&&(u=L[a]=Y[a](t));function q(){return t[30](t[38],t[41],t[39])}function J(...p){return t[31](t[38],t[41],t[39],...p)}let k=(t[4]&&t[41]!==0||t[7]&&t[39]&&typeof t[39]=="string")&&st(t);return{c(){e=N("div"),C&&C.c(),i=se(),l=N("div"),n=N("button"),u&&u.c(),v=se(),k&&k.c(),w(n,"data-testid",t[41]==0?"user":"bot"),w(n,"dir",_=t[6]?"rtl":"ltr"),w(n,"aria-label",m=(t[41]==0?"user":"bot")+"'s message: "+(typeof t[39]=="string"?t[39]:`a file of type ${t[39].file?.mime_type}, ${t[39].file?.alt_text??t[39].file?.orig_name??""}`)),w(n,"class","svelte-gutj6d"),z(n,"latest",t[38]===t[0].length-1),z(n,"message-markdown-disabled",!t[11]),z(n,"selectable",t[3]),ie(n,"user-select","text"),ie(n,"text-align",t[6]?"right":"left"),w(l,"class","message "+(t[41]==0?"user":"bot")+" svelte-gutj6d"),z(l,"message-fit",t[14]==="bubble"&&!t[10]),z(l,"panel-full-width",t[14]==="panel"),z(l,"message-bubble-border",t[14]==="bubble"),z(l,"message-markdown-disabled",!t[11]),ie(l,"text-align",t[6]&&t[41]==0?"left":"right"),w(e,"class",S="message-row "+t[14]+" "+(t[41]==0?"user-row":"bot-row")+" svelte-gutj6d")},m(p,b){P(p,e,b),C&&C.m(e,null),X(e,i),X(e,l),X(l,n),~a&&L[a].m(n,null),X(e,v),k&&k.m(e,null),h=!0,y||(V=[Xe(n,"click",q),Xe(n,"keydown",J)],y=!0)},p(p,b){t=p,t[8][t[41]]!==null?C?(C.p(t,b),b[0]&256&&d(C,1)):(C=it(t),C.c(),d(C,1),C.m(e,i)):C&&(I(),g(C,1,1,()=>{C=null}),D());let R=a;a=G(t,b),a===R?~a&&L[a].p(t,b):(u&&(I(),g(L[R],1,1,()=>{L[R]=null}),D()),~a?(u=L[a],u?u.p(t,b):(u=L[a]=Y[a](t),u.c()),d(u,1),u.m(n,null)):u=null),(!h||b[0]&64&&_!==(_=t[6]?"rtl":"ltr"))&&w(n,"dir",_),(!h||b[0]&1&&m!==(m=(t[41]==0?"user":"bot")+"'s message: "+(typeof t[39]=="string"?t[39]:`a file of type ${t[39].file?.mime_type}, ${t[39].file?.alt_text??t[39].file?.orig_name??""}`)))&&w(n,"aria-label",m),(!h||b[0]&1)&&z(n,"latest",t[38]===t[0].length-1),(!h||b[0]&2048)&&z(n,"message-markdown-disabled",!t[11]),(!h||b[0]&8)&&z(n,"selectable",t[3]),b[0]&64&&ie(n,"text-align",t[6]?"right":"left"),(!h||b[0]&17408)&&z(l,"message-fit",t[14]==="bubble"&&!t[10]),(!h||b[0]&16384)&&z(l,"panel-full-width",t[14]==="panel"),(!h||b[0]&16384)&&z(l,"message-bubble-border",t[14]==="bubble"),(!h||b[0]&2048)&&z(l,"message-markdown-disabled",!t[11]),b[0]&64&&ie(l,"text-align",t[6]&&t[41]==0?"left":"right"),t[4]&&t[41]!==0||t[7]&&t[39]&&typeof t[39]=="string"?k?(k.p(t,b),b[0]&145&&d(k,1)):(k=st(t),k.c(),d(k,1),k.m(e,null)):k&&(I(),g(k,1,1,()=>{k=null}),D()),(!h||b[0]&16384&&S!==(S="message-row "+t[14]+" "+(t[41]==0?"user-row":"bot-row")+" svelte-gutj6d"))&&w(e,"class",S)},i(p){h||(d(C),d(u),d(k),h=!0)},o(p){g(C),g(u),g(k),h=!1},d(p){p&&E(e),C&&C.d(),~a&&L[a].d(),k&&k.d(),y=!1,rn(V)}}}function it(t){let e,i,l;return i=new wt({props:{class:"avatar-image",src:t[8][t[41]]?.url,alt:(t[41]==0?"user":"bot")+" avatar"}}),{c(){e=N("div"),Z(i.$$.fragment),w(e,"class","avatar-container svelte-gutj6d")},m(n,s){P(n,e,s),O(i,e,null),l=!0},p(n,s){const r={};s[0]&256&&(r.src=n[8][n[41]]?.url),i.$set(r)},i(n){l||(d(i.$$.fragment,n),l=!0)},o(n){g(i.$$.fragment,n),l=!1},d(n){n&&E(e),F(i)}}}function bn(t){let e,i=(t[39].file?.orig_name||t[39].file?.path)+"",l,n,s;return{c(){e=N("a"),l=_n(i),w(e,"data-testid","chatbot-file"),w(e,"href",n=t[39].file?.url),w(e,"target","_blank"),w(e,"download",s=window.__is_colab__?null:t[39].file?.orig_name||t[39].file?.path),w(e,"class","svelte-gutj6d")},m(r,o){P(r,e,o),X(e,l)},p(r,o){o[0]&1&&i!==(i=(r[39].file?.orig_name||r[39].file?.path)+"")&&un(l,i),o[0]&1&&n!==(n=r[39].file?.url)&&w(e,"href",n),o[0]&1&&s!==(s=window.__is_colab__?null:r[39].file?.orig_name||r[39].file?.path)&&w(e,"download",s)},i:qe,o:qe,d(r){r&&E(e)}}}function gn(t){let e,i;return e=new wt({props:{"data-testid":"chatbot-image",src:t[39].file?.url,alt:t[39].alt_text}}),{c(){Z(e.$$.fragment)},m(l,n){O(e,l,n),i=!0},p(l,n){const s={};n[0]&1&&(s.src=l[39].file?.url),n[0]&1&&(s.alt=l[39].alt_text),e.$set(s)},i(l){i||(d(e.$$.fragment,l),i=!0)},o(l){g(e.$$.fragment,l),i=!1},d(l){F(e,l)}}}function kn(t){let e,i;return e=new Mt({props:{"data-testid":"chatbot-video",controls:!0,src:t[39].file?.url,title:t[39].alt_text,preload:"auto",$$slots:{default:[pn]},$$scope:{ctx:t}}}),e.$on("play",t[27]),e.$on("pause",t[28]),e.$on("ended",t[29]),{c(){Z(e.$$.fragment)},m(l,n){O(e,l,n),i=!0},p(l,n){const s={};n[0]&1&&(s.src=l[39].file?.url),n[0]&1&&(s.title=l[39].alt_text),n[1]&2048&&(s.$$scope={dirty:n,ctx:l}),e.$set(s)},i(l){i||(d(e.$$.fragment,l),i=!0)},o(l){g(e.$$.fragment,l),i=!1},d(l){F(e,l)}}}function wn(t){let e,i;return e=new $l({props:{"data-testid":"chatbot-audio",controls:!0,preload:"metadata",src:t[39].file?.url,title:t[39].alt_text}}),e.$on("play",t[24]),e.$on("pause",t[25]),e.$on("ended",t[26]),{c(){Z(e.$$.fragment)},m(l,n){O(e,l,n),i=!0},p(l,n){const s={};n[0]&1&&(s.src=l[39].file?.url),n[0]&1&&(s.title=l[39].alt_text),e.$set(s)},i(l){i||(d(e.$$.fragment,l),i=!0)},o(l){g(e.$$.fragment,l),i=!1},d(l){F(e,l)}}}function vn(t){let e,i;return e=new vt({props:{message:t[39],latex_delimiters:t[1],sanitize_html:t[9],render_markdown:t[11],line_breaks:t[12]}}),e.$on("load",t[17]),{c(){Z(e.$$.fragment)},m(l,n){O(e,l,n),i=!0},p(l,n){const s={};n[0]&1&&(s.message=l[39]),n[0]&2&&(s.latex_delimiters=l[1]),n[0]&512&&(s.sanitize_html=l[9]),n[0]&2048&&(s.render_markdown=l[11]),n[0]&4096&&(s.line_breaks=l[12]),e.$set(s)},i(l){i||(d(e.$$.fragment,l),i=!0)},o(l){g(e.$$.fragment,l),i=!1},d(l){F(e,l)}}}function pn(t){let e;return{c(){e=N("track"),w(e,"kind","captions"),w(e,"class","svelte-gutj6d")},m(i,l){P(i,e,l)},p:qe,d(i){i&&E(e)}}}function st(t){let e,i,l,n,s=t[4]&&t[41]==1&&at(t),r=t[7]&&t[39]&&typeof t[39]=="string"&&rt(t);return{c(){e=N("div"),s&&s.c(),i=se(),r&&r.c(),w(e,"class",l="message-buttons-"+(t[41]==0?"user":"bot")+" message-buttons-"+t[14]+" "+(t[8][t[41]]!==null&&"with-avatar")+" svelte-gutj6d"),z(e,"message-buttons-fit",t[14]==="bubble"&&!t[10]),z(e,"bubble-buttons-user",t[14]==="bubble")},m(o,a){P(o,e,a),s&&s.m(e,null),X(e,i),r&&r.m(e,null),n=!0},p(o,a){o[4]&&o[41]==1?s?(s.p(o,a),a[0]&16&&d(s,1)):(s=at(o),s.c(),d(s,1),s.m(e,i)):s&&(I(),g(s,1,1,()=>{s=null}),D()),o[7]&&o[39]&&typeof o[39]=="string"?r?(r.p(o,a),a[0]&129&&d(r,1)):(r=rt(o),r.c(),d(r,1),r.m(e,null)):r&&(I(),g(r,1,1,()=>{r=null}),D()),(!n||a[0]&16640&&l!==(l="message-buttons-"+(o[41]==0?"user":"bot")+" message-buttons-"+o[14]+" "+(o[8][o[41]]!==null&&"with-avatar")+" svelte-gutj6d"))&&w(e,"class",l),(!n||a[0]&17664)&&z(e,"message-buttons-fit",o[14]==="bubble"&&!o[10]),(!n||a[0]&16640)&&z(e,"bubble-buttons-user",o[14]==="bubble")},i(o){n||(d(s),d(r),n=!0)},o(o){g(s),g(r),n=!1},d(o){o&&E(e),s&&s.d(),r&&r.d()}}}function at(t){let e,i;function l(...n){return t[32](t[38],t[41],t[39],...n)}return e=new Rl({props:{handle_action:l}}),{c(){Z(e.$$.fragment)},m(n,s){O(e,n,s),i=!0},p(n,s){t=n;const r={};s[0]&1&&(r.handle_action=l),e.$set(r)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function rt(t){let e,i;return e=new Vl({props:{value:t[39]}}),{c(){Z(e.$$.fragment)},m(l,n){O(e,l,n),i=!0},p(l,n){const s={};n[0]&1&&(s.value=l[39]),e.$set(s)},i(l){i||(d(e.$$.fragment,l),i=!0)},o(l){g(e.$$.fragment,l),i=!1},d(l){F(e,l)}}}function ot(t){let e,i,l=t[39]!==null&&nt(t);return{c(){l&&l.c(),e=Be()},m(n,s){l&&l.m(n,s),P(n,e,s),i=!0},p(n,s){n[39]!==null?l?(l.p(n,s),s[0]&1&&d(l,1)):(l=nt(n),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(I(),g(l,1,1,()=>{l=null}),D())},i(n){i||(d(l),i=!0)},o(n){g(l),i=!1},d(n){n&&E(e),l&&l.d(n)}}}function ut(t){let e,i,l=_e(t[36]),n=[];for(let r=0;r<l.length;r+=1)n[r]=ot(tt(t,l,r));const s=r=>g(n[r],1,1,()=>{n[r]=null});return{c(){for(let r=0;r<n.length;r+=1)n[r].c();e=Be()},m(r,o){for(let a=0;a<n.length;a+=1)n[a]&&n[a].m(r,o);P(r,e,o),i=!0},p(r,o){if(o[0]&942043){l=_e(r[36]);let a;for(a=0;a<l.length;a+=1){const u=tt(r,l,a);n[a]?(n[a].p(u,o),d(n[a],1)):(n[a]=ot(u),n[a].c(),d(n[a],1),n[a].m(e.parentNode,e))}for(I(),a=l.length;a<n.length;a+=1)s(a);D()}},i(r){if(!i){for(let o=0;o<l.length;o+=1)d(n[o]);i=!0}}
7,o(r){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)g(n[o]);i=!1},d(r){r&&E(e),yt(n,r)}}}function _t(t){let e,i;return e=new tn({props:{layout:t[14]}}),{c(){Z(e.$$.fragment)},m(l,n){O(e,l,n),i=!0},p(l,n){const s={};n[0]&16384&&(s.layout=l[14]),e.$set(s)},i(l){i||(d(e.$$.fragment,l),i=!0)},o(l){g(e.$$.fragment,l),i=!1},d(l){F(e,l)}}}function $n(t){let e,i,l,n,s,r,o,a,u,_=t[5]&&t[0]!==null&&t[0].length>0&<(t);const m=[mn,dn],v=[];function S(h,y){return h[0]!==null&&h[0].length>0?0:h[15]!==null?1:-1}return~(n=S(t))&&(s=v[n]=m[n](t)),{c(){_&&_.c(),e=se(),i=N("div"),l=N("div"),s&&s.c(),w(l,"class","message-wrap svelte-gutj6d"),z(l,"bubble-gap",t[14]==="bubble"),w(i,"class",r=xe(t[14]==="bubble"?"bubble-wrap":"panel-wrap")+" svelte-gutj6d"),w(i,"role","log"),w(i,"aria-label","chatbot conversation"),w(i,"aria-live","polite"),z(i,"placeholder-container",t[0]===null||t[0].length===0)},m(h,y){_&&_.m(h,y),P(h,e,y),P(h,i,y),X(i,l),~n&&v[n].m(l,null),t[33](i),o=!0,a||(u=nn(jt.call(null,l)),a=!0)},p(h,y){h[5]&&h[0]!==null&&h[0].length>0?_?(_.p(h,y),y[0]&33&&d(_,1)):(_=lt(h),_.c(),d(_,1),_.m(e.parentNode,e)):_&&(I(),g(_,1,1,()=>{_=null}),D());let V=n;n=S(h),n===V?~n&&v[n].p(h,y):(s&&(I(),g(v[V],1,1,()=>{v[V]=null}),D()),~n?(s=v[n],s?s.p(h,y):(s=v[n]=m[n](h),s.c()),d(s,1),s.m(l,null)):s=null),(!o||y[0]&16384)&&z(l,"bubble-gap",h[14]==="bubble"),(!o||y[0]&16384&&r!==(r=xe(h[14]==="bubble"?"bubble-wrap":"panel-wrap")+" svelte-gutj6d"))&&w(i,"class",r),(!o||y[0]&16385)&&z(i,"placeholder-container",h[0]===null||h[0].length===0)},i(h){o||(d(_),d(s),o=!0)},o(h){g(_),g(s),o=!1},d(h){h&&(E(e),E(i)),_&&_.d(h),~n&&v[n].d(),t[33](null),a=!1,u()}}}function Cn(t,e,i){let l,{value:n}=e,s=null,{latex_delimiters:r}=e,{pending_message:o=!1}=e,{selectable:a=!1}=e,{likeable:u=!1}=e,{show_share_button:_=!1}=e,{rtl:m=!1}=e,{show_copy_button:v=!1}=e,{avatar_images:S=[null,null]}=e,{sanitize_html:h=!0}=e,{bubble_full_width:y=!0}=e,{render_markdown:V=!0}=e,{line_breaks:C=!0}=e,{i18n:Y}=e,{layout:L="bubble"}=e,{placeholder:G=null}=e,q,J;const k=hn();fn(()=>{J=q&&q.offsetHeight+q.scrollTop>q.scrollHeight-100});const p=()=>{J&&q.scrollTo(0,q.scrollHeight)};cn(()=>{J&&(p(),q.querySelectorAll("img").forEach(c=>{c.addEventListener("load",()=>{p()})}))});function b(c,A,B){k("select",{index:[c,A],value:B})}function R(c,A,B,ne){k("like",{index:[c,A],value:B,liked:ne==="like"})}function te(c){K.call(this,t,c)}function ae(c){K.call(this,t,c)}function re(c){K.call(this,t,c)}function de(c){K.call(this,t,c)}function me(c){K.call(this,t,c)}function be(c){K.call(this,t,c)}function ge(c){K.call(this,t,c)}function ke(c){K.call(this,t,c)}const we=(c,A,B)=>b(c,A,B),f=(c,A,B,ne)=>{ne.key==="Enter"&&b(c,A,B)},le=(c,A,B,ne)=>R(c,A,B,ne);function zt(c){sn[c?"unshift":"push"](()=>{q=c,i(16,q)})}return t.$$set=c=>{"value"in c&&i(0,n=c.value),"latex_delimiters"in c&&i(1,r=c.latex_delimiters),"pending_message"in c&&i(2,o=c.pending_message),"selectable"in c&&i(3,a=c.selectable),"likeable"in c&&i(4,u=c.likeable),"show_share_button"in c&&i(5,_=c.show_share_button),"rtl"in c&&i(6,m=c.rtl),"show_copy_button"in c&&i(7,v=c.show_copy_button),"avatar_images"in c&&i(8,S=c.avatar_images),"sanitize_html"in c&&i(9,h=c.sanitize_html),"bubble_full_width"in c&&i(10,y=c.bubble_full_width),"render_markdown"in c&&i(11,V=c.render_markdown),"line_breaks"in c&&i(12,C=c.line_breaks),"i18n"in c&&i(13,Y=c.i18n),"layout"in c&&i(14,L=c.layout),"placeholder"in c&&i(15,G=c.placeholder)},t.$$.update=()=>{t.$$.dirty[0]&2097152&&l(),t.$$.dirty[0]&1048577&&(qt(n,s)||(i(20,s=n),k("change")))},i(21,l=()=>{let A=getComputedStyle(document.body).getPropertyValue("--body-text-size"),B;switch(A){case"13px":B=14;break;case"14px":B=16;break;case"16px":B=20;break;default:B=14;break}document.body.style.setProperty("--chatbot-body-text-size",B+"px")}),[n,r,o,a,u,_,m,v,S,h,y,V,C,Y,L,G,q,p,b,R,s,l,te,ae,re,de,me,be,ge,ke,we,f,le,zt]}class yn extends ln{constructor(e){super(),an(this,e,Cn,$n,on,{value:0,latex_delimiters:1,pending_message:2,selectable:3,likeable:4,show_share_button:5,rtl:6,show_copy_button:7,avatar_images:8,sanitize_html:9,bubble_full_width:10,render_markdown:11,line_breaks:12,i18n:13,layout:14,placeholder:15},null,[-1,-1])}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),j()}get latex_delimiters(){return this.$$.ctx[1]}set latex_delimiters(e){this.$$set({latex_delimiters:e}),j()}get pending_message(){return this.$$.ctx[2]}set pending_message(e){this.$$set({pending_message:e}),j()}get selectable(){return this.$$.ctx[3]}set selectable(e){this.$$set({selectable:e}),j()}get likeable(){return this.$$.ctx[4]}set likeable(e){this.$$set({likeable:e}),j()}get show_share_button(){return this.$$.ctx[5]}set show_share_button(e){this.$$set({show_share_button:e}),j()}get rtl(){return this.$$.ctx[6]}set rtl(e){this.$$set({rtl:e}),j()}get show_copy_button(){return this.$$.ctx[7]}set show_copy_button(e){this.$$set({show_copy_button:e}),j()}get avatar_images(){return this.$$.ctx[8]}set avatar_images(e){this.$$set({avatar_images:e}),j()}get sanitize_html(){return this.$$.ctx[9]}set sanitize_html(e){this.$$set({sanitize_html:e}),j()}get bubble_full_width(){return this.$$.ctx[10]}set bubble_full_width(e){this.$$set({bubble_full_width:e}),j()}get render_markdown(){return this.$$.ctx[11]}set render_markdown(e){this.$$set({render_markdown:e}),j()}get line_breaks(){return this.$$.ctx[12]}set line_breaks(e){this.$$set({line_breaks:e}),j()}get i18n(){return this.$$.ctx[13]}set i18n(e){this.$$set({i18n:e}),j()}get layout(){return this.$$.ctx[14]}set layout(e){this.$$set({layout:e}),j()}get placeholder(){return this.$$.ctx[15]}set placeholder(e){this.$$set({placeholder:e}),j()}}const zn=yn,{SvelteComponent:Sn,append:jn,assign:qn,attr:Bn,check_outros:ft,create_component:fe,destroy_component:ce,detach:ct,element:Hn,flush:$,get_spread_object:Mn,get_spread_update:Ln,group_outros:ht,init:Tn,insert:dt,mount_component:he,safe_not_equal:En,space:mt,transition_in:U,transition_out:W}=window.__gradio__svelte__internal;function bt(t){let e,i;const l=[{autoscroll:t[19].autoscroll},{i18n:t[19].i18n},t[21],{show_progress:t[21].show_progress==="hidden"?"hidden":"minimal"}];let n={};for(let s=0;s<l.length;s+=1)n=qn(n,l[s]);return e=new St({props:n}),e.$on("clear_status",t[26]),{c(){fe(e.$$.fragment)},m(s,r){he(e,s,r),i=!0},p(s,r){const o=r[0]&2621440?Ln(l,[r[0]&524288&&{autoscroll:s[19].autoscroll},r[0]&524288&&{i18n:s[19].i18n},r[0]&2097152&&Mn(s[21]),r[0]&2097152&&{show_progress:s[21].show_progress==="hidden"?"hidden":"minimal"}]):{};e.$set(o)},i(s){i||(U(e.$$.fragment,s),i=!0)},o(s){W(e.$$.fragment,s),i=!1},d(s){ce(e,s)}}}function gt(t){let e,i;return e=new Pt({props:{show_label:t[7],Icon:Zt,float:!1,label:t[6]||"Chatbot"}}),{c(){fe(e.$$.fragment)},m(l,n){he(e,l,n),i=!0},p(l,n){const s={};n[0]&128&&(s.show_label=l[7]),n[0]&64&&(s.label=l[6]||"Chatbot"),e.$set(s)},i(l){i||(U(e.$$.fragment,l),i=!0)},o(l){W(e.$$.fragment,l),i=!1},d(l){ce(e,l)}}}function Pn(t){let e,i,l,n,s,r=t[21]&&bt(t),o=t[7]&>(t);return n=new zn({props:{i18n:t[19].i18n,selectable:t[8],likeable:t[9],show_share_button:t[10],value:t[24],latex_delimiters:t[18],render_markdown:t[16],pending_message:t[21]?.status==="pending",rtl:t[11],show_copy_button:t[12],avatar_images:t[20],sanitize_html:t[13],bubble_full_width:t[14],line_breaks:t[17],layout:t[15],placeholder:t[23]}}),n.$on("change",t[27]),n.$on("select",t[28]),n.$on("like",t[29]),n.$on("share",t[30]),n.$on("error",t[31]),{
7c(){r&&r.c(),e=mt(),i=Hn("div"),o&&o.c(),l=mt(),fe(n.$$.fragment),Bn(i,"class","wrapper svelte-nab2ao")},m(a,u){r&&r.m(a,u),dt(a,e,u),dt(a,i,u),o&&o.m(i,null),jn(i,l),he(n,i,null),s=!0},p(a,u){a[21]?r?(r.p(a,u),u[0]&2097152&&U(r,1)):(r=bt(a),r.c(),U(r,1),r.m(e.parentNode,e)):r&&(ht(),W(r,1,1,()=>{r=null}),ft()),a[7]?o?(o.p(a,u),u[0]&128&&U(o,1)):(o=gt(a),o.c(),U(o,1),o.m(i,l)):o&&(ht(),W(o,1,1,()=>{o=null}),ft());const _={};u[0]&524288&&(_.i18n=a[19].i18n),u[0]&256&&(_.selectable=a[8]),u[0]&512&&(_.likeable=a[9]),u[0]&1024&&(_.show_share_button=a[10]),u[0]&16777216&&(_.value=a[24]),u[0]&262144&&(_.latex_delimiters=a[18]),u[0]&65536&&(_.render_markdown=a[16]),u[0]&2097152&&(_.pending_message=a[21]?.status==="pending"),u[0]&2048&&(_.rtl=a[11]),u[0]&4096&&(_.show_copy_button=a[12]),u[0]&1048576&&(_.avatar_images=a[20]),u[0]&8192&&(_.sanitize_html=a[13]),u[0]&16384&&(_.bubble_full_width=a[14]),u[0]&131072&&(_.line_breaks=a[17]),u[0]&32768&&(_.layout=a[15]),u[0]&8388608&&(_.placeholder=a[23]),n.$set(_)},i(a){s||(U(r),U(o),U(n.$$.fragment,a),s=!0)},o(a){W(r),W(o),W(n.$$.fragment,a),s=!1},d(a){a&&(ct(e),ct(i)),r&&r.d(a),o&&o.d(),ce(n)}}}function Vn(t){let e,i;return e=new Et({props:{elem_id:t[0],elem_classes:t[1],visible:t[2],padding:!1,scale:t[4],min_width:t[5],height:t[22],allow_overflow:!1,$$slots:{default:[Pn]},$$scope:{ctx:t}}}),{c(){fe(e.$$.fragment)},m(l,n){he(e,l,n),i=!0},p(l,n){const s={};n[0]&1&&(s.elem_id=l[0]),n[0]&2&&(s.elem_classes=l[1]),n[0]&4&&(s.visible=l[2]),n[0]&16&&(s.scale=l[4]),n[0]&32&&(s.min_width=l[5]),n[0]&4194304&&(s.height=l[22]),n[0]&29360072|n[1]&4&&(s.$$scope={dirty:n,ctx:l}),e.$set(s)},i(l){i||(U(e.$$.fragment,l),i=!0)},o(l){W(e.$$.fragment,l),i=!1},d(l){ce(e,l)}}}function kt(t){return t===null?t:{file:t?.file,alt_text:t?.alt_text}}function An(t,e,i){let{elem_id:l=""}=e,{elem_classes:n=[]}=e,{visible:s=!0}=e,{value:r=[]}=e,{scale:o=null}=e,{min_width:a=void 0}=e,{label:u}=e,{show_label:_=!0}=e,{root:m}=e,{_selectable:v=!1}=e,{likeable:S=!1}=e,{show_share_button:h=!1}=e,{rtl:y=!1}=e,{show_copy_button:V=!1}=e,{sanitize_html:C=!0}=e,{bubble_full_width:Y=!0}=e,{layout:L="bubble"}=e,{render_markdown:G=!0}=e,{line_breaks:q=!0}=e,{latex_delimiters:J}=e,{gradio:k}=e,{avatar_images:p=[null,null]}=e,b;const R=f=>f.replace('src="/file',`src="${m}file`);let{loading_status:te=void 0}=e,{height:ae=400}=e,{placeholder:re=null}=e;const de=()=>k.dispatch("clear_status",te),me=()=>k.dispatch("change",r),be=f=>k.dispatch("select",f.detail),ge=f=>k.dispatch("like",f.detail),ke=f=>k.dispatch("share",f.detail),we=f=>k.dispatch("error",f.detail);return t.$$set=f=>{"elem_id"in f&&i(0,l=f.elem_id),"elem_classes"in f&&i(1,n=f.elem_classes),"visible"in f&&i(2,s=f.visible),"value"in f&&i(3,r=f.value),"scale"in f&&i(4,o=f.scale),"min_width"in f&&i(5,a=f.min_width),"label"in f&&i(6,u=f.label),"show_label"in f&&i(7,_=f.show_label),"root"in f&&i(25,m=f.root),"_selectable"in f&&i(8,v=f._selectable),"likeable"in f&&i(9,S=f.likeable),"show_share_button"in f&&i(10,h=f.show_share_button),"rtl"in f&&i(11,y=f.rtl),"show_copy_button"in f&&i(12,V=f.show_copy_button),"sanitize_html"in f&&i(13,C=f.sanitize_html),"bubble_full_width"in f&&i(14,Y=f.bubble_full_width),"layout"in f&&i(15,L=f.layout),"render_markdown"in f&&i(16,G=f.render_markdown),"line_breaks"in f&&i(17,q=f.line_breaks),"latex_delimiters"in f&&i(18,J=f.latex_delimiters),"gradio"in f&&i(19,k=f.gradio),"avatar_images"in f&&i(20,p=f.avatar_images),"loading_status"in f&&i(21,te=f.loading_status),"height"in f&&i(22,ae=f.height),"placeholder"in f&&i(23,re=f.placeholder)},t.$$.update=()=>{t.$$.dirty[0]&8&&i(24,b=r?r.map(([f,le])=>[typeof f=="string"?R(f):kt(f),typeof le=="string"?R(le):kt(le)]):[])},[l,n,s,r,o,a,u,_,v,S,h,y,V,C,Y,L,G,q,J,k,p,te,ae,re,b,m,de,me,be,ge,ke,we]}class ti extends Sn{constructor(e){super(),Tn(this,e,An,Vn,En,{elem_id:0,elem_classes:1,visible:2,value:3,scale:4,min_width:5,label:6,show_label:7,root:25,_selectable:8,likeable:9,show_share_button:10,rtl:11,show_copy_button:12,sanitize_html:13,bubble_full_width:14,layout:15,render_markdown:16,line_breaks:17,latex_delimiters:18,gradio:19,avatar_images:20,loading_status:21,height:22,placeholder:23},null,[-1,-1])}get elem_id(){return this.$$.ctx[0]}set elem_id(e){this.$$set({elem_id:e}),$()}get elem_classes(){return this.$$.ctx[1]}set elem_classes(e){this.$$set({elem_classes:e}),$()}get visible(){return this.$$.ctx[2]}set visible(e){this.$$set({visible:e}),$()}get value(){return this.$$.ctx[3]}set value(e){this.$$set({value:e}),$()}get scale(){return this.$$.ctx[4]}set scale(e){this.$$set({scale:e}),$()}get min_width(){return this.$$.ctx[5]}set min_width(e){this.$$set({min_width:e}),$()}get label(){return this.$$.ctx[6]}set label(e){this.$$set({label:e}),$()}get show_label(){return this.$$.ctx[7]}set show_label(e){this.$$set({show_label:e}),$()}get root(){return this.$$.ctx[25]}set root(e){this.$$set({root:e}),$()}get _selectable(){return this.$$.ctx[8]}set _selectable(e){this.$$set({_selectable:e}),$()}get likeable(){return this.$$.ctx[9]}set likeable(e){this.$$set({likeable:e}),$()}get show_share_button(){return this.$$.ctx[10]}set show_share_button(e){this.$$set({show_share_button:e}),$()}get rtl(){return this.$$.ctx[11]}set rtl(e){this.$$set({rtl:e}),$()}get show_copy_button(){return this.$$.ctx[12]}set show_copy_button(e){this.$$set({show_copy_button:e}),$()}get sanitize_html(){return this.$$.ctx[13]}set sanitize_html(e){this.$$set({sanitize_html:e}),$()}get bubble_full_width(){return this.$$.ctx[14]}set bubble_full_width(e){this.$$set({bubble_full_width:e}),$()}get layout(){return this.$$.ctx[15]}set layout(e){this.$$set({layout:e}),$()}get render_markdown(){return this.$$.ctx[16]}set render_markdown(e){this.$$set({render_markdown:e}),$()}get line_breaks(){return this.$$.ctx[17]}set line_breaks(e){this.$$set({line_breaks:e}),$()}get latex_delimiters(){return this.$$.ctx[18]}set latex_delimiters(e){this.$$set({latex_delimiters:e}),$()}get gradio(){return this.$$.ctx[19]}set gradio(e){this.$$set({gradio:e}),$()}get avatar_images(){return this.$$.ctx[20]}set avatar_images(e){this.$$set({avatar_images:e}),$()}get loading_status(){return this.$$.ctx[21]}set loading_status(e){this.$$set({loading_status:e}),$()}get height(){return this.$$.ctx[22]}set height(e){this.$$set({height:e}),$()}get placeholder(){return this.$$.ctx[23]}set placeholder(e){this.$$set({placeholder:e}),$()}}export{zn as BaseChatBot,ti as default}; 8//# sourceMappingURL=Index-Bv_rU9uo.js.map
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.