From 72cfbe4c2138c3289b40160d9122398bb69c170a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Wed, 2 Nov 2022 07:54:44 +0000 Subject: [PATCH] Bundle embedded web app --- static/web/404.html | 4 ++-- static/web/404/index.html | 4 ++-- .../_buildManifest.js | 2 +- .../_ssgManifest.js | 0 static/web/_next/static/chunks/9372-33c9bdaa0fb5ade5.js | 1 + static/web/_next/static/chunks/9372-9a6ed970911222d5.js | 1 - static/web/admin/access-tokens/index.html | 2 +- static/web/admin/actions/index.html | 2 +- static/web/admin/chat/messages/index.html | 2 +- static/web/admin/chat/users/index.html | 2 +- static/web/admin/config-chat/index.html | 2 +- static/web/admin/config-federation/index.html | 2 +- static/web/admin/config-notify/index.html | 2 +- static/web/admin/config-public-details/index.html | 2 +- static/web/admin/config-server-details/index.html | 2 +- static/web/admin/config-social-items/index.html | 2 +- static/web/admin/config-storage/index.html | 2 +- static/web/admin/config-video/index.html | 2 +- static/web/admin/federation/actions/index.html | 2 +- static/web/admin/federation/followers/index.html | 2 +- static/web/admin/hardware-info/index.html | 2 +- static/web/admin/help/index.html | 2 +- static/web/admin/index.html | 2 +- static/web/admin/logs/index.html | 2 +- static/web/admin/stream-health/index.html | 2 +- static/web/admin/upgrade/index.html | 2 +- static/web/admin/viewer-info/index.html | 2 +- static/web/admin/webhooks/index.html | 2 +- static/web/embed/chat/readonly/index.html | 2 +- static/web/embed/chat/readwrite/index.html | 2 +- static/web/embed/video/index.html | 2 +- static/web/index.html | 2 +- 32 files changed, 32 insertions(+), 32 deletions(-) rename static/web/_next/static/{xOjtWOw9OXyvYodyb8u08 => 9kA1FM8Ht7xGCcKkuAltE}/_buildManifest.js (98%) rename static/web/_next/static/{xOjtWOw9OXyvYodyb8u08 => 9kA1FM8Ht7xGCcKkuAltE}/_ssgManifest.js (100%) create mode 100644 static/web/_next/static/chunks/9372-33c9bdaa0fb5ade5.js delete mode 100644 static/web/_next/static/chunks/9372-9a6ed970911222d5.js diff --git a/static/web/404.html b/static/web/404.html index 4185f52ba..ca2f5884a 100644 --- a/static/web/404.html +++ b/static/web/404.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/404/index.html b/static/web/404/index.html index 4185f52ba..ca2f5884a 100644 --- a/static/web/404/index.html +++ b/static/web/404/index.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/_next/static/xOjtWOw9OXyvYodyb8u08/_buildManifest.js b/static/web/_next/static/9kA1FM8Ht7xGCcKkuAltE/_buildManifest.js similarity index 98% rename from static/web/_next/static/xOjtWOw9OXyvYodyb8u08/_buildManifest.js rename to static/web/_next/static/9kA1FM8Ht7xGCcKkuAltE/_buildManifest.js index 9f6172e93..3e1a3b387 100644 --- a/static/web/_next/static/xOjtWOw9OXyvYodyb8u08/_buildManifest.js +++ b/static/web/_next/static/9kA1FM8Ht7xGCcKkuAltE/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(s,a,c,e,i,t,d,n,f,h,o,b,m,u,k,r,j,g,p,l,_,w,v,y,I,B,F){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[a,s,c,t,d,f,b,r,j,g,"static/chunks/204-6ae122010850efb7.js",h,"static/css/cffc98a5ffdc74a3.css","static/chunks/pages/index-6723057cc31c8d93.js"],"/_error":["static/chunks/pages/_error-f2496e8b9fdedb89.js"],"/admin":[a,s,c,e,i,t,d,n,o,b,"static/chunks/8676-58e1723c87a0d4ec.js","static/chunks/pages/admin-43f9087fa6678c4f.js"],"/admin/access-tokens":[a,s,c,e,i,"static/chunks/pages/admin/access-tokens-2a375f0c31dcf20c.js"],"/admin/actions":[a,s,c,e,"static/chunks/pages/admin/actions-3df6be5983096e91.js"],"/admin/chat/messages":[p,a,s,c,e,i,d,l,_,"static/chunks/pages/admin/chat/messages-5e938f5fcf6d38b4.js"],"/admin/chat/users":[p,a,s,c,e,i,t,d,l,_,"static/chunks/pages/admin/chat/users-edd78f9bcab13177.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-60cf4efa879df43b.js"],"/admin/config-federation":["static/chunks/1829-b015b4e5cd814fc8.js","static/chunks/pages/admin/config-federation-5c6874737e33a71c.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-162a41a161f6bd5a.js"],"/admin/config-public-details":["static/chunks/4ad82c5e-3111f896f08ad8d3.js",a,s,c,e,m,"static/chunks/9257-911165491be7087c.js",w,"static/chunks/pages/admin/config-public-details-e19f32415e69afa7.js"],"/admin/config-server-details":[v,"static/chunks/pages/admin/config-server-details-16e85ec1ac7c9ccd.js"],"/admin/config-social-items":[a,s,c,e,w,"static/chunks/pages/admin/config-social-items-4259e7e71b649d89.js"],"/admin/config-storage":["static/chunks/5473-ecd3fd646bf241fd.js","static/chunks/pages/admin/config-storage-723faa1b1e9d32cc.js"],"/admin/config-video":[a,s,c,e,v,"static/chunks/4812-9c96405be4c6ddd3.js","static/chunks/pages/admin/config-video-19a0ca309f8f853b.js"],"/admin/federation/actions":[a,s,c,e,i,"static/chunks/pages/admin/federation/actions-7358c2d2b36cd0d3.js"],"/admin/federation/followers":[a,s,c,e,i,t,"static/chunks/pages/admin/federation/followers-244b216150a6b7ed.js"],"/admin/hardware-info":[u,i,t,n,o,k,m,"static/chunks/pages/admin/hardware-info-bc854e2372771829.js"],"/admin/help":[t,n,r,"static/chunks/3206-6bf4badc6a1cb52c.js","static/chunks/pages/admin/help-bd9252a9141a83bc.js"],"/admin/logs":[a,s,c,e,i,b,"static/chunks/pages/admin/logs-35a30537d6fb39a8.js"],"/admin/stream-health":[u,i,t,n,o,k,"static/chunks/2934-a0634ff87273dd23.js","static/chunks/pages/admin/stream-health-477fe3fdf39f07c6.js"],"/admin/upgrade":[a,s,c,e,"static/chunks/2069-f1df28dfe5edee8e.js","static/chunks/pages/admin/upgrade-c7e86ed531f5961a.js"],"/admin/viewer-info":[u,a,s,c,e,i,t,d,n,o,k,m,"static/chunks/pages/admin/viewer-info-d5d9e6e1bb5b2d30.js"],"/admin/webhooks":[a,s,c,e,"static/chunks/pages/admin/webhooks-3dd2b3adafd762f3.js"],"/embed/chat/readonly":[y,I,f,B,h,F,"static/css/12c1bf3c7fd206d0.css","static/chunks/pages/embed/chat/readonly-6c062638c2ee8469.js"],"/embed/chat/readwrite":[y,I,s,f,B,g,h,F,"static/css/836decc457006cbf.css","static/chunks/pages/embed/chat/readwrite-7d31566901d47d3e.js"],"/embed/video":["static/chunks/d6e1aeb5-e5a704c6afec0fd3.js",d,f,"static/css/7c735c05af084bb2.css","static/chunks/6967-1dc59a4c5e0e4914.js",j,h,"static/chunks/1064-3812a0a7dd7bd728.js","static/css/df2265f42be36c15.css","static/chunks/pages/embed/video-3c19ed4d3865d475.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/messages","/admin/chat/users","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/3903-97c724332d1a5798.js","static/chunks/8939-f33468a26aa6323b.js","static/chunks/4267-0d1cbd98a57df9e3.js","static/chunks/3626-d074077c8897dd8b.js","static/chunks/8091-d7457a988f3f1d54.js","static/chunks/4381-ff441df8dbf283c8.js","static/chunks/5938-b8bf626b6df6d168.js","static/chunks/5315-7b43a85c1af1db86.js","static/chunks/9372-9a6ed970911222d5.js","static/chunks/1899-4d44c9446e3a1c58.js","static/chunks/4763-d06cb8d6555df3ab.js","static/chunks/5360-2b39dbc93c18fdb4.js","static/chunks/7910-c80aab5f0058b5c3.js","static/chunks/3fff1979-612c6162f1b345ff.js","static/chunks/2139-c72b3a851c3b6fc9.js","static/chunks/250-bed9a23902ee4797.js","static/chunks/2858-46f8295e2b7e6ef0.js","static/chunks/760-835ec0af235693b3.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/2460-885300cc1f75d92b.js","static/chunks/9640-9faa47ae02e368a5.js","static/chunks/2877-d475cbee242c8f3e.js","static/chunks/3286-a15aa91d3d2fc97f.js","static/chunks/d3048c20-405c7c1a8bffb46c.js","static/chunks/d2094a0f-ffb6824e6aa18418.js","static/chunks/2852-f3e7fd3556662a09.js","static/chunks/2382-de86c4f98358af45.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(s,a,c,e,i,t,d,n,f,h,o,b,m,u,k,r,j,g,p,l,_,w,v,y,I,B,F){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[a,s,c,t,d,f,b,r,j,g,"static/chunks/204-6ae122010850efb7.js",h,"static/css/cffc98a5ffdc74a3.css","static/chunks/pages/index-6723057cc31c8d93.js"],"/_error":["static/chunks/pages/_error-f2496e8b9fdedb89.js"],"/admin":[a,s,c,e,i,t,d,n,o,b,"static/chunks/8676-58e1723c87a0d4ec.js","static/chunks/pages/admin-43f9087fa6678c4f.js"],"/admin/access-tokens":[a,s,c,e,i,"static/chunks/pages/admin/access-tokens-2a375f0c31dcf20c.js"],"/admin/actions":[a,s,c,e,"static/chunks/pages/admin/actions-3df6be5983096e91.js"],"/admin/chat/messages":[p,a,s,c,e,i,d,l,_,"static/chunks/pages/admin/chat/messages-5e938f5fcf6d38b4.js"],"/admin/chat/users":[p,a,s,c,e,i,t,d,l,_,"static/chunks/pages/admin/chat/users-edd78f9bcab13177.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-60cf4efa879df43b.js"],"/admin/config-federation":["static/chunks/1829-b015b4e5cd814fc8.js","static/chunks/pages/admin/config-federation-5c6874737e33a71c.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-162a41a161f6bd5a.js"],"/admin/config-public-details":["static/chunks/4ad82c5e-3111f896f08ad8d3.js",a,s,c,e,m,"static/chunks/9257-911165491be7087c.js",w,"static/chunks/pages/admin/config-public-details-e19f32415e69afa7.js"],"/admin/config-server-details":[v,"static/chunks/pages/admin/config-server-details-16e85ec1ac7c9ccd.js"],"/admin/config-social-items":[a,s,c,e,w,"static/chunks/pages/admin/config-social-items-4259e7e71b649d89.js"],"/admin/config-storage":["static/chunks/5473-ecd3fd646bf241fd.js","static/chunks/pages/admin/config-storage-723faa1b1e9d32cc.js"],"/admin/config-video":[a,s,c,e,v,"static/chunks/4812-9c96405be4c6ddd3.js","static/chunks/pages/admin/config-video-19a0ca309f8f853b.js"],"/admin/federation/actions":[a,s,c,e,i,"static/chunks/pages/admin/federation/actions-7358c2d2b36cd0d3.js"],"/admin/federation/followers":[a,s,c,e,i,t,"static/chunks/pages/admin/federation/followers-244b216150a6b7ed.js"],"/admin/hardware-info":[u,i,t,n,o,k,m,"static/chunks/pages/admin/hardware-info-bc854e2372771829.js"],"/admin/help":[t,n,r,"static/chunks/3206-6bf4badc6a1cb52c.js","static/chunks/pages/admin/help-bd9252a9141a83bc.js"],"/admin/logs":[a,s,c,e,i,b,"static/chunks/pages/admin/logs-35a30537d6fb39a8.js"],"/admin/stream-health":[u,i,t,n,o,k,"static/chunks/2934-a0634ff87273dd23.js","static/chunks/pages/admin/stream-health-477fe3fdf39f07c6.js"],"/admin/upgrade":[a,s,c,e,"static/chunks/2069-f1df28dfe5edee8e.js","static/chunks/pages/admin/upgrade-c7e86ed531f5961a.js"],"/admin/viewer-info":[u,a,s,c,e,i,t,d,n,o,k,m,"static/chunks/pages/admin/viewer-info-d5d9e6e1bb5b2d30.js"],"/admin/webhooks":[a,s,c,e,"static/chunks/pages/admin/webhooks-3dd2b3adafd762f3.js"],"/embed/chat/readonly":[y,I,f,B,h,F,"static/css/12c1bf3c7fd206d0.css","static/chunks/pages/embed/chat/readonly-6c062638c2ee8469.js"],"/embed/chat/readwrite":[y,I,s,f,B,g,h,F,"static/css/836decc457006cbf.css","static/chunks/pages/embed/chat/readwrite-7d31566901d47d3e.js"],"/embed/video":["static/chunks/d6e1aeb5-e5a704c6afec0fd3.js",d,f,"static/css/7c735c05af084bb2.css","static/chunks/6967-1dc59a4c5e0e4914.js",j,h,"static/chunks/1064-3812a0a7dd7bd728.js","static/css/df2265f42be36c15.css","static/chunks/pages/embed/video-3c19ed4d3865d475.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/messages","/admin/chat/users","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/3903-97c724332d1a5798.js","static/chunks/8939-f33468a26aa6323b.js","static/chunks/4267-0d1cbd98a57df9e3.js","static/chunks/3626-d074077c8897dd8b.js","static/chunks/8091-d7457a988f3f1d54.js","static/chunks/4381-ff441df8dbf283c8.js","static/chunks/5938-b8bf626b6df6d168.js","static/chunks/5315-7b43a85c1af1db86.js","static/chunks/9372-33c9bdaa0fb5ade5.js","static/chunks/1899-4d44c9446e3a1c58.js","static/chunks/4763-d06cb8d6555df3ab.js","static/chunks/5360-2b39dbc93c18fdb4.js","static/chunks/7910-c80aab5f0058b5c3.js","static/chunks/3fff1979-612c6162f1b345ff.js","static/chunks/2139-c72b3a851c3b6fc9.js","static/chunks/250-bed9a23902ee4797.js","static/chunks/2858-46f8295e2b7e6ef0.js","static/chunks/760-835ec0af235693b3.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/2460-885300cc1f75d92b.js","static/chunks/9640-9faa47ae02e368a5.js","static/chunks/2877-d475cbee242c8f3e.js","static/chunks/3286-a15aa91d3d2fc97f.js","static/chunks/d3048c20-405c7c1a8bffb46c.js","static/chunks/d2094a0f-ffb6824e6aa18418.js","static/chunks/2852-f3e7fd3556662a09.js","static/chunks/2382-de86c4f98358af45.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/web/_next/static/xOjtWOw9OXyvYodyb8u08/_ssgManifest.js b/static/web/_next/static/9kA1FM8Ht7xGCcKkuAltE/_ssgManifest.js similarity index 100% rename from static/web/_next/static/xOjtWOw9OXyvYodyb8u08/_ssgManifest.js rename to static/web/_next/static/9kA1FM8Ht7xGCcKkuAltE/_ssgManifest.js diff --git a/static/web/_next/static/chunks/9372-33c9bdaa0fb5ade5.js b/static/web/_next/static/chunks/9372-33c9bdaa0fb5ade5.js new file mode 100644 index 000000000..6f40222dc --- /dev/null +++ b/static/web/_next/static/chunks/9372-33c9bdaa0fb5ade5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9372],{23917:function(t,e,n){n.d(e,{e:function(){return L}});var r=n(67294),i=n(52798),o=n(63056),a=n(59043),s=n(54911),c=n(3884),u=n(30375),f=n(14066),h=n(89823),l={deferEvents:!1},d=function(){function t(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=(0,o.pi)((0,o.pi)({},l),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}(),v=n(98933),p=new Map,y=0,g=function(){return"x:".concat(y++)},m=function(t,e){return p.set(t,e),t},x=function(t){return p.get(t)},b=function(t){p.delete(t)};function S(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:void(f.M||console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues"))}function w(t){if(S()){var e=function(){var t=S();if(t&&"__xstate__"in t)return t.__xstate__}();e&&e.register(t)}}var _=n(10797);function E(t,e){void 0===e&&(e={});var n=t.initialState,r=new Set,i=[],o=!1,a=(0,v.vk)({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},subscribe:function(t,e,i){var o=(0,h.zM)(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 O,A={sync:!1,autoForward:!1};!function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"}(O||(O={}));var M=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=O.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(t,e){if((0,h.kJ)(t))return r.batch(t),r.state;var n=(0,h.g5)((0,h._v)(t,e));if(r.status===O.Stopped)return f.M||(0,h.ZK)(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(r.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),r.state;if(r.status!==O.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=r.parent&&(e===a.K.Parent||r.parent.id===e),s=i?r.parent:(0,h.HD)(e)?r.children.get(e)||x(e):(0,h.Bc)(e)?e:void 0;if(s)if("machine"in s){if(r.status!==O.Stopped||r.parent!==s||r.state.done){var l=(0,o.pi)((0,o.pi)({},t),{name:t.name===c.vU?"".concat((0,u.vU)(r.id)):t.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([s,l]):s.send(l)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([s,t.data]):s.send(t.data);else{if(!i)throw new Error("Unable to send event to child '".concat(e,"' from service '").concat(r.id,"'."));f.M||(0,h.ZK)(!1,"Service '".concat(r.id,"' has no parent: unable to send event ").concat(t.type))}},this._exec=function(t,e,n,i){void 0===i&&(i=r.machine.options.actions);var o=t.exec||(0,u.o$)(t.type,i),s=(0,h.mf)(o)?o:o?o.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(E){throw r.parent&&r.parent.send({type:"xstate.error",data:E}),E}switch(t.type){case c.lW:var l=t;if("number"===typeof l.delay)return void r.defer(l);l.to?r.sendTo(l._event,l.to,n===u.bf):r.send(l._event);break;case c.al:r.cancel(t.sendId);break;case c.BL:if(r.status!==O.Running)return;var d=t.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[d.id||d.type])break;if(d.type===a.M.Invoke){var v=(0,h.j)(d.src),p=r.machine.options.services?r.machine.options.services[v.type]:void 0,y=d.id,g=d.data;f.M||(0,h.ZK)(!("forward"in d),"`forward` property is deprecated (found in invocation of '".concat(d.src,"' in in machine '").concat(r.machine.id,"'). ")+"Please use `autoForward` instead.");var m="autoForward"in d?d.autoForward:!!d.forward;if(!p)return void(f.M||(0,h.ZK)(!1,"No service found for invocation '".concat(d.src,"' in machine '").concat(r.machine.id,"'.")));var x=g?(0,h.QX)(g,e,n):void 0;if("string"===typeof p)return;var b=(0,h.mf)(p)?p(e,n.data,{data:x,src:v,meta:d.meta}):p;if(!b)return;var S=void 0;(0,h.O4)(b)&&(b=x?b.withContext(x):b,S={autoForward:m}),r.spawn(b,y,S)}else r.spawnActivity(d);break;case c.sT:r.stopChild(t.activity.id);break;case c.cM:var w=t.label,_=t.value;w?r.logger(w,_):r.logger(_);break;default:f.M||(0,h.ZK)(!1,"No implementation found for action type '".concat(t.type,"'"))}};var i=(0,o.pi)((0,o.pi)({},t.defaultOptions),n),s=i.clock,l=i.logger,v=i.parent,p=i.id,y=void 0!==p?p:e.id;this.id=y,this.logger=l,this.clock=s,this.parent=v,this.options=i,this.scheduler=new d({deferEvents:this.options.deferEvents}),this.sessionId=g()}return Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:(0,_.J)(this,(function(){return t._initialState=t.machine.initialState,t._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return f.M||(0,h.ZK)(this.status!==O.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),t.prototype.execute=function(t,e){var n,r;try{for(var i=(0,o.XA)(t.actions),a=i.next();!a.done;a=i.next()){var s=a.value;this.exec(s,t,e)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype.update=function(t,e){var n,r,i,a,s,c,f,l,d=this;if(t._sessionid=this.sessionId,this._state=t,this.machine.config.predictableActionArguments&&e!==u.bf||!this.options.execute)for(var v=void 0;v=this._outgoingQueue.shift();)v[0].send(v[1]);else this.execute(this.state);if(this.children.forEach((function(t){d.state.children[t.id]=t})),this.devTools&&this.devTools.send(e.data,t),t.event)try{for(var p=(0,o.XA)(this.eventListeners),y=p.next();!y.done;y=p.next()){(0,y.value)(t.event)}}catch(O){n={error:O}}finally{try{y&&!y.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var g=(0,o.XA)(this.listeners),m=g.next();!m.done;m=g.next()){(0,m.value)(t,t.event)}}catch(A){i={error:A}}finally{try{m&&!m.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}try{for(var x=(0,o.XA)(this.contextListeners),b=x.next();!b.done;b=x.next()){(0,b.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(M){s={error:M}}finally{try{b&&!b.done&&(c=x.return)&&c.call(x)}finally{if(s)throw s.error}}if(this.state.done){var S=t.configuration.find((function(t){return"final"===t.type&&t.parent===d.machine})),w=S&&S.doneData?(0,h.QX)(S.doneData,t.context,e):void 0;try{for(var _=(0,o.XA)(this.doneListeners),E=_.next();!E.done;E=_.next()){(0,E.value)((0,u.Sl)(this.id,w))}}catch(j){f={error:j}}finally{try{E&&!E.done&&(l=_.return)&&l.call(_)}finally{if(f)throw f.error}}this._stop(),this._stopChildren()}},t.prototype.onTransition=function(t){return this.listeners.add(t),this.status===O.Running&&t(this.state,this.state.event),this},t.prototype.subscribe=function(t,e,n){var r=this,i=(0,h.zM)(t,e,n);this.listeners.add(i.next),this.status!==O.NotStarted&&i.next(this.state);var o=function(){r.doneListeners.delete(o),r.stopListeners.delete(o),i.complete()};return this.status===O.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.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===O.Running)return this;this.machine._init(),m(this.sessionId,this),this.initialized=!0,this.status=O.Running;var n=void 0===t?this.initialState:(0,_.J)(this,(function(){return(0,s.TL)(t)?e.machine.resolveState(t):e.machine.resolveState(s.ZM.from(t,e.machine.context))}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){e.update(n,u.bf)})),this},t.prototype._stopChildren=function(){this.children.forEach((function(t){(0,h.mf)(t.stop)&&t.stop()})),this.children.clear()},t.prototype._stop=function(){var t,e,n,r,i,a,s,c,u,f;try{for(var h=(0,o.XA)(this.listeners),l=h.next();!l.done;l=h.next()){var v=l.value;this.listeners.delete(v)}}catch(E){t={error:E}}finally{try{l&&!l.done&&(e=h.return)&&e.call(h)}finally{if(t)throw t.error}}try{for(var p=(0,o.XA)(this.stopListeners),y=p.next();!y.done;y=p.next()){(v=y.value)(),this.stopListeners.delete(v)}}catch(A){n={error:A}}finally{try{y&&!y.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var g=(0,o.XA)(this.contextListeners),m=g.next();!m.done;m=g.next()){v=m.value;this.contextListeners.delete(v)}}catch(M){i={error:M}}finally{try{m&&!m.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}try{for(var x=(0,o.XA)(this.doneListeners),b=x.next();!b.done;b=x.next()){v=b.value;this.doneListeners.delete(v)}}catch(j){s={error:j}}finally{try{b&&!b.done&&(c=x.return)&&c.call(x)}finally{if(s)throw s.error}}if(!this.initialized)return this;this.initialized=!1,this.status=O.Stopped,this._initialState=void 0;try{for(var S=(0,o.XA)(Object.keys(this.delayedEventsMap)),w=S.next();!w.done;w=S.next()){var _=w.value;this.clock.clearTimeout(this.delayedEventsMap[_])}}catch(k){u={error:k}}finally{try{w&&!w.done&&(f=S.return)&&f.call(S)}finally{if(u)throw u.error}}this.scheduler.clear(),this.scheduler=new d({deferEvents:this.options.deferEvents})},t.prototype.stop=function(){var t=this,e=this.scheduler;return this._stop(),e.schedule((function(){var e=(0,h.g5)({type:"xstate.stop"}),n=(0,_.J)(t,(function(){var n=(0,h.xH)((0,o.ev)([],(0,o.CR)(t.state.configuration),!1).sort((function(t,e){return e.order-t.order})).map((function(e){return(0,u.AE)(e.onExit,t.machine.options.actions)}))),r=(0,o.CR)((0,u.yC)(t.machine,t.state,t.state.context,e,[n],t.machine.config.predictableActionArguments?t._exec:void 0,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),i=r[0],f=r[1],l=new s.ZM({value:t.state.value,context:f,_event:e,_sessionid:t.sessionId,historyValue:void 0,history:t.state,actions:i.filter((function(t){return t.type!==c.OU&&(t.type!==c.lW||!!t.to&&t.to!==a.K.Internal)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});return l.changed=!0,l}));t.update(n,e),t._stopChildren(),b(t.sessionId)})),this},t.prototype.batch=function(t){var e=this;if(this.status===O.NotStarted&&this.options.deferEvents)f.M||(0,h.ZK)(!1,"".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==O.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,a=e.state,c=!1,u=[],f=function(t){var r=(0,h.g5)(t);e.forward(r),a=(0,_.J)(e,(function(){return e.machine.transition(a,r,void 0,n||void 0)})),u.push.apply(u,(0,o.ev)([],(0,o.CR)(e.machine.config.predictableActionArguments?a.actions:a.actions.map((function(t){return(0,s.j1)(t,a)}))),!1)),c=c||!!a.changed};try{for(var l=(0,o.XA)(t),d=l.next();!d.done;d=l.next()){f(d.value)}}catch(v){r={error:v}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}a.changed=c,a.actions=u,e.update(a,(0,h.g5)(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=(0,h.g5)(t);if(0===r.name.indexOf(c.Mg)&&!this.state.nextEvents.some((function(t){return 0===t.indexOf(c.Mg)})))throw r.data.data;return(0,_.J)(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=(0,o.XA)(this.forwardTo),i=r.next();!i.done;i=r.next()){var a=i.value,s=this.children.get(a);if(!s)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(a,"'."));s.send(t)}}catch(c){e={error:c}}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;this.delayedEventsMap[t.id]=this.clock.setTimeout((function(){t.to?e.sendTo(t._event,t.to,!0):e.send(t._event)}),t.delay)},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),(0,h.mf)(e.stop)&&e.stop())},t.prototype.spawn=function(t,e,n){if(this.status!==O.Running)return(0,v.Xg)(t,e);if((0,h.y8)(t))return this.spawnPromise(Promise.resolve(t),e);if((0,h.mf)(t))return this.spawnCallback(t,e);if((0,v.f3)(t))return this.spawnActor(t,e);if((0,h.bi)(t))return this.spawnObservable(t,e);if((0,h.O4)(t))return this.spawnMachine(t,(0,o.pi)((0,o.pi)({},n),{id:e}));if((0,h.HV)(t))return this.spawnBehavior(t,e);throw new Error('Unable to spawn entity "'.concat(e,'" of type "').concat(typeof t,'".'))},t.prototype.spawnMachine=function(e,n){var r=this;void 0===n&&(n={});var i=new t(e,(0,o.pi)((0,o.pi)({},this.options),{parent:this,id:n.id||e.id})),a=(0,o.pi)((0,o.pi)({},A),n);a.sync&&i.onTransition((function(t){r.send(c.Vx,{state:t,id:i.id})}));var s=i;return this.children.set(i.id,s),a.autoForward&&this.forwardTo.add(i.id),i.onDone((function(t){r.removeChild(i.id),r.send((0,h.g5)(t,{origin:i.id}))})).start(),s},t.prototype.spawnBehavior=function(t,e){var n=E(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((0,h.g5)((0,u.Sl)(e,t),{origin:e})))}),(function(t){if(!o){i.removeChild(e);var n=(0,u.vU)(e,t);try{i.send((0,h.g5)(n,{origin:e}))}catch(r){(0,h.v4)(t,r,e),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=(0,h.zM)(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}})[h.L$]=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((0,h.g5)(t,{origin:e}))}),(function(t){s.add(t)}))}catch(l){this.send((0,u.vU)(e,l))}if((0,h.y8)(i))return this.spawnPromise(i,e);var f=((n={id:e,send:function(t){return s.forEach((function(e){return e(t)}))},subscribe:function(t){var e=(0,h.zM)(t);return c.add(e.next),{unsubscribe:function(){c.delete(e.next)}}},stop:function(){a=!0,(0,h.mf)(i)&&i()},toJSON:function(){return{id:e}},getSnapshot:function(){return r}})[h.L$]=function(){return this},n);return this.children.set(e,f),f},t.prototype.spawnObservable=function(t,e){var n,r,i=this,o=t.subscribe((function(t){r=t,i.send((0,h.g5)(t,{origin:e}))}),(function(t){i.removeChild(e),i.send((0,h.g5)((0,u.vU)(e,t),{origin:e}))}),(function(){i.removeChild(e),i.send((0,h.g5)((0,u.Sl)(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}}})[h.L$]=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)}else f.M||(0,h.ZK)(!1,"No implementation found for activity '".concat(t.type,"'"))},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}}})[h.L$]=function(){return this},n))},t.prototype.attachDev=function(){var t=S();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((0,o.pi)((0,o.pi)({name:this.id,autoPause:!0,stateSanitizer:function(t){return{value:t.value,context:t.context,actions:t.actions}}},e),{features:(0,o.pi)({jump:!1,skip:!1},e?e.features:void 0)}),this.machine),this.devTools.init(this.state)}w(this)}},t.prototype.toJSON=function(){return{id:this.id}},t.prototype[h.L$]=function(){return this},t.prototype.getSnapshot=function(){return this.status===O.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=j,t}();function j(t,e){return new M(t,e)}var k=r.useLayoutEffect;function T(t){var e=r.useRef();return e.current||(e.current={v:t()}),e.current.v}var N=function(){return N=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(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 D(t){return t}function L(t){for(var e=[],n=1;n0||"boolean"===typeof t.changed);return!(e.changed||n)}),[u]),l=(0,r.useCallback)((function(t){return u.subscribe(t).unsubscribe}),[u]),d=(0,i.useSyncExternalStoreWithSelector)(l,f,f,D,h);return(0,r.useEffect)((function(){var t=c.state;return u.start(t?s.ZM.create(t):void 0),function(){u.stop(),u.status=O.NotStarted}}),[]),[d,u.send,u]}},53250:function(t,e,n){var r=n(67294);var i="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,c=r.useDebugValue;function u(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!i(t,n)}catch(r){return!0}}var f="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=o({inst:{value:n,getSnapshot:e}}),i=r[0].inst,f=r[1];return s((function(){i.value=n,i.getSnapshot=e,u(i)&&f({inst:i})}),[t,n,e]),a((function(){return u(i)&&f({inst:i}),t((function(){u(i)&&f({inst:i})}))}),[t]),c(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:f},50139:function(t,e,n){var r=n(67294),i=n(61688);var o="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},a=i.useSyncExternalStore,s=r.useRef,c=r.useEffect,u=r.useMemo,f=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var h=s(null);if(null===h.current){var l={hasValue:!1,value:null};h.current=l}else l=h.current;h=u((function(){function t(t){if(!c){if(c=!0,a=t,t=r(t),void 0!==i&&l.hasValue){var e=l.value;if(i(e,t))return s=e}return s=t}if(e=s,o(a,t))return e;var n=r(t);return void 0!==i&&i(e,n)?e:(a=t,s=n)}var a,s,c=!1,u=void 0===n?null:n;return[function(){return t(e())},null===u?void 0:function(){return t(u())}]}),[e,n,r,i]);var d=a(t,h[0],h[1]);return c((function(){l.hasValue=!0,l.value=d}),[d]),f(d),d}},61688:function(t,e,n){t.exports=n(53250)},52798:function(t,e,n){t.exports=n(50139)},98933:function(t,e,n){n.d(e,{Xg:function(){return c},f3:function(){return u},mu:function(){return s},vk:function(){return f}});var r=n(63056),i=n(89823),o=n(10797);function a(t){var e;return(e={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:t}}})[i.L$]=function(){return this},e}function s(t,e,n,r){var o,s=(0,i.j)(t.src),u=null===(o=null===e||void 0===e?void 0:e.options.services)||void 0===o?void 0:o[s.type],f=t.data?(0,i.QX)(t.data,n,r):void 0,h=u?c(u,t.id,f):a(t.id);return h.meta=t,h}function c(t,e,n){var r=a(e);if(r.deferred=!0,(0,i.O4)(t)){var s=r.state=(0,o.J)(void 0,(function(){return(n?t.withContext(n):t).initialState}));r.getSnapshot=function(){return s}}return r}function u(t){return function(t){try{return"function"===typeof t.send}catch(e){return!1}}(t)&&"id"in t}function f(t){var e;return(0,r.pi)(((e={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[i.L$]=function(){return this},e),t)}},4723:function(t,e,n){n.d(e,{C:function(){return S}});var r=n(63056),i=n(89823),o=n(59043),a=n(54911),s=n(3884),c=n(30375),u=n(14066),f=n(87353),h=n(56115),l=n(98933);function d(t){if("string"===typeof t){var e={type:t,toString:function(){return t}};return e}return t}function v(t){return(0,r.pi)((0,r.pi)({type:s.dw},t),{toJSON:function(){t.onDone,t.onError;var e=(0,r._T)(t,["onDone","onError"]);return(0,r.pi)((0,r.pi)({},e),{type:s.dw,src:d(t.src)})}})}var p="",y="*",g={},m=function(t){return"#"===t[0]},x=function(){function t(e,n,o,a){void 0===o&&(o="context"in e?e.context:void 0);var s,l=this;this.config=e,this._context=o,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===a||void 0===a?void 0:a.parent,this.key=this.config.key||(null===a||void 0===a?void 0:a.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:f.iS),this.id=this.config.id||(0,r.ev)([this.machine.key],(0,r.CR)(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!==(s=this.config.schema)&&void 0!==s?s:{},this.description=this.config.description,u.M||(0,i.ZK)(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?(0,i.Q8)(this.config.states,(function(e,n){var i,o=new t(e,{},void 0,{parent:l,key:n});return Object.assign(l.idMap,(0,r.pi)(((i={})[o.id]=o,i),o.idMap)),o})):g;var d=0;!function t(e){var n,i;e.order=d++;try{for(var o=(0,r.XA)((0,h.nI)(e)),a=o.next();!a.done;a=o.next()){t(a.value)}}catch(s){n={error:s}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}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===p})):p in this.config.on),this.strict=!!this.config.strict,this.onEntry=(0,i.qo)(this.config.entry||this.config.onEntry).map((function(t){return(0,c.Q8)(t)})),this.onExit=(0,i.qo)(this.config.exit||this.config.onExit).map((function(t){return(0,c.Q8)(t)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=(0,i.qo)(this.config.invoke).map((function(t,e){var n,o;if((0,i.O4)(t)){var a=(0,i.bx)(l.id,e);return l.machine.options.services=(0,r.pi)(((n={})[a]=t,n),l.machine.options.services),v({src:a,id:a})}if((0,i.HD)(t.src)){a=t.id||(0,i.bx)(l.id,e);return v((0,r.pi)((0,r.pi)({},t),{id:a,src:t.src}))}if((0,i.O4)(t.src)||(0,i.mf)(t.src)){a=t.id||(0,i.bx)(l.id,e);return l.machine.options.services=(0,r.pi)(((o={})[a]=t.src,o),l.machine.options.services),v((0,r.pi)((0,r.pi)({id:a},t),{src:a}))}var s=t.src;return v((0,r.pi)((0,r.pi)({id:(0,i.bx)(l.id,e)},t),{src:s}))})),this.activities=(0,i.qo)(this.config.activities).concat(this.invoke).map((function(t){return(0,c.XA)(t)})),this.transition=this.transition.bind(this),this.tags=(0,i.qo)(this.config.tags)}return t.prototype._init=function(){this.__cache.transitions||(0,h.ac)(this).forEach((function(t){return t.on}))},t.prototype.withConfig=function(e,n){var i=this.options,o=i.actions,a=i.activities,s=i.guards,c=i.services,u=i.delays;return new t(this.config,{actions:(0,r.pi)((0,r.pi)({},o),e.actions),activities:(0,r.pi)((0,r.pi)({},a),e.activities),guards:(0,r.pi)((0,r.pi)({},s),e.guards),services:(0,r.pi)((0,r.pi)({},c),e.services),delays:(0,r.pi)((0,r.pi)({},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(0,i.mf)(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:(0,i.Q8)(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===p,n=this.transitions.filter((function(n){var r=n.eventType===t;return e?r:r||n.eventType===y}));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=(0,i.mf)(e)?"".concat(t.id,":delay[").concat(n,"]"):e,o=(0,c.e4)(r,t.id);return t.onEntry.push((0,c.lW)(o,{delay:e})),t.onExit.push((0,c.al)(o)),o};return((0,i.kJ)(e)?e.map((function(t,e){var i=n(t.delay,e);return(0,r.pi)((0,r.pi)({},t),{event:i})})):(0,i.xH)(Object.keys(e).map((function(t,o){var a=e[t],s=(0,i.HD)(a)?{target:a}:a,c=isNaN(+t)?t:+t,u=n(c,o);return(0,i.qo)(s).map((function(t){return(0,r.pi)((0,r.pi)({},t),{event:u,delay:c})}))})))).map((function(e){var n=e.delay;return(0,r.pi)((0,r.pi)({},t.formatTransition(e)),{delay:n})}))},t.prototype.getStateNodes=function(t){var e,n=this;if(!t)return[];var o=t instanceof a.ZM?t.value:(0,i.WM)(t,this.delimiter);if((0,i.HD)(o)){var s=this.getStateNode(o).initial;return void 0!==s?this.getStateNodes(((e={})[o]=s,e)):[this,this.states[o]]}var c=Object.keys(o),u=[this];return u.push.apply(u,(0,r.ev)([],(0,r.CR)((0,i.xH)(c.map((function(t){return n.getStateNode(t).getStateNodes(o[t])})))),!1)),u},t.prototype.handles=function(t){var e=(0,i.x6)(t);return this.events.includes(e)},t.prototype.resolveState=function(t){var e=t instanceof a.ZM?t:a.ZM.create(t),n=Array.from((0,h.P_)([],this.getStateNodes(e.value)));return new a.ZM((0,r.pi)((0,r.pi)({},e),{value:this.resolve(e.value),configuration:n,done:(0,h.Ij)(n,this),tags:(0,h.Oe)(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 o,a,s={};try{for(var c=(0,r.XA)(Object.keys(t)),u=c.next();!u.done;u=c.next()){var f=u.value,h=t[f];if(h){var l=this.getStateNode(f)._transition(h,e,n);l&&(s[f]=l)}}}catch(g){o={error:g}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}var d=Object.keys(s).map((function(t){return s[t]})),v=(0,i.xH)(d.map((function(t){return t.transitions})));if(!d.some((function(t){return t.transitions.length>0})))return this.next(e,n);var p=(0,i.xH)(d.map((function(t){return t.entrySet}))),y=(0,i.xH)(Object.keys(s).map((function(t){return s[t].configuration})));return{transitions:v,entrySet:p,exitSet:(0,i.xH)(d.map((function(t){return t.exitSet}))),configuration:y,source:e,actions:(0,i.xH)(Object.keys(s).map((function(t){return s[t].actions})))}},t.prototype._transition=function(t,e,n){return(0,i.HD)(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,(0,i.g5)(e))},t.prototype.next=function(t,e){var n,o,a,s=this,c=e.name,u=[],f=[];try{for(var h=(0,r.XA)(this.getCandidates(c)),l=h.next();!l.done;l=h.next()){var d=l.value,v=d.cond,p=d.in,y=t.context,g=!p||((0,i.HD)(p)&&m(p)?t.matches((0,i.WM)(this.getStateNodeById(p).path,this.delimiter)):(0,i.W)((0,i.WM)(p,this.delimiter),(0,i.ET)(this.path.slice(0,-2))(t.value))),x=!1;try{x=!v||(0,i.vx)(this.machine,v,y,e,t)}catch(_){throw new Error("Unable to evaluate guard '".concat(v.name||v.type,"' in transition for event '").concat(c,"' in state node '").concat(this.id,"':\n").concat(_.message))}if(x&&g){void 0!==d.target&&(f=d.target),u.push.apply(u,(0,r.ev)([],(0,r.CR)(d.actions),!1)),a=d;break}}}catch(E){n={error:E}}finally{try{l&&!l.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}if(a){if(!f.length)return{transitions:[a],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:u};var b=(0,i.xH)(f.map((function(e){return s.getRelativeStateNodes(e,t.historyValue)}))),S=!!a.internal,w=[];return S||f.forEach((function(t){w.push.apply(w,(0,r.ev)([],(0,r.CR)(s.getExternalReentryNodes(t)),!1))})),{transitions:[a],entrySet:w,exitSet:S?[]:[this],configuration:b,source:t,actions:u}}},t.prototype.getExternalReentryNodes=function(t){for(var e=[],n=(0,r.CR)(t.order>this.order?[t,this]:[this,t],2),i=n[0],o=n[1];i&&i!==o;)e.push(i),i=i.parent;return i!==o?[]:(e.push(o),e)},t.prototype.getActions=function(t,e,n,a,u,f,l){var d,v,p,y,g=this,m=(0,h.P_)([],f?this.getStateNodes(f.value):[this]);try{for(var x=(0,r.XA)(t),b=x.next();!b.done;b=x.next()){var S=b.value;(!(0,h.e$)(m,S)||(0,h.e$)(n.entrySet,S.parent)&&!(0,h.e$)(n.entrySet,S))&&n.entrySet.push(S)}}catch(T){d={error:T}}finally{try{b&&!b.done&&(v=x.return)&&v.call(x)}finally{if(d)throw d.error}}try{for(var w=(0,r.XA)(m),_=w.next();!_.done;_=w.next()){S=_.value;(0,h.e$)(t,S)&&!(0,h.e$)(n.exitSet,S.parent)||n.exitSet.push(S)}}catch(N){p={error:N}}finally{try{_&&!_.done&&(y=w.return)&&y.call(w)}finally{if(p)throw p.error}}var E=(0,i.xH)(n.entrySet.map((function(t){var e=[];if("final"!==t.type)return e;var r=t.parent;if(!r.parent)return e;e.push((0,c.aT)(t.id,t.doneData),(0,c.aT)(r.id,t.doneData?(0,i.QX)(t.doneData,a,u):void 0));var o=r.parent;return"parallel"===o.type&&(0,h.G)(o).every((function(t){return(0,h.Ij)(n.configuration,t)}))&&e.push((0,c.aT)(o.id)),e})));n.exitSet.sort((function(t,e){return e.order-t.order})),n.entrySet.sort((function(t,e){return t.order-e.order}));var O=new Set(n.entrySet),A=new Set(n.exitSet),M=Array.from(O).map((function(t){var e=t.onEntry,n=t.activities.map((function(t){return(0,c.BL)(t)}));return(0,c.AE)(l?(0,r.ev)((0,r.ev)([],(0,r.CR)(e),!1),(0,r.CR)(n),!1):(0,r.ev)((0,r.ev)([],(0,r.CR)(n),!1),(0,r.CR)(e),!1),g.machine.options.actions)})).concat([E.map(c.OU)]),j=Array.from(A).map((function(t){return(0,c.AE)((0,r.ev)((0,r.ev)([],(0,r.CR)(t.onExit),!1),(0,r.CR)(t.activities.map((function(t){return(0,c.sT)(t)}))),!1),g.machine.options.actions)})).concat([(0,c.AE)(n.actions,this.machine.options.actions)]).concat(M);if(e){var k=(0,c.AE)((0,i.xH)((0,r.ev)([],(0,r.CR)(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 t.type!==s.OU&&(t.type!==s.lW||!!t.to&&t.to!==o.K.Internal)}));return j.concat([k])}return j},t.prototype.transition=function(t,e,n,o){void 0===t&&(t=this.initialState);var s,c=(0,i.g5)(e);if(t instanceof a.ZM)s=void 0===n?t:this.resolveState(a.ZM.from(t,n));else{var f=(0,i.HD)(t)?this.resolve((0,i.on)(this.getResolvedPath(t))):this.resolve(t),l=null!==n&&void 0!==n?n:this.machine.context;s=this.resolveState(a.ZM.from(f,l))}if(!u.M&&c.name===y)throw new Error("An event cannot have the wildcard type ('".concat(y,"')"));if(this.strict&&!this.events.includes(c.name)&&!(0,i.JQ)(c.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(c.name,"'"));var d=this._transition(s.value,s,c)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:s,actions:[]},v=(0,h.P_)([],this.getStateNodes(s.value)),p=d.configuration.length?(0,h.P_)(v,d.configuration):v;return d.configuration=(0,r.ev)([],(0,r.CR)(p),!1),this.resolveTransition(d,s,s.context,o,c)},t.prototype.resolveRaisedTransition=function(t,e,n,i){var o,a=t.actions;return(t=this.transition(t,e,void 0,i))._event=n,t.event=n.data,(o=t.actions).unshift.apply(o,(0,r.ev)([],(0,r.CR)(a),!1)),t},t.prototype.resolveTransition=function(t,e,n,u,f){var d,v,y,g,m=this;void 0===f&&(f=c.bf);var x=t.configuration,b=!e||t.transitions.length>0,S=b?t.configuration:e?e.configuration:[],w=(0,h.Ij)(S,this),_=b?(0,h.NA)(this.machine,x):void 0,E=e?e.historyValue?e.historyValue:t.source?this.machine.historyValue(e.value):void 0:void 0,O=this.getActions(new Set(S),w,t,n,f,e,u),A=e?(0,r.pi)({},e.activities):{};try{for(var M=(0,r.XA)(O),j=M.next();!j.done;j=M.next()){var k=j.value;try{for(var T=(y=void 0,(0,r.XA)(k)),N=T.next();!N.done;N=T.next()){var C=N.value;C.type===s.BL?A[C.activity.id||C.activity.type]=C:C.type===s.sT&&(A[C.activity.id||C.activity.type]=!1)}}catch(z){y={error:z}}finally{try{N&&!N.done&&(g=T.return)&&g.call(T)}finally{if(y)throw y.error}}}}catch(B){d={error:B}}finally{try{j&&!j.done&&(v=M.return)&&v.call(M)}finally{if(d)throw d.error}}var R=(0,r.CR)((0,c.yC)(this,e,n,f,O,u,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),P=R[0],D=R[1],L=(0,r.CR)((0,i.uK)(P,(function(t){return t.type===s.OU||t.type===s.lW&&t.to===o.K.Internal})),2),H=L[0],I=L[1],V=P.filter((function(t){var e;return t.type===s.BL&&(null===(e=t.activity)||void 0===e?void 0:e.type)===s.dw})),X=V.reduce((function(t,e){return t[e.activity.id]=(0,l.mu)(e.activity,m.machine,D,f),t}),e?(0,r.pi)({},e.children):{}),Z=new a.ZM({value:_||e.value,context:D,_event:f,_sessionid:e?e._sessionid:null,historyValue:_?E?(0,i.yv)(E,_):void 0:e?e.historyValue:void 0,history:!_||t.source?e:void 0,actions:_?I:[],activities:_?A:e?e.activities:{},events:[],configuration:S,transitions:t.transitions,children:X,done:w,tags:(0,h.Oe)(S),machine:this}),U=n!==D;Z.changed=f.name===s.Vx||U;var J=Z.history;J&&delete J.history;var K=!w&&(this._transient||x.some((function(t){return t._transient})));if(!b&&(!K||f.name===p))return Z;var Q=Z;if(!w)for(K&&(Q=this.resolveRaisedTransition(Q,{type:s.IA},f,u));H.length;){var $=H.shift();Q=this.resolveRaisedTransition(Q,$._event,f,u)}var q=Q.changed||(J?!!Q.actions.length||U||typeof J.value!==typeof Q.value||!(0,a.j_)(Q.value,J.value):void 0);return Q.changed=q,Q.history=J,Q},t.prototype.getStateNode=function(t){if(m(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=m(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&&m(t))try{return this.getStateNodeById(t.slice(1))}catch(o){}for(var e=(0,i.Q9)(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||g;switch(this.type){case"parallel":return(0,i.Q8)(this.initialStateValue,(function(e,r){return e?n.getStateNode(r).resolve(t[r]||e):g}));case"compound":if((0,i.HD)(t)){var r=this.getStateNode(t);return"parallel"===r.type||"compound"===r.type?((e={})[t]=r.initialStateValue,e):t}return Object.keys(t).length?(0,i.Q8)(t,(function(t,e){return t?n.getStateNode(e).resolve(t):g})):this.initialStateValue||{};default:return t||g}},t.prototype.getResolvedPath=function(t){if(m(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(0,i.Q9)(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=(0,i.ib)(this.states,(function(t){return t.initialStateValue||g}),(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=(0,h.N9)(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,entrySet: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=(0,i.HD)(e.target)&&m(e.target)?(0,i.on)(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;if((0,h.N9)(this))return[this];if("compound"===this.type&&!this.initial)return u.M||(0,i.ZK)(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var e=(0,i.SA)(this.initialStateValue);return(0,i.xH)(e.map((function(e){return t.getFromRelativePath(e)})))},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var e=(0,r.CR)(t),n=e[0],i=e.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var o=this.getStateNode(n);if("history"===o.type)return o.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(i)},t.prototype.historyValue=function(t){if(Object.keys(this.states).length)return{current:t||this.initialStateValue,states:(0,i.ib)(this.states,(function(e,n){if(!t)return e.historyValue();var r=(0,i.HD)(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?(0,i.xH)((0,i.SA)(r).map((function(t){return n.getFromRelativePath(t)}))):n.initialStateNodes}var o=(0,i.gk)(n.path,"states")(t).current;return(0,i.HD)(o)?[n.getStateNode(o)]:(0,i.xH)((0,i.SA)(o).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=(0,i.xH)(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,i;if(this.__cache.events)return this.__cache.events;var o=this.states,a=new Set(this.ownEvents);if(o)try{for(var s=(0,r.XA)(Object.keys(o)),c=s.next();!c.done;c=s.next()){var u=o[c.value];if(u.states)try{for(var f=(n=void 0,(0,r.XA)(u.events)),h=f.next();!h.done;h=f.next()){var l=h.value;a.add("".concat(l))}}catch(d){n={error:d}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}}}catch(v){t={error:v}}finally{try{c&&!c.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(a)},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(!(0,i.HD)(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(o){throw new Error("Invalid transition definition for state node '".concat(e.id,"':\n").concat(o.message))}}))},t.prototype.formatTransition=function(t){var e=this,n=(0,i.rg)(t.target),o="internal"in t?t.internal:!n||n.some((function(t){return(0,i.HD)(t)&&t[0]===e.delimiter})),a=this.machine.options.guards,s=this.resolveTarget(n),u=(0,r.pi)((0,r.pi)({},t),{actions:(0,c.AE)((0,i.qo)(t.actions)),cond:(0,i.Qi)(t.cond,a),target:s,source:this,internal:o,eventType:t.event,toJSON:function(){return(0,r.pi)((0,r.pi)({},u),{target:u.target?u.target.map((function(t){return"#".concat(t.id)})):void 0,source:"#".concat(e.id)})}});return u},t.prototype.formatTransitions=function(){var t,e,n,o=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var a=this.config.on,s=y,f=a[s],h=void 0===f?[]:f,l=(0,r._T)(a,["*"]);n=(0,i.xH)(Object.keys(l).map((function(t){u.M||t!==p||(0,i.ZK)(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(o.id,'".'));var e=(0,i.jh)(t,l[t]);return u.M||function(t,e,n){var r=n.slice(0,-1).some((function(t){return!("cond"in t)&&!("in"in t)&&((0,i.HD)(t.target)||(0,i.O4)(t.target))})),o=e===p?"the transient event":"event '".concat(e,"'");(0,i.ZK)(!r,"One or more transitions for ".concat(o," on state '").concat(t.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(o,t,e),e})).concat((0,i.jh)(y,h)))}else n=[];var d=this.config.always?(0,i.jh)("",this.config.always):[],v=this.config.onDone?(0,i.jh)(String((0,c.aT)(this.id)),this.config.onDone):[];u.M||(0,i.ZK)(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var g=(0,i.xH)(this.invoke.map((function(t){var e=[];return t.onDone&&e.push.apply(e,(0,r.ev)([],(0,r.CR)((0,i.jh)(String((0,c.Sl)(t.id)),t.onDone)),!1)),t.onError&&e.push.apply(e,(0,r.ev)([],(0,r.CR)((0,i.jh)(String((0,c.vU)(t.id)),t.onError)),!1)),e}))),m=this.after,x=(0,i.xH)((0,r.ev)((0,r.ev)((0,r.ev)((0,r.ev)([],(0,r.CR)(v),!1),(0,r.CR)(g),!1),(0,r.CR)(n),!1),(0,r.CR)(d),!1).map((function(t){return(0,i.qo)(t).map((function(t){return o.formatTransition(t)}))})));try{for(var b=(0,r.XA)(m),S=b.next();!S.done;S=b.next()){var w=S.value;x.push(w)}}catch(_){t={error:_}}finally{try{S&&!S.done&&(e=b.return)&&e.call(b)}finally{if(t)throw t.error}}return x},t}(),b=!1;function S(t,e){return u.M||t.predictableActionArguments||b||(b=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new x(t,e)}},54911:function(t,e,n){n.d(e,{TL:function(){return f},ZM:function(){return l},j1:function(){return h},j_:function(){return u}});var r=n(63056),i=n(87353),o=n(89823),a=n(56115),s=n(30375),c=n(14066);function u(t,e){if(t===e)return!0;if(void 0===t||void 0===e)return!1;if((0,o.HD)(t)||(0,o.HD)(e))return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((function(n){return u(t[n],e[n])}))}function f(t){return"object"===typeof t&&null!==t&&("value"in t&&"_event"in t)}function h(t,e){var n=t.exec;return(0,r.pi)((0,r.pi)({},t),{exec:void 0!==n?function(){return n(e.context,e.event,{action:t,state:e,_event:e._event})}:void 0})}var l=function(){function t(t){var e,n=this;this.actions=[],this.activities=i.qP,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||i.qP,this.meta=(0,a.xZ)(t.configuration),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(0,a.nJ)(n.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:s.bf,_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=s.bf;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="."),(0,o.HD)(t))return[t];var i=Object.keys(t);return i.concat.apply(i,(0,r.ev)([],(0,r.CR)(i.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=(0,r._T)(t,["configuration","transitions","tags","machine"]);return(0,r.pi)((0,r.pi)({},n),{tags:Array.from(e)})},t.prototype.matches=function(t){return(0,o.W)(t,this.value)},t.prototype.hasTag=function(t){return this.tags.has(t)},t.prototype.can=function(t){var e;c.M&&(0,o.ZK)(!!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}()},63056:function(t,e,n){n.d(e,{CR:function(){return a},XA:function(){return o},_T:function(){return i},ev:function(){return s},pi:function(){return r}});var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=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 a(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 s(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;it.length)&&(e=t.length);for(var n=0,r=new Array(e);n0;){var e=i.shift();n=t.transition(n,e,s),r.forEach((function(t){return t.next(n)}))}o=!1}}()},getSnapshot:function(){return n},subscribe:function(t,e,i){var o=(0,h.zM)(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 O,A={sync:!1,autoForward:!1};!function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"}(O||(O={}));var M=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=O.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(t,e){if((0,h.kJ)(t))return r.batch(t),r.state;var n=(0,h.g5)((0,h._v)(t,e));if(r.status===O.Stopped)return f.M||(0,h.ZK)(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(r.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),r.state;if(r.status!==O.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=r.parent&&(e===a.K.Parent||r.parent.id===e),s=i?r.parent:(0,h.HD)(e)?r.children.get(e)||x(e):(0,h.Bc)(e)?e:void 0;if(s)if("machine"in s){if(r.status!==O.Stopped||r.parent!==s||r.state.done){var l=(0,o.pi)((0,o.pi)({},t),{name:t.name===c.vU?"".concat((0,u.vU)(r.id)):t.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([s,l]):s.send(l)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([s,t.data]):s.send(t.data);else{if(!i)throw new Error("Unable to send event to child '".concat(e,"' from service '").concat(r.id,"'."));f.M||(0,h.ZK)(!1,"Service '".concat(r.id,"' has no parent: unable to send event ").concat(t.type))}},this._exec=function(t,e,n,i){void 0===i&&(i=r.machine.options.actions);var o=t.exec||(0,u.o$)(t.type,i),s=(0,h.mf)(o)?o:o?o.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(E){throw r.parent&&r.parent.send({type:"xstate.error",data:E}),E}switch(t.type){case c.lW:var l=t;if("number"===typeof l.delay)return void r.defer(l);l.to?r.sendTo(l._event,l.to,n===u.bf):r.send(l._event);break;case c.al:r.cancel(t.sendId);break;case c.BL:if(r.status!==O.Running)return;var d=t.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[d.id||d.type])break;if(d.type===a.M.Invoke){var v=(0,h.j)(d.src),p=r.machine.options.services?r.machine.options.services[v.type]:void 0,y=d.id,g=d.data;f.M||(0,h.ZK)(!("forward"in d),"`forward` property is deprecated (found in invocation of '".concat(d.src,"' in in machine '").concat(r.machine.id,"'). ")+"Please use `autoForward` instead.");var m="autoForward"in d?d.autoForward:!!d.forward;if(!p)return void(f.M||(0,h.ZK)(!1,"No service found for invocation '".concat(d.src,"' in machine '").concat(r.machine.id,"'.")));var x=g?(0,h.QX)(g,e,n):void 0;if("string"===typeof p)return;var b=(0,h.mf)(p)?p(e,n.data,{data:x,src:v,meta:d.meta}):p;if(!b)return;var S=void 0;(0,h.O4)(b)&&(b=x?b.withContext(x):b,S={autoForward:m}),r.spawn(b,y,S)}else r.spawnActivity(d);break;case c.sT:r.stopChild(t.activity.id);break;case c.cM:var w=t.label,_=t.value;w?r.logger(w,_):r.logger(_);break;default:f.M||(0,h.ZK)(!1,"No implementation found for action type '".concat(t.type,"'"))}};var i=(0,o.pi)((0,o.pi)({},t.defaultOptions),n),s=i.clock,l=i.logger,v=i.parent,p=i.id,y=void 0!==p?p:e.id;this.id=y,this.logger=l,this.clock=s,this.parent=v,this.options=i,this.scheduler=new d({deferEvents:this.options.deferEvents}),this.sessionId=g()}return Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:(0,_.J)(this,(function(){return t._initialState=t.machine.initialState,t._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return f.M||(0,h.ZK)(this.status!==O.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),t.prototype.execute=function(t,e){var n,r;try{for(var i=(0,o.XA)(t.actions),a=i.next();!a.done;a=i.next()){var s=a.value;this.exec(s,t,e)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype.update=function(t,e){var n,r,i,a,s,c,f,l,d=this;if(t._sessionid=this.sessionId,this._state=t,this.machine.config.predictableActionArguments&&e!==u.bf||!this.options.execute)for(var v=void 0;v=this._outgoingQueue.shift();)v[0].send(v[1]);else this.execute(this.state);if(this.children.forEach((function(t){d.state.children[t.id]=t})),this.devTools&&this.devTools.send(e.data,t),t.event)try{for(var p=(0,o.XA)(this.eventListeners),y=p.next();!y.done;y=p.next()){(0,y.value)(t.event)}}catch(O){n={error:O}}finally{try{y&&!y.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var g=(0,o.XA)(this.listeners),m=g.next();!m.done;m=g.next()){(0,m.value)(t,t.event)}}catch(A){i={error:A}}finally{try{m&&!m.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}try{for(var x=(0,o.XA)(this.contextListeners),b=x.next();!b.done;b=x.next()){(0,b.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(M){s={error:M}}finally{try{b&&!b.done&&(c=x.return)&&c.call(x)}finally{if(s)throw s.error}}if(this.state.done){var S=t.configuration.find((function(t){return"final"===t.type&&t.parent===d.machine})),w=S&&S.doneData?(0,h.QX)(S.doneData,t.context,e):void 0;try{for(var _=(0,o.XA)(this.doneListeners),E=_.next();!E.done;E=_.next()){(0,E.value)((0,u.Sl)(this.id,w))}}catch(j){f={error:j}}finally{try{E&&!E.done&&(l=_.return)&&l.call(_)}finally{if(f)throw f.error}}this._stop(),this._stopChildren()}},t.prototype.onTransition=function(t){return this.listeners.add(t),this.status===O.Running&&t(this.state,this.state.event),this},t.prototype.subscribe=function(t,e,n){var r=this,i=(0,h.zM)(t,e,n);this.listeners.add(i.next),this.status!==O.NotStarted&&i.next(this.state);var o=function(){r.doneListeners.delete(o),r.stopListeners.delete(o),i.complete()};return this.status===O.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.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===O.Running)return this;this.machine._init(),m(this.sessionId,this),this.initialized=!0,this.status=O.Running;var n=void 0===t?this.initialState:(0,_.J)(this,(function(){return(0,s.TL)(t)?e.machine.resolveState(t):e.machine.resolveState(s.ZM.from(t,e.machine.context))}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){e.update(n,u.bf)})),this},t.prototype._stopChildren=function(){this.children.forEach((function(t){(0,h.mf)(t.stop)&&t.stop()})),this.children.clear()},t.prototype._stop=function(){var t,e,n,r,i,a,s,c,u,f;try{for(var h=(0,o.XA)(this.listeners),l=h.next();!l.done;l=h.next()){var v=l.value;this.listeners.delete(v)}}catch(E){t={error:E}}finally{try{l&&!l.done&&(e=h.return)&&e.call(h)}finally{if(t)throw t.error}}try{for(var p=(0,o.XA)(this.stopListeners),y=p.next();!y.done;y=p.next()){(v=y.value)(),this.stopListeners.delete(v)}}catch(A){n={error:A}}finally{try{y&&!y.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var g=(0,o.XA)(this.contextListeners),m=g.next();!m.done;m=g.next()){v=m.value;this.contextListeners.delete(v)}}catch(M){i={error:M}}finally{try{m&&!m.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}try{for(var x=(0,o.XA)(this.doneListeners),b=x.next();!b.done;b=x.next()){v=b.value;this.doneListeners.delete(v)}}catch(j){s={error:j}}finally{try{b&&!b.done&&(c=x.return)&&c.call(x)}finally{if(s)throw s.error}}if(!this.initialized)return this;this.initialized=!1,this.status=O.Stopped,this._initialState=void 0;try{for(var S=(0,o.XA)(Object.keys(this.delayedEventsMap)),w=S.next();!w.done;w=S.next()){var _=w.value;this.clock.clearTimeout(this.delayedEventsMap[_])}}catch(k){u={error:k}}finally{try{w&&!w.done&&(f=S.return)&&f.call(S)}finally{if(u)throw u.error}}this.scheduler.clear(),this.scheduler=new d({deferEvents:this.options.deferEvents})},t.prototype.stop=function(){var t=this,e=this.scheduler;return this._stop(),e.schedule((function(){var e=(0,h.g5)({type:"xstate.stop"}),n=(0,_.J)(t,(function(){var n=(0,h.xH)((0,o.ev)([],(0,o.CR)(t.state.configuration),!1).sort((function(t,e){return e.order-t.order})).map((function(e){return(0,u.AE)(e.onExit,t.machine.options.actions)}))),r=(0,o.CR)((0,u.yC)(t.machine,t.state,t.state.context,e,[n],t.machine.config.predictableActionArguments?t._exec:void 0,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),i=r[0],f=r[1],l=new s.ZM({value:t.state.value,context:f,_event:e,_sessionid:t.sessionId,historyValue:void 0,history:t.state,actions:i.filter((function(t){return t.type!==c.OU&&(t.type!==c.lW||!!t.to&&t.to!==a.K.Internal)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});return l.changed=!0,l}));t.update(n,e),t._stopChildren(),b(t.sessionId)})),this},t.prototype.batch=function(t){var e=this;if(this.status===O.NotStarted&&this.options.deferEvents)f.M||(0,h.ZK)(!1,"".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==O.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,a=e.state,c=!1,u=[],f=function(t){var r=(0,h.g5)(t);e.forward(r),a=(0,_.J)(e,(function(){return e.machine.transition(a,r,void 0,n||void 0)})),u.push.apply(u,(0,o.ev)([],(0,o.CR)(e.machine.config.predictableActionArguments?a.actions:a.actions.map((function(t){return(0,s.j1)(t,a)}))),!1)),c=c||!!a.changed};try{for(var l=(0,o.XA)(t),d=l.next();!d.done;d=l.next()){f(d.value)}}catch(v){r={error:v}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}a.changed=c,a.actions=u,e.update(a,(0,h.g5)(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=(0,h.g5)(t);if(0===r.name.indexOf(c.Mg)&&!this.state.nextEvents.some((function(t){return 0===t.indexOf(c.Mg)})))throw r.data.data;return(0,_.J)(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=(0,o.XA)(this.forwardTo),i=r.next();!i.done;i=r.next()){var a=i.value,s=this.children.get(a);if(!s)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(a,"'."));s.send(t)}}catch(c){e={error:c}}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;this.delayedEventsMap[t.id]=this.clock.setTimeout((function(){t.to?e.sendTo(t._event,t.to,!0):e.send(t._event)}),t.delay)},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),(0,h.mf)(e.stop)&&e.stop())},t.prototype.spawn=function(t,e,n){if(this.status!==O.Running)return(0,v.Xg)(t,e);if((0,h.y8)(t))return this.spawnPromise(Promise.resolve(t),e);if((0,h.mf)(t))return this.spawnCallback(t,e);if((0,v.f3)(t))return this.spawnActor(t,e);if((0,h.bi)(t))return this.spawnObservable(t,e);if((0,h.O4)(t))return this.spawnMachine(t,(0,o.pi)((0,o.pi)({},n),{id:e}));if((0,h.HV)(t))return this.spawnBehavior(t,e);throw new Error('Unable to spawn entity "'.concat(e,'" of type "').concat(typeof t,'".'))},t.prototype.spawnMachine=function(e,n){var r=this;void 0===n&&(n={});var i=new t(e,(0,o.pi)((0,o.pi)({},this.options),{parent:this,id:n.id||e.id})),a=(0,o.pi)((0,o.pi)({},A),n);a.sync&&i.onTransition((function(t){r.send(c.Vx,{state:t,id:i.id})}));var s=i;return this.children.set(i.id,s),a.autoForward&&this.forwardTo.add(i.id),i.onDone((function(t){r.removeChild(i.id),r.send((0,h.g5)(t,{origin:i.id}))})).start(),s},t.prototype.spawnBehavior=function(t,e){var n=E(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((0,h.g5)((0,u.Sl)(e,t),{origin:e})))}),(function(t){if(!o){i.removeChild(e);var n=(0,u.vU)(e,t);try{i.send((0,h.g5)(n,{origin:e}))}catch(r){(0,h.v4)(t,r,e),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=(0,h.zM)(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}})[h.L$]=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((0,h.g5)(t,{origin:e}))}),(function(t){s.add(t)}))}catch(l){this.send((0,u.vU)(e,l))}if((0,h.y8)(i))return this.spawnPromise(i,e);var f=((n={id:e,send:function(t){return s.forEach((function(e){return e(t)}))},subscribe:function(t){var e=(0,h.zM)(t);return c.add(e.next),{unsubscribe:function(){c.delete(e.next)}}},stop:function(){a=!0,(0,h.mf)(i)&&i()},toJSON:function(){return{id:e}},getSnapshot:function(){return r}})[h.L$]=function(){return this},n);return this.children.set(e,f),f},t.prototype.spawnObservable=function(t,e){var n,r,i=this,o=t.subscribe((function(t){r=t,i.send((0,h.g5)(t,{origin:e}))}),(function(t){i.removeChild(e),i.send((0,h.g5)((0,u.vU)(e,t),{origin:e}))}),(function(){i.removeChild(e),i.send((0,h.g5)((0,u.Sl)(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}}})[h.L$]=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)}else f.M||(0,h.ZK)(!1,"No implementation found for activity '".concat(t.type,"'"))},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}}})[h.L$]=function(){return this},n))},t.prototype.attachDev=function(){var t=S();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((0,o.pi)((0,o.pi)({name:this.id,autoPause:!0,stateSanitizer:function(t){return{value:t.value,context:t.context,actions:t.actions}}},e),{features:(0,o.pi)({jump:!1,skip:!1},e?e.features:void 0)}),this.machine),this.devTools.init(this.state)}w(this)}},t.prototype.toJSON=function(){return{id:this.id}},t.prototype[h.L$]=function(){return this},t.prototype.getSnapshot=function(){return this.status===O.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=j,t}();function j(t,e){return new M(t,e)}var k=r.useLayoutEffect;function T(t){var e=r.useRef();return e.current||(e.current={v:t()}),e.current.v}var N=function(){return N=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(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 D(t){return t}function L(t){for(var e=[],n=1;n0||"boolean"===typeof t.changed);return!(e.changed||n)}),[u]),l=(0,r.useCallback)((function(t){return u.subscribe(t).unsubscribe}),[u]),d=(0,i.useSyncExternalStoreWithSelector)(l,f,f,D,h);return(0,r.useEffect)((function(){var t=c.state;return u.start(t?s.ZM.create(t):void 0),function(){u.stop(),u.status=O.NotStarted}}),[]),[d,u.send,u]}},53250:function(t,e,n){var r=n(67294);var i="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,c=r.useDebugValue;function u(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!i(t,n)}catch(r){return!0}}var f="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=o({inst:{value:n,getSnapshot:e}}),i=r[0].inst,f=r[1];return s((function(){i.value=n,i.getSnapshot=e,u(i)&&f({inst:i})}),[t,n,e]),a((function(){return u(i)&&f({inst:i}),t((function(){u(i)&&f({inst:i})}))}),[t]),c(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:f},50139:function(t,e,n){var r=n(67294),i=n(61688);var o="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},a=i.useSyncExternalStore,s=r.useRef,c=r.useEffect,u=r.useMemo,f=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var h=s(null);if(null===h.current){var l={hasValue:!1,value:null};h.current=l}else l=h.current;h=u((function(){function t(t){if(!c){if(c=!0,a=t,t=r(t),void 0!==i&&l.hasValue){var e=l.value;if(i(e,t))return s=e}return s=t}if(e=s,o(a,t))return e;var n=r(t);return void 0!==i&&i(e,n)?e:(a=t,s=n)}var a,s,c=!1,u=void 0===n?null:n;return[function(){return t(e())},null===u?void 0:function(){return t(u())}]}),[e,n,r,i]);var d=a(t,h[0],h[1]);return c((function(){l.hasValue=!0,l.value=d}),[d]),f(d),d}},61688:function(t,e,n){t.exports=n(53250)},52798:function(t,e,n){t.exports=n(50139)},98933:function(t,e,n){n.d(e,{Xg:function(){return c},f3:function(){return u},mu:function(){return s},vk:function(){return f}});var r=n(63056),i=n(89823),o=n(10797);function a(t){var e;return(e={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:t}}})[i.L$]=function(){return this},e}function s(t,e,n,r){var o,s=(0,i.j)(t.src),u=null===(o=null===e||void 0===e?void 0:e.options.services)||void 0===o?void 0:o[s.type],f=t.data?(0,i.QX)(t.data,n,r):void 0,h=u?c(u,t.id,f):a(t.id);return h.meta=t,h}function c(t,e,n){var r=a(e);if(r.deferred=!0,(0,i.O4)(t)){var s=r.state=(0,o.J)(void 0,(function(){return(n?t.withContext(n):t).initialState}));r.getSnapshot=function(){return s}}return r}function u(t){return function(t){try{return"function"===typeof t.send}catch(e){return!1}}(t)&&"id"in t}function f(t){var e;return(0,r.pi)(((e={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[i.L$]=function(){return this},e),t)}},4723:function(t,e,n){n.d(e,{C:function(){return S}});var r=n(63056),i=n(89823),o=n(59043),a=n(54911),s=n(3884),c=n(30375),u=n(14066),f=n(87353),h=n(56115),l=n(98933);function d(t){if("string"===typeof t){var e={type:t,toString:function(){return t}};return e}return t}function v(t){return(0,r.pi)((0,r.pi)({type:s.dw},t),{toJSON:function(){t.onDone,t.onError;var e=(0,r._T)(t,["onDone","onError"]);return(0,r.pi)((0,r.pi)({},e),{type:s.dw,src:d(t.src)})}})}var p="",y="*",g={},m=function(t){return"#"===t[0]},x=function(){function t(e,n,o,a){void 0===o&&(o="context"in e?e.context:void 0);var s,l=this;this.config=e,this._context=o,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===a||void 0===a?void 0:a.parent,this.key=this.config.key||(null===a||void 0===a?void 0:a.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:f.iS),this.id=this.config.id||(0,r.ev)([this.machine.key],(0,r.CR)(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!==(s=this.config.schema)&&void 0!==s?s:{},this.description=this.config.description,u.M||(0,i.ZK)(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?(0,i.Q8)(this.config.states,(function(e,n){var i,o=new t(e,{},void 0,{parent:l,key:n});return Object.assign(l.idMap,(0,r.pi)(((i={})[o.id]=o,i),o.idMap)),o})):g;var d=0;!function t(e){var n,i;e.order=d++;try{for(var o=(0,r.XA)((0,h.nI)(e)),a=o.next();!a.done;a=o.next()){t(a.value)}}catch(s){n={error:s}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}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===p})):p in this.config.on),this.strict=!!this.config.strict,this.onEntry=(0,i.qo)(this.config.entry||this.config.onEntry).map((function(t){return(0,c.Q8)(t)})),this.onExit=(0,i.qo)(this.config.exit||this.config.onExit).map((function(t){return(0,c.Q8)(t)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=(0,i.qo)(this.config.invoke).map((function(t,e){var n,o;if((0,i.O4)(t)){var a=(0,i.bx)(l.id,e);return l.machine.options.services=(0,r.pi)(((n={})[a]=t,n),l.machine.options.services),v({src:a,id:a})}if((0,i.HD)(t.src)){a=t.id||(0,i.bx)(l.id,e);return v((0,r.pi)((0,r.pi)({},t),{id:a,src:t.src}))}if((0,i.O4)(t.src)||(0,i.mf)(t.src)){a=t.id||(0,i.bx)(l.id,e);return l.machine.options.services=(0,r.pi)(((o={})[a]=t.src,o),l.machine.options.services),v((0,r.pi)((0,r.pi)({id:a},t),{src:a}))}var s=t.src;return v((0,r.pi)((0,r.pi)({id:(0,i.bx)(l.id,e)},t),{src:s}))})),this.activities=(0,i.qo)(this.config.activities).concat(this.invoke).map((function(t){return(0,c.XA)(t)})),this.transition=this.transition.bind(this),this.tags=(0,i.qo)(this.config.tags)}return t.prototype._init=function(){this.__cache.transitions||(0,h.ac)(this).forEach((function(t){return t.on}))},t.prototype.withConfig=function(e,n){var i=this.options,o=i.actions,a=i.activities,s=i.guards,c=i.services,u=i.delays;return new t(this.config,{actions:(0,r.pi)((0,r.pi)({},o),e.actions),activities:(0,r.pi)((0,r.pi)({},a),e.activities),guards:(0,r.pi)((0,r.pi)({},s),e.guards),services:(0,r.pi)((0,r.pi)({},c),e.services),delays:(0,r.pi)((0,r.pi)({},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(0,i.mf)(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:(0,i.Q8)(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===p,n=this.transitions.filter((function(n){var r=n.eventType===t;return e?r:r||n.eventType===y}));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=(0,i.mf)(e)?"".concat(t.id,":delay[").concat(n,"]"):e,o=(0,c.e4)(r,t.id);return t.onEntry.push((0,c.lW)(o,{delay:e})),t.onExit.push((0,c.al)(o)),o};return((0,i.kJ)(e)?e.map((function(t,e){var i=n(t.delay,e);return(0,r.pi)((0,r.pi)({},t),{event:i})})):(0,i.xH)(Object.keys(e).map((function(t,o){var a=e[t],s=(0,i.HD)(a)?{target:a}:a,c=isNaN(+t)?t:+t,u=n(c,o);return(0,i.qo)(s).map((function(t){return(0,r.pi)((0,r.pi)({},t),{event:u,delay:c})}))})))).map((function(e){var n=e.delay;return(0,r.pi)((0,r.pi)({},t.formatTransition(e)),{delay:n})}))},t.prototype.getStateNodes=function(t){var e,n=this;if(!t)return[];var o=t instanceof a.ZM?t.value:(0,i.WM)(t,this.delimiter);if((0,i.HD)(o)){var s=this.getStateNode(o).initial;return void 0!==s?this.getStateNodes(((e={})[o]=s,e)):[this,this.states[o]]}var c=Object.keys(o),u=[this];return u.push.apply(u,(0,r.ev)([],(0,r.CR)((0,i.xH)(c.map((function(t){return n.getStateNode(t).getStateNodes(o[t])})))),!1)),u},t.prototype.handles=function(t){var e=(0,i.x6)(t);return this.events.includes(e)},t.prototype.resolveState=function(t){var e=t instanceof a.ZM?t:a.ZM.create(t),n=Array.from((0,h.P_)([],this.getStateNodes(e.value)));return new a.ZM((0,r.pi)((0,r.pi)({},e),{value:this.resolve(e.value),configuration:n,done:(0,h.Ij)(n,this),tags:(0,h.Oe)(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 o,a,s={};try{for(var c=(0,r.XA)(Object.keys(t)),u=c.next();!u.done;u=c.next()){var f=u.value,h=t[f];if(h){var l=this.getStateNode(f)._transition(h,e,n);l&&(s[f]=l)}}}catch(g){o={error:g}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}var d=Object.keys(s).map((function(t){return s[t]})),v=(0,i.xH)(d.map((function(t){return t.transitions})));if(!d.some((function(t){return t.transitions.length>0})))return this.next(e,n);var p=(0,i.xH)(d.map((function(t){return t.entrySet}))),y=(0,i.xH)(Object.keys(s).map((function(t){return s[t].configuration})));return{transitions:v,entrySet:p,exitSet:(0,i.xH)(d.map((function(t){return t.exitSet}))),configuration:y,source:e,actions:(0,i.xH)(Object.keys(s).map((function(t){return s[t].actions})))}},t.prototype._transition=function(t,e,n){return(0,i.HD)(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,(0,i.g5)(e))},t.prototype.next=function(t,e){var n,o,a,s=this,c=e.name,u=[],f=[];try{for(var h=(0,r.XA)(this.getCandidates(c)),l=h.next();!l.done;l=h.next()){var d=l.value,v=d.cond,p=d.in,y=t.context,g=!p||((0,i.HD)(p)&&m(p)?t.matches((0,i.WM)(this.getStateNodeById(p).path,this.delimiter)):(0,i.W)((0,i.WM)(p,this.delimiter),(0,i.ET)(this.path.slice(0,-2))(t.value))),x=!1;try{x=!v||(0,i.vx)(this.machine,v,y,e,t)}catch(_){throw new Error("Unable to evaluate guard '".concat(v.name||v.type,"' in transition for event '").concat(c,"' in state node '").concat(this.id,"':\n").concat(_.message))}if(x&&g){void 0!==d.target&&(f=d.target),u.push.apply(u,(0,r.ev)([],(0,r.CR)(d.actions),!1)),a=d;break}}}catch(E){n={error:E}}finally{try{l&&!l.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}if(a){if(!f.length)return{transitions:[a],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:u};var b=(0,i.xH)(f.map((function(e){return s.getRelativeStateNodes(e,t.historyValue)}))),S=!!a.internal,w=[];return S||f.forEach((function(t){w.push.apply(w,(0,r.ev)([],(0,r.CR)(s.getExternalReentryNodes(t)),!1))})),{transitions:[a],entrySet:w,exitSet:S?[]:[this],configuration:b,source:t,actions:u}}},t.prototype.getExternalReentryNodes=function(t){for(var e=[],n=(0,r.CR)(t.order>this.order?[t,this]:[this,t],2),i=n[0],o=n[1];i&&i!==o;)e.push(i),i=i.parent;return i!==o?[]:(e.push(o),e)},t.prototype.getActions=function(t,e,n,a,u,f,l){var d,v,p,y,g=this,m=(0,h.P_)([],f?this.getStateNodes(f.value):[this]);try{for(var x=(0,r.XA)(t),b=x.next();!b.done;b=x.next()){var S=b.value;(0,h.e$)(m,S)&&!(0,h.e$)(n.entrySet,S.parent)||n.entrySet.push(S)}}catch(T){d={error:T}}finally{try{b&&!b.done&&(v=x.return)&&v.call(x)}finally{if(d)throw d.error}}try{for(var w=(0,r.XA)(m),_=w.next();!_.done;_=w.next()){S=_.value;(0,h.e$)(t,S)&&!(0,h.e$)(n.exitSet,S.parent)||n.exitSet.push(S)}}catch(N){p={error:N}}finally{try{_&&!_.done&&(y=w.return)&&y.call(w)}finally{if(p)throw p.error}}var E=(0,i.xH)(n.entrySet.map((function(t){var e=[];if("final"!==t.type)return e;var r=t.parent;if(!r.parent)return e;e.push((0,c.aT)(t.id,t.doneData),(0,c.aT)(r.id,t.doneData?(0,i.QX)(t.doneData,a,u):void 0));var o=r.parent;return"parallel"===o.type&&(0,h.G)(o).every((function(t){return(0,h.Ij)(n.configuration,t)}))&&e.push((0,c.aT)(o.id)),e})));n.exitSet.sort((function(t,e){return e.order-t.order})),n.entrySet.sort((function(t,e){return t.order-e.order}));var O=new Set(n.entrySet),A=new Set(n.exitSet),M=Array.from(O).map((function(t){var e=t.onEntry,n=t.activities.map((function(t){return(0,c.BL)(t)}));return(0,c.AE)(l?(0,r.ev)((0,r.ev)([],(0,r.CR)(e),!1),(0,r.CR)(n),!1):(0,r.ev)((0,r.ev)([],(0,r.CR)(n),!1),(0,r.CR)(e),!1),g.machine.options.actions)})).concat([E.map(c.OU)]),j=Array.from(A).map((function(t){return(0,c.AE)((0,r.ev)((0,r.ev)([],(0,r.CR)(t.onExit),!1),(0,r.CR)(t.activities.map((function(t){return(0,c.sT)(t)}))),!1),g.machine.options.actions)})).concat([(0,c.AE)(n.actions,this.machine.options.actions)]).concat(M);if(e){var k=(0,c.AE)((0,i.xH)((0,r.ev)([],(0,r.CR)(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 t.type!==s.OU&&(t.type!==s.lW||!!t.to&&t.to!==o.K.Internal)}));return j.concat([k])}return j},t.prototype.transition=function(t,e,n,o){void 0===t&&(t=this.initialState);var s,c=(0,i.g5)(e);if(t instanceof a.ZM)s=void 0===n?t:this.resolveState(a.ZM.from(t,n));else{var f=(0,i.HD)(t)?this.resolve((0,i.on)(this.getResolvedPath(t))):this.resolve(t),l=null!==n&&void 0!==n?n:this.machine.context;s=this.resolveState(a.ZM.from(f,l))}if(!u.M&&c.name===y)throw new Error("An event cannot have the wildcard type ('".concat(y,"')"));if(this.strict&&!this.events.includes(c.name)&&!(0,i.JQ)(c.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(c.name,"'"));var d=this._transition(s.value,s,c)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:s,actions:[]},v=(0,h.P_)([],this.getStateNodes(s.value)),p=d.configuration.length?(0,h.P_)(v,d.configuration):v;return d.configuration=(0,r.ev)([],(0,r.CR)(p),!1),this.resolveTransition(d,s,s.context,o,c)},t.prototype.resolveRaisedTransition=function(t,e,n,i){var o,a=t.actions;return(t=this.transition(t,e,void 0,i))._event=n,t.event=n.data,(o=t.actions).unshift.apply(o,(0,r.ev)([],(0,r.CR)(a),!1)),t},t.prototype.resolveTransition=function(t,e,n,u,f){var d,v,y,g,m=this;void 0===f&&(f=c.bf);var x=t.configuration,b=!e||t.transitions.length>0,S=b?t.configuration:e?e.configuration:[],w=(0,h.Ij)(S,this),_=b?(0,h.NA)(this.machine,x):void 0,E=e?e.historyValue?e.historyValue:t.source?this.machine.historyValue(e.value):void 0:void 0,O=this.getActions(new Set(S),w,t,n,f,e,u),A=e?(0,r.pi)({},e.activities):{};try{for(var M=(0,r.XA)(O),j=M.next();!j.done;j=M.next()){var k=j.value;try{for(var T=(y=void 0,(0,r.XA)(k)),N=T.next();!N.done;N=T.next()){var C=N.value;C.type===s.BL?A[C.activity.id||C.activity.type]=C:C.type===s.sT&&(A[C.activity.id||C.activity.type]=!1)}}catch(z){y={error:z}}finally{try{N&&!N.done&&(g=T.return)&&g.call(T)}finally{if(y)throw y.error}}}}catch(B){d={error:B}}finally{try{j&&!j.done&&(v=M.return)&&v.call(M)}finally{if(d)throw d.error}}var R=(0,r.CR)((0,c.yC)(this,e,n,f,O,u,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),P=R[0],D=R[1],L=(0,r.CR)((0,i.uK)(P,(function(t){return t.type===s.OU||t.type===s.lW&&t.to===o.K.Internal})),2),H=L[0],I=L[1],V=P.filter((function(t){var e;return t.type===s.BL&&(null===(e=t.activity)||void 0===e?void 0:e.type)===s.dw})),X=V.reduce((function(t,e){return t[e.activity.id]=(0,l.mu)(e.activity,m.machine,D,f),t}),e?(0,r.pi)({},e.children):{}),Z=new a.ZM({value:_||e.value,context:D,_event:f,_sessionid:e?e._sessionid:null,historyValue:_?E?(0,i.yv)(E,_):void 0:e?e.historyValue:void 0,history:!_||t.source?e:void 0,actions:_?I:[],activities:_?A:e?e.activities:{},events:[],configuration:S,transitions:t.transitions,children:X,done:w,tags:(0,h.Oe)(S),machine:this}),U=n!==D;Z.changed=f.name===s.Vx||U;var J=Z.history;J&&delete J.history;var K=!w&&(this._transient||x.some((function(t){return t._transient})));if(!b&&(!K||f.name===p))return Z;var Q=Z;if(!w)for(K&&(Q=this.resolveRaisedTransition(Q,{type:s.IA},f,u));H.length;){var $=H.shift();Q=this.resolveRaisedTransition(Q,$._event,f,u)}var q=Q.changed||(J?!!Q.actions.length||U||typeof J.value!==typeof Q.value||!(0,a.j_)(Q.value,J.value):void 0);return Q.changed=q,Q.history=J,Q},t.prototype.getStateNode=function(t){if(m(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=m(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&&m(t))try{return this.getStateNodeById(t.slice(1))}catch(o){}for(var e=(0,i.Q9)(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||g;switch(this.type){case"parallel":return(0,i.Q8)(this.initialStateValue,(function(e,r){return e?n.getStateNode(r).resolve(t[r]||e):g}));case"compound":if((0,i.HD)(t)){var r=this.getStateNode(t);return"parallel"===r.type||"compound"===r.type?((e={})[t]=r.initialStateValue,e):t}return Object.keys(t).length?(0,i.Q8)(t,(function(t,e){return t?n.getStateNode(e).resolve(t):g})):this.initialStateValue||{};default:return t||g}},t.prototype.getResolvedPath=function(t){if(m(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(0,i.Q9)(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=(0,i.ib)(this.states,(function(t){return t.initialStateValue||g}),(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=(0,h.N9)(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,entrySet:(0,r.ev)([],(0,r.CR)(n),!1),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=(0,i.HD)(e.target)&&m(e.target)?(0,i.on)(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;if((0,h.N9)(this))return[this];if("compound"===this.type&&!this.initial)return u.M||(0,i.ZK)(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var e=(0,i.SA)(this.initialStateValue);return(0,i.xH)(e.map((function(e){return t.getFromRelativePath(e)})))},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var e=(0,r.CR)(t),n=e[0],i=e.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var o=this.getStateNode(n);if("history"===o.type)return o.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(i)},t.prototype.historyValue=function(t){if(Object.keys(this.states).length)return{current:t||this.initialStateValue,states:(0,i.ib)(this.states,(function(e,n){if(!t)return e.historyValue();var r=(0,i.HD)(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?(0,i.xH)((0,i.SA)(r).map((function(t){return n.getFromRelativePath(t)}))):n.initialStateNodes}var o=(0,i.gk)(n.path,"states")(t).current;return(0,i.HD)(o)?[n.getStateNode(o)]:(0,i.xH)((0,i.SA)(o).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=(0,i.xH)(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,i;if(this.__cache.events)return this.__cache.events;var o=this.states,a=new Set(this.ownEvents);if(o)try{for(var s=(0,r.XA)(Object.keys(o)),c=s.next();!c.done;c=s.next()){var u=o[c.value];if(u.states)try{for(var f=(n=void 0,(0,r.XA)(u.events)),h=f.next();!h.done;h=f.next()){var l=h.value;a.add("".concat(l))}}catch(d){n={error:d}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}}}catch(v){t={error:v}}finally{try{c&&!c.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(a)},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(!(0,i.HD)(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(o){throw new Error("Invalid transition definition for state node '".concat(e.id,"':\n").concat(o.message))}}))},t.prototype.formatTransition=function(t){var e=this,n=(0,i.rg)(t.target),o="internal"in t?t.internal:!n||n.some((function(t){return(0,i.HD)(t)&&t[0]===e.delimiter})),a=this.machine.options.guards,s=this.resolveTarget(n),u=(0,r.pi)((0,r.pi)({},t),{actions:(0,c.AE)((0,i.qo)(t.actions)),cond:(0,i.Qi)(t.cond,a),target:s,source:this,internal:o,eventType:t.event,toJSON:function(){return(0,r.pi)((0,r.pi)({},u),{target:u.target?u.target.map((function(t){return"#".concat(t.id)})):void 0,source:"#".concat(e.id)})}});return u},t.prototype.formatTransitions=function(){var t,e,n,o=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var a=this.config.on,s=y,f=a[s],h=void 0===f?[]:f,l=(0,r._T)(a,["*"]);n=(0,i.xH)(Object.keys(l).map((function(t){u.M||t!==p||(0,i.ZK)(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(o.id,'".'));var e=(0,i.jh)(t,l[t]);return u.M||function(t,e,n){var r=n.slice(0,-1).some((function(t){return!("cond"in t)&&!("in"in t)&&((0,i.HD)(t.target)||(0,i.O4)(t.target))})),o=e===p?"the transient event":"event '".concat(e,"'");(0,i.ZK)(!r,"One or more transitions for ".concat(o," on state '").concat(t.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(o,t,e),e})).concat((0,i.jh)(y,h)))}else n=[];var d=this.config.always?(0,i.jh)("",this.config.always):[],v=this.config.onDone?(0,i.jh)(String((0,c.aT)(this.id)),this.config.onDone):[];u.M||(0,i.ZK)(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var g=(0,i.xH)(this.invoke.map((function(t){var e=[];return t.onDone&&e.push.apply(e,(0,r.ev)([],(0,r.CR)((0,i.jh)(String((0,c.Sl)(t.id)),t.onDone)),!1)),t.onError&&e.push.apply(e,(0,r.ev)([],(0,r.CR)((0,i.jh)(String((0,c.vU)(t.id)),t.onError)),!1)),e}))),m=this.after,x=(0,i.xH)((0,r.ev)((0,r.ev)((0,r.ev)((0,r.ev)([],(0,r.CR)(v),!1),(0,r.CR)(g),!1),(0,r.CR)(n),!1),(0,r.CR)(d),!1).map((function(t){return(0,i.qo)(t).map((function(t){return o.formatTransition(t)}))})));try{for(var b=(0,r.XA)(m),S=b.next();!S.done;S=b.next()){var w=S.value;x.push(w)}}catch(_){t={error:_}}finally{try{S&&!S.done&&(e=b.return)&&e.call(b)}finally{if(t)throw t.error}}return x},t}(),b=!1;function S(t,e){return u.M||t.predictableActionArguments||b||(b=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new x(t,e)}},54911:function(t,e,n){n.d(e,{TL:function(){return f},ZM:function(){return l},j1:function(){return h},j_:function(){return u}});var r=n(63056),i=n(87353),o=n(89823),a=n(56115),s=n(30375),c=n(14066);function u(t,e){if(t===e)return!0;if(void 0===t||void 0===e)return!1;if((0,o.HD)(t)||(0,o.HD)(e))return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((function(n){return u(t[n],e[n])}))}function f(t){return"object"===typeof t&&null!==t&&("value"in t&&"_event"in t)}function h(t,e){var n=t.exec;return(0,r.pi)((0,r.pi)({},t),{exec:void 0!==n?function(){return n(e.context,e.event,{action:t,state:e,_event:e._event})}:void 0})}var l=function(){function t(t){var e,n=this;this.actions=[],this.activities=i.qP,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||i.qP,this.meta=(0,a.xZ)(t.configuration),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(0,a.nJ)(n.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:s.bf,_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=s.bf;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="."),(0,o.HD)(t))return[t];var i=Object.keys(t);return i.concat.apply(i,(0,r.ev)([],(0,r.CR)(i.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=(0,r._T)(t,["configuration","transitions","tags","machine"]);return(0,r.pi)((0,r.pi)({},n),{tags:Array.from(e)})},t.prototype.matches=function(t){return(0,o.W)(t,this.value)},t.prototype.hasTag=function(t){return this.tags.has(t)},t.prototype.can=function(t){var e;c.M&&(0,o.ZK)(!!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}()},63056:function(t,e,n){n.d(e,{CR:function(){return a},XA:function(){return o},_T:function(){return i},ev:function(){return s},pi:function(){return r}});var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=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 a(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 s(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;it.length)&&(e=t.length);for(var n=0,r=new Array(e);nOwncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

Access tokens are used to allow external, 3rd party tools to perform specific actions on your Owncast server. They should be kept secure and never included in client code, instead they should be kept on a server that you control.
Read more about how to use these tokens, with examples, at our documentation.
NameTokenScopesLast Used
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

Access tokens are used to allow external, 3rd party tools to perform specific actions on your Owncast server. They should be kept secure and never included in client code, instead they should be kept on a server that you control.
Read more about how to use these tokens, with examples, at our documentation.
NameTokenScopesLast Used
No Data

\ No newline at end of file diff --git a/static/web/admin/actions/index.html b/static/web/admin/actions/index.html index 194ce07cf..b11ba467d 100644 --- a/static/web/admin/actions/index.html +++ b/static/web/admin/actions/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

External action URLs are 3rd party UI you can display, embedded, into your Owncast page when a user clicks on a button to launch your action.
Read more about how to use actions, with examples, at our documentation.
NameDescriptionURLIconColorOpens
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

External action URLs are 3rd party UI you can display, embedded, into your Owncast page when a user clicks on a button to launch your action.
Read more about how to use actions, with examples, at our documentation.
NameDescriptionURLIconColorOpens
No Data

\ No newline at end of file diff --git a/static/web/admin/chat/messages/index.html b/static/web/admin/chat/messages/index.html index d3154c399..6f1f61eb9 100644 --- a/static/web/admin/chat/messages/index.html +++ b/static/web/admin/chat/messages/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Chat Messages

Manage the messages from viewers that show up on your stream.

Check multiple messages to change their visibility to:
Time
User
Message
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Chat Messages

Manage the messages from viewers that show up on your stream.

Check multiple messages to change their visibility to:
Time
User
Message
No Data
\ No newline at end of file diff --git a/static/web/admin/chat/users/index.html b/static/web/admin/chat/users/index.html index 052d253d9..ae887b91b 100644 --- a/static/web/admin/chat/users/index.html +++ b/static/web/admin/chat/users/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

When a stream is active and chat is enabled, connected chat clients will be displayed here.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

When a stream is active and chat is enabled, connected chat clients will be displayed here.

\ No newline at end of file diff --git a/static/web/admin/config-chat/index.html b/static/web/admin/config-chat/index.html index 8e135b617..2193a2950 100644 --- a/static/web/admin/config-chat/index.html +++ b/static/web/admin/config-chat/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/web/admin/config-federation/index.html b/static/web/admin/config-federation/index.html index de1c025d4..784a8c5cb 100644 --- a/static/web/admin/config-federation/index.html +++ b/static/web/admin/config-federation/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/web/admin/config-notify/index.html b/static/web/admin/config-notify/index.html index fdc97dd93..4035e2984 100644 --- a/static/web/admin/config-notify/index.html +++ b/static/web/admin/config-notify/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

Let your viewers know when you go live by supporting any of the below notification channels. Learn more about live notifications.


The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

Browser Alerts

Viewers can opt into being notified when you go live with their browser.

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

Create a webhook under Edit Channel / Integrations on your Discord channel and provide it below.

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

Enabling the Fediverse social features will not just alert people to when you go live, but also enable other functionality.

Fediverse social features: Disabled

Configure

Custom

Build your own notifications by using custom webhooks.

Create
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

Let your viewers know when you go live by supporting any of the below notification channels. Learn more about live notifications.


The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

Browser Alerts

Viewers can opt into being notified when you go live with their browser.

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

Create a webhook under Edit Channel / Integrations on your Discord channel and provide it below.

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

Enabling the Fediverse social features will not just alert people to when you go live, but also enable other functionality.

Fediverse social features: Disabled

Configure

Custom

Build your own notifications by using custom webhooks.

Create
\ No newline at end of file diff --git a/static/web/admin/config-public-details/index.html b/static/web/admin/config-public-details/index.html index f78d0cbb6..c8cac1e63 100644 --- a/static/web/admin/config-public-details/index.html +++ b/static/web/admin/config-public-details/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

The following are displayed on your site to describe your stream and its content. Learn more.

Custom Page Content

Edit the content of your page by using simple Markdown syntax.


Customize your page styling with CSS

Customize the look and feel of your Owncast instance by overriding the CSS styles of various components on the page. Refer to the CSS & Components guide.

Please input plain CSS text, as this will be directly injected onto your page during load.


\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

The following are displayed on your site to describe your stream and its content. Learn more.

Custom Page Content

Edit the content of your page by using simple Markdown syntax.


Customize your page styling with CSS

Customize the look and feel of your Owncast instance by overriding the CSS styles of various components on the page. Refer to the CSS & Components guide.

Please input plain CSS text, as this will be directly injected onto your page during load.


\ No newline at end of file diff --git a/static/web/admin/config-server-details/index.html b/static/web/admin/config-server-details/index.html index 02f440fe6..438464522 100644 --- a/static/web/admin/config-server-details/index.html +++ b/static/web/admin/config-server-details/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Server Settings

You should change your stream key from the default and keep it safe. For most people it's likely the other settings will not need to be changed.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Server Settings

You should change your stream key from the default and keep it safe. For most people it's likely the other settings will not need to be changed.

\ No newline at end of file diff --git a/static/web/admin/config-social-items/index.html b/static/web/admin/config-social-items/index.html index 07eff4cd9..9eef6c89c 100644 --- a/static/web/admin/config-social-items/index.html +++ b/static/web/admin/config-social-items/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Social Items

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Social Items

\ No newline at end of file diff --git a/static/web/admin/config-storage/index.html b/static/web/admin/config-storage/index.html index e8354f376..d48c6f40c 100644 --- a/static/web/admin/config-storage/index.html +++ b/static/web/admin/config-storage/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Storage

Owncast supports optionally using external storage providers to stream your video. Learn more about this by visiting our Storage Documentation.

Configuring this incorrectly will likely cause your video to be unplayable. Double check the documentation for your storage provider on how to configure the bucket you created for Owncast.

Keep in mind this is for live streaming, not for archival, recording or VOD purposes.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Storage

Owncast supports optionally using external storage providers to stream your video. Learn more about this by visiting our Storage Documentation.

Configuring this incorrectly will likely cause your video to be unplayable. Double check the documentation for your storage provider on how to configure the bucket you created for Owncast.

Keep in mind this is for live streaming, not for archival, recording or VOD purposes.

\ No newline at end of file diff --git a/static/web/admin/config-video/index.html b/static/web/admin/config-video/index.html index 7bf6a1040..eb8699331 100644 --- a/static/web/admin/config-video/index.html +++ b/static/web/admin/config-video/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

Before changing your video configuration visit the video documentation to learn how it impacts your stream performance. The general rule is to start conservatively by having one middle quality stream output variant and experiment with adding more of varied qualities.

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

While it's natural to want to keep your latency as low as possible, you may experience reduced error tolerance and stability the lower you go. The lowest setting is not recommended.

For interactive live streams you may want to experiment with a lower latency, for non-interactive broadcasts you may want to increase it. Read to learn more.

LowestHighest

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

Before changing your video configuration visit the video documentation to learn how it impacts your stream performance. The general rule is to start conservatively by having one middle quality stream output variant and experiment with adding more of varied qualities.

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

While it's natural to want to keep your latency as low as possible, you may experience reduced error tolerance and stability the lower you go. The lowest setting is not recommended.

For interactive live streams you may want to experiment with a lower latency, for non-interactive broadcasts you may want to increase it. Read to learn more.

LowestHighest

\ No newline at end of file diff --git a/static/web/admin/federation/actions/index.html b/static/web/admin/federation/actions/index.html index 560c2b413..e91f6bf73 100644 --- a/static/web/admin/federation/actions/index.html +++ b/static/web/admin/federation/actions/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Fediverse Actions

Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you.
ActionFromWhen
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Fediverse Actions

Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you.
ActionFromWhen
No Data
\ No newline at end of file diff --git a/static/web/admin/federation/followers/index.html b/static/web/admin/federation/followers/index.html index d1f3da84d..57efb13c8 100644 --- a/static/web/admin/federation/followers/index.html +++ b/static/web/admin/federation/followers/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

The following accounts get notified when you go live or send a post.

NameURL
Added
Remove
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

The following accounts get notified when you go live or send a post.

NameURL
Added
Remove
No Data
\ No newline at end of file diff --git a/static/web/admin/hardware-info/index.html b/static/web/admin/hardware-info/index.html index c61d986cf..dce508540 100644 --- a/static/web/admin/hardware-info/index.html +++ b/static/web/admin/hardware-info/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


CPU
0%
Memory
0%
Disk
0%
Loading...
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


CPU
0%
Memory
0%
Disk
0%
Loading...
\ No newline at end of file diff --git a/static/web/admin/help/index.html b/static/web/admin/help/index.html index be9b04ed7..4c4b4c3ab 100644 --- a/static/web/admin/help/index.html +++ b/static/web/admin/help/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

How can we help you?

Troubleshooting

Fix your problems

Documentation

Read the Docs

Common tasks

I want to configure my owncast instance
Help configuring my broadcasting software
I want to embed my stream into another site
I want to customize my website
I want to tweak my video output
I want to use an external storage provider

Other

I found a bug
If you found a bug, then please let us know
I have a general question
Most general questions are answered in our FAQ or exist in our discussions
I want to build add-ons for Owncast
You can build your own bots, overlays, tools and add-ons with our developer APIs. 
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

How can we help you?

Troubleshooting

Fix your problems

Documentation

Read the Docs

Common tasks

I want to configure my owncast instance
Help configuring my broadcasting software
I want to embed my stream into another site
I want to customize my website
I want to tweak my video output
I want to use an external storage provider

Other

I found a bug
If you found a bug, then please let us know
I have a general question
Most general questions are answered in our FAQ or exist in our discussions
I want to build add-ons for Owncast
You can build your own bots, overlays, tools and add-ons with our developer APIs. 
\ No newline at end of file diff --git a/static/web/admin/index.html b/static/web/admin/index.html index 1d36fb9fd..1c10f8154 100644 --- a/static/web/admin/index.html +++ b/static/web/admin/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
fediverse
Add your Owncast instance to the Fediverse
Enable Owncast social features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream.

News & Updates from Owncast

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
fediverse
Add your Owncast instance to the Fediverse
Enable Owncast social features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream.

News & Updates from Owncast

\ No newline at end of file diff --git a/static/web/admin/logs/index.html b/static/web/admin/logs/index.html index 5dc1137c7..b914d196a 100644 --- a/static/web/admin/logs/index.html +++ b/static/web/admin/logs/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/web/admin/stream-health/index.html b/static/web/admin/stream-health/index.html index 84034a83a..b05cce998 100644 --- a/static/web/admin/stream-health/index.html +++ b/static/web/admin/stream-health/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Stream Performance

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Stream Performance

\ No newline at end of file diff --git a/static/web/admin/upgrade/index.html b/static/web/admin/upgrade/index.html index 7819aeaab..689b9c0c8 100644 --- a/static/web/admin/upgrade/index.html +++ b/static/web/admin/upgrade/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Thu Jan 01 1970

Downloads

NameSize
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Thu Jan 01 1970

Downloads

NameSize
No Data
\ No newline at end of file diff --git a/static/web/admin/viewer-info/index.html b/static/web/admin/viewer-info/index.html index 01ac93d62..2691f7702 100644 --- a/static/web/admin/viewer-info/index.html +++ b/static/web/admin/viewer-info/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Viewer Info


Max viewers last stream
0
All-time max viewers
0
User AgentLocation
Watch Time
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Viewer Info


Max viewers last stream
0
All-time max viewers
0
User AgentLocation
Watch Time
No Data
\ No newline at end of file diff --git a/static/web/admin/webhooks/index.html b/static/web/admin/webhooks/index.html index d7c0dc18b..53460c52d 100644 --- a/static/web/admin/webhooks/index.html +++ b/static/web/admin/webhooks/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Webhooks

A webhook is a callback made to an external API in response to an event that takes place within Owncast. This can be used to build chat bots or sending automatic notifications that you've started streaming.
Read more about how to use webhooks, with examples, at our documentation.
URLEvents
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Webhooks

A webhook is a callback made to an external API in response to an event that takes place within Owncast. This can be used to build chat bots or sending automatic notifications that you've started streaming.
Read more about how to use webhooks, with examples, at our documentation.
URLEvents
No Data

\ No newline at end of file diff --git a/static/web/embed/chat/readonly/index.html b/static/web/embed/chat/readonly/index.html index 829642c44..b295b0e89 100644 --- a/static/web/embed/chat/readonly/index.html +++ b/static/web/embed/chat/readonly/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/static/web/embed/chat/readwrite/index.html b/static/web/embed/chat/readwrite/index.html index 5ff6e891a..702c506ec 100644 --- a/static/web/embed/chat/readwrite/index.html +++ b/static/web/embed/chat/readwrite/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/static/web/embed/video/index.html b/static/web/embed/video/index.html index 959c89fde..32c728e53 100644 --- a/static/web/embed/video/index.html +++ b/static/web/embed/video/index.html @@ -1 +1 @@ -
This stream is offline. Check back soon!
\ No newline at end of file +
This stream is offline. Check back soon!
\ No newline at end of file diff --git a/static/web/index.html b/static/web/index.html index 103dd3ce1..ab72e9907 100644 --- a/static/web/index.html +++ b/static/web/index.html @@ -1,4 +1,4 @@ {{.Name}}
Chat offline
Logo
Preview
\ No newline at end of file + {{.Name}}
Chat offline
Logo
Preview
\ No newline at end of file