text: !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((e=e||self).WebStreamsPolyfill={})}(this,function(e){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(e){return"Symbol("+e+")"};function t(){}var o="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0,n=Number.isNaN||function(e){return e!=e},i=t;function a(e){return"object"==typeof e&&null!==e||"function"==typeof e}function u(e){return e.slice()}function s(e){return!1!==function(e){if("number"!=typeof e)return!1;if(n(e))return!1;if(e<0)return!1;return!0}(e)&&e!==1/0}function l(e,r,t){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,r,t)}function c(e,r,t,o){var n=e[r];if(void 0!==n){if("function"!=typeof n)throw new TypeError(n+" is not a method");switch(t){case 0:return function(){return f(n,e,o)};case 1:return function(r){var t=[r].concat(o);return f(n,e,t)}}}return function(){return g(void 0)}}function d(e,r,t){var o=e[r];if(void 0!==o)return l(o,e,t)}function f(e,r,t){try{return g(l(e,r,t))}catch(e){return S(e)}}function _(e){return e}function h(e){if(e=Number(e),n(e)||e<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return e}function b(e){if(void 0===e)return function(){return 1};if("function"!=typeof e)throw new TypeError("size property of a queuing strategy must be a function");return function(r){return e(r)}}var p=Promise,y=Promise.prototype.then,v=Promise.resolve.bind(p),m=Promise.reject.bind(p);function w(e){return new p(e)}function g(e){return v(e)}function S(e){return m(e)}function R(e,r,t){return y.call(e,r,t)}function T(e,r,t){R(R(e,r,t),void 0,i)}function q(e,r){T(e,r)}function E(e,r){T(e,void 0,r)}function P(e,r,t){return R(e,r,t)}function C(e){R(e,void 0,i)}var A=function(){function e(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(e.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.push=function(e){var r=this._back,t=r;16383===r._elements.length&&(t={_elements:[],_next:void 0}),r._elements.push(e),t!==r&&(this._back=t,r._next=t),++this._size},e.prototype.shift=function(){var e=this._front,r=e,t=this._cursor,o=t+1,n=e._elements,i=n[t];return 16384===o&&(r=e._next,o=0),--this._size,this._cursor=o,e!==r&&(this._front=r),n[t]=void 0,i},e.prototype.forEach=function(e){for(var r=this._cursor,t=this._front,o=t._elements;!(r===o.length&&void 0===t._next||r===o.length&&(r=0,0===(o=(t=t._next)._elements).length));)e(o[r]),++r},e.prototype.peek=function(){var e=this._front,r=this._cursor;return e._elements[r]},e}();function O(e,r,t){var o=null;!0===t&&(o=Object.prototype);var n=Object.create(o);return n.value=e,n.done=r,n}function j(e,r){e._forAuthorCode=!0,e._ownerReadableStream=r,r._reader=e,"readable"===r._state?B(e):"closed"===r._state?function(e){B(e),L(e)}(e):I(e,r._storedError)}function W(e,r){return Dr(e._ownerReadableStream,r)}function k(e){"readable"===e._ownerReadableStream._state?F(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function(e,r){I(e,r)}(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function z(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function B(e){e._closedPromise=w(function(r,t){e._closedPromise_resolve=r,e._closedPromise_reject=t})}function I(e,r){B(e),F(e,r)}function F(e,r){C(e._closedPromise),e._closedPromise_reject(r),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function L(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}var M=r("[[CancelSteps]]"),x=r("[[PullSteps]]");function D(e,r){void 0===r&&(r=!1);var t=new G(e);return t._forAuthorCode=r,t}function N(e){return w(function(r,t){var o={_resolve:r,_reject:t};e._reader._readRequests.push(o)})}function Y(e,r,t){var o=e._reader;o._readRequests.shift()._resolve(O(r,t,o._forAuthorCode))}function H(e){return e._reader._readRequests.length}function U(e){var r=e._reader;return void 0!==r&&!!J(r)}var V,Q,G=function(){function e(e){if(!1===Mr(e))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===xr(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");j(this,e),this._readRequests=new A}return Object.defineProperty(e.prototype,"closed",{get:function(){return J(this)?this._closedPromise:S(X("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return J(this)?void 0===this._ownerReadableStream?S(z("cancel")):W(this,e):S(X("cancel"))},e.prototype.read=function(){return J(this)?void 0===this._ownerReadableStream?S(z("read from")):K(this):S(X("read"))},e.prototype.releaseLock=function(){if(!J(this))throw X("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");k(this)}},e}();function J(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}function K(e){var r=e._ownerReadableStream;return r._disturbed=!0,"closed"===r._state?g(O(void 0,!0,e._forAuthorCode)):"errored"===r._state?S(r._storedError):r._readableStreamController[x]()}function X(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}"symbol"==typeof r.asyncIterator&&((V={})[r.asyncIterator]=function(){return this},Q=V,Object.defineProperty(Q,r.asyncIterator,{enumerable:!1}));var Z={next:function(){if(!1===$(this))return S(ee("next"));var e=this._asyncIteratorReader;return void 0===e._ownerReadableStream?S(z("iterate")):P(K(e),function(r){var t=r.done;return t&&k(e),O(r.value,t,!0)})},return:function(e){if(!1===$(this))return S(ee("next"));var r=this._asyncIteratorReader;if(void 0===r._ownerReadableStream)return S(z("finish iterating"));if(r._readRequests.length>0)return S(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this._preventCancel){var t=W(r,e);return k(r),P(t,function(){return O(e,!0,!0)})}return k(r),g(O(e,!0,!0))}};function $(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorReader")}function ee(e){return new TypeError("ReadableStreamAsyncIterator."+e+" can only be used on a ReadableSteamAsyncIterator")}function re(e){var r=e._queue.shift();return e._queueTotalSize-=r.size,e._queueTotalSize<0&&(e._queueTotalSize=0),r.value}function te(e,r,t){if(!s(t=Number(t)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:r,size:t}),e._queueTotalSize+=t}function oe(e){e._queue=new A,e._queueTotalSize=0}void 0!==Q&&Object.setPrototypeOf(Z,Q),Object.defineProperty(Z,"next",{enumerable:!1}),Object.defineProperty(Z,"return",{enumerable:!1});var ne=r("[[AbortSteps]]"),ie=r("[[ErrorSteps]]"),ae=function(){function e(e,r){void 0===e&&(e={}),void 0===r&&(r={}),se(this);var t=r.size,o=r.highWaterMark;if(void 0!==e.type)throw new RangeError("Invalid type is specified");var n=b(t);void 0===o&&(o=1),function(e,r,t,o){var n=Object.create(qe.prototype);var i=c(r,"write",1,[n]),a=c(r,"close",0,[]),u=c(r,"abort",1,[]);Ee(e,n,function(){return d(r,"start",[n])},i,a,u,t,o)}(this,e,o=h(o),n)}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===le(this))throw ke("locked");return ce(this)},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===le(this)?S(ke("abort")):!0===ce(this)?S(new TypeError("Cannot abort a stream that already has a writer")):de(this,e)},e.prototype.getWriter=function(){if(!1===le(this))throw ke("getWriter");return ue(this)},e}();function ue(e){return new ve(e)}function se(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new A,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function le(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}function ce(e){return void 0!==e._writer}function de(e,r){var t=e._state;if("closed"===t||"errored"===t)return g(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;var o=!1;"erroring"===t&&(o=!0,r=void 0);var n=w(function(t,n){e._pendingAbortRequest={_promise:void 0,_resolve:t,_reject:n,_reason:r,_wasAlreadyErroring:o}});return e._pendingAbortRequest._promise=n,!1===o&&_e(e,r),n}function fe(e,r){"writable"!==e._state?he(e):_e(e,r)}function _e(e,r){var t=e._writableStreamController;e._state="erroring",e._storedError=r;var o=e._writer;void 0!==o&&Se(o,r),!1===function(e){if(void 0===e._inFlightWriteRequest&&void 0===e._inFlightCloseRequest)return!1;return!0}(e)&&!0===t._started&&he(e)}function he(e){e._state="errored",e._writableStreamController[ie]();var r=e._storedError;if(e._writeRequests.forEach(function(e){e._reject(r)}),e._writeRequests=new A,void 0!==e._pendingAbortRequest){var t=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,!0===t._wasAlreadyErroring)return t._reject(r),void pe(e);T(e._writableStreamController[ne](t._reason),function(){t._resolve(),pe(e)},function(r){t._reject(r),pe(e)})}else pe(e)}function be(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function pe(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);var r=e._writer;void 0!==r&&Le(r,e._storedError)}function ye(e,r){var t=e._writer;void 0!==t&&r!==e._backpressure&&(!0===r?function(e){xe(e)}(t):He(t)),e._backpressure=r}var ve=function(){function e(e){if(!1===le(e))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===ce(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;var r,t=e._state;if("writable"===t)!1===be(e)&&!0===e._backpressure?xe(this):Ne(this),Ie(this);else if("erroring"===t)De(this,e._storedError),Ie(this);else if("closed"===t)Ne(this),Ie(r=this),Me(r);else{var o=e._storedError;De(this,o),Fe(this,o)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return!1===me(this)?S(ze("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===me(this))throw ze("desiredSize");if(void 0===this._ownerWritableStream)throw Be("desiredSize");return function(e){var r=e._ownerWritableStream,t=r._state;if("errored"===t||"erroring"===t)return null;if("closed"===t)return 0;return Ce(r._writableStreamController)}(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return!1===me(this)?S(ze("ready")):this._readyPromise},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===me(this)?S(ze("abort")):void 0===this._ownerWritableStream?S(Be("abort")):function(e,r){return de(e._ownerWritableStream,r)}(this,e)},e.prototype.close=function(){if(!1===me(this))return S(ze("close"));var e=this._ownerWritableStream;return void 0===e?S(Be("close")):!0===be(e)?S(new TypeError("cannot close an already-closing stream")):we(this)},e.prototype.releaseLock=function(){if(!1===me(this))throw ze("releaseLock");void 0!==this._ownerWritableStream&&Re(this)},e.prototype.write=function(e){return!1===me(this)?S(ze("write")):void 0===this._ownerWritableStream?S(Be("write to")):Te(this,e)},e}();function me(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}function we(e){var r=e._ownerWritableStream,t=r._state;if("closed"===t||"errored"===t)return S(new TypeError("The stream (in "+t+" state) is not in the writable state and cannot be closed"));var o,n=w(function(e,t){var o={_resolve:e,_reject:t};r._closeRequest=o});return!0===r._backpressure&&"writable"===t&&He(e),te(o=r._writableStreamController,"close",0),Ae(o),n}function ge(e,r){"pending"===e._closedPromiseState?Le(e,r):function(e,r){Fe(e,r)}(e,r)}function Se(e,r){"pending"===e._readyPromiseState?Ye(e,r):function(e,r){De(e,r)}(e,r)}function Re(e){var r=e._ownerWritableStream,t=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Se(e,t),ge(e,t),r._writer=void 0,e._ownerWritableStream=void 0}function Te(e,r){var t=e._ownerWritableStream,o=t._writableStreamController,n=function(e,r){try{return e._strategySizeAlgorithm(r)}catch(r){return Oe(e,r),1}}(o,r);if(t!==e._ownerWritableStream)return S(Be("write to"));var i=t._state;if("errored"===i)return S(t._storedError);if(!0===be(t)||"closed"===i)return S(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===i)return S(t._storedError);var a=function(e){return w(function(r,t){var o={_resolve:r,_reject:t};e._writeRequests.push(o)})}(t);return function(e,r,t){var o={chunk:r};try{te(e,o,t)}catch(r){return void Oe(e,r)}var n=e._controlledWritableStream;if(!1===be(n)&&"writable"===n._state){var i=je(e);ye(n,i)}Ae(e)}(o,r,n),a}var qe=function(){function e(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return e.prototype.error=function(e){if(!1===function(e){if(!a(e))return!1;if(!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream"))return!1;return!0}(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&We(this,e)},e.prototype[ne]=function(e){var r=this._abortAlgorithm(e);return Pe(this),r},e.prototype[ie]=function(){oe(this)},e}();function Ee(e,r,t,o,n,i,a,u){r._controlledWritableStream=e,e._writableStreamController=r,r._queue=void 0,r._queueTotalSize=void 0,oe(r),r._started=!1,r._strategySizeAlgorithm=u,r._strategyHWM=a,r._writeAlgorithm=o,r._closeAlgorithm=n,r._abortAlgorithm=i;var s=je(r);ye(e,s),T(g(t()),function(){r._started=!0,Ae(r)},function(t){r._started=!0,fe(e,t)})}function Pe(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Ce(e){return e._strategyHWM-e._queueTotalSize}function Ae(e){var r=e._controlledWritableStream;if(!1!==e._started&&void 0===r._inFlightWriteRequest)if("erroring"!==r._state){if(0!==e._queue.length){var t=e._queue.peek().value;"close"===t?function(e){var r=e._controlledWritableStream;(function(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0})(r),re(e);var t=e._closeAlgorithm();Pe(e),T(t,function(){!function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";var r=e._writer;void 0!==r&&Me(r)}(r)},function(e){!function(e,r){e._inFlightCloseRequest._reject(r),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(r),e._pendingAbortRequest=void 0),fe(e,r)}(r,e)})}(e):function(e,r){var t=e._controlledWritableStream;(function(e){e._inFlightWriteRequest=e._writeRequests.shift()})(t),T(e._writeAlgorithm(r),function(){!function(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}(t);var r=t._state;if(re(e),!1===be(t)&&"writable"===r){var o=je(e);ye(t,o)}Ae(e)},function(r){"writable"===t._state&&Pe(e),function(e,r){e._inFlightWriteRequest._reject(r),e._inFlightWriteRequest=void 0,fe(e,r)}(t,r)})}(e,t.chunk)}}else he(r)}function Oe(e,r){"writable"===e._controlledWritableStream._state&&We(e,r)}function je(e){return Ce(e)<=0}function We(e,r){var t=e._controlledWritableStream;Pe(e),_e(t,r)}function ke(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function ze(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function Be(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function Ie(e){e._closedPromise=w(function(r,t){e._closedPromise_resolve=r,e._closedPromise_reject=t,e._closedPromiseState="pending"})}function Fe(e,r){Ie(e),Le(e,r)}function Le(e,r){C(e._closedPromise),e._closedPromise_reject(r),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}function Me(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}function xe(e){e._readyPromise=w(function(r,t){e._readyPromise_resolve=r,e._readyPromise_reject=t}),e._readyPromiseState="pending"}function De(e,r){xe(e),Ye(e,r)}function Ne(e){xe(e),He(e)}function Ye(e,r){C(e._readyPromise),e._readyPromise_reject(r),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}function He(e){e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}function Ue(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}var Ve="undefined"!=typeof DOMException?DOMException:void 0;var Qe,Ge=function(e){if("function"!=typeof e&&"object"!=typeof e)return!1;try{return new e,!0}catch(e){return!1}}(Ve)?Ve:((Qe=function(e,r){this.message=e||"",this.name=r||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}).prototype=Object.create(Error.prototype),Object.defineProperty(Qe.prototype,"constructor",{value:Qe,writable:!0,configurable:!0}),Qe);function Je(e,r,o,n,i,a){var u=D(e),s=ue(r),l=!1,c=g(void 0);return w(function(d,f){var _,h,b,p;if(void 0!==a){if(_=function(){var t=new Ge("Aborted","AbortError"),o=[];!1===n&&o.push(function(){return"writable"===r._state?de(r,t):g(void 0)}),!1===i&&o.push(function(){return"readable"===e._state?Dr(e,t):g(void 0)}),P(function(){return Promise.all(o.map(function(e){return e()}))},!0,t)},!0===a.aborted)return void _();a.addEventListener("abort",_)}if(m(e,u._closedPromise,function(e){!1===n?P(function(){return de(r,e)},!0,e):A(!0,e)}),m(r,s._closedPromise,function(r){!1===i?P(function(){return Dr(e,r)},!0,r):A(!0,r)}),h=e,b=u._closedPromise,p=function(){!1===o?P(function(){return function(e){var r=e._ownerWritableStream,t=r._state;return!0===be(r)||"closed"===t?g(void 0):"errored"===t?S(r._storedError):we(e)}(s)}):A()},"closed"===h._state?p():q(b,p),!0===be(r)||"closed"===r._state){var y=new TypeError("the destination writable stream closed before all data could be piped to it");!1===i?P(function(){return Dr(e,y)},!0,y):A(!0,y)}function v(){var e=c;return R(c,function(){return e!==c?v():void 0})}function m(e,r,t){"errored"===e._state?t(e._storedError):E(r,t)}function P(e,t,o){function n(){T(e(),function(){return O(t,o)},function(e){return O(!0,e)})}!0!==l&&(l=!0,"writable"===r._state&&!1===be(r)?q(v(),n):n())}function A(e,t){!0!==l&&(l=!0,"writable"===r._state&&!1===be(r)?q(v(),function(){return O(e,t)}):O(e,t))}function O(e,r){Re(s),k(u),void 0!==a&&a.removeEventListener("abort",_),e?f(r):d(void 0)}C(w(function(e,r){!function o(n){n?e():R(!0===l?g(!0):R(s._readyPromise,function(){return R(K(u),function(e){var r=e.value,o=e.done;return!0===o||(c=R(Te(s,r),void 0,t),!1)})}),o,r)}(!1)}))})}var Ke=function(){function e(){throw new TypeError}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===Xe(this))throw ur("desiredSize");return nr(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===Xe(this))throw ur("close");if(!1===ir(this))throw new TypeError("The stream is not in a state that permits close");rr(this)},e.prototype.enqueue=function(e){if(!1===Xe(this))throw ur("enqueue");if(!1===ir(this))throw new TypeError("The stream is not in a state that permits enqueue");return tr(this,e)},e.prototype.error=function(e){if(!1===Xe(this))throw ur("error");or(this,e)},e.prototype[M]=function(e){oe(this);var r=this._cancelAlgorithm(e);return er(this),r},e.prototype[x]=function(){var e=this._controlledReadableStream;if(this._queue.length>0){var r=re(this);return!0===this._closeRequested&&0===this._queue.length?(er(this),Nr(e)):Ze(this),g(O(r,!1,e._reader._forAuthorCode))}var t=N(e);return Ze(this),t},e}();function Xe(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")}function Ze(e){!1!==$e(e)&&(!0!==e._pulling?(e._pulling=!0,T(e._pullAlgorithm(),function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,Ze(e))},function(r){or(e,r)})):e._pullAgain=!0)}function $e(e){var r=e._controlledReadableStream;return!1!==ir(e)&&(!1!==e._started&&(!0===xr(r)&&H(r)>0||nr(e)>0))}function er(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function rr(e){var r=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(er(e),Nr(r))}function tr(e,r){var t=e._controlledReadableStream;if(!0===xr(t)&&H(t)>0)Y(t,r,!1);else{var o=void 0;try{o=e._strategySizeAlgorithm(r)}catch(r){throw or(e,r),r}try{te(e,r,o)}catch(r){throw or(e,r),r}}Ze(e)}function or(e,r){var t=e._controlledReadableStream;"readable"===t._state&&(oe(e),er(e),Yr(t,r))}function nr(e){var r=e._controlledReadableStream._state;return"errored"===r?null:"closed"===r?0:e._strategyHWM-e._queueTotalSize}function ir(e){var r=e._controlledReadableStream._state;return!1===e._closeRequested&&"readable"===r}function ar(e,r,t,o,n,i,a){r._controlledReadableStream=e,r._queue=void 0,r._queueTotalSize=void 0,oe(r),r._started=!1,r._closeRequested=!1,r._pullAgain=!1,r._pulling=!1,r._strategySizeAlgorithm=a,r._strategyHWM=i,r._pullAlgorithm=o,r._cancelAlgorithm=n,e._readableStreamController=r,T(g(t()),function(){r._started=!0,Ze(r)},function(e){or(r,e)})}function ur(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}var sr=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},lr=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(e.prototype,"view",{get:function(){if(!1===fr(this))throw Cr("view");return this._view},enumerable:!0,configurable:!0}),e.prototype.respond=function(e){if(!1===fr(this))throw Cr("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");this._view.buffer,function(e,r){if(!1===s(r=Number(r)))throw new RangeError("bytesWritten must be a finite");Sr(e,r)}(this._associatedReadableByteStreamController,e)},e.prototype.respondWithNewView=function(e){if(!1===fr(this))throw Cr("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");e.buffer,function(e,r){var t=e._pendingPullIntos.peek();if(t.byteOffset+t.bytesFilled!==r.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(t.byteLength!==r.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");t.buffer=r.buffer,Sr(e,r.byteLength)}(this._associatedReadableByteStreamController,e)},e}(),cr=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(e.prototype,"byobRequest",{get:function(){if(!1===dr(this))throw Ar("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){var e=this._pendingPullIntos.peek(),r=new Uint8Array(e.buffer,e.byteOffset+e.bytesFilled,e.byteLength-e.bytesFilled),t=Object.create(lr.prototype);!function(e,r,t){e._associatedReadableByteStreamController=r,e._view=t}(t,this,r),this._byobRequest=t}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===dr(this))throw Ar("desiredSize");return Er(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===dr(this))throw Ar("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be closed");!function(e){var r=e._controlledReadableByteStream;if(e._queueTotalSize>0)return void(e._closeRequested=!0);if(e._pendingPullIntos.length>0){var t=e._pendingPullIntos.peek();if(t.bytesFilled>0){var o=new TypeError("Insufficient bytes to fill elements in the given buffer");throw qr(e,o),o}}Tr(e),Nr(r)}(this)},e.prototype.enqueue=function(e){if(!1===dr(this))throw Ar("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");var r=this._controlledReadableByteStream._state;if("readable"!==r)throw new TypeError("The stream (in "+r+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(e))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");e.buffer,function(e,r){var t=e._controlledReadableByteStream,o=r.buffer,n=r.byteOffset,i=r.byteLength,a=_(o);if(!0===U(t))if(0===H(t))pr(e,a,n,i);else{var u=new Uint8Array(a,n,i);Y(t,u,!1)}else!0===Wr(t)?(pr(e,a,n,i),gr(e)):pr(e,a,n,i);_r(e)}(this,e)},e.prototype.error=function(e){if(!1===dr(this))throw Ar("error");qr(this,e)},e.prototype[M]=function(e){this._pendingPullIntos.length>0&&(this._pendingPullIntos.peek().bytesFilled=0);oe(this);var r=this._cancelAlgorithm(e);return Tr(this),r},e.prototype[x]=function(){var e=this._controlledReadableByteStream;if(this._queueTotalSize>0){var r=this._queue.shift();this._queueTotalSize-=r.byteLength,mr(this);var t=void 0;try{t=new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}catch(e){return S(e)}return g(O(t,!1,e._reader._forAuthorCode))}var o=this._autoAllocateChunkSize;if(void 0!==o){var n=void 0;try{n=new ArrayBuffer(o)}catch(e){return S(e)}var i={buffer:n,byteOffset:0,byteLength:o,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(i)}var a=N(e);return _r(this),a},e}();function dr(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")}function fr(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")}function _r(e){!1!==function(e){var r=e._controlledReadableByteStream;if("readable"!==r._state)return!1;if(!0===e._closeRequested)return!1;if(!1===e._started)return!1;if(!0===U(r)&&H(r)>0)return!0;if(!0===Wr(r)&&jr(r)>0)return!0;if(Er(e)>0)return!0;return!1}(e)&&(!0!==e._pulling?(e._pulling=!0,T(e._pullAlgorithm(),function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,_r(e))},function(r){qr(e,r)})):e._pullAgain=!0)}function hr(e,r){var t=!1;"closed"===e._state&&(t=!0);var o=br(r);"default"===r.readerType?Y(e,o,t):function(e,r,t){var o=e._reader;o._readIntoRequests.shift()._resolve(O(r,t,o._forAuthorCode))}(e,o,t)}function br(e){var r=e.bytesFilled,t=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,r/t)}function pr(e,r,t,o){e._queue.push({buffer:r,byteOffset:t,byteLength:o}),e._queueTotalSize+=o}function yr(e,r){var t=r.elementSize,o=r.bytesFilled-r.bytesFilled%t,n=Math.min(e._queueTotalSize,r.byteLength-r.bytesFilled),i=r.bytesFilled+n,a=i-i%t,u=n,s=!1;a>o&&(u=a-r.bytesFilled,s=!0);for(var l,c,d,f,_,h=e._queue;u>0;){var b=h.peek(),p=Math.min(u,b.byteLength),y=r.byteOffset+r.bytesFilled;l=r.buffer,c=y,d=b.buffer,f=b.byteOffset,_=p,new Uint8Array(l).set(new Uint8Array(d,f,_),c),b.byteLength===p?h.shift():(b.byteOffset+=p,b.byteLength-=p),e._queueTotalSize-=p,vr(e,p,r),u-=p}return s}function vr(e,r,t){wr(e),t.bytesFilled+=r}function mr(e){0===e._queueTotalSize&&!0===e._closeRequested?(Tr(e),Nr(e._controlledReadableByteStream)):_r(e)}function wr(e){void 0!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function gr(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;var r=e._pendingPullIntos.peek();!0===yr(e,r)&&(Rr(e),hr(e._controlledReadableByteStream,r))}}function Sr(e,r){var t=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==r)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");!function(e,r){r.buffer=_(r.buffer);var t=e._controlledReadableByteStream;if(!0===Wr(t))for(;jr(t)>0;)hr(t,Rr(e))}(e,t)}else!function(e,r,t){if(t.bytesFilled+r>t.byteLength)throw new RangeError("bytesWritten out of range");if(vr(e,r,t),!(t.bytesFilled<t.elementSize)){Rr(e);var o=t.bytesFilled%t.elementSize;if(o>0){var n=t.byteOffset+t.bytesFilled,i=t.buffer.slice(n-o,n);pr(e,i,0,i.byteLength)}t.buffer=_(t.buffer),t.bytesFilled-=o,hr(e._controlledReadableByteStream,t),gr(e)}}(e,r,t);_r(e)}function Rr(e){var r=e._pendingPullIntos.shift();return wr(e),r}function Tr(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function qr(e,r){var t=e._controlledReadableByteStream;"readable"===t._state&&(!function(e){wr(e),e._pendingPullIntos=new A}(e),oe(e),Tr(e),Yr(t,r))}function Er(e){var r=e._controlledReadableByteStream._state;return"errored"===r?null:"closed"===r?0:e._strategyHWM-e._queueTotalSize}function Pr(e,r,t){var o=Object.create(cr.prototype);var n=c(r,"pull",0,[o]),i=c(r,"cancel",1,[]),a=r.autoAllocateChunkSize;if(void 0!==a&&(a=Number(a),!1===sr(a)||a<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");!function(e,r,t,o,n,i,a){r._controlledReadableByteStream=e,r._pullAgain=!1,r._pulling=!1,r._byobRequest=void 0,r._queue=r._queueTotalSize=void 0,oe(r),r._closeRequested=!1,r._started=!1,r._strategyHWM=h(i),r._pullAlgorithm=o,r._cancelAlgorithm=n,r._autoAllocateChunkSize=a,r._pendingPullIntos=new A,e._readableStreamController=r,T(g(t()),function(){r._started=!0,_r(r)},function(e){qr(r,e)})}(e,o,function(){return d(r,"start",[o])},n,i,t,a)}function Cr(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function Ar(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function Or(e){return w(function(r,t){var o={_resolve:r,_reject:t};e._reader._readIntoRequests.push(o)})}function jr(e){return e._reader._readIntoRequests.length}function Wr(e){var r=e._reader;return void 0!==r&&!!zr(r)}var kr=function(){function e(e){if(!Mr(e))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===dr(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(xr(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");j(this,e),this._readIntoRequests=new A}return Object.defineProperty(e.prototype,"closed",{get:function(){return zr(this)?this._closedPromise:S(Br("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return zr(this)?void 0===this._ownerReadableStream?S(z("cancel")):W(this,e):S(Br("cancel"))},e.prototype.read=function(e){return zr(this)?void 0===this._ownerReadableStream?S(z("read from")):ArrayBuffer.isView(e)?(e.buffer,0===e.byteLength?S(new TypeError("view must have non-zero byteLength")):function(e,r){var t=e._ownerReadableStream;if(t._disturbed=!0,"errored"===t._state)return S(t._storedError);return function(e,r){var t=e._controlledReadableByteStream,o=1;r.constructor!==DataView&&(o=r.constructor.BYTES_PER_ELEMENT);var n=r.constructor,i={buffer:_(r.buffer),byteOffset:r.byteOffset,byteLength:r.byteLength,bytesFilled:0,elementSize:o,ctor:n,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(i),Or(t);if("closed"===t._state)return g(O(new n(i.buffer,i.byteOffset,0),!0,t._reader._forAuthorCode));if(e._queueTotalSize>0){if(!0===yr(e,i)){var a=br(i);return mr(e),g(O(a,!1,t._reader._forAuthorCode))}if(!0===e._closeRequested){var u=new TypeError("Insufficient bytes to fill elements in the given buffer");return qr(e,u),S(u)}}e._pendingPullIntos.push(i);var s=Or(t);return _r(e),s}(t._readableStreamController,r)}(this,e)):S(new TypeError("view must be an array buffer view")):S(Br("read"))},e.prototype.releaseLock=function(){if(!zr(this))throw Br("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");k(this)}},e}();function zr(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}function Br(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}var Ir=function(){function e(e,r){void 0===e&&(e={}),void 0===r&&(r={}),Lr(this);var t=r.size,o=r.highWaterMark,n=e.type;if("bytes"===String(n)){if(void 0!==t)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===o&&(o=0),Pr(this,e,o=h(o))}else{if(void 0!==n)throw new RangeError("Invalid type is specified");var i=b(t);void 0===o&&(o=1),function(e,r,t,o){var n=Object.create(Ke.prototype),i=c(r,"pull",0,[n]),a=c(r,"cancel",1,[]);ar(e,n,function(){return d(r,"start",[n])},i,a,t,o)}(this,e,o=h(o),i)}}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===Mr(this))throw Hr("locked");return xr(this)},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return!1===Mr(this)?S(Hr("cancel")):!0===xr(this)?S(new TypeError("Cannot cancel a stream that already has a reader")):Dr(this,e)},e.prototype.getReader=function(e){var r=(void 0===e?{}:e).mode;if(!1===Mr(this))throw Hr("getReader");if(void 0===r)return D(this,!0);if("byob"===(r=String(r)))return function(e,r){void 0===r&&(r=!1);var t=new kr(e);return t._forAuthorCode=r,t}(this,!0);throw new RangeError("Invalid mode is specified")},e.prototype.pipeThrough=function(e,r){var t=e.writable,o=e.readable,n=void 0===r?{}:r,i=n.preventClose,a=n.preventAbort,u=n.preventCancel,s=n.signal;if(!1===Mr(this))throw Hr("pipeThrough");if(!1===le(t))throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(!1===Mr(o))throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(i=Boolean(i),a=Boolean(a),u=Boolean(u),void 0!==s&&!Ue(s))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===xr(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===ce(t))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return C(Je(this,t,i,a,u,s)),o},e.prototype.pipeTo=function(e,r){var t=void 0===r?{}:r,o=t.preventClose,n=t.preventAbort,i=t.preventCancel,a=t.signal;return!1===Mr(this)?S(Hr("pipeTo")):!1===le(e)?S(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(o=Boolean(o),n=Boolean(n),i=Boolean(i),void 0===a||Ue(a)?!0===xr(this)?S(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===ce(e)?S(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Je(this,e,o,n,i,a):S(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},e.prototype.tee=function(){if(!1===Mr(this))throw Hr("tee");var e=function(e,r){var t,o,n,i,a,s=D(e),l=!1,c=!1,d=!1,f=w(function(e){a=e});function _(){return!0===l?g(void 0):(l=!0,C(P(K(s),function(e){if(l=!1,!0===e.done)return!1===c&&rr(n._readableStreamController),void(!1===d&&rr(i._readableStreamController));var r=e.value,t=r,o=r;!1===c&&tr(n._readableStreamController,t),!1===d&&tr(i._readableStreamController,o)})),g(void 0))}function h(){}return n=Fr(h,_,function(r){if(c=!0,t=r,!0===d){var n=u([t,o]),i=Dr(e,n);a(i)}return f}),i=Fr(h,_,function(r){if(d=!0,o=r,!0===c){var n=u([t,o]),i=Dr(e,n);a(i)}return f}),E(s._closedPromise,function(e){or(n._readableStreamController,e),or(i._readableStreamController,e)}),[n,i]}(this);return u(e)},e.prototype.getIterator=function(e){var r=(void 0===e?{}:e).preventCancel,t=void 0!==r&&r;if(!1===Mr(this))throw Hr("getIterator");return function(e,r){void 0===r&&(r=!1);var t=D(e),o=Object.create(Z);return o._asyncIteratorReader=t,o._preventCancel=Boolean(r),o}(this,t)},e}();function Fr(e,r,t,o,n){void 0===o&&(o=1),void 0===n&&(n=function(){return 1});var i=Object.create(Ir.prototype);return Lr(i),ar(i,Object.create(Ke.prototype),e,r,t,o,n),i}function Lr(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function Mr(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")}function xr(e){return void 0!==e._reader}function Dr(e,r){return e._disturbed=!0,"closed"===e._state?g(void 0):"errored"===e._state?S(e._storedError):(Nr(e),P(e._readableStreamController[M](r),t))}function Nr(e){e._state="closed";var r=e._reader;void 0!==r&&(J(r)&&(r._readRequests.forEach(function(e){e._resolve(O(void 0,!0,r._forAuthorCode))}),r._readRequests=new A),L(r))}function Yr(e,r){e._state="errored",e._storedError=r;var t=e._reader;void 0!==t&&(J(t)?(t._readRequests.forEach(function(e){e._reject(r)}),t._readRequests=new A):(t._readIntoRequests.forEach(function(e){e._reject(r)}),t._readIntoRequests=new A),F(t,r))}function Hr(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}"symbol"==typeof r.asyncIterator&&Object.defineProperty(Ir.prototype,r.asyncIterator,{value:Ir.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var Ur=function(){function e(e){var r=e.highWaterMark;this.highWaterMark=r}return e.prototype.size=function(e){return e.byteLength},e}(),Vr=function(){function e(e){var r=e.highWaterMark;this.highWaterMark=r}return e.prototype.size=function(){return 1},e}(),Qr=function(){function e(e,r,t){void 0===e&&(e={}),void 0===r&&(r={}),void 0===t&&(t={});var o=r.size,n=r.highWaterMark,i=t.size,a=t.highWaterMark;if(void 0!==e.writableType)throw new RangeError("Invalid writable type specified");var u=b(o);if(void 0===n&&(n=1),n=h(n),void 0!==e.readableType)throw new RangeError("Invalid readable type specified");var s,l=b(i);void 0===a&&(a=0),a=h(a),function(e,r,t,o,n,i){function a(){return r}e._writable=function(e,r,t,o,n,i){void 0===n&&(n=1),void 0===i&&(i=function(){return 1});var a=Object.create(ae.prototype);return se(a),Ee(a,Object.create(qe.prototype),e,r,t,o,n,i),a}(a,function(r){return function(e,r){var t=e._transformStreamController;if(!0===e._backpressure){var o=e._backpressureChangePromise;return P(o,function(){var o=e._writable,n=o._state;if("erroring"===n)throw o._storedError;return tt(t,r)})}return tt(t,r)}(e,r)},function(){return function(e){var r=e._readable,t=e._transformStreamController,o=t._flushAlgorithm();return et(t),P(o,function(){if("errored"===r._state)throw r._storedError;var e=r._readableStreamController;!0===ir(e)&&rr(e)},function(t){throw Jr(e,t),r._storedError})}(e)},function(r){return function(e,r){return Jr(e,r),g(void 0)}(e,r)},t,o),e._readable=Fr(a,function(){return function(e){return Xr(e,!1),e._backpressureChangePromise}(e)},function(r){return Kr(e,r),g(void 0)},n,i),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,Xr(e,!0),e._transformStreamController=void 0}(this,w(function(e){s=e}),n,u,a,l),function(e,r){var t=Object.create(Zr.prototype),o=function(e){try{return rt(t,e),g(void 0)}catch(e){return S(e)}},n=r.transform;if(void 0!==n){if("function"!=typeof n)throw new TypeError("transform is not a method");o=function(e){return f(n,r,[e,t])}}var i=c(r,"flush",0,[t]);!function(e,r,t,o){r._controlledTransformStream=e,e._transformStreamController=r,r._transformAlgorithm=t,r._flushAlgorithm=o}(e,t,o,i)}(this,e);var _=d(e,"start",[this._transformStreamController]);s(_)}return Object.defineProperty(e.prototype,"readable",{get:function(){if(!1===Gr(this))throw nt("readable");return this._readable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"writable",{get:function(){if(!1===Gr(this))throw nt("writable");return this._writable},enumerable:!0,configurable:!0}),e}();function Gr(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}function Jr(e,r){or(e._readable._readableStreamController,r),Kr(e,r)}function Kr(e,r){et(e._transformStreamController),Oe(e._writable._writableStreamController,r),!0===e._backpressure&&Xr(e,!1)}function Xr(e,r){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=w(function(r){e._backpressureChangePromise_resolve=r}),e._backpressure=r}var Zr=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===$r(this))throw ot("desiredSize");return nr(this._controlledTransformStream._readable._readableStreamController)},enumerable:!0,configurable:!0}),e.prototype.enqueue=function(e){if(!1===$r(this))throw ot("enqueue");rt(this,e)},e.prototype.error=function(e){if(!1===$r(this))throw ot("error");var r;r=e,Jr(this._controlledTransformStream,r)},e.prototype.terminate=function(){if(!1===$r(this))throw ot("terminate");!function(e){var r=e._controlledTransformStream,t=r._readable._readableStreamController;!0===ir(t)&&rr(t);var o=new TypeError("TransformStream terminated");Kr(r,o)}(this)},e}();function $r(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}function et(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function rt(e,r){var t=e._controlledTransformStream,o=t._readable._readableStreamController;if(!1===ir(o))throw new TypeError("Readable side is not in a state that permits enqueue");try{tr(o,r)}catch(e){throw Kr(t,e),t._readable._storedError}(function(e){return!0!==$e(e)})(o)!==t._backpressure&&Xr(t,!0)}function tt(e,r){return P(e._transformAlgorithm(r),void 0,function(r){throw Jr(e._controlledTransformStream,r),r})}function ot(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function nt(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}var it=Object.assign||function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];for(var o=Object(e),n=0,i=r;n<i.length;n++){var a=i[n];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(o[u]=a[u])}return o};void 0!==o&&it(o,{ReadableStream:Ir,WritableStream:ae,ByteLengthQueuingStrategy:Ur,CountQueuingStrategy:Vr,TransformStream:Qr}),e.ByteLengthQueuingStrategy=Ur,e.CountQueuingStrategy=Vr,e.ReadableStream=Ir,e.TransformStream=Qr,e.WritableStream=ae,Object.defineProperty(e,"__esModule",{value:!0})});
  //# sourceMappingURL=polyfill.min.js.map
  