md-face-engine 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -6
- package/dist/MartidermEngine-O4mYSfhg.cjs +4 -0
- package/dist/MartidermEngine-OvpT3v9z.js +202 -0
- package/dist/client.cjs +1 -5
- package/dist/client.js +4 -3
- package/dist/face_mesh-CA6iJyns.cjs +18 -0
- package/dist/face_mesh-Ctt6fZlf.js +4207 -0
- package/dist/index-Bdxo13gP.js +420 -0
- package/dist/index-DA_YlCTl.cjs +1 -0
- package/dist/index.cjs +1 -8661
- package/dist/index.js +3 -8641
- package/package.json +8 -1
- package/dist/client-BGSZMMvf.js +0 -620
- package/dist/client-BGSZMMvf.js.map +0 -1
- package/dist/client-DimGdJ4Y.cjs +0 -619
- package/dist/client-DimGdJ4Y.cjs.map +0 -1
- package/dist/client.cjs.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# md-face-engine
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
SDK de activación/licencia y runtime de filtros para integración web.
|
|
4
4
|
|
|
5
5
|
## Instalación
|
|
6
6
|
|
|
@@ -8,20 +8,30 @@ Motor reusable para detección facial y aplicación de filtros.
|
|
|
8
8
|
npm install md-face-engine
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## API rápida
|
|
12
|
+
|
|
13
|
+
- `createMdFaceEngineClient({ token, products })`: exige licencia válida.
|
|
14
|
+
- `createMdFaceEngineRuntime({ token, products })`: funciona con o sin licencia (modo demo/watermark).
|
|
15
|
+
- `createLandmarkDetector()`: inicializa detector de landmarks para el runtime.
|
|
16
|
+
|
|
17
|
+
Ambas APIs son `async`.
|
|
18
|
+
|
|
19
|
+
## Uso recomendado (runtime)
|
|
12
20
|
|
|
13
21
|
```js
|
|
14
|
-
import {
|
|
22
|
+
import { createMdFaceEngineRuntime } from 'md-face-engine/client';
|
|
15
23
|
|
|
16
|
-
const
|
|
24
|
+
const runtime = await createMdFaceEngineRuntime({
|
|
17
25
|
token: import.meta.env.VITE_MD_FACE_ENGINE_TOKEN,
|
|
18
26
|
products: []
|
|
19
27
|
});
|
|
28
|
+
|
|
29
|
+
console.log(runtime.license.active); // true/false
|
|
20
30
|
```
|
|
21
31
|
|
|
22
|
-
|
|
32
|
+
## Tokens
|
|
23
33
|
|
|
24
|
-
|
|
34
|
+
Formato esperado: `mdfe2_...`.
|
|
25
35
|
|
|
26
36
|
## Build del paquete
|
|
27
37
|
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index-DA_YlCTl.cjs"),v={key:"wrinkles",label:"Arrugas",defaults:{intensity:.5,sigma:4,brightness:0},deep:{smooth:{enabled:!0,radius:8,passes:4,opacity:.7},brightness:{enabled:!0,value:10},contrast:{enabled:!0,value:1.03},warmth:{enabled:!0,rPlus:8,bMinus:5,alpha:.3},toneUnify:{enabled:!0,threshold:12,mix:.4},blemish:{enabled:!0,microBlur:3,alpha:.4},contourLift:{enabled:!0,lift:.06,shade:.04,feather:20}}},w={key:"brightness",label:"Luminosidad",defaults:{intensity:0,sigma:0,brightness:.07},deep:{smooth:{enabled:!0,radius:5,passes:3,opacity:.5},brightness:{enabled:!0,value:18},contrast:{enabled:!0,value:1.15},warmth:{enabled:!0,rPlus:12,bMinus:8,alpha:.45},toneUnify:{enabled:!0,threshold:10,mix:.3},blemish:{enabled:!0,microBlur:2,alpha:.3},contourLift:{enabled:!0,lift:.12,shade:.08,feather:18}}},E={key:"spots",label:"Manchas/Tono",defaults:{intensity:.65,sigma:5,brightness:.05},deep:{smooth:{enabled:!0,radius:6,passes:3,opacity:.6},brightness:{enabled:!0,value:12},contrast:{enabled:!0,value:1.08},warmth:{enabled:!0,rPlus:7,bMinus:4,alpha:.3},toneUnify:{enabled:!0,threshold:8,mix:.6},blemish:{enabled:!0,microBlur:4,alpha:.5},contourLift:{enabled:!0,lift:.08,shade:.06,feather:16}}},C={key:"acne",label:"Acné",defaults:{intensity:.55,sigma:3.4,brightness:.1},deep:{smooth:{enabled:!0,radius:7,passes:4,opacity:.65},brightness:{enabled:!0,value:8},contrast:{enabled:!0,value:1.02},warmth:{enabled:!0,rPlus:6,bMinus:3,alpha:.25},toneUnify:{enabled:!0,threshold:10,mix:.5},blemish:{enabled:!0,microBlur:5,alpha:.7},contourLift:{enabled:!0,lift:.06,shade:.04,feather:20}}},P={key:"firmness",label:"Firmeza",defaults:{intensity:.7,sigma:2,brightness:0},deep:{smooth:{enabled:!0,radius:3,passes:2,opacity:.3},brightness:{enabled:!0,value:6},contrast:{enabled:!0,value:1.12},warmth:{enabled:!0,rPlus:5,bMinus:3,alpha:.2},toneUnify:{enabled:!0,threshold:18,mix:.2},blemish:{enabled:!1,microBlur:1,alpha:.1},contourLift:{enabled:!0,lift:.15,shade:.12,feather:12}}},l={wrinkles:v,brightness:w,spots:E,acne:C,firmness:P};function A(e){return l[e]||null}const B=["wrinkles","brightness","spots","acne","firmness"];function L(e){var o,u,s,i;const a=m.filterConfigManager.getProductConfig(e.id)||{},t=e.filterType||a.webglConfig&&a.webglConfig.filterType||"wrinkles",r=l[t]&&l[t].defaults||{intensity:.5,sigma:4,brightness:0},n=l[t]&&l[t].deep||{},b={filterType:t,intensity:e.defaultIntensity!==void 0?e.defaultIntensity:r.intensity,sigma:e.defaultSigma!==void 0?e.defaultSigma:r.sigma,brightness:e.defaultBrightness!==void 0?e.defaultBrightness:r.brightness,contrast:typeof((o=n.contrast)==null?void 0:o.value)=="number"?n.contrast.value:1,warmthR:typeof((u=n.warmth)==null?void 0:u.rPlus)=="number"?n.warmth.rPlus:0,warmthB:typeof((s=n.warmth)==null?void 0:s.bMinus)=="number"?n.warmth.bMinus:0,warmthA:typeof((i=n.warmth)==null?void 0:i.alpha)=="number"?n.warmth.alpha:0},d=a.webglConfig||{};return{...b,...d,filterType:t}}const g="mdfe2_",y="md-face-engine",c=`-----BEGIN PUBLIC KEY-----
|
|
2
|
+
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEW9CHbTVvVXcm09wZIj6GKGaq8ae1
|
|
3
|
+
XGQAum9LBLgoT3+4q3xPc7W9KSw1z4xgfOByTi8OzdjbjEaF3VrHjzl05w==
|
|
4
|
+
-----END PUBLIC KEY-----`;let f=null;function p(e){const a=e.replace(/-/g,"+").replace(/_/g,"/"),t=a+"=".repeat((4-a.length%4)%4);return atob(t)}function T(e){const a=p(e),t=new Uint8Array(a.length);for(let r=0;r<a.length;r+=1)t[r]=a.charCodeAt(r);return t}function I(e){const a=e.replace(/-----BEGIN PUBLIC KEY-----/g,"").replace(/-----END PUBLIC KEY-----/g,"").replace(/\s+/g,""),t=atob(a),r=new Uint8Array(t.length);for(let n=0;n<t.length;n+=1)r[n]=t.charCodeAt(n);return r.buffer}async function F(e=c){if(e===c&&f)return f;const a=I(e),t=await crypto.subtle.importKey("spki",a,{name:"ECDSA",namedCurve:"P-256"},!1,["verify"]);return e===c&&(f=t),t}async function M(e,a={}){const{now:t=Date.now(),publicKeyPem:r=c,allowExpired:n=!1}=a;if(!e||typeof e!="string")return{valid:!1,reason:"Token vacío o inválido"};if(!e.startsWith(g))return{valid:!1,reason:"Prefijo de token inválido"};const d=e.slice(g.length).split(".");if(d.length!==2)return{valid:!1,reason:"Formato de token inválido"};const[o,u]=d;let s;try{s=JSON.parse(p(o))}catch{return{valid:!1,reason:"Payload de licencia inválido"}}try{const i=await F(r);if(!await crypto.subtle.verify({name:"ECDSA",hash:"SHA-256"},i,T(u),new TextEncoder().encode(o)))return{valid:!1,reason:"Firma de licencia inválida"}}catch{return{valid:!1,reason:"Error verificando firma de licencia"}}return s.productCode!==y?{valid:!1,reason:"Licencia de otro producto"}:!n&&(typeof s.exp!="number"||s.exp<t)?{valid:!1,reason:"Licencia vencida",payload:s}:{valid:!0,reason:null,payload:s}}class h{constructor(){this.license=null,this.activated=!1}async activate(a){const t=await M(a);if(!t.valid)throw this.license=null,this.activated=!1,new Error(`Licencia inválida: ${t.reason}`);return this.license=t.payload,this.activated=!0,t.payload}isActivated(){return this.activated}assertActivated(){if(!this.activated)throw new Error("md-face-engine no está activado. Configura VITE_MD_FACE_ENGINE_TOKEN.")}getLicense(){return this.assertActivated(),this.license}getProductCode(){return y}getFilterRegistry(){return this.assertActivated(),l}getFilterOrder(){return this.assertActivated(),B}getFilter(a){return this.assertActivated(),A(a)}getFilterConfigManager(){return this.assertActivated(),m.filterConfigManager}buildWebglConfigForProduct(a){return this.assertActivated(),L(a)}}exports.MartidermEngine=h;exports.MdFaceEngine=h;exports.default=h;
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { f as g } from "./index-Bdxo13gP.js";
|
|
2
|
+
const y = {
|
|
3
|
+
key: "wrinkles",
|
|
4
|
+
label: "Arrugas",
|
|
5
|
+
defaults: { intensity: 0.5, sigma: 4, brightness: 0 },
|
|
6
|
+
deep: {
|
|
7
|
+
smooth: { enabled: !0, radius: 8, passes: 4, opacity: 0.7 },
|
|
8
|
+
brightness: { enabled: !0, value: 10 },
|
|
9
|
+
contrast: { enabled: !0, value: 1.03 },
|
|
10
|
+
warmth: { enabled: !0, rPlus: 8, bMinus: 5, alpha: 0.3 },
|
|
11
|
+
toneUnify: { enabled: !0, threshold: 12, mix: 0.4 },
|
|
12
|
+
blemish: { enabled: !0, microBlur: 3, alpha: 0.4 },
|
|
13
|
+
contourLift: { enabled: !0, lift: 0.06, shade: 0.04, feather: 20 }
|
|
14
|
+
}
|
|
15
|
+
}, v = {
|
|
16
|
+
key: "brightness",
|
|
17
|
+
label: "Luminosidad",
|
|
18
|
+
defaults: { intensity: 0, sigma: 0, brightness: 0.07 },
|
|
19
|
+
deep: {
|
|
20
|
+
smooth: { enabled: !0, radius: 5, passes: 3, opacity: 0.5 },
|
|
21
|
+
brightness: { enabled: !0, value: 18 },
|
|
22
|
+
contrast: { enabled: !0, value: 1.15 },
|
|
23
|
+
warmth: { enabled: !0, rPlus: 12, bMinus: 8, alpha: 0.45 },
|
|
24
|
+
toneUnify: { enabled: !0, threshold: 10, mix: 0.3 },
|
|
25
|
+
blemish: { enabled: !0, microBlur: 2, alpha: 0.3 },
|
|
26
|
+
contourLift: { enabled: !0, lift: 0.12, shade: 0.08, feather: 18 }
|
|
27
|
+
}
|
|
28
|
+
}, w = {
|
|
29
|
+
key: "spots",
|
|
30
|
+
label: "Manchas/Tono",
|
|
31
|
+
defaults: { intensity: 0.65, sigma: 5, brightness: 0.05 },
|
|
32
|
+
deep: {
|
|
33
|
+
smooth: { enabled: !0, radius: 6, passes: 3, opacity: 0.6 },
|
|
34
|
+
brightness: { enabled: !0, value: 12 },
|
|
35
|
+
contrast: { enabled: !0, value: 1.08 },
|
|
36
|
+
warmth: { enabled: !0, rPlus: 7, bMinus: 4, alpha: 0.3 },
|
|
37
|
+
toneUnify: { enabled: !0, threshold: 8, mix: 0.6 },
|
|
38
|
+
blemish: { enabled: !0, microBlur: 4, alpha: 0.5 },
|
|
39
|
+
contourLift: { enabled: !0, lift: 0.08, shade: 0.06, feather: 16 }
|
|
40
|
+
}
|
|
41
|
+
}, E = {
|
|
42
|
+
key: "acne",
|
|
43
|
+
label: "Acné",
|
|
44
|
+
defaults: { intensity: 0.55, sigma: 3.4, brightness: 0.1 },
|
|
45
|
+
deep: {
|
|
46
|
+
smooth: { enabled: !0, radius: 7, passes: 4, opacity: 0.65 },
|
|
47
|
+
brightness: { enabled: !0, value: 8 },
|
|
48
|
+
contrast: { enabled: !0, value: 1.02 },
|
|
49
|
+
warmth: { enabled: !0, rPlus: 6, bMinus: 3, alpha: 0.25 },
|
|
50
|
+
toneUnify: { enabled: !0, threshold: 10, mix: 0.5 },
|
|
51
|
+
blemish: { enabled: !0, microBlur: 5, alpha: 0.7 },
|
|
52
|
+
contourLift: { enabled: !0, lift: 0.06, shade: 0.04, feather: 20 }
|
|
53
|
+
}
|
|
54
|
+
}, C = {
|
|
55
|
+
key: "firmness",
|
|
56
|
+
label: "Firmeza",
|
|
57
|
+
defaults: { intensity: 0.7, sigma: 2, brightness: 0 },
|
|
58
|
+
deep: {
|
|
59
|
+
smooth: { enabled: !0, radius: 3, passes: 2, opacity: 0.3 },
|
|
60
|
+
brightness: { enabled: !0, value: 6 },
|
|
61
|
+
contrast: { enabled: !0, value: 1.12 },
|
|
62
|
+
warmth: { enabled: !0, rPlus: 5, bMinus: 3, alpha: 0.2 },
|
|
63
|
+
toneUnify: { enabled: !0, threshold: 18, mix: 0.2 },
|
|
64
|
+
blemish: { enabled: !1, microBlur: 1, alpha: 0.1 },
|
|
65
|
+
contourLift: { enabled: !0, lift: 0.15, shade: 0.12, feather: 12 }
|
|
66
|
+
}
|
|
67
|
+
}, l = {
|
|
68
|
+
wrinkles: y,
|
|
69
|
+
brightness: v,
|
|
70
|
+
spots: w,
|
|
71
|
+
acne: E,
|
|
72
|
+
firmness: C
|
|
73
|
+
};
|
|
74
|
+
function P(e) {
|
|
75
|
+
return l[e] || null;
|
|
76
|
+
}
|
|
77
|
+
const A = ["wrinkles", "brightness", "spots", "acne", "firmness"];
|
|
78
|
+
function B(e) {
|
|
79
|
+
var o, u, s, i;
|
|
80
|
+
const a = g.getProductConfig(e.id) || {}, t = e.filterType || a.webglConfig && a.webglConfig.filterType || "wrinkles", r = l[t] && l[t].defaults || { intensity: 0.5, sigma: 4, brightness: 0 }, n = l[t] && l[t].deep || {}, h = {
|
|
81
|
+
filterType: t,
|
|
82
|
+
intensity: e.defaultIntensity !== void 0 ? e.defaultIntensity : r.intensity,
|
|
83
|
+
sigma: e.defaultSigma !== void 0 ? e.defaultSigma : r.sigma,
|
|
84
|
+
brightness: e.defaultBrightness !== void 0 ? e.defaultBrightness : r.brightness,
|
|
85
|
+
contrast: typeof ((o = n.contrast) == null ? void 0 : o.value) == "number" ? n.contrast.value : 1,
|
|
86
|
+
warmthR: typeof ((u = n.warmth) == null ? void 0 : u.rPlus) == "number" ? n.warmth.rPlus : 0,
|
|
87
|
+
warmthB: typeof ((s = n.warmth) == null ? void 0 : s.bMinus) == "number" ? n.warmth.bMinus : 0,
|
|
88
|
+
warmthA: typeof ((i = n.warmth) == null ? void 0 : i.alpha) == "number" ? n.warmth.alpha : 0
|
|
89
|
+
}, d = a.webglConfig || {};
|
|
90
|
+
return { ...h, ...d, filterType: t };
|
|
91
|
+
}
|
|
92
|
+
const b = "mdfe2_", m = "md-face-engine", c = `-----BEGIN PUBLIC KEY-----
|
|
93
|
+
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEW9CHbTVvVXcm09wZIj6GKGaq8ae1
|
|
94
|
+
XGQAum9LBLgoT3+4q3xPc7W9KSw1z4xgfOByTi8OzdjbjEaF3VrHjzl05w==
|
|
95
|
+
-----END PUBLIC KEY-----`;
|
|
96
|
+
let f = null;
|
|
97
|
+
function p(e) {
|
|
98
|
+
const a = e.replace(/-/g, "+").replace(/_/g, "/"), t = a + "=".repeat((4 - a.length % 4) % 4);
|
|
99
|
+
return atob(t);
|
|
100
|
+
}
|
|
101
|
+
function L(e) {
|
|
102
|
+
const a = p(e), t = new Uint8Array(a.length);
|
|
103
|
+
for (let r = 0; r < a.length; r += 1)
|
|
104
|
+
t[r] = a.charCodeAt(r);
|
|
105
|
+
return t;
|
|
106
|
+
}
|
|
107
|
+
function T(e) {
|
|
108
|
+
const a = e.replace(/-----BEGIN PUBLIC KEY-----/g, "").replace(/-----END PUBLIC KEY-----/g, "").replace(/\s+/g, ""), t = atob(a), r = new Uint8Array(t.length);
|
|
109
|
+
for (let n = 0; n < t.length; n += 1)
|
|
110
|
+
r[n] = t.charCodeAt(n);
|
|
111
|
+
return r.buffer;
|
|
112
|
+
}
|
|
113
|
+
async function I(e = c) {
|
|
114
|
+
if (e === c && f)
|
|
115
|
+
return f;
|
|
116
|
+
const a = T(e), t = await crypto.subtle.importKey(
|
|
117
|
+
"spki",
|
|
118
|
+
a,
|
|
119
|
+
{ name: "ECDSA", namedCurve: "P-256" },
|
|
120
|
+
!1,
|
|
121
|
+
["verify"]
|
|
122
|
+
);
|
|
123
|
+
return e === c && (f = t), t;
|
|
124
|
+
}
|
|
125
|
+
async function F(e, a = {}) {
|
|
126
|
+
const {
|
|
127
|
+
now: t = Date.now(),
|
|
128
|
+
publicKeyPem: r = c,
|
|
129
|
+
allowExpired: n = !1
|
|
130
|
+
} = a;
|
|
131
|
+
if (!e || typeof e != "string")
|
|
132
|
+
return { valid: !1, reason: "Token vacío o inválido" };
|
|
133
|
+
if (!e.startsWith(b))
|
|
134
|
+
return { valid: !1, reason: "Prefijo de token inválido" };
|
|
135
|
+
const d = e.slice(b.length).split(".");
|
|
136
|
+
if (d.length !== 2)
|
|
137
|
+
return { valid: !1, reason: "Formato de token inválido" };
|
|
138
|
+
const [o, u] = d;
|
|
139
|
+
let s;
|
|
140
|
+
try {
|
|
141
|
+
s = JSON.parse(p(o));
|
|
142
|
+
} catch {
|
|
143
|
+
return { valid: !1, reason: "Payload de licencia inválido" };
|
|
144
|
+
}
|
|
145
|
+
try {
|
|
146
|
+
const i = await I(r);
|
|
147
|
+
if (!await crypto.subtle.verify(
|
|
148
|
+
{ name: "ECDSA", hash: "SHA-256" },
|
|
149
|
+
i,
|
|
150
|
+
L(u),
|
|
151
|
+
new TextEncoder().encode(o)
|
|
152
|
+
))
|
|
153
|
+
return { valid: !1, reason: "Firma de licencia inválida" };
|
|
154
|
+
} catch {
|
|
155
|
+
return { valid: !1, reason: "Error verificando firma de licencia" };
|
|
156
|
+
}
|
|
157
|
+
return s.productCode !== m ? { valid: !1, reason: "Licencia de otro producto" } : !n && (typeof s.exp != "number" || s.exp < t) ? { valid: !1, reason: "Licencia vencida", payload: s } : { valid: !0, reason: null, payload: s };
|
|
158
|
+
}
|
|
159
|
+
class U {
|
|
160
|
+
constructor() {
|
|
161
|
+
this.license = null, this.activated = !1;
|
|
162
|
+
}
|
|
163
|
+
async activate(a) {
|
|
164
|
+
const t = await F(a);
|
|
165
|
+
if (!t.valid)
|
|
166
|
+
throw this.license = null, this.activated = !1, new Error(`Licencia inválida: ${t.reason}`);
|
|
167
|
+
return this.license = t.payload, this.activated = !0, t.payload;
|
|
168
|
+
}
|
|
169
|
+
isActivated() {
|
|
170
|
+
return this.activated;
|
|
171
|
+
}
|
|
172
|
+
assertActivated() {
|
|
173
|
+
if (!this.activated)
|
|
174
|
+
throw new Error("md-face-engine no está activado. Configura VITE_MD_FACE_ENGINE_TOKEN.");
|
|
175
|
+
}
|
|
176
|
+
getLicense() {
|
|
177
|
+
return this.assertActivated(), this.license;
|
|
178
|
+
}
|
|
179
|
+
getProductCode() {
|
|
180
|
+
return m;
|
|
181
|
+
}
|
|
182
|
+
getFilterRegistry() {
|
|
183
|
+
return this.assertActivated(), l;
|
|
184
|
+
}
|
|
185
|
+
getFilterOrder() {
|
|
186
|
+
return this.assertActivated(), A;
|
|
187
|
+
}
|
|
188
|
+
getFilter(a) {
|
|
189
|
+
return this.assertActivated(), P(a);
|
|
190
|
+
}
|
|
191
|
+
getFilterConfigManager() {
|
|
192
|
+
return this.assertActivated(), g;
|
|
193
|
+
}
|
|
194
|
+
buildWebglConfigForProduct(a) {
|
|
195
|
+
return this.assertActivated(), B(a);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
export {
|
|
199
|
+
U as MartidermEngine,
|
|
200
|
+
U as MdFaceEngine,
|
|
201
|
+
U as default
|
|
202
|
+
};
|
package/dist/client.cjs
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const client = require("./client-DimGdJ4Y.cjs");
|
|
4
|
-
exports.createMdFaceEngineClient = client.createMdFaceEngineClient;
|
|
5
|
-
//# sourceMappingURL=client.cjs.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DA_YlCTl.cjs");exports.createLandmarkDetector=e.createLandmarkDetector;exports.createMdFaceEngineClient=e.createMdFaceEngineClient;exports.createMdFaceEngineRuntime=e.createMdFaceEngineRuntime;
|
package/dist/client.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { c } from "./
|
|
1
|
+
import { b as t, c, a as n } from "./index-Bdxo13gP.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
t as createLandmarkDetector,
|
|
4
|
+
c as createMdFaceEngineClient,
|
|
5
|
+
n as createMdFaceEngineRuntime
|
|
4
6
|
};
|
|
5
|
-
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";function s3(x,u2){for(var $=0;$<u2.length;$++){const Z=u2[$];if(typeof Z!="string"&&!Array.isArray(Z)){for(const N in Z)if(N!=="default"&&!(N in x)){const G=Object.getOwnPropertyDescriptor(Z,N);G&&Object.defineProperty(x,N,G.get?G:{enumerable:!0,get:()=>Z[N]})}}}return Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}var P2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},y1={};(function(){var x;function u2(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}var $=typeof Object.defineProperties=="function"?Object.defineProperty:function(t,e,r){return t==Array.prototype||t==Object.prototype||(t[e]=r.value),t};function Z(t){t=[typeof globalThis=="object"&&globalThis,t,typeof window=="object"&&window,typeof self=="object"&&self,typeof P2=="object"&&P2];for(var e=0;e<t.length;++e){var r=t[e];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")}var N=Z(this);function G(t,e){if(e)t:{var r=N;t=t.split(".");for(var n=0;n<t.length-1;n++){var i=t[n];if(!(i in r))break t;r=r[i]}t=t[t.length-1],n=r[t],e=e(n),e!=n&&e!=null&&$(r,t,{configurable:!0,writable:!0,value:e})}}G("Symbol",function(t){function e(u){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new r(n+(u||"")+"_"+i++,u)}function r(u,o){this.g=u,$(this,"description",{configurable:!0,writable:!0,value:o})}if(t)return t;r.prototype.toString=function(){return this.g};var n="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",i=0;return e}),G("Symbol.iterator",function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),r=0;r<e.length;r++){var n=N[e[r]];typeof n=="function"&&typeof n.prototype[t]!="function"&&$(n.prototype,t,{configurable:!0,writable:!0,value:function(){return m1(u2(this))}})}return t});function m1(t){return t={next:t},t[Symbol.iterator]=function(){return this},t}function C(t){var e=typeof Symbol<"u"&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:u2(t)}}function Y(t){if(!(t instanceof Array)){t=C(t);for(var e,r=[];!(e=t.next()).done;)r.push(e.value);t=r}return t}var w1=typeof Object.create=="function"?Object.create:function(t){function e(){}return e.prototype=t,new e},A2;if(typeof Object.setPrototypeOf=="function")A2=Object.setPrototypeOf;else{var _2;t:{var A1={a:!0},U2={};try{U2.__proto__=A1,_2=U2.a;break t}catch{}_2=!1}A2=_2?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var h2=A2;function J(t,e){if(t.prototype=w1(e.prototype),t.prototype.constructor=t,h2)h2(t,e);else for(var r in e)if(r!="prototype")if(Object.defineProperties){var n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n)}else t[r]=e[r];t.ea=e.prototype}function b2(){this.l=!1,this.i=null,this.h=void 0,this.g=1,this.s=this.m=0,this.j=null}function E2(t){if(t.l)throw new TypeError("Generator is already running");t.l=!0}b2.prototype.o=function(t){this.h=t};function j2(t,e){t.j={U:e,V:!0},t.g=t.m||t.s}b2.prototype.return=function(t){this.j={return:t},this.g=this.s};function S(t,e,r){return t.g=r,{value:e}}function _1(t){this.g=new b2,this.h=t}function b1(t,e){E2(t.g);var r=t.g.i;return r?O2(t,"return"in r?r.return:function(n){return{value:n,done:!0}},e,t.g.return):(t.g.return(e),s2(t))}function O2(t,e,r,n){try{var i=e.call(t.g.i,r);if(!(i instanceof Object))throw new TypeError("Iterator result "+i+" is not an object");if(!i.done)return t.g.l=!1,i;var u=i.value}catch(o){return t.g.i=null,j2(t.g,o),s2(t)}return t.g.i=null,n.call(t.g,u),s2(t)}function s2(t){for(;t.g.g;)try{var e=t.h(t.g);if(e)return t.g.l=!1,{value:e.value,done:!1}}catch(r){t.g.h=void 0,j2(t.g,r)}if(t.g.l=!1,t.g.j){if(e=t.g.j,t.g.j=null,e.V)throw e.U;return{value:e.return,done:!0}}return{value:void 0,done:!0}}function E1(t){this.next=function(e){return E2(t.g),t.g.i?e=O2(t,t.g.i.next,e,t.g.o):(t.g.o(e),e=s2(t)),e},this.throw=function(e){return E2(t.g),t.g.i?e=O2(t,t.g.i.throw,e,t.g.o):(j2(t.g,e),e=s2(t)),e},this.return=function(e){return b1(t,e)},this[Symbol.iterator]=function(){return this}}function M(t,e){return e=new E1(new _1(e)),h2&&t.prototype&&h2(e,t.prototype),e}function j1(t,e){t instanceof String&&(t+="");var r=0,n=!1,i={next:function(){if(!n&&r<t.length){var u=r++;return{value:e(u,t[u]),done:!1}}return n=!0,{done:!0,value:void 0}}};return i[Symbol.iterator]=function(){return i},i}var O1=typeof Object.assign=="function"?Object.assign:function(t,e){for(var r=1;r<arguments.length;r++){var n=arguments[r];if(n)for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};G("Object.assign",function(t){return t||O1}),G("Promise",function(t){function e(o){this.h=0,this.i=void 0,this.g=[],this.o=!1;var s=this.j();try{o(s.resolve,s.reject)}catch(a){s.reject(a)}}function r(){this.g=null}function n(o){return o instanceof e?o:new e(function(s){s(o)})}if(t)return t;r.prototype.h=function(o){if(this.g==null){this.g=[];var s=this;this.i(function(){s.l()})}this.g.push(o)};var i=N.setTimeout;r.prototype.i=function(o){i(o,0)},r.prototype.l=function(){for(;this.g&&this.g.length;){var o=this.g;this.g=[];for(var s=0;s<o.length;++s){var a=o[s];o[s]=null;try{a()}catch(f){this.j(f)}}}this.g=null},r.prototype.j=function(o){this.i(function(){throw o})},e.prototype.j=function(){function o(f){return function(c){a||(a=!0,f.call(s,c))}}var s=this,a=!1;return{resolve:o(this.C),reject:o(this.l)}},e.prototype.C=function(o){if(o===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(o instanceof e)this.F(o);else{t:switch(typeof o){case"object":var s=o!=null;break t;case"function":s=!0;break t;default:s=!1}s?this.u(o):this.m(o)}},e.prototype.u=function(o){var s=void 0;try{s=o.then}catch(a){this.l(a);return}typeof s=="function"?this.G(s,o):this.m(o)},e.prototype.l=function(o){this.s(2,o)},e.prototype.m=function(o){this.s(1,o)},e.prototype.s=function(o,s){if(this.h!=0)throw Error("Cannot settle("+o+", "+s+"): Promise already settled in state"+this.h);this.h=o,this.i=s,this.h===2&&this.D(),this.A()},e.prototype.D=function(){var o=this;i(function(){if(o.B()){var s=N.console;typeof s<"u"&&s.error(o.i)}},1)},e.prototype.B=function(){if(this.o)return!1;var o=N.CustomEvent,s=N.Event,a=N.dispatchEvent;return typeof a>"u"?!0:(typeof o=="function"?o=new o("unhandledrejection",{cancelable:!0}):typeof s=="function"?o=new s("unhandledrejection",{cancelable:!0}):(o=N.document.createEvent("CustomEvent"),o.initCustomEvent("unhandledrejection",!1,!0,o)),o.promise=this,o.reason=this.i,a(o))},e.prototype.A=function(){if(this.g!=null){for(var o=0;o<this.g.length;++o)u.h(this.g[o]);this.g=null}};var u=new r;return e.prototype.F=function(o){var s=this.j();o.J(s.resolve,s.reject)},e.prototype.G=function(o,s){var a=this.j();try{o.call(s,a.resolve,a.reject)}catch(f){a.reject(f)}},e.prototype.then=function(o,s){function a(d,g){return typeof d=="function"?function(l){try{f(d(l))}catch(h){c(h)}}:g}var f,c,j=new e(function(d,g){f=d,c=g});return this.J(a(o,f),a(s,c)),j},e.prototype.catch=function(o){return this.then(void 0,o)},e.prototype.J=function(o,s){function a(){switch(f.h){case 1:o(f.i);break;case 2:s(f.i);break;default:throw Error("Unexpected state: "+f.h)}}var f=this;this.g==null?u.h(a):this.g.push(a),this.o=!0},e.resolve=n,e.reject=function(o){return new e(function(s,a){a(o)})},e.race=function(o){return new e(function(s,a){for(var f=C(o),c=f.next();!c.done;c=f.next())n(c.value).J(s,a)})},e.all=function(o){var s=C(o),a=s.next();return a.done?n([]):new e(function(f,c){function j(l){return function(h){d[l]=h,g--,g==0&&f(d)}}var d=[],g=0;do d.push(void 0),g++,n(a.value).J(j(d.length-1),c),a=s.next();while(!a.done)})},e}),G("Object.is",function(t){return t||function(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}}),G("Array.prototype.includes",function(t){return t||function(e,r){var n=this;n instanceof String&&(n=String(n));var i=n.length;for(r=r||0,0>r&&(r=Math.max(r+i,0));r<i;r++){var u=n[r];if(u===e||Object.is(u,e))return!0}return!1}}),G("String.prototype.includes",function(t){return t||function(e,r){if(this==null)throw new TypeError("The 'this' value for String.prototype.includes must not be null or undefined");if(e instanceof RegExp)throw new TypeError("First argument to String.prototype.includes must not be a regular expression");return this.indexOf(e,r||0)!==-1}}),G("Array.prototype.keys",function(t){return t||function(){return j1(this,function(e){return e})}});var T1=this||self;function L(t,e){t=t.split(".");var r=T1;t[0]in r||typeof r.execScript>"u"||r.execScript("var "+t[0]);for(var n;t.length&&(n=t.shift());)t.length||e===void 0?r[n]&&r[n]!==Object.prototype[n]?r=r[n]:r=r[n]={}:r[n]=e}function N2(t,e){return e=String.fromCharCode.apply(null,e),t==null?e:t+e}var C2,k1=typeof TextDecoder<"u",G2,x1=typeof TextEncoder<"u";function I2(t){if(x1)t=(G2||(G2=new TextEncoder)).encode(t);else{var e=void 0;e=e===void 0?!1:e;for(var r=0,n=new Uint8Array(3*t.length),i=0;i<t.length;i++){var u=t.charCodeAt(i);if(128>u)n[r++]=u;else{if(2048>u)n[r++]=u>>6|192;else{if(55296<=u&&57343>=u){if(56319>=u&&i<t.length){var o=t.charCodeAt(++i);if(56320<=o&&57343>=o){u=1024*(u-55296)+o-56320+65536,n[r++]=u>>18|240,n[r++]=u>>12&63|128,n[r++]=u>>6&63|128,n[r++]=u&63|128;continue}else i--}if(e)throw Error("Found an unpaired surrogate");u=65533}n[r++]=u>>12|224,n[r++]=u>>6&63|128}n[r++]=u&63|128}}t=n.subarray(0,r)}return t}var B2={},a2=null;function S1(t,e){e===void 0&&(e=0),V2(),e=B2[e];for(var r=Array(Math.floor(t.length/3)),n=e[64]||"",i=0,u=0;i<t.length-2;i+=3){var o=t[i],s=t[i+1],a=t[i+2],f=e[o>>2];o=e[(o&3)<<4|s>>4],s=e[(s&15)<<2|a>>6],a=e[a&63],r[u++]=f+o+s+a}switch(f=0,a=n,t.length-i){case 2:f=t[i+1],a=e[(f&15)<<2]||n;case 1:t=t[i],r[u]=e[t>>2]+e[(t&3)<<4|f>>4]+a+n}return r.join("")}function R1(t){var e=t.length,r=3*e/4;r%3?r=Math.floor(r):"=.".indexOf(t[e-1])!=-1&&(r="=.".indexOf(t[e-2])!=-1?r-2:r-1);var n=new Uint8Array(r),i=0;return F1(t,function(u){n[i++]=u}),n.subarray(0,i)}function F1(t,e){function r(a){for(;n<t.length;){var f=t.charAt(n++),c=a2[f];if(c!=null)return c;if(!/^[\s\xa0]*$/.test(f))throw Error("Unknown base64 encoding at char: "+f)}return a}V2();for(var n=0;;){var i=r(-1),u=r(0),o=r(64),s=r(64);if(s===64&&i===-1)break;e(i<<2|u>>4),o!=64&&(e(u<<4&240|o>>2),s!=64&&e(o<<6&192|s))}}function V2(){if(!a2){a2={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var n=t.concat(e[r].split(""));B2[r]=n;for(var i=0;i<n.length;i++){var u=n[i];a2[u]===void 0&&(a2[u]=i)}}}}var L1=typeof Uint8Array.prototype.slice=="function",W2;function X2(t,e,r){return e===r?W2||(W2=new Uint8Array(0)):L1?t.slice(e,r):new Uint8Array(t.subarray(e,r))}var W=0,H=0;function e2(t,e){e=e===void 0?{}:e,e=e.v===void 0?!1:e.v,this.h=null,this.g=this.j=this.l=0,this.m=!1,this.v=e,t&&Y2(this,t)}function Y2(t,e){e=e.constructor===Uint8Array?e:e.constructor===ArrayBuffer?new Uint8Array(e):e.constructor===Array?new Uint8Array(e):e.constructor===String?R1(e):e instanceof Uint8Array?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t.h=e,t.l=0,t.j=t.h.length,t.g=t.l}e2.prototype.reset=function(){this.g=this.l};function g2(t){for(var e=128,r=0,n=0,i=0;4>i&&128<=e;i++)e=t.h[t.g++],r|=(e&127)<<7*i;if(128<=e&&(e=t.h[t.g++],r|=(e&127)<<28,n|=(e&127)>>4),128<=e)for(i=0;5>i&&128<=e;i++)e=t.h[t.g++],n|=(e&127)<<7*i+3;if(128>e)return t=r>>>0,e=n>>>0,(n=e&2147483648)&&(t=~t+1>>>0,e=~e>>>0,t==0&&(e=e+1>>>0)),t=4294967296*e+(t>>>0),n?-t:t;t.m=!0}e2.prototype.i=function(){var t=this.h,e=t[this.g],r=e&127;return 128>e?(this.g+=1,r):(e=t[this.g+1],r|=(e&127)<<7,128>e?(this.g+=2,r):(e=t[this.g+2],r|=(e&127)<<14,128>e?(this.g+=3,r):(e=t[this.g+3],r|=(e&127)<<21,128>e?(this.g+=4,r):(e=t[this.g+4],r|=(e&15)<<28,128>e?(this.g+=5,r>>>0):(this.g+=5,128<=t[this.g++]&&128<=t[this.g++]&&128<=t[this.g++]&&128<=t[this.g++]&&this.g++,r)))))},e2.prototype.o=function(){var t=this.h[this.g],e=this.h[this.g+1],r=this.h[this.g+2],n=this.h[this.g+3];return this.g+=4,r=(t<<0|e<<8|r<<16|n<<24)>>>0,t=2*(r>>31)+1,e=r>>>23&255,r&=8388607,e==255?r?NaN:1/0*t:e==0?t*Math.pow(2,-149)*r:t*Math.pow(2,e-150)*(r+Math.pow(2,23))};var J2=[];function p2(){this.g=new Uint8Array(64),this.h=0}p2.prototype.push=function(t){if(!(this.h+1<this.g.length)){var e=this.g;this.g=new Uint8Array(Math.ceil(1+2*this.g.length)),this.g.set(e)}this.g[this.h++]=t},p2.prototype.length=function(){return this.h},p2.prototype.end=function(){var t=this.g,e=this.h;return this.h=0,X2(t,0,e)};function D(t,e){for(;127<e;)t.push(e&127|128),e>>>=7;t.push(e)}function f2(t){var e={},r=e.N===void 0?!1:e.N;this.o={v:e.v===void 0?!1:e.v},this.N=r,e=this.o,J2.length?(r=J2.pop(),e&&(r.v=e.v),t&&Y2(r,t),t=r):t=new e2(t,e),this.g=t,this.m=this.g.g,this.h=this.i=this.l=-1,this.j=!1}f2.prototype.reset=function(){this.g.reset(),this.h=this.l=-1};function X(t){var e=t.g;if((e=e.g==e.j)||(e=t.j)||(e=t.g,e=e.m||0>e.g||e.g>e.j),e)return!1;t.m=t.g.g,e=t.g.i();var r=e&7;return r!=0&&r!=5&&r!=1&&r!=2&&r!=3&&r!=4?(t.j=!0,!1):(t.i=e,t.l=e>>>3,t.h=r,!0)}function r2(t){switch(t.h){case 0:if(t.h!=0)r2(t);else{for(t=t.g;t.h[t.g]&128;)t.g++;t.g++}break;case 1:t.h!=1?r2(t):(t=t.g,t.g+=8);break;case 2:if(t.h!=2)r2(t);else{var e=t.g.i();t=t.g,t.g+=e}break;case 5:t.h!=5?r2(t):(t=t.g,t.g+=4);break;case 3:e=t.l;do{if(!X(t)){t.j=!0;break}if(t.h==4){t.l!=e&&(t.j=!0);break}r2(t)}while(!0);break;default:t.j=!0}}function v2(t,e,r){var n=t.g.j,i=t.g.i(),u=t.g.g+i;if(t.g.j=u,r(e,t),r=u-t.g.g,r!==0)throw Error("Message parsing ended unexpectedly. Expected to read "+i+" bytes, instead read "+(i-r)+" bytes, either the data ended unexpectedly or the message misreported its own length");return t.g.g=u,t.g.j=n,e}function I(t){return t.g.o()}function H2(t){var e=t.g.i();t=t.g;var r=t.g;t.g+=e,t=t.h;var n;if(k1)(n=C2)||(n=C2=new TextDecoder("utf-8",{fatal:!1})),n=n.decode(t.subarray(r,r+e));else{e=r+e;for(var i=[],u=null,o,s,a;r<e;)o=t[r++],128>o?i.push(o):224>o?r>=e?i.push(65533):(s=t[r++],194>o||(s&192)!==128?(r--,i.push(65533)):i.push((o&31)<<6|s&63)):240>o?r>=e-1?i.push(65533):(s=t[r++],(s&192)!==128||o===224&&160>s||o===237&&160<=s||((n=t[r++])&192)!==128?(r--,i.push(65533)):i.push((o&15)<<12|(s&63)<<6|n&63)):244>=o?r>=e-2?i.push(65533):(s=t[r++],(s&192)!==128||(o<<28)+(s-144)>>30||((n=t[r++])&192)!==128||((a=t[r++])&192)!==128?(r--,i.push(65533)):(o=(o&7)<<18|(s&63)<<12|(n&63)<<6|a&63,o-=65536,i.push((o>>10&1023)+55296,(o&1023)+56320))):i.push(65533),8192<=i.length&&(u=N2(u,i),i.length=0);n=N2(u,i)}return n}function D2(t,e,r){var n=t.g.i();for(n=t.g.g+n;t.g.g<n;)r.push(e.call(t.g))}function K2(t,e){t.h==2?D2(t,e2.prototype.o,e):e.push(I(t))}function T2(){this.h=[],this.i=0,this.g=new p2}function n2(t,e){e.length!==0&&(t.h.push(e),t.i+=e.length)}function k2(t){var e=t.i+t.g.length();if(e===0)return new Uint8Array(0);e=new Uint8Array(e);for(var r=t.h,n=r.length,i=0,u=0;u<n;u++){var o=r[u];o.length!==0&&(e.set(o,i),i+=o.length)}return r=t.g,n=r.h,n!==0&&(e.set(r.g.subarray(0,n),i),r.h=0),t.h=[e],e}function B(t,e,r){if(r!=null){D(t.g,8*e+5),t=t.g;var n=r;n=(r=0>n?1:0)?-n:n,n===0?0<1/n?W=H=0:(H=0,W=2147483648):isNaN(n)?(H=0,W=2147483647):34028234663852886e22<n?(H=0,W=(r<<31|2139095040)>>>0):11754943508222875e-54>n?(n=Math.round(n/Math.pow(2,-149)),H=0,W=(r<<31|n)>>>0):(e=Math.floor(Math.log(n)/Math.LN2),n*=Math.pow(2,-e),n=Math.round(8388608*n),16777216<=n&&++e,H=0,W=(r<<31|e+127<<23|n&8388607)>>>0),r=W,t.push(r>>>0&255),t.push(r>>>8&255),t.push(r>>>16&255),t.push(r>>>24&255)}}var $2=typeof Uint8Array=="function";function Z2(t,e,r){if(t!=null)return typeof t=="object"?$2&&t instanceof Uint8Array?r(t):Q2(t,e,r):e(t)}function Q2(t,e,r){if(Array.isArray(t)){for(var n=Array(t.length),i=0;i<t.length;i++)n[i]=Z2(t[i],e,r);return Array.isArray(t)&&t.W&&l2(n),n}n={};for(i in t)n[i]=Z2(t[i],e,r);return n}function M1(t){return typeof t=="number"?isFinite(t)?t:String(t):t}var P1={W:{value:!0,configurable:!0}};function l2(t){return Array.isArray(t)&&!Object.isFrozen(t)&&Object.defineProperties(t,P1),t}var z2;function R(t,e,r){var n=z2;z2=null,t||(t=n),n=this.constructor.ca,t||(t=n?[n]:[]),this.j=n?0:-1,this.m=this.g=null,this.h=t;t:{if(n=this.h.length,t=n-1,n&&(n=this.h[t],!(n===null||typeof n!="object"||Array.isArray(n)||$2&&n instanceof Uint8Array))){this.l=t-this.j,this.i=n;break t}e!==void 0&&-1<e?(this.l=Math.max(e,t+1-this.j),this.i=null):this.l=Number.MAX_VALUE}if(r)for(e=0;e<r.length;e++)t=r[e],t<this.l?(t+=this.j,(n=this.h[t])?l2(n):this.h[t]=d2):(q2(this),(n=this.i[t])?l2(n):this.i[t]=d2)}var d2=Object.freeze(l2([]));function q2(t){var e=t.l+t.j;t.h[e]||(t.i=t.h[e]={})}function T(t,e,r){return e===-1?null:r!==void 0&&r||e>=t.l?t.i?t.i[e]:void 0:t.h[e+t.j]}function y2(t,e){var r=r===void 0?!1:r,n=T(t,e,r);return n==null&&(n=d2),n===d2&&(n=l2([]),m(t,e,n,r)),n}function t1(t){var e=y2(t,3);if(t.m||(t.m={}),!t.m[3]){for(var r=0;r<e.length;r++)e[r]=+e[r];t.m[3]=!0}return e}function Q(t,e,r){return t=T(t,e),t??r}function V(t,e,r){return t=T(t,e),t=t==null?t:+t,t??(r===void 0?0:r)}function m(t,e,r,n){n!==void 0&&n||e>=t.l?(q2(t),t.i[e]=r):t.h[e+t.j]=r}function e1(t,e,r){if(r===-1)return null;if(t.g||(t.g={}),!t.g[r]){var n=T(t,r,!1);n&&(t.g[r]=new e(n))}return t.g[r]}function m2(t,e){t.g||(t.g={});var r=t.g[1];if(!r){var n=y2(t,1);r=[];for(var i=0;i<n.length;i++)r[i]=new e(n[i]);t.g[1]=r}return r}function r1(t,e,r){var n=n===void 0?!1:n;t.g||(t.g={});var i=r&&z(r);t.g[e]=r,m(t,e,i,n)}function n1(t,e,r,n){var i=m2(t,r);e=e||new r,t=y2(t,1),n!=null?(i.splice(n,0,e),t.splice(n,0,z(e))):(i.push(e),t.push(z(e)))}R.prototype.toJSON=function(){var t=z(this);return Q2(t,M1,S1)};function z(t,e){if(t.g)for(var r in t.g){var n=t.g[r];if(Array.isArray(n))for(var i=0;i<n.length;i++)n[i]&&z(n[i]);else n&&z(n)}return t.h}R.prototype.toString=function(){return z(this).toString()};function x2(t,e){if(t=t.o){n2(e,e.g.end());for(var r=0;r<t.length;r++)n2(e,t[r])}}function K(t,e){if(e.h==4)return!1;var r=e.m;return r2(e),e.N||(e=X2(e.g.h,r,e.g.g),(r=t.o)?r.push(e):t.o=[e]),!0}function q(t){R.call(this,t,-1,N1)}J(q,R),q.prototype.getRows=function(){return T(this,1)},q.prototype.getCols=function(){return T(this,2)},q.prototype.getPackedDataList=function(){return t1(this)},q.prototype.getLayout=function(){return Q(this,4,0)};function U1(t,e){for(;X(e);)switch(e.i){case 8:var r=e.g.i();m(t,1,r);break;case 16:r=e.g.i(),m(t,2,r);break;case 29:case 26:K2(e,t.getPackedDataList());break;case 32:r=g2(e.g),m(t,4,r);break;default:if(!K(t,e))return t}return t}var N1=[3];function P(t,e){var r=void 0;return new(r||(r=Promise))(function(n,i){function u(a){try{s(e.next(a))}catch(f){i(f)}}function o(a){try{s(e.throw(a))}catch(f){i(f)}}function s(a){a.done?n(a.value):new r(function(f){f(a.value)}).then(u,o)}s((e=e.apply(t,void 0)).next())})}function c2(t){R.call(this,t)}J(c2,R);function C1(t,e){for(;X(e);)switch(e.i){case 8:var r=e.g.i();m(t,1,r);break;case 21:r=I(e),m(t,2,r);break;case 26:r=H2(e),m(t,3,r);break;case 34:r=H2(e),m(t,4,r);break;default:if(!K(t,e))return t}return t}function S2(t){R.call(this,t,-1,G1)}J(S2,R),S2.prototype.addClassification=function(t,e){return n1(this,t,c2,e),this};var G1=[1];function i2(t){R.call(this,t)}J(i2,R);function I1(t,e){for(;X(e);)switch(e.i){case 13:var r=I(e);m(t,1,r);break;case 21:r=I(e),m(t,2,r);break;case 29:r=I(e),m(t,3,r);break;case 37:r=I(e),m(t,4,r);break;case 45:r=I(e),m(t,5,r);break;default:if(!K(t,e))return t}return t}function i1(t){R.call(this,t,-1,B1)}J(i1,R);function o1(t){t:{var e=new i1;for(t=new f2(t);X(t);)switch(t.i){case 10:var r=v2(t,new i2,I1);n1(e,r,i2,void 0);break;default:if(!K(e,t))break t}}return e}var B1=[1];function R2(t){R.call(this,t)}J(R2,R);function t2(t){R.call(this,t,-1,W1)}J(t2,R),t2.prototype.getVertexType=function(){return Q(this,1,0)},t2.prototype.getPrimitiveType=function(){return Q(this,2,0)},t2.prototype.getVertexBufferList=function(){return t1(this)},t2.prototype.getIndexBufferList=function(){return y2(this,4)};function V1(t,e){for(;X(e);)switch(e.i){case 8:var r=g2(e.g);m(t,1,r);break;case 16:r=g2(e.g),m(t,2,r);break;case 29:case 26:K2(e,t.getVertexBufferList());break;case 32:case 34:r=e;var n=t.getIndexBufferList();r.h==2?D2(r,e2.prototype.i,n):n.push(r.g.i());break;default:if(!K(t,e))return t}return t}var W1=[3,4];function w2(t){R.call(this,t)}J(w2,R),w2.prototype.getMesh=function(){return e1(this,t2,1)},w2.prototype.getPoseTransformMatrix=function(){return e1(this,q,2)};function X1(t){t:{var e=new w2;for(t=new f2(t);X(t);)switch(t.i){case 10:var r=v2(t,new t2,V1);r1(e,1,r);break;case 18:r=v2(t,new q,U1),r1(e,2,r);break;default:if(!K(e,t))break t}}return e}function u1(t,e,r){if(r=t.createShader(r===0?t.VERTEX_SHADER:t.FRAGMENT_SHADER),t.shaderSource(r,e),t.compileShader(r),!t.getShaderParameter(r,t.COMPILE_STATUS))throw Error(`Could not compile WebGL shader.
|
|
2
|
+
|
|
3
|
+
`+t.getShaderInfoLog(r));return r}function Y1(t){return m2(t,c2).map(function(e){return{index:Q(e,1,0),Y:V(e,2),label:T(e,3)!=null?Q(e,3,""):void 0,displayName:T(e,4)!=null?Q(e,4,""):void 0}})}function s1(t){return{x:V(t,1),y:V(t,2),z:V(t,3),visibility:T(t,4)!=null?V(t,4):void 0}}function F2(t,e){this.h=t,this.g=e,this.l=0}function a1(t,e,r){return J1(t,e),typeof t.g.canvas.transferToImageBitmap=="function"?Promise.resolve(t.g.canvas.transferToImageBitmap()):r?Promise.resolve(t.g.canvas):typeof createImageBitmap=="function"?createImageBitmap(t.g.canvas):(t.i===void 0&&(t.i=document.createElement("canvas")),new Promise(function(n){t.i.height=t.g.canvas.height,t.i.width=t.g.canvas.width,t.i.getContext("2d",{}).drawImage(t.g.canvas,0,0,t.g.canvas.width,t.g.canvas.height),n(t.i)}))}function J1(t,e){var r=t.g;if(t.m===void 0){var n=u1(r,`
|
|
4
|
+
attribute vec2 aVertex;
|
|
5
|
+
attribute vec2 aTex;
|
|
6
|
+
varying vec2 vTex;
|
|
7
|
+
void main(void) {
|
|
8
|
+
gl_Position = vec4(aVertex, 0.0, 1.0);
|
|
9
|
+
vTex = aTex;
|
|
10
|
+
}`,0),i=u1(r,`
|
|
11
|
+
precision mediump float;
|
|
12
|
+
varying vec2 vTex;
|
|
13
|
+
uniform sampler2D sampler0;
|
|
14
|
+
void main(){
|
|
15
|
+
gl_FragColor = texture2D(sampler0, vTex);
|
|
16
|
+
}`,1),u=r.createProgram();if(r.attachShader(u,n),r.attachShader(u,i),r.linkProgram(u),!r.getProgramParameter(u,r.LINK_STATUS))throw Error(`Could not compile WebGL program.
|
|
17
|
+
|
|
18
|
+
`+r.getProgramInfoLog(u));n=t.m=u,r.useProgram(n),i=r.getUniformLocation(n,"sampler0"),t.j={I:r.getAttribLocation(n,"aVertex"),H:r.getAttribLocation(n,"aTex"),da:i},t.s=r.createBuffer(),r.bindBuffer(r.ARRAY_BUFFER,t.s),r.enableVertexAttribArray(t.j.I),r.vertexAttribPointer(t.j.I,2,r.FLOAT,!1,0,0),r.bufferData(r.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),r.STATIC_DRAW),r.bindBuffer(r.ARRAY_BUFFER,null),t.o=r.createBuffer(),r.bindBuffer(r.ARRAY_BUFFER,t.o),r.enableVertexAttribArray(t.j.H),r.vertexAttribPointer(t.j.H,2,r.FLOAT,!1,0,0),r.bufferData(r.ARRAY_BUFFER,new Float32Array([0,1,0,0,1,0,1,1]),r.STATIC_DRAW),r.bindBuffer(r.ARRAY_BUFFER,null),r.uniform1i(i,0)}n=t.j,r.useProgram(t.m),r.canvas.width=e.width,r.canvas.height=e.height,r.viewport(0,0,e.width,e.height),r.activeTexture(r.TEXTURE0),t.h.bindTexture2d(e.glName),r.enableVertexAttribArray(n.I),r.bindBuffer(r.ARRAY_BUFFER,t.s),r.vertexAttribPointer(n.I,2,r.FLOAT,!1,0,0),r.enableVertexAttribArray(n.H),r.bindBuffer(r.ARRAY_BUFFER,t.o),r.vertexAttribPointer(n.H,2,r.FLOAT,!1,0,0),r.bindFramebuffer(r.DRAW_FRAMEBUFFER?r.DRAW_FRAMEBUFFER:r.FRAMEBUFFER,null),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),r.colorMask(!0,!0,!0,!0),r.drawArrays(r.TRIANGLE_FAN,0,4),r.disableVertexAttribArray(n.I),r.disableVertexAttribArray(n.H),r.bindBuffer(r.ARRAY_BUFFER,null),t.h.bindTexture2d(0)}function H1(t){this.g=t}var D1=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]);function K1(t,e){return e+t}function f1(t,e){window[t]=e}function $1(t){var e=document.createElement("script");return e.setAttribute("src",t),e.setAttribute("crossorigin","anonymous"),new Promise(function(r){e.addEventListener("load",function(){r()},!1),e.addEventListener("error",function(){r()},!1),document.body.appendChild(e)})}function Z1(){return P(this,function t(){return M(t,function(e){switch(e.g){case 1:return e.m=2,S(e,WebAssembly.instantiate(D1),4);case 4:e.g=3,e.m=0;break;case 2:return e.m=0,e.j=null,e.return(!1);case 3:return e.return(!0)}})})}function L2(t){if(this.g=t,this.listeners={},this.j={},this.F={},this.m={},this.s={},this.G=this.o=this.R=!0,this.C=Promise.resolve(),this.P="",this.B={},this.locateFile=t&&t.locateFile||K1,typeof window=="object")var e=window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/";else if(typeof location<"u")e=location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/";else throw Error("solutions can only be loaded on a web page or in a web worker");if(this.S=e,t.options){e=C(Object.keys(t.options));for(var r=e.next();!r.done;r=e.next()){r=r.value;var n=t.options[r].default;n!==void 0&&(this.j[r]=typeof n=="function"?n():n)}}}x=L2.prototype,x.close=function(){return this.i&&this.i.delete(),Promise.resolve()};function Q1(t,e){return t.g.files===void 0?[]:typeof t.g.files=="function"?t.g.files(e):t.g.files}function z1(t){return P(t,function e(){var r=this,n,i,u,o,s,a,f,c,j,d,g;return M(e,function(l){switch(l.g){case 1:return n=r,r.R?(i=Q1(r,r.j),S(l,Z1(),2)):l.return();case 2:if(u=l.h,typeof window=="object")return f1("createMediapipeSolutionsWasm",{locateFile:r.locateFile}),f1("createMediapipeSolutionsPackedAssets",{locateFile:r.locateFile}),a=i.filter(function(h){return h.data!==void 0}),f=i.filter(function(h){return h.data===void 0}),c=Promise.all(a.map(function(h){var v=M2(n,h.url);if(h.path!==void 0){var w=h.path;v=v.then(function(F){return n.overrideFile(w,F),Promise.resolve(F)})}return v})),j=Promise.all(f.map(function(h){return h.simd===void 0||h.simd&&u||!h.simd&&!u?$1(n.locateFile(h.url,n.S)):Promise.resolve()})).then(function(){return P(n,function h(){var v,w,F=this;return M(h,function(O){if(O.g==1)return v=window.createMediapipeSolutionsWasm,w=window.createMediapipeSolutionsPackedAssets,S(O,v(w),2);F.h=O.h,O.g=0})})}),d=function(){return P(n,function h(){var v=this;return M(h,function(w){return v.g.graph&&v.g.graph.url?w=S(w,M2(v,v.g.graph.url),0):(w.g=0,w=void 0),w})})}(),S(l,Promise.all([j,c,d]),7);if(typeof importScripts!="function")throw Error("solutions can only be loaded on a web page or in a web worker");return o=i.filter(function(h){return h.simd===void 0||h.simd&&u||!h.simd&&!u}).map(function(h){return n.locateFile(h.url,n.S)}),importScripts.apply(null,Y(o)),S(l,createMediapipeSolutionsWasm(Module),6);case 6:r.h=l.h,r.l=new OffscreenCanvas(1,1),r.h.canvas=r.l,s=r.h.GL.createContext(r.l,{antialias:!1,alpha:!1,ba:typeof WebGL2RenderingContext<"u"?2:1}),r.h.GL.makeContextCurrent(s),l.g=4;break;case 7:if(r.l=document.createElement("canvas"),g=r.l.getContext("webgl2",{}),!g&&(g=r.l.getContext("webgl",{}),!g))return alert("Failed to create WebGL canvas context when passing video frame."),l.return();r.D=g,r.h.canvas=r.l,r.h.createContext(r.l,!0,!0,{});case 4:r.i=new r.h.SolutionWasm,r.R=!1,l.g=0}})})}function q1(t){return P(t,function e(){var r=this,n,i,u,o,s,a,f,c;return M(e,function(j){if(j.g==1){if(r.g.graph&&r.g.graph.url&&r.P===r.g.graph.url)return j.return();if(r.o=!0,!r.g.graph||!r.g.graph.url){j.g=2;return}return r.P=r.g.graph.url,S(j,M2(r,r.g.graph.url),3)}for(j.g!=2&&(n=j.h,r.i.loadGraph(n)),i=C(Object.keys(r.B)),u=i.next();!u.done;u=i.next())o=u.value,r.i.overrideFile(o,r.B[o]);if(r.B={},r.g.listeners)for(s=C(r.g.listeners),a=s.next();!a.done;a=s.next())f=a.value,n3(r,f);c=r.j,r.j={},r.setOptions(c),j.g=0})})}x.reset=function(){return P(this,function t(){var e=this;return M(t,function(r){e.i&&(e.i.reset(),e.m={},e.s={}),r.g=0})})},x.setOptions=function(t,e){var r=this;if(e=e||this.g.options){for(var n=[],i=[],u={},o=C(Object.keys(t)),s=o.next();!s.done;u={K:u.K,L:u.L},s=o.next()){var a=s.value;a in this.j&&this.j[a]===t[a]||(this.j[a]=t[a],s=e[a],s!==void 0&&(s.onChange&&(u.K=s.onChange,u.L=t[a],n.push(function(f){return function(){return P(r,function c(){var j,d=this;return M(c,function(g){if(g.g==1)return S(g,f.K(f.L),2);j=g.h,j===!0&&(d.o=!0),g.g=0})})}}(u))),s.graphOptionXref&&(a={valueNumber:s.type===1?t[a]:0,valueBoolean:s.type===0?t[a]:!1,valueString:s.type===2?t[a]:""},s=Object.assign(Object.assign(Object.assign({},{calculatorName:"",calculatorIndex:0}),s.graphOptionXref),a),i.push(s))))}(n.length!==0||i.length!==0)&&(this.o=!0,this.A=(this.A===void 0?[]:this.A).concat(i),this.u=(this.u===void 0?[]:this.u).concat(n))}};function t3(t){return P(t,function e(){var r=this,n,i,u,o,s,a,f;return M(e,function(c){switch(c.g){case 1:if(!r.o)return c.return();if(!r.u){c.g=2;break}n=C(r.u),i=n.next();case 3:if(i.done){c.g=5;break}return u=i.value,S(c,u(),4);case 4:i=n.next(),c.g=3;break;case 5:r.u=void 0;case 2:if(r.A){for(o=new r.h.GraphOptionChangeRequestList,s=C(r.A),a=s.next();!a.done;a=s.next())f=a.value,o.push_back(f);r.i.changeOptions(o),o.delete(),r.A=void 0}r.o=!1,c.g=0}})})}x.initialize=function(){return P(this,function t(){var e=this;return M(t,function(r){return r.g==1?S(r,z1(e),2):r.g!=3?S(r,q1(e),3):S(r,t3(e),0)})})};function M2(t,e){return P(t,function r(){var n=this,i,u;return M(r,function(o){return e in n.F?o.return(n.F[e]):(i=n.locateFile(e,""),u=fetch(i).then(function(s){return s.arrayBuffer()}),n.F[e]=u,o.return(u))})})}x.overrideFile=function(t,e){this.i?this.i.overrideFile(t,e):this.B[t]=e},x.clearOverriddenFiles=function(){this.B={},this.i&&this.i.clearOverriddenFiles()},x.send=function(t,e){return P(this,function r(){var n=this,i,u,o,s,a,f,c,j,d;return M(r,function(g){switch(g.g){case 1:return n.g.inputs?(i=1e3*(e??performance.now()),S(g,n.C,2)):g.return();case 2:return S(g,n.initialize(),3);case 3:for(u=new n.h.PacketDataList,o=C(Object.keys(t)),s=o.next();!s.done;s=o.next())if(a=s.value,f=n.g.inputs[a]){t:{var l=n,h=t[a];switch(f.type){case"video":var v=l.m[f.stream];if(v||(v=new F2(l.h,l.D),l.m[f.stream]=v),l=v,l.l===0&&(l.l=l.h.createTexture()),typeof HTMLVideoElement<"u"&&h instanceof HTMLVideoElement){var w=h.videoWidth;v=h.videoHeight}else typeof HTMLImageElement<"u"&&h instanceof HTMLImageElement?(w=h.naturalWidth,v=h.naturalHeight):(w=h.width,v=h.height);v={glName:l.l,width:w,height:v},w=l.g,w.canvas.width=v.width,w.canvas.height=v.height,w.activeTexture(w.TEXTURE0),l.h.bindTexture2d(l.l),w.texImage2D(w.TEXTURE_2D,0,w.RGBA,w.RGBA,w.UNSIGNED_BYTE,h),l.h.bindTexture2d(0),l=v;break t;case"detections":for(v=l.m[f.stream],v||(v=new H1(l.h),l.m[f.stream]=v),l=v,l.data||(l.data=new l.g.DetectionListData),l.data.reset(h.length),v=0;v<h.length;++v){w=h[v];var F=l.data,O=F.setBoundingBox,U=v,k=w.T,p=new R2;m(p,1,k.Z),m(p,2,k.$),m(p,3,k.height),m(p,4,k.width),m(p,5,k.rotation),m(p,6,k.X);var A=k=new T2;B(A,1,T(p,1)),B(A,2,T(p,2)),B(A,3,T(p,3)),B(A,4,T(p,4)),B(A,5,T(p,5));var b=T(p,6);if(b!=null&&b!=null){D(A.g,48);var y=A.g,_=b;b=0>_,_=Math.abs(_);var E=_>>>0;for(_=Math.floor((_-E)/4294967296),_>>>=0,b&&(_=~_>>>0,E=(~E>>>0)+1,4294967295<E&&(E=0,_++,4294967295<_&&(_=0))),W=E,H=_,b=W,E=H;0<E||127<b;)y.push(b&127|128),b=(b>>>7|E<<25)>>>0,E>>>=7;y.push(b)}if(x2(p,A),k=k2(k),O.call(F,U,k),w.O)for(F=0;F<w.O.length;++F)p=w.O[F],A=!!p.visibility,O=l.data,U=O.addNormalizedLandmark,k=v,p=Object.assign(Object.assign({},p),{visibility:A?p.visibility:0}),A=new i2,m(A,1,p.x),m(A,2,p.y),m(A,3,p.z),p.visibility&&m(A,4,p.visibility),y=p=new T2,B(y,1,T(A,1)),B(y,2,T(A,2)),B(y,3,T(A,3)),B(y,4,T(A,4)),B(y,5,T(A,5)),x2(A,y),p=k2(p),U.call(O,k,p);if(w.M)for(F=0;F<w.M.length;++F){if(O=l.data,U=O.addClassification,k=v,p=w.M[F],A=new c2,m(A,2,p.Y),p.index&&m(A,1,p.index),p.label&&m(A,3,p.label),p.displayName&&m(A,4,p.displayName),y=p=new T2,E=T(A,1),E!=null&&E!=null)if(D(y.g,8),b=y.g,0<=E)D(b,E);else{for(_=0;9>_;_++)b.push(E&127|128),E>>=7;b.push(1)}B(y,2,T(A,2)),b=T(A,3),b!=null&&(b=I2(b),D(y.g,26),D(y.g,b.length),n2(y,y.g.end()),n2(y,b)),b=T(A,4),b!=null&&(b=I2(b),D(y.g,34),D(y.g,b.length),n2(y,y.g.end()),n2(y,b)),x2(A,y),p=k2(p),U.call(O,k,p)}}l=l.data;break t;default:l={}}}switch(c=l,j=f.stream,f.type){case"video":u.pushTexture2d(Object.assign(Object.assign({},c),{stream:j,timestamp:i}));break;case"detections":d=c,d.stream=j,d.timestamp=i,u.pushDetectionList(d);break;default:throw Error("Unknown input config type: '"+f.type+"'")}}return n.i.send(u),S(g,n.C,4);case 4:u.delete(),g.g=0}})})};function e3(t,e,r){return P(t,function n(){var i,u,o,s,a,f,c=this,j,d,g,l,h,v,w,F;return M(n,function(O){switch(O.g){case 1:if(!r)return O.return(e);for(i={},u=0,o=C(Object.keys(r)),s=o.next();!s.done;s=o.next())a=s.value,f=r[a],typeof f!="string"&&f.type==="texture"&&e[f.stream]!==void 0&&++u;1<u&&(c.G=!1),j=C(Object.keys(r)),s=j.next();case 2:if(s.done){O.g=4;break}if(d=s.value,g=r[d],typeof g=="string")return w=i,F=d,S(O,r3(c,d,e[g]),14);if(l=e[g.stream],g.type==="detection_list"){if(l){for(var U=l.getRectList(),k=l.getLandmarksList(),p=l.getClassificationsList(),A=[],b=0;b<U.size();++b){var y=U.get(b);t:{var _=new R2;for(y=new f2(y);X(y);)switch(y.i){case 13:var E=I(y);m(_,1,E);break;case 21:E=I(y),m(_,2,E);break;case 29:E=I(y),m(_,3,E);break;case 37:E=I(y),m(_,4,E);break;case 45:E=I(y),m(_,5,E);break;case 48:E=g2(y.g),m(_,6,E);break;default:if(!K(_,y))break t}}_={Z:V(_,1),$:V(_,2),height:V(_,3),width:V(_,4),rotation:V(_,5,0),X:Q(_,6,0)},y=m2(o1(k.get(b)),i2).map(s1);var o2=p.get(b);t:for(E=new S2,o2=new f2(o2);X(o2);)switch(o2.i){case 10:E.addClassification(v2(o2,new c2,C1));break;default:if(!K(E,o2))break t}_={T:_,O:y,M:Y1(E)},A.push(_)}U=A}else U=[];i[d]=U,O.g=7;break}if(g.type==="proto_list"){if(l){for(U=Array(l.size()),k=0;k<l.size();k++)U[k]=l.get(k);l.delete()}else U=[];i[d]=U,O.g=7;break}if(l===void 0){O.g=3;break}if(g.type==="float_list"){i[d]=l,O.g=7;break}if(g.type==="proto"){i[d]=l,O.g=7;break}if(g.type!=="texture")throw Error("Unknown output config type: '"+g.type+"'");return h=c.s[d],h||(h=new F2(c.h,c.D),c.s[d]=h),S(O,a1(h,l,c.G),13);case 13:v=O.h,i[d]=v;case 7:g.transform&&i[d]&&(i[d]=g.transform(i[d])),O.g=3;break;case 14:w[F]=O.h;case 3:s=j.next(),O.g=2;break;case 4:return O.return(i)}})})}function r3(t,e,r){return P(t,function n(){var i=this,u;return M(n,function(o){return typeof r=="number"||r instanceof Uint8Array||r instanceof i.h.Uint8BlobList?o.return(r):r instanceof i.h.Texture2dDataOut?(u=i.s[e],u||(u=new F2(i.h,i.D),i.s[e]=u),o.return(a1(u,r,i.G))):o.return(void 0)})})}function n3(t,e){for(var r=e.name||"$",n=[].concat(Y(e.wants)),i=new t.h.StringList,u=C(e.wants),o=u.next();!o.done;o=u.next())i.push_back(o.value);u=t.h.PacketListener.implement({onResults:function(s){for(var a={},f=0;f<e.wants.length;++f)a[n[f]]=s.get(f);var c=t.listeners[r];c&&(t.C=e3(t,a,e.outs).then(function(j){j=c(j);for(var d=0;d<e.wants.length;++d){var g=a[n[d]];typeof g=="object"&&g.hasOwnProperty&&g.hasOwnProperty("delete")&&g.delete()}j&&(t.C=j)}))}}),t.i.attachMultiListener(i,u),i.delete()}x.onResults=function(t,e){this.listeners[e||"$"]=t},L("Solution",L2),L("OptionType",{BOOL:0,NUMBER:1,aa:2,0:"BOOL",1:"NUMBER",2:"STRING"});function i3(t){t=X1(t);var e=t.getMesh();if(!e)return t;var r=new Float32Array(e.getVertexBufferList());e.getVertexBufferList=function(){return r};var n=new Uint32Array(e.getIndexBufferList());return e.getIndexBufferList=function(){return n},t}var o3={files:[{url:"face_mesh_solution_packed_assets_loader.js"},{simd:!0,url:"face_mesh_solution_simd_wasm_bin.js"},{simd:!1,url:"face_mesh_solution_wasm_bin.js"}],graph:{url:"face_mesh.binarypb"},listeners:[{wants:["multi_face_geometry","image_transformed","multi_face_landmarks"],outs:{image:"image_transformed",multiFaceGeometry:{type:"proto_list",stream:"multi_face_geometry",transform:function(t){return t.map(i3)}},multiFaceLandmarks:{type:"proto_list",stream:"multi_face_landmarks",transform:function(t){return t.map(function(e){return m2(o1(e),i2).map(s1)})}}}}],inputs:{image:{type:"video",stream:"input_frames_gpu"}},options:{useCpuInference:{type:0,graphOptionXref:{calculatorType:"InferenceCalculator",fieldName:"use_cpu_inference"},default:"iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document},enableFaceGeometry:{type:0,graphOptionXref:{calculatorName:"EnableFaceGeometryConstant",calculatorType:"ConstantSidePacketCalculator",fieldName:"bool_value"}},selfieMode:{type:0,graphOptionXref:{calculatorType:"GlScalerCalculator",calculatorIndex:1,fieldName:"flip_horizontal"}},maxNumFaces:{type:1,graphOptionXref:{calculatorType:"ConstantSidePacketCalculator",calculatorName:"ConstantSidePacketCalculatorNumFaces",fieldName:"int_value"}},refineLandmarks:{type:0,graphOptionXref:{calculatorType:"ConstantSidePacketCalculator",calculatorName:"ConstantSidePacketCalculatorRefineLandmarks",fieldName:"bool_value"}},minDetectionConfidence:{type:1,graphOptionXref:{calculatorType:"TensorsToDetectionsCalculator",calculatorName:"facelandmarkfrontgpu__facedetectionshortrangegpu__facedetectionshortrangecommon__TensorsToDetectionsCalculator",fieldName:"min_score_thresh"}},minTrackingConfidence:{type:1,graphOptionXref:{calculatorType:"ThresholdingCalculator",calculatorName:"facelandmarkfrontgpu__facelandmarkgpu__ThresholdingCalculator",fieldName:"threshold"}},cameraNear:{type:1,graphOptionXref:{calculatorType:"FaceGeometryEnvGeneratorCalculator",fieldName:"near"}},cameraFar:{type:1,graphOptionXref:{calculatorType:"FaceGeometryEnvGeneratorCalculator",fieldName:"far"}},cameraVerticalFovDegrees:{type:1,graphOptionXref:{calculatorType:"FaceGeometryEnvGeneratorCalculator",fieldName:"vertical_fov_degrees"}}}},l1=[[61,146],[146,91],[91,181],[181,84],[84,17],[17,314],[314,405],[405,321],[321,375],[375,291],[61,185],[185,40],[40,39],[39,37],[37,0],[0,267],[267,269],[269,270],[270,409],[409,291],[78,95],[95,88],[88,178],[178,87],[87,14],[14,317],[317,402],[402,318],[318,324],[324,308],[78,191],[191,80],[80,81],[81,82],[82,13],[13,312],[312,311],[311,310],[310,415],[415,308]],c1=[[263,249],[249,390],[390,373],[373,374],[374,380],[380,381],[381,382],[382,362],[263,466],[466,388],[388,387],[387,386],[386,385],[385,384],[384,398],[398,362]],h1=[[276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]],g1=[[33,7],[7,163],[163,144],[144,145],[145,153],[153,154],[154,155],[155,133],[33,246],[246,161],[161,160],[160,159],[159,158],[158,157],[157,173],[173,133]],p1=[[46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]],v1=[[10,338],[338,297],[297,332],[332,284],[284,251],[251,389],[389,356],[356,454],[454,323],[323,361],[361,288],[288,397],[397,365],[365,379],[379,378],[378,400],[400,377],[377,152],[152,148],[148,176],[176,149],[149,150],[150,136],[136,172],[172,58],[58,132],[132,93],[93,234],[234,127],[127,162],[162,21],[21,54],[54,103],[103,67],[67,109],[109,10]],u3=[].concat(Y(l1),Y(c1),Y(h1),Y(g1),Y(p1),Y(v1));function d1(t){t=t||{},t=Object.assign(Object.assign({},o3),t),this.g=new L2(t)}x=d1.prototype,x.close=function(){return this.g.close(),Promise.resolve()},x.onResults=function(t){this.g.onResults(t)},x.initialize=function(){return P(this,function t(){var e=this;return M(t,function(r){return S(r,e.g.initialize(),0)})})},x.reset=function(){this.g.reset()},x.send=function(t){return P(this,function e(){var r=this;return M(e,function(n){return S(n,r.g.send(t),0)})})},x.setOptions=function(t){this.g.setOptions(t)},L("FACE_GEOMETRY",{Layout:{COLUMN_MAJOR:0,ROW_MAJOR:1,0:"COLUMN_MAJOR",1:"ROW_MAJOR"},PrimitiveType:{TRIANGLE:0,0:"TRIANGLE"},VertexType:{VERTEX_PT:0,0:"VERTEX_PT"},DEFAULT_CAMERA_PARAMS:{verticalFovDegrees:63,near:1,far:1e4}}),L("FaceMesh",d1),L("FACEMESH_LIPS",l1),L("FACEMESH_LEFT_EYE",c1),L("FACEMESH_LEFT_EYEBROW",h1),L("FACEMESH_LEFT_IRIS",[[474,475],[475,476],[476,477],[477,474]]),L("FACEMESH_RIGHT_EYE",g1),L("FACEMESH_RIGHT_EYEBROW",p1),L("FACEMESH_RIGHT_IRIS",[[469,470],[470,471],[471,472],[472,469]]),L("FACEMESH_FACE_OVAL",v1),L("FACEMESH_CONTOURS",u3),L("FACEMESH_TESSELATION",[[127,34],[34,139],[139,127],[11,0],[0,37],[37,11],[232,231],[231,120],[120,232],[72,37],[37,39],[39,72],[128,121],[121,47],[47,128],[232,121],[121,128],[128,232],[104,69],[69,67],[67,104],[175,171],[171,148],[148,175],[118,50],[50,101],[101,118],[73,39],[39,40],[40,73],[9,151],[151,108],[108,9],[48,115],[115,131],[131,48],[194,204],[204,211],[211,194],[74,40],[40,185],[185,74],[80,42],[42,183],[183,80],[40,92],[92,186],[186,40],[230,229],[229,118],[118,230],[202,212],[212,214],[214,202],[83,18],[18,17],[17,83],[76,61],[61,146],[146,76],[160,29],[29,30],[30,160],[56,157],[157,173],[173,56],[106,204],[204,194],[194,106],[135,214],[214,192],[192,135],[203,165],[165,98],[98,203],[21,71],[71,68],[68,21],[51,45],[45,4],[4,51],[144,24],[24,23],[23,144],[77,146],[146,91],[91,77],[205,50],[50,187],[187,205],[201,200],[200,18],[18,201],[91,106],[106,182],[182,91],[90,91],[91,181],[181,90],[85,84],[84,17],[17,85],[206,203],[203,36],[36,206],[148,171],[171,140],[140,148],[92,40],[40,39],[39,92],[193,189],[189,244],[244,193],[159,158],[158,28],[28,159],[247,246],[246,161],[161,247],[236,3],[3,196],[196,236],[54,68],[68,104],[104,54],[193,168],[168,8],[8,193],[117,228],[228,31],[31,117],[189,193],[193,55],[55,189],[98,97],[97,99],[99,98],[126,47],[47,100],[100,126],[166,79],[79,218],[218,166],[155,154],[154,26],[26,155],[209,49],[49,131],[131,209],[135,136],[136,150],[150,135],[47,126],[126,217],[217,47],[223,52],[52,53],[53,223],[45,51],[51,134],[134,45],[211,170],[170,140],[140,211],[67,69],[69,108],[108,67],[43,106],[106,91],[91,43],[230,119],[119,120],[120,230],[226,130],[130,247],[247,226],[63,53],[53,52],[52,63],[238,20],[20,242],[242,238],[46,70],[70,156],[156,46],[78,62],[62,96],[96,78],[46,53],[53,63],[63,46],[143,34],[34,227],[227,143],[123,117],[117,111],[111,123],[44,125],[125,19],[19,44],[236,134],[134,51],[51,236],[216,206],[206,205],[205,216],[154,153],[153,22],[22,154],[39,37],[37,167],[167,39],[200,201],[201,208],[208,200],[36,142],[142,100],[100,36],[57,212],[212,202],[202,57],[20,60],[60,99],[99,20],[28,158],[158,157],[157,28],[35,226],[226,113],[113,35],[160,159],[159,27],[27,160],[204,202],[202,210],[210,204],[113,225],[225,46],[46,113],[43,202],[202,204],[204,43],[62,76],[76,77],[77,62],[137,123],[123,116],[116,137],[41,38],[38,72],[72,41],[203,129],[129,142],[142,203],[64,98],[98,240],[240,64],[49,102],[102,64],[64,49],[41,73],[73,74],[74,41],[212,216],[216,207],[207,212],[42,74],[74,184],[184,42],[169,170],[170,211],[211,169],[170,149],[149,176],[176,170],[105,66],[66,69],[69,105],[122,6],[6,168],[168,122],[123,147],[147,187],[187,123],[96,77],[77,90],[90,96],[65,55],[55,107],[107,65],[89,90],[90,180],[180,89],[101,100],[100,120],[120,101],[63,105],[105,104],[104,63],[93,137],[137,227],[227,93],[15,86],[86,85],[85,15],[129,102],[102,49],[49,129],[14,87],[87,86],[86,14],[55,8],[8,9],[9,55],[100,47],[47,121],[121,100],[145,23],[23,22],[22,145],[88,89],[89,179],[179,88],[6,122],[122,196],[196,6],[88,95],[95,96],[96,88],[138,172],[172,136],[136,138],[215,58],[58,172],[172,215],[115,48],[48,219],[219,115],[42,80],[80,81],[81,42],[195,3],[3,51],[51,195],[43,146],[146,61],[61,43],[171,175],[175,199],[199,171],[81,82],[82,38],[38,81],[53,46],[46,225],[225,53],[144,163],[163,110],[110,144],[52,65],[65,66],[66,52],[229,228],[228,117],[117,229],[34,127],[127,234],[234,34],[107,108],[108,69],[69,107],[109,108],[108,151],[151,109],[48,64],[64,235],[235,48],[62,78],[78,191],[191,62],[129,209],[209,126],[126,129],[111,35],[35,143],[143,111],[117,123],[123,50],[50,117],[222,65],[65,52],[52,222],[19,125],[125,141],[141,19],[221,55],[55,65],[65,221],[3,195],[195,197],[197,3],[25,7],[7,33],[33,25],[220,237],[237,44],[44,220],[70,71],[71,139],[139,70],[122,193],[193,245],[245,122],[247,130],[130,33],[33,247],[71,21],[21,162],[162,71],[170,169],[169,150],[150,170],[188,174],[174,196],[196,188],[216,186],[186,92],[92,216],[2,97],[97,167],[167,2],[141,125],[125,241],[241,141],[164,167],[167,37],[37,164],[72,38],[38,12],[12,72],[38,82],[82,13],[13,38],[63,68],[68,71],[71,63],[226,35],[35,111],[111,226],[101,50],[50,205],[205,101],[206,92],[92,165],[165,206],[209,198],[198,217],[217,209],[165,167],[167,97],[97,165],[220,115],[115,218],[218,220],[133,112],[112,243],[243,133],[239,238],[238,241],[241,239],[214,135],[135,169],[169,214],[190,173],[173,133],[133,190],[171,208],[208,32],[32,171],[125,44],[44,237],[237,125],[86,87],[87,178],[178,86],[85,86],[86,179],[179,85],[84,85],[85,180],[180,84],[83,84],[84,181],[181,83],[201,83],[83,182],[182,201],[137,93],[93,132],[132,137],[76,62],[62,183],[183,76],[61,76],[76,184],[184,61],[57,61],[61,185],[185,57],[212,57],[57,186],[186,212],[214,207],[207,187],[187,214],[34,143],[143,156],[156,34],[79,239],[239,237],[237,79],[123,137],[137,177],[177,123],[44,1],[1,4],[4,44],[201,194],[194,32],[32,201],[64,102],[102,129],[129,64],[213,215],[215,138],[138,213],[59,166],[166,219],[219,59],[242,99],[99,97],[97,242],[2,94],[94,141],[141,2],[75,59],[59,235],[235,75],[24,110],[110,228],[228,24],[25,130],[130,226],[226,25],[23,24],[24,229],[229,23],[22,23],[23,230],[230,22],[26,22],[22,231],[231,26],[112,26],[26,232],[232,112],[189,190],[190,243],[243,189],[221,56],[56,190],[190,221],[28,56],[56,221],[221,28],[27,28],[28,222],[222,27],[29,27],[27,223],[223,29],[30,29],[29,224],[224,30],[247,30],[30,225],[225,247],[238,79],[79,20],[20,238],[166,59],[59,75],[75,166],[60,75],[75,240],[240,60],[147,177],[177,215],[215,147],[20,79],[79,166],[166,20],[187,147],[147,213],[213,187],[112,233],[233,244],[244,112],[233,128],[128,245],[245,233],[128,114],[114,188],[188,128],[114,217],[217,174],[174,114],[131,115],[115,220],[220,131],[217,198],[198,236],[236,217],[198,131],[131,134],[134,198],[177,132],[132,58],[58,177],[143,35],[35,124],[124,143],[110,163],[163,7],[7,110],[228,110],[110,25],[25,228],[356,389],[389,368],[368,356],[11,302],[302,267],[267,11],[452,350],[350,349],[349,452],[302,303],[303,269],[269,302],[357,343],[343,277],[277,357],[452,453],[453,357],[357,452],[333,332],[332,297],[297,333],[175,152],[152,377],[377,175],[347,348],[348,330],[330,347],[303,304],[304,270],[270,303],[9,336],[336,337],[337,9],[278,279],[279,360],[360,278],[418,262],[262,431],[431,418],[304,408],[408,409],[409,304],[310,415],[415,407],[407,310],[270,409],[409,410],[410,270],[450,348],[348,347],[347,450],[422,430],[430,434],[434,422],[313,314],[314,17],[17,313],[306,307],[307,375],[375,306],[387,388],[388,260],[260,387],[286,414],[414,398],[398,286],[335,406],[406,418],[418,335],[364,367],[367,416],[416,364],[423,358],[358,327],[327,423],[251,284],[284,298],[298,251],[281,5],[5,4],[4,281],[373,374],[374,253],[253,373],[307,320],[320,321],[321,307],[425,427],[427,411],[411,425],[421,313],[313,18],[18,421],[321,405],[405,406],[406,321],[320,404],[404,405],[405,320],[315,16],[16,17],[17,315],[426,425],[425,266],[266,426],[377,400],[400,369],[369,377],[322,391],[391,269],[269,322],[417,465],[465,464],[464,417],[386,257],[257,258],[258,386],[466,260],[260,388],[388,466],[456,399],[399,419],[419,456],[284,332],[332,333],[333,284],[417,285],[285,8],[8,417],[346,340],[340,261],[261,346],[413,441],[441,285],[285,413],[327,460],[460,328],[328,327],[355,371],[371,329],[329,355],[392,439],[439,438],[438,392],[382,341],[341,256],[256,382],[429,420],[420,360],[360,429],[364,394],[394,379],[379,364],[277,343],[343,437],[437,277],[443,444],[444,283],[283,443],[275,440],[440,363],[363,275],[431,262],[262,369],[369,431],[297,338],[338,337],[337,297],[273,375],[375,321],[321,273],[450,451],[451,349],[349,450],[446,342],[342,467],[467,446],[293,334],[334,282],[282,293],[458,461],[461,462],[462,458],[276,353],[353,383],[383,276],[308,324],[324,325],[325,308],[276,300],[300,293],[293,276],[372,345],[345,447],[447,372],[352,345],[345,340],[340,352],[274,1],[1,19],[19,274],[456,248],[248,281],[281,456],[436,427],[427,425],[425,436],[381,256],[256,252],[252,381],[269,391],[391,393],[393,269],[200,199],[199,428],[428,200],[266,330],[330,329],[329,266],[287,273],[273,422],[422,287],[250,462],[462,328],[328,250],[258,286],[286,384],[384,258],[265,353],[353,342],[342,265],[387,259],[259,257],[257,387],[424,431],[431,430],[430,424],[342,353],[353,276],[276,342],[273,335],[335,424],[424,273],[292,325],[325,307],[307,292],[366,447],[447,345],[345,366],[271,303],[303,302],[302,271],[423,266],[266,371],[371,423],[294,455],[455,460],[460,294],[279,278],[278,294],[294,279],[271,272],[272,304],[304,271],[432,434],[434,427],[427,432],[272,407],[407,408],[408,272],[394,430],[430,431],[431,394],[395,369],[369,400],[400,395],[334,333],[333,299],[299,334],[351,417],[417,168],[168,351],[352,280],[280,411],[411,352],[325,319],[319,320],[320,325],[295,296],[296,336],[336,295],[319,403],[403,404],[404,319],[330,348],[348,349],[349,330],[293,298],[298,333],[333,293],[323,454],[454,447],[447,323],[15,16],[16,315],[315,15],[358,429],[429,279],[279,358],[14,15],[15,316],[316,14],[285,336],[336,9],[9,285],[329,349],[349,350],[350,329],[374,380],[380,252],[252,374],[318,402],[402,403],[403,318],[6,197],[197,419],[419,6],[318,319],[319,325],[325,318],[367,364],[364,365],[365,367],[435,367],[367,397],[397,435],[344,438],[438,439],[439,344],[272,271],[271,311],[311,272],[195,5],[5,281],[281,195],[273,287],[287,291],[291,273],[396,428],[428,199],[199,396],[311,271],[271,268],[268,311],[283,444],[444,445],[445,283],[373,254],[254,339],[339,373],[282,334],[334,296],[296,282],[449,347],[347,346],[346,449],[264,447],[447,454],[454,264],[336,296],[296,299],[299,336],[338,10],[10,151],[151,338],[278,439],[439,455],[455,278],[292,407],[407,415],[415,292],[358,371],[371,355],[355,358],[340,345],[345,372],[372,340],[346,347],[347,280],[280,346],[442,443],[443,282],[282,442],[19,94],[94,370],[370,19],[441,442],[442,295],[295,441],[248,419],[419,197],[197,248],[263,255],[255,359],[359,263],[440,275],[275,274],[274,440],[300,383],[383,368],[368,300],[351,412],[412,465],[465,351],[263,467],[467,466],[466,263],[301,368],[368,389],[389,301],[395,378],[378,379],[379,395],[412,351],[351,419],[419,412],[436,426],[426,322],[322,436],[2,164],[164,393],[393,2],[370,462],[462,461],[461,370],[164,0],[0,267],[267,164],[302,11],[11,12],[12,302],[268,12],[12,13],[13,268],[293,300],[300,301],[301,293],[446,261],[261,340],[340,446],[330,266],[266,425],[425,330],[426,423],[423,391],[391,426],[429,355],[355,437],[437,429],[391,327],[327,326],[326,391],[440,457],[457,438],[438,440],[341,382],[382,362],[362,341],[459,457],[457,461],[461,459],[434,430],[430,394],[394,434],[414,463],[463,362],[362,414],[396,369],[369,262],[262,396],[354,461],[461,457],[457,354],[316,403],[403,402],[402,316],[315,404],[404,403],[403,315],[314,405],[405,404],[404,314],[313,406],[406,405],[405,313],[421,418],[418,406],[406,421],[366,401],[401,361],[361,366],[306,408],[408,407],[407,306],[291,409],[409,408],[408,291],[287,410],[410,409],[409,287],[432,436],[436,410],[410,432],[434,416],[416,411],[411,434],[264,368],[368,383],[383,264],[309,438],[438,457],[457,309],[352,376],[376,401],[401,352],[274,275],[275,4],[4,274],[421,428],[428,262],[262,421],[294,327],[327,358],[358,294],[433,416],[416,367],[367,433],[289,455],[455,439],[439,289],[462,370],[370,326],[326,462],[2,326],[326,370],[370,2],[305,460],[460,455],[455,305],[254,449],[449,448],[448,254],[255,261],[261,446],[446,255],[253,450],[450,449],[449,253],[252,451],[451,450],[450,252],[256,452],[452,451],[451,256],[341,453],[453,452],[452,341],[413,464],[464,463],[463,413],[441,413],[413,414],[414,441],[258,442],[442,441],[441,258],[257,443],[443,442],[442,257],[259,444],[444,443],[443,259],[260,445],[445,444],[444,260],[467,342],[342,445],[445,467],[459,458],[458,250],[250,459],[289,392],[392,290],[290,289],[290,328],[328,460],[460,290],[376,433],[433,435],[435,376],[250,290],[290,392],[392,250],[411,416],[416,433],[433,411],[341,463],[463,464],[464,341],[453,464],[464,465],[465,453],[357,465],[465,412],[412,357],[343,412],[412,399],[399,343],[360,363],[363,440],[440,360],[437,399],[399,456],[456,437],[420,456],[456,363],[363,420],[401,435],[435,288],[288,401],[372,383],[383,353],[353,372],[339,255],[255,249],[249,339],[448,261],[261,255],[255,448],[133,243],[243,190],[190,133],[133,155],[155,112],[112,133],[33,246],[246,247],[247,33],[33,130],[130,25],[25,33],[398,384],[384,286],[286,398],[362,398],[398,414],[414,362],[362,463],[463,341],[341,362],[263,359],[359,467],[467,263],[263,249],[249,255],[255,263],[466,467],[467,260],[260,466],[75,60],[60,166],[166,75],[238,239],[239,79],[79,238],[162,127],[127,139],[139,162],[72,11],[11,37],[37,72],[121,232],[232,120],[120,121],[73,72],[72,39],[39,73],[114,128],[128,47],[47,114],[233,232],[232,128],[128,233],[103,104],[104,67],[67,103],[152,175],[175,148],[148,152],[119,118],[118,101],[101,119],[74,73],[73,40],[40,74],[107,9],[9,108],[108,107],[49,48],[48,131],[131,49],[32,194],[194,211],[211,32],[184,74],[74,185],[185,184],[191,80],[80,183],[183,191],[185,40],[40,186],[186,185],[119,230],[230,118],[118,119],[210,202],[202,214],[214,210],[84,83],[83,17],[17,84],[77,76],[76,146],[146,77],[161,160],[160,30],[30,161],[190,56],[56,173],[173,190],[182,106],[106,194],[194,182],[138,135],[135,192],[192,138],[129,203],[203,98],[98,129],[54,21],[21,68],[68,54],[5,51],[51,4],[4,5],[145,144],[144,23],[23,145],[90,77],[77,91],[91,90],[207,205],[205,187],[187,207],[83,201],[201,18],[18,83],[181,91],[91,182],[182,181],[180,90],[90,181],[181,180],[16,85],[85,17],[17,16],[205,206],[206,36],[36,205],[176,148],[148,140],[140,176],[165,92],[92,39],[39,165],[245,193],[193,244],[244,245],[27,159],[159,28],[28,27],[30,247],[247,161],[161,30],[174,236],[236,196],[196,174],[103,54],[54,104],[104,103],[55,193],[193,8],[8,55],[111,117],[117,31],[31,111],[221,189],[189,55],[55,221],[240,98],[98,99],[99,240],[142,126],[126,100],[100,142],[219,166],[166,218],[218,219],[112,155],[155,26],[26,112],[198,209],[209,131],[131,198],[169,135],[135,150],[150,169],[114,47],[47,217],[217,114],[224,223],[223,53],[53,224],[220,45],[45,134],[134,220],[32,211],[211,140],[140,32],[109,67],[67,108],[108,109],[146,43],[43,91],[91,146],[231,230],[230,120],[120,231],[113,226],[226,247],[247,113],[105,63],[63,52],[52,105],[241,238],[238,242],[242,241],[124,46],[46,156],[156,124],[95,78],[78,96],[96,95],[70,46],[46,63],[63,70],[116,143],[143,227],[227,116],[116,123],[123,111],[111,116],[1,44],[44,19],[19,1],[3,236],[236,51],[51,3],[207,216],[216,205],[205,207],[26,154],[154,22],[22,26],[165,39],[39,167],[167,165],[199,200],[200,208],[208,199],[101,36],[36,100],[100,101],[43,57],[57,202],[202,43],[242,20],[20,99],[99,242],[56,28],[28,157],[157,56],[124,35],[35,113],[113,124],[29,160],[160,27],[27,29],[211,204],[204,210],[210,211],[124,113],[113,46],[46,124],[106,43],[43,204],[204,106],[96,62],[62,77],[77,96],[227,137],[137,116],[116,227],[73,41],[41,72],[72,73],[36,203],[203,142],[142,36],[235,64],[64,240],[240,235],[48,49],[49,64],[64,48],[42,41],[41,74],[74,42],[214,212],[212,207],[207,214],[183,42],[42,184],[184,183],[210,169],[169,211],[211,210],[140,170],[170,176],[176,140],[104,105],[105,69],[69,104],[193,122],[122,168],[168,193],[50,123],[123,187],[187,50],[89,96],[96,90],[90,89],[66,65],[65,107],[107,66],[179,89],[89,180],[180,179],[119,101],[101,120],[120,119],[68,63],[63,104],[104,68],[234,93],[93,227],[227,234],[16,15],[15,85],[85,16],[209,129],[129,49],[49,209],[15,14],[14,86],[86,15],[107,55],[55,9],[9,107],[120,100],[100,121],[121,120],[153,145],[145,22],[22,153],[178,88],[88,179],[179,178],[197,6],[6,196],[196,197],[89,88],[88,96],[96,89],[135,138],[138,136],[136,135],[138,215],[215,172],[172,138],[218,115],[115,219],[219,218],[41,42],[42,81],[81,41],[5,195],[195,51],[51,5],[57,43],[43,61],[61,57],[208,171],[171,199],[199,208],[41,81],[81,38],[38,41],[224,53],[53,225],[225,224],[24,144],[144,110],[110,24],[105,52],[52,66],[66,105],[118,229],[229,117],[117,118],[227,34],[34,234],[234,227],[66,107],[107,69],[69,66],[10,109],[109,151],[151,10],[219,48],[48,235],[235,219],[183,62],[62,191],[191,183],[142,129],[129,126],[126,142],[116,111],[111,143],[143,116],[118,117],[117,50],[50,118],[223,222],[222,52],[52,223],[94,19],[19,141],[141,94],[222,221],[221,65],[65,222],[196,3],[3,197],[197,196],[45,220],[220,44],[44,45],[156,70],[70,139],[139,156],[188,122],[122,245],[245,188],[139,71],[71,162],[162,139],[149,170],[170,150],[150,149],[122,188],[188,196],[196,122],[206,216],[216,92],[92,206],[164,2],[2,167],[167,164],[242,141],[141,241],[241,242],[0,164],[164,37],[37,0],[11,72],[72,12],[12,11],[12,38],[38,13],[13,12],[70,63],[63,71],[71,70],[31,226],[226,111],[111,31],[36,101],[101,205],[205,36],[203,206],[206,165],[165,203],[126,209],[209,217],[217,126],[98,165],[165,97],[97,98],[237,220],[220,218],[218,237],[237,239],[239,241],[241,237],[210,214],[214,169],[169,210],[140,171],[171,32],[32,140],[241,125],[125,237],[237,241],[179,86],[86,178],[178,179],[180,85],[85,179],[179,180],[181,84],[84,180],[180,181],[182,83],[83,181],[181,182],[194,201],[201,182],[182,194],[177,137],[137,132],[132,177],[184,76],[76,183],[183,184],[185,61],[61,184],[184,185],[186,57],[57,185],[185,186],[216,212],[212,186],[186,216],[192,214],[214,187],[187,192],[139,34],[34,156],[156,139],[218,79],[79,237],[237,218],[147,123],[123,177],[177,147],[45,44],[44,4],[4,45],[208,201],[201,32],[32,208],[98,64],[64,129],[129,98],[192,213],[213,138],[138,192],[235,59],[59,219],[219,235],[141,242],[242,97],[97,141],[97,2],[2,141],[141,97],[240,75],[75,235],[235,240],[229,24],[24,228],[228,229],[31,25],[25,226],[226,31],[230,23],[23,229],[229,230],[231,22],[22,230],[230,231],[232,26],[26,231],[231,232],[233,112],[112,232],[232,233],[244,189],[189,243],[243,244],[189,221],[221,190],[190,189],[222,28],[28,221],[221,222],[223,27],[27,222],[222,223],[224,29],[29,223],[223,224],[225,30],[30,224],[224,225],[113,247],[247,225],[225,113],[99,60],[60,240],[240,99],[213,147],[147,215],[215,213],[60,20],[20,166],[166,60],[192,187],[187,213],[213,192],[243,112],[112,244],[244,243],[244,233],[233,245],[245,244],[245,128],[128,188],[188,245],[188,114],[114,174],[174,188],[134,131],[131,220],[220,134],[174,217],[217,236],[236,174],[236,198],[198,134],[134,236],[215,177],[177,58],[58,215],[156,143],[143,124],[124,156],[25,110],[110,7],[7,25],[31,228],[228,25],[25,31],[264,356],[356,368],[368,264],[0,11],[11,267],[267,0],[451,452],[452,349],[349,451],[267,302],[302,269],[269,267],[350,357],[357,277],[277,350],[350,452],[452,357],[357,350],[299,333],[333,297],[297,299],[396,175],[175,377],[377,396],[280,347],[347,330],[330,280],[269,303],[303,270],[270,269],[151,9],[9,337],[337,151],[344,278],[278,360],[360,344],[424,418],[418,431],[431,424],[270,304],[304,409],[409,270],[272,310],[310,407],[407,272],[322,270],[270,410],[410,322],[449,450],[450,347],[347,449],[432,422],[422,434],[434,432],[18,313],[313,17],[17,18],[291,306],[306,375],[375,291],[259,387],[387,260],[260,259],[424,335],[335,418],[418,424],[434,364],[364,416],[416,434],[391,423],[423,327],[327,391],[301,251],[251,298],[298,301],[275,281],[281,4],[4,275],[254,373],[373,253],[253,254],[375,307],[307,321],[321,375],[280,425],[425,411],[411,280],[200,421],[421,18],[18,200],[335,321],[321,406],[406,335],[321,320],[320,405],[405,321],[314,315],[315,17],[17,314],[423,426],[426,266],[266,423],[396,377],[377,369],[369,396],[270,322],[322,269],[269,270],[413,417],[417,464],[464,413],[385,386],[386,258],[258,385],[248,456],[456,419],[419,248],[298,284],[284,333],[333,298],[168,417],[417,8],[8,168],[448,346],[346,261],[261,448],[417,413],[413,285],[285,417],[326,327],[327,328],[328,326],[277,355],[355,329],[329,277],[309,392],[392,438],[438,309],[381,382],[382,256],[256,381],[279,429],[429,360],[360,279],[365,364],[364,379],[379,365],[355,277],[277,437],[437,355],[282,443],[443,283],[283,282],[281,275],[275,363],[363,281],[395,431],[431,369],[369,395],[299,297],[297,337],[337,299],[335,273],[273,321],[321,335],[348,450],[450,349],[349,348],[359,446],[446,467],[467,359],[283,293],[293,282],[282,283],[250,458],[458,462],[462,250],[300,276],[276,383],[383,300],[292,308],[308,325],[325,292],[283,276],[276,293],[293,283],[264,372],[372,447],[447,264],[346,352],[352,340],[340,346],[354,274],[274,19],[19,354],[363,456],[456,281],[281,363],[426,436],[436,425],[425,426],[380,381],[381,252],[252,380],[267,269],[269,393],[393,267],[421,200],[200,428],[428,421],[371,266],[266,329],[329,371],[432,287],[287,422],[422,432],[290,250],[250,328],[328,290],[385,258],[258,384],[384,385],[446,265],[265,342],[342,446],[386,387],[387,257],[257,386],[422,424],[424,430],[430,422],[445,342],[342,276],[276,445],[422,273],[273,424],[424,422],[306,292],[292,307],[307,306],[352,366],[366,345],[345,352],[268,271],[271,302],[302,268],[358,423],[423,371],[371,358],[327,294],[294,460],[460,327],[331,279],[279,294],[294,331],[303,271],[271,304],[304,303],[436,432],[432,427],[427,436],[304,272],[272,408],[408,304],[395,394],[394,431],[431,395],[378,395],[395,400],[400,378],[296,334],[334,299],[299,296],[6,351],[351,168],[168,6],[376,352],[352,411],[411,376],[307,325],[325,320],[320,307],[285,295],[295,336],[336,285],[320,319],[319,404],[404,320],[329,330],[330,349],[349,329],[334,293],[293,333],[333,334],[366,323],[323,447],[447,366],[316,15],[15,315],[315,316],[331,358],[358,279],[279,331],[317,14],[14,316],[316,317],[8,285],[285,9],[9,8],[277,329],[329,350],[350,277],[253,374],[374,252],[252,253],[319,318],[318,403],[403,319],[351,6],[6,419],[419,351],[324,318],[318,325],[325,324],[397,367],[367,365],[365,397],[288,435],[435,397],[397,288],[278,344],[344,439],[439,278],[310,272],[272,311],[311,310],[248,195],[195,281],[281,248],[375,273],[273,291],[291,375],[175,396],[396,199],[199,175],[312,311],[311,268],[268,312],[276,283],[283,445],[445,276],[390,373],[373,339],[339,390],[295,282],[282,296],[296,295],[448,449],[449,346],[346,448],[356,264],[264,454],[454,356],[337,336],[336,299],[299,337],[337,338],[338,151],[151,337],[294,278],[278,455],[455,294],[308,292],[292,415],[415,308],[429,358],[358,355],[355,429],[265,340],[340,372],[372,265],[352,346],[346,280],[280,352],[295,442],[442,282],[282,295],[354,19],[19,370],[370,354],[285,441],[441,295],[295,285],[195,248],[248,197],[197,195],[457,440],[440,274],[274,457],[301,300],[300,368],[368,301],[417,351],[351,465],[465,417],[251,301],[301,389],[389,251],[394,395],[395,379],[379,394],[399,412],[412,419],[419,399],[410,436],[436,322],[322,410],[326,2],[2,393],[393,326],[354,370],[370,461],[461,354],[393,164],[164,267],[267,393],[268,302],[302,12],[12,268],[312,268],[268,13],[13,312],[298,293],[293,301],[301,298],[265,446],[446,340],[340,265],[280,330],[330,425],[425,280],[322,426],[426,391],[391,322],[420,429],[429,437],[437,420],[393,391],[391,326],[326,393],[344,440],[440,438],[438,344],[458,459],[459,461],[461,458],[364,434],[434,394],[394,364],[428,396],[396,262],[262,428],[274,354],[354,457],[457,274],[317,316],[316,402],[402,317],[316,315],[315,403],[403,316],[315,314],[314,404],[404,315],[314,313],[313,405],[405,314],[313,421],[421,406],[406,313],[323,366],[366,361],[361,323],[292,306],[306,407],[407,292],[306,291],[291,408],[408,306],[291,287],[287,409],[409,291],[287,432],[432,410],[410,287],[427,434],[434,411],[411,427],[372,264],[264,383],[383,372],[459,309],[309,457],[457,459],[366,352],[352,401],[401,366],[1,274],[274,4],[4,1],[418,421],[421,262],[262,418],[331,294],[294,358],[358,331],[435,433],[433,367],[367,435],[392,289],[289,439],[439,392],[328,462],[462,326],[326,328],[94,2],[2,370],[370,94],[289,305],[305,455],[455,289],[339,254],[254,448],[448,339],[359,255],[255,446],[446,359],[254,253],[253,449],[449,254],[253,252],[252,450],[450,253],[252,256],[256,451],[451,252],[256,341],[341,452],[452,256],[414,413],[413,463],[463,414],[286,441],[441,414],[414,286],[286,258],[258,441],[441,286],[258,257],[257,442],[442,258],[257,259],[259,443],[443,257],[259,260],[260,444],[444,259],[260,467],[467,445],[445,260],[309,459],[459,250],[250,309],[305,289],[289,290],[290,305],[305,290],[290,460],[460,305],[401,376],[376,435],[435,401],[309,250],[250,392],[392,309],[376,411],[411,433],[433,376],[453,341],[341,464],[464,453],[357,453],[453,465],[465,357],[343,357],[357,412],[412,343],[437,343],[343,399],[399,437],[344,360],[360,440],[440,344],[420,437],[437,456],[456,420],[360,420],[420,363],[363,360],[361,401],[401,288],[288,361],[265,372],[372,353],[353,265],[390,339],[339,249],[249,390],[339,448],[448,255],[255,339]]),L("matrixDataToMatrix",function(t){for(var e=t.getCols(),r=t.getRows(),n=t.getPackedDataList(),i=[],u=0;u<r;u++)i.push(Array(e));for(u=0;u<r;u++)for(var o=0;o<e;o++){var s=t.getLayout()===1?u*e+o:o*r+u;i[u][o]=n[s]}return i}),L("VERSION","0.4.1633559619")}).call(P2);const a3=s3({__proto__:null,default:y1},[y1]);exports.face_mesh=a3;
|