|
`):"",this.name="UnsubscriptionError",this.errors=r}});function Re(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Oe=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var c=me(a),s=c.next();!s.done;s=c.next()){var u=s.value;u.remove(this)}}catch(b){t={error:b}}finally{try{s&&!s.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else a.remove(this);var f=this.initialTeardown;if(O(f))try{f()}catch(b){i=b instanceof Pt?b.errors:[b]}var l=this._teardowns;if(l){this._teardowns=null;try{for(var p=me(l),d=p.next();!d.done;d=p.next()){var h=d.value;try{An(h)}catch(b){i=i!=null?i:[],b instanceof Pt?i=W(W([],P(i)),P(b.errors)):i.push(b)}}}catch(b){n={error:b}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}if(i)throw new Pt(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)An(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=(r=this._teardowns)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Re(r,t)},e.prototype.remove=function(t){var r=this._teardowns;r&&Re(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var xr=Oe.EMPTY;function It(e){return e instanceof Oe||e&&"closed"in e&&O(e.remove)&&O(e.add)&&O(e.unsubscribe)}function An(e){O(e)?e():e.unsubscribe()}var xe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Xe={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Xe.delegate;return((r==null?void 0:r.setTimeout)||setTimeout).apply(void 0,W([],P(e)))},clearTimeout:function(e){var t=Xe.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function $t(e){Xe.setTimeout(function(){var t=xe.onUnhandledError;if(t)t(e);else throw e})}function oe(){}var Cn=function(){return wr("C",void 0,void 0)}();function kn(e){return wr("E",void 0,e)}function Rn(e){return wr("N",e,void 0)}function wr(e,t,r){return{kind:e,value:t,error:r}}var Ne=null;function Ze(e){if(xe.useDeprecatedSynchronousErrorHandling){var t=!Ne;if(t&&(Ne={errorThrown:!1,error:null}),e(),t){var r=Ne,n=r.errorThrown,o=r.error;if(Ne=null,n)throw o}}else e()}function Hn(e){xe.useDeprecatedSynchronousErrorHandling&&Ne&&(Ne.errorThrown=!0,Ne.error=e)}var bt=function(e){Z(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,It(r)&&r.add(n)):n.destination=Gi,n}return t.create=function(r,n,o){return new et(r,n,o)},t.prototype.next=function(r){this.isStopped?Er(Rn(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Er(kn(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Er(Cn,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(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Oe);var et=function(e){Z(t,e);function t(r,n,o){var i=e.call(this)||this,a;if(O(r))a=r;else if(r){a=r.next,n=r.error,o=r.complete;var c;i&&xe.useDeprecatedNextContext?(c=Object.create(r),c.unsubscribe=function(){return i.unsubscribe()}):c=r,a=a==null?void 0:a.bind(c),n=n==null?void 0:n.bind(c),o=o==null?void 0:o.bind(c)}return i.destination={next:a?Sr(a,i):oe,error:Sr(n!=null?n:Pn,i),complete:o?Sr(o,i):oe},i}return t}(bt);function Sr(e,t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{e.apply(void 0,W([],P(r)))}catch(o){xe.useDeprecatedSynchronousErrorHandling?Hn(o):$t(o)}}}function Pn(e){throw e}function Er(e,t){var r=xe.onStoppedNotification;r&&Xe.setTimeout(function(){return r(e,t)})}var Gi={closed:!0,next:oe,error:Pn,complete:oe};var tt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function de(e){return e}function In(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Or(e)}function Or(e){return e.length===0?de:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var j=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=this,i=Xi(t)?t:new et(t,r,n);return Ze(function(){var a=o,c=a.operator,s=a.source;i.add(c?c.call(i,s):s?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=$n(r),new r(function(o,i){var a=new et({next:function(c){try{t(c)}catch(s){i(s),a.unsubscribe()}},error:i,complete:o});n.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[tt]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Or(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=$n(t),new t(function(n,o){var i;r.subscribe(function(a){return i=a},function(a){return o(a)},function(){return n(i)})})},e.create=function(t){return new e(t)},e}();function $n(e){var t;return(t=e!=null?e:xe.Promise)!==null&&t!==void 0?t:Promise}function Ji(e){return e&&O(e.next)&&O(e.error)&&O(e.complete)}function Xi(e){return e&&e instanceof bt||Ji(e)&&It(e)}function Zi(e){return O(e==null?void 0:e.lift)}function g(e){return function(t){if(Zi(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}var y=function(e){Z(t,e);function t(r,n,o,i,a){var c=e.call(this,r)||this;return c.onFinalize=a,c._next=n?function(s){try{n(s)}catch(u){r.error(u)}}:e.prototype._next,c._error=i?function(s){try{i(s)}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=o?function(){try{o()}catch(s){r.error(s)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var r,n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))},t}(bt);var rt={schedule:function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,n=rt.delegate;n&&(t=n.requestAnimationFrame,r=n.cancelAnimationFrame);var o=t(function(i){r=void 0,e(i)});return new Oe(function(){return r==null?void 0:r(o)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rt.delegate;return((r==null?void 0:r.requestAnimationFrame)||requestAnimationFrame).apply(void 0,W([],P(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rt.delegate;return((r==null?void 0:r.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,W([],P(e)))},delegate:void 0};var Fn=Ht(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var S=function(e){Z(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new jn(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Fn},t.prototype.next=function(r){var n=this;Ze(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){var a=n.observers.slice();try{for(var c=me(a),s=c.next();!s.done;s=c.next()){var u=s.value;u.next(r)}}catch(f){o={error:f}}finally{try{s&&!s.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;Ze(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;Ze(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=n.hasError,i=n.isStopped,a=n.observers;return o||i?xr:(a.push(r),new Oe(function(){return Re(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new j;return r.source=this,r},t.create=function(r,n){return new jn(r,n)},t}(j);var jn=function(e){Z(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:xr},t}(S);var vt={now:function(){return(vt.delegate||Date).now()},delegate:void 0};var gt=function(e){Z(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=vt);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,c=n._timestampProvider,s=n._windowTime;o||(i.push(r),!a&&i.push(c.now()+s)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,a=o._buffer,c=a.slice(),s=0;s<c.length&&!r.closed;s+=i?1:2)r.next(c[s]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,o=r._timestampProvider,i=r._buffer,a=r._infiniteTimeWindow,c=(a?1:2)*n;if(n<1/0&&c<i.length&&i.splice(0,i.length-c),!a){for(var s=o.now(),u=0,f=1;f<i.length&&i[f]<=s;f+=2)u=f;u&&i.splice(0,u+1)}},t}(S);var Un=function(e){Z(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},t}(Oe);var yt={setInterval:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=yt.delegate;return((r==null?void 0:r.setInterval)||setInterval).apply(void 0,W([],P(e)))},clearInterval:function(e){var t=yt.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var Ft=function(e){Z(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return t.prototype.schedule=function(r,n){if(n===void 0&&(n=0),this.closed)return this;this.state=r;var o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(i,this.id,n),this},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),yt.setInterval(r.flush.bind(r,this),o)},t.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;yt.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var o=!1,i;try{this.work(r)}catch(a){o=!0,i=a||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,o=r.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Re(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Un);var Tr=function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=vt.now,e}();var jt=function(e){Z(t,e);function t(r,n){n===void 0&&(n=Tr.now);var o=e.call(this,r,n)||this;return o.actions=[],o._active=!1,o._scheduled=void 0,o}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},t}(Tr);var Te=new jt(Ft),xt=Te;var Wn=function(e){Z(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=rt.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);r.actions.some(function(i){return i.id===n})||(rt.cancelAnimationFrame(n),r._scheduled=void 0)},t}(Ft);var Dn=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t}(jt);var we=new Dn(Wn);var N=new j(function(e){return e.complete()});function Ut(e){return e&&O(e.schedule)}function _r(e){return e[e.length-1]}function Ie(e){return O(_r(e))?e.pop():void 0}function ve(e){return Ut(_r(e))?e.pop():void 0}function Wt(e,t){return typeof _r(e)=="number"?e.pop():t}var nt=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Dt(e){return O(e==null?void 0:e.then)}function Vt(e){return O(e[tt])}function zt(e){return Symbol.asyncIterator&&O(e==null?void 0:e[Symbol.asyncIterator])}function Nt(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function ea(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var qt=ea();function Qt(e){return O(e==null?void 0:e[qt])}function Kt(e){return Mn(this,arguments,function(){var r,n,o,i;return kt(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,Rt(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,Rt(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,Rt(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function Yt(e){return O(e==null?void 0:e.getReader)}function D(e){if(e instanceof j)return e;if(e!=null){if(Vt(e))return ta(e);if(nt(e))return ra(e);if(Dt(e))return na(e);if(zt(e))return Vn(e);if(Qt(e))return oa(e);if(Yt(e))return ia(e)}throw Nt(e)}function ta(e){return new j(function(t){var r=e[tt]();if(O(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ra(e){return new j(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function na(e){return new j(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,$t)})}function oa(e){return new j(function(t){var r,n;try{for(var o=me(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(t.next(a),t.closed)return}}catch(c){r={error:c}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.complete()})}function Vn(e){return new j(function(t){aa(e,t).catch(function(r){return t.error(r)})})}function ia(e){return Vn(Kt(e))}function aa(e,t){var r,n,o,i;return _n(this,void 0,void 0,function(){var a,c;return kt(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),r=Ln(e),s.label=1;case 1:return[4,r.next()];case 2:if(n=s.sent(),!!n.done)return[3,4];if(a=n.value,t.next(a),t.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=s.sent(),o={error:c},[3,11];case 6:return s.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:s.sent(),s.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]}})})}function pe(e,t,r,n,o){n===void 0&&(n=0),o===void 0&&(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}function qe(e,t){return t===void 0&&(t=0),g(function(r,n){r.subscribe(new y(n,function(o){return pe(n,e,function(){return n.next(o)},t)},function(){return pe(n,e,function(){return n.complete()},t)},function(o){return pe(n,e,function(){return n.error(o)},t)}))})}function Bt(e,t){return t===void 0&&(t=0),g(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function zn(e,t){return D(e).pipe(Bt(t),qe(t))}function Nn(e,t){return D(e).pipe(Bt(t),qe(t))}function qn(e,t){return new j(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function Qn(e,t){return new j(function(r){var n;return pe(r,t,function(){n=e[qt](),pe(r,t,function(){var o,i,a;try{o=n.next(),i=o.value,a=o.done}catch(c){r.error(c);return}a?r.complete():r.next(i)},0,!0)}),function(){return O(n==null?void 0:n.return)&&n.return()}})}function Gt(e,t){if(!e)throw new Error("Iterable cannot be null");return new j(function(r){pe(r,t,function(){var n=e[Symbol.asyncIterator]();pe(r,t,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function Kn(e,t){return Gt(Kt(e),t)}function Yn(e,t){if(e!=null){if(Vt(e))return zn(e,t);if(nt(e))return qn(e,t);if(Dt(e))return Nn(e,t);if(zt(e))return Gt(e,t);if(Qt(e))return Qn(e,t);if(Yt(e))return Kn(e,t)}throw Nt(e)}function te(e,t){return t?Yn(e,t):D(e)}function k(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ve(e);return te(e,r)}function Bn(e){return e instanceof Date&&!isNaN(e)}function m(e,t){return g(function(r,n){var o=0;r.subscribe(new y(n,function(i){n.next(e.call(t,i,o++))}))})}var sa=Array.isArray;function ca(e,t){return sa(t)?e.apply(void 0,W([],P(t))):e(t)}function $e(e){return m(function(t){return ca(e,t)})}var ua=Array.isArray,fa=Object.getPrototypeOf,pa=Object.prototype,la=Object.keys;function Gn(e){if(e.length===1){var t=e[0];if(ua(t))return{args:t,keys:null};if(ma(t)){var r=la(t);return{args:r.map(function(n){return t[n]}),keys:r}}}return{args:e,keys:null}}function ma(e){return e&&typeof e=="object"&&fa(e)===pa}function Jn(e,t){return e.reduce(function(r,n,o){return r[n]=t[o],r},{})}function q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ve(e),n=Ie(e),o=Gn(e),i=o.args,a=o.keys;if(i.length===0)return te([],r);var c=new j(Mr(i,r,a?function(s){return Jn(a,s)}:de));return n?c.pipe($e(n)):c}function Mr(e,t,r){return r===void 0&&(r=de),function(n){Xn(t,function(){for(var o=e.length,i=new Array(o),a=o,c=o,s=function(f){Xn(t,function(){var l=te(e[f],t),p=!1;l.subscribe(new y(n,function(d){i[f]=d,p||(p=!0,c--),c||n.next(r(i.slice()))},function(){--a||n.complete()}))},n)},u=0;u<o;u++)s(u)},n)}}function Xn(e,t,r){e?pe(r,e,t):t()}function Zn(e,t,r,n,o,i,a,c){var s=[],u=0,f=0,l=!1,p=function(){l&&!s.length&&!u&&t.complete()},d=function(b){return u<n?h(b):s.push(b)},h=function(b){i&&t.next(b),u++;var I=!1;D(r(b,f++)).subscribe(new y(t,function(Y){o==null||o(Y),i?d(Y):t.next(Y)},function(){I=!0},void 0,function(){if(I)try{u--;for(var Y=function(){var H=s.shift();a?pe(t,a,function(){return h(H)}):h(H)};s.length&&u<n;)Y();p()}catch(H){t.error(H)}}))};return e.subscribe(new y(t,d,function(){l=!0,p()})),function(){c==null||c()}}function ie(e,t,r){return r===void 0&&(r=1/0),O(t)?ie(function(n,o){return m(function(i,a){return t(n,i,o,a)})(D(e(n,o)))},r):(typeof t=="number"&&(r=t),g(function(n,o){return Zn(n,o,e,r)}))}function ot(e){return e===void 0&&(e=1/0),ie(de,e)}function eo(){return ot(1)}function Qe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return eo()(te(e,ve(e)))}function U(e){return new j(function(t){D(e()).subscribe(t)})}var da=["addListener","removeListener"],ha=["addEventListener","removeEventListener"],ba=["on","off"];function w(e,t,r,n){if(O(r)&&(n=r,r=void 0),n)return w(e,t,r).pipe($e(n));var o=P(ya(e)?ha.map(function(c){return function(s){return e[c](t,s,r)}}):va(e)?da.map(to(e,t)):ga(e)?ba.map(to(e,t)):[],2),i=o[0],a=o[1];if(!i&&nt(e))return ie(function(c){return w(c,t,r)})(D(e));if(!i)throw new TypeError("Invalid event target");return new j(function(c){var s=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return c.next(1<u.length?u:u[0])};return i(s),function(){return a(s)}})}function to(e,t){return function(r){return function(n){return e[r](t,n)}}}function va(e){return O(e.addListener)&&O(e.removeListener)}function ga(e){return O(e.on)&&O(e.off)}function ya(e){return O(e.addEventListener)&&O(e.removeEventListener)}function Jt(e,t,r){return r?Jt(e,t).pipe($e(r)):new j(function(n){var o=function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];return n.next(a.length===1?a[0]:a)},i=e(o);return O(t)?function(){return t(o,i)}:void 0})}function Fe(e,t,r){e===void 0&&(e=0),r===void 0&&(r=xt);var n=-1;return t!=null&&(Ut(t)?r=t:n=t),new j(function(o){var i=Bn(e)?+e-r.now():e;i<0&&(i=0);var a=0;return r.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function A(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ve(e),n=Wt(e,1/0),o=e;return o.length?o.length===1?D(o[0]):ot(n)(te(o,r)):N}var ge=new j(oe);var xa=Array.isArray;function it(e){return e.length===1&&xa(e[0])?e[0]:e}function M(e,t){return g(function(r,n){var o=0;r.subscribe(new y(n,function(i){return e.call(t,i,o++)&&n.next(i)}))})}function wt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ie(e),n=it(e);return n.length?new j(function(o){var i=n.map(function(){return[]}),a=n.map(function(){return!1});o.add(function(){i=a=null});for(var c=function(u){D(n[u]).subscribe(new y(o,function(f){if(i[u].push(f),i.every(function(p){return p.length})){var l=i.map(function(p){return p.shift()});o.next(r?r.apply(void 0,W([],P(l))):l),i.some(function(p,d){return!p.length&&a[d]})&&o.complete()}},function(){a[u]=!0,!i[u].length&&o.complete()}))},s=0;!o.closed&&s<n.length;s++)c(s);return function(){i=a=null}}):N}function ro(e){return g(function(t,r){var n=!1,o=null,i=null,a=!1,c=function(){if(i==null||i.unsubscribe(),i=null,n){n=!1;var u=o;o=null,r.next(u)}a&&r.complete()},s=function(){i=null,a&&r.complete()};t.subscribe(new y(r,function(u){n=!0,o=u,i||D(e(u)).subscribe(i=new y(r,c,s))},function(){a=!0,(!n||!i||i.closed)&&r.complete()}))})}function He(e,t){return t===void 0&&(t=xt),ro(function(){return Fe(e,t)})}function Se(e,t){return t===void 0&&(t=null),t=t!=null?t:e,g(function(r,n){var o=[],i=0;r.subscribe(new y(n,function(a){var c,s,u,f,l=null;i++%t===0&&o.push([]);try{for(var p=me(o),d=p.next();!d.done;d=p.next()){var h=d.value;h.push(a),e<=h.length&&(l=l!=null?l:[],l.push(h))}}catch(Y){c={error:Y}}finally{try{d&&!d.done&&(s=p.return)&&s.call(p)}finally{if(c)throw c.error}}if(l)try{for(var b=me(l),I=b.next();!I.done;I=b.next()){var h=I.value;Re(o,h),n.next(h)}}catch(Y){u={error:Y}}finally{try{I&&!I.done&&(f=b.return)&&f.call(b)}finally{if(u)throw u.error}}},function(){var a,c;try{for(var s=me(o),u=s.next();!u.done;u=s.next()){var f=u.value;n.next(f)}}catch(l){a={error:l}}finally{try{u&&!u.done&&(c=s.return)&&c.call(s)}finally{if(a)throw a.error}}n.complete()},void 0,function(){o=null}))})}function je(e){return g(function(t,r){var n=null,o=!1,i;n=t.subscribe(new y(r,void 0,void 0,function(a){i=D(e(a,je(e)(t))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function no(e,t,r,n,o){return function(i,a){var c=r,s=t,u=0;i.subscribe(new y(a,function(f){var l=u++;s=c?e(s,f,l):(c=!0,f),n&&a.next(s)},o&&function(){c&&a.next(s),a.complete()}))}}function Lr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ie(e);return r?In(Lr.apply(void 0,W([],P(e))),$e(r)):g(function(n,o){Mr(W([n],P(it(e))))(o)})}function at(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Lr.apply(void 0,W([],P(e)))}function Ar(e,t){return O(t)?ie(e,t,1):ie(e,1)}function Ke(e,t){return t===void 0&&(t=Te),g(function(r,n){var o=null,i=null,a=null,c=function(){if(o){o.unsubscribe(),o=null;var u=i;i=null,n.next(u)}};function s(){var u=a+e,f=t.now();if(f<u){o=this.schedule(void 0,u-f),n.add(o);return}c()}r.subscribe(new y(n,function(u){i=u,a=t.now(),o||(o=t.schedule(s,e),n.add(o))},function(){c(),n.complete()},void 0,function(){i=o=null}))})}function Ye(e){return g(function(t,r){var n=!1;t.subscribe(new y(r,function(o){n=!0,r.next(o)},function(){n||r.next(e),r.complete()}))})}function le(e){return e<=0?function(){return N}:g(function(t,r){var n=0;t.subscribe(new y(r,function(o){++n<=e&&(r.next(o),e<=n&&r.complete())}))})}function oo(){return g(function(e,t){e.subscribe(new y(t,oe))})}function re(e){return m(function(){return e})}function Cr(e,t){return t?function(r){return Qe(t.pipe(le(1),oo()),r.pipe(Cr(e)))}:ie(function(r,n){return e(r,n).pipe(le(1),re(r))})}function Pe(e,t){t===void 0&&(t=Te);var r=Fe(e,t);return Cr(function(){return r})}function Q(e,t){return t===void 0&&(t=de),e=e!=null?e:wa,g(function(r,n){var o,i=!0;r.subscribe(new y(n,function(a){var c=t(a);(i||!e(o,c))&&(i=!1,o=c,n.next(a))}))})}function wa(e,t){return e===t}function B(e,t){return Q(function(r,n){return t?t(r[e],n[e]):r[e]===n[e]})}function Xt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){return Qe(r,k.apply(void 0,W([],P(e))))}}function C(e){return g(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}function ue(e){return e<=0?function(){return N}:g(function(t,r){var n=[];t.subscribe(new y(r,function(o){n.push(o),e<n.length&&n.shift()},function(){var o,i;try{for(var a=me(n),c=a.next();!c.done;c=a.next()){var s=c.value;r.next(s)}}catch(u){o={error:u}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}r.complete()},void 0,function(){n=null}))})}function io(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ve(e),n=Wt(e,1/0);return e=it(e),g(function(o,i){ot(n)(te(W([o],P(e)),r)).subscribe(i)})}function Be(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return io.apply(void 0,W([],P(e)))}function kr(e){var t,r=1/0,n;return e!=null&&(typeof e=="object"?(t=e.count,r=t===void 0?1/0:t,n=e.delay):r=e),r<=0?function(){return N}:g(function(o,i){var a=0,c,s=function(){if(c==null||c.unsubscribe(),c=null,n!=null){var f=typeof n=="number"?Fe(n):D(n(a)),l=new y(i,function(){l.unsubscribe(),u()});f.subscribe(l)}else u()},u=function(){var f=!1;c=o.subscribe(new y(i,void 0,function(){++a<r?c?s():f=!0:i.complete()})),f&&s()};u()})}function st(e){return g(function(t,r){var n=!1,o=null;t.subscribe(new y(r,function(a){n=!0,o=a}));var i=function(){if(n){n=!1;var a=o;o=null,r.next(a)}};e.subscribe(new y(r,i,oe))})}function Rr(e,t){return g(no(e,t,arguments.length>=2,!0))}function fe(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new S}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,a=i===void 0?!0:i,c=e.resetOnRefCountZero,s=c===void 0?!0:c;return function(u){var f=null,l=null,p=null,d=0,h=!1,b=!1,I=function(){l==null||l.unsubscribe(),l=null},Y=function(){I(),f=p=null,h=b=!1},H=function(){var E=f;Y(),E==null||E.unsubscribe()};return g(function(E,Ce){d++,!b&&!h&&I();var ke=p=p!=null?p:r();Ce.add(function(){d--,d===0&&!b&&!h&&(l=Hr(H,s))}),ke.subscribe(Ce),f||(f=new et({next:function(Ge){return ke.next(Ge)},error:function(Ge){b=!0,I(),l=Hr(Y,o,Ge),ke.error(Ge)},complete:function(){h=!0,I(),l=Hr(Y,a),ke.complete()}}),te(E).subscribe(f))})(u)}}function Hr(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return t===!0?(e(),null):t===!1?null:t.apply(void 0,W([],P(r))).pipe(le(1)).subscribe(function(){return e()})}function J(e,t,r){var n,o,i,a=!1;return e&&typeof e=="object"?(i=(n=e.bufferSize)!==null&&n!==void 0?n:1/0,t=(o=e.windowTime)!==null&&o!==void 0?o:1/0,a=!!e.refCount,r=e.scheduler):i=e!=null?e:1/0,fe({connector:function(){return new gt(i,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function ct(e){return M(function(t,r){return e<=r})}function St(e){return g(function(t,r){var n=!1,o=new y(r,function(){o==null||o.unsubscribe(),n=!0},oe);D(e).subscribe(o),t.subscribe(new y(r,function(i){return n&&r.next(i)}))})}function V(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ve(e);return g(function(n,o){(r?Qe(e,n,r):Qe(e,n)).subscribe(o)})}function _(e,t){return g(function(r,n){var o=null,i=0,a=!1,c=function(){return a&&!o&&n.complete()};r.subscribe(new y(n,function(s){o==null||o.unsubscribe();var u=0,f=i++;D(e(s,f)).subscribe(o=new y(n,function(l){return n.next(t?t(s,l,f,u++):l)},function(){o=null,c()}))},function(){a=!0,c()}))})}function Pr(e,t){return O(t)?_(function(){return e},t):_(function(){return e})}function se(e){return g(function(t,r){D(e).subscribe(new y(r,function(){return r.complete()},oe)),!r.closed&&t.subscribe(r)})}function Ir(e,t){return t===void 0&&(t=!1),g(function(r,n){var o=0;r.subscribe(new y(n,function(i){var a=e(i,o++);(a||t)&&n.next(i),!a&&n.complete()}))})}function T(e,t,r){var n=O(e)||t||r?{next:e,error:t,complete:r}:e;return n?g(function(o,i){var a;(a=n.subscribe)===null||a===void 0||a.call(n);var c=!0;o.subscribe(new y(i,function(s){var u;(u=n.next)===null||u===void 0||u.call(n,s),i.next(s)},function(){var s;c=!1,(s=n.complete)===null||s===void 0||s.call(n),i.complete()},function(s){var u;c=!1,(u=n.error)===null||u===void 0||u.call(n,s),i.error(s)},function(){var s,u;c&&((s=n.unsubscribe)===null||s===void 0||s.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):de}var $r={leading:!0,trailing:!1};function Et(e,t){return t===void 0&&(t=$r),g(function(r,n){var o=t.leading,i=t.trailing,a=!1,c=null,s=null,u=!1,f=function(){s==null||s.unsubscribe(),s=null,i&&(d(),u&&n.complete())},l=function(){s=null,u&&n.complete()},p=function(h){return s=D(e(h)).subscribe(new y(n,f,l))},d=function(){if(a){a=!1;var h=c;c=null,n.next(h),!u&&p(h)}};r.subscribe(new y(n,function(h){a=!0,c=h,!(s&&!s.closed)&&(o?d():p(h))},function(){u=!0,!(i&&a&&s&&!s.closed)&&n.complete()}))})}function Fr(e,t,r){t===void 0&&(t=Te),r===void 0&&(r=$r);var n=Fe(e,t);return Et(function(){return n},r)}function Ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ie(e);return g(function(n,o){for(var i=e.length,a=new Array(i),c=e.map(function(){return!1}),s=!1,u=function(l){D(e[l]).subscribe(new y(o,function(p){a[l]=p,!s&&!c[l]&&(c[l]=!0,(s=c.every(de))&&(c=null))},oe))},f=0;f<i;f++)u(f);n.subscribe(new y(o,function(l){if(s){var p=W([l],P(a));o.next(r?r.apply(void 0,W([],P(p))):p)}}))})}function ao(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return g(function(r,n){wt.apply(void 0,W([r],P(e))).subscribe(n)})}function jr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ao.apply(void 0,W([],P(e)))}function so(){let e=new gt(1);return w(document,"DOMContentLoaded",{once:!0}).subscribe(()=>e.next(document)),e}function G(e,t=document){return Array.from(t.querySelectorAll(e))}function K(e,t=document){let r=ce(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function ce(e,t=document){return t.querySelector(e)||void 0}function Ue(){return document.activeElement instanceof HTMLElement&&document.activeElement||void 0}function Zt(e){return A(w(document.body,"focusin"),w(document.body,"focusout")).pipe(Ke(1),m(()=>{let t=Ue();return typeof t!="undefined"?e.contains(t):!1}),V(e===Ue()),Q())}function We(e){return{x:e.offsetLeft,y:e.offsetTop}}function co(e){return A(w(window,"load"),w(window,"resize")).pipe(He(0,we),m(()=>We(e)),V(We(e)))}function uo(e){return{x:e.scrollLeft,y:e.scrollTop}}function er(e){return A(w(e,"scroll"),w(window,"resize")).pipe(He(0,we),m(()=>uo(e)),V(uo(e)))}var fo=function(){if(typeof Map!="undefined")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];r.call(n,a[1],a[0])}},t}()}(),Ur=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,tr=function(){return typeof global!="undefined"&&global.Math===Math?global:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),Sa=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(tr):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Ea=2;function Oa(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&c()}function a(){Sa(i)}function c(){var s=Date.now();if(r){if(s-o<Ea)return;n=!0}else r=!0,n=!1,setTimeout(a,t);o=s}return c}var Ta=20,_a=["top","right","bottom","left","width","height","size","weight"],Ma=typeof MutationObserver!="undefined",La=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Oa(this.refresh.bind(this),Ta)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Ur||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ma?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Ur||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=_a.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),po=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},ut=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||tr},lo=nr(0,0,0,0);function rr(e){return parseFloat(e)||0}function mo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,o){var i=e["border-"+o+"-width"];return n+rr(i)},0)}function Aa(e){for(var t=["top","right","bottom","left"],r={},n=0,o=t;n<o.length;n++){var i=o[n],a=e["padding-"+i];r[i]=rr(a)}return r}function Ca(e){var t=e.getBBox();return nr(0,0,t.width,t.height)}function ka(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return lo;var n=ut(e).getComputedStyle(e),o=Aa(n),i=o.left+o.right,a=o.top+o.bottom,c=rr(n.width),s=rr(n.height);if(n.boxSizing==="border-box"&&(Math.round(c+i)!==t&&(c-=mo(n,"left","right")+i),Math.round(s+a)!==r&&(s-=mo(n,"top","bottom")+a)),!Ha(e)){var u=Math.round(c+i)-t,f=Math.round(s+a)-r;Math.abs(u)!==1&&(c-=u),Math.abs(f)!==1&&(s-=f)}return nr(o.left,o.top,c,s)}var Ra=function(){return typeof SVGGraphicsElement!="undefined"?function(e){return e instanceof ut(e).SVGGraphicsElement}:function(e){return e instanceof ut(e).SVGElement&&typeof e.getBBox=="function"}}();function Ha(e){return e===ut(e).document.documentElement}function Pa(e){return Ur?Ra(e)?Ca(e):ka(e):lo}function Ia(e){var t=e.x,r=e.y,n=e.width,o=e.height,i=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return po(a,{x:t,y:r,width:n,height:o,top:r,right:t+n,bottom:o+r,left:t}),a}function nr(e,t,r,n){return{x:e,y:t,width:r,height:n}}var $a=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=nr(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Pa(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Fa=function(){function e(t,r){var n=Ia(r);po(this,{target:t,contentRect:n})}return e}(),ja=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new fo,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof ut(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new $a(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof ut(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;!r.has(t)||(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(!!this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new Fa(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ho=typeof WeakMap!="undefined"?new WeakMap:new fo,bo=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=La.getInstance(),n=new ja(t,r,this);ho.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){bo.prototype[e]=function(){var t;return(t=ho.get(this))[e].apply(t,arguments)}});var Ua=function(){return typeof tr.ResizeObserver!="undefined"?tr.ResizeObserver:bo}(),vo=Ua;var go=new S,Wa=U(()=>k(new vo(e=>{for(let t of e)go.next(t)}))).pipe(_(e=>A(ge,k(e)).pipe(C(()=>e.disconnect()))),J(1));function _e(e){return{width:e.offsetWidth,height:e.offsetHeight}}function he(e){return Wa.pipe(T(t=>t.observe(e)),_(t=>go.pipe(M(({target:r})=>r===e),C(()=>t.unobserve(e)),m(()=>_e(e)))),V(_e(e)))}function or(e){return{width:e.scrollWidth,height:e.scrollHeight}}var Da=new S,rv=U(()=>k(new IntersectionObserver(e=>{for(let t of e)Da.next(t)},{threshold:1}))).pipe(_(e=>A(ge,k(e)).pipe(C(()=>e.disconnect()))),J(1));function yo(e,t=16){return er(e).pipe(m(({y:r})=>{let n=_e(e),o=or(e);return r>=o.height-n.height-t}),Q())}var ir={drawer:K("[data-md-toggle=drawer]"),search:K("[data-md-toggle=search]")};function xo(e){return ir[e].checked}function De(e,t){ir[e].checked!==t&&ir[e].click()}function ar(e){let t=ir[e];return w(t,"change").pipe(m(()=>t.checked),V(t.checked))}function Va(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function wo(){return w(window,"keydown").pipe(M(e=>!(e.metaKey||e.ctrlKey)),m(e=>({mode:xo("search")?"search":"global",type:e.key,claim(){e.preventDefault(),e.stopPropagation()}})),M(({mode:e,type:t})=>{if(e==="global"){let r=Ue();if(typeof r!="undefined")return!Va(r,t)}return!0}),fe())}function Me(){return new URL(location.href)}function So(e){location.href=e.href}function Eo(){return new S}function Oo(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)Oo(e,r)}function R(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="boolean"?n.setAttribute(o,t[o]):t[o]&&n.setAttribute(o,"");for(let o of r)Oo(n,o);return n}function To(e,t){let r=t;if(e.length>r){for(;e[r]!==" "&&--r>0;);return`${e.substring(0,r)}...`}return e}function sr(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function _o(){return location.hash.substring(1)}function Mo(e){let t=R("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function za(){return w(window,"hashchange").pipe(m(_o),V(_o()),M(e=>e.length>0),J(1))}function Lo(){return za().pipe(m(e=>ce(`[id="${e}"]`)),M(e=>typeof e!="undefined"))}function Wr(e){let t=matchMedia(e);return Jt(r=>t.addListener(()=>r(t.matches))).pipe(V(t.matches))}function Ao(){let e=matchMedia("print");return A(w(window,"beforeprint").pipe(re(!0)),w(window,"afterprint").pipe(re(!1))).pipe(V(e.matches))}function Dr(e,t){return e.pipe(_(r=>r?t():N))}function cr(e,t={credentials:"same-origin"}){return te(fetch(`${e}`,t)).pipe(M(r=>r.status===200),je(()=>N))}function Le(e,t){return cr(e,t).pipe(_(r=>r.json()),J(1))}function Co(e,t){let r=new DOMParser;return cr(e,t).pipe(_(n=>n.text()),m(n=>r.parseFromString(n,"text/xml")),J(1))}function ko(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function Ro(){return A(w(window,"scroll",{passive:!0}),w(window,"resize",{passive:!0})).pipe(m(ko),V(ko()))}function Ho(){return{width:innerWidth,height:innerHeight}}function Po(){return w(window,"resize",{passive:!0}).pipe(m(Ho),V(Ho()))}function Io(){return q([Ro(),Po()]).pipe(m(([e,t])=>({offset:e,size:t})),J(1))}function ur(e,{viewport$:t,header$:r}){let n=t.pipe(B("size")),o=q([n,r]).pipe(m(()=>We(e)));return q([r,t,o]).pipe(m(([{height:i},{offset:a,size:c},{x:s,y:u}])=>({offset:{x:a.x-s,y:a.y-u+i},size:c})))}function $o(e,{tx$:t}){let r=w(e,"message").pipe(m(({data:n})=>n));return t.pipe(Et(()=>r,{leading:!0,trailing:!0}),T(n=>e.postMessage(n)),Pr(r),fe())}var Na=K("#__config"),ft=JSON.parse(Na.textContent);ft.base=`${new URL(ft.base,Me())}`;function be(){return ft}function ae(e){return ft.features.includes(e)}function X(e,t){return typeof t!="undefined"?ft.translations[e].replace("#",t.toString()):ft.translations[e]}function Ae(e,t=document){return K(`[data-md-component=${e}]`,t)}function ne(e,t=document){return G(`[data-md-component=${e}]`,t)}var Qo=ze(zr());function Fo(e){return R("aside",{class:"md-annotation",tabIndex:0},R("div",{class:"md-annotation__inner md-tooltip"},R("div",{class:"md-tooltip__inner md-typeset"})),R("span",{class:"md-annotation__index"},R("span",{"data-md-annotation-id":e})))}function jo(e){return R("button",{class:"md-clipboard md-icon",title:X("clipboard.copy"),"data-clipboard-target":`#${e} > code`})}function Nr(e,t){let r=t&2,n=t&1,o=Object.keys(e.terms).filter(a=>!e.terms[a]).reduce((a,c)=>[...a,R("del",null,c)," "],[]).slice(0,-1),i=new URL(e.location);return ae("search.highlight")&&i.searchParams.set("h",Object.entries(e.terms).filter(([,a])=>a).reduce((a,[c])=>`${a} ${c}`.trim(),"")),R("a",{href:`${i}`,class:"md-search-result__link",tabIndex:-1},R("article",{class:["md-search-result__article",...r?["md-search-result__article--document"]:[]].join(" "),"data-md-score":e.score.toFixed(2)},r>0&&R("div",{class:"md-search-result__icon md-icon"}),R("h1",{class:"md-search-result__title"},e.title),n>0&&e.text.length>0&&R("p",{class:"md-search-result__teaser"},To(e.text,320)),n>0&&o.length>0&&R("p",{class:"md-search-result__terms"},X("search.result.term.missing"),": ",o)))}function Uo(e){let t=e[0].score,r=[...e],n=r.findIndex(u=>!u.location.includes("#")),[o]=r.splice(n,1),i=r.findIndex(u=>u.score<t);i===-1&&(i=r.length);let a=r.slice(0,i),c=r.slice(i),s=[Nr(o,2|+(!n&&i===0)),...a.map(u=>Nr(u,1)),...c.length?[R("details",{class:"md-search-result__more"},R("summary",{tabIndex:-1},c.length>0&&c.length===1?X("search.result.more.one"):X("search.result.more.other",c.length)),c.map(u=>Nr(u,1)))]:[]];return R("li",{class:"md-search-result__item"},s)}function Wo(e){return R("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>R("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?sr(r):r)))}function Do(e){return R("div",{class:"md-typeset__scrollwrap"},R("div",{class:"md-typeset__table"},e))}function qa(e){let t=be(),r=new URL(`../${e.version}/`,t.base);return R("li",{class:"md-version__item"},R("a",{href:r.toString(),class:"md-version__link"},e.title))}function Vo(e,t){return R("div",{class:"md-version"},R("button",{class:"md-version__current","aria-label":X("select.version.title")},t.title),R("ul",{class:"md-version__list"},e.map(qa)))}function Qa(e,t){let r=U(()=>q([co(e),er(t)])).pipe(m(([{x:n,y:o},i])=>{let{width:a}=_e(e);return{x:n-i.x+a/2,y:o-i.y}}));return Zt(e).pipe(_(n=>r.pipe(m(o=>({active:n,offset:o})),le(+!n||1/0))))}function zo(e,t){return U(()=>{let r=new S;r.subscribe({next({offset:i}){e.style.setProperty("--md-tooltip-x",`${i.x}px`),e.style.setProperty("--md-tooltip-y",`${i.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),r.pipe(Fr(500,we),m(()=>t.getBoundingClientRect()),m(({x:i})=>i)).subscribe({next(i){i?e.style.setProperty("--md-tooltip-0",`${-i}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}});let n=K(":scope > :last-child",e),o=w(n,"mousedown",{once:!0});return r.pipe(_(({active:i})=>i?o:N),T(i=>i.preventDefault())).subscribe(()=>e.blur()),Qa(e,t).pipe(T(i=>r.next(i)),C(()=>r.complete()),m(i=>F({ref:e},i)))})}function Ka(e){let t=[];for(let r of G(".c, .c1, .cm",e)){let n,o=r.firstChild;for(;n=/\((\d+)\)/.exec(o.textContent);){let i=o.splitText(n.index);o=i.splitText(n[0].length),t.push(i)}}return t}function No(e,t){t.append(...Array.from(e.childNodes))}function qo(e,t,{print$:r}){let n=new Map;for(let o of Ka(t)){let[,i]=o.textContent.match(/\((\d+)\)/);ce(`li:nth-child(${i})`,e)&&(n.set(+i,Fo(+i)),o.replaceWith(n.get(+i)))}return n.size===0?N:U(()=>{let o=new S;return r.pipe(se(o.pipe(ue(1)))).subscribe(i=>{e.hidden=!i;for(let[a,c]of n){let s=K(".md-typeset",c),u=K(`li:nth-child(${a})`,e);i?No(s,u):No(u,s)}}),A(...[...n].map(([,i])=>zo(i,t))).pipe(C(()=>o.complete()),fe())})}var Ya=0;function Ko(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Ko(t)}}function Yo(e){return he(e).pipe(m(({width:t})=>({scrollable:or(e).width>t})),B("scrollable"))}function Bo(e,t){let{matches:r}=matchMedia("(hover)");return U(()=>{let n=new S;if(n.subscribe(({scrollable:i})=>{i&&r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}),Qo.default.isSupported()){let i=e.closest("pre");i.id=`__code_${++Ya}`,i.insertBefore(jo(i.id),e)}let o=e.closest([":not(td):not(.code) > .highlight",".highlighttable"].join(", "));if(o instanceof HTMLElement){let i=Ko(o);if(typeof i!="undefined"&&(o.classList.contains("annotate")||ae("content.code.annotate"))){let a=qo(i,e,t);return Yo(e).pipe(T(c=>n.next(c)),C(()=>n.complete()),m(c=>F({ref:e},c)),Be(he(o).pipe(se(n.pipe(ue(1))),m(({width:c,height:s})=>c&&s),Q(),_(c=>c?a:N))))}}return Yo(e).pipe(T(i=>n.next(i)),C(()=>n.complete()),m(i=>F({ref:e},i)))})}function Ba(e,{target$:t,print$:r}){let n=!0;return A(t.pipe(m(o=>o.closest("details:not([open])")),M(o=>e===o),re({action:"open",reveal:!0})),r.pipe(M(o=>o||!n),T(()=>n=e.open),m(o=>({action:o?"open":"close"}))))}function Go(e,t){return U(()=>{let r=new S;return r.subscribe(({action:n,reveal:o})=>{n==="open"?e.setAttribute("open",""):e.removeAttribute("open"),o&&e.scrollIntoView()}),Ba(e,t).pipe(T(n=>r.next(n)),C(()=>r.complete()),m(n=>F({ref:e},n)))})}var Jo=R("table");function Xo(e){return e.replaceWith(Jo),Jo.replaceWith(Do(e)),k({ref:e})}function Ga(e){let t=G(":scope > input",e);return A(...t.map(r=>w(r,"change").pipe(re({active:K(`label[for=${r.id}]`)})))).pipe(V({active:K(`label[for=${t[0].id}]`)}))}function Zo(e){let t=K(".tabbed-labels",e);return U(()=>{let r=new S;return q([r,he(e)]).pipe(He(1,we),se(r.pipe(ue(1)))).subscribe({next([{active:n}]){let o=We(n),{width:i}=_e(n);e.style.setProperty("--md-indicator-x",`${o.x}px`),e.style.setProperty("--md-indicator-width",`${i}px`),t.scrollTo({behavior:"smooth",left:o.x})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),Ga(e).pipe(T(n=>r.next(n)),C(()=>r.complete()),m(n=>F({ref:e},n)))})}function ei(e,{target$:t,print$:r}){return A(...G("pre > code",e).map(n=>Bo(n,{print$:r})),...G("table:not([class])",e).map(n=>Xo(n)),...G("details",e).map(n=>Go(n,{target$:t,print$:r})),...G("[data-tabs]",e).map(n=>Zo(n)))}function Ja(e,{alert$:t}){return t.pipe(_(r=>A(k(!0),k(!1).pipe(Pe(2e3))).pipe(m(n=>({message:r,active:n})))))}function ti(e,t){let r=K(".md-typeset",e);return U(()=>{let n=new S;return n.subscribe(({message:o,active:i})=>{r.textContent=o,i?e.setAttribute("data-md-state","open"):e.removeAttribute("data-md-state")}),Ja(e,t).pipe(T(o=>n.next(o)),C(()=>n.complete()),m(o=>F({ref:e},o)))})}function Xa({viewport$:e}){if(!ae("header.autohide"))return k(!1);let t=e.pipe(m(({offset:{y:o}})=>o),Se(2,1),m(([o,i])=>[o<i,i]),B(0)),r=q([e,t]).pipe(M(([{offset:o},[,i]])=>Math.abs(i-o.y)>100),m(([,[o]])=>o),Q()),n=ar("search");return q([e,n]).pipe(m(([{offset:o},i])=>o.y>400&&!i),Q(),_(o=>o?r:k(!1)),V(!1))}function ri(e,t){return U(()=>{let r=getComputedStyle(e);return k(r.position==="sticky"||r.position==="-webkit-sticky")}).pipe(at(he(e),Xa(t)),m(([r,{height:n},o])=>({height:r?n:0,sticky:r,hidden:o})),Q((r,n)=>r.sticky===n.sticky&&r.height===n.height&&r.hidden===n.hidden),J(1))}function ni(e,{header$:t,main$:r}){return U(()=>{let n=new S;return n.pipe(B("active"),at(t)).subscribe(([{active:o},{hidden:i}])=>{o?e.setAttribute("data-md-state",i?"hidden":"shadow"):e.removeAttribute("data-md-state")}),r.subscribe(n),t.pipe(se(n.pipe(ue(1))),m(o=>F({ref:e},o)))})}function Za(e,{viewport$:t,header$:r}){return ur(e,{viewport$:t,header$:r}).pipe(m(({offset:{y:n}})=>{let{height:o}=_e(e);return{active:n>=o}}),B("active"))}function oi(e,t){return U(()=>{let r=new S;r.subscribe(({active:o})=>{o?e.setAttribute("data-md-state","active"):e.removeAttribute("data-md-state")});let n=ce("article h1");return typeof n=="undefined"?N:Za(n,t).pipe(T(o=>r.next(o)),C(()=>r.complete()),m(o=>F({ref:e},o)))})}function ii(e,{viewport$:t,header$:r}){let n=r.pipe(m(({height:i})=>i),Q()),o=n.pipe(_(()=>he(e).pipe(m(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),B("bottom"))));return q([n,o,t]).pipe(m(([i,{top:a,bottom:c},{offset:{y:s},size:{height:u}}])=>(u=Math.max(0,u-Math.max(0,a-s,i)-Math.max(0,u+s-c)),{offset:a-i,height:u,active:a-i<=s})),Q((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function es(e){let t=__md_get("__palette")||{index:e.findIndex(r=>matchMedia(r.getAttribute("data-md-color-media")).matches)};return k(...e).pipe(ie(r=>w(r,"change").pipe(re(r))),V(e[Math.max(0,t.index)]),m(r=>({index:e.indexOf(r),color:{scheme:r.getAttribute("data-md-color-scheme"),primary:r.getAttribute("data-md-color-primary"),accent:r.getAttribute("data-md-color-accent")}})),J(1))}function ai(e){return U(()=>{let t=new S;t.subscribe(n=>{for(let[o,i]of Object.entries(n.color))document.body.setAttribute(`data-md-color-${o}`,i);for(let o=0;o<r.length;o++){let i=r[o].nextElementSibling;i instanceof HTMLElement&&(i.hidden=n.index!==o)}__md_set("__palette",n)});let r=G("input",e);return es(r).pipe(T(n=>t.next(n)),C(()=>t.complete()),m(n=>F({ref:e},n)))})}var qr=ze(zr());function ts(e){e.setAttribute("data-md-copying","");let t=e.innerText;return e.removeAttribute("data-md-copying"),t}function si({alert$:e}){qr.default.isSupported()&&new j(t=>{new qr.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||ts(K(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(T(t=>{t.trigger.focus()}),re(X("clipboard.copied"))).subscribe(e)}function rs(e){if(e.length<2)return e;let[t,r]=e.sort((i,a)=>i.length-a.length).map(i=>i.replace(/[^/]+$/,"")),n=0;if(t===r)n=t.length;else for(;t.charCodeAt(n)===r.charCodeAt(n);)n++;let o=be();return e.map(i=>i.replace(t.slice(0,n),o.base))}function ci({document$:e,location$:t,viewport$:r}){let n=be();if(location.protocol==="file:")return;"scrollRestoration"in history&&(history.scrollRestoration="manual",w(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}));let o=ce("link[rel=icon]");typeof o!="undefined"&&(o.href=o.href);let i=Co(new URL("sitemap.xml",n.base)).pipe(m(u=>rs(G("loc",u).map(f=>f.textContent))),_(u=>w(document.body,"click").pipe(M(f=>!f.metaKey&&!f.ctrlKey),_(f=>{if(f.target instanceof Element){let l=f.target.closest("a");if(l&&!l.target){let p=new URL(l.href);if(p.search="",p.hash="",p.pathname!==location.pathname&&u.includes(p.toString()))return f.preventDefault(),k({url:new URL(l.href)})}}return ge}))),fe()),a=w(window,"popstate").pipe(M(u=>u.state!==null),m(u=>({url:new URL(location.href),offset:u.state})),fe());A(i,a).pipe(Q((u,f)=>u.url.href===f.url.href),m(({url:u})=>u)).subscribe(t);let c=t.pipe(B("pathname"),_(u=>cr(u.href).pipe(je(()=>(So(u),ge)))),fe());i.pipe(st(c)).subscribe(({url:u})=>{history.pushState({},"",`${u}`)});let s=new DOMParser;c.pipe(_(u=>u.text()),m(u=>s.parseFromString(u,"text/html"))).subscribe(e),e.pipe(ct(1)).subscribe(u=>{for(let f of["title","link[rel=canonical]","meta[name=author]","meta[name=description]","[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=logo]","[data-md-component=skip]",...ae("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let l=ce(f),p=ce(f,u);typeof l!="undefined"&&typeof p!="undefined"&&l.replaceWith(p)}}),e.pipe(ct(1),m(()=>Ae("container")),_(u=>k(...G("script",u))),Ar(u=>{let f=R("script");if(u.src){for(let l of u.getAttributeNames())f.setAttribute(l,u.getAttribute(l));return u.replaceWith(f),new j(l=>{f.onload=()=>l.complete()})}else return f.textContent=u.textContent,u.replaceWith(f),N})).subscribe(),A(i,a).pipe(st(e)).subscribe(({url:u,offset:f})=>{u.hash&&!f?Mo(u.hash):window.scrollTo(0,(f==null?void 0:f.y)||0)}),r.pipe(St(i),Ke(250),B("offset")).subscribe(({offset:u})=>{history.replaceState(u,"")}),A(i,a).pipe(Se(2,1),M(([u,f])=>u.url.pathname===f.url.pathname),m(([,u])=>u)).subscribe(({offset:u})=>{window.scrollTo(0,(u==null?void 0:u.y)||0)})}var is=ze(Qr());var fi=ze(Qr());function Kr(e,t){let r=new RegExp(e.separator,"img"),n=(o,i,a)=>`${i}<mark data-md-highlight>${a}</mark>`;return o=>{o=o.replace(/[\s*+\-:~^]+/g," ").trim();let i=new RegExp(`(^|${e.separator})(${o.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&").replace(r,"|")})`,"img");return a=>(t?(0,fi.default)(a):a).replace(i,n).replace(/<\/mark>(\s+)<mark[^>]*>/img,"$1")}}function pi(e){return e.split(/"([^"]+)"/g).map((t,r)=>r&1?t.replace(/^\b|^(?![^\x00-\x7F]|$)|\s+/g," +"):t).join("").replace(/"|(?:^|\s+)[*+\-:^~]+(?=\s+|$)/g,"").trim()}function pt(e){return e.type===1}function li(e){return e.type===2}function lt(e){return e.type===3}function ss({config:e,docs:t}){e.lang.length===1&&e.lang[0]==="en"&&(e.lang=[X("search.config.lang")]),e.separator==="[\\s\\-]+"&&(e.separator=X("search.config.separator"));let n={pipeline:X("search.config.pipeline").split(/\s*,\s*/).filter(Boolean),suggestions:ae("search.suggest")};return{config:e,docs:t,options:n}}function mi(e,t){let r=be(),n=new Worker(e),o=new S,i=$o(n,{tx$:o}).pipe(m(a=>{if(lt(a))for(let c of a.data.items)for(let s of c)s.location=`${new URL(s.location,r.base)}`;return a}),fe());return te(t).pipe(m(a=>({type:0,data:ss(a)}))).subscribe(o.next.bind(o)),{tx$:o,rx$:i}}function di(){let e=be(),t=Le(new URL("../versions.json",e.base)),r=t.pipe(m(n=>{let[,o]=e.base.match(/([^/]+)\/?$/);return n.find(({version:i,aliases:a})=>i===o||a.includes(o))||n[0]}));q([t,r]).subscribe(([n,o])=>{var a;if(K(".md-header__topic").appendChild(Vo(n,o)),__md_get("__outdated",sessionStorage)===null){let c=((a=e.version)==null?void 0:a.default)||"latest",s=!o.aliases.includes(c);if(__md_set("__outdated",s,sessionStorage),s)for(let u of ne("outdated"))u.hidden=!1}})}function cs(e,{rx$:t}){let r=(__search==null?void 0:__search.transform)||pi,{searchParams:n}=Me();n.has("q")&&De("search",!0);let o=t.pipe(M(pt),le(1),m(()=>n.get("q")||""));o.subscribe(c=>{c&&(e.value=c)});let i=Zt(e),a=A(w(e,"keyup"),w(e,"focus").pipe(Pe(1)),o).pipe(m(()=>r(e.value)),V(""),Q());return q([a,i]).pipe(m(([c,s])=>({value:c,focus:s})),J(1))}function hi(e,{tx$:t,rx$:r}){let n=new S;return n.pipe(B("value"),m(({value:o})=>({type:2,data:o}))).subscribe(t.next.bind(t)),n.pipe(B("focus")).subscribe(({focus:o})=>{o?(De("search",o),e.placeholder=""):e.placeholder=X("search.placeholder")}),w(e.form,"reset").pipe(se(n.pipe(ue(1)))).subscribe(()=>e.focus()),cs(e,{tx$:t,rx$:r}).pipe(T(o=>n.next(o)),C(()=>n.complete()),m(o=>F({ref:e},o)))}function bi(e,{rx$:t},{query$:r}){let n=new S,o=yo(e.parentElement).pipe(M(Boolean)),i=K(":scope > :first-child",e),a=K(":scope > :last-child",e),c=t.pipe(M(pt),le(1));return n.pipe(Ee(r),St(c)).subscribe(([{items:u},{value:f}])=>{if(f)switch(u.length){case 0:i.textContent=X("search.result.none");break;case 1:i.textContent=X("search.result.one");break;default:i.textContent=X("search.result.other",sr(u.length))}else i.textContent=X("search.result.placeholder")}),n.pipe(T(()=>a.innerHTML=""),_(({items:u})=>A(k(...u.slice(0,10)),k(...u.slice(10)).pipe(Se(4),jr(o),_(([f])=>k(...f)))))).subscribe(u=>a.appendChild(Uo(u))),t.pipe(M(lt),m(({data:u})=>u)).pipe(T(u=>n.next(u)),C(()=>n.complete()),m(u=>F({ref:e},u)))}function us(e,{query$:t}){return t.pipe(m(({value:r})=>{let n=Me();return n.hash="",n.searchParams.delete("h"),n.searchParams.set("q",r),{url:n}}))}function vi(e,t){let r=new S;return r.subscribe(({url:n})=>{e.setAttribute("data-clipboard-text",e.href),e.href=`${n}`}),w(e,"click").subscribe(n=>n.preventDefault()),us(e,t).pipe(T(n=>r.next(n)),C(()=>r.complete()),m(n=>F({ref:e},n)))}function gi(e,{rx$:t},{keyboard$:r}){let n=new S,o=Ae("search-query"),i=A(w(o,"keydown"),w(o,"focus")).pipe(qe(Te),m(()=>o.value),Q());return n.pipe(at(i),m(([{suggestions:c},s])=>{let u=s.split(/([\s-]+)/);if((c==null?void 0:c.length)&&u[u.length-1]){let f=c[c.length-1];f.startsWith(u[u.length-1])&&(u[u.length-1]=f)}else u.length=0;return u})).subscribe(c=>e.innerHTML=c.join("").replace(/\s/g," ")),r.pipe(M(({mode:c})=>c==="search")).subscribe(c=>{switch(c.type){case"ArrowRight":e.innerText.length&&o.selectionStart===o.value.length&&(o.value=e.innerText);break}}),t.pipe(M(lt),m(({data:c})=>c)).pipe(T(c=>n.next(c)),C(()=>n.complete()),m(()=>({ref:e})))}function yi(e,{index$:t,keyboard$:r}){let n=be();try{let o=(__search==null?void 0:__search.worker)||n.search,i=mi(o,t),a=Ae("search-query",e),c=Ae("search-result",e),{tx$:s,rx$:u}=i;s.pipe(M(li),st(u.pipe(M(pt))),le(1)).subscribe(s.next.bind(s)),r.pipe(M(({mode:p})=>p==="search")).subscribe(p=>{let d=Ue();switch(p.type){case"Enter":if(d===a){let h=new Map;for(let b of G(":first-child [href]",c)){let I=b.firstElementChild;h.set(b,parseFloat(I.getAttribute("data-md-score")))}if(h.size){let[[b]]=[...h].sort(([,I],[,Y])=>Y-I);b.click()}p.claim()}break;case"Escape":case"Tab":De("search",!1),a.blur();break;case"ArrowUp":case"ArrowDown":if(typeof d=="undefined")a.focus();else{let h=[a,...G(":not(details) > [href], summary, details[open] [href]",c)],b=Math.max(0,(Math.max(0,h.indexOf(d))+h.length+(p.type==="ArrowUp"?-1:1))%h.length);h[b].focus()}p.claim();break;default:a!==Ue()&&a.focus()}}),r.pipe(M(({mode:p})=>p==="global")).subscribe(p=>{switch(p.type){case"f":case"s":case"/":a.focus(),a.select(),p.claim();break}});let f=hi(a,i),l=bi(c,i,{query$:f});return A(f,l).pipe(Be(...ne("search-share",e).map(p=>vi(p,{query$:f})),...ne("search-suggest",e).map(p=>gi(p,i,{keyboard$:r}))))}catch(o){return e.hidden=!0,ge}}function xi(e,{index$:t,location$:r}){return q([t,r.pipe(V(Me()),M(n=>!!n.searchParams.get("h")))]).pipe(m(([n,o])=>Kr(n.config,!0)(o.searchParams.get("h"))),m(n=>{var a;let o=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let c=i.nextNode();c;c=i.nextNode())if((a=c.parentElement)==null?void 0:a.offsetHeight){let s=c.textContent,u=n(s);u.length>s.length&&o.set(c,u)}for(let[c,s]of o){let{childNodes:u}=R("span",null,s);c.replaceWith(...Array.from(u))}return{ref:e,nodes:o}}))}function fs(e,{viewport$:t,main$:r}){let n=e.parentElement,o=n.offsetTop-n.parentElement.offsetTop;return q([r,t]).pipe(m(([{offset:i,height:a},{offset:{y:c}}])=>(a=a+Math.min(o,Math.max(0,c-i))-o,{height:a,locked:c>=i+o})),Q((i,a)=>i.height===a.height&&i.locked===a.locked))}function Yr(e,n){var o=n,{header$:t}=o,r=Zr(o,["header$"]);let i=K(".md-sidebar__scrollwrap",e),{y:a}=We(i);return U(()=>{let c=new S;return c.pipe(He(0,we),Ee(t)).subscribe({next([{height:s},{height:u}]){i.style.height=`${s-2*a}px`,e.style.top=`${u}px`},complete(){i.style.height="",e.style.top=""}}),fs(e,r).pipe(T(s=>c.next(s)),C(()=>c.complete()),m(s=>F({ref:e},s)))})}function wi(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return wt(Le(`${r}/releases/latest`).pipe(m(n=>({version:n.tag_name})),Ye({})),Le(r).pipe(m(n=>({stars:n.stargazers_count,forks:n.forks_count})),Ye({}))).pipe(m(([n,o])=>F(F({},n),o)))}else{let r=`https://api.github.com/users/${e}`;return Le(r).pipe(m(n=>({repositories:n.public_repos})),Ye({}))}}function Si(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return Le(r).pipe(m(({star_count:n,forks_count:o})=>({stars:n,forks:o})),Ye({}))}function Ei(e){let[t]=e.match(/(git(?:hub|lab))/i)||[];switch(t.toLowerCase()){case"github":let[,r,n]=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);return wi(r,n);case"gitlab":let[,o,i]=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i);return Si(o,i);default:return N}}var ps;function ls(e){return ps||(ps=U(()=>{let t=__md_get("__source",sessionStorage);return t?k(t):Ei(e.href).pipe(T(r=>__md_set("__source",r,sessionStorage)))}).pipe(je(()=>N),M(t=>Object.keys(t).length>0),m(t=>({facts:t})),J(1)))}function Oi(e){let t=K(":scope > :last-child",e);return U(()=>{let r=new S;return r.subscribe(({facts:n})=>{t.appendChild(Wo(n)),t.setAttribute("data-md-state","done")}),ls(e).pipe(T(n=>r.next(n)),C(()=>r.complete()),m(n=>F({ref:e},n)))})}function ms(e,{viewport$:t,header$:r}){return he(document.body).pipe(_(()=>ur(e,{header$:r,viewport$:t})),m(({offset:{y:n}})=>({hidden:n>=10})),B("hidden"))}function Ti(e,t){return U(()=>{let r=new S;return r.subscribe({next({hidden:n}){n?e.setAttribute("data-md-state","hidden"):e.removeAttribute("data-md-state")},complete(){e.removeAttribute("data-md-state")}}),(ae("navigation.tabs.sticky")?k({hidden:!1}):ms(e,t)).pipe(T(n=>r.next(n)),C(()=>r.complete()),m(n=>F({ref:e},n)))})}function ds(e,{viewport$:t,header$:r}){let n=new Map,o=G("[href^=\\#]",e);for(let c of o){let s=decodeURIComponent(c.hash.substring(1)),u=ce(`[id="${s}"]`);typeof u!="undefined"&&n.set(c,u)}let i=r.pipe(m(c=>24+c.height));return he(document.body).pipe(B("height"),_(c=>U(()=>{let s=[];return k([...n].reduce((u,[f,l])=>{for(;s.length&&n.get(s[s.length-1]).tagName>=l.tagName;)s.pop();let p=l.offsetTop;for(;!p&&l.parentElement;)l=l.parentElement,p=l.offsetTop;return u.set([...s=[...s,f]].reverse(),p)},new Map))}).pipe(m(s=>new Map([...s].sort(([,u],[,f])=>u-f))),_(s=>q([t,i]).pipe(Rr(([u,f],[{offset:{y:l},size:p},d])=>{let h=l+p.height>=Math.floor(c.height);for(;f.length;){let[,b]=f[0];if(b-d<l||h)u=[...u,f.shift()];else break}for(;u.length;){let[,b]=u[u.length-1];if(b-d>=l&&!h)f=[u.pop(),...f];else break}return[u,f]},[[],[...s]]),Q((u,f)=>u[0]===f[0]&&u[1]===f[1])))))).pipe(m(([c,s])=>({prev:c.map(([u])=>u),next:s.map(([u])=>u)})),V({prev:[],next:[]}),Se(2,1),m(([c,s])=>c.prev.length<s.prev.length?{prev:s.prev.slice(Math.max(0,c.prev.length-1),s.prev.length),next:[]}:{prev:s.prev.slice(-1),next:s.next.slice(0,s.next.length-c.next.length)}))}function _i(e,{viewport$:t,header$:r}){return U(()=>{let n=new S;return n.subscribe(({prev:o,next:i})=>{for(let[a]of i)a.removeAttribute("data-md-state"),a.classList.remove("md-nav__link--active");for(let[a,[c]]of o.entries())c.setAttribute("data-md-state","blur"),c.classList.toggle("md-nav__link--active",a===o.length-1)}),ae("navigation.tracking")&&t.pipe(se(n.pipe(ue(1))),B("offset"),Ke(250),Ee(n)).subscribe(([,{prev:o}])=>{let i=Me(),a=o[o.length-1];if(a&&a.length){let[c]=a,{hash:s}=new URL(c.href);i.hash!==s&&(i.hash=s,history.replaceState({},"",`${i}`))}else i.hash="",history.replaceState({},"",`${i}`)}),ds(e,{viewport$:t,header$:r}).pipe(T(o=>n.next(o)),C(()=>n.complete()),m(o=>F({ref:e},o)))})}function hs(e,{viewport$:t,main$:r,target$:n}){let o=t.pipe(m(({offset:{y:a}})=>a),Se(2,1),m(([a,c])=>a>c),Q()),i=r.pipe(m(({active:a})=>a));return q([i,o]).pipe(m(([a,c])=>!(a&&c)),Q(),se(n.pipe(ct(1))),Xt(!0),kr({delay:250}),m(a=>({hidden:a})))}function Mi(e,{viewport$:t,header$:r,main$:n,target$:o}){let i=new S;return i.subscribe({next({hidden:a}){a?(e.setAttribute("data-md-state","hidden"),e.setAttribute("tabindex","-1"),e.blur()):(e.removeAttribute("data-md-state"),e.removeAttribute("tabindex"))},complete(){e.style.top="",e.setAttribute("data-md-state","hidden"),e.removeAttribute("tabindex")}}),r.pipe(se(i.pipe(Xt(0),ue(1))),B("height")).subscribe(({height:a})=>{e.style.top=`${a+16}px`}),hs(e,{viewport$:t,main$:n,target$:o}).pipe(T(a=>i.next(a)),C(()=>i.complete()),m(a=>F({ref:e},a)))}function Li({document$:e,tablet$:t}){e.pipe(_(()=>k(...G("[data-md-state=indeterminate]"))),T(r=>{r.indeterminate=!0,r.checked=!1}),ie(r=>w(r,"change").pipe(Ir(()=>r.hasAttribute("data-md-state")),re(r))),Ee(t)).subscribe(([r,n])=>{r.removeAttribute("data-md-state"),n&&(r.checked=!1)})}function bs(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Ai({document$:e}){e.pipe(_(()=>k(...G("[data-md-scrollfix]"))),T(t=>t.removeAttribute("data-md-scrollfix")),M(bs),ie(t=>w(t,"touchstart").pipe(re(t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}function Ci({viewport$:e,tablet$:t}){q([ar("search"),t]).pipe(m(([r,n])=>r&&!n),_(r=>k(r).pipe(Pe(r?400:100))),Ee(e)).subscribe(([r,{offset:{y:n}}])=>{if(r)document.body.setAttribute("data-md-state","lock"),document.body.style.top=`-${n}px`;else{let o=-1*parseInt(document.body.style.top,10);document.body.removeAttribute("data-md-state"),document.body.style.top="",o&&window.scrollTo(0,o)}})}Object.entries||(Object.entries=function(e){let t=[];for(let r of Object.keys(e))t.push([r,e[r]]);return t});Object.values||(Object.values=function(e){let t=[];for(let r of Object.keys(e))t.push(e[r]);return t});typeof Element!="undefined"&&(Element.prototype.scrollTo||(Element.prototype.scrollTo=function(e,t){typeof e=="object"?(this.scrollLeft=e.left,this.scrollTop=e.top):(this.scrollLeft=e,this.scrollTop=t)}),Element.prototype.replaceWith||(Element.prototype.replaceWith=function(...e){let t=this.parentNode;if(t){e.length===0&&t.removeChild(this);for(let r=e.length-1;r>=0;r--){let n=e[r];typeof n!="object"?n=document.createTextNode(n):n.parentNode&&n.parentNode.removeChild(n),r?t.insertBefore(this.previousSibling,n):t.replaceChild(n,this)}}}));document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var mt=so(),fr=Eo(),pr=Lo(),Br=wo(),ye=Io(),lr=Wr("(min-width: 960px)"),ki=Wr("(min-width: 1220px)"),Ri=Ao(),Hi=be(),Pi=document.forms.namedItem("search")?(__search==null?void 0:__search.index)||Le(new URL("search/search_index.json",Hi.base)):ge,Gr=new S;si({alert$:Gr});ae("navigation.instant")&&ci({document$:mt,location$:fr,viewport$:ye});var $i;(($i=Hi.version)==null?void 0:$i.provider)==="mike"&&di();A(fr,pr).pipe(Pe(125)).subscribe(()=>{De("drawer",!1),De("search",!1)});Br.pipe(M(({mode:e})=>e==="global")).subscribe(e=>{switch(e.type){case"p":case",":let t=ce("[href][rel=prev]");typeof t!="undefined"&&t.click();break;case"n":case".":let r=ce("[href][rel=next]");typeof r!="undefined"&&r.click();break}});Li({document$:mt,tablet$:lr});Ai({document$:mt});Ci({viewport$:ye,tablet$:lr});var Ve=ri(Ae("header"),{viewport$:ye}),mr=mt.pipe(m(()=>Ae("main")),_(e=>ii(e,{viewport$:ye,header$:Ve})),J(1)),vs=A(...ne("dialog").map(e=>ti(e,{alert$:Gr})),...ne("header").map(e=>ni(e,{viewport$:ye,header$:Ve,main$:mr})),...ne("palette").map(e=>ai(e)),...ne("search").map(e=>yi(e,{index$:Pi,keyboard$:Br})),...ne("source").map(e=>Oi(e))),gs=U(()=>A(...ne("content").map(e=>ei(e,{target$:pr,print$:Ri})),...ne("content").map(e=>ae("search.highlight")?xi(e,{index$:Pi,location$:fr}):N),...ne("header-title").map(e=>oi(e,{viewport$:ye,header$:Ve})),...ne("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?Dr(ki,()=>Yr(e,{viewport$:ye,header$:Ve,main$:mr})):Dr(lr,()=>Yr(e,{viewport$:ye,header$:Ve,main$:mr}))),...ne("tabs").map(e=>Ti(e,{viewport$:ye,header$:Ve})),...ne("toc").map(e=>_i(e,{viewport$:ye,header$:Ve})),...ne("top").map(e=>Mi(e,{viewport$:ye,header$:Ve,main$:mr,target$:pr})))),Ii=mt.pipe(_(()=>gs),Be(vs),J(1));Ii.subscribe();window.document$=mt;window.location$=fr;window.target$=pr;window.keyboard$=Br;window.viewport$=ye;window.tablet$=lr;window.screen$=ki;window.print$=Ri;window.alert$=Gr;window.component$=Ii;})();
|