Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

media-encoder-host

Package Overview
Dependencies
Maintainers
1
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

media-encoder-host - npm Package Compare versions

Comparing version 9.0.4 to 9.0.5

2

build/es5/bundle.js

@@ -8,3 +8,3 @@ (function (global, factory) {

// This is the minified and stringified code of the media-encoder-host-worker package.
var worker = "(()=>{var e={346:function(e,t,r){!function(e,t,r,n,o,a){\"use strict\";var i=function(e){return\"function\"==typeof e.start},u=new WeakMap;function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?c(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e){return s(s({},e),{},{connect:function(e){var t=e.call;return o(a.mark((function e(){var r,n,o,i;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new MessageChannel,n=r.port1,o=r.port2,e.next=3,t(\"connect\",{port:n},[n]);case 3:return i=e.sent,u.set(o,i),e.abrupt(\"return\",o);case 6:case\"end\":return e.stop()}}),e)})))},disconnect:function(e){var t=e.call;return function(){var e=o(a.mark((function e(r){var n;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==(n=u.get(r))){e.next=3;break}throw new Error(\"The given port is not connected.\");case 3:return e.next=5,t(\"disconnect\",{portId:n});case 5:case\"end\":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},isSupported:function(e){var t=e.call;return function(){return t(\"isSupported\")}}})};function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?l(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=new WeakMap,d=function(e){if(h.has(e))return h.get(e);var t=new Map;return h.set(e,t),t},v=function(e){var o=f(e);return function(e){var a=d(e);e.addEventListener(\"message\",(function(e){var t=e.data,r=t.id;if(null!==r&&a.has(r)){var n=a.get(r),o=n.reject,i=n.resolve;a.delete(r),void 0===t.error?i(t.result):o(new Error(t.error.message))}})),i(e)&&e.start();for(var u=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return new Promise((function(i,u){var c=n.generateUniqueNumber(a);a.set(c,{reject:u,resolve:i}),null===r?e.postMessage({id:c,method:t},o):e.postMessage({id:c,method:t,params:r},o)}))},c=function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];e.postMessage({id:null,method:t,params:r},n)},s={},f=0,l=Object.entries(o);f<l.length;f++){var h=r(l[f],2),v=h[0],y=h[1];s=p(p({},s),{},t({},v,y({call:u,notify:c})))}return p({},s)}};e.createBroker=v}(t,r(693),r(715),r(389),r(293),r(756))},870:function(e,t,r){!function(e,t,r,n){\"use strict\";var o=n.createBroker({characterize:function(e){var t=e.call;return function(){return t(\"characterize\")}},encode:function(e){var t=e.call;return function(e,r){return t(\"encode\",{recordingId:e,timeslice:r})}},record:function(e){var n=e.call;return function(){var e=t(r.mark((function e(t,o,a){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(\"record\",{recordingId:t,sampleRate:o,typedArrays:a},a.map((function(e){return e.buffer})));case 2:case\"end\":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()}}),a=function(e){var t=new Worker(e);return o(t)};e.load=a,e.wrap=o}(t,r(293),r(756),r(346))},389:function(e,t){!function(e){\"use strict\";var t=function(e){return function(t){var r=e(t);return t.add(r),r}},r=function(e){return function(t,r){return e.set(t,r),r}},n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,o=536870912,a=2*o,i=function(e,t){return function(r){var i=t.get(r),u=void 0===i?r.size:i<a?i+1:0;if(!r.has(u))return e(r,u);if(r.size<o){for(;r.has(u);)u=Math.floor(Math.random()*a);return e(r,u)}if(r.size>n)throw new Error(\"Congratulations, you created a collection of unique numbers which uses all available integers!\");for(;r.has(u);)u=Math.floor(Math.random()*n);return e(r,u)}},u=new WeakMap,c=r(u),s=i(c,u),f=t(s);e.addUniqueNumber=f,e.generateUniqueNumber=s}(t)},379:function(e,t,r){!function(e,t,r,n,o){\"use strict\";var a=function(e,t){return function(r){var n=t.get(r);if(void 0===n)throw new Error(\"There was no encoder stored with the given id.\");e.delete(n),t.delete(r)}},i=function(e,t){return function(r){var n=t(r),a=o(n,4),i=a[0],u=a[1],c=a[2],s=a[3];return c?new Promise((function(t){u.onmessage=function(n){var o=n.data;0===o.length?(e(u),t(i.encode(r,null))):i.record(r,s,o)}})):i.encode(r,null)}},u=function(e){return function(t){var r=e.get(t);if(void 0===r)throw new Error(\"There was no instance of an encoder stored with the given id.\");return r}},c=function(e,t,r){return function(n,o,a){if(t.has(n))throw new Error('There is already an encoder instance registered with an id called \"'.concat(n,'\".'));var i=r(o),u=new MessageChannel,c=u.port1,s=u.port2,f=[i,c,!0,a];return t.set(n,f),c.onmessage=function(t){var r=t.data;0===r.length?(e(c),f[2]=!1):i.record(n,a,r.map((function(e){return\"number\"==typeof e?new Float32Array(e):e})))},s}},s=function(e){return function(t){for(var r=0,n=Array.from(e.values());r<n.length;r++){var a=o(n[r],2),i=a[0],u=a[1];if(i.test(t))return u}throw new Error(\"There is no encoder registered which could handle the given mimeType.\")}},f=function(r,n,o){return function(){var a=e(t.mark((function e(a,i){var u,c,s;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=o(i),e.next=3,u.characterize();case 3:if(c=e.sent,s=c.toString(),!r.has(s)){e.next=7;break}throw new Error(\"There is already an encoder stored which handles exactly the same mime types.\");case 7:if(!n.has(a)){e.next=9;break}throw new Error('There is already an encoder registered with an id called \"'.concat(a,'\".'));case 9:return r.set(s,[c,u]),n.set(a,s),e.abrupt(\"return\",c);case 12:case\"end\":return e.stop()}}),e)})));return function(e,t){return a.apply(this,arguments)}}()},l=function(e,t){return function(r){var n=t(r);return e.delete(r),n}},p=function(e){return function(t,r){var n=e(t);return o(n,1)[0].encode(t,r)}},h=function(e){e.onmessage=null,e.close()},d=new Map,v=new Map,y=a(d,v),g=new Map,m=u(g),w=l(g,m),b=i(h,w),x=s(d),O=c(h,g,x),j=f(d,v,r.wrap),E=p(m);n.createWorker(self,{deregister:function(){var r=e(t.mark((function e(r){var n;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.encoderId,y(n),e.abrupt(\"return\",{result:null});case 3:case\"end\":return e.stop()}}),e)})));function n(e){return r.apply(this,arguments)}return n}(),encode:function(){var r=e(t.mark((function e(r){var n,o,a;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.encoderInstanceId,null!==(o=r.timeslice)){e.next=7;break}return e.next=4,b(n);case 4:e.t0=e.sent,e.next=10;break;case 7:return e.next=9,E(n,o);case 9:e.t0=e.sent;case 10:return a=e.t0,e.abrupt(\"return\",{result:a,transferables:a});case 12:case\"end\":return e.stop()}}),e)})));function n(e){return r.apply(this,arguments)}return n}(),instantiate:function(e){var t=e.encoderInstanceId,r=e.mimeType,n=e.sampleRate,o=O(t,r,n);return{result:o,transferables:[o]}},register:function(){var r=e(t.mark((function e(r){var n,o;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.encoderId,o=r.port,e.next=3,j(n,o);case 3:return e.t0=e.sent,e.abrupt(\"return\",{result:e.t0});case 5:case\"end\":return e.stop()}}),e)})));function n(e){return r.apply(this,arguments)}return n}()})}(r(293),r(756),r(870),r(623),r(715))},623:function(e,t,r){!function(e,t,r,n,o){\"use strict\";var a={INTERNAL_ERROR:-32603,INVALID_PARAMS:-32602,METHOD_NOT_FOUND:-32601},i=function(e,t){return Object.assign(new Error(e),{status:t})},u=function(e){return i('The requested method called \"'.concat(e,'\" is not supported.'),a.METHOD_NOT_FOUND)},c=function(e){return i('The handler of the method called \"'.concat(e,'\" returned no required result.'),a.INTERNAL_ERROR)},s=function(e){return i('The handler of the method called \"'.concat(e,'\" returned an unexpected result.'),a.INTERNAL_ERROR)},f=function(e){return i('The specified parameter called \"portId\" with the given value \"'.concat(e,'\" does not identify a port connected to this worker.'),a.INVALID_PARAMS)},l=function(e,n){return function(){var o=t(r.mark((function t(o){var a,i,f,l,p,h,d,v,y,g,m,w,b;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=o.data,i=a.id,f=a.method,l=a.params,p=n[f],t.prev=2,void 0!==p){t.next=5;break}throw u(f);case 5:if(void 0!==(h=void 0===l?p():p(l))){t.next=8;break}throw c(f);case 8:if(!(h instanceof Promise)){t.next=14;break}return t.next=11,h;case 11:t.t0=t.sent,t.next=15;break;case 14:t.t0=h;case 15:if(d=t.t0,null!==i){t.next=21;break}if(void 0===d.result){t.next=19;break}throw s(f);case 19:t.next=25;break;case 21:if(void 0!==d.result){t.next=23;break}throw s(f);case 23:v=d.result,y=d.transferables,g=void 0===y?[]:y,e.postMessage({id:i,result:v},g);case 25:t.next=31;break;case 27:t.prev=27,t.t1=t.catch(2),m=t.t1.message,w=t.t1.status,b=void 0===w?-32603:w,e.postMessage({error:{code:b,message:m},id:i});case 31:case\"end\":return t.stop()}}),t,null,[[2,27]])})));return function(e){return o.apply(this,arguments)}}()},p=function(){return new Promise((function(e){var t=new ArrayBuffer(0),r=new MessageChannel,n=r.port1,o=r.port2;n.onmessage=function(t){var r=t.data;return e(null!==r)},o.postMessage(t,[t])}))};function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var v=new Map,y=function(e,n,a){return d(d({},n),{},{connect:function(t){var r=t.port;r.start();var a=e(r,n),i=o.generateUniqueNumber(v);return v.set(i,(function(){a(),r.close(),v.delete(i)})),{result:i}},disconnect:function(e){var t=e.portId,r=v.get(t);if(void 0===r)throw f(t);return r(),{result:null}},isSupported:function(){var e=t(r.mark((function e(){var t,n;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!e.sent){e.next=14;break}if(!((t=a())instanceof Promise)){e.next=11;break}return e.next=8,t;case 8:e.t0=e.sent,e.next=12;break;case 11:e.t0=t;case 12:return n=e.t0,e.abrupt(\"return\",{result:n});case 14:return e.abrupt(\"return\",{result:!1});case 15:case\"end\":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()})},g=function e(t,r){var n=y(e,r,arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0}),o=l(t,n);return t.addEventListener(\"message\",o),function(){return t.removeEventListener(\"message\",o)}};e.createWorker=g,e.isSupported=p}(t,r(293),r(756),r(693),r(389))},79:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},987:e=>{e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},293:e=>{function t(e,t,r,n,o,a,i){try{var u=e[a](i),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(o,a){var i=e.apply(r,n);function u(e){t(i,o,a,u,c,\"next\",e)}function c(e){t(i,o,a,u,c,\"throw\",e)}u(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},693:(e,t,r)=>{var n=r(736);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},156:e=>{e.exports=function(e,t){var r=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}},e.exports.__esModule=!0,e.exports.default=e.exports},752:e=>{e.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")},e.exports.__esModule=!0,e.exports.default=e.exports},633:(e,t,r)=>{var n=r(738).default;function o(){\"use strict\";e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},a=Object.prototype,i=a.hasOwnProperty,u=Object.defineProperty||function(e,t,r){e[t]=r.value},c=\"function\"==typeof Symbol?Symbol:{},s=c.iterator||\"@@iterator\",f=c.asyncIterator||\"@@asyncIterator\",l=c.toStringTag||\"@@toStringTag\";function p(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},\"\")}catch(t){p=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),i=new I(n||[]);return u(a,\"_invoke\",{value:L(e,r,i)}),a}function d(e,t,r){try{return{type:\"normal\",arg:e.call(t,r)}}catch(e){return{type:\"throw\",arg:e}}}r.wrap=h;var v=\"suspendedStart\",y=\"suspendedYield\",g=\"executing\",m=\"completed\",w={};function b(){}function x(){}function O(){}var j={};p(j,s,(function(){return this}));var E=Object.getPrototypeOf,_=E&&E(E(A([])));_&&_!==a&&i.call(_,s)&&(j=_);var k=O.prototype=b.prototype=Object.create(j);function P(e){[\"next\",\"throw\",\"return\"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function r(o,a,u,c){var s=d(e[o],e,a);if(\"throw\"!==s.type){var f=s.arg,l=f.value;return l&&\"object\"==n(l)&&i.call(l,\"__await\")?t.resolve(l.__await).then((function(e){r(\"next\",e,u,c)}),(function(e){r(\"throw\",e,u,c)})):t.resolve(l).then((function(e){f.value=e,u(f)}),(function(e){return r(\"throw\",e,u,c)}))}c(s.arg)}var o;u(this,\"_invoke\",{value:function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}})}function L(e,r,n){var o=v;return function(a,i){if(o===g)throw Error(\"Generator is already running\");if(o===m){if(\"throw\"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var u=n.delegate;if(u){var c=S(u,n);if(c){if(c===w)continue;return c}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===v)throw o=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=g;var s=d(e,r,n);if(\"normal\"===s.type){if(o=n.done?m:y,s.arg===w)continue;return{value:s.arg,done:n.done}}\"throw\"===s.type&&(o=m,n.method=\"throw\",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,S(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),w;var a=d(o,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,w;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,w):i:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,w)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type=\"normal\",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:\"root\"}],e.forEach(T,this),this.reset(!0)}function A(e){if(e||\"\"===e){var r=e[s];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return x.prototype=O,u(k,\"constructor\",{value:O,configurable:!0}),u(O,\"constructor\",{value:x,configurable:!0}),x.displayName=p(O,l,\"GeneratorFunction\"),r.isGeneratorFunction=function(e){var t=\"function\"==typeof e&&e.constructor;return!!t&&(t===x||\"GeneratorFunction\"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,O):(e.__proto__=O,p(e,l,\"GeneratorFunction\")),e.prototype=Object.create(k),e},r.awrap=function(e){return{__await:e}},P(M.prototype),p(M.prototype,f,(function(){return this})),r.AsyncIterator=M,r.async=function(e,t,n,o,a){void 0===a&&(a=Promise);var i=new M(h(e,t,n,o),a);return r.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},P(k),p(k,l,\"Generator\"),p(k,s,(function(){return this})),p(k,\"toString\",(function(){return\"[object Generator]\"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=A,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(N),!e)for(var r in this)\"t\"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(\"throw\"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return u.type=\"throw\",u.arg=e,r.next=n,o&&(r.method=\"next\",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var c=i.call(a,\"catchLoc\"),s=i.call(a,\"finallyLoc\");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var o=n;break}}o&&(\"break\"===e||\"continue\"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method=\"next\",this.next=o.finallyLoc,w):this.complete(a)},complete:function(e,t){if(\"throw\"===e.type)throw e.arg;return\"break\"===e.type||\"continue\"===e.type?this.next=e.arg:\"return\"===e.type?(this.rval=this.arg=e.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===e.type&&t&&(this.next=t),w},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),w}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;N(r)}return o}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),w}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},715:(e,t,r)=>{var n=r(987),o=r(156),a=r(122),i=r(752);e.exports=function(e,t){return n(e)||o(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},45:(e,t,r)=>{var n=r(738).default;e.exports=function(e,t){if(\"object\"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||\"default\");if(\"object\"!=n(o))return o;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},736:(e,t,r)=>{var n=r(738).default,o=r(45);e.exports=function(e){var t=o(e,\"string\");return\"symbol\"==n(t)?t:t+\"\"},e.exports.__esModule=!0,e.exports.default=e.exports},738:e=>{function t(r){return e.exports=t=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},122:(e,t,r)=>{var n=r(79);e.exports=function(e,t){if(e){if(\"string\"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(e):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},756:(e,t,r)=>{var n=r(633)();e.exports=n;try{regeneratorRuntime=n}catch(e){\"object\"==typeof globalThis?globalThis.regeneratorRuntime=n:Function(\"r\",\"regeneratorRuntime = r\")(n)}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n].call(a.exports,a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{\"use strict\";r(379)})()})();"; // tslint:disable-line:max-line-length
var worker = "(()=>{var e={346:function(e,t,r){!function(e,t,r,n,o,a){\"use strict\";var i=function(e){return\"function\"==typeof e.start},u=new WeakMap;function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?c(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e){return s(s({},e),{},{connect:function(e){var t=e.call;return o(a.mark((function e(){var r,n,o,i;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new MessageChannel,n=r.port1,o=r.port2,e.next=3,t(\"connect\",{port:n},[n]);case 3:return i=e.sent,u.set(o,i),e.abrupt(\"return\",o);case 6:case\"end\":return e.stop()}}),e)})))},disconnect:function(e){var t=e.call;return function(){var e=o(a.mark((function e(r){var n;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==(n=u.get(r))){e.next=3;break}throw new Error(\"The given port is not connected.\");case 3:return e.next=5,t(\"disconnect\",{portId:n});case 5:case\"end\":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},isSupported:function(e){var t=e.call;return function(){return t(\"isSupported\")}}})};function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?l(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=new WeakMap,d=function(e){if(h.has(e))return h.get(e);var t=new Map;return h.set(e,t),t},v=function(e){var o=f(e);return function(e){var a=d(e);e.addEventListener(\"message\",(function(e){var t=e.data,r=t.id;if(null!==r&&a.has(r)){var n=a.get(r),o=n.reject,i=n.resolve;a.delete(r),void 0===t.error?i(t.result):o(new Error(t.error.message))}})),i(e)&&e.start();for(var u=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return new Promise((function(i,u){var c=n.generateUniqueNumber(a);a.set(c,{reject:u,resolve:i}),null===r?e.postMessage({id:c,method:t},o):e.postMessage({id:c,method:t,params:r},o)}))},c=function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];e.postMessage({id:null,method:t,params:r},n)},s={},f=0,l=Object.entries(o);f<l.length;f++){var h=r(l[f],2),v=h[0],y=h[1];s=p(p({},s),{},t({},v,y({call:u,notify:c})))}return p({},s)}};e.createBroker=v}(t,r(693),r(715),r(389),r(293),r(756))},870:function(e,t,r){!function(e,t,r,n){\"use strict\";var o=n.createBroker({characterize:function(e){var t=e.call;return function(){return t(\"characterize\")}},encode:function(e){var t=e.call;return function(e,r){return t(\"encode\",{recordingId:e,timeslice:r})}},record:function(e){var n=e.call;return function(){var e=t(r.mark((function e(t,o,a){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(\"record\",{recordingId:t,sampleRate:o,typedArrays:a},a.map((function(e){return e.buffer})));case 2:case\"end\":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()}}),a=function(e){var t=new Worker(e);return o(t)};e.load=a,e.wrap=o}(t,r(293),r(756),r(346))},389:function(e,t){!function(e){\"use strict\";var t=function(e){return function(t){var r=e(t);return t.add(r),r}},r=function(e){return function(t,r){return e.set(t,r),r}},n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,o=536870912,a=2*o,i=function(e,t){return function(r){var i=t.get(r),u=void 0===i?r.size:i<a?i+1:0;if(!r.has(u))return e(r,u);if(r.size<o){for(;r.has(u);)u=Math.floor(Math.random()*a);return e(r,u)}if(r.size>n)throw new Error(\"Congratulations, you created a collection of unique numbers which uses all available integers!\");for(;r.has(u);)u=Math.floor(Math.random()*n);return e(r,u)}},u=new WeakMap,c=r(u),s=i(c,u),f=t(s);e.addUniqueNumber=f,e.generateUniqueNumber=s}(t)},379:function(e,t,r){!function(e,t,r,n,o){\"use strict\";var a=function(e,t){return function(r){var n=t.get(r);if(void 0===n)throw new Error(\"There was no encoder stored with the given id.\");e.delete(n),t.delete(r)}},i=function(e,t){return function(r){var n=t(r),a=o(n,4),i=a[0],u=a[1],c=a[2],s=a[3];return c?new Promise((function(t){u.onmessage=function(n){var o=n.data;0===o.length?(e(u),t(i.encode(r,null))):i.record(r,s,o)}})):i.encode(r,null)}},u=function(e){return function(t){var r=e.get(t);if(void 0===r)throw new Error(\"There was no instance of an encoder stored with the given id.\");return r}},c=function(e,t,r){return function(n,o,a){if(t.has(n))throw new Error('There is already an encoder instance registered with an id called \"'.concat(n,'\".'));var i=r(o),u=new MessageChannel,c=u.port1,s=u.port2,f=[i,c,!0,a];return t.set(n,f),c.onmessage=function(t){var r=t.data;0===r.length?(e(c),f[2]=!1):i.record(n,a,r.map((function(e){return\"number\"==typeof e?new Float32Array(e):e})))},s}},s=function(e){return function(t){for(var r=0,n=Array.from(e.values());r<n.length;r++){var a=o(n[r],2),i=a[0],u=a[1];if(i.test(t))return u}throw new Error(\"There is no encoder registered which could handle the given mimeType.\")}},f=function(r,n,o){return function(){var a=e(t.mark((function e(a,i){var u,c,s;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=o(i),e.next=3,u.characterize();case 3:if(c=e.sent,s=c.toString(),!r.has(s)){e.next=7;break}throw new Error(\"There is already an encoder stored which handles exactly the same mime types.\");case 7:if(!n.has(a)){e.next=9;break}throw new Error('There is already an encoder registered with an id called \"'.concat(a,'\".'));case 9:return r.set(s,[c,u]),n.set(a,s),e.abrupt(\"return\",c);case 12:case\"end\":return e.stop()}}),e)})));return function(e,t){return a.apply(this,arguments)}}()},l=function(e,t){return function(r){var n=t(r);return e.delete(r),n}},p=function(e){return function(t,r){var n=e(t);return o(n,1)[0].encode(t,r)}},h=function(e){e.onmessage=null,e.close()},d=new Map,v=new Map,y=a(d,v),g=new Map,m=u(g),w=l(g,m),b=i(h,w),x=s(d),O=c(h,g,x),j=f(d,v,r.wrap),E=p(m);n.createWorker(self,{deregister:function(){var r=e(t.mark((function e(r){var n;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.encoderId,y(n),e.abrupt(\"return\",{result:null});case 3:case\"end\":return e.stop()}}),e)})));function n(e){return r.apply(this,arguments)}return n}(),encode:function(){var r=e(t.mark((function e(r){var n,o,a;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.encoderInstanceId,null!==(o=r.timeslice)){e.next=7;break}return e.next=4,b(n);case 4:e.t0=e.sent,e.next=10;break;case 7:return e.next=9,E(n,o);case 9:e.t0=e.sent;case 10:return a=e.t0,e.abrupt(\"return\",{result:a,transferables:a});case 12:case\"end\":return e.stop()}}),e)})));function n(e){return r.apply(this,arguments)}return n}(),instantiate:function(e){var t=e.encoderInstanceId,r=e.mimeType,n=e.sampleRate,o=O(t,r,n);return{result:o,transferables:[o]}},register:function(){var r=e(t.mark((function e(r){var n,o;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.encoderId,o=r.port,e.next=3,j(n,o);case 3:return e.t0=e.sent,e.abrupt(\"return\",{result:e.t0});case 5:case\"end\":return e.stop()}}),e)})));function n(e){return r.apply(this,arguments)}return n}()})}(r(293),r(756),r(870),r(623),r(715))},623:function(e,t,r){!function(e,t,r,n,o){\"use strict\";var a={INTERNAL_ERROR:-32603,INVALID_PARAMS:-32602,METHOD_NOT_FOUND:-32601},i=function(e,t){return Object.assign(new Error(e),{status:t})},u=function(e){return i('The requested method called \"'.concat(e,'\" is not supported.'),a.METHOD_NOT_FOUND)},c=function(e){return i('The handler of the method called \"'.concat(e,'\" returned no required result.'),a.INTERNAL_ERROR)},s=function(e){return i('The handler of the method called \"'.concat(e,'\" returned an unexpected result.'),a.INTERNAL_ERROR)},f=function(e){return i('The specified parameter called \"portId\" with the given value \"'.concat(e,'\" does not identify a port connected to this worker.'),a.INVALID_PARAMS)},l=function(e,n){return function(){var o=t(r.mark((function t(o){var a,i,f,l,p,h,d,v,y,g,m,w,b;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=o.data,i=a.id,f=a.method,l=a.params,p=n[f],t.prev=2,void 0!==p){t.next=5;break}throw u(f);case 5:if(void 0!==(h=void 0===l?p():p(l))){t.next=8;break}throw c(f);case 8:if(!(h instanceof Promise)){t.next=14;break}return t.next=11,h;case 11:t.t0=t.sent,t.next=15;break;case 14:t.t0=h;case 15:if(d=t.t0,null!==i){t.next=21;break}if(void 0===d.result){t.next=19;break}throw s(f);case 19:t.next=25;break;case 21:if(void 0!==d.result){t.next=23;break}throw s(f);case 23:v=d.result,y=d.transferables,g=void 0===y?[]:y,e.postMessage({id:i,result:v},g);case 25:t.next=31;break;case 27:t.prev=27,t.t1=t.catch(2),m=t.t1.message,w=t.t1.status,b=void 0===w?-32603:w,e.postMessage({error:{code:b,message:m},id:i});case 31:case\"end\":return t.stop()}}),t,null,[[2,27]])})));return function(e){return o.apply(this,arguments)}}()},p=function(){return new Promise((function(e){var t=new ArrayBuffer(0),r=new MessageChannel,n=r.port1,o=r.port2;n.onmessage=function(t){var r=t.data;return e(null!==r)},o.postMessage(t,[t])}))};function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var v=new Map,y=function(e,n,a){return d(d({},n),{},{connect:function(t){var r=t.port;r.start();var a=e(r,n),i=o.generateUniqueNumber(v);return v.set(i,(function(){a(),r.close(),v.delete(i)})),{result:i}},disconnect:function(e){var t=e.portId,r=v.get(t);if(void 0===r)throw f(t);return r(),{result:null}},isSupported:function(){var e=t(r.mark((function e(){var t,n;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!e.sent){e.next=14;break}if(!((t=a())instanceof Promise)){e.next=11;break}return e.next=8,t;case 8:e.t0=e.sent,e.next=12;break;case 11:e.t0=t;case 12:return n=e.t0,e.abrupt(\"return\",{result:n});case 14:return e.abrupt(\"return\",{result:!1});case 15:case\"end\":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()})},g=function(e,t){var r=y(g,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0}),n=l(e,r);return e.addEventListener(\"message\",n),function(){return e.removeEventListener(\"message\",n)}};e.createWorker=g,e.isSupported=p}(t,r(293),r(756),r(693),r(389))},79:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},987:e=>{e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},293:e=>{function t(e,t,r,n,o,a,i){try{var u=e[a](i),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(o,a){var i=e.apply(r,n);function u(e){t(i,o,a,u,c,\"next\",e)}function c(e){t(i,o,a,u,c,\"throw\",e)}u(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},693:(e,t,r)=>{var n=r(736);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},156:e=>{e.exports=function(e,t){var r=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}},e.exports.__esModule=!0,e.exports.default=e.exports},752:e=>{e.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")},e.exports.__esModule=!0,e.exports.default=e.exports},633:(e,t,r)=>{var n=r(738).default;function o(){\"use strict\";e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},a=Object.prototype,i=a.hasOwnProperty,u=Object.defineProperty||function(e,t,r){e[t]=r.value},c=\"function\"==typeof Symbol?Symbol:{},s=c.iterator||\"@@iterator\",f=c.asyncIterator||\"@@asyncIterator\",l=c.toStringTag||\"@@toStringTag\";function p(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},\"\")}catch(t){p=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),i=new I(n||[]);return u(a,\"_invoke\",{value:L(e,r,i)}),a}function d(e,t,r){try{return{type:\"normal\",arg:e.call(t,r)}}catch(e){return{type:\"throw\",arg:e}}}r.wrap=h;var v=\"suspendedStart\",y=\"suspendedYield\",g=\"executing\",m=\"completed\",w={};function b(){}function x(){}function O(){}var j={};p(j,s,(function(){return this}));var E=Object.getPrototypeOf,_=E&&E(E(A([])));_&&_!==a&&i.call(_,s)&&(j=_);var k=O.prototype=b.prototype=Object.create(j);function P(e){[\"next\",\"throw\",\"return\"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function r(o,a,u,c){var s=d(e[o],e,a);if(\"throw\"!==s.type){var f=s.arg,l=f.value;return l&&\"object\"==n(l)&&i.call(l,\"__await\")?t.resolve(l.__await).then((function(e){r(\"next\",e,u,c)}),(function(e){r(\"throw\",e,u,c)})):t.resolve(l).then((function(e){f.value=e,u(f)}),(function(e){return r(\"throw\",e,u,c)}))}c(s.arg)}var o;u(this,\"_invoke\",{value:function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}})}function L(e,r,n){var o=v;return function(a,i){if(o===g)throw Error(\"Generator is already running\");if(o===m){if(\"throw\"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var u=n.delegate;if(u){var c=S(u,n);if(c){if(c===w)continue;return c}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===v)throw o=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=g;var s=d(e,r,n);if(\"normal\"===s.type){if(o=n.done?m:y,s.arg===w)continue;return{value:s.arg,done:n.done}}\"throw\"===s.type&&(o=m,n.method=\"throw\",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,S(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),w;var a=d(o,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,w;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,w):i:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,w)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type=\"normal\",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:\"root\"}],e.forEach(T,this),this.reset(!0)}function A(e){if(e||\"\"===e){var r=e[s];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return x.prototype=O,u(k,\"constructor\",{value:O,configurable:!0}),u(O,\"constructor\",{value:x,configurable:!0}),x.displayName=p(O,l,\"GeneratorFunction\"),r.isGeneratorFunction=function(e){var t=\"function\"==typeof e&&e.constructor;return!!t&&(t===x||\"GeneratorFunction\"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,O):(e.__proto__=O,p(e,l,\"GeneratorFunction\")),e.prototype=Object.create(k),e},r.awrap=function(e){return{__await:e}},P(M.prototype),p(M.prototype,f,(function(){return this})),r.AsyncIterator=M,r.async=function(e,t,n,o,a){void 0===a&&(a=Promise);var i=new M(h(e,t,n,o),a);return r.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},P(k),p(k,l,\"Generator\"),p(k,s,(function(){return this})),p(k,\"toString\",(function(){return\"[object Generator]\"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=A,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(N),!e)for(var r in this)\"t\"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(\"throw\"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return u.type=\"throw\",u.arg=e,r.next=n,o&&(r.method=\"next\",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var c=i.call(a,\"catchLoc\"),s=i.call(a,\"finallyLoc\");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var o=n;break}}o&&(\"break\"===e||\"continue\"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method=\"next\",this.next=o.finallyLoc,w):this.complete(a)},complete:function(e,t){if(\"throw\"===e.type)throw e.arg;return\"break\"===e.type||\"continue\"===e.type?this.next=e.arg:\"return\"===e.type?(this.rval=this.arg=e.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===e.type&&t&&(this.next=t),w},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),w}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;N(r)}return o}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),w}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},715:(e,t,r)=>{var n=r(987),o=r(156),a=r(122),i=r(752);e.exports=function(e,t){return n(e)||o(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},45:(e,t,r)=>{var n=r(738).default;e.exports=function(e,t){if(\"object\"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||\"default\");if(\"object\"!=n(o))return o;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},736:(e,t,r)=>{var n=r(738).default,o=r(45);e.exports=function(e){var t=o(e,\"string\");return\"symbol\"==n(t)?t:t+\"\"},e.exports.__esModule=!0,e.exports.default=e.exports},738:e=>{function t(r){return e.exports=t=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},122:(e,t,r)=>{var n=r(79);e.exports=function(e,t){if(e){if(\"string\"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(e):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},756:(e,t,r)=>{var n=r(633)();e.exports=n;try{regeneratorRuntime=n}catch(e){\"object\"==typeof globalThis?globalThis.regeneratorRuntime=n:Function(\"r\",\"regeneratorRuntime = r\")(n)}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n].call(a.exports,a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{\"use strict\";r(379)})()})();"; // tslint:disable-line:max-line-length

@@ -11,0 +11,0 @@ var blob = new Blob([worker], {

@@ -12,5 +12,5 @@ {

"dependencies": {
"@babel/runtime": "^7.24.8",
"media-encoder-host-broker": "^8.0.4",
"media-encoder-host-worker": "^10.0.4",
"@babel/runtime": "^7.25.0",
"media-encoder-host-broker": "^8.0.5",
"media-encoder-host-worker": "^10.0.5",
"tslib": "^2.6.3"

@@ -20,7 +20,7 @@ },

"devDependencies": {
"@babel/core": "^7.24.8",
"@babel/core": "^7.25.2",
"@babel/plugin-external-helpers": "^7.24.7",
"@babel/plugin-transform-runtime": "^7.24.7",
"@babel/preset-env": "^7.24.8",
"@commitlint/cli": "^19.3.0",
"@babel/preset-env": "^7.25.3",
"@commitlint/cli": "^19.4.0",
"@commitlint/config-angular": "^19.3.0",

@@ -34,8 +34,8 @@ "@rollup/plugin-babel": "^6.0.4",

"eslint": "^8.57.0",
"eslint-config-holy-grail": "^59.0.14",
"eslint-config-holy-grail": "^59.0.15",
"grunt": "^1.6.1",
"grunt-cli": "^1.4.3",
"grunt-cli": "^1.5.0",
"grunt-sh": "^0.2.1",
"husky": "^8.0.3",
"karma": "^6.4.3",
"karma": "^6.4.4",
"karma-chrome-launcher": "^3.2.0",

@@ -48,9 +48,9 @@ "karma-firefox-launcher": "^2.1.3",

"karma-webpack": "^5.0.1",
"lint-staged": "^15.2.7",
"lint-staged": "^15.2.8",
"load-grunt-config": "^4.0.1",
"memfs": "^4.9.3",
"mocha": "^10.6.0",
"prettier": "^3.3.2",
"memfs": "^4.11.1",
"mocha": "^10.7.3",
"prettier": "^3.3.3",
"rimraf": "^5.0.6",
"rollup": "^4.18.1",
"rollup": "^4.20.0",
"sinon": "^17.0.2",

@@ -63,3 +63,3 @@ "sinon-chai": "^3.7.0",

"tslint-config-holy-grail": "^56.0.2",
"typescript": "^5.5.3",
"typescript": "^5.5.4",
"webpack": "^5.93.0",

@@ -93,3 +93,3 @@ "webpack-cli": "^5.1.4"

"types": "build/es2019/module.d.ts",
"version": "9.0.4"
"version": "9.0.5"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc