1import{B as ei}from"./Block-DdQws7Te.js";import"./MarkdownCode.svelte_svelte_type_style_lang-BB-itM20.js";import"./IconButtonWrapper.svelte_svelte_type_style_lang-BOpxTcdu.js";import{d as Ve}from"./index-CnqicUFC.js";import{U as ti}from"./Upload-BVkk_8ji.js";/* empty css */import{M as li}from"./MarkdownCode-CKlPsAWp.js";import"./index-DUPwsM33.js";import{C as ni}from"./Copy-CxQ9EyK2.js";import{M as oi,a as ii}from"./Minimize-OAHZO2Ge.js";import{d as si}from"./dsv-DB8NKgIY.js";import{S as ri}from"./index-bSCVAeem.js";import"./StreamingBar.svelte_svelte_type_style_lang-CDNxkBIr.js";import{default as fu}from"./Example-Gc9wJ8uR.js";import"./prism-python-DJXBfrTF.js";/* empty css */import"./svelte/svelte.js";import"./IconButton-B-aAVSzy.js";import"./Clear-By3xiIwg.js";const{HtmlTag:ui,SvelteComponent:_i,action_destroyer:ai,attr:Te,binding_callbacks:fi,bubble:Ft,check_outros:ci,create_component:hi,destroy_component:di,detach:zt,element:Kn,empty:mi,flush:Ce,group_outros:gi,init:bi,insert:Lt,listen:Oe,mount_component:wi,noop:Jt,prevent_default:pi,run_all:Un,safe_not_equal:ki,set_data:vi,set_input_value:Il,space:yi,stop_propagation:ul,text:Ci,toggle_class:Je,transition_in:cl,transition_out:hl}=window.__gradio__svelte__internal,{createEventDispatcher:Ai}=window.__gradio__svelte__internal;function Kl(n){let e,t,l;return{c(){e=Kn("input"),Te(e,"role","textbox"),Te(e,"tabindex","-1"),Te(e,"class","svelte-svrul5"),Je(e,"header",n[4])},m(o,i){Lt(o,e,i),n[24](e),Il(e,n[11]),t||(l=[Oe(e,"input",n[25]),Oe(e,"blur",n[14]),Oe(e,"mousedown",ul(n[21])),Oe(e,"mouseup",ul(n[22])),Oe(e,"click",ul(n[23])),ai(n[13].call(null,e)),Oe(e,"keydown",n[15])],t=!0)},p(o,i){i&2048&&e.value!==o[11]&&Il(e,o[11]),i&16&&Je(e,"header",o[4])},d(o){o&&zt(e),n[24](null),t=!1,Un(l)}}}function Si(n){let e=(n[8]?n[12]:n[2]||n[12])+"",t;return{c(){t=Ci(e)},m(l,o){Lt(l,t,o)},p(l,o){o&4356&&e!==(e=(l[8]?l[12]:l[2]||l[12])+"")&&vi(t,e)},i:Jt,o:Jt,d(l){l&&zt(t)}}}function Ei(n){let e,t;return e=new li({props:{message:n[12].toLocaleString(),latex_delimiters:n[6],line_breaks:n[7],chatbot:!1,root:n[9]}}),{c(){hi(e.$$.fragment)},m(l,o){wi(e,l,o),t=!0},p(l,o){const i={};o&4096&&(i.message=l[12].toLocaleString()),o&64&&(i.latex_delimiters=l[6]),o&128&&(i.line_breaks=l[7]),o&512&&(i.root=l[9]),e.$set(i)},i(l){t||(cl(e.$$.fragment,l),t=!0)},o(l){hl(e.$$.fragment,l),t=!1},d(l){di(e,l)}}}function Mi(n){let e,t;return{c(){e=new ui(!1),t=mi(),e.a=t},m(l,o){e.m(n[12],l,o),Lt(l,t,o)},p(l,o){o&4096&&e.p(l[12])},i:Jt,o:Jt,d(l){l&&(zt(t),e.d())}}}function qi(n){let e,t,l,o,i,s,u,a=n[1]&&Kl(n);const f=[Mi,Ei,Si],r=[];function c(h,d){return h[5]==="html"?0:h[5]==="markdown"?1:2}return l=c(n),o=r[l]=f[l](n),{c(){a&&a.c(),e=yi(),t=Kn("span"),o.c(),Te(t,"tabindex","0"),Te(t,"role","button"),Te(t,"style",n[3]),Te(t,"class","table-cell-text svelte-svrul5"),Te(t,"data-editable",n[8]),Te(t,"placeholder"," "),Je(t,"edit",n[1]),Je(t,"expanded",n[10]),Je(t,"multiline",n[4])},m(h,d){a&&a.m(h,d),Lt(h,e,d),Lt(h,t,d),r[l].m(t,null),i=!0,s||(u=[Oe(t,"click",n[16]),Oe(t,"keydown",n[15]),Oe(t,"focus",pi(n[20]))],s=!0)},p(h,[d]){h[1]?a?a.p(h,d):(a=Kl(h),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null);let p=l;l=c(h),l===p?r[l].p(h,d):(gi(),hl(r[p],1,1,()=>{r[p]=null}),ci(),o=r[l],o?o.p(h,d):(o=r[l]=f[l](h),o.c()),cl(o,1),o.m(t,null)),(!i||d&8)&&Te(t,"style",h[3]),(!i||d&256)&&Te(t,"data-editable",h[8]),(!i||d&2)&&Je(t,"edit",h[1]),(!i||d&1024)&&Je(t,"expanded",h[10]),(!i||d&16)&&Je(t,"multiline",h[4])},i(h){i||(cl(o),i=!0)},o(h){hl(o),i=!1},d(h){h&&(zt(e),zt(t)),a&&a.d(h),r[l].d(),s=!1,Un(u)}}}function zi(n,e=null){const t=String(n);return!e||t.length<=e?t:t.slice(0,e)+"..."}function Li(n,e,t){let l,o,{edit:i}=e,{value:s=""}=e,{display_value:u=null}=e,{styling:a=""}=e,{header:f=!1}=e,{datatype:r="str"}=e,{latex_delimiters:c}=e,{clear_on_focus:h=!1}=e,{line_breaks:d=!0}=e,{editable:p=!0}=e,{root:D}=e,{max_chars:L=null}=e;const m=Ai();let A=!1,{el:z}=e;function q(v){return h&&t(11,l=""),requestAnimationFrame(()=>{v.focus()}),{}}function j({currentTarget:v}){t(17,s=v.value),m("blur")}function O(v){v.key==="Enter"&&(i?(t(17,s=l),m("blur")):f||t(10,A=!A)),m("keydown",v)}function U(){!i&&!f&&t(10,A=!A)}function F(v){Ft.call(this,n,v)}function H(v){Ft.call(this,n,v)}function P(v){Ft.call(this,n,v)}function k(v){Ft.call(this,n,v)}function W(v){fi[v?"unshift":"push"](()=>
1{z=v,t(0,z)})}function ee(){l=this.value,t(11,l),t(17,s)}return n.$$set=v=>{"edit"in v&&t(1,i=v.edit),"value"in v&&t(17,s=v.value),"display_value"in v&&t(2,u=v.display_value),"styling"in v&&t(3,a=v.styling),"header"in v&&t(4,f=v.header),"datatype"in v&&t(5,r=v.datatype),"latex_delimiters"in v&&t(6,c=v.latex_delimiters),"clear_on_focus"in v&&t(18,h=v.clear_on_focus),"line_breaks"in v&&t(7,d=v.line_breaks),"editable"in v&&t(8,p=v.editable),"root"in v&&t(9,D=v.root),"max_chars"in v&&t(19,L=v.max_chars),"el"in v&&t(0,z=v.el)},n.$$.update=()=>{n.$$.dirty&131072&&t(11,l=s),n.$$.dirty&656388&&t(12,o=A?s:zi(u||s,L))},[z,i,u,a,f,r,c,d,p,D,A,l,o,q,j,O,U,s,h,L,F,H,P,k,W,ee]}class Qt extends _i{constructor(e){super(),bi(this,e,Li,qi,ki,{edit:1,value:17,display_value:2,styling:3,header:4,datatype:5,latex_delimiters:6,clear_on_focus:18,line_breaks:7,editable:8,root:9,max_chars:19,el:0})}get edit(){return this.$$.ctx[1]}set edit(e){this.$$set({edit:e}),Ce()}get value(){return this.$$.ctx[17]}set value(e){this.$$set({value:e}),Ce()}get display_value(){return this.$$.ctx[2]}set display_value(e){this.$$set({display_value:e}),Ce()}get styling(){return this.$$.ctx[3]}set styling(e){this.$$set({styling:e}),Ce()}get header(){return this.$$.ctx[4]}set header(e){this.$$set({header:e}),Ce()}get datatype(){return this.$$.ctx[5]}set datatype(e){this.$$set({datatype:e}),Ce()}get latex_delimiters(){return this.$$.ctx[6]}set latex_delimiters(e){this.$$set({latex_delimiters:e}),Ce()}get clear_on_focus(){return this.$$.ctx[18]}set clear_on_focus(e){this.$$set({clear_on_focus:e}),Ce()}get line_breaks(){return this.$$.ctx[7]}set line_breaks(e){this.$$set({line_breaks:e}),Ce()}get editable(){return this.$$.ctx[8]}set editable(e){this.$$set({editable:e}),Ce()}get root(){return this.$$.ctx[9]}set root(e){this.$$set({root:e}),Ce()}get max_chars(){return this.$$.ctx[19]}set max_chars(e){this.$$set({max_chars:e}),Ce()}get el(){return this.$$.ctx[0]}set el(e){this.$$set({el:e}),Ce()}}const{ResizeObserverSingleton:Bi,SvelteComponent:Di,add_iframe_resize_listener:Ul,add_render_callback:Vl,append:Ze,attr:Ot,binding_callbacks:Jl,check_outros:Vn,create_slot:dl,detach:Zt,element:st,empty:Jn,ensure_array_like:Wl,flush:Ke,get_all_dirty_from_scope:ml,get_slot_changes:gl,group_outros:Wn,init:ji,insert:$t,listen:Ti,outro_and_destroy_block:Ri,resize_observer_content_box:Hi,safe_not_equal:Ni,set_style:Ae,space:Xl,text:Pi,toggle_class:Yl,transition_in:et,transition_out:rt,update_keyed_each:Fi,update_slot_base:bl}=window.__gradio__svelte__internal,{onMount:Oi,tick:Et}=window.__gradio__svelte__internal,Ii=n=>({}),Gl=n=>({});function Ql(n,e,t){const l=n.slice();return l[37]=e[t],l}const Ki=n=>({item:n[0]&1024,index:n[0]&1024}),Zl=n=>({item:n[37].data,index:n[37].index}),Ui=n=>({}),$l=n=>({});function xl(n){let e=[],t=new Map,l,o,i=Wl(n[10]);const s=u=>u[37].data[0].id;for(let u=0;u<i.length;u+=1){let a=Ql(n,i,u),f=s(a);t.set(f,e[u]=en(f,a))}return{c(){for(let u=0;u<e.length;u+=1)e[u].c();l=Jn()},m(u,a){for(let f=0;f<e.length;f+=1)e[f]&&e[f].m(u,a);$t(u,l,a),o=!0},p(u,a){a[0]&2098176&&(i=Wl(u[10]),Wn(),e=Fi(e,a,s,1,u,i,t,l.parentNode,Ri,en,l,Ql),Vn())},i(u){if(!o){for(let a=0;a<i.length;a+=1)et(e[a]);o=!0}},o(u){for(let a=0;a<e.length;a+=1)rt(e[a]);o=!1},d(u){u&&Zt(l);for(let a=0;a<e.length;a+=1)e[a].d(u)}}}function Vi(n){let e;return{c(){e=Pi(`Missing Table Row 2 `)},m(t,l){$t(t,e,l)},d(t){t&&Zt(e)}}}function en(n,e){let t,l;const o=e[22].tbody,i=dl(o,e,e[21],Zl),s=i||Vi();return{key:n,first:null,c(){t=Jn(),s&&s.c(),this.first=t},m(u,a){$t(u,t,a),s&&s.m(u,a),l=!0},p(u,a){e=u,i&&i.p&&(!l||a[0]&2098176)&&bl(i,o,e,e[21],l?gl(o,e[21],a,Ki):ml(e[21]),Zl)},i(u){l||(et(s,u),l=!0)},o(u){rt(s,u),l=!1},d(u){u&&Zt(t),s&&s.d(u)}}}function Ji(n){let e,t,l,o,i,s,u,a,f,r,c,h,d,p;const D=n[22].thead,L=dl(D,n,n[21],$l);let m=n[10].length&&n[10][0].data.length&&xl(n);const A=n[22].tfoot,z=dl(A,n,n[21],Gl);return{c(){e=st("svelte-virtual-table-viewport"),t=st("div"),l=st("table"),o=st("thead"),L&&L.c(),s=Xl(),u=st("tbody"),m&&m.c(),a=Xl(),f=st("tfoot"),z&&z.c(),Ot(o,"class","thead svelte-y11bhb"),Vl(()=>n[23].call(o)),Ot(u,"class","tbody svelte-y11bhb"),Ot(f,"class","tfoot svelte-y11bhb"),Vl(()=>n[25].call(f)),Ot(l,"class","table svelte-y11bhb"),Ae(l,"height",Wi),Ae(l,"--bw-svt-p-top",n[8]+"px"),Ae(l,"--bw-svt-p-bottom",n[4]+"px"),Ae(l,"--bw-svt-head-height",n[6]+"px"),Ae(l,"--bw-svt-foot-height",n[7]+"px"),Ae(l,"--bw-svt-avg-row-height",n[2]+"px"),Ae(l,"--max-height",n[0]+"px"),Yl(l,"disable-scroll",n[1])},m(q,j){$t(q,e,j),Ze(e,t),Ze(t,l),Ze(l,o),L&&L.m(o,null),i=Ul(o,n[23].bind(o)),Ze(l,s),Ze(l,u),m&&m.m(u,null),n[24](u),Ze(l,a),Ze(l,f),z&&z.m(f,null),r=Ul(f,n[25].bind(f)),n[26](l),c=Hi.observe(l,n[27].bind(l)),h=!0,d||(p=Ti(l,"scroll",n[11]),d=!0)},p(q,j){L&&L.p&&(!h||j[0]&2097152)&&bl(L,D,q,q[21],h?gl(D,q[21],j,Ui):ml(q[21]),$l),q[10].length&&q[10][0].data.length?m?(m.p(q,j),j[0]&1024&&et(m,1)):(m=xl(q),m.c(),et(m,1),m.m(u,null)):m&&(Wn(),rt(m,1,1,()=>{m=null}),Vn()),z&&z.p&&(!h||j[0]&2097152)&&bl(z,A,q,q[21],h?gl(A,q[21],j,Ii):ml(q[21]),Gl),(!h||j[0]&256)&&Ae(l,"--bw-svt-p-top",q[8]+"px"),(!h||j[0]&16)&&Ae(l,"--bw-svt-p-bottom",q[4]+"px"),(!h||j[0]&64)&&Ae(l,"--bw-svt-head-height",q[6]+"px"),(!h||j[0]&128)&&Ae(l,"--bw-svt-foot-height",q[7]+"px"),(!h||j[0]&4)&&Ae(l,"--bw-svt-avg-row-height",q[2]+"px"),(!h||j[0]&1)&&Ae(l,"--max-height",q[0]+"px"),(!h||j[0]&2)&&Yl(l,"disable-scroll",q[1])},i(q){h||(et(L,q),et(m),et(z,q),h=!0)},o(q){rt(L,q),rt(m),rt(z,q),h=!1},d(q){q&&Zt(e),L&&L.d(q),i(),m&&m.d(),n[24](null),z&&z.d(q),r(),n[26](null),c(),d=!1,p()}}}let Wi="100%";function Xi(n,e){if(!n)return 0;const t=getComputedStyle(n);return parseInt(t.getPropertyValue(e))}function Yi(n,e,t){let l,{$$slots:o={},$$scope:i}=e,{items:s=[]}=e,{max_height:u}=e,{actual_height:a}=e,{table_scrollbar_width:f}=e,{start:r=0}=e,{end:c=20}=e,{selected:h}=e,{disable_scroll:d=!1}=e,p=30,D=0,L,m=0,A=0,z=[],q,j,O=0,U,F=200,H=[],P;const k=typeof window<"u",W=k?window.requestAnimationFrame:y=>y();let ee=0;async function v(y){if(F===0)return;t(6,m=U.querySelector(".thead")?.getBoundingClientRect().height||0),await Et();const{scrollTop:B}=U;t(15,f=U.offsetWidth-U.clientWidth),ee=O-(B-m);let g=r;for(;ee<u&&g<y.length;){let $=j[g-r];$||(t(13,c=g+1),await Et(),$=j[g-r]);let pe=$?.getBoundingClientRect().height;pe||(pe=p);const pt=z[g]=pe;ee+=pt,g+=1}t(13,c=g);const C=y.length-c,w=U.offsetHeight-U.clientHeight;w>0&&(ee+=w);let x=z.filter($=>typeof $=="number");t(2,p=x.reduce(($,pe)=>$+pe,0)/x.length),t(4,D=C*p),z.length=y.length,await Et(),u?ee<u?t(14,a=ee+2):t(14,a=u):t(14,a=ee+1),await Et()}async function T(y){W(async()=>
2{if(typeof y!="number")return;const B=typeof y!="number"?!1:te(y);B!==!0&&(B==="back"&&await ue(y,{behavior:"instant"}),B==="forwards"&&await ue(y,{behavior:"instant"},!0))})}function te(y){const B=j&&j[y-r];if(!B&&y<r)return"back";if(!B&&y>=c-1)return"forwards";const{top:g}=U.getBoundingClientRect(),{top:C,bottom:w}=B.getBoundingClientRect();return C-g<37?"back":w-g>F?"forwards":!0}async function le(y){const B=U.scrollTop;j=L.children;const g=l.length<r,C=Xi(j[1],"border-top-width"),w=0;g&&await ue(l.length-1,{behavior:"auto"});let x=0;for(let M=0;M<j.length;M+=1)z[r+M]=j[M].getBoundingClientRect().height;let $=0,pe=m+C/2,pt=[];for(;$<l.length;){const M=z[$]||p;if(pt[$]=M,pe+M+w>B){x=$,t(8,O=pe-(m+C/2));break}pe+=M,$+=1}for(x=Math.max(0,x);$<l.length;){const M=z[$]||p;if(pe+=M,$+=1,pe>B+F)break}t(12,r=x),t(13,c=$);const he=l.length-c;c===0&&t(13,c=10),t(2,p=(pe-m)/c);let Ge=he*p;for(;$<l.length;)$+=1,z[$]=p;t(4,D=Ge),isFinite(D)||t(4,D=2e5)}async function ue(y,B,g=!1){await Et();const C=p;let w=y*C;g&&(w=w-F+C+m);const x=U.offsetHeight-U.clientHeight;x>0&&(w+=x);const $={top:w,behavior:"smooth",...B};U.scrollTo($)}Oi(()=>{j=L.children,t(19,q=!0),v(s)});function V(){m=this.offsetHeight,t(6,m)}function ce(y){Jl[y?"unshift":"push"](()=>{L=y,t(5,L)})}function X(){A=this.offsetHeight,t(7,A)}function ye(y){Jl[y?"unshift":"push"](()=>{U=y,t(9,U)})}function we(){P=Bi.entries.get(this)?.contentRect,t(3,P)}return n.$$set=y=>{"items"in y&&t(16,s=y.items),"max_height"in y&&t(0,u=y.max_height),"actual_height"in y&&t(14,a=y.actual_height),"table_scrollbar_width"in y&&t(15,f=y.table_scrollbar_width),"start"in y&&t(12,r=y.start),"end"in y&&t(13,c=y.end),"selected"in y&&t(17,h=y.selected),"disable_scroll"in y&&t(1,d=y.disable_scroll),"$$scope"in y&&t(21,i=y.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&8&&(F=P?.height||200),n.$$.dirty[0]&65536&&t(20,l=s),n.$$.dirty[0]&1572864&&q&&W(()=>v(l)),n.$$.dirty[0]&131072&&T(h),n.$$.dirty[0]&1060869&&t(10,H=k?l.slice(r,c).map((y,B)=>({index:B+r,data:y})):l.slice(0,u/l.length*p+1).map((y,B)=>({index:B+r,data:y})))},[u,d,p,P,D,L,m,A,O,U,H,le,r,c,a,f,s,h,ue,q,l,i,o,V,ce,X,ye,we]}class Gi extends Di{constructor(e){super(),ji(this,e,Yi,Ji,Ni,{items:16,max_height:0,actual_height:14,table_scrollbar_width:15,start:12,end:13,selected:17,disable_scroll:1,scroll_to_index:18},null,[-1,-1])}get items(){return this.$$.ctx[16]}set items(e){this.$$set({items:e}),Ke()}get max_height(){return this.$$.ctx[0]}set max_height(e){this.$$set({max_height:e}),Ke()}get actual_height(){return this.$$.ctx[14]}set actual_height(e){this.$$set({actual_height:e}),Ke()}get table_scrollbar_width(){return this.$$.ctx[15]}set table_scrollbar_width(e){this.$$set({table_scrollbar_width:e}),Ke()}get start(){return this.$$.ctx[12]}set start(e){this.$$set({start:e}),Ke()}get end(){return this.$$.ctx[13]}set end(e){this.$$set({end:e}),Ke()}get selected(){return this.$$.ctx[17]}set selected(e){this.$$set({selected:e}),Ke()}get disable_scroll(){return this.$$.ctx[1]}set disable_scroll(e){this.$$set({disable_scroll:e}),Ke()}get scroll_to_index(){return this.$$.ctx[18]}}const{SvelteComponent:Qi,append:Le,attr:S,detach:ot,empty:Zi,flush:$i,init:xi,insert:it,noop:tn,safe_not_equal:es,svg_element:ge}=window.__gradio__svelte__internal;function ts(n){let e,t,l;return{c(){e=ge("svg"),t=ge("rect"),l=ge("path"),S(t,"x","10"),S(t,"y","5"),S(t,"width","4"),S(t,"height","14"),S(t,"stroke","currentColor"),S(t,"stroke-width","2"),S(l,"d","M7 8L17 16M17 8L7 16"),S(l,"stroke","currentColor"),S(l,"stroke-width","2"),S(l,"stroke-linecap","round"),S(e,"viewBox","0 0 24 24"),S(e,"width","16"),S(e,"height","16")},m(o,i){it(o,e,i),Le(e,t),Le(e,l)},d(o){o&&ot(e)}}}function ls(n){let e,t,l;return{c(){e=ge("svg"),t=ge("rect"),l=ge("path"),S(t,"x","5"),S(t,"y","10"),S(t,"width","14"),S(t,"height","4"),S(t,"stroke","currentColor"),S(t,"stroke-width","2"),S(l,"d","M8 7L16 17M16 7L8 17"),S(l,"stroke","currentColor"),S(l,"stroke-width","2"),S(l,"stroke-linecap","round"),S(e,"viewBox","0 0 24 24"),S(e,"width","16"),S(e,"height","16")},m(o,i){it(o,e,i),Le(e,t),Le(e,l)},d(o){o&&ot(e)}}}function ns(n){let e,t,l;return{c(){e=ge("svg"),t=ge("rect"),l=ge("path"),S(t,"x","6"),S(t,"y","4"),S(t,"width","12"),S(t,"height","4"),S(t,"stroke","currentColor"),S(t,"stroke-width","2"),S(l,"d","M12 12V19M8 16L12 19L16 16"),S(l,"stroke","currentColor"),S(l,"stroke-width","2"),S(l,"fill","none"),S(l,"stroke-linecap","round"),S(e,"viewBox","0 0 24 24"),S(e,"width","16"),S(e,"height","16")},m(o,i){it(o,e,i),Le(e,t),Le(e,l)},d(o){o&&ot(e)}}}function os(n){let e,t,l;return{c(){e=ge("svg"),t=ge("rect"),l=ge("path"),S(t,"x","6"),S(t,"y","16"),S(t,"width","12"),S(t,"height","4"),S(t,"stroke","currentColor"),S(t,"stroke-width","2"),S(l,"d","M12 12V5M8 8L12 5L16 8"),S(l,"stroke","currentColor"),S(l,"stroke-width","2"),S(l,"fill","none"),S(l,"stroke-linecap","round"),S(e,"viewBox","0 0 24 24"),S(e,"width","16"),S(e,"height","16")},m(o,i){it(o,e,i),Le(e,t),Le(e,l)},d(o){o&&ot(e)}}}function is(n){let e,t,l;return{c(){e=ge("svg"),t=ge("rect"),l=ge("path"),S(t,"x","16"),S(t,"y","6"),S(t,"width","4"),S(t,"height","12"),S(t,"stroke","currentColor"),S(t,"stroke-width","2"),S(t,"fill","none"),S(l,"d","M12 12H5M8 8L5 12L8 16"),S(l,"stroke","currentColor"),S(l,"stroke-width","2"),S(l,"fill","none"),S(l,"stroke-linecap","round"),S(e,"viewBox","0 0 24 24"),S(e,"width","16"),S(e,"height","16")},m(o,i){it(o,e,i),Le(e,t),Le(e,l)},d(o){o&&ot(e)}}}function ss(n){let e,t,l;return{c(){e=ge("svg"),t=ge("rect"),l=ge("path"),S(t,"x","4"),S(t,"y","6"),S(t,"width","4"),S(t,"height","12"),S(t,"stroke","currentColor"),S(t,"stroke-width","2"),S(t,"fill","none"),S(l,"d","M12 12H19M16 8L19
212L16 16"),S(l,"stroke","currentColor"),S(l,"stroke-width","2"),S(l,"fill","none"),S(l,"stroke-linecap","round"),S(e,"viewBox","0 0 24 24"),S(e,"width","16"),S(e,"height","16")},m(o,i){it(o,e,i),Le(e,t),Le(e,l)},d(o){o&&ot(e)}}}function rs(n){let e;function t(i,s){if(i[0]=="add-column-right")return ss;if(i[0]=="add-column-left")return is;if(i[0]=="add-row-above")return os;if(i[0]=="add-row-below")return ns;if(i[0]=="delete-row")return ls;if(i[0]=="delete-column")return ts}let l=t(n),o=l&&l(n);return{c(){o&&o.c(),e=Zi()},m(i,s){o&&o.m(i,s),it(i,e,s)},p(i,[s]){l!==(l=t(i))&&(o&&o.d(1),o=l&&l(i),o&&(o.c(),o.m(e.parentNode,e)))},i:tn,o:tn,d(i){i&&ot(e),o&&o.d(i)}}}function us(n,e,t){let{icon:l}=e;return n.$$set=o=>{"icon"in o&&t(0,l=o.icon)},[l]}class ct extends Qi{constructor(e){super(),xi(this,e,us,rs,es,{icon:0})}get icon(){return this.$$.ctx[0]}set icon(e){this.$$set({icon:e}),$i()}}const{SvelteComponent:_s,append:Me,attr:tt,binding_callbacks:as,check_outros:Wt,create_component:ht,destroy_component:dt,detach:Se,element:lt,empty:Xn,flush:ke,group_outros:Xt,init:fs,insert:Ee,is_function:Yn,listen:mt,mount_component:gt,run_all:Gn,safe_not_equal:cs,set_data:bt,space:Re,text:wt,transition_in:me,transition_out:ve}=window.__gradio__svelte__internal,{onMount:hs}=window.__gradio__svelte__internal;function ln(n){let e,t,l,o=n[8]("dataframe.add_row_above")+"",i,s,u,a,f,r=n[8]("dataframe.add_row_below")+"",c,h,d,p,D,L;t=new ct({props:{icon:"add-row-above"}}),a=new ct({props:{icon:"add-row-below"}});let m=n[6]&&nn(n);return{c(){e=lt("button"),ht(t.$$.fragment),l=Re(),i=wt(o),s=Re(),u=lt("button"),ht(a.$$.fragment),f=Re(),c=wt(r),h=Re(),m&&m.c(),d=Xn(),tt(e,"class","svelte-9g877"),tt(u,"class","svelte-9g877")},m(A,z){Ee(A,e,z),gt(t,e,null),Me(e,l),Me(e,i),Ee(A,s,z),Ee(A,u,z),gt(a,u,null),Me(u,f),Me(u,c),Ee(A,h,z),m&&m.m(A,z),Ee(A,d,z),p=!0,D||(L=[mt(e,"click",n[18]),mt(u,"click",n[19])],D=!0)},p(A,z){(!p||z&256)&&o!==(o=A[8]("dataframe.add_row_above")+"")&&bt(i,o),(!p||z&256)&&r!==(r=A[8]("dataframe.add_row_below")+"")&&bt(c,r),A[6]?m?(m.p(A,z),z&64&&me(m,1)):(m=nn(A),m.c(),me(m,1),m.m(d.parentNode,d)):m&&(Xt(),ve(m,1,1,()=>{m=null}),Wt())},i(A){p||(me(t.$$.fragment,A),me(a.$$.fragment,A),me(m),p=!0)},o(A){ve(t.$$.fragment,A),ve(a.$$.fragment,A),ve(m),p=!1},d(A){A&&(Se(e),Se(s),Se(u),Se(h),Se(d)),dt(t),dt(a),m&&m.d(A),D=!1,Gn(L)}}}function nn(n){let e,t,l,o=n[8]("dataframe.delete_row")+"",i,s,u,a;return t=new ct({props:{icon:"delete-row"}}),{c(){e=lt("button"),ht(t.$$.fragment),l=Re(),i=wt(o),tt(e,"class","delete svelte-9g877")},m(f,r){Ee(f,e,r),gt(t,e,null),Me(e,l),Me(e,i),s=!0,u||(a=mt(e,"click",function(){Yn(n[4])&&n[4].apply(this,arguments)}),u=!0)},p(f,r){n=f,(!s||r&256)&&o!==(o=n[8]("dataframe.delete_row")+"")&&bt(i,o)},i(f){s||(me(t.$$.fragment,f),s=!0)},o(f){ve(t.$$.fragment,f),s=!1},d(f){f&&Se(e),dt(t),u=!1,a()}}}function on(n){let e,t,l,o=n[8]("dataframe.add_column_left")+"",i,s,u,a,f,r=n[8]("dataframe.add_column_right")+"",c,h,d,p,D,L;t=new ct({props:{icon:"add-column-left"}}),a=new ct({props:{icon:"add-column-right"}});let m=n[7]&&sn(n);return{c(){e=lt("button"),ht(t.$$.fragment),l=Re(),i=wt(o),s=Re(),u=lt("button"),ht(a.$$.fragment),f=Re(),c=wt(r),h=Re(),m&&m.c(),d=Xn(),tt(e,"class","svelte-9g877"),tt(u,"class","svelte-9g877")},m(A,z){Ee(A,e,z),gt(t,e,null),Me(e,l),Me(e,i),Ee(A,s,z),Ee(A,u,z),gt(a,u,null),Me(u,f),Me(u,c),Ee(A,h,z),m&&m.m(A,z),Ee(A,d,z),p=!0,D||(L=[mt(e,"click",n[20]),mt(u,"click",n[21])],D=!0)},p(A,z){(!p||z&256)&&o!==(o=A[8]("dataframe.add_column_left")+"")&&bt(i,o),(!p||z&256)&&r!==(r=A[8]("dataframe.add_column_right")+"")&&bt(c,r),A[7]?m?(m.p(A,z),z&128&&me(m,1)):(m=sn(A),m.c(),me(m,1),m.m(d.parentNode,d)):m&&(Xt(),ve(m,1,1,()=>{m=null}),Wt())},i(A){p||(me(t.$$.fragment,A),me(a.$$.fragment,A),me(m),p=!0)},o(A){ve(t.$$.fragment,A),ve(a.$$.fragment,A),ve(m),p=!1},d(A){A&&(Se(e),Se(s),Se(u),Se(h),Se(d)),dt(t),dt(a),m&&m.d(A),D=!1,Gn(L)}}}function sn(n){let e,t,l,o=n[8]("dataframe.delete_column")+"",i,s,u,a;return t=new ct({props:{icon:"delete-column"}}),{c(){e=lt("button"),ht(t.$$.fragment),l=Re(),i=wt(o),tt(e,"class","delete svelte-9g877")}
2,m(f,r){Ee(f,e,r),gt(t,e,null),Me(e,l),Me(e,i),s=!0,u||(a=mt(e,"click",function(){Yn(n[5])&&n[5].apply(this,arguments)}),u=!0)},p(f,r){n=f,(!s||r&256)&&o!==(o=n[8]("dataframe.delete_column")+"")&&bt(i,o)},i(f){s||(me(t.$$.fragment,f),s=!0)},o(f){ve(t.$$.fragment,f),s=!1},d(f){f&&Se(e),dt(t),u=!1,a()}}}function ds(n){let e,t,l,o=!n[12]&&n[11]&&ln(n),i=n[10]&&on(n);return{c(){e=lt("div"),o&&o.c(),t=Re(),i&&i.c(),tt(e,"class","cell-menu svelte-9g877")},m(s,u){Ee(s,e,u),o&&o.m(e,null),Me(e,t),i&&i.m(e,null),n[22](e),l=!0},p(s,[u]){!s[12]&&s[11]?o?(o.p(s,u),u&6144&&me(o,1)):(o=ln(s),o.c(),me(o,1),o.m(e,t)):o&&(Xt(),ve(o,1,1,()=>{o=null}),Wt()),s[10]?i?(i.p(s,u),u&1024&&me(i,1)):(i=on(s),i.c(),me(i,1),i.m(e,null)):i&&(Xt(),ve(i,1,1,()=>{i=null}),Wt())},i(s){l||(me(o),me(i),l=!0)},o(s){ve(o),ve(i),l=!1},d(s){s&&Se(e),o&&o.d(),i&&i.d(),n[22](null)}}}function ms(n,e,t){let l,o,i,{x:s}=e,{y:u}=e,{on_add_row_above:a}=e,{on_add_row_below:f}=e,{on_add_column_left:r}=e,{on_add_column_right:c}=e,{row:h}=e,{col_count:d}=e,{row_count:p}=e,{on_delete_row:D}=e,{on_delete_col:L}=e,{can_delete_rows:m}=e,{can_delete_cols:A}=e,{i18n:z}=e,q;hs(()=>{j()});function j(){if(!q)return;const k=window.innerWidth,W=window.innerHeight,ee=q.getBoundingClientRect();let v=s-30,T=u-20;v+ee.width>k&&(v=s-ee.width+10),T+ee.height>W&&(T=u-ee.height+10),t(9,q.style.left=`${v}px`,q),t(9,q.style.top=`${T}px`,q)}const O=()=>a(),U=()=>f(),F=()=>r(),H=()=>c();function P(k){as[k?"unshift":"push"](()=>{q=k,t(9,q)})}return n.$$set=k=>{"x"in k&&t(13,s=k.x),"y"in k&&t(14,u=k.y),"on_add_row_above"in k&&t(0,a=k.on_add_row_above),"on_add_row_below"in k&&t(1,f=k.on_add_row_below),"on_add_column_left"in k&&t(2,r=k.on_add_column_left),"on_add_column_right"in k&&t(3,c=k.on_add_column_right),"row"in k&&t(15,h=k.row),"col_count"in k&&t(16,d=k.col_count),"row_count"in k&&t(17,p=k.row_count),"on_delete_row"in k&&t(4,D=k.on_delete_row),"on_delete_col"in k&&t(5,L=k.on_delete_col),"can_delete_rows"in k&&t(6,m=k.can_delete_rows),"can_delete_cols"in k&&t(7,A=k.can_delete_cols),"i18n"in k&&t(8,z=k.i18n)},n.$$.update=()=>{n.$$.dirty&32768&&t(12,l=h===-1),n.$$.dirty&131072&&t(11,o=p[1]==="dynamic"),n.$$.dirty&65536&&t(10,i=d[1]==="dynamic")},[a,f,r,c,D,L,m,A,z,q,i,o,l,s,u,h,d,p,O,U,F,H,P]}class Qn extends _s{constructor(e){super(),fs(this,e,ms,ds,cs,{x:13,y:14,on_add_row_above:0,on_add_row_below:1,on_add_column_left:2,on_add_column_right:3,row:15,col_count:16,row_count:17,on_delete_row:4,on_delete_col:5,can_delete_rows:6,can_delete_cols:7,i18n:8})}get x(){return this.$$.ctx[13]}set x(e){this.$$set({x:e}),ke()}get y(){return this.$$.ctx[14]}set y(e){this.$$set({y:e}),ke()}get on_add_row_above(){return this.$$.ctx[0]}set on_add_row_above(e){this.$$set({on_add_row_above:e}),ke()}get on_add_row_below(){return this.$$.ctx[1]}set on_add_row_below(e){this.$$set({on_add_row_below:e}),ke()}get on_add_column_left(){return this.$$.ctx[2]}set on_add_column_left(e){this.$$set({on_add_column_left:e}),ke()}get on_add_column_right(){return this.$$.ctx[3]}set on_add_column_right(e){this.$$set({on_add_column_right:e}),ke()}get row(){return this.$$.ctx[15]}set row(e){this.$$set({row:e}),ke()}get col_count(){return this.$$.ctx[16]}set col_count(e){this.$$set({col_count:e}),ke()}get row_count(){return this.$$.ctx[17]}set row_count(e){this.$$set({row_count:e}),ke()}get on_delete_row(){return this.$$.ctx[4]}set on_delete_row(e){this.$$set({on_delete_row:e}),ke()}get on_delete_col(){return this.$$.ctx[5]}set on_delete_col(e){this.$$set({on_delete_col:e}),ke()}get can_delete_rows(){return this.$$.ctx[6]}set can_delete_rows(e){this.$$set({can_delete_rows:e}),ke()}get can_delete_cols(){return this.$$.ctx[7]}set can_delete_cols(e){this.$$set({can_delete_cols:e}),ke()}get i18n(){return this.$$.ctx[8]}set i18n(e){this.$$set({i18n:e}),ke()}}const{SvelteComponent:gs,append:bs,attr:Ue,detach:ws,init:ps,insert:ks,noop:_l,safe_not_equal:vs,svg_element:rn}=window.__gradio__svelte__internal;function ys(n){let e,t;return{c(){e=rn("svg"),t=rn("path"),Ue(t,"d","M4 4h16v2.67l-6.67 6.67v8L9.33 19v-5.66L2.67 6.67V4h1.33z"),Ue(t,"stroke","currentColor"),Ue(t,"stroke-width","2"),Ue(t,"stroke-linecap","round"),Ue(t,"stroke-linejoin","round"),Ue(e,"viewBox","0 0 24 24"),Ue(e,"fill","none"),Ue(e,"xmlns","http://www.w3.org/2000/svg")},m(l,o){ks(l,e,o),bs(e,t)}
2,p:_l,i:_l,o:_l,d(l){l&&ws(e)}}}function Cs(n){return[]}class Zn extends gs{constructor(e){super(),ps(this,e,Cs,ys,vs,{})}}const{SvelteComponent:As,append:Mt,attr:re,bubble:Ss,check_outros:at,create_component:Bt,destroy_component:Dt,detach:jt,element:nt,flush:$e,group_outros:ft,init:Es,insert:Tt,is_function:Ms,listen:xt,mount_component:Rt,safe_not_equal:qs,set_input_value:un,space:wl,transition_in:se,transition_out:be}=window.__gradio__svelte__internal,{onDestroy:zs}=window.__gradio__svelte__internal,{createEventDispatcher:Ls}=window.__gradio__svelte__internal;function _n(n){let e,t,l,o,i,s,u=n[0]&&n[3]==="filter"&&an(n);return{c(){e=nt("div"),t=nt("input"),l=wl(),u&&u.c(),re(t,"type","text"),re(t,"placeholder","Search..."),re(t,"class","search-input svelte-b1nr0g"),re(e,"class","search-container svelte-b1nr0g")},m(a,f){Tt(a,e,f),Mt(e,t),un(t,n[0]),Mt(e,l),u&&u.m(e,null),o=!0,i||(s=xt(t,"input",n[10]),i=!0)},p(a,f){f&1&&t.value!==a[0]&&un(t,a[0]),a[0]&&a[3]==="filter"?u?(u.p(a,f),f&9&&se(u,1)):(u=an(a),u.c(),se(u,1),u.m(e,null)):u&&(ft(),be(u,1,1,()=>{u=null}),at())},i(a){o||(se(u),o=!0)},o(a){be(u),o=!1},d(a){a&&jt(e),u&&u.d(),i=!1,s()}}}function an(n){let e,t,l,o,i;return t=new Zn({}),{c(){e=nt("button"),Bt(t.$$.fragment),re(e,"class","toolbar-button check-button svelte-b1nr0g"),re(e,"aria-label","Apply filter and update dataframe values"),re(e,"title","Apply filter and update dataframe values")},m(s,u){Tt(s,e,u),Rt(t,e,null),l=!0,o||(i=xt(e,"click",function(){Ms(n[5])&&n[5].apply(this,arguments)}),o=!0)},p(s,u){n=s},i(s){l||(se(t.$$.fragment,s),l=!0)},o(s){be(t.$$.fragment,s),l=!1},d(s){s&&jt(e),Dt(t),o=!1,i()}}}function fn(n){let e,t,l,o,i,s,u,a;const f=[Ds,Bs],r=[];function c(h,d){return h[6]?0:1}return t=c(n),l=r[t]=f[t](n),{c(){e=nt("button"),l.c(),re(e,"class","toolbar-button svelte-b1nr0g"),re(e,"aria-label",o=n[6]?"Copied to clipboard":"Copy table data"),re(e,"title",i=n[6]?"Copied to clipboard":"Copy table data")},m(h,d){Tt(h,e,d),r[t].m(e,null),s=!0,u||(a=xt(e,"click",n[7]),u=!0)},p(h,d){let p=t;t=c(h),t!==p&&(ft(),be(r[p],1,1,()=>{r[p]=null}),at(),l=r[t],l||(l=r[t]=f[t](h),l.c()),se(l,1),l.m(e,null)),(!s||d&64&&o!==(o=h[6]?"Copied to clipboard":"Copy table data"))&&re(e,"aria-label",o),(!s||d&64&&i!==(i=h[6]?"Copied to clipboard":"Copy table data"))&&re(e,"title",i)},i(h){s||(se(l),s=!0)},o(h){be(l),s=!1},d(h){h&&jt(e),r[t].d(),u=!1,a()}}}function Bs(n){let e,t;return e=new ni({}),{c(){Bt(e.$$.fragment)},m(l,o){Rt(e,l,o),t=!0},i(l){t||(se(e.$$.fragment,l),t=!0)},o(l){be(e.$$.fragment,l),t=!1},d(l){Dt(e,l)}}}function Ds(n){let e,t;return e=new Zn({}),{c(){Bt(e.$$.fragment)},m(l,o){Rt(e,l,o),t=!0},i(l){t||(se(e.$$.fragment,l),t=!0)},o(l){be(e.$$.fragment,l),t=!1},d(l){Dt(e,l)}}}function cn(n){let e,t,l,o,i,s,u,a;const f=[Ts,js],r=[];function c(h,d){return h[4]?0:1}return t=c(n),l=r[t]=f[t](n),{c(){e=nt("button"),l.c(),re(e,"class","toolbar-button svelte-b1nr0g"),re(e,"aria-label",o=n[4]?"Exit fullscreen":"Enter fullscreen"),re(e,"title",i=n[4]?"Exit fullscreen":"Enter fullscreen")},m(h,d){Tt(h,e,d),r[t].m(e,null),s=!0,u||(a=xt(e,"click",n[9]),u=!0)},p(h,d){let p=t;t=c(h),t!==p&&(ft(),be(r[p],1,1,()=>{r[p]=null}),at(),l=r[t],l||(l=r[t]=f[t](h),l.c()),se(l,1),l.m(e,null)),(!s||d&16&&o!==(o=h[4]?"Exit fullscreen":"Enter fullscreen"))&&re(e,"aria-label",o),(!s||d&16&&i!==(i=h[4]?"Exit fullscreen":"Enter fullscreen"))&&re(e,"title",i)},i(h){s||(se(l),s=!0)},o(h){be(l),s=!1},d(h){h&&jt(e),r[t].d(),u=!1,a()}}}function js(n){let e,t;return e=new oi({}),{c(){Bt(e.$$.fragment)},m(l,o){Rt(e,l,o),t=!0},i(l){t||(se(e.$$.fragment,l),t=!0)},o(l){be(e.$$.fragment,l),t=!1},d(l){Dt(e,l)}}}function Ts(n){let e,t;return e=new ii({}),{c(){Bt(e.$$.fragment)},m(l,o){Rt(e,l,o),t=!0},i(l){t||(se(e.$$.fragment,l),t=!0)},o(l){be(e.$$.fragment,l),t=!1},d(l){Dt(e,l)}}}function Rs(n){let e,t,l,o,i,s=n[3]!=="none"&&_n(n),u=n[2]&&fn(n),a=n[1]&&cn(n);return{c(){e=nt("div"),t=nt("div"),s&&s.c(),l=wl(),u&&u.c(),o=wl(),a&&a.c(),re(t,"class","toolbar-buttons svelte-b1nr0g"),re(e,"class","toolbar svelte-b1nr0g"),re(e,"role","toolbar"),re(e,"aria-label","Table actions")},m(f,r){Tt(f,e,r),Mt(e,t),s&&s.m(t,null),Mt(t,l),u&&u.m(t,null),Mt(t,o),a&&a.m(t,null),i=!0}
2,p(f,[r]){f[3]!=="none"?s?(s.p(f,r),r&8&&se(s,1)):(s=_n(f),s.c(),se(s,1),s.m(t,l)):s&&(ft(),be(s,1,1,()=>{s=null}),at()),f[2]?u?(u.p(f,r),r&4&&se(u,1)):(u=fn(f),u.c(),se(u,1),u.m(t,o)):u&&(ft(),be(u,1,1,()=>{u=null}),at()),f[1]?a?(a.p(f,r),r&2&&se(a,1)):(a=cn(f),a.c(),se(a,1),a.m(t,null)):a&&(ft(),be(a,1,1,()=>{a=null}),at())},i(f){i||(se(s),se(u),se(a),i=!0)},o(f){be(s),be(u),be(a),i=!1},d(f){f&&jt(e),s&&s.d(),u&&u.d(),a&&a.d()}}}function Hs(n,e,t){let{show_fullscreen_button:l=!1}=e,{show_copy_button:o=!1}=e,{show_search:i="none"}=e,{is_fullscreen:s=!1}=e,{on_copy:u}=e,{on_commit_filter:a}=e;const f=Ls();let r=!1,c,{current_search_query:h=null}=e;function d(){t(6,r=!0),c&&clearTimeout(c),c=setTimeout(()=>{t(6,r=!1)},2e3)}async function p(){await u(),d()}zs(()=>{c&&clearTimeout(c)});function D(m){Ss.call(this,n,m)}function L(){h=this.value,t(0,h)}return n.$$set=m=>{"show_fullscreen_button"in m&&t(1,l=m.show_fullscreen_button),"show_copy_button"in m&&t(2,o=m.show_copy_button),"show_search"in m&&t(3,i=m.show_search),"is_fullscreen"in m&&t(4,s=m.is_fullscreen),"on_copy"in m&&t(8,u=m.on_copy),"on_commit_filter"in m&&t(5,a=m.on_commit_filter),"current_search_query"in m&&t(0,h=m.current_search_query)},n.$$.update=()=>{n.$$.dirty&1&&f("search",h)},[h,l,o,i,s,a,r,p,u,D,L]}class Ns extends As{constructor(e){super(),Es(this,e,Hs,Rs,qs,{show_fullscreen_button:1,show_copy_button:2,show_search:3,is_fullscreen:4,on_copy:8,on_commit_filter:5,current_search_query:0})}get show_fullscreen_button(){return this.$$.ctx[1]}set show_fullscreen_button(e){this.$$set({show_fullscreen_button:e}),$e()}get show_copy_button(){return this.$$.ctx[2]}set show_copy_button(e){this.$$set({show_copy_button:e}),$e()}get show_search(){return this.$$.ctx[3]}set show_search(e){this.$$set({show_search:e}),$e()}get is_fullscreen(){return this.$$.ctx[4]}set is_fullscreen(e){this.$$set({is_fullscreen:e}),$e()}get on_copy(){return this.$$.ctx[8]}set on_copy(e){this.$$set({on_copy:e}),$e()}get on_commit_filter(){return this.$$.ctx[5]}set on_commit_filter(e){this.$$set({on_commit_filter:e}),$e()}get current_search_query(){return this.$$.ctx[0]}set current_search_query(e){this.$$set({current_search_query:e}),$e()}}const{SvelteComponent:Ps,append:xe,attr:K,detach:Fs,element:al,flush:hn,init:Os,insert:Is,listen:dn,noop:mn,run_all:Ks,safe_not_equal:Us,space:Vs,svg_element:It,toggle_class:Kt}=window.__gradio__svelte__internal,{createEventDispatcher:Js}=window.__gradio__svelte__internal;function Ws(n){let e,t,l,o,i,s,u,a,f,r,c,h,d,p,D;return{c(){e=al("div"),t=al("button"),l=It("svg"),o=It("path"),u=Vs(),a=al("button"),f=It("svg"),r=It("path"),K(o,"d","M7 14l5-5 5 5"),K(o,"stroke","currentColor"),K(o,"stroke-width","2"),K(o,"stroke-linecap","round"),K(o,"stroke-linejoin","round"),K(l,"viewBox","0 0 24 24"),K(l,"fill","none"),K(l,"xmlns","http://www.w3.org/2000/svg"),K(l,"aria-hidden","true"),K(l,"focusable","false"),K(l,"class","svelte-a5uqm5"),K(t,"class","sort-button up svelte-a5uqm5"),K(t,"aria-label",i=n[1]("dataframe.sort_ascending")),K(t,"aria-pressed",s=n[0]==="asc"),Kt(t,"active",n[0]==="asc"),K(r,"d","M7 10l5 5 5-5"),K(r,"stroke","currentColor"),K(r,"stroke-width","2"),K(r,"stroke-linecap","round"),K(r,"stroke-linejoin","round"),K(f,"viewBox","0 0 24 24"),K(f,"fill","none"),K(f,"xmlns","http://www.w3.org/2000/svg"),K(f,"aria-hidden","true"),K(f,"focusable","false"),K(f,"class","svelte-a5uqm5"),K(a,"class","sort-button down svelte-a5uqm5"),K(a,"aria-label",c=n[1]("dataframe.sort_descending")),K(a,"aria-pressed",h=n[0]==="des"),Kt(a,"active",n[0]==="des"),K(e,"class","sort-icons svelte-a5uqm5"),K(e,"role","group"),K(e,"aria-label",d=n[1]("dataframe.sort_column"))},m(L,m){Is(L,e,m),xe(e,t),xe(t,l),xe(l,o),xe(e,u),xe(e,a),xe(a,f),xe(f,r),p||(D=[dn(t,"click",n[3]),dn(a,"click",n[4])],p=!0)},p(L,[m]){m&2&&i!==(i=L[1]("dataframe.sort_ascending"))&&K(t,"aria-label",i),m&1&&s!==(s=L[0]==="asc")&&K(t,"aria-pressed",s),m&1&&Kt(t,"active",L[0]==="asc"),m&2&&c!==(c=L[1]("dataframe.sort_descending"))&&K(a,"aria-label",c),m&1&&h!==(h=L[0]==="des")&&K(a,"aria-pressed",h),m&1&&Kt(a,"active",L[0]==="des"),m&2&&d!==(d=L[1]("dataframe.sort_column"))&&K(e,"aria-label",d)},i:mn,o:mn,d(L){L&&Fs(e),p=!1,Ks(D)}}}function Xs(n,e,t){let{direction:l=null}=e,{i18n:o}=e;const i=Js(),s=()=>i("sort","asc"),u=()=>i("sort","des");return n.$$set=a=>{"direction"in a&&t(0,l=a.direction),"i18n"in a&&t(1,o=a.i18n)},[l,o,i,s,u]}class $n extends Ps{constructor(e){super(),Os(this,e,Xs,Ws,Us,{direction:0,i18n:1})}get direction(){return this.$$.ctx[0]}set direction(e){this.$$set({direction:e}),hn()}get i18n(){return this.$$.ctx[1]}set i18n(e){this.$$set({i18n:e}),hn()}}function Ut(n,e){const[t,l]=n;if(!e.some(([a,f])=>a===t&&f===l))return"";const o=e.some(([a,f])=>a===t-1&&f===l),i=e.some(([a,f])=>a===t+1&&f===l),s=e.some(([a,f])=>a===t&&f===l-1),u=e.some(([a,f])=>a===t&&f===l+1);return`cell-selected${o?" no-top":""}${i?" no-bottom":""}${s?" no-left":""}${u?" no-right":""}`}function xn(n,e){const[t,l]=n,[o,i]=e,s=Math.min(t,o),u=Math.max(t,o),a=Math.min(l,i),f=Math.max(l,i),r=[];for(let c=s;c<=u;c++)for(let h=a;h<=f;h++)r.push([c,h]);return r}function Ys(n,e,t){if(t.shiftKey&&e.length>0)return xn(e[e.length-1],n);if(t.metaKey||t.ctrlKey){const l=([i,s])=>i===n[0]&&s===n[1],o=e.findIndex(l);return o===-1?[...e,n]:e.filter((i,s)=>s!==o)}return[n]}function Gs(n,e){const t=n.map(l=>[...l]);return e.forEach(([l,o])=>{t[l]&&t[l][o]&&(t[l][o]={...t[l][o],value:""})}),t}function gn(n,e,t){const[l,o]=n;return t&&e.length===1&&e[0][0]===l&&e[0][1]===o}function Qs(n,e,t){const[l,o]=n,i=t?-1:1;if(e[l]?.[o+i])return[l,o+i];const s=l+(i>0?1:0),u=l+(i<0?-1:0);return i>0&&e[s]?.[0]?[s,0]:i<0&&e[u]?.[e[0].length-1]?[u,e[0].length-1]:!1}function Zs(n,e,t){const l={ArrowRight:[0,1],ArrowLeft:[0,-1],ArrowDown:[1,0],ArrowUp:[-1,0]}[n],o=e[0]+l[0],i=e[1]+l[1];return o<0&&i<=0?!1:t[o]?.[i]?[o,i]:!1}function $s(n,e){return e.reduce((t,l,o)=>{const i=l.reduce((s,u,a)=>n===u.id?a:s,-1);return i===-1?t:[o,i]},[-1,-1])}function xs(n,e){const[t]=n.composedPath();return!e.contains(t)}function er(n,e){return Array.from({length:n.length},(t,l)=>[l,e])}function tr(n,e){return Array.from({length:n[0].length},(t,l)=>[e,l])}function lr(n,e,t,l,o){const[i,s]=n;
2if(!e[i]?.[s])return{col_pos:"0px",row_pos:void 0};let u=0;for(let D=0;D<s;D++)u+=parseFloat(getComputedStyle(l).getPropertyValue(`--cell-width-${D}`));const a=e[i][s].id,f=t[a]?.cell;if(!f)return{col_pos:"0px",row_pos:void 0};const r=f.getBoundingClientRect(),c=o.getBoundingClientRect(),h=`${r.left-c.left+r.width/2}px`,p=`${r.top-c.top+r.height/2}px`;return{col_pos:h,row_pos:p}}function nr(n,e,t){if(!n||!n.length||!n[0])return[];if(typeof e=="number"&&t&&e>=0&&e<n[0].length){const l=[...Array(n.length)].map((o,i)=>i);return l.sort((o,i)=>{const s=n[o],u=n[i];if(!s||!u||e>=s.length||e>=u.length)return 0;const a=s[e].value,f=u[e].value,r=a<f?-1:a>f?1:0;return t==="asc"?r:-r}),l}return[...Array(n.length)].map((l,o)=>o)}function or(n){if(!n||!n.length)return[];let e=n[0].slice();for(let t=0;t<n.length;t++)for(let l=0;l<n[t].length;l++)`${e[l].value}`.length<`${n[t][l].value}`.length&&(e[l]=n[t][l]);return e}function ir(n,e,t,l,o){const i=nr(n,l,o),s=i.map(u=>n[u]);if(n.splice(0,n.length,...s),e){const u=i.map(a=>e[a]);e.splice(0,e.length,...u)}if(t){const u=i.map(a=>t[a]);t.splice(0,t.length,...u)}}async function sr(n,e){const t=e.reduce((s,[u,a])=>{s[u]=s[u]||{};const f=String(n[u][a].value);return s[u][a]=f.includes(",")||f.includes('"')||f.includes(` 3`)?`"${f.replace(/"/g,'""')}"`:f,s},{}),l=Object.keys(t).sort((s,u)=>+s-+u),o=Object.keys(t[l[0]]).sort((s,u)=>+s-+u),i=l.map(s=>o.map(u=>t[s][u]||"").join(",")).join(` 4`);try{await navigator.clipboard.writeText(i)}catch(s){throw console.error("Copy failed:",s),new Error("Failed to copy to clipboard: "+s.message)}}function rr(n,e){return e.filter(t);function t(l){var o=-1;return n.split(` 5`).every(i);function i(s){if(!s)return!0;var u=s.split(l).length;return o<0&&(o=u),o===u&&u>1}}}function ur(n){const e=atob(n.split(",")[1]),t=n.split(",")[0].split(":")[1].split(";")[0],l=new ArrayBuffer(e.length),o=new Uint8Array(l);for(let i=0;i<e.length;i++)o[i]=e.charCodeAt(i);return new Blob([l],{type:t})}function _r(n,e,t){const l=ur(n),o=new FileReader;o.addEventListener("loadend",i=>{if(!i?.target?.result||typeof i.target.result!="string")return;const[s]=rr(i.target.result,[","," "]),[u,...a]=si(s).parseRows(i.target.result);e(u),t(a)}),o.readAsText(l)}const{ResizeObserverSingleton:ar,SvelteComponent:fr,add_flush_callback:Xe,append:I,attr:N,bind:Ye,binding_callbacks:ze,check_outros:ut,create_component:He,destroy_component:Ne,detach:ne,element:J,empty:eo,ensure_array_like:We,flush:Z,globals:cr,group_outros:_t,init:hr,insert:oe,listen:Fe,mount_component:Pe,noop:dr,null_to_empty:bn,outro_and_destroy_block:Yt,resize_observer_content_box:mr,run_all:Al,safe_not_equal:gr,set_data:el,set_style:qe,space:ae,stop_propagation:wn,text:tl,toggle_class:Y,transition_in:ie,transition_out:fe,update_keyed_each:Gt}=window.__gradio__svelte__internal,{window:br}=cr,{afterUpdate:wr,createEventDispatcher:pr,tick:Vt,onMount:pn}=window.__gradio__svelte__internal;function kn(n,e,t){const l=n.slice();return l[139]=e[t].value,l[140]=e[t].id,l[143]=e,l[144]=t,l}function vn(n,e,t){const l=n.slice();return l[139]=e[t].value,l[140]=e[t].id,l[141]=e,l[142]=t,l}function yn(n,e,t){const l=n.slice();return l[139]=e[t].value,l[140]=e[t].id,l[145]=e,l[142]=t,l}function Cn(n,e,t){const l=n.slice();return l[139]=e[t].value,l[140]=e[t].id,l[144]=t,l}function An(n){let e,t,l;return{c(){e=J("div"),t=J("p"),l=tl(n[2]),N(t,"class","svelte-m6pdii"),N(e,"class","label svelte-m6pdii")},m(o,i){oe(o,e,i),I(e,t),I(t,l)},p(o,i){i[0]&4&&el(l,o[2])},d(o){o&&ne(e)}}}function Sn(n){let e,t,l,o,i;return{c(){e=J("button"),e.textContent="â®",t=ae(),l=J("button"),l.textContent="â®",N(e,"class","selection-button selection-button-column svelte-m6pdii"),N(e,"aria-label","Select column"),N(l,"class","selection-button selection-button-row svelte-m6pdii"),N(l,"aria-label","Select row")},m(s,u){oe(s,e,u),oe(s,t,u),oe(s,l,u),o||(i=[Fe(e,"click",wn(n[78])),Fe(l,"click",wn(n[79]))],o=!0)},p:dr,d(s){s&&(ne(e),ne(t),ne(l)),o=!1,Al(i)}}}function En(n){let e,t;return{c(){e=J("caption"),t=tl(n[2]),N(e,"class","sr-only")},m(l,o){oe(l,e,o),I(e,t)},p(l,o){o[0]&4&&el(t,l[2])},d(l){l&&ne(e)}}}function Mn(n){let e;return{c(){e=J("th"),e.innerHTML='<div class="cell-wrap svelte-m6pdii"><div class="header-content svelte-m6pdii"><div class="header-text"></div></div></div>',N(e,"class","row-number-header frozen-column always-frozen svelte-m6pdii"),qe(e,"left","0")}
5,m(t,l){oe(t,e,l)},d(t){t&&ne(e)}}}function qn(n,e){let t,l,o,i,s,u,a,f,r,c;i=new Qt({props:{value:e[139],latex_delimiters:e[6],line_breaks:e[12],header:!0,edit:!1,el:null,root:e[9],editable:e[7]}});function h(...d){return e[80](e[144],...d)}return a=new $n({props:{direction:e[29]===e[144]?e[28]:null,i18n:e[10]}}),a.$on("sort",h),{key:n,first:null,c(){t=J("th"),l=J("div"),o=J("div"),He(i.$$.fragment),s=ae(),u=J("div"),He(a.$$.fragment),f=ae(),N(u,"class","sort-buttons svelte-m6pdii"),N(o,"class","header-content svelte-m6pdii"),N(l,"class","cell-wrap svelte-m6pdii"),N(t,"aria-sort",r=e[50](e[139],e[29],e[28])),qe(t,"width",e[13].length?e[13][e[144]]:void 0),qe(t,"left",e[144]<e[33]?e[144]===0?e[14]?"var(--cell-width-row-number)":"0":`calc(${e[14]?"var(--cell-width-row-number) + ":""}${Array(e[144]).fill(0).map(Fn).join(" + ")})`:"auto"),N(t,"class","svelte-m6pdii"),Y(t,"frozen-column",e[144]<e[33]),Y(t,"last-frozen",(e[14],e[144]===e[33]-1)),Y(t,"editing",e[37]===e[144]),this.first=t},m(d,p){oe(d,t,p),I(t,l),I(l,o),Pe(i,o,null),I(o,s),I(o,u),Pe(a,u,null),I(t,f),c=!0},p(d,p){e=d;const D={};p[0]&67108864&&(D.value=e[139]),p[0]&64&&(D.latex_delimiters=e[6]),p[0]&4096&&(D.line_breaks=e[12]),p[0]&512&&(D.root=e[9]),p[0]&128&&(D.editable=e[7]),i.$set(D);const L={};p[0]&872415232&&(L.direction=e[29]===e[144]?e[28]:null),p[0]&1024&&(L.i18n=e[10]),a.$set(L),(!c||p[0]&872415232&&r!==(r=e[50](e[139],e[29],e[28])))&&N(t,"aria-sort",r),(!c||p[0]&67117056)&&qe(t,"width",e[13].length?e[13][e[144]]:void 0),(!c||p[0]&67125248|p[1]&4)&&qe(t,"left",e[144]<e[33]?e[144]===0?e[14]?"var(--cell-width-row-number)":"0":`calc(${e[14]?"var(--cell-width-row-number) + ":""}${Array(e[144]).fill(0).map(Fn).join(" + ")})`:"auto"),(!c||p[0]&67108864|p[1]&4)&&Y(t,"frozen-column",e[144]<e[33]),(!c||p[0]&67125248|p[1]&4)&&Y(t,"last-frozen",(e[14],e[144]===e[33]-1)),(!c||p[0]&67108864|p[1]&64)&&Y(t,"editing",e[37]===e[144])},i(d){c||(ie(i.$$.fragment,d),ie(a.$$.fragment,d),c=!0)},o(d){fe(i.$$.fragment,d),fe(a.$$.fragment,d),c=!1},d(d){d&&ne(t),Ne(i),Ne(a)}}}function zn(n,e){let t,l,o,i,s=e[142],u;o=new Qt({props:{value:e[139],latex_delimiters:e[6],line_breaks:e[12],datatype:Array.isArray(e[1])?e[1][e[142]]:e[1],edit:!1,el:null,root:e[9],editable:e[7]}});const a=()=>e[81](t,s),f=()=>e[81](null,s);return{key:n,first:null,c(){t=J("td"),l=J("div"),He(o.$$.fragment),i=ae(),N(l,"class","cell-wrap svelte-m6pdii"),N(t,"tabindex","-1"),N(t,"class","svelte-m6pdii"),this.first=t},m(r,c){oe(r,t,c),I(t,l),Pe(o,l,null),I(t,i),a(),u=!0},p(r,c){e=r;const h={};c[1]&262144&&(h.value=e[139]),c[0]&64&&(h.latex_delimiters=e[6]),c[0]&4096&&(h.line_breaks=e[12]),c[0]&2|c[1]&262144&&(h.datatype=Array.isArray(e[1])?e[1][e[142]]:e[1]),c[0]&512&&(h.root=e[9]),c[0]&128&&(h.editable=e[7]),o.$set(h),s!==e[142]&&(f(),s=e[142],a())},i(r){u||(ie(o.$$.fragment,r),u=!0)},o(r){fe(o.$$.fragment,r),u=!1},d(r){r&&ne(t),Ne(o),f()}}}function Ln(n){let e,t;return{c(){e=J("caption"),t=tl(n[2]),N(e,"class","sr-only")},m(l,o){oe(l,e,o),I(e,t)},p(l,o){o[0]&4&&el(t,l[2])},d(l){l&&ne(e)}}}function kr(n){let e,t=n[2]&&n[2].length!==0&&Ln(n);return{c(){t&&t.c(),e=eo()},m(l,o){t&&t.m(l,o),oe(l,e,o)},p(l,o){l[2]&&l[2].length!==0?t?t.p(l,o):(t=Ln(l),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(l){l&&ne(e),t&&t.d(l)}}}function Bn(n){let e;return{c(){e=J("th"),e.innerHTML='<div class="cell-wrap svelte-m6pdii"><div class="header-content svelte-m6pdii"><div class="header-text"></div></div></div>',N(e,"class","row-number-header frozen-column always-frozen svelte-m6pdii"),qe(e,"left","0")},m(t,l){oe(t,e,l)},d(t){t&&ne(e)}}}function Dn(n){let e,t,l;function o(...i){return n[96](n[144],...i)}return{c(){e=J("button"),e.textContent="â®",N(e,"class","cell-menu-button svelte-m6pdii")},m(i,s){oe(i,e,s),t||(l=Fe(e,"click",o),t=!0)},p(i,s){n=i},d(i){i&&ne(e),t=!1,l()}}}function jn(n,e){let t,l,o,i,s,u,a,f,r,c,h,d,p,D,L;function m(F){e[92](F,e[144])}function A(F){e[93](F,e[140])}function z(){return e[94](e[144])}let q={max_chars:e[19],latex_delimiters:e[6],line_breaks:e[12],edit:e[37]===e[144],header:!0,root:e[9],editable:e[7]};e[26][e[144]].value!==void 0&&(q.value=e[26][e[144]].value),e[25][e[140]].input!==void 0&&(q.el=e[25][e[140]].input),i=new Qt({props:q}),ze.push(()=>Ye(i,"value",m)),ze.push(()=>
5Ye(i,"el",A)),i.$on("keydown",e[54]),i.$on("dblclick",z);function j(...F){return e[95](e[144],...F)}r=new $n({props:{direction:e[29]===e[144]?e[28]:null,i18n:e[10]}}),r.$on("sort",j);let O=e[7]&&Dn(e);function U(){return e[97](e[144])}return{key:n,first:null,c(){t=J("th"),l=J("div"),o=J("div"),He(i.$$.fragment),a=ae(),f=J("div"),He(r.$$.fragment),c=ae(),O&&O.c(),h=ae(),N(f,"class","sort-buttons svelte-m6pdii"),N(o,"class","header-content svelte-m6pdii"),N(l,"class","cell-wrap svelte-m6pdii"),N(t,"aria-sort",d=e[50](e[139],e[29],e[28])),qe(t,"width",e[56](e[144])),qe(t,"left",e[144]<e[33]?e[144]===0?e[14]?"var(--cell-width-row-number)":"0":`calc(${e[14]?"var(--cell-width-row-number) + ":""}${Array(e[144]).fill(0).map(In).join(" + ")})`:"auto"),N(t,"class","svelte-m6pdii"),Y(t,"frozen-column",e[144]<e[33]),Y(t,"last-frozen",e[144]===e[33]-1),Y(t,"focus",e[37]===e[144]||e[38]===e[144]),this.first=t},m(F,H){oe(F,t,H),I(t,l),I(l,o),Pe(i,o,null),I(o,a),I(o,f),Pe(r,f,null),I(l,c),O&&O.m(l,null),I(t,h),p=!0,D||(L=Fe(t,"click",U),D=!0)},p(F,H){e=F;const P={};H[0]&524288&&(P.max_chars=e[19]),H[0]&64&&(P.latex_delimiters=e[6]),H[0]&4096&&(P.line_breaks=e[12]),H[0]&67108864|H[1]&64&&(P.edit=e[37]===e[144]),H[0]&512&&(P.root=e[9]),H[0]&128&&(P.editable=e[7]),!s&&H[0]&67108864&&(s=!0,P.value=e[26][e[144]].value,Xe(()=>s=!1)),!u&&H[0]&100663296&&(u=!0,P.el=e[25][e[140]].input,Xe(()=>u=!1)),i.$set(P);const k={};H[0]&872415232&&(k.direction=e[29]===e[144]?e[28]:null),H[0]&1024&&(k.i18n=e[10]),r.$set(k),e[7]?O?O.p(e,H):(O=Dn(e),O.c(),O.m(l,null)):O&&(O.d(1),O=null),(!p||H[0]&872415232&&d!==(d=e[50](e[139],e[29],e[28])))&&N(t,"aria-sort",d),(!p||H[0]&67108864)&&qe(t,"width",e[56](e[144])),(!p||H[0]&67125248|H[1]&4)&&qe(t,"left",e[144]<e[33]?e[144]===0?e[14]?"var(--cell-width-row-number)":"0":`calc(${e[14]?"var(--cell-width-row-number) + ":""}${Array(e[144]).fill(0).map(In).join(" + ")})`:"auto"),(!p||H[0]&67108864|H[1]&4)&&Y(t,"frozen-column",e[144]<e[33]),(!p||H[0]&67108864|H[1]&4)&&Y(t,"last-frozen",e[144]===e[33]-1),(!p||H[0]&67108864|H[1]&192)&&Y(t,"focus",e[37]===e[144]||e[38]===e[144])},i(F){p||(ie(i.$$.fragment,F),ie(r.$$.fragment,F),p=!0)},o(F){fe(i.$$.fragment,F),fe(r.$$.fragment,F),p=!1},d(F){F&&ne(t),Ne(i),Ne(r),O&&O.d(),D=!1,L()}}}function vr(n){let e,t,l=[],o=new Map,i,s=n[14]&&Bn(),u=We(n[26]);const a=f=>f[140];for(let f=0;f<u.length;f+=1){let r=kn(n,u,f),c=a(r);o.set(c,l[f]=jn(c,r))}return{c(){e=J("tr"),s&&s.c(),t=ae();for(let f=0;f<l.length;f+=1)l[f].c();N(e,"slot","thead"),N(e,"class","svelte-m6pdii")},m(f,r){oe(f,e,r),s&&s.m(e,null),I(e,t);for(let c=0;c<l.length;c+=1)l[c]&&l[c].m(e,null);i=!0},p(f,r){f[14]?s||(s=Bn(),s.c(),s.m(e,t)):s&&(s.d(1),s=null),r[0]&906516160|r[1]&1122500804|r[2]&4&&(u=We(f[26]),_t(),l=Gt(l,r,a,1,f,u,o,e,Yt,jn,null,kn),ut())},i(f){if(!i){for(let r=0;r<u.length;r+=1)ie(l[r]);i=!0}},o(f){for(let r=0;r<l.length;r+=1)fe(l[r]);i=!1},d(f){f&&ne(e),s&&s.d();for(let r=0;r<l.length;r+=1)l[r].d()}}}function Tn(n){let e,t=n[137]+1+"",l;return{c(){e=J("td"),l=tl(t),N(e,"class","row-number frozen-column always-frozen svelte-m6pdii"),qe(e,"left","0"),N(e,"tabindex","-1")},m(o,i){oe(o,e,i),I(e,l)},p(o,i){i[4]&8192&&t!==(t=o[137]+1+"")&&el(l,t)},d(o){o&&ne(e)}}}function Rn(n){let e,t,l;function o(...i){return n[88](n[137],n[142],...i)}return{c(){e=J("button"),e.textContent="â®",N(e,"class","cell-menu-button svelte-m6pdii")},m(i,s){oe(i,e,s),t||(l=Fe(e,"click",o),t=!0)},p(i,s){n=i},d(i){i&&ne(e),t=!1,l()}}}function Hn(n,e){let t,l,o,i,s,u,a=e[7]&&gn([e[137],e[142]],e[23],e[7]),f,r,c,h,d=e[140],p,D,L;function m(P){e[84](P,e[137],e[142])}function A(P){e[85](P,e[140])}function z(){return e[87](e[137],e[142])}let q={display_value:e[21]?.[e[137]]?.[e[142]],latex_delimiters:e[6],line_breaks:e[12],editable:e[7],edit:Ve(e[35],[e[137],e[142]]),datatype:Array.isArray(e[1])?e[1][e[142]]:e[1],clear_on_focus:e[36],root:e[9],max_chars:e[19]};e[27][e[137]][e[142]].value!==void 0&&(q.value=e[27][e[137]][e[142]].value),e[25][e[140]].input!==void 0&&(q.el=e[25][e[140]].input),o=new Qt({props:q}),ze.push(()=>Ye(o,"value",m)),ze.push(()=>Ye(o,"el",A)),o.$on("blur",e[86]),o.$on("focus",z);let j=a&&Rn(e);const O=()=>e[89](t,d),U=()=>e[89](null,d);function F(...P){return e[90](e[137],e[142],...P)}function H(...P){return e[91](e[137],e[142],...P)}return{key:n,first:null,c(){t=J("td"),l=J("div"),He(o.$$.fragment),u=ae(),j&&j.c(),f=ae(),N(l,"class","cell-wrap svelte-m6pdii"),N(t,"tabindex",r=e[14]&&e[142]===0?-1:0),N(t,"style",c="width: "+e[56](e[142])+"; left: "+(e[142]<e[33]?e[142]===0?e[14]?"var(--cell-width-row-number)":"0":`calc(${e[14]?"var(--cell-width-row-number) + ":""}${Array(e[142]).fill(0).map(On).join(" + ")})`:"auto")+"; "+(e[22]?.[e[137]]?.[e[142]]||"")),N(t,"class",h=bn(Ut([e[137],e[142]],e[23]))+" svelte-m6pdii"),Y(t,"frozen-column",e[142]<e[33]),Y(t,"last-frozen",e[142]===e[33]-1),Y(t,"flash",e[43]&&Ut([e[137],e[142]],e[23])),Y
5(t,"menu-active",e[39]&&e[39].row===e[137]&&e[39].col===e[142]),this.first=t},m(P,k){oe(P,t,k),I(t,l),Pe(o,l,null),I(l,u),j&&j.m(l,null),I(t,f),O(),p=!0,D||(L=[Fe(t,"touchstart",F),Fe(t,"mousedown",Sr),Fe(t,"click",H)],D=!0)},p(P,k){e=P;const W={};k[0]&2097152|k[4]&24576&&(W.display_value=e[21]?.[e[137]]?.[e[142]]),k[0]&64&&(W.latex_delimiters=e[6]),k[0]&4096&&(W.line_breaks=e[12]),k[0]&128&&(W.editable=e[7]),k[1]&16|k[4]&24576&&(W.edit=Ve(e[35],[e[137],e[142]])),k[0]&2|k[4]&16384&&(W.datatype=Array.isArray(e[1])?e[1][e[142]]:e[1]),k[1]&32&&(W.clear_on_focus=e[36]),k[0]&512&&(W.root=e[9]),k[0]&524288&&(W.max_chars=e[19]),!i&&k[0]&134217728|k[4]&24576&&(i=!0,W.value=e[27][e[137]][e[142]].value,Xe(()=>i=!1)),!s&&k[0]&33554432|k[4]&16384&&(s=!0,W.el=e[25][e[140]].input,Xe(()=>s=!1)),o.$set(W),k[0]&8388736|k[4]&24576&&(a=e[7]&&gn([e[137],e[142]],e[23],e[7])),a?j?j.p(e,k):(j=Rn(e),j.c(),j.m(l,null)):j&&(j.d(1),j=null),(!p||k[0]&16384|k[4]&16384&&r!==(r=e[14]&&e[142]===0?-1:0))&&N(t,"tabindex",r),(!p||k[0]&4210688|k[1]&4|k[4]&24576&&c!==(c="width: "+e[56](e[142])+"; left: "+(e[142]<e[33]?e[142]===0?e[14]?"var(--cell-width-row-number)":"0":`calc(${e[14]?"var(--cell-width-row-number) + ":""}${Array(e[142]).fill(0).map(On).join(" + ")})`:"auto")+"; "+(e[22]?.[e[137]]?.[e[142]]||"")))&&N(t,"style",c),(!p||k[0]&8388608|k[4]&24576&&h!==(h=bn(Ut([e[137],e[142]],e[23]))+" svelte-m6pdii"))&&N(t,"class",h),d!==e[140]&&(U(),d=e[140],O()),(!p||k[0]&8388608|k[1]&4|k[4]&24576)&&Y(t,"frozen-column",e[142]<e[33]),(!p||k[0]&8388608|k[1]&4|k[4]&24576)&&Y(t,"last-frozen",e[142]===e[33]-1),(!p||k[0]&8388608|k[1]&4096|k[4]&24576)&&Y(t,"flash",e[43]&&Ut([e[137],e[142]],e[23])),(!p||k[0]&8388608|k[1]&256|k[4]&24576)&&Y(t,"menu-active",e[39]&&e[39].row===e[137]&&e[39].col===e[142])},i(P){p||(ie(o.$$.fragment,P),p=!0)},o(P){fe(o.$$.fragment,P),p=!1},d(P){P&&ne(t),Ne(o),j&&j.d(),U(),D=!1,Al(L)}}}function yr(n){let e,t,l=[],o=new Map,i,s=n[14]&&Tn(n),u=We(n[138]);const a=f=>f[140];for(let f=0;f<u.length;f+=1){let r=vn(n,u,f),c=a(r);o.set(c,l[f]=Hn(c,r))}return{c(){e=J("tr"),s&&s.c(),t=ae();for(let f=0;f<l.length;f+=1)l[f].c();N(e,"slot","tbody"),N(e,"class","svelte-m6pdii"),Y(e,"row_odd",n[137]%2===0)},m(f,r){oe(f,e,r),s&&s.m(e,null),I(e,t);for(let c=0;c<l.length;c+=1)l[c]&&l[c].m(e,null);i=!0},p(f,r){f[14]?s?s.p(f,r):(s=Tn(f),s.c(),s.m(e,t)):s&&(s.d(1),s=null),r[0]&182997698|r[1]&234885429|r[4]&24576&&(u=We(f[138]),_t(),l=Gt(l,r,a,1,f,u,o,e,Yt,Hn,null,vn),ut()),(!i||r[4]&8192)&&Y(e,"row_odd",f[137]%2===0)},i(f){if(!i){for(let r=0;r<u.length;r+=1)ie(l[r]);i=!0}},o(f){for(let r=0;r<l.length;r+=1)fe(l[r]);i=!1},d(f){f&&ne(e),s&&s.d();for(let r=0;r<l.length;r+=1)l[r].d()}}}function Cr(n){let e,t,l,o,i;function s(r){n[98](r)}function u(r){n[99](r)}function a(r){n[100](r)}let f={max_height:n[11],selected:n[48],disable_scroll:n[39]!==null||n[40]!==null,$$slots:{tbody:[yr,({index:r,item:c})=>({137:r,138:c}),({index:r,item:c})=>[0,0,0,0,(r?8192:0)|(c?16384:0)]],thead:[vr],default:[kr]},$$scope:{ctx:n}};return n[27]!==void 0&&(f.items=n[27]),n[44]!==void 0&&(f.actual_height=n[44]),n[45]!==void 0&&(f.table_scrollbar_width=n[45]),e=new Gi({props:f}),ze.push(()=>Ye(e,"items",s)),ze.push(()=>Ye(e,"actual_height",u)),ze.push(()=>Ye(e,"table_scrollbar_width",a)),{c(){He(e.$$.fragment)},m(r,c){Pe(e,r,c),i=!0},p(r,c){const h={};c[0]&2048&&(h.max_height=r[11]),c[1]&131072&&(h.selected=r[48]),c[1]&768&&(h.disable_scroll=r[39]!==null||r[40]!==null),c[0]&1055413958|c[1]&4597|c[4]&8413184&&(h.$$scope={dirty:c,ctx:r}),!t&&c[0]&134217728&&(t=!0,h.items=r[27],Xe(()=>t=!1)),!l&&c[1]&8192&&(l=!0,h.actual_height=r[44],Xe(()=>l=!1)),!o&&c[1]&16384&&(o=!0,h.table_scrollbar_width=r[45],Xe(()=>o=!1)),e.$set(h)},i(r){i||(ie(e.$$.fragment,r),i=!0)},o(r){fe(e.$$.fragment,r),i=!1},d(r){Ne(e,r)}}}function Nn(n){let e,t;return e=new Qn({props:{x:n[39].x,y:n[39].y,row:n[39].row,col_count:n[4],row_count:n[5],on_add_row_above:n[105],on_add_row_below:n[106],on_add_column_left:n[107],on_add_column_right:n[108],on_delete_row:n[109],on_delete_col:n[110],can_delete_rows:n[27].length>1,can_delete_cols:n[27][0].length>1,i18n:n[10]}}
5),{c(){He(e.$$.fragment)},m(l,o){Pe(e,l,o),t=!0},p(l,o){const i={};o[1]&256&&(i.x=l[39].x),o[1]&256&&(i.y=l[39].y),o[1]&256&&(i.row=l[39].row),o[0]&16&&(i.col_count=l[4]),o[0]&32&&(i.row_count=l[5]),o[1]&256&&(i.on_add_row_above=l[105]),o[1]&256&&(i.on_add_row_below=l[106]),o[1]&256&&(i.on_add_column_left=l[107]),o[1]&256&&(i.on_add_column_right=l[108]),o[1]&256&&(i.on_delete_row=l[109]),o[1]&256&&(i.on_delete_col=l[110]),o[0]&134217728&&(i.can_delete_rows=l[27].length>1),o[0]&134217728&&(i.can_delete_cols=l[27][0].length>1),o[0]&1024&&(i.i18n=l[10]),e.$set(i)},i(l){t||(ie(e.$$.fragment,l),t=!0)},o(l){fe(e.$$.fragment,l),t=!1},d(l){Ne(e,l)}}}function Pn(n){let e,t;return e=new Qn({props:{i18n:n[10],x:n[40].x,y:n[40].y,row:-1,col_count:n[4],row_count:n[5],on_add_row_above:n[111],on_add_row_below:n[112],on_add_column_left:n[113],on_add_column_right:n[114],on_delete_row:n[115],on_delete_col:n[116],can_delete_rows:!1,can_delete_cols:n[27][0].length>1}}),{c(){He(e.$$.fragment)},m(l,o){Pe(e,l,o),t=!0},p(l,o){const i={};o[0]&1024&&(i.i18n=l[10]),o[1]&512&&(i.x=l[40].x),o[1]&512&&(i.y=l[40].y),o[0]&16&&(i.col_count=l[4]),o[0]&32&&(i.row_count=l[5]),o[1]&256&&(i.on_add_row_above=l[111]),o[1]&256&&(i.on_add_row_below=l[112]),o[1]&512&&(i.on_add_column_left=l[113]),o[1]&512&&(i.on_add_column_right=l[114]),o[1]&256&&(i.on_delete_row=l[115]),o[1]&512&&(i.on_delete_col=l[116]),o[0]&134217728&&(i.can_delete_cols=l[27][0].length>1),e.$set(i)},i(l){t||(ie(e.$$.fragment,l),t=!0)},o(l){fe(e.$$.fragment,l),t=!1},d(l){Ne(e,l)}}}function Ar(n){let e,t,l,o,i,s,u,a,f,r,c,h,d=[],p=new Map,D,L,m,A=[],z=new Map,q,j,O,U,F,H,P,k,W,ee,v=n[2]&&n[2].length!==0&&n[3]&&An(n);o=new Ns({props:{show_fullscreen_button:n[17],is_fullscreen:n[41],on_copy:n[63],show_copy_button:n[18],show_search:n[20],on_commit_filter:n[70],current_search_query:n[47]}}),o.$on("click",n[62]),o.$on("search",n[77]);let T=n[24]!==!1&&n[23].length===1&&Sn(n),te=n[2]&&n[2].length!==0&&En(n),le=n[14]&&Mn(),ue=We(n[26]);const V=g=>g[140];for(let g=0;g<ue.length;g+=1){let C=Cn(n,ue,g),w=V(C);p.set(w,d[g]=qn(w,C))}let ce=We(n[49]);const X=g=>g[140];for(let g=0;g<ce.length;g+=1){let C=yn(n,ce,g),w=X(C);z.set(w,A[g]=zn(w,C))}function ye(g){n[101](g)}let we={upload:n[15],stream_handler:n[16],flex:!1,center:!1,boundedheight:!1,disable_click:!0,root:n[9],aria_label:n[10]("dataframe.drop_to_upload"),$$slots:{default:[Cr]},$$scope:{ctx:n}};n[42]!==void 0&&(we.dragging=n[42]),O=new ti({props:we}),ze.push(()=>Ye(O,"dragging",ye)),O.$on("load",n[102]);let y=n[39]&&Nn(n),B=n[40]!==null&&Pn(n);return{c(){e=J("div"),t=J("div"),v&&v.c(),l=ae(),He(o.$$.fragment),i=ae(),s=J("div"),T&&T.c(),u=ae(),a=J("table"),te&&te.c(),f=ae(),r=J("thead"),c=J("tr"),le&&le.c(),h=ae();for(let g=0;g<d.length;g+=1)d[g].c();D=ae(),L=J("tbody"),m=J("tr");for(let g=0;g<A.length;g+=1)A[g].c();j=ae(),He(O.$$.fragment),F=ae(),y&&y.c(),H=ae(),B&&B.c(),P=eo(),N(t,"class","header-row svelte-m6pdii"),N(c,"class","svelte-m6pdii"),N(r,"class","svelte-m6pdii"),N(m,"class","svelte-m6pdii"),N(a,"class","svelte-m6pdii"),Y(a,"fixed-layout",n[13].length!=0),N(s,"class","table-wrap svelte-m6pdii"),qe(s,"height",n[44]+"px"),N(s,"role","grid"),N(s,"tabindex","0"),Y(s,"dragging",n[42]),Y(s,"no-wrap",!n[8]),Y(s,"menu-open",n[39]||n[40]),N(e,"class","table-container svelte-m6pdii")},m(g,C){oe(g,e,C),I(e,t),v&&v.m(t,null),I(t,l),Pe(o,t,null),I(e,i),I(e,s),T&&T.m(s,null),I(s,u),I(s,a),te&&te.m(a,null),I(a,f),I(a,r),I(r,c),le&&le.m(c,null),I(c,h);for(let w=0;w<d.length;w+=1)d[w]&&d[w].m(c,null);I(a,D),I(a,L),I(L,m);for(let w=0;w<A.length;w+=1)A[w]&&A[w].m(m,null);q=mr.observe(a,n[82].bind(a)),n[83](a),I(s,j),Pe(O,s,null),n[103](s),oe(g,F,C),y&&y.m(g,C),oe(g,H,C),B&&B.m(g,C),oe(g,P,C),k=!0,W||(ee=[Fe(br,"resize",n[76]),Fe(s,"keydown",n[104])],W=!0)},p(g,C){g[2]&&g[2].length!==0&&g[3]?v?v.p(g,C):(v=An(g),v.c(),v.m(t,l)):v&&(v.d(1),v=null);const w={};C[0]&131072&&(w.show_fullscreen_button=g[17]),C[1]&1024&&(w.is_fullscreen=g[41]),C[0]&262144&&(w.show_copy_button=g[18]),C[0]&1048576&&(w.show_search=g[20]),C[1]&65536&&(w.current_search_query=g[47]),o.$set(w),g[24]!==!1&&g[23].length===1?T?T.p(g,C):(T=Sn(g),T.c(),T.m(s,u)):T&&(T.d(1),T=null),g[2]&&g[2].length!==0?te?te.p(g,C):(te=En(g),te.c(),te.m(a,f)):te&&(te.d(1),te=null),g[14]?le||(le=Mn(),le.c(),le.m(c,h)):le&&(le.d(1),le=null),C[0]&872445632|C[1]&2621508&&(ue=We(g[26]),_t(),d=Gt(d,C,V,1,g,ue,p,c,Yt,qn,null,Cn),ut()),C[0]&1073746626|C[1]&262144&&(ce=We(g[49]),_t(),A=Gt(A,C,X,1,g,ce,z,m,Yt,zn,null,yn),ut()),(!k||C[0]&8192)&&Y(a,"fixed-layout",g[13].length!=0);const x={};C[0]&32768&&(x.upload=g[15]),C[0]&65536&&(x.stream_handler=g[16]),C[0]&512&&(x.root=g[9]),C[0]&1024&&(x.aria_label=g[10]("dataframe.drop_to_upload")),C[0]&1055416006|C[1]&160757|C[4]&8388608&&(x.$$scope={dirty:C,ctx:g}
5),!U&&C[1]&2048&&(U=!0,x.dragging=g[42],Xe(()=>U=!1)),O.$set(x),(!k||C[1]&8192)&&qe(s,"height",g[44]+"px"),(!k||C[1]&2048)&&Y(s,"dragging",g[42]),(!k||C[0]&256)&&Y(s,"no-wrap",!g[8]),(!k||C[1]&768)&&Y(s,"menu-open",g[39]||g[40]),g[39]?y?(y.p(g,C),C[1]&256&&ie(y,1)):(y=Nn(g),y.c(),ie(y,1),y.m(H.parentNode,H)):y&&(_t(),fe(y,1,1,()=>{y=null}),ut()),g[40]!==null?B?(B.p(g,C),C[1]&512&&ie(B,1)):(B=Pn(g),B.c(),ie(B,1),B.m(P.parentNode,P)):B&&(_t(),fe(B,1,1,()=>{B=null}),ut())},i(g){if(!k){ie(o.$$.fragment,g);for(let C=0;C<ue.length;C+=1)ie(d[C]);for(let C=0;C<ce.length;C+=1)ie(A[C]);ie(O.$$.fragment,g),ie(y),ie(B),k=!0}},o(g){fe(o.$$.fragment,g);for(let C=0;C<d.length;C+=1)fe(d[C]);for(let C=0;C<A.length;C+=1)fe(A[C]);fe(O.$$.fragment,g),fe(y),fe(B),k=!1},d(g){g&&(ne(e),ne(F),ne(H),ne(P)),v&&v.d(),Ne(o),T&&T.d(),te&&te.d(),le&&le.d();for(let C=0;C<d.length;C+=1)d[C].d();for(let C=0;C<A.length;C+=1)A[C].d();q(),n[83](null),Ne(O),n[103](null),y&&y.d(g),B&&B.d(g),W=!1,Al(ee)}}}function qt(){return Math.random().toString(36).substring(2,15)}function fl(n,e,t){let l=n||[];if(e[1]==="fixed"&&l.length<e[0]){const o=Array(e[0]-l.length).fill("").map((i,s)=>`${s+l.length}`);l=l.concat(o)}return!l||l.length===0?Array(e[0]).fill(0).map((o,i)=>{const s=qt();return t[s]={cell:null,input:null},{id:s,value:JSON.stringify(i+1)}}):l.map((o,i)=>{const s=qt();return t[s]={cell:null,input:null},{id:s,value:o??""}})}const Fn=(n,e)=>`var(--cell-width-${e})`,On=(n,e)=>`var(--cell-width-${e})`,Sr=n=>{n.preventDefault(),n.stopPropagation()},In=(n,e)=>`var(--cell-width-${e})`;function Er(n,e,t){let l,o,{datatype:i}=e,{label:s=null}=e,{show_label:u=!0}=e,{headers:a=[]}=e,{values:f=[]}=e,{col_count:r}=e,{row_count:c}=e,{latex_delimiters:h}=e,{editable:d=!0}=e,{wrap:p=!1}=e,{root:D}=e,{i18n:L}=e,{max_height:m=500}=e,{line_breaks:A=!0}=e,{column_widths:z=[]}=e,{show_row_numbers:q=!1}=e,{upload:j}=e,{stream_handler:O}=e,{show_fullscreen_button:U=!1}=e,{show_copy_button:F=!1}=e,{value_is_output:H=!1}=e,{max_chars:P=void 0}=e,{show_search:k="none"}=e,{pinned_columns:W=0}=e,ee=0,v=[],T=!1,{display_value:te=null}=e,{styling:le=null}=e,ue,V={};const ce=pr();let X=!1,ye=!1,we=!1,y=!1,B=null,g=null,C=!1,w=!1,x=!1,$;pn(()=>{$=getComputedStyle(document.documentElement).getPropertyValue("--color-accent").trim()+"40",document.documentElement.style.setProperty("--color-accent-copied",$)});const pe=(_,b)=>M?.[_]?.[b]?.value;function pt(_){const b=_.length;return Array(c[1]==="fixed"?c[0]:b).fill(0).map((E,R)=>Array(r[1]==="fixed"?r[0]:b>0?_[0].length:a.length).fill(0).map((Q,_e)=>{const je=qt();return t(25,V[je]=V[je]||{input:null,cell:null},V),{value:_?.[R]?.[_e]??"",id:je}}))}let he=fl(a,r,V),Ge=a,M=[[]],Be,Sl=he.map(_=>_.value),El=M.map(_=>_.map(b=>String(b.value)));async function to(){if(At)return;const _=he.map(E=>E.value),b=M.map(E=>E.map(R=>String(R.value)));(!Ve(b,El)||!Ve(_,Sl))&&(ce("change",{data:M.map(E=>E.map(R=>R.value)),headers:he.map(E=>E.value),metadata:null}),H||ce("input"),El=b,Sl=_)}function lo(_,b,E){if(!b)return"none";if(a[b]===_){if(E==="asc")return"ascending";if(E==="des")return"descending"}return"none"}async function Ml(_){if(y!==!1&&we===!1)switch(_.key){case"ArrowDown":t
5(24,T=[0,y]),t(38,y=!1);return;case"ArrowLeft":t(38,y=y>0?y-1:y);return;case"ArrowRight":t(38,y=y<he.length-1?y+1:y);return;case"Escape":_.preventDefault(),t(38,y=!1);break;case"Enter":_.preventDefault();break}if(_.key==="Delete"||_.key==="Backspace"){if(!d)return;if(X){const[R,Q]=X,_e=V[M[R][Q].id].input;if(_e&&_e.selectionStart!==_e.selectionEnd||_.key==="Delete"&&_e?.selectionStart!==_e?.value.length||_.key==="Backspace"&&_e?.selectionStart!==0)return}_.preventDefault(),v.length>0&&(t(27,M=Gs(M,v)),ce("change",{data:M.map(R=>R.map(Q=>Q.value)),headers:he.map(R=>R.value),metadata:null}),H||ce("input"));return}if(_.key==="c"&&(_.metaKey||_.ctrlKey)){_.preventDefault(),v.length>0&&await Rl();return}if(!T)return;const[b,E]=T;switch(_.key){case"ArrowRight":case"ArrowLeft":case"ArrowDown":case"ArrowUp":if(X)break;_.preventDefault();const R=Zs(_.key,[b,E],M);R?(_.shiftKey?(t(23,v=xn(v.length>0?v[0]:[b,E],R)),t(35,X=!1)):(t(23,v=[R]),d&&(t(35,X=R),t(36,ye=!1))),t(24,T=R)):R===!1&&_.key==="ArrowUp"&&b===0&&(t(38,y=E),t(24,T=!1),t(35,X=!1));break;case"Escape":if(!d)break;_.preventDefault(),t(35,X=!1);break;case"Enter":if(_.preventDefault(),d)if(_.shiftKey)ql(b),await Vt(),t(24,T=[b+1,E]);else if(Ve(X,[b,E])){const _e=M[b][E].id,je=V[_e].input;je&&t(27,M[b][E].value=je.value,M),t(35,X=!1),await Vt(),t(24,T=[b,E])}else t(35,X=[b,E]),t(36,ye=!1);break;case"Tab":_.preventDefault(),t(35,X=!1);const Q=Qs([b,E],M,_.shiftKey);Q&&(t(23,v=[Q]),t(24,T=Q),d&&(t(35,X=Q),t(36,ye=!1)));break;default:if(!d)break;(!X||X&&Ve(X,[b,E]))&&_.key.length===1&&(t(36,ye=!0),t(35,X=[b,E]))}}let Ie,De;function ll(_,b){typeof De!="number"||De!==_?(t(28,Ie=b),t(29,De=_)):De===_&&(Ie===b?(t(28,Ie=void 0),t(29,De=void 0)):t(28,Ie=b))}async function nl(_,b=!1){!d||r[1]!=="dynamic"||we===_||(t(24,T=!1),t(23,v=[]),t(38,y=_),t(37,we=_))}
5function no(_){if(d)switch(_.detail.key){case"Escape":case"Enter":case"Tab":_.preventDefault(),t(24,T=!1),t(38,y=we),t(37,we=!1),de.focus();break}}async function ql(_){if(de.focus(),c[1]!=="dynamic")return;if(M.length===0){t(0,f=[Array(a.length).fill("")]);return}const b=Array(M[0].length).fill(0).map((E,R)=>{const Q=qt();return t(25,V[Q]={cell:null,input:null},V),{id:Q,value:""}});_!==void 0&&_>=0&&_<=M.length?M.splice(_,0,b):M.push(b),t(27,M),t(0,f),t(75,Be),t(24,T=[_!==void 0?_:M.length-1,0])}async function oo(_){if(de.focus(),r[1]!=="dynamic")return;const b=_!==void 0?_:M[0].length;for(let E=0;E<M.length;E++){const R=qt();t(25,V[R]={cell:null,input:null},V),M[E].splice(b,0,{id:R,value:""})}a.splice(b,0,`Header ${a.length+1}`),t(27,M),t(0,f),t(75,Be),t(71,a),await Vt(),requestAnimationFrame(()=>{nl(b,!0);const E=de.querySelectorAll("tbody")[1].offsetWidth;de.querySelectorAll("table")[1].scrollTo({left:E})})}function zl(_){xs(_,de)&&(t(35,X=!1),t(23,v=[]),t(37,we=!1),t(38,y=!1),t(39,B=null),t(40,g=null))}let kt=[],de,Ht;function vt(){const _=kt.map(E=>E?.clientWidth||0);if(_.length===0)return;q&&de.style.setProperty("--cell-width-row-number",`${_[0]}px`);const b=q?_.slice(1):_;b.forEach((E,R)=>{z[R]||de.style.setProperty(`--cell-width-${R}`,`${E-Nt/b.length}px`)})}function io(_){return z[_]||`var(--cell-width-${_})`}let ol=f.slice(0,m/f.length*37).length*37+37,Nt=0;function so(_,b,E,R,Q){let _e=null;if(T&&T[0]in _&&T[1]in _[T[0]]&&(_e=_[T[0]][T[1]].id),!(typeof R!="number"||!Q)&&(ir(_,b,E,R,Q),t(27,M),t(0,f),t(75,Be),_e)){const[je,St]=$s(_e,M);t(24,T=[je,St])}}let Ll=!1;pn(()=>{const _=new IntersectionObserver(b=>{b.forEach(E=>{E.isIntersecting&&!Ll&&(vt(),t(27,M),t(0,f),t(75,Be)),Ll=E.isIntersecting})});return _.observe(de),document.addEventListener("click",zl),window.addEventListener("resize",Dl),document.addEventListener("fullscreenchange",Tl),()=>{_.disconnect(),document.removeEventListener("click",zl),window.removeEventListener("resize",Dl),document.removeEventListener("fullscreenchange",Tl)}});function il(_,b,E){_.target instanceof HTMLAnchorElement||(_.preventDefault(),_.stopPropagation(),!(q&&E===-1)&&(t(36,ye=!1),t(39,B=null),t(40,g=null),t(38,y=!1),t(37,we=!1),t(23,v=Ys([b,E],v,_)),de.focus(),d&&(v.length===1?(t(35,X=[b,E]),Vt().then(()=>{const R=V[M[b][E].id].input;R&&(R.focus(),R.selectionStart=R.selectionEnd=R.value.length)})):t(35,X=!1)),ro(b,E),ce("select",{index:[b,E],value:pe(b,E),row_value:M[b].map(R=>R.value)})))}function Bl(_,b,E){if(_.stopPropagation(),B&&B.row===b&&B.col===E)t(39,B=null);else{const R=_.target.closest("td");if(R){const Q=R.getBoundingClientRect();t(39,B={row:b,col:E,x:Q.right,y:Q.bottom})}}}function yt(_,b){const E=b==="above"?_:_+1;ql(E),t(39,B=null),t(40,g=null)}function Ct(_,b){const E=b==="left"?_:_+1;oo(E),t(39,B=null),t(40,g=null)}function Dl(){t(39,B=null),t(40,g=null),t(23,v=[]),t(24,T=!1),t(35,X=!1),vt()}let Qe=null;function jl(_){Qe=Qe?.type==="header"&&Qe.col===_?null:{type:"header",col:_}}function ro(_,b){Qe=Qe?.type==="cell"&&Qe.row===_&&Qe.col===b?null:{type:"cell",row:_,col:b}}function uo(){document.fullscreenElement?(document.exitFullscreen(),t(41,C=!1)):(de.requestFullscreen(),t(41,C=!0))}function Tl(){t(41,C=!!document.fullscreenElement)}async function Rl(){await sr(M,v),t(43,x=!0),setTimeout(()=>{t(43,x=!1)},800)}function Hl(_,b){if(_.stopPropagation(),g&&g.col===b)t(40,g=null);else{const E=_.target.closest("th");if(E){const R=E.getBoundingClientRect();t(40,g={col:b,x:R.right,y:R.bottom})}}}wr(()=>{t(72,H=!1)});async function _o(_){de.focus(),c[1]==="dynamic"&&(M.length<=1||(M.splice(_,1),t(27,M),t(0,f),t(75,Be),t(24,T=!1)))}async function ao(_){de.focus(),r[1]==="dynamic"&&(M[0].length<=1||(he.splice(_,1),t(26,he),t(71,a),t(74,Ge),t(4,r),t(25,V),M.forEach(b=>{b.splice(_,1)}),t(27,M),t(0,f),t(75,Be),t(24,T=!1)))}function sl(_){_o(_),t(39,B=null),t(40,g=null)}function rl(_){ao(_),t(39,B=null),t(40,g=null)}function Nl(_){t(23,v=er(M,_)),t(24,T=v[0]),t(35,X=!1)}function Pl(_){t(23,v=tr(M,_)),t(24,T=v[0]),t(35,X=!1)}let Pt,At=null;function Fl(_){t(47,At=_),ce("search",_)}function fo(){At&&k==="filter"&&(ce("change",{data:M.map(_=>_.map(b=>b.value)),headers:he.map(_=>_.value),metadata:null}),H||ce("input"),t(47,At=null))}const co=()=>vt(),ho=_=>Fl(_.detail),mo=()=>Nl(Pt[1]),go=()=>Pl(Pt[0]),bo=(_,{detail:b})=>ll(_,b);function wo(_,b){ze[_?"unshift":"push"](()=>{kt[b]=_,t(30,kt)})}function po(){ue=ar.entries.get(this)?.contentRect,t(34,ue)}function ko(_){ze[_?"unshift":"push"](()=>{Ht=_,t(32,Ht)})}function vo(_,b,E){n.$$.not_equal(M[b][E].value,_)&&(M[b][E].value=_,t(27,M),t(0,f),t(75,Be))}function yo(_,b){n.$$.not_equal(V[b].input,_)&&(V[b].input=_,t(25,V))}const Co=()=>{t(36,ye=!1),de.focus()},Ao=(_,b)=>{const E=_,R=b;v.some(([Q,_e])=>Q===E&&_e===R)||t(23,v=[[E,R]])},So=(_,b,E)=>Bl(E,_,b);function Eo(_,b){ze[_?"unshift":"push"](()=>{V[b].cell=_,t(25,V)})}const Mo=(_,b,E)=>{const R=E.touches[0],Q=new MouseEvent("click",{clientX:R.clientX,clientY:R.clientY,bubbles:!0,cancelable:!0,view:window});il(Q,_,b)},qo=(_,b,E)=>il(E,_,b);function zo(_,b){n.$$.not_equal(he[b].value,_)&&(he[b].value=_,t(26,he),t(71,a),t(74,Ge),t(4,r),t(25,V))}function Lo(_,b){n.$$.not_equal(V[b].input,_)&&(V[b].input=_,t(25,V))}const Bo=_=>nl(_),Do=(_,{detail:b})=>ll(_,b),jo=(_,b)=>Hl(b,_),To=_=>{jl(_)};function Ro(_){M=_,t(27,M),t(0,f),t(75,Be)}function Ho(_){ol=_,t(44,ol)}function No(_){Nt=_,t(45,Nt)}function Po(_){w=_,t(42,w)}const Fo=({detail:_})=>_r(_.data,b=>(t(26,he=fl(b.map(E=>E??""),r,V)),he),b=>{t(0,f=b)});function Oo(_){ze[_?"unshift":"push"](()=>
5{de=_,t(31,de)})}const Io=_=>Ml(_),Ko=()=>yt(B?.row||0,"above"),Uo=()=>yt(B?.row||0,"below"),Vo=()=>Ct(B?.col||0,"left"),Jo=()=>Ct(B?.col||0,"right"),Wo=()=>sl(B?.row||0),Xo=()=>rl(B?.col||0),Yo=()=>yt(B?.row??-1,"above"),Go=()=>yt(B?.row??-1,"below"),Qo=()=>Ct(g?.col??-1,"left"),Zo=()=>Ct(g?.col??-1,"right"),$o=()=>sl(B?.row??-1),xo=()=>rl(g?.col??-1);return n.$$set=_=>{"datatype"in _&&t(1,i=_.datatype),"label"in _&&t(2,s=_.label),"show_label"in _&&t(3,u=_.show_label),"headers"in _&&t(71,a=_.headers),"values"in _&&t(0,f=_.values),"col_count"in _&&t(4,r=_.col_count),"row_count"in _&&t(5,c=_.row_count),"latex_delimiters"in _&&t(6,h=_.latex_delimiters),"editable"in _&&t(7,d=_.editable),"wrap"in _&&t(8,p=_.wrap),"root"in _&&t(9,D=_.root),"i18n"in _&&t(10,L=_.i18n),"max_height"in _&&t(11,m=_.max_height),"line_breaks"in _&&t(12,A=_.line_breaks),"column_widths"in _&&t(13,z=_.column_widths),"show_row_numbers"in _&&t(14,q=_.show_row_numbers),"upload"in _&&t(15,j=_.upload),"stream_handler"in _&&t(16,O=_.stream_handler),"show_fullscreen_button"in _&&t(17,U=_.show_fullscreen_button),"show_copy_button"in _&&t(18,F=_.show_copy_button),"value_is_output"in _&&t(72,H=_.value_is_output),"max_chars"in _&&t(19,P=_.max_chars),"show_search"in _&&t(20,k=_.show_search),"pinned_columns"in _&&t(73,W=_.pinned_columns),"display_value"in _&&t(21,te=_.display_value),"styling"in _&&t(22,le=_.styling)},n.$$.update=()=>{if(n.$$.dirty[0]&1|n.$$.dirty[2]&8192&&(Ve(f,Be)||(t(27,M=pt(f)),t(75,Be=JSON.parse(JSON.stringify(f))))),n.$$.dirty[0]&134217728|n.$$.dirty[2]&2048&&t(33,ee=W&&M?.[0]?.length?Math.min(W,M[0].length):0),n.$$.dirty[0]&8388608&&t(23,v=[...v]),n.$$.dirty[0]&8388608&&t(24,T=v.length>0?v[v.length-1]:!1),n.$$.dirty[0]&33554448|n.$$.dirty[2]&4608&&(Ve(a,Ge)||(t(26,he=fl(a,r,V)),t(74,Ge=JSON.parse(JSON.stringify(a))))),n.$$.dirty[0]&201326592&&(M||he)&&to(),n.$$.dirty[0]&134217728&&t(49,l=or(M)),n.$$.dirty[0]&1073741824&&kt[0]&&vt(),n.$$.dirty[0]&945815552&&so(M,te,le,De,Ie),n.$$.dirty[0]&16777216&&t(48,o=!!T&&T[0]),n.$$.dirty[0]&939524096)if(typeof De=="number"&&Ie&&De>=0&&De<M[0].length){const _=[...Array(M.length)].map((E,R)=>R),b=De;_.sort((E,R)=>{const Q=M[E],_e=M[R];if(!Q||!_e||b>=Q.length||b>=_e.length)return 0;const je=Q[b].value,St=_e[b].value,Ol=je<St?-1:je>St?1:0;return Ie==="asc"?Ol:-Ol})}else[...Array(M.length)].map((_,b)=>b);if(n.$$.dirty[0]&16777216&&T!==!1&&t(46,Pt=T),n.$$.dirty[0]&184549376|n.$$.dirty[1]&3&&T!==!1){const _=lr(T,M,V,de,Ht);document.documentElement.style.setProperty("--selected-col-pos",_.col_pos),_.row_pos&&document.documentElement.style.setProperty("--selected-row-pos",_.row_pos)}},[f,i,s,u,r,c,h,d,p,D,L,m,A,z,q,j,O,U,F,P,k,te,le,v,T,V,he,M,Ie,De,kt,de,Ht,ee,ue,X,ye,we,y,B,g,C,w,x,ol,Nt,Pt,At,o,l,lo,Ml,ll,nl,no,vt,io,il,Bl,yt,Ct,jl,uo,Rl,Hl,sl,rl,Nl,Pl,Fl,fo,a,H,W,Ge,Be,co,ho,mo,go,bo,wo,po,ko,vo,yo,Co,Ao,So,Eo,Mo,qo,zo,Lo,Bo,Do,jo,To,Ro,Ho,No,Po,Fo,Oo,Io,Ko,Uo,Vo,Jo,Wo,Xo,Yo,Go,Qo,Zo,$o,xo]}class Mr extends fr{constructor(e){super(),hr(this,e,Er,Ar,gr,{datatype:1,label:2,show_label:3,headers:71,values:0,col_count:4,row_count:5,latex_delimiters:6,editable:7,wrap:8,root:9,i18n:10,max_height:11,line_breaks:12,column_widths:13,show_row_numbers:14,upload:15,stream_handler:16,show_fullscreen_button:17,show_copy_button:18,value_is_output:72,max_chars:19,show_search:20,pinned_columns:73,display_value:21,styling:22},null,[-1,-1,-1,-1,-1])}get datatype(){return this.$$.ctx[1]}set datatype(e){this.$$set({datatype:e}),Z()}get label(){return this.$$.ctx[2]}set label(e){this.$$set({label:e}),Z()}get show_label(){return this.$$.ctx[3]}set show_label(e){this.$$set({show_label:e}),Z()}get headers(){return this.$$.ctx[71]}set headers(e){this.$$set({headers:e}),Z()}get values(){return this.$$.ctx[0]}set values(e){this.$$set({values:e}),Z()}get col_count(){return this.$$.ctx[4]}set col_count(e){this.$$set({col_count:e}),Z()}get row_count(){return this.$$.ctx[5]}set row_count(e){this.$$set({row_count:e}),Z()}get latex_delimiters(){return this.$$.ctx[6]}set latex_delimiters(e){this.$$set({latex_delimiters:e}),Z()}get editable(){return this.$$.ctx[7]}set editable(e){this.$$set({editable:e}),Z()}get wrap(){return this.$$.ctx[8]}set wrap(e){this.$$set({wrap:e}),Z()}get root(){return this.$$.ctx[9]}set root(e){this.$$set({root:e}),Z()}get i18n(){return this.$$.ctx[10]}set i18n(e){this.$$set({i18n:e}),Z()}get max_height(){return this.$$.ctx[11]}set max_height(e){this.$$set({max_height:e}),Z()}get line_breaks(){return this.$$.ctx[12]}set line_breaks(e){this.$$set({line_breaks:e}),Z()}get column_widths(){return this.$$.ctx[13]}set column_widths(e){this.$$set({column_widths:e}),Z()}get show_row_numbers(){return this.$$.ctx[14]}set show_row_numbers(e){this.$$set({show_row_numbers:e}),Z()}get upload(){return this.$$.ctx[15]}set upload(e){this.$$set({upload:e}),Z()}get stream_handler(){return this.$$.ctx[16]}set stream_handler(e){this.$$set({stream_handler:e}),Z()}get show_fullscreen_button(){return this.$$.ctx[17]}set show_fullscreen_button(e){this.$$set({show_fullscreen_button:e}),Z()}get show_copy_button(){return this.$$.ctx[18]}set show_copy_button(e){this.$$set({show_copy_button:e}),Z()}get value_is_output(){return this.$$.ctx[72]}set value_is_output(e){this.$$set({value_is_output:e}),Z()}get max_chars(){return this.$$.ctx[19]}set max_chars(e){this.$$set({max_chars:e}),Z()}get show_search(){return this.$$.ctx[20]}set show_search(e){this.$$set({show_search:e}),Z()}get pinned_columns(){return this.$$.ctx[73]}set pinned_columns(e){this.$$set({pinned_columns:e}),Z()}get display_value(){return this.$$.ctx[21]}set display_value(e){this.$$set({display_value:e}),Z()}get styling(){return this.$$.ctx[22]}set styling(e){this.$$set({styling:e}),Z()}}const qr=Mr,{SvelteComponent:zr,add_flush_callback:Lr,assign:Br,bind:Dr,binding_callbacks:jr,create_component:pl,destroy_component:kl,detach:Tr,flush:G,get_spread_object:Rr,get_spread_update:Hr,init:Nr,insert:Pr,mount_component:vl,safe_not_equal:Fr,space
5:Or,transition_in:yl,transition_out:Cl}=window.__gradio__svelte__internal;function Ir(n){let e,t,l,o,i;const s=[{autoscroll:n[16].autoscroll},{i18n:n[16].i18n},n[19]];let u={};for(let r=0;r<s.length;r+=1)u=Br(u,s[r]);e=new ri({props:u}),e.$on("clear_status",n[33]);function a(r){n[36](r)}let f={root:n[13],label:n[7],show_label:n[8],row_count:n[6],col_count:n[5],values:n[31]||n[0].data,display_value:n[29],styling:n[28],headers:n[30],wrap:n[9],datatype:n[10],latex_delimiters:n[17],editable:n[20],max_height:n[18],i18n:n[16].i18n,line_breaks:n[14],column_widths:n[15],upload:n[34],stream_handler:n[35],show_fullscreen_button:n[21],max_chars:n[22],show_copy_button:n[23],show_row_numbers:n[24],show_search:n[25],pinned_columns:n[26]};return n[1]!==void 0&&(f.value_is_output=n[1]),l=new qr({props:f}),jr.push(()=>Dr(l,"value_is_output",a)),l.$on("change",n[37]),l.$on("input",n[38]),l.$on("select",n[39]),l.$on("search",n[40]),{c(){pl(e.$$.fragment),t=Or(),pl(l.$$.fragment)},m(r,c){vl(e,r,c),Pr(r,t,c),vl(l,r,c),i=!0},p(r,c){const h=c[0]&589824?Hr(s,[c[0]&65536&&{autoscroll:r[16].autoscroll},c[0]&65536&&{i18n:r[16].i18n},c[0]&524288&&Rr(r[19])]):{};e.$set(h);const d={};c[0]&8192&&(d.root=r[13]),c[0]&128&&(d.label=r[7]),c[0]&256&&(d.show_label=r[8]),c[0]&64&&(d.row_count=r[6]),c[0]&32&&(d.col_count=r[5]),c[0]&1|c[1]&1&&(d.values=r[31]||r[0].data),c[0]&536870912&&(d.display_value=r[29]),c[0]&268435456&&(d.styling=r[28]),c[0]&1073741824&&(d.headers=r[30]),c[0]&512&&(d.wrap=r[9]),c[0]&1024&&(d.datatype=r[10]),c[0]&131072&&(d.latex_delimiters=r[17]),c[0]&1048576&&(d.editable=r[20]),c[0]&262144&&(d.max_height=r[18]),c[0]&65536&&(d.i18n=r[16].i18n),c[0]&16384&&(d.line_breaks=r[14]),c[0]&32768&&(d.column_widths=r[15]),c[0]&65536&&(d.upload=r[34]),c[0]&65536&&(d.stream_handler=r[35]),c[0]&2097152&&(d.show_fullscreen_button=r[21]),c[0]&4194304&&(d.max_chars=r[22]),c[0]&8388608&&(d.show_copy_button=r[23]),c[0]&16777216&&(d.show_row_numbers=r[24]),c[0]&33554432&&(d.show_search=r[25]),c[0]&67108864&&(d.pinned_columns=r[26]),!o&&c[0]&2&&(o=!0,d.value_is_output=r[1],Lr(()=>o=!1)),l.$set(d)},i(r){i||(yl(e.$$.fragment,r),yl(l.$$.fragment,r),i=!0)},o(r){Cl(e.$$.fragment,r),Cl(l.$$.fragment,r),i=!1},d(r){r&&Tr(t),kl(e,r),kl(l,r)}}}function Kr(n){let e,t;return e=new ei({props:{visible:n[4],padding:!1,elem_id:n[2],elem_classes:n[3],container:!1,scale:n[11],min_width:n[12],overflow_behavior:"visible",$$slots:{default:[Ir]},$$scope:{ctx:n}}}),{c(){pl(e.$$.fragment)},m(l,o){vl(e,l,o),t=!0},p(l,o){const i={};o[0]&16&&(i.visible=l[4]),o[0]&4&&(i.elem_id=l[2]),o[0]&8&&(i.elem_classes=l[3]),o[0]&2048&&(i.scale=l[11]),o[0]&4096&&(i.min_width=l[12]),o[0]&2147477475|o[1]&1025&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){t||(yl(e.$$.fragment,l),t=!0)},o(l){Cl(e.$$.fragment,l),t=!1},d(l){kl(e,l)}}}function Ur(n,e,t){let l,o,i,s,{headers:u=[]}=e,{elem_id:a=""}=e,{elem_classes:f=[]}=e,{visible:r=!0}=e,{value:c={data:[["","",""]],headers:["1","2","3"],metadata:null}}=e,{value_is_output:h=!1}=e,{col_count:d}=e,{row_count:p}=e,{label:D=null}=e,{show_label:L=!0}=e,{wrap:m}=e,{datatype:A}=e,{scale:z=null}=e,{min_width:q=void 0}=e,{root:j}=e,{line_breaks:O=!0}=e,{column_widths:U=[]}=e,{gradio:F}=e,{latex_delimiters:H}=e,{max_height:P=void 0}=e,{loading_status:k}=e,{interactive:W}=e,{show_fullscreen_button:ee=!1}=e,{max_chars:v=void 0}=e,{show_copy_button:T=!1}=e,{show_row_numbers:te=!1}=e,{show_search:le="none"}=e,ue=null,{pinned_columns:V=0}=e;const ce=()=>F.dispatch("clear_status",k),X=(...w)=>F.client.upload(...w),ye=(...w)=>F.client.stream(...w);function we(w){h=w,t(1,h)}const y=w=>{t(0,c=w.detail),F.dispatch("change")},B=w=>F.dispatch("input"),g=w=>F.dispatch("select",w.detail),C=w=>t(27,ue=w.detail);return n.$$set=w=>{"headers"in w&&t(32,u=w.headers),"elem_id"in w&&t(2,a=w.elem_id),"elem_classes"in w&&t(3,f=w.elem_classes),"visible"in w&&t(4,r=w.visible),"value"in w&&t(0,c=w.value),"value_is_output"in w&&t(1,h=w.value_is_output),"col_count"in w&&t(5,d=w.col_count),"row_count"in w&&t(6,p=w.row_count),"label"in w&&t(7,D=w.label),"show_label"in w&&t(8,L=w.show_label),"wrap"in w&&t(9,m=w.wrap),"datatype"in w&&t(10,A=w.datatype),"scale"in w&&t(11,z=w.scale),"min_width"in w&&t(12,q=w.min_width),"root"in w&&t(13,j=w.root),"line_breaks"in w&&t(14,O=w.line_breaks),"column_widths"in w&&t(15,U=w.column_widths),"gradio"in w&&t(16,F=w.gradio),"latex_delimiters"in w&&t(17,H=w.latex_delimiters),"max_height"in w&&t(18,P=w.max_height),"loading_status"in w&&t(19,k=w.loading_status),"interactive"in w&&t(20,W=w.interactive),"show_fullscreen_button"in w&&t(21,ee=w.show_fullscreen_button),"max_chars"in w&&t(22,v=w.max_chars),"show_copy_button"in w&&t(23,T=w.show_copy_button),"show_row_numbers"in w&&t(24,te=w.show_row_numbers),"show_search"in w&&t(25,le=w.show_search),"pinned_columns"in w&&t(26,V=w.pinned_columns)},n.$$.update=()=>{n.$$.dirty[0]&134217729&&t(31,l=ue?c.data?.filter(w=>w.some(x=>ue&&String(x).toLowerCase().includes(ue.toLowerCase()))):null),n.$$.dirty[0]&1|n.$$.dirty[1]&2&&t(30,o=[...c.headers||u]),n.$$.dirty[0]&1&&t(29,i=c?.metadata?.display_value?[...c?.metadata?.display_value]:null),n.$$.dirty[0]&1048577&&t(28,s=!W&&c?.metadata?.styling?[...c?.metadata?.styling]:null)},[c,h,a,f,r,d,p,D,L,m,A,z,q,j,O,U,F,H,P,k,W,ee,v,T,te,le,V,ue,s,i,o,l,u,ce,X,ye,we,y,B,g,C]}class uu extends zr{constructor(e){super(),Nr(this,e,Ur,Kr,Fr,{headers:32,elem_id:2,elem_classes:3,visible:4,value:0,value_is_output:1,col_count:5,row_count:6,label:7,show_label:8,wrap:9,datatype:10,scale:11,min_width:12,root:13,line_breaks:14,column_widths:15,gradio:16,latex_delimiters:17,max_height:18,loading_status:19,interactive:20,show_fullscreen_button:21,max_chars:22,show_copy_button:23,show_row_numbers:24,show_search:25,pinned_columns:26},null,[-1,-1])}get headers(){return this.$$.ctx[32]}set headers(e){this.$$set({headers:e}),G()}get elem_id(){return this.$$.ctx[2]}set elem_id(e){this.$$set({elem_id:e}),G()}get elem_classes(){return this.$$.ctx[3]}set elem_classes(e){this.$$set({elem_classes:e}),G()}get visible(){return this.$$.ctx[4]}set visible(e){this.$$set({visible:e}),G()}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),G()}get value_is_output(){return this.$$.ctx[1]}set value_is_output(e){this.$$set({value_is_output:e}),G()}get col_count(){return this.$$.ctx[5]}set col_count(e){this.$$set({col_count:e}),G()}get row_count(){return this.$$.ctx[6]}set row_count(e){this.$$set({row_count:e}),G()}get label(){return this.$$.ctx[7]}set label(e){this.$$set({label:e}),G()}get show_label(){return this.$$.ctx[8]}set show_label(e){this.$$set({show_label:e}),G()}get wrap(){return this.$$.ctx[9]}set wrap(e){this.$$set({wrap:e}),G()}get datatype(){return this.$$.ctx[10]}set datatype(e){this.$$set({datatype:e}),G()}get scale(){return this.$$.ctx[11]}set scale(e){this.$$set({scale:e}),G()}get min_width(){return this.$$.ctx[12]}set min_width(e){this.$$set({min_width:e}),G()}get root(){return this.$$.ctx[13]}set root(e){this.$$set({root:e}),G()}get line_breaks(){return this.$$.ctx[14]}set line_breaks(e){this.$$set({line_breaks:e}),G()}get column_widths(){return this.$$.ctx[15]}set column_widths(e){this.$$set({column_widths:e}),G()}get gradio(){return this.$$.ctx[16]}set gradio(e){this.$$set({gradio:e}),G()}get latex_delimiters(){return this.$$.ctx[17]}set latex_delimiters(e){this.$$set({latex_delimiters:e}),G()}get max_height(){return this.$$.ctx[18]}set max_height(e){this.$$set({max_height:e}),G()}get loading_status(){return this.$$.ctx[19]}set loading_status(e){this.$$set({loading_status:e}),G()}get interactive(){return this.$$.ctx[20]}set interactive(e){this.$$set({interactive:e}),G()}get show_fullscreen_button(){return this.$$.ctx[21]}set show_fullscreen_button(e){this.$$set({show_fullscreen_button:e}),G()}get max_chars(){return this.$$.ctx[22]}set max_chars(e){this.$$set({max_chars:e}),G()}get show_copy_button(){return this.$$.ctx[23]}set show_copy_button(e){this.$$set({show_copy_button:e}),G()}get show_row_numbers(){return this.$$.ctx[24]}set show_row_numbers(e){this.$$set({show_row_numbers:e}),G()}get show_search(){return this.$$.ctx[25]}set show_search(e){this.$$set({show_search:e}),G()}get pinned_columns(){return this.$$.ctx[26]}set pinned_columns(e){this.$$set({pinned_columns:e}),G()}}export{qr as BaseDataFrame,fu as BaseExample,uu as default}; 6//# sourceMappingURL=Index-C301ZwEY.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.