PageSourceSearch

https://www.kashane.com/_next/static/chunks/31882-2d93dbc45f622f61.js

js kashane.com collected 2026-10-06 13:59:02 UTC 46,055 bytes, 3 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[31882],{4019:(t,e,s)=>{var n=s(12420),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},r=n.useState,o=n.useEffect,a=n.useLayoutEffect,h=n.useDebugValue;function c(t){var e=t.getSnapshot;t=t.value;try{var s=e();return!i(t,s)}catch(t){return!0}}var l="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var s=e(),n=r({inst:{value:s,getSnapshot:e}}),i=n[0].inst,l=n[1];return a(function(){i.value=s,i.getSnapshot=e,c(i)&&l({inst:i})},[t,s,e]),o(function(){return c(i)&&l({inst:i}),t(function(){c(i)&&l({inst:i})})},[t]),h(s),s};e.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},7829:(t,e,s)=>{s.d(e,{A:()=>n});let n=(0,s(18620).A)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},7830:(t,e,s)=>{s.d(e,{A:()=>n});let n=(0,s(18620).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},13048:(t,e,s)=>{s.d(e,{A:()=>n});let n=(0,s(18620).A)("table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]])},15803:(t,e,s)=>{s.d(e,{A:()=>n});let n=(0,s(18620).A)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},23891:(t,e,s)=>{s.d(e,{mj:()=>function t({schemas:e,actors:s,actions:n,guards:o,delays:a}){return{assign:r.a,sendTo:_,raise:i.r,log:w,cancel:i.b,stopChild:i.s,enqueueActions:k,emit:p,spawnChild:i.d,createStateConfig:t=>t,createAction:t=>t,createMachine:t=>new u({...t,schemas:e},{actors:s,actions:n,guards:o,delays:a}),extend:i=>t({schemas:e,actors:s,actions:{...n,...i.actions},guards:{...o,...i.guards},delays:{...a,...i.delays}})}}});var n,i=s(84126),r=s(98764);let o=new WeakMap;function a(t,e,s){let n=o.get(t);return n?e in n||(n[e]=s()):(n={[e]:s()},o.set(t,n)),n[e]}let h={},c=t=>"string"==typeof t?{type:t}:"function"==typeof t?"resolve"in t?{type:t.type}:{type:t.name}:t;class l{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(i.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,i.z)(this.config.states,(t,e)=>new l(t,{_parent:this,_key:e,_machine:this.machine})):h,"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,i.t)(this.config.entry).slice(),this.exit=(0,i.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,i.t)(t.tags).slice()}_initialize(){this.transitions=(0,i.B)(this),this.config.always&&(this.always=(0,i.C)(this.config.always).map(t=>
1(0,i.D)(this,i.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(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,i.z)(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 a(this,"invoke",()=>(0,i.t)(this.config.invoke).map((t,e)=>{let{src:s,systemId:n}=t,r=t.id??(0,i.F)(this.id,e),o="string"==typeof s?s:`xstate.invoke.${(0,i.F)(this.id,e)}`;return{...t,src:o,id:r,systemId:n,toJSON(){let{onDone:e,onError:s,...n}=t;return{...n,type:"xstate.invoke",src:o,id:r}}}}))}get on(){return a(this,"on",()=>[...this.transitions].flatMap(([t,e])=>e.map(e=>[t,e])).reduce((t,[e,s])=>(t[e]=t[e]||[],t[e].push(s),t),{}))}get after(){return a(this,"delayedTransitions",()=>(0,i.G)(this))}get initial(){return a(this,"initial",()=>(0,i.H)(this,this.config.initial))}next(t,e){let s,n=e.type,r=[];for(let o of a(this,`candidates-${n}`,()=>(0,i.I)(this,n))){let{guard:a}=o,h=t.context,c=!1;try{c=!a||(0,i.E)(a,h,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 '${n}' in state node '${this.id}':
2${e.message}`)}if(c){r.push(...o.actions),s=o;break}}return s?[s]:void 0}get events(){return a(this,"events",()=>{let{states:t}=this,e=new Set(this.ownEvents);if(t)for(let s of Object.keys(t)){let n=t[s];if(n.states)for(let t of n.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 u{constructor(t,e){this.config=t,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.options=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.options={maxIterations:1/0,...this.config.options},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 l(t,{_key:this.id,_machine:this}),this.root._initialize(),(0,i.J)(this.root),this.states=this.root.states,this.events=this.root.events}provide(t){let{actions:e,guards:s,actors:n,delays:i}=this.implementations;return new u(this.config,{actions:{...e,...t.actions},guards:{...s,...t.guards},actors:{...n,...t.actors},delays:{...i,...t.delays}})}resolveState(t){let e=(0,i.K)(this.root,t.value),s=(0,i.L)((0,i.q)(this.root,e));return(0,i.M)({_nodes:[...s],context:t.context||{},children:{},status:(0,i.O)(s,this.root)?"done":t.status||"active",output:t.output,error:t.error,historyValue:t.historyValue},this)}transition(t,e,s){return(0,i.e)(t,e,s,[]).snapshot}microstep(t,e,s){return(0,i.e)(t,e,s,[]).microsteps.map(([t])=>t)}getTransitionData(t,e){return(0,i.P)(this.root,t.value,t,e)||[]}_getPreInitialState(t,e,s){let{context:n}=this.config,o=(0,i.M)({context:"function"!=typeof n&&n?n:{},_nodes:[this.root],children:{},status:"active"},this);return"function"==typeof n?(0,i.Q)(o,e,t,[(0,r.a)(({spawn:t,event:e,self:s})=>n({spawn:t,input:e.input,self:s}))],s,void 0):o}getInitialSnapshot(t,e){let s=(0,i.f)(e),n=[],r=this._getPreInitialState(t,s,n),[o]=(0,i.g)(this.root,r,t,s,n),{snapshot:a}=(0,i.e)(o,s,t,n);return a}
2start(t){Object.values(t.children).forEach(t=>{"active"===t.getSnapshot().status&&t.start()})}getStateNodeById(t){let e=(0,i.R)(t),s=e.slice(1),n=(0,i.T)(e[0])?e[0].slice(1):e[0],r=this.idMap.get(n);if(!r)throw Error(`Child state node '#${n}' does not exist on machine '${this.id}'`);return(0,i.U)(r,s)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(t,e){return(0,i.V)(t,e)}restoreSnapshot(t,e){let s={},n=t.children;Object.keys(n).forEach(t=>{let r=n[t],o=r.snapshot,a=r.src,h="string"==typeof a?(0,i.W)(this,a):a;if(!h)return;let c=(0,i.c)(h,{id:t,parent:e.self,syncSnapshot:r.syncSnapshot,snapshot:o,src:a,systemId:r.systemId});s[t]=c});let r=function(t,e){if(!e||"object"!=typeof e)return{};let s={};for(let n in e)for(let i of e[n]){let e=function(t,e){if(e instanceof l)return e;try{return t.machine.getStateNodeById(e.id)}catch{}}(t,i);e&&(s[n]??=[],s[n].push(e))}return s}(this.root,t.historyValue),o=(0,i.M)({...t,children:s,_nodes:Array.from((0,i.L)((0,i.q)(this.root,t.value))),historyValue:r},this),a=new Set;return!function t(e,s){if(!a.has(e))for(let n in a.add(e),e){let r=e[n];if(r&&"object"==typeof r){if("xstate$$type"in r&&r.xstate$$type===i.$){e[n]=s[r.id];continue}t(r,s)}}}(o.context,s),o}}function d(t,e,s,n,{event:i}){return[e,{event:"function"==typeof i?i(s,n):i},void 0]}function f(t,{event:e}){t.defer(()=>t.emit(e))}function p(t){function e(t,e){}return e.type="xstate.emit",e.event=t,e.resolve=d,e.execute=f,e}let y=((n={}).Parent="#_parent",n.Internal="#_internal",n);function g(t,e,s,n,{to:i,event:r,id:o,delay:a},h){let c,l,u=e.machine.implementations.delays;if("string"==typeof r)throw Error(`Only event objects may be used with sendTo; use sendTo({ type: "${r}" }) instead`);let d="function"==typeof r?r(s,n):r;if("string"==typeof a){let t=u&&u[a];c="function"==typeof t?t(s,n):t}else c="function"==typeof a?a(s,n):a;let f="function"==typeof i?i(s,n):i;if("string"==typeof f){if(!(l=f===y.Parent?t.self._parent:f===y.Internal?t.self:f.startsWith("#_")?e.children[f.slice(2)]:h.deferredActorIds?.includes(f)?f:e.children[f]))throw Error(`Unable to send event to actor '${f}' from machine '${e.machine.id}'.`)}else l=f||t.self;return[e,{to:l,targetId:"string"==typeof f?f:void 0,event:d,id:o,delay:c},void 0]}function v(t,e,s){"string"==typeof s.to&&(s.to=e.children[s.to])}function m(t,e){t.defer(()=>{let{to:s,event:n,delay:r,id:o}=e;"number"==typeof r?t.system.scheduler.schedule(t.self,s,n,r,o):t.system._relay(t.self,s,n.type===i.Y?(0,i.Z)(t.self.id,n.data):n)})}function _(t,e,s){function n(t,e){}return n.type="xstate.sendTo",n.to=t,n.event=e,n.id=s?.id,n.delay=s?.delay,n.resolve=g,n.retryResolve=v,n.execute=m,n}function x(t,e,s,n,{collect:o}){let a=[],h=function(t){a.push(t)};return h.assign=(...t)=>{a.push((0,r.a)(...t))},h.cancel=(...t)=>{a.push((0,i.b)(...t))},h.raise=(...t)=>{a.push((0,i.r)(...t))},h.sendTo=(...t)=>{a.push(_(...t))},h.sendParent=(...t)=>{a.push(function(t,e){return _(y.Parent,t,e)}(...t))},h.spawnChild=(...t)=>{a.push((0,i.d)(...t))},h.stopChild=(...t)=>{a.push((0,i.s)(...t))},h.emit=(...t)=>{a.push(p(...t))},o({context:s.context,event:s.event,enqueue:h,check:t=>(0,i.E)(t,e.context,s.event,e),self:t.self,system:t.system},n),[e,void 0,a]}function k(t){function e(t,e){}return e.type="xstate.enqueueActions",e.collect=t,e.resolve=x,e}function b(t,e,s,n,{value:i,label:r}){return[e,{value:"function"==typeof i?i(s,n):i,label:r},void 0]}function S({logger:t},{value:e,label:s}){s?t(s,e):t(e)}function w(t=({context:t,event:e})=>({context:t,event:e}),e){function s(t,e){}return s.type="xstate.log",s.value=t,s.label=e,s.resolve=b,s.execute=S,s}},23997:(t,e,s)=>{s.d(e,{A:()=>n});let n=(0,s(18620).A)("party-popper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]])},24477:(t,e,s)=>{s.d(e,{A:()=>n});let n=(0,s(18620).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},34144:(t,e,s)=>{s.d(e,{A:()=>n});let n=(0,s(18620).A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},40921:(t,e,s)=>{s.d(e,{zl:()=>h});var n=s(12420),i=s(20914),r=s(84126);s(78858);var o=s(56268);let a=(t,e)=>{e(t);let s=t.getSnapshot().children;
2s&&Object.values(s).forEach(t=>{a(t,e)})};function h(t,...[e]){return function(t,...[e]){let s=function(t,...[e]){let[[s,o],a]=(0,n.useState)(()=>{let s=(0,r.c)(t,e);return[t.config,s]});if(t.config!==s){let s=(0,r.c)(t,{...e,snapshot:o.getPersistedSnapshot({__unsafeAllowInlineActors:!0})});a([t.config,s]),o=s}return(0,i.A)(()=>{o.logic.implementations=t.implementations}),o}(t,e),h=(0,n.useCallback)(()=>s.getSnapshot(),[s]),c=(0,n.useCallback)(t=>{let{unsubscribe:e}=s.subscribe({next:t,error:t});return e},[s]),l=(0,o.useSyncExternalStore)(c,h,h),u="status"in l?l:void 0;if(u?.status==="error")throw u.error;return(0,n.useEffect)(()=>(s.start(),()=>{let t,e;t=[],a(s,e=>{t.push([e,e.getSnapshot()]),e.observers=new Set}),e=s.system.getSnapshot?.(),s.stop(),s.system._snapshot=e,t.forEach(([t,e])=>{t._processingStatus=0,t._snapshot=e})}),[s]),[l,s.send,s]}(t,e)}},52102:(t,e,s)=>{s.d(e,{A:()=>n});let n=(0,s(18620).A)("wand-sparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]])},56268:(t,e,s)=>{t.exports=s(4019)},66355:(t,e,s)=>{s.d(e,{A:()=>n});let n=(0,s(18620).A)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]])},67270:(t,e,s)=>{s.d(e,{A:()=>n});let n=(0,s(18620).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},68961:(t,e,s)=>{s.d(e,{A:()=>n});let n=(0,s(18620).A)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},72013:(t,e,s)=>{s.d(e,{A:()=>n});let n=(0,s(18620).A)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},72132:(t,e,s)=>{var n=s(12420),i=s(56268),r="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=n.useRef,h=n.useEffect,c=n.useMemo,l=n.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,s,n,i){var u=a(null);if(null===u.current){var d={hasValue:!1,value:null};u.current=d}else d=u.current;var f=o(t,(u=c(function(){function t(t){if(!h){if(h=!0,o=t,t=n(t),void 0!==i&&d.hasValue){var e=d.value;if(i(e,t))return a=e}return a=t}if(e=a,r(o,t))return e;var s=n(t);return void 0!==i&&i(e,s)?(o=t,e):(o=t,a=s)}var o,a,h=!1,c=void 0===s?null:s;return[function(){return t(e())},null===c?void 0:function(){return t(c())}]},[e,s,n,i]))[0],u[1]);return h(function(){d.hasValue=!0,d.value=f},[f]),l(f),f}},76471:(t,e,s)=>{s.d(e,{A:()=>n});let n=(0,s(18620).A)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]])},78858:(t,e,s)=>{t.exports=s(72132)},84126:(t,e,s)=>{var n;s.d(e,{$:()=>I,B:()=>ti,C:()=>k,D:()=>tn,E:()=>U,F:()=>w,G:()=>ts,H:()=>to,I:()=>te,J:()=>tr,K:()=>tM,L:()=>K,M:()=>tN,N:()=>o,O:()=>X,P:()=>function t(e,s,n,i){if("string"==typeof s){let t;return(t=tu(e,s).next(n,i))&&t.length?t:e.next(n,i)}if(1===Object.keys(s).length){let r,o;return(o=t(tu(e,(r=Object.keys(s))[0]),s[r[0]],n,i))&&o.length?o:e.next(n,i)}let r=[];for(let o of Object.keys(s)){let a=s[o];if(!a)continue;let h=t(tu(e,o),a,n,i);h&&r.push(...h)}return r.length?r:e.next(n,i)},Q:()=>tS,R:()=>y,S:()=>r,T:()=>tt,U:()=>td,V:()=>tC,W:()=>E,X:()=>c,Y:()=>h,Z:()=>u,_:()=>j,a0:()=>tz,b:()=>V,c:()=>N,d:()=>P,e:()=>tw,f:()=>d,g:()=>t_,n:()=>W,q:()=>tf,r:()=>tL,s:()=>J,t:()=>m,z:()=>v});class i{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 r=".",o="",a="xstate.init",h="xstate.error",c="xstate.stop";function l(t,e){return{type:`xstate.done.state.${t}`,output:e}}function u(t,e){return{type:`xstate.error.actor.${t}`,error:e,actorId:t}}
2function d(t){return{type:a,input:t}}function f(t){setTimeout(()=>{throw t})}let p="function"==typeof Symbol&&Symbol.observable||"@@observable";function y(t){if(x(t))return t;let e=[],s="";for(let n=0;n<t.length;n++){switch(t.charCodeAt(n)){case 92:s+=t[n+1],n++;continue;case 46:e.push(s),s="";continue}s+=t[n]}return e.push(s),e}function g(t){var e;return(e=t)&&"object"==typeof e&&"machine"in e&&"value"in e?t.value:"string"!=typeof t?t:function(t){if(1===t.length)return t[0];let e={},s=e;for(let e=0;e<t.length-1;e++)if(e===t.length-2)s[t[e]]=t[e+1];else{let n=s;s={},n[t[e]]=s}return e}(y(t))}function v(t,e){let s={},n=Object.keys(t);for(let i=0;i<n.length;i++){let r=n[i];s[r]=e(t[r],r,t,i)}return s}function m(t){var e;return void 0===t?[]:x(e=t)?e:[e]}function _(t,e,s,n){return"function"==typeof t?t({context:e,event:s,self:n}):t}function x(t){return Array.isArray(t)}function k(t){var e;return(x(e=t)?e:[e]).map(t=>void 0===t||"string"==typeof t?{target:t}:t)}function b(t){if(void 0!==t&&""!==t)return m(t)}function S(t,e,s){let n="object"==typeof t,i=n?t:void 0;return{next:(n?t.next:t)?.bind(i),error:(n?t.error:e)?.bind(i),complete:(n?t.complete:s)?.bind(i)}}function w(t,e){return`${e}.${t}`}function E(t,e){let s=e.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!s)return t.implementations.actors[e];let[,n,i]=s,r=t.getStateNodeById(i).config.invoke;return(Array.isArray(r)?r[n]:r).src}function A(t,e){return`${t.sessionId}.${e}`}let M=0,$=!1,I=1,j=((n={})[n.NotStarted=0]="NotStarted",n[n.Running=1]="Running",n[n.Stopped=2]="Stopped",n),O={clock:{setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t)},logger:console.log.bind(console),devTools:!1};class T{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 i(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=j.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=[];const s={...O,...e},{clock:n,logger:r,parent:o,syncSnapshot:a,id:h,systemId:c,inspect:l}=s;this.system=o?o.system:function(t,e){let s=new Map,n=new Map,i=new WeakMap,r=new Set,o={},{clock:a,logger:h}=e,c={schedule:(t,e,s,n,i=Math.random().toString(36).slice(2))=>{let r={source:t,target:e,event:s,delay:n,id:i,startedAt:Date.now()},h=A(t,i);l._snapshot._scheduledEvents[h]=r;let c=a.setTimeout(()=>{delete o[h],delete l._snapshot._scheduledEvents[h],l._relay(t,e,s)},n);o[h]=c},cancel:(t,e)=>{let s=A(t,e),n=o[s];delete o[s],delete l._snapshot._scheduledEvents[s],void 0!==n&&a.clearTimeout(n)},cancelAll:t=>{for(let e in l._snapshot._scheduledEvents){let s=l._snapshot._scheduledEvents[e];s.source===t&&c.cancel(t,s.id)}}},l={_snapshot:{_scheduledEvents:(e?.snapshot&&e.snapshot.scheduler)??{}},_bookId:()=>`x:${M++}`,_register:(t,e)=>(s.set(t,e),t),_unregister:t=>{s.delete(t.sessionId);let e=i.get(t);void 0!==e&&(n.delete(e),i.delete(t))},get:t=>n.get(t),getAll:()=>Object.fromEntries(n.entries()),_set:(t,e)=>{let s=n.get(t);if(s&&s!==e)throw Error(`Actor with system ID '${t}' already exists.`);n.set(t,e),i.set(e,t)},inspect:t=>{let e=S(t);return r.add(e),{unsubscribe(){r.delete(e)}}},_sendInspectionEvent:e=>{if(!r.size)return;let s={...e,rootId:t.sessionId};r.forEach(t=>t.next?.(s))},_relay:(t,e,s)=>{l._sendInspectionEvent({type:"@xstate.event",sourceRef:t,actorRef:e,event:s}),e._send(s)},scheduler:c,getSnapshot:()=>({_scheduledEvents:{...l._snapshot._scheduledEvents}}),start:()=>{let t=l._snapshot._scheduledEvents;for(let e in l._snapshot._scheduledEvents={},t){let{source:s,target:n,event:i,delay:r,id:o}=t[e];c.schedule(s,n,i,r,o)}},_clock:a,_logger:h};return l}(this,{clock:n,logger:r}),l&&!o&&this.system.inspect(S(l)),this.sessionId=this.system._bookId(),this.id=h??this.sessionId,this.logger=e?.logger??this.system._logger,this.clock=e?.clock??this.system._clock,this._parent=o,this._syncSnapshot=a,this.options=s,this.src=s.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),s=this.eventListeners.get("*");if(e||s)for(let n of[...e?e.values():[],...s?s.values():[]])try{n(t)}catch(t){f(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=$;try{$=!0,t.exec(t.info,t.params)}finally{$=e}};this._processingStatus===j.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 s;for(this._snapshot=t;s=this._deferred.shift();)try{s()}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.
2next?.(t)}catch(t){f(t)}break;case"done":var n;for(let e of this.observers)try{e.next?.(t)}catch(t){f(t)}this._stopProcedure(),this._complete(),this._doneEvent=(n=this.id,{type:`xstate.done.actor.${n}`,output:this._snapshot.output,actorId:n}),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,s){let n=S(t,e,s);if(this._processingStatus!==j.Stopped)this.observers.add(n);else switch(this._snapshot.status){case"done":try{n.complete?.()}catch(t){f(t)}break;case"error":{let t=this._snapshot.error;if(n.error)try{n.error(t)}catch(t){f(t)}else f(t)}}return{unsubscribe:()=>{this.observers.delete(n)}}}on(t,e){let s=this.eventListeners.get(t);s||(s=new Set,this.eventListeners.set(t,s));let n=e.bind(void 0);return s.add(n),{unsubscribe:()=>{s.delete(n)}}}select(t,e=Object.is){return{subscribe:s=>{let n=S(s),i=t(this.getSnapshot());return this.subscribe(s=>{let r=t(s);e(i,r)||(i=r,n.next?.(r))})},get:()=>t(this.getSnapshot())}}start(){if(this._processingStatus===j.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=j.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,s;try{e=this.logic.transition(this._snapshot,t,this._actorScope)}catch(t){s={err:t}}if(s){let{err:t}=s;this._snapshot={...this._snapshot,status:"error",error:t},this._error(t);return}this.update(e,t),t.type===c&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===j.Stopped||((this.mailbox.clear(),this._processingStatus===j.NotStarted)?this._processingStatus=j.Stopped:this.mailbox.enqueue({type:c})),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){f(t)}this.observers.clear(),this.eventListeners.clear()}_reportError(t){if(!this.observers.size){this._parent||f(t),this.eventListeners.clear();return}let e=!1;for(let s of this.observers){let n=s.error;e||=!n;try{n?.(t)}catch(t){f(t)}}this.observers.clear(),this.eventListeners.clear(),e&&f(t)}_error(t){this._stopProcedure(),this._reportError(t),this._parent&&this.system._relay(this,this._parent,u(this.id,t))}_stopProcedure(){return this._processingStatus!==j.Running||(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new i(this._process.bind(this)),this._processingStatus=j.Stopped,this.system._unregister(this)),this}_send(t){this._processingStatus!==j.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:t=>{if("u"<typeof window)return;let e=function(){let t="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:void 0!==s.g?s.g:void 0;if(t.__xstate__)return t.__xstate__}();e&&e.register(t)})(this)}toJSON(){return{xstate$$type:I,id:this.id}}getPersistedSnapshot(t){return this.logic.getPersistedSnapshot(this._snapshot,t)}[p](){return this}getSnapshot(){return this._snapshot}}function N(t,...[e]){return new T(t,e)}function z(t,e,s,n,{sendId:i}){return[e,{sendId:"function"==typeof i?i(s,n):i},void 0]}function C(t,e){t.defer(()=>{t.system.scheduler.cancel(t.self,e.sendId)})}function V(t){function e(t,e){}return e.type="xstate.cancel",e.sendId=t,e.resolve=z,e.execute=C,e}function R(t,e,s,n,{id:i,systemId:r,src:o,input:a,syncSnapshot:h}){let c,l,u="string"==typeof o?E(e.machine,o):o,d="function"==typeof i?i(s):i;return u&&(l="function"==typeof a?a({context:e.context,event:s.event,self:t.self}):a,c=N(u,{id:d,src:o,parent:t.self,syncSnapshot:h,systemId:r,input:l})),[tz(e,{children:{...e.children,[d]:c}}),{id:i,systemId:r,actorRef:c,src:o,input:l},void 0]}function L(t,{actorRef:e}){e&&t.defer(()=>{e._processingStatus!==j.Stopped&&e.start()})}function P(...[t,{id:e,systemId:s,input:n,syncSnapshot:i=!1}={}]){function r(t,e){}return r.type="xstate.spawnChild",r.id=e,r.systemId=s,r.src=t,r.input=n,r.syncSnapshot=i,r.resolve=R,r.execute=L,r}function q(t,e,s,n,{actorRef:i}){let r="function"==typeof i?i(s,n):i,o="string"==typeof r?e.children[r]:r,a=e.children;return o&&(a={...a},delete a[o.id]),[tz(e,{children:a}),o,void 0]}function D(t,e){if(e){if(!function t(e,s){let n=s.getSnapshot();if(n&&"children"in n)for(let s of Object.values(n.children))t(e,s);e.system._unregister(s)}(t,e),e._processingStatus!==j.Running)return void t.stopChild(e);t.defer(()=>{t.stopChild(e)})}}function J(t){function e(t,e){}return e.type="xstate.stopChild",e.actorRef=t,e.resolve=q,e.execute=D,e}function B(t,{context:e,event:s},{guards:n}){return!U(n[0],e,s,t)}function W(t){function e(t,e){return!1}return e.check=B,e.guards=[t],e}function H(t,{context:e,event:s},{guards:n}){return n.every(n=>U(n,e,s,t))}function U(t,e,s,n){let{machine:i}=n,r="function"==typeof t,o=r?t:i.implementations.guards["string"==typeof t?t:t.type];if(!r&&!o)throw Error(`Guard '${"string"==typeof t?t:t.type}' is not implemented.'.`);if("function"!=typeof o)return U(o,e,s,n);let a={context:e,event:s},h=r||"string"==typeof t?void 0:"params"in t?"function"==typeof t.params?t.params({context:e,event:s}):t.params:void 0;return"check"in o?o.check(n,a,o):o(a,h)}function F(t){return"atomic"===t.type||"final"===t.type}function G(t){return Object.values(t.states).filter(t=>"history"!==t.type)}function Z(t,e){let s=[];if(e===t)return s;let n=t.parent;for(;n&&n!==e;)s.push(n),n=n.parent;return s}function K(t){let e=new Set(t),s=Q(e);for(let t of e)if("compound"!==t.type||s.get(t)&&s.get(t).length){if("parallel"===t.type){for(let s of G(t))if("history"!==s.type&&!e.has(s))for(let t of tc(s))e.add(t)}}else tc(t).forEach(t=>e.add(t));for(let t of e){let s=t.parent;for(;s;)e.add(s),s=s.parent}return e}function Q(t){let e=new Map;for(let s of t)e.has(s)||e.set(s,[]),s.parent&&(e.has(s.parent)||e.set(s.parent,[]),e.get(s.parent).push(s));return e}function Y(t,e){return function t(e,s){let n=s.get(e);if(!n)return{};if("compound"===e.type){let t=n[0];if(!t)return{};if(F(t))return t.key}let i={};for(let e of n)i[e.key]=t(e,s);return i}(t,Q(K(e)))}function X(t,e){return"compound"===e.type?G(e).some(e=>"final"===e.type&&t.has(e)):"parallel"===e.type?G(e).every(e=>X(t,e)):"final"===e.type}let tt=t=>"#"===t[0];function te(t,e){let s=t.transitions.get(e),n=[...t.transitions.keys()].filter(t=>t!==e&&function(t,e){if(e===t||"*"===e)return!0;
2if(!e.endsWith(".*"))return!1;let s=e.split("."),n=t.split(".");for(let t=0;t<s.length;t++){let e=s[t],i=n[t];if("*"===e)return t===s.length-1;if(e!==i)return!1}return!0}(e,t)).sort((t,e)=>e.length-t.length).flatMap(e=>t.transitions.get(e));return s?[...s,...n]:n}function ts(t){let e=t.config.after;return e?Object.keys(e).flatMap(s=>{var n;let i,r,o=e[s],a=Number.isNaN(+s)?s:+s,h=(n=t.id,r=(i={type:`xstate.after.${a}.${n}`}).type,t.entry.push(tL(i,{id:r,delay:a})),t.exit.push(V(r)),r);return m("string"==typeof o?{target:o}:o).map(t=>({...t,event:h,delay:a}))}).map(e=>{let{delay:s}=e;return{...tn(t,e.event,e),delay:s}}):[]}function tn(t,e,s){let n=b(s.target),i=s.reenter??!1,o=function(t,e){if(void 0!==e)return e.map(e=>{if("string"!=typeof e)return e;if(tt(e))return t.machine.getStateNodeById(e);let s=e[0]===r;if(s&&!t.parent)return td(t,e.slice(1));let n=s?t.key+e:e;if(t.parent)try{return td(t.parent,n)}catch(e){throw Error(`Invalid transition definition for state node '${t.id}':
3${e.message}`)}throw Error(`Invalid target: "${e}" is not a valid target from the root node. Did you mean ".${e}"?`)})}(t,n),a={...s,actions:m(s.actions),guard:s.guard,target:o,source:t,reenter:i,eventType:e,toJSON:()=>({...a,source:`#${t.id}`,target:o?o.map(t=>`#${t.id}`):void 0})};return a}function ti(t){let e=new Map;if(t.config.on)for(let s of Object.keys(t.config.on)){if(s===o)throw Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');let n=t.config.on[s];e.set(s,k(n).map(e=>tn(t,s,e)))}if(t.config.onDone){let s=`xstate.done.state.${t.id}`;e.set(s,k(t.config.onDone).map(e=>tn(t,s,e)))}for(let s of t.invoke){if(s.onDone){let n=`xstate.done.actor.${s.id}`;e.set(n,k(s.onDone).map(e=>tn(t,n,e)))}if(s.onError){let n=`xstate.error.actor.${s.id}`;e.set(n,k(s.onError).map(e=>tn(t,n,e)))}if(s.onSnapshot){let n=`xstate.snapshot.${s.id}`;e.set(n,k(s.onSnapshot).map(e=>tn(t,n,e)))}}for(let s of t.after){let t=e.get(s.eventType);t||(t=[],e.set(s.eventType,t)),t.push(s)}return e}function tr(t){let e=[],s=n=>{Object.values(n).forEach(n=>{if(n.config.route&&n.config.id){let s=n.config.id,i=n.config.route.guard,r=({event:t})=>t.to===`#${s}`,o={...n.config.route,guard:i?function(t){function e(t,e){return!1}return e.check=H,e.guards=t,e}([r,i]):r,target:`#${s}`};e.push(tn(t,"xstate.route",o))}n.states&&s(n.states)})};s(t.states),e.length>0&&t.transitions.set("xstate.route",e)}function to(t,e){let s="string"==typeof e?t.states[e]:e?t.states[e.target]:void 0;if(!s&&e)throw Error(`Initial state node "${e}" not found on parent state node #${t.id}`);let n={source:t,actions:e&&"string"!=typeof e?m(e.actions):[],eventType:null,reenter:!1,target:s?[s]:[],toJSON:()=>({...n,source:`#${t.id}`,target:s?[`#${s.id}`]:[]})};return n}function ta(t){let e=b(t.config.target);return e?{target:e.map(e=>"string"==typeof e?td(t.parent,e):e)}:"parallel"===t.parent.type?{target:[t.parent]}:t.parent.initial}function th(t){return"history"===t.type}function tc(t){let e=tl(t);for(let s of e)for(let n of Z(s,t))e.add(n);return e}function tl(t){let e=new Set;return!function t(s){if(!e.has(s)){if(e.add(s),"compound"===s.type)t(s.initial.target[0]);else if("parallel"===s.type)for(let e of G(s))t(e)}}(t),e}function tu(t,e){if(tt(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 s=t.states[e];if(!s)throw Error(`Child state '${e}' does not exist on '${t.id}'`);return s}function td(t,e){if("string"==typeof e&&tt(e))try{return t.machine.getStateNodeById(e)}catch{}let s=y(e).slice(),n=t;for(;s.length;){let t=s.shift();if(!t.length)break;n=tu(n,t)}return n}function tf(t,e){if("string"==typeof e){let s=t.states[e];if(!s)throw Error(`State '${e}' does not exist on '${t.id}'`);return[t,s]}let s=Object.keys(e),n=s.map(e=>tu(t,e)).filter(Boolean);return[t.machine.root,t].concat(n,s.reduce((s,n)=>{let i=tu(t,n);if(!i)return s;let r=tf(i,e[n]);return s.concat(r)},[]))}function tp(t,e){let s=t;for(;s.parent&&s.parent!==e;)s=s.parent;return s.parent===e}function ty(t,e,s){let n=new Set;for(let i of t){let t=!1,r=new Set;for(let o of n)if(function(t,e){let s=new Set(t),n=new Set(e);for(let t of s)if(n.has(t))return!0;for(let t of n)if(s.has(t))return!0;return!1}(tm([i],e,s),tm([o],e,s)))if(tp(i.source,o.source))r.add(o);else{t=!0;break}if(!t){for(let t of r)n.delete(t);n.add(i)}}return Array.from(n)}function tg(t,e){if(!t.target)return[];let s=new Set;
3for(let n of t.target)if(th(n))if(e[n.id])for(let t of e[n.id])s.add(t);else for(let t of tg(ta(n),e))s.add(t);else s.add(n);return[...s]}function tv(t,e){let s=tg(t,e);if(!s)return;if(!t.reenter&&s.every(e=>e===t.source||tp(e,t.source)))return t.source;let n=function(t){let[e,...s]=t;for(let t of Z(e,void 0))if(s.every(e=>tp(e,t)))return t}(s.concat(t.source));return n||(t.reenter?void 0:t.source.machine.root)}function tm(t,e,s){let n=new Set;for(let i of t)if(i.target?.length){let t=tv(i,s);for(let s of(i.reenter&&i.source===t&&n.add(t),e))tp(s,t)&&n.add(s)}return[...n]}function t_(t,e,s,n,i){return tx([{target:[...tl(t)],source:t,reenter:!0,actions:[],eventType:null,toJSON:null}],e,s,n,!0,i)}function tx(t,e,s,n,i,r){let o=[];if(!t.length)return[e,o];let a=s.actionExecutor;s.actionExecutor=t=>{o.push(t),a(t)};try{let a=new Set(e._nodes),h=e.historyValue,c=ty(t,a,h),u=e;i||([u,h]=function(t,e,s,n,i,r,o,a){let h,c=t,l=tm(n,i,r);for(let t of(l.sort((t,e)=>e.order-t.order),l))for(let e of function(t){return Object.keys(t.states).map(e=>t.states[e]).filter(t=>"history"===t.type)}(t)){let s;s="deep"===e.history?e=>F(e)&&tp(e,t):e=>e.parent===t,(h??={...r})[e.id]=Array.from(i).filter(s)}for(let t of l)c=tS(c,e,s,[...t.exit,...t.invoke.map(t=>J(t.id))],o,void 0),i.delete(t);return[c,h||r]}(u,n,s,c,a,h,r,s.actionExecutor)),u=tS(u,n,s,c.flatMap(t=>t.actions),r,void 0),u=function(t,e,s,n,i,r,o,a){let h=t,c=new Set,u=new Set;(function(t,e,s,n){for(let i of t){let t=tv(i,e);for(let r of i.target||[])!th(r)&&(i.source!==r||i.source!==t||i.reenter)&&(n.add(r),s.add(r)),tk(r,e,s,n);for(let r of tg(i,e)){let o=Z(r,t);t?.type==="parallel"&&o.push(t),tb(n,e,s,o,!i.source.parent&&i.reenter?void 0:t)}}})(n,o,u,c),a&&u.add(t.machine.root);let d=new Set;for(let t of[...c].sort((t,e)=>t.order-e.order)){i.add(t);let n=[];for(let e of(n.push(...t.entry),t.invoke))n.push(P(e.src,{...e,syncSnapshot:!!e.onSnapshot}));if(u.has(t)){let e=t.initial.actions;n.push(...e)}if(h=tS(h,e,s,n,r,t.invoke.map(t=>t.id)),"final"===t.type){let n=t.parent,o=n?.type==="parallel"?n:n?.parent,a=o||t;for(n?.type==="compound"&&r.push(l(n.id,void 0!==t.output?_(t.output,h.context,e,s.self):void 0));o?.type==="parallel"&&!d.has(o)&&X(i,o);)d.add(o),r.push(l(o.id)),a=o,o=o.parent;if(o)continue;h=tz(h,{status:"done",output:function(t,e,s,n,i){if(void 0===n.output)return;let r=l(i.id,void 0!==i.output&&i.parent?_(i.output,t.context,e,s.self):void 0);return _(n.output,t.context,r,s.self)}(h,e,s,h.machine.root,a)})}}return h}(u,n,s,c,a,r,h,i);let d=[...a];"done"===u.status&&(u=tS(u,n,s,d.sort((t,e)=>e.order-t.order).flatMap(t=>t.exit),r,void 0));try{if(h===e.historyValue&&function(t,e){if(t.length!==e.size)return!1;for(let s of t)if(!e.has(s))return!1;return!0}(e._nodes,a))return[u,o];return[tz(u,{_nodes:d,historyValue:h}),o]}catch(t){throw t}}finally{s.actionExecutor=a}}function tk(t,e,s,n){var i,r,o,a;if(th(t))if(e[t.id]){let o=e[t.id];for(let t of o)n.add(t),tk(t,e,s,n);for(let a of o){i=a,r=t.parent,tb(n,e,s,Z(i,r))}}else{let i=ta(t);for(let r of i.target)n.add(r),i===t.parent?.initial&&s.add(t.parent),tk(r,e,s,n);for(let r of i.target){o=r,a=t.parent,tb(n,e,s,Z(o,a))}}else if("compound"===t.type){let[i]=t.initial.target;th(i)||(n.add(i),s.add(i)),tk(i,e,s,n),tb(n,e,s,Z(i,t))}else if("parallel"===t.type)for(let i of G(t).filter(t=>!th(t)))[...n].some(t=>tp(t,i))||(th(i)||(n.add(i),s.add(i)),tk(i,e,s,n))}function tb(t,e,s,n,i){for(let r of n)if((!i||tp(r,i))&&t.add(r),"parallel"===r.type)for(let n of G(r).filter(t=>!th(t)))[...t].some(t=>tp(t,n))||(t.add(n),tk(n,e,s,t))}function tS(t,e,s,n,i,r){let o=r?[]:void 0,a=function t(e,s,n,i,r,o){let{machine:a}=e,h=e;for(let e of i){var c;let i="function"==typeof e,l=i?e:(c="string"==typeof e?e:e.type,a.implementations.actions[c]),u={context:h.context,event:s,self:n.self,system:n.system},d=i||"string"==typeof e?void 0:"params"in e?"function"==typeof e.params?e.params({context:h.context,event:s}):e.params:void 0;if(!l||!("resolve"in l)){n.actionExecutor({type:"string"==typeof e?e:"object"==typeof e?e.type:e.name||"(anonymous)",info:u,params:d,exec:l});continue}let[f,p,y]=l.resolve(n,h,u,d,l,r);h=f,"retryResolve"in l&&o?.push([l,p]),"execute"in l&&n.actionExecutor({type:l.type,info:u,params:p,exec:l.execute.bind(null,n,p)}),y&&(h=t(h,s,n,y,r,o))}return h}(t,e,s,n,{internalQueue:i,deferredActorIds:r},o);return o?.forEach(([t,e])=>{t.retryResolve(s,a,e)}),a}function tw(t,e,s,n){let i=t,r=[];function o(t,e,n){s.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:s.self,event:e,snapshot:t[0],_transitions:n}),r.push(t)}if(e.type===c)return o([i=tz(tE(i,e,s),{status:"stopped"}),[]],e,[]),{snapshot:i,microsteps:r};let h=e;if(h.type!==a){let e=h,a=e.type.startsWith("xstate.error.actor"),c=tA(e,i);if(a&&!c.length)return o([i=tz(t,{status:"error",error:e.error}),[]],e,[]),{snapshot:i,microsteps:r};let l=tx(c,t,s,h,!1,n);i=l[0],o(l,e,c)}let l=!0,u=t.machine.options?.maxIterations??1/0,d=0;for(;"active"===i.status;){if(++d>u)throw Error(`Infinite loop detected: the machine has processed more than ${u} microsteps without reaching a stable state. This usually happens when there's a cycle of transitions (e.g., eventless transitions or raised events causing state A -> B -> C -> A).`);let t=l?function(t,e){let s=new Set;for(let n of t._nodes.filter(F))t:for(let i of[n].concat(Z(n,void 0)))if(i.always){for(let n of i.always)if(void 0===n.guard||U(n.guard,t.context,e,t)){s.add(n);break t}}return ty(Array.from(s),new Set(t._nodes),t.historyValue)}
3(i,h):[],e=t.length?i:void 0;if(!t.length){if(!n.length)break;t=tA(h=n.shift(),i)}let r=tx(t,i,s,h,!1,n);l=(i=r[0])!==e,o(r,h,t)}return"active"!==i.status&&tE(i,h,s),{snapshot:i,microsteps:r}}function tE(t,e,s){return tS(t,e,s,Object.values(t.children).map(t=>J(t)),[],void 0)}function tA(t,e){return e.machine.getTransitionData(e,t)}function tM(t,e){let s=K(tf(t,e));return Y(t,[...s])}let t$=function(t){return function t(e,s){let n=g(e),i=g(s);return"string"==typeof i?"string"==typeof n&&i===n:"string"==typeof n?n in i:Object.keys(n).every(e=>e in i&&t(n[e],i[e]))}(t,this.value)},tI=function(t){return this.tags.has(t)},tj=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:s,getMeta:n,toJSON:i,can:r,hasTag:o,matches:a,...h}=this;return{...h,tags:Array.from(e)}},tT=function(){return this._nodes.reduce((t,e)=>(void 0!==e.meta&&(t[e.id]=e.meta),t),{})};function tN(t,e){return{status:t.status,output:t.output,error:t.error,machine:e,context:t.context,_nodes:t._nodes,value:Y(e.root,t._nodes),tags:new Set(t._nodes.flatMap(t=>t.tags)),children:t.children,historyValue:t.historyValue||{},matches:t$,hasTag:tI,can:tj,getMeta:tT,toJSON:tO}}function tz(t,e={}){return tN({...t,...e},t.machine)}function tC(t,e){let{_nodes:s,tags:n,machine:i,children:r,context:o,can:a,hasTag:h,matches:c,getMeta:l,toJSON:u,...d}=t,f={};for(let t in r){let s=r[t];f[t]={snapshot:s.getPersistedSnapshot(e),src:s.src,systemId:s.systemId,syncSnapshot:s._syncSnapshot}}return{...d,context:function t(e){let s;for(let n in e){let i=e[n];if(i&&"object"==typeof i)if("sessionId"in i&&"send"in i&&"ref"in i)(s??=Array.isArray(e)?e.slice():{...e})[n]={xstate$$type:I,id:i.id};else{let r=t(i);r!==i&&((s??=Array.isArray(e)?e.slice():{...e})[n]=r)}}return s??e}(o),children:f,historyValue:function(t){if("object"!=typeof t||null===t)return{};let e={};for(let s in t){let n=t[s];Array.isArray(n)&&(e[s]=n.map(t=>({id:t.id})))}return e}(d.historyValue)}}function tV(t,e,s,n,{event:i,id:r,delay:o},{internalQueue:a}){let h,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 l="function"==typeof i?i(s,n):i;if("string"==typeof o){let t=c&&c[o];h="function"==typeof t?t(s,n):t}else h="function"==typeof o?o(s,n):o;return"number"!=typeof h&&a.push(l),[e,{event:l,id:r,delay:h},void 0]}function tR(t,e){let{event:s,delay:n,id:i}=e;if("number"==typeof n)return void t.defer(()=>{let e=t.self;t.system.scheduler.schedule(e,e,s,n,i)})}function tL(t,e){function s(t,e){}return s.type="xstate.raise",s.event=t,s.id=e?.id,s.delay=e?.delay,s.resolve=tV,s.execute=tR,s}},89895:(t,e,s)=>{s.d(e,{A:()=>n});let n=(0,s(18620).A)("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]])},89943:(t,e,s)=>{s.d(e,{A:()=>n});let n=(0,s(18620).A)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]])},92723:(t,e,s)=>{s.d(e,{A:()=>n});let n=(0,s(18620).A)("skip-forward",[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]])},93313:(t,e,s)=>{s.d(e,{A:()=>n});let n=(0,s(18620).A)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},98764:(t,e,s)=>{s.d(e,{a:()=>r});var n=s(84126);function i(t,e,s,r,{assignment:o}){if(!e.context)throw Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");let a={},h={context:e.context,event:s.event,spawn:function(t,{machine:e,context:s},i,r){return(o,a)=>{let h=((o,a)=>
3{if("string"!=typeof o)return(0,n.c)(o,{id:a?.id,parent:t.self,syncSnapshot:a?.syncSnapshot,input:a?.input,src:o,systemId:a?.systemId});{let h=(0,n.W)(e,o);if(!h)throw Error(`Actor logic '${o}' not implemented in machine '${e.id}'`);let c=(0,n.c)(h,{id:a?.id,parent:t.self,syncSnapshot:a?.syncSnapshot,input:"function"==typeof a?.input?a.input({context:s,event:i,self:t.self}):a?.input,src:o,systemId:a?.systemId});return r[c.id]=c,c}})(o,a);return r[h.id]=h,t.defer(()=>{h._processingStatus!==n._.Stopped&&h.start()}),h}}(t,e,s.event,a),self:t.self,system:t.system},c={};if("function"==typeof o)c=o(h,r);else for(let t of Object.keys(o)){let e=o[t];c[t]="function"==typeof e?e(h,r):e}let l=Object.assign({},e.context,c);return[(0,n.a0)(e,{context:l,children:Object.keys(a).length?{...e.children,...a}:e.children}),void 0,void 0]}function r(t){function e(t,e){}return e.type="xstate.assign",e.assignment=t,e.resolve=i,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.