1/*! For license information please see 403cd6c0d320d72109b581cee6fccebe4fb4091f-bdc19d07906d90a23bce.js.LICENSE.txt */ 2(self.webpackChunkgatsbyjs_com=self.webpackChunkgatsbyjs_com||[]).push([[769],{50971:function(t,e,n){var r=n(93581);t.exports={MDXRenderer:r}},93581:function(t,e,n){var r=n(9833),i=n(76824),o=n(93231),a=n(22412),s=["scope","children"];function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=n(27378),f=n(57457).mdx,d=n(89156).useMDXScope;t.exports=function(t){var e=t.scope,n=t.children,o=a(t,s),c=d(e),h=l.useMemo((function(){if(!n)return null;var t=u({React:l,mdx:f},c),e=Object.keys(t),o=e.map((function(e){return t[e]}));return i(Function,["_fn"].concat(e,[""+n])).apply(void 0,[{}].concat(r(o)))}),[n,e]);return l.createElement(h,u({},o))}},82384:function(t,e,n){"use strict";n.d(e,{Z:function(){return ne}});var r=n(97793),i=n(27378),o=n(50971),a=n(52437),s=n(53097),c=n(17281),u=n(12307),l=n(70262),f=n(30126),d=n(6820),h=n(19221),p=n(64649);function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var y=function(t,e){void 0===e&&(e={});var n=(0,i.useState)(""),r=n[0],o=n[1];return(0,i.useEffect)((function(){if("undefined"!=typeof window){var n=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&o(t.target.id)}))}),function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){(0,p.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({rootMargin:"0% 0% -80% 0%"},e)),r=t.map((function(t){return document.getElementById(t)})).filter(Boolean);return r.forEach((function(t){n.observe(t)})),function(){r.forEach((function(t){n.unobserve(t)}))}}}),[]),r};function m(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var b=function t(e,n,r,i){void 0===n&&(n=!0),void 0===i&&(i=1);var o=[];if(e)for(var a,s=m(e);!(a=s()).done;){var c=a.value;c.url&&o.push(c.url.slice(1)),c.items&&n&&i<(r||6)&&o.push.apply(o,(0,f.Z)(t(c.items,!0,r,i+1)))}return o};function x(t,e,n,r,i,o){return t&&t.map((function(t,a){var s=o&&t.url==="#"+i;return(0,d.tZ)("li",{"data-testid":t.url||"",sx:function(t){var e;return(e={})[t.mediaQueries.hd]={fontSize:1},e},key:e.pathname+(t.url||n+"-"+a)},t.url&&(0,d.tZ)("a",{sx:{textDecoration:"none","&&":{color:s?"link.color":"text.secondary",border:0,borderBottom:function(t){return s?"1px solid "+t.colors.link.hoverBorder:"none"},transition:function(t){return"all "+t.transitions.speed.fast+" "+t.transitions.curve.default},":hover":{color:"link.color",borderBottom:function(t){return"1px solid "+t.colors.link.hoverBorder}}}},href:t.url},t.title),t.items&&function(t,e){return null===e||t<e}(n,r)&&(0,d.tZ)("ul",{sx:{color:"text.secondary",listStyle:"none",ml:5}},x(t.items,e,n+1,r,i,o)))}))}var w=function(t){var e=t.items,n=t.depth,r=t.location,o=(0,i.useState)(!1),a=o[0],s=o[1],c=y(b(e,!0,n)),u=(0,h.F)();return(0,i.useEffect)((function(){var t=window.matchMedia("(min-width: "+u.breakpoints[4]+")");s(t.matches);var e=function(t){return s(t.matches)};return t.addListener(e),function(){return t.removeListener(e)}}),[]),e?(0,d.tZ)("nav",{sx:{mb:[8,null,null,null,null,0],pb:[6,null,null,null,null,0],borderBottom:function(t){return["1px solid "+t.colors.ui.border,null,null,null,null,0]}}},(0,d.tZ)("h2",{sx:{color:"text.secondary",fontSize:1,letterSpacing:"tracked",mt:0,textTransform:"uppercase"}},"Table of Contents"),(0,d.tZ)("ul",{sx:{listStyle:"none",m:0}},x(e,r,1,n,c,a))):null},S=n(80569),Z=n(23115);function O(t){var e=t.path;return(0,d.tZ)("div",{sx:{display:"flex",alignItems:"center",mt:10}},(0,d.tZ)("a",{sx:{fontSize:1,lineHeight:"solid",py:4,"&&":{border:0,color:"text.secondary",display:"flex",fontWeight:"body"},"&&:hover":{color:"purple.60"}},href:"https://github.com/gatsbyjs/gatsby/blob/master/"+e},(0,d.tZ)(Z.Gpi,{sx:{mr:3}})," Edit this page on GitHub"))}var _=n(25773),k=n(30808),E=n(58391),C=["prev","next"],j={"&&":{borderBottom:0},color:"gatsby",fontSize:2,fontWeight:"bold",lineHeight:"dense"},M={color:"text.secondary",fontSize:2,fontWeight:"body",mb:function(t){return t.space[3]},mt:0},P=function(t){var e=t.prev,n=void 0===e?null:e,r=t.next,i=void 0===r?null:r,o=(0,k.Z)(t,C);return n||i?(0,d.tZ)("nav",(0,_.Z)({"aria-label":"pagination",sx:function(t){var e;return(e={}
2)[t.mediaQueries.phablet]={display:"flex",justifyContent:"space-between",width:"100%"},e.a={textDecoration:"none"},e}},o),(0,d.tZ)("div",{css:function(t){var e;return(e={})[t.mediaQueries.phablet]={width:"48%"},e}},n&&(0,d.tZ)(E.Link,{to:n.link,sx:j},(0,d.tZ)("p",{sx:M},"Previous"),(0,d.tZ)("span",{sx:function(t){var e;return(e={})[t.mediaQueries.tablet]={ml:"-1.5em"},e.display="inline-flex",e.alignItems="center",e}},(0,d.tZ)(Z.KYK,{sx:{flexShrink:0,mr:"0.5em",verticalAlign:"sub"}}),n.title))),(0,d.tZ)("div",{sx:function(t){var e;return e={textAlign:"right",mt:function(t){return t.space[6]}},e[t.mediaQueries.phablet]={mt:0,width:"48%"},e}},i&&(0,d.tZ)(E.Link,{to:i.link,sx:j},(0,d.tZ)("p",{sx:M},"Next"),(0,d.tZ)("span",{sx:function(t){var e;return(e={})[t.mediaQueries.tablet]={mr:"-1.5em"},e.display="inline-flex",e.alignItems="center",e}},i.title,(0,d.tZ)(Z.hdK,{sx:{flexShrink:0,ml:"0.5em",verticalAlign:"sub"}}))))):null},T=n(57457),N=n(46710),A=n(51246),D=n(27601),R=n(72768),L=n(71516),X=["components"],I={_frontmatter:{}};function H(t){var e=t.components,n=(0,k.Z)(t,X);return(0,T.mdx)("wrapper",(0,_.Z)({},I,n,{components:e,mdxType:"MDXLayout"}),(0,T.mdx)("p",null,(0,T.mdx)("strong",{parentName:"p"},"Content")," is often organized in systems like databases, content management systems, files, or external APIs."),(0,T.mdx)("p",null,"Any source of data can be connected to Gatsby through plugins or using Gatsbyâs APIs."))}H.isMDXComponent=!0;var z=["components"],V={_frontmatter:{}};function B(t){var e=t.components,n=(0,k.Z)(t,z);return(0,T.mdx)("wrapper",(0,_.Z)({},V,n,{components:e,mdxType:"MDXLayout"}),(0,T.mdx)("p",null,(0,T.mdx)("strong",{parentName:"p"},"Building")," compiles your application with modern features like server-side rendering, route based code splitting (",(0,T.mdx)("a",{parentName:"p",href:"/blog/2019-04-02-behind-the-scenes-what-makes-gatsby-great/"},"and more!"),") for great performance out of the box."),(0,T.mdx)("p",null,"During the build (when you run ",(0,T.mdx)("inlineCode",{parentName:"p"},"gatsby build")," or ",(0,T.mdx)("inlineCode",{parentName:"p"},"gatsby develop"),"), data is fetched and combined into a GraphQL schema with a static snapshot of all data your site needs."))}B.isMDXComponent=!0;var Q=["components"],F={_frontmatter:{}};function U(t){var e=t.components,n=(0,k.Z)(t,Q);return(0,T.mdx)("wrapper",(0,_.Z)({},F,n,{components:e,mdxType:"MDXLayout"}),(0,T.mdx)("p",null,(0,T.mdx)("strong",{parentName:"p"},"Data")," returned by GraphQL comes back in the exact same shape that you asked for it, without having to travel across the network because it was already gathered at ",(0,T.mdx)("a",{parentName:"p",href:"/docs/glossary#build"},"build time"),"."),(0,T.mdx)("p",null,"Since all data is combined in the data layer, itâs even possible to query multiple sources at the same time."))}U.isMDXComponent=!0;var W=["components"],q={_frontmatter:{}};function K(t){var e=t.components,n=(0,k.Z)(t,W);return(0,T.mdx)("wrapper",(0,_.Z)({},q,n,{components:e,mdxType:"MDXLayout"}),(0,T.mdx)("p",null,"React powers components in Gatsby sites that are ",(0,T.mdx)("a",{parentName:"p",href:"/docs/glossary#hydration"},"rehydrated"),", whatever you can do in React you can do with Gatsby."),(0,T.mdx)("p",null,"Your components can pull in whatever data they need from any source in the data layer."))}K.isMDXComponent=!0;var J=["components"],G={_frontmatter:{}};function $(t){var e=t.components,n=(0,k.Z)(t,J);return(0,T.mdx)("wrapper",(0,_.Z)({},G,n,{components:e,mdxType:"MDXLayout"}),(0,T.mdx)("p",null,"The optimized ",(0,T.mdx)("strong",{parentName:"p"},"app")," runs in the browser with all the speed of Gatsby as well as the convenience and great developer experience of working with tools like React and GraphQL."))}$.isMDXComponent=!0;var Y=n(2701),tt=[{title:"site-data.yaml",language:"yaml",content:"site:\n title: Home\n description: Gatsby tips\n"},{title:"site-data.json",language:"json",content:'{\n "site": {\n "title": "Home",\n "description": "Gatsby tips"\n }\n}\n'},{title:"gatsby-config.js (CMS)",language:"cms",content:"plugins: [\n `gatsby-source-contentful`,\n `gatsby-source-wordpress`,\n `gatsby-source-drupal`,\n ...\n]"},{title:"gatsby-config.js (SaaS)",language:"cms",content:"plugins: [\n `gatsby-source-airtable`,\n `gatsby-source-shopify`,\n `gatsby-source-firebase`,\n ...\n]"},{title:"SQL Database",language:"db",content:"+----+---------+-------------+\n| ID | Title | Desc |\n+----+---------+-------------+\n| 1 | Home | Gatsby tips |\n+----+---------+-------------+"}];var et=[{title:"Content",baseColor:"orange",icon:(0,d.tZ)(Y.GX,null),text:(0,d.tZ)(H,null),example:(0,d.tZ)((function(){var t=(0,i.useState)(0),e=t[0],n=t[1],r=tt[e],o=r.title,a=r.language,s=r.content;return(0,d.tZ)(L.Z,{title:o,language:a,onRotate:function(){n((function(t){return(t+1)%tt.length}))}},s)}),null)},{title:"Build",icon:(0,d.tZ)(Y.aR,null),baseColor:"green",text:(0,d.tZ)(B,null),example:(0,d.tZ)(L.Z,{title:"src/pages/homepage.js",language:"javascript"},"const query = graphql`\n query HomePageQuery {\n site {\n title\n description\n }\n }\n`\n")},{title:"Data",icon:(0,d.tZ)(Y.v4,null),baseColor:"magenta",text:(0,d.tZ)(U,null),example:(0,d.tZ)(L.Z,{title:"GraphQL Response",language:"json"},'data: {\n site: {\n title: "Home"\n description: "Gatsby tips"\n }\n}\n')},{title:"View",icon:(0,d.tZ)(Y.VK,null),baseColor:"blue",text:(0,d.tZ)(K,null),example:(0,d.tZ)(L.Z,{title:"src/pages/homepage.js",language:"jsx"},"export ({ data }) => (\n <div>\n <h1>{data.site.title}</h1>\n {data.site.description}\n </div>\n)\n")}
2,{title:"App",icon:(0,d.tZ)(Y.PL,null),baseColor:"yellow",text:(0,d.tZ)($,null),example:(0,d.tZ)((function(){return(0,d.tZ)("div",{sx:{border:1,borderColor:"standardLine",borderRadius:2,display:"flex",flexDirection:"column",height:"100%",background:"secondaryBackground"}},(0,d.tZ)("div",{sx:{p:4,borderBottom:1,borderColor:"standardLine"}},"Home"),(0,d.tZ)("div",{sx:{p:4,height:"100%",background:"secondaryBackground"}},"Gatsby tips"))}),null)}];var nt=["src","height","title","width"];var rt,it,ot,at,st,ct=function(t){var e=t.lessonLink,n=t.lessonTitle,o=(0,i.useState)(0),a=o[0],s=o[1],c=(0,i.useRef)(),u=(0,i.useCallback)((function(){return s(c.current.clientWidth)}),[c.current]);return(0,i.useLayoutEffect)((function(){return u(),window.addEventListener("resize",u),function(){window.removeEventListener("resize",u)}}),[c.current]),(0,r.tZ)(i.Fragment,null,(0,r.tZ)("iframe",{ref:c,className:"egghead-video",width:600,height:.5625*a,src:e+"/embed",title:"Video: "+n,allowFullScreen:!0}),(0,r.tZ)("p",null,(0,r.tZ)("em",null,"Video hosted on ",(0,r.tZ)("a",{href:e},"egghead.io")),"."))},ut=n(57188),lt=n(52934),ft=n(37810),dt=function(t){return(0,r.tZ)("div",(0,_.Z)({css:function(t){return{borderLeft:"2px solid "+t.colors.purple[40],fontSize:t.fontSizes[1],marginBottom:t.space[7],paddingBottom:t.space[1],paddingLeft:t.space[5],paddingTop:t.space[1],">:last-child":{marginBottom:0},h4:{fontSize:t.fontSizes[2],marginBottom:t.space[3]}}}},t))},ht={IFrame:function(t){var e=t.src,n=t.height,i=t.title,o=t.width,a=(0,k.Z)(t,nt);return(0,r.tZ)("div",{className:"gatsby-resp-iframe-wrapper",css:(0,r.iv)({paddingBottom:n/o*100+"%",position:"relative",height:0,overflow:"hidden","iframe, object":{position:"absolute",top:0,left:0,width:"100%",height:"100%"}},"")},(0,r.tZ)("iframe",(0,_.Z)({src:e,title:i},a)))},EggheadEmbed:ct,GuideList:function(t){var e=t.slug,n=function(t,e,n,r){var i,o=function t(e){return e.link===r?(i=e,!0):Array.isArray(e.items)&&e.items.some(t)};return t.some(o),e.some(o),n.some(o),i&&i.items}(ut,lt,ft,e)||[],o=n.map((function(t,e){return(0,r.tZ)("li",{key:e},(0,r.tZ)("a",{href:t.link},t.title))}));return o.length?(0,r.tZ)(i.Fragment,null,(0,r.tZ)("h2",null,"In this section:"),(0,r.tZ)("ul",null,o)):null},ComponentModel:function(t){var e=t.initialLayer;return(0,d.tZ)(R.Z,{layers:et,initialLayer:e})},Pullquote:A.Z,CloudCallout:D.Z,Announcement:dt,pre:function(t){var e=t.children;return(0,r.tZ)(N.Z,null,e)}},pt=function(t){var e=t.children;return(0,r.tZ)(T.MDXProvider,{components:ht},e)},vt=n(16008),yt=n(11430),mt=n(35955),gt=n(24024),bt=n(55978),xt=n(61261),wt=(0,bt.Z)("span",{target:"e11832yj0"})("align-items:center;border-radius:",(function(t){return t.theme.radii[2]}),";display:flex;height:2.5rem;padding:0 ",(function(t){return t.theme.space[10]})," 0 ",(function(t){return t.theme.space[4]}),";background:",(function(t){return t.theme.colors.white}),";color:",(function(t){return t.theme.colors.text.primary}),";box-shadow:",(function(t){return t.theme.shadows.floating}),",inset 0 0 0 1px ",(function(t){return t.theme.colors.grey[10]}),";transition:0.5s;white-space:nowrap;width:100%;",(function(t){return t.theme.mediaQueries.desktop}),"{width:auto;z-index:10;}"),St=(0,bt.Z)("span",{target:"e11832yj1"})((function(t){var e;return(e={alignItems:"center",background:t.theme.colors.orange[60],borderRadius:t.theme.radii[6],color:t.theme.colors.white,display:"flex",fontSize:t.theme.fontSizes[1],height:t.theme.space[9],justifyContent:"center",position:"absolute",right:t.theme.space[2],transform:"scale(0.6)",transition:"0.5s",width:t.theme.space[9],zIndex:2,svg:{fill:t.theme.colors.white,height:t.theme.space[7],width:t.theme.space[7],transition:"0.5s"}})[t.theme.mediaQueries.desktop]={".opened &, .failed &, .success &, .submitting &":{svg:{height:t.theme.space[6],width:t.theme.space[6]},"&:hover":{svg:{transform:"rotate(90deg)",fill:t.theme.colors.accent}}}},e["@media screen and (prefers-reduced-motion: reduce)"]={transition:0},e}),""),Zt=(0,bt.Z)("button",{target:"e11832yj2"})("align-items:center;background:none;border:none;border-radius:",(function(t){return t.theme.radii[2]}),";cursor:pointer;display:flex;padding:0;position:relative;transition:0.6s ease;width:100%;z-index:3;&:hover{",wt,"{box-shadow:0 0 0 0.12rem ",(function(t){return t.theme.colors.accent}),"88;}}&:focus{",(function(t){return(0,xt.jq)(t.theme)}),"}.opened &,.failed &,.success &,.submitting &{display:none;}",(function(t){return t.theme.mediaQueries.desktop}),"{bottom:0;position:absolute;right:0;width:auto;.opened &,.failed &,.success &,.submitting &{display:flex;transform:translate(-",(function(t){return t.theme.space[3]}),",-26rem);",St,"{background:",(function(t){return t.theme.colors.white}),";border:1px solid ",(function(t){return t.theme.colors.standardLine}),";transform:scale(1);svg{fill:",(function(t){return t.theme.colors.text.secondary}),";}}&:focus{box-shadow:none;",St,"{",(function(t){return(0,xt.jq)(t.theme)}),";}}}}@media screen and (prefers-reduced-motion:reduce){transition:0;}"),Ot=n(36732),_t=(0,r.F4)(rt||(rt=(0,Ot.Z)(["\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n"]))),kt=(0,r.F4)(it||(it=(0,Ot.Z)(["\n 0% {\n transform: scale(1);\n opacity: 0.5;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n"]))),Et=(0,bt.Z)("div",{target:"e1jk0tdk0"})("background-color:",(function(t){return t.theme.colors.white}),";border-top:1px solid ",(function(t){return t.theme.colors.standardLine}),";height:100%;opacity:0.5;padding:",(function(t){return t.theme.space[7]}),' 0;width:100%;z-index:2;[tabindex="-1"]:focus{outline:none;}.opened &{animation:',_t," 0.5s ease forwards;}.failed &,.success &{animation:",kt," 0.5s ease forwards;}@media screen and (prefers-reduced-motion:reduce){.opened &{animation:none;transform:scale(1);opacity:1;}.failed &,.success &{animation:none;transform:scale(1);opacity:1;}}.submitting &{transform:scale(1);opacity:1;}",(function(t){return t.theme.mediaQueries.desktop}),"{box-shadow:",(function(t){return t.theme.shadows.overlay}),";border:0;border-radius:",(function(t){return t.theme.radii[2]}),";height:100%;padding:",(function(t){return t.theme.space[8]})," ",(function(t){return t.theme.space[7]}),";transform:scale(0);transform-origin:top center;}"),Ct=function(t){var e=t.children,n=t.handleClose,i=void 0===n?function(){return{}}:n;return(0,r.tZ)(Et,{role:"dialog",onKeyDown:function(t){27===t.keyCode&&i()}},e)};var jt=(0,r.F4)(ot||(ot=(0,Ot.Z)(["\n from {\n transform: translate3d(0,
20,0);\n }\n 20%, 53%, 80%, to {\n transform: translate3d(0,0.3rem,0);\n }\n\n 40%, 43% {\n transform: translate3d(0, -0.5rem, 0);\n }\n\n 70% {\n transform: translate3d(0, -0.2rem, 0);\n }\n\n 90% {\n transform: translate3d(0,0,0);\n }\n"]))),Mt=(0,r.F4)(at||(at=(0,Ot.Z)(["\n\n 25% {\n transform: rotate(7deg);\n }\n 75% {\n transform: rotate(-7deg);\n }\n"]))),Pt=(0,r.F4)(st||(st=(0,Ot.Z)(["\n 10% {\n transform: translate3d(0, 0, 0);\n }\n 60% {\n transform: translate3d(0, -0.3rem, 0);\n }\n 65% {\n transform: translate3d(0, 0, 0);\n }\n"]))),Tt=(0,bt.Z)("span",{target:"e1n6l24o0"})("display:block;height:",(function(t){return t.theme.space[10]}),";transition:0.5s;width:",(function(t){return t.theme.space[10]}),";svg{color:",(function(t){return t.theme.colors.grey[40]}),";height:100%;width:100%;}"),Nt=(0,bt.Z)("span",{target:"e1n6l24o1"})("display:block;font-size:",(function(t){return t.theme.fontSizes[0]}),";font-weight:bold;transition:0.5s;line-height:1;margin-top:",(function(t){return t.theme.space[2]}),";"),At=(0,bt.Z)("label",{target:"e1n6l24o2"})("align-items:center;background:",(function(t){return t.theme.colors.grey[10]}),";cursor:pointer;display:flex;flex-basis:33.33%;flex-direction:column;justify-content:center;height:5.5rem;text-align:center;transition:background 0.25s;&.focused{background:",(function(t){return t.theme.colors.gatsby}),";color:",(function(t){return t.theme.colors.white}),";",Tt,"{svg{color:",(function(t){return t.theme.colors.white}),";}}}fieldset[disabled] &{cursor:not-allowed;}fieldset:not([disabled]) &{&:hover{&:nth-of-type(1){",Tt,"{transform:translateY(3.7rem);svg{animation:",Pt," 3s ease infinite;}}",Nt,"{transform:translateY(-1.6rem);}}&:nth-of-type(2){",Tt,"{animation:",Mt," ease-in-out 0.8s infinite;}}&:nth-of-type(3){",Tt,"{animation:",jt," 1.2s infinite;}}}}"),Dt=(0,bt.Z)("input",{target:"e1n6l24o3"})({name:"1ty0az8",styles:"left:0;opacity:0;position:absolute;top:0;"}),Rt=function(t){var e=t.iconLabel,n=t.ratingText,i=t.ratingValue,o=t.checked,a=t.handleChange,s=t.icon;return(0,r.tZ)(At,{className:o?"focused":null},(0,r.tZ)(Tt,null,(0,r.tZ)(s,{"aria-label":e})),(0,r.tZ)(Nt,{className:"level"},n),(0,r.tZ)(Dt,{type:"radio",name:"feedback",value:i,id:"rating"+i,checked:o,onChange:a}))};function Lt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lt(Object(n),!0).forEach((function(e){(0,p.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var It={border:0,p:0,mb:5},Ht={textAlign:"center",fontSize:1,mb:5};function zt(t){var e=t.rating,n=t.submitting,r=t.handleChange;return(0,d.tZ)("fieldset",{sx:It,className:"ratings",disabled:n},(0,d.tZ)("legend",{sx:Ht},"Rate your experience"),(0,d.tZ)("div",{sx:function(t){return function(t){return Xt(Xt({},(0,xt.I9)(t)),{},{px:0,alignContent:"stretch",display:"flex",flex:"1 1 auto",justifyContent:"stretch",overflow:"hidden",transition:"0.5s",width:"99.99%","&:focus-within":Xt({},(0,xt.ty)(t)),"[disabled] &":{opacity:"0.5"}})}(t)}},(0,d.tZ)(Rt,{iconLabel:"frowning face",icon:Z.Woz,ratingText:"poor",ratingValue:"1",checked:1===e,handleChange:r}),(0,d.tZ)(Rt,{iconLabel:"neutral face",icon:Z.riP,ratingText:"fine",ratingValue:"2",checked:2===e,handleChange:r}),(0,d.tZ)(Rt,{iconLabel:"smiling face",icon:Z.jbq,ratingText:"great",ratingValue:"3",checked:3===e,handleChange:r})))}var Vt=n(93333),Bt=n(50399),Qt=n(88239);function Ft(t){var e=t.handleSubmit,n=t.handleClose,r=t.handleChange,o=t.handleCommentChange,a=t.titleRef,s=t.rating,c=t.comment,u=t.submitting;return(0,d.tZ)(Ct,{id:"feedback-widget",handleClose:n},(0,d.tZ)("form",{sx:{mb:0,display:"flex",flexDirection:"column",height:"100%"},onSubmit:e,className:u?"submitting":""},(0,d.tZ)(Vt.Dx,{ref:a,tabIndex:"-1"},"Was this doc helpful to you?"),(0,d.tZ)(zt,{rating:s,handleChange:r,submitting:u}),(0,d.tZ)(Bt.x,{id:"feedback-comment",name:"feedback-comment",label:(0,d.tZ)(i.Fragment,null,"Your comments ",(0,d.tZ)("span",{sx:{color:"grey.50"}},"(optional)")),value:c,onChange:o,disabled:u,sx:{mb:5}}),(0,d.tZ)(Vt.eX,{sx:{mt:"auto"}},(0,d.tZ)(Qt.z,{variant:"SECONDARY",onClick:n,disabled:u,type:"button"},"Cancel"," ",(0,d.tZ)(Vt.Q2,{className:"sr-only"},"this widget")),(0,d.tZ)(Qt.z,{className:u&&"submitting",disabled:u,type:"submit",rightIcon:u?(0,d.tZ)(Z.la_,null):(0,d.tZ)(Z.D6S,null)},u?"Sending, wait":"Send feedback"))))}var Ut=(0,bt.Z)(Vt.Dx,{target:"e1a2jjmf0"})("font-size:",(function(t){return t.theme.fontSizes[5]}),";margin-bottom:",(function(t){return t.theme.space[7]}),";text-align:left;"),Wt=function(t){var e=t.handleClose,n=t.titleRef;return(0,r.tZ)(Ct,{className:"feedback-success",handleClose:e},(0,r.tZ)(Ut,{ref:n,tabIndex:"-1"},"Thanks for your feedback!"),(0,r.tZ)("p",null,"Your ratings and comments can help make Gatsby even better."),(0,r.tZ)(Qt.z,{variant:"SECONDARY",className:"dismiss",onClick:e},"Dismiss"))},qt=function(t){var e=t.handleClose,n=t.handleOpen,i=t.titleRef;return(0,r.tZ)(Ct,{className:"feedback-success",handleClose:e},(0,r.tZ)(Vt.Dx,{ref:i,tabIndex:"-1"},"Oops! Something went wrong."),(0,r.tZ)("p",null,"Please try again."),(0,r.tZ)(Vt.eX,null,(0,r.tZ)(Qt.z,{variant:"SECONDARY",onClick:e},"Cancel"," ",(0,r.tZ)(Vt.Q2,{className:"sr-only"},"this widget")),(0,r.tZ)(Qt.z,{onClick:n,rightIcon:(0,r.tZ)(Z.hdK,null)},"Try Again")))},Kt=n(13852),Jt=(0,yt.J)({id:"feedback",initial:"closed",context:{rating:2,comment:""},states:{opened:{onEntry:"focusWidgetTitle",on:{RATE:{actions:(0,mt.f0)({rating:function(t,e){return e.value}})},COMMENT:{actions:(0,mt.f0)({comment:function(t,e){return e.value}})},SUBMIT:"submitting"}},submitting:{invoke:{id:"postFeedback",src:function(t){return n=(e=t).rating,r=e.comment,
2i=window.location.href,o=(0,Kt.n)(),window.analytics?(window.analytics.track("Docs Feedback Submitted",{url:i,rating:n,comment:r,userId:o}),(0,vt.post)("/api/send-docs-feedback-to-slack",{rating:n,url:i,comment:r})):console.error('window.analytics wasn\'t found on this page, "Docs Feedback Submitted" event not sent');var e,n,r,i,o},onDone:"success",onError:"failed"}},success:{onEntry:"focusSuccessTitle"},failed:{on:{OPEN:"opened"},onEntry:"focusErrorTitle"},closed:{on:{OPEN:"opened"},onEntry:[(0,mt.f0)({comment:"",rating:2})]}},on:{CLOSE:{target:"closed",actions:"focusOpenButton"}}}),Gt=function(){var t=(0,i.useRef)(null),e=(0,i.useRef)(null),n=(0,i.useRef)(null),o=(0,i.useRef)(null),a=(0,gt.useMachine)(Jt.withConfig({actions:{focusWidgetTitle:function(){requestAnimationFrame((function(){t.current.focus()}))},focusSuccessTitle:function(){requestAnimationFrame((function(){e.current.focus()}))},focusErrorTitle:function(){requestAnimationFrame((function(){n.current.focus()}))},focusOpenButton:function(){requestAnimationFrame((function(){o.current.focus()}))}}})),s=a[0],c=a[1],u=s.context,l=u.rating,f=u.comment,d=function(){return c("CLOSE")};return(0,r.tZ)(Vt.Hl,{className:s.value},(0,r.tZ)(Zt,{ref:o,className:"feedback-trigger","aria-haspopup":"true",onClick:function(){return c(s.matches("closed")?"OPEN":"CLOSE")}},s.matches("closed")?(0,r.tZ)(i.Fragment,null,(0,r.tZ)(wt,null,"Was this doc helpful to you?"),(0,r.tZ)(St,null,(0,r.tZ)(Z.Rlc,null))):(0,r.tZ)(i.Fragment,null,(0,r.tZ)(Vt.Q2,null,"Close Rating Widget"),(0,r.tZ)(St,null,(0,r.tZ)(Z.FU5,null)))),(s.matches("opened")||s.matches("submitting"))&&(0,r.tZ)(Ft,{handleClose:d,handleSubmit:function(t){t.preventDefault(),c("SUBMIT")},handleChange:function(t){c({type:"RATE",value:+t.target.value})},handleCommentChange:function(t){var e=t.target.value.replace(/(<([^>]+)>)/gi,"");c({type:"COMMENT",value:e})},titleRef:t,rating:l,comment:f,submitting:s.matches("submitting")}),s.matches("failed")&&(0,r.tZ)(qt,{handleClose:d,handleOpen:function(){return c("OPEN")},titleRef:n}),s.matches("success")&&(0,r.tZ)(Wt,{handleClose:d,titleRef:e}))};var $t=function(t){return"undefined"==typeof window?null:(0,r.tZ)(Gt,t)},Yt=n(52334);
2var te="18rem",ee={name:"8kn4zf",styles:"margin-top:0;"};var ne=function(t){var e,n=t.page,f=t.location,d=t.prev,h=t.next,p=t.tableOfContentsItems,v=void 0===p?n.tableOfContents.items:p,y=t.tableOfContentsDepth,m=void 0===y?n.frontmatter.tableOfContentsDepth:y,g=t.children,b=n.frontmatter,x=n.fields,Z=n.body,_=!b.disableTableOfContents&&(null==v?void 0:v.length)>0,k=_||b.examples;return(0,r.tZ)(i.Fragment,null,(0,r.tZ)(r.xB,{styles:s.W}),(0,r.tZ)(c.Z,{location:f,SidebarComponent:u.o},(0,r.tZ)("main",{className:"docSearch-content"},(0,r.tZ)(l.D,null),(0,r.tZ)("div",{css:function(t){return{paddingLeft:t.space[7],paddingRight:t.space[7],paddingTop:t.space[10]}}},null!==(e=f.pathname)&&void 0!==e&&e.includes("/contributing")?(0,r.tZ)(S.ZP,{location:f}):(0,r.tZ)(S.es,{location:f,title:b.title}),(0,r.tZ)("h1",{id:x.anchor,css:ee},b.title)),(0,r.tZ)("div",{css:function(t){var e;return(e={})[t.mediaQueries.hd]={display:"flex",alignItems:"flex-start"},e}},k&&(0,r.tZ)("div",{css:function(t){var e;return(e={minWidth:0,paddingLeft:t.space[7],paddingRight:t.space[7],order:2})[t.mediaQueries.desktop]={paddingLeft:t.space[8],paddingRight:t.space[8]},e[t.mediaQueries.hd]={width:te,position:"sticky",top:"calc("+Yt.cM+" + "+t.space[10]+")",maxHeight:"calc(100vh - "+Yt.cM+" - "+t.space[10]+" - "+t.space[10]+")",overflow:"auto",flexShrink:0},e}},_&&(0,r.tZ)(w,{items:v,depth:m,location:f}),b.examples&&(0,r.tZ)("div",{css:function(t){return{marginBottom:t.space[7]}}},(0,r.tZ)("h2",{css:function(t){var e;return(e={color:"text.secondary",fontSize:t.fontSizes[1],letterSpacing:"tracked",marginTop:_?"-1.5rem":0,marginBottom:t.space[7],textTransform:"uppercase"})[t.mediaQueries.hd]={marginTop:_?t.space[10]:0},e}},"Examples"),(0,r.tZ)("ul",{css:(0,r.iv)({listStyle:"none",margin:0},"")},b.examples.map((function(t){return(0,r.tZ)("li",{key:t.href,css:function(t){var e;return(e={})[t.mediaQueries.hd]={fontSize:t.fontSizes[1]},e}},(0,r.tZ)("a",{css:function(t){return{color:t.colors.text.secondary,transition:"all "+t.transitions.speed.fast+" "+t.transitions.curve.default,":hover":{color:t.colors.link.color,borderBottom:"1px solid "+t.colors.link.hoverBorder}}},href:t.href},(0,r.tZ)(a.Jmn,null)," ",t.label))}))))),(0,r.tZ)("div",{className:"main-body",css:function(t){var e,n;return[(e={paddingLeft:t.space[7],paddingRight:t.space[7],a:{wordBreak:"break-word"}},e[t.mediaQueries.desktop]={paddingBottom:t.space[5],paddingLeft:t.space[8],paddingRight:t.space[8]},e),k&&(n={},n[t.mediaQueries.hd]={maxWidth:Yt.UY,minWidth:0},n)]}},(0,r.tZ)(pt,null,(0,r.tZ)(o.MDXRenderer,{slug:x.slug},Z)),(0,r.tZ)(D.Z,null),g,(0,r.tZ)(O,{path:x.relPath}),(0,r.tZ)(P,{css:function(t){return{marginTop:t.space[10]}},prev:d,next:h}))),(0,r.tZ)($t,null))))}},61261:function(t,e,n){"use strict";n.d(e,{I9:function(){return u},jq:function(){return a},ty:function(){return c}});var r=n(64649);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){(0,r.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var a=function(t){return{outline:0,boxShadow:"0 0 0 2px "+t.colors.purple[60]}},s=function(t){return o({borderColor:t.colors.white},a(t))},c=function(t){return{bg:t.colors.white,boxShadow:"0 0 0 2px "+t.colors.purple[30],outline:0,width:"100%"}},u=function(t){return o(o({},function(t){return{backgroundColor:t.colors.white,border:"1px solid "+t.colors.grey[30],borderRadius:2,display:"block",fontFamily:t.fonts.body,fontSize:2,fontWeight:t.fontWeights.body,lineHeight:"2.25rem",py:0,px:2,transition:"box-shadow "+t.transitions.speed.default+" "+t.transitions.curve.default,verticalAlign:"middle",width:"100%","::placeholder":{color:t.colors.grey[50],opacity:1},"&:focus":o({},s),"&:disabled":{cursor:"not-allowed",opacity:"0.5"}}}(t)),{},{appearance:"none",bg:t.colors.grey[10],border:0,color:"text",overflow:"hidden",px:3,":focus":o({},c(t)),"::placeholder":{color:t.colors.grey[60]}})}},24024:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)},i=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};
2Object.defineProperty(e,"__esModule",{value:!0});var a=n(27378),s=n(73916),c={immediate:!1};e.useMachine=function(t,e){void 0===e&&(e=c);var n=e.context,u=e.guards,l=e.actions,f=e.activities,d=e.services,h=e.delays,p=e.immediate,v=e.state,y=i(e,["context","guards","actions","activities","services","delays","immediate","state"]),m={context:n,guards:u,actions:l,activities:f,services:d,delays:h},g=a.useRef(null);null===g.current&&(g.current=t.withConfig(m,r(r({},t.context),n)));var b=a.useRef(null);null===b.current&&(b.current=s.interpret(g.current,y).onTransition((function(t){t.changed&&O(t)})));var x=b.current;a.useEffect((function(){Object.assign(x.machine.options.actions,l)}),[l]),a.useEffect((function(){Object.assign(x.machine.options.services,d)}),[d]);var w=v?s.State.create(v):x.initialState,S=o(a.useState((function(){return w})),2),Z=S[0],O=S[1];return p&&x.start(),a.useEffect((function(){return x.start(v?w:void 0),function(){x.stop()}}),[]),[Z,x.send,x]},e.useService=function(t){var e=o(a.useState(t.state),2),n=e[0],r=e[1];return a.useEffect((function(){r(t.state);var e=t.subscribe((function(t){t.changed&&r(t)}));return function(){e.unsubscribe()}}),[t]),[n,t.send,t]};var u=n(53527);e.useActor=u.useActor},53527:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0});var i=n(27378);e.useActor=function(t){var e=r(i.useState(void 0),2),n=e[0],o=e[1],a=i.useRef(t);return i.useEffect((function(){if(t){a.current=t;var e=t.subscribe(o);return function(){e.unsubscribe()}}}),[t]),[n,a.current?a.current.send:function(){}]}},34593:function(t,e,n){"use strict";n.d(e,{Xg:function(){return c},f3:function(){return u},mu:function(){return s},vk:function(){return l}});var r=n(79414),i=n(53191),o=n(24695);function a(t){return(0,r.pi)({id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:t}}},i._7)}function s(t,e,n,r){var o,s=(0,i.j)(t.src),u=null===(o=null==e?void 0:e.options.services)||void 0===o?void 0:o[s.type],l=t.data?(0,i.QX)(t.data,n,r):void 0,f=u?c(u,t.id,l):a(t.id);return f.meta=t,f}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 l(t){return(0,r.pi)((0,r.pi)({subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},i._7),t)}},11430:function(t,e,n){"use strict";n.d(e,{C:function(){return o},J:function(){return i}});var r=n(2276);function i(t,e,n){return void 0===n&&(n=t.context),new r.n(t,e,n)}function o(t,e){return new r.n(t,e)}},16646:function(t,e,n){"use strict";n.d(e,{LW:function(){return l},ZM:function(){return d},j1:function(){return f},j_:function(){return u}});var r=n(79414),i=n(72975),o=n(20606),a=n(53191),s=n(12526),c=n(35955);function u(t,e){if(t===e)return!0;if(void 0===t||void 0===e)return!1;if((0,a.HD)(t)||(0,a.HD)(e))return t===e;var n=(0,a.XP)(t),r=(0,a.XP)(e);return n.length===r.length&&n.every((function(n){return u(t[n],e[n])}))}function l(t){return!(0,a.HD)(t)&&("value"in t&&"history"in t)}function f(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 d=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,s.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,s.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:c.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=c.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,a.HD)(t))return[t];var i=(0,a.XP)(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,e=(t.configuration,t.transitions,t.tags),n=(t.machine,(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,a.W)(t,this.value)},t.prototype.hasTag=function(t){return this.tags.has(t)},t.prototype.can=function(t){var e;o.M&&(0,a.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.transitions.length)&&n.transitions.some((function(t){return void 0!==t.target||t.actions.length}))},t}()},2276:function(t,e,n){"use strict";n.d(e,{n:function(){return b}});var r=n(79414),i=n(72975),o=n(20606),a=n(53191),s=n(93488),c=n(12526),u=n(68097),l=n(35955),f=n(16646),d=n(34593);function h(t){if("string"==typeof t){var e={type:t,toString:function(){return t}};return e}return t}function p(t){return(0,r.pi)((0,r.pi)({type:u.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:u.dw,src:h(t.src)})}})}var v="",y="*",m={},g=function(t){return"#"===t[0]},b=function(){function t(e,n,s){var u,f=this;void 0===s&&(s="context"in e?e.context:void 0),this.config=e,this._context=s,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=this.options._parent,this.key=this.config.key||this.options._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:i.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&&(0,a.XP)(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(u=this.config.schema)&&void 0!==u?u:{},this.description=this.config.description,o.M||(0,a.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.t
2ype,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?(0,a.Q8)(this.config.states,(function(e,n){var i,o=new t(e,{_parent:f,_key:n});return Object.assign(f.idMap,(0,r.pi)(((i={})[o.id]=o,i),o.idMap)),o})):m;var d=0;!function t(e){var n,i;e.order=d++;try{for(var o=(0,r.XA)((0,c.G)(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===v})):v in this.config.on),this.strict=!!this.config.strict,this.onEntry=(0,a.qo)(this.config.entry||this.config.onEntry).map((function(t){return(0,l.Q8)(t)})),this.onExit=(0,a.qo)(this.config.exit||this.config.onExit).map((function(t){return(0,l.Q8)(t)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=(0,a.qo)(this.config.invoke).map((function(t,e){var n,i;if((0,a.O4)(t)){var o=(0,a.bx)(f.id,e);return f.machine.options.services=(0,r.pi)(((n={})[o]=t,n),f.machine.options.services),p({src:o,id:o})}if((0,a.HD)(t.src)){o=t.id||(0,a.bx)(f.id,e);return p((0,r.pi)((0,r.pi)({},t),{id:o,src:t.src}))}if((0,a.O4)(t.src)||(0,a.mf)(t.src)){o=t.id||(0,a.bx)(f.id,e);return f.machine.options.services=(0,r.pi)(((i={})[o]=t.src,i),f.machine.options.services),p((0,r.pi)((0,r.pi)({id:o},t),{src:o}))}var s=t.src;return p((0,r.pi)((0,r.pi)({id:(0,a.bx)(f.id,e)},t),{src:s}))})),this.activities=(0,a.qo)(this.config.activities).concat(this.invoke).map((function(t){return(0,l.XA)(t)})),this.transition=this.transition.bind(this),this.tags=(0,a.qo)(this.config.tags)}return t.prototype._init=function(){this.__cache.transitions||(0,c.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?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,a.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,a.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===v,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,a.mf)(e)?"".concat(t.id,":delay[").concat(n,"]"):e,i=(0,l.e4)(r,t.id);return t.onEntry.push((0,l.lW)(i,{delay:e})),t.onExit.push((0,l.al)(i)),i};return((0,a.kJ)(e)?e.map((function(t,e){var i=n(t.delay,e);return(0,r.pi)((0,r.pi)({},t),{event:i})}
2)):(0,a.xH)((0,a.XP)(e).map((function(t,i){var o=e[t],s=(0,a.HD)(o)?{target:o}:o,c=isNaN(+t)?t:+t,u=n(c,i);return(0,a.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 i=t instanceof f.ZM?t.value:(0,a.WM)(t,this.delimiter);if((0,a.HD)(i)){var o=this.getStateNode(i).initial;return void 0!==o?this.getStateNodes(((e={})[i]=o,e)):[this,this.states[i]]}var s=(0,a.XP)(i),c=[this];return c.push.apply(c,(0,r.ev)([],(0,r.CR)((0,a.xH)(s.map((function(t){return n.getStateNode(t).getStateNodes(i[t])})))),!1)),c},t.prototype.handles=function(t){var e=(0,a.x6)(t);return this.events.includes(e)},t.prototype.resolveState=function(t){var e=Array.from((0,c.P_)([],this.getStateNodes(t.value)));return new f.ZM((0,r.pi)((0,r.pi)({},t),{value:this.resolve(t.value),configuration:e,done:(0,c.Ij)(e,this),tags:(0,c.Oe)(e)}))},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=(0,a.XP)(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 i,o,s={};try{for(var c=(0,r.XA)((0,a.XP)(t)),u=c.next();!u.done;u=c.next()){var l=u.value,f=t[l];if(f){var d=this.getStateNode(l)._transition(f,e,n);d&&(s[l]=d)}}}catch(m){i={error:m}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}var h=(0,a.XP)(s).map((function(t){return s[t]})),p=(0,a.xH)(h.map((function(t){return t.transitions})));if(!h.some((function(t){return t.transitions.length>0})))return this.next(e,n);var v=(0,a.xH)(h.map((function(t){return t.entrySet}))),y=(0,a.xH)((0,a.XP)(s).map((function(t){return s[t].configuration})));return{transitions:p,entrySet:v,exitSet:(0,a.xH)(h.map((function(t){return t.exitSet}))),configuration:y,source:e,actions:(0,a.xH)((0,a.XP)(s).map((function(t){return s[t].actions})))}},t.prototype._transition=function(t,e,n){return(0,a.HD)(t)?this.transitionLeafNode(t,e,n):1===(0,a.XP)(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,a.g5)(e))},t.prototype.next=function(t,e){var n,i,o,s=this,c=e.name,u=[],l=[];try{for(var f=(0,r.XA)(this.getCandidates(c)),d=f.next();!d.done;d=f.next()){var h=d.value,p=h.cond,v=h.in,y=t.context,m=!v||((0,a.HD)(v)&&g(v)?t.matches((0,a.WM)(this.getStateNodeById(v).path,this.delimiter)):(0,a.W)((0,a.WM)(v,this.delimiter),(0,a.ET)(this.path.slice(0,-2))(t.value))),b=!1;try{b=!p||(0,a.vx)(this.machine,p,y,e,t)}catch(S){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(c,"' in state node '").concat(this.id,"':\n").concat(S.message))}if(b&&m){void 0!==h.target&&(l=h.target),u.push.apply(u,(0,r.ev)([],(0,r.CR)(h.actions),!1)),o=h;break}}}catch(Z){n={error:Z}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}if(o){if(!l.length)return{transitions:[o],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:u};var x=(0,a.xH)(l.map((function(e){return s.getRelativeStateNodes(e,t.historyValue)}))),w=!!o.internal;return{transitions:[o],entrySet:w?[]:(0,a.xH)(x.map((function(t){return s.nodesFromChild(t)}))),exitSet:w?[]:[this],configuration:x,source:t,actions:u}}},t.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var e=[],n=t;n&&n!==this;)e.push(n),n=n.parent;return e.push(this),e},t.prototype.escapes=function(t){if(this===t)return!1;for(var e=this.parent;e;){if(e===t)return!1;e=e.parent}return!0},t.prototype.getActions=function(t,e,n,i){var o,s,u,f,d=(0,c.P_)([],i?this.getStateNodes(i.value):[this]),h=t.configuration.length?(0,c.P_)(d,t.configuration):d;try{for(var p=(0,r.XA)(h),v=p.next();!v.done;v=p.next()){var y=v.value;(0,c.e$)(d,y)||t.entrySet.push(y)}}catch(_){o={error:_}}finally{try{v&&!v.done&&(s=p.return)&&s.call(p)}finally{if(o)throw o.error}}try{for(var m=(0,r.XA)(d),g=m.next();!g.done;g=m.next()){y=g.value;(0,c.e$)(h,y)&&!(0,c.e$)(t.exitSet,y.parent)||t.exitSet.push(y)}}catch(k){u={error:k}}finally{try{g&&!g.done&&(f=m.return)&&f.call(m)}finally{if(u)throw u.error}}var b=(0,a.xH)(t.entrySet.map((function(r){var i=[];if("final"!==r.type)return i;var o=r.parent;if(!o.parent)return i;i.push((0,l.aT)(r.id,r.doneData),(0,l.aT)(o.id,r.doneData?(0,a.QX)(r.doneData,e,
2n):void 0));var s=o.parent;return"parallel"===s.type&&(0,c.G)(s).every((function(e){return(0,c.Ij)(t.configuration,e)}))&&i.push((0,l.aT)(s.id)),i})));t.exitSet.sort((function(t,e){return e.order-t.order})),t.entrySet.sort((function(t,e){return t.order-e.order}));var x=new Set(t.entrySet),w=new Set(t.exitSet),S=(0,r.CR)([(0,a.xH)(Array.from(x).map((function(t){return(0,r.ev)((0,r.ev)([],(0,r.CR)(t.activities.map((function(t){return(0,l.BL)(t)}))),!1),(0,r.CR)(t.onEntry),!1)}))).concat(b.map(l.OU)),(0,a.xH)(Array.from(w).map((function(t){return(0,r.ev)((0,r.ev)([],(0,r.CR)(t.onExit),!1),(0,r.CR)(t.activities.map((function(t){return(0,l.sT)(t)}))),!1)})))],2),Z=S[0],O=S[1];return(0,l.AE)(O.concat(t.actions).concat(Z),this.machine.options.actions)},t.prototype.transition=function(t,e,n){void 0===t&&(t=this.initialState);var i,s=(0,a.g5)(e);if(t instanceof f.ZM)i=void 0===n?t:this.resolveState(f.ZM.from(t,n));else{var u=(0,a.HD)(t)?this.resolve((0,a.on)(this.getResolvedPath(t))):this.resolve(t),l=null!=n?n:this.machine.context;i=this.resolveState(f.ZM.from(u,l))}if(!o.M&&s.name===y)throw new Error("An event cannot have the wildcard type ('".concat(y,"')"));if(this.strict&&!this.events.includes(s.name)&&!(0,a.JQ)(s.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(s.name,"'"));var d=this._transition(i.value,i,s)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:i,actions:[]},h=(0,c.P_)([],this.getStateNodes(i.value)),p=d.configuration.length?(0,c.P_)(h,d.configuration):h;return d.configuration=(0,r.ev)([],(0,r.CR)(p),!1),this.resolveTransition(d,i,i.context,s)},t.prototype.resolveRaisedTransition=function(t,e,n){var i,o=t.actions;return(t=this.transition(t,e))._event=n,t.event=n.data,(i=t.actions).unshift.apply(i,(0,r.ev)([],(0,r.CR)(o),!1)),t},t.prototype.resolveTransition=function(t,e,n,i){var o,h,p=this;void 0===i&&(i=l.bf);var y=t.configuration,m=!e||t.transitions.length>0,g=m?(0,c.NA)(this.machine,y):void 0,b=e?e.historyValue?e.historyValue:t.source?this.machine.historyValue(e.value):void 0:void 0,x=this.getActions(t,n,i,e),w=e?(0,r.pi)({},e.activities):{};try{for(var S=(0,r.XA)(x),Z=S.next();!Z.done;Z=S.next()){var O=Z.value;O.type===u.BL?w[O.activity.id||O.activity.type]=O:O.type===u.sT&&(w[O.activity.id||O.activity.type]=!1)}}catch(V){o={error:V}}finally{try{Z&&!Z.done&&(h=S.return)&&h.call(S)}finally{if(o)throw o.error}}var _=(0,r.CR)((0,l.yC)(this,e,n,i,x,this.machine.config.preserveActionOrder),2),k=_[0],E=_[1],C=(0,r.CR)((0,a.uK)(k,(function(t){return t.type===u.OU||t.type===u.lW&&t.to===s.K.Internal})),2),j=C[0],M=C[1],P=k.filter((function(t){var e;return t.type===u.BL&&(null===(e=t.activity)||void 0===e?void 0:e.type)===u.dw})),T=P.reduce((function(t,e){return t[e.activity.id]=(0,d.mu)(e.activity,p.machine,E,i),t}),e?(0,r.pi)({},e.children):{}),N=m?t.configuration:e?e.configuration:[],A=(0,c.Ij)(N,this),D=new f.ZM({value:g||e.value,context:E,_event:i,_sessionid:e?e._sessionid:null,historyValue:g?b?(0,a.yv)(b,g):void 0:e?e.historyValue:void 0,history:!g||t.source?e:void 0,actions:g?M:[],activities:g?w:e?e.activities:{},events:[],configuration:N,transitions:t.transitions,children:T,done:A,tags:null==e?void 0:e.tags,machine:this}),R=n!==E;D.changed=i.name===u.Vx||R;var L=D.history;L&&delete L.history;var X=!A&&(this._transient||y.some((function(t){return t._transient})));if(!(m||X&&i.name!==v))return D;var I=D;if(!A)for(X&&(I=this.resolveRaisedTransition(I,{type:u.IA},i));j.length;){var H=j.shift();I=this.resolveRaisedTransition(I,H._event,i)}var z=I.changed||(L?!!I.actions.length||R||typeof L.value!=typeof I.value||!(0,f.j_)(I.value,L.value):void 0);return I.changed=z,I.history=L,I.tags=(0,c.Oe)(I.configuration),I},t.prototype.getStateNode=function(t){if(g(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=g(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&&g(t))try{return this.get
2StateNodeById(t.slice(1))}catch(i){}for(var e=(0,a.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||m;switch(this.type){case"parallel":return(0,a.Q8)(this.initialStateValue,(function(e,r){return e?n.getStateNode(r).resolve(t[r]||e):m}));case"compound":if((0,a.HD)(t)){var r=this.getStateNode(t);return"parallel"===r.type||"compound"===r.type?((e={})[t]=r.initialStateValue,e):t}return(0,a.XP)(t).length?(0,a.Q8)(t,(function(t,e){return t?n.getStateNode(e).resolve(t):m})):this.initialStateValue||{};default:return t||m}},t.prototype.getResolvedPath=function(t){if(g(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,a.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,a.ib)(this.states,(function(t){return t.initialStateValue||m}),(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,c.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){var n=this.getStateNodes(t);return this.resolveTransition({configuration:n,entrySet:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=e?e:this.machine.context,void 0)},Object.defineProperty(t.prototype,"initialState",{get:function(){this._init();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,a.HD)(e.target)&&g(e.target)?(0,a.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,c.N9)(this))return[this];if("compound"===this.type&&!this.initial)return o.M||(0,a.ZK)(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var e=(0,a.SA)(this.initialStateValue);return(0,a.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((0,a.XP)(this.states).length)return{current:t||this.initialStateValue,states:(0,a.ib)(this.states,(function(e,n){if(!t)return e.historyValue();var r=(0,a.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,a.xH)((0,a.SA)(r).map((function(t){return n.getFromRelativePath(t)}))):n.initialStateNodes}var i=(0,a.gk)(n.path,"states")(t).current;return(0,a.HD)(i)?[n.getStateNode(i)]:(0,a.xH)((0,a.SA)(i).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,a.xH)((0,a.XP)(this.states).map((function(e){return t.states[e].stateIds})));return[this.id].concat(e)}
2,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,s=new Set(this.ownEvents);if(o)try{for(var c=(0,r.XA)((0,a.XP)(o)),u=c.next();!u.done;u=c.next()){var l=o[u.value];if(l.states)try{for(var f=(n=void 0,(0,r.XA)(l.events)),d=f.next();!d.done;d=f.next()){var h=d.value;s.add("".concat(h))}}catch(p){n={error:p}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}}}catch(v){t={error:v}}finally{try{u&&!u.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(s)},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,a.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(i){throw new Error("Invalid transition definition for state node '".concat(e.id,"':\n").concat(i.message))}}))},t.prototype.formatTransition=function(t){var e=this,n=(0,a.rg)(t.target),i="internal"in t?t.internal:!n||n.some((function(t){return(0,a.HD)(t)&&t[0]===e.delimiter})),o=this.machine.options.guards,s=this.resolveTarget(n),c=(0,r.pi)((0,r.pi)({},t),{actions:(0,l.AE)((0,a.qo)(t.actions)),cond:(0,a.Qi)(t.cond,o),target:s,source:this,internal:i,eventType:t.event,toJSON:function(){return(0,r.pi)((0,r.pi)({},c),{target:c.target?c.target.map((function(t){return"#".concat(t.id)})):void 0,source:"#".concat(e.id)})}});return c},t.prototype.formatTransitions=function(){var t,e,n,i=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var s=this.config.on,c=y,u=s[c],f=void 0===u?[]:u,d=(0,r._T)(s,["*"]);n=(0,a.xH)((0,a.XP)(d).map((function(t){o.M||t!==v||(0,a.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(i.id,'".'));var e=(0,a.jh)(t,d[t]);return o.M||function(t,e,n){var r=n.slice(0,-1).some((function(t){return!("cond"in t)&&!("in"in t)&&((0,a.HD)(t.target)||(0,a.O4)(t.target))})),i=e===v?"the transient event":"event '".concat(e,"'");(0,a.ZK)(!r,"One or more transitions for ".concat(i," on state '").concat(t.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(i,t,e),e})).concat((0,a.jh)(y,f)))}else n=[];var h=this.config.always?(0,a.jh)("",this.config.always):[],p=this.config.onDone?(0,a.jh)(String((0,l.aT)(this.id)),this.config.onDone):[];o.M||(0,a.ZK)(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var m=(0,a.xH)(this.invoke.map((function(t){var e=[];return t.onDone&&e.push.apply(e,(0,r.ev)([],(0,r.CR)((0,a.jh)(String((0,l.Sl)(t.id)),t.onDone)),!1)),t.onError&&e.push.apply(e,(0,r.ev)([],(0,r.CR)((0,a.jh)(String((0,l.vU)(t.id)),t.onError)),!1)),e}))),g=this.after,b=(0,a.xH)((0,r.ev)((0,r.ev)((0,r.ev)((0,r.ev)([],(0,r.CR)(p),!1),(0,r.CR)(m),!1),(0,r.CR)(n),!1),(0,r.CR)(h),!1).map((function(t){return(0,a.qo)(t).map((function(t){return i.formatTransition(t)}))})));try{for(var x=(0,r.XA)(g),w=x.next();!w.done;w=x.next()){var S=w.value;b.push(S)}}catch(Z){t={error:Z}}finally{try{w&&!w.done&&(e=x.return)&&e.call(x)}finally{if(t)throw t.error}}return b},t}()},79414:function(t,e,n){"use strict";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<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};function i(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function o(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function 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;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}},68097:function(t,e,n){"use strict";n.d(e,{BL:function(){return i},IA:function(){return u},Le:function(){return g},Mg:function(){return p},OU:function(){return a},RN:function(){return m},S1:function(){return d},Vx:function(){return y},al:function(){return c},cM:function(){return f},dw:function(){return h},f0:function(){return l},lW:function(){return s},sT:function(){return o},vU:function(){return v}});var r=n(93488),i=r.M.Start,o=r.M.Stop,a=r.M.Raise,s=r.M.Send,c=r.M.C
2ancel,u=r.M.NullEvent,l=r.M.Assign,f=(r.M.After,r.M.DoneState,r.M.Log),d=r.M.Init,h=r.M.Invoke,p=(r.M.ErrorExecution,r.M.ErrorPlatform),v=r.M.ErrorCustom,y=r.M.Update,m=r.M.Choose,g=r.M.Pure},35955:function(t,e,n){"use strict";n.d(e,{AE:function(){return f},BL:function(){return S},Le:function(){return j},OU:function(){return h},Q8:function(){return l},RN:function(){return T},Sl:function(){return E},Tn:function(){return M},U3:function(){return P},XA:function(){return d},aT:function(){return k},al:function(){return w},bf:function(){return c},cM:function(){return x},e4:function(){return _},f0:function(){return O},kM:function(){return y},lW:function(){return p},lj:function(){return v},o$:function(){return u},sT:function(){return Z},up:function(){return g},vU:function(){return C},xc:function(){return m},yC:function(){return N}});var r=n(79414),i=n(20606),o=n(53191),a=n(93488),s=n(68097),c=(0,o.g5)({type:s.S1});function u(t,e){return e&&e[t]||void 0}function l(t,e){var n;if((0,o.HD)(t)||"number"==typeof t){var i=u(t,e);n=(0,o.mf)(i)?{type:t,exec:i}:i||{type:t,exec:void 0}}else if((0,o.mf)(t))n={type:t.name||t.toString(),exec:t};else{i=u(t.type,e);if((0,o.mf)(i))n=(0,r.pi)((0,r.pi)({},t),{exec:i});else if(i){var a=i.type||t.type;n=(0,r.pi)((0,r.pi)((0,r.pi)({},i),t),{type:a})}else n=t}return n}var f=function(t,e){return t?((0,o.kJ)(t)?t:[t]).map((function(t){return l(t,e)})):[]};function d(t){var e=l(t);return(0,r.pi)((0,r.pi)({id:(0,o.HD)(t)?t:e.id},e),{type:e.type})}function h(t){return(0,o.HD)(t)?{type:s.OU,event:t}:p(t,{to:a.K.Internal})}function p(t,e){return{to:e?e.to:void 0,type:s.lW,event:(0,o.mf)(t)?t:(0,o._v)(t),delay:e?e.delay:void 0,id:e&&void 0!==e.id?e.id:(0,o.mf)(t)?t.name:(0,o.x6)(t)}}function v(t,e){return p(t,(0,r.pi)((0,r.pi)({},e),{to:a.K.Parent}))}function y(t,e,n){return p(e,(0,r.pi)((0,r.pi)({},n),{to:t}))}function m(){return v(s.Vx)}function g(t,e){return p(t,(0,r.pi)((0,r.pi)({},e),{to:function(t,e,n){return n._event.origin}}))}var b=function(t,e){return{context:t,event:e}};function x(t,e){return void 0===t&&(t=b),{type:s.cM,label:e,expr:t}}var w=function(t){return{type:s.al,sendId:t}};function S(t){var e=d(t);return{type:a.M.Start,activity:e,exec:void 0}}function Z(t){var e=(0,o.mf)(t)?t:d(t);return{type:a.M.Stop,activity:e,exec:void 0}}var O=function(t){return{type:s.f0,assignment:t}};function _(t,e){var n=e?"#".concat(e):"";return"".concat(a.M.After,"(").concat(t,")").concat(n)}function k(t,e){var n="".concat(a.M.DoneState,".").concat(t),r={type:n,data:e,toString:function(){return n}};return r}function E(t,e){var n="".concat(a.M.DoneInvoke,".").concat(t),r={type:n,data:e,toString:function(){return n}};return r}function C(t,e){var n="".concat(a.M.ErrorPlatform,".").concat(t),r={type:n,data:e,toString:function(){return n}};return r}function j(t){return{type:a.M.Pure,get:t}}function M(t,e){return p((function(t,e){return e}),(0,r.pi)((0,r.pi)({},e),{to:t}))}function P(t,e){return v((function(e,n,r){return{type:s.vU,data:(0,o.mf)(t)?t(e,n,r):t}}),(0,r.pi)((0,r.pi)({},e),{to:a.K.Parent}))}function T(t){return{type:a.M.Choose,conds:t}}function N(t,e,n,c,u,d){void 0===d&&(d=!1);var h=(0,r.CR)(d?[[],u]:(0,o.uK)(u,(function(t){return t.type===s.f0})),2),p=h[0],v=h[1],y=p.length?(0,o.dt)(n,c,p,e):n,m=d?[n]:void 0,g=(0,o.xH)(v.map((function(n){var u,h;switch(n.type){case s.OU:return h=n,{type:s.OU,_event:(0,o.g5)(h.event)};case s.lW:var p=function(t,e,n,i){var a,s={_event:n},c=(0,o.g5)((0,o.mf)(t.event)?t.event(e,n.data,s):t.event);if((0,o.HD)(t.delay)){var u=i&&i[t.delay];a=(0,o.mf)(u)?u(e,n.data,s):u}else a=(0,o.mf)(t.delay)?t.delay(e,n.data,s):t.delay;var l=(0,o.mf)(t.to)?t.to(e,n.data,s):t.to;return(0,r.pi)((0,r.pi)({},t),{to:l,_event:c,event:c.data,delay:a})}(n,y,c,t.options.delays);return i.M||(0,o.ZK)(!(0,o.HD)(n.delay)||"number"==typeof p.delay,"No delay reference for delay expression '".concat(n.delay,"' was found on machine '").concat(t.id,"'")),p;case s.cM:return function(t,e,n){return(0,r.pi)((0,r.pi)({},t),{value:(0,o.HD)(t.expr)?t.expr:t.expr(e,n.data,{_event:n})})}(n,y,c);case s.RN:if(!(x=null===(u=n.conds.find((function(n){var r=(0,o.Qi)(n.cond,t.options.guards);return!r||(0,o.vx)(t,r,y,c,e)})))||void 0===u?void 0:u.actions))return[];var v=(0,r.CR)(N(t,e,y,c,f((0,o.qo)(x),t.options.actions),d),2),g=v[0],b=v[1];return y=b,null==m||m.push(y),g;case s.Le:var x;if(!(x=n.get(y,c.data)))return[];var w=(0,r.CR)(N(t,e,y,c,f((0,o.qo)(x),t.options.actions),d),2),S=w[0],Z=w[1];return y=Z,null==m||m.push(y),S;case s.sT:return function(t,e,n){var r=(0,o.mf)(t.activity)?t.activity(e,n.data):t.activity,i="string"==typeof r?{id:r}:r;return{type:a.M.Stop,activity:i}}(n,y,c);case s.f0:y=(0,o.dt)(y,c,[n],e),null==m||m.push(y);break;default:var O=l(n,t.options.actions),_=O.exec;if(_&&m){var k=m.length-1;O=(0,r.pi)((0,r.pi)({},O),{exec:function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];_.apply(void 0,(0,r.ev)([m[k]],(0,r.CR)(e),!1))}})}return O}})).filter((function(t){return!!t})));return[g,y]}},72975:function(t,e,n){"use strict";n.d(e,{TV:function(){return o},iS:function(){return r},qP:function(){return i},rt:function(){return a}});var r=".",i={},o="xstate.guard",a=""},20606:function(t,e,n){"use strict";n.d(e,{M:function(){return r}});var r=!0},73916:function(t,e,n){"use strict";n.r(e),n.d(e,{ActionTypes:function(){return a.M},Interpreter:function(){return j},InterpreterStatus:function(){return E},Machine:function(){return l.J},SpecialTargets:function(){return a.K},State:function(){return c.ZM},StateNode:function(){return u.n},actions:function(){return A},assign:function(){return s.f0},createMachine:function(){return l.C},createSchema:function(){return N},doneInvoke:function(){return s.Sl},forwardTo:function(){return s.Tn},interpret:function(){return P},mapState:function(){return o},matchState:function(){return T},matchesState:function(){return r.W},send:function(){return s.lW},sendParent:function(){return s.lj},sendUpdate:function(){return s.xc},spawn:function(){return M}});var r=n(53191),i=n(79414);function o(t,e){var n,o,a;try{for(var s=(0,i.XA)((0,r.XP)(t)),c=s.next();!c.done;c=s.next()){var u=c.value;(0,r.W)(u,e)&&(!a||e.length>a.length)&&(a=u)}}catch(l){n={error:l}}
2finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}return t[a]}var a=n(93488),s=n(35955),c=n(16646),u=n(2276),l=n(11430),f=n(20606),d=n(12526),h=n(68097),p=n(24695),v=n(34593),y={deferEvents:!1},m=function(){function t(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=(0,i.pi)((0,i.pi)({},y),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}(),g=new Map,b=0,x=function(){return"x:".concat(b++)},w=function(t,e){return g.set(t,e),t},S=function(t){return g.get(t)},Z=function(t){g.delete(t)};n(22255);function O(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:void 0}function _(t){if(O()){var e=function(){var t=O();if(t&&"__xstate__"in t)return t.__xstate__}();e&&e.register(t)}}function k(t,e){void 0===e&&(e={});var n=t.initialState,i=new Set,o=[],a=!1,s=(0,v.vk)({id:e.id,send:function(e){o.push(e),function(){if(!a){for(a=!0;o.length>0;){var e=o.shift();
2n=t.transition(n,e,c),i.forEach((function(t){return t.next(n)}))}a=!1}}()},getSnapshot:function(){return n},subscribe:function(t,e,o){var a=(0,r.zM)(t,e,o);return i.add(a),a.next(n),{unsubscribe:function(){i.delete(a)}}}}),c={parent:e.parent,self:s,id:e.id||"anonymous",observers:i};return n=t.start?t.start(c):n,s}var E,C={sync:!1,autoForward:!1};!function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"}(E||(E={}));var j=function(){function t(e,n){var o=this;void 0===n&&(n=t.defaultOptions),this.machine=e,this.scheduler=new m,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=E.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(t,e){if((0,r.kJ)(t))return o.batch(t),o.state;var n=(0,r.g5)((0,r._v)(t,e));if(o.status===E.Stopped)return f.M||(0,r.ZK)(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(o.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),o.state;if(o.status!==E.Running&&!o.options.deferEvents)throw new Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(o.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 o.scheduler.schedule((function(){o.forward(n);var t=o.nextState(n);o.update(t,n)})),o._state},this.sendTo=function(t,e){var n=o.parent&&(e===a.K.Parent||o.parent.id===e),c=n?o.parent:(0,r.HD)(e)?o.children.get(e)||S(e):(0,r.Bc)(e)?e:void 0;if(c)"machine"in c?c.send((0,i.pi)((0,i.pi)({},t),{name:t.name===h.vU?"".concat((0,s.vU)(o.id)):t.name,origin:o.sessionId})):c.send(t.data);else{if(!n)throw new Error("Unable to send event to child '".concat(e,"' from service '").concat(o.id,"'."));f.M||(0,r.ZK)(!1,"Service '".concat(o.id,"' has no parent: unable to send event ").concat(t.type))}};var c=(0,i.pi)((0,i.pi)({},t.defaultOptions),n),u=c.clock,l=c.logger,d=c.parent,p=c.id,v=void 0!==p?p:e.id;this.id=v,this.logger=l,this.clock=u,this.parent=d,this.options=c,this.scheduler=new m({deferEvents:this.options.deferEvents}),this.sessionId=x()}return Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:(0,p.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,r.ZK)(this.status!==E.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 o=(0,i.XA)(t.actions),a=o.next();!a.done;a=o.next()){var s=a.value;this.exec(s,t,e)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},t.prototype.update=function(t,e){var n,o,a,c,u,l,f,h,p=this;if(t._sessionid=this.sessionId,this._state=t,this.options.execute&&this.execute(this.state),this.children.forEach((function(t){p.state.children[t.id]=t})),this.devTools&&this.devTools.send(e.data,t),t.event)try{for(var v=(0,i.XA)(this.eventListeners),y=v.next();!y.done;y=v.next()){(0,y.value)(t.event)}}catch(k){n={error:k}}finally{try{y&&!y.done&&(o=v.return)&&o.call(v)}finally{if(n)throw n.error}}try{for(var m=(0,i.XA)(this.listeners),g=m.next();!g.done;g=m.next()){(0,g.value)(t,t.event)}}catch(E){a={error:E}}finally{try{g&&!g.done&&(c=m.return)&&c.call(m)}finally{if(a)throw a.error}}try{for(var b=(0,i.XA)(this.contextListeners),x=b.next();!x.done;x=b.next()){(0,x.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(C){u={error:C}}finally{try{x&&!x.done&&(l=b.return)&&l.call(b)}finally{if(u)throw u.error}}var w=(0,d.Ij)(t.configuration||[],this.machine);if(this.state.configuration&&w){var S=t.configuration.find((function(t){return"final"===t.type&&t.parent===p.machine})),Z=S&&S.doneData?(0,r.QX)(S.doneData,t.context,e):void 0;try{for(var O=(0,i.XA)(this.doneListeners),_=O.next();!_.done;_=O.next()){(0,_.value)((0,s.Sl)(this.id,Z))}}catch(j){f={error:j}}finally{try{_&&!_.done&&(h=O.return)&&h.call(O)}finally{if(f)throw f.error}}this.stop()}},t.prototype.onTransition=function(t){return this.listeners.add(t),this.status===E.Running&&t(this.state,this.state.event),this},t.prototype.subscribe=function(t,e,n){var r,i=this;if(!t)return{unsubscribe:function(){}};var o=n;return"function"==typeof t?r=t:(r=t.next.bind(t),o=t.complete.bind(t)),this.listeners.add(r),this.status===E.Running&&r(this.state),o&&this.onDone(o),{unsubscribe:function(){r&&i.listeners.delete(r),o&&i.doneListeners.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===E.Running)return this;w(this.sessionId,this),this.initialized=!0,this.status=E.Running;var n=void 0===t?this.initialState:(0,p.J)(this,(function(){return(0,c.LW)(t)?e.machine.resolveState(t):e.machine.resolveState(c.ZM.from(t,e.machine.context))}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){e.update(n,s.bf)})),this},t.prototype.stop=function(){var t,e,n,o,a,s,c,u,l,f,d=this;
2try{for(var h=(0,i.XA)(this.listeners),p=h.next();!p.done;p=h.next()){var v=p.value;this.listeners.delete(v)}}catch(k){t={error:k}}finally{try{p&&!p.done&&(e=h.return)&&e.call(h)}finally{if(t)throw t.error}}try{for(var y=(0,i.XA)(this.stopListeners),m=y.next();!m.done;m=y.next()){(v=m.value)(),this.stopListeners.delete(v)}}catch(C){n={error:C}}finally{try{m&&!m.done&&(o=y.return)&&o.call(y)}finally{if(n)throw n.error}}try{for(var g=(0,i.XA)(this.contextListeners),b=g.next();!b.done;b=g.next()){v=b.value;this.contextListeners.delete(v)}}catch(j){a={error:j}}finally{try{b&&!b.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}try{for(var x=(0,i.XA)(this.doneListeners),w=x.next();!w.done;w=x.next()){v=w.value;this.doneListeners.delete(v)}}catch(M){c={error:M}}finally{try{w&&!w.done&&(u=x.return)&&u.call(x)}finally{if(c)throw c.error}}if(!this.initialized)return this;(0,i.ev)([],(0,i.CR)(this.state.configuration),!1).sort((function(t,e){return e.order-t.order})).forEach((function(t){var e,n;try{for(var r=(0,i.XA)(t.definition.exit),o=r.next();!o.done;o=r.next()){var a=o.value;d.exec(a,d.state)}}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}})),this.children.forEach((function(t){(0,r.mf)(t.stop)&&t.stop()}));try{for(var S=(0,i.XA)((0,r.XP)(this.delayedEventsMap)),O=S.next();!O.done;O=S.next()){var _=O.value;this.clock.clearTimeout(this.delayedEventsMap[_])}}catch(P){l={error:P}}finally{try{O&&!O.done&&(f=S.return)&&f.call(S)}finally{if(l)throw l.error}}return this.scheduler.clear(),this.initialized=!1,this.status=E.Stopped,Z(this.sessionId),this},t.prototype.batch=function(t){var e=this;if(this.status===E.NotStarted&&this.options.deferEvents)f.M||(0,r.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!==E.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.'));this.scheduler.schedule((function(){var n,o,a=e.state,s=!1,u=[],l=function(t){var n=(0,r.g5)(t);e.forward(n),a=(0,p.J)(e,(function(){return e.machine.transition(a,n)})),u.push.apply(u,(0,i.ev)([],(0,i.CR)(a.actions.map((function(t){return(0,c.j1)(t,a)}))),!1)),s=s||!!a.changed};try{for(var f=(0,i.XA)(t),d=f.next();!d.done;d=f.next()){l(d.value)}}catch(h){n={error:h}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}a.changed=s,a.actions=u,e.update(a,(0,r.g5)(t[t.length-1]))}))},t.prototype.sender=function(t){return this.send.bind(this,t)},t.prototype.nextState=function(t){var e=this,n=(0,r.g5)(t);if(0===n.name.indexOf(h.Mg)&&!this.state.nextEvents.some((function(t){return 0===t.indexOf(h.Mg)})))throw n.data.data;return(0,p.J)(this,(function(){return e.machine.transition(e.state,n)}))},t.prototype.forward=function(t){var e,n;try{for(var r=(0,i.XA)(this.forwardTo),o=r.next();!o.done;o=r.next()){var a=o.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{o&&!o.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):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);var i=e.context,o=e._event,c=t.exec||(0,s.o$)(t.type,n),u=(0,r.mf)(c)?c:c?c.exec:t.exec;if(u)try{return u(i,o.data,{action:t,state:this.state,_event:o})}catch(O){throw this.parent&&this.parent.send({type:"xstate.error",data:O}),O}switch(t.type){case h.lW:var l=t;if("number"==typeof l.delay)return void this.defer(l);l.to?this.sendTo(l._event,l.to):this.send(l._event);break;case h.al:this.cancel(t.sendId);break;case h.BL:if(this.status!==E.Running)return;var d=t.activity;if(!this.state.activities[d.id||d.type])break;if(d.type===a.M.Invoke){var p=(0,r.j)(d.src),v=this.machine.options.services?this.machine.options.services[p.type]:void 0,y=d.id,m=d.data;f.M||(0,r.ZK)(!("forward"in d),"`forward` property is deprecated (found in invocation of '".concat(d.src,"' in in machine '").concat(this.machine.id,"'). ")+"Please use `autoForward` instead.");var g="autoForward"in d?d.autoForward:!!d.forward;if(!v)return void(f.M||(0,r.ZK)(!1,"No service found for invocation '".concat(d.src,"' in machine '").concat(this.machine.id,"'.")));var b=m?(0,r.QX)(m,i,o):void 0;if("string"==typeof v)return;var x=(0,r.mf)(v)?v(i,o.data,{data:b,src:p,meta:d.meta}):v;if(!x)return;var w=void 0;(0,r.O4)(x)&&(x=b?x.withContext(b):x,w={autoForward:g}),this.spawn(x,y,w)}else this.spawnActivity(d);break;case h.sT:this.stopChild(t.activity.id);break;case h.cM:var S=t.label,Z=t.value;S?this.logger(S,Z):this.logger(Z);break;default:f.M||(0,r.ZK)(!1,"No implementation found for action type '".concat(t.type,"'"))}},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,r.mf)(e.stop)&&e.stop())},t.prototype.spawn=function(t,e,n){if((0,r.y8)(t))return this.spawnProm
2ise(Promise.resolve(t),e);if((0,r.mf)(t))return this.spawnCallback(t,e);if((0,v.f3)(t))return this.spawnActor(t,e);if((0,r.bi)(t))return this.spawnObservable(t,e);if((0,r.O4)(t))return this.spawnMachine(t,(0,i.pi)((0,i.pi)({},n),{id:e}));if((0,r.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 o=this;void 0===n&&(n={});var a=new t(e,(0,i.pi)((0,i.pi)({},this.options),{parent:this,id:n.id||e.id})),s=(0,i.pi)((0,i.pi)({},C),n);s.sync&&a.onTransition((function(t){o.send(h.Vx,{state:t,id:a.id})}));var c=a;return this.children.set(a.id,c),s.autoForward&&this.forwardTo.add(a.id),a.onDone((function(t){o.removeChild(a.id),o.send((0,r.g5)(t,{origin:a.id}))})).start(),c},t.prototype.spawnBehavior=function(t,e){var n=k(t,{id:e,parent:this});return this.children.set(e,n),n},t.prototype.spawnPromise=function(t,e){var n,o=this,a=!1;t.then((function(t){a||(n=t,o.removeChild(e),o.send((0,r.g5)((0,s.Sl)(e,t),{origin:e})))}),(function(t){if(!a){o.removeChild(e);var n=(0,s.vU)(e,t);try{o.send((0,r.g5)(n,{origin:e}))}catch(i){(0,r.v4)(t,i,e),o.devTools&&o.devTools.send(n,o.state),o.machine.strict&&o.stop()}}}));var c=(0,i.pi)({id:e,send:function(){},subscribe:function(e,n,i){var o=(0,r.zM)(e,n,i),a=!1;return t.then((function(t){a||(o.next(t),a||o.complete())}),(function(t){a||o.error(t)})),{unsubscribe:function(){return a=!0}}},stop:function(){a=!0},toJSON:function(){return{id:e}},getSnapshot:function(){return n}},r._7);return this.children.set(e,c),c},t.prototype.spawnCallback=function(t,e){var n,o,a=this,c=!1,u=new Set,l=new Set;try{o=t((function(t){n=t,l.forEach((function(e){return e(t)})),c||a.send((0,r.g5)(t,{origin:e}))}),(function(t){u.add(t)}))}catch(d){this.send((0,s.vU)(e,d))}if((0,r.y8)(o))return this.spawnPromise(o,e);var f=(0,i.pi)({id:e,send:function(t){return u.forEach((function(e){return e(t)}))},subscribe:function(t){return l.add(t),{unsubscribe:function(){l.delete(t)}}},stop:function(){c=!0,(0,r.mf)(o)&&o()},toJSON:function(){return{id:e}},getSnapshot:function(){return n}},r._7);return this.children.set(e,f),f},t.prototype.spawnObservable=function(t,e){var n,o=this,a=t.subscribe((function(t){n=t,o.send((0,r.g5)(t,{origin:e}))}),(function(t){o.removeChild(e),o.send((0,r.g5)((0,s.vU)(e,t),{origin:e}))}),(function(){o.removeChild(e),o.send((0,r.g5)((0,s.Sl)(e),{origin:e}))})),c=(0,i.pi)({id:e,send:function(){},subscribe:function(e,n,r){return t.subscribe(e,n,r)},stop:function(){return a.unsubscribe()},getSnapshot:function(){return n},toJSON:function(){return{id:e}}},r._7);return this.children.set(e,c),c},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,r.ZK)(!1,"No implementation found for activity '".concat(t.type,"'"))},t.prototype.spawnEffect=function(t,e){this.children.set(t,(0,i.pi)({id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:e||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}},r._7))},t.prototype.attachDev=function(){var t=O();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,i.pi)((0,i.pi)({name:this.id,autoPause:!0,stateSanitizer:function(t){return{value:t.value,context:t.context,actions:t.actions}}},e),{features:(0,i.pi)({jump:!1,skip:!1},e?e.features:void 0)}),this.machine),this.devTools.init(this.state)}_(this)}},t.prototype.toJSON=function(){return{id:this.id}},t.prototype[r.L$]=function(){return this},t.prototype.getSnapshot=function(){return this.status===E.NotStarted?this.initialState:this._state},t.defaultOptions=function(t){return{execute:!0,deferEvents:!0,clock:{setTimeout:function(t){function e(e,n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t,e){return setTimeout(t,e)})),clearTimeout:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){return clearTimeout(t)}))},logger:t.console.log.bind(console),devTools:!1}}("undefined"!=typeof self?self:n.g),t.interpret=P,t}();function M(t,e){var n=function(t){return(0,r.HD)(t)?(0,i.pi)((0,i.pi)({},C),{name:t}):(0,i.pi)((0,i.pi)((0,i.pi)({},C),{name:(0,r.EL)()}),t)}(e);return(0,p.F)((function(e){if(!f.M){var i=(0,r.O4)(t)||(0,r.mf)(t);(0,r.ZK)(!!e||i,'Attempted to spawn an Actor (ID: "'.concat((0,r.O4)(t)?t.id:"undefined",'") outside of a service. This will have no effect.'))}return e?e.spawn(t,n.name,n):(0,v.Xg)(t,n.name)}))}function P(t,e){return new j(t,e)}function T(t,e,n){var r,o,a=c.ZM.from(t,t instanceof c.ZM?t.context:void 0);try{for(var s=(0,i.XA)(e),u=s.next();!u.done;u=s.next()){var l=(0,i.CR)(u.value,2),f=l[0],d=l[1];if(a.matches(f))return d(a)}}catch(h){r={error:h}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return n(a)}function N(t){return t}var A={raise:s.OU,send:s.lW,sendParent:s.lj,sendTo:s.kM,sendUpdate:s.xc,log:s.cM,cancel:s.al,start:s.BL,stop:s.sT,assign:s.f0,after:s.e4,done:s.aT,respond:s.up,forwardTo:s.Tn,escalate:s.U3,choose:s.RN,pure:s.Le}},24695:function(t,e,n){"use strict";n.d(e,{F:function(){return o},J:function(){return i}});var r=[],i=function(t,e){r.push(t);var n=e(t);return r.pop(),n},o=function(t){return t(r[r.length-1])}},12526:function(t,e,n){"use strict";n.d(e,{G:function(){return a},Ij:function(){return p},N9:function(){return o},NA:function(){return f},Oe:function(){return y},P_:function(){return c},ac:function(){return s},e$:function(){return d},nJ:function(){return h},xZ:function(){return v}});var r=n(79414),i=n(53191),o=function(t){return"atomic"===t.type||"final"===t.type};function a(t){return(0,i.XP)(t.states).map((function(e){return t.states[e]}))}function s(t){var e=[t];return o(t)?e:e.concat((0,i.xH)(a(t).map(s)))}function c(t,e){var n,i,o,s,c,u,f,d,h=l(new Set(t)),p=new Set(e);try{for(var v=(0,r.XA)(p),y=v.next();!y.done;y=v.next())for(var m=(k=y.value).parent;m&&!p.has(m);)p.add(m),m=m.parent}catch(E){n={error:E}}finally{try{y&&!y.done&&(i=v.return)&&i.call(v)}finally{if(n)throw n.error}}var g=l(p);try{for(var b=(0,r.XA)(p),x=b.next();!x.done;x=b.next()){if("compound"!==(k=x.value).type||g.get(k)&&g.get(k).length){if("parallel"===k.type)try{for(var w=(c=void 0,(0,r.XA)(a(k))),S=w.next();!S.done;S=w.next()){var Z=S.value;"history"!==Z.type&&(p.has(Z)||(p.add(Z),h.get(Z)?h.get(Z).forEac
2h((function(t){return p.add(t)})):Z.initialStateNodes.forEach((function(t){return p.add(t)}))))}}catch(C){c={error:C}}finally{try{S&&!S.done&&(u=w.return)&&u.call(w)}finally{if(c)throw c.error}}}else h.get(k)?h.get(k).forEach((function(t){return p.add(t)})):k.initialStateNodes.forEach((function(t){return p.add(t)}))}}catch(j){o={error:j}}finally{try{x&&!x.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}try{for(var O=(0,r.XA)(p),_=O.next();!_.done;_=O.next()){var k;for(m=(k=_.value).parent;m&&!p.has(m);)p.add(m),m=m.parent}}catch(M){f={error:M}}finally{try{_&&!_.done&&(d=O.return)&&d.call(O)}finally{if(f)throw f.error}}return p}function u(t,e){var n=e.get(t);if(!n)return{};if("compound"===t.type){var r=n[0];if(!r)return{};if(o(r))return r.key}var i={};return n.forEach((function(t){i[t.key]=u(t,e)})),i}function l(t){var e,n,i=new Map;try{for(var o=(0,r.XA)(t),a=o.next();!a.done;a=o.next()){var s=a.value;i.has(s)||i.set(s,[]),s.parent&&(i.has(s.parent)||i.set(s.parent,[]),i.get(s.parent).push(s))}}catch(c){e={error:c}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i}function f(t,e){return u(t,l(c([t],e)))}function d(t,e){return Array.isArray(t)?t.some((function(t){return t===e})):t instanceof Set&&t.has(e)}function h(t){return(0,r.ev)([],(0,r.CR)(new Set((0,i.xH)((0,r.ev)([],(0,r.CR)(t.map((function(t){return t.ownEvents}))),!1)))),!1)}function p(t,e){return"compound"===e.type?a(e).some((function(e){return"final"===e.type&&d(t,e)})):"parallel"===e.type&&a(e).every((function(e){return p(t,e)}))}function v(t){return void 0===t&&(t=[]),t.reduce((function(t,e){return void 0!==e.meta&&(t[e.id]=e.meta),t}),{})}function y(t){return new Set((0,i.xH)(t.map((function(t){return t.tags}))))}},93488:function(t,e,n){"use strict";var r,i;n.d(e,{K:function(){return i},M:function(){return r}}),function(t){t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose"}(r||(r={})),function(t){t.Parent="#_parent",t.Internal="#_internal"}(i||(i={}))},53191:function(t,e,n){"use strict";n.d(e,{Bc:function(){return X},EL:function(){return I},ET:function(){return v},HD:function(){return T},HV:function(){return O},JQ:function(){return S},L$:function(){return D},O4:function(){return L},Q8:function(){return h},Q9:function(){return l},QX:function(){return w},Qi:function(){return N},SA:function(){return m},W:function(){return c},WM:function(){return f},XP:function(){return s},ZK:function(){return j},_7:function(){return R},_v:function(){return H},bi:function(){return A},bx:function(){return q},dt:function(){return C},g5:function(){return z},gk:function(){return y},ib:function(){return p},j:function(){return U},jh:function(){return V},kJ:function(){return M},mf:function(){return P},on:function(){return d},qo:function(){return x},rg:function(){return B},uK:function(){return _},v4:function(){return Q},vx:function(){return F},x6:function(){return u},xH:function(){return g},y8:function(){return Z},yv:function(){return E},zM:function(){return W}});var r,i=n(79414),o=n(72975),a=n(20606);function s(t){return Object.keys(t)}function c(t,e,n){void 0===n&&(n=o.iS);var r=f(t,n),i=f(e,n);return T(i)?!!T(r)&&i===r:T(r)?r in i:s(r).every((function(t){return t in i&&c(r[t],i[t])}))}function u(t){try{return T(t)||"number"==typeof t?"".concat(t):t.type}catch(e){throw new Error("Events must be strings or objects with a string event.type property.")}}function l(t,e){try{return M(t)?t:t.toString().split(e)}catch(n){throw new Error("'".concat(t,"' is not a valid state path."))}}function f(t,e){return"object"==typeof(n=t)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?t.value:M(t)?d(t):"string"!=typeof t?t:d(l(t,e));var n}function d(t){if(1===t.length)return t[0];for(var e={},n=e,r=0;r<t.length-1;r++)r===t.length-2?n[t[r]]=t[r+1]:(n[t[r]]={},n=n[t[r]]);return e}function h(t,e){for(var n={},r=s(t),i=0;i<r.length;i++){var o=r[i];n[o]=e(t[o],o,t,i)}return n}function p(t,e,n){var r,o,a={};try{for(var c=(0,i.XA)(s(t)),u=c.next();!u.done;u=c.next()){var l=u.value,f=t[l];n(f)&&(a[l]=e(f,l,t))}}catch(d){r={error:d}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}return a}var v=function(t){return function(e){var n,r,o=e;try{for(var a=(0,i.XA)(t),s=a.next();!s.done;s=a.next()){o=o[s.value]}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}};function y(t,e){return function(n){var r,o,a=n;try{for(var s=(0,i.XA)(t),c=s.next();!c.done;c=s.next()){var u=c.value;a=a[e][u]}}catch(l){r={error:l}}
2finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return a}}function m(t){return t?T(t)?[[t]]:g(s(t).map((function(e){var n=t[e];return"string"==typeof n||n&&Object.keys(n).length?m(t[e]).map((function(t){return[e].concat(t)})):[[e]]}))):[[]]}function g(t){var e;return(e=[]).concat.apply(e,(0,i.ev)([],(0,i.CR)(t),!1))}function b(t){return M(t)?t:[t]}function x(t){return void 0===t?[]:b(t)}function w(t,e,n){var r,o;if(P(t))return t(e,n.data);var a={};try{for(var s=(0,i.XA)(Object.keys(t)),c=s.next();!c.done;c=s.next()){var u=c.value,l=t[u];P(l)?a[u]=l(e,n.data):a[u]=l}}catch(f){r={error:f}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return a}function S(t){return/^(done|error)\./.test(t)}function Z(t){return t instanceof Promise||!(null===t||!P(t)&&"object"!=typeof t||!P(t.then))}function O(t){return null!==t&&"object"==typeof t&&"transition"in t&&"function"==typeof t.transition}function _(t,e){var n,r,o=(0,i.CR)([[],[]],2),a=o[0],s=o[1];try{for(var c=(0,i.XA)(t),u=c.next();!u.done;u=c.next()){var l=u.value;e(l)?a.push(l):s.push(l)}}catch(f){n={error:f}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return[a,s]}function k(t,e){return h(t.states,(function(t,n){if(t){var r=(T(e)?void 0:e[n])||(t?t.current:void 0);if(r)return{current:r,states:k(t,r)}}}))}function E(t,e){return{current:e,states:k(t,e)}}function C(t,e,n,r){a.M||j(!!t,"Attempting to update undefined context");var o=t?n.reduce((function(t,n){var o,a,c=n.assignment,u={state:r,action:n,_event:e},l={};if(P(c))l=c(t,e.data,u);else try{for(var f=(0,i.XA)(s(c)),d=f.next();!d.done;d=f.next()){var h=d.value,p=c[h];l[h]=P(p)?p(t,e.data,u):p}}catch(v){o={error:v}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}return Object.assign({},t,l)}),t):t;return o}var j=function(){};function M(t){return Array.isArray(t)}function P(t){return"function"==typeof t}function T(t){return"string"==typeof t}function N(t,e){if(t)return T(t)?{type:o.TV,name:t,predicate:e?e[t]:void 0}:P(t)?{type:o.TV,name:t.name,predicate:t}:t}function A(t){try{return"subscribe"in t&&P(t.subscribe)}catch(e){return!1}}a.M||(j=function(t,e){var n=t instanceof Error?t:void 0;if((n||!t)&&void 0!==console){var r=["Warning: ".concat(e)];n&&r.push(n),console.warn.apply(console,r)}});var D=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}(),R=((r={})[D]=function(){return this},r);function L(t){try{return"__xstatenode"in t}catch(e){return!1}}function X(t){return!!t&&"function"==typeof t.send}var I=function(){var t=0;return function(){return(++t).toString(16)}}();function H(t,e){return T(t)||"number"==typeof t?(0,i.pi)({type:t},e):t}function z(t,e){if(!T(t)&&"$$type"in t&&"scxml"===t.$$type)return t;var n=H(t);return(0,i.pi)({name:n.type,data:n,$$type:"scxml",type:"external"},e)}function V(t,e){return b(e).map((function(e){return void 0===e||"string"==typeof e||L(e)?{target:e,event:t}:(0,i.pi)((0,i.pi)({},e),{event:t})}))}function B(t){if(void 0!==t&&t!==o.rt)return x(t)}function Q(t,e,n){if(!a.M){var r=t.stack?" Stacktrace was '".concat(t.stack,"'"):"";if(t===e)console.error("Missing onError handler for invocation '".concat(n,"', error was '").concat(t,"'.").concat(r));else{var i=e.stack?" Stacktrace was '".concat(e.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(n,"'. ")+"Original error: '".concat(t,"'. ").concat(r," Current error is '").concat(e,"'.").concat(i))}}}function F(t,e,n,r,i){var a=t.options.guards,s={state:i,cond:e,_event:r};if(e.type===o.TV)return((null==a?void 0:a[e.name])||e.predicate)(n,r.data,s);var c=a[e.type];if(!c)throw new Error("Guard '".concat(e.type,"' is not implemented on machine '").concat(t.id,"'."));return c(n,r.data,s)}function U(t){return"string"==typeof t?{type:t}:t}function W(t,e,n){if("object"==typeof t)return t;var r=function(){};return{next:t,error:e||r,complete:n||r}}function q(t,e){return"".concat(t,":invocation[").concat(e,"]")}},11685:function(t,e,n){var r=n(60881),i=n(35888);r({global:!0,forced:i.globalThis!==i},{globalThis:i})},22255:function(t,e,n){n(11685)},76824:function(t,e,n){var r=n(96196),i=n(14161);function o(e,n,a){return i()?(t.exports=o=Reflect.construct.bind(),t.exports.__esModule=!0,t.exp
vendor: 920 bytes, lines 2-3
2orts.default=t.exports):(t.exports=o=function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&r(o,n.prototype),o},t.exports.__esModule=!0,t.exports.default=t.exports),o.apply(null,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},93231:function(t){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},14161:function(t){t.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},t.exports.__esModule=!0,t.exports.default=t.exports}}]); 3//# sourceMappingURL=403cd6c0d320d72109b581cee6fccebe4fb4091f-bdc19d07906d90a23bce.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.