PageSourceSearch

https://www.hunteramenities.com/_next/static/chunks/7124-40a2d920c98612f6.js

js hunteramenities.com collected 2026-09-29 00:22:02 UTC 107,341 bytes, 3 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7124],{90710:function(t,e,n){"use strict";n.d(e,{y:function(){return a}});var r=n(90762),i=n(31943),o=n(74742),s=n(40560),u=n(11319),l=n(51257),c=n(56331),a=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var o,s=this,u=(o=t)&&o instanceof r.Lv||o&&(0,l.m)(o.next)&&(0,l.m)(o.error)&&(0,l.m)(o.complete)&&(0,i.Nn)(o)?t:new r.Hp(t,e,n);return(0,c.x)(function(){var t=s.operator,e=s.source;u.add(t?t.call(u,e):e?s._subscribe(u):s._trySubscribe(u))}),u},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=f(e))(function(e,i){var o=new r.Hp({next:function(e){try{t(e)}catch(t){i(t),o.unsubscribe()}},error:i,complete:e});n.subscribe(o)})},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[o.L]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,s.U)(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=f(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();function f(t){var e;return null!==(e=null!=t?t:u.v.Promise)&&void 0!==e?e:Promise}},97101:function(t,e,n){"use strict";n.d(e,{t:function(){return s}});var r=n(97582),i=n(91186),o=n(99614),s=function(t){function e(e,n,r){void 0===e&&(e=1/0),void 0===n&&(n=1/0),void 0===r&&(r=o.l);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,n),i}return(0,r.ZT)(e,t),e.prototype.next=function(e){var n=this.isStopped,r=this._buffer,i=this._infiniteTimeWindow,o=this._timestampProvider,s=this._windowTime;!n&&(r.push(e),i||r.push(o.now()+s)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!t.closed;i+=n?1:2)t.next(r[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,i=(r?1:2)*t;if(t<1/0&&i<n.length&&n.splice(0,n.length-i),!r){for(var o=e.now(),s=0,u=1;u<n.length&&n[u]<=o;u+=2)s=u;s&&n.splice(0,s+1)}},e}(i.x)},91186:function(t,e,n){"use strict";n.d(e,{x:function(){return c}});var r=n(97582),i=n(90710),o=n(31943),s=(0,n(12669).d)(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),u=n(73638),l=n(56331),c=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return(0,r.ZT)(e,t),e.prototype.lift=function(t){var e=new a(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new s},e.prototype.next=function(t){var e=this;(0,l.x)(function(){var n,i;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var o=(0,r.XA)(e.currentObservers),s=o.next();!s.done;s=o.next())s.value.next(t)}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}}})},e.prototype.error=function(t){var e=this;(0,l.x)(function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var n=e.observers;n.length;)n.shift().error(t)}})},e.prototype.complete=function(){var t=this;(0,l.x)(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}
1,enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?o.Lc:(this.currentObservers=null,i.push(t),new o.w0(function(){e.currentObservers=null,(0,u.P)(i,t)}))},e.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,n=this.thrownError,r=this.isStopped;e?t.error(n):r&&t.complete()},e.prototype.asObservable=function(){var t=new i.y;return t.source=this,t},e.create=function(t,e){return new a(t,e)},e}(i.y),a=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return(0,r.ZT)(e,t),e.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},e.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==n?n:o.Lc},e}(c)},90762:function(t,e,n){"use strict";n.d(e,{Hp:function(){return v},Lv:function(){return d}});var r=n(97582),i=n(51257),o=n(31943),s=n(11319),u=n(12279),l=n(93613),c=a("C",void 0,void 0);function a(t,e,n){return{kind:t,value:e,error:n}}var f=n(56956),h=n(56331),d=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,(0,o.Nn)(e)&&e.add(n)):n.destination=w,n}return(0,r.ZT)(e,t),e.create=function(t,e,n){return new v(t,e,n)},e.prototype.next=function(t){this.isStopped?b(a("N",t,void 0),this):this._next(t)},e.prototype.error=function(t){this.isStopped?b(a("E",void 0,t),this):(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped?b(c,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(o.w0),p=Function.prototype.bind;function g(t,e){return p.call(t,e)}var y=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){m(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){m(t)}else m(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){m(t)}},t}(),v=function(t){function e(e,n,r){var o,u,l=t.call(this)||this;return(0,i.m)(e)||!e?o={next:null!=e?e:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:l&&s.v.useDeprecatedNextContext?((u=Object.create(e)).unsubscribe=function(){return l.unsubscribe()},o={next:e.next&&g(e.next,u),error:e.error&&g(e.error,u),complete:e.complete&&g(e.complete,u)}):o=e,l.destination=new y(o),l}return(0,r.ZT)(e,t),e}(d);function m(t){s.v.useDeprecatedSynchronousErrorHandling?(0,h.O)(t):(0,u.h)(t)}function b(t,e){var n=s.v.onStoppedNotification;n&&f.z.setTimeout(function(){return n(t,e)})}var w={closed:!0,next:l.Z,error:function(t){throw t},complete:l.Z}},31943:function(t,e,n){"use strict";n.d(e,{Lc:function(){return l},w0:function(){return u},Nn:function(){return c}});var r=n(97582),i=n(51257),o=(0,n(12669).d)(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=e}}),s=n(73638),u=function(){var t;function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t,e,n,s,u,l=this._parentage;if(l){if(this._parentage=null,Array.isArray(l))try{for(var c=(0,r.XA)(l),f=c.next();!f.done;f=c.next())f.value.remove(this)}catch(e){t={error:e}}finally{try{f&&!f.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}else l.remove(this)}var h=this.initialTeardown;
1if((0,i.m)(h))try{h()}catch(t){u=t instanceof o?t.errors:[t]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var p=(0,r.XA)(d),g=p.next();!g.done;g=p.next()){var y=g.value;try{a(y)}catch(t){u=null!=u?u:[],t instanceof o?u=(0,r.ev)((0,r.ev)([],(0,r.CR)(u)),(0,r.CR)(t.errors)):u.push(t)}}}catch(t){n={error:t}}finally{try{g&&!g.done&&(s=p.return)&&s.call(p)}finally{if(n)throw n.error}}}if(u)throw new o(u)}},e.prototype.add=function(t){var n;if(t&&t!==this){if(this.closed)a(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}},e.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},e.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},e.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&(0,s.P)(e,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&(0,s.P)(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),l=u.EMPTY;function c(t){return t instanceof u||t&&"closed"in t&&(0,i.m)(t.remove)&&(0,i.m)(t.add)&&(0,i.m)(t.unsubscribe)}function a(t){(0,i.m)(t)?t():t.unsubscribe()}},11319:function(t,e,n){"use strict";n.d(e,{v:function(){return r}});var r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},34265:function(t,e,n){"use strict";n.d(e,{P:function(){return o}});var r=n(90710),i=n(97174);function o(t){return new r.y(function(e){(0,i.Xf)(t()).subscribe(e)})}},55899:function(t,e,n){"use strict";n.d(e,{E:function(){return i},c:function(){return o}});var r=n(90710),i=new r.y(function(t){return t.complete()});function o(t){return t?new r.y(function(e){return t.schedule(function(){return e.complete()})}):i}},21858:function(t,e,n){"use strict";n.d(e,{D:function(){return o}});var r=n(92251),i=n(97174);function o(t,e){return e?(0,r.x)(t,e):(0,i.Xf)(t)}},13442:function(t,e,n){"use strict";n.d(e,{R:function(){return function t(e,n,p,g){if((0,l.m)(p)&&(g=p,p=void 0),g)return t(e,n,p).pipe((0,c.Z)(g));var y=(0,r.CR)((0,l.m)(e.addEventListener)&&(0,l.m)(e.removeEventListener)?f.map(function(t){return function(r){return e[t](n,r,p)}}):(0,l.m)(e.addListener)&&(0,l.m)(e.removeListener)?a.map(d(e,n)):(0,l.m)(e.on)&&(0,l.m)(e.off)?h.map(d(e,n)):[],2),v=y[0],m=y[1];if(!v&&(0,u.z)(e))return(0,s.z)(function(e){return t(e,n,p)})((0,i.Xf)(e));if(!v)throw TypeError("Invalid event target");return new o.y(function(t){var e=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.next(1<e.length?e:e[0])};return v(e),function(){return m(e)}})}}});var r=n(97582),i=n(97174),o=n(90710),s=n(15454),u=n(52238),l=n(51257),c=n(56337),a=["addListener","removeListener"],f=["addEventListener","removeEventListener"],h=["on","off"];function d(t,e){return function(n){return function(r){return t[n](e,r)}}}},97174:function(t,e,n){"use strict";n.d(e,{Xf:function(){return g}});var r=n(97582),i=n(52238),o=n(82626),s=n(90710),u=n(3613),l=n(78012),c=n(92780),a=n(82746),f=n(98658),h=n(51257),d=n(12279),p=n(74742);function g(t){if(t instanceof s.y)return t;if(null!=t){if((0,u.c)(t))return new s.y(function(e){var n=t[p.L]();if((0,h.m)(n.subscribe))return n.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")});if((0,i.z)(t))return new s.y(function(e){for(var n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()});if((0,o.t)(t))return new s.y(function(e){t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,d.h)});if((0,l.D)(t))return y(t);if((0,a.T)(t))return new s.y(function(e){var n,i;try{for(var o=(0,r.XA)(t),s=o.next();!s.done;s=o.next()){var u=s.value;if(e.next(u),e.closed)return}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}e.complete()});if((0,f.L)(t))return y((0,f.Q)(t))}throw(0,c.z)(t)}function y(t){return new s.y(function(e){(function(t,e){var n,i,o,s;return(0,r.mG)(this,void 0,void 0,function(){var u;return(0,r.Jh)(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=(0,r.KL)(t),l.label=1;case 1:return[4,n.next()];case 2:if((i=l.sent()).done)return[3,4];if(u=i.value,e.next(u),e.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return o={error:l.sent()},[3,11];case 6:if(l.trys.push([6,,9,10]),!(i&&!i.done&&(s=n.return)))return[3,8];return[4,s.call(n)];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];
1case 10:return[7];case 11:return e.complete(),[2]}})})})(t,e).catch(function(t){return e.error(t)})})}},87080:function(t,e,n){"use strict";n.d(e,{T:function(){return l}});var r=n(99729),i=n(97174),o=n(55899),s=n(3996),u=n(21858);function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=(0,s.yG)(t),l=(0,s._6)(t,1/0);return t.length?1===t.length?(0,i.Xf)(t[0]):(0,r.J)(l)((0,u.D)(t,n)):o.E}},89377:function(t,e,n){"use strict";n.d(e,{Q:function(){return o},x:function(){return i}});var r=n(97582);function i(t,e,n,r,i){return new o(t,e,n,r,i)}var o=function(t){function e(e,n,r,i,o,s){var u=t.call(this,e)||this;return u.onFinalize=o,u.shouldUnsubscribe=s,u._next=n?function(t){try{n(t)}catch(t){e.error(t)}}:t.prototype._next,u._error=i?function(t){try{i(t)}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._error,u._complete=r?function(){try{r()}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,u}return(0,r.ZT)(e,t),e.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),n||null===(e=this.onFinalize)||void 0===e||e.call(this)}},e}(n(90762).Lv)},40347:function(t,e,n){"use strict";n.d(e,{b:function(){return o}});var r=n(15454),i=n(51257);function o(t,e){return(0,i.m)(e)?(0,r.z)(t,e,1):(0,r.z)(t,1)}},18918:function(t,e,n){"use strict";n.d(e,{h:function(){return o}});var r=n(17297),i=n(89377);function o(t,e){return(0,r.e)(function(n,r){var o=0;n.subscribe((0,i.x)(r,function(n){return t.call(e,n,o++)&&r.next(n)}))})}},31082:function(t,e,n){"use strict";n.d(e,{U:function(){return o}});var r=n(17297),i=n(89377);function o(t,e){return(0,r.e)(function(n,r){var o=0;n.subscribe((0,i.x)(r,function(n){r.next(t.call(e,n,o++))}))})}},99729:function(t,e,n){"use strict";n.d(e,{J:function(){return o}});var r=n(15454),i=n(70179);function o(t){return void 0===t&&(t=1/0),(0,r.z)(i.y,t)}},29956:function(t,e,n){"use strict";n.d(e,{p:function(){return s}});var r=n(97174),i=n(94605),o=n(89377);function s(t,e,n,s,u,l,c,a){var f=[],h=0,d=0,p=!1,g=function(){!p||f.length||h||e.complete()},y=function(t){return h<s?v(t):f.push(t)},v=function(t){l&&e.next(t),h++;var a=!1;(0,r.Xf)(n(t,d++)).subscribe((0,o.x)(e,function(t){null==u||u(t),l?y(t):e.next(t)},function(){a=!0},void 0,function(){if(a)try{for(h--;f.length&&h<s;)!function(){var t=f.shift();c?(0,i.f)(e,c,function(){return v(t)}):v(t)}();g()}catch(t){e.error(t)}}))};return t.subscribe((0,o.x)(e,y,function(){p=!0,g()})),function(){null==a||a()}}},15454:function(t,e,n){"use strict";n.d(e,{z:function(){return function t(e,n,l){return(void 0===l&&(l=1/0),(0,u.m)(n))?t(function(t,o){return(0,r.U)(function(e,r){return n(t,e,o,r)})((0,i.Xf)(e(t,o)))},l):("number"==typeof n&&(l=n),(0,o.e)(function(t,n){return(0,s.p)(t,n,e,l)}))}}});var r=n(31082),i=n(97174),o=n(17297),s=n(29956),u=n(51257)},58184:function(t,e,n){"use strict";n.d(e,{Q:function(){return s}});var r=n(94605),i=n(17297),o=n(89377);function s(t,e){return void 0===e&&(e=0),(0,i.e)(function(n,i){n.subscribe((0,o.x)(i,function(n){return(0,r.f)(i,t,function(){return i.next(n)},e)},function(){return(0,r.f)(i,t,function(){return i.complete()},e)},function(n){return(0,r.f)(i,t,function(){return i.error(n)},e)}))})}},96435:function(t,e,n){"use strict";n.d(e,{B:function(){return l}});var r=n(97582),i=n(97174),o=n(91186),s=n(90762),u=n(17297);function l(t){void 0===t&&(t={});var e=t.connector,n=void 0===e?function(){return new o.x}:e,r=t.resetOnError,l=void 0===r||r,a=t.resetOnComplete,f=void 0===a||a,h=t.resetOnRefCountZero,d=void 0===h||h;return function(t){var e,r,o,a=0,h=!1,p=!1,g=function(){null==r||r.unsubscribe(),r=void 0},y=function(){g(),e=o=void 0,h=p=!1},v=function(){var t=e;y(),null==t||t.unsubscribe()};return(0,u.e)(function(t,u){a++,p||h||g();var m=o=null!=o?o:n();u.add(function(){0!=--a||p||h||(r=c(v,d))}),m.subscribe(u),!e&&a>0&&(e=new s.Hp({next:function(t){return m.next(t)},error:function(t){p=!0,g(),r=c(y,l,t),m.error(t)},complete:function(){h=!0,g(),r=c(y,f),m.complete()}}),(0,i.Xf)(t).subscribe(e))})(t)}}function c(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];if(!0===e){t();return}if(!1!==e){var u=new s.Hp({next:function(){u.unsubscribe(),t()}});return(0,i.Xf)(e.apply(void 0,(0,r.ev)([],(0,r.CR)(n)))).subscribe(u)}}},26791:function(t,e,n){"use strict";n.d(e,{d:function(){return o}});var r=n(97101),i=n(96435);function o(t,e,n){var o,s,u,l,c=!1;return t&&"object"==typeof t?(l=void 0===(o=t.bufferSize)?1/0:o,e=void 0===(s=t.windowTime)?1/0:s,c=void 0!==(u=t.refCount)&&u,n=t.scheduler):l=null!=t?t:1/0,(0,i.B)({connector:function(){return new r.t(l,e,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}},94515:function(t,e,n){"use strict";n.d(e,{R:function(){return i}});var r=n(17297);function i(t,e){return void 0===e&&(e=0),(0,r.e)(function(n,r){r.add(t.schedule(function(){return n.subscribe(r)},e))})}},85025:function(t,e,n){"use strict";n.d(e,{q:function(){return s}});var r=n(55899),i=n(17297),o=n(89377);function s(t){return t<=0?function(){return r.E}:(0,i.e)(function(e,n){var r=0;e.subscribe((0,o.x)(n,function(e){++r<=t&&(n.next(e),t<=r&&n.complete())}))})}},19207:function(t,e,n){"use strict";n.d(e,{R:function(){return u}});var r=n(17297),i=n(89377),o=n(97174),s=n(93613);function u(t){return(0,r.e)(function(e,n){(0,o.Xf)(t).subscribe((0,i.x)(n,function(){return n.complete()},s.Z)),n.closed||e.subscribe(n)})}},92251:function(t,e,n){"use strict";n.d(e,{x:function(){return m}});var r=n(97174),i=n(58184),o=n(94515),s=n(90710),u=n(2127),l=n(51257),c=n(94605);function a(t,e){if(!t)throw Error("Iterable cannot be null");return new s.y(function(n){(0,c.f)(n,e,function(){var r=t[Symbol.asyncIterator]();(0,c.f)(n,e,function(){r.next().then(function(t){t.done?n.complete():n.next(t.value)})},0,!0)})})}var f=n(3613),h=n(82626),d=n(52238),p=n(82746),g=n(78012),y=n(92780),v=n(98658);function m(t,e){if(null!=t){if((0,f.c)(t))return(0,r.Xf)(t).pipe((0,o.R)(e),(0,i.Q)(e));if((0,d.z)(t))return new s.y(function(n){var r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})});if((0,h.t)(t))return(0,r.Xf)(t).pipe((0,o.R)(e),(0,i.Q)(e));if((0,g.D)(t))return a(t,e);if((0,p.T)(t))return new s.y(function(n){var r;return(0,c.f)(n,e,function(){r=t[u.h](),(0,c.f)(n,e,function(){var t,e,i;try{e=(t=r.next()).value,i=t.done}catch(t){n.error(t);return}i?n.complete():n.next(e)},0,!0)}),function(){return(0,l.m)(null==r?void 0:r.return)&&r.return()}});if((0,v.L)(t))return a((0,v.Q)(t),e)}throw(0,y.z)(t)}},34531:function(t,e,n){"use strict";n.d(e,{o:function(){return u}});var r=n(97582),i=function(t){function e(e,n){return t.call(this)||this}return(0,r.ZT)(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(31943).w0),o={setInterval:function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var s=o.delegate;return(null==s?void 0:s.setInterval)?s.setInterval.apply(s,(0,r.ev)([t,e],(0,r.CR)(n))):setInterval.apply(void 0,(0,r.ev)([t,e],(0,r.CR)(n)))},clearInterval:function(t){var e=o.delegate;return((null==e?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},s=n(73638),u=function(t){function e(e,n){var r=t.call(this,e,n)||this;
1return r.scheduler=e,r.work=n,r.pending=!1,r}return(0,r.ZT)(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n,r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,e)),this.pending=!0,this.delay=e,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(i,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),o.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return e;null!=e&&o.clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n,r=!1;try{this.work(t)}catch(t){r=!0,n=t||Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},e.prototype.unsubscribe=function(){if(!this.closed){var e=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,s.P)(r,this),null!=e&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(i)},10339:function(t,e,n){"use strict";n.d(e,{v:function(){return s}});var r=n(97582),i=n(99614),o=function(){function t(e,n){void 0===n&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.schedulerActionCtor(this,t).schedule(n,e)},t.now=i.l.now,t}(),s=function(t){function e(e,n){void 0===n&&(n=o.now);var r=t.call(this,e,n)||this;return r.actions=[],r._active=!1,r}return(0,r.ZT)(e,t),e.prototype.flush=function(t){var e,n=this.actions;if(this._active){n.push(t);return}this._active=!0;do if(e=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,e){for(;t=n.shift();)t.unsubscribe();throw e}},e}(o)},6333:function(t,e,n){"use strict";n.d(e,{E:function(){return d}});var r,i=n(97582),o=n(34531),s=1,u={};function l(t){return t in u&&(delete u[t],!0)}var c=function(t){var e=s++;return u[e]=!0,r||(r=Promise.resolve()),r.then(function(){return l(e)&&t()}),e},a=function(t){l(t)},f={setImmediate:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=f.delegate;return((null==n?void 0:n.setImmediate)||c).apply(void 0,(0,i.ev)([],(0,i.CR)(t)))},clearImmediate:function(t){var e=f.delegate;return((null==e?void 0:e.clearImmediate)||a)(t)},delegate:void 0},h=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return(0,i.ZT)(e,t),e.prototype.requestAsyncId=function(e,n,r){return(void 0===r&&(r=0),null!==r&&r>0)?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=f.setImmediate(e.flush.bind(e,void 0))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);var i,o=e.actions;null!=n&&(null===(i=o[o.length-1])||void 0===i?void 0:i.id)!==n&&(f.clearImmediate(n),e._scheduled===n&&(e._scheduled=void 0))},e}(o.o),d=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.flush=function(t){this._active=!0;var e,n=this._scheduled;this._scheduled=void 0;var r=this.actions;t=t||r.shift();do if(e=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,e){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw e}},e}(n(10339).v))(h)},99614:function(t,e,n){"use strict";n.d(e,{l:function(){return r}});var r={now:function(){return(r.delegate||Date).now()},delegate:void 0}},56956:function(t,e,n){"use strict";n.d(e,{z:function(){return i}});var r=n(97582),i={setTimeout:function(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var s=i.delegate;return(null==s?void 0:s.setTimeout)?s.setTimeout.apply(s,(0,r.ev)([t,e],(0,r.CR)(n))):setTimeout.apply(void 0,(0,r.ev)([t,e],(0,r.CR)(n)))},clearTimeout:function(t){var e=i.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0}},2127:function(t,e,n){"use strict";n.d(e,{h:function(){return r}});var r="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},74742:function(t,e,n){"use strict";n.d(e,{L:function(){return r}});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},3996:function(t,e,n){"use strict";n.d(e,{_6:function(){return l},jO:function(){return s},yG:function(){return u}});var r=n(51257),i=n(62914);function o(t){return t[t.length-1]}function s(t){return(0,r.m)(o(t))?t.pop():void 0}function u(t){return(0,i.K)(o(t))?t.pop():void 0}function l(t,e){return"number"==typeof o(t)?t.pop():e}},73638:function(t,e,n){"use strict";function r(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}n.d(e,{P:function(){return r}})},12669:function(t,e,n){"use strict";function r(t){var e=t(function(t){Error.call(t),t.stack=Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}n.d(e,{d:function(){return r}})},56331:function(t,e,n){"use strict";n.d(e,{O:function(){return s},x:function(){return o}});var r=n(11319),i=null;function o(t){if(r.v.useDeprecatedSynchronousErrorHandling){var e=!i;if(e&&(i={errorThrown:!1,error:null}),t(),e){var n=i,o=n.errorThrown,s=n.error;if(i=null,o)throw s}}else t()}function s(t){r.v.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=t)}},94605:function(t,e,n){"use strict";function r(t,e,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var o=e.schedule(function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!i)return o}n.d(e,{f:function(){return r}})},70179:function(t,e,n){"use strict";function r(t){return t}n.d(e,{y:function(){return r}})},52238:function(t,e,n){"use strict";n.d(e,{z:function(){return r}});var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},78012:function(t,e,n){"use strict";n.d(e,{D:function(){return i}});var r=n(51257);function i(t){return Symbol.asyncIterator&&(0,r.m)(null==t?void 0:t[Symbol.asyncIterator])}},51257:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,{m:function(){return r}})},3613:function(t,e,n){"use strict";n.d(e,{c:function(){return o}});var r=n(74742),i=n(51257);function o(t){return(0,i.m)(t[r.L])}},82746:function(t,e,n){"use strict";n.d(e,{T:function(){return o}});var r=n(2127),i=n(51257);function o(t){return(0,i.m)(null==t?void 0:t[r.h])}},82626:function(t,e,n){"use strict";n.d(e,{t:function(){return i}});var r=n(51257);function i(t){return(0,r.m)(null==t?void 0:t.then)}},98658:function(t,e,n){"use strict";n.d(e,{L:function(){return s},Q:function(){return o}});var r=n(97582),i=n(51257);function o(t){return(0,r.FC)(this,arguments,function(){var e,n,i;return(0,r.Jh)(this,function(o){switch(o.label){case 0:e=t.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,(0,r.qq)(e.read())];case 3:if(i=(n=o.sent()).value,!n.done)return[3,5];return[4,(0,r.qq)(void 0)];case 4:return[2,o.sent()];case 5:return[4,(0,r.qq)(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function s(t){return(0,i.m)(null==t?void 0:t.getReader)}},62914:function(t,e,n){"use strict";n.d(e,{K:function(){return i}});var r=n(51257);function i(t){return t&&(0,r.m)(t.schedule)}},17297:function(t,e,n){"use strict";n.d(e,{A:function(){return i},e:function(){return o}});var r=n(51257);function i(t){return(0,r.m)(null==t?void 0:t.lift)}function o(t){return function(e){if(i(e))return e.lift(function(e){try{return t(e,this)}catch(t){this.error(t)}});throw TypeError("Unable to lift unknown Observable type")}}},56337:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(97582),i=n(31082),o=Array.isArray;function s(t){return(0,i.U)(function(e){return o(e)?t.apply(void 0,(0,r.ev)([],(0,r.CR)(e))):t(e)}
1)}},93613:function(t,e,n){"use strict";function r(){}n.d(e,{Z:function(){return r}})},40560:function(t,e,n){"use strict";n.d(e,{U:function(){return o},z:function(){return i}});var r=n(70179);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)}function o(t){return 0===t.length?r.y:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}},12279:function(t,e,n){"use strict";n.d(e,{h:function(){return o}});var r=n(11319),i=n(56956);function o(t){i.z.setTimeout(function(){var e=r.v.onUnhandledError;if(e)e(t);else throw t})}},92780:function(t,e,n){"use strict";function r(t){return TypeError("You provided "+(null!==t&&"object"==typeof t?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}n.d(e,{z:function(){return r}})},34155:function(t){var e,n,r,i=t.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function u(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var l=[],c=!1,a=-1;function f(){c&&r&&(c=!1,r.length?l=r.concat(l):a=-1,l.length&&h())}function h(){if(!c){var t=u(f);c=!0;for(var e=l.length;e;){for(r=l,l=[];++a<e;)r&&r[a].run();a=-1,e=l.length}r=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function p(){}i.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new d(t,e)),1!==l.length||c||u(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(t){return[]},i.binding=function(t){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},30368:function(t,e,n){"use strict";n.d(e,{E9:function(){return u},Y$:function(){return a},ah:function(){return y},p4:function(){return p}});var r,i,o=n(33994);let s=new WeakMap;function u(t){return{config:t,start:(e,n)=>{let{self:r,system:i,emit:o}=n,u={receivers:void 0,dispose:void 0};s.set(r,u),u.dispose=t({input:e.input,system:i,self:r,sendBack:t=>{"stopped"!==r.getSnapshot().status&&r._parent&&i._relay(r,r._parent,t)},receive:t=>{u.receivers??=new Set,u.receivers.add(t)},emit:o})},transition:(t,e,n)=>{let r=s.get(n.self);return e.type===o.X?(t={...t,status:"stopped",error:void 0},r.dispose?.()):r.receivers?.forEach(t=>t(e)),t},getInitialSnapshot:(t,e)=>({status:"active",output:void 0,error:void 0,input:e}),getPersistedSnapshot:t=>t,restoreSnapshot:t=>t}}let l="xstate.observable.error",c="xstate.observable.complete";function a(t){return{config:t,transition:(t,e)=>{if("active"!==t.status)return t;switch(e.type){case l:return{...t,status:"error",error:e.data,input:void 0,_subscription:void 0};case c:return{...t,status:"done",input:void 0,_subscription:void 0};case o.X:return t._subscription.unsubscribe(),{...t,status:"stopped",input:void 0,_subscription:void 0};default:return t}},getInitialSnapshot:(t,e)=>({status:"active",output:void 0,error:void 0,context:void 0,input:e,_subscription:void 0}),start:(e,{self:n,system:r,emit:i})=>{"done"!==e.status&&(e._subscription=t({input:e.input,system:r,self:n,emit:i}).subscribe({next:t=>{n._parent&&r._relay(n,n._parent,t)},error:t=>{r._relay(n,n,{type:l,data:t})},complete:()=>{r._relay(n,n,{type:c})}}))},getPersistedSnapshot:({_subscription:t,...e})=>e,restoreSnapshot:t=>({...t,_subscription:void 0})}}let f="xstate.promise.resolve",h="xstate.promise.reject",d=new WeakMap;function p(t){return{config:t,transition:(t,e,n)=>{if("active"!==t.status)return t;switch(e.type){case f:{let n=e.data;return{...t,status:"done",output:n,input:void 0}}case h:return{...t,status:"error",error:e.data,input:void 0};case o.X:return d.get(n.self)?.abort(),{...t,status:"stopped",input:void 0};default:return t}},start:(e,{self:n,system:r,emit:i})=>{if("active"!==e.status)return;let o=new AbortController;d.set(n,o),Promise.resolve(t({input:e.input,system:r,self:n,signal:o.signal,emit:i})).then(t=>
1{"active"===n.getSnapshot().status&&(d.delete(n),r._relay(n,n,{type:f,data:t}))},t=>{"active"===n.getSnapshot().status&&(d.delete(n),r._relay(n,n,{type:h,data:t}))})},getInitialSnapshot:(t,e)=>({status:"active",output:void 0,error:void 0,input:e}),getPersistedSnapshot:t=>t,restoreSnapshot:t=>t}}let g=(i=void 0,{config:r=t=>void 0,transition:(t,e,n)=>({...t,context:r(t.context,e,n)}),getInitialSnapshot:(t,e)=>({status:"active",output:void 0,error:void 0,context:"function"==typeof i?i({input:e}):i}),getPersistedSnapshot:t=>t,restoreSnapshot:t=>t});function y(){return(0,o.A)(g)}},33601:function(t,e,n){"use strict";n.d(e,{a:function(){return s},b:function(){return v},c:function(){return p},e:function(){return c},s:function(){return g}});var r,i=n(33994);function o(t,e,n,r,{assignment:o}){if(!e.context)throw Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");let s={},u={context:e.context,event:n.event,spawn:function(t,{machine:e,context:n},r,o){let s=(s,u={})=>{let{systemId:l,input:c}=u;if("string"!=typeof s)return(0,i.A)(s,{id:u.id,parent:t.self,syncSnapshot:u.syncSnapshot,input:u.input,src:s,systemId:l});{let a=(0,i.z)(e,s);if(!a)throw Error(`Actor logic '${s}' not implemented in machine '${e.id}'`);let f=(0,i.A)(a,{id:u.id,parent:t.self,syncSnapshot:u.syncSnapshot,input:"function"==typeof c?c({context:n,event:r,self:t.self}):c,src:s,systemId:l});return o[f.id]=f,f}};return(e,n)=>{let r=s(e,n);return o[r.id]=r,t.defer(()=>{r._processingStatus!==i.T.Stopped&&r.start()}),r}}(t,e,n.event,s),self:t.self,system:t.system},l={};if("function"==typeof o)l=o(u,r);else for(let t of Object.keys(o)){let e=o[t];l[t]="function"==typeof e?e(u,r):e}let c=Object.assign({},e.context,l);return[(0,i.U)(e,{context:c,children:Object.keys(s).length?{...e.children,...s}:e.children})]}function s(t){function e(t,e){}return e.type="xstate.assign",e.assignment=t,e.resolve=o,e}function u(t,e,n,r,{event:i}){return[e,{event:"function"==typeof i?i(n,r):i}]}function l(t,{event:e}){t.defer(()=>t.emit(e))}function c(t){function e(t,e){}return e.type="xstate.emit",e.event=t,e.resolve=u,e.execute=l,e}let a=((r={}).Parent="#_parent",r.Internal="#_internal",r);function f(t,e,n,r,{to:i,event:o,id:s,delay:u},l){let c,f;let h=e.machine.implementations.delays;if("string"==typeof o)throw Error(`Only event objects may be used with sendTo; use sendTo({ type: "${o}" }) instead`);let d="function"==typeof o?o(n,r):o;if("string"==typeof u){let t=h&&h[u];c="function"==typeof t?t(n,r):t}else c="function"==typeof u?u(n,r):u;let p="function"==typeof i?i(n,r):i;if("string"==typeof p){if(!(f=p===a.Parent?t.self._parent:p===a.Internal?t.self:p.startsWith("#_")?e.children[p.slice(2)]:l.deferredActorIds?.includes(p)?p:e.children[p]))throw Error(`Unable to send event to actor '${p}' from machine '${e.machine.id}'.`)}else f=p||t.self;return[e,{to:f,event:d,id:s,delay:c}]}function h(t,e,n){"string"==typeof n.to&&(n.to=e.children[n.to])}function d(t,e){t.defer(()=>{let{to:n,event:r,delay:o,id:s}=e;if("number"==typeof o){t.system.scheduler.schedule(t.self,n,r,o,s);return}t.system._relay(t.self,n,r.type===i.V?(0,i.W)(t.self.id,r.data):r)})}function p(t,e,n){function r(t,e){}return r.type="xsnapshot.sendTo",r.to=t,r.event=e,r.id=n?.id,r.delay=n?.delay,r.resolve=f,r.retryResolve=h,r.execute=d,r}function g(t,e){return p(a.Parent,t,e)}function y(t,e,n,r,{collect:o}){let u=[],l=function(t){u.push(t)};return l.assign=(...t)=>{u.push(s(...t))},l.cancel=(...t)=>{u.push((0,i.M)(...t))},l.raise=(...t)=>{u.push((0,i.O)(...t))},l.sendTo=(...t)=>{u.push(p(...t))},l.sendParent=(...t)=>{u.push(g(...t))},l.spawnChild=(...t)=>{u.push((0,i.P)(...t))},l.stopChild=(...t)=>{u.push((0,i.R)(...t))},l.emit=(...t)=>{u.push(c(...t))},o({context:n.context,event:n.event,enqueue:l,check:t=>(0,i.e)(t,e.context,n.event,e),self:t.self,system:t.system},r),[e,void 0,u]}function v(t){function e(t,e){}return e.type="xstate.enqueueActions",e.collect=t,e.resolve=y,e}},33994:function(t,e,n){"use strict";var r;n.d(e,{$:function(){return j},A:function(){return L},M:function(){return R},N:function(){return u},O:function(){return tL},P:function(){return N},R:function(){return W},S:function(){return s},T:function(){return P},U:function(){return tj},V:function(){return c},W:function(){return h},X:function(){return a},a:function(){return S},b:function(){return tt},c:function(){return E},d:function(){return tn},e:function(){return U},f:function(){return te},g:function(){return Q},h:function(){return Y},i:function(){return H},j:function(){return tc},k:function(){return tO},l:function(){return J},m:function(){return m},n:function(){return tb},o:function(){return function t(e,n,r,i){return"string"==typeof n?function(t,e,n,r){let i=tu(t,e).next(n,r);return i&&i.length?i:t.next(n,r)}(e,n,r,i):1===Object.keys(n).length?function(e,n,r,i){let o=Object.keys(n),s=t(tu(e,o[0]),n[o[0]],r,i);return s&&s.length?s:e.next(r,i)}(e,n,r,i):function(e,n,r,i){let o=[];for(let s of Object.keys(n)){let u=n[s];if(!u)continue;let l=t(tu(e,s),u,r,i);l&&o.push(...l)}return o.length?o:e.next(r,i)}(e,n,r,i)}},p:function(){return tm},q:function(){return d},r:function(){return tS},s:function(){return tg},t:function(){return b},u:function(){return ts},v:function(){return y},w:function(){return K},x:function(){return tl},y:function(){return tP},z:function(){return A}});let i=t=>{if("undefined"==typeof window)return;let e=function(){let t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:void 0;if(t.__xstate__)return t.__xstate__}();e&&e.register(t)};class o{constructor(t){this._process=t,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(t){let e={value:t,next:null};if(this._current){this._last.next=e,this._last=e;return}this._current=e,this._last=e,this._active&&this.flush()}flush(){for(;this._current;){let t=this._current;this._process(t.value),this._current=t.next}this._last=null}}let s=".",u="",l="xstate.init",c="xstate.error",a="xstate.stop";function f(t,e){return{type:`xstate.done.state.${t}`,output:e}}function h(t,e){return{type:`xstate.error.actor.${t}`,error:e,actorId:t}}function d(t){return{type:l,input:t}}function p(t){setTimeout(()=>{throw t})}let g="function"==typeof Symbol&&Symbol.observable||"@@observable";function y(t){if(_(t))return t;let e=[],n="";for(let r=0;r<t.length;r++){switch(t.charCodeAt(r)){case 92:n+=t[r+1],r++;continue;case 46:e.push(n),n="";continue}n+=t[r]}return e.push(n),e}function v(t){return t&&"object"==typeof t&&"machine"in t&&"value"in t?t.value:"string"!=typeof t?t:function(t){if(1===t.length)return t[0];let e={},n=e;for(let e=0;e<t.length-1;e++)if(e===t.length-2)n[t[e]]=t[e+1];else{let r=n;n={},r[t[e]]=n}return e}(y(t))}function m(t,e){let n={},r=Object.keys(t);for(let i=0;i<r.length;i++){let o=r[i];n[o]=e(t[o],o,t,i)}return n}function b(t){return void 0===t?[]:_(t)?t:[t]}function w(t,e,n,r){return"function"==typeof t?t({context:e,event:n,self:r}):t}function _(t){return Array.isArray(t)}function S(t){return(_(t)?t:[t]).map(t=>void 0===t||"string"==typeof t?{target:t}:t)}function x(t){if(void 0!==t&&""!==t)return b(t)}function k(t,e,n){let r="object"==typeof t,i=r?t:void 0;return{next:(r?t.next:t)?.bind(i),error:(r?t.error:e)?.bind(i),complete:(r?t.complete:n)?.bind(i)}}function E(t,e){return`${e}.${t}`}function A(t,e){let n=e.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!n)return t.implementations.actors[e];let[,r,i]=n,o=t.getStateNodeById(i).config.invoke;return(Array.isArray(o)?o[r]:o).src}function I(t,e){return`${t.sessionId}.${e}`}let O=0,j=1,P=((r={})[r.NotStarted=0]="NotStarted",r[r.Running=1]="Running",r[r.Stopped=2]="Stopped",r),T={clock:{setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t)},logger:console.log.bind(console),devTools:!1};class M{constructor(t,e){this.logic=t,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new o(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=P.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this._systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];let n={...T,...e},{clock:r,logger:i,parent:s,syncSnapshot:u,id:l,systemId:c,inspect:a}=n;this.system=s?s.system:function(t,e){let n=new Map,r=new Map,i=new WeakMap,o=new Set,s={},{clock:u,logger:l}=e,c={schedule:(t,e,n,r,i=Math.random().toString(36).slice(2))=>{let o={source:t,target:e,event:n,delay:r,id:i,startedAt:Date.now()},l=I(t,i);a._snapshot._scheduledEvents[l]=o;let c=u.setTimeout(()=>{delete s[l],delete a._snapshot._scheduledEvents[l],a._relay(t,e,n)},r);s[l]=c},cancel:(t,e)=>{let n=I(t,e),r=s[n];delete s[n],delete a._snapshot._scheduledEvents[n],void 0!==r&&u.clearTimeout(r)},cancelAll:t=>{for(let e in a._snapshot._scheduledEvents){let n=a._snapshot._scheduledEvents[e];n.source===t&&c.cancel(t,n.id)}}},a={_snapshot:{_scheduledEvents:(e?.snapshot&&e.snapshot.scheduler)??{}},_bookId:()=>`x:${O++}`,_register:(t,e)=>(n.set(t,e),t),_unregister:t=>{n.delete(t.sessionId);let e=i.get(t);void 0!==e&&(r.delete(e),i.delete(t))},get:t=>r.get(t),_set:(t,e)=>{let n=r.get(t);if(n&&n!==e)throw Error(`Actor with system ID '${t}' already exists.`);r.set(t,e),i.set(e,t)},inspect:t=>{let e=k(t);return o.add(e),{unsubscribe(){o.delete(e)}}},_sendInspectionEvent:e=>{if(!o.size)return;let n={...e,rootId:t.sessionId};o.forEach(t=>t.next?.(n))},_relay:(t,e,n)=>{a._sendInspectionEvent({type:"@xstate.event",sourceRef:t,actorRef:e,event:n}),e._send(n)},scheduler:c,getSnapshot:()=>({_scheduledEvents:{...a._snapshot._scheduledEvents}}),start:()=>{let t=a._snapshot._scheduledEvents;for(let e in a._snapshot._scheduledEvents={},t){let{source:n,target:r,event:i,delay:o,id:s}=t[e];c.schedule(n,r,i,o,s)}},_clock:u,_logger:l};return a}(this,{clock:r,logger:i}),a&&!s&&this.system.inspect(k(a)),this.sessionId=this.system._bookId(),this.id=l??this.sessionId,this.logger=e?.logger??this.system._logger,this.clock=e?.clock??this.system._clock,this._parent=s,this._syncSnapshot=u,this.options=n,this.src=n.src??t,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:t=>{this._deferred.push(t)},system:this.system,stopChild:t=>{if(t._parent!==this)throw Error(`Cannot stop child actor ${t.id} of ${this.id} because it is not a child`);t._stop()},emit:t=>{let e=this.eventListeners.get(t.type),n=this.eventListeners.get("*");if(e||n)for(let r of Array.from(new Set([...e?e.values():[],...n?n.values():[]])))r(t)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:"@xstate.actor",actorRef:this}),c&&(this._systemId=c,this.system._set(c,this)),this._initState(e?.snapshot??e?.state),c&&"active"!==this._snapshot.status&&this.system._unregister(this)}_initState(t){try{this._snapshot=t?this.logic.restoreSnapshot?this.logic.restoreSnapshot(t,this._actorScope):t:this.logic.getInitialSnapshot(this._actorScope,this.options?.input)}catch(t){this._snapshot={status:"error",output:void 0,error:t}}}update(t,e){let n;for(this._snapshot=t;n=this._deferred.shift();)try{n()}catch(e){this._deferred.length=0,this._snapshot={...t,status:"error",error:e}}switch(this._snapshot.status){case"active":for(let e of this.observers)try{e.
1next?.(t)}catch(t){p(t)}break;case"done":var r;for(let e of this.observers)try{e.next?.(t)}catch(t){p(t)}this._stopProcedure(),this._complete(),this._doneEvent=(r=this.id,{type:`xstate.done.actor.${r}`,output:this._snapshot.output,actorId:r}),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case"error":this._error(this._snapshot.error)}this.system._sendInspectionEvent({type:"@xstate.snapshot",actorRef:this,event:e,snapshot:t})}subscribe(t,e,n){let r=k(t,e,n);if(this._processingStatus!==P.Stopped)this.observers.add(r);else switch(this._snapshot.status){case"done":try{r.complete?.()}catch(t){p(t)}break;case"error":{let t=this._snapshot.error;if(r.error)try{r.error(t)}catch(t){p(t)}else p(t)}}return{unsubscribe:()=>{this.observers.delete(r)}}}on(t,e){let n=this.eventListeners.get(t);n||(n=new Set,this.eventListeners.set(t,n));let r=e.bind(void 0);return n.add(r),{unsubscribe:()=>{n.delete(r)}}}start(){if(this._processingStatus===P.Running)return this;this._syncSnapshot&&this.subscribe({next:t=>{"active"===t.status&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:t})},error:()=>{}}),this.system._register(this.sessionId,this),this._systemId&&this.system._set(this._systemId,this),this._processingStatus=P.Running;let t=d(this.options.input);switch(this.system._sendInspectionEvent({type:"@xstate.event",sourceRef:this._parent,actorRef:this,event:t}),this._snapshot.status){case"done":return this.update(this._snapshot,t),this;case"error":return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(t){return this._snapshot={...this._snapshot,status:"error",error:t},this._error(t),this}return this.update(this._snapshot,t),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(t){let e,n;try{e=this.logic.transition(this._snapshot,t,this._actorScope)}catch(t){n={err:t}}if(n){let{err:t}=n;this._snapshot={...this._snapshot,status:"error",error:t},this._error(t);return}this.update(e,t),t.type===a&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===P.Stopped||((this.mailbox.clear(),this._processingStatus===P.NotStarted)?this._processingStatus=P.Stopped:this.mailbox.enqueue({type:a})),this}stop(){if(this._parent)throw Error("A non-root actor cannot be stopped directly.");return this._stop()}_complete(){for(let t of this.observers)try{t.complete?.()}catch(t){p(t)}this.observers.clear()}_reportError(t){if(!this.observers.size){this._parent||p(t);return}let e=!1;for(let n of this.observers){let r=n.error;e||=!r;try{r?.(t)}catch(t){p(t)}}this.observers.clear(),e&&p(t)}_error(t){this._stopProcedure(),this._reportError(t),this._parent&&this.system._relay(this,this._parent,h(this.id,t))}_stopProcedure(){return this._processingStatus!==P.Running||(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new o(this._process.bind(this)),this._processingStatus=P.Stopped,this.system._unregister(this)),this}_send(t){this._processingStatus!==P.Stopped&&this.mailbox.enqueue(t)}send(t){this.system._relay(void 0,this,t)}attachDevTools(){let{devTools:t}=this.options;t&&("function"==typeof t?t:i)(this)}toJSON(){return{xstate$$type:j,id:this.id}}getPersistedSnapshot(t){return this.logic.getPersistedSnapshot(this._snapshot,t)}[g](){return this}getSnapshot(){return this._snapshot}}function L(t,...[e]){return new M(t,e)}function C(t,e,n,r,{sendId:i}){return[e,"function"==typeof i?i(n,r):i]}function $(t,e){t.defer(()=>{t.system.scheduler.cancel(t.self,e)})}function R(t){function e(t,e){}return e.type="xstate.cancel",e.sendId=t,e.resolve=C,e.execute=$,e}function z(t,e,n,r,{id:i,systemId:o,src:s,input:u,syncSnapshot:l}){let c;let a="string"==typeof s?A(e.machine,s):s,f="function"==typeof i?i(n):i;return a&&(c=L(a,{id:f,src:s,parent:t.self,syncSnapshot:l,systemId:o,input:"function"==typeof u?u({context:e.context,event:n.event,self:t.self}):u})),[tj(e,{children:{...e.children,[f]:c}}),{id:i,actorRef:c}]}function F(t,{id:e,actorRef:n}){n&&t.defer(()=>{n._processingStatus!==P.Stopped&&n.start()})}function N(...[t,{id:e,systemId:n,input:r,syncSnapshot:i=!1}={}]){function o(t,e){}return o.type="snapshot.spawnChild",o.id=e,o.systemId=n,o.src=t,o.input=r,o.syncSnapshot=i,o.resolve=z,o.execute=F,o}function V(t,e,n,r,{actorRef:i}){let o="function"==typeof i?i(n,r):i,s="string"==typeof o?e.children[o]:o,u=e.children;return s&&(u={...u},delete u[s.id]),[tj(e,{children:u}),s]}function D(t,e){if(e){if(t.system._unregister(e),e._processingStatus!==P.Running){t.stopChild(e);return}t.defer(()=>{t.stopChild(e)})}}function W(t){function e(t,e){}return e.type="xstate.stopChild",e.actorRef=t,e.resolve=V,e.execute=D,e}function U(t,e,n,r){let{machine:i}=r,o="function"==typeof t,s=o?t:i.implementations.guards["string"==typeof t?t:t.type];if(!o&&!s)throw Error(`Guard '${"string"==typeof t?t:t.type}' is not implemented.'.`);if("function"!=typeof s)return U(s,e,n,r);let u={context:e,event:n},l=o||"string"==typeof t?void 0:"params"in t?"function"==typeof t.params?t.params({context:e,event:n}):t.params:void 0;return"check"in s?s.check(r,u,s):s(u,l)}let B=t=>"atomic"===t.type||"final"===t.type;function Z(t){return Object.values(t.states).filter(t=>"history"!==t.type)}function X(t,e){let n=[];if(e===t)return n;let r=t.parent;for(;r&&r!==e;)n.push(r),r=r.parent;return n}function H(t){let e=new Set(t),n=q(e);for(let t of e)if("compound"!==t.type||n.get(t)&&n.get(t).length){if("parallel"===t.type){for(let n of Z(t))if("history"!==n.type&&!e.has(n))for(let t of to(n))e.add(t)}}else to(t).forEach(t=>e.add(t));for(let t of e){let n=t.parent;for(;n;)e.add(n),n=n.parent}return e}function q(t){let e=new Map;for(let n of t)e.has(n)||e.set(n,[]),n.parent&&(e.has(n.parent)||e.set(n.parent,[]),e.get(n.parent).push(n));return e}function G(t,e){return function t(e,n){let r=n.get(e);if(!r)return{};if("compound"===e.type){let t=r[0];if(!t)return{};if(B(t))return t.key}let i={};for(let e of r)i[e.key]=t(e,n);return i}(t,q(H(e)))}function J(t,e){return"compound"===e.type?Z(e).some(e=>"final"===e.type&&t.has(e)):"parallel"===e.type?Z(e).every(e=>J(t,e)):"final"===e.type}let K=t=>"#"===t[0];function Y(t,e){return t.transitions.get(e)||[...t.transitions.keys()].filter(t=>{if("*"===t)return!0;
1if(!t.endsWith(".*"))return!1;let n=t.split("."),r=e.split(".");for(let t=0;t<n.length;t++){let e=n[t],i=r[t];if("*"===e)return t===n.length-1;if(e!==i)return!1}return!0}).sort((t,e)=>e.length-t.length).flatMap(e=>t.transitions.get(e))}function Q(t){let e=t.config.after;if(!e)return[];let n=(e,n)=>{var r;let i=(r=t.id,{type:`xstate.after.${e}.${r}`}),o=i.type;return t.entry.push(tL(i,{id:o,delay:e})),t.exit.push(R(o)),o};return Object.keys(e).flatMap((t,r)=>{let i=e[t],o=Number.isNaN(+t)?t:+t,s=n(o);return b("string"==typeof i?{target:i}:i).map(t=>({...t,event:s,delay:o}))}).map(e=>{let{delay:n}=e;return{...tt(t,e.event,e),delay:n}})}function tt(t,e,n){let r=x(n.target),i=n.reenter??!1,o=function(t,e){if(void 0!==e)return e.map(e=>{if("string"!=typeof e)return e;if(K(e))return t.machine.getStateNodeById(e);let n=e[0]===s;if(n&&!t.parent)return tl(t,e.slice(1));let r=n?t.key+e:e;if(t.parent)try{return tl(t.parent,r)}catch(e){throw Error(`Invalid transition definition for state node '${t.id}':
2${e.message}`)}else throw Error(`Invalid target: "${e}" is not a valid target from the root node. Did you mean ".${e}"?`)})}(t,r),u={...n,actions:b(n.actions),guard:n.guard,target:o,source:t,reenter:i,eventType:e,toJSON:()=>({...u,source:`#${t.id}`,target:o?o.map(t=>`#${t.id}`):void 0})};return u}function te(t){let e=new Map;if(t.config.on)for(let n of Object.keys(t.config.on)){if(n===u)throw Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');let r=t.config.on[n];e.set(n,S(r).map(e=>tt(t,n,e)))}if(t.config.onDone){let n=`xstate.done.state.${t.id}`;e.set(n,S(t.config.onDone).map(e=>tt(t,n,e)))}for(let n of t.invoke){if(n.onDone){let r=`xstate.done.actor.${n.id}`;e.set(r,S(n.onDone).map(e=>tt(t,r,e)))}if(n.onError){let r=`xstate.error.actor.${n.id}`;e.set(r,S(n.onError).map(e=>tt(t,r,e)))}if(n.onSnapshot){let r=`xstate.snapshot.${n.id}`;e.set(r,S(n.onSnapshot).map(e=>tt(t,r,e)))}}for(let n of t.after){let t=e.get(n.eventType);t||(t=[],e.set(n.eventType,t)),t.push(n)}return e}function tn(t,e){let n="string"==typeof e?t.states[e]:e?t.states[e.target]:void 0;if(!n&&e)throw Error(`Initial state node "${e}" not found on parent state node #${t.id}`);let r={source:t,actions:e&&"string"!=typeof e?b(e.actions):[],eventType:null,reenter:!1,target:n?[n]:[],toJSON:()=>({...r,source:`#${t.id}`,target:n?[`#${n.id}`]:[]})};return r}function tr(t){let e=x(t.config.target);return e?{target:e.map(e=>"string"==typeof e?tl(t.parent,e):e)}:t.parent.initial}function ti(t){return"history"===t.type}function to(t){let e=ts(t);for(let n of e)for(let r of X(n,t))e.add(r);return e}function ts(t){let e=new Set;return!function t(n){if(!e.has(n)){if(e.add(n),"compound"===n.type)t(n.initial.target[0]);else if("parallel"===n.type)for(let e of Z(n))t(e)}}(t),e}function tu(t,e){if(K(e))return t.machine.getStateNodeById(e);if(!t.states)throw Error(`Unable to retrieve child state '${e}' from '${t.id}'; no child states exist.`);let n=t.states[e];if(!n)throw Error(`Child state '${e}' does not exist on '${t.id}'`);return n}function tl(t,e){if("string"==typeof e&&K(e))try{return t.machine.getStateNodeById(e)}catch(t){}let n=y(e).slice(),r=t;for(;n.length;){let t=n.shift();if(!t.length)break;r=tu(r,t)}return r}function tc(t,e){if("string"==typeof e){let n=t.states[e];if(!n)throw Error(`State '${e}' does not exist on '${t.id}'`);return[t,n]}let n=Object.keys(e),r=n.map(e=>tu(t,e)).filter(Boolean);return[t.machine.root,t].concat(r,n.reduce((n,r)=>{let i=tu(t,r);if(!i)return n;let o=tc(i,e[r]);return n.concat(o)},[]))}function ta(t,e){let n=t;for(;n.parent&&n.parent!==e;)n=n.parent;return n.parent===e}function tf(t,e,n){let r=new Set;for(let i of t){let t=!1,o=new Set;for(let s of r)if(function(t,e){let n=new Set(t),r=new Set(e);for(let t of n)if(r.has(t))return!0;for(let t of r)if(n.has(t))return!0;return!1}(tp([i],e,n),tp([s],e,n))){if(ta(i.source,s.source))o.add(s);else{t=!0;break}}if(!t){for(let t of o)r.delete(t);r.add(i)}}return Array.from(r)}function th(t,e){if(!t.target)return[];let n=new Set;for(let r of t.target)if(ti(r)){if(e[r.id])for(let t of e[r.id])n.add(t);else for(let t of th(tr(r),e))n.add(t)}else n.add(r);return[...n]}function td(t,e){let n=th(t,e);if(!n)return;if(!t.reenter&&n.every(e=>e===t.source||ta(e,t.source)))return t.source;let r=function(t){let[e,...n]=t;for(let t of X(e,void 0))if(n.every(e=>ta(e,t)))return t}(n.concat(t.source));return r||(t.reenter?void 0:t.source.machine.root)}function tp(t,e,n){let r=new Set;for(let i of t)if(i.target?.length){let t=td(i,n);for(let n of(i.reenter&&i.source===t&&r.add(t),e))ta(n,t)&&r.add(n)}return[...r]}function tg(t,e,n,r,i,o){if(!t.length)return e;let s=new Set(e._nodes),u=e.historyValue,l=tf(t,s,u),c=e;i||([c,u]=function(t,e,n,r,i,o,s){let u,l=t,c=tp(r,i,o);for(let t of(c.sort((t,e)=>e.order-t.order),c))for(let e of function(t){return Object.keys(t.states).map(e=>t.states[e]).filter(t=>"history"===t.type)}(t)){let n;n="deep"===e.history?e=>B(e)&&ta(e,t):e=>e.parent===t,(u??={...o}
2)[e.id]=Array.from(i).filter(n)}for(let t of c)l=tm(l,e,n,[...t.exit,...t.invoke.map(t=>W(t.id))],s),i.delete(t);return[l,u||o]}(c,r,n,l,s,u,o)),c=function(t,e,n,r,i,o,s,u){let l=t,c=new Set,a=new Set;(function(t,e,n,r){for(let i of t){let t=td(i,e);for(let o of i.target||[])!ti(o)&&(i.source!==o||i.source!==t||i.reenter)&&(r.add(o),n.add(o)),ty(o,e,n,r);for(let o of th(i,e)){let s=X(o,t);t?.type==="parallel"&&s.push(t),tv(r,e,n,s,!i.source.parent&&i.reenter?void 0:t)}}})(r,s,a,c),u&&a.add(t.machine.root);let h=new Set;for(let t of[...c].sort((t,e)=>t.order-e.order)){i.add(t);let r=[];for(let e of(r.push(...t.entry),t.invoke))r.push(N(e.src,{...e,syncSnapshot:!!e.onSnapshot}));if(a.has(t)){let e=t.initial.actions;r.push(...e)}if(l=tm(l,e,n,r,o,t.invoke.map(t=>t.id)),"final"===t.type){let r=t.parent,s=r?.type==="parallel"?r:r?.parent,u=s||t;for(r?.type==="compound"&&o.push(f(r.id,void 0!==t.output?w(t.output,l.context,e,n.self):void 0));s?.type==="parallel"&&!h.has(s)&&J(i,s);)h.add(s),o.push(f(s.id)),u=s,s=s.parent;if(s)continue;l=tj(l,{status:"done",output:function(t,e,n,r,i){if(void 0===r.output)return;let o=f(i.id,void 0!==i.output&&i.parent?w(i.output,t.context,e,n.self):void 0);return w(r.output,t.context,o,n.self)}(l,e,n,l.machine.root,u)})}}return l}(c=tm(c,r,n,l.flatMap(t=>t.actions),o),r,n,l,s,o,u,i);let a=[...s];"done"===c.status&&(c=tm(c,r,n,a.sort((t,e)=>e.order-t.order).flatMap(t=>t.exit),o));try{if(u===e.historyValue&&function(t,e){if(t.length!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}(e._nodes,s))return c;return tj(c,{_nodes:a,historyValue:u})}catch(t){throw t}}function ty(t,e,n,r){if(ti(t)){if(e[t.id]){let i=e[t.id];for(let t of i)r.add(t),ty(t,e,n,r);for(let o of i)tv(r,e,n,X(o,t.parent))}else{let i=tr(t);for(let o of i.target)r.add(o),i===t.parent?.initial&&n.add(t.parent),ty(o,e,n,r);for(let o of i.target)tv(r,e,n,X(o,t.parent))}}else if("compound"===t.type){let[i]=t.initial.target;ti(i)||(r.add(i),n.add(i)),ty(i,e,n,r),tv(r,e,n,X(i,t))}else if("parallel"===t.type)for(let i of Z(t).filter(t=>!ti(t)))[...r].some(t=>ta(t,i))||(ti(i)||(r.add(i),n.add(i)),ty(i,e,n,r))}function tv(t,e,n,r,i){for(let o of r)if((!i||ta(o,i))&&t.add(o),"parallel"===o.type)for(let r of Z(o).filter(t=>!ti(t)))[...t].some(t=>ta(t,r))||(t.add(r),ty(r,e,n,t))}function tm(t,e,n,r,i,o){let s=o?[]:void 0,u=function t(e,n,r,i,o,s){let{machine:u}=e,l=e;for(let e of i){let i="function"==typeof e,a=i?e:u.implementations.actions["string"==typeof e?e:e.type];if(!a)continue;let f={context:l.context,event:n,self:r.self,system:r.system},h=i||"string"==typeof e?void 0:"params"in e?"function"==typeof e.params?e.params({context:l.context,event:n}):e.params:void 0;function c(){r.system._sendInspectionEvent({type:"@xstate.action",actorRef:r.self,action:{type:"string"==typeof e?e:"object"==typeof e?e.type:e.name||"(anonymous)",params:h}}),a(f,h)}if(!("resolve"in a)){r.self._processingStatus===P.Running?c():r.defer(()=>{c()});continue}let[d,p,g]=a.resolve(r,l,f,h,a,o);l=d,"retryResolve"in a&&s?.push([a,p]),"execute"in a&&(r.self._processingStatus===P.Running?a.execute(r,p):r.defer(a.execute.bind(null,r,p))),g&&(l=t(l,n,r,g,o,s))}return l}(t,e,n,r,{internalQueue:i,deferredActorIds:o},s);return s?.forEach(([t,e])=>{t.retryResolve(n,u,e)}),u}function tb(t,e,n,r=[]){let i=t,o=[];function s(t,e,r){n.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:n.self,event:e,snapshot:t,_transitions:r}),o.push(t)}if(e.type===a)return s(i=tj(tw(i,e,n),{status:"stopped"}),e,[]),{snapshot:i,microstates:o};let u=e;if(u.type!==l){let e=u,l=e.type.startsWith("xstate.error.actor"),c=t_(e,i);if(l&&!c.length)return s(i=tj(t,{status:"error",error:e.error}),e,[]),{snapshot:i,microstates:o};s(i=tg(c,t,n,u,!1,r),e,c)}let c=!0;for(;"active"===i.status;){let t=c?function(t,e){let n=new Set;for(let r of t._nodes.filter(B))t:for(let i of[r].concat(X(r,void 0)))if(i.always){for(let r of i.always)if(void 0===r.guard||U(r.guard,t.context,e,t)){n.add(r);break t}}return tf(Array.from(n),new Set(t._nodes),t.historyValue)}(i,u):[],e=t.length?i:void 0;if(!t.length){if(!r.length)break;t=t_(u=r.shift(),i)}c=(i=tg(t,i,n,u,!1,r))!==e,s(i,u,t)}return"active"!==i.status&&tw(i,u,n),{snapshot:i,microstates:o}}function tw(t,e,n){return tm(t,e,n,Object.values(t.children).map(t=>W(t)),[])}function t_(t,e){return e.machine.getTransitionData(e,t)}function tS(t,e){let n=H(tc(t,e));return G(t,[...n])}let tx=function(t){return function t(e,n){let r=v(e),i=v(n);return"string"==typeof i?"string"==typeof r&&i===r:"string"==typeof r?r in i:Object.keys(r).every(e=>e in i&&t(r[e],i[e]))}(t,this.value)},tk=function(t){return this.tags.has(t)},tE=function(t){let e=this.machine.getTransitionData(this,t);return!!e?.length&&e.some(t=>void 0!==t.target||t.actions.length)},tA=function(){let{_nodes:t,tags:e,machine:n,getMeta:r,toJSON:i,can:o,hasTag:s,matches:u,...l}=this;return{...l,tags:Array.from(e)}},tI=function(){return this._nodes.reduce((t,e)=>(void 0!==e.meta&&(t[e.id]=e.meta),t),{})};function tO(t,e){return{status:t.status,output:t.output,error:t.error,machine:e,context:t.context,_nodes:t._nodes,value:G(e.root,t._nodes),tags:new Set(t._nodes.flatMap(t=>t.tags)),children:t.children,historyValue:t.historyValue||{},matches:tx,hasTag:tk,can:tE,getMeta:tI,toJSON:tA}}function tj(t,e={}){return tO({...t,...e},t.machine)}function tP(t,e){let{_nodes:n,tags:r,machine:i,children:o,context:s,can:u,hasTag:l,matches:c,getMeta:a,toJSON:f,...h}=t,d={};for(let t in o){let n=o[t];d[t]={snapshot:n.getPersistedSnapshot(e),src:n.src,systemId:n._systemId,syncSnapshot:n._syncSnapshot}}return{...h,context:function t(e){let n;for(let r in e){let i=e[r];if(i&&"object"==typeof i){if("sessionId"in i&&"send"in i&&"ref"in i)(n??=Array.isArray(e)?e.slice():{...e})[r]={xstate$$type:j,id:i.id};else{let o=t(i);o!==i&&((n??=Array.isArray(e)?e.slice():{...e})[r]=o)}}}return n??e}(s),children:d}}function tT(t,e,n,r,{event:i,id:o,delay:s},{internalQueue:u}){let l;
2let c=e.machine.implementations.delays;if("string"==typeof i)throw Error(`Only event objects may be used with raise; use raise({ type: "${i}" }) instead`);let a="function"==typeof i?i(n,r):i;if("string"==typeof s){let t=c&&c[s];l="function"==typeof t?t(n,r):t}else l="function"==typeof s?s(n,r):s;return"number"!=typeof l&&u.push(a),[e,{event:a,id:o,delay:l}]}function tM(t,e){let{event:n,delay:r,id:i}=e;if("number"==typeof r){t.defer(()=>{let e=t.self;t.system.scheduler.schedule(e,e,n,r,i)});return}}function tL(t,e){function n(t,e){}return n.type="xstate.raise",n.event=t,n.id=e?.id,n.delay=e?.delay,n.resolve=tT,n.execute=tM,n}},94788:function(t,e,n){"use strict";n.d(e,{ZD:function(){return o},cY:function(){return h}}),n(30368);var r=n(33994),i=n(33601);function o(t,e){let n=(0,r.t)(e);if(!n.includes(t.type)){let e=1===n.length?`type "${n[0]}"`:`one of types "${n.join('", "')}"`;throw Error(`Expected event ${JSON.stringify(t)} to have ${e}`)}}let s=new WeakMap;function u(t,e,n){let r=s.get(t);return r?e in r||(r[e]=n()):(r={[e]:n()},s.set(t,r)),r[e]}let l={},c=t=>"string"==typeof t?{type:t}:"function"==typeof t?"resolve"in t?{type:t.type}:{type:t.name}:t;class a{constructor(t,e){if(this.config=t,this.key=void 0,this.id=void 0,this.type=void 0,this.path=void 0,this.states=void 0,this.history=void 0,this.entry=void 0,this.exit=void 0,this.parent=void 0,this.machine=void 0,this.meta=void 0,this.output=void 0,this.order=-1,this.description=void 0,this.tags=[],this.transitions=void 0,this.always=void 0,this.parent=e._parent,this.key=e._key,this.machine=e._machine,this.path=this.parent?this.parent.path.concat(this.key):[],this.id=this.config.id||[this.machine.id,...this.path].join(r.S),this.type=this.config.type||(this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.description=this.config.description,this.order=this.machine.idMap.size,this.machine.idMap.set(this.id,this),this.states=this.config.states?(0,r.m)(this.config.states,(t,e)=>new a(t,{_parent:this,_key:e,_machine:this.machine})):l,"compound"===this.type&&!this.config.initial)throw Error(`No initial state specified for compound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);this.history=!0===this.config.history?"shallow":this.config.history||!1,this.entry=(0,r.t)(this.config.entry).slice(),this.exit=(0,r.t)(this.config.exit).slice(),this.meta=this.config.meta,this.output="final"!==this.type&&this.parent?void 0:this.config.output,this.tags=(0,r.t)(t.tags).slice()}_initialize(){this.transitions=(0,r.f)(this),this.config.always&&(this.always=(0,r.a)(this.config.always).map(t=>(0,r.b)(this,r.N,t))),Object.keys(this.states).forEach(t=>{this.states[t]._initialize()})}get definition(){return{id:this.id,key:this.key,version:this.machine.version,type:this.t
2ype,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(c),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(t=>`#${t.id}`),source:`#${this.id}`,actions:this.initial.actions.map(c),eventType:null})}:void 0,history:this.history,states:(0,r.m)(this.states,t=>t.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(t=>({...t,actions:t.actions.map(c)})),entry:this.entry.map(c),exit:this.exit.map(c),meta:this.meta,order:this.order||-1,output:this.output,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get invoke(){return u(this,"invoke",()=>(0,r.t)(this.config.invoke).map((t,e)=>{let{src:n,systemId:i}=t,o=t.id??(0,r.c)(this.id,e),s="string"==typeof n?n:`xstate.invoke.${(0,r.c)(this.id,e)}`;return{...t,src:s,id:o,systemId:i,toJSON(){let{onDone:e,onError:n,...r}=t;return{...r,type:"xstate.invoke",src:s,id:o}}}}))}get on(){return u(this,"on",()=>[...this.transitions].flatMap(([t,e])=>e.map(e=>[t,e])).reduce((t,[e,n])=>(t[e]=t[e]||[],t[e].push(n),t),{}))}get after(){return u(this,"delayedTransitions",()=>(0,r.g)(this))}get initial(){return u(this,"initial",()=>(0,r.d)(this,this.config.initial))}next(t,e){let n;let i=e.type,o=[];for(let s of u(this,`candidates-${i}`,()=>(0,r.h)(this,i))){let{guard:u}=s,l=t.context,c=!1;try{c=!u||(0,r.e)(u,l,e,t)}catch(e){let t="string"==typeof u?u:"object"==typeof u?u.type:void 0;throw Error(`Unable to evaluate guard ${t?`'${t}' `:""}in transition for event '${i}' in state node '${this.id}':
3${e.message}`)}if(c){o.push(...s.actions),n=s;break}}return n?[n]:void 0}get events(){return u(this,"events",()=>{let{states:t}=this,e=new Set(this.ownEvents);if(t)for(let n of Object.keys(t)){let r=t[n];if(r.states)for(let t of r.events)e.add(`${t}`)}return Array.from(e)})}get ownEvents(){return Array.from(new Set([...this.transitions.keys()].filter(t=>this.transitions.get(t).some(t=>!(!t.target&&!t.actions.length&&!t.reenter)))))}}class f{constructor(t,e){this.config=t,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.__xstatenode=!0,this.idMap=new Map,this.root=void 0,this.id=void 0,this.states=void 0,this.events=void 0,this.id=t.id||"(machine)",this.implementations={actors:e?.actors??{},actions:e?.actions??{},delays:e?.delays??{},guards:e?.guards??{}},this.version=this.config.version,this.schemas=this.config.schemas,this.transition=this.transition.bind(this),this.getInitialSnapshot=this.getInitialSnapshot.bind(this),this.getPersistedSnapshot=this.getPersistedSnapshot.bind(this),this.restoreSnapshot=this.restoreSnapshot.bind(this),this.start=this.start.bind(this),this.root=new a(t,{_key:this.id,_machine:this}),this.root._initialize(),this.states=this.root.states,this.events=this.root.events}provide(t){let{actions:e,guards:n,actors:r,delays:i}=this.implementations;return new f(this.config,{actions:{...e,...t.actions},guards:{...n,...t.guards},actors:{...r,...t.actors},delays:{...i,...t.delays}})}resolveState(t){let e=(0,r.r)(this.root,t.value),n=(0,r.i)((0,r.j)(this.root,e));return(0,r.k)({_nodes:[...n],context:t.context||{},children:{},status:(0,r.l)(n,this.root)?"done":t.status||"active",output:t.output,error:t.error,historyValue:t.historyValue},this)}transition(t,e,n){return(0,r.n)(t,e,n).snapshot}microstep(t,e,n){return(0,r.n)(t,e,n).microstates}getTransitionData(t,e){return(0,r.o)(this.root,t.value,t,e)||[]}getPreInitialState(t,e,n){let{context:o}=this.config,s=(0,r.k)({context:"function"!=typeof o&&o?o:{},_nodes:[this.root],children:{},status:"active"},this);return"function"==typeof o?(0,r.p)(s,e,t,[(0,i.a)(({spawn:t,event:e,self:n})=>o({spawn:t,input:e.input,self:n}))],n):s}getInitialSnapshot(t,e){let n=(0,r.q)(e),i=[],o=this.getPreInitialState(t,n,i),s=(0,r.s)([{target:[...(0,r.u)(this.root)],source:this.root,reenter:!0,actions:[],eventType:null,toJSON:null}],o,t,n,!0,i),{snapshot:u}=(0,r.n)(s,n,t,i);return u}start(t){Object.values(t.children).forEach(t=>{"active"===t.getSnapshot().status&&t.start()})}getStateNodeById(t){let e=(0,r.v)(t),n=e.slice(1),i=(0,r.w)(e[0])?e[0].slice(1):e[0],o=this.idMap.get(i);if(!o)throw Error(`Child state node '#${i}' does not exist on machine '${this.id}'`);return(0,r.x)(o,n)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(t,e){return(0,r.y)(t,e)}restoreSnapshot(t,e){let n={},i=t.children;
3Object.keys(i).forEach(t=>{let o=i[t],s=o.snapshot,u=o.src,l="string"==typeof u?(0,r.z)(this,u):u;if(!l)return;let c=(0,r.A)(l,{id:t,parent:e.self,syncSnapshot:o.syncSnapshot,snapshot:s,src:u,systemId:o.systemId});n[t]=c});let o=(0,r.k)({...t,children:n,_nodes:Array.from((0,r.i)((0,r.j)(this.root,t.value)))},this),s=new Set;return!function t(e,n){if(!s.has(e))for(let i in s.add(e),e){let o=e[i];if(o&&"object"==typeof o){if("xstate$$type"in o&&o.xstate$$type===r.$){e[i]=n[o.id];continue}t(o,n)}}}(o.context,n),o}}function h({schemas:t,actors:e,actions:n,guards:r,delays:i}){return{createMachine:o=>new f({...o,schemas:t},{actors:e,actions:n,guards:r,delays:i})}}},17723:function(t,e,n){"use strict";function r(t){let e=t.charCodeAt(0);return e>=56320&&e<=57343}function i(t){let[e,n]=t;return[e,n]}function o(t,e){let n=t,r=e,i=n.length,o=r.length;if(0===i||0===o)return 0;i>o?n=n.substring(i-o):i<o&&(r=r.substring(0,i));let s=Math.min(i,o);if(n===r)return s;let u=0,l=1;for(let t=0;-1!==t;){let e=n.substring(s-l);if(-1===(t=r.indexOf(e)))break;l+=t,(0===t||n.substring(s-l)===r.substring(0,l))&&(u=l,l++)}return u}function s(t,e){if(!t||!e||t[0]!==e[0])return 0;let n=0,r=Math.min(t.length,e.length),i=r,o=0;for(;n<i;)t.substring(o,i)===e.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function u(t,e){if(!t||!e||t[t.length-1]!==e[e.length-1])return 0;let n=0,r=Math.min(t.length,e.length),i=r,o=0;for(;n<i;)t.substring(t.length-i,t.length-o)===e.substring(e.length-i,e.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function l(t){let e=t.map(t=>i(t)),n=!1,r=[],s=0,u=null,l=0,c=0,a=0,f=0,h=0;for(;l<e.length;)e[l][0]===_?(r[s++]=l,c=f,a=h,f=0,h=0,u=e[l][1]):(e[l][0]===w?f+=e[l][1].length:h+=e[l][1].length,u&&u.length<=Math.max(c,a)&&u.length<=Math.max(f,h)&&(e.splice(r[s-1],0,[b,u]),e[r[s-1]+1][0]=w,s--,l=--s>0?r[s-1]:-1,c=0,a=0,f=0,h=0,u=null,n=!0)),l++;for(n&&(e=g(e)),e=p(e),l=1;l<e.length;){if(e[l-1][0]===b&&e[l][0]===w){let t=e[l-1][1],n=e[l][1],r=o(t,n),i=o(n,t);r>=i?(r>=t.length/2||r>=n.length/2)&&(e.splice(l,0,[_,n.substring(0,r)]),e[l-1][1]=t.substring(0,t.length-r),e[l+1][1]=n.substring(r),l++):(i>=t.length/2||i>=n.length/2)&&(e.splice(l,0,[_,t.substring(0,i)]),e[l-1][0]=w,e[l-1][1]=n.substring(0,n.length-i),e[l+1][0]=b,e[l+1][1]=t.substring(i),l++),l++}l++}return e}n.d(e,{$T:function(){return S},D$:function(){return w},G8:function(){return B},Hy:function(){return y},JZ:function(){return _},M5:function(){return D},NL:function(){return b},QE:function(){return V},el:function(){return l},oY:function(){return R}});let c=/[^a-zA-Z0-9]/,a=/\s/,f=/[\r\n]/,h=/\n\r?\n$/,d=/^\r?\n\r?\n/;function p(t){let e=t.map(t=>i(t));function n(t,e){if(!t||!e)return 6;let n=t.charAt(t.length-1),r=e.charAt(0),i=n.match(c),o=r.match(c),s=i&&n.match(a),u=o&&r.match(a),l=s&&n.match(f),p=u&&r.match(f),g=l&&t.match(h),y=p&&e.match(d);return g||y?5:l||p?4:i&&!s&&u?3:s||u?2:i||o?1:0}let r=1;for(;r<e.length-1;){if(e[r-1][0]===_&&e[r+1][0]===_){let t=e[r-1][1],i=e[r][1],o=e[r+1][1],s=u(t,i);if(s){let e=i.substring(i.length-s);t=t.substring(0,t.length-s),i=e+i.substring(0,i.length-s),o=e+o}let l=t,c=i,a=o,f=n(t,i)+n(i,o);for(;i.charAt(0)===o.charAt(0);){t+=i.charAt(0),i=i.substring(1)+o.charAt(0),o=o.substring(1);let e=n(t,i)+n(i,o);e>=f&&(f=e,l=t,c=i,a=o)}e[r-1][1]!==l&&(l?e[r-1][1]=l:(e.splice(r-1,1),r--),e[r][1]=c,a?e[r+1][1]=a:(e.splice(r+1,1),r--))}r++}return e}function g(t){let e,n=t.map(t=>i(t));n.push([_,""]);let r=0,o=0,l=0,c="",a="";for(;r<n.length;)switch(n[r][0]){case w:l++,a+=n[r][1],r++;break;case b:o++,c+=n[r][1],r++;break;case _:o+l>1?(0!==o&&0!==l&&(0!==(e=s(a,c))&&(r-o-l>0&&n[r-o-l-1][0]===_?n[r-o-l-1][1]+=a.substring(0,e):(n.splice(0,0,[_,a.substring(0,e)]),r++),a=a.substring(e),c=c.substring(e)),0!==(e=u(a,c))&&(n[r][1]=a.substring(a.length-e)+n[r][1],a=a.substring(0,a.length-e),c=c.substring(0,c.length-e))),r-=o+l,n.splice(r,o+l),c.length&&(n.splice(r,0,[b,c]),r++),a.length&&(n.splice(r,0,[w,a]),r++),r++):0!==r&&n[r-1][0]===_?(n[r-1][1]+=n[r][1],n.splice(r,1)):r++,l=0,o=0,c="",a="";break;default:throw Error("Unknown diff operation")}""===n[n.length-1][1]&&n.pop();let f=!1;for(r=1;r<n.length-1;)n[r-1][0]===_&&n[r+1][0]===_&&(n[r][1].substring(n[r][1].length-n[r-1][1].length)===n[r-1][1]?(n[r][1]=n[r-1][1]+n[r][1].substring(0,n[r][1].length-n[r-1][1].length),n[r+1][1]=n[r-1][1]+n[r+1][1],n.splice(r-1,1),f=!0):n[r][1].substring(0,n[r+1][1].length)===n[r+1][1]&&(n[r-1][1]+=n[r+1][1],n[r][1]=n[r][1].substring(n[r+1][1].length)+n[r+1][1],n.splice(r+1,1),f=!0)),r++;return f&&(n=g(n)),n}function y(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=t.map(t=>i(t)),r=!1,o=[],s=0,u=null,l=0,c=!1,a=!1,f=!1,h=!1;for(;l<n.length;)n[l][0]===_?(n[l][1].length<e&&(f||h)?(o[s++]=l,c=f,a=h,u=n[l][1]):(s=0,u=null),f=!1,h=!1):(n[l][0]===b?h=!0:f=!0,u&&(c&&a&&f&&h||u.length<e/2&&3===function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((t,e)=>t+(e?1:0),0)}(c,a,f,h))&&(n.splice(o[s-1],0,[b,u]),n[o[s-1]+1][0]=w,s--,u=null,c&&a?(f=!0,h=!0,s=0):(l=--s>0?o[s-1]:-1,f=!1,h=!1),r=!0)),l++;return r&&(n=g(n)),n}function v(t,e,n,r,i){let o=t.substring(0,n),s=e.substring(0,r),u=t.substring(n),l=e.substring(r),c=x(o,s,{checkLines:!1,deadline:i}),a=x(u,l,{checkLines:!1,deadline:i});return c.concat(a)}function m(t,e,n){let r,i,o,l;
3let c=t.slice(n,n+Math.floor(t.length/4)),a=-1,f="";for(;-1!==(a=e.indexOf(c,a+1));){let c=s(t.slice(n),e.slice(a)),h=u(t.slice(0,n),e.slice(0,a));f.length<h+c&&(f=e.slice(a-h,a)+e.slice(a,a+c),r=t.slice(0,n-h),i=t.slice(n+c),o=e.slice(0,a-h),l=e.slice(a+c))}return 2*f.length>=t.length?[r||"",i||"",o||"",l||"",f||""]:null}let b=-1,w=1,_=0;function S(t,e,n){var i,o;let s;if(null===t||null===e)throw Error("Null input. (diff)");let u=x(t,e,{checkLines:!0,deadline:(o=(i=n||{}).timeout||1,s=1,void 0!==o&&(s=o<=0?Number.MAX_VALUE:o),Date.now()+1e3*s),...i});return function(t){for(let e=0;e<t.length;e++){let[n,i]=t[e];if(0===i.length)continue;let o=i[0];(function(t){let e=t.charCodeAt(0);return e>=55296&&e<=56319})(i[i.length-1])&&n===_&&A(t,e,1),r(o)&&n===_&&A(t,e,-1)}for(let e=0;e<t.length;e++)0===t[e][1].length&&t.splice(e,1)}(u),u}function x(t,e,n){let r=t,i=e;if(r===i)return r?[[_,r]]:[];let o=s(r,i),c=r.substring(0,o);o=u(r=r.substring(o),i=i.substring(o));let a=r.substring(r.length-o),f=function(t,e,n){let r;if(!t)return[[w,e]];if(!e)return[[b,t]];let i=t.length>e.length?t:e,o=t.length>e.length?e:t,s=i.indexOf(o);if(-1!==s)return r=[[w,i.substring(0,s)],[_,o],[w,i.substring(s+o.length)]],t.length>e.length&&(r[0][0]=b,r[2][0]=b),r;if(1===o.length)return[[b,t],[w,e]];let u=function(t,e){let n,r,i,o,s,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(u<=0)return null;let l=t.length>e.length?t:e,c=t.length>e.length?e:t;if(l.length<4||2*c.length<l.length)return null;let a=m(l,c,Math.ceil(l.length/4)),f=m(l,c,Math.ceil(l.length/2));if(a&&f)n=a[4].length>f[4].length?a:f;else{if(!a&&!f)return null;f?a||(n=f):n=a}if(!n)throw Error("Unable to find a half match.");return t.length>e.length?(r=n[0],i=n[1],o=n[2],s=n[3]):(o=n[0],s=n[1],r=n[2],i=n[3]),[r,i,o,s,n[4]]}(t,e);if(u){let t=u[0],e=u[1],r=u[2],i=u[3],o=u[4],s=x(t,r,n),l=x(e,i,n);return s.concat([[_,o]],l)}return n.checkLines&&t.length>100&&e.length>100?function(t,e,n){let r=t,i=e,o=function(t,e){let n=[],r={};function i(t){let e="",i=0,s=-1,u=n.length;for(;s<t.length-1;){-1===(s=t.indexOf("\n",i))&&(s=t.length-1);let l=t.slice(i,s+1);(r.hasOwnProperty?r.hasOwnProperty(l):void 0!==r[l])?e+=String.fromCharCode(r[l]):(u===o&&(l=t.slice(i),s=t.length),e+=String.fromCharCode(u),r[l]=u,n[u++]=l),i=s+1}return e}n[0]="";let o=4e4,s=i(t);return o=65535,{chars1:s,chars2:i(e),lineArray:n}}(r,i);r=o.chars1,i=o.chars2;let s=o.lineArray,u=x(r,i,{checkLines:!1,deadline:n.deadline});!function(t,e){for(let n=0;n<t.length;n++){let r=t[n][1],i=[];for(let t=0;t<r.length;t++)i[t]=e[r.charCodeAt(t)];t[n][1]=i.join("")}}(u,s),(u=l(u)).push([_,""]);let c=0,a=0,f=0,h="",d="";for(;c<u.length;){switch(u[c][0]){case w:f++,d+=u[c][1];break;case b:a++,h+=u[c][1];break;case _:if(a>=1&&f>=1){u.splice(c-a-f,a+f),c=c-a-f;let t=x(h,d,{checkLines:!1,deadline:n.deadline});for(let e=t.length-1;e>=0;e--)u.splice(c,0,t[e]);c+=t.length}f=0,a=0,h="",d="";break;default:throw Error("Unknown diff operation.")}c++}return u.pop(),u}(t,e,n):function(t,e,n){let r=t.length,i=e.length,o=Math.ceil((r+i)/2),s=2*o,u=Array(s),l=Array(s);for(let t=0;t<s;t++)u[t]=-1,l[t]=-1;u[o+1]=0,l[o+1]=0;let c=r-i,a=c%2!=0,f=0,h=0,d=0,p=0;for(let g=0;g<o&&!(Date.now()>n);g++){for(let d=-g+f;d<=g-h;d+=2){let p;let y=o+d,m=(p=d===-g||d!==g&&u[y-1]<u[y+1]?u[y+1]:u[y-1]+1)-d;for(;p<r&&m<i&&t.charAt(p)===e.charAt(m);)p++,m++;if(u[y]=p,p>r)h+=2;else if(m>i)f+=2;else if(a){let i=o+c-d;if(i>=0&&i<s&&-1!==l[i]&&p>=r-l[i])return v(t,e,p,m,n)}}for(let f=-g+d;f<=g-p;f+=2){let h;let y=o+f,m=(h=f===-g||f!==g&&l[y-1]<l[y+1]?l[y+1]:l[y-1]+1)-f;for(;h<r&&m<i&&t.charAt(r-h-1)===e.charAt(i-m-1);)h++,m++;if(l[y]=h,h>r)p+=2;else if(m>i)d+=2;else if(!a){let i=o+c-f;if(i>=0&&i<s&&-1!==u[i]){let s=u[i],l=o+s-i;if(s>=(h=r-h))return v(t,e,s,l,n)}}}}return[[b,t],[w,e]]}(t,e,n.deadline)}(r=r.substring(0,r.length-o),i=i.substring(0,i.length-o),n);return c&&f.unshift([_,c]),a&&f.push([_,a]),f=g(f)}function k(t,e,n){return 1===n?t+e:e+t}function E(t,e){return 1===e?[t.substring(0,t.length-1),t[t.length-1]]:[t.substring(1),t[0]]}function A(t,e,n){var r,i;let o=1===n?-1:1,s=null,u=null,l=e+n;for(;l>=0&&l<t.length&&(null===s||null===u);l+=n){let[r,i]=t[l];if(0!==i.length){if(r===w){null===s&&(s=l);continue}if(r===b){null===u&&(u=l);continue}if(r===_){if(null===s&&null===u){let[r,i]=E(t[e][1],n);t[e][1]=r,t[l][1]=k(t[l][1],i,o);return}break}}}if(null!==s&&null!==u&&(r=s,i=u,1===n?t[r][1][t[r][1].length-1]===t[i][1][t[i][1].length-1]:t[r][1][0]===t[i][1][0])){let[r,i]=E(t[s][1],o),[l]=E(t[u][1],o);t[s][1]=r,t[u][1]=l,t[e][1]=k(t[e][1],i,n);return}let[c,a]=E(t[e][1],n);t[e][1]=c,null===s?(t.splice(l,0,[w,a]),null!==u&&u>=l&&u++):t[s][1]=k(t[s][1],a,o),null===u?t.splice(l,0,[b,a]):t[u][1]=k(t[u][1],a,o)}let I={threshold:.5,distance:1e3};function O(t,e,n){if(null===t||null===e||null===n)throw Error("Null input. (match())");let r=Math.max(0,Math.min(n,t.length));return t===e?0:t.length?t.substring(r,r+e.length)===e?r:function(t,e,n){let r,i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e.length>32)throw Error("Pattern too long for this browser.");let s={...I,...o},u=function(t){let e={};for(let n=0;n<t.length;n++)e[t.charAt(n)]=0;for(let n=0;n<t.length;n++)e[t.charAt(n)]|=1<<t.length-n-1;return e}(e);function l(t,r){let i=t/e.length,o=Math.abs(n-r);return s.distance?i+o/s.distance:o?1:i}let c=s.threshold,a=t.indexOf(e,n);
3-1!==a&&(c=Math.min(l(0,a),c),-1!==(a=t.lastIndexOf(e,n+e.length))&&(c=Math.min(l(0,a),c)));let f=1<<e.length-1;a=-1;let h=e.length+t.length,d=[];for(let o=0;o<e.length;o++){for(r=0,i=h;r<i;)l(o,n+i)<=c?r=i:h=i,i=Math.floor((h-r)/2+r);h=i;let s=Math.max(1,n-i+1),p=Math.min(n+i,t.length)+e.length,g=Array(p+2);g[p+1]=(1<<o)-1;for(let e=p;e>=s;e--){let r=u[t.charAt(e-1)];if(0===o?g[e]=(g[e+1]<<1|1)&r:g[e]=(g[e+1]<<1|1)&r|((d[e+1]|d[e])<<1|1)|d[e+1],g[e]&f){let t=l(o,e-1);if(t<=c){if(c=t,(a=e-1)>n)s=Math.max(1,2*n-a);else break}}}if(l(o+1,n)>c)break;d=g}return a}(t,e,r):-1}function j(t,e){return{diffs:[],start1:t,start2:e,utf8Start1:t,utf8Start2:e,length1:0,length2:0,utf8Length1:0,utf8Length2:0}}function P(t){let e=[];for(let n=0;n<t.length;n++)t[n][0]!==w&&(e[n]=t[n][1]);return e.join("")}function T(t){let e=[];for(let n=0;n<t.length;n++)t[n][0]!==b&&(e[n]=t[n][1]);return e.join("")}function M(t){let e=0;for(let n=0;n<t.length;n++){let r=t.codePointAt(n);if(void 0===r)throw Error("Failed to get codepoint");e+=L(r)}return e}function L(t){return t<=127?1:t<=2047?2:t<=65535?3:4}let C={margin:4};function $(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...C,...t}}function R(t,e,n){if("string"==typeof t&&"string"==typeof e){let r=S(t,e,{checkLines:!0});return r.length>2&&(r=y(r=l(r))),z(t,r,$(n))}if(t&&Array.isArray(t)&&void 0===e)return z(P(t),t,$(n));if("string"==typeof t&&e&&Array.isArray(e))return z(t,e,$(n));throw Error("Unknown call format to make()")}function z(t,e,n){if(0===e.length)return[];let r=[],i=j(0,0),o=0,s=0,u=0,l=0,c=0,a=t,f=t;for(let t=0;t<e.length;t++){let h=e[t],[d,p]=h,g=p.length,y=M(p);switch(o||d===_||(i.start1=s,i.start2=u,i.utf8Start1=l,i.utf8Start2=c),d){case w:i.diffs[o++]=h,i.length2+=g,i.utf8Length2+=y,f=f.substring(0,u)+p+f.substring(u);break;case b:i.length1+=g,i.utf8Length1+=y,i.diffs[o++]=h,f=f.substring(0,u)+f.substring(u+g);break;case _:g<=2*n.margin&&o&&e.length!==t+1?(i.diffs[o++]=h,i.length1+=g,i.length2+=g,i.utf8Length1+=y,i.utf8Length2+=y):g>=2*n.margin&&o&&(F(i,a,n),r.push(i),i=j(-1,-1),o=0,a=f,s=u,l=c);break;default:throw Error("Unknown diff type")}d!==w&&(s+=g,l+=y),d!==b&&(u+=g,c+=y)}return o&&(F(i,a,n),r.push(i)),r}function F(t,e,n){if(0===e.length)return;let i=e.substring(t.start2,t.start2+t.length1),o=0;for(;e.indexOf(i)!==e.lastIndexOf(i)&&i.length<32-n.margin-n.margin;)o+=n.margin,i=e.substring(t.start2-o,t.start2+t.length1+o);o+=n.margin;let s=t.start2-o;s>=1&&r(e[s])&&s--;let u=e.substring(s,t.start2);u&&t.diffs.unshift([_,u]);let l=u.length,c=M(u),a=t.start2+t.length1+o;a<e.length&&r(e[a])&&a++;let f=e.substring(t.start2+t.length1,a);f&&t.diffs.push([_,f]);let h=f.length,d=M(f);t.start1-=l,t.start2-=l,t.utf8Start1-=c,t.utf8Start2-=c,t.length1+=l+h,t.length2+=l+h,t.utf8Length1+=c+d,t.utf8Length2+=c+d}function N(t,e){let n,r=0,i=0,o=0,s=0;for(n=0;n<t.length&&(t[n][0]!==w&&(r+=t[n][1].length),t[n][0]!==b&&(i+=t[n][1].length),!(r>e));n++)o=r,s=i;return t.length!==n&&t[n][0]===b?s:s+(e-o)}function V(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t)throw Error("Patches must be an array - pass the patch to `parsePatch()` first");let r=e;if(0===t.length)return[r,[]];let o=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=0,o=0;function s(t){for(;r<t;){let t=e.codePointAt(o);if(void 0===t)return o;r+=L(t),t>65535?o+=2:o+=1}if(!n.allowExceedingIndices&&r!==t)throw Error("Failed to determine byte offset");return o}let u=[];for(let e of t)u.push({diffs:e.diffs.map(t=>i(t)),start1:s(e.start1),start2:s(e.start2),utf8Start1:e.utf8Start1,utf8Start2:e.utf8Start2,length1:e.length1,length2:e.length2,utf8Length1:e.utf8Length1,utf8Length2:e.utf8Length2});return u}(t,r,{allowExceedingIndices:n.allowExceedingIndices}),s=n.margin||4,u=n.deleteThreshold||.4,l=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n="";for(let t=1;t<=e;t++)n+=String.fromCharCode(t);for(let n of t)n.start1+=e,n.start2+=e,n.utf8Start1+=e,n.utf8Start2+=e;let r=t[0],i=r.diffs;if(0===i.length||i[0][0]!==_)i.unshift([_,n]),r.start1-=e,r.start2-=e,r.utf8Start1-=e,r.utf8Start2-=e,r.length1+=e,r.length2+=e,r.utf8Length1+=e,r.utf8Length2+=e;else if(e>i[0][1].length){let t=i[0][1].length,o=e-t;i[0][1]=n.substring(t)+i[0][1],r.start1-=o,r.start2-=o,r.utf8Start1-=o,r.utf8Start2-=o,r.length1+=o,r.length2+=o,r.utf8Length1+=o,r.utf8Length2+=o}if(0===(i=(r=t[t.length-1]).diffs).length||i[i.length-1][0]!==_)i.push([_,n]),r.length1+=e,r.length2+=e,r.utf8Length1+=e,r.utf8Length2+=e;else if(e>i[i.length-1][1].length){let t=e-i[i.length-1][1].length;i[i.length-1][1]+=n.substring(0,t),r.length1+=t,r.length2+=t,r.utf8Length1+=t,r.utf8Length2+=t}return n}(o,s);r=l+r+l,function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;for(let n=0;n<t.length;n++){if(t[n].length1<=32)continue;let r=t[n];t.splice(n--,1);let i=r.start1,o=r.start2,s="";for(;0!==r.diffs.length;){let u=j(i-s.length,o-s.length),l=!0;if(""!==s){let t=M(s);u.length1=s.length,u.utf8Length1=t,u.length2=s.length,u.utf8Length2=t,u.diffs.push([_,s])}for(;0!==r.diffs.length&&u.length1<32-e;){let t=r.diffs[0][0],n=r.diffs[0][1],s=M(n);if(t===w){u.length2+=n.length,u.utf8Length2+=s,o+=n.length;let t=r.diffs.shift();t&&u.diffs.push(t),l=!1}else t===b&&1===u.diffs.length&&u.diffs[0][0]===_&&n.length>64?(u.length1+=n.length,u.utf8Length1+=s,i+=n.length,l=!1,u.diffs.push([t,n]),r.diffs.shift()):(s=M(n=n.substring(0,32-u.length1-e)),u.length1+=n.length,u.utf8Length1+=s,i+=n.length,t===_?(u.length2+=n.length,u.utf8Length2+=s,o+=n.length):l=!1,u.diffs.push([t,n]),n===r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(n.length))}s=(s=T(u.diffs)).substring(s.length-e);let c=P(r.diffs).substring(0,e),a=M(c);""!==c&&(u.length1+=c.length,u.length2+=c.length,u.utf8Length1+=a,u.utf8Length2+=a,0!==u.diffs.length&&u.diffs[u.diffs.length-1][0]===_?u.diffs[u.diffs.length-1][1]+=c:u.diffs.push([_,c])),l||t.splice(++n,0,u)}}}(o,s);let c=0,a=[];for(let t=0;t<o.length;t++){let e;let n=o[t].start2+c,i=P(o[t].diffs),s=-1;if(i.length>32?-1!==(e=O(r,i.substring(0,32),n))&&(-1===(s=O(r,i.substring(i.length-32),n+i.length-32))||e>=s)&&(e=-1):e=O(r,i,n),-1===e)a[t]=!1,c-=o[t].length2-o[t].length1;else{let l;if(a[t]=!0,c=e-n,l=-1===s?r.substring(e,e+i.length):r.substring(e,s+32),i===l)r=r.substring(0,e)+T(o[t].diffs)+r.substring(e+i.length);else{let n=S(i,l,{checkLines:!1});if(i.length>32&&function(t){let e=0,n=0,r=0;for(let i=0;i<t.length;i++){let o=t[i][0],s=t[i][1];switch(o){case w:n+=s.length;break;case b:r+=s.length;break;case _:e+=Math.max(n,r),n=0,r=0;break;default:throw Error("Unknown diff operation.")}}return e+Math.max(n,r)}(n)/i.length>u)a[t]=!1;else{n=p(n);let i=0,s=0;for(let u=0;u<o[t].diffs.length;u++){let l=o[t].diffs[u];l[0]!==_&&(s=N(n,i)),l[0]===w?r=r.substring(0,e+s)+l[1]+r.substring(e+s):l[0]===b&&(r=r.substring(0,e+s)+r.substring(e+N(n,i+l[1].length))),l[0]!==b&&(i+=l[1].length)}}}}}return[r=r.substring(l.length,r.length-l.length),a]}function D(t){return t.map(W).join("")}function W(t){let e,n,r;let{utf8Length1:i,utf8Length2:o,utf8Start1:s,utf8Start2:u,diffs:l}=t;e=0===i?"".concat(s,",0"):1===i?"".concat(s+1):"".concat(s+1,",").concat(i),n=0===o?"".concat(u,",0"):1===o?"".concat(u+1):"".concat(u+1,",").concat(o);let c=["@@ -".concat(e," +").concat(n," @@\n")];for(let t=0;t<l.length;t++){switch(l[t][0]){case w:r="+";break;case b:r="-";break;case _:r=" ";break;default:throw Error("Unknown patch operation.")}c[t+1]="".concat(r+encodeURI(l[t][1]),"\n")}return c.join("").replace(/%20/g," ")}let U=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;function B(t){if(!t)return[];let e=[],n=t.split("\n"),r=0;for(;r<n.length;){let t=n[r].match(U);if(!t)throw Error("Invalid patch string: ".concat(n[r]));let i=j(Z(t[1]),Z(t[3]));for(e.push(i),""===t[2]?(i.start1--,i.utf8Start1--,i.length1=1,i.utf8Length1=1):"0"===t[2]?(i.length1=0,i.utf8Length1=0):(i.start1--,i.utf8Start1--,i.utf8Length1=Z(t[2]),i.length1=i.utf8Length1),""===t[4]?(i.start2--,i.utf8Start2--,i.length2=1,i.utf8Length2=1):"0"===t[4]?(i.length2=0,i.utf8Length2=0):(i.start2--,i.utf8Start2--,i.utf8Length2=Z(t[4]),i.length2=i.utf8Length2),r++;r<n.length;){let t;let e=n[r],o=e.charAt(0);if("@"===o)break;if(""===o){r++;continue}try{t=decodeURI(e.slice(1))}catch(t){throw Error("Illegal escape in parse: ".concat(e))}let s=M(t)-t.length;if("-"===o)i.diffs.push([b,t]),i.length1-=s;else if("+"===o)i.diffs.push([w,t]),i.length2-=s;else if(" "===o)i.diffs.push([_,t]),i.length1-=s,i.length2-=s;else throw Error('Invalid patch mode "'.concat(o,'" in: ').concat(t));r++}}return e}function Z(t){return parseInt(t,10)}},4527:function(t,e,n){"use strict";function r(t){let e="undefined"!=typeof window&&"crypto"in window?window.crypto:globalThis.crypto;if(!e||!e.getRandomValues)throw Error("WebCrypto not available in this environment");return e.getRandomValues(t)}n.d(e,{Z:function(){return r}})},76356:function(t,e,n){"use strict";n.d(e,{a:function(){return d},v:function(){return f}});let r=["Value","Copy","Blank","ReturnIntoArray","ReturnIntoObject","ReturnIntoObjectSameKey","PushField","PushElement","PushParent","Pop","PushFieldCopy","PushFieldBlank","PushElementCopy","PushElementBlank","ReturnIntoObjectPop","ReturnIntoObjectSameKeyPop","ReturnIntoArrayPop","ObjectSetFieldValue","ObjectCopyField","ObjectDeleteField","ArrayAppendValue","ArrayAppendSlice","StringAppendString","StringAppendSlice"];class i{constructor(t,e,n){this.model=t,this.root=e,this.patch=n,this.i=0,this.inputStack=[],this.outputStack=[]}read(){return this.patch[this.i++]}process(){for(this.inputStack.push({value:this.root}),this.outputStack.push({value:this.root});this.i<this.patch.length;){let t=this.read(),e=r[t];if(!e)throw Error(`Unknown opcode: ${t}`);this[`process${e}`].apply(this)}let t=this.outputStack.pop();return this.finalizeOutput(t)}inputEntry(){return this.inputStack[this.inputStack.length-1]}inputKey(t,e){return t.keys||(t.keys=this.model.objectGetKeys(t.value).sort()),t.keys[e]}outputEntry(){return this.outputStack[this.outputStack.length-1]}outputArray(){let t=this.outputEntry();return t.writeValue||(t.writeValue=this.model.copyArray(t.value)),t.writeValue}outputObject(){let t=this.outputEntry();return t.writeValue||(t.writeValue=this.model.copyObject(t.value)),t.writeValue}outputString(){let t=this.outputEntry();return t.writeValue||(t.writeValue=this.model.copyString(t.value)),t.writeValue}finalizeOutput(t){return t.writeValue?this.model.finalize(t.writeValue):t.value}processValue(){let t=this.model.wrap(this.read());this.outputStack.push({value:t})}processCopy(){let t=this.inputEntry();this.outputStack.push({value:t.value})}processBlank(){this.outputStack.push({value:null})}processReturnIntoArray(){let t=this.outputStack.pop(),e=this.finalizeOutput(t),n=this.outputArray();this.model.arrayAppendValue(n,e)}processReturnIntoObject(){let t=this.read(),e=this.outputStack.pop(),n=this.finalizeOutput(e);n=this.model.markChanged(n);let r=this.outputObject();this.model.objectSetField(r,t,n)}processReturnIntoObjectSameKey(){let t=this.inputEntry(),e=this.outputStack.pop(),n=this.finalizeOutput(e),r=this.outputObject();this.model.objectSetField(r,t.key,n)}processPushField(){let t=this.read(),e=this.inputEntry(),n=this.inputKey(e,t),r=this.model.objectGetField(e.value,n);this.inputStack.push({value:r,key:n})}processPushElement(){let t=this.read(),e=this.inputEntry(),n=this.model.arrayGetElement(e.value,t);this.inputStack.push({value:n})}processPop(){this.inputStack.pop()}processPushFieldCopy(){this.processPushField(),this.processCopy()}processPushFieldBlank(){this.processPushField(),this.processBlank()}processPushElementCopy(){this.processPushElement(),this.processCopy()}processPushElementBlank(){this.processPushElement(),this.processBlank()}processReturnIntoObjectPop(){this.processReturnIntoObject(),this.processPop()}processReturnIntoObjectSameKeyPop(){this.processReturnIntoObjectSameKey(),this.processPop()}processReturnIntoArrayPop(){this.processReturnIntoArray(),this.processPop()}processObjectSetFieldValue(){this.processValue(),this.processReturnIntoObject()}processObjectCopyField(){this.processPushField(),this.processCopy(),this.processReturnIntoObjectSameKey(),this.processPop()}processObjectDeleteField(){let t=this.read(),e=this.inputEntry(),n=this.inputKey(e,t),r=this.outputObject();this.model.objectDeleteField(r,n)}processArrayAppendValue(){let t=this.model.wrap(this.read()),e=this.outputArray();this.model.arrayAppendValue(e,t)}processArrayAppendSlice(){let t=this.read(),e=this.read(),n=this.outputArray(),r=this.inputEntry().value;this.model.arrayAppendSlice(n,r,t,e)}processStringAppendString(){let t=this.model.wrap(this.read()),e=this.outputString();this.model.stringAppendValue(e,t)}processStringAppendSlice(){let t=this.read(),e=this.read(),n=this.outputString(),r=this.inputEntry().value;this.model.stringAppendSlice(n,r,t,e)}}function o(t){return t>>16?4:t>>11?3:t>>7?2:1}function s(t){let e=0;for(let n=0;n<t.length;n++){let r=o(t.codePointAt(n));4==r&&n++,e+=r}return e}function u(t,e,n=0){let r=n,i=0;for(i=n;r<e;i++){let e=o(t.codePointAt(i));4===e&&i++,r+=e}return i}class l{constructor(t){this.meta=t}wrap(t){return this.wrapWithMeta(t,this.meta,this.meta)}wrapWithMeta(t,e,n=this.meta){return{data:t,startMeta:e,endMeta:n}}asObject(t){if(!t.content){let e={};for(let[n,r]of Object.entries(t.data))e[n]=this.wrapWithMeta(r,t.startMeta);t.content={type:"object",fields:e}}return t.content}asArray(t){if(!t.content){let e=t.data.map(e=>this.wrapWithMeta(e,t.startMeta)),n=e.map(()=>this.meta);t.content={type:"array",elements:e,metas:n}}return t.content}asString(t){if(!t.content){let e=t.data,n={value:e,utf8size:s(e),uses:[],startMeta:t.startMeta,endMeta:t.endMeta};t.content=this.stringFromParts([n])}return t.content}stringFromParts(t){let e={type:"string",parts:t};for(let n of t)n.uses.push(e);return e}objectGetKeys(t){return t.content?Object.keys(t.content.fields):Object.keys(t.data)}objectGetField(t,e){return this.asObject(t).fields[e]}arrayGetElement(t,e){return this.asArray(t).elements[e]}finalize(t){return this.updateEndMeta(t),{content:t,startMeta:this.meta,endMeta:this.meta}}markChanged(t){return this.wrap(c(t))}updateEndMeta(t){if("string"==t.type)for(let e of t.parts)e.endMeta=this.meta;else if("array"===t.type)for(let e of t.elements)e.content&&e.endMeta!==this.meta&&this.updateEndMeta(e.content),e.endMeta=this.meta;else for(let e of Object.values(t.fields))e.content&&e.endMeta!==this.meta&&this.updateEndMeta(e.content),e.endMeta=this.meta}copyString(t){if(!t)return{type:"string",parts:[]};{let e=this.asString(t);return this.stringFromParts(e.parts.slice())}}copyObject(t){let e={type:"object",fields:{}};if(t){let n=this.asObject(t);Object.assign(e.fields,n.fields)}return e}copyArray(t){let e=t?this.asArray(t):null;return{type:"array",elements:e?e.elements:[],metas:e?e.metas:[]}}objectSetField(t,e,n){t.fields[e]=n}objectDeleteField(t,e){delete t.fields[e]}arrayAppendValue(t,e){t.elements.push(e),t.metas.push(this.meta)}arrayAppendSlice(t,e,n,r){let i=this.asArray(e),o=i.elements.length===n;if(t.elements.push(...i.elements.slice(n,r)),o)t.metas.push(...i.metas.slice(n,r));else for(let e=n;e<r;e++)t.metas.push(this.meta)}stringAppendValue(t,e){for(let n of this.asString(e).parts)this.stringAppendPart(t,n)}stringAppendPart(t,e){t.parts.push(e),e.uses.push(t)}resolveStringPart(t,e,n){if(0===n)return e;for(let r=e;r<t.parts.length;r++){let e=t.parts[r];if(n===e.utf8size)return r+1;if(n<e.utf8size)return this.splitString(e,n),r+1;n-=e.utf8size}throw Error("splitting string out of bounds")}
3splitString(t,e){let n,r=e,i=t.utf8size-r;if(t.utf8size!==t.value.length){let n=0;for(e=0;n<r;e++){let r=o(t.value.codePointAt(e));4===r&&e++,n+=r}}n=t.value.slice(0,e);let s={value:t.value.slice(e),utf8size:i,uses:t.uses.slice(),startMeta:t.startMeta,endMeta:t.endMeta};for(let e of(t.value=n,t.utf8size=r,t.uses)){let n=e.parts.indexOf(t);if(-1===n)throw Error("bug: mismatch between string parts and use.");e.parts.splice(n+1,0,s)}}stringAppendSlice(t,e,n,r){let i=this.asString(e),o=this.resolveStringPart(i,0,n),s=this.resolveStringPart(i,o,r-n);for(let e=o;e<s;e++){let n=i.parts[e];this.stringAppendPart(t,n)}}}function c(t){if("u">typeof t.data)return t.data;let e,n=t.content;switch(n.type){case"string":e=n.parts.map(t=>t.value).join("");break;case"array":e=n.elements.map(t=>c(t));break;case"object":for(let[t,r]of(e={},Object.entries(n.fields)))e[t]=c(r)}return t.data=e,e}function a(t){return t.content?t.content.type:Array.isArray(t.data)?"array":null===t.data?"null":typeof t.data}var f=Object.freeze({__proto__:null,applyPatch:function(t,e,n){return new i(new l(n),t,e).process()},getType:a,rebaseValue:function t(e,n){let r=a(e);if(r!==a(n))return n;let i=new l(e.endMeta),u=new l(n.endMeta);switch(r){case"object":{let r=i.asObject(e),o=u.asObject(n),s=0,l=Object.keys(r.fields).length,c=Object.keys(o.fields).length;for(let[e,n]of Object.entries(o.fields)){let i=r.fields[e];i&&(o.fields[e]=t(i,n),o.fields[e]===i&&s++)}return l===c&&l===s?e:n}case"array":{let r=i.asArray(e),o=u.asArray(n);if(r.elements.length!==o.elements.length)break;let s=0;for(let e=0;e<o.elements.length;e++)o.elements[e]=t(r.elements[e],o.elements[e]),o.elements[e]!==r.elements[e]&&s++;return 0===s?e:n}case"null":case"boolean":case"number":if(c(e)===c(n))return e;break;case"string":{let t=c(e),r=c(n);if(t===r)return e;let i=u.copyString(null),l=function(t,e){let n=Math.min(t.length,e.length),r=0;for(let i=0;i<n;){let n=t.codePointAt(i);if(n!==e.codePointAt(i))break;let s=o(n);r+=s,i+=4===s?2:1}return r}(t,r),a=function(t,e,n=0){let r=Math.min(t.length,e.length)-n,i=0;for(let n=0;n<r;){let r=t.codePointAt(t.length-1-n);if(r!==e.codePointAt(e.length-1-n))break;let s=o(r);i+=s,n+=4===s?2:1}return i}(t,r,l),f=s(r),h=s(t);0<l&&u.stringAppendSlice(i,e,0,l),l<f-a&&u.stringAppendSlice(i,n,l,f-a),h-a<h&&u.stringAppendSlice(i,e,h-a,h);let d=u.finalize(i);if(c(d)!==r)throw Error("incorrect string rebase");return d}}return n},unwrap:c,wrap:function(t,e){return{data:t,startMeta:e,endMeta:e}}});class h{wrap(t){return t}finalize(t){return Array.isArray(t)?t:t.data}markChanged(t){return t}objectGetKeys(t){return Object.keys(t)}objectGetField(t,e){return t[e]}arrayGetElement(t,e){return t[e]}copyObject(t){let e={type:"object",data:{}};if(null!==t)for(let[n,r]of Object.entries(t))e.data[n]=r;return e}copyArray(t){return null===t?[]:t.slice()}copyString(t){return{type:"string",data:null===t?"":t}}objectSetField(t,e,n){t.data[e]=n}objectDeleteField(t,e){delete t.data[e]}arrayAppendValue(t,e){t.push(e)}arrayAppendSlice(t,e,n,r){t.push(...e.slice(n,r))}stringAppendSlice(t,e,n,r){let i=u(e,n),o=u(e,r,i);t.data+=e.slice(i,o)}stringAppendValue(t,e){t.data+=e}}function d(t,e){return new i(new h,t,e).process()}},17423:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});let r=t=>"object"==typeof t&&null!=t&&1===t.nodeType,i=(t,e)=>(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t,o=(t,e)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){let n=getComputedStyle(t,null);return i(n.overflowY,e)||i(n.overflowX,e)||(t=>{let e=(t=>{if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}})(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)})(t)}return!1},s=(t,e,n,r,i,o,s,u)=>o<t&&s>e||o>t&&s<e?0:o<=t&&u<=n||s>=e&&u>=n?o-t-r:s>e&&u<n||o<t&&u>n?s-e+i:0,u=t=>{let e=t.parentElement;return null==e?t.getRootNode().host||null:e},l=(t,e)=>{var n,i,l,c;if("undefined"==typeof document)return[];let{scrollMode:a,block:f,inline:h,boundary:d,skipOverflowHiddenElements:p}=e,g="function"==typeof d?d:t=>t!==d;if(!r(t))throw TypeError("Invalid target");let y=document.scrollingElement||document.documentElement,v=[],m=t;for(;r(m)&&g(m);){if((m=u(m))===y){v.push(m);break}null!=m&&m===document.body&&o(m)&&!o(document.documentElement)||null!=m&&o(m,p)&&v.push(m)}
3let b=null!=(i=null==(n=window.visualViewport)?void 0:n.width)?i:innerWidth,w=null!=(c=null==(l=window.visualViewport)?void 0:l.height)?c:innerHeight,{scrollX:_,scrollY:S}=window,{height:x,width:k,top:E,right:A,bottom:I,left:O}=t.getBoundingClientRect(),{top:j,right:P,bottom:T,left:M}=(t=>{let e=window.getComputedStyle(t);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(t),L="start"===f||"nearest"===f?E-j:"end"===f?I+T:E+x/2-j+T,C="center"===h?O+k/2-M+P:"end"===h?A+P:O-M,$=[];for(let t=0;t<v.length;t++){let e=v[t],{height:n,width:r,top:i,right:o,bottom:u,left:l}=e.getBoundingClientRect();if("if-needed"===a&&E>=0&&O>=0&&I<=w&&A<=b&&E>=i&&I<=u&&O>=l&&A<=o)break;let c=getComputedStyle(e),d=parseInt(c.borderLeftWidth,10),p=parseInt(c.borderTopWidth,10),g=parseInt(c.borderRightWidth,10),m=parseInt(c.borderBottomWidth,10),j=0,P=0,T="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-g:0,M="offsetHeight"in e?e.offsetHeight-e.clientHeight-p-m:0,R="offsetWidth"in e?0===e.offsetWidth?0:r/e.offsetWidth:0,z="offsetHeight"in e?0===e.offsetHeight?0:n/e.offsetHeight:0;if(y===e)j="start"===f?L:"end"===f?L-w:"nearest"===f?s(S,S+w,w,p,m,S+L,S+L+x,x):L-w/2,P="start"===h?C:"center"===h?C-b/2:"end"===h?C-b:s(_,_+b,b,d,g,_+C,_+C+k,k),j=Math.max(0,j+S),P=Math.max(0,P+_);else{j="start"===f?L-i-p:"end"===f?L-u+m+M:"nearest"===f?s(i,u,n,p,m+M,L,L+x,x):L-(i+n/2)+M/2,P="start"===h?C-l-d:"center"===h?C-(l+r/2)+T/2:"end"===h?C-o+g+T:s(l,o,r,d,g+T,C,C+k,k);let{scrollLeft:t,scrollTop:c}=e;j=0===z?0:Math.max(0,Math.min(c+j/z,e.scrollHeight-n/z+M)),P=0===R?0:Math.max(0,Math.min(t+P/R,e.scrollWidth-r/R+T)),L+=c-j,C+=t-P}$.push({el:e,top:j,left:P})}return $},c=t=>!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"};function a(t,e){if(!t.isConnected||!(t=>{let e=t;for(;e&&e.parentNode;){if(e.parentNode===document)return!0;e=e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}return!1})(t))return;let n=(t=>{let e=window.getComputedStyle(t);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(t);if("object"==typeof e&&"function"==typeof e.behavior)return e.behavior(l(t,e));let r="boolean"==typeof e||null==e?void 0:e.behavior;for(let{el:i,top:o,left:s}of l(t,c(e))){let t=o-n.top+n.bottom,e=s-n.left+n.right;i.scroll({top:t,left:e,behavior:r})}}},97582:function(t,e,n){"use strict";n.d(e,{CR:function(){return c},FC:function(){return d},Jh:function(){return u},KL:function(){return p},XA:function(){return l},ZT:function(){return i},ev:function(){return f},fl:function(){return a},mG:function(){return s},pi:function(){return o},qq:function(){return h}});var r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function u(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(s,u)}l((r=r.apply(t,e||[])).next())})}function u(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(l){return function(u){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,r=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){s=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){s.label=u[1];break}if(6===u[0]&&s.label<i[1]){s.label=i[1],i=u;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(u);break}i[2]&&s.ops.pop(),s.trys.pop();continue}u=e.call(t,s)}catch(t){u=[6,t],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}}function l(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function a(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(c(arguments[e]));return t}function f(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function h(t){return this instanceof h?(this.v=t,this):new h(t)}function d(t,e,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(t){i[t]&&(r[t]=function(e){return new Promise(function(n,r){o.push([t,e,n,r])>1||u(t,e)})})}function u(t,e){try{var n;(n=i[t](e)).value instanceof h?Promise.resolve(n.value.v).then(l,c):a(o[0][2],n)}catch(t){a(o[0][3],t)}}function l(t){u("next",t)}function c(t){u("throw",t)}function a(t,e){t(e),o.shift(),o.length&&u(o[0][0],o[0][1])}}function p(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=l(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,i){!function(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)}(r,i,(e=t[n](e)).done,e.value)})}}}"function"==typeof SuppressedError&&SuppressedError},41622:function(t,e,n){"use strict";n.d(e,{i:function(){return i}});var r=n(67294);function i(t){let e=(0,r.useRef)(null);return(0,r.useInsertionEffect)(()=>{e.current=t},[t]),(0,r.useCallback)((...t)=>(0,e.current)(...t),[])}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.