varlr=Object.defineProperty;varho=Object.getOwnPropertyDescriptor;varbo=Object.getOwnPropertyNames;vargo=Object.prototype.hasOwnProperty;varxo=(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(letaofbo(t))!go.call(o,a)&&a!==e&&lr(o,a,{get:()=>t[a],enumerable:!(r=ho(t,a))||r.enumerable});returno},v=(o,t,e)=>(fr(o,t,"default"),e&&fr(e,t,"default"));varn={};Ve(n,{version:()=>Eo});v(n,fn);v(n,ln);v(n,dn);import*asfnfrom"@tensorflow/tfjs/dist/index.js";import*aslnfrom"@tensorflow/tfjs-backend-webgl/dist/index.js";import*asdnfrom"@tensorflow/tfjs-backend-wasm/dist/index.js";varvo="3.18.0",yo="3.18.0",_o="3.18.0",To="3.18.0",Po="3.18.0",wo="3.18.0",Fo="3.18.0",Do="3.18.0",Eo={tfjs:vo,"tfjs-core":yo,"tfjs-data":_o,"tfjs-layers":To,"tfjs-converter":Po,"tfjs-backend-cpu":wo,"tfjs-backend-webgl":Fo,"tfjs-backend-wasm":Do};varAr={};Ve(Ar,{AnchorPosition:()=>Ke,DrawBox:()=>ee,DrawBoxOptions:()=>de,DrawFaceLandmarks:()=>De,DrawFaceLandmarksOptions:()=>Fe,DrawTextField:()=>et,DrawTextFieldOptions:()=>kt,drawContour:()=>Z,drawDetections:()=>Ao,drawFaceExpressions:()=>Wo,drawFaceLandmarks:()=>Bo});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()}vardr={};Ve(dr,{computeReshapedDimensions:()=>je,getCenterPoint:()=>yt,isDimensions:()=>ue,isEven:()=>pe,isFloat:()=>Ge,isTensor:()=>xt,isTensor1D:()=>Mo,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}functionMo(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),newb(0,0)).div(newb(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}varb=class{constructor(t,e){this._x=t,this._y=e}getx(){returnthis._x}gety(){returnthis._y}add(t){returnnewb(this.x+t.x,this.y+t.y)}sub(t){returnnewb(this.x-t.x,this.y-t.y)}mul(t){returnnewb(this.x*t.x,this.y*t.y)}div(t){returnnewb(this.x/t.x,this.y/t.y)}abs(){returnnewb(Math.abs(this.x),Math.abs(this.y))}magnitude(){returnMath.sqrt(this.x**2+this.y**2)}floor(){returnnewb(Math.floor(this.x),Math.floor(this.y))}};varw=class{staticisRect(t){return!!t&&[t.x,t.y,t.width,t.height].every(G)}staticassertIsValidBox(t,e,r=!1){if(!w.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