PageSourceSearch

https://sammy112233-final-assignment-template.hf.space/assets/Index-Cgq-Inlb.js

js sammy112233-final-assignment-template.hf.space collected 2026-10-03 17:21:26 UTC 11,249 bytes, 2 lines download raw bytes

vendor: 11,249 bytes, lines 1-2
1import"./IconButtonWrapper.svelte_svelte_type_style_lang-Bcv5C2d8.js";import{c as q,a as X}from"./utils-BsGrhMNe.js";import{C as K}from"./Check-CEkiXcyC.js";import{C as L}from"./Copy-CxQ9EyK2.js";import{M as Y}from"./MarkdownCode-DZ0VP9Du.js";import{I as Z}from"./IconButton-BgomsPvt.js";import{I as y}from"./IconButtonWrapper-BPnBuW_R.js";import{S as x}from"./index-BvagISRY.js";import"./StreamingBar.svelte_svelte_type_style_lang-CDNxkBIr.js";import{B as $}from"./Block-kU6EIvgG.js";import"./MarkdownCode.svelte_svelte_type_style_lang-Cv4kShtX.js";import{default as Ve}from"./Example-CkG0GIQE.js";import"./index-Dx60bCjY.js";import"./svelte/svelte.js";import"./Clear-By3xiIwg.js";import"./prism-python-DcS7lV0O.js";const{SvelteComponent:p,action_destroyer:ee,append:te,attr:w,check_outros:ie,create_component:G,destroy_component:H,detach:se,element:ne,flush:b,group_outros:le,init:ae,insert:_e,mount_component:J,safe_not_equal:oe,set_style:N,space:he,toggle_class:O,transition_in:C,transition_out:S}=window.__gradio__svelte__internal,{createEventDispatcher:re}=window.__gradio__svelte__internal;function P(t){let e,s;return e=new y({props:{$$slots:{default:[me]},$$scope:{ctx:t}}}),{c(){G(e.$$.fragment)},m(i,a){J(e,i,a),s=!0},p(i,a){const o={};a&540672&&(o.$$scope={dirty:a,ctx:i}),e.$set(o)},i(i){s||(C(e.$$.fragment,i),s=!0)},o(i){S(e.$$.fragment,i),s=!1},d(i){H(e,i)}}}function me(t){let e,s;return e=new Z({props:{Icon:t[14]?K:L,label:t[14]?"Copied conversation":"Copy conversation"}}),e.$on("click",t[15]),{c(){G(e.$$.fragment)},m(i,a){J(e,i,a),s=!0},p(i,a){const o={};a&16384&&(o.Icon=i[14]?K:L),a&16384&&(o.label=i[14]?"Copied conversation":"Copy conversation"),e.$set(o)},i(i){s||(C(e.$$.fragment,i),s=!0)},o(i){S(e.$$.fragment,i),s=!1},d(i){H(e,i)}}}function ue(t){let e,s,i,a,o,c,f,l,h,u=t[10]&&P(t);return i=new Y({props:{message:t[2],latex_delimiters:t[7],sanitize_html:t[5],line_breaks:t[6],chatbot:!1,header_links:t[8],root:t[11],theme_mode:t[13]}}),{c(){e=ne("div"),u&&u.c(),s=he(),G(i.$$.fragment),w(e,"class",a="prose "+(t[0]?.join(" ")||"")+" svelte-lag733"),w(e,"data-testid","markdown"),w(e,"dir",o=t[4]?"rtl":"ltr"),w(e,"style",c=t[9]?`max-height: ${q(t[9])}; overflow-y: auto;`:""),O(e,"hide",!t[1]),N(e,"min-height",t[3]&&t[12]?.status!=="pending"?q(t[3]):void 0)},m(n,m){_e(n,e,m),u&&u.m(e,null),te(e,s),J(i,e,null),f=!0,l||(h=ee(X.call(null,e)),l=!0)},p(n,[m]){n[10]?u?(u.p(n,m),m&1024&&C(u,1)):(u=P(n),u.c(),C(u,1),u.m(e,s)):u&&(le(),S(u,1,1,()=>{u=null}),ie());const d={};m&4&&(d.message=n[2]),m&128&&(d.latex_delimiters=n[7]),m&32&&(d.sanitize_html=n[5]),m&64&&(d.line_breaks=n[6]),m&256&&(d.header_links=n[8]),m&2048&&(d.root=n[11]),m&8192&&(d.theme_mode=n[13]),i.$set(d),(!f||m&1&&a!==(a="prose "+(n[0]?.join(" ")||"")+" svelte-lag733"))&&w(e,"class",a),(!f||m&16&&o!==(o=n[4]?"rtl":"ltr"))&&w(e,"dir",o),(!f||m&512&&c!==(c=n[9]?`max-height: ${q(n[9])}; overflow-y: auto;`:""))&&w(e,"style",c),(!f||m&3)&&O(e,"hide",!n[1]);const k=m&512;(m&4616||k)&&N(e,"min-height",n[3]&&n[12]?.status!=="pending"?q(n[3]):void 0)},i(n){f||(C(u),C(i.$$.fragment,n),f=!0)},o(n){S(u),S(i.$$.fragment,n),f=!1},d(n){n&&se(e),u&&u.d(),H(i),l=!1,h()}}}function fe(t,e,s){let{elem_classes:i=[]}=e,{visible:a=!0}=e,{value:o}=e,{min_height:c=void 0}=e,{rtl:f=!1}=e,{sanitize_html:l=!0}=e,{line_breaks:h=!1}=e,{latex_delimiters:u}=e,{header_links:n=!1}=e,{height:m=void 0}=e,{show_copy_button:d=!1}=e,{root:k}=e,{loading_status:I=void 0}=e,{theme_mode:B}=e,v=!1,z;const M=re();async function j(){"clipboard"in navigator&&(await navigator.clipboard.writeText(o),M("copy",{value:o}),T())}function T(){s(14,v=!0),z&&clearTimeout(z),z=setTimeout(()=>{s(14,v=!1)},1e3)}return t.$$set=r=>{"elem_classes"in r&&s(0,i=r.elem_classes),"visible"in r&&s(1,a=r.visible),"value"in r&&s(2,o=r.value),"min_height"in r&&s(3,c=r.min_height),"rtl"in r&&s(4,f=r.rtl),"sanitize_html"in r&&s(5,l=r.sanitize_html),"line_breaks"in r&&s(6,h=r.line_breaks),"latex_delimiters"in r&&s(7,u=r.latex_delimiters),"header_links"in r&&s(8,n=r.header_links),"height"in r&&s(9,m=r.height),"show_copy_button"in r&&s(10,d=r.show_copy_button),"root"in r&&s(11,k=r.root),"loading_status"in r&&s(12,I=r.loading_status),"theme_mode"in r&&s(13,B=r.theme_mode)},t.$$.update=()=>{t.$$.dirty&4&&M("change")},[i,a,o,c,f,l,h,u,n,m,d,k,I,B,v,j]}class ge extends p{constructor(e){super(),ae(this,e,fe,ue,oe,{elem_classes:0,visible:1,value:2,min_height:3,rtl:4,sanitize_html:5,line_breaks:6,latex_delimiters:7,header_links:8,height:9,show_copy_button:10,root:11,loading_status:12,theme_mode:13})}get elem_classes(){return this.$$.ctx[0]}set elem_classes(e){this.$$set({elem_classes:e}),b()}get visible(){return this.$$.ctx[1]}set visible(e){this.$$set({visible:e}),b()}get value(){return this.$$.ctx[2]}set value(e){this.$$set({value:e}),b()}get min_height(){return this.$$.ctx[3]}set min_height(e){this.$$set({min_height:e}),b()}get rtl(){return this.$$.ctx[4]}set rtl(e){this.$$set({rtl:e}),b()}get sanitize_html(){return this.$$.ctx[5]}set sanitize_html(e){this.$$set({sanitize_html:e}),b()}get line_breaks(){return this.$$.ctx[6]}set line_breaks(e){this.$$set({line_breaks:e}),b()}get latex_delimiters(){return this.$$.ctx[7]}set latex_delimiters(e){this.$$set({latex_delimiters:e}),b()}get header_links(){return this.$$.ctx[8]}set header_links(e){this.$$set({header_links:e}),b()}get height(){return this.$$.ctx[9]}set height(e){this.$$set({height:e}),b()}get show_copy_button(){return this.$$.ctx[10]}set show_copy_button(e){this.$$set({show_copy_button:e}),b()}get root(){return this.$$.ctx[11]}set root(e){this.$$set({root:e}),b()}get loading_status(){return this.$$.ctx[12]}set loading_status(e){this.$$set({loading_status:e}),b()}get theme_mode(){return this.$$.ctx[13]}set theme_mode(e){this.$$set({theme_mode:e}),b()}}const ce=ge,{SvelteComponent:de,assign:be,attr:ke,create_component:E,destroy_component:D,detach:Q,element:we,flush:g,get_spread_object:ve,get_spread_update:ze,init:Ce,insert:R,mount_component:W,safe_not_equal:Ie,space:Be,toggle_class:U,transition_in:A,transition_out:F}=window.__gradio__svelte__internal;function Me(t){let e,s,i,a,o;const c=[{autoscroll:t[8].autoscroll},{i18n:t[8].i18n},t[4],{variant:"center"}];let f={};for(let l=0;l<c.length;l+=1)f=be(f,c[l]);return e=new x({props:f}),e.$on("clear_status",t[18]),a=new ce({props:{value:t[3],elem_classes:t[1],visible:t[2],rtl:t[5],latex_delimiters:t[9],sanitize_html:t[6],line_breaks:t[7],header_links:t[10],show_copy_button:t[14],root:t[8].root,loading_status:t[4],theme_mode:t[16]}}),a.$on("change",t[19]),a.$on("copy",t[20]),{c(){E(e.$$.fragment),s=Be(),i=we("div"),E(a.$$.fragment),ke(i,"class","svelte-1ed2p3z"),U(i,"pending",t[4]?.status==="pending")},m(l,h){W(e,l,h),R(l,s,h),R(l,i,h),W(a,i,null),o=!0},p(l,h){const u=h&272?ze(c,[h&256&&{autoscroll:l[8].autoscroll},h&256&&{i18n:l[8].i18n},h&16&&ve(l[4]),c[3]]):{};e.$set(u);const n={};h&8&&(n.value=l[3]),h&2&&(n.elem_classes=l[1]),h&4&&(n.visible=l[2]),h&32&&(n.rtl=l[5]),h&512&&(n.latex_delimiters=l[9]),h&64&&(n.sanitize_html=l[6]),h&128&&(n.line_breaks=l[7]),h&1024&&(n.header_links=l[10]),h&16384&&(n.show_copy_button=l[14]),h&256&&(n.root=l[8].root),h&16&&(n.loading_status=l[4]),h&65536&&(n.theme_mode=l[16]),a.$set(n),(!o||h&16)&&U(i,"pending",l[4]?.status==="pending")},i(l){o||(A(e.$$.fragment,l),A(a.$$.fragment,l),o=!0)},o(l){F(e.$$.fragment,l),F(a.$$.fragment,l),o=!1},d(l){l&&(Q(s),Q(i)),D(e,l),D(a)}}}function Se(t){let e,s;return e=new $({props:{visible:t[2],elem_id:t[0],elem_classes:t[1],container:t[15],allow_overflow:!0,overflow_behavior:"auto",height:t[11],min_height:t[12],max_height:t[13],$$slots:{default:[Me]},$$scope:{ctx:t}}}),{c(){E(e.$$.fragment)},m(i,a){W(e,i,a),s=!0},p(i,[a]){const o={};a&4&&(o.visible=i[2]),a&1&&(o.elem_id=i[0]),a&2&&(o.elem_classes=i[1]),a&32768&&(o.container=i[15]),a&2048&&(o.height=i[11]),a&4096&&(o.min_height=i[12]),a&8192&&(o.max_height=i[13]),a&2181118&&(o.$$scope={dirty:a,ctx:i}),e.$set(o)},i(i){s||(A(e.$$.fragment,i),s=!0)},o(i){F(e.$$.fragment,i),s=!1},d(i){D(e,i)}}}function je(t,e,s){let{label:i}=e,{elem_id:a=""}=e,{elem_classes:o=[]}=e,{visible:c=!0}=e,{value:f=""}=e,{loading_status:l}=e,{rtl:h=!1}=e,{sanitize_html:u=!0}=e,{line_breaks:n=!1}=e,{gradio:m}=e,{latex_delimiters:d}=e,{header_links:k=!1}=e,{height:I}=e,{min_height:B}=e,{max_height:v}=e,{show_copy_button:z=!1}=e,{container:M=!1}=e,{theme_mode:j}=e;const T=()=>m.dispatch("clear_status",l),r=()=>m.dispatch("change"),V=_=>m.dispatch("copy",_.detail);return t.$$set=_=>{"label"in _&&s(17,i=_.label),"elem_id"in _&&s(0,a=_.elem_id),"elem_classes"in _&&s(1,o=_.elem_classes),"visible"in _&&s(2,c=_.visible),"value"in _&&s(3,f=_.value),"loading_status"in _&&s(4,l=_.loading_status),"rtl"in _&&s(5,h=_.rtl),"sanitize_html"in _&&s(6,u=_.sanitize_html),"line_breaks"in _&&s(7,n=_.line_breaks),"gradio"in _&&s(8,m=_.gradio),"latex_delimiters"in _&&s(9,d=_.latex_delimiters),"header_links"in _&&s(10,k=_.header_links),"height"in _&&s(11,I=_.height),"min_height"in _&&s(12,B=_.min_height),"max_height"in _&&s(13,v=_.max_height),"show_copy_button"in _&&s(14,z=_.show_copy_button),"container"in _&&s(15,M=_.container),"theme_mode"in _&&s(16,j=_.theme_mode)},t.$$.update=()=>{t.$$.dirty&131328&&m.dispatch("change")},[a,o,c,f,l,h,u,n,m,d,k,I,B,v,z,M,j,i,T,r,V]}class Qe extends de{constructor(e){super(),Ce(this,e,je,Se,Ie,{label:17,elem_id:0,elem_classes:1,visible:2,value:3,loading_status:4,rtl:5,sanitize_html:6,line_breaks:7,gradio:8,latex_delimiters:9,header_links:10,height:11,min_height:12,max_height:13,show_copy_button:14,container:15,theme_mode:16})}get label(){return this.$$.ctx[17]}set label(e){this.$$set({label:e}),g()}get elem_id(){return this.$$.ctx[0]}set elem_id(e){this.$$set({elem_id:e}),g()}get elem_classes(){return this.$$.ctx[1]}set elem_classes(e){this.$$set({elem_classes:e}),g()}get visible(){return this.$$.ctx[2]}set visible(e){this.$$set({visible:e}),g()}get value(){return this.$$.ctx[3]}set value(e){this.$$set({value:e}),g()}get loading_status(){return this.$$.ctx[4]}set loading_status(e){this.$$set({loading_status:e}),g()}get rtl(){return this.$$.ctx[5]}set rtl(e){this.$$set({rtl:e}),g()}get sanitize_html(){return this.$$.ctx[6]}set sanitize_html(e){this.$$set({sanitize_html:e}),g()}get line_breaks(){return this.$$.ctx[7]}set line_breaks(e){this.$$set({line_breaks:e}),g()}get gradio(){return this.$$.ctx[8]}set gradio(e){this.$$set({gradio:e}),g()}get latex_delimiters(){return this.$$.ctx[9]}set latex_delimiters(e){this.$$set({latex_delimiters:e}),g()}get header_links(){return this.$$.ctx[10]}set header_links(e){this.$$set({header_links:e}),g()}get height(){return this.$$.ctx[11]}set height(e){this.$$set({height:e}),g()}get min_height(){return this.$$.ctx[12]}set min_height(e){this.$$set({min_height:e}),g()}get max_height(){return this.$$.ctx[13]}set max_height(e){this.$$set({max_height:e}),g()}get show_copy_button(){return this.$$.ctx[14]}set show_copy_button(e){this.$$set({show_copy_button:e}),g()}get container(){return this.$$.ctx[15]}set container(e){this.$$set({container:e}),g()}get theme_mode(){return this.$$.ctx[16]}set theme_mode(e){this.$$set({theme_mode:e}),g()}}export{Ve as BaseExample,ce as BaseMarkdown,Qe as default};
2//# sourceMappingURL=Index-Cgq-Inlb.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.