extra-react-hooks 0.1.9 → 0.1.12
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/dist/es2015/index.min.mjs +3 -17
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +8916 -6402
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +8916 -6402
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +3 -17
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +3 -17
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +8916 -6402
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +8916 -6402
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +3 -17
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/index.js +5 -1
- package/lib/es2015/index.js.map +1 -1
- package/lib/es2015/use-finite-state-machine.js +5 -2
- package/lib/es2015/use-finite-state-machine.js.map +1 -1
- package/lib/es2018/index.js +5 -1
- package/lib/es2018/index.js.map +1 -1
- package/lib/es2018/use-finite-state-machine.js +5 -2
- package/lib/es2018/use-finite-state-machine.js.map +1 -1
- package/package.json +26 -26
- package/CHANGELOG.md +0 -68
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ExtraReactHooks={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ExtraReactHooks={})}(this,(function(e){"use strict";var t,r,n,o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i={exports:{}},a={};function u(){if(r)return t;r=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}return t=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(t,r){for(var a,u,c=i(t),s=1;s<arguments.length;s++){for(var l in a=Object(arguments[s]))n.call(a,l)&&(c[l]=a[l]);if(e){u=e(a);for(var f=0;f<u.length;f++)o.call(a,u[f])&&(c[u[f]]=a[u[f]])}}return c}}
|
|
2
2
|
/** @license React v17.0.2
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
9
|
+
*/function c(){if(n)return a;n=1;var e=u(),t=60103,r=60106;a.Fragment=60107,a.StrictMode=60108,a.Profiler=60114;var o=60109,i=60110,c=60112;a.Suspense=60113;var s=60115,l=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;t=f("react.element"),r=f("react.portal"),a.Fragment=f("react.fragment"),a.StrictMode=f("react.strict_mode"),a.Profiler=f("react.profiler"),o=f("react.provider"),i=f("react.context"),c=f("react.forward_ref"),a.Suspense=f("react.suspense"),s=f("react.memo"),l=f("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function d(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function y(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||v}function h(){}function m(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||v}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},h.prototype=y.prototype;var g=m.prototype=new h;g.constructor=m,e(g,y.prototype),g.isPureReactComponent=!0;var w={current:null},O=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function _(e,r,n){var o,i={},a=null,u=null;if(null!=r)for(o in void 0!==r.ref&&(u=r.ref),void 0!==r.key&&(a=""+r.key),r)O.call(r,o)&&!S.hasOwnProperty(o)&&(i[o]=r[o]);var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){for(var s=Array(c),l=0;l<c;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===i[o]&&(i[o]=c[o]);return{$$typeof:t,type:e,key:a,ref:u,props:i,_owner:w.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var j=/\/+/g;function E(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,n,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var c=!1;if(null===e)c=!0;else switch(u){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case t:case r:c=!0}}if(c)return a=a(c=e),e=""===i?"."+E(c,0):i,Array.isArray(a)?(o="",null!=e&&(o=e.replace(j,"$&/")+"/"),P(a,n,o,"",(function(e){return e}))):null!=a&&(x(a)&&(a=function(e,r){return{$$typeof:t,type:e.type,key:r,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(j,"$&/")+"/")+e)),n.push(a)),1;if(c=0,i=""===i?".":i+":",Array.isArray(e))for(var s=0;s<e.length;s++){var l=i+E(u=e[s],s);c+=P(u,n,o,l,a)}else if("function"==typeof(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e)))for(e=l.call(e),s=0;!(u=e.next()).done;)c+=P(u=u.value,n,o,l=i+E(u,s++),a);else if("object"===u)throw n=""+e,Error(d(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n));return c}function A(e,t,r){if(null==e)return e;var n=[],o=0;return P(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var I={current:null};function k(){var e=I.current;if(null===e)throw Error(d(321));return e}var C={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:e};return a.Children={map:A,forEach:function(e,t,r){A(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(d(143));return e}},a.Component=y,a.PureComponent=m,a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C,a.cloneElement=function(r,n,o){if(null==r)throw Error(d(267,r));var i=e({},r.props),a=r.key,u=r.ref,c=r._owner;if(null!=n){if(void 0!==n.ref&&(u=n.ref,c=w.current),void 0!==n.key&&(a=""+n.key),r.type&&r.type.defaultProps)var s=r.type.defaultProps;for(l in n)O.call(n,l)&&!S.hasOwnProperty(l)&&(i[l]=void 0===n[l]&&void 0!==s?s[l]:n[l])}var l=arguments.length-2;if(1===l)i.children=o;else if(1<l){s=Array(l);for(var f=0;f<l;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:t,type:r.type,key:a,ref:u,props:i,_owner:c}},a.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:i,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},a.createElement=_,a.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},a.createRef=function(){return{current:null}},a.forwardRef=function(e){return{$$typeof:c,render:e}},a.isValidElement=x,a.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:T}},a.memo=function(e,t){return{$$typeof:s,type:e,compare:void 0===t?null:t}},a.useCallback=function(e,t){return k().useCallback(e,t)},a.useContext=function(e,t){return k().useContext(e,t)},a.useDebugValue=function(){},a.useEffect=function(e,t){return k().useEffect(e,t)},a.useImperativeHandle=function(e,t,r){return k().useImperativeHandle(e,t,r)},a.useLayoutEffect=function(e,t){return k().useLayoutEffect(e,t)},a.useMemo=function(e,t){return k().useMemo(e,t)},a.useReducer=function(e,t,r){return k().useReducer(e,t,r)},a.useRef=function(e){return k().useRef(e)},a.useState=function(e){return k().useState(e)},a.version="17.0.2",a}var s,l={};
|
|
10
10
|
/** @license React v17.0.2
|
|
11
11
|
* react.development.js
|
|
12
12
|
*
|
|
@@ -14,19 +14,5 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/function $(e){r.exports.useEffect(e,[])}!function(e){"production"!==process.env.NODE_ENV&&function(){var t=s,n=60103,r=60106;e.Fragment=60107,e.StrictMode=60108,e.Profiler=60114;var o=60109,i=60110,u=60112;e.Suspense=60113;var a=60120,c=60115,f=60116,l=60121,d=60122,p=60117,h=60129,v=60131;if("function"==typeof Symbol&&Symbol.for){var y=Symbol.for;n=y("react.element"),r=y("react.portal"),e.Fragment=y("react.fragment"),e.StrictMode=y("react.strict_mode"),e.Profiler=y("react.profiler"),o=y("react.provider"),i=y("react.context"),u=y("react.forward_ref"),e.Suspense=y("react.suspense"),a=y("react.suspense_list"),c=y("react.memo"),f=y("react.lazy"),l=y("react.block"),d=y("react.server.block"),p=y("react.fundamental"),y("react.scope"),y("react.opaque.id"),h=y("react.debug_trace_mode"),y("react.offscreen"),v=y("react.legacy_hidden")}var b="function"==typeof Symbol&&Symbol.iterator;function m(e){if(null===e||"object"!=typeof e)return null;var t=b&&e[b]||e["@@iterator"];return"function"==typeof t?t:null}var w={current:null},g={current:null},x={},_=null;function S(e){_=e}x.setExtraStackFrame=function(e){_=e},x.getCurrentStack=null,x.getStackAddendum=function(){var e="";_&&(e+=_);var t=x.getCurrentStack;return t&&(e+=t()||""),e};var E={ReactCurrentDispatcher:w,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:g,IsSomeRendererActing:{current:!1},assign:t};function T(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];j("warn",e,n)}function A(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];j("error",e,n)}function j(e,t,n){var r=E.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return""+e}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}E.ReactDebugCurrentFrame=x;var I={};function O(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+t;I[o]||(A("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),I[o]=!0)}var k={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){O(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){O(e,"replaceState")},enqueueSetState:function(e,t,n,r){O(e,"setState")}},C={};function R(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||k}Object.freeze(C),R.prototype.isReactComponent={},R.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},R.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var P={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},M=function(e,t){Object.defineProperty(R.prototype,e,{get:function(){T("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var N in P)P.hasOwnProperty(N)&&M(N,P[N]);function F(){}function B(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||k}F.prototype=R.prototype;var q=B.prototype=new F;function U(e){return e.displayName||"Context"}function D(t){if(null==t)return null;if("number"==typeof t.tag&&A("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case e.Fragment:return"Fragment";case r:return"Portal";case e.Profiler:return"Profiler";case e.StrictMode:return"StrictMode";case e.Suspense:return"Suspense";case a:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case i:return U(t)+".Consumer";case o:return U(t._context)+".Provider";case u:return p=t,h=t.render,v="ForwardRef",y=h.displayName||h.name||"",p.displayName||(""!==y?v+"("+y+")":v);case c:return D(t.type);case l:return D(t._render);case f:var n=t,s=n._payload,d=n._init;try{return D(d(s))}catch(e){return null}}var p,h,v,y;return null}q.constructor=B,t(q,R.prototype),q.isPureReactComponent=!0;var $,z,L,W=Object.prototype.hasOwnProperty,J={key:!0,ref:!0,__self:!0,__source:!0};function V(e){if(W.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function Y(e){if(W.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function H(e,t){var n=function(){$||($=!0,A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function G(e,t){var n=function(){z||(z=!0,A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function K(e){if("string"==typeof e.ref&&g.current&&e.__self&&g.current.stateNode!==e.__self){var t=D(g.current.type);L[t]||(A('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),L[t]=!0)}}L={};var X=function(e,t,r,o,i,u,a){var c={$$typeof:n,type:e,key:t,ref:r,props:a,_owner:u,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function Q(e,t,n){var r,o={},i=null,u=null,a=null,c=null;if(null!=t)for(r in V(t)&&(u=t.ref,K(t)),Y(t)&&(i=""+t.key),a=void 0===t.__self?null:t.__self,c=void 0===t.__source?null:t.__source,t)W.call(t,r)&&!J.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(s>1){for(var f=Array(s),l=0;l<s;l++)f[l]=arguments[l+2];Object.freeze&&Object.freeze(f),o.children=f}if(e&&e.defaultProps){var d=e.defaultProps;for(r in d)void 0===o[r]&&(o[r]=d[r])}if(i||u){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&H(o,p),u&&G(o,p)}return X(e,i,u,a,c,g.current,o)}function Z(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o,i,u=t({},e.props),a=e.key,c=e.ref,s=e._self,f=e._source,l=e._owner;if(null!=n)for(o in V(n)&&(c=n.ref,l=g.current),Y(n)&&(a=""+n.key),e.type&&e.type.defaultProps&&(i=e.type.defaultProps),n)W.call(n,o)&&!J.hasOwnProperty(o)&&(void 0===n[o]&&void 0!==i?u[o]=i[o]:u[o]=n[o]);var d=arguments.length-2;if(1===d)u.children=r;else if(d>1){for(var p=Array(d),h=0;h<d;h++)p[h]=arguments[h+2];u.children=p}return X(e.type,a,c,s,f,l,u)}function ee(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var te=!1,ne=/\/+/g;function re(e){return e.replace(ne,"$&/")}function oe(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function ie(e,t,o,i,u){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var c,s,f,l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l){var d=e,p=u(d),h=""===i?"."+oe(d,0):i;if(Array.isArray(p)){var v="";null!=h&&(v=re(h)+"/"),ie(p,t,v,"",(function(e){return e}))}else null!=p&&(ee(p)&&(c=p,s=o+(!p.key||d&&d.key===p.key?"":re(""+p.key)+"/")+h,p=X(c.type,s,c.ref,c._self,c._source,c._owner,c.props)),t.push(p));return 1}var y=0,b=""===i?".":i+":";if(Array.isArray(e))for(var w=0;w<e.length;w++)y+=ie(f=e[w],t,o,b+oe(f,w),u);else{var g=m(e);if("function"==typeof g){var x=e;g===x.entries&&(te||T("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),te=!0);for(var _,S=g.call(x),E=0;!(_=S.next()).done;)y+=ie(f=_.value,t,o,b+oe(f,E++),u)}else if("object"===a){var A=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===A?"object with keys {"+Object.keys(e).join(", ")+"}":A)+"). If you meant to render a collection of children, use an array instead.")}}return y}function ue(e,t,n){if(null==e)return e;var r=[],o=0;return ie(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function ae(e){if(-1===e._status){var t=(0,e._result)(),n=e;n._status=0,n._result=t,t.then((function(t){if(0===e._status){var n=t.default;void 0===n&&A("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",t);var r=e;r._status=1,r._result=n}}),(function(t){if(0===e._status){var n=e;n._status=2,n._result=t}}))}if(1===e._status)return e._result;throw e._result}function ce(t){return"string"==typeof t||"function"==typeof t||(t===e.Fragment||t===e.Profiler||t===h||t===e.StrictMode||t===e.Suspense||t===a||t===v||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===c||t.$$typeof===o||t.$$typeof===i||t.$$typeof===u||t.$$typeof===p||t.$$typeof===l||t[0]===d))}function se(){var e=w.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");return e}var fe,le,de,pe,he,ve,ye,be=0;function me(){}me.__reactDisabledLog=!0;var we,ge=E.ReactCurrentDispatcher;function xe(e,t,n){if(void 0===we)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);we=r&&r[1]||""}return"\n"+we+e}var _e,Se=!1,Ee="function"==typeof WeakMap?WeakMap:Map;function Te(e,n){if(!e||Se)return"";var r,o=_e.get(e);if(void 0!==o)return o;Se=!0;var i,u=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=ge.current,ge.current=null,function(){if(0===be){fe=console.log,le=console.info,de=console.warn,pe=console.error,he=console.group,ve=console.groupCollapsed,ye=console.groupEnd;var e={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}be++}();try{if(n){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){r=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){r=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var c=t.stack.split("\n"),s=r.stack.split("\n"),f=c.length-1,l=s.length-1;f>=1&&l>=0&&c[f]!==s[l];)l--;for(;f>=1&&l>=0;f--,l--)if(c[f]!==s[l]){if(1!==f||1!==l)do{if(f--,--l<0||c[f]!==s[l]){var d="\n"+c[f].replace(" at new "," at ");return"function"==typeof e&&_e.set(e,d),d}}while(f>=1&&l>=0);break}}}finally{Se=!1,ge.current=i,function(){if(0==--be){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},e,{value:fe}),info:t({},e,{value:le}),warn:t({},e,{value:de}),error:t({},e,{value:pe}),group:t({},e,{value:he}),groupCollapsed:t({},e,{value:ve}),groupEnd:t({},e,{value:ye})})}be<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=u}var p=e?e.displayName||e.name:"",h=p?xe(p):"";return"function"==typeof e&&_e.set(e,h),h}function Ae(e,t,n){return Te(e,!1)}function je(t,n,r){if(null==t)return"";if("function"==typeof t)return Te(t,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(t));if("string"==typeof t)return xe(t);switch(t){case e.Suspense:return xe("Suspense");case a:return xe("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case u:return Ae(t.render);case c:return je(t.type,n,r);case l:return Ae(t._render);case f:var o=t,i=o._payload,s=o._init;try{return je(s(i),n,r)}catch(e){}}return""}_e=new Ee;var Ie,Oe={},ke=E.ReactDebugCurrentFrame;function Ce(e){if(e){var t=e._owner,n=je(e.type,e._source,t?t.type:null);ke.setExtraStackFrame(n)}else ke.setExtraStackFrame(null)}function Re(e){if(e){var t=e._owner;S(je(e.type,e._source,t?t.type:null))}else S(null)}function Pe(){if(g.current){var e=D(g.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Me(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Ie=!1;var Ne={};function Fe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=Pe();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!Ne[n]){Ne[n]=!0;var r="";e&&e._owner&&e._owner!==g.current&&(r=" It was passed a child from "+D(e._owner.type)+"."),Re(e),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),Re(null)}}}function Be(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];ee(r)&&Fe(r,t)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var o=m(e);if("function"==typeof o&&o!==e.entries)for(var i,u=o.call(e);!(i=u.next()).done;)ee(i.value)&&Fe(i.value,t)}}function qe(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==c)return;t=n.propTypes}if(t){var r=D(n);!function(e,t,n,r,o){var i=Function.call.bind(Object.prototype.hasOwnProperty);for(var u in e)if(i(e,u)){var a=void 0;try{if("function"!=typeof e[u]){var c=Error((r||"React class")+": "+n+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}a=e[u](t,u,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){a=e}!a||a instanceof Error||(Ce(o),A("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,u,typeof a),Ce(null)),a instanceof Error&&!(a.message in Oe)&&(Oe[a.message]=!0,Ce(o),A("Failed %s type: %s",n,a.message),Ce(null))}}(t,e.props,"prop",r,e)}else if(void 0!==n.PropTypes&&!Ie){Ie=!0,A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",D(n)||"Unknown")}"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ue(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){Re(e),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Re(null);break}}null!==e.ref&&(Re(e),A("Invalid attribute `ref` supplied to `React.Fragment`."),Re(null))}function De(t,r,o){var i=ce(t);if(!i){var u="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var a,c=Me(r);u+=c||Pe(),null===t?a="null":Array.isArray(t)?a="array":void 0!==t&&t.$$typeof===n?(a="<"+(D(t.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):a=typeof t,A("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",a,u)}var s=Q.apply(this,arguments);if(null==s)return s;if(i)for(var f=2;f<arguments.length;f++)Be(arguments[f],t);return t===e.Fragment?Ue(s):qe(s),s}var $e=!1;try{var ze=Object.freeze({});new Map([[ze,null]]),new Set([ze])}catch(e){}var Le=De,We=function(e,t,n){for(var r=Z.apply(this,arguments),o=2;o<arguments.length;o++)Be(arguments[o],r.type);return qe(r),r},Je=function(e){var t=De.bind(null,e);return t.type=e,$e||($e=!0,T("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return T("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},Ve={map:ue,forEach:function(e,t,n){ue(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return ue(e,(function(){t++})),t},toArray:function(e){return ue(e,(function(e){return e}))||[]},only:function(e){if(!ee(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};e.Children=Ve,e.Component=R,e.PureComponent=B,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=E,e.cloneElement=We,e.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&A("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var n={$$typeof:i,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};n.Provider={$$typeof:o,_context:n};var r=!1,u=!1,a=!1,c={$$typeof:i,_context:n,_calculateChangedBits:n._calculateChangedBits};return Object.defineProperties(c,{Provider:{get:function(){return u||(u=!0,A("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),n.Provider},set:function(e){n.Provider=e}},_currentValue:{get:function(){return n._currentValue},set:function(e){n._currentValue=e}},_currentValue2:{get:function(){return n._currentValue2},set:function(e){n._currentValue2=e}},_threadCount:{get:function(){return n._threadCount},set:function(e){n._threadCount=e}},Consumer:{get:function(){return r||(r=!0,A("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),n.Consumer}},displayName:{get:function(){return n.displayName},set:function(e){a||(T("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),a=!0)}}}),n.Consumer=c,n._currentRenderer=null,n._currentRenderer2=null,n},e.createElement=Le,e.createFactory=Je,e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){null!=e&&e.$$typeof===c?A("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?A("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&A("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||A("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:u,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,null==e.displayName&&(e.displayName=n)}}),n},e.isValidElement=ee,e.lazy=function(e){var t,n,r={$$typeof:f,_payload:{_status:-1,_result:e},_init:ae};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){A("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){A("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},e.memo=function(e,t){ce(e)||A("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:c,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,null==e.displayName&&(e.displayName=t)}}),r},e.useCallback=function(e,t){return se().useCallback(e,t)},e.useContext=function(e,t){var n=se();if(void 0!==t&&A("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks":""),void 0!==e._context){var r=e._context;r.Consumer===e?A("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&A("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return n.useContext(e,t)},e.useDebugValue=function(e,t){return se().useDebugValue(e,t)},e.useEffect=function(e,t){return se().useEffect(e,t)},e.useImperativeHandle=function(e,t,n){return se().useImperativeHandle(e,t,n)},e.useLayoutEffect=function(e,t){return se().useLayoutEffect(e,t)},e.useMemo=function(e,t){return se().useMemo(e,t)},e.useReducer=function(e,t,n){return se().useReducer(e,t,n)},e.useRef=function(e){return se().useRef(e)},e.useState=function(e){return se().useState(e)},e.version="17.0.2"}()}(D),"production"===process.env.NODE_ENV?r.exports=o:r.exports=D;var z={},L={};function W(e){return Array.isArray(e)}L.isntEmptyArray=L.isEmptyArray=L.isntArray=L.isArray=void 0,L.isArray=W,L.isntArray=function(e){return!W(e)},L.isEmptyArray=function(e){return 0===e.length},L.isntEmptyArray=function(e){return 0!==e.length};var J={},V={};function Y(e){return null===e}V.isntNull=V.isNull=void 0,V.isNull=Y,V.isntNull=function(e){return!Y(e)};var H={};function G(e){return void 0===e}H.isntUndefined=H.isUndefined=void 0,H.isUndefined=G,H.isntUndefined=function(e){return!G(e)},J.isntAsyncIterable=J.isAsyncIterable=void 0;const K=V,X=H;function Q(e){return(0,K.isntNull)(e)&&(0,X.isntUndefined)(e)&&"function"==typeof e[Symbol.asyncIterator]}J.isAsyncIterable=Q,J.isntAsyncIterable=function(e){return!Q(e)};var Z={};function ee(e){return"bigint"==typeof e}Z.isntBigInt=Z.isBigInt=void 0,Z.isBigInt=ee,Z.isntBigInt=function(e){return!ee(e)};var te={};function ne(e){return"boolean"==typeof e}te.isntBoolean=te.isBoolean=void 0,te.isBoolean=ne,te.isntBoolean=function(e){return!ne(e)};var re={},oe={};function ie(e){return"string"==typeof e}oe.isntString=oe.isString=void 0,oe.isString=ie,oe.isntString=function(e){return!ie(e)},re.isntChar=re.isChar=void 0;const ue=oe;function ae(e){return(0,ue.isString)(e)&&1===e.length}re.isChar=ae,re.isntChar=function(e){return!ae(e)};var ce={};function se(e){return e instanceof Date}ce.isntDate=ce.isDate=void 0,ce.isDate=se,ce.isntDate=function(e){return!se(e)};var fe={};fe.inEnum=void 0,fe.inEnum=function(e,t){return Object.values(t).includes(e)};var le={};function de(e){return e instanceof Error}le.isntError=le.isError=void 0,le.isError=de,le.isntError=function(e){return!de(e)};var pe={};function he(e){return!e}pe.isntFalsy=pe.isFalsy=void 0,pe.isFalsy=he,pe.isntFalsy=function(e){return!he(e)};var ve={};function ye(e){return"function"==typeof e}ve.isntFunction=ve.isFunction=void 0,ve.isFunction=ye,ve.isntFunction=function(e){return!ye(e)};var be={};be.isntIterable=be.isIterable=void 0;const me=V,we=H;function ge(e){return(0,me.isntNull)(e)&&(0,we.isntUndefined)(e)&&"function"==typeof e[Symbol.iterator]}be.isIterable=ge,be.isntIterable=function(e){return!ge(e)};var xe={},_e={};function Se(e){return null!==e&&"object"==typeof e}_e.isntEmptyObject=_e.isEmptyObject=_e.isRecord=_e.isntObject=_e.isObject=void 0,_e.isObject=Se,_e.isntObject=function(e){return!Se(e)},_e.isRecord=function(e){return Se(e)},_e.isEmptyObject=function(e){return 0===Object.keys(e).length},_e.isntEmptyObject=function(e){return 0!==Object.keys(e).length};var Ee={};function Te(e){return"number"==typeof e}Ee.isntNumber=Ee.isNumber=void 0,Ee.isNumber=Te,Ee.isntNumber=function(e){return!Te(e)},xe.isntJsonRpcError=xe.isJsonRpcError=xe.isntJsonRpcSuccess=xe.isJsonRpcSuccess=xe.isntJsonRpcRequest=xe.isJsonRpcRequest=xe.isntJsonRpcNotification=xe.isJsonRpcNotification=void 0;const Ae=L,je=_e,Ie=oe,Oe=Ee,ke=H;function Ce(e){return(0,Ie.isString)(e)||(0,Oe.isNumber)(e)}function Re(e){return(0,Ae.isArray)(e)||(0,je.isObject)(e)}function Pe(e){return(0,je.isRecord)(e)&&(0,Ie.isString)(e.jsonrpc)&&(0,Ie.isString)(e.method)&&(0,ke.isUndefined)(e.id)&&Re(e.params)}function Me(e){return(0,je.isRecord)(e)&&(0,Ie.isString)(e.jsonrpc)&&(0,Ie.isString)(e.method)&&Ce(e.id)&&Re(e.params)}function Ne(e){return(0,je.isRecord)(e)&&(0,Ie.isString)(e.jsonrpc)&&(0,Ie.isString)(e.id)&&"result"in e}function Fe(e){return(0,je.isRecord)(e)&&(0,Ie.isString)(e.jsonrpc)&&Ce(e.id)&&function(e){return(0,je.isRecord)(e)&&(0,Oe.isNumber)(e.code)&&(0,Ie.isString)(e.message)&&((0,ke.isUndefined)(e.data)||(0,je.isObject)(e.data))}(e.error)}xe.isJsonRpcNotification=Pe,xe.isntJsonRpcNotification=function(e){return!Pe(e)},xe.isJsonRpcRequest=Me,xe.isntJsonRpcRequest=function(e){return!Me(e)},xe.isJsonRpcSuccess=Ne,xe.isntJsonRpcSuccess=function(e){return!Ne(e)},xe.isJsonRpcError=Fe,xe.isntJsonRpcError=function(e){return!Fe(e)};var Be={};Be.isntJson=Be.isJson=void 0,Be.isJson=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},Be.isntJson=function e(t){return!e()};var qe={};qe.isAbsoluteURL=void 0,qe.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(L,e),r(J,e),r(Z,e),r(te,e),r(re,e),r(ce,e),r(fe,e),r(le,e),r(pe,e),r(ve,e),r(be,e),r(xe,e),r(Be,e),r(V,e),r(Ee,e),r(_e,e),r(oe,e),r(H,e),r(qe,e)}(z);var Ue={},De={CustomError:void 0};class $e extends Error{get name(){return this.constructor.name}}De.CustomError=$e;var ze={ExpectedError:void 0};const Le=De;class We extends Le.CustomError{}ze.ExpectedError=We;var Je={AssertionError:void 0};const Ve=De;class Ye extends Ve.CustomError{}Je.AssertionError=Ye;var He={};He.normalize=void 0,He.normalize=function(e){var t;return{name:e.name,message:e.message,stack:null!==(t=e.stack)&&void 0!==t?t:null}};var Ge={refute:void 0};const Ke=ze;Ge.refute=function(e,t){if(e)throw new Ke.ExpectedError(t)};var Xe={assert:void 0};const Qe=Je;function Ze(){const[,e]=r.exports.useState({});return()=>e({})}Xe.assert=function(e,t){if(!e)throw new Qe.AssertionError(t)},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(De,e),r(ze,e),r(Je,e),r(He,e),r(Ge,e),r(Xe,e)}(Ue);var et,tt={},nt={},rt=t&&t.__classPrivateFieldSet||function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},ot=t&&t.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};nt.Box=void 0;nt.Box=class{constructor(e){et.set(this,void 0),rt(this,et,e,"f")}set(e){rt(this,et,e,"f")}get(){return ot(this,et,"f")}},et=new WeakMap;var it={};it.convertArrayToCons=it.convertConsToArray=void 0,it.convertConsToArray=function e([t,n]){return null===n?[t]:[t,...e(n)]},it.convertArrayToCons=function e([t,...n]){return[t,n.length?e(n):null]};var ut,at={},ct=t&&t.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};at.Emitter=void 0;class st{constructor(){ut.set(this,new Map)}get[(ut=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}on(e,t){ct(this,ut,"f").has(e)||ct(this,ut,"f").set(e,new Set);ct(this,ut,"f").get(e).add(t)}off(e,t){if(!ct(this,ut,"f").has(e))return;const n=ct(this,ut,"f").get(e);n.delete(t),0===n.size&&ct(this,ut,"f").delete(e)}emit(e,t){if(!ct(this,ut,"f").has(e))return;ct(this,ut,"f").get(e).forEach((e=>e(t)))}}at.Emitter=st;var ft,lt={},dt=t&&t.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};lt.HashMap=void 0;class pt{constructor(e){this.hash=e,ft.set(this,new Map)}get[(ft=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return dt(this,ft,"f").size}set(e,t){return dt(this,ft,"f").set(this.hash(e),t),this}has(e){return dt(this,ft,"f").has(this.hash(e))}get(e){return dt(this,ft,"f").get(this.hash(e))}delete(e){return dt(this,ft,"f").delete(this.hash(e))}clear(){dt(this,ft,"f").clear()}}lt.HashMap=pt;var ht,vt={},yt=t&&t.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};vt.HashSet=void 0;class bt{constructor(e){this.hash=e,ht.set(this,new Map)}get[(ht=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return yt(this,ht,"f").size}[Symbol.iterator](){return yt(this,ht,"f").values()}add(e){return yt(this,ht,"f").set(this.hash(e),e),this}delete(e){return yt(this,ht,"f").delete(this.hash(e))}has(e){return yt(this,ht,"f").has(this.hash(e))}clear(){yt(this,ht,"f").clear()}values(){return yt(this,ht,"f").values()}}vt.HashSet=bt;var mt,wt={},gt=t&&t.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};wt.Queue=void 0;class xt{constructor(){mt.set(this,[])}get[(mt=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return gt(this,mt,"f").length}empty(){gt(this,mt,"f").length=0}enqueue(...e){gt(this,mt,"f").push(...e)}dequeue(){return gt(this,mt,"f").shift()}remove(e){let t;for(;(t=gt(this,mt,"f").indexOf(e))>=0;)gt(this,mt,"f").splice(t,1)}}wt.Queue=xt;var _t={},St={},Et={},Tt={},At={},jt={};jt.go=void 0,jt.go=function(e){return e()},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]});(t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)})(jt,e)}(At),Tt.chunkAsync=void 0;const It=At,Ot=Ue;Tt.chunkAsync=function(e,t){return(0,Ot.assert)(Number.isInteger(t),"The parameter size must be an integer"),(0,Ot.assert)(t>0,"The parameter size must be greater than 0"),(0,It.go)((async function*(){let n=[];for await(const r of e)n.push(r),n.length>=t&&(yield n,n=[]);n.length&&(yield n)}))};var kt={},Ct={},Rt={};function Pt(e){return Array.isArray(e)}Rt.isntEmptyArray=Rt.isEmptyArray=Rt.isntArray=Rt.isArray=void 0,Rt.isArray=Pt,Rt.isntArray=function(e){return!Pt(e)},Rt.isEmptyArray=function(e){return 0===e.length},Rt.isntEmptyArray=function(e){return 0!==e.length};var Mt={},Nt={};function Ft(e){return null===e}Nt.isntNull=Nt.isNull=void 0,Nt.isNull=Ft,Nt.isntNull=function(e){return!Ft(e)};var Bt={};function qt(e){return void 0===e}Bt.isntUndefined=Bt.isUndefined=void 0,Bt.isUndefined=qt,Bt.isntUndefined=function(e){return!qt(e)},Mt.isntAsyncIterable=Mt.isAsyncIterable=void 0;const Ut=Nt,Dt=Bt;function $t(e){return(0,Ut.isntNull)(e)&&(0,Dt.isntUndefined)(e)&&"function"==typeof e[Symbol.asyncIterator]}Mt.isAsyncIterable=$t,Mt.isntAsyncIterable=function(e){return!$t(e)};var zt={};function Lt(e){return"bigint"==typeof e}zt.isntBigInt=zt.isBigInt=void 0,zt.isBigInt=Lt,zt.isntBigInt=function(e){return!Lt(e)};var Wt={};function Jt(e){return"boolean"==typeof e}Wt.isntBoolean=Wt.isBoolean=void 0,Wt.isBoolean=Jt,Wt.isntBoolean=function(e){return!Jt(e)};var Vt={},Yt={};function Ht(e){return"string"==typeof e}Yt.isntString=Yt.isString=void 0,Yt.isString=Ht,Yt.isntString=function(e){return!Ht(e)},Vt.isntChar=Vt.isChar=void 0;const Gt=Yt;function Kt(e){return(0,Gt.isString)(e)&&1===e.length}Vt.isChar=Kt,Vt.isntChar=function(e){return!Kt(e)};var Xt={};function Qt(e){return e instanceof Date}Xt.isntDate=Xt.isDate=void 0,Xt.isDate=Qt,Xt.isntDate=function(e){return!Qt(e)};var Zt={};Zt.inEnum=void 0,Zt.inEnum=function(e,t){return Object.values(t).includes(e)};var en={};function tn(e){return e instanceof Error}en.isntError=en.isError=void 0,en.isError=tn,en.isntError=function(e){return!tn(e)};var nn={};function rn(e){return!e}nn.isntFalsy=nn.isFalsy=void 0,nn.isFalsy=rn,nn.isntFalsy=function(e){return!rn(e)};var on={};function un(e){return"function"==typeof e}on.isntFunction=on.isFunction=void 0,on.isFunction=un,on.isntFunction=function(e){return!un(e)};var an={};an.isntIterable=an.isIterable=void 0;const cn=Nt,sn=Bt;function fn(e){return(0,cn.isntNull)(e)&&(0,sn.isntUndefined)(e)&&"function"==typeof e[Symbol.iterator]}an.isIterable=fn,an.isntIterable=function(e){return!fn(e)};var ln={},dn={};function pn(e){return null!==e&&"object"==typeof e}dn.isntEmptyObject=dn.isEmptyObject=dn.isRecord=dn.isntObject=dn.isObject=void 0,dn.isObject=pn,dn.isntObject=function(e){return!pn(e)},dn.isRecord=function(e){return pn(e)},dn.isEmptyObject=function(e){return 0===Object.keys(e).length},dn.isntEmptyObject=function(e){return 0!==Object.keys(e).length};var hn={};function vn(e){return"number"==typeof e}hn.isntNumber=hn.isNumber=void 0,hn.isNumber=vn,hn.isntNumber=function(e){return!vn(e)},ln.isntJsonRpcError=ln.isJsonRpcError=ln.isntJsonRpcSuccess=ln.isJsonRpcSuccess=ln.isntJsonRpcRequest=ln.isJsonRpcRequest=ln.isntJsonRpcNotification=ln.isJsonRpcNotification=void 0;const yn=Rt,bn=dn,mn=Yt,wn=hn,gn=Bt;function xn(e){return(0,mn.isString)(e)||(0,wn.isNumber)(e)}function _n(e){return(0,yn.isArray)(e)||(0,bn.isObject)(e)}function Sn(e){return(0,bn.isRecord)(e)&&(0,mn.isString)(e.jsonrpc)&&(0,mn.isString)(e.method)&&(0,gn.isUndefined)(e.id)&&_n(e.params)}function En(e){return(0,bn.isRecord)(e)&&(0,mn.isString)(e.jsonrpc)&&(0,mn.isString)(e.method)&&xn(e.id)&&_n(e.params)}function Tn(e){return(0,bn.isRecord)(e)&&(0,mn.isString)(e.jsonrpc)&&(0,mn.isString)(e.id)&&(0,gn.isntUndefined)(e.result)}function An(e){return(0,bn.isRecord)(e)&&(0,mn.isString)(e.jsonrpc)&&xn(e.id)&&function(e){return(0,bn.isRecord)(e)&&(0,wn.isNumber)(e.code)&&(0,mn.isString)(e.message)&&((0,gn.isUndefined)(e.data)||(0,bn.isObject)(e.data))}(e.error)}ln.isJsonRpcNotification=Sn,ln.isntJsonRpcNotification=function(e){return!Sn(e)},ln.isJsonRpcRequest=En,ln.isntJsonRpcRequest=function(e){return!En(e)},ln.isJsonRpcSuccess=Tn,ln.isntJsonRpcSuccess=function(e){return!Tn(e)},ln.isJsonRpcError=An,ln.isntJsonRpcError=function(e){return!An(e)};var jn={};jn.isntJson=jn.isJson=void 0,jn.isJson=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},jn.isntJson=function e(t){return!e()};var In={};In.isAbsoluteURL=void 0,In.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(Rt,e),r(Mt,e),r(zt,e),r(Wt,e),r(Vt,e),r(Xt,e),r(Zt,e),r(en,e),r(nn,e),r(on,e),r(an,e),r(ln,e),r(jn,e),r(Nt,e),r(hn,e),r(dn,e),r(Yt,e),r(Bt,e),r(In,e)}(Ct),kt.chunkByAsync=void 0;const On=Ct;kt.chunkByAsync=function(e,t){return(0,On.isAsyncIterable)(e)?async function*(e){let n=[],r=0;for await(const o of e)n.push(o),await t(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(e):async function*(e){let n=[],r=0;for(const o of e)n.push(o),await t(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(e)};var kn={};kn.chunkBy=void 0,kn.chunkBy=function*(e,t){let n=[],r=0;for(const o of e)n.push(o),t(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var Cn={chunk:void 0};const Rn=At,Pn=Ue;Cn.chunk=function(e,t){return(0,Pn.assert)(Number.isInteger(t),"The parameter size must be an integer"),(0,Pn.assert)(t>0,"The parameter size must be greater than 0"),(0,Rn.go)((function*(){let n=[];for(const r of e)n.push(r),n.length>=t&&(yield n,n=[]);n.length&&(yield n)}))};var Mn={concatAsync:void 0};const Nn=Ct,Fn=At;Mn.concatAsync=function(e,...t){return(0,Fn.go)((async function*(){for(const n of[e,...t])if((0,Nn.isAsyncIterable)(n))for await(const e of n)yield e;else for(const e of n)yield e}))};var Bn={concat:void 0};const qn=At;Bn.concat=function(e,...t){return(0,qn.go)((function*(){for(const n of[e,...t])yield*n}))};var Un={},Dn={};Dn.copyIterable=Dn.copyAsyncIterable=void 0,Dn.copyAsyncIterable=async function*(e){for await(const t of e)yield t},Dn.copyIterable=function*(e){for(const t of e)yield t},Un.dropAsync=void 0;const $n=At,zn=Dn,Ln=Ue;Un.dropAsync=function(e,t){return(0,Ln.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Ln.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,zn.copyAsyncIterable)(e):(0,$n.go)((async function*(){var n;const r=e[Symbol.asyncIterator]();let o;try{let e;for(;!(({value:e,done:o}=await r.next()),o||t<=0);)t--;for(;!o;)yield e,({value:e,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Wn={dropRightAsync:void 0};const Jn=At,Vn=Dn,Yn=Ue;Wn.dropRightAsync=function(e,t){return(0,Yn.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Yn.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,Vn.copyAsyncIterable)(e):(0,Jn.go)((async function*(){const n=(await async function(e){const t=[];for await(const n of e)t.push(n);return t}(e)).slice(0,-t);for(const e of n)yield e}))};var Hn={dropRight:void 0};const Gn=At,Kn=Dn,Xn=Ue;Hn.dropRight=function(e,t){return(0,Xn.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Xn.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,Kn.copyIterable)(e):(0,Gn.go)((function*(){const n=Array.from(e);yield*n.slice(0,-t)}))};var Qn={dropUntilAsync:void 0};const Zn=Ct;Qn.dropUntilAsync=function(e,t){return(0,Zn.isAsyncIterable)(e)?async function*(e){var n;const r=e[Symbol.asyncIterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=await r.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(e):async function*(e){var n;const r=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=r.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(e)};var er={};er.dropUntil=void 0,er.dropUntil=function*(e,t){var n;const r=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=r.next()),o||t(e,i++)););for(;!o;)yield e,({value:e,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var tr={drop:void 0};const nr=At,rr=Dn,or=Ue;tr.drop=function(e,t){return(0,or.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,or.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,rr.copyIterable)(e):(0,nr.go)((function*(){var n;const r=e[Symbol.iterator]();let o;try{let e;for(;!(({value:e,done:o}=r.next()),o||t<=0);)t--;for(;!o;)yield e,({value:e,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var ir={filterAsync:void 0};const ur=Ct;ir.filterAsync=function(e,t){return(0,ur.isAsyncIterable)(e)?async function*(e){let n=0;for await(const r of e)await t(r,n)&&(yield r),n++}(e):async function*(e){let n=0;for(const r of e)await t(r,n)&&(yield r),n++}(e)};var ar={};ar.filter=void 0,ar.filter=function*(e,t){let n=0;for(const r of e)t(r,n)&&(yield r),n++};var cr={},sr={},fr={flattenByAsync:void 0};const lr=Ct;function dr(e){return(0,lr.isIterable)(e)&&(0,lr.isntChar)(e)}fr.flattenByAsync=function(e,t){return(0,lr.isAsyncIterable)(e)?async function*(e){const r=1;for await(const o of e)dr(o)&&await t(o,r)?yield*n(o,r+1):yield o}(e):function(e){return n(e,1)}(e);async function*n(e,r){for(const o of e)dr(o)&&await t(o,r)?yield*n(o,r+1):yield o}},sr.flattenDeepAsync=void 0;const pr=fr,hr=Ue;sr.flattenDeepAsync=function(e,t=1/0){return(0,hr.assert)(t===1/0||Number.isInteger(t),"The parameter depth must be an integer"),(0,hr.assert)(t>=0,"The parameter depth must be greater than or equal to 0"),(0,pr.flattenByAsync)(e,((e,n)=>n<=t))},cr.flattenAsync=void 0;const vr=sr;cr.flattenAsync=function(e){return(0,vr.flattenDeepAsync)(e,1)};var yr={flattenBy:void 0};const br=Ct;yr.flattenBy=function(e,t){return function*e(n,r){for(const i of n)(0,br.isIterable)(o=i)&&(0,br.isntChar)(o)&&t(i,r)?yield*e(i,r+1):yield i;var o}(e,1)};var mr={flattenDeep:void 0};const wr=yr,gr=Ue;mr.flattenDeep=function(e,t=1/0){return(0,gr.assert)(t===1/0||Number.isInteger(t),"The parameter depth must be an integer"),(0,gr.assert)(t>=0,"The parameter depth must be greater than or equal to 0"),(0,wr.flattenBy)(e,((e,n)=>n<=t))};var xr={flatten:void 0};const _r=mr;xr.flatten=function(e){return(0,_r.flattenDeep)(e,1)};var Sr={mapAsync:void 0};const Er=Ct;Sr.mapAsync=function(e,t){return(0,Er.isAsyncIterable)(e)?async function*(e){let n=0;for await(const r of e)yield await t(r,n),n++}(e):async function*(e){let n=0;for(const r of e)yield await t(r,n),n++}(e)};var Tr={};Tr.map=void 0,Tr.map=function*(e,t){let n=0;for(const r of e)yield t(r,n),n++};var Ar={repeatAsync:void 0};const jr=At,Ir=Ue;Ar.repeatAsync=function(e,t){return(0,Ir.assert)(t===1/0||Number.isInteger(t),"The parameter times must be an integer"),(0,Ir.assert)(t>=0,"The parameter times must be greater than or equal to 0"),t===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,jr.go)((async function*(){const n=[];if(t>0){for await(const t of e)yield t,n.push(t);t--}for(;t>0;)yield*n,t--}))};var Or={repeat:void 0};const kr=At,Cr=Ue;Or.repeat=function(e,t){return(0,Cr.assert)(t===1/0||Number.isInteger(t),"The parameter times must be an integer"),(0,Cr.assert)(t>=0,"The parameter times must be greater than or equal to 0"),t===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,kr.go)((function*(){const n=[];if(t>0){for(const t of e)yield t,n.push(t);t--}for(;t>0;)yield*n,t--}))};var Rr={sliceAsync:void 0};const Pr=At,Mr=Ue;Rr.sliceAsync=function(e,t,n=1/0){return(0,Mr.assert)(Number.isInteger(t),"The parameter start must be an integer"),(0,Mr.assert)(t>=0,"The parameter start must be greater than or equal to 0"),(0,Mr.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Mr.assert)(n>=t,"The parameter end must be greater than or equal to start"),(0,Pr.go)((async function*(){let r=0;for await(const o of e){if(r>=n)break;r>=t&&(yield o),r++}}))};var Nr={slice:void 0};const Fr=At,Br=Ue;Nr.slice=function(e,t,n=1/0){return(0,Br.assert)(Number.isInteger(t),"The parameter start must be an integer"),(0,Br.assert)(t>=0,"The parameter start must be greater than or equal to 0"),(0,Br.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Br.assert)(n>=t,"The parameter end must be greater than or equal to start"),(0,Fr.go)((function*(){let r=0;for(const o of e){if(r>=n)break;r>=t&&(yield o),r++}}))};var qr={};qr.splitAsync=void 0,qr.splitAsync=async function*(e,t){let n=[];for await(const r of e)r===t?(yield n,n=[]):n.push(r);yield n};var Ur={splitByAsync:void 0};const Dr=Ct;Ur.splitByAsync=function(e,t){return(0,Dr.isAsyncIterable)(e)?async function*(e){let n=[],r=0;for await(const o of e)await t(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(e):async function*(e){let n=[],r=0;for(const o of e)await t(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(e)};var $r={};$r.splitBy=void 0,$r.splitBy=function*(e,t){let n=[],r=0;for(const o of e)t(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var zr={};zr.split=void 0,zr.split=function*(e,t){let n=[];for(const r of e)r===t?(yield n,n=[]):n.push(r);yield n};var Lr={takeAsync:void 0};const Wr=At,Jr=Ue;Lr.takeAsync=function(e,t){return(0,Jr.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Jr.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,Wr.go)((async function*(){if(0!==t)for await(const n of e)if(yield n,0===--t)break}))};var Vr={takeRightAsync:void 0};const Yr=At,Hr=Ue;Vr.takeRightAsync=function(e,t){return(0,Hr.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Hr.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,Yr.go)((async function*(){var n;const r=e[Symbol.asyncIterator]();let o;try{const e=[];let i;for(;({value:i,done:o}=await r.next()),!o;)e.push(i),e.length>t&&e.shift();yield*e}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Gr={takeRight:void 0};const Kr=At,Xr=Ue;Gr.takeRight=function(e,t){return(0,Xr.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Xr.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,Kr.go)((function*(){var n;const r=e[Symbol.iterator]();let o;try{const e=[];let i;for(;({value:i,done:o}=r.next()),!o;)e.push(i),e.length>t&&e.shift();yield*e}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Qr={takeUntilAsync:void 0};const Zr=Ct;Qr.takeUntilAsync=function(e,t){return(0,Zr.isAsyncIterable)(e)?async function*(e){let n=0;for await(const r of e){if(await t(r,n))break;yield r,n++}}(e):async function*(e){let n=0;for(const r of e){if(await t(r,n))break;yield r,n++}}(e)};var eo={};eo.takeUntil=void 0,eo.takeUntil=function*(e,t){let n=0;for(const r of e){if(t(r,n))break;yield r,n++}};var to={take:void 0};const no=At,ro=Ue;to.take=function(e,t){return(0,ro.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,ro.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,no.go)((function*(){if(0!==t)for(const n of e)if(yield n,0===--t)break}))};var oo={tapAsync:void 0};const io=Ct;oo.tapAsync=function(e,t){return(0,io.isAsyncIterable)(e)?async function*(e){let n=0;for await(const r of e)await t(r,n),yield r,n++}(e):async function*(e){let n=0;for(const r of e)await t(r,n),yield r,n++}(e)};var uo={};uo.tap=void 0,uo.tap=function*(e,t){let n=0;for(const r of e)t(r,n),yield r,n++};var ao={};ao.toAsyncIterable=void 0,ao.toAsyncIterable=async function*(e){for(const t of e)yield t};var co={};co.transformAsync=void 0,co.transformAsync=async function*(e,t){yield*t(e)};var so={};so.transform=void 0,so.transform=function*(e,t){yield*t(e)};var fo={};fo.uniqAsync=void 0,fo.uniqAsync=async function*(e){const t=new Set;for await(const n of e)t.has(n)||(yield n,t.add(n))};var lo={uniqByAsync:void 0};const po=Ct;lo.uniqByAsync=function(e,t){return(0,po.isAsyncIterable)(e)?async function*(e){const n=new Set;let r=0;for await(const o of e){const e=await t(o,r);n.has(e)||(yield o,n.add(e)),r++}}(e):async function*(e){const n=new Set;let r=0;for(const o of e){const e=await t(o,r);n.has(e)||(yield o,n.add(e)),r++}}(e)};var ho={};ho.uniqBy=void 0,ho.uniqBy=function*(e,t){const n=new Set;let r=0;for(const o of e){const e=t(o,r);n.has(e)||(yield o,n.add(e)),r++}};var vo={};vo.uniq=void 0,vo.uniq=function*(e){const t=new Set;for(const n of e)t.has(n)||(yield n,t.add(n))};var yo={zipAsync:void 0};const bo=Ct;var mo;!function(e){e[e.Sync=0]="Sync",e[e.Async=1]="Async"}(mo||(mo={})),yo.zipAsync=function(e,...t){return async function*(...e){var t,n,r,o;const i=e.length,u=e.map((e=>(0,bo.isAsyncIterable)(e)?[mo.Async,e[Symbol.asyncIterator]()]:[mo.Sync,e[Symbol.iterator]()])),a=u.map((()=>!1));try{for(;;){const e=new Array(i);for(let t=0;t<i;t++){const[n,r]=u[t];let o;if(o=n===mo.Async?await r.next():r.next(),o.done)return void(a[t]=!0);e[t]=o.value}yield e}}finally{const e=u.filter(((e,t)=>!a[t]));for(const[i,u]of e)i===mo.Async?await(null===(n=(t=u).return)||void 0===n?void 0:n.call(t)):null===(o=(r=u).return)||void 0===o||o.call(r)}}(e,...t)};var wo={};wo.zip=void 0,wo.zip=function(e,...t){return function*(...e){const t=e.length,n=e.map((e=>e[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const e=new Array(t);for(let o=0;o<t;o++){const{value:t,done:i}=n[o].next();if(i)return void(r[o]=!0);e[o]=t}yield e}}finally{n.filter(((e,t)=>!r[t])).forEach((e=>{var t;return null===(t=e.return)||void 0===t?void 0:t.call(e)}))}}(e,...t)},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(Tt,e),r(kt,e),r(kn,e),r(Cn,e),r(Mn,e),r(Bn,e),r(Un,e),r(Wn,e),r(Hn,e),r(Qn,e),r(er,e),r(tr,e),r(ir,e),r(ar,e),r(cr,e),r(fr,e),r(yr,e),r(sr,e),r(mr,e),r(xr,e),r(Sr,e),r(Tr,e),r(Ar,e),r(Or,e),r(Rr,e),r(Nr,e),r(qr,e),r(Ur,e),r($r,e),r(zr,e),r(Lr,e),r(Vr,e),r(Gr,e),r(Qr,e),r(eo,e),r(to,e),r(oo,e),r(uo,e),r(ao,e),r(co,e),r(so,e),r(fo,e),r(lo,e),r(ho,e),r(vo,e),r(yo,e),r(wo,e)}(Et);var go={},xo={};xo.consume=void 0,xo.consume=function(e,t){return t(e)};var _o={eachAsync:void 0};const So=Ct;_o.eachAsync=function(e,t){return(0,So.isAsyncIterable)(e)?async function(e){let n=0;for await(const r of e)await t(r,n),n++}(e):async function(e){let n=0;for(const r of e)await t(r,n),n++}(e)};var Eo={};Eo.each=void 0,Eo.each=function(e,t){let n=0;for(const r of e)t(r,n),n++};var To={everyAsync:void 0};const Ao=Ct;To.everyAsync=function(e,t){return(0,Ao.isAsyncIterable)(e)?async function(e){let n=0;for await(const r of e){if(!await t(r,n))return!1;n++}return!0}(e):async function(e){let n=0;for(const r of e){if(!await t(r,n))return!1;n++}return!0}(e)};var jo={};jo.every=void 0,jo.every=function(e,t){let n=0;for(const r of e){if(!t(r,n))return!1;n++}return!0};var Io={findAsync:void 0};const Oo=Ct;Io.findAsync=function(e,t){return(0,Oo.isAsyncIterable)(e)?async function(e){let n=0;for await(const r of e){if(await t(r,n))return r;n++}return}(e):async function(e){let n=0;for(const r of e){if(await t(r,n))return r;n++}return}(e)};var ko={};ko.find=void 0,ko.find=function(e,t){let n=0;for(const r of e){if(t(r,n))return r;n++}};var Co={};Co.firstAsync=void 0,Co.firstAsync=async function(e){for await(const t of e)return t};var Ro={};Ro.first=void 0,Ro.first=function(e){for(const t of e)return t};var Po={};Po.includesAsync=void 0,Po.includesAsync=async function(e,t){for await(const n of e)if(n===t)return!0;return!1};var Mo={};Mo.includes=void 0,Mo.includes=function(e,t){for(const n of e)if(n===t)return!0;return!1};var No={};No.matchAsync=void 0,No.matchAsync=async function(e,t){const n=t.length;let r=0;for await(const o of e)if(o===t[r]&&r++,r===n)return!0;return!1};var Fo={};Fo.match=void 0,Fo.match=function(e,t){const n=t.length;let r=0;for(const o of e)if(o===t[r]&&r++,r===n)return!0;return!1};var Bo={reduceAsync:void 0};const qo=Ct;Bo.reduceAsync=function(e,t,n){return(0,qo.isUndefined)(n)?function(e,t){return(0,qo.isAsyncIterable)(e)?n(e):r(e);async function n(e){var n;const r=e[Symbol.asyncIterator]();let o;try{let e,u=await i(r),a=1;for(;({value:e,done:o}=await r.next()),!o;)u=await t(u,e,a++);return u}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(e){const t=await e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}async function r(e){var n;const r=e[Symbol.iterator]();let o;try{let e,u=i(r),a=1;for(;({value:e,done:o}=r.next()),!o;)u=await t(u,e,a++);return u}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}}(e,t):function(e,t,n){return(0,qo.isAsyncIterable)(e)?o(e):r(e);async function r(e){let r=n,o=0;for(const n of e)r=await t(r,n,o++);return r}async function o(e){let r=n,o=0;for await(const n of e)r=await t(r,n,o++);return r}}(e,t,n)};var Uo={reduce:void 0};const Do=Ct;Uo.reduce=function(e,t,n){return(0,Do.isUndefined)(n)?function(e,t){var n;const r=e[Symbol.iterator]();let o;try{let e,u=i(r),a=1;for(;({value:e,done:o}=r.next()),!o;)u=t(u,e,a++);return u}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}(e,t):function(e,t,n){let r=n,o=0;for(const n of e)r=t(r,n,o++);return r}(e,t,n)};var $o={someAsync:void 0};const zo=Ct;$o.someAsync=function(e,t){return(0,zo.isAsyncIterable)(e)?async function(e){let n=0;for await(const r of e){if(await t(r,n))return!0;n++}return!1}(e):async function(e){let n=0;for(const r of e){if(await t(r,n))return!0;n++}return!1}(e)};var Lo={};Lo.some=void 0,Lo.some=function(e,t){let n=0;for(const r of e){if(t(r,n))return!0;n++}return!1};var Wo={};Wo.lastAsync=void 0,Wo.lastAsync=async function(e){var t;const n=e[Symbol.asyncIterator]();let r;try{let e,o;for(;({value:e,done:r}=await n.next()),!r;)o=e;return o}finally{r||await(null===(t=n.return)||void 0===t?void 0:t.call(n))}};var Jo={};Jo.last=void 0,Jo.last=function(e){var t;const n=e[Symbol.iterator]();let r;try{let e,o;for(;({value:e,done:r}=n.next()),!r;)o=e;return o}finally{r||null===(t=n.return)||void 0===t||t.call(n)}};var Vo={toArrayAsync:void 0};const Yo=xo;Vo.toArrayAsync=function(e){return(0,Yo.consume)(e,(async e=>{const t=[];for await(const n of e)t.push(n);return t}))};var Ho={toArray:void 0};const Go=xo;Ho.toArray=function(e){return(0,Go.consume)(e,(e=>Array.from(e)))};var Ko={toSetAsync:void 0};const Xo=xo;Ko.toSetAsync=function(e){return(0,Xo.consume)(e,(async e=>{const t=new Set;for await(const n of e)t.add(n);return t}))};var Qo={toSet:void 0};const Zo=xo;Qo.toSet=function(e){return(0,Zo.consume)(e,(e=>new Set(e)))},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(xo,e),r(_o,e),r(Eo,e),r(To,e),r(jo,e),r(Io,e),r(ko,e),r(Co,e),r(Ro,e),r(Po,e),r(Mo,e),r(No,e),r(Fo,e),r(Bo,e),r(Uo,e),r($o,e),r(Lo,e),r(Wo,e),r(Jo,e),r(Vo,e),r(Ho,e),r(Ko,e),r(Qo,e)}(go),function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(Et,e),r(go,e)}(St);var ei,ti,ni=t&&t.__classPrivateFieldSet||function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},ri=t&&t.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};_t.LRUMap=void 0;const oi=Ue,ii=St;class ui{constructor(e){ei.set(this,void 0),ti.set(this,new Map),(0,oi.assert)(Number.isInteger(e),"The parameter limit must be an integer"),(0,oi.assert)(e>0,"The parameter limit must be a positive value"),ni(this,ei,e,"f")}get[(ei=new WeakMap,ti=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return ri(this,ti,"f").size}set(e,t){return ri(this,ti,"f").has(e)?this.updateItem(e,t):(ri(this,ti,"f").size===ri(this,ei,"f")&&ri(this,ti,"f").delete(this.getColdestKey()),ri(this,ti,"f").set(e,t)),this}has(e){return ri(this,ti,"f").has(e)}get(e){if(!this.has(e))return;const t=ri(this,ti,"f").get(e);return this.updateItem(e,t),t}delete(e){return ri(this,ti,"f").delete(e)}clear(){ri(this,ti,"f").clear()}updateItem(e,t){ri(this,ti,"f").delete(e),ri(this,ti,"f").set(e,t)}getColdestKey(){return(0,ii.first)(ri(this,ti,"f").keys())}}_t.LRUMap=ui;var ai={},ci={},si={},fi={},li={};li.random=void 0,li.random=function(e,t){return Math.random()*(t-e)+e};var di={};di.randomInt=void 0,di.randomInt=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e))+e};var pi={};pi.randomIntInclusive=void 0,pi.randomIntInclusive=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(li,e),r(di,e),r(pi,e)}(fi),si.calculateExponentialBackoffTimeout=void 0;const hi=fi;si.calculateExponentialBackoffTimeout=function({baseTimeout:e,retries:t,maxTimeout:n=1/0,factor:r=2,jitter:o=!0}){const i=Math.min(r**t*e,n);return o?(0,hi.randomIntInclusive)(0,i):i};var vi={};vi.setTimeout=void 0,vi.setTimeout=function(e,t){const n=globalThis.setTimeout(t,e);return()=>clearTimeout(n)};var yi={setSchedule:void 0};const bi=vi;yi.setSchedule=function(e,t){const n=e-Date.now();return(0,bi.setTimeout)(n,t)};var mi={};mi.setInterval=void 0,mi.setInterval=function(e,t){const n=globalThis.setInterval(t,e);return()=>clearInterval(n)};var wi={setImmediate:void 0};const gi=vi;wi.setImmediate=function(e){if(globalThis.setImmediate){const t=globalThis.setImmediate(e);return()=>clearImmediate(t)}return(0,gi.setTimeout)(0,e)};var xi={setTimeoutLoop:void 0};const _i=vi;xi.setTimeoutLoop=function(e,t){let n=!1,r=(0,_i.setTimeout)(e,(async function o(){await t(),n||(r=(0,_i.setTimeout)(e,o))}));return()=>{n=!0,r()}};var Si={setDynamicTimeoutLoop:void 0};const Ei=vi;Si.setDynamicTimeoutLoop=function(e,t){let n=!1,r=(0,Ei.setTimeout)(e,(async function o(){const i=Date.now();await t();const u=Date.now()-i;n||(r=(0,Ei.setTimeout)(Math.max(e-u,0),o))}));return()=>{n=!0,r()}},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(si,e),r(vi,e),r(yi,e),r(mi,e),r(wi,e),r(xi,e),r(Si,e)}(ci);var Ti,Ai,ji=t&&t.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},Ii=t&&t.__classPrivateFieldSet||function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n};ai.ExpirableMap=void 0;const Oi=ci;class ki{constructor(){Ti.set(this,new Map),Ai.set(this,void 0),this.itemMetadataSortedByExpirationTime=[]}get[(Ti=new WeakMap,Ai=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return ji(this,Ti,"f").size}set(e,t,n){return ji(this,Ti,"f").set(e,t),this.removeItemMetadata(e),this.addItemMetadata(e,Date.now()+n),this}has(e){return ji(this,Ti,"f").has(e)}get(e){return ji(this,Ti,"f").get(e)}delete(e){const t=ji(this,Ti,"f").delete(e);if(t){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout()}return t}clear(){var e;ji(this,Ti,"f").clear(),null===(e=ji(this,Ai,"f"))||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime=[]}addItemMetadata(e,t){for(let n=0;n<this.itemMetadataSortedByExpirationTime.length;n++){if(t<this.itemMetadataSortedByExpirationTime[n].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(n,0,{key:e,expirationTime:t}),void(0===n&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:e,expirationTime:t}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));t>=0&&(this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout())}clearExpiredItems(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.expirationTime>e));(t>=0?this.itemMetadataSortedByExpirationTime.splice(0,t):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((e=>ji(this,Ti,"f").delete(e.key)))}rescheduleClearTimeout(){var e;if(null===(e=ji(this,Ai,"f"))||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime.length>0){const e=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(e.expirationTime)){const t=(0,Oi.setSchedule)(e.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));Ii(this,Ai,(()=>{t(),Ii(this,Ai,void 0,"f")}),"f")}}}}ai.ExpirableMap=ki;var Ci,Ri,Pi,Mi={},Ni=t&&t.__classPrivateFieldSet||function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},Fi=t&&t.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};Mi.TLRUMap=void 0;const Bi=Ue,qi=St,Ui=ci;class Di{constructor(e){Ci.set(this,void 0),Ri.set(this,new Map),Pi.set(this,void 0),this.itemMetadataSortedByExpirationTime=[],(0,Bi.assert)(Number.isInteger(e),"The parameter limit must be an integer"),(0,Bi.assert)(e>0,"The parameter limit must be a positive value"),Ni(this,Ci,e,"f")}get[(Ci=new WeakMap,Ri=new WeakMap,Pi=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return Fi(this,Ri,"f").size}set(e,t,n){return Fi(this,Ri,"f").has(e)?(this.updateItem(e,t),this.removeItemMetadata(e),this.addItemMetadata(e,Date.now()+n)):(Fi(this,Ri,"f").size===Fi(this,Ci,"f")&&Fi(this,Ri,"f").delete(this.getColdestKey()),Fi(this,Ri,"f").set(e,t),this.addItemMetadata(e,Date.now()+n)),this}has(e){return Fi(this,Ri,"f").has(e)}get(e){if(this.has(e)){const t=Fi(this,Ri,"f").get(e);return this.updateItem(e,t),t}}delete(e){const t=Fi(this,Ri,"f").delete(e);if(t){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout()}return t}clear(){var e;Fi(this,Ri,"f").clear(),null===(e=Fi(this,Pi,"f"))||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime=[]}updateItem(e,t){Fi(this,Ri,"f").delete(e),Fi(this,Ri,"f").set(e,t)}addItemMetadata(e,t){for(let n=0;n<this.itemMetadataSortedByExpirationTime.length;n++){if(t<this.itemMetadataSortedByExpirationTime[n].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(n,0,{key:e,expirationTime:t}),void(0===n&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:e,expirationTime:t}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));t>=0&&(this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout())}clearExpiredItems(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.expirationTime>e));(t>=0?this.itemMetadataSortedByExpirationTime.splice(0,t):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((e=>Fi(this,Ri,"f").delete(e.key)))}rescheduleClearTimeout(){var e;if(null===(e=Fi(this,Pi,"f"))||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime.length>0){const e=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(e.expirationTime)){const t=(0,Ui.setSchedule)(e.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));Ni(this,Pi,(()=>{t(),Ni(this,Pi,void 0,"f")}),"f")}}}getColdestKey(){return(0,qi.first)(Fi(this,Ri,"f").keys())}}Mi.TLRUMap=Di;var $i,zi={},Li=t&&t.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};zi.TrieMap=void 0;const Wi=St;class Ji{constructor(e){this.value=e,this.children=new Map}}class Vi{constructor(){$i.set(this,new Ji)}get[($i=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}set(e,t){let n=Li(this,$i,"f");for(const t of e)n.children.has(t)||n.children.set(t,new Ji),n=n.children.get(t);return n.value=t,this}has(e){let t=Li(this,$i,"f");for(const n of e){if(!t.children.has(n))return!1;t=t.children.get(n)}return void 0!==t.value}get(e){let t=Li(this,$i,"f");for(const n of e){if(!t.children.has(n))return;t=t.children.get(n)}return t.value}delete(e){const t=[];let n=Li(this,$i,"f");for(const r of e){if(!n.children.has(r))return!1;t.push(n),n=n.children.get(r)}if(delete n.value,0===n.children.size)for(const[n,r]of(0,Wi.toArray)((0,Wi.zip)(e,t)).reverse())if(r.children.delete(n),0!==r.children.size)break;return!0}}zi.TrieMap=Vi;var Yi,Hi={},Gi=t&&t.__classPrivateFieldSet||function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},Ki=t&&t.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};Hi.BadEventError=Hi.FiniteStateMachine=void 0;const Xi=Ue;Hi.FiniteStateMachine=class{constructor(e,t){this.schema=e,Yi.set(this,void 0),Gi(this,Yi,t,"f")}get state(){return Ki(this,Yi,"f")}matches(e){return Ki(this,Yi,"f")===e}send(e){if(!(e in this.schema[this.state]))throw new Qi(this.state,e);Gi(this,Yi,this.schema[this.state][e],"f")}},Yi=new WeakMap;class Qi extends Xi.CustomError{constructor(e,t){super(`State ${e} cannot react to event ${t}`)}}Hi.BadEventError=Qi;var Zi={},eu=function(e,t){return(eu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};
|
|
18
|
-
/*! *****************************************************************************
|
|
19
|
-
Copyright (c) Microsoft Corporation.
|
|
20
|
-
|
|
21
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
22
|
-
purpose with or without fee is hereby granted.
|
|
23
|
-
|
|
24
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
25
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
26
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
27
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
28
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
29
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
30
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
31
|
-
***************************************************************************** */function tu(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}eu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function nu(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}c((r=r.apply(e,t||[])).next())}))}function ru(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=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=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function ou(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function iu(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function uu(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}function au(e){return this instanceof au?(this.v=e,this):new au(e)}function cu(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{!function(e){e.value instanceof au?Promise.resolve(e.value.v).then(c,s):f(i[0][2],e)}(o[e](t))}catch(e){f(i[0][3],e)}}function c(e){a("next",e)}function s(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function su(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=ou(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function fu(e){return"function"==typeof e}function lu(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var du=lu((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function pu(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var hu=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var e,t,n,r,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var u=ou(i),a=u.next();!a.done;a=u.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}else i.remove(this);var c=this.initialTeardown;if(fu(c))try{c()}catch(e){o=e instanceof du?e.errors:[e]}var s=this._teardowns;if(s){this._teardowns=null;try{for(var f=ou(s),l=f.next();!l.done;l=f.next()){var d=l.value;try{bu(d)}catch(e){o=null!=o?o:[],e instanceof du?o=uu(uu([],iu(o)),iu(e.errors)):o.push(e)}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}if(o)throw new du(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)bu(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&pu(t,e)},e.prototype.remove=function(t){var n=this._teardowns;n&&pu(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),vu=hu.EMPTY;function yu(e){return e instanceof hu||e&&"closed"in e&&fu(e.remove)&&fu(e.add)&&fu(e.unsubscribe)}function bu(e){fu(e)?e():e.unsubscribe()}var mu={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},wu={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=wu.delegate;return((null==n?void 0:n.setTimeout)||setTimeout).apply(void 0,uu([],iu(e)))},clearTimeout:function(e){var t=wu.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function gu(e){wu.setTimeout((function(){var t=mu.onUnhandledError;if(!t)throw e;t(e)}))}function xu(){}var _u=Su("C",void 0,void 0);function Su(e,t,n){return{kind:e,value:t,error:n}}var Eu=null;function Tu(e){if(mu.useDeprecatedSynchronousErrorHandling){var t=!Eu;if(t&&(Eu={errorThrown:!1,error:null}),e(),t){var n=Eu,r=n.errorThrown,o=n.error;if(Eu=null,r)throw o}}else e()}function Au(e){mu.useDeprecatedSynchronousErrorHandling&&Eu&&(Eu.errorThrown=!0,Eu.error=e)}var ju=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,yu(t)&&t.add(n)):n.destination=Ru,n}return tu(t,e),t.create=function(e,t,n){return new Iu(e,t,n)},t.prototype.next=function(e){this.isStopped?Cu(function(e){return Su("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?Cu(function(e){return Su("E",void 0,e)}(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?Cu(_u,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(hu),Iu=function(e){function t(t,n,r){var o,i=e.call(this)||this;if(fu(t))o=t;else if(t){var u;o=t.next,n=t.error,r=t.complete,i&&mu.useDeprecatedNextContext?(u=Object.create(t)).unsubscribe=function(){return i.unsubscribe()}:u=t,o=null==o?void 0:o.bind(u),n=null==n?void 0:n.bind(u),r=null==r?void 0:r.bind(u)}return i.destination={next:o?Ou(o):xu,error:Ou(null!=n?n:ku),complete:r?Ou(r):xu},i}return tu(t,e),t}(ju);function Ou(e,t){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{e.apply(void 0,uu([],iu(t)))}catch(e){mu.useDeprecatedSynchronousErrorHandling?Au(e):gu(e)}}}function ku(e){throw e}function Cu(e,t){var n=mu.onStoppedNotification;n&&wu.setTimeout((function(){return n(e,t)}))}var Ru={closed:!0,next:xu,error:ku,complete:xu},Pu="function"==typeof Symbol&&Symbol.observable||"@@observable";function Mu(e){return e}function Nu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Fu(e)}function Fu(e){return 0===e.length?Mu:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var Bu=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,o=this,i=(r=e)&&r instanceof ju||function(e){return e&&fu(e.next)&&fu(e.error)&&fu(e.complete)}(r)&&yu(r)?e:new Iu(e,t,n);return Tu((function(){var e=o,t=e.operator,n=e.source;i.add(t?t.call(i,n):n?o._subscribe(i):o._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=qu(t))((function(t,r){var o;o=n.subscribe((function(t){try{e(t)}catch(e){r(e),null==o||o.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Pu]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Fu(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=qu(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function qu(e){var t;return null!==(t=null!=e?e:mu.Promise)&&void 0!==t?t:Promise}function Uu(e){return fu(null==e?void 0:e.lift)}function Du(e){return function(t){if(Uu(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}var $u=function(e){function t(t,n,r,o,i){var u=e.call(this,t)||this;return u.onFinalize=i,u._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,u._error=o?function(e){try{o(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,u}return tu(t,e),t.prototype.unsubscribe=function(){var t,n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))},t}(ju);function zu(){return Du((function(e,t){var n=null;e._refCount++;var r=new $u(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)n=null;else{var r=e._connection,o=n;n=null,!r||o&&r!==o||r.unsubscribe(),t.unsubscribe()}}));e.subscribe(r),r.closed||(n=e.connect())}))}var Lu=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,Uu(t)&&(r.lift=t.lift),r}return tu(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new hu;var n=this.getSubject();t.add(this.source.subscribe(new $u(n,void 0,(function(){e._teardown(),n.complete()}),(function(t){e._teardown(),n.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=hu.EMPTY)}return t},t.prototype.refCount=function(){return zu()(this)},t}(Bu),Wu={now:function(){return(Wu.delegate||performance).now()},delegate:void 0},Ju={schedule:function(e){var t=requestAnimationFrame,n=cancelAnimationFrame,r=Ju.delegate;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);var o=t((function(t){n=void 0,e(t)}));return new hu((function(){return null==n?void 0:n(o)}))},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ju.delegate;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,uu([],iu(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ju.delegate;return((null==n?void 0:n.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,uu([],iu(e)))},delegate:void 0};function Vu(e){var t=Ju.schedule;return new Bu((function(n){var r=new hu,o=e||Wu,i=o.now(),u=function(a){var c=o.now();n.next({timestamp:e?c:a,elapsed:c-i}),n.closed||r.add(t(u))};return r.add(t(u)),r}))}var Yu,Hu=Vu(),Gu=lu((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ku=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return tu(t,e),t.prototype.lift=function(e){var t=new Xu(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Gu},t.prototype.next=function(e){var t=this;Tu((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){var o=t.observers.slice();try{for(var i=ou(o),u=i.next();!u.done;u=i.next()){u.value.next(e)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;Tu((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Tu((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=t.hasError,r=t.isStopped,o=t.observers;return n||r?vu:(o.push(e),new hu((function(){return pu(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,o=t.isStopped;n?e.error(r):o&&e.complete()},t.prototype.asObservable=function(){var e=new Bu;return e.source=this,e},t.create=function(e,t){return new Xu(e,t)},t}(Bu),Xu=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return tu(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:vu},t}(Ku),Qu=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return tu(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(Ku),Zu={now:function(){return(Zu.delegate||Date).now()},delegate:void 0},ea=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=Zu);var o=e.call(this)||this;return o._bufferSize=t,o._windowTime=n,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,n),o}return tu(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,o=n._buffer,i=n._infiniteTimeWindow,u=n._timestampProvider,a=n._windowTime;r||(o.push(t),!i&&o.push(u.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!e.closed;o+=n?1:2)e.next(r[o]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,o=e._infiniteTimeWindow,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){for(var u=n.now(),a=0,c=1;c<r.length&&r[c]<=u;c+=2)a=c;a&&r.splice(0,a+1)}},t}(Ku),ta=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return tu(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t._hasValue,o=t._value,i=t.thrownError,u=t.isStopped,a=t._isComplete;n?e.error(i):(u||a)&&(r&&e.next(o),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,n=t._hasValue,r=t._value;t._isComplete||(this._isComplete=!0,n&&e.prototype.next.call(this,r),e.prototype.complete.call(this))},t}(Ku),na=function(e){function t(t,n){return e.call(this)||this}return tu(t,e),t.prototype.schedule=function(e,t){return this},t}(hu),ra={setInterval:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ra.delegate;return((null==n?void 0:n.setInterval)||setInterval).apply(void 0,uu([],iu(e)))},clearInterval:function(e){var t=ra.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},oa=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return tu(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),ra.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;ra.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,pu(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(na),ia=1,ua={};function aa(e){return e in ua&&(delete ua[e],!0)}var ca=function(e){var t=ia++;return ua[t]=!0,Yu||(Yu=Promise.resolve()),Yu.then((function(){return aa(t)&&e()})),t},sa=function(e){aa(e)},fa={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=fa.delegate;return((null==n?void 0:n.setImmediate)||ca).apply(void 0,uu([],iu(e)))},clearImmediate:function(e){var t=fa.delegate;return((null==t?void 0:t.clearImmediate)||sa)(e)},delegate:void 0},la=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return tu(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=fa.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(fa.clearImmediate(n),t._scheduled=void 0)},t}(oa),da=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=Zu.now,e}(),pa=function(e){function t(t,n){void 0===n&&(n=da.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return tu(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(da),ha=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tu(t,e),t.prototype.flush=function(e){this._active=!0,this._scheduled=void 0;var t,n=this.actions,r=-1;e=e||n.shift();var o=n.length;do{if(t=e.execute(e.state,e.delay))break}while(++r<o&&(e=n.shift()));if(this._active=!1,t){for(;++r<o&&(e=n.shift());)e.unsubscribe();throw t}},t}(pa))(la),va=ha,ya=new pa(oa),ba=ya,ma=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return tu(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(oa),wa=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tu(t,e),t}(pa))(ma),ga=wa,xa=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return tu(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Ju.requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(Ju.cancelAnimationFrame(n),t._scheduled=void 0)},t}(oa),_a=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tu(t,e),t.prototype.flush=function(e){this._active=!0,this._scheduled=void 0;var t,n=this.actions,r=-1;e=e||n.shift();var o=n.length;do{if(t=e.execute(e.state,e.delay))break}while(++r<o&&(e=n.shift()));if(this._active=!1,t){for(;++r<o&&(e=n.shift());)e.unsubscribe();throw t}},t}(pa))(xa),Sa=_a,Ea=function(e){function t(t,n){void 0===t&&(t=Ta),void 0===n&&(n=1/0);var r=e.call(this,t,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return tu(t,e),t.prototype.flush=function(){for(var e,t,n=this.actions,r=this.maxFrames;(t=n[0])&&t.delay<=r&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(pa),Ta=function(e){function t(t,n,r){void 0===r&&(r=t.index+=1);var o=e.call(this,t,n)||this;return o.scheduler=t,o.work=n,o.index=r,o.active=!0,o.index=t.index=r,o}return tu(t,e),t.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var o=new t(this.scheduler,this.work);return this.add(o),o.schedule(n,r)}return hu.EMPTY},t.prototype.requestAsyncId=function(e,n,r){void 0===r&&(r=0),this.delay=e.frame+r;var o=e.actions;return o.push(this),o.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,n){},t.prototype._execute=function(t,n){if(!0===this.active)return e.prototype._execute.call(this,t,n)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(oa),Aa=new Bu((function(e){return e.complete()}));function ja(e){return e&&fu(e.schedule)}function Ia(e){return e[e.length-1]}function Oa(e){return fu(Ia(e))?e.pop():void 0}function ka(e){return ja(Ia(e))?e.pop():void 0}function Ca(e,t){return"number"==typeof Ia(e)?e.pop():t}var Ra=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function Pa(e){return fu(null==e?void 0:e.then)}function Ma(e){return fu(e[Pu])}function Na(e){return Symbol.asyncIterator&&fu(null==e?void 0:e[Symbol.asyncIterator])}function Fa(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var Ba,qa="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Ua(e){return fu(null==e?void 0:e[qa])}function Da(e){return cu(this,arguments,(function(){var t,n,r;return ru(this,(function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,au(t.read())];case 3:return n=o.sent(),r=n.value,n.done?[4,au(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,au(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}function $a(e){return fu(null==e?void 0:e.getReader)}function za(e){if(e instanceof Bu)return e;if(null!=e){if(Ma(e))return n=e,new Bu((function(e){var t=n[Pu]();if(fu(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(Ra(e))return function(e){return new Bu((function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()}))}(e);if(Pa(e))return t=e,new Bu((function(e){t.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,gu)}));if(Na(e))return La(e);if(Ua(e))return function(e){return new Bu((function(t){var n,r;try{for(var o=ou(e),i=o.next();!i.done;i=o.next()){var u=i.value;if(t.next(u),t.closed)return}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}t.complete()}))}(e);if($a(e))return La(Da(e))}var t,n;throw Fa(e)}function La(e){return new Bu((function(t){(function(e,t){var n,r,o,i;return nu(this,void 0,void 0,(function(){var u,a;return ru(this,(function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),n=su(e),c.label=1;case 1:return[4,n.next()];case 2:if((r=c.sent()).done)return[3,4];if(u=r.value,t.next(u),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=c.sent(),o={error:a},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(i=n.return)?[4,i.call(n)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function Wa(e,t,n,r,o){void 0===r&&(r=0),void 0===o&&(o=!1);var i=t.schedule((function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()}),r);if(e.add(i),!o)return i}function Ja(e,t){return void 0===t&&(t=0),Du((function(n,r){n.subscribe(new $u(r,(function(n){return Wa(r,e,(function(){return r.next(n)}),t)}),(function(){return Wa(r,e,(function(){return r.complete()}),t)}),(function(n){return Wa(r,e,(function(){return r.error(n)}),t)})))}))}function Va(e,t){return void 0===t&&(t=0),Du((function(n,r){r.add(e.schedule((function(){return n.subscribe(r)}),t))}))}function Ya(e,t){return new Bu((function(n){var r;return Wa(n,t,(function(){r=e[qa](),Wa(n,t,(function(){var e,t,o;try{t=(e=r.next()).value,o=e.done}catch(e){return void n.error(e)}o?n.complete():n.next(t)}),0,!0)})),function(){return fu(null==r?void 0:r.return)&&r.return()}}))}function Ha(e,t){if(!e)throw new Error("Iterable cannot be null");return new Bu((function(n){Wa(n,t,(function(){var r=e[Symbol.asyncIterator]();Wa(n,t,(function(){r.next().then((function(e){e.done?n.complete():n.next(e.value)}))}),0,!0)}))}))}function Ga(e,t){if(null!=e){if(Ma(e))return function(e,t){return za(e).pipe(Va(t),Ja(t))}(e,t);if(Ra(e))return function(e,t){return new Bu((function(n){var r=0;return t.schedule((function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())}))}))}(e,t);if(Pa(e))return function(e,t){return za(e).pipe(Va(t),Ja(t))}(e,t);if(Na(e))return Ha(e,t);if(Ua(e))return Ya(e,t);if($a(e))return function(e,t){return Ha(Da(e),t)}(e,t)}throw Fa(e)}function Ka(e,t){return t?Ga(e,t):za(e)}function Xa(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ka(e);return Ka(e,n)}function Qa(e,t){var n=fu(e)?e:function(){return e},r=function(e){return e.error(n())};return new Bu(t?function(e){return t.schedule(r,0,e)}:r)}!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(Ba||(Ba={}));var Za=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){return ec(this,e)},e.prototype.do=function(e,t,n){var r=this,o=r.kind,i=r.value,u=r.error;return"N"===o?null==e?void 0:e(i):"E"===o?null==t?void 0:t(u):null==n?void 0:n()},e.prototype.accept=function(e,t,n){var r;return fu(null===(r=e)||void 0===r?void 0:r.next)?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e=this,t=e.kind,n=e.value,r=e.error,o="N"===t?Xa(n):"E"===t?Qa((function(){return r})):"C"===t?Aa:0;if(!o)throw new TypeError("Unexpected notification kind "+t);return o},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function ec(e,t){var n,r,o,i=e,u=i.kind,a=i.value,c=i.error;if("string"!=typeof u)throw new TypeError('Invalid notification, missing "kind"');"N"===u?null===(n=t.next)||void 0===n||n.call(t,a):"E"===u?null===(r=t.error)||void 0===r||r.call(t,c):null===(o=t.complete)||void 0===o||o.call(t)}var tc=lu((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}));var nc=lu((function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),rc=lu((function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}})),oc=lu((function(e){return function(t){e(this),this.name="SequenceError",this.message=t}}));function ic(e){return e instanceof Date&&!isNaN(e)}var uc=lu((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}}));function ac(e,t){var n=ic(e)?{first:e}:"number"==typeof e?{each:e}:e,r=n.first,o=n.each,i=n.with,u=void 0===i?cc:i,a=n.scheduler,c=void 0===a?null!=t?t:ya:a,s=n.meta,f=void 0===s?null:s;if(null==r&&null==o)throw new TypeError("No timeout provided.");return Du((function(e,t){var n,i,a=null,s=0,l=function(e){i=Wa(t,c,(function(){try{n.unsubscribe(),za(u({meta:f,lastValue:a,seen:s})).subscribe(t)}catch(e){t.error(e)}}),e)};n=e.subscribe(new $u(t,(function(e){null==i||i.unsubscribe(),s++,t.next(a=e),o>0&&l(o)}),void 0,void 0,(function(){(null==i?void 0:i.closed)||null==i||i.unsubscribe(),a=null}))),l(null!=r?"number"==typeof r?r:+r-c.now():o)}))}function cc(e){throw new uc(e)}function sc(e,t){return Du((function(n,r){var o=0;n.subscribe(new $u(r,(function(n){r.next(e.call(t,n,o++))})))}))}var fc=Array.isArray;function lc(e){return sc((function(t){return function(e,t){return fc(t)?e.apply(void 0,uu([],iu(t))):e(t)}(e,t)}))}function dc(e,t,n,r){if(n){if(!ja(n))return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return dc(e,t,r).apply(this,o).pipe(lc(n))};r=n}return r?function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return dc(e,t).apply(this,n).pipe(Va(r),Ja(r))}:function(){for(var n=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=new ta,u=!0;return new Bu((function(o){var a=i.subscribe(o);if(u){u=!1;var c=!1,s=!1;t.apply(n,uu(uu([],iu(r)),[function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var r=t.shift();if(null!=r)return void i.error(r)}i.next(1<t.length?t:t[0]),s=!0,c&&i.complete()}])),s&&i.complete(),c=!0}return a}))}}var pc=Array.isArray,hc=Object.getPrototypeOf,vc=Object.prototype,yc=Object.keys;function bc(e){if(1===e.length){var t=e[0];if(pc(t))return{args:t,keys:null};if((r=t)&&"object"==typeof r&&hc(r)===vc){var n=yc(t);return{args:n.map((function(e){return t[e]})),keys:n}}}var r;return{args:e,keys:null}}function mc(e,t){return e.reduce((function(e,n,r){return e[n]=t[r],e}),{})}function wc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ka(e),r=Oa(e),o=bc(e),i=o.args,u=o.keys;if(0===i.length)return Ka([],n);var a=new Bu(gc(i,n,u?function(e){return mc(u,e)}:Mu));return r?a.pipe(lc(r)):a}function gc(e,t,n){return void 0===n&&(n=Mu),function(r){xc(t,(function(){for(var o=e.length,i=new Array(o),u=o,a=o,c=function(o){xc(t,(function(){var c=Ka(e[o],t),s=!1;c.subscribe(new $u(r,(function(e){i[o]=e,s||(s=!0,a--),a||r.next(n(i.slice()))}),(function(){--u||r.complete()})))}),r)},s=0;s<o;s++)c(s)}),r)}}function xc(e,t,n){e?Wa(n,e,t):t()}function _c(e,t,n,r,o,i,u,a){var c=[],s=0,f=0,l=!1,d=function(){!l||c.length||s||t.complete()},p=function(e){return s<r?h(e):c.push(e)},h=function(e){i&&t.next(e),s++;var a=!1;za(n(e,f++)).subscribe(new $u(t,(function(e){null==o||o(e),i?p(e):t.next(e)}),(function(){a=!0}),void 0,(function(){if(a)try{s--;for(var e=function(){var e=c.shift();u?Wa(t,u,(function(){return h(e)})):h(e)};c.length&&s<r;)e();d()}catch(e){t.error(e)}})))};return e.subscribe(new $u(t,p,(function(){l=!0,d()}))),function(){null==a||a()}}function Sc(e,t,n){return void 0===n&&(n=1/0),fu(t)?Sc((function(n,r){return sc((function(e,o){return t(n,e,r,o)}))(za(e(n,r)))}),n):("number"==typeof t&&(n=t),Du((function(t,r){return _c(t,r,e,n)})))}function Ec(e){return void 0===e&&(e=1/0),Sc(Mu,e)}function Tc(){return Ec(1)}function Ac(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Tc()(Ka(e,ka(e)))}function jc(e){return new Bu((function(t){za(e()).subscribe(t)}))}var Ic={connector:function(){return new Ku},resetOnDisconnect:!0};var Oc=["addListener","removeListener"],kc=["addEventListener","removeEventListener"],Cc=["on","off"];function Rc(e,t){return function(n){return function(r){return e[n](t,r)}}}function Pc(e,t,n){void 0===e&&(e=0),void 0===n&&(n=ba);var r=-1;return null!=t&&(ja(t)?n=t:r=t),new Bu((function(t){var o=ic(e)?+e-n.now():e;o<0&&(o=0);var i=0;return n.schedule((function(){t.closed||(t.next(i++),0<=r?this.schedule(void 0,r):t.complete())}),o)}))}function Mc(e,t){return void 0===e&&(e=0),void 0===t&&(t=ya),e<0&&(e=0),Pc(e,e,t)}var Nc=new Bu(xu);var Fc=Array.isArray;function Bc(e){return 1===e.length&&Fc(e[0])?e[0]:e}function qc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Bc(e);return Du((function(e,t){var r=uu([e],iu(n)),o=function(){if(!t.closed)if(r.length>0){var e=void 0;try{e=za(r.shift())}catch(e){return void o()}var n=new $u(t,void 0,xu,xu);t.add(e.subscribe(n)),n.add(o)}else t.complete()};o()}))}function Uc(e,t){return function(n,r){return!e.call(t,n,r)}}function Dc(e,t){return Du((function(n,r){var o=0;n.subscribe(new $u(r,(function(n){return e.call(t,n,o++)&&r.next(n)})))}))}function $c(e){return function(t){for(var n=[],r=function(r){n.push(za(e[r]).subscribe(new $u(t,(function(e){if(n){for(var o=0;o<n.length;o++)o!==r&&n[o].unsubscribe();n=null}t.next(e)}))))},o=0;n&&!t.closed&&o<e.length;o++)r(o)}}function zc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Oa(e),r=Bc(e);return r.length?new Bu((function(e){var t=r.map((function(){return[]})),o=r.map((function(){return!1}));e.add((function(){t=o=null}));for(var i=function(i){za(r[i]).subscribe(new $u(e,(function(r){if(t[i].push(r),t.every((function(e){return e.length}))){var u=t.map((function(e){return e.shift()}));e.next(n?n.apply(void 0,uu([],iu(u))):u),t.some((function(e,t){return!e.length&&o[t]}))&&e.complete()}}),(function(){o[i]=!0,!t[i].length&&e.complete()})))},u=0;!e.closed&&u<r.length;u++)i(u);return function(){t=o=null}})):Aa}function Lc(e){return Du((function(t,n){var r=!1,o=null,i=null,u=!1,a=function(){if(null==i||i.unsubscribe(),i=null,r){r=!1;var e=o;o=null,n.next(e)}u&&n.complete()},c=function(){i=null,u&&n.complete()};t.subscribe(new $u(n,(function(t){r=!0,o=t,i||za(e(t)).subscribe(i=new $u(n,a,c))}),(function(){u=!0,(!r||!i||i.closed)&&n.complete()})))}))}function Wc(e,t,n,r,o){return function(i,u){var a=n,c=t,s=0;i.subscribe(new $u(u,(function(t){var n=s++;c=a?e(c,t,n):(a=!0,t),r&&u.next(c)}),o&&function(){a&&u.next(c),u.complete()}))}}function Jc(e,t){return Du(Wc(e,t,arguments.length>=2,!1,!0))}var Vc=function(e,t){return e.push(t),e};function Yc(){return Du((function(e,t){Jc(Vc,[])(e).subscribe(t)}))}function Hc(e,t){return Nu(Yc(),Sc((function(t){return e(t)})),t?lc(t):Mu)}function Gc(e){return Hc(wc,e)}var Kc=Gc;function Xc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Oa(e);return n?Nu(Xc.apply(void 0,uu([],iu(e))),lc(n)):Du((function(t,n){gc(uu([t],iu(Bc(e))))(n)}))}function Qc(e,t){return fu(t)?Sc(e,t,1):Sc(e,1)}function Zc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ka(e);return Du((function(t,r){Tc()(Ka(uu([t],iu(e)),n)).subscribe(r)}))}var es={connector:function(){return new Ku}};function ts(e,t){void 0===t&&(t=es);var n=t.connector;return Du((function(t,r){var o,i=n();Ka(e((o=i,new Bu((function(e){return o.subscribe(e)}))))).subscribe(r),r.add(t.subscribe(i))}))}function ns(e){return Du((function(t,n){var r=!1;t.subscribe(new $u(n,(function(e){r=!0,n.next(e)}),(function(){r||n.next(e),n.complete()})))}))}function rs(e){return e<=0?function(){return Aa}:Du((function(t,n){var r=0;t.subscribe(new $u(n,(function(t){++r<=e&&(n.next(t),e<=r&&n.complete())})))}))}function os(){return Du((function(e,t){e.subscribe(new $u(t,xu))}))}function is(e){return sc((function(){return e}))}function us(e,t){return t?function(n){return Ac(t.pipe(rs(1),os()),n.pipe(us(e)))}:Sc((function(t,n){return e(t,n).pipe(rs(1),is(t))}))}function as(e,t){return void 0===t&&(t=Mu),e=null!=e?e:cs,Du((function(n,r){var o,i=!0;n.subscribe(new $u(r,(function(n){var u=t(n);!i&&e(o,u)||(i=!1,o=u,r.next(n))})))}))}function cs(e,t){return e===t}function ss(e){return void 0===e&&(e=fs),Du((function(t,n){var r=!1;t.subscribe(new $u(n,(function(e){r=!0,n.next(e)}),(function(){return r?n.complete():n.error(e())})))}))}function fs(){return new tc}function ls(){return Du((function(e,t){var n=!1,r=null;e.subscribe(new $u(t,(function(e){r||(r=za(e).subscribe(new $u(t,void 0,(function(){r=null,n&&t.complete()}))))}),(function(){n=!0,!r&&t.complete()})))}))}var ds=ls;function ps(e,t,n){var r="index"===n;return function(n,o){var i=0;n.subscribe(new $u(o,(function(u){var a=i++;e.call(t,u,a,n)&&(o.next(r?a:u),o.complete())}),(function(){o.next(r?-1:void 0),o.complete()})))}}var hs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeGroups=0,t.teardownAttempted=!1,t}return tu(t,e),t.prototype.unsubscribe=function(){this.teardownAttempted=!0,0===this.activeGroups&&e.prototype.unsubscribe.call(this)},t}($u);function vs(e){return e<=0?function(){return Aa}:Du((function(t,n){var r=[];t.subscribe(new $u(n,(function(t){r.push(t),e<r.length&&r.shift()}),(function(){var e,t;try{for(var o=ou(r),i=o.next();!i.done;i=o.next()){var u=i.value;n.next(u)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}n.complete()}),void 0,(function(){r=null})))}))}var ys=Sc;function bs(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ka(e),r=Ca(e,1/0);return e=Bc(e),Du((function(t,o){Ec(r)(Ka(uu([t],iu(e)),n)).subscribe(o)}))}function ms(e,t){var n=fu(e)?e:function(){return e};return fu(t)?ts(t,{connector:n}):function(e){return new Lu(e,n)}}function ws(e){return Du((function(t,n){var r=!1,o=null;t.subscribe(new $u(n,(function(e){r=!0,o=e})));e.subscribe(new $u(n,(function(){if(r){r=!1;var e=o;o=null,n.next(e)}}),xu))}))}function gs(e,t){return Du(Wc(e,t,arguments.length>=2,!0))}function xs(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new Ku}:t,r=e.resetOnError,o=void 0===r||r,i=e.resetOnComplete,u=void 0===i||i,a=e.resetOnRefCountZero,c=void 0===a||a;return function(e){var t=null,r=null,i=null,a=0,s=!1,f=!1,l=function(){null==r||r.unsubscribe(),r=null},d=function(){l(),t=i=null,s=f=!1},p=function(){var e=t;d(),null==e||e.unsubscribe()};return Du((function(e,h){a++,f||s||l();var v=i=null!=i?i:n();h.add((function(){0!==--a||f||s||(r=_s(p,c))})),v.subscribe(h),t||(t=new Iu({next:function(e){return v.next(e)},error:function(e){f=!0,l(),r=_s(d,o,e),v.error(e)},complete:function(){s=!0,l(),r=_s(d,u),v.complete()}}),Ka(e).subscribe(t))}))(e)}}function _s(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return!0===t?(e(),null):!1===t?null:t.apply(void 0,uu([],iu(n))).pipe(rs(1)).subscribe((function(){return e()}))}function Ss(e,t){return Du((function(n,r){var o=null,i=0,u=!1,a=function(){return u&&!o&&r.complete()};n.subscribe(new $u(r,(function(n){null==o||o.unsubscribe();var u=0,c=i++;za(e(n,c)).subscribe(o=new $u(r,(function(e){return r.next(t?t(n,e,c,u++):e)}),(function(){o=null,a()})))}),(function(){u=!0,a()})))}))}var Es={leading:!0,trailing:!1};function Ts(e,t){var n=void 0===t?Es:t,r=n.leading,o=n.trailing;return Du((function(t,n){var i=!1,u=null,a=null,c=!1,s=function(){null==a||a.unsubscribe(),a=null,o&&(d(),c&&n.complete())},f=function(){a=null,c&&n.complete()},l=function(t){return a=za(e(t)).subscribe(new $u(n,s,f))},d=function(){if(i){i=!1;var e=u;u=null,n.next(e),!c&&l(e)}};t.subscribe(new $u(n,(function(e){i=!0,u=e,(!a||a.closed)&&(r?d():l(e))}),(function(){c=!0,(!(o&&i&&a)||a.closed)&&n.complete()})))}))}var As=function(e,t){this.value=e,this.interval=t};function js(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Du((function(t,n){zc.apply(void 0,uu([t],iu(e))).subscribe(n)}))}var Is=n(Object.freeze({__proto__:null,Observable:Bu,ConnectableObservable:Lu,observable:Pu,animationFrames:function(e){return e?Vu(e):Hu},Subject:Ku,BehaviorSubject:Qu,ReplaySubject:ea,AsyncSubject:ta,asap:va,asapScheduler:ha,async:ba,asyncScheduler:ya,queue:ga,queueScheduler:wa,animationFrame:Sa,animationFrameScheduler:_a,VirtualTimeScheduler:Ea,VirtualAction:Ta,Scheduler:da,Subscription:hu,Subscriber:ju,Notification:Za,get NotificationKind(){return Ba},pipe:Nu,noop:xu,identity:Mu,isObservable:function(e){return!!e&&(e instanceof Bu||fu(e.lift)&&fu(e.subscribe))},lastValueFrom:function(e,t){var n="object"==typeof t;return new Promise((function(r,o){var i,u=!1;e.subscribe({next:function(e){i=e,u=!0},error:o,complete:function(){u?r(i):n?r(t.defaultValue):o(new tc)}})}))},firstValueFrom:function(e,t){var n="object"==typeof t;return new Promise((function(r,o){var i=new Iu({next:function(e){r(e),i.unsubscribe()},error:o,complete:function(){n?r(t.defaultValue):o(new tc)}});e.subscribe(i)}))},ArgumentOutOfRangeError:nc,EmptyError:tc,NotFoundError:rc,ObjectUnsubscribedError:Gu,SequenceError:oc,TimeoutError:uc,UnsubscriptionError:du,bindCallback:function(e,t,n){return dc(!1,e,t,n)},bindNodeCallback:function(e,t,n){return dc(!0,e,t,n)},combineLatest:wc,concat:Ac,connectable:function(e,t){void 0===t&&(t=Ic);var n=null,r=t.connector,o=t.resetOnDisconnect,i=void 0===o||o,u=r(),a=new Bu((function(e){return u.subscribe(e)}));return a.connect=function(){return n&&!n.closed||(n=jc((function(){return e})).subscribe(u),i&&n.add((function(){return u=r()}))),n},a},defer:jc,empty:function(e){return e?function(e){return new Bu((function(t){return e.schedule((function(){return t.complete()}))}))}(e):Aa},forkJoin:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Oa(e),r=bc(e),o=r.args,i=r.keys,u=new Bu((function(e){var t=o.length;if(t)for(var n=new Array(t),r=t,u=t,a=function(t){var a=!1;za(o[t]).subscribe(new $u(e,(function(e){a||(a=!0,u--),n[t]=e}),(function(){return r--}),void 0,(function(){r&&a||(u||e.next(i?mc(i,n):n),e.complete())})))},c=0;c<t;c++)a(c);else e.complete()}));return n?u.pipe(lc(n)):u},from:Ka,fromEvent:function e(t,n,r,o){if(fu(r)&&(o=r,r=void 0),o)return e(t,n,r).pipe(lc(o));var i=iu(function(e){return fu(e.addEventListener)&&fu(e.removeEventListener)}(t)?kc.map((function(e){return function(o){return t[e](n,o,r)}})):function(e){return fu(e.addListener)&&fu(e.removeListener)}(t)?Oc.map(Rc(t,n)):function(e){return fu(e.on)&&fu(e.off)}(t)?Cc.map(Rc(t,n)):[],2),u=i[0],a=i[1];if(!u&&Ra(t))return Sc((function(t){return e(t,n,r)}))(za(t));if(!u)throw new TypeError("Invalid event target");return new Bu((function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return u(t),function(){return a(t)}}))},fromEventPattern:function e(t,n,r){return r?e(t,n).pipe(lc(r)):new Bu((function(e){var r=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1===t.length?t[0]:t)},o=t(r);return fu(n)?function(){return n(r,o)}:void 0}))},generate:function(e,t,n,r,o){var i,u,a,c;function s(){var e;return ru(this,(function(r){switch(r.label){case 0:e=c,r.label=1;case 1:return t&&!t(e)?[3,4]:[4,a(e)];case 2:r.sent(),r.label=3;case 3:return e=n(e),[3,1];case 4:return[2]}}))}return 1===arguments.length?(c=(i=e).initialState,t=i.condition,n=i.iterate,u=i.resultSelector,a=void 0===u?Mu:u,o=i.scheduler):(c=e,!r||ja(r)?(a=Mu,o=r):a=r),jc(o?function(){return Ya(s(),o)}:s)},iif:function(e,t,n){return jc((function(){return e()?t:n}))},interval:Mc,merge:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ka(e),r=Ca(e,1/0),o=e;return o.length?1===o.length?za(o[0]):Ec(r)(Ka(o,n)):Aa},never:function(){return Nc},of:Xa,onErrorResumeNext:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return qc(Bc(e))(Aa)},pairs:function(e,t){return Ka(Object.entries(e),t)},partition:function(e,t,n){return[Dc(t,n)(za(e)),Dc(Uc(t,n))(za(e))]},race:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=Bc(e)).length?za(e[0]):new Bu($c(e))},range:function(e,t,n){if(null==t&&(t=e,e=0),t<=0)return Aa;var r=t+e;return new Bu(n?function(t){var o=e;return n.schedule((function(){o<r?(t.next(o++),this.schedule()):t.complete()}))}:function(t){for(var n=e;n<r&&!t.closed;)t.next(n++);t.complete()})},throwError:Qa,timer:Pc,using:function(e,t){return new Bu((function(n){var r=e(),o=t(r);return(o?za(o):Aa).subscribe(n),function(){r&&r.unsubscribe()}}))},zip:zc,scheduled:Ga,EMPTY:Aa,NEVER:Nc,config:mu,audit:Lc,auditTime:function(e,t){return void 0===t&&(t=ba),Lc((function(){return Pc(e,t)}))},buffer:function(e){return Du((function(t,n){var r=[];return t.subscribe(new $u(n,(function(e){return r.push(e)}),(function(){n.next(r),n.complete()}))),e.subscribe(new $u(n,(function(){var e=r;r=[],n.next(e)}),xu)),function(){r=null}}))},bufferCount:function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,Du((function(n,r){var o=[],i=0;n.subscribe(new $u(r,(function(n){var u,a,c,s,f=null;i++%t==0&&o.push([]);try{for(var l=ou(o),d=l.next();!d.done;d=l.next()){(v=d.value).push(n),e<=v.length&&(f=null!=f?f:[]).push(v)}}catch(e){u={error:e}}finally{try{d&&!d.done&&(a=l.return)&&a.call(l)}finally{if(u)throw u.error}}if(f)try{for(var p=ou(f),h=p.next();!h.done;h=p.next()){var v=h.value;pu(o,v),r.next(v)}}catch(e){c={error:e}}finally{try{h&&!h.done&&(s=p.return)&&s.call(p)}finally{if(c)throw c.error}}}),(function(){var e,t;try{for(var n=ou(o),i=n.next();!i.done;i=n.next()){var u=i.value;r.next(u)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}r.complete()}),void 0,(function(){o=null})))}))},bufferTime:function(e){for(var t,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var i=null!==(t=ka(r))&&void 0!==t?t:ya,u=null!==(n=r[0])&&void 0!==n?n:null,a=r[1]||1/0;return Du((function(t,n){var r=[],o=!1,c=function(e){var t=e.buffer;e.subs.unsubscribe(),pu(r,e),n.next(t),o&&s()},s=function(){if(r){var t=new hu;n.add(t);var o={buffer:[],subs:t};r.push(o),Wa(t,i,(function(){return c(o)}),e)}};null!==u&&u>=0?Wa(n,i,s,u,!0):o=!0,s();var f=new $u(n,(function(e){var t,n,o=r.slice();try{for(var i=ou(o),u=i.next();!u.done;u=i.next()){var s=u.value,f=s.buffer;f.push(e),a<=f.length&&c(s)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}),(function(){for(;null==r?void 0:r.length;)n.next(r.shift().buffer);null==f||f.unsubscribe(),n.complete(),n.unsubscribe()}),void 0,(function(){return r=null}));t.subscribe(f)}))},bufferToggle:function(e,t){return Du((function(n,r){var o=[];za(e).subscribe(new $u(r,(function(e){var n=[];o.push(n);var i=new hu;i.add(za(t(e)).subscribe(new $u(r,(function(){pu(o,n),r.next(n),i.unsubscribe()}),xu)))}),xu)),n.subscribe(new $u(r,(function(e){var t,n;try{for(var r=ou(o),i=r.next();!i.done;i=r.next()){i.value.push(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}),(function(){for(;o.length>0;)r.next(o.shift());r.complete()})))}))},bufferWhen:function(e){return Du((function(t,n){var r=null,o=null,i=function(){null==o||o.unsubscribe();var t=r;r=[],t&&n.next(t),za(e()).subscribe(o=new $u(n,i,xu))};i(),t.subscribe(new $u(n,(function(e){return null==r?void 0:r.push(e)}),(function(){r&&n.next(r),n.complete()}),void 0,(function(){return r=o=null})))}))},catchError:function e(t){return Du((function(n,r){var o,i=null,u=!1;i=n.subscribe(new $u(r,void 0,void 0,(function(a){o=za(t(a,e(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(r)):u=!0}))),u&&(i.unsubscribe(),i=null,o.subscribe(r))}))},combineAll:Kc,combineLatestAll:Gc,combineLatestWith:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Xc.apply(void 0,uu([],iu(e)))},concatAll:Tc,concatMap:Qc,concatMapTo:function(e,t){return fu(t)?Qc((function(){return e}),t):Qc((function(){return e}))},concatWith:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Zc.apply(void 0,uu([],iu(e)))},connect:ts,count:function(e){return Jc((function(t,n,r){return!e||e(n,r)?t+1:t}),0)},debounce:function(e){return Du((function(t,n){var r=!1,o=null,i=null,u=function(){if(null==i||i.unsubscribe(),i=null,r){r=!1;var e=o;o=null,n.next(e)}};t.subscribe(new $u(n,(function(t){null==i||i.unsubscribe(),r=!0,o=t,i=new $u(n,u,xu),za(e(t)).subscribe(i)}),(function(){u(),n.complete()}),void 0,(function(){o=i=null})))}))},debounceTime:function(e,t){return void 0===t&&(t=ya),Du((function(n,r){var o=null,i=null,u=null,a=function(){if(o){o.unsubscribe(),o=null;var e=i;i=null,r.next(e)}};function c(){var n=u+e,i=t.now();if(i<n)return o=this.schedule(void 0,n-i),void r.add(o);a()}n.subscribe(new $u(r,(function(n){i=n,u=t.now(),o||(o=t.schedule(c,e),r.add(o))}),(function(){a(),r.complete()}),void 0,(function(){i=o=null})))}))},defaultIfEmpty:ns,delay:function(e,t){void 0===t&&(t=ya);var n=Pc(e,t);return us((function(){return n}))},delayWhen:us,dematerialize:function(){return Du((function(e,t){e.subscribe(new $u(t,(function(e){return ec(e,t)})))}))},distinct:function(e,t){return Du((function(n,r){var o=new Set;n.subscribe(new $u(r,(function(t){var n=e?e(t):t;o.has(n)||(o.add(n),r.next(t))}))),null==t||t.subscribe(new $u(r,(function(){return o.clear()}),xu))}))},distinctUntilChanged:as,distinctUntilKeyChanged:function(e,t){return as((function(n,r){return t?t(n[e],r[e]):n[e]===r[e]}))},elementAt:function(e,t){if(e<0)throw new nc;var n=arguments.length>=2;return function(r){return r.pipe(Dc((function(t,n){return n===e})),rs(1),n?ns(t):ss((function(){return new nc})))}},endWith:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return Ac(t,Xa.apply(void 0,uu([],iu(e))))}},every:function(e,t){return Du((function(n,r){var o=0;n.subscribe(new $u(r,(function(i){e.call(t,i,o++,n)||(r.next(!1),r.complete())}),(function(){r.next(!0),r.complete()})))}))},exhaust:ds,exhaustAll:ls,exhaustMap:function e(t,n){return n?function(r){return r.pipe(e((function(e,r){return za(t(e,r)).pipe(sc((function(t,o){return n(e,t,r,o)})))})))}:Du((function(e,n){var r=0,o=null,i=!1;e.subscribe(new $u(n,(function(e){o||(o=new $u(n,void 0,(function(){o=null,i&&n.complete()})),za(t(e,r++)).subscribe(o))}),(function(){i=!0,!o&&n.complete()})))}))},expand:function(e,t,n){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,Du((function(r,o){return _c(r,o,e,t,void 0,!0,n)}))},filter:Dc,finalize:function(e){return Du((function(t,n){try{t.subscribe(n)}finally{n.add(e)}}))},find:function(e,t){return Du(ps(e,t,"value"))},findIndex:function(e,t){return Du(ps(e,t,"index"))},first:function(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Dc((function(t,n){return e(t,n,r)})):Mu,rs(1),n?ns(t):ss((function(){return new tc})))}},groupBy:function(e,t,n,r){return Du((function(o,i){var u;t&&"function"!=typeof t?(n=t.duration,u=t.element,r=t.connector):u=t;var a=new Map,c=function(e){a.forEach(e),e(i)},s=function(e){return c((function(t){return t.error(e)}))},f=new hs(i,(function(t){try{var o=e(t),c=a.get(o);if(!c){a.set(o,c=r?r():new Ku);var l=(p=o,h=c,(v=new Bu((function(e){f.activeGroups++;var t=h.subscribe(e);return function(){t.unsubscribe(),0==--f.activeGroups&&f.teardownAttempted&&f.unsubscribe()}}))).key=p,v);if(i.next(l),n){var d=new $u(c,(function(){c.complete(),null==d||d.unsubscribe()}),void 0,void 0,(function(){return a.delete(o)}));f.add(za(n(l)).subscribe(d))}}c.next(u?u(t):t)}catch(e){s(e)}var p,h,v}),(function(){return c((function(e){return e.complete()}))}),s,(function(){return a.clear()}));o.subscribe(f)}))},ignoreElements:os,isEmpty:function(){return Du((function(e,t){e.subscribe(new $u(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))},last:function(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Dc((function(t,n){return e(t,n,r)})):Mu,vs(1),n?ns(t):ss((function(){return new tc})))}},map:sc,mapTo:is,materialize:function(){return Du((function(e,t){e.subscribe(new $u(t,(function(e){t.next(Za.createNext(e))}),(function(){t.next(Za.createComplete()),t.complete()}),(function(e){t.next(Za.createError(e)),t.complete()})))}))},max:function(e){return Jc(fu(e)?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})},mergeAll:Ec,flatMap:ys,mergeMap:Sc,mergeMapTo:function(e,t,n){return void 0===n&&(n=1/0),fu(t)?Sc((function(){return e}),t,n):("number"==typeof t&&(n=t),Sc((function(){return e}),n))},mergeScan:function(e,t,n){return void 0===n&&(n=1/0),Du((function(r,o){var i=t;return _c(r,o,(function(t,n){return e(i,t,n)}),n,(function(e){i=e}),!1,void 0,(function(){return i=null}))}))},mergeWith:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return bs.apply(void 0,uu([],iu(e)))},min:function(e){return Jc(fu(e)?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})},multicast:ms,observeOn:Ja,pairwise:function(){return Du((function(e,t){var n,r=!1;e.subscribe(new $u(t,(function(e){var o=n;n=e,r&&t.next([o,e]),r=!0})))}))},pluck:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return sc((function(t){for(var r=t,o=0;o<n;o++){var i=null==r?void 0:r[e[o]];if(void 0===i)return;r=i}return r}))},publish:function(e){return e?function(t){return ts(e)(t)}:function(e){return ms(new Ku)(e)}},publishBehavior:function(e){return function(t){var n=new Qu(e);return new Lu(t,(function(){return n}))}},publishLast:function(){return function(e){var t=new ta;return new Lu(e,(function(){return t}))}},publishReplay:function(e,t,n,r){n&&!fu(n)&&(r=n);var o=fu(n)?n:void 0;return function(n){return ms(new ea(e,t,r),o)(n)}},raceWith:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?Du((function(t,n){$c(uu([t],iu(e)))(n)})):Mu},reduce:Jc,repeat:function(e){return void 0===e&&(e=1/0),e<=0?function(){return Aa}:Du((function(t,n){var r,o=0,i=function(){var u=!1;r=t.subscribe(new $u(n,void 0,(function(){++o<e?r?(r.unsubscribe(),r=null,i()):u=!0:n.complete()}))),u&&(r.unsubscribe(),r=null,i())};i()}))},repeatWhen:function(e){return Du((function(t,n){var r,o,i=!1,u=!1,a=!1,c=function(){return a&&u&&(n.complete(),!0)},s=function(){a=!1,r=t.subscribe(new $u(n,void 0,(function(){a=!0,!c()&&(o||(o=new Ku,e(o).subscribe(new $u(n,(function(){r?s():i=!0}),(function(){u=!0,c()})))),o).next()}))),i&&(r.unsubscribe(),r=null,i=!1,s())};s()}))},retry:function(e){var t;void 0===e&&(e=1/0);var n=(t=e&&"object"==typeof e?e:{count:e}).count,r=void 0===n?1/0:n,o=t.delay,i=t.resetOnSuccess,u=void 0!==i&&i;return r<=0?Mu:Du((function(e,t){var n,i=0,a=function(){var c=!1;n=e.subscribe(new $u(t,(function(e){u&&(i=0),t.next(e)}),void 0,(function(e){if(i++<r){var u=function(){n?(n.unsubscribe(),n=null,a()):c=!0};if(null!=o){var s="number"==typeof o?Pc(o):za(o(e,i)),f=new $u(t,(function(){f.unsubscribe(),u()}),(function(){t.complete()}));s.subscribe(f)}else u()}else t.error(e)}))),c&&(n.unsubscribe(),n=null,a())};a()}))},retryWhen:function(e){return Du((function(t,n){var r,o,i=!1,u=function(){r=t.subscribe(new $u(n,void 0,void 0,(function(t){o||(o=new Ku,e(o).subscribe(new $u(n,(function(){return r?u():i=!0})))),o&&o.next(t)}))),i&&(r.unsubscribe(),r=null,i=!1,u())};u()}))},refCount:zu,sample:ws,sampleTime:function(e,t){return void 0===t&&(t=ya),ws(Mc(e,t))},scan:gs,sequenceEqual:function(e,t){return void 0===t&&(t=function(e,t){return e===t}),Du((function(n,r){var o={buffer:[],complete:!1},i={buffer:[],complete:!1},u=function(e){r.next(e),r.complete()},a=function(e,n){var o=new $u(r,(function(r){var o=n.buffer,i=n.complete;0===o.length?i?u(!1):e.buffer.push(r):!t(r,o.shift())&&u(!1)}),(function(){e.complete=!0;var t=n.complete,r=n.buffer;t&&u(0===r.length),null==o||o.unsubscribe()}));return o};n.subscribe(a(o,i)),e.subscribe(a(i,o))}))},share:xs,shareReplay:function(e,t,n){var r,o,i,u=!1;return e&&"object"==typeof e?(i=null!==(r=e.bufferSize)&&void 0!==r?r:1/0,t=null!==(o=e.windowTime)&&void 0!==o?o:1/0,u=!!e.refCount,n=e.scheduler):i=null!=e?e:1/0,xs({connector:function(){return new ea(i,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})},single:function(e){return Du((function(t,n){var r,o=!1,i=!1,u=0;t.subscribe(new $u(n,(function(a){i=!0,e&&!e(a,u++,t)||(o&&n.error(new oc("Too many matching values")),o=!0,r=a)}),(function(){o?(n.next(r),n.complete()):n.error(i?new rc("No matching values"):new tc)})))}))},skip:function(e){return Dc((function(t,n){return e<=n}))},skipLast:function(e){return e<=0?Mu:Du((function(t,n){var r=new Array(e),o=0;return t.subscribe(new $u(n,(function(t){var i=o++;if(i<e)r[i]=t;else{var u=i%e,a=r[u];r[u]=t,n.next(a)}}))),function(){r=null}}))},skipUntil:function(e){return Du((function(t,n){var r=!1,o=new $u(n,(function(){null==o||o.unsubscribe(),r=!0}),xu);za(e).subscribe(o),t.subscribe(new $u(n,(function(e){return r&&n.next(e)})))}))},skipWhile:function(e){return Du((function(t,n){var r=!1,o=0;t.subscribe(new $u(n,(function(t){return(r||(r=!e(t,o++)))&&n.next(t)})))}))},startWith:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ka(e);return Du((function(t,r){(n?Ac(e,t,n):Ac(e,t)).subscribe(r)}))},subscribeOn:Va,switchAll:function(){return Ss(Mu)},switchMap:Ss,switchMapTo:function(e,t){return fu(t)?Ss((function(){return e}),t):Ss((function(){return e}))},switchScan:function(e,t){return Du((function(n,r){var o=t;return Ss((function(t,n){return e(o,t,n)}),(function(e,t){return o=t,t}))(n).subscribe(r),function(){o=null}}))},take:rs,takeLast:vs,takeUntil:function(e){return Du((function(t,n){za(e).subscribe(new $u(n,(function(){return n.complete()}),xu)),!n.closed&&t.subscribe(n)}))},takeWhile:function(e,t){return void 0===t&&(t=!1),Du((function(n,r){var o=0;n.subscribe(new $u(r,(function(n){var i=e(n,o++);(i||t)&&r.next(n),!i&&r.complete()})))}))},tap:function(e,t,n){var r=fu(e)||t||n?{next:e,error:t,complete:n}:e;return r?Du((function(e,t){var n;null===(n=r.subscribe)||void 0===n||n.call(r);var o=!0;e.subscribe(new $u(t,(function(e){var n;null===(n=r.next)||void 0===n||n.call(r,e),t.next(e)}),(function(){var e;o=!1,null===(e=r.complete)||void 0===e||e.call(r),t.complete()}),(function(e){var n;o=!1,null===(n=r.error)||void 0===n||n.call(r,e),t.error(e)}),(function(){var e,t;o&&(null===(e=r.unsubscribe)||void 0===e||e.call(r)),null===(t=r.finalize)||void 0===t||t.call(r)})))})):Mu},throttle:Ts,throttleTime:function(e,t,n){void 0===t&&(t=ya),void 0===n&&(n=Es);var r=Pc(e,t);return Ts((function(){return r}),n)},throwIfEmpty:ss,timeInterval:function(e){return void 0===e&&(e=ba),function(t){return jc((function(){return t.pipe(gs((function(t,n){var r=t.current;return{value:n,current:e.now(),last:r}}),{current:e.now(),value:void 0,last:void 0}),sc((function(e){var t=e.current,n=e.last,r=e.value;return new As(r,t-n)})))}))}},timeout:ac,timeoutWith:function(e,t,n){var r,o,i;if(n=null!=n?n:ba,ic(e)?r=e:"number"==typeof e&&(o=e),!t)throw new TypeError("No observable provided to switch to");if(i=function(){return t},null==r&&null==o)throw new TypeError("No timeout provided.");return ac({first:r,each:o,scheduler:n,with:i})},timestamp:function(e){return void 0===e&&(e=Zu),sc((function(t){return{value:t,timestamp:e.now()}}))},toArray:Yc,window:function(e){return Du((function(t,n){var r=new Ku;n.next(r.asObservable());var o=function(e){r.error(e),n.error(e)};return t.subscribe(new $u(n,(function(e){return null==r?void 0:r.next(e)}),(function(){r.complete(),n.complete()}),o)),e.subscribe(new $u(n,(function(){r.complete(),n.next(r=new Ku)}),xu,o)),function(){null==r||r.unsubscribe(),r=null}}))},windowCount:function(e,t){void 0===t&&(t=0);var n=t>0?t:e;return Du((function(t,r){var o=[new Ku],i=0;r.next(o[0].asObservable()),t.subscribe(new $u(r,(function(t){var u,a;try{for(var c=ou(o),s=c.next();!s.done;s=c.next()){s.value.next(t)}}catch(e){u={error:e}}finally{try{s&&!s.done&&(a=c.return)&&a.call(c)}finally{if(u)throw u.error}}var f=i-e+1;if(f>=0&&f%n==0&&o.shift().complete(),++i%n==0){var l=new Ku;o.push(l),r.next(l.asObservable())}}),(function(){for(;o.length>0;)o.shift().complete();r.complete()}),(function(e){for(;o.length>0;)o.shift().error(e);r.error(e)}),(function(){null,o=null})))}))},windowTime:function(e){for(var t,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var i=null!==(t=ka(r))&&void 0!==t?t:ya,u=null!==(n=r[0])&&void 0!==n?n:null,a=r[1]||1/0;return Du((function(t,n){var r=[],o=!1,c=function(e){var t=e.window,n=e.subs;t.complete(),n.unsubscribe(),pu(r,e),o&&s()},s=function(){if(r){var t=new hu;n.add(t);var o=new Ku,u={window:o,subs:t,seen:0};r.push(u),n.next(o.asObservable()),Wa(t,i,(function(){return c(u)}),e)}};null!==u&&u>=0?Wa(n,i,s,u,!0):o=!0,s();var f=function(e){return r.slice().forEach(e)},l=function(e){f((function(t){var n=t.window;return e(n)})),e(n),n.unsubscribe()};return t.subscribe(new $u(n,(function(e){f((function(t){t.window.next(e),a<=++t.seen&&c(t)}))}),(function(){return l((function(e){return e.complete()}))}),(function(e){return l((function(t){return t.error(e)}))}))),function(){r=null}}))},windowToggle:function(e,t){return Du((function(n,r){var o=[],i=function(e){for(;0<o.length;)o.shift().error(e);r.error(e)};za(e).subscribe(new $u(r,(function(e){var n=new Ku;o.push(n);var u,a=new hu;try{u=za(t(e))}catch(e){return void i(e)}r.next(n.asObservable()),a.add(u.subscribe(new $u(r,(function(){pu(o,n),n.complete(),a.unsubscribe()}),xu,i)))}),xu)),n.subscribe(new $u(r,(function(e){var t,n,r=o.slice();try{for(var i=ou(r),u=i.next();!u.done;u=i.next()){u.value.next(e)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}),(function(){for(;0<o.length;)o.shift().complete();r.complete()}),i,(function(){for(;0<o.length;)o.shift().unsubscribe()})))}))},windowWhen:function(e){return Du((function(t,n){var r,o,i=function(e){r.error(e),n.error(e)},u=function(){var t;null==o||o.unsubscribe(),null==r||r.complete(),r=new Ku,n.next(r.asObservable());try{t=za(e())}catch(e){return void i(e)}t.subscribe(o=new $u(n,u,u,i))};u(),t.subscribe(new $u(n,(function(e){return r.next(e)}),(function(){r.complete(),n.complete()}),i,(function(){null==o||o.unsubscribe(),r=null})))}))},withLatestFrom:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Oa(e);return Du((function(t,r){for(var o=e.length,i=new Array(o),u=e.map((function(){return!1})),a=!1,c=function(t){za(e[t]).subscribe(new $u(r,(function(e){i[t]=e,a||u[t]||(u[t]=!0,(a=u.every(Mu))&&(u=null))}),xu))},s=0;s<o;s++)c(s);t.subscribe(new $u(r,(function(e){if(a){var t=uu([e],iu(i));r.next(n?n.apply(void 0,uu([],iu(t))):t)}})))}))},zipAll:function(e){return Hc(zc,e)},zipWith:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return js.apply(void 0,uu([],iu(e)))}}));function Os(e){var t=r.exports.useRef(!0),n=r.exports.useRef(null);return t.current&&(t.current=!1,n.current=e()),n}function ks(e){return(e+1)%1e6}!function(e){e.BadEventError=e.ObservableFiniteStateMachine=void 0;const t=Hi,n=Is,r=z;class o extends t.FiniteStateMachine{constructor(){super(...arguments),this.stateChanges=new n.Subject}observeStateChanges(){return this.stateChanges}send(e){const t=this.state;super.send(e);const n=this.state;this.stateChanges.next({event:e,oldState:t,newState:n}),(0,r.isEmptyObject)(this.schema[n])&&this.stateChanges.complete()}}e.ObservableFiniteStateMachine=o;var i=Hi;Object.defineProperty(e,"BadEventError",{enumerable:!0,get:function(){return i.BadEventError}})}(Zi),function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(nt,e),r(it,e),r(at,e),r(lt,e),r(vt,e),r(wt,e),r(_t,e),r(ai,e),r(Mi,e),r(zi,e),r(Hi,e),r(Zi,e)}(tt);var Cs="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.exports.useLayoutEffect:r.exports.useEffect;function Rs(e,t){return function(e,t,n){if(!n)return Os(t).current;var o=Os((function(){return new Qu(n)})),i=Os((function(){return t(o.current)})),u=r.exports.useRef(!0);return e((function(){u.current?u.current=!1:o.current.next(n)}),n),i.current}(r.exports.useEffect,e,t)}function Ps(e,t){var n,o=(n=r.exports.useState(0)[1],r.exports.useRef((function(){return n(ks)})).current),i=r.exports.useRef(t),u=r.exports.useRef(),a=r.exports.useRef();if(Cs((function(){i.current=t})),e((function(){u.current=null;var e=i.current[0],t=e.subscribe({next:function(t){var n;if(e===i.current[0]){var r=(null===(n=i.current[1])||void 0===n?void 0:n.next)||i.current[1];return r?r(t):void 0}},error:function(t){var n;if(e===i.current[0]){var r=(null===(n=i.current[1])||void 0===n?void 0:n.error)||i.current[2];if(r)return u.current=null,r(t);u.current=t,o()}},complete:function(){var t;if(e===i.current[0]){var n=(null===(t=i.current[1])||void 0===t?void 0:t.complete)||i.current[3];return n?n():void 0}}});return a.current=t,function(){t.unsubscribe()}}),[t[0]]),u.current)throw u.current;return a}e.ObservableFiniteStateMachine=tt.ObservableFiniteStateMachine,e.useFiniteStateMachine=function(e,t){const n=Ze(),o=r.exports.useMemo((()=>new tt.ObservableFiniteStateMachine(e,t)),[e]);return function(e,t,n,o){Ps(r.exports.useEffect,[e,t,n,o])}(Rs((()=>o.observeStateChanges()),[o]),n),o},e.useForceUpdate=Ze,e.useIncrement=function(e){const[t,n]=r.exports.useState(e);return[t,r.exports.useCallback(((e=1)=>{n((t=>t+e))}),[]),r.exports.useCallback((()=>{n(e)}),[])]},e.useIsMounted=function(){const e=r.exports.useRef(!1);return $((()=>(e.current=!0,()=>{e.current=!1}))),()=>e.current},e.useMount=$,e.useResizeObserver=function(e,t){const n=t.map((e=>e.current));r.exports.useEffect((()=>{const n=new ResizeObserver(e);return t.map((e=>e.current)).filter(z.isntNull).forEach((e=>n.observe(e))),()=>n.disconnect()}),n)},e.useSingleSelection=function(e,t){Ue.assert(e.length>0,"The parameter values must be a non-empty array"),z.isntUndefined(t)&&Ue.assert(t>=0&&t<e.length,"The parameter defaultIndex must be in the range of 0 to values.length");const[n,o]=r.exports.useState(t);return{value:z.isUndefined(n)?void 0:e[n],options:e.map(((e,t)=>({value:e,index:t,selected:t===n,select:()=>o(t)})))}},e.useStateCycle=function(e,t=0){const[n,o]=r.exports.useState(t);return[e[n],()=>o((t=>t+1<e.length?t+1:0))]},e.useStep=function(e,t=0){const[n,o]=r.exports.useState(t);return[e[n],()=>{o((t=>t===e.length-1?t:t+1))},()=>{o((e=>0===e?e:e-1))}]},e.useToggle=function(e=!1){const[t,n]=r.exports.useState(e);return[t,()=>n((e=>!e))]},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
17
|
+
*/function f(){return s||(s=1,function(e){"production"!==process.env.NODE_ENV&&function(){var t=u(),r=60103,n=60106;e.Fragment=60107,e.StrictMode=60108,e.Profiler=60114;var o=60109,i=60110,a=60112;e.Suspense=60113;var c=60120,s=60115,l=60116,f=60121,p=60122,d=60117,v=60129,b=60131;if("function"==typeof Symbol&&Symbol.for){var y=Symbol.for;r=y("react.element"),n=y("react.portal"),e.Fragment=y("react.fragment"),e.StrictMode=y("react.strict_mode"),e.Profiler=y("react.profiler"),o=y("react.provider"),i=y("react.context"),a=y("react.forward_ref"),e.Suspense=y("react.suspense"),c=y("react.suspense_list"),s=y("react.memo"),l=y("react.lazy"),f=y("react.block"),p=y("react.server.block"),d=y("react.fundamental"),y("react.scope"),y("react.opaque.id"),v=y("react.debug_trace_mode"),y("react.offscreen"),b=y("react.legacy_hidden")}var h="function"==typeof Symbol&&Symbol.iterator;function m(e){if(null===e||"object"!=typeof e)return null;var t=h&&e[h]||e["@@iterator"];return"function"==typeof t?t:null}var g={current:null},w={current:null},O={},S=null;function _(e){S=e}O.setExtraStackFrame=function(e){S=e},O.getCurrentStack=null,O.getStackAddendum=function(){var e="";S&&(e+=S);var t=O.getCurrentStack;return t&&(e+=t()||""),e};var x={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:t};function j(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];P("warn",e,r)}function E(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];P("error",e,r)}function P(e,t,r){var n=x.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return""+e}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}x.ReactDebugCurrentFrame=O;var A={};function T(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;A[o]||(E("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),A[o]=!0)}var I={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){T(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){T(e,"replaceState")},enqueueSetState:function(e,t,r,n){T(e,"setState")}},k={};function C(e,t,r){this.props=e,this.context=t,this.refs=k,this.updater=r||I}Object.freeze(k),C.prototype.isReactComponent={},C.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},C.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var F={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},M=function(e,t){Object.defineProperty(C.prototype,e,{get:function(){j("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var R in F)F.hasOwnProperty(R)&&M(R,F[R]);function N(){}function B(e,t,r){this.props=e,this.context=t,this.refs=k,this.updater=r||I}N.prototype=C.prototype;var L=B.prototype=new N;function z(e){return e.displayName||"Context"}function U(t){if(null==t)return null;if("number"==typeof t.tag&&E("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case e.Fragment:return"Fragment";case n:return"Portal";case e.Profiler:return"Profiler";case e.StrictMode:return"StrictMode";case e.Suspense:return"Suspense";case c:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case i:return z(t)+".Consumer";case o:return z(t._context)+".Provider";case a:return d=t,v=t.render,b="ForwardRef",y=v.displayName||v.name||"",d.displayName||(""!==y?b+"("+y+")":b);case s:return U(t.type);case f:return U(t._render);case l:var r=t,u=r._payload,p=r._init;try{return U(p(u))}catch(e){return null}}var d,v,b,y;return null}L.constructor=B,t(L,C.prototype),L.isPureReactComponent=!0;var W,q,D,$=Object.prototype.hasOwnProperty,V={key:!0,ref:!0,__self:!0,__source:!0};function Y(e){if($.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function H(e){if($.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function J(e,t){var r=function(){W||(W=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}function K(e,t){var r=function(){q||(q=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}function G(e){if("string"==typeof e.ref&&w.current&&e.__self&&w.current.stateNode!==e.__self){var t=U(w.current.type);D[t]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),D[t]=!0)}}D={};var Q=function(e,t,n,o,i,a,u){var c={$$typeof:r,type:e,key:t,ref:n,props:u,_owner:a,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function X(e,t,r){var n,o={},i=null,a=null,u=null,c=null;if(null!=t)for(n in Y(t)&&(a=t.ref,G(t)),H(t)&&(i=""+t.key),u=void 0===t.__self?null:t.__self,c=void 0===t.__source?null:t.__source,t)$.call(t,n)&&!V.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(s>1){for(var l=Array(s),f=0;f<s;f++)l[f]=arguments[f+2];Object.freeze&&Object.freeze(l),o.children=l}if(e&&e.defaultProps){var p=e.defaultProps;for(n in p)void 0===o[n]&&(o[n]=p[n])}if(i||a){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&J(o,d),a&&K(o,d)}return Q(e,i,a,u,c,w.current,o)}function Z(e,r,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o,i,a=t({},e.props),u=e.key,c=e.ref,s=e._self,l=e._source,f=e._owner;if(null!=r)for(o in Y(r)&&(c=r.ref,f=w.current),H(r)&&(u=""+r.key),e.type&&e.type.defaultProps&&(i=e.type.defaultProps),r)$.call(r,o)&&!V.hasOwnProperty(o)&&(void 0===r[o]&&void 0!==i?a[o]=i[o]:a[o]=r[o]);var p=arguments.length-2;if(1===p)a.children=n;else if(p>1){for(var d=Array(p),v=0;v<p;v++)d[v]=arguments[v+2];a.children=d}return Q(e.type,u,c,s,l,f,a)}function ee(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var te=!1,re=/\/+/g;function ne(e){return e.replace(re,"$&/")}function oe(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function ie(e,t,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var c,s,l,f=!1;if(null===e)f=!0;else switch(u){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case r:case n:f=!0}}if(f){var p=e,d=a(p),v=""===i?"."+oe(p,0):i;if(Array.isArray(d)){var b="";null!=v&&(b=ne(v)+"/"),ie(d,t,b,"",(function(e){return e}))}else null!=d&&(ee(d)&&(c=d,s=o+(!d.key||p&&p.key===d.key?"":ne(""+d.key)+"/")+v,d=Q(c.type,s,c.ref,c._self,c._source,c._owner,c.props)),t.push(d));return 1}var y=0,h=""===i?".":i+":";if(Array.isArray(e))for(var g=0;g<e.length;g++)y+=ie(l=e[g],t,o,h+oe(l,g),a);else{var w=m(e);if("function"==typeof w){var O=e;w===O.entries&&(te||j("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),te=!0);for(var S,_=w.call(O),x=0;!(S=_.next()).done;)y+=ie(l=S.value,t,o,h+oe(l,x++),a)}else if("object"===u){var E=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===E?"object with keys {"+Object.keys(e).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}}return y}function ae(e,t,r){if(null==e)return e;var n=[],o=0;return ie(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function ue(e){if(-1===e._status){var t=(0,e._result)(),r=e;r._status=0,r._result=t,t.then((function(t){if(0===e._status){var r=t.default;void 0===r&&E("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",t);var n=e;n._status=1,n._result=r}}),(function(t){if(0===e._status){var r=e;r._status=2,r._result=t}}))}if(1===e._status)return e._result;throw e._result}function ce(t){return"string"==typeof t||"function"==typeof t||(t===e.Fragment||t===e.Profiler||t===v||t===e.StrictMode||t===e.Suspense||t===c||t===b||"object"==typeof t&&null!==t&&(t.$$typeof===l||t.$$typeof===s||t.$$typeof===o||t.$$typeof===i||t.$$typeof===a||t.$$typeof===d||t.$$typeof===f||t[0]===p))}function se(){var e=g.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");return e}var le,fe,pe,de,ve,be,ye,he=0;function me(){}me.__reactDisabledLog=!0;var ge,we=x.ReactCurrentDispatcher;function Oe(e,t,r){if(void 0===ge)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);ge=n&&n[1]||""}return"\n"+ge+e}var Se,_e=!1,xe="function"==typeof WeakMap?WeakMap:Map;function je(e,r){if(!e||_e)return"";var n,o=Se.get(e);if(void 0!==o)return o;_e=!0;var i,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=we.current,we.current=null,function(){if(0===he){le=console.log,fe=console.info,pe=console.warn,de=console.error,ve=console.group,be=console.groupCollapsed,ye=console.groupEnd;var e={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}he++}();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(u,[])}catch(e){n=e}Reflect.construct(e,[],u)}else{try{u.call()}catch(e){n=e}e.call(u.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var c=t.stack.split("\n"),s=n.stack.split("\n"),l=c.length-1,f=s.length-1;l>=1&&f>=0&&c[l]!==s[f];)f--;for(;l>=1&&f>=0;l--,f--)if(c[l]!==s[f]){if(1!==l||1!==f)do{if(l--,--f<0||c[l]!==s[f]){var p="\n"+c[l].replace(" at new "," at ");return"function"==typeof e&&Se.set(e,p),p}}while(l>=1&&f>=0);break}}}finally{_e=!1,we.current=i,function(){if(0==--he){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},e,{value:le}),info:t({},e,{value:fe}),warn:t({},e,{value:pe}),error:t({},e,{value:de}),group:t({},e,{value:ve}),groupCollapsed:t({},e,{value:be}),groupEnd:t({},e,{value:ye})})}he<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var d=e?e.displayName||e.name:"",v=d?Oe(d):"";return"function"==typeof e&&Se.set(e,v),v}function Ee(e,t,r){return je(e,!1)}function Pe(t,r,n){if(null==t)return"";if("function"==typeof t)return je(t,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(t));if("string"==typeof t)return Oe(t);switch(t){case e.Suspense:return Oe("Suspense");case c:return Oe("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case a:return Ee(t.render);case s:return Pe(t.type,r,n);case f:return Ee(t._render);case l:var o=t,i=o._payload,u=o._init;try{return Pe(u(i),r,n)}catch(e){}}return""}Se=new xe;var Ae,Te={},Ie=x.ReactDebugCurrentFrame;function ke(e){if(e){var t=e._owner,r=Pe(e.type,e._source,t?t.type:null);Ie.setExtraStackFrame(r)}else Ie.setExtraStackFrame(null)}function Ce(e){if(e){var t=e._owner;_(Pe(e.type,e._source,t?t.type:null))}else _(null)}function Fe(){if(w.current){var e=U(w.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Me(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Ae=!1;var Re={};function Ne(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=Fe();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!Re[r]){Re[r]=!0;var n="";e&&e._owner&&e._owner!==w.current&&(n=" It was passed a child from "+U(e._owner.type)+"."),Ce(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),Ce(null)}}}function Be(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];ee(n)&&Ne(n,t)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var o=m(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)ee(i.value)&&Ne(i.value,t)}}function Le(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==a&&r.$$typeof!==s)return;t=r.propTypes}if(t){var n=U(r);!function(e,t,r,n,o){var i=Function.call.bind(Object.prototype.hasOwnProperty);for(var a in e)if(i(e,a)){var u=void 0;try{if("function"!=typeof e[a]){var c=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}u=e[a](t,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||(ke(o),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,a,typeof u),ke(null)),u instanceof Error&&!(u.message in Te)&&(Te[u.message]=!0,ke(o),E("Failed %s type: %s",r,u.message),ke(null))}}(t,e.props,"prop",n,e)}else if(void 0!==r.PropTypes&&!Ae){Ae=!0,E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",U(r)||"Unknown")}"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ze(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){Ce(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),Ce(null);break}}null!==e.ref&&(Ce(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),Ce(null))}function Ue(t,n,o){var i=ce(t);if(!i){var a="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var u,c=Me(n);a+=c||Fe(),null===t?u="null":Array.isArray(t)?u="array":void 0!==t&&t.$$typeof===r?(u="<"+(U(t.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):u=typeof t,E("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",u,a)}var s=X.apply(this,arguments);if(null==s)return s;if(i)for(var l=2;l<arguments.length;l++)Be(arguments[l],t);return t===e.Fragment?ze(s):Le(s),s}var We=!1;try{var qe=Object.freeze({});new Map([[qe,null]]),new Set([qe])}catch(e){}var De=Ue,$e=function(e,t,r){for(var n=Z.apply(this,arguments),o=2;o<arguments.length;o++)Be(arguments[o],n.type);return Le(n),n},Ve=function(e){var t=Ue.bind(null,e);return t.type=e,We||(We=!0,j("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return j("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},Ye={map:ae,forEach:function(e,t,r){ae(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return ae(e,(function(){t++})),t},toArray:function(e){return ae(e,(function(e){return e}))||[]},only:function(e){if(!ee(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};e.Children=Ye,e.Component=C,e.PureComponent=B,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x,e.cloneElement=$e,e.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&E("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:i,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};r.Provider={$$typeof:o,_context:r};var n=!1,a=!1,u=!1,c={$$typeof:i,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(c,{Provider:{get:function(){return a||(a=!0,E("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,E("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}},displayName:{get:function(){return r.displayName},set:function(e){u||(j("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),u=!0)}}}),r.Consumer=c,r._currentRenderer=null,r._currentRenderer2=null,r},e.createElement=De,e.createFactory=Ve,e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){null!=e&&e.$$typeof===s?E("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?E("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&E("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||E("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,r={$$typeof:a,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,null==e.displayName&&(e.displayName=r)}}),r},e.isValidElement=ee,e.lazy=function(e){var t,r,n={$$typeof:l,_payload:{_status:-1,_result:e},_init:ue};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){E("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){E("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},e.memo=function(e,t){ce(e)||E("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var r,n={$$typeof:s,type:e,compare:void 0===t?null:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,null==e.displayName&&(e.displayName=t)}}),n},e.useCallback=function(e,t){return se().useCallback(e,t)},e.useContext=function(e,t){var r=se();if(void 0!==t&&E("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks":""),void 0!==e._context){var n=e._context;n.Consumer===e?E("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&E("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return r.useContext(e,t)},e.useDebugValue=function(e,t){return se().useDebugValue(e,t)},e.useEffect=function(e,t){return se().useEffect(e,t)},e.useImperativeHandle=function(e,t,r){return se().useImperativeHandle(e,t,r)},e.useLayoutEffect=function(e,t){return se().useLayoutEffect(e,t)},e.useMemo=function(e,t){return se().useMemo(e,t)},e.useReducer=function(e,t,r){return se().useReducer(e,t,r)},e.useRef=function(e){return se().useRef(e)},e.useState=function(e){return se().useState(e)},e.version="17.0.2"}()}(l)),l}function p(e){i.exports.useEffect(e,[])}!function(e){"production"===process.env.NODE_ENV?e.exports=c():e.exports=f()}(i);var d={},v={};function b(e){return Array.isArray(e)}v.isntEmptyArray=v.isEmptyArray=v.isntArray=v.isArray=void 0,v.isArray=b,v.isntArray=function(e){return!b(e)},v.isEmptyArray=function(e){return 0===e.length},v.isntEmptyArray=function(e){return 0!==e.length};var y={},h={};function m(e){return null===e}h.isntNull=h.isNull=void 0,h.isNull=m,h.isntNull=function(e){return!m(e)};var g={};function w(e){return void 0===e}g.isntUndefined=g.isUndefined=void 0,g.isUndefined=w,g.isntUndefined=function(e){return!w(e)};var O={};function S(e){return"function"==typeof e}O.isntFunction=O.isFunction=void 0,O.isFunction=S,O.isntFunction=function(e){return!S(e)},y.isntAsyncIterable=y.isAsyncIterable=void 0;const _=h,x=g,j=O;function E(e){return(0,_.isntNull)(e)&&(0,x.isntUndefined)(e)&&(0,j.isFunction)(e[Symbol.asyncIterator])}y.isAsyncIterable=E,y.isntAsyncIterable=function(e){return!E(e)};var P={};function A(e){return"bigint"==typeof e}P.isntBigInt=P.isBigInt=void 0,P.isBigInt=A,P.isntBigInt=function(e){return!A(e)};var T={};function I(e){return"boolean"==typeof e}T.isntBoolean=T.isBoolean=void 0,T.isBoolean=I,T.isntBoolean=function(e){return!I(e)};var k={},C={};function F(e){return"string"==typeof e}C.isntString=C.isString=void 0,C.isString=F,C.isntString=function(e){return!F(e)},k.isntChar=k.isChar=void 0;const M=C;function R(e){return(0,M.isString)(e)&&1===e.length}k.isChar=R,k.isntChar=function(e){return!R(e)};var N={};function B(e){return e instanceof Date}N.isntDate=N.isDate=void 0,N.isDate=B,N.isntDate=function(e){return!B(e)};var L={};L.inEnum=void 0,L.inEnum=function(e,t){return Object.values(t).includes(e)};var z={};function U(e){return e instanceof Error}z.isntError=z.isError=void 0,z.isError=U,z.isntError=function(e){return!U(e)};var W={};function q(e){return!e}W.isntFalsy=W.isFalsy=void 0,W.isFalsy=q,W.isntFalsy=function(e){return!q(e)};var D={};D.isntIterable=D.isIterable=void 0;const $=h,V=g,Y=O;function H(e){return(0,$.isntNull)(e)&&(0,V.isntUndefined)(e)&&(0,Y.isFunction)(e[Symbol.iterator])}D.isIterable=H,D.isntIterable=function(e){return!H(e)};var J={},K={};function G(e){return"number"==typeof e}function Q(e){return Number.isNaN(e)}K.isntNaN=K.isNaN=K.isNegativeInfinity=K.isPositiveInfinity=K.isFinite=K.isntNumber=K.isNumber=void 0,K.isNumber=G,K.isntNumber=function(e){return!G(e)},K.isFinite=function(e){return Number.isFinite(e)},K.isPositiveInfinity=function(e){return e===1/0},K.isNegativeInfinity=function(e){return e===-1/0},K.isNaN=Q,K.isntNaN=function(e){return!Q(e)};var X={},Z="object"==typeof o&&o&&o.Object===Object&&o,ee="object"==typeof self&&self&&self.Object===Object&&self,te=(Z||ee||Function("return this")()).Symbol,re=te,ne=Object.prototype,oe=ne.hasOwnProperty,ie=ne.toString,ae=re?re.toStringTag:void 0;var ue=function(e){var t=oe.call(e,ae),r=e[ae];try{e[ae]=void 0;var n=!0}catch(e){}var o=ie.call(e);return n&&(t?e[ae]=r:delete e[ae]),o},ce=Object.prototype.toString;var se=ue,le=function(e){return ce.call(e)},fe=te?te.toStringTag:void 0;var pe=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":fe&&fe in Object(e)?se(e):le(e)};var de=function(e,t){return function(r){return e(t(r))}}(Object.getPrototypeOf,Object);var ve=pe,be=de,ye=function(e){return null!=e&&"object"==typeof e},he=Function.prototype,me=Object.prototype,ge=he.toString,we=me.hasOwnProperty,Oe=ge.call(Object);var Se=function(e){if(!ye(e)||"[object Object]"!=ve(e))return!1;var t=be(e);if(null===t)return!0;var r=we.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ge.call(r)==Oe},_e=o&&o.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};X.isntEmptyObject=X.isEmptyObject=X.isntPlainObject=X.isPlainObject=X.isntObject=X.isObject=void 0;const xe=_e(Se);function je(e){return null!==e&&"object"==typeof e}function Ee(e){return(0,xe.default)(e)}X.isObject=je,X.isntObject=function(e){return!je(e)},X.isPlainObject=Ee,X.isntPlainObject=function(e){return!Ee(e)},X.isEmptyObject=function(e){return 0===Object.keys(e).length},X.isntEmptyObject=function(e){return 0!==Object.keys(e).length},J.isntJsonable=J.isJsonable=J.isntJson=J.isJson=void 0;const Pe=h,Ae=T,Te=C,Ie=K,ke=v,Ce=X;function Fe(e){return(0,Pe.isNull)(e)||(0,Ae.isBoolean)(e)||(0,Te.isString)(e)||(0,Ie.isNumber)(e)||(0,ke.isArray)(e)&&e.every(Fe)||(0,Ce.isPlainObject)(e)&&Object.values(e).every(Fe)}J.isJson=Fe,J.isntJson=function(e){return!Fe(e)},J.isJsonable=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},J.isntJsonable=function e(t){return!e()};var Me={};Me.isPromiseLike=Me.isntPromiseLike=Me.isntPromise=Me.isPromise=void 0;const Re=X,Ne=O;function Be(e){return e instanceof Promise}function Le(e){return(0,Re.isObject)(e)&&(0,Ne.isFunction)(e.then)}Me.isPromise=Be,Me.isntPromise=function(e){return!Be(e)},Me.isntPromiseLike=function(e){return!Le(e)},Me.isPromiseLike=Le;var ze={};ze.isAbsoluteURL=void 0,ze.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}},function(e){var t=o&&o.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=o&&o.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(v,e),r(y,e),r(P,e),r(T,e),r(k,e),r(N,e),r(L,e),r(z,e),r(W,e),r(O,e),r(D,e),r(J,e),r(h,e),r(K,e),r(X,e),r(Me,e),r(C,e),r(g,e),r(ze,e)}(d);var Ue,We={},qe={},De={},$e={},Ve={},Ye={},He={};He.go=void 0,He.go=function(e){return e()},function(e){var t=o&&o.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]});(o&&o.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)})(He,e)}(Ye);var Je={chunkByAsync:void 0};const Ke=d;Je.chunkByAsync=function(e,t){return(0,Ke.isAsyncIterable)(e)?async function*(e){let r=[],n=0;for await(const o of e)r.push(o),await t(o,n)&&(yield r,r=[]),n++;r.length&&(yield r)}(e):async function*(e){let r=[],n=0;for(const o of e)r.push(o),await t(o,n)&&(yield r,r=[]),n++;r.length&&(yield r)}(e)};var Ge={};Ge.chunkBy=void 0,Ge.chunkBy=function*(e,t){let r=[],n=0;for(const o of e)r.push(o),t(o,n)&&(yield r,r=[]),n++;r.length&&(yield r)};var Qe,Xe={};var Ze={concatAsync:void 0};const et=d,tt=Ye;Ze.concatAsync=function(e,...t){return(0,tt.go)((async function*(){for(const r of[e,...t])if((0,et.isAsyncIterable)(r))for await(const e of r)yield e;else for(const e of r)yield e}))};var rt={concat:void 0};const nt=Ye;rt.concat=function(e,...t){return(0,nt.go)((function*(){for(const r of[e,...t])yield*r}))};var ot,it={},at={};at.copyIterable=at.copyAsyncIterable=void 0,at.copyAsyncIterable=async function*(e){for await(const t of e)yield t},at.copyIterable=function*(e){for(const t of e)yield t};var ut,ct={};var st,lt={};var ft={dropUntilAsync:void 0};const pt=d;ft.dropUntilAsync=function(e,t){return(0,pt.isAsyncIterable)(e)?async function*(e){var r;const n=e[Symbol.asyncIterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=await n.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=await n.next())}finally{o||await(null===(r=n.return)||void 0===r?void 0:r.call(n))}}(e):async function*(e){var r;const n=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=n.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=n.next())}finally{o||null===(r=n.return)||void 0===r||r.call(n)}}(e)};var dt={};dt.dropUntil=void 0,dt.dropUntil=function*(e,t){var r;const n=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=n.next()),o||t(e,i++)););for(;!o;)yield e,({value:e,done:o}=n.next())}finally{o||null===(r=n.return)||void 0===r||r.call(n)}};var vt,bt={};var yt={filterAsync:void 0};const ht=d;yt.filterAsync=function(e,t){return(0,ht.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e)await t(n,r)&&(yield n),r++}(e):async function*(e){let r=0;for(const n of e)await t(n,r)&&(yield n),r++}(e)};var mt={};mt.filter=void 0,mt.filter=function*(e,t){let r=0;for(const n of e)t(n,r)&&(yield n),r++};var gt={},wt={},Ot={flattenByAsync:void 0};const St=d;function _t(e){return(0,St.isIterable)(e)&&(0,St.isntChar)(e)}var xt,jt;function Et(){if(xt)return wt;xt=1,wt.flattenDeepAsync=void 0;const e=Ot,t=Cn();return wt.flattenDeepAsync=function(r,n=1/0){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,t.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,e.flattenByAsync)(r,((e,t)=>t<=n))},wt}Ot.flattenByAsync=function(e,t){return(0,St.isAsyncIterable)(e)?async function*(e){const n=1;for await(const o of e)_t(o)&&await t(o,n)?yield*r(o,n+1):yield o}(e):function(e){return r(e,1)}(e);async function*r(e,n){for(const o of e)_t(o)&&await t(o,n)?yield*r(o,n+1):yield o}};var Pt={flattenBy:void 0};const At=d;Pt.flattenBy=function(e,t){return function*e(r,n){for(const i of r)o=i,(0,At.isIterable)(o)&&(0,At.isntChar)(o)&&t(i,n)?yield*e(i,n+1):yield i;var o}(e,1)};var Tt,It={};function kt(){if(Tt)return It;Tt=1,It.flattenDeep=void 0;const e=Pt,t=Cn();return It.flattenDeep=function(r,n=1/0){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,t.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,e.flattenBy)(r,((e,t)=>t<=n))},It}var Ct,Ft={};var Mt={mapAsync:void 0};const Rt=d;Mt.mapAsync=function(e,t){return(0,Rt.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e)yield await t(n,r),r++}(e):async function*(e){let r=0;for(const n of e)yield await t(n,r),r++}(e)};var Nt={};Nt.map=void 0,Nt.map=function*(e,t){let r=0;for(const n of e)yield t(n,r),r++};var Bt,Lt={};function zt(){if(Bt)return Lt;Bt=1,Lt.repeatAsync=void 0;const e=Ye,t=Cn();return Lt.repeatAsync=function(r,n){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,t.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,e.go)((async function*(){const e=[];if(n>0){for await(const t of r)yield t,e.push(t);n--}for(;n>0;)yield*e,n--}))},Lt}var Ut,Wt={};function qt(){if(Ut)return Wt;Ut=1,Wt.repeat=void 0;const e=Ye,t=Cn();return Wt.repeat=function(r,n){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,t.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,e.go)((function*(){const e=[];if(n>0){for(const t of r)yield t,e.push(t);n--}for(;n>0;)yield*e,n--}))},Wt}var Dt,$t={};var Vt,Yt={};var Ht={};Ht.splitAsync=void 0,Ht.splitAsync=async function*(e,t){let r=[];for await(const n of e)n===t?(yield r,r=[]):r.push(n);yield r};var Jt={splitByAsync:void 0};const Kt=d;Jt.splitByAsync=function(e,t){return(0,Kt.isAsyncIterable)(e)?async function*(e){let r=[],n=0;for await(const o of e)await t(o,n)?(yield r,r=[]):r.push(o),n++;yield r}(e):async function*(e){let r=[],n=0;for(const o of e)await t(o,n)?(yield r,r=[]):r.push(o),n++;yield r}(e)};var Gt={};Gt.splitBy=void 0,Gt.splitBy=function*(e,t){let r=[],n=0;for(const o of e)t(o,n)?(yield r,r=[]):r.push(o),n++;yield r};var Qt={};Qt.split=void 0,Qt.split=function*(e,t){let r=[];for(const n of e)n===t?(yield r,r=[]):r.push(n);yield r};var Xt,Zt={};var er,tr={};var rr,nr={};var or={takeUntilAsync:void 0};const ir=d;or.takeUntilAsync=function(e,t){return(0,ir.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e){if(await t(n,r))break;yield n,r++}}(e):async function*(e){let r=0;for(const n of e){if(await t(n,r))break;yield n,r++}}(e)};var ar={};ar.takeUntil=void 0,ar.takeUntil=function*(e,t){let r=0;for(const n of e){if(t(n,r))break;yield n,r++}};var ur,cr={};var sr={tapAsync:void 0};const lr=d;sr.tapAsync=function(e,t){return(0,lr.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e)await t(n,r),yield n,r++}(e):async function*(e){let r=0;for(const n of e)await t(n,r),yield n,r++}(e)};var fr={};fr.tap=void 0,fr.tap=function*(e,t){let r=0;for(const n of e)t(n,r),yield n,r++};var pr={};pr.toAsyncIterable=void 0,pr.toAsyncIterable=async function*(e){for(const t of e)yield t};var dr={};dr.transformAsync=void 0,dr.transformAsync=async function*(e,t){yield*t(e)};var vr={};vr.transform=void 0,vr.transform=function*(e,t){yield*t(e)};var br={};br.uniqAsync=void 0,br.uniqAsync=async function*(e){const t=new Set;for await(const r of e)t.has(r)||(yield r,t.add(r))};var yr={uniqByAsync:void 0};const hr=d;yr.uniqByAsync=function(e,t){return(0,hr.isAsyncIterable)(e)?async function*(e){const r=new Set;let n=0;for await(const o of e){const e=await t(o,n);r.has(e)||(yield o,r.add(e)),n++}}(e):async function*(e){const r=new Set;let n=0;for(const o of e){const e=await t(o,n);r.has(e)||(yield o,r.add(e)),n++}}(e)};var mr={};mr.uniqBy=void 0,mr.uniqBy=function*(e,t){const r=new Set;let n=0;for(const o of e){const e=t(o,n);r.has(e)||(yield o,r.add(e)),n++}};var gr={};gr.uniq=void 0,gr.uniq=function*(e){const t=new Set;for(const r of e)t.has(r)||(yield r,t.add(r))};var wr={zipAsync:void 0};const Or=d;var Sr;!function(e){e[e.Sync=0]="Sync",e[e.Async=1]="Async"}(Sr||(Sr={})),wr.zipAsync=function(e,...t){return async function*(...e){var t,r,n,o;const i=e.length,a=e.map((e=>(0,Or.isAsyncIterable)(e)?[Sr.Async,e[Symbol.asyncIterator]()]:[Sr.Sync,e[Symbol.iterator]()])),u=a.map((()=>!1));try{for(;;){const e=new Array(i);for(let t=0;t<i;t++){const[r,n]=a[t];let o;if(o=r===Sr.Async?await n.next():n.next(),o.done)return void(u[t]=!0);e[t]=o.value}yield e}}finally{const e=a.filter(((e,t)=>!u[t]));for(const[i,a]of e)i===Sr.Async?await(null===(r=(t=a).return)||void 0===r?void 0:r.call(t)):null===(o=(n=a).return)||void 0===o||o.call(n)}}(e,...t)};var _r,xr={};function jr(){return _r||(_r=1,function(e){var t=o&&o.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=o&&o.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(function(){if(Ue)return Ve;Ue=1,Ve.chunkAsync=void 0;const e=Ye,t=Cn();return Ve.chunkAsync=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,t.assert)(n>0,"The parameter size must be greater than 0"),(0,e.go)((async function*(){let e=[];for await(const t of r)e.push(t),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))},Ve}(),e),r(Je,e),r(Ge,e),r(function(){if(Qe)return Xe;Qe=1,Xe.chunk=void 0;const e=Ye,t=Cn();return Xe.chunk=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,t.assert)(n>0,"The parameter size must be greater than 0"),(0,e.go)((function*(){let e=[];for(const t of r)e.push(t),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))},Xe}(),e),r(Ze,e),r(rt,e),r(function(){if(ot)return it;ot=1,it.dropAsync=void 0;const e=Ye,t=at,r=Cn();return it.dropAsync=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyAsyncIterable)(n):(0,e.go)((async function*(){var e;const t=n[Symbol.asyncIterator]();let r;try{let n;for(;({value:n,done:r}=await t.next()),!(r||o<=0);)o--;for(;!r;)yield n,({value:n,done:r}=await t.next())}finally{r||await(null===(e=t.return)||void 0===e?void 0:e.call(t))}}))},it}(),e),r(function(){if(ut)return ct;ut=1,ct.dropRightAsync=void 0;const e=Ye,t=at,r=Cn();return ct.dropRightAsync=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyAsyncIterable)(n):(0,e.go)((async function*(){const e=(await async function(e){const t=[];for await(const r of e)t.push(r);return t}(n)).slice(0,-o);for(const t of e)yield t}))},ct}(),e),r(function(){if(st)return lt;st=1,lt.dropRight=void 0;const e=Ye,t=at,r=Cn();return lt.dropRight=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyIterable)(n):(0,e.go)((function*(){const e=Array.from(n);yield*e.slice(0,-o)}))},lt}(),e),r(ft,e),r(dt,e),r(function(){if(vt)return bt;vt=1,bt.drop=void 0;const e=Ye,t=at,r=Cn();return bt.drop=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyIterable)(n):(0,e.go)((function*(){var e;const t=n[Symbol.iterator]();let r;try{let n;for(;({value:n,done:r}=t.next()),!(r||o<=0);)o--;for(;!r;)yield n,({value:n,done:r}=t.next())}finally{r||null===(e=t.return)||void 0===e||e.call(t)}}))},bt}(),e),r(yt,e),r(mt,e),r(function(){if(jt)return gt;jt=1,gt.flattenAsync=void 0;const e=Et();return gt.flattenAsync=function(t){return(0,e.flattenDeepAsync)(t,1)},gt}(),e),r(Ot,e),r(Pt,e),r(Et(),e),r(kt(),e),r(function(){if(Ct)return Ft;Ct=1,Ft.flatten=void 0;const e=kt();return Ft.flatten=function(t){return(0,e.flattenDeep)(t,1)},Ft}(),e),r(Mt,e),r(Nt,e),r(zt(),e),r(qt(),e),r(function(){if(Dt)return $t;Dt=1,$t.sliceAsync=void 0;const e=Ye,t=Cn();return $t.sliceAsync=function(r,n,o=1/0){return(0,t.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,t.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,t.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,t.assert)(o>=n,"The parameter end must be greater than or equal to start"),(0,e.go)((async function*(){let e=0;for await(const t of r){if(e>=o)break;e>=n&&(yield t),e++}}))},$t}(),e),r(function(){if(Vt)return Yt;Vt=1,Yt.slice=void 0;const e=Ye,t=Cn();return Yt.slice=function(r,n,o=1/0){return(0,t.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,t.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,t.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,t.assert)(o>=n,"The parameter end must be greater than or equal to start"),(0,e.go)((function*(){let e=0;for(const t of r){if(e>=o)break;e>=n&&(yield t),e++}}))},Yt}(),e),r(Ht,e),r(Jt,e),r(Gt,e),r(Qt,e),r(function(){if(Xt)return Zt;Xt=1,Zt.takeAsync=void 0;const e=Ye,t=Cn();return Zt.takeAsync=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((async function*(){if(0!==n)for await(const e of r)if(yield e,0==--n)break}))},Zt}(),e),r(function(){if(er)return tr;er=1,tr.takeRightAsync=void 0;const e=Ye,t=Cn();return tr.takeRightAsync=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((async function*(){var e;const t=r[Symbol.asyncIterator]();let o;try{const r=[];let i;for(;({value:i,done:o}=await t.next()),!o;)r.push(i),r.length>n&&r.shift();yield*r}finally{o||await(null===(e=t.return)||void 0===e?void 0:e.call(t))}}))},tr}(),e),r(function(){if(rr)return nr;rr=1,nr.takeRight=void 0;const e=Ye,t=Cn();return nr.takeRight=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((function*(){var e;const t=r[Symbol.iterator]();let o;try{const r=[];let i;for(;({value:i,done:o}=t.next()),!o;)r.push(i),r.length>n&&r.shift();yield*r}finally{o||null===(e=t.return)||void 0===e||e.call(t)}}))},nr}(),e),r(or,e),r(ar,e),r(function(){if(ur)return cr;ur=1,cr.take=void 0;const e=Ye,t=Cn();return cr.take=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((function*(){if(0!==n)for(const e of r)if(yield e,0==--n)break}))},cr}(),e),r(sr,e),r(fr,e),r(pr,e),r(dr,e),r(vr,e),r(br,e),r(yr,e),r(mr,e),r(gr,e),r(wr,e),r(xr,e)}($e)),$e}xr.zip=void 0,xr.zip=function(e,...t){return function*(...e){const t=e.length,r=e.map((e=>e[Symbol.iterator]())),n=r.map((()=>!1));try{for(;;){const e=new Array(t);for(let o=0;o<t;o++){const{value:t,done:i}=r[o].next();if(i)return void(n[o]=!0);e[o]=t}yield e}}finally{r.filter(((e,t)=>!n[t])).forEach((e=>{var t;return null===(t=e.return)||void 0===t?void 0:t.call(e)}))}}(e,...t)};var Er={},Pr={};Pr.consume=void 0,Pr.consume=function(e,t){return t(e)};var Ar={eachAsync:void 0};const Tr=d;Ar.eachAsync=function(e,t){return(0,Tr.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e)await t(n,r),r++}(e):async function(e){let r=0;for(const n of e)await t(n,r),r++}(e)};var Ir={};Ir.each=void 0,Ir.each=function(e,t){let r=0;for(const n of e)t(n,r),r++};var kr={everyAsync:void 0};const Cr=d;kr.everyAsync=function(e,t){return(0,Cr.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e){if(!await t(n,r))return!1;r++}return!0}(e):async function(e){let r=0;for(const n of e){if(!await t(n,r))return!1;r++}return!0}(e)};var Fr={};Fr.every=void 0,Fr.every=function(e,t){let r=0;for(const n of e){if(!t(n,r))return!1;r++}return!0};var Mr={findAsync:void 0};const Rr=d;Mr.findAsync=function(e,t){return(0,Rr.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e){if(await t(n,r))return n;r++}return}(e):async function(e){let r=0;for(const n of e){if(await t(n,r))return n;r++}return}(e)};var Nr={};Nr.find=void 0,Nr.find=function(e,t){let r=0;for(const n of e){if(t(n,r))return n;r++}};var Br={};Br.firstAsync=void 0,Br.firstAsync=async function(e){for await(const t of e)return t};var Lr={};Lr.first=void 0,Lr.first=function(e){for(const t of e)return t};var zr={};zr.includesAsync=void 0,zr.includesAsync=async function(e,t){for await(const r of e)if(r===t)return!0;return!1};var Ur={};Ur.includes=void 0,Ur.includes=function(e,t){for(const r of e)if(r===t)return!0;return!1};var Wr={};Wr.matchAsync=void 0,Wr.matchAsync=async function(e,t){const r=t.length;let n=0;for await(const o of e)if(o===t[n]&&n++,n===r)return!0;return!1};var qr={};qr.match=void 0,qr.match=function(e,t){const r=t.length;let n=0;for(const o of e)if(o===t[n]&&n++,n===r)return!0;return!1};var Dr={reduceAsync:void 0};const $r=d;Dr.reduceAsync=function(e,t,r){return(0,$r.isUndefined)(r)?function(e,t){return(0,$r.isAsyncIterable)(e)?r(e):n(e);async function r(e){var r;const n=e[Symbol.asyncIterator]();let o;try{let e,a=await i(n),u=1;for(;({value:e,done:o}=await n.next()),!o;)a=await t(a,e,u++);return a}finally{o||await(null===(r=n.return)||void 0===r?void 0:r.call(n))}async function i(e){const t=await e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}async function n(e){var r;const n=e[Symbol.iterator]();let o;try{let e,a=i(n),u=1;for(;({value:e,done:o}=n.next()),!o;)a=await t(a,e,u++);return a}finally{o||null===(r=n.return)||void 0===r||r.call(n)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}}(e,t):function(e,t,r){return(0,$r.isAsyncIterable)(e)?o(e):n(e);async function n(e){let n=r,o=0;for(const r of e)n=await t(n,r,o++);return n}async function o(e){let n=r,o=0;for await(const r of e)n=await t(n,r,o++);return n}}(e,t,r)};var Vr={reduce:void 0};const Yr=d;Vr.reduce=function(e,t,r){return(0,Yr.isUndefined)(r)?function(e,t){var r;const n=e[Symbol.iterator]();let o;try{let e,a=i(n),u=1;for(;({value:e,done:o}=n.next()),!o;)a=t(a,e,u++);return a}finally{o||null===(r=n.return)||void 0===r||r.call(n)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}(e,t):function(e,t,r){let n=r,o=0;for(const r of e)n=t(n,r,o++);return n}(e,t,r)};var Hr={someAsync:void 0};const Jr=d;Hr.someAsync=function(e,t){return(0,Jr.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e){if(await t(n,r))return!0;r++}return!1}(e):async function(e){let r=0;for(const n of e){if(await t(n,r))return!0;r++}return!1}(e)};var Kr={};Kr.some=void 0,Kr.some=function(e,t){let r=0;for(const n of e){if(t(n,r))return!0;r++}return!1};var Gr={};Gr.lastAsync=void 0,Gr.lastAsync=async function(e){var t;const r=e[Symbol.asyncIterator]();let n;try{let e,o;for(;({value:e,done:n}=await r.next()),!n;)o=e;return o}finally{n||await(null===(t=r.return)||void 0===t?void 0:t.call(r))}};var Qr={};Qr.last=void 0,Qr.last=function(e){var t;const r=e[Symbol.iterator]();let n;try{let e,o;for(;({value:e,done:n}=r.next()),!n;)o=e;return o}finally{n||null===(t=r.return)||void 0===t||t.call(r)}};var Xr={toArrayAsync:void 0};const Zr=Pr;Xr.toArrayAsync=function(e){return(0,Zr.consume)(e,(async e=>{const t=[];for await(const r of e)t.push(r);return t}))};var en={toArray:void 0};const tn=Pr;en.toArray=function(e){return(0,tn.consume)(e,(e=>Array.from(e)))};var rn={toSetAsync:void 0};const nn=Pr;rn.toSetAsync=function(e){return(0,nn.consume)(e,(async e=>{const t=new Set;for await(const r of e)t.add(r);return t}))};var on={toSet:void 0};const an=Pr;on.toSet=function(e){return(0,an.consume)(e,(e=>new Set(e)))};var un={};un.count=void 0,un.count=function(e){let t=0;for(const r of e)t++;return t};var cn,sn={};function ln(){return cn||(cn=1,function(e){var t=o&&o.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=o&&o.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(jr(),e),r(Er,e)}(De)),De}sn.countAsync=void 0,sn.countAsync=async function(e){let t=0;for await(const r of e)t++;return t},function(e){var t=o&&o.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=o&&o.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Pr,e),r(Ar,e),r(Ir,e),r(kr,e),r(Fr,e),r(Mr,e),r(Nr,e),r(Br,e),r(Lr,e),r(zr,e),r(Ur,e),r(Wr,e),r(qr,e),r(Dr,e),r(Vr,e),r(Hr,e),r(Kr,e),r(Gr,e),r(Qr,e),r(Xr,e),r(en,e),r(rn,e),r(on,e),r(un,e),r(sn,e)}(Er);var fn={},pn={};pn.traverseErrorPrototypeChain=void 0,pn.traverseErrorPrototypeChain=function*(e){let t=e;for(;(t=Object.getPrototypeOf(t))&&(yield t,t!==Error.prototype););},fn.getErrorNames=void 0;const dn=d,vn=pn;fn.getErrorNames=function*(e){var t;if((0,dn.isError)(e))for(const r of(0,vn.traverseErrorPrototypeChain)(e))(null===(t=r.constructor)||void 0===t?void 0:t.name)&&(yield r.constructor.name);else yield e.name,yield*e.ancestors};var bn={isSerializableError:void 0};const yn=d;var hn;function mn(){if(hn)return qe;hn=1,qe.CustomError=void 0;const e=ln(),t=fn,r=d,n=bn;class o extends Error{get name(){var r,n;return null!==(n=null!==(r=(0,e.first)((0,t.getErrorNames)(this)))&&void 0!==r?r:o.name)&&void 0!==n?n:"CustomError"}static[Symbol.hasInstance](o){var i;if((0,r.isError)(o)||(0,n.isSerializableError)(o)){const r=[null!==(i=this.prototype.constructor.name)&&void 0!==i?i:this.name,...(0,t.getErrorNames)(this.prototype)].reverse(),n=(0,e.toArray)((0,t.getErrorNames)(o)).reverse();return r.every(((e,t)=>e===n[t]))}return!1}}return qe.CustomError=o,qe}bn.isSerializableError=function(e){return(0,yn.isObject)(e)&&(0,yn.isString)(e.name)&&(0,yn.isString)(e.message)&&((0,yn.isString)(e.stack)||(0,yn.isNull)(e.stack))&&(0,yn.isArray)(e.ancestors)&&e.ancestors.every(yn.isString)};var gn,wn={};function On(){if(gn)return wn;gn=1,wn.AssertionError=void 0;const e=mn();class t extends e.CustomError{}return wn.AssertionError=t,wn}var Sn,_n={};var xn={},jn={},En={};En.pass=void 0,En.pass=function(){},function(e){var t=o&&o.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]});(o&&o.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)})(En,e)}(jn),xn.hydrate=void 0;const Pn=jn;function An(e,t){const r=function(){(0,Pn.pass)()};return(r.prototype=Object.create(e.prototype)).constructor=r,Object.defineProperty(r,"name",{value:t}),r}xn.hydrate=function(e){var t;const r=[e.name,...e.ancestors].slice(0,-1).reverse();let n=Error;for(const e of r)n=An(n,e);const o=new n;return o.name=e.name,o.message=e.message,o.stack=null!==(t=e.stack)&&void 0!==t?t:void 0,o};var Tn,In,kn={};function Cn(){return In||(In=1,function(e){var t=o&&o.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=o&&o.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(mn(),e),r(On(),e),r(bn,e),r(function(){if(Sn)return _n;Sn=1,_n.normalize=void 0;const e=fn,t=ln();return _n.normalize=function(r){var n;const[o,...i]=(0,t.toArray)((0,e.getErrorNames)(r));return{name:o,ancestors:i,message:r.message,stack:null!==(n=r.stack)&&void 0!==n?n:null}},_n}(),e),r(xn,e),r(function(){if(Tn)return kn;Tn=1,kn.assert=void 0;const e=On();return kn.assert=function(t,r){if(!t)throw new e.AssertionError(r)},kn}(),e),r(fn,e),r(pn,e)}(We)),We}var Fn=Cn();function Mn(){const[,e]=i.exports.useState({});return()=>e({})}var Rn={},Nn={Box:void 0};Nn.Box=class{constructor(e){this.value=e}set(e){this.value=e}get(){return this.value}};var Bn={};Bn.convertArrayToCons=Bn.convertConsToArray=void 0,Bn.convertConsToArray=function e([t,r]){return null===r?[t]:[t,...e(r)]},Bn.convertArrayToCons=function e([t,...r]){return[t,r.length?e(r):null]};var Ln={Emitter:void 0};class zn{constructor(){this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}on(e,t){this.map.has(e)||this.map.set(e,new Set);return this.map.get(e).add(r),()=>{if(!this.map.has(e))return;const t=this.map.get(e);t.delete(r),0===t.size&&this.map.delete(e)};function r(...e){t(...e)}}once(e,t){const r=this.on(e,((...e)=>{t(...e),r()}));return r}emit(e,...t){this.map.has(e)&&this.map.get(e).forEach((e=>e(...t)))}}Ln.Emitter=zn;var Un={HashMap:void 0};class Wn{constructor(e){this.hash=e,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t){return this.map.set(this.hash(e),t),this}has(e){return this.map.has(this.hash(e))}get(e){return this.map.get(this.hash(e))}delete(e){return this.map.delete(this.hash(e))}clear(){this.map.clear()}}Un.HashMap=Wn;var qn={HashSet:void 0};class Dn{constructor(e){this.hash=e,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}[Symbol.iterator](){return this.map.values()}add(e){return this.map.set(this.hash(e),e),this}delete(e){return this.map.delete(this.hash(e))}has(e){return this.map.has(this.hash(e))}clear(){this.map.clear()}values(){return this.map.values()}}qn.HashSet=Dn;var $n={Queue:void 0};class Vn{constructor(){this.items=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.items.length}empty(){this.items.length=0}enqueue(...e){this.items.push(...e)}dequeue(){return this.items.shift()}remove(e){let t;for(;(t=this.items.indexOf(e))>=0;)this.items.splice(t,1)}}$n.Queue=Vn;var Yn={LRUMap:void 0};const Hn=Cn(),Jn=ln();class Kn{constructor(e){this.map=new Map,(0,Hn.assert)(Number.isInteger(e),"The parameter limit must be an integer"),(0,Hn.assert)(e>0,"The parameter limit must be a positive value"),this.limit=e}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t){return this.map.has(e)?this.updateItem(e,t):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(e,t)),this}has(e){return this.map.has(e)}get(e){if(!this.has(e))return;const t=this.map.get(e);return this.updateItem(e,t),t}delete(e){return this.map.delete(e)}clear(){this.map.clear()}updateItem(e,t){this.map.delete(e),this.map.set(e,t)}getColdestKey(){return(0,Jn.first)(this.map.keys())}}Yn.LRUMap=Kn;var Gn={},Qn={},Xn={},Zn={},eo={};eo.random=void 0,eo.random=function(e,t){return Math.random()*(t-e)+e};var to={};to.randomInt=void 0,to.randomInt=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e))+e};var ro={};ro.randomIntInclusive=void 0,ro.randomIntInclusive=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e},function(e){var t=o&&o.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=o&&o.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(eo,e),r(to,e),r(ro,e)}(Zn),Xn.calculateExponentialBackoffTimeout=void 0;const no=Zn;Xn.calculateExponentialBackoffTimeout=function({baseTimeout:e,retries:t,maxTimeout:r=1/0,factor:n=2,jitter:o=!0}){const i=Math.min(n**t*e,r);return o?(0,no.randomIntInclusive)(0,i):i};var oo={};oo.setTimeout=void 0,oo.setTimeout=function(e,t){const r=globalThis.setTimeout(t,e);return()=>clearTimeout(r)};var io={setSchedule:void 0};const ao=oo;io.setSchedule=function(e,t){const r=e-Date.now();return(0,ao.setTimeout)(r,t)};var uo={};uo.setInterval=void 0,uo.setInterval=function(e,t){const r=globalThis.setInterval(t,e);return()=>clearInterval(r)};var co={setImmediate:void 0};const so=oo;co.setImmediate=function(e){if(globalThis.setImmediate){const t=globalThis.setImmediate(e);return()=>clearImmediate(t)}return(0,so.setTimeout)(0,e)};var lo={setTimeoutLoop:void 0};const fo=oo;lo.setTimeoutLoop=function(e,t){let r=!1,n=(0,fo.setTimeout)(e,(async function o(){await t(),r||(n=(0,fo.setTimeout)(e,o))}));return()=>{r=!0,n()}};var po={setDynamicTimeoutLoop:void 0};const vo=oo;po.setDynamicTimeoutLoop=function(e,t){let r=!1,n=(0,vo.setTimeout)(e,(async function o(){const i=Date.now();await t();const a=Date.now()-i;r||(n=(0,vo.setTimeout)(Math.max(e-a,0),o))}));return()=>{r=!0,n()}},function(e){var t=o&&o.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=o&&o.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Xn,e),r(oo,e),r(io,e),r(uo,e),r(co,e),r(lo,e),r(po,e)}(Qn),Gn.ExpirableMap=void 0;const bo=Qn;class yo{constructor(){this.map=new Map,this.itemMetadataSortedByExpirationTime=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t,r){return this.map.set(e,t),this.removeItemMetadata(e),this.addItemMetadata(e,Date.now()+r),this}has(e){return this.map.has(e)}get(e){return this.map.get(e)}delete(e){const t=this.map.delete(e);if(t){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout()}return t}clear(){var e;this.map.clear(),null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime=[]}addItemMetadata(e,t){for(let r=0;r<this.itemMetadataSortedByExpirationTime.length;r++){if(t<this.itemMetadataSortedByExpirationTime[r].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(r,0,{key:e,expirationTime:t}),void(0===r&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:e,expirationTime:t}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));t>=0&&(this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout())}clearExpiredItems(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.expirationTime>e));(t>=0?this.itemMetadataSortedByExpirationTime.splice(0,t):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((e=>this.map.delete(e.key)))}rescheduleClearTimeout(){var e;if(null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime.length>0){const e=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(e.expirationTime)){const t=(0,bo.setSchedule)(e.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{t(),this.cancelClearTimeout=void 0}}}}}Gn.ExpirableMap=yo;var ho={TLRUMap:void 0};const mo=Cn(),go=ln(),wo=Qn;class Oo{constructor(e){this.map=new Map,this.itemMetadataSortedByExpirationTime=[],(0,mo.assert)(Number.isInteger(e),"The parameter limit must be an integer"),(0,mo.assert)(e>0,"The parameter limit must be a positive value"),this.limit=e}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t,r){return this.map.has(e)?(this.updateItem(e,t),this.removeItemMetadata(e),this.addItemMetadata(e,Date.now()+r)):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(e,t),this.addItemMetadata(e,Date.now()+r)),this}has(e){return this.map.has(e)}get(e){if(this.has(e)){const t=this.map.get(e);return this.updateItem(e,t),t}}delete(e){const t=this.map.delete(e);if(t){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout()}return t}clear(){var e;this.map.clear(),null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime=[]}updateItem(e,t){this.map.delete(e),this.map.set(e,t)}addItemMetadata(e,t){for(let r=0;r<this.itemMetadataSortedByExpirationTime.length;r++){if(t<this.itemMetadataSortedByExpirationTime[r].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(r,0,{key:e,expirationTime:t}),void(0===r&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:e,expirationTime:t}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));t>=0&&(this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout())}clearExpiredItems(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.expirationTime>e));(t>=0?this.itemMetadataSortedByExpirationTime.splice(0,t):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((e=>this.map.delete(e.key)))}rescheduleClearTimeout(){var e;if(null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime.length>0){const e=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(e.expirationTime)){const t=(0,wo.setSchedule)(e.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{t(),this.cancelClearTimeout=void 0}}}}getColdestKey(){return(0,go.first)(this.map.keys())}}ho.TLRUMap=Oo;var So={TrieMap:void 0};const _o=ln();class xo{constructor(e){this.value=e,this.children=new Map}}class jo{constructor(){this.root=new xo}get[Symbol.toStringTag](){return this.constructor.name}set(e,t){let r=this.root;for(const t of e)r.children.has(t)||r.children.set(t,new xo),r=r.children.get(t);return r.value=t,this}has(e){let t=this.root;for(const r of e){if(!t.children.has(r))return!1;t=t.children.get(r)}return void 0!==t.value}get(e){let t=this.root;for(const r of e){if(!t.children.has(r))return;t=t.children.get(r)}return t.value}delete(e){const t=[];let r=this.root;for(const n of e){if(!r.children.has(n))return!1;t.push(r),r=r.children.get(n)}if(delete r.value,0===r.children.size)for(const[r,n]of(0,_o.toArray)((0,_o.zip)(e,t)).reverse())if(n.children.delete(r),0!==n.children.size)break;return!0}}So.TrieMap=jo;var Eo={};Eo.BadEventError=Eo.FiniteStateMachine=void 0;const Po=Cn();Eo.FiniteStateMachine=class{constructor(e,t){this.schema=e,this._state=t}get state(){return this._state}matches(e){return this._state===e}can(e){return e in this.schema[this.state]}send(e){if(!this.can(e))throw new Ao(this.state,e);this._state=this.schema[this.state][e]}};class Ao extends Po.CustomError{constructor(e,t){super(`State ${e} cannot react to event ${t}`)}}Eo.BadEventError=Ao;var To={},Io={},ko={},Co={},Fo={};Fo.isFunction=void 0,Fo.isFunction=function(e){return"function"==typeof e};var Mo={},Ro={},No={};No.createErrorClass=void 0,No.createErrorClass=function(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t},Ro.UnsubscriptionError=void 0;var Bo=No;Ro.UnsubscriptionError=Bo.createErrorClass((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));var Lo={};Lo.arrRemove=void 0,Lo.arrRemove=function(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}};var zo=o&&o.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Uo=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Wo=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Mo.isSubscription=Mo.EMPTY_SUBSCRIPTION=Mo.Subscription=void 0;var qo=Fo,Do=Ro,$o=Lo,Vo=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=zo(i),u=a.next();!u.done;u=a.next()){u.value.remove(this)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);var c=this.initialTeardown;if(qo.isFunction(c))try{c()}catch(e){o=e instanceof Do.UnsubscriptionError?e.errors:[e]}var s=this._finalizers;if(s){this._finalizers=null;try{for(var l=zo(s),f=l.next();!f.done;f=l.next()){var p=f.value;try{Yo(p)}catch(e){o=null!=o?o:[],e instanceof Do.UnsubscriptionError?o=Wo(Wo([],Uo(o)),Uo(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(o)throw new Do.UnsubscriptionError(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Yo(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&$o.arrRemove(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&$o.arrRemove(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();function Yo(e){qo.isFunction(e)?e():e.unsubscribe()}Mo.Subscription=Vo,Mo.EMPTY_SUBSCRIPTION=Vo.EMPTY,Mo.isSubscription=function(e){return e instanceof Vo||e&&"closed"in e&&qo.isFunction(e.remove)&&qo.isFunction(e.add)&&qo.isFunction(e.unsubscribe)};var Ho={config:void 0};Ho.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Jo={},Ko={};!function(e){var t=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.timeoutProvider=void 0,e.timeoutProvider={setTimeout:function(n,o){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u=e.timeoutProvider.delegate;return(null==u?void 0:u.setTimeout)?u.setTimeout.apply(u,r([n,o],t(i))):setTimeout.apply(void 0,r([n,o],t(i)))},clearTimeout:function(t){var r=e.timeoutProvider.delegate;return((null==r?void 0:r.clearTimeout)||clearTimeout)(t)},delegate:void 0}}(Ko),Jo.reportUnhandledError=void 0;var Go=Ho,Qo=Ko;Jo.reportUnhandledError=function(e){Qo.timeoutProvider.setTimeout((function(){var t=Go.config.onUnhandledError;if(!t)throw e;t(e)}))};var Xo={};Xo.noop=void 0,Xo.noop=function(){};var Zo={};function ei(e,t,r){return{kind:e,value:t,error:r}}Zo.createNotification=Zo.nextNotification=Zo.errorNotification=Zo.COMPLETE_NOTIFICATION=void 0,Zo.COMPLETE_NOTIFICATION=ei("C",void 0,void 0),Zo.errorNotification=function(e){return ei("E",void 0,e)},Zo.nextNotification=function(e){return ei("N",e,void 0)},Zo.createNotification=ei;var ti={};ti.captureError=ti.errorContext=void 0;var ri=Ho,ni=null;ti.errorContext=function(e){if(ri.config.useDeprecatedSynchronousErrorHandling){var t=!ni;if(t&&(ni={errorThrown:!1,error:null}),e(),t){var r=ni,n=r.errorThrown,o=r.error;if(ni=null,n)throw o}}else e()},ti.captureError=function(e){ri.config.useDeprecatedSynchronousErrorHandling&&ni&&(ni.errorThrown=!0,ni.error=e)},function(e){var t,r=o&&o.__extends||(t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});e.EMPTY_OBSERVER=e.SafeSubscriber=e.Subscriber=void 0;var n=Fo,i=Mo,a=Ho,u=Jo,c=Xo,s=Zo,l=Ko,f=ti,p=function(t){function n(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,i.isSubscription(r)&&r.add(n)):n.destination=e.EMPTY_OBSERVER,n}return r(n,t),n.create=function(e,t,r){return new y(e,t,r)},n.prototype.next=function(e){this.isStopped?m(s.nextNotification(e),this):this._next(e)},n.prototype.error=function(e){this.isStopped?m(s.errorNotification(e),this):(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped?m(s.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(i.Subscription);e.Subscriber=p;var d=Function.prototype.bind;function v(e,t){return d.call(e,t)}var b=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){h(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){h(e)}else h(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){h(e)}},e}(),y=function(e){function t(t,r,o){var i,u,c=e.call(this)||this;n.isFunction(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=o?o:void 0}:c&&a.config.useDeprecatedNextContext?((u=Object.create(t)).unsubscribe=function(){return c.unsubscribe()},i={next:t.next&&v(t.next,u),error:t.error&&v(t.error,u),complete:t.complete&&v(t.complete,u)}):i=t;return c.destination=new b(i),c}return r(t,e),t}(p);function h(e){a.config.useDeprecatedSynchronousErrorHandling?f.captureError(e):u.reportUnhandledError(e)}function m(e,t){var r=a.config.onStoppedNotification;r&&l.timeoutProvider.setTimeout((function(){return r(e,t)}))}e.SafeSubscriber=y,e.EMPTY_OBSERVER={closed:!0,next:c.noop,error:function(e){throw e},complete:c.noop}}(Co);var oi={observable:void 0};oi.observable="function"==typeof Symbol&&Symbol.observable||"@@observable";var ii={},ai={};ai.identity=void 0,ai.identity=function(e){return e},ii.pipeFromArray=ii.pipe=void 0;var ui=ai;function ci(e){return 0===e.length?ui.identity:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}ii.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ci(e)},ii.pipeFromArray=ci,ko.Observable=void 0;var si=Co,li=Mo,fi=oi,pi=ii,di=Ho,vi=Fo,bi=ti,yi=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof si.Subscriber||function(e){return e&&vi.isFunction(e.next)&&vi.isFunction(e.error)&&vi.isFunction(e.complete)}(n)&&li.isSubscription(n)?e:new si.SafeSubscriber(e,t,r);return bi.errorContext((function(){var e=o,t=e.operator,r=e.source;i.add(t?t.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=hi(t))((function(t,n){var o=new si.SafeSubscriber({next:function(t){try{e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[fi.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return pi.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=hi(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function hi(e){var t;return null!==(t=null!=e?e:di.config.Promise)&&void 0!==t?t:Promise}ko.Observable=yi;var mi={},gi={},wi={};wi.operate=wi.hasLift=void 0;var Oi=Fo;function Si(e){return Oi.isFunction(null==e?void 0:e.lift)}wi.hasLift=Si,wi.operate=function(e){return function(t){if(Si(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}};var _i,xi={},ji=o&&o.__extends||(_i=function(e,t){return(_i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}_i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});xi.OperatorSubscriber=xi.createOperatorSubscriber=void 0;var Ei=Co;xi.createOperatorSubscriber=function(e,t,r,n,o){return new Pi(e,t,r,n,o)};var Pi=function(e){function t(t,r,n,o,i,a){var u=e.call(this,t)||this;return u.onFinalize=i,u.shouldUnsubscribe=a,u._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,u._error=o?function(e){try{o(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,u}return ji(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(Ei.Subscriber);xi.OperatorSubscriber=Pi,gi.refCount=void 0;var Ai=wi,Ti=xi;gi.refCount=function(){return Ai.operate((function(e,t){var r=null;e._refCount++;var n=Ti.createOperatorSubscriber(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)r=null;else{var n=e._connection,o=r;r=null,!n||o&&n!==o||n.unsubscribe(),t.unsubscribe()}}));e.subscribe(n),n.closed||(r=e.connect())}))};var Ii=o&&o.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();mi.ConnectableObservable=void 0;var ki=Mo,Ci=gi,Fi=xi,Mi=wi,Ri=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._subject=null,n._refCount=0,n._connection=null,Mi.hasLift(t)&&(n.lift=t.lift),n}return Ii(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new ki.Subscription;var r=this.getSubject();t.add(this.source.subscribe(Fi.createOperatorSubscriber(r,void 0,(function(){e._teardown(),r.complete()}),(function(t){e._teardown(),r.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=ki.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return Ci.refCount()(this)},t}(ko.Observable);mi.ConnectableObservable=Ri;var Ni={},Bi={};!function(e){e.performanceTimestampProvider=void 0,e.performanceTimestampProvider={now:function(){return(e.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}}(Bi);var Li={};!function(e){var t=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.animationFrameProvider=void 0;var n=Mo;e.animationFrameProvider={schedule:function(t){var r=requestAnimationFrame,o=cancelAnimationFrame,i=e.animationFrameProvider.delegate;i&&(r=i.requestAnimationFrame,o=i.cancelAnimationFrame);var a=r((function(e){o=void 0,t(e)}));return new n.Subscription((function(){return null==o?void 0:o(a)}))},requestAnimationFrame:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=e.animationFrameProvider.delegate;return((null==i?void 0:i.requestAnimationFrame)||requestAnimationFrame).apply(void 0,r([],t(n)))},cancelAnimationFrame:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=e.animationFrameProvider.delegate;return((null==i?void 0:i.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,r([],t(n)))},delegate:void 0}}(Li),Ni.animationFrames=void 0;var zi=ko,Ui=Mo,Wi=Bi,qi=Li;function Di(e){var t=qi.animationFrameProvider.schedule;return new zi.Observable((function(r){var n=new Ui.Subscription,o=e||Wi.performanceTimestampProvider,i=o.now(),a=function(u){var c=o.now();r.next({timestamp:e?c:u,elapsed:c-i}),r.closed||n.add(t(a))};return n.add(t(a)),n}))}Ni.animationFrames=function(e){return e?Di(e):$i};var $i=Di(),Vi={},Yi={ObjectUnsubscribedError:void 0},Hi=No;Yi.ObjectUnsubscribedError=Hi.createErrorClass((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}));var Ji=o&&o.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ki=o&&o.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Vi.AnonymousSubject=Vi.Subject=void 0;var Gi=ko,Qi=Mo,Xi=Yi,Zi=Lo,ea=ti,ta=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return Ji(t,e),t.prototype.lift=function(e){var t=new ra(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Xi.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;ea.errorContext((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=Ki(t.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(e)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;ea.errorContext((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;ea.errorContext((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?Qi.EMPTY_SUBSCRIPTION:(this.currentObservers=null,i.push(e),new Qi.Subscription((function(){t.currentObservers=null,Zi.arrRemove(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new Gi.Observable;return e.source=this,e},t.create=function(e,t){return new ra(e,t)},t}(Gi.Observable);Vi.Subject=ta;var ra=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return Ji(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:Qi.EMPTY_SUBSCRIPTION},t}(ta);Vi.AnonymousSubject=ra;var na={},oa=o&&o.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();na.BehaviorSubject=void 0;var ia=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return oa(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){var e=this,t=e.hasError,r=e.thrownError,n=e._value;if(t)throw r;return this._throwIfClosed(),n},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(Vi.Subject);na.BehaviorSubject=ia;var aa={},ua={};!function(e){e.dateTimestampProvider=void 0,e.dateTimestampProvider={now:function(){return(e.dateTimestampProvider.delegate||Date).now()},delegate:void 0}}(ua);var ca=o&&o.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();aa.ReplaySubject=void 0;var sa=ua,la=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=sa.dateTimestampProvider);var o=e.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return ca(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,a=r._timestampProvider,u=r._windowTime;n||(o.push(t),!i&&o.push(a.now()+u)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,o=e._infiniteTimeWindow,i=(o?1:2)*t;if(t<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var a=r.now(),u=0,c=1;c<n.length&&n[c]<=a;c+=2)u=c;u&&n.splice(0,u+1)}},t}(Vi.Subject);aa.ReplaySubject=la;var fa={},pa=o&&o.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();fa.AsyncSubject=void 0;var da=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return pa(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t._hasValue,o=t._value,i=t.thrownError,a=t.isStopped,u=t._isComplete;r?e.error(i):(a||u)&&(n&&e.next(o),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,r=t._hasValue,n=t._value;t._isComplete||(this._isComplete=!0,r&&e.prototype.next.call(this,n),e.prototype.complete.call(this))},t}(Vi.Subject);fa.AsyncSubject=da;var va={},ba={},ya={},ha={},ma=o&&o.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();ha.Action=void 0;var ga=function(e){function t(t,r){return e.call(this)||this}return ma(t,e),t.prototype.schedule=function(e,t){return this},t}(Mo.Subscription);ha.Action=ga;var wa={};!function(e){var t=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.intervalProvider=void 0,e.intervalProvider={setInterval:function(n,o){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u=e.intervalProvider.delegate;return(null==u?void 0:u.setInterval)?u.setInterval.apply(u,r([n,o],t(i))):setInterval.apply(void 0,r([n,o],t(i)))},clearInterval:function(t){var r=e.intervalProvider.delegate;return((null==r?void 0:r.clearInterval)||clearInterval)(t)},delegate:void 0}}(wa);var Oa=o&&o.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();ya.AsyncAction=void 0;var Sa=wa,_a=Lo,xa=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return Oa(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),Sa.intervalProvider.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;Sa.intervalProvider.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,_a.arrRemove(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(ha.Action);ya.AsyncAction=xa;var ja={},Ea={};Ea.TestTools=Ea.Immediate=void 0;var Pa,Aa=1,Ta={};function Ia(e){return e in Ta&&(delete Ta[e],!0)}Ea.Immediate={setImmediate:function(e){var t=Aa++;return Ta[t]=!0,Pa||(Pa=Promise.resolve()),Pa.then((function(){return Ia(t)&&e()})),t},clearImmediate:function(e){Ia(e)}},Ea.TestTools={pending:function(){return Object.keys(Ta).length}},function(e){var t=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.immediateProvider=void 0;var n=Ea,i=n.Immediate.setImmediate,a=n.Immediate.clearImmediate;e.immediateProvider={setImmediate:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var a=e.immediateProvider.delegate;return((null==a?void 0:a.setImmediate)||i).apply(void 0,r([],t(n)))},clearImmediate:function(t){var r=e.immediateProvider.delegate;return((null==r?void 0:r.clearImmediate)||a)(t)},delegate:void 0}}(ja);var ka=o&&o.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();ba.AsapAction=void 0;var Ca=ja,Fa=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return ka(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=Ca.immediateProvider.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);t.actions.some((function(e){return e.id===r}))||(Ca.immediateProvider.clearImmediate(r),t._scheduled=void 0)},t}(ya.AsyncAction);ba.AsapAction=Fa;var Ma={},Ra={},Na={Scheduler:void 0},Ba=ua,La=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=Ba.dateTimestampProvider.now,e}();Na.Scheduler=La;var za=o&&o.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Ra.AsyncScheduler=void 0;var Ua=Na,Wa=function(e){function t(t,r){void 0===r&&(r=Ua.Scheduler.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n._scheduled=void 0,n}return za(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},t}(Ua.Scheduler);Ra.AsyncScheduler=Wa;var qa=o&&o.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Ma.AsapScheduler=void 0;var Da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qa(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(Ra.AsyncScheduler);Ma.AsapScheduler=Da,function(e){e.asap=e.asapScheduler=void 0;var t=ba,r=Ma;e.asapScheduler=new r.AsapScheduler(t.AsapAction),e.asap=e.asapScheduler}(va);var $a={};!function(e){e.async=e.asyncScheduler=void 0;var t=ya,r=Ra;e.asyncScheduler=new r.AsyncScheduler(t.AsyncAction),e.async=e.asyncScheduler}($a);var Va={},Ya={},Ha=o&&o.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Ya.QueueAction=void 0;var Ja=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return Ha(t,e),t.prototype.schedule=function(t,r){return void 0===r&&(r=0),r>0?e.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)},t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0?e.prototype.requestAsyncId.call(this,t,r,n):t.flush(this)},t}(ya.AsyncAction);Ya.QueueAction=Ja;var Ka={},Ga=o&&o.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Ka.QueueScheduler=void 0;var Qa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ga(t,e),t}(Ra.AsyncScheduler);Ka.QueueScheduler=Qa,function(e){e.queue=e.queueScheduler=void 0;var t=Ya,r=Ka;e.queueScheduler=new r.QueueScheduler(t.QueueAction),e.queue=e.queueScheduler}(Va);var Xa={},Za={},eu=o&&o.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Za.AnimationFrameAction=void 0;var tu=Li,ru=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return eu(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=tu.animationFrameProvider.requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);t.actions.some((function(e){return e.id===r}))||(tu.animationFrameProvider.cancelAnimationFrame(r),t._scheduled=void 0)},t}(ya.AsyncAction);Za.AnimationFrameAction=ru;var nu={},ou=o&&o.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();nu.AnimationFrameScheduler=void 0;var iu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ou(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(Ra.AsyncScheduler);nu.AnimationFrameScheduler=iu,function(e){e.animationFrame=e.animationFrameScheduler=void 0;var t=Za,r=nu;e.animationFrameScheduler=new r.AnimationFrameScheduler(t.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler}(Xa);var au={},uu=o&&o.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();au.VirtualAction=au.VirtualTimeScheduler=void 0;var cu=ya,su=Mo,lu=function(e){function t(t,r){void 0===t&&(t=fu),void 0===r&&(r=1/0);var n=e.call(this,t,(function(){return n.frame}))||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return uu(t,e),t.prototype.flush=function(){for(var e,t,r=this.actions,n=this.maxFrames;(t=r[0])&&t.delay<=n&&(r.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=r.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(Ra.AsyncScheduler);au.VirtualTimeScheduler=lu;var fu=function(e){function t(t,r,n){void 0===n&&(n=t.index+=1);var o=e.call(this,t,r)||this;return o.scheduler=t,o.work=r,o.index=n,o.active=!0,o.index=t.index=n,o}return uu(t,e),t.prototype.schedule=function(r,n){if(void 0===n&&(n=0),Number.isFinite(n)){if(!this.id)return e.prototype.schedule.call(this,r,n);this.active=!1;var o=new t(this.scheduler,this.work);return this.add(o),o.schedule(r,n)}return su.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,r,n){void 0===n&&(n=0),this.delay=e.frame+n;var o=e.actions;return o.push(this),o.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,r){},t.prototype._execute=function(t,r){if(!0===this.active)return e.prototype._execute.call(this,t,r)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(cu.AsyncAction);au.VirtualAction=fu;var pu={},du={};!function(e){e.empty=e.EMPTY=void 0;var t=ko;e.EMPTY=new t.Observable((function(e){return e.complete()})),e.empty=function(r){return r?function(e){return new t.Observable((function(t){return e.schedule((function(){return t.complete()}))}))}(r):e.EMPTY}}(du);var vu={},bu={},yu={isScheduler:void 0},hu=Fo;yu.isScheduler=function(e){return e&&hu.isFunction(e.schedule)},bu.popNumber=bu.popScheduler=bu.popResultSelector=void 0;var mu=Fo,gu=yu;function wu(e){return e[e.length-1]}bu.popResultSelector=function(e){return mu.isFunction(wu(e))?e.pop():void 0},bu.popScheduler=function(e){return gu.isScheduler(wu(e))?e.pop():void 0},bu.popNumber=function(e,t){return"number"==typeof wu(e)?e.pop():t};var Ou={},Su={},_u={},xu={},ju={isArrayLike:void 0};ju.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};var Eu={isPromise:void 0},Pu=Fo;Eu.isPromise=function(e){return Pu.isFunction(null==e?void 0:e.then)};var Au={isInteropObservable:void 0},Tu=oi,Iu=Fo;Au.isInteropObservable=function(e){return Iu.isFunction(e[Tu.observable])};var ku={isAsyncIterable:void 0},Cu=Fo;ku.isAsyncIterable=function(e){return Symbol.asyncIterator&&Cu.isFunction(null==e?void 0:e[Symbol.asyncIterator])};var Fu={};Fu.createInvalidObservableTypeError=void 0,Fu.createInvalidObservableTypeError=function(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")};var Mu={},Ru={};function Nu(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Ru.iterator=Ru.getSymbolIterator=void 0,Ru.getSymbolIterator=Nu,Ru.iterator=Nu(),Mu.isIterable=void 0;var Bu=Ru,Lu=Fo;Mu.isIterable=function(e){return Lu.isFunction(null==e?void 0:e[Bu.iterator])};var zu={},Uu=o&&o.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=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=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},Wu=o&&o.__await||function(e){return this instanceof Wu?(this.v=e,this):new Wu(e)},qu=o&&o.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||u(e,t)}))})}function u(e,t){try{(r=o[e](t)).value instanceof Wu?Promise.resolve(r.value.v).then(c,s):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){u("next",e)}function s(e){u("throw",e)}function l(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}};zu.isReadableStreamLike=zu.readableStreamLikeToAsyncGenerator=void 0;var Du=Fo;zu.readableStreamLikeToAsyncGenerator=function(e){return qu(this,arguments,(function(){var t,r,n;return Uu(this,(function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,Wu(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,Wu(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,Wu(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))},zu.isReadableStreamLike=function(e){return Du.isFunction(null==e?void 0:e.getReader)};var $u=o&&o.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}c((n=n.apply(e,t||[])).next())}))},Vu=o&&o.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=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=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},Yu=o&&o.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof Hu?Hu(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},Hu=o&&o.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};xu.fromReadableStreamLike=xu.fromAsyncIterable=xu.fromIterable=xu.fromPromise=xu.fromArrayLike=xu.fromInteropObservable=xu.innerFrom=void 0;var Ju=ju,Ku=Eu,Gu=ko,Qu=Au,Xu=ku,Zu=Fu,ec=Mu,tc=zu,rc=Fo,nc=Jo,oc=oi;function ic(e){return new Gu.Observable((function(t){var r=e[oc.observable]();if(rc.isFunction(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function ac(e){return new Gu.Observable((function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()}))}function uc(e){return new Gu.Observable((function(t){e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,nc.reportUnhandledError)}))}function cc(e){return new Gu.Observable((function(t){var r,n;try{for(var o=Hu(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(t.next(a),t.closed)return}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.complete()}))}function sc(e){return new Gu.Observable((function(t){(function(e,t){var r,n,o,i;return $u(this,void 0,void 0,(function(){var a,u;return Vu(this,(function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=Yu(e),c.label=1;case 1:return[4,r.next()];case 2:if((n=c.sent()).done)return[3,4];if(a=n.value,t.next(a),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=c.sent(),o={error:u},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function lc(e){return sc(tc.readableStreamLikeToAsyncGenerator(e))}xu.innerFrom=function(e){if(e instanceof Gu.Observable)return e;if(null!=e){if(Qu.isInteropObservable(e))return ic(e);if(Ju.isArrayLike(e))return ac(e);if(Ku.isPromise(e))return uc(e);if(Xu.isAsyncIterable(e))return sc(e);if(ec.isIterable(e))return cc(e);if(tc.isReadableStreamLike(e))return lc(e)}throw Zu.createInvalidObservableTypeError(e)},xu.fromInteropObservable=ic,xu.fromArrayLike=ac,xu.fromPromise=uc,xu.fromIterable=cc,xu.fromAsyncIterable=sc,xu.fromReadableStreamLike=lc;var fc={},pc={};pc.executeSchedule=void 0,pc.executeSchedule=function(e,t,r,n,o){void 0===n&&(n=0),void 0===o&&(o=!1);var i=t.schedule((function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()}),n);if(e.add(i),!o)return i},fc.observeOn=void 0;var dc=pc,vc=wi,bc=xi;fc.observeOn=function(e,t){return void 0===t&&(t=0),vc.operate((function(r,n){r.subscribe(bc.createOperatorSubscriber(n,(function(r){return dc.executeSchedule(n,e,(function(){return n.next(r)}),t)}),(function(){return dc.executeSchedule(n,e,(function(){return n.complete()}),t)}),(function(r){return dc.executeSchedule(n,e,(function(){return n.error(r)}),t)})))}))};var yc={subscribeOn:void 0},hc=wi;yc.subscribeOn=function(e,t){return void 0===t&&(t=0),hc.operate((function(r,n){n.add(e.schedule((function(){return r.subscribe(n)}),t))}))},_u.scheduleObservable=void 0;var mc=xu,gc=fc,wc=yc;_u.scheduleObservable=function(e,t){return mc.innerFrom(e).pipe(wc.subscribeOn(t),gc.observeOn(t))};var Oc={schedulePromise:void 0},Sc=xu,_c=fc,xc=yc;Oc.schedulePromise=function(e,t){return Sc.innerFrom(e).pipe(xc.subscribeOn(t),_c.observeOn(t))};var jc={scheduleArray:void 0},Ec=ko;jc.scheduleArray=function(e,t){return new Ec.Observable((function(r){var n=0;return t.schedule((function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())}))}))};var Pc={scheduleIterable:void 0},Ac=ko,Tc=Ru,Ic=Fo,kc=pc;Pc.scheduleIterable=function(e,t){return new Ac.Observable((function(r){var n;return kc.executeSchedule(r,t,(function(){n=e[Tc.iterator](),kc.executeSchedule(r,t,(function(){var e,t,o;try{t=(e=n.next()).value,o=e.done}catch(e){return void r.error(e)}o?r.complete():r.next(t)}),0,!0)})),function(){return Ic.isFunction(null==n?void 0:n.return)&&n.return()}}))};var Cc={scheduleAsyncIterable:void 0},Fc=ko,Mc=pc;Cc.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new Fc.Observable((function(r){Mc.executeSchedule(r,t,(function(){var n=e[Symbol.asyncIterator]();Mc.executeSchedule(r,t,(function(){n.next().then((function(e){e.done?r.complete():r.next(e.value)}))}),0,!0)}))}))};var Rc={scheduleReadableStreamLike:void 0},Nc=Cc,Bc=zu;Rc.scheduleReadableStreamLike=function(e,t){return Nc.scheduleAsyncIterable(Bc.readableStreamLikeToAsyncGenerator(e),t)},Su.scheduled=void 0;var Lc=_u,zc=Oc,Uc=jc,Wc=Pc,qc=Cc,Dc=Au,$c=Eu,Vc=ju,Yc=Mu,Hc=ku,Jc=Fu,Kc=zu,Gc=Rc;Su.scheduled=function(e,t){if(null!=e){if(Dc.isInteropObservable(e))return Lc.scheduleObservable(e,t);if(Vc.isArrayLike(e))return Uc.scheduleArray(e,t);if($c.isPromise(e))return zc.schedulePromise(e,t);if(Hc.isAsyncIterable(e))return qc.scheduleAsyncIterable(e,t);if(Yc.isIterable(e))return Wc.scheduleIterable(e,t);if(Kc.isReadableStreamLike(e))return Gc.scheduleReadableStreamLike(e,t)}throw Jc.createInvalidObservableTypeError(e)},Ou.from=void 0;var Qc=Su,Xc=xu;Ou.from=function(e,t){return t?Qc.scheduled(e,t):Xc.innerFrom(e)},vu.of=void 0;var Zc=bu,es=Ou;vu.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Zc.popScheduler(e);return es.from(e,r)};var ts={throwError:void 0},rs=ko,ns=Fo;ts.throwError=function(e,t){var r=ns.isFunction(e)?e:function(){return e},n=function(e){return e.error(r())};return new rs.Observable(t?function(e){return t.schedule(n,0,e)}:n)},function(e){e.observeNotification=e.Notification=e.NotificationKind=void 0;var t,r=du,n=vu,o=ts,i=Fo;(t=e.NotificationKind||(e.NotificationKind={})).NEXT="N",t.ERROR="E",t.COMPLETE="C";var a=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return u(this,e)},e.prototype.do=function(e,t,r){var n=this,o=n.kind,i=n.value,a=n.error;return"N"===o?null==e?void 0:e(i):"E"===o?null==t?void 0:t(a):null==r?void 0:r()},e.prototype.accept=function(e,t,r){var n;return i.isFunction(null===(n=e)||void 0===n?void 0:n.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this,t=e.kind,i=e.value,a=e.error,u="N"===t?n.of(i):"E"===t?o.throwError((function(){return a})):"C"===t?r.EMPTY:0;if(!u)throw new TypeError("Unexpected notification kind "+t);return u},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function u(e,t){var r,n,o,i=e,a=i.kind,u=i.value,c=i.error;if("string"!=typeof a)throw new TypeError('Invalid notification, missing "kind"');"N"===a?null===(r=t.next)||void 0===r||r.call(t,u):"E"===a?null===(n=t.error)||void 0===n||n.call(t,c):null===(o=t.complete)||void 0===o||o.call(t)}e.Notification=a,e.observeNotification=u}(pu);var os={isObservable:void 0},is=ko,as=Fo;os.isObservable=function(e){return!!e&&(e instanceof is.Observable||as.isFunction(e.lift)&&as.isFunction(e.subscribe))};var us={},cs={EmptyError:void 0},ss=No;cs.EmptyError=ss.createErrorClass((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})),us.lastValueFrom=void 0;var ls=cs;us.lastValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(n,o){var i,a=!1;e.subscribe({next:function(e){i=e,a=!0},error:o,complete:function(){a?n(i):r?n(t.defaultValue):o(new ls.EmptyError)}})}))};var fs={firstValueFrom:void 0},ps=cs,ds=Co;fs.firstValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(n,o){var i=new ds.SafeSubscriber({next:function(e){n(e),i.unsubscribe()},error:o,complete:function(){r?n(t.defaultValue):o(new ps.EmptyError)}});e.subscribe(i)}))};var vs={ArgumentOutOfRangeError:void 0},bs=No;vs.ArgumentOutOfRangeError=bs.createErrorClass((function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}));var ys={NotFoundError:void 0},hs=No;ys.NotFoundError=hs.createErrorClass((function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}}));var ms={SequenceError:void 0},gs=No;ms.SequenceError=gs.createErrorClass((function(e){return function(t){e(this),this.name="SequenceError",this.message=t}}));var ws={},Os={};Os.isValidDate=void 0,Os.isValidDate=function(e){return e instanceof Date&&!isNaN(e)},function(e){e.timeout=e.TimeoutError=void 0;var t=$a,r=Os,n=wi,o=xu,i=No,a=xi,u=pc;function c(t){throw new e.TimeoutError(t)}e.TimeoutError=i.createErrorClass((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}})),e.timeout=function(e,i){var s=r.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,l=s.first,f=s.each,p=s.with,d=void 0===p?c:p,v=s.scheduler,b=void 0===v?null!=i?i:t.asyncScheduler:v,y=s.meta,h=void 0===y?null:y;if(null==l&&null==f)throw new TypeError("No timeout provided.");return n.operate((function(e,t){var r,n,i=null,c=0,s=function(e){n=u.executeSchedule(t,b,(function(){try{r.unsubscribe(),o.innerFrom(d({meta:h,lastValue:i,seen:c})).subscribe(t)}catch(e){t.error(e)}}),e)};r=e.subscribe(a.createOperatorSubscriber(t,(function(e){null==n||n.unsubscribe(),c++,t.next(i=e),f>0&&s(f)}),void 0,void 0,(function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),i=null}))),!c&&s(null!=l?"number"==typeof l?l:+l-b.now():f)}))}}(ws);var Ss={},_s={},xs={},js={map:void 0},Es=wi,Ps=xi;js.map=function(e,t){return Es.operate((function(r,n){var o=0;r.subscribe(Ps.createOperatorSubscriber(n,(function(r){n.next(e.call(t,r,o++))})))}))};var As=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Ts=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};xs.mapOneOrManyArgs=void 0;var Is=js,ks=Array.isArray;xs.mapOneOrManyArgs=function(e){return Is.map((function(t){return function(e,t){return ks(t)?e.apply(void 0,Ts([],As(t))):e(t)}(e,t)}))};var Cs=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Fs=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};_s.bindCallbackInternals=void 0;var Ms=yu,Rs=ko,Ns=yc,Bs=xs,Ls=fc,zs=fa;_s.bindCallbackInternals=function e(t,r,n,o){if(n){if(!Ms.isScheduler(n))return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return e(t,r,o).apply(this,i).pipe(Bs.mapOneOrManyArgs(n))};o=n}return o?function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e(t,r).apply(this,n).pipe(Ns.subscribeOn(o),Ls.observeOn(o))}:function(){for(var e=this,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=new zs.AsyncSubject,a=!0;return new Rs.Observable((function(o){var u=i.subscribe(o);if(a){a=!1;var c=!1,s=!1;r.apply(e,Fs(Fs([],Cs(n)),[function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(t){var n=e.shift();if(null!=n)return void i.error(n)}i.next(1<e.length?e:e[0]),s=!0,c&&i.complete()}])),s&&i.complete(),c=!0}return u}))}},Ss.bindCallback=void 0;var Us=_s;Ss.bindCallback=function(e,t,r){return Us.bindCallbackInternals(!1,e,t,r)};var Ws={bindNodeCallback:void 0},qs=_s;Ws.bindNodeCallback=function(e,t,r){return qs.bindCallbackInternals(!0,e,t,r)};var Ds={},$s={argsArgArrayOrObject:void 0},Vs=Array.isArray,Ys=Object.getPrototypeOf,Hs=Object.prototype,Js=Object.keys;$s.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(Vs(t))return{args:t,keys:null};if((n=t)&&"object"==typeof n&&Ys(n)===Hs){var r=Js(t);return{args:r.map((function(e){return t[e]})),keys:r}}}var n;return{args:e,keys:null}};var Ks={};Ks.createObject=void 0,Ks.createObject=function(e,t){return e.reduce((function(e,r,n){return e[r]=t[n],e}),{})},Ds.combineLatestInit=Ds.combineLatest=void 0;var Gs=ko,Qs=$s,Xs=Ou,Zs=ai,el=xs,tl=bu,rl=Ks,nl=xi,ol=pc;function il(e,t,r){return void 0===r&&(r=Zs.identity),function(n){al(t,(function(){for(var o=e.length,i=new Array(o),a=o,u=o,c=function(o){al(t,(function(){var c=Xs.from(e[o],t),s=!1;c.subscribe(nl.createOperatorSubscriber(n,(function(e){i[o]=e,s||(s=!0,u--),u||n.next(r(i.slice()))}),(function(){--a||n.complete()})))}),n)},s=0;s<o;s++)c(s)}),n)}}function al(e,t,r){e?ol.executeSchedule(r,e,t):t()}Ds.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=tl.popScheduler(e),n=tl.popResultSelector(e),o=Qs.argsArgArrayOrObject(e),i=o.args,a=o.keys;if(0===i.length)return Xs.from([],r);var u=new Gs.Observable(il(i,r,a?function(e){return rl.createObject(a,e)}:Zs.identity));return n?u.pipe(el.mapOneOrManyArgs(n)):u},Ds.combineLatestInit=il;var ul={},cl={},sl={},ll={},fl={mergeInternals:void 0},pl=xu,dl=pc,vl=xi;fl.mergeInternals=function(e,t,r,n,o,i,a,u){var c=[],s=0,l=0,f=!1,p=function(){!f||c.length||s||t.complete()},d=function(e){return s<n?v(e):c.push(e)},v=function(e){i&&t.next(e),s++;var u=!1;pl.innerFrom(r(e,l++)).subscribe(vl.createOperatorSubscriber(t,(function(e){null==o||o(e),i?d(e):t.next(e)}),(function(){u=!0}),void 0,(function(){if(u)try{s--;for(var e=function(){var e=c.shift();a?dl.executeSchedule(t,a,(function(){return v(e)})):v(e)};c.length&&s<n;)e();p()}catch(e){t.error(e)}})))};return e.subscribe(vl.createOperatorSubscriber(t,d,(function(){f=!0,p()}))),function(){null==u||u()}},ll.mergeMap=void 0;var bl=js,yl=xu,hl=wi,ml=fl,gl=Fo;ll.mergeMap=function e(t,r,n){return void 0===n&&(n=1/0),gl.isFunction(r)?e((function(e,n){return bl.map((function(t,o){return r(e,t,n,o)}))(yl.innerFrom(t(e,n)))}),n):("number"==typeof r&&(n=r),hl.operate((function(e,r){return ml.mergeInternals(e,r,t,n)})))},sl.mergeAll=void 0;var wl=ll,Ol=ai;sl.mergeAll=function(e){return void 0===e&&(e=1/0),wl.mergeMap(Ol.identity,e)},cl.concatAll=void 0;var Sl=sl;cl.concatAll=function(){return Sl.mergeAll(1)},ul.concat=void 0;var _l=cl,xl=bu,jl=Ou;ul.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _l.concatAll()(jl.from(e,xl.popScheduler(e)))};var El={},Pl={defer:void 0},Al=ko,Tl=xu;Pl.defer=function(e){return new Al.Observable((function(t){Tl.innerFrom(e()).subscribe(t)}))},El.connectable=void 0;var Il=Vi,kl=ko,Cl=Pl,Fl={connector:function(){return new Il.Subject},resetOnDisconnect:!0};El.connectable=function(e,t){void 0===t&&(t=Fl);var r=null,n=t.connector,o=t.resetOnDisconnect,i=void 0===o||o,a=n(),u=new kl.Observable((function(e){return a.subscribe(e)}));return u.connect=function(){return r&&!r.closed||(r=Cl.defer((function(){return e})).subscribe(a),i&&r.add((function(){return a=n()}))),r},u};var Ml={forkJoin:void 0},Rl=ko,Nl=$s,Bl=xu,Ll=bu,zl=xi,Ul=xs,Wl=Ks;Ml.forkJoin=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ll.popResultSelector(e),n=Nl.argsArgArrayOrObject(e),o=n.args,i=n.keys,a=new Rl.Observable((function(e){var t=o.length;if(t)for(var r=new Array(t),n=t,a=t,u=function(t){var u=!1;Bl.innerFrom(o[t]).subscribe(zl.createOperatorSubscriber(e,(function(e){u||(u=!0,a--),r[t]=e}),(function(){return n--}),void 0,(function(){n&&u||(a||e.next(i?Wl.createObject(i,r):r),e.complete())})))},c=0;c<t;c++)u(c);else e.complete()}));return r?a.pipe(Ul.mapOneOrManyArgs(r)):a};var ql={},Dl=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};ql.fromEvent=void 0;var $l=xu,Vl=ko,Yl=ll,Hl=ju,Jl=Fo,Kl=xs,Gl=["addListener","removeListener"],Ql=["addEventListener","removeEventListener"],Xl=["on","off"];function Zl(e,t){return function(r){return function(n){return e[r](t,n)}}}ql.fromEvent=function e(t,r,n,o){if(Jl.isFunction(n)&&(o=n,n=void 0),o)return e(t,r,n).pipe(Kl.mapOneOrManyArgs(o));var i=Dl(function(e){return Jl.isFunction(e.addEventListener)&&Jl.isFunction(e.removeEventListener)}(t)?Ql.map((function(e){return function(o){return t[e](r,o,n)}})):function(e){return Jl.isFunction(e.addListener)&&Jl.isFunction(e.removeListener)}(t)?Gl.map(Zl(t,r)):function(e){return Jl.isFunction(e.on)&&Jl.isFunction(e.off)}(t)?Xl.map(Zl(t,r)):[],2),a=i[0],u=i[1];if(!a&&Hl.isArrayLike(t))return Yl.mergeMap((function(t){return e(t,r,n)}))($l.innerFrom(t));if(!a)throw new TypeError("Invalid event target");return new Vl.Observable((function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1<t.length?t:t[0])};return a(t),function(){return u(t)}}))};var ef={fromEventPattern:void 0},tf=ko,rf=Fo,nf=xs;ef.fromEventPattern=function e(t,r,n){return n?e(t,r).pipe(nf.mapOneOrManyArgs(n)):new tf.Observable((function(e){var n=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1===t.length?t[0]:t)},o=t(n);return rf.isFunction(r)?function(){return r(n,o)}:void 0}))};var of={},af=o&&o.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=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=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};of.generate=void 0;var uf=ai,cf=yu,sf=Pl,lf=Pc;of.generate=function(e,t,r,n,o){var i,a,u,c;function s(){var e;return af(this,(function(n){switch(n.label){case 0:e=c,n.label=1;case 1:return t&&!t(e)?[3,4]:[4,u(e)];case 2:n.sent(),n.label=3;case 3:return e=r(e),[3,1];case 4:return[2]}}))}return 1===arguments.length?(c=(i=e).initialState,t=i.condition,r=i.iterate,a=i.resultSelector,u=void 0===a?uf.identity:a,o=i.scheduler):(c=e,!n||cf.isScheduler(n)?(u=uf.identity,o=n):u=n),sf.defer(o?function(){return lf.scheduleIterable(s(),o)}:s)};var ff={iif:void 0},pf=Pl;ff.iif=function(e,t,r){return pf.defer((function(){return e()?t:r}))};var df={},vf={timer:void 0},bf=ko,yf=$a,hf=yu,mf=Os;vf.timer=function(e,t,r){void 0===e&&(e=0),void 0===r&&(r=yf.async);var n=-1;return null!=t&&(hf.isScheduler(t)?r=t:n=t),new bf.Observable((function(t){var o=mf.isValidDate(e)?+e-r.now():e;o<0&&(o=0);var i=0;return r.schedule((function(){t.closed||(t.next(i++),0<=n?this.schedule(void 0,n):t.complete())}),o)}))},df.interval=void 0;var gf=$a,wf=vf;df.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=gf.asyncScheduler),e<0&&(e=0),wf.timer(e,e,t)};var Of={merge:void 0},Sf=sl,_f=xu,xf=du,jf=bu,Ef=Ou;Of.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=jf.popScheduler(e),n=jf.popNumber(e,1/0),o=e;return o.length?1===o.length?_f.innerFrom(o[0]):Sf.mergeAll(n)(Ef.from(o,r)):xf.EMPTY};var Pf={};!function(e){e.never=e.NEVER=void 0;var t=ko,r=Xo;e.NEVER=new t.Observable(r.noop),e.never=function(){return e.NEVER}}(Pf);var Af={},Tf={},If={argsOrArgArray:void 0},kf=Array.isArray;If.argsOrArgArray=function(e){return 1===e.length&&kf(e[0])?e[0]:e};var Cf=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Ff=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Tf.onErrorResumeNext=void 0;var Mf=wi,Rf=xu,Nf=If,Bf=xi,Lf=Xo;Tf.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Nf.argsOrArgArray(e);return Mf.operate((function(e,t){var n=Ff([e],Cf(r)),o=function(){if(!t.closed)if(n.length>0){var e=void 0;try{e=Rf.innerFrom(n.shift())}catch(e){return void o()}var r=Bf.createOperatorSubscriber(t,void 0,Lf.noop,Lf.noop);e.subscribe(r),r.add(o)}else t.complete()};o()}))},Af.onErrorResumeNext=void 0;var zf=du,Uf=Tf,Wf=If;Af.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Uf.onErrorResumeNext(Wf.argsOrArgArray(e))(zf.EMPTY)};var qf={pairs:void 0},Df=Ou;qf.pairs=function(e,t){return Df.from(Object.entries(e),t)};var $f={},Vf={};Vf.not=void 0,Vf.not=function(e,t){return function(r,n){return!e.call(t,r,n)}};var Yf={filter:void 0},Hf=wi,Jf=xi;Yf.filter=function(e,t){return Hf.operate((function(r,n){var o=0;r.subscribe(Jf.createOperatorSubscriber(n,(function(r){return e.call(t,r,o++)&&n.next(r)})))}))},$f.partition=void 0;var Kf=Vf,Gf=Yf,Qf=xu;$f.partition=function(e,t,r){return[Gf.filter(t,r)(Qf.innerFrom(e)),Gf.filter(Kf.not(t,r))(Qf.innerFrom(e))]};var Xf={};Xf.raceInit=Xf.race=void 0;var Zf=ko,ep=xu,tp=If,rp=xi;function np(e){return function(t){for(var r=[],n=function(n){r.push(ep.innerFrom(e[n]).subscribe(rp.createOperatorSubscriber(t,(function(e){if(r){for(var o=0;o<r.length;o++)o!==n&&r[o].unsubscribe();r=null}t.next(e)}))))},o=0;r&&!t.closed&&o<e.length;o++)n(o)}}Xf.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=tp.argsOrArgArray(e)).length?ep.innerFrom(e[0]):new Zf.Observable(np(e))},Xf.raceInit=np;var op={range:void 0},ip=ko,ap=du;op.range=function(e,t,r){if(null==t&&(t=e,e=0),t<=0)return ap.EMPTY;var n=t+e;return new ip.Observable(r?function(t){var o=e;return r.schedule((function(){o<n?(t.next(o++),this.schedule()):t.complete()}))}:function(t){for(var r=e;r<n&&!t.closed;)t.next(r++);t.complete()})};var up={using:void 0},cp=ko,sp=xu,lp=du;up.using=function(e,t){return new cp.Observable((function(r){var n=e(),o=t(n);return(o?sp.innerFrom(o):lp.EMPTY).subscribe(r),function(){n&&n.unsubscribe()}}))};var fp={},pp=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},dp=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};fp.zip=void 0;var vp=ko,bp=xu,yp=If,hp=du,mp=xi,gp=bu;fp.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=gp.popResultSelector(e),n=yp.argsOrArgArray(e);return n.length?new vp.Observable((function(e){var t=n.map((function(){return[]})),o=n.map((function(){return!1}));e.add((function(){t=o=null}));for(var i=function(i){bp.innerFrom(n[i]).subscribe(mp.createOperatorSubscriber(e,(function(n){if(t[i].push(n),t.every((function(e){return e.length}))){var a=t.map((function(e){return e.shift()}));e.next(r?r.apply(void 0,dp([],pp(a))):a),t.some((function(e,t){return!e.length&&o[t]}))&&e.complete()}}),(function(){o[i]=!0,!t[i].length&&e.complete()})))},a=0;!e.closed&&a<n.length;a++)i(a);return function(){t=o=null}})):hp.EMPTY};var wp={},Op={audit:void 0},Sp=wi,_p=xu,xp=xi;Op.audit=function(e){return Sp.operate((function(t,r){var n=!1,o=null,i=null,a=!1,u=function(){if(null==i||i.unsubscribe(),i=null,n){n=!1;var e=o;o=null,r.next(e)}a&&r.complete()},c=function(){i=null,a&&r.complete()};t.subscribe(xp.createOperatorSubscriber(r,(function(t){n=!0,o=t,i||_p.innerFrom(e(t)).subscribe(i=xp.createOperatorSubscriber(r,u,c))}),(function(){a=!0,(!n||!i||i.closed)&&r.complete()})))}))};var jp={auditTime:void 0},Ep=$a,Pp=Op,Ap=vf;jp.auditTime=function(e,t){return void 0===t&&(t=Ep.asyncScheduler),Pp.audit((function(){return Ap.timer(e,t)}))};var Tp={buffer:void 0},Ip=wi,kp=Xo,Cp=xi;Tp.buffer=function(e){return Ip.operate((function(t,r){var n=[];return t.subscribe(Cp.createOperatorSubscriber(r,(function(e){return n.push(e)}),(function(){r.next(n),r.complete()}))),e.subscribe(Cp.createOperatorSubscriber(r,(function(){var e=n;n=[],r.next(e)}),kp.noop)),function(){n=null}}))};var Fp={},Mp=o&&o.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Fp.bufferCount=void 0;var Rp=wi,Np=xi,Bp=Lo;Fp.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,Rp.operate((function(r,n){var o=[],i=0;r.subscribe(Np.createOperatorSubscriber(n,(function(r){var a,u,c,s,l=null;i++%t==0&&o.push([]);try{for(var f=Mp(o),p=f.next();!p.done;p=f.next()){(b=p.value).push(r),e<=b.length&&(l=null!=l?l:[]).push(b)}}catch(e){a={error:e}}finally{try{p&&!p.done&&(u=f.return)&&u.call(f)}finally{if(a)throw a.error}}if(l)try{for(var d=Mp(l),v=d.next();!v.done;v=d.next()){var b=v.value;Bp.arrRemove(o,b),n.next(b)}}catch(e){c={error:e}}finally{try{v&&!v.done&&(s=d.return)&&s.call(d)}finally{if(c)throw c.error}}}),(function(){var e,t;try{for(var r=Mp(o),i=r.next();!i.done;i=r.next()){var a=i.value;n.next(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}n.complete()}),void 0,(function(){o=null})))}))};var Lp={},zp=o&&o.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Lp.bufferTime=void 0;var Up=Mo,Wp=wi,qp=xi,Dp=Lo,$p=$a,Vp=bu,Yp=pc;Lp.bufferTime=function(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=null!==(t=Vp.popScheduler(n))&&void 0!==t?t:$p.asyncScheduler,a=null!==(r=n[0])&&void 0!==r?r:null,u=n[1]||1/0;return Wp.operate((function(t,r){var n=[],o=!1,c=function(e){var t=e.buffer;e.subs.unsubscribe(),Dp.arrRemove(n,e),r.next(t),o&&s()},s=function(){if(n){var t=new Up.Subscription;r.add(t);var o={buffer:[],subs:t};n.push(o),Yp.executeSchedule(t,i,(function(){return c(o)}),e)}};null!==a&&a>=0?Yp.executeSchedule(r,i,s,a,!0):o=!0,s();var l=qp.createOperatorSubscriber(r,(function(e){var t,r,o=n.slice();try{for(var i=zp(o),a=i.next();!a.done;a=i.next()){var s=a.value,l=s.buffer;l.push(e),u<=l.length&&c(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}),(function(){for(;null==n?void 0:n.length;)r.next(n.shift().buffer);null==l||l.unsubscribe(),r.complete(),r.unsubscribe()}),void 0,(function(){return n=null}));t.subscribe(l)}))};var Hp={},Jp=o&&o.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Hp.bufferToggle=void 0;var Kp=Mo,Gp=wi,Qp=xu,Xp=xi,Zp=Xo,ed=Lo;Hp.bufferToggle=function(e,t){return Gp.operate((function(r,n){var o=[];Qp.innerFrom(e).subscribe(Xp.createOperatorSubscriber(n,(function(e){var r=[];o.push(r);var i=new Kp.Subscription;i.add(Qp.innerFrom(t(e)).subscribe(Xp.createOperatorSubscriber(n,(function(){ed.arrRemove(o,r),n.next(r),i.unsubscribe()}),Zp.noop)))}),Zp.noop)),r.subscribe(Xp.createOperatorSubscriber(n,(function(e){var t,r;try{for(var n=Jp(o),i=n.next();!i.done;i=n.next()){i.value.push(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}}),(function(){for(;o.length>0;)n.next(o.shift());n.complete()})))}))};var td={bufferWhen:void 0},rd=wi,nd=Xo,od=xi,id=xu;td.bufferWhen=function(e){return rd.operate((function(t,r){var n=null,o=null,i=function(){null==o||o.unsubscribe();var t=n;n=[],t&&r.next(t),id.innerFrom(e()).subscribe(o=od.createOperatorSubscriber(r,i,nd.noop))};i(),t.subscribe(od.createOperatorSubscriber(r,(function(e){return null==n?void 0:n.push(e)}),(function(){n&&r.next(n),r.complete()}),void 0,(function(){return n=o=null})))}))};var ad={catchError:void 0},ud=xu,cd=xi,sd=wi;ad.catchError=function e(t){return sd.operate((function(r,n){var o,i=null,a=!1;i=r.subscribe(cd.createOperatorSubscriber(n,void 0,void 0,(function(u){o=ud.innerFrom(t(u,e(t)(r))),i?(i.unsubscribe(),i=null,o.subscribe(n)):a=!0}))),a&&(i.unsubscribe(),i=null,o.subscribe(n))}))};var ld={},fd={},pd={},dd={},vd={},bd={scanInternals:void 0},yd=xi;bd.scanInternals=function(e,t,r,n,o){return function(i,a){var u=r,c=t,s=0;i.subscribe(yd.createOperatorSubscriber(a,(function(t){var r=s++;c=u?e(c,t,r):(u=!0,t),n&&a.next(c)}),o&&function(){u&&a.next(c),a.complete()}))}},vd.reduce=void 0;var hd=bd,md=wi;vd.reduce=function(e,t){return md.operate(hd.scanInternals(e,t,arguments.length>=2,!1,!0))},dd.toArray=void 0;var gd=vd,wd=wi,Od=function(e,t){return e.push(t),e};dd.toArray=function(){return wd.operate((function(e,t){gd.reduce(Od,[])(e).subscribe(t)}))},pd.joinAllInternals=void 0;var Sd=ai,_d=xs,xd=ii,jd=ll,Ed=dd;pd.joinAllInternals=function(e,t){return xd.pipe(Ed.toArray(),jd.mergeMap((function(t){return e(t)})),t?_d.mapOneOrManyArgs(t):Sd.identity)},fd.combineLatestAll=void 0;var Pd=Ds,Ad=pd;fd.combineLatestAll=function(e){return Ad.joinAllInternals(Pd.combineLatest,e)},ld.combineAll=void 0;var Td=fd;ld.combineAll=Td.combineLatestAll;var Id={},kd={},Cd=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Fd=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};kd.combineLatest=void 0;var Md=Ds,Rd=wi,Nd=If,Bd=xs,Ld=ii,zd=bu;kd.combineLatest=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=zd.popResultSelector(t);return n?Ld.pipe(e.apply(void 0,Fd([],Cd(t))),Bd.mapOneOrManyArgs(n)):Rd.operate((function(e,r){Md.combineLatestInit(Fd([e],Cd(Nd.argsOrArgArray(t))))(r)}))};var Ud=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Wd=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Id.combineLatestWith=void 0;var qd=kd;Id.combineLatestWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return qd.combineLatest.apply(void 0,Wd([],Ud(e)))};var Dd={concatMap:void 0},$d=ll,Vd=Fo;Dd.concatMap=function(e,t){return Vd.isFunction(t)?$d.mergeMap(e,t,1):$d.mergeMap(e,1)};var Yd={concatMapTo:void 0},Hd=Dd,Jd=Fo;Yd.concatMapTo=function(e,t){return Jd.isFunction(t)?Hd.concatMap((function(){return e}),t):Hd.concatMap((function(){return e}))};var Kd={},Gd={},Qd=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Xd=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Gd.concat=void 0;var Zd=wi,ev=cl,tv=bu,rv=Ou;Gd.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=tv.popScheduler(e);return Zd.operate((function(t,n){ev.concatAll()(rv.from(Xd([t],Qd(e)),r)).subscribe(n)}))};var nv=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},ov=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Kd.concatWith=void 0;var iv=Gd;Kd.concatWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return iv.concat.apply(void 0,ov([],nv(e)))};var av={},uv={fromSubscribable:void 0},cv=ko;uv.fromSubscribable=function(e){return new cv.Observable((function(t){return e.subscribe(t)}))},av.connect=void 0;var sv=Vi,lv=Ou,fv=wi,pv=uv,dv={connector:function(){return new sv.Subject}};av.connect=function(e,t){void 0===t&&(t=dv);var r=t.connector;return fv.operate((function(t,n){var o=r();lv.from(e(pv.fromSubscribable(o))).subscribe(n),n.add(t.subscribe(o))}))};var vv={count:void 0},bv=vd;vv.count=function(e){return bv.reduce((function(t,r,n){return!e||e(r,n)?t+1:t}),0)};var yv={debounce:void 0},hv=wi,mv=Xo,gv=xi,wv=xu;yv.debounce=function(e){return hv.operate((function(t,r){var n=!1,o=null,i=null,a=function(){if(null==i||i.unsubscribe(),i=null,n){n=!1;var e=o;o=null,r.next(e)}};t.subscribe(gv.createOperatorSubscriber(r,(function(t){null==i||i.unsubscribe(),n=!0,o=t,i=gv.createOperatorSubscriber(r,a,mv.noop),wv.innerFrom(e(t)).subscribe(i)}),(function(){a(),r.complete()}),void 0,(function(){o=i=null})))}))};var Ov={debounceTime:void 0},Sv=$a,_v=wi,xv=xi;Ov.debounceTime=function(e,t){return void 0===t&&(t=Sv.asyncScheduler),_v.operate((function(r,n){var o=null,i=null,a=null,u=function(){if(o){o.unsubscribe(),o=null;var e=i;i=null,n.next(e)}};function c(){var r=a+e,i=t.now();if(i<r)return o=this.schedule(void 0,r-i),void n.add(o);u()}r.subscribe(xv.createOperatorSubscriber(n,(function(r){i=r,a=t.now(),o||(o=t.schedule(c,e),n.add(o))}),(function(){u(),n.complete()}),void 0,(function(){i=o=null})))}))};var jv={defaultIfEmpty:void 0},Ev=wi,Pv=xi;jv.defaultIfEmpty=function(e){return Ev.operate((function(t,r){var n=!1;t.subscribe(Pv.createOperatorSubscriber(r,(function(e){n=!0,r.next(e)}),(function(){n||r.next(e),r.complete()})))}))};var Av={},Tv={},Iv={take:void 0},kv=du,Cv=wi,Fv=xi;Iv.take=function(e){return e<=0?function(){return kv.EMPTY}:Cv.operate((function(t,r){var n=0;t.subscribe(Fv.createOperatorSubscriber(r,(function(t){++n<=e&&(r.next(t),e<=n&&r.complete())})))}))};var Mv={ignoreElements:void 0},Rv=wi,Nv=xi,Bv=Xo;Mv.ignoreElements=function(){return Rv.operate((function(e,t){e.subscribe(Nv.createOperatorSubscriber(t,Bv.noop))}))};var Lv={mapTo:void 0},zv=js;Lv.mapTo=function(e){return zv.map((function(){return e}))},Tv.delayWhen=void 0;var Uv=ul,Wv=Iv,qv=Mv,Dv=Lv,$v=ll;Tv.delayWhen=function e(t,r){return r?function(n){return Uv.concat(r.pipe(Wv.take(1),qv.ignoreElements()),n.pipe(e(t)))}:$v.mergeMap((function(e,r){return t(e,r).pipe(Wv.take(1),Dv.mapTo(e))}))},Av.delay=void 0;var Vv=$a,Yv=Tv,Hv=vf;Av.delay=function(e,t){void 0===t&&(t=Vv.asyncScheduler);var r=Hv.timer(e,t);return Yv.delayWhen((function(){return r}))};var Jv={dematerialize:void 0},Kv=pu,Gv=wi,Qv=xi;Jv.dematerialize=function(){return Gv.operate((function(e,t){e.subscribe(Qv.createOperatorSubscriber(t,(function(e){return Kv.observeNotification(e,t)})))}))};var Xv={distinct:void 0},Zv=wi,eb=xi,tb=Xo;Xv.distinct=function(e,t){return Zv.operate((function(r,n){var o=new Set;r.subscribe(eb.createOperatorSubscriber(n,(function(t){var r=e?e(t):t;o.has(r)||(o.add(r),n.next(t))}))),null==t||t.subscribe(eb.createOperatorSubscriber(n,(function(){return o.clear()}),tb.noop))}))};var rb={distinctUntilChanged:void 0},nb=ai,ob=wi,ib=xi;function ab(e,t){return e===t}rb.distinctUntilChanged=function(e,t){return void 0===t&&(t=nb.identity),e=null!=e?e:ab,ob.operate((function(r,n){var o,i=!0;r.subscribe(ib.createOperatorSubscriber(n,(function(r){var a=t(r);!i&&e(o,a)||(i=!1,o=a,n.next(r))})))}))};var ub={distinctUntilKeyChanged:void 0},cb=rb;ub.distinctUntilKeyChanged=function(e,t){return cb.distinctUntilChanged((function(r,n){return t?t(r[e],n[e]):r[e]===n[e]}))};var sb={},lb={throwIfEmpty:void 0},fb=cs,pb=wi,db=xi;function vb(){return new fb.EmptyError}lb.throwIfEmpty=function(e){return void 0===e&&(e=vb),pb.operate((function(t,r){var n=!1;t.subscribe(db.createOperatorSubscriber(r,(function(e){n=!0,r.next(e)}),(function(){return n?r.complete():r.error(e())})))}))},sb.elementAt=void 0;var bb=vs,yb=Yf,hb=lb,mb=jv,gb=Iv;sb.elementAt=function(e,t){if(e<0)throw new bb.ArgumentOutOfRangeError;var r=arguments.length>=2;return function(n){return n.pipe(yb.filter((function(t,r){return r===e})),gb.take(1),r?mb.defaultIfEmpty(t):hb.throwIfEmpty((function(){return new bb.ArgumentOutOfRangeError})))}};var wb={},Ob=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Sb=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};wb.endWith=void 0;var _b=ul,xb=vu;wb.endWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return _b.concat(t,xb.of.apply(void 0,Sb([],Ob(e))))}};var jb={every:void 0},Eb=wi,Pb=xi;jb.every=function(e,t){return Eb.operate((function(r,n){var o=0;r.subscribe(Pb.createOperatorSubscriber(n,(function(i){e.call(t,i,o++,r)||(n.next(!1),n.complete())}),(function(){n.next(!0),n.complete()})))}))};var Ab={},Tb={exhaustAll:void 0},Ib=wi,kb=xu,Cb=xi;Tb.exhaustAll=function(){return Ib.operate((function(e,t){var r=!1,n=null;e.subscribe(Cb.createOperatorSubscriber(t,(function(e){n||(n=kb.innerFrom(e).subscribe(Cb.createOperatorSubscriber(t,void 0,(function(){n=null,r&&t.complete()}))))}),(function(){r=!0,!n&&t.complete()})))}))},Ab.exhaust=void 0;var Fb=Tb;Ab.exhaust=Fb.exhaustAll;var Mb={exhaustMap:void 0},Rb=js,Nb=xu,Bb=wi,Lb=xi;Mb.exhaustMap=function e(t,r){return r?function(n){return n.pipe(e((function(e,n){return Nb.innerFrom(t(e,n)).pipe(Rb.map((function(t,o){return r(e,t,n,o)})))})))}:Bb.operate((function(e,r){var n=0,o=null,i=!1;e.subscribe(Lb.createOperatorSubscriber(r,(function(e){o||(o=Lb.createOperatorSubscriber(r,void 0,(function(){o=null,i&&r.complete()})),Nb.innerFrom(t(e,n++)).subscribe(o))}),(function(){i=!0,!o&&r.complete()})))}))};var zb={expand:void 0},Ub=wi,Wb=fl;zb.expand=function(e,t,r){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,Ub.operate((function(n,o){return Wb.mergeInternals(n,o,e,t,void 0,!0,r)}))};var qb={finalize:void 0},Db=wi;qb.finalize=function(e){return Db.operate((function(t,r){try{t.subscribe(r)}finally{r.add(e)}}))};var $b={};$b.createFind=$b.find=void 0;var Vb=wi,Yb=xi;function Hb(e,t,r){var n="index"===r;return function(r,o){var i=0;r.subscribe(Yb.createOperatorSubscriber(o,(function(a){var u=i++;e.call(t,a,u,r)&&(o.next(n?u:a),o.complete())}),(function(){o.next(n?-1:void 0),o.complete()})))}}$b.find=function(e,t){return Vb.operate(Hb(e,t,"value"))},$b.createFind=Hb;var Jb={findIndex:void 0},Kb=wi,Gb=$b;Jb.findIndex=function(e,t){return Kb.operate(Gb.createFind(e,t,"index"))};var Qb={first:void 0},Xb=cs,Zb=Yf,ey=Iv,ty=jv,ry=lb,ny=ai;Qb.first=function(e,t){var r=arguments.length>=2;return function(n){return n.pipe(e?Zb.filter((function(t,r){return e(t,r,n)})):ny.identity,ey.take(1),r?ty.defaultIfEmpty(t):ry.throwIfEmpty((function(){return new Xb.EmptyError})))}};var oy={groupBy:void 0},iy=ko,ay=xu,uy=Vi,cy=wi,sy=xi;oy.groupBy=function(e,t,r,n){return cy.operate((function(o,i){var a;t&&"function"!=typeof t?(r=t.duration,a=t.element,n=t.connector):a=t;var u=new Map,c=function(e){u.forEach(e),e(i)},s=function(e){return c((function(t){return t.error(e)}))},l=0,f=!1,p=new sy.OperatorSubscriber(i,(function(t){try{var o=e(t),c=u.get(o);if(!c){u.set(o,c=n?n():new uy.Subject);var d=(b=o,y=c,(h=new iy.Observable((function(e){l++;var t=y.subscribe(e);return function(){t.unsubscribe(),0==--l&&f&&p.unsubscribe()}}))).key=b,h);if(i.next(d),r){var v=sy.createOperatorSubscriber(c,(function(){c.complete(),null==v||v.unsubscribe()}),void 0,void 0,(function(){return u.delete(o)}));p.add(ay.innerFrom(r(d)).subscribe(v))}}c.next(a?a(t):t)}catch(e){s(e)}var b,y,h}),(function(){return c((function(e){return e.complete()}))}),s,(function(){return u.clear()}),(function(){return f=!0,0===l}));o.subscribe(p)}))};var ly={isEmpty:void 0},fy=wi,py=xi;ly.isEmpty=function(){return fy.operate((function(e,t){e.subscribe(py.createOperatorSubscriber(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))};var dy={},vy={},by=o&&o.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};vy.takeLast=void 0;var yy=du,hy=wi,my=xi;vy.takeLast=function(e){return e<=0?function(){return yy.EMPTY}:hy.operate((function(t,r){var n=[];t.subscribe(my.createOperatorSubscriber(r,(function(t){n.push(t),e<n.length&&n.shift()}),(function(){var e,t;try{for(var o=by(n),i=o.next();!i.done;i=o.next()){var a=i.value;r.next(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}r.complete()}),void 0,(function(){n=null})))}))},dy.last=void 0;var gy=cs,wy=Yf,Oy=vy,Sy=lb,_y=jv,xy=ai;dy.last=function(e,t){var r=arguments.length>=2;return function(n){return n.pipe(e?wy.filter((function(t,r){return e(t,r,n)})):xy.identity,Oy.takeLast(1),r?_y.defaultIfEmpty(t):Sy.throwIfEmpty((function(){return new gy.EmptyError})))}};var jy={materialize:void 0},Ey=pu,Py=wi,Ay=xi;jy.materialize=function(){return Py.operate((function(e,t){e.subscribe(Ay.createOperatorSubscriber(t,(function(e){t.next(Ey.Notification.createNext(e))}),(function(){t.next(Ey.Notification.createComplete()),t.complete()}),(function(e){t.next(Ey.Notification.createError(e)),t.complete()})))}))};var Ty={max:void 0},Iy=vd,ky=Fo;Ty.max=function(e){return Iy.reduce(ky.isFunction(e)?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t})};var Cy={flatMap:void 0},Fy=ll;Cy.flatMap=Fy.mergeMap;var My={mergeMapTo:void 0},Ry=ll,Ny=Fo;My.mergeMapTo=function(e,t,r){return void 0===r&&(r=1/0),Ny.isFunction(t)?Ry.mergeMap((function(){return e}),t,r):("number"==typeof t&&(r=t),Ry.mergeMap((function(){return e}),r))};var By={mergeScan:void 0},Ly=wi,zy=fl;By.mergeScan=function(e,t,r){return void 0===r&&(r=1/0),Ly.operate((function(n,o){var i=t;return zy.mergeInternals(n,o,(function(t,r){return e(i,t,r)}),r,(function(e){i=e}),!1,void 0,(function(){return i=null}))}))};var Uy={},Wy={},qy=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Dy=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Wy.merge=void 0;var $y=wi,Vy=If,Yy=sl,Hy=bu,Jy=Ou;Wy.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Hy.popScheduler(e),n=Hy.popNumber(e,1/0);return e=Vy.argsOrArgArray(e),$y.operate((function(t,o){Yy.mergeAll(n)(Jy.from(Dy([t],qy(e)),r)).subscribe(o)}))};var Ky=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Gy=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Uy.mergeWith=void 0;var Qy=Wy;Uy.mergeWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Qy.merge.apply(void 0,Gy([],Ky(e)))};var Xy={min:void 0},Zy=vd,eh=Fo;Xy.min=function(e){return Zy.reduce(eh.isFunction(e)?function(t,r){return e(t,r)<0?t:r}:function(e,t){return e<t?e:t})};var th={multicast:void 0},rh=mi,nh=Fo,oh=av;th.multicast=function(e,t){var r=nh.isFunction(e)?e:function(){return e};return nh.isFunction(t)?oh.connect(t,{connector:r}):function(e){return new rh.ConnectableObservable(e,r)}};var ih={pairwise:void 0},ah=wi,uh=xi;ih.pairwise=function(){return ah.operate((function(e,t){var r,n=!1;e.subscribe(uh.createOperatorSubscriber(t,(function(e){var o=r;r=e,n&&t.next([o,e]),n=!0})))}))};var ch={pluck:void 0},sh=js;ch.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.length;if(0===r)throw new Error("list of properties cannot be empty.");return sh.map((function(t){for(var n=t,o=0;o<r;o++){var i=null==n?void 0:n[e[o]];if(void 0===i)return;n=i}return n}))};var lh={publish:void 0},fh=Vi,ph=th,dh=av;lh.publish=function(e){return e?function(t){return dh.connect(e)(t)}:function(e){return ph.multicast(new fh.Subject)(e)}};var vh={publishBehavior:void 0},bh=na,yh=mi;vh.publishBehavior=function(e){return function(t){var r=new bh.BehaviorSubject(e);return new yh.ConnectableObservable(t,(function(){return r}))}};var hh={publishLast:void 0},mh=fa,gh=mi;hh.publishLast=function(){return function(e){var t=new mh.AsyncSubject;return new gh.ConnectableObservable(e,(function(){return t}))}};var wh={publishReplay:void 0},Oh=aa,Sh=th,_h=Fo;wh.publishReplay=function(e,t,r,n){r&&!_h.isFunction(r)&&(n=r);var o=_h.isFunction(r)?r:void 0;return function(r){return Sh.multicast(new Oh.ReplaySubject(e,t,n),o)(r)}};var xh={},jh=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Eh=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};xh.raceWith=void 0;var Ph=Xf,Ah=wi,Th=ai;xh.raceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?Ah.operate((function(t,r){Ph.raceInit(Eh([t],jh(e)))(r)})):Th.identity};var Ih={repeat:void 0},kh=du,Ch=wi,Fh=xi,Mh=xu,Rh=vf;Ih.repeat=function(e){var t,r,n=1/0;return null!=e&&("object"==typeof e?(t=e.count,n=void 0===t?1/0:t,r=e.delay):n=e),n<=0?function(){return kh.EMPTY}:Ch.operate((function(e,t){var o,i=0,a=function(){if(null==o||o.unsubscribe(),o=null,null!=r){var e="number"==typeof r?Rh.timer(r):Mh.innerFrom(r(i)),n=Fh.createOperatorSubscriber(t,(function(){n.unsubscribe(),u()}));e.subscribe(n)}else u()},u=function(){var r=!1;o=e.subscribe(Fh.createOperatorSubscriber(t,void 0,(function(){++i<n?o?a():r=!0:t.complete()}))),r&&a()};u()}))};var Nh={repeatWhen:void 0},Bh=Vi,Lh=wi,zh=xi;Nh.repeatWhen=function(e){return Lh.operate((function(t,r){var n,o,i=!1,a=!1,u=!1,c=function(){return u&&a&&(r.complete(),!0)},s=function(){u=!1,n=t.subscribe(zh.createOperatorSubscriber(r,void 0,(function(){u=!0,!c()&&(o||(o=new Bh.Subject,e(o).subscribe(zh.createOperatorSubscriber(r,(function(){n?s():i=!0}),(function(){a=!0,c()})))),o).next()}))),i&&(n.unsubscribe(),n=null,i=!1,s())};s()}))};var Uh={retry:void 0},Wh=wi,qh=xi,Dh=ai,$h=vf,Vh=xu;Uh.retry=function(e){var t;void 0===e&&(e=1/0);var r=(t=e&&"object"==typeof e?e:{count:e}).count,n=void 0===r?1/0:r,o=t.delay,i=t.resetOnSuccess,a=void 0!==i&&i;return n<=0?Dh.identity:Wh.operate((function(e,t){var r,i=0,u=function(){var c=!1;r=e.subscribe(qh.createOperatorSubscriber(t,(function(e){a&&(i=0),t.next(e)}),void 0,(function(e){if(i++<n){var a=function(){r?(r.unsubscribe(),r=null,u()):c=!0};if(null!=o){var s="number"==typeof o?$h.timer(o):Vh.innerFrom(o(e,i)),l=qh.createOperatorSubscriber(t,(function(){l.unsubscribe(),a()}),(function(){t.complete()}));s.subscribe(l)}else a()}else t.error(e)}))),c&&(r.unsubscribe(),r=null,u())};u()}))};var Yh={retryWhen:void 0},Hh=Vi,Jh=wi,Kh=xi;Yh.retryWhen=function(e){return Jh.operate((function(t,r){var n,o,i=!1,a=function(){n=t.subscribe(Kh.createOperatorSubscriber(r,void 0,void 0,(function(t){o||(o=new Hh.Subject,e(o).subscribe(Kh.createOperatorSubscriber(r,(function(){return n?a():i=!0})))),o&&o.next(t)}))),i&&(n.unsubscribe(),n=null,i=!1,a())};a()}))};var Gh={sample:void 0},Qh=wi,Xh=Xo,Zh=xi;Gh.sample=function(e){return Qh.operate((function(t,r){var n=!1,o=null;t.subscribe(Zh.createOperatorSubscriber(r,(function(e){n=!0,o=e}))),e.subscribe(Zh.createOperatorSubscriber(r,(function(){if(n){n=!1;var e=o;o=null,r.next(e)}}),Xh.noop))}))};var em={sampleTime:void 0},tm=$a,rm=Gh,nm=df;em.sampleTime=function(e,t){return void 0===t&&(t=tm.asyncScheduler),rm.sample(nm.interval(e,t))};var om={scan:void 0},im=wi,am=bd;om.scan=function(e,t){return im.operate(am.scanInternals(e,t,arguments.length>=2,!0))};var um={sequenceEqual:void 0},cm=wi,sm=xi;um.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),cm.operate((function(r,n){var o={buffer:[],complete:!1},i={buffer:[],complete:!1},a=function(e){n.next(e),n.complete()},u=function(e,r){var o=sm.createOperatorSubscriber(n,(function(n){var o=r.buffer,i=r.complete;0===o.length?i?a(!1):e.buffer.push(n):!t(n,o.shift())&&a(!1)}),(function(){e.complete=!0;var t=r.complete,n=r.buffer;t&&a(0===n.length),null==o||o.unsubscribe()}));return o};r.subscribe(u(o,i)),e.subscribe(u(i,o))}))};var lm={},fm=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},pm=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};lm.share=void 0;var dm=Ou,vm=Iv,bm=Vi,ym=Co,hm=wi;function mm(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return!0===t?(e(),null):!1===t?null:t.apply(void 0,pm([],fm(r))).pipe(vm.take(1)).subscribe((function(){return e()}))}lm.share=function(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new bm.Subject}:t,n=e.resetOnError,o=void 0===n||n,i=e.resetOnComplete,a=void 0===i||i,u=e.resetOnRefCountZero,c=void 0===u||u;return function(e){var t=null,n=null,i=null,u=0,s=!1,l=!1,f=function(){null==n||n.unsubscribe(),n=null},p=function(){f(),t=i=null,s=l=!1},d=function(){var e=t;p(),null==e||e.unsubscribe()};return hm.operate((function(e,v){u++,l||s||f();var b=i=null!=i?i:r();v.add((function(){0!==--u||l||s||(n=mm(d,c))})),b.subscribe(v),t||(t=new ym.SafeSubscriber({next:function(e){return b.next(e)},error:function(e){l=!0,f(),n=mm(p,o,e),b.error(e)},complete:function(){s=!0,f(),n=mm(p,a),b.complete()}}),dm.from(e).subscribe(t))}))(e)}};var gm={shareReplay:void 0},wm=aa,Om=lm;gm.shareReplay=function(e,t,r){var n,o,i,a,u=!1;return e&&"object"==typeof e?(n=e.bufferSize,a=void 0===n?1/0:n,o=e.windowTime,t=void 0===o?1/0:o,u=void 0!==(i=e.refCount)&&i,r=e.scheduler):a=null!=e?e:1/0,Om.share({connector:function(){return new wm.ReplaySubject(a,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})};var Sm={single:void 0},_m=cs,xm=ms,jm=ys,Em=wi,Pm=xi;Sm.single=function(e){return Em.operate((function(t,r){var n,o=!1,i=!1,a=0;t.subscribe(Pm.createOperatorSubscriber(r,(function(u){i=!0,e&&!e(u,a++,t)||(o&&r.error(new xm.SequenceError("Too many matching values")),o=!0,n=u)}),(function(){o?(r.next(n),r.complete()):r.error(i?new jm.NotFoundError("No matching values"):new _m.EmptyError)})))}))};var Am={skip:void 0},Tm=Yf;Am.skip=function(e){return Tm.filter((function(t,r){return e<=r}))};var Im={skipLast:void 0},km=ai,Cm=wi,Fm=xi;Im.skipLast=function(e){return e<=0?km.identity:Cm.operate((function(t,r){var n=new Array(e),o=0;return t.subscribe(Fm.createOperatorSubscriber(r,(function(t){var i=o++;if(i<e)n[i]=t;else{var a=i%e,u=n[a];n[a]=t,r.next(u)}}))),function(){n=null}}))};var Mm={skipUntil:void 0},Rm=wi,Nm=xi,Bm=xu,Lm=Xo;Mm.skipUntil=function(e){return Rm.operate((function(t,r){var n=!1,o=Nm.createOperatorSubscriber(r,(function(){null==o||o.unsubscribe(),n=!0}),Lm.noop);Bm.innerFrom(e).subscribe(o),t.subscribe(Nm.createOperatorSubscriber(r,(function(e){return n&&r.next(e)})))}))};var zm={skipWhile:void 0},Um=wi,Wm=xi;zm.skipWhile=function(e){return Um.operate((function(t,r){var n=!1,o=0;t.subscribe(Wm.createOperatorSubscriber(r,(function(t){return(n||(n=!e(t,o++)))&&r.next(t)})))}))};var qm={startWith:void 0},Dm=ul,$m=bu,Vm=wi;qm.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=$m.popScheduler(e);return Vm.operate((function(t,n){(r?Dm.concat(e,t,r):Dm.concat(e,t)).subscribe(n)}))};var Ym={},Hm={switchMap:void 0},Jm=xu,Km=wi,Gm=xi;Hm.switchMap=function(e,t){return Km.operate((function(r,n){var o=null,i=0,a=!1,u=function(){return a&&!o&&n.complete()};r.subscribe(Gm.createOperatorSubscriber(n,(function(r){null==o||o.unsubscribe();var a=0,c=i++;Jm.innerFrom(e(r,c)).subscribe(o=Gm.createOperatorSubscriber(n,(function(e){return n.next(t?t(r,e,c,a++):e)}),(function(){o=null,u()})))}),(function(){a=!0,u()})))}))},Ym.switchAll=void 0;var Qm=Hm,Xm=ai;Ym.switchAll=function(){return Qm.switchMap(Xm.identity)};var Zm={switchMapTo:void 0},eg=Hm,tg=Fo;Zm.switchMapTo=function(e,t){return tg.isFunction(t)?eg.switchMap((function(){return e}),t):eg.switchMap((function(){return e}))};var rg={switchScan:void 0},ng=Hm,og=wi;rg.switchScan=function(e,t){return og.operate((function(r,n){var o=t;return ng.switchMap((function(t,r){return e(o,t,r)}),(function(e,t){return o=t,t}))(r).subscribe(n),function(){o=null}}))};var ig={takeUntil:void 0},ag=wi,ug=xi,cg=xu,sg=Xo;ig.takeUntil=function(e){return ag.operate((function(t,r){cg.innerFrom(e).subscribe(ug.createOperatorSubscriber(r,(function(){return r.complete()}),sg.noop)),!r.closed&&t.subscribe(r)}))};var lg={takeWhile:void 0},fg=wi,pg=xi;lg.takeWhile=function(e,t){return void 0===t&&(t=!1),fg.operate((function(r,n){var o=0;r.subscribe(pg.createOperatorSubscriber(n,(function(r){var i=e(r,o++);(i||t)&&n.next(r),!i&&n.complete()})))}))};var dg={tap:void 0},vg=Fo,bg=wi,yg=xi,hg=ai;dg.tap=function(e,t,r){var n=vg.isFunction(e)||t||r?{next:e,error:t,complete:r}:e;return n?bg.operate((function(e,t){var r;null===(r=n.subscribe)||void 0===r||r.call(n);var o=!0;e.subscribe(yg.createOperatorSubscriber(t,(function(e){var r;null===(r=n.next)||void 0===r||r.call(n,e),t.next(e)}),(function(){var e;o=!1,null===(e=n.complete)||void 0===e||e.call(n),t.complete()}),(function(e){var r;o=!1,null===(r=n.error)||void 0===r||r.call(n,e),t.error(e)}),(function(){var e,t;o&&(null===(e=n.unsubscribe)||void 0===e||e.call(n)),null===(t=n.finalize)||void 0===t||t.call(n)})))})):hg.identity};var mg={};!function(e){e.throttle=e.defaultThrottleConfig=void 0;var t=wi,r=xi,n=xu;e.defaultThrottleConfig={leading:!0,trailing:!1},e.throttle=function(o,i){return void 0===i&&(i=e.defaultThrottleConfig),t.operate((function(e,t){var a=i.leading,u=i.trailing,c=!1,s=null,l=null,f=!1,p=function(){null==l||l.unsubscribe(),l=null,u&&(b(),f&&t.complete())},d=function(){l=null,f&&t.complete()},v=function(e){return l=n.innerFrom(o(e)).subscribe(r.createOperatorSubscriber(t,p,d))},b=function(){if(c){c=!1;var e=s;s=null,t.next(e),!f&&v(e)}};e.subscribe(r.createOperatorSubscriber(t,(function(e){c=!0,s=e,(!l||l.closed)&&(a?b():v(e))}),(function(){f=!0,(!(u&&c&&l)||l.closed)&&t.complete()})))}))}}(mg);var gg={throttleTime:void 0},wg=$a,Og=mg,Sg=vf;gg.throttleTime=function(e,t,r){void 0===t&&(t=wg.asyncScheduler),void 0===r&&(r=Og.defaultThrottleConfig);var n=Sg.timer(e,t);return Og.throttle((function(){return n}),r)};var _g={};_g.TimeInterval=_g.timeInterval=void 0;var xg=$a,jg=wi,Eg=xi;_g.timeInterval=function(e){return void 0===e&&(e=xg.asyncScheduler),jg.operate((function(t,r){var n=e.now();t.subscribe(Eg.createOperatorSubscriber(r,(function(t){var o=e.now(),i=o-n;n=o,r.next(new Pg(t,i))})))}))};var Pg=function(e,t){this.value=e,this.interval=t};_g.TimeInterval=Pg;var Ag={timeoutWith:void 0},Tg=$a,Ig=Os,kg=ws;Ag.timeoutWith=function(e,t,r){var n,o,i;if(r=null!=r?r:Tg.async,Ig.isValidDate(e)?n=e:"number"==typeof e&&(o=e),!t)throw new TypeError("No observable provided to switch to");if(i=function(){return t},null==n&&null==o)throw new TypeError("No timeout provided.");return kg.timeout({first:n,each:o,scheduler:r,with:i})};var Cg={timestamp:void 0},Fg=ua,Mg=js;Cg.timestamp=function(e){return void 0===e&&(e=Fg.dateTimestampProvider),Mg.map((function(t){return{value:t,timestamp:e.now()}}))};var Rg={window:void 0},Ng=Vi,Bg=wi,Lg=xi,zg=Xo;Rg.window=function(e){return Bg.operate((function(t,r){var n=new Ng.Subject;r.next(n.asObservable());var o=function(e){n.error(e),r.error(e)};return t.subscribe(Lg.createOperatorSubscriber(r,(function(e){return null==n?void 0:n.next(e)}),(function(){n.complete(),r.complete()}),o)),e.subscribe(Lg.createOperatorSubscriber(r,(function(){n.complete(),r.next(n=new Ng.Subject)}),zg.noop,o)),function(){null==n||n.unsubscribe(),n=null}}))};var Ug={},Wg=o&&o.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Ug.windowCount=void 0;var qg=Vi,Dg=wi,$g=xi;Ug.windowCount=function(e,t){void 0===t&&(t=0);var r=t>0?t:e;return Dg.operate((function(t,n){var o=[new qg.Subject],i=0;n.next(o[0].asObservable()),t.subscribe($g.createOperatorSubscriber(n,(function(t){var a,u;try{for(var c=Wg(o),s=c.next();!s.done;s=c.next()){s.value.next(t)}}catch(e){a={error:e}}finally{try{s&&!s.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}var l=i-e+1;if(l>=0&&l%r==0&&o.shift().complete(),++i%r==0){var f=new qg.Subject;o.push(f),n.next(f.asObservable())}}),(function(){for(;o.length>0;)o.shift().complete();n.complete()}),(function(e){for(;o.length>0;)o.shift().error(e);n.error(e)}),(function(){o=null})))}))};var Vg={windowTime:void 0},Yg=Vi,Hg=$a,Jg=Mo,Kg=wi,Gg=xi,Qg=Lo,Xg=bu,Zg=pc;Vg.windowTime=function(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=null!==(t=Xg.popScheduler(n))&&void 0!==t?t:Hg.asyncScheduler,a=null!==(r=n[0])&&void 0!==r?r:null,u=n[1]||1/0;return Kg.operate((function(t,r){var n=[],o=!1,c=function(e){var t=e.window,r=e.subs;t.complete(),r.unsubscribe(),Qg.arrRemove(n,e),o&&s()},s=function(){if(n){var t=new Jg.Subscription;r.add(t);var o=new Yg.Subject,a={window:o,subs:t,seen:0};n.push(a),r.next(o.asObservable()),Zg.executeSchedule(t,i,(function(){return c(a)}),e)}};null!==a&&a>=0?Zg.executeSchedule(r,i,s,a,!0):o=!0,s();var l=function(e){return n.slice().forEach(e)},f=function(e){l((function(t){var r=t.window;return e(r)})),e(r),r.unsubscribe()};return t.subscribe(Gg.createOperatorSubscriber(r,(function(e){l((function(t){t.window.next(e),u<=++t.seen&&c(t)}))}),(function(){return f((function(e){return e.complete()}))}),(function(e){return f((function(t){return t.error(e)}))}))),function(){n=null}}))};var ew={},tw=o&&o.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};ew.windowToggle=void 0;var rw=Vi,nw=Mo,ow=wi,iw=xu,aw=xi,uw=Xo,cw=Lo;ew.windowToggle=function(e,t){return ow.operate((function(r,n){var o=[],i=function(e){for(;0<o.length;)o.shift().error(e);n.error(e)};iw.innerFrom(e).subscribe(aw.createOperatorSubscriber(n,(function(e){var r=new rw.Subject;o.push(r);var a,u=new nw.Subscription;try{a=iw.innerFrom(t(e))}catch(e){return void i(e)}n.next(r.asObservable()),u.add(a.subscribe(aw.createOperatorSubscriber(n,(function(){cw.arrRemove(o,r),r.complete(),u.unsubscribe()}),uw.noop,i)))}),uw.noop)),r.subscribe(aw.createOperatorSubscriber(n,(function(e){var t,r,n=o.slice();try{for(var i=tw(n),a=i.next();!a.done;a=i.next()){a.value.next(e)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}),(function(){for(;0<o.length;)o.shift().complete();n.complete()}),i,(function(){for(;0<o.length;)o.shift().unsubscribe()})))}))};var sw={windowWhen:void 0},lw=Vi,fw=wi,pw=xi,dw=xu;sw.windowWhen=function(e){return fw.operate((function(t,r){var n,o,i=function(e){n.error(e),r.error(e)},a=function(){var t;null==o||o.unsubscribe(),null==n||n.complete(),n=new lw.Subject,r.next(n.asObservable());try{t=dw.innerFrom(e())}catch(e){return void i(e)}t.subscribe(o=pw.createOperatorSubscriber(r,a,a,i))};a(),t.subscribe(pw.createOperatorSubscriber(r,(function(e){return n.next(e)}),(function(){n.complete(),r.complete()}),i,(function(){null==o||o.unsubscribe(),n=null})))}))};var vw={},bw=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},yw=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};vw.withLatestFrom=void 0;var hw=wi,mw=xi,gw=xu,ww=ai,Ow=Xo,Sw=bu;vw.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Sw.popResultSelector(e);return hw.operate((function(t,n){for(var o=e.length,i=new Array(o),a=e.map((function(){return!1})),u=!1,c=function(t){gw.innerFrom(e[t]).subscribe(mw.createOperatorSubscriber(n,(function(e){i[t]=e,u||a[t]||(a[t]=!0,(u=a.every(ww.identity))&&(a=null))}),Ow.noop))},s=0;s<o;s++)c(s);t.subscribe(mw.createOperatorSubscriber(n,(function(e){if(u){var t=yw([e],bw(i));n.next(r?r.apply(void 0,yw([],bw(t))):t)}})))}))};var _w={zipAll:void 0},xw=fp,jw=pd;_w.zipAll=function(e){return jw.joinAllInternals(xw.zip,e)};var Ew={},Pw={},Aw=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Tw=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Pw.zip=void 0;var Iw=fp,kw=wi;Pw.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return kw.operate((function(t,r){Iw.zip.apply(void 0,Tw([t],Aw(e))).subscribe(r)}))};var Cw=o&&o.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Fw=o&&o.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Ew.zipWith=void 0;var Mw=Pw;Ew.zipWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Mw.zip.apply(void 0,Fw([],Cw(e)))},function(e){var t=o&&o.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=o&&o.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};e.interval=e.iif=e.generate=e.fromEventPattern=e.fromEvent=e.from=e.forkJoin=e.empty=e.defer=e.connectable=e.concat=e.combineLatest=e.bindNodeCallback=e.bindCallback=e.UnsubscriptionError=e.TimeoutError=e.SequenceError=e.ObjectUnsubscribedError=e.NotFoundError=e.EmptyError=e.ArgumentOutOfRangeError=e.firstValueFrom=e.lastValueFrom=e.isObservable=e.identity=e.noop=e.pipe=e.NotificationKind=e.Notification=e.Subscriber=e.Subscription=e.Scheduler=e.VirtualAction=e.VirtualTimeScheduler=e.animationFrameScheduler=e.animationFrame=e.queueScheduler=e.queue=e.asyncScheduler=e.async=e.asapScheduler=e.asap=e.AsyncSubject=e.ReplaySubject=e.BehaviorSubject=e.Subject=e.animationFrames=e.observable=e.ConnectableObservable=e.Observable=void 0,e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.combineLatestWith=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=e.config=e.NEVER=e.EMPTY=e.scheduled=e.zip=e.using=e.timer=e.throwError=e.range=e.race=e.partition=e.pairs=e.onErrorResumeNext=e.of=e.never=e.merge=void 0,e.switchMapTo=e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.pairwise=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=e.mergeAll=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=void 0,e.zipWith=e.zipAll=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=void 0;var n=ko;Object.defineProperty(e,"Observable",{enumerable:!0,get:function(){return n.Observable}});var i=mi;Object.defineProperty(e,"ConnectableObservable",{enumerable:!0,get:function(){return i.ConnectableObservable}});var a=oi;Object.defineProperty(e,"observable",{enumerable:!0,get:function(){return a.observable}});var u=Ni;Object.defineProperty(e,"animationFrames",{enumerable:!0,get:function(){return u.animationFrames}});var c=Vi;Object.defineProperty(e,"Subject",{enumerable:!0,get:function(){return c.Subject}});var s=na;Object.defineProperty(e,"BehaviorSubject",{enumerable:!0,get:function(){return s.BehaviorSubject}});var l=aa;Object.defineProperty(e,"ReplaySubject",{enumerable:!0,get:function(){return l.ReplaySubject}});var f=fa;Object.defineProperty(e,"AsyncSubject",{enumerable:!0,get:function(){return f.AsyncSubject}});var p=va;Object.defineProperty(e,"asap",{enumerable:!0,get:function(){return p.asap}}),Object.defineProperty(e,"asapScheduler",{enumerable:!0,get:function(){return p.asapScheduler}});var d=$a;Object.defineProperty(e,"async",{enumerable:!0,get:function(){return d.async}}),Object.defineProperty(e,"asyncScheduler",{enumerable:!0,get:function(){return d.asyncScheduler}});var v=Va;Object.defineProperty(e,"queue",{enumerable:!0,get:function(){return v.queue}}),Object.defineProperty(e,"queueScheduler",{enumerable:!0,get:function(){return v.queueScheduler}});var b=Xa;Object.defineProperty(e,"animationFrame",{enumerable:!0,get:function(){return b.animationFrame}}),Object.defineProperty(e,"animationFrameScheduler",{enumerable:!0,get:function(){return b.animationFrameScheduler}});var y=au;Object.defineProperty(e,"VirtualTimeScheduler",{enumerable:!0,get:function(){return y.VirtualTimeScheduler}}),Object.defineProperty(e,"VirtualAction",{enumerable:!0,get:function(){return y.VirtualAction}});var h=Na;Object.defineProperty(e,"Scheduler",{enumerable:!0,get:function(){return h.Scheduler}});var m=Mo;Object.defineProperty(e,"Subscription",{enumerable:!0,get:function(){return m.Subscription}});var g=Co;Object.defineProperty(e,"Subscriber",{enumerable:!0,get:function(){return g.Subscriber}});var w=pu;Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return w.Notification}}),Object.defineProperty(e,"NotificationKind",{enumerable:!0,get:function(){return w.NotificationKind}});var O=ii;Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return O.pipe}});var S=Xo;Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return S.noop}});var _=ai;Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return _.identity}});var x=os;Object.defineProperty(e,"isObservable",{enumerable:!0,get:function(){return x.isObservable}});var j=us;Object.defineProperty(e,"lastValueFrom",{enumerable:!0,get:function(){return j.lastValueFrom}});var E=fs;Object.defineProperty(e,"firstValueFrom",{enumerable:!0,get:function(){return E.firstValueFrom}});var P=vs;Object.defineProperty(e,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return P.ArgumentOutOfRangeError}});var A=cs;Object.defineProperty(e,"EmptyError",{enumerable:!0,get:function(){return A.EmptyError}});var T=ys;Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return T.NotFoundError}});var I=Yi;Object.defineProperty(e,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return I.ObjectUnsubscribedError}});var k=ms;Object.defineProperty(e,"SequenceError",{enumerable:!0,get:function(){return k.SequenceError}});var C=ws;Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return C.TimeoutError}});var F=Ro;Object.defineProperty(e,"UnsubscriptionError",{enumerable:!0,get:function(){return F.UnsubscriptionError}});var M=Ss;Object.defineProperty(e,"bindCallback",{enumerable:!0,get:function(){return M.bindCallback}});var R=Ws;Object.defineProperty(e,"bindNodeCallback",{enumerable:!0,get:function(){return R.bindNodeCallback}});var N=Ds;Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return N.combineLatest}});var B=ul;Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return B.concat}});var L=El;Object.defineProperty(e,"connectable",{enumerable:!0,get:function(){return L.connectable}});var z=Pl;Object.defineProperty(e,"defer",{enumerable:!0,get:function(){return z.defer}});var U=du;Object.defineProperty(e,"empty",{enumerable:!0,get:function(){return U.empty}});var W=Ml;Object.defineProperty(e,"forkJoin",{enumerable:!0,get:function(){return W.forkJoin}});var q=Ou;Object.defineProperty(e,"from",{enumerable:!0,get:function(){return q.from}});var D=ql;Object.defineProperty(e,"fromEvent",{enumerable:!0,get:function(){return D.fromEvent}});var $=ef;Object.defineProperty(e,"fromEventPattern",{enumerable:!0,get:function(){return $.fromEventPattern}});var V=of;Object.defineProperty(e,"generate",{enumerable:!0,get:function(){return V.generate}});var Y=ff;Object.defineProperty(e,"iif",{enumerable:!0,get:function(){return Y.iif}});var H=df;Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return H.interval}});var J=Of;Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return J.merge}});var K=Pf;Object.defineProperty(e,"never",{enumerable:!0,get:function(){return K.never}});var G=vu;Object.defineProperty(e,"of",{enumerable:!0,get:function(){return G.of}});var Q=Af;Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return Q.onErrorResumeNext}});var X=qf;Object.defineProperty(e,"pairs",{enumerable:!0,get:function(){return X.pairs}});var Z=$f;Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return Z.partition}});var ee=Xf;Object.defineProperty(e,"race",{enumerable:!0,get:function(){return ee.race}});var te=op;Object.defineProperty(e,"range",{enumerable:!0,get:function(){return te.range}});var re=ts;Object.defineProperty(e,"throwError",{enumerable:!0,get:function(){return re.throwError}});var ne=vf;Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return ne.timer}});var oe=up;Object.defineProperty(e,"using",{enumerable:!0,get:function(){return oe.using}});var ie=fp;Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return ie.zip}});var ae=Su;Object.defineProperty(e,"scheduled",{enumerable:!0,get:function(){return ae.scheduled}});var ue=du;Object.defineProperty(e,"EMPTY",{enumerable:!0,get:function(){return ue.EMPTY}});var ce=Pf;Object.defineProperty(e,"NEVER",{enumerable:!0,get:function(){return ce.NEVER}}),r(wp,e);var se=Ho;Object.defineProperty(e,"config",{enumerable:!0,get:function(){return se.config}});var le=Op;Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return le.audit}});var fe=jp;Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return fe.auditTime}});var pe=Tp;Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return pe.buffer}});var de=Fp;Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return de.bufferCount}});var ve=Lp;Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return ve.bufferTime}});var be=Hp;Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return be.bufferToggle}});var ye=td;Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return ye.bufferWhen}});var he=ad;Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return he.catchError}});var me=ld;Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return me.combineAll}});var ge=fd;Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return ge.combineLatestAll}});var we=Id;Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return we.combineLatestWith}});var Oe=cl;Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return Oe.concatAll}});var Se=Dd;Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return Se.concatMap}});var _e=Yd;Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return _e.concatMapTo}});var xe=Kd;Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return xe.concatWith}});var je=av;Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return je.connect}});var Ee=vv;Object.defineProperty(e,"count",{enumerable:!0,get:function(){return Ee.count}});var Pe=yv;Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return Pe.debounce}});var Ae=Ov;Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return Ae.debounceTime}});var Te=jv;Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return Te.defaultIfEmpty}});var Ie=Av;Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return Ie.delay}});var ke=Tv;Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return ke.delayWhen}});var Ce=Jv;Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return Ce.dematerialize}});var Fe=Xv;Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return Fe.distinct}});var Me=rb;Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return Me.distinctUntilChanged}});var Re=ub;Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Re.distinctUntilKeyChanged}});var Ne=sb;Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return Ne.elementAt}});var Be=wb;Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return Be.endWith}});var Le=jb;Object.defineProperty(e,"every",{enumerable:!0,get:function(){return Le.every}});var ze=Ab;Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return ze.exhaust}});var Ue=Tb;Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return Ue.exhaustAll}});var We=Mb;Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return We.exhaustMap}});var qe=zb;Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return qe.expand}});var De=Yf;Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return De.filter}});var $e=qb;Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return $e.finalize}});var Ve=$b;Object.defineProperty(e,"find",{enumerable:!0,get:function(){return Ve.find}});var Ye=Jb;Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return Ye.findIndex}});var He=Qb;Object.defineProperty(e,"first",{enumerable:!0,get:function(){return He.first}});var Je=oy;Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return Je.groupBy}});var Ke=Mv;Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return Ke.ignoreElements}});var Ge=ly;Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return Ge.isEmpty}});var Qe=dy;Object.defineProperty(e,"last",{enumerable:!0,get:function(){return Qe.last}});var Xe=js;Object.defineProperty(e,"map",{enumerable:!0,get:function(){return Xe.map}});var Ze=Lv;Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return Ze.mapTo}});var et=jy;Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return et.materialize}});var tt=Ty;Object.defineProperty(e,"max",{enumerable:!0,get:function(){return tt.max}});var rt=sl;Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return rt.mergeAll}});var nt=Cy;Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return nt.flatMap}});var ot=ll;Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return ot.mergeMap}});var it=My;Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return it.mergeMapTo}});var at=By;Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return at.mergeScan}});var ut=Uy;Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return ut.mergeWith}});var ct=Xy;Object.defineProperty(e,"min",{enumerable:!0,get:function(){return ct.min}});var st=th;Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return st.multicast}});var lt=fc;Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return lt.observeOn}});var ft=ih;Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return ft.pairwise}});var pt=ch;Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return pt.pluck}});var dt=lh;Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return dt.publish}});var vt=vh;Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return vt.publishBehavior}});var bt=hh;Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return bt.publishLast}});var yt=wh;Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return yt.publishReplay}});var ht=xh;Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return ht.raceWith}});var mt=vd;Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return mt.reduce}});var gt=Ih;Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return gt.repeat}});var wt=Nh;Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return wt.repeatWhen}});var Ot=Uh;Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return Ot.retry}});var St=Yh;Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return St.retryWhen}});var _t=gi;Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return _t.refCount}});var xt=Gh;Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return xt.sample}});var jt=em;Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return jt.sampleTime}});var Et=om;Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return Et.scan}});var Pt=um;Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return Pt.sequenceEqual}});var At=lm;Object.defineProperty(e,"share",{enumerable:!0,get:function(){return At.share}});var Tt=gm;Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return Tt.shareReplay}});var It=Sm;Object.defineProperty(e,"single",{enumerable:!0,get:function(){return It.single}});var kt=Am;Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return kt.skip}});var Ct=Im;Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return Ct.skipLast}});var Ft=Mm;Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return Ft.skipUntil}});var Mt=zm;Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return Mt.skipWhile}});var Rt=qm;Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return Rt.startWith}});var Nt=yc;Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return Nt.subscribeOn}});var Bt=Ym;Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return Bt.switchAll}});var Lt=Hm;Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return Lt.switchMap}});var zt=Zm;Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return zt.switchMapTo}});var Ut=rg;Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return Ut.switchScan}});var Wt=Iv;Object.defineProperty(e,"take",{enumerable:!0,get:function(){return Wt.take}});var qt=vy;Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return qt.takeLast}});var Dt=ig;Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return Dt.takeUntil}});var $t=lg;Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return $t.takeWhile}});var Vt=dg;Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return Vt.tap}});var Yt=mg;Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return Yt.throttle}});var Ht=gg;Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return Ht.throttleTime}});var Jt=lb;Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return Jt.throwIfEmpty}});var Kt=_g;Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return Kt.timeInterval}});var Gt=ws;Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return Gt.timeout}});var Qt=Ag;Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return Qt.timeoutWith}});var Xt=Cg;Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return Xt.timestamp}});var Zt=dd;Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return Zt.toArray}});var er=Rg;Object.defineProperty(e,"window",{enumerable:!0,get:function(){return er.window}});var tr=Ug;Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return tr.windowCount}});var rr=Vg;Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return rr.windowTime}});var nr=ew;Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return nr.windowToggle}});var or=sw;Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return or.windowWhen}});var ir=vw;Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return ir.withLatestFrom}});var ar=_w;Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return ar.zipAll}});var ur=Ew;Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return ur.zipWith}})}(Io),function(e){e.BadEventError=e.ObservableFiniteStateMachine=void 0;const t=Eo,r=Io,n=d;class o extends t.FiniteStateMachine{constructor(){super(...arguments),this.stateChanges=new r.Subject}observeStateChanges(){return this.stateChanges}send(e){const t=this.state;super.send(e);const r=this.state;this.stateChanges.next({event:e,oldState:t,newState:r}),(0,n.isEmptyObject)(this.schema[r])&&this.stateChanges.complete()}}e.ObservableFiniteStateMachine=o;var i=Eo;Object.defineProperty(e,"BadEventError",{enumerable:!0,get:function(){return i.BadEventError}})}(To),function(e){var t=o&&o.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=o&&o.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Nn,e),r(Bn,e),r(Ln,e),r(Un,e),r(qn,e),r($n,e),r(Yn,e),r(Gn,e),r(ho,e),r(So,e),r(Eo,e),r(To,e)}(Rn),e.ObservableFiniteStateMachine=Rn.ObservableFiniteStateMachine,e.useFiniteStateMachine=function(e,t){const r=Mn(),n=i.exports.useMemo((()=>new Rn.ObservableFiniteStateMachine(e,t)),[e]);return i.exports.useEffect((()=>{const e=n.observeStateChanges().subscribe((()=>r()));return()=>e.unsubscribe()}),[n]),n},e.useForceUpdate=Mn,e.useIncrement=function(e){const[t,r]=i.exports.useState(e);return[t,i.exports.useCallback(((e=1)=>{r((t=>t+e))}),[]),i.exports.useCallback((()=>{r(e)}),[])]},e.useIsMounted=function(){const e=i.exports.useRef(!1);return p((()=>(e.current=!0,()=>{e.current=!1}))),()=>e.current},e.useMount=p,e.useResizeObserver=function(e,t){const r=t.map((e=>e.current));i.exports.useEffect((()=>{const r=new ResizeObserver(e);return t.map((e=>e.current)).filter(d.isntNull).forEach((e=>r.observe(e))),()=>r.disconnect()}),r)},e.useSingleSelection=function(e,t){Fn.assert(e.length>0,"The parameter values must be a non-empty array"),d.isntUndefined(t)&&Fn.assert(t>=0&&t<e.length,"The parameter defaultIndex must be in the range of 0 to values.length");const[r,n]=i.exports.useState(t);return{value:d.isUndefined(r)?void 0:e[r],options:e.map(((e,t)=>({value:e,index:t,selected:t===r,select:()=>n(t)})))}},e.useStateCycle=function(e,t=0){const[r,n]=i.exports.useState(t);return[e[r],()=>n((t=>t+1<e.length?t+1:0))]},e.useStep=function(e,t=0){const[r,n]=i.exports.useState(t);return[e[r],()=>{n((t=>t===e.length-1?t:t+1))},()=>{n((e=>0===e?e:e-1))}]},e.useToggle=function(e=!1){const[t,r]=i.exports.useState(e);return[t,()=>r((e=>!e))]},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
32
18
|
//# sourceMappingURL=index.umd.min.js.map
|