mirror of
https://github.com/Ladebeze66/projetcbaollm.git
synced 2025-12-18 22:37:50 +01:00
3 lines
7.4 KiB
JavaScript
3 lines
7.4 KiB
JavaScript
import{$ as I}from"./index-C7PS0jJm.js";const J="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='10'%20fill='none'%3e%3cpath%20fill='%23FF3270'%20d='M1.93%206.03v2.04h2.04V6.03H1.93Z'/%3e%3cpath%20fill='%23861FFF'%20d='M6.03%206.03v2.04h2.04V6.03H6.03Z'/%3e%3cpath%20fill='%23097EFF'%20d='M1.93%201.93v2.04h2.04V1.93H1.93Z'/%3e%3cpath%20fill='%23000'%20fill-rule='evenodd'%20d='M.5%201.4c0-.5.4-.9.9-.9h3.1a.9.9%200%200%201%20.87.67A2.44%202.44%200%200%201%209.5%202.95c0%20.65-.25%201.24-.67%201.68.39.1.67.46.67.88v3.08c0%20.5-.4.91-.9.91H1.4a.9.9%200%200%201-.9-.9V1.4Zm1.43.53v2.04h2.04V1.93H1.93Zm0%206.14V6.03h2.04v2.04H1.93Zm4.1%200V6.03h2.04v2.04H6.03Zm0-5.12a1.02%201.02%200%201%201%202.04%200%201.02%201.02%200%200%201-2.04%200Z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23FFD702'%20d='M7.05%201.93a1.02%201.02%200%201%200%200%202.04%201.02%201.02%200%200%200%200-2.04Z'/%3e%3c/svg%3e",{SvelteComponent:K,append:r,attr:u,binding_callbacks:O,component_subscribe:P,create_slot:Q,destroy_each:R,detach:E,element:b,empty:U,ensure_array_like:G,flush:w,get_all_dirty_from_scope:W,get_slot_changes:X,init:Y,insert:S,listen:y,safe_not_equal:$,set_data:q,set_style:A,space:Z,text:C,toggle_class:m,transition_in:x,transition_out:ee,update_slot_base:te}=window.__gradio__svelte__internal,{getContext:le}=window.__gradio__svelte__internal;function L(t,e,i){const s=t.slice();return s[19]=e[i][0],s[20]=e[i][1],s[22]=i,s}function N(t){let e,i,s=G(t[10]),a=[];for(let l=0;l<s.length;l+=1)a[l]=T(L(t,s,l));return{c(){e=b("div"),i=b("nav");for(let l=0;l<a.length;l+=1)a[l].c();u(i,"class","fillable svelte-7n3dca"),m(i,"fill_width",t[3]),u(e,"class","nav-holder svelte-7n3dca")},m(l,f){S(l,e,f),r(e,i);for(let n=0;n<a.length;n+=1)a[n]&&a[n].m(i,null)},p(l,f){if(f&23584){s=G(l[10]);let n;for(n=0;n<s.length;n+=1){const h=L(l,s,n);a[n]?a[n].p(h,f):(a[n]=T(h),a[n].c(),a[n].m(i,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=s.length}f&8&&m(i,"fill_width",l[3])},d(l){l&&E(e),R(a,l)}}}function ie(t){let e,i=t[20]+"",s,a,l;return{c(){e=b("a"),s=C(i),a=Z(),u(e,"href",l=`${t[12]}/${t[19]}`),u(e,"data-sveltekit-reload",""),u(e,"class","svelte-7n3dca"),m(e,"active",t[19]===t[11])},m(f,n){S(f,e,n),r(e,s),r(e,a)},p(f,n){n&1024&&i!==(i=f[20]+"")&&q(s,i),n&5120&&l!==(l=`${f[12]}/${f[19]}`)&&u(e,"href",l),n&3072&&m(e,"active",f[19]===f[11])},d(f){f&&E(e)}}}function ne(t){let e,i=t[20]+"",s,a,l,f;function n(...h){return t[17](t[19],...h)}return{c(){e=b("button"),s=C(i),a=Z(),u(e,"class","svelte-7n3dca"),m(e,"active",t[19]===t[11])},m(h,v){S(h,e,v),r(e,s),r(e,a),l||(f=y(e,"click",n),l=!0)},p(h,v){t=h,v&1024&&i!==(i=t[20]+"")&&q(s,i),v&3072&&m(e,"active",t[19]===t[11])},d(h){h&&E(e),l=!1,f()}}}function T(t){let e;function i(l,f){return l[5]?ne:ie}let s=i(t),a=s(t);return{c(){a.c(),e=U()},m(l,f){a.m(l,f),S(l,e,f)},p(l,f){s===(s=i(l))&&a?a.p(l,f):(a.d(1),a=s(l),a&&(a.c(),a.m(e.parentNode,e)))},d(l){l&&E(e),a.d(l)}}}function j(t){let e,i,s,a,l,f,n,h=t[13]("common.built_with")+"",v,g,o,_,d,k,V=t[13]("common.hosted_on")+"",M,D,F;return{c(){e=b("div"),i=b("span"),s=b("a"),a=C(t[6]),f=Z(),n=b("span"),v=C(h),g=Z(),o=b("a"),o.textContent="Gradio",_=C("."),d=Z(),k=b("span"),M=C(V),D=Z(),F=b("a"),F.innerHTML=`<span class="space-logo svelte-7n3dca"><img src="${J}" alt="Hugging Face Space" class="svelte-7n3dca"/></span> Spaces`,u(s,"href",l="https://huggingface.co/spaces/"+t[6]),u(s,"class","title svelte-7n3dca"),u(i,"class","svelte-7n3dca"),u(o,"class","gradio svelte-7n3dca"),u(o,"href","https://gradio.app"),u(n,"class","svelte-7n3dca"),u(F,"class","hf svelte-7n3dca"),u(F,"href","https://huggingface.co/spaces"),u(k,"class","svelte-7n3dca"),u(e,"class","info svelte-7n3dca")},m(p,H){S(p,e,H),r(e,i),r(i,s),r(s,a),r(e,f),r(e,n),r(n,v),r(n,g),r(n,o),r(n,_),r(e,d),r(e,k),r(k,M),r(k,D),r(k,F)},p(p,H){H&64&&q(a,p[6]),H&64&&l!==(l="https://huggingface.co/spaces/"+p[6])&&u(s,"href",l),H&8192&&h!==(h=p[13]("common.built_with")+"")&&q(v,h),H&8192&&V!==(V=p[13]("common.hosted_on")+"")&&q(M,V)},d(p){p&&E(e)}}}function se(t){let e,i,s,a,l,f,n,h=t[10].length>1&&N(t);const v=t[16].default,g=Q(v,t,t[15],null);let o=t[7]&&t[6]&&t[8]&&j(t);return{c(){e=b("div"),h&&h.c(),i=Z(),s=b("main"),g&&g.c(),a=Z(),l=b("div"),o&&o.c(),u(s,"class","fillable svelte-7n3dca"),m(s,"fill_width",t[3]),m(s,"app",!t[7]&&!t[4]),u(e,"class",f="gradio-container gradio-container-"+t[1]+" svelte-7n3dca"),u(e,"data-iframe-height",""),m(e,"fill_width",t[3]),m(e,"embed-container",t[7]),m(e,"with-info",t[8]),A(e,"min-height",t[9]?"initial":t[2]),A(e,"flex-grow",t[7]?"auto":"1")},m(_,d){S(_,e,d),h&&h.m(e,null),r(e,i),r(e,s),g&&g.m(s,null),r(s,a),r(s,l),o&&o.m(l,null),t[18](e),n=!0},p(_,[d]){_[10].length>1?h?h.p(_,d):(h=N(_),h.c(),h.m(e,i)):h&&(h.d(1),h=null),g&&g.p&&(!n||d&32768)&&te(g,v,_,_[15],n?X(v,_[15],d,null):W(_[15]),null),_[7]&&_[6]&&_[8]?o?o.p(_,d):(o=j(_),o.c(),o.m(l,null)):o&&(o.d(1),o=null),(!n||d&8)&&m(s,"fill_width",_[3]),(!n||d&144)&&m(s,"app",!_[7]&&!_[4]),(!n||d&2&&f!==(f="gradio-container gradio-container-"+_[1]+" svelte-7n3dca"))&&u(e,"class",f),(!n||d&10)&&m(e,"fill_width",_[3]),(!n||d&130)&&m(e,"embed-container",_[7]),(!n||d&258)&&m(e,"with-info",_[8]),d&516&&A(e,"min-height",_[9]?"initial":_[2]),d&128&&A(e,"flex-grow",_[7]?"auto":"1")},i(_){n||(x(g,_),n=!0)},o(_){ee(g,_),n=!1},d(_){_&&E(e),h&&h.d(),g&&g.d(_),o&&o.d(),t[18](null)}}}function ae(t,e,i){let s;P(t,I,c=>i(13,s=c));let{$$slots:a={},$$scope:l}=e,{wrapper:f}=e,{version:n}=e,{initial_height:h}=e,{fill_width:v}=e,{is_embed:g}=e,{is_lite:o}=e,{space:_}=e,{display:d}=e,{info:k}=e,{loaded:V}=e,{pages:M=[]}=e,{current_page:D=""}=e,{root:F}=e;const p=le("set_lite_page"),H=(c,B)=>{B.preventDefault(),p?.(c)};function z(c){O[c?"unshift":"push"](()=>{f=c,i(0,f)})}return t.$$set=c=>{"wrapper"in c&&i(0,f=c.wrapper),"version"in c&&i(1,n=c.version),"initial_height"in c&&i(2,h=c.initial_height),"fill_width"in c&&i(3,v=c.fill_width),"is_embed"in c&&i(4,g=c.is_embed),"is_lite"in c&&i(5,o=c.is_lite),"space"in c&&i(6,_=c.space),"display"in c&&i(7,d=c.display),"info"in c&&i(8,k=c.info),"loaded"in c&&i(9,V=c.loaded),"pages"in c&&i(10,M=c.pages),"current_page"in c&&i(11,D=c.current_page),"root"in c&&i(12,F=c.root),"$$scope"in c&&i(15,l=c.$$scope)},[f,n,h,v,g,o,_,d,k,V,M,D,F,s,p,l,a,H,z]}class _e extends K{constructor(e){super(),Y(this,e,ae,se,$,{wrapper:0,version:1,initial_height:2,fill_width:3,is_embed:4,is_lite:5,space:6,display:7,info:8,loaded:9,pages:10,current_page:11,root:12})}get wrapper(){return this.$$.ctx[0]}set wrapper(e){this.$$set({wrapper:e}),w()}get version(){return this.$$.ctx[1]}set version(e){this.$$set({version:e}),w()}get initial_height(){return this.$$.ctx[2]}set initial_height(e){this.$$set({initial_height:e}),w()}get fill_width(){return this.$$.ctx[3]}set fill_width(e){this.$$set({fill_width:e}),w()}get is_embed(){return this.$$.ctx[4]}set is_embed(e){this.$$set({is_embed:e}),w()}get is_lite(){return this.$$.ctx[5]}set is_lite(e){this.$$set({is_lite:e}),w()}get space(){return this.$$.ctx[6]}set space(e){this.$$set({space:e}),w()}get display(){return this.$$.ctx[7]}set display(e){this.$$set({display:e}),w()}get info(){return this.$$.ctx[8]}set info(e){this.$$set({info:e}),w()}get loaded(){return this.$$.ctx[9]}set loaded(e){this.$$set({loaded:e}),w()}get pages(){return this.$$.ctx[10]}set pages(e){this.$$set({pages:e}),w()}get current_page(){return this.$$.ctx[11]}set current_page(e){this.$$set({current_page:e}),w()}get root(){return this.$$.ctx[12]}set root(e){this.$$set({root:e}),w()}}export{_e as E};
|
|
//# sourceMappingURL=Embed-FUIL71FR.js.map
|