@blackglory/observe 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -5
- package/dist/es2015/index.min.mjs +1 -1
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +1685 -6253
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +1685 -6253
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +1 -1
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +1 -1
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +1685 -6253
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +1685 -6253
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +1 -1
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/observe-addtion-of-descendant-nodes.js +2 -5
- package/lib/es2015/observe-addtion-of-descendant-nodes.js.map +1 -1
- package/lib/es2015/observe-removal-of-descendant-nodes.js +2 -5
- package/lib/es2015/observe-removal-of-descendant-nodes.js.map +1 -1
- package/lib/es2018/observe-addtion-of-descendant-nodes.js +2 -5
- package/lib/es2018/observe-addtion-of-descendant-nodes.js.map +1 -1
- package/lib/es2018/observe-removal-of-descendant-nodes.js +2 -5
- package/lib/es2018/observe-removal-of-descendant-nodes.js.map +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
A module for observing things happening.
|
|
3
3
|
|
|
4
4
|
## Install
|
|
5
|
-
|
|
6
5
|
```sh
|
|
7
6
|
npm install --save @blackglory/observe
|
|
8
7
|
# or
|
|
@@ -10,8 +9,22 @@ yarn add @blackglory/observe
|
|
|
10
9
|
```
|
|
11
10
|
|
|
12
11
|
## API
|
|
12
|
+
### observeUrlChanges
|
|
13
|
+
```ts
|
|
14
|
+
function observeUrlChanges(): Observable<void>
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### observeStateChanges
|
|
18
|
+
```ts
|
|
19
|
+
function observeStateChanges(): Observable<void>
|
|
20
|
+
```
|
|
13
21
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
22
|
+
### observeAdditionOfDescendantNodes
|
|
23
|
+
```ts
|
|
24
|
+
function observeAdditionOfDescendantNodes(node: Node): Observable<Node[]>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### observeRemovalOfDescendantNodes
|
|
28
|
+
```ts
|
|
29
|
+
function observeRemovalOfDescendantNodes(node: Node): Observable<Node[]>
|
|
30
|
+
```
|
|
@@ -12,5 +12,5 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
12
12
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
13
|
PERFORMANCE OF THIS SOFTWARE.
|
|
14
14
|
***************************************************************************** */
|
|
15
|
-
var t=function(n,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(n,e)};function n(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function e(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))}function r(t,n){var e,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(t,a)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function o(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function i(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,i=e.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return a}function a(t,n,e){if(e||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))}function c(t){return this instanceof c?(this.v=t,this):new c(t)}function u(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||u(t,n)}))})}function u(t,n){try{(e=o[t](n)).value instanceof c?Promise.resolve(e.value.v).then(s,l):f(i[0][2],e)}catch(t){f(i[0][3],t)}var e}function s(t){u("next",t)}function l(t){u("throw",t)}function f(t,n){t(n),i.shift(),i.length&&u(i[0][0],i[0][1])}}function s(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=o(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}}function l(t){return"function"==typeof t}function f(t){var n=t((function(t){Error.call(t),t.stack=(new Error).stack}));return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var y=f((function(t){return function(n){t(this),this.message=n?n.length+" errors occurred during unsubscription:\n"+n.map((function(t,n){return n+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=n}}));function d(t,n){if(t){var e=t.indexOf(n);0<=e&&t.splice(e,1)}}var h=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var n;return t.prototype.unsubscribe=function(){var t,n,e,r,c;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var s=o(u),f=s.next();!f.done;f=s.next()){f.value.remove(this)}}catch(n){t={error:n}}finally{try{f&&!f.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}else u.remove(this);var d=this.initialTeardown;if(l(d))try{d()}catch(t){c=t instanceof y?t.errors:[t]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var v=o(h),p=v.next();!p.done;p=v.next()){var m=p.value;try{b(m)}catch(t){c=null!=c?c:[],t instanceof y?c=a(a([],i(c)),i(t.errors)):c.push(t)}}}catch(t){e={error:t}}finally{try{p&&!p.done&&(r=v.return)&&r.call(v)}finally{if(e)throw e.error}}}if(c)throw new y(c)}},t.prototype.add=function(n){var e;if(n&&n!==this)if(this.closed)b(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}},t.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},t.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},t.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&d(n,t)},t.prototype.remove=function(n){var e=this._finalizers;e&&d(e,n),n instanceof t&&n._removeParent(this)},t.EMPTY=((n=new t).closed=!0,n),t}(),v=h.EMPTY;function p(t){return t instanceof h||t&&"closed"in t&&l(t.remove)&&l(t.add)&&l(t.unsubscribe)}function b(t){l(t)?t():t.unsubscribe()}var m={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},w=function(t,n){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,a([t,n],i(e)))};function A(t){w((function(){throw t}))}function g(){}function _(t){t()}var I=function(t){function e(n){var e=t.call(this)||this;return e.isStopped=!1,n?(e.destination=n,p(n)&&n.add(e)):e.destination=P,e}return n(e,t),e.create=function(t,n,e){return new T(t,n,e)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(h),S=Function.prototype.bind;function O(t,n){return S.call(t,n)}var x=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(t){B(t)}},t.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(t){B(t)}else B(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){B(t)}},t}(),T=function(t){function e(n,e,r){var o,i,a=t.call(this)||this;l(n)||!n?o={next:null!=n?n:void 0,error:null!=e?e:void 0,complete:null!=r?r:void 0}:a&&m.useDeprecatedNextContext?((i=Object.create(n)).unsubscribe=function(){return a.unsubscribe()},o={next:n.next&&O(n.next,i),error:n.error&&O(n.error,i),complete:n.complete&&O(n.complete,i)}):o=n;return a.destination=new x(o),a}return n(e,t),e}(I);function B(t){A(t)}var P={closed:!0,next:g,error:function(t){throw t},complete:g},j="function"==typeof Symbol&&Symbol.observable||"@@observable";function E(t){return t}function k(t){return 0===t.length?E:1===t.length?t[0]:function(n){return t.reduce((function(t,n){return n(t)}),n)}}var C=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(n){var e=new t;return e.source=this,e.operator=n,e},t.prototype.subscribe=function(t,n,e){var r,o=this,i=(r=t)&&r instanceof I||function(t){return t&&l(t.next)&&l(t.error)&&l(t.complete)}(r)&&p(r)?t:new T(t,n,e);return _((function(){var t=o,n=t.operator,e=t.source;i.add(n?n.call(i,e):e?o._subscribe(i):o._trySubscribe(i))})),i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},t.prototype.forEach=function(t,n){var e=this;return new(n=N(n))((function(n,r){var o=new T({next:function(n){try{t(n)}catch(t){r(t),o.unsubscribe()}},error:r,complete:n});e.subscribe(o)}))},t.prototype._subscribe=function(t){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(t)},t.prototype[j]=function(){return this},t.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return k(t)(this)},t.prototype.toPromise=function(t){var n=this;return new(t=N(t))((function(t,e){var r;n.subscribe((function(t){return r=t}),(function(t){return e(t)}),(function(){return t(r)}))}))},t.create=function(n){return new t(n)},t}();function N(t){var n;return null!==(n=null!=t?t:m.Promise)&&void 0!==n?n:Promise}function q(t){return l(null==t?void 0:t.lift)}function F(t){return function(n){if(q(n))return n.lift((function(n){try{return t(n,this)}catch(t){this.error(t)}}));throw new TypeError("Unable to lift unknown Observable type")}}function D(t,n,e,r,o){return new R(t,n,e,r,o)}var R=function(t){function e(n,e,r,o,i,a){var c=t.call(this,n)||this;return c.onFinalize=i,c.shouldUnsubscribe=a,c._next=e?function(t){try{e(t)}catch(t){n.error(t)}}:t.prototype._next,c._error=o?function(t){try{o(t)}catch(t){n.error(t)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=r?function(){try{r()}catch(t){n.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,c}return n(e,t),e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var e=this.closed;t.prototype.unsubscribe.call(this),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}},e}(I);!function(t){function e(n,e){var r=t.call(this)||this;return r.source=n,r.subjectFactory=e,r._subject=null,r._refCount=0,r._connection=null,q(n)&&(r.lift=n.lift),r}n(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null,null==t||t.unsubscribe()},e.prototype.connect=function(){var t=this,n=this._connection;if(!n){n=this._connection=new h;var e=this.getSubject();n.add(this.source.subscribe(D(e,void 0,(function(){t._teardown(),e.complete()}),(function(n){t._teardown(),e.error(n)}),(function(){return t._teardown()})))),n.closed&&(this._connection=null,n=h.EMPTY)}return n},e.prototype.refCount=function(){return F((function(t,n){var e=null;t._refCount++;var r=D(n,void 0,void 0,void 0,(function(){if(!t||t._refCount<=0||0<--t._refCount)e=null;else{var r=t._connection,o=e;e=null,!r||o&&r!==o||r.unsubscribe(),n.unsubscribe()}}));t.subscribe(r),r.closed||(e=t.connect())}))(this)}}(C);var U={now:function(){return(U.delegate||performance).now()},delegate:void 0},M={schedule:function(t){var n=requestAnimationFrame,e=cancelAnimationFrame,r=n((function(n){e=void 0,t(n)}));return new h((function(){return null==e?void 0:e(r)}))},requestAnimationFrame:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=M.delegate;return((null==e?void 0:e.requestAnimationFrame)||requestAnimationFrame).apply(void 0,a([],i(t)))},cancelAnimationFrame:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return cancelAnimationFrame.apply(void 0,a([],i(t)))},delegate:void 0};function z(t){var n=M.schedule;return new C((function(e){var r=new h,o=t||U,i=o.now(),a=function(c){var u=o.now();e.next({timestamp:t?u:c,elapsed:u-i}),e.closed||r.add(n(a))};return r.add(n(a)),r}))}var V=z(),L=f((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),G=function(t){function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return n(e,t),e.prototype.lift=function(t){var n=new J(this,this);return n.operator=t,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new L},e.prototype.next=function(t){var n=this;_((function(){var e,r;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var i=o(n.currentObservers),a=i.next();!a.done;a=i.next()){a.value.next(t)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}}}))},e.prototype.error=function(t){var n=this;_((function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}}))},e.prototype.complete=function(){var t=this;_((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var n=t.observers;n.length;)n.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var n=this,e=this,r=e.hasError,o=e.isStopped,i=e.observers;return r||o?v:(this.currentObservers=null,i.push(t),new h((function(){n.currentObservers=null,d(i,t)})))},e.prototype._checkFinalizedStatuses=function(t){var n=this,e=n.hasError,r=n.thrownError,o=n.isStopped;e?t.error(r):o&&t.complete()},e.prototype.asObservable=function(){var t=new C;return t.source=this,t},e.create=function(t,n){return new J(t,n)},e}(C),J=function(t){function e(n,e){var r=t.call(this)||this;return r.destination=n,r.source=e,r}return n(e,t),e.prototype.next=function(t){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===e||e.call(n,t)},e.prototype.error=function(t){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===e||e.call(n,t)},e.prototype.complete=function(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)},e.prototype._subscribe=function(t){var n,e;return null!==(e=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==e?e:v},e}(G);!function(t){function e(n){var e=t.call(this)||this;return e._value=n,e}n(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(n){var e=t.prototype._subscribe.call(this,n);return!e.closed&&n.next(this._value),e},e.prototype.getValue=function(){var t=this,n=t.hasError,e=t.thrownError,r=t._value;if(n)throw e;return this._throwIfClosed(),r},e.prototype.next=function(n){t.prototype.next.call(this,this._value=n)}}(G);var W={now:function(){return(W.delegate||Date).now()},delegate:void 0};!function(t){function e(n,e,r){void 0===n&&(n=1/0),void 0===e&&(e=1/0),void 0===r&&(r=W);var o=t.call(this)||this;return o._bufferSize=n,o._windowTime=e,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=e===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,e),o}n(e,t),e.prototype.next=function(n){var e=this,r=e.isStopped,o=e._buffer,i=e._infiniteTimeWindow,a=e._timestampProvider,c=e._windowTime;r||(o.push(n),!i&&o.push(a.now()+c)),this._trimBuffer(),t.prototype.next.call(this,n)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(t),e=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!t.closed;o+=e?1:2)t.next(r[o]);return this._checkFinalizedStatuses(t),n},e.prototype._trimBuffer=function(){var t=this,n=t._bufferSize,e=t._timestampProvider,r=t._buffer,o=t._infiniteTimeWindow,i=(o?1:2)*n;if(n<1/0&&i<r.length&&r.splice(0,r.length-i),!o){for(var a=e.now(),c=0,u=1;u<r.length&&r[u]<=a;u+=2)c=u;c&&r.splice(0,c+1)}}}(G),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n._value=null,n._hasValue=!1,n._isComplete=!1,n}n(e,t),e.prototype._checkFinalizedStatuses=function(t){var n=this,e=n.hasError,r=n._hasValue,o=n._value,i=n.thrownError,a=n.isStopped,c=n._isComplete;e?t.error(i):(a||c)&&(r&&t.next(o),t.complete())},e.prototype.next=function(t){this.isStopped||(this._value=t,this._hasValue=!0)},e.prototype.complete=function(){var n=this,e=n._hasValue,r=n._value;n._isComplete||(this._isComplete=!0,e&&t.prototype.next.call(this,r),t.prototype.complete.call(this))}}(G);var Z,Y=function(t){function e(n,e){return t.call(this)||this}return n(e,t),e.prototype.schedule=function(t,n){return this},e}(h),H=function(t,n){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setInterval.apply(void 0,a([t,n],i(e)))},X=function(t){return clearInterval(t)},K=function(t){function e(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r.pending=!1,r}return n(e,t),e.prototype.schedule=function(t,n){if(void 0===n&&(n=0),this.closed)return this;this.state=t;var e=this.id,r=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(r,e,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(r,this.id,n),this},e.prototype.requestAsyncId=function(t,n,e){return void 0===e&&(e=0),H(t.flush.bind(t,this),e)},e.prototype.recycleAsyncId=function(t,n,e){if(void 0===e&&(e=0),null!=e&&this.delay===e&&!1===this.pending)return n;X(n)},e.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var e=this._execute(t,n);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,n){var e,r=!1;try{this.work(t)}catch(t){r=!0,e=t||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),e},e.prototype.unsubscribe=function(){if(!this.closed){var n=this.id,e=this.scheduler,r=e.actions;this.work=this.state=this.scheduler=null,this.pending=!1,d(r,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(Y),Q=1,$={};function tt(t){return t in $&&(delete $[t],!0)}var nt=function(t){var n=Q++;return $[n]=!0,Z||(Z=Promise.resolve()),Z.then((function(){return tt(n)&&t()})),n},et=function(t){tt(t)},rt={setImmediate:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=rt.delegate;return((null==e?void 0:e.setImmediate)||nt).apply(void 0,a([],i(t)))},clearImmediate:function(t){return et(t)},delegate:void 0},ot=function(t){function e(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r}return n(e,t),e.prototype.requestAsyncId=function(n,e,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,n,e,r):(n.actions.push(this),n._scheduled||(n._scheduled=rt.setImmediate(n.flush.bind(n,void 0))))},e.prototype.recycleAsyncId=function(n,e,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,n,e,r);n.actions.some((function(t){return t.id===e}))||(rt.clearImmediate(e),n._scheduled=void 0)},e}(K),it=function(){function t(n,e){void 0===e&&(e=t.now),this.schedulerActionCtor=n,this.now=e}return t.prototype.schedule=function(t,n,e){return void 0===n&&(n=0),new this.schedulerActionCtor(this,t).schedule(e,n)},t.now=W.now,t}(),at=function(t){function e(n,e){void 0===e&&(e=it.now);var r=t.call(this,n,e)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return n(e,t),e.prototype.flush=function(t){var n=this.actions;if(this._active)n.push(t);else{var e;this._active=!0;do{if(e=t.execute(t.state,t.delay))break}while(t=n.shift());if(this._active=!1,e){for(;t=n.shift();)t.unsubscribe();throw e}}},e}(it);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.flush=function(t){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var e,r=this.actions;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,e){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw e}},e}(at))(ot),new at(K);var ct=function(t){function e(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r}return n(e,t),e.prototype.schedule=function(n,e){return void 0===e&&(e=0),e>0?t.prototype.schedule.call(this,n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)},e.prototype.execute=function(n,e){return e>0||this.closed?t.prototype.execute.call(this,n,e):this._execute(n,e)},e.prototype.requestAsyncId=function(n,e,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?t.prototype.requestAsyncId.call(this,n,e,r):n.flush(this)},e}(K);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(at))(ct);var ut=function(t){function e(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r}return n(e,t),e.prototype.requestAsyncId=function(n,e,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,n,e,r):(n.actions.push(this),n._scheduled||(n._scheduled=M.requestAnimationFrame((function(){return n.flush(void 0)}))))},e.prototype.recycleAsyncId=function(n,e,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,n,e,r);n.actions.some((function(t){return t.id===e}))||(M.cancelAnimationFrame(e),n._scheduled=void 0)},e}(K);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.flush=function(t){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var e,r=this.actions;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,e){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw e}},e}(at))(ut),function(t){function e(n,e){void 0===n&&(n=st),void 0===e&&(e=1/0);var r=t.call(this,n,(function(){return r.frame}))||this;return r.maxFrames=e,r.frame=0,r.index=-1,r}n(e,t),e.prototype.flush=function(){for(var t,n,e=this.actions,r=this.maxFrames;(n=e[0])&&n.delay<=r&&(e.shift(),this.frame=n.delay,!(t=n.execute(n.state,n.delay))););if(t){for(;n=e.shift();)n.unsubscribe();throw t}},e.frameTimeFactor=10}(at);var st=function(t){function e(n,e,r){void 0===r&&(r=n.index+=1);var o=t.call(this,n,e)||this;return o.scheduler=n,o.work=e,o.index=r,o.active=!0,o.index=n.index=r,o}return n(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var o=new e(this.scheduler,this.work);return this.add(o),o.schedule(n,r)}return h.EMPTY},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var o=t.actions;return o.push(this),o.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,n,e){},e.prototype._execute=function(n,e){if(!0===this.active)return t.prototype._execute.call(this,n,e)},e.sortActions=function(t,n){return t.delay===n.delay?t.index===n.index?0:t.index>n.index?1:-1:t.delay>n.delay?1:-1},e}(K),lt=new C((function(t){return t.complete()}));function ft(t){return t[t.length-1]}function yt(t){return(n=ft(t))&&l(n.schedule)?t.pop():void 0;var n}function dt(t,n){return"number"==typeof ft(t)?t.pop():n}var ht=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function vt(t){return l(null==t?void 0:t.then)}function pt(t){return l(t[j])}function bt(t){return Symbol.asyncIterator&&l(null==t?void 0:t[Symbol.asyncIterator])}function mt(t){return new TypeError("You provided "+(null!==t&&"object"==typeof t?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var wt,At="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function gt(t){return l(null==t?void 0:t[At])}function _t(t){return u(this,arguments,(function(){var n,e,o;return r(this,(function(r){switch(r.label){case 0:n=t.getReader(),r.label=1;case 1:r.trys.push([1,,9,10]),r.label=2;case 2:return[4,c(n.read())];case 3:return e=r.sent(),o=e.value,e.done?[4,c(void 0)]:[3,5];case 4:return[2,r.sent()];case 5:return[4,c(o)];case 6:return[4,r.sent()];case 7:return r.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}}))}))}function It(t){return l(null==t?void 0:t.getReader)}function St(t){if(t instanceof C)return t;if(null!=t){if(pt(t))return n=t,new C((function(t){var e=n[j]();if(l(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(ht(t))return function(t){return new C((function(n){for(var e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()}))}(t);if(vt(t))return function(t){return new C((function(n){t.then((function(t){n.closed||(n.next(t),n.complete())}),(function(t){return n.error(t)})).then(null,A)}))}(t);if(bt(t))return Ot(t);if(gt(t))return function(t){return new C((function(n){var e,r;try{for(var i=o(t),a=i.next();!a.done;a=i.next()){var c=a.value;if(n.next(c),n.closed)return}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}n.complete()}))}(t);if(It(t))return Ot(_t(t))}var n;throw mt(t)}function Ot(t){return new C((function(n){(function(t,n){var o,i,a,c;return e(this,void 0,void 0,(function(){var e,u;return r(this,(function(r){switch(r.label){case 0:r.trys.push([0,5,6,11]),o=s(t),r.label=1;case 1:return[4,o.next()];case 2:if((i=r.sent()).done)return[3,4];if(e=i.value,n.next(e),n.closed)return[2];r.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=r.sent(),a={error:u},[3,11];case 6:return r.trys.push([6,,9,10]),i&&!i.done&&(c=o.return)?[4,c.call(o)]:[3,8];case 7:r.sent(),r.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return n.complete(),[2]}}))}))})(t,n).catch((function(t){return n.error(t)}))}))}function xt(t,n,e,r,o){void 0===r&&(r=0),void 0===o&&(o=!1);var i=n.schedule((function(){e(),o?t.add(this.schedule(null,r)):this.unsubscribe()}),r);if(t.add(i),!o)return i}function Tt(t,n){return void 0===n&&(n=0),F((function(e,r){e.subscribe(D(r,(function(e){return xt(r,t,(function(){return r.next(e)}),n)}),(function(){return xt(r,t,(function(){return r.complete()}),n)}),(function(e){return xt(r,t,(function(){return r.error(e)}),n)})))}))}function Bt(t,n){return void 0===n&&(n=0),F((function(e,r){r.add(t.schedule((function(){return e.subscribe(r)}),n))}))}function Pt(t,n){if(!t)throw new Error("Iterable cannot be null");return new C((function(e){xt(e,n,(function(){var r=t[Symbol.asyncIterator]();xt(e,n,(function(){r.next().then((function(t){t.done?e.complete():e.next(t.value)}))}),0,!0)}))}))}function jt(t,n){if(null!=t){if(pt(t))return function(t,n){return St(t).pipe(Bt(n),Tt(n))}(t,n);if(ht(t))return function(t,n){return new C((function(e){var r=0;return n.schedule((function(){r===t.length?e.complete():(e.next(t[r++]),e.closed||this.schedule())}))}))}(t,n);if(vt(t))return function(t,n){return St(t).pipe(Bt(n),Tt(n))}(t,n);if(bt(t))return Pt(t,n);if(gt(t))return function(t,n){return new C((function(e){var r;return xt(e,n,(function(){r=t[At](),xt(e,n,(function(){var t,n,o;try{n=(t=r.next()).value,o=t.done}catch(t){return void e.error(t)}o?e.complete():e.next(n)}),0,!0)})),function(){return l(null==r?void 0:r.return)&&r.return()}}))}(t,n);if(It(t))return function(t,n){return Pt(_t(t),n)}(t,n)}throw mt(t)}function Et(t,n){return n?jt(t,n):St(t)}function kt(t,n){return F((function(e,r){var o=0;e.subscribe(D(r,(function(e){r.next(t.call(n,e,o++))})))}))}!function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(wt||(wt={})),f((function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})),f((function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),f((function(t){return function(n){t(this),this.name="NotFoundError",this.message=n}})),f((function(t){return function(n){t(this),this.name="SequenceError",this.message=n}})),f((function(t){return function(n){void 0===n&&(n=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n}}));var Ct=Array.isArray;function Nt(t){return kt((function(n){return function(t,n){return Ct(n)?t.apply(void 0,a([],i(n))):t(n)}(t,n)}))}function qt(t,n,e){return void 0===e&&(e=1/0),l(n)?qt((function(e,r){return kt((function(t,o){return n(e,t,r,o)}))(St(t(e,r)))}),e):("number"==typeof n&&(e=n),F((function(n,r){return function(t,n,e,r,o,i,a,c){var u=[],s=0,l=0,f=!1,y=function(){!f||u.length||s||n.complete()},d=function(t){return s<r?h(t):u.push(t)},h=function(t){i&&n.next(t),s++;var c=!1;St(e(t,l++)).subscribe(D(n,(function(t){null==o||o(t),i?d(t):n.next(t)}),(function(){c=!0}),void 0,(function(){if(c)try{s--;for(var t=function(){var t=u.shift();a?xt(n,a,(function(){return h(t)})):h(t)};u.length&&s<r;)t();y()}catch(t){n.error(t)}})))};return t.subscribe(D(n,d,(function(){f=!0,y()}))),function(){null==c||c()}}(n,r,t,e)})))}function Ft(t){return void 0===t&&(t=1/0),qt(E,t)}var Dt=["addListener","removeListener"],Rt=["addEventListener","removeEventListener"],Ut=["on","off"];function Mt(t,n,e,r){if(l(e)&&(r=e,e=void 0),r)return Mt(t,n,e).pipe(Nt(r));var o=i(function(t){return l(t.addEventListener)&&l(t.removeEventListener)}(t)?Rt.map((function(r){return function(o){return t[r](n,o,e)}})):function(t){return l(t.addListener)&&l(t.removeListener)}(t)?Dt.map(zt(t,n)):function(t){return l(t.on)&&l(t.off)}(t)?Ut.map(zt(t,n)):[],2),a=o[0],c=o[1];if(!a&&ht(t))return qt((function(t){return Mt(t,n,e)}))(St(t));if(!a)throw new TypeError("Invalid event target");return new C((function(t){var n=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return t.next(1<n.length?n:n[0])};return a(n),function(){return c(n)}}))}function zt(t,n){return function(e){return function(r){return t[e](n,r)}}}function Vt(t,n){return F((function(e,r){var o=0;e.subscribe(D(r,(function(e){return t.call(n,e,o++)&&r.next(e)})))}))}function Lt(...t){return new C((n=>{const e=new MutationObserver((t=>n.next(t)));return e.observe(...t),()=>e.disconnect()}))}new C(g);var Gt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Jt={},Wt={},Zt={};Zt.mixinDecorators=void 0,Zt.mixinDecorators=function(t,n){for(const e of n)for(const n of Object.getOwnPropertyNames(e.prototype)){if("constructor"===n)continue;const r=Object.getOwnPropertyDescriptor(e.prototype,n);Object.defineProperty(t.prototype,n,r)}};var Yt={},Ht={Subject:void 0};Ht.Subject=class{constructor(t){this.subject=t}},Yt.IterableOperatorBase=void 0;const Xt=Ht;class Kt extends Xt.Subject{[Symbol.iterator](){return this.subject[Symbol.iterator]()}}Yt.IterableOperatorBase=Kt;var Qt={},$t={},tn={},nn={AsyncIterableOperatorBase:void 0};const en=Ht;class rn extends en.Subject{[Symbol.asyncIterator](){return this.subject[Symbol.asyncIterator]()}}nn.AsyncIterableOperatorBase=rn;var on={},an={},cn={},un={};un.go=void 0,un.go=function(t){return t()};var sn={};sn.goMicrotask=void 0,sn.goMicrotask=function(t){return new Promise(((n,e)=>{queueMicrotask((async()=>{try{n(await t())}catch(t){e(t)}}))}))};var ln={},fn={},yn={},dn={},hn={};hn.random=void 0,hn.random=function(t,n){return Math.random()*(n-t)+t};var vn={};vn.randomInt=void 0,vn.randomInt=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t))+t};var pn,bn,mn,wn={};wn.randomIntInclusive=void 0,wn.randomIntInclusive=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t+1))+t},pn=dn,bn=Gt&&Gt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),(mn=Gt&&Gt.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||bn(n,t,e)})(hn,pn),mn(vn,pn),mn(wn,pn),yn.calculateExponentialBackoffTimeout=void 0;const An=dn;yn.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:n,maxTimeout:e=1/0,factor:r=2,jitter:o=!0}){const i=Math.min(r**n*t,e);return o?(0,An.randomIntInclusive)(0,i):i};var gn={};gn.setTimeout=void 0,gn.setTimeout=function(t,n){const e=globalThis.setTimeout(n,t);return()=>clearTimeout(e)};var _n={setSchedule:void 0};const In=gn;_n.setSchedule=function(t,n){const e=t-Date.now();return(0,In.setTimeout)(e,n)};var Sn={};Sn.setInterval=void 0,Sn.setInterval=function(t,n){const e=globalThis.setInterval(n,t);return()=>clearInterval(e)};var On={setImmediate:void 0};const xn=gn;On.setImmediate=function(t){if(globalThis.setImmediate){const n=globalThis.setImmediate(t);return()=>clearImmediate(n)}return(0,xn.setTimeout)(0,t)};var Tn={setTimeoutLoop:void 0};const Bn=gn;Tn.setTimeoutLoop=function(t,n){let e=!1,r=(0,Bn.setTimeout)(t,(async function o(){await n(),e||(r=(0,Bn.setTimeout)(t,o))}));return()=>{e=!0,r()}};var Pn={setDynamicTimeoutLoop:void 0};const jn=gn;Pn.setDynamicTimeoutLoop=function(t,n){let e=!1,r=(0,jn.setTimeout)(t,(async function o(){const i=Date.now();await n();const a=Date.now()-i;e||(r=(0,jn.setTimeout)(Math.max(t-a,0),o))}));return()=>{e=!0,r()}},function(t){var n=Gt&&Gt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Gt&&Gt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(yn,t),e(gn,t),e(_n,t),e(Sn,t),e(On,t),e(Tn,t),e(Pn,t)}(fn),ln.goMacrotask=void 0;const En=fn;ln.goMacrotask=function(t){return new Promise(((n,e)=>{(0,En.setImmediate)((async()=>{try{n(await t())}catch(t){e(t)}}))}))},function(t){var n=Gt&&Gt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Gt&&Gt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(un,t),e(sn,t),e(ln,t)}(cn);var kn,Cn={},Nn={},qn={},Fn={},Dn={};var Rn={},Un={},Mn={};function zn(t){return Array.isArray(t)}Mn.isntEmptyArray=Mn.isEmptyArray=Mn.isntArray=Mn.isArray=void 0,Mn.isArray=zn,Mn.isntArray=function(t){return!zn(t)},Mn.isEmptyArray=function(t){return 0===t.length},Mn.isntEmptyArray=function(t){return 0!==t.length};var Vn={},Ln={};function Gn(t){return null===t}Ln.isntNull=Ln.isNull=void 0,Ln.isNull=Gn,Ln.isntNull=function(t){return!Gn(t)};var Jn={};function Wn(t){return void 0===t}Jn.isntUndefined=Jn.isUndefined=void 0,Jn.isUndefined=Wn,Jn.isntUndefined=function(t){return!Wn(t)};var Zn={};function Yn(t){return"function"==typeof t}Zn.isntFunction=Zn.isFunction=void 0,Zn.isFunction=Yn,Zn.isntFunction=function(t){return!Yn(t)},Vn.isntAsyncIterable=Vn.isAsyncIterable=void 0;const Hn=Ln,Xn=Jn,Kn=Zn;function Qn(t){return(0,Hn.isntNull)(t)&&(0,Xn.isntUndefined)(t)&&(0,Kn.isFunction)(t[Symbol.asyncIterator])}Vn.isAsyncIterable=Qn,Vn.isntAsyncIterable=function(t){return!Qn(t)};var $n={};function te(t){return"bigint"==typeof t}$n.isntBigInt=$n.isBigInt=void 0,$n.isBigInt=te,$n.isntBigInt=function(t){return!te(t)};var ne={};function ee(t){return"boolean"==typeof t}ne.isntBoolean=ne.isBoolean=void 0,ne.isBoolean=ee,ne.isntBoolean=function(t){return!ee(t)};var re={},oe={};function ie(t){return"string"==typeof t}oe.isntString=oe.isString=void 0,oe.isString=ie,oe.isntString=function(t){return!ie(t)},re.isntChar=re.isChar=void 0;const ae=oe;function ce(t){return(0,ae.isString)(t)&&1===t.length}re.isChar=ce,re.isntChar=function(t){return!ce(t)};var ue={};function se(t){return t instanceof Date}ue.isntDate=ue.isDate=void 0,ue.isDate=se,ue.isntDate=function(t){return!se(t)};var le={};le.inEnum=void 0,le.inEnum=function(t,n){return Object.values(n).includes(t)};var fe={};function ye(t){return t instanceof Error}fe.isntError=fe.isError=void 0,fe.isError=ye,fe.isntError=function(t){return!ye(t)};var de={};function he(t){return!t}de.isntFalsy=de.isFalsy=void 0,de.isFalsy=he,de.isntFalsy=function(t){return!he(t)};var ve={};ve.isntIterable=ve.isIterable=void 0;const pe=Ln,be=Jn,me=Zn;function we(t){return(0,pe.isntNull)(t)&&(0,be.isntUndefined)(t)&&(0,me.isFunction)(t[Symbol.iterator])}ve.isIterable=we,ve.isntIterable=function(t){return!we(t)};var Ae={},ge={};function _e(t){return"number"==typeof t}function Ie(t){return Number.isNaN(t)}ge.isntNaN=ge.isNaN=ge.isNegativeInfinity=ge.isPositiveInfinity=ge.isFinite=ge.isntNumber=ge.isNumber=void 0,ge.isNumber=_e,ge.isntNumber=function(t){return!_e(t)},ge.isFinite=function(t){return Number.isFinite(t)},ge.isPositiveInfinity=function(t){return t===1/0},ge.isNegativeInfinity=function(t){return t===-1/0},ge.isNaN=Ie,ge.isntNaN=function(t){return!Ie(t)};var Se={},Oe="object"==typeof Gt&&Gt&&Gt.Object===Object&&Gt,xe="object"==typeof self&&self&&self.Object===Object&&self,Te=(Oe||xe||Function("return this")()).Symbol,Be=Te,Pe=Object.prototype,je=Pe.hasOwnProperty,Ee=Pe.toString,ke=Be?Be.toStringTag:void 0;var Ce=function(t){var n=je.call(t,ke),e=t[ke];try{t[ke]=void 0;var r=!0}catch(t){}var o=Ee.call(t);return r&&(n?t[ke]=e:delete t[ke]),o},Ne=Object.prototype.toString;var qe=Ce,Fe=function(t){return Ne.call(t)},De=Te?Te.toStringTag:void 0;var Re=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":De&&De in Object(t)?qe(t):Fe(t)};var Ue=function(t,n){return function(e){return t(n(e))}}(Object.getPrototypeOf,Object);var Me=Re,ze=Ue,Ve=function(t){return null!=t&&"object"==typeof t},Le=Function.prototype,Ge=Object.prototype,Je=Le.toString,We=Ge.hasOwnProperty,Ze=Je.call(Object);var Ye=function(t){if(!Ve(t)||"[object Object]"!=Me(t))return!1;var n=ze(t);if(null===n)return!0;var e=We.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Je.call(e)==Ze},He=Gt&&Gt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Se.isntEmptyObject=Se.isEmptyObject=Se.isntPlainObject=Se.isPlainObject=Se.isntObject=Se.isObject=void 0;const Xe=He(Ye);function Ke(t){return null!==t&&"object"==typeof t}function Qe(t){return(0,Xe.default)(t)}Se.isObject=Ke,Se.isntObject=function(t){return!Ke(t)},Se.isPlainObject=Qe,Se.isntPlainObject=function(t){return!Qe(t)},Se.isEmptyObject=function(t){return 0===Object.keys(t).length},Se.isntEmptyObject=function(t){return 0!==Object.keys(t).length},Ae.isntJsonable=Ae.isJsonable=Ae.isntJson=Ae.isJson=void 0;const $e=Ln,tr=ne,nr=oe,er=ge,rr=Mn,or=Se;function ir(t){return(0,$e.isNull)(t)||(0,tr.isBoolean)(t)||(0,nr.isString)(t)||(0,er.isNumber)(t)||(0,rr.isArray)(t)&&t.every(ir)||(0,or.isPlainObject)(t)&&Object.values(t).every(ir)}Ae.isJson=ir,Ae.isntJson=function(t){return!ir(t)},Ae.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},Ae.isntJsonable=function t(n){return!t()};var ar={};ar.isPromiseLike=ar.isntPromiseLike=ar.isntPromise=ar.isPromise=void 0;const cr=Se,ur=Zn;function sr(t){return t instanceof Promise}function lr(t){return(0,cr.isObject)(t)&&(0,ur.isFunction)(t.then)}ar.isPromise=sr,ar.isntPromise=function(t){return!sr(t)},ar.isntPromiseLike=function(t){return!lr(t)},ar.isPromiseLike=lr;var fr={};fr.isAbsoluteURL=void 0,fr.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}};var yr={};function dr(t){return t instanceof RegExp}yr.isntRegExp=yr.isRegExp=void 0,yr.isRegExp=dr,yr.isntRegExp=function(t){return!dr(t)},function(t){var n=Gt&&Gt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Gt&&Gt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(Mn,t),e(Vn,t),e($n,t),e(ne,t),e(re,t),e(ue,t),e(le,t),e(fe,t),e(de,t),e(Zn,t),e(ve,t),e(Ae,t),e(Ln,t),e(ge,t),e(Se,t),e(ar,t),e(oe,t),e(Jn,t),e(fr,t),e(yr,t)}(Un),Rn.chunkByAsync=void 0;const hr=Un;Rn.chunkByAsync=function(t,n){return(0,hr.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n)};var vr={};vr.chunkBy=void 0,vr.chunkBy=function*(t,n){let e=[],r=0;for(const o of t)e.push(o),n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)};var pr,br={};var mr={concatAsync:void 0};const wr=Un,Ar=cn;mr.concatAsync=function(t,...n){return(0,Ar.go)((async function*(){for(const e of[t,...n])if((0,wr.isAsyncIterable)(e))for await(const t of e)yield t;else for(const t of e)yield t}))};var gr={concat:void 0};const _r=cn;gr.concat=function(t,...n){return(0,_r.go)((function*(){for(const e of[t,...n])yield*e}))};var Ir,Sr={},Or={};Or.copyIterable=Or.copyAsyncIterable=void 0,Or.copyAsyncIterable=async function*(t){for await(const n of t)yield n},Or.copyIterable=function*(t){for(const n of t)yield n};var xr,Tr={};var Br,Pr={};var jr={dropUntilAsync:void 0};const Er=Un;jr.dropUntilAsync=function(t,n){return(0,Er.isAsyncIterable)(t)?async function*(t,n){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}(t,n):async function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}(t,n)};var kr={};kr.dropUntil=void 0,kr.dropUntil=function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}};var Cr,Nr={};var qr={filterAsync:void 0};const Fr=Un;qr.filterAsync=function(t,n){return(0,Fr.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e)&&(yield r),e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e)&&(yield r),e++}(t,n)};var Dr={};Dr.filter=void 0,Dr.filter=function*(t,n){let e=0;for(const r of t)n(r,e)&&(yield r),e++};var Rr={},Ur={},Mr={flattenByAsync:void 0};const zr=Un;async function*Vr(t,n,e){for(const r of t)Lr(r)&&await n(r,e)?yield*Vr(r,n,e+1):yield r}function Lr(t){return(0,zr.isIterable)(t)&&(0,zr.isntChar)(t)}var Gr,Jr;function Wr(){if(Gr)return Ur;Gr=1,Ur.flattenDeepAsync=void 0;const t=Mr,n=ra();return Ur.flattenDeepAsync=function(e,r=1/0){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter depth must be an integer"),(0,n.assert)(r>=0,"The parameter depth must be greater than or equal to 0"),(0,t.flattenByAsync)(e,((t,n)=>n<=r))},Ur}Mr.flattenByAsync=function(t,n){return(0,zr.isAsyncIterable)(t)?async function*(t,n){const e=1;for await(const r of t)Lr(r)&&await n(r,e)?yield*Vr(r,n,e+1):yield r}(t,n):function(t,n){return Vr(t,n,1)}(t,n)};var Zr={flattenBy:void 0};const Yr=Un;function*Hr(t,n,e){for(const o of t)(0,Yr.isIterable)(r=o)&&(0,Yr.isntChar)(r)&&n(o,e)?yield*Hr(o,n,e+1):yield o;var r}Zr.flattenBy=function(t,n){return Hr(t,n,1)};var Xr,Kr={};function Qr(){if(Xr)return Kr;Xr=1,Kr.flattenDeep=void 0;const t=Zr,n=ra();return Kr.flattenDeep=function(e,r=1/0){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter depth must be an integer"),(0,n.assert)(r>=0,"The parameter depth must be greater than or equal to 0"),(0,t.flattenBy)(e,((t,n)=>n<=r))},Kr}var $r,to={};var no={mapAsync:void 0};const eo=Un;no.mapAsync=function(t,n){return(0,eo.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)yield await n(r,e),e++}(t,n):async function*(t,n){let e=0;for(const r of t)yield await n(r,e),e++}(t,n)};var ro={};ro.map=void 0,ro.map=function*(t,n){let e=0;for(const r of t)yield n(r,e),e++};var oo,io={};function ao(){if(oo)return io;oo=1,io.repeatAsync=void 0;const t=cn,n=ra();return io.repeatAsync=function(e,r){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter times must be an integer"),(0,n.assert)(r>=0,"The parameter times must be greater than or equal to 0"),r===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,t.go)((async function*(){const t=[];if(r>0){for await(const n of e)yield n,t.push(n);r--}for(;r>0;)yield*t,r--}))},io}var co,uo={};function so(){if(co)return uo;co=1,uo.repeat=void 0;const t=cn,n=ra();return uo.repeat=function(e,r){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter times must be an integer"),(0,n.assert)(r>=0,"The parameter times must be greater than or equal to 0"),r===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,t.go)((function*(){const t=[];if(r>0){for(const n of e)yield n,t.push(n);r--}for(;r>0;)yield*t,r--}))},uo}var lo,fo={};var yo,ho={};var vo={};vo.splitAsync=void 0,vo.splitAsync=async function*(t,n){let e=[];for await(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var po={splitByAsync:void 0};const bo=Un;po.splitByAsync=function(t,n){return(0,bo.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n)};var mo={};mo.splitBy=void 0,mo.splitBy=function*(t,n){let e=[],r=0;for(const o of t)n(o,r)?(yield e,e=[]):e.push(o),r++;yield e};var wo={};wo.split=void 0,wo.split=function*(t,n){let e=[];for(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var Ao,go={};var _o,Io={};var So,Oo={};var xo={takeUntilAsync:void 0};const To=Un;xo.takeUntilAsync=function(t,n){return(0,To.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t){if(await n(r,e))break;yield r,e++}}(t,n):async function*(t,n){let e=0;for(const r of t){if(await n(r,e))break;yield r,e++}}(t,n)};var Bo={};Bo.takeUntil=void 0,Bo.takeUntil=function*(t,n){let e=0;for(const r of t){if(n(r,e))break;yield r,e++}};var Po,jo={};var Eo={tapAsync:void 0};const ko=Un;Eo.tapAsync=function(t,n){return(0,ko.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e),yield r,e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e),yield r,e++}(t,n)};var Co={};Co.tap=void 0,Co.tap=function*(t,n){let e=0;for(const r of t)n(r,e),yield r,e++};var No={};No.toAsyncIterable=void 0,No.toAsyncIterable=async function*(t){for(const n of t)yield n};var qo={};qo.transformAsync=void 0,qo.transformAsync=async function*(t,n){yield*n(t)};var Fo={};Fo.transform=void 0,Fo.transform=function*(t,n){yield*n(t)};var Do={};Do.uniqAsync=void 0,Do.uniqAsync=async function*(t){const n=new Set;for await(const e of t)n.has(e)||(yield e,n.add(e))};var Ro={uniqByAsync:void 0};const Uo=Un;Ro.uniqByAsync=function(t,n){return(0,Uo.isAsyncIterable)(t)?async function*(t,n){const e=new Set;let r=0;for await(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n):async function*(t,n){const e=new Set;let r=0;for(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n)};var Mo={};Mo.uniqBy=void 0,Mo.uniqBy=function*(t,n){const e=new Set;let r=0;for(const o of t){const t=n(o,r);e.has(t)||(yield o,e.add(t)),r++}};var zo={};zo.uniq=void 0,zo.uniq=function*(t){const n=new Set;for(const e of t)n.has(e)||(yield e,n.add(e))};var Vo={zipAsync:void 0};const Lo=Un;var Go;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(Go||(Go={})),Vo.zipAsync=function(t,...n){return async function*(...t){var n,e,r,o;const i=t.length,a=t.map((t=>(0,Lo.isAsyncIterable)(t)?[Go.Async,t[Symbol.asyncIterator]()]:[Go.Sync,t[Symbol.iterator]()])),c=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let n=0;n<i;n++){const[e,r]=a[n];let o;if(o=e===Go.Async?await r.next():r.next(),o.done)return void(c[n]=!0);t[n]=o.value}yield t}}finally{const t=a.filter(((t,n)=>!c[n]));for(const[i,a]of t)i===Go.Async?await(null===(e=(n=a).return)||void 0===e?void 0:e.call(n)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...n)};var Jo,Wo={};function Zo(){return Jo||(Jo=1,function(t){var n=Gt&&Gt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Gt&&Gt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(function(){if(kn)return Dn;kn=1,Dn.chunkAsync=void 0;const t=cn,n=ra();return Dn.chunkAsync=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter size must be an integer"),(0,n.assert)(r>0,"The parameter size must be greater than 0"),(0,t.go)((async function*(){let t=[];for await(const n of e)t.push(n),t.length>=r&&(yield t,t=[]);t.length&&(yield t)}))},Dn}(),t),e(Rn,t),e(vr,t),e(function(){if(pr)return br;pr=1,br.chunk=void 0;const t=cn,n=ra();return br.chunk=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter size must be an integer"),(0,n.assert)(r>0,"The parameter size must be greater than 0"),(0,t.go)((function*(){let t=[];for(const n of e)t.push(n),t.length>=r&&(yield t,t=[]);t.length&&(yield t)}))},br}(),t),e(mr,t),e(gr,t),e(function(){if(Ir)return Sr;Ir=1,Sr.dropAsync=void 0;const t=cn,n=Or,e=ra();return Sr.dropAsync=function(r,o){return(0,e.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,e.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,n.copyAsyncIterable)(r):(0,t.go)((async function*(){var t;const n=r[Symbol.asyncIterator]();let e;try{let r;for(;({value:r,done:e}=await n.next()),!(e||o<=0);)o--;for(;!e;)yield r,({value:r,done:e}=await n.next())}finally{e||await(null===(t=n.return)||void 0===t?void 0:t.call(n))}}))},Sr}(),t),e(function(){if(xr)return Tr;xr=1,Tr.dropRightAsync=void 0;const t=cn,n=Or,e=ra();return Tr.dropRightAsync=function(r,o){return(0,e.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,e.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,n.copyAsyncIterable)(r):(0,t.go)((async function*(){const t=(await async function(t){const n=[];for await(const e of t)n.push(e);return n}(r)).slice(0,-o);for(const n of t)yield n}))},Tr}(),t),e(function(){if(Br)return Pr;Br=1,Pr.dropRight=void 0;const t=cn,n=Or,e=ra();return Pr.dropRight=function(r,o){return(0,e.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,e.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,n.copyIterable)(r):(0,t.go)((function*(){const t=Array.from(r);yield*t.slice(0,-o)}))},Pr}(),t),e(jr,t),e(kr,t),e(function(){if(Cr)return Nr;Cr=1,Nr.drop=void 0;const t=cn,n=Or,e=ra();return Nr.drop=function(r,o){return(0,e.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,e.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,n.copyIterable)(r):(0,t.go)((function*(){var t;const n=r[Symbol.iterator]();let e;try{let r;for(;({value:r,done:e}=n.next()),!(e||o<=0);)o--;for(;!e;)yield r,({value:r,done:e}=n.next())}finally{e||null===(t=n.return)||void 0===t||t.call(n)}}))},Nr}(),t),e(qr,t),e(Dr,t),e(function(){if(Jr)return Rr;Jr=1,Rr.flattenAsync=void 0;const t=Wr();return Rr.flattenAsync=function(n){return(0,t.flattenDeepAsync)(n,1)},Rr}(),t),e(Mr,t),e(Zr,t),e(Wr(),t),e(Qr(),t),e(function(){if($r)return to;$r=1,to.flatten=void 0;const t=Qr();return to.flatten=function(n){return(0,t.flattenDeep)(n,1)},to}(),t),e(no,t),e(ro,t),e(ao(),t),e(so(),t),e(function(){if(lo)return fo;lo=1,fo.sliceAsync=void 0;const t=cn,n=ra();return fo.sliceAsync=function(e,r,o=1/0){return(0,n.assert)(Number.isInteger(r),"The parameter start must be an integer"),(0,n.assert)(r>=0,"The parameter start must be greater than or equal to 0"),(0,n.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,n.assert)(o>=r,"The parameter end must be greater than or equal to start"),(0,t.go)((async function*(){let t=0;for await(const n of e){if(t>=o)break;t>=r&&(yield n),t++}}))},fo}(),t),e(function(){if(yo)return ho;yo=1,ho.slice=void 0;const t=cn,n=ra();return ho.slice=function(e,r,o=1/0){return(0,n.assert)(Number.isInteger(r),"The parameter start must be an integer"),(0,n.assert)(r>=0,"The parameter start must be greater than or equal to 0"),(0,n.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,n.assert)(o>=r,"The parameter end must be greater than or equal to start"),(0,t.go)((function*(){let t=0;for(const n of e){if(t>=o)break;t>=r&&(yield n),t++}}))},ho}(),t),e(vo,t),e(po,t),e(mo,t),e(wo,t),e(function(){if(Ao)return go;Ao=1,go.takeAsync=void 0;const t=cn,n=ra();return go.takeAsync=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((async function*(){if(0!==r)for await(const t of e)if(yield t,0==--r)break}))},go}(),t),e(function(){if(_o)return Io;_o=1,Io.takeRightAsync=void 0;const t=cn,n=ra();return Io.takeRightAsync=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((async function*(){var t;const n=e[Symbol.asyncIterator]();let o;try{const e=[];let i;for(;({value:i,done:o}=await n.next()),!o;)e.push(i),e.length>r&&e.shift();yield*e}finally{o||await(null===(t=n.return)||void 0===t?void 0:t.call(n))}}))},Io}(),t),e(function(){if(So)return Oo;So=1,Oo.takeRight=void 0;const t=cn,n=ra();return Oo.takeRight=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((function*(){var t;const n=e[Symbol.iterator]();let o;try{const e=[];let i;for(;({value:i,done:o}=n.next()),!o;)e.push(i),e.length>r&&e.shift();yield*e}finally{o||null===(t=n.return)||void 0===t||t.call(n)}}))},Oo}(),t),e(xo,t),e(Bo,t),e(function(){if(Po)return jo;Po=1,jo.take=void 0;const t=cn,n=ra();return jo.take=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((function*(){if(0!==r)for(const t of e)if(yield t,0==--r)break}))},jo}(),t),e(Eo,t),e(Co,t),e(No,t),e(qo,t),e(Fo,t),e(Do,t),e(Ro,t),e(Mo,t),e(zo,t),e(Vo,t),e(Wo,t)}(Fn)),Fn}Wo.zip=void 0,Wo.zip=function(t,...n){return function*(...t){const n=t.length,e=t.map((t=>t[Symbol.iterator]())),r=e.map((()=>!1));try{for(;;){const t=new Array(n);for(let o=0;o<n;o++){const{value:n,done:i}=e[o].next();if(i)return void(r[o]=!0);t[o]=n}yield t}}finally{e.filter(((t,n)=>!r[n])).forEach((t=>{var n;return null===(n=t.return)||void 0===n?void 0:n.call(t)}))}}(t,...n)};var Yo={},Ho={};Ho.consume=void 0,Ho.consume=function(t,n){return n(t)};var Xo={eachAsync:void 0};const Ko=Un;Xo.eachAsync=function(t,n){return(0,Ko.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t)await n(r,e),e++}(t,n):async function(t,n){let e=0;for(const r of t)await n(r,e),e++}(t,n)};var Qo={};Qo.each=void 0,Qo.each=function(t,n){let e=0;for(const r of t)n(r,e),e++};var $o={everyAsync:void 0};const ti=Un;$o.everyAsync=function(t,n){return(0,ti.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n):async function(t,n){let e=0;for(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n)};var ni={};ni.every=void 0,ni.every=function(t,n){let e=0;for(const r of t){if(!n(r,e))return!1;e++}return!0};var ei={findAsync:void 0};const ri=Un;ei.findAsync=function(t,n){return(0,ri.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return r;e++}return}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return r;e++}return}(t,n)};var oi={};oi.find=void 0,oi.find=function(t,n){let e=0;for(const r of t){if(n(r,e))return r;e++}};var ii={};ii.firstAsync=void 0,ii.firstAsync=async function(t){for await(const n of t)return n};var ai={};ai.first=void 0,ai.first=function(t){for(const n of t)return n};var ci={};ci.includesAsync=void 0,ci.includesAsync=async function(t,n){for await(const e of t)if(e===n)return!0;return!1};var ui={};ui.includes=void 0,ui.includes=function(t,n){for(const e of t)if(e===n)return!0;return!1};var si={};si.matchAsync=void 0,si.matchAsync=async function(t,n){const e=n.length;let r=0;for await(const o of t)if(o===n[r]&&r++,r===e)return!0;return!1};var li={};li.match=void 0,li.match=function(t,n){const e=n.length;let r=0;for(const o of t)if(o===n[r]&&r++,r===e)return!0;return!1};var fi={reduceAsync:void 0};const yi=Un;fi.reduceAsync=function(t,n,e){return(0,yi.isUndefined)(e)?function(t,n){return(0,yi.isAsyncIterable)(t)?e(t):r(t);async function e(t){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),c=1;for(;({value:t,done:o}=await r.next()),!o;)a=await n(a,t,c++);return a}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}async function i(t){const n=await t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}async function r(t){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),c=1;for(;({value:t,done:o}=r.next()),!o;)a=await n(a,t,c++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}}(t,n):function(t,n,e){return(0,yi.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=e,o=0;for(const e of t)r=await n(r,e,o++);return r}async function o(t){let r=e,o=0;for await(const e of t)r=await n(r,e,o++);return r}}(t,n,e)};var di={reduce:void 0};const hi=Un;di.reduce=function(t,n,e){return(0,hi.isUndefined)(e)?function(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),c=1;for(;({value:t,done:o}=r.next()),!o;)a=n(a,t,c++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}(t,n):function(t,n,e){let r=e,o=0;for(const e of t)r=n(r,e,o++);return r}(t,n,e)};var vi={someAsync:void 0};const pi=Un;vi.someAsync=function(t,n){return(0,pi.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n)};var bi={};bi.some=void 0,bi.some=function(t,n){let e=0;for(const r of t){if(n(r,e))return!0;e++}return!1};var mi={};mi.lastAsync=void 0,mi.lastAsync=async function(t){var n;const e=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await e.next()),!r;)o=t;return o}finally{r||await(null===(n=e.return)||void 0===n?void 0:n.call(e))}};var wi={};wi.last=void 0,wi.last=function(t){var n;const e=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=e.next()),!r;)o=t;return o}finally{r||null===(n=e.return)||void 0===n||n.call(e)}};var Ai={toArrayAsync:void 0};const gi=Ho;Ai.toArrayAsync=function(t){return(0,gi.consume)(t,(async t=>{const n=[];for await(const e of t)n.push(e);return n}))};var _i={toArray:void 0};const Ii=Ho;_i.toArray=function(t){return(0,Ii.consume)(t,(t=>Array.from(t)))};var Si={toSetAsync:void 0};const Oi=Ho;Si.toSetAsync=function(t){return(0,Oi.consume)(t,(async t=>{const n=new Set;for await(const e of t)n.add(e);return n}))};var xi={toSet:void 0};const Ti=Ho;xi.toSet=function(t){return(0,Ti.consume)(t,(t=>new Set(t)))};var Bi={};Bi.count=void 0,Bi.count=function(t){let n=0;for(const e of t)n++;return n};var Pi={};Pi.countAsync=void 0,Pi.countAsync=async function(t){let n=0;for await(const e of t)n++;return n};var ji={groupBy:void 0};const Ei=Qo;ji.groupBy=function(t,n){const e=new Map;return(0,Ei.each)(t,((t,r)=>{const o=n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e};var ki={groupByAsync:void 0};const Ci=Xo;var Ni;function qi(){return Ni||(Ni=1,function(t){var n=Gt&&Gt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Gt&&Gt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(Zo(),t),e(Yo,t)}(qn)),qn}ki.groupByAsync=async function(t,n){const e=new Map;return await(0,Ci.eachAsync)(t,(async(t,r)=>{const o=await n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e},function(t){var n=Gt&&Gt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Gt&&Gt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(Ho,t),e(Xo,t),e(Qo,t),e($o,t),e(ni,t),e(ei,t),e(oi,t),e(ii,t),e(ai,t),e(ci,t),e(ui,t),e(si,t),e(li,t),e(fi,t),e(di,t),e(vi,t),e(bi,t),e(mi,t),e(wi,t),e(Ai,t),e(_i,t),e(Si,t),e(xi,t),e(Bi,t),e(Pi,t),e(ji,t),e(ki,t)}(Yo);var Fi={},Di={};Di.traverseErrorPrototypeChain=void 0,Di.traverseErrorPrototypeChain=function*(t){let n=t;for(;(n=Object.getPrototypeOf(n))&&(yield n,n!==Error.prototype););},Fi.getErrorNames=void 0;const Ri=Un,Ui=Di;Fi.getErrorNames=function*(t){var n;if((0,Ri.isError)(t))for(const e of(0,Ui.traverseErrorPrototypeChain)(t))(null===(n=e.constructor)||void 0===n?void 0:n.name)&&(yield e.constructor.name);else yield t.name,yield*t.ancestors};var Mi={isSerializableError:void 0};const zi=Un;var Vi;function Li(){if(Vi)return Nn;Vi=1,Nn.CustomError=void 0;const t=qi(),n=Fi,e=Un,r=Mi;class o extends Error{get name(){var e,r;return null!==(r=null!==(e=(0,t.first)((0,n.getErrorNames)(this)))&&void 0!==e?e:o.name)&&void 0!==r?r:"CustomError"}static[Symbol.hasInstance](o){var i;if((0,e.isError)(o)||(0,r.isSerializableError)(o)){const e=[null!==(i=this.prototype.constructor.name)&&void 0!==i?i:this.name,...(0,n.getErrorNames)(this.prototype)].reverse(),r=(0,t.toArray)((0,n.getErrorNames)(o)).reverse();return e.every(((t,n)=>t===r[n]))}return!1}}return Nn.CustomError=o,Nn}Mi.isSerializableError=function(t){return(0,zi.isObject)(t)&&(0,zi.isString)(t.name)&&(0,zi.isString)(t.message)&&((0,zi.isString)(t.stack)||(0,zi.isNull)(t.stack))&&(0,zi.isArray)(t.ancestors)&&t.ancestors.every(zi.isString)};var Gi,Ji={};function Wi(){if(Gi)return Ji;Gi=1,Ji.AssertionError=void 0;const t=Li();class n extends t.CustomError{}return Ji.AssertionError=n,Ji}var Zi,Yi={};var Hi={},Xi={},Ki={};Ki.pass=void 0,Ki.pass=function(){},function(t){var n=Gt&&Gt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]});(Gt&&Gt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)})(Ki,t)}(Xi),Hi.hydrate=void 0;const Qi=Xi;function $i(t,n){const e=function(){(0,Qi.pass)()};return(e.prototype=Object.create(t.prototype)).constructor=e,Object.defineProperty(e,"name",{value:n}),e}Hi.hydrate=function(t){var n;const e=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of e)r=$i(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(n=t.stack)&&void 0!==n?n:void 0,o};var ta,na,ea={};function ra(){return na||(na=1,function(t){var n=Gt&&Gt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Gt&&Gt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(Li(),t),e(Wi(),t),e(Mi,t),e(function(){if(Zi)return Yi;Zi=1,Yi.normalize=void 0;const t=Fi,n=qi();return Yi.normalize=function(e){var r;const[o,...i]=(0,n.toArray)((0,t.getErrorNames)(e));return{name:o,ancestors:i,message:e.message,stack:null!==(r=e.stack)&&void 0!==r?r:null}},Yi}(),t),e(Hi,t),e(function(){if(ta)return ea;ta=1,ea.assert=void 0;const t=Wi();return ea.assert=function(n,e){if(!n)throw new t.AssertionError(e)},ea}(),t),e(Fi,t),e(Di,t)}(Cn)),Cn}var oa=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},ia=Gt&&Gt.__await||function(t){return this instanceof ia?(this.v=t,this):new ia(t)},aa=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof ia?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};an.chunkAsync=void 0;const ca=cn,ua=ra();var sa;an.chunkAsync=function(t,n){return(0,ua.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,ua.assert)(n>0,"The parameter size must be greater than 0"),(0,ca.go)((function(){return aa(this,arguments,(function*(){var e,r;let o=[];try{for(var i,a=oa(t);!(i=yield ia(a.next())).done;){const t=i.value;o.push(t),o.length>=n&&(yield yield ia(o),o=[])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=a.return)&&(yield ia(r.call(a)))}finally{if(e)throw e.error}}o.length&&(yield yield ia(o))}))}))};var la={},fa={},ya=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},da=Gt&&Gt.__await||function(t){return this instanceof da?(this.v=t,this):new da(t)},ha=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof da?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};fa.chunkByAsync=void 0;const va=Un;var pa;function ba(){if(pa)return la;pa=1,la.ChunkByAsyncOperator=void 0;const t=nf(),n=fa,e=Ht;class r extends e.Subject{chunkByAsync(...e){return(0,t.applyChainingAsync)(this.subject,n.chunkByAsync,e)}}return la.ChunkByAsyncOperator=r,la}fa.chunkByAsync=function(t,n){return(0,va.isAsyncIterable)(t)?function(t,n){return ha(this,arguments,(function*(){var e,r;let o=[],i=0;try{for(var a,c=ya(t);!(a=yield da(c.next())).done;){const t=a.value;o.push(t),(yield da(n(t,i)))&&(yield yield da(o),o=[]),i++}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=c.return)&&(yield da(r.call(c)))}finally{if(e)throw e.error}}o.length&&(yield yield da(o))}))}(t,n):function(t,n){return ha(this,arguments,(function*(){let e=[],r=0;for(const o of t)e.push(o),(yield da(n(o,r)))&&(yield yield da(e),e=[]),r++;e.length&&(yield yield da(e))}))}(t,n)};var ma={},wa={},Aa=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},ga=Gt&&Gt.__await||function(t){return this instanceof ga?(this.v=t,this):new ga(t)},_a=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof ga?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};wa.concatAsync=void 0;const Ia=Un,Sa=cn;var Oa;function xa(){if(Oa)return ma;Oa=1,ma.ConcatAsyncOperator=void 0;const t=nf(),n=wa,e=Ht;class r extends e.Subject{concatAsync(...e){return(0,t.applyChainingAsync)(this.subject,n.concatAsync,e)}}return ma.ConcatAsyncOperator=r,ma}wa.concatAsync=function(t,...n){return(0,Sa.go)((function(){return _a(this,arguments,(function*(){var e,r;for(const a of[t,...n])if((0,Ia.isAsyncIterable)(a))try{for(var o,i=(e=void 0,Aa(a));!(o=yield ga(i.next())).done;){const t=o.value;yield yield ga(t)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&(yield ga(r.call(i)))}finally{if(e)throw e.error}}else for(const t of a)yield yield ga(t)}))}))};var Ta={},Ba={},Pa={},ja=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},Ea=Gt&&Gt.__await||function(t){return this instanceof Ea?(this.v=t,this):new Ea(t)},ka=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof Ea?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};Pa.copyIterable=Pa.copyAsyncIterable=void 0,Pa.copyAsyncIterable=function(t){return ka(this,arguments,(function*(){var n,e;try{for(var r,o=ja(t);!(r=yield Ea(o.next())).done;){const t=r.value;yield yield Ea(t)}}catch(t){n={error:t}}finally{try{r&&!r.done&&(e=o.return)&&(yield Ea(e.call(o)))}finally{if(n)throw n.error}}}))},Pa.copyIterable=function*(t){for(const n of t)yield n};var Ca=Gt&&Gt.__await||function(t){return this instanceof Ca?(this.v=t,this):new Ca(t)},Na=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof Ca?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};Ba.dropAsync=void 0;const qa=cn,Fa=Pa,Da=ra();var Ra;Ba.dropAsync=function(t,n){return(0,Da.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Da.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Fa.copyAsyncIterable)(t):(0,qa.go)((function(){var e;return Na(this,arguments,(function*(){const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=yield Ca(r.next())),o||n<=0);)n--;for(;!o;)yield yield Ca(t),({value:t,done:o}=yield Ca(r.next()))}finally{o||(yield Ca(null===(e=r.return)||void 0===e?void 0:e.call(r)))}}))}))};var Ua={},Ma={},za=Gt&&Gt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},Va=Gt&&Gt.__await||function(t){return this instanceof Va?(this.v=t,this):new Va(t)},La=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof Va?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}},Ga=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};Ma.dropRightAsync=void 0;const Ja=cn,Wa=Pa,Za=ra();function Ya(t){var n,e,r,o;return za(this,void 0,void 0,(function*(){const i=[];try{for(n=Ga(t);!(e=yield n.next()).done;){const t=e.value;i.push(t)}}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=n.return)&&(yield o.call(n))}finally{if(r)throw r.error}}return i}))}var Ha;Ma.dropRightAsync=function(t,n){return(0,Za.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Za.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Wa.copyAsyncIterable)(t):(0,Ja.go)((function(){return La(this,arguments,(function*(){const e=(yield Va(Ya(t))).slice(0,-n);for(const t of e)yield yield Va(t)}))}))};var Xa={},Ka={},Qa=Gt&&Gt.__await||function(t){return this instanceof Qa?(this.v=t,this):new Qa(t)},$a=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof Qa?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};Ka.dropUntilAsync=void 0;const tc=Un;var nc;function ec(){if(nc)return Xa;nc=1,Xa.DropUntilAsyncOperator=void 0;const t=nf(),n=Ht,e=Ka;class r extends n.Subject{dropUntilAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.dropUntilAsync,n)}}return Xa.DropUntilAsyncOperator=r,Xa}Ka.dropUntilAsync=function(t,n){return(0,tc.isAsyncIterable)(t)?function(t,n){var e;return $a(this,arguments,(function*(){const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=yield Qa(r.next())),o||(yield Qa(n(t,i++)))););for(;!o;)yield yield Qa(t),({value:t,done:o}=yield Qa(r.next()))}finally{o||(yield Qa(null===(e=r.return)||void 0===e?void 0:e.call(r)))}}))}(t,n):function(t,n){var e;return $a(this,arguments,(function*(){const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||(yield Qa(n(t,i++)))););for(;!o;)yield yield Qa(t),({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))}(t,n)};var rc={},oc={},ic=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},ac=Gt&&Gt.__await||function(t){return this instanceof ac?(this.v=t,this):new ac(t)},cc=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof ac?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};oc.filterAsync=void 0;const uc=Un;var sc;function lc(){if(sc)return rc;sc=1,rc.FilterAsyncOperator=void 0;const t=nf(),n=Ht,e=oc;class r extends n.Subject{filterAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.filterAsync,n)}}return rc.FilterAsyncOperator=r,rc}oc.filterAsync=function(t,n){return(0,uc.isAsyncIterable)(t)?function(t,n){return cc(this,arguments,(function*(){var e,r;let o=0;try{for(var i,a=ic(t);!(i=yield ac(a.next())).done;){const t=i.value;(yield ac(n(t,o)))&&(yield yield ac(t)),o++}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=a.return)&&(yield ac(r.call(a)))}finally{if(e)throw e.error}}}))}(t,n):function(t,n){return cc(this,arguments,(function*(){let e=0;for(const r of t)(yield ac(n(r,e)))&&(yield yield ac(r)),e++}))}(t,n)};var fc={},yc={},dc={},hc={},vc=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},pc=Gt&&Gt.__await||function(t){return this instanceof pc?(this.v=t,this):new pc(t)},bc=Gt&&Gt.__asyncDelegator||function(t){var n,e;return n={},r("next"),r("throw",(function(t){throw t})),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,o){n[r]=t[r]?function(n){return(e=!e)?{value:pc(t[r](n)),done:"return"===r}:o?o(n):n}:o}},mc=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof pc?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};hc.flattenByAsync=void 0;const wc=Un;function Ac(t,n,e){return mc(this,arguments,(function*(){for(const r of t)gc(r)&&(yield pc(n(r,e)))?yield pc(yield*bc(vc(Ac(r,n,e+1)))):yield yield pc(r)}))}function gc(t){return(0,wc.isIterable)(t)&&(0,wc.isntChar)(t)}hc.flattenByAsync=function(t,n){return(0,wc.isAsyncIterable)(t)?function(t,n){return mc(this,arguments,(function*(){var e,r;const o=1;try{for(var i,a=vc(t);!(i=yield pc(a.next())).done;){const t=i.value;gc(t)&&(yield pc(n(t,o)))?yield pc(yield*bc(vc(Ac(t,n,o+1)))):yield yield pc(t)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=a.return)&&(yield pc(r.call(a)))}finally{if(e)throw e.error}}}))}(t,n):function(t,n){return Ac(t,n,1)}(t,n)},dc.flattenDeepAsync=void 0;const _c=hc,Ic=ra();dc.flattenDeepAsync=function(t,n=1/0){return(0,Ic.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,Ic.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,_c.flattenByAsync)(t,((t,e)=>e<=n))},yc.flattenAsync=void 0;const Sc=dc;var Oc;yc.flattenAsync=function(t){return(0,Sc.flattenDeepAsync)(t,1)};var xc,Tc={};function Bc(){if(xc)return Tc;xc=1,Tc.FlattenByAsync=void 0;const t=nf(),n=Ht,e=hc;class r extends n.Subject{flattenByAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.flattenByAsync,n)}}return Tc.FlattenByAsync=r,Tc}var Pc,jc={};var Ec={},kc={},Cc=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},Nc=Gt&&Gt.__await||function(t){return this instanceof Nc?(this.v=t,this):new Nc(t)},qc=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof Nc?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};kc.mapAsync=void 0;const Fc=Un;var Dc;function Rc(){if(Dc)return Ec;Dc=1,Ec.MapAsyncOperator=void 0;const t=nf(),n=Ht,e=kc;class r extends n.Subject{mapAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.mapAsync,n)}}return Ec.MapAsyncOperator=r,Ec}kc.mapAsync=function(t,n){return(0,Fc.isAsyncIterable)(t)?function(t,n){return qc(this,arguments,(function*(){var e,r;let o=0;try{for(var i,a=Cc(t);!(i=yield Nc(a.next())).done;){const t=i.value;yield yield Nc(yield Nc(n(t,o))),o++}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=a.return)&&(yield Nc(r.call(a)))}finally{if(e)throw e.error}}}))}(t,n):function(t,n){return qc(this,arguments,(function*(){let e=0;for(const r of t)yield yield Nc(yield Nc(n(r,e))),e++}))}(t,n)};var Uc={},Mc={},zc=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},Vc=Gt&&Gt.__await||function(t){return this instanceof Vc?(this.v=t,this):new Vc(t)},Lc=Gt&&Gt.__asyncDelegator||function(t){var n,e;return n={},r("next"),r("throw",(function(t){throw t})),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,o){n[r]=t[r]?function(n){return(e=!e)?{value:Vc(t[r](n)),done:"return"===r}:o?o(n):n}:o}},Gc=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof Vc?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};Mc.repeatAsync=void 0;const Jc=cn,Wc=ra();var Zc;Mc.repeatAsync=function(t,n){return(0,Wc.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,Wc.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,Jc.go)((function(){return Gc(this,arguments,(function*(){var e,r;const o=[];if(n>0){try{for(var i,a=zc(t);!(i=yield Vc(a.next())).done;){const t=i.value;yield yield Vc(t),o.push(t)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=a.return)&&(yield Vc(r.call(a)))}finally{if(e)throw e.error}}n--}for(;n>0;)yield Vc(yield*Lc(zc(o))),n--}))}))};var Yc={},Hc={},Xc=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},Kc=Gt&&Gt.__await||function(t){return this instanceof Kc?(this.v=t,this):new Kc(t)},Qc=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof Kc?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};Hc.sliceAsync=void 0;const $c=cn,tu=ra();var nu;Hc.sliceAsync=function(t,n,e=1/0){return(0,tu.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,tu.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,tu.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,tu.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,$c.go)((function(){return Qc(this,arguments,(function*(){var r,o;let i=0;try{for(var a,c=Xc(t);!(a=yield Kc(c.next())).done;){const t=a.value;if(i>=e)break;i>=n&&(yield yield Kc(t)),i++}}catch(t){r={error:t}}finally{try{a&&!a.done&&(o=c.return)&&(yield Kc(o.call(c)))}finally{if(r)throw r.error}}}))}))};var eu,ru={},ou={},iu=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},au=Gt&&Gt.__await||function(t){return this instanceof au?(this.v=t,this):new au(t)},cu=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof au?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};ou.splitAsync=void 0,ou.splitAsync=function(t,n){return cu(this,arguments,(function*(){var e,r;let o=[];try{for(var i,a=iu(t);!(i=yield au(a.next())).done;){const t=i.value;t===n?(yield yield au(o),o=[]):o.push(t)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=a.return)&&(yield au(r.call(a)))}finally{if(e)throw e.error}}yield yield au(o)}))};var uu={},su={},lu=Gt&&Gt.__await||function(t){return this instanceof lu?(this.v=t,this):new lu(t)},fu=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof lu?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}},yu=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};su.splitByAsync=void 0;const du=Un;var hu;function vu(){if(hu)return uu;hu=1,uu.SplitByAsyncOperator=void 0;const t=nf(),n=Ht,e=su;class r extends n.Subject{splitByAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.splitByAsync,n)}}return uu.SplitByAsyncOperator=r,uu}su.splitByAsync=function(t,n){return(0,du.isAsyncIterable)(t)?function(t,n){return fu(this,arguments,(function*(){var e,r;let o=[],i=0;try{for(var a,c=yu(t);!(a=yield lu(c.next())).done;){const t=a.value;(yield lu(n(t,i)))?(yield yield lu(o),o=[]):o.push(t),i++}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=c.return)&&(yield lu(r.call(c)))}finally{if(e)throw e.error}}yield yield lu(o)}))}(t,n):function(t,n){return fu(this,arguments,(function*(){let e=[],r=0;for(const o of t)(yield lu(n(o,r)))?(yield yield lu(e),e=[]):e.push(o),r++;yield yield lu(e)}))}(t,n)};var pu={},bu={},mu=Gt&&Gt.__await||function(t){return this instanceof mu?(this.v=t,this):new mu(t)},wu=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},Au=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof mu?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};bu.takeAsync=void 0;const gu=cn,_u=ra();var Iu;bu.takeAsync=function(t,n){return(0,_u.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,_u.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,gu.go)((function(){return Au(this,arguments,(function*(){var e,r;if(0===n)return yield mu(void 0);try{for(var o,i=wu(t);!(o=yield mu(i.next())).done;){const t=o.value;if(yield yield mu(t),0===--n)break}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&(yield mu(r.call(i)))}finally{if(e)throw e.error}}}))}))};var Su={},Ou={},xu=Gt&&Gt.__await||function(t){return this instanceof xu?(this.v=t,this):new xu(t)},Tu=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},Bu=Gt&&Gt.__asyncDelegator||function(t){var n,e;return n={},r("next"),r("throw",(function(t){throw t})),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,o){n[r]=t[r]?function(n){return(e=!e)?{value:xu(t[r](n)),done:"return"===r}:o?o(n):n}:o}},Pu=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof xu?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};Ou.takeRightAsync=void 0;const ju=cn,Eu=ra();var ku;Ou.takeRightAsync=function(t,n){return(0,Eu.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Eu.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,ju.go)((function(){var e;return Pu(this,arguments,(function*(){const r=t[Symbol.asyncIterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=yield xu(r.next())),!o;)t.push(i),t.length>n&&t.shift();yield xu(yield*Bu(Tu(t)))}finally{o||(yield xu(null===(e=r.return)||void 0===e?void 0:e.call(r)))}}))}))};var Cu={},Nu={},qu=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},Fu=Gt&&Gt.__await||function(t){return this instanceof Fu?(this.v=t,this):new Fu(t)},Du=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof Fu?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};Nu.takeUntilAsync=void 0;const Ru=Un;var Uu;function Mu(){if(Uu)return Cu;Uu=1,Cu.TakeUntilAsyncOperator=void 0;const t=nf(),n=Ht,e=Nu;class r extends n.Subject{takeUntilAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.takeUntilAsync,n)}}return Cu.TakeUntilAsyncOperator=r,Cu}Nu.takeUntilAsync=function(t,n){return(0,Ru.isAsyncIterable)(t)?function(t,n){return Du(this,arguments,(function*(){var e,r;let o=0;try{for(var i,a=qu(t);!(i=yield Fu(a.next())).done;){const t=i.value;if(yield Fu(n(t,o)))break;yield yield Fu(t),o++}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=a.return)&&(yield Fu(r.call(a)))}finally{if(e)throw e.error}}}))}(t,n):function(t,n){return Du(this,arguments,(function*(){let e=0;for(const r of t){if(yield Fu(n(r,e)))break;yield yield Fu(r),e++}}))}(t,n)};var zu={},Vu={},Lu=Gt&&Gt.__await||function(t){return this instanceof Lu?(this.v=t,this):new Lu(t)},Gu=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof Lu?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}},Ju=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};Vu.tapAsync=void 0;const Wu=Un;var Zu;function Yu(){if(Zu)return zu;Zu=1,zu.TapAsyncOperator=void 0;const t=nf(),n=Ht,e=Vu;class r extends n.Subject{tapAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.tapAsync,n)}}return zu.TapAsyncOperator=r,zu}Vu.tapAsync=function(t,n){return(0,Wu.isAsyncIterable)(t)?function(t,n){return Gu(this,arguments,(function*(){var e,r;let o=0;try{for(var i,a=Ju(t);!(i=yield Lu(a.next())).done;){const t=i.value;yield Lu(n(t,o)),yield yield Lu(t),o++}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=a.return)&&(yield Lu(r.call(a)))}finally{if(e)throw e.error}}}))}(t,n):function(t,n){return Gu(this,arguments,(function*(){let e=0;for(const r of t)yield Lu(n(r,e)),yield yield Lu(r),e++}))}(t,n)};var Hu,Xu={},Ku={},Qu=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},$u=Gt&&Gt.__await||function(t){return this instanceof $u?(this.v=t,this):new $u(t)},ts=Gt&&Gt.__asyncDelegator||function(t){var n,e;return n={},r("next"),r("throw",(function(t){throw t})),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,o){n[r]=t[r]?function(n){return(e=!e)?{value:$u(t[r](n)),done:"return"===r}:o?o(n):n}:o}},ns=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof $u?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};function es(){if(Hu)return Xu;Hu=1,Xu.TransformAsyncOperator=void 0;const t=nf(),n=Ht,e=Ku;class r extends n.Subject{transformAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.transformAsync,n)}}return Xu.TransformAsyncOperator=r,Xu}Ku.transformAsync=void 0,Ku.transformAsync=function(t,n){return ns(this,arguments,(function*(){yield $u(yield*ts(Qu(n(t))))}))};var rs,os={},is={},as=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},cs=Gt&&Gt.__await||function(t){return this instanceof cs?(this.v=t,this):new cs(t)},us=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof cs?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};is.uniqAsync=void 0,is.uniqAsync=function(t){return us(this,arguments,(function*(){var n,e;const r=new Set;try{for(var o,i=as(t);!(o=yield cs(i.next())).done;){const t=o.value;r.has(t)||(yield yield cs(t),r.add(t))}}catch(t){n={error:t}}finally{try{o&&!o.done&&(e=i.return)&&(yield cs(e.call(i)))}finally{if(n)throw n.error}}}))};var ss={},ls={},fs=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},ys=Gt&&Gt.__await||function(t){return this instanceof ys?(this.v=t,this):new ys(t)},ds=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof ys?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};ls.uniqByAsync=void 0;const hs=Un;var vs;function ps(){if(vs)return ss;vs=1,ss.UniqByAsyncOperator=void 0;const t=nf(),n=Ht,e=ls;class r extends n.Subject{uniqByAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.uniqByAsync,n)}}return ss.UniqByAsyncOperator=r,ss}ls.uniqByAsync=function(t,n){return(0,hs.isAsyncIterable)(t)?function(t,n){return ds(this,arguments,(function*(){var e,r;const o=new Set;let i=0;try{for(var a,c=fs(t);!(a=yield ys(c.next())).done;){const t=a.value,e=yield ys(n(t,i));o.has(e)||(yield yield ys(t),o.add(e)),i++}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=c.return)&&(yield ys(r.call(c)))}finally{if(e)throw e.error}}}))}(t,n):function(t,n){return ds(this,arguments,(function*(){const e=new Set;let r=0;for(const o of t){const t=yield ys(n(o,r));e.has(t)||(yield yield ys(o),e.add(t)),r++}}))}(t,n)};var bs={},ms={},ws=Gt&&Gt.__await||function(t){return this instanceof ws?(this.v=t,this):new ws(t)},As=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof ws?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};ms.zipAsync=void 0;const gs=Un;var _s,Is;function Ss(){if(Is)return bs;Is=1,bs.ZipAsyncOperator=void 0;const t=nf(),n=Ht,e=ms;class r extends n.Subject{zipAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.zipAsync,n)}}return bs.ZipAsyncOperator=r,bs}!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(_s||(_s={})),ms.zipAsync=function(t,...n){return function(...t){var n,e,r,o;return As(this,arguments,(function*(){const i=t.length,a=t.map((t=>(0,gs.isAsyncIterable)(t)?[_s.Async,t[Symbol.asyncIterator]()]:[_s.Sync,t[Symbol.iterator]()])),c=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let n=0;n<i;n++){const[e,r]=a[n];let o;if(o=e===_s.Async?yield ws(r.next()):r.next(),o.done)return c[n]=!0,yield ws(void 0);t[n]=o.value}yield yield ws(t)}}finally{const t=a.filter(((t,n)=>!c[n]));for(const[i,a]of t)i===_s.Async?yield ws(null===(e=(n=a).return)||void 0===e?void 0:e.call(n)):null===(o=(r=a).return)||void 0===o||o.call(r)}}))}(t,...n)};var Os,xs={},Ts={};function Bs(){if(Os)return xs;Os=1,xs.ConsumeOperator=void 0;const t=nf(),n=Ts,e=Ht;class r extends e.Subject{consume(...e){return(0,t.applyBinding)(this.subject,n.consume,e)}}return xs.ConsumeOperator=r,xs}Ts.consume=void 0,Ts.consume=function(t,n){return n(t)};var Ps={},js={},Es=Gt&&Gt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},ks=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};js.eachAsync=void 0;const Cs=Un;var Ns;function qs(){if(Ns)return Ps;Ns=1,Ps.EachAsyncOperator=void 0;const t=nf(),n=Ht,e=js;class r extends n.Subject{eachAsync(...n){return(0,t.applyBinding)(this.subject,e.eachAsync,n)}}return Ps.EachAsyncOperator=r,Ps}js.eachAsync=function(t,n){return(0,Cs.isAsyncIterable)(t)?function(t,n){var e,r,o,i;return Es(this,void 0,void 0,(function*(){let a=0;try{for(e=ks(t);!(r=yield e.next()).done;){const t=r.value;yield n(t,a),a++}}catch(t){o={error:t}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}}))}(t,n):function(t,n){return Es(this,void 0,void 0,(function*(){let e=0;for(const r of t)yield n(r,e),e++}))}(t,n)};var Fs={},Ds={},Rs=Gt&&Gt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},Us=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};Ds.everyAsync=void 0;const Ms=Un;var zs;function Vs(){if(zs)return Fs;zs=1,Fs.EveryAsyncOperator=void 0;const t=nf(),n=Ht,e=Ds;class r extends n.Subject{everyAsync(...n){return(0,t.applyBinding)(this.subject,e.everyAsync,n)}}return Fs.EveryAsyncOperator=r,Fs}Ds.everyAsync=function(t,n){return(0,Ms.isAsyncIterable)(t)?function(t,n){var e,r,o,i;return Rs(this,void 0,void 0,(function*(){let a=0;try{for(e=Us(t);!(r=yield e.next()).done;){const t=r.value;if(!(yield n(t,a)))return!1;a++}}catch(t){o={error:t}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}return!0}))}(t,n):function(t,n){return Rs(this,void 0,void 0,(function*(){let e=0;for(const r of t){if(!(yield n(r,e)))return!1;e++}return!0}))}(t,n)};var Ls={},Gs={},Js=Gt&&Gt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},Ws=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};Gs.findAsync=void 0;const Zs=Un;var Ys;function Hs(){if(Ys)return Ls;Ys=1,Ls.FindAsyncOperator=void 0;const t=nf(),n=Ht,e=Gs;class r extends n.Subject{findAsync(...n){return(0,t.applyBinding)(this.subject,e.findAsync,n)}}return Ls.FindAsyncOperator=r,Ls}Gs.findAsync=function(t,n){return(0,Zs.isAsyncIterable)(t)?function(t,n){var e,r,o,i;return Js(this,void 0,void 0,(function*(){let a=0;try{for(e=Ws(t);!(r=yield e.next()).done;){const t=r.value;if(yield n(t,a))return t;a++}}catch(t){o={error:t}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}}))}(t,n):function(t,n){return Js(this,void 0,void 0,(function*(){let e=0;for(const r of t){if(yield n(r,e))return r;e++}}))}(t,n)};var Xs,Ks={},Qs={},$s=Gt&&Gt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},tl=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};Qs.firstAsync=void 0,Qs.firstAsync=function(t){var n,e,r,o;return $s(this,void 0,void 0,(function*(){try{for(n=tl(t);!(e=yield n.next()).done;){return e.value}}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=n.return)&&(yield o.call(n))}finally{if(r)throw r.error}}}))};var nl,el={},rl={},ol=Gt&&Gt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},il=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};rl.includesAsync=void 0,rl.includesAsync=function(t,n){var e,r,o,i;return ol(this,void 0,void 0,(function*(){try{for(e=il(t);!(r=yield e.next()).done;){if(r.value===n)return!0}}catch(t){o={error:t}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}return!1}))};var al,cl={},ul={},sl=Gt&&Gt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},ll=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};ul.matchAsync=void 0,ul.matchAsync=function(t,n){var e,r,o,i;return sl(this,void 0,void 0,(function*(){const a=n.length;let c=0;try{for(e=ll(t);!(r=yield e.next()).done;){if(r.value===n[c]&&c++,c===a)return!0}}catch(t){o={error:t}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}return!1}))};var fl={},yl={},dl=Gt&&Gt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},hl=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};yl.reduceAsync=void 0;const vl=Un;var pl;function bl(){if(pl)return fl;pl=1,fl.ReduceAsyncOperator=void 0;const t=nf(),n=Ht,e=yl;class r extends n.Subject{reduceAsync(...n){return(0,t.applyBinding)(this.subject,e.reduceAsync,n)}}return fl.ReduceAsyncOperator=r,fl}yl.reduceAsync=function(t,n,e){return(0,vl.isUndefined)(e)?function(t,n){return(0,vl.isAsyncIterable)(t)?e(t):r(t);function e(t){var e;return dl(this,void 0,void 0,(function*(){const r=t[Symbol.asyncIterator]();let o;try{let t,a=yield i(r),c=1;for(;({value:t,done:o}=yield r.next()),!o;)a=yield n(a,t,c++);return a}finally{o||(yield null===(e=r.return)||void 0===e?void 0:e.call(r))}function i(t){return dl(this,void 0,void 0,(function*(){const n=yield t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}))}}))}function r(t){var e;return dl(this,void 0,void 0,(function*(){const r=t[Symbol.iterator]();let o;try{let t,a=i(r),c=1;for(;({value:t,done:o}=r.next()),!o;)a=yield n(a,t,c++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}))}}(t,n):function(t,n,e){return(0,vl.isAsyncIterable)(t)?o(t):r(t);function r(t){return dl(this,void 0,void 0,(function*(){let r=e,o=0;for(const e of t)r=yield n(r,e,o++);return r}))}function o(t){var r,o,i,a;return dl(this,void 0,void 0,(function*(){let c=e,u=0;try{for(r=hl(t);!(o=yield r.next()).done;){const t=o.value;c=yield n(c,t,u++)}}catch(t){i={error:t}}finally{try{o&&!o.done&&(a=r.return)&&(yield a.call(r))}finally{if(i)throw i.error}}return c}))}}(t,n,e)};var ml={},wl={},Al=Gt&&Gt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},gl=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};wl.someAsync=void 0;const _l=Un;var Il;function Sl(){if(Il)return ml;Il=1,ml.SomeAsyncOperator=void 0;const t=nf(),n=Ht,e=wl;class r extends n.Subject{someAsync(...n){return(0,t.applyBinding)(this.subject,e.someAsync,n)}}return ml.SomeAsyncOperator=r,ml}wl.someAsync=function(t,n){return(0,_l.isAsyncIterable)(t)?function(t,n){var e,r,o,i;return Al(this,void 0,void 0,(function*(){let a=0;try{for(e=gl(t);!(r=yield e.next()).done;){const t=r.value;if(yield n(t,a))return!0;a++}}catch(t){o={error:t}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}return!1}))}(t,n):function(t,n){return Al(this,void 0,void 0,(function*(){let e=0;for(const r of t){if(yield n(r,e))return!0;e++}return!1}))}(t,n)};var Ol,xl={},Tl={},Bl=Gt&&Gt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))};Tl.lastAsync=void 0,Tl.lastAsync=function(t){var n;return Bl(this,void 0,void 0,(function*(){const e=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=yield e.next()),!r;)o=t;return o}finally{r||(yield null===(n=e.return)||void 0===n?void 0:n.call(e))}}))};var Pl={},jl={},El=Gt&&Gt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},kl=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};jl.toArrayAsync=void 0;const Cl=Ts;var Nl;jl.toArrayAsync=function(t){return(0,Cl.consume)(t,(t=>{var n,e;return El(this,void 0,void 0,(function*(){var r,o;const i=[];try{for(n=kl(t);!(e=yield n.next()).done;){const t=e.value;i.push(t)}}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=n.return)&&(yield o.call(n))}finally{if(r)throw r.error}}return i}))}))};var ql={},Fl={},Dl=Gt&&Gt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},Rl=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};Fl.toSetAsync=void 0;const Ul=Ts;var Ml;Fl.toSetAsync=function(t){return(0,Ul.consume)(t,(t=>{var n,e;return Dl(this,void 0,void 0,(function*(){var r,o;const i=new Set;try{for(n=Rl(t);!(e=yield n.next()).done;){const t=e.value;i.add(t)}}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=n.return)&&(yield o.call(n))}finally{if(r)throw r.error}}return i}))}))};var zl,Vl={},Ll={},Gl=Gt&&Gt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},Jl=Gt&&Gt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};Ll.countAsync=void 0,Ll.countAsync=function(t){var n,e,r,o;return Gl(this,void 0,void 0,(function*(){let i=0;try{for(n=Jl(t);!(e=yield n.next()).done;){e.value;i++}}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=n.return)&&(yield o.call(n))}finally{if(r)throw r.error}}return i}))};var Wl={},Zl={},Yl=Gt&&Gt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))};Zl.groupByAsync=void 0;const Hl=js;var Xl,Kl,Ql;function $l(){if(Xl)return Wl;Xl=1,Wl.GroupByAsyncOperator=void 0;const t=nf(),n=Zl,e=Ht;class r extends e.Subject{groupByAsync(...e){return(0,t.applyBinding)(this.subject,n.groupByAsync,e)}}return Wl.GroupByAsyncOperator=r,Wl}function tf(){if(Kl)return tn;Kl=1,tn.AsyncIterableOperator=void 0;const t=Zt,n=nn,e=function(){if(sa)return on;sa=1,on.ChunkAsyncOperator=void 0;const t=nf(),n=nn,e=an;class r extends n.AsyncIterableOperatorBase{chunkAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.chunkAsync,n)}}return on.ChunkAsyncOperator=r,on}(),r=ba(),o=xa(),i=function(){if(Ra)return Ta;Ra=1,Ta.DropAsyncOperator=void 0;const t=nf(),n=nn,e=Ba;class r extends n.AsyncIterableOperatorBase{dropAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.dropAsync,n)}}return Ta.DropAsyncOperator=r,Ta}(),a=function(){if(Ha)return Ua;Ha=1,Ua.DropRightAsyncOperator=void 0;const t=nf(),n=nn,e=Ma;class r extends n.AsyncIterableOperatorBase{dropRightAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.dropRightAsync,n)}}return Ua.DropRightAsyncOperator=r,Ua}(),c=ec(),u=lc(),s=function(){if(Oc)return fc;Oc=1,fc.FlattenAsyncOperator=void 0;const t=nf(),n=nn,e=yc;class r extends n.AsyncIterableOperatorBase{flattenAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.flattenAsync,n)}}return fc.FlattenAsyncOperator=r,fc}(),l=Bc(),f=function(){if(Pc)return jc;Pc=1,jc.FlattenDeepAsyncOperator=void 0;const t=nf(),n=nn,e=dc;class r extends n.AsyncIterableOperatorBase{flattenDeepAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.flattenDeepAsync,n)}}return jc.FlattenDeepAsyncOperator=r,jc}(),y=Rc(),d=function(){if(Zc)return Uc;Zc=1,Uc.RepeatAsyncOperator=void 0;const t=nf(),n=nn,e=Mc;class r extends n.AsyncIterableOperatorBase{repeatAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.repeatAsync,n)}}return Uc.RepeatAsyncOperator=r,Uc}(),h=function(){if(nu)return Yc;nu=1,Yc.SliceAsyncOperator=void 0;const t=nf(),n=nn,e=Hc;class r extends n.AsyncIterableOperatorBase{sliceAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.sliceAsync,n)}}return Yc.SliceAsyncOperator=r,Yc}(),v=function(){if(eu)return ru;eu=1,ru.SplitAsyncOperator=void 0;const t=nf(),n=nn,e=ou;class r extends n.AsyncIterableOperatorBase{splitAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.splitAsync,n)}}return ru.SplitAsyncOperator=r,ru}(),p=vu(),b=function(){if(Iu)return pu;Iu=1,pu.TakeAsyncOperator=void 0;const t=nf(),n=nn,e=bu;class r extends n.AsyncIterableOperatorBase{takeAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.takeAsync,n)}}return pu.TakeAsyncOperator=r,pu}(),m=function(){if(ku)return Su;ku=1,Su.TakeRightAsyncOperator=void 0;const t=nf(),n=nn,e=Ou;class r extends n.AsyncIterableOperatorBase{takeRightAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.takeRightAsync,n)}}return Su.TakeRightAsyncOperator=r,Su}(),w=Mu(),A=Yu(),g=es(),_=function(){if(rs)return os;rs=1,os.UniqAsyncOperator=void 0;const t=nf(),n=nn,e=is;class r extends n.AsyncIterableOperatorBase{uniqAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.uniqAsync,n)}}return os.UniqAsyncOperator=r,os}(),I=ps(),S=Ss(),O=Bs(),x=qs(),T=Vs(),B=Hs(),P=function(){if(Xs)return Ks;Xs=1,Ks.FirstAsyncOperator=void 0;const t=nf(),n=nn,e=Qs;class r extends n.AsyncIterableOperatorBase{firstAsync(...n){return(0,t.applyBinding)(this.subject,e.firstAsync,n)}}return Ks.FirstAsyncOperator=r,Ks}(),j=function(){if(nl)return el;nl=1,el.IncludesAsyncOperator=void 0;const t=nf(),n=nn,e=rl;class r extends n.AsyncIterableOperatorBase{includesAsync(...n){return(0,t.applyBinding)(this.subject,e.includesAsync,n)}}return el.IncludesAsyncOperator=r,el}(),E=function(){if(al)return cl;al=1,cl.MatchAsyncOperator=void 0;const t=nf(),n=nn,e=ul;class r extends n.AsyncIterableOperatorBase{matchAsync(...n){return(0,t.applyBinding)(this.subject,e.matchAsync,n)}}return cl.MatchAsyncOperator=r,cl}(),k=bl(),C=Sl(),N=function(){if(Ol)return xl;Ol=1,xl.LastAsyncOperator=void 0;const t=nf(),n=nn,e=Tl;class r extends n.AsyncIterableOperatorBase{lastAsync(...n){return(0,t.applyBinding)(this.subject,e.lastAsync,n)}}return xl.LastAsyncOperator=r,xl}(),q=function(){if(Nl)return Pl;Nl=1,Pl.ToArrayAsyncOperator=void 0;const t=nf(),n=nn,e=jl;class r extends n.AsyncIterableOperatorBase{toArrayAsync(...n){return(0,t.applyBinding)(this.subject,e.toArrayAsync,n)}}return Pl.ToArrayAsyncOperator=r,Pl}(),F=function(){if(Ml)return ql;Ml=1,ql.ToSetAsyncOperator=void 0;const t=nf(),n=nn,e=Fl;class r extends n.AsyncIterableOperatorBase{toSetAsync(...n){return(0,t.applyBinding)(this.subject,e.toSetAsync,n)}}return ql.ToSetAsyncOperator=r,ql}(),D=function(){if(zl)return Vl;zl=1,Vl.CountAsyncOperator=void 0;const t=nf(),n=Ll,e=nn;class r extends e.AsyncIterableOperatorBase{countAsync(...e){return(0,t.applyBinding)(this.subject,n.countAsync,e)}}return Vl.CountAsyncOperator=r,Vl}(),R=$l();class U extends n.AsyncIterableOperatorBase{}return tn.AsyncIterableOperator=U,(0,t.mixinDecorators)(U,[e.ChunkAsyncOperator,r.ChunkByAsyncOperator,o.ConcatAsyncOperator,i.DropAsyncOperator,a.DropRightAsyncOperator,c.DropUntilAsyncOperator,u.FilterAsyncOperator,s.FlattenAsyncOperator,l.FlattenByAsync,f.FlattenDeepAsyncOperator,y.MapAsyncOperator,d.RepeatAsyncOperator,h.SliceAsyncOperator,v.SplitAsyncOperator,p.SplitByAsyncOperator,b.TakeAsyncOperator,m.TakeRightAsyncOperator,w.TakeUntilAsyncOperator,A.TapAsyncOperator,g.TransformAsyncOperator,_.UniqAsyncOperator,I.UniqByAsyncOperator,S.ZipAsyncOperator,O.ConsumeOperator,x.EachAsyncOperator,T.EveryAsyncOperator,B.FindAsyncOperator,P.FirstAsyncOperator,j.IncludesAsyncOperator,E.MatchAsyncOperator,k.ReduceAsyncOperator,C.SomeAsyncOperator,N.LastAsyncOperator,q.ToArrayAsyncOperator,F.ToSetAsyncOperator,D.CountAsyncOperator,R.GroupByAsyncOperator]),tn}function nf(){if(Ql)return $t;Ql=1,$t.applyChainingAsync=$t.applyChaining=$t.applyBinding=$t.getPipelineProxy=void 0;const t=Nd(),n=tf();return $t.getPipelineProxy=function(t,n){return(...e)=>t(...e,...n)},$t.applyBinding=function(t,n,e){return n(t,...e)},$t.applyChaining=function(n,e,r){return new t.IterableOperator(e(n,...r))},$t.applyChainingAsync=function(t,e,r){return new n.AsyncIterableOperator(e(t,...r))},$t}Zl.groupByAsync=function(t,n){return Yl(this,void 0,void 0,(function*(){const e=new Map;return yield(0,Hl.eachAsync)(t,((t,r)=>Yl(this,void 0,void 0,(function*(){const o=yield n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})))),e}))};var ef,rf={};rf.chunkBy=void 0,rf.chunkBy=function*(t,n){let e=[],r=0;for(const o of t)e.push(o),n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)};var of={},af={chunk:void 0};const cf=cn,uf=ra();var sf;af.chunk=function(t,n){return(0,uf.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,uf.assert)(n>0,"The parameter size must be greater than 0"),(0,cf.go)((function*(){let e=[];for(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var lf={},ff={concat:void 0};const yf=cn;var df;ff.concat=function(t,...n){return(0,yf.go)((function*(){for(const e of[t,...n])yield*e}))};var hf={},vf={dropRight:void 0};const pf=cn,bf=Pa,mf=ra();var wf;vf.dropRight=function(t,n){return(0,mf.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,mf.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,bf.copyIterable)(t):(0,pf.go)((function*(){const e=Array.from(t);yield*e.slice(0,-n)}))};var Af,gf={},_f={};_f.dropUntil=void 0,_f.dropUntil=function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}};var If={},Sf={drop:void 0};const Of=cn,xf=Pa,Tf=ra();var Bf;Sf.drop=function(t,n){return(0,Tf.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Tf.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,xf.copyIterable)(t):(0,Of.go)((function*(){var e;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var Pf,jf={},Ef={};Ef.filter=void 0,Ef.filter=function*(t,n){let e=0;for(const r of t)n(r,e)&&(yield r),e++};var kf={},Cf={flattenBy:void 0};const Nf=Un;function*qf(t,n,e){for(const o of t)(0,Nf.isIterable)(r=o)&&(0,Nf.isntChar)(r)&&n(o,e)?yield*qf(o,n,e+1):yield o;var r}var Ff;Cf.flattenBy=function(t,n){return qf(t,n,1)};var Df={},Rf={flattenDeep:void 0};const Uf=Cf,Mf=ra();var zf;Rf.flattenDeep=function(t,n=1/0){return(0,Mf.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,Mf.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,Uf.flattenBy)(t,((t,e)=>e<=n))};var Vf={},Lf={flatten:void 0};const Gf=Rf;var Jf;Lf.flatten=function(t){return(0,Gf.flattenDeep)(t,1)};var Wf,Zf={},Yf={};Yf.map=void 0,Yf.map=function*(t,n){let e=0;for(const r of t)yield n(r,e),e++};var Hf={},Xf={repeat:void 0};const Kf=cn,Qf=ra();var $f;Xf.repeat=function(t,n){return(0,Qf.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,Qf.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,Kf.go)((function*(){const e=[];if(n>0){for(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var ty={},ny={slice:void 0};const ey=cn,ry=ra();var oy;ny.slice=function(t,n,e=1/0){return(0,ry.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,ry.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,ry.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,ry.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,ey.go)((function*(){let r=0;for(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var iy,ay={},cy={};cy.splitBy=void 0,cy.splitBy=function*(t,n){let e=[],r=0;for(const o of t)n(o,r)?(yield e,e=[]):e.push(o),r++;yield e};var uy,sy={},ly={};ly.split=void 0,ly.split=function*(t,n){let e=[];for(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var fy={},yy={takeRight:void 0};const dy=cn,hy=ra();var vy;yy.takeRight=function(t,n){return(0,hy.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,hy.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,dy.go)((function*(){var e;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>n&&t.shift();yield*t}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var py,by={},my={};my.takeUntil=void 0,my.takeUntil=function*(t,n){let e=0;for(const r of t){if(n(r,e))break;yield r,e++}};var wy={},Ay={take:void 0};const gy=cn,_y=ra();var Iy;Ay.take=function(t,n){return(0,_y.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,_y.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,gy.go)((function*(){if(0!==n)for(const e of t)if(yield e,0===--n)break}))};var Sy,Oy={},xy={};xy.tap=void 0,xy.tap=function*(t,n){let e=0;for(const r of t)n(r,e),yield r,e++};var Ty,By={},Py={},jy=Gt&&Gt.__await||function(t){return this instanceof jy?(this.v=t,this):new jy(t)},Ey=Gt&&Gt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof jy?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};Py.toAsyncIterable=void 0,Py.toAsyncIterable=function(t){return Ey(this,arguments,(function*(){for(const n of t)yield yield jy(n)}))};var ky,Cy={},Ny={};Ny.transform=void 0,Ny.transform=function*(t,n){yield*n(t)};var qy,Fy={},Dy={};Dy.uniqBy=void 0,Dy.uniqBy=function*(t,n){const e=new Set;let r=0;for(const o of t){const t=n(o,r);e.has(t)||(yield o,e.add(t)),r++}};var Ry,Uy={},My={};My.uniq=void 0,My.uniq=function*(t){const n=new Set;for(const e of t)n.has(e)||(yield e,n.add(e))};var zy,Vy={},Ly={};Ly.zip=void 0,Ly.zip=function(t,...n){return function*(...t){const n=t.length,e=t.map((t=>t[Symbol.iterator]())),r=e.map((()=>!1));try{for(;;){const t=new Array(n);for(let o=0;o<n;o++){const{value:n,done:i}=e[o].next();if(i)return void(r[o]=!0);t[o]=n}yield t}}finally{e.filter(((t,n)=>!r[n])).forEach((t=>{var n;return null===(n=t.return)||void 0===n?void 0:n.call(t)}))}}(t,...n)};var Gy,Jy={},Wy={};Wy.each=void 0,Wy.each=function(t,n){let e=0;for(const r of t)n(r,e),e++};var Zy,Yy={},Hy={};Hy.every=void 0,Hy.every=function(t,n){let e=0;for(const r of t){if(!n(r,e))return!1;e++}return!0};var Xy,Ky={},Qy={};Qy.find=void 0,Qy.find=function(t,n){let e=0;for(const r of t){if(n(r,e))return r;e++}};var $y,td={},nd={};nd.first=void 0,nd.first=function(t){for(const n of t)return n};var ed,rd={},od={};od.includes=void 0,od.includes=function(t,n){for(const e of t)if(e===n)return!0;return!1};var id,ad={},cd={};cd.match=void 0,cd.match=function(t,n){const e=n.length;let r=0;for(const o of t)if(o===n[r]&&r++,r===e)return!0;return!1};var ud={},sd={reduce:void 0};const ld=Un;var fd;sd.reduce=function(t,n,e){return(0,ld.isUndefined)(e)?function(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),c=1;for(;({value:t,done:o}=r.next()),!o;)a=n(a,t,c++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}(t,n):function(t,n,e){let r=e,o=0;for(const e of t)r=n(r,e,o++);return r}(t,n,e)};var yd,dd={},hd={};hd.some=void 0,hd.some=function(t,n){let e=0;for(const r of t){if(n(r,e))return!0;e++}return!1};var vd,pd={},bd={};bd.last=void 0,bd.last=function(t){var n;const e=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=e.next()),!r;)o=t;return o}finally{r||null===(n=e.return)||void 0===n||n.call(e)}};var md={},wd={toArray:void 0};const Ad=Ts;var gd;wd.toArray=function(t){return(0,Ad.consume)(t,(t=>Array.from(t)))};var _d={},Id={toSet:void 0};const Sd=Ts;var Od;Id.toSet=function(t){return(0,Sd.consume)(t,(t=>new Set(t)))};var xd,Td={},Bd={};Bd.count=void 0,Bd.count=function(t){let n=0;for(const e of t)n++;return n};var Pd={},jd={groupBy:void 0};const Ed=Wy;var kd,Cd;function Nd(){if(Cd)return Wt;Cd=1,Wt.IterableOperator=void 0;const t=Zt,n=Yt,e=function(){if(ef)return Qt;ef=1,Qt.ChunkByOperator=void 0;const t=nf(),n=rf,e=Yt;class r extends e.IterableOperatorBase{chunkBy(...e){return(0,t.applyChaining)(this.subject,n.chunkBy,e)}}return Qt.ChunkByOperator=r,Qt}(),r=function(){if(sf)return of;sf=1,of.ChunkOperator=void 0;const t=nf(),n=af,e=Yt;class r extends e.IterableOperatorBase{chunk(...e){return(0,t.applyChaining)(this.subject,n.chunk,e)}}return of.ChunkOperator=r,of}(),o=function(){if(df)return lf;df=1,lf.ConcatOperator=void 0;const t=nf(),n=ff,e=Yt;class r extends e.IterableOperatorBase{concat(...e){return(0,t.applyChaining)(this.subject,n.concat,e)}}return lf.ConcatOperator=r,lf}(),i=function(){if(wf)return hf;wf=1,hf.DropRightOperator=void 0;const t=nf(),n=vf,e=Yt;class r extends e.IterableOperatorBase{dropRight(...e){return(0,t.applyChaining)(this.subject,n.dropRight,e)}}return hf.DropRightOperator=r,hf}(),a=function(){if(Af)return gf;Af=1,gf.DropUntilOperator=void 0;const t=nf(),n=_f,e=Yt;class r extends e.IterableOperatorBase{dropUntil(...e){return(0,t.applyChaining)(this.subject,n.dropUntil,e)}}return gf.DropUntilOperator=r,gf}(),c=function(){if(Bf)return If;Bf=1,If.DropOperator=void 0;const t=nf(),n=Sf,e=Yt;class r extends e.IterableOperatorBase{drop(...e){return(0,t.applyChaining)(this.subject,n.drop,e)}}return If.DropOperator=r,If}(),u=function(){if(Pf)return jf;Pf=1,jf.FilterOperator=void 0;const t=nf(),n=Ef,e=Yt;class r extends e.IterableOperatorBase{filter(...e){return(0,t.applyChaining)(this.subject,n.filter,e)}}return jf.FilterOperator=r,jf}(),s=function(){if(Ff)return kf;Ff=1,kf.FlattenByOperator=void 0;const t=nf(),n=Cf,e=Yt;class r extends e.IterableOperatorBase{flattenBy(...e){return(0,t.applyChaining)(this.subject,n.flattenBy,e)}}return kf.FlattenByOperator=r,kf}(),l=function(){if(zf)return Df;zf=1,Df.FlattenDeepOperator=void 0;const t=nf(),n=Rf,e=Yt;class r extends e.IterableOperatorBase{flattenDeep(...e){return(0,t.applyChaining)(this.subject,n.flattenDeep,e)}}return Df.FlattenDeepOperator=r,Df}(),f=function(){if(Jf)return Vf;Jf=1,Vf.FlattenOperator=void 0;const t=nf(),n=Lf,e=Yt;class r extends e.IterableOperatorBase{flatten(...e){return(0,t.applyChaining)(this.subject,n.flatten,e)}}return Vf.FlattenOperator=r,Vf}(),y=function(){if(Wf)return Zf;Wf=1,Zf.MapOperator=void 0;const t=nf(),n=Yf,e=Yt;class r extends e.IterableOperatorBase{map(...e){return(0,t.applyChaining)(this.subject,n.map,e)}}return Zf.MapOperator=r,Zf}(),d=function(){if($f)return Hf;$f=1,Hf.RepeatOperator=void 0;const t=nf(),n=Xf,e=Yt;class r extends e.IterableOperatorBase{repeat(...e){return(0,t.applyChaining)(this.subject,n.repeat,e)}}return Hf.RepeatOperator=r,Hf}(),h=function(){if(oy)return ty;oy=1,ty.SliceOperator=void 0;const t=nf(),n=ny,e=Yt;class r extends e.IterableOperatorBase{slice(...e){return(0,t.applyChaining)(this.subject,n.slice,e)}}return ty.SliceOperator=r,ty}(),v=function(){if(iy)return ay;iy=1,ay.SplitByOperator=void 0;const t=nf(),n=cy,e=Yt;class r extends e.IterableOperatorBase{splitBy(...e){return(0,t.applyChaining)(this.subject,n.splitBy,e)}}return ay.SplitByOperator=r,ay}(),p=function(){if(uy)return sy;uy=1,sy.SplitOperator=void 0;const t=nf(),n=ly,e=Yt;class r extends e.IterableOperatorBase{split(...e){return(0,t.applyChaining)(this.subject,n.split,e)}}return sy.SplitOperator=r,sy}(),b=function(){if(vy)return fy;vy=1,fy.TakeRightOperator=void 0;const t=nf(),n=yy,e=Yt;class r extends e.IterableOperatorBase{takeRight(...e){return(0,t.applyChaining)(this.subject,n.takeRight,e)}}return fy.TakeRightOperator=r,fy}(),m=function(){if(py)return by;py=1,by.TakeUntilOperator=void 0;const t=nf(),n=my,e=Yt;class r extends e.IterableOperatorBase{takeUntil(...e){return(0,t.applyChaining)(this.subject,n.takeUntil,e)}}return by.TakeUntilOperator=r,by}(),w=function(){if(Iy)return wy;Iy=1,wy.TakeOperator=void 0;const t=nf(),n=Ay,e=Yt;class r extends e.IterableOperatorBase{take(...e){return(0,t.applyChaining)(this.subject,n.take,e)}}return wy.TakeOperator=r,wy}(),A=function(){if(Sy)return Oy;Sy=1,Oy.TapOperator=void 0;const t=nf(),n=xy,e=Yt;class r extends e.IterableOperatorBase{tap(...e){return(0,t.applyChaining)(this.subject,n.tap,e)}}return Oy.TapOperator=r,Oy}(),g=function(){if(Ty)return By;Ty=1,By.ToAsyncIterableOperator=void 0;const t=nf(),n=Yt,e=Py;class r extends n.IterableOperatorBase{toAsyncIterable(...n){return(0,t.applyChainingAsync)(this.subject,e.toAsyncIterable,n)}}return By.ToAsyncIterableOperator=r,By}(),_=es(),I=function(){if(ky)return Cy;ky=1,Cy.TransformOperator=void 0;const t=nf(),n=Ny,e=Yt;class r extends e.IterableOperatorBase{transform(...e){return(0,t.applyChaining)(this.subject,n.transform,e)}}return Cy.TransformOperator=r,Cy}(),S=function(){if(qy)return Fy;qy=1,Fy.UniqByOperator=void 0;const t=nf(),n=Dy,e=Yt;class r extends e.IterableOperatorBase{uniqBy(...e){return(0,t.applyChaining)(this.subject,n.uniqBy,e)}}return Fy.UniqByOperator=r,Fy}(),O=function(){if(Ry)return Uy;Ry=1,Uy.UniqOperator=void 0;const t=nf(),n=My,e=Yt;class r extends e.IterableOperatorBase{uniq(...e){return(0,t.applyChaining)(this.subject,n.uniq,e)}}return Uy.UniqOperator=r,Uy}(),x=function(){if(zy)return Vy;zy=1,Vy.ZipOperator=void 0;const t=nf(),n=Ly,e=Yt;class r extends e.IterableOperatorBase{zip(...e){return(0,t.applyChaining)(this.subject,n.zip,e)}}return Vy.ZipOperator=r,Vy}(),T=ba(),B=xa(),P=ec(),j=lc(),E=Bc(),k=Rc(),C=vu(),N=Mu(),q=Yu(),F=ps(),D=Ss(),R=Bs(),U=function(){if(Gy)return Jy;Gy=1,Jy.EachOperator=void 0;const t=nf(),n=Wy,e=Yt;class r extends e.IterableOperatorBase{each(...e){return(0,t.applyBinding)(this.subject,n.each,e)}}return Jy.EachOperator=r,Jy}(),M=function(){if(Zy)return Yy;Zy=1,Yy.EveryOperator=void 0;const t=nf(),n=Hy,e=Yt;class r extends e.IterableOperatorBase{every(...e){return(0,t.applyBinding)(this.subject,n.every,e)}}return Yy.EveryOperator=r,Yy}(),z=function(){if(Xy)return Ky;Xy=1,Ky.FindOperator=void 0;const t=nf(),n=Qy,e=Yt;class r extends e.IterableOperatorBase{find(...e){return(0,t.applyBinding)(this.subject,n.find,e)}}return Ky.FindOperator=r,Ky}(),V=function(){if($y)return td;$y=1,td.FirstOperator=void 0;const t=nf(),n=nd,e=Yt;class r extends e.IterableOperatorBase{first(...e){return(0,t.applyBinding)(this.subject,n.first,e)}}return td.FirstOperator=r,td}(),L=function(){if(ed)return rd;ed=1,rd.IncludesOperator=void 0;const t=nf(),n=od,e=Yt;class r extends e.IterableOperatorBase{includes(...e){return(0,t.applyBinding)(this.subject,n.includes,e)}}return rd.IncludesOperator=r,rd}(),G=function(){if(id)return ad;id=1,ad.MatchOperator=void 0;const t=nf(),n=cd,e=Yt;class r extends e.IterableOperatorBase{match(...e){return(0,t.applyBinding)(this.subject,n.match,e)}}return ad.MatchOperator=r,ad}(),J=function(){if(fd)return ud;fd=1,ud.ReduceOperator=void 0;const t=nf(),n=sd,e=Yt;class r extends e.IterableOperatorBase{reduce(...e){return(0,t.applyBinding)(this.subject,n.reduce,e)}}return ud.ReduceOperator=r,ud}(),W=function(){if(yd)return dd;yd=1,dd.SomeOperator=void 0;const t=nf(),n=hd,e=Yt;class r extends e.IterableOperatorBase{some(...e){return(0,t.applyBinding)(this.subject,n.some,e)}}return dd.SomeOperator=r,dd}(),Z=function(){if(vd)return pd;vd=1,pd.LastOperator=void 0;const t=nf(),n=bd,e=Yt;class r extends e.IterableOperatorBase{last(...e){return(0,t.applyBinding)(this.subject,n.last,e)}}return pd.LastOperator=r,pd}(),Y=function(){if(gd)return md;gd=1,md.ToArrayOperator=void 0;const t=nf(),n=wd,e=Yt;class r extends e.IterableOperatorBase{toArray(...e){return(0,t.applyBinding)(this.subject,n.toArray,e)}}return md.ToArrayOperator=r,md}(),H=function(){if(Od)return _d;Od=1,_d.ToSetOperator=void 0;const t=nf(),n=Id,e=Yt;class r extends e.IterableOperatorBase{toSet(...e){return(0,t.applyBinding)(this.subject,n.toSet,e)}}return _d.ToSetOperator=r,_d}(),X=function(){if(xd)return Td;xd=1,Td.CountOperator=void 0;const t=nf(),n=Bd,e=Yt;class r extends e.IterableOperatorBase{count(...e){return(0,t.applyBinding)(this.subject,n.count,e)}}return Td.CountOperator=r,Td}(),K=function(){if(kd)return Pd;kd=1,Pd.GroupByOperator=void 0;const t=nf(),n=jd,e=Yt;class r extends e.IterableOperatorBase{groupBy(...e){return(0,t.applyBinding)(this.subject,n.groupBy,e)}}return Pd.GroupByOperator=r,Pd}(),Q=qs(),$=Vs(),tt=Hs(),nt=bl(),et=Sl(),rt=$l();class ot extends n.IterableOperatorBase{}return Wt.IterableOperator=ot,(0,t.mixinDecorators)(ot,[r.ChunkOperator,e.ChunkByOperator,o.ConcatOperator,i.DropRightOperator,a.DropUntilOperator,c.DropOperator,u.FilterOperator,s.FlattenByOperator,l.FlattenDeepOperator,f.FlattenOperator,y.MapOperator,d.RepeatOperator,h.SliceOperator,v.SplitByOperator,p.SplitOperator,b.TakeRightOperator,m.TakeUntilOperator,w.TakeOperator,A.TapOperator,I.TransformOperator,S.UniqByOperator,O.UniqOperator,x.ZipOperator,T.ChunkByAsyncOperator,B.ConcatAsyncOperator,P.DropUntilAsyncOperator,j.FilterAsyncOperator,E.FlattenByAsync,k.MapAsyncOperator,C.SplitByAsyncOperator,N.TakeUntilAsyncOperator,q.TapAsyncOperator,g.ToAsyncIterableOperator,_.TransformAsyncOperator,F.UniqByAsyncOperator,D.ZipAsyncOperator,R.ConsumeOperator,U.EachOperator,M.EveryOperator,z.FindOperator,V.FirstOperator,L.IncludesOperator,G.MatchOperator,J.ReduceOperator,W.SomeOperator,Z.LastOperator,Y.ToArrayOperator,H.ToSetOperator,X.CountOperator,K.GroupByOperator,Q.EachAsyncOperator,$.EveryAsyncOperator,tt.FindAsyncOperator,nt.ReduceAsyncOperator,et.SomeAsyncOperator,rt.GroupByAsyncOperator]),Wt}function qd(t){return Lt(t,{childList:!0,subtree:!0}).pipe(kt((t=>new Jt.IterableOperator(t).map((t=>t.addedNodes)).flatten().toArray())),Vt((t=>t.length>0)))}function Fd(t){return Lt(t,{childList:!0,subtree:!0}).pipe(kt((t=>new Jt.IterableOperator(t).map((t=>t.removedNodes)).flatten().toArray())),Vt((t=>t.length>0)))}jd.groupBy=function(t,n){const e=new Map;return(0,Ed.each)(t,((t,r)=>{const o=n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e},function(t){var n=Gt&&Gt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Gt&&Gt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(Nd(),t),e(tf(),t)}(Jt);const Dd=new Set,Rd=new Set;let Ud=!1,Md=!1;function zd(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=yt(t),r=dt(t,1/0),o=t;return o.length?1===o.length?St(o[0]):Ft(r)(Et(o,e)):lt}(new C((t=>(Ud||function(){const t=history.pushState;history.pushState=function(...n){Reflect.apply(t,this,n),Dd.forEach((t=>t.next()))},Ud=!0}(),Dd.add(t),()=>Dd.delete(t)))),new C((t=>(Md||function(){const t=history.replaceState;history.replaceState=function(...n){Reflect.apply(t,this,n),Rd.forEach((t=>t.next()))},Md=!0}(),Rd.add(t),()=>Rd.delete(t)))),Mt(window,"popstate")).pipe(kt((t=>{})))}function Vd(){let t=document.URL;return(n?z(n):V).pipe(Vt((()=>t!==document.URL)),function(t,n,e){var r=l(t)||n||e?{next:t,error:n,complete:e}:t;return r?F((function(t,n){var e;null===(e=r.subscribe)||void 0===e||e.call(r);var o=!0;t.subscribe(D(n,(function(t){var e;null===(e=r.next)||void 0===e||e.call(r,t),n.next(t)}),(function(){var t;o=!1,null===(t=r.complete)||void 0===t||t.call(r),n.complete()}),(function(t){var e;o=!1,null===(e=r.error)||void 0===e||e.call(r,t),n.error(t)}),(function(){var t,n;o&&(null===(t=r.unsubscribe)||void 0===t||t.call(r)),null===(n=r.finalize)||void 0===n||n.call(r)})))})):E}((()=>t=document.URL)),kt((()=>{})));var n}export{qd as observeAdditionOfDescendantNodes,Fd as observeRemovalOfDescendantNodes,zd as observeStateChanges,Vd as observeUrlChanges};
|
|
15
|
+
var t=function(n,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(n,e)};function n(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function e(t,n,e,r){return new(e||(e=Promise))((function(o,i){function u(t){try{s(r.next(t))}catch(t){i(t)}}function c(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(u,c)}s((r=r.apply(t,n||[])).next())}))}function r(t,n){var e,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=n.call(t,u)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function o(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function i(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,i=e.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u}function u(t,n,e){if(e||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))}function c(t){return this instanceof c?(this.v=t,this):new c(t)}function s(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||s(t,n)}))})}function s(t,n){try{(e=o[t](n)).value instanceof c?Promise.resolve(e.value.v).then(a,l):f(i[0][2],e)}catch(t){f(i[0][3],t)}var e}function a(t){s("next",t)}function l(t){s("throw",t)}function f(t,n){t(n),i.shift(),i.length&&s(i[0][0],i[0][1])}}function a(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=o(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}}function l(t){return"function"==typeof t}function f(t){var n=t((function(t){Error.call(t),t.stack=(new Error).stack}));return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var d=f((function(t){return function(n){t(this),this.message=n?n.length+" errors occurred during unsubscription:\n"+n.map((function(t,n){return n+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=n}}));function y(t,n){if(t){var e=t.indexOf(n);0<=e&&t.splice(e,1)}}var v=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var n;return t.prototype.unsubscribe=function(){var t,n,e,r,c;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=o(s),f=a.next();!f.done;f=a.next()){f.value.remove(this)}}catch(n){t={error:n}}finally{try{f&&!f.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var y=this.initialTeardown;if(l(y))try{y()}catch(t){c=t instanceof d?t.errors:[t]}var v=this._finalizers;if(v){this._finalizers=null;try{for(var h=o(v),p=h.next();!p.done;p=h.next()){var m=p.value;try{b(m)}catch(t){c=null!=c?c:[],t instanceof d?c=u(u([],i(c)),i(t.errors)):c.push(t)}}}catch(t){e={error:t}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(e)throw e.error}}}if(c)throw new d(c)}},t.prototype.add=function(n){var e;if(n&&n!==this)if(this.closed)b(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}},t.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},t.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},t.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&y(n,t)},t.prototype.remove=function(n){var e=this._finalizers;e&&y(e,n),n instanceof t&&n._removeParent(this)},t.EMPTY=((n=new t).closed=!0,n),t}(),h=v.EMPTY;function p(t){return t instanceof v||t&&"closed"in t&&l(t.remove)&&l(t.add)&&l(t.unsubscribe)}function b(t){l(t)?t():t.unsubscribe()}var m={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},w=function(t,n){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,u([t,n],i(e)))};function g(t){w((function(){throw t}))}function _(){}function A(t){t()}var x=function(t){function e(n){var e=t.call(this)||this;return e.isStopped=!1,n?(e.destination=n,p(n)&&n.add(e)):e.destination=T,e}return n(e,t),e.create=function(t,n,e){return new E(t,n,e)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(v),S=Function.prototype.bind;function I(t,n){return S.call(t,n)}var O=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(t){j(t)}},t.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(t){j(t)}else j(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){j(t)}},t}(),E=function(t){function e(n,e,r){var o,i,u=t.call(this)||this;l(n)||!n?o={next:null!=n?n:void 0,error:null!=e?e:void 0,complete:null!=r?r:void 0}:u&&m.useDeprecatedNextContext?((i=Object.create(n)).unsubscribe=function(){return u.unsubscribe()},o={next:n.next&&I(n.next,i),error:n.error&&I(n.error,i),complete:n.complete&&I(n.complete,i)}):o=n;return u.destination=new O(o),u}return n(e,t),e}(x);function j(t){g(t)}var T={closed:!0,next:_,error:function(t){throw t},complete:_},P="function"==typeof Symbol&&Symbol.observable||"@@observable";function N(t){return t}function k(t){return 0===t.length?N:1===t.length?t[0]:function(n){return t.reduce((function(t,n){return n(t)}),n)}}var B=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(n){var e=new t;return e.source=this,e.operator=n,e},t.prototype.subscribe=function(t,n,e){var r,o=this,i=(r=t)&&r instanceof x||function(t){return t&&l(t.next)&&l(t.error)&&l(t.complete)}(r)&&p(r)?t:new E(t,n,e);return A((function(){var t=o,n=t.operator,e=t.source;i.add(n?n.call(i,e):e?o._subscribe(i):o._trySubscribe(i))})),i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},t.prototype.forEach=function(t,n){var e=this;return new(n=q(n))((function(n,r){var o=new E({next:function(n){try{t(n)}catch(t){r(t),o.unsubscribe()}},error:r,complete:n});e.subscribe(o)}))},t.prototype._subscribe=function(t){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(t)},t.prototype[P]=function(){return this},t.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return k(t)(this)},t.prototype.toPromise=function(t){var n=this;return new(t=q(t))((function(t,e){var r;n.subscribe((function(t){return r=t}),(function(t){return e(t)}),(function(){return t(r)}))}))},t.create=function(n){return new t(n)},t}();function q(t){var n;return null!==(n=null!=t?t:m.Promise)&&void 0!==n?n:Promise}function F(t){return l(null==t?void 0:t.lift)}function C(t){return function(n){if(F(n))return n.lift((function(n){try{return t(n,this)}catch(t){this.error(t)}}));throw new TypeError("Unable to lift unknown Observable type")}}function M(t,n,e,r,o){return new R(t,n,e,r,o)}var R=function(t){function e(n,e,r,o,i,u){var c=t.call(this,n)||this;return c.onFinalize=i,c.shouldUnsubscribe=u,c._next=e?function(t){try{e(t)}catch(t){n.error(t)}}:t.prototype._next,c._error=o?function(t){try{o(t)}catch(t){n.error(t)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=r?function(){try{r()}catch(t){n.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,c}return n(e,t),e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var e=this.closed;t.prototype.unsubscribe.call(this),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}},e}(x);!function(t){function e(n,e){var r=t.call(this)||this;return r.source=n,r.subjectFactory=e,r._subject=null,r._refCount=0,r._connection=null,F(n)&&(r.lift=n.lift),r}n(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null,null==t||t.unsubscribe()},e.prototype.connect=function(){var t=this,n=this._connection;if(!n){n=this._connection=new v;var e=this.getSubject();n.add(this.source.subscribe(M(e,void 0,(function(){t._teardown(),e.complete()}),(function(n){t._teardown(),e.error(n)}),(function(){return t._teardown()})))),n.closed&&(this._connection=null,n=v.EMPTY)}return n},e.prototype.refCount=function(){return C((function(t,n){var e=null;t._refCount++;var r=M(n,void 0,void 0,void 0,(function(){if(!t||t._refCount<=0||0<--t._refCount)e=null;else{var r=t._connection,o=e;e=null,!r||o&&r!==o||r.unsubscribe(),n.unsubscribe()}}));t.subscribe(r),r.closed||(e=t.connect())}))(this)}}(B);var U={now:function(){return(U.delegate||performance).now()},delegate:void 0},z={schedule:function(t){var n=requestAnimationFrame,e=cancelAnimationFrame,r=n((function(n){e=void 0,t(n)}));return new v((function(){return null==e?void 0:e(r)}))},requestAnimationFrame:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=z.delegate;return((null==e?void 0:e.requestAnimationFrame)||requestAnimationFrame).apply(void 0,u([],i(t)))},cancelAnimationFrame:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return cancelAnimationFrame.apply(void 0,u([],i(t)))},delegate:void 0};function D(t){var n=z.schedule;return new B((function(e){var r=new v,o=t||U,i=o.now(),u=function(c){var s=o.now();e.next({timestamp:t?s:c,elapsed:s-i}),e.closed||r.add(n(u))};return r.add(n(u)),r}))}var L=D(),J=f((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),V=function(t){function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return n(e,t),e.prototype.lift=function(t){var n=new W(this,this);return n.operator=t,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new J},e.prototype.next=function(t){var n=this;A((function(){var e,r;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var i=o(n.currentObservers),u=i.next();!u.done;u=i.next()){u.value.next(t)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}}}))},e.prototype.error=function(t){var n=this;A((function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}}))},e.prototype.complete=function(){var t=this;A((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var n=t.observers;n.length;)n.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var n=this,e=this,r=e.hasError,o=e.isStopped,i=e.observers;return r||o?h:(this.currentObservers=null,i.push(t),new v((function(){n.currentObservers=null,y(i,t)})))},e.prototype._checkFinalizedStatuses=function(t){var n=this,e=n.hasError,r=n.thrownError,o=n.isStopped;e?t.error(r):o&&t.complete()},e.prototype.asObservable=function(){var t=new B;return t.source=this,t},e.create=function(t,n){return new W(t,n)},e}(B),W=function(t){function e(n,e){var r=t.call(this)||this;return r.destination=n,r.source=e,r}return n(e,t),e.prototype.next=function(t){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===e||e.call(n,t)},e.prototype.error=function(t){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===e||e.call(n,t)},e.prototype.complete=function(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)},e.prototype._subscribe=function(t){var n,e;return null!==(e=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==e?e:h},e}(V);!function(t){function e(n){var e=t.call(this)||this;return e._value=n,e}n(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(n){var e=t.prototype._subscribe.call(this,n);return!e.closed&&n.next(this._value),e},e.prototype.getValue=function(){var t=this,n=t.hasError,e=t.thrownError,r=t._value;if(n)throw e;return this._throwIfClosed(),r},e.prototype.next=function(n){t.prototype.next.call(this,this._value=n)}}(V);var Y={now:function(){return(Y.delegate||Date).now()},delegate:void 0};!function(t){function e(n,e,r){void 0===n&&(n=1/0),void 0===e&&(e=1/0),void 0===r&&(r=Y);var o=t.call(this)||this;return o._bufferSize=n,o._windowTime=e,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=e===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,e),o}n(e,t),e.prototype.next=function(n){var e=this,r=e.isStopped,o=e._buffer,i=e._infiniteTimeWindow,u=e._timestampProvider,c=e._windowTime;r||(o.push(n),!i&&o.push(u.now()+c)),this._trimBuffer(),t.prototype.next.call(this,n)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(t),e=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!t.closed;o+=e?1:2)t.next(r[o]);return this._checkFinalizedStatuses(t),n},e.prototype._trimBuffer=function(){var t=this,n=t._bufferSize,e=t._timestampProvider,r=t._buffer,o=t._infiniteTimeWindow,i=(o?1:2)*n;if(n<1/0&&i<r.length&&r.splice(0,r.length-i),!o){for(var u=e.now(),c=0,s=1;s<r.length&&r[s]<=u;s+=2)c=s;c&&r.splice(0,c+1)}}}(V),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n._value=null,n._hasValue=!1,n._isComplete=!1,n}n(e,t),e.prototype._checkFinalizedStatuses=function(t){var n=this,e=n.hasError,r=n._hasValue,o=n._value,i=n.thrownError,u=n.isStopped,c=n._isComplete;e?t.error(i):(u||c)&&(r&&t.next(o),t.complete())},e.prototype.next=function(t){this.isStopped||(this._value=t,this._hasValue=!0)},e.prototype.complete=function(){var n=this,e=n._hasValue,r=n._value;n._isComplete||(this._isComplete=!0,e&&t.prototype.next.call(this,r),t.prototype.complete.call(this))}}(V);var G,H=function(t){function e(n,e){return t.call(this)||this}return n(e,t),e.prototype.schedule=function(t,n){return this},e}(v),X=function(t,n){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setInterval.apply(void 0,u([t,n],i(e)))},K=function(t){return clearInterval(t)},Q=function(t){function e(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r.pending=!1,r}return n(e,t),e.prototype.schedule=function(t,n){if(void 0===n&&(n=0),this.closed)return this;this.state=t;var e=this.id,r=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(r,e,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(r,this.id,n),this},e.prototype.requestAsyncId=function(t,n,e){return void 0===e&&(e=0),X(t.flush.bind(t,this),e)},e.prototype.recycleAsyncId=function(t,n,e){if(void 0===e&&(e=0),null!=e&&this.delay===e&&!1===this.pending)return n;K(n)},e.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var e=this._execute(t,n);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,n){var e,r=!1;try{this.work(t)}catch(t){r=!0,e=t||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),e},e.prototype.unsubscribe=function(){if(!this.closed){var n=this.id,e=this.scheduler,r=e.actions;this.work=this.state=this.scheduler=null,this.pending=!1,y(r,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(H),Z=1,$={};function tt(t){return t in $&&(delete $[t],!0)}var nt=function(t){var n=Z++;return $[n]=!0,G||(G=Promise.resolve()),G.then((function(){return tt(n)&&t()})),n},et=function(t){tt(t)},rt={setImmediate:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=rt.delegate;return((null==e?void 0:e.setImmediate)||nt).apply(void 0,u([],i(t)))},clearImmediate:function(t){return et(t)},delegate:void 0},ot=function(t){function e(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r}return n(e,t),e.prototype.requestAsyncId=function(n,e,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,n,e,r):(n.actions.push(this),n._scheduled||(n._scheduled=rt.setImmediate(n.flush.bind(n,void 0))))},e.prototype.recycleAsyncId=function(n,e,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,n,e,r);n.actions.some((function(t){return t.id===e}))||(rt.clearImmediate(e),n._scheduled=void 0)},e}(Q),it=function(){function t(n,e){void 0===e&&(e=t.now),this.schedulerActionCtor=n,this.now=e}return t.prototype.schedule=function(t,n,e){return void 0===n&&(n=0),new this.schedulerActionCtor(this,t).schedule(e,n)},t.now=Y.now,t}(),ut=function(t){function e(n,e){void 0===e&&(e=it.now);var r=t.call(this,n,e)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return n(e,t),e.prototype.flush=function(t){var n=this.actions;if(this._active)n.push(t);else{var e;this._active=!0;do{if(e=t.execute(t.state,t.delay))break}while(t=n.shift());if(this._active=!1,e){for(;t=n.shift();)t.unsubscribe();throw e}}},e}(it);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.flush=function(t){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var e,r=this.actions;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,e){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw e}},e}(ut))(ot),new ut(Q);var ct=function(t){function e(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r}return n(e,t),e.prototype.schedule=function(n,e){return void 0===e&&(e=0),e>0?t.prototype.schedule.call(this,n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)},e.prototype.execute=function(n,e){return e>0||this.closed?t.prototype.execute.call(this,n,e):this._execute(n,e)},e.prototype.requestAsyncId=function(n,e,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?t.prototype.requestAsyncId.call(this,n,e,r):n.flush(this)},e}(Q);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(ut))(ct);var st=function(t){function e(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r}return n(e,t),e.prototype.requestAsyncId=function(n,e,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,n,e,r):(n.actions.push(this),n._scheduled||(n._scheduled=z.requestAnimationFrame((function(){return n.flush(void 0)}))))},e.prototype.recycleAsyncId=function(n,e,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,n,e,r);n.actions.some((function(t){return t.id===e}))||(z.cancelAnimationFrame(e),n._scheduled=void 0)},e}(Q);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.flush=function(t){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var e,r=this.actions;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,e){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw e}},e}(ut))(st),function(t){function e(n,e){void 0===n&&(n=at),void 0===e&&(e=1/0);var r=t.call(this,n,(function(){return r.frame}))||this;return r.maxFrames=e,r.frame=0,r.index=-1,r}n(e,t),e.prototype.flush=function(){for(var t,n,e=this.actions,r=this.maxFrames;(n=e[0])&&n.delay<=r&&(e.shift(),this.frame=n.delay,!(t=n.execute(n.state,n.delay))););if(t){for(;n=e.shift();)n.unsubscribe();throw t}},e.frameTimeFactor=10}(ut);var at=function(t){function e(n,e,r){void 0===r&&(r=n.index+=1);var o=t.call(this,n,e)||this;return o.scheduler=n,o.work=e,o.index=r,o.active=!0,o.index=n.index=r,o}return n(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var o=new e(this.scheduler,this.work);return this.add(o),o.schedule(n,r)}return v.EMPTY},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var o=t.actions;return o.push(this),o.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,n,e){},e.prototype._execute=function(n,e){if(!0===this.active)return t.prototype._execute.call(this,n,e)},e.sortActions=function(t,n){return t.delay===n.delay?t.index===n.index?0:t.index>n.index?1:-1:t.delay>n.delay?1:-1},e}(Q),lt=new B((function(t){return t.complete()}));function ft(t){return t[t.length-1]}function dt(t){return(n=ft(t))&&l(n.schedule)?t.pop():void 0;var n}function yt(t,n){return"number"==typeof ft(t)?t.pop():n}var vt=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function ht(t){return l(null==t?void 0:t.then)}function pt(t){return l(t[P])}function bt(t){return Symbol.asyncIterator&&l(null==t?void 0:t[Symbol.asyncIterator])}function mt(t){return new TypeError("You provided "+(null!==t&&"object"==typeof t?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var wt,gt="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function _t(t){return l(null==t?void 0:t[gt])}function At(t){return s(this,arguments,(function(){var n,e,o;return r(this,(function(r){switch(r.label){case 0:n=t.getReader(),r.label=1;case 1:r.trys.push([1,,9,10]),r.label=2;case 2:return[4,c(n.read())];case 3:return e=r.sent(),o=e.value,e.done?[4,c(void 0)]:[3,5];case 4:return[2,r.sent()];case 5:return[4,c(o)];case 6:return[4,r.sent()];case 7:return r.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}}))}))}function xt(t){return l(null==t?void 0:t.getReader)}function St(t){if(t instanceof B)return t;if(null!=t){if(pt(t))return n=t,new B((function(t){var e=n[P]();if(l(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(vt(t))return function(t){return new B((function(n){for(var e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()}))}(t);if(ht(t))return function(t){return new B((function(n){t.then((function(t){n.closed||(n.next(t),n.complete())}),(function(t){return n.error(t)})).then(null,g)}))}(t);if(bt(t))return It(t);if(_t(t))return function(t){return new B((function(n){var e,r;try{for(var i=o(t),u=i.next();!u.done;u=i.next()){var c=u.value;if(n.next(c),n.closed)return}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}n.complete()}))}(t);if(xt(t))return It(At(t))}var n;throw mt(t)}function It(t){return new B((function(n){(function(t,n){var o,i,u,c;return e(this,void 0,void 0,(function(){var e,s;return r(this,(function(r){switch(r.label){case 0:r.trys.push([0,5,6,11]),o=a(t),r.label=1;case 1:return[4,o.next()];case 2:if((i=r.sent()).done)return[3,4];if(e=i.value,n.next(e),n.closed)return[2];r.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=r.sent(),u={error:s},[3,11];case 6:return r.trys.push([6,,9,10]),i&&!i.done&&(c=o.return)?[4,c.call(o)]:[3,8];case 7:r.sent(),r.label=8;case 8:return[3,10];case 9:if(u)throw u.error;return[7];case 10:return[7];case 11:return n.complete(),[2]}}))}))})(t,n).catch((function(t){return n.error(t)}))}))}function Ot(t,n,e,r,o){void 0===r&&(r=0),void 0===o&&(o=!1);var i=n.schedule((function(){e(),o?t.add(this.schedule(null,r)):this.unsubscribe()}),r);if(t.add(i),!o)return i}function Et(t,n){return void 0===n&&(n=0),C((function(e,r){e.subscribe(M(r,(function(e){return Ot(r,t,(function(){return r.next(e)}),n)}),(function(){return Ot(r,t,(function(){return r.complete()}),n)}),(function(e){return Ot(r,t,(function(){return r.error(e)}),n)})))}))}function jt(t,n){return void 0===n&&(n=0),C((function(e,r){r.add(t.schedule((function(){return e.subscribe(r)}),n))}))}function Tt(t,n){if(!t)throw new Error("Iterable cannot be null");return new B((function(e){Ot(e,n,(function(){var r=t[Symbol.asyncIterator]();Ot(e,n,(function(){r.next().then((function(t){t.done?e.complete():e.next(t.value)}))}),0,!0)}))}))}function Pt(t,n){if(null!=t){if(pt(t))return function(t,n){return St(t).pipe(jt(n),Et(n))}(t,n);if(vt(t))return function(t,n){return new B((function(e){var r=0;return n.schedule((function(){r===t.length?e.complete():(e.next(t[r++]),e.closed||this.schedule())}))}))}(t,n);if(ht(t))return function(t,n){return St(t).pipe(jt(n),Et(n))}(t,n);if(bt(t))return Tt(t,n);if(_t(t))return function(t,n){return new B((function(e){var r;return Ot(e,n,(function(){r=t[gt](),Ot(e,n,(function(){var t,n,o;try{n=(t=r.next()).value,o=t.done}catch(t){return void e.error(t)}o?e.complete():e.next(n)}),0,!0)})),function(){return l(null==r?void 0:r.return)&&r.return()}}))}(t,n);if(xt(t))return function(t,n){return Tt(At(t),n)}(t,n)}throw mt(t)}function Nt(t,n){return n?Pt(t,n):St(t)}function kt(t,n){return C((function(e,r){var o=0;e.subscribe(M(r,(function(e){r.next(t.call(n,e,o++))})))}))}!function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(wt||(wt={})),f((function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})),f((function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),f((function(t){return function(n){t(this),this.name="NotFoundError",this.message=n}})),f((function(t){return function(n){t(this),this.name="SequenceError",this.message=n}})),f((function(t){return function(n){void 0===n&&(n=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n}}));var Bt=Array.isArray;function qt(t){return kt((function(n){return function(t,n){return Bt(n)?t.apply(void 0,u([],i(n))):t(n)}(t,n)}))}function Ft(t,n,e){return void 0===e&&(e=1/0),l(n)?Ft((function(e,r){return kt((function(t,o){return n(e,t,r,o)}))(St(t(e,r)))}),e):("number"==typeof n&&(e=n),C((function(n,r){return function(t,n,e,r,o,i,u,c){var s=[],a=0,l=0,f=!1,d=function(){!f||s.length||a||n.complete()},y=function(t){return a<r?v(t):s.push(t)},v=function(t){i&&n.next(t),a++;var c=!1;St(e(t,l++)).subscribe(M(n,(function(t){null==o||o(t),i?y(t):n.next(t)}),(function(){c=!0}),void 0,(function(){if(c)try{a--;for(var t=function(){var t=s.shift();u?Ot(n,u,(function(){return v(t)})):v(t)};s.length&&a<r;)t();d()}catch(t){n.error(t)}})))};return t.subscribe(M(n,y,(function(){f=!0,d()}))),function(){null==c||c()}}(n,r,t,e)})))}function Ct(t){return void 0===t&&(t=1/0),Ft(N,t)}var Mt=["addListener","removeListener"],Rt=["addEventListener","removeEventListener"],Ut=["on","off"];function zt(t,n,e,r){if(l(e)&&(r=e,e=void 0),r)return zt(t,n,e).pipe(qt(r));var o=i(function(t){return l(t.addEventListener)&&l(t.removeEventListener)}(t)?Rt.map((function(r){return function(o){return t[r](n,o,e)}})):function(t){return l(t.addListener)&&l(t.removeListener)}(t)?Mt.map(Dt(t,n)):function(t){return l(t.on)&&l(t.off)}(t)?Ut.map(Dt(t,n)):[],2),u=o[0],c=o[1];if(!u&&vt(t))return Ft((function(t){return zt(t,n,e)}))(St(t));if(!u)throw new TypeError("Invalid event target");return new B((function(t){var n=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return t.next(1<n.length?n:n[0])};return u(n),function(){return c(n)}}))}function Dt(t,n){return function(e){return function(r){return t[e](n,r)}}}function Lt(t,n){return C((function(e,r){var o=0;e.subscribe(M(r,(function(e){return t.call(n,e,o++)&&r.next(e)})))}))}function Jt(...t){return new B((n=>{const e=new MutationObserver((t=>n.next(t)));return e.observe(...t),()=>e.disconnect()}))}new B(_);var Vt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Wt={},Yt={},Gt={},Ht={},Xt={};Xt.go=void 0,Xt.go=function(t){return t()};var Kt={};Kt.goMicrotask=void 0,Kt.goMicrotask=function(t){return new Promise(((n,e)=>{queueMicrotask((async()=>{try{n(await t())}catch(t){e(t)}}))}))};var Qt={},Zt={},$t={},tn={},nn={};nn.random=void 0,nn.random=function(t,n){return Math.random()*(n-t)+t};var en={};en.randomInt=void 0,en.randomInt=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t))+t};var rn,on,un,cn={};cn.randomIntInclusive=void 0,cn.randomIntInclusive=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t+1))+t},rn=tn,on=Vt&&Vt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),(un=Vt&&Vt.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||on(n,t,e)})(nn,rn),un(en,rn),un(cn,rn),$t.calculateExponentialBackoffTimeout=void 0;const sn=tn;$t.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:n,maxTimeout:e=1/0,factor:r=2,jitter:o=!0}){const i=Math.min(r**n*t,e);return o?(0,sn.randomIntInclusive)(0,i):i};var an={};an.setTimeout=void 0,an.setTimeout=function(t,n){const e=globalThis.setTimeout(n,t);return()=>clearTimeout(e)};var ln={setSchedule:void 0};const fn=an;ln.setSchedule=function(t,n){const e=t-Date.now();return(0,fn.setTimeout)(e,n)};var dn={};dn.setInterval=void 0,dn.setInterval=function(t,n){const e=globalThis.setInterval(n,t);return()=>clearInterval(e)};var yn={setImmediate:void 0};const vn=an;yn.setImmediate=function(t){if(globalThis.setImmediate){const n=globalThis.setImmediate(t);return()=>clearImmediate(n)}return(0,vn.setTimeout)(0,t)};var hn={setTimeoutLoop:void 0};const pn=an;hn.setTimeoutLoop=function(t,n){let e=!1,r=(0,pn.setTimeout)(t,(async function o(){await n(),e||(r=(0,pn.setTimeout)(t,o))}));return()=>{e=!0,r()}};var bn={setDynamicTimeoutLoop:void 0};const mn=an;bn.setDynamicTimeoutLoop=function(t,n){let e=!1,r=(0,mn.setTimeout)(t,(async function o(){const i=Date.now();await n();const u=Date.now()-i;e||(r=(0,mn.setTimeout)(Math.max(t-u,0),o))}));return()=>{e=!0,r()}},function(t){var n=Vt&&Vt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Vt&&Vt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e($t,t),e(an,t),e(ln,t),e(dn,t),e(yn,t),e(hn,t),e(bn,t)}(Zt),Qt.goMacrotask=void 0;const wn=Zt;Qt.goMacrotask=function(t){return new Promise(((n,e)=>{(0,wn.setImmediate)((async()=>{try{n(await t())}catch(t){e(t)}}))}))},function(t){var n=Vt&&Vt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Vt&&Vt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(Xt,t),e(Kt,t),e(Qt,t)}(Ht);var gn={},_n={},An={},xn={},Sn={};function In(t){return Array.isArray(t)}Sn.isntEmptyArray=Sn.isEmptyArray=Sn.isntArray=Sn.isArray=void 0,Sn.isArray=In,Sn.isntArray=function(t){return!In(t)},Sn.isEmptyArray=function(t){return 0===t.length},Sn.isntEmptyArray=function(t){return 0!==t.length};var On={},En={};function jn(t){return null===t}En.isntNull=En.isNull=void 0,En.isNull=jn,En.isntNull=function(t){return!jn(t)};var Tn={};function Pn(t){return void 0===t}Tn.isntUndefined=Tn.isUndefined=void 0,Tn.isUndefined=Pn,Tn.isntUndefined=function(t){return!Pn(t)};var Nn={};function kn(t){return"function"==typeof t}Nn.isntFunction=Nn.isFunction=void 0,Nn.isFunction=kn,Nn.isntFunction=function(t){return!kn(t)},On.isntAsyncIterable=On.isAsyncIterable=void 0;const Bn=En,qn=Tn,Fn=Nn;function Cn(t){return(0,Bn.isntNull)(t)&&(0,qn.isntUndefined)(t)&&(0,Fn.isFunction)(t[Symbol.asyncIterator])}On.isAsyncIterable=Cn,On.isntAsyncIterable=function(t){return!Cn(t)};var Mn={};function Rn(t){return"bigint"==typeof t}Mn.isntBigInt=Mn.isBigInt=void 0,Mn.isBigInt=Rn,Mn.isntBigInt=function(t){return!Rn(t)};var Un={};function zn(t){return"boolean"==typeof t}Un.isntBoolean=Un.isBoolean=void 0,Un.isBoolean=zn,Un.isntBoolean=function(t){return!zn(t)};var Dn={},Ln={};function Jn(t){return"string"==typeof t}Ln.isntString=Ln.isString=void 0,Ln.isString=Jn,Ln.isntString=function(t){return!Jn(t)},Dn.isntChar=Dn.isChar=void 0;const Vn=Ln;function Wn(t){return(0,Vn.isString)(t)&&1===t.length}Dn.isChar=Wn,Dn.isntChar=function(t){return!Wn(t)};var Yn={};function Gn(t){return t instanceof Date}Yn.isntDate=Yn.isDate=void 0,Yn.isDate=Gn,Yn.isntDate=function(t){return!Gn(t)};var Hn={};Hn.inEnum=void 0,Hn.inEnum=function(t,n){return Object.values(n).includes(t)};var Xn={};function Kn(t){return t instanceof Error}Xn.isntError=Xn.isError=void 0,Xn.isError=Kn,Xn.isntError=function(t){return!Kn(t)};var Qn={};function Zn(t){return!t}Qn.isntFalsy=Qn.isFalsy=void 0,Qn.isFalsy=Zn,Qn.isntFalsy=function(t){return!Zn(t)};var $n={};$n.isntIterable=$n.isIterable=void 0;const te=En,ne=Tn,ee=Nn;function re(t){return(0,te.isntNull)(t)&&(0,ne.isntUndefined)(t)&&(0,ee.isFunction)(t[Symbol.iterator])}$n.isIterable=re,$n.isntIterable=function(t){return!re(t)};var oe={},ie={};function ue(t){return"number"==typeof t}function ce(t){return Number.isNaN(t)}ie.isntNaN=ie.isNaN=ie.isNegativeInfinity=ie.isPositiveInfinity=ie.isFinite=ie.isntNumber=ie.isNumber=void 0,ie.isNumber=ue,ie.isntNumber=function(t){return!ue(t)},ie.isFinite=function(t){return Number.isFinite(t)},ie.isPositiveInfinity=function(t){return t===1/0},ie.isNegativeInfinity=function(t){return t===-1/0},ie.isNaN=ce,ie.isntNaN=function(t){return!ce(t)};var se={},ae="object"==typeof Vt&&Vt&&Vt.Object===Object&&Vt,le="object"==typeof self&&self&&self.Object===Object&&self,fe=(ae||le||Function("return this")()).Symbol,de=fe,ye=Object.prototype,ve=ye.hasOwnProperty,he=ye.toString,pe=de?de.toStringTag:void 0;var be=function(t){var n=ve.call(t,pe),e=t[pe];try{t[pe]=void 0;var r=!0}catch(t){}var o=he.call(t);return r&&(n?t[pe]=e:delete t[pe]),o},me=Object.prototype.toString;var we=be,ge=function(t){return me.call(t)},_e=fe?fe.toStringTag:void 0;var Ae=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":_e&&_e in Object(t)?we(t):ge(t)};var xe=function(t,n){return function(e){return t(n(e))}}(Object.getPrototypeOf,Object);var Se=Ae,Ie=xe,Oe=function(t){return null!=t&&"object"==typeof t},Ee=Function.prototype,je=Object.prototype,Te=Ee.toString,Pe=je.hasOwnProperty,Ne=Te.call(Object);var ke=function(t){if(!Oe(t)||"[object Object]"!=Se(t))return!1;var n=Ie(t);if(null===n)return!0;var e=Pe.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Te.call(e)==Ne},Be=Vt&&Vt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};se.isntEmptyObject=se.isEmptyObject=se.isntPlainObject=se.isPlainObject=se.isntObject=se.isObject=void 0;const qe=Be(ke);function Fe(t){return null!==t&&"object"==typeof t}function Ce(t){return(0,qe.default)(t)}se.isObject=Fe,se.isntObject=function(t){return!Fe(t)},se.isPlainObject=Ce,se.isntPlainObject=function(t){return!Ce(t)},se.isEmptyObject=function(t){return 0===Object.keys(t).length},se.isntEmptyObject=function(t){return 0!==Object.keys(t).length},oe.isntJsonable=oe.isJsonable=oe.isntJson=oe.isJson=void 0;const Me=En,Re=Un,Ue=Ln,ze=ie,De=Sn,Le=se;function Je(t){return(0,Me.isNull)(t)||(0,Re.isBoolean)(t)||(0,Ue.isString)(t)||(0,ze.isNumber)(t)||(0,De.isArray)(t)&&t.every(Je)||(0,Le.isPlainObject)(t)&&Object.values(t).every(Je)}oe.isJson=Je,oe.isntJson=function(t){return!Je(t)},oe.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},oe.isntJsonable=function t(n){return!t()};var Ve={};Ve.isntNullish=Ve.isNullish=void 0;const We=En,Ye=Tn;function Ge(t){return(0,We.isNull)(t)||(0,Ye.isUndefined)(t)}Ve.isNullish=Ge,Ve.isntNullish=function(t){return!Ge(t)};var He={};He.isPromiseLike=He.isntPromiseLike=He.isntPromise=He.isPromise=void 0;const Xe=se,Ke=Nn;function Qe(t){return t instanceof Promise}function Ze(t){return(0,Xe.isObject)(t)&&(0,Ke.isFunction)(t.then)}He.isPromise=Qe,He.isntPromise=function(t){return!Qe(t)},He.isntPromiseLike=function(t){return!Ze(t)},He.isPromiseLike=Ze;var $e={};$e.isAbsoluteURL=void 0,$e.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}};var tr={};function nr(t){return t instanceof RegExp}tr.isntRegExp=tr.isRegExp=void 0,tr.isRegExp=nr,tr.isntRegExp=function(t){return!nr(t)};var er={};function rr(t){return"symbol"==typeof t}er.isntSymbol=er.isSymbol=void 0,er.isSymbol=rr,er.isntSymbol=function(t){return!rr(t)},function(t){var n=Vt&&Vt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Vt&&Vt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(Sn,t),e(On,t),e(Mn,t),e(Un,t),e(Dn,t),e(Yn,t),e(Hn,t),e(Xn,t),e(Qn,t),e(Nn,t),e($n,t),e(oe,t),e(En,t),e(Ve,t),e(ie,t),e(se,t),e(He,t),e(Ln,t),e(Tn,t),e($e,t),e(tr,t),e(er,t)}(xn);var or={};or.traverseErrorPrototypeChain=void 0,or.traverseErrorPrototypeChain=function*(t){let n=t;for(;(n=Object.getPrototypeOf(n))&&(yield n,n!==Error.prototype););},An.getErrorNames=void 0;const ir=xn,ur=or;An.getErrorNames=function*(t){var n;if((0,ir.isError)(t))for(const e of(0,ur.traverseErrorPrototypeChain)(t))(null===(n=e.constructor)||void 0===n?void 0:n.name)&&(yield e.constructor.name);else yield t.name,yield*t.ancestors};var cr={isSerializableError:void 0};const sr=xn;var ar;function lr(){if(ar)return _n;ar=1,_n.CustomError=void 0;const t=nu(),n=An,e=xn,r=cr;class o extends Error{get name(){var e,r;return null!==(r=null!==(e=(0,t.first)((0,n.getErrorNames)(this)))&&void 0!==e?e:o.name)&&void 0!==r?r:"CustomError"}static[Symbol.hasInstance](o){var i;if((0,e.isError)(o)||(0,r.isSerializableError)(o)){const e=[null!==(i=this.prototype.constructor.name)&&void 0!==i?i:this.name,...(0,n.getErrorNames)(this.prototype)].reverse(),r=(0,t.toArray)((0,n.getErrorNames)(o)).reverse();return e.every(((t,n)=>t===r[n]))}return!1}}return _n.CustomError=o,_n}cr.isSerializableError=function(t){return(0,sr.isObject)(t)&&(0,sr.isString)(t.name)&&(0,sr.isString)(t.message)&&((0,sr.isString)(t.stack)||(0,sr.isNull)(t.stack))&&(0,sr.isArray)(t.ancestors)&&t.ancestors.every(sr.isString)};var fr,dr={};function yr(){if(fr)return dr;fr=1,dr.AssertionError=void 0;const t=lr();class n extends t.CustomError{}return dr.AssertionError=n,dr}var vr,hr={};var pr={},br={},mr={};mr.pass=void 0,mr.pass=function(){},function(t){var n=Vt&&Vt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]});(Vt&&Vt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)})(mr,t)}(br),pr.hydrate=void 0;const wr=br;function gr(t,n){const e=function(){(0,wr.pass)()};return(e.prototype=Object.create(t.prototype)).constructor=e,Object.defineProperty(e,"name",{value:n}),e}pr.hydrate=function(t){var n;const e=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of e)r=gr(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(n=t.stack)&&void 0!==n?n:void 0,o};var _r,Ar,xr,Sr={};function Ir(){return Ar||(Ar=1,function(t){var n=Vt&&Vt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Vt&&Vt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(lr(),t),e(yr(),t),e(cr,t),e(function(){if(vr)return hr;vr=1,hr.normalize=void 0;const t=An,n=nu();return hr.normalize=function(e){var r;const[o,...i]=(0,n.toArray)((0,t.getErrorNames)(e));return{name:o,ancestors:i,message:e.message,stack:null!==(r=e.stack)&&void 0!==r?r:null}},hr}(),t),e(pr,t),e(function(){if(_r)return Sr;_r=1,Sr.assert=void 0;const t=yr();return Sr.assert=function(n,e){if(!n)throw new t.AssertionError(e)},Sr}(),t),e(An,t),e(or,t)}(gn)),gn}var Or={chunkByAsync:void 0};const Er=xn;Or.chunkByAsync=function(t,n){return(0,Er.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n)};var jr={};jr.chunkBy=void 0,jr.chunkBy=function*(t,n){let e=[],r=0;for(const o of t)e.push(o),n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)};var Tr,Pr={};var Nr={concatAsync:void 0};const kr=xn,Br=Ht;Nr.concatAsync=function(t,...n){return(0,Br.go)((async function*(){for(const e of[t,...n])if((0,kr.isAsyncIterable)(e))for await(const t of e)yield t;else for(const t of e)yield t}))};var qr={concat:void 0};const Fr=Ht;qr.concat=function(t,...n){return(0,Fr.go)((function*(){for(const e of[t,...n])yield*e}))};var Cr={},Mr={filterAsync:void 0};const Rr=xn;Mr.filterAsync=function(t,n){return(0,Rr.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e)&&(yield r),e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e)&&(yield r),e++}(t,n)};var Ur={};Ur.toSetAsync=void 0,Ur.toSetAsync=async function(t){const n=new Set;for await(const e of t)n.add(await e);return n},Cr.differenceAsync=void 0;const zr=Mr,Dr=Ur;Cr.differenceAsync=async function*(t,n){const e=await(0,Dr.toSetAsync)(n);yield*(0,zr.filterAsync)(t,(async t=>!e.has(await t)))};var Lr={},Jr={};Jr.filter=void 0,Jr.filter=function*(t,n){let e=0;for(const r of t)n(r,e)&&(yield r),e++};var Vr={};Vr.toSet=void 0,Vr.toSet=function(t){return new Set(t)},Lr.difference=void 0;const Wr=Jr,Yr=Vr;Lr.difference=function(t,n){const e=(0,Yr.toSet)(n);return(0,Wr.filter)(t,(t=>!e.has(t)))};var Gr,Hr={},Xr={};Xr.copyIterable=Xr.copyAsyncIterable=void 0,Xr.copyAsyncIterable=async function*(t){for await(const n of t)yield n},Xr.copyIterable=function*(t){for(const n of t)yield n};var Kr,Qr={},Zr={};Zr.toArrayAsync=void 0,Zr.toArrayAsync=async function(t){const n=[];for await(const e of t)n.push(e);return n};var $r,to={};var no={dropUntilAsync:void 0};const eo=xn;no.dropUntilAsync=function(t,n){return(0,eo.isAsyncIterable)(t)?async function*(t,n){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}(t,n):async function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}(t,n)};var ro={};ro.dropUntil=void 0,ro.dropUntil=function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}};var oo,io={};var uo={},co={},so={flattenByAsync:void 0};const ao=xn;async function*lo(t,n,e){for(const r of t)fo(r)&&await n(r,e)?yield*lo(r,n,e+1):yield r}function fo(t){return(0,ao.isIterable)(t)&&(0,ao.isntChar)(t)}var yo,vo;function ho(){if(yo)return co;yo=1,co.flattenDeepAsync=void 0;const t=so,n=Ir();return co.flattenDeepAsync=function(e,r=1/0){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter depth must be an integer"),(0,n.assert)(r>=0,"The parameter depth must be greater than or equal to 0"),(0,t.flattenByAsync)(e,((t,n)=>n<=r))},co}so.flattenByAsync=function(t,n){return(0,ao.isAsyncIterable)(t)?async function*(t,n){const e=1;for await(const r of t)fo(r)&&await n(r,e)?yield*lo(r,n,e+1):yield r}(t,n):function(t,n){return lo(t,n,1)}(t,n)};var po={flattenBy:void 0};const bo=xn;function*mo(t,n,e){for(const o of t)(0,bo.isIterable)(r=o)&&(0,bo.isntChar)(r)&&n(o,e)?yield*mo(o,n,e+1):yield o;var r}po.flattenBy=function(t,n){return mo(t,n,1)};var wo,go={};function _o(){if(wo)return go;wo=1,go.flattenDeep=void 0;const t=po,n=Ir();return go.flattenDeep=function(e,r=1/0){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter depth must be an integer"),(0,n.assert)(r>=0,"The parameter depth must be greater than or equal to 0"),(0,t.flattenBy)(e,((t,n)=>n<=r))},go}var Ao,xo={};var So={intersectionAsync:void 0};const Io=Mr,Oo=Ur;So.intersectionAsync=async function*(t,n){const e=await(0,Oo.toSetAsync)(n);yield*(0,Io.filterAsync)(t,(async t=>e.has(await t)))};var Eo={intersection:void 0};const jo=Jr,To=Vr;Eo.intersection=function(t,n){const e=(0,To.toSet)(n);return(0,jo.filter)(t,(t=>e.has(t)))};var Po={mapAsync:void 0};const No=xn;Po.mapAsync=function(t,n){return(0,No.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)yield await n(r,e),e++}(t,n):async function*(t,n){let e=0;for(const r of t)yield await n(r,e),e++}(t,n)};var ko={};ko.map=void 0,ko.map=function*(t,n){let e=0;for(const r of t)yield n(r,e),e++};var Bo,qo={};function Fo(){if(Bo)return qo;Bo=1,qo.repeatAsync=void 0;const t=Ht,n=Ir();return qo.repeatAsync=function(e,r){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter times must be an integer"),(0,n.assert)(r>=0,"The parameter times must be greater than or equal to 0"),r===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,t.go)((async function*(){const t=[];if(r>0){for await(const n of e)yield n,t.push(n);r--}for(;r>0;)yield*t,r--}))},qo}var Co,Mo={};function Ro(){if(Co)return Mo;Co=1,Mo.repeat=void 0;const t=Ht,n=Ir();return Mo.repeat=function(e,r){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter times must be an integer"),(0,n.assert)(r>=0,"The parameter times must be greater than or equal to 0"),r===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,t.go)((function*(){const t=[];if(r>0){for(const n of e)yield n,t.push(n);r--}for(;r>0;)yield*t,r--}))},Mo}var Uo,zo={};var Do,Lo={};var Jo={};Jo.splitAsync=void 0,Jo.splitAsync=async function*(t,n){let e=[];for await(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var Vo={splitByAsync:void 0};const Wo=xn;Vo.splitByAsync=function(t,n){return(0,Wo.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n)};var Yo={};Yo.splitBy=void 0,Yo.splitBy=function*(t,n){let e=[],r=0;for(const o of t)n(o,r)?(yield e,e=[]):e.push(o),r++;yield e};var Go={};Go.split=void 0,Go.split=function*(t,n){let e=[];for(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var Ho,Xo={};var Ko,Qo={};var Zo,$o={};var ti={takeUntilAsync:void 0};const ni=xn;ti.takeUntilAsync=function(t,n){return(0,ni.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t){if(await n(r,e))break;yield r,e++}}(t,n):async function*(t,n){let e=0;for(const r of t){if(await n(r,e))break;yield r,e++}}(t,n)};var ei={};ei.takeUntil=void 0,ei.takeUntil=function*(t,n){let e=0;for(const r of t){if(n(r,e))break;yield r,e++}};var ri,oi={};var ii={tapAsync:void 0};const ui=xn;ii.tapAsync=function(t,n){return(0,ui.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e),yield r,e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e),yield r,e++}(t,n)};var ci={};ci.tap=void 0,ci.tap=function*(t,n){let e=0;for(const r of t)n(r,e),yield r,e++};var si={};si.toAsyncIterable=void 0,si.toAsyncIterable=async function*(t){for(const n of t)yield await n};var ai={};ai.transformAsync=void 0,ai.transformAsync=async function*(t,n){yield*n(t)};var li={};li.transform=void 0,li.transform=function*(t,n){yield*n(t)};var fi={};fi.uniqAsync=void 0,fi.uniqAsync=async function*(t){const n=new Set;for await(const e of t)n.has(e)||(yield e,n.add(e))};var di={uniqByAsync:void 0};const yi=xn;di.uniqByAsync=function(t,n){return(0,yi.isAsyncIterable)(t)?async function*(t,n){const e=new Set;let r=0;for await(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n):async function*(t,n){const e=new Set;let r=0;for(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n)};var vi={};vi.uniqBy=void 0,vi.uniqBy=function*(t,n){const e=new Set;let r=0;for(const o of t){const t=n(o,r);e.has(t)||(yield o,e.add(t)),r++}};var hi={};hi.uniq=void 0,hi.uniq=function*(t){const n=new Set;for(const e of t)n.has(e)||(yield e,n.add(e))};var pi={zipAsync:void 0};const bi=xn;var mi;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(mi||(mi={})),pi.zipAsync=function(t,...n){return async function*(...t){var n,e,r,o;const i=t.length,u=t.map((t=>(0,bi.isAsyncIterable)(t)?[mi.Async,t[Symbol.asyncIterator]()]:[mi.Sync,t[Symbol.iterator]()])),c=u.map((()=>!1));try{for(;;){const t=new Array(i);for(let n=0;n<i;n++){const[e,r]=u[n];let o;if(o=e===mi.Async?await r.next():r.next(),o.done)return void(c[n]=!0);t[n]=await o.value}yield t}}finally{const t=u.filter(((t,n)=>!c[n]));for(const[i,u]of t)i===mi.Async?await(null===(e=(n=u).return)||void 0===e?void 0:e.call(n)):null===(o=(r=u).return)||void 0===o||o.call(r)}}(t,...n)};var wi,gi={};function _i(){return wi||(wi=1,function(t){var n=Vt&&Vt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Vt&&Vt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(function(){if(xr)return Gt;xr=1,Gt.chunkAsync=void 0;const t=Ht,n=Ir();return Gt.chunkAsync=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter size must be an integer"),(0,n.assert)(r>0,"The parameter size must be greater than 0"),(0,t.go)((async function*(){let t=[];for await(const n of e)t.push(n),t.length>=r&&(yield t,t=[]);t.length&&(yield t)}))},Gt}(),t),e(Or,t),e(jr,t),e(function(){if(Tr)return Pr;Tr=1,Pr.chunk=void 0;const t=Ht,n=Ir();return Pr.chunk=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter size must be an integer"),(0,n.assert)(r>0,"The parameter size must be greater than 0"),(0,t.go)((function*(){let t=[];for(const n of e)t.push(n),t.length>=r&&(yield t,t=[]);t.length&&(yield t)}))},Pr}(),t),e(Nr,t),e(qr,t),e(Cr,t),e(Lr,t),e(function(){if(Gr)return Hr;Gr=1,Hr.dropAsync=void 0;const t=Ht,n=Xr,e=Ir();return Hr.dropAsync=function(r,o){return(0,e.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,e.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,n.copyAsyncIterable)(r):(0,t.go)((async function*(){var t;const n=r[Symbol.asyncIterator]();let e;try{let r;for(;({value:r,done:e}=await n.next()),!(e||o<=0);)o--;for(;!e;)yield r,({value:r,done:e}=await n.next())}finally{e||await(null===(t=n.return)||void 0===t?void 0:t.call(n))}}))},Hr}(),t),e(function(){if(Kr)return Qr;Kr=1,Qr.dropRightAsync=void 0;const t=Ht,n=Xr,e=Ir(),r=Zr;return Qr.dropRightAsync=function(o,i){return(0,e.assert)(Number.isInteger(i),"The parameter count must be an integer"),(0,e.assert)(i>=0,"The parameter count must be greater than or equal to 0"),0===i?(0,n.copyAsyncIterable)(o):(0,t.go)((async function*(){const t=(await(0,r.toArrayAsync)(o)).slice(0,-i);for(const n of t)yield n}))},Qr}(),t),e(function(){if($r)return to;$r=1,to.dropRight=void 0;const t=Ht,n=Xr,e=Ir();return to.dropRight=function(r,o){return(0,e.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,e.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,n.copyIterable)(r):(0,t.go)((function*(){const t=Array.from(r);yield*t.slice(0,-o)}))},to}(),t),e(no,t),e(ro,t),e(function(){if(oo)return io;oo=1,io.drop=void 0;const t=Ht,n=Xr,e=Ir();return io.drop=function(r,o){return(0,e.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,e.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,n.copyIterable)(r):(0,t.go)((function*(){var t;const n=r[Symbol.iterator]();let e;try{let r;for(;({value:r,done:e}=n.next()),!(e||o<=0);)o--;for(;!e;)yield r,({value:r,done:e}=n.next())}finally{e||null===(t=n.return)||void 0===t||t.call(n)}}))},io}(),t),e(Mr,t),e(Jr,t),e(function(){if(vo)return uo;vo=1,uo.flattenAsync=void 0;const t=ho();return uo.flattenAsync=function(n){return(0,t.flattenDeepAsync)(n,1)},uo}(),t),e(so,t),e(po,t),e(ho(),t),e(_o(),t),e(function(){if(Ao)return xo;Ao=1,xo.flatten=void 0;const t=_o();return xo.flatten=function(n){return(0,t.flattenDeep)(n,1)},xo}(),t),e(So,t),e(Eo,t),e(Po,t),e(ko,t),e(Fo(),t),e(Ro(),t),e(function(){if(Uo)return zo;Uo=1,zo.sliceAsync=void 0;const t=Ht,n=Ir();return zo.sliceAsync=function(e,r,o=1/0){return(0,n.assert)(Number.isInteger(r),"The parameter start must be an integer"),(0,n.assert)(r>=0,"The parameter start must be greater than or equal to 0"),(0,n.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,n.assert)(o>=r,"The parameter end must be greater than or equal to start"),(0,t.go)((async function*(){let t=0;for await(const n of e){if(t>=o)break;t>=r&&(yield n),t++}}))},zo}(),t),e(function(){if(Do)return Lo;Do=1,Lo.slice=void 0;const t=Ht,n=Ir();return Lo.slice=function(e,r,o=1/0){return(0,n.assert)(Number.isInteger(r),"The parameter start must be an integer"),(0,n.assert)(r>=0,"The parameter start must be greater than or equal to 0"),(0,n.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,n.assert)(o>=r,"The parameter end must be greater than or equal to start"),(0,t.go)((function*(){let t=0;for(const n of e){if(t>=o)break;t>=r&&(yield n),t++}}))},Lo}(),t),e(Jo,t),e(Vo,t),e(Yo,t),e(Go,t),e(function(){if(Ho)return Xo;Ho=1,Xo.takeAsync=void 0;const t=Ht,n=Ir();return Xo.takeAsync=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((async function*(){if(0!==r)for await(const t of e)if(yield t,0==--r)break}))},Xo}(),t),e(function(){if(Ko)return Qo;Ko=1,Qo.takeRightAsync=void 0;const t=Ht,n=Ir();return Qo.takeRightAsync=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((async function*(){var t;const n=e[Symbol.asyncIterator]();let o;try{const e=[];let i;for(;({value:i,done:o}=await n.next()),!o;)e.push(i),e.length>r&&e.shift();yield*e}finally{o||await(null===(t=n.return)||void 0===t?void 0:t.call(n))}}))},Qo}(),t),e(function(){if(Zo)return $o;Zo=1,$o.takeRight=void 0;const t=Ht,n=Ir();return $o.takeRight=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((function*(){var t;const n=e[Symbol.iterator]();let o;try{const e=[];let i;for(;({value:i,done:o}=n.next()),!o;)e.push(i),e.length>r&&e.shift();yield*e}finally{o||null===(t=n.return)||void 0===t||t.call(n)}}))},$o}(),t),e(ti,t),e(ei,t),e(function(){if(ri)return oi;ri=1,oi.take=void 0;const t=Ht,n=Ir();return oi.take=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((function*(){if(0!==r)for(const t of e)if(yield t,0==--r)break}))},oi}(),t),e(ii,t),e(ci,t),e(si,t),e(ai,t),e(li,t),e(fi,t),e(di,t),e(vi,t),e(hi,t),e(pi,t),e(gi,t)}(Yt)),Yt}gi.zip=void 0,gi.zip=function(t,...n){return function*(...t){const n=t.length,e=t.map((t=>t[Symbol.iterator]())),r=e.map((()=>!1));try{for(;;){const t=new Array(n);for(let o=0;o<n;o++){const{value:n,done:i}=e[o].next();if(i)return void(r[o]=!0);t[o]=n}yield t}}finally{e.filter(((t,n)=>!r[n])).forEach((t=>{var n;return null===(n=t.return)||void 0===n?void 0:n.call(t)}))}}(t,...n)};var Ai={},xi={};xi.consume=void 0,xi.consume=function(t,n){return n(t)};var Si={};Si.consumeAsync=void 0,Si.consumeAsync=async function(t,n){return await n(t)};var Ii={eachAsync:void 0};const Oi=xn;Ii.eachAsync=function(t,n){return(0,Oi.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t)await n(r,e),e++}(t,n):async function(t,n){let e=0;for(const r of t)await n(r,e),e++}(t,n)};var Ei={};Ei.each=void 0,Ei.each=function(t,n){let e=0;for(const r of t)n(r,e),e++};var ji={everyAsync:void 0};const Ti=xn;ji.everyAsync=function(t,n){return(0,Ti.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n):async function(t,n){let e=0;for(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n)};var Pi={};Pi.every=void 0,Pi.every=function(t,n){let e=0;for(const r of t){if(!n(r,e))return!1;e++}return!0};var Ni={findAsync:void 0};const ki=xn;Ni.findAsync=function(t,n){return(0,ki.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return r;e++}return}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return r;e++}return}(t,n)};var Bi={};Bi.find=void 0,Bi.find=function(t,n){let e=0;for(const r of t){if(n(r,e))return r;e++}};var qi={};qi.firstAsync=void 0,qi.firstAsync=async function(t){for await(const n of t)return n};var Fi={};Fi.first=void 0,Fi.first=function(t){for(const n of t)return n};var Ci={};Ci.includesAsync=void 0,Ci.includesAsync=async function(t,n){for await(const e of t)if(e===n)return!0;return!1};var Mi={};Mi.includes=void 0,Mi.includes=function(t,n){for(const e of t)if(e===n)return!0;return!1};var Ri={reduceAsync:void 0};const Ui=xn;Ri.reduceAsync=function(t,n,e){return(0,Ui.isUndefined)(e)?function(t,n){return(0,Ui.isAsyncIterable)(t)?e(t):r(t);async function e(t){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,u=await i(r),c=1;for(;({value:t,done:o}=await r.next()),!o;)u=await n(u,t,c++);return u}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}async function i(t){const n=await t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}async function r(t){var e;const r=t[Symbol.iterator]();let o;try{let t,u=i(r),c=1;for(;({value:t,done:o}=r.next()),!o;)u=await n(u,t,c++);return u}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}}(t,n):function(t,n,e){return(0,Ui.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=e,o=0;for(const e of t)r=await n(r,e,o++);return r}async function o(t){let r=e,o=0;for await(const e of t)r=await n(r,e,o++);return r}}(t,n,e)};var zi={reduce:void 0};const Di=xn;zi.reduce=function(t,n,e){return(0,Di.isUndefined)(e)?function(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,u=i(r),c=1;for(;({value:t,done:o}=r.next()),!o;)u=n(u,t,c++);return u}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}(t,n):function(t,n,e){let r=e,o=0;for(const e of t)r=n(r,e,o++);return r}(t,n,e)};var Li={someAsync:void 0};const Ji=xn;Li.someAsync=function(t,n){return(0,Ji.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n)};var Vi={};Vi.some=void 0,Vi.some=function(t,n){let e=0;for(const r of t){if(n(r,e))return!0;e++}return!1};var Wi={};Wi.lastAsync=void 0,Wi.lastAsync=async function(t){var n;const e=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await e.next()),!r;)o=t;return o}finally{r||await(null===(n=e.return)||void 0===n?void 0:n.call(e))}};var Yi={};Yi.last=void 0,Yi.last=function(t){var n;const e=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=e.next()),!r;)o=t;return o}finally{r||null===(n=e.return)||void 0===n||n.call(e)}};var Gi={};Gi.toArray=void 0,Gi.toArray=function(t){return Array.from(t)};var Hi={};Hi.count=void 0,Hi.count=function(t){let n=0;for(const e of t)n++;return n};var Xi={};Xi.countAsync=void 0,Xi.countAsync=async function(t){let n=0;for await(const e of t)n++;return n};var Ki={groupBy:void 0};const Qi=Ei;Ki.groupBy=function(t,n){const e=new Map;return(0,Qi.each)(t,((t,r)=>{const o=n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e};var Zi={groupByAsync:void 0};const $i=Ii;var tu;function nu(){return tu||(tu=1,function(t){var n=Vt&&Vt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Vt&&Vt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(_i(),t),e(Ai,t)}(Wt)),Wt}Zi.groupByAsync=async function(t,n){const e=new Map;return await(0,$i.eachAsync)(t,(async(t,r)=>{const o=await n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e},function(t){var n=Vt&&Vt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Vt&&Vt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(xi,t),e(Si,t),e(Ii,t),e(Ei,t),e(ji,t),e(Pi,t),e(Ni,t),e(Bi,t),e(qi,t),e(Fi,t),e(Ci,t),e(Mi,t),e(Ri,t),e(zi,t),e(Li,t),e(Vi,t),e(Wi,t),e(Yi,t),e(Zr,t),e(Gi,t),e(Ur,t),e(Vr,t),e(Hi,t),e(Xi,t),e(Ki,t),e(Zi,t)}(Ai);var eu=nu();function ru(t){return Jt(t,{childList:!0,subtree:!0}).pipe(kt((t=>eu.toArray(eu.flatten(eu.map(t,(t=>t.addedNodes)))))),Lt((t=>t.length>0)))}function ou(t){return Jt(t,{childList:!0,subtree:!0}).pipe(kt((t=>eu.toArray(eu.flatten(eu.map(t,(t=>t.removedNodes)))))),Lt((t=>t.length>0)))}const iu=new Set,uu=new Set;let cu=!1,su=!1;function au(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=dt(t),r=yt(t,1/0),o=t;return o.length?1===o.length?St(o[0]):Ct(r)(Nt(o,e)):lt}(new B((t=>(cu||function(){const t=history.pushState;history.pushState=function(...n){Reflect.apply(t,this,n),iu.forEach((t=>t.next()))},cu=!0}(),iu.add(t),()=>iu.delete(t)))),new B((t=>(su||function(){const t=history.replaceState;history.replaceState=function(...n){Reflect.apply(t,this,n),uu.forEach((t=>t.next()))},su=!0}(),uu.add(t),()=>uu.delete(t)))),zt(window,"popstate")).pipe(kt((t=>{})))}function lu(){let t=document.URL;return(n?D(n):L).pipe(Lt((()=>t!==document.URL)),function(t,n,e){var r=l(t)||n||e?{next:t,error:n,complete:e}:t;return r?C((function(t,n){var e;null===(e=r.subscribe)||void 0===e||e.call(r);var o=!0;t.subscribe(M(n,(function(t){var e;null===(e=r.next)||void 0===e||e.call(r,t),n.next(t)}),(function(){var t;o=!1,null===(t=r.complete)||void 0===t||t.call(r),n.complete()}),(function(t){var e;o=!1,null===(e=r.error)||void 0===e||e.call(r,t),n.error(t)}),(function(){var t,n;o&&(null===(t=r.unsubscribe)||void 0===t||t.call(r)),null===(n=r.finalize)||void 0===n||n.call(r)})))})):N}((()=>t=document.URL)),kt((()=>{})));var n}export{ru as observeAdditionOfDescendantNodes,ou as observeRemovalOfDescendantNodes,au as observeStateChanges,lu as observeUrlChanges};
|
|
16
16
|
//# sourceMappingURL=index.min.mjs.map
|