@foxy.io/elements 1.24.0-beta.4 → 1.24.0-beta.6
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 +2 -2
- package/dist/cdn/foxy-address-form.js +1 -1
- package/dist/cdn/foxy-admin-subscription-card.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-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-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.js +1 -1
- package/dist/cdn/foxy-customer-portal.js +13 -31
- package/dist/cdn/foxy-customer.js +7 -7
- 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-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 +2 -2
- 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-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.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 +1 -1
- package/dist/cdn/foxy-report-form.js +4 -4
- package/dist/cdn/foxy-reports-table.js +5 -5
- package/dist/cdn/foxy-shipment-card.js +2 -2
- package/dist/cdn/foxy-shipping-method-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 +2 -2
- 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-user-card.js +1 -1
- package/dist/cdn/foxy-user-form.js +1 -1
- 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-479ad951.js → shared-099c1f57.js} +1 -1
- package/dist/cdn/{shared-c4240bc6.js → shared-0c0ee663.js} +1 -1
- package/dist/cdn/shared-1196b6a7.js +1 -0
- package/dist/cdn/shared-13fbea95.js +122 -0
- package/dist/cdn/{shared-8474bc4a.js → shared-27d21f4a.js} +1 -1
- package/dist/cdn/shared-2edcd981.js +1 -0
- package/dist/cdn/{shared-a92ae606.js → shared-31d8e3b8.js} +1 -1
- package/dist/cdn/shared-35728235.js +1 -0
- package/dist/cdn/shared-3b709ddc.js +29 -0
- package/dist/cdn/shared-3bcc07cd.js +1 -0
- package/dist/cdn/shared-3c2414d4.js +9 -0
- package/dist/cdn/{shared-31651a9c.js → shared-3f04e4cc.js} +1 -1
- package/dist/cdn/{shared-ba658670.js → shared-406ce9ad.js} +1 -1
- package/dist/cdn/{shared-6f84ac3e.js → shared-4b20fc75.js} +1 -1
- package/dist/cdn/shared-4c2e9064.js +15 -0
- package/dist/cdn/{shared-1d28220a.js → shared-5103c1b4.js} +1 -1
- package/dist/cdn/{shared-4674063d.js → shared-5784c088.js} +27 -27
- package/dist/cdn/shared-584174ff.js +1 -0
- package/dist/cdn/{shared-1b060170.js → shared-59fc6288.js} +1 -1
- package/dist/cdn/{shared-51d28e6d.js → shared-5a889c45.js} +1 -1
- package/dist/cdn/{shared-c7f2f1ab.js → shared-5cf7b194.js} +1 -1
- package/dist/cdn/{shared-9c626d58.js → shared-5db85492.js} +1 -1
- package/dist/cdn/shared-601f27b1.js +1 -0
- package/dist/cdn/{shared-36725fe3.js → shared-621b3283.js} +1 -1
- package/dist/cdn/shared-630a0ff2.js +1 -0
- package/dist/cdn/{shared-984fcdf5.js → shared-6daeb197.js} +3 -3
- package/dist/cdn/{shared-4c956a8e.js → shared-7723f756.js} +1 -1
- package/dist/cdn/{shared-4dc58b73.js → shared-773e7177.js} +1 -1
- package/dist/cdn/{shared-6dc64a17.js → shared-799dc083.js} +1 -1
- package/dist/cdn/{shared-e84fa0ea.js → shared-7a455b15.js} +1 -1
- package/dist/cdn/{shared-e6828dbf.js → shared-7abbc95c.js} +5 -5
- package/dist/cdn/shared-7f33a83a.js +12 -12
- package/dist/cdn/{shared-69a21b9d.js → shared-7fab31ac.js} +1 -1
- package/dist/cdn/shared-800ee6c0.js +1 -0
- package/dist/cdn/shared-8a9c64b2.js +1 -0
- package/dist/cdn/{shared-db21f6db.js → shared-8f922de8.js} +2 -2
- package/dist/cdn/{shared-e6997950.js → shared-9048eeb2.js} +1 -1
- package/dist/cdn/{shared-e10052d0.js → shared-9954ee26.js} +2 -2
- package/dist/cdn/{shared-4bbd600d.js → shared-9aa72495.js} +1 -1
- package/dist/cdn/shared-9b12aeac.js +1 -0
- package/dist/cdn/{shared-6abdfcf2.js → shared-9b486845.js} +1 -1
- package/dist/cdn/{shared-b3ac59eb.js → shared-ad80244a.js} +2 -2
- package/dist/cdn/{shared-c6c6ba69.js → shared-b446c140.js} +1 -1
- package/dist/cdn/shared-b7556b77.js +1 -0
- package/dist/cdn/{shared-30bebd39.js → shared-b87d1af0.js} +3 -3
- package/dist/cdn/{shared-0a248c0d.js → shared-ba93be6b.js} +1 -1
- package/dist/cdn/{shared-9caffb4d.js → shared-baeef007.js} +1 -1
- package/dist/cdn/{shared-64f98a0f.js → shared-bee111d6.js} +7 -2
- package/dist/cdn/shared-c76ef8d8.js +804 -0
- package/dist/cdn/{shared-65318cc1.js → shared-c839e147.js} +1 -1
- package/dist/cdn/{shared-4904bca4.js → shared-d1f5de89.js} +1 -1
- package/dist/cdn/{shared-a3c73e91.js → shared-d90dbae7.js} +1 -1
- package/dist/cdn/{shared-dccf0420.js → shared-ddac7722.js} +2 -2
- package/dist/cdn/{shared-e8e92fe3.js → shared-de3dae6c.js} +2 -2
- package/dist/cdn/shared-e006e82c.js +1 -0
- package/dist/cdn/shared-e2e2ca6a.js +1 -0
- package/dist/cdn/shared-e5239bec.js +212 -0
- package/dist/cdn/shared-e8a51c60.js +1 -0
- package/dist/cdn/shared-e8a85228.js +1 -0
- package/dist/cdn/{shared-17d0db7f.js → shared-eb8a0fdf.js} +3 -3
- package/dist/cdn/{shared-88e36564.js → shared-ef7f2d07.js} +26 -27
- package/dist/cdn/{shared-665d6cc4.js → shared-efaf8d49.js} +1 -1
- package/dist/cdn/{shared-ff992ead.js → shared-f0a9f3c2.js} +1 -1
- package/dist/cdn/{shared-379b37e6.js → shared-f21e5761.js} +7 -11
- package/dist/cdn/shared-f241722a.js +1 -0
- package/dist/cdn/{shared-b48a83b0.js → shared-f29acc38.js} +1 -1
- package/dist/cdn/{shared-e7c3b7b6.js → shared-f29d410a.js} +1 -1
- package/dist/cdn/{shared-bdb51db9.js → shared-f5bbb1e0.js} +1 -1
- package/dist/cdn/{shared-c97e0d6e.js → shared-fcfbfbdb.js} +1 -1
- package/dist/cdn/{shared-bafcab47.js → shared-fd40a40c.js} +3 -3
- package/dist/cdn/{shared-4b67d699.js → shared-fd96bcd1.js} +1 -1
- package/dist/cdn/{shared-dfe2602a.js → shared-ff7fd5fa.js} +1 -1
- package/dist/cdn/{shared-d14c2060.js → shared-fff03a45.js} +1 -1
- package/dist/cdn/translations/address-form/en.json +577 -0
- package/dist/cdn/translations/customer/en.json +653 -15
- package/dist/cdn/translations/customer-form/en.json +84 -15
- package/dist/cdn/translations/customer-portal/en.json +694 -32
- package/dist/cdn/translations/customer-portal-settings/en.json +9 -0
- package/dist/cdn/translations/transaction/en.json +79 -15
- package/dist/elements/internal/InternalForm/InternalForm.d.ts +10 -0
- package/dist/elements/internal/InternalForm/InternalForm.js +48 -1
- package/dist/elements/internal/InternalForm/InternalForm.js.map +1 -1
- package/dist/elements/internal/InternalForm/index.d.ts +1 -0
- package/dist/elements/internal/InternalForm/index.js +1 -0
- package/dist/elements/internal/InternalForm/index.js.map +1 -1
- package/dist/elements/internal/InternalForm/types.d.ts +4 -0
- package/dist/elements/internal/InternalForm/types.js +2 -0
- package/dist/elements/internal/InternalForm/types.js.map +1 -0
- package/dist/elements/internal/InternalPasswordControl/InternalPasswordControl.d.ts +5 -1
- package/dist/elements/internal/InternalPasswordControl/InternalPasswordControl.js +36 -1
- package/dist/elements/internal/InternalPasswordControl/InternalPasswordControl.js.map +1 -1
- package/dist/elements/internal/InternalPasswordControl/generateRandomPassword.d.ts +1 -0
- package/dist/elements/internal/InternalPasswordControl/generateRandomPassword.js +11 -0
- package/dist/elements/internal/InternalPasswordControl/generateRandomPassword.js.map +1 -0
- package/dist/elements/public/AddressForm/AddressForm.d.ts +2 -1
- package/dist/elements/public/AddressForm/AddressForm.js +53 -17
- package/dist/elements/public/AddressForm/AddressForm.js.map +1 -1
- package/dist/elements/public/AddressForm/countries.d.ts +1 -1
- package/dist/elements/public/AddressForm/countries.js +554 -251
- package/dist/elements/public/AddressForm/countries.js.map +1 -1
- package/dist/elements/public/Customer/Customer.d.ts +5 -2
- package/dist/elements/public/Customer/Customer.js +10 -0
- package/dist/elements/public/Customer/Customer.js.map +1 -1
- package/dist/elements/public/Customer/types.d.ts +1 -0
- package/dist/elements/public/Customer/types.js.map +1 -1
- package/dist/elements/public/CustomerApi/CustomerApi.d.ts +33 -2
- package/dist/elements/public/CustomerApi/CustomerApi.js +62 -11
- package/dist/elements/public/CustomerApi/CustomerApi.js.map +1 -1
- package/dist/elements/public/CustomerForm/CustomerForm.d.ts +47 -15
- package/dist/elements/public/CustomerForm/CustomerForm.js +259 -155
- package/dist/elements/public/CustomerForm/CustomerForm.js.map +1 -1
- package/dist/elements/public/CustomerForm/index.d.ts +6 -6
- package/dist/elements/public/CustomerForm/index.js +6 -6
- package/dist/elements/public/CustomerForm/index.js.map +1 -1
- package/dist/elements/public/CustomerForm/internal/InternalCustomerFormLegalNoticeControl/InternalCustomerFormLegalNoticeControl.d.ts +5 -0
- package/dist/elements/public/CustomerForm/internal/InternalCustomerFormLegalNoticeControl/InternalCustomerFormLegalNoticeControl.js +23 -0
- package/dist/elements/public/CustomerForm/internal/InternalCustomerFormLegalNoticeControl/InternalCustomerFormLegalNoticeControl.js.map +1 -0
- package/dist/elements/public/CustomerForm/internal/InternalCustomerFormLegalNoticeControl/index.d.ts +4 -0
- package/dist/elements/public/CustomerForm/internal/InternalCustomerFormLegalNoticeControl/index.js +6 -0
- package/dist/elements/public/CustomerForm/internal/InternalCustomerFormLegalNoticeControl/index.js.map +1 -0
- package/dist/elements/public/CustomerForm/types.d.ts +27 -7
- package/dist/elements/public/CustomerForm/types.js.map +1 -1
- package/dist/elements/public/CustomerPortal/CustomerPortal.js +12 -15
- package/dist/elements/public/CustomerPortal/CustomerPortal.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedInView.d.ts +8 -11
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedInView.js +9 -33
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedInView.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedOutView.d.ts +14 -10
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedOutView.js +152 -16
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedOutView.js.map +1 -1
- package/dist/elements/public/CustomerPortal/index.d.ts +2 -0
- package/dist/elements/public/CustomerPortal/index.js +2 -2
- package/dist/elements/public/CustomerPortal/index.js.map +1 -1
- package/dist/elements/public/CustomerPortalSettings/CustomerPortalSettings.js +14 -0
- package/dist/elements/public/CustomerPortalSettings/CustomerPortalSettings.js.map +1 -1
- package/dist/elements/public/CustomerPortalSettings/machine.js +10 -0
- package/dist/elements/public/CustomerPortalSettings/machine.js.map +1 -1
- package/dist/elements/public/CustomerPortalSettings/private/SignUp/SignUp.d.ts +14 -0
- package/dist/elements/public/CustomerPortalSettings/private/SignUp/SignUp.js +132 -0
- package/dist/elements/public/CustomerPortalSettings/private/SignUp/SignUp.js.map +1 -0
- package/dist/elements/public/CustomerPortalSettings/private/SignUp/SignUpChangeEvent.d.ts +4 -0
- package/dist/elements/public/CustomerPortalSettings/private/SignUp/SignUpChangeEvent.js +6 -0
- package/dist/elements/public/CustomerPortalSettings/private/SignUp/SignUpChangeEvent.js.map +1 -0
- package/dist/elements/public/CustomerPortalSettings/types.d.ts +4 -0
- package/dist/elements/public/CustomerPortalSettings/types.js.map +1 -1
- package/dist/elements/public/FilterAttributeCard/FilterAttributeCard.js +1 -1
- package/dist/elements/public/FilterAttributeCard/FilterAttributeCard.js.map +1 -1
- package/dist/elements/public/FormDialog/FormDialog.d.ts +2 -0
- package/dist/elements/public/FormDialog/FormDialog.js +6 -0
- package/dist/elements/public/FormDialog/FormDialog.js.map +1 -1
- package/dist/elements/public/FormDialog/types.d.ts +3 -1
- package/dist/elements/public/FormDialog/types.js.map +1 -1
- package/dist/elements/public/NucleonElement/NucleonElement.d.ts +1 -1
- package/dist/elements/public/NucleonElement/NucleonElement.js +1 -1
- package/dist/elements/public/NucleonElement/NucleonElement.js.map +1 -1
- package/dist/elements/public/NucleonElement/types.d.ts +1 -1
- package/dist/elements/public/NucleonElement/types.js.map +1 -1
- package/dist/mixins/themeable.js +16 -0
- package/dist/mixins/themeable.js.map +1 -1
- package/dist/types/hapi.d.ts +14 -0
- package/dist/types/hapi.js.map +1 -1
- package/dist/utils/parse-duration.js +2 -2
- package/dist/utils/parse-duration.js.map +1 -1
- package/package.json +13 -11
- package/dist/cdn/shared-09d4fbb8.js +0 -29
- package/dist/cdn/shared-1d08a5ad.js +0 -1
- package/dist/cdn/shared-1eac92fa.js +0 -1
- package/dist/cdn/shared-25f64060.js +0 -1
- package/dist/cdn/shared-307262a1.js +0 -15
- package/dist/cdn/shared-332f2997.js +0 -1
- package/dist/cdn/shared-39f3b48d.js +0 -1
- package/dist/cdn/shared-432c5183.js +0 -9
- package/dist/cdn/shared-4dee79d4.js +0 -1
- package/dist/cdn/shared-53061389.js +0 -1
- package/dist/cdn/shared-59042137.js +0 -201
- package/dist/cdn/shared-65ba8b39.js +0 -1
- package/dist/cdn/shared-77a4d8e8.js +0 -1
- package/dist/cdn/shared-7f5618ba.js +0 -1
- package/dist/cdn/shared-92f27a38.js +0 -1
- package/dist/cdn/shared-b0f534ef.js +0 -1
- package/dist/cdn/shared-be24dd36.js +0 -804
- package/dist/cdn/shared-bf62a65b.js +0 -1
- package/dist/cdn/shared-c2d3b32b.js +0 -1
- package/dist/cdn/shared-cf269a17.js +0 -1
- package/dist/cdn/shared-fe54babe.js +0 -1
- package/dist/cdn/shared-fef9ecc1.js +0 -122
- package/dist/elements/public/AddressForm/regions.d.ts +0 -1
- package/dist/elements/public/AddressForm/regions.js +0 -67
- package/dist/elements/public/AddressForm/regions.js.map +0 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalChangePassword.d.ts +0 -29
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalChangePassword.js +0 -169
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalChangePassword.js.map +0 -1
- /package/dist/cdn/{shared-64657919.js → shared-343d1fd7.js} +0 -0
- /package/dist/cdn/{shared-d6276c83.js → shared-3ab0306f.js} +0 -0
- /package/dist/cdn/{shared-e6f3e9f0.js → shared-bb05cfed.js} +0 -0
- /package/dist/cdn/{shared-99065f2a.js → shared-d7be11de.js} +0 -0
- /package/dist/cdn/{shared-0479553e.js → shared-f9180815.js} +0 -0
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
import{D as t,r as e,e as n,g as r,f as i,h as s,o,b as a,p as l,j as c,k as d,m as h,c as u,n as p,q as _,s as f,t as m,v as y}from"./shared-09d4fbb8.js";
|
|
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 http://polymer.github.io/LICENSE.txt
|
|
6
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
7
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
8
|
-
Code distributed by Google as part of the polymer project is also
|
|
9
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
10
|
-
*/class g{constructor(t){this.value=t.toString()}toString(){return this.value}}function P(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof g)return function(t){if(t instanceof g)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}const b=function(t,...e){const n=document.createElement("template");return n.innerHTML=e.reduce(((e,n,r)=>e+P(n)+t[r+1]),t[0]),n};
|
|
11
|
-
/**
|
|
12
|
-
@license
|
|
13
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
14
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
15
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
16
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
17
|
-
Code distributed by Google as part of the polymer project is also
|
|
18
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
19
|
-
*/let w,v=null,C=window.HTMLImports&&window.HTMLImports.whenReady||null;function S(t){requestAnimationFrame((function(){C?C(t):(v||(v=new Promise((t=>{w=t})),"complete"===document.readyState?w():document.addEventListener("readystatechange",(()=>{"complete"===document.readyState&&w()}))),v.then((function(){t&&t()})))}))}
|
|
20
|
-
/**
|
|
21
|
-
@license
|
|
22
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
23
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
24
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
25
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
26
|
-
Code distributed by Google as part of the polymer project is also
|
|
27
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
28
|
-
*/const E="__shadyCSSCachedStyle";let T=null,O=null;class A{constructor(){this.customStyles=[],this.enqueued=!1,S((()=>{window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()}))}enqueueDocumentValidation(){!this.enqueued&&O&&(this.enqueued=!0,S(O))}addCustomStyle(t){t.__seenByShadyCSS||(t.__seenByShadyCSS=!0,this.customStyles.push(t),this.enqueueDocumentValidation())}getStyleForCustomStyle(t){if(t[E])return t[E];let e;return e=t.getStyle?t.getStyle():t,e}processStyles(){const t=this.customStyles;for(let e=0;e<t.length;e++){const n=t[e];if(n[E])continue;const r=this.getStyleForCustomStyle(n);if(r){const t=r.__appliedElement||r;T&&T(t),n[E]=t}}return t}}A.prototype.addCustomStyle=A.prototype.addCustomStyle,A.prototype.getStyleForCustomStyle=A.prototype.getStyleForCustomStyle,A.prototype.processStyles=A.prototype.processStyles,Object.defineProperties(A.prototype,{transformCallback:{get:()=>T,set(t){T=t}},validateCallback:{get:()=>O,set(t){let e=!1;O||(e=!0),O=t,e&&this.enqueueDocumentValidation()}}});
|
|
29
|
-
/**
|
|
30
|
-
@license
|
|
31
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
32
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
33
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
34
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
35
|
-
Code distributed by Google as part of the polymer project is also
|
|
36
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
37
|
-
*/
|
|
38
|
-
const N=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,x=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,I=/@media\s(.*)/;
|
|
39
|
-
/**
|
|
40
|
-
@license
|
|
41
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
42
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
43
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
44
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
45
|
-
Code distributed by Google as part of the polymer project is also
|
|
46
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
47
|
-
*/
|
|
48
|
-
function L(t,e){for(let n in e)null===n?t.style.removeProperty(n):t.style.setProperty(n,e[n])}function k(t,e){const n=window.getComputedStyle(t).getPropertyValue(e);return n?n.trim():""}function R(t){const e=x.test(t)||N.test(t);return x.lastIndex=0,N.lastIndex=0,e}
|
|
49
|
-
/**
|
|
50
|
-
@license
|
|
51
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
52
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
53
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
54
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
55
|
-
Code distributed by Google as part of the polymer project is also
|
|
56
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
57
|
-
*/const M=!(window.ShadyDOM&&window.ShadyDOM.inUse);let D,F;function z(t){D=(!t||!t.shimcssproperties)&&(M||Boolean(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(F=window.ShadyCSS.cssBuild);const H=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?D=window.ShadyCSS.nativeCss:window.ShadyCSS?(z(window.ShadyCSS),window.ShadyCSS=void 0):z(window.WebComponents&&window.WebComponents.flags);const B=D,j=new A;
|
|
58
|
-
/**
|
|
59
|
-
@license
|
|
60
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
61
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
62
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
63
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
64
|
-
Code distributed by Google as part of the polymer project is also
|
|
65
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
66
|
-
*/window.ShadyCSS||(window.ShadyCSS={prepareTemplate(t,e,n){},prepareTemplateDom(t,e){},prepareTemplateStyles(t,e,n){},styleSubtree(t,e){j.processStyles(),L(t,e)},styleElement(t){j.processStyles()},styleDocument(t){j.processStyles(),L(document.body,t)},getComputedStyleValue:(t,e)=>k(t,e),flushCustomStyles(){},nativeCss:B,nativeShadow:M,cssBuild:F,disableRuntime:H}),window.ShadyCSS.CustomStyleInterface=j;function Y(e){return t.import(e)}function $(t){let n=t.body?t.body:t;const r=e(n.textContent,t.baseURI),i=document.createElement("style");return i.textContent=r,i}function q(t){const e=t.trim().split(/\s+/),n=[];for(let t=0;t<e.length;t++)n.push(...J(e[t]));return n}function J(t){const e=Y(t);if(!e)return console.warn("Could not find style data in module named",t),[];if(void 0===e._styles){const t=[];t.push(...U(e));const n=e.querySelector("template");n&&t.push(...V(n,e.assetpath)),e._styles=t}return e._styles}function V(t,n){if(!t._styles){const r=[],i=t.content.querySelectorAll("style");for(let t=0;t<i.length;t++){let s=i[t],o=s.getAttribute("include");o&&r.push(...q(o).filter((function(t,e,n){return n.indexOf(t)===e}))),n&&(s.textContent=e(s.textContent,n)),r.push(s)}t._styles=r}return t._styles}function U(t){const e=[],n=t.querySelectorAll("link[rel=import][type~=css]");for(let t=0;t<n.length;t++){let r=n[t];if(r.import){const t=r.import,n=r.hasAttribute("shady-unscoped");if(n&&!t._unscopedStyle){const e=$(t);e.setAttribute("shady-unscoped",""),t._unscopedStyle=e}else t._style||(t._style=$(t));e.push(n?t._unscopedStyle:t._style)}}return e}function X(t){let e=Y(t);if(e&&void 0===e._cssText){let t=function(t){let e="",n=U(t);for(let t=0;t<n.length;t++)e+=n[t].textContent;return e}
|
|
67
|
-
/**
|
|
68
|
-
@license
|
|
69
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
70
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
71
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
72
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
73
|
-
Code distributed by Google as part of the polymer project is also
|
|
74
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
75
|
-
*/(e),n=e.querySelector("template");n&&(t+=function(t,e){let n="";const r=V(t,e);for(let t=0;t<r.length;t++){let e=r[t];e.parentNode&&e.parentNode.removeChild(e),n+=e.textContent}return n}(n,e.assetpath)),e._cssText=t||null}return e||console.warn("Could not find style data in module named",t),e&&e._cssText||""}const G=window.ShadyCSS.CustomStyleInterface;class W extends HTMLElement{constructor(){super(),this._style=null,G.addCustomStyle(this)}getStyle(){if(this._style)return this._style;const t=this.querySelector("style");if(!t)return null;this._style=t;const e=t.getAttribute("include");return e&&(t.removeAttribute("include"),t.textContent=function(t){let e=t.trim().split(/\s+/),n="";for(let t=0;t<e.length;t++)n+=X(e[t]);return n}(e)+t.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this),this._style}}window.customElements.define("custom-style",W);
|
|
76
|
-
/**
|
|
77
|
-
@license
|
|
78
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
79
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
80
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
81
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
82
|
-
Code distributed by Google as part of the polymer project is also
|
|
83
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
84
|
-
*/
|
|
85
|
-
let Z=0;const K=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let n=Z++;return function(r){let i=r.__mixinSet;if(i&&i[n])return r;let s=e,o=s.get(r);if(!o){o=t(r),s.set(r,o);let e=Object.create(o.__mixinSet||i||null);e[n]=!0,o.__mixinSet=e}return o}},Q=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?t=>ShadyDOM.patch(t):t=>t;
|
|
86
|
-
/**
|
|
87
|
-
@license
|
|
88
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
89
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
90
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
91
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
92
|
-
Code distributed by Google as part of the polymer project is also
|
|
93
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
94
|
-
*/
|
|
95
|
-
/**
|
|
96
|
-
@license
|
|
97
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
98
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
99
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
100
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
101
|
-
Code distributed by Google as part of the polymer project is also
|
|
102
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
103
|
-
*/
|
|
104
|
-
function tt(t){return t.indexOf(".")>=0}function et(t){let e=t.indexOf(".");return-1===e?t:t.slice(0,e)}function nt(t,e){return 0===t.indexOf(e+".")}function rt(t,e){return 0===e.indexOf(t+".")}function it(t,e,n){return e+n.slice(t.length)}function st(t,e){return t===e||nt(t,e)||rt(t,e)}function ot(t){if(Array.isArray(t)){let e=[];for(let n=0;n<t.length;n++){let r=t[n].toString().split(".");for(let t=0;t<r.length;t++)e.push(r[t])}return e.join(".")}return t}function at(t){return Array.isArray(t)?ot(t).split("."):t.toString().split(".")}function lt(t,e,n){let r=t,i=at(e);for(let t=0;t<i.length;t++){if(!r)return;r=r[i[t]]}return n&&(n.path=i.join(".")),r}function ct(t,e,n){let r=t,i=at(e),s=i[i.length-1];if(i.length>1){for(let t=0;t<i.length-1;t++){if(r=r[i[t]],!r)return}r[s]=n}else r[e]=n;return i.join(".")}
|
|
105
|
-
/**
|
|
106
|
-
@license
|
|
107
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
108
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
109
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
110
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
111
|
-
Code distributed by Google as part of the polymer project is also
|
|
112
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
113
|
-
*/const dt={},ht=/-[a-z]/g,ut=/([A-Z])/g;function pt(t){return dt[t]||(dt[t]=t.indexOf("-")<0?t:t.replace(ht,(t=>t[1].toUpperCase())))}function _t(t){return dt[t]||(dt[t]=t.replace(ut,"-$1").toLowerCase())}
|
|
114
|
-
/**
|
|
115
|
-
@license
|
|
116
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
117
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
118
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
119
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
120
|
-
Code distributed by Google as part of the polymer project is also
|
|
121
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
122
|
-
*/let ft=0,mt=0,yt=[],gt=0,Pt=!1,bt=document.createTextNode("");new window.MutationObserver((function(){Pt=!1;const t=yt.length;for(let e=0;e<t;e++){let t=yt[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}yt.splice(0,t),mt+=t})).observe(bt,{characterData:!0});const wt={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},vt={run:t=>window.requestAnimationFrame(t),cancel(t){window.cancelAnimationFrame(t)}},Ct={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},St={run:t=>(Pt||(Pt=!0,bt.textContent=gt++),yt.push(t),ft++),cancel(t){const e=t-mt;if(e>=0){if(!yt[e])throw new Error("invalid async handle: "+t);yt[e]=null}}},Et=St,Tt=K((t=>class extends t{static createProperties(t){const e=this.prototype;for(let n in t)n in e||e._createPropertyAccessor(n)}static attributeNameForProperty(t){return t.toLowerCase()}static typeForProperty(t){}_createPropertyAccessor(t,e){this._addPropertyToAttributeMap(t),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[t]||(this.__dataHasAccessor[t]=!0,this._definePropertyAccessor(t,e))}_addPropertyToAttributeMap(t){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let e=this.__dataAttributes[t];return e||(e=this.constructor.attributeNameForProperty(t),this.__dataAttributes[e]=t),e}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let t in this.__dataHasAccessor)this.hasOwnProperty(t)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[t]=this[t],delete this[t])}_initializeInstanceProperties(t){Object.assign(this,t)}_setProperty(t,e){this._setPendingProperty(t,e)&&this._invalidateProperties()}_getProperty(t){return this.__data[t]}_setPendingProperty(t,e,n){let r=this.__data[t],i=this._shouldPropertyChange(t,e,r);return i&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(t in this.__dataOld)&&(this.__dataOld[t]=r),this.__data[t]=e,this.__dataPending[t]=e),i}_isPropertyPending(t){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(t))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Et.run((()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())})))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const t=this.__data,e=this.__dataPending,n=this.__dataOld;this._shouldPropertiesChange(t,e,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(t,e,n)),this.__dataCounter--}_shouldPropertiesChange(t,e,n){return Boolean(e)}_propertiesChanged(t,e,n){}_shouldPropertyChange(t,e,n){return n!==e&&(n==n||e==e)}attributeChangedCallback(t,e,n,r){e!==n&&this._attributeToProperty(t,n),super.attributeChangedCallback&&super.attributeChangedCallback(t,e,n,r)}_attributeToProperty(t,e,n){if(!this.__serializing){const r=this.__dataAttributes,i=r&&r[t]||t;this[i]=this._deserializeValue(e,n||this.constructor.typeForProperty(i))}}_propertyToAttribute(t,e,n){this.__serializing=!0,n=arguments.length<3?this[t]:n,this._valueToNodeAttribute(this,n,e||this.constructor.attributeNameForProperty(t)),this.__serializing=!1}_valueToNodeAttribute(t,e,n){const r=this._serializeValue(e);"class"!==n&&"name"!==n&&"slot"!==n||(t=Q(t)),void 0===r?t.removeAttribute(n):t.setAttribute(n,r)}_serializeValue(t){return"boolean"==typeof t?t?"":void 0:null!=t?t.toString():void 0}_deserializeValue(t,e){switch(e){case Boolean:return null!==t;case Number:return Number(t);default:return t}}})),Ot={};let At=HTMLElement.prototype;for(;At;){let t=Object.getOwnPropertyNames(At);for(let e=0;e<t.length;e++)Ot[t[e]]=!0;At=Object.getPrototypeOf(At)}const Nt=K((t=>{const e=Tt(t);return class extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(pt(t[e]))}static attributeNameForProperty(t){return _t(t)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(t){for(let e in t)this._setProperty(e,t[e])}_ensureAttribute(t,e){const n=this;n.hasAttribute(t)||this._valueToNodeAttribute(n,e,t)}_serializeValue(t){if("object"==typeof t){if(t instanceof Date)return t.toString();if(t)try{return JSON.stringify(t)}catch(t){return""}}return super._serializeValue(t)}_deserializeValue(t,e){let n;switch(e){case Object:try{n=JSON.parse(t)}catch(e){n=t}break;case Array:try{n=JSON.parse(t)}catch(e){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${t}`)}break;case Date:n=isNaN(t)?String(t):Number(t),n=new Date(n);break;default:n=super._deserializeValue(t,e)}return n}_definePropertyAccessor(t,e){!function(t,e){if(!Ot[e]){let n=t[e];void 0!==n&&(t.__data?t._setPendingProperty(e,n):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[e]=n))}}(this,t),super._definePropertyAccessor(t,e)}_hasAccessor(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]}_isPropertyPending(t){return Boolean(this.__dataPending&&t in this.__dataPending)}}})),xt={"dom-if":!0,"dom-repeat":!0};
|
|
123
|
-
/**
|
|
124
|
-
@license
|
|
125
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
126
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
127
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
128
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
129
|
-
Code distributed by Google as part of the polymer project is also
|
|
130
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
131
|
-
*/let It=!1,Lt=!1;function kt(t){(function(){if(!It){It=!0;const t=document.createElement("textarea");t.placeholder="a",Lt=t.placeholder===t.textContent}return Lt})()&&"textarea"===t.localName&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}function Rt(t){let e=t.getAttribute("is");if(e&&xt[e]){let n=t;for(n.removeAttribute("is"),t=n.ownerDocument.createElement(e),n.parentNode.replaceChild(t,n),t.appendChild(n);n.attributes.length;)t.setAttribute(n.attributes[0].name,n.attributes[0].value),n.removeAttribute(n.attributes[0].name)}return t}function Mt(t,e){let n=e.parentInfo&&Mt(t,e.parentInfo);if(!n)return t;for(let t=n.firstChild,r=0;t;t=t.nextSibling)if(e.parentIndex===r++)return t}function Dt(t,e,n,r){r.id&&(e[r.id]=n)}function Ft(t,e,n){if(n.events&&n.events.length)for(let r,i=0,s=n.events;i<s.length&&(r=s[i]);i++)t._addMethodEventListenerToNode(e,r.name,r.value,t)}function zt(t,e,n,r){n.templateInfo&&(e._templateInfo=n.templateInfo,e._parentTemplateInfo=r)}const Ht=K((t=>class extends t{static _parseTemplate(t,e){if(!t._templateInfo){let n=t._templateInfo={};n.nodeInfoList=[],n.nestedTemplate=Boolean(e),n.stripWhiteSpace=e&&e.stripWhiteSpace||t.hasAttribute("strip-whitespace"),this._parseTemplateContent(t,n,{parent:null})}return t._templateInfo}static _parseTemplateContent(t,e,n){return this._parseTemplateNode(t.content,e,n)}static _parseTemplateNode(t,e,n){let r=!1,i=t;return"template"!=i.localName||i.hasAttribute("preserve-content")?"slot"===i.localName&&(e.hasInsertionPoint=!0):r=this._parseTemplateNestedTemplate(i,e,n)||r,kt(i),i.firstChild&&this._parseTemplateChildNodes(i,e,n),i.hasAttributes&&i.hasAttributes()&&(r=this._parseTemplateNodeAttributes(i,e,n)||r),r||n.noted}static _parseTemplateChildNodes(t,e,n){if("script"!==t.localName&&"style"!==t.localName)for(let r,i=t.firstChild,s=0;i;i=r){if("template"==i.localName&&(i=Rt(i)),r=i.nextSibling,i.nodeType===Node.TEXT_NODE){let n=r;for(;n&&n.nodeType===Node.TEXT_NODE;)i.textContent+=n.textContent,r=n.nextSibling,t.removeChild(n),n=r;if(e.stripWhiteSpace&&!i.textContent.trim()){t.removeChild(i);continue}}let o={parentIndex:s,parentInfo:n};this._parseTemplateNode(i,e,o)&&(o.infoIndex=e.nodeInfoList.push(o)-1),i.parentNode&&s++}}static _parseTemplateNestedTemplate(t,e,n){let r=t,i=this._parseTemplate(r,e);return(i.content=r.content.ownerDocument.createDocumentFragment()).appendChild(r.content),n.templateInfo=i,!0}static _parseTemplateNodeAttributes(t,e,n){let r=!1,i=Array.from(t.attributes);for(let s,o=i.length-1;s=i[o];o--)r=this._parseTemplateNodeAttribute(t,e,n,s.name,s.value)||r;return r}static _parseTemplateNodeAttribute(t,e,n,r,i){return"on-"===r.slice(0,3)?(t.removeAttribute(r),n.events=n.events||[],n.events.push({name:r.slice(3),value:i}),!0):"id"===r&&(n.id=i,!0)}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t);let n=(e=e||this.constructor._parseTemplate(t)).nodeInfoList,r=e.content||t.content,i=document.importNode(r,!0);i.__noInsertionPoint=!e.hasInsertionPoint;let s=i.nodeList=new Array(n.length);i.$={};for(let t,r=0,o=n.length;r<o&&(t=n[r]);r++){let n=s[r]=Mt(i,t);Dt(0,i.$,n,t),zt(0,n,t,e),Ft(this,n,t)}return i=i,i}_addMethodEventListenerToNode(t,e,n,r){let i=function(t,e,n){return t=t._methodHost||t,function(e){t[n]?t[n](e,e.detail):console.warn("listener method `"+n+"` not defined")}}(r=r||t,0,n);return this._addEventListenerToNode(t,e,i),i}_addEventListenerToNode(t,e,n){t.addEventListener(e,n)}_removeEventListenerFromNode(t,e,n){t.removeEventListener(e,n)}}));
|
|
132
|
-
/**
|
|
133
|
-
* @fileoverview
|
|
134
|
-
* @suppress {checkPrototypalTypes}
|
|
135
|
-
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
136
|
-
* This code may only be used under the BSD style license found at
|
|
137
|
-
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
138
|
-
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
139
|
-
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
140
|
-
* Google as part of the polymer project is also subject to an additional IP
|
|
141
|
-
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
142
|
-
*/let Bt=0;const jt=[],Yt={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},$t=/[A-Z]/;function qt(t,e,n){let r=t[e];if(r){if(!t.hasOwnProperty(e)&&(r=t[e]=Object.create(t[e]),n))for(let t in r){let e=r[t],n=r[t]=Array(e.length);for(let t=0;t<e.length;t++)n[t]=e[t]}}else r=t[e]={};return r}function Jt(t,e,n,r,i,s){if(e){let o=!1;const a=Bt++;for(let l in n){let c=e[i?et(l):l];if(c)for(let e,d=0,h=c.length;d<h&&(e=c[d]);d++)e.info&&e.info.lastRun===a||i&&!Ut(l,e.trigger)||(e.info&&(e.info.lastRun=a),e.fn(t,l,n,r,e.info,i,s),o=!0)}return o}return!1}function Vt(t,e,n,r,i,s,o,a){let l=!1,c=e[o?et(r):r];if(c)for(let e,d=0,h=c.length;d<h&&(e=c[d]);d++)e.info&&e.info.lastRun===n||o&&!Ut(r,e.trigger)||(e.info&&(e.info.lastRun=n),e.fn(t,r,i,s,e.info,o,a),l=!0);return l}function Ut(t,e){if(e){let n=e.name;return n==t||!(!e.structured||!nt(n,t))||!(!e.wildcard||!rt(n,t))}return!0}function Xt(t,e,n,r,i){let s="string"==typeof i.method?t[i.method]:i.method,o=i.property;s?s.call(t,t.__data[o],r[o]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Gt(t,e,n){let r=et(e);if(r!==e){return Wt(t,_t(r)+"-changed",n[e],e),!0}return!1}function Wt(t,e,n,r){let i={value:n,queueProperty:!0};r&&(i.path=r),Q(t).dispatchEvent(new CustomEvent(e,{detail:i}))}function Zt(t,e,n,r,i,s){let o=(s?et(e):e)!=e?e:null,a=o?lt(t,o):t.__data[e];o&&void 0===a&&(a=n[e]),Wt(t,i.eventName,a,o)}function Kt(t,e,n,r,i){let o=t.__data[e];s&&(o=s(o,i.attrName,"attribute",t)),t._propertyToAttribute(e,i.attrName,o)}function Qt(t,e,n,r){let i=t[Yt.COMPUTE];if(i)if(o){Bt++;const s=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const n=t[Yt.COMPUTE];let r,{counts:i,ready:s,total:o}=function(t){const e=t.__computeInfo,n={},r=t[Yt.COMPUTE],i=[];let s=0;for(let t in e){const r=e[t];s+=n[t]=r.args.filter((t=>!t.literal)).length+(r.dynamicFn?1:0)}for(let t in r)e[t]||i.push(t);return{counts:n,ready:i,total:s}}(t);for(;r=s.shift();){e.set(r,e.size);const t=n[r];t&&t.forEach((t=>{const e=t.info.methodInfo;--o,0==--i[e]&&s.push(e)}))}if(0!==o){const e=t;console.warn(`Computed graph for ${e.localName} incomplete; circular?`)}t.constructor.__orderedComputedDeps=e}return e}(t),o=[];for(let t in e)ee(t,i,o,s,r);let a;for(;a=o.shift();)ne(t,"",e,n,a)&&ee(a.methodInfo,i,o,s,r);Object.assign(n,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let s=e;for(;Jt(t,i,s,n,r);)Object.assign(n,t.__dataOld),Object.assign(e,t.__dataPending),s=t.__dataPending,t.__dataPending=null}}const te=(t,e,n)=>{let r=0,i=e.length-1,s=-1;for(;r<=i;){const o=r+i>>1,a=n.get(e[o].methodInfo)-n.get(t.methodInfo);if(a<0)r=o+1;else{if(!(a>0)){s=o;break}i=o-1}}s<0&&(s=i+1),e.splice(s,0,t)},ee=(t,e,n,r,i)=>{const s=e[i?et(t):t];if(s)for(let e=0;e<s.length;e++){const o=s[e];o.info.lastRun===Bt||i&&!Ut(t,o.trigger)||(o.info.lastRun=Bt,te(o.info,n,r))}};function ne(t,e,n,r,i){let s=ce(t,e,n,r,i);if(s===jt)return!1;let o=i.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[o]?t._setPendingProperty(o,s,!0):(t[o]=s,!1)}function re(t,e,n,r,i,s,o){n.bindings=n.bindings||[];let a={kind:r,target:i,parts:s,literal:o,isCompound:1!==s.length};if(n.bindings.push(a),function(t){return Boolean(t.target)&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||_t(i)+"-changed",a.listenerNegate=e}let l=e.nodeInfoList.length;for(let n=0;n<a.parts.length;n++){let r=a.parts[n];r.compoundIndex=n,ie(t,e,a,r,l)}}function ie(t,e,n,r,i){if(!r.literal)if("attribute"===n.kind&&"-"===n.target[0])console.warn("Cannot set attribute "+n.target+' because "-" is not a valid attribute starting character');else{let s=r.dependencies,o={index:i,binding:n,part:r,evaluator:t};for(let n=0;n<s.length;n++){let r=s[n];"string"==typeof r&&(r=_e(r),r.wildcard=!0),t._addTemplatePropertyEffect(e,r.rootProperty,{fn:se,info:o,trigger:r})}}}function se(t,e,n,r,i,o,a){let l=a[i.index],c=i.binding,d=i.part;if(o&&d.source&&e.length>d.source.length&&"property"==c.kind&&!c.isCompound&&l.__isPropertyEffectsClient&&l.__dataHasAccessor&&l.__dataHasAccessor[c.target]){let r=n[e];e=it(d.source,c.target,e),l._setPendingPropertyOrPath(e,r,!1,!0)&&t._enqueueClient(l)}else{let a=i.evaluator._evaluateBinding(t,d,e,n,r,o);a!==jt&&function(t,e,n,r,i){i=function(t,e,n,r){if(n.isCompound){let i=t.__dataCompoundStorage[n.target];i[r.compoundIndex]=e,e=i.join("")}"attribute"!==n.kind&&("textContent"!==n.target&&("value"!==n.target||"input"!==t.localName&&"textarea"!==t.localName)||(e=null==e?"":e));return e}(e,i,n,r),s&&(i=s(i,n.target,n.kind,e));if("attribute"==n.kind)t._valueToNodeAttribute(e,i,n.target);else{let r=n.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[r]?e[Yt.READ_ONLY]&&e[Yt.READ_ONLY][r]||e._setPendingProperty(r,i)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,r,i)}}(t,l,c,d,a)}}function oe(t,e){if(e.isCompound){let n=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),r=e.parts,i=new Array(r.length);for(let t=0;t<r.length;t++)i[t]=r[t].literal;let s=e.target;n[s]=i,e.literal&&"property"==e.kind&&("className"===s&&(t=Q(t)),t[s]=e.literal)}}function ae(t,e,n){if(n.listenerEvent){let r=n.parts[0];t.addEventListener(n.listenerEvent,(function(t){!function(t,e,n,r,i){let s,o=t.detail,a=o&&o.path;a?(r=it(n,r,a),s=o&&o.value):s=t.currentTarget[n],s=i?!s:s,e[Yt.READ_ONLY]&&e[Yt.READ_ONLY][r]||!e._setPendingPropertyOrPath(r,s,!0,Boolean(a))||o&&o.queueProperty||e._invalidateProperties()}(t,e,n.target,r.source,r.negate)}))}}function le(t,e,n,r,i,s){s=e.static||s&&("object"!=typeof s||s[e.methodName]);let o={methodName:e.methodName,args:e.args,methodInfo:i,dynamicFn:s};for(let i,s=0;s<e.args.length&&(i=e.args[s]);s++)i.literal||t._addPropertyEffect(i.rootProperty,n,{fn:r,info:o,trigger:i});return s&&t._addPropertyEffect(e.methodName,n,{fn:r,info:o}),o}function ce(t,e,n,r,i){let s=t._methodHost||t,o=s[i.methodName];if(o){let r=t._marshalArgs(i.args,e,n);return r===jt?jt:o.apply(s,r)}i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const de=[],he=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?((?:[a-zA-Z_$][\\w.:$\\-*]*)\\s*(?:\\(\\s*(?:(?:(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)(?:,\\s*(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*))*)?)\\)\\s*)?)(?:]]|}})","g");function ue(t){let e="";for(let n=0;n<t.length;n++){e+=t[n].literal||""}return e}function pe(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:de};if(e[2].trim()){return function(t,e){return e.args=t.map((function(t){let n=_e(t);return n.literal||(e.static=!1),n}),this),e}(e[2].replace(/\\,/g,",").split(","),t)}return t}return null}function _e(t){let e=t.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),n={name:e,value:"",literal:!1},r=e[0];switch("-"===r&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':n.value=e.slice(1,-1),n.literal=!0;break;case"#":n.value=Number(e),n.literal=!0}return n.literal||(n.rootProperty=et(e),n.structured=tt(e),n.structured&&(n.wildcard=".*"==e.slice(-2),n.wildcard&&(n.name=e.slice(0,-2)))),n}function fe(t,e,n){let r=lt(t,n);return void 0===r&&(r=e[n]),r}function me(t,e,r,i){const s={indexSplices:i};n&&!t._overrideLegacyUndefined&&(e.splices=s),t.notifyPath(r+".splices",s),t.notifyPath(r+".length",e.length),n&&!t._overrideLegacyUndefined&&(s.indexSplices=[])}function ye(t,e,n,r,i,s){me(t,e,n,[{index:r,addedCount:i,removed:s,object:e,type:"splice"}])}const ge=K((t=>{const e=Ht(Nt(t));return class extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return Yt}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(Pe.length){let t=Pe[Pe.length-1];t._enqueueClient(this),this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t),this.__dataPending=Object.create(t),this.__dataOld={}}_initializeInstanceProperties(t){let e=this[Yt.READ_ONLY];for(let n in t)e&&e[n]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=t[n])}_addPropertyEffect(t,e,n){this._createPropertyAccessor(t,e==Yt.READ_ONLY);let r=qt(this,e,!0)[t];r||(r=this[e][t]=[]),r.push(n)}_removePropertyEffect(t,e,n){let r=qt(this,e,!0)[t],i=r.indexOf(n);i>=0&&r.splice(i,1)}_hasPropertyEffect(t,e){let n=this[e];return Boolean(n&&n[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,Yt.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,Yt.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,Yt.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,Yt.COMPUTE)}_setPendingPropertyOrPath(t,e,n,r){if(r||et(Array.isArray(t)?t[0]:t)!==t){if(!r){let n=lt(this,t);if(!(t=ct(this,t,e))||!super._shouldPropertyChange(t,e,n))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,n))return function(t,e,n){let r=t.__dataLinkedPaths;if(r){let i;for(let s in r){let o=r[s];rt(s,e)?(i=it(s,o,e),t._setPendingPropertyOrPath(i,n,!0,!0)):rt(o,e)&&(i=it(o,s,e),t._setPendingPropertyOrPath(i,n,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,n);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,n){n===t[e]&&"object"!=typeof n||("className"===e&&(t=Q(t)),t[e]=n)}_setPendingProperty(t,e,n){let r=this.__dataHasPaths&&tt(t),i=r?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(t,e,i[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),r?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(r||this[Yt.NOTIFY]&&this[Yt.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=n),!0)}_setProperty(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let n=t[e];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let n in t)!e&&this[Yt.READ_ONLY]&&this[Yt.READ_ONLY][n]||this._setPendingPropertyOrPath(n,t[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,n){let r,i=this.__dataHasPaths;this.__dataHasPaths=!1,Qt(this,e,n,i),r=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,n,i),this._flushClients(),Jt(this,this[Yt.REFLECT],e,n,i),Jt(this,this[Yt.OBSERVE],e,n,i),r&&function(t,e,n,r,i){let s,o,a=t[Yt.NOTIFY],l=Bt++;for(let o in e)e[o]&&(a&&Vt(t,a,l,o,n,r,i)||i&&Gt(t,o,n))&&(s=!0);s&&(o=t.__dataHost)&&o._invalidateProperties&&o._invalidateProperties()}(this,r,e,n,i),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,n){this[Yt.PROPAGATE]&&Jt(this,this[Yt.PROPAGATE],t,e,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,n)}_runEffectsForTemplate(t,e,n,r){const i=(e,r)=>{Jt(this,t.propertyEffects,e,n,r,t.nodeList);for(let i=t.firstChild;i;i=i.nextSibling)this._runEffectsForTemplate(i,e,n,r)};t.runEffects?t.runEffects(i,e,r):i(e,r)}linkPaths(t,e){t=ot(t),e=ot(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=ot(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let n={path:""};me(this,lt(this,t,n),n.path,e)}get(t,e){return lt(e||this,t)}set(t,e,n){n?ct(n,t,e):this[Yt.READ_ONLY]&&this[Yt.READ_ONLY][t]||this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let n={path:""},r=lt(this,t,n),i=r.length,s=r.push(...e);return e.length&&ye(this,r,n.path,i,e.length,[]),s}pop(t){let e={path:""},n=lt(this,t,e),r=Boolean(n.length),i=n.pop();return r&&ye(this,n,e.path,n.length,0,[i]),i}splice(t,e,n,...r){let i,s={path:""},o=lt(this,t,s);return e<0?e=o.length-Math.floor(-e):e&&(e=Math.floor(e)),i=2===arguments.length?o.splice(e):o.splice(e,n,...r),(r.length||i.length)&&ye(this,o,s.path,e,r.length,i),i}shift(t){let e={path:""},n=lt(this,t,e),r=Boolean(n.length),i=n.shift();return r&&ye(this,n,e.path,0,0,[i]),i}unshift(t,...e){let n={path:""},r=lt(this,t,n),i=r.unshift(...e);return e.length&&ye(this,r,n.path,0,e.length,[]),i}notifyPath(t,e){let n;if(1==arguments.length){let r={path:""};e=lt(this,t,r),n=r.path}else n=Array.isArray(t)?ot(t):t;this._setPendingPropertyOrPath(n,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){var n;this._addPropertyEffect(t,Yt.READ_ONLY),e&&(this["_set"+(n=t,n[0].toUpperCase()+n.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,n){let r={property:t,method:e,dynamicFn:Boolean(n)};this._addPropertyEffect(t,Yt.OBSERVE,{fn:Xt,info:r,trigger:{name:t}}),n&&this._addPropertyEffect(e,Yt.OBSERVE,{fn:Xt,info:r,trigger:{name:e}})}_createMethodObserver(t,e){let n=pe(t);if(!n)throw new Error("Malformed observer expression '"+t+"'");le(this,n,Yt.OBSERVE,ce,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,Yt.NOTIFY,{fn:Zt,info:{eventName:_t(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);"-"===e[0]?console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,Yt.REFLECT,{fn:Kt,info:{attrName:e}})}_createComputedProperty(t,e,n){let r=pe(e);if(!r)throw new Error("Malformed computed expression '"+e+"'");const i=le(this,r,Yt.COMPUTE,ne,t,n);qt(this,"__computeInfo")[t]=i}_marshalArgs(t,e,r){const i=this.__data,s=[];for(let o=0,a=t.length;o<a;o++){let{name:a,structured:l,wildcard:c,value:d,literal:h}=t[o];if(!h)if(c){const t=rt(a,e),n=fe(i,r,t?e:a);d={path:t?e:a,value:n,base:t?lt(i,a):n}}else d=l?fe(i,r,a):i[a];if(n&&!this._overrideLegacyUndefined&&void 0===d&&t.length>1)return jt;s[o]=d}return s}static addPropertyEffect(t,e,n){this.prototype._addPropertyEffect(t,e,n)}static createPropertyObserver(t,e,n){this.prototype._createPropertyObserver(t,e,n)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,n){this.prototype._createComputedProperty(t,e,n)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let n=this.constructor._parseTemplate(t),r=this.__preBoundTemplateInfo==n;if(!r)for(let t in n.propertyEffects)this._createPropertyAccessor(t);if(e)if(n=Object.create(n),n.wasPreBound=r,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,r=e.lastChild;n.parent=e,e.lastChild=n,n.previousSibling=r,r?r.nextSibling=n:e.firstChild=n}else this.__templateInfo=n;else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(t,e,n){(t.hostProps=t.hostProps||{})[e]=!0;let r=t.propertyEffects=t.propertyEffects||{};(r[e]=r[e]||[]).push(n)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Pe.push(this);let n=super._stampTemplate(t,e);if(Pe.pop(),e.nodeList=n.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=n.firstChild;e;e=e.nextSibling)t.push(e)}return n.templateInfo=e,function(t,e){let{nodeList:n,nodeInfoList:r}=e;if(r.length)for(let e=0;e<r.length;e++){let i=r[e],s=n[e],o=i.bindings;if(o)for(let e=0;e<o.length;e++){let n=o[e];oe(s,n),ae(s,t,n)}s.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:n,nextSibling:r,parent:i}=e;n?n.nextSibling=r:i&&(i.firstChild=r),r?r.previousSibling=n:i&&(i.lastChild=n),e.nextSibling=e.previousSibling=null;let s=e.childNodes;for(let t=0;t<s.length;t++){let e=s[t];Q(Q(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,n,r){let i=e._parseTemplateNode.call(this,t,n,r);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,n);e&&(t.textContent=ue(e)||" ",re(this,n,r,"text","textContent",e),i=!0)}return i}static _parseTemplateNodeAttribute(t,n,r,i,s){let o=this._parseBindings(s,n);if(o){let e=i,s="property";$t.test(i)?s="attribute":"$"==i[i.length-1]&&(i=i.slice(0,-1),s="attribute");let a=ue(o);return a&&"attribute"==s&&("class"==i&&t.hasAttribute("class")&&(a+=" "+t.getAttribute(i)),t.setAttribute(i,a)),"attribute"==s&&"disable-upgrade$"==e&&t.setAttribute(i,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===s&&(i=pt(i)),re(this,n,r,s,i,o,a),!0}return e._parseTemplateNodeAttribute.call(this,t,n,r,i,s)}static _parseTemplateNestedTemplate(t,n,s){let o=e._parseTemplateNestedTemplate.call(this,t,n,s);const a=t.parentNode,l=s.templateInfo,c="dom-if"===a.localName,d="dom-repeat"===a.localName;r&&(c||d)&&(a.removeChild(t),(s=s.parentInfo).templateInfo=l,s.noted=!0,o=!1);let h=l.hostProps;if(i&&c)h&&(n.hostProps=Object.assign(n.hostProps||{},h),r||(s.parentInfo.noted=!0));else{let t="{";for(let e in h){re(this,n,s,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}}return o}static _parseBindings(t,e){let n,r=[],i=0;for(;null!==(n=he.exec(t));){n.index>i&&r.push({literal:t.slice(i,n.index)});let s=n[1][0],o=Boolean(n[2]),a=n[3].trim(),l=!1,c="",d=-1;"{"==s&&(d=a.indexOf("::"))>0&&(c=a.substring(d+2),a=a.substring(0,d),l=!0);let h=pe(a),u=[];if(h){let{args:t,methodName:n}=h;for(let e=0;e<t.length;e++){let n=t[e];n.literal||u.push(n)}let r=e.dynamicFns;(r&&r[n]||h.static)&&(u.push(n),h.dynamicFn=!0)}else u.push(a);r.push({source:a,mode:s,negate:o,customEvent:l,signature:h,dependencies:u,event:c}),i=he.lastIndex}if(i&&i<t.length){let e=t.substring(i);e&&r.push({literal:e})}return r.length?r:null}static _evaluateBinding(t,e,n,r,i,s){let o;return o=e.signature?ce(t,n,r,0,e.signature):n!=e.source?lt(t,e.source):s&&tt(n)?lt(t,n):t.__data[n],e.negate&&(o=!o),o}}})),Pe=[];
|
|
143
|
-
/**
|
|
144
|
-
@license
|
|
145
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
146
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
147
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
148
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
149
|
-
Code distributed by Google as part of the polymer project is also
|
|
150
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
151
|
-
*/
|
|
152
|
-
function be(t){}
|
|
153
|
-
/**
|
|
154
|
-
@license
|
|
155
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
156
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
157
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
158
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
159
|
-
Code distributed by Google as part of the polymer project is also
|
|
160
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
161
|
-
*/const we=K((t=>{const e=Tt(t);function n(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof i?e:null}function r(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const n=t.properties;n&&(e=function(t){const e={};for(let n in t){const r=t[n];e[n]="function"==typeof r?{type:r}:r}return e}(n))}t.__ownProperties=e}return t.__ownProperties}class i extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=n(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=r(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=n(this);this.__properties=Object.assign({},t&&t._properties,r(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return i})),ve=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ce=K((n=>{const r=we(ge(n));function i(t,e,n,r){n.computed&&(n.readOnly=!0),n.computed&&(t._hasReadOnlyEffect(e)?console.warn(`Cannot redefine computed property '${e}'.`):t._createComputedProperty(e,n.computed,r)),n.readOnly&&!t._hasReadOnlyEffect(e)?t._createReadOnlyProperty(e,!n.computed):!1===n.readOnly&&t._hasReadOnlyEffect(e)&&console.warn(`Cannot make readOnly property '${e}' non-readOnly.`),n.reflectToAttribute&&!t._hasReflectEffect(e)?t._createReflectedProperty(e):!1===n.reflectToAttribute&&t._hasReflectEffect(e)&&console.warn(`Cannot make reflected property '${e}' non-reflected.`),n.notify&&!t._hasNotifyEffect(e)?t._createNotifyingProperty(e):!1===n.notify&&t._hasNotifyEffect(e)&&console.warn(`Cannot make notify property '${e}' non-notify.`),n.observer&&t._createPropertyObserver(e,n.observer,r[n.observer]),t._addPropertyToAttributeMap(e)}function s(t,e,n,r){if(!ve){const i=e.content.querySelectorAll("style"),s=V(e),o=function(t){let e=Y(t);return e?U(e):[]}(n),a=e.content.firstElementChild;for(let n=0;n<o.length;n++){let i=o[n];i.textContent=t._processStyleText(i.textContent,r),e.content.insertBefore(i,a)}let l=0;for(let e=0;e<s.length;e++){let n=s[e],o=i[l];o!==n?(n=n.cloneNode(!0),o.parentNode.insertBefore(n,o)):l++,n.textContent=t._processStyleText(n.textContent,r)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,n),p&&ve&&_){const n=e.content.querySelectorAll("style");if(n){let e="";Array.from(n).forEach((t=>{e+=t.textContent,t.parentNode.removeChild(t)})),t._styleSheet=new CSSStyleSheet,t._styleSheet.replaceSync(e)}}}return class extends r{static get polymerElementVersion(){return"3.4.1"}static _finalizeClass(){r._finalizeClass.call(this);const t=((e=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",e))||(e.__ownObservers=e.hasOwnProperty(JSCompiler_renameProperty("observers",e))?e.observers:null),e.__ownObservers);var e;t&&this.createObservers(t,this._properties),this._prepareTemplate()}static _prepareTemplate(){let t=this.template;t&&("string"==typeof t?(console.error("template getter must return HTMLTemplateElement"),t=null):a||(t=t.cloneNode(!0))),this.prototype._template=t}static createProperties(t){for(let e in t)i(this.prototype,e,t[e],t)}static createObservers(t,e){const n=this.prototype;for(let r=0;r<t.length;r++)n._createMethodObserver(t[r],e)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){const e=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;this._template=void 0!==e?e:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(e){let n=null;if(e&&(!f||m)&&(n=t.import(e,"template"),f&&!n))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${e}`);return n}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(t){this._template=t}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const e=this.importMeta;if(e)this._importPath=l(e.url);else{const e=t.import(this.is);this._importPath=e&&e.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=c,this.importPath=this.constructor.importPath;let t=function(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let n in e){let r=e[n];"value"in r&&(t.__propertyDefaults=t.__propertyDefaults||{},t.__propertyDefaults[n]=r)}}return t.__propertyDefaults}(this.constructor);if(t)for(let e in t){let n=t[e];if(this._canApplyPropertyDefault(e)){let t="function"==typeof n.value?n.value.call(this):n.value;this._hasAccessor(e)?this._setPendingProperty(e,t,!0):this[e]=t}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,n){return e(t,n)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;const n=this.importPath;s(this,e,t,n?d(n):""),this.prototype._bindTemplate(e)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(t){const e=Q(this);if(e.attachShadow)return t?(e.shadowRoot||(e.attachShadow({mode:"open",shadyUpgradeFragment:t}),e.shadowRoot.appendChild(t),this.constructor._styleSheet&&(e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),h&&window.ShadyDOM&&window.ShadyDOM.flushInitial(e.shadowRoot),e.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,t)}resolveUrl(t,e){return!e&&this.importPath&&(e=d(this.importPath)),d(t,e)}static _parseTemplateContent(t,e,n){return e.dynamicFns=e.dynamicFns||this._properties,r._parseTemplateContent.call(this,t,e,n)}static _addTemplatePropertyEffect(t,e,n){return!u||e in this._properties||n.info.part.signature&&n.info.part.signature.static||n.info.part.hostProp||t.nestedTemplate||console.warn(`Property '${e}' used in template but not declared in 'properties'; attribute will not be observed.`),r._addTemplatePropertyEffect.call(this,t,e,n)}}})),Se=Ce(HTMLElement);
|
|
162
|
-
/**
|
|
163
|
-
* @fileoverview
|
|
164
|
-
* @suppress {checkPrototypalTypes}
|
|
165
|
-
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
166
|
-
* This code may only be used under the BSD style license found at
|
|
167
|
-
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
168
|
-
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
169
|
-
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
170
|
-
* Google as part of the polymer project is also subject to an additional IP
|
|
171
|
-
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
172
|
-
*/
|
|
173
|
-
/**
|
|
174
|
-
@license
|
|
175
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
176
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
177
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
178
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
179
|
-
Code distributed by Google as part of the polymer project is also
|
|
180
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
181
|
-
*/
|
|
182
|
-
class Ee{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run((()=>{this._timer=null,Te.delete(this),this._callback()}))}cancel(){this.isActive()&&(this._cancelAsync(),Te.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(t,e,n){return t instanceof Ee?t._cancelAsync():t=new Ee,t.setConfig(e,n),t}}let Te=new Set;const Oe=function(t){Te.add(t)},Ae=function(){const t=Boolean(Te.size);return Te.forEach((t=>{try{t.flush()}catch(t){setTimeout((()=>{throw t}))}})),t};
|
|
183
|
-
/**
|
|
184
|
-
@license
|
|
185
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
186
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
187
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
188
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
189
|
-
Code distributed by Google as part of the polymer project is also
|
|
190
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
191
|
-
*/
|
|
192
|
-
let Ne="string"==typeof document.head.style.touchAction,xe="__polymerGestures",Ie="__polymerGesturesHandled",Le="__polymerGesturesTouchAction",ke=["mousedown","mousemove","mouseup","click"],Re=[0,1,4,2],Me=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function De(t){return ke.indexOf(t)>-1}let Fe=!1;function ze(t){if(!De(t)&&"touchend"!==t)return Ne&&Fe&&y?{passive:!0}:void 0}!function(){try{let t=Object.defineProperty({},"passive",{get(){Fe=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}();let He=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const Be=[],je={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},Ye={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function $e(t){let e=Array.prototype.slice.call(t.labels||[]);if(!e.length){e=[];let n=t.getRootNode();if(t.id){let r=n.querySelectorAll(`label[for = ${t.id}]`);for(let t=0;t<r.length;t++)e.push(r[t])}}return e}let qe=function(t){let e=t.sourceCapabilities;var n;if((!e||e.firesTouchEvents)&&(t[Ie]={skip:!0},"click"===t.type)){let e=!1,r=We(t);for(let t=0;t<r.length;t++){if(r[t].nodeType===Node.ELEMENT_NODE)if("label"===r[t].localName)Be.push(r[t]);else if(n=r[t],je[n.localName]){let n=$e(r[t]);for(let t=0;t<n.length;t++)e=e||Be.indexOf(n[t])>-1}if(r[t]===Ue.mouse.target)return}if(e)return;t.preventDefault(),t.stopPropagation()}};function Je(t){let e=He?["click"]:ke;for(let n,r=0;r<e.length;r++)n=e[r],t?(Be.length=0,document.addEventListener(n,qe,!0)):document.removeEventListener(n,qe,!0)}function Ve(t){let e=t.type;if(!De(e))return!1;if("mousemove"===e){let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!Me&&(e=Re[t.which]||0),Boolean(1&e)}return 0===(void 0===t.button?0:t.button)}let Ue={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Xe(t,e,n){t.movefn=e,t.upfn=n,document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)}function Ge(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}document.addEventListener("touchend",(function(t){Ue.mouse.mouseIgnoreJob||Je(!0),Ue.mouse.target=We(t)[0],Ue.mouse.mouseIgnoreJob=Ee.debounce(Ue.mouse.mouseIgnoreJob,wt.after(2500),(function(){Je(),Ue.mouse.target=null,Ue.mouse.mouseIgnoreJob=null}))}),!!Fe&&{passive:!0});const We=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],Ze={},Ke=[];function Qe(t){const e=We(t);return e.length>0?e[0]:t.target}function tn(t){let e,n=t.type,r=t.currentTarget.__polymerGestures;if(!r)return;let i=r[n];if(i){if(!t[Ie]&&(t[Ie]={},"touch"===n.slice(0,5))){let e=(t=t).changedTouches[0];if("touchstart"===n&&1===t.touches.length&&(Ue.touch.id=e.identifier),Ue.touch.id!==e.identifier)return;Ne||"touchstart"!==n&&"touchmove"!==n||function(t){let e=t.changedTouches[0],n=t.type;if("touchstart"===n)Ue.touch.x=e.clientX,Ue.touch.y=e.clientY,Ue.touch.scrollDecided=!1;else if("touchmove"===n){if(Ue.touch.scrollDecided)return;Ue.touch.scrollDecided=!0;let n=function(t){let e="auto",n=We(t);for(let t,r=0;r<n.length;r++)if(t=n[r],t[Le]){e=t[Le];break}return e}(t),r=!1,i=Math.abs(Ue.touch.x-e.clientX),s=Math.abs(Ue.touch.y-e.clientY);t.cancelable&&("none"===n?r=!0:"pan-x"===n?r=s>i:"pan-y"===n&&(r=i>s)),r?t.preventDefault():an("track")}}(t)}if(e=t[Ie],!e.skip){for(let n,r=0;r<Ke.length;r++)n=Ke[r],i[n.name]&&!e[n.name]&&n.flow&&n.flow.start.indexOf(t.type)>-1&&n.reset&&n.reset();for(let r,s=0;s<Ke.length;s++)r=Ke[s],i[r.name]&&!e[r.name]&&(e[r.name]=!0,r[n](t))}}}function en(t,e,n){return!!Ze[e]&&(function(t,e,n){let r=Ze[e],i=r.deps,s=r.name,o=t[xe];o||(t[xe]=o={});for(let e,n,r=0;r<i.length;r++)e=i[r],He&&De(e)&&"click"!==e||(n=o[e],n||(o[e]=n={_count:0}),0===n._count&&t.addEventListener(e,tn,ze(e)),n[s]=(n[s]||0)+1,n._count=(n._count||0)+1);t.addEventListener(e,n),r.touchAction&&sn(t,r.touchAction)}(t,e,n),!0)}function nn(t,e,n){return!!Ze[e]&&(function(t,e,n){let r=Ze[e],i=r.deps,s=r.name,o=t[xe];if(o)for(let e,n,r=0;r<i.length;r++)e=i[r],n=o[e],n&&n[s]&&(n[s]=(n[s]||1)-1,n._count=(n._count||1)-1,0===n._count&&t.removeEventListener(e,tn,ze(e)));t.removeEventListener(e,n)}(t,e,n),!0)}function rn(t){Ke.push(t);for(let e=0;e<t.emits.length;e++)Ze[t.emits[e]]=t}function sn(t,e){Ne&&t instanceof HTMLElement&&St.run((()=>{t.style.touchAction=e})),t[Le]=e}function on(t,e,n){let r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=n,Q(t).dispatchEvent(r),r.defaultPrevented){let t=n.preventer||n.sourceEvent;t&&t.preventDefault&&t.preventDefault()}}function an(t){let e=function(t){for(let e,n=0;n<Ke.length;n++){e=Ke[n];for(let n,r=0;r<e.emits.length;r++)if(n=e.emits[r],n===t)return e}return null}(t);e.info&&(e.info.prevent=!0)}function ln(){Ue.mouse.mouseIgnoreJob&&Ue.mouse.mouseIgnoreJob.flush()}function cn(t,e,n,r){e&&on(e,t,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:r,prevent:function(t){return an(t)}})}function dn(t,e,n){if(t.prevent)return!1;if(t.started)return!0;let r=Math.abs(t.x-e),i=Math.abs(t.y-n);return r>=5||i>=5}function hn(t,e,n){if(!e)return;let r,i=t.moves[t.moves.length-2],s=t.moves[t.moves.length-1],o=s.x-t.x,a=s.y-t.y,l=0;i&&(r=s.x-i.x,l=s.y-i.y),on(e,"track",{state:t.state,x:n.clientX,y:n.clientY,dx:o,dy:a,ddx:r,ddy:l,sourceEvent:n,hover:function(){return function(t,e){let n=document.elementFromPoint(t,e),r=n;for(;r&&r.shadowRoot&&!window.ShadyDOM;){let i=r;if(r=r.shadowRoot.elementFromPoint(t,e),i===r)break;r&&(n=r)}return n}(n.clientX,n.clientY)}})}function un(t,e,n){let r=Math.abs(e.clientX-t.x),i=Math.abs(e.clientY-t.y),s=Qe(n||e);!s||Ye[s.localName]&&s.hasAttribute("disabled")||(isNaN(r)||isNaN(i)||r<=25&&i<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;let e=Qe(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;let n=e.getBoundingClientRect(),r=t.pageX,i=t.pageY;return!(r>=n.left&&r<=n.right&&i>=n.top&&i<=n.bottom)}return!1}(e))&&(t.prevent||on(s,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:n}))}
|
|
193
|
-
/**
|
|
194
|
-
@license
|
|
195
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
196
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
197
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
198
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
199
|
-
Code distributed by Google as part of the polymer project is also
|
|
200
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
201
|
-
*/rn({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Ge(this.info)},mousedown:function(t){if(!Ve(t))return;let e=Qe(t),n=this;Xe(this.info,(function(t){Ve(t)||(cn("up",e,t),Ge(n.info))}),(function(t){Ve(t)&&cn("up",e,t),Ge(n.info)})),cn("down",e,t)},touchstart:function(t){cn("down",Qe(t),t.changedTouches[0],t)},touchend:function(t){cn("up",Qe(t),t.changedTouches[0],t)}}),rn({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(t){this.moves.length>2&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Ge(this.info)},mousedown:function(t){if(!Ve(t))return;let e=Qe(t),n=this,r=function(t){let r=t.clientX,i=t.clientY;dn(n.info,r,i)&&(n.info.state=n.info.started?"mouseup"===t.type?"end":"track":"start","start"===n.info.state&&an("tap"),n.info.addMove({x:r,y:i}),Ve(t)||(n.info.state="end",Ge(n.info)),e&&hn(n.info,e,t),n.info.started=!0)};Xe(this.info,r,(function(t){n.info.started&&r(t),Ge(n.info)})),this.info.x=t.clientX,this.info.y=t.clientY},touchstart:function(t){let e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove:function(t){let e=Qe(t),n=t.changedTouches[0],r=n.clientX,i=n.clientY;dn(this.info,r,i)&&("start"===this.info.state&&an("tap"),this.info.addMove({x:r,y:i}),hn(this.info,e,n),this.info.state="track",this.info.started=!0)},touchend:function(t){let e=Qe(t),n=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:n.clientX,y:n.clientY}),hn(this.info,e,n))}}),rn({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(t){Ve(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click:function(t){Ve(t)&&un(this.info,t)},touchstart:function(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend:function(t){un(this.info,t.changedTouches[0],t)}});const pn=K((t=>class extends t{_addEventListenerToNode(t,e,n){en(t,e,n)||super._addEventListenerToNode(t,e,n)}_removeEventListenerFromNode(t,e,n){nn(t,e,n)||super._removeEventListenerFromNode(t,e,n)}}));export{et as A,ln as B,pt as C,Ee as D,Ce as E,pn as G,I as M,Se as P,N as V,vt as a,en as b,F as c,M as d,Oe as e,Ae as f,R as g,b as h,Ct as i,x as j,k,H as l,K as m,B as n,Nt as o,St as p,ve as q,be as r,sn as s,wt as t,L as u,lt as v,Q as w,ge as x,st as y,it as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as r}from"./shared-fe54babe.js";import{e as a,ag as o,ah as t,ai as e}from"./shared-307262a1.js";function n(n,s,i){return null==n?n:function(n,s,i,f){if(!a(n))return n;for(var u=-1,p=(s=o(s,n)).length,l=p-1,v=n;null!=v&&++u<p;){var c=t(s[u]),d=i;if("__proto__"===c||"constructor"===c||"prototype"===c)return n;if(u!=l){var h=v[c];void 0===(d=f?f(h,c,v):void 0)&&(d=a(h)?h:e(s[u+1])?[]:{})}r(v,c,d),v=v[c]}return n}(n,s,i)}export{n as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,_ as t}from"./shared-307262a1.js";import{h as n,L as r}from"./shared-7f33a83a.js";import{i as s,a}from"./shared-09d4fbb8.js";import{F as i}from"./shared-64657919.js";import{I as o}from"./shared-4b67d699.js";const l={type:"backend",init:()=>{},read:(t,n,r)=>{const s=async e=>{const t=e.ok?null:new Error(await e.text()),n=!!e.ok&&await e.json();r(t,n)},a=e=>{const t=e instanceof Error?e:new Error(String(e));r(t,!1)},o=new i("fetch",{cancelable:!0,composed:!0,bubbles:!0,request:new e.WHATWGRequest(`foxy://i18n/${n}/${t}`),resolve:s,reject:a});dispatchEvent(o),o.defaultPrevented||fetch(o.request).then(s).catch(a)},create:()=>{throw new Error("foxy-i18n does not support resource creation")}};function c(e,t=!1){var n;const r=e.replace(/(y|m|w|d)/,""),s=e.replace(/\.?\d+/,"");return{count:".5"===r?.5:parseInt(r),units:t&&null!==(n={y:"year",m:"month",w:"week",d:"day"}[s])&&void 0!==n?n:s}}const u={discount:({ns:e,type:t,details:n},r,s)=>{const a=t.endsWith("_percentage")?.01:1,i=n.split("|"),o=`${["allunits","incremental","repeat","single"].includes(i[0])?i.shift():"single"}_${t}_discount_summary`;return i.map((t=>{var n,r;const s=null!==(r=null===(n=/[-+]/.exec(t))||void 0===n?void 0:n.index)&&void 0!==r?r:-1,i=parseFloat(t.substring(s))*a,l=parseFloat(t.substring(0,s));return`$t(${o}, ${JSON.stringify({maximumFractionDigits:10,adjustment:i,from:l,ns:e})})`})).join("; ")},relative:(e,t,n)=>{const r=new Intl.RelativeTimeFormat(n);let{count:s,units:a}=c(e,!0);return.5===s&&"month"===a&&(s=2,a="week"),r.format(s,a)},percent:(e,n,r,s)=>{let a=null;try{"number"==typeof e&&(a=e.toLocaleString(r,t(t({},s),{},{style:"percent"})))}catch(e){console.warn(`i18next formatter error: ${e.message}`)}return a||String(e)},ordinal:(e,t,n)=>`${e}$t(ordinal_${new Intl.PluralRules(n,{type:"ordinal"}).select(e)})`,price:(e,t,n,r)=>{var s;try{const[t,a]=e.split(" ");return parseFloat(t).toLocaleString(n,{maximumFractionDigits:2,minimumFractionDigits:2,currencyDisplay:null!==(s=null==r?void 0:r.currencyDisplay)&&void 0!==s?s:"symbol",signDisplay:null==r?void 0:r.signDisplay,style:"currency",currency:a})}catch(t){return e}},date:(e,t,n,r)=>{var s,a,i;if(!e)return"$t(unknown)";const o=new Date(e),l=null!==(s=null==r?void 0:r.month)&&void 0!==s?s:"long",c=(null!==(a=null==r?void 0:r.year)&&void 0!==a?a:(new Date).getFullYear()===o.getFullYear())?void 0:"numeric",u=null!==(i=null==r?void 0:r.day)&&void 0!==i?i:"numeric";return o.toLocaleDateString(n,{month:l,year:c,day:u})},time:(e,t,n)=>new Date(e).toLocaleTimeString(n,{hour:"numeric",minute:"numeric"})};let d,p=e=>e;class m extends(a(o(r),"")){constructor(){super(...arguments),this.options={},this.key=""}static onTranslationChange(e){const t=["initialized","loaded"],n=["removed","added"];return t.forEach((t=>m.i18next.on(t,e))),n.forEach((t=>m.i18next.store.on(t,e))),()=>{t.forEach((t=>m.i18next.off(t,e))),n.forEach((t=>m.i18next.store.off(t,e)))}}static onResourceFetch(e){const t=t=>{if(t instanceof i&&t.request.url.startsWith("foxy://i18n/")){const[n,r]=t.request.url.split("/").reverse();t.respondWith(e(r,n))}};return addEventListener("fetch",t),()=>removeEventListener("fetch",t)}static setGateways({values:e}){for(const t in e)this.i18next.addResource("en","gateways",`gateways.${t}`,e[t].name)}static get properties(){return t(t({},super.properties),{},{options:{type:Object},key:{type:String}})}connectedCallback(){super.connectedCallback(),this.__unsubscribe=m.onTranslationChange((()=>this.requestUpdate()))}render(){return n(d||(d=p`<span>${0}</span>`),this.t(this.key,t(t({},this.options),{},{lng:this.lang})))}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this.__unsubscribe)||void 0===e||e.call(this)}}m.FetchEvent=i,m.i18next=s.createInstance().use(l),m.i18next.init({interpolation:{format:(e,t="",n="en",r={})=>t.split(" ").filter((e=>!!e.trim())).reduce(((e,t)=>{var s,a;return null!==(a=null===(s=u[t])||void 0===s?void 0:s.call(u,e,t,n,r))&&void 0!==a?a:e}),e),escapeValue:!1},fallbackLng:"en",fallbackNS:"shared",defaultNS:"shared",ns:["shared"]}),customElements.define("foxy-i18n",m);export{m as I,c as p};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as r}from"./shared-307262a1.js";import{p as s}from"./shared-77a4d8e8.js";function a(a){var t;const n=s(a),o=null!==(t={y:"yearly",m:"monthly",w:"weekly",d:"daily"}[n.units])&&void 0!==t?t:n.units;return r(r({},n),{},{units:o})}export{a as p};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ag as a,ah as r,aK as n,ai as t,aF as l,aL as e}from"./shared-307262a1.js";var o=Object.prototype.hasOwnProperty;function s(a,r){return null!=a&&o.call(a,r)}function u(o,u){return null!=o&&function(o,s,u){for(var f=-1,h=(s=a(s,o)).length,i=!1;++f<h;){var c=r(s[f]);if(!(i=null!=o&&u(o,c)))break;o=o[c]}return i||++f!=h?i:!!(h=null==o?0:o.length)&&n(h)&&t(c,h)&&(l(o)||e(o))}(o,u,s)}export{u as h};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a0 as e,a1 as t,a2 as a,a3 as s,a4 as i,a5 as n,a6 as r,a7 as o,h as l,a8 as d,a9 as u,aa as c,ab as h,ac as m,ad as v,ae as g,m as p,_ as y,af as b}from"./shared-307262a1.js";import"./shared-4674063d.js";import"./shared-17d0db7f.js";import"./shared-479ad951.js";import"./shared-fef9ecc1.js";import"./shared-e6828dbf.js";import"./shared-432c5183.js";import"./shared-984fcdf5.js";import{d as f,P as x,A as _,L as w,c as $,h as E}from"./shared-7f33a83a.js";import"./shared-64f98a0f.js";import"./shared-88e36564.js";import{p as k}from"./shared-77a4d8e8.js";import{a as T,x as S}from"./shared-09d4fbb8.js";import{I as V}from"./shared-4b67d699.js";import{s as C}from"./shared-11c2efc8.js";import{i as A}from"./shared-332f2997.js";var M={raise:e,send:t,sendParent:a,sendUpdate:s,log:i,cancel:n,start:r,stop:o,assign:l,after:d,done:u,respond:c,forwardTo:h,escalate:m,choose:v,pure:g};const j=f((e=>t=>{const{element:a,name:s,strings:i}=t.committer;if(2!==i.length||""!==i[0]||""!==i[1])throw new Error("live directive bindings must not contain any static values");if(t.committer.parts.length>1)throw new Error("live directive must be the only directive for an attribute or property");if(t instanceof x)a[s]!==e&&t.setValue(e);else{if(!(t instanceof _))throw new Error("live directive can only be used on attributes or properties");a.getAttribute(s)!==e&&t.setValue(e)}}));class I extends CustomEvent{constructor(e){super("change",{detail:e})}}class F extends CustomEvent{constructor(e){super("change",{detail:e})}}class U extends F{}let D,P,q=e=>e;class L extends(T(V(w))){constructor(){super(...arguments),this.label="",this.value="",this.disabled=!1,this.readonly=!1,this.errorMessage="",this.__i18n={formatValue:e=>e.join(""),parseValue:e=>{const{count:t,units:a}=k(e);return[t.toString(),a]}},this.__getItems=p((e=>{const t=k(e).count;return[{value:"d",label:this.t("day",{count:t})},{value:"w",label:this.t("week",{count:t})},{value:"m",label:this.t("month",{count:t})},{value:"y",label:this.t("year",{count:t})}]}))}static get properties(){return y(y({},super.properties),{},{checkValidity:{attribute:!1},errorMessage:{type:String,attribute:"error-message"},disabled:{type:Boolean,reflect:!0},readonly:{type:Boolean,reflect:!0},label:{type:String},value:{type:String}})}static get styles(){return $(D||(D=q`:host{display:block}vaadin-custom-field{width:100%;font-size:0;line-height:0;padding-top:0!important}vaadin-custom-field::part(label){padding-bottom:var(--lumo-space-s)}vaadin-custom-field::part(error-message)[aria-hidden=false]{padding-top:var(--lumo-space-xs)}vaadin-combo-box,vaadin-integer-field{width:calc(50% - (var(--lumo-space-s)/ 2))}vaadin-integer-field{margin-right:var(--lumo-space-s);padding:0}vaadin-combo-box::part(text-field){padding:0}`))}render(){return E(P||(P=q` <vaadin-custom-field data-testid="field" .i18n="${0}" .label="${0}" .value="${0}" ?disabled="${0}" ?readonly="${0}" .errorMessage="${0}" .checkValidity="${0}" @change="${0}"> <vaadin-integer-field data-testid="value" min="1" max="999" has-controls prevent-invalid-input ?invalid="${0}" ?disabled="${0}" ?readonly="${0}"> </vaadin-integer-field> <vaadin-combo-box data-testid="units" item-value-path="value" item-label-path="label" .items="${0}" ?invalid="${0}" ?disabled="${0}" ?readonly="${0}"> </vaadin-combo-box> </vaadin-custom-field> `),this.__i18n,this.label,j(this.value),this.disabled,this.readonly,this.errorMessage,this.checkValidity,this.__handleChange,!this.checkValidity(),this.disabled,this.readonly,this.__getItems(this.value),!this.checkValidity(),this.disabled,this.readonly)}updated(e){super.updated(e);const t=this.renderRoot.firstElementChild;t.value!==this.value&&(t.value=this.value)}checkValidity(){return!0}__handleChange(e){const t=e.target;this.value=t.value,this.dispatchEvent(new U(this.value))}}const N=b({id:"choice",type:"parallel",context:{defaultCustomValue:"",customValue:null,custom:!1,items:[],value:null,type:"text",min:null,max:null},states:{mutability:{initial:"editable",states:{editable:{},readonly:{}},on:{SET_READONLY:[{target:".editable",cond:"isPayloadFalsey"},{target:".readonly",cond:"isPayloadTruthy"}]}},interactivity:{initial:"enabled",states:{enabled:{},disabled:{}},on:{SET_DISABLED:[{target:".enabled",cond:"isPayloadFalsey"},{target:".disabled",cond:"isPayloadTruthy"}]}},selection:{initial:"unknown",states:{unknown:{always:[{target:"multiple",cond:"isValueArray"},{target:"single"}]},none:{},single:{},multiple:{}}},extension:{initial:"unknown",states:{unknown:{always:[{target:"present",cond:"hasCustom"},{target:"absent"}]},absent:{},present:{initial:"unknown",states:{unknown:{always:[{target:"selected",cond:"hasCustomValue"},{target:"available"}]},available:{on:{SET_TYPE:{actions:"setType"}}},selected:{initial:"unknown",states:{unknown:{always:[{target:"number",cond:"showsNumberField"},{target:"integer",cond:"showsIntegerField"},{target:"textarea",cond:"showsTextarea"},{target:"frequency",cond:"showsFrequency"},{target:"text"}]},text:{},frequency:{},textarea:{},integer:{type:"parallel",states:{min:{initial:"unknown",states:{unknown:{always:[{target:"custom",cond:"hasMinConstraint"},{target:"none"}]},none:{},custom:{}}},max:{initial:"unknown",states:{unknown:{always:[{target:"custom",cond:"hasMaxConstraint"},{target:"none"}]},none:{},custom:{}}}}},number:{type:"parallel",states:{min:{initial:"unknown",states:{unknown:{always:[{target:"custom",cond:"hasMinConstraint"},{target:"none"}]},none:{},custom:{}}},max:{initial:"unknown",states:{unknown:{always:[{target:"custom",cond:"hasMaxConstraint"},{target:"none"}]},none:{},custom:{}}}}}}}}}}}},on:{SET_DEFAULT_CUSTOM_VALUE:{actions:"setDefaultCustomValue"},SET_CUSTOM:{actions:"setCustom",target:[".selection.unknown",".extension.unknown"]},SET_VALUE:{actions:"setValue",target:[".selection.unknown",".extension.unknown"]},SET_ITEMS:{actions:"setItems",target:[".selection.unknown",".extension.unknown"]},SET_TYPE:{actions:"setType",target:".extension.unknown"},SET_MIN:{actions:"setMin",target:".extension.unknown"},SET_MAX:{actions:"setMax",target:".extension.unknown"}}},{guards:{isPayloadFalsey:(e,t)=>!t.data,isPayloadTruthy:(e,t)=>!!t.data,isValueArray:e=>Array.isArray(e.value),showsIntegerField:e=>"integer"===e.type,showsNumberField:e=>"number"===e.type,showsFrequency:e=>"frequency"===e.type,showsTextarea:e=>"textarea"===e.type,hasMinConstraint:e=>"number"==typeof e.min,hasMaxConstraint:e=>"number"==typeof e.max,hasCustomValue:e=>"string"==typeof e.customValue,hasCustom:e=>e.custom},actions:{setDefaultCustomValue:M.assign({defaultCustomValue:(e,t)=>t.data}),setValue:M.assign({value:(e,t)=>t.data,customValue:(e,t)=>Array.isArray(t.data)?t.data.find((t=>!e.items.includes(t))):e.items.includes(t.data)?null:t.data}),setCustom:M.assign({custom:(e,t)=>t.data}),setItems:M.assign({items:(e,t)=>t.data}),setType:M.assign({type:(e,t)=>t.data}),setMin:M.assign({min:(e,t)=>t.data}),setMax:M.assign({max:(e,t)=>t.data})}});let B,O,Y,R,z,X,G,H,J,K,Q,W,Z,ee,te=e=>e;const ae=`@foxy.io/elements::other[${(Math.pow(10,10)*Math.random()).toFixed(0)}]`;class se extends S{constructor(){super(...arguments),this.getText=e=>e,this.__service=A(N).onChange((()=>this.requestUpdate())).onTransition((({changed:e})=>e&&this.requestUpdate())).start()}static get scopedElements(){return{"vaadin-integer-field":customElements.get("vaadin-integer-field"),"vaadin-number-field":customElements.get("vaadin-number-field"),"vaadin-text-field":customElements.get("vaadin-text-field"),"x-frequency-input":L,"vaadin-text-area":customElements.get("vaadin-text-area"),"iron-icon":customElements.get("iron-icon")}}static get styles(){return[super.styles,$(Y||(Y=te`:host{--item-width:calc((var(--lumo-space-m) * 2) + 1.25rem)}.ml-xxl{margin-left:var(--item-width)}.item{height:var(--lumo-size-l);width:var(--item-width)}.radio{height:1.25rem;width:1.25rem}.check{height:1.125rem;width:1.125rem}.dot{height:.5rem;width:.5rem}`))]}static get properties(){return y(y({},super.properties),{},{defaultCustomValue:{type:String,attribute:"default-custom-value"},disabled:{type:Boolean},readonly:{type:Boolean},custom:{type:Boolean},type:{type:String},min:{type:Number},max:{type:Number},value:{type:Array},items:{type:Array},getText:{attribute:!1}})}get defaultCustomValue(){return this.__service.state.context.defaultCustomValue}set defaultCustomValue(e){this.__service.send("SET_DEFAULT_CUSTOM_VALUE",{data:e})}get readonly(){return this.__service.state.matches("mutability.readonly")}set readonly(e){this.__service.send("SET_READONLY",{data:e})}get disabled(){return this.__service.state.matches("interactivity.disabled")}set disabled(e){this.__service.send("SET_DISABLED",{data:e})}get custom(){return this.__service.state.matches("extension.present")}set custom(e){this.__service.send("SET_CUSTOM",{data:e})}get type(){return this.__service.state.context.type}set type(e){this.__service.send("SET_TYPE",{data:e})}get min(){return this.__service.state.context.min}set min(e){this.__service.send("SET_MIN",{data:e})}get max(){return this.__service.state.context.max}set max(e){this.__service.send("SET_MAX",{data:e})}get value(){return this.__service.state.context.value}set value(e){this.__service.send("SET_VALUE",{data:e})}get items(){return this.__service.state.context.items}set items(e){this.__service.send("SET_ITEMS",{data:e})}render(){const e=this.custom?[...this.items,ae]:this.items,t=Array.isArray(this.value),a=this.__service.state.matches("extension.present.selected"),s=E(R||(R=te` ${0} `),e.map(((e,s,i)=>{var n;const r=this.custom&&s===i.length-1,o=r?a:t?!!(null===(n=this.value)||void 0===n?void 0:n.includes(e)):e===String(this.value),l=this.disabled||!this._isI18nReady,d=C({value:r?ae:e,name:t?e:"choice","data-testid":`item-${e}`,"?disabled":l,"@change":t=>{if(this.readonly)return t.preventDefault();const a=t.target.checked,s=e===ae?this.defaultCustomValue:e,i=this.value;Array.isArray(i)?this.value=e===ae?a?[...i,s]:i.slice(0,i.length-1):a?[s,...i]:i.filter((e=>e!==s)):this.value=a?s:null,this.dispatchEvent(new I(this.value))}}),u=E(z||(z=te` <div> ${0} </div> `),e===ae?this._t("choice.other").toString():E(X||(X=te`<slot name="${0}">${0}</slot>`),`${e}-label`,this.getText(e)));return E(G||(G=te` <div class="ml-xxl border-t border-contrast-10 ${0}"></div> ${0} <div class="mr-m ml-xxl"> ${0} ${0} </div> `),s?"":"hidden",t?function(e,t,a,s,i){const n="transition ease-in-out duration-200",r=`${n} transform ${a?"scale-100":"scale-0"} ${e?"text-contrast-70":"text-tint"}`;return E(O||(O=te` <label class="group flex items-center ${0}"> <div class="item flex items-center justify-center flex-shrink-0 text-primary-contrast"> <div class="check rounded-s ${0} ${0} ${0} focus-within-shadow-outline"> <iron-icon icon="lumo:checkmark" class="block w-full h-full ${0}"></iron-icon> <input type="checkbox" class="sr-only" .checked="${0}" ...="${0}"> </div> </div> <div class="font-lumo leading-m ${0}">${0}</div> </label> `),t||e?"":"cursor-pointer","border "+(e?"border-dashed border-contrast-30":"border-transparent"),n,e?"":t?a?"bg-primary-50":"bg-contrast-10":a?"bg-primary":"bg-contrast-20 group-hover-bg-contrast-30",r,a,s,t?"text-disabled":e?"text-secondary":"text-body",i)}(this.readonly,l,o,d,u):function(e,t,a,s,i){const n="transition ease-in-out duration-200",r=`${n} ${t||e?"":"shadow-xs"} transform ${a?"scale-100":"scale-0"} ${e?"bg-contrast-70":"bg-tint"}`;return E(B||(B=te` <label class="group flex items-center ${0}"> <div class="item flex items-center justify-center flex-shrink-0"> <div class="flex radio rounded-full ${0} ${0} ${0} focus-within-shadow-outline"> <div class="dot m-auto rounded-full ${0}"></div> <input type="radio" class="sr-only" .checked="${0}" ...="${0}"> </div> </div> <div class="font-lumo leading-m ${0}">${0}</div> </label> `),t||e?"":"cursor-pointer","border "+(e?"border-dashed border-contrast-30":"border-transparent"),n,e?"":t?a?"bg-primary-50":"bg-contrast-10":a?"bg-primary":"bg-contrast-20 group-hover-bg-contrast-30",r,a,s,t?"text-disabled":e?"text-secondary":"text-body",i)}(this.readonly,l,o,d,u),e===ae&&a?this.__field:"",e!==ae?E(H||(H=te`<slot name="${0}"></slot>`),e):"")})));return E(J||(J=te`<form>${0}</form> `),s)}get __field(){const e=C({placeholder:this._t("choice.other").toString(),class:"w-full mb-m",value:this.__service.state.context.customValue,max:this.max,min:this.min,ns:this.ns,"?disabled":this.disabled,"?readonly":this.readonly,"data-testid":"field","@change":e=>{e.stopPropagation();const t=e.target.value;Array.isArray(this.value)?this.value=this.value.slice(0,this.value.length-1).concat(t):this.value=t,this.dispatchEvent(new I(this.value))}});return"frequency"===this.type?E(K||(K=te`<x-frequency-input ...="${0}"></x-frequency-input>`),e):"integer"===this.type?E(Q||(Q=te`<vaadin-integer-field ...="${0}" has-controls></vaadin-integer-field>`),e):"number"===this.type?E(W||(W=te`<vaadin-number-field ...="${0}" has-controls></vaadin-number-field>`),e):"textarea"===this.type?E(Z||(Z=te`<vaadin-text-area ...="${0}"></vaadin-text-area>`),e):E(ee||(ee=te`<vaadin-text-field ...="${0}"></vaadin-text-field>`),e)}}export{se as C,F as D,L as F,I as a,M as b};
|