1import{S as W,i as Y,s as G,B as H,C as f,g as B,E as v,F as M,q as N,G as E,H as O,I as ee,e as V,L as ne,aa as we,M as ce,m as T,J as U,a2 as _e,ak as ke,l as Q,t as p,o as $,p as w,K as ie,n as q,a0 as ve,ar as ye,as as Be,y as C,b as ge,f as le,r as ae,a as Ne,k as Ve,V as Te,X as qe,Y as je,Z as Ce,a8 as Me,T as Ue,x as Se,$ as Ee,h as Pe,j as Ie}from"./index-ff81f4ae.js";import{n as de}from"./ModifyUpload.svelte_svelte_type_style_lang-d2acacf0.js";import{B as Re}from"./Button-9b3c2f8e.js";/* empty css */import{U as ze}from"./Upload-b40a77fa.js";import{M as De,I as Fe}from"./ModifyUpload-3d44fe47.js";import{B as he}from"./BlockLabel-731be65f.js";import{U as Xe,W as Ae}from"./StaticImage.svelte_svelte_type_style_lang-5d1657f3.js";import{E as Oe}from"./Empty-0fb5ebb1.js";import{D as He}from"./Download-d65dcb42.js";import{U as Je}from"./UploadText-f7c33d5d.js";import"./Blocks-2003a4c7.js";function Le(n){let e,t;return{c(){e=H("svg"),t=H("path"),f(t,"d","M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"width","100%"),f(e,"height","100%"),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","1.5"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round")},m(l,r){B(l,e,r),v(e,t)},p:M,i:M,o:M,d(l){l&&N(e)}}}class Ge extends W{constructor(e){super(),Y(this,e,null,Le,G,{})}}function Ke(n){let e,t,l;return{c(){e=H("svg"),t=H("rect"),l=H("rect"),f(t,"x","6"),f(t,"y","4"),f(t,"width","4"),f(t,"height","16"),f(l,"x","14"),f(l,"y","4"),f(l,"width","4"),f(l,"height","16"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"width","100%"),f(e,"height","100%"),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","1.5"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round")},m(r,i){B(r,e,i),v(e,t),v(e,l)},p:M,i:M,o:M,d(r){r&&N(e)}}}class We extends W{constructor(e){super(),Y(this,e,null,Ke,G,{})}}function Ye(n){let e,t;return{c(){e=H("svg"),t=H("polygon"),f(t,"points","5 3 19 12 5 21 5 3"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"width","100%"),f(e,"height","100%"),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","1.5"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round")},m(l,r){B(l,e,r),v(e,t)},p:M,i:M,o:M,d(l){l&&N(e)}}}class Ze extends W{constructor(e){super(),Y(this,e,null,Ye,G,{})}}function Qe(n){let e,t,l;return{c(){e=H("svg"),t=H("polygon"),l=H("rect"),f(t,"points","23 7 16 12 23 17 23 7"),f(l,"x","1"),f(l,"y","5"),f(l,"width","15"),f(l,"height","14"),f(l,"rx","2"),f(l,"ry","2"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"width","100%"),f(e,"height","100%"),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","1.5"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round"),f(e,"class","feather feather-video")},m(r,i){B(r,e,i),v(e,t),v(e,l)},p:M,i:M,o:M,d(r){r&&N(e)}}}class se extends W{constructor(e){super(),Y(this,e,null,Qe,G,{})}}const me=n=>{let e=["B","KB","MB","GB","PB"],t=0;for(;n>1024;)n/=1024,t++;let l=e[t];return n.toFixed(1)+" "+l},$e=()=>!0;const{isNaN:xe}=ye;function el(n){let e,t;return e=new We({}),{c(){V(e.$$.fragment)},m(l,r){T(e,l,r),t=!0},i(l){t||(w(e.$$.fragment,l),t=!0)},o(l){p(e.$$.fragment,l),t=!1},d(l){q(e,l)}}}function ll(n){let e,t;return e=new Ze({}),{c(){V(e.$$.fragment)},m(l,r){T(e,l,r),t=!0},i(l){t||(w(e.$$.fragment,l),t=!0)},o(l){p(e.$$.fragment,l),t=!1},d(l){q(e,l)}}}function tl(n){let e,t;return e=new Xe({}),{c(){V(e.$$.fragment)},m(l,r){T(e,l,r),t=!0},i(l){t||(w(e.$$.fragment,l),t=!0)},o(l){p(e.$$.fragment,l),t=!1},d(l){q(e,l)}}}function nl(n){let e,t,l,r,i,s=!1,m,a=!0,c,o,u,_,d,y,j,S,I=re(n[3])+"",R,X,z=re(n[4])+"",A,g,h,D,J,L,K,P,x,te;function b(){cancelAnimationFrame(m),t.paused||(m=Be(b),s=!0),n[14].call(t)}const ue=[tl,ll,el],Z=[];function fe(k,F){return k[3]===k[4]?0:k[5]?1:2}return d=fe(n),y=Z[d]=ue[d](n),K=new Ge({}
1),{c(){e=E("div"),t=E("video"),l=E("track"),c=O(),o=E("div"),u=E("div"),_=E("span"),y.c(),j=O(),S=E("span"),R=ee(I),X=ee(" / "),A=ee(z),g=O(),h=E("progress"),J=O(),L=E("div"),V(K.$$.fragment),f(l,"kind","captions"),ne(l.src,r=n[1])||f(l,"src",r),l.default=!0,ne(t.src,i=n[0])||f(t,"src",i),f(t,"preload","auto"),f(t,"class","svelte-1voqrms"),n[4]===void 0&&we(()=>n[15].call(t)),ce(t,"mirror",n[2]),f(_,"class","icon svelte-1voqrms"),f(S,"class","time svelte-1voqrms"),h.value=D=n[3]/n[4]||0,f(h,"class","svelte-1voqrms"),f(L,"class","icon svelte-1voqrms"),f(u,"class","inner svelte-1voqrms"),f(o,"class","controls svelte-1voqrms"),f(e,"class","wrap svelte-1voqrms")},m(k,F){B(k,e,F),v(e,t),v(t,l),n[17](t),v(e,c),v(e,o),v(o,u),v(u,_),Z[d].m(_,null),v(u,j),v(u,S),v(S,R),v(S,X),v(S,A),v(u,g),v(u,h),v(u,J),v(u,L),T(K,L,null),P=!0,x||(te=[U(t,"mousemove",n[7]),U(t,"click",n[9]),U(t,"play",n[11]),U(t,"pause",n[12]),U(t,"ended",n[13]),U(t,"timeupdate",b),U(t,"durationchange",n[15]),U(t,"play",n[16]),U(t,"pause",n[16]),U(_,"click",n[9]),U(h,"mousemove",n[8]),U(h,"touchmove",_e(n[8])),U(h,"click",ke(_e(n[10]))),U(L,"click",n[18])],x=!0)},p(k,[F]){(!P||F&2&&!ne(l.src,r=k[1]))&&f(l,"src",r),(!P||F&1&&!ne(t.src,i=k[0]))&&f(t,"src",i),!s&&F&8&&!xe(k[3])&&(t.currentTime=k[3]),s=!1,F&32&&a!==(a=k[5])&&t[a?"pause":"play"](),(!P||F&4)&&ce(t,"mirror",k[2]);let oe=d;d=fe(k),d!==oe&&(Q(),p(Z[oe],1,1,()=>{Z[oe]=null}),$(),y=Z[d],y||(y=Z[d]=ue[d](k),y.c()),w(y,1),y.m(_,null)),(!P||F&8)&&I!==(I=re(k[3])+"")&&ie(R,I),(!P||F&16)&&z!==(z=re(k[4])+"")&&ie(A,z),(!P||F&24&&D!==(D=k[3]/k[4]||0))&&(h.value=D)},i(k){P||(w(y),w(K.$$.fragment,k),P=!0)},o(k){p(y),p(K.$$.fragment,k),P=!1},d(k){k&&N(e),n[17](null),Z[d].d(),q(K),x=!1,ve(te)}}}function re(n){if(isNaN(n)||!isFinite(n))return"...";const e=Math.floor(n/60);let t=Math.floor(n%60);return n<10&&(t=`0${t}`),`${e}:${t}`}function rl(n,e,t){let{src:l}=e,{subtitle:r=null}=e,{mirror:i}=e,s=0,m,a=!0,c,o;function u(){clearTimeout(o),o=setTimeout(()=>!1,500)}function _(h){if(!m)return;if(h.type==="click"){y(h);return}if(h.type!=="touchmove"&&!(h.buttons&1))return;const D=h.type==="touchmove"?h.touches[0].clientX:h.clientX,{left:J,right:L}=h.currentTarget.getBoundingClientRect();t(3,s=m*(D-J)/(L-J))}async function d(){document.fullscreenElement!=c&&(c.currentTime>0&&!c.paused&&!c.ended&&c.readyState>c.HAVE_CURRENT_DATA?c.pause():await c.play())}function y(h){const{left:D,right:J}=h.currentTarget.getBoundingClientRect();t(3,s=m*(h.clientX-D)/(J-D))}function j(h){C.call(this,n,h)}function S(h){C.call(this,n,h)}function I(h){C.call(this,n,h)}function R(){s=this.currentTime,t(3,s)}function X(){m=this.duration,t(4,m)}function z(){a=this.paused,t(5,a)}function A(h){ge[h?"unshift":"push"](()=>{c=h,t(6,c)})}const g=()=>c.requestFullscreen();return n.$$set=h=>{"src"in h&&t(0,l=h.src),"subtitle"in h&&t(1,r=h.subtitle),"mirror"in h&&t(2,i=h.mirror)},[l,r,i,s,m,a,c,u,_,d,y,j,S,I,R,X,z,A,g]}class pe extends W{constructor(e){super(),Y(this,e,rl,nl,G,{src:0,subtitle:1,mirror:2})}}function il(n){let e,t,l,r,i,s,m;e=new De({}),e.$on("clear",n[10]);const a=[sl,al],c=[];function o(u,_){return l==null&&(l=!!$e()),l?0:u[0].size?1:-1}return~(r=o(n))&&(i=c[r]=a[r](n)),{c(){V(e.$$.fragment),t=O(),i&&i.c(),s=le()},m(u,_){T(e,u,_),B(u,t,_),~r&&c[r].m(u,_),B(u,s,_),m=!0},p(u,_){let d=r;r=o(u),r===d?~r&&c[r].p(u,_):(i&&(Q(),p(c[d],1,1,()=>{c[d]=null}),$()),~r?(i=c[r],i?i.p(u,_):(i=c[r]=a[r](u),i.c()),w(i,1),i.m(s.parentNode,s)):i=null)},i(u){m||(w(e.$$.fragment,u),w(i),m=!0)},o(u){p(e.$$.fragment,u),p(i),m=!1},d(u){q(e,u),u&&N(t),~r&&c[r].d(u),u&&N(s)}}}function ol(n){let e,t,l,r;const i=[fl,ul],s=[];function m(a,c){return a[2]==="upload"?0:a[2]==="webcam"?1:-1}return~(e=m(n))&&(t=s[e]=i[e](n)),{c(){t&&t.c(),l=le()},m(a,c){~e&&s[e].m(a,c),B(a,l,c),r=!0},p(a,c){let o=e;e=m(a),e===o?~e&&s[e].p(a,c):(t&&(Q(),p(s[o],1,1,()=>{s[o]=null}),$()),~e?(t=s[e],t?t.p(a,c):(t=s[e]=i[e](a),t.c()),w(t,1),t.m(l.parentNode,l)):t=null)},i(a){r||(w(t),r=!0)},o(a){p(t),r=!1},d(a){~e&&s[e].d(a),a&&N(l)}}}function al(n){let e,t=n[0].name+"",l,r,i,s=me(n[0].size)+"",m;return{c(){e=E("div"),l=ee(t),r=O(),i=E("div"),m=ee(s),f(e,"class","file-name svelte-a6ruol"),f(i,"class","file-size svelte-a6ruol")},m(a,c){B(a,e,c),v(e,l),B(a,r,c),B(a,i,c),v(i,m)},p(a,c){c&1&&t!==(t=a[0].name+"")&&ie(l,t),c&1&&s!==(s=me(a[0].size)+"")&&ie(m,s)},i:M,o:M,d(a){a&&N(e),a&&N(r),a&&N(i)}}}function sl(n){let e,t;return e=new pe({props:{src:n[0].data,subtitle:n[1]?.data,mirror:n[5]&&n[2]==="webcam"}}),e.$on("play",n[15]),e.$on("pause",n[16]),e.$on("ended",n[17]),{c(){V(e.$$.fragment)},m(l,r){T(e,l,r),t=!0},p(l,r){const i={};r&1&&(i.src=l[0].data),r&2&&(i.subtitle=l[1]?.data),r&36&&(i.mirror=l[5]&&l[2]==="webcam"),e.$set(i)},i(l){t||(w(e.$$.fragment,l),t=!0)},o(l){p(e.$$.fragment,l),t=!1},d(l){q(e,l)}}}function ul(n){let e,t;return e=new Ae({props:{mirror_webcam:n[5],include_audio:n[6],mode:"video"}}
1),e.$on("error",n[13]),e.$on("capture",n[14]),{c(){V(e.$$.fragment)},m(l,r){T(e,l,r),t=!0},p(l,r){const i={};r&32&&(i.mirror_webcam=l[5]),r&64&&(i.include_audio=l[6]),e.$set(i)},i(l){t||(w(e.$$.fragment,l),t=!0)},o(l){p(e.$$.fragment,l),t=!1},d(l){q(e,l)}}}function fl(n){let e,t,l;function r(s){n[12](s)}let i={filetype:"video/x-m4v,video/*",$$slots:{default:[cl]},$$scope:{ctx:n}};return n[7]!==void 0&&(i.dragging=n[7]),e=new ze({props:i}),ge.push(()=>Ne(e,"dragging",r)),e.$on("load",n[9]),{c(){V(e.$$.fragment)},m(s,m){T(e,s,m),l=!0},p(s,m){const a={};m&262144&&(a.$$scope={dirty:m,ctx:s}),!t&&m&128&&(t=!0,a.dragging=s[7],Ve(()=>t=!1)),e.$set(a)},i(s){l||(w(e.$$.fragment,s),l=!0)},o(s){p(e.$$.fragment,s),l=!1},d(s){q(e,s)}}}function cl(n){let e;const t=n[11].default,l=Te(t,n,n[18],null);return{c(){l&&l.c()},m(r,i){l&&l.m(r,i),e=!0},p(r,i){l&&l.p&&(!e||i&262144)&&qe(l,t,r,r[18],e?Ce(t,r[18],i,null):je(r[18]),null)},i(r){e||(w(l,r),e=!0)},o(r){p(l,r),e=!1},d(r){l&&l.d(r)}}}function _l(n){let e,t,l,r,i,s;e=new he({props:{show_label:n[4],Icon:se,label:n[3]||"Video"}});const m=[ol,il],a=[];function c(o,u){return o[0]===null?0:1}return l=c(n),r=a[l]=m[l](n),{c(){V(e.$$.fragment),t=O(),r.c(),i=le()},m(o,u){T(e,o,u),B(o,t,u),a[l].m(o,u),B(o,i,u),s=!0},p(o,[u]){const _={};u&16&&(_.show_label=o[4]),u&8&&(_.label=o[3]||"Video"),e.$set(_);let d=l;l=c(o),l===d?a[l].p(o,u):(Q(),p(a[d],1,1,()=>{a[d]=null}),$(),r=a[l],r?r.p(o,u):(r=a[l]=m[l](o),r.c()),w(r,1),r.m(i.parentNode,i))},i(o){s||(w(e.$$.fragment,o),w(r),s=!0)},o(o){p(e.$$.fragment,o),p(r),s=!1},d(o){q(e,o),o&&N(t),a[l].d(o),o&&N(i)}}}function dl(n,e,t){let{$$slots:l={},$$scope:r}=e,{value:i=null}=e,{subtitle:s=null}=e,{source:m}=e,{label:a=void 0}=e,{show_label:c=!0}=e,{mirror_webcam:o=!1}=e,{include_audio:u}=e;const _=ae();function d({detail:g}){_("change",g),_("upload",g),t(0,i=g)}function y({detail:g}){t(0,i=null),_("change",g),_("clear")}let j=!1;function S(g){j=g,t(7,j)}function I(g){C.call(this,n,g)}const R=({detail:g})=>_("change",g);function X(g){C.call(this,n,g)}function z(g){C.call(this,n,g)}function A(g){C.call(this,n,g)}return n.$$set=g=>{"value"in g&&t(0,i=g.value),"subtitle"in g&&t(1,s=g.subtitle),"source"in g&&t(2,m=g.source),"label"in g&&t(3,a=g.label),"show_label"in g&&t(4,c=g.show_label),"mirror_webcam"in g&&t(5,o=g.mirror_webcam),"include_audio"in g&&t(6,u=g.include_audio),"$$scope"in g&&t(18,r=g.$$scope)},n.$$.update=()=>{n.$$.dirty&128&&_("drag",j)},[i,s,m,a,c,o,u,j,_,d,y,l,S,I,R,X,z,A,r]}let ml=class extends W{constructor(e){super(),Y(this,e,dl,_l,G,{value:0,subtitle:1,source:2,label:3,show_label:4,mirror_webcam:5,include_audio:6})}};function bl(n){let e=n[0].data,t,l,r,i,s,m,a,c=be(n);return i=new Fe({props:{Icon:He,label:"Download"}}),{c(){c.c(),t=O(),l=E("div"),r=E("a"),V(i.$$.fragment),f(r,"href",s=n[0].data),f(r,"target",window.__is_colab__?"_blank":null),f(r,"download",m=n[0].orig_name||n[0].name),f(l,"class","download svelte-90pr3x"),f(l,"data-testid","download-div")},m(o,u){c.m(o,u),B(o,t,u),B(o,l,u),v(l,r),T(i,r,null),a=!0},p(o,u){u&1&&G(e,e=o[0].data)?(Q(),p(c,1,1,M),$(),c=be(o),c.c(),w(c,1),c.m(t.parentNode,t)):c.p(o,u),(!a||u&1&&s!==(s=o[0].data))&&f(r,"href",s),(!a||u&1&&m!==(m=o[0].orig_name||o[0].name))&&f(r,"download",m)},i(o){a||(w(c),w(i.$$.fragment,o),a=!0)},o(o){p(c),p(i.$$.fragment,o),a=!1},d(o){c.d(o),o&&N(t),o&&N(l),q(i)}}}function gl(n){let e,t;return e=new Oe({props:{size:"large",unpadded_box:!0,$$slots:{default:[hl]},$$scope:{ctx:n}}}),{c(){V(e.$$.fragment)},m(l,r){T(e,l,r),t=!0},p(l,r){const i={};r&1024&&(i.$$scope={dirty:r,ctx:l}),e.$set(i)},i(l){t||(w(e.$$.fragment,l),t=!0)},o(l){p(e.$$.fragment,l),t=!1},d(l){q(e,l)}}}function be(n){let e,t;return e=new pe({props:{src:n[0].data,subtitle:n[1]?.data,mirror:!1}}),e.$on("play",n[4]),e.$on("pause",n[5]),e.$on("ended",n[6]),{c(){V(e.$$.fragment)},m(l,r){T(e,l,r),t=!0},p(l,r){const i={};r&1&&(i.src=l[0].data),r&2&&(i.subtitle=l[1]?.data),e.$set(i)},i(l){t||(w(e.$$.fragment,l),t=!0)},o(l){p(e.$$.fragment,l),t=!1},d(l){q(e,l)}}}function hl(n){let e,t;return e=new se({}),{c(){V(e.$$.fragment)},m(l,r){T(e,l,r),t=!0},i(l){t||(w(e.$$.fragment,l),t=!0)},o(l){p(e.$$.fragment,l),t=!1},d(l){q(e,l)}}}function pl(n){let e,t,l,r,i,s;e=new he({props:{show_label:n[3],Icon:se,label:n[2]||"Video"}});const m=[gl,bl],a=[];function c(o,u){return o[0]===null?0:1}return l=c(n),r=a[l]=m[l](n),{c(){V(e.$$.fragment),t=O(),r.c(),i=le()},m(o,u){T(e,o,u),B(o,t,u),a[l].m(o,u),B(o,i,u),s=!0},p(o,[u]){const _={};u&8&&(_.show_label=o[3]),u&4&&(_.label=o[2]||"Video"),e.$set(_);let d=l;l=c(o),l===d?a[l].p(o,u):(Q(),p(a[d],1,1,()=>{a[d]=null}),$(),r=a[l],r?r.p(o,u):(r=a[l]=m[l](o),r.c()),w(r,1),r.m(i.parentNode,i))},i(o){s||(w(e.$$.fragment,o),w(r),s=!0)},o(o){p(e.$$.fragment,o),p(r),s=!1},d(o){q(e,o),o&&N(t),a[l].d(o),o&&N(i)}}}function wl(n,e,t){let{value:l=null}=e,{subtitle:r=null}=e,{label:i=void 0}=e,{show_label:s=!0}=e,m=null,a=null;const c=ae();Me(async()=>{l!==m&&r!==a&&a!==null&&(m=l,t(0,l=null),await Ue(),t(0,l=m)),m=l,a=r});function o(d){C.call(this,n,d)}function u(d){C.call(this,n,d)}function _(d){C.call(this,n,d)}return n.$$set=d=>{"value"in d&&t(0,l=d.value),"subtitle"in d&&t(1,r=d.subtitle),"label"in d&&t(2,i=d.label),"show_label"in d&&t(3,s=d.show_label)},n.$$.update=()=>{n.$$.dirty&1&&l&&c("change",l)},[l,r,i,s,o,u,_]}class kl extends W{constructor(e){super(),Y(this,e,wl,pl,G,{value:0,subtitle:1,label:2,show_label:3})}}function vl(n){let e,t;return e=new ml({props:{value:n[12],subtitle:n[13],label:n[5],show_label:n[7],source:n[6],mirror_webcam:n[9],include_audio:n[10],$$slots:{default:[Bl]},$$scope:{ctx:n}}}),e.$on("change",n[15]),e.$on("drag",n[21]),e.$on("error",n[22]),e.$on("clear",n[23]),e.$on("play",n[24]),e.$on("pause",n[25]),e.$on("upload",n[26]),{c(){V(e.$$.fragment)},m(l,r){T(e,l,r),t=!0},p(l,r){const i={};r&4096&&(i.value=l[12]),r&8192&&(i.subtitle=l[13]),r&32&&(i.label=l[5]),r&128&&(i.show_label=l[7]),r&64&&(i.source=l[6]),r&512&&(i.mirror_webcam=l[9]),r&1024&&(i.include_audio=l[10]),r&268435456&&(i.$$scope={dirty:r,ctx:l}),e.$set(i)},i(l){t||(w(e.$$.fragment,l),t=!0)},o(l){p(e.$$.fragment,l),t=!1},d(l){q(e,l)}}}function yl(n){let e,t;return e=new kl({props:{value:n[12],subtitle:n[13],label:n[5],show_label:n[7]}}),e.$on("play",n[19]),e.$on("pause",n[20]),{c(){V(e.$$.fragment)},m(l,r){T(e,l,r),t=!0},p(l,r){const i={};r&4096&&(i.value=l[12]),r&8192&&(i.subtitle=l[13]),r&32&&(i.label=l[5]),r&128&&(i.show_label=l[7]),e.$set(i)},i(l){t||(w(e.$$.fragment,l),t=!0)},o(l){p(e.$$.fragment,l),t=!1},d(l){q(e,l)}}}function Bl(n){let e,t;return e=new Je({props:{type:"video"}}
1),{c(){V(e.$$.fragment)},m(l,r){T(e,l,r),t=!0},p:M,i(l){t||(w(e.$$.fragment,l),t=!0)},o(l){p(e.$$.fragment,l),t=!1},d(l){q(e,l)}}}function Nl(n){let e,t,l,r,i,s;const m=[n[1]];let a={};for(let _=0;_<m.length;_+=1)a=Se(a,m[_]);e=new Ee({props:a});const c=[yl,vl],o=[];function u(_,d){return _[11]==="static"?0:1}return l=u(n),r=o[l]=c[l](n),{c(){V(e.$$.fragment),t=O(),r.c(),i=le()},m(_,d){T(e,_,d),B(_,t,d),o[l].m(_,d),B(_,i,d),s=!0},p(_,d){const y=d&2?Pe(m,[Ie(_[1])]):{};e.$set(y);let j=l;l=u(_),l===j?o[l].p(_,d):(Q(),p(o[j],1,1,()=>{o[j]=null}),$(),r=o[l],r?r.p(_,d):(r=o[l]=c[l](_),r.c()),w(r,1),r.m(i.parentNode,i))},i(_){s||(w(e.$$.fragment,_),w(r),s=!0)},o(_){p(e.$$.fragment,_),p(r),s=!1},d(_){q(e,_),_&&N(t),o[l].d(_),_&&N(i)}}}function Vl(n){let e,t;return e=new Re({props:{visible:n[4],variant:n[11]==="dynamic"&&n[0]===null&&n[6]==="upload"?"dashed":"solid",border_mode:n[14]?"focus":"base",padding:!1,elem_id:n[2],elem_classes:n[3],style:{height:n[8].height,width:n[8].width},allow_overflow:!1,$$slots:{default:[Nl]},$$scope:{ctx:n}}}),{c(){V(e.$$.fragment)},m(l,r){T(e,l,r),t=!0},p(l,[r]){const i={};r&16&&(i.visible=l[4]),r&2113&&(i.variant=l[11]==="dynamic"&&l[0]===null&&l[6]==="upload"?"dashed":"solid"),r&16384&&(i.border_mode=l[14]?"focus":"base"),r&4&&(i.elem_id=l[2]),r&8&&(i.elem_classes=l[3]),r&256&&(i.style={height:l[8].height,width:l[8].width}),r&268467938&&(i.$$scope={dirty:r,ctx:l}),e.$set(i)},i(l){t||(w(e.$$.fragment,l),t=!0)},o(l){p(e.$$.fragment,l),t=!1},d(l){q(e,l)}}}function Tl(n,e,t){let{elem_id:l=""}=e,{elem_classes:r=[]}=e,{visible:i=!0}=e,{value:s=null}=e,m=null,{label:a}=e,{source:c}=e,{root:o}=e,{root_url:u}=e,{show_label:_}=e,{loading_status:d}=e,{style:y={}}=e,{mirror_webcam:j}=e,{include_audio:S}=e,{mode:I}=e,R=null,X=null,z=!1;const A=ae();function g({detail:b}){b!=null?t(0,s=[b,null]):t(0,s=null),A("change")}function h(b){C.call(this,n,b)}function D(b){C.call(this,n,b)}const J=({detail:b})=>t(14,z=b),L=({detail:b})=>{t(1,d=d||{}),t(1,d.status="error",d),t(1,d.message=b,d)};function K(b){C.call(this,n,b)}function P(b){C.call(this,n,b)}function x(b){C.call(this,n,b)}function te(b){C.call(this,n,b)}return n.$$set=b=>{"elem_id"in b&&t(2,l=b.elem_id),"elem_classes"in b&&t(3,r=b.elem_classes),"visible"in b&&t(4,i=b.visible),"value"in b&&t(0,s=b.value),"label"in b&&t(5,a=b.label),"source"in b&&t(6,c=b.source),"root"in b&&t(16,o=b.root),"root_url"in b&&t(17,u=b.root_url),"show_label"in b&&t(7,_=b.show_label),"loading_status"in b&&t(1,d=b.loading_status),"style"in b&&t(8,y=b.style),"mirror_webcam"in b&&t(9,j=b.mirror_webcam),"include_audio"in b&&t(10,S=b.include_audio),"mode"in b&&t(11,I=b.mode)},n.$$.update=()=>{n.$$.dirty&196609&&(s!=null?(t(12,R=de(s[0],o,u)),t(13,X=de(s[1],o,u))):(t(12,R=null),t(13,X=null))),n.$$.dirty&262145&&JSON.stringify(s)!==JSON.stringify(m)&&(t(18,m=s),A("change"))},[s,d,l,r,i,a,c,_,y,j,S,I,R,X,z,g,o,u,m,h,D,J,L,K,P,x,te]}class ql extends W{constructor(e){super(),Y(this,e,Tl,Vl,G,{elem_id:2,elem_classes:3,visible:4,value:0,label:5,source:6,root:16,root_url:17,show_label:7,loading_status:1,style:8,mirror_webcam:9,include_audio:10,mode:11})}}const Al=ql,Ol=["static","dynamic"],Hl=n=>({type:{input_payload:"{ name: string; data: string }",response_object:"{ name: string; data: string, is_file: boolean }"},description:{input_payload:"object with file name and base64 data",response_object:"object that includes path to video file. The URL: {ROOT}file={name} contains the data"}});export{Al as Component,Hl as document,Ol as modes}; 2//# sourceMappingURL=index-80552935.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.