text: import{_ as t,a as r,b as e,c as o,i as a,s as n,d as s,S as i,z as c,g as l,h as f,k as h,m as d,a5 as m,n as u,o as g,e as p,f as v,l as w,a4 as x,A as k,p as y,ae as E,u as L,v as b,w as M,af as D,$ as R}from"./client.920ae3a6.js";function j(t){var o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var a,n=r(t);if(o){var s=r(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return e(this,a)}}function B(t){var r,e,o,a,n,s,i,p,v,w,x,k,y,E,L;return{c:function(){r=c("svg"),e=c("g"),o=c("circle"),a=c("g"),n=c("path"),s=c("g"),i=c("path"),p=c("g"),v=c("path"),w=c("g"),x=c("path"),k=c("g"),y=c("path"),E=c("g"),L=c("path"),this.h()},l:function(t){r=l(t,"svg",{class:!0,width:!0,height:!0,viewBox:!0,version:!0,xmlns:!0,"xmlns:xlink":!0,"xml:space":!0,"xmlns:serif":!0,style:!0},1);var c=f(r);e=l(c,"g",{transform:!0},1);var d=f(e);o=l(d,"circle",{cx:!0,cy:!0,r:!0,style:!0},1),f(o).forEach(h),d.forEach(h),a=l(c,"g",{transform:!0},1);var m=f(a);n=l(m,"path",{d:!0,style:!0},1),f(n).forEach(h),m.forEach(h),s=l(c,"g",{transform:!0},1);var u=f(s);i=l(u,"path",{d:!0,style:!0},1),f(i).forEach(h),u.forEach(h),p=l(c,"g",{transform:!0},1);var g=f(p);v=l(g,"path",{d:!0,style:!0},1),f(v).forEach(h),g.forEach(h),w=l(c,"g",{transform:!0},1);var b=f(w);x=l(b,"path",{d:!0,style:!0},1),f(x).forEach(h),b.forEach(h),k=l(c,"g",{transform:!0},1);var M=f(k);y=l(M,"path",{d:!0,style:!0},1),f(y).forEach(h),M.forEach(h),E=l(c,"g",{transform:!0},1);var D=f(E);L=l(D,"path",{d:!0,style:!0},1),f(L).forEach(h),D.forEach(h),c.forEach(h),this.h()},h:function(){d(o,"cx","1042.46"),d(o,"cy","736.603"),d(o,"r","47.55"),m(o,"fill","none"),m(o,"stroke","rgb(255,255,255)"),m(o,"stroke-width","11.67px"),d(e,"transform","matrix(0.303359,0,0,0.303359,-76.4356,-172.363)"),d(n,"d","M899.814,842.866L1070.12,1102.16L919.714,1102.16L1090.02,842.866L899.814,842.866Z"),m(n,"fill","none"),m(n,"stroke","rgb(255,255,255)"),m(n,"stroke-width","11.67px"),d(a,"transform","matrix(0.303359,0,0,0.303359,-61.8165,-164.263)"),d(i,"d","M879.915,1136.8L879.915,986.272L919.714,842.866"),m(i,"fill","none"),m(i,"stroke","rgb(255,255,255)"),m(i,"stroke-width","11.67px"),d(s,"transform","matrix(0.303359,0,0,0.303359,-67.8532,-164.263)"),d(v,"d","M879.915,1136.8L879.915,986.272L919.714,842.866"),m(v,"fill","none"),m(v,"stroke","rgb(255,255,255)"),m(v,"stroke-width","11.67px"),d(p,"transform","matrix(-0.303359,0,0,0.303359,547.853,-164.263)"),d(x,"d","M994.915,842.866L994.915,689.053"),m(x,"fill","none"),m(x,"stroke","rgb(255,255,255)"),m(x,"stroke-width","10.71px"),d(w,"transform","matrix(0.303359,0,0,0.356008,-61.8165,-208.64)"),d(y,"d","M919.714,1102.16L955.517,1303.46L973.734,1516.85"),m(y,"fill","none"),m(y,"stroke","rgb(255,255,255)"),m(y,"stroke-width","11.67px"),d(k,"transform","matrix(0.303359,0,0,0.303359,-61.8165,-164.263)"),d(L,"d","M919.714,1102.16L955.517,1303.46L973.734,1516.85"),m(L,"fill","none"),m(L,"stroke","rgb(255,255,255)"),m(L,"stroke-width","11.67px"),d(E,"transform","matrix(-0.303359,0,0,0.303359,541.817,-164.263)"),d(r,"class","body svelte-8wiadk"),d(r,"width","100%"),d(r,"height","100%"),d(r,"viewBox","0 0 480 320"),d(r,"version","1.1"),d(r,"xmlns","http://www.w3.org/2000/svg"),d(r,"xmlns:xlink","http://www.w3.org/1999/xlink"),d(r,"xml:space","preserve"),d(r,"xmlns:serif","http://www.serif.com/"),m(r,"fill-rule","evenodd"),m(r,"clip-rule","evenodd"),m(r,"stroke-linecap","round"),m(r,"stroke-linejoin","round"),m(r,"stroke-miterlimit","1.5")},m:function(t,c){u(t,r,c),g(r,e),g(e,o),g(r,a),g(a,n),g(r,s),g(s,i),g(r,p),g(p,v),g(r,w),g(w,x),g(r,k),g(k,y),g(r,E),g(E,L)},d:function(t){t&&h(r)}}}function S(t){var r,e,o,a,n,s,i,p,v,w,x,k,y,E,L,b;return{c:function(){r=c("svg"),e=c("g"),o=c("g"),a=c("circle"),n=c("g"),s=c("circle"),i=c("g"),p=c("circle"),v=c("g"),w=c("path"),x=c("g"),k=c("path"),y=c("g"),E=c("path"),L=c("g"),b=c("path"),this.h()},l:function(t){r=l(t,"svg",{class:!0,width:!0,height:!0,viewBox:!0,version:!0,xmlns:!0,"xmlns:xlink":!0,"xml:space":!0,"xmlns:serif":!0,style:!0},1);var c=f(r);e=l(c,"g",{transform:!0},1);var d=f(e);o=l(d,"g",{transform:!0},1);var m=f(o);a=l(m,"circle",{cx:!0,cy:!0,r:!0,style:!0},1),f(a).forEach(h),m.forEach(h),n=l(d,"g",{transform:!0},1);var u=f(n);s=l(u,"circle",{cx:!0,cy:!0,r:!0,style:!0},1),f(s).forEach(h),u.forEach(h),i=l(d,"g",{transform:!0},1);var g=f(i);p=l(g,"circle",{cx:!0,cy:!0,r:!0,style:!0},1),f(p).forEach(h),g.forEach(h),d.forEach(h),v=l(c,"g",{transform:!0},1);var M=f(v);w=l(M,"path",{d:!0,style:!0},1),f(w).forEach(h),M.forEach(h),x=l(c,"g",{transform:!0},1);var D=f(x);k=l(D,"path",{d:!0,style:!0},1),f(k).forEach(h),D.forEach(h),y=l(c,"g",{transform:!0},1);var R=f(y);E=l(R,"path",{d:!0,style:!0},1),f(E).forEach(h),R.forEach(h),L=l(c,"g",{transform:!0},1);var j=f(L);b=l(j,"path",{d:!0,style:!0},1),f(b).forEach(h),j.forEach(h),c.forEach(h),this.h()},h:function(){d(a,"cx","1042.46"),d(a,"cy","736.603"),d(a,"r","47.55"),m(a,"fill","none"),m(a,"stroke","white"),m(a,"stroke-width","3.11px"),d(o,"transform","matrix(3.70983,0,0,3.70983,-2826.64,-1876.21)"),d(s,"cx","219.132"),d(s,"cy","70.482"),d(s,"r","8.134"),m(s,"fill","none"),m(s,"stroke","white"),m(s,"stroke-width","3.5px"),d(n,"transform","matrix(3.29642,0,0,3.29642,242.176,600.802)"),d(p,"cx","219.132"),d(p,"cy","70.482"),d(p,"r","8.134"),m(p,"fill","none"),m(p,"stroke","white"),m(p,"stroke-width","3.5px"),d(i,"transform","matrix(3.29642,0,0,3.29642,399.332,600.802)"),d(e,"transform","matrix(0.303359,0,0,0.303359,-76.4356,-172.363)"),d(w,"d","M899.814,842.866L1070.12,1102.16L919.714,1102.16L1090.02,842.866L899.814,842.866Z"),m(w,"fill","none"),m(w,"stroke","white"),m(w,"stroke-width","3.11px"),d(v,"transform","matrix(1.12541,0,0,1.12541,-879.689,-744.414)"),d(k,"d","M879.915,1136.8L879.915,986.272L919.714,842.866"),m(k,"fill","none"),m(k,"stroke","white"),m(k,"stroke-width","3.11px"),d(x,"transform","matrix(1.12541,0,0,1.12541,-902.084,-744.414)"),d(E,"d","M879.915,1136.8L879.915,986.272L919.714,842.866"),m(E,"fill","none"),m(E,"stroke","white"),m(E,"stroke-width","3.11px"),d(y,"transform","matrix(-1.12541,0,0,1.12541,1382.08,-744.414)"),d(b,"d","M994.915,842.866L994.915,689.053"),m(b,"fill","none"),m(b,"stroke","white"),m(b,"stroke-width","2.85px"),d(L,"transform","matrix(1.12541,0,0,1.10663,-879.689,-728.579)"),d(r,"class","face svelte-8wiadk"),d(r,"width","100%"),d(r,"height","100%"),d(r,"viewBox","0 0 480 320"),d(r,"version","1.1"),d(r,"xmlns","http://www.w3.org/2000/svg"),d(r,"xmlns:xlink","http://www.w3.org/1999/xlink"),d(r,"xml:space","preserve"),d(r,"xmlns:serif","http://www.serif.com/"),m(r,"fill-rule","evenodd"),m(r,"clip-rule","evenodd"),m(r,"stroke-linecap","round"),m(r,"stroke-linejoin","round"),m(r,"stroke-miterlimit","1.5")},m:function(t,c){u(t,r,c),g(r,e),g(e,o),g(o,a),g(e,n),g(n,s),g(e,i),g(i,p),g(r,v),g(v,w),g(r,x),g(x,k),g(r,y),g(y,E),g(r,L),g(L,b)},d:function(t){t&&h(r)}}}function W(t){var r,e,o,a,n,s,i,c="body"==t[3]&&B(),E="face"==t[3]&&S();return{c:function(){r=p("div"),e=p("video"),o=v(),c&&c.c(),a=v(),E&&E.c(),this.h()},l:function(t){r=l(t,"DIV",{class:!0,style:!0});var n=f(r);e=l(n,"VIDEO",{style:!0,class:!0}),f(e).forEach(h),o=w(n),c&&c.l(n),a=w(n),E&&E.l(n),n.forEach(h),this.h()},h:function(){m(e,"width",t[1]),m(e,"height",t[2]),d(e,"class","svelte-8wiadk"),d(r,"class","webcam svelte-8wiadk"),d(r,"style",n="width: "+t[1]+"; height: "+t[2]+"; "+t[0])},m:function(n,l){u(n,r,l),g(r,e),t[6](e),g(r,o),c&&c.m(r,null),g(r,a),E&&E.m(r,null),s||(i=x(r,"click",t[5]),s=!0)},p:function(t,o){var s=k(o,1)[0];2&s&&m(e,"width",t[1]),4&s&&m(e,"height",t[2]),"body"==t[3]?c||((c=B()).c(),c.m(r,a)):c&&(c.d(1),c=null),"face"==t[3]?E||((E=S()).c(),E.m(r,null)):E&&(E.d(1),E=null),7&s&&n!==(n="width: "+t[1]+"; height: "+t[2]+"; "+t[0])&&d(r,"style",n)},i:y,o:y,d:function(e){e&&h(r),t[6](null),c&&c.d(),E&&E.d(),s=!1,i()}}}function C(t,r,e){var o,a,n=r.style,s=r.width,i=void 0===s?"auto":s,c=r.height,l=void 0===c?"auto":c,f=r.focus,h=void 0===f?"none":f;return E((function(){a&&a.getTracks().forEach((function(t){console.log("[WebCam] 🎥☠️  destroying stream:",t),t.stop()}))})),L(b(M.mark((function t(){return M.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:navigator.mediaDevices?navigator.mediaDevices.getUserMedia&&navigator.mediaDevices.getUserMedia({video:{width:480,height:320}}).then((function(t){a=t,console.log("[WebCam] 🎥✅  successfully opened",t),e(4,o.srcObject=t,o),e(4,o.onloadedmetadata=function(t){o.play()},o)})).catch((function(t){console.log("[WebCam] 🎥❌  error opening:",t)})):alert("SSL is needed for mediaDevices");case 1:case"end":return t.stop()}}),t)})))),t.$$set=function(t){"style"in t&&e(0,n=t.style),"width"in t&&e(1,i=t.width),"height"in t&&e(2,l=t.height),"focus"in t&&e(3,h=t.focus)},[n,i,l,h,o,function(r){D(t,r)},function(t){R[t?"unshift":"push"]((function(){e(4,o=t)}))}]}var $=function(r){t(c,i);var e=j(c);function c(t){var r;return o(this,c),r=e.call(this),a(s(r),t,C,W,n,{style:0,width:1,height:2,focus:3}),r}return c}();export{$ as W};
  