@sekyro/elements 0.0.0-stage → 0.1.0-rc.0
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/CHANGELOG.md +1 -0
- package/LICENSE +29 -0
- package/README.md +247 -2
- package/custom-elements.json +355 -0
- package/dist/cdn/chunks/background-monitor-GCMNCJMG-UXYQ5GX7.js +1 -0
- package/dist/cdn/chunks/camera-trait-HVV5ZEDI-JB4HN6S3.js +1 -0
- package/dist/cdn/chunks/capture-session-doc-K6LVXAGQ-SY3B27LY.js +1 -0
- package/dist/cdn/chunks/chunk-2SENV5CV.js +1 -0
- package/dist/cdn/chunks/chunk-2ZVKLBJD.js +14 -0
- package/dist/cdn/chunks/chunk-3KIFGAEK.js +1 -0
- package/dist/cdn/chunks/chunk-3VYQXVW4.js +1 -0
- package/dist/cdn/chunks/chunk-4FHWXBOB.js +1 -0
- package/dist/cdn/chunks/chunk-562ANROG.js +1 -0
- package/dist/cdn/chunks/chunk-6MEPT5ZS.js +1 -0
- package/dist/cdn/chunks/chunk-7HJH5Q4M.js +1 -0
- package/dist/cdn/chunks/chunk-7XAIG23G.js +1 -0
- package/dist/cdn/chunks/chunk-C66GZ7NN.js +1 -0
- package/dist/cdn/chunks/chunk-CMDITVXF.js +1 -0
- package/dist/cdn/chunks/chunk-CMS5FVGM.js +1 -0
- package/dist/cdn/chunks/chunk-D334IAZJ.js +1 -0
- package/dist/cdn/chunks/chunk-ET7NCKUV.js +1 -0
- package/dist/cdn/chunks/chunk-FAIDO3QL.js +1 -0
- package/dist/cdn/chunks/chunk-HDJ6JFXX.js +1 -0
- package/dist/cdn/chunks/chunk-HODE7UDG.js +1 -0
- package/dist/cdn/chunks/chunk-IBOJTLL7.js +1 -0
- package/dist/cdn/chunks/chunk-IFGPCCJH.js +1 -0
- package/dist/cdn/chunks/chunk-JM3CYFFZ.js +1 -0
- package/dist/cdn/chunks/chunk-JOZCJGRV.js +1 -0
- package/dist/cdn/chunks/chunk-KPGTFHQU.js +1 -0
- package/dist/cdn/chunks/chunk-OBPBHX2J.js +1 -0
- package/dist/cdn/chunks/chunk-OIJVTJML.js +1 -0
- package/dist/cdn/chunks/chunk-RK4HVNRS.js +1 -0
- package/dist/cdn/chunks/chunk-RRLXNT33.js +1 -0
- package/dist/cdn/chunks/chunk-SK6UAYX2.js +1 -0
- package/dist/cdn/chunks/chunk-T4M2J44L.js +1 -0
- package/dist/cdn/chunks/chunk-TCW6XNLI.js +1 -0
- package/dist/cdn/chunks/chunk-UYAVCSQ4.js +25 -0
- package/dist/cdn/chunks/chunk-UZWMCNZI.js +1 -0
- package/dist/cdn/chunks/chunk-X767DBO7.js +1 -0
- package/dist/cdn/chunks/chunk-XYQGAQBQ.js +1 -0
- package/dist/cdn/chunks/chunk-YEPHU5PX.js +1 -0
- package/dist/cdn/chunks/chunk-YMGCOMYZ.js +1 -0
- package/dist/cdn/chunks/chunk-Z3EEB4CI.js +1 -0
- package/dist/cdn/chunks/chunk-ZKEOHGBY.js +33 -0
- package/dist/cdn/chunks/clip-inspect-HZ7N2YOP-DCDXB76T.js +1 -0
- package/dist/cdn/chunks/create-document-capture-LNX6NFSK-A4LP25Y5.js +1 -0
- package/dist/cdn/chunks/create-portrait-capture-VRZZOMJS-I4FBRNBP.js +1 -0
- package/dist/cdn/chunks/detector-scanic-F3Y5X3DF-FGVR4NEM.js +1 -0
- package/dist/cdn/chunks/document-capture-view-JIKJWCFG-MMCEL43X.js +1 -0
- package/dist/cdn/chunks/eid-view-IW2ZP2NG-EB5SCHBD.js +1 -0
- package/dist/cdn/chunks/email-otp-view-VDTMZ4R5-Y5QHQDIB.js +1 -0
- package/dist/cdn/chunks/flow-views-N4FMOYIR-FDN6ATHN.js +1 -0
- package/dist/cdn/chunks/icao-gate-SO6YJ7RV-MPW6W3QN.js +1 -0
- package/dist/cdn/chunks/icao-tuning-DCZCMCEQ-ZQSK7ZOV.js +1 -0
- package/dist/cdn/chunks/keyframe-rank-R4NPQGN3-VRURE6OQ.js +1 -0
- package/dist/cdn/chunks/landmarker-3BBP3RBY-DDXMOLGK.js +1 -0
- package/dist/cdn/chunks/mrz-band-DCXFWDBD-OPMO6HYS.js +1 -0
- package/dist/cdn/chunks/overlay-de-F7GCMCGJ-FBTP3BSM.js +1 -0
- package/dist/cdn/chunks/overlay-es-HIO7CIKS-GDHVHUQW.js +1 -0
- package/dist/cdn/chunks/overlay-pt-YC4HRHKL-J3TGRZRW.js +1 -0
- package/dist/cdn/chunks/plan-runner-DIRERYBF-FANNXQNO.js +1 -0
- package/dist/cdn/chunks/portrait-capture-view-LWESDZPM-SEOHMLJQ.js +1 -0
- package/dist/cdn/chunks/portrait-review-view-FU3QSO4K-DZHDIMQX.js +1 -0
- package/dist/cdn/chunks/print-4WOMNRBE-DNXJ7ERA.js +11 -0
- package/dist/cdn/chunks/scanic-ml-stub-XPNKT2N3-YSXFN7KY.js +1 -0
- package/dist/cdn/chunks/segmenter-3CVPTZMM-WGI6XGWN.js +1 -0
- package/dist/cdn/chunks/turnstile-N4K4U2AI-SLP55XAA.js +1 -0
- package/dist/cdn/chunks/upload-file-C4MFKLT3-DXCNEDXP.js +1 -0
- package/dist/cdn/chunks/vision_bundle-WBHR7TEE.js +41 -0
- package/dist/cdn/define.js +1 -0
- package/dist/cdn/index.js +1 -0
- package/dist/chunk-43YHL2WG.js +1 -0
- package/dist/chunk-4QI2LTJD.js +1 -0
- package/dist/chunk-73JRPFCO.js +33 -0
- package/dist/chunk-HSQWGTF7.js +1 -0
- package/dist/chunk-JJNFGW3A.js +25 -0
- package/dist/chunk-JQ3ANVKN.js +1 -0
- package/dist/chunk-KU4DZ3OQ.js +1 -0
- package/dist/chunk-OSBGOI4W.js +14 -0
- package/dist/chunk-RPLVIGTS.js +1 -0
- package/dist/chunk-SEE6MST7.js +1 -0
- package/dist/chunk-TPIBYY2S.js +1 -0
- package/dist/chunk-UT2KIR2K.js +1 -0
- package/dist/chunk-W2UTL5PI.js +1 -0
- package/dist/chunk-WWGJDMZQ.js +1 -0
- package/dist/chunk-X5K27NXI.js +1 -0
- package/dist/chunk-X5WMOOH2.js +1 -0
- package/dist/define.cjs +66 -0
- package/dist/define.d.cts +7 -0
- package/dist/define.d.ts +7 -0
- package/dist/define.js +1 -0
- package/dist/document-capture-view-JIKJWCFG-OWMTF5A3.js +1 -0
- package/dist/eid-view-IW2ZP2NG-SKEYTRTX.js +1 -0
- package/dist/email-otp-view-VDTMZ4R5-EO7T6SL4.js +1 -0
- package/dist/flow-views-N4FMOYIR-J54ADNRO.js +1 -0
- package/dist/fonts/Cairo-OFL.txt +93 -0
- package/dist/fonts/Geist-OFL.txt +93 -0
- package/dist/fonts/Inter-OFL.txt +93 -0
- package/dist/fonts/SekyroCairo-Bold.woff2 +0 -0
- package/dist/fonts/SekyroCairo-Regular.woff2 +0 -0
- package/dist/fonts/SekyroCairo-SemiBold.woff2 +0 -0
- package/dist/fonts/SekyroGeist-Bold.woff2 +0 -0
- package/dist/fonts/SekyroGeist-SemiBold.woff2 +0 -0
- package/dist/fonts/SekyroInter-Medium.woff2 +0 -0
- package/dist/fonts/SekyroInter-Regular.woff2 +0 -0
- package/dist/fonts/SekyroInter-SemiBold.woff2 +0 -0
- package/dist/index.cjs +66 -0
- package/dist/index.d.cts +1099 -0
- package/dist/index.d.ts +1099 -0
- package/dist/index.js +1 -0
- package/dist/overlay-de-F7GCMCGJ-7OI7SGX4.js +1 -0
- package/dist/overlay-es-HIO7CIKS-LXC2SFGY.js +1 -0
- package/dist/overlay-pt-YC4HRHKL-2QCRICEV.js +1 -0
- package/dist/portrait-capture-view-LWESDZPM-XZOM6LXG.js +1 -0
- package/dist/portrait-review-view-FU3QSO4K-AGWEX2EQ.js +1 -0
- package/dist/styles.css +1475 -0
- package/package.json +117 -4
- package/sbom.cdx.json +153 -0
- package/types/empty.js +2 -0
- package/types/events.d.ts +9 -0
- package/types/jsx.d.ts +15 -0
- package/types/svelte.d.ts +16 -0
- package/types/vue.d.ts +15 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{a as G,b as ee}from"./chunk-CMDITVXF.js";import{a as u}from"./chunk-4FHWXBOB.js";var me="thumbmark",fe="https://api.thumbmarkjs.com",F={exclude:[],include:[],stabilize:["private","iframe"],logging:!0,collect_beacon:!0,timeout:5e3,cache_api_call:!0,cache_lifetime_in_ms:0,performance:!1,experimental:!1,simple_request:!1,property_name_factory:u(t=>`${me}_${t}`,"property_name_factory")},ut={...F};var Ae={private:[{exclude:["canvas"],browsers:["firefox","safari>=17","brave"]},{exclude:["audio"],browsers:["samsungbrowser","safari"]},{exclude:["fonts"],browsers:["firefox"]},{exclude:["audio.sampleHash","hardware.deviceMemory","header.acceptLanguage.q","system.hardwareConcurrency","plugins"],browsers:["brave"]},{exclude:["tls.extensions"],browsers:["firefox","chrome","safari"]},{exclude:["header.acceptLanguage"],browsers:["edge","chrome"]}],iframe:[{exclude:["system.applePayVersion","system.cookieEnabled"],browsers:["safari"]},{exclude:["permissions"]}],vpn:[{exclude:["ip"]}],always:[{exclude:["speech"],browsers:["brave","firefox"]}]},te=typeof window<"u"?window.OfflineAudioContext||window.webkitOfflineAudioContext:null;function xe(t){let n=0;for(let r=0;r<t.length;++r)n+=Math.abs(t[r]);return n}u(xe,"c");function ne(t,n,r){if(t.length===1)return t[0];if(t.length===3){let e=t[0].data,c=t[1].data,l=t[2].data,a=new Uint8ClampedArray(e.length);for(let s=0;s<e.length;s++){let m=e[s],f=c[s],d=l[s];a[s]=m===f||m===d?m:f===d?f:m}return new ImageData(a,n,r)}let o=[];for(let e=0;e<t[0].data.length;e++){let c=[];for(let l=0;l<t.length;l++)c.push(t[l].data[e]);o.push(Ce(c))}let i=new Uint8ClampedArray(o);return new ImageData(i,n,r)}u(ne,"l");function Ce(t){if(t.length===0)return 0;let n={};for(let o of t)n[o]=(n[o]||0)+1;let r=t[0];for(let o in n)n[o]>n[r]&&(r=parseInt(o,10));return r}u(Ce,"u");function L(t){return t^=t>>>16,t=Math.imul(t,2246822507),t^=t>>>13,t=Math.imul(t,3266489909),(t^=t>>>16)>>>0}u(L,"d");var _=new Uint32Array([597399067,2869860233,951274213,2716044179]);function C(t,n){return t<<n|t>>>32-n}u(C,"p");function M(t,n=0){if(n=n?0|n:0,typeof t=="string"&&(t=(function(i){if(typeof TextEncoder<"u")return new TextEncoder().encode(i).buffer;let e=[];for(let c=0;c<i.length;c++){let l=i.charCodeAt(c);l<128?e.push(l):l<2048?e.push(192|l>>6,128|63&l):l<55296||l>=57344?e.push(224|l>>12,128|l>>6&63,128|63&l):(c++,l=65536+((1023&l)<<10|1023&i.charCodeAt(c)),e.push(240|l>>18,128|l>>12&63,128|l>>6&63,128|63&l))}return new Uint8Array(e).buffer})(t)),!(t instanceof ArrayBuffer))throw new TypeError("Expected key to be ArrayBuffer or string");let r=new Uint32Array([n,n,n,n]);(function(i,e){let c=i.byteLength/16|0,l=new Uint32Array(i,0,4*c);for(let a=0;a<c;a++){let s=l.subarray(4*a,4*(a+1));s[0]=Math.imul(s[0],_[0]),s[0]=C(s[0],15),s[0]=Math.imul(s[0],_[1]),e[0]=e[0]^s[0],e[0]=C(e[0],19),e[0]=e[0]+e[1],e[0]=Math.imul(e[0],5)+1444728091,s[1]=Math.imul(s[1],_[1]),s[1]=C(s[1],16),s[1]=Math.imul(s[1],_[2]),e[1]=e[1]^s[1],e[1]=C(e[1],17),e[1]=e[1]+e[2],e[1]=Math.imul(e[1],5)+197830471,s[2]=Math.imul(s[2],_[2]),s[2]=C(s[2],17),s[2]=Math.imul(s[2],_[3]),e[2]=e[2]^s[2],e[2]=C(e[2],15),e[2]=e[2]+e[3],e[2]=Math.imul(e[2],5)+2530024501,s[3]=Math.imul(s[3],_[3]),s[3]=C(s[3],18),s[3]=Math.imul(s[3],_[0]),e[3]=e[3]^s[3],e[3]=C(e[3],13),e[3]=e[3]+e[0],e[3]=Math.imul(e[3],5)+850148119}})(t,r),(function(i,e){let c=i.byteLength/16|0,l=i.byteLength%16,a=new Uint32Array(4),s=new Uint8Array(i,16*c,l);switch(l){case 15:a[3]=a[3]^s[14]<<16;case 14:a[3]=a[3]^s[13]<<8;case 13:a[3]=a[3]^s[12],a[3]=Math.imul(a[3],_[3]),a[3]=C(a[3],18),a[3]=Math.imul(a[3],_[0]),e[3]=e[3]^a[3];case 12:a[2]=a[2]^s[11]<<24;case 11:a[2]=a[2]^s[10]<<16;case 10:a[2]=a[2]^s[9]<<8;case 9:a[2]=a[2]^s[8],a[2]=Math.imul(a[2],_[2]),a[2]=C(a[2],17),a[2]=Math.imul(a[2],_[3]),e[2]=e[2]^a[2];case 8:a[1]=a[1]^s[7]<<24;case 7:a[1]=a[1]^s[6]<<16;case 6:a[1]=a[1]^s[5]<<8;case 5:a[1]=a[1]^s[4],a[1]=Math.imul(a[1],_[1]),a[1]=C(a[1],16),a[1]=Math.imul(a[1],_[2]),e[1]=e[1]^a[1];case 4:a[0]=a[0]^s[3]<<24;case 3:a[0]=a[0]^s[2]<<16;case 2:a[0]=a[0]^s[1]<<8;case 1:a[0]=a[0]^s[0],a[0]=Math.imul(a[0],_[0]),a[0]=C(a[0],15),a[0]=Math.imul(a[0],_[1]),e[0]=e[0]^a[0]}})(t,r),(function(i,e){e[0]=e[0]^i.byteLength,e[1]=e[1]^i.byteLength,e[2]=e[2]^i.byteLength,e[3]=e[3]^i.byteLength,e[0]=e[0]+e[1]|0,e[0]=e[0]+e[2]|0,e[0]=e[0]+e[3]|0,e[1]=e[1]+e[0]|0,e[2]=e[2]+e[0]|0,e[3]=e[3]+e[0]|0,e[0]=L(e[0]),e[1]=L(e[1]),e[2]=L(e[2]),e[3]=L(e[3]),e[0]=e[0]+e[1]|0,e[0]=e[0]+e[2]|0,e[0]=e[0]+e[3]|0,e[1]=e[1]+e[0]|0,e[2]=e[2]+e[0]|0,e[3]=e[3]+e[0]|0})(t,r);let o=new Uint8Array(r.buffer);return Array.from(o).map((i=>i.toString(16).padStart(2,"0"))).join("")}u(M,"f");var re=280;function Ee(t,n){return new Promise((r=>setTimeout(r,t,n)))}u(Ee,"g");var Me=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],Te=["monospace","sans-serif","serif"];function oe(t,n){return t.font=`72px ${n}`,t.measureText("WwMmLli0Oo").width}u(oe,"w");function ke(){var t;let n=document.createElement("canvas"),r=(t=n.getContext("webgl"))!==null&&t!==void 0?t:n.getContext("experimental-webgl");if(r&&"getParameter"in r)try{let o=(r.getParameter(r.VENDOR)||"").toString(),i=(r.getParameter(r.RENDERER)||"").toString(),e={vendor:o,renderer:i,version:(r.getParameter(r.VERSION)||"").toString(),shadingLanguageVersion:(r.getParameter(r.SHADING_LANGUAGE_VERSION)||"").toString()};if(!i.length||!o.length){let c=r.getExtension("WEBGL_debug_renderer_info");if(c){let l=(r.getParameter(c.UNMASKED_VENDOR_WEBGL)||"").toString(),a=(r.getParameter(c.UNMASKED_RENDERER_WEBGL)||"").toString();l&&(e.vendorUnmasked=l),a&&(e.rendererUnmasked=a)}}return e}catch{}return"undefined"}u(ke,"S");function Re(){let t=new Float32Array(1),n=new Uint8Array(t.buffer);return t[0]=1/0,t[0]=t[0]-t[0],n[3]}u(Re,"b");var j=u((t,n,r,o)=>{let i=(r-n)/o,e=0;for(let c=0;c<o;c++)e+=t(n+(c+.5)*i);return e*i},"_");function Oe(t,n){let r={};return n.forEach((o=>{let i=(function(e){if(e.length===0)return null;let c={};e.forEach((s=>{let m=String(s);c[m]=(c[m]||0)+1}));let l=e[0],a=1;return Object.keys(c).forEach((s=>{c[s]>a&&(l=s,a=c[s])})),l})(t.map((e=>o in e?e[o]:void 0)).filter((e=>e!==void 0)));i&&(r[o]=i)})),r}u(Oe,"P");var Ie=["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"],z=new Map;function $(){if(typeof navigator>"u")return{name:"unknown",version:"unknown"};let t=!!navigator.brave,n=(t?"B|":"N|")+navigator.userAgent,r=z.get(n);if(r)return r;let o=[{name:"Brave",detect:u(()=>t,"detect")}],i;for(let e of o)if(e.detect()){let c=ie(navigator.userAgent);return i={name:e.name,version:c.version},z.set(n,i),i}return i=ie(navigator.userAgent),z.set(n,i),i}u($,"M");function ie(t){var n,r,o,i,e,c;let l=[/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)+)/,/(?<name>EdgA|EdgiOS|Edg)\/(?<version>\d+(?:\.\d+)+)/,/(?<name>OPR|OPX)\/(?<version>\d+(?:\.\d+)+)/,/Opera[\s\/](?<version>\d+(?:\.\d+)+)/,/Opera Mini\/(?<version>\d+(?:\.\d+)+)/,/Opera Mobi\/(?<version>\d+(?:\.\d+)+)/,/(?<name>Vivaldi)\/(?<version>\d+(?:\.\d+)+)/,/(?<name>CriOS)\/(?<version>\d+(?:\.\d+)+)/,/(?<name>FxiOS)\/(?<version>\d+(?:\.\d+)+)/,/(?<name>Chrome|Chromium)\/(?<version>\d+(?:\.\d+)+)/,/(?<name>Firefox|Waterfox|Iceweasel|IceCat)\/(?<version>\d+(?:\.\d+)+)/,/Version\/(?<version1>[\d.]+).*Safari\/[\d.]+|(?<name>Safari)\/(?<version2>[\d.]+)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)+)/,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)+)/],a={edg:"Edge",edga:"Edge",edgios:"Edge",opr:"Opera",opx:"Opera",crios:"Chrome",fxios:"Firefox",samsung:"SamsungBrowser",vivaldi:"Vivaldi"};for(let s of l){let m=t.match(s);if(m){let f=(n=m.groups)===null||n===void 0?void 0:n.name,d=((r=m.groups)===null||r===void 0?void 0:r.version)||((o=m.groups)===null||o===void 0?void 0:o.version1)||((i=m.groups)===null||i===void 0?void 0:i.version2);if(f||!(!((e=m.groups)===null||e===void 0)&&e.version1)&&!(!((c=m.groups)===null||c===void 0)&&c.version2)||(f="Safari"),!f&&s.source.includes("Opera Mini")&&(f="Opera Mini"),!f&&s.source.includes("Opera Mobi")&&(f="Opera Mobi"),!f&&s.source.includes("Opera")&&(f="Opera"),!f&&m[1]&&(f=m[1]),!d&&m[2]&&(d=m[2]),f)return{name:a[f.toLowerCase()]||f,version:d||"unknown"}}}return{name:"unknown",version:"unknown"}}u(ie,"C");function ae(){if(typeof navigator>"u"||!navigator.userAgent)return!1;let t=navigator.userAgent;return/Mobi|Android|iPhone|iPod|IEMobile|Opera Mini|Opera Mobi|webOS|BlackBerry|Windows Phone/i.test(t)&&!/iPad/i.test(t)}u(ae,"E");function Be(){let t=[],n={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"]};return Object.keys(n).forEach((r=>{n[r].forEach((o=>{matchMedia(`(${r}: ${o})`).matches&&t.push(`${r}: ${o}`)}))})),t}u(Be,"T");function De(){if(window.location.protocol==="https:"&&typeof window.ApplePaySession=="function")try{let t=window.ApplePaySession.supportsVersion;for(let n=15;n>0;n--)if(t(n))return n}catch{return 0}return 0}u(De,"k");var Le=$().name!=="SamsungBrowser"?1:3,je=$().name!=="Brave",se=137,Ne=(()=>{let t=new Float32Array(548),n=2*Math.PI/se;for(let r=0;r<se;r++){let o=r*n;t[4*r]=0,t[4*r+1]=0,t[4*r+2]=100*Math.cos(o),t[4*r+3]=50*Math.sin(o)}return t})(),D=null;function ce(){try{if(typeof document>"u")return null;let t=document.createElement("canvas");t.width=200,t.height=100;let n=t.getContext("webgl");if(!n)return null;t.addEventListener("webglcontextlost",(c=>{c.preventDefault(),D=null}),{once:!0});let r=n.createShader(n.VERTEX_SHADER),o=n.createShader(n.FRAGMENT_SHADER);if(!r||!o||(n.shaderSource(r,`
|
|
2
|
+
attribute vec2 position;
|
|
3
|
+
void main() {
|
|
4
|
+
gl_Position = vec4(position, 0.0, 1.0);
|
|
5
|
+
}
|
|
6
|
+
`),n.compileShader(r),!n.getShaderParameter(r,n.COMPILE_STATUS))||(n.shaderSource(o,`
|
|
7
|
+
precision mediump float;
|
|
8
|
+
void main() {
|
|
9
|
+
gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color
|
|
10
|
+
}
|
|
11
|
+
`),n.compileShader(o),!n.getShaderParameter(o,n.COMPILE_STATUS)))return null;let i=n.createProgram();if(!i||(n.attachShader(i,r),n.attachShader(i,o),n.linkProgram(i),!n.getProgramParameter(i,n.LINK_STATUS)))return null;let e=n.createBuffer();return e?(n.bindBuffer(n.ARRAY_BUFFER,e),n.bufferData(n.ARRAY_BUFFER,Ne,n.STATIC_DRAW),n.bindBuffer(n.ARRAY_BUFFER,null),{canvas:t,gl:n,program:i,buffer:e}):null}catch{return null}}u(ce,"D");function R(t){let n=new Set;return u(function r(o){if(o&&o.toJSON&&typeof o.toJSON=="function"&&(o=o.toJSON()),o===void 0)return;if(typeof o=="number")return isFinite(o)?""+o:"null";if(typeof o!="object")return JSON.stringify(o);let i,e;if(Array.isArray(o)){for(e="[",i=0;i<o.length;i++)i&&(e+=","),e+=r(o[i])||"null";return e+"]"}if(o===null)return"null";if(n.has(o))throw new TypeError("Converting circular structure to JSON");n.add(o);let c=Object.keys(o).sort();for(e="",i=0;i<c.length;i++){let l=c[i],a=r(o[l]);a&&(e&&(e+=","),e+=JSON.stringify(l)+":"+a)}return n.delete(o),"{"+e+"}"},"e")(t)||""}u(R,"N");var Ue={audio:u(async function(){return te?(async function(){return new Promise(((t,n)=>{try{let r=new te(1,5e3,44100),o=r.createBufferSource(),i=r.createOscillator();i.frequency.value=1e3;let e=r.createDynamicsCompressor(),c;e.threshold.value=-50,e.knee.value=40,e.ratio.value=12,e.attack.value=0,e.release.value=.2,i.connect(e),e.connect(r.destination),i.start(),r.oncomplete=l=>{c=l.renderedBuffer.getChannelData(0),t({sampleHash:xe(c),maxChannels:r.destination.maxChannelCount,channelCountMode:o.channelCountMode})},r.startRendering()}catch(r){n(r)}}))})():null},"audio"),canvas:u(async function(){return new Promise((t=>{let n=Array.from({length:3},(()=>(function(){let r=document.createElement("canvas"),o=r.getContext("2d");if(!o)return null;r.width=re,r.height=20;let i=o.createLinearGradient(0,0,r.width,r.height);i.addColorStop(0,"red"),i.addColorStop(.16666666666666666,"orange"),i.addColorStop(.3333333333333333,"yellow"),i.addColorStop(.5,"green"),i.addColorStop(.6666666666666666,"blue"),i.addColorStop(.8333333333333334,"indigo"),i.addColorStop(1,"violet"),o.fillStyle=i,o.fillRect(0,0,r.width,r.height);let e="Random Text WMwmil10Oo";return o.font="23.123px Arial",o.fillStyle="black",o.fillText(e,-5,15),o.fillStyle="rgba(0, 0, 255, 0.5)",o.fillText(e,-3.3,17.7),o.beginPath(),o.moveTo(0,0),o.lineTo(2*r.width/7,r.height),o.strokeStyle="white",o.lineWidth=2,o.stroke(),o.getImageData(0,0,r.width,r.height)})())).filter((r=>r!==null));n.length!==0?t({commonPixelsHash:M(ne(n,re,20).data.toString()).toString()}):t(null)}))},"canvas"),fonts:u(async function(t){return new Promise((n=>{try{(async function(r){for(var o;!document.body;)await Ee(50);let i=document.createElement("iframe");i.setAttribute("frameBorder","0");let e=i.style;e.setProperty("position","fixed"),e.setProperty("display","block","important"),e.setProperty("visibility","visible"),e.setProperty("border","0"),e.setProperty("opacity","0"),i.src="about:blank",document.body.appendChild(i);let c=i.contentDocument||((o=i.contentWindow)===null||o===void 0?void 0:o.document);if(!c)throw new Error("Iframe document is not accessible");r({iframe:c}),setTimeout((()=>{document.body.removeChild(i)}),0)})((async({iframe:r})=>{let o=r.createElement("canvas").getContext("2d");if(!o)return void n(null);let i=Te.map((c=>oe(o,c))),e={};Me.forEach((c=>{let l=oe(o,c);i.includes(l)||(e[c]=l)})),n(e)}))}catch{n(null)}}))},"fonts"),hardware:u(function(){return new Promise(((t,n)=>{let r=navigator.deviceMemory!==void 0?navigator.deviceMemory:0,o=window.performance&&window.performance.memory?window.performance.memory:0;t({videocard:ke(),architecture:Re(),deviceMemory:r.toString()||"undefined",jsHeapSizeLimit:o.jsHeapSizeLimit||0})}))},"hardware"),locales:u(function(){return new Promise((t=>{t({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})}))},"locales"),math:u(function(){return new Promise((t=>{t({acos:Math.acos(.5),asin:j(Math.asin,-1,1,97),cos:j(Math.cos,0,Math.PI,97),largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),sin:j(Math.sin,-Math.PI,Math.PI,97),tan:j(Math.tan,0,2*Math.PI,97)})}))},"math"),permissions:u(async function(t){let n=t?.permissions_to_check||Ie;return Oe(await Promise.all(Array.from({length:3},(()=>(async function(r){let o={};for(let i of r)try{let e=await navigator.permissions.query({name:i});o[i]=e.state.toString()}catch{}return o})(n)))),n)},"permissions"),plugins:u(async function(){let t=[];if(navigator.plugins)for(let n=0;n<navigator.plugins.length;n++){let r=navigator.plugins[n];t.push([r.name,r.filename,r.description].join("|"))}return new Promise((n=>{n({plugins:t})}))},"plugins"),screen:u(function(){return new Promise((t=>{if(typeof matchMedia>"u"||typeof screen>"u")return void t(null);let n={is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:Be()};ae()&&navigator.maxTouchPoints>0&&(n.resolution=(function(){let r=window.screen.width,o=window.screen.height,i=Math.max(r,o).toString(),e=Math.min(r,o).toString();return`${i}x${e}`})()),t(n)}))},"screen"),system:u(function(){return new Promise((t=>{let n=$();t({platform:window.navigator.platform,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,hardwareConcurrency:navigator.hardwareConcurrency,browser:{name:n.name,version:n.version},mobile:ae(),applePayVersion:De(),cookieEnabled:window.navigator.cookieEnabled})}))},"system"),webgl:u(async function(){let t=je?(D||(D=ce()),D):ce();if(!t)return{webgl:"unsupported"};try{let n=Array.from({length:Le},(()=>(function(r){let{canvas:o,gl:i,program:e,buffer:c}=r;try{i.useProgram(e),i.bindBuffer(i.ARRAY_BUFFER,c);let l=i.getAttribLocation(e,"position");i.enableVertexAttribArray(l),i.vertexAttribPointer(l,2,i.FLOAT,!1,0,0),i.viewport(0,0,o.width,o.height),i.clearColor(0,0,0,1),i.clear(i.COLOR_BUFFER_BIT),i.drawArrays(i.LINES,0,274);let a=new Uint8ClampedArray(o.width*o.height*4);return i.readPixels(0,0,o.width,o.height,i.RGBA,i.UNSIGNED_BYTE,a),new ImageData(a,o.width,o.height)}catch{return D=null,new ImageData(1,1)}finally{i.bindBuffer(i.ARRAY_BUFFER,null),i.useProgram(null),i.viewport(0,0,i.drawingBufferWidth,i.drawingBufferHeight),i.clearColor(0,0,0,0)}})(t)));return{commonPixelsHash:M(ne(n,t.canvas.width,t.canvas.height).data.toString()).toString()}}catch{return{webgl:"unsupported"}}},"webgl"),webrtc:u(async function(t){return new Promise((n=>{let r;try{let o=window.RTCPeerConnection||window.webkitRTCPeerConnection||window.mozRTCPeerConnection;if(!o)return void n({supported:!1,error:"WebRTC not supported"});r=new o({iceCandidatePoolSize:1,iceServers:[]});let i=r;i.createDataChannel(""),(async()=>{try{let e={offerToReceiveAudio:!0,offerToReceiveVideo:!0},c=await i.createOffer(e);await i.setLocalDescription(c);let l=c.sdp||"",a=[...new Set((l.match(/extmap:\d+ [^\n\r]+/g)||[]).map((A=>A.replace(/extmap:\d+ /,""))))].sort(),s=u(A=>{let w=l.match(new RegExp(`m=${A} [^\\s]+ [^\\s]+ ([^\\n\\r]+)`));return w?w[1].split(" "):[]},"a"),m=u((A,w)=>w.map((E=>{let T=new RegExp(`(rtpmap|fmtp|rtcp-fb):${E} (.+)`,"g"),h=[...l.matchAll(T)];if(!h.length)return null;let g={};return h.forEach((b=>{let[S,x,P]=b,O=P.split("/");x==="rtpmap"?(g.mimeType=`${A}/${O[0]}`,g.clockRate=+O[1],A==="audio"&&(g.channels=+O[2]||1)):x==="rtcp-fb"?(g.feedbackSupport=g.feedbackSupport||[],g.feedbackSupport.push(P)):x==="fmtp"&&(g.sdpFmtpLine=P)})),g})).filter(Boolean),"s"),f=m("audio",s("audio")),d=m("video",s("video")),p={audio:{count:f.length,hash:M(R(f))},video:{count:d.length,hash:M(R(d))},extensionsHash:M(R(a))};i.close();let v={supported:!0,...p,candidateType:"host"};n({details:v,hash:M(R(v))})}catch(e){i.close(),n({supported:!0,error:`WebRTC offer failed: ${e.message}`})}})()}catch(o){r?.close(),n({supported:!1,error:`WebRTC error: ${o.message}`})}}))},"webrtc"),speech:u(async function(){return new Promise((t=>{try{if(typeof window>"u"||!window.speechSynthesis||typeof window.speechSynthesis.getVoices!="function")return void t({supported:!1,error:"Speech Synthesis API not supported"});let n=!1,r=null,o=u(c=>{if(!n){n=!0,r&&clearTimeout(r);try{let l=c.map((s=>{let m=u(f=>f.replace(/\\/g,"\\\\").replace(/,/g,"\\,"),"n");return[m(s.voiceURI||""),m(s.name||""),m(s.lang||""),s.localService?"1":"0",s.default?"1":"0"].join(",")}));l.sort();let a={voiceCount:c.length,voicesHash:M(R(l))};t({details:a,hash:M(R(a))})}catch(l){t({supported:!0,error:`Voice processing failed: ${l.message}`})}}},"r"),i=window.speechSynthesis.getVoices();if(i.length>0)return void o(i);r=setTimeout((()=>{let c=window.speechSynthesis.getVoices();o(c)}),800);let e=u(()=>{window.speechSynthesis.removeEventListener("voiceschanged",e);let c=window.speechSynthesis.getVoices();o(c)},"i");window.speechSynthesis.addEventListener("voiceschanged",e)}catch(n){t({supported:!1,error:`Speech Synthesis error: ${n.message}`})}}))},"speech")},Fe={},$e={timeout:"true"};function pe(t,n){var r,o;let i=$();if(i.name==="unknown"&&n){let s=(r=n.system)===null||r===void 0?void 0:r.browser;s?.name&&(i={name:String(s.name),version:String(s.version||"unknown")})}let e=i.name.toLowerCase(),c=parseInt(i.version.split(".")[0]||"0",10),l=Array.isArray(t?.exclude)?[...t.exclude]:[],a=[...new Set([...t?.stabilize||[],"always"])];for(let s of a){let m=Ae[s];if(m)for(let f of m)"browsers"in f&&!(!((o=f.browsers)===null||o===void 0)&&o.some((d=>{let p=d.match(/(.+?)(>=)(\d+)/);return p?e===p[1]&&c>=+p[3]:e===d})))||l.push(...f.exclude)}return l}u(pe,"W");function he(t,n){let r=pe(n,t),o=Array.isArray(n?.include)?n.include:[];return u(function i(e,c=""){let l={};for(let[a,s]of Object.entries(e)){let m=c?`${c}.${a}`:a;if(typeof s!="object"||Array.isArray(s)||s===null){let f=r.some((p=>m.startsWith(p))),d=o.some((p=>m.startsWith(p)));f&&!d||(l[a]=s)}else{let f=i(s,m);Object.keys(f).length>0&&(l[a]=f)}}return l},"e")(t)}u(he,"G");var Ve="https://experimental.thumbmarkjs.com/experimental.min.js",We=131072;function k(t,n){let r={target:"request",type:t};return n&&(r.message=n.slice(0,200)),{schema:0,payload_id:"none",signals:{},errors:[r]}}u(k,"J");function le(t){if(typeof t!="object"||t===null||Array.isArray(t))return!1;let n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}u(le,"z");function J(t){return t instanceof Error?t.message:void 0}u(J,"Y");async function He(){var t;try{return(t=await(function(n,r){let o,i=new Promise((e=>{o=setTimeout((()=>e(null)),r)}));return Promise.race([n,i]).finally((()=>clearTimeout(o)))})((async function(){let n,r;try{let o=await fetch(Ve,{method:"GET"});if(!o.ok)return k("http",`HTTP ${o.status}`);n=await o.text()}catch(o){return k("fetch",J(o))}if(!n)return k("empty");if(n.length>We)return k("oversized",`${n.length} chars`);try{let o=eval;r=await Promise.resolve(o(n))}catch(o){return k((function(i){return i instanceof SyntaxError?"syntax":i instanceof EvalError?"eval_blocked":"threw"})(o),J(o))}return(function(o){return!!le(o)&&!(typeof o.schema!="number"||o.schema<1)&&typeof o.payload_id=="string"&&le(o.signals)})(r)?{...r,errors:Array.isArray(r.errors)?r.errors:[]}:k("malformed")})(),2e3))!==null&&t!==void 0?t:k("timeout","exceeded 2000ms")}catch(n){return k("threw",J(n))}}u(He,"K");var ge="_tmjs_c";function N(t){return new TextEncoder().encode(t).length}u(N,"Z");function ue(){try{if(typeof sessionStorage>"u")return;sessionStorage.setItem(ge,"1")}catch{}}u(ue,"Q");function qe(t,n,r){try{if(n.collect_beacon===!1||!t||N(t)>64||(function(){try{return typeof sessionStorage<"u"&&!!sessionStorage.getItem(ge)}catch{return!1}})())return;let o=n.collect_endpoint||"https://collect.thumbmarkjs.com/beacon",i=typeof navigator<"u"?navigator.userAgent:"",e={thumbmark:t};i&&N(i)<=512&&(e.ua=i),r?.ja4&&N(r.ja4)<=64&&(e.ja4=r.ja4),r?.source&&N(r.source)<=32&&(e.ja4_source=r.source);let c=JSON.stringify(e);if(typeof navigator<"u"&&typeof navigator.sendBeacon=="function"){let l=!1;try{l=navigator.sendBeacon(o,c)}catch{l=!1}if(l)return void ue()}try{let l=fetch(o,{method:"POST",mode:"no-cors",keepalive:!0,headers:{"Content-Type":"text/plain;charset=UTF-8"},body:c});ue(),l.catch((()=>{}))}catch{}}catch{}}u(qe,"ee");var ve="visitor_id";function ye(t){return t.storage_property_name?t.storage_property_name:t.property_name_factory(ve)}u(ye,"te");var de=`${me}_${ve}`;function we(t,n){try{localStorage.setItem(ye(n),t)}catch{}}u(we,"oe");var be="cache";function Y(t){try{let n=localStorage.getItem(t.property_name_factory(be));return JSON.parse(n)||{}}catch{}return{}}u(Y,"ae");function Ge(t){return t.cache_lifetime_in_ms>2592e5?Date.now()+2592e5:Date.now()+t.cache_lifetime_in_ms}u(Ge,"se");var X=class X extends Error{constructor(n){super(`HTTP error! status: ${n}`),this.status=n}};u(X,"ce");var I=X,B=null,K=null;async function ze(t,n,r,o){let i=r.simple_request?{"Content-Type":"text/plain"}:{"x-api-key":r.api_key,Authorization:"custom-authorized","Content-Type":"application/json"},e=await fetch(t,{method:"POST",headers:i,body:JSON.stringify(n)});if(!e.ok)throw new I(e.status);let c=await e.json();return c.visitorId&&c.visitorId!==o&&we(c.visitorId,r),K=c,(function(l,a){if(!l.cache_api_call||!l.cache_lifetime_in_ms)return;let{collect:s,...m}=a;(function(f,d){let p={...Y(f),...d};try{localStorage.setItem(f.property_name_factory(be),JSON.stringify(p))}catch{}})(l,{apiResponseExpiry:Ge(l),apiResponse:m})})(r,c),c}u(ze,"de");var Je=u((t,n)=>{var r;if(t.cache_api_call){if(K)return Promise.resolve(K);let d=(function(p){let v=Y(p);if(v&&v.apiResponse&&v.apiResponseExpiry&&Date.now()<=v.apiResponseExpiry)return v.apiResponse})(t);if(d)return Promise.resolve(d);if(B)return B}let o=t.api_endpoint||fe,i;try{let d=new URL(o);i=d.pathname!=="/"||o.endsWith("/")?o:`${d.origin}/thumbmark`}catch{i=`${o}/thumbmark`}let e=(function(d){try{let p=ye(d),v=localStorage.getItem(p);return v||p===de||(v=localStorage.getItem(de),v&&we(v,d)),v}catch{return null}})(t),{api_key:c,...l}=t,a={components:n,options:l,clientHash:M(R(n)),version:"1.12.0",path:(r=window?.location)===null||r===void 0?void 0:r.pathname};if(e&&(a.visitorId=e),t.metadata){let d=typeof t.metadata=="function"?t.metadata():t.metadata;d&&((typeof d=="string"?d.length:JSON.stringify(d).length)>1e3?console.error("ThumbmarkJS: Metadata exceeds 1000 characters. Skipping metadata."):a.metadata=d)}let s=t.timeout||5e3,m=(async function(d,p,v,A){for(let w=0;w<3;w++){w>0&&await new Promise((E=>setTimeout(E,200*w)));try{return await ze(d,p,v,A)}catch(E){if(E instanceof I||w===2)throw E}}throw new Error("Unreachable")})(i,a,t,e).finally((()=>{B=null})),f=new Promise((d=>{setTimeout((()=>{let p=Y(t);d(p?.apiResponse||{info:{timed_out:!0},...e&&{visitorId:e}})}),s)}));return B=Promise.race([m,f]),B},"me");async function Ye(t,n={}){var r;if(typeof document>"u"||typeof window>"u")return{thumbmark:"",components:{},info:{},version:"1.12.0",error:[{type:"fatal",message:"Browser environment required"}]};try{let o={...F,...t},i=[],e=o.logging&&!sessionStorage.getItem("_tmjs_l")&&Math.random()<1e-4,c={...Ue,...Fe,...n},{elapsed:l,resolvedComponents:a,errors:s,pipelineTimings:m}=await Ke(c,o);i.push(...s);let f=o.api_key||o.simple_request?Je(o,a):null,d=null;if(f)try{d=await f}catch(y){if(y instanceof I&&y.status===403)return{error:[{type:"api_unauthorized",message:"Invalid API key or quota exceeded"}],components:{},info:{},version:"1.12.0",thumbmark:""};i.push({type:y instanceof I?"api_error":"network_error",message:y instanceof Error?y.message:String(y)})}!((r=d?.info)===null||r===void 0)&&r.timed_out&&i.push({type:"api_timeout",message:"API request timed out"});let p=performance.now(),v=he(d?.components||{},o),A=performance.now()-p,w={...a,...v},E=d?.info||{uniqueness:{score:"api only"}},T,h=0,g=0;if(d?.thumbmark)T=d.thumbmark;else{let y=performance.now(),W=R(w);h=performance.now()-y;let H=performance.now();T=M(W),g=performance.now()-H}let b="1.12.0";e&&(async function(y,W,H,Q=[]){var q;let _e=`${fe}/log`;sessionStorage.setItem("_tmjs_l","1");let Pe={thumbmark:y,components:W,experimental:await He(),version:"1.12.0",options:H,path:(q=window?.location)===null||q===void 0?void 0:q.pathname,...Q.length>0&&{errors:Q}};try{await fetch(_e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Pe)})}catch{}})(T,w,o,i).catch((()=>{})),d?.collect&&typeof d.collect=="object"&&qe(T,o,d.collect);let S={"_pipeline.dispatch":m["_pipeline.dispatch"],"_pipeline.resolve":m["_pipeline.resolve"],"_pipeline.filter":m["_pipeline.filter"]+A,"_pipeline.stringify":h,"_pipeline.hash":g,"_pipeline.assembly":0},x={...l,...m,...S},P=o.performance?{elapsed:x}:{},O=performance.now(),V={...d?.visitorId&&{visitorId:d.visitorId},thumbmark:T,components:w,info:E,version:b,...P,...i.length>0&&{error:i},...d?.requestId&&{requestId:d.requestId},...d?.metadata&&{metadata:d.metadata}};return x["_pipeline.assembly"]=performance.now()-O,V}catch(o){return{thumbmark:"",components:{},info:{},version:"1.12.0",error:[{type:"fatal",message:o instanceof Error?o.message:String(o)}]}}}u(Ye,"pe");async function Ke(t,n){let r={...F,...n},o=pe(r).filter((h=>!h.includes("."))),i=Object.entries(t).filter((([h])=>{var g;return!(!((g=r?.exclude)===null||g===void 0)&&g.includes(h))})).filter((([h])=>!o.includes(h))).filter((([h])=>{var g,b,S,x;return!((g=r?.include)===null||g===void 0)&&g.some((P=>P.includes(".")))?(b=r?.include)===null||b===void 0?void 0:b.some((P=>P.startsWith(h))):((S=r?.include)===null||S===void 0?void 0:S.length)===0||((x=r?.include)===null||x===void 0?void 0:x.includes(h))})),e=i.map((([h])=>h)),c={},l=performance.now(),a=i.map((([h,g])=>{let b=performance.now(),S=g(n);return c[`_dispatch.${h}`]=performance.now()-b,S})),s=performance.now()-l,m=performance.now(),f=await(function(h,g,b){return Promise.all(h.map((S=>{let x=performance.now(),P,O=S.then((y=>(P!==void 0&&clearTimeout(P),{value:y,elapsed:performance.now()-x}))).catch((y=>(P!==void 0&&clearTimeout(P),{value:b,elapsed:performance.now()-x,error:y instanceof Error?y.message:String(y)}))),V=new Promise((y=>{P=setTimeout((()=>{y({value:b,elapsed:performance.now()-x,error:"timeout"})}),g)}));return Promise.race([O,V])})))})(a,r?.timeout||5e3,$e),d=performance.now()-m,p={},v={},A=[];f.forEach(((h,g)=>{var b;let S=e[g];p[S]=(b=h.elapsed)!==null&&b!==void 0?b:0,h.error==="timeout"?A.push({type:"component_timeout",message:`Component '${S}' timed out`,component:S}):h.error&&A.push({type:"component_error",message:h.error,component:S}),h.value!=null&&(v[S]=h.value)}));let w=performance.now(),E=he(v,r),T={"_pipeline.dispatch":s,"_pipeline.resolve":d,"_pipeline.filter":performance.now()-w,...c};return{elapsed:p,resolvedComponents:E,errors:A,pipelineTimings:T}}u(Ke,"fe");var Z=class Z{constructor(n){this.options={...F,...n},this.customComponents={}}async get(n){return Ye({...this.options,...n},this.customComponents)}getVersion(){return"1.12.0"}includeComponent(n,r){this.customComponents[n]=r}};u(Z,"ye");var U=Z;var Xe=["canvas","webgl","audio","fonts","hardware","screen","system","locales","math","plugins"],Ze=2e3,Qe=4e3,et=1e3,tt=2e3,nt=64,rt=32,ot=8,it=128;function Se(t,n){if(typeof t!="string")return;let r=t.trim();return r.length>0&&r.length<=n?r:void 0}u(Se,"a");async function at(){let t=navigator.userAgentData;if(typeof t?.getHighEntropyValues!="function")return;let n=await G(()=>t.getHighEntropyValues(["model","platformVersion"]),et);if(n==null)return;let r=Se(n.model,nt),o=Se(n.platformVersion,rt),i={...r!==void 0?{model:r}:{},...o!==void 0?{platformVersion:o}:{}};return Object.keys(i).length>0?i:void 0}u(at,"y");async function st(){let[t,n]=await Promise.all([new U({stabilize:["private","iframe"],exclude:["permissions","webrtc","speech"],logging:!1,collect_beacon:!1,timeout:Ze}).get(),at()]),r=t?.thumbmark;if(typeof r!="string"||r.length<ot||r.length>it)return;let o={};for(let i of Xe){let e=t.components?.[i];e==null||e.timeout==="true"||(o[i]=await ee(e))}return{hash:r,c:o,...n!==void 0?{hints:n}:{}}}u(st,"_");function ct(){return new Promise(t=>{typeof globalThis.requestIdleCallback=="function"?globalThis.requestIdleCallback(()=>t(),{timeout:tt}):t()})}u(ct,"w");async function ht(t){return t()||(await ct(),t())?"busy":G(st,Qe)}u(ht,"I");export{ht as computePrint,at as readHints};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./chunk-4FHWXBOB.js";function t(){throw new Error("scanic ML detector is not vendored (classical pipeline only)")}e(t,"e");var n={};export{n as default,t as initMlDetector};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as s}from"./chunk-4FHWXBOB.js";var c="selfie_segmenter.tflite";function g(t){if(t===void 0||t.length===0)return null;let a=t.length===1,r=t[0],n=Float32Array.from(r.getAsFloat32Array());if(!a)for(let e=0;e<n.length;e+=1)n[e]=1-n[e];return{data:n,width:r.width,height:r.height}}s(g,"l");async function u(t){let a=t.replace(/\/+$/,""),r=await import("./vision_bundle-WBHR7TEE.js"),n=await r.FilesetResolver.forVisionTasks(a),e=await r.ImageSegmenter.createFromOptions(n,{baseOptions:{modelAssetPath:`${a}/${c}`,delegate:"CPU"},runningMode:"VIDEO",outputConfidenceMasks:!0,outputCategoryMask:!1});return{segment(l,i){try{let o=e.segmentForVideo(l,i);try{return g(o.confidenceMasks)}finally{o.close?.()}}catch{return null}},close(){try{e.close()}catch{}}}}s(u,"u");export{c as SEGMENTER_MODEL,u as createSelfieSegmenter,g as personMaskOf};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i}from"./chunk-4FHWXBOB.js";var w="https://challenges.cloudflare.com/turnstile/v0/api.js",b=1e4;function p(){return window.turnstile}i(p,"T");var a=null,n=null,f=Promise.resolve();function g(){a=null,n?.container.remove(),n=null,f=Promise.resolve()}i(g,"b");function E(){return a??(a=new Promise((l,r)=>{let t=p();if(t){l(t);return}let e=document.createElement("script");e.src=w,e.async=!0,e.onload=()=>{let s=p();s?l(s):(a=null,r(new Error("Turnstile script loaded but exposed no API")))},e.onerror=()=>{a=null,e.remove(),r(new Error("Turnstile script failed to load"))},document.head.appendChild(e)})),a}i(E,"v");function m(){return new Error("Turnstile challenge aborted")}i(m,"c");function y(l,r){if(n!==null&&n.siteKey===r)return n;if(n!==null){try{l.remove(n.id)}catch{}n.container.remove(),n=null}let t=document.createElement("div");document.body.appendChild(t);let e={siteKey:r,container:t,fresh:!0,pending:null},s=l.render(t,{sitekey:r,execution:"execute",appearance:"execute",callback:i(o=>e.pending?.resolve(o),"callback"),"error-callback":i(o=>e.pending?.reject(new Error(`Turnstile challenge failed${o?` (${o})`:""}`)),"error-callback")});if(s===void 0)throw t.remove(),new Error("Turnstile render returned no widget id");return e.id=s,n=e,n}i(y,"w");function x(l,r){try{l.reset(r.id),r.fresh=!1}catch{n===r&&(r.container.remove(),n=null)}}i(x,"h");function P(l,r={}){let t=f.then(()=>T(l,r),()=>T(l,r));return f=t.catch(()=>{}),t}i(P,"P");async function T(l,r){let t=r.timeoutMs??1e4,e=r.signal;if(e?.aborted)throw m();let s=await E();if(e?.aborted)throw m();let o=y(s,l),v,u,h=!1;try{return await new Promise((c,d)=>{o.pending={resolve:c,reject:d},v=setTimeout(()=>d(new Error(`Turnstile challenge timed out (${t} ms)`)),t),e!==void 0&&(u=i(()=>d(m()),"u"),e.addEventListener("abort",u,{once:!0})),o.fresh||s.reset(o.id),o.fresh=!1,s.execute(o.id)}).then(c=>(h=!0,c))}finally{clearTimeout(v),e!==void 0&&u!==void 0&&e.removeEventListener("abort",u),o.pending=null,h||x(s,o)}}i(T,"m");export{b as TURNSTILE_EXECUTE_TIMEOUT_MS,w as TURNSTILE_SCRIPT_SRC,P as executeTurnstile,E as loadTurnstile,g as resetTurnstileForTests};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h}from"./chunk-4FHWXBOB.js";var x=5242880,A=2560,d=[.92,.85,.75],s=new Set(["","image/jpeg","image/jpg","image/pjpeg","image/png","image/heic","image/heif","image/heic-sequence","image/heif-sequence"]),c=new Set(["heic","heix","hevc","hevx","heim","heis","mif1","msf1"]);function m(e){if(e.length>=3&&e[0]===255&&e[1]===216&&e[2]===255)return"jpeg";if(e.length>=8&&e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71&&e[4]===13&&e[5]===10&&e[6]===26&&e[7]===10)return"png";if(e.length>=12&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112){let t=String.fromCharCode(e[8],e[9],e[10],e[11]);return c.has(t)?"heif":null}return null}h(m,"f");async function y(e){let t=e.slice(0,16);return typeof t.arrayBuffer=="function"?new Uint8Array(await t.arrayBuffer()):new Promise((n,r)=>{let i=new FileReader;i.onload=()=>n(new Uint8Array(i.result)),i.onerror=()=>r(i.error),i.readAsArrayBuffer(t)})}h(y,"w");var M=h(async e=>{let t=await createImageBitmap(e,{imageOrientation:"from-image"});return{width:t.width,height:t.height,draw:h((n,r,i)=>n.drawImage(t,0,0,r,i),"draw"),close:h(()=>t.close(),"close")}},"x"),_=h((e,t)=>{let n=document.createElement("canvas");n.width=e.width,n.height=e.height;let r=n.getContext("2d");return r===null?Promise.resolve(null):(e.draw(r,e.width,e.height),new Promise(i=>n.toBlob(i,"image/jpeg",t)))},"b");async function v(e,t={}){let n=(e.type??"").toLowerCase();if(!s.has(n)||e.size===0)throw new TypeError("unsupported_file");let r;try{r=m(await y(e))}catch{r=null}if(r===null)throw new TypeError("unsupported_file");if(r!=="heif"&&e.size<=5242880)return{blob:e,contentType:r==="png"?"image/png":"image/jpeg",converted:!1};let i=t.decode??M,f=t.encode??_,a;try{a=await i(e)}catch{throw new TypeError("unsupported_file")}try{if(!(a.width>0&&a.height>0))throw new TypeError("unsupported_file");let l=Math.min(2560,Math.max(a.width,a.height));for(let g=0;g<2;g+=1){let u=l/Math.max(a.width,a.height),w={width:Math.max(1,Math.round(a.width*u)),height:Math.max(1,Math.round(a.height*u)),draw:a.draw};for(let p of d){let o=await f(w,p).catch(()=>null);if(o!==null&&o.size>0&&o.size<=5242880)return{blob:o,contentType:"image/jpeg",converted:!0}}l=Math.round(l*.75)}throw new TypeError("unsupported_file")}finally{a.close()}}h(v,"U");export{x as UPLOAD_MAX_BYTES,A as UPLOAD_MAX_LONG_SIDE,v as prepareUploadFile,m as sniffUploadFormat};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import{a}from"./chunk-4FHWXBOB.js";var zn=typeof self<"u"?self:{};function ma(e,t){t:{for(var n=["CLOSURE_FLAGS"],r=zn,i=0;i<n.length;i++)if((r=r[n[i]])==null){n=null;break t}n=r}return(e=n&&n[e])!=null?e:t}a(ma,"e");function Zt(){throw Error("Invalid UTF8")}a(Zt,"n");function ao(e,t){return t=String.fromCharCode.apply(null,t),e==null?t:e+t}a(ao,"r");var Xr,Mi,m1=typeof TextDecoder<"u",y1,_1=typeof TextEncoder<"u";function ya(e){if(_1)e=(y1||(y1=new TextEncoder)).encode(e);else{let n=0,r=new Uint8Array(3*e.length);for(let i=0;i<e.length;i++){var t=e.charCodeAt(i);if(t<128)r[n++]=t;else{if(t<2048)r[n++]=t>>6|192;else{if(t>=55296&&t<=57343){if(t<=56319&&i<e.length){let s=e.charCodeAt(++i);if(s>=56320&&s<=57343){t=1024*(t-55296)+s-56320+65536,r[n++]=t>>18|240,r[n++]=t>>12&63|128,r[n++]=t>>6&63|128,r[n++]=63&t|128;continue}i--}t=65533}r[n++]=t>>12|224,r[n++]=t>>6&63|128}r[n++]=63&t|128}}e=n===r.length?r:r.subarray(0,n)}return e}a(ya,"h");function _a(e){zn.setTimeout((()=>{throw e}),0)}a(_a,"u");var ji,v1=ma(610401301,!1),co=ma(748402147,!0);function ho(){var e=zn.navigator;return e&&(e=e.userAgent)?e:""}a(ho,"p");var uo=zn.navigator;function ai(e){return ai[" "](e),e}a(ai,"m");ji=uo&&uo.userAgentData||null,ai[" "]=function(){};var va={},Er=null;function E1(e){let t=e.length,n=3*t/4;n%3?n=Math.floor(n):"=.".indexOf(e[t-1])!=-1&&(n="=.".indexOf(e[t-2])!=-1?n-2:n-1);let r=new Uint8Array(n),i=0;return(function(s,o){function c(l){for(;h<s.length;){let u=s.charAt(h++),_=Er[u];if(_!=null)return _;if(!/^[\s\xa0]*$/.test(u))throw Error("Unknown base64 encoding at char: "+u)}return l}a(c,"n"),Ea();let h=0;for(;;){let l=c(-1),u=c(0),_=c(64),d=c(64);if(d===64&&l===-1)break;o(l<<2|u>>4),_!=64&&(o(u<<4&240|_>>2),d!=64&&o(_<<6&192|d))}})(e,(function(s){r[i++]=s})),i!==n?r.subarray(0,i):r}a(E1,"v");function Ea(){if(!Er){Er={};var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"];for(let n=0;n<5;n++){let r=e.concat(t[n].split(""));va[n]=r;for(let i=0;i<r.length;i++){let s=r[i];Er[s]===void 0&&(Er[s]=i)}}}}a(Ea,"E");var w1=typeof Uint8Array<"u",wa=!(!(v1&&ji&&ji.brands.length>0)&&(ho().indexOf("Trident")!=-1||ho().indexOf("MSIE")!=-1))&&typeof btoa=="function",lo=/[-_.]/g,T1={"-":"+",_:"/",".":"="};function A1(e){return T1[e]||""}a(A1,"k");function Ta(e){if(!wa)return E1(e);e=lo.test(e)?e.replace(lo,A1):e,e=atob(e);let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}a(Ta,"S");function as(e){return w1&&e!=null&&e instanceof Uint8Array}a(as,"x");var Kn={};function oe(){return b1||(b1=new It(null,Kn))}a(oe,"R");function cs(e){Aa(Kn);var t=e.g;return(t=t==null||as(t)?t:typeof t=="string"?Ta(t):null)==null?t:e.g=t}a(cs,"I");var _e,It=(_e=class{h(){return new Uint8Array(cs(this)||0)}constructor(t,n){if(Aa(n),this.g=t,t!=null&&t.length===0)throw Error("ByteString should be constructed with non-empty values")}},a(_e,"F"),_e),b1,k1;function Aa(e){if(e!==Kn)throw Error("illegal external caller")}a(Aa,"C");function ba(e,t){e.__closure__error__context__984382||(e.__closure__error__context__984382={}),e.__closure__error__context__984382.severity=t}a(ba,"O");function Vi(e){return ba(e=Error(e),"warning"),e}a(Vi,"N");function Yn(e,t){if(e!=null){var n=k1??(k1={}),r=n[e]||0;r>=t||(n[e]=r+1,ba(e=Error(),"incident"),_a(e))}}a(Yn,"U");function ir(){return typeof BigInt=="function"}a(ir,"D");var sr=typeof Symbol=="function"&&typeof Symbol()=="symbol";function Mt(e,t,n=!1){return typeof Symbol=="function"&&typeof Symbol()=="symbol"?n&&Symbol.for&&e?Symbol.for(e):e!=null?Symbol(e):Symbol():t}a(Mt,"G");var S1=Mt("jas",void 0,!0),fo=Mt(void 0,"0di"),yr=Mt(void 0,"1oa"),at=Mt(void 0,Symbol()),x1=Mt(void 0,"0ub"),L1=Mt(void 0,"0ubs"),Xi=Mt(void 0,"0ubsb"),R1=Mt(void 0,"0actk"),qn=Mt("m_m","Pa",!0),po=Mt(),ka={Ga:{value:0,configurable:!0,writable:!0,enumerable:!1}},Sa=Object.defineProperties,p=sr?S1:"Ga",he,go=[];function Mr(e,t){sr||p in e||Sa(e,ka),e[p]|=t}a(Mr,"nt");function W(e,t){sr||p in e||Sa(e,ka),e[p]=t}a(W,"rt");function Pr(e){return Mr(e,34),e}a(Pr,"it");function xr(e){return Mr(e,8192),e}a(xr,"st");W(go,7),he=Object.freeze(go);var $n={};function ht(e,t){return t===void 0?e.h!==ae&&!!(2&(0|e.v[p])):!!(2&t)&&e.h!==ae}a(ht,"at");var ae={};function hs(e,t){if(e!=null){if(typeof e=="string")e=e?new It(e,Kn):oe();else if(e.constructor!==It)if(as(e))e=e.length?new It(new Uint8Array(e),Kn):oe();else{if(!t)throw Error();e=void 0}}return e}a(hs,"ht");var ro=class ro{constructor(t,n,r){this.g=t,this.h=n,this.l=r}next(){let t=this.g.next();return t.done||(t.value=this.h.call(this.l,t.value)),t}[Symbol.iterator](){return this}};a(ro,"ut");var Qr=ro,I1=Object.freeze({});function xa(e,t,n){let r=128&t?0:-1,i=e.length;var s;(s=!!i)&&(s=(s=e[i-1])!=null&&typeof s=="object"&&s.constructor===Object);let o=i+(s?-1:0);for(t=128&t?1:0;t<o;t++)n(t-r,e[t]);if(s){e=e[i-1];for(let c in e)!isNaN(c)&&n(+c,e[c])}}a(xa,"ft");var La={};function or(e){return 128&e?La:void 0}a(or,"pt");function ci(e){return e.Na=!0,e}a(ci,"gt");var F1=ci((e=>typeof e=="number")),mo=ci((e=>typeof e=="string")),M1=ci((e=>typeof e=="boolean")),hi=typeof zn.BigInt=="function"&&typeof zn.BigInt(0)=="bigint";function ct(e){var t=e;if(mo(t)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t))throw Error(String(t))}else if(F1(t)&&!Number.isSafeInteger(t))throw Error(String(t));return hi?BigInt(e):e=M1(e)?e?"1":"0":mo(e)?e.trim()||"0":String(e)}a(ct,"Et");var Hi=ci((e=>hi?e>=C1&&e<=N1:e[0]==="-"?yo(e,P1):yo(e,O1))),P1=Number.MIN_SAFE_INTEGER.toString(),C1=hi?BigInt(Number.MIN_SAFE_INTEGER):void 0,O1=Number.MAX_SAFE_INTEGER.toString(),N1=hi?BigInt(Number.MAX_SAFE_INTEGER):void 0;function yo(e,t){if(e.length>t.length)return!1;if(e.length<t.length||e===t)return!0;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r>i)return!1;if(r<i)return!0}}a(yo,"St");var U1=typeof Uint8Array.prototype.slice=="function",D1,F=0,D=0;function _o(e){let t=e>>>0;F=t,D=(e-t)/4294967296>>>0}a(_o,"Ft");function Jn(e){if(e<0){_o(-e);let[t,n]=fs(F,D);F=t>>>0,D=n>>>0}else _o(e)}a(Jn,"Mt");function us(e){let t=D1||(D1=new DataView(new ArrayBuffer(8)));t.setFloat32(0,+e,!0),D=0,F=t.getUint32(0,!0)}a(us,"Pt");function Ra(e,t){let n=4294967296*t+(e>>>0);return Number.isSafeInteger(n)?n:Lr(e,t)}a(Ra,"Ct");function B1(e,t){return ct(ir()?BigInt.asUintN(64,(BigInt(t>>>0)<<BigInt(32))+BigInt(e>>>0)):Lr(e,t))}a(B1,"Ot");function Ia(e,t){return ir()?ct(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(t))<<BigInt(32))+BigInt.asUintN(32,BigInt(e)))):ct(ls(e,t))}a(Ia,"Nt");function Lr(e,t){if(e>>>=0,(t>>>=0)<=2097151)var n=""+(4294967296*t+e);else ir()?n=""+(BigInt(t)<<BigInt(32)|BigInt(e)):(e=(16777215&e)+6777216*(n=16777215&(e>>>24|t<<8))+6710656*(t=t>>16&65535),n+=8147497*t,t*=2,e>=1e7&&(n+=e/1e7>>>0,e%=1e7),n>=1e7&&(t+=n/1e7>>>0,n%=1e7),n=t+vo(n)+vo(e));return n}a(Lr,"Ut");function vo(e){return e=String(e),"0000000".slice(e.length)+e}a(vo,"Dt");function ls(e,t){if(2147483648&t)if(ir())e=""+(BigInt(0|t)<<BigInt(32)|BigInt(e>>>0));else{let[n,r]=fs(e,t);e="-"+Lr(n,r)}else e=Lr(e,t);return e}a(ls,"Bt");function ui(e){if(e.length<16)Jn(Number(e));else if(ir())e=BigInt(e),F=Number(e&BigInt(4294967295))>>>0,D=Number(e>>BigInt(32)&BigInt(4294967295));else{let t=+(e[0]==="-");D=F=0;let n=e.length;for(let r=t,i=(n-t)%6+t;i<=n;r=i,i+=6){let s=Number(e.slice(r,i));D*=1e6,F=1e6*F+s,F>=4294967296&&(D+=Math.trunc(F/4294967296),D>>>=0,F>>>=0)}if(t){let[r,i]=fs(F,D);F=r,D=i}}}a(ui,"Gt");function fs(e,t){return t=~t,e?e=1+~e:t+=1,[e,t]}a(fs,"jt");function wt(e){return Array.prototype.slice.call(e)}a(wt,"Vt");var Cr=typeof BigInt=="function"?BigInt.asIntN:void 0,G1=typeof BigInt=="function"?BigInt.asUintN:void 0,ce=Number.isSafeInteger,li=Number.isFinite,Zn=Math.trunc,j1=ct(0);function wr(e){if(e!=null&&typeof e!="number")throw Error(`Value of float/double field must be a number, found ${typeof e}: ${e}`);return e}a(wr,"qt");function Rt(e){return e==null||typeof e=="number"?e:e==="NaN"||e==="Infinity"||e==="-Infinity"?Number(e):void 0}a(Rt,"$t");function Rr(e){if(e!=null&&typeof e!="boolean"){var t=typeof e;throw Error(`Expected boolean but got ${t!="object"?t:e?Array.isArray(e)?"array":t:"null"}: ${e}`)}return e}a(Rr,"Jt");function Fa(e){return e==null||typeof e=="boolean"?e:typeof e=="number"?!!e:void 0}a(Fa,"Zt");var V1=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function Or(e){switch(typeof e){case"bigint":return!0;case"number":return li(e);case"string":return V1.test(e);default:return!1}}a(Or,"te");function ar(e){if(e==null)return e;if(typeof e=="string"&&e)e=+e;else if(typeof e!="number")return;return li(e)?0|e:void 0}a(ar,"ee");function Ma(e){if(e==null)return e;if(typeof e=="string"&&e)e=+e;else if(typeof e!="number")return;return li(e)?e>>>0:void 0}a(Ma,"ne");function Pa(e){let t=e.length;return(e[0]==="-"?t<20||t===20&&e<="-9223372036854775808":t<19||t===19&&e<="9223372036854775807")?e:(ui(e),ls(F,D))}a(Pa,"re");function ds(e){if(e=Zn(e),!ce(e)){Jn(e);var t=F,n=D;(e=2147483648&n)&&(n=~n>>>0,(t=1+~t>>>0)==0&&(n=n+1>>>0)),e=typeof(t=Ra(t,n))=="number"?e?-t:t:e?"-"+t:t}return e}a(ds,"ie");function Ca(e){var t=Zn(Number(e));return ce(t)?String(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),Pa(e))}a(Ca,"se");function Oa(e){var t=Zn(Number(e));return ce(t)?ct(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),ir()?ct(Cr(64,BigInt(e))):ct(Pa(e)))}a(Oa,"oe");function Na(e){return ce(e)?e=ct(ds(e)):(e=Zn(e),ce(e)?e=String(e):(Jn(e),e=ls(F,D)),e=ct(e)),e}a(Na,"ae");function ti(e){let t=typeof e;return e==null?e:t==="bigint"?ct(Cr(64,e)):Or(e)?t==="string"?Oa(e):Na(e):void 0}a(ti,"ce");function Ua(e){if(typeof e!="string")throw Error();return e}a(Ua,"he");function Nr(e){if(e!=null&&typeof e!="string")throw Error();return e}a(Nr,"ue");function Y(e){return e==null||typeof e=="string"?e:void 0}a(Y,"le");function ps(e,t,n,r){return e!=null&&e[qn]===$n?e:Array.isArray(e)?((r=(n=0|e[p])|32&r|2&r)!==n&&W(e,r),new t(e)):(n?2&r?((e=t[fo])||(Pr((e=new t).v),e=t[fo]=e),t=e):t=new t:t=void 0,t)}a(ps,"fe");function X1(e,t,n){if(t)t:{if(!Or(t=e))throw Vi("int64");switch(typeof t){case"string":t=Oa(t);break t;case"bigint":t=ct(Cr(64,t));break t;default:t=Na(t)}}else t=ti(e);return(e=t)==null?n?j1:void 0:e}a(X1,"de");var H1={},W1=(function(){try{return ai(new class extends Map{constructor(){super()}}),!1}catch{return!0}})(),io=class io{constructor(){this.g=new Map}get(t){return this.g.get(t)}set(t,n){return this.g.set(t,n),this.size=this.g.size,this}delete(t){return t=this.g.delete(t),this.size=this.g.size,t}clear(){this.g.clear(),this.size=this.g.size}has(t){return this.g.has(t)}entries(){return this.g.entries()}keys(){return this.g.keys()}values(){return this.g.values()}forEach(t,n){return this.g.forEach(t,n)}[Symbol.iterator](){return this.entries()}};a(io,"me");var Ar=io,z1=W1?(Object.setPrototypeOf(Ar.prototype,Map.prototype),Object.defineProperties(Ar.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Ar):class extends Map{constructor(){super()}};function Eo(e){return e}a(Eo,"_e");function Pi(e){if(2&e.J)throw Error("Cannot mutate an immutable Map")}a(Pi,"ve");var ve,Bt=(ve=class extends z1{constructor(t,n,r=Eo,i=Eo){super(),this.J=0|t[p],this.K=n,this.S=r,this.fa=this.K?K1:i;for(let s=0;s<t.length;s++){let o=t[s],c=r(o[0],!1,!0),h=o[1];n?h===void 0&&(h=null):h=i(o[1],!1,!0,void 0,void 0,this.J),super.set(c,h)}}V(t){return xr(Array.from(super.entries(),t))}clear(){Pi(this),super.clear()}delete(t){return Pi(this),super.delete(this.S(t,!0,!1))}entries(){if(this.K){var t=super.keys();t=new Qr(t,Y1,this)}else t=super.entries();return t}values(){if(this.K){var t=super.keys();t=new Qr(t,Bt.prototype.get,this)}else t=super.values();return t}forEach(t,n){this.K?super.forEach(((r,i,s)=>{t.call(n,s.get(i),i,s)})):super.forEach(t,n)}set(t,n){return Pi(this),(t=this.S(t,!0,!1))==null?this:n==null?(super.delete(t),this):super.set(t,this.fa(n,!0,!0,this.K,!1,this.J))}Ma(t){let n=this.S(t[0],!1,!0);t=t[1],t=this.K?t===void 0?null:t:this.fa(t,!1,!0,void 0,!1,this.J),super.set(n,t)}has(t){return super.has(this.S(t,!1,!1))}get(t){t=this.S(t,!1,!1);let n=super.get(t);if(n!==void 0){var r=this.K;return r?((r=this.fa(n,!1,!0,r,this.ra,this.J))!==n&&super.set(t,r),r):n}}[Symbol.iterator](){return this.entries()}},a(ve,"Ee"),ve);function K1(e,t,n,r,i,s){return e=ps(e,r,n,s),i&&(e=ms(e)),e}a(K1,"we");function Y1(e){return[e,this.get(e)]}a(Y1,"Te");var q1;function wo(){return q1||(q1=new Bt(Pr([]),void 0,void 0,void 0,H1))}a(wo,"be");function fi(e){return at?e[at]:void 0}a(fi,"ke");function ei(e,t){for(let n in e)!isNaN(n)&&t(e,+n,e[n])}a(ei,"Se");Bt.prototype.toJSON=void 0;var Ee,Wi=(Ee=class{},a(Ee,"xe"),Ee),$1={Ka:!0};function J1(e,t){t<100||Yn(L1,1)}a(J1,"Re");function di(e,t,n,r){let i=r!==void 0;r=!!r;var s,o=at;!i&&sr&&o&&(s=e[o])&&ei(s,J1),o=[];var c=e.length;let h;s=4294967295;let l=!1,u=!!(64&t),_=u?128&t?0:-1:void 0;1&t||(h=c&&e[c-1],h!=null&&typeof h=="object"&&h.constructor===Object?s=--c:h=void 0,!u||128&t||i||(l=!0,s=s-_+_)),t=void 0;for(var d=0;d<c;d++){let E=e[d];if(E!=null&&(E=n(E,r))!=null)if(u&&d>=s){let k=d-_;(t??(t={}))[k]=E}else o[d]=E}if(h)for(let E in h){if((c=h[E])==null||(c=n(c,r))==null)continue;let k;d=+E,u&&!Number.isNaN(d)&&(k=d+_)<s?o[k]=c:(t??(t={}))[E]=c}return t&&(l?o.push(t):o[s]=t),i&&at&&(e=fi(e))&&e instanceof Wi&&(o[at]=(function(E){let k=new Wi;return ei(E,((Et,Xt,kt)=>{k[Xt]=wt(kt)})),k.da=E.da,k})(e)),o}a(di,"Ie");function Z1(e){return e[0]=Ir(e[0]),e[1]=Ir(e[1]),e}a(Z1,"Fe");function Ir(e){switch(typeof e){case"number":return Number.isFinite(e)?e:""+e;case"bigint":return Hi(e)?Number(e):""+e;case"boolean":return e?1:0;case"object":if(Array.isArray(e)){var t=0|e[p];return e.length===0&&1&t?void 0:di(e,t,Ir)}if(e!=null&&e[qn]===$n)return Da(e);if(e instanceof It){if((t=e.g)==null)e="";else if(typeof t=="string")e=t;else{if(wa){for(var n="",r=0,i=t.length-10240;r<i;)n+=String.fromCharCode.apply(null,t.subarray(r,r+=10240));n+=String.fromCharCode.apply(null,r?t.subarray(r):t),t=btoa(n)}else{n===void 0&&(n=0),Ea(),n=va[n],r=Array(Math.floor(t.length/3)),i=n[64]||"";let l=0,u=0;for(;l<t.length-2;l+=3){var s=t[l],o=t[l+1],c=t[l+2],h=n[s>>2];s=n[(3&s)<<4|o>>4],o=n[(15&o)<<2|c>>6],c=n[63&c],r[u++]=h+s+o+c}switch(h=0,c=i,t.length-l){case 2:c=n[(15&(h=t[l+1]))<<2]||i;case 1:t=t[l],r[u]=n[t>>2]+n[(3&t)<<4|h>>4]+c+i}t=r.join("")}e=e.g=t}return e}return e instanceof Bt?e=e.size!==0?e.V(Z1):void 0:void 0}return e}a(Ir,"Me");var Q1,t3;function Da(e){return di(e=e.v,0|e[p],Ir)}a(Da,"Oe");function ee(e,t){return Ba(e,t[0],t[1])}a(ee,"Ne");function Ba(e,t,n,r=0){if(e==null){var i=32;n?(e=[n],i|=128):e=[],t&&(i=-16760833&i|(1023&t)<<14)}else{if(!Array.isArray(e))throw Error("narr");if(i=0|e[p],co&&1&i)throw Error("rfarr");if(2048&i&&!(2&i)&&(function(){if(co)throw Error("carr");Yn(R1,5)})(),256&i)throw Error("farr");if(64&i)return(i|r)!==i&&W(e,i|r),e;if(n&&(i|=128,n!==e[0]))throw Error("mid");t:{i|=64;var s=(n=e).length;if(s){var o=s-1;let h=n[o];if(h!=null&&typeof h=="object"&&h.constructor===Object){if((o-=t=128&i?0:-1)>=1024)throw Error("pvtlmt");for(var c in h)(s=+c)<o&&(n[s+t]=h[c],delete h[c]);i=-16760833&i|(1023&o)<<14;break t}}if(t){if((c=Math.max(t,s-(128&i?0:-1)))>1024)throw Error("spvt");i=-16760833&i|(1023&c)<<14}}}return W(e,64|i|r),e}a(Ba,"Ue");function e3(e,t){if(typeof e!="object")return e;if(Array.isArray(e)){var n=0|e[p];return e.length===0&&1&n?void 0:To(e,n,t)}if(e!=null&&e[qn]===$n)return Ao(e);if(e instanceof Bt){if(2&(t=e.J))return e;if(!e.size)return;if(n=Pr(e.V()),e.K)for(e=0;e<n.length;e++){let r=n[e],i=r[1];i=i==null||typeof i!="object"?void 0:i!=null&&i[qn]===$n?Ao(i):Array.isArray(i)?To(i,0|i[p],!!(32&t)):void 0,r[1]=i}return n}return e instanceof It?e:void 0}a(e3,"De");function To(e,t,n){return 2&t||(!n||4096&t||16&t?e=cr(e,t,!1,n&&!(16&t)):(Mr(e,34),4&t&&Object.freeze(e))),e}a(To,"Be");function gs(e,t,n){return e=new e.constructor(t),n&&(e.h=ae),e.m=ae,e}a(gs,"Ge");function Ao(e){let t=e.v,n=0|t[p];return ht(e,n)?e:ys(e,t,n)?gs(e,t):cr(t,n)}a(Ao,"je");function cr(e,t,n,r){return r??(r=!!(34&t)),e=di(e,t,e3,r),r=32,n&&(r|=2),W(e,t=16769217&t|r),e}a(cr,"Ve");function ms(e){let t=e.v,n=0|t[p];return ht(e,n)?ys(e,t,n)?gs(e,t,!0):new e.constructor(cr(t,n,!1)):e}a(ms,"Xe");function hr(e){if(e.h!==ae)return!1;var t=e.v;return Mr(t=cr(t,0|t[p]),2048),e.v=t,e.h=void 0,e.m=void 0,!0}a(hr,"He");function ur(e){if(!hr(e)&&ht(e,0|e.v[p]))throw Error()}a(ur,"We");function ue(e,t){t===void 0&&(t=0|e[p]),32&t&&!(4096&t)&&W(e,4096|t)}a(ue,"ze");function ys(e,t,n){return!!(2&n)||!(!(32&n)||4096&n)&&(W(t,2|n),e.h=ae,!0)}a(ys,"Ke");var Ga=ct(0),Ht={};function M(e,t,n,r,i){if((t=Gt(e.v,t,n,i))!==null||r&&e.m!==ae)return t}a(M,"$e");function Gt(e,t,n,r){if(t===-1)return null;let i=t+(n?0:-1),s=e.length-1,o,c;if(!(s<1+(n?0:-1))){if(i>=s)if(o=e[s],o!=null&&typeof o=="object"&&o.constructor===Object)n=o[t],c=!0;else{if(i!==s)return;n=o}else n=e[i];if(r&&n!=null){if((r=r(n))==null)return r;if(!Object.is(r,n))return c?o[t]=r:e[i]=r,r}return n}}a(Gt,"Je");function S(e,t,n,r){ur(e),X(e=e.v,0|e[p],t,n,r)}a(S,"Ze");function X(e,t,n,r,i){let s=n+(i?0:-1);var o=e.length-1;if(o>=1+(i?0:-1)&&s>=o){let c=e[o];if(c!=null&&typeof c=="object"&&c.constructor===Object)return c[n]=r,t}return s<=o?(e[s]=r,t):(r!==void 0&&(n>=(o=(t??(t=0|e[p]))>>14&1023||536870912)?r!=null&&(e[o+(i?0:-1)]={[n]:r}):e[s]=r),t)}a(X,"Qe");function Qt(){return I1===void 0?2:4}a(Qt,"tn");function te(e,t,n,r,i){let s=e.v,o=0|s[p];r=ht(e,o)?1:r,i=!!i||r===3,r===2&&hr(e)&&(s=e.v,o=0|s[p]);let c=(e=_s(s,t))===he?7:0|e[p],h=vs(c,o);var l=!(4&h);if(l){4&h&&(e=wt(e),c=0,h=re(h,o),o=X(s,o,t,e));let u=0,_=0;for(;u<e.length;u++){let d=n(e[u]);d!=null&&(e[_++]=d)}_<u&&(e.length=_),n=-513&(4|h),h=n&=-1025,h&=-4097}return h!==c&&(W(e,h),2&h&&Object.freeze(e)),ja(e,h,s,o,t,r,l,i)}a(te,"en");function ja(e,t,n,r,i,s,o,c){let h=t;return s===1||s===4&&(2&t||!(16&t)&&32&r)?ne(t)||((t|=!e.length||o&&!(4096&t)||32&r&&!(4096&t||16&t)?2:256)!==h&&W(e,t),Object.freeze(e)):(s===2&&ne(t)&&(e=wt(e),h=0,t=re(t,r),r=X(n,r,i,e)),ne(t)||(c||(t|=16),t!==h&&W(e,t))),2&t||!(4096&t||16&t)||ue(n,r),e}a(ja,"nn");function _s(e,t,n){return e=Gt(e,t,n),Array.isArray(e)?e:he}a(_s,"rn");function vs(e,t){return 2&t&&(e|=2),1|e}a(vs,"sn");function ne(e){return!!(2&e)&&!!(4&e)||!!(256&e)}a(ne,"on");function Va(e){return hs(e,!0)}a(Va,"an");function Xa(e){e=wt(e);for(let t=0;t<e.length;t++){let n=e[t]=wt(e[t]);Array.isArray(n[1])&&(n[1]=Pr(n[1]))}return xr(e)}a(Xa,"cn");function zt(e,t,n,r){ur(e),X(e=e.v,0|e[p],t,(r==="0"?Number(n)===0:n===r)?void 0:n)}a(zt,"hn");function lr(e,t,n){if(2&t)throw Error();let r=or(t),i=_s(e,n,r),s=i===he?7:0|i[p],o=vs(s,t);return(2&o||ne(o)||16&o)&&(o===s||ne(o)||W(i,o),i=wt(i),s=0,o=re(o,t),X(e,t,n,i,r)),o&=-13,o!==s&&W(i,o),i}a(lr,"un");function Ci(e,t){var n=C2;return ws(Es(e=e.v),e,void 0,n)===t?t:-1}a(Ci,"ln");function Es(e){if(sr)return e[yr]??(e[yr]=new Map);if(yr in e)return e[yr];let t=new Map;return Object.defineProperty(e,yr,{value:t}),t}a(Es,"fn");function Ha(e,t,n,r,i){let s=Es(e),o=ws(s,e,t,n,i);return o!==r&&(o&&(t=X(e,t,o,void 0,i)),s.set(n,r)),t}a(Ha,"dn");function ws(e,t,n,r,i){let s=e.get(r);if(s!=null)return s;s=0;for(let o=0;o<r.length;o++){let c=r[o];Gt(t,c,i)!=null&&(s!==0&&(n=X(t,n,s,void 0,i)),s=c)}return e.set(r,s),s}a(ws,"pn");function Ts(e,t,n){let r=0|e[p],i=or(r),s=Gt(e,n,i),o;if(s!=null&&s[qn]===$n){if(!ht(s))return hr(s),s.v;o=s.v}else Array.isArray(s)&&(o=s);if(o){let c=0|o[p];2&c&&(o=cr(o,c))}return o=ee(o,t),o!==s&&X(e,r,n,o,i),o}a(Ts,"gn");function Wa(e,t,n,r,i){let s=!1;if((r=Gt(e,r,i,(o=>{let c=ps(o,n,!1,t);return s=c!==o&&c!=null,c})))!=null)return s&&!ht(r)&&ue(e,t),r}a(Wa,"mn");function A(e,t,n,r){let i=e.v,s=0|i[p];if((t=Wa(i,s,t,n,r))==null)return t;if(s=0|i[p],!ht(e,s)){let o=ms(t);o!==t&&(hr(e)&&(i=e.v,s=0|i[p]),s=X(i,s,n,t=o,r),ue(i,s))}return t}a(A,"yn");function za(e,t,n,r,i,s,o,c){var h=ht(e,n);s=h?1:s,o=!!o||s===3,h=c&&!h,(s===2||h)&&hr(e)&&(n=0|(t=e.v)[p]);var l=(e=_s(t,i))===he?7:0|e[p],u=vs(l,n);if(c=!(4&u)){var _=e,d=n;let E=!!(2&u);E&&(d|=2);let k=!E,Et=!0,Xt=0,kt=0;for(;Xt<_.length;Xt++){let fe=ps(_[Xt],r,!1,d);if(fe instanceof r){if(!E){let jr=ht(fe);k&&(k=!jr),Et&&(Et=jr)}_[kt++]=fe}}kt<Xt&&(_.length=kt),u|=4,u=Et?-4097&u:4096|u,u=k?8|u:-9&u}if(u!==l&&(W(e,u),2&u&&Object.freeze(e)),h&&!(8&u||!e.length&&(s===1||s===4&&(2&u||!(16&u)&&32&n)))){for(ne(u)&&(e=wt(e),u=re(u,n),n=X(t,n,i,e)),r=e,h=u,l=0;l<r.length;l++)(_=r[l])!==(u=ms(_))&&(r[l]=u);h|=8,W(e,u=h=r.length?4096|h:-4097&h)}return ja(e,u,t,n,i,s,c,o)}a(za,"_n");function jt(e,t,n){let r=e.v;return za(e,r,0|r[p],t,n,Qt(),!1,!0)}a(jt,"vn");function Ka(e){return e==null&&(e=void 0),e}a(Ka,"En");function v(e,t,n,r,i){return S(e,n,r=Ka(r),i),r&&!ht(r)&&ue(e.v),e}a(v,"wn");function br(e,t,n,r){t:{var i=r=Ka(r);ur(e);let s=e.v,o=0|s[p];if(i==null){let c=Es(s);if(ws(c,s,o,n)!==t)break t;c.set(n,0)}else o=Ha(s,o,n,t);X(s,o,t,i)}r&&!ht(r)&&ue(e.v)}a(br,"Tn");function re(e,t){return-273&(2&t?2|e:-3&e)}a(re,"An");function As(e,t,n,r){var i=r;ur(e),e=za(e,r=e.v,0|r[p],n,t,2,!0),i=i??new n,e.push(i),t=n=e===he?7:0|e[p],(i=ht(i))?(n&=-9,e.length===1&&(n&=-4097)):n|=4096,n!==t&&W(e,n),i||ue(r)}a(As,"bn");function yt(e,t,n){return ar(M(e,t,void 0,n))}a(yt,"kn");function U(e,t){return M(e,t,void 0,void 0,Rt)??0}a(U,"Sn");function Vt(e,t,n){if(n!=null){if(typeof n!="number"||!li(n))throw Vi("int32");n|=0}S(e,t,n)}a(Vt,"xn");function y(e,t,n){S(e,t,wr(n))}a(y,"Ln");function ut(e,t,n){zt(e,t,Nr(n),"")}a(ut,"Rn");function ni(e,t,n){{ur(e);let o=e.v,c=0|o[p];if(n==null)X(o,c,t);else{var r=e=n===he?7:0|n[p],i=ne(e),s=i||Object.isFrozen(n);for(i||(e=0),s||(n=wt(n),r=0,e=re(e,c),s=!1),e|=5,e|=(4&e?512&e?512:1024&e?1024:0:void 0)??1024,i=0;i<n.length;i++){let h=n[i],l=Ua(h);Object.is(h,l)||(s&&(n=wt(n),r=0,e=re(e,c),s=!1),n[i]=l)}e!==r&&(s&&(n=wt(n),e=re(e,c)),W(n,e)),X(o,c,t,n)}}}a(ni,"In");function pi(e,t,n){ur(e),te(e,t,Y,2,!0).push(Ua(n))}a(pi,"Fn");var we,de=(we=class{constructor(t,n,r){if(this.buffer=t,r&&!n)throw Error();this.g=n}},a(we,"Mn"),we);function bs(e,t){if(typeof e=="string")return new de(Ta(e),t);if(Array.isArray(e))return new de(new Uint8Array(e),t);if(e.constructor===Uint8Array)return new de(e,!1);if(e.constructor===ArrayBuffer)return e=new Uint8Array(e),new de(e,!1);if(e.constructor===It)return t=cs(e)||new Uint8Array(0),new de(t,!0,e);if(e instanceof Uint8Array)return e=e.constructor===Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new de(e,!1);throw Error()}a(bs,"Pn");function ks(e,t){let n,r=0,i=0,s=0,o=e.h,c=e.g;do n=o[c++],r|=(127&n)<<s,s+=7;while(s<32&&128&n);if(s>32)for(i|=(127&n)>>4,s=3;s<32&&128&n;s+=7)n=o[c++],i|=(127&n)<<s;if(ie(e,c),!(128&n))return t(r>>>0,i>>>0);throw Error()}a(ks,"Cn");function Ss(e){let t=0,n=e.g,r=n+10,i=e.h;for(;n<r;){let s=i[n++];if(t|=s,(128&s)==0)return ie(e,n),!!(127&t)}throw Error()}a(Ss,"On");function Yt(e){let t=e.h,n=e.g,r=t[n++],i=127&r;if(128&r&&(r=t[n++],i|=(127&r)<<7,128&r&&(r=t[n++],i|=(127&r)<<14,128&r&&(r=t[n++],i|=(127&r)<<21,128&r&&(r=t[n++],i|=r<<28,128&r&&128&t[n++]&&128&t[n++]&&128&t[n++]&&128&t[n++]&&128&t[n++])))))throw Error();return ie(e,n),i}a(Yt,"Nn");function Ft(e){return Yt(e)>>>0}a(Ft,"Un");function ri(e){var t=e.h;let n=e.g;var r=t[n],i=t[n+1];let s=t[n+2];return t=t[n+3],ie(e,e.g+4),e=2*((i=(r<<0|i<<8|s<<16|t<<24)>>>0)>>31)+1,r=i>>>23&255,i&=8388607,r==255?i?NaN:e*(1/0):r==0?1401298464324817e-60*e*i:e*Math.pow(2,r-150)*(i+8388608)}a(ri,"Dn");function n3(e){return Yt(e)}a(n3,"Bn");function ie(e,t){if(e.g=t,t>e.l)throw Error()}a(ie,"Gn");function Ya(e,t){if(t<0)throw Error();let n=e.g;if((t=n+t)>e.l)throw Error();return e.g=t,n}a(Ya,"jn");function qa(e,t){if(t==0)return oe();var n=Ya(e,t);return e.Y&&e.j?n=e.h.subarray(n,n+t):(e=e.h,n=n===(t=n+t)?new Uint8Array(0):U1?e.slice(n,t):new Uint8Array(e.subarray(n,t))),n.length==0?oe():new It(n,Kn)}a(qa,"Vn");var bo=[];function $a(e,t,n,r){if(ii.length){let i=ii.pop();return i.o(r),i.g.init(e,t,n,r),i}return new r3(e,t,n,r)}a($a,"Hn");function Ja(e){e.g.clear(),e.l=-1,e.h=-1,ii.length<100&&ii.push(e)}a(Ja,"Wn");function Za(e){var t=e.g;if(t.g==t.l)return!1;e.m=e.g.g;var n=Ft(e.g);if(t=n>>>3,!((n&=7)>=0&&n<=5)||t<1)throw Error();return e.l=t,e.h=n,!0}a(Za,"zn");function qr(e){switch(e.h){case 0:e.h!=0?qr(e):Ss(e.g);break;case 1:ie(e=e.g,e.g+8);break;case 2:if(e.h!=2)qr(e);else{var t=Ft(e.g);ie(e=e.g,e.g+t)}break;case 5:ie(e=e.g,e.g+4);break;case 3:for(t=e.l;;){if(!Za(e))throw Error();if(e.h==4){if(e.l!=t)throw Error();break}qr(e)}break;default:throw Error()}}a(qr,"Kn");function Ur(e,t,n){let r=e.g.l;var i=Ft(e.g);let s=(i=e.g.g+i)-r;if(s<=0&&(e.g.l=i,n(t,e,void 0,void 0,void 0),s=i-e.g.g),s)throw Error();return e.g.g=i,e.g.l=r,t}a(Ur,"Yn");function xs(e){var t=Ft(e.g),n=Ya(e=e.g,t);if(e=e.h,m1){var r,i=e;(r=Mi)||(r=Mi=new TextDecoder("utf-8",{fatal:!0})),t=n+t,i=n===0&&t===i.length?i:i.subarray(n,t);try{var s=r.decode(i)}catch(c){if(Xr===void 0){try{r.decode(new Uint8Array([128]))}catch{}try{r.decode(new Uint8Array([97])),Xr=!0}catch{Xr=!1}}throw!Xr&&(Mi=void 0),c}}else{t=(s=n)+t,n=[];let c,h=null;for(;s<t;){var o=e[s++];o<128?n.push(o):o<224?s>=t?Zt():(c=e[s++],o<194||(192&c)!=128?(s--,Zt()):n.push((31&o)<<6|63&c)):o<240?s>=t-1?Zt():(c=e[s++],(192&c)!=128||o===224&&c<160||o===237&&c>=160||(192&(r=e[s++]))!=128?(s--,Zt()):n.push((15&o)<<12|(63&c)<<6|63&r)):o<=244?s>=t-2?Zt():(c=e[s++],(192&c)!=128||c-144+(o<<28)>>30!=0||(192&(r=e[s++]))!=128||(192&(i=e[s++]))!=128?(s--,Zt()):(o=(7&o)<<18|(63&c)<<12|(63&r)<<6|63&i,o-=65536,n.push(55296+(o>>10&1023),56320+(1023&o)))):Zt(),n.length>=8192&&(h=ao(h,n),n.length=0)}s=ao(h,n)}return s}a(xs,"qn");function Qa(e){let t=Ft(e.g);return qa(e.g,t)}a(Qa,"$n");function gi(e,t,n){var r=Ft(e.g);for(r=e.g.g+r;e.g.g<r;)n.push(t(e.g))}a(gi,"Jn");var Te,r3=(Te=class{constructor(t,n,r,i){if(bo.length){let s=bo.pop();s.init(t,n,r,i),t=s}else t=new class{constructor(s,o,c,h){this.h=null,this.j=!1,this.g=this.l=this.m=0,this.init(s,o,c,h)}init(s,o,c,{Y:h=!1,ea:l=!1}={}){this.Y=h,this.ea=l,s&&(s=bs(s,this.ea),this.h=s.buffer,this.j=s.g,this.m=o||0,this.l=c!==void 0?this.m+c:this.h.length,this.g=this.m)}clear(){this.h=null,this.j=!1,this.g=this.l=this.m=0,this.Y=!1}}(t,n,r,i);this.g=t,this.m=this.g.g,this.h=this.l=-1,this.o(i)}o({ha:t=!1}={}){this.ha=t}},a(Te,"Zn"),Te),ii=[];function ko(e){return e?/^\d+$/.test(e)?(ui(e),new zi(F,D)):null:i3||(i3=new zi(0,0))}a(ko,"tr");var Ae,zi=(Ae=class{constructor(t,n){this.h=t>>>0,this.g=n>>>0}},a(Ae,"er"),Ae),i3;function So(e){return e?/^-?\d+$/.test(e)?(ui(e),new Ki(F,D)):null:s3||(s3=new Ki(0,0))}a(So,"rr");var be,Ki=(be=class{constructor(t,n){this.h=t>>>0,this.g=n>>>0}},a(be,"ir"),be),s3;function me(e,t,n){for(;n>0||t>127;)e.g.push(127&t|128),t=(t>>>7|n<<25)>>>0,n>>>=7;e.g.push(t)}a(me,"or");function fr(e,t){for(;t>127;)e.g.push(127&t|128),t>>>=7;e.g.push(t)}a(fr,"ar");function mi(e,t){if(t>=0)fr(e,t);else{for(let n=0;n<9;n++)e.g.push(127&t|128),t>>=7;e.g.push(1)}}a(mi,"cr");function Ls(e){var t=F;e.g.push(t>>>0&255),e.g.push(t>>>8&255),e.g.push(t>>>16&255),e.g.push(t>>>24&255)}a(Ls,"hr");function Qn(e,t){t.length!==0&&(e.l.push(t),e.h+=t.length)}a(Qn,"ur");function _t(e,t,n){fr(e.g,8*t+n)}a(_t,"lr");function Rs(e,t){return _t(e,t,2),t=e.g.end(),Qn(e,t),t.push(e.h),t}a(Rs,"fr");function Is(e,t){var n=t.pop();for(n=e.h+e.g.length()-n;n>127;)t.push(127&n|128),n>>>=7,e.h++;t.push(n),e.h++}a(Is,"dr");function yi(e,t,n){_t(e,t,2),fr(e.g,n.length),Qn(e,e.g.end()),Qn(e,n)}a(yi,"pr");function si(e,t,n,r){n!=null&&(t=Rs(e,t),r(n,e),Is(e,t))}a(si,"gr");function Pt(){var t;let e=(t=class{constructor(){throw Error()}},a(t,"t"),t);return Object.setPrototypeOf(e,e.prototype),e}a(Pt,"mr");var Fs=Pt(),t2=Pt(),Ms=Pt(),Ps=Pt(),Cs=Pt(),e2=Pt(),o3=Pt(),_i=Pt(),n2=Pt(),r2=Pt();function Ct(e,t,n){var r=e.v;at&&at in r&&(r=r[at])&&delete r[t.g],t.h?t.j(e,t.h,t.g,n,t.l):t.j(e,t.g,n,t.l)}a(Ct,"xr");var ke,g=(ke=class{constructor(t,n){this.v=Ba(t,n,void 0,2048)}toJSON(){return Da(this)}j(){var t=G3,n=this.v,r=t.g,i=at;if(sr&&i&&n[i]?.[r]!=null&&Yn(x1,3),n=t.g,po&&at&&po===void 0&&(i=(r=this.v)[at])&&(i=i.da))try{i(r,n,$1)}catch(s){_a(s)}return t.h?t.m(this,t.h,t.g,t.l):t.m(this,t.g,t.defaultValue,t.l)}clone(){let t=this.v,n=0|t[p];return ys(this,t,n)?gs(this,t,!0):new this.constructor(cr(t,n,!1))}},a(ke,"Lr"),ke);g.prototype[qn]=$n,g.prototype.toString=function(){return this.v.toString()};var Se,dr=(Se=class{constructor(t,n,r){this.g=t,this.h=n,t=Fs,this.l=!!t&&r===t||!1}},a(Se,"Rr"),Se);function vi(e,t){return new dr(e,t,Fs)}a(vi,"Ir");function i2(e,t,n,r,i){si(e,n,c2(t,r),i)}a(i2,"Fr");var a3=vi((function(e,t,n,r,i){return e.h===2&&(Ur(e,Ts(t,r,n),i),!0)}),i2),c3=vi((function(e,t,n,r,i){return e.h===2&&(Ur(e,Ts(t,r,n),i),!0)}),i2),Ei=Symbol(),wi=Symbol(),Yi=Symbol(),xo=Symbol(),Lo=Symbol(),s2,o2;function le(e,t,n,r){var i=r[e];if(i)return i;(i={}).qa=r,i.T=(function(_){switch(typeof _){case"boolean":return Q1||(Q1=[0,void 0,!0]);case"number":return _>0?void 0:_===0?t3||(t3=[0,void 0]):[-_,void 0];case"string":return[0,_];case"object":return _}})(r[0]);var s=r[1];let o=1;s&&s.constructor===Object&&(i.ba=s,typeof(s=r[++o])=="function"&&(i.ma=!0,s2??(s2=s),o2??(o2=r[o+1]),s=r[o+=2]));let c={};for(;s&&Array.isArray(s)&&s.length&&typeof s[0]=="number"&&s[0]>0;){for(var h=0;h<s.length;h++)c[s[h]]=s;s=r[++o]}for(h=1;s!==void 0;){let _;typeof s=="number"&&(h+=s,s=r[++o]);var l=void 0;if(s instanceof dr?_=s:(_=a3,o--),_?.l){s=r[++o],l=r;var u=o;typeof s=="function"&&(s=s(),l[u]=s),l=s}for(u=h+1,typeof(s=r[++o])=="number"&&s<0&&(u-=s,s=r[++o]);h<u;h++){let d=c[h];l?n(i,h,_,l,d):t(i,h,_,d)}}return r[e]=i}a(le,"jr");function a2(e){return Array.isArray(e)?e[0]instanceof dr?e:[c3,e]:[e,void 0]}a(a2,"Vr");function c2(e,t){return e instanceof g?e.v:Array.isArray(e)?ee(e,t):void 0}a(c2,"Xr");function Os(e,t,n,r){let i=n.g;e[t]=r?(s,o,c)=>i(s,o,c,r):i}a(Os,"Hr");function Ns(e,t,n,r,i){let s=n.g,o,c;e[t]=(h,l,u)=>s(h,l,u,c||(c=le(wi,Os,Ns,r).T),o||(o=Us(r)),i)}a(Ns,"Wr");function Us(e){let t=e[Yi];if(t!=null)return t;let n=le(wi,Os,Ns,e);return t=n.ma?(r,i)=>s2(r,i,n):(r,i)=>{for(;Za(i)&&i.h!=4;){var s=i.l,o=n[s];if(o==null){var c=n.ba;c&&(c=c[s])&&(c=u3(c))!=null&&(o=n[s]=c)}if(o==null||!o(i,r,s)){if(o=(c=i).m,qr(c),c.ha)var h=void 0;else h=c.g.g-o,c.g.g=o,h=qa(c.g,h);o=void 0,c=r,h&&((o=c[at]??(c[at]=new Wi))[s]??(o[s]=[])).push(h)}}return(r=fi(r))&&(r.da=n.qa[Lo]),!0},e[Yi]=t,e[Lo]=h3.bind(e),t}a(Us,"zr");function h3(e,t,n,r){var i=this[wi];let s=this[Yi],o=ee(void 0,i.T),c=fi(e);if(c){var h=!1,l=i.ba;if(l){if(i=a((u,_,d)=>{if(d.length!==0)if(l[_])for(let E of d){u=$a(E);try{h=!0,s(o,u)}finally{Ja(u)}}else r?.(e,_,d)},"i"),t==null)ei(c,i);else if(c!=null){let u=c[t];u&&i(c,t,u)}if(h){let u=0|e[p];if(2&u&&2048&u&&!n?.Ka)throw Error();let _=or(u),d=a((E,k)=>{if(Gt(e,E,_)!=null){if(n?.Qa===1)return;throw Error()}k!=null&&(u=X(e,u,E,k,_)),delete c[E]},"s");t==null?xa(o,0|o[p],((E,k)=>{d(E,k)})):d(t,Gt(o,t,_))}}}}a(h3,"Kr");function u3(e){let t=(e=a2(e))[0].g;if(e=e[1]){let n=Us(e),r=le(wi,Os,Ns,e).T;return(i,s,o)=>t(i,s,o,r,n)}return t}a(u3,"Yr");function Ti(e,t,n){e[t]=n.h}a(Ti,"qr");function Ai(e,t,n,r){let i,s,o=n.h;e[t]=(c,h,l)=>o(c,h,l,s||(s=le(Ei,Ti,Ai,r).T),i||(i=h2(r)))}a(Ai,"$r");function h2(e){let t=e[xo];if(!t){let n=le(Ei,Ti,Ai,e);t=a((r,i)=>u2(r,i,n),"e"),e[xo]=t}return t}a(h2,"Jr");function u2(e,t,n){xa(e,0|e[p],((r,i)=>{if(i!=null){var s=(function(o,c){var h=o[c];if(h)return h;if((h=o.ba)&&(h=h[c])){var l=(h=a2(h))[0].h;if(h=h[1]){let u=h2(h),_=le(Ei,Ti,Ai,h).T;h=o.ma?o2(_,u):(d,E,k)=>l(d,E,k,_,u)}else h=l;return o[c]=h}})(n,r);s?s(t,i,r):r<500||Yn(Xi,3)}})),(e=fi(e))&&ei(e,((r,i,s)=>{for(Qn(t,t.g.end()),r=0;r<s.length;r++)Qn(t,cs(s[r])||new Uint8Array(0))}))}a(u2,"Zr");var l3=ct(0);function pr(e,t){if(Array.isArray(t)){var n=0|t[p];if(4&n)return t;for(var r=0,i=0;r<t.length;r++){let s=e(t[r]);s!=null&&(t[i++]=s)}return i<r&&(t.length=i),(e=-1537&(5|n))!==n&&W(t,e),2&e&&Object.freeze(t),t}}a(pr,"ti");function J(e,t,n){return new dr(e,t,n)}a(J,"ei");function gr(e,t,n){return new dr(e,t,n)}a(gr,"ni");function Z(e,t,n){X(e,0|e[p],t,n,or(0|e[p]))}a(Z,"ri");var f3=vi((function(e,t,n,r,i){if(e.h!==2)return!1;if(e=wt(e=Ur(e,ee([void 0,void 0],r),i)),i=or(r=0|t[p]),2&r)throw Error();let s=Gt(t,n,i);if(s instanceof Bt)(2&s.J)!=0?(s=s.V(),s.push(e),X(t,r,n,s,i)):s.Ma(e);else if(Array.isArray(s)){var o=0|s[p];8192&o||W(s,o|=8192),2&o&&(s=Xa(s),X(t,r,n,s,i)),s.push(e)}else X(t,r,n,xr([e]),i);return!0}),(function(e,t,n,r,i){if(t instanceof Bt)t.forEach(((s,o)=>{si(e,n,ee([o,s],r),i)}));else if(Array.isArray(t)){for(let s=0;s<t.length;s++){let o=t[s];Array.isArray(o)&&si(e,n,ee(o,r),i)}xr(t)}}));function l2(e,t,n){(t=Rt(t))!=null&&(_t(e,n,5),e=e.g,us(t),Ls(e))}a(l2,"si");function f2(e,t,n){if(t=(function(r){if(r==null)return r;let i=typeof r;if(i==="bigint")return String(Cr(64,r));if(Or(r)){if(i==="string")return Ca(r);if(i==="number")return ds(r)}})(t),t!=null&&(typeof t=="string"&&So(t),t!=null))switch(_t(e,n,0),typeof t){case"number":e=e.g,Jn(t),me(e,F,D);break;case"bigint":n=BigInt.asUintN(64,t),n=new Ki(Number(n&BigInt(4294967295)),Number(n>>BigInt(32))),me(e.g,n.h,n.g);break;default:n=So(t),me(e.g,n.h,n.g)}}a(f2,"oi");function d2(e,t,n){(t=ar(t))!=null&&t!=null&&(_t(e,n,0),mi(e.g,t))}a(d2,"ai");function p2(e,t,n){(t=Fa(t))!=null&&(_t(e,n,0),e.g.g.push(t?1:0))}a(p2,"ci");function g2(e,t,n){(t=Y(t))!=null&&yi(e,n,ya(t))}a(g2,"hi");function m2(e,t,n,r,i){si(e,n,c2(t,r),i)}a(m2,"ui");function y2(e,t,n){(t=t==null||typeof t=="string"||t instanceof It?t:void 0)!=null&&yi(e,n,bs(t,!0).buffer)}a(y2,"li");function _2(e,t,n){(t=Ma(t))!=null&&t!=null&&(_t(e,n,0),fr(e.g,t))}a(_2,"fi");function v2(e,t,n){return(e.h===5||e.h===2)&&(t=lr(t,0|t[p],n),e.h==2?gi(e,ri,t):t.push(ri(e.g)),!0)}a(v2,"di");var B=J((function(e,t,n){return e.h===5&&(Z(t,n,ri(e.g)),!0)}),l2,_i),d3=gr(v2,(function(e,t,n){if((t=pr(Rt,t))!=null)for(let o=0;o<t.length;o++){var r=e,i=n,s=t[o];s!=null&&(_t(r,i,5),r=r.g,us(s),Ls(r))}}),_i),Ds=gr(v2,(function(e,t,n){if((t=pr(Rt,t))!=null&&t.length){_t(e,n,2),fr(e.g,4*t.length);for(let r=0;r<t.length;r++)n=e.g,us(t[r]),Ls(n)}}),_i),p3=J((function(e,t,n){return e.h===5&&(Z(t,n,(e=ri(e.g))===0?void 0:e),!0)}),l2,_i),qt=J((function(e,t,n){return e.h!==0?e=!1:(Z(t,n,ks(e.g,Ia)),e=!0),e}),f2,e2),Oi=J((function(e,t,n){return e.h!==0?t=!1:(Z(t,n,(e=ks(e.g,Ia))===l3?void 0:e),t=!0),t}),f2,e2),g3=J((function(e,t,n){return e.h!==0?e=!1:(Z(t,n,ks(e.g,B1)),e=!0),e}),(function(e,t,n){if(t=(function(r){if(r==null)return r;var i=typeof r;if(i==="bigint")return String(G1(64,r));if(Or(r)){if(i==="string")return i=Zn(Number(r)),ce(i)&&i>=0?r=String(i):((i=r.indexOf("."))!==-1&&(r=r.substring(0,i)),(i=r[0]!=="-"&&((i=r.length)<20||i===20&&r<="18446744073709551615"))||(ui(r),r=Lr(F,D))),r;if(i==="number")return(r=Zn(r))>=0&&ce(r)||(Jn(r),r=Ra(F,D)),r}})(t),t!=null&&(typeof t=="string"&&ko(t),t!=null))switch(_t(e,n,0),typeof t){case"number":e=e.g,Jn(t),me(e,F,D);break;case"bigint":n=BigInt.asUintN(64,t),n=new zi(Number(n&BigInt(4294967295)),Number(n>>BigInt(32))),me(e.g,n.h,n.g);break;default:n=ko(t),me(e.g,n.h,n.g)}}),o3),V=J((function(e,t,n){return e.h===0&&(Z(t,n,Yt(e.g)),!0)}),d2,Ps),Dr=gr((function(e,t,n){return(e.h===0||e.h===2)&&(t=lr(t,0|t[p],n),e.h==2?gi(e,Yt,t):t.push(Yt(e.g)),!0)}),(function(e,t,n){if((t=pr(ar,t))!=null&&t.length){n=Rs(e,n);for(let r=0;r<t.length;r++)mi(e.g,t[r]);Is(e,n)}}),Ps),ge=J((function(e,t,n){return e.h===0&&(Z(t,n,(e=Yt(e.g))===0?void 0:e),!0)}),d2,Ps),P=J((function(e,t,n){return e.h===0&&(Z(t,n,Ss(e.g)),!0)}),p2,t2),se=J((function(e,t,n){return e.h===0&&(Z(t,n,(e=Ss(e.g))===!1?void 0:e),!0)}),p2,t2),q=gr((function(e,t,n){return e.h===2&&(e=xs(e),lr(t,0|t[p],n).push(e),!0)}),(function(e,t,n){if((t=pr(Y,t))!=null)for(let o=0;o<t.length;o++){var r=e,i=n,s=t[o];s!=null&&yi(r,i,ya(s))}}),Ms),Kt=J((function(e,t,n){return e.h===2&&(Z(t,n,(e=xs(e))===""?void 0:e),!0)}),g2,Ms),x=J((function(e,t,n){return e.h===2&&(Z(t,n,xs(e)),!0)}),g2,Ms),z=(function(e,t,n=Fs){return new dr(e,t,n)})((function(e,t,n,r,i){return e.h===2&&(r=ee(void 0,r),lr(t,0|t[p],n).push(r),Ur(e,r,i),!0)}),(function(e,t,n,r,i){if(Array.isArray(t)){for(let s=0;s<t.length;s++)m2(e,t[s],n,r,i);1&(e=0|t[p])||W(t,1|e)}})),R=vi((function(e,t,n,r,i,s){if(e.h!==2)return!1;let o=0|t[p];return Ha(t,o,s,n,or(o)),Ur(e,t=Ts(t,r,n),i),!0}),m2),E2=J((function(e,t,n){return e.h===2&&(Z(t,n,Qa(e)),!0)}),y2,n2),m3=gr((function(e,t,n){return(e.h===0||e.h===2)&&(t=lr(t,0|t[p],n),e.h==2?gi(e,Ft,t):t.push(Ft(e.g)),!0)}),(function(e,t,n){if((t=pr(Ma,t))!=null)for(let o=0;o<t.length;o++){var r=e,i=n,s=t[o];s!=null&&(_t(r,i,0),fr(r.g,s))}}),Cs),y3=J((function(e,t,n){return e.h===0&&(Z(t,n,(e=Ft(e.g))===0?void 0:e),!0)}),_2,Cs),$=J((function(e,t,n){return e.h===0&&(Z(t,n,Yt(e.g)),!0)}),(function(e,t,n){(t=ar(t))!=null&&(t=parseInt(t,10),_t(e,n,0),mi(e.g,t))}),r2),so=class so{constructor(t,n){var r=ft;this.g=t,this.h=n,this.m=A,this.j=v,this.defaultValue=void 0,this.l=r.Oa!=null?La:void 0}register(){ai(this)}};a(so,"Oi");var qi=so;function Ot(e,t){return new qi(e,t)}a(Ot,"Ni");function Jt(e,t){return(n,r)=>{{let s={ea:!0};r&&Object.assign(s,r),n=$a(n,void 0,void 0,s);try{let o=new e,c=o.v;Us(t)(c,n);var i=o}finally{Ja(n)}}return i}}a(Jt,"Ui");function bi(e){return function(){let t=new class{constructor(){this.l=[],this.h=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){let o=this.g;return this.g=[],o}}}};u2(this.v,t,le(Ei,Ti,Ai,e)),Qn(t,t.g.end());let n=new Uint8Array(t.h),r=t.l,i=r.length,s=0;for(let o=0;o<i;o++){let c=r[o];n.set(c,s),s+=c.length}return t.l=[n],n}}a(bi,"Di");var xe,Ro=(xe=class extends g{constructor(t){super(t)}},a(xe,"Bi"),xe),Io=[0,Kt,J((function(e,t,n){return e.h===2&&(Z(t,n,(e=Qa(e))===oe()?void 0:e),!0)}),(function(e,t,n){if(t!=null){if(t instanceof g){let r=t.Ra;return void(r?(t=r(t),t!=null&&yi(e,n,bs(t,!0).buffer)):Yn(Xi,3))}if(Array.isArray(t))return void Yn(Xi,3)}y2(e,t,n)}),n2)],Ni,Fo=globalThis.trustedTypes;function Mo(e){var t;return Ni===void 0&&(Ni=(function(){let n=null;if(!Fo)return n;try{let r=a(i=>i,"e");n=Fo.createPolicy("goog#html",{createHTML:r,createScript:r,createScriptURL:r})}catch{}return n})()),e=(t=Ni)?t.createScriptURL(e):e,new class{constructor(n){this.g=n}toString(){return this.g+""}}(e)}a(Mo,"Xi");function Hr(e,...t){if(t.length===0)return Mo(e[0]);let n=e[0];for(let r=0;r<t.length;r++)n+=encodeURIComponent(t[r])+e[r+1];return Mo(n)}a(Hr,"Hi");var w2=[0,V,$,P,-1,Dr,$,-1,P],Le,_3=(Le=class extends g{constructor(t){super(t)}},a(Le,"zi"),Le),T2=[0,P,x,P,$,-1,gr((function(e,t,n){return(e.h===0||e.h===2)&&(t=lr(t,0|t[p],n),e.h==2?gi(e,n3,t):t.push(Yt(e.g)),!0)}),(function(e,t,n){if((t=pr(ar,t))!=null&&t.length){n=Rs(e,n);for(let r=0;r<t.length;r++)mi(e.g,t[r]);Is(e,n)}}),r2),x,-1,[0,P,-1],$,P,-1],A2=[0,3,P,-1,2,[0,[2],V,R,[0,J((function(e,t,n){return e.h===0&&(Z(t,n,Ft(e.g)),!0)}),_2,Cs)]],[0,$,P,$,P,$,P,x,-1],[0,[3,4],x,-1,R,[0,V],R,[0,$]],[0]],b2=[0,x,-2],Re,Po=(Re=class extends g{constructor(t){super(t)}},a(Re,"$i"),Re),k2=[0],S2=[0,V,P,1,P,-4],Ie,ft=(Ie=class extends g{constructor(t){super(t,2)}},a(Ie,"Qi"),Ie),H={};H[336783863]=[0,x,P,-1,V,[0,[1,2,3,4,5,6,7,8,9],R,k2,R,T2,R,b2,R,S2,R,w2,R,[0,x,-2],R,[0,x,$],R,A2,R,[0,$,-1,P]],[0,x],P,[0,[1,3],[2,4],R,[0,Dr],-1,R,[0,q],-1,z,[0,x,-1]],x];var Co=[0,Oi,-1,se,-3,Oi,Dr,Kt,ge,Oi,-1,se,ge,se,-2,Kt];function I(e,t){pi(e,3,t)}a(I,"ns");function w(e,t){pi(e,4,t)}a(w,"rs");var Fe,nt=(Fe=class extends g{constructor(t){super(t,500)}o(t){return v(this,0,7,t)}},a(Fe,"is"),Fe),kr=[-1,{}],Oo=[0,x,1,kr],No=[0,x,q,kr];function vt(e,t){As(e,1,nt,t)}a(vt,"cs");function C(e,t){pi(e,10,t)}a(C,"hs");function b(e,t){pi(e,15,t)}a(b,"us");var Me,dt=(Me=class extends g{constructor(t){super(t,500)}o(t){return v(this,0,1001,t)}},a(Me,"ls"),Me),x2=[-500,z,[-500,Kt,-1,q,-3,[-2,H,P],z,Io,ge,-1,Oo,No,z,[0,Kt,se],Kt,Co,ge,q,987,q],4,z,[-500,x,-1,[-1,{}],998,x],z,[-500,x,q,-1,[-2,{},P],997,q,-1],ge,z,[-500,x,q,kr,998,q],q,ge,Oo,No,z,[0,Kt,-1,kr],q,-2,Co,Kt,-1,se,[0,se,y3],978,kr,z,Io];dt.prototype.g=bi(x2);var v3=Jt(dt,x2),Pe,E3=(Pe=class extends g{constructor(t){super(t)}},a(Pe,"ps"),Pe),Ce,L2=(Ce=class extends g{constructor(t){super(t)}g(){return jt(this,E3,1)}},a(Ce,"gs"),Ce),R2=[0,z,[0,V,B,x,-1]],ki=Jt(L2,R2),Oe,w3=(Oe=class extends g{constructor(t){super(t)}},a(Oe,"_s"),Oe),Ne,T3=(Ne=class extends g{constructor(t){super(t)}},a(Ne,"vs"),Ne),Ue,Ui=(Ue=class extends g{constructor(t){super(t)}l(){return A(this,w3,2)}g(){return jt(this,T3,5)}},a(Ue,"Es"),Ue),I2=Jt(class extends g{constructor(e){super(e)}},[0,q,Dr,Ds,[0,$,[0,V,-3],[0,B,-3],[0,V,-1,[0,z,[0,V,-2]]],z,[0,B,-1,x,B]],x,-1,qt,z,[0,V,B],q,qt]),De,F2=(De=class extends g{constructor(t){super(t)}},a(De,"Ts"),De),ye=Jt(class extends g{constructor(e){super(e)}},[0,z,[0,B,-4]]),Be,M2=(Be=class extends g{constructor(t){super(t)}},a(Be,"bs"),Be),Br=Jt(class extends g{constructor(e){super(e)}},[0,z,[0,B,-4]]),Ge,A3=(Ge=class extends g{constructor(t){super(t)}},a(Ge,"Ss"),Ge),b3=[0,V,-1,Ds,$],je,P2=(je=class extends g{constructor(t){super(t)}},a(je,"Ls"),je);P2.prototype.g=bi([0,B,-4,qt]);var Ve,k3=(Ve=class extends g{constructor(t){super(t)}},a(Ve,"Rs"),Ve),S3=Jt(class extends g{constructor(e){super(e)}},[0,z,[0,1,V,x,R2],qt]),Xe,Uo=(Xe=class extends g{constructor(t){super(t)}},a(Xe,"Fs"),Xe),He,x3=(He=class extends g{constructor(t){super(t)}na(){let t=M(this,1,void 0,void 0,Va);return t??oe()}},a(He,"Ms"),He),We,L3=(We=class extends g{constructor(t){super(t)}},a(We,"Ps"),We),C2=[1,2],R3=Jt(class extends g{constructor(e){super(e)}},[0,z,[0,C2,R,[0,Ds],R,[0,E2],V,x],qt]),ze,Bs=(ze=class extends g{constructor(t){super(t)}},a(ze,"Ns"),ze),O2=[0,x,V,B,q,-1],Ke,Do=(Ke=class extends g{constructor(t){super(t)}},a(Ke,"Ds"),Ke),I3=[0,P,-1],Ye,Bo=(Ye=class extends g{constructor(t){super(t)}},a(Ye,"Gs"),Ye),$r=[1,2,3,4,5,6],qe,oi=(qe=class extends g{constructor(t){super(t)}g(){return M(this,1,void 0,void 0,Va)!=null}l(){return Y(M(this,2))!=null}},a(qe,"Vs"),qe),$e,N=($e=class extends g{constructor(t){super(t)}g(){return Fa(M(this,2))??!1}},a($e,"Xs"),$e),N2=[0,E2,x,[0,V,qt,-1],[0,g3,qt]],G=[0,N2,P,[0,$r,R,S2,R,T2,R,w2,R,k2,R,b2,R,A2],$],Je,Si=(Je=class extends g{constructor(t){super(t)}},a(Je,"zs"),Je),Gs=[0,G,B,-1,V],F3=Ot(502141897,Si);H[502141897]=Gs;var M3=Jt(class extends g{constructor(e){super(e)}},[0,[0,$,-1,d3,m3],b3]),Ze,U2=(Ze=class extends g{constructor(t){super(t)}},a(Ze,"$s"),Ze),Qe,D2=(Qe=class extends g{constructor(t){super(t)}},a(Qe,"Js"),Qe),$i=[0,G,B,[0,G],P],P3=Ot(508968150,D2);H[508968150]=[0,G,Gs,$i,B,[0,[0,N2]]],H[508968149]=$i;var tn,pe=(tn=class extends g{constructor(t){super(t)}l(){return A(this,Bs,2)}g(){S(this,2)}},a(tn,"to"),tn),B2=[0,G,O2];H[478825465]=B2;var en,C3=(en=class extends g{constructor(t){super(t)}},a(en,"no"),en),nn,G2=(nn=class extends g{constructor(t){super(t)}},a(nn,"ro"),nn),rn,js=(rn=class extends g{constructor(t){super(t)}},a(rn,"io"),rn),sn,Vs=(sn=class extends g{constructor(t){super(t)}},a(sn,"so"),sn),on,j2=(on=class extends g{constructor(t){super(t)}},a(on,"oo"),on),Go=[0,G,[0,G],B2,-1],V2=[0,G,B,V],Xs=[0,G,B],X2=[0,G,V2,Xs,B],O3=Ot(479097054,j2);H[479097054]=[0,G,X2,Go],H[463370452]=Go,H[464864288]=V2;var N3=Ot(462713202,Vs);H[462713202]=X2,H[474472470]=Xs;var an,U3=(an=class extends g{constructor(t){super(t)}},a(an,"po"),an),cn,H2=(cn=class extends g{constructor(t){super(t)}},a(cn,"go"),cn),hn,W2=(hn=class extends g{constructor(t){super(t)}},a(hn,"mo"),hn),un,z2=(un=class extends g{constructor(t){super(t)}},a(un,"yo"),un),Hs=[0,G,B,-1,V],Ji=[0,G,B,P];z2.prototype.g=bi([0,G,Xs,[0,G],Gs,$i,Hs,Ji]);var ln,K2=(ln=class extends g{constructor(t){super(t)}},a(ln,"Eo"),ln),D3=Ot(456383383,K2);H[456383383]=[0,G,O2];var fn,Y2=(fn=class extends g{constructor(t){super(t)}},a(fn,"To"),fn),B3=Ot(476348187,Y2);H[476348187]=[0,G,I3];var dn,q2=(dn=class extends g{constructor(t){super(t)}},a(dn,"bo"),dn),pn,jo=(pn=class extends g{constructor(t){super(t)}},a(pn,"ko"),pn),$2=[0,$,-1],G3=Ot(458105876,class extends g{constructor(e){super(e)}g(){let e;var t=this.v;let n=0|t[p];return e=ht(this,n),t=(function(r,i,s,o){var c=jo;!o&&hr(r)&&(s=0|(i=r.v)[p]);var h=Gt(i,2);if(r=!1,h==null){if(o)return wo();h=[]}else if(h.constructor===Bt){if(!(2&h.J)||o)return h;h=h.V()}else Array.isArray(h)?r=!!(2&(0|h[p])):h=[];if(o){if(!h.length)return wo();r||(r=!0,Pr(h))}else r&&(r=!1,xr(h),h=Xa(h));return!r&&32&s&&Mr(h,32),s=X(i,s,2,o=new Bt(h,c,X1,void 0)),r||ue(i,s),o})(this,t,n,e),!e&&jo&&(t.ra=!0),t}});H[458105876]=[0,$2,f3,[!0,qt,[0,x,-1,q]],[0,Dr,P,$]];var gn,Ws=(gn=class extends g{constructor(t){super(t)}},a(gn,"Lo"),gn),J2=Ot(458105758,Ws);H[458105758]=[0,G,x,$2];var mn,Di=(mn=class extends g{constructor(t){super(t)}},a(mn,"Io"),mn),Vo=[0,p3,-1,se],yn,j3=(yn=class extends g{constructor(t){super(t)}},a(yn,"Mo"),yn),_n,Z2=(_n=class extends g{constructor(t){super(t)}},a(_n,"Po"),_n),Zi=[1,2];Z2.prototype.g=bi([0,Zi,R,Vo,R,[0,z,Vo]]);var vn,Q2=(vn=class extends g{constructor(t){super(t)}},a(vn,"Oo"),vn),V3=Ot(443442058,Q2);H[443442058]=[0,G,x,V,B,q,-1,P,B],H[514774813]=Hs;var En,t1=(En=class extends g{constructor(t){super(t)}},a(En,"Uo"),En),X3=Ot(516587230,t1);function Qi(e,t){return t=t?t.clone():new Bs,e.displayNamesLocale!==void 0?S(t,1,Nr(e.displayNamesLocale)):e.displayNamesLocale===void 0&&S(t,1),e.maxResults!==void 0?Vt(t,2,e.maxResults):"maxResults"in e&&S(t,2),e.scoreThreshold!==void 0?y(t,3,e.scoreThreshold):"scoreThreshold"in e&&S(t,3),e.categoryAllowlist!==void 0?ni(t,4,e.categoryAllowlist):"categoryAllowlist"in e&&S(t,4),e.categoryDenylist!==void 0?ni(t,5,e.categoryDenylist):"categoryDenylist"in e&&S(t,5),t}a(Qi,"Bo");function e1(e){let t=Number(e);return Number.isSafeInteger(t)?t:String(e)}a(e1,"Go");function zs(e,t=-1,n=""){return{categories:e.map((r=>({index:yt(r,1)??0??-1,score:U(r,2)??0,categoryName:Y(M(r,3))??""??"",displayName:Y(M(r,4))??""??""}))),headIndex:t,headName:n}}a(zs,"jo");function H3(e){let t={classifications:jt(e,k3,1).map((n=>zs(A(n,L2,4)?.g()??[],yt(n,2)??0,Y(M(n,3))??"")))};return(function(n){return n==null?n:typeof n=="bigint"?(Hi(n)?n=Number(n):(n=Cr(64,n),n=Hi(n)?Number(n):String(n)),n):Or(n)?typeof n=="number"?ds(n):Ca(n):void 0})(M(e,2,void 0,void 0,ti))!=null&&(t.timestampMs=e1(M(e,2,void 0,void 0,ti)??Ga)),t}a(H3,"Vo");function n1(e){var t=te(e,3,Rt,Qt()),n=te(e,2,ar,Qt()),r=te(e,1,Y,Qt()),i=te(e,9,Y,Qt());let s={categories:[],keypoints:[]};for(let o=0;o<t.length;o++)s.categories.push({score:t[o],index:n[o]??-1,categoryName:r[o]??"",displayName:i[o]??""});if((t=A(e,Ui,4)?.l())&&(s.boundingBox={originX:yt(t,1,Ht)??0,originY:yt(t,2,Ht)??0,width:yt(t,3,Ht)??0,height:yt(t,4,Ht)??0,angle:0}),A(e,Ui,4)?.g().length)for(let o of A(e,Ui,4).g())s.keypoints.push({x:M(o,1,void 0,Ht,Rt)??0,y:M(o,2,void 0,Ht,Rt)??0,score:M(o,4,void 0,Ht,Rt)??0,label:Y(M(o,3,void 0,Ht))??""});return s}a(n1,"Xo");function xi(e){let t=[];for(let n of jt(e,M2,1))t.push({x:U(n,1)??0,y:U(n,2)??0,z:U(n,3)??0,visibility:U(n,4)??0});return t}a(xi,"Ho");function Sr(e){let t=[];for(let n of jt(e,F2,1))t.push({x:U(n,1)??0,y:U(n,2)??0,z:U(n,3)??0,visibility:U(n,4)??0});return t}a(Sr,"Wo");function Xo(e){return Array.from(e,(t=>t>127?t-256:t))}a(Xo,"zo");function Ho(e,t){if(e.length!==t.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${e.length} vs. ${t.length}).`);let n=0,r=0,i=0;for(let s=0;s<e.length;s++)n+=e[s]*t[s],r+=e[s]*e[s],i+=t[s]*t[s];if(r<=0||i<=0)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return n/Math.sqrt(r*i)}a(Ho,"Ko");var Wr;H[516587230]=[0,G,Hs,Ji,B],H[518928384]=Ji;var W3=new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]);async function r1(e){if(e)return!0;if(Wr===void 0)try{await WebAssembly.instantiate(W3),Wr=!0}catch{Wr=!1}return Wr}a(r1,"$o");async function zr(e,t,n){return{wasmLoaderPath:`${t}/${e}_${n=`wasm${n?"_module":""}${await r1(n)?"":"_nosimd"}_internal`}.js`,wasmBinaryPath:`${t}/${e}_${n}.wasm`}}a(zr,"Jo");var wn,_r=(wn=class{},a(wn,"Zo"),wn);function i1(){var e=navigator;return typeof OffscreenCanvas<"u"&&(!(function(t=navigator){return(t=t.userAgent).includes("Safari")&&!t.includes("Chrome")})(e)||!!((e=e.userAgent.match(/Version\/([\d]+).*Safari/))&&e.length>=1&&Number(e[1])>=17))}a(i1,"Qo");async function Wo(e){if(typeof importScripts!="function"){let t=document.createElement("script");return t.src=e.toString(),t.crossOrigin="anonymous",new Promise(((n,r)=>{t.addEventListener("load",(()=>{n()}),!1),t.addEventListener("error",(i=>{r(i)}),!1),document.body.appendChild(t)}))}try{importScripts(e.toString())}catch(t){if(!(t instanceof TypeError))throw t;{let n=self.import;n?await n(e.toString()):await import(e.toString())}}}a(Wo,"ta");function s1(e){return e.videoWidth!==void 0?[e.videoWidth,e.videoHeight]:e.naturalWidth!==void 0?[e.naturalWidth,e.naturalHeight]:e.displayWidth!==void 0?[e.displayWidth,e.displayHeight]:[e.width,e.height]}a(s1,"ea");function m(e,t,n){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),n(t=e.i.stringToNewUTF8(t)),e.i._free(t)}a(m,"na");function zo(e,t,n){if(!e.i.canvas)throw Error("No OpenGL canvas configured.");if(n?e.i._bindTextureToStream(n):e.i._bindTextureToCanvas(),!(n=e.i.canvas.getContext("webgl2")||e.i.canvas.getContext("webgl")))throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");e.i.gpuOriginForWebTexturesIsBottomLeft&&n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!0),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.i.gpuOriginForWebTexturesIsBottomLeft&&n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!1);let[r,i]=s1(t);return!e.l||r===e.i.canvas.width&&i===e.i.canvas.height||(e.i.canvas.width=r,e.i.canvas.height=i),[r,i]}a(zo,"ra");function Ko(e,t,n){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");let r=new Uint32Array(t.length);for(let i=0;i<t.length;i++)r[i]=e.i.stringToNewUTF8(t[i]);t=e.i._malloc(4*r.length),e.i.HEAPU32.set(r,t>>2),n(t);for(let i of r)e.i._free(i);e.i._free(t)}a(Ko,"ia");function St(e,t,n){e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=n}a(St,"sa");function Wt(e,t,n){let r=[];e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=(i,s,o)=>{s?(n(r,o),r=[]):r.push(i)}}a(Wt,"oa");_r.forVisionTasks=function(e,t=!1){return zr("vision",e??Hr``,t)},_r.forTextTasks=function(e,t=!1){return zr("text",e??Hr``,t)},_r.forGenAiTasks=function(e,t=!1){return zr("genai",e??Hr``,t)},_r.forAudioTasks=function(e,t=!1){return zr("audio",e??Hr``,t)},_r.isSimdSupported=function(e=!1){return r1(e)};async function z3(e,t,n,r){return e=await(async(i,s,o,c,h)=>{if(s&&await Wo(s),!self.ModuleFactory||o&&(await Wo(o),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&h&&((s=self.Module).locateFile=h.locateFile,h.mainScriptUrlOrBlob&&(s.mainScriptUrlOrBlob=h.mainScriptUrlOrBlob)),h=await self.ModuleFactory(self.Module||h),self.ModuleFactory=self.Module=void 0,new i(h,c)})(e,n.wasmLoaderPath,n.assetLoaderPath,t,{locateFile:a(i=>i.endsWith(".wasm")?n.wasmBinaryPath.toString():n.assetBinaryPath&&i.endsWith(".data")?n.assetBinaryPath.toString():i,"locateFile")}),await e.o(r),e}a(z3,"aa");function Bi(e,t){let n=A(e.baseOptions,oi,1)||new oi;typeof t=="string"?(S(n,2,Nr(t)),S(n,1)):t instanceof Uint8Array&&(S(n,1,hs(t,!1)),S(n,2)),v(e.baseOptions,0,1,n)}a(Bi,"ca");function Yo(e){try{let t=e.H.length;if(t===1)throw Error(e.H[0].message);if(t>1)throw Error("Encountered multiple errors: "+e.H.map((n=>n.message)).join(", "))}finally{e.H=[]}}a(Yo,"ha");function f(e,t){e.C=Math.max(e.C,t)}a(f,"ua");function Li(e,t){e.B=new nt,ut(e.B,2,"PassThroughCalculator"),I(e.B,"free_memory"),w(e.B,"free_memory_unused_out"),C(t,"free_memory"),vt(t,e.B)}a(Li,"la");function tr(e,t){I(e.B,t),w(e.B,t+"_unused_out")}a(tr,"fa");function Ri(e){e.g.addBoolToStream(!0,"free_memory",e.C)}a(Ri,"da");var Tn,ts=(Tn=class{constructor(t){this.g=t,this.H=[],this.C=0,this.g.setAutoRenderToScreen(!1)}l(t,n=!0){if(n){let r=t.baseOptions||{};if(t.baseOptions?.modelAssetBuffer&&t.baseOptions?.modelAssetPath)throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!(A(this.baseOptions,oi,1)?.g()||A(this.baseOptions,oi,1)?.l()||t.baseOptions?.modelAssetBuffer||t.baseOptions?.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if((function(i,s){let o=A(i.baseOptions,Bo,3);if(!o){var c=o=new Bo,h=new Po;br(c,4,$r,h)}"delegate"in s&&(s.delegate==="GPU"?(s=o,c=new _3,br(s,2,$r,c)):(s=o,c=new Po,br(s,4,$r,c))),v(i.baseOptions,0,3,o)})(this,r),r.modelAssetPath)return fetch(r.modelAssetPath.toString()).then((i=>{if(i.ok)return i.arrayBuffer();throw Error(`Failed to fetch model: ${r.modelAssetPath} (${i.status})`)})).then((i=>{try{this.g.i.FS_unlink("/model.dat")}catch{}this.g.i.FS_createDataFile("/","model.dat",new Uint8Array(i),!0,!1,!1),Bi(this,"/model.dat"),this.m(),this.L()}));if(r.modelAssetBuffer instanceof Uint8Array)Bi(this,r.modelAssetBuffer);else if(r.modelAssetBuffer)return(async function(i){let s=[];for(var o=0;;){let{done:c,value:h}=await i.read();if(c)break;s.push(h),o+=h.length}if(s.length===0)return new Uint8Array(0);if(s.length===1)return s[0];i=new Uint8Array(o),o=0;for(let c of s)i.set(c,o),o+=c.length;return i})(r.modelAssetBuffer).then((i=>{Bi(this,i),this.m(),this.L()}))}return this.m(),this.L(),Promise.resolve()}L(){}ca(){let t;if(this.g.ca((n=>{t=v3(n)})),!t)throw Error("Failed to retrieve CalculatorGraphConfig");return t}setGraph(t,n){this.g.attachErrorListener(((r,i)=>{this.H.push(Error(i))})),this.g.Ja(),this.g.setGraph(t,n),this.B=void 0,Yo(this)}finishProcessing(){this.g.finishProcessing(),Yo(this)}close(){this.B=void 0,this.g.closeGraph()}},a(Tn,"pa"),Tn);function Q(e,t){if(!e)throw Error(`Unable to obtain required WebGL resource: ${t}`);return e}a(Q,"ga");ts.prototype.close=ts.prototype.close;var oo=class oo{constructor(t,n,r,i){this.g=t,this.h=n,this.m=r,this.l=i}bind(){this.g.bindVertexArray(this.h)}close(){this.g.deleteVertexArray(this.h),this.g.deleteBuffer(this.m),this.g.deleteBuffer(this.l)}};a(oo,"ma");var es=oo;function qo(e,t,n){let r=e.g;if(n=Q(r.createShader(n),"Failed to create WebGL shader"),r.shaderSource(n,t),r.compileShader(n),!r.getShaderParameter(n,r.COMPILE_STATUS))throw Error(`Could not compile WebGL shader: ${r.getShaderInfoLog(n)}`);return r.attachShader(e.h,n),n}a(qo,"ya");function $o(e,t){let n=e.g,r=Q(n.createVertexArray(),"Failed to create vertex array");n.bindVertexArray(r);let i=Q(n.createBuffer(),"Failed to create buffer");n.bindBuffer(n.ARRAY_BUFFER,i),n.enableVertexAttribArray(e.O),n.vertexAttribPointer(e.O,2,n.FLOAT,!1,0,0),n.bufferData(n.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),n.STATIC_DRAW);let s=Q(n.createBuffer(),"Failed to create buffer");return n.bindBuffer(n.ARRAY_BUFFER,s),n.enableVertexAttribArray(e.L),n.vertexAttribPointer(e.L,2,n.FLOAT,!1,0,0),n.bufferData(n.ARRAY_BUFFER,new Float32Array(t?[0,1,0,0,1,0,1,1]:[0,0,0,1,1,1,1,0]),n.STATIC_DRAW),n.bindBuffer(n.ARRAY_BUFFER,null),n.bindVertexArray(null),new es(n,r,i,s)}a($o,"_a");function Ks(e,t){if(e.g){if(t!==e.g)throw Error("Cannot change GL context once initialized")}else e.g=t}a(Ks,"va");function Gr(e,t,n,r){return Ks(e,t),e.h||(e.m(),e.D()),n?(e.u||(e.u=$o(e,!0)),n=e.u):(e.A||(e.A=$o(e,!1)),n=e.A),t.useProgram(e.h),n.bind(),e.l(),e=r(),n.g.bindVertexArray(null),e}a(Gr,"Ea");function $t(e,t,n){return Ks(e,t),e=Q(t.createTexture(),"Failed to create texture"),t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,n??t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,n??t.LINEAR),t.bindTexture(t.TEXTURE_2D,null),e}a($t,"wa");function Ii(e,t,n){Ks(e,t),e.B||(e.B=Q(t.createFramebuffer(),"Failed to create framebuffe.")),t.bindFramebuffer(t.FRAMEBUFFER,e.B),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,n,0)}a(Ii,"Ta");function Ys(e){e.g?.bindFramebuffer(e.g.FRAMEBUFFER,null)}a(Ys,"Aa");var An,mr=(An=class{H(){return`
|
|
2
|
+
precision mediump float;
|
|
3
|
+
varying vec2 vTex;
|
|
4
|
+
uniform sampler2D inputTexture;
|
|
5
|
+
void main() {
|
|
6
|
+
gl_FragColor = texture2D(inputTexture, vTex);
|
|
7
|
+
}
|
|
8
|
+
`}m(){let t=this.g;if(this.h=Q(t.createProgram(),"Failed to create WebGL program"),this.X=qo(this,`
|
|
9
|
+
attribute vec2 aVertex;
|
|
10
|
+
attribute vec2 aTex;
|
|
11
|
+
varying vec2 vTex;
|
|
12
|
+
void main(void) {
|
|
13
|
+
gl_Position = vec4(aVertex, 0.0, 1.0);
|
|
14
|
+
vTex = aTex;
|
|
15
|
+
}`,t.VERTEX_SHADER),this.W=qo(this,this.H(),t.FRAGMENT_SHADER),t.linkProgram(this.h),!t.getProgramParameter(this.h,t.LINK_STATUS))throw Error(`Error during program linking: ${t.getProgramInfoLog(this.h)}`);this.O=t.getAttribLocation(this.h,"aVertex"),this.L=t.getAttribLocation(this.h,"aTex")}D(){}l(){}close(){if(this.h){let t=this.g;t.deleteProgram(this.h),t.deleteShader(this.X),t.deleteShader(this.W)}this.B&&this.g.deleteFramebuffer(this.B),this.A&&this.A.close(),this.u&&this.u.close()}},a(An,"ba"),An),bn,K3=(bn=class extends mr{H(){return`
|
|
16
|
+
precision mediump float;
|
|
17
|
+
uniform sampler2D backgroundTexture;
|
|
18
|
+
uniform sampler2D maskTexture;
|
|
19
|
+
uniform sampler2D colorMappingTexture;
|
|
20
|
+
varying vec2 vTex;
|
|
21
|
+
void main() {
|
|
22
|
+
vec4 backgroundColor = texture2D(backgroundTexture, vTex);
|
|
23
|
+
float category = texture2D(maskTexture, vTex).r;
|
|
24
|
+
vec4 categoryColor = texture2D(colorMappingTexture, vec2(category, 0.0));
|
|
25
|
+
gl_FragColor = mix(backgroundColor, categoryColor, categoryColor.a);
|
|
26
|
+
}
|
|
27
|
+
`}D(){let t=this.g;t.activeTexture(t.TEXTURE1),this.C=$t(this,t,t.LINEAR),t.activeTexture(t.TEXTURE2),this.j=$t(this,t,t.NEAREST)}m(){super.m();let t=this.g;this.P=Q(t.getUniformLocation(this.h,"backgroundTexture"),"Uniform location"),this.U=Q(t.getUniformLocation(this.h,"colorMappingTexture"),"Uniform location"),this.M=Q(t.getUniformLocation(this.h,"maskTexture"),"Uniform location")}l(){super.l();let t=this.g;t.uniform1i(this.M,0),t.uniform1i(this.P,1),t.uniform1i(this.U,2)}close(){this.C&&this.g.deleteTexture(this.C),this.j&&this.g.deleteTexture(this.j),super.close()}},a(bn,"ka"),bn),kn,Y3=(kn=class extends mr{H(){return`
|
|
28
|
+
precision mediump float;
|
|
29
|
+
uniform sampler2D maskTexture;
|
|
30
|
+
uniform sampler2D defaultTexture;
|
|
31
|
+
uniform sampler2D overlayTexture;
|
|
32
|
+
varying vec2 vTex;
|
|
33
|
+
void main() {
|
|
34
|
+
float confidence = texture2D(maskTexture, vTex).r;
|
|
35
|
+
vec4 defaultColor = texture2D(defaultTexture, vTex);
|
|
36
|
+
vec4 overlayColor = texture2D(overlayTexture, vTex);
|
|
37
|
+
// Apply the alpha from the overlay and merge in the default color
|
|
38
|
+
overlayColor = mix(defaultColor, overlayColor, overlayColor.a);
|
|
39
|
+
gl_FragColor = mix(defaultColor, overlayColor, confidence);
|
|
40
|
+
}
|
|
41
|
+
`}D(){let t=this.g;t.activeTexture(t.TEXTURE1),this.j=$t(this,t),t.activeTexture(t.TEXTURE2),this.C=$t(this,t)}m(){super.m();let t=this.g;this.M=Q(t.getUniformLocation(this.h,"defaultTexture"),"Uniform location"),this.P=Q(t.getUniformLocation(this.h,"overlayTexture"),"Uniform location"),this.I=Q(t.getUniformLocation(this.h,"maskTexture"),"Uniform location")}l(){super.l();let t=this.g;t.uniform1i(this.I,0),t.uniform1i(this.M,1),t.uniform1i(this.P,2)}close(){this.j&&this.g.deleteTexture(this.j),this.C&&this.g.deleteTexture(this.C),super.close()}},a(kn,"Sa"),kn);function Dt(e,t){switch(t){case 0:return e.g.find((n=>n instanceof Uint8Array));case 1:return e.g.find((n=>n instanceof Float32Array));case 2:return e.g.find((n=>typeof WebGLTexture<"u"&&n instanceof WebGLTexture));default:throw Error(`Type is not supported: ${t}`)}}a(Dt,"xa");function ns(e){var t=Dt(e,1);if(!t){if(t=Dt(e,0))t=new Float32Array(t).map((r=>r/255));else{t=new Float32Array(e.width*e.height);let r=er(e);var n=qs(e);if(Ii(n,r,o1(e)),"iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"document"in self&&"ontouchend"in self.document){n=new Float32Array(e.width*e.height*4),r.readPixels(0,0,e.width,e.height,r.RGBA,r.FLOAT,n);for(let i=0,s=0;i<t.length;++i,s+=4)t[i]=n[s]}else r.readPixels(0,0,e.width,e.height,r.RED,r.FLOAT,t)}e.g.push(t)}return t}a(ns,"La");function o1(e){let t=Dt(e,2);if(!t){let n=er(e);t=c1(e);let r=ns(e),i=a1(e);n.texImage2D(n.TEXTURE_2D,0,i,e.width,e.height,0,n.RED,n.FLOAT,r),rs(e)}return t}a(o1,"Ra");function er(e){if(!e.canvas)throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");return e.h||(e.h=Q(e.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),e.h}a(er,"Ia");function a1(e){if(e=er(e),!Kr)if(e.getExtension("EXT_color_buffer_float")&&e.getExtension("OES_texture_float_linear")&&e.getExtension("EXT_float_blend"))Kr=e.R32F;else{if(!e.getExtension("EXT_color_buffer_half_float"))throw Error("GPU does not fully support 4-channel float32 or float16 formats");Kr=e.R16F}return Kr}a(a1,"Fa");function qs(e){return e.l||(e.l=new mr),e.l}a(qs,"Ma");function c1(e){let t=er(e);t.viewport(0,0,e.width,e.height),t.activeTexture(t.TEXTURE0);let n=Dt(e,2);return n||(n=$t(qs(e),t,e.m?t.LINEAR:t.NEAREST),e.g.push(n),e.j=!0),t.bindTexture(t.TEXTURE_2D,n),n}a(c1,"Pa");function rs(e){e.h.bindTexture(e.h.TEXTURE_2D,null)}a(rs,"Ca");var Kr,Sn,j=(Sn=class{constructor(t,n,r,i,s,o,c){this.g=t,this.m=n,this.j=r,this.canvas=i,this.l=s,this.width=o,this.height=c,this.j&&--Jo===0&&console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources.")}Fa(){return!!Dt(this,0)}ka(){return!!Dt(this,1)}R(){return!!Dt(this,2)}ja(){return(n=Dt(t=this,0))||(n=ns(t),n=new Uint8Array(n.map((r=>Math.round(255*r)))),t.g.push(n)),n;var t,n}ia(){return ns(this)}N(){return o1(this)}clone(){let t=[];for(let n of this.g){let r;if(n instanceof Uint8Array)r=new Uint8Array(n);else if(n instanceof Float32Array)r=new Float32Array(n);else{if(!(n instanceof WebGLTexture))throw Error(`Type is not supported: ${n}`);{let i=er(this),s=qs(this);i.activeTexture(i.TEXTURE1),r=$t(s,i,this.m?i.LINEAR:i.NEAREST),i.bindTexture(i.TEXTURE_2D,r);let o=a1(this);i.texImage2D(i.TEXTURE_2D,0,o,this.width,this.height,0,i.RED,i.FLOAT,null),i.bindTexture(i.TEXTURE_2D,null),Ii(s,i,r),Gr(s,i,!1,(()=>{c1(this),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.drawArrays(i.TRIANGLE_FAN,0,4),rs(this)})),Ys(s),rs(this)}}t.push(r)}return new j(t,this.m,this.R(),this.canvas,this.l,this.width,this.height)}close(){this.j&&er(this).deleteTexture(Dt(this,2)),Jo=-1}},a(Sn,"Na"),Sn);j.prototype.close=j.prototype.close,j.prototype.clone=j.prototype.clone,j.prototype.getAsWebGLTexture=j.prototype.N,j.prototype.getAsFloat32Array=j.prototype.ia,j.prototype.getAsUint8Array=j.prototype.ja,j.prototype.hasWebGLTexture=j.prototype.R,j.prototype.hasFloat32Array=j.prototype.ka,j.prototype.hasUint8Array=j.prototype.Fa;var Jo=250,q3={color:"white",lineWidth:4,radius:6};function Gi(e){return{...q3,fillColor:(e=e||{}).color,...e}}a(Gi,"Ba");function Ut(e,t){return e instanceof Function?e(t):e}a(Ut,"Ga");function Zo(e,t,n){return Math.max(Math.min(t,n),Math.min(Math.max(t,n),e))}a(Zo,"ja");function vr(e){if(!e.l)throw Error("CPU rendering requested but CanvasRenderingContext2D not provided.");return e.l}a(vr,"Va");function Fr(e){if(!e.j)throw Error("GPU rendering requested but WebGL2RenderingContext not provided.");return e.j}a(Fr,"Xa");function Qo(e,t,n){if(t.R())n(t.N());else{let r=t.ka()?t.ia():t.ja();e.m=e.m??new mr;let i=Fr(e);n((e=new j([r],t.m,!1,i.canvas,e.m,t.width,t.height)).N()),e.close()}}a(Qo,"Ha");function ta(e,t,n,r){let i=(function(c){return c.g||(c.g=new K3),c.g})(e),s=Fr(e),o=Array.isArray(n)?new ImageData(new Uint8ClampedArray(n),1,1):n;Gr(i,s,!0,(()=>{(function(h,l,u,_){let d=h.g;if(d.activeTexture(d.TEXTURE0),d.bindTexture(d.TEXTURE_2D,l),d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,h.C),d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,d.UNSIGNED_BYTE,u),h.I&&(function(E,k){if(E!==k)return!1;E=E.entries(),k=k.entries();for(let[Et,Xt]of E){E=Et;let kt=Xt,fe=k.next();if(fe.done)return!1;let[jr,Vr]=fe.value;if(E!==jr||kt[0]!==Vr[0]||kt[1]!==Vr[1]||kt[2]!==Vr[2]||kt[3]!==Vr[3])return!1}return!!k.next().done})(h.I,_))d.activeTexture(d.TEXTURE2),d.bindTexture(d.TEXTURE_2D,h.j);else{h.I=_;let E=Array(1024).fill(0);_.forEach(((k,Et)=>{if(k.length!==4)throw Error(`Color at index ${Et} is not a four-channel value.`);E[4*Et]=k[0],E[4*Et+1]=k[1],E[4*Et+2]=k[2],E[4*Et+3]=k[3]})),d.activeTexture(d.TEXTURE2),d.bindTexture(d.TEXTURE_2D,h.j),d.texImage2D(d.TEXTURE_2D,0,d.RGBA,256,1,0,d.RGBA,d.UNSIGNED_BYTE,new Uint8Array(E))}})(i,t,o,r),s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT),s.drawArrays(s.TRIANGLE_FAN,0,4);let c=i.g;c.activeTexture(c.TEXTURE0),c.bindTexture(c.TEXTURE_2D,null),c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),c.activeTexture(c.TEXTURE2),c.bindTexture(c.TEXTURE_2D,null)}))}a(ta,"Wa");function ea(e,t,n,r){let i=Fr(e),s=(function(h){return h.h||(h.h=new Y3),h.h})(e),o=Array.isArray(n)?new ImageData(new Uint8ClampedArray(n),1,1):n,c=Array.isArray(r)?new ImageData(new Uint8ClampedArray(r),1,1):r;Gr(s,i,!0,(()=>{var h=s.g;h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,t),h.activeTexture(h.TEXTURE1),h.bindTexture(h.TEXTURE_2D,s.j),h.texImage2D(h.TEXTURE_2D,0,h.RGBA,h.RGBA,h.UNSIGNED_BYTE,o),h.activeTexture(h.TEXTURE2),h.bindTexture(h.TEXTURE_2D,s.C),h.texImage2D(h.TEXTURE_2D,0,h.RGBA,h.RGBA,h.UNSIGNED_BYTE,c),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.drawArrays(i.TRIANGLE_FAN,0,4),i.bindTexture(i.TEXTURE_2D,null),(h=s.g).activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,null),h.activeTexture(h.TEXTURE1),h.bindTexture(h.TEXTURE_2D,null),h.activeTexture(h.TEXTURE2),h.bindTexture(h.TEXTURE_2D,null)}))}a(ea,"za");var xn,tt=(xn=class{constructor(t,n){typeof CanvasRenderingContext2D<"u"&&t instanceof CanvasRenderingContext2D||t instanceof OffscreenCanvasRenderingContext2D?(this.l=t,this.j=n):this.j=t}ya(t,n){if(t){var r=vr(this);n=Gi(n),r.save();var i=r.canvas,s=0;for(let o of t)r.fillStyle=Ut(n.fillColor,{index:s,from:o}),r.strokeStyle=Ut(n.color,{index:s,from:o}),r.lineWidth=Ut(n.lineWidth,{index:s,from:o}),(t=new Path2D).arc(o.x*i.width,o.y*i.height,Ut(n.radius,{index:s,from:o}),0,2*Math.PI),r.fill(t),r.stroke(t),++s;r.restore()}}xa(t,n,r){if(t&&n){var i=vr(this);r=Gi(r),i.save();var s=i.canvas,o=0;for(let c of n){i.beginPath(),n=t[c.start];let h=t[c.end];n&&h&&(i.strokeStyle=Ut(r.color,{index:o,from:n,to:h}),i.lineWidth=Ut(r.lineWidth,{index:o,from:n,to:h}),i.moveTo(n.x*s.width,n.y*s.height),i.lineTo(h.x*s.width,h.y*s.height)),++o,i.stroke()}i.restore()}}ua(t,n){let r=vr(this);n=Gi(n),r.save(),r.beginPath(),r.lineWidth=Ut(n.lineWidth,{}),r.strokeStyle=Ut(n.color,{}),r.fillStyle=Ut(n.fillColor,{}),r.moveTo(t.originX,t.originY),r.lineTo(t.originX+t.width,t.originY),r.lineTo(t.originX+t.width,t.originY+t.height),r.lineTo(t.originX,t.originY+t.height),r.lineTo(t.originX,t.originY),r.stroke(),r.fill(),r.restore()}va(t,n,r=[0,0,0,255]){this.l?(function(i,s,o,c){let h=Fr(i);Qo(i,s,(l=>{ta(i,l,o,c),(l=vr(i)).drawImage(h.canvas,0,0,l.canvas.width,l.canvas.height)}))})(this,t,r,n):ta(this,t.N(),r,n)}wa(t,n,r){this.l?(function(i,s,o,c){let h=Fr(i);Qo(i,s,(l=>{ea(i,l,o,c),(l=vr(i)).drawImage(h.canvas,0,0,l.canvas.width,l.canvas.height)}))})(this,t,n,r):ea(this,t.N(),n,r)}close(){this.g?.close(),this.g=void 0,this.h?.close(),this.h=void 0,this.m?.close(),this.m=void 0}},a(xn,"Ka"),xn);function Lt(e,t){switch(t){case 0:return e.g.find((n=>n instanceof ImageData));case 1:return e.g.find((n=>typeof ImageBitmap<"u"&&n instanceof ImageBitmap));case 2:return e.g.find((n=>typeof WebGLTexture<"u"&&n instanceof WebGLTexture));default:throw Error(`Type is not supported: ${t}`)}}a(Lt,"Ya");function h1(e){var t=Lt(e,0);if(!t){t=nr(e);let n=Fi(e),r=new Uint8Array(e.width*e.height*4);Ii(n,t,Jr(e)),t.readPixels(0,0,e.width,e.height,t.RGBA,t.UNSIGNED_BYTE,r),Ys(n),t=new ImageData(new Uint8ClampedArray(r.buffer),e.width,e.height),e.g.push(t)}return t}a(h1,"qa");function Jr(e){let t=Lt(e,2);if(!t){let n=nr(e);t=Zr(e);let r=Lt(e,1)||h1(e);n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,r),Tr(e)}return t}a(Jr,"$a");function nr(e){if(!e.canvas)throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");return e.h||(e.h=Q(e.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),e.h}a(nr,"Ja");function Fi(e){return e.l||(e.l=new mr),e.l}a(Fi,"Za");function Zr(e){let t=nr(e);t.viewport(0,0,e.width,e.height),t.activeTexture(t.TEXTURE0);let n=Lt(e,2);return n||(n=$t(Fi(e),t),e.g.push(n),e.m=!0),t.bindTexture(t.TEXTURE_2D,n),n}a(Zr,"Qa");function Tr(e){e.h.bindTexture(e.h.TEXTURE_2D,null)}a(Tr,"tc");function na(e){let t=nr(e);return Gr(Fi(e),t,!0,(()=>(function(n,r){let i=n.canvas;if(i.width===n.width&&i.height===n.height)return r();let s=i.width,o=i.height;return i.width=n.width,i.height=n.height,n=r(),i.width=s,i.height=o,n})(e,(()=>{if(t.bindFramebuffer(t.FRAMEBUFFER,null),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.drawArrays(t.TRIANGLE_FAN,0,4),!(e.canvas instanceof OffscreenCanvas))throw Error("Conversion to ImageBitmap requires that the MediaPipe Tasks is initialized with an OffscreenCanvas");return e.canvas.transferToImageBitmap()}))))}a(na,"ec");tt.prototype.close=tt.prototype.close,tt.prototype.drawConfidenceMask=tt.prototype.wa,tt.prototype.drawCategoryMask=tt.prototype.va,tt.prototype.drawBoundingBox=tt.prototype.ua,tt.prototype.drawConnectors=tt.prototype.xa,tt.prototype.drawLandmarks=tt.prototype.ya,tt.lerp=function(e,t,n,r,i){return Zo(r*(1-(e-t)/(n-t))+i*(1-(n-e)/(n-t)),r,i)},tt.clamp=Zo;var Ln,K=(Ln=class{constructor(t,n,r,i,s,o,c){this.g=t,this.j=n,this.m=r,this.canvas=i,this.l=s,this.width=o,this.height=c,(this.j||this.m)&&--ra===0&&console.error("You seem to be creating MPImage instances without invoking .close(). This leaks resources.")}Ea(){return!!Lt(this,0)}la(){return!!Lt(this,1)}R(){return!!Lt(this,2)}Ca(){return h1(this)}Ba(){var t=Lt(this,1);return t||(Jr(this),Zr(this),t=na(this),Tr(this),this.g.push(t),this.j=!0),t}N(){return Jr(this)}clone(){let t=[];for(let n of this.g){let r;if(n instanceof ImageData)r=new ImageData(n.data,this.width,this.height);else if(n instanceof WebGLTexture){let i=nr(this),s=Fi(this);i.activeTexture(i.TEXTURE1),r=$t(s,i),i.bindTexture(i.TEXTURE_2D,r),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,this.width,this.height,0,i.RGBA,i.UNSIGNED_BYTE,null),i.bindTexture(i.TEXTURE_2D,null),Ii(s,i,r),Gr(s,i,!1,(()=>{Zr(this),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.drawArrays(i.TRIANGLE_FAN,0,4),Tr(this)})),Ys(s),Tr(this)}else{if(!(n instanceof ImageBitmap))throw Error(`Type is not supported: ${n}`);Jr(this),Zr(this),r=na(this),Tr(this)}t.push(r)}return new K(t,this.la(),this.R(),this.canvas,this.l,this.width,this.height)}close(){this.j&&Lt(this,1).close(),this.m&&nr(this).deleteTexture(Lt(this,2)),ra=-1}},a(Ln,"nc"),Ln);K.prototype.close=K.prototype.close,K.prototype.clone=K.prototype.clone,K.prototype.getAsWebGLTexture=K.prototype.N,K.prototype.getAsImageBitmap=K.prototype.Ba,K.prototype.getAsImageData=K.prototype.Ca,K.prototype.hasWebGLTexture=K.prototype.R,K.prototype.hasImageBitmap=K.prototype.la,K.prototype.hasImageData=K.prototype.Ea;var ra=250;function Tt(...e){return e.map((([t,n])=>({start:t,end:n})))}a(Tt,"ic");var Rn,$3=(function(e){return class extends e{Ja(){this.i._registerModelResourcesGraphService()}}})((ia=(Rn=class{constructor(t,n){this.l=!0,this.i=t,this.g=null,this.h=0,this.m=typeof this.i._addIntToInputStream=="function",n!==void 0?this.i.canvas=n:i1()?this.i.canvas=new OffscreenCanvas(1,1):(console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."),this.i.canvas=document.createElement("canvas"))}async initializeGraph(t){let n=await(await fetch(t)).arrayBuffer();t=!(t.endsWith(".pbtxt")||t.endsWith(".textproto")),this.setGraph(new Uint8Array(n),t)}setGraphFromString(t){this.setGraph(new TextEncoder().encode(t),!1)}setGraph(t,n){let r=t.length,i=this.i._malloc(r);this.i.HEAPU8.set(t,i),n?this.i._changeBinaryGraph(r,i):this.i._changeTextGraph(r,i),this.i._free(i)}configureAudio(t,n,r,i,s){this.i._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),m(this,i||"input_audio",(o=>{m(this,s=s||"audio_header",(c=>{this.i._configureAudio(o,c,t,n??0,r)}))}))}setAutoResizeCanvas(t){this.l=t}setAutoRenderToScreen(t){this.i._setAutoRenderToScreen(t)}setGpuBufferVerticalFlip(t){this.i.gpuOriginForWebTexturesIsBottomLeft=t}ca(t){St(this,"__graph_config__",(n=>{t(n)})),m(this,"__graph_config__",(n=>{this.i._getGraphConfig(n,void 0)})),delete this.i.simpleListeners.__graph_config__}attachErrorListener(t){this.i.errorListener=t}attachEmptyPacketListener(t,n){this.i.emptyPacketListeners=this.i.emptyPacketListeners||{},this.i.emptyPacketListeners[t]=n}addAudioToStream(t,n,r){this.addAudioToStreamWithShape(t,0,0,n,r)}addAudioToStreamWithShape(t,n,r,i,s){let o=4*t.length;this.h!==o&&(this.g&&this.i._free(this.g),this.g=this.i._malloc(o),this.h=o),this.i.HEAPF32.set(t,this.g/4),m(this,i,(c=>{this.i._addAudioToInputStream(this.g,n,r,c,s)}))}addGpuBufferToStream(t,n,r){m(this,n,(i=>{let[s,o]=zo(this,t,i);this.i._addBoundTextureToStream(i,s,o,r)}))}addBoolToStream(t,n,r){m(this,n,(i=>{this.i._addBoolToInputStream(t,i,r)}))}addDoubleToStream(t,n,r){m(this,n,(i=>{this.i._addDoubleToInputStream(t,i,r)}))}addFloatToStream(t,n,r){m(this,n,(i=>{this.i._addFloatToInputStream(t,i,r)}))}addIntToStream(t,n,r){m(this,n,(i=>{this.i._addIntToInputStream(t,i,r)}))}addUintToStream(t,n,r){m(this,n,(i=>{this.i._addUintToInputStream(t,i,r)}))}addStringToStream(t,n,r){m(this,n,(i=>{m(this,t,(s=>{this.i._addStringToInputStream(s,i,r)}))}))}addStringRecordToStream(t,n,r){m(this,n,(i=>{Ko(this,Object.keys(t),(s=>{Ko(this,Object.values(t),(o=>{this.i._addFlatHashMapToInputStream(s,o,Object.keys(t).length,i,r)}))}))}))}addProtoToStream(t,n,r,i){m(this,r,(s=>{m(this,n,(o=>{let c=this.i._malloc(t.length);this.i.HEAPU8.set(t,c),this.i._addProtoToInputStream(c,t.length,o,s,i),this.i._free(c)}))}))}addEmptyPacketToStream(t,n){m(this,t,(r=>{this.i._addEmptyPacketToInputStream(r,n)}))}addBoolVectorToStream(t,n,r){m(this,n,(i=>{let s=this.i._allocateBoolVector(t.length);if(!s)throw Error("Unable to allocate new bool vector on heap.");for(let o of t)this.i._addBoolVectorEntry(s,o);this.i._addBoolVectorToInputStream(s,i,r)}))}addDoubleVectorToStream(t,n,r){m(this,n,(i=>{let s=this.i._allocateDoubleVector(t.length);if(!s)throw Error("Unable to allocate new double vector on heap.");for(let o of t)this.i._addDoubleVectorEntry(s,o);this.i._addDoubleVectorToInputStream(s,i,r)}))}addFloatVectorToStream(t,n,r){m(this,n,(i=>{let s=this.i._allocateFloatVector(t.length);if(!s)throw Error("Unable to allocate new float vector on heap.");for(let o of t)this.i._addFloatVectorEntry(s,o);this.i._addFloatVectorToInputStream(s,i,r)}))}addIntVectorToStream(t,n,r){m(this,n,(i=>{let s=this.i._allocateIntVector(t.length);if(!s)throw Error("Unable to allocate new int vector on heap.");for(let o of t)this.i._addIntVectorEntry(s,o);this.i._addIntVectorToInputStream(s,i,r)}))}addUintVectorToStream(t,n,r){m(this,n,(i=>{let s=this.i._allocateUintVector(t.length);if(!s)throw Error("Unable to allocate new unsigned int vector on heap.");for(let o of t)this.i._addUintVectorEntry(s,o);this.i._addUintVectorToInputStream(s,i,r)}))}addStringVectorToStream(t,n,r){m(this,n,(i=>{let s=this.i._allocateStringVector(t.length);if(!s)throw Error("Unable to allocate new string vector on heap.");for(let o of t)m(this,o,(c=>{this.i._addStringVectorEntry(s,c)}));this.i._addStringVectorToInputStream(s,i,r)}))}addBoolToInputSidePacket(t,n){m(this,n,(r=>{this.i._addBoolToInputSidePacket(t,r)}))}addDoubleToInputSidePacket(t,n){m(this,n,(r=>{this.i._addDoubleToInputSidePacket(t,r)}))}addFloatToInputSidePacket(t,n){m(this,n,(r=>{this.i._addFloatToInputSidePacket(t,r)}))}addIntToInputSidePacket(t,n){m(this,n,(r=>{this.i._addIntToInputSidePacket(t,r)}))}addUintToInputSidePacket(t,n){m(this,n,(r=>{this.i._addUintToInputSidePacket(t,r)}))}addStringToInputSidePacket(t,n){m(this,n,(r=>{m(this,t,(i=>{this.i._addStringToInputSidePacket(i,r)}))}))}addProtoToInputSidePacket(t,n,r){m(this,r,(i=>{m(this,n,(s=>{let o=this.i._malloc(t.length);this.i.HEAPU8.set(t,o),this.i._addProtoToInputSidePacket(o,t.length,s,i),this.i._free(o)}))}))}addBoolVectorToInputSidePacket(t,n){m(this,n,(r=>{let i=this.i._allocateBoolVector(t.length);if(!i)throw Error("Unable to allocate new bool vector on heap.");for(let s of t)this.i._addBoolVectorEntry(i,s);this.i._addBoolVectorToInputSidePacket(i,r)}))}addDoubleVectorToInputSidePacket(t,n){m(this,n,(r=>{let i=this.i._allocateDoubleVector(t.length);if(!i)throw Error("Unable to allocate new double vector on heap.");for(let s of t)this.i._addDoubleVectorEntry(i,s);this.i._addDoubleVectorToInputSidePacket(i,r)}))}addFloatVectorToInputSidePacket(t,n){m(this,n,(r=>{let i=this.i._allocateFloatVector(t.length);if(!i)throw Error("Unable to allocate new float vector on heap.");for(let s of t)this.i._addFloatVectorEntry(i,s);this.i._addFloatVectorToInputSidePacket(i,r)}))}addIntVectorToInputSidePacket(t,n){m(this,n,(r=>{let i=this.i._allocateIntVector(t.length);if(!i)throw Error("Unable to allocate new int vector on heap.");for(let s of t)this.i._addIntVectorEntry(i,s);this.i._addIntVectorToInputSidePacket(i,r)}))}addUintVectorToInputSidePacket(t,n){m(this,n,(r=>{let i=this.i._allocateUintVector(t.length);if(!i)throw Error("Unable to allocate new unsigned int vector on heap.");for(let s of t)this.i._addUintVectorEntry(i,s);this.i._addUintVectorToInputSidePacket(i,r)}))}addStringVectorToInputSidePacket(t,n){m(this,n,(r=>{let i=this.i._allocateStringVector(t.length);if(!i)throw Error("Unable to allocate new string vector on heap.");for(let s of t)m(this,s,(o=>{this.i._addStringVectorEntry(i,o)}));this.i._addStringVectorToInputSidePacket(i,r)}))}attachBoolListener(t,n){St(this,t,n),m(this,t,(r=>{this.i._attachBoolListener(r)}))}attachBoolVectorListener(t,n){Wt(this,t,n),m(this,t,(r=>{this.i._attachBoolVectorListener(r)}))}attachIntListener(t,n){St(this,t,n),m(this,t,(r=>{this.i._attachIntListener(r)}))}attachIntVectorListener(t,n){Wt(this,t,n),m(this,t,(r=>{this.i._attachIntVectorListener(r)}))}attachUintListener(t,n){St(this,t,n),m(this,t,(r=>{this.i._attachUintListener(r)}))}attachUintVectorListener(t,n){Wt(this,t,n),m(this,t,(r=>{this.i._attachUintVectorListener(r)}))}attachDoubleListener(t,n){St(this,t,n),m(this,t,(r=>{this.i._attachDoubleListener(r)}))}attachDoubleVectorListener(t,n){Wt(this,t,n),m(this,t,(r=>{this.i._attachDoubleVectorListener(r)}))}attachFloatListener(t,n){St(this,t,n),m(this,t,(r=>{this.i._attachFloatListener(r)}))}attachFloatVectorListener(t,n){Wt(this,t,n),m(this,t,(r=>{this.i._attachFloatVectorListener(r)}))}attachStringListener(t,n){St(this,t,n),m(this,t,(r=>{this.i._attachStringListener(r)}))}attachStringVectorListener(t,n){Wt(this,t,n),m(this,t,(r=>{this.i._attachStringVectorListener(r)}))}attachProtoListener(t,n,r){St(this,t,n),m(this,t,(i=>{this.i._attachProtoListener(i,r||!1)}))}attachProtoVectorListener(t,n,r){Wt(this,t,n),m(this,t,(i=>{this.i._attachProtoVectorListener(i,r||!1)}))}attachAudioListener(t,n,r){this.i._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),St(this,t,((i,s)=>{i=new Float32Array(i.buffer,i.byteOffset,i.length/4),n(i,s)})),m(this,t,(i=>{this.i._attachAudioListener(i,r||!1)}))}finishProcessing(){this.i._waitUntilIdle()}closeGraph(){this.i._closeGraph(),this.i.simpleListeners=void 0,this.i.emptyPacketListeners=void 0}},a(Rn,"oc"),Rn),class extends ia{get ga(){return this.i}pa(e,t,n){m(this,t,(r=>{let[i,s]=zo(this,e,r);this.ga._addBoundTextureAsImageToStream(r,i,s,n)}))}Z(e,t){St(this,e,t),m(this,e,(n=>{this.ga._attachImageListener(n)}))}aa(e,t){Wt(this,e,t),m(this,e,(n=>{this.ga._attachImageVectorListener(n)}))}})),ia,In,At=(In=class extends $3{},a(In,"ac"),In);async function T(e,t,n){return(async function(r,i,s,o){return z3(r,i,s,o)})(e,n.canvas??(i1()?void 0:document.createElement("canvas")),t,n)}a(T,"cc");function u1(e,t,n,r){if(e.U){let s=new P2;if(n?.regionOfInterest){if(!e.oa)throw Error("This task doesn't support region-of-interest.");var i=n.regionOfInterest;if(i.left>=i.right||i.top>=i.bottom)throw Error("Expected RectF with left < right and top < bottom.");if(i.left<0||i.top<0||i.right>1||i.bottom>1)throw Error("Expected RectF values to be in [0,1].");y(s,1,(i.left+i.right)/2),y(s,2,(i.top+i.bottom)/2),y(s,4,i.right-i.left),y(s,3,i.bottom-i.top)}else y(s,1,.5),y(s,2,.5),y(s,4,1),y(s,3,1);if(n?.rotationDegrees){if(n?.rotationDegrees%90!=0)throw Error("Expected rotation to be a multiple of 90°.");if(y(s,5,-Math.PI*n.rotationDegrees/180),n?.rotationDegrees%180!=0){let[o,c]=s1(t);n=U(s,3)*c/o,i=U(s,4)*o/c,y(s,4,n),y(s,3,i)}}e.g.addProtoToStream(s.g(),"mediapipe.NormalizedRect",e.U,r)}e.g.pa(t,e.X,r??performance.now()),e.finishProcessing()}a(u1,"hc");function bt(e,t,n){if(e.baseOptions?.g())throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");u1(e,t,n,e.C+1)}a(bt,"uc");function Nt(e,t,n,r){if(!e.baseOptions?.g())throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");u1(e,t,n,r)}a(Nt,"lc");function rr(e,t,n,r){var i=t.data;let s=t.width,o=s*(t=t.height);if((i instanceof Uint8Array||i instanceof Float32Array)&&i.length!==o)throw Error("Unsupported channel count: "+i.length/o);return e=new j([i],n,!1,e.g.i.canvas,e.P,s,t),r?e.clone():e}a(rr,"fc");var Fn,lt=(Fn=class extends ts{constructor(t,n,r,i){super(t),this.g=t,this.X=n,this.U=r,this.oa=i,this.P=new mr}l(t,n=!0){if("runningMode"in t&&S(this.baseOptions,2,Rr(!!t.runningMode&&t.runningMode!=="IMAGE")),t.canvas!==void 0&&this.g.i.canvas!==t.canvas)throw Error("You must create a new task to reset the canvas.");return super.l(t,n)}close(){this.P.close(),super.close()}},a(Fn,"dc"),Fn);lt.prototype.close=lt.prototype.close;var Mn,pt=(Mn=class extends lt{constructor(t,n){super(new At(t,n),"image_in","norm_rect_in",!1),this.j={detections:[]},v(t=this.h=new Si,0,1,n=new N),y(this.h,2,.5),y(this.h,3,.3)}get baseOptions(){return A(this.h,N,1)}set baseOptions(t){v(this.h,0,1,t)}o(t){return"minDetectionConfidence"in t&&y(this.h,2,t.minDetectionConfidence??.5),"minSuppressionThreshold"in t&&y(this.h,3,t.minSuppressionThreshold??.3),this.l(t)}F(t,n){return this.j={detections:[]},bt(this,t,n),this.j}G(t,n,r){return this.j={detections:[]},Nt(this,t,r,n),this.j}m(){var t=new dt;C(t,"image_in"),C(t,"norm_rect_in"),b(t,"detections");let n=new ft;Ct(n,F3,this.h);let r=new nt;ut(r,2,"mediapipe.tasks.vision.face_detector.FaceDetectorGraph"),I(r,"IMAGE:image_in"),I(r,"NORM_RECT:norm_rect_in"),w(r,"DETECTIONS:detections"),r.o(n),vt(t,r),this.g.attachProtoVectorListener("detections",((i,s)=>{for(let o of i)i=I2(o),this.j.detections.push(n1(i));f(this,s)})),this.g.attachEmptyPacketListener("detections",(i=>{f(this,i)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}},a(Mn,"pc"),Mn);pt.prototype.detectForVideo=pt.prototype.G,pt.prototype.detect=pt.prototype.F,pt.prototype.setOptions=pt.prototype.o,pt.createFromModelPath=async function(e,t){return T(pt,e,{baseOptions:{modelAssetPath:t}})},pt.createFromModelBuffer=function(e,t){return T(pt,e,{baseOptions:{modelAssetBuffer:t}})},pt.createFromOptions=function(e,t){return T(pt,e,t)};var $s=Tt([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]),Js=Tt([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]),Zs=Tt([276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]),l1=Tt([474,475],[475,476],[476,477],[477,474]),Qs=Tt([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]),to=Tt([46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]),f1=Tt([469,470],[470,471],[471,472],[472,469]),eo=Tt([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]),d1=[...$s,...Js,...Zs,...Qs,...to,...eo],p1=Tt([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]);function sa(e){e.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]}}a(sa,"kc");var Pn,O=(Pn=class extends lt{constructor(t,n){super(new At(t,n),"image_in","norm_rect",!1),this.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]},this.outputFacialTransformationMatrixes=this.outputFaceBlendshapes=!1,v(t=this.h=new D2,0,1,n=new N),this.A=new U2,v(this.h,0,3,this.A),this.u=new Si,v(this.h,0,2,this.u),Vt(this.u,4,1),y(this.u,2,.5),y(this.A,2,.5),y(this.h,4,.5)}get baseOptions(){return A(this.h,N,1)}set baseOptions(t){v(this.h,0,1,t)}o(t){return"numFaces"in t&&Vt(this.u,4,t.numFaces??1),"minFaceDetectionConfidence"in t&&y(this.u,2,t.minFaceDetectionConfidence??.5),"minTrackingConfidence"in t&&y(this.h,4,t.minTrackingConfidence??.5),"minFacePresenceConfidence"in t&&y(this.A,2,t.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in t&&(this.outputFaceBlendshapes=!!t.outputFaceBlendshapes),"outputFacialTransformationMatrixes"in t&&(this.outputFacialTransformationMatrixes=!!t.outputFacialTransformationMatrixes),this.l(t)}F(t,n){return sa(this),bt(this,t,n),this.j}G(t,n,r){return sa(this),Nt(this,t,r,n),this.j}m(){var t=new dt;C(t,"image_in"),C(t,"norm_rect"),b(t,"face_landmarks");let n=new ft;Ct(n,P3,this.h);let r=new nt;ut(r,2,"mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"),I(r,"IMAGE:image_in"),I(r,"NORM_RECT:norm_rect"),w(r,"NORM_LANDMARKS:face_landmarks"),r.o(n),vt(t,r),this.g.attachProtoVectorListener("face_landmarks",((i,s)=>{for(let o of i)i=Br(o),this.j.faceLandmarks.push(xi(i));f(this,s)})),this.g.attachEmptyPacketListener("face_landmarks",(i=>{f(this,i)})),this.outputFaceBlendshapes&&(b(t,"blendshapes"),w(r,"BLENDSHAPES:blendshapes"),this.g.attachProtoVectorListener("blendshapes",((i,s)=>{if(this.outputFaceBlendshapes)for(let o of i)i=ki(o),this.j.faceBlendshapes.push(zs(i.g()??[]));f(this,s)})),this.g.attachEmptyPacketListener("blendshapes",(i=>{f(this,i)}))),this.outputFacialTransformationMatrixes&&(b(t,"face_geometry"),w(r,"FACE_GEOMETRY:face_geometry"),this.g.attachProtoVectorListener("face_geometry",((i,s)=>{if(this.outputFacialTransformationMatrixes)for(let o of i)(i=A(i=M3(o),A3,2))&&this.j.facialTransformationMatrixes.push({rows:yt(i,1)??0??0,columns:yt(i,2)??0??0,data:te(i,3,Rt,Qt()).slice()??[]});f(this,s)})),this.g.attachEmptyPacketListener("face_geometry",(i=>{f(this,i)}))),t=t.g(),this.setGraph(new Uint8Array(t),!0)}},a(Pn,"Sc"),Pn);O.prototype.detectForVideo=O.prototype.G,O.prototype.detect=O.prototype.F,O.prototype.setOptions=O.prototype.o,O.createFromModelPath=function(e,t){return T(O,e,{baseOptions:{modelAssetPath:t}})},O.createFromModelBuffer=function(e,t){return T(O,e,{baseOptions:{modelAssetBuffer:t}})},O.createFromOptions=function(e,t){return T(O,e,t)},O.FACE_LANDMARKS_LIPS=$s,O.FACE_LANDMARKS_LEFT_EYE=Js,O.FACE_LANDMARKS_LEFT_EYEBROW=Zs,O.FACE_LANDMARKS_LEFT_IRIS=l1,O.FACE_LANDMARKS_RIGHT_EYE=Qs,O.FACE_LANDMARKS_RIGHT_EYEBROW=to,O.FACE_LANDMARKS_RIGHT_IRIS=f1,O.FACE_LANDMARKS_FACE_OVAL=eo,O.FACE_LANDMARKS_CONTOURS=d1,O.FACE_LANDMARKS_TESSELATION=p1;var no=Tt([0,1],[1,2],[2,3],[3,4],[0,5],[5,6],[6,7],[7,8],[5,9],[9,10],[10,11],[11,12],[9,13],[13,14],[14,15],[15,16],[13,17],[0,17],[17,18],[18,19],[19,20]);function oa(e){e.gestures=[],e.landmarks=[],e.worldLandmarks=[],e.handedness=[]}a(oa,"Lc");function aa(e){return e.gestures.length===0?{gestures:[],landmarks:[],worldLandmarks:[],handedness:[],handednesses:[]}:{gestures:e.gestures,landmarks:e.landmarks,worldLandmarks:e.worldLandmarks,handedness:e.handedness,handednesses:e.handedness}}a(aa,"Rc");function ca(e,t=!0){let n=[];for(let i of e){var r=ki(i);e=[];for(let s of r.g())r=t&&yt(s,1)!=null?yt(s,1)??0:-1,e.push({score:U(s,2)??0,index:r,categoryName:Y(M(s,3))??""??"",displayName:Y(M(s,4))??""??""});n.push(e)}return n}a(ca,"Ic");var Cn,rt=(Cn=class extends lt{constructor(t,n){super(new At(t,n),"image_in","norm_rect",!1),this.gestures=[],this.landmarks=[],this.worldLandmarks=[],this.handedness=[],v(t=this.j=new j2,0,1,n=new N),this.u=new Vs,v(this.j,0,2,this.u),this.D=new js,v(this.u,0,3,this.D),this.A=new G2,v(this.u,0,2,this.A),this.h=new C3,v(this.j,0,3,this.h),y(this.A,2,.5),y(this.u,4,.5),y(this.D,2,.5)}get baseOptions(){return A(this.j,N,1)}set baseOptions(t){v(this.j,0,1,t)}o(t){if(Vt(this.A,3,t.numHands??1),"minHandDetectionConfidence"in t&&y(this.A,2,t.minHandDetectionConfidence??.5),"minTrackingConfidence"in t&&y(this.u,4,t.minTrackingConfidence??.5),"minHandPresenceConfidence"in t&&y(this.D,2,t.minHandPresenceConfidence??.5),t.cannedGesturesClassifierOptions){var n=new pe,r=n,i=Qi(t.cannedGesturesClassifierOptions,A(this.h,pe,3)?.l());v(r,0,2,i),v(this.h,0,3,n)}else t.cannedGesturesClassifierOptions===void 0&&A(this.h,pe,3)?.g();return t.customGesturesClassifierOptions?(v(r=n=new pe,0,2,i=Qi(t.customGesturesClassifierOptions,A(this.h,pe,4)?.l())),v(this.h,0,4,n)):t.customGesturesClassifierOptions===void 0&&A(this.h,pe,4)?.g(),this.l(t)}Ha(t,n){return oa(this),bt(this,t,n),aa(this)}Ia(t,n,r){return oa(this),Nt(this,t,r,n),aa(this)}m(){var t=new dt;C(t,"image_in"),C(t,"norm_rect"),b(t,"hand_gestures"),b(t,"hand_landmarks"),b(t,"world_hand_landmarks"),b(t,"handedness");let n=new ft;Ct(n,O3,this.j);let r=new nt;ut(r,2,"mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"),I(r,"IMAGE:image_in"),I(r,"NORM_RECT:norm_rect"),w(r,"HAND_GESTURES:hand_gestures"),w(r,"LANDMARKS:hand_landmarks"),w(r,"WORLD_LANDMARKS:world_hand_landmarks"),w(r,"HANDEDNESS:handedness"),r.o(n),vt(t,r),this.g.attachProtoVectorListener("hand_landmarks",((i,s)=>{for(let o of i){i=Br(o);let c=[];for(let h of jt(i,M2,1))c.push({x:U(h,1)??0,y:U(h,2)??0,z:U(h,3)??0,visibility:U(h,4)??0});this.landmarks.push(c)}f(this,s)})),this.g.attachEmptyPacketListener("hand_landmarks",(i=>{f(this,i)})),this.g.attachProtoVectorListener("world_hand_landmarks",((i,s)=>{for(let o of i){i=ye(o);let c=[];for(let h of jt(i,F2,1))c.push({x:U(h,1)??0,y:U(h,2)??0,z:U(h,3)??0,visibility:U(h,4)??0});this.worldLandmarks.push(c)}f(this,s)})),this.g.attachEmptyPacketListener("world_hand_landmarks",(i=>{f(this,i)})),this.g.attachProtoVectorListener("hand_gestures",((i,s)=>{this.gestures.push(...ca(i,!1)),f(this,s)})),this.g.attachEmptyPacketListener("hand_gestures",(i=>{f(this,i)})),this.g.attachProtoVectorListener("handedness",((i,s)=>{this.handedness.push(...ca(i)),f(this,s)})),this.g.attachEmptyPacketListener("handedness",(i=>{f(this,i)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}},a(Cn,"Fc"),Cn);function ha(e){return{landmarks:e.landmarks,worldLandmarks:e.worldLandmarks,handednesses:e.handedness,handedness:e.handedness}}a(ha,"Mc");rt.prototype.recognizeForVideo=rt.prototype.Ia,rt.prototype.recognize=rt.prototype.Ha,rt.prototype.setOptions=rt.prototype.o,rt.createFromModelPath=function(e,t){return T(rt,e,{baseOptions:{modelAssetPath:t}})},rt.createFromModelBuffer=function(e,t){return T(rt,e,{baseOptions:{modelAssetBuffer:t}})},rt.createFromOptions=function(e,t){return T(rt,e,t)},rt.HAND_CONNECTIONS=no;var On,it=(On=class extends lt{constructor(t,n){super(new At(t,n),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.handedness=[],v(t=this.h=new Vs,0,1,n=new N),this.u=new js,v(this.h,0,3,this.u),this.j=new G2,v(this.h,0,2,this.j),Vt(this.j,3,1),y(this.j,2,.5),y(this.u,2,.5),y(this.h,4,.5)}get baseOptions(){return A(this.h,N,1)}set baseOptions(t){v(this.h,0,1,t)}o(t){return"numHands"in t&&Vt(this.j,3,t.numHands??1),"minHandDetectionConfidence"in t&&y(this.j,2,t.minHandDetectionConfidence??.5),"minTrackingConfidence"in t&&y(this.h,4,t.minTrackingConfidence??.5),"minHandPresenceConfidence"in t&&y(this.u,2,t.minHandPresenceConfidence??.5),this.l(t)}F(t,n){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],bt(this,t,n),ha(this)}G(t,n,r){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],Nt(this,t,r,n),ha(this)}m(){var t=new dt;C(t,"image_in"),C(t,"norm_rect"),b(t,"hand_landmarks"),b(t,"world_hand_landmarks"),b(t,"handedness");let n=new ft;Ct(n,N3,this.h);let r=new nt;ut(r,2,"mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"),I(r,"IMAGE:image_in"),I(r,"NORM_RECT:norm_rect"),w(r,"LANDMARKS:hand_landmarks"),w(r,"WORLD_LANDMARKS:world_hand_landmarks"),w(r,"HANDEDNESS:handedness"),r.o(n),vt(t,r),this.g.attachProtoVectorListener("hand_landmarks",((i,s)=>{for(let o of i)i=Br(o),this.landmarks.push(xi(i));f(this,s)})),this.g.attachEmptyPacketListener("hand_landmarks",(i=>{f(this,i)})),this.g.attachProtoVectorListener("world_hand_landmarks",((i,s)=>{for(let o of i)i=ye(o),this.worldLandmarks.push(Sr(i));f(this,s)})),this.g.attachEmptyPacketListener("world_hand_landmarks",(i=>{f(this,i)})),this.g.attachProtoVectorListener("handedness",((i,s)=>{var o=this.handedness,c=o.push;let h=[];for(let l of i){i=ki(l);let u=[];for(let _ of i.g())u.push({score:U(_,2)??0,index:yt(_,1)??0??-1,categoryName:Y(M(_,3))??""??"",displayName:Y(M(_,4))??""??""});h.push(u)}c.call(o,...h),f(this,s)})),this.g.attachEmptyPacketListener("handedness",(i=>{f(this,i)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}},a(On,"Pc"),On);it.prototype.detectForVideo=it.prototype.G,it.prototype.detect=it.prototype.F,it.prototype.setOptions=it.prototype.o,it.createFromModelPath=function(e,t){return T(it,e,{baseOptions:{modelAssetPath:t}})},it.createFromModelBuffer=function(e,t){return T(it,e,{baseOptions:{modelAssetBuffer:t}})},it.createFromOptions=function(e,t){return T(it,e,t)},it.HAND_CONNECTIONS=no;var g1=Tt([0,1],[1,2],[2,3],[3,7],[0,4],[4,5],[5,6],[6,8],[9,10],[11,12],[11,13],[13,15],[15,17],[15,19],[15,21],[17,19],[12,14],[14,16],[16,18],[16,20],[16,22],[18,20],[11,23],[12,24],[23,24],[23,25],[24,26],[25,27],[26,28],[27,29],[28,30],[29,31],[30,32],[27,31],[28,32]);function ua(e){e.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]}}a(ua,"Oc");function la(e){try{if(!e.D)return e.h;e.D(e.h)}finally{Ri(e)}}a(la,"Nc");function Yr(e,t){e=Br(e),t.push(xi(e))}a(Yr,"Uc");var Nn,L=(Nn=class extends lt{constructor(t,n){super(new At(t,n),"input_frames_image",null,!1),this.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]},this.outputPoseSegmentationMasks=this.outputFaceBlendshapes=!1,v(t=this.j=new z2,0,1,n=new N),this.I=new js,v(this.j,0,2,this.I),this.W=new U3,v(this.j,0,3,this.W),this.u=new Si,v(this.j,0,4,this.u),this.O=new U2,v(this.j,0,5,this.O),this.A=new H2,v(this.j,0,6,this.A),this.M=new W2,v(this.j,0,7,this.M),y(this.u,2,.5),y(this.u,3,.3),y(this.O,2,.5),y(this.A,2,.5),y(this.A,3,.3),y(this.M,2,.5),y(this.I,2,.5)}get baseOptions(){return A(this.j,N,1)}set baseOptions(t){v(this.j,0,1,t)}o(t){return"minFaceDetectionConfidence"in t&&y(this.u,2,t.minFaceDetectionConfidence??.5),"minFaceSuppressionThreshold"in t&&y(this.u,3,t.minFaceSuppressionThreshold??.3),"minFacePresenceConfidence"in t&&y(this.O,2,t.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in t&&(this.outputFaceBlendshapes=!!t.outputFaceBlendshapes),"minPoseDetectionConfidence"in t&&y(this.A,2,t.minPoseDetectionConfidence??.5),"minPoseSuppressionThreshold"in t&&y(this.A,3,t.minPoseSuppressionThreshold??.3),"minPosePresenceConfidence"in t&&y(this.M,2,t.minPosePresenceConfidence??.5),"outputPoseSegmentationMasks"in t&&(this.outputPoseSegmentationMasks=!!t.outputPoseSegmentationMasks),"minHandLandmarksConfidence"in t&&y(this.I,2,t.minHandLandmarksConfidence??.5),this.l(t)}F(t,n,r){let i=typeof n!="function"?n:{};return this.D=typeof n=="function"?n:r,ua(this),bt(this,t,i),la(this)}G(t,n,r,i){let s=typeof r!="function"?r:{};return this.D=typeof r=="function"?r:i,ua(this),Nt(this,t,s,n),la(this)}m(){var t=new dt;C(t,"input_frames_image"),b(t,"pose_landmarks"),b(t,"pose_world_landmarks"),b(t,"face_landmarks"),b(t,"left_hand_landmarks"),b(t,"left_hand_world_landmarks"),b(t,"right_hand_landmarks"),b(t,"right_hand_world_landmarks");let n=new ft,r=new Ro;ut(r,1,"type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"),(function(s,o){if(o!=null)if(Array.isArray(o))S(s,2,di(o,0,Ir));else{if(!(typeof o=="string"||o instanceof It||as(o)))throw Error("invalid value in Any.value field: "+o+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");zt(s,2,hs(o,!1),oe())}})(r,this.j.g());let i=new nt;ut(i,2,"mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"),As(i,8,Ro,r),I(i,"IMAGE:input_frames_image"),w(i,"POSE_LANDMARKS:pose_landmarks"),w(i,"POSE_WORLD_LANDMARKS:pose_world_landmarks"),w(i,"FACE_LANDMARKS:face_landmarks"),w(i,"LEFT_HAND_LANDMARKS:left_hand_landmarks"),w(i,"LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"),w(i,"RIGHT_HAND_LANDMARKS:right_hand_landmarks"),w(i,"RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"),i.o(n),vt(t,i),Li(this,t),this.g.attachProtoListener("pose_landmarks",((s,o)=>{Yr(s,this.h.poseLandmarks),f(this,o)})),this.g.attachEmptyPacketListener("pose_landmarks",(s=>{f(this,s)})),this.g.attachProtoListener("pose_world_landmarks",((s,o)=>{var c=this.h.poseWorldLandmarks;s=ye(s),c.push(Sr(s)),f(this,o)})),this.g.attachEmptyPacketListener("pose_world_landmarks",(s=>{f(this,s)})),this.outputPoseSegmentationMasks&&(w(i,"POSE_SEGMENTATION_MASK:pose_segmentation_mask"),tr(this,"pose_segmentation_mask"),this.g.Z("pose_segmentation_mask",((s,o)=>{this.h.poseSegmentationMasks=[rr(this,s,!0,!this.D)],f(this,o)})),this.g.attachEmptyPacketListener("pose_segmentation_mask",(s=>{this.h.poseSegmentationMasks=[],f(this,s)}))),this.g.attachProtoListener("face_landmarks",((s,o)=>{Yr(s,this.h.faceLandmarks),f(this,o)})),this.g.attachEmptyPacketListener("face_landmarks",(s=>{f(this,s)})),this.outputFaceBlendshapes&&(b(t,"extra_blendshapes"),w(i,"FACE_BLENDSHAPES:extra_blendshapes"),this.g.attachProtoListener("extra_blendshapes",((s,o)=>{var c=this.h.faceBlendshapes;this.outputFaceBlendshapes&&(s=ki(s),c.push(zs(s.g()??[]))),f(this,o)})),this.g.attachEmptyPacketListener("extra_blendshapes",(s=>{f(this,s)}))),this.g.attachProtoListener("left_hand_landmarks",((s,o)=>{Yr(s,this.h.leftHandLandmarks),f(this,o)})),this.g.attachEmptyPacketListener("left_hand_landmarks",(s=>{f(this,s)})),this.g.attachProtoListener("left_hand_world_landmarks",((s,o)=>{var c=this.h.leftHandWorldLandmarks;s=ye(s),c.push(Sr(s)),f(this,o)})),this.g.attachEmptyPacketListener("left_hand_world_landmarks",(s=>{f(this,s)})),this.g.attachProtoListener("right_hand_landmarks",((s,o)=>{Yr(s,this.h.rightHandLandmarks),f(this,o)})),this.g.attachEmptyPacketListener("right_hand_landmarks",(s=>{f(this,s)})),this.g.attachProtoListener("right_hand_world_landmarks",((s,o)=>{var c=this.h.rightHandWorldLandmarks;s=ye(s),c.push(Sr(s)),f(this,o)})),this.g.attachEmptyPacketListener("right_hand_world_landmarks",(s=>{f(this,s)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}},a(Nn,"Dc"),Nn);L.prototype.detectForVideo=L.prototype.G,L.prototype.detect=L.prototype.F,L.prototype.setOptions=L.prototype.o,L.createFromModelPath=function(e,t){return T(L,e,{baseOptions:{modelAssetPath:t}})},L.createFromModelBuffer=function(e,t){return T(L,e,{baseOptions:{modelAssetBuffer:t}})},L.createFromOptions=function(e,t){return T(L,e,t)},L.HAND_CONNECTIONS=no,L.POSE_CONNECTIONS=g1,L.FACE_LANDMARKS_LIPS=$s,L.FACE_LANDMARKS_LEFT_EYE=Js,L.FACE_LANDMARKS_LEFT_EYEBROW=Zs,L.FACE_LANDMARKS_LEFT_IRIS=l1,L.FACE_LANDMARKS_RIGHT_EYE=Qs,L.FACE_LANDMARKS_RIGHT_EYEBROW=to,L.FACE_LANDMARKS_RIGHT_IRIS=f1,L.FACE_LANDMARKS_FACE_OVAL=eo,L.FACE_LANDMARKS_CONTOURS=d1,L.FACE_LANDMARKS_TESSELATION=p1;var Un,gt=(Un=class extends lt{constructor(t,n){super(new At(t,n),"input_image","norm_rect",!0),this.j={classifications:[]},v(t=this.h=new K2,0,1,n=new N)}get baseOptions(){return A(this.h,N,1)}set baseOptions(t){v(this.h,0,1,t)}o(t){return v(this.h,0,2,Qi(t,A(this.h,Bs,2))),this.l(t)}sa(t,n){return this.j={classifications:[]},bt(this,t,n),this.j}ta(t,n,r){return this.j={classifications:[]},Nt(this,t,r,n),this.j}m(){var t=new dt;C(t,"input_image"),C(t,"norm_rect"),b(t,"classifications");let n=new ft;Ct(n,D3,this.h);let r=new nt;ut(r,2,"mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"),I(r,"IMAGE:input_image"),I(r,"NORM_RECT:norm_rect"),w(r,"CLASSIFICATIONS:classifications"),r.o(n),vt(t,r),this.g.attachProtoListener("classifications",((i,s)=>{this.j=H3(S3(i)),f(this,s)})),this.g.attachEmptyPacketListener("classifications",(i=>{f(this,i)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}},a(Un,"Bc"),Un);gt.prototype.classifyForVideo=gt.prototype.ta,gt.prototype.classify=gt.prototype.sa,gt.prototype.setOptions=gt.prototype.o,gt.createFromModelPath=function(e,t){return T(gt,e,{baseOptions:{modelAssetPath:t}})},gt.createFromModelBuffer=function(e,t){return T(gt,e,{baseOptions:{modelAssetBuffer:t}})},gt.createFromOptions=function(e,t){return T(gt,e,t)};var Dn,st=(Dn=class extends lt{constructor(t,n){super(new At(t,n),"image_in","norm_rect",!0),this.h=new Y2,this.embeddings={embeddings:[]},v(t=this.h,0,1,n=new N)}get baseOptions(){return A(this.h,N,1)}set baseOptions(t){v(this.h,0,1,t)}o(t){var n=this.h,r=A(this.h,Do,2);return r=r?r.clone():new Do,t.l2Normalize!==void 0?S(r,1,Rr(t.l2Normalize)):"l2Normalize"in t&&S(r,1),t.quantize!==void 0?S(r,2,Rr(t.quantize)):"quantize"in t&&S(r,2),v(n,0,2,r),this.l(t)}za(t,n){return bt(this,t,n),this.embeddings}Aa(t,n,r){return Nt(this,t,r,n),this.embeddings}m(){var t=new dt;C(t,"image_in"),C(t,"norm_rect"),b(t,"embeddings_out");let n=new ft;Ct(n,B3,this.h);let r=new nt;ut(r,2,"mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"),I(r,"IMAGE:image_in"),I(r,"NORM_RECT:norm_rect"),w(r,"EMBEDDINGS:embeddings_out"),r.o(n),vt(t,r),this.g.attachProtoListener("embeddings_out",((i,s)=>{i=R3(i),this.embeddings=(function(o){return{embeddings:jt(o,L3,1).map((c=>{let h={headIndex:yt(c,3)??0??-1,headName:Y(M(c,4))??""??""};var l=c.v;return Wa(l,0|l[p],Uo,Ci(c,1))!==void 0?(c=te(c=A(c,Uo,Ci(c,1),void 0),1,Rt,Qt()),h.floatEmbedding=c.slice()):(l=new Uint8Array(0),h.quantizedEmbedding=A(c,x3,Ci(c,2),void 0)?.na()?.h()??l),h})),timestampMs:e1(M(o,2,void 0,void 0,ti)??Ga)}})(i),f(this,s)})),this.g.attachEmptyPacketListener("embeddings_out",(i=>{f(this,i)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}},a(Dn,"Gc"),Dn);st.cosineSimilarity=function(e,t){if(e.floatEmbedding&&t.floatEmbedding)e=Ho(e.floatEmbedding,t.floatEmbedding);else{if(!e.quantizedEmbedding||!t.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");e=Ho(Xo(e.quantizedEmbedding),Xo(t.quantizedEmbedding))}return e},st.prototype.embedForVideo=st.prototype.Aa,st.prototype.embed=st.prototype.za,st.prototype.setOptions=st.prototype.o,st.createFromModelPath=function(e,t){return T(st,e,{baseOptions:{modelAssetPath:t}})},st.createFromModelBuffer=function(e,t){return T(st,e,{baseOptions:{modelAssetBuffer:t}})},st.createFromOptions=function(e,t){return T(st,e,t)};var Bn,is=(Bn=class{constructor(t,n,r){this.confidenceMasks=t,this.categoryMask=n,this.qualityScores=r}close(){this.confidenceMasks?.forEach((t=>{t.close()})),this.categoryMask?.close()}},a(Bn,"jc"),Bn);function J3(e){let t=(function(n){return jt(n,nt,1)})(e.ca()).filter((n=>(Y(M(n,1))??"").includes("mediapipe.tasks.TensorsToSegmentationCalculator")));if(e.u=[],t.length>1)throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");t.length===1&&(A(t[0],ft,7)?.j()?.g()??new Map).forEach(((n,r)=>{e.u[Number(r)]=Y(M(n,1))??""}))}a(J3,"Vc");function fa(e){e.categoryMask=void 0,e.confidenceMasks=void 0,e.qualityScores=void 0}a(fa,"Xc");function da(e){try{let t=new is(e.confidenceMasks,e.categoryMask,e.qualityScores);if(!e.j)return t;e.j(t)}finally{Ri(e)}}a(da,"Hc");is.prototype.close=is.prototype.close;var Gn,et=(Gn=class extends lt{constructor(t,n){super(new At(t,n),"image_in","norm_rect",!1),this.u=[],this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new Ws,this.A=new q2,v(this.h,0,3,this.A),v(t=this.h,0,1,n=new N)}get baseOptions(){return A(this.h,N,1)}set baseOptions(t){v(this.h,0,1,t)}o(t){return t.displayNamesLocale!==void 0?S(this.h,2,Nr(t.displayNamesLocale)):"displayNamesLocale"in t&&S(this.h,2),"outputCategoryMask"in t&&(this.outputCategoryMask=t.outputCategoryMask??!1),"outputConfidenceMasks"in t&&(this.outputConfidenceMasks=t.outputConfidenceMasks??!0),super.l(t)}L(){J3(this)}segment(t,n,r){let i=typeof n!="function"?n:{};return this.j=typeof n=="function"?n:r,fa(this),bt(this,t,i),da(this)}La(t,n,r,i){let s=typeof r!="function"?r:{};return this.j=typeof r=="function"?r:i,fa(this),Nt(this,t,s,n),da(this)}Da(){return this.u}m(){var t=new dt;C(t,"image_in"),C(t,"norm_rect");let n=new ft;Ct(n,J2,this.h);let r=new nt;ut(r,2,"mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"),I(r,"IMAGE:image_in"),I(r,"NORM_RECT:norm_rect"),r.o(n),vt(t,r),Li(this,t),this.outputConfidenceMasks&&(b(t,"confidence_masks"),w(r,"CONFIDENCE_MASKS:confidence_masks"),tr(this,"confidence_masks"),this.g.aa("confidence_masks",((i,s)=>{this.confidenceMasks=i.map((o=>rr(this,o,!0,!this.j))),f(this,s)})),this.g.attachEmptyPacketListener("confidence_masks",(i=>{this.confidenceMasks=[],f(this,i)}))),this.outputCategoryMask&&(b(t,"category_mask"),w(r,"CATEGORY_MASK:category_mask"),tr(this,"category_mask"),this.g.Z("category_mask",((i,s)=>{this.categoryMask=rr(this,i,!1,!this.j),f(this,s)})),this.g.attachEmptyPacketListener("category_mask",(i=>{this.categoryMask=void 0,f(this,i)}))),b(t,"quality_scores"),w(r,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",((i,s)=>{this.qualityScores=i,f(this,s)})),this.g.attachEmptyPacketListener("quality_scores",(i=>{this.categoryMask=void 0,f(this,i)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}},a(Gn,"Wc"),Gn);et.prototype.getLabels=et.prototype.Da,et.prototype.segmentForVideo=et.prototype.La,et.prototype.segment=et.prototype.segment,et.prototype.setOptions=et.prototype.o,et.createFromModelPath=function(e,t){return T(et,e,{baseOptions:{modelAssetPath:t}})},et.createFromModelBuffer=function(e,t){return T(et,e,{baseOptions:{modelAssetBuffer:t}})},et.createFromOptions=function(e,t){return T(et,e,t)};var jn,ss=(jn=class{constructor(t,n,r){this.confidenceMasks=t,this.categoryMask=n,this.qualityScores=r}close(){this.confidenceMasks?.forEach((t=>{t.close()})),this.categoryMask?.close()}},a(jn,"zc"),jn);ss.prototype.close=ss.prototype.close;var Vn,xt=(Vn=class extends lt{constructor(t,n){super(new At(t,n),"image_in","norm_rect_in",!1),this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new Ws,this.u=new q2,v(this.h,0,3,this.u),v(t=this.h,0,1,n=new N)}get baseOptions(){return A(this.h,N,1)}set baseOptions(t){v(this.h,0,1,t)}o(t){return"outputCategoryMask"in t&&(this.outputCategoryMask=t.outputCategoryMask??!1),"outputConfidenceMasks"in t&&(this.outputConfidenceMasks=t.outputConfidenceMasks??!0),super.l(t)}segment(t,n,r,i){let s=typeof r!="function"?r:{};if(this.j=typeof r=="function"?r:i,this.qualityScores=this.categoryMask=this.confidenceMasks=void 0,r=this.C+1,i=new Z2,n.keypoint&&n.scribble)throw Error("Cannot provide both keypoint and scribble.");if(n.keypoint){var o=new Di;zt(o,3,Rr(!0),!1),zt(o,1,wr(n.keypoint.x),0),zt(o,2,wr(n.keypoint.y),0),br(i,1,Zi,o)}else{if(!n.scribble)throw Error("Must provide either a keypoint or a scribble.");{let h=new j3;for(o of n.scribble)zt(n=new Di,3,Rr(!0),!1),zt(n,1,wr(o.x),0),zt(n,2,wr(o.y),0),As(h,1,Di,n);br(i,2,Zi,h)}}this.g.addProtoToStream(i.g(),"mediapipe.tasks.vision.interactive_segmenter.proto.RegionOfInterest","roi_in",r),bt(this,t,s);t:{try{let h=new ss(this.confidenceMasks,this.categoryMask,this.qualityScores);if(!this.j){var c=h;break t}this.j(h)}finally{Ri(this)}c=void 0}return c}m(){var t=new dt;C(t,"image_in"),C(t,"roi_in"),C(t,"norm_rect_in");let n=new ft;Ct(n,J2,this.h);let r=new nt;ut(r,2,"mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraphV2"),I(r,"IMAGE:image_in"),I(r,"ROI:roi_in"),I(r,"NORM_RECT:norm_rect_in"),r.o(n),vt(t,r),Li(this,t),this.outputConfidenceMasks&&(b(t,"confidence_masks"),w(r,"CONFIDENCE_MASKS:confidence_masks"),tr(this,"confidence_masks"),this.g.aa("confidence_masks",((i,s)=>{this.confidenceMasks=i.map((o=>rr(this,o,!0,!this.j))),f(this,s)})),this.g.attachEmptyPacketListener("confidence_masks",(i=>{this.confidenceMasks=[],f(this,i)}))),this.outputCategoryMask&&(b(t,"category_mask"),w(r,"CATEGORY_MASK:category_mask"),tr(this,"category_mask"),this.g.Z("category_mask",((i,s)=>{this.categoryMask=rr(this,i,!1,!this.j),f(this,s)})),this.g.attachEmptyPacketListener("category_mask",(i=>{this.categoryMask=void 0,f(this,i)}))),b(t,"quality_scores"),w(r,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",((i,s)=>{this.qualityScores=i,f(this,s)})),this.g.attachEmptyPacketListener("quality_scores",(i=>{this.categoryMask=void 0,f(this,i)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}},a(Vn,"Kc"),Vn);xt.prototype.segment=xt.prototype.segment,xt.prototype.setOptions=xt.prototype.o,xt.createFromModelPath=function(e,t){return T(xt,e,{baseOptions:{modelAssetPath:t}})},xt.createFromModelBuffer=function(e,t){return T(xt,e,{baseOptions:{modelAssetBuffer:t}})},xt.createFromOptions=function(e,t){return T(xt,e,t)};var Xn,mt=(Xn=class extends lt{constructor(t,n){super(new At(t,n),"input_frame_gpu","norm_rect",!1),this.j={detections:[]},v(t=this.h=new Q2,0,1,n=new N)}get baseOptions(){return A(this.h,N,1)}set baseOptions(t){v(this.h,0,1,t)}o(t){return t.displayNamesLocale!==void 0?S(this.h,2,Nr(t.displayNamesLocale)):"displayNamesLocale"in t&&S(this.h,2),t.maxResults!==void 0?Vt(this.h,3,t.maxResults):"maxResults"in t&&S(this.h,3),t.scoreThreshold!==void 0?y(this.h,4,t.scoreThreshold):"scoreThreshold"in t&&S(this.h,4),t.categoryAllowlist!==void 0?ni(this.h,5,t.categoryAllowlist):"categoryAllowlist"in t&&S(this.h,5),t.categoryDenylist!==void 0?ni(this.h,6,t.categoryDenylist):"categoryDenylist"in t&&S(this.h,6),this.l(t)}F(t,n){return this.j={detections:[]},bt(this,t,n),this.j}G(t,n,r){return this.j={detections:[]},Nt(this,t,r,n),this.j}m(){var t=new dt;C(t,"input_frame_gpu"),C(t,"norm_rect"),b(t,"detections");let n=new ft;Ct(n,V3,this.h);let r=new nt;ut(r,2,"mediapipe.tasks.vision.ObjectDetectorGraph"),I(r,"IMAGE:input_frame_gpu"),I(r,"NORM_RECT:norm_rect"),w(r,"DETECTIONS:detections"),r.o(n),vt(t,r),this.g.attachProtoVectorListener("detections",((i,s)=>{for(let o of i)i=I2(o),this.j.detections.push(n1(i));f(this,s)})),this.g.attachEmptyPacketListener("detections",(i=>{f(this,i)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}},a(Xn,"Yc"),Xn);mt.prototype.detectForVideo=mt.prototype.G,mt.prototype.detect=mt.prototype.F,mt.prototype.setOptions=mt.prototype.o,mt.createFromModelPath=async function(e,t){return T(mt,e,{baseOptions:{modelAssetPath:t}})},mt.createFromModelBuffer=function(e,t){return T(mt,e,{baseOptions:{modelAssetBuffer:t}})},mt.createFromOptions=function(e,t){return T(mt,e,t)};var Hn,os=(Hn=class{constructor(t,n,r){this.landmarks=t,this.worldLandmarks=n,this.segmentationMasks=r}close(){this.segmentationMasks?.forEach((t=>{t.close()}))}},a(Hn,"qc"),Hn);function pa(e){e.landmarks=[],e.worldLandmarks=[],e.segmentationMasks=void 0}a(pa,"$c");function ga(e){try{let t=new os(e.landmarks,e.worldLandmarks,e.segmentationMasks);if(!e.u)return t;e.u(t)}finally{Ri(e)}}a(ga,"Jc");os.prototype.close=os.prototype.close;var Wn,ot=(Wn=class extends lt{constructor(t,n){super(new At(t,n),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.outputSegmentationMasks=!1,v(t=this.h=new t1,0,1,n=new N),this.A=new W2,v(this.h,0,3,this.A),this.j=new H2,v(this.h,0,2,this.j),Vt(this.j,4,1),y(this.j,2,.5),y(this.A,2,.5),y(this.h,4,.5)}get baseOptions(){return A(this.h,N,1)}set baseOptions(t){v(this.h,0,1,t)}o(t){return"numPoses"in t&&Vt(this.j,4,t.numPoses??1),"minPoseDetectionConfidence"in t&&y(this.j,2,t.minPoseDetectionConfidence??.5),"minTrackingConfidence"in t&&y(this.h,4,t.minTrackingConfidence??.5),"minPosePresenceConfidence"in t&&y(this.A,2,t.minPosePresenceConfidence??.5),"outputSegmentationMasks"in t&&(this.outputSegmentationMasks=t.outputSegmentationMasks??!1),this.l(t)}F(t,n,r){let i=typeof n!="function"?n:{};return this.u=typeof n=="function"?n:r,pa(this),bt(this,t,i),ga(this)}G(t,n,r,i){let s=typeof r!="function"?r:{};return this.u=typeof r=="function"?r:i,pa(this),Nt(this,t,s,n),ga(this)}m(){var t=new dt;C(t,"image_in"),C(t,"norm_rect"),b(t,"normalized_landmarks"),b(t,"world_landmarks"),b(t,"segmentation_masks");let n=new ft;Ct(n,X3,this.h);let r=new nt;ut(r,2,"mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"),I(r,"IMAGE:image_in"),I(r,"NORM_RECT:norm_rect"),w(r,"NORM_LANDMARKS:normalized_landmarks"),w(r,"WORLD_LANDMARKS:world_landmarks"),r.o(n),vt(t,r),Li(this,t),this.g.attachProtoVectorListener("normalized_landmarks",((i,s)=>{this.landmarks=[];for(let o of i)i=Br(o),this.landmarks.push(xi(i));f(this,s)})),this.g.attachEmptyPacketListener("normalized_landmarks",(i=>{this.landmarks=[],f(this,i)})),this.g.attachProtoVectorListener("world_landmarks",((i,s)=>{this.worldLandmarks=[];for(let o of i)i=ye(o),this.worldLandmarks.push(Sr(i));f(this,s)})),this.g.attachEmptyPacketListener("world_landmarks",(i=>{this.worldLandmarks=[],f(this,i)})),this.outputSegmentationMasks&&(w(r,"SEGMENTATION_MASK:segmentation_masks"),tr(this,"segmentation_masks"),this.g.aa("segmentation_masks",((i,s)=>{this.segmentationMasks=i.map((o=>rr(this,o,!0,!this.u))),f(this,s)})),this.g.attachEmptyPacketListener("segmentation_masks",(i=>{this.segmentationMasks=[],f(this,i)}))),t=t.g(),this.setGraph(new Uint8Array(t),!0)}},a(Wn,"Zc"),Wn);ot.prototype.detectForVideo=ot.prototype.G,ot.prototype.detect=ot.prototype.F,ot.prototype.setOptions=ot.prototype.o,ot.createFromModelPath=function(e,t){return T(ot,e,{baseOptions:{modelAssetPath:t}})},ot.createFromModelBuffer=function(e,t){return T(ot,e,{baseOptions:{modelAssetBuffer:t}})},ot.createFromOptions=function(e,t){return T(ot,e,t)},ot.POSE_CONNECTIONS=g1;export{tt as DrawingUtils,pt as FaceDetector,O as FaceLandmarker,_r as FilesetResolver,rt as GestureRecognizer,it as HandLandmarker,L as HolisticLandmarker,gt as ImageClassifier,st as ImageEmbedder,et as ImageSegmenter,is as ImageSegmenterResult,xt as InteractiveSegmenter,ss as InteractiveSegmenterResult,K as MPImage,j as MPMask,mt as ObjectDetector,ot as PoseLandmarker,ts as TaskRunner,lt as VisionTaskRunner};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as e}from"./chunks/chunk-ZKEOHGBY.js";import"./chunks/chunk-7XAIG23G.js";import"./chunks/chunk-IFGPCCJH.js";import"./chunks/chunk-6MEPT5ZS.js";import"./chunks/chunk-562ANROG.js";import"./chunks/chunk-YMGCOMYZ.js";import"./chunks/chunk-2ZVKLBJD.js";import"./chunks/chunk-YEPHU5PX.js";import"./chunks/chunk-2SENV5CV.js";import"./chunks/chunk-OBPBHX2J.js";import"./chunks/chunk-3VYQXVW4.js";import"./chunks/chunk-OIJVTJML.js";import"./chunks/chunk-UYAVCSQ4.js";import"./chunks/chunk-3KIFGAEK.js";import"./chunks/chunk-HODE7UDG.js";import"./chunks/chunk-TCW6XNLI.js";import"./chunks/chunk-UZWMCNZI.js";import"./chunks/chunk-RK4HVNRS.js";import"./chunks/chunk-D334IAZJ.js";import"./chunks/chunk-RRLXNT33.js";import"./chunks/chunk-4FHWXBOB.js";e();export{e as defineSekyroElements};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as r,c as t,d as o,e as i,f as a,g as f}from"./chunks/chunk-ZKEOHGBY.js";import"./chunks/chunk-7XAIG23G.js";import"./chunks/chunk-IFGPCCJH.js";import"./chunks/chunk-6MEPT5ZS.js";import"./chunks/chunk-562ANROG.js";import"./chunks/chunk-YMGCOMYZ.js";import"./chunks/chunk-2ZVKLBJD.js";import{a as n}from"./chunks/chunk-YEPHU5PX.js";import"./chunks/chunk-2SENV5CV.js";import"./chunks/chunk-OBPBHX2J.js";import"./chunks/chunk-3VYQXVW4.js";import"./chunks/chunk-OIJVTJML.js";import"./chunks/chunk-UYAVCSQ4.js";import"./chunks/chunk-3KIFGAEK.js";import"./chunks/chunk-HODE7UDG.js";import"./chunks/chunk-TCW6XNLI.js";import"./chunks/chunk-UZWMCNZI.js";import"./chunks/chunk-RK4HVNRS.js";import"./chunks/chunk-D334IAZJ.js";import"./chunks/chunk-RRLXNT33.js";import"./chunks/chunk-4FHWXBOB.js";export{r as ATTRIBUTES,i as EVENTS,t as PROPERTIES,o as SLOTS,a as SekyroVerificationElement,e as TAG_NAME,n as createVerification,f as defineSekyroElements};
|