@foxy.io/elements 1.42.0-beta.6 → 1.42.0-beta.7

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.
Files changed (236) hide show
  1. package/dist/cdn/foxy-access-recovery-form.js +1 -1
  2. package/dist/cdn/foxy-address-card.js +5 -5
  3. package/dist/cdn/foxy-address-form.js +1 -1
  4. package/dist/cdn/foxy-admin-subscription-card.js +1 -1
  5. package/dist/cdn/foxy-admin-subscription-form.js +1 -1
  6. package/dist/cdn/foxy-api-browser.js +1 -1
  7. package/dist/cdn/foxy-applied-coupon-code-card.js +1 -1
  8. package/dist/cdn/foxy-applied-coupon-code-form.js +1 -1
  9. package/dist/cdn/foxy-applied-tax-card.js +1 -1
  10. package/dist/cdn/foxy-attribute-card.js +1 -1
  11. package/dist/cdn/foxy-attribute-form.js +1 -1
  12. package/dist/cdn/foxy-billing-address-card.js +1 -1
  13. package/dist/cdn/foxy-cancellation-form.js +1 -1
  14. package/dist/cdn/foxy-cart-card.js +1 -1
  15. package/dist/cdn/foxy-cart-form.js +2 -2
  16. package/dist/cdn/foxy-client-card.js +1 -1
  17. package/dist/cdn/foxy-client-form.js +1 -1
  18. package/dist/cdn/foxy-collection-page.js +1 -1
  19. package/dist/cdn/foxy-collection-pages.js +1 -1
  20. package/dist/cdn/foxy-copy-to-clipboard.js +1 -1
  21. package/dist/cdn/foxy-coupon-card.js +1 -1
  22. package/dist/cdn/foxy-coupon-code-card.js +1 -1
  23. package/dist/cdn/foxy-coupon-code-form.js +1 -1
  24. package/dist/cdn/foxy-coupon-codes-form.js +1 -1
  25. package/dist/cdn/foxy-coupon-detail-card.js +1 -1
  26. package/dist/cdn/foxy-coupon-form.js +1 -1
  27. package/dist/cdn/foxy-custom-field-card.js +1 -1
  28. package/dist/cdn/foxy-custom-field-form.js +1 -1
  29. package/dist/cdn/foxy-customer-card.js +1 -1
  30. package/dist/cdn/foxy-customer-form.js +1 -1
  31. package/dist/cdn/foxy-customer-portal-settings-form.js +1 -1
  32. package/dist/cdn/foxy-customer-portal-settings.js +1 -1
  33. package/dist/cdn/foxy-customer-portal.js +1 -1
  34. package/dist/cdn/foxy-customer.js +1 -1
  35. package/dist/cdn/foxy-customers-table.js +1 -1
  36. package/dist/cdn/foxy-discount-builder.js +1 -1
  37. package/dist/cdn/foxy-discount-card.js +1 -1
  38. package/dist/cdn/foxy-discount-detail-card.js +1 -1
  39. package/dist/cdn/foxy-donation.js +1 -1
  40. package/dist/cdn/foxy-downloadable-card.js +1 -1
  41. package/dist/cdn/foxy-downloadable-form.js +1 -1
  42. package/dist/cdn/foxy-email-template-card.js +1 -1
  43. package/dist/cdn/foxy-email-template-form.js +1 -1
  44. package/dist/cdn/foxy-error-entry-card.js +1 -1
  45. package/dist/cdn/foxy-experimental-add-to-cart-builder.js +1 -1
  46. package/dist/cdn/foxy-filter-attribute-card.js +1 -1
  47. package/dist/cdn/foxy-filter-attribute-form.js +1 -1
  48. package/dist/cdn/foxy-form-dialog.js +1 -1
  49. package/dist/cdn/foxy-generate-codes-form.js +1 -1
  50. package/dist/cdn/foxy-gift-card-card.js +1 -1
  51. package/dist/cdn/foxy-gift-card-code-card.js +1 -1
  52. package/dist/cdn/foxy-gift-card-code-form.js +1 -1
  53. package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
  54. package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
  55. package/dist/cdn/foxy-gift-card-form.js +1 -1
  56. package/dist/cdn/foxy-i18n-editor.js +4 -4
  57. package/dist/cdn/foxy-i18n.js +1 -1
  58. package/dist/cdn/foxy-integration-card.js +1 -1
  59. package/dist/cdn/foxy-integration-form.js +1 -1
  60. package/dist/cdn/foxy-item-card.js +1 -1
  61. package/dist/cdn/foxy-item-category-card.js +1 -1
  62. package/dist/cdn/foxy-item-category-form.js +1 -1
  63. package/dist/cdn/foxy-item-form.js +1 -1
  64. package/dist/cdn/foxy-item-option-card.js +1 -1
  65. package/dist/cdn/foxy-item-option-form.js +1 -1
  66. package/dist/cdn/foxy-items-form.js +1 -1
  67. package/dist/cdn/foxy-native-integration-card.js +1 -1
  68. package/dist/cdn/foxy-native-integration-form.js +1 -1
  69. package/dist/cdn/foxy-pagination.js +1 -1
  70. package/dist/cdn/foxy-passkey-card.js +1 -1
  71. package/dist/cdn/foxy-passkey-form.js +1 -1
  72. package/dist/cdn/foxy-payment-card-embed.js +1 -1
  73. package/dist/cdn/foxy-payment-card.js +1 -1
  74. package/dist/cdn/foxy-payment-method-card.js +1 -1
  75. package/dist/cdn/foxy-payments-api-fraud-protection-card.js +1 -1
  76. package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
  77. package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
  78. package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
  79. package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
  80. package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
  81. package/dist/cdn/foxy-query-builder.js +1 -1
  82. package/dist/cdn/foxy-report-form.js +10 -10
  83. package/dist/cdn/foxy-reports-table.js +1 -1
  84. package/dist/cdn/foxy-shipment-card.js +1 -1
  85. package/dist/cdn/foxy-shipping-container-card.js +1 -1
  86. package/dist/cdn/foxy-shipping-drop-type-card.js +1 -1
  87. package/dist/cdn/foxy-shipping-method-card.js +1 -1
  88. package/dist/cdn/foxy-shipping-service-card.js +1 -1
  89. package/dist/cdn/foxy-sign-in-form.js +1 -1
  90. package/dist/cdn/foxy-spinner.js +2 -2
  91. package/dist/cdn/foxy-store-card.js +1 -1
  92. package/dist/cdn/foxy-store-form.js +1 -1
  93. package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
  94. package/dist/cdn/foxy-subscription-card.js +1 -1
  95. package/dist/cdn/foxy-subscription-form.js +1 -1
  96. package/dist/cdn/foxy-subscription-settings-form.js +1 -1
  97. package/dist/cdn/foxy-subscriptions-table.js +1 -1
  98. package/dist/cdn/foxy-swipe-actions.js +1 -1
  99. package/dist/cdn/foxy-table.js +1 -1
  100. package/dist/cdn/foxy-tax-card.js +1 -1
  101. package/dist/cdn/foxy-tax-form.js +1 -1
  102. package/dist/cdn/foxy-template-config-form.js +1 -1
  103. package/dist/cdn/foxy-template-form.js +1 -1
  104. package/dist/cdn/foxy-template-set-card.js +1 -1
  105. package/dist/cdn/foxy-template-set-form.js +1 -1
  106. package/dist/cdn/foxy-transaction-card.js +1 -1
  107. package/dist/cdn/foxy-transaction.js +1 -1
  108. package/dist/cdn/foxy-transactions-table.js +7 -7
  109. package/dist/cdn/foxy-update-payment-method-form.js +1 -1
  110. package/dist/cdn/foxy-user-card.js +1 -1
  111. package/dist/cdn/foxy-user-form.js +1 -1
  112. package/dist/cdn/foxy-user-invitation-card.js +1 -1
  113. package/dist/cdn/foxy-user-invitation-form.js +1 -1
  114. package/dist/cdn/foxy-users-table.js +1 -1
  115. package/dist/cdn/foxy-webhook-card.js +1 -1
  116. package/dist/cdn/foxy-webhook-form.js +1 -1
  117. package/dist/cdn/foxy-webhook-log-card.js +1 -1
  118. package/dist/cdn/foxy-webhook-status-card.js +1 -1
  119. package/dist/cdn/{shared-864ea319.js → shared-0553380e.js} +1 -1
  120. package/dist/cdn/{shared-fca3a317.js → shared-0c242246.js} +1 -1
  121. package/dist/cdn/{shared-25167d28.js → shared-0cc8df04.js} +1 -1
  122. package/dist/cdn/{shared-4e309d01.js → shared-0cfb1c08.js} +1 -1
  123. package/dist/cdn/{shared-77f39a8a.js → shared-0f4dfb14.js} +1 -1
  124. package/dist/cdn/{shared-16ae74b2.js → shared-1aff90a9.js} +1 -1
  125. package/dist/cdn/shared-1b46df2a.js +417 -0
  126. package/dist/cdn/{shared-70380f94.js → shared-1d03f911.js} +1 -1
  127. package/dist/cdn/shared-241b6cca.js +231 -0
  128. package/dist/cdn/{shared-56d91134.js → shared-2939f350.js} +1 -1
  129. package/dist/cdn/shared-2b126cea.js +25 -0
  130. package/dist/cdn/{shared-4ded48ee.js → shared-2fe8aabd.js} +1 -1
  131. package/dist/cdn/{shared-7a2aaafa.js → shared-330e57d9.js} +1 -1
  132. package/dist/cdn/shared-35c9fa1d.js +1 -0
  133. package/dist/cdn/{shared-49337d35.js → shared-393a7ab2.js} +1 -1
  134. package/dist/cdn/{shared-bc2eb9bb.js → shared-3a2134c8.js} +1 -1
  135. package/dist/cdn/{shared-7f5f6657.js → shared-3aca4932.js} +1 -1
  136. package/dist/cdn/{shared-e4768909.js → shared-3cdec25d.js} +9 -9
  137. package/dist/cdn/{shared-8b891950.js → shared-40028e80.js} +1 -1
  138. package/dist/cdn/{shared-127ec8a7.js → shared-434cdfec.js} +1 -1
  139. package/dist/cdn/{shared-df369311.js → shared-46f8e3d9.js} +1 -1
  140. package/dist/cdn/{shared-5960c279.js → shared-4bd1f3d8.js} +1 -1
  141. package/dist/cdn/shared-4cae017c.js +1 -0
  142. package/dist/cdn/{shared-42c91940.js → shared-4d919766.js} +1 -1
  143. package/dist/cdn/{shared-e55e32dd.js → shared-4f808d2e.js} +1 -1
  144. package/dist/cdn/{shared-a4ca1c5d.js → shared-53253d60.js} +1 -1
  145. package/dist/cdn/{shared-663794ff.js → shared-5520b96c.js} +1 -1
  146. package/dist/cdn/shared-578cde14.js +1 -0
  147. package/dist/cdn/{shared-7b3aac7e.js → shared-58b6710c.js} +1 -1
  148. package/dist/cdn/{shared-16d1018b.js → shared-5a04e75c.js} +1 -1
  149. package/dist/cdn/{shared-92153a7f.js → shared-5d7c4673.js} +1 -1
  150. package/dist/cdn/{shared-1b7e17c7.js → shared-692691ca.js} +1 -1
  151. package/dist/cdn/{shared-e653b80e.js → shared-6f08d218.js} +1 -1
  152. package/dist/cdn/{shared-2a5d1cdf.js → shared-753fdd34.js} +1 -1
  153. package/dist/cdn/{shared-500b7eb7.js → shared-7977d581.js} +2 -2
  154. package/dist/cdn/{shared-d5f6483f.js → shared-7eeb591f.js} +1 -1
  155. package/dist/cdn/{shared-9a4d52dd.js → shared-86337ba8.js} +1 -1
  156. package/dist/cdn/{shared-3ca95e21.js → shared-8c42634c.js} +1 -1
  157. package/dist/cdn/{shared-1f6366c0.js → shared-8e010314.js} +1 -1
  158. package/dist/cdn/{shared-7995cbcf.js → shared-8f81f4ed.js} +1 -1
  159. package/dist/cdn/{shared-6f1261fa.js → shared-92995c02.js} +1 -1
  160. package/dist/cdn/{shared-076f086a.js → shared-948919d2.js} +1 -1
  161. package/dist/cdn/{shared-a1f654fc.js → shared-98f382f3.js} +1 -1
  162. package/dist/cdn/{shared-76cbea00.js → shared-9d4813e6.js} +1 -1
  163. package/dist/cdn/{shared-eb086cef.js → shared-a60ca6fe.js} +1 -1
  164. package/dist/cdn/{shared-ee9ee09a.js → shared-ae2336ab.js} +1 -1
  165. package/dist/cdn/{shared-6b3b8c63.js → shared-b05ef317.js} +1 -1
  166. package/dist/cdn/shared-b1c9199f.js +531 -0
  167. package/dist/cdn/{shared-5714fc55.js → shared-b6c5ac14.js} +2 -2
  168. package/dist/cdn/{shared-253e51f7.js → shared-c009b9b6.js} +1 -1
  169. package/dist/cdn/{shared-75e7361d.js → shared-c231e3bf.js} +1 -1
  170. package/dist/cdn/{shared-a3a18e8d.js → shared-c584966f.js} +1 -1
  171. package/dist/cdn/{shared-90754404.js → shared-c5b019e5.js} +1 -1
  172. package/dist/cdn/{shared-eed9b226.js → shared-cae254ee.js} +9 -9
  173. package/dist/cdn/{shared-771431a9.js → shared-ceeb14e9.js} +1 -1
  174. package/dist/cdn/{shared-fc66cb5d.js → shared-cf008f13.js} +1 -1
  175. package/dist/cdn/{shared-f9f64dee.js → shared-d3d4badd.js} +1 -1
  176. package/dist/cdn/{shared-d2304d50.js → shared-d743d0fd.js} +1 -1
  177. package/dist/cdn/{shared-a3a4c368.js → shared-d8694661.js} +6 -6
  178. package/dist/cdn/{shared-1ce5b073.js → shared-e1400289.js} +1 -1
  179. package/dist/cdn/shared-e615d2d9.js +1 -0
  180. package/dist/cdn/{shared-677953e0.js → shared-ec9893c7.js} +1 -1
  181. package/dist/cdn/{shared-68a5368a.js → shared-f79f08cc.js} +1 -1
  182. package/dist/cdn/translations/admin-subscription-form/en.json +112 -48
  183. package/dist/cdn/translations/api-browser/en.json +7 -3
  184. package/dist/cdn/translations/cart-form/en.json +91 -39
  185. package/dist/cdn/translations/coupon-code-form/en.json +7 -3
  186. package/dist/cdn/translations/coupon-form/en.json +28 -12
  187. package/dist/cdn/translations/customer/en.json +28 -12
  188. package/dist/cdn/translations/customer-portal/de.json +14 -6
  189. package/dist/cdn/translations/customer-portal/en.json +14 -6
  190. package/dist/cdn/translations/customer-portal/es.json +14 -6
  191. package/dist/cdn/translations/customer-portal/fr.json +14 -6
  192. package/dist/cdn/translations/customer-portal/nl.json +14 -6
  193. package/dist/cdn/translations/customer-portal/pl.json +14 -6
  194. package/dist/cdn/translations/customer-portal/sv.json +14 -6
  195. package/dist/cdn/translations/customer-portal/zh-HK.json +14 -6
  196. package/dist/cdn/translations/customer-portal-settings-form/en.json +14 -6
  197. package/dist/cdn/translations/experimental-add-to-cart-builder/en.json +28 -12
  198. package/dist/cdn/translations/gift-card-code-form/en.json +14 -6
  199. package/dist/cdn/translations/gift-card-form/en.json +35 -15
  200. package/dist/cdn/translations/item-category-form/en.json +14 -6
  201. package/dist/cdn/translations/item-form/en.json +35 -15
  202. package/dist/cdn/translations/native-integration-form/en.json +14 -6
  203. package/dist/cdn/translations/pagination/en.json +7 -3
  204. package/dist/cdn/translations/payment-method-card/en.json +7 -3
  205. package/dist/cdn/translations/store-shipping-method-form/en.json +28 -12
  206. package/dist/cdn/translations/subscription-form/en.json +21 -9
  207. package/dist/cdn/translations/tax-form/en.json +7 -3
  208. package/dist/cdn/translations/template-set-form/en.json +7 -3
  209. package/dist/cdn/translations/transaction/en.json +98 -42
  210. package/dist/cdn/translations/update-payment-method-form/en.json +7 -3
  211. package/dist/cdn/translations/webhook-form/en.json +14 -6
  212. package/dist/elements/internal/InternalNumberControl/InternalNumberControl.js +13 -31
  213. package/dist/elements/internal/InternalNumberControl/InternalNumberControl.js.map +1 -1
  214. package/dist/elements/public/Pagination/Pagination.js +98 -91
  215. package/dist/elements/public/Pagination/Pagination.js.map +1 -1
  216. package/dist/elements/public/Pagination/index.d.ts +1 -0
  217. package/dist/elements/public/Pagination/index.js +1 -0
  218. package/dist/elements/public/Pagination/index.js.map +1 -1
  219. package/dist/elements/public/SwipeActions/SwipeActions.d.ts +1 -0
  220. package/dist/elements/public/SwipeActions/SwipeActions.js +8 -5
  221. package/dist/elements/public/SwipeActions/SwipeActions.js.map +1 -1
  222. package/dist/mixins/themeable.js +0 -18
  223. package/dist/mixins/themeable.js.map +1 -1
  224. package/package.json +1 -1
  225. package/dist/cdn/shared-0662adb7.js +0 -1
  226. package/dist/cdn/shared-0995ae7c.js +0 -637
  227. package/dist/cdn/shared-0e1ad508.js +0 -1
  228. package/dist/cdn/shared-20fb2969.js +0 -88
  229. package/dist/cdn/shared-21fba20d.js +0 -1
  230. package/dist/cdn/shared-292dcee0.js +0 -10
  231. package/dist/cdn/shared-5c057c26.js +0 -419
  232. package/dist/cdn/shared-651c44fa.js +0 -6
  233. package/dist/cdn/shared-7a4ca3f1.js +0 -1
  234. package/dist/cdn/shared-986d0f7f.js +0 -1
  235. package/dist/cdn/shared-c365c1ae.js +0 -31
  236. package/dist/cdn/shared-f28e46bf.js +0 -12
@@ -1,4 +1,4 @@
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-1ce5b073.js";
1
+ import{D as t,r as e,l as n,b as r,f as i,s,o,c as a,p as l,d as c,e as d,g as h,h as u,u as p,j as _,k as f,m,n as y}from"./shared-e1400289.js";
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -55,7 +55,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
55
55
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
56
56
  Code distributed by Google as part of the polymer project is also
57
57
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
58
- */const z=!(window.ShadyDOM&&window.ShadyDOM.inUse);let H,B;function j(t){H=(!t||!t.shimcssproperties)&&(z||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&&(B=window.ShadyCSS.cssBuild);const Y=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?H=window.ShadyCSS.nativeCss:window.ShadyCSS?(j(window.ShadyCSS),window.ShadyCSS=void 0):j(window.WebComponents&&window.WebComponents.flags);const q=H,J=new I;
58
+ */const z=!(window.ShadyDOM&&window.ShadyDOM.inUse);let H,B;function j(t){H=(!t||!t.shimcssproperties)&&(z||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&&(B=window.ShadyCSS.cssBuild);const Y=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?H=window.ShadyCSS.nativeCss:window.ShadyCSS?(j(window.ShadyCSS),window.ShadyCSS=void 0):j(window.WebComponents&&window.WebComponents.flags);const J=H,q=new I;
59
59
  /**
60
60
  @license
61
61
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -64,7 +64,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
64
64
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
65
65
  Code distributed by Google as part of the polymer project is also
66
66
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
67
- */window.ShadyCSS||(window.ShadyCSS={prepareTemplate(t,e,n){},prepareTemplateDom(t,e){},prepareTemplateStyles(t,e,n){},styleSubtree(t,e){J.processStyles(),k(t,e)},styleElement(t){J.processStyles()},styleDocument(t){J.processStyles(),k(document.body,t)},getComputedStyleValue:(t,e)=>D(t,e),flushCustomStyles(){},nativeCss:q,nativeShadow:z,cssBuild:B,disableRuntime:Y}),window.ShadyCSS.CustomStyleInterface=J;
67
+ */window.ShadyCSS||(window.ShadyCSS={prepareTemplate(t,e,n){},prepareTemplateDom(t,e){},prepareTemplateStyles(t,e,n){},styleSubtree(t,e){q.processStyles(),k(t,e)},styleElement(t){q.processStyles()},styleDocument(t){q.processStyles(),k(document.body,t)},getComputedStyleValue:(t,e)=>D(t,e),flushCustomStyles(){},nativeCss:J,nativeShadow:z,cssBuild:B,disableRuntime:Y}),window.ShadyCSS.CustomStyleInterface=q;
68
68
  /**
69
69
  @license
70
70
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -139,7 +139,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
139
139
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
140
140
  Code distributed by Google as part of the polymer project is also
141
141
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
142
- */let Ht=!1,Bt=!1;function jt(t){(function(){if(!Ht){Ht=!0;const t=document.createElement("textarea");t.placeholder="a",Bt=t.placeholder===t.textContent}return Bt})()&&"textarea"===t.localName&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const Yt=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,n,r)=>{const i=n.getAttribute(r);t&&r.startsWith("on-")?e.setAttribute(r,t.createScript(i,r)):e.setAttribute(r,i)}})();function qt(t){let e=t.getAttribute("is");if(e&&zt[e]){let n=t;for(n.removeAttribute("is"),t=n.ownerDocument.createElement(e),n.parentNode.replaceChild(t,n),t.appendChild(n);n.attributes.length;){const{name:e}=n.attributes[0];Yt(t,n,e),n.removeAttribute(e)}}return t}function Jt(t,e){let n=e.parentInfo&&Jt(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 $t(t,e,n,r){r.id&&(e[r.id]=n)}function Ut(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 Vt(t,e,n,r){n.templateInfo&&(e._templateInfo=n.templateInfo,e._parentTemplateInfo=r)}const Xt=st((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&&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,jt(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=qt(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]=Jt(i,t);$t(0,i.$,n,t),Vt(0,n,t,e),Ut(this,n,t)}return 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)}}));
142
+ */let Ht=!1,Bt=!1;function jt(t){(function(){if(!Ht){Ht=!0;const t=document.createElement("textarea");t.placeholder="a",Bt=t.placeholder===t.textContent}return Bt})()&&"textarea"===t.localName&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const Yt=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,n,r)=>{const i=n.getAttribute(r);t&&r.startsWith("on-")?e.setAttribute(r,t.createScript(i,r)):e.setAttribute(r,i)}})();function Jt(t){let e=t.getAttribute("is");if(e&&zt[e]){let n=t;for(n.removeAttribute("is"),t=n.ownerDocument.createElement(e),n.parentNode.replaceChild(t,n),t.appendChild(n);n.attributes.length;){const{name:e}=n.attributes[0];Yt(t,n,e),n.removeAttribute(e)}}return t}function qt(t,e){let n=e.parentInfo&&qt(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 $t(t,e,n,r){r.id&&(e[r.id]=n)}function Ut(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 Vt(t,e,n,r){n.templateInfo&&(e._templateInfo=n.templateInfo,e._parentTemplateInfo=r)}const Xt=st((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&&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,jt(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=Jt(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]=qt(i,t);$t(0,i.$,n,t),Vt(0,n,t,e),Ut(this,n,t)}return 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)}}));
143
143
  /**
144
144
  * @fileoverview
145
145
  * @suppress {checkPrototypalTypes}
@@ -200,7 +200,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
200
200
  Code distributed by Google as part of the polymer project is also
201
201
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
202
202
  */
203
- let je="string"==typeof document.head.style.touchAction,Ye="__polymerGestures",qe="__polymerGesturesHandled",Je="__polymerGesturesTouchAction",$e=["mousedown","mousemove","mouseup","click"],Ue=[0,1,4,2],Ve=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function Xe(t){return $e.indexOf(t)>-1}let We=!1;function Ge(t){if(!Xe(t)&&"touchend"!==t)return je&&We&&y?{passive:!0}:void 0}!function(){try{let t=Object.defineProperty({},"passive",{get(){We=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}();let Ze=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const Ke=[],Qe={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},tn={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function en(t){let e=Array.prototype.slice.call(t.labels||[]);if(!e.length){e=[];try{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])}}catch(t){}}return e}let nn=function(t){let e=t.sourceCapabilities;var n;if((!e||e.firesTouchEvents)&&(t[qe]={skip:!0},"click"===t.type)){let e=!1,r=cn(t);for(let t=0;t<r.length;t++){if(r[t].nodeType===Node.ELEMENT_NODE)if("label"===r[t].localName)Ke.push(r[t]);else if(n=r[t],Qe[n.localName]){let n=en(r[t]);for(let t=0;t<n.length;t++)e=e||Ke.indexOf(n[t])>-1}if(r[t]===on.mouse.target)return}if(e)return;t.preventDefault(),t.stopPropagation()}};function rn(t){let e=Ze?["click"]:$e;for(let n,r=0;r<e.length;r++)n=e[r],t?(Ke.length=0,document.addEventListener(n,nn,!0)):document.removeEventListener(n,nn,!0)}function sn(t){let e=t.type;if(!Xe(e))return!1;if("mousemove"===e){let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!Ve&&(e=Ue[t.which]||0),Boolean(1&e)}return 0===(void 0===t.button?0:t.button)}let on={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function an(t,e,n){t.movefn=e,t.upfn=n,document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)}function ln(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}document.addEventListener("touchend",(function(t){on.mouse.mouseIgnoreJob||rn(!0),on.mouse.target=cn(t)[0],on.mouse.mouseIgnoreJob=Fe.debounce(on.mouse.mouseIgnoreJob,At.after(2500),(function(){rn(),on.mouse.target=null,on.mouse.mouseIgnoreJob=null}))}),!!We&&{passive:!0});const cn=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],dn={},hn=[];function un(t){const e=cn(t);return e.length>0?e[0]:t.target}function pn(t){let e,n=t.type,r=t.currentTarget[Ye];if(!r)return;let i=r[n];if(i){if(!t[qe]&&(t[qe]={},"touch"===n.slice(0,5))){let e=t.changedTouches[0];if("touchstart"===n&&1===t.touches.length&&(on.touch.id=e.identifier),on.touch.id!==e.identifier)return;je||"touchstart"!==n&&"touchmove"!==n||function(t){let e=t.changedTouches[0],n=t.type;if("touchstart"===n)on.touch.x=e.clientX,on.touch.y=e.clientY,on.touch.scrollDecided=!1;else if("touchmove"===n){if(on.touch.scrollDecided)return;on.touch.scrollDecided=!0;let n=function(t){let e="auto",n=cn(t);for(let t,r=0;r<n.length;r++)if(t=n[r],t[Je]){e=t[Je];break}return e}(t),r=!1,i=Math.abs(on.touch.x-e.clientX),s=Math.abs(on.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():Pn("track")}}(t)}if(e=t[qe],!e.skip){for(let n,r=0;r<hn.length;r++)n=hn[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<hn.length;s++)r=hn[s],i[r.name]&&!e[r.name]&&(e[r.name]=!0,r[n](t))}}}function _n(t,e,n){return!!dn[e]&&(function(t,e,n){let r=dn[e],i=r.deps,s=r.name,o=t[Ye];o||(t[Ye]=o={});for(let e,n,r=0;r<i.length;r++)e=i[r],Ze&&Xe(e)&&"click"!==e||(n=o[e],n||(o[e]=n={_count:0}),0===n._count&&t.addEventListener(e,pn,Ge(e)),n[s]=(n[s]||0)+1,n._count=(n._count||0)+1);t.addEventListener(e,n),r.touchAction&&yn(t,r.touchAction)}(t,e,n),!0)}function fn(t,e,n){return!!dn[e]&&(function(t,e,n){let r=dn[e],i=r.deps,s=r.name,o=t[Ye];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,pn,Ge(e)));t.removeEventListener(e,n)}(t,e,n),!0)}function mn(t){hn.push(t);for(let e=0;e<t.emits.length;e++)dn[t.emits[e]]=t}function yn(t,e){je&&t instanceof HTMLElement&&It.run((()=>{t.style.touchAction=e})),t[Je]=e}function gn(t,e,n){let r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=n,ot(t).dispatchEvent(r),r.defaultPrevented){let t=n.preventer||n.sourceEvent;t&&t.preventDefault&&t.preventDefault()}}function Pn(t){let e=function(t){for(let e,n=0;n<hn.length;n++){e=hn[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 bn(){on.mouse.mouseIgnoreJob&&on.mouse.mouseIgnoreJob.flush()}function wn(t,e,n,r){e&&gn(e,t,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:r,prevent:function(t){return Pn(t)}})}function vn(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 Cn(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),gn(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 Sn(t,e,n){let r=Math.abs(e.clientX-t.x),i=Math.abs(e.clientY-t.y),s=un(n||e);!s||tn[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=un(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||gn(s,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:n}))}
203
+ let je="string"==typeof document.head.style.touchAction,Ye="__polymerGestures",Je="__polymerGesturesHandled",qe="__polymerGesturesTouchAction",$e=["mousedown","mousemove","mouseup","click"],Ue=[0,1,4,2],Ve=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function Xe(t){return $e.indexOf(t)>-1}let We=!1;function Ge(t){if(!Xe(t)&&"touchend"!==t)return je&&We&&y?{passive:!0}:void 0}!function(){try{let t=Object.defineProperty({},"passive",{get(){We=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}();let Ze=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const Ke=[],Qe={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},tn={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function en(t){let e=Array.prototype.slice.call(t.labels||[]);if(!e.length){e=[];try{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])}}catch(t){}}return e}let nn=function(t){let e=t.sourceCapabilities;var n;if((!e||e.firesTouchEvents)&&(t[Je]={skip:!0},"click"===t.type)){let e=!1,r=cn(t);for(let t=0;t<r.length;t++){if(r[t].nodeType===Node.ELEMENT_NODE)if("label"===r[t].localName)Ke.push(r[t]);else if(n=r[t],Qe[n.localName]){let n=en(r[t]);for(let t=0;t<n.length;t++)e=e||Ke.indexOf(n[t])>-1}if(r[t]===on.mouse.target)return}if(e)return;t.preventDefault(),t.stopPropagation()}};function rn(t){let e=Ze?["click"]:$e;for(let n,r=0;r<e.length;r++)n=e[r],t?(Ke.length=0,document.addEventListener(n,nn,!0)):document.removeEventListener(n,nn,!0)}function sn(t){let e=t.type;if(!Xe(e))return!1;if("mousemove"===e){let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!Ve&&(e=Ue[t.which]||0),Boolean(1&e)}return 0===(void 0===t.button?0:t.button)}let on={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function an(t,e,n){t.movefn=e,t.upfn=n,document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)}function ln(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}document.addEventListener("touchend",(function(t){on.mouse.mouseIgnoreJob||rn(!0),on.mouse.target=cn(t)[0],on.mouse.mouseIgnoreJob=Fe.debounce(on.mouse.mouseIgnoreJob,At.after(2500),(function(){rn(),on.mouse.target=null,on.mouse.mouseIgnoreJob=null}))}),!!We&&{passive:!0});const cn=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],dn={},hn=[];function un(t){const e=cn(t);return e.length>0?e[0]:t.target}function pn(t){let e,n=t.type,r=t.currentTarget[Ye];if(!r)return;let i=r[n];if(i){if(!t[Je]&&(t[Je]={},"touch"===n.slice(0,5))){let e=t.changedTouches[0];if("touchstart"===n&&1===t.touches.length&&(on.touch.id=e.identifier),on.touch.id!==e.identifier)return;je||"touchstart"!==n&&"touchmove"!==n||function(t){let e=t.changedTouches[0],n=t.type;if("touchstart"===n)on.touch.x=e.clientX,on.touch.y=e.clientY,on.touch.scrollDecided=!1;else if("touchmove"===n){if(on.touch.scrollDecided)return;on.touch.scrollDecided=!0;let n=function(t){let e="auto",n=cn(t);for(let t,r=0;r<n.length;r++)if(t=n[r],t[qe]){e=t[qe];break}return e}(t),r=!1,i=Math.abs(on.touch.x-e.clientX),s=Math.abs(on.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():Pn("track")}}(t)}if(e=t[Je],!e.skip){for(let n,r=0;r<hn.length;r++)n=hn[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<hn.length;s++)r=hn[s],i[r.name]&&!e[r.name]&&(e[r.name]=!0,r[n](t))}}}function _n(t,e,n){return!!dn[e]&&(function(t,e,n){let r=dn[e],i=r.deps,s=r.name,o=t[Ye];o||(t[Ye]=o={});for(let e,n,r=0;r<i.length;r++)e=i[r],Ze&&Xe(e)&&"click"!==e||(n=o[e],n||(o[e]=n={_count:0}),0===n._count&&t.addEventListener(e,pn,Ge(e)),n[s]=(n[s]||0)+1,n._count=(n._count||0)+1);t.addEventListener(e,n),r.touchAction&&yn(t,r.touchAction)}(t,e,n),!0)}function fn(t,e,n){return!!dn[e]&&(function(t,e,n){let r=dn[e],i=r.deps,s=r.name,o=t[Ye];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,pn,Ge(e)));t.removeEventListener(e,n)}(t,e,n),!0)}function mn(t){hn.push(t);for(let e=0;e<t.emits.length;e++)dn[t.emits[e]]=t}function yn(t,e){je&&t instanceof HTMLElement&&It.run((()=>{t.style.touchAction=e})),t[qe]=e}function gn(t,e,n){let r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=n,ot(t).dispatchEvent(r),r.defaultPrevented){let t=n.preventer||n.sourceEvent;t&&t.preventDefault&&t.preventDefault()}}function Pn(t){let e=function(t){for(let e,n=0;n<hn.length;n++){e=hn[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 bn(){on.mouse.mouseIgnoreJob&&on.mouse.mouseIgnoreJob.flush()}function wn(t,e,n,r){e&&gn(e,t,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:r,prevent:function(t){return Pn(t)}})}function vn(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 Cn(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),gn(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 Sn(t,e,n){let r=Math.abs(e.clientX-t.x),i=Math.abs(e.clientY-t.y),s=un(n||e);!s||tn[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=un(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||gn(s,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:n}))}
204
204
  /**
205
205
  @license
206
206
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -209,4 +209,4 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
209
209
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
210
210
  Code distributed by Google as part of the polymer project is also
211
211
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
212
- */mn({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){ln(this.info)},mousedown:function(t){if(!sn(t))return;let e=un(t),n=this;an(this.info,(function(t){sn(t)||(wn("up",e,t),ln(n.info))}),(function(t){sn(t)&&wn("up",e,t),ln(n.info)})),wn("down",e,t)},touchstart:function(t){wn("down",un(t),t.changedTouches[0],t)},touchend:function(t){wn("up",un(t),t.changedTouches[0],t)}}),mn({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,ln(this.info)},mousedown:function(t){if(!sn(t))return;let e=un(t),n=this,r=function(t){let r=t.clientX,i=t.clientY;vn(n.info,r,i)&&(n.info.state=n.info.started?"mouseup"===t.type?"end":"track":"start","start"===n.info.state&&Pn("tap"),n.info.addMove({x:r,y:i}),sn(t)||(n.info.state="end",ln(n.info)),e&&Cn(n.info,e,t),n.info.started=!0)};an(this.info,r,(function(t){n.info.started&&r(t),ln(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=un(t),n=t.changedTouches[0],r=n.clientX,i=n.clientY;vn(this.info,r,i)&&("start"===this.info.state&&Pn("tap"),this.info.addMove({x:r,y:i}),Cn(this.info,e,n),this.info.state="track",this.info.started=!0)},touchend:function(t){let e=un(t),n=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:n.clientX,y:n.clientY}),Cn(this.info,e,n))}}),mn({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){sn(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click:function(t){sn(t)&&Sn(this.info,t)},touchstart:function(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend:function(t){Sn(this.info,t.changedTouches[0],t)}});const En=st((t=>class extends t{_addEventListenerToNode(t,e,n){_n(t,e,n)||super._addEventListenerToNode(t,e,n)}_removeEventListenerFromNode(t,e,n){fn(t,e,n)||super._removeEventListenerFromNode(t,e,n)}}));export{xt as A,bn as B,bt as C,Fe as D,ke as E,En as G,R as M,De as P,L as V,Nt as a,_n as b,z as c,B as d,F as e,Be as f,M as g,w as h,D as i,Y as j,st as k,Ft as l,It as m,q as n,Re as o,ft as p,xe as q,Le as r,yn as s,At as t,k as u,ut as v,ot as w,ht as x,He as y,lt as z};
212
+ */mn({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){ln(this.info)},mousedown:function(t){if(!sn(t))return;let e=un(t),n=this;an(this.info,(function(t){sn(t)||(wn("up",e,t),ln(n.info))}),(function(t){sn(t)&&wn("up",e,t),ln(n.info)})),wn("down",e,t)},touchstart:function(t){wn("down",un(t),t.changedTouches[0],t)},touchend:function(t){wn("up",un(t),t.changedTouches[0],t)}}),mn({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,ln(this.info)},mousedown:function(t){if(!sn(t))return;let e=un(t),n=this,r=function(t){let r=t.clientX,i=t.clientY;vn(n.info,r,i)&&(n.info.state=n.info.started?"mouseup"===t.type?"end":"track":"start","start"===n.info.state&&Pn("tap"),n.info.addMove({x:r,y:i}),sn(t)||(n.info.state="end",ln(n.info)),e&&Cn(n.info,e,t),n.info.started=!0)};an(this.info,r,(function(t){n.info.started&&r(t),ln(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=un(t),n=t.changedTouches[0],r=n.clientX,i=n.clientY;vn(this.info,r,i)&&("start"===this.info.state&&Pn("tap"),this.info.addMove({x:r,y:i}),Cn(this.info,e,n),this.info.state="track",this.info.started=!0)},touchend:function(t){let e=un(t),n=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:n.clientX,y:n.clientY}),Cn(this.info,e,n))}}),mn({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){sn(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click:function(t){sn(t)&&Sn(this.info,t)},touchstart:function(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend:function(t){Sn(this.info,t.changedTouches[0],t)}});const En=st((t=>class extends t{_addEventListenerToNode(t,e,n){_n(t,e,n)||super._addEventListenerToNode(t,e,n)}_removeEventListenerFromNode(t,e,n){fn(t,e,n)||super._removeEventListenerFromNode(t,e,n)}}));export{lt as A,bn as B,bt as C,Fe as D,ke as E,En as G,R as M,De as P,L as V,Nt as a,_n as b,z as c,B as d,He as e,Be as f,F as g,w as h,xt as i,M as j,D as k,Y as l,st as m,J as n,Ft as o,It as p,Re as q,Le as r,yn as s,At as t,k as u,ft as v,ot as w,xe as x,ut as y,ht as z};