@aws-amplify/ui-vue 3.1.14 → 3.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -70,7 +70,7 @@ var o$9, e$g;
70
70
  }(o$9 || (o$9 = {})), function(o2) {
71
71
  o2.Email = "email", o2.PhoneNumber = "phone_number";
72
72
  }(e$g || (e$g = {}));
73
- const e$f = ["birthdate", "email", "family_name", "given_name", "middle_name", "name", "nickname", "phone_number", "preferred_username", "profile", "website"], a$4 = ["username", "email", "phone_number"], r$5 = [...a$4, ...e$f, "confirmation_code", "password", "confirm_password"], i$5 = (e2) => r$5.includes(e2);
73
+ const e$f = ["birthdate", "email", "family_name", "given_name", "middle_name", "name", "nickname", "phone_number", "preferred_username", "profile", "website"], a$4 = ["username", "email", "phone_number"], r$6 = [...a$4, ...e$f, "confirmation_code", "password", "confirm_password"], i$5 = (e2) => r$6.includes(e2);
74
74
  var e$e;
75
75
  !function(e2) {
76
76
  e2.Alert = "amplify-alert", e2.AlertIcon = "amplify-alert__icon", e2.AlertHeading = "amplify-alert__heading", e2.AlertBody = "amplify-alert__body", e2.AlertDismiss = "amplify-alert__dismiss", e2.Autocomplete = "amplify-autocomplete", e2.AutocompleteMenu = "amplify-autocomplete__menu", e2.AutocompleteMenuEmpty = "amplify-autocomplete__menu--empty", e2.AutocompleteMenuFooter = "amplify-autocomplete__menu__footer", e2.AutocompleteMenuHeader = "amplify-autocomplete__menu__header", e2.AutocompleteMenuLoading = "amplify-autocomplete__menu--loading", e2.AutocompleteMenuOption = "amplify-autocomplete__menu__option", e2.AutocompleteMenuOptions = "amplify-autocomplete__menu__options", e2.Badge = "amplify-badge", e2.Button = "amplify-button", e2.ButtonGroup = "amplify-buttongroup", e2.ButtonLoaderWrapper = "amplify-button__loader-wrapper", e2.Card = "amplify-card", e2.Checkbox = "amplify-checkbox", e2.CheckboxButton = "amplify-checkbox__button", e2.CheckboxIcon = "amplify-checkbox__icon", e2.CheckboxInput = "amplify-checkbox__input", e2.CheckboxLabel = "amplify-checkbox__label", e2.CheckboxField = "amplify-checkboxfield", e2.Collection = "amplify-collection", e2.CollectionItems = "amplify-collection-items", e2.CollectionSearch = "amplify-collection-search", e2.CollectionPagination = "amplify-collection-pagination", e2.CountryCodeSelect = "amplify-countrycodeselect", e2.DialCodeSelect = "amplify-dialcodeselect", e2.Divider = "amplify-divider", e2.DividerLabel = "amplify-divider--label", e2.Expander = "amplify-expander", e2.ExpanderContent = "amplify-expander__content", e2.ExpanderContentText = "amplify-expander__content__text", e2.ExpanderHeader = "amplify-expander__header", e2.ExpanderIcon = "amplify-expander__icon", e2.ExpanderItem = "amplify-expander__item", e2.ExpanderTrigger = "amplify-expander__trigger", e2.Field = "amplify-field", e2.FieldDescription = "amplify-field__description", e2.FieldErrorMessage = "amplify-field__error-message", e2.FieldGroup = "amplify-field-group", e2.FieldGroupControl = "amplify-field-group__control", e2.FieldGroupOuterEnd = "amplify-field-group__outer-end", e2.FieldGroupOuterStart = "amplify-field-group__outer-start", e2.FieldGroupInnerEnd = "amplify-field-group__inner-end", e2.FieldGroupInnerStart = "amplify-field-group__inner-start", e2.FieldGroupIcon = "amplify-field-group__icon", e2.FieldGroupIconButton = "amplify-field-group__icon-button", e2.FieldGroupHasInnerEnd = "amplify-field-group--has-inner-end", e2.FieldGroupHasInnerStart = "amplify-field-group--has-inner-start", e2.FieldShowPassword = "amplify-field__show-password", e2.FieldGroupFieldWrapper = "amplify-field-group__field-wrapper", e2.FileUploaderDropZone = "amplify-fileuploader__dropzone", e2.FileUploaderDropZoneIcon = "amplify-fileuploader__dropzone__icon", e2.FileUploaderDropZoneText = "amplify-fileuploader__dropzone__text", e2.FileUploaderDropZoneButton = "amplify-fileuploader__dropzone__button", e2.FileUploaderFile = "amplify-fileuploader__file", e2.FileUploaderFileWrapper = "amplify-fileuploader__file__wrapper", e2.FileUploaderFileName = "amplify-fileuploader__file__name", e2.FileUploaderFileSize = "amplify-fileuploader__file__size", e2.FileUploaderFileInfo = "amplify-fileuploader__file__info", e2.FileUploaderFileImage = "amplify-fileuploader__file__image", e2.FileUploaderFileMain = "amplify-fileuploader__file__main", e2.FileUploaderFileStatus = "amplify-fileuploader__file__status", e2.FileUploaderLoader = "amplify-fileuploader__loader", e2.FileUploaderPreviewer = "amplify-fileuploader__previewer", e2.FileUploaderPreviewerText = "amplify-fileuploader__previewer__text", e2.FileUploaderPreviewerBody = "amplify-fileuploader__previewer__body", e2.FileUploaderPreviewerFooter = "amplify-fileuploader__previewer__footer", e2.FileUploaderPreviewerFooterActions = "amplify-fileuploader__previewer__footer__actions", e2.Flex = "amplify-flex", e2.Grid = "amplify-grid", e2.Heading = "amplify-heading", e2.HighlightMatch = "amplify-highlightmatch", e2.HighlightMatchHighlighted = "amplify-highlightmatch__highlighted", e2.Icon = "amplify-icon", e2.Image = "amplify-image", e2.Input = "amplify-input", e2.Label = "amplify-label", e2.Link = "amplify-link", e2.Loader = "amplify-loader", e2.LoaderDeterminate = "amplify-loader--determinate", e2.LoaderPercentageText = "amplify-loader__percentage-text", e2.MenuContent = "amplify-menu-content", e2.MenuContentWrapper = "amplify-menu-content-wrapper", e2.MenuItem = "amplify-menu-content__item", e2.MenuTrigger = "amplify-menu-trigger", e2.Pagination = "amplify-pagination", e2.PaginationItemButton = "amplify-pagination__item-button", e2.PaginationItemCurrent = "amplify-pagination__item-current", e2.PaginationItemEllipsis = "amplify-pagination__item-ellipsis", e2.PasswordField = "amplify-passwordfield", e2.PhoneNumberField = "amplify-phonenumberfield", e2.Placeholder = "amplify-placeholder", e2.Radio = "amplify-radio", e2.RadioButton = "amplify-radio__button", e2.RadioInput = "amplify-radio__input", e2.RadioLabel = "amplify-radio__label", e2.RadioGroupField = "amplify-radiogroupfield", e2.RadioGroup = "amplify-radiogroup", e2.Rating = "amplify-rating", e2.ScrollView = "amplify-scrollview", e2.SearchField = "amplify-searchfield", e2.SearchFieldClear = "amplify-searchfield__clear", e2.SearchFieldSearch = "amplify-searchfield__search", e2.Select = "amplify-select", e2.SelectField = "amplify-selectfield", e2.SelectWrapper = "amplify-select__wrapper", e2.SelectIconWrapper = "amplify-select__icon-wrapper", e2.SliderField = "amplify-sliderfield", e2.SliderFieldGroup = "amplify-sliderfield__group", e2.SliderFieldLabel = "amplify-sliderfield__label", e2.SliderFieldRange = "amplify-sliderfield__range", e2.SliderFieldRoot = "amplify-sliderfield__root", e2.SliderFieldThumb = "amplify-sliderfield__thumb", e2.SliderFieldTrack = "amplify-sliderfield__track", e2.StepperField = "amplify-stepperfield", e2.StepperFieldButtonDecrease = "amplify-stepperfield__button--decrease", e2.StepperFieldButtonIncrease = "amplify-stepperfield__button--increase", e2.StepperFieldInput = "amplify-stepperfield__input", e2.StorageManager = "amplify-storagemanager", e2.StorageManagerDropZone = "amplify-storagemanager__dropzone", e2.StorageManagerDropZoneIcon = "amplify-storagemanager__dropzone__icon", e2.StorageManagerDropZoneText = "amplify-storagemanager__dropzone__text", e2.StorageManagerFilePicker = "amplify-storagemanager__file__picker", e2.StorageManagerFile = "amplify-storagemanager__file", e2.StorageManagerFileWrapper = "amplify-storagemanager__file__wrapper", e2.StorageManagerFileList = "amplify-storagemanager__file__list", e2.StorageManagerFileName = "amplify-storagemanager__file__name", e2.StorageManagerFileSize = "amplify-storagemanager__file__size", e2.StorageManagerFileInfo = "amplify-storagemanager__file__info", e2.StorageManagerFileImage = "amplify-storagemanager__file__image", e2.StorageManagerFileMain = "amplify-storagemanager__file__main", e2.StorageManagerFileStatus = "amplify-storagemanager__file__status", e2.StorageManagerLoader = "amplify-storagemanager__loader", e2.StorageManagerPreviewer = "amplify-storagemanager__previewer", e2.StorageManagerPreviewerText = "amplify-storagemanager__previewer__text", e2.SwitchField = "amplify-switchfield", e2.SwitchLabel = "amplify-switch-label", e2.SwitchThumb = "amplify-switch-thumb", e2.SwitchTrack = "amplify-switch-track", e2.SwitchWrapper = "amplify-switch__wrapper", e2.Table = "amplify-table", e2.TableCaption = "amplify-table__caption", e2.TableBody = "amplify-table__body", e2.TableTd = "amplify-table__td", e2.TableTh = "amplify-table__th", e2.TableFoot = "amplify-table__foot", e2.TableHead = "amplify-table__head", e2.TableRow = "amplify-table__row", e2.Tabs = "amplify-tabs", e2.TabItems = "amplify-tabs-item", e2.Text = "amplify-text", e2.Textarea = "amplify-textarea", e2.TextAreaField = "amplify-textareafield", e2.TextField = "amplify-textfield", e2.ToggleButton = "amplify-togglebutton", e2.ToggleButtonGroup = "amplify-togglebuttongroup", e2.VisuallyHidden = "amplify-visually-hidden";
@@ -80,7 +80,7 @@ const i$4 = (t2) => {
80
80
  const s2 = null === (i2 = null == t2 ? void 0 : t2.context.config) || void 0 === i2 ? void 0 : i2.loginMechanisms, [n2] = null != s2 ? s2 : ["username"];
81
81
  return n2;
82
82
  };
83
- const r$4 = (e2) => {
83
+ const r$5 = (e2) => {
84
84
  const t2 = (t3) => (r2) => e2({ type: t3, data: r2 });
85
85
  return { initializeMachine: t2("INIT"), resendCode: t2("RESEND"), signOut: t2("SIGN_OUT"), submitForm: t2("SUBMIT"), updateForm: t2("CHANGE"), updateBlur: t2("BLUR"), toFederatedSignIn: t2("FEDERATED_SIGN_IN"), toResetPassword: t2("RESET_PASSWORD"), toSignIn: t2("SIGN_IN"), toSignUp: t2("SIGN_UP"), skipVerification: t2("SKIP") };
86
86
  }, n$5 = (r2) => {
@@ -134,8 +134,8 @@ const r$4 = (e2) => {
134
134
  }
135
135
  })(I);
136
136
  return { authStatus: P2, codeDeliveryDetails: u2, error: d2, hasValidationErrors: f2, isPending: S, route: I, socialProviders: v2, totpSecretCode: h2, unverifiedContactMethods: l2, user: g2, validationErrors: m2 };
137
- }, s$4 = ({ send: e2, state: t2 }) => {
138
- const s2 = r$4(e2), i2 = n$5(t2);
137
+ }, s$3 = ({ send: e2, state: t2 }) => {
138
+ const s2 = r$5(e2), i2 = n$5(t2);
139
139
  return Object.assign(Object.assign({}, s2), i2);
140
140
  };
141
141
  const o$8 = ["+1", "+7", "+20", "+27", "+30", "+31", "+32", "+33", "+34", "+36", "+39", "+40", "+41", "+43", "+44", "+45", "+46", "+47", "+48", "+49", "+51", "+52", "+53", "+54", "+55", "+56", "+57", "+58", "+60", "+61", "+62", "+63", "+64", "+65", "+66", "+81", "+82", "+84", "+86", "+90", "+91", "+92", "+93", "+94", "+95", "+98", "+212", "+213", "+216", "+218", "+220", "+221", "+222", "+223", "+224", "+225", "+226", "+227", "+228", "+229", "+230", "+231", "+232", "+233", "+234", "+235", "+236", "+237", "+238", "+239", "+240", "+241", "+242", "+243", "+244", "+245", "+246", "+248", "+249", "+250", "+251", "+252", "+253", "+254", "+255", "+256", "+257", "+258", "+260", "+261", "+262", "+263", "+264", "+265", "+266", "+267", "+268", "+269", "+290", "+291", "+297", "+298", "+299", "+345", "+350", "+351", "+352", "+353", "+354", "+355", "+356", "+357", "+358", "+359", "+370", "+371", "+372", "+373", "+374", "+375", "+376", "+377", "+378", "+379", "+380", "+381", "+382", "+385", "+386", "+387", "+389", "+420", "+421", "+423", "+500", "+501", "+502", "+503", "+504", "+505", "+506", "+507", "+508", "+509", "+537", "+590", "+591", "+593", "+594", "+595", "+596", "+597", "+598", "+599", "+670", "+672", "+673", "+674", "+675", "+676", "+677", "+678", "+679", "+680", "+681", "+682", "+683", "+685", "+686", "+687", "+688", "+689", "+690", "+691", "+692", "+850", "+852", "+853", "+855", "+856", "+872", "+880", "+886", "+960", "+961", "+962", "+963", "+964", "+965", "+966", "+967", "+968", "+970", "+971", "+972", "+973", "+974", "+975", "+976", "+977", "+992", "+993", "+994", "+995", "+996", "+998"];
@@ -157,17 +157,17 @@ const e$3 = { "Account recovery requires verified contact information": "\u0412\
157
157
  const n$4 = { "Account recovery requires verified contact information": "\u05E9\u05D7\u05D6\u05D5\u05E8 \u05DC\u05E7\u05D5\u05D7 \u05D3\u05D5\u05E8\u05E9 \u05E2\u05D5\u05D3 \u05DE\u05D9\u05D3\u05E2", "Back to Sign In": "\u05D7\u05D6\u05D5\u05E8 \u05DC\u05D4\u05E8\u05E9\u05DE\u05D4", "Change Password": "\u05E2\u05D3\u05DB\u05D5\u05DF \u05E1\u05D9\u05E1\u05DE\u05D0", Changing: "\u05DE\u05E2\u05D3\u05DB\u05DF", Code: "\u05E7\u05D5\u05D3", "Confirm Password": "\u05D0\u05E9\u05E8 \u05E1\u05D9\u05E1\u05DE\u05D0", "Confirm Sign Up": "\u05D0\u05E9\u05E8 \u05D4\u05E8\u05E9\u05DE\u05D4", "Confirm SMS Code": "\u05D0\u05E9\u05E8 sms \u05E7\u05D5\u05D3", "Confirm TOTP Code": "\u05D0\u05E9\u05E8 totp \u05E7\u05D5\u05D3", Confirm: "\u05D0\u05D9\u05E9\u05D5\u05E8", "Confirmation Code": "\u05D0\u05D9\u05E9\u05D5\u05E8 \u05E7\u05D5\u05D3", Confirming: "\u05DE\u05D0\u05E9\u05E8", "Create a new account": "\u05E6\u05D5\u05E8 \u05DE\u05E9\u05EA\u05DE\u05E9 \u05D7\u05D3\u05E9", "Create Account": "\u05E6\u05D5\u05E8 \u05DE\u05E9\u05EA\u05DE\u05E9", "Creating Account": "\u05D9\u05E6\u05D9\u05E8\u05EA \u05DE\u05E9\u05EA\u05DE\u05E9", "Dismiss alert": "\u05D4\u05E1\u05E8 \u05D4\u05EA\u05E8\u05D0\u05D4", Email: "\u05D0\u05D9\u05DE\u05D9\u05D9\u05DC", "Enter your code": "\u05D4\u05DB\u05E0\u05E1 \u05D0\u05EA \u05D4\u05E7\u05D5\u05D3", "Enter your email": "\u05D4\u05DB\u05E0\u05E1 \u05D0\u05EA \u05D4\u05DE\u05D9\u05D9\u05DC \u05E9\u05DC\u05DA", "Enter your phone number": "\u05D4\u05DB\u05E0\u05E1 \u05D0\u05EA \u05DE\u05E1\u05E4\u05E8 \u05D4\u05D8\u05DC\u05E4\u05D5\u05DF \u05E9\u05DC\u05DA", "Enter your username": "\u05D4\u05DB\u05E0\u05E1 \u05D0\u05EA \u05E9\u05DD \u05D4\u05DE\u05EA\u05DE\u05E9 \u05E9\u05DC\u05DA", "Forgot your password?": "\u05E9\u05D7\u05DB\u05EA \u05E1\u05D9\u05E1\u05DE\u05D0 ?", "Hide password": "\u05D4\u05E1\u05EA\u05E8 \u05E1\u05D9\u05E1\u05DE\u05D0", Loading: "\u05D8\u05D5\u05E2\u05DF", "New password": "\u05E1\u05D9\u05E1\u05DE\u05D0 \u05D7\u05D3\u05E9\u05D4", or: "\u05D0\u05D5\u05B9", Password: "\u05E1\u05D9\u05E1\u05DE\u05D0", "Phone Number": "\u05DE\u05E1\u05E4\u05E8 \u05D8\u05DC\u05E4\u05D5\u05DF", "Resend Code": "\u05E9\u05DC\u05D7 \u05E7\u05D5\u05D3 \u05E9\u05D5\u05D1", "Reset your password": "\u05D0\u05E4\u05E1 \u05E1\u05D9\u05E1\u05DE\u05D0", "Reset your Password": "\u05D0\u05E4\u05E1 \u05E1\u05D9\u05E1\u05DE\u05D0", "Send code": "\u05E9\u05DC\u05D7 \u05E7\u05D5\u05D3", "Send Code": "\u05E9\u05DC\u05D7 \u05E7\u05D5\u05D3", Sending: "\u05E9\u05D5\u05DC\u05D7", "Setup TOTP": "Setup TOTP", "Show password": "\u05D4\u05E6\u05D2 \u05E1\u05D9\u05E1\u05DE\u05D0", "Sign in to your account": "\u05D4\u05EA\u05D7\u05D1\u05E8 \u05DC\u05D7\u05E9\u05D1\u05D5\u05DF \u05E9\u05DC\u05DA", "Sign In with Amazon": "Sign In with Amazon", "Sign In with Apple": "Sign In with Apple", "Sign In with Facebook": "Sign In with Facebook", "Sign In with Google": "Sign In with Google", "Sign in": "\u05D4\u05EA\u05D7\u05D1\u05E8", "Sign In": "\u05D4\u05EA\u05D7\u05D1\u05E8", "Signing in": "\u05DE\u05EA\u05D7\u05D1\u05E8", Skip: "\u05D3\u05DC\u05D2", Submit: "\u05E9\u05DC\u05D7", Submitting: "\u05E9\u05D5\u05DC\u05D7", Username: "\u05E9\u05DD \u05DE\u05E9\u05EA\u05DE\u05E9", "Verify Contact": "\u05D0\u05DE\u05EA \u05D0\u05D9\u05E9 \u05E7\u05E9\u05E8", Verify: "\u05D0\u05DE\u05EA" };
158
158
  const e$2 = { "Account recovery requires verified contact information": "\u0412\u0456\u0434\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044F \u043E\u0431\u043B\u0456\u043A\u043E\u0432\u043E\u0433\u043E \u0437\u0430\u043F\u0438\u0441\u0443 \u043F\u043E\u0442\u0440\u0435\u0431\u0443\u0454 \u043A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0457 \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u0457", "Back to Sign In": "\u041D\u0430\u0437\u0430\u0434 \u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0443 \u0432\u0445\u043E\u0434\u0443", "Change Password": "\u0417\u043C\u0456\u043D\u0438\u0442\u0438 \u043F\u0430\u0440\u043E\u043B\u044C", Changing: "\u0417\u043C\u0456\u043D\u044E\u0454\u043C\u043E", Code: "\u041A\u043E\u0434", "Confirm Password": "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0456\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C", "Confirm Sign Up": "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0456\u0442\u044C \u0440\u0435\u0454\u0441\u0442\u0440\u0430\u0446\u0456\u044E", "Confirm SMS Code": "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0456\u0442\u044C SMS \u043A\u043E\u0434", "Confirm TOTP Code": "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0456\u0442\u044C TOTP \u043A\u043E\u0434", Confirm: "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0438", "Confirmation Code": "\u041A\u043E\u0434 \u043F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0436\u0435\u043D\u043D\u044F", Confirming: "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0436\u0443\u0454\u043C\u043E", "Create a new account": "\u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438\u0441\u044F", "Create Account": "\u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438\u0441\u044F", "Creating Account": "\u0420\u0435\u0454\u0441\u0442\u0440\u0443\u0454\u043C\u043E", "Dismiss alert": "\u0412\u0456\u0434\u0445\u0438\u043B\u0438\u0442\u0438 \u0441\u043F\u043E\u0432\u0456\u0449\u0435\u043D\u043D\u044F", Email: "Email", "Enter your code": "\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u043A\u043E\u0434", "Enter your email": "\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u0432\u0430\u0448 email", "Enter your phone number": "\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u0432\u0430\u0448 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0443", "Enter your username": "\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u0432\u0430\u0448\u0435 \u0456\u043C\u02BC\u044F \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430", "Forgot password?": "\u0417\u0430\u0431\u0443\u043B\u0438 \u043F\u0430\u0440\u043E\u043B\u044C?", "Forgot your password?": "\u0417\u0430\u0431\u0443\u043B\u0438 \u0432\u0430\u0448 \u043F\u0430\u0440\u043E\u043B\u044C?", "Hide password": "\u0421\u0445\u043E\u0432\u0430\u0442\u0438 \u043F\u0430\u0440\u043E\u043B\u044C", "It may take a minute to arrive": "\u0414\u043E\u0441\u0442\u0430\u0432\u043A\u0430 \u043C\u043E\u0436\u0435 \u0442\u0440\u0438\u0432\u0430\u0442\u0438 \u0445\u0432\u0438\u043B\u0438\u043D\u0443", Loading: "\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0454\u043C\u043E", "New password": "\u041D\u043E\u0432\u0438\u0439 \u043F\u0430\u0440\u043E\u043B\u044C", or: "\u0430\u0431\u043E", Password: "\u041F\u0430\u0440\u043E\u043B\u044C", "Phone Number": "\u041D\u043E\u043C\u0435\u0440 \u0422\u0435\u043B\u0435\u0444\u043E\u043D\u0443", "Resend Code": "\u0412\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u0442\u0438 \u043A\u043E\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E", "Reset your password": "\u0421\u043A\u0438\u043D\u0443\u0442\u0438 \u043F\u0430\u0440\u043E\u043B\u044C", "Reset your Password": "\u0421\u043A\u0438\u043D\u0443\u0442\u0438 \u043F\u0430\u0440\u043E\u043B\u044C", "Send code": "\u0412\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u0442\u0438 \u043A\u043E\u0434", "Send Code": "\u0412\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u0442\u0438 \u043A\u043E\u0434", Sending: "\u0412\u0456\u0434\u043F\u0440\u0430\u0432\u043B\u044F\u0454\u043C\u043E", "Setup TOTP": "\u041D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u0442\u0438 TOTP", "Show password": "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0438 \u043F\u0430\u0440\u043E\u043B\u044C", "Sign in to your account": "\u0423\u0432\u0456\u0439\u0442\u0438 \u0443 \u0432\u0430\u0448 \u043E\u0431\u043B\u0456\u043A\u043E\u0432\u0438\u0439 \u0437\u0430\u043F\u0438\u0441", "Sign In with Amazon": "\u0423\u0432\u0456\u0439\u0442\u0438 \u0437 Amazon", "Sign In with Apple": "\u0423\u0432\u0456\u0439\u0442\u0438 \u0437 Apple", "Sign In with Facebook": "\u0423\u0432\u0456\u0439\u0442\u0438 \u0437 Facebook", "Sign In with Google": "\u0423\u0432\u0456\u0439\u0442\u0438 \u0437 Google", "Sign in": "\u0423\u0432\u0456\u0439\u0442\u0438", "Sign In": "\u0423\u0432\u0456\u0439\u0442\u0438", "Signing in": "\u0412\u0445\u043E\u0434\u0438\u043C\u043E", Skip: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u0438", Submit: "\u0412\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u0442\u0438", Submitting: "\u0412\u0456\u0434\u043F\u0440\u0430\u0432\u043B\u044F\u0454\u043C\u043E", Username: "\u0406\u043C\u02BC\u044F \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430", "Verify Contact": "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0438 \u041A\u043E\u043D\u0442\u0430\u043A\u0442", Verify: "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0438", "We Emailed You": "\u041C\u0438 \u0432\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u043B\u0438 \u0432\u0430\u043C Email", "We Sent A Code": "\u041C\u0438 \u0432\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u043B\u0438 \u043A\u043E\u0434", "We Texted You": "\u041C\u0438 \u0432\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u043B\u0438 \u0432\u0430\u043C \u0442\u0435\u043A\u0441\u0442\u043E\u0432\u0435 \u043F\u043E\u0432\u0456\u0434\u043E\u043C\u043B\u0435\u043D\u043D\u044F", "Your code is on the way. To log in, enter the code we emailed to": "\u0412\u0430\u0448 \u043A\u043E\u0434 \u0432\u0436\u0435 \u0432 \u0434\u043E\u0440\u043E\u0437\u0456. \u0429\u043E\u0431 \u0443\u0432\u0456\u0439\u0442\u0438, \u0432\u0432\u0435\u0434\u0456\u0442\u044C \u043A\u043E\u0434, \u0449\u043E \u043C\u0438 \u0432\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u043B\u0438 \u0432\u0430\u043C \u043D\u0430 Email", "Your code is on the way. To log in, enter the code we sent you": "\u0412\u0430\u0448 \u043A\u043E\u0434 \u0432\u0436\u0435 \u0432 \u0434\u043E\u0440\u043E\u0437\u0456. \u0429\u043E\u0431 \u0443\u0432\u0456\u0439\u0442\u0438, \u0432\u0432\u0435\u0434\u0456\u0442\u044C \u043A\u043E\u0434, \u0449\u043E \u043C\u0438 \u0432\u0430\u043C \u0432\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u043B\u0438", "Your code is on the way. To log in, enter the code we texted to": "\u0412\u0430\u0448 \u043A\u043E\u0434 \u0432\u0436\u0435 \u0432 \u0434\u043E\u0440\u043E\u0437\u0456. \u0429\u043E\u0431 \u0443\u0432\u0456\u0439\u0442\u0438, \u0432\u0432\u0435\u0434\u0456\u0442\u044C \u043A\u043E\u0434, \u0449\u043E \u043C\u0438 \u0432\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u043B\u0438 \u0432\u0430\u043C \u0442\u0435\u043A\u0441\u0442\u043E\u0432\u0438\u043C \u043F\u043E\u0432\u0456\u0434\u043E\u043C\u043B\u0435\u043D\u043D\u044F\u043C", "An account with the given email already exists.": "\u041E\u0431\u043B\u0456\u043A\u043E\u0432\u0438\u0439 \u0437\u0430\u043F\u0438\u0441 \u0437 \u0446\u0438\u043C Email \u0432\u0436\u0435 \u0456\u0441\u043D\u0443\u0454.", "Confirm a Code": "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0456\u0442\u044C \u043A\u043E\u0434", "Confirm Sign In": "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0456\u0442\u044C \u0432\u0445\u0456\u0434", "Forgot Password": "\u0417\u0430\u0431\u0443\u043B\u0438 \u043F\u0430\u0440\u043E\u043B\u044C", "Incorrect username or password.": "\u041D\u0435\u0432\u0456\u0440\u043D\u0435 \u0456\u043C\u02BC\u044F \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430 \u0430\u0431\u043E \u043F\u0430\u0440\u043E\u043B\u044C", "Invalid password format": "\u041D\u0435\u0432\u0456\u0440\u043D\u0438\u0439 \u0444\u043E\u0440\u043C\u0430\u0442 \u043F\u0430\u0440\u043E\u043B\u044E", "Invalid phone number format": "\u041D\u0435\u0432\u0456\u0440\u043D\u0438\u0439 \u0444\u043E\u0440\u043C\u0430\u0442 \u043D\u043E\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0443", "Loading...": "\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0454\u043C\u043E...", "New Password": "\u041D\u043E\u0432\u0438\u0439 \u043F\u0430\u0440\u043E\u043B\u044C", "Resend a Code": "\u0412\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u0442\u0438 \u043A\u043E\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E", "Reset Password": "\u0421\u043A\u0438\u043D\u0443\u0442\u0438 \u043F\u0430\u0440\u043E\u043B\u044C", "Sign Out": "\u0412\u0438\u0439\u0442\u0438", "Sign Up with Amazon": "\u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u0437 Amazon", "Sign Up with Apple": "\u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u0437 Apple", "Sign Up with Facebook": "\u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u0437 Facebook", "Sign Up with Google": "\u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u0437 Google", "Sign Up": "\u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438\u0441\u044F", "User already exists": "\u041A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447 \u0432\u0436\u0435 \u0456\u0441\u043D\u0443\u0454", "User does not exist": "\u0422\u0430\u043A\u0438\u0439 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447 \u043D\u0435 \u0456\u0441\u043D\u0443\u0454", "Username cannot be empty": "\u0406\u043C\u02BC\u044F \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430 \u043D\u0435 \u043C\u043E\u0436\u0435 \u0431\u0443\u0442\u0438 \u043F\u0443\u0441\u0442\u0438\u043C", "Your passwords must match": "\u041F\u0430\u0440\u043E\u043B\u0456 \u043C\u0430\u044E\u0442\u044C \u0437\u0431\u0456\u0433\u0430\u0442\u0438\u0441\u044F" };
159
159
  const E$2 = { ADD_PROFILE: "Add your Profile", ADD_WEBSITE: "Add your Website", BACK_SIGN_IN: "Back to Sign In", BIRTHDATE: "Birthdate", CHANGE_PASSWORD: "Change Password", CHANGING_PASSWORD: "Changing", CODE: "Code", CODE_ARRIVAL: "It may take a minute to arrive", CODE_EMAILED: "Your code is on the way. To log in, enter the code we emailed to", CODE_SENT: "Your code is on the way. To log in, enter the code we sent you", CODE_TEXTED: "Your code is on the way. To log in, enter the code we texted to", CONFIRM_PASSWORD: "Confirm Password", CONFIRM_PASSWORD_PLACEHOLDER: "Please confirm your Password", CONFIRM_RESET_PASSWORD_HEADING: "Reset your Password", CONFIRM_SIGNUP_HEADING: "Confirm Sign Up", CONFIRM_SMS: "Confirm SMS Code", CONFIRM_TOTP: "Confirm TOTP Code", CONFIRM: "Confirm", CONFIRMATION_CODE: "Confirmation Code", CONFIRMING: "Confirming", CREATE_ACCOUNT: "Create Account", CREATING_ACCOUNT: "Creating Account", EMAIL_ADDRESS: "Email", ENTER_BIRTHDATE: "Enter your Birthdate", ENTER_CODE: "Enter your code", ENTER_CONFIRMATION_CODE: "Enter your Confirmation Code", ENTER_EMAIL: "Enter your Email", ENTER_FAMILY_NAME: "Enter your Family Name", ENTER_GIVEN_NAME: "Enter your Given Name", ENTER_MIDDLE_NAME: "Enter your Middle Name", ENTER_NAME: "Enter your Name", ENTER_NICK_NAME: "Enter your Nickname", ENTER_PASSWORD: "Enter your Password", ENTER_PHONE_NUMBER: "Enter your Phone Number", ENTER_PREFERRED_USERNAME: "Enter your Preferred Username", ENTER_USERNAME: "Enter your username", FAMILY_NAME: "Family Name", GIVEN_NAME: "Given Name", FORGOT_PASSWORD: "Forgot Password?", FORGOT_YOUR_PASSWORD: "Forgot your password?", HIDE_PASSWORD: "Hide password", LOADING: "Loading", LOGIN_NAME: "Username", MIDDLE_NAME: "Middle Name", NAME: "Name", NICKNAME: "Nickname", NEW_PASSWORD: "New password", OR: "or", PASSWORD: "Password", PHONE_NUMBER: "Phone Number", PREFERRED_USERNAME: "Preferred Username", PROFILE: "Profile", RESEND_CODE: "Resend Code", RESET_PASSWORD_HEADING: "Reset your password", RESET_PASSWORD: "Reset Password", SEND_CODE: "Send code", SENDING: "Sending", SETUP_TOTP: "Setup TOTP", SHOW_PASSWORD: "Show password", SIGN_IN_BUTTON: "Sign in", SIGN_IN_TAB: "Sign In", SIGN_IN_WITH_AMAZON: "Sign In with Amazon", SIGN_IN_WITH_APPLE: "Sign In with Apple", SIGN_IN_WITH_FACEBOOK: "Sign In with Facebook", SIGN_IN_WITH_GOOGLE: "Sign In with Google", SIGN_IN: "Sign in to your account", SIGN_UP_BUTTON: "Create a new account", SIGNING_IN_BUTTON: "Signing in", SKIP: "Skip", SUBMIT: "Submit", SUBMITTING: "Submitting", UPPERCASE_COPY: "COPY", VERIFY_CONTACT: "Verify Contact", VERIFY_HEADING: "Account recovery requires verified contact information", VERIFY: "Verify", WE_EMAILED: "We Emailed You", WE_SENT_CODE: "We Sent A Code", WE_TEXTED: "We Texted You", WEBSITE: "Website" };
160
- const D$1 = Object.assign({}, e$d), d$2 = Object.assign({}, e$c), l$2 = Object.assign({}, e$b), x$1 = Object.assign({}, e$a), k$1 = Object.assign({}, o$7), v$2 = Object.assign({}, e$9), z = Object.assign({}, e$8), T$1 = Object.assign({}, e$7), q$1 = Object.assign({}, o$6), w$2 = Object.assign({}, o$5), y$2 = Object.assign({}, e$6), A$1 = Object.assign({}, e$5), B = Object.assign({}, a$3), C$1 = Object.assign({}, e$4), E$1 = Object.assign({}, e$3), F$1 = Object.assign({}, n$4), G = Object.assign({}, e$2), H = Object.assign({}, E$2);
160
+ const D$1 = Object.assign({}, e$d), d$2 = Object.assign({}, e$c), l$1 = Object.assign({}, e$b), x$1 = Object.assign({}, e$a), k$1 = Object.assign({}, o$7), v$2 = Object.assign({}, e$9), z = Object.assign({}, e$8), T$1 = Object.assign({}, e$7), q$1 = Object.assign({}, o$6), w$2 = Object.assign({}, o$5), y$2 = Object.assign({}, e$6), A$1 = Object.assign({}, e$5), B = Object.assign({}, a$3), C$1 = Object.assign({}, e$4), E$1 = Object.assign({}, e$3), F$1 = Object.assign({}, n$4), G = Object.assign({}, e$2), H = Object.assign({}, E$2);
161
161
  const x = Object.assign({}, H);
162
- function b$2(r2) {
162
+ function b$3(r2) {
163
163
  return I18n.get(r2);
164
164
  }
165
- const w$1 = { de: D$1, en: d$2, es: l$2, fr: x$1, id: B, it: k$1, ja: v$2, kr: z, ko: z, nl: T$1, pl: q$1, pt: w$2, zh: y$2, sv: A$1, tr: C$1, ru: E$1, he: F$1, ua: G };
166
- const r$3 = { birthdate: { label: "Birthdate", placeholder: "Enter your Birthdate", type: "date", autocomplete: "bday", isRequired: true }, confirmation_code: { label: "Confirmation Code", placeholder: "Enter your Confirmation Code", type: "number", autocomplete: "one-time-code", isRequired: true }, confirm_password: { label: "Confirm Password", placeholder: "Please confirm your Password", type: "password", autocomplete: "new-password", isRequired: true }, email: { label: "Email", placeholder: "Enter your Email", type: "email", autocomplete: "username", isRequired: true }, family_name: { label: "Family Name", placeholder: "Enter your Family Name", type: "text", autocomplete: "family-name", isRequired: true }, given_name: { label: "Given Name", placeholder: "Enter your Given Name", type: "text", autocomplete: "given-name", isRequired: true }, middle_name: { label: "Middle Name", placeholder: "Enter your Middle Name", type: "text", autocomplete: "additional-name", isRequired: true }, name: { label: "Name", placeholder: "Enter your Name", type: "text", autocomplete: "name", isRequired: true }, nickname: { label: "Nickname", placeholder: "Enter your Nickname", type: "text", autocomplete: "tel", isRequired: true }, password: { label: "Password", placeholder: "Enter your Password", type: "password", autocomplete: "new-password", isRequired: true }, phone_number: { label: "Phone Number", placeholder: "Enter your Phone Number", type: "tel", autocomplete: "tel", dialCode: "+1", dialCodeList: o$8, isRequired: true }, preferred_username: { label: "Preferred Username", placeholder: "Enter your Preferred Username", type: "text", isRequired: true }, profile: { label: "Profile", placeholder: "Add your Profile", type: "url", autocomplete: "url", isRequired: true }, website: { label: "Website", placeholder: "Add your Website", type: "url", autocomplete: "url", isRequired: true }, username: { label: "Username", placeholder: "Enter your Username", type: "text", autocomplete: "username", isRequired: true } }, a$2 = ["^", "$", "*", ".", "[", "]", "{", "}", "(", ")", "?", '"', "!", "@", "#", "%", "&", "/", "\\", ",", ">", "<", "'", ":", ";", "|", "_", "~", "`", "=", "+", "-", " "];
165
+ const w$1 = { de: D$1, en: d$2, es: l$1, fr: x$1, id: B, it: k$1, ja: v$2, kr: z, ko: z, nl: T$1, pl: q$1, pt: w$2, zh: y$2, sv: A$1, tr: C$1, ru: E$1, he: F$1, ua: G };
166
+ const r$4 = { birthdate: { label: "Birthdate", placeholder: "Enter your Birthdate", type: "date", autocomplete: "bday", isRequired: true }, confirmation_code: { label: "Confirmation Code", placeholder: "Enter your Confirmation Code", type: "number", autocomplete: "one-time-code", isRequired: true }, confirm_password: { label: "Confirm Password", placeholder: "Please confirm your Password", type: "password", autocomplete: "new-password", isRequired: true }, email: { label: "Email", placeholder: "Enter your Email", type: "email", autocomplete: "username", isRequired: true }, family_name: { label: "Family Name", placeholder: "Enter your Family Name", type: "text", autocomplete: "family-name", isRequired: true }, given_name: { label: "Given Name", placeholder: "Enter your Given Name", type: "text", autocomplete: "given-name", isRequired: true }, middle_name: { label: "Middle Name", placeholder: "Enter your Middle Name", type: "text", autocomplete: "additional-name", isRequired: true }, name: { label: "Name", placeholder: "Enter your Name", type: "text", autocomplete: "name", isRequired: true }, nickname: { label: "Nickname", placeholder: "Enter your Nickname", type: "text", autocomplete: "tel", isRequired: true }, password: { label: "Password", placeholder: "Enter your Password", type: "password", autocomplete: "new-password", isRequired: true }, phone_number: { label: "Phone Number", placeholder: "Enter your Phone Number", type: "tel", autocomplete: "tel", dialCode: "+1", dialCodeList: o$8, isRequired: true }, preferred_username: { label: "Preferred Username", placeholder: "Enter your Preferred Username", type: "text", isRequired: true }, profile: { label: "Profile", placeholder: "Add your Profile", type: "url", autocomplete: "url", isRequired: true }, website: { label: "Website", placeholder: "Add your Website", type: "url", autocomplete: "url", isRequired: true }, username: { label: "Username", placeholder: "Enter your Username", type: "text", autocomplete: "username", isRequired: true } }, a$2 = ["^", "$", "*", ".", "[", "]", "{", "}", "(", ")", "?", '"', "!", "@", "#", "%", "&", "/", "\\", ",", ">", "<", "'", ":", ";", "|", "_", "~", "`", "=", "+", "-", " "];
167
167
  const t = (r2) => {
168
168
  const t2 = new FormData(r2.target);
169
169
  return Object.fromEntries(t2);
170
- }, o$4 = (t2) => r$5.includes(t2), s$3 = (r2) => {
170
+ }, o$4 = (t2) => r$6.includes(t2), s$2 = (r2) => {
171
171
  return r2 ? (t2 = r2, Array.isArray(t2) ? r2 : [r2]) : null;
172
172
  var t2;
173
173
  };
@@ -344,83 +344,116 @@ function waitFor(actorRef, predicate, options) {
344
344
  });
345
345
  }
346
346
  var waitFor_2 = waitFor$1.waitFor = waitFor;
347
- const s$2 = ({ packageName: t2, version: e2 }) => {
347
+ function r$3(t2) {
348
+ return null != t2 && !Array.isArray(t2) && "object" == typeof t2;
349
+ }
350
+ function n$3(t2) {
351
+ return "string" == typeof t2 || "object" == typeof t2 && "[object String]" === Object.prototype.toString.call(t2);
352
+ }
353
+ function e$1(t2) {
354
+ return r$3(t2) && "[object Map]" === Object.prototype.toString.call(t2);
355
+ }
356
+ function o$3(t2) {
357
+ return r$3(t2) && "[object Set]" === Object.prototype.toString.call(t2);
358
+ }
359
+ function i$3(t2) {
360
+ if (null == t2)
361
+ return true;
362
+ if (r$3(t2) && (e$1(t2) || o$3(t2)))
363
+ return !t2.size;
364
+ if (r$3(t2) && (n$3(t2) || Array.isArray(t2)))
365
+ return !t2.length;
366
+ for (const r2 in t2)
367
+ if (s$1(t2, r2))
368
+ return false;
369
+ return true;
370
+ }
371
+ function s$1(t2, r2) {
372
+ return null != t2 && Object.prototype.hasOwnProperty.call(t2, r2);
373
+ }
374
+ function b$2(t2) {
375
+ return "function" == typeof t2;
376
+ }
377
+ const r$2 = ({ packageName: t2, version: e2 }) => {
348
378
  appendToCognitoUserAgent(`${t2}/${e2}`);
349
- }, l$1 = (e2) => __awaiter(void 0, void 0, void 0, function* () {
379
+ }, u$1 = (e2) => __awaiter(void 0, void 0, void 0, function* () {
350
380
  try {
351
381
  yield waitFor_2(e2, (t2) => t$1(t2).matches("autoSignIn"));
352
382
  } catch (t2) {
353
383
  }
354
- }), d$1 = (e2, a2) => __awaiter(void 0, void 0, void 0, function* () {
355
- const { send: t2 } = a2, n2 = a2.getSnapshot();
356
- switch (e2.payload.event) {
384
+ }), m$2 = ({ payload: { data: e2, event: n2 } }, i2, a2) => __awaiter(void 0, void 0, void 0, function* () {
385
+ const { send: t2 } = i2, r2 = i2.getSnapshot(), { onSignIn: c2, onSignOut: l2 } = null != a2 ? a2 : {};
386
+ switch (n2) {
357
387
  case "tokenRefresh":
358
- n2.matches("authenticated.idle") && t2("TOKEN_REFRESH");
388
+ r2.matches("authenticated.idle") && t2("TOKEN_REFRESH");
359
389
  break;
360
390
  case "autoSignIn":
361
- if (!n2.matches("authenticated")) {
362
- yield l$1(a2);
363
- const n3 = t$1(a2.getSnapshot());
364
- (null == n3 ? void 0 : n3.matches("autoSignIn")) && t2({ type: "AUTO_SIGN_IN", data: e2.payload.data });
391
+ if (!r2.matches("authenticated")) {
392
+ yield u$1(i2);
393
+ const n3 = t$1(i2.getSnapshot());
394
+ (null == n3 ? void 0 : n3.matches("autoSignIn")) && t2({ type: "AUTO_SIGN_IN", data: e2 });
365
395
  }
366
396
  break;
367
397
  case "autoSignIn_failure": {
368
- yield l$1(a2);
369
- const n3 = t$1(a2.getSnapshot());
370
- (null == n3 ? void 0 : n3.matches("autoSignIn")) && t2({ type: "AUTO_SIGN_IN_FAILURE", data: e2.payload.data });
398
+ yield u$1(i2);
399
+ const n3 = t$1(i2.getSnapshot());
400
+ (null == n3 ? void 0 : n3.matches("autoSignIn")) && t2({ type: "AUTO_SIGN_IN_FAILURE", data: e2 });
371
401
  break;
372
402
  }
403
+ case "signIn":
404
+ b$2(c2) && c2();
405
+ break;
373
406
  case "signOut":
374
407
  case "tokenRefresh_failure":
375
- n2.matches("authenticated.idle") && t2("SIGN_OUT");
408
+ b$2(l2) && l2(), r2.matches("authenticated.idle") && t2("SIGN_OUT");
376
409
  }
377
- }), u$1 = (t2, a2 = d$1) => Hub.listen("auth", ((t3, e2) => (a3) => {
378
- e2(a3, t3);
379
- })(t2, a2), "authenticator-hub-handler"), h$1 = (t2) => a$2.some((e2) => t2.includes(e2)), m$2 = (t2, e2, a2) => encodeURI(`otpauth://totp/${t2}:${e2}?secret=${a2}&issuer=${t2}`);
380
- function p$2(t2, ...e2) {
381
- return Object.entries(t2).reduce((t3, [a2, n2]) => Object.assign(Object.assign({}, t3), { [a2]: e2.includes(a2) ? n2 : null == n2 ? void 0 : n2.trim() }), {});
410
+ }), d$1 = (t2, n2 = m$2) => Hub.listen("auth", ((t3, e2) => (n3) => {
411
+ e2(n3, t3);
412
+ })(t2, n2), "authenticator-hub-handler"), h$1 = (t2) => a$2.some((e2) => t2.includes(e2)), p$2 = (t2, e2, n2) => encodeURI(`otpauth://totp/${t2}:${e2}?secret=${n2}&issuer=${t2}`);
413
+ function f$2(t2, ...e2) {
414
+ return Object.entries(t2).reduce((t3, [n2, i2]) => Object.assign(Object.assign({}, t3), { [n2]: e2.includes(n2) ? i2 : null == i2 ? void 0 : i2.trim() }), {});
382
415
  }
383
- const n$3 = (s2, r2) => {
416
+ const n$2 = (s2, r2) => {
384
417
  const { country_code: t2 } = o$a(s2);
385
- let n2 = r$3[r2];
418
+ let n2 = r$4[r2];
386
419
  const { type: a2 } = n2;
387
420
  return "tel" === a2 && (n2 = Object.assign(Object.assign({}, n2), { dialCode: t2 })), n2;
388
421
  }, a$1 = (o2) => {
389
422
  const s2 = i$4(o2);
390
- return Object.assign(Object.assign({}, n$3(o2, s2)), { autocomplete: "username" });
391
- }, c$2 = (o2) => ({ confirmation_code: Object.assign(Object.assign({}, n$3(o2, "confirmation_code")), { label: "Code *", placeholder: "Code" }) }), i$3 = { signIn: (o2) => ({ username: Object.assign({}, a$1(o2)), password: Object.assign(Object.assign({}, n$3(o2, "password")), { autocomplete: "current-password" }) }), signUp: (o2) => {
423
+ return Object.assign(Object.assign({}, n$2(o2, s2)), { autocomplete: "username" });
424
+ }, c$2 = (o2) => ({ confirmation_code: Object.assign(Object.assign({}, n$2(o2, "confirmation_code")), { label: "Code *", placeholder: "Code" }) }), i$2 = { signIn: (o2) => ({ username: Object.assign({}, a$1(o2)), password: Object.assign(Object.assign({}, n$2(o2, "password")), { autocomplete: "current-password" }) }), signUp: (o2) => {
392
425
  const { loginMechanisms: s2, signUpAttributes: e2 } = o2.context.config, c2 = i$4(o2), i2 = Array.from(/* @__PURE__ */ new Set([...s2, "password", "confirm_password", ...e2])), d2 = {};
393
426
  for (const s3 of i2)
394
427
  if (o$4(s3)) {
395
- const e3 = s3 === c2 ? a$1(o2) : n$3(o2, s3);
428
+ const e3 = s3 === c2 ? a$1(o2) : n$2(o2, s3);
396
429
  d2[s3] = Object.assign({}, e3);
397
430
  } else
398
431
  console.debug(`Authenticator does not have a default implementation for ${s3}. Customize SignUp FormFields to add your own.`);
399
432
  return d2;
400
- }, confirmSignUp: (o2) => ({ confirmation_code: Object.assign(Object.assign({}, n$3(o2, "confirmation_code")), { placeholder: "Enter your code" }) }), confirmSignIn: c$2, forceNewPassword: (o2) => {
433
+ }, confirmSignUp: (o2) => ({ confirmation_code: Object.assign(Object.assign({}, n$2(o2, "confirmation_code")), { placeholder: "Enter your code" }) }), confirmSignIn: c$2, forceNewPassword: (o2) => {
401
434
  const e2 = t$1(o2), { requiredAttributes: r2 } = e2.context, a2 = Array.from(/* @__PURE__ */ new Set(["password", "confirm_password", ...r2])), c2 = {};
402
435
  for (const s2 of a2)
403
- o$4(s2) ? c2[s2] = Object.assign({}, n$3(o2, s2)) : console.debug(`Authenticator does not have a default implementation for ${s2}. Customize ForceNewPassword FormFields to add your own.`);
436
+ o$4(s2) ? c2[s2] = Object.assign({}, n$2(o2, s2)) : console.debug(`Authenticator does not have a default implementation for ${s2}. Customize ForceNewPassword FormFields to add your own.`);
404
437
  return c2;
405
438
  }, resetPassword: (o2) => {
406
- const s2 = i$4(o2), { label: t2 } = r$3[s2];
439
+ const s2 = i$4(o2), { label: t2 } = r$4[s2];
407
440
  return { username: Object.assign(Object.assign({}, a$1(o2)), { label: `Enter your ${t2.toLowerCase()}`, placeholder: `Enter your ${t2.toLowerCase()}` }) };
408
- }, confirmResetPassword: (o2) => Object.assign(Object.assign({}, c$2(o2)), { password: Object.assign(Object.assign({}, n$3(o2, "password")), { label: "New Password", placeholder: "New Password" }), confirm_password: Object.assign(Object.assign({}, n$3(o2, "confirm_password")), { label: "Confirm Password", placeholder: "Confirm Password" }) }), confirmVerifyUser: c$2, setupTOTP: c$2 };
409
- const r$2 = (r2) => {
441
+ }, confirmResetPassword: (o2) => Object.assign(Object.assign({}, c$2(o2)), { password: Object.assign(Object.assign({}, n$2(o2, "password")), { label: "New Password", placeholder: "New Password" }), confirm_password: Object.assign(Object.assign({}, n$2(o2, "confirm_password")), { label: "Confirm Password", placeholder: "Confirm Password" }) }), confirmVerifyUser: c$2, setupTOTP: c$2 };
442
+ const r$1 = (r2) => {
410
443
  const o2 = Object.assign({}, r2);
411
444
  for (const [t2, s2] of Object.entries(r2)) {
412
445
  const { label: r3, placeholder: n2 } = s2;
413
- o2[t2] = Object.assign(Object.assign({}, s2), { label: r3 ? b$2(r3) : void 0, placeholder: n2 ? b$2(n2) : void 0 });
446
+ o2[t2] = Object.assign(Object.assign({}, s2), { label: r3 ? b$3(r3) : void 0, placeholder: n2 ? b$3(n2) : void 0 });
414
447
  }
415
448
  return o2;
416
- }, o$3 = (e2) => Object.entries(e2).sort((e3, r2) => (e3[1].order || Number.MAX_VALUE) - (r2[1].order || Number.MAX_VALUE)).filter((e3) => void 0 !== e3[1]);
417
- const a = (s2, t2) => (0, i$3[s2])(t2), c$1 = (r2, i2) => {
449
+ }, o$2 = (e2) => Object.entries(e2).sort((e3, r2) => (e3[1].order || Number.MAX_VALUE) - (r2[1].order || Number.MAX_VALUE)).filter((e3) => void 0 !== e3[1]);
450
+ const a = (s2, t2) => (0, i$2[s2])(t2), c$1 = (r2, i2) => {
418
451
  var o2, a2;
419
452
  const c2 = null === (a2 = null === (o2 = o$a(i2)) || void 0 === o2 ? void 0 : o2.formFields) || void 0 === a2 ? void 0 : a2[r2];
420
453
  return c2 && 0 !== Object.keys(c2).length ? Object.entries(c2).reduce((t2, [o3, a3]) => {
421
454
  if ("signIn" !== r2 && "resetPassword" !== r2 || "username" !== o3) {
422
455
  if (i$5(o3)) {
423
- const s2 = r$3[o3], r3 = Object.assign(Object.assign({}, s2), a3);
456
+ const s2 = r$4[o3], r3 = Object.assign(Object.assign({}, s2), a3);
424
457
  return Object.assign(Object.assign({}, t2), { [o3]: r3 });
425
458
  }
426
459
  return Object.assign(Object.assign({}, t2), { [o3]: a3 });
@@ -432,29 +465,29 @@ const a = (s2, t2) => (0, i$3[s2])(t2), c$1 = (r2, i2) => {
432
465
  }, {}) : {};
433
466
  }, m$1 = (s2, t2) => {
434
467
  const e2 = a(s2, t2), r2 = c$1(s2, t2), n2 = Object.assign(Object.assign({}, e2), r2);
435
- return delete n2.QR, r$2(n2);
468
+ return delete n2.QR, r$1(n2);
436
469
  }, j$2 = (s2) => s2.map((s3) => [s3[0], Object.assign(Object.assign({}, s3[1]), { order: void 0 })]), b$1 = (s2, t2) => {
437
470
  const e2 = m$1(s2, t2);
438
- return j$2(o$3(e2));
471
+ return j$2(o$2(e2));
439
472
  };
440
- const T = { amazon: "Amazon", apple: "Apple", facebook: "Facebook", google: "Google" }, n$2 = { getBackToSignInText: () => b$2(x.BACK_SIGN_IN), getChangePasswordText: () => b$2(x.CHANGE_PASSWORD), getChangingText: () => b$2(x.CHANGING_PASSWORD), getConfirmText: () => b$2(x.CONFIRM), getConfirmingText: () => b$2(x.CONFIRMING), getCopyText: () => b$2(x.UPPERCASE_COPY), getHidePasswordText: () => b$2(x.HIDE_PASSWORD), getLoadingText: () => b$2(x.LOADING), getOrText: () => b$2(x.OR), getResendCodeText: () => b$2(x.RESEND_CODE), getSendCodeText: () => b$2(x.SEND_CODE), getSendingText: () => b$2(x.SENDING), getShowPasswordText: () => b$2(x.SHOW_PASSWORD), getSubmitText: () => b$2(x.SUBMIT), getSubmittingText: () => b$2(x.SUBMITTING), getSignInTabText: () => b$2(x.SIGN_IN_TAB), getSignUpTabText: () => b$2(x.CREATE_ACCOUNT), getForgotPasswordText: (T2) => b$2(T2 ? x.FORGOT_PASSWORD : x.FORGOT_YOUR_PASSWORD), getSigningInText: () => b$2(x.SIGNING_IN_BUTTON), getSignInText: () => b$2(x.SIGN_IN_BUTTON), getCreatingAccountText: () => b$2(x.CREATING_ACCOUNT), getCreateAccountText: () => b$2(x.CREATE_ACCOUNT), getDeliveryMessageText: (T2) => {
441
- const { DeliveryMedium: n2, Destination: g2 } = null != T2 ? T2 : {}, S = "EMAIL" === n2, o2 = "SMS" === n2, i2 = b$2(x.CODE_ARRIVAL);
473
+ const T = { amazon: "Amazon", apple: "Apple", facebook: "Facebook", google: "Google" }, n$1 = { getBackToSignInText: () => b$3(x.BACK_SIGN_IN), getChangePasswordText: () => b$3(x.CHANGE_PASSWORD), getChangingText: () => b$3(x.CHANGING_PASSWORD), getConfirmText: () => b$3(x.CONFIRM), getConfirmingText: () => b$3(x.CONFIRMING), getCopyText: () => b$3(x.UPPERCASE_COPY), getHidePasswordText: () => b$3(x.HIDE_PASSWORD), getLoadingText: () => b$3(x.LOADING), getOrText: () => b$3(x.OR), getResendCodeText: () => b$3(x.RESEND_CODE), getSendCodeText: () => b$3(x.SEND_CODE), getSendingText: () => b$3(x.SENDING), getShowPasswordText: () => b$3(x.SHOW_PASSWORD), getSubmitText: () => b$3(x.SUBMIT), getSubmittingText: () => b$3(x.SUBMITTING), getSignInTabText: () => b$3(x.SIGN_IN_TAB), getSignUpTabText: () => b$3(x.CREATE_ACCOUNT), getForgotPasswordText: (T2) => b$3(T2 ? x.FORGOT_PASSWORD : x.FORGOT_YOUR_PASSWORD), getSigningInText: () => b$3(x.SIGNING_IN_BUTTON), getSignInText: () => b$3(x.SIGN_IN_BUTTON), getCreatingAccountText: () => b$3(x.CREATING_ACCOUNT), getCreateAccountText: () => b$3(x.CREATE_ACCOUNT), getDeliveryMessageText: (T2) => {
474
+ const { DeliveryMedium: n2, Destination: g2 } = null != T2 ? T2 : {}, S = "EMAIL" === n2, o2 = "SMS" === n2, i2 = b$3(x.CODE_ARRIVAL);
442
475
  if (!S && !o2)
443
- return `${b$2(x.CODE_SENT)}. ${i2}.`;
444
- return `${b$2(S ? x.CODE_EMAILED : x.CODE_TEXTED)} ${g2}. ${i2}.`;
476
+ return `${b$3(x.CODE_SENT)}. ${i2}.`;
477
+ return `${b$3(S ? x.CODE_EMAILED : x.CODE_TEXTED)} ${g2}. ${i2}.`;
445
478
  }, getDeliveryMethodText: (T2) => {
446
479
  const { DeliveryMedium: n2 } = null != T2 ? T2 : {}, g2 = "EMAIL" === n2;
447
- return b$2(g2 || "SMS" !== n2 ? g2 ? x.WE_EMAILED : x.WE_TEXTED : x.WE_SENT_CODE);
480
+ return b$3(g2 || "SMS" !== n2 ? g2 ? x.WE_EMAILED : x.WE_TEXTED : x.WE_SENT_CODE);
448
481
  }, getChallengeText: (T2) => {
449
482
  switch (T2) {
450
483
  case "SMS_MFA":
451
- return b$2(x.CONFIRM_SMS);
484
+ return b$3(x.CONFIRM_SMS);
452
485
  case "SOFTWARE_TOKEN_MFA":
453
- return b$2(x.CONFIRM_TOTP);
486
+ return b$3(x.CONFIRM_TOTP);
454
487
  default:
455
- throw new Error(`${b$2("Unexpected challengeName encountered in ConfirmSignIn:")} ${T2}`);
488
+ throw new Error(`${b$3("Unexpected challengeName encountered in ConfirmSignIn:")} ${T2}`);
456
489
  }
457
- }, getResetYourPasswordText: () => b$2(x.RESET_PASSWORD), getSetupTOTPText: () => b$2(x.SETUP_TOTP), getSetupTOTPInstructionsText: () => b$2("Copy and paste the secret key below into an authenticator app and then enter the code in the text field below."), getCopiedText: () => b$2("COPIED"), getSignInWithFederationText: (t2, n2) => b$2(`Sign ${"signIn" === t2 ? "In" : "Up"} with ${T[n2]}`), getSkipText: () => b$2(x.SKIP), getVerifyText: () => b$2(x.VERIFY), getVerifyContactText: () => b$2(x.VERIFY_CONTACT), getAccountRecoveryInfoText: () => b$2(x.VERIFY_HEADING) };
490
+ }, getResetYourPasswordText: () => b$3(x.RESET_PASSWORD), getSetupTOTPText: () => b$3(x.SETUP_TOTP), getSetupTOTPInstructionsText: () => b$3("Copy and paste the secret key below into an authenticator app and then enter the code in the text field below."), getCopiedText: () => b$3("COPIED"), getSignInWithFederationText: (t2, n2) => b$3(`Sign ${"signIn" === t2 ? "In" : "Up"} with ${T[n2]}`), getSkipText: () => b$3(x.SKIP), getVerifyText: () => b$3(x.VERIFY), getVerifyContactText: () => b$3(x.VERIFY_CONTACT), getAccountRecoveryInfoText: () => b$3(x.VERIFY_HEADING) };
458
491
  /*! *****************************************************************************
459
492
  Copyright (c) Microsoft Corporation.
460
493
 
@@ -1071,6 +1104,9 @@ function toObserver$1(nextHandler, errorHandler, completionHandler) {
1071
1104
  function createInvokeId(stateNodeId, index2) {
1072
1105
  return "".concat(stateNodeId, ":invocation[").concat(index2, "]");
1073
1106
  }
1107
+ function isRaisableAction(action) {
1108
+ return (action.type === raise$1 || action.type === send$1 && action.to === SpecialTargets.Internal) && typeof action.delay !== "number";
1109
+ }
1074
1110
  var initEvent = /* @__PURE__ */ toSCXMLEvent({
1075
1111
  type: init
1076
1112
  });
@@ -1133,22 +1169,31 @@ function toActivityDefinition(action) {
1133
1169
  type: actionObject.type
1134
1170
  });
1135
1171
  }
1136
- function raise(event) {
1137
- if (!isString(event)) {
1138
- return send(event, {
1139
- to: SpecialTargets.Internal
1140
- });
1141
- }
1172
+ function raise(event, options) {
1142
1173
  return {
1143
1174
  type: raise$1,
1144
- event
1175
+ event: typeof event === "function" ? event : toEventObject(event),
1176
+ delay: options ? options.delay : void 0,
1177
+ id: options === null || options === void 0 ? void 0 : options.id
1145
1178
  };
1146
1179
  }
1147
- function resolveRaise(action) {
1148
- return {
1149
- type: raise$1,
1150
- _event: toSCXMLEvent(action.event)
1180
+ function resolveRaise(action, ctx, _event, delaysMap) {
1181
+ var meta = {
1182
+ _event
1151
1183
  };
1184
+ var resolvedEvent = toSCXMLEvent(isFunction$4(action.event) ? action.event(ctx, _event.data, meta) : action.event);
1185
+ var resolvedDelay;
1186
+ if (isString(action.delay)) {
1187
+ var configDelay = delaysMap && delaysMap[action.delay];
1188
+ resolvedDelay = isFunction$4(configDelay) ? configDelay(ctx, _event.data, meta) : configDelay;
1189
+ } else {
1190
+ resolvedDelay = isFunction$4(action.delay) ? action.delay(ctx, _event.data, meta) : action.delay;
1191
+ }
1192
+ return __assign$1(__assign$1({}, action), {
1193
+ type: raise$1,
1194
+ _event: resolvedEvent,
1195
+ delay: resolvedDelay
1196
+ });
1152
1197
  }
1153
1198
  function send(event, options) {
1154
1199
  return {
@@ -1338,10 +1383,10 @@ var pluckAssigns = function(actionBlocks) {
1338
1383
  for (var actionBlocks_1 = __values(actionBlocks), actionBlocks_1_1 = actionBlocks_1.next(); !actionBlocks_1_1.done; actionBlocks_1_1 = actionBlocks_1.next()) {
1339
1384
  var block = actionBlocks_1_1.value;
1340
1385
  var i2 = 0;
1341
- while (i2 < block.length) {
1342
- if (block[i2].type === assign$2) {
1343
- assignActions.push(block[i2]);
1344
- block.splice(i2, 1);
1386
+ while (i2 < block.actions.length) {
1387
+ if (block.actions[i2].type === assign$2) {
1388
+ assignActions.push(block.actions[i2]);
1389
+ block.actions.splice(i2, 1);
1345
1390
  continue;
1346
1391
  }
1347
1392
  i2++;
@@ -1370,16 +1415,24 @@ function resolveActions(machine, currentState, currentContext, _event, actionBlo
1370
1415
  var updatedContext = assignActions.length ? updateContext(currentContext, _event, assignActions, currentState) : currentContext;
1371
1416
  var preservedContexts = preserveActionOrder ? [currentContext] : void 0;
1372
1417
  var deferredToBlockEnd = [];
1373
- function handleAction(actionObject) {
1418
+ function handleAction(blockType, actionObject) {
1374
1419
  var _a2;
1375
1420
  switch (actionObject.type) {
1376
1421
  case raise$1: {
1377
- return resolveRaise(actionObject);
1422
+ var raisedAction = resolveRaise(actionObject, updatedContext, _event, machine.options.delays);
1423
+ if (predictableExec && typeof raisedAction.delay === "number") {
1424
+ predictableExec(raisedAction, updatedContext, _event);
1425
+ }
1426
+ return raisedAction;
1378
1427
  }
1379
1428
  case send$1:
1380
1429
  var sendAction = resolveSend(actionObject, updatedContext, _event, machine.options.delays);
1381
1430
  if (predictableExec && sendAction.to !== SpecialTargets.Internal) {
1382
- deferredToBlockEnd.push(sendAction);
1431
+ if (blockType === "entry") {
1432
+ deferredToBlockEnd.push(sendAction);
1433
+ } else {
1434
+ predictableExec(sendAction, updatedContext, _event);
1435
+ }
1383
1436
  }
1384
1437
  return sendAction;
1385
1438
  case log$1: {
@@ -1396,7 +1449,10 @@ function resolveActions(machine, currentState, currentContext, _event, actionBlo
1396
1449
  if (!matchedActions) {
1397
1450
  return [];
1398
1451
  }
1399
- var _b = __read(resolveActions(machine, currentState, updatedContext, _event, [toActionObjects(toArray(matchedActions), machine.options.actions)], predictableExec, preserveActionOrder), 2), resolvedActionsFromChoose = _b[0], resolvedContextFromChoose = _b[1];
1452
+ var _b = __read(resolveActions(machine, currentState, updatedContext, _event, [{
1453
+ type: blockType,
1454
+ actions: toActionObjects(toArray(matchedActions), machine.options.actions)
1455
+ }], predictableExec, preserveActionOrder), 2), resolvedActionsFromChoose = _b[0], resolvedContextFromChoose = _b[1];
1400
1456
  updatedContext = resolvedContextFromChoose;
1401
1457
  preservedContexts === null || preservedContexts === void 0 ? void 0 : preservedContexts.push(updatedContext);
1402
1458
  return resolvedActionsFromChoose;
@@ -1406,7 +1462,10 @@ function resolveActions(machine, currentState, currentContext, _event, actionBlo
1406
1462
  if (!matchedActions) {
1407
1463
  return [];
1408
1464
  }
1409
- var _c = __read(resolveActions(machine, currentState, updatedContext, _event, [toActionObjects(toArray(matchedActions), machine.options.actions)], predictableExec, preserveActionOrder), 2), resolvedActionsFromPure = _c[0], resolvedContext = _c[1];
1465
+ var _c = __read(resolveActions(machine, currentState, updatedContext, _event, [{
1466
+ type: blockType,
1467
+ actions: toActionObjects(toArray(matchedActions), machine.options.actions)
1468
+ }], predictableExec, preserveActionOrder), 2), resolvedActionsFromPure = _c[0], resolvedContext = _c[1];
1410
1469
  updatedContext = resolvedContext;
1411
1470
  preservedContexts === null || preservedContexts === void 0 ? void 0 : preservedContexts.push(updatedContext);
1412
1471
  return resolvedActionsFromPure;
@@ -1428,7 +1487,7 @@ function resolveActions(machine, currentState, currentContext, _event, actionBlo
1428
1487
  predictableExec(resolvedActionObject, updatedContext, _event);
1429
1488
  } else if (exec_1 && preservedContexts) {
1430
1489
  var contextIndex_1 = preservedContexts.length - 1;
1431
- resolvedActionObject = __assign$1(__assign$1({}, resolvedActionObject), {
1490
+ var wrapped = __assign$1(__assign$1({}, resolvedActionObject), {
1432
1491
  exec: function(_ctx) {
1433
1492
  var args = [];
1434
1493
  for (var _i = 1; _i < arguments.length; _i++) {
@@ -1437,6 +1496,7 @@ function resolveActions(machine, currentState, currentContext, _event, actionBlo
1437
1496
  exec_1.apply(void 0, __spreadArray([preservedContexts[contextIndex_1]], __read(args), false));
1438
1497
  }
1439
1498
  });
1499
+ resolvedActionObject = wrapped;
1440
1500
  }
1441
1501
  return resolvedActionObject;
1442
1502
  }
@@ -1445,9 +1505,9 @@ function resolveActions(machine, currentState, currentContext, _event, actionBlo
1445
1505
  var e_2, _a2;
1446
1506
  var resolvedActions2 = [];
1447
1507
  try {
1448
- for (var block_1 = __values(block), block_1_1 = block_1.next(); !block_1_1.done; block_1_1 = block_1.next()) {
1449
- var action = block_1_1.value;
1450
- var resolved = handleAction(action);
1508
+ for (var _b = __values(block.actions), _c = _b.next(); !_c.done; _c = _b.next()) {
1509
+ var action = _c.value;
1510
+ var resolved = handleAction(block.type, action);
1451
1511
  if (resolved) {
1452
1512
  resolvedActions2 = resolvedActions2.concat(resolved);
1453
1513
  }
@@ -1458,8 +1518,8 @@ function resolveActions(machine, currentState, currentContext, _event, actionBlo
1458
1518
  };
1459
1519
  } finally {
1460
1520
  try {
1461
- if (block_1_1 && !block_1_1.done && (_a2 = block_1.return))
1462
- _a2.call(block_1);
1521
+ if (_c && !_c.done && (_a2 = _b.return))
1522
+ _a2.call(_b);
1463
1523
  } finally {
1464
1524
  if (e_2)
1465
1525
  throw e_2.error;
@@ -1474,7 +1534,7 @@ function resolveActions(machine, currentState, currentContext, _event, actionBlo
1474
1534
  var resolvedActions = flatten(actionBlocks.map(processBlock));
1475
1535
  return [resolvedActions, updatedContext];
1476
1536
  }
1477
- var r$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1537
+ var r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1478
1538
  __proto__: null,
1479
1539
  actionTypes,
1480
1540
  after,
@@ -2211,7 +2271,7 @@ var Interpreter = /* @__PURE__ */ function() {
2211
2271
  };
2212
2272
  this.sendTo = function(event, to, immediate) {
2213
2273
  var isParent = _this.parent && (to === SpecialTargets.Parent || _this.parent.id === to);
2214
- var target = isParent ? _this.parent : isString(to) ? _this.children.get(to) || registry.get(to) : isActor$1(to) ? to : void 0;
2274
+ var target = isParent ? _this.parent : isString(to) ? to === SpecialTargets.Internal ? _this : _this.children.get(to) || registry.get(to) : isActor$1(to) ? to : void 0;
2215
2275
  if (!target) {
2216
2276
  if (!isParent) {
2217
2277
  throw new Error("Unable to send event to child '".concat(to, "' from service '").concat(_this.id, "'."));
@@ -2265,6 +2325,11 @@ var Interpreter = /* @__PURE__ */ function() {
2265
2325
  }
2266
2326
  }
2267
2327
  switch (action.type) {
2328
+ case raise$1: {
2329
+ var sendAction_1 = action;
2330
+ _this.defer(sendAction_1);
2331
+ break;
2332
+ }
2268
2333
  case send$1:
2269
2334
  var sendAction = action;
2270
2335
  if (typeof sendAction.delay === "number") {
@@ -2327,7 +2392,7 @@ var Interpreter = /* @__PURE__ */ function() {
2327
2392
  break;
2328
2393
  }
2329
2394
  case log$1:
2330
- var label = action.label, value = action.value;
2395
+ var _a2 = action, label = _a2.label, value = _a2.value;
2331
2396
  if (label) {
2332
2397
  _this.logger(label, value);
2333
2398
  } else {
@@ -2471,10 +2536,11 @@ var Interpreter = /* @__PURE__ */ function() {
2471
2536
  return sn.type === "final" && sn.parent === _this.machine;
2472
2537
  });
2473
2538
  var doneData = finalChildStateNode && finalChildStateNode.doneData ? mapContext(finalChildStateNode.doneData, state.context, _event) : void 0;
2539
+ this._doneEvent = doneInvoke(this.id, doneData);
2474
2540
  try {
2475
2541
  for (var _l = __values(this.doneListeners), _m = _l.next(); !_m.done; _m = _l.next()) {
2476
2542
  var listener = _m.value;
2477
- listener(doneInvoke(this.id, doneData));
2543
+ listener(this._doneEvent);
2478
2544
  }
2479
2545
  } catch (e_5_1) {
2480
2546
  e_5 = {
@@ -2491,6 +2557,7 @@ var Interpreter = /* @__PURE__ */ function() {
2491
2557
  }
2492
2558
  this._stop();
2493
2559
  this._stopChildren();
2560
+ registry.free(this.sessionId);
2494
2561
  }
2495
2562
  };
2496
2563
  Interpreter2.prototype.onTransition = function(listener) {
@@ -2543,7 +2610,11 @@ var Interpreter = /* @__PURE__ */ function() {
2543
2610
  return this;
2544
2611
  };
2545
2612
  Interpreter2.prototype.onDone = function(listener) {
2546
- this.doneListeners.add(listener);
2613
+ if (this.status === InterpreterStatus.Stopped && this._doneEvent) {
2614
+ listener(this._doneEvent);
2615
+ } else {
2616
+ this.doneListeners.add(listener);
2617
+ }
2547
2618
  return this;
2548
2619
  };
2549
2620
  Interpreter2.prototype.off = function(listener) {
@@ -2701,7 +2772,10 @@ var Interpreter = /* @__PURE__ */ function() {
2701
2772
  }).map(function(stateNode) {
2702
2773
  return toActionObjects(stateNode.onExit, _this.machine.options.actions);
2703
2774
  }));
2704
- var _a2 = __read(resolveActions(_this.machine, _this.state, _this.state.context, _event, [exitActions], _this.machine.config.predictableActionArguments ? _this._exec : void 0, _this.machine.config.predictableActionArguments || _this.machine.config.preserveActionOrder), 2), resolvedActions = _a2[0], updatedContext = _a2[1];
2775
+ var _a2 = __read(resolveActions(_this.machine, _this.state, _this.state.context, _event, [{
2776
+ type: "exit",
2777
+ actions: exitActions
2778
+ }], _this.machine.config.predictableActionArguments ? _this._exec : void 0, _this.machine.config.predictableActionArguments || _this.machine.config.preserveActionOrder), 2), resolvedActions = _a2[0], updatedContext = _a2[1];
2705
2779
  var newState = new State({
2706
2780
  value: _this.state.value,
2707
2781
  context: updatedContext,
@@ -2710,7 +2784,7 @@ var Interpreter = /* @__PURE__ */ function() {
2710
2784
  historyValue: void 0,
2711
2785
  history: _this.state,
2712
2786
  actions: resolvedActions.filter(function(action) {
2713
- return action.type !== raise$1 && (action.type !== send$1 || !!action.to && action.to !== SpecialTargets.Internal);
2787
+ return !isRaisableAction(action);
2714
2788
  }),
2715
2789
  activities: {},
2716
2790
  events: [],
@@ -2831,13 +2905,16 @@ var Interpreter = /* @__PURE__ */ function() {
2831
2905
  };
2832
2906
  Interpreter2.prototype.defer = function(sendAction) {
2833
2907
  var _this = this;
2834
- this.delayedEventsMap[sendAction.id] = this.clock.setTimeout(function() {
2835
- if (sendAction.to) {
2908
+ var timerId = this.clock.setTimeout(function() {
2909
+ if ("to" in sendAction && sendAction.to) {
2836
2910
  _this.sendTo(sendAction._event, sendAction.to, true);
2837
2911
  } else {
2838
2912
  _this.send(sendAction._event);
2839
2913
  }
2840
2914
  }, sendAction.delay);
2915
+ if (sendAction.id) {
2916
+ this.delayedEventsMap[sendAction.id] = timerId;
2917
+ }
2841
2918
  };
2842
2919
  Interpreter2.prototype.cancel = function(sendId) {
2843
2920
  this.clock.clearTimeout(this.delayedEventsMap[sendId]);
@@ -3630,15 +3707,11 @@ var StateNode = /* @__PURE__ */ function() {
3630
3707
  if (!willTransition) {
3631
3708
  return this.next(state, _event);
3632
3709
  }
3633
- var entryNodes = flatten(stateTransitions.map(function(t2) {
3634
- return t2.entrySet;
3635
- }));
3636
3710
  var configuration = flatten(Object.keys(transitionMap).map(function(key) {
3637
3711
  return transitionMap[key].configuration;
3638
3712
  }));
3639
3713
  return {
3640
3714
  transitions: enabledTransitions,
3641
- entrySet: entryNodes,
3642
3715
  exitSet: flatten(stateTransitions.map(function(t2) {
3643
3716
  return t2.exitSet;
3644
3717
  })),
@@ -3708,7 +3781,6 @@ var StateNode = /* @__PURE__ */ function() {
3708
3781
  if (!nextStateNodes.length) {
3709
3782
  return {
3710
3783
  transitions: [selectedTransition],
3711
- entrySet: [],
3712
3784
  exitSet: [],
3713
3785
  configuration: state.value ? [this] : [],
3714
3786
  source: state,
@@ -3719,24 +3791,23 @@ var StateNode = /* @__PURE__ */ function() {
3719
3791
  return _this.getRelativeStateNodes(stateNode, state.historyValue);
3720
3792
  }));
3721
3793
  var isInternal = !!selectedTransition.internal;
3722
- var reentryNodes = [];
3723
- if (!isInternal) {
3724
- nextStateNodes.forEach(function(targetNode) {
3725
- reentryNodes.push.apply(reentryNodes, __spreadArray([], __read(_this.getExternalReentryNodes(targetNode)), false));
3726
- });
3727
- }
3728
3794
  return {
3729
3795
  transitions: [selectedTransition],
3730
- entrySet: reentryNodes,
3731
- exitSet: isInternal ? [] : [this],
3796
+ exitSet: isInternal ? [] : flatten(nextStateNodes.map(function(targetNode) {
3797
+ return _this.getPotentiallyReenteringNodes(targetNode);
3798
+ })),
3732
3799
  configuration: allNextStateNodes,
3733
3800
  source: state,
3734
3801
  actions
3735
3802
  };
3736
3803
  };
3737
- StateNode2.prototype.getExternalReentryNodes = function(targetNode) {
3804
+ StateNode2.prototype.getPotentiallyReenteringNodes = function(targetNode) {
3805
+ if (this.order < targetNode.order) {
3806
+ return [this];
3807
+ }
3738
3808
  var nodes = [];
3739
- var _a2 = __read(targetNode.order > this.order ? [targetNode, this] : [this, targetNode], 2), marker = _a2[0], possibleAncestor = _a2[1];
3809
+ var marker = this;
3810
+ var possibleAncestor = targetNode;
3740
3811
  while (marker && marker !== possibleAncestor) {
3741
3812
  nodes.push(marker);
3742
3813
  marker = marker.parent;
@@ -3750,12 +3821,15 @@ var StateNode = /* @__PURE__ */ function() {
3750
3821
  StateNode2.prototype.getActions = function(resolvedConfig, isDone, transition, currentContext, _event, prevState, predictableExec) {
3751
3822
  var e_4, _a2, e_5, _b;
3752
3823
  var _this = this;
3753
- var prevConfig = getConfiguration([], prevState ? this.getStateNodes(prevState.value) : [this]);
3824
+ var prevConfig = prevState ? getConfiguration([], this.getStateNodes(prevState.value)) : [];
3825
+ var entrySet = /* @__PURE__ */ new Set();
3754
3826
  try {
3755
- for (var resolvedConfig_1 = __values(resolvedConfig), resolvedConfig_1_1 = resolvedConfig_1.next(); !resolvedConfig_1_1.done; resolvedConfig_1_1 = resolvedConfig_1.next()) {
3756
- var sn = resolvedConfig_1_1.value;
3757
- if (!has(prevConfig, sn) || has(transition.entrySet, sn.parent) && !has(transition.entrySet, sn)) {
3758
- transition.entrySet.push(sn);
3827
+ for (var _c = __values(Array.from(resolvedConfig).sort(function(a2, b2) {
3828
+ return a2.order - b2.order;
3829
+ })), _d = _c.next(); !_d.done; _d = _c.next()) {
3830
+ var sn = _d.value;
3831
+ if (!has(prevConfig, sn) || has(transition.exitSet, sn) || sn.parent && entrySet.has(sn.parent)) {
3832
+ entrySet.add(sn);
3759
3833
  }
3760
3834
  }
3761
3835
  } catch (e_4_1) {
@@ -3764,8 +3838,8 @@ var StateNode = /* @__PURE__ */ function() {
3764
3838
  };
3765
3839
  } finally {
3766
3840
  try {
3767
- if (resolvedConfig_1_1 && !resolvedConfig_1_1.done && (_a2 = resolvedConfig_1.return))
3768
- _a2.call(resolvedConfig_1);
3841
+ if (_d && !_d.done && (_a2 = _c.return))
3842
+ _a2.call(_c);
3769
3843
  } finally {
3770
3844
  if (e_4)
3771
3845
  throw e_4.error;
@@ -3791,7 +3865,14 @@ var StateNode = /* @__PURE__ */ function() {
3791
3865
  throw e_5.error;
3792
3866
  }
3793
3867
  }
3794
- var doneEvents = flatten(transition.entrySet.map(function(sn2) {
3868
+ transition.exitSet.sort(function(a2, b2) {
3869
+ return b2.order - a2.order;
3870
+ });
3871
+ var entryStates = Array.from(entrySet).sort(function(a2, b2) {
3872
+ return a2.order - b2.order;
3873
+ });
3874
+ var exitStates = new Set(transition.exitSet);
3875
+ var doneEvents = flatten(entryStates.map(function(sn2) {
3795
3876
  var events = [];
3796
3877
  if (sn2.type !== "final") {
3797
3878
  return events;
@@ -3814,36 +3895,45 @@ var StateNode = /* @__PURE__ */ function() {
3814
3895
  }
3815
3896
  return events;
3816
3897
  }));
3817
- transition.exitSet.sort(function(a2, b2) {
3818
- return b2.order - a2.order;
3819
- });
3820
- transition.entrySet.sort(function(a2, b2) {
3821
- return a2.order - b2.order;
3822
- });
3823
- var entryStates = new Set(transition.entrySet);
3824
- var exitStates = new Set(transition.exitSet);
3825
- var entryActions = Array.from(entryStates).map(function(stateNode) {
3898
+ var entryActions = entryStates.map(function(stateNode) {
3826
3899
  var entryActions2 = stateNode.onEntry;
3827
3900
  var invokeActions = stateNode.activities.map(function(activity) {
3828
3901
  return start(activity);
3829
3902
  });
3830
- return toActionObjects(predictableExec ? __spreadArray(__spreadArray([], __read(entryActions2), false), __read(invokeActions), false) : __spreadArray(__spreadArray([], __read(invokeActions), false), __read(entryActions2), false), _this.machine.options.actions);
3831
- }).concat([doneEvents.map(raise)]);
3903
+ return {
3904
+ type: "entry",
3905
+ actions: toActionObjects(predictableExec ? __spreadArray(__spreadArray([], __read(entryActions2), false), __read(invokeActions), false) : __spreadArray(__spreadArray([], __read(invokeActions), false), __read(entryActions2), false), _this.machine.options.actions)
3906
+ };
3907
+ }).concat({
3908
+ type: "state_done",
3909
+ actions: doneEvents.map(function(event) {
3910
+ return raise(event);
3911
+ })
3912
+ });
3832
3913
  var exitActions = Array.from(exitStates).map(function(stateNode) {
3833
- return toActionObjects(__spreadArray(__spreadArray([], __read(stateNode.onExit), false), __read(stateNode.activities.map(function(activity) {
3834
- return stop(activity);
3835
- })), false), _this.machine.options.actions);
3914
+ return {
3915
+ type: "exit",
3916
+ actions: toActionObjects(__spreadArray(__spreadArray([], __read(stateNode.onExit), false), __read(stateNode.activities.map(function(activity) {
3917
+ return stop(activity);
3918
+ })), false), _this.machine.options.actions)
3919
+ };
3836
3920
  });
3837
- var actions = exitActions.concat([toActionObjects(transition.actions, this.machine.options.actions)]).concat(entryActions);
3921
+ var actions = exitActions.concat({
3922
+ type: "transition",
3923
+ actions: toActionObjects(transition.actions, this.machine.options.actions)
3924
+ }).concat(entryActions);
3838
3925
  if (isDone) {
3839
3926
  var stopActions = toActionObjects(flatten(__spreadArray([], __read(resolvedConfig), false).sort(function(a2, b2) {
3840
3927
  return b2.order - a2.order;
3841
3928
  }).map(function(stateNode) {
3842
3929
  return stateNode.onExit;
3843
3930
  })), this.machine.options.actions).filter(function(action) {
3844
- return action.type !== raise$1 && (action.type !== send$1 || !!action.to && action.to !== SpecialTargets.Internal);
3931
+ return !isRaisableAction(action);
3932
+ });
3933
+ return actions.concat({
3934
+ type: "stop",
3935
+ actions: stopActions
3845
3936
  });
3846
- return actions.concat([stopActions]);
3847
3937
  }
3848
3938
  return actions;
3849
3939
  };
@@ -3868,7 +3958,6 @@ var StateNode = /* @__PURE__ */ function() {
3868
3958
  var stateTransition = this._transition(currentState.value, currentState, _event) || {
3869
3959
  transitions: [],
3870
3960
  configuration: [],
3871
- entrySet: [],
3872
3961
  exitSet: [],
3873
3962
  source: currentState,
3874
3963
  actions: []
@@ -3905,8 +3994,8 @@ var StateNode = /* @__PURE__ */ function() {
3905
3994
  for (var actionBlocks_1 = __values(actionBlocks), actionBlocks_1_1 = actionBlocks_1.next(); !actionBlocks_1_1.done; actionBlocks_1_1 = actionBlocks_1.next()) {
3906
3995
  var block = actionBlocks_1_1.value;
3907
3996
  try {
3908
- for (var block_1 = (e_7 = void 0, __values(block)), block_1_1 = block_1.next(); !block_1_1.done; block_1_1 = block_1.next()) {
3909
- var action = block_1_1.value;
3997
+ for (var _c = (e_7 = void 0, __values(block.actions)), _d = _c.next(); !_d.done; _d = _c.next()) {
3998
+ var action = _d.value;
3910
3999
  if (action.type === start$1) {
3911
4000
  activities[action.activity.id || action.activity.type] = action;
3912
4001
  } else if (action.type === stop$1) {
@@ -3919,8 +4008,8 @@ var StateNode = /* @__PURE__ */ function() {
3919
4008
  };
3920
4009
  } finally {
3921
4010
  try {
3922
- if (block_1_1 && !block_1_1.done && (_b = block_1.return))
3923
- _b.call(block_1);
4011
+ if (_d && !_d.done && (_b = _c.return))
4012
+ _b.call(_c);
3924
4013
  } finally {
3925
4014
  if (e_7)
3926
4015
  throw e_7.error;
@@ -3940,10 +4029,8 @@ var StateNode = /* @__PURE__ */ function() {
3940
4029
  throw e_6.error;
3941
4030
  }
3942
4031
  }
3943
- var _c = __read(resolveActions(this, currentState, context, _event, actionBlocks, predictableExec, this.machine.config.predictableActionArguments || this.machine.config.preserveActionOrder), 2), resolvedActions = _c[0], updatedContext = _c[1];
3944
- var _d = __read(partition(resolvedActions, function(action2) {
3945
- return action2.type === raise$1 || action2.type === send$1 && action2.to === SpecialTargets.Internal;
3946
- }), 2), raisedEvents = _d[0], nonRaisedActions = _d[1];
4032
+ var _e = __read(resolveActions(this, currentState, context, _event, actionBlocks, predictableExec, this.machine.config.predictableActionArguments || this.machine.config.preserveActionOrder), 2), resolvedActions = _e[0], updatedContext = _e[1];
4033
+ var _f = __read(partition(resolvedActions, isRaisableAction), 2), raisedEvents = _f[0], nonRaisedActions = _f[1];
3947
4034
  var invokeActions = resolvedActions.filter(function(action2) {
3948
4035
  var _a3;
3949
4036
  return action2.type === start$1 && ((_a3 = action2.activity) === null || _a3 === void 0 ? void 0 : _a3.type) === invoke;
@@ -4111,7 +4198,6 @@ var StateNode = /* @__PURE__ */ function() {
4111
4198
  var configuration = this.getStateNodes(stateValue);
4112
4199
  return this.resolveTransition({
4113
4200
  configuration,
4114
- entrySet: configuration,
4115
4201
  exitSet: [],
4116
4202
  transitions: [],
4117
4203
  source: void 0,
@@ -4407,47 +4493,47 @@ var StateNode = /* @__PURE__ */ function() {
4407
4493
  }();
4408
4494
  var warned = false;
4409
4495
  function createMachine(config, options) {
4410
- if (!IS_PRODUCTION && !config.predictableActionArguments && !warned) {
4496
+ if (!IS_PRODUCTION && !("predictableActionArguments" in config) && !warned) {
4411
4497
  warned = true;
4412
4498
  console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html");
4413
4499
  }
4414
4500
  return new StateNode(config, options);
4415
4501
  }
4416
4502
  var assign = assign$1, sendUpdate = sendUpdate$1, forwardTo = forwardTo$1;
4417
- const { assign: o$2, stop: s$1 } = r$1, n$1 = (e2) => s$1(e2), i$2 = o$2({ attributeToVerify: (e2) => {
4418
- } }), u = o$2({ challengeName: (e2) => {
4419
- } }), m = o$2({ requiredAttributes: (e2) => {
4420
- } }), l = o$2({ remoteError: (e2) => "" }), d = o$2({ formValues: (e2) => ({}) }), c = o$2({ touched: (e2) => ({}) }), p$1 = o$2({ unverifiedContactMethods: (e2) => {
4421
- } }), f$1 = o$2({ username: (e2) => {
4422
- } }), v$1 = o$2({ validationError: (e2) => ({}) }), h = o$2({ totpSecretCode: (e2, r2) => r2.data }), g$1 = o$2({ challengeName: (e2, r2) => {
4503
+ const { assign: o$1, stop: s } = r, n = (e2) => s(e2), i$1 = o$1({ attributeToVerify: (e2) => {
4504
+ } }), u = o$1({ challengeName: (e2) => {
4505
+ } }), m = o$1({ requiredAttributes: (e2) => {
4506
+ } }), l = o$1({ remoteError: (e2) => "" }), d = o$1({ formValues: (e2) => ({}) }), c = o$1({ touched: (e2) => ({}) }), p$1 = o$1({ unverifiedContactMethods: (e2) => {
4507
+ } }), f$1 = o$1({ username: (e2) => {
4508
+ } }), v$1 = o$1({ validationError: (e2) => ({}) }), h = o$1({ totpSecretCode: (e2, r2) => r2.data }), g$1 = o$1({ challengeName: (e2, r2) => {
4423
4509
  var t2;
4424
4510
  return null === (t2 = r2.data) || void 0 === t2 ? void 0 : t2.challengeName;
4425
- } }), b = o$2({ requiredAttributes: (e2, r2) => {
4511
+ } }), b = o$1({ requiredAttributes: (e2, r2) => {
4426
4512
  var t2, a2;
4427
4513
  return null === (a2 = null === (t2 = r2.data) || void 0 === t2 ? void 0 : t2.challengeParam) || void 0 === a2 ? void 0 : a2.requiredAttributes;
4428
- } }), V = o$2({ redirectIntent: (e2) => "confirmPasswordReset" }), j$1 = o$2({ redirectIntent: (e2) => "confirmSignUp" }), y$1 = o$2({ authAttributes: (e2, r2) => {
4514
+ } }), V = o$1({ redirectIntent: (e2) => "confirmPasswordReset" }), j$1 = o$1({ redirectIntent: (e2) => "confirmSignUp" }), y$1 = o$1({ authAttributes: (e2, r2) => {
4429
4515
  var t2, a2;
4430
4516
  const [o2] = e2.loginMechanisms;
4431
4517
  return { username: null !== (t2 = e2.formValues[o2]) && void 0 !== t2 ? t2 : e2.formValues.username, password: null === (a2 = e2.formValues) || void 0 === a2 ? void 0 : a2.password };
4432
- } }), O$1 = o$2({ validationError: (e2, r2) => r2.data }), _$1 = o$2({ remoteError: (e2, r2) => {
4518
+ } }), O$1 = o$1({ validationError: (e2, r2) => r2.data }), _$1 = o$1({ remoteError: (e2, r2) => {
4433
4519
  var t2;
4434
4520
  return "NoUserPoolError" === r2.data.name ? "Configuration error (see console) \u2013 please contact the administrator" : (null === (t2 = r2.data) || void 0 === t2 ? void 0 : t2.message) || r2.data;
4435
- } }), w = o$2({ unverifiedContactMethods: (e2, r2) => r2.data.unverified }), A = o$2({ user: (e2, r2) => r2.data.user || r2.data }), C = o$2({ username: (e2, r2) => {
4521
+ } }), w = o$1({ unverifiedContactMethods: (e2, r2) => r2.data.unverified }), A = o$1({ user: (e2, r2) => r2.data.user || r2.data }), C = o$1({ username: (e2, r2) => {
4436
4522
  let { formValues: { username: t2, country_code: a2 } } = e2;
4437
4523
  return a2 && (t2 = `${a2}${t2}`), t2;
4438
- } }), E = o$2({ codeDeliveryDetails: (e2, r2) => r2.data.codeDeliveryDetails }), N = o$2({ authAttributes: (e2, r2) => ({ username: e2.formValues.username }) }), $ = o$2({ formValues: (e2, r2) => {
4524
+ } }), E = o$1({ codeDeliveryDetails: (e2, r2) => r2.data.codeDeliveryDetails }), N = o$1({ authAttributes: (e2, r2) => ({ username: e2.formValues.username }) }), $ = o$1({ formValues: (e2, r2) => {
4439
4525
  const { name: t2, value: a2 } = r2.data;
4440
4526
  return Object.assign(Object.assign({}, e2.formValues), { [t2]: a2 });
4441
- } }), D = o$2({ formValues: (e2, r2) => {
4527
+ } }), D = o$1({ formValues: (e2, r2) => {
4442
4528
  const t2 = Object.assign(Object.assign({}, e2.formValues), r2.data);
4443
- return p$2(t2, "password");
4444
- } }), M = o$2({ touched: (e2, r2) => {
4529
+ return f$2(t2, "password");
4530
+ } }), M = o$1({ touched: (e2, r2) => {
4445
4531
  const { name: t2 } = r2.data;
4446
4532
  return Object.assign(Object.assign({}, e2.touched), { [`${t2}`]: true });
4447
4533
  } }), P = (t2) => __awaiter(void 0, void 0, void 0, function* () {
4448
4534
  const { username: e2 } = t2;
4449
4535
  return yield Auth.forgotPassword(e2);
4450
- }), q = o$2({ formValues: (e2, r2) => {
4536
+ }), q = o$1({ formValues: (e2, r2) => {
4451
4537
  var t2;
4452
4538
  const [a2 = "username"] = e2.loginMechanisms;
4453
4539
  if (!e2.formValues.phone_number && "phone_number" !== a2)
@@ -5474,36 +5560,9 @@ var merge = createAssigner(function(object, source, srcIndex) {
5474
5560
  baseMerge(object, source, srcIndex);
5475
5561
  });
5476
5562
  var merge_1 = merge;
5477
- function r(t2) {
5478
- return null != t2 && !Array.isArray(t2) && "object" == typeof t2;
5479
- }
5480
- function n(t2) {
5481
- return "string" == typeof t2 || "object" == typeof t2 && "[object String]" === Object.prototype.toString.call(t2);
5482
- }
5483
- function e$1(t2) {
5484
- return r(t2) && "[object Map]" === Object.prototype.toString.call(t2);
5485
- }
5486
- function o$1(t2) {
5487
- return r(t2) && "[object Set]" === Object.prototype.toString.call(t2);
5488
- }
5489
- function i$1(t2) {
5490
- if (null == t2)
5491
- return true;
5492
- if (r(t2) && (e$1(t2) || o$1(t2)))
5493
- return !t2.size;
5494
- if (r(t2) && (n(t2) || Array.isArray(t2)))
5495
- return !t2.length;
5496
- for (const r2 in t2)
5497
- if (s(t2, r2))
5498
- return false;
5499
- return true;
5500
- }
5501
- function s(t2, r2) {
5502
- return null != t2 && Object.prototype.hasOwnProperty.call(t2, r2);
5503
- }
5504
5563
  const e = (e2, m2, s2, t2) => __awaiter(void 0, void 0, void 0, function* () {
5505
5564
  const o2 = yield Promise.all(t2.map((o3) => o3(e2, m2, s2))), l2 = merge_1({}, ...o2);
5506
- return i$1(l2) ? Promise.resolve() : Promise.reject(l2);
5565
+ return i$3(l2) ? Promise.resolve() : Promise.reject(l2);
5507
5566
  });
5508
5567
  const o = { getAmplifyConfig() {
5509
5568
  return __awaiter(this, void 0, void 0, function* () {
@@ -5575,9 +5634,9 @@ const o = { getAmplifyConfig() {
5575
5634
  } };
5576
5635
  const _ = ["SMS_MFA", "SOFTWARE_TOKEN_MFA"], F = (e2) => get_1(e2, "data.challengeName"), O = (e2, t2) => e2 === t2, j = (e2) => _.includes(e2);
5577
5636
  function k({ services: n2 }) {
5578
- return createMachine({ initial: "init", id: "signInActor", predictableActionArguments: true, states: { init: { always: [{ target: "autoSignIn.submit", cond: "shouldAutoSubmit" }, { target: "autoSignIn", cond: "shouldAutoSignIn" }, { target: "signIn" }] }, signIn: { initial: "edit", exit: ["clearFormValues", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, CHANGE: { actions: "handleInput" }, FEDERATED_SIGN_IN: "federatedSignIn" } }, federatedSignIn: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "federatedSignIn", onError: { actions: "setRemoteError" } } }, submit: { tags: ["pending"], entry: ["parsePhoneNumber", "clearError", "sendUpdate"], invoke: { src: "signIn", onDone: [{ cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldForceChangePassword", actions: ["setUser", "setChallengeName", "setRequiredAttributes"], target: "#signInActor.forceNewPassword" }, { actions: "setUser", target: "verifying" }], onError: [{ cond: "shouldRedirectToConfirmSignUp", actions: ["setCredentials", "setConfirmSignUpIntent"], target: "rejected" }, { cond: "shouldRedirectToConfirmResetPassword", actions: ["setUsernameAuthAttributes", "setConfirmResetPasswordIntent"], target: "rejected" }, { actions: "setRemoteError", target: "edit" }] } }, verifying: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "checkVerifiedContact", onDone: [{ cond: "shouldRequestVerification", target: "#signInActor.verifyUser", actions: "setUnverifiedContactMethods" }, { target: "resolved" }], onError: { actions: "setRemoteError", target: "edit" } } }, resolved: { always: "#signInActor.resolved" }, rejected: { always: "#signInActor.rejected" } } }, autoSignIn: { initial: "pending", states: { pending: { tags: ["pending"], entry: ["clearError", "sendUpdate"], on: { AUTO_SIGN_IN: [{ cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldForceChangePassword", actions: ["setUser", "setChallengeName", "setRequiredAttributes"], target: "#signInActor.forceNewPassword" }, { actions: "setUser", target: "#signInActor.resolved" }], AUTO_SIGN_IN_FAILURE: { actions: "setRemoteError", target: "pending" } } }, submit: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "signIn", onDone: [{ cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldForceChangePassword", actions: ["setUser", "setChallengeName", "setRequiredAttributes"], target: "#signInActor.forceNewPassword" }, { actions: "setUser", target: "#signInActor.resolved" }], onError: { actions: "setRemoteError", target: "#signInActor.signIn" } } }, resolved: { always: "#signInActor.resolved" }, rejected: { always: "#signInActor.rejected" } } }, confirmSignIn: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "confirmSignIn", onDone: { target: "#signInActor.resolved", actions: ["setUser", "clearChallengeName", "clearRequiredAttributes"] }, onError: { target: "edit", actions: "setRemoteError" } } } } }, forceNewPassword: { type: "parallel", exit: ["clearFormValues", "clearError", "clearTouched"], states: { validation: { initial: "pending", states: { pending: { invoke: { src: "validateFields", onDone: { target: "valid", actions: "clearValidationError" }, onError: { target: "invalid", actions: "setFieldErrors" } } }, valid: { entry: "sendUpdate" }, invalid: { entry: "sendUpdate" } }, on: { SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput", target: ".pending" }, BLUR: { actions: "handleBlur", target: ".pending" } } }, submit: { initial: "idle", entry: "clearError", states: { idle: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "validate" } } }, validate: { entry: "sendUpdate", invoke: { src: "validateFields", onDone: { target: "pending", actions: "clearValidationError" }, onError: { target: "idle", actions: "setFieldErrors" } } }, pending: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "forceNewPassword", onDone: [{ cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { target: "resolved", actions: ["setUser", "setCredentials"] }], onError: { target: "idle", actions: "setRemoteError" } } }, resolved: { type: "final", always: "#signInActor.resolved" } } } } }, setupTOTP: { initial: "getTotpSecretCode", exit: ["clearFormValues", "clearError", "clearTouched"], states: { getTotpSecretCode: { invoke: { src: "getTotpSecretCode", onDone: { target: "edit", actions: "setTotpSecretCode" }, onError: { target: "edit", actions: "setRemoteError" } } }, edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "verifyTotpToken", onDone: { actions: ["clearChallengeName", "clearRequiredAttributes"], target: "#signInActor.resolved" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, verifyUser: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SKIP: "#signInActor.resolved", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: "clearError", invoke: { src: "verifyUser", onDone: { target: "#signInActor.confirmVerifyUser" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, confirmVerifyUser: { initial: "edit", exit: ["clearFormValues", "clearError", "clearUnverifiedContactMethods", "clearAttributeToVerify", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SKIP: "#signInActor.resolved", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: "clearError", invoke: { src: "confirmVerifyUser", onDone: { target: "#signInActor.resolved" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, resolved: { type: "final", data: (e2) => ({ user: e2.user }) }, rejected: { type: "final", data: (e2, t2) => ({ intent: e2.redirectIntent, authAttributes: e2.authAttributes }) } } }, { actions: { clearAttributeToVerify: i$2, clearChallengeName: u, clearRequiredAttributes: m, clearError: l, clearFormValues: d, clearTouched: c, clearUnverifiedContactMethods: p$1, clearValidationError: v$1, handleInput: $, handleSubmit: D, handleBlur: M, parsePhoneNumber: q, setChallengeName: g$1, setConfirmResetPasswordIntent: V, setConfirmSignUpIntent: j$1, setRequiredAttributes: b, setCredentials: y$1, setFieldErrors: O$1, setRemoteError: _$1, setTotpSecretCode: h, setUnverifiedContactMethods: w, setUser: A, setUsernameAuthAttributes: N, sendUpdate: sendUpdate() }, guards: { shouldAutoSignIn: (e2) => "autoSignIn" === (null == e2 ? void 0 : e2.intent), shouldAutoSubmit: (e2) => "autoSignInSubmit" === (null == e2 ? void 0 : e2.intent), shouldConfirmSignIn: (e2, t2) => j(F(t2)), shouldForceChangePassword: (e2, t2) => O(F(t2), "NEW_PASSWORD_REQUIRED"), shouldRedirectToConfirmResetPassword: (e2, t2) => "PasswordResetRequiredException" === t2.data.code, shouldRedirectToConfirmSignUp: (e2, t2) => "UserNotConfirmedException" === t2.data.code, shouldRequestVerification: (e2, t2) => {
5637
+ return createMachine({ initial: "init", id: "signInActor", predictableActionArguments: true, states: { init: { always: [{ target: "autoSignIn.submit", cond: "shouldAutoSubmit" }, { target: "autoSignIn", cond: "shouldAutoSignIn" }, { target: "signIn" }] }, signIn: { initial: "edit", exit: ["clearFormValues", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, CHANGE: { actions: "handleInput" }, FEDERATED_SIGN_IN: "federatedSignIn" } }, federatedSignIn: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "federatedSignIn", onError: { actions: "setRemoteError" } } }, submit: { tags: ["pending"], entry: ["parsePhoneNumber", "clearError", "sendUpdate"], invoke: { src: "signIn", onDone: [{ cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldForceChangePassword", actions: ["setUser", "setChallengeName", "setRequiredAttributes"], target: "#signInActor.forceNewPassword" }, { actions: "setUser", target: "verifying" }], onError: [{ cond: "shouldRedirectToConfirmSignUp", actions: ["setCredentials", "setConfirmSignUpIntent"], target: "rejected" }, { cond: "shouldRedirectToConfirmResetPassword", actions: ["setUsernameAuthAttributes", "setConfirmResetPasswordIntent"], target: "rejected" }, { actions: "setRemoteError", target: "edit" }] } }, verifying: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "checkVerifiedContact", onDone: [{ cond: "shouldRequestVerification", target: "#signInActor.verifyUser", actions: "setUnverifiedContactMethods" }, { target: "resolved" }], onError: { actions: "setRemoteError", target: "edit" } } }, resolved: { always: "#signInActor.resolved" }, rejected: { always: "#signInActor.rejected" } } }, autoSignIn: { initial: "pending", states: { pending: { tags: ["pending"], entry: ["clearError", "sendUpdate"], on: { AUTO_SIGN_IN: [{ cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldForceChangePassword", actions: ["setUser", "setChallengeName", "setRequiredAttributes"], target: "#signInActor.forceNewPassword" }, { actions: "setUser", target: "#signInActor.resolved" }], AUTO_SIGN_IN_FAILURE: { actions: "setRemoteError", target: "pending" } } }, submit: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "signIn", onDone: [{ cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldForceChangePassword", actions: ["setUser", "setChallengeName", "setRequiredAttributes"], target: "#signInActor.forceNewPassword" }, { actions: "setUser", target: "#signInActor.resolved" }], onError: { actions: "setRemoteError", target: "#signInActor.signIn" } } }, resolved: { always: "#signInActor.resolved" }, rejected: { always: "#signInActor.rejected" } } }, confirmSignIn: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "confirmSignIn", onDone: { target: "#signInActor.resolved", actions: ["setUser", "clearChallengeName", "clearRequiredAttributes"] }, onError: { target: "edit", actions: "setRemoteError" } } } } }, forceNewPassword: { type: "parallel", exit: ["clearFormValues", "clearError", "clearTouched"], states: { validation: { initial: "pending", states: { pending: { invoke: { src: "validateFields", onDone: { target: "valid", actions: "clearValidationError" }, onError: { target: "invalid", actions: "setFieldErrors" } } }, valid: { entry: "sendUpdate" }, invalid: { entry: "sendUpdate" } }, on: { SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput", target: ".pending" }, BLUR: { actions: "handleBlur", target: ".pending" } } }, submit: { initial: "idle", entry: "clearError", states: { idle: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "validate" } } }, validate: { entry: "sendUpdate", invoke: { src: "validateFields", onDone: { target: "pending", actions: "clearValidationError" }, onError: { target: "idle", actions: "setFieldErrors" } } }, pending: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "forceNewPassword", onDone: [{ cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { target: "resolved", actions: ["setUser", "setCredentials"] }], onError: { target: "idle", actions: "setRemoteError" } } }, resolved: { type: "final", always: "#signInActor.resolved" } } } } }, setupTOTP: { initial: "getTotpSecretCode", exit: ["clearFormValues", "clearError", "clearTouched"], states: { getTotpSecretCode: { invoke: { src: "getTotpSecretCode", onDone: { target: "edit", actions: "setTotpSecretCode" }, onError: { target: "edit", actions: "setRemoteError" } } }, edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "verifyTotpToken", onDone: { actions: ["clearChallengeName", "clearRequiredAttributes"], target: "#signInActor.resolved" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, verifyUser: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SKIP: "#signInActor.resolved", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: "clearError", invoke: { src: "verifyUser", onDone: { target: "#signInActor.confirmVerifyUser" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, confirmVerifyUser: { initial: "edit", exit: ["clearFormValues", "clearError", "clearUnverifiedContactMethods", "clearAttributeToVerify", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SKIP: "#signInActor.resolved", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: "clearError", invoke: { src: "confirmVerifyUser", onDone: { target: "#signInActor.resolved" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, resolved: { type: "final", data: (e2) => ({ user: e2.user }) }, rejected: { type: "final", data: (e2, t2) => ({ intent: e2.redirectIntent, authAttributes: e2.authAttributes }) } } }, { actions: { clearAttributeToVerify: i$1, clearChallengeName: u, clearRequiredAttributes: m, clearError: l, clearFormValues: d, clearTouched: c, clearUnverifiedContactMethods: p$1, clearValidationError: v$1, handleInput: $, handleSubmit: D, handleBlur: M, parsePhoneNumber: q, setChallengeName: g$1, setConfirmResetPasswordIntent: V, setConfirmSignUpIntent: j$1, setRequiredAttributes: b, setCredentials: y$1, setFieldErrors: O$1, setRemoteError: _$1, setTotpSecretCode: h, setUnverifiedContactMethods: w, setUser: A, setUsernameAuthAttributes: N, sendUpdate: sendUpdate() }, guards: { shouldAutoSignIn: (e2) => "autoSignIn" === (null == e2 ? void 0 : e2.intent), shouldAutoSubmit: (e2) => "autoSignInSubmit" === (null == e2 ? void 0 : e2.intent), shouldConfirmSignIn: (e2, t2) => j(F(t2)), shouldForceChangePassword: (e2, t2) => O(F(t2), "NEW_PASSWORD_REQUIRED"), shouldRedirectToConfirmResetPassword: (e2, t2) => "PasswordResetRequiredException" === t2.data.code, shouldRedirectToConfirmSignUp: (e2, t2) => "UserNotConfirmedException" === t2.data.code, shouldRequestVerification: (e2, t2) => {
5579
5638
  const { unverified: r2, verified: n3 } = t2.data;
5580
- return i$1(n3) && !i$1(r2);
5639
+ return i$3(n3) && !i$3(r2);
5581
5640
  }, shouldSetupTOTP: (e2, t2) => O(F(t2), "MFA_SETUP") }, services: { signIn(t2) {
5582
5641
  return __awaiter(this, void 0, void 0, function* () {
5583
5642
  const { authAttributes: e2 = {}, formValues: r2 = {} } = t2, o2 = Object.assign(Object.assign({}, e2), r2), { username: i2, password: s2 } = o2;
@@ -6268,7 +6327,7 @@ function y({ services: y2 }) {
6268
6327
  });
6269
6328
  } } });
6270
6329
  }
6271
- const { choose: g } = r$1;
6330
+ const { choose: g } = r;
6272
6331
  function v() {
6273
6332
  return createMachine({ id: "authenticator", initial: "idle", context: { user: void 0, config: {}, services: o, actorRef: void 0, hasSetup: false }, predictableActionArguments: true, states: { idle: { invoke: { src: "getCurrentUser", onDone: { actions: "setUser", target: "authenticated" }, onError: { target: "setup" } } }, setup: { initial: "waitConfig", states: { waitConfig: { on: { INIT: { actions: ["configure", "setHasSetup"], target: "applyConfig" } } }, applyConfig: { invoke: { src: "getAmplifyConfig", onDone: { actions: "applyAmplifyConfig", target: "goToInitialState" } } }, goToInitialState: { always: [{ target: "#authenticator.signUp", cond: "isInitialStateSignUp" }, { target: "#authenticator.resetPassword", cond: "isInitialStateResetPassword" }, { target: "#authenticator.signIn" }] } } }, signIn: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignInActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: "stopSignInActor" } }, on: { SIGN_UP: "signUp", RESET_PASSWORD: "resetPassword", "done.invoke.signInActor": [{ target: "signUp", actions: "setActorDoneData", cond: "shouldRedirectToSignUp" }, { target: "resetPassword", actions: "setActorDoneData", cond: "shouldRedirectToResetPassword" }, { target: "authenticated", actions: "setActorDoneData" }] } }, signUp: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignUpActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: "stopSignUpActor" }, autoSignIn: { invoke: { src: "getCurrentUser", onDone: "#authenticator.authenticated", onError: "#authenticator.setup.goToInitialState" } } }, on: { SIGN_IN: "signIn", "done.invoke.signUpActor": { target: "#authenticator.signIn", actions: "setActorDoneData", cond: "shouldAutoSignIn" } } }, resetPassword: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnResetPasswordActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: "stopResetPasswordActor" } }, on: { SIGN_IN: "signIn", "done.invoke.resetPasswordActor": { target: "signIn", actions: "setActorDoneData" } } }, signOut: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignOutActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: ["stopSignOutActor", "clearUser"] } }, on: { "done.invoke.signOutActor": [{ target: "setup", cond: "shouldSetup" }, { target: "setup.goToInitialState" }] } }, authenticated: { initial: "idle", states: { idle: { on: { TOKEN_REFRESH: "refreshUser" } }, refreshUser: { invoke: { src: "getCurrentUser", onDone: { actions: "setUser", target: "idle" }, onError: { target: "#authenticator.signOut" } } } }, on: { SIGN_OUT: "signOut" } } }, on: { CHANGE: { actions: "forwardToActor" }, BLUR: { actions: "forwardToActor" }, SUBMIT: { actions: "forwardToActor" }, FEDERATED_SIGN_IN: { actions: "forwardToActor" }, AUTO_SIGN_IN: { actions: "forwardToActor" }, RESEND: { actions: "forwardToActor" }, SIGN_IN: { actions: "forwardToActor" }, SKIP: { actions: "forwardToActor" } } }, { actions: { forwardToActor: g([{ cond: "hasActor", actions: forwardTo((t2) => t2.actorRef) }]), setUser: assign({ user: (t2, o2) => o2.data }), setActorDoneData: assign({ actorDoneData: (t2, o2) => {
6274
6333
  var i2, n2;
@@ -6297,7 +6356,7 @@ function v() {
6297
6356
  } }), spawnSignOutActor: assign({ actorRef: (t2) => {
6298
6357
  const o2 = i.withContext({ user: t2.user });
6299
6358
  return spawn(o2, { name: "signOutActor" });
6300
- } }), stopSignInActor: n$1("signInActor"), stopSignUpActor: n$1("signUpActor"), stopResetPasswordActor: n$1("resetPasswordActor"), stopSignOutActor: n$1("signOutActor"), configure: assign((o$12, i2) => {
6359
+ } }), stopSignInActor: n("signInActor"), stopSignUpActor: n("signUpActor"), stopResetPasswordActor: n("resetPasswordActor"), stopSignOutActor: n("signOutActor"), configure: assign((o$12, i2) => {
6301
6360
  const n2 = i2.data, { services: e2 } = n2, r2 = __rest$2(n2, ["services"]);
6302
6361
  return { services: Object.assign(Object.assign({}, o), e2), config: r2 };
6303
6362
  }), setHasSetup: assign({ hasSetup: true }) }, guards: { isInitialStateSignUp: (t2) => "signUp" === t2.config.initialState, isInitialStateResetPassword: (t2) => "resetPassword" === t2.config.initialState, shouldRedirectToSignUp: (t2, o2) => {
@@ -6348,7 +6407,7 @@ const _sfc_main$w = {
6348
6407
  __name: "base-alert",
6349
6408
  setup(__props) {
6350
6409
  const show = ref(true);
6351
- const dismissAriaLabel = b$2("Dismiss alert");
6410
+ const dismissAriaLabel = b$3("Dismiss alert");
6352
6411
  function close() {
6353
6412
  show.value = false;
6354
6413
  }
@@ -6607,7 +6666,7 @@ function createValues() {
6607
6666
  if (!service.value)
6608
6667
  return;
6609
6668
  const { state, send: send2 } = useAuth();
6610
- const facadeValues = s$4({ send: send2, state: state.value });
6669
+ const facadeValues = s$3({ send: send2, state: state.value });
6611
6670
  for (const key of Object.keys(facade)) {
6612
6671
  useAuthenticatorValue[key] = facadeValues[key];
6613
6672
  }
@@ -6729,7 +6788,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
6729
6788
  const includeFacebook = socialProviders == null ? void 0 : socialProviders.includes("facebook");
6730
6789
  const includeGoogle = socialProviders == null ? void 0 : socialProviders.includes("google");
6731
6790
  const shouldShowFederatedSignIn = includeFacebook || includeGoogle || includeAmazon || includeApple;
6732
- const { getSignInWithFederationText, getOrText } = n$2;
6791
+ const { getSignInWithFederationText, getOrText } = n$1;
6733
6792
  const fp = computed(() => o$9);
6734
6793
  const signInWithAmazon = computed(() => getSignInWithFederationText(route, "amazon"));
6735
6794
  const signInWithApple = computed(() => getSignInWithFederationText(route, "apple"));
@@ -6868,8 +6927,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
6868
6927
  setup(__props) {
6869
6928
  var _a2;
6870
6929
  const props = __props;
6871
- const showPassword = b$2("Show password");
6872
- const hidePassword = b$2("Hide password");
6930
+ const showPassword = b$3("Show password");
6931
+ const hidePassword = b$3("Hide password");
6873
6932
  const showHideType = ref("password");
6874
6933
  const showHideLabel = ref(showPassword);
6875
6934
  const random = Math.floor(Math.random() * 999999);
@@ -6879,8 +6938,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
6879
6938
  showHideLabel.value = showHideLabel.value === showPassword ? hidePassword : showPassword;
6880
6939
  showHideType.value = showHideType.value === "password" ? "text" : "password";
6881
6940
  }
6882
- const placeholderValue = b$2((_a2 = placeholder == null ? void 0 : placeholder.value) != null ? _a2 : label.value);
6883
- const labelValue = b$2(label.value);
6941
+ const placeholderValue = b$3((_a2 = placeholder == null ? void 0 : placeholder.value) != null ? _a2 : label.value);
6942
+ const labelValue = b$3(label.value);
6884
6943
  return (_ctx, _cache) => {
6885
6944
  const _component_base_label = __unplugin_components_0;
6886
6945
  const _component_base_input = _sfc_main$p;
@@ -7139,7 +7198,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
7139
7198
  const { type } = formField.value;
7140
7199
  const isPasswordField = type === "password";
7141
7200
  const errorId = nanoid(12);
7142
- const errors = computed(() => s$3(validationErrors.value[name.value]));
7201
+ const errors = computed(() => s$2(validationErrors.value[name.value]));
7143
7202
  const hasError = computed(() => {
7144
7203
  var _a2;
7145
7204
  return ((_a2 = errors.value) == null ? void 0 : _a2.length) > 0;
@@ -7181,7 +7240,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
7181
7240
  role: "alert",
7182
7241
  "data-variation": "error",
7183
7242
  class: "amplify-text amplify-text--error"
7184
- }, toDisplayString(unref(b$2)(error2)), 1);
7243
+ }, toDisplayString(unref(b$3)(error2)), 1);
7185
7244
  }), 128))
7186
7245
  ], 8, _hoisted_1$4)) : createCommentVNode("", true)
7187
7246
  ], 64);
@@ -7225,7 +7284,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
7225
7284
  const useAuthShared = createSharedComposable(useAuthenticator);
7226
7285
  const props = useAuthShared();
7227
7286
  const attrs = useAttrs();
7228
- const { getForgotPasswordText, getSignInText, getSigningInText } = n$2;
7287
+ const { getForgotPasswordText, getSignInText, getSigningInText } = n$1;
7229
7288
  const forgotYourPasswordLink = computed(() => getForgotPasswordText());
7230
7289
  const signInButtonText = computed(() => getSignInText());
7231
7290
  const signIngButtonText = computed(() => getSigningInText());
@@ -7299,7 +7358,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
7299
7358
  }, 8, ["disabled"]),
7300
7359
  unref(actorState).context.remoteError ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
7301
7360
  default: withCtx(() => [
7302
- createTextVNode(toDisplayString(unref(b$2)(unref(actorState).context.remoteError)), 1)
7361
+ createTextVNode(toDisplayString(unref(b$3)(unref(actorState).context.remoteError)), 1)
7303
7362
  ]),
7304
7363
  _: 1
7305
7364
  })) : createCommentVNode("", true),
@@ -7368,7 +7427,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
7368
7427
  const props = useAuthShared();
7369
7428
  const { hasValidationErrors, isPending, error: error2 } = toRefs(facadeValues);
7370
7429
  const attrs = useAttrs();
7371
- const { getCreateAccountText } = n$2;
7430
+ const { getCreateAccountText } = n$1;
7372
7431
  const createAccountLabel = computed(() => getCreateAccountText());
7373
7432
  const onInput = (e2) => {
7374
7433
  let { checked, name, type, value } = e2.target;
@@ -7424,7 +7483,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
7424
7483
  }, 8, ["disabled"]),
7425
7484
  unref(error2) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
7426
7485
  default: withCtx(() => [
7427
- createTextVNode(toDisplayString(unref(b$2)(unref(error2))), 1)
7486
+ createTextVNode(toDisplayString(unref(b$3)(unref(error2))), 1)
7428
7487
  ]),
7429
7488
  _: 1
7430
7489
  })) : createCommentVNode("", true),
@@ -7559,7 +7618,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
7559
7618
  const useAuthShared = createSharedComposable(useAuthenticator);
7560
7619
  const { isPending, error: error2, codeDeliveryDetails } = toRefs(useAuthShared());
7561
7620
  const { submitForm, updateForm, resendCode } = useAuthShared();
7562
- const { getDeliveryMethodText, getDeliveryMessageText, getResendCodeText, getConfirmText } = n$2;
7621
+ const { getDeliveryMethodText, getDeliveryMessageText, getResendCodeText, getConfirmText } = n$1;
7563
7622
  const confirmSignUpHeading = computed(() => getDeliveryMethodText(codeDeliveryDetails.value));
7564
7623
  const resendCodeText = computed(() => getResendCodeText());
7565
7624
  const confirmText = computed(() => getConfirmText());
@@ -7634,7 +7693,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
7634
7693
  default: withCtx(() => [
7635
7694
  unref(error2) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
7636
7695
  default: withCtx(() => [
7637
- createTextVNode(toDisplayString(unref(b$2)(unref(error2))), 1)
7696
+ createTextVNode(toDisplayString(unref(b$3)(unref(error2))), 1)
7638
7697
  ]),
7639
7698
  _: 1
7640
7699
  })) : createCommentVNode("", true),
@@ -7694,7 +7753,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
7694
7753
  const props = useAuthShared();
7695
7754
  const actorState = computed(() => t$1(state.value));
7696
7755
  const challengeName = actorState.value.context.challengeName;
7697
- const { getBackToSignInText, getConfirmText, getChallengeText } = n$2;
7756
+ const { getBackToSignInText, getConfirmText, getChallengeText } = n$1;
7698
7757
  const confirmSignInHeading = computed(() => getChallengeText(challengeName));
7699
7758
  const backSignInText = computed(() => getBackToSignInText());
7700
7759
  const confirmText = computed(() => getConfirmText());
@@ -7771,7 +7830,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
7771
7830
  default: withCtx(() => {
7772
7831
  var _a3, _b2;
7773
7832
  return [
7774
- createTextVNode(toDisplayString(unref(b$2)((_b2 = (_a3 = unref(actorState)) == null ? void 0 : _a3.context) == null ? void 0 : _b2.remoteError)), 1)
7833
+ createTextVNode(toDisplayString(unref(b$3)((_b2 = (_a3 = unref(actorState)) == null ? void 0 : _a3.context) == null ? void 0 : _b2.remoteError)), 1)
7775
7834
  ];
7776
7835
  }),
7777
7836
  _: 1
@@ -9853,12 +9912,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
9853
9912
  const { totpSecretCode, user } = actorState.value.context;
9854
9913
  const formOverrides = (_b = (_a2 = context == null ? void 0 : context.config) == null ? void 0 : _a2.formFields) == null ? void 0 : _b.setupTOTP;
9855
9914
  const { totpIssuer = "AWSCognito", totpUsername = user == null ? void 0 : user.username } = (_c = formOverrides == null ? void 0 : formOverrides["QR"]) != null ? _c : {};
9856
- const totpCodeURL = typeof totpSecretCode === "string" && typeof totpUsername === "string" ? m$2(totpIssuer, totpUsername, totpSecretCode) : null;
9915
+ const totpCodeURL = typeof totpSecretCode === "string" && typeof totpUsername === "string" ? p$2(totpIssuer, totpUsername, totpSecretCode) : null;
9857
9916
  const qrCode = reactive({
9858
9917
  qrCodeImageSource: "",
9859
9918
  isLoading: true
9860
9919
  });
9861
- const { getCopyText, getCopiedText, getBackToSignInText, getConfirmText } = n$2;
9920
+ const { getCopyText, getCopiedText, getBackToSignInText, getConfirmText } = n$1;
9862
9921
  const copyTextLabel = ref(getCopyText());
9863
9922
  function copyText() {
9864
9923
  if (typeof totpSecretCode === "string") {
@@ -9976,7 +10035,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
9976
10035
  return [
9977
10036
  ((_a3 = unref(actorState).context) == null ? void 0 : _a3.remoteError) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
9978
10037
  default: withCtx(() => [
9979
- createTextVNode(toDisplayString(unref(b$2)(unref(actorState).context.remoteError)), 1)
10038
+ createTextVNode(toDisplayString(unref(b$3)(unref(actorState).context.remoteError)), 1)
9980
10039
  ]),
9981
10040
  _: 1
9982
10041
  })) : createCommentVNode("", true),
@@ -10048,7 +10107,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
10048
10107
  const useAuthShared = createSharedComposable(useAuthenticator);
10049
10108
  const props = useAuthShared();
10050
10109
  const actorState = computed(() => t$1(state.value));
10051
- const { getChangePasswordText, getChangingText, getBackToSignInText } = n$2;
10110
+ const { getChangePasswordText, getChangingText, getBackToSignInText } = n$1;
10052
10111
  const changePasswordLabel = computed(() => getChangePasswordText());
10053
10112
  const changingPasswordLabel = computed(() => getChangingText());
10054
10113
  const backSignInText = computed(() => getBackToSignInText());
@@ -10131,7 +10190,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
10131
10190
  "data-ui-error": ""
10132
10191
  }, {
10133
10192
  default: withCtx(() => [
10134
- createTextVNode(toDisplayString(unref(b$2)(unref(actorState).context.remoteError)), 1)
10193
+ createTextVNode(toDisplayString(unref(b$3)(unref(actorState).context.remoteError)), 1)
10135
10194
  ]),
10136
10195
  _: 1
10137
10196
  })) : createCommentVNode("", true),
@@ -10190,7 +10249,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
10190
10249
  const useAuthShared = createSharedComposable(useAuthenticator);
10191
10250
  const { send: send2, submitForm } = useAuthShared();
10192
10251
  const { error: error2, isPending } = toRefs(useAuthShared());
10193
- const { getBackToSignInText, getResetYourPasswordText, getSendCodeText } = n$2;
10252
+ const { getBackToSignInText, getResetYourPasswordText, getSendCodeText } = n$1;
10194
10253
  const backSignInText = computed(() => getBackToSignInText());
10195
10254
  const resetPasswordHeading = computed(() => getResetYourPasswordText());
10196
10255
  const sendCodeText = computed(() => getSendCodeText());
@@ -10261,7 +10320,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
10261
10320
  default: withCtx(() => [
10262
10321
  unref(error2) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
10263
10322
  default: withCtx(() => [
10264
- createTextVNode(toDisplayString(unref(b$2)(unref(error2))), 1)
10323
+ createTextVNode(toDisplayString(unref(b$3)(unref(error2))), 1)
10265
10324
  ]),
10266
10325
  _: 1
10267
10326
  })) : createCommentVNode("", true),
@@ -10317,7 +10376,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
10317
10376
  const props = useAuthShared();
10318
10377
  const attrs = useAttrs();
10319
10378
  const actorState = computed(() => t$1(state.value));
10320
- const { getResendCodeText, getResetYourPasswordText, getSubmitText } = n$2;
10379
+ const { getResendCodeText, getResetYourPasswordText, getSubmitText } = n$1;
10321
10380
  const resendCodeText = computed(() => getResendCodeText());
10322
10381
  const confirmResetPasswordHeading = computed(() => getResetYourPasswordText());
10323
10382
  const confirmResetPasswordText = computed(() => getSubmitText());
@@ -10395,7 +10454,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
10395
10454
  default: withCtx(() => {
10396
10455
  var _a3, _b2;
10397
10456
  return [
10398
- createTextVNode(toDisplayString(unref(b$2)((_b2 = (_a3 = unref(actorState)) == null ? void 0 : _a3.context) == null ? void 0 : _b2.remoteError)), 1)
10457
+ createTextVNode(toDisplayString(unref(b$3)((_b2 = (_a3 = unref(actorState)) == null ? void 0 : _a3.context) == null ? void 0 : _b2.remoteError)), 1)
10399
10458
  ];
10400
10459
  }),
10401
10460
  _: 1
@@ -10456,7 +10515,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
10456
10515
  const { state, send: send2 } = useAuth();
10457
10516
  const actorState = computed(() => t$1(state.value));
10458
10517
  const { unverifiedContactMethods } = actorState.value.context;
10459
- const { getAccountRecoveryInfoText, getSkipText, getVerifyText, getVerifyContactText } = n$2;
10518
+ const { getAccountRecoveryInfoText, getSkipText, getVerifyText, getVerifyContactText } = n$1;
10460
10519
  const verifyHeading = computed(() => getAccountRecoveryInfoText());
10461
10520
  const skipText = computed(() => getSkipText());
10462
10521
  const verifyText = computed(() => getVerifyText());
@@ -10559,7 +10618,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
10559
10618
  }),
10560
10619
  createVNode(_component_base_text, { class: "amplify-text amplify-radio__label" }, {
10561
10620
  default: withCtx(() => [
10562
- createTextVNode(toDisplayString(unref(r$3)[key].label), 1)
10621
+ createTextVNode(toDisplayString(unref(r$4)[key].label), 1)
10563
10622
  ]),
10564
10623
  _: 2
10565
10624
  }, 1024)
@@ -10581,7 +10640,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
10581
10640
  default: withCtx(() => {
10582
10641
  var _a3;
10583
10642
  return [
10584
- createTextVNode(toDisplayString(unref(b$2)((_a3 = unref(actorState)) == null ? void 0 : _a3.context.remoteError)), 1)
10643
+ createTextVNode(toDisplayString(unref(b$3)((_a3 = unref(actorState)) == null ? void 0 : _a3.context.remoteError)), 1)
10585
10644
  ];
10586
10645
  }),
10587
10646
  _: 1
@@ -10642,7 +10701,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
10642
10701
  const attrs = useAttrs();
10643
10702
  const { state, send: send2 } = useAuth();
10644
10703
  const actorState = computed(() => t$1(state.value));
10645
- const { getAccountRecoveryInfoText, getSkipText, getSubmitText } = n$2;
10704
+ const { getAccountRecoveryInfoText, getSkipText, getSubmitText } = n$1;
10646
10705
  const verifyHeading = computed(() => getAccountRecoveryInfoText());
10647
10706
  const skipText = computed(() => getSkipText());
10648
10707
  const submitText = computed(() => getSubmitText());
@@ -10718,7 +10777,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
10718
10777
  default: withCtx(() => {
10719
10778
  var _a3;
10720
10779
  return [
10721
- createTextVNode(toDisplayString(unref(b$2)((_a3 = unref(actorState)) == null ? void 0 : _a3.context.remoteError)), 1)
10780
+ createTextVNode(toDisplayString(unref(b$3)((_a3 = unref(actorState)) == null ? void 0 : _a3.context.remoteError)), 1)
10722
10781
  ];
10723
10782
  }),
10724
10783
  _: 1
@@ -10770,7 +10829,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
10770
10829
  };
10771
10830
  }
10772
10831
  });
10773
- const VERSION = "3.1.14";
10832
+ const VERSION = "3.1.16";
10774
10833
  const _hoisted_1$1 = ["data-variation"];
10775
10834
  const _hoisted_2$1 = { "data-amplify-container": "" };
10776
10835
  const _hoisted_3$1 = ["data-amplify-router-content"];
@@ -10830,8 +10889,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
10830
10889
  }
10831
10890
  }).unsubscribe;
10832
10891
  onMounted(() => {
10833
- unsubscribeHub = u$1(service2);
10834
- s$2({
10892
+ unsubscribeHub = d$1(service2);
10893
+ r$2({
10835
10894
  packageName: "@aws-amplify/ui-vue",
10836
10895
  version: VERSION
10837
10896
  });
@@ -10853,7 +10912,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
10853
10912
  const confirmResetPasswordComponent = ref();
10854
10913
  const verifyUserComponent = ref();
10855
10914
  const confirmVerifyUserComponent = ref();
10856
- const { getSignInTabText, getSignUpTabText } = n$2;
10915
+ const { getSignInTabText, getSignUpTabText } = n$1;
10857
10916
  const signInLabel = computed(() => getSignInTabText());
10858
10917
  const createAccountLabel = computed(() => getSignUpTabText());
10859
10918
  const onSignInSubmitI = (e2) => {
@@ -10930,7 +10989,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
10930
10989
  const user = ref(null);
10931
10990
  const signOut = ref();
10932
10991
  watch(() => state.value.context, () => {
10933
- const { user: u2, signOut: s2 } = s$4({
10992
+ const { user: u2, signOut: s2 } = s$3({
10934
10993
  send: send2,
10935
10994
  state: state.value
10936
10995
  });