forked from aws-samples/aws-lex-web-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwav-worker.min.js
5 lines (5 loc) · 24.4 KB
/
wav-worker.min.js
1
2
3
4
5
/*!
* lex-web-ui v0.21.1
* (c) 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Released under the Amazon Software License.
*/(()=>{var t={9306:(t,r,e)=>{"use strict";var n=e(4901),o=e(6823),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},3506:(t,r,e)=>{"use strict";var n=e(3925),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},8551:(t,r,e)=>{"use strict";var n=e(34),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},7811:t=>{"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7394:(t,r,e)=>{"use strict";var n=e(6706),o=e(4576),i=TypeError;t.exports=n(ArrayBuffer.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==o(t))throw new i("ArrayBuffer expected");return t.byteLength}},3238:(t,r,e)=>{"use strict";var n=e(9504),o=e(7394),i=n(ArrayBuffer.prototype.slice);t.exports=function(t){if(0!==o(t))return!1;try{return i(t,0,0),!1}catch(r){return!0}}},5636:(t,r,e)=>{"use strict";var n=e(4475),o=e(9504),i=e(6706),s=e(7696),u=e(3238),c=e(7394),a=e(4483),f=e(1548),p=n.structuredClone,y=n.ArrayBuffer,l=n.DataView,v=n.TypeError,h=Math.min,g=y.prototype,d=l.prototype,b=o(g.slice),x=i(g,"resizable","get"),w=i(g,"maxByteLength","get"),m=o(d.getInt8),A=o(d.setInt8);t.exports=(f||a)&&function(t,r,e){var n,o=c(t),i=void 0===r?o:s(r),g=!x||!x(t);if(u(t))throw new v("ArrayBuffer is detached");if(f&&(t=p(t,{transfer:[t]}),o===i&&(e||g)))return t;if(o>=i&&(!e||g))n=b(t,0,i);else{var d=e&&!g&&w?{maxByteLength:w(t)}:void 0;n=new y(i,d);for(var O=new l(t),T=new l(n),j=h(i,o),S=0;S<j;S++)A(T,S,m(O,S))}return f||a(t),n}},4644:(t,r,e)=>{"use strict";var n,o,i,s=e(7811),u=e(3724),c=e(4475),a=e(4901),f=e(34),p=e(9297),y=e(6955),l=e(6823),v=e(6699),h=e(6840),g=e(2106),d=e(1625),b=e(2787),x=e(2967),w=e(8227),m=e(3392),A=e(1181),O=A.enforce,T=A.get,j=c.Int8Array,S=j&&j.prototype,E=c.Uint8ClampedArray,P=E&&E.prototype,C=j&&b(j),B=S&&b(S),M=Object.prototype,_=c.TypeError,I=w("toStringTag"),U=m("TYPED_ARRAY_TAG"),k="TypedArrayConstructor",F=s&&!!x&&"Opera"!==y(c.opera),R=!1,D={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},L={BigInt64Array:8,BigUint64Array:8},z=function(t){if(!f(t))return!1;var r=y(t);return"DataView"===r||p(D,r)||p(L,r)},V=function(t){var r=b(t);if(f(r)){var e=T(r);return e&&p(e,k)?e[k]:V(r)}},N=function(t){if(!f(t))return!1;var r=y(t);return p(D,r)||p(L,r)},q=function(t){if(N(t))return t;throw new _("Target is not a typed array")},W=function(t){if(a(t)&&(!x||d(C,t)))return t;throw new _(l(t)+" is not a typed array constructor")},Y=function(t,r,e,n){if(u){if(e)for(var o in D){var i=c[o];if(i&&p(i.prototype,t))try{delete i.prototype[t]}catch(s){try{i.prototype[t]=r}catch(a){}}}B[t]&&!e||h(B,t,e?r:F&&S[t]||r,n)}},G=function(t,r,e){var n,o;if(u){if(x){if(e)for(n in D)if(o=c[n],o&&p(o,t))try{delete o[t]}catch(i){}if(C[t]&&!e)return;try{return h(C,t,e?r:F&&C[t]||r)}catch(i){}}for(n in D)o=c[n],!o||o[t]&&!e||h(o,t,r)}};for(n in D)o=c[n],i=o&&o.prototype,i?O(i)[k]=o:F=!1;for(n in L)o=c[n],i=o&&o.prototype,i&&(O(i)[k]=o);if((!F||!a(C)||C===Function.prototype)&&(C=function(){throw new _("Incorrect invocation")},F))for(n in D)c[n]&&x(c[n],C);if((!F||!B||B===M)&&(B=C.prototype,F))for(n in D)c[n]&&x(c[n].prototype,B);if(F&&b(P)!==B&&x(P,B),u&&!p(B,I))for(n in R=!0,g(B,I,{configurable:!0,get:function(){return f(this)?this[U]:void 0}}),D)c[n]&&v(c[n],U,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:F,TYPED_ARRAY_TAG:R&&U,aTypedArray:q,aTypedArrayConstructor:W,exportTypedArrayMethod:Y,exportTypedArrayStaticMethod:G,getTypedArrayConstructor:V,isView:z,isTypedArray:N,TypedArray:C,TypedArrayPrototype:B}},5370:(t,r,e)=>{"use strict";var n=e(6198);t.exports=function(t,r,e){var o=0,i=arguments.length>2?e:n(r),s=new t(i);while(i>o)s[o]=r[o++];return s}},9617:(t,r,e)=>{"use strict";var n=e(5397),o=e(5610),i=e(6198),s=function(t){return function(r,e,s){var u=n(r),c=i(u);if(0===c)return!t&&-1;var a,f=o(s,c);if(t&&e!==e){while(c>f)if(a=u[f++],a!==a)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},4527:(t,r,e)=>{"use strict";var n=e(3724),o=e(4376),i=TypeError,s=Object.getOwnPropertyDescriptor,u=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=u?function(t,r){if(o(t)&&!s(t,"length").writable)throw new i("Cannot set read only .length");return t.length=r}:function(t,r){return t.length=r}},7628:(t,r,e)=>{"use strict";var n=e(6198);t.exports=function(t,r){for(var e=n(t),o=new r(e),i=0;i<e;i++)o[i]=t[e-i-1];return o}},9928:(t,r,e)=>{"use strict";var n=e(6198),o=e(1291),i=RangeError;t.exports=function(t,r,e,s){var u=n(t),c=o(e),a=c<0?u+c:c;if(a>=u||a<0)throw new i("Incorrect index");for(var f=new r(u),p=0;p<u;p++)f[p]=p===a?s:t[p];return f}},4576:(t,r,e)=>{"use strict";var n=e(9504),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},6955:(t,r,e)=>{"use strict";var n=e(2140),o=e(4901),i=e(4576),s=e(8227),u=s("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}()),f=function(t,r){try{return t[r]}catch(e){}};t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=f(r=c(t),u))?e:a?i(r):"Object"===(n=i(r))&&o(r.callee)?"Arguments":n}},7740:(t,r,e)=>{"use strict";var n=e(9297),o=e(5031),i=e(7347),s=e(4913);t.exports=function(t,r,e){for(var u=o(r),c=s.f,a=i.f,f=0;f<u.length;f++){var p=u[f];n(t,p)||e&&n(e,p)||c(t,p,a(r,p))}}},2211:(t,r,e)=>{"use strict";var n=e(9039);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},6699:(t,r,e)=>{"use strict";var n=e(3724),o=e(4913),i=e(6980);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},6980:t=>{"use strict";t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},2106:(t,r,e)=>{"use strict";var n=e(283),o=e(4913);t.exports=function(t,r,e){return e.get&&n(e.get,r,{getter:!0}),e.set&&n(e.set,r,{setter:!0}),o.f(t,r,e)}},6840:(t,r,e)=>{"use strict";var n=e(4901),o=e(4913),i=e(283),s=e(9433);t.exports=function(t,r,e,u){u||(u={});var c=u.enumerable,a=void 0!==u.name?u.name:r;if(n(e)&&i(e,a,u),u.global)c?t[r]=e:s(r,e);else{try{u.unsafe?t[r]&&(c=!0):delete t[r]}catch(f){}c?t[r]=e:o.f(t,r,{value:e,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},9433:(t,r,e)=>{"use strict";var n=e(4475),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},3724:(t,r,e)=>{"use strict";var n=e(9039);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4483:(t,r,e)=>{"use strict";var n,o,i,s,u=e(4475),c=e(9714),a=e(1548),f=u.structuredClone,p=u.ArrayBuffer,y=u.MessageChannel,l=!1;if(a)l=function(t){f(t,{transfer:[t]})};else if(p)try{y||(n=c("worker_threads"),n&&(y=n.MessageChannel)),y&&(o=new y,i=new p(2),s=function(t){o.port1.postMessage(null,[t])},2===i.byteLength&&(s(i),0===i.byteLength&&(l=s)))}catch(v){}t.exports=l},4055:(t,r,e)=>{"use strict";var n=e(4475),o=e(34),i=n.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},6837:t=>{"use strict";var r=TypeError,e=9007199254740991;t.exports=function(t){if(t>e)throw r("Maximum allowed index exceeded");return t}},7290:(t,r,e)=>{"use strict";var n=e(516),o=e(9088);t.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},516:t=>{"use strict";t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},9088:(t,r,e)=>{"use strict";var n=e(4475),o=e(4576);t.exports="process"===o(n.process)},9392:t=>{"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7388:(t,r,e)=>{"use strict";var n,o,i=e(4475),s=e(9392),u=i.process,c=i.Deno,a=u&&u.versions||c&&c.version,f=a&&a.v8;f&&(n=f.split("."),o=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(o=+n[1]))),t.exports=o},8727:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6518:(t,r,e)=>{"use strict";var n=e(4475),o=e(7347).f,i=e(6699),s=e(6840),u=e(9433),c=e(7740),a=e(2796);t.exports=function(t,r){var e,f,p,y,l,v,h=t.target,g=t.global,d=t.stat;if(f=g?n:d?n[h]||u(h,{}):n[h]&&n[h].prototype,f)for(p in r){if(l=r[p],t.dontCallGetSet?(v=o(f,p),y=v&&v.value):y=f[p],e=a(g?p:h+(d?".":"#")+p,t.forced),!e&&void 0!==y){if(typeof l==typeof y)continue;c(l,y)}(t.sham||y&&y.sham)&&i(l,"sham",!0),s(f,p,l,t)}}},9039:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(r){return!0}}},616:(t,r,e)=>{"use strict";var n=e(9039);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9565:(t,r,e)=>{"use strict";var n=e(616),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},350:(t,r,e)=>{"use strict";var n=e(3724),o=e(9297),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,u=o(i,"name"),c=u&&"something"===function(){}.name,a=u&&(!n||n&&s(i,"name").configurable);t.exports={EXISTS:u,PROPER:c,CONFIGURABLE:a}},6706:(t,r,e)=>{"use strict";var n=e(9504),o=e(9306);t.exports=function(t,r,e){try{return n(o(Object.getOwnPropertyDescriptor(t,r)[e]))}catch(i){}}},9504:(t,r,e)=>{"use strict";var n=e(616),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);t.exports=n?s:function(t){return function(){return i.apply(t,arguments)}}},7751:(t,r,e)=>{"use strict";var n=e(4475),o=e(4901),i=function(t){return o(t)?t:void 0};t.exports=function(t,r){return arguments.length<2?i(n[t]):n[t]&&n[t][r]}},5966:(t,r,e)=>{"use strict";var n=e(9306),o=e(4117);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},4475:function(t,r,e){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:(t,r,e)=>{"use strict";var n=e(9504),o=e(8981),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},421:t=>{"use strict";t.exports={}},5917:(t,r,e)=>{"use strict";var n=e(3724),o=e(9039),i=e(4055);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7055:(t,r,e)=>{"use strict";var n=e(9504),o=e(9039),i=e(4576),s=Object,u=n("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?u(t,""):s(t)}:s},3706:(t,r,e)=>{"use strict";var n=e(9504),o=e(4901),i=e(7629),s=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),t.exports=i.inspectSource},1181:(t,r,e)=>{"use strict";var n,o,i,s=e(8622),u=e(4475),c=e(34),a=e(6699),f=e(9297),p=e(7629),y=e(6119),l=e(421),v="Object already initialized",h=u.TypeError,g=u.WeakMap,d=function(t){return i(t)?o(t):n(t,{})},b=function(t){return function(r){var e;if(!c(r)||(e=o(r)).type!==t)throw new h("Incompatible receiver, "+t+" required");return e}};if(s||p.state){var x=p.state||(p.state=new g);x.get=x.get,x.has=x.has,x.set=x.set,n=function(t,r){if(x.has(t))throw new h(v);return r.facade=t,x.set(t,r),r},o=function(t){return x.get(t)||{}},i=function(t){return x.has(t)}}else{var w=y("state");l[w]=!0,n=function(t,r){if(f(t,w))throw new h(v);return r.facade=t,a(t,w,r),r},o=function(t){return f(t,w)?t[w]:{}},i=function(t){return f(t,w)}}t.exports={set:n,get:o,has:i,enforce:d,getterFor:b}},4376:(t,r,e)=>{"use strict";var n=e(4576);t.exports=Array.isArray||function(t){return"Array"===n(t)}},1108:(t,r,e)=>{"use strict";var n=e(6955);t.exports=function(t){var r=n(t);return"BigInt64Array"===r||"BigUint64Array"===r}},4901:t=>{"use strict";var r="object"==typeof document&&document.all;t.exports="undefined"==typeof r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},2796:(t,r,e)=>{"use strict";var n=e(9039),o=e(4901),i=/#|\.prototype\./,s=function(t,r){var e=c[u(t)];return e===f||e!==a&&(o(r)?n(r):!!r)},u=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=s.data={},a=s.NATIVE="N",f=s.POLYFILL="P";t.exports=s},4117:t=>{"use strict";t.exports=function(t){return null===t||void 0===t}},34:(t,r,e)=>{"use strict";var n=e(4901);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},3925:(t,r,e)=>{"use strict";var n=e(34);t.exports=function(t){return n(t)||null===t}},6395:t=>{"use strict";t.exports=!1},757:(t,r,e)=>{"use strict";var n=e(7751),o=e(4901),i=e(1625),s=e(7040),u=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,u(t))}},6198:(t,r,e)=>{"use strict";var n=e(8014);t.exports=function(t){return n(t.length)}},283:(t,r,e)=>{"use strict";var n=e(9504),o=e(9039),i=e(4901),s=e(9297),u=e(3724),c=e(350).CONFIGURABLE,a=e(3706),f=e(1181),p=f.enforce,y=f.get,l=String,v=Object.defineProperty,h=n("".slice),g=n("".replace),d=n([].join),b=u&&!o((function(){return 8!==v((function(){}),"length",{value:8}).length})),x=String(String).split("String"),w=t.exports=function(t,r,e){"Symbol("===h(l(r),0,7)&&(r="["+g(l(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!s(t,"name")||c&&t.name!==r)&&(u?v(t,"name",{value:r,configurable:!0}):t.name=r),b&&e&&s(e,"arity")&&t.length!==e.arity&&v(t,"length",{value:e.arity});try{e&&s(e,"constructor")&&e.constructor?u&&v(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=p(t);return s(n,"source")||(n.source=d(x,"string"==typeof r?r:"")),t};Function.prototype.toString=w((function(){return i(this)&&y(this).source||a(this)}),"toString")},741:t=>{"use strict";var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},4913:(t,r,e)=>{"use strict";var n=e(3724),o=e(5917),i=e(8686),s=e(8551),u=e(6969),c=TypeError,a=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",y="configurable",l="writable";r.f=n?i?function(t,r,e){if(s(t),r=u(r),s(e),"function"===typeof t&&"prototype"===r&&"value"in e&&l in e&&!e[l]){var n=f(t,r);n&&n[l]&&(t[r]=e.value,e={configurable:y in e?e[y]:n[y],enumerable:p in e?e[p]:n[p],writable:!1})}return a(t,r,e)}:a:function(t,r,e){if(s(t),r=u(r),s(e),o)try{return a(t,r,e)}catch(n){}if("get"in e||"set"in e)throw new c("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},7347:(t,r,e)=>{"use strict";var n=e(3724),o=e(9565),i=e(8773),s=e(6980),u=e(5397),c=e(6969),a=e(9297),f=e(5917),p=Object.getOwnPropertyDescriptor;r.f=n?p:function(t,r){if(t=u(t),r=c(r),f)try{return p(t,r)}catch(e){}if(a(t,r))return s(!o(i.f,t,r),t[r])}},8480:(t,r,e)=>{"use strict";var n=e(1828),o=e(8727),i=o.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},3717:(t,r)=>{"use strict";r.f=Object.getOwnPropertySymbols},2787:(t,r,e)=>{"use strict";var n=e(9297),o=e(4901),i=e(8981),s=e(6119),u=e(2211),c=s("IE_PROTO"),a=Object,f=a.prototype;t.exports=u?a.getPrototypeOf:function(t){var r=i(t);if(n(r,c))return r[c];var e=r.constructor;return o(e)&&r instanceof e?e.prototype:r instanceof a?f:null}},1625:(t,r,e)=>{"use strict";var n=e(9504);t.exports=n({}.isPrototypeOf)},1828:(t,r,e)=>{"use strict";var n=e(9504),o=e(9297),i=e(5397),s=e(9617).indexOf,u=e(421),c=n([].push);t.exports=function(t,r){var e,n=i(t),a=0,f=[];for(e in n)!o(u,e)&&o(n,e)&&c(f,e);while(r.length>a)o(n,e=r[a++])&&(~s(f,e)||c(f,e));return f}},8773:(t,r)=>{"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},2967:(t,r,e)=>{"use strict";var n=e(6706),o=e(8551),i=e(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{t=n(Object.prototype,"__proto__","set"),t(e,[]),r=e instanceof Array}catch(s){}return function(e,n){return o(e),i(n),r?t(e,n):e.__proto__=n,e}}():void 0)},4270:(t,r,e)=>{"use strict";var n=e(9565),o=e(4901),i=e(34),s=TypeError;t.exports=function(t,r){var e,u;if("string"===r&&o(e=t.toString)&&!i(u=n(e,t)))return u;if(o(e=t.valueOf)&&!i(u=n(e,t)))return u;if("string"!==r&&o(e=t.toString)&&!i(u=n(e,t)))return u;throw new s("Can't convert object to primitive value")}},5031:(t,r,e)=>{"use strict";var n=e(7751),o=e(9504),i=e(8480),s=e(3717),u=e(8551),c=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=i.f(u(t)),e=s.f;return e?c(r,e(t)):r}},7750:(t,r,e)=>{"use strict";var n=e(4117),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},6119:(t,r,e)=>{"use strict";var n=e(5745),o=e(3392),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629:(t,r,e)=>{"use strict";var n=e(6395),o=e(4475),i=e(9433),s="__core-js_shared__",u=t.exports=o[s]||i(s,{});(u.versions||(u.versions=[])).push({version:"3.36.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:(t,r,e)=>{"use strict";var n=e(7629);t.exports=function(t,r){return n[t]||(n[t]=r||{})}},1548:(t,r,e)=>{"use strict";var n=e(4475),o=e(9039),i=e(7388),s=e(7290),u=e(516),c=e(9088),a=n.structuredClone;t.exports=!!a&&!o((function(){if(u&&i>92||c&&i>94||s&&i>97)return!1;var t=new ArrayBuffer(8),r=a(t,{transfer:[t]});return 0!==t.byteLength||8!==r.byteLength}))},4495:(t,r,e)=>{"use strict";var n=e(7388),o=e(9039),i=e(4475),s=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},5610:(t,r,e)=>{"use strict";var n=e(1291),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return e<0?o(e+r,0):i(e,r)}},5854:(t,r,e)=>{"use strict";var n=e(2777),o=TypeError;t.exports=function(t){var r=n(t,"number");if("number"==typeof r)throw new o("Can't convert number to bigint");return BigInt(r)}},7696:(t,r,e)=>{"use strict";var n=e(1291),o=e(8014),i=RangeError;t.exports=function(t){if(void 0===t)return 0;var r=n(t),e=o(r);if(r!==e)throw new i("Wrong length or index");return e}},5397:(t,r,e)=>{"use strict";var n=e(7055),o=e(7750);t.exports=function(t){return n(o(t))}},1291:(t,r,e)=>{"use strict";var n=e(741);t.exports=function(t){var r=+t;return r!==r||0===r?0:n(r)}},8014:(t,r,e)=>{"use strict";var n=e(1291),o=Math.min;t.exports=function(t){var r=n(t);return r>0?o(r,9007199254740991):0}},8981:(t,r,e)=>{"use strict";var n=e(7750),o=Object;t.exports=function(t){return o(n(t))}},2777:(t,r,e)=>{"use strict";var n=e(9565),o=e(34),i=e(757),s=e(5966),u=e(4270),c=e(8227),a=TypeError,f=c("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,c=s(t,f);if(c){if(void 0===r&&(r="default"),e=n(c,t,r),!o(e)||i(e))return e;throw new a("Can't convert object to primitive value")}return void 0===r&&(r="number"),u(t,r)}},6969:(t,r,e)=>{"use strict";var n=e(2777),o=e(757);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},2140:(t,r,e)=>{"use strict";var n=e(8227),o=n("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},9714:(t,r,e)=>{"use strict";var n=e(9088);t.exports=function(t){try{if(n)return Function('return require("'+t+'")')()}catch(r){}}},6823:t=>{"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(e){return"Object"}}},3392:(t,r,e)=>{"use strict";var n=e(9504),o=0,i=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+i,36)}},7040:(t,r,e)=>{"use strict";var n=e(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:(t,r,e)=>{"use strict";var n=e(3724),o=e(9039);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8622:(t,r,e)=>{"use strict";var n=e(4475),o=e(4901),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},8227:(t,r,e)=>{"use strict";var n=e(4475),o=e(5745),i=e(9297),s=e(3392),u=e(4495),c=e(7040),a=n.Symbol,f=o("wks"),p=c?a["for"]||a:a&&a.withoutSetter||s;t.exports=function(t){return i(f,t)||(f[t]=u&&i(a,t)?a[t]:p("Symbol."+t)),f[t]}},6573:(t,r,e)=>{"use strict";var n=e(3724),o=e(2106),i=e(3238),s=ArrayBuffer.prototype;n&&!("detached"in s)&&o(s,"detached",{configurable:!0,get:function(){return i(this)}})},7936:(t,r,e)=>{"use strict";var n=e(6518),o=e(5636);o&&n({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return o(this,arguments.length?arguments[0]:void 0,!1)}})},8100:(t,r,e)=>{"use strict";var n=e(6518),o=e(5636);o&&n({target:"ArrayBuffer",proto:!0},{transfer:function(){return o(this,arguments.length?arguments[0]:void 0,!0)}})},4114:(t,r,e)=>{"use strict";var n=e(6518),o=e(8981),i=e(6198),s=e(4527),u=e(6837),c=e(9039),a=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),f=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},p=a||!f();n({target:"Array",proto:!0,arity:1,forced:p},{push:function(t){var r=o(this),e=i(r),n=arguments.length;u(e+n);for(var c=0;c<n;c++)r[e]=arguments[c],e++;return s(r,e),e}})},7467:(t,r,e)=>{"use strict";var n=e(7628),o=e(4644),i=o.aTypedArray,s=o.exportTypedArrayMethod,u=o.getTypedArrayConstructor;s("toReversed",(function(){return n(i(this),u(this))}))},4732:(t,r,e)=>{"use strict";var n=e(4644),o=e(9504),i=e(9306),s=e(5370),u=n.aTypedArray,c=n.getTypedArrayConstructor,a=n.exportTypedArrayMethod,f=o(n.TypedArrayPrototype.sort);a("toSorted",(function(t){void 0!==t&&i(t);var r=u(this),e=s(c(r),r);return f(e,t)}))},9577:(t,r,e)=>{"use strict";var n=e(9928),o=e(4644),i=e(1108),s=e(1291),u=e(5854),c=o.aTypedArray,a=o.getTypedArrayConstructor,f=o.exportTypedArrayMethod,p=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();f("with",{with:function(t,r){var e=c(this),o=s(t),f=i(e)?u(r):+r;return n(e,a(e),o,f)}}["with"],!p)},6280:(t,r,e)=>{"use strict";e(6573)},7801:(t,r,e)=>{"use strict";e(7936)},7913:(t,r,e)=>{"use strict";e(8100)}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(()=>{e.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()})();(()=>{e(4114),e(7467),e(4732),e(9577),e(6280),e(7913),e(7801);const t=16,r=t/8,n=16e3,o=1;let i=0,s=[];const u={sampleRate:44e3,numChannels:1,useDownsample:!0,useTrim:!0,quietTrimThreshold:8e-4,quietTrimSlackBack:4e3};function c(t){Object.assign(u,t),l()}function a(t){for(let r=0;r<u.numChannels;r++)s[r].push(t[r]);i+=t[0].length}function f(t){const r=[];for(let n=0;n<u.numChannels;n++)r.push(v(s[n],i));let e;e=2===u.numChannels&&2===o?h(r[0],r[1]):r[0];const c=x(e,n),a=b(c),f=new Blob([a],{type:t});self.postMessage({command:"exportWAV",data:f})}function p(){const t=[];for(let r=0;r<u.numChannels;r++)t.push(v(s[r],i));self.postMessage({command:"getBuffer",data:t})}function y(){i=0,s=[],l()}function l(){for(let t=0;t<u.numChannels;t++)s[t]=[]}function v(t,r){const e=new Float32Array(r);let n=0;for(let o=0;o<t.length;o++)e.set(t[o],n),n+=t[o].length;return e}function h(t,r){const e=t.length+r.length,n=new Float32Array(e);let o=0,i=0;while(o<e)n[o++]=t[i],n[o++]=r[i],i++;return n}function g(t,r,e){for(let n=0,o=r;n<e.length;n++,o+=2){const r=Math.max(-1,Math.min(1,e[n]));t.setInt16(o,r<0?32768*r:32767*r,!0)}}function d(e,i){e.setUint32(0,1380533830,!1),e.setUint32(4,36+i,!0),e.setUint32(8,1463899717,!1),e.setUint32(12,1718449184,!1),e.setUint32(16,16,!0),e.setUint16(20,1,!0),e.setUint16(22,o,!0),e.setUint32(24,n,!0),e.setUint32(28,n*r*o,!0),e.setUint16(32,r*o,!0),e.setUint16(34,t,!0),e.setUint32(36,1684108385,!1)}function b(t){const r=new ArrayBuffer(44+2*t.length),e=new DataView(r);return d(e,t.length),g(e,44,t),e}function x(t,r){if(r===u.sampleRate)return t;const e=t.length,n=u.sampleRate/r,o=Math.round(e/n),i=new Float32Array(o);let s=0,c=0,a=0,f=e;while(s<i.length){const r=Math.round((s+1)*n);let o=0,p=0;for(let n=c;n<r&&n<e;n++)o+=t[n],p++;o>u.quietTrimThreshold&&(0===a&&(a=s),f=s),i[s]=o/p,s++,c=r}return u.useTrim?i.slice(Math.max(0,a-u.quietTrimSlackBack),Math.min(o,f+u.quietTrimSlackBack)):i}self.onmessage=t=>{switch(t.data.command){case"init":c(t.data.config);break;case"record":a(t.data.buffer);break;case"exportWav":f(t.data.type);break;case"getBuffer":p();break;case"clear":y();break;case"close":self.close();break;default:break}}})()})();