varlr=Object.defineProperty;varbo=Object.getOwnPropertyDescriptor;vargo=Object.getOwnPropertyNames;varxo=Object.prototype.hasOwnProperty;varvo=(o=>typeofrequire!="undefined"?require:typeofProxy!="undefined"?newProxy(o,{get:(t,e)=>(typeofrequire!="undefined"?require:t)[e]}):o)(function(o){if(typeofrequire!="undefined")returnrequire.apply(this,arguments);thrownewError('Dynamic require of "'+o+'" is not supported')});varVe=(o,t)=>{for(vareint)lr(o,e,{get:t[e],enumerable:!0})},fr=(o,t,e,r)=>{if(t&&typeoft=="object"||typeoft=="function")for(letaofgo(t))!xo.call(o,a)&&a!==e&&lr(o,a,{get:()=>t[a],enumerable:!(r=bo(t,a))||r.enumerable});returno},P=(o,t,e)=>(fr(o,t,"default"),e&&fr(e,t,"default"));varn={};Ve(n,{version:()=>Po});P(n,mn);P(n,pn);P(n,un);import*asmnfrom"@tensorflow/tfjs/dist/index.js";import*aspnfrom"@tensorflow/tfjs-backend-webgl/dist/index.js";import*asunfrom"@tensorflow/tfjs-backend-wasm/dist/index.js";vardr="4.2.0",yo="4.2.0",_o="4.2.0",To="4.2.0",wo="4.2.0",Po={tfjs:dr,"tfjs-core":dr,"tfjs-converter":yo,"tfjs-backend-cpu":_o,"tfjs-backend-webgl":To,"tfjs-backend-wasm":wo};varWr={};Ve(Wr,{AnchorPosition:()=>Ke,DrawBox:()=>ee,DrawBoxOptions:()=>de,DrawFaceLandmarks:()=>De,DrawFaceLandmarksOptions:()=>Fe,DrawTextField:()=>et,DrawTextFieldOptions:()=>kt,drawContour:()=>Z,drawDetections:()=>No,drawFaceExpressions:()=>So,drawFaceLandmarks:()=>Ao});functionZ(o,t,e=!1){if(o.beginPath(),t.slice(1).forEach(({x:r,y:a},s)=>{leti=t[s];o.moveTo(i.x,i.y),o.lineTo(r,a)}),e){letr=t[t.length-1],a=t[0];if(!r||!a)return;o.moveTo(r.x,r.y),o.lineTo(a.x,a.y)}o.stroke()}varhr={};Ve(hr,{computeReshapedDimensions:()=>je,getCenterPoint:()=>yt,isDimensions:()=>ue,isEven:()=>pe,isFloat:()=>Ge,isTensor:()=>xt,isTensor1D:()=>Fo,isTensor2D:()=>Ye,isTensor3D:()=>K,isTensor4D:()=>R,isValidNumber:()=>G,isValidProbablitiy:()=>It,range:()=>U,round:()=>vt});varS=class{constructor(t,e){if(!G(t)||!G(e))thrownewError(`Dimensions.constructor - expected width and height to be valid numbers, instead have ${JSON.stringify({width:t,height:e})}`);this._width=t,this._height=e}getwidth(){returnthis._width}getheight(){returnthis._height}reverse(){returnnewS(1/this.width,1/this.height)}};functionxt(o,t){returnoinstanceofn.Tensor&&o.shape.length===t}functionFo(o){returnxt(o,1)}functionYe(o){returnxt(o,2)}functionK(o){returnxt(o,3)}functionR(o){returnxt(o,4)}functionGe(o){returno%1!==0}functionpe(o){returno%2===0}functionvt(o,t=2){lete=10**t;returnMath.floor(o*e)/e}functionue(o){returno&&o.width&&o.height}functionje({width:o,height:t},e){letr=e/Math.max(t,o);returnnewS(Math.round(o*r),Math.round(t*r))}functionyt(o){returno.reduce((t,e)=>t.add(e),newg(0,0)).div(newg(o.length,o.length))}functionU(o,t,e){returnArray(o).fill(0).map((r,a)=>t+a*e)}functionG(o){return!!o&&o!==1/0&&o!==-1/0&&!Number.isNaN(o)||o===0}functionIt(o){returnG(o)&&o>=0&&o<=1}varg=class{constructor(t,e){this._x=t,this._y=e}getx(){returnthis._x}gety(){returnthis._y}add(t){returnnewg(this.x+t.x,this.y+t.y)}sub(t){returnnewg(this.x-t.x,this.y-t.y)}mul(t){returnnewg(this.x*t.x,this.y*t.y)}div(t){returnnewg(this.x/t.x,this.y/t.y)}abs(){returnnewg(Math.abs(this.x),Math.abs(this.y))}magnitude(){returnMath.sqrt(this.x**2+this.y**2)}floor(){returnnewg(Math.floor(this.x),Math.floor(this.y))}};varF=class{staticisRect(t){return!!t&&[t.x,t.y,t.width,t.height].every(G)}staticassertIsValidBox(t,e,r=!1){if(!F.isRect(t))thrownewError(`${e} - invalid box: ${JSON.stringify(t)}, expected object with properties x, y, width, height`);if(!r&&(t.width<0||t.height<0))thrownewError(`${e} - width (${t.width}) and height (${t.height}) must be positive numbers`)}constructor(t,e=!0){letr=t||{},a=[r.left,r.top,r.right,r.bottom].every(G),s=[r.x,r.y,r.width,r.height].every(G);if(!s&&!a)thrownewError(`Box.constructor - expected box to be IBoundingBox | IRect, instead have ${JSON.stringify(r)}`);let[i,c,m,p]=s?[r.x,r.y,r.width,r.height]:[r.left,r.top,r.right-r.left,r.bottom-r.top];F.assertIsValidBox({x:i,y:c,width:m,height: