@foxy.io/elements 1.31.1 → 1.32.0-beta.1
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/cdn/foxy-access-recovery-form.js +1 -1
- package/dist/cdn/foxy-address-card.js +1 -1
- package/dist/cdn/foxy-address-form.js +1 -1
- package/dist/cdn/foxy-admin-subscription-card.js +1 -1
- package/dist/cdn/foxy-admin-subscription-form.js +1 -1
- package/dist/cdn/foxy-api-browser.js +1 -1
- package/dist/cdn/foxy-applied-coupon-code-card.js +1 -1
- package/dist/cdn/foxy-applied-coupon-code-form.js +1 -1
- package/dist/cdn/foxy-applied-tax-card.js +1 -1
- package/dist/cdn/foxy-attribute-card.js +1 -1
- package/dist/cdn/foxy-attribute-form.js +1 -1
- package/dist/cdn/foxy-billing-address-card.js +1 -1
- package/dist/cdn/foxy-cancellation-form.js +1 -1
- package/dist/cdn/foxy-cart-card.js +1 -1
- package/dist/cdn/foxy-cart-form.js +1 -1
- package/dist/cdn/foxy-client-card.js +1 -1
- package/dist/cdn/foxy-client-form.js +1 -1
- package/dist/cdn/foxy-collection-page.js +1 -1
- package/dist/cdn/foxy-collection-pages.js +1 -1
- package/dist/cdn/foxy-copy-to-clipboard.js +1 -1
- package/dist/cdn/foxy-coupon-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-form.js +1 -1
- package/dist/cdn/foxy-coupon-codes-form.js +1 -1
- package/dist/cdn/foxy-coupon-detail-card.js +1 -1
- package/dist/cdn/foxy-coupon-form.js +1 -1
- package/dist/cdn/foxy-custom-field-card.js +1 -1
- package/dist/cdn/foxy-custom-field-form.js +1 -1
- package/dist/cdn/foxy-customer-api.js +1 -1
- package/dist/cdn/foxy-customer-card.js +1 -1
- package/dist/cdn/foxy-customer-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings.js +1 -1
- package/dist/cdn/foxy-customer-portal.js +1 -1
- package/dist/cdn/foxy-customer.js +1 -1
- package/dist/cdn/foxy-customers-table.js +1 -1
- package/dist/cdn/foxy-discount-builder.js +1 -1
- package/dist/cdn/foxy-discount-card.js +1 -1
- package/dist/cdn/foxy-discount-detail-card.js +1 -1
- package/dist/cdn/foxy-donation.js +1 -1
- package/dist/cdn/foxy-downloadable-card.js +1 -1
- package/dist/cdn/foxy-downloadable-form.js +1 -1
- package/dist/cdn/foxy-email-template-card.js +1 -1
- package/dist/cdn/foxy-email-template-form.js +1 -1
- package/dist/cdn/foxy-error-entry-card.js +1 -1
- package/dist/cdn/foxy-filter-attribute-card.js +1 -1
- package/dist/cdn/foxy-filter-attribute-form.js +1 -1
- package/dist/cdn/foxy-form-dialog.js +1 -1
- package/dist/cdn/foxy-generate-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-form.js +1 -1
- package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
- package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-form.js +1 -1
- package/dist/cdn/foxy-i18n-editor.js +1 -1
- package/dist/cdn/foxy-i18n.js +1 -1
- package/dist/cdn/foxy-integration-card.js +1 -1
- package/dist/cdn/foxy-integration-form.js +1 -1
- package/dist/cdn/foxy-item-card.js +1 -1
- package/dist/cdn/foxy-item-category-card.js +1 -1
- package/dist/cdn/foxy-item-category-form.js +1 -1
- package/dist/cdn/foxy-item-form.js +1 -1
- package/dist/cdn/foxy-item-option-card.js +1 -1
- package/dist/cdn/foxy-item-option-form.js +1 -1
- package/dist/cdn/foxy-items-form.js +1 -1
- package/dist/cdn/foxy-native-integration-card.js +1 -1
- package/dist/cdn/foxy-native-integration-form.js +1 -1
- package/dist/cdn/foxy-nucleon-element.js +1 -1
- package/dist/cdn/foxy-pagination.js +1 -1
- package/dist/cdn/foxy-passkey-card.js +1 -1
- package/dist/cdn/foxy-passkey-form.js +1 -1
- package/dist/cdn/foxy-payment-card-embed.js +1 -1
- package/dist/cdn/foxy-payment-card.js +1 -1
- package/dist/cdn/foxy-payment-method-card.js +1 -1
- package/dist/cdn/foxy-payments-api-fraud-protection-card.js +1 -1
- package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
- package/dist/cdn/foxy-payments-api.js +1 -1
- package/dist/cdn/foxy-query-builder.js +2 -2
- package/dist/cdn/foxy-report-form.js +2 -2
- package/dist/cdn/foxy-reports-table.js +1 -1
- package/dist/cdn/foxy-shipment-card.js +1 -1
- package/dist/cdn/foxy-shipping-container-card.js +1 -1
- package/dist/cdn/foxy-shipping-drop-type-card.js +1 -1
- package/dist/cdn/foxy-shipping-method-card.js +1 -1
- package/dist/cdn/foxy-shipping-service-card.js +1 -1
- package/dist/cdn/foxy-sign-in-form.js +1 -1
- package/dist/cdn/foxy-spinner.js +2 -2
- package/dist/cdn/foxy-store-card.js +1 -1
- package/dist/cdn/foxy-store-form.js +1 -1
- package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
- package/dist/cdn/foxy-subscription-card.js +1 -1
- package/dist/cdn/foxy-subscription-form.js +1 -1
- package/dist/cdn/foxy-subscription-settings-form.js +1 -1
- package/dist/cdn/foxy-subscriptions-table.js +1 -1
- package/dist/cdn/foxy-table.js +1 -1
- package/dist/cdn/foxy-tax-card.js +1 -1
- package/dist/cdn/foxy-tax-form.js +1 -1
- package/dist/cdn/foxy-template-config-form.js +1 -1
- package/dist/cdn/foxy-template-form.js +1 -1
- package/dist/cdn/foxy-template-set-card.js +1 -1
- package/dist/cdn/foxy-template-set-form.js +1 -1
- package/dist/cdn/foxy-transaction-card.js +1 -1
- package/dist/cdn/foxy-transaction.js +1 -1
- package/dist/cdn/foxy-transactions-table.js +7 -7
- package/dist/cdn/foxy-update-payment-method-form.js +1 -1
- package/dist/cdn/foxy-user-card.js +1 -1
- package/dist/cdn/foxy-user-form.js +1 -1
- package/dist/cdn/foxy-user-invitation-card.js +1 -0
- package/dist/cdn/foxy-user-invitation-form.js +1 -0
- package/dist/cdn/foxy-users-table.js +1 -1
- package/dist/cdn/foxy-webhook-card.js +1 -1
- package/dist/cdn/foxy-webhook-form.js +1 -1
- package/dist/cdn/foxy-webhook-log-card.js +1 -1
- package/dist/cdn/foxy-webhook-status-card.js +1 -1
- package/dist/cdn/{shared-12a7a15d.js → shared-019348d7.js} +1 -1
- package/dist/cdn/{shared-01b2cad8.js → shared-0e156ee7.js} +1 -1
- package/dist/cdn/{shared-9b2d6d62.js → shared-11694c05.js} +1 -1
- package/dist/cdn/{shared-21bc5d5e.js → shared-15100be0.js} +1 -1
- package/dist/cdn/{shared-f7a1193f.js → shared-17a61265.js} +1 -1
- package/dist/cdn/{shared-55e95bd2.js → shared-185dffc3.js} +1 -1
- package/dist/cdn/{shared-7c411b0a.js → shared-193bb806.js} +1 -1
- package/dist/cdn/{shared-f3773d62.js → shared-19df2a73.js} +1 -1
- package/dist/cdn/{shared-0700fd80.js → shared-1a30f25e.js} +1 -1
- package/dist/cdn/shared-1aff7995.js +1 -0
- package/dist/cdn/{shared-6e859df6.js → shared-239062b0.js} +1 -1
- package/dist/cdn/{shared-6918312e.js → shared-28ebee50.js} +1 -1
- package/dist/cdn/{shared-24d71d01.js → shared-2ad18636.js} +1 -1
- package/dist/cdn/{shared-3c3497d6.js → shared-2bc0d0cd.js} +1 -1
- package/dist/cdn/{shared-ac0368ec.js → shared-2e090291.js} +1 -1
- package/dist/cdn/{shared-8cd578ee.js → shared-374e6faa.js} +1 -1
- package/dist/cdn/{shared-280f868d.js → shared-40af05b3.js} +1 -1
- package/dist/cdn/{shared-c8a6496c.js → shared-482ba043.js} +5 -5
- package/dist/cdn/{shared-56bf05ef.js → shared-4903b2e3.js} +1 -1
- package/dist/cdn/shared-492da078.js +1 -0
- package/dist/cdn/{shared-90a47948.js → shared-5513e830.js} +1 -1
- package/dist/cdn/{shared-8f3398dc.js → shared-562d466d.js} +1 -1
- package/dist/cdn/shared-56ba2d28.js +1 -0
- package/dist/cdn/{shared-08e0a194.js → shared-5c35d93a.js} +1 -1
- package/dist/cdn/{shared-56a559fd.js → shared-5c846a3b.js} +1 -1
- package/dist/cdn/shared-5e09e162.js +1 -0
- package/dist/cdn/{shared-453d8f75.js → shared-60209b2d.js} +1 -1
- package/dist/cdn/{shared-6ac0d05e.js → shared-641786b2.js} +1 -1
- package/dist/cdn/{shared-09b4185a.js → shared-65479601.js} +1 -1
- package/dist/cdn/{shared-0f67d020.js → shared-6b8c2a83.js} +1 -1
- package/dist/cdn/{shared-a49a2300.js → shared-6e1b5baf.js} +1 -1
- package/dist/cdn/{shared-61b6ef6e.js → shared-6f0504e2.js} +1 -1
- package/dist/cdn/{shared-e778071b.js → shared-7275324b.js} +1 -1
- package/dist/cdn/{shared-937b497c.js → shared-745f340a.js} +1 -1
- package/dist/cdn/{shared-1f0b8b7e.js → shared-74eedbe6.js} +1 -1
- package/dist/cdn/{shared-d1c10d58.js → shared-7c15c149.js} +1 -1
- package/dist/cdn/{shared-a207423c.js → shared-7ceceb4c.js} +1 -1
- package/dist/cdn/{shared-ce75e928.js → shared-86a9b27a.js} +1 -1
- package/dist/cdn/{shared-91f5e0b3.js → shared-87b5a6aa.js} +1 -1
- package/dist/cdn/{shared-5be5874d.js → shared-8a3fd383.js} +1 -1
- package/dist/cdn/{shared-c388e926.js → shared-8a73d1aa.js} +1 -1
- package/dist/cdn/{shared-b8198665.js → shared-8b5e05df.js} +1 -1
- package/dist/cdn/{shared-e24da82e.js → shared-8da3186f.js} +2 -2
- package/dist/cdn/{shared-4b346553.js → shared-8fc527b7.js} +1 -1
- package/dist/cdn/{shared-ef78d7d9.js → shared-9092b5db.js} +1 -1
- package/dist/cdn/{shared-0a6a28ce.js → shared-913e1955.js} +1 -1
- package/dist/cdn/{shared-c2776a33.js → shared-91d8985f.js} +1 -1
- package/dist/cdn/{shared-5a2f398c.js → shared-92192fe1.js} +1 -1
- package/dist/cdn/{shared-d8c3067b.js → shared-97cfdcdb.js} +1 -1
- package/dist/cdn/{shared-19884cf4.js → shared-9a59aab2.js} +1 -1
- package/dist/cdn/{shared-522a172d.js → shared-9cf15285.js} +1 -1
- package/dist/cdn/{shared-28f74114.js → shared-9d309e97.js} +1 -1
- package/dist/cdn/{shared-2a5c89a4.js → shared-9e360643.js} +1 -1
- package/dist/cdn/{shared-388e9240.js → shared-aaf72aad.js} +1 -1
- package/dist/cdn/{shared-37efab30.js → shared-acd33590.js} +1 -1
- package/dist/cdn/{shared-44ce656d.js → shared-adcfd50a.js} +1 -1
- package/dist/cdn/{shared-f11b2116.js → shared-addddf0e.js} +1 -1
- package/dist/cdn/{shared-fb34e84c.js → shared-b726120d.js} +2 -2
- package/dist/cdn/{shared-0e055562.js → shared-bc023a29.js} +1 -1
- package/dist/cdn/{shared-6d645dc5.js → shared-c2efc54e.js} +1 -1
- package/dist/cdn/{shared-029d623b.js → shared-c4f15ea3.js} +1 -1
- package/dist/cdn/{shared-ce172224.js → shared-c508d5dc.js} +1 -1
- package/dist/cdn/{shared-c286c5ad.js → shared-c518ece2.js} +1 -1
- package/dist/cdn/{shared-16c17e32.js → shared-c538157f.js} +1 -1
- package/dist/cdn/{shared-f407c2cb.js → shared-c5647b62.js} +1 -1
- package/dist/cdn/{shared-60d586ba.js → shared-c9346893.js} +1 -1
- package/dist/cdn/{shared-d132bd37.js → shared-c98881c7.js} +1 -1
- package/dist/cdn/{shared-da9e048f.js → shared-ca0847b0.js} +1 -1
- package/dist/cdn/shared-d1195c27.js +15 -0
- package/dist/cdn/{shared-0b01f721.js → shared-d1cb97c6.js} +1 -1
- package/dist/cdn/{shared-fb0ca5e2.js → shared-d3044c4c.js} +1 -1
- package/dist/cdn/{shared-245f8836.js → shared-d4a1658e.js} +1 -1
- package/dist/cdn/shared-d8bffb38.js +14 -0
- package/dist/cdn/{shared-fc1dfa64.js → shared-df51ee50.js} +1 -1
- package/dist/cdn/{shared-edbf7378.js → shared-dfe41029.js} +1 -1
- package/dist/cdn/{shared-536a2d53.js → shared-e709057b.js} +1 -1
- package/dist/cdn/{shared-199e3870.js → shared-f5547471.js} +1 -1
- package/dist/cdn/{shared-0cc5420d.js → shared-f67f6fc5.js} +1 -1
- package/dist/cdn/{shared-7d38cb8a.js → shared-f8368b97.js} +1 -1
- package/dist/cdn/{shared-f2968508.js → shared-f893763a.js} +2 -2
- package/dist/cdn/{shared-b08ca8d0.js → shared-f998f9c8.js} +1 -1
- package/dist/cdn/{shared-ee36b83f.js → shared-fcdb896f.js} +1 -1
- package/dist/cdn/translations/user-invitation-card/en.json +17 -0
- package/dist/cdn/translations/user-invitation-form/en.json +94 -0
- package/dist/elements/public/UserCard/UserCard.d.ts +7 -0
- package/dist/elements/public/UserCard/UserCard.js +81 -2
- package/dist/elements/public/UserCard/UserCard.js.map +1 -1
- package/dist/elements/public/UserCard/index.d.ts +1 -0
- package/dist/elements/public/UserCard/index.js +1 -0
- package/dist/elements/public/UserCard/index.js.map +1 -1
- package/dist/elements/public/UserInvitationCard/UserInvitationCard.d.ts +16 -0
- package/dist/elements/public/UserInvitationCard/UserInvitationCard.js +110 -0
- package/dist/elements/public/UserInvitationCard/UserInvitationCard.js.map +1 -0
- package/dist/elements/public/UserInvitationCard/index.d.ts +4 -0
- package/dist/elements/public/UserInvitationCard/index.js +6 -0
- package/dist/elements/public/UserInvitationCard/index.js.map +1 -0
- package/dist/elements/public/UserInvitationCard/types.d.ts +1 -0
- package/dist/elements/public/UserInvitationCard/types.js +2 -0
- package/dist/elements/public/UserInvitationCard/types.js.map +1 -0
- package/dist/elements/public/UserInvitationForm/UserInvitationForm.d.ts +29 -0
- package/dist/elements/public/UserInvitationForm/UserInvitationForm.js +313 -0
- package/dist/elements/public/UserInvitationForm/UserInvitationForm.js.map +1 -0
- package/dist/elements/public/UserInvitationForm/index.d.ts +7 -0
- package/dist/elements/public/UserInvitationForm/index.js +9 -0
- package/dist/elements/public/UserInvitationForm/index.js.map +1 -0
- package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormAsyncAction/InternalUserInvitationFormAsyncAction.d.ts +10 -0
- package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormAsyncAction/InternalUserInvitationFormAsyncAction.js +51 -0
- package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormAsyncAction/InternalUserInvitationFormAsyncAction.js.map +1 -0
- package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormAsyncAction/index.d.ts +5 -0
- package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormAsyncAction/index.js +7 -0
- package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormAsyncAction/index.js.map +1 -0
- package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormSyncAction/InternalUserInvitationFormSyncAction.d.ts +9 -0
- package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormSyncAction/InternalUserInvitationFormSyncAction.js +32 -0
- package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormSyncAction/InternalUserInvitationFormSyncAction.js.map +1 -0
- package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormSyncAction/index.d.ts +5 -0
- package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormSyncAction/index.js +7 -0
- package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormSyncAction/index.js.map +1 -0
- package/dist/elements/public/UserInvitationForm/types.d.ts +33 -0
- package/dist/elements/public/UserInvitationForm/types.js +2 -0
- package/dist/elements/public/UserInvitationForm/types.js.map +1 -0
- package/dist/elements/public/index.d.ts +2 -0
- package/dist/elements/public/index.defined.d.ts +2 -0
- package/dist/elements/public/index.defined.js +2 -0
- package/dist/elements/public/index.defined.js.map +1 -1
- package/dist/elements/public/index.js +2 -0
- package/dist/elements/public/index.js.map +1 -1
- package/dist/mixins/themeable.js +4 -0
- package/dist/mixins/themeable.js.map +1 -1
- package/dist/utils/get-gravatar-url.d.ts +1 -0
- package/dist/utils/get-gravatar-url.js +8 -0
- package/dist/utils/get-gravatar-url.js.map +1 -0
- package/package.json +1 -1
- package/dist/cdn/shared-0f6e4584.js +0 -15
- package/dist/cdn/shared-3ee151ce.js +0 -1
- package/dist/cdn/shared-6474675f.js +0 -1
- package/dist/cdn/shared-9db46672.js +0 -1
- package/dist/cdn/shared-f34aeb6c.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./shared-
|
|
1
|
+
import"./shared-f998f9c8.js";import"./shared-7ceceb4c.js";import{h as e,P as t}from"./shared-adcfd50a.js";import{E as s,T as r}from"./shared-65479601.js";import{F as l}from"./shared-5513e830.js";const i=e`<dom-module id="lumo-custom-field" theme-for="vaadin-custom-field">
|
|
2
2
|
<template>
|
|
3
3
|
<style include="lumo-required-field">
|
|
4
4
|
:host {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./shared-
|
|
1
|
+
import"./shared-f998f9c8.js";import{h as e,G as t,P as r}from"./shared-adcfd50a.js";import{E as o,T as i,D as s}from"./shared-65479601.js";import{C as a}from"./shared-61ade33e.js";import"./shared-7ceceb4c.js";import{F as l}from"./shared-5513e830.js";import{I as n}from"./shared-f8368b97.js";import"./shared-acd33590.js";import{_ as d}from"./shared-d1195c27.js";import{i as h}from"./shared-9803aa7c.js";import{c,h as u}from"./shared-dc73b9a5.js";import{c as p}from"./shared-4e709717.js";import{w as b}from"./shared-b726120d.js";const m=e`<dom-module id="lumo-radio-button" theme-for="vaadin-radio-button">
|
|
2
2
|
<template>
|
|
3
3
|
<style>
|
|
4
4
|
:host {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./shared-
|
|
1
|
+
import"./shared-1a30f25e.js";import{I as e}from"./shared-f8368b97.js";import{w as t}from"./shared-b726120d.js";import{c as a,h as r}from"./shared-dc73b9a5.js";import{_ as o}from"./shared-d1195c27.js";import{s as i}from"./shared-79d0699c.js";import{p as l}from"./shared-43e2c3f6.js";import{i as s}from"./shared-9803aa7c.js";let n;function m(e){return new Array(7).fill(new Date).map(((t,a)=>{for(;t.getDay()!==a;)t.setDate(t.getDate()+1);return t.toLocaleDateString(e,{weekday:"short"})}))}function h(e){return new Array(7).fill(new Date).map(((t,a)=>{for(;t.getDay()!==a;)t.setDate(t.getDate()+1);return t.toLocaleDateString(e,{weekday:"long"})}))}t("vaadin-date-picker-text-field",a(n||(n=(e=>e)`:host([theme~=summary-item])::before{display:none}:host([theme~=summary-item]) .vaadin-text-field-container{display:grid;grid-template-columns:auto 1fr;grid-template-rows:repeat(3,min-content);gap:0 var(--lumo-space-m)}:host([theme~=summary-item]) [part=label]{font:normal var(--lumo-font-size-m) var(--lumo-font-family);color:var(--lumo-body-text-color)!important;grid-row:1;-webkit-text-fill-color:var(--lumo-body-text-color)!important}:host([theme~=summary-item]) [part=helper-text]{font:normal var(--lumo-font-size-s) var(--lumo-font-family);color:var(--lumo-secondary-text-color)!important;grid-row:2}:host([theme~=summary-item]) [part=helper-text]::before{display:none}:host([theme~=summary-item]) [part=error-message]{font:normal var(--lumo-font-size-s) var(--lumo-font-family);color:var(--lumo-error-text-color);grid-row:3}:host([theme~=summary-item]) [part=error-message],:host([theme~=summary-item]) [part=helper-text],:host([theme~=summary-item]) [part=label]{line-height:var(--lumo-line-height-xs);grid-column:1;padding:0}:host([theme~=summary-item]) [part=input-field]{grid-column:2;grid-row:1;padding:0;background:0 0;align-self:start;height:1em;--lumo-icon-size-m:1rem}:host([theme~=summary-item]) [part=input-field]::after,:host([theme~=summary-item][readonly]) [part=input-field] slot[name=suffix]{display:none}:host([theme~=summary-item]) [part=value]{line-height:var(--lumo-line-height-xs);text-align:right;min-height:auto;padding:0;margin-right:var(--lumo-space-xs);-webkit-mask-image:none}:host([theme~=summary-item][readonly]) [part=value]{margin-right:0}:host([theme~=summary-item]) [part=clear-button]{transform:scale(1.5)}:host([has-value]) slot[name=suffix]{display:none}`)));let u,d=e=>e;customElements.define("foxy-internal-date-control",class extends e{constructor(){super(...arguments),this.format=null,this.layout=null}static get properties(){return o(o({},super.properties),{},{format:{},layout:{}})}renderControl(){var e,t;let a;return a="0000-00-00"!==this._value&&this._value?"unix"===this.format?i(new Date(1e3*(null!==(e=this._value)&&void 0!==e?e:0))):"iso-long"===this.format?i(new Date(this._value)):this._value:"",r(u||(u=d` <vaadin-date-picker error-message="${0}" placeholder="${0}" helper-text="${0}" label="${0}" class="w-full" theme="${0}" ?disabled="${0}" ?readonly="${0}" .checkValidity="${0}" .value="${0}" .i18n="${0}" clear-button-visible @keydown="${0}" @change="${0}"> </vaadin-date-picker> `),s(this._errorMessage),this.placeholder,this.helperText,this.label,null!==(t=this.layout)&&void 0!==t?t:"standalone",this.disabled,this.readonly,this._checkValidity,a,this.__pickerI18n,(e=>{var t;return"Enter"===e.key&&(null===(t=this.nucleon)||void 0===t?void 0:t.submit())}),(e=>{var t,a,r,o;const i=e.currentTarget;"unix"===this.format?this._value=Math.floor((null!==(a=null===(t=l(i.value))||void 0===t?void 0:t.getTime())&&void 0!==a?a:0)/1e3):"iso-long"===this.format?this._value=null!==(o=null===(r=l(i.value))||void 0===r?void 0:r.toISOString())&&void 0!==o?o:null:this._value=i.value}))}get __pickerI18n(){return{monthNames:(e=this.lang||"en",new Array(12).fill(new Date).map(((t,a)=>(t.setMonth(a),t.toLocaleDateString(e,{month:"long"}))))),weekdays:h(this.lang||"en"),weekdaysShort:m(this.lang||"en"),firstDayOfWeek:0,week:this.t("week"),calendar:this.t("calendar"),clear:this.t("clear"),today:this.t("today"),cancel:this.t("cancel"),referenceDate:"",parseDate:null,formatTitle:(e,t)=>e+" "+t,formatDate:e=>this.t("display_value",{value:new Date(e.year,e.month,e.day)})};var e}});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./shared-
|
|
1
|
+
import"./shared-8fc527b7.js";import"./shared-f998f9c8.js";import"./shared-562d466d.js";import{h as e}from"./shared-adcfd50a.js";import{T as t}from"./shared-8b5e05df.js";import{D as i}from"./shared-b726120d.js";const n=e`<dom-module id="lumo-number-field" theme-for="vaadin-number-field">
|
|
2
2
|
<template>
|
|
3
3
|
<style include="lumo-field-button">
|
|
4
4
|
:host {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as t}from"./shared-
|
|
1
|
+
import{F as t}from"./shared-5513e830.js";import{b as e}from"./shared-65479601.js";import{D as s,t as i}from"./shared-adcfd50a.js";
|
|
2
2
|
/**
|
|
3
3
|
@license
|
|
4
4
|
Copyright (c) 2017 Vaadin Ltd.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function t(t){var n,r;function i(n,r){try{var a=t[n](r),s=a.value,c=s instanceof e;Promise.resolve(c?s.v:s).then((function(e){if(c){var r="return"===n?"return":"next";if(!s.k||e.done)return i(r,e);e=t[r](e).value}o(a.done?"return":"normal",e)}),(function(t){i("throw",t)}))}catch(t){o("throw",t)}}function o(t,e){switch(t){case"return":n.resolve({value:e,done:!0});break;case"throw":n.reject(e);break;default:n.resolve({value:e,done:!1})}(n=n.next)?i(n.key,n.arg):r=null}this._invoke=function(t,e){return new Promise((function(o,a){var s={key:t,arg:e,resolve:o,reject:a,next:null};r?r=r.next=s:(n=r=s,i(t,e))}))},"function"!=typeof t.return&&(this.return=void 0)}function e(t,e){this.v=t,this.k=e}function n(t){return new e(t,0)}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(){o=function(t,e){return new n(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function n(t,r,i){var o=new RegExp(t,r);return e.set(o,i||e.get(t)),c(o,n.prototype)}function r(t,n){var r=e.get(n);return Object.keys(r).reduce((function(e,n){var i=r[n];if("number"==typeof i)e[n]=t[i];else{for(var o=0;void 0===t[i[o]]&&o+1<i.length;)o++;e[n]=t[i[o]]}return e}),Object.create(null))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(n,RegExp),n.prototype.exec=function(e){var n=t.exec.call(this,e);if(n){n.groups=r(n,this);var i=n.indices;i&&(i.groups=r(i,this))}return n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=e.get(this);return t[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)>/g,(function(t,e){var n=o[e];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var a=this;return t[Symbol.replace].call(this,n,(function(){var t=arguments;return"object"!=typeof t[t.length-1]&&(t=[].slice.call(t)).push(r(t,a)),i.apply(this,t)}))}return t[Symbol.replace].call(this,n,i)},o.apply(this,arguments)}function a(e){return function(){return new t(e.apply(this,arguments))}}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function u(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function l(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},t.prototype.next=function(t){return this._invoke("next",t)},t.prototype.throw=function(t){return this._invoke("throw",t)},t.prototype.return=function(t){return this._invoke("return",t)};var f="object"==typeof global&&global&&global.Object===Object&&global,h="object"==typeof self&&self&&self.Object===Object&&self,p=f||h||Function("return this")(),d=p.Symbol,y=Object.prototype,v=y.hasOwnProperty,g=y.toString,b=d?d.toStringTag:void 0;var _=Object.prototype.toString;var m="[object Null]",w="[object Undefined]",x=d?d.toStringTag:void 0;function j(t){return null==t?void 0===t?w:m:x&&x in Object(t)?function(t){var e=v.call(t,b),n=t[b];try{t[b]=void 0;var r=!0}catch(t){}var i=g.call(t);return r&&(e?t[b]=n:delete t[b]),i}(t):function(t){return _.call(t)}(t)}function O(t){return null!=t&&"object"==typeof t}var S="[object Symbol]";function E(t){return"symbol"==typeof t||O(t)&&j(t)==S}var k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function A(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function P(t){var e={exports:{}};return t(e,e.exports),e.exports}function T(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}
|
|
2
|
+
/*! *****************************************************************************
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
+
***************************************************************************** */var R=function(){return R=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},R.apply(this,arguments)};function D(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function N(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function I(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function L(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(I(arguments[e]));return t}var C={},F="xstate.guard";function U(t){return Object.keys(t)}function M(t,e,n){void 0===n&&(n=".");var r=V(t,n),i=V(e,n);return rt(i)?!!rt(r)&&i===r:rt(r)?r in i:U(r).every((function(t){return t in i&&M(r[t],i[t])}))}function $(t){try{return rt(t)||"number"==typeof t?""+t:t.type}catch(t){throw new Error("Events must be strings or objects with a string event.type property.")}}function B(t,e){try{return et(t)?t:t.toString().split(e)}catch(e){throw new Error("'"+t+"' is not a valid state path.")}}function V(t,e){return"object"==typeof(n=t)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?t.value:et(t)?z(t):"string"!=typeof t?t:z(B(t,e));var n}function z(t){if(1===t.length)return t[0];for(var e={},n=e,r=0;r<t.length-1;r++)r===t.length-2?n[t[r]]=t[r+1]:(n[t[r]]={},n=n[t[r]]);return e}function W(t,e){for(var n={},r=U(t),i=0;i<r.length;i++){var o=r[i];n[o]=e(t[o],o,t,i)}return n}function q(t,e,n){var r,i,o={};try{for(var a=N(U(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];n(u)&&(o[c]=e(u,c,t))}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}var H=function(t){return function(e){var n,r,i=e;try{for(var o=N(t),a=o.next();!a.done;a=o.next()){i=i[a.value]}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}};function G(t){return t?rt(t)?[[t]]:J(U(t).map((function(e){var n=t[e];return"string"==typeof n||n&&Object.keys(n).length?G(t[e]).map((function(t){return[e].concat(t)})):[[e]]}))):[[]]}function J(t){var e;return(e=[]).concat.apply(e,L(t))}function K(t){return et(t)?t:[t]}function Q(t){return void 0===t?[]:K(t)}function Z(t,e,n){var r,i;if(nt(t))return t(e,n.data);var o={};try{for(var a=N(Object.keys(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];nt(u)?o[c]=u(e,n.data):o[c]=u}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function X(t){return t instanceof Promise||!(null===t||!nt(t)&&"object"!=typeof t||!nt(t.then))}function Y(t,e){var n,r,i=I([[],[]],2),o=i[0],a=i[1];try{for(var s=N(t),c=s.next();!c.done;c=s.next()){var u=c.value;e(u)?o.push(u):a.push(u)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return[o,a]}function tt(t,e){return W(t.states,(function(t,n){if(t){var r=(rt(e)?void 0:e[n])||(t?t.current:void 0);if(r)return{current:r,states:tt(t,r)}}}))}function et(t){return Array.isArray(t)}function nt(t){return"function"==typeof t}function rt(t){return"string"==typeof t}function it(t,e){if(t)return rt(t)?{type:F,name:t,predicate:e?e[t]:void 0}:nt(t)?{type:F,name:t.name,predicate:t}:t}function ot(t){try{return"subscribe"in t&&nt(t.subscribe)}catch(t){return!1}}var at,st,ct=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function ut(t){try{return"__xstatenode"in t}catch(t){return!1}}function lt(t){return!!t&&"function"==typeof t.send}function ft(t,e){return rt(t)||"number"==typeof t?R({type:t},e):t}function ht(t,e){if(!rt(t)&&"$$type"in t&&"scxml"===t.$$type)return t;var n=ft(t);return R({name:n.type,data:n,$$type:"scxml",type:"external"},e)}function pt(t,e){return K(e).map((function(e){return void 0===e||"string"==typeof e||ut(e)?{target:e,event:t}:R(R({},e),{event:t})}))}function dt(t,e,n,r,i){var o=t.options.guards,a={state:i,cond:e,_event:r};if(e.type===F)return e.predicate(n,r.data,a);var s=o[e.type];if(!s)throw new Error("Guard '"+e.type+"' is not implemented on machine '"+t.id+"'.");return s(n,r.data,a)}function yt(t){return"string"==typeof t?{type:t}:t}function vt(t,e,n){if("object"==typeof t)return t;var r=function(){};return{next:t,error:e||r,complete:n||r}}!function(t){t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose"}(at||(at={})),function(t){t.Parent="#_parent",t.Internal="#_internal"}(st||(st={}));var gt=at.Start,bt=at.Stop,_t=at.Raise,mt=at.Send,wt=at.Cancel,xt=at.NullEvent,jt=at.Assign;at.After,at.DoneState;var Ot=at.Log,St=at.Init,Et=at.Invoke;at.ErrorExecution;var kt=at.ErrorPlatform,At=at.ErrorCustom,Pt=at.Update,Tt=at.Choose,Rt=at.Pure,Dt=ht({type:St});function Nt(t,e){return e&&e[t]||void 0}function It(t,e){var n;if(rt(t)||"number"==typeof t){var r=Nt(t,e);n=nt(r)?{type:t,exec:r}:r||{type:t,exec:void 0}}else if(nt(t))n={type:t.name||t.toString(),exec:t};else{if(nt(r=Nt(t.type,e)))n=R(R({},t),{exec:r});else if(r){var i=r.type||t.type;n=R(R(R({},r),t),{type:i})}else n=t}return Object.defineProperty(n,"toString",{value:function(){return n.type},enumerable:!1,configurable:!0}),n}var Lt=function(t,e){return t?(et(t)?t:[t]).map((function(t){return It(t,e)})):[]};function Ct(t){var e=It(t);return R(R({id:rt(t)?t:e.id},e),{type:e.type})}function Ft(t){return rt(t)?{type:_t,event:t}:Ut(t,{to:st.Internal})}function Ut(t,e){return{to:e?e.to:void 0,type:mt,event:nt(t)?t:ft(t),delay:e?e.delay:void 0,id:e&&void 0!==e.id?e.id:nt(t)?t.name:$(t)}}function Mt(t,e){return Ut(t,R(R({},e),{to:st.Parent}))}function $t(){return Mt(Pt)}function Bt(t,e){return Ut(t,R(R({},e),{to:function(t,e,n){return n._event.origin}}))}var Vt=function(t,e){return{context:t,event:e}};function zt(t,e){return void 0===t&&(t=Vt),{type:Ot,label:e,expr:t}}var Wt=function(t){return{type:wt,sendId:t}};function qt(t){var e=Ct(t);return{type:at.Start,activity:e,exec:void 0}}function Ht(t){var e=nt(t)?t:Ct(t);return{type:at.Stop,activity:e,exec:void 0}}var Gt=function(t){return{type:jt,assignment:t}};function Jt(t,e){var n=e?"#"+e:"";return at.After+"("+t+")"+n}function Kt(t,e){var n=at.DoneState+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Qt(t,e){var n=at.DoneInvoke+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Zt(t,e){var n=at.ErrorPlatform+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Xt(t){return{type:at.Pure,get:t}}function Yt(t,e){return Ut((function(t,e){return e}),R(R({},e),{to:t}))}function te(t,e){return Mt((function(e,n,r){return{type:At,data:nt(t)?t(e,n,r):t}}),R(R({},e),{to:st.Parent}))}function ee(t){return{type:at.Choose,conds:t}}function ne(t,e,n,r,i){var o=I(Y(i,(function(t){return t.type===jt})),2),a=o[0],s=o[1],c=a.length?function(t,e,n,r){return t?n.reduce((function(t,n){var i,o,a=n.assignment,s={state:r,action:n,_event:e},c={};if(nt(a))c=a(t,e.data,s);else try{for(var u=N(U(a)),l=u.next();!l.done;l=u.next()){var f=l.value,h=a[f];c[f]=nt(h)?h(t,e.data,s):h}}catch(t){i={error:t}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return Object.assign({},t,c)}),t):t}(n,r,a,e):n,u=J(s.map((function(n){var i;switch(n.type){case _t:return{type:_t,_event:ht(n.event)};case mt:var o=function(t,e,n,r){var i,o={_event:n},a=ht(nt(t.event)?t.event(e,n.data,o):t.event);if(rt(t.delay)){var s=r&&r[t.delay];i=nt(s)?s(e,n.data,o):s}else i=nt(t.delay)?t.delay(e,n.data,o):t.delay;var c=nt(t.to)?t.to(e,n.data,o):t.to;return R(R({},t),{to:c,_event:a,event:a.data,delay:i})}(n,c,r,t.options.delays);return o;case Ot:return function(t,e,n){return R(R({},t),{value:rt(t.expr)?t.expr:t.expr(e,n.data,{_event:n})})}(n,c,r);case Tt:if(!(s=null===(i=n.conds.find((function(n){var i=it(n.cond,t.options.guards);return!i||dt(t,i,c,r,e)})))||void 0===i?void 0:i.actions))return[];var a=ne(t,e,c,r,Lt(Q(s),t.options.actions));return c=a[1],a[0];case Rt:var s;if(!(s=n.get(c,r.data)))return[];a=ne(t,e,c,r,Lt(Q(s),t.options.actions));return c=a[1],a[0];case bt:return function(t,e,n){var r=nt(t.activity)?t.activity(e,n.data):t.activity,i="string"==typeof r?{id:r}:r;return{type:at.Stop,activity:i}}(n,c,r);default:return It(n,t.options.actions)}})));return[u,c]}var re=function(t){return"atomic"===t.type||"final"===t.type};function ie(t){return U(t.states).map((function(e){return t.states[e]}))}function oe(t){var e=[t];return re(t)?e:e.concat(J(ie(t).map(oe)))}function ae(t,e){var n,r,i,o,a,s,c,u,l=ce(new Set(t)),f=new Set(e);try{for(var h=N(f),p=h.next();!p.done;p=h.next())for(var d=(j=p.value).parent;d&&!f.has(d);)f.add(d),d=d.parent}catch(t){n={error:t}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}var y=ce(f);try{for(var v=N(f),g=v.next();!g.done;g=v.next()){if("compound"!==(j=g.value).type||y.get(j)&&y.get(j).length){if("parallel"===j.type)try{for(var b=(a=void 0,N(ie(j))),_=b.next();!_.done;_=b.next()){var m=_.value;"history"!==m.type&&(f.has(m)||(f.add(m),l.get(m)?l.get(m).forEach((function(t){return f.add(t)})):m.initialStateNodes.forEach((function(t){return f.add(t)}))))}}catch(t){a={error:t}}finally{try{_&&!_.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}}else l.get(j)?l.get(j).forEach((function(t){return f.add(t)})):j.initialStateNodes.forEach((function(t){return f.add(t)}))}}catch(t){i={error:t}}finally{try{g&&!g.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}try{for(var w=N(f),x=w.next();!x.done;x=w.next()){var j;for(d=(j=x.value).parent;d&&!f.has(d);)f.add(d),d=d.parent}}catch(t){c={error:t}}finally{try{x&&!x.done&&(u=w.return)&&u.call(w)}finally{if(c)throw c.error}}return f}function se(t,e){var n=e.get(t);if(!n)return{};if("compound"===t.type){var r=n[0];if(!r)return{};if(re(r))return r.key}var i={};return n.forEach((function(t){i[t.key]=se(t,e)})),i}function ce(t){var e,n,r=new Map;try{for(var i=N(t),o=i.next();!o.done;o=i.next()){var a=o.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}function ue(t,e){return se(t,ce(ae([t],e)))}function le(t,e){return Array.isArray(t)?t.some((function(t){return t===e})):t instanceof Set&&t.has(e)}function fe(t,e){return"compound"===e.type?ie(e).some((function(e){return"final"===e.type&&le(t,e)})):"parallel"===e.type&&ie(e).every((function(e){return fe(t,e)}))}function he(t,e){if(t===e)return!0;if(void 0===t||void 0===e)return!1;if(rt(t)||rt(e))return t===e;var n=U(t),r=U(e);return n.length===r.length&&n.every((function(n){return he(t[n],e[n])}))}function pe(t){return!rt(t)&&("value"in t&&"history"in t)}function de(t,e){var n=t.exec;return R(R({},t),{exec:void 0!==n?function(){return n(e.context,e.event,{action:t,state:e,_event:e._event})}:void 0})}var ye=function(){function t(t){var e=this;this.actions=[],this.activities=C,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||C,this.meta=t.meta||{},this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,Object.defineProperty(this,"nextEvents",{get:function(){return t=e.configuration,J(L(new Set(t.map((function(t){return t.ownEvents})))));var t}})}return t.from=function(e,n){return e instanceof t?e.context!==n?new t({value:e.value,context:n,_event:e._event,_sessionid:null,historyValue:e.historyValue,history:e.history,actions:[],activities:e.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):e:new t({value:e,context:n,_event:Dt,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},t.create=function(e){return new t(e)},t.inert=function(e,n){if(e instanceof t){if(!e.actions.length)return e;var r=Dt;return new t({value:e.value,context:n,_event:r,_sessionid:null,historyValue:e.historyValue,history:e.history,activities:e.activities,configuration:e.configuration,transitions:[],children:{}})}return t.from(e,n)},t.prototype.toStrings=function(t,e){var n=this;if(void 0===t&&(t=this.value),void 0===e&&(e="."),rt(t))return[t];var r=U(t);return r.concat.apply(r,L(r.map((function(r){return n.toStrings(t[r],e).map((function(t){return r+e+t}))}))))},t.prototype.toJSON=function(){var t=this;return t.configuration,t.transitions,D(t,["configuration","transitions"])},t.prototype.matches=function(t){return M(t,this.value)},t}(),ve=function(t,e){return e(t)};function ge(t){return{id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},toJSON:function(){return{id:t}}}}function be(t,e,n,r){var i,o=yt(t.src),a=null===(i=null==e?void 0:e.options.services)||void 0===i?void 0:i[o.type],s=t.data?Z(t.data,n,r):void 0,c=a?function(t,e,n){var r=ge(e);r.deferred=!0,ut(t)&&(r.state=ve(void 0,(function(){return(n?t.withContext(n):t).initialState})));return r}(a,t.id,s):ge(t.id);return c.meta=t,c}function _e(t){return function(t){try{return"function"==typeof t.send}catch(t){return!1}}(t)&&"id"in t}function me(t){if("string"==typeof t){var e={type:t,toString:function(){return t}};return e}return t}function we(t){return R(R({type:Et},t),{toJSON:function(){t.onDone,t.onError;var e=D(t,["onDone","onError"]);return R(R({},e),{type:Et,src:me(t.src)})}})}var xe="*",je={},Oe=function(t){return"#"===t[0]},Se=function(){function t(e,n,r){var i=this;this.config=e,this.context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=this.options._parent,this.key=this.config.key||this.options._key||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||L([this.machine.key],this.path).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&U(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.initial=this.config.initial,this.states=this.config.states?W(this.config.states,(function(e,n){var r,o=new t(e,{_parent:i,_key:n});return Object.assign(i.idMap,R(((r={})[o.id]=o,r),o.idMap)),o})):je;var o=0;!function t(e){var n,r;e.order=o++;try{for(var i=N(ie(e)),a=i.next();!a.done;a=i.next()){t(a.value)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(t){return""===t.event})):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=Q(this.config.entry||this.config.onEntry).map((function(t){return It(t)})),this.onExit=Q(this.config.exit||this.config.onExit).map((function(t){return It(t)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=Q(this.config.invoke).map((function(t,e){var n,r;if(ut(t))return i.machine.options.services=R(((n={})[t.id]=t,n),i.machine.options.services),we({src:t.id,id:t.id});if(rt(t.src))return we(R(R({},t),{id:t.id||t.src,src:t.src}));if(ut(t.src)||nt(t.src)){var o=i.id+":invocation["+e+"]";return i.machine.options.services=R(((r={})[o]=t.src,r),i.machine.options.services),we(R(R({id:o},t),{src:o}))}var a=t.src;return we(R(R({id:a.type},t),{src:a}))})),this.activities=Q(this.config.activities).concat(this.invoke).map((function(t){return Ct(t)})),this.transition=this.transition.bind(this)}return t.prototype._init=function(){this.__cache.transitions||oe(this).forEach((function(t){return t.on}))},t.prototype.withConfig=function(e,n){void 0===n&&(n=this.context);var r=this.options,i=r.actions,o=r.activities,a=r.guards,s=r.services,c=r.delays;return new t(this.config,{actions:R(R({},i),e.actions),activities:R(R({},o),e.activities),guards:R(R({},a),e.guards),services:R(R({},s),e.services),delays:R(R({},c),e.delays)},n)},t.prototype.withContext=function(e){return new t(this.config,this.options,e)},Object.defineProperty(t.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:W(this.states,(function(t){return t.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke}},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){return this.definition},Object.defineProperty(t.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce((function(t,e){return t[e.eventType]=t[e.eventType]||[],t[e.eventType].push(e),t}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),t.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var e=""===t,n=this.transitions.filter((function(n){var r=n.eventType===t;return e?r:r||n.eventType===xe}));return this.__cache.candidates[t]=n,n},t.prototype.getDelayedTransitions=function(){var t=this,e=this.config.after;if(!e)return[];var n=function(e,n){var r=Jt(nt(e)?t.id+":delay["+n+"]":e,t.id);return t.onEntry.push(Ut(r,{delay:e})),t.onExit.push(Wt(r)),r};return(et(e)?e.map((function(t,e){var r=n(t.delay,e);return R(R({},t),{event:r})})):J(U(e).map((function(t,r){var i=e[t],o=rt(i)?{target:i}:i,a=isNaN(+t)?t:+t,s=n(a,r);return Q(o).map((function(t){return R(R({},t),{event:s,delay:a})}))})))).map((function(e){var n=e.delay;return R(R({},t.formatTransition(e)),{delay:n})}))},t.prototype.getStateNodes=function(t){var e,n=this;if(!t)return[];var r=t instanceof ye?t.value:V(t,this.delimiter);if(rt(r)){var i=this.getStateNode(r).initial;return void 0!==i?this.getStateNodes(((e={})[r]=i,e)):[this.states[r]]}var o=U(r);return o.map((function(t){return n.getStateNode(t)})).concat(o.reduce((function(t,e){var i=n.getStateNode(e).getStateNodes(r[e]);return t.concat(i)}),[]))},t.prototype.handles=function(t){var e=$(t);return this.events.includes(e)},t.prototype.resolveState=function(t){var e=Array.from(ae([],this.getStateNodes(t.value)));return new ye(R(R({},t),{value:this.resolve(t.value),configuration:e,done:fe(e,this)}))},t.prototype.transitionLeafNode=function(t,e,n){var r=this.getStateNode(t).next(e,n);return r&&r.transitions.length?r:this.next(e,n)},t.prototype.transitionCompoundNode=function(t,e,n){var r=U(t),i=this.getStateNode(r[0])._transition(t[r[0]],e,n);return i&&i.transitions.length?i:this.next(e,n)},t.prototype.transitionParallelNode=function(t,e,n){var r,i,o={};try{for(var a=N(U(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];if(u){var l=this.getStateNode(c)._transition(u,e,n);l&&(o[c]=l)}}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}var f=U(o).map((function(t){return o[t]})),h=J(f.map((function(t){return t.transitions})));if(!f.some((function(t){return t.transitions.length>0})))return this.next(e,n);var p=J(f.map((function(t){return t.entrySet}))),d=J(U(o).map((function(t){return o[t].configuration})));return{transitions:h,entrySet:p,exitSet:J(f.map((function(t){return t.exitSet}))),configuration:d,source:e,actions:J(U(o).map((function(t){return o[t].actions})))}},t.prototype._transition=function(t,e,n){return rt(t)?this.transitionLeafNode(t,e,n):1===U(t).length?this.transitionCompoundNode(t,e,n):this.transitionParallelNode(t,e,n)},t.prototype.next=function(t,e){var n,r,i,o=this,a=e.name,s=[],c=[];try{for(var u=N(this.getCandidates(a)),l=u.next();!l.done;l=u.next()){var f=l.value,h=f.cond,p=f.in,d=t.context,y=!p||(rt(p)&&Oe(p)?t.matches(V(this.getStateNodeById(p).path,this.delimiter)):M(V(p,this.delimiter),H(this.path.slice(0,-2))(t.value))),v=!1;try{v=!h||dt(this.machine,h,d,e,t)}catch(t){throw new Error("Unable to evaluate guard '"+(h.name||h.type)+"' in transition for event '"+a+"' in state node '"+this.id+"':\n"+t.message)}if(v&&y){void 0!==f.target&&(c=f.target),s.push.apply(s,L(f.actions)),i=f;break}}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(i){if(!c.length)return{transitions:[i],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:s};var g=J(c.map((function(e){return o.getRelativeStateNodes(e,t.historyValue)}))),b=!!i.internal;return{transitions:[i],entrySet:b?[]:J(g.map((function(t){return o.nodesFromChild(t)}))),exitSet:b?[]:[this],configuration:g,source:t,actions:s}}},t.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var e=[],n=t;n&&n!==this;)e.push(n),n=n.parent;return e.push(this),e},t.prototype.escapes=function(t){if(this===t)return!1;for(var e=this.parent;e;){if(e===t)return!1;e=e.parent}return!0},t.prototype.getActions=function(t,e,n,r){var i,o,a,s,c=ae([],r?this.getStateNodes(r.value):[this]),u=t.configuration.length?ae(c,t.configuration):c;try{for(var l=N(u),f=l.next();!f.done;f=l.next()){le(c,d=f.value)||t.entrySet.push(d)}}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}try{for(var h=N(c),p=h.next();!p.done;p=h.next()){var d;le(u,d=p.value)&&!le(t.exitSet,d.parent)||t.exitSet.push(d)}}catch(t){a={error:t}}finally{try{p&&!p.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}t.source||(t.exitSet=[],t.entrySet.push(this));var y=J(t.entrySet.map((function(r){var i=[];if("final"!==r.type)return i;var o=r.parent;if(!o.parent)return i;i.push(Kt(r.id,r.doneData),Kt(o.id,r.doneData?Z(r.doneData,e,n):void 0));var a=o.parent;return"parallel"===a.type&&ie(a).every((function(e){return fe(t.configuration,e)}))&&i.push(Kt(a.id)),i})));t.exitSet.sort((function(t,e){return e.order-t.order})),t.entrySet.sort((function(t,e){return t.order-e.order}));var v=new Set(t.entrySet),g=new Set(t.exitSet),b=I([J(Array.from(v).map((function(t){return L(t.activities.map((function(t){return qt(t)})),t.onEntry)}))).concat(y.map(Ft)),J(Array.from(g).map((function(t){return L(t.onExit,t.activities.map((function(t){return Ht(t)})))})))],2),_=b[0],m=b[1];return Lt(m.concat(t.actions).concat(_),this.machine.options.actions)},t.prototype.transition=function(t,e,n){void 0===t&&(t=this.initialState);var r,i,o=ht(e);if(t instanceof ye)r=void 0===n?t:this.resolveState(ye.from(t,n));else{var a=rt(t)?this.resolve(z(this.getResolvedPath(t))):this.resolve(t),s=n||this.machine.context;r=this.resolveState(ye.from(a,s))}if(this.strict&&!this.events.includes(o.name)&&(i=o.name,!/^(done|error)\./.test(i)))throw new Error("Machine '"+this.id+"' does not accept event '"+o.name+"'");var c=this._transition(r.value,r,o)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:r,actions:[]},u=ae([],this.getStateNodes(r.value)),l=c.configuration.length?ae(u,c.configuration):u;return c.configuration=L(l),this.resolveTransition(c,r,o)},t.prototype.resolveRaisedTransition=function(t,e,n){var r,i=t.actions;return(t=this.transition(t,e))._event=n,t.event=n.data,(r=t.actions).unshift.apply(r,L(i)),t},t.prototype.resolveTransition=function(t,e,n,r){var i,o,a=this;void 0===n&&(n=Dt),void 0===r&&(r=this.machine.context);var s=t.configuration,c=!e||t.transitions.length>0?ue(this.machine,s):void 0,u=e?e.historyValue?e.historyValue:t.source?this.machine.historyValue(e.value):void 0:void 0,l=e?e.context:r,f=this.getActions(t,l,n,e),h=e?R({},e.activities):{};try{for(var p=N(f),d=p.next();!d.done;d=p.next()){var y=d.value;y.type===gt?h[y.activity.id||y.activity.type]=y:y.type===bt&&(h[y.activity.id||y.activity.type]=!1)}}catch(t){i={error:t}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}var v,g,b=I(ne(this,e,l,n,f),2),_=b[0],m=b[1],w=I(Y(_,(function(t){return t.type===_t||t.type===mt&&t.to===st.Internal})),2),x=w[0],j=w[1],O=_.filter((function(t){var e;return t.type===gt&&(null===(e=t.activity)||void 0===e?void 0:e.type)===Et})),S=O.reduce((function(t,e){return t[e.activity.id]=be(e.activity,a.machine,m,n),t}),e?R({},e.children):{}),E=c?t.configuration:e?e.configuration:[],k=E.reduce((function(t,e){return void 0!==e.meta&&(t[e.id]=e.meta),t}),{}),A=fe(E,this),P=new ye({value:c||e.value,context:m,_event:n,_sessionid:e?e._sessionid:null,historyValue:c?u?(v=u,g=c,{current:g,states:tt(v,g)}):void 0:e?e.historyValue:void 0,history:!c||t.source?e:void 0,actions:c?j:[],activities:c?h:e?e.activities:{},meta:c?k:e?e.meta:void 0,events:[],configuration:E,transitions:t.transitions,children:S,done:A}),T=l!==m;P.changed=n.name===Pt||T;var D=P.history;if(D&&delete D.history,!c)return P;var L=P;if(!A)for((this._transient||s.some((function(t){return t._transient})))&&(L=this.resolveRaisedTransition(L,{type:xt},n));x.length;){var C=x.shift();L=this.resolveRaisedTransition(L,C._event,n)}var F=L.changed||(D?!!L.actions.length||T||typeof D.value!=typeof L.value||!he(L.value,D.value):void 0);return L.changed=F,L.history=D,L},t.prototype.getStateNode=function(t){if(Oe(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '"+t+"' from '"+this.id+"'; no child states exist.");var e=this.states[t];if(!e)throw new Error("Child state '"+t+"' does not exist on '"+this.id+"'");return e},t.prototype.getStateNodeById=function(t){var e=Oe(t)?t.slice(1):t;if(e===this.id)return this;var n=this.machine.idMap[e];if(!n)throw new Error("Child state node '#"+e+"' does not exist on machine '"+this.id+"'");return n},t.prototype.getStateNodeByPath=function(t){if("string"==typeof t&&Oe(t))try{return this.getStateNodeById(t.slice(1))}catch(t){}for(var e=B(t,this.delimiter).slice(),n=this;e.length;){var r=e.shift();if(!r.length)break;n=n.getStateNode(r)}return n},t.prototype.resolve=function(t){var e,n=this;if(!t)return this.initialStateValue||je;switch(this.type){case"parallel":return W(this.initialStateValue,(function(e,r){return e?n.getStateNode(r).resolve(t[r]||e):je}));case"compound":if(rt(t)){var r=this.getStateNode(t);return"parallel"===r.type||"compound"===r.type?((e={})[t]=r.initialStateValue,e):t}return U(t).length?W(t,(function(t,e){return t?n.getStateNode(e).resolve(t):je})):this.initialStateValue||{};default:return t||je}},t.prototype.getResolvedPath=function(t){if(Oe(t)){var e=this.machine.idMap[t.slice(1)];if(!e)throw new Error("Unable to find state node '"+t+"'");return e.path}return B(t,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var t,e;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)e=q(this.states,(function(t){return t.initialStateValue||je}),(function(t){return!("history"===t.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '"+this.initial+"' not found on '"+this.key+"'");e=re(this.states[this.initial])?this.initial:((t={})[this.initial]=this.states[this.initial].initialStateValue,t)}return this.__cache.initialStateValue=e,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(t,e){var n=this.getStateNodes(t);return this.resolveTransition({configuration:n,entrySet:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,void 0,e)},Object.defineProperty(t.prototype,"initialState",{get:function(){this._init();var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '"+this.id+"'.");return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var t;if("history"===this.type){var e=this.config;t=rt(e.target)&&Oe(e.target)?z(this.machine.getStateNodeById(e.target).path.slice(this.path.length-1)):e.target}return t},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(t,e,n){return void 0===n&&(n=!0),n?"history"===t.type?t.resolveHistory(e):t.initialStateNodes:[t]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var t=this;return re(this)?[this]:"compound"!==this.type||this.initial?J(G(this.initialStateValue).map((function(e){return t.getFromRelativePath(e)}))):[this]},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var e=I(t),n=e[0],r=e.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '"+n+"' from node with no states");var i=this.getStateNode(n);if("history"===i.type)return i.resolveHistory();if(!this.states[n])throw new Error("Child state '"+n+"' does not exist on '"+this.id+"'");return this.states[n].getFromRelativePath(r)},t.prototype.historyValue=function(t){if(U(this.states).length)return{current:t||this.initialStateValue,states:q(this.states,(function(e,n){if(!t)return e.historyValue();var r=rt(t)?void 0:t[n];return e.historyValue(r||e.initialStateValue)}),(function(t){return!t.history}))}},t.prototype.resolveHistory=function(t){var e=this;if("history"!==this.type)return[this];var n=this.parent;if(!t){var r=this.target;return r?J(G(r).map((function(t){return n.getFromRelativePath(t)}))):n.initialStateNodes}var i,o,a=(i=n.path,o="states",function(t){var e,n,r=t;try{for(var a=N(i),s=a.next();!s.done;s=a.next()){var c=s.value;r=r[o][c]}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return r})(t).current;return rt(a)?[n.getStateNode(a)]:J(G(a).map((function(t){return"deep"===e.history?n.getFromRelativePath(t):[n.states[t[0]]]})))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var t=this,e=J(U(this.states).map((function(e){return t.states[e].stateIds})));return[this.id].concat(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){var t,e,n,r;if(this.__cache.events)return this.__cache.events;var i=this.states,o=new Set(this.ownEvents);if(i)try{for(var a=N(U(i)),s=a.next();!s.done;s=a.next()){var c=i[s.value];if(c.states)try{for(var u=(n=void 0,N(c.events)),l=u.next();!l.done;l=u.next()){var f=l.value;o.add(""+f)}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter((function(t){return!(!t.target&&!t.actions.length&&t.internal)})).map((function(t){return t.eventType})));return Array.from(t)},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(t){var e=this;if(void 0!==t)return t.map((function(t){if(!rt(t))return t;var n=t[0]===e.delimiter;if(n&&!e.parent)return e.getStateNodeByPath(t.slice(1));var r=n?e.key+t:t;if(!e.parent)return e.getStateNodeByPath(r);try{return e.parent.getStateNodeByPath(r)}catch(t){throw new Error("Invalid transition definition for state node '"+e.id+"':\n"+t.message)}}))},t.prototype.formatTransition=function(t){var e=this,n=function(t){if(void 0!==t&&""!==t)return Q(t)}(t.target),r="internal"in t?t.internal:!n||n.some((function(t){return rt(t)&&t[0]===e.delimiter})),i=this.machine.options.guards,o=this.resolveTarget(n),a=R(R({},t),{actions:Lt(Q(t.actions)),cond:it(t.cond,i),target:o,source:this,internal:r,eventType:t.event,toJSON:function(){return R(R({},a),{target:a.target?a.target.map((function(t){return"#"+t.id})):void 0,source:"#"+e.id})}});return a},t.prototype.formatTransitions=function(){var t,e,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var i=this.config.on,o=xe,a=i[o],s=void 0===a?[]:a,c=D(i,["*"]);n=J(U(c).map((function(t){var e=pt(t,c[t]);return e})).concat(pt(xe,s)))}else n=[];var u=this.config.always?pt("",this.config.always):[],l=this.config.onDone?pt(String(Kt(this.id)),this.config.onDone):[];var f=J(this.invoke.map((function(t){var e=[];return t.onDone&&e.push.apply(e,L(pt(String(Qt(t.id)),t.onDone))),t.onError&&e.push.apply(e,L(pt(String(Zt(t.id)),t.onError))),e}))),h=this.after,p=J(L(l,f,n,u).map((function(t){return Q(t).map((function(t){return r.formatTransition(t)}))})));try{for(var d=N(h),y=d.next();!y.done;y=d.next()){var v=y.value;p.push(v)}}catch(e){t={error:e}}finally{try{y&&!y.done&&(e=d.return)&&e.call(d)}finally{if(t)throw t.error}}return p},t}();function Ee(t,e,n){void 0===n&&(n=t.context);var r="function"==typeof n?n():n;return new Se(t,e,r)}function ke(t,e){var n="function"==typeof t.context?t.context():t.context;return new Se(t,e,n)}const Ae=Gt({failure:null}),Pe=Gt({errors:[]}),Te=Gt({edits:null}),Re=Gt({data:null}),De=Pe,Ne=Gt({failure:(t,e)=>e.data}),Ie=Gt({errors:(t,e)=>e.data}),Le=Gt({data:(t,e)=>e.data}),Ce=Gt({edits:(t,e)=>Object.assign(Object.assign({},t.edits),e.data)});const Fe=ke({context:{data:null,edits:null,errors:[],failure:null},entry:["validate"],id:"nucleon",initial:"init",on:{DELETE:{target:"#nucleon.busy.deleting"},FETCH:{actions:["clearData","clearEdits","clearErrors"],target:"#nucleon.busy.fetching"},REFRESH:{target:"#nucleon.busy.fetching"},SET_DATA:{actions:["setData","clearEdits","clearErrors"],target:"#nucleon.init"}},states:{busy:{states:{creating:{invoke:{onDone:{actions:["setData","clearEdits","validate"],target:"#nucleon.idle.snapshot"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendPost"}},deleting:{invoke:{onDone:{actions:["clearData","clearEdits","validate"],target:"#nucleon.idle.template"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendDelete"}},fetching:{invoke:{onDone:{actions:["setData","clearErrors","validate"],target:"#nucleon.idle.snapshot"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendGet"}},updating:{invoke:{onDone:{actions:["setData","clearEdits","validate"],target:"#nucleon.idle.snapshot"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendPatch"}}}},fail:{exit:"clearFailure"},idle:{initial:"unknown",on:{EDIT:{actions:["applyEdit","validate"],target:".unknown"}},states:{snapshot:{initial:"unknown",states:{clean:{initial:"unknown",states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{}}},dirty:{initial:"unknown",on:{UNDO:{actions:["clearEdits","clearErrors","validate"],target:"#nucleon.idle.snapshot.clean"}},states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{on:{SUBMIT:{target:"#nucleon.busy.updating"}}}}},unknown:{always:[{cond:"hasEdits",target:"dirty"},{target:"clean"}]}}},template:{initial:"unknown",states:{clean:{initial:"unknown",states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{}}},dirty:{initial:"unknown",on:{UNDO:{actions:["clearEdits","clearErrors","validate"],target:"#nucleon.idle.template.clean"}},states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{on:{SUBMIT:{target:"#nucleon.busy.creating"}}}}},unknown:{always:[{cond:"hasEdits",target:"dirty"},{target:"clean"}]}}},unknown:{always:[{cond:"hasData",target:"snapshot"},{target:"template"}]}}},init:{always:[{cond:"hasData",target:"idle.snapshot"},{target:"idle.template"}]}}},{actions:Object.freeze({__proto__:null,clearFailure:Ae,clearErrors:Pe,clearEdits:Te,clearData:Re,validate:De,setFailure:Ne,setErrors:Ie,setData:Le,applyEdit:Ce}),guards:Object.freeze({__proto__:null,hasData:t=>null!==t.data,hasEdits:t=>null!==t.edits,hasErrors:t=>t.errors.length>0,isV8nErrorEvent:(t,e)=>Array.isArray(e.data)})});class Ue{constructor(t){this.__tree=Ue.__parse(t)}static get True(){return $e}static get False(){return Me}static fromAttribute(t,e){return null===t?Ue.False:""===t||t===e?Ue.True:new Ue(t)}matches(t,e=!1){const n=this.zoom(t).toString();return e?"not=*"===n:""!==n}zoom(t){const e=new Ue("");return e.__tree=t.split(":").reduce(((t,e)=>{let n;if("include"in t){if(n=t.include[e],void 0===n)return{include:{}};if(!0===n)return{exclude:{"*":!0}}}else{if(n=t.exclude[e],void 0===n)return{exclude:{"*":!0}};if(!0===n)return{include:{}}}return n}),this.__tree),e}toString(){return Ue.__stringifyTree(this.__tree)}toAttribute(t=""){const e=this.toString();return"not=*"===e?t:0===e.length?null:e}static __parsePath(t,e){const n=t.indexOf(":"),r=t.substring(0,n),i=t.substring(n+1);if("exclude"in e){const t=e.exclude[r];t&&(e.exclude[r]=this.__parseListItem(i,!0===t?void 0:t))}else{const t=e.include[r];!0!==t&&(e.include[r]=this.__parseListItem(i,t))}return e}static __parseSet(t,e){const n=t.split(",");if("include"in e){e={exclude:e.include};for(const t in e.exclude)n.includes(t)||delete e.exclude[t];for(const t of n)t in e.exclude?delete e.exclude[t]:e.exclude[t]=!0}else for(const t in e.exclude)n.includes(t)||delete e.exclude[t];return e}static __parseListItem(t,e={include:{}}){if(t.includes(":"))return this.__parsePath(t,e);if(t.startsWith("not="))return this.__parseSet(t.substring(4),e);if("include"in e)e.include[t]=!0;else for(const n in e.exclude)n===t&&delete e.exclude[n];return e}static __parseList(t,e={include:{}}){return t.split(" ").reduce(((t,e)=>this.__parseListItem(e,t)),e)}static __lintList(t){var e;let n="list",r="";for(let i=0;i<t.length;++i){const o=t.charAt(i);try{if("list"===n){if(/^\s$/.test(o)){/^\s$/.test(null!==(e=t[i-1])&&void 0!==e?e:" ")||(r+=" ");continue}if(/^[a-z]$/.test(o)){r+=o,n="path";continue}throw new SyntaxError(`Expected [a-z] or a whitespace, but got "${o}" instead.`)}if("path"===n){if(/^[a-z]$/.test(o)){r+=o;continue}if("-"===o){if("-"===t[i-1]||":"===t[i-1])throw new SyntaxError(`Expected [a-z], but got "${o}" instead.`);r+=o;continue}if(":"===o){if(":"===t[i-1]||"-"===t[i-1])throw new SyntaxError(`Expected [a-z], but got "${o}" instead.`);r+=o;continue}if("="===o){if("="===t[i-1]||":"===t[i-1]||"-"===t[i-1])throw new SyntaxError(`Expected [a-z], but got "${o}" instead.`);if(!r.endsWith("not")||3!==r.length&&/[a-z]|-/.test(r[i-4]))throw new SyntaxError(`Expected [a-z] or ":", but got "${o}" instead.`);r+=o,n="set";continue}if(/^\s$/.test(o)){r+=" ",n="list";continue}throw new SyntaxError(`Expected [a-z], ",", ":", ":" or a whitespace, but got "${o}" instead.`)}if("set"===n){if(/^\s$/.test(o))continue;if(/^[a-z]|\*$/.test(o)){n="set-item",r+=o;continue}throw new SyntaxError(`Expected [a-z] or a whitespace, but got "${o}" instead.`)}if("set-item"===n){if("*"===t[i-1]){if(","===o){r+=o,n="set";continue}if(/^\s$/.test(o)){i!==t.length-1&&(r+=" "),n="list";continue}throw new SyntaxError(`Expected "," or a whitespace, but got "${o}" instead.`)}if(/^[a-z]$/.test(o)){r+=o;continue}if("-"===o){if("-"===t[i-1]||":"===t[i-1]||"="===t[i-1])throw new SyntaxError(`Expected [a-z], but got "${o}" instead.`);r+=o;continue}if(","===o){r+=o,n="set";continue}if(/^\s$/.test(o)){i!==t.length-1&&(r+=" "),n="list";continue}throw new SyntaxError(`Expected [a-z], "," or a whitespace, but got "${o}" instead.`)}}catch(e){const n="This error occured at: ",r=t=>t.substring(Math.max(0,i-30),i+30),o=r(t),a=" ".repeat(n.length)+r("^".padStart(i+1," "));throw new SyntaxError([e.message,`${n}${o}`,a].join("\n"))}}return r.trimEnd()}static __parse(t){return this.__parseList(this.__lintList(t))}static __stringifyTree(t,e){const n=[];if("include"in t)for(const r in t.include){const i=t.include[r],o=e?[e,r].join(":"):r;!0===i?n.push(o):n.push(this.__stringifyTree(i,o))}else{const r=[],i=[];for(const n in t.exclude){const o=t.exclude[n],a=e?[e,n].join(":"):n;r.push(n),!0!==o&&i.push(this.__stringifyTree(o,a))}n.push(`${e?`${e}:`:""}not=${r.join(",")}`,...i)}return n.join(" ")}}const Me=new Ue(""),$e=new Ue("not=*");function Be(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var Ve=Array.isArray,ze=1/0,We=d?d.prototype:void 0,qe=We?We.toString:void 0;function He(t){if("string"==typeof t)return t;if(Ve(t))return Be(t,He)+"";if(E(t))return qe?qe.call(t):"";var e=t+"";return"0"==e&&1/t==-ze?"-0":e}var Ge="[object AsyncFunction]",Je="[object Function]",Ke="[object GeneratorFunction]",Qe="[object Proxy]";function Ze(t){if(!l(t))return!1;var e=j(t);return e==Je||e==Ke||e==Ge||e==Qe}var Xe,Ye=p["__core-js_shared__"],tn=(Xe=/[^.]+$/.exec(Ye&&Ye.keys&&Ye.keys.IE_PROTO||""))?"Symbol(src)_1."+Xe:"";var en=Function.prototype.toString;function nn(t){if(null!=t){try{return en.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var rn=/^\[object .+?Constructor\]$/,on=Function.prototype,an=Object.prototype,sn=on.toString,cn=an.hasOwnProperty,un=RegExp("^"+sn.call(cn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ln(t){return!(!l(t)||(e=t,tn&&tn in e))&&(Ze(t)?un:rn).test(nn(t));var e}function fn(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return ln(n)?n:void 0}var hn=fn(p,"WeakMap"),pn=9007199254740991,dn=/^(?:0|[1-9]\d*)$/;function yn(t,e){var n=typeof t;return!!(e=null==e?pn:e)&&("number"==n||"symbol"!=n&&dn.test(t))&&t>-1&&t%1==0&&t<e}function vn(t,e){return t===e||t!=t&&e!=e}var gn=9007199254740991;function bn(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=gn}function _n(t){return null!=t&&bn(t.length)&&!Ze(t)}var mn=Object.prototype;function wn(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||mn)}function xn(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function jn(t){return O(t)&&"[object Arguments]"==j(t)}var On=Object.prototype,Sn=On.hasOwnProperty,En=On.propertyIsEnumerable,kn=jn(function(){return arguments}())?jn:function(t){return O(t)&&Sn.call(t,"callee")&&!En.call(t,"callee")};var An="object"==typeof exports&&exports&&!exports.nodeType&&exports,Pn=An&&"object"==typeof module&&module&&!module.nodeType&&module,Tn=Pn&&Pn.exports===An?p.Buffer:void 0,Rn=(Tn?Tn.isBuffer:void 0)||function(){return!1},Dn={};function Nn(t){return function(e){return t(e)}}Dn["[object Float32Array]"]=Dn["[object Float64Array]"]=Dn["[object Int8Array]"]=Dn["[object Int16Array]"]=Dn["[object Int32Array]"]=Dn["[object Uint8Array]"]=Dn["[object Uint8ClampedArray]"]=Dn["[object Uint16Array]"]=Dn["[object Uint32Array]"]=!0,Dn["[object Arguments]"]=Dn["[object Array]"]=Dn["[object ArrayBuffer]"]=Dn["[object Boolean]"]=Dn["[object DataView]"]=Dn["[object Date]"]=Dn["[object Error]"]=Dn["[object Function]"]=Dn["[object Map]"]=Dn["[object Number]"]=Dn["[object Object]"]=Dn["[object RegExp]"]=Dn["[object Set]"]=Dn["[object String]"]=Dn["[object WeakMap]"]=!1;var In="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ln=In&&"object"==typeof module&&module&&!module.nodeType&&module,Cn=Ln&&Ln.exports===In&&f.process,Fn=function(){try{var t=Ln&&Ln.require&&Ln.require("util").types;return t||Cn&&Cn.binding&&Cn.binding("util")}catch(t){}}(),Un=Fn&&Fn.isTypedArray,Mn=Un?Nn(Un):function(t){return O(t)&&bn(t.length)&&!!Dn[j(t)]},$n=Object.prototype.hasOwnProperty;function Bn(t,e){var n=Ve(t),r=!n&&kn(t),i=!n&&!r&&Rn(t),o=!n&&!r&&!i&&Mn(t),a=n||r||i||o,s=a?xn(t.length,String):[],c=s.length;for(var u in t)!e&&!$n.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||yn(u,c))||s.push(u);return s}function Vn(t,e){return function(n){return t(e(n))}}var zn=Vn(Object.keys,Object),Wn=Object.prototype.hasOwnProperty;function qn(t){return _n(t)?Bn(t):function(t){if(!wn(t))return zn(t);var e=[];for(var n in Object(t))Wn.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}var Hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gn=/^\w*$/;var Jn=fn(Object,"create");var Kn=Object.prototype.hasOwnProperty;var Qn=Object.prototype.hasOwnProperty;function Zn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Xn(t,e){for(var n=t.length;n--;)if(vn(t[n][0],e))return n;return-1}Zn.prototype.clear=function(){this.__data__=Jn?Jn(null):{},this.size=0},Zn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Zn.prototype.get=function(t){var e=this.__data__;if(Jn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Kn.call(e,t)?e[t]:void 0},Zn.prototype.has=function(t){var e=this.__data__;return Jn?void 0!==e[t]:Qn.call(e,t)},Zn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Jn&&void 0===e?"__lodash_hash_undefined__":e,this};var Yn=Array.prototype.splice;function tr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}tr.prototype.clear=function(){this.__data__=[],this.size=0},tr.prototype.delete=function(t){var e=this.__data__,n=Xn(e,t);return!(n<0)&&(n==e.length-1?e.pop():Yn.call(e,n,1),--this.size,!0)},tr.prototype.get=function(t){var e=this.__data__,n=Xn(e,t);return n<0?void 0:e[n][1]},tr.prototype.has=function(t){return Xn(this.__data__,t)>-1},tr.prototype.set=function(t,e){var n=this.__data__,r=Xn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var er=fn(p,"Map");function nr(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function rr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}rr.prototype.clear=function(){this.size=0,this.__data__={hash:new Zn,map:new(er||tr),string:new Zn}},rr.prototype.delete=function(t){var e=nr(this,t).delete(t);return this.size-=e?1:0,e},rr.prototype.get=function(t){return nr(this,t).get(t)},rr.prototype.has=function(t){return nr(this,t).has(t)},rr.prototype.set=function(t,e){var n=nr(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var ir="Expected a function";function or(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(ir);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(or.Cache||rr),n}or.Cache=rr;var ar,sr,cr,ur=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lr=/\\(\\)?/g,fr=(ar=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ur,(function(t,n,r,i){e.push(r?i.replace(lr,"$1"):n||t)})),e},sr=or(ar,(function(t){return 500===cr.size&&cr.clear(),t})),cr=sr.cache,sr),hr=fr;function pr(t){return null==t?"":He(t)}function dr(t,e){return Ve(t)?t:function(t,e){if(Ve(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!E(t))||Gn.test(t)||!Hn.test(t)||null!=e&&t in Object(e)}(t,e)?[t]:hr(pr(t))}var yr=1/0;function vr(t){if("string"==typeof t||E(t))return t;var e=t+"";return"0"==e&&1/t==-yr?"-0":e}function gr(t,e){for(var n=0,r=(e=dr(e,t)).length;null!=t&&n<r;)t=t[vr(e[n++])];return n&&n==r?t:void 0}function br(t,e,n){var r=null==t?void 0:gr(t,e);return void 0===r?n:r}function _r(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function mr(t){var e=this.__data__=new tr(t);this.size=e.size}function wr(){return[]}mr.prototype.clear=function(){this.__data__=new tr,this.size=0},mr.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},mr.prototype.get=function(t){return this.__data__.get(t)},mr.prototype.has=function(t){return this.__data__.has(t)},mr.prototype.set=function(t,e){var n=this.__data__;if(n instanceof tr){var r=n.__data__;if(!er||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new rr(r)}return n.set(t,e),this.size=n.size,this};var xr=Object.prototype.propertyIsEnumerable,jr=Object.getOwnPropertySymbols,Or=jr?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}(jr(t),(function(e){return xr.call(t,e)})))}:wr,Sr=Or;function Er(t,e,n){var r=e(t);return Ve(t)?r:_r(r,n(t))}function kr(t){return Er(t,qn,Sr)}var Ar=fn(p,"DataView"),Pr=fn(p,"Promise"),Tr=fn(p,"Set"),Rr="[object Map]",Dr="[object Promise]",Nr="[object Set]",Ir="[object WeakMap]",Lr="[object DataView]",Cr=nn(Ar),Fr=nn(er),Ur=nn(Pr),Mr=nn(Tr),$r=nn(hn),Br=j;(Ar&&Br(new Ar(new ArrayBuffer(1)))!=Lr||er&&Br(new er)!=Rr||Pr&&Br(Pr.resolve())!=Dr||Tr&&Br(new Tr)!=Nr||hn&&Br(new hn)!=Ir)&&(Br=function(t){var e=j(t),n="[object Object]"==e?t.constructor:void 0,r=n?nn(n):"";if(r)switch(r){case Cr:return Lr;case Fr:return Rr;case Ur:return Dr;case Mr:return Nr;case $r:return Ir}return e});var Vr=Br,zr=p.Uint8Array;function Wr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new rr;++e<n;)this.add(t[e])}function qr(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function Hr(t,e){return t.has(e)}Wr.prototype.add=Wr.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Wr.prototype.has=function(t){return this.__data__.has(t)};var Gr=1,Jr=2;function Kr(t,e,n,r,i,o){var a=n&Gr,s=t.length,c=e.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(t),l=o.get(e);if(u&&l)return u==e&&l==t;var f=-1,h=!0,p=n&Jr?new Wr:void 0;for(o.set(t,e),o.set(e,t);++f<s;){var d=t[f],y=e[f];if(r)var v=a?r(y,d,f,e,t,o):r(d,y,f,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(p){if(!qr(e,(function(t,e){if(!Hr(p,e)&&(d===t||i(d,t,n,r,o)))return p.push(e)}))){h=!1;break}}else if(d!==y&&!i(d,y,n,r,o)){h=!1;break}}return o.delete(t),o.delete(e),h}function Qr(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Zr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var Xr=1,Yr=2,ti="[object Boolean]",ei="[object Date]",ni="[object Error]",ri="[object Map]",ii="[object Number]",oi="[object RegExp]",ai="[object Set]",si="[object String]",ci="[object Symbol]",ui="[object ArrayBuffer]",li="[object DataView]",fi=d?d.prototype:void 0,hi=fi?fi.valueOf:void 0;var pi=1,di=Object.prototype.hasOwnProperty;var yi=1,vi="[object Arguments]",gi="[object Array]",bi="[object Object]",_i=Object.prototype.hasOwnProperty;function mi(t,e,n,r,i,o){var a=Ve(t),s=Ve(e),c=a?gi:Vr(t),u=s?gi:Vr(e),l=(c=c==vi?bi:c)==bi,f=(u=u==vi?bi:u)==bi,h=c==u;if(h&&Rn(t)){if(!Rn(e))return!1;a=!0,l=!1}if(h&&!l)return o||(o=new mr),a||Mn(t)?Kr(t,e,n,r,i,o):function(t,e,n,r,i,o,a){switch(n){case li:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ui:return!(t.byteLength!=e.byteLength||!o(new zr(t),new zr(e)));case ti:case ei:case ii:return vn(+t,+e);case ni:return t.name==e.name&&t.message==e.message;case oi:case si:return t==e+"";case ri:var s=Qr;case ai:var c=r&Xr;if(s||(s=Zr),t.size!=e.size&&!c)return!1;var u=a.get(t);if(u)return u==e;r|=Yr,a.set(t,e);var l=Kr(s(t),s(e),r,i,o,a);return a.delete(t),l;case ci:if(hi)return hi.call(t)==hi.call(e)}return!1}(t,e,c,n,r,i,o);if(!(n&yi)){var p=l&&_i.call(t,"__wrapped__"),d=f&&_i.call(e,"__wrapped__");if(p||d){var y=p?t.value():t,v=d?e.value():e;return o||(o=new mr),i(y,v,n,r,o)}}return!!h&&(o||(o=new mr),function(t,e,n,r,i,o){var a=n&pi,s=kr(t),c=s.length;if(c!=kr(e).length&&!a)return!1;for(var u=c;u--;){var l=s[u];if(!(a?l in e:di.call(e,l)))return!1}var f=o.get(t),h=o.get(e);if(f&&h)return f==e&&h==t;var p=!0;o.set(t,e),o.set(e,t);for(var d=a;++u<c;){var y=t[l=s[u]],v=e[l];if(r)var g=a?r(v,y,l,e,t,o):r(y,v,l,t,e,o);if(!(void 0===g?y===v||i(y,v,n,r,o):g)){p=!1;break}d||(d="constructor"==l)}if(p&&!d){var b=t.constructor,_=e.constructor;b==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,r,i,o))}function wi(t,e,n,r,i){return t===e||(null==t||null==e||!O(t)&&!O(e)?t!=t&&e!=e:mi(t,e,n,r,wi,i))}function xi(t,e){return wi(t,e)}class ji extends Error{constructor(){super("not enough info to update; please reload resource instead")}}function Oi(t){return Object.prototype.toString.call(t)}var Si=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function Ei(t,e){if(t.forEach)return t.forEach(e);for(var n=0;n<t.length;n++)e(t[n],n,t)}var ki=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e},Ai=Object.prototype.hasOwnProperty||function(t,e){return e in t};function Pi(t){if("object"==typeof t&&null!==t){var e;if(Si(t))e=[];else if("[object Date]"===Oi(t))e=new Date(t.getTime?t.getTime():t);else if(function(t){return"[object RegExp]"===Oi(t)}(t))e=new RegExp(t);else if(function(t){return"[object Error]"===Oi(t)}(t))e={message:t.message};else if(function(t){return"[object Boolean]"===Oi(t)}(t)||function(t){return"[object Number]"===Oi(t)}(t)||function(t){return"[object String]"===Oi(t)}(t))e=Object(t);else if(Object.create&&Object.getPrototypeOf)e=Object.create(Object.getPrototypeOf(t));else if(t.constructor===Object)e={};else{var n=t.constructor&&t.constructor.prototype||t.__proto__||{},r=function(){};r.prototype=n,e=new r}return Ei(ki(t),(function(n){e[n]=t[n]})),e}return t}function Ti(t,e,n){var r=[],i=[],o=!0;return function t(a){var s=n?Pi(a):a,c={},u=!0,l={node:s,node_:a,path:[].concat(r),parent:i[i.length-1],parents:i,key:r[r.length-1],isRoot:0===r.length,level:r.length,circular:null,update:function(t,e){l.isRoot||(l.parent.node[l.key]=t),l.node=t,e&&(u=!1)},delete:function(t){delete l.parent.node[l.key],t&&(u=!1)},remove:function(t){Si(l.parent.node)?l.parent.node.splice(l.key,1):delete l.parent.node[l.key],t&&(u=!1)},keys:null,before:function(t){c.before=t},after:function(t){c.after=t},pre:function(t){c.pre=t},post:function(t){c.post=t},stop:function(){o=!1},block:function(){u=!1}};if(!o)return l;function f(){if("object"==typeof l.node&&null!==l.node){l.keys&&l.node_===l.node||(l.keys=ki(l.node)),l.isLeaf=0===l.keys.length;for(var t=0;t<i.length;t++)if(i[t].node_===a){l.circular=i[t];break}}else l.isLeaf=!0,l.keys=null;l.notLeaf=!l.isLeaf,l.notRoot=!l.isRoot}f();var h=e.call(l,l.node);return void 0!==h&&l.update&&l.update(h),c.before&&c.before.call(l,l.node),u?("object"!=typeof l.node||null===l.node||l.circular||(i.push(l),f(),Ei(l.keys,(function(e,i){r.push(e),c.pre&&c.pre.call(l,l.node[e],e);var o=t(l.node[e]);n&&Ai.call(l.node,e)&&(l.node[e]=o.node),o.isLast=i===l.keys.length-1,o.isFirst=0===i,c.post&&c.post.call(l,o),r.pop()})),i.pop()),c.after&&c.after.call(l,l.node),l):l}(t).node}function Ri(t){this.value=t}function Di(t){return new Ri(t)}Ri.prototype.get=function(t){for(var e=this.value,n=0;n<t.length;n++){var r=t[n];if(!e||!Ai.call(e,r))return;e=e[r]}return e},Ri.prototype.has=function(t){for(var e=this.value,n=0;n<t.length;n++){var r=t[n];if(!e||!Ai.call(e,r))return!1;e=e[r]}return!0},Ri.prototype.set=function(t,e){for(var n=this.value,r=0;r<t.length-1;r++){var i=t[r];Ai.call(n,i)||(n[i]={}),n=n[i]}return n[t[r]]=e,e},Ri.prototype.map=function(t){return Ti(this.value,t,!0)},Ri.prototype.forEach=function(t){return this.value=Ti(this.value,t,!1),this.value},Ri.prototype.reduce=function(t,e){var n=1===arguments.length,r=n?this.value:e;return this.forEach((function(e){this.isRoot&&n||(r=t.call(this,r,e))})),r},Ri.prototype.paths=function(){var t=[];return this.forEach((function(){t.push(this.path)})),t},Ri.prototype.nodes=function(){var t=[];return this.forEach((function(){t.push(this.node)})),t},Ri.prototype.clone=function(){var t=[],e=[];return function n(r){for(var i=0;i<t.length;i++)if(t[i]===r)return e[i];if("object"==typeof r&&null!==r){var o=Pi(r);return t.push(r),e.push(o),Ei(ki(r),(function(t){o[t]=n(r[t])})),t.pop(),e.pop(),o}return r}(this.value)},Ei(ki(Ri.prototype),(function(t){Di[t]=function(e){var n=[].slice.call(arguments,1),r=new Ri(e);return r[t].apply(r,n)}}));var Ni=Di;class Ii{constructor(){this.__callbacks=[]}share(t){const{related:e,source:n,data:r}=t,i=null===r?new Map([[n,null]]):Ii.__createPatch(r);[...this.__callbacks].forEach((t=>{t((t=>{const n=Ii.__applyPatch(i,t,e);return xi(t,n)?t:n}))}))}track(t){return this.__callbacks.push(t),()=>{this.__callbacks.splice(this.__callbacks.indexOf(t),1)}}cease(){this.__callbacks.length=0}static __isCollection(t){return"string"==typeof br(t,"_links.first.href")}static __isResource(t){return"string"==typeof br(t,"_links.self.href")}static __approximateURI(t){try{const e=new URL(t);return e.search="",e.hash="",e.toString()}catch(e){return t}}static __createPatch(t){return Ni(t).reduce((function(t,e){if(!Ii.__isResource(e)||Ii.__isCollection(e))return t;const n=Ni(e).map((function(){if("_embedded"===this.key)return this.delete(!0)}));return t.set(e._links.self.href,n),t}),new Map)}static __applyPatch(t,e,n){var r,i;const o=null!==(r=null==n?void 0:n.map((t=>Ii.__approximateURI(t))))&&void 0!==r?r:[];return null!==(i=Ni({data:e}).map((function(e){if(!Ii.__isResource(e))return;const n=e._links.self.href,r=Ii.__approximateURI(n);if(o.includes(r))throw new Ii.UpdateError;if(t.has(n)){const r=t.get(n);if(r)return this.update(Object.assign(Object.assign({},e),r),!0);if(!this.parent.parent)return this.delete(!0);throw new Ii.UpdateError}})).data)&&void 0!==i?i:null}}Ii.UpdateError=ji;var Li=P((function(t,e){var n="undefined"!=typeof self?self:k,r=function(){function t(){this.fetch=!1,this.DOMException=n.DOMException}return t.prototype=n,new t}();!function(t){!function(e){var n="URLSearchParams"in t,r="Symbol"in t&&"iterator"in Symbol,i="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),o="FormData"in t,a="ArrayBuffer"in t;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&s.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function l(t){return"string"!=typeof t&&(t=String(t)),t}function f(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function y(t){var e=new FileReader,n=d(e);return e.readAsArrayBuffer(t),n}function v(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:n&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():a&&i&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=v(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=v(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var t,e,n,r=p(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=d(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(t,e){t=u(t),e=l(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},h.prototype.delete=function(t){delete this.map[u(t)]},h.prototype.get=function(t){return t=u(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(u(t))},h.prototype.set=function(t,e){this.map[u(t)]=l(e)},h.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},h.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),f(t)},h.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),f(t)},h.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),f(t)},r&&(h.prototype[Symbol.iterator]=h.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function _(t,e){var n,r,i=(e=e||{}).body;if(t instanceof _){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new h(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),b.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function m(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function w(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new h(e.headers),this.url=e.url||"",this._initBody(t)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},g.call(_.prototype),g.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:0,statusText:""});return t.type="error",t};var x=[301,302,303,307,308];w.redirect=function(t,e){if(-1===x.indexOf(e))throw new RangeError("Invalid status code");return new w(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function j(t,n){return new Promise((function(r,o){var a=new _(t,n);if(a.signal&&a.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,n={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new h,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();e.append(r,i)}})),e)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new w(i,n))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}j.polyfill=!0,t.fetch||(t.fetch=j,t.Headers=h,t.Request=_,t.Response=w),e.Headers=h,e.Request=_,e.Response=w,e.fetch=j,Object.defineProperty(e,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(e=i.fetch).default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e})),Ci=P((function(t,e){t.exports=function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=s(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,a=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}var l={};l[l.Fatal=0]="Fatal",l[l.Error=0]="Error",l[l.Warn=1]="Warn",l[l.Log=2]="Log",l[l.Info=3]="Info",l[l.Success=3]="Success",l[l.Debug=4]="Debug",l[l.Trace=5]="Trace",l[l.Silent=-1/0]="Silent",l[l.Verbose=1/0]="Verbose";var f={silent:{level:-1},fatal:{level:l.Fatal},error:{level:l.Error},warn:{level:l.Warn},log:{level:l.Log},info:{level:l.Info},success:{level:l.Success},debug:{level:l.Debug},trace:{level:l.Trace},verbose:{level:l.Trace},ready:{level:l.Info},start:{level:l.Info}};function h(t){return e=t,!("[object Object]"!==Object.prototype.toString.call(e)||!t.message&&!t.args||t.stack);var e}var p=!1,d=[],y=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var r in t(this,e),this._reporters=n.reporters||[],this._types=n.types||f,this.level=void 0!==n.level?n.level:3,this._defaults=n.defaults||{},this._async=void 0!==n.async?n.async:void 0,this._stdout=n.stdout,this._stderr=n.stderr,this._mockFn=n.mockFn,this._throttle=n.throttle||1e3,this._throttleMin=n.throttleMin||5,this._types){var i=o(o({type:r},this._types[r]),this._defaults);this[r]=this._wrapLogFn(i),this[r].raw=this._wrapLogFn(i,!0)}this._mockFn&&this.mockTypes(),this._lastLogSerialized=void 0,this._lastLog=void 0,this._lastLogTime=void 0,this._lastLogCount=0,this._throttleTimeout=void 0}return n(e,[{key:"create",value:function(t){return new e(Object.assign({reporters:this._reporters,level:this.level,types:this._types,defaults:this._defaults,stdout:this._stdout,stderr:this._stderr,mockFn:this._mockFn},t))}},{key:"withDefaults",value:function(t){return this.create({defaults:Object.assign({},this._defaults,t)})}},{key:"withTag",value:function(t){return this.withDefaults({tag:this._defaults.tag?this._defaults.tag+":"+t:t})}},{key:"addReporter",value:function(t){return this._reporters.push(t),this}},{key:"removeReporter",value:function(t){if(t){var e=this._reporters.indexOf(t);if(e>=0)return this._reporters.splice(e,1)}else this._reporters.splice(0);return this}},{key:"setReporters",value:function(t){return this._reporters=Array.isArray(t)?t:[t],this}},{key:"wrapAll",value:function(){this.wrapConsole(),this.wrapStd()}},{key:"restoreAll",value:function(){this.restoreConsole(),this.restoreStd()}},{key:"wrapConsole",value:function(){for(var t in this._types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}},{key:"restoreConsole",value:function(){for(var t in this._types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}},{key:"wrapStd",value:function(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}},{key:"_wrapStream",value:function(t,e){var n=this;t&&(t.__write||(t.__write=t.write),t.write=function(t){n[e].raw(String(t).trim())})}},{key:"restoreStd",value:function(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}},{key:"_restoreStream",value:function(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}},{key:"pauseLogs",value:function(){p=!0}},{key:"resumeLogs",value:function(){p=!1;var t,e=u(d.splice(0));try{for(e.s();!(t=e.n()).done;){var n=t.value;n[0]._logFn(n[1],n[2])}}catch(t){e.e(t)}finally{e.f()}}},{key:"mockTypes",value:function(t){if(this._mockFn=t||this._mockFn,"function"==typeof this._mockFn)for(var e in this._types)this[e]=this._mockFn(e,this._types[e])||this[e],this[e].raw=this[e]}},{key:"_wrapLogFn",value:function(t,e){var n=this;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];if(!p)return n._logFn(t,i,e);d.push([n,t,i,e])}}},{key:"_logFn",value:function(t,e,n){var r=this;if(t.level>this.level)return!!this._async&&Promise.resolve(!1);var i=Object.assign({date:new Date,args:[]},t);!n&&1===e.length&&h(e[0])?Object.assign(i,e[0]):i.args=Array.from(e),i.message&&(i.args.unshift(i.message),delete i.message),i.additional&&(Array.isArray(i.additional)||(i.additional=i.additional.split("\n")),i.args.push("\n"+i.additional.join("\n")),delete i.additional),i.type="string"==typeof i.type?i.type.toLowerCase():"",i.tag="string"==typeof i.tag?i.tag.toLowerCase():"";var s=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=r._lastLogCount-r._throttleMin;if(r._lastLog&&e>0){var n=a(r._lastLog.args);e>1&&n.push("(repeated ".concat(e," times)")),r._log(o(o({},r._lastLog),{},{args:n})),r._lastLogCount=1}if(t){if(r._lastLog=i,r._async)return r._logAsync(i);r._log(i)}};clearTimeout(this._throttleTimeout);var c=this._lastLogTime?i.date-this._lastLogTime:0;if(this._lastLogTime=i.date,c<this._throttle)try{var u=JSON.stringify([i.type,i.tag,i.args]),l=this._lastLogSerialized===u;if(this._lastLogSerialized=u,l&&(this._lastLogCount++,this._lastLogCount>this._throttleMin))return void(this._throttleTimeout=setTimeout(s,this._throttle))}catch(t){}s(!0)}},{key:"_log",value:function(t){var e,n=u(this._reporters);try{for(n.s();!(e=n.n()).done;)e.value.log(t,{async:!1,stdout:this.stdout,stderr:this.stderr})}catch(t){n.e(t)}finally{n.f()}}},{key:"_logAsync",value:function(t){var e=this;return Promise.all(this._reporters.map((function(n){return n.log(t,{async:!0,stdout:e.stdout,stderr:e.stderr})})))}},{key:"stdout",get:function(){return this._stdout||console._stdout}},{key:"stderr",get:function(){return this._stderr||console._stderr}}]),e}();y.prototype.add=y.prototype.addReporter,y.prototype.remove=y.prototype.removeReporter,y.prototype.clear=y.prototype.removeReporter,y.prototype.withScope=y.prototype.withTag,y.prototype.mock=y.prototype.mockTypes,y.prototype.pause=y.prototype.pauseLogs,y.prototype.resume=y.prototype.resumeLogs;var v,g=function(){function e(n){t(this,e),this.options=Object.assign({},n),this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}return n(e,[{key:"log",value:function(t){var e=t.level<1?console.__error||console.error:1===t.level&&console.warn?console.__warn||console.warn:console.__log||console.log,n="log"!==t.type?t.type:"",r=t.tag?t.tag:"",i=this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor,o="\n background: ".concat(i,";\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n "),s="%c".concat([r,n].filter(Boolean).join(":"));"string"==typeof t.args[0]?e.apply(void 0,["".concat(s,"%c ").concat(t.args[0]),o,""].concat(a(t.args.slice(1)))):e.apply(void 0,[s,o].concat(a(t.args)))}}]),e}();return"undefined"!=typeof window&&window.consola||((v=new y({reporters:[new g]})).Consola=y,v.LogLevel=l,v.BrowserReporter=g,v)}()})),Fi=function(t,e,n,r){this.name=t,this.fn=e,this.args=n,this.modifiers=r};function Ui(t,e){return void 0===e&&(e="simple"),"object"==typeof t?t[e]:t}function Mi(t,e,n){if(t.length){var r=t.shift(),i=Mi(t,e,n);return r.perform(i,n)}return Ui(e)}function $i(t,e,n){if(t.length){var r=t.shift(),i=$i(t,e,n);return r.performAsync(i,n)}return function(t){return Promise.resolve(Ui(e,"async")(t))}}Fi.prototype._test=function(t){var e=this.fn;try{Mi(this.modifiers.slice(),e,this)(t)}catch(t){e=function(){return!1}}try{return Mi(this.modifiers.slice(),e,this)(t)}catch(t){return!1}},Fi.prototype._check=function(t){try{Mi(this.modifiers.slice(),this.fn,this)(t)}catch(t){if(Mi(this.modifiers.slice(),(function(t){return t}),this)(!1))return}if(!Mi(this.modifiers.slice(),this.fn,this)(t))throw null},Fi.prototype._testAsync=function(t){var e=this;return new Promise((function(n,r){$i(e.modifiers.slice(),e.fn,e)(t).then((function(e){e?n(t):r(null)})).catch((function(t){return r(t)}))}))};var Bi=function(t,e,n){this.name=t,this.perform=e,this.performAsync=n},Vi=function(t){function e(n,r,i,o){for(var a=[],s=arguments.length-4;s-- >0;)a[s]=arguments[s+4];t.call(this,a),t.captureStackTrace&&t.captureStackTrace(this,e),this.rule=n,this.value=r,this.cause=i,this.target=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),zi=function(t,e){void 0===t&&(t=[]),void 0===e&&(e=[]),this.chain=t,this.nextRuleModifiers=e};function Wi(t,e,n,r){if(e.length){var i=e.shift();i._testAsync(t).then((function(){Wi(t,e,n,r)}),(function(e){r(new Vi(i,t,e))}))}else n(t)}zi.prototype._applyRule=function(t,e){var n=this;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return n.chain.push(new Fi(e,t.apply(n,r),r,n.nextRuleModifiers)),n.nextRuleModifiers=[],n}},zi.prototype._applyModifier=function(t,e){return this.nextRuleModifiers.push(new Bi(e,t.simple,t.async)),this},zi.prototype._clone=function(){return new zi(this.chain.slice(),this.nextRuleModifiers.slice())},zi.prototype.test=function(t){return this.chain.every((function(e){return e._test(t)}))},zi.prototype.testAll=function(t){var e=[];return this.chain.forEach((function(n){try{n._check(t)}catch(r){e.push(new Vi(n,t,r))}})),e},zi.prototype.check=function(t){this.chain.forEach((function(e){try{e._check(t)}catch(n){throw new Vi(e,t,n)}}))},zi.prototype.testAsync=function(t){var e=this;return new Promise((function(n,r){Wi(t,e.chain.slice(),n,r)}))};var qi=function(t,e){return!(!e||"string"!=typeof t||0!==t.trim().length)||null==t};function Hi(){return"undefined"!=typeof Proxy?Ji(new zi):Ki(new zi)}var Gi={};function Ji(t){return new Proxy(t,{get:function(e,n){if(n in e)return e[n];var r=Ji(t._clone());return n in Qi?r._applyModifier(Qi[n],n):n in Gi?r._applyRule(Gi[n],n):n in Yi?r._applyRule(Yi[n],n):void 0}})}function Ki(t){var e=function(t,e){return Object.keys(t).forEach((function(n){e[n]=function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return Ki(e._clone())._applyRule(t[n],n).apply(void 0,r)}})),e},n=e(Yi,t),r=e(Gi,n);return Object.keys(Qi).forEach((function(t){Object.defineProperty(r,t,{get:function(){return Ki(r._clone())._applyModifier(Qi[t],t)}})})),r}Hi.extend=function(t){Object.assign(Gi,t)},Hi.clearCustomRules=function(){Gi={}};var Qi={not:{simple:function(t){return function(e){return!t(e)}},async:function(t){return function(e){return Promise.resolve(t(e)).then((function(t){return!t})).catch((function(){return!0}))}}},some:{simple:function(t){return function(e){return Xi(e).some((function(e){try{return t(e)}catch(t){return!1}}))}},async:function(t){return function(e){return Promise.all(Xi(e).map((function(e){try{return t(e).catch((function(){return!1}))}catch(t){return!1}}))).then((function(t){return t.some(Boolean)}))}}},every:{simple:function(t){return function(e){return!1!==e&&Xi(e).every(t)}},async:function(t){return function(e){return Promise.all(Xi(e).map(t)).then((function(t){return t.every(Boolean)}))}}},strict:{simple:function(t,e){return function(n){return Zi(e)&&n&&"object"==typeof n?Object.keys(e.args[0]).length===Object.keys(n).length&&t(n):t(n)}},async:function(t,e){return function(n){return Promise.resolve(t(n)).then((function(t){return Zi(e)&&n&&"object"==typeof n?Object.keys(e.args[0]).length===Object.keys(n).length&&t:t})).catch((function(){return!1}))}}}};function Zi(t){return t&&"schema"===t.name&&t.args.length>0&&"object"==typeof t.args[0]}function Xi(t){return"string"==typeof t?t.split(""):t}var Yi={equal:function(t){return function(e){return e==t}},exact:function(t){return function(e){return e===t}},number:function(t){return void 0===t&&(t=!0),function(e){return"number"==typeof e&&(t||isFinite(e))}},integer:function(){return function(t){return(Number.isInteger||eo)(t)}},numeric:function(){return function(t){return!isNaN(parseFloat(t))&&isFinite(t)}},string:function(){return to("string")},boolean:function(){return to("boolean")},undefined:function(){return to("undefined")},null:function(){return to("null")},array:function(){return to("array")},object:function(){return to("object")},instanceOf:function(t){return function(e){return e instanceof t}},pattern:function(t){return function(e){return t.test(e)}},lowercase:function(){return function(t){return"boolean"==typeof t||t===t.toLowerCase()&&""!==t.trim()}},uppercase:function(){return function(t){return t===t.toUpperCase()&&""!==t.trim()}},vowel:function(){return function(t){return/^[aeiou]+$/i.test(t)}},consonant:function(){return function(t){return/^(?=[^aeiou])([a-z]+)$/i.test(t)}},first:function(t){return function(e){return e[0]==t}},last:function(t){return function(e){return e[e.length-1]==t}},empty:function(){return function(t){return 0===t.length}},length:function(t,e){return function(n){return n.length>=t&&n.length<=(e||t)}},minLength:function(t){return function(e){return e.length>=t}},maxLength:function(t){return function(e){return e.length<=t}},negative:function(){return function(t){return t<0}},positive:function(){return function(t){return t>=0}},between:function(t,e){return function(n){return n>=t&&n<=e}},range:function(t,e){return function(n){return n>=t&&n<=e}},lessThan:function(t){return function(e){return e<t}},lessThanOrEqual:function(t){return function(e){return e<=t}},greaterThan:function(t){return function(e){return e>t}},greaterThanOrEqual:function(t){return function(e){return e>=t}},even:function(){return function(t){return t%2==0}},odd:function(){return function(t){return t%2!=0}},includes:function(t){return function(e){return~e.indexOf(t)}},schema:function(t){return function(t){return{simple:function(e){var n=[];if(Object.keys(t).forEach((function(r){var i=t[r];try{i.check((e||{})[r])}catch(t){t.target=r,n.push(t)}})),n.length>0)throw n;return!0},async:function(e){var n=[],r=Object.keys(t).map((function(r){return t[r].testAsync((e||{})[r]).catch((function(t){t.target=r,n.push(t)}))}));return Promise.all(r).then((function(){if(n.length>0)throw n;return!0}))}}}(t)},passesAnyOf:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return function(e){return t.some((function(t){return t.test(e)}))}},optional:function(t,e){return void 0===e&&(e=!1),{simple:function(n){return qi(n,e)||void 0===t.check(n)},async:function(n){return qi(n,e)||t.testAsync(n)}}}};function to(t){return function(e){return Array.isArray(e)&&"array"===t||null===e&&"null"===t||typeof e===t}}function eo(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}Hi.extend({curieChain:()=>t=>Array.isArray(t)&&t[0]instanceof URL&&t.slice(1).every((t=>"string"==typeof t)),typeOf:t=>e=>typeof e===t});const no=Hi().schema({clear:Hi().typeOf("function"),getItem:Hi().typeOf("function"),key:Hi().typeOf("function"),length:Hi().number(),removeItem:Hi().typeOf("function"),setItem:Hi().typeOf("function")});class ro extends Error{constructor(t){ro.v8n.constructor.check(t),super(`authentication failed with code ${t.code}`),this.originalError=t.originalError,this.code=t.code}}ro.NEW_PASSWORD_REQUIRED="NEW_PASSWORD_REQUIRED",ro.INVALID_NEW_PASSWORD="INVALID_NEW_PASSWORD",ro.UNAUTHORIZED="UNAUTHORIZED",ro.INVALID_FORM="INVALID_FORM",ro.UNAVAILABLE="UNAVAILABLE",ro.UNKNOWN="UNKNOWN",ro.v8n={constructor:Hi().schema({code:Hi().passesAnyOf(Hi().exact(ro.NEW_PASSWORD_REQUIRED),Hi().exact(ro.INVALID_NEW_PASSWORD),Hi().exact(ro.UNAUTHORIZED),Hi().exact(ro.INVALID_FORM),Hi().exact(ro.UNAVAILABLE),Hi().exact(ro.UNKNOWN))})};var io=P((function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),oo=P((function(t){var e=io.default;t.exports=function(t,n){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,n||"default");if("object"!==e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports})),ao=P((function(t){var e=io.default;t.exports=function(t){var n=oo(t,"string");return"symbol"===e(n)?n:String(n)},t.exports.__esModule=!0,t.exports.default=t.exports})),so=A(P((function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ao(r.key),r)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}))),co=P((function(t){t.exports=function(t,e){return e.get?e.get.call(t):e.value},t.exports.__esModule=!0,t.exports.default=t.exports})),uo=P((function(t){t.exports=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)},t.exports.__esModule=!0,t.exports.default=t.exports})),lo=A(P((function(t){t.exports=function(t,e){var n=uo(t,e,"get");return co(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports}))),fo=new WeakMap,ho=function(){function t(){fo.set(this,{writable:!0,value:new Map})}var e=t.prototype;return e.key=function(t){t=Number.parseInt(t,10);for(var e=lo(this,fo).keys(),n=0,r=e.next();!r.done;){if(n===t)return r.value;n+=1,r=e.next()}return null},e.getItem=function(t){var e;return null!=(e=lo(this,fo).get(""+t))?e:null},e.setItem=function(t,e){lo(this,fo).set(""+t,""+e)},e.removeItem=function(t){lo(this,fo).delete(""+t)},e.clear=function(){lo(this,fo).clear()},so(t,[{key:"length",get:function(){return lo(this,fo).size}}]),t}(),po=ho;class yo extends Error{constructor(t){super(),yo.v8n.constructor.check(t),this.response=t}}yo.v8n={constructor:Hi().instanceOf(Li.Response)};var vo=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},go=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function bo(t){const{json:e}=t,n=go(t,["json"]);if("_links"in e){const t=e._links;e._links=Object.entries(t).reduce(((t,[e,r])=>{if(Array.isArray(r))return Object.assign(Object.assign({},t),{[e]:r});const i=new jo(Object.assign(Object.assign({},n),{path:[new URL(r.href)]})),o={delete:i.delete.bind(i),follow:i.follow.bind(i),get:i.get.bind(i),patch:i.patch.bind(i),post:i.post.bind(i),put:i.put.bind(i)};return Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},r),o)})}),{})}if("_embedded"in e){const t=e._embedded;e._embedded=Object.entries(t).reduce(((t,[e,r])=>Object.assign(t,{[e]:Array.isArray(r)?r.map((t=>bo(Object.assign(Object.assign({},n),{json:t})))):bo(Object.assign(Object.assign({},n),{json:r}))})),{})}return e}class _o extends Li.Response{constructor(t){_o.v8n.constructor.check(t),super(t.body,t),this._console=t.console,this._fetch=t.fetch,this._cache=t.cache}json(){const t=Object.create(null,{json:{get:()=>super.json}});return vo(this,void 0,void 0,(function*(){const e=yield t.json.call(this),n={cache:this._cache,console:this._console,fetch:this._fetch};return bo(Object.assign({json:e},n))}))}}_o.v8n={constructor:Hi().schema({cache:no,console:Hi().instanceOf(Ci.constructor),fetch:Hi().typeOf("function")})};var mo=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))};function wo(t,e){const n=""===t?"":t+":";return"string"==typeof e?n+e:Array.isArray(e)?e.map((e=>wo(t,e))).join():Object.entries(e).map((([t,e])=>wo(n+t,e))).join()}function xo(t){return"string"==typeof t?t:Array.isArray(t)?t.map((t=>xo(t))).join():Object.entries(t).map((([t,e])=>`${t} ${e}`)).join()}class jo{constructor(t){jo.v8n.classConstructor.check(t),this._path=t.path,this._fetch=t.fetch,this._cache=t.cache,this._console=t.console}get(t){return mo(this,void 0,void 0,(function*(){jo.v8n.get.check(t);const e=yield this._resolve(),{filters:n,fields:r,offset:i,limit:o,order:a,zoom:s}=null!=t?t:{};void 0!==n&&n.forEach((t=>{const[n,r=""]=t.split("=");n&&e.searchParams.append(n,r)})),void 0!==r&&e.searchParams.set("fields",r.join(",")),void 0!==i&&e.searchParams.set("offset",String(i)),void 0!==o&&e.searchParams.set("limit",String(o)),void 0!==a&&e.searchParams.set("order",xo(a)),void 0!==s&&e.searchParams.set("zoom",wo("",s));const c=yield this._fetch(new Li.Request(e.toString())),u={cache:this._cache,console:this._console,fetch:this._fetch};return new _o(Object.assign(Object.assign(Object.assign({},u),c),{body:yield c.text()}))}))}put(t){return mo(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new Li.Request(e.toString(),{body:JSON.stringify(t),method:"PUT"}),r=yield this._fetch(n),i={cache:this._cache,console:this._console,fetch:this._fetch};return new _o(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}post(t){return mo(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new Li.Request(e.toString(),{body:JSON.stringify(t),method:"POST"}),r=yield this._fetch(n),i={cache:this._cache,console:this._console,fetch:this._fetch};return new _o(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}patch(t){return mo(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new Li.Request(e.toString(),{body:JSON.stringify(t),method:"PATCH"}),r=yield this._fetch(n),i={cache:this._cache,console:this._console,fetch:this._fetch};return new _o(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}delete(){return mo(this,void 0,void 0,(function*(){const t=yield this._resolve(),e=new Li.Request(t.toString(),{method:"DELETE"}),n=yield this._fetch(e),r={cache:this._cache,console:this._console,fetch:this._fetch};return new _o(Object.assign(Object.assign(Object.assign({},r),n),{body:yield n.text()}))}))}follow(t){jo.v8n.follow.check(t);const e={cache:this._cache,console:this._console,fetch:this._fetch},n=this._path.concat(t);return new jo(Object.assign(Object.assign({},e),{path:n}))}_resolve(){return mo(this,void 0,void 0,(function*(){if(1===this._path.length)return new URL(this._path[0].toString());const[t,e]=this._path,n=`${t.toString()} > ${e}`,r={cache:this._cache,console:this._console,fetch:this._fetch};this._console.trace(`Trying to resolve ${n}...`);const i=this._cache.getItem(n);if(i){this._console.success(`Resolved ${n} to ${i.toString()} using cache.`);const t=[new URL(i),...this._path.slice(2)];return new jo(Object.assign(Object.assign({},r),{path:t}))._resolve()}const o=yield this._fetch(t.toString());if(o.ok){const t=yield o.clone().json();if(t._links[e]){const i=new URL(t._links[e].href),o=[i,...this._path.slice(2)];return this._cache.setItem(n,i.toString()),this._console.trace(`Cached ${i.toString()} for ${n}.`),this._console.success(`Resolved ${n} to ${i.toString()} online.`),new jo(Object.assign(Object.assign({},r),{path:o}))._resolve()}}throw this._console.error(`Failed to resolve ${n}.`),new yo(o)}))}}jo.v8n={classConstructor:Hi().schema({cache:no,console:Hi().instanceOf(Ci.constructor),fetch:Hi().typeOf("function"),path:Hi().curieChain()}),follow:Hi().string(),get:Hi().optional(Hi().schema({fields:Hi().optional(Hi().array().every.string()),filters:Hi().optional(Hi().array().every.string()),limit:Hi().optional(Hi().number()),offset:Hi().optional(Hi().number()),order:Hi().optional(Hi().passesAnyOf(Hi().string(),Hi().object(),Hi().array())),zoom:Hi().optional(Hi().passesAnyOf(Hi().string(),Hi().object(),Hi().array()))}))},jo.ResolutionError=yo,jo.Response=_o;var Oo=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))};class So extends jo{constructor(t){var e,n,r;So.v8n.classConstructor.check(t),super({cache:null!==(e=t.cache)&&void 0!==e?e:new po,console:Ci.create({level:t.level}).withTag("@foxy.io/sdk"),fetch:null!==(n=t.fetch)&&void 0!==n?n:Li.fetch,path:[t.base]}),this.console=this._console,this.storage=null!==(r=t.storage)&&void 0!==r?r:new po,this.cache=this._cache,this.base=t.base}fetch(...t){return Oo(this,void 0,void 0,(function*(){return this._fetch(...t)}))}}So.WHATWGResponse=Li.Response,So.WHATWGRequest=Li.Request,So.WHATWGHeaders=Li.Headers,So.whatwgFetch=Li.fetch,So.AuthError=ro,So.Node=jo,So.v8n={classConstructor:Hi().schema({base:Hi().instanceOf(URL),cache:Hi().optional(no),fetch:Hi().optional(Hi().typeOf("function")),level:Hi().optional(Hi().integer()),storage:Hi().optional(no)})};export{pe as $,So as A,Ue as B,ht as C,kt as D,Nt as E,Ot as F,bt as G,gt as H,at as I,yt as J,X as K,ot as L,ut as M,wt as N,mt as O,_e as P,Pt as Q,Ii as R,Zt as S,ct as T,et as U,ft as V,st as W,rt as X,lt as Y,At as Z,i as _,l as a,ye as a0,L as a1,de as a2,vt as a3,wn as a4,_n as a5,Bn as a6,Vn as a7,qn as a8,Sr as a9,Yt as aA,te as aB,ee as aC,Xt as aD,ke as aE,Hi as aF,Li as aG,u as aH,A as aI,xn as aJ,Ee as aK,xi as aL,o as aM,bn as aN,kn as aO,a as aP,n as aQ,wr as aa,_r as ab,Er as ac,zr as ad,d as ae,O as af,Vr as ag,Fn as ah,Ve as ai,Rn as aj,mr as ak,kr as al,yn as am,fn as an,vn as ao,Ft as ap,Ut as aq,Mt as ar,$t as as,zt as at,Wt as au,qt as av,Ht as aw,Jt as ax,Kt as ay,Bt as az,k as b,P as c,T as d,gr as e,dr as f,Be as g,Nn as h,E as i,pr as j,Ni as k,br as l,or as m,Fe as n,Gt as o,R as p,N as q,p as r,fe as s,vr as t,Z as u,Qt as v,ve as w,Dt as x,nt as y,U as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as e,_ as t}from"./shared-
|
|
1
|
+
import{B as e,_ as t}from"./shared-d1195c27.js";import{h as r}from"./shared-dc73b9a5.js";import{i as s}from"./shared-9803aa7c.js";let o,i,n=e=>e;const l=l=>class extends l{constructor(){super(...arguments),this.templates={},this.mode="production",this.readonly=!1,this.readonlyControls=e.False,this.disabled=!1,this.disabledControls=e.False,this.hidden=!1,this.hiddenControls=e.False,this.__observer=new MutationObserver((()=>this.__onMutation()))}static get inferredProperties(){return[...super.inferredProperties,"disabledSelector","readonlySelector","hiddenSelector","templates","disabled","readonly","hidden","mode"]}static get properties(){return t(t({},super.properties),{},{templates:{attribute:!1},mode:{type:String},readonly:{type:Boolean,reflect:!0},readonlyControls:{attribute:"readonlycontrols",converter:{fromAttribute:t=>new e(null!=t?t:"")},hasChanged:(e,t)=>e.toString()!==(null==t?void 0:t.toString())},disabled:{type:Boolean,reflect:!0},disabledControls:{attribute:"disabledcontrols",converter:{fromAttribute:t=>new e(null!=t?t:"")},hasChanged:(e,t)=>e.toString()!==(null==t?void 0:t.toString())},hidden:{type:Boolean,reflect:!0},hiddenControls:{attribute:"hiddencontrols",converter:{fromAttribute:t=>new e(null!=t?t:"")},hasChanged:(e,t)=>e.toString()!==(null==t?void 0:t.toString())}})}get readonlySelector(){return this.readonly?e.True:this.readonlyControls}get disabledSelector(){return this.disabled?e.True:this.disabledControls}get hiddenSelector(){return this.hidden?e.True:this.hiddenControls}connectedCallback(){super.connectedCallback(),"development"===this.mode&&this.__observe()}disconnectedCallback(){super.disconnectedCallback(),this.__observer.disconnect()}firstUpdated(...e){super.firstUpdated(...e),"production"===this.mode&&this.compileTemplates()}updated(e){super.updated(e),this.style.display=this.hidden?"none":"",e.has("mode")&&(this.__observer.disconnect(),"development"===this.mode&&this.__observe())}compileTemplates(e=!1){const r=e?{}:t({},this.templates);Array.from(this.children).forEach((e=>{var t;if("template"!==e.localName)return;const s=null!==(t=e.getAttribute("slot"))&&void 0!==t?t:"default";try{const t=`return html\`${e.innerHTML}\``;r[s]=new Function("html","host",t)}catch(e){console.error(e)}})),this.templates=r}renderTemplateOrSlot(e,t){const l=null!=e?e:"default",d=this.templates[l];if(!d)return r(o||(o=n`<slot name="${0}"></slot>`),s(e));return r(i||(i=n` <foxy-internal-sandbox data-testid="${0}" .render="${0}"> </foxy-internal-sandbox> `),l,(()=>{try{const e=null!=t?t:this,s=new Proxy({},{get:(t,r)=>e[r]});return null==d?void 0:d(r,s)}catch(e){console.error(e)}}))}getNestedTemplates(e){const t={};return Object.entries(this.templates).forEach((([r,s])=>{if(r.startsWith(`${e}:`)){const o=r.replace(`${e}:`,"");t[o]=s}})),t}applyInferredProperties(t){if(super.applyInferredProperties(t),null===this.infer)return;const r=t.get("disabledSelector"),s=t.get("disabled"),o=t.get("readonlySelector"),i=t.get("readonly"),n=t.get("hiddenSelector"),l=t.get("hidden"),d=t.get("templates"),a=t.get("mode"),h=e.True.toString(),c=(e,t)=>e.toString()===h||null!=t&&t,u=t=>{var r;return null!==(r=this.infer?null==t?void 0:t.zoom(this.infer):t)&&void 0!==r?r:e.False};this.disabledControls=u(r),this.disabled=c(this.disabledControls,s),this.readonlyControls=u(o),this.readonly=c(this.readonlyControls,i),this.hiddenControls=u(n),this.hidden=c(this.hiddenControls,l),this.templates=null!=d?d:{},this.infer&&(this.templates=this.getNestedTemplates(this.infer)),this.mode=null!=a?a:"production"}__observe(){this.__observer.observe(this,{characterData:!0,attributes:!0,childList:!0,subtree:!0}),this.__onMutation()}__onMutation(){const e={characterData:!0,attributes:!0,childList:!0,subtree:!0};this.__observer.disconnect(),this.__observer.observe(this,e),Array.from(this.children).forEach((t=>{"template"===t.localName&&t.hasAttribute("slot")&&this.__observer.observe(t.content,e)})),this.compileTemplates(!0)}};export{l as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as t}from"./shared-
|
|
1
|
+
import{C as t}from"./shared-d1cb97c6.js";import{R as e}from"./shared-b726120d.js";import{I as s}from"./shared-19df2a73.js";import{h as i}from"./shared-dc73b9a5.js";let r,d,a,l=t=>t;const o=e(t(s));class n extends o{constructor(){super(...arguments),this.__renderTitle=t=>i(r||(r=l` <div data-testid="title"> ${0} <div class="font-medium truncate"> ${0}​ </div> ${0} </div> `),this.renderTemplateOrSlot("title:before"),this.data?null==t?void 0:t(this.data):"",this.renderTemplateOrSlot("title:after")),this.__renderSubtitle=t=>i(d||(d=l` <div data-testid="subtitle"> ${0} <div class="text-secondary truncate text-s sm-text-m"> ${0}​ </div> ${0} </div> `),this.renderTemplateOrSlot("subtitle:before"),this.data?null==t?void 0:t(this.data):"",this.renderTemplateOrSlot("subtitle:after"))}renderBody(t){const e=this.hiddenSelector;return i(a||(a=l` <div class="relative text-body text-m font-lumo leading-xs sm-h-auto sm-flex sm-items-center sm-justify-between"> ${0} ${0} </div> `),e.matches("title",!0)?"":this.__renderTitle(null==t?void 0:t.title),e.matches("subtitle",!0)?"":this.__renderSubtitle(null==t?void 0:t.subtitle))}}export{n as T};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./shared-
|
|
1
|
+
import"./shared-f998f9c8.js";import{h as e,P as t}from"./shared-adcfd50a.js";import{a}from"./shared-8b5e05df.js";import{C as i}from"./shared-61ade33e.js";import{E as r,T as l}from"./shared-65479601.js";const o=e`<dom-module id="lumo-text-area" theme-for="vaadin-text-area">
|
|
2
2
|
<template>
|
|
3
3
|
<style include="lumo-text-field">
|
|
4
4
|
[part="input-field"],
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import{d as t,N as n}from"./shared-dc73b9a5.js";async function r(t){const n=new TextEncoder,r=await crypto.subtle.digest("SHA-256",n.encode(t));return`https://www.gravatar.com/avatar/${Array.from(new Uint8Array(r)).map((t=>t.toString(16).padStart(2,"0"))).join("")}?s=256&d=identicon`}
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
5
|
+
* This code may only be used under the BSD style license found at
|
|
6
|
+
* http://polymer.github.io/LICENSE.txt
|
|
7
|
+
* The complete set of authors may be found at
|
|
8
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
9
|
+
* The complete set of contributors may be found at
|
|
10
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
11
|
+
* Code distributed by Google as part of the polymer project is also
|
|
12
|
+
* subject to an additional IP rights grant found at
|
|
13
|
+
* http://polymer.github.io/PATENTS.txt
|
|
14
|
+
*/var e=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,r=t[Symbol.asyncIterator];return r?r.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},e("next"),e("throw"),e("return"),n[Symbol.asyncIterator]=function(){return this},n);function e(r){n[r]=t[r]&&function(n){return new Promise((function(e,a){(function(t,n,r,e){Promise.resolve(e).then((function(n){t({value:n,done:r})}),n)})(e,a,(n=t[r](n)).done,n.value)}))}}};const a=t(((t,r)=>async a=>{var o,i;if(!(a instanceof n))throw new Error("asyncReplace can only be used in text bindings");if(t===a.value)return;const c=new n(a.options);a.value=t;let s=0;try{for(var l,u=e(t);!(l=await u.next()).done;){let n=l.value;if(a.value!==t)break;0===s&&(a.clear(),c.appendIntoPart(a)),void 0!==r&&(n=r(n,s)),c.setValue(n),c.commit(),s++}}catch(t){o={error:t}}finally{try{l&&!l.done&&(i=u.return)&&await i.call(u)}finally{if(o)throw o.error}}}));export{a,r as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./shared-
|
|
1
|
+
import{_ as e}from"./shared-d1195c27.js";import{c as t,L as s,h as i}from"./shared-dc73b9a5.js";import{A as o}from"./shared-c518ece2.js";import{C as a}from"./shared-d1cb97c6.js";import{T as n,R as l,a as d}from"./shared-b726120d.js";import{I as r}from"./shared-17a61265.js";import{F as h}from"./shared-343d1fd7.js";import{c}from"./shared-4e709717.js";class u extends CustomEvent{constructor(e=!1){super("hide",{detail:{cancelled:e}})}}class p extends CustomEvent{constructor(){super("show")}}let m,v=e=>e;class b extends(a(n(l(d(r(s)))))){constructor(){super(...arguments),this.group=""}static get properties(){return e(e({},super.properties),{},{group:{}})}static get styles(){return[super.styles,t(m||(m=v`:host{position:relative;z-index:200}`))]}}let _,g,y,w,f,x,$,C=e=>e;const D=d(a(n(r(s))));class k extends D{constructor(){super(...arguments),this.closable=!1,this.editable=!1,this.header="",this.group="",this.alert=!1,this.wide=!1,this.__handleKeyDown=e=>{"Escape"===e.key&&k.openDialogs[0]===this&&this.closable&&this.hide(this.editable)},this.__connected=!1,this.__visible=!1}static get properties(){return e(e({},super.properties),{},{__connected:{attribute:!1},__visible:{attribute:!1},centered:{type:Boolean},closable:{type:Boolean},editable:{type:Boolean},header:{type:String},group:{},alert:{type:Boolean},wide:{type:Boolean},open:{type:Boolean,noAccessor:!0}})}static get styles(){return[super.styles,t(_||(_=C`.grid-cols-header{grid-template-columns:1fr auto 1fr}.scale-85{--tw-scale-x:0.85;--tw-scale-y:0.85}.max-h-alert{max-height:calc(100dvh - var(--lumo-size-l) - var(--lumo-space-m) * 2)}`))]}get open(){return this.__visible&&this.__connected}set open(e){e===this.open||(e?this.show():this.hide(this.editable))}connectedCallback(){super.connectedCallback(),addEventListener("keydown",this.__handleKeyDown)}disconnectedCallback(){var e;super.disconnectedCallback(),removeEventListener("keydown",this.__handleKeyDown),null===(e=k.dialogWindows.get(this))||void 0===e||e.remove(),k.dialogWindows.delete(this)}createRenderRoot(){const e=new b,t=document.querySelectorAll(k.dialogWindowsHost),s=Array.from(t).pop();return e.addEventListener("fetch",(e=>{e instanceof h&&(e.stopImmediatePropagation(),e.preventDefault(),e.respondWith(new o(this).fetch(e.request)))})),null==s||s.appendChild(e),k.dialogWindows.set(this,e),e.shadowRoot}render(e){if(!this.__connected)return i(g||(g=C``));const t=k.openDialogs[0]===this,s=k.openDialogs[1]===this,o=k.openDialogs[2]===this,a=!t&&!s&&!o;return i(y||(y=C` <div class="${0}"> <div id="backdrop" class="${0}" tabindex="-1" @click="${0}"></div> <div tabindex="0" role="dialog" aria-labelledby="dialog-title" class="${0}"> <div class="${0}"> <div class="h-l grid grid-cols-header text-m font-lumo font-medium border-b border-contrast-10"> ${0} <h1 id="dialog-title" class="truncate self-center text-center"> <foxy-i18n ns="${0}" lang="${0}" key="${0}"></foxy-i18n> </h1> ${0} </div> <div class="${0}"> <div class="p-m relative">${0}</div> </div> </div> </div> </div> `),c({"z-50 fixed inset-0":!0,"pointer-events-none":!this.__visible}),c({"select-none ease-in-out transition duration-500 absolute inset-0 bg-shade-50 focus-outline-none":!0,"opacity-100":this.__visible,"opacity-0":!this.__visible}),(()=>this.closable&&this.hide(this.editable)),c({"transform ease-in-out transition duration-500 relative h-full ml-auto":!0,"origin-bottom sm-origin-center":!0,"focus-outline-none":!0,"sm-max-w-modal":!this.wide,"sm-max-w-modal-wide":this.wide,"flex justify-center items-end sm-items-center mr-auto":this.alert,"translate-y-full sm-translate-y-0":!this.__visible,"sm-translate-x-full":!this.alert&&!this.__visible,"sm-opacity-0 sm-scale-110":this.alert&&!this.__visible,"translate-y-0 translate-x-0":t&&this.__visible,"scale-95 -translate-y-s sm-translate-y-0":s&&this.__visible,"scale-90 -translate-y-m sm-translate-y-0":o&&this.__visible,"opacity-0 scale-85 -translate-y-l sm-translate-y-0":a&&this.__visible}),c({"overflow-hidden flex flex-col bg-base rounded-t-l sm-rounded-b-l":!0,"absolute inset-0 mt-xl sm-m-xl":!this.alert,"shadow-xxl":this.__visible,"flex-1":this.alert}),this.closable&&!this.hiddenSelector.matches("close-button",!0)?i(w||(w=C` <vaadin-button id="close-button" theme="tertiary-inline" class="mr-auto m-s px-s" ?disabled="${0}" @click="${0}"> <foxy-i18n lang="${0}" key="${0}" ns="${0}"> </foxy-i18n> </vaadin-button> `),this.disabledSelector.matches("close-button",!0),(()=>this.hide(this.editable)),this.lang,this.editable?"cancel":"close",this.ns):i(f||(f=C`<div></div>`)),this.ns,this.lang,this.header,this.editable&&!this.hiddenSelector.matches("save-button",!0)?i(x||(x=C` <vaadin-button data-testid="save-button" ?disabled="${0}" theme="primary" class="ml-auto h-auto min-h-0 min-w-0 m-xs px-m" @click="${0}"> <foxy-i18n ns="${0}" lang="${0}" key="save"></foxy-i18n> </vaadin-button> `),this.disabledSelector.matches("save-button",!0),this.save,this.ns,this.lang):i($||($=C`<div></div>`)),c({"flex-1 overflow-y-auto overflow-x-hidden overscroll-contain":!0,"max-h-alert":this.alert}),null==e?void 0:e())}updated(e){super.updated(e);const t=k.dialogWindows.get(this);t&&(t.disabledControls=this.disabledControls,t.disabled=this.disabled,t.readonlyControls=this.readonlyControls,t.readonly=this.readonly,t.hiddenControls=this.hiddenControls,t.hidden=this.hidden,t.group=this.group,t.lang=this.lang,t.ns=this.ns)}async hide(e=!1){var t;null===(t=this.__returnFocusTo)||void 0===t||t.focus(),await this.__setOpenDialogs(k.openDialogs.filter((e=>e!==this))),await this.__setConnected(!1),this.dispatchEvent(new k.HideEvent(!!e))}async show(e){var t;this.__returnFocusTo=e,await this.__setConnected(!0),await this.__setOpenDialogs([this,...k.openDialogs]),null===(t=this.renderRoot.querySelector('[role="dialog"]'))||void 0===t||t.focus(),this.dispatchEvent(new k.ShowEvent)}async save(){await this.hide(!1)}async __setOpenDialogs(e){k.openDialogs.length=0,k.openDialogs.push(...e),await Promise.all([Promise.all(k.openDialogs.map((e=>e.requestUpdate()))),new Promise((e=>{const t=this.renderRoot.querySelector("#backdrop");t?(t.addEventListener("transitionend",(()=>e()),{once:!0}),setTimeout((()=>e()),2e3)):e(),this.__visible=k.openDialogs.includes(this)}))])}async __setConnected(e){this.__connected=e,await this.updateComplete.then((()=>this.getBoundingClientRect()))}}k.dialogWindowsHost="#foxy-dialog-windows-host, body",k.dialogWindows=new WeakMap,k.openDialogs=[],k.ShowEvent=p,k.HideEvent=u,customElements.define("foxy-dialog-window",b);export{k as D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./shared-
|
|
1
|
+
import{_ as e}from"./shared-d1195c27.js";import{y as s}from"./shared-b726120d.js";import{h as t}from"./shared-dc73b9a5.js";let r,a,i,o=e=>e;class d extends s{constructor(){super(...arguments),this.disabled=!1,this.items=[]}static get properties(){return e(e({},super.properties),{},{disabled:{type:Boolean,reflect:!0},items:{attribute:!1}})}render(){return t(r||(r=o` <p class="font-lumo text-xs leading-s text-secondary"> ${0} </p> `),this.items.map((({name:e,value:s},r)=>t(a||(a=o`${0}${0} ${0}`),0===r?"":t(i||(i=o`•`)),e,s))))}}export{d as M};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as t}from"./shared-
|
|
1
|
+
import{h as t}from"./shared-adcfd50a.js";import{T as e}from"./shared-8b5e05df.js";import{D as l}from"./shared-b726120d.js";const r=t`<dom-module id="lumo-email-field" theme-for="vaadin-email-field">
|
|
2
2
|
<template>
|
|
3
3
|
<style>
|
|
4
4
|
:not(*):placeholder-shown, /* to prevent broken styles on IE */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./shared-
|
|
1
|
+
import{_ as e}from"./shared-d1195c27.js";import{h as t}from"./shared-dc73b9a5.js";import{C as l}from"./shared-d1cb97c6.js";import"./foxy-nucleon-element.js";import{R as s,T as a,a as i}from"./shared-b726120d.js";import{c as r}from"./shared-4e709717.js";import{N as d}from"./shared-2ad18636.js";let n,o,h,c,m,u=e=>e;const b=l(s(a(i(d))));class p extends b{constructor(){super(...arguments),this.columns=[]}static get properties(){return e(e({},super.properties),{},{columns:{attribute:!1}})}render(){var e,l;const s=this.columns.some((e=>!!e.header));return t(n||(n=u` <div data-testid="wrapper" aria-busy="${0}" aria-live="polite" class="relative font-lumo text-m"> <table class="table-fixed w-full" data-testid="table"> <thead class="${0}"> <tr> ${0} </tr> </thead> <tbody class="divide-y divide-contrast-10"> ${0} </tbody> </table> ${0} </div> ${0} `),this.in("busy"),s?"border-b border-contrast-10":"sr-only",this.columns.map(((e,l)=>{var s;return t(o||(o=u` <th class="${0}"> ${0} </th> `),r({"truncate h-l text-tertiary text-m text-left font-medium":!0,"text-right":l===this.columns.length-1,"hidden sm-table-cell":"sm"===e.hideBelow,"hidden md-table-cell":"md"===e.hideBelow,"hidden lg-table-cell":"lg"===e.hideBelow,"hidden xl-table-cell":"xl"===e.hideBelow}),null===(s=e.header)||void 0===s?void 0:s.call(e,{html:t,lang:this.lang,data:this.data,ns:this.ns}))})),this.__rows.map((e=>{var l;return t(h||(h=u` <tr class="h-l"> ${0} </tr> `),null===(l=this.columns)||void 0===l?void 0:l.map(((l,s)=>{var a;return t(c||(c=u` <td class="${0}"> ${0} </td> `),r({"text-right":s===this.columns.length-1,"hidden sm-table-cell":"sm"===l.hideBelow,"hidden md-table-cell":"md"===l.hideBelow,"hidden lg-table-cell":"lg"===l.hideBelow,"hidden xl-table-cell":"xl"===l.hideBelow,"truncate h-l text-body":!0}),e?null===(a=l.cell)||void 0===a?void 0:a.call(l,{html:t,lang:this.lang,data:e,ns:this.ns}):"")})))})),this.in({idle:"snapshot"})?"":t(m||(m=u` <div class="absolute inset-0 flex items-center justify-center"> <foxy-spinner data-testid="spinner" layout="vertical" state="${0}" class="p-m bg-base shadow-xs rounded-t-l rounded-b-l" lang="${0}" ns="${0} ${0}"> </foxy-spinner> </div> `),this.in("busy")?"busy":this.in("idle")?"empty":"error",this.lang,this.ns,null!==(l=null===(e=customElements.get("foxy-spinner"))||void 0===e?void 0:e.defaultNS)&&void 0!==l?l:""),this.renderTemplateOrSlot())}get __rows(){var e,t,l;const s=Object.values(null!==(t=null===(e=this.data)||void 0===e?void 0:e._embedded)&&void 0!==t?t:{}).reduce(((e,t)=>[...e,...t]),[]);let a;if(0===s.length)try{const e=new URL(null!==(l=this.href)&&void 0!==l?l:"").searchParams.get("limit"),t=parseInt(null!=e?e:"");a=isNaN(t)?20:t}catch(e){a=20}else a=s.length;return new Array(a).fill(null).map(((e,t)=>{var l;return null!==(l=s[t])&&void 0!==l?l:e}))}}export{p as T};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as e}from"./shared-
|
|
1
|
+
import{C as e}from"./shared-6f0504e2.js";import"./shared-f998f9c8.js";import"./shared-7ceceb4c.js";import{h as t,P as r}from"./shared-adcfd50a.js";import{F as o}from"./shared-5513e830.js";import{T as a,D as s}from"./shared-65479601.js";import{I as l}from"./shared-f8368b97.js";import"./shared-acd33590.js";import{_ as i}from"./shared-d1195c27.js";import{i as h}from"./shared-9803aa7c.js";import{h as d}from"./shared-dc73b9a5.js";const n=t`<dom-module id="lumo-checkbox-group" theme-for="vaadin-checkbox-group">
|
|
2
2
|
<template>
|
|
3
3
|
<style include="lumo-required-field">
|
|
4
4
|
:host {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./shared-51c4a6dd.js";import"./shared-
|
|
1
|
+
import"./shared-51c4a6dd.js";import"./shared-acd33590.js";import{_ as e}from"./shared-d1195c27.js";import{C as t}from"./shared-d1cb97c6.js";import{a as r,T as s}from"./shared-b726120d.js";import{h as i,r as l,L as n}from"./shared-dc73b9a5.js";import{I as o}from"./shared-17a61265.js";import{N as h}from"./shared-2ad18636.js";let p,a,u,d,_=e=>e;class c extends(t(r(s(o(n))))){constructor(){super(...arguments),this.nucleon=null}static get inferredProperties(){return[...super.inferredProperties,"nucleon"]}static get properties(){return e(e({},super.properties),{},{nucleon:{attribute:!1}})}inferFromElement(e,t){return"nucleon"===e&&t instanceof h?t:super.inferFromElement(e,t)}applyInferredProperties(e){var t,r;super.applyInferredProperties(e),this.nucleon=null!==(t=e.get("nucleon"))&&void 0!==t?t:null,!1===(null===(r=this.nucleon)||void 0===r?void 0:r.in("idle"))&&(this.disabled=!0)}renderLightDom(){if("string"!=typeof this.infer)return;const e=i(p||(p=_` <slot name="${0}:before" slot="before"></slot> <slot name="${0}:after" slot="after"></slot> `),this.infer,this.infer);l(e,this)}updated(e){super.updated(e),this.renderLightDom()}renderControl(){return i(a||(a=_``))}render(){return this.hidden?i(u||(u=_``)):i(d||(d=_` ${0} ${0} ${0} `),this.renderTemplateOrSlot("before",this.nucleon),this.renderControl(),this.renderTemplateOrSlot("after",this.nucleon))}}customElements.define("foxy-internal-control",c);class f extends c{constructor(){super(...arguments),this.getValue=()=>{var e;return null===(e=this.nucleon)||void 0===e?void 0:e.form[this.property]},this.setValue=e=>{var t;return null===(t=this.nucleon)||void 0===t?void 0:t.edit({[this.property]:e})},this.__placeholder=null,this.__helperText=null,this.__v8nPrefix=null,this.__property=null,this.__label=null}static get properties(){return e(e({},super.properties),{},{placeholder:{type:String,noAccessor:!0},helperText:{type:String,attribute:"helper-text",noAccessor:!0},v8nPrefix:{type:String,attribute:"v8n-prefix",noAccessor:!0},getValue:{attribute:!1},setValue:{attribute:!1},property:{type:String,noAccessor:!0},label:{type:String,noAccessor:!0}})}get placeholder(){return"string"==typeof this.__placeholder?this.__placeholder:this.t("placeholder")}set placeholder(e){this.requestUpdate("placeholder",this.__placeholder),this.__placeholder=e}get helperText(){return"string"==typeof this.__helperText?this.__helperText:this.t("helper_text")}set helperText(e){this.requestUpdate("helperText",this.__helperText),this.__helperText=e}get v8nPrefix(){return"string"==typeof this.__v8nPrefix?this.__v8nPrefix:"string"==typeof this.infer?`${this.infer}:`:""}set v8nPrefix(e){this.requestUpdate("v8nPrefix",this.__v8nPrefix),this.__v8nPrefix=e}get property(){return"string"==typeof this.__property?this.__property:"string"==typeof this.infer?this.infer.replace(/-/g,"_"):""}set property(e){this.requestUpdate("property",this.__property),this.__property=e}get label(){return"string"==typeof this.__label?this.__label:this.t("label")}set label(e){this.requestUpdate("label",this.__label),this.__label=e}resetPlaceholder(){this.requestUpdate("placeholder",this.__placeholder),this.__placeholder=null}resetHelperText(){this.requestUpdate("helperText",this.__helperText),this.__helperText=null}resetV8nPrefix(){this.requestUpdate("v8nPrefix",this.__v8nPrefix),this.__v8nPrefix=null}resetProperty(){this.requestUpdate("property",this.__property),this.__property=null}resetLabel(){this.requestUpdate("label",this.__label),this.__label=null}reportValidity(){const e=this.ownerDocument.createTreeWalker(this.renderRoot,NodeFilter.SHOW_ELEMENT);do{const t=e.currentNode,r=["reportValidity","validate"];for(const e of r)if(e in t)try{t[e]();break}catch(e){continue}}while(e.nextNode())}get _value(){return this.getValue()}set _value(e){const t=new CustomEvent("change",{cancelable:!0,detail:e});this.dispatchEvent(t)&&this.setValue(e)}get _error(){var e;return null===(e=this.nucleon)||void 0===e?void 0:e.errors.find((e=>e.startsWith(this.v8nPrefix)))}get _errorMessage(){return this._error?this.t(this._error.substring(this.v8nPrefix.length)):void 0}get _checkValidity(){return()=>!this._error}}customElements.define("foxy-internal-editable-control",f);export{f as I,c as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as e}from"./shared-
|
|
1
|
+
import{P as e}from"./shared-5513e830.js";import{h as t}from"./shared-adcfd50a.js";
|
|
2
2
|
/**
|
|
3
3
|
@license
|
|
4
4
|
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
@@ -28,4 +28,4 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
|
28
28
|
part of the polymer project is also subject to an additional IP rights grant
|
|
29
29
|
found at http://polymer.github.io/PATENTS.txt
|
|
30
30
|
*/
|
|
31
|
-
var i={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},s={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},r={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},a=/[a-z0-9*]/,o=/U\+/,d=/^arrow/,c=/^space(bar)?/,y=/^escape$/;function u(e,t){var n="";if(e){var i=e.toLowerCase();" "===i||c.test(i)?n="space":y.test(i)?n="esc":1==i.length?t&&!a.test(i)||(n=i):n=d.test(i)?i.replace("arrow",""):"multiply"==i?"*":i}return n}function h(e,t){return e.key?u(e.key,t):e.detail&&e.detail.key?u(e.detail.key,t):(n=e.keyIdentifier,r="",n&&(n in i?r=i[n]:o.test(n)?(n=parseInt(n.replace("U+","0x"),16),r=String.fromCharCode(n).toLowerCase()):r=n.toLowerCase()),r||function(e){var t="";return Number(e)&&(t=e>=65&&e<=90?String.fromCharCode(32+e):e>=112&&e<=123?"f"+(e-112+1):e>=48&&e<=57?String(e-48):e>=96&&e<=105?String(e-96):s[e]),t}(e.keyCode)||"");var n,r}function l(e,t){return h(t,e.hasModifiers)===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey)}function v(e){return e.trim().split(" ").map((function(e){return function(e){return 1===e.length?{combo:e,key:e,event:"keydown"}:e.split("+").reduce((function(e,t){var n=t.split(":"),i=n[0],s=n[1];return i in r?(e[r[i]]=!0,e.hasModifiers=!0):(e.key=i,e.event=s||"keydown"),e}),{combo:e.split(":").shift()})}(e)}))}const
|
|
31
|
+
var i={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},s={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},r={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},a=/[a-z0-9*]/,o=/U\+/,d=/^arrow/,c=/^space(bar)?/,y=/^escape$/;function u(e,t){var n="";if(e){var i=e.toLowerCase();" "===i||c.test(i)?n="space":y.test(i)?n="esc":1==i.length?t&&!a.test(i)||(n=i):n=d.test(i)?i.replace("arrow",""):"multiply"==i?"*":i}return n}function h(e,t){return e.key?u(e.key,t):e.detail&&e.detail.key?u(e.detail.key,t):(n=e.keyIdentifier,r="",n&&(n in i?r=i[n]:o.test(n)?(n=parseInt(n.replace("U+","0x"),16),r=String.fromCharCode(n).toLowerCase()):r=n.toLowerCase()),r||function(e){var t="";return Number(e)&&(t=e>=65&&e<=90?String.fromCharCode(32+e):e>=112&&e<=123?"f"+(e-112+1):e>=48&&e<=57?String(e-48):e>=96&&e<=105?String(e-96):s[e]),t}(e.keyCode)||"");var n,r}function l(e,t){return h(t,e.hasModifiers)===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey)}function v(e){return e.trim().split(" ").map((function(e){return function(e){return 1===e.length?{combo:e,key:e,event:"keydown"}:e.split("+").reduce((function(e,t){var n=t.split(":"),i=n[0],s=n[1];return i in r?(e[r[i]]=!0,e.hasModifiers=!0):(e.key=i,e.event=s||"keydown"),e}),{combo:e.split(":").shift()})}(e)}))}const f={properties:{keyEventTarget:{type:Object,value:function(){return this}},stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},_imperativeKeyBindings:{type:Object,value:function(){return{}}}},observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},attached:function(){this._listenKeyEventListeners()},detached:function(){this._unlistenKeyEventListeners()},addOwnKeyBinding:function(e,t){this._imperativeKeyBindings[e]=t,this._prepKeyBindings(),this._resetKeyEventListeners()},removeOwnKeyBindings:function(){this._imperativeKeyBindings={},this._prepKeyBindings(),this._resetKeyEventListeners()},keyboardEventMatchesKeys:function(e,t){for(var n=v(t),i=0;i<n.length;++i)if(l(n[i],e))return!0;return!1},_collectKeyBindings:function(){var e=this.behaviors.map((function(e){return e.keyBindings}));return-1===e.indexOf(this.keyBindings)&&e.push(this.keyBindings),e},_prepKeyBindings:function(){for(var e in this._keyBindings={},this._collectKeyBindings().forEach((function(e){for(var t in e)this._addKeyBinding(t,e[t])}),this),this._imperativeKeyBindings)this._addKeyBinding(e,this._imperativeKeyBindings[e]);for(var t in this._keyBindings)this._keyBindings[t].sort((function(e,t){var n=e[0].hasModifiers;return n===t[0].hasModifiers?0:n?-1:1}))},_addKeyBinding:function(e,t){v(e).forEach((function(e){this._keyBindings[e.event]=this._keyBindings[e.event]||[],this._keyBindings[e.event].push([e,t])}),this)},_resetKeyEventListeners:function(){this._unlistenKeyEventListeners(),this.isAttached&&this._listenKeyEventListeners()},_listenKeyEventListeners:function(){this.keyEventTarget&&Object.keys(this._keyBindings).forEach((function(e){var t=this._keyBindings[e],n=this._onKeyBindingEvent.bind(this,t);this._boundKeyHandlers.push([this.keyEventTarget,e,n]),this.keyEventTarget.addEventListener(e,n)}),this)},_unlistenKeyEventListeners:function(){for(var e,t,n,i;this._boundKeyHandlers.length;)t=(e=this._boundKeyHandlers.pop())[0],n=e[1],i=e[2],t.removeEventListener(n,i)},_onKeyBindingEvent:function(e,t){if(this.stopKeyboardEventPropagation&&t.stopPropagation(),!t.defaultPrevented)for(var n=0;n<e.length;n++){var i=e[n][0],s=e[n][1];if(l(i,t)&&(this._triggerKeyHandler(i,s,t),t.defaultPrevented))return}},_triggerKeyHandler:function(e,t,n){var i=Object.create(e);i.keyboardEvent=n;var s=new CustomEvent(e.event,{detail:i,cancelable:!0});this[t].call(this,s),s.defaultPrevented&&n.preventDefault()}};export{n as I,f as a};
|