varur=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);throwError('Dynamic require of "'+o+'" is not supported')});varYe=(o,t)=>{for(vareint)ur(o,e,{get:t[e],enumerable:!0})},pr=(o,t,e,r)=>{if(t&&typeoft=="object"||typeoft=="function")for(letaofbo(t))!go.call(o,a)&&a!==e&&ur(o,a,{get:()=>t[a],enumerable:!(r=ho(t,a))||r.enumerable});returno},w=(o,t,e)=>(pr(o,t,"default"),e&&pr(e,t,"default"));varn={};Ye(n,{version:()=>Po});w(n,mn);w(n,pn);w(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";varfr="4.22.0",vo="4.22.0",yo="4.22.0",To="4.22.0",_o="4.22.0",Po={tfjs:fr,"tfjs-core":fr,"tfjs-converter":vo,"tfjs-backend-cpu":yo,"tfjs-backend-webgl":To,"tfjs-backend-wasm":_o};varSr={};Ye(Sr,{AnchorPosition:()=>Ke,DrawBox:()=>ee,DrawBoxOptions:()=>de,DrawFaceLandmarks:()=>De,DrawFaceLandmarksOptions:()=>Fe,DrawTextField:()=>xt,DrawTextFieldOptions:()=>Wt,drawContour:()=>Z,drawDetections:()=>Io,drawFaceExpressions:()=>No,drawFaceLandmarks:()=>So});functionZ(o,t,e=!1){if(o.beginPath(),t.slice(1).forEach(({x:r,y:a},i)=>{lets=t[i];o.moveTo(s.x,s.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()}varlr={};Ye(lr,{computeReshapedDimensions:()=>je,getCenterPoint:()=>bt,isDimensions:()=>ue,isEven:()=>pe,isFloat:()=>Ge,isTensor:()=>dt,isTensor1D:()=>wo,isTensor2D:()=>Ve,isTensor3D:()=>K,isTensor4D:()=>R,isValidNumber:()=>G,isValidProbablitiy:()=>Mt,range:()=>X,round:()=>ht});varA=classo{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(){returnnewo(1/this.width,1/this.height)}};functiondt(o,t){returnoinstanceofn.Tensor&&o.shape.length===t}functionwo(o){returndt(o,1)}functionVe(o){returndt(o,2)}functionK(o){returndt(o,3)}functionR(o){returndt(o,4)}functionGe(o){returno%1!==0}functionpe(o){returno%2===0}functionht(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);returnnewA(Math.round(o*r),Math.round(t*r))}functionbt(o){returno.reduce((t,e)=>t.add(e),newv(0,0)).div(newv(o.length,o.length))}functionX(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}functionMt(o){returnG(o)&&o>=0&&o<=1}varv=classo{constructor(t,e){this._x=t,this._y=e}getx(){returnthis._x}gety(){returnthis._y}add(t){returnnewo(this.x+t.x,this.y+t.y)}sub(t){returnnewo(this.x-t.x,this.y-t.y)}mul(t){returnnewo(this.x*t.x,this.y*t.y)}div(t){returnnewo(this.x/t.x,this.y/t.y)}abs(){returnnewo(Math.abs(this.x),Math.abs(this.y))}magnitude(){returnMath.sqrt(this.x**2+this.y**2)}floor(){returnnewo(Math.floor(this.x),Math.floor(this.y))}};varC=classo{staticisRect(t){return!!t&&[t.x,t.y,t.width,t.height].every(G)}staticassertIsValidBox(t,e,r=!1){if(!o.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),i=[r.x,r.y,r.width,r.height].every(G);if(!i&&!a)thrownewError(`Box.constructor - expected box to be IBoundingBox | IRect, instead have ${JSON.stringify(r)}`);let[s,c,m,p]=i?[r.x,r.y,r.width,r.height]:[r.left,r.top,r.right-r.left,r.bottom-r.top];o.assertIsValidBox({x:s,y:c,width:m,