1import{B as Y,p as s,i as b,b as w,a as U,f as Z}from"./i18n-D-XRiFon.js";import{p as D,E as G,h as J,e as K,t as k,a as n,X as p,W as g,V as d,aj as F,w as W,a5 as N,a0 as L,a6 as q,S as X,Y as v,f as V,R as O,T as Q}from"./index-iG-u5S-q.js";import{s as $}from"./snippet-DI-UvdwT.js";function ee(r,e,c){J&&K();var x=new Y(r);D(()=>{var f=e()??null;x.ensure(f,f&&(u=>c(u,f)))},G)}var ae=g('<span class="svelte-3jwzs9"> </span>'),te=g("<button><!> <div><!> <!></div></button>");function xe(r,e){let c=s(e,"label",3,""),x=s(e,"show_label",3,!1),f=s(e,"pending",3,!1),u=s(e,"size",3,"small"),m=s(e,"padded",3,!0),y=s(e,"highlight",3,!1),z=s(e,"disabled",3,!1),A=s(e,"hasPopup",3,!1),h=s(e,"color",3,"var(--block-label-text-color)"),C=s(e,"transparent",3,!1),H=s(e,"background",3,"var(--block-background-fill)"),E=s(e,"border",3,"transparent"),M=N(()=>y()?"var(--color-accent)":h());var i=te();let B;i.__click=function(...l){e.onclick?.apply(this,l)};let P;var j=d(i);{var I=l=>{var _=ae(),T=d(_,!0);v(_),k(()=>L(T,c())),n(l,_)};b(j,l=>{x()&&l(I)})}var S=p(j,2);let R;var t=d(S);ee(t,()=>e.Icon,(l,_)=>{_(l,{})});var a=p(t,2);{var o=l=>{var _=q(),T=X(_);$(T,()=>e.children),n(l,_)};b(a,l=>{e.children&&l(o)})}v(S),v(i),k(()=>{B=w(i,1,"icon-button svelte-3jwzs9",null,B,{pending:f(),padded:m(),highlight:y(),transparent:C()}),i.disabled=z(),U(i,"aria-label",c()),U(i,"aria-haspopup",A()),U(i,"title",c()),P=Z(i,"",P,{"--border-color":E(),color:!z()&&W(M)?W(M):"var(--block-label-text-color)","--bg-color":z()?"auto":H()}),R=w(S,1,"svelte-3jwzs9",null,R,{"x-small":u()==="x-small",small:u()==="small",large:u()==="large",medium:u()==="medium"})}),n(r,i)}F(["click"]);var le=V('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 256 256"><path fill="currentColor" d="M200 32h-36.26a47.92 47.92 0 0 0-71.48 0H56a16 16 0 0 0-16 16v168a16 16 0 0 0 16 16h144a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16m-72 0a32 32 0 0 1 32 32H96a32 32 0 0 1 32-32m72 184H56V48h26.75A47.9 47.9 0 0 0 80 64v8a8 8 0 0 0 8 8h80a8 8 0 0 0 8-8v-8a47.9 47.9 0 0 0-2.75-16H200Z"></path></svg>');function oe(r){var e=le();n(r,e)}var re=V('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-mic"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line></svg>');function se(r){var e=re();n(r,e)}var ne=V('<svg xmlns="http://www.w3.org/2000/svg" width="90%" height="90%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-upload"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line></svg>');function ce(r){var e=ne();n(r,e)}var ie=V('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-video"><polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect></svg>');function de(r){var e=ie();n(r,e)}var ve=V('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2c-4.963 0-9 4.038-9 9c0 3.328 1.82 6.232 4.513 7.79l-2.067 1.378A1 1 0 0 0 6 22h12a1 1 0 0 0 .555-1.832l-2.067-1.378C19.18 17.232 21 14.328 21 11c0-4.962-4.037-9-9-9zm0 16c-3.859 0-7-3.141-7-7c0-3.86 3.141-7 7-7s7 3.14 7 7c0 3.859-3.141 7-7 7z"></path><path fill="currentColor" d="M12 6c-2.757 0-5 2.243-5 5s2.243 5 5 5s5-2.243 5-5s-2.243-5-5-5zm0 8c-1.654 0-3-1.346-3-3s1.346-3 3-3s3 1.346 3 3s-1.346 3-3 3z"></path></svg>');function ue(r){var e=ve();n(r,e)}var he=g('<button aria-label="Upload file"><!></button>'),_e=g('<button aria-label="Record audio"><!></button>'),be=g('<button aria-label="Capture from camera"><!></button>'),ge=g('<button aria-label="Record video from camera"><!></button>'),fe=g('<button aria-label="Paste from clipboard"><!></button>'),me=g('<span class="source-selection svelte-exvkcd" data-testid="source-select"><!> <!> <!> <!> <!></span>');function ye(r,e){O(e,!0);let c=s(e,"active_source",15),x=s(e,"handle_clear",3,()=>{}),f=s(e,"handle_select",3,()=>{}),u=N(()=>[...new Set(e.sources)]);async function m(h){x()(),c(h),f()(h)}var y=q(),z=X(y);{var A=h=>
1{var C=me(),H=d(C);{var E=t=>{var a=he();let o;a.__click=()=>m("upload");var l=d(a);ce(l),v(a),k(()=>o=w(a,1,"icon svelte-exvkcd",null,o,{selected:c()==="upload"||!c()})),n(t,a)};b(H,t=>{e.sources.includes("upload")&&t(E)})}var M=p(H,2);{var i=t=>{var a=_e();let o;a.__click=()=>m("microphone");var l=d(a);se(l),v(a),k(()=>o=w(a,1,"icon svelte-exvkcd",null,o,{selected:c()==="microphone"})),n(t,a)};b(M,t=>{e.sources.includes("microphone")&&t(i)})}var B=p(M,2);{var P=t=>{var a=be();let o;a.__click=()=>m("webcam");var l=d(a);ue(l),v(a),k(()=>o=w(a,1,"icon svelte-exvkcd",null,o,{selected:c()==="webcam"})),n(t,a)};b(B,t=>{e.sources.includes("webcam")&&t(P)})}var j=p(B,2);{var I=t=>{var a=ge();let o;a.__click=()=>m("webcam-video");var l=d(a);de(l),v(a),k(()=>o=w(a,1,"icon svelte-exvkcd",null,o,{selected:c()==="webcam-video"})),n(t,a)};b(j,t=>{e.sources.includes("webcam-video")&&t(I)})}var S=p(j,2);{var R=t=>{var a=fe();let o;a.__click=()=>m("clipboard");var l=d(a);oe(l),v(a),k(()=>o=w(a,1,"icon svelte-exvkcd",null,o,{selected:c()==="clipboard"})),n(t,a)};b(S,t=>{e.sources.includes("clipboard")&&t(R)})}v(C),n(h,C)};b(z,h=>{(W(u).length>1||e.sources.includes("clipboard"))&&h(A)})}n(r,y),Q()}F(["click"]);export{xe as I,se as M,ye as S,ce as U,de as V,ue as W,oe as a,ee as c};
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.