@mediapipe/tasks-audio 0.10.34 → 0.10.35
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/audio_bundle.cjs +1 -1
- package/audio_bundle.cjs.map +1 -1
- package/audio_bundle.mjs +1 -1
- package/audio_bundle.mjs.map +1 -1
- package/package.json +1 -1
- package/wasm/audio_wasm_internal.js +119 -134
- package/wasm/audio_wasm_internal.wasm +0 -0
- package/wasm/audio_wasm_module_internal.js +122 -137
- package/wasm/audio_wasm_module_internal.wasm +0 -0
- package/wasm/audio_wasm_nosimd_internal.js +119 -134
- package/wasm/audio_wasm_nosimd_internal.wasm +0 -0
package/audio_bundle.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t="undefined"!=typeof self?self:{};function n(n,e){t:{for(var r=["CLOSURE_FLAGS"],i=t,o=0;o<r.length;o++)if(null==(i=i[r[o]])){r=null;break t}r=i}return null!=(n=r&&r[n])?n:e}function e(){throw Error("Invalid UTF8")}function r(t,n){return n=String.fromCharCode.apply(null,n),null==t?n:t+n}let i,o;const s="undefined"!=typeof TextDecoder;let a;const u="undefined"!=typeof TextEncoder;function c(t){if(u)t=(a||=new TextEncoder).encode(t);else{let e=0;const r=new Uint8Array(3*t.length);for(let i=0;i<t.length;i++){var n=t.charCodeAt(i);if(n<128)r[e++]=n;else{if(n<2048)r[e++]=n>>6|192;else{if(n>=55296&&n<=57343){if(n<=56319&&i<t.length){const o=t.charCodeAt(++i);if(o>=56320&&o<=57343){n=1024*(n-55296)+o-56320+65536,r[e++]=n>>18|240,r[e++]=n>>12&63|128,r[e++]=n>>6&63|128,r[e++]=63&n|128;continue}i--}n=65533}r[e++]=n>>12|224,r[e++]=n>>6&63|128}r[e++]=63&n|128}}t=e===r.length?r:r.subarray(0,e)}return t}var l,h=n(610401301,!1),f=n(748402147,!0);function d(){var n=t.navigator;return n&&(n=n.userAgent)?n:""}const g=t.navigator;function p(t){return p[" "](t),t}l=g&&g.userAgentData||null,p[" "]=function(){};const v={};let m=null;function y(t){const n=t.length;let e=3*n/4;e%3?e=Math.floor(e):-1!="=.".indexOf(t[n-1])&&(e=-1!="=.".indexOf(t[n-2])?e-2:e-1);const r=new Uint8Array(e);let i=0;return function(t,n){function e(n){for(;r<t.length;){const n=t.charAt(r++),e=m[n];if(null!=e)return e;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return n}b();let r=0;for(;;){const t=e(-1),r=e(0),i=e(64),o=e(64);if(64===o&&-1===t)break;n(t<<2|r>>4),64!=i&&(n(r<<4&240|i>>2),64!=o&&n(i<<6&192|o))}}(t,(function(t){r[i++]=t})),i!==e?r.subarray(0,i):r}function b(){if(!m){m={};var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),n=["+/=","+/","-_=","-_.","-_"];for(let e=0;e<5;e++){const r=t.concat(n[e].split(""));v[e]=r;for(let t=0;t<r.length;t++){const n=r[t];void 0===m[n]&&(m[n]=t)}}}}var w="undefined"!=typeof Uint8Array,_=!(!(h&&l&&l.brands.length>0)&&(-1!=d().indexOf("Trident")||-1!=d().indexOf("MSIE")))&&"function"==typeof btoa;const S=/[-_.]/g,A={"-":"+",_:"/",".":"="};function I(t){return A[t]||""}function E(t){if(!_)return y(t);t=S.test(t)?t.replace(S,I):t,t=atob(t);const n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var T={};function B(){return L||=new P(null,T)}function U(t){j(T);var n=t.g;return null==(n=null==n||w&&null!=n&&n instanceof Uint8Array?n:"string"==typeof n?E(n):null)?n:t.g=n}var P=class{constructor(t,n){if(j(n),this.g=t,null!=t&&0===t.length)throw Error("ByteString should be constructed with non-empty values")}};let L,N;function j(t){if(t!==T)throw Error("illegal external caller")}function O(t,n){t.__closure__error__context__984382||(t.__closure__error__context__984382={}),t.__closure__error__context__984382.severity=n}function V(){const t=Error("int32");return O(t,"warning"),t}function x(n,e){if(null!=n){var r=N??={},i=r[n]||0;i>=e||(r[n]=i+1,O(n=Error(),"incident"),function(n){t.setTimeout((()=>{throw n}),0)}(n))}}function k(){return"function"==typeof BigInt}var F="function"==typeof Symbol&&"symbol"==typeof Symbol();function M(t,n,e=!1){return"function"==typeof Symbol&&"symbol"==typeof Symbol()?e&&Symbol.for&&t?Symbol.for(t):null!=t?Symbol(t):Symbol():n}var D=M("jas",void 0,!0),G=M(void 0,"1oa"),C=M(void 0,Symbol()),R=M(void 0,"0ubs"),W=M(void 0,"0ubsb"),$=M(void 0,"0actk"),H=M("m_m","O",!0);const z={J:{value:0,configurable:!0,writable:!0,enumerable:!1}},K=Object.defineProperties,J=F?D:"J";var X;const Y=[];function q(t,n){F||J in t||K(t,z),t[J]|=n}function Q(t,n){F||J in t||K(t,z),t[J]=n}Q(Y,7),X=Object.freeze(Y);var Z={};function tt(t,n){return void 0===n?t.g!==nt&&!!(2&(0|t.l[J])):!!(2&n)&&t.g!==nt}const nt={};function et(t,n){if(null!=t)if("string"==typeof t)t=t?new P(t,T):B();else if(t.constructor!==P)if(w&&null!=t&&t instanceof Uint8Array)t=t.length?new P(new Uint8Array(t),T):B();else{if(!n)throw Error();t=void 0}return t}var rt=Object.freeze({});function it(t,n,e){const r=128&n?0:-1,i=t.length;var o;(o=!!i)&&(o=null!=(o=t[i-1])&&"object"==typeof o&&o.constructor===Object);const s=i+(o?-1:0);for(n=128&n?1:0;n<s;n++)e(n-r,t[n]);if(o){t=t[i-1];for(const n in t)!isNaN(n)&&e(+n,t[n])}}var ot={};function st(t){return 128&t?ot:void 0}function at(t){return t.M=!0,t}var ut=at((t=>"number"==typeof t)),ct=at((t=>"string"==typeof t)),lt=at((t=>"boolean"==typeof t)),ht="function"==typeof t.BigInt&&"bigint"==typeof t.BigInt(0);function ft(t){var n=t;if(ct(n)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(n))throw Error(String(n))}else if(ut(n)&&!Number.isSafeInteger(n))throw Error(String(n));return ht?BigInt(t):t=lt(t)?t?"1":"0":ct(t)?t.trim()||"0":String(t)}var dt=at((t=>ht?t>=pt&&t<=mt:"-"===t[0]?yt(t,gt):yt(t,vt)));const gt=Number.MIN_SAFE_INTEGER.toString(),pt=ht?BigInt(Number.MIN_SAFE_INTEGER):void 0,vt=Number.MAX_SAFE_INTEGER.toString(),mt=ht?BigInt(Number.MAX_SAFE_INTEGER):void 0;function yt(t,n){if(t.length>n.length)return!1;if(t.length<n.length||t===n)return!0;for(let e=0;e<t.length;e++){const r=t[e],i=n[e];if(r>i)return!1;if(r<i)return!0}}const bt="function"==typeof Uint8Array.prototype.slice;let wt,_t=0,St=0;function At(t){const n=t>>>0;_t=n,St=(t-n)/4294967296>>>0}function It(t){if(t<0){At(-t);const[n,e]=jt(_t,St);_t=n>>>0,St=e>>>0}else At(t)}function Et(t,n){const e=4294967296*n+(t>>>0);return Number.isSafeInteger(e)?e:Ut(t,n)}function Tt(t,n){return ft(k()?BigInt.asUintN(64,(BigInt(n>>>0)<<BigInt(32))+BigInt(t>>>0)):Ut(t,n))}function Bt(t,n){return k()?ft(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(n))<<BigInt(32))+BigInt.asUintN(32,BigInt(t)))):ft(Lt(t,n))}function Ut(t,n){if(t>>>=0,(n>>>=0)<=2097151)var e=""+(4294967296*n+t);else k()?e=""+(BigInt(n)<<BigInt(32)|BigInt(t)):(t=(16777215&t)+6777216*(e=16777215&(t>>>24|n<<8))+6710656*(n=n>>16&65535),e+=8147497*n,n*=2,t>=1e7&&(e+=t/1e7>>>0,t%=1e7),e>=1e7&&(n+=e/1e7>>>0,e%=1e7),e=n+Pt(e)+Pt(t));return e}function Pt(t){return t=String(t),"0000000".slice(t.length)+t}function Lt(t,n){if(2147483648&n)if(k())t=""+(BigInt(0|n)<<BigInt(32)|BigInt(t>>>0));else{const[e,r]=jt(t,n);t="-"+Ut(e,r)}else t=Ut(t,n);return t}function Nt(t){if(t.length<16)It(Number(t));else if(k())t=BigInt(t),_t=Number(t&BigInt(4294967295))>>>0,St=Number(t>>BigInt(32)&BigInt(4294967295));else{const n=+("-"===t[0]);St=_t=0;const e=t.length;for(let r=n,i=(e-n)%6+n;i<=e;r=i,i+=6){const n=Number(t.slice(r,i));St*=1e6,_t=1e6*_t+n,_t>=4294967296&&(St+=Math.trunc(_t/4294967296),St>>>=0,_t>>>=0)}if(n){const[t,n]=jt(_t,St);_t=t,St=n}}}function jt(t,n){return n=~n,t?t=1+~t:n+=1,[t,n]}function Ot(t){return Array.prototype.slice.call(t)}const Vt="function"==typeof BigInt?BigInt.asIntN:void 0,xt="function"==typeof BigInt?BigInt.asUintN:void 0,kt=Number.isSafeInteger,Ft=Number.isFinite,Mt=Math.trunc;function Dt(t){return null==t||"number"==typeof t?t:"NaN"===t||"Infinity"===t||"-Infinity"===t?Number(t):void 0}const Gt=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function Ct(t){switch(typeof t){case"bigint":return!0;case"number":return Ft(t);case"string":return Gt.test(t);default:return!1}}function Rt(t){if(null==t)return t;if("string"==typeof t&&t)t=+t;else if("number"!=typeof t)return;return Ft(t)?0|t:void 0}function Wt(t){const n=t.length;return("-"===t[0]?n<20||20===n&&t<="-9223372036854775808":n<19||19===n&&t<="9223372036854775807")?t:(Nt(t),Lt(_t,St))}function $t(t){if(t=Mt(t),!kt(t)){It(t);var n=_t,e=St;(t=2147483648&e)&&(e=~e>>>0,0==(n=1+~n>>>0)&&(e=e+1>>>0)),t="number"==typeof(n=Et(n,e))?t?-n:n:t?"-"+n:n}return t}function Ht(t){var n=Mt(Number(t));return kt(n)?String(n):(-1!==(n=t.indexOf("."))&&(t=t.substring(0,n)),Wt(t))}function zt(t){var n=typeof t;return null==t?t:"bigint"===n?ft(Vt(64,t)):Ct(t)?("string"===n?(n=Mt(Number(t)),kt(n)?t=ft(n):(-1!==(n=t.indexOf("."))&&(t=t.substring(0,n)),t=k()?ft(Vt(64,BigInt(t))):ft(Wt(t)))):kt(t)?t=ft($t(t)):(t=Mt(t),kt(t)?t=String(t):(It(t),t=Lt(_t,St)),t=ft(t)),t):void 0}function Kt(t){if("string"!=typeof t)throw Error();return t}function Jt(t){if(null!=t&&"string"!=typeof t)throw Error();return t}function Xt(t){return null==t||"string"==typeof t?t:void 0}function Yt(t,n,e){if(null!=t&&t[H]===Z)return t;if(Array.isArray(t)){var r=0|t[J];return(e=r|32&e|2&e)!==r&&Q(t,e),new n(t)}}function qt(t){return C?t[C]:void 0}function Qt(t,n){for(const e in t)!isNaN(e)&&n(t,+e,t[e])}var Zt=class{};function tn(t,n){n<100||x(R,1)}function nn(t,n,e,r){const i=void 0!==r;r=!!r;var o,s=C;!i&&F&&s&&(o=t[s])&&Qt(o,tn),s=[];var a=t.length;let u;o=4294967295;let c=!1;const l=!!(64&n),h=l?128&n?0:-1:void 0;1&n||(u=a&&t[a-1],null!=u&&"object"==typeof u&&u.constructor===Object?o=--a:u=void 0,!l||128&n||i||(c=!0,o=o-h+h)),n=void 0;for(var f=0;f<a;f++){let i=t[f];if(null!=i&&null!=(i=e(i,r)))if(l&&f>=o){const t=f-h;(n??={})[t]=i}else s[f]=i}if(u)for(let t in u){if(null==(a=u[t])||null==(a=e(a,r)))continue;let i;f=+t,l&&!Number.isNaN(f)&&(i=f+h)<o?s[i]=a:(n??={})[t]=a}return n&&(c?s.push(n):s[o]=n),i&&C&&(t=qt(t))&&t instanceof Zt&&(s[C]=function(t){const n=new Zt;return Qt(t,((t,e,r)=>{n[e]=Ot(r)})),n.g=t.g,n}(t)),s}function en(t){switch(typeof t){case"number":return Number.isFinite(t)?t:""+t;case"bigint":return dt(t)?Number(t):""+t;case"boolean":return t?1:0;case"object":if(Array.isArray(t)){var n=0|t[J];return 0===t.length&&1&n?void 0:nn(t,n,en)}if(null!=t&&t[H]===Z)return sn(t);if(t instanceof P){if(null==(n=t.g))t="";else if("string"==typeof n)t=n;else{if(_){for(var e="",r=0,i=n.length-10240;r<i;)e+=String.fromCharCode.apply(null,n.subarray(r,r+=10240));e+=String.fromCharCode.apply(null,r?n.subarray(r):n),n=btoa(e)}else{void 0===e&&(e=0),b(),e=v[e],r=Array(Math.floor(n.length/3)),i=e[64]||"";let t=0,c=0;for(;t<n.length-2;t+=3){var o=n[t],s=n[t+1],a=n[t+2],u=e[o>>2];o=e[(3&o)<<4|s>>4],s=e[(15&s)<<2|a>>6],a=e[63&a],r[c++]=u+o+s+a}switch(u=0,a=i,n.length-t){case 2:a=e[(15&(u=n[t+1]))<<2]||i;case 1:n=n[t],r[c]=e[n>>2]+e[(3&n)<<4|u>>4]+a+i}n=r.join("")}t=t.g=n}return t}return}return t}let rn,on;function sn(t){return nn(t=t.l,0|t[J],en)}function an(t,n){return un(t,n[0],n[1])}function un(t,n,e,r=0){if(null==t){var i=32;e?(t=[e],i|=128):t=[],n&&(i=-16760833&i|(1023&n)<<14)}else{if(!Array.isArray(t))throw Error("narr");if(i=0|t[J],f&&1&i)throw Error("rfarr");if(2048&i&&!(2&i)&&function(){if(f)throw Error("carr");x($,5)}(),256&i)throw Error("farr");if(64&i)return(i|r)!==i&&Q(t,i|r),t;if(e&&(i|=128,e!==t[0]))throw Error("mid");t:{i|=64;var o=(e=t).length;if(o){var s=o-1;const t=e[s];if(null!=t&&"object"==typeof t&&t.constructor===Object){if((s-=n=128&i?0:-1)>=1024)throw Error("pvtlmt");for(var a in t)(o=+a)<s&&(e[o+n]=t[a],delete t[a]);i=-16760833&i|(1023&s)<<14;break t}}if(n){if((a=Math.max(n,o-(128&i?0:-1)))>1024)throw Error("spvt");i=-16760833&i|(1023&a)<<14}}}return Q(t,64|i|r),t}function cn(t,n){if("object"!=typeof t)return t;if(Array.isArray(t)){var e=0|t[J];return 0===t.length&&1&e?t=void 0:2&e||(!n||4096&e||16&e?t=hn(t,e,!1,n&&!(16&e)):(q(t,34),4&e&&Object.freeze(t))),t}return null!=t&&t[H]===Z?tt(t,e=0|(n=t.l)[J])?t:vn(t,n,e)?ln(t,n):hn(n,e):t instanceof P?t:void 0}function ln(t,n,e){return t=new t.constructor(n),e&&(t.g=nt),t.m=nt,t}function hn(t,n,e,r){return r??=!!(34&n),t=nn(t,n,cn,r),r=32,e&&(r|=2),Q(t,n=16769217&n|r),t}function fn(t){const n=t.l,e=0|n[J];return tt(t,e)?vn(t,n,e)?ln(t,n,!0):new t.constructor(hn(n,e,!1)):t}function dn(t){if(t.g!==nt)return!1;var n=t.l;return q(n=hn(n,0|n[J]),2048),t.l=n,t.g=void 0,t.m=void 0,!0}function gn(t){if(!dn(t)&&tt(t,0|t.l[J]))throw Error()}function pn(t,n){void 0===n&&(n=0|t[J]),32&n&&!(4096&n)&&Q(t,4096|n)}function vn(t,n,e){return!!(2&e)||!(!(32&e)||4096&e)&&(Q(n,2|e),t.g=nt,!0)}const mn=ft(0);function yn(t,n,e,r){if(null!==(t=bn(t.l,n,e,r)))return t}function bn(t,n,e,r){if(-1===n)return null;const i=n+(e?0:-1),o=t.length-1;let s,a;if(!(o<1+(e?0:-1))){if(i>=o)if(s=t[o],null!=s&&"object"==typeof s&&s.constructor===Object)e=s[n],a=!0;else{if(i!==o)return;e=s}else e=t[i];if(r&&null!=e){if(null==(r=r(e)))return r;if(!Object.is(r,e))return a?s[n]=r:t[i]=r,r}return e}}function wn(t,n,e,r){gn(t),_n(t=t.l,0|t[J],n,e,r)}function _n(t,n,e,r,i){const o=e+(i?0:-1);var s=t.length-1;if(s>=1+(i?0:-1)&&o>=s){const i=t[s];if(null!=i&&"object"==typeof i&&i.constructor===Object)return i[e]=r,n}return o<=s?(t[o]=r,n):(void 0!==r&&(e>=(s=(n??=0|t[J])>>14&1023||536870912)?null!=r&&(t[s+(i?0:-1)]={[e]:r}):t[o]=r),n)}function Sn(t,n,e,r,i,o,s,a){let u=n;return 1===o||4===o&&(2&n||!(16&n)&&32&r)?En(n)||((n|=!t.length||s&&!(4096&n)||32&r&&!(4096&n||16&n)?2:256)!==u&&Q(t,n),Object.freeze(t)):(2===o&&En(n)&&(t=Ot(t),u=0,n=Dn(n,r),r=_n(e,r,i,t)),En(n)||(a||(n|=16),n!==u&&Q(t,n))),2&n||!(4096&n||16&n)||pn(e,r),t}function An(t,n,e){return t=bn(t,n,e),Array.isArray(t)?t:X}function In(t,n){return 2&n&&(t|=2),1|t}function En(t){return!!(2&t)&&!!(4&t)||!!(256&t)}function Tn(t){return et(t,!0)}function Bn(t,n,e){gn(t);let r=0|(t=t.l)[J];if(null==e)_n(t,r,n);else{var i=e===X?7:0|e[J],o=i,s=En(i),a=s||Object.isFrozen(e);for(s||(i=0),a||(e=Ot(e),o=0,i=Dn(i,r),a=!1),i|=5,i|=(4&i?512&i?512:1024&i?1024:0:void 0)??1024,s=0;s<e.length;s++){const t=e[s],n=Kt(t);Object.is(t,n)||(a&&(e=Ot(e),o=0,i=Dn(i,r),a=!1),e[s]=n)}i!==o&&(a&&(e=Ot(e),i=Dn(i,r)),Q(e,i)),_n(t,r,n,e)}}function Un(t,n,e){if(2&n)throw Error();const r=st(n);let i=An(t,e,r),o=i===X?7:0|i[J],s=In(o,n);return(2&s||En(s)||16&s)&&(s===o||En(s)||Q(i,s),i=Ot(i),o=0,s=Dn(s,n),_n(t,n,e,i,r)),s&=-13,s!==o&&Q(i,s),i}function Pn(t){if(F)return t[G]??(t[G]=new Map);if(G in t)return t[G];const n=new Map;return Object.defineProperty(t,G,{value:n}),n}function Ln(t,n,e,r,i){const o=Pn(t),s=Nn(o,t,n,e,i);return s!==r&&(s&&(n=_n(t,n,s,void 0,i)),o.set(e,r)),n}function Nn(t,n,e,r,i){let o=t.get(r);if(null!=o)return o;o=0;for(let t=0;t<r.length;t++){const s=r[t];null!=bn(n,s,i)&&(0!==o&&(e=_n(n,e,o,void 0,i)),o=s)}return t.set(r,o),o}function jn(t,n,e){let r=0|t[J];const i=st(r),o=bn(t,e,i);let s;if(null!=o&&o[H]===Z){if(!tt(o))return dn(o),o.l;s=o.l}else Array.isArray(o)&&(s=o);if(s){const t=0|s[J];2&t&&(s=hn(s,t))}return s=an(s,n),s!==o&&_n(t,r,e,s,i),s}function On(t,n,e){let r=t.l,i=0|r[J];if(n=function(t,n,e,r){let i=!1;if(null!=(r=bn(t,r,void 0,(t=>{const r=Yt(t,e,n);return i=r!==t&&null!=r,r}))))return i&&!tt(r)&&pn(t,n),r}(r,i,n,e),null==n)return n;if(i=0|r[J],!tt(t,i)){const o=fn(n);o!==n&&(dn(t)&&(r=t.l,i=0|r[J]),i=_n(r,i,e,n=o),pn(r,i))}return n}function Vn(t,n,e,r,i,o,s){var a=tt(t,e);i=a?1:i,o=!!o||3===i,a=s&&!a,(2===i||a)&&dn(t)&&(e=0|(n=t.l)[J]);var u=(t=An(n,1))===X?7:0|t[J],c=In(u,e);if(s=!(4&c)){var l=t,h=e;const n=!!(2&c);n&&(h|=2);let i=!n,o=!0,s=0,a=0;for(;s<l.length;s++){const t=Yt(l[s],r,h);if(t instanceof r){if(!n){const n=tt(t);i&&=!n,o&&=n}l[a++]=t}}a<s&&(l.length=a),c|=4,c=o?-4097&c:4096|c,c=i?8|c:-9&c}if(c!==u&&(Q(t,c),2&c&&Object.freeze(t)),a&&!(8&c||!t.length&&(1===i||4===i&&(2&c||!(16&c)&&32&e)))){for(En(c)&&(t=Ot(t),c=Dn(c,e),e=_n(n,e,1,t)),r=t,a=c,u=0;u<r.length;u++)(l=r[u])!==(c=fn(l))&&(r[u]=c);a|=8,Q(t,c=a=r.length?4096|a:-4097&a)}return Sn(t,c,n,e,1,i,s,o)}function xn(t,n){const e=t.l;return Vn(t,e,0|e[J],n,void 0===rt?2:4,!1,!0)}function kn(t){return null==t&&(t=void 0),t}function Fn(t,n,e,r,i){return wn(t,e,r=kn(r),i),r&&!tt(r)&&pn(t.l),t}function Mn(t,n,e){var r=li;t:{var i=e=kn(e);gn(t);const o=t.l;let s=0|o[J];if(null==i){const t=Pn(o);if(Nn(t,o,s,r)!==n)break t;t.set(r,0)}else s=Ln(o,s,r,n);_n(o,s,n,i)}e&&!tt(e)&&pn(t.l)}function Dn(t,n){return-273&(t=2&n?2|t:-3&t)}function Gn(t,n,e){gn(t);let r=t.l,i=0|r[J];const o=tt(t,i)?1:2;2===o&&dn(t)&&(r=t.l,i=0|r[J]);let s=(t=An(r,n))===X?7:0|t[J];var a=In(s,i);const u=!(4&a);if(u){4&a&&(t=Ot(t),s=0,a=Dn(a,i),i=_n(r,i,n,t));let e=0,o=0;for(;e<t.length;e++){const n=Xt(t[e]);null!=n&&(t[o++]=n)}o<e&&(t.length=o),a=-513&(4|a),a&=-1025,a&=-4097}a!==s&&(Q(t,a),2&a&&Object.freeze(t)),(t=Sn(t,a,r,i,n,o,u,!0)).push(Kt(e))}var Cn=class{constructor(t,n,e){if(this.buffer=t,e&&!n)throw Error();this.g=n}};function Rn(t,n){if("string"==typeof t)return new Cn(E(t),n);if(Array.isArray(t))return new Cn(new Uint8Array(t),n);if(t.constructor===Uint8Array)return new Cn(t,!1);if(t.constructor===ArrayBuffer)return t=new Uint8Array(t),new Cn(t,!1);if(t.constructor===P)return n=U(t)||new Uint8Array(0),new Cn(n,!0,t);if(t instanceof Uint8Array)return t=t.constructor===Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Cn(t,!1);throw Error()}function Wn(t,n){let e,r=0,i=0,o=0;const s=t.i;let a=t.g;do{e=s[a++],r|=(127&e)<<o,o+=7}while(o<32&&128&e);if(o>32)for(i|=(127&e)>>4,o=3;o<32&&128&e;o+=7)e=s[a++],i|=(127&e)<<o;if(Jn(t,a),!(128&e))return n(r>>>0,i>>>0);throw Error()}function $n(t){let n=0,e=t.g;const r=e+10,i=t.i;for(;e<r;){const r=i[e++];if(n|=r,0==(128&r))return Jn(t,e),!!(127&n)}throw Error()}function Hn(t){const n=t.i;let e=t.g,r=n[e++],i=127&r;if(128&r&&(r=n[e++],i|=(127&r)<<7,128&r&&(r=n[e++],i|=(127&r)<<14,128&r&&(r=n[e++],i|=(127&r)<<21,128&r&&(r=n[e++],i|=r<<28,128&r&&128&n[e++]&&128&n[e++]&&128&n[e++]&&128&n[e++]&&128&n[e++])))))throw Error();return Jn(t,e),i}function zn(t){var n=t.i;const e=t.g,r=n[e],i=n[e+1],o=n[e+2];return n=n[e+3],Jn(t,t.g+4),(r<<0|i<<8|o<<16|n<<24)>>>0}function Kn(t){return Hn(t)}function Jn(t,n){if(t.g=n,n>t.j)throw Error()}function Xn(t,n){if(n<0)throw Error();const e=t.g;if((n=e+n)>t.j)throw Error();return t.g=n,e}function Yn(t,n){if(0==n)return B();var e=Xn(t,n);return t.A&&t.u?e=t.i.subarray(e,e+n):(t=t.i,e=e===(n=e+n)?new Uint8Array(0):bt?t.slice(e,n):new Uint8Array(t.subarray(e,n))),0==e.length?B():new P(e,T)}var qn=[];function Qn(t,n,e,r){if(ae.length){const i=ae.pop();return i.o(r),i.g.init(t,n,e,r),i}return new se(t,n,e,r)}function Zn(t){t.g.clear(),t.j=-1,t.i=-1,ae.length<100&&ae.push(t)}function te(t){var n=t.g;if(n.g==n.j)return!1;t.m=t.g.g;var e=Hn(t.g)>>>0;if(n=e>>>3,!((e&=7)>=0&&e<=5))throw Error();if(n<1)throw Error();return t.j=n,t.i=e,!0}function ne(t){switch(t.i){case 0:0!=t.i?ne(t):$n(t.g);break;case 1:Jn(t=t.g,t.g+8);break;case 2:if(2!=t.i)ne(t);else{var n=Hn(t.g)>>>0;Jn(t=t.g,t.g+n)}break;case 5:Jn(t=t.g,t.g+4);break;case 3:for(n=t.j;;){if(!te(t))throw Error();if(4==t.i){if(t.j!=n)throw Error();break}ne(t)}break;default:throw Error()}}function ee(t,n,e){const r=t.g.j;var i=Hn(t.g)>>>0;let o=(i=t.g.g+i)-r;if(o<=0&&(t.g.j=i,e(n,t,void 0,void 0,void 0),o=i-t.g.g),o)throw Error();t.g.g=i,t.g.j=r}function re(t){var n=Hn(t.g)>>>0,a=Xn(t=t.g,n);if(t=t.i,s){var u,c=t;(u=o)||(u=o=new TextDecoder("utf-8",{fatal:!0})),n=a+n,c=0===a&&n===c.length?c:c.subarray(a,n);try{var l=u.decode(c)}catch(t){if(void 0===i){try{u.decode(new Uint8Array([128]))}catch(t){}try{u.decode(new Uint8Array([97])),i=!0}catch(t){i=!1}}throw!i&&(o=void 0),t}}else{n=(l=a)+n,a=[];let i,o=null;for(;l<n;){var h=t[l++];h<128?a.push(h):h<224?l>=n?e():(i=t[l++],h<194||128!=(192&i)?(l--,e()):a.push((31&h)<<6|63&i)):h<240?l>=n-1?e():(i=t[l++],128!=(192&i)||224===h&&i<160||237===h&&i>=160||128!=(192&(u=t[l++]))?(l--,e()):a.push((15&h)<<12|(63&i)<<6|63&u)):h<=244?l>=n-2?e():(i=t[l++],128!=(192&i)||i-144+(h<<28)>>30!=0||128!=(192&(u=t[l++]))||128!=(192&(c=t[l++]))?(l--,e()):(h=(7&h)<<18|(63&i)<<12|(63&u)<<6|63&c,h-=65536,a.push(55296+(h>>10&1023),56320+(1023&h)))):e(),a.length>=8192&&(o=r(o,a),a.length=0)}l=r(o,a)}return l}function ie(t){const n=Hn(t.g)>>>0;return Yn(t.g,n)}function oe(t,n,e){var r=Hn(t.g)>>>0;for(r=t.g.g+r;t.g.g<r;)e.push(n(t.g))}var se=class{constructor(t,n,e,r){if(qn.length){const i=qn.pop();i.init(t,n,e,r),t=i}else t=new class{constructor(t,n,e,r){this.i=null,this.u=!1,this.g=this.j=this.m=0,this.init(t,n,e,r)}init(t,n,e,{A:r=!1,C:i=!1}={}){this.A=r,this.C=i,t&&(t=Rn(t,this.C),this.i=t.buffer,this.u=t.g,this.m=n||0,this.j=void 0!==e?this.m+e:this.i.length,this.g=this.m)}clear(){this.i=null,this.u=!1,this.g=this.j=this.m=0,this.A=!1}}(t,n,e,r);this.g=t,this.m=this.g.g,this.i=this.j=-1,this.o(r)}o({D:t=!1}={}){this.D=t}},ae=[];function ue(t){return t?/^\d+$/.test(t)?(Nt(t),new ce(_t,St)):null:le||=new ce(0,0)}var ce=class{constructor(t,n){this.i=t>>>0,this.g=n>>>0}};let le;function he(t){return t?/^-?\d+$/.test(t)?(Nt(t),new fe(_t,St)):null:de||=new fe(0,0)}var fe=class{constructor(t,n){this.i=t>>>0,this.g=n>>>0}};let de;function ge(t,n,e){for(;e>0||n>127;)t.g.push(127&n|128),n=(n>>>7|e<<25)>>>0,e>>>=7;t.g.push(n)}function pe(t,n){for(;n>127;)t.g.push(127&n|128),n>>>=7;t.g.push(n)}function ve(t,n){if(n>=0)pe(t,n);else{for(let e=0;e<9;e++)t.g.push(127&n|128),n>>=7;t.g.push(1)}}function me(t,n){t.g.push(n>>>0&255),t.g.push(n>>>8&255),t.g.push(n>>>16&255),t.g.push(n>>>24&255)}function ye(t,n){0!==n.length&&(t.j.push(n),t.i+=n.length)}function be(t,n,e){pe(t.g,8*n+e)}function we(t,n){return be(t,n,2),n=t.g.end(),ye(t,n),n.push(t.i),n}function _e(t,n){var e=n.pop();for(e=t.i+t.g.length()-e;e>127;)n.push(127&e|128),e>>>=7,t.i++;n.push(e),t.i++}function Se(t,n,e){be(t,n,2),pe(t.g,e.length),ye(t,t.g.end()),ye(t,e)}function Ae(){const t=class{constructor(){throw Error()}};return Object.setPrototypeOf(t,t.prototype),t}var Ie=Ae(),Ee=Ae(),Te=Ae(),Be=Ae(),Ue=Ae(),Pe=Ae(),Le=Ae(),Ne=Ae(),je=Ae(),Oe=Ae(),Ve=Ae();var xe=class{constructor(t,n){this.l=un(t,n,void 0,2048)}toJSON(){return sn(this)}};xe.prototype[H]=Z,xe.prototype.toString=function(){return this.l.toString()};var ke=class{constructor(t,n,e){this.g=t,this.i=n,t=Ie,this.j=!!t&&e===t||!1}};function Fe(t,n){return new ke(t,n,Ie)}function Me(t,n,e,r,i){null!=(n=Ye(n,r))&&(e=we(t,e),i(n,t),_e(t,e))}const De=Fe((function(t,n,e,r,i){return 2===t.i&&(ee(t,jn(n,r,e),i),!0)}),Me),Ge=Fe((function(t,n,e,r,i){return 2===t.i&&(ee(t,jn(n,r,e),i),!0)}),Me);var Ce=Symbol(),Re=Symbol(),We=Symbol(),$e=Symbol(),He=Symbol();let ze,Ke;function Je(t,n,e,r){var i=r[t];if(i)return i;(i={}).H=r,i.v=function(t){switch(typeof t){case"boolean":return rn||=[0,void 0,!0];case"number":return t>0?void 0:0===t?on||=[0,void 0]:[-t,void 0];case"string":return[0,t];case"object":return t}}(r[0]);var o=r[1];let s=1;o&&o.constructor===Object&&(i.B=o,"function"==typeof(o=r[++s])&&(i.F=!0,ze??=o,Ke??=r[s+1],o=r[s+=2]));const a={};for(;o&&Array.isArray(o)&&o.length&&"number"==typeof o[0]&&o[0]>0;){for(var u=0;u<o.length;u++)a[o[u]]=o;o=r[++s]}for(u=1;void 0!==o;){let t;"number"==typeof o&&(u+=o,o=r[++s]);var c=void 0;if(o instanceof ke?t=o:(t=De,s--),t?.j){o=r[++s],c=r;var l=s;"function"==typeof o&&(o=o(),c[l]=o),c=o}for(l=u+1,"number"==typeof(o=r[++s])&&o<0&&(l-=o,o=r[++s]);u<l;u++){const r=a[u];c?e(i,u,t,c,r):n(i,u,t,r)}}return r[t]=i}function Xe(t){return Array.isArray(t)?t[0]instanceof ke?t:[Ge,t]:[t,void 0]}function Ye(t,n){return t instanceof xe?t.l:Array.isArray(t)?an(t,n):void 0}function qe(t,n,e,r){const i=e.g;t[n]=r?(t,n,e)=>i(t,n,e,r):i}function Qe(t,n,e,r,i){const o=e.g;let s,a;t[n]=(t,n,e)=>o(t,n,e,a||=Je(Re,qe,Qe,r).v,s||=Ze(r),i)}function Ze(t){let n=t[We];if(null!=n)return n;const e=Je(Re,qe,Qe,t);return n=e.F?(t,n)=>ze(t,n,e):(t,n)=>{for(;te(n)&&4!=n.i;){var r=n.j,i=e[r];if(null==i){var o=e.B;o&&(o=o[r])&&(null!=(o=nr(o))&&(i=e[r]=o))}if(null==i||!i(n,t,r)){if(i=(o=n).m,ne(o),o.D)var s=void 0;else s=o.g.g-i,o.g.g=i,s=Yn(o.g,s);i=void 0,o=t,s&&((i=o[C]??(o[C]=new Zt))[r]??(i[r]=[])).push(s)}}return(t=qt(t))&&(t.g=e.H[He]),!0},t[We]=n,t[He]=tr.bind(t),n}function tr(t,n,e,r){var i=this[Re];const o=this[We],s=an(void 0,i.v),a=qt(t);if(a){var u=!1,c=i.B;if(c){if(i=(n,e,i)=>{if(0!==i.length)if(c[e])for(const t of i){n=Qn(t);try{u=!0,o(s,n)}finally{Zn(n)}}else r?.(t,e,i)},null==n)Qt(a,i);else if(null!=a){const t=a[n];t&&i(a,n,t)}if(u){let r=0|t[J];if(2&r&&2048&r&&!e?.R)throw Error();const i=st(r),o=(n,o)=>{if(null!=bn(t,n,i)){if(1===e?.P)return;throw Error()}null!=o&&(r=_n(t,r,n,o,i)),delete a[n]};null==n?it(s,0|s[J],((t,n)=>{o(t,n)})):o(n,bn(s,n,i))}}}}function nr(t){const n=(t=Xe(t))[0].g;if(t=t[1]){const e=Ze(t),r=Je(Re,qe,Qe,t).v;return(t,i,o)=>n(t,i,o,r,e)}return n}function er(t,n,e){t[n]=e.i}function rr(t,n,e,r){let i,o;const s=e.i;t[n]=(t,n,e)=>s(t,n,e,o||=Je(Ce,er,rr,r).v,i||=ir(r))}function ir(t){let n=t[$e];if(!n){const e=Je(Ce,er,rr,t);n=(t,n)=>or(t,n,e),t[$e]=n}return n}function or(t,n,e){it(t,0|t[J],((t,r)=>{if(null!=r){var i=function(t,n){var e=t[n];if(e)return e;if((e=t.B)&&(e=e[n])){var r=(e=Xe(e))[0].i;if(e=e[1]){const n=ir(e),i=Je(Ce,er,rr,e).v;e=t.F?Ke(i,n):(t,e,o)=>r(t,e,o,i,n)}else e=r;return t[n]=e}}(e,t);i?i(n,r,t):t<500||x(W,3)}})),(t=qt(t))&&Qt(t,((t,e,r)=>{for(ye(n,n.g.end()),t=0;t<r.length;t++)ye(n,U(r[t])||new Uint8Array(0))}))}const sr=ft(0);function ar(t,n){if(Array.isArray(n)){var e=0|n[J];if(4&e)return n;for(var r=0,i=0;r<n.length;r++){const e=t(n[r]);null!=e&&(n[i++]=e)}return i<r&&(n.length=i),(t=-1537&(5|e))!==e&&Q(n,t),2&t&&Object.freeze(n),n}}function ur(t,n,e){return new ke(t,n,e)}function cr(t,n,e){return new ke(t,n,e)}function lr(t,n,e){_n(t,0|t[J],n,e,st(0|t[J]))}function hr(t,n,e){if(n=function(t){if(null==t)return t;const n=typeof t;if("bigint"===n)return String(Vt(64,t));if(Ct(t)){if("string"===n)return Ht(t);if("number"===n)return $t(t)}}(n),null!=n){if("string"==typeof n)he(n);if(null!=n)switch(be(t,e,0),typeof n){case"number":t=t.g,It(n),ge(t,_t,St);break;case"bigint":e=BigInt.asUintN(64,n),e=new fe(Number(e&BigInt(4294967295)),Number(e>>BigInt(32))),ge(t.g,e.i,e.g);break;default:e=he(n),ge(t.g,e.i,e.g)}}}function fr(t,n,e){null!=(n=Rt(n))&&null!=n&&(be(t,e,0),ve(t.g,n))}function dr(t,n,e){null!=(n=null==n||"boolean"==typeof n?n:"number"==typeof n?!!n:void 0)&&(be(t,e,0),t.g.g.push(n?1:0))}function gr(t,n,e){null!=(n=Xt(n))&&Se(t,e,c(n))}function pr(t,n,e,r,i){null!=(n=Ye(n,r))&&(e=we(t,e),i(n,t),_e(t,e))}function vr(t,n,e){null!=(n=null==n||"string"==typeof n||n instanceof P?n:void 0)&&Se(t,e,Rn(n,!0).buffer)}function mr(t,n,e){n=function(t){if(null==t)return t;if("string"==typeof t&&t)t=+t;else if("number"!=typeof t)return;return Ft(t)?t>>>0:void 0}(n),null!=n&&null!=n&&(be(t,e,0),pe(t.g,n))}var yr=ur((function(t,n,e){if(1!==t.i)return!1;var r=t.g;t=zn(r);const i=zn(r);r=2*(i>>31)+1;const o=i>>>20&2047;return t=4294967296*(1048575&i)+t,lr(n,e,2047==o?t?NaN:r*(1/0):0==o?5e-324*r*t:r*Math.pow(2,o-1075)*(t+4503599627370496)),!0}),(function(t,n,e){null!=(n=Dt(n))&&(be(t,e,1),t=t.g,(e=wt||=new DataView(new ArrayBuffer(8))).setFloat64(0,+n,!0),_t=e.getUint32(0,!0),St=e.getUint32(4,!0),me(t,_t),me(t,St))}),je),br=ur((function(t,n,e){if(5!==t.i)return!1;var r=zn(t.g);t=2*(r>>31)+1;const i=r>>>23&255;return r&=8388607,lr(n,e,255==i?r?NaN:t*(1/0):0==i?1401298464324817e-60*t*r:t*Math.pow(2,i-150)*(r+8388608)),!0}),(function(t,n,e){null!=(n=Dt(n))&&(be(t,e,5),t=t.g,(e=wt||=new DataView(new ArrayBuffer(8))).setFloat32(0,+n,!0),St=0,_t=e.getUint32(0,!0),me(t,_t))}),Ne),wr=ur((function(t,n,e){return 0!==t.i?t=!1:(lr(n,e,Wn(t.g,Bt)),t=!0),t}),hr,Pe),_r=ur((function(t,n,e){return 0!==t.i?n=!1:(lr(n,e,(t=Wn(t.g,Bt))===sr?void 0:t),n=!0),n}),hr,Pe),Sr=ur((function(t,n,e){return 0!==t.i?t=!1:(lr(n,e,Wn(t.g,Tt)),t=!0),t}),(function(t,n,e){if(n=function(t){if(null==t)return t;var n=typeof t;if("bigint"===n)return String(xt(64,t));if(Ct(t)){if("string"===n)return n=Mt(Number(t)),kt(n)&&n>=0?t=String(n):(-1!==(n=t.indexOf("."))&&(t=t.substring(0,n)),(n="-"!==t[0]&&((n=t.length)<20||20===n&&t<="18446744073709551615"))||(Nt(t),t=Ut(_t,St))),t;if("number"===n)return(t=Mt(t))>=0&&kt(t)||(It(t),t=Et(_t,St)),t}}(n),null!=n){if("string"==typeof n)ue(n);if(null!=n)switch(be(t,e,0),typeof n){case"number":t=t.g,It(n),ge(t,_t,St);break;case"bigint":e=BigInt.asUintN(64,n),e=new ce(Number(e&BigInt(4294967295)),Number(e>>BigInt(32))),ge(t.g,e.i,e.g);break;default:e=ue(n),ge(t.g,e.i,e.g)}}}),Le),Ar=ur((function(t,n,e){return 0===t.i&&(lr(n,e,Hn(t.g)),!0)}),fr,Be),Ir=cr((function(t,n,e){return(0===t.i||2===t.i)&&(n=Un(n,0|n[J],e),2==t.i?oe(t,Hn,n):n.push(Hn(t.g)),!0)}),(function(t,n,e){if(null!=(n=ar(Rt,n))&&n.length){e=we(t,e);for(let e=0;e<n.length;e++)ve(t.g,n[e]);_e(t,e)}}),Be),Er=ur((function(t,n,e){return 0===t.i&&(lr(n,e,0===(t=Hn(t.g))?void 0:t),!0)}),fr,Be),Tr=ur((function(t,n,e){return 0===t.i&&(lr(n,e,$n(t.g)),!0)}),dr,Ee),Br=ur((function(t,n,e){return 0===t.i&&(lr(n,e,!1===(t=$n(t.g))?void 0:t),!0)}),dr,Ee),Ur=cr((function(t,n,e){return 2===t.i&&(t=re(t),Un(n,0|n[J],e).push(t),!0)}),(function(t,n,e){if(null!=(n=ar(Xt,n)))for(let s=0;s<n.length;s++){var r=t,i=e,o=n[s];null!=o&&Se(r,i,c(o))}}),Te),Pr=ur((function(t,n,e){return 2===t.i&&(lr(n,e,""===(t=re(t))?void 0:t),!0)}),gr,Te),Lr=ur((function(t,n,e){return 2===t.i&&(lr(n,e,re(t)),!0)}),gr,Te),Nr=function(t,n,e=Ie){return new ke(t,n,e)}((function(t,n,e,r,i){return 2===t.i&&(r=an(void 0,r),Un(n,0|n[J],e).push(r),ee(t,r,i),!0)}),(function(t,n,e,r,i){if(Array.isArray(n)){for(let o=0;o<n.length;o++)pr(t,n[o],e,r,i);1&(t=0|n[J])||Q(n,1|t)}})),jr=Fe((function(t,n,e,r,i,o){if(2!==t.i)return!1;let s=0|n[J];return Ln(n,s,o,e,st(s)),ee(t,n=jn(n,r,e),i),!0}),pr),Or=ur((function(t,n,e){return 2===t.i&&(lr(n,e,ie(t)),!0)}),vr,Oe),Vr=ur((function(t,n,e){return 0===t.i&&(lr(n,e,0===(t=Hn(t.g)>>>0)?void 0:t),!0)}),mr,Ue),xr=ur((function(t,n,e){return 0===t.i&&(lr(n,e,Hn(t.g)),!0)}),(function(t,n,e){null!=(n=Rt(n))&&(n=parseInt(n,10),be(t,e,0),ve(t.g,n))}),Ve);var kr=[0,Pr,ur((function(t,n,e){return 2===t.i&&(lr(n,e,(t=ie(t))===B()?void 0:t),!0)}),(function(t,n,e){if(null!=n){if(n instanceof xe){const r=n.S;return void(r?(n=r(n),null!=n&&Se(t,e,Rn(n,!0).buffer)):x(W,3))}if(Array.isArray(n))return void x(W,3)}vr(t,n,e)}),Oe)];let Fr,Mr=globalThis.trustedTypes;function Dr(t){var n;return void 0===Fr&&(Fr=function(){let t=null;if(!Mr)return t;try{const n=t=>t;t=Mr.createPolicy("goog#html",{createHTML:n,createScript:n,createScriptURL:n})}catch(t){}return t}()),t=(n=Fr)?n.createScriptURL(t):t,new class{constructor(t){this.g=t}toString(){return this.g+""}}(t)}function Gr(t,...n){if(0===n.length)return Dr(t[0]);let e=t[0];for(let r=0;r<n.length;r++)e+=encodeURIComponent(n[r])+t[r+1];return Dr(e)}var Cr=[0,Ar,xr,Tr,-1,Ir,xr,-1,Tr],Rr=class extends xe{constructor(t){super(t)}},Wr=[0,Tr,Lr,Tr,xr,-1,cr((function(t,n,e){return(0===t.i||2===t.i)&&(n=Un(n,0|n[J],e),2==t.i?oe(t,Kn,n):n.push(Hn(t.g)),!0)}),(function(t,n,e){if(null!=(n=ar(Rt,n))&&n.length){e=we(t,e);for(let e=0;e<n.length;e++)ve(t.g,n[e]);_e(t,e)}}),Ve),Lr,-1,[0,Tr,-1],xr,Tr,-1],$r=[0,3,Tr,-1,2,[0,[2],Ar,jr,[0,ur((function(t,n,e){return 0===t.i&&(lr(n,e,Hn(t.g)>>>0),!0)}),mr,Ue)]],[0,xr,Tr,xr,Tr,xr,Tr,Lr,-1],[0,[3,4],Lr,-1,jr,[0,Ar],jr,[0,xr]],[0]],Hr=[0,Lr,-2],zr=class extends xe{constructor(t){super(t)}},Kr=[0],Jr=[0,Ar,Tr,1,Tr,-4],Xr=class extends xe{constructor(t){super(t,2)}},Yr={};Yr[336783863]=[0,Lr,Tr,-1,Ar,[0,[1,2,3,4,5,6,7,8,9],jr,Kr,jr,Wr,jr,Hr,jr,Jr,jr,Cr,jr,[0,Lr,-2],jr,[0,Lr,xr],jr,$r,jr,[0,xr,-1,Tr]],[0,Lr],Tr,[0,[1,3],[2,4],jr,[0,Ir],-1,jr,[0,Ur],-1,Nr,[0,Lr,-1]],Lr];var qr,Qr=[0,_r,-1,Br,-3,_r,Ir,Pr,Er,_r,-1,Br,Er,Br,-2,Pr],Zr=class extends xe{constructor(t){super(t,500)}o(t){return Fn(this,0,7,t)}},ti=[-1,{}],ni=[0,Lr,1,ti],ei=[0,Lr,Ur,ti],ri=class extends xe{constructor(t){super(t,500)}o(t){return Fn(this,0,1001,t)}};ri.prototype.i=(qr=[-500,Nr,[-500,Pr,-1,Ur,-3,[-2,Yr,Tr],Nr,kr,Er,-1,ni,ei,Nr,[0,Pr,Br],Pr,Qr,Er,Ur,987,Ur],4,Nr,[-500,Lr,-1,[-1,{}],998,Lr],Nr,[-500,Lr,Ur,-1,[-2,{},Tr],997,Ur,-1],Er,Nr,[-500,Lr,Ur,ti,998,Ur],Ur,Er,ni,ei,Nr,[0,Pr,-1,ti],Ur,-2,Qr,Pr,-1,Br,[0,Br,Vr],978,ti,Nr,kr],function(){const t=new class{constructor(){this.j=[],this.i=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){const t=this.g;return this.g=[],t}}}};or(this.l,t,Je(Ce,er,rr,qr)),ye(t,t.g.end());const n=new Uint8Array(t.i),e=t.j,r=e.length;let i=0;for(let t=0;t<r;t++){const r=e[t];n.set(r,i),i+=r.length}return t.j=[n],n});var ii,oi=class extends xe{constructor(t){super(t)}},si=class extends xe{constructor(t){super(t)}i(){return xn(this,oi)}},ai=[0,Nr,[0,Ar,br,Lr,-1]],ui=class extends xe{constructor(t){super(t)}},ci=class extends xe{constructor(t){super(t)}},li=[1,2,3,4,5,6],hi=class extends xe{constructor(t){super(t)}i(){return null!=yn(this,1,void 0,Tn)}j(){return null!=Xt(yn(this,2))}},fi=class extends xe{constructor(t){super(t)}},di=class extends xe{constructor(t){super(t)}};ii=new class{constructor(){var t=Xr;this.g=di,this.j=Fn,this.defaultValue=void 0,this.i=null!=t.N?ot:void 0}register(){p(this)}},Yr[451755788]=[0,[0,[0,Or,Lr,[0,Ar,wr,-1],[0,Sr,wr]],Tr,[0,li,jr,Jr,jr,Wr,jr,Cr,jr,Kr,jr,Hr,jr,$r],xr],[0,Lr,Ar,br,Ur,-1],yr];var gi=class extends xe{constructor(t){super(t)}},pi=function(t,n){return(e,r)=>{{const o={C:!0};r&&Object.assign(o,r),e=Qn(e,void 0,void 0,o);try{const r=new t,o=r.l;Ze(n)(o,e);var i=r}finally{Zn(e)}}return i}}(class extends xe{constructor(t){super(t)}},[0,Nr,[0,1,Ar,Lr,ai],wr]);function vi(){var t=navigator;return"undefined"!=typeof OffscreenCanvas&&(!function(t=navigator){return(t=t.userAgent).includes("Safari")&&!t.includes("Chrome")}(t)||!!((t=t.userAgent.match(/Version\/([\d]+).*Safari/))&&t.length>=1&&Number(t[1])>=17))}async function mi(t){if("function"!=typeof importScripts){const n=document.createElement("script");return n.src=t.toString(),n.crossOrigin="anonymous",new Promise(((t,e)=>{n.addEventListener("load",(()=>{t()}),!1),n.addEventListener("error",(t=>{e(t)}),!1),document.body.appendChild(n)}))}try{importScripts(t.toString())}catch(n){if(!(n instanceof TypeError))throw n;await self.import(t.toString())}}function yi(t,n,e){t.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),e(n=t.h.stringToNewUTF8(n)),t.h._free(n)}function bi(t,n,e){t.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");const r=new Uint32Array(n.length);for(let e=0;e<n.length;e++)r[e]=t.h.stringToNewUTF8(n[e]);n=t.h._malloc(4*r.length),t.h.HEAPU32.set(r,n>>2),e(n);for(const n of r)t.h._free(n);t.h._free(n)}function wi(t,n,e){t.h.simpleListeners=t.h.simpleListeners||{},t.h.simpleListeners[n]=e}function _i(t,n,e){let r=[];t.h.simpleListeners=t.h.simpleListeners||{},t.h.simpleListeners[n]=(t,n,i)=>{n?(e(r,i),r=[]):r.push(t)}}const Si=function(t){return class extends t{K(){this.h._registerModelResourcesGraphService()}}}(class{constructor(t,n){this.j=!0,this.h=t,this.g=null,this.i=0,this.m="function"==typeof this.h._addIntToInputStream,void 0!==n?this.h.canvas=n:vi()?this.h.canvas=new OffscreenCanvas(1,1):(console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."),this.h.canvas=document.createElement("canvas"))}async initializeGraph(t){const 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){const e=t.length,r=this.h._malloc(e);this.h.HEAPU8.set(t,r),n?this.h._changeBinaryGraph(e,r):this.h._changeTextGraph(e,r),this.h._free(r)}configureAudio(t,n,e,r,i){this.h._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),yi(this,r||"input_audio",(r=>{yi(this,i=i||"audio_header",(i=>{this.h._configureAudio(r,i,t,n??0,e)}))}))}setAutoResizeCanvas(t){this.j=t}setAutoRenderToScreen(t){this.h._setAutoRenderToScreen(t)}setGpuBufferVerticalFlip(t){this.h.gpuOriginForWebTexturesIsBottomLeft=t}attachErrorListener(t){this.h.errorListener=t}attachEmptyPacketListener(t,n){this.h.emptyPacketListeners=this.h.emptyPacketListeners||{},this.h.emptyPacketListeners[t]=n}addAudioToStream(t,n,e){this.addAudioToStreamWithShape(t,0,0,n,e)}addAudioToStreamWithShape(t,n,e,r,i){const o=4*t.length;this.i!==o&&(this.g&&this.h._free(this.g),this.g=this.h._malloc(o),this.i=o),this.h.HEAPF32.set(t,this.g/4),yi(this,r,(t=>{this.h._addAudioToInputStream(this.g,n,e,t,i)}))}addGpuBufferToStream(t,n,e){yi(this,n,(n=>{if(!this.h.canvas)throw Error("No OpenGL canvas configured.");n?this.h._bindTextureToStream(n):this.h._bindTextureToCanvas();const r=this.h.canvas.getContext("webgl2")||this.h.canvas.getContext("webgl");if(!r)throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");this.h.gpuOriginForWebTexturesIsBottomLeft&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!0),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,t),this.h.gpuOriginForWebTexturesIsBottomLeft&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1);const[i,o]=void 0!==t.videoWidth?[t.videoWidth,t.videoHeight]:void 0!==t.naturalWidth?[t.naturalWidth,t.naturalHeight]:void 0!==t.displayWidth?[t.displayWidth,t.displayHeight]:[t.width,t.height];!this.j||i===this.h.canvas.width&&o===this.h.canvas.height||(this.h.canvas.width=i,this.h.canvas.height=o);const[s,a]=[i,o];this.h._addBoundTextureToStream(n,s,a,e)}))}addBoolToStream(t,n,e){yi(this,n,(n=>{this.h._addBoolToInputStream(t,n,e)}))}addDoubleToStream(t,n,e){yi(this,n,(n=>{this.h._addDoubleToInputStream(t,n,e)}))}addFloatToStream(t,n,e){yi(this,n,(n=>{this.h._addFloatToInputStream(t,n,e)}))}addIntToStream(t,n,e){yi(this,n,(n=>{this.h._addIntToInputStream(t,n,e)}))}addUintToStream(t,n,e){yi(this,n,(n=>{this.h._addUintToInputStream(t,n,e)}))}addStringToStream(t,n,e){yi(this,n,(n=>{yi(this,t,(t=>{this.h._addStringToInputStream(t,n,e)}))}))}addStringRecordToStream(t,n,e){yi(this,n,(n=>{bi(this,Object.keys(t),(r=>{bi(this,Object.values(t),(i=>{this.h._addFlatHashMapToInputStream(r,i,Object.keys(t).length,n,e)}))}))}))}addProtoToStream(t,n,e,r){yi(this,e,(e=>{yi(this,n,(n=>{const i=this.h._malloc(t.length);this.h.HEAPU8.set(t,i),this.h._addProtoToInputStream(i,t.length,n,e,r),this.h._free(i)}))}))}addEmptyPacketToStream(t,n){yi(this,t,(t=>{this.h._addEmptyPacketToInputStream(t,n)}))}addBoolVectorToStream(t,n,e){yi(this,n,(n=>{const r=this.h._allocateBoolVector(t.length);if(!r)throw Error("Unable to allocate new bool vector on heap.");for(const n of t)this.h._addBoolVectorEntry(r,n);this.h._addBoolVectorToInputStream(r,n,e)}))}addDoubleVectorToStream(t,n,e){yi(this,n,(n=>{const r=this.h._allocateDoubleVector(t.length);if(!r)throw Error("Unable to allocate new double vector on heap.");for(const n of t)this.h._addDoubleVectorEntry(r,n);this.h._addDoubleVectorToInputStream(r,n,e)}))}addFloatVectorToStream(t,n,e){yi(this,n,(n=>{const r=this.h._allocateFloatVector(t.length);if(!r)throw Error("Unable to allocate new float vector on heap.");for(const n of t)this.h._addFloatVectorEntry(r,n);this.h._addFloatVectorToInputStream(r,n,e)}))}addIntVectorToStream(t,n,e){yi(this,n,(n=>{const r=this.h._allocateIntVector(t.length);if(!r)throw Error("Unable to allocate new int vector on heap.");for(const n of t)this.h._addIntVectorEntry(r,n);this.h._addIntVectorToInputStream(r,n,e)}))}addUintVectorToStream(t,n,e){yi(this,n,(n=>{const r=this.h._allocateUintVector(t.length);if(!r)throw Error("Unable to allocate new unsigned int vector on heap.");for(const n of t)this.h._addUintVectorEntry(r,n);this.h._addUintVectorToInputStream(r,n,e)}))}addStringVectorToStream(t,n,e){yi(this,n,(n=>{const r=this.h._allocateStringVector(t.length);if(!r)throw Error("Unable to allocate new string vector on heap.");for(const n of t)yi(this,n,(t=>{this.h._addStringVectorEntry(r,t)}));this.h._addStringVectorToInputStream(r,n,e)}))}addBoolToInputSidePacket(t,n){yi(this,n,(n=>{this.h._addBoolToInputSidePacket(t,n)}))}addDoubleToInputSidePacket(t,n){yi(this,n,(n=>{this.h._addDoubleToInputSidePacket(t,n)}))}addFloatToInputSidePacket(t,n){yi(this,n,(n=>{this.h._addFloatToInputSidePacket(t,n)}))}addIntToInputSidePacket(t,n){yi(this,n,(n=>{this.h._addIntToInputSidePacket(t,n)}))}addUintToInputSidePacket(t,n){yi(this,n,(n=>{this.h._addUintToInputSidePacket(t,n)}))}addStringToInputSidePacket(t,n){yi(this,n,(n=>{yi(this,t,(t=>{this.h._addStringToInputSidePacket(t,n)}))}))}addProtoToInputSidePacket(t,n,e){yi(this,e,(e=>{yi(this,n,(n=>{const r=this.h._malloc(t.length);this.h.HEAPU8.set(t,r),this.h._addProtoToInputSidePacket(r,t.length,n,e),this.h._free(r)}))}))}addBoolVectorToInputSidePacket(t,n){yi(this,n,(n=>{const e=this.h._allocateBoolVector(t.length);if(!e)throw Error("Unable to allocate new bool vector on heap.");for(const n of t)this.h._addBoolVectorEntry(e,n);this.h._addBoolVectorToInputSidePacket(e,n)}))}addDoubleVectorToInputSidePacket(t,n){yi(this,n,(n=>{const e=this.h._allocateDoubleVector(t.length);if(!e)throw Error("Unable to allocate new double vector on heap.");for(const n of t)this.h._addDoubleVectorEntry(e,n);this.h._addDoubleVectorToInputSidePacket(e,n)}))}addFloatVectorToInputSidePacket(t,n){yi(this,n,(n=>{const e=this.h._allocateFloatVector(t.length);if(!e)throw Error("Unable to allocate new float vector on heap.");for(const n of t)this.h._addFloatVectorEntry(e,n);this.h._addFloatVectorToInputSidePacket(e,n)}))}addIntVectorToInputSidePacket(t,n){yi(this,n,(n=>{const e=this.h._allocateIntVector(t.length);if(!e)throw Error("Unable to allocate new int vector on heap.");for(const n of t)this.h._addIntVectorEntry(e,n);this.h._addIntVectorToInputSidePacket(e,n)}))}addUintVectorToInputSidePacket(t,n){yi(this,n,(n=>{const e=this.h._allocateUintVector(t.length);if(!e)throw Error("Unable to allocate new unsigned int vector on heap.");for(const n of t)this.h._addUintVectorEntry(e,n);this.h._addUintVectorToInputSidePacket(e,n)}))}addStringVectorToInputSidePacket(t,n){yi(this,n,(n=>{const e=this.h._allocateStringVector(t.length);if(!e)throw Error("Unable to allocate new string vector on heap.");for(const n of t)yi(this,n,(t=>{this.h._addStringVectorEntry(e,t)}));this.h._addStringVectorToInputSidePacket(e,n)}))}attachBoolListener(t,n){wi(this,t,n),yi(this,t,(t=>{this.h._attachBoolListener(t)}))}attachBoolVectorListener(t,n){_i(this,t,n),yi(this,t,(t=>{this.h._attachBoolVectorListener(t)}))}attachIntListener(t,n){wi(this,t,n),yi(this,t,(t=>{this.h._attachIntListener(t)}))}attachIntVectorListener(t,n){_i(this,t,n),yi(this,t,(t=>{this.h._attachIntVectorListener(t)}))}attachUintListener(t,n){wi(this,t,n),yi(this,t,(t=>{this.h._attachUintListener(t)}))}attachUintVectorListener(t,n){_i(this,t,n),yi(this,t,(t=>{this.h._attachUintVectorListener(t)}))}attachDoubleListener(t,n){wi(this,t,n),yi(this,t,(t=>{this.h._attachDoubleListener(t)}))}attachDoubleVectorListener(t,n){_i(this,t,n),yi(this,t,(t=>{this.h._attachDoubleVectorListener(t)}))}attachFloatListener(t,n){wi(this,t,n),yi(this,t,(t=>{this.h._attachFloatListener(t)}))}attachFloatVectorListener(t,n){_i(this,t,n),yi(this,t,(t=>{this.h._attachFloatVectorListener(t)}))}attachStringListener(t,n){wi(this,t,n),yi(this,t,(t=>{this.h._attachStringListener(t)}))}attachStringVectorListener(t,n){_i(this,t,n),yi(this,t,(t=>{this.h._attachStringVectorListener(t)}))}attachProtoListener(t,n,e){wi(this,t,n),yi(this,t,(t=>{this.h._attachProtoListener(t,e||!1)}))}attachProtoVectorListener(t,n,e){_i(this,t,n),yi(this,t,(t=>{this.h._attachProtoVectorListener(t,e||!1)}))}attachAudioListener(t,n,e){this.h._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),wi(this,t,((t,e)=>{t=new Float32Array(t.buffer,t.byteOffset,t.length/4),n(t,e)})),yi(this,t,(t=>{this.h._attachAudioListener(t,e||!1)}))}finishProcessing(){this.h._waitUntilIdle()}closeGraph(){this.h._closeGraph(),this.h.simpleListeners=void 0,this.h.emptyPacketListeners=void 0}});var Ai=class extends Si{};async function Ii(t,n){const e=await(async(t,n,e)=>{var r=Vi;if(t&&await mi(t),!self.ModuleFactory)throw Error("ModuleFactory not set.");if(n&&(await mi(n),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&e&&((t=self.Module).locateFile=e.locateFile,e.mainScriptUrlOrBlob&&(t.mainScriptUrlOrBlob=e.mainScriptUrlOrBlob)),e=await self.ModuleFactory(self.Module||e),self.ModuleFactory=self.Module=void 0,new r(e,null)})(t.wasmLoaderPath,t.assetLoaderPath,{locateFile:n=>n.endsWith(".wasm")?t.wasmBinaryPath.toString():t.assetBinaryPath&&n.endsWith(".data")?t.assetBinaryPath.toString():n});return await e.o(n),e}async function Ei(t,n){return Ii(t,n)}function Ti(t,n){const e=On(t.baseOptions,hi,1)||new hi;"string"==typeof n?(wn(e,2,Jt(n)),wn(e,1)):n instanceof Uint8Array&&(wn(e,1,et(n,!1)),wn(e,2)),Fn(t.baseOptions,0,1,e)}function Bi(t,n){const e=n.baseOptions||{};if(n.baseOptions?.modelAssetBuffer&&n.baseOptions?.modelAssetPath)throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!(On(t.baseOptions,hi,1)?.i()||On(t.baseOptions,hi,1)?.j()||n.baseOptions?.modelAssetBuffer||n.baseOptions?.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if(function(t,n){let e=On(t.baseOptions,ci,3);if(!e){var r=e=new ci;Mn(r,4,new zr)}"delegate"in n&&("GPU"===n.delegate?Mn(n=e,2,r=new Rr):Mn(n=e,4,r=new zr)),Fn(t.baseOptions,0,3,e)}(t,e),e.modelAssetPath)return fetch(e.modelAssetPath.toString()).then((t=>{if(t.ok)return t.arrayBuffer();throw Error(`Failed to fetch model: ${e.modelAssetPath} (${t.status})`)})).then((n=>{try{t.g.h.FS_unlink("/model.dat")}catch{}t.g.h.FS_createDataFile("/","model.dat",new Uint8Array(n),!0,!1,!1),Ti(t,"/model.dat"),Oi(t)}));if(e.modelAssetBuffer instanceof Uint8Array)Ti(t,e.modelAssetBuffer);else if(e.modelAssetBuffer)return async function(t){const n=[];for(var e=0;;){const{done:r,value:i}=await t.read();if(r)break;n.push(i),e+=i.length}if(0===n.length)return new Uint8Array(0);if(1===n.length)return n[0];t=new Uint8Array(e),e=0;for(const r of n)t.set(r,e),e+=r.length;return t}(e.modelAssetBuffer).then((n=>{Ti(t,n),Oi(t)}));return Oi(t),Promise.resolve()}function Ui(t){try{const n=t.m.length;if(1===n)throw Error(t.m[0].message);if(n>1)throw Error("Encountered multiple errors: "+t.m.map((t=>t.message)).join(", "))}finally{t.m=[]}}var Pi=class{constructor(t){this.g=t,this.m=[],this.j=0,this.g.setAutoRenderToScreen(!1)}setGraph(t,n){this.g.attachErrorListener(((t,n)=>{this.m.push(Error(n))})),this.g.K(),this.g.setGraph(t,n),Ui(this)}finishProcessing(){this.g.finishProcessing(),Ui(this)}close(){this.g.closeGraph()}};async function Li(t,n){return Ei(t,n)}Pi.prototype.close=Pi.prototype.close;var Ni=class extends Pi{constructor(){super(...arguments),this.G=48e3}L(t){this.G=t}};function ji(t){const n={classifications:xn(t,gi).map((t=>function(t,n=-1,e=""){return{categories:t.map((t=>({index:Rt(yn(t,1))??0??-1,score:yn(t,2,void 0,Dt)??0??0,categoryName:Xt(yn(t,3))??""??"",displayName:Xt(yn(t,4))??""??""}))),headIndex:n,headName:e}}(On(t,si,4)?.i()??[],Rt(yn(t,2))??0,Xt(yn(t,3))??"")))};return null!=function(t){return null==t?t:"bigint"==typeof t?(dt(t)?t=Number(t):(t=Vt(64,t),t=dt(t)?Number(t):String(t)),t):Ct(t)?"number"==typeof t?$t(t):Ht(t):void 0}(yn(t,2,void 0,zt))&&(n.timestampMs=function(t){const n=Number(t);return Number.isSafeInteger(n)?n:String(t)}(yn(t,2,void 0,zt)??mn)),n}function Oi(t){var n=new ri;Gn(n,10,"audio_in"),Gn(n,10,"sample_rate"),Gn(n,15,"timestamped_classifications");const e=new Xr;!function(t,n){var e=ii,r=t.l;C&&C in r&&(r=r[C])&&delete r[451755788],e.g?e.j(t,e.g,451755788,n,e.i):e.j(t,451755788,n,e.i)}(e,t.i);const r=new Zr;!function(t){var n=Jt("mediapipe.tasks.audio.audio_classifier.AudioClassifierGraph");gn(t),_n(t=t.l,0|t[J],2,""===n?void 0:n)}(r),Gn(r,3,"AUDIO:audio_in"),Gn(r,3,"SAMPLE_RATE:sample_rate"),Gn(r,4,"TIMESTAMPED_CLASSIFICATIONS:timestamped_classifications"),r.o(e),function(t,n){var e=Zr;gn(t);const r=t.l;t=Vn(t,r,0|r[J],e,2,!0),n=null!=n?n:new e,t.push(n);const i=e=t===X?7:0|t[J];(n=tt(n))?(e&=-9,1===t.length&&(e&=-4097)):e|=4096,e!==i&&Q(t,e),n||pn(r)}(n,r),t.g.attachProtoVectorListener("timestamped_classifications",((n,e)=>{!function(t,n){n.forEach((n=>{n=pi(n),t.u.push(ji(n))}))}(t,n),t.j=Math.max(t.j,e)})),t.g.attachEmptyPacketListener("timestamped_classifications",(n=>{t.j=Math.max(t.j,n)})),n=n.i(),t.setGraph(new Uint8Array(n),!0)}Ni.prototype.setDefaultSampleRate=Ni.prototype.L;var Vi=class extends Ni{constructor(t,n){super(new Ai(t,n)),this.u=[],Fn(t=this.i=new di,0,1,n=new fi)}get baseOptions(){return On(this.i,fi,1)}set baseOptions(t){Fn(this.i,0,1,t)}o(t){var n=this.i,e=On(this.i,ui,2);if(e){var r=e.l;const t=0|r[J];e=vn(e,r,t)?ln(e,r,!0):new e.constructor(hn(r,t,!1))}else e=new ui;if(void 0!==t.displayNamesLocale?wn(e,1,Jt(t.displayNamesLocale)):void 0===t.displayNamesLocale&&wn(e,1),void 0!==t.maxResults){if(null!=(r=t.maxResults)){if("number"!=typeof r)throw V();if(!Ft(r))throw V();r|=0}wn(e,2,r)}else"maxResults"in t&&wn(e,2);if(void 0!==t.scoreThreshold){if(null!=(r=t.scoreThreshold)&&"number"!=typeof r)throw Error(`Value of float/double field must be a number, found ${typeof r}: ${r}`);wn(e,3,r)}else"scoreThreshold"in t&&wn(e,3);return void 0!==t.categoryAllowlist?Bn(e,4,t.categoryAllowlist):"categoryAllowlist"in t&&wn(e,4),void 0!==t.categoryDenylist?Bn(e,5,t.categoryDenylist):"categoryDenylist"in t&&wn(e,5),Fn(n,0,2,e),Bi(this,t)}I(t,n){var e=this.j+1;return this.g.addDoubleToStream(n??this.G,"sample_rate",e),this.g.addAudioToStreamWithShape(t,1,t.length,"audio_in",e),this.u=[],this.finishProcessing(),[...this.u]}};let xi;Vi.prototype.classify=Vi.prototype.I,Vi.prototype.setOptions=Vi.prototype.o,Vi.createFromModelPath=function(t,n){return Ei(t,{baseOptions:{modelAssetPath:n}})},Vi.createFromModelBuffer=function(t,n){return Li(t,{baseOptions:{modelAssetBuffer:n}})},Vi.createFromOptions=function(t,n){return Li(t,n)};const ki=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 Fi(t){if(t)return!0;if(void 0===xi)try{await WebAssembly.instantiate(ki),xi=!0}catch{xi=!1}return xi}async function Mi(t,n,e){return{wasmLoaderPath:`${n}/${t}_${e=`wasm${e?"_module":""}${await Fi(e)?"":"_nosimd"}_internal`}.js`,wasmBinaryPath:`${n}/${t}_${e}.wasm`}}var Di=class{};Di.forVisionTasks=function(t,n=!1){return Mi("vision",t??Gr``,n)},Di.forTextTasks=function(t,n=!1){return Mi("text",t??Gr``,n)},Di.forGenAiTasks=function(t,n=!1){return Mi("genai",t??Gr``,n)},Di.forAudioTasks=function(t,n=!1){return Mi("audio",t??Gr``,n)},Di.isSimdSupported=function(t=!1){return Fi(t)},exports.AudioClassifier=Vi,exports.AudioTaskRunner=Ni,exports.FilesetResolver=Di,exports.TaskRunner=Pi;
|
|
1
|
+
"use strict";function t(t){if(t&&t.__esModule)return t;var n=Object.create(null);return t&&Object.keys(t).forEach((function(e){if("default"!==e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}})),n.default=t,Object.freeze(n)}Object.defineProperty(exports,"__esModule",{value:!0});var n="undefined"!=typeof self?self:{};function e(t,e){t:{for(var r=["CLOSURE_FLAGS"],i=n,o=0;o<r.length;o++)if(null==(i=i[r[o]])){r=null;break t}r=i}return null!=(t=r&&r[t])?t:e}function r(){throw Error("Invalid UTF8")}function i(t,n){return n=String.fromCharCode.apply(null,n),null==t?n:t+n}let o,s;const a="undefined"!=typeof TextDecoder;let u;const c="undefined"!=typeof TextEncoder;function l(t){if(c)t=(u||=new TextEncoder).encode(t);else{let e=0;const r=new Uint8Array(3*t.length);for(let i=0;i<t.length;i++){var n=t.charCodeAt(i);if(n<128)r[e++]=n;else{if(n<2048)r[e++]=n>>6|192;else{if(n>=55296&&n<=57343){if(n<=56319&&i<t.length){const o=t.charCodeAt(++i);if(o>=56320&&o<=57343){n=1024*(n-55296)+o-56320+65536,r[e++]=n>>18|240,r[e++]=n>>12&63|128,r[e++]=n>>6&63|128,r[e++]=63&n|128;continue}i--}n=65533}r[e++]=n>>12|224,r[e++]=n>>6&63|128}r[e++]=63&n|128}}t=e===r.length?r:r.subarray(0,e)}return t}var h,f=e(610401301,!1),d=e(748402147,!0);function g(){var t=n.navigator;return t&&(t=t.userAgent)?t:""}const p=n.navigator;function v(t){return v[" "](t),t}h=p&&p.userAgentData||null,v[" "]=function(){};const y={};let m=null;function b(t){const n=t.length;let e=3*n/4;e%3?e=Math.floor(e):-1!="=.".indexOf(t[n-1])&&(e=-1!="=.".indexOf(t[n-2])?e-2:e-1);const r=new Uint8Array(e);let i=0;return function(t,n){function e(n){for(;r<t.length;){const n=t.charAt(r++),e=m[n];if(null!=e)return e;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return n}w();let r=0;for(;;){const t=e(-1),r=e(0),i=e(64),o=e(64);if(64===o&&-1===t)break;n(t<<2|r>>4),64!=i&&(n(r<<4&240|i>>2),64!=o&&n(i<<6&192|o))}}(t,(function(t){r[i++]=t})),i!==e?r.subarray(0,i):r}function w(){if(!m){m={};var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),n=["+/=","+/","-_=","-_.","-_"];for(let e=0;e<5;e++){const r=t.concat(n[e].split(""));y[e]=r;for(let t=0;t<r.length;t++){const n=r[t];void 0===m[n]&&(m[n]=t)}}}}var _="undefined"!=typeof Uint8Array,S=!(!(f&&h&&h.brands.length>0)&&(-1!=g().indexOf("Trident")||-1!=g().indexOf("MSIE")))&&"function"==typeof btoa;const A=/[-_.]/g,I={"-":"+",_:"/",".":"="};function E(t){return I[t]||""}function T(t){if(!S)return b(t);t=A.test(t)?t.replace(A,E):t,t=atob(t);const n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var B={};function U(){return j||=new O(null,B)}function P(t){N(B);var n=t.g;return null==(n=null==n||_&&null!=n&&n instanceof Uint8Array?n:"string"==typeof n?T(n):null)?n:t.g=n}var O=class{constructor(t,n){if(N(n),this.g=t,null!=t&&0===t.length)throw Error("ByteString should be constructed with non-empty values")}};let j,L;function N(t){if(t!==B)throw Error("illegal external caller")}function V(t,n){t.__closure__error__context__984382||(t.__closure__error__context__984382={}),t.__closure__error__context__984382.severity=n}function x(){const t=Error("int32");return V(t,"warning"),t}function k(t,e){if(null!=t){var r=L??={},i=r[t]||0;i>=e||(r[t]=i+1,V(t=Error(),"incident"),function(t){n.setTimeout((()=>{throw t}),0)}(t))}}function F(){return"function"==typeof BigInt}var M="function"==typeof Symbol&&"symbol"==typeof Symbol();function D(t,n,e=!1){return"function"==typeof Symbol&&"symbol"==typeof Symbol()?e&&Symbol.for&&t?Symbol.for(t):null!=t?Symbol(t):Symbol():n}var G=D("jas",void 0,!0),C=D(void 0,"1oa"),R=D(void 0,Symbol()),W=D(void 0,"0ubs"),$=D(void 0,"0ubsb"),H=D(void 0,"0actk"),z=D("m_m","O",!0);const K={J:{value:0,configurable:!0,writable:!0,enumerable:!1}},J=Object.defineProperties,X=M?G:"J";var Y;const q=[];function Q(t,n){M||X in t||J(t,K),t[X]|=n}function Z(t,n){M||X in t||J(t,K),t[X]=n}Z(q,7),Y=Object.freeze(q);var tt={};function nt(t,n){return void 0===n?t.g!==et&&!!(2&(0|t.l[X])):!!(2&n)&&t.g!==et}const et={};function rt(t,n){if(null!=t)if("string"==typeof t)t=t?new O(t,B):U();else if(t.constructor!==O)if(_&&null!=t&&t instanceof Uint8Array)t=t.length?new O(new Uint8Array(t),B):U();else{if(!n)throw Error();t=void 0}return t}var it=Object.freeze({});function ot(t,n,e){const r=128&n?0:-1,i=t.length;var o;(o=!!i)&&(o=null!=(o=t[i-1])&&"object"==typeof o&&o.constructor===Object);const s=i+(o?-1:0);for(n=128&n?1:0;n<s;n++)e(n-r,t[n]);if(o){t=t[i-1];for(const n in t)!isNaN(n)&&e(+n,t[n])}}var st={};function at(t){return 128&t?st:void 0}function ut(t){return t.M=!0,t}var ct=ut((t=>"number"==typeof t)),lt=ut((t=>"string"==typeof t)),ht=ut((t=>"boolean"==typeof t)),ft="function"==typeof n.BigInt&&"bigint"==typeof n.BigInt(0);function dt(t){var n=t;if(lt(n)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(n))throw Error(String(n))}else if(ct(n)&&!Number.isSafeInteger(n))throw Error(String(n));return ft?BigInt(t):t=ht(t)?t?"1":"0":lt(t)?t.trim()||"0":String(t)}var gt=ut((t=>ft?t>=vt&&t<=mt:"-"===t[0]?bt(t,pt):bt(t,yt)));const pt=Number.MIN_SAFE_INTEGER.toString(),vt=ft?BigInt(Number.MIN_SAFE_INTEGER):void 0,yt=Number.MAX_SAFE_INTEGER.toString(),mt=ft?BigInt(Number.MAX_SAFE_INTEGER):void 0;function bt(t,n){if(t.length>n.length)return!1;if(t.length<n.length||t===n)return!0;for(let e=0;e<t.length;e++){const r=t[e],i=n[e];if(r>i)return!1;if(r<i)return!0}}const wt="function"==typeof Uint8Array.prototype.slice;let _t,St=0,At=0;function It(t){const n=t>>>0;St=n,At=(t-n)/4294967296>>>0}function Et(t){if(t<0){It(-t);const[n,e]=Nt(St,At);St=n>>>0,At=e>>>0}else It(t)}function Tt(t,n){const e=4294967296*n+(t>>>0);return Number.isSafeInteger(e)?e:Pt(t,n)}function Bt(t,n){return dt(F()?BigInt.asUintN(64,(BigInt(n>>>0)<<BigInt(32))+BigInt(t>>>0)):Pt(t,n))}function Ut(t,n){return F()?dt(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(n))<<BigInt(32))+BigInt.asUintN(32,BigInt(t)))):dt(jt(t,n))}function Pt(t,n){if(t>>>=0,(n>>>=0)<=2097151)var e=""+(4294967296*n+t);else F()?e=""+(BigInt(n)<<BigInt(32)|BigInt(t)):(t=(16777215&t)+6777216*(e=16777215&(t>>>24|n<<8))+6710656*(n=n>>16&65535),e+=8147497*n,n*=2,t>=1e7&&(e+=t/1e7>>>0,t%=1e7),e>=1e7&&(n+=e/1e7>>>0,e%=1e7),e=n+Ot(e)+Ot(t));return e}function Ot(t){return t=String(t),"0000000".slice(t.length)+t}function jt(t,n){if(2147483648&n)if(F())t=""+(BigInt(0|n)<<BigInt(32)|BigInt(t>>>0));else{const[e,r]=Nt(t,n);t="-"+Pt(e,r)}else t=Pt(t,n);return t}function Lt(t){if(t.length<16)Et(Number(t));else if(F())t=BigInt(t),St=Number(t&BigInt(4294967295))>>>0,At=Number(t>>BigInt(32)&BigInt(4294967295));else{const n=+("-"===t[0]);At=St=0;const e=t.length;for(let r=n,i=(e-n)%6+n;i<=e;r=i,i+=6){const n=Number(t.slice(r,i));At*=1e6,St=1e6*St+n,St>=4294967296&&(At+=Math.trunc(St/4294967296),At>>>=0,St>>>=0)}if(n){const[t,n]=Nt(St,At);St=t,At=n}}}function Nt(t,n){return n=~n,t?t=1+~t:n+=1,[t,n]}function Vt(t){return Array.prototype.slice.call(t)}const xt="function"==typeof BigInt?BigInt.asIntN:void 0,kt="function"==typeof BigInt?BigInt.asUintN:void 0,Ft=Number.isSafeInteger,Mt=Number.isFinite,Dt=Math.trunc;function Gt(t){return null==t||"number"==typeof t?t:"NaN"===t||"Infinity"===t||"-Infinity"===t?Number(t):void 0}const Ct=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function Rt(t){switch(typeof t){case"bigint":return!0;case"number":return Mt(t);case"string":return Ct.test(t);default:return!1}}function Wt(t){if(null==t)return t;if("string"==typeof t&&t)t=+t;else if("number"!=typeof t)return;return Mt(t)?0|t:void 0}function $t(t){const n=t.length;return("-"===t[0]?n<20||20===n&&t<="-9223372036854775808":n<19||19===n&&t<="9223372036854775807")?t:(Lt(t),jt(St,At))}function Ht(t){if(t=Dt(t),!Ft(t)){Et(t);var n=St,e=At;(t=2147483648&e)&&(e=~e>>>0,0==(n=1+~n>>>0)&&(e=e+1>>>0)),t="number"==typeof(n=Tt(n,e))?t?-n:n:t?"-"+n:n}return t}function zt(t){var n=Dt(Number(t));return Ft(n)?String(n):(-1!==(n=t.indexOf("."))&&(t=t.substring(0,n)),$t(t))}function Kt(t){var n=typeof t;return null==t?t:"bigint"===n?dt(xt(64,t)):Rt(t)?("string"===n?(n=Dt(Number(t)),Ft(n)?t=dt(n):(-1!==(n=t.indexOf("."))&&(t=t.substring(0,n)),t=F()?dt(xt(64,BigInt(t))):dt($t(t)))):Ft(t)?t=dt(Ht(t)):(t=Dt(t),Ft(t)?t=String(t):(Et(t),t=jt(St,At)),t=dt(t)),t):void 0}function Jt(t){if("string"!=typeof t)throw Error();return t}function Xt(t){if(null!=t&&"string"!=typeof t)throw Error();return t}function Yt(t){return null==t||"string"==typeof t?t:void 0}function qt(t,n,e){if(null!=t&&t[z]===tt)return t;if(Array.isArray(t)){var r=0|t[X];return(e=r|32&e|2&e)!==r&&Z(t,e),new n(t)}}function Qt(t){return R?t[R]:void 0}function Zt(t,n){for(const e in t)!isNaN(e)&&n(t,+e,t[e])}var tn=class{};function nn(t,n){n<100||k(W,1)}function en(t,n,e,r){const i=void 0!==r;r=!!r;var o,s=R;!i&&M&&s&&(o=t[s])&&Zt(o,nn),s=[];var a=t.length;let u;o=4294967295;let c=!1;const l=!!(64&n),h=l?128&n?0:-1:void 0;1&n||(u=a&&t[a-1],null!=u&&"object"==typeof u&&u.constructor===Object?o=--a:u=void 0,!l||128&n||i||(c=!0,o=o-h+h)),n=void 0;for(var f=0;f<a;f++){let i=t[f];if(null!=i&&null!=(i=e(i,r)))if(l&&f>=o){const t=f-h;(n??={})[t]=i}else s[f]=i}if(u)for(let t in u){if(null==(a=u[t])||null==(a=e(a,r)))continue;let i;f=+t,l&&!Number.isNaN(f)&&(i=f+h)<o?s[i]=a:(n??={})[t]=a}return n&&(c?s.push(n):s[o]=n),i&&R&&(t=Qt(t))&&t instanceof tn&&(s[R]=function(t){const n=new tn;return Zt(t,((t,e,r)=>{n[e]=Vt(r)})),n.g=t.g,n}(t)),s}function rn(t){switch(typeof t){case"number":return Number.isFinite(t)?t:""+t;case"bigint":return gt(t)?Number(t):""+t;case"boolean":return t?1:0;case"object":if(Array.isArray(t)){var n=0|t[X];return 0===t.length&&1&n?void 0:en(t,n,rn)}if(null!=t&&t[z]===tt)return an(t);if(t instanceof O){if(null==(n=t.g))t="";else if("string"==typeof n)t=n;else{if(S){for(var e="",r=0,i=n.length-10240;r<i;)e+=String.fromCharCode.apply(null,n.subarray(r,r+=10240));e+=String.fromCharCode.apply(null,r?n.subarray(r):n),n=btoa(e)}else{void 0===e&&(e=0),w(),e=y[e],r=Array(Math.floor(n.length/3)),i=e[64]||"";let t=0,c=0;for(;t<n.length-2;t+=3){var o=n[t],s=n[t+1],a=n[t+2],u=e[o>>2];o=e[(3&o)<<4|s>>4],s=e[(15&s)<<2|a>>6],a=e[63&a],r[c++]=u+o+s+a}switch(u=0,a=i,n.length-t){case 2:a=e[(15&(u=n[t+1]))<<2]||i;case 1:n=n[t],r[c]=e[n>>2]+e[(3&n)<<4|u>>4]+a+i}n=r.join("")}t=t.g=n}return t}return}return t}let on,sn;function an(t){return en(t=t.l,0|t[X],rn)}function un(t,n){return cn(t,n[0],n[1])}function cn(t,n,e,r=0){if(null==t){var i=32;e?(t=[e],i|=128):t=[],n&&(i=-16760833&i|(1023&n)<<14)}else{if(!Array.isArray(t))throw Error("narr");if(i=0|t[X],d&&1&i)throw Error("rfarr");if(2048&i&&!(2&i)&&function(){if(d)throw Error("carr");k(H,5)}(),256&i)throw Error("farr");if(64&i)return(i|r)!==i&&Z(t,i|r),t;if(e&&(i|=128,e!==t[0]))throw Error("mid");t:{i|=64;var o=(e=t).length;if(o){var s=o-1;const t=e[s];if(null!=t&&"object"==typeof t&&t.constructor===Object){if((s-=n=128&i?0:-1)>=1024)throw Error("pvtlmt");for(var a in t)(o=+a)<s&&(e[o+n]=t[a],delete t[a]);i=-16760833&i|(1023&s)<<14;break t}}if(n){if((a=Math.max(n,o-(128&i?0:-1)))>1024)throw Error("spvt");i=-16760833&i|(1023&a)<<14}}}return Z(t,64|i|r),t}function ln(t,n){if("object"!=typeof t)return t;if(Array.isArray(t)){var e=0|t[X];return 0===t.length&&1&e?t=void 0:2&e||(!n||4096&e||16&e?t=fn(t,e,!1,n&&!(16&e)):(Q(t,34),4&e&&Object.freeze(t))),t}return null!=t&&t[z]===tt?nt(t,e=0|(n=t.l)[X])?t:yn(t,n,e)?hn(t,n):fn(n,e):t instanceof O?t:void 0}function hn(t,n,e){return t=new t.constructor(n),e&&(t.g=et),t.m=et,t}function fn(t,n,e,r){return r??=!!(34&n),t=en(t,n,ln,r),r=32,e&&(r|=2),Z(t,n=16769217&n|r),t}function dn(t){const n=t.l,e=0|n[X];return nt(t,e)?yn(t,n,e)?hn(t,n,!0):new t.constructor(fn(n,e,!1)):t}function gn(t){if(t.g!==et)return!1;var n=t.l;return Q(n=fn(n,0|n[X]),2048),t.l=n,t.g=void 0,t.m=void 0,!0}function pn(t){if(!gn(t)&&nt(t,0|t.l[X]))throw Error()}function vn(t,n){void 0===n&&(n=0|t[X]),32&n&&!(4096&n)&&Z(t,4096|n)}function yn(t,n,e){return!!(2&e)||!(!(32&e)||4096&e)&&(Z(n,2|e),t.g=et,!0)}const mn=dt(0);function bn(t,n,e,r){if(null!==(t=wn(t.l,n,e,r)))return t}function wn(t,n,e,r){if(-1===n)return null;const i=n+(e?0:-1),o=t.length-1;let s,a;if(!(o<1+(e?0:-1))){if(i>=o)if(s=t[o],null!=s&&"object"==typeof s&&s.constructor===Object)e=s[n],a=!0;else{if(i!==o)return;e=s}else e=t[i];if(r&&null!=e){if(null==(r=r(e)))return r;if(!Object.is(r,e))return a?s[n]=r:t[i]=r,r}return e}}function _n(t,n,e,r){pn(t),Sn(t=t.l,0|t[X],n,e,r)}function Sn(t,n,e,r,i){const o=e+(i?0:-1);var s=t.length-1;if(s>=1+(i?0:-1)&&o>=s){const i=t[s];if(null!=i&&"object"==typeof i&&i.constructor===Object)return i[e]=r,n}return o<=s?(t[o]=r,n):(void 0!==r&&(e>=(s=(n??=0|t[X])>>14&1023||536870912)?null!=r&&(t[s+(i?0:-1)]={[e]:r}):t[o]=r),n)}function An(t,n,e,r,i,o,s,a){let u=n;return 1===o||4===o&&(2&n||!(16&n)&&32&r)?Tn(n)||((n|=!t.length||s&&!(4096&n)||32&r&&!(4096&n||16&n)?2:256)!==u&&Z(t,n),Object.freeze(t)):(2===o&&Tn(n)&&(t=Vt(t),u=0,n=Gn(n,r),r=Sn(e,r,i,t)),Tn(n)||(a||(n|=16),n!==u&&Z(t,n))),2&n||!(4096&n||16&n)||vn(e,r),t}function In(t,n,e){return t=wn(t,n,e),Array.isArray(t)?t:Y}function En(t,n){return 2&n&&(t|=2),1|t}function Tn(t){return!!(2&t)&&!!(4&t)||!!(256&t)}function Bn(t){return rt(t,!0)}function Un(t,n,e){pn(t);let r=0|(t=t.l)[X];if(null==e)Sn(t,r,n);else{var i=e===Y?7:0|e[X],o=i,s=Tn(i),a=s||Object.isFrozen(e);for(s||(i=0),a||(e=Vt(e),o=0,i=Gn(i,r),a=!1),i|=5,i|=(4&i?512&i?512:1024&i?1024:0:void 0)??1024,s=0;s<e.length;s++){const t=e[s],n=Jt(t);Object.is(t,n)||(a&&(e=Vt(e),o=0,i=Gn(i,r),a=!1),e[s]=n)}i!==o&&(a&&(e=Vt(e),i=Gn(i,r)),Z(e,i)),Sn(t,r,n,e)}}function Pn(t,n,e){if(2&n)throw Error();const r=at(n);let i=In(t,e,r),o=i===Y?7:0|i[X],s=En(o,n);return(2&s||Tn(s)||16&s)&&(s===o||Tn(s)||Z(i,s),i=Vt(i),o=0,s=Gn(s,n),Sn(t,n,e,i,r)),s&=-13,s!==o&&Z(i,s),i}function On(t){if(M)return t[C]??(t[C]=new Map);if(C in t)return t[C];const n=new Map;return Object.defineProperty(t,C,{value:n}),n}function jn(t,n,e,r,i){const o=On(t),s=Ln(o,t,n,e,i);return s!==r&&(s&&(n=Sn(t,n,s,void 0,i)),o.set(e,r)),n}function Ln(t,n,e,r,i){let o=t.get(r);if(null!=o)return o;o=0;for(let t=0;t<r.length;t++){const s=r[t];null!=wn(n,s,i)&&(0!==o&&(e=Sn(n,e,o,void 0,i)),o=s)}return t.set(r,o),o}function Nn(t,n,e){let r=0|t[X];const i=at(r),o=wn(t,e,i);let s;if(null!=o&&o[z]===tt){if(!nt(o))return gn(o),o.l;s=o.l}else Array.isArray(o)&&(s=o);if(s){const t=0|s[X];2&t&&(s=fn(s,t))}return s=un(s,n),s!==o&&Sn(t,r,e,s,i),s}function Vn(t,n,e){let r=t.l,i=0|r[X];if(n=function(t,n,e,r){let i=!1;if(null!=(r=wn(t,r,void 0,(t=>{const r=qt(t,e,n);return i=r!==t&&null!=r,r}))))return i&&!nt(r)&&vn(t,n),r}(r,i,n,e),null==n)return n;if(i=0|r[X],!nt(t,i)){const o=dn(n);o!==n&&(gn(t)&&(r=t.l,i=0|r[X]),i=Sn(r,i,e,n=o),vn(r,i))}return n}function xn(t,n,e,r,i,o,s){var a=nt(t,e);i=a?1:i,o=!!o||3===i,a=s&&!a,(2===i||a)&&gn(t)&&(e=0|(n=t.l)[X]);var u=(t=In(n,1))===Y?7:0|t[X],c=En(u,e);if(s=!(4&c)){var l=t,h=e;const n=!!(2&c);n&&(h|=2);let i=!n,o=!0,s=0,a=0;for(;s<l.length;s++){const t=qt(l[s],r,h);if(t instanceof r){if(!n){const n=nt(t);i&&=!n,o&&=n}l[a++]=t}}a<s&&(l.length=a),c|=4,c=o?-4097&c:4096|c,c=i?8|c:-9&c}if(c!==u&&(Z(t,c),2&c&&Object.freeze(t)),a&&!(8&c||!t.length&&(1===i||4===i&&(2&c||!(16&c)&&32&e)))){for(Tn(c)&&(t=Vt(t),c=Gn(c,e),e=Sn(n,e,1,t)),r=t,a=c,u=0;u<r.length;u++)(l=r[u])!==(c=dn(l))&&(r[u]=c);a|=8,Z(t,c=a=r.length?4096|a:-4097&a)}return An(t,c,n,e,1,i,s,o)}function kn(t,n){const e=t.l;return xn(t,e,0|e[X],n,void 0===it?2:4,!1,!0)}function Fn(t){return null==t&&(t=void 0),t}function Mn(t,n,e,r,i){return _n(t,e,r=Fn(r),i),r&&!nt(r)&&vn(t.l),t}function Dn(t,n,e){var r=hi;t:{var i=e=Fn(e);pn(t);const o=t.l;let s=0|o[X];if(null==i){const t=On(o);if(Ln(t,o,s,r)!==n)break t;t.set(r,0)}else s=jn(o,s,r,n);Sn(o,s,n,i)}e&&!nt(e)&&vn(t.l)}function Gn(t,n){return-273&(t=2&n?2|t:-3&t)}function Cn(t,n,e){pn(t);let r=t.l,i=0|r[X];const o=nt(t,i)?1:2;2===o&&gn(t)&&(r=t.l,i=0|r[X]);let s=(t=In(r,n))===Y?7:0|t[X];var a=En(s,i);const u=!(4&a);if(u){4&a&&(t=Vt(t),s=0,a=Gn(a,i),i=Sn(r,i,n,t));let e=0,o=0;for(;e<t.length;e++){const n=Yt(t[e]);null!=n&&(t[o++]=n)}o<e&&(t.length=o),a=-513&(4|a),a&=-1025,a&=-4097}a!==s&&(Z(t,a),2&a&&Object.freeze(t)),(t=An(t,a,r,i,n,o,u,!0)).push(Jt(e))}var Rn=class{constructor(t,n,e){if(this.buffer=t,e&&!n)throw Error();this.g=n}};function Wn(t,n){if("string"==typeof t)return new Rn(T(t),n);if(Array.isArray(t))return new Rn(new Uint8Array(t),n);if(t.constructor===Uint8Array)return new Rn(t,!1);if(t.constructor===ArrayBuffer)return t=new Uint8Array(t),new Rn(t,!1);if(t.constructor===O)return n=P(t)||new Uint8Array(0),new Rn(n,!0,t);if(t instanceof Uint8Array)return t=t.constructor===Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Rn(t,!1);throw Error()}function $n(t,n){let e,r=0,i=0,o=0;const s=t.i;let a=t.g;do{e=s[a++],r|=(127&e)<<o,o+=7}while(o<32&&128&e);if(o>32)for(i|=(127&e)>>4,o=3;o<32&&128&e;o+=7)e=s[a++],i|=(127&e)<<o;if(Xn(t,a),!(128&e))return n(r>>>0,i>>>0);throw Error()}function Hn(t){let n=0,e=t.g;const r=e+10,i=t.i;for(;e<r;){const r=i[e++];if(n|=r,0==(128&r))return Xn(t,e),!!(127&n)}throw Error()}function zn(t){const n=t.i;let e=t.g,r=n[e++],i=127&r;if(128&r&&(r=n[e++],i|=(127&r)<<7,128&r&&(r=n[e++],i|=(127&r)<<14,128&r&&(r=n[e++],i|=(127&r)<<21,128&r&&(r=n[e++],i|=r<<28,128&r&&128&n[e++]&&128&n[e++]&&128&n[e++]&&128&n[e++]&&128&n[e++])))))throw Error();return Xn(t,e),i}function Kn(t){var n=t.i;const e=t.g,r=n[e],i=n[e+1],o=n[e+2];return n=n[e+3],Xn(t,t.g+4),(r<<0|i<<8|o<<16|n<<24)>>>0}function Jn(t){return zn(t)}function Xn(t,n){if(t.g=n,n>t.j)throw Error()}function Yn(t,n){if(n<0)throw Error();const e=t.g;if((n=e+n)>t.j)throw Error();return t.g=n,e}function qn(t,n){if(0==n)return U();var e=Yn(t,n);return t.A&&t.u?e=t.i.subarray(e,e+n):(t=t.i,e=e===(n=e+n)?new Uint8Array(0):wt?t.slice(e,n):new Uint8Array(t.subarray(e,n))),0==e.length?U():new O(e,B)}var Qn=[];function Zn(t,n,e,r){if(ue.length){const i=ue.pop();return i.o(r),i.g.init(t,n,e,r),i}return new ae(t,n,e,r)}function te(t){t.g.clear(),t.j=-1,t.i=-1,ue.length<100&&ue.push(t)}function ne(t){var n=t.g;if(n.g==n.j)return!1;t.m=t.g.g;var e=zn(t.g)>>>0;if(n=e>>>3,!((e&=7)>=0&&e<=5))throw Error();if(n<1)throw Error();return t.j=n,t.i=e,!0}function ee(t){switch(t.i){case 0:0!=t.i?ee(t):Hn(t.g);break;case 1:Xn(t=t.g,t.g+8);break;case 2:if(2!=t.i)ee(t);else{var n=zn(t.g)>>>0;Xn(t=t.g,t.g+n)}break;case 5:Xn(t=t.g,t.g+4);break;case 3:for(n=t.j;;){if(!ne(t))throw Error();if(4==t.i){if(t.j!=n)throw Error();break}ee(t)}break;default:throw Error()}}function re(t,n,e){const r=t.g.j;var i=zn(t.g)>>>0;let o=(i=t.g.g+i)-r;if(o<=0&&(t.g.j=i,e(n,t,void 0,void 0,void 0),o=i-t.g.g),o)throw Error();t.g.g=i,t.g.j=r}function ie(t){var n=zn(t.g)>>>0,e=Yn(t=t.g,n);if(t=t.i,a){var u,c=t;(u=s)||(u=s=new TextDecoder("utf-8",{fatal:!0})),n=e+n,c=0===e&&n===c.length?c:c.subarray(e,n);try{var l=u.decode(c)}catch(t){if(void 0===o){try{u.decode(new Uint8Array([128]))}catch(t){}try{u.decode(new Uint8Array([97])),o=!0}catch(t){o=!1}}throw!o&&(s=void 0),t}}else{n=(l=e)+n,e=[];let o,s=null;for(;l<n;){var h=t[l++];h<128?e.push(h):h<224?l>=n?r():(o=t[l++],h<194||128!=(192&o)?(l--,r()):e.push((31&h)<<6|63&o)):h<240?l>=n-1?r():(o=t[l++],128!=(192&o)||224===h&&o<160||237===h&&o>=160||128!=(192&(u=t[l++]))?(l--,r()):e.push((15&h)<<12|(63&o)<<6|63&u)):h<=244?l>=n-2?r():(o=t[l++],128!=(192&o)||o-144+(h<<28)>>30!=0||128!=(192&(u=t[l++]))||128!=(192&(c=t[l++]))?(l--,r()):(h=(7&h)<<18|(63&o)<<12|(63&u)<<6|63&c,h-=65536,e.push(55296+(h>>10&1023),56320+(1023&h)))):r(),e.length>=8192&&(s=i(s,e),e.length=0)}l=i(s,e)}return l}function oe(t){const n=zn(t.g)>>>0;return qn(t.g,n)}function se(t,n,e){var r=zn(t.g)>>>0;for(r=t.g.g+r;t.g.g<r;)e.push(n(t.g))}var ae=class{constructor(t,n,e,r){if(Qn.length){const i=Qn.pop();i.init(t,n,e,r),t=i}else t=new class{constructor(t,n,e,r){this.i=null,this.u=!1,this.g=this.j=this.m=0,this.init(t,n,e,r)}init(t,n,e,{A:r=!1,C:i=!1}={}){this.A=r,this.C=i,t&&(t=Wn(t,this.C),this.i=t.buffer,this.u=t.g,this.m=n||0,this.j=void 0!==e?this.m+e:this.i.length,this.g=this.m)}clear(){this.i=null,this.u=!1,this.g=this.j=this.m=0,this.A=!1}}(t,n,e,r);this.g=t,this.m=this.g.g,this.i=this.j=-1,this.o(r)}o({D:t=!1}={}){this.D=t}},ue=[];function ce(t){return t?/^\d+$/.test(t)?(Lt(t),new le(St,At)):null:he||=new le(0,0)}var le=class{constructor(t,n){this.i=t>>>0,this.g=n>>>0}};let he;function fe(t){return t?/^-?\d+$/.test(t)?(Lt(t),new de(St,At)):null:ge||=new de(0,0)}var de=class{constructor(t,n){this.i=t>>>0,this.g=n>>>0}};let ge;function pe(t,n,e){for(;e>0||n>127;)t.g.push(127&n|128),n=(n>>>7|e<<25)>>>0,e>>>=7;t.g.push(n)}function ve(t,n){for(;n>127;)t.g.push(127&n|128),n>>>=7;t.g.push(n)}function ye(t,n){if(n>=0)ve(t,n);else{for(let e=0;e<9;e++)t.g.push(127&n|128),n>>=7;t.g.push(1)}}function me(t,n){t.g.push(n>>>0&255),t.g.push(n>>>8&255),t.g.push(n>>>16&255),t.g.push(n>>>24&255)}function be(t,n){0!==n.length&&(t.j.push(n),t.i+=n.length)}function we(t,n,e){ve(t.g,8*n+e)}function _e(t,n){return we(t,n,2),n=t.g.end(),be(t,n),n.push(t.i),n}function Se(t,n){var e=n.pop();for(e=t.i+t.g.length()-e;e>127;)n.push(127&e|128),e>>>=7,t.i++;n.push(e),t.i++}function Ae(t,n,e){we(t,n,2),ve(t.g,e.length),be(t,t.g.end()),be(t,e)}function Ie(){const t=class{constructor(){throw Error()}};return Object.setPrototypeOf(t,t.prototype),t}var Ee=Ie(),Te=Ie(),Be=Ie(),Ue=Ie(),Pe=Ie(),Oe=Ie(),je=Ie(),Le=Ie(),Ne=Ie(),Ve=Ie(),xe=Ie();var ke=class{constructor(t,n){this.l=cn(t,n,void 0,2048)}toJSON(){return an(this)}};ke.prototype[z]=tt,ke.prototype.toString=function(){return this.l.toString()};var Fe=class{constructor(t,n,e){this.g=t,this.i=n,t=Ee,this.j=!!t&&e===t||!1}};function Me(t,n){return new Fe(t,n,Ee)}function De(t,n,e,r,i){null!=(n=qe(n,r))&&(e=_e(t,e),i(n,t),Se(t,e))}const Ge=Me((function(t,n,e,r,i){return 2===t.i&&(re(t,Nn(n,r,e),i),!0)}),De),Ce=Me((function(t,n,e,r,i){return 2===t.i&&(re(t,Nn(n,r,e),i),!0)}),De);var Re=Symbol(),We=Symbol(),$e=Symbol(),He=Symbol(),ze=Symbol();let Ke,Je;function Xe(t,n,e,r){var i=r[t];if(i)return i;(i={}).H=r,i.v=function(t){switch(typeof t){case"boolean":return on||=[0,void 0,!0];case"number":return t>0?void 0:0===t?sn||=[0,void 0]:[-t,void 0];case"string":return[0,t];case"object":return t}}(r[0]);var o=r[1];let s=1;o&&o.constructor===Object&&(i.B=o,"function"==typeof(o=r[++s])&&(i.F=!0,Ke??=o,Je??=r[s+1],o=r[s+=2]));const a={};for(;o&&Array.isArray(o)&&o.length&&"number"==typeof o[0]&&o[0]>0;){for(var u=0;u<o.length;u++)a[o[u]]=o;o=r[++s]}for(u=1;void 0!==o;){let t;"number"==typeof o&&(u+=o,o=r[++s]);var c=void 0;if(o instanceof Fe?t=o:(t=Ge,s--),t?.j){o=r[++s],c=r;var l=s;"function"==typeof o&&(o=o(),c[l]=o),c=o}for(l=u+1,"number"==typeof(o=r[++s])&&o<0&&(l-=o,o=r[++s]);u<l;u++){const r=a[u];c?e(i,u,t,c,r):n(i,u,t,r)}}return r[t]=i}function Ye(t){return Array.isArray(t)?t[0]instanceof Fe?t:[Ce,t]:[t,void 0]}function qe(t,n){return t instanceof ke?t.l:Array.isArray(t)?un(t,n):void 0}function Qe(t,n,e,r){const i=e.g;t[n]=r?(t,n,e)=>i(t,n,e,r):i}function Ze(t,n,e,r,i){const o=e.g;let s,a;t[n]=(t,n,e)=>o(t,n,e,a||=Xe(We,Qe,Ze,r).v,s||=tr(r),i)}function tr(t){let n=t[$e];if(null!=n)return n;const e=Xe(We,Qe,Ze,t);return n=e.F?(t,n)=>Ke(t,n,e):(t,n)=>{for(;ne(n)&&4!=n.i;){var r=n.j,i=e[r];if(null==i){var o=e.B;o&&(o=o[r])&&(null!=(o=er(o))&&(i=e[r]=o))}if(null==i||!i(n,t,r)){if(i=(o=n).m,ee(o),o.D)var s=void 0;else s=o.g.g-i,o.g.g=i,s=qn(o.g,s);i=void 0,o=t,s&&((i=o[R]??(o[R]=new tn))[r]??(i[r]=[])).push(s)}}return(t=Qt(t))&&(t.g=e.H[ze]),!0},t[$e]=n,t[ze]=nr.bind(t),n}function nr(t,n,e,r){var i=this[We];const o=this[$e],s=un(void 0,i.v),a=Qt(t);if(a){var u=!1,c=i.B;if(c){if(i=(n,e,i)=>{if(0!==i.length)if(c[e])for(const t of i){n=Zn(t);try{u=!0,o(s,n)}finally{te(n)}}else r?.(t,e,i)},null==n)Zt(a,i);else if(null!=a){const t=a[n];t&&i(a,n,t)}if(u){let r=0|t[X];if(2&r&&2048&r&&!e?.R)throw Error();const i=at(r),o=(n,o)=>{if(null!=wn(t,n,i)){if(1===e?.P)return;throw Error()}null!=o&&(r=Sn(t,r,n,o,i)),delete a[n]};null==n?ot(s,0|s[X],((t,n)=>{o(t,n)})):o(n,wn(s,n,i))}}}}function er(t){const n=(t=Ye(t))[0].g;if(t=t[1]){const e=tr(t),r=Xe(We,Qe,Ze,t).v;return(t,i,o)=>n(t,i,o,r,e)}return n}function rr(t,n,e){t[n]=e.i}function ir(t,n,e,r){let i,o;const s=e.i;t[n]=(t,n,e)=>s(t,n,e,o||=Xe(Re,rr,ir,r).v,i||=or(r))}function or(t){let n=t[He];if(!n){const e=Xe(Re,rr,ir,t);n=(t,n)=>sr(t,n,e),t[He]=n}return n}function sr(t,n,e){ot(t,0|t[X],((t,r)=>{if(null!=r){var i=function(t,n){var e=t[n];if(e)return e;if((e=t.B)&&(e=e[n])){var r=(e=Ye(e))[0].i;if(e=e[1]){const n=or(e),i=Xe(Re,rr,ir,e).v;e=t.F?Je(i,n):(t,e,o)=>r(t,e,o,i,n)}else e=r;return t[n]=e}}(e,t);i?i(n,r,t):t<500||k($,3)}})),(t=Qt(t))&&Zt(t,((t,e,r)=>{for(be(n,n.g.end()),t=0;t<r.length;t++)be(n,P(r[t])||new Uint8Array(0))}))}const ar=dt(0);function ur(t,n){if(Array.isArray(n)){var e=0|n[X];if(4&e)return n;for(var r=0,i=0;r<n.length;r++){const e=t(n[r]);null!=e&&(n[i++]=e)}return i<r&&(n.length=i),(t=-1537&(5|e))!==e&&Z(n,t),2&t&&Object.freeze(n),n}}function cr(t,n,e){return new Fe(t,n,e)}function lr(t,n,e){return new Fe(t,n,e)}function hr(t,n,e){Sn(t,0|t[X],n,e,at(0|t[X]))}function fr(t,n,e){if(n=function(t){if(null==t)return t;const n=typeof t;if("bigint"===n)return String(xt(64,t));if(Rt(t)){if("string"===n)return zt(t);if("number"===n)return Ht(t)}}(n),null!=n){if("string"==typeof n)fe(n);if(null!=n)switch(we(t,e,0),typeof n){case"number":t=t.g,Et(n),pe(t,St,At);break;case"bigint":e=BigInt.asUintN(64,n),e=new de(Number(e&BigInt(4294967295)),Number(e>>BigInt(32))),pe(t.g,e.i,e.g);break;default:e=fe(n),pe(t.g,e.i,e.g)}}}function dr(t,n,e){null!=(n=Wt(n))&&null!=n&&(we(t,e,0),ye(t.g,n))}function gr(t,n,e){null!=(n=null==n||"boolean"==typeof n?n:"number"==typeof n?!!n:void 0)&&(we(t,e,0),t.g.g.push(n?1:0))}function pr(t,n,e){null!=(n=Yt(n))&&Ae(t,e,l(n))}function vr(t,n,e,r,i){null!=(n=qe(n,r))&&(e=_e(t,e),i(n,t),Se(t,e))}function yr(t,n,e){null!=(n=null==n||"string"==typeof n||n instanceof O?n:void 0)&&Ae(t,e,Wn(n,!0).buffer)}function mr(t,n,e){n=function(t){if(null==t)return t;if("string"==typeof t&&t)t=+t;else if("number"!=typeof t)return;return Mt(t)?t>>>0:void 0}(n),null!=n&&null!=n&&(we(t,e,0),ve(t.g,n))}var br=cr((function(t,n,e){if(1!==t.i)return!1;var r=t.g;t=Kn(r);const i=Kn(r);r=2*(i>>31)+1;const o=i>>>20&2047;return t=4294967296*(1048575&i)+t,hr(n,e,2047==o?t?NaN:r*(1/0):0==o?5e-324*r*t:r*Math.pow(2,o-1075)*(t+4503599627370496)),!0}),(function(t,n,e){null!=(n=Gt(n))&&(we(t,e,1),t=t.g,(e=_t||=new DataView(new ArrayBuffer(8))).setFloat64(0,+n,!0),St=e.getUint32(0,!0),At=e.getUint32(4,!0),me(t,St),me(t,At))}),Ne),wr=cr((function(t,n,e){if(5!==t.i)return!1;var r=Kn(t.g);t=2*(r>>31)+1;const i=r>>>23&255;return r&=8388607,hr(n,e,255==i?r?NaN:t*(1/0):0==i?1401298464324817e-60*t*r:t*Math.pow(2,i-150)*(r+8388608)),!0}),(function(t,n,e){null!=(n=Gt(n))&&(we(t,e,5),t=t.g,(e=_t||=new DataView(new ArrayBuffer(8))).setFloat32(0,+n,!0),At=0,St=e.getUint32(0,!0),me(t,St))}),Le),_r=cr((function(t,n,e){return 0!==t.i?t=!1:(hr(n,e,$n(t.g,Ut)),t=!0),t}),fr,Oe),Sr=cr((function(t,n,e){return 0!==t.i?n=!1:(hr(n,e,(t=$n(t.g,Ut))===ar?void 0:t),n=!0),n}),fr,Oe),Ar=cr((function(t,n,e){return 0!==t.i?t=!1:(hr(n,e,$n(t.g,Bt)),t=!0),t}),(function(t,n,e){if(n=function(t){if(null==t)return t;var n=typeof t;if("bigint"===n)return String(kt(64,t));if(Rt(t)){if("string"===n)return n=Dt(Number(t)),Ft(n)&&n>=0?t=String(n):(-1!==(n=t.indexOf("."))&&(t=t.substring(0,n)),(n="-"!==t[0]&&((n=t.length)<20||20===n&&t<="18446744073709551615"))||(Lt(t),t=Pt(St,At))),t;if("number"===n)return(t=Dt(t))>=0&&Ft(t)||(Et(t),t=Tt(St,At)),t}}(n),null!=n){if("string"==typeof n)ce(n);if(null!=n)switch(we(t,e,0),typeof n){case"number":t=t.g,Et(n),pe(t,St,At);break;case"bigint":e=BigInt.asUintN(64,n),e=new le(Number(e&BigInt(4294967295)),Number(e>>BigInt(32))),pe(t.g,e.i,e.g);break;default:e=ce(n),pe(t.g,e.i,e.g)}}}),je),Ir=cr((function(t,n,e){return 0===t.i&&(hr(n,e,zn(t.g)),!0)}),dr,Ue),Er=lr((function(t,n,e){return(0===t.i||2===t.i)&&(n=Pn(n,0|n[X],e),2==t.i?se(t,zn,n):n.push(zn(t.g)),!0)}),(function(t,n,e){if(null!=(n=ur(Wt,n))&&n.length){e=_e(t,e);for(let e=0;e<n.length;e++)ye(t.g,n[e]);Se(t,e)}}),Ue),Tr=cr((function(t,n,e){return 0===t.i&&(hr(n,e,0===(t=zn(t.g))?void 0:t),!0)}),dr,Ue),Br=cr((function(t,n,e){return 0===t.i&&(hr(n,e,Hn(t.g)),!0)}),gr,Te),Ur=cr((function(t,n,e){return 0===t.i&&(hr(n,e,!1===(t=Hn(t.g))?void 0:t),!0)}),gr,Te),Pr=lr((function(t,n,e){return 2===t.i&&(t=ie(t),Pn(n,0|n[X],e).push(t),!0)}),(function(t,n,e){if(null!=(n=ur(Yt,n)))for(let s=0;s<n.length;s++){var r=t,i=e,o=n[s];null!=o&&Ae(r,i,l(o))}}),Be),Or=cr((function(t,n,e){return 2===t.i&&(hr(n,e,""===(t=ie(t))?void 0:t),!0)}),pr,Be),jr=cr((function(t,n,e){return 2===t.i&&(hr(n,e,ie(t)),!0)}),pr,Be),Lr=function(t,n,e=Ee){return new Fe(t,n,e)}((function(t,n,e,r,i){return 2===t.i&&(r=un(void 0,r),Pn(n,0|n[X],e).push(r),re(t,r,i),!0)}),(function(t,n,e,r,i){if(Array.isArray(n)){for(let o=0;o<n.length;o++)vr(t,n[o],e,r,i);1&(t=0|n[X])||Z(n,1|t)}})),Nr=Me((function(t,n,e,r,i,o){if(2!==t.i)return!1;let s=0|n[X];return jn(n,s,o,e,at(s)),re(t,n=Nn(n,r,e),i),!0}),vr),Vr=cr((function(t,n,e){return 2===t.i&&(hr(n,e,oe(t)),!0)}),yr,Ve),xr=cr((function(t,n,e){return 0===t.i&&(hr(n,e,0===(t=zn(t.g)>>>0)?void 0:t),!0)}),mr,Pe),kr=cr((function(t,n,e){return 0===t.i&&(hr(n,e,zn(t.g)),!0)}),(function(t,n,e){null!=(n=Wt(n))&&(n=parseInt(n,10),we(t,e,0),ye(t.g,n))}),xe);var Fr=[0,Or,cr((function(t,n,e){return 2===t.i&&(hr(n,e,(t=oe(t))===U()?void 0:t),!0)}),(function(t,n,e){if(null!=n){if(n instanceof ke){const r=n.S;return void(r?(n=r(n),null!=n&&Ae(t,e,Wn(n,!0).buffer)):k($,3))}if(Array.isArray(n))return void k($,3)}yr(t,n,e)}),Ve)];let Mr,Dr=globalThis.trustedTypes;function Gr(t){var n;return void 0===Mr&&(Mr=function(){let t=null;if(!Dr)return t;try{const n=t=>t;t=Dr.createPolicy("goog#html",{createHTML:n,createScript:n,createScriptURL:n})}catch(t){}return t}()),t=(n=Mr)?n.createScriptURL(t):t,new class{constructor(t){this.g=t}toString(){return this.g+""}}(t)}function Cr(t,...n){if(0===n.length)return Gr(t[0]);let e=t[0];for(let r=0;r<n.length;r++)e+=encodeURIComponent(n[r])+t[r+1];return Gr(e)}var Rr=[0,Ir,kr,Br,-1,Er,kr,-1,Br],Wr=class extends ke{constructor(t){super(t)}},$r=[0,Br,jr,Br,kr,-1,lr((function(t,n,e){return(0===t.i||2===t.i)&&(n=Pn(n,0|n[X],e),2==t.i?se(t,Jn,n):n.push(zn(t.g)),!0)}),(function(t,n,e){if(null!=(n=ur(Wt,n))&&n.length){e=_e(t,e);for(let e=0;e<n.length;e++)ye(t.g,n[e]);Se(t,e)}}),xe),jr,-1,[0,Br,-1],kr,Br,-1],Hr=[0,3,Br,-1,2,[0,[2],Ir,Nr,[0,cr((function(t,n,e){return 0===t.i&&(hr(n,e,zn(t.g)>>>0),!0)}),mr,Pe)]],[0,kr,Br,kr,Br,kr,Br,jr,-1],[0,[3,4],jr,-1,Nr,[0,Ir],Nr,[0,kr]],[0]],zr=[0,jr,-2],Kr=class extends ke{constructor(t){super(t)}},Jr=[0],Xr=[0,Ir,Br,1,Br,-4],Yr=class extends ke{constructor(t){super(t,2)}},qr={};qr[336783863]=[0,jr,Br,-1,Ir,[0,[1,2,3,4,5,6,7,8,9],Nr,Jr,Nr,$r,Nr,zr,Nr,Xr,Nr,Rr,Nr,[0,jr,-2],Nr,[0,jr,kr],Nr,Hr,Nr,[0,kr,-1,Br]],[0,jr],Br,[0,[1,3],[2,4],Nr,[0,Er],-1,Nr,[0,Pr],-1,Lr,[0,jr,-1]],jr];var Qr,Zr=[0,Sr,-1,Ur,-3,Sr,Er,Or,Tr,Sr,-1,Ur,Tr,Ur,-2,Or],ti=class extends ke{constructor(t){super(t,500)}o(t){return Mn(this,0,7,t)}},ni=[-1,{}],ei=[0,jr,1,ni],ri=[0,jr,Pr,ni],ii=class extends ke{constructor(t){super(t,500)}o(t){return Mn(this,0,1001,t)}};ii.prototype.i=(Qr=[-500,Lr,[-500,Or,-1,Pr,-3,[-2,qr,Br],Lr,Fr,Tr,-1,ei,ri,Lr,[0,Or,Ur],Or,Zr,Tr,Pr,987,Pr],4,Lr,[-500,jr,-1,[-1,{}],998,jr],Lr,[-500,jr,Pr,-1,[-2,{},Br],997,Pr,-1],Tr,Lr,[-500,jr,Pr,ni,998,Pr],Pr,Tr,ei,ri,Lr,[0,Or,-1,ni],Pr,-2,Zr,Or,-1,Ur,[0,Ur,xr],978,ni,Lr,Fr],function(){const t=new class{constructor(){this.j=[],this.i=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){const t=this.g;return this.g=[],t}}}};sr(this.l,t,Xe(Re,rr,ir,Qr)),be(t,t.g.end());const n=new Uint8Array(t.i),e=t.j,r=e.length;let i=0;for(let t=0;t<r;t++){const r=e[t];n.set(r,i),i+=r.length}return t.j=[n],n});var oi,si=class extends ke{constructor(t){super(t)}},ai=class extends ke{constructor(t){super(t)}i(){return kn(this,si)}},ui=[0,Lr,[0,Ir,wr,jr,-1]],ci=class extends ke{constructor(t){super(t)}},li=class extends ke{constructor(t){super(t)}},hi=[1,2,3,4,5,6],fi=class extends ke{constructor(t){super(t)}i(){return null!=bn(this,1,void 0,Bn)}j(){return null!=Yt(bn(this,2))}},di=class extends ke{constructor(t){super(t)}},gi=class extends ke{constructor(t){super(t)}};oi=new class{constructor(){var t=Yr;this.g=gi,this.j=Mn,this.defaultValue=void 0,this.i=null!=t.N?st:void 0}register(){v(this)}},qr[451755788]=[0,[0,[0,Vr,jr,[0,Ir,_r,-1],[0,Ar,_r]],Br,[0,hi,Nr,Xr,Nr,$r,Nr,Rr,Nr,Jr,Nr,zr,Nr,Hr],kr],[0,jr,Ir,wr,Pr,-1],br];var pi=class extends ke{constructor(t){super(t)}},vi=function(t,n){return(e,r)=>{{const o={C:!0};r&&Object.assign(o,r),e=Zn(e,void 0,void 0,o);try{const r=new t,o=r.l;tr(n)(o,e);var i=r}finally{te(e)}}return i}}(class extends ke{constructor(t){super(t)}},[0,Lr,[0,1,Ir,jr,ui],_r]);function yi(){var t=navigator;return"undefined"!=typeof OffscreenCanvas&&(!function(t=navigator){return(t=t.userAgent).includes("Safari")&&!t.includes("Chrome")}(t)||!!((t=t.userAgent.match(/Version\/([\d]+).*Safari/))&&t.length>=1&&Number(t[1])>=17))}async function mi(n){if("function"!=typeof importScripts){const t=document.createElement("script");return t.src=n.toString(),t.crossOrigin="anonymous",new Promise(((n,e)=>{t.addEventListener("load",(()=>{n()}),!1),t.addEventListener("error",(t=>{e(t)}),!1),document.body.appendChild(t)}))}try{importScripts(n.toString())}catch(r){if(!(r instanceof TypeError))throw r;{const r=self.import;r?await r(n.toString()):await(e=n.toString(),Promise.resolve().then((function(){return t(require(e))})))}}var e}function bi(t,n,e){t.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),e(n=t.h.stringToNewUTF8(n)),t.h._free(n)}function wi(t,n,e){t.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");const r=new Uint32Array(n.length);for(let e=0;e<n.length;e++)r[e]=t.h.stringToNewUTF8(n[e]);n=t.h._malloc(4*r.length),t.h.HEAPU32.set(r,n>>2),e(n);for(const n of r)t.h._free(n);t.h._free(n)}function _i(t,n,e){t.h.simpleListeners=t.h.simpleListeners||{},t.h.simpleListeners[n]=e}function Si(t,n,e){let r=[];t.h.simpleListeners=t.h.simpleListeners||{},t.h.simpleListeners[n]=(t,n,i)=>{n?(e(r,i),r=[]):r.push(t)}}const Ai=function(t){return class extends t{K(){this.h._registerModelResourcesGraphService()}}}(class{constructor(t,n){this.j=!0,this.h=t,this.g=null,this.i=0,this.m="function"==typeof this.h._addIntToInputStream,void 0!==n?this.h.canvas=n:yi()?this.h.canvas=new OffscreenCanvas(1,1):(console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."),this.h.canvas=document.createElement("canvas"))}async initializeGraph(t){const 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){const e=t.length,r=this.h._malloc(e);this.h.HEAPU8.set(t,r),n?this.h._changeBinaryGraph(e,r):this.h._changeTextGraph(e,r),this.h._free(r)}configureAudio(t,n,e,r,i){this.h._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),bi(this,r||"input_audio",(r=>{bi(this,i=i||"audio_header",(i=>{this.h._configureAudio(r,i,t,n??0,e)}))}))}setAutoResizeCanvas(t){this.j=t}setAutoRenderToScreen(t){this.h._setAutoRenderToScreen(t)}setGpuBufferVerticalFlip(t){this.h.gpuOriginForWebTexturesIsBottomLeft=t}attachErrorListener(t){this.h.errorListener=t}attachEmptyPacketListener(t,n){this.h.emptyPacketListeners=this.h.emptyPacketListeners||{},this.h.emptyPacketListeners[t]=n}addAudioToStream(t,n,e){this.addAudioToStreamWithShape(t,0,0,n,e)}addAudioToStreamWithShape(t,n,e,r,i){const o=4*t.length;this.i!==o&&(this.g&&this.h._free(this.g),this.g=this.h._malloc(o),this.i=o),this.h.HEAPF32.set(t,this.g/4),bi(this,r,(t=>{this.h._addAudioToInputStream(this.g,n,e,t,i)}))}addGpuBufferToStream(t,n,e){bi(this,n,(n=>{if(!this.h.canvas)throw Error("No OpenGL canvas configured.");n?this.h._bindTextureToStream(n):this.h._bindTextureToCanvas();const r=this.h.canvas.getContext("webgl2")||this.h.canvas.getContext("webgl");if(!r)throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");this.h.gpuOriginForWebTexturesIsBottomLeft&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!0),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,t),this.h.gpuOriginForWebTexturesIsBottomLeft&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1);const[i,o]=void 0!==t.videoWidth?[t.videoWidth,t.videoHeight]:void 0!==t.naturalWidth?[t.naturalWidth,t.naturalHeight]:void 0!==t.displayWidth?[t.displayWidth,t.displayHeight]:[t.width,t.height];!this.j||i===this.h.canvas.width&&o===this.h.canvas.height||(this.h.canvas.width=i,this.h.canvas.height=o);const[s,a]=[i,o];this.h._addBoundTextureToStream(n,s,a,e)}))}addBoolToStream(t,n,e){bi(this,n,(n=>{this.h._addBoolToInputStream(t,n,e)}))}addDoubleToStream(t,n,e){bi(this,n,(n=>{this.h._addDoubleToInputStream(t,n,e)}))}addFloatToStream(t,n,e){bi(this,n,(n=>{this.h._addFloatToInputStream(t,n,e)}))}addIntToStream(t,n,e){bi(this,n,(n=>{this.h._addIntToInputStream(t,n,e)}))}addUintToStream(t,n,e){bi(this,n,(n=>{this.h._addUintToInputStream(t,n,e)}))}addStringToStream(t,n,e){bi(this,n,(n=>{bi(this,t,(t=>{this.h._addStringToInputStream(t,n,e)}))}))}addStringRecordToStream(t,n,e){bi(this,n,(n=>{wi(this,Object.keys(t),(r=>{wi(this,Object.values(t),(i=>{this.h._addFlatHashMapToInputStream(r,i,Object.keys(t).length,n,e)}))}))}))}addProtoToStream(t,n,e,r){bi(this,e,(e=>{bi(this,n,(n=>{const i=this.h._malloc(t.length);this.h.HEAPU8.set(t,i),this.h._addProtoToInputStream(i,t.length,n,e,r),this.h._free(i)}))}))}addEmptyPacketToStream(t,n){bi(this,t,(t=>{this.h._addEmptyPacketToInputStream(t,n)}))}addBoolVectorToStream(t,n,e){bi(this,n,(n=>{const r=this.h._allocateBoolVector(t.length);if(!r)throw Error("Unable to allocate new bool vector on heap.");for(const n of t)this.h._addBoolVectorEntry(r,n);this.h._addBoolVectorToInputStream(r,n,e)}))}addDoubleVectorToStream(t,n,e){bi(this,n,(n=>{const r=this.h._allocateDoubleVector(t.length);if(!r)throw Error("Unable to allocate new double vector on heap.");for(const n of t)this.h._addDoubleVectorEntry(r,n);this.h._addDoubleVectorToInputStream(r,n,e)}))}addFloatVectorToStream(t,n,e){bi(this,n,(n=>{const r=this.h._allocateFloatVector(t.length);if(!r)throw Error("Unable to allocate new float vector on heap.");for(const n of t)this.h._addFloatVectorEntry(r,n);this.h._addFloatVectorToInputStream(r,n,e)}))}addIntVectorToStream(t,n,e){bi(this,n,(n=>{const r=this.h._allocateIntVector(t.length);if(!r)throw Error("Unable to allocate new int vector on heap.");for(const n of t)this.h._addIntVectorEntry(r,n);this.h._addIntVectorToInputStream(r,n,e)}))}addUintVectorToStream(t,n,e){bi(this,n,(n=>{const r=this.h._allocateUintVector(t.length);if(!r)throw Error("Unable to allocate new unsigned int vector on heap.");for(const n of t)this.h._addUintVectorEntry(r,n);this.h._addUintVectorToInputStream(r,n,e)}))}addStringVectorToStream(t,n,e){bi(this,n,(n=>{const r=this.h._allocateStringVector(t.length);if(!r)throw Error("Unable to allocate new string vector on heap.");for(const n of t)bi(this,n,(t=>{this.h._addStringVectorEntry(r,t)}));this.h._addStringVectorToInputStream(r,n,e)}))}addBoolToInputSidePacket(t,n){bi(this,n,(n=>{this.h._addBoolToInputSidePacket(t,n)}))}addDoubleToInputSidePacket(t,n){bi(this,n,(n=>{this.h._addDoubleToInputSidePacket(t,n)}))}addFloatToInputSidePacket(t,n){bi(this,n,(n=>{this.h._addFloatToInputSidePacket(t,n)}))}addIntToInputSidePacket(t,n){bi(this,n,(n=>{this.h._addIntToInputSidePacket(t,n)}))}addUintToInputSidePacket(t,n){bi(this,n,(n=>{this.h._addUintToInputSidePacket(t,n)}))}addStringToInputSidePacket(t,n){bi(this,n,(n=>{bi(this,t,(t=>{this.h._addStringToInputSidePacket(t,n)}))}))}addProtoToInputSidePacket(t,n,e){bi(this,e,(e=>{bi(this,n,(n=>{const r=this.h._malloc(t.length);this.h.HEAPU8.set(t,r),this.h._addProtoToInputSidePacket(r,t.length,n,e),this.h._free(r)}))}))}addBoolVectorToInputSidePacket(t,n){bi(this,n,(n=>{const e=this.h._allocateBoolVector(t.length);if(!e)throw Error("Unable to allocate new bool vector on heap.");for(const n of t)this.h._addBoolVectorEntry(e,n);this.h._addBoolVectorToInputSidePacket(e,n)}))}addDoubleVectorToInputSidePacket(t,n){bi(this,n,(n=>{const e=this.h._allocateDoubleVector(t.length);if(!e)throw Error("Unable to allocate new double vector on heap.");for(const n of t)this.h._addDoubleVectorEntry(e,n);this.h._addDoubleVectorToInputSidePacket(e,n)}))}addFloatVectorToInputSidePacket(t,n){bi(this,n,(n=>{const e=this.h._allocateFloatVector(t.length);if(!e)throw Error("Unable to allocate new float vector on heap.");for(const n of t)this.h._addFloatVectorEntry(e,n);this.h._addFloatVectorToInputSidePacket(e,n)}))}addIntVectorToInputSidePacket(t,n){bi(this,n,(n=>{const e=this.h._allocateIntVector(t.length);if(!e)throw Error("Unable to allocate new int vector on heap.");for(const n of t)this.h._addIntVectorEntry(e,n);this.h._addIntVectorToInputSidePacket(e,n)}))}addUintVectorToInputSidePacket(t,n){bi(this,n,(n=>{const e=this.h._allocateUintVector(t.length);if(!e)throw Error("Unable to allocate new unsigned int vector on heap.");for(const n of t)this.h._addUintVectorEntry(e,n);this.h._addUintVectorToInputSidePacket(e,n)}))}addStringVectorToInputSidePacket(t,n){bi(this,n,(n=>{const e=this.h._allocateStringVector(t.length);if(!e)throw Error("Unable to allocate new string vector on heap.");for(const n of t)bi(this,n,(t=>{this.h._addStringVectorEntry(e,t)}));this.h._addStringVectorToInputSidePacket(e,n)}))}attachBoolListener(t,n){_i(this,t,n),bi(this,t,(t=>{this.h._attachBoolListener(t)}))}attachBoolVectorListener(t,n){Si(this,t,n),bi(this,t,(t=>{this.h._attachBoolVectorListener(t)}))}attachIntListener(t,n){_i(this,t,n),bi(this,t,(t=>{this.h._attachIntListener(t)}))}attachIntVectorListener(t,n){Si(this,t,n),bi(this,t,(t=>{this.h._attachIntVectorListener(t)}))}attachUintListener(t,n){_i(this,t,n),bi(this,t,(t=>{this.h._attachUintListener(t)}))}attachUintVectorListener(t,n){Si(this,t,n),bi(this,t,(t=>{this.h._attachUintVectorListener(t)}))}attachDoubleListener(t,n){_i(this,t,n),bi(this,t,(t=>{this.h._attachDoubleListener(t)}))}attachDoubleVectorListener(t,n){Si(this,t,n),bi(this,t,(t=>{this.h._attachDoubleVectorListener(t)}))}attachFloatListener(t,n){_i(this,t,n),bi(this,t,(t=>{this.h._attachFloatListener(t)}))}attachFloatVectorListener(t,n){Si(this,t,n),bi(this,t,(t=>{this.h._attachFloatVectorListener(t)}))}attachStringListener(t,n){_i(this,t,n),bi(this,t,(t=>{this.h._attachStringListener(t)}))}attachStringVectorListener(t,n){Si(this,t,n),bi(this,t,(t=>{this.h._attachStringVectorListener(t)}))}attachProtoListener(t,n,e){_i(this,t,n),bi(this,t,(t=>{this.h._attachProtoListener(t,e||!1)}))}attachProtoVectorListener(t,n,e){Si(this,t,n),bi(this,t,(t=>{this.h._attachProtoVectorListener(t,e||!1)}))}attachAudioListener(t,n,e){this.h._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),_i(this,t,((t,e)=>{t=new Float32Array(t.buffer,t.byteOffset,t.length/4),n(t,e)})),bi(this,t,(t=>{this.h._attachAudioListener(t,e||!1)}))}finishProcessing(){this.h._waitUntilIdle()}closeGraph(){this.h._closeGraph(),this.h.simpleListeners=void 0,this.h.emptyPacketListeners=void 0}});var Ii=class extends Ai{};async function Ei(t,n){const e=await(async(t,n,e)=>{var r=xi;if(t&&await mi(t),!self.ModuleFactory)throw Error("ModuleFactory not set.");if(n&&(await mi(n),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&e&&((t=self.Module).locateFile=e.locateFile,e.mainScriptUrlOrBlob&&(t.mainScriptUrlOrBlob=e.mainScriptUrlOrBlob)),e=await self.ModuleFactory(self.Module||e),self.ModuleFactory=self.Module=void 0,new r(e,null)})(t.wasmLoaderPath,t.assetLoaderPath,{locateFile:n=>n.endsWith(".wasm")?t.wasmBinaryPath.toString():t.assetBinaryPath&&n.endsWith(".data")?t.assetBinaryPath.toString():n});return await e.o(n),e}async function Ti(t,n){return Ei(t,n)}function Bi(t,n){const e=Vn(t.baseOptions,fi,1)||new fi;"string"==typeof n?(_n(e,2,Xt(n)),_n(e,1)):n instanceof Uint8Array&&(_n(e,1,rt(n,!1)),_n(e,2)),Mn(t.baseOptions,0,1,e)}function Ui(t,n){const e=n.baseOptions||{};if(n.baseOptions?.modelAssetBuffer&&n.baseOptions?.modelAssetPath)throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!(Vn(t.baseOptions,fi,1)?.i()||Vn(t.baseOptions,fi,1)?.j()||n.baseOptions?.modelAssetBuffer||n.baseOptions?.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if(function(t,n){let e=Vn(t.baseOptions,li,3);if(!e){var r=e=new li;Dn(r,4,new Kr)}"delegate"in n&&("GPU"===n.delegate?Dn(n=e,2,r=new Wr):Dn(n=e,4,r=new Kr)),Mn(t.baseOptions,0,3,e)}(t,e),e.modelAssetPath)return fetch(e.modelAssetPath.toString()).then((t=>{if(t.ok)return t.arrayBuffer();throw Error(`Failed to fetch model: ${e.modelAssetPath} (${t.status})`)})).then((n=>{try{t.g.h.FS_unlink("/model.dat")}catch{}t.g.h.FS_createDataFile("/","model.dat",new Uint8Array(n),!0,!1,!1),Bi(t,"/model.dat"),Vi(t)}));if(e.modelAssetBuffer instanceof Uint8Array)Bi(t,e.modelAssetBuffer);else if(e.modelAssetBuffer)return async function(t){const n=[];for(var e=0;;){const{done:r,value:i}=await t.read();if(r)break;n.push(i),e+=i.length}if(0===n.length)return new Uint8Array(0);if(1===n.length)return n[0];t=new Uint8Array(e),e=0;for(const r of n)t.set(r,e),e+=r.length;return t}(e.modelAssetBuffer).then((n=>{Bi(t,n),Vi(t)}));return Vi(t),Promise.resolve()}function Pi(t){try{const n=t.m.length;if(1===n)throw Error(t.m[0].message);if(n>1)throw Error("Encountered multiple errors: "+t.m.map((t=>t.message)).join(", "))}finally{t.m=[]}}var Oi=class{constructor(t){this.g=t,this.m=[],this.j=0,this.g.setAutoRenderToScreen(!1)}setGraph(t,n){this.g.attachErrorListener(((t,n)=>{this.m.push(Error(n))})),this.g.K(),this.g.setGraph(t,n),Pi(this)}finishProcessing(){this.g.finishProcessing(),Pi(this)}close(){this.g.closeGraph()}};async function ji(t,n){return Ti(t,n)}Oi.prototype.close=Oi.prototype.close;var Li=class extends Oi{constructor(){super(...arguments),this.G=48e3}L(t){this.G=t}};function Ni(t){const n={classifications:kn(t,pi).map((t=>function(t,n=-1,e=""){return{categories:t.map((t=>({index:Wt(bn(t,1))??0??-1,score:bn(t,2,void 0,Gt)??0??0,categoryName:Yt(bn(t,3))??""??"",displayName:Yt(bn(t,4))??""??""}))),headIndex:n,headName:e}}(Vn(t,ai,4)?.i()??[],Wt(bn(t,2))??0,Yt(bn(t,3))??"")))};return null!=function(t){return null==t?t:"bigint"==typeof t?(gt(t)?t=Number(t):(t=xt(64,t),t=gt(t)?Number(t):String(t)),t):Rt(t)?"number"==typeof t?Ht(t):zt(t):void 0}(bn(t,2,void 0,Kt))&&(n.timestampMs=function(t){const n=Number(t);return Number.isSafeInteger(n)?n:String(t)}(bn(t,2,void 0,Kt)??mn)),n}function Vi(t){var n=new ii;Cn(n,10,"audio_in"),Cn(n,10,"sample_rate"),Cn(n,15,"timestamped_classifications");const e=new Yr;!function(t,n){var e=oi,r=t.l;R&&R in r&&(r=r[R])&&delete r[451755788],e.g?e.j(t,e.g,451755788,n,e.i):e.j(t,451755788,n,e.i)}(e,t.i);const r=new ti;!function(t){var n=Xt("mediapipe.tasks.audio.audio_classifier.AudioClassifierGraph");pn(t),Sn(t=t.l,0|t[X],2,""===n?void 0:n)}(r),Cn(r,3,"AUDIO:audio_in"),Cn(r,3,"SAMPLE_RATE:sample_rate"),Cn(r,4,"TIMESTAMPED_CLASSIFICATIONS:timestamped_classifications"),r.o(e),function(t,n){var e=ti;pn(t);const r=t.l;t=xn(t,r,0|r[X],e,2,!0),n=null!=n?n:new e,t.push(n);const i=e=t===Y?7:0|t[X];(n=nt(n))?(e&=-9,1===t.length&&(e&=-4097)):e|=4096,e!==i&&Z(t,e),n||vn(r)}(n,r),t.g.attachProtoVectorListener("timestamped_classifications",((n,e)=>{!function(t,n){n.forEach((n=>{n=vi(n),t.u.push(Ni(n))}))}(t,n),t.j=Math.max(t.j,e)})),t.g.attachEmptyPacketListener("timestamped_classifications",(n=>{t.j=Math.max(t.j,n)})),n=n.i(),t.setGraph(new Uint8Array(n),!0)}Li.prototype.setDefaultSampleRate=Li.prototype.L;var xi=class extends Li{constructor(t,n){super(new Ii(t,n)),this.u=[],Mn(t=this.i=new gi,0,1,n=new di)}get baseOptions(){return Vn(this.i,di,1)}set baseOptions(t){Mn(this.i,0,1,t)}o(t){var n=this.i,e=Vn(this.i,ci,2);if(e){var r=e.l;const t=0|r[X];e=yn(e,r,t)?hn(e,r,!0):new e.constructor(fn(r,t,!1))}else e=new ci;if(void 0!==t.displayNamesLocale?_n(e,1,Xt(t.displayNamesLocale)):void 0===t.displayNamesLocale&&_n(e,1),void 0!==t.maxResults){if(null!=(r=t.maxResults)){if("number"!=typeof r)throw x();if(!Mt(r))throw x();r|=0}_n(e,2,r)}else"maxResults"in t&&_n(e,2);if(void 0!==t.scoreThreshold){if(null!=(r=t.scoreThreshold)&&"number"!=typeof r)throw Error(`Value of float/double field must be a number, found ${typeof r}: ${r}`);_n(e,3,r)}else"scoreThreshold"in t&&_n(e,3);return void 0!==t.categoryAllowlist?Un(e,4,t.categoryAllowlist):"categoryAllowlist"in t&&_n(e,4),void 0!==t.categoryDenylist?Un(e,5,t.categoryDenylist):"categoryDenylist"in t&&_n(e,5),Mn(n,0,2,e),Ui(this,t)}I(t,n){var e=this.j+1;return this.g.addDoubleToStream(n??this.G,"sample_rate",e),this.g.addAudioToStreamWithShape(t,1,t.length,"audio_in",e),this.u=[],this.finishProcessing(),[...this.u]}};let ki;xi.prototype.classify=xi.prototype.I,xi.prototype.setOptions=xi.prototype.o,xi.createFromModelPath=function(t,n){return Ti(t,{baseOptions:{modelAssetPath:n}})},xi.createFromModelBuffer=function(t,n){return ji(t,{baseOptions:{modelAssetBuffer:n}})},xi.createFromOptions=function(t,n){return ji(t,n)};const Fi=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 Mi(t){if(t)return!0;if(void 0===ki)try{await WebAssembly.instantiate(Fi),ki=!0}catch{ki=!1}return ki}async function Di(t,n,e){return{wasmLoaderPath:`${n}/${t}_${e=`wasm${e?"_module":""}${await Mi(e)?"":"_nosimd"}_internal`}.js`,wasmBinaryPath:`${n}/${t}_${e}.wasm`}}var Gi=class{};Gi.forVisionTasks=function(t,n=!1){return Di("vision",t??Cr``,n)},Gi.forTextTasks=function(t,n=!1){return Di("text",t??Cr``,n)},Gi.forGenAiTasks=function(t,n=!1){return Di("genai",t??Cr``,n)},Gi.forAudioTasks=function(t,n=!1){return Di("audio",t??Cr``,n)},Gi.isSimdSupported=function(t=!1){return Mi(t)},exports.AudioClassifier=xi,exports.AudioTaskRunner=Li,exports.FilesetResolver=Gi,exports.TaskRunner=Oi;
|
|
2
2
|
//# sourceMappingURL=audio_bundle_cjs.js.map
|