1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[19648],{74685:function(t,e,n){n.d(e,{eO:function(){return l}});var r=n(2265),i=r.useLayoutEffect,s=n(62381);n(35195);var o=n(82558);let a=(t,e)=>{e(t);let n=t.getSnapshot().children;n&&Object.values(n).forEach(t=>{a(t,e)})};function l(t,...[e]){return function(t,...[e]){let n=function(t,...[e]){let[[n,o],a]=(0,r.useState)(()=>{let n=(0,s.c)(t,e);return[t.config,n]});if(t.config!==n){let n=(0,s.c)(t,{...e,snapshot:o.getPersistedSnapshot({__unsafeAllowInlineActors:!0})});a([t.config,n]),o=n}return i(()=>{o.logic.implementations=t.implementations}),o}(t,e),l=(0,r.useCallback)(()=>n.getSnapshot(),[n]),c=(0,r.useCallback)(t=>{let{unsubscribe:e}=n.subscribe(t);return e},[n]),u=(0,o.useSyncExternalStore)(c,l,l);return(0,r.useEffect)(()=>(n.start(),()=>{!function(t){let e=[];a(t,t=>{e.push([t,t.getSnapshot()]),t.observers=new Set});let n=t.system.getSnapshot?.();t.stop(),t.system._snapshot=n,e.forEach(([t,e])=>{t._processingStatus=0,t._snapshot=e})}(n)}),[n]),[u,n.send,n]}(t,e)}},24369:function(t,e,n){var r=n(2265),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},s=r.useState,o=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function c(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!i(t,n)}catch(t){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=s({inst:{value:n,getSnapshot:e}}),i=r[0].inst,u=r[1];return a(function(){i.value=n,i.getSnapshot=e,c(i)&&u({inst:i})},[t,n,e]),o(function(){return c(i)&&u({inst:i}),t(function(){c(i)&&u({inst:i})})},[t]),l(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},92860:function(t,e,n){var r=n(2265),i=n(82558),s="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=i.useSyncExternalStore,a=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var h=a(null);if(null===h.current){var f={hasValue:!1,value:null};h.current=f}else f=h.current;var d=o(t,(h=c(function(){function t(t){if(!l){if(l=!0,o=t,t=r(t),void 0!==i&&f.hasValue){var e=f.value;if(i(e,t))return a=e}return a=t}if(e=a,s(o,t))return e;var n=r(t);return void 0!==i&&i(e,n)?(o=t,e):(o=t,a=n)}var o,a,l=!1,c=void 0===n?null:n;return[function(){return t(e())},null===c?void 0:function(){return t(c())}]},[e,n,r,i]))[0],h[1]);return l(function(){f.hasValue=!0,f.value=d},[d]),u(d),d}},82558:function(t,e,n){t.exports=n(24369)},35195:function(t,e,n){t.exports=n(92860)},55519:function(t,e,n){n.d(e,{a:function(){return s}});var r=n(62381);function i(t,e,n,i,{assignment:s}){if(!e.context)throw Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");let o={},a={context:e.context,event:n.event,spawn:function(t,{machine:e,context:n},i,s){let o=(o,a)=>{if("string"!=typeof o)return(0,r.c)(o,{id:a?.id,parent:t.self,syncSnapshot:a?.syncSnapshot,input:a?.input,src:o,systemId:a?.systemId});{let l=(0,r.V)(e,o);if(!l)throw Error(`Actor logic '${o}' not implemented in machine '${e.id}'`);let c=(0,r.c)(l,{id:a?.id,parent:t.self,syncSnapshot:a?.syncSnapshot,input:"function"==typeof a?.input?a.input({context:n,event:i,self:t.self}):a?.input,src:o,systemId:a?.systemId});return s[c.id]=c,c}};return(e,n)=>{let i=o(e,n);return s[i.id]=i,t.defer(()=>{i._processingStatus!==r.Z.Stopped&&i.start()}),i}}(t,e,n.event,o),self:t.self,system:t.system},l={};if("function"==typeof s)l=s(a,i);else for(let t of Object.keys(s)){let e=s[t];l[t]="function"==typeof e?e(a,i):e}let c=Object.assign({},e.context,l);return[(0,r._)(e,{context:c,children:Object.keys(o).length?{...e.children,...o}:e.children}),void 0,void 0]}function s(t){function e(t,e){}return e.type="xstate.assign",e.assignment=t,e.resolve=i,e}},62381:function(t,e,n){var r;n.d(e,{$:function(){return $},B:function(){return b},C:function(){return te},D:function(){return z},E:function(){return S},F:function(){return tt},G:function(){return ti},H:function(){return X},I:function(){return tr},J:function(){return tS},K:function(){return F},L:function(){return tI},M:function(){return Y},N:function(){return a},O:function(){return function t(e,n,r,i){return"string"==typeof n?function(t,e,n,r){let i=tc(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 s=Object.keys(n),o=t(tc(e,s[0]),n[s[0]],r,i);return o&&o.length?o:e.next(r,i)}(e,n,r,i):function(e,n,r,i){let s=[];for(let o of Object.keys(n)){let a=n[o];if(!a)continue;let l=t(tc(e,o),a,r,i);l&&s.push(...l)}return s.length?s:e.next(r,i)}(e,n,r,i)}},P:function(){return tx},Q:function(){return y},R:function(){return Q},S:function(){return o},T:function(){return tu},U:function(){return tC},V:function(){return j},W:function(){return c},Y:function(){return f},Z:function(){return I},_:function(){return tR},a:function(){return T},b:function(){return N},c:function(){return A},d:function(){return tb},e:function(){return d},i:function(){return tm},p:function(){return th},r:function(){return tV},s:function(){return D},t:function(){return w},y:function(){return g},z:function(){return tn}});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 s{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 o=".",a="",l="xstate.init",c="xstate.error",u="xstate.stop";function h(t,e){return{type:`xstate.done.state.${t}`,output:e}}function f(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 v="function"==typeof Symbol&&Symbol.observable||"@@observable";function y(t){if(x(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 m(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 g(t,e){let n={},r=Object.keys(t);for(let i=0;i<r.length;i++){let s=r[i];n[s]=e(t[s],s,t,i)}return n}function w(t){return void 0===t?[]:x(t)?t:[t]}function _(t,e,n,r){return"function"==typeof t?t({context:e,event:n,self:r}):t}function x(t){return Array.isArray(t)}function b(t){return(x(t)?t:[t]).map(t=>void 0===t||"string"==typeof t?{target:t}:t)}function E(t){if(void 0!==t&&""!==t)return w(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 S(t,e){return`${e}.${t}`}function j(t,e){let n=e.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!n)return t.implementations.actors[e];let[,r,i]=n,s=t.getStateNodeById(i).config.invoke;return(Array.isArray(s)?s[r]:s).src}function M(t,e){return`${t.sessionId}.${e}`}let L=0,O=!1,$=1,I=((r={})[r.NotStarted=0]="NotStarted",r[r.Running=1]="Running",r[r.Stopped=2]="Stopped",r),R={clock:{setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t)},logger:console.log.bind(console),devTools:!1};class C{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 s(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=I.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={...R,...e},{clock:r,logger:i,parent:o,syncSnapshot:a,id:l,systemId:c,inspect:u}=n;this.system=o?o.system:function(t,e){let n=new Map,r=new Map,i=new WeakMap,s=new Set,o={},{clock:a,logger:l}=e,c={schedule:(t,e,n,r,i=Math.random().toString(36).slice(2))=>{let s={source:t,target:e,event:n,delay:r,id:i,startedAt:Date.now()},l=M(t,i);u._snapshot._scheduledEvents[l]=s;let c=a.setTimeout(()=>{delete o[l],delete u._snapshot._scheduledEvents[l],u._relay(t,e,n)},r);o[l]=c},cancel:(t,e)=>{let n=M(t,e),r=o[n];delete o[n],delete u._snapshot._scheduledEvents[n],void 0!==r&&a.clearTimeout(r)},cancelAll:t=>{for(let e in u._snapshot._scheduledEvents){let n=u._snapshot._scheduledEvents[e];n.source===t&&c.cancel(t,n.id)}}},u={_snapshot:{_scheduledEvents:(e?.snapshot&&e.snapshot.scheduler)??{}},_bookId:()=>`x:${L++}`,_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),getAll:()=>Object.fromEntries(r.entries()),_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 s.add(e),{unsubscribe(){s.delete(e)}}},_sendInspectionEvent:e=>{if(!s.size)return;let n={...e,rootId:t.sessionId};
1s.forEach(t=>t.next?.(n))},_relay:(t,e,n)=>{u._sendInspectionEvent({type:"@xstate.event",sourceRef:t,actorRef:e,event:n}),e._send(n)},scheduler:c,getSnapshot:()=>({_scheduledEvents:{...u._snapshot._scheduledEvents}}),start:()=>{let t=u._snapshot._scheduledEvents;for(let e in u._snapshot._scheduledEvents={},t){let{source:n,target:r,event:i,delay:s,id:o}=t[e];c.schedule(n,r,i,s,o)}},_clock:a,_logger:l};return u}(this,{clock:r,logger:i}),u&&!o&&this.system.inspect(k(u)),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=o,this._syncSnapshot=a,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[...e?e.values():[],...n?n.values():[]])try{r(t)}catch(t){p(t)}},actionExecutor:t=>{let e=()=>{if(this._actorScope.system._sendInspectionEvent({type:"@xstate.action",actorRef:this,action:{type:t.type,params:t.params}}),!t.exec)return;let e=O;try{O=!0,t.exec(t.info,t.params)}finally{O=e}};this._processingStatus===I.Running?e():this._deferred.push(e)}},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.next?.(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!==I.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===I.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=I.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===u&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===I.Stopped||((this.mailbox.clear(),this._processingStatus===I.NotStarted)?this._processingStatus=I.Stopped:this.mailbox.enqueue({type:u})),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(),this.eventListeners.clear()}_reportError(t){if(!this.observers.size){this._parent||p(t),this.eventListeners.clear();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(),this.eventListeners.clear(),e&&p(t)}_error(t){this._stopProcedure(),this._reportError(t),this._parent&&this.system._relay(this,this._parent,f(this.id,t))}_stopProcedure(){return this._processingStatus!==I.Running||(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new s(this._process.bind(this)),this._processingStatus=I.Stopped,this.system._unregister(this)),this}_send(t){this._processingStatus!==I.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:$,id:this.id}}getPersistedSnapshot(t){return this.logic.getPersistedSnapshot(this._snapshot,t)}[v](){return this}getSnapshot(){return this._snapshot}}function A(t,...[e]){return new C(t,e)}function Z(t,e,n,r,{sendId:i}){return[e,{sendId:"function"==typeof i?i(n,r):i},void 0]}function V(t,e){t.defer(()=>{t.system.scheduler.cancel(t.self,e.sendId)})}function T(t){function e(t,e){}return e.type="xstate.cancel",e.sendId=t,e.resolve=Z,e.execute=V,e}function B(t,e,n,r,{id:i,systemId:s,src:o,input:a,syncSnapshot:l}){let c,u;
1let h="string"==typeof o?j(e.machine,o):o,f="function"==typeof i?i(n):i;return h&&(u="function"==typeof a?a({context:e.context,event:n.event,self:t.self}):a,c=A(h,{id:f,src:o,parent:t.self,syncSnapshot:l,systemId:s,input:u})),[tR(e,{children:{...e.children,[f]:c}}),{id:i,systemId:s,actorRef:c,src:o,input:u},void 0]}function W(t,{actorRef:e}){e&&t.defer(()=>{e._processingStatus!==I.Stopped&&e.start()})}function N(...[t,{id:e,systemId:n,input:r,syncSnapshot:i=!1}={}]){function s(t,e){}return s.type="xstate.spawnChild",s.id=e,s.systemId=n,s.src=t,s.input=r,s.syncSnapshot=i,s.resolve=B,s.execute=W,s}function P(t,e,n,r,{actorRef:i}){let s="function"==typeof i?i(n,r):i,o="string"==typeof s?e.children[s]:s,a=e.children;return o&&(a={...a},delete a[o.id]),[tR(e,{children:a}),o,void 0]}function H(t,e){if(e){if(!function t(e,n){let r=n.getSnapshot();if(r&&"children"in r)for(let n of Object.values(r.children))t(e,n);e.system._unregister(n)}(t,e),e._processingStatus!==I.Running){t.stopChild(e);return}t.defer(()=>{t.stopChild(e)})}}function D(t){function e(t,e){}return e.type="xstate.stopChild",e.actorRef=t,e.resolve=P,e.execute=H,e}function z(t,e,n,r){let{machine:i}=r,s="function"==typeof t,o=s?t:i.implementations.guards["string"==typeof t?t:t.type];if(!s&&!o)throw Error(`Guard '${"string"==typeof t?t:t.type}' is not implemented.'.`);if("function"!=typeof o)return z(o,e,n,r);let a={context:e,event:n},l=s||"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 o?o.check(r,a,o):o(a,l)}function J(t){return"atomic"===t.type||"final"===t.type}function U(t){return Object.values(t.states).filter(t=>"history"!==t.type)}function q(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 F(t){let e=new Set(t),n=G(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 U(t))if("history"!==n.type&&!e.has(n))for(let t of ta(n))e.add(t)}}else ta(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 G(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 K(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(J(t))return t.key}let i={};for(let e of r)i[e.key]=t(e,n);return i}(t,G(F(e)))}function Y(t,e){return"compound"===e.type?U(e).some(e=>"final"===e.type&&t.has(e)):"parallel"===e.type?U(e).every(e=>Y(t,e)):"final"===e.type}let Q=t=>"#"===t[0];function X(t,e){return t.transitions.get(e)||[...t.transitions.keys()].filter(t=>(function(t,e){if(e===t||"*"===e)return!0;if(!e.endsWith(".*"))return!1;let n=e.split("."),r=t.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})(e,t)).sort((t,e)=>e.length-t.length).flatMap(e=>t.transitions.get(e))}function tt(t){let e=t.config.after;if(!e)return[];let n=e=>{var n;let r=(n=t.id,{type:`xstate.after.${e}.${n}`}),i=r.type;return t.entry.push(tV(r,{id:i,delay:e})),t.exit.push(T(i)),i};return Object.keys(e).flatMap(t=>{let r=e[t],i=Number.isNaN(+t)?t:+t,s=n(i);return w("string"==typeof r?{target:r}:r).map(t=>({...t,event:s,delay:i}))}).map(e=>{let{delay:n}=e;return{...te(t,e.event,e),delay:n}})}function te(t,e,n){let r=E(n.target),i=n.reenter??!1,s=function(t,e){if(void 0!==e)return e.map(e=>{if("string"!=typeof e)return e;if(Q(e))return t.machine.getStateNodeById(e);let n=e[0]===o;if(n&&!t.parent)return tu(t,e.slice(1));let r=n?t.key+e:e;if(t.parent)try{return tu(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),a={...n,actions:w(n.actions),guard:n.guard,target:s,source:t,reenter:i,eventType:e,toJSON:()=>({...a,source:`#${t.id}`,target:s?s.map(t=>`#${t.id}`):void 0})};return a}function tn(t){let e=new Map;if(t.config.on)for(let n of Object.keys(t.config.on)){if(n===a)throw Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');let r=t.config.on[n];e.set(n,b(r).map(e=>te(t,n,e)))}if(t.config.onDone){let n=`xstate.done.state.${t.id}`;e.set(n,b(t.config.onDone).map(e=>te(t,n,e)))}for(let n of t.invoke){if(n.onDone){let r=`xstate.done.actor.${n.id}`;e.set(r,b(n.onDone).map(e=>te(t,r,e)))}if(n.onError){let r=`xstate.error.actor.${n.id}`;e.set(r,b(n.onError).map(e=>te(t,r,e)))}if(n.onSnapshot){let r=`xstate.snapshot.${n.id}`;e.set(r,b(n.onSnapshot).map(e=>te(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 tr(t){let e=[],n=r=>{Object.values(r).forEach(r=>{if(r.config.route&&r.config.id){let n=r.config.id,i=r.config.route.guard,s={...r.config.route,guard:(t,e)=>t.event.to===`#${n}`&&(!i||"function"!=typeof i||i(t,e)),target:`#${n}`};e.push(te(t,"xstate.route",s))}r.states&&n(r.states)})};n(t.states),e.length>0&&t.transitions.set("xstate.route",e)}function ti(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?w(e.actions):[],eventType:null,reenter
2:!1,target:n?[n]:[],toJSON:()=>({...r,source:`#${t.id}`,target:n?[`#${n.id}`]:[]})};return r}function ts(t){let e=E(t.config.target);return e?{target:e.map(e=>"string"==typeof e?tu(t.parent,e):e)}:t.parent.initial}function to(t){return"history"===t.type}function ta(t){let e=tl(t);for(let n of e)for(let r of q(n,t))e.add(r);return e}function tl(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 U(n))t(e)}}(t),e}function tc(t,e){if(Q(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 tu(t,e){if("string"==typeof e&&Q(e))try{return t.machine.getStateNodeById(e)}catch{}let n=y(e).slice(),r=t;for(;n.length;){let t=n.shift();if(!t.length)break;r=tc(r,t)}return r}function th(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=>tc(t,e)).filter(Boolean);return[t.machine.root,t].concat(r,n.reduce((n,r)=>{let i=tc(t,r);if(!i)return n;let s=th(i,e[r]);return n.concat(s)},[]))}function tf(t,e){let n=t;for(;n.parent&&n.parent!==e;)n=n.parent;return n.parent===e}function td(t,e,n){let r=new Set;for(let i of t){let t=!1,s=new Set;for(let o 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}(ty([i],e,n),ty([o],e,n))){if(tf(i.source,o.source))s.add(o);else{t=!0;break}}if(!t){for(let t of s)r.delete(t);r.add(i)}}return Array.from(r)}function tp(t,e){if(!t.target)return[];let n=new Set;for(let r of t.target)if(to(r)){if(e[r.id])for(let t of e[r.id])n.add(t);else for(let t of tp(ts(r),e))n.add(t)}else n.add(r);return[...n]}function tv(t,e){let n=tp(t,e);if(!n)return;if(!t.reenter&&n.every(e=>e===t.source||tf(e,t.source)))return t.source;let r=function(t){let[e,...n]=t;for(let t of q(e,void 0))if(n.every(e=>tf(e,t)))return t}(n.concat(t.source));return r||(t.reenter?void 0:t.source.machine.root)}function ty(t,e,n){let r=new Set;for(let i of t)if(i.target?.length){let t=tv(i,n);for(let n of(i.reenter&&i.source===t&&r.add(t),e))tf(n,t)&&r.add(n)}return[...r]}function tm(t,e,n,r,i){return tg([{target:[...tl(t)],source:t,reenter:!0,actions:[],eventType:null,toJSON:null}],e,n,r,!0,i)}function tg(t,e,n,r,i,s){let o=[];if(!t.length)return[e,o];let a=n.actionExecutor;n.actionExecutor=t=>{o.push(t),a(t)};try{let a=new Set(e._nodes),l=e.historyValue,c=td(t,a,l),u=e;i||([u,l]=function(t,e,n,r,i,s,o,a){let l,c=t,u=ty(r,i,s);for(let t of(u.sort((t,e)=>e.order-t.order),u))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=>J(e)&&tf(e,t):e=>e.parent===t,(l??={...s})[e.id]=Array.from(i).filter(n)}for(let t of u)c=tx(c,e,n,[...t.exit,...t.invoke.map(t=>D(t.id))],o,void 0),i.delete(t);return[c,l||s]}(u,r,n,c,a,l,s,n.actionExecutor)),u=tx(u,r,n,c.flatMap(t=>t.actions),s,void 0),u=function(t,e,n,r,i,s,o,a){let l=t,c=new Set,u=new Set;(function(t,e,n,r){for(let i of t){let t=tv(i,e);for(let s of i.target||[])!to(s)&&(i.source!==s||i.source!==t||i.reenter)&&(r.add(s),n.add(s)),tw(s,e,n,r);for(let s of tp(i,e)){let o=q(s,t);t?.type==="parallel"&&o.push(t),t_(r,e,n,o,!i.source.parent&&i.reenter?void 0:t)}}})(r,o,u,c),a&&u.add(t.machine.root);let f=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(u.has(t)){let e=t.initial.actions;r.push(...e)}if(l=tx(l,e,n,r,s,t.invoke.map(t=>t.id)),"final"===t.type){let r=t.parent,o=r?.type==="parallel"?r:r?.parent,a=o||t;for(r?.type==="compound"&&s.push(h(r.id,void 0!==t.output?_(t.output,l.context,e,n.self):void 0));o?.type==="parallel"&&!f.has(o)&&Y(i,o);)f.add(o),s.push(h(o.id)),a=o,o=o.parent;if(o)continue;l=tR(l,{status:"done",output:function(t,e,n,r,i){if(void 0===r.output)return;let s=h(i.id,void 0!==i.output&&i.parent?_(i.output,t.context,e,n.self):void 0);return _(r.output,t.context,s,n.self)}(l,e,n,l.machine.root,a)})}}return l}(u,r,n,c,a,s,l,i);let f=[...a];"done"===u.status&&(u=tx(u,r,n,f.sort((t,e)=>e.order-t.order).flatMap(t=>t.exit),s,void 0));try{if(l===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,a))return[u,o];return[tR(u,{_nodes:f,historyValue:l}),o]}catch(t){throw t}}finally{n.actionExecutor=a}}function tw(t,e,n,r){if(to(t)){if(e[t.id]){let i=e[t.id];for(let t of i)r.add(t),tw(t,e,n,r);for(let s of i)t_(r,e,n,q(s,t.parent))}else{let i=ts(t);for(let s of i.target)r.add(s),i===t.parent?.initial&&n.add(t.parent),tw(s,e,n,r);for(let s of i.target)t_(r,e,n,q(s,t.parent))}}else if("compound"===t.type){let[i]=t.initial.target;to(i)||(r.add(i),n.add(i)),tw(i,e,n,r),t_(r,e,n,q(i,t))}else if("parallel"===t.type)for(let i of U(t).filter(t=>!to(t)))[...r].some(t=>tf(t,i))||(to(i)||(r.add(i),n.add(i)),tw(i,e,n,r))}function t_(t,e,n,r,i){for(let s of r)if((!i||tf(s,i))&&t.add(s),"parallel"===s.type)for(let r of U(s).filter(t=>!to(t)))[...t].some(t=>tf(t,r))||(t.add(r),tw(r,e,n,t))}function tx(t,e,n,r,i,s){let o=s?[]:void 0,a=function t(e,n,r,i,s,o){let{machine:a}=e,l=e;for(let e of i){var c;let i="function"==typeof e,u=i?e:(c="string"==typeof e?e:e.type,a.implementations.actions[c]),h={context:l.context,event:n,self:r.self,system:r.system},f=i||"string"==typeof e?void 0:"params"in e?"function"==typeof e.params?e.params({context:l.context,event:n}):e.params:void 0;if(!u||!("resolve"in u)){r.actionExecutor({type:"string"==typeof e?e:"object"==typeof e?e.type:e.name||"(anonymous)",info:h,params:f,exec:u});continue}let[d,p,v]=u.resolve(r,l,h,f,u,s);l=d,"retryResolve"in u&&o?.push([u,p]),"execute"in u&&r.actionExecutor({type:u.type,info:h,params:p,exec:u.execute.bind(null,r,p)}),v&&(l=t(l,n,r,v,s,o))}return l}(t,e,n,r,{internalQueue:i,deferredActorIds:s},o);return o?.forEach(([t,e])=>{t.retryResolve(n,a,e)}),a}function tb(t,e,n,r){let i=t,s=[];function o(t,e,r){n.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:n.self,event:e,snapshot:t[0],_transitions:r}),s.push(t)}if(e.type===u)return o([i=tR(tE(i,e,n),{status:"stopped"}),[]],e,[]),{snapshot:i,microsteps:s};let a=e;if(a.type!==l){let e=a,l=e.type.startsWith("xstate.error.actor"),c=tk(e,i);if(l&&!c.length)return o([i=tR(t,{status:"error",error:e.error}),[]],e,[]),{snapshot:i,microsteps:s};let u=tg(c,t,n,a,!1,r);i=u[0],o(u,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(J))t:for(let i of[r].concat(q(r,void 0)))if(i.always){for(let r of i.always)if(void 0===r.guard||z(r.guard,t.context,e,t)){n.add(r);break t}}return td(Array.from(n),new Set(t._nodes),t.historyValue)}
2(i,a):[],e=t.length?i:void 0;if(!t.length){if(!r.length)break;t=tk(a=r.shift(),i)}let s=tg(t,i,n,a,!1,r);c=(i=s[0])!==e,o(s,a,t)}return"active"!==i.status&&tE(i,a,n),{snapshot:i,microsteps:s}}function tE(t,e,n){return tx(t,e,n,Object.values(t.children).map(t=>D(t)),[],void 0)}function tk(t,e){return e.machine.getTransitionData(e,t)}function tS(t,e){let n=F(th(t,e));return K(t,[...n])}let tj=function(t){return function t(e,n){let r=m(e),i=m(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)},tM=function(t){return this.tags.has(t)},tL=function(t){let e=this.machine.getTransitionData(this,t);return!!e?.length&&e.some(t=>void 0!==t.target||t.actions.length)},tO=function(){let{_nodes:t,tags:e,machine:n,getMeta:r,toJSON:i,can:s,hasTag:o,matches:a,...l}=this;return{...l,tags:Array.from(e)}},t$=function(){return this._nodes.reduce((t,e)=>(void 0!==e.meta&&(t[e.id]=e.meta),t),{})};function tI(t,e){return{status:t.status,output:t.output,error:t.error,machine:e,context:t.context,_nodes:t._nodes,value:K(e.root,t._nodes),tags:new Set(t._nodes.flatMap(t=>t.tags)),children:t.children,historyValue:t.historyValue||{},matches:tj,hasTag:tM,can:tL,getMeta:t$,toJSON:tO}}function tR(t,e={}){return tI({...t,...e},t.machine)}function tC(t,e){let{_nodes:n,tags:r,machine:i,children:s,context:o,can:a,hasTag:l,matches:c,getMeta:u,toJSON:h,...f}=t,d={};for(let t in s){let n=s[t];d[t]={snapshot:n.getPersistedSnapshot(e),src:n.src,systemId:n.systemId,syncSnapshot:n._syncSnapshot}}return{...f,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:$,id:i.id};else{let s=t(i);s!==i&&((n??=Array.isArray(e)?e.slice():{...e})[r]=s)}}}return n??e}(o),children:d,historyValue:function(t){if("object"!=typeof t||null===t)return{};let e={};for(let n in t){let r=t[n];Array.isArray(r)&&(e[n]=r.map(t=>({id:t.id})))}return e}(f.historyValue)}}function tA(t,e,n,r,{event:i,id:s,delay:o},{internalQueue:a}){let l;let 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 u="function"==typeof i?i(n,r):i;if("string"==typeof o){let t=c&&c[o];l="function"==typeof t?t(n,r):t}else l="function"==typeof o?o(n,r):o;return"number"!=typeof l&&a.push(u),[e,{event:u,id:s,delay:l},void 0]}function tZ(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 tV(t,e){function n(t,e){}return n.type="xstate.raise",n.event=t,n.id=e?.id,n.delay=e?.delay,n.resolve=tA,n.execute=tZ,n}},12620:function(t,e,n){n.d(e,{cY:function(){return function t({schemas:e,actors:n,actions:r,guards:i,delays:s}){return{assign:a.a,sendTo:x,raise:o.r,log:j,cancel:o.a,stopChild:o.s,enqueueActions:E,emit:y,spawnChild:o.b,createStateConfig:t=>t,createAction:t=>t,createMachine:t=>new d({...t,schemas:e},{actors:n,actions:r,guards:i,delays:s}),extend:o=>t({schemas:e,actors:n,actions:{...r,...o.actions},guards:{...i,...o.guards},delays:{...s,...o.delays}})}}}}),new WeakMap,i=void 0,r=t=>void 0,t=>t;var r,i,s,o=n(62381),a=n(55519);let l=new WeakMap;function c(t,e,n){let r=l.get(t);return r?e in r||(r[e]=n()):(r={[e]:n()},l.set(t,r)),r[e]}let u={},h=t=>"string"==typeof t?{type:t}:"function"==typeof t?"resolve"in t?{type:t.type}:{type:t.name}:t;class f{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(o.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,o.y)(this.config.states,(t,e)=>new f(t,{_parent:this,_key:e,_machine:this.machine})):u,"compound"===this.type&&!this.config.initial)throw Error(`No initial state specified for c
2ompound 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,o.t)(this.config.entry).slice(),this.exit=(0,o.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,o.t)(t.tags).slice()}_initialize(){this.transitions=(0,o.z)(this),this.config.always&&(this.always=(0,o.B)(this.config.always).map(t=>(0,o.C)(this,o.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.type,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(h),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(t=>`#${t.id}`),source:`#${this.id}`,actions:this.initial.actions.map(h),eventType:null})}:void 0,history:this.history,states:(0,o.y)(this.states,t=>t.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(t=>({...t,actions:t.actions.map(h)})),entry:this.entry.map(h),exit:this.exit.map(h),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 c(this,"invoke",()=>(0,o.t)(this.config.invoke).map((t,e)=>{let{src:n,systemId:r}=t,i=t.id??(0,o.E)(this.id,e),s="string"==typeof n?n:`xstate.invoke.${(0,o.E)(this.id,e)}`;return{...t,src:s,id:i,systemId:r,toJSON(){let{onDone:e,onError:n,...r}=t;return{...r,type:"xstate.invoke",src:s,id:i}}}}))}get on(){return c(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 c(this,"delayedTransitions",()=>(0,o.F)(this))}get initial(){return c(this,"initial",()=>(0,o.G)(this,this.config.initial))}next(t,e){let n;let r=e.type,i=[];for(let s of c(this,`candidates-${r}`,()=>(0,o.H)(this,r))){let{guard:a}=s,l=t.context,c=!1;try{c=!a||(0,o.D)(a,l,e,t)}catch(e){let t="string"==typeof a?a:"object"==typeof a?a.type:void 0;throw Error(`Unable to evaluate guard ${t?`'${t}' `:""}in transition for event '${r}' in state node '${this.id}': 3${e.message}`)}if(c){i.push(...s.actions),n=s;break}}return n?[n]:void 0}get events(){return c(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(Object.keys(Object.fromEntries(this.transitions)).filter(t=>this.transitions.get(t).some(t=>!(!t.target&&!t.actions.length&&!t.reenter)))))}}class d{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 f(t,{_key:this.id,_machine:this}),this.root._initialize(),(0,o.I)(this.root),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 d(this.config,{actions:{...e,...t.actions},guards:{...n,...t.guards},actors:{...r,...t.actors},delays:{...i,...t.delays}})}resolveState(t){let e=(0,o.J)(this.root,t.value),n=(0,o.K)((0,o.p)(this.root,e));return(0,o.L)({_nodes:[...n],context:t.context||{},children:{},status:(0,o.M)(n,this.root)?"done":t.status||"active",output:t.output,error:t.error,historyValue:t.historyValue},this)}transition(t,e,n){return(0,o.d)(t,e,n,[]).snapshot}microstep(t,e,n){return(0,o.d)(t,e,n,[]).microsteps.map(([t])=>t)}getTransitionData(t,e){return(0,o.O)(this.root,t.value,t,e)||[]}_getPreInitialState(t,e,n){let{context:r}=this.config,i=(0,o.L)({context:"function"!=typeof r&&r?r:{},_nodes:[this.root],children:{},status:"active"},this);return"function"==typeof r?(0,o.P)(i,e,t,[(0,a.a)(({spawn:t,event:e,self:n})=>r({spawn:t,input:e.input,self:n}))],n,void 0):i}getInitialSnapshot(t,e){let n=(0,o.e)(e),r=[],i=this._getPreInitialState(t,n,r),[s]=(0,o.i)(this.root,i,t,n,r),{snapshot:a}=(0,o.d)(s,n,t,r);return a}
3start(t){Object.values(t.children).forEach(t=>{"active"===t.getSnapshot().status&&t.start()})}getStateNodeById(t){let e=(0,o.Q)(t),n=e.slice(1),r=(0,o.R)(e[0])?e[0].slice(1):e[0],i=this.idMap.get(r);if(!i)throw Error(`Child state node '#${r}' does not exist on machine '${this.id}'`);return(0,o.T)(i,n)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(t,e){return(0,o.U)(t,e)}restoreSnapshot(t,e){let n={},r=t.children;Object.keys(r).forEach(t=>{let i=r[t],s=i.snapshot,a=i.src,l="string"==typeof a?(0,o.V)(this,a):a;if(!l)return;let c=(0,o.c)(l,{id:t,parent:e.self,syncSnapshot:i.syncSnapshot,snapshot:s,src:a,systemId:i.systemId});n[t]=c});let i=function(t,e){if(!e||"object"!=typeof e)return{};let n={};for(let r in e)for(let i of e[r]){let e=function(t,e){if(e instanceof f)return e;try{return t.machine.getStateNodeById(e.id)}catch{}}(t,i);e&&(n[r]??=[],n[r].push(e))}return n}(this.root,t.historyValue),s=(0,o.L)({...t,children:n,_nodes:Array.from((0,o.K)((0,o.p)(this.root,t.value))),historyValue:i},this),a=new Set;return!function t(e,n){if(!a.has(e))for(let r in a.add(e),e){let i=e[r];if(i&&"object"==typeof i){if("xstate$$type"in i&&i.xstate$$type===o.$){e[r]=n[i.id];continue}t(i,n)}}}(s.context,n),s}}function p(t,e,n,r,{event:i}){return[e,{event:"function"==typeof i?i(n,r):i},void 0]}function v(t,{event:e}){t.defer(()=>t.emit(e))}function y(t){function e(t,e){}return e.type="xstate.emit",e.event=t,e.resolve=p,e.execute=v,e}let m=((s={}).Parent="#_parent",s.Internal="#_internal",s);function g(t,e,n,r,{to:i,event:s,id:o,delay:a},l){let c,u;let h=e.machine.implementations.delays;if("string"==typeof s)throw Error(`Only event objects may be used with sendTo; use sendTo({ type: "${s}" }) instead`);let f="function"==typeof s?s(n,r):s;if("string"==typeof a){let t=h&&h[a];c="function"==typeof t?t(n,r):t}else c="function"==typeof a?a(n,r):a;let d="function"==typeof i?i(n,r):i;if("string"==typeof d){if(!(u=d===m.Parent?t.self._parent:d===m.Internal?t.self:d.startsWith("#_")?e.children[d.slice(2)]:l.deferredActorIds?.includes(d)?d:e.children[d]))throw Error(`Unable to send event to actor '${d}' from machine '${e.machine.id}'.`)}else u=d||t.self;return[e,{to:u,targetId:"string"==typeof d?d:void 0,event:f,id:o,delay:c},void 0]}function w(t,e,n){"string"==typeof n.to&&(n.to=e.children[n.to])}function _(t,e){t.defer(()=>{let{to:n,event:r,delay:i,id:s}=e;if("number"==typeof i){t.system.scheduler.schedule(t.self,n,r,i,s);return}t.system._relay(t.self,n,r.type===o.W?(0,o.Y)(t.self.id,r.data):r)})}function x(t,e,n){function r(t,e){}return r.type="xstate.sendTo",r.to=t,r.event=e,r.id=n?.id,r.delay=n?.delay,r.resolve=g,r.retryResolve=w,r.execute=_,r}function b(t,e,n,r,{collect:i}){let s=[],l=function(t){s.push(t)};return l.assign=(...t)=>{s.push((0,a.a)(...t))},l.cancel=(...t)=>{s.push((0,o.a)(...t))},l.raise=(...t)=>{s.push((0,o.r)(...t))},l.sendTo=(...t)=>{s.push(x(...t))},l.sendParent=(...t)=>{s.push(function(t,e){return x(m.Parent,t,e)}(...t))},l.spawnChild=(...t)=>{s.push((0,o.b)(...t))},l.stopChild=(...t)=>{s.push((0,o.s)(...t))},l.emit=(...t)=>{s.push(y(...t))},i({context:n.context,event:n.event,enqueue:l,check:t=>(0,o.D)(t,e.context,n.event,e),self:t.self,system:t.system},r),[e,void 0,s]}function E(t){function e(t,e){}return e.type="xstate.enqueueActions",e.collect=t,e.resolve=b,e}function k(t,e,n,r,{value:i,label:s}){return[e,{value:"function"==typeof i?i(n,r):i,label:s},void 0]}function S({logger:t},{value:e,label:n}){n?t(n,e):t(e)}function j(t=({context:t,event:e})=>({context:t,event:e}),e){function n(t,e){}return n.type="xstate.log",n.value=t,n.label=e,n.resolve=k,n.execute=S,n}},71924:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"}))});e.Z=i},46584:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"}))});e.Z=i},41463:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 18.75a60.07 60.07 0 0 1 15.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 0 1 3 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 0 0-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 0 1-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 0 0 3 15h-.75M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm3 0h.008v.008H18V10.5Zm-12 0h.008v.008H6V10.5Z"}))});e.Z=i},13363:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 14.15v4.25c0 1.094-.787 2.036-1.872 2.18-2.087.277-4.216.42-6.378.42s-4.291-.143-6.378-.42c-1.085-.144-1.872-1.086-1.872-2.18v-4.25m16.5 0a2.18 2.18 0 0 0 .75-1.661V8.706c0-1.081-.768-2.015-1.837-2.175a48.114 48.114 0 0 0-3.413-.387m4.5 8.006c-.194.165-.42.295-.673.38A23.978 23.978 0 0 1 12 15.75c-2.648 0-5.195-.429-7.577-1.22a2.016 2.016 0 0 1-.673-.38m0 0A2.18 2.18 0 0 1 3 12.489V8.706c0-1.081.768-2.015 1.837-2.175a48.111 48.111 0 0 1 3.413-.387m7.5 0V5.25A2.25 2.25 0 0 0 13.5 3h-3a2.25 2.25 0 0 0-2.25 2.25v.894m7.5 0a48.667 48.667 0 0 0-7.5 0M12 12.75h.008v.008H12v-.008Z"}))});e.Z=i},45795:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21v-8.25M15.75 21v-8.25M8.25 21v-8.25M3 9l9-6 9 6m-1.5 12V10.332A48.36 48.36 0 0 0 12 9.75c-2.551 0-5.056.2-7.5.582V21M3 21h18M12 6.75h.008v.008H12V6.75Z"}))});e.Z=i},14131:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 21h19.5m-18-18v18m10.5-18v18m6-13.5V21M6.75 6.75h.75m-.75 3h.75m-.75 3h.75m3-6h.75m-.75 3h.75m-.75 3h.75M6.75 21v-3.375c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21M3 3h12m-.75 4.5H2
31m-3.75 3.75h.008v.008h-.008v-.008Zm0 3h.008v.008h-.008v-.008Zm0 3h.008v.008h-.008v-.008Z"}))});e.Z=i},41077:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5"}))});e.Z=i},16331:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"}))});e.Z=i},7828:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 8.25h9m-9 3H12m-9.75 1.51c0 1.6 1.123 2.994 2.707 3.227 1.129.166 2.27.293 3.423.379.35.026.67.21.865.501L12 21l2.755-4.133a1.14 1.14 0 0 1 .865-.501 48.172 48.172 0 0 0 3.423-.379c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.
3123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"}))});e.Z=i},9734:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12a7.5 7.5 0 0 0 15 0m-15 0a7.5 7.5 0 1 1 15 0m-15 0H3m16.5 0H21m-1.5 0H12m-8.457 3.077 1.41-.513m14.095-5.13 1.41-.513M5.106 17.785l1.15-.964m11.49-9.642 1.149-.964M7.501 19.795l.75-1.3m7.5-12.99.75-1.3m-6.063 16.658.26-1.477m2.605-14.772.26-1.477m0 17.726-.26-1.477M10.698 4.614l-.26-1.477M16.5 19.794l-.75-1.299M7.5 4.205 12 12m6.894 5.785-1.149-.964M6.256 7.178l-1.15-.964m15.352 8.864-1.41-.513M4.954 9.435l-1.41-.514M12.002 12l-3.75 6.495"}))});e.Z=i},30036:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m6.75 12-3-3m0 0-3 3m3-3v6m-1.5-15H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))});e.Z=i},89399:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75"}))});e.Z=i},20609:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))});e.Z=i},83365:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12Z"}))});e.Z=i},52484:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))});e.Z=i},12594:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"}))});e.Z=i},68690:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749
3c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285Z"}))});e.Z=i},69241:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 0 0-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 0 0-16.536-1.84M7.5 14.25 5.106 5.272M6 20.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm12.75 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"}))});e.Z=i},65001:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.568 3H5.25A2.25 2.25 0 0 0 3 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 0 0 5.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 0 0 9.568 3Z"}),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6h.008v.008H6V6Z"}))});e.Z=i},85497:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"}))});e.Z=i},31260:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{fillRule:"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"}))});e.Z=i},17857:function(t,e,n){var r=n(2265);let i=r.forwardRef(function(t,e){let{title:n,titleId:i,...s}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z",clipRule:"evenodd"}))});e.Z=i},57586:function(t,e,n){n.d(e,{M:function(){return w}});var r=n(57437),i=n(2265),s=n(58881),o=n(53576),a=n(11534),l=n(64252),c=n(13537),u=n(45750);function h(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class f extends i.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,n=(0,c.R)(t)&&t.offsetWidth||0,r=this.props.sizeRef.current;r.height=e.offsetHeight||0,r.width=e.offsetWidth||0,r.top=e.offsetTop,r.left=e.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function d(t){var e,n;let{children:s,isPresent:o,anchorX:a,root:l}=t,c=(0,i.useId)(),d=(0,i.useRef)(null),p=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:v}=(0,i.useContext)(u._),y=function(...t){return i.useCallback(function(...t){return e=>{let n=!1,r=t.map(t=>{let r=h(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<r.length;e++){let n=r[e];"function"==typeof n?n():h(t[e],null)}}}}(...t),t)}(d,null!==(n=null===(e=s.props)||void 0===e?void 0:e.ref)&&void 0!==n?n:null==s?void 0:s.ref);return(0,i.useInsertionEffect)(()=>{let{width:t,height:e,top:n,left:r,right:i}=p.current;if(o||!d.current||!t||!e)return;d.current.dataset.motionPopId=c;let s=document.createElement("style");v&&(s.nonce=v);let u=null!=l?l:document.head;return u.appendChild(s),s.sheet&&s.sheet.insertRule('\n [data-motion-pop-id="'.concat(c,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(e,"px !important;\n ").concat("left"===a?"left: ".concat(r):"right: ".concat(i),"px !important;\n top: ").concat(n,"px !important;\n }\n ")),()=>{u.contains(s)&&u.removeChild(s)}},[o]),(0,r.jsx)(f,{isPresent:o,childRef:d,sizeRef:p,children:i.cloneElement(s,{ref:y})})}let p=t=>{let{children:e,initial:n,isPresent:s,onExitComplete:a,custom:c,presenceAffectsLayout:u,mode:h,anchorX:f,root:p}=t,y=(0,o.h)(v),m=(0,i.useId)(),g=!0,w=(0,i.useMemo)(()=>(g=!1,{id:m,initial:n,isPresent:s,custom:c,onExitComplete:t=>
3{for(let e of(y.set(t,!0),y.values()))if(!e)return;a&&a()},register:t=>(y.set(t,!1),()=>y.delete(t))}),[s,y,a]);return u&&g&&(w={...w}),(0,i.useMemo)(()=>{y.forEach((t,e)=>y.set(e,!1))},[s]),i.useEffect(()=>{s||y.size||!a||a()},[s]),"popLayout"===h&&(e=(0,r.jsx)(d,{isPresent:s,anchorX:f,root:p,children:e})),(0,r.jsx)(l.O.Provider,{value:w,children:e})};function v(){return new Map}var y=n(49637);let m=t=>t.key||"";function g(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}let w=t=>{let{children:e,custom:n,initial:l=!0,onExitComplete:c,presenceAffectsLayout:u=!0,mode:h="sync",propagate:f=!1,anchorX:d="left",root:v}=t,[w,_]=(0,y.oO)(f),x=(0,i.useMemo)(()=>g(e),[e]),b=f&&!w?[]:x.map(m),E=(0,i.useRef)(!0),k=(0,i.useRef)(x),S=(0,o.h)(()=>new Map),j=(0,i.useRef)(new Set),[M,L]=(0,i.useState)(x),[O,$]=(0,i.useState)(x);(0,a.L)(()=>{E.current=!1,k.current=x;for(let t=0;t<O.length;t++){let e=m(O[t]);b.includes(e)?(S.delete(e),j.current.delete(e)):!0!==S.get(e)&&S.set(e,!1)}},[O,b.length,b.join("-")]);let I=[];if(x!==M){let t=[...x];for(let e=0;e<O.length;e++){let n=O[e],r=m(n);b.includes(r)||(t.splice(e,0,n),I.push(n))}return"wait"===h&&I.length&&(t=I),$(g(t)),L(x),null}let{forceRender:R}=(0,i.useContext)(s.p);return(0,r.jsx)(r.Fragment,{children:O.map(t=>{let e=m(t),i=(!f||!!w)&&(x===O||b.includes(e));return(0,r.jsx)(p,{isPresent:i,initial:(!E.current||!!l)&&void 0,custom:n,presenceAffectsLayout:u,mode:h,root:v,onExitComplete:i?void 0:()=>{if(j.current.has(e)||(j.current.add(e),!S.has(e)))return;S.set(e,!0);let t=!0;S.forEach(e=>{e||(t=!1)}),t&&(null==R||R(),$(k.current),f&&(null==_||_()),c&&c())},anchorX:d,children:t},e)})})}}}]);
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.