PageSourceSearch

https://www.beaverbitcoin.com/_next/static/chunks/3815-777d00e2a6f50943.js

js beaverbitcoin.com collected 2026-09-29 04:09:17 UTC 78,181 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3815],{67845:function(t,e,n){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)},i=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},o=this&&this.__read||function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0});var a=n(67294),s=n(39774),c={immediate:!1};e.useMachine=function(t,e){void 0===e&&(e=c);var n=e.context,u=e.guards,f=e.actions,l=e.activities,d=e.services,h=e.delays,v=e.immediate,p=e.state,y=i(e,["context","guards","actions","activities","services","delays","immediate","state"]),g={context:n,guards:u,actions:f,activities:l,services:d,delays:h},m=a.useRef(null);null===m.current&&(m.current=t.withConfig(g,r(r({},t.context),n)));var b=a.useRef(null);null===b.current&&(b.current=s.interpret(m.current,y).onTransition((function(t){t.changed&&E(t)})));var x=b.current;a.useEffect((function(){Object.assign(x.machine.options.actions,f)}),[f]),a.useEffect((function(){Object.assign(x.machine.options.services,d)}),[d]);var w=p?s.State.create(p):x.initialState,S=o(a.useState((function(){return w})),2),_=S[0],E=S[1];return v&&x.start(),a.useEffect((function(){return x.start(p?w:void 0),function(){x.stop()}}),[]),[_,x.send,x]},e.useService=function(t){var e=o(a.useState(t.state),2),n=e[0],r=e[1];return a.useEffect((function(){r(t.state);var e=t.subscribe((function(t){t.changed&&r(t)}));return function(){e.unsubscribe()}}),[t]),[n,t.send,t]};var u=n(77238);e.useActor=u.useActor},77238:function(t,e,n){var r=this&&this.__read||function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0});var i=n(67294);e.useActor=function(t){var e=r(i.useState(void 0),2),n=e[0],o=e[1],a=i.useRef(t);return i.useEffect((function(){if(t){a.current=t;var e=t.subscribe(o);return function(){e.unsubscribe()}}}),[t]),[n,a.current?a.current.send:function(){}]}},13742:function(t,e,n){n.d(e,{Z:function(){return r}});const r=(0,n(91373).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},97387:function(t,e,n){t.exports=n(88280)},88280:function(t,e,n){var r,i,o=n(67294),a=(r=o)&&"object"==typeof r&&"default"in r?r.default:r,s=n(67845),c=n(39774);!function(t){t.Text="text",t.Number="number",t.Email="email",t.Password="password",t.Date="date",t.Range="range",t.TextArea="textarea",t.Select="select"}(i||(i={}));var u=i,f=function(t){var e=t.value,n=t.type,r=t.editProps,i=t.editClassProp,s=t.options,c=t.valueKey,f=t.labelKey,l=t.handleChange,d=t.handleKeyDown,h=t.handleBlur,v=o.useRef(null),p=o.useRef(null),y=o.useRef(null),g=o.useCallback((function(){return n===u.Select?y:n===u.TextArea?p:v}),[n]);return o.useEffect((function(){var t=g();t.current&&setTimeout((function(){t.current&&(t.current.focus(),t!==v&&t!==p||t.current.select())}),10)}),[g]),n===u.Select?a.createElement("select",Object.assign({},r,i,{ref:y,value:e,onChange:function(t){return l(t.target.value)},onKeyDown:d,onBlur:h}),s.map((function(t){return a.createElement("option",{key:t[c],value:t[c]},t[f])}))):n===u.TextArea?a.createElement("textarea",Object.assign({},r,i,{ref:p,value:e,onChange:function(t){return l(t.target.value)},onKeyDown:d,onBlur:h})):a.createElement("input",Object.assign({}
1,r,i,{ref:v,type:n,value:e,onChange:function(t){return l(t.target.value)},onKeyDown:d,onBlur:h}))};e.default=function(t){var e=t.value,n=t.type,r=void 0===n?u.Text:n,i=t.format,a=t.render,l=t.isDisabled,d=void 0!==l&&l,h=t.allowEditWhileLoading,v=t.optimisticUpdate,p=t.saveTimeout,y=t.savedDuration,g=t.errorDuration,m=t.editProps,b=t.viewClass,x=t.editClass,w=t.disabledClass,S=t.loadingClass,_=t.invalidClass,E=t.savedClass,O=t.errorClass,C=t.showNewLines,k=void 0===C||C,j=t.options,A=void 0===j?[]:j,T=t.valueKey,N=void 0===T?"value":T,P=t.labelKey,R=void 0===P?"label":P,D=s.useMachine(function(t){var e=t.value,n=t.isDisabled,r=t.allowEditWhileLoading,i=t.optimisticUpdate,o=t.validate,a=t.onChange,s=t.saveTimeout,u=t.savedDuration,f=t.errorDuration;return c.Machine({id:"inlineEdit",initial:"view",context:{value:e,newValue:"",oldValue:"",isValid:!o||"function"!=typeof o||o(e)},states:{view:{entry:"reset",on:{CLICK:{target:"edit",cond:"isEnabled"},FOCUS:{target:"edit",cond:"isEnabled"},SAVED:{target:"saved",actions:"commitChange"}}},edit:{entry:"validate",on:{CHANGE:{target:"edit",actions:"change"},ESC:"view",ENTER:[{target:"loading",cond:"shouldSend"},{target:"view"}],BLUR:[{target:"loading",cond:"shouldSend"},{target:"view"}]}},loading:{entry:[i?"optimisticUpdate":"noAction","sendChange"],on:{CLICK:{target:"edit",cond:"canEditWhileLoading"},FOCUS:{target:"edit",cond:"canEditWhileLoading"},SAVED:{target:"saved",actions:"commitChange"}},after:{SAVE_TIMEOUT:{target:"error",actions:i?"cancelChange":"noAction"}}},saved:{on:{CLICK:{target:"edit",cond:"isEnabled"},FOCUS:{target:"edit",cond:"isEnabled"},SAVED:{target:"saved",actions:"commitChange"}},after:{SAVED_DURATION:{target:"view"}}},error:{on:{CLICK:{target:"edit",cond:"isEnabled"},FOCUS:{target:"edit",cond:"isEnabled"},SAVED:{target:"saved",actions:"commitChange"}},after:{ERROR_DURATION:{target:"view"}}}}},{actions:{change:c.assign({newValue:function(t,e){return e.value}}),reset:c.assign({newValue:function(t){return t.value}}),optimisticUpdate:c.assign({oldValue:function(t){return t.value},value:function(t){return t.newValue}}),noAction:function(){},sendChange:function(t){a(t.newValue)},commitChange:c.assign({value:function(t,e){return e.value}}),cancelChange:c.assign({value:function(t){return t.oldValue}}
1),validate:o&&"function"==typeof o?c.assign({isValid:function(t){return o(t.newValue)}}):function(){}},guards:{shouldSend:function(t){return t.isValid&&t.newValue!==t.value},isEnabled:function(){return!n},canEditWhileLoading:function(){return!n&&r}},delays:{SAVE_TIMEOUT:s,SAVED_DURATION:u,ERROR_DURATION:f}})}({value:e,isDisabled:d,allowEditWhileLoading:void 0!==h&&h,optimisticUpdate:void 0===v||v,validate:t.validate,onChange:t.onChange,saveTimeout:void 0===p?2e3:p,savedDuration:void 0===y?700:y,errorDuration:void 0===g?1e3:g})),V=D[0],I=D[1],L=o.useRef(!0);o.useEffect((function(){L.current?L.current=!1:I({type:"SAVED",value:e})}),[e]);var M=[];b&&M.push(b),S&&"loading"===V.value&&M.push(S),E&&"saved"===V.value&&M.push(E),O&&"error"===V.value&&M.push(O),w&&d&&M.push(w);var U=M.length>0?{className:M.join(" ")}:{},B=[];x&&B.push(x),_&&!V.context.isValid&&B.push(_);var Z=B.length>0?{className:B.join(" ")}:{},F=V.context.value;if(r===u.Select){var z=A.find((function(t){return t[N]+""===V.context.value}));z&&(F=z[R])}return i&&(F=i(F)),r===u.TextArea&&k&&(F=F.split("\n").map((function(t,e){return o.createElement("span",{key:e},t,o.createElement("br",null))}))),o.createElement(o.Fragment,null,("view"===V.value||"loading"===V.value||"saved"===V.value||"error"===V.value)&&o.createElement("span",Object.assign({},U,{onClick:function(){return I("CLICK")},onFocus:function(){return I("FOCUS")},tabIndex:0}),a?a(F):F),"edit"===V.value&&o.createElement(f,{type:r,value:V.context.newValue,editProps:m,editClassProp:Z,options:A,valueKey:N,labelKey:R,handleChange:function(t){I({type:"CHANGE",value:t}),r===u.Select&&I("ENTER")},handleKeyDown:function(t){13===t.keyCode&&r!==u.TextArea?I("ENTER"):27===t.keyCode&&I("ESC")},handleBlur:function(){I("BLUR")}}))}},39774:function(t,e,n){n.r(e),n.d(e,{ActionTypes:function(){return o},Interpreter:function(){return xe},InterpreterStatus:function(){return me},Machine:function(){return Te},SpecialTargets:function(){return a},State:function(){return ae},StateNode:function(){return Ae},actions:function(){return i},assign:function(){return Ie},cancel:function(){return Le},choose:function(){return Je},createMachine:function(){return Ne},createSchema:function(){return De},doneInvoke:function(){return ze},forwardTo:function(){return Fe},interpret:function(){return Se},log:function(){return $e},mapState:function(){return Pe},matchState:function(){return Re},matchesState:function(){return R},pure:function(){return We},raise:function(){return Ke},send:function(){return Me},sendParent:function(){return Be},sendTo:function(){return Ue},sendUpdate:function(){return Ze},spawn:function(){return we},spawnBehavior:function(){return ge},stop:function(){return qe},t:function(){return Ve},toActorRef:function(){return Wt},toEventObject:function(){return rt},toObserver:function(){return ct},toSCXMLEvent:function(){return it}});var r={};n.r(r),n.d(r,{after:function(){return x},assign:function(){return b},cancel:function(){return g},choose:function(){return A},doneState:function(){return w},error:function(){return k},errorExecution:function(){return O},errorPlatform:function(){return C},init:function(){return _},invoke:function(){return E},log:function(){return S},nullEvent:function(){return m},pure:function(){return T},raise:function(){return p},send:function(){return y},start:function(){return h},stop:function(){return v},update:function(){return j}});var i={};n.r(i),n.d(i,{actionTypes:function(){return r},after:function(){return Rt},assign:function(){return Nt},cancel:function(){return kt},choose:function(){return Bt},done:function(){return Dt},doneInvoke:function(){return Vt},error:function(){return It},escalate:function(){return Ut},forwardTo:function(){return Mt},getActionFunction:function(){return dt},initEvent:function(){return lt},isActionObject:function(){return Pt},log:function(){return Ot},pure:function(){return Lt},raise:function(){return yt},resolveActions:function(){return Zt},resolveLog:function(){return Ct},resolveRaise:function(){return gt},resolveSend:function(){return bt},resolveStop:function(){return Tt},respond:function(){return _t},send:function(){return mt},sendParent:function(){return xt},sendTo:function(){return wt},sendUpdate:function(){return St},start:function(){return jt},stop:function(){return At},toActionObject:function(){return ht},toActionObjects:function(){return vt},toActivityDefinition:function(){return pt}});var o,a,s=function(){return s=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},s.apply(this,arguments)};function c(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function u(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function l(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}!function(t){t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose"}(o||(o={})),function(t){t.Parent="#_parent",t.Internal="#_internal"}(a||(a={}));var d,h=o.Start,v=o.Stop,p=o.Raise,y=o.Send,g=o.Cancel,m=o.NullEvent,b=o.Assign,x=o.After,w=o.DoneState,S=o.Log,_=o.Init,E=o.Invoke,O=o.ErrorExecution,C=o.ErrorPlatform,k=o.ErrorCustom,j=o.Update,A=o.Choose,T=o.Pure,N={},P="xstate.guard";function R(t,e,n){void 0===n&&(n=".");var r=I(t,n),i=I(e,n);return G(i)?!!G(r)&&i===r:G(r)?r in i:Object.keys(r).every((function(t){return t in i&&R(r[t],i[t])}))}function D(t){try{return G(t)||"number"===typeof t?"".concat(t):t.type}catch(e){throw new Error("Events must be strings or objects with a string event.type property.")}}function V(t,e){try{return X(t)?t:t.toString().split(e)}catch(n){throw new Error("'".concat(t,"' is not a valid state path."))}}function I(t,e){return"object"===typeof(n=t)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?t.value:X(t)?L(t):"string"!==typeof t?t:L(V(t,e));var n}function L(t){if(1===t.length)return t[0];for(var e={},n=e,r=0;r<t.length-1;r++)r===t.length-2?n[t[r]]=t[r+1]:(n[t[r]]={},n=n[t[r]]);return e}function M(t,e){for(var n={},r=Object.keys(t),i=0;i<r.length;i++){var o=r[i];n[o]=e(t[o],o,t,i)}return n}function U(t,e,n){var r,i,o={};try{for(var a=u(Object.keys(t)),s=a.next();!s.done;s=a.next()){var c=s.value,f=t[c];n(f)&&(o[c]=e(f,c,t))}}catch(l){r={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}var B=function(t){return function(e){var n,r,i=e;try{for(var o=u(t),a=o.next();!a.done;a=o.next()){i=i[a.value]}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}};function Z(t){return t?G(t)?[[t]]:F(Object.keys(t).map((function(e){var n=t[e];return"string"===typeof n||n&&Object.keys(n).length?Z(t[e]).map((function(t){return[e].concat(t)})):[[e]]}))):[[]]}function F(t){var e;return(e=[]).concat.apply(e,l([],f(t),!1))}function z(t){return X(t)?t:[t]}function K(t){return void 0===t?[]:z(t)}
1function $(t,e,n){var r,i;if(Q(t))return t(e,n.data);var o={};try{for(var a=u(Object.keys(t)),s=a.next();!s.done;s=a.next()){var c=s.value,f=t[c];Q(f)?o[c]=f(e,n.data):o[c]=f}}catch(l){r={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function W(t){return t instanceof Promise||!(null===t||!Q(t)&&"object"!==typeof t||!Q(t.then))}function J(t,e){return M(t.states,(function(t,n){if(t){var r=(G(e)?void 0:e[n])||(t?t.current:void 0);if(r)return{current:r,states:J(t,r)}}}))}function q(t,e,n,r){var i=t?n.reduce((function(t,n){var i,o,a=n.assignment,s={state:r,action:n,_event:e},c={};if(Q(a))c=a(t,e.data,s);else try{for(var f=u(Object.keys(a)),l=f.next();!l.done;l=f.next()){var d=l.value,h=a[d];c[d]=Q(h)?h(t,e.data,s):h}}catch(v){i={error:v}}finally{try{l&&!l.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}return Object.assign({},t,c)}),t):t;return i}var H=function(){};function X(t){return Array.isArray(t)}function Q(t){return"function"===typeof t}function G(t){return"string"===typeof t}function Y(t,e){if(t)return G(t)?{type:P,name:t,predicate:e?e[t]:void 0}:Q(t)?{type:P,name:t.name,predicate:t}:t}var tt=function(){return"function"===typeof Symbol&&Symbol.observable||"@@observable"}();(d={})[tt]=function(){return this},d[Symbol.observable]=function(){return this};function et(t){return!!t&&"__xstatenode"in t}var nt=function(){var t=0;return function(){return(++t).toString(16)}}();function rt(t,e){return G(t)||"number"===typeof t?s({type:t},e):t}function it(t,e){if(!G(t)&&"$$type"in t&&"scxml"===t.$$type)return t;var n=rt(t);return s({name:n.type,data:n,$$type:"scxml",type:"external"},e)}function ot(t,e){return z(e).map((function(e){return"undefined"===typeof e||"string"===typeof e||et(e)?{target:e,event:t}:s(s({},e),{event:t})}))}function at(t,e,n,r,i){var o=t.options.guards,a={state:i,cond:e,_event:r};if(e.type===P)return((null===o||void 0===o?void 0:o[e.name])||e.predicate)(n,r.data,a);var s=null===o||void 0===o?void 0:o[e.type];if(!s)throw new Error("Guard '".concat(e.type,"' is not implemented on machine '").concat(t.id,"'."));return s(n,r.data,a)}function st(t){return"string"===typeof t?{type:t}:t}function ct(t,e,n){var r=function(){},i="object"===typeof t,o=i?t:null;return{next:((i?t.next:t)||r).bind(o),error:((i?t.error:e)||r).bind(o),complete:((i?t.complete:n)||r).bind(o)}}function ut(t,e){return"".concat(t,":invocation[").concat(e,"]")}function ft(t){return(t.type===p||t.type===y&&t.to===a.Internal)&&"number"!==typeof t.delay}var lt=it({type:_});function dt(t,e){return e&&e[t]||void 0}function ht(t,e){var n;if(G(t)||"number"===typeof t)n=Q(r=dt(t,e))?{type:t,exec:r}:r||{type:t,exec:void 0};else if(Q(t))n={type:t.name||t.toString(),exec:t};else{var r;if(Q(r=dt(t.type,e)))n=s(s({},t),{exec:r});else if(r){var i=r.type||t.type;n=s(s(s({},r),t),{type:i})}else n=t}return n}var vt=function(t,e){return t?(X(t)?t:[t]).map((function(t){return ht(t,e)})):[]};function pt(t){var e=ht(t);return s(s({id:G(t)?t:e.id},e),{type:e.type})}function yt(t,e){return{type:p,event:"function"===typeof t?t:rt(t),delay:e?e.delay:void 0,id:null===e||void 0===e?void 0:e.id}}function gt(t,e,n,r){var i,o={_event:n},a=it(Q(t.event)?t.event(e,n.data,o):t.event);if(G(t.delay)){var c=r&&r[t.delay];i=Q(c)?c(e,n.data,o):c}else i=Q(t.delay)?t.delay(e,n.data,o):t.delay;return s(s({},t),{type:p,_event:a,delay:i})}function mt(t,e){return{to:e?e.to:void 0,type:y,event:Q(t)?t:rt(t),delay:e?e.delay:void 0,id:e&&void 0!==e.id?e.id:Q(t)?t.name:D(t)}}function bt(t,e,n,r){var i,o={_event:n},a=it(Q(t.event)?t.event(e,n.data,o):t.event);if(G(t.delay)){var c=r&&r[t.delay];i=Q(c)?c(e,n.data,o):c}else i=Q(t.delay)?t.delay(e,n.data,o):t.delay;var u=Q(t.to)?t.to(e,n.data,o):t.to;return s(s({},t),{to:u,_event:a,event:a.data,delay:i})}function xt(t,e){return mt(t,s(s({},e),{to:a.Parent}))}function wt(t,e,n){return mt(e,s(s({},n),{to:t}))}function St(){return xt(j)}function _t(t,e){return mt(t,s(s({},e),{to:function(t,e,n){return n._event.origin}}))}var Et=function(t,e){return{context:t,event:e}};function Ot(t,e){return void 0===t&&(t=Et),{type:S,label:e,expr:t}}var Ct=function(t,e,n){return s(s({},t),{value:G(t.expr)?t.expr:t.expr(e,n.data,{_event:n})})},kt=function(t){return{type:g,sendId:t}};function jt(t){var e=pt(t);return{type:o.Start,activity:e,exec:void 0}}function At(t){var e=Q(t)?t:pt(t);return{type:o.Stop,activity:e,exec:void 0}}function Tt(t,e,n){var r=Q(t.activity)?t.activity(e,n.data):t.activity,i="string"===typeof r?{id:r}:r;return{type:o.Stop,activity:i}}var Nt=function(t){return{type:b,assignment:t}};function Pt(t){return"object"===typeof t&&"type"in t}function Rt(t,e){var n=e?"#".concat(e):"";return"".concat(o.After,"(").concat(t,")").concat(n)}function Dt(t,e){var n="".concat(o.DoneState,".").concat(t),r={type:n,data:e,toString:function(){return n}};return r}function Vt(t,e){var n="".concat(o.DoneInvoke,".").concat(t),r={type:n,data:e,toString:function(){return n}};return r}function It(t,e){var n="".concat(o.ErrorPlatform,".").concat(t),r={type:n,data:e,toString:function(){return n}};return r}function Lt(t){return{type:o.Pure,get:t}}function Mt(t,e){return mt((function(t,e){return e}),s(s({},e),{to:t}))}function Ut(t,e){return xt((function(e,n,r){return{type:k,data:Q(t)?t(e,n,r):t}}),s(s({},e),{to:a.Parent}))}function Bt(t){return{type:o.Choose,conds:t}}function Zt(t,e,n,r,i,o,c){void 0===c&&(c=!1);var d=c?[]:function(t){var e,n,r=[];try{for(var i=u(t),o=i.next();!o.done;o=i.next())for(var a=o.value,s=0;s<a.actions.length;)a.actions[s].type!==b?s++:(r.push(a.actions[s]),a.actions.splice(s,1))}catch(c){e={error:c}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}(i),h=d.length?q(n,r,d,e):n,g=c?[n]:void 0,m=[];function x(i,u){var d;switch(u.type){case p:var x=gt(u,h,r,t.options.delays);return o&&"number"===typeof x.delay&&o(x,h,r),x;case y:var w=bt(u,h,r,t.options.delays);return o&&w.to!==a.Internal&&("entry"===i?m.push(w):o(w,h,r)),w;case S:var _=Ct(u,h,r);return null===o||void 0===o||o(_,h,r),_;case A:if(!(k=null===(d=u.conds.find((function(n){var i=Y(n.cond,t.options.guards);return!i||at(t,i,h,r,o?void 0:e)})))||void 0===d?void 0:d.actions))return[];var E=f(Zt(t,e,h,r,[{type:i,actions:vt(K(k),t.options.actions)}],o,c),2),O=E[0],C=E[1];return h=C,null===g||void 0===g||g.push(h),O;case T:var k;if(!(k=u.get(h,r.data)))return[];var j=f(Zt(t,e,h,r,[{type:i,actions:vt(K(k),t.options.actions)}],o,c),2),N=j[0],P=j[1];return h=P,null===g||void 0===g||g.push(h),N;case v:_=Tt(u,h,r);return null===o||void 0===o||o(_,n,r),_;case b:h=q(h,r,[u],o?void 0:e),null===g||void 0===g||g.push(h);break;default:var R=ht(u,t.options.actions),D=R.exec;if(o)o(R,h,r);else if(D&&g){var V=g.length-1,I=s(s({},R),{exec:function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];D.apply(void 0,l([g[V]],f(e),!1))}});R=I}return R}}var w=F(i.map((function(t){var e,n,i=[];try{for(var a=u(t.actions),s=a.next();!s.done;s=a.next()){var c=s.value,f=x(t.type,c);f&&(i=i.concat(f))}}catch(l){e={error:l}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return m.forEach((function(t){o(t,h,r)})),m.length=0,i})));return[w,h]}var Ft=[],zt=function(t,e){Ft.push(t);var n=e(t);return Ft.pop(),n};function Kt(t){var e;return(e={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:t}}})[tt]=function(){return this},e}function $t(t,e,n){var r=Kt(e);if(r.deferred=!0,et(t)){var i=r.state=zt(void 0,(function(){return(n?t.withContext(n):t).initialState}));r.getSnapshot=function(){return i}}return r}function Wt(t){var e;return s(((e={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[tt]=function(){return this},e),t)}var Jt=function(t){return"atomic"===t.type||"final"===t.type};function qt(t){return Object.keys(t.states).map((function(e){return t.states[e]}))}function Ht(t){return qt(t).filter((function(t){return"history"!==t.type}))}function Xt(t){var e=[t];return Jt(t)?e:e.concat(F(Ht(t).map(Xt)))}function Qt(t,e){var n,r,i,o,a,s,c,f,l=Yt(new Set(t)),d=new Set(e);try{for(var h=u(d),v=h.next();!v.done;v=h.next())for(var p=(E=v.value).parent;
vendor: 6,410 bytes, line 1
1p&&!d.has(p);)d.add(p),p=p.parent}catch(O){n={error:O}}finally{try{v&&!v.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}var y=Yt(d);try{for(var g=u(d),m=g.next();!m.done;m=g.next()){if("compound"!==(E=m.value).type||y.get(E)&&y.get(E).length){if("parallel"===E.type)try{for(var b=(a=void 0,u(Ht(E))),x=b.next();!x.done;x=b.next()){var w=x.value;d.has(w)||(d.add(w),l.get(w)?l.get(w).forEach((function(t){return d.add(t)})):w.initialStateNodes.forEach((function(t){return d.add(t)})))}}catch(C){a={error:C}}finally{try{x&&!x.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}}else l.get(E)?l.get(E).forEach((function(t){return d.add(t)})):E.initialStateNodes.forEach((function(t){return d.add(t)}))}}catch(k){i={error:k}}finally{try{m&&!m.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}try{for(var S=u(d),_=S.next();!_.done;_=S.next()){var E;for(p=(E=_.value).parent;p&&!d.has(p);)d.add(p),p=p.parent}}catch(j){c={error:j}}finally{try{_&&!_.done&&(f=S.return)&&f.call(S)}finally{if(c)throw c.error}}return d}function Gt(t,e){var n=e.get(t);if(!n)return{};if("compound"===t.type){var r=n[0];if(!r)return{};if(Jt(r))return r.key}var i={};return n.forEach((function(t){i[t.key]=Gt(t,e)})),i}function Yt(t){var e,n,r=new Map;try{for(var i=u(t),o=i.next();!o.done;o=i.next()){var a=o.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}function te(t,e){return Gt(t,Yt(Qt([t],e)))}function ee(t,e){return Array.isArray(t)?t.some((function(t){return t===e})):t instanceof Set&&t.has(e)}function ne(t,e){return"compound"===e.type?Ht(e).some((function(e){return"final"===e.type&&ee(t,e)})):"parallel"===e.type&&Ht(e).every((function(e){return ne(t,e)}))}function re(t){return new Set(F(t.map((function(t){return t.tags}))))}function ie(t,e){if(t===e)return!0;if(void 0===t||void 0===e)return!1;if(G(t)||G(e))return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((function(n){return ie(t[n],e[n])}))}function oe(t){return"object"===typeof t&&null!==t&&("value"in t&&"_event"in t)}var ae=function(){function t(t){var e,n,r=this;this.actions=[],this.activities=N,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||N,this.meta=(void 0===(n=t.configuration)&&(n=[]),n.reduce((function(t,e){return void 0!==e.meta&&(t[e.id]=e.meta),t}),{})),this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,this.tags=null!==(e=Array.isArray(t.tags)?new Set(t.tags):t.tags)&&void 0!==e?e:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return function(t){return l([],f(new Set(F(l([],f(t.map((function(t){return t.ownEvents}))),!1)))),!1)}(r.configuration)}})}return t.from=function(e,n){return e instanceof t?e.context!==n?new t({value:e.value,context:n,_event:e._event,_sessionid:null,historyValue:e.historyValue,history:e.history,actions:[],activities:e.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):e:new t({value:e,context:n,_event:lt,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},t.create=function(e){return new t(e)},t.inert=function(e,n){if(e instanceof t){if(!e.actions.length)return e;var r=lt;return new t({value:e.value,context:n,_event:r,_sessionid:null,historyValue:e.historyValue,history:e.history,activities:e.activities,configuration:e.configuration,transitions:[],children:{}})}return t.from(e,n)},t.prototype.toStrings=function(t,e){var n=this;if(void 0===t&&(t=this.value),void 0===e&&(e="."),G(t))return[t];var r=Object.keys(t);return r.concat.apply(r,l([],f(r.map((function(r){return n.toStrings(t[r],e).map((function(t){return r+e+t}))}))),!1))},t.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var e=t.tags;t.machine;var n=c(t,["configuration","transitions","tags","machine"]);return s(s({},n),{tags:Array.from(e)})},t.prototype.matches=function(t){return R(t,this.value)},t.prototype.hasTag=function(t){return this.tags.has(t)},t.prototype.can=function(t){var e;H(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var n=null===(e=this.machine)||void 0===e?void 0:e.getTransitionData(this,t);return!!(null===n||void 0===n?void 0:n.transitions.length)&&n.transitions.some((function(t){return void 0!==t.target||t.actions.length}))},t}(),se={deferEvents:!1},ce=function(){function t(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=s(s({},se),t)}return t.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents)return void this.schedule(t);this.process(t)}this.flushEvents()},t.prototype.schedule=function(t){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()}else this.queue.push(t)},t.prototype.clear=function(){this.queue=[]},t.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},t.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},t}(),ue=new Map,fe=0,le=function(){return"x:".concat(fe++)},de=function(t,e){return ue.set(t,e),t},he=function(t){return ue.get(t)},ve=function(t){ue.delete(t)};function pe(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:void 0}function ye(t){if(pe()){var e=function(){var t=pe();if(t&&"__xstate__"in t)return t.__xstate__}();e&&e.register(t)}}function ge(t,e){void 0===e&&(e={});var n=t.initialState,r=new Set,i=[],o=!1,a=Wt({id:e.id,send:function(e){i.push(e),function(){if(!o){for(o=!0;i.length>0;){var e=i.shift();n=t.transition(n,e,s),r.forEach((function(t){return t.next(n)}))}o=!1}}()},getSnapshot:function(){return n}
1,subscribe:function(t,e,i){var o=ct(t,e,i);return r.add(o),o.next(n),{unsubscribe:function(){r.delete(o)}}}}),s={parent:e.parent,self:a,id:e.id||"anonymous",observers:r};return n=t.start?t.start(s):n,a}var me,be={sync:!1,autoForward:!1};!function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"}(me||(me={}));var xe=function(){function t(e,n){void 0===n&&(n=t.defaultOptions);var r=this;this.machine=e,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=me.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(t,e){if(X(t))return r.batch(t),r.state;var n=it(rt(t,e));if(r.status===me.Stopped)return r.state;if(r.status!==me.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(r.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return r.scheduler.schedule((function(){r.forward(n);var t=r._nextState(n);r.update(t,n)})),r._state},this.sendTo=function(t,e,n){var i,o=r.parent&&(e===a.Parent||r.parent.id===e),c=o?r.parent:G(e)?e===a.Internal?r:r.children.get(e)||he(e):(i=e)&&"function"===typeof i.send?e:void 0;if(c)if("machine"in c){if(r.status!==me.Stopped||r.parent!==c||r.state.done){var u=s(s({},t),{name:t.name===k?"".concat(It(r.id)):t.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([c,u]):c.send(u)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([c,t.data]):c.send(t.data);else if(!o)throw new Error("Unable to send event to child '".concat(e,"' from service '").concat(r.id,"'."))},this._exec=function(t,e,n,i){void 0===i&&(i=r.machine.options.actions);var a=t.exec||dt(t.type,i),s=Q(a)?a:a?a.exec:t.exec;if(s)try{return s(e,n.data,r.machine.config.predictableActionArguments?{action:t,_event:n}:{action:t,state:r.state,_event:n})}catch(j){throw r.parent&&r.parent.send({type:"xstate.error",data:j}),j}switch(t.type){case p:var c=t;r.defer(c);break;case y:var u=t;if("number"===typeof u.delay)return void r.defer(u);u.to?r.sendTo(u._event,u.to,n===lt):r.send(u._event);break;case g:r.cancel(t.sendId);break;case h:if(r.status!==me.Running)return;var f=t.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[f.id||f.type])break;if(f.type===o.Invoke){var l=st(f.src),d=r.machine.options.services?r.machine.options.services[l.type]:void 0,m=f.id,b=f.data;0;var x="autoForward"in f?f.autoForward:!!f.forward;if(!d)return void 0;var w=b?$(b,e,n):void 0;if("string"===typeof d)return;var _=Q(d)?d(e,n.data,{data:w,src:l,meta:f.meta}):d;if(!_)return;var E=void 0;et(_)&&(_=w?_.withContext(w):_,E={autoForward:x}),r.spawn(_,m,E)}else r.spawnActivity(f);break;case v:r.stopChild(t.activity.id);break;case S:var O=t,C=O.label,k=O.value;C?r.logger(C,k):r.logger(k)}};var i=s(s({},t.defaultOptions),n),c=i.clock,u=i.logger,f=i.parent,l=i.id,d=void 0!==l?l:e.id;this.id=d,this.logger=u,this.clock=c,this.parent=f,this.options=i,this.scheduler=new ce({deferEvents:this.options.deferEvents}),this.sessionId=le()}return Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:zt(this,(function(){return t._initialState=t.machine.initialState,t._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),t.prototype.execute=function(t,e){var n,r;try{for(var i=u(t.actions),o=i.next();!o.done;o=i.next()){var a=o.value;this.exec(a,t,e)}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype.update=function(t,e){var n,r,i,o,a,s,c,f,l=this;if(t._sessionid=this.sessionId,this._state=t,this.machine.config.predictableActionArguments&&e!==lt||!this.options.execute)for(var d=void 0;d=this._outgoingQueue.shift();)d[0].send(d[1]);else this.execute(this.state);
1if(this.children.forEach((function(t){l.state.children[t.id]=t})),this.devTools&&this.devTools.send(e.data,t),t.event)try{for(var h=u(this.eventListeners),v=h.next();!v.done;v=h.next()){(0,v.value)(t.event)}}catch(_){n={error:_}}finally{try{v&&!v.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var p=u(this.listeners),y=p.next();!y.done;y=p.next()){(0,y.value)(t,t.event)}}catch(E){i={error:E}}finally{try{y&&!y.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}try{for(var g=u(this.contextListeners),m=g.next();!m.done;m=g.next()){(0,m.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(O){a={error:O}}finally{try{m&&!m.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}if(this.state.done){var b=t.configuration.find((function(t){return"final"===t.type&&t.parent===l.machine})),x=b&&b.doneData?$(b.doneData,t.context,e):void 0;this._doneEvent=Vt(this.id,x);try{for(var w=u(this.doneListeners),S=w.next();!S.done;S=w.next()){(0,S.value)(this._doneEvent)}}catch(C){c={error:C}}finally{try{S&&!S.done&&(f=w.return)&&f.call(w)}finally{if(c)throw c.error}}this._stop(),this._stopChildren(),ve(this.sessionId)}},t.prototype.onTransition=function(t){return this.listeners.add(t),this.status===me.Running&&t(this.state,this.state.event),this},t.prototype.subscribe=function(t,e,n){var r=this,i=ct(t,e,n);this.listeners.add(i.next),this.status!==me.NotStarted&&i.next(this.state);var o=function(){r.doneListeners.delete(o),r.stopListeners.delete(o),i.complete()};return this.status===me.Stopped?i.complete():(this.onDone(o),this.onStop(o)),{unsubscribe:function(){r.listeners.delete(i.next),r.doneListeners.delete(o),r.stopListeners.delete(o)}}},t.prototype.onEvent=function(t){return this.eventListeners.add(t),this},t.prototype.onSend=function(t){return this.sendListeners.add(t),this},t.prototype.onChange=function(t){return this.contextListeners.add(t),this},t.prototype.onStop=function(t){return this.stopListeners.add(t),this},t.prototype.onDone=function(t){return this.status===me.Stopped&&this._doneEvent?t(this._doneEvent):this.doneListeners.add(t),this},t.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},t.prototype.start=function(t){var e=this;if(this.status===me.Running)return this;this.machine._init(),de(this.sessionId,this),this.initialized=!0,this.status=me.Running;var n=void 0===t?this.initialState:zt(this,(function(){return oe(t)?e.machine.resolveState(t):e.machine.resolveState(ae.from(t,e.machine.context))}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){e.update(n,lt)})),this},t.prototype._stopChildren=function(){this.children.forEach((function(t){Q(t.stop)&&t.stop()})),this.children.clear()},t.prototype._stop=function(){var t,e,n,r,i,o,a,s,c,f;try{for(var l=u(this.listeners),d=l.next();!d.done;d=l.next()){var h=d.value;this.listeners.delete(h)}}catch(_){t={error:_}}finally{try{d&&!d.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}try{for(var v=u(this.stopListeners),p=v.next();!p.done;p=v.next()){(h=p.value)(),this.stopListeners.delete(h)}}catch(E){n={error:E}}finally{try{p&&!p.done&&(r=v.return)&&r.call(v)}finally{if(n)throw n.error}}try{for(var y=u(this.contextListeners),g=y.next();!g.done;g=y.next()){h=g.value;this.contextListeners.delete(h)}}catch(O){i={error:O}}finally{try{g&&!g.done&&(o=y.return)&&o.call(y)}finally{if(i)throw i.error}}try{for(var m=u(this.doneListeners),b=m.next();!b.done;b=m.next()){h=b.value;this.doneListeners.delete(h)}}catch(C){a={error:C}}finally{try{b&&!b.done&&(s=m.return)&&s.call(m)}finally{if(a)throw a.error}}if(!this.initialized)return this;this.initialized=!1,this.status=me.Stopped,this._initialState=void 0;try{for(var x=u(Object.keys(this.delayedEventsMap)),w=x.next();!w.done;w=x.next()){var S=w.value;this.clock.clearTimeout(this.delayedEventsMap[S])}}catch(k){c={error:k}}finally{try{w&&!w.done&&(f=x.return)&&f.call(x)}finally{if(c)throw c.error}}
1this.scheduler.clear(),this.scheduler=new ce({deferEvents:this.options.deferEvents})},t.prototype.stop=function(){var t=this,e=this.scheduler;return this._stop(),e.schedule((function(){var e;if(!(null===(e=t._state)||void 0===e?void 0:e.done)){var n=it({type:"xstate.stop"}),r=zt(t,(function(){var e=F(l([],f(t.state.configuration),!1).sort((function(t,e){return e.order-t.order})).map((function(e){return vt(e.onExit,t.machine.options.actions)}))),r=f(Zt(t.machine,t.state,t.state.context,n,[{type:"exit",actions:e}],t.machine.config.predictableActionArguments?t._exec:void 0,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),i=r[0],o=r[1],a=new ae({value:t.state.value,context:o,_event:n,_sessionid:t.sessionId,historyValue:void 0,history:t.state,actions:i.filter((function(t){return!ft(t)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});return a.changed=!0,a}));t.update(r,n),t._stopChildren(),ve(t.sessionId)}})),this},t.prototype.batch=function(t){var e=this;if(this.status===me.NotStarted&&this.options.deferEvents)0;else if(this.status!==me.Running)throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(t.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule((function(){var r,i,o=e.state,a=!1,c=[],d=function(t){var r=it(t);e.forward(r),o=zt(e,(function(){return e.machine.transition(o,r,void 0,n||void 0)})),c.push.apply(c,l([],f(e.machine.config.predictableActionArguments?o.actions:o.actions.map((function(t){return function(t,e){var n=t.exec;return s(s({},t),{exec:void 0!==n?function(){return n(e.context,e.event,{action:t,state:e,_event:e._event})}:void 0})}(t,o)}))),!1)),a=a||!!o.changed};try{for(var h=u(t),v=h.next();!v.done;v=h.next()){d(v.value)}}catch(p){r={error:p}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}o.changed=a,o.actions=c,e.update(o,it(t[t.length-1]))}))}},t.prototype.sender=function(t){return this.send.bind(this,t)},t.prototype._nextState=function(t,e){var n=this;void 0===e&&(e=!!this.machine.config.predictableActionArguments&&this._exec);var r=it(t);if(0===r.name.indexOf(C)&&!this.state.nextEvents.some((function(t){return 0===t.indexOf(C)})))throw r.data.data;return zt(this,(function(){return n.machine.transition(n.state,r,void 0,e||void 0)}))},t.prototype.nextState=function(t){return this._nextState(t,!1)},t.prototype.forward=function(t){var e,n;try{for(var r=u(this.forwardTo),i=r.next();!i.done;i=r.next()){var o=i.value,a=this.children.get(o);if(!a)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(o,"'."));a.send(t)}}catch(s){e={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype.defer=function(t){var e=this,n=this.clock.setTimeout((function(){"to"in t&&t.to?e.sendTo(t._event,t.to,!0):e.send(t._event)}),t.delay);t.id&&(this.delayedEventsMap[t.id]=n)},t.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},t.prototype.exec=function(t,e,n){void 0===n&&(n=this.machine.options.actions),this._exec(t,e.context,e._event,n)},t.prototype.removeChild=function(t){var e;this.children.delete(t),this.forwardTo.delete(t),null===(e=this.state)||void 0===e||delete e.children[t]},t.prototype.stopChild=function(t){var e=this.children.get(t);e&&(this.removeChild(t),Q(e.stop)&&e.stop())},t.prototype.spawn=function(t,e,n){if(this.status!==me.Running)return $t(t,e);if(W(t))return this.spawnPromise(Promise.resolve(t),e);if(Q(t))return this.spawnCallback(t,e);if(function(t){try{return"function"===typeof t.send}catch(e){return!1}}(i=t)&&"id"in i)return this.spawnActor(t,e);if(function(t){try{return"subscribe"in t&&Q(t.subscribe)}catch(e){return!1}}(t))return this.spawnObservable(t,e);
vendor: 25,498 bytes, line 1
1if(et(t))return this.spawnMachine(t,s(s({},n),{id:e}));if(null!==(r=t)&&"object"===typeof r&&"transition"in r&&"function"===typeof r.transition)return this.spawnBehavior(t,e);throw new Error('Unable to spawn entity "'.concat(e,'" of type "').concat(typeof t,'".'));var r,i},t.prototype.spawnMachine=function(e,n){var r=this;void 0===n&&(n={});var i=new t(e,s(s({},this.options),{parent:this,id:n.id||e.id})),o=s(s({},be),n);o.sync&&i.onTransition((function(t){r.send(j,{state:t,id:i.id})}));var a=i;return this.children.set(i.id,a),o.autoForward&&this.forwardTo.add(i.id),i.onDone((function(t){r.removeChild(i.id),r.send(it(t,{origin:i.id}))})).start(),a},t.prototype.spawnBehavior=function(t,e){var n=ge(t,{id:e,parent:this});return this.children.set(e,n),n},t.prototype.spawnPromise=function(t,e){var n,r,i=this,o=!1;t.then((function(t){o||(r=t,i.removeChild(e),i.send(it(Vt(e,t),{origin:e})))}),(function(t){if(!o){i.removeChild(e);var n=It(e,t);try{i.send(it(n,{origin:e}))}catch(r){i.devTools&&i.devTools.send(n,i.state),i.machine.strict&&i.stop()}}}));var a=((n={id:e,send:function(){},subscribe:function(e,n,r){var i=ct(e,n,r),o=!1;return t.then((function(t){o||(i.next(t),o||i.complete())}),(function(t){o||i.error(t)})),{unsubscribe:function(){return o=!0}}},stop:function(){o=!0},toJSON:function(){return{id:e}},getSnapshot:function(){return r}})[tt]=function(){return this},n);return this.children.set(e,a),a},t.prototype.spawnCallback=function(t,e){var n,r,i,o=this,a=!1,s=new Set,c=new Set;try{i=t((function(t){r=t,c.forEach((function(e){return e(t)})),a||o.send(it(t,{origin:e}))}),(function(t){s.add(t)}))}catch(f){this.send(It(e,f))}if(W(i))return this.spawnPromise(i,e);var u=((n={id:e,send:function(t){return s.forEach((function(e){return e(t)}))},subscribe:function(t){var e=ct(t);return c.add(e.next),{unsubscribe:function(){c.delete(e.next)}}},stop:function(){a=!0,Q(i)&&i()},toJSON:function(){return{id:e}},getSnapshot:function(){return r}})[tt]=function(){return this},n);return this.children.set(e,u),u},t.prototype.spawnObservable=function(t,e){var n,r,i=this,o=t.subscribe((function(t){r=t,i.send(it(t,{origin:e}))}),(function(t){i.removeChild(e),i.send(it(It(e,t),{origin:e}))}),(function(){i.removeChild(e),i.send(it(Vt(e),{origin:e}))})),a=((n={id:e,send:function(){},subscribe:function(e,n,r){return t.subscribe(e,n,r)},stop:function(){return o.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:e}}})[tt]=function(){return this},n);return this.children.set(e,a),a},t.prototype.spawnActor=function(t,e){return this.children.set(e,t),t},t.prototype.spawnActivity=function(t){var e=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(e){var n=e(this.state.context,t);this.spawnEffect(t.id,n)}},t.prototype.spawnEffect=function(t,e){var n;this.children.set(t,((n={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:e||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}})[tt]=function(){return this},n))},t.prototype.attachDev=function(){var t=pe();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var e="object"===typeof this.options.devTools?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(s(s({name:this.id,autoPause:!0,stateSanitizer:function(t){return{value:t.value,context:t.context,actions:t.actions}}},e),{features:s({jump:!1,skip:!1},e?e.features:void 0)}),this.machine),this.devTools.init(this.state)}ye(this)}},t.prototype.toJSON=function(){return{id:this.id}},t.prototype[tt]=function(){return this},t.prototype.getSnapshot=function(){return this.status===me.NotStarted?this.initialState:this._state},t.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,e){return setTimeout(t,e)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},t.interpret=Se,t}();function we(t,e){var n=function(t){return G(t)?s(s({},be),{name:t}):s(s(s({},be),{name:nt()}),t)}(e);return function(e){return e?e.spawn(t,n.name,n):$t(t,n.name)}(Ft[Ft.length-1])}function Se(t,e){return new xe(t,e)}function _e(t){if("string"===typeof t){var e={type:t,toString:function(){return t}};return e}return t}function Ee(t){return s(s({type:E},t),{toJSON:function(){t.onDone,t.onError;var e=c(t,["onDone","onError"]);return s(s({},e),{type:E,src:_e(t.src)})}})}var Oe="",Ce="*",ke={},je=function(t){return"#"===t[0]},Ae=function(){function t(e,n,r,i){void 0===r&&(r="context"in e?e.context:void 0);var o,a=this;this.config=e,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null===i||void 0===i?void 0:i.parent,this.key=this.config.key||(null===i||void 0===i?void 0:i.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||l([this.machine.key],f(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(o=this.config.schema)&&void 0!==o?o:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?M(this.config.states,(function(e,n){var r,i=new t(e,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,s(((r={})[i.id]=i,r),i.idMap)),i})):ke;var c=0;!function t(e){var n,r;e.order=c++;try{for(var i=u(qt(e)),o=i.next();!o.done;o=i.next()){t(o.value)}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(t){return t.event===Oe})):Oe in this.config.on),this.strict=!!this.config.strict,this.onEntry=K(this.config.entry||this.config.onEntry).map((function(t){return ht(t)})),this.onExit=K(this.config.exit||this.config.onExit).map((function(t){return ht(t)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=K(this.config.invoke).map((function(t,e){var n,r;if(et(t)){var i=ut(a.id,e);return a.machine.options.services=s(((n={})[i]=t,n),a.machine.options.services),Ee({src:i,id:i})}if(G(t.src)){i=t.id||ut(a.id,e);return Ee(s(s({},t),{id:i,src:t.src}))}if(et(t.src)||Q(t.src)){i=t.id||ut(a.id,e);return a.machine.options.services=s(((r={})[i]=t.src,r),a.machine.options.services),Ee(s(s({id:i},t),{src:i}))}var o=t.src;return Ee(s(s({id:ut(a.id,e)},t),{src:o}))})),this.activities=K(this.config.activities).concat(this.invoke).map((function(t){return pt(t)})),this.transition=this.transition.bind(this),this.tags=K(this.config.tags)}return t.prototype._init=function(){this.__cache.transitions||Xt(this).forEach((function(t){return t.on}))},t.prototype.withConfig=function(e,n){var r=this.options,i=r.actions,o=r.activities,a=r.guards,c=r.services,u=r.delays;return new t(this.config,{actions:s(s({},i),e.actions),activities:s(s({},o),e.activities),guards:s(s({},a),e.guards),services:s(s({},c),e.services),delays:s(s({},u),e.delays)},null!==n&&void 0!==n?n:this.context)},t.prototype.withContext=function(e){return new t(this.config,this.options,e)},Object.defineProperty(t.prototype,"context",{get:function(){return Q(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:M(this.states,(function(t){return t.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){return this.definition},Object.defineProperty(t.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce((function(t,e){return t[e.eventType]=t[e.eventType]||[],t[e.eventType].push(e),t}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),t.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var e=t===Oe,n=this.transitions.filter((function(n){var r=n.eventType===t;return e?r:r||n.eventType===Ce}));return this.__cache.candidates[t]=n,n},t.prototype.getDelayedTransitions=function(){var t=this,e=this.config.after;if(!e)return[];var n=function(e,n){var r=Rt(Q(e)?"".concat(t.id,":delay[").concat(n,"]"):e,t.id);return t.onEntry.push(mt(r,{delay:e})),t.onExit.push(kt(r)),r};return(X(e)?e.map((function(t,e){var r=n(t.delay,e);return s(s({},t),{event:r})})):F(Object.keys(e).map((function(t,r){var i=e[t],o=G(i)?{target:i}:i,a=isNaN(+t)?t:+t,c=n(a,r);return K(o).map((function(t){return s(s({},t),{event:c,delay:a})}))})))).map((function(e){var n=e.delay;return s(s({},t.formatTransition(e)),{delay:n})}))},t.prototype.getStateNodes=function(t){var e,n=this;if(!t)return[];var r=t instanceof ae?t.value:I(t,this.delimiter);if(G(r)){var i=this.getStateNode(r).initial;return void 0!==i?this.getStateNodes(((e={})[r]=i,e)):[this,this.states[r]]}var o=Object.keys(r),a=[this];return a.push.apply(a,l([],f(F(o.map((function(t){return n.getStateNode(t).getStateNodes(r[t])})))),!1)),a},t.prototype.handles=function(t){var e=D(t);return this.events.includes(e)},t.prototype.resolveState=function(t){var e=t instanceof ae?t:ae.create(t),n=Array.from(Qt([],this.getStateNodes(e.value)));return new ae(s(s({},e),{value:this.resolve(e.value),configuration:n,done:ne(n,this),tags:re(n),machine:this.machine}))},t.prototype.transitionLeafNode=function(t,e,n){var r=this.getStateNode(t).next(e,n);return r&&r.transitions.length?r:this.next(e,n)},t.prototype.transitionCompoundNode=function(t,e,n){var r=Object.keys(t),i=this.getStateNode(r[0])._transition(t[r[0]],e,n);return i&&i.transitions.length?i:this.next(e,n)},t.prototype.transitionParallelNode=function(t,e,n){var r,i,o={};try{for(var a=u(Object.keys(t)),s=a.next();!s.done;s=a.next()){var c=s.value,f=t[c];if(f){var l=this.getStateNode(c)._transition(f,e,n);l&&(o[c]=l)}}}catch(p){r={error:p}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}var d=Object.keys(o).map((function(t){return o[t]})),h=F(d.map((function(t){return t.transitions})));if(!d.some((function(t){return t.transitions.length>0})))return this.next(e,n);var v=F(Object.keys(o).map((function(t){return o[t].configuration})));return{transitions:h,exitSet:F(d.map((function(t){return t.exitSet}))),configuration:v,source:e,actions:F(Object.keys(o).map((function(t){return o[t].actions})))}},t.prototype._transition=function(t,e,n){return G(t)?this.transitionLeafNode(t,e,n):1===Object.keys(t).length?this.transitionCompoundNode(t,e,n):this.transitionParallelNode(t,e,n)},t.prototype.getTransitionData=function(t,e){return this._transition(t.value,t,it(e))},t.prototype.next=function(t,e){var n,r,i,o=this,a=e.name,s=[],c=[];try{for(var d=u(this.getCandidates(a)),h=d.next();!h.done;h=d.next()){var v=h.value,p=v.cond,y=v.in,g=t.context,m=!y||(G(y)&&je(y)?t.matches(I(this.getStateNodeById(y).path,this.delimiter)):R(I(y,this.delimiter),B(this.path.slice(0,-2))(t.value))),b=!1;try{b=!p||at(this.machine,p,g,e,t)}catch(w){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,"':\n").concat(w.message))}if(b&&m){void 0!==v.target&&(c=v.target),s.push.apply(s,l([],f(v.actions),!1)),i=v;break}}}catch(S){n={error:S}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}if(i){if(!c.length)return{transitions:[i],exitSet:[],configuration:t.value?[this]:[],source:t,actions:s};var x=F(c.map((function(e){return o.getRelativeStateNodes(e,t.historyValue)})));return{transitions:[i],exitSet:!!i.internal?[]:F(c.map((function(t){return o.getPotentiallyReenteringNodes(t)}))),configuration:x,source:t,actions:s}}},t.prototype.getPotentiallyReenteringNodes=function(t){if(this.order<t.order)return[this];for(var e=[],n=this,r=t;n&&n!==r;)e.push(n),n=n.parent;return n!==r?[]:(e.push(r),e)},t.prototype.getActions=function(t,e,n,r,i,o,a){var s,c,d,h,v=this,p=o?Qt([],this.getStateNodes(o.value)):[],y=new Set;try{for(var g=u(Array.from(t).sort((function(t,e){return t.order-e.order}))),m=g.next();!m.done;m=g.next()){(!ee(p,w=m.value)||ee(n.exitSet,w)||w.parent&&y.has(w.parent))&&y.add(w)}}catch(j){s={error:j}}finally{try{m&&!m.done&&(c=g.return)&&c.call(g)}finally{if(s)throw s.error}}try{for(var b=u(p),x=b.next();!x.done;x=b.next()){var w;ee(t,w=x.value)&&!ee(n.exitSet,w.parent)||n.exitSet.push(w)}}catch(A){d={error:A}}finally{try{x&&!x.done&&(h=b.return)&&h.call(b)}finally{if(d)throw d.error}}n.exitSet.sort((function(t,e){return e.order-t.order}));var S=Array.from(y).sort((function(t,e){return t.order-e.order})),_=new Set(n.exitSet),E=F(S.map((function(t){var e=[];if("final"!==t.type)return e;var o=t.parent;if(!o.parent)return e;e.push(Dt(t.id,t.doneData),Dt(o.id,t.doneData?$(t.doneData,r,i):void 0));var a=o.parent;return"parallel"===a.type&&Ht(a).every((function(t){return ne(n.configuration,t)}))&&e.push(Dt(a.id)),e}))),O=S.map((function(t){var e=t.onEntry,n=t.activities.map((function(t){return jt(t)}));return{type:"entry",actions:vt(a?l(l([],f(e),!1),f(n),!1):l(l([],f(n),!1),f(e),!1),v.machine.options.actions)}})).concat({type:"state_done",actions:E.map((function(t){return yt(t)}))}),C=Array.from(_).map((function(t){return{type:"exit",actions:vt(l(l([],f(t.onExit),!1),f(t.activities.map((function(t){return At(t)}))),!1),v.machine.options.actions)}})).concat({type:"transition",actions:vt(n.actions,this.machine.options.actions)}).concat(O);if(e){var k=vt(F(l([],f(t),!1).sort((function(t,e){return e.order-t.order})).map((function(t){return t.onExit}))),this.machine.options.actions).filter((function(t){return!ft(t)}));return C.concat({type:"stop",actions:k})}return C},t.prototype.transition=function(t,e,n,r){void 0===t&&(t=this.initialState);var i,o,a=it(e);if(t instanceof ae)i=void 0===n?t:this.resolveState(ae.from(t,n));else{var s=G(t)?this.resolve(L(this.getResolvedPath(t))):this.resolve(t),c=null!==n&&void 0!==n?n:this.machine.context;i=this.resolveState(ae.from(s,c))}if(this.strict&&!this.events.includes(a.name)&&(o=a.name,!/^(done|error)\./.test(o)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var u=this._transition(i.value,i,a)||{transitions:[],configuration:[],exitSet:[],source:i,actions:[]},d=Qt([],this.getStateNodes(i.value)),h=u.configuration.length?Qt(d,u.configuration):d;return u.configuration=l([],f(h),!1),this.resolveTransition(u,i,i.context,r,a)},t.prototype.resolveRaisedTransition=function(t,e,n,r){var i,o=t.actions;return(t=this.transition(t,e,void 0,r))._event=n,t.event=n.data,(i=t.actions).unshift.apply(i,l([],f(o),!1)),t},t.prototype.resolveTransition=function(t,e,n,r,i){var o,a,c,l,d=this;void 0===i&&(i=lt);var p=t.configuration,y=!e||t.transitions.length>0,g=y?t.configuration:e?e.configuration:[],b=ne(g,this),x=y?te(this.machine,p):void 0,w=e?e.historyValue?e.historyValue:t.source?this.machine.historyValue(e.value):void 0:void 0,S=this.getActions(new Set(g),b,t,n,i,e,r),_=e?s({},e.activities):{};try{for(var O=u(S),C=O.next();!C.done;C=O.next()){var k=C.value;try{for(var A=(c=void 0,u(k.actions)),T=A.next();!T.done;T=A.next()){var N=T.value;N.type===h?_[N.activity.id||N.activity.type]=N:N.type===v&&(_[N.activity.id||N.activity.type]=!1)}}catch(Q){c={error:Q}}finally{try{T&&!T.done&&(l=A.return)&&l.call(A)}finally{if(c)throw c.error}}}}catch(G){o={error:G}}finally{try{C&&!C.done&&(a=O.return)&&a.call(O)}finally{if(o)throw o.error}}var P,R,D=f(Zt(this,e,n,i,S,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),V=D[0],I=D[1],L=f(function(t,e){var n,r,i=f([[],[]],2),o=i[0],a=i[1];try{for(var s=u(t),c=s.next();!c.done;c=s.next()){var l=c.value;e(l)?o.push(l):a.push(l)}}catch(G){n={error:G}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return[o,a]}(V,ft),2),M=L[0],U=L[1],B=V.filter((function(t){var e;return t.type===h&&(null===(e=t.activity)||void 0===e?void 0:e.type)===E})),Z=B.reduce((function(t,e){return t[e.activity.id]=function(t,e,n,r){var i,o=st(t.src),a=null===(i=null===e||void 0===e?void 0:e.options.services)||void 0===i?void 0:i[o.type],s=t.data?$(t.data,n,r):void 0,c=a?$t(a,t.id,s):Kt(t.id);return c.meta=t,c}(e.activity,d.machine,I,i),t}),e?s({},e.children):{}),F=new ae({value:x||e.value,context:I,_event:i,_sessionid:e?e._sessionid:null,historyValue:x?w?(P=w,R=x,{current:R,states:J(P,R)}):void 0:e?e.historyValue:void 0,history:!x||t.source?e:void 0,actions:x?U:[],activities:x?_:e?e.activities:{},events:[],configuration:g,transitions:t.transitions,children:Z,done:b,tags:re(g),machine:this}),z=n!==I;F.changed=i.name===j||z;var K=F.history;K&&delete K.history;var W=!b&&(this._transient||p.some((function(t){return t._transient})));if(!y&&(!W||i.name===Oe))return F;var q=F;if(!b)for(W&&(q=this.resolveRaisedTransition(q,{type:m},i,r));M.length;){var H=M.shift();q=this.resolveRaisedTransition(q,H._event,i,r)}var X=q.changed||(K?!!q.actions.length||z||typeof K.value!==typeof q.value||!ie(q.value,K.value):void 0);return q.changed=X,q.history=K,q},t.prototype.getStateNode=function(t){if(je(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var e=this.states[t];if(!e)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return e},t.prototype.getStateNodeById=function(t){var e=je(t)?t.slice("#".length):t;if(e===this.id)return this;var n=this.machine.idMap[e];if(!n)throw new Error("Child state node '#".concat(e,"' does not exist on machine '").concat(this.id,"'"));return n},t.prototype.getStateNodeByPath=function(t){if("string"===typeof t&&je(t))try{return this.getStateNodeById(t.slice(1))}catch(i){}for(var e=V(t,this.delimiter).slice(),n=this;e.length;){var r=e.shift();if(!r.length)break;n=n.getStateNode(r)}return n},t.prototype.resolve=function(t){var e,n=this;if(!t)return this.initialStateValue||ke;switch(this.type){case"parallel":return M(this.initialStateValue,(function(e,r){return e?n.getStateNode(r).resolve(t[r]||e):ke}));case"compound":if(G(t)){var r=this.getStateNode(t);return"parallel"===r.type||"compound"===r.type?((e={})[t]=r.initialStateValue,e):t}return Object.keys(t).length?M(t,(function(t,e){return t?n.getStateNode(e).resolve(t):ke})):this.initialStateValue||{};default:return t||ke}},t.prototype.getResolvedPath=function(t){if(je(t)){var e=this.machine.idMap[t.slice("#".length)];if(!e)throw new Error("Unable to find state node '".concat(t,"'"));return e.path}return V(t,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var t,e;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)e=U(this.states,(function(t){return t.initialStateValue||ke}),(function(t){return!("history"===t.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));e=Jt(this.states[this.initial])?this.initial:((t={})[this.initial]=this.states[this.initial].initialStateValue,t)}else e={};return this.__cache.initialStateValue=e,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(t,e){this._init();var n=this.getStateNodes(t);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!==e&&void 0!==e?e:this.machine.context,void 0)},Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var t;if("history"===this.type){var e=this.config;t=G(e.target)&&je(e.target)?L(this.machine.getStateNodeById(e.target).path.slice(this.path.length-1)):e.target}return t},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(t,e,n){return void 0===n&&(n=!0),n?"history"===t.type?t.resolveHistory(e):t.initialStateNodes:[t]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var t=this;return Jt(this)?[this]:"compound"!==this.type||this.initial?F(Z(this.initialStateValue).map((function(e){return t.getFromRelativePath(e)}))):[this]},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var e=f(t),n=e[0],r=e.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var i=this.getStateNode(n);if("history"===i.type)return i.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},t.prototype.historyValue=function(t){if(Object.keys(this.states).length)return{current:t||this.initialStateValue,states:U(this.states,(function(e,n){if(!t)return e.historyValue();var r=G(t)?void 0:t[n];return e.historyValue(r||e.initialStateValue)}),(function(t){return!t.history}))}},t.prototype.resolveHistory=function(t){var e=this;if("history"!==this.type)return[this];var n=this.parent;if(!t){var r=this.target;return r?F(Z(r).map((function(t){return n.getFromRelativePath(t)}))):n.initialStateNodes}var i,o,a=(i=n.path,o="states",function(t){var e,n,r=t;try{for(var a=u(i),s=a.next();!s.done;s=a.next()){var c=s.value;r=r[o][c]}}catch(f){e={error:f}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return r})(t).current;return G(a)?[n.getStateNode(a)]:F(Z(a).map((function(t){return"deep"===e.history?n.getFromRelativePath(t):[n.states[t[0]]]})))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var t=this,e=F(Object.keys(this.states).map((function(e){return t.states[e].stateIds})));return[this.id].concat(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){var t,e,n,r;if(this.__cache.events)return this.__cache.events;var i=this.states,o=new Set(this.ownEvents);if(i)try{for(var a=u(Object.keys(i)),s=a.next();!s.done;s=a.next()){var c=i[s.value];if(c.states)try{for(var f=(n=void 0,u(c.events)),l=f.next();!l.done;l=f.next()){var d=l.value;o.add("".concat(d))}}catch(h){n={error:h}}finally{try{l&&!l.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}}catch(v){t={error:v}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter((function(t){return!(!t.target&&!t.actions.length&&t.internal)})).map((function(t){return t.eventType})));return Array.from(t)},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(t){var e=this;if(void 0!==t)return t.map((function(t){if(!G(t))return t;var n=t[0]===e.delimiter;if(n&&!e.parent)return e.getStateNodeByPath(t.slice(1));var r=n?e.key+t:t;if(!e.parent)return e.getStateNodeByPath(r);try{return e.parent.getStateNodeByPath(r)}catch(i){throw new Error("Invalid transition definition for state node '".concat(e.id,"':\n").concat(i.message))}}))},t.prototype.formatTransition=function(t){var e=this,n=function(t){if(void 0!==t&&""!==t)return K(t)}(t.target),r="internal"in t?t.internal:!n||n.some((function(t){return G(t)&&t[0]===e.delimiter})),i=this.machine.options.guards,o=this.resolveTarget(n),a=s(s({},t),{actions:vt(K(t.actions)),cond:Y(t.cond,i),target:o,source:this,internal:r,eventType:t.event,toJSON:function(){return s(s({},a),{target:a.target?a.target.map((function(t){return"#".concat(t.id)})):void 0,source:"#".concat(e.id)})}});return a},t.prototype.formatTransitions=function(){var t,e,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var i=this.config.on,o=Ce,a=i[o],s=void 0===a?[]:a,d=c(i,["*"]);n=F(Object.keys(d).map((function(t){var e=ot(t,d[t]);return e})).concat(ot(Ce,s)))}else n=[];var h=this.config.always?ot("",this.config.always):[],v=this.config.onDone?ot(String(Dt(this.id
1)),this.config.onDone):[];var p=F(this.invoke.map((function(t){var e=[];return t.onDone&&e.push.apply(e,l([],f(ot(String(Vt(t.id)),t.onDone)),!1)),t.onError&&e.push.apply(e,l([],f(ot(String(It(t.id)),t.onError)),!1)),e}))),y=this.after,g=F(l(l(l(l([],f(v),!1),f(p),!1),f(n),!1),f(h),!1).map((function(t){return K(t).map((function(t){return r.formatTransition(t)}))})));try{for(var m=u(y),b=m.next();!b.done;b=m.next()){var x=b.value;g.push(x)}}catch(w){t={error:w}}finally{try{b&&!b.done&&(e=m.return)&&e.call(m)}finally{if(t)throw t.error}}return g},t}();function Te(t,e,n){return void 0===n&&(n=t.context),new Ae(t,e,n)}function Ne(t,e){return new Ae(t,e)}function Pe(t,e){var n,r,i;try{for(var o=u(Object.keys(t)),a=o.next();!a.done;a=o.next()){var s=a.value;R(s,e)&&(!i||e.length>i.length)&&(i=s)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return t[i]}function Re(t,e,n){var r,i,o=ae.from(t,t instanceof ae?t.context:void 0);try{for(var a=u(e),s=a.next();!s.done;s=a.next()){var c=f(s.value,2),l=c[0],d=c[1];if(o.matches(l))return d(o)}}catch(h){r={error:h}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return n(o)}function De(t){return t}var Ve=De,Ie=Nt,Le=kt,Me=mt,Ue=wt,Be=xt,Ze=St,Fe=Mt,ze=Vt,Ke=yt,$e=Ot,We=Lt,Je=Bt,qe=At},45827:function(t,e,n){n.d(e,{z$:function(){return j},fC:function(){return k}});var r=n(67294),i=n(28771),o=n(85893);function a(...t){const e=t[0];if(1===t.length)return e;const n=()=>{const n=t.map((t=>({useScope:t(),scopeName:t.scopeName})));return function(t){const i=n.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${e.scopeName}`]:i})),[i])}};return n.scopeName=e.scopeName,n}var s=n(36206),c=n(96885);var u=globalThis?.document?r.useLayoutEffect:()=>{};var f=n(26180);n(73935);function l(t){const e=d(t),n=r.forwardRef(((t,n)=>{const{children:i,...a}=t,s=r.Children.toArray(i),c=s.find(v);if(c){const t=c.props.children,i=s.map((e=>e===c?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return(0,o.jsx)(e,{...a,ref:n,children:r.isValidElement(t)?r.cloneElement(t,void 0,i):null})}return(0,o.jsx)(e,{...a,ref:n,children:i})}));return n.displayName=`${t}.Slot`,n}function d(t){const e=r.forwardRef(((t,e)=>{const{children:n,...o}=t;if(r.isValidElement(n)){const t=function(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;if(n)return t.ref;if(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n)return t.props.ref;return t.props.ref||t.ref}(n),a=function(t,e){const n={...e};for(const r in e){const i=t[r],o=e[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...t)=>{o(...t),i(...t)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}(o,n.props);return n.type!==r.Fragment&&(a.ref=e?(0,i.F)(e,t):t),r.cloneElement(n,a)}return r.Children.count(n)>1?r.Children.only(null):null}));return e.displayName=`${t}.SlotClone`,e}var h=Symbol("radix.slottable");function v(t){return r.isValidElement(t)&&"function"===typeof t.type&&"__radixId"in t.type&&t.type.__radixId===h}var p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,e)=>{const n=l(`Primitive.${e}`),i=r.forwardRef(((t,r)=>{const{asChild:i,...a}=t,s=i?n:e;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(s,{...a,ref:r})}));return i.displayName=`Primitive.${e}`,{...t,[e]:i}}),{});var y="Checkbox",[g,m]=function(t,e=[]){let n=[];const i=()=>{const e=n.map((t=>r.createContext(t)));return function(n){const i=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:i}})),[n,i])}};return i.scopeName=t,[function(e,i){const a=r.createContext(i),s=n.length;n=[...n,i];const c=e=>{const{scope:n,children:i,...c}=e,u=n?.[t]?.[s]||a,f=r.useMemo((()=>c),Object.values(c));return(0,o.jsx)(u.Provider,{value:f,children:i})};return c.displayName=e+"Provider",[c,function(n,o){const c=o?.[t]?.[s]||a,u=r.useContext(c);if(u)return u;if(void 0!==i)return i;throw new Error(`\`${n}\` must be used within \`${e}\``)}]},a(i,...e)]}(y),[b,x]=g(y),w=r.forwardRef(((t,e)=>{const{__scopeCheckbox:n,name:a,checked:u,defaultChecked:f,required:l,disabled:d,value:h="on",onCheckedChange:v,form:y,...g}=t,[m,x]=r.useState(null),w=(0,i.e)(e,(t=>x(t))),S=r.useRef(!1),_=!m||(y||!!m.closest("form")),[k=!1,j]=(0,c.T)({prop:u,defaultProp:f,onChange:v}),A=r.useRef(k);return r.useEffect((()=>{const t=m?.form;if(t){const e=()=>j(A.current);return t.addEventListener("reset",e),()=>t.removeEventListener("reset",e)}}),[m,j]),(0,o.jsxs)(b,{scope:n,state:k,disabled:d,children:[(0,o.jsx)(p.button,{type:"button",role:"checkbox","aria-checked":O(k)?"mixed":k,"aria-required":l,"data-state":C(k),"data-disabled":d?"":void 0,disabled:d,value:h,...g,ref:w,onKeyDown:(0,s.M)(t.onKeyDown,(t=>{"Enter"===t.key&&t.preventDefault()})),onClick:(0,s.M)(t.onClick,(t=>{j((t=>!!O(t)||!t)),_&&(S.current=t.isPropagationStopped(),S.current||t.stopPropagation())}))}),_&&(0,o.jsx)(E,{control:m,bubbles:!S.current,name:a,value:h,checked:k,required:l,disabled:d,form:y,style:{transform:"translateX(-100%)"},defaultChecked:!O(f)&&f})]})}));w.displayName=y;var S="CheckboxIndicator",_=r.forwardRef(((t,e)=>{const{__scopeCheckbox:n,forceMount:r,...i}=t,a=x(S,n);return(0,o.jsx)(f.z,{present:r||O(a.state)||!0===a.state,children:(0,o.jsx)(p.span,{"data-state":C(a.state),"data-disabled":a.disabled?"":void 0,...i,ref:e,style:{pointerEvents:"none",...t.style}})})}));_.displayName=S;var E=t=>{const{control:e,checked:n,bubbles:i=!0,defaultChecked:a,...s}=t,c=r.useRef(null),f=function(t){const e=r.useRef({value:t,previous:t});return r.useMemo((()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous)),[t])}(n),l=function(t){const[e,n]=r.useState(void 0);return u((()=>
1{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const r=e[0];let i,o;if("borderBoxSize"in r){const t=r.borderBoxSize,e=Array.isArray(t)?t[0]:t;i=e.inlineSize,o=e.blockSize}else i=t.offsetWidth,o=t.offsetHeight;n({width:i,height:o})}));return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)}),[t]),e}(e);r.useEffect((()=>{const t=c.current,e=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(e,"checked").set;if(f!==n&&r){const e=new Event("click",{bubbles:i});t.indeterminate=O(n),r.call(t,!O(n)&&n),t.dispatchEvent(e)}}),[f,n,i]);const d=r.useRef(!O(n)&&n);return(0,o.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a??d.current,...s,tabIndex:-1,ref:c,style:{...t.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function O(t){return"indeterminate"===t}function C(t){return O(t)?"indeterminate":t?"checked":"unchecked"}var k=w,j=_},20943:function(t,e,n){function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,{Z:function(){return r}})},51438:function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{Z:function(){return r}})},91224:function(t,e,n){n.d(e,{Z:function(){return o}});var r=n(82662);function i(t,e){return!e||"object"!==((n=e)&&n.constructor===Symbol?"symbol":typeof n)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e;var n}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=(0,r.Z)(t);if(e){var a=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return i(this,n)}}},82662:function(t,e,n){function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}function i(t){return r(t)}n.d(e,{Z:function(){return i}})},28668:function(t,e,n){n.d(e,{Z:function(){return i}});var r=n(44998);function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&(0,r.Z)(t,e)}},82670:function(t,e,n){function r(t,e){return null!=e&&"undefined"!==typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}n.d(e,{Z:function(){return r}})},13375:function(t,e,n){function r(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}n.d(e,{Z:function(){return r}})},44998:function(t,e,n){function r(t,e){return r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(t,e)}function i(t,e){return r(t,e)}n.d(e,{Z:function(){return i}})},828:function(t,e,n){n.d(e,{Z:function(){return o}});var r=n(13375);var i=n(91566);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||(0,r.Z)(t,e)||(0,i.Z)(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},91566:function(t,e,n){n.d(e,{Z:function(){return i}});var r=n(20943);function i(t,e){if(t){if("string"===typeof t)return(0,r.Z)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(t,e):void 0}}},25892:function(t,e,n){n.d(e,{Z:function(){return u}});var r=n(44998);function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function o(t,e,n){return o=i()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&(0,r.Z)(o,n.prototype),o},o.apply(null,arguments)}function a(t,e,n){return o.apply(null,arguments)}var s=n(82662);function c(t){var e="function"===typeof Map?new Map:void 0;return c=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return a(t,arguments,(0,s.Z)(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),(0,r.Z)(i,t)},c(t)}function u(t){return c(t)}}}]);

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