PageSourceSearch

https://patriciapedroso-nic2-risk-calculator.hf.space/assets/Index-CKRzLAbQ.js

js patriciapedroso-nic2-risk-calculator.hf.space collected 2026-10-03 17:13:49 UTC 8,556 bytes, 2 lines download raw bytes

vendor: 8,556 bytes, lines 1-2
1import{B as V}from"./Block-CJdXVpa7.js";import{B as W}from"./BlockTitle-CmuHiD1E.js";/* empty css                                                        */import"./MarkdownCode.svelte_svelte_type_style_lang-Bzr0c2X8.js";import"./index-Dm-5BDMo.js";import{S as X}from"./index-CHAeFRoQ.js";import"./StreamingBar.svelte_svelte_type_style_lang-DlRzv56K.js";import{default as Ye}from"./Example-BoMLuz1A.js";import"./Info-BqpNv3_2.js";import"./MarkdownCode-CaWYK73i.js";import"./prism-python-B1JFNvmz.js";import"./svelte/svelte.js";import"./IconButton-C_HS7fTi.js";import"./Clear-By3xiIwg.js";const{SvelteComponent:Y,append:R,attr:v,detach:Z,element:T,flush:B,init:y,init_binding_group:p,insert:$,listen:x,noop:F,safe_not_equal:ee,set_data:te,set_input_value:G,space:le,text:ie,toggle_class:k}=window.__gradio__svelte__internal,{createEventDispatcher:se}=window.__gradio__svelte__internal;function ne(s){let e,t,i=!1,a,u,c,m,h,o,f;return h=p(s[7][0]),{c(){e=T("label"),t=T("input"),a=le(),u=T("span"),c=ie(s[1]),t.disabled=s[3],v(t,"type","radio"),v(t,"name","radio-"+ ++ae),t.__value=s[2],G(t,t.__value),v(t,"aria-checked",s[5]),v(t,"class","svelte-1bx8sav"),v(u,"class","svelte-1bx8sav"),v(e,"data-testid",m=s[1]+"-radio-label"),v(e,"class","svelte-1bx8sav"),k(e,"disabled",s[3]),k(e,"selected",s[5]),k(e,"rtl",s[4]),h.p(t)},m(r,d){$(r,e,d),R(e,t),t.checked=t.__value===s[0],R(e,a),R(e,u),R(u,c),o||(f=x(t,"change",s[6]),o=!0)},p(r,[d]){d&8&&(t.disabled=r[3]),d&4&&(t.__value=r[2],G(t,t.__value),i=!0),d&32&&v(t,"aria-checked",r[5]),(i||d&1)&&(t.checked=t.__value===r[0]),d&2&&te(c,r[1]),d&2&&m!==(m=r[1]+"-radio-label")&&v(e,"data-testid",m),d&8&&k(e,"disabled",r[3]),d&32&&k(e,"selected",r[5]),d&16&&k(e,"rtl",r[4])},i:F,o:F,d(r){r&&Z(e),h.r(),o=!1,f()}}}let ae=0;function _e(s,e,t){let{display_value:i}=e,{internal_value:a}=e,{disabled:u=!1}=e,{selected:c=null}=e,{rtl:m=!1}=e;const h=se();let o=!1;async function f(l,n){t(5,o=l===n),o&&h("input",n)}const r=[[]];function d(){c=this.__value,t(0,c)}return s.$$set=l=>{"display_value"in l&&t(1,i=l.display_value),"internal_value"in l&&t(2,a=l.internal_value),"disabled"in l&&t(3,u=l.disabled),"selected"in l&&t(0,c=l.selected),"rtl"in l&&t(4,m=l.rtl)},s.$$.update=()=>{s.$$.dirty&5&&f(c,a)},[c,i,a,u,m,o,d,r]}class ue extends Y{constructor(e){super(),y(this,e,_e,ne,ee,{display_value:1,internal_value:2,disabled:3,selected:0,rtl:4})}get display_value(){return this.$$.ctx[1]}set display_value(e){this.$$set({display_value:e}),B()}get internal_value(){return this.$$.ctx[2]}set internal_value(e){this.$$set({internal_value:e}),B()}get disabled(){return this.$$.ctx[3]}set disabled(e){this.$$set({disabled:e}),B()}get selected(){return this.$$.ctx[0]}set selected(e){this.$$set({selected:e}),B()}get rtl(){return this.$$.ctx[4]}set rtl(e){this.$$set({rtl:e}),B()}}const re=ue,{SvelteComponent:ce,add_flush_callback:oe,assign:fe,attr:de,bind:he,binding_callbacks:me,check_outros:ge,create_component:j,destroy_component:z,detach:S,element:be,empty:ve,ensure_array_like:H,flush:g,get_spread_object:we,get_spread_update:ke,group_outros:Be,init:Se,insert:q,mount_component:D,outro_and_destroy_block:qe,safe_not_equal:Ce,set_data:Ee,space:J,text:Re,transition_in:C,transition_out:E,update_keyed_each:je}=window.__gradio__svelte__internal;function K(s,e,t){const i=s.slice();return i[21]=e[t][0],i[22]=e[t][1],i[24]=t,i}function ze(s){let e;return{c(){e=Re(s[2])},m(t,i){q(t,e,i)},p(t,i){i&4&&Ee(e,t[2])},d(t){t&&S(e)}}}function L(s,e){let t,i,a,u;function c(o){e[18](o)}function m(){return e[19](e[22],e[24])}let h={display_value:e[21],internal_value:e[22],disabled:e[14],rtl:e[13]};return e[0]!==void 0&&(h.selected=e[0]),i=new re({props:h}),me.push(()=>he(i,"selected",c)),i.$on("input",m),{key:s,first:null,c(){t=ve(),j(i.$$.fragment),this.first=t},m(o,f){q(o,t,f),D(i,o,f),u=!0},p(o,f){e=o;const r={};f&128&&(r.display_value=e[21]),f&128&&(r.internal_value=e[22]),f&16384&&(r.disabled=e[14]),f&8192&&(r.rtl=e[13]),!a&&f&1&&(a=!0,r.selected=e[0],oe(()=>a=!1)),i.$set(r)},i(o){u||(C(i.$$.fragment,o),u=!0)},o(o){E(i.$$.fragment,o),u=!1},d(o){o&&S(t),z(i,o)}}}function De(s){let e,t,i,a,u,c=[],m=new Map,h;const o=[{autoscroll:s[1].autoscroll},{i18n:s[1].i18n},s[12]];let f={};for(let l=0;l<o.length;l+=1)f=fe(f,o[l]);e=new X({props:f}),e.$on("clear_status",s[17]),i=new W({props:{show_label:s[8],info:s[3],$$slots:{default:[ze]},$$scope:{ctx:s}}});let r=H(s[7]);const d=l=>l[24];for(let l=0;l<r.length;l+=1){let n=K(s,r,l),b=d(n);m.set(b,c[l]=L(b,n))}return{c(){j(e.$$.fragment),t=J(),j(i.$$.fragment),a=J(),u=be("div");for(let l=0;l<c.length;l+=1)c[l].c();de(u,"class","wrap svelte-1kzox3m")},m(l,n){D(e,l,n),q(l,t,n),D(i,l,n),q(l,a,n),q(l,u,n);for(let b=0;b<c.length;b+=1)c[b]&&c[b].m(u,null);h=!0},p(l,n){const b=n&4098?ke(o,[n&2&&{autoscroll:l[1].autoscroll},n&2&&{i18n:l[1].i18n},n&4096&&we(l[12])]):{};e.$set(b);const w={};n&256&&(w.show_label=l[8]),n&8&&(w.info=l[3]),n&33554436&&(w.$$scope={dirty:n,ctx:l}),i.$set(w),n&24707&&(r=H(l[7]),Be(),c=je(c,n,d,1,l,r,m,u,qe,L,null,K),ge())},i(l){if(!h){C(e.$$.fragment,l),C(i.$$.fragment,l);for(let n=0;n<r.length;n+=1)C(c[n]);h=!0}},o(l){E(e.$$.fragment,l),E(i.$$.fragment,l);for(let n=0;n<c.length;n+=1)E(c[n]);h=!1},d(l){l&&(S(t),S(a),S(u)),z(e,l),z(i,l);for(let n=0;n<c.length;n+=1)c[n].d()}}}function Ie(s){let e,t;return e=new V({props:{visible:s[6],type:"fieldset",elem_id:s[4],elem_classes:s[5],container:s[9],scale:s[10],min_width:s[11],rtl:s[13],$$slots:{default:[De]},$$scope:{ctx:s}}}),{c(){j(e.$$.fragment)},m(i,a){D(e,i,a),t=!0},p(i,[a]){const u={};a&64&&(u.visible=i[6]),a&16&&(u.elem_id=i[4]),a&32&&(u.elem_classes=i[5]),a&512&&(u.container=i[9]),a&1024&&(u.scale=i[10]),a&2048&&(u.min_width=i[11]),a&8192&&(u.rtl=i[13]),a&33583503&&(u.$$scope={dirty:a,ctx:i}),e.$set(u)},i(i){t||(C(e.$$.fragment,i),t=!0)},o(i){E(e.$$.fragment,i),t=!1},d(i){z(e,i)}}}function Me(s,e,t){let i,{gradio:a}=e,{label:u=a.i18n("radio.radio")}=e,{info:c=void 0}=e,{elem_id:m=""}=e,{elem_classes:h=[]}=e,{visible:o=!0}=e,{value:f=null}=e,{choices:r=[]}=e,{show_label:d=!0}=e,{container:l=!1}=e,{scale:n=null}=e,{min_width:b=void 0}=e,{loading_status:w}=e,{interactive:I=!0}=e,{rtl:A=!1}=e;function N(){a.dispatch("change")}let M=f;const O=()=>a.dispatch("clear_status",w);function P(_){f=_,t(0,f)}const Q=(_,U)=>{a.dispatch("select",{value:_,index:U}),a.dispatch("input")};return s.$$set=_=>{"gradio"in _&&t(1,a=_.gradio),"label"in _&&t(2,u=_.label),"info"in _&&t(3,c=_.info),"elem_id"in _&&t(4,m=_.elem_id),"elem_classes"in _&&t(5,h=_.elem_classes),"visible"in _&&t(6,o=_.visible),"value"in _&&t(0,f=_.value),"choices"in _&&t(7,r=_.choices),"show_label"in _&&t(8,d=_.show_label),"container"in _&&t(9,l=_.container),"scale"in _&&t(10,n=_.scale),"min_width"in _&&t(11,b=_.min_width),"loading_status"in _&&t(12,w=_.loading_status),"interactive"in _&&t(15,I=_.interactive),"rtl"in _&&t(13,A=_.rtl)},s.$$.update=()=>{s.$$.dirty&65537&&f!==M&&(t(16,M=f),N()),s.$$.dirty&32768&&t(14,i=!I)},[f,a,u,c,m,h,o,r,d,l,n,b,w,A,i,I,M,O,P,Q]}class Ve extends ce{constructor(e){super(),Se(this,e,Me,Ie,Ce,{gradio:1,label:2,info:3,elem_id:4,elem_classes:5,visible:6,value:0,choices:7,show_label:8,container:9,scale:10,min_width:11,loading_status:12,interactive:15,rtl:13})}get gradio(){return this.$$.ctx[1]}set gradio(e){this.$$set({gradio:e}),g()}get label(){return this.$$.ctx[2]}set label(e){this.$$set({label:e}),g()}get info(){return this.$$.ctx[3]}set info(e){this.$$set({info:e}),g()}get elem_id(){return this.$$.ctx[4]}set elem_id(e){this.$$set({elem_id:e}),g()}get elem_classes(){return this.$$.ctx[5]}set elem_classes(e){this.$$set({elem_classes:e}),g()}get visible(){return this.$$.ctx[6]}set visible(e){this.$$set({visible:e}),g()}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),g()}get choices(){return this.$$.ctx[7]}set choices(e){this.$$set({choices:e}),g()}get show_label(){return this.$$.ctx[8]}set show_label(e){this.$$set({show_label:e}),g()}get container(){return this.$$.ctx[9]}set container(e){this.$$set({container:e}),g()}get scale(){return this.$$.ctx[10]}set scale(e){this.$$set({scale:e}),g()}get min_width(){return this.$$.ctx[11]}set min_width(e){this.$$set({min_width:e}),g()}get loading_status(){return this.$$.ctx[12]}set loading_status(e){this.$$set({loading_status:e}),g()}get interactive(){return this.$$.ctx[15]}set interactive(e){this.$$set({interactive:e}),g()}get rtl(){return this.$$.ctx[13]}set rtl(e){this.$$set({rtl:e}),g()}}export{Ye as BaseExample,re as BaseRadio,Ve as default};
2//# sourceMappingURL=Index-CKRzLAbQ.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.