File size: 88,355 Bytes
91f5115 402e11d 91f5115 402e11d 710b0cd 402e11d 710b0cd 402e11d 91f5115 710b0cd 81831a4 710b0cd 81831a4 710b0cd 81831a4 710b0cd 91f5115 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const v of document.querySelectorAll('link[rel="modulepreload"]'))_(v);new MutationObserver(v=>{for(const O of v)if(O.type==="childList")for(const S of O.addedNodes)S.tagName==="LINK"&&S.rel==="modulepreload"&&_(S)}).observe(document,{childList:!0,subtree:!0});function p(v){const O={};return v.integrity&&(O.integrity=v.integrity),v.referrerPolicy&&(O.referrerPolicy=v.referrerPolicy),v.crossOrigin==="use-credentials"?O.credentials="include":v.crossOrigin==="anonymous"?O.credentials="omit":O.credentials="same-origin",O}function _(v){if(v.ep)return;v.ep=!0;const O=p(v);fetch(v.href,O)}})();const Bn=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.absolute{position:absolute}.relative{position:relative}.bottom-1{bottom:.25rem}.left-1{left:.25rem}.z-10{z-index:10}.inline{display:inline}.flex{display:flex}.hidden{display:none}.w-32{width:8rem}.w-full{width:100%}.items-end{align-items:flex-end}.rounded-lg{border-radius:.5rem}.bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.font-bold{font-weight:700}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb;--tw-content: ""}:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;margin:0;line-height:inherit}
`;function zt(){}function rn(i){return i()}function en(){return Object.create(null)}function ae(i){i.forEach(rn)}function on(i){return typeof i=="function"}function $n(i,u){return i!=i?u==u:i!==u||i&&typeof i=="object"||typeof i=="function"}function Vn(i){return Object.keys(i).length===0}function Et(i,u){i.appendChild(u)}function zn(i,u,p){const _=Wn(i);if(!_.getElementById(u)){const v=Mt("style");v.id=u,v.textContent=p,Yn(_,v)}}function Wn(i){if(!i)return document;const u=i.getRootNode?i.getRootNode():i.ownerDocument;return u&&u.host?u:i.ownerDocument}function Yn(i,u){return Et(i.head||i,u),u.sheet}function Xn(i,u,p){i.insertBefore(u,p||null)}function sn(i){i.parentNode&&i.parentNode.removeChild(i)}function Mt(i){return document.createElement(i)}function Hn(i){return document.createTextNode(i)}function ve(){return Hn(" ")}function Dn(i,u,p,_){return i.addEventListener(u,p,_),()=>i.removeEventListener(u,p,_)}function vt(i,u,p){p==null?i.removeAttribute(u):i.getAttribute(u)!==p&&i.setAttribute(u,p)}function Jn(i){return Array.from(i.childNodes)}let Qt;function Kt(i){Qt=i}function Kn(){if(!Qt)throw new Error("Function called outside component initialization");return Qt}function Zn(i){Kn().$$.on_mount.push(i)}const Vt=[],Zt=[];let Wt=[];const nn=[],Qn=Promise.resolve();let we=!1;function qn(){we||(we=!0,Qn.then(an))}function me(i){Wt.push(i)}const ye=new Set;let $t=0;function an(){if($t!==0)return;const i=Qt;do{try{for(;$t<Vt.length;){const u=Vt[$t];$t++,Kt(u),t1(u.$$)}}catch(u){throw Vt.length=0,$t=0,u}for(Kt(null),Vt.length=0,$t=0;Zt.length;)Zt.pop()();for(let u=0;u<Wt.length;u+=1){const p=Wt[u];ye.has(p)||(ye.add(p),p())}Wt.length=0}while(Vt.length);for(;nn.length;)nn.pop()();we=!1,ye.clear(),Kt(i)}function t1(i){if(i.fragment!==null){i.update(),ae(i.before_update);const u=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,u),i.after_update.forEach(me)}}function e1(i){const u=[],p=[];Wt.forEach(_=>i.indexOf(_)===-1?u.push(_):p.push(_)),p.forEach(_=>_()),Wt=u}const n1=new Set;function r1(i,u){i&&i.i&&(n1.delete(i),i.i(u))}function i1(i,u,p,_){const{fragment:v,after_update:O}=i.$$;v&&v.m(u,p),_||me(()=>{const S=i.$$.on_mount.map(rn).filter(on);i.$$.on_destroy?i.$$.on_destroy.push(...S):ae(S),i.$$.on_mount=[]}),O.forEach(me)}function o1(i,u){const p=i.$$;p.fragment!==null&&(e1(p.after_update),ae(p.on_destroy),p.fragment&&p.fragment.d(u),p.on_destroy=p.fragment=null,p.ctx=[])}function s1(i,u){i.$$.dirty[0]===-1&&(Vt.push(i),qn(),i.$$.dirty.fill(0)),i.$$.dirty[u/31|0]|=1<<u%31}function a1(i,u,p,_,v,O,S,C=[-1]){const L=Qt;Kt(i);const j=i.$$={fragment:null,ctx:[],props:O,update:zt,not_equal:v,bound:en(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(u.context||(L?L.$$.context:[])),callbacks:en(),dirty:C,skip_bound:!1,root:u.target||L.$$.root};S&&S(j.root);let U=!1;if(j.ctx=p?p(i,u.props||{},(K,Q,...q)=>{const at=q.length?q[0]:Q;return j.ctx&&v(j.ctx[K],j.ctx[K]=at)&&(!j.skip_bound&&j.bound[K]&&j.bound[K](at),U&&s1(i,K)),Q}):[],j.update(),U=!0,ae(j.before_update),j.fragment=_?_(j.ctx):!1,u.target){if(u.hydrate){const K=Jn(u.target);j.fragment&&j.fragment.l(K),K.forEach(sn)}else j.fragment&&j.fragment.c();u.intro&&r1(i.$$.fragment),i1(i,u.target,u.anchor,u.customElement),an()}Kt(L)}class u1{$destroy(){o1(this,1),this.$destroy=zt}$on(u,p){if(!on(p))return zt;const _=this.$$.callbacks[u]||(this.$$.callbacks[u]=[]);return _.push(p),()=>{const v=_.indexOf(p);v!==-1&&_.splice(v,1)}}$set(u){this.$$set&&!Vn(u)&&(this.$$.skip_bound=!0,this.$$set(u),this.$$.skip_bound=!1)}}var Yt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l1={};(function(){var i;function u(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}var p=typeof Object.defineProperties=="function"?Object.defineProperty:function(t,e,n){return t==Array.prototype||t==Object.prototype||(t[e]=n.value),t};function _(t){t=[typeof globalThis=="object"&&globalThis,t,typeof window=="object"&&window,typeof self=="object"&&self,typeof Yt=="object"&&Yt];for(var e=0;e<t.length;++e){var n=t[e];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}var v=_(this);function O(t,e){if(e)t:{var n=v;t=t.split(".");for(var r=0;r<t.length-1;r++){var o=t[r];if(!(o in n))break t;n=n[o]}t=t[t.length-1],r=n[t],e=e(r),e!=r&&e!=null&&p(n,t,{configurable:!0,writable:!0,value:e})}}O("Symbol",function(t){function e(l){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new n(r+(l||"")+"_"+o++,l)}function n(l,s){this.g=l,p(this,"description",{configurable:!0,writable:!0,value:s})}if(t)return t;n.prototype.toString=function(){return this.g};var r="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",o=0;return e}),O("Symbol.iterator",function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<e.length;n++){var r=v[e[n]];typeof r=="function"&&typeof r.prototype[t]!="function"&&p(r.prototype,t,{configurable:!0,writable:!0,value:function(){return S(u(this))}})}return t});function S(t){return t={next:t},t[Symbol.iterator]=function(){return this},t}function C(t){var e=typeof Symbol<"u"&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:u(t)}}function L(t){if(!(t instanceof Array)){t=C(t);for(var e,n=[];!(e=t.next()).done;)n.push(e.value);t=n}return t}var j=typeof Object.create=="function"?Object.create:function(t){function e(){}return e.prototype=t,new e},U;if(typeof Object.setPrototypeOf=="function")U=Object.setPrototypeOf;else{var K;t:{var Q={a:!0},q={};try{q.__proto__=Q,K=q.a;break t}catch{}K=!1}U=K?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var at=U;function ut(t,e){if(t.prototype=j(e.prototype),t.prototype.constructor=t,at)at(t,e);else for(var n in e)if(n!="prototype")if(Object.defineProperties){var r=Object.getOwnPropertyDescriptor(e,n);r&&Object.defineProperty(t,n,r)}else t[n]=e[n];t.ea=e.prototype}function At(){this.l=!1,this.i=null,this.h=void 0,this.g=1,this.s=this.m=0,this.j=null}function Ot(t){if(t.l)throw new TypeError("Generator is already running");t.l=!0}At.prototype.o=function(t){this.h=t};function St(t,e){t.j={U:e,V:!0},t.g=t.m||t.s}At.prototype.return=function(t){this.j={return:t},this.g=this.s};function Y(t,e,n){return t.g=n,{value:e}}function D(t){this.g=new At,this.h=t}function Ct(t,e){Ot(t.g);var n=t.g.i;return n?yt(t,"return"in n?n.return:function(r){return{value:r,done:!0}},e,t.g.return):(t.g.return(e),ft(t))}function yt(t,e,n,r){try{var o=e.call(t.g.i,n);if(!(o instanceof Object))throw new TypeError("Iterator result "+o+" is not an object");if(!o.done)return t.g.l=!1,o;var l=o.value}catch(s){return t.g.i=null,St(t.g,s),ft(t)}return t.g.i=null,r.call(t.g,l),ft(t)}function ft(t){for(;t.g.g;)try{var e=t.h(t.g);if(e)return t.g.l=!1,{value:e.value,done:!1}}catch(n){t.g.h=void 0,St(t.g,n)}if(t.g.l=!1,t.g.j){if(e=t.g.j,t.g.j=null,e.V)throw e.U;return{value:e.return,done:!0}}return{value:void 0,done:!0}}function lt(t){this.next=function(e){return Ot(t.g),t.g.i?e=yt(t,t.g.i.next,e,t.g.o):(t.g.o(e),e=ft(t)),e},this.throw=function(e){return Ot(t.g),t.g.i?e=yt(t,t.g.i.throw,e,t.g.o):(St(t.g,e),e=ft(t)),e},this.return=function(e){return Ct(t,e)},this[Symbol.iterator]=function(){return this}}function H(t,e){return e=new lt(new D(e)),at&&t.prototype&&at(e,t.prototype),e}function a(t,e){t instanceof String&&(t+="");var n=0,r=!1,o={next:function(){if(!r&&n<t.length){var l=n++;return{value:e(l,t[l]),done:!1}}return r=!0,{done:!0,value:void 0}}};return o[Symbol.iterator]=function(){return o},o}var f=typeof Object.assign=="function"?Object.assign:function(t,e){for(var n=1;n<arguments.length;n++){var r=arguments[n];if(r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t};O("Object.assign",function(t){return t||f}),O("Promise",function(t){function e(s){this.h=0,this.i=void 0,this.g=[],this.o=!1;var c=this.j();try{s(c.resolve,c.reject)}catch(h){c.reject(h)}}function n(){this.g=null}function r(s){return s instanceof e?s:new e(function(c){c(s)})}if(t)return t;n.prototype.h=function(s){if(this.g==null){this.g=[];var c=this;this.i(function(){c.l()})}this.g.push(s)};var o=v.setTimeout;n.prototype.i=function(s){o(s,0)},n.prototype.l=function(){for(;this.g&&this.g.length;){var s=this.g;this.g=[];for(var c=0;c<s.length;++c){var h=s[c];s[c]=null;try{h()}catch(d){this.j(d)}}}this.g=null},n.prototype.j=function(s){this.i(function(){throw s})},e.prototype.j=function(){function s(d){return function(E){h||(h=!0,d.call(c,E))}}var c=this,h=!1;return{resolve:s(this.C),reject:s(this.l)}},e.prototype.C=function(s){if(s===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(s instanceof e)this.F(s);else{t:switch(typeof s){case"object":var c=s!=null;break t;case"function":c=!0;break t;default:c=!1}c?this.u(s):this.m(s)}},e.prototype.u=function(s){var c=void 0;try{c=s.then}catch(h){this.l(h);return}typeof c=="function"?this.G(c,s):this.m(s)},e.prototype.l=function(s){this.s(2,s)},e.prototype.m=function(s){this.s(1,s)},e.prototype.s=function(s,c){if(this.h!=0)throw Error("Cannot settle("+s+", "+c+"): Promise already settled in state"+this.h);this.h=s,this.i=c,this.h===2&&this.D(),this.A()},e.prototype.D=function(){var s=this;o(function(){if(s.B()){var c=v.console;typeof c<"u"&&c.error(s.i)}},1)},e.prototype.B=function(){if(this.o)return!1;var s=v.CustomEvent,c=v.Event,h=v.dispatchEvent;return typeof h>"u"?!0:(typeof s=="function"?s=new s("unhandledrejection",{cancelable:!0}):typeof c=="function"?s=new c("unhandledrejection",{cancelable:!0}):(s=v.document.createEvent("CustomEvent"),s.initCustomEvent("unhandledrejection",!1,!0,s)),s.promise=this,s.reason=this.i,h(s))},e.prototype.A=function(){if(this.g!=null){for(var s=0;s<this.g.length;++s)l.h(this.g[s]);this.g=null}};var l=new n;return e.prototype.F=function(s){var c=this.j();s.J(c.resolve,c.reject)},e.prototype.G=function(s,c){var h=this.j();try{s.call(c,h.resolve,h.reject)}catch(d){h.reject(d)}},e.prototype.then=function(s,c){function h(R,k){return typeof R=="function"?function(w){try{d(R(w))}catch(x){E(x)}}:k}var d,E,V=new e(function(R,k){d=R,E=k});return this.J(h(s,d),h(c,E)),V},e.prototype.catch=function(s){return this.then(void 0,s)},e.prototype.J=function(s,c){function h(){switch(d.h){case 1:s(d.i);break;case 2:c(d.i);break;default:throw Error("Unexpected state: "+d.h)}}var d=this;this.g==null?l.h(h):this.g.push(h),this.o=!0},e.resolve=r,e.reject=function(s){return new e(function(c,h){h(s)})},e.race=function(s){return new e(function(c,h){for(var d=C(s),E=d.next();!E.done;E=d.next())r(E.value).J(c,h)})},e.all=function(s){var c=C(s),h=c.next();return h.done?r([]):new e(function(d,E){function V(w){return function(x){R[w]=x,k--,k==0&&d(R)}}var R=[],k=0;do R.push(void 0),k++,r(h.value).J(V(R.length-1),E),h=c.next();while(!h.done)})},e}),O("Object.is",function(t){return t||function(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}}),O("Array.prototype.includes",function(t){return t||function(e,n){var r=this;r instanceof String&&(r=String(r));var o=r.length;for(n=n||0,0>n&&(n=Math.max(n+o,0));n<o;n++){var l=r[n];if(l===e||Object.is(l,e))return!0}return!1}}),O("String.prototype.includes",function(t){return t||function(e,n){if(this==null)throw new TypeError("The 'this' value for String.prototype.includes must not be null or undefined");if(e instanceof RegExp)throw new TypeError("First argument to String.prototype.includes must not be a regular expression");return this.indexOf(e,n||0)!==-1}}),O("Array.prototype.keys",function(t){return t||function(){return a(this,function(e){return e})}});var b=this||self;function y(t,e){t=t.split(".");var n=b;t[0]in n||typeof n.execScript>"u"||n.execScript("var "+t[0]);for(var r;t.length&&(r=t.shift());)t.length||e===void 0?n[r]&&n[r]!==Object.prototype[r]?n=n[r]:n=n[r]={}:n[r]=e}function z(t,e){return e=String.fromCharCode.apply(null,e),t==null?e:t+e}var rt,g=typeof TextDecoder<"u",m,$=typeof TextEncoder<"u";function J(t){if($)t=(m||(m=new TextEncoder)).encode(t);else{var e=void 0;e=e===void 0?!1:e;for(var n=0,r=new Uint8Array(3*t.length),o=0;o<t.length;o++){var l=t.charCodeAt(o);if(128>l)r[n++]=l;else{if(2048>l)r[n++]=l>>6|192;else{if(55296<=l&&57343>=l){if(56319>=l&&o<t.length){var s=t.charCodeAt(++o);if(56320<=s&&57343>=s){l=1024*(l-55296)+s-56320+65536,r[n++]=l>>18|240,r[n++]=l>>12&63|128,r[n++]=l>>6&63|128,r[n++]=l&63|128;continue}else o--}if(e)throw Error("Found an unpaired surrogate");l=65533}r[n++]=l>>12|224,r[n++]=l>>6&63|128}r[n++]=l&63|128}}t=r.subarray(0,n)}return t}var st={},wt=null;function ht(t,e){e===void 0&&(e=0),Pt(),e=st[e];for(var n=Array(Math.floor(t.length/3)),r=e[64]||"",o=0,l=0;o<t.length-2;o+=3){var s=t[o],c=t[o+1],h=t[o+2],d=e[s>>2];s=e[(s&3)<<4|c>>4],c=e[(c&15)<<2|h>>6],h=e[h&63],n[l++]=d+s+c+h}switch(d=0,h=r,t.length-o){case 2:d=t[o+1],h=e[(d&15)<<2]||r;case 1:t=t[o],n[l]=e[t>>2]+e[(t&3)<<4|d>>4]+h+r}return n.join("")}function mt(t){var e=t.length,n=3*e/4;n%3?n=Math.floor(n):"=.".indexOf(t[e-1])!=-1&&(n="=.".indexOf(t[e-2])!=-1?n-2:n-1);var r=new Uint8Array(n),o=0;return Xt(t,function(l){r[o++]=l}),r.subarray(0,o)}function Xt(t,e){function n(h){for(;r<t.length;){var d=t.charAt(r++),E=wt[d];if(E!=null)return E;if(!/^[\s\xa0]*$/.test(d))throw Error("Unknown base64 encoding at char: "+d)}return h}Pt();for(var r=0;;){var o=n(-1),l=n(0),s=n(64),c=n(64);if(c===64&&o===-1)break;e(o<<2|l>>4),s!=64&&(e(l<<4&240|s>>2),c!=64&&e(s<<6&192|c))}}function Pt(){if(!wt){wt={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++){var r=t.concat(e[n].split(""));st[n]=r;for(var o=0;o<r.length;o++){var l=r[o];wt[l]===void 0&&(wt[l]=o)}}}}var fn=typeof Uint8Array.prototype.slice=="function",Ae;function Oe(t,e,n){return e===n?Ae||(Ae=new Uint8Array(0)):fn?t.slice(e,n):new Uint8Array(t.subarray(e,n))}var bt=0,xt=0;function Nt(t,e){e=e===void 0?{}:e,e=e.v===void 0?!1:e.v,this.h=null,this.g=this.j=this.l=0,this.m=!1,this.v=e,t&&Se(this,t)}function Se(t,e){e=e.constructor===Uint8Array?e:e.constructor===ArrayBuffer?new Uint8Array(e):e.constructor===Array?new Uint8Array(e):e.constructor===String?mt(e):e instanceof Uint8Array?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t.h=e,t.l=0,t.j=t.h.length,t.g=t.l}Nt.prototype.reset=function(){this.g=this.l};function qt(t){for(var e=128,n=0,r=0,o=0;4>o&&128<=e;o++)e=t.h[t.g++],n|=(e&127)<<7*o;if(128<=e&&(e=t.h[t.g++],n|=(e&127)<<28,r|=(e&127)>>4),128<=e)for(o=0;5>o&&128<=e;o++)e=t.h[t.g++],r|=(e&127)<<7*o+3;if(128>e)return t=n>>>0,e=r>>>0,(r=e&2147483648)&&(t=~t+1>>>0,e=~e>>>0,t==0&&(e=e+1>>>0)),t=4294967296*e+(t>>>0),r?-t:t;t.m=!0}Nt.prototype.i=function(){var t=this.h,e=t[this.g],n=e&127;return 128>e?(this.g+=1,n):(e=t[this.g+1],n|=(e&127)<<7,128>e?(this.g+=2,n):(e=t[this.g+2],n|=(e&127)<<14,128>e?(this.g+=3,n):(e=t[this.g+3],n|=(e&127)<<21,128>e?(this.g+=4,n):(e=t[this.g+4],n|=(e&15)<<28,128>e?(this.g+=5,n>>>0):(this.g+=5,128<=t[this.g++]&&128<=t[this.g++]&&128<=t[this.g++]&&128<=t[this.g++]&&this.g++,n)))))},Nt.prototype.o=function(){var t=this.h[this.g],e=this.h[this.g+1],n=this.h[this.g+2],r=this.h[this.g+3];return this.g+=4,n=(t<<0|e<<8|n<<16|r<<24)>>>0,t=2*(n>>31)+1,e=n>>>23&255,n&=8388607,e==255?n?NaN:1/0*t:e==0?t*Math.pow(2,-149)*n:t*Math.pow(2,e-150)*(n+Math.pow(2,23))};var Te=[];function te(){this.g=new Uint8Array(64),this.h=0}te.prototype.push=function(t){if(!(this.h+1<this.g.length)){var e=this.g;this.g=new Uint8Array(Math.ceil(1+2*this.g.length)),this.g.set(e)}this.g[this.h++]=t},te.prototype.length=function(){return this.h},te.prototype.end=function(){var t=this.g,e=this.h;return this.h=0,Oe(t,0,e)};function jt(t,e){for(;127<e;)t.push(e&127|128),e>>>=7;t.push(e)}function Ht(t){var e={},n=e.N===void 0?!1:e.N;this.o={v:e.v===void 0?!1:e.v},this.N=n,e=this.o,Te.length?(n=Te.pop(),e&&(n.v=e.v),t&&Se(n,t),t=n):t=new Nt(t,e),this.g=t,this.m=this.g.g,this.h=this.i=this.l=-1,this.j=!1}Ht.prototype.reset=function(){this.g.reset(),this.h=this.l=-1};function _t(t){var e=t.g;if((e=e.g==e.j)||(e=t.j)||(e=t.g,e=e.m||0>e.g||e.g>e.j),e)return!1;t.m=t.g.g,e=t.g.i();var n=e&7;return n!=0&&n!=5&&n!=1&&n!=2&&n!=3&&n!=4?(t.j=!0,!1):(t.i=e,t.l=e>>>3,t.h=n,!0)}function It(t){switch(t.h){case 0:if(t.h!=0)It(t);else{for(t=t.g;t.h[t.g]&128;)t.g++;t.g++}break;case 1:t.h!=1?It(t):(t=t.g,t.g+=8);break;case 2:if(t.h!=2)It(t);else{var e=t.g.i();t=t.g,t.g+=e}break;case 5:t.h!=5?It(t):(t=t.g,t.g+=4);break;case 3:e=t.l;do{if(!_t(t)){t.j=!0;break}if(t.h==4){t.l!=e&&(t.j=!0);break}It(t)}while(1);break;default:t.j=!0}}function ee(t,e,n){var r=t.g.j,o=t.g.i(),l=t.g.g+o;if(t.g.j=l,n(e,t),n=l-t.g.g,n!==0)throw Error("Message parsing ended unexpectedly. Expected to read "+o+" bytes, instead read "+(o-n)+" bytes, either the data ended unexpectedly or the message misreported its own length");return t.g.g=l,t.g.j=r,e}function ct(t){return t.g.o()}function Re(t){var e=t.g.i();t=t.g;var n=t.g;t.g+=e,t=t.h;var r;if(g)(r=rt)||(r=rt=new TextDecoder("utf-8",{fatal:!1})),r=r.decode(t.subarray(n,n+e));else{e=n+e;for(var o=[],l=null,s,c,h;n<e;)s=t[n++],128>s?o.push(s):224>s?n>=e?o.push(65533):(c=t[n++],194>s||(c&192)!==128?(n--,o.push(65533)):o.push((s&31)<<6|c&63)):240>s?n>=e-1?o.push(65533):(c=t[n++],(c&192)!==128||s===224&&160>c||s===237&&160<=c||((r=t[n++])&192)!==128?(n--,o.push(65533)):o.push((s&15)<<12|(c&63)<<6|r&63)):244>=s?n>=e-2?o.push(65533):(c=t[n++],(c&192)!==128||(s<<28)+(c-144)>>30||((r=t[n++])&192)!==128||((h=t[n++])&192)!==128?(n--,o.push(65533)):(s=(s&7)<<18|(c&63)<<12|(r&63)<<6|h&63,s-=65536,o.push((s>>10&1023)+55296,(s&1023)+56320))):o.push(65533),8192<=o.length&&(l=z(l,o),o.length=0);r=z(l,o)}return r}function Fe(t,e,n){var r=t.g.i();for(r=t.g.g+r;t.g.g<r;)n.push(e.call(t.g))}function Le(t,e){t.h==2?Fe(t,Nt.prototype.o,e):e.push(ct(t))}function ue(){this.h=[],this.i=0,this.g=new te}function Ut(t,e){e.length!==0&&(t.h.push(e),t.i+=e.length)}function le(t){var e=t.i+t.g.length();if(e===0)return new Uint8Array(0);e=new Uint8Array(e);for(var n=t.h,r=n.length,o=0,l=0;l<r;l++){var s=n[l];s.length!==0&&(e.set(s,o),o+=s.length)}return n=t.g,r=n.h,r!==0&&(e.set(n.g.subarray(0,r),o),n.h=0),t.h=[e],e}function gt(t,e,n){if(n!=null){jt(t.g,8*e+5),t=t.g;var r=n;r=(n=0>r?1:0)?-r:r,r===0?0<1/r?bt=xt=0:(xt=0,bt=2147483648):isNaN(r)?(xt=0,bt=2147483647):34028234663852886e22<r?(xt=0,bt=(n<<31|2139095040)>>>0):11754943508222875e-54>r?(r=Math.round(r/Math.pow(2,-149)),xt=0,bt=(n<<31|r)>>>0):(e=Math.floor(Math.log(r)/Math.LN2),r*=Math.pow(2,-e),r=Math.round(8388608*r),16777216<=r&&++e,xt=0,bt=(n<<31|e+127<<23|r&8388607)>>>0),n=bt,t.push(n>>>0&255),t.push(n>>>8&255),t.push(n>>>16&255),t.push(n>>>24&255)}}var Me=typeof Uint8Array=="function";function Ce(t,e,n){if(t!=null)return typeof t=="object"?Me&&t instanceof Uint8Array?n(t):Pe(t,e,n):e(t)}function Pe(t,e,n){if(Array.isArray(t)){for(var r=Array(t.length),o=0;o<t.length;o++)r[o]=Ce(t[o],e,n);return Array.isArray(t)&&t.W&&Dt(r),r}r={};for(o in t)r[o]=Ce(t[o],e,n);return r}function hn(t){return typeof t=="number"?isFinite(t)?t:String(t):t}var gn={W:{value:!0,configurable:!0}};function Dt(t){return Array.isArray(t)&&!Object.isFrozen(t)&&Object.defineProperties(t,gn),t}var Ne;function tt(t,e,n){var r=Ne;Ne=null,t||(t=r),r=this.constructor.ca,t||(t=r?[r]:[]),this.j=r?0:-1,this.m=this.g=null,this.h=t;t:{if(r=this.h.length,t=r-1,r&&(r=this.h[t],!(r===null||typeof r!="object"||Array.isArray(r)||Me&&r instanceof Uint8Array))){this.l=t-this.j,this.i=r;break t}e!==void 0&&-1<e?(this.l=Math.max(e,t+1-this.j),this.i=null):this.l=Number.MAX_VALUE}if(n)for(e=0;e<n.length;e++)t=n[e],t<this.l?(t+=this.j,(r=this.h[t])?Dt(r):this.h[t]=ne):(Ie(this),(r=this.i[t])?Dt(r):this.i[t]=ne)}var ne=Object.freeze(Dt([]));function Ie(t){var e=t.l+t.j;t.h[e]||(t.i=t.h[e]={})}function X(t,e,n){return e===-1?null:n!==void 0&&n||e>=t.l?t.i?t.i[e]:void 0:t.h[e+t.j]}function re(t,e){var n=n===void 0?!1:n,r=X(t,e,n);return r==null&&(r=ne),r===ne&&(r=Dt([]),M(t,e,r,n)),r}function Ue(t){var e=re(t,3);if(t.m||(t.m={}),!t.m[3]){for(var n=0;n<e.length;n++)e[n]=+e[n];t.m[3]=!0}return e}function Tt(t,e,n){return t=X(t,e),t??n}function pt(t,e,n){return t=X(t,e),t=t==null?t:+t,t??(n===void 0?0:n)}function M(t,e,n,r){r!==void 0&&r||e>=t.l?(Ie(t),t.i[e]=n):t.h[e+t.j]=n}function Ge(t,e,n){if(n===-1)return null;if(t.g||(t.g={}),!t.g[n]){var r=X(t,n,!1);r&&(t.g[n]=new e(r))}return t.g[n]}function ie(t,e){t.g||(t.g={});var n=t.g[1];if(!n){var r=re(t,1);n=[];for(var o=0;o<r.length;o++)n[o]=new e(r[o]);t.g[1]=n}return n}function Be(t,e,n){var r=r===void 0?!1:r;t.g||(t.g={});var o=n&&Rt(n);t.g[e]=n,M(t,e,o,r)}function $e(t,e,n,r){var o=ie(t,n);e=e||new n,t=re(t,1),r!=null?(o.splice(r,0,e),t.splice(r,0,Rt(e))):(o.push(e),t.push(Rt(e)))}tt.prototype.toJSON=function(){var t=Rt(this);return Pe(t,hn,ht)};function Rt(t,e){if(t.g)for(var n in t.g){var r=t.g[n];if(Array.isArray(r))for(var o=0;o<r.length;o++)r[o]&&Rt(r[o]);else r&&Rt(r)}return t.h}tt.prototype.toString=function(){return Rt(this).toString()};function ce(t,e){if(t=t.o){Ut(e,e.g.end());for(var n=0;n<t.length;n++)Ut(e,t[n])}}function kt(t,e){if(e.h==4)return!1;var n=e.m;return It(e),e.N||(e=Oe(e.g.h,n,e.g.g),(n=t.o)?n.push(e):t.o=[e]),!0}function Ft(t){tt.call(this,t,-1,pn)}ut(Ft,tt),Ft.prototype.getRows=function(){return X(this,1)},Ft.prototype.getCols=function(){return X(this,2)},Ft.prototype.getPackedDataList=function(){return Ue(this)},Ft.prototype.getLayout=function(){return Tt(this,4,0)};function dn(t,e){for(;_t(e);)switch(e.i){case 8:var n=e.g.i();M(t,1,n);break;case 16:n=e.g.i(),M(t,2,n);break;case 29:case 26:Le(e,t.getPackedDataList());break;case 32:n=qt(e.g),M(t,4,n);break;default:if(!kt(t,e))return t}return t}var pn=[3];function it(t,e){var n=void 0;return new(n||(n=Promise))(function(r,o){function l(h){try{c(e.next(h))}catch(d){o(d)}}function s(h){try{c(e.throw(h))}catch(d){o(d)}}function c(h){h.done?r(h.value):new n(function(d){d(h.value)}).then(l,s)}c((e=e.apply(t,void 0)).next())})}function Jt(t){tt.call(this,t)}ut(Jt,tt);function vn(t,e){for(;_t(e);)switch(e.i){case 8:var n=e.g.i();M(t,1,n);break;case 21:n=ct(e),M(t,2,n);break;case 26:n=Re(e),M(t,3,n);break;case 34:n=Re(e),M(t,4,n);break;default:if(!kt(t,e))return t}return t}function fe(t){tt.call(this,t,-1,yn)}ut(fe,tt),fe.prototype.addClassification=function(t,e){return $e(this,t,Jt,e),this};var yn=[1];function Gt(t){tt.call(this,t)}ut(Gt,tt);function wn(t,e){for(;_t(e);)switch(e.i){case 13:var n=ct(e);M(t,1,n);break;case 21:n=ct(e),M(t,2,n);break;case 29:n=ct(e),M(t,3,n);break;case 37:n=ct(e),M(t,4,n);break;case 45:n=ct(e),M(t,5,n);break;default:if(!kt(t,e))return t}return t}function Ve(t){tt.call(this,t,-1,mn)}ut(Ve,tt);function ze(t){t:{var e=new Ve;for(t=new Ht(t);_t(t);)switch(t.i){case 10:var n=ee(t,new Gt,wn);$e(e,n,Gt,void 0);break;default:if(!kt(e,t))break t}}return e}var mn=[1];function he(t){tt.call(this,t)}ut(he,tt);function Lt(t){tt.call(this,t,-1,_n)}ut(Lt,tt),Lt.prototype.getVertexType=function(){return Tt(this,1,0)},Lt.prototype.getPrimitiveType=function(){return Tt(this,2,0)},Lt.prototype.getVertexBufferList=function(){return Ue(this)},Lt.prototype.getIndexBufferList=function(){return re(this,4)};function bn(t,e){for(;_t(e);)switch(e.i){case 8:var n=qt(e.g);M(t,1,n);break;case 16:n=qt(e.g),M(t,2,n);break;case 29:case 26:Le(e,t.getVertexBufferList());break;case 32:case 34:n=e;var r=t.getIndexBufferList();n.h==2?Fe(n,Nt.prototype.i,r):r.push(n.g.i());break;default:if(!kt(t,e))return t}return t}var _n=[3,4];function oe(t){tt.call(this,t)}ut(oe,tt),oe.prototype.getMesh=function(){return Ge(this,Lt,1)},oe.prototype.getPoseTransformMatrix=function(){return Ge(this,Ft,2)};function En(t){t:{var e=new oe;for(t=new Ht(t);_t(t);)switch(t.i){case 10:var n=ee(t,new Lt,bn);Be(e,1,n);break;case 18:n=ee(t,new Ft,dn),Be(e,2,n);break;default:if(!kt(e,t))break t}}return e}function We(t,e,n){if(n=t.createShader(n===0?t.VERTEX_SHADER:t.FRAGMENT_SHADER),t.shaderSource(n,e),t.compileShader(n),!t.getShaderParameter(n,t.COMPILE_STATUS))throw Error(`Could not compile WebGL shader.
`+t.getShaderInfoLog(n));return n}function xn(t){return ie(t,Jt).map(function(e){return{index:Tt(e,1,0),Y:pt(e,2),label:X(e,3)!=null?Tt(e,3,""):void 0,displayName:X(e,4)!=null?Tt(e,4,""):void 0}})}function Ye(t){return{x:pt(t,1),y:pt(t,2),z:pt(t,3),visibility:X(t,4)!=null?pt(t,4):void 0}}function ge(t,e){this.h=t,this.g=e,this.l=0}function Xe(t,e,n){return jn(t,e),typeof t.g.canvas.transferToImageBitmap=="function"?Promise.resolve(t.g.canvas.transferToImageBitmap()):n?Promise.resolve(t.g.canvas):typeof createImageBitmap=="function"?createImageBitmap(t.g.canvas):(t.i===void 0&&(t.i=document.createElement("canvas")),new Promise(function(r){t.i.height=t.g.canvas.height,t.i.width=t.g.canvas.width,t.i.getContext("2d",{}).drawImage(t.g.canvas,0,0,t.g.canvas.width,t.g.canvas.height),r(t.i)}))}function jn(t,e){var n=t.g;if(t.m===void 0){var r=We(n,`
attribute vec2 aVertex;
attribute vec2 aTex;
varying vec2 vTex;
void main(void) {
gl_Position = vec4(aVertex, 0.0, 1.0);
vTex = aTex;
}`,0),o=We(n,`
precision mediump float;
varying vec2 vTex;
uniform sampler2D sampler0;
void main(){
gl_FragColor = texture2D(sampler0, vTex);
}`,1),l=n.createProgram();if(n.attachShader(l,r),n.attachShader(l,o),n.linkProgram(l),!n.getProgramParameter(l,n.LINK_STATUS))throw Error(`Could not compile WebGL program.
`+n.getProgramInfoLog(l));r=t.m=l,n.useProgram(r),o=n.getUniformLocation(r,"sampler0"),t.j={I:n.getAttribLocation(r,"aVertex"),H:n.getAttribLocation(r,"aTex"),da:o},t.s=n.createBuffer(),n.bindBuffer(n.ARRAY_BUFFER,t.s),n.enableVertexAttribArray(t.j.I),n.vertexAttribPointer(t.j.I,2,n.FLOAT,!1,0,0),n.bufferData(n.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),n.STATIC_DRAW),n.bindBuffer(n.ARRAY_BUFFER,null),t.o=n.createBuffer(),n.bindBuffer(n.ARRAY_BUFFER,t.o),n.enableVertexAttribArray(t.j.H),n.vertexAttribPointer(t.j.H,2,n.FLOAT,!1,0,0),n.bufferData(n.ARRAY_BUFFER,new Float32Array([0,1,0,0,1,0,1,1]),n.STATIC_DRAW),n.bindBuffer(n.ARRAY_BUFFER,null),n.uniform1i(o,0)}r=t.j,n.useProgram(t.m),n.canvas.width=e.width,n.canvas.height=e.height,n.viewport(0,0,e.width,e.height),n.activeTexture(n.TEXTURE0),t.h.bindTexture2d(e.glName),n.enableVertexAttribArray(r.I),n.bindBuffer(n.ARRAY_BUFFER,t.s),n.vertexAttribPointer(r.I,2,n.FLOAT,!1,0,0),n.enableVertexAttribArray(r.H),n.bindBuffer(n.ARRAY_BUFFER,t.o),n.vertexAttribPointer(r.H,2,n.FLOAT,!1,0,0),n.bindFramebuffer(n.DRAW_FRAMEBUFFER?n.DRAW_FRAMEBUFFER:n.FRAMEBUFFER,null),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.colorMask(!0,!0,!0,!0),n.drawArrays(n.TRIANGLE_FAN,0,4),n.disableVertexAttribArray(r.I),n.disableVertexAttribArray(r.H),n.bindBuffer(n.ARRAY_BUFFER,null),t.h.bindTexture2d(0)}function kn(t){this.g=t}var An=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]);function On(t,e){return e+t}function He(t,e){window[t]=e}function Sn(t){var e=document.createElement("script");return e.setAttribute("src",t),e.setAttribute("crossorigin","anonymous"),new Promise(function(n){e.addEventListener("load",function(){n()},!1),e.addEventListener("error",function(){n()},!1),document.body.appendChild(e)})}function Tn(){return it(this,function t(){return H(t,function(e){switch(e.g){case 1:return e.m=2,Y(e,WebAssembly.instantiate(An),4);case 4:e.g=3,e.m=0;break;case 2:return e.m=0,e.j=null,e.return(!1);case 3:return e.return(!0)}})})}function de(t){if(this.g=t,this.listeners={},this.j={},this.F={},this.m={},this.s={},this.G=this.o=this.R=!0,this.C=Promise.resolve(),this.P="",this.B={},this.locateFile=t&&t.locateFile||On,typeof window=="object")var e=window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/";else if(typeof location<"u")e=location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/";else throw Error("solutions can only be loaded on a web page or in a web worker");if(this.S=e,t.options){e=C(Object.keys(t.options));for(var n=e.next();!n.done;n=e.next()){n=n.value;var r=t.options[n].default;r!==void 0&&(this.j[n]=typeof r=="function"?r():r)}}}i=de.prototype,i.close=function(){return this.i&&this.i.delete(),Promise.resolve()};function Rn(t,e){return t.g.files===void 0?[]:typeof t.g.files=="function"?t.g.files(e):t.g.files}function Fn(t){return it(t,function e(){var n=this,r,o,l,s,c,h,d,E,V,R,k;return H(e,function(w){switch(w.g){case 1:return r=n,n.R?(o=Rn(n,n.j),Y(w,Tn(),2)):w.return();case 2:if(l=w.h,typeof window=="object")return He("createMediapipeSolutionsWasm",{locateFile:n.locateFile}),He("createMediapipeSolutionsPackedAssets",{locateFile:n.locateFile}),h=o.filter(function(x){return x.data!==void 0}),d=o.filter(function(x){return x.data===void 0}),E=Promise.all(h.map(function(x){var T=pe(r,x.url);if(x.path!==void 0){var P=x.path;T=T.then(function(et){return r.overrideFile(P,et),Promise.resolve(et)})}return T})),V=Promise.all(d.map(function(x){return x.simd===void 0||x.simd&&l||!x.simd&&!l?Sn(r.locateFile(x.url,r.S)):Promise.resolve()})).then(function(){return it(r,function x(){var T,P,et=this;return H(x,function(W){if(W.g==1)return T=window.createMediapipeSolutionsWasm,P=window.createMediapipeSolutionsPackedAssets,Y(W,T(P),2);et.h=W.h,W.g=0})})}),R=function(){return it(r,function x(){var T=this;return H(x,function(P){return T.g.graph&&T.g.graph.url?P=Y(P,pe(T,T.g.graph.url),0):(P.g=0,P=void 0),P})})}(),Y(w,Promise.all([V,E,R]),7);if(typeof importScripts!="function")throw Error("solutions can only be loaded on a web page or in a web worker");return s=o.filter(function(x){return x.simd===void 0||x.simd&&l||!x.simd&&!l}).map(function(x){return r.locateFile(x.url,r.S)}),importScripts.apply(null,L(s)),Y(w,createMediapipeSolutionsWasm(Module),6);case 6:n.h=w.h,n.l=new OffscreenCanvas(1,1),n.h.canvas=n.l,c=n.h.GL.createContext(n.l,{antialias:!1,alpha:!1,ba:typeof WebGL2RenderingContext<"u"?2:1}),n.h.GL.makeContextCurrent(c),w.g=4;break;case 7:if(n.l=document.createElement("canvas"),k=n.l.getContext("webgl2",{}),!k&&(k=n.l.getContext("webgl",{}),!k))return alert("Failed to create WebGL canvas context when passing video frame."),w.return();n.D=k,n.h.canvas=n.l,n.h.createContext(n.l,!0,!0,{});case 4:n.i=new n.h.SolutionWasm,n.R=!1,w.g=0}})})}function Ln(t){return it(t,function e(){var n=this,r,o,l,s,c,h,d,E;return H(e,function(V){if(V.g==1){if(n.g.graph&&n.g.graph.url&&n.P===n.g.graph.url)return V.return();if(n.o=!0,!n.g.graph||!n.g.graph.url){V.g=2;return}return n.P=n.g.graph.url,Y(V,pe(n,n.g.graph.url),3)}for(V.g!=2&&(r=V.h,n.i.loadGraph(r)),o=C(Object.keys(n.B)),l=o.next();!l.done;l=o.next())s=l.value,n.i.overrideFile(s,n.B[s]);if(n.B={},n.g.listeners)for(c=C(n.g.listeners),h=c.next();!h.done;h=c.next())d=h.value,Nn(n,d);E=n.j,n.j={},n.setOptions(E),V.g=0})})}i.reset=function(){return it(this,function t(){var e=this;return H(t,function(n){e.i&&(e.i.reset(),e.m={},e.s={}),n.g=0})})},i.setOptions=function(t,e){var n=this;if(e=e||this.g.options){for(var r=[],o=[],l={},s=C(Object.keys(t)),c=s.next();!c.done;l={K:l.K,L:l.L},c=s.next()){var h=c.value;h in this.j&&this.j[h]===t[h]||(this.j[h]=t[h],c=e[h],c!==void 0&&(c.onChange&&(l.K=c.onChange,l.L=t[h],r.push(function(d){return function(){return it(n,function E(){var V,R=this;return H(E,function(k){if(k.g==1)return Y(k,d.K(d.L),2);V=k.h,V===!0&&(R.o=!0),k.g=0})})}}(l))),c.graphOptionXref&&(h={valueNumber:c.type===1?t[h]:0,valueBoolean:c.type===0?t[h]:!1,valueString:c.type===2?t[h]:""},c=Object.assign(Object.assign(Object.assign({},{calculatorName:"",calculatorIndex:0}),c.graphOptionXref),h),o.push(c))))}(r.length!==0||o.length!==0)&&(this.o=!0,this.A=(this.A===void 0?[]:this.A).concat(o),this.u=(this.u===void 0?[]:this.u).concat(r))}};function Mn(t){return it(t,function e(){var n=this,r,o,l,s,c,h,d;return H(e,function(E){switch(E.g){case 1:if(!n.o)return E.return();if(!n.u){E.g=2;break}r=C(n.u),o=r.next();case 3:if(o.done){E.g=5;break}return l=o.value,Y(E,l(),4);case 4:o=r.next(),E.g=3;break;case 5:n.u=void 0;case 2:if(n.A){for(s=new n.h.GraphOptionChangeRequestList,c=C(n.A),h=c.next();!h.done;h=c.next())d=h.value,s.push_back(d);n.i.changeOptions(s),s.delete(),n.A=void 0}n.o=!1,E.g=0}})})}i.initialize=function(){return it(this,function t(){var e=this;return H(t,function(n){return n.g==1?Y(n,Fn(e),2):n.g!=3?Y(n,Ln(e),3):Y(n,Mn(e),0)})})};function pe(t,e){return it(t,function n(){var r=this,o,l;return H(n,function(s){return e in r.F?s.return(r.F[e]):(o=r.locateFile(e,""),l=fetch(o).then(function(c){return c.arrayBuffer()}),r.F[e]=l,s.return(l))})})}i.overrideFile=function(t,e){this.i?this.i.overrideFile(t,e):this.B[t]=e},i.clearOverriddenFiles=function(){this.B={},this.i&&this.i.clearOverriddenFiles()},i.send=function(t,e){return it(this,function n(){var r=this,o,l,s,c,h,d,E,V,R;return H(n,function(k){switch(k.g){case 1:return r.g.inputs?(o=1e3*(e??performance.now()),Y(k,r.C,2)):k.return();case 2:return Y(k,r.initialize(),3);case 3:for(l=new r.h.PacketDataList,s=C(Object.keys(t)),c=s.next();!c.done;c=s.next())if(h=c.value,d=r.g.inputs[h]){t:{var w=r,x=t[h];switch(d.type){case"video":var T=w.m[d.stream];if(T||(T=new ge(w.h,w.D),w.m[d.stream]=T),w=T,w.l===0&&(w.l=w.h.createTexture()),typeof HTMLVideoElement<"u"&&x instanceof HTMLVideoElement){var P=x.videoWidth;T=x.videoHeight}else typeof HTMLImageElement<"u"&&x instanceof HTMLImageElement?(P=x.naturalWidth,T=x.naturalHeight):(P=x.width,T=x.height);T={glName:w.l,width:P,height:T},P=w.g,P.canvas.width=T.width,P.canvas.height=T.height,P.activeTexture(P.TEXTURE0),w.h.bindTexture2d(w.l),P.texImage2D(P.TEXTURE_2D,0,P.RGBA,P.RGBA,P.UNSIGNED_BYTE,x),w.h.bindTexture2d(0),w=T;break t;case"detections":for(T=w.m[d.stream],T||(T=new kn(w.h),w.m[d.stream]=T),w=T,w.data||(w.data=new w.g.DetectionListData),w.data.reset(x.length),T=0;T<x.length;++T){P=x[T];var et=w.data,W=et.setBoundingBox,ot=T,Z=P.T,A=new he;M(A,1,Z.Z),M(A,2,Z.$),M(A,3,Z.height),M(A,4,Z.width),M(A,5,Z.rotation),M(A,6,Z.X);var N=Z=new ue;gt(N,1,X(A,1)),gt(N,2,X(A,2)),gt(N,3,X(A,3)),gt(N,4,X(A,4)),gt(N,5,X(A,5));var G=X(A,6);if(G!=null&&G!=null){jt(N.g,48);var F=N.g,I=G;G=0>I,I=Math.abs(I);var B=I>>>0;for(I=Math.floor((I-B)/4294967296),I>>>=0,G&&(I=~I>>>0,B=(~B>>>0)+1,4294967295<B&&(B=0,I++,4294967295<I&&(I=0))),bt=B,xt=I,G=bt,B=xt;0<B||127<G;)F.push(G&127|128),G=(G>>>7|B<<25)>>>0,B>>>=7;F.push(G)}if(ce(A,N),Z=le(Z),W.call(et,ot,Z),P.O)for(et=0;et<P.O.length;++et)A=P.O[et],N=!!A.visibility,W=w.data,ot=W.addNormalizedLandmark,Z=T,A=Object.assign(Object.assign({},A),{visibility:N?A.visibility:0}),N=new Gt,M(N,1,A.x),M(N,2,A.y),M(N,3,A.z),A.visibility&&M(N,4,A.visibility),F=A=new ue,gt(F,1,X(N,1)),gt(F,2,X(N,2)),gt(F,3,X(N,3)),gt(F,4,X(N,4)),gt(F,5,X(N,5)),ce(N,F),A=le(A),ot.call(W,Z,A);if(P.M)for(et=0;et<P.M.length;++et){if(W=w.data,ot=W.addClassification,Z=T,A=P.M[et],N=new Jt,M(N,2,A.Y),A.index&&M(N,1,A.index),A.label&&M(N,3,A.label),A.displayName&&M(N,4,A.displayName),F=A=new ue,B=X(N,1),B!=null&&B!=null)if(jt(F.g,8),G=F.g,0<=B)jt(G,B);else{for(I=0;9>I;I++)G.push(B&127|128),B>>=7;G.push(1)}gt(F,2,X(N,2)),G=X(N,3),G!=null&&(G=J(G),jt(F.g,26),jt(F.g,G.length),Ut(F,F.g.end()),Ut(F,G)),G=X(N,4),G!=null&&(G=J(G),jt(F.g,34),jt(F.g,G.length),Ut(F,F.g.end()),Ut(F,G)),ce(N,F),A=le(A),ot.call(W,Z,A)}}w=w.data;break t;default:w={}}}switch(E=w,V=d.stream,d.type){case"video":l.pushTexture2d(Object.assign(Object.assign({},E),{stream:V,timestamp:o}));break;case"detections":R=E,R.stream=V,R.timestamp=o,l.pushDetectionList(R);break;default:throw Error("Unknown input config type: '"+d.type+"'")}}return r.i.send(l),Y(k,r.C,4);case 4:l.delete(),k.g=0}})})};function Cn(t,e,n){return it(t,function r(){var o,l,s,c,h,d,E=this,V,R,k,w,x,T,P,et;return H(r,function(W){switch(W.g){case 1:if(!n)return W.return(e);for(o={},l=0,s=C(Object.keys(n)),c=s.next();!c.done;c=s.next())h=c.value,d=n[h],typeof d!="string"&&d.type==="texture"&&e[d.stream]!==void 0&&++l;1<l&&(E.G=!1),V=C(Object.keys(n)),c=V.next();case 2:if(c.done){W.g=4;break}if(R=c.value,k=n[R],typeof k=="string")return P=o,et=R,Y(W,Pn(E,R,e[k]),14);if(w=e[k.stream],k.type==="detection_list"){if(w){for(var ot=w.getRectList(),Z=w.getLandmarksList(),A=w.getClassificationsList(),N=[],G=0;G<ot.size();++G){var F=ot.get(G);t:{var I=new he;for(F=new Ht(F);_t(F);)switch(F.i){case 13:var B=ct(F);M(I,1,B);break;case 21:B=ct(F),M(I,2,B);break;case 29:B=ct(F),M(I,3,B);break;case 37:B=ct(F),M(I,4,B);break;case 45:B=ct(F),M(I,5,B);break;case 48:B=qt(F.g),M(I,6,B);break;default:if(!kt(I,F))break t}}I={Z:pt(I,1),$:pt(I,2),height:pt(I,3),width:pt(I,4),rotation:pt(I,5,0),X:Tt(I,6,0)},F=ie(ze(Z.get(G)),Gt).map(Ye);var Bt=A.get(G);t:for(B=new fe,Bt=new Ht(Bt);_t(Bt);)switch(Bt.i){case 10:B.addClassification(ee(Bt,new Jt,vn));break;default:if(!kt(B,Bt))break t}I={T:I,O:F,M:xn(B)},N.push(I)}ot=N}else ot=[];o[R]=ot,W.g=7;break}if(k.type==="proto_list"){if(w){for(ot=Array(w.size()),Z=0;Z<w.size();Z++)ot[Z]=w.get(Z);w.delete()}else ot=[];o[R]=ot,W.g=7;break}if(w===void 0){W.g=3;break}if(k.type==="float_list"){o[R]=w,W.g=7;break}if(k.type==="proto"){o[R]=w,W.g=7;break}if(k.type!=="texture")throw Error("Unknown output config type: '"+k.type+"'");return x=E.s[R],x||(x=new ge(E.h,E.D),E.s[R]=x),Y(W,Xe(x,w,E.G),13);case 13:T=W.h,o[R]=T;case 7:k.transform&&o[R]&&(o[R]=k.transform(o[R])),W.g=3;break;case 14:P[et]=W.h;case 3:c=V.next(),W.g=2;break;case 4:return W.return(o)}})})}function Pn(t,e,n){return it(t,function r(){var o=this,l;return H(r,function(s){return typeof n=="number"||n instanceof Uint8Array||n instanceof o.h.Uint8BlobList?s.return(n):n instanceof o.h.Texture2dDataOut?(l=o.s[e],l||(l=new ge(o.h,o.D),o.s[e]=l),s.return(Xe(l,n,o.G))):s.return(void 0)})})}function Nn(t,e){for(var n=e.name||"$",r=[].concat(L(e.wants)),o=new t.h.StringList,l=C(e.wants),s=l.next();!s.done;s=l.next())o.push_back(s.value);l=t.h.PacketListener.implement({onResults:function(c){for(var h={},d=0;d<e.wants.length;++d)h[r[d]]=c.get(d);var E=t.listeners[n];E&&(t.C=Cn(t,h,e.outs).then(function(V){V=E(V);for(var R=0;R<e.wants.length;++R){var k=h[r[R]];typeof k=="object"&&k.hasOwnProperty&&k.hasOwnProperty("delete")&&k.delete()}V&&(t.C=V)}))}}),t.i.attachMultiListener(o,l),o.delete()}i.onResults=function(t,e){this.listeners[e||"$"]=t},y("Solution",de),y("OptionType",{BOOL:0,NUMBER:1,aa:2,0:"BOOL",1:"NUMBER",2:"STRING"});function In(t){t=En(t);var e=t.getMesh();if(!e)return t;var n=new Float32Array(e.getVertexBufferList());e.getVertexBufferList=function(){return n};var r=new Uint32Array(e.getIndexBufferList());return e.getIndexBufferList=function(){return r},t}var Un={files:[{url:"face_mesh_solution_packed_assets_loader.js"},{simd:!0,url:"face_mesh_solution_simd_wasm_bin.js"},{simd:!1,url:"face_mesh_solution_wasm_bin.js"}],graph:{url:"face_mesh.binarypb"},listeners:[{wants:["multi_face_geometry","image_transformed","multi_face_landmarks"],outs:{image:"image_transformed",multiFaceGeometry:{type:"proto_list",stream:"multi_face_geometry",transform:function(t){return t.map(In)}},multiFaceLandmarks:{type:"proto_list",stream:"multi_face_landmarks",transform:function(t){return t.map(function(e){return ie(ze(e),Gt).map(Ye)})}}}}],inputs:{image:{type:"video",stream:"input_frames_gpu"}},options:{useCpuInference:{type:0,graphOptionXref:{calculatorType:"InferenceCalculator",fieldName:"use_cpu_inference"},default:"iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document},enableFaceGeometry:{type:0,graphOptionXref:{calculatorName:"EnableFaceGeometryConstant",calculatorType:"ConstantSidePacketCalculator",fieldName:"bool_value"}},selfieMode:{type:0,graphOptionXref:{calculatorType:"GlScalerCalculator",calculatorIndex:1,fieldName:"flip_horizontal"}},maxNumFaces:{type:1,graphOptionXref:{calculatorType:"ConstantSidePacketCalculator",calculatorName:"ConstantSidePacketCalculatorNumFaces",fieldName:"int_value"}},refineLandmarks:{type:0,graphOptionXref:{calculatorType:"ConstantSidePacketCalculator",calculatorName:"ConstantSidePacketCalculatorRefineLandmarks",fieldName:"bool_value"}},minDetectionConfidence:{type:1,graphOptionXref:{calculatorType:"TensorsToDetectionsCalculator",calculatorName:"facelandmarkfrontgpu__facedetectionshortrangegpu__facedetectionshortrangecommon__TensorsToDetectionsCalculator",fieldName:"min_score_thresh"}},minTrackingConfidence:{type:1,graphOptionXref:{calculatorType:"ThresholdingCalculator",calculatorName:"facelandmarkfrontgpu__facelandmarkgpu__ThresholdingCalculator",fieldName:"threshold"}},cameraNear:{type:1,graphOptionXref:{calculatorType:"FaceGeometryEnvGeneratorCalculator",fieldName:"near"}},cameraFar:{type:1,graphOptionXref:{calculatorType:"FaceGeometryEnvGeneratorCalculator",fieldName:"far"}},cameraVerticalFovDegrees:{type:1,graphOptionXref:{calculatorType:"FaceGeometryEnvGeneratorCalculator",fieldName:"vertical_fov_degrees"}}}},De=[[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]],Je=[[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]],Ke=[[276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]],Ze=[[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]],Qe=[[46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]],qe=[[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]],Gn=[].concat(L(De),L(Je),L(Ke),L(Ze),L(Qe),L(qe));function tn(t){t=t||{},t=Object.assign(Object.assign({},Un),t),this.g=new de(t)}i=tn.prototype,i.close=function(){return this.g.close(),Promise.resolve()},i.onResults=function(t){this.g.onResults(t)},i.initialize=function(){return it(this,function t(){var e=this;return H(t,function(n){return Y(n,e.g.initialize(),0)})})},i.reset=function(){this.g.reset()},i.send=function(t){return it(this,function e(){var n=this;return H(e,function(r){return Y(r,n.g.send(t),0)})})},i.setOptions=function(t){this.g.setOptions(t)},y("FACE_GEOMETRY",{Layout:{COLUMN_MAJOR:0,ROW_MAJOR:1,0:"COLUMN_MAJOR",1:"ROW_MAJOR"},PrimitiveType:{TRIANGLE:0,0:"TRIANGLE"},VertexType:{VERTEX_PT:0,0:"VERTEX_PT"},DEFAULT_CAMERA_PARAMS:{verticalFovDegrees:63,near:1,far:1e4}}),y("FaceMesh",tn),y("FACEMESH_LIPS",De),y("FACEMESH_LEFT_EYE",Je),y("FACEMESH_LEFT_EYEBROW",Ke),y("FACEMESH_LEFT_IRIS",[[474,475],[475,476],[476,477],[477,474]]),y("FACEMESH_RIGHT_EYE",Ze),y("FACEMESH_RIGHT_EYEBROW",Qe),y("FACEMESH_RIGHT_IRIS",[[469,470],[470,471],[471,472],[472,469]]),y("FACEMESH_FACE_OVAL",qe),y("FACEMESH_CONTOURS",Gn),y("FACEMESH_TESSELATION",[[127,34],[34,139],[139,127],[11,0],[0,37],[37,11],[232,231],[231,120],[120,232],[72,37],[37,39],[39,72],[128,121],[121,47],[47,128],[232,121],[121,128],[128,232],[104,69],[69,67],[67,104],[175,171],[171,148],[148,175],[118,50],[50,101],[101,118],[73,39],[39,40],[40,73],[9,151],[151,108],[108,9],[48,115],[115,131],[131,48],[194,204],[204,211],[211,194],[74,40],[40,185],[185,74],[80,42],[42,183],[183,80],[40,92],[92,186],[186,40],[230,229],[229,118],[118,230],[202,212],[212,214],[214,202],[83,18],[18,17],[17,83],[76,61],[61,146],[146,76],[160,29],[29,30],[30,160],[56,157],[157,173],[173,56],[106,204],[204,194],[194,106],[135,214],[214,192],[192,135],[203,165],[165,98],[98,203],[21,71],[71,68],[68,21],[51,45],[45,4],[4,51],[144,24],[24,23],[23,144],[77,146],[146,91],[91,77],[205,50],[50,187],[187,205],[201,200],[200,18],[18,201],[91,106],[106,182],[182,91],[90,91],[91,181],[181,90],[85,84],[84,17],[17,85],[206,203],[203,36],[36,206],[148,171],[171,140],[140,148],[92,40],[40,39],[39,92],[193,189],[189,244],[244,193],[159,158],[158,28],[28,159],[247,246],[246,161],[161,247],[236,3],[3,196],[196,236],[54,68],[68,104],[104,54],[193,168],[168,8],[8,193],[117,228],[228,31],[31,117],[189,193],[193,55],[55,189],[98,97],[97,99],[99,98],[126,47],[47,100],[100,126],[166,79],[79,218],[218,166],[155,154],[154,26],[26,155],[209,49],[49,131],[131,209],[135,136],[136,150],[150,135],[47,126],[126,217],[217,47],[223,52],[52,53],[53,223],[45,51],[51,134],[134,45],[211,170],[170,140],[140,211],[67,69],[69,108],[108,67],[43,106],[106,91],[91,43],[230,119],[119,120],[120,230],[226,130],[130,247],[247,226],[63,53],[53,52],[52,63],[238,20],[20,242],[242,238],[46,70],[70,156],[156,46],[78,62],[62,96],[96,78],[46,53],[53,63],[63,46],[143,34],[34,227],[227,143],[123,117],[117,111],[111,123],[44,125],[125,19],[19,44],[236,134],[134,51],[51,236],[216,206],[206,205],[205,216],[154,153],[153,22],[22,154],[39,37],[37,167],[167,39],[200,201],[201,208],[208,200],[36,142],[142,100],[100,36],[57,212],[212,202],[202,57],[20,60],[60,99],[99,20],[28,158],[158,157],[157,28],[35,226],[226,113],[113,35],[160,159],[159,27],[27,160],[204,202],[202,210],[210,204],[113,225],[225,46],[46,113],[43,202],[202,204],[204,43],[62,76],[76,77],[77,62],[137,123],[123,116],[116,137],[41,38],[38,72],[72,41],[203,129],[129,142],[142,203],[64,98],[98,240],[240,64],[49,102],[102,64],[64,49],[41,73],[73,74],[74,41],[212,216],[216,207],[207,212],[42,74],[74,184],[184,42],[169,170],[170,211],[211,169],[170,149],[149,176],[176,170],[105,66],[66,69],[69,105],[122,6],[6,168],[168,122],[123,147],[147,187],[187,123],[96,77],[77,90],[90,96],[65,55],[55,107],[107,65],[89,90],[90,180],[180,89],[101,100],[100,120],[120,101],[63,105],[105,104],[104,63],[93,137],[137,227],[227,93],[15,86],[86,85],[85,15],[129,102],[102,49],[49,129],[14,87],[87,86],[86,14],[55,8],[8,9],[9,55],[100,47],[47,121],[121,100],[145,23],[23,22],[22,145],[88,89],[89,179],[179,88],[6,122],[122,196],[196,6],[88,95],[95,96],[96,88],[138,172],[172,136],[136,138],[215,58],[58,172],[172,215],[115,48],[48,219],[219,115],[42,80],[80,81],[81,42],[195,3],[3,51],[51,195],[43,146],[146,61],[61,43],[171,175],[175,199],[199,171],[81,82],[82,38],[38,81],[53,46],[46,225],[225,53],[144,163],[163,110],[110,144],[52,65],[65,66],[66,52],[229,228],[228,117],[117,229],[34,127],[127,234],[234,34],[107,108],[108,69],[69,107],[109,108],[108,151],[151,109],[48,64],[64,235],[235,48],[62,78],[78,191],[191,62],[129,209],[209,126],[126,129],[111,35],[35,143],[143,111],[117,123],[123,50],[50,117],[222,65],[65,52],[52,222],[19,125],[125,141],[141,19],[221,55],[55,65],[65,221],[3,195],[195,197],[197,3],[25,7],[7,33],[33,25],[220,237],[237,44],[44,220],[70,71],[71,139],[139,70],[122,193],[193,245],[245,122],[247,130],[130,33],[33,247],[71,21],[21,162],[162,71],[170,169],[169,150],[150,170],[188,174],[174,196],[196,188],[216,186],[186,92],[92,216],[2,97],[97,167],[167,2],[141,125],[125,241],[241,141],[164,167],[167,37],[37,164],[72,38],[38,12],[12,72],[38,82],[82,13],[13,38],[63,68],[68,71],[71,63],[226,35],[35,111],[111,226],[101,50],[50,205],[205,101],[206,92],[92,165],[165,206],[209,198],[198,217],[217,209],[165,167],[167,97],[97,165],[220,115],[115,218],[218,220],[133,112],[112,243],[243,133],[239,238],[238,241],[241,239],[214,135],[135,169],[169,214],[190,173],[173,133],[133,190],[171,208],[208,32],[32,171],[125,44],[44,237],[237,125],[86,87],[87,178],[178,86],[85,86],[86,179],[179,85],[84,85],[85,180],[180,84],[83,84],[84,181],[181,83],[201,83],[83,182],[182,201],[137,93],[93,132],[132,137],[76,62],[62,183],[183,76],[61,76],[76,184],[184,61],[57,61],[61,185],[185,57],[212,57],[57,186],[186,212],[214,207],[207,187],[187,214],[34,143],[143,156],[156,34],[79,239],[239,237],[237,79],[123,137],[137,177],[177,123],[44,1],[1,4],[4,44],[201,194],[194,32],[32,201],[64,102],[102,129],[129,64],[213,215],[215,138],[138,213],[59,166],[166,219],[219,59],[242,99],[99,97],[97,242],[2,94],[94,141],[141,2],[75,59],[59,235],[235,75],[24,110],[110,228],[228,24],[25,130],[130,226],[226,25],[23,24],[24,229],[229,23],[22,23],[23,230],[230,22],[26,22],[22,231],[231,26],[112,26],[26,232],[232,112],[189,190],[190,243],[243,189],[221,56],[56,190],[190,221],[28,56],[56,221],[221,28],[27,28],[28,222],[222,27],[29,27],[27,223],[223,29],[30,29],[29,224],[224,30],[247,30],[30,225],[225,247],[238,79],[79,20],[20,238],[166,59],[59,75],[75,166],[60,75],[75,240],[240,60],[147,177],[177,215],[215,147],[20,79],[79,166],[166,20],[187,147],[147,213],[213,187],[112,233],[233,244],[244,112],[233,128],[128,245],[245,233],[128,114],[114,188],[188,128],[114,217],[217,174],[174,114],[131,115],[115,220],[220,131],[217,198],[198,236],[236,217],[198,131],[131,134],[134,198],[177,132],[132,58],[58,177],[143,35],[35,124],[124,143],[110,163],[163,7],[7,110],[228,110],[110,25],[25,228],[356,389],[389,368],[368,356],[11,302],[302,267],[267,11],[452,350],[350,349],[349,452],[302,303],[303,269],[269,302],[357,343],[343,277],[277,357],[452,453],[453,357],[357,452],[333,332],[332,297],[297,333],[175,152],[152,377],[377,175],[347,348],[348,330],[330,347],[303,304],[304,270],[270,303],[9,336],[336,337],[337,9],[278,279],[279,360],[360,278],[418,262],[262,431],[431,418],[304,408],[408,409],[409,304],[310,415],[415,407],[407,310],[270,409],[409,410],[410,270],[450,348],[348,347],[347,450],[422,430],[430,434],[434,422],[313,314],[314,17],[17,313],[306,307],[307,375],[375,306],[387,388],[388,260],[260,387],[286,414],[414,398],[398,286],[335,406],[406,418],[418,335],[364,367],[367,416],[416,364],[423,358],[358,327],[327,423],[251,284],[284,298],[298,251],[281,5],[5,4],[4,281],[373,374],[374,253],[253,373],[307,320],[320,321],[321,307],[425,427],[427,411],[411,425],[421,313],[313,18],[18,421],[321,405],[405,406],[406,321],[320,404],[404,405],[405,320],[315,16],[16,17],[17,315],[426,425],[425,266],[266,426],[377,400],[400,369],[369,377],[322,391],[391,269],[269,322],[417,465],[465,464],[464,417],[386,257],[257,258],[258,386],[466,260],[260,388],[388,466],[456,399],[399,419],[419,456],[284,332],[332,333],[333,284],[417,285],[285,8],[8,417],[346,340],[340,261],[261,346],[413,441],[441,285],[285,413],[327,460],[460,328],[328,327],[355,371],[371,329],[329,355],[392,439],[439,438],[438,392],[382,341],[341,256],[256,382],[429,420],[420,360],[360,429],[364,394],[394,379],[379,364],[277,343],[343,437],[437,277],[443,444],[444,283],[283,443],[275,440],[440,363],[363,275],[431,262],[262,369],[369,431],[297,338],[338,337],[337,297],[273,375],[375,321],[321,273],[450,451],[451,349],[349,450],[446,342],[342,467],[467,446],[293,334],[334,282],[282,293],[458,461],[461,462],[462,458],[276,353],[353,383],[383,276],[308,324],[324,325],[325,308],[276,300],[300,293],[293,276],[372,345],[345,447],[447,372],[352,345],[345,340],[340,352],[274,1],[1,19],[19,274],[456,248],[248,281],[281,456],[436,427],[427,425],[425,436],[381,256],[256,252],[252,381],[269,391],[391,393],[393,269],[200,199],[199,428],[428,200],[266,330],[330,329],[329,266],[287,273],[273,422],[422,287],[250,462],[462,328],[328,250],[258,286],[286,384],[384,258],[265,353],[353,342],[342,265],[387,259],[259,257],[257,387],[424,431],[431,430],[430,424],[342,353],[353,276],[276,342],[273,335],[335,424],[424,273],[292,325],[325,307],[307,292],[366,447],[447,345],[345,366],[271,303],[303,302],[302,271],[423,266],[266,371],[371,423],[294,455],[455,460],[460,294],[279,278],[278,294],[294,279],[271,272],[272,304],[304,271],[432,434],[434,427],[427,432],[272,407],[407,408],[408,272],[394,430],[430,431],[431,394],[395,369],[369,400],[400,395],[334,333],[333,299],[299,334],[351,417],[417,168],[168,351],[352,280],[280,411],[411,352],[325,319],[319,320],[320,325],[295,296],[296,336],[336,295],[319,403],[403,404],[404,319],[330,348],[348,349],[349,330],[293,298],[298,333],[333,293],[323,454],[454,447],[447,323],[15,16],[16,315],[315,15],[358,429],[429,279],[279,358],[14,15],[15,316],[316,14],[285,336],[336,9],[9,285],[329,349],[349,350],[350,329],[374,380],[380,252],[252,374],[318,402],[402,403],[403,318],[6,197],[197,419],[419,6],[318,319],[319,325],[325,318],[367,364],[364,365],[365,367],[435,367],[367,397],[397,435],[344,438],[438,439],[439,344],[272,271],[271,311],[311,272],[195,5],[5,281],[281,195],[273,287],[287,291],[291,273],[396,428],[428,199],[199,396],[311,271],[271,268],[268,311],[283,444],[444,445],[445,283],[373,254],[254,339],[339,373],[282,334],[334,296],[296,282],[449,347],[347,346],[346,449],[264,447],[447,454],[454,264],[336,296],[296,299],[299,336],[338,10],[10,151],[151,338],[278,439],[439,455],[455,278],[292,407],[407,415],[415,292],[358,371],[371,355],[355,358],[340,345],[345,372],[372,340],[346,347],[347,280],[280,346],[442,443],[443,282],[282,442],[19,94],[94,370],[370,19],[441,442],[442,295],[295,441],[248,419],[419,197],[197,248],[263,255],[255,359],[359,263],[440,275],[275,274],[274,440],[300,383],[383,368],[368,300],[351,412],[412,465],[465,351],[263,467],[467,466],[466,263],[301,368],[368,389],[389,301],[395,378],[378,379],[379,395],[412,351],[351,419],[419,412],[436,426],[426,322],[322,436],[2,164],[164,393],[393,2],[370,462],[462,461],[461,370],[164,0],[0,267],[267,164],[302,11],[11,12],[12,302],[268,12],[12,13],[13,268],[293,300],[300,301],[301,293],[446,261],[261,340],[340,446],[330,266],[266,425],[425,330],[426,423],[423,391],[391,426],[429,355],[355,437],[437,429],[391,327],[327,326],[326,391],[440,457],[457,438],[438,440],[341,382],[382,362],[362,341],[459,457],[457,461],[461,459],[434,430],[430,394],[394,434],[414,463],[463,362],[362,414],[396,369],[369,262],[262,396],[354,461],[461,457],[457,354],[316,403],[403,402],[402,316],[315,404],[404,403],[403,315],[314,405],[405,404],[404,314],[313,406],[406,405],[405,313],[421,418],[418,406],[406,421],[366,401],[401,361],[361,366],[306,408],[408,407],[407,306],[291,409],[409,408],[408,291],[287,410],[410,409],[409,287],[432,436],[436,410],[410,432],[434,416],[416,411],[411,434],[264,368],[368,383],[383,264],[309,438],[438,457],[457,309],[352,376],[376,401],[401,352],[274,275],[275,4],[4,274],[421,428],[428,262],[262,421],[294,327],[327,358],[358,294],[433,416],[416,367],[367,433],[289,455],[455,439],[439,289],[462,370],[370,326],[326,462],[2,326],[326,370],[370,2],[305,460],[460,455],[455,305],[254,449],[449,448],[448,254],[255,261],[261,446],[446,255],[253,450],[450,449],[449,253],[252,451],[451,450],[450,252],[256,452],[452,451],[451,256],[341,453],[453,452],[452,341],[413,464],[464,463],[463,413],[441,413],[413,414],[414,441],[258,442],[442,441],[441,258],[257,443],[443,442],[442,257],[259,444],[444,443],[443,259],[260,445],[445,444],[444,260],[467,342],[342,445],[445,467],[459,458],[458,250],[250,459],[289,392],[392,290],[290,289],[290,328],[328,460],[460,290],[376,433],[433,435],[435,376],[250,290],[290,392],[392,250],[411,416],[416,433],[433,411],[341,463],[463,464],[464,341],[453,464],[464,465],[465,453],[357,465],[465,412],[412,357],[343,412],[412,399],[399,343],[360,363],[363,440],[440,360],[437,399],[399,456],[456,437],[420,456],[456,363],[363,420],[401,435],[435,288],[288,401],[372,383],[383,353],[353,372],[339,255],[255,249],[249,339],[448,261],[261,255],[255,448],[133,243],[243,190],[190,133],[133,155],[155,112],[112,133],[33,246],[246,247],[247,33],[33,130],[130,25],[25,33],[398,384],[384,286],[286,398],[362,398],[398,414],[414,362],[362,463],[463,341],[341,362],[263,359],[359,467],[467,263],[263,249],[249,255],[255,263],[466,467],[467,260],[260,466],[75,60],[60,166],[166,75],[238,239],[239,79],[79,238],[162,127],[127,139],[139,162],[72,11],[11,37],[37,72],[121,232],[232,120],[120,121],[73,72],[72,39],[39,73],[114,128],[128,47],[47,114],[233,232],[232,128],[128,233],[103,104],[104,67],[67,103],[152,175],[175,148],[148,152],[119,118],[118,101],[101,119],[74,73],[73,40],[40,74],[107,9],[9,108],[108,107],[49,48],[48,131],[131,49],[32,194],[194,211],[211,32],[184,74],[74,185],[185,184],[191,80],[80,183],[183,191],[185,40],[40,186],[186,185],[119,230],[230,118],[118,119],[210,202],[202,214],[214,210],[84,83],[83,17],[17,84],[77,76],[76,146],[146,77],[161,160],[160,30],[30,161],[190,56],[56,173],[173,190],[182,106],[106,194],[194,182],[138,135],[135,192],[192,138],[129,203],[203,98],[98,129],[54,21],[21,68],[68,54],[5,51],[51,4],[4,5],[145,144],[144,23],[23,145],[90,77],[77,91],[91,90],[207,205],[205,187],[187,207],[83,201],[201,18],[18,83],[181,91],[91,182],[182,181],[180,90],[90,181],[181,180],[16,85],[85,17],[17,16],[205,206],[206,36],[36,205],[176,148],[148,140],[140,176],[165,92],[92,39],[39,165],[245,193],[193,244],[244,245],[27,159],[159,28],[28,27],[30,247],[247,161],[161,30],[174,236],[236,196],[196,174],[103,54],[54,104],[104,103],[55,193],[193,8],[8,55],[111,117],[117,31],[31,111],[221,189],[189,55],[55,221],[240,98],[98,99],[99,240],[142,126],[126,100],[100,142],[219,166],[166,218],[218,219],[112,155],[155,26],[26,112],[198,209],[209,131],[131,198],[169,135],[135,150],[150,169],[114,47],[47,217],[217,114],[224,223],[223,53],[53,224],[220,45],[45,134],[134,220],[32,211],[211,140],[140,32],[109,67],[67,108],[108,109],[146,43],[43,91],[91,146],[231,230],[230,120],[120,231],[113,226],[226,247],[247,113],[105,63],[63,52],[52,105],[241,238],[238,242],[242,241],[124,46],[46,156],[156,124],[95,78],[78,96],[96,95],[70,46],[46,63],[63,70],[116,143],[143,227],[227,116],[116,123],[123,111],[111,116],[1,44],[44,19],[19,1],[3,236],[236,51],[51,3],[207,216],[216,205],[205,207],[26,154],[154,22],[22,26],[165,39],[39,167],[167,165],[199,200],[200,208],[208,199],[101,36],[36,100],[100,101],[43,57],[57,202],[202,43],[242,20],[20,99],[99,242],[56,28],[28,157],[157,56],[124,35],[35,113],[113,124],[29,160],[160,27],[27,29],[211,204],[204,210],[210,211],[124,113],[113,46],[46,124],[106,43],[43,204],[204,106],[96,62],[62,77],[77,96],[227,137],[137,116],[116,227],[73,41],[41,72],[72,73],[36,203],[203,142],[142,36],[235,64],[64,240],[240,235],[48,49],[49,64],[64,48],[42,41],[41,74],[74,42],[214,212],[212,207],[207,214],[183,42],[42,184],[184,183],[210,169],[169,211],[211,210],[140,170],[170,176],[176,140],[104,105],[105,69],[69,104],[193,122],[122,168],[168,193],[50,123],[123,187],[187,50],[89,96],[96,90],[90,89],[66,65],[65,107],[107,66],[179,89],[89,180],[180,179],[119,101],[101,120],[120,119],[68,63],[63,104],[104,68],[234,93],[93,227],[227,234],[16,15],[15,85],[85,16],[209,129],[129,49],[49,209],[15,14],[14,86],[86,15],[107,55],[55,9],[9,107],[120,100],[100,121],[121,120],[153,145],[145,22],[22,153],[178,88],[88,179],[179,178],[197,6],[6,196],[196,197],[89,88],[88,96],[96,89],[135,138],[138,136],[136,135],[138,215],[215,172],[172,138],[218,115],[115,219],[219,218],[41,42],[42,81],[81,41],[5,195],[195,51],[51,5],[57,43],[43,61],[61,57],[208,171],[171,199],[199,208],[41,81],[81,38],[38,41],[224,53],[53,225],[225,224],[24,144],[144,110],[110,24],[105,52],[52,66],[66,105],[118,229],[229,117],[117,118],[227,34],[34,234],[234,227],[66,107],[107,69],[69,66],[10,109],[109,151],[151,10],[219,48],[48,235],[235,219],[183,62],[62,191],[191,183],[142,129],[129,126],[126,142],[116,111],[111,143],[143,116],[118,117],[117,50],[50,118],[223,222],[222,52],[52,223],[94,19],[19,141],[141,94],[222,221],[221,65],[65,222],[196,3],[3,197],[197,196],[45,220],[220,44],[44,45],[156,70],[70,139],[139,156],[188,122],[122,245],[245,188],[139,71],[71,162],[162,139],[149,170],[170,150],[150,149],[122,188],[188,196],[196,122],[206,216],[216,92],[92,206],[164,2],[2,167],[167,164],[242,141],[141,241],[241,242],[0,164],[164,37],[37,0],[11,72],[72,12],[12,11],[12,38],[38,13],[13,12],[70,63],[63,71],[71,70],[31,226],[226,111],[111,31],[36,101],[101,205],[205,36],[203,206],[206,165],[165,203],[126,209],[209,217],[217,126],[98,165],[165,97],[97,98],[237,220],[220,218],[218,237],[237,239],[239,241],[241,237],[210,214],[214,169],[169,210],[140,171],[171,32],[32,140],[241,125],[125,237],[237,241],[179,86],[86,178],[178,179],[180,85],[85,179],[179,180],[181,84],[84,180],[180,181],[182,83],[83,181],[181,182],[194,201],[201,182],[182,194],[177,137],[137,132],[132,177],[184,76],[76,183],[183,184],[185,61],[61,184],[184,185],[186,57],[57,185],[185,186],[216,212],[212,186],[186,216],[192,214],[214,187],[187,192],[139,34],[34,156],[156,139],[218,79],[79,237],[237,218],[147,123],[123,177],[177,147],[45,44],[44,4],[4,45],[208,201],[201,32],[32,208],[98,64],[64,129],[129,98],[192,213],[213,138],[138,192],[235,59],[59,219],[219,235],[141,242],[242,97],[97,141],[97,2],[2,141],[141,97],[240,75],[75,235],[235,240],[229,24],[24,228],[228,229],[31,25],[25,226],[226,31],[230,23],[23,229],[229,230],[231,22],[22,230],[230,231],[232,26],[26,231],[231,232],[233,112],[112,232],[232,233],[244,189],[189,243],[243,244],[189,221],[221,190],[190,189],[222,28],[28,221],[221,222],[223,27],[27,222],[222,223],[224,29],[29,223],[223,224],[225,30],[30,224],[224,225],[113,247],[247,225],[225,113],[99,60],[60,240],[240,99],[213,147],[147,215],[215,213],[60,20],[20,166],[166,60],[192,187],[187,213],[213,192],[243,112],[112,244],[244,243],[244,233],[233,245],[245,244],[245,128],[128,188],[188,245],[188,114],[114,174],[174,188],[134,131],[131,220],[220,134],[174,217],[217,236],[236,174],[236,198],[198,134],[134,236],[215,177],[177,58],[58,215],[156,143],[143,124],[124,156],[25,110],[110,7],[7,25],[31,228],[228,25],[25,31],[264,356],[356,368],[368,264],[0,11],[11,267],[267,0],[451,452],[452,349],[349,451],[267,302],[302,269],[269,267],[350,357],[357,277],[277,350],[350,452],[452,357],[357,350],[299,333],[333,297],[297,299],[396,175],[175,377],[377,396],[280,347],[347,330],[330,280],[269,303],[303,270],[270,269],[151,9],[9,337],[337,151],[344,278],[278,360],[360,344],[424,418],[418,431],[431,424],[270,304],[304,409],[409,270],[272,310],[310,407],[407,272],[322,270],[270,410],[410,322],[449,450],[450,347],[347,449],[432,422],[422,434],[434,432],[18,313],[313,17],[17,18],[291,306],[306,375],[375,291],[259,387],[387,260],[260,259],[424,335],[335,418],[418,424],[434,364],[364,416],[416,434],[391,423],[423,327],[327,391],[301,251],[251,298],[298,301],[275,281],[281,4],[4,275],[254,373],[373,253],[253,254],[375,307],[307,321],[321,375],[280,425],[425,411],[411,280],[200,421],[421,18],[18,200],[335,321],[321,406],[406,335],[321,320],[320,405],[405,321],[314,315],[315,17],[17,314],[423,426],[426,266],[266,423],[396,377],[377,369],[369,396],[270,322],[322,269],[269,270],[413,417],[417,464],[464,413],[385,386],[386,258],[258,385],[248,456],[456,419],[419,248],[298,284],[284,333],[333,298],[168,417],[417,8],[8,168],[448,346],[346,261],[261,448],[417,413],[413,285],[285,417],[326,327],[327,328],[328,326],[277,355],[355,329],[329,277],[309,392],[392,438],[438,309],[381,382],[382,256],[256,381],[279,429],[429,360],[360,279],[365,364],[364,379],[379,365],[355,277],[277,437],[437,355],[282,443],[443,283],[283,282],[281,275],[275,363],[363,281],[395,431],[431,369],[369,395],[299,297],[297,337],[337,299],[335,273],[273,321],[321,335],[348,450],[450,349],[349,348],[359,446],[446,467],[467,359],[283,293],[293,282],[282,283],[250,458],[458,462],[462,250],[300,276],[276,383],[383,300],[292,308],[308,325],[325,292],[283,276],[276,293],[293,283],[264,372],[372,447],[447,264],[346,352],[352,340],[340,346],[354,274],[274,19],[19,354],[363,456],[456,281],[281,363],[426,436],[436,425],[425,426],[380,381],[381,252],[252,380],[267,269],[269,393],[393,267],[421,200],[200,428],[428,421],[371,266],[266,329],[329,371],[432,287],[287,422],[422,432],[290,250],[250,328],[328,290],[385,258],[258,384],[384,385],[446,265],[265,342],[342,446],[386,387],[387,257],[257,386],[422,424],[424,430],[430,422],[445,342],[342,276],[276,445],[422,273],[273,424],[424,422],[306,292],[292,307],[307,306],[352,366],[366,345],[345,352],[268,271],[271,302],[302,268],[358,423],[423,371],[371,358],[327,294],[294,460],[460,327],[331,279],[279,294],[294,331],[303,271],[271,304],[304,303],[436,432],[432,427],[427,436],[304,272],[272,408],[408,304],[395,394],[394,431],[431,395],[378,395],[395,400],[400,378],[296,334],[334,299],[299,296],[6,351],[351,168],[168,6],[376,352],[352,411],[411,376],[307,325],[325,320],[320,307],[285,295],[295,336],[336,285],[320,319],[319,404],[404,320],[329,330],[330,349],[349,329],[334,293],[293,333],[333,334],[366,323],[323,447],[447,366],[316,15],[15,315],[315,316],[331,358],[358,279],[279,331],[317,14],[14,316],[316,317],[8,285],[285,9],[9,8],[277,329],[329,350],[350,277],[253,374],[374,252],[252,253],[319,318],[318,403],[403,319],[351,6],[6,419],[419,351],[324,318],[318,325],[325,324],[397,367],[367,365],[365,397],[288,435],[435,397],[397,288],[278,344],[344,439],[439,278],[310,272],[272,311],[311,310],[248,195],[195,281],[281,248],[375,273],[273,291],[291,375],[175,396],[396,199],[199,175],[312,311],[311,268],[268,312],[276,283],[283,445],[445,276],[390,373],[373,339],[339,390],[295,282],[282,296],[296,295],[448,449],[449,346],[346,448],[356,264],[264,454],[454,356],[337,336],[336,299],[299,337],[337,338],[338,151],[151,337],[294,278],[278,455],[455,294],[308,292],[292,415],[415,308],[429,358],[358,355],[355,429],[265,340],[340,372],[372,265],[352,346],[346,280],[280,352],[295,442],[442,282],[282,295],[354,19],[19,370],[370,354],[285,441],[441,295],[295,285],[195,248],[248,197],[197,195],[457,440],[440,274],[274,457],[301,300],[300,368],[368,301],[417,351],[351,465],[465,417],[251,301],[301,389],[389,251],[394,395],[395,379],[379,394],[399,412],[412,419],[419,399],[410,436],[436,322],[322,410],[326,2],[2,393],[393,326],[354,370],[370,461],[461,354],[393,164],[164,267],[267,393],[268,302],[302,12],[12,268],[312,268],[268,13],[13,312],[298,293],[293,301],[301,298],[265,446],[446,340],[340,265],[280,330],[330,425],[425,280],[322,426],[426,391],[391,322],[420,429],[429,437],[437,420],[393,391],[391,326],[326,393],[344,440],[440,438],[438,344],[458,459],[459,461],[461,458],[364,434],[434,394],[394,364],[428,396],[396,262],[262,428],[274,354],[354,457],[457,274],[317,316],[316,402],[402,317],[316,315],[315,403],[403,316],[315,314],[314,404],[404,315],[314,313],[313,405],[405,314],[313,421],[421,406],[406,313],[323,366],[366,361],[361,323],[292,306],[306,407],[407,292],[306,291],[291,408],[408,306],[291,287],[287,409],[409,291],[287,432],[432,410],[410,287],[427,434],[434,411],[411,427],[372,264],[264,383],[383,372],[459,309],[309,457],[457,459],[366,352],[352,401],[401,366],[1,274],[274,4],[4,1],[418,421],[421,262],[262,418],[331,294],[294,358],[358,331],[435,433],[433,367],[367,435],[392,289],[289,439],[439,392],[328,462],[462,326],[326,328],[94,2],[2,370],[370,94],[289,305],[305,455],[455,289],[339,254],[254,448],[448,339],[359,255],[255,446],[446,359],[254,253],[253,449],[449,254],[253,252],[252,450],[450,253],[252,256],[256,451],[451,252],[256,341],[341,452],[452,256],[414,413],[413,463],[463,414],[286,441],[441,414],[414,286],[286,258],[258,441],[441,286],[258,257],[257,442],[442,258],[257,259],[259,443],[443,257],[259,260],[260,444],[444,259],[260,467],[467,445],[445,260],[309,459],[459,250],[250,309],[305,289],[289,290],[290,305],[305,290],[290,460],[460,305],[401,376],[376,435],[435,401],[309,250],[250,392],[392,309],[376,411],[411,433],[433,376],[453,341],[341,464],[464,453],[357,453],[453,465],[465,357],[343,357],[357,412],[412,343],[437,343],[343,399],[399,437],[344,360],[360,440],[440,344],[420,437],[437,456],[456,420],[360,420],[420,363],[363,360],[361,401],[401,288],[288,361],[265,372],[372,353],[353,265],[390,339],[339,249],[249,390],[339,448],[448,255],[255,339]]),y("matrixDataToMatrix",function(t){for(var e=t.getCols(),n=t.getRows(),r=t.getPackedDataList(),o=[],l=0;l<n;l++)o.push(Array(e));for(l=0;l<n;l++)for(var s=0;s<e;s++){var c=t.getLayout()===1?l*e+s:s*n+l;o[l][s]=r[c]}return o}),y("VERSION","0.4.1633559619")}).call(Yt);var c1={};(function(){function i(a){var f=0;return function(){return f<a.length?{done:!1,value:a[f++]}:{done:!0}}}var u=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,f,b){return a==Array.prototype||a==Object.prototype||(a[f]=b.value),a};function p(a){a=[typeof globalThis=="object"&&globalThis,a,typeof window=="object"&&window,typeof self=="object"&&self,typeof Yt=="object"&&Yt];for(var f=0;f<a.length;++f){var b=a[f];if(b&&b.Math==Math)return b}throw Error("Cannot find global object")}var _=p(this);function v(a,f){if(f)t:{var b=_;a=a.split(".");for(var y=0;y<a.length-1;y++){var z=a[y];if(!(z in b))break t;b=b[z]}a=a[a.length-1],y=b[a],f=f(y),f!=y&&f!=null&&u(b,a,{configurable:!0,writable:!0,value:f})}}v("Symbol",function(a){function f(rt){if(this instanceof f)throw new TypeError("Symbol is not a constructor");return new b(y+(rt||"")+"_"+z++,rt)}function b(rt,g){this.g=rt,u(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;b.prototype.toString=function(){return this.g};var y="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",z=0;return f}),v("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var f="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),b=0;b<f.length;b++){var y=_[f[b]];typeof y=="function"&&typeof y.prototype[a]!="function"&&u(y.prototype,a,{configurable:!0,writable:!0,value:function(){return O(i(this))}})}return a});function O(a){return a={next:a},a[Symbol.iterator]=function(){return this},a}function S(a){var f=typeof Symbol<"u"&&Symbol.iterator&&a[Symbol.iterator];return f?f.call(a):{next:i(a)}}function C(){this.i=!1,this.g=null,this.o=void 0,this.j=1,this.m=0,this.h=null}function L(a){if(a.i)throw new TypeError("Generator is already running");a.i=!0}C.prototype.l=function(a){this.o=a};function j(a,f){a.h={F:f,G:!0},a.j=a.m}C.prototype.return=function(a){this.h={return:a},this.j=this.m};function U(a){this.g=new C,this.h=a}function K(a,f){L(a.g);var b=a.g.g;return b?Q(a,"return"in b?b.return:function(y){return{value:y,done:!0}},f,a.g.return):(a.g.return(f),q(a))}function Q(a,f,b,y){try{var z=f.call(a.g.g,b);if(!(z instanceof Object))throw new TypeError("Iterator result "+z+" is not an object");if(!z.done)return a.g.i=!1,z;var rt=z.value}catch(g){return a.g.g=null,j(a.g,g),q(a)}return a.g.g=null,y.call(a.g,rt),q(a)}function q(a){for(;a.g.j;)try{var f=a.h(a.g);if(f)return a.g.i=!1,{value:f.value,done:!1}}catch(b){a.g.o=void 0,j(a.g,b)}if(a.g.i=!1,a.g.h){if(f=a.g.h,a.g.h=null,f.G)throw f.F;return{value:f.return,done:!0}}return{value:void 0,done:!0}}function at(a){this.next=function(f){return L(a.g),a.g.g?f=Q(a,a.g.g.next,f,a.g.l):(a.g.l(f),f=q(a)),f},this.throw=function(f){return L(a.g),a.g.g?f=Q(a,a.g.g.throw,f,a.g.l):(j(a.g,f),f=q(a)),f},this.return=function(f){return K(a,f)},this[Symbol.iterator]=function(){return this}}function ut(a){function f(y){return a.next(y)}function b(y){return a.throw(y)}return new Promise(function(y,z){function rt(g){g.done?y(g.value):Promise.resolve(g.value).then(f,b).then(rt,z)}rt(a.next())})}v("Promise",function(a){function f(g){this.h=0,this.i=void 0,this.g=[],this.o=!1;var m=this.j();try{g(m.resolve,m.reject)}catch($){m.reject($)}}function b(){this.g=null}function y(g){return g instanceof f?g:new f(function(m){m(g)})}if(a)return a;b.prototype.h=function(g){if(this.g==null){this.g=[];var m=this;this.i(function(){m.l()})}this.g.push(g)};var z=_.setTimeout;b.prototype.i=function(g){z(g,0)},b.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var m=0;m<g.length;++m){var $=g[m];g[m]=null;try{$()}catch(J){this.j(J)}}}this.g=null},b.prototype.j=function(g){this.i(function(){throw g})},f.prototype.j=function(){function g(J){return function(st){$||($=!0,J.call(m,st))}}var m=this,$=!1;return{resolve:g(this.A),reject:g(this.l)}},f.prototype.A=function(g){if(g===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof f)this.C(g);else{t:switch(typeof g){case"object":var m=g!=null;break t;case"function":m=!0;break t;default:m=!1}m?this.v(g):this.m(g)}},f.prototype.v=function(g){var m=void 0;try{m=g.then}catch($){this.l($);return}typeof m=="function"?this.D(m,g):this.m(g)},f.prototype.l=function(g){this.u(2,g)},f.prototype.m=function(g){this.u(1,g)},f.prototype.u=function(g,m){if(this.h!=0)throw Error("Cannot settle("+g+", "+m+"): Promise already settled in state"+this.h);this.h=g,this.i=m,this.h===2&&this.B(),this.H()},f.prototype.B=function(){var g=this;z(function(){if(g.I()){var m=_.console;typeof m<"u"&&m.error(g.i)}},1)},f.prototype.I=function(){if(this.o)return!1;var g=_.CustomEvent,m=_.Event,$=_.dispatchEvent;return typeof $>"u"?!0:(typeof g=="function"?g=new g("unhandledrejection",{cancelable:!0}):typeof m=="function"?g=new m("unhandledrejection",{cancelable:!0}):(g=_.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g)),g.promise=this,g.reason=this.i,$(g))},f.prototype.H=function(){if(this.g!=null){for(var g=0;g<this.g.length;++g)rt.h(this.g[g]);this.g=null}};var rt=new b;return f.prototype.C=function(g){var m=this.j();g.s(m.resolve,m.reject)},f.prototype.D=function(g,m){var $=this.j();try{g.call(m,$.resolve,$.reject)}catch(J){$.reject(J)}},f.prototype.then=function(g,m){function $(ht,mt){return typeof ht=="function"?function(Xt){try{J(ht(Xt))}catch(Pt){st(Pt)}}:mt}var J,st,wt=new f(function(ht,mt){J=ht,st=mt});return this.s($(g,J),$(m,st)),wt},f.prototype.catch=function(g){return this.then(void 0,g)},f.prototype.s=function(g,m){function $(){switch(J.h){case 1:g(J.i);break;case 2:m(J.i);break;default:throw Error("Unexpected state: "+J.h)}}var J=this;this.g==null?rt.h($):this.g.push($),this.o=!0},f.resolve=y,f.reject=function(g){return new f(function(m,$){$(g)})},f.race=function(g){return new f(function(m,$){for(var J=S(g),st=J.next();!st.done;st=J.next())y(st.value).s(m,$)})},f.all=function(g){var m=S(g),$=m.next();return $.done?y([]):new f(function(J,st){function wt(Xt){return function(Pt){ht[Xt]=Pt,mt--,mt==0&&J(ht)}}var ht=[],mt=0;do ht.push(void 0),mt++,y($.value).s(wt(ht.length-1),st),$=m.next();while(!$.done)})},f});var At=typeof Object.assign=="function"?Object.assign:function(a,f){for(var b=1;b<arguments.length;b++){var y=arguments[b];if(y)for(var z in y)Object.prototype.hasOwnProperty.call(y,z)&&(a[z]=y[z])}return a};v("Object.assign",function(a){return a||At});var Ot=this||self,St={facingMode:"user",width:640,height:480};function Y(a,f){this.video=a,this.i=0,this.h=Object.assign(Object.assign({},St),f)}Y.prototype.stop=function(){var a=this,f,b,y,z;return ut(new at(new U(function(rt){if(a.g){for(f=a.g.getTracks(),b=S(f),y=b.next();!y.done;y=b.next())z=y.value,z.stop();a.g=void 0}rt.j=0})))},Y.prototype.start=function(){var a=this,f;return ut(new at(new U(function(b){return navigator.mediaDevices&&navigator.mediaDevices.getUserMedia||alert("No navigator.mediaDevices.getUserMedia exists."),f=a.h,b.return(navigator.mediaDevices.getUserMedia({video:{facingMode:f.facingMode,width:f.width,height:f.height}}).then(function(y){Ct(a,y)}).catch(function(y){var z="Failed to acquire camera feed: "+y;throw console.error(z),alert(z),y}))})))};function D(a){window.requestAnimationFrame(function(){yt(a)})}function Ct(a,f){a.g=f,a.video.srcObject=f,a.video.onloadedmetadata=function(){a.video.play(),D(a)}}function yt(a){var f=null;a.video.paused||a.video.currentTime===a.i||(a.i=a.video.currentTime,f=a.h.onFrame()),f?f.then(function(){D(a)}):D(a)}var ft=["Camera"],lt=Ot;ft[0]in lt||typeof lt.execScript>"u"||lt.execScript("var "+ft[0]);for(var H;ft.length&&(H=ft.shift());)ft.length||Y===void 0?lt[H]&<[H]!==Object.prototype[H]?lt=lt[H]:lt=lt[H]={}:lt[H]=Y}).call(Yt);const be=[33,7,163,144,145,153,154,155,133,173,157,157,158,159,160,161,246],_e=[263,249,390,373,374,380,381,382,362,398,384,384,385,386,387,388,466],Ee=[70,63,105,66,107],f1=[46,53,52,65,55],xe=[300,293,334,296,336],h1=[276,283,282,295,285],je=[78,191,80,81,82,13,312,311,310,415,308,324,318,402,317,14,87,178,88,95],ke=[61,185,40,39,37,0,267,269,270,409,291,375,321,405,314,17,84,181,91,146],un=[6,197,195,5,4],ln=[98,97,2,328,327],cn=[454,323,361,288,397,365,379,378,400,377,152,148,176,149,150,136,172,58,132,93,234],g1=[468],d1=[473],p1=[10,338,297,332,284,251,389,356,454,323,361,288,397,365,379,378,400,377,152,148,176,149,150,136,172,58,132,93,234,127,162,21,54,103,67,109];var se=(i=>(i.LANDMARKS="landmarks",i.POINTS="points",i.CRUCIBLEAI="crucibleAI",i))(se||{});const v1={landmarks:w1,points:m1,crucibleAI:y1};function y1(i,u){nt(i,u,_e,"rgb(180, 200, 10)",4,!1,!0,!0),nt(i,u,be,"rgb(10, 200, 180)",4,!1,!0,!0),nt(i,u,Ee,"rgb(10, 200, 180)",4,!1,!0,!1),nt(i,u,f1,"rgb(10, 200, 180)",4,!1,!0,!1),nt(i,u,xe,"rgb(180, 200, 10)",4,!1,!0,!1),nt(i,u,h1,"rgb(180, 200, 10)",4,!1,!0,!1),nt(i,u,ke,"rgb(10, 180, 10)",4,!1,!0,!0),nt(i,u,je,"rgb(10, 180, 10)",4,!1,!0,!0),nt(i,u,p1,"rgb(10, 200, 10)",4,!1,!0,!0),dt(i,u,g1,"rgb(250, 200, 10)",2,"square"),dt(i,u,d1,"rgb(10, 200, 250)",2,"square")}function w1(i,u){nt(i,u,_e,"magenta",4,!0,!1,!0),nt(i,u,be,"magenta",4,!0,!1,!0),nt(i,u,Ee,"yellow",4,!1,!0,!1),nt(i,u,xe,"yellow",4,!1,!0,!1),nt(i,u,ke,"cyan",4,!0,!1,!0),nt(i,u,je,"blue",4,!0,!1,!0),nt(i,u,un,"orange",4,!1,!0,!1),nt(i,u,ln,"orange",4,!1,!0,!1),nt(i,u,cn,"lime",4,!1,!0,!1)}function m1(i,u){dt(i,u,_e,"black",2),dt(i,u,be,"black",2),dt(i,u,Ee,"black",2),dt(i,u,xe,"black",2),dt(i,u,ke,"black",2),dt(i,u,je,"black",2),dt(i,u,un,"black",2),dt(i,u,ln,"black",2),dt(i,u,cn,"black",2)}function nt(i,u,p,_="lime",v=4,O=!1,S=!0,C=!1){i.save(),i.beginPath(),i.strokeStyle=_,i.fillStyle=_,i.lineJoin="round",i.lineWidth=v;for(const[L,j]of p.entries()){const U=u[j];L===0?i.moveTo(U.x*i.canvas.width,U.y*i.canvas.height):i.lineTo(U.x*i.canvas.width,U.y*i.canvas.height)}C&&i.closePath(),O&&i.fill(),S&&i.stroke(),i.restore()}function dt(i,u,p,_="black",v=2.5,O="circle",S=!0,C=!1){i.save(),i.fillStyle=_,i.lineJoin="round",i.strokeStyle=_;for(const[L,j]of p.entries()){const U=u[j];i.beginPath(),O==="circle"?(i.ellipse(U.x*i.canvas.width,U.y*i.canvas.height,v,v,0,0,2*Math.PI),i.closePath()):O==="square"&&i.rect(U.x*i.canvas.width-v,U.y*i.canvas.height-v,v*2,v*2),C&&i.stroke(),S&&i.fill()}i.restore()}function b1(i){zn(i,"svelte-39b13y","canvas.svelte-39b13y{border-radius:0.5rem;--tw-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.capture-btn.svelte-39b13y{z-index:10;border-radius:0.5rem;--tw-bg-opacity:1;background-color:rgb(248 250 252 / var(--tw-bg-opacity));padding-left:0.5rem;padding-right:0.5rem;padding-top:0.25rem;padding-bottom:0.25rem;font-weight:700;--tw-text-opacity:1;color:rgb(0 0 0 / var(--tw-text-opacity));--tw-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.capture-btn.svelte-39b13y:hover{--tw-bg-opacity:1;background-color:rgb(207 250 254 / var(--tw-bg-opacity))}.container.svelte-39b13y *{color:black !important}")}function _1(i){let u,p,_,v,O,S,C,L,j,U,K;return{c(){u=Mt("div"),p=Mt("video"),_=ve(),v=Mt("canvas"),O=ve(),S=Mt("div"),C=Mt("button"),C.textContent="Snap",L=ve(),j=Mt("canvas"),vt(p,"class","hidden"),p.muted=!0,p.playsInline=!0,vt(v,"width",`512
px`),vt(v,"height",`512
px`),vt(v,"class","w-full svelte-39b13y"),vt(C,"class","capture-btn svelte-39b13y"),vt(j,"width",`512
px`),vt(j,"height",`512
px`),vt(j,"class","w-32 svelte-39b13y"),vt(S,"class","flex absolute bottom-1 left-1 items-end"),vt(u,"class","relative container svelte-39b13y")},m(Q,q){Xn(Q,u,q),Et(u,p),i[4](p),Et(u,_),Et(u,v),i[5](v),Et(u,O),Et(u,S),Et(S,C),Et(S,L),Et(S,j),i[6](j),U||(K=Dn(C,"click",i[3]),U=!0)},p:zt,i:zt,o:zt,d(Q){Q&&sn(u),i[4](null),i[5](null),i[6](null),U=!1,K()}}}function E1(i,u,p){const _=l1.FaceMesh||window.FaceMesh,v=c1.Camera||window.Camera;let O,S,C,L,j,U,K,Q,q=se.LANDMARKS,at=5;Zn(()=>{if(Q=document.getElementById("canvas-root"),Q._data||(Q._data={image:null}),Q.dataset.mode){const yt=Q.dataset.mode;q=se[yt.toUpperCase()],at=parseInt(Q.dataset.maxNumFaces)||5}C=S.getContext("2d"),U=document.createElement("canvas"),K=U.getContext("2d"),U.width=S.width,U.height=S.height;const D=new _({locateFile:yt=>`https://cdn.jsdelivr.net/npm/@mediapipe/face_mesh/${yt}`});D.setOptions({maxNumFaces:at,refineLandmarks:!0,minDetectionConfidence:.5,minTrackingConfidence:.5}),D.onResults(ut),new v(O,{onFrame:async()=>{await D.send({image:O})},width:512,height:512}).start()});function ut(D){if(C.save(),C.clearRect(0,0,S.width,S.height),C.drawImage(D.image,0,0,S.width,S.height),K.clearRect(0,0,U.width,U.height),D.multiFaceLandmarks)for(const Ct of D.multiFaceLandmarks)v1[q](K,Ct);C.drawImage(U,0,0,S.width,S.height)}function At(){j=L.getContext("2d"),j.save(),j.fillStyle=q===se.POINTS?"white":"black",j.fillRect(0,0,L.width,L.height),j.drawImage(U,0,0,L.width,L.height),q==="points"&&(j.globalCompositeOperation="difference",j.fillStyle="white",j.fillRect(0,0,L.width,L.height),j.drawImage(U,0,0,L.width,L.height)),j.restore(),Q._data.image=L.toDataURL()}function Ot(D){Zt[D?"unshift":"push"](()=>{O=D,p(0,O)})}function St(D){Zt[D?"unshift":"push"](()=>{S=D,p(1,S)})}function Y(D){Zt[D?"unshift":"push"](()=>{L=D,p(2,L)})}return[O,S,L,At,Ot,St,Y]}class x1 extends u1{constructor(u){super(),a1(this,u,E1,_1,$n,{},b1)}}class j1 extends HTMLElement{constructor(){super()}connectedCallback(){const u=this.attachShadow({mode:"open"}),p=document.createElement("style");p.appendChild(document.createTextNode(Bn)),u.appendChild(p),new x1({target:u})}}customElements.define("face-canvas",j1);
|