@zonos/elements 1.3.286 → 1.3.288

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 (657) hide show
  1. package/README.md +9 -1
  2. package/dist/cjs/RemoveIcon-CuM1YmjP.js +5 -0
  3. package/dist/cjs/{cart-0cf8897b.js → cart-CV4buPlT.js} +17 -27
  4. package/dist/cjs/{collect-79131e52.js → collect-jzWKzrV7.js} +17 -113
  5. package/dist/cjs/debounce-5sZmmlCI.js +9 -0
  6. package/dist/cjs/debounce-Nu2lJW4A.js +405 -0
  7. package/dist/cjs/{formatStringWithLinks-c25b4018.js → formatStringWithLinks-vOVkAjlu.js} +1 -1
  8. package/dist/cjs/{getBorderRadius-97fd5e02.js → getBorderRadius-DGZiQu09.js} +1 -1
  9. package/dist/cjs/{getContrastColor-956dfaf7.js → getContrastColor-B2Kn8XHA.js} +2 -2
  10. package/dist/cjs/{getMissingRequiredShippingFields-a8f04267.js → getMissingRequiredShippingFields-r5vYIqoX.js} +1 -1
  11. package/dist/cjs/{handleFetch-954f30e1.js → handleFetch-DQLhurnE.js} +4 -3
  12. package/dist/cjs/{hasInclusivePrice-d0cd2007.js → hasInclusivePrice-BZMQohG9.js} +1 -1
  13. package/dist/cjs/{helpers-5bdbb68c.js → helpers-ClOZ11A9.js} +0 -3
  14. package/dist/cjs/{index-b1f95d96.js → index-DAAr465v.js} +1252 -580
  15. package/dist/cjs/index.cjs.js +17 -21
  16. package/dist/cjs/{invoice-254ae23b.js → invoice-CHw-mJdS.js} +6 -6
  17. package/dist/cjs/{isContrastColor-30f84a91.js → isContrastColor-B9ldIdpa.js} +1 -1
  18. package/dist/cjs/isDarkColor-f-fD9c2l.js +1187 -0
  19. package/dist/cjs/loader.cjs.js +3 -5
  20. package/dist/cjs/{localization-fb2ece37.js → localization-CxXsmxs5.js} +4 -4
  21. package/dist/cjs/{paypal-8ca67278.js → paypal-BLuHeOJH.js} +10 -9
  22. package/dist/cjs/{placeTestOrder-12b63822.js → placeTestOrder-VK_CMeq0.js} +3 -3
  23. package/dist/cjs/{renderCheckoutCurrency-a1f71587.js → renderCheckoutCurrency-CC4CAy-a.js} +2 -2
  24. package/dist/cjs/{renderFallback-bc20ee20.js → renderFallback-Bme86uk8.js} +1 -1
  25. package/dist/cjs/{shouldRenderTaxIdInput-7d19556c.js → shouldRenderTaxIdInput-TxekHCp7.js} +2 -2
  26. package/dist/cjs/{shouldShowLanguageSelect-82985128.js → shouldShowLanguageSelect-Bj_jKWPK.js} +1 -1
  27. package/dist/cjs/{submitGtag-8a25f001.js → submitGtag-CcEL-w5D.js} +3 -3
  28. package/dist/cjs/throttle-BcxGntLr.js +87 -0
  29. package/dist/cjs/{updateCheckoutSessionAttributes-de7b1466.js → updateCheckoutSessionAttributes-Dltl5RBx.js} +3 -3
  30. package/dist/cjs/zonos-address-completion-dialog_7.cjs.entry.js +644 -692
  31. package/dist/cjs/zonos-address-display_2.cjs.entry.js +13 -17
  32. package/dist/cjs/zonos-address_4.cjs.entry.js +50 -40
  33. package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +15 -16
  34. package/dist/cjs/zonos-badge.cjs.entry.js +7 -10
  35. package/dist/cjs/zonos-banner.cjs.entry.js +6 -9
  36. package/dist/cjs/zonos-button_3.cjs.entry.js +18 -21
  37. package/dist/cjs/zonos-card_5.cjs.entry.js +34 -35
  38. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +85 -83
  39. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +10 -14
  40. package/dist/cjs/zonos-checkout.cjs.entry.js +50 -34
  41. package/dist/cjs/zonos-collapse.cjs.entry.js +5 -8
  42. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +18 -23
  43. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +59 -55
  44. package/dist/cjs/zonos-collect.cjs.entry.js +20 -23
  45. package/dist/cjs/zonos-component.cjs.entry.js +3 -6
  46. package/dist/cjs/zonos-controller.cjs.entry.js +13 -16
  47. package/dist/cjs/zonos-country-flag.cjs.entry.js +8 -11
  48. package/dist/cjs/zonos-country-select_4.cjs.entry.js +68 -57
  49. package/dist/cjs/zonos-elements.cjs.js +7 -7
  50. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +22 -23
  51. package/dist/cjs/zonos-hello.cjs.entry.js +19 -17
  52. package/dist/cjs/zonos-input.cjs.entry.js +10 -11
  53. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +17 -21
  54. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +57 -52
  55. package/dist/cjs/zonos-invoice.cjs.entry.js +19 -22
  56. package/dist/cjs/zonos-language-select_2.cjs.entry.js +11 -15
  57. package/dist/cjs/zonos-link.cjs.entry.js +3 -6
  58. package/dist/cjs/zonos-logo.cjs.entry.js +6 -9
  59. package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +15 -19
  60. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +11 -14
  61. package/dist/cjs/zonos-stripe-input.cjs.entry.js +15 -14
  62. package/dist/cjs/zonos-text.cjs.entry.js +8 -11
  63. package/dist/cjs/zonos-tooltip.cjs.entry.js +4 -7
  64. package/dist/cjs/zonos-v-stack.cjs.entry.js +6 -9
  65. package/dist/cjs/zonosStore-BCNYr6Tk.js +3808 -0
  66. package/dist/collection/__tests__/jsxWithChildren.types.js +13 -0
  67. package/dist/collection/collection-manifest.json +3 -2
  68. package/dist/collection/components/checkout/zonos-checkout/zonos-address-completion-dialog/zonos-address-completion-dialog.js +13 -10
  69. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js +4 -3
  70. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +8 -5
  71. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +17 -13
  72. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.js +1 -1
  73. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +4 -4
  74. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +7 -5
  75. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +5 -4
  76. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +8 -8
  77. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.js +5 -4
  78. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/zonos-store-credit.js +1 -1
  79. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +18 -14
  80. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +13 -10
  81. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +2 -2
  82. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +7 -7
  83. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +8 -6
  84. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +6 -5
  85. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js +4 -4
  86. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +7 -7
  87. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
  88. package/dist/collection/components/checkout/zonos-collect/zonos-collect.css +7 -4
  89. package/dist/collection/components/checkout/zonos-collect/zonos-collect.js +2 -2
  90. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +1 -1
  91. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +8 -6
  92. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +6 -5
  93. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-order-details/zonos-invoice-order-details.js +4 -4
  94. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.js +7 -7
  95. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
  96. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +1 -1
  97. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice.js +2 -2
  98. package/dist/collection/components/common/zonos-badge/zonos-badge.js +8 -7
  99. package/dist/collection/components/common/zonos-banner/zonos-banner.js +4 -4
  100. package/dist/collection/components/common/zonos-button/zonos-button.js +29 -25
  101. package/dist/collection/components/common/zonos-card/zonos-card.js +9 -8
  102. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +15 -12
  103. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +9 -6
  104. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  105. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +15 -15
  106. package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +6 -5
  107. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  108. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +22 -21
  109. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +3 -2
  110. package/dist/collection/components/common/zonos-icon/zonos-icon.js +8 -7
  111. package/dist/collection/components/common/zonos-input/zonos-input.js +7 -7
  112. package/dist/collection/components/common/zonos-link/zonos-link.js +7 -7
  113. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +4 -4
  114. package/dist/collection/components/common/zonos-logo/zonos-logo.js +4 -3
  115. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +8 -7
  116. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +1 -1
  117. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +15 -12
  118. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +2 -2
  119. package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +3 -3
  120. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +17 -17
  121. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +23 -20
  122. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +19 -19
  123. package/dist/collection/components/common/zonos-text/zonos-text.js +15 -11
  124. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +4 -3
  125. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  126. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +3 -2
  127. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +7 -6
  128. package/dist/collection/components/component-template/zonos-component/zonos-component.js +3 -3
  129. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +16 -12
  130. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +3 -2
  131. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +14 -11
  132. package/dist/collection/components/main/zonos-controller.js +18 -10
  133. package/dist/collection/components/store/checkout/stripe.js +1 -1
  134. package/dist/collection/components/stripe/zonos-address/zonos-address.js +9 -8
  135. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +6 -4
  136. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +13 -10
  137. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +4 -4
  138. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +2 -2
  139. package/dist/collection/components/utils/checkout/isEuDapRemittance.js +1 -1
  140. package/dist/collection/components/utils/checkout/shouldRenderTaxIdInput.js +1 -1
  141. package/dist/collection/scripts/cart/_setupCartData.js +2 -2
  142. package/dist/collection/scripts/cart/_setupCartDataWithSettings.js +2 -2
  143. package/dist/collection/types/generated/graphql.internal.types.js +5 -0
  144. package/dist/esm/RemoveIcon-C2QMVeWW.js +3 -0
  145. package/dist/esm/{cart-d04742f5.js → cart-ekBk_gxV.js} +18 -28
  146. package/dist/esm/{collect-4c310a16.js → collect-33rMINDo.js} +17 -113
  147. package/dist/esm/debounce-D4ko2kvZ.js +403 -0
  148. package/dist/esm/debounce-DWPsxJsW.js +7 -0
  149. package/dist/esm/{formatStringWithLinks-0d48f183.js → formatStringWithLinks-BcMPqGl0.js} +1 -1
  150. package/dist/esm/{getBorderRadius-1f7be586.js → getBorderRadius-HwG64EKM.js} +1 -1
  151. package/dist/esm/{getContrastColor-4c0ae8c1.js → getContrastColor-CfCPlW9U.js} +2 -2
  152. package/dist/esm/{getMissingRequiredShippingFields-f0878e32.js → getMissingRequiredShippingFields-u1nhQzJ1.js} +1 -1
  153. package/dist/esm/{handleFetch-a844cac1.js → handleFetch-D5GYDF-O.js} +4 -3
  154. package/dist/esm/{hasInclusivePrice-d801be22.js → hasInclusivePrice-CAVXi310.js} +1 -1
  155. package/dist/esm/{helpers-2f6955b1.js → helpers-DJIdCwJ5.js} +0 -3
  156. package/dist/esm/{index-cfd394c8.js → index-_lt63o7c.js} +1253 -561
  157. package/dist/esm/index.js +20 -22
  158. package/dist/esm/{invoice-86487dac.js → invoice-BNDWuVsD.js} +6 -6
  159. package/dist/esm/{isContrastColor-9fa0d013.js → isContrastColor-CWLU13s9.js} +1 -1
  160. package/dist/esm/isDarkColor-YdrG78th.js +1184 -0
  161. package/dist/esm/loader.js +4 -4
  162. package/dist/esm/{localization-36a4dc22.js → localization-AOqYXGdP.js} +5 -5
  163. package/dist/esm/{paypal-997935ab.js → paypal-CW1D2XqZ.js} +10 -9
  164. package/dist/esm/{placeTestOrder-a53f2056.js → placeTestOrder-nhmsLLOA.js} +3 -3
  165. package/dist/esm/{renderCheckoutCurrency-e0e16eb7.js → renderCheckoutCurrency-BQANmZyM.js} +2 -2
  166. package/dist/esm/{renderFallback-b250f4e9.js → renderFallback-Cy03ZcWE.js} +1 -1
  167. package/dist/esm/{shouldRenderTaxIdInput-ef7b5860.js → shouldRenderTaxIdInput-CKyZ6Zni.js} +2 -2
  168. package/dist/esm/{shouldShowLanguageSelect-328f50e2.js → shouldShowLanguageSelect-BQFCXouB.js} +1 -1
  169. package/dist/esm/{submitGtag-71c450b6.js → submitGtag-CCGQS060.js} +4 -4
  170. package/dist/esm/throttle-D5GyA3yr.js +85 -0
  171. package/dist/esm/{updateCheckoutSessionAttributes-23b222de.js → updateCheckoutSessionAttributes-eRSqdC74.js} +3 -3
  172. package/dist/esm/zonos-address-completion-dialog_7.entry.js +644 -690
  173. package/dist/esm/zonos-address-display_2.entry.js +13 -15
  174. package/dist/esm/zonos-address_4.entry.js +50 -38
  175. package/dist/esm/zonos-airwallex-payment.entry.js +15 -14
  176. package/dist/esm/zonos-badge.entry.js +7 -8
  177. package/dist/esm/zonos-banner.entry.js +6 -7
  178. package/dist/esm/zonos-button_3.entry.js +18 -19
  179. package/dist/esm/zonos-card_5.entry.js +34 -33
  180. package/dist/esm/zonos-cart-items_12.entry.js +85 -81
  181. package/dist/esm/zonos-checkbox_2.entry.js +10 -12
  182. package/dist/esm/zonos-checkout.entry.js +50 -32
  183. package/dist/esm/zonos-collapse.entry.js +5 -6
  184. package/dist/esm/zonos-collect-cart-items_3.entry.js +18 -21
  185. package/dist/esm/zonos-collect-finish_6.entry.js +59 -53
  186. package/dist/esm/zonos-collect.entry.js +20 -21
  187. package/dist/esm/zonos-component.entry.js +3 -4
  188. package/dist/esm/zonos-controller.entry.js +13 -14
  189. package/dist/esm/zonos-country-flag.entry.js +8 -9
  190. package/dist/esm/zonos-country-select_4.entry.js +68 -55
  191. package/dist/esm/zonos-elements.js +6 -5
  192. package/dist/esm/zonos-hello-dialog.entry.js +22 -21
  193. package/dist/esm/zonos-hello.entry.js +19 -15
  194. package/dist/esm/zonos-input.entry.js +10 -9
  195. package/dist/esm/zonos-invoice-cart-items_2.entry.js +17 -19
  196. package/dist/esm/zonos-invoice-finish_5.entry.js +57 -50
  197. package/dist/esm/zonos-invoice.entry.js +19 -20
  198. package/dist/esm/zonos-language-select_2.entry.js +11 -13
  199. package/dist/esm/zonos-link.entry.js +3 -4
  200. package/dist/esm/zonos-logo.entry.js +6 -7
  201. package/dist/esm/zonos-policy-consent_2.entry.js +15 -17
  202. package/dist/esm/zonos-shipping-rich-radio.entry.js +11 -12
  203. package/dist/esm/zonos-stripe-input.entry.js +15 -12
  204. package/dist/esm/zonos-text.entry.js +8 -9
  205. package/dist/esm/zonos-tooltip.entry.js +4 -5
  206. package/dist/esm/zonos-v-stack.entry.js +6 -7
  207. package/dist/esm/zonosStore-DrIOAz4M.js +3795 -0
  208. package/dist/esm-es5/{CheckoutConfig-724d7bae.js → CheckoutConfig-D5SpFsQJ.js} +5 -1
  209. package/dist/esm-es5/VarianceTest-BJmZPrZl.js +9 -0
  210. package/dist/esm-es5/{buildCartItemsByTempCart-a117f75d.js → buildCartItemsByTempCart-BycjkdlE.js} +4 -0
  211. package/dist/esm-es5/cart-ekBk_gxV.js +517 -0
  212. package/dist/esm-es5/classes-BJHSB96f.js +10 -0
  213. package/dist/esm-es5/cleanHtmlMarkdown-ByGDytaN.js +191 -0
  214. package/dist/esm-es5/collect-33rMINDo.js +241 -0
  215. package/dist/esm-es5/containsNonLatinChars-C04AWRC2.js +11 -0
  216. package/dist/esm-es5/createCustomEvent-XQfWgQLB.js +6 -0
  217. package/dist/esm-es5/debounce-D4ko2kvZ.js +153 -0
  218. package/dist/esm-es5/debounce-DWPsxJsW.js +1 -0
  219. package/dist/esm-es5/formatStringWithLinks-BcMPqGl0.js +8 -0
  220. package/dist/esm-es5/getBorderRadius-HwG64EKM.js +8 -0
  221. package/dist/esm-es5/getContrastColor-CfCPlW9U.js +14 -0
  222. package/dist/esm-es5/getGenericSettingsOverride-HeAZDwVW.js +4 -0
  223. package/dist/esm-es5/getMissingRequiredShippingFields-u1nhQzJ1.js +20 -0
  224. package/dist/esm-es5/handleFetch-D5GYDF-O.js +60 -0
  225. package/dist/esm-es5/hasInclusivePrice-CAVXi310.js +6 -0
  226. package/dist/esm-es5/helpers-DJIdCwJ5.js +23 -0
  227. package/dist/esm-es5/index-_lt63o7c.js +162 -0
  228. package/dist/esm-es5/index.js +227 -1
  229. package/dist/esm-es5/invoice-BNDWuVsD.js +13 -0
  230. package/dist/esm-es5/isColorVariable-DXXUq2Lv.js +11 -0
  231. package/dist/esm-es5/isContrastColor-CWLU13s9.js +5 -0
  232. package/dist/esm-es5/isDarkColor-YdrG78th.js +204 -0
  233. package/dist/esm-es5/isSameHostCheckoutLink-BxAHnL5J.js +16 -0
  234. package/dist/esm-es5/loader.js +1 -1
  235. package/dist/esm-es5/localization-AOqYXGdP.js +332 -0
  236. package/dist/esm-es5/paypal-CW1D2XqZ.js +192 -0
  237. package/dist/esm-es5/placeTestOrder-nhmsLLOA.js +1 -0
  238. package/dist/esm-es5/renderCheckoutCurrency-BQANmZyM.js +13 -0
  239. package/dist/esm-es5/{renderFallback-b250f4e9.js → renderFallback-Cy03ZcWE.js} +1 -1
  240. package/dist/esm-es5/shouldRenderTaxIdInput-CKyZ6Zni.js +17 -0
  241. package/dist/esm-es5/shouldShowLanguageSelect-BQFCXouB.js +7 -0
  242. package/dist/esm-es5/styles-BTIeCf3T.js +6 -0
  243. package/dist/esm-es5/submitGtag-CCGQS060.js +45 -0
  244. package/dist/esm-es5/throttle-D5GyA3yr.js +46 -0
  245. package/dist/esm-es5/updateCheckoutSessionAttributes-eRSqdC74.js +8 -0
  246. package/dist/esm-es5/zonos-address-completion-dialog_7.entry.js +2966 -1
  247. package/dist/esm-es5/zonos-address-display_2.entry.js +46 -1
  248. package/dist/esm-es5/zonos-address_4.entry.js +179 -1
  249. package/dist/esm-es5/zonos-airwallex-payment.entry.js +49 -1
  250. package/dist/esm-es5/zonos-badge.entry.js +25 -1
  251. package/dist/esm-es5/zonos-banner.entry.js +7 -1
  252. package/dist/esm-es5/zonos-button_3.entry.js +116 -1
  253. package/dist/esm-es5/zonos-card_5.entry.js +33 -1
  254. package/dist/esm-es5/zonos-cart-items_12.entry.js +666 -1
  255. package/dist/esm-es5/zonos-checkbox_2.entry.js +21 -1
  256. package/dist/esm-es5/zonos-checkout.entry.js +1043 -1
  257. package/dist/esm-es5/zonos-collapse.entry.js +15 -1
  258. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +13 -1
  259. package/dist/esm-es5/zonos-collect-finish_6.entry.js +157 -1
  260. package/dist/esm-es5/zonos-collect.entry.js +171 -1
  261. package/dist/esm-es5/zonos-component.entry.js +10 -1
  262. package/dist/esm-es5/zonos-controller.entry.js +198 -1
  263. package/dist/esm-es5/zonos-country-flag.entry.js +6 -1
  264. package/dist/esm-es5/zonos-country-select_4.entry.js +152 -1
  265. package/dist/esm-es5/zonos-elements.js +4 -1
  266. package/dist/esm-es5/zonos-hello-dialog.entry.js +63 -1
  267. package/dist/esm-es5/zonos-hello.entry.js +121 -1
  268. package/dist/esm-es5/zonos-input.entry.js +16 -1
  269. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +7 -1
  270. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +133 -1
  271. package/dist/esm-es5/zonos-invoice.entry.js +115 -1
  272. package/dist/esm-es5/zonos-language-select_2.entry.js +14 -1
  273. package/dist/esm-es5/zonos-link.entry.js +4 -1
  274. package/dist/esm-es5/zonos-logo.entry.js +7 -1
  275. package/dist/esm-es5/zonos-policy-consent_2.entry.js +31 -1
  276. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +5 -1
  277. package/dist/esm-es5/zonos-stripe-input.entry.js +27 -1
  278. package/dist/esm-es5/zonos-text.entry.js +24 -1
  279. package/dist/esm-es5/zonos-tooltip.entry.js +7 -1
  280. package/dist/esm-es5/zonos-v-stack.entry.js +5 -1
  281. package/dist/esm-es5/zonosStore-DrIOAz4M.js +1153 -0
  282. package/dist/scripts/index.d.ts +1171 -521
  283. package/dist/scripts/index.js +1 -1
  284. package/dist/scripts/loadZonos.js +1 -1
  285. package/dist/scripts/zonos.js +1 -1
  286. package/dist/types/__tests__/jsxWithChildren.types.d.ts +14 -0
  287. package/dist/types/__tests__/vitest-globals.d.ts +1 -0
  288. package/dist/types/components/store/checkout/cart.d.ts +9 -9
  289. package/dist/types/components/utils/api/checkItemRestrictions.d.ts +2 -2
  290. package/dist/types/components/utils/api/getLocaleMessages.d.ts +5 -5
  291. package/dist/types/components/utils/checkout/isShippableCountry.d.ts +5 -1
  292. package/dist/types/components/utils/hello/detectItemRestrictions.d.ts +2 -2
  293. package/dist/types/components.d.ts +797 -147
  294. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +127 -127
  295. package/dist/types/stencil-public-runtime.d.ts +205 -12
  296. package/dist/types/types/generated/graphql.frontend.types.d.ts +60 -60
  297. package/dist/types/types/generated/graphql.frontend.types.ts +55 -55
  298. package/dist/types/types/generated/graphql.internal.types.d.ts +1290 -1285
  299. package/dist/types/types/generated/graphql.internal.types.ts +1113 -1108
  300. package/dist/zonos-elements/index.esm.js +1 -1
  301. package/dist/zonos-elements/p-02ef0f99.system.entry.js +6 -0
  302. package/dist/zonos-elements/{p-1be53c82.entry.js → p-0466650f.entry.js} +1 -1
  303. package/dist/zonos-elements/p-04bfcd72.system.entry.js +152 -0
  304. package/dist/zonos-elements/p-04cc0dac.system.entry.js +198 -0
  305. package/dist/zonos-elements/p-058f07aa.system.entry.js +7 -0
  306. package/dist/zonos-elements/p-0f603278.system.entry.js +5 -0
  307. package/dist/zonos-elements/{p-bb09ee50.entry.js → p-128485dc.entry.js} +1 -1
  308. package/dist/zonos-elements/p-1568ab06.system.entry.js +117 -0
  309. package/dist/zonos-elements/p-2ba738ec.entry.js +1 -0
  310. package/dist/zonos-elements/{p-6afd5fab.entry.js → p-31ac495f.entry.js} +1 -1
  311. package/dist/zonos-elements/p-34d1545a.entry.js +1 -0
  312. package/dist/zonos-elements/p-39c8a898.entry.js +1 -0
  313. package/dist/zonos-elements/p-3ERbuo5a.js +1 -0
  314. package/dist/zonos-elements/p-450ed170.system.entry.js +46 -0
  315. package/dist/zonos-elements/p-4973f8d8.system.entry.js +180 -0
  316. package/dist/zonos-elements/p-49e7bb1e.system.entry.js +7 -0
  317. package/dist/zonos-elements/p-4a54f664.entry.js +1 -0
  318. package/dist/zonos-elements/p-4ab1c533.system.entry.js +4 -0
  319. package/dist/zonos-elements/p-5024df2d.system.entry.js +666 -0
  320. package/dist/zonos-elements/p-5562a955.system.entry.js +7 -0
  321. package/dist/zonos-elements/p-5836d426.system.entry.js +49 -0
  322. package/dist/zonos-elements/p-5a631080.system.entry.js +13 -0
  323. package/dist/zonos-elements/{p-2ce039e5.entry.js → p-5c08d36b.entry.js} +1 -1
  324. package/dist/zonos-elements/{p-aed4ffb2.entry.js → p-5d3079e8.entry.js} +1 -1
  325. package/dist/zonos-elements/p-64e7bc5b.entry.js +1 -0
  326. package/dist/zonos-elements/p-6b0afaa7.entry.js +1 -0
  327. package/dist/zonos-elements/p-6f742021.entry.js +1 -0
  328. package/dist/zonos-elements/p-7681798d.entry.js +1 -0
  329. package/dist/zonos-elements/p-7a5d2211.system.entry.js +115 -0
  330. package/dist/zonos-elements/{p-6de2f9c9.entry.js → p-7ae48e31.entry.js} +1 -1
  331. package/dist/zonos-elements/{p-f37150e8.entry.js → p-8328f44d.entry.js} +1 -1
  332. package/dist/zonos-elements/{p-171a7e1e.entry.js → p-844a743a.entry.js} +1 -1
  333. package/dist/zonos-elements/p-891b47d7.entry.js +1 -0
  334. package/dist/zonos-elements/p-89ddab88.entry.js +1 -0
  335. package/dist/zonos-elements/p-8cd3f1e2.entry.js +1 -0
  336. package/dist/zonos-elements/p-9818f823.entry.js +1 -0
  337. package/dist/zonos-elements/p-9b399685.system.entry.js +10 -0
  338. package/dist/zonos-elements/p-9b6482ef.entry.js +1 -0
  339. package/dist/zonos-elements/{p-2c44e013.entry.js → p-9ebe9a36.entry.js} +1 -1
  340. package/dist/zonos-elements/p-B2EZRfoq.system.js +193 -0
  341. package/dist/zonos-elements/p-B3GRrRtL.system.js +5 -0
  342. package/dist/zonos-elements/p-BANhKkF2.system.js +1 -0
  343. package/dist/zonos-elements/p-BDopxBpR.system.js +6 -0
  344. package/dist/zonos-elements/p-BJufDgh3.js +1 -0
  345. package/dist/zonos-elements/p-BLQFeIez.system.js +191 -0
  346. package/dist/zonos-elements/p-BNtWsPPP.system.js +7 -0
  347. package/dist/zonos-elements/p-BSgVcCxT.system.js +9 -0
  348. package/dist/zonos-elements/p-BXjdMMUy.js +1 -0
  349. package/dist/zonos-elements/p-BbgqQIHv.system.js +9 -0
  350. package/dist/zonos-elements/p-BgSx82zO.system.js +11 -0
  351. package/dist/zonos-elements/p-Bi-s0fp_.system.js +17 -0
  352. package/dist/zonos-elements/p-BtMauqj_.system.js +227 -0
  353. package/dist/zonos-elements/p-Bu9WCfUC.system.js +5 -0
  354. package/dist/zonos-elements/p-C19J2XSh.js +1 -0
  355. package/dist/zonos-elements/p-C2QMVeWW.js +1 -0
  356. package/dist/zonos-elements/p-C2j7R11h.system.js +11 -0
  357. package/dist/zonos-elements/p-CEl4pzNq.js +1 -0
  358. package/dist/zonos-elements/p-CICjAi70.js +1 -0
  359. package/dist/zonos-elements/p-CIevpRv_.system.js +162 -0
  360. package/dist/zonos-elements/{p-344a6278.js → p-CJCoACvU.js} +2 -2
  361. package/dist/zonos-elements/p-CKBbIU4b.system.js +14 -0
  362. package/dist/zonos-elements/p-CKTIJ2Gr.js +1 -0
  363. package/dist/zonos-elements/p-CKhl__Kc.system.js +4 -0
  364. package/dist/zonos-elements/p-CPnR_T0a.system.js +1153 -0
  365. package/dist/zonos-elements/p-CQqNJo0D.system.js +13 -0
  366. package/dist/zonos-elements/p-CYdt69j5.system.js +241 -0
  367. package/dist/zonos-elements/p-CZl1nwqv.system.js +46 -0
  368. package/dist/zonos-elements/p-CaAod213.system.js +8 -0
  369. package/dist/zonos-elements/p-CaUXHglQ.system.js +153 -0
  370. package/dist/zonos-elements/{p-45bd8072.system.js → p-CeLaK0Ff.system.js} +1 -1
  371. package/dist/zonos-elements/p-CtEsvWI6.js +1 -0
  372. package/dist/zonos-elements/p-D-DawUYF.system.js +1 -0
  373. package/dist/zonos-elements/p-D0erXw7p.js +1 -0
  374. package/dist/zonos-elements/p-D31lQiWo.system.js +21 -0
  375. package/dist/zonos-elements/p-D5AtAlJx.system.js +13 -0
  376. package/dist/zonos-elements/p-DBOI98r5.system.js +7 -0
  377. package/dist/zonos-elements/{p-41dd1cb8.js → p-DE4a-QD5.js} +1 -1
  378. package/dist/zonos-elements/p-DGsEWFDU.system.js +8 -0
  379. package/dist/zonos-elements/{p-a4c7ee17.js → p-DHwpNxG9.js} +1 -1
  380. package/dist/zonos-elements/p-DIJaXkiE.system.js +332 -0
  381. package/dist/zonos-elements/{p-eef5b0cc.js → p-DJIdCwJ5.js} +1 -1
  382. package/dist/zonos-elements/p-DPW1yXt9.system.js +517 -0
  383. package/dist/zonos-elements/{p-6bdc5c96.js → p-DTgv0QpG.js} +1 -1
  384. package/dist/zonos-elements/p-DW-fW8yR.system.js +205 -0
  385. package/dist/zonos-elements/p-Dj-O6VfM.system.js +7 -0
  386. package/dist/zonos-elements/p-DjuFsKLG.js +1 -0
  387. package/dist/zonos-elements/p-DkpYo2Fs.js +1 -0
  388. package/dist/zonos-elements/p-DnjGkbEy.js +1 -0
  389. package/dist/zonos-elements/p-LypTHRUC.js +1 -0
  390. package/dist/zonos-elements/p-MfsSJh_D.system.js +8 -0
  391. package/dist/zonos-elements/p-YdrG78th.js +1 -0
  392. package/dist/zonos-elements/p-_lt63o7c.js +3 -0
  393. package/dist/zonos-elements/p-a38e62cc.entry.js +1 -0
  394. package/dist/zonos-elements/p-a6faab6a.entry.js +1 -0
  395. package/dist/zonos-elements/p-adfee3a3.entry.js +1 -0
  396. package/dist/zonos-elements/p-b14819ab.system.entry.js +14 -0
  397. package/dist/zonos-elements/{p-0c972ddf.entry.js → p-b68ca96f.entry.js} +1 -1
  398. package/dist/zonos-elements/p-b6deae2b.system.entry.js +5 -0
  399. package/dist/zonos-elements/p-bdba7d9e.system.entry.js +25 -0
  400. package/dist/zonos-elements/p-be64d823.system.entry.js +16 -0
  401. package/dist/zonos-elements/p-beeb9d36.system.entry.js +21 -0
  402. package/dist/zonos-elements/p-cadf6b63.system.entry.js +33 -0
  403. package/dist/zonos-elements/p-cc5306fe.system.entry.js +24 -0
  404. package/dist/zonos-elements/p-cc949df1.system.entry.js +7 -0
  405. package/dist/zonos-elements/p-cf5688f7.entry.js +1 -0
  406. package/dist/zonos-elements/p-d05Ku7gM.system.js +24 -0
  407. package/dist/zonos-elements/p-d33dfc78.system.entry.js +2966 -0
  408. package/dist/zonos-elements/{p-5d110c2b.entry.js → p-d4c4a00e.entry.js} +1 -1
  409. package/dist/zonos-elements/p-d55b9664.system.entry.js +157 -0
  410. package/dist/zonos-elements/p-daf9fa07.system.entry.js +133 -0
  411. package/dist/zonos-elements/p-dcdbc610.system.entry.js +27 -0
  412. package/dist/zonos-elements/p-e101d722.system.entry.js +63 -0
  413. package/dist/zonos-elements/{p-9639a8ed.entry.js → p-e284d329.entry.js} +1 -1
  414. package/dist/zonos-elements/{p-5227aa69.entry.js → p-e9320825.entry.js} +1 -1
  415. package/dist/zonos-elements/p-ea8790aa.entry.js +1 -0
  416. package/dist/zonos-elements/{p-6ee4e027.entry.js → p-eadaefdc.entry.js} +1 -1
  417. package/dist/zonos-elements/p-f27317d3.system.entry.js +31 -0
  418. package/dist/zonos-elements/p-f2cedbcd.system.entry.js +121 -0
  419. package/dist/zonos-elements/p-f57495dc.entry.js +1 -0
  420. package/dist/zonos-elements/p-f6ba59f6.system.entry.js +171 -0
  421. package/dist/zonos-elements/p-f6e0aeba.system.entry.js +1043 -0
  422. package/dist/zonos-elements/p-f8fd756a.system.entry.js +15 -0
  423. package/dist/zonos-elements/{p-7ada039e.entry.js → p-fe778437.entry.js} +1 -1
  424. package/dist/zonos-elements/{p-adfbf57b.js → p-i1iCWKdv.js} +1 -1
  425. package/dist/zonos-elements/p-lGLcGvEA.js +1 -0
  426. package/dist/zonos-elements/p-nOb4xPLF.system.js +17 -0
  427. package/dist/zonos-elements/p-nU86HJ5w.js +1 -0
  428. package/dist/zonos-elements/p-pfIceXbY.js +1 -0
  429. package/dist/zonos-elements/p-smUku7Ku.system.js +5 -0
  430. package/dist/zonos-elements/p-t_ClFAJR.js +1 -0
  431. package/dist/zonos-elements/p-uV7m6KrY.system.js +46 -0
  432. package/dist/zonos-elements/p-vN6p_rO1.system.js +11 -0
  433. package/dist/zonos-elements/p-zRjRcLMp.js +1 -0
  434. package/dist/zonos-elements/p-zVLAvre1.system.js +60 -0
  435. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  436. package/dist/zonos-elements/zonos-elements.js +1 -1
  437. package/loader/index.d.ts +1 -1
  438. package/package.json +28 -32
  439. package/dist/cjs/RemoveIcon-081ac073.js +0 -5
  440. package/dist/cjs/debounce-7ca3c878.js +0 -357
  441. package/dist/cjs/isDarkColor-a6e6fd5e.js +0 -1202
  442. package/dist/cjs/throttle-366c204b.js +0 -76
  443. package/dist/cjs/zonosStore-0af0b937.js +0 -3030
  444. package/dist/esm/RemoveIcon-9dc5dd1a.js +0 -3
  445. package/dist/esm/debounce-84ade9c2.js +0 -355
  446. package/dist/esm/isDarkColor-939d8e9c.js +0 -1199
  447. package/dist/esm/throttle-c4c24e86.js +0 -74
  448. package/dist/esm/zonosStore-eca1e364.js +0 -3017
  449. package/dist/esm-es5/VarianceTest-572cecf5.js +0 -1
  450. package/dist/esm-es5/cart-d04742f5.js +0 -1
  451. package/dist/esm-es5/classes-0d95c529.js +0 -1
  452. package/dist/esm-es5/cleanHtmlMarkdown-87d195f6.js +0 -1
  453. package/dist/esm-es5/collect-4c310a16.js +0 -1
  454. package/dist/esm-es5/containsNonLatinChars-2d8810c3.js +0 -1
  455. package/dist/esm-es5/createCustomEvent-58159025.js +0 -1
  456. package/dist/esm-es5/debounce-84ade9c2.js +0 -1
  457. package/dist/esm-es5/formatStringWithLinks-0d48f183.js +0 -1
  458. package/dist/esm-es5/getBorderRadius-1f7be586.js +0 -1
  459. package/dist/esm-es5/getContrastColor-4c0ae8c1.js +0 -1
  460. package/dist/esm-es5/getGenericSettingsOverride-0bc3e118.js +0 -1
  461. package/dist/esm-es5/getMissingRequiredShippingFields-f0878e32.js +0 -1
  462. package/dist/esm-es5/handleFetch-a844cac1.js +0 -1
  463. package/dist/esm-es5/hasInclusivePrice-d801be22.js +0 -1
  464. package/dist/esm-es5/helpers-2f6955b1.js +0 -1
  465. package/dist/esm-es5/index-cfd394c8.js +0 -13
  466. package/dist/esm-es5/invoice-86487dac.js +0 -1
  467. package/dist/esm-es5/isColorVariable-0a94004f.js +0 -1
  468. package/dist/esm-es5/isContrastColor-9fa0d013.js +0 -1
  469. package/dist/esm-es5/isDarkColor-939d8e9c.js +0 -1
  470. package/dist/esm-es5/isSameHostCheckoutLink-c1b88ab7.js +0 -1
  471. package/dist/esm-es5/localization-36a4dc22.js +0 -1
  472. package/dist/esm-es5/paypal-997935ab.js +0 -17
  473. package/dist/esm-es5/placeTestOrder-a53f2056.js +0 -1
  474. package/dist/esm-es5/renderCheckoutCurrency-e0e16eb7.js +0 -1
  475. package/dist/esm-es5/shouldRenderTaxIdInput-ef7b5860.js +0 -1
  476. package/dist/esm-es5/shouldShowLanguageSelect-328f50e2.js +0 -1
  477. package/dist/esm-es5/styles-6fc2fad9.js +0 -1
  478. package/dist/esm-es5/submitGtag-71c450b6.js +0 -1
  479. package/dist/esm-es5/throttle-c4c24e86.js +0 -1
  480. package/dist/esm-es5/updateCheckoutSessionAttributes-23b222de.js +0 -1
  481. package/dist/esm-es5/zonosStore-eca1e364.js +0 -1
  482. package/dist/zonos-elements/p-01174496.system.js +0 -1
  483. package/dist/zonos-elements/p-06f798ee.system.js +0 -1
  484. package/dist/zonos-elements/p-083a11cd.system.entry.js +0 -1
  485. package/dist/zonos-elements/p-08e7107d.js +0 -1
  486. package/dist/zonos-elements/p-0b29169b.js +0 -1
  487. package/dist/zonos-elements/p-0c327a57.system.entry.js +0 -1
  488. package/dist/zonos-elements/p-0d2f81ce.system.js +0 -1
  489. package/dist/zonos-elements/p-0e199a6c.system.entry.js +0 -1
  490. package/dist/zonos-elements/p-0ff845ec.js +0 -1
  491. package/dist/zonos-elements/p-117953db.system.entry.js +0 -1
  492. package/dist/zonos-elements/p-14afffa8.system.js +0 -1
  493. package/dist/zonos-elements/p-1834f486.js +0 -1
  494. package/dist/zonos-elements/p-1aa93d1e.system.js +0 -1
  495. package/dist/zonos-elements/p-1ac0c631.system.js +0 -1
  496. package/dist/zonos-elements/p-1b8771bb.js +0 -1
  497. package/dist/zonos-elements/p-1cdd27ec.js +0 -1
  498. package/dist/zonos-elements/p-1cfb5c2a.system.entry.js +0 -1
  499. package/dist/zonos-elements/p-1f8648c8.system.entry.js +0 -1
  500. package/dist/zonos-elements/p-23e7c655.system.js +0 -1
  501. package/dist/zonos-elements/p-2670438c.system.js +0 -1
  502. package/dist/zonos-elements/p-27660512.js +0 -1
  503. package/dist/zonos-elements/p-277b77e3.js +0 -1
  504. package/dist/zonos-elements/p-278abdcf.entry.js +0 -1
  505. package/dist/zonos-elements/p-29b60bf3.system.js +0 -1
  506. package/dist/zonos-elements/p-2b97f7ed.js +0 -1
  507. package/dist/zonos-elements/p-2bbe9d91.js +0 -1
  508. package/dist/zonos-elements/p-2c7a425d.entry.js +0 -1
  509. package/dist/zonos-elements/p-2cab1746.system.entry.js +0 -1
  510. package/dist/zonos-elements/p-3490b6d0.entry.js +0 -1
  511. package/dist/zonos-elements/p-398d9022.system.js +0 -1
  512. package/dist/zonos-elements/p-3a26e5e7.system.entry.js +0 -1
  513. package/dist/zonos-elements/p-40a4c8a2.system.js +0 -1
  514. package/dist/zonos-elements/p-40af92a1.system.entry.js +0 -1
  515. package/dist/zonos-elements/p-4160bbc2.system.js +0 -1
  516. package/dist/zonos-elements/p-41f1697a.system.entry.js +0 -1
  517. package/dist/zonos-elements/p-4671fde7.entry.js +0 -1
  518. package/dist/zonos-elements/p-490d7fec.system.entry.js +0 -1
  519. package/dist/zonos-elements/p-4941c096.system.entry.js +0 -1
  520. package/dist/zonos-elements/p-4b159ff3.system.js +0 -1
  521. package/dist/zonos-elements/p-502d6eeb.js +0 -1
  522. package/dist/zonos-elements/p-50d088f7.system.entry.js +0 -1
  523. package/dist/zonos-elements/p-51e4e61a.system.entry.js +0 -1
  524. package/dist/zonos-elements/p-551fa762.system.js +0 -1
  525. package/dist/zonos-elements/p-5b990c91.entry.js +0 -1
  526. package/dist/zonos-elements/p-60832726.system.js +0 -1
  527. package/dist/zonos-elements/p-67426156.system.js +0 -1
  528. package/dist/zonos-elements/p-6890e060.system.js +0 -1
  529. package/dist/zonos-elements/p-6eaf7c9e.system.entry.js +0 -1
  530. package/dist/zonos-elements/p-7176f582.entry.js +0 -1
  531. package/dist/zonos-elements/p-7261e245.system.js +0 -13
  532. package/dist/zonos-elements/p-7352abe9.js +0 -1
  533. package/dist/zonos-elements/p-74230da8.system.js +0 -1
  534. package/dist/zonos-elements/p-76834a0a.system.entry.js +0 -1
  535. package/dist/zonos-elements/p-77993ba1.entry.js +0 -1
  536. package/dist/zonos-elements/p-78f8e594.entry.js +0 -1
  537. package/dist/zonos-elements/p-7ac8846c.system.js +0 -1
  538. package/dist/zonos-elements/p-7b525c75.system.js +0 -1
  539. package/dist/zonos-elements/p-7f688485.system.entry.js +0 -1
  540. package/dist/zonos-elements/p-7fbbdb0f.system.js +0 -1
  541. package/dist/zonos-elements/p-8861d47e.js +0 -1
  542. package/dist/zonos-elements/p-8a0b8175.system.entry.js +0 -1
  543. package/dist/zonos-elements/p-8a6c4017.js +0 -1
  544. package/dist/zonos-elements/p-8be02f3a.system.js +0 -1
  545. package/dist/zonos-elements/p-8d14cb66.entry.js +0 -1
  546. package/dist/zonos-elements/p-8e6338b9.entry.js +0 -1
  547. package/dist/zonos-elements/p-916228fb.system.js +0 -1
  548. package/dist/zonos-elements/p-944c1fb3.entry.js +0 -1
  549. package/dist/zonos-elements/p-947e4402.system.entry.js +0 -1
  550. package/dist/zonos-elements/p-96ab529e.entry.js +0 -1
  551. package/dist/zonos-elements/p-998975a3.system.js +0 -18
  552. package/dist/zonos-elements/p-9ad640b2.system.entry.js +0 -1
  553. package/dist/zonos-elements/p-9ecb9afc.system.entry.js +0 -1
  554. package/dist/zonos-elements/p-a04e2750.system.entry.js +0 -1
  555. package/dist/zonos-elements/p-a1bd3a53.system.js +0 -1
  556. package/dist/zonos-elements/p-a553e132.js +0 -1
  557. package/dist/zonos-elements/p-acb7dee1.system.entry.js +0 -1
  558. package/dist/zonos-elements/p-af19722c.system.js +0 -1
  559. package/dist/zonos-elements/p-b4ae66cb.system.entry.js +0 -1
  560. package/dist/zonos-elements/p-bcaffb85.system.entry.js +0 -1
  561. package/dist/zonos-elements/p-be6cd28c.system.entry.js +0 -1
  562. package/dist/zonos-elements/p-bf37ccc7.system.js +0 -1
  563. package/dist/zonos-elements/p-c0af11fe.system.js +0 -1
  564. package/dist/zonos-elements/p-c112fa12.system.entry.js +0 -1
  565. package/dist/zonos-elements/p-c4321a1a.system.js +0 -1
  566. package/dist/zonos-elements/p-c5d1217f.system.js +0 -1
  567. package/dist/zonos-elements/p-c7329333.entry.js +0 -1
  568. package/dist/zonos-elements/p-c756a59d.system.js +0 -1
  569. package/dist/zonos-elements/p-c77b049c.entry.js +0 -1
  570. package/dist/zonos-elements/p-ca87ada5.system.entry.js +0 -1
  571. package/dist/zonos-elements/p-ce75b047.js +0 -2
  572. package/dist/zonos-elements/p-d1a51fac.js +0 -1
  573. package/dist/zonos-elements/p-d6a73125.system.entry.js +0 -1
  574. package/dist/zonos-elements/p-d75726e5.system.entry.js +0 -1
  575. package/dist/zonos-elements/p-d938f42f.system.js +0 -1
  576. package/dist/zonos-elements/p-dd866ca3.system.entry.js +0 -1
  577. package/dist/zonos-elements/p-dd8a7bf4.entry.js +0 -1
  578. package/dist/zonos-elements/p-de58684b.system.js +0 -1
  579. package/dist/zonos-elements/p-e160b75f.js +0 -1
  580. package/dist/zonos-elements/p-e1ef3984.system.entry.js +0 -1
  581. package/dist/zonos-elements/p-e27b8e18.entry.js +0 -1
  582. package/dist/zonos-elements/p-e4b07f7d.system.entry.js +0 -1
  583. package/dist/zonos-elements/p-e4dc24e1.system.js +0 -1
  584. package/dist/zonos-elements/p-e5865ad9.system.js +0 -1
  585. package/dist/zonos-elements/p-e7d7afda.entry.js +0 -1
  586. package/dist/zonos-elements/p-ebbda085.system.js +0 -1
  587. package/dist/zonos-elements/p-f4720b0a.js +0 -1
  588. package/dist/zonos-elements/p-f8356934.system.entry.js +0 -1
  589. package/dist/zonos-elements/p-f9346f1c.entry.js +0 -1
  590. package/dist/zonos-elements/p-fc5f6113.js +0 -1
  591. package/dist/zonos-elements/p-fe28dbe6.entry.js +0 -1
  592. package/loader/package.json +0 -11
  593. /package/dist/cjs/{CheckoutConfig-27c82f94.js → CheckoutConfig-B7JRM7yr.js} +0 -0
  594. /package/dist/cjs/{ShortAddressCode-bec338b0.js → ShortAddressCode-C5l520-F.js} +0 -0
  595. /package/dist/cjs/{TaxId-cd9d490e.js → TaxId-Q6aDqqWv.js} +0 -0
  596. /package/dist/cjs/{VarianceTest-bec00ea8.js → VarianceTest-C98whVgO.js} +0 -0
  597. /package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -0
  598. /package/dist/cjs/{buildCartItemsByTempCart-edddbf4b.js → buildCartItemsByTempCart-ILzonEjb.js} +0 -0
  599. /package/dist/cjs/{classes-b7918f56.js → classes-D_DL168u.js} +0 -0
  600. /package/dist/cjs/{cleanHtmlMarkdown-57147de7.js → cleanHtmlMarkdown-DpT-nZLH.js} +0 -0
  601. /package/dist/cjs/{containsNonLatinChars-2be5129b.js → containsNonLatinChars-D_OggJN6.js} +0 -0
  602. /package/dist/cjs/{createCustomEvent-7b6fad95.js → createCustomEvent-Cs5zGImL.js} +0 -0
  603. /package/dist/cjs/{getGenericSettingsOverride-c0ca32b9.js → getGenericSettingsOverride-CL6l6wvX.js} +0 -0
  604. /package/dist/cjs/{getHasMoreSpaceOnRight-4c94667f.js → getHasMoreSpaceOnRight-Cl50u1mb.js} +0 -0
  605. /package/dist/cjs/{isCollectMobileTablet-884d4280.js → isCollectMobileTablet-Cx2nZ15_.js} +0 -0
  606. /package/dist/cjs/{isColorVariable-525dbfa7.js → isColorVariable-CKoJdu9G.js} +0 -0
  607. /package/dist/cjs/{isInvoiceMobileTablet-dde41e4e.js → isInvoiceMobileTablet-CCqFYV6m.js} +0 -0
  608. /package/dist/cjs/{isSameHostCheckoutLink-6148cabb.js → isSameHostCheckoutLink-DbmQ7Ha4.js} +0 -0
  609. /package/dist/cjs/{styles-d1e64fb9.js → styles-nowYls3K.js} +0 -0
  610. /package/dist/esm/{CheckoutConfig-724d7bae.js → CheckoutConfig-D5SpFsQJ.js} +0 -0
  611. /package/dist/esm/{ShortAddressCode-7620e622.js → ShortAddressCode-nJ6oI8-n.js} +0 -0
  612. /package/dist/esm/{TaxId-63a14057.js → TaxId-Cye-evFK.js} +0 -0
  613. /package/dist/esm/{VarianceTest-572cecf5.js → VarianceTest-BJmZPrZl.js} +0 -0
  614. /package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
  615. /package/dist/esm/{buildCartItemsByTempCart-a117f75d.js → buildCartItemsByTempCart-BycjkdlE.js} +0 -0
  616. /package/dist/esm/{classes-0d95c529.js → classes-BJHSB96f.js} +0 -0
  617. /package/dist/esm/{cleanHtmlMarkdown-87d195f6.js → cleanHtmlMarkdown-ByGDytaN.js} +0 -0
  618. /package/dist/esm/{containsNonLatinChars-2d8810c3.js → containsNonLatinChars-C04AWRC2.js} +0 -0
  619. /package/dist/esm/{createCustomEvent-58159025.js → createCustomEvent-XQfWgQLB.js} +0 -0
  620. /package/dist/esm/{getGenericSettingsOverride-0bc3e118.js → getGenericSettingsOverride-HeAZDwVW.js} +0 -0
  621. /package/dist/esm/{getHasMoreSpaceOnRight-70eb913a.js → getHasMoreSpaceOnRight-DAscqB23.js} +0 -0
  622. /package/dist/esm/{isCollectMobileTablet-111b0dd7.js → isCollectMobileTablet-DGlnuxEX.js} +0 -0
  623. /package/dist/esm/{isColorVariable-0a94004f.js → isColorVariable-DXXUq2Lv.js} +0 -0
  624. /package/dist/esm/{isInvoiceMobileTablet-1f7b614e.js → isInvoiceMobileTablet-Clej0Ffe.js} +0 -0
  625. /package/dist/esm/{isSameHostCheckoutLink-c1b88ab7.js → isSameHostCheckoutLink-BxAHnL5J.js} +0 -0
  626. /package/dist/esm/{styles-6fc2fad9.js → styles-BTIeCf3T.js} +0 -0
  627. /package/dist/esm-es5/{RemoveIcon-9dc5dd1a.js → RemoveIcon-C2QMVeWW.js} +0 -0
  628. /package/dist/esm-es5/{ShortAddressCode-7620e622.js → ShortAddressCode-nJ6oI8-n.js} +0 -0
  629. /package/dist/esm-es5/{TaxId-63a14057.js → TaxId-Cye-evFK.js} +0 -0
  630. /package/dist/esm-es5/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
  631. /package/dist/esm-es5/{getHasMoreSpaceOnRight-70eb913a.js → getHasMoreSpaceOnRight-DAscqB23.js} +0 -0
  632. /package/dist/esm-es5/{isCollectMobileTablet-111b0dd7.js → isCollectMobileTablet-DGlnuxEX.js} +0 -0
  633. /package/dist/esm-es5/{isInvoiceMobileTablet-1f7b614e.js → isInvoiceMobileTablet-Clej0Ffe.js} +0 -0
  634. /package/dist/zonos-elements/{p-2770ba48.system.js → p-0D0aCMu6.system.js} +0 -0
  635. /package/dist/zonos-elements/{p-b4b7f705.js → p-BJHSB96f.js} +0 -0
  636. /package/dist/zonos-elements/{p-0a377722.js → p-BJmZPrZl.js} +0 -0
  637. /package/dist/zonos-elements/{p-96d77739.js → p-BTIeCf3T.js} +0 -0
  638. /package/dist/zonos-elements/{p-56ba5cbf.system.js → p-BbPAtVJG.system.js} +0 -0
  639. /package/dist/zonos-elements/{p-11206fe2.js → p-BxAHnL5J.js} +0 -0
  640. /package/dist/zonos-elements/{p-cc6ad18a.js → p-ByGDytaN.js} +0 -0
  641. /package/dist/zonos-elements/{p-83666056.js → p-BycjkdlE.js} +0 -0
  642. /package/dist/zonos-elements/{p-0c64dbbb.js → p-C04AWRC2.js} +0 -0
  643. /package/dist/zonos-elements/{p-655ec440.system.js → p-C29tlYn0.system.js} +0 -0
  644. /package/dist/zonos-elements/{p-2adbbce7.system.js → p-CLDnjFm5.system.js} +0 -0
  645. /package/dist/zonos-elements/{p-989cb22b.system.js → p-Cby4EkFu.system.js} +0 -0
  646. /package/dist/zonos-elements/{p-1f3549c6.js → p-Clej0Ffe.js} +0 -0
  647. /package/dist/zonos-elements/{p-bcf5cffb.js → p-Cye-evFK.js} +0 -0
  648. /package/dist/zonos-elements/{p-b2d81c98.js → p-D5SpFsQJ.js} +0 -0
  649. /package/dist/zonos-elements/{p-5883217a.js → p-DAscqB23.js} +0 -0
  650. /package/dist/zonos-elements/{p-579932a7.js → p-DGlnuxEX.js} +0 -0
  651. /package/dist/zonos-elements/{p-e1255160.js → p-DQuL1Twl.js} +0 -0
  652. /package/dist/zonos-elements/{p-ae393255.js → p-DXXUq2Lv.js} +0 -0
  653. /package/dist/zonos-elements/{p-e7b0c156.js → p-HeAZDwVW.js} +0 -0
  654. /package/dist/zonos-elements/{p-595f5dd2.js → p-XQfWgQLB.js} +0 -0
  655. /package/dist/zonos-elements/{p-bc7bf53e.system.js → p-Z99tSPFR.system.js} +0 -0
  656. /package/dist/zonos-elements/{p-6f23a26a.system.js → p-_GDmY2H7.system.js} +0 -0
  657. /package/dist/zonos-elements/{p-1d42cd20.js → p-nJ6oI8-n.js} +0 -0
@@ -1,3030 +0,0 @@
1
- 'use strict';
2
-
3
- const index = require('./index-b1f95d96.js');
4
- const VarianceTest = require('./VarianceTest-bec00ea8.js');
5
-
6
- const appendToMap = (map, propName, value) => {
7
- let refs = map.get(propName);
8
- if (!refs) {
9
- refs = [];
10
- map.set(propName, refs);
11
- }
12
- if (!refs.some((ref) => ref.deref() === value)) {
13
- refs.push(new WeakRef(value));
14
- }
15
- };
16
- const debounce = (fn, ms) => {
17
- let timeoutId;
18
- return (...args) => {
19
- if (timeoutId) {
20
- clearTimeout(timeoutId);
21
- }
22
- timeoutId = setTimeout(() => {
23
- timeoutId = 0;
24
- fn(...args);
25
- }, ms);
26
- };
27
- };
28
-
29
- /**
30
- * Check if a possible element isConnected.
31
- * The property might not be there, so we check for it.
32
- *
33
- * We want it to return true if isConnected is not a property,
34
- * otherwise we would remove these elements and would not update.
35
- *
36
- * Better leak in Edge than to be useless.
37
- */
38
- const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
39
- const cleanupElements = debounce((map) => {
40
- for (let key of map.keys()) {
41
- const refs = map.get(key).filter((ref) => {
42
- const elm = ref.deref();
43
- return elm && isConnected(elm);
44
- });
45
- map.set(key, refs);
46
- }
47
- }, 2_000);
48
- const core = index.StencilCore;
49
- const forceUpdate = core.forceUpdate;
50
- const getRenderingRef = core.getRenderingRef;
51
- const stencilSubscription = () => {
52
- if (typeof getRenderingRef !== 'function' || typeof forceUpdate !== 'function') {
53
- // If we are not in a stencil project, we do nothing.
54
- // This function is not really exported by @stencil/core.
55
- return {};
56
- }
57
- const ensureForceUpdate = forceUpdate;
58
- const ensureGetRenderingRef = getRenderingRef;
59
- const elmsToUpdate = new Map();
60
- return {
61
- dispose: () => elmsToUpdate.clear(),
62
- get: (propName) => {
63
- const elm = ensureGetRenderingRef();
64
- if (elm) {
65
- appendToMap(elmsToUpdate, propName, elm);
66
- }
67
- },
68
- set: (propName) => {
69
- const refs = elmsToUpdate.get(propName);
70
- if (refs) {
71
- const nextRefs = refs.filter((ref) => {
72
- const elm = ref.deref();
73
- if (!elm)
74
- return false;
75
- return ensureForceUpdate(elm);
76
- });
77
- elmsToUpdate.set(propName, nextRefs);
78
- }
79
- cleanupElements(elmsToUpdate);
80
- },
81
- reset: () => {
82
- elmsToUpdate.forEach((refs) => {
83
- refs.forEach((ref) => {
84
- const elm = ref.deref();
85
- if (elm)
86
- ensureForceUpdate(elm);
87
- });
88
- });
89
- cleanupElements(elmsToUpdate);
90
- },
91
- };
92
- };
93
-
94
- const unwrap = (val) => (typeof val === 'function' ? val() : val);
95
- const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
96
- const resolveDefaultState = () => (unwrap(defaultState) ?? {});
97
- const initialState = resolveDefaultState();
98
- let states = new Map(Object.entries(initialState));
99
- const proxyAvailable = typeof Proxy !== 'undefined';
100
- const plainState = proxyAvailable ? null : {};
101
- const handlers = {
102
- dispose: [],
103
- get: [],
104
- set: [],
105
- reset: [],
106
- };
107
- // Track onChange listeners to enable removeListener functionality
108
- const changeListeners = new Map();
109
- const reset = () => {
110
- // When resetting the state, the default state may be a function - unwrap it to invoke it.
111
- // otherwise, the state won't be properly reset
112
- states = new Map(Object.entries(resolveDefaultState()));
113
- if (!proxyAvailable) {
114
- syncPlainStateKeys();
115
- }
116
- handlers.reset.forEach((cb) => cb());
117
- };
118
- const dispose = () => {
119
- // Call first dispose as resetting the state would
120
- // cause less updates ;)
121
- handlers.dispose.forEach((cb) => cb());
122
- reset();
123
- };
124
- const get = (propName) => {
125
- handlers.get.forEach((cb) => cb(propName));
126
- return states.get(propName);
127
- };
128
- const set = (propName, value) => {
129
- const oldValue = states.get(propName);
130
- if (shouldUpdate(value, oldValue, propName)) {
131
- states.set(propName, value);
132
- if (!proxyAvailable) {
133
- ensurePlainProperty(propName);
134
- }
135
- handlers.set.forEach((cb) => cb(propName, value, oldValue));
136
- }
137
- };
138
- const state = (proxyAvailable
139
- ? new Proxy(initialState, {
140
- get(_, propName) {
141
- return get(propName);
142
- },
143
- ownKeys(_) {
144
- return Array.from(states.keys());
145
- },
146
- getOwnPropertyDescriptor() {
147
- return {
148
- enumerable: true,
149
- configurable: true,
150
- };
151
- },
152
- has(_, propName) {
153
- return states.has(propName);
154
- },
155
- set(_, propName, value) {
156
- set(propName, value);
157
- return true;
158
- },
159
- })
160
- : (() => {
161
- syncPlainStateKeys();
162
- return plainState;
163
- })());
164
- const on = (eventName, callback) => {
165
- handlers[eventName].push(callback);
166
- return () => {
167
- removeFromArray(handlers[eventName], callback);
168
- };
169
- };
170
- const onChange = (propName, cb) => {
171
- const setHandler = (key, newValue) => {
172
- if (key === propName) {
173
- cb(newValue);
174
- }
175
- };
176
- const resetHandler = () => {
177
- const snapshot = resolveDefaultState();
178
- cb(snapshot[propName]);
179
- };
180
- // Register the handlers
181
- const unSet = on('set', setHandler);
182
- const unReset = on('reset', resetHandler);
183
- // Track the relationship between the user callback and internal handlers
184
- changeListeners.set(cb, { setHandler, resetHandler, propName });
185
- return () => {
186
- unSet();
187
- unReset();
188
- changeListeners.delete(cb);
189
- };
190
- };
191
- const use = (...subscriptions) => {
192
- const unsubs = subscriptions.reduce((unsubs, subscription) => {
193
- if (subscription.set) {
194
- unsubs.push(on('set', subscription.set));
195
- }
196
- if (subscription.get) {
197
- unsubs.push(on('get', subscription.get));
198
- }
199
- if (subscription.reset) {
200
- unsubs.push(on('reset', subscription.reset));
201
- }
202
- if (subscription.dispose) {
203
- unsubs.push(on('dispose', subscription.dispose));
204
- }
205
- return unsubs;
206
- }, []);
207
- return () => unsubs.forEach((unsub) => unsub());
208
- };
209
- const forceUpdate = (key) => {
210
- const oldValue = states.get(key);
211
- handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
212
- };
213
- const removeListener = (propName, listener) => {
214
- const listenerInfo = changeListeners.get(listener);
215
- if (listenerInfo && listenerInfo.propName === propName) {
216
- // Remove the specific handlers that were created for this listener
217
- removeFromArray(handlers.set, listenerInfo.setHandler);
218
- removeFromArray(handlers.reset, listenerInfo.resetHandler);
219
- changeListeners.delete(listener);
220
- }
221
- };
222
- function ensurePlainProperty(key) {
223
- if (proxyAvailable || !plainState) {
224
- return;
225
- }
226
- if (Object.prototype.hasOwnProperty.call(plainState, key)) {
227
- return;
228
- }
229
- Object.defineProperty(plainState, key, {
230
- configurable: true,
231
- enumerable: true,
232
- get() {
233
- return get(key);
234
- },
235
- set(value) {
236
- set(key, value);
237
- },
238
- });
239
- }
240
- function syncPlainStateKeys() {
241
- if (proxyAvailable || !plainState) {
242
- return;
243
- }
244
- const knownKeys = new Set(states.keys());
245
- for (const key of Object.keys(plainState)) {
246
- if (!knownKeys.has(key)) {
247
- delete plainState[key];
248
- }
249
- }
250
- for (const key of knownKeys) {
251
- ensurePlainProperty(key);
252
- }
253
- }
254
- return {
255
- state,
256
- get,
257
- set,
258
- on,
259
- onChange,
260
- use,
261
- dispose,
262
- reset,
263
- forceUpdate,
264
- removeListener,
265
- };
266
- };
267
- const removeFromArray = (array, item) => {
268
- const index = array.indexOf(item);
269
- if (index >= 0) {
270
- array[index] = array[array.length - 1];
271
- array.length--;
272
- }
273
- };
274
-
275
- const createStore = (defaultState, shouldUpdate) => {
276
- const map = createObservableMap(defaultState, shouldUpdate);
277
- map.use(stencilSubscription());
278
- return map;
279
- };
280
-
281
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
282
-
283
- /**
284
- * Removes all key-value entries from the list cache.
285
- *
286
- * @private
287
- * @name clear
288
- * @memberOf ListCache
289
- */
290
-
291
- function listCacheClear$1() {
292
- this.__data__ = [];
293
- this.size = 0;
294
- }
295
-
296
- var _listCacheClear = listCacheClear$1;
297
-
298
- /**
299
- * Performs a
300
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
301
- * comparison between two values to determine if they are equivalent.
302
- *
303
- * @static
304
- * @memberOf _
305
- * @since 4.0.0
306
- * @category Lang
307
- * @param {*} value The value to compare.
308
- * @param {*} other The other value to compare.
309
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
310
- * @example
311
- *
312
- * var object = { 'a': 1 };
313
- * var other = { 'a': 1 };
314
- *
315
- * _.eq(object, object);
316
- * // => true
317
- *
318
- * _.eq(object, other);
319
- * // => false
320
- *
321
- * _.eq('a', 'a');
322
- * // => true
323
- *
324
- * _.eq('a', Object('a'));
325
- * // => false
326
- *
327
- * _.eq(NaN, NaN);
328
- * // => true
329
- */
330
-
331
- function eq$4(value, other) {
332
- return value === other || (value !== value && other !== other);
333
- }
334
-
335
- var eq_1 = eq$4;
336
-
337
- var eq$3 = eq_1;
338
-
339
- /**
340
- * Gets the index at which the `key` is found in `array` of key-value pairs.
341
- *
342
- * @private
343
- * @param {Array} array The array to inspect.
344
- * @param {*} key The key to search for.
345
- * @returns {number} Returns the index of the matched value, else `-1`.
346
- */
347
- function assocIndexOf$4(array, key) {
348
- var length = array.length;
349
- while (length--) {
350
- if (eq$3(array[length][0], key)) {
351
- return length;
352
- }
353
- }
354
- return -1;
355
- }
356
-
357
- var _assocIndexOf = assocIndexOf$4;
358
-
359
- var assocIndexOf$3 = _assocIndexOf;
360
-
361
- /** Used for built-in method references. */
362
- var arrayProto = Array.prototype;
363
-
364
- /** Built-in value references. */
365
- var splice = arrayProto.splice;
366
-
367
- /**
368
- * Removes `key` and its value from the list cache.
369
- *
370
- * @private
371
- * @name delete
372
- * @memberOf ListCache
373
- * @param {string} key The key of the value to remove.
374
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
375
- */
376
- function listCacheDelete$1(key) {
377
- var data = this.__data__,
378
- index = assocIndexOf$3(data, key);
379
-
380
- if (index < 0) {
381
- return false;
382
- }
383
- var lastIndex = data.length - 1;
384
- if (index == lastIndex) {
385
- data.pop();
386
- } else {
387
- splice.call(data, index, 1);
388
- }
389
- --this.size;
390
- return true;
391
- }
392
-
393
- var _listCacheDelete = listCacheDelete$1;
394
-
395
- var assocIndexOf$2 = _assocIndexOf;
396
-
397
- /**
398
- * Gets the list cache value for `key`.
399
- *
400
- * @private
401
- * @name get
402
- * @memberOf ListCache
403
- * @param {string} key The key of the value to get.
404
- * @returns {*} Returns the entry value.
405
- */
406
- function listCacheGet$1(key) {
407
- var data = this.__data__,
408
- index = assocIndexOf$2(data, key);
409
-
410
- return index < 0 ? undefined : data[index][1];
411
- }
412
-
413
- var _listCacheGet = listCacheGet$1;
414
-
415
- var assocIndexOf$1 = _assocIndexOf;
416
-
417
- /**
418
- * Checks if a list cache value for `key` exists.
419
- *
420
- * @private
421
- * @name has
422
- * @memberOf ListCache
423
- * @param {string} key The key of the entry to check.
424
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
425
- */
426
- function listCacheHas$1(key) {
427
- return assocIndexOf$1(this.__data__, key) > -1;
428
- }
429
-
430
- var _listCacheHas = listCacheHas$1;
431
-
432
- var assocIndexOf = _assocIndexOf;
433
-
434
- /**
435
- * Sets the list cache `key` to `value`.
436
- *
437
- * @private
438
- * @name set
439
- * @memberOf ListCache
440
- * @param {string} key The key of the value to set.
441
- * @param {*} value The value to set.
442
- * @returns {Object} Returns the list cache instance.
443
- */
444
- function listCacheSet$1(key, value) {
445
- var data = this.__data__,
446
- index = assocIndexOf(data, key);
447
-
448
- if (index < 0) {
449
- ++this.size;
450
- data.push([key, value]);
451
- } else {
452
- data[index][1] = value;
453
- }
454
- return this;
455
- }
456
-
457
- var _listCacheSet = listCacheSet$1;
458
-
459
- var listCacheClear = _listCacheClear,
460
- listCacheDelete = _listCacheDelete,
461
- listCacheGet = _listCacheGet,
462
- listCacheHas = _listCacheHas,
463
- listCacheSet = _listCacheSet;
464
-
465
- /**
466
- * Creates an list cache object.
467
- *
468
- * @private
469
- * @constructor
470
- * @param {Array} [entries] The key-value pairs to cache.
471
- */
472
- function ListCache$4(entries) {
473
- var index = -1,
474
- length = entries == null ? 0 : entries.length;
475
-
476
- this.clear();
477
- while (++index < length) {
478
- var entry = entries[index];
479
- this.set(entry[0], entry[1]);
480
- }
481
- }
482
-
483
- // Add methods to `ListCache`.
484
- ListCache$4.prototype.clear = listCacheClear;
485
- ListCache$4.prototype['delete'] = listCacheDelete;
486
- ListCache$4.prototype.get = listCacheGet;
487
- ListCache$4.prototype.has = listCacheHas;
488
- ListCache$4.prototype.set = listCacheSet;
489
-
490
- var _ListCache = ListCache$4;
491
-
492
- var ListCache$3 = _ListCache;
493
-
494
- /**
495
- * Removes all key-value entries from the stack.
496
- *
497
- * @private
498
- * @name clear
499
- * @memberOf Stack
500
- */
501
- function stackClear$1() {
502
- this.__data__ = new ListCache$3;
503
- this.size = 0;
504
- }
505
-
506
- var _stackClear = stackClear$1;
507
-
508
- /**
509
- * Removes `key` and its value from the stack.
510
- *
511
- * @private
512
- * @name delete
513
- * @memberOf Stack
514
- * @param {string} key The key of the value to remove.
515
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
516
- */
517
-
518
- function stackDelete$1(key) {
519
- var data = this.__data__,
520
- result = data['delete'](key);
521
-
522
- this.size = data.size;
523
- return result;
524
- }
525
-
526
- var _stackDelete = stackDelete$1;
527
-
528
- /**
529
- * Gets the stack value for `key`.
530
- *
531
- * @private
532
- * @name get
533
- * @memberOf Stack
534
- * @param {string} key The key of the value to get.
535
- * @returns {*} Returns the entry value.
536
- */
537
-
538
- function stackGet$1(key) {
539
- return this.__data__.get(key);
540
- }
541
-
542
- var _stackGet = stackGet$1;
543
-
544
- /**
545
- * Checks if a stack value for `key` exists.
546
- *
547
- * @private
548
- * @name has
549
- * @memberOf Stack
550
- * @param {string} key The key of the entry to check.
551
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
552
- */
553
-
554
- function stackHas$1(key) {
555
- return this.__data__.has(key);
556
- }
557
-
558
- var _stackHas = stackHas$1;
559
-
560
- /** Detect free variable `global` from Node.js. */
561
-
562
- var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
563
-
564
- var _freeGlobal = freeGlobal$1;
565
-
566
- var freeGlobal = _freeGlobal;
567
-
568
- /** Detect free variable `self`. */
569
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
570
-
571
- /** Used as a reference to the global object. */
572
- var root$4 = freeGlobal || freeSelf || Function('return this')();
573
-
574
- var _root = root$4;
575
-
576
- var root$3 = _root;
577
-
578
- /** Built-in value references. */
579
- var Symbol$2 = root$3.Symbol;
580
-
581
- var _Symbol = Symbol$2;
582
-
583
- var Symbol$1 = _Symbol;
584
-
585
- /** Used for built-in method references. */
586
- var objectProto$a = Object.prototype;
587
-
588
- /** Used to check objects for own properties. */
589
- var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
590
-
591
- /**
592
- * Used to resolve the
593
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
594
- * of values.
595
- */
596
- var nativeObjectToString$1 = objectProto$a.toString;
597
-
598
- /** Built-in value references. */
599
- var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
600
-
601
- /**
602
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
603
- *
604
- * @private
605
- * @param {*} value The value to query.
606
- * @returns {string} Returns the raw `toStringTag`.
607
- */
608
- function getRawTag$1(value) {
609
- var isOwn = hasOwnProperty$8.call(value, symToStringTag$1),
610
- tag = value[symToStringTag$1];
611
-
612
- try {
613
- value[symToStringTag$1] = undefined;
614
- var unmasked = true;
615
- } catch (e) {}
616
-
617
- var result = nativeObjectToString$1.call(value);
618
- if (unmasked) {
619
- if (isOwn) {
620
- value[symToStringTag$1] = tag;
621
- } else {
622
- delete value[symToStringTag$1];
623
- }
624
- }
625
- return result;
626
- }
627
-
628
- var _getRawTag = getRawTag$1;
629
-
630
- /** Used for built-in method references. */
631
-
632
- var objectProto$9 = Object.prototype;
633
-
634
- /**
635
- * Used to resolve the
636
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
637
- * of values.
638
- */
639
- var nativeObjectToString = objectProto$9.toString;
640
-
641
- /**
642
- * Converts `value` to a string using `Object.prototype.toString`.
643
- *
644
- * @private
645
- * @param {*} value The value to convert.
646
- * @returns {string} Returns the converted string.
647
- */
648
- function objectToString$1(value) {
649
- return nativeObjectToString.call(value);
650
- }
651
-
652
- var _objectToString = objectToString$1;
653
-
654
- var Symbol = _Symbol,
655
- getRawTag = _getRawTag,
656
- objectToString = _objectToString;
657
-
658
- /** `Object#toString` result references. */
659
- var nullTag = '[object Null]',
660
- undefinedTag = '[object Undefined]';
661
-
662
- /** Built-in value references. */
663
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
664
-
665
- /**
666
- * The base implementation of `getTag` without fallbacks for buggy environments.
667
- *
668
- * @private
669
- * @param {*} value The value to query.
670
- * @returns {string} Returns the `toStringTag`.
671
- */
672
- function baseGetTag$4(value) {
673
- if (value == null) {
674
- return value === undefined ? undefinedTag : nullTag;
675
- }
676
- return (symToStringTag && symToStringTag in Object(value))
677
- ? getRawTag(value)
678
- : objectToString(value);
679
- }
680
-
681
- var _baseGetTag = baseGetTag$4;
682
-
683
- /**
684
- * Checks if `value` is the
685
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
686
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
687
- *
688
- * @static
689
- * @memberOf _
690
- * @since 0.1.0
691
- * @category Lang
692
- * @param {*} value The value to check.
693
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
694
- * @example
695
- *
696
- * _.isObject({});
697
- * // => true
698
- *
699
- * _.isObject([1, 2, 3]);
700
- * // => true
701
- *
702
- * _.isObject(_.noop);
703
- * // => true
704
- *
705
- * _.isObject(null);
706
- * // => false
707
- */
708
-
709
- function isObject$7(value) {
710
- var type = typeof value;
711
- return value != null && (type == 'object' || type == 'function');
712
- }
713
-
714
- var isObject_1 = isObject$7;
715
-
716
- var baseGetTag$3 = _baseGetTag,
717
- isObject$6 = isObject_1;
718
-
719
- /** `Object#toString` result references. */
720
- var asyncTag = '[object AsyncFunction]',
721
- funcTag$1 = '[object Function]',
722
- genTag = '[object GeneratorFunction]',
723
- proxyTag = '[object Proxy]';
724
-
725
- /**
726
- * Checks if `value` is classified as a `Function` object.
727
- *
728
- * @static
729
- * @memberOf _
730
- * @since 0.1.0
731
- * @category Lang
732
- * @param {*} value The value to check.
733
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
734
- * @example
735
- *
736
- * _.isFunction(_);
737
- * // => true
738
- *
739
- * _.isFunction(/abc/);
740
- * // => false
741
- */
742
- function isFunction$3(value) {
743
- if (!isObject$6(value)) {
744
- return false;
745
- }
746
- // The use of `Object#toString` avoids issues with the `typeof` operator
747
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
748
- var tag = baseGetTag$3(value);
749
- return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
750
- }
751
-
752
- var isFunction_1 = isFunction$3;
753
-
754
- var root$2 = _root;
755
-
756
- /** Used to detect overreaching core-js shims. */
757
- var coreJsData$1 = root$2['__core-js_shared__'];
758
-
759
- var _coreJsData = coreJsData$1;
760
-
761
- var coreJsData = _coreJsData;
762
-
763
- /** Used to detect methods masquerading as native. */
764
- var maskSrcKey = (function() {
765
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
766
- return uid ? ('Symbol(src)_1.' + uid) : '';
767
- }());
768
-
769
- /**
770
- * Checks if `func` has its source masked.
771
- *
772
- * @private
773
- * @param {Function} func The function to check.
774
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
775
- */
776
- function isMasked$1(func) {
777
- return !!maskSrcKey && (maskSrcKey in func);
778
- }
779
-
780
- var _isMasked = isMasked$1;
781
-
782
- /** Used for built-in method references. */
783
-
784
- var funcProto$2 = Function.prototype;
785
-
786
- /** Used to resolve the decompiled source of functions. */
787
- var funcToString$2 = funcProto$2.toString;
788
-
789
- /**
790
- * Converts `func` to its source code.
791
- *
792
- * @private
793
- * @param {Function} func The function to convert.
794
- * @returns {string} Returns the source code.
795
- */
796
- function toSource$1(func) {
797
- if (func != null) {
798
- try {
799
- return funcToString$2.call(func);
800
- } catch (e) {}
801
- try {
802
- return (func + '');
803
- } catch (e) {}
804
- }
805
- return '';
806
- }
807
-
808
- var _toSource = toSource$1;
809
-
810
- var isFunction$2 = isFunction_1,
811
- isMasked = _isMasked,
812
- isObject$5 = isObject_1,
813
- toSource = _toSource;
814
-
815
- /**
816
- * Used to match `RegExp`
817
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
818
- */
819
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
820
-
821
- /** Used to detect host constructors (Safari). */
822
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
823
-
824
- /** Used for built-in method references. */
825
- var funcProto$1 = Function.prototype,
826
- objectProto$8 = Object.prototype;
827
-
828
- /** Used to resolve the decompiled source of functions. */
829
- var funcToString$1 = funcProto$1.toString;
830
-
831
- /** Used to check objects for own properties. */
832
- var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
833
-
834
- /** Used to detect if a method is native. */
835
- var reIsNative = RegExp('^' +
836
- funcToString$1.call(hasOwnProperty$7).replace(reRegExpChar, '\\$&')
837
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
838
- );
839
-
840
- /**
841
- * The base implementation of `_.isNative` without bad shim checks.
842
- *
843
- * @private
844
- * @param {*} value The value to check.
845
- * @returns {boolean} Returns `true` if `value` is a native function,
846
- * else `false`.
847
- */
848
- function baseIsNative$1(value) {
849
- if (!isObject$5(value) || isMasked(value)) {
850
- return false;
851
- }
852
- var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;
853
- return pattern.test(toSource(value));
854
- }
855
-
856
- var _baseIsNative = baseIsNative$1;
857
-
858
- /**
859
- * Gets the value at `key` of `object`.
860
- *
861
- * @private
862
- * @param {Object} [object] The object to query.
863
- * @param {string} key The key of the property to get.
864
- * @returns {*} Returns the property value.
865
- */
866
-
867
- function getValue$1(object, key) {
868
- return object == null ? undefined : object[key];
869
- }
870
-
871
- var _getValue = getValue$1;
872
-
873
- var baseIsNative = _baseIsNative,
874
- getValue = _getValue;
875
-
876
- /**
877
- * Gets the native function at `key` of `object`.
878
- *
879
- * @private
880
- * @param {Object} object The object to query.
881
- * @param {string} key The key of the method to get.
882
- * @returns {*} Returns the function if it's native, else `undefined`.
883
- */
884
- function getNative$3(object, key) {
885
- var value = getValue(object, key);
886
- return baseIsNative(value) ? value : undefined;
887
- }
888
-
889
- var _getNative = getNative$3;
890
-
891
- var getNative$2 = _getNative,
892
- root$1 = _root;
893
-
894
- /* Built-in method references that are verified to be native. */
895
- var Map$3 = getNative$2(root$1, 'Map');
896
-
897
- var _Map = Map$3;
898
-
899
- var getNative$1 = _getNative;
900
-
901
- /* Built-in method references that are verified to be native. */
902
- var nativeCreate$4 = getNative$1(Object, 'create');
903
-
904
- var _nativeCreate = nativeCreate$4;
905
-
906
- var nativeCreate$3 = _nativeCreate;
907
-
908
- /**
909
- * Removes all key-value entries from the hash.
910
- *
911
- * @private
912
- * @name clear
913
- * @memberOf Hash
914
- */
915
- function hashClear$1() {
916
- this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
917
- this.size = 0;
918
- }
919
-
920
- var _hashClear = hashClear$1;
921
-
922
- /**
923
- * Removes `key` and its value from the hash.
924
- *
925
- * @private
926
- * @name delete
927
- * @memberOf Hash
928
- * @param {Object} hash The hash to modify.
929
- * @param {string} key The key of the value to remove.
930
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
931
- */
932
-
933
- function hashDelete$1(key) {
934
- var result = this.has(key) && delete this.__data__[key];
935
- this.size -= result ? 1 : 0;
936
- return result;
937
- }
938
-
939
- var _hashDelete = hashDelete$1;
940
-
941
- var nativeCreate$2 = _nativeCreate;
942
-
943
- /** Used to stand-in for `undefined` hash values. */
944
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
945
-
946
- /** Used for built-in method references. */
947
- var objectProto$7 = Object.prototype;
948
-
949
- /** Used to check objects for own properties. */
950
- var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
951
-
952
- /**
953
- * Gets the hash value for `key`.
954
- *
955
- * @private
956
- * @name get
957
- * @memberOf Hash
958
- * @param {string} key The key of the value to get.
959
- * @returns {*} Returns the entry value.
960
- */
961
- function hashGet$1(key) {
962
- var data = this.__data__;
963
- if (nativeCreate$2) {
964
- var result = data[key];
965
- return result === HASH_UNDEFINED$1 ? undefined : result;
966
- }
967
- return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
968
- }
969
-
970
- var _hashGet = hashGet$1;
971
-
972
- var nativeCreate$1 = _nativeCreate;
973
-
974
- /** Used for built-in method references. */
975
- var objectProto$6 = Object.prototype;
976
-
977
- /** Used to check objects for own properties. */
978
- var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
979
-
980
- /**
981
- * Checks if a hash value for `key` exists.
982
- *
983
- * @private
984
- * @name has
985
- * @memberOf Hash
986
- * @param {string} key The key of the entry to check.
987
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
988
- */
989
- function hashHas$1(key) {
990
- var data = this.__data__;
991
- return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
992
- }
993
-
994
- var _hashHas = hashHas$1;
995
-
996
- var nativeCreate = _nativeCreate;
997
-
998
- /** Used to stand-in for `undefined` hash values. */
999
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
1000
-
1001
- /**
1002
- * Sets the hash `key` to `value`.
1003
- *
1004
- * @private
1005
- * @name set
1006
- * @memberOf Hash
1007
- * @param {string} key The key of the value to set.
1008
- * @param {*} value The value to set.
1009
- * @returns {Object} Returns the hash instance.
1010
- */
1011
- function hashSet$1(key, value) {
1012
- var data = this.__data__;
1013
- this.size += this.has(key) ? 0 : 1;
1014
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1015
- return this;
1016
- }
1017
-
1018
- var _hashSet = hashSet$1;
1019
-
1020
- var hashClear = _hashClear,
1021
- hashDelete = _hashDelete,
1022
- hashGet = _hashGet,
1023
- hashHas = _hashHas,
1024
- hashSet = _hashSet;
1025
-
1026
- /**
1027
- * Creates a hash object.
1028
- *
1029
- * @private
1030
- * @constructor
1031
- * @param {Array} [entries] The key-value pairs to cache.
1032
- */
1033
- function Hash$1(entries) {
1034
- var index = -1,
1035
- length = entries == null ? 0 : entries.length;
1036
-
1037
- this.clear();
1038
- while (++index < length) {
1039
- var entry = entries[index];
1040
- this.set(entry[0], entry[1]);
1041
- }
1042
- }
1043
-
1044
- // Add methods to `Hash`.
1045
- Hash$1.prototype.clear = hashClear;
1046
- Hash$1.prototype['delete'] = hashDelete;
1047
- Hash$1.prototype.get = hashGet;
1048
- Hash$1.prototype.has = hashHas;
1049
- Hash$1.prototype.set = hashSet;
1050
-
1051
- var _Hash = Hash$1;
1052
-
1053
- var Hash = _Hash,
1054
- ListCache$2 = _ListCache,
1055
- Map$2 = _Map;
1056
-
1057
- /**
1058
- * Removes all key-value entries from the map.
1059
- *
1060
- * @private
1061
- * @name clear
1062
- * @memberOf MapCache
1063
- */
1064
- function mapCacheClear$1() {
1065
- this.size = 0;
1066
- this.__data__ = {
1067
- 'hash': new Hash,
1068
- 'map': new (Map$2 || ListCache$2),
1069
- 'string': new Hash
1070
- };
1071
- }
1072
-
1073
- var _mapCacheClear = mapCacheClear$1;
1074
-
1075
- /**
1076
- * Checks if `value` is suitable for use as unique object key.
1077
- *
1078
- * @private
1079
- * @param {*} value The value to check.
1080
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1081
- */
1082
-
1083
- function isKeyable$1(value) {
1084
- var type = typeof value;
1085
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1086
- ? (value !== '__proto__')
1087
- : (value === null);
1088
- }
1089
-
1090
- var _isKeyable = isKeyable$1;
1091
-
1092
- var isKeyable = _isKeyable;
1093
-
1094
- /**
1095
- * Gets the data for `map`.
1096
- *
1097
- * @private
1098
- * @param {Object} map The map to query.
1099
- * @param {string} key The reference key.
1100
- * @returns {*} Returns the map data.
1101
- */
1102
- function getMapData$4(map, key) {
1103
- var data = map.__data__;
1104
- return isKeyable(key)
1105
- ? data[typeof key == 'string' ? 'string' : 'hash']
1106
- : data.map;
1107
- }
1108
-
1109
- var _getMapData = getMapData$4;
1110
-
1111
- var getMapData$3 = _getMapData;
1112
-
1113
- /**
1114
- * Removes `key` and its value from the map.
1115
- *
1116
- * @private
1117
- * @name delete
1118
- * @memberOf MapCache
1119
- * @param {string} key The key of the value to remove.
1120
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1121
- */
1122
- function mapCacheDelete$1(key) {
1123
- var result = getMapData$3(this, key)['delete'](key);
1124
- this.size -= result ? 1 : 0;
1125
- return result;
1126
- }
1127
-
1128
- var _mapCacheDelete = mapCacheDelete$1;
1129
-
1130
- var getMapData$2 = _getMapData;
1131
-
1132
- /**
1133
- * Gets the map value for `key`.
1134
- *
1135
- * @private
1136
- * @name get
1137
- * @memberOf MapCache
1138
- * @param {string} key The key of the value to get.
1139
- * @returns {*} Returns the entry value.
1140
- */
1141
- function mapCacheGet$1(key) {
1142
- return getMapData$2(this, key).get(key);
1143
- }
1144
-
1145
- var _mapCacheGet = mapCacheGet$1;
1146
-
1147
- var getMapData$1 = _getMapData;
1148
-
1149
- /**
1150
- * Checks if a map value for `key` exists.
1151
- *
1152
- * @private
1153
- * @name has
1154
- * @memberOf MapCache
1155
- * @param {string} key The key of the entry to check.
1156
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1157
- */
1158
- function mapCacheHas$1(key) {
1159
- return getMapData$1(this, key).has(key);
1160
- }
1161
-
1162
- var _mapCacheHas = mapCacheHas$1;
1163
-
1164
- var getMapData = _getMapData;
1165
-
1166
- /**
1167
- * Sets the map `key` to `value`.
1168
- *
1169
- * @private
1170
- * @name set
1171
- * @memberOf MapCache
1172
- * @param {string} key The key of the value to set.
1173
- * @param {*} value The value to set.
1174
- * @returns {Object} Returns the map cache instance.
1175
- */
1176
- function mapCacheSet$1(key, value) {
1177
- var data = getMapData(this, key),
1178
- size = data.size;
1179
-
1180
- data.set(key, value);
1181
- this.size += data.size == size ? 0 : 1;
1182
- return this;
1183
- }
1184
-
1185
- var _mapCacheSet = mapCacheSet$1;
1186
-
1187
- var mapCacheClear = _mapCacheClear,
1188
- mapCacheDelete = _mapCacheDelete,
1189
- mapCacheGet = _mapCacheGet,
1190
- mapCacheHas = _mapCacheHas,
1191
- mapCacheSet = _mapCacheSet;
1192
-
1193
- /**
1194
- * Creates a map cache object to store key-value pairs.
1195
- *
1196
- * @private
1197
- * @constructor
1198
- * @param {Array} [entries] The key-value pairs to cache.
1199
- */
1200
- function MapCache$1(entries) {
1201
- var index = -1,
1202
- length = entries == null ? 0 : entries.length;
1203
-
1204
- this.clear();
1205
- while (++index < length) {
1206
- var entry = entries[index];
1207
- this.set(entry[0], entry[1]);
1208
- }
1209
- }
1210
-
1211
- // Add methods to `MapCache`.
1212
- MapCache$1.prototype.clear = mapCacheClear;
1213
- MapCache$1.prototype['delete'] = mapCacheDelete;
1214
- MapCache$1.prototype.get = mapCacheGet;
1215
- MapCache$1.prototype.has = mapCacheHas;
1216
- MapCache$1.prototype.set = mapCacheSet;
1217
-
1218
- var _MapCache = MapCache$1;
1219
-
1220
- var ListCache$1 = _ListCache,
1221
- Map$1 = _Map,
1222
- MapCache = _MapCache;
1223
-
1224
- /** Used as the size to enable large array optimizations. */
1225
- var LARGE_ARRAY_SIZE = 200;
1226
-
1227
- /**
1228
- * Sets the stack `key` to `value`.
1229
- *
1230
- * @private
1231
- * @name set
1232
- * @memberOf Stack
1233
- * @param {string} key The key of the value to set.
1234
- * @param {*} value The value to set.
1235
- * @returns {Object} Returns the stack cache instance.
1236
- */
1237
- function stackSet$1(key, value) {
1238
- var data = this.__data__;
1239
- if (data instanceof ListCache$1) {
1240
- var pairs = data.__data__;
1241
- if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
1242
- pairs.push([key, value]);
1243
- this.size = ++data.size;
1244
- return this;
1245
- }
1246
- data = this.__data__ = new MapCache(pairs);
1247
- }
1248
- data.set(key, value);
1249
- this.size = data.size;
1250
- return this;
1251
- }
1252
-
1253
- var _stackSet = stackSet$1;
1254
-
1255
- var ListCache = _ListCache,
1256
- stackClear = _stackClear,
1257
- stackDelete = _stackDelete,
1258
- stackGet = _stackGet,
1259
- stackHas = _stackHas,
1260
- stackSet = _stackSet;
1261
-
1262
- /**
1263
- * Creates a stack cache object to store key-value pairs.
1264
- *
1265
- * @private
1266
- * @constructor
1267
- * @param {Array} [entries] The key-value pairs to cache.
1268
- */
1269
- function Stack$1(entries) {
1270
- var data = this.__data__ = new ListCache(entries);
1271
- this.size = data.size;
1272
- }
1273
-
1274
- // Add methods to `Stack`.
1275
- Stack$1.prototype.clear = stackClear;
1276
- Stack$1.prototype['delete'] = stackDelete;
1277
- Stack$1.prototype.get = stackGet;
1278
- Stack$1.prototype.has = stackHas;
1279
- Stack$1.prototype.set = stackSet;
1280
-
1281
- var _Stack = Stack$1;
1282
-
1283
- var getNative = _getNative;
1284
-
1285
- var defineProperty$2 = (function() {
1286
- try {
1287
- var func = getNative(Object, 'defineProperty');
1288
- func({}, '', {});
1289
- return func;
1290
- } catch (e) {}
1291
- }());
1292
-
1293
- var _defineProperty = defineProperty$2;
1294
-
1295
- var defineProperty$1 = _defineProperty;
1296
-
1297
- /**
1298
- * The base implementation of `assignValue` and `assignMergeValue` without
1299
- * value checks.
1300
- *
1301
- * @private
1302
- * @param {Object} object The object to modify.
1303
- * @param {string} key The key of the property to assign.
1304
- * @param {*} value The value to assign.
1305
- */
1306
- function baseAssignValue$3(object, key, value) {
1307
- if (key == '__proto__' && defineProperty$1) {
1308
- defineProperty$1(object, key, {
1309
- 'configurable': true,
1310
- 'enumerable': true,
1311
- 'value': value,
1312
- 'writable': true
1313
- });
1314
- } else {
1315
- object[key] = value;
1316
- }
1317
- }
1318
-
1319
- var _baseAssignValue = baseAssignValue$3;
1320
-
1321
- var baseAssignValue$2 = _baseAssignValue,
1322
- eq$2 = eq_1;
1323
-
1324
- /**
1325
- * This function is like `assignValue` except that it doesn't assign
1326
- * `undefined` values.
1327
- *
1328
- * @private
1329
- * @param {Object} object The object to modify.
1330
- * @param {string} key The key of the property to assign.
1331
- * @param {*} value The value to assign.
1332
- */
1333
- function assignMergeValue$2(object, key, value) {
1334
- if ((value !== undefined && !eq$2(object[key], value)) ||
1335
- (value === undefined && !(key in object))) {
1336
- baseAssignValue$2(object, key, value);
1337
- }
1338
- }
1339
-
1340
- var _assignMergeValue = assignMergeValue$2;
1341
-
1342
- /**
1343
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
1344
- *
1345
- * @private
1346
- * @param {boolean} [fromRight] Specify iterating from right to left.
1347
- * @returns {Function} Returns the new base function.
1348
- */
1349
-
1350
- function createBaseFor$1(fromRight) {
1351
- return function(object, iteratee, keysFunc) {
1352
- var index = -1,
1353
- iterable = Object(object),
1354
- props = keysFunc(object),
1355
- length = props.length;
1356
-
1357
- while (length--) {
1358
- var key = props[fromRight ? length : ++index];
1359
- if (iteratee(iterable[key], key, iterable) === false) {
1360
- break;
1361
- }
1362
- }
1363
- return object;
1364
- };
1365
- }
1366
-
1367
- var _createBaseFor = createBaseFor$1;
1368
-
1369
- var createBaseFor = _createBaseFor;
1370
-
1371
- /**
1372
- * The base implementation of `baseForOwn` which iterates over `object`
1373
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
1374
- * Iteratee functions may exit iteration early by explicitly returning `false`.
1375
- *
1376
- * @private
1377
- * @param {Object} object The object to iterate over.
1378
- * @param {Function} iteratee The function invoked per iteration.
1379
- * @param {Function} keysFunc The function to get the keys of `object`.
1380
- * @returns {Object} Returns `object`.
1381
- */
1382
- var baseFor$1 = createBaseFor();
1383
-
1384
- var _baseFor = baseFor$1;
1385
-
1386
- var _cloneBuffer = {exports: {}};
1387
-
1388
- (function (module, exports) {
1389
- var root = _root;
1390
-
1391
- /** Detect free variable `exports`. */
1392
- var freeExports = exports && !exports.nodeType && exports;
1393
-
1394
- /** Detect free variable `module`. */
1395
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
1396
-
1397
- /** Detect the popular CommonJS extension `module.exports`. */
1398
- var moduleExports = freeModule && freeModule.exports === freeExports;
1399
-
1400
- /** Built-in value references. */
1401
- var Buffer = moduleExports ? root.Buffer : undefined,
1402
- allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
1403
-
1404
- /**
1405
- * Creates a clone of `buffer`.
1406
- *
1407
- * @private
1408
- * @param {Buffer} buffer The buffer to clone.
1409
- * @param {boolean} [isDeep] Specify a deep clone.
1410
- * @returns {Buffer} Returns the cloned buffer.
1411
- */
1412
- function cloneBuffer(buffer, isDeep) {
1413
- if (isDeep) {
1414
- return buffer.slice();
1415
- }
1416
- var length = buffer.length,
1417
- result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
1418
-
1419
- buffer.copy(result);
1420
- return result;
1421
- }
1422
-
1423
- module.exports = cloneBuffer;
1424
- }(_cloneBuffer, _cloneBuffer.exports));
1425
-
1426
- var root = _root;
1427
-
1428
- /** Built-in value references. */
1429
- var Uint8Array$1 = root.Uint8Array;
1430
-
1431
- var _Uint8Array = Uint8Array$1;
1432
-
1433
- var Uint8Array = _Uint8Array;
1434
-
1435
- /**
1436
- * Creates a clone of `arrayBuffer`.
1437
- *
1438
- * @private
1439
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
1440
- * @returns {ArrayBuffer} Returns the cloned array buffer.
1441
- */
1442
- function cloneArrayBuffer$1(arrayBuffer) {
1443
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
1444
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
1445
- return result;
1446
- }
1447
-
1448
- var _cloneArrayBuffer = cloneArrayBuffer$1;
1449
-
1450
- var cloneArrayBuffer = _cloneArrayBuffer;
1451
-
1452
- /**
1453
- * Creates a clone of `typedArray`.
1454
- *
1455
- * @private
1456
- * @param {Object} typedArray The typed array to clone.
1457
- * @param {boolean} [isDeep] Specify a deep clone.
1458
- * @returns {Object} Returns the cloned typed array.
1459
- */
1460
- function cloneTypedArray$1(typedArray, isDeep) {
1461
- var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
1462
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
1463
- }
1464
-
1465
- var _cloneTypedArray = cloneTypedArray$1;
1466
-
1467
- /**
1468
- * Copies the values of `source` to `array`.
1469
- *
1470
- * @private
1471
- * @param {Array} source The array to copy values from.
1472
- * @param {Array} [array=[]] The array to copy values to.
1473
- * @returns {Array} Returns `array`.
1474
- */
1475
-
1476
- function copyArray$1(source, array) {
1477
- var index = -1,
1478
- length = source.length;
1479
-
1480
- array || (array = Array(length));
1481
- while (++index < length) {
1482
- array[index] = source[index];
1483
- }
1484
- return array;
1485
- }
1486
-
1487
- var _copyArray = copyArray$1;
1488
-
1489
- var isObject$4 = isObject_1;
1490
-
1491
- /** Built-in value references. */
1492
- var objectCreate = Object.create;
1493
-
1494
- /**
1495
- * The base implementation of `_.create` without support for assigning
1496
- * properties to the created object.
1497
- *
1498
- * @private
1499
- * @param {Object} proto The object to inherit from.
1500
- * @returns {Object} Returns the new object.
1501
- */
1502
- var baseCreate$1 = (function() {
1503
- function object() {}
1504
- return function(proto) {
1505
- if (!isObject$4(proto)) {
1506
- return {};
1507
- }
1508
- if (objectCreate) {
1509
- return objectCreate(proto);
1510
- }
1511
- object.prototype = proto;
1512
- var result = new object;
1513
- object.prototype = undefined;
1514
- return result;
1515
- };
1516
- }());
1517
-
1518
- var _baseCreate = baseCreate$1;
1519
-
1520
- /**
1521
- * Creates a unary function that invokes `func` with its argument transformed.
1522
- *
1523
- * @private
1524
- * @param {Function} func The function to wrap.
1525
- * @param {Function} transform The argument transform.
1526
- * @returns {Function} Returns the new function.
1527
- */
1528
-
1529
- function overArg$1(func, transform) {
1530
- return function(arg) {
1531
- return func(transform(arg));
1532
- };
1533
- }
1534
-
1535
- var _overArg = overArg$1;
1536
-
1537
- var overArg = _overArg;
1538
-
1539
- /** Built-in value references. */
1540
- var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
1541
-
1542
- var _getPrototype = getPrototype$2;
1543
-
1544
- /** Used for built-in method references. */
1545
-
1546
- var objectProto$5 = Object.prototype;
1547
-
1548
- /**
1549
- * Checks if `value` is likely a prototype object.
1550
- *
1551
- * @private
1552
- * @param {*} value The value to check.
1553
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
1554
- */
1555
- function isPrototype$2(value) {
1556
- var Ctor = value && value.constructor,
1557
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$5;
1558
-
1559
- return value === proto;
1560
- }
1561
-
1562
- var _isPrototype = isPrototype$2;
1563
-
1564
- var baseCreate = _baseCreate,
1565
- getPrototype$1 = _getPrototype,
1566
- isPrototype$1 = _isPrototype;
1567
-
1568
- /**
1569
- * Initializes an object clone.
1570
- *
1571
- * @private
1572
- * @param {Object} object The object to clone.
1573
- * @returns {Object} Returns the initialized clone.
1574
- */
1575
- function initCloneObject$1(object) {
1576
- return (typeof object.constructor == 'function' && !isPrototype$1(object))
1577
- ? baseCreate(getPrototype$1(object))
1578
- : {};
1579
- }
1580
-
1581
- var _initCloneObject = initCloneObject$1;
1582
-
1583
- /**
1584
- * Checks if `value` is object-like. A value is object-like if it's not `null`
1585
- * and has a `typeof` result of "object".
1586
- *
1587
- * @static
1588
- * @memberOf _
1589
- * @since 4.0.0
1590
- * @category Lang
1591
- * @param {*} value The value to check.
1592
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1593
- * @example
1594
- *
1595
- * _.isObjectLike({});
1596
- * // => true
1597
- *
1598
- * _.isObjectLike([1, 2, 3]);
1599
- * // => true
1600
- *
1601
- * _.isObjectLike(_.noop);
1602
- * // => false
1603
- *
1604
- * _.isObjectLike(null);
1605
- * // => false
1606
- */
1607
-
1608
- function isObjectLike$5(value) {
1609
- return value != null && typeof value == 'object';
1610
- }
1611
-
1612
- var isObjectLike_1 = isObjectLike$5;
1613
-
1614
- var baseGetTag$2 = _baseGetTag,
1615
- isObjectLike$4 = isObjectLike_1;
1616
-
1617
- /** `Object#toString` result references. */
1618
- var argsTag$1 = '[object Arguments]';
1619
-
1620
- /**
1621
- * The base implementation of `_.isArguments`.
1622
- *
1623
- * @private
1624
- * @param {*} value The value to check.
1625
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1626
- */
1627
- function baseIsArguments$1(value) {
1628
- return isObjectLike$4(value) && baseGetTag$2(value) == argsTag$1;
1629
- }
1630
-
1631
- var _baseIsArguments = baseIsArguments$1;
1632
-
1633
- var baseIsArguments = _baseIsArguments,
1634
- isObjectLike$3 = isObjectLike_1;
1635
-
1636
- /** Used for built-in method references. */
1637
- var objectProto$4 = Object.prototype;
1638
-
1639
- /** Used to check objects for own properties. */
1640
- var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
1641
-
1642
- /** Built-in value references. */
1643
- var propertyIsEnumerable = objectProto$4.propertyIsEnumerable;
1644
-
1645
- /**
1646
- * Checks if `value` is likely an `arguments` object.
1647
- *
1648
- * @static
1649
- * @memberOf _
1650
- * @since 0.1.0
1651
- * @category Lang
1652
- * @param {*} value The value to check.
1653
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1654
- * else `false`.
1655
- * @example
1656
- *
1657
- * _.isArguments(function() { return arguments; }());
1658
- * // => true
1659
- *
1660
- * _.isArguments([1, 2, 3]);
1661
- * // => false
1662
- */
1663
- var isArguments$2 = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
1664
- return isObjectLike$3(value) && hasOwnProperty$4.call(value, 'callee') &&
1665
- !propertyIsEnumerable.call(value, 'callee');
1666
- };
1667
-
1668
- var isArguments_1 = isArguments$2;
1669
-
1670
- /**
1671
- * Checks if `value` is classified as an `Array` object.
1672
- *
1673
- * @static
1674
- * @memberOf _
1675
- * @since 0.1.0
1676
- * @category Lang
1677
- * @param {*} value The value to check.
1678
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1679
- * @example
1680
- *
1681
- * _.isArray([1, 2, 3]);
1682
- * // => true
1683
- *
1684
- * _.isArray(document.body.children);
1685
- * // => false
1686
- *
1687
- * _.isArray('abc');
1688
- * // => false
1689
- *
1690
- * _.isArray(_.noop);
1691
- * // => false
1692
- */
1693
-
1694
- var isArray$2 = Array.isArray;
1695
-
1696
- var isArray_1 = isArray$2;
1697
-
1698
- /** Used as references for various `Number` constants. */
1699
-
1700
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
1701
-
1702
- /**
1703
- * Checks if `value` is a valid array-like length.
1704
- *
1705
- * **Note:** This method is loosely based on
1706
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
1707
- *
1708
- * @static
1709
- * @memberOf _
1710
- * @since 4.0.0
1711
- * @category Lang
1712
- * @param {*} value The value to check.
1713
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
1714
- * @example
1715
- *
1716
- * _.isLength(3);
1717
- * // => true
1718
- *
1719
- * _.isLength(Number.MIN_VALUE);
1720
- * // => false
1721
- *
1722
- * _.isLength(Infinity);
1723
- * // => false
1724
- *
1725
- * _.isLength('3');
1726
- * // => false
1727
- */
1728
- function isLength$2(value) {
1729
- return typeof value == 'number' &&
1730
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
1731
- }
1732
-
1733
- var isLength_1 = isLength$2;
1734
-
1735
- var isFunction$1 = isFunction_1,
1736
- isLength$1 = isLength_1;
1737
-
1738
- /**
1739
- * Checks if `value` is array-like. A value is considered array-like if it's
1740
- * not a function and has a `value.length` that's an integer greater than or
1741
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
1742
- *
1743
- * @static
1744
- * @memberOf _
1745
- * @since 4.0.0
1746
- * @category Lang
1747
- * @param {*} value The value to check.
1748
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
1749
- * @example
1750
- *
1751
- * _.isArrayLike([1, 2, 3]);
1752
- * // => true
1753
- *
1754
- * _.isArrayLike(document.body.children);
1755
- * // => true
1756
- *
1757
- * _.isArrayLike('abc');
1758
- * // => true
1759
- *
1760
- * _.isArrayLike(_.noop);
1761
- * // => false
1762
- */
1763
- function isArrayLike$3(value) {
1764
- return value != null && isLength$1(value.length) && !isFunction$1(value);
1765
- }
1766
-
1767
- var isArrayLike_1 = isArrayLike$3;
1768
-
1769
- var isArrayLike$2 = isArrayLike_1,
1770
- isObjectLike$2 = isObjectLike_1;
1771
-
1772
- /**
1773
- * This method is like `_.isArrayLike` except that it also checks if `value`
1774
- * is an object.
1775
- *
1776
- * @static
1777
- * @memberOf _
1778
- * @since 4.0.0
1779
- * @category Lang
1780
- * @param {*} value The value to check.
1781
- * @returns {boolean} Returns `true` if `value` is an array-like object,
1782
- * else `false`.
1783
- * @example
1784
- *
1785
- * _.isArrayLikeObject([1, 2, 3]);
1786
- * // => true
1787
- *
1788
- * _.isArrayLikeObject(document.body.children);
1789
- * // => true
1790
- *
1791
- * _.isArrayLikeObject('abc');
1792
- * // => false
1793
- *
1794
- * _.isArrayLikeObject(_.noop);
1795
- * // => false
1796
- */
1797
- function isArrayLikeObject$1(value) {
1798
- return isObjectLike$2(value) && isArrayLike$2(value);
1799
- }
1800
-
1801
- var isArrayLikeObject_1 = isArrayLikeObject$1;
1802
-
1803
- var isBuffer$2 = {exports: {}};
1804
-
1805
- /**
1806
- * This method returns `false`.
1807
- *
1808
- * @static
1809
- * @memberOf _
1810
- * @since 4.13.0
1811
- * @category Util
1812
- * @returns {boolean} Returns `false`.
1813
- * @example
1814
- *
1815
- * _.times(2, _.stubFalse);
1816
- * // => [false, false]
1817
- */
1818
-
1819
- function stubFalse() {
1820
- return false;
1821
- }
1822
-
1823
- var stubFalse_1 = stubFalse;
1824
-
1825
- (function (module, exports) {
1826
- var root = _root,
1827
- stubFalse = stubFalse_1;
1828
-
1829
- /** Detect free variable `exports`. */
1830
- var freeExports = exports && !exports.nodeType && exports;
1831
-
1832
- /** Detect free variable `module`. */
1833
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
1834
-
1835
- /** Detect the popular CommonJS extension `module.exports`. */
1836
- var moduleExports = freeModule && freeModule.exports === freeExports;
1837
-
1838
- /** Built-in value references. */
1839
- var Buffer = moduleExports ? root.Buffer : undefined;
1840
-
1841
- /* Built-in method references for those with the same name as other `lodash` methods. */
1842
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
1843
-
1844
- /**
1845
- * Checks if `value` is a buffer.
1846
- *
1847
- * @static
1848
- * @memberOf _
1849
- * @since 4.3.0
1850
- * @category Lang
1851
- * @param {*} value The value to check.
1852
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
1853
- * @example
1854
- *
1855
- * _.isBuffer(new Buffer(2));
1856
- * // => true
1857
- *
1858
- * _.isBuffer(new Uint8Array(2));
1859
- * // => false
1860
- */
1861
- var isBuffer = nativeIsBuffer || stubFalse;
1862
-
1863
- module.exports = isBuffer;
1864
- }(isBuffer$2, isBuffer$2.exports));
1865
-
1866
- var baseGetTag$1 = _baseGetTag,
1867
- getPrototype = _getPrototype,
1868
- isObjectLike$1 = isObjectLike_1;
1869
-
1870
- /** `Object#toString` result references. */
1871
- var objectTag$1 = '[object Object]';
1872
-
1873
- /** Used for built-in method references. */
1874
- var funcProto = Function.prototype,
1875
- objectProto$3 = Object.prototype;
1876
-
1877
- /** Used to resolve the decompiled source of functions. */
1878
- var funcToString = funcProto.toString;
1879
-
1880
- /** Used to check objects for own properties. */
1881
- var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
1882
-
1883
- /** Used to infer the `Object` constructor. */
1884
- var objectCtorString = funcToString.call(Object);
1885
-
1886
- /**
1887
- * Checks if `value` is a plain object, that is, an object created by the
1888
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
1889
- *
1890
- * @static
1891
- * @memberOf _
1892
- * @since 0.8.0
1893
- * @category Lang
1894
- * @param {*} value The value to check.
1895
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
1896
- * @example
1897
- *
1898
- * function Foo() {
1899
- * this.a = 1;
1900
- * }
1901
- *
1902
- * _.isPlainObject(new Foo);
1903
- * // => false
1904
- *
1905
- * _.isPlainObject([1, 2, 3]);
1906
- * // => false
1907
- *
1908
- * _.isPlainObject({ 'x': 0, 'y': 0 });
1909
- * // => true
1910
- *
1911
- * _.isPlainObject(Object.create(null));
1912
- * // => true
1913
- */
1914
- function isPlainObject$1(value) {
1915
- if (!isObjectLike$1(value) || baseGetTag$1(value) != objectTag$1) {
1916
- return false;
1917
- }
1918
- var proto = getPrototype(value);
1919
- if (proto === null) {
1920
- return true;
1921
- }
1922
- var Ctor = hasOwnProperty$3.call(proto, 'constructor') && proto.constructor;
1923
- return typeof Ctor == 'function' && Ctor instanceof Ctor &&
1924
- funcToString.call(Ctor) == objectCtorString;
1925
- }
1926
-
1927
- var isPlainObject_1 = isPlainObject$1;
1928
-
1929
- var baseGetTag = _baseGetTag,
1930
- isLength = isLength_1,
1931
- isObjectLike = isObjectLike_1;
1932
-
1933
- /** `Object#toString` result references. */
1934
- var argsTag = '[object Arguments]',
1935
- arrayTag = '[object Array]',
1936
- boolTag = '[object Boolean]',
1937
- dateTag = '[object Date]',
1938
- errorTag = '[object Error]',
1939
- funcTag = '[object Function]',
1940
- mapTag = '[object Map]',
1941
- numberTag = '[object Number]',
1942
- objectTag = '[object Object]',
1943
- regexpTag = '[object RegExp]',
1944
- setTag = '[object Set]',
1945
- stringTag = '[object String]',
1946
- weakMapTag = '[object WeakMap]';
1947
-
1948
- var arrayBufferTag = '[object ArrayBuffer]',
1949
- dataViewTag = '[object DataView]',
1950
- float32Tag = '[object Float32Array]',
1951
- float64Tag = '[object Float64Array]',
1952
- int8Tag = '[object Int8Array]',
1953
- int16Tag = '[object Int16Array]',
1954
- int32Tag = '[object Int32Array]',
1955
- uint8Tag = '[object Uint8Array]',
1956
- uint8ClampedTag = '[object Uint8ClampedArray]',
1957
- uint16Tag = '[object Uint16Array]',
1958
- uint32Tag = '[object Uint32Array]';
1959
-
1960
- /** Used to identify `toStringTag` values of typed arrays. */
1961
- var typedArrayTags = {};
1962
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
1963
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
1964
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
1965
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
1966
- typedArrayTags[uint32Tag] = true;
1967
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
1968
- typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
1969
- typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
1970
- typedArrayTags[errorTag] = typedArrayTags[funcTag] =
1971
- typedArrayTags[mapTag] = typedArrayTags[numberTag] =
1972
- typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
1973
- typedArrayTags[setTag] = typedArrayTags[stringTag] =
1974
- typedArrayTags[weakMapTag] = false;
1975
-
1976
- /**
1977
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
1978
- *
1979
- * @private
1980
- * @param {*} value The value to check.
1981
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1982
- */
1983
- function baseIsTypedArray$1(value) {
1984
- return isObjectLike(value) &&
1985
- isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
1986
- }
1987
-
1988
- var _baseIsTypedArray = baseIsTypedArray$1;
1989
-
1990
- /**
1991
- * The base implementation of `_.unary` without support for storing metadata.
1992
- *
1993
- * @private
1994
- * @param {Function} func The function to cap arguments for.
1995
- * @returns {Function} Returns the new capped function.
1996
- */
1997
-
1998
- function baseUnary$1(func) {
1999
- return function(value) {
2000
- return func(value);
2001
- };
2002
- }
2003
-
2004
- var _baseUnary = baseUnary$1;
2005
-
2006
- var _nodeUtil = {exports: {}};
2007
-
2008
- (function (module, exports) {
2009
- var freeGlobal = _freeGlobal;
2010
-
2011
- /** Detect free variable `exports`. */
2012
- var freeExports = exports && !exports.nodeType && exports;
2013
-
2014
- /** Detect free variable `module`. */
2015
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
2016
-
2017
- /** Detect the popular CommonJS extension `module.exports`. */
2018
- var moduleExports = freeModule && freeModule.exports === freeExports;
2019
-
2020
- /** Detect free variable `process` from Node.js. */
2021
- var freeProcess = moduleExports && freeGlobal.process;
2022
-
2023
- /** Used to access faster Node.js helpers. */
2024
- var nodeUtil = (function() {
2025
- try {
2026
- // Use `util.types` for Node.js 10+.
2027
- var types = freeModule && freeModule.require && freeModule.require('util').types;
2028
-
2029
- if (types) {
2030
- return types;
2031
- }
2032
-
2033
- // Legacy `process.binding('util')` for Node.js < 10.
2034
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
2035
- } catch (e) {}
2036
- }());
2037
-
2038
- module.exports = nodeUtil;
2039
- }(_nodeUtil, _nodeUtil.exports));
2040
-
2041
- var baseIsTypedArray = _baseIsTypedArray,
2042
- baseUnary = _baseUnary,
2043
- nodeUtil = _nodeUtil.exports;
2044
-
2045
- /* Node.js helper references. */
2046
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
2047
-
2048
- /**
2049
- * Checks if `value` is classified as a typed array.
2050
- *
2051
- * @static
2052
- * @memberOf _
2053
- * @since 3.0.0
2054
- * @category Lang
2055
- * @param {*} value The value to check.
2056
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
2057
- * @example
2058
- *
2059
- * _.isTypedArray(new Uint8Array);
2060
- * // => true
2061
- *
2062
- * _.isTypedArray([]);
2063
- * // => false
2064
- */
2065
- var isTypedArray$2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
2066
-
2067
- var isTypedArray_1 = isTypedArray$2;
2068
-
2069
- /**
2070
- * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
2071
- *
2072
- * @private
2073
- * @param {Object} object The object to query.
2074
- * @param {string} key The key of the property to get.
2075
- * @returns {*} Returns the property value.
2076
- */
2077
-
2078
- function safeGet$2(object, key) {
2079
- if (key === 'constructor' && typeof object[key] === 'function') {
2080
- return;
2081
- }
2082
-
2083
- if (key == '__proto__') {
2084
- return;
2085
- }
2086
-
2087
- return object[key];
2088
- }
2089
-
2090
- var _safeGet = safeGet$2;
2091
-
2092
- var baseAssignValue$1 = _baseAssignValue,
2093
- eq$1 = eq_1;
2094
-
2095
- /** Used for built-in method references. */
2096
- var objectProto$2 = Object.prototype;
2097
-
2098
- /** Used to check objects for own properties. */
2099
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
2100
-
2101
- /**
2102
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
2103
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
2104
- * for equality comparisons.
2105
- *
2106
- * @private
2107
- * @param {Object} object The object to modify.
2108
- * @param {string} key The key of the property to assign.
2109
- * @param {*} value The value to assign.
2110
- */
2111
- function assignValue$1(object, key, value) {
2112
- var objValue = object[key];
2113
- if (!(hasOwnProperty$2.call(object, key) && eq$1(objValue, value)) ||
2114
- (value === undefined && !(key in object))) {
2115
- baseAssignValue$1(object, key, value);
2116
- }
2117
- }
2118
-
2119
- var _assignValue = assignValue$1;
2120
-
2121
- var assignValue = _assignValue,
2122
- baseAssignValue = _baseAssignValue;
2123
-
2124
- /**
2125
- * Copies properties of `source` to `object`.
2126
- *
2127
- * @private
2128
- * @param {Object} source The object to copy properties from.
2129
- * @param {Array} props The property identifiers to copy.
2130
- * @param {Object} [object={}] The object to copy properties to.
2131
- * @param {Function} [customizer] The function to customize copied values.
2132
- * @returns {Object} Returns `object`.
2133
- */
2134
- function copyObject$1(source, props, object, customizer) {
2135
- var isNew = !object;
2136
- object || (object = {});
2137
-
2138
- var index = -1,
2139
- length = props.length;
2140
-
2141
- while (++index < length) {
2142
- var key = props[index];
2143
-
2144
- var newValue = customizer
2145
- ? customizer(object[key], source[key], key, object, source)
2146
- : undefined;
2147
-
2148
- if (newValue === undefined) {
2149
- newValue = source[key];
2150
- }
2151
- if (isNew) {
2152
- baseAssignValue(object, key, newValue);
2153
- } else {
2154
- assignValue(object, key, newValue);
2155
- }
2156
- }
2157
- return object;
2158
- }
2159
-
2160
- var _copyObject = copyObject$1;
2161
-
2162
- /**
2163
- * The base implementation of `_.times` without support for iteratee shorthands
2164
- * or max array length checks.
2165
- *
2166
- * @private
2167
- * @param {number} n The number of times to invoke `iteratee`.
2168
- * @param {Function} iteratee The function invoked per iteration.
2169
- * @returns {Array} Returns the array of results.
2170
- */
2171
-
2172
- function baseTimes$1(n, iteratee) {
2173
- var index = -1,
2174
- result = Array(n);
2175
-
2176
- while (++index < n) {
2177
- result[index] = iteratee(index);
2178
- }
2179
- return result;
2180
- }
2181
-
2182
- var _baseTimes = baseTimes$1;
2183
-
2184
- /** Used as references for various `Number` constants. */
2185
-
2186
- var MAX_SAFE_INTEGER = 9007199254740991;
2187
-
2188
- /** Used to detect unsigned integer values. */
2189
- var reIsUint = /^(?:0|[1-9]\d*)$/;
2190
-
2191
- /**
2192
- * Checks if `value` is a valid array-like index.
2193
- *
2194
- * @private
2195
- * @param {*} value The value to check.
2196
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
2197
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
2198
- */
2199
- function isIndex$2(value, length) {
2200
- var type = typeof value;
2201
- length = length == null ? MAX_SAFE_INTEGER : length;
2202
-
2203
- return !!length &&
2204
- (type == 'number' ||
2205
- (type != 'symbol' && reIsUint.test(value))) &&
2206
- (value > -1 && value % 1 == 0 && value < length);
2207
- }
2208
-
2209
- var _isIndex = isIndex$2;
2210
-
2211
- var baseTimes = _baseTimes,
2212
- isArguments$1 = isArguments_1,
2213
- isArray$1 = isArray_1,
2214
- isBuffer$1 = isBuffer$2.exports,
2215
- isIndex$1 = _isIndex,
2216
- isTypedArray$1 = isTypedArray_1;
2217
-
2218
- /** Used for built-in method references. */
2219
- var objectProto$1 = Object.prototype;
2220
-
2221
- /** Used to check objects for own properties. */
2222
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
2223
-
2224
- /**
2225
- * Creates an array of the enumerable property names of the array-like `value`.
2226
- *
2227
- * @private
2228
- * @param {*} value The value to query.
2229
- * @param {boolean} inherited Specify returning inherited property names.
2230
- * @returns {Array} Returns the array of property names.
2231
- */
2232
- function arrayLikeKeys$1(value, inherited) {
2233
- var isArr = isArray$1(value),
2234
- isArg = !isArr && isArguments$1(value),
2235
- isBuff = !isArr && !isArg && isBuffer$1(value),
2236
- isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
2237
- skipIndexes = isArr || isArg || isBuff || isType,
2238
- result = skipIndexes ? baseTimes(value.length, String) : [],
2239
- length = result.length;
2240
-
2241
- for (var key in value) {
2242
- if ((inherited || hasOwnProperty$1.call(value, key)) &&
2243
- !(skipIndexes && (
2244
- // Safari 9 has enumerable `arguments.length` in strict mode.
2245
- key == 'length' ||
2246
- // Node.js 0.10 has enumerable non-index properties on buffers.
2247
- (isBuff && (key == 'offset' || key == 'parent')) ||
2248
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
2249
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
2250
- // Skip index properties.
2251
- isIndex$1(key, length)
2252
- ))) {
2253
- result.push(key);
2254
- }
2255
- }
2256
- return result;
2257
- }
2258
-
2259
- var _arrayLikeKeys = arrayLikeKeys$1;
2260
-
2261
- /**
2262
- * This function is like
2263
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
2264
- * except that it includes inherited enumerable properties.
2265
- *
2266
- * @private
2267
- * @param {Object} object The object to query.
2268
- * @returns {Array} Returns the array of property names.
2269
- */
2270
-
2271
- function nativeKeysIn$1(object) {
2272
- var result = [];
2273
- if (object != null) {
2274
- for (var key in Object(object)) {
2275
- result.push(key);
2276
- }
2277
- }
2278
- return result;
2279
- }
2280
-
2281
- var _nativeKeysIn = nativeKeysIn$1;
2282
-
2283
- var isObject$3 = isObject_1,
2284
- isPrototype = _isPrototype,
2285
- nativeKeysIn = _nativeKeysIn;
2286
-
2287
- /** Used for built-in method references. */
2288
- var objectProto = Object.prototype;
2289
-
2290
- /** Used to check objects for own properties. */
2291
- var hasOwnProperty = objectProto.hasOwnProperty;
2292
-
2293
- /**
2294
- * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
2295
- *
2296
- * @private
2297
- * @param {Object} object The object to query.
2298
- * @returns {Array} Returns the array of property names.
2299
- */
2300
- function baseKeysIn$1(object) {
2301
- if (!isObject$3(object)) {
2302
- return nativeKeysIn(object);
2303
- }
2304
- var isProto = isPrototype(object),
2305
- result = [];
2306
-
2307
- for (var key in object) {
2308
- if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
2309
- result.push(key);
2310
- }
2311
- }
2312
- return result;
2313
- }
2314
-
2315
- var _baseKeysIn = baseKeysIn$1;
2316
-
2317
- var arrayLikeKeys = _arrayLikeKeys,
2318
- baseKeysIn = _baseKeysIn,
2319
- isArrayLike$1 = isArrayLike_1;
2320
-
2321
- /**
2322
- * Creates an array of the own and inherited enumerable property names of `object`.
2323
- *
2324
- * **Note:** Non-object values are coerced to objects.
2325
- *
2326
- * @static
2327
- * @memberOf _
2328
- * @since 3.0.0
2329
- * @category Object
2330
- * @param {Object} object The object to query.
2331
- * @returns {Array} Returns the array of property names.
2332
- * @example
2333
- *
2334
- * function Foo() {
2335
- * this.a = 1;
2336
- * this.b = 2;
2337
- * }
2338
- *
2339
- * Foo.prototype.c = 3;
2340
- *
2341
- * _.keysIn(new Foo);
2342
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
2343
- */
2344
- function keysIn$2(object) {
2345
- return isArrayLike$1(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
2346
- }
2347
-
2348
- var keysIn_1 = keysIn$2;
2349
-
2350
- var copyObject = _copyObject,
2351
- keysIn$1 = keysIn_1;
2352
-
2353
- /**
2354
- * Converts `value` to a plain object flattening inherited enumerable string
2355
- * keyed properties of `value` to own properties of the plain object.
2356
- *
2357
- * @static
2358
- * @memberOf _
2359
- * @since 3.0.0
2360
- * @category Lang
2361
- * @param {*} value The value to convert.
2362
- * @returns {Object} Returns the converted plain object.
2363
- * @example
2364
- *
2365
- * function Foo() {
2366
- * this.b = 2;
2367
- * }
2368
- *
2369
- * Foo.prototype.c = 3;
2370
- *
2371
- * _.assign({ 'a': 1 }, new Foo);
2372
- * // => { 'a': 1, 'b': 2 }
2373
- *
2374
- * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
2375
- * // => { 'a': 1, 'b': 2, 'c': 3 }
2376
- */
2377
- function toPlainObject$1(value) {
2378
- return copyObject(value, keysIn$1(value));
2379
- }
2380
-
2381
- var toPlainObject_1 = toPlainObject$1;
2382
-
2383
- var assignMergeValue$1 = _assignMergeValue,
2384
- cloneBuffer = _cloneBuffer.exports,
2385
- cloneTypedArray = _cloneTypedArray,
2386
- copyArray = _copyArray,
2387
- initCloneObject = _initCloneObject,
2388
- isArguments = isArguments_1,
2389
- isArray = isArray_1,
2390
- isArrayLikeObject = isArrayLikeObject_1,
2391
- isBuffer = isBuffer$2.exports,
2392
- isFunction = isFunction_1,
2393
- isObject$2 = isObject_1,
2394
- isPlainObject = isPlainObject_1,
2395
- isTypedArray = isTypedArray_1,
2396
- safeGet$1 = _safeGet,
2397
- toPlainObject = toPlainObject_1;
2398
-
2399
- /**
2400
- * A specialized version of `baseMerge` for arrays and objects which performs
2401
- * deep merges and tracks traversed objects enabling objects with circular
2402
- * references to be merged.
2403
- *
2404
- * @private
2405
- * @param {Object} object The destination object.
2406
- * @param {Object} source The source object.
2407
- * @param {string} key The key of the value to merge.
2408
- * @param {number} srcIndex The index of `source`.
2409
- * @param {Function} mergeFunc The function to merge values.
2410
- * @param {Function} [customizer] The function to customize assigned values.
2411
- * @param {Object} [stack] Tracks traversed source values and their merged
2412
- * counterparts.
2413
- */
2414
- function baseMergeDeep$1(object, source, key, srcIndex, mergeFunc, customizer, stack) {
2415
- var objValue = safeGet$1(object, key),
2416
- srcValue = safeGet$1(source, key),
2417
- stacked = stack.get(srcValue);
2418
-
2419
- if (stacked) {
2420
- assignMergeValue$1(object, key, stacked);
2421
- return;
2422
- }
2423
- var newValue = customizer
2424
- ? customizer(objValue, srcValue, (key + ''), object, source, stack)
2425
- : undefined;
2426
-
2427
- var isCommon = newValue === undefined;
2428
-
2429
- if (isCommon) {
2430
- var isArr = isArray(srcValue),
2431
- isBuff = !isArr && isBuffer(srcValue),
2432
- isTyped = !isArr && !isBuff && isTypedArray(srcValue);
2433
-
2434
- newValue = srcValue;
2435
- if (isArr || isBuff || isTyped) {
2436
- if (isArray(objValue)) {
2437
- newValue = objValue;
2438
- }
2439
- else if (isArrayLikeObject(objValue)) {
2440
- newValue = copyArray(objValue);
2441
- }
2442
- else if (isBuff) {
2443
- isCommon = false;
2444
- newValue = cloneBuffer(srcValue, true);
2445
- }
2446
- else if (isTyped) {
2447
- isCommon = false;
2448
- newValue = cloneTypedArray(srcValue, true);
2449
- }
2450
- else {
2451
- newValue = [];
2452
- }
2453
- }
2454
- else if (isPlainObject(srcValue) || isArguments(srcValue)) {
2455
- newValue = objValue;
2456
- if (isArguments(objValue)) {
2457
- newValue = toPlainObject(objValue);
2458
- }
2459
- else if (!isObject$2(objValue) || isFunction(objValue)) {
2460
- newValue = initCloneObject(srcValue);
2461
- }
2462
- }
2463
- else {
2464
- isCommon = false;
2465
- }
2466
- }
2467
- if (isCommon) {
2468
- // Recursively merge objects and arrays (susceptible to call stack limits).
2469
- stack.set(srcValue, newValue);
2470
- mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
2471
- stack['delete'](srcValue);
2472
- }
2473
- assignMergeValue$1(object, key, newValue);
2474
- }
2475
-
2476
- var _baseMergeDeep = baseMergeDeep$1;
2477
-
2478
- var Stack = _Stack,
2479
- assignMergeValue = _assignMergeValue,
2480
- baseFor = _baseFor,
2481
- baseMergeDeep = _baseMergeDeep,
2482
- isObject$1 = isObject_1,
2483
- keysIn = keysIn_1,
2484
- safeGet = _safeGet;
2485
-
2486
- /**
2487
- * The base implementation of `_.merge` without support for multiple sources.
2488
- *
2489
- * @private
2490
- * @param {Object} object The destination object.
2491
- * @param {Object} source The source object.
2492
- * @param {number} srcIndex The index of `source`.
2493
- * @param {Function} [customizer] The function to customize merged values.
2494
- * @param {Object} [stack] Tracks traversed source values and their merged
2495
- * counterparts.
2496
- */
2497
- function baseMerge$1(object, source, srcIndex, customizer, stack) {
2498
- if (object === source) {
2499
- return;
2500
- }
2501
- baseFor(source, function(srcValue, key) {
2502
- stack || (stack = new Stack);
2503
- if (isObject$1(srcValue)) {
2504
- baseMergeDeep(object, source, key, srcIndex, baseMerge$1, customizer, stack);
2505
- }
2506
- else {
2507
- var newValue = customizer
2508
- ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
2509
- : undefined;
2510
-
2511
- if (newValue === undefined) {
2512
- newValue = srcValue;
2513
- }
2514
- assignMergeValue(object, key, newValue);
2515
- }
2516
- }, keysIn);
2517
- }
2518
-
2519
- var _baseMerge = baseMerge$1;
2520
-
2521
- /**
2522
- * This method returns the first argument it receives.
2523
- *
2524
- * @static
2525
- * @since 0.1.0
2526
- * @memberOf _
2527
- * @category Util
2528
- * @param {*} value Any value.
2529
- * @returns {*} Returns `value`.
2530
- * @example
2531
- *
2532
- * var object = { 'a': 1 };
2533
- *
2534
- * console.log(_.identity(object) === object);
2535
- * // => true
2536
- */
2537
-
2538
- function identity$2(value) {
2539
- return value;
2540
- }
2541
-
2542
- var identity_1 = identity$2;
2543
-
2544
- /**
2545
- * A faster alternative to `Function#apply`, this function invokes `func`
2546
- * with the `this` binding of `thisArg` and the arguments of `args`.
2547
- *
2548
- * @private
2549
- * @param {Function} func The function to invoke.
2550
- * @param {*} thisArg The `this` binding of `func`.
2551
- * @param {Array} args The arguments to invoke `func` with.
2552
- * @returns {*} Returns the result of `func`.
2553
- */
2554
-
2555
- function apply$1(func, thisArg, args) {
2556
- switch (args.length) {
2557
- case 0: return func.call(thisArg);
2558
- case 1: return func.call(thisArg, args[0]);
2559
- case 2: return func.call(thisArg, args[0], args[1]);
2560
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
2561
- }
2562
- return func.apply(thisArg, args);
2563
- }
2564
-
2565
- var _apply = apply$1;
2566
-
2567
- var apply = _apply;
2568
-
2569
- /* Built-in method references for those with the same name as other `lodash` methods. */
2570
- var nativeMax = Math.max;
2571
-
2572
- /**
2573
- * A specialized version of `baseRest` which transforms the rest array.
2574
- *
2575
- * @private
2576
- * @param {Function} func The function to apply a rest parameter to.
2577
- * @param {number} [start=func.length-1] The start position of the rest parameter.
2578
- * @param {Function} transform The rest array transform.
2579
- * @returns {Function} Returns the new function.
2580
- */
2581
- function overRest$1(func, start, transform) {
2582
- start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
2583
- return function() {
2584
- var args = arguments,
2585
- index = -1,
2586
- length = nativeMax(args.length - start, 0),
2587
- array = Array(length);
2588
-
2589
- while (++index < length) {
2590
- array[index] = args[start + index];
2591
- }
2592
- index = -1;
2593
- var otherArgs = Array(start + 1);
2594
- while (++index < start) {
2595
- otherArgs[index] = args[index];
2596
- }
2597
- otherArgs[start] = transform(array);
2598
- return apply(func, this, otherArgs);
2599
- };
2600
- }
2601
-
2602
- var _overRest = overRest$1;
2603
-
2604
- /**
2605
- * Creates a function that returns `value`.
2606
- *
2607
- * @static
2608
- * @memberOf _
2609
- * @since 2.4.0
2610
- * @category Util
2611
- * @param {*} value The value to return from the new function.
2612
- * @returns {Function} Returns the new constant function.
2613
- * @example
2614
- *
2615
- * var objects = _.times(2, _.constant({ 'a': 1 }));
2616
- *
2617
- * console.log(objects);
2618
- * // => [{ 'a': 1 }, { 'a': 1 }]
2619
- *
2620
- * console.log(objects[0] === objects[1]);
2621
- * // => true
2622
- */
2623
-
2624
- function constant$1(value) {
2625
- return function() {
2626
- return value;
2627
- };
2628
- }
2629
-
2630
- var constant_1 = constant$1;
2631
-
2632
- var constant = constant_1,
2633
- defineProperty = _defineProperty,
2634
- identity$1 = identity_1;
2635
-
2636
- /**
2637
- * The base implementation of `setToString` without support for hot loop shorting.
2638
- *
2639
- * @private
2640
- * @param {Function} func The function to modify.
2641
- * @param {Function} string The `toString` result.
2642
- * @returns {Function} Returns `func`.
2643
- */
2644
- var baseSetToString$1 = !defineProperty ? identity$1 : function(func, string) {
2645
- return defineProperty(func, 'toString', {
2646
- 'configurable': true,
2647
- 'enumerable': false,
2648
- 'value': constant(string),
2649
- 'writable': true
2650
- });
2651
- };
2652
-
2653
- var _baseSetToString = baseSetToString$1;
2654
-
2655
- /** Used to detect hot functions by number of calls within a span of milliseconds. */
2656
-
2657
- var HOT_COUNT = 800,
2658
- HOT_SPAN = 16;
2659
-
2660
- /* Built-in method references for those with the same name as other `lodash` methods. */
2661
- var nativeNow = Date.now;
2662
-
2663
- /**
2664
- * Creates a function that'll short out and invoke `identity` instead
2665
- * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
2666
- * milliseconds.
2667
- *
2668
- * @private
2669
- * @param {Function} func The function to restrict.
2670
- * @returns {Function} Returns the new shortable function.
2671
- */
2672
- function shortOut$1(func) {
2673
- var count = 0,
2674
- lastCalled = 0;
2675
-
2676
- return function() {
2677
- var stamp = nativeNow(),
2678
- remaining = HOT_SPAN - (stamp - lastCalled);
2679
-
2680
- lastCalled = stamp;
2681
- if (remaining > 0) {
2682
- if (++count >= HOT_COUNT) {
2683
- return arguments[0];
2684
- }
2685
- } else {
2686
- count = 0;
2687
- }
2688
- return func.apply(undefined, arguments);
2689
- };
2690
- }
2691
-
2692
- var _shortOut = shortOut$1;
2693
-
2694
- var baseSetToString = _baseSetToString,
2695
- shortOut = _shortOut;
2696
-
2697
- /**
2698
- * Sets the `toString` method of `func` to return `string`.
2699
- *
2700
- * @private
2701
- * @param {Function} func The function to modify.
2702
- * @param {Function} string The `toString` result.
2703
- * @returns {Function} Returns `func`.
2704
- */
2705
- var setToString$1 = shortOut(baseSetToString);
2706
-
2707
- var _setToString = setToString$1;
2708
-
2709
- var identity = identity_1,
2710
- overRest = _overRest,
2711
- setToString = _setToString;
2712
-
2713
- /**
2714
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
2715
- *
2716
- * @private
2717
- * @param {Function} func The function to apply a rest parameter to.
2718
- * @param {number} [start=func.length-1] The start position of the rest parameter.
2719
- * @returns {Function} Returns the new function.
2720
- */
2721
- function baseRest$1(func, start) {
2722
- return setToString(overRest(func, start, identity), func + '');
2723
- }
2724
-
2725
- var _baseRest = baseRest$1;
2726
-
2727
- var eq = eq_1,
2728
- isArrayLike = isArrayLike_1,
2729
- isIndex = _isIndex,
2730
- isObject = isObject_1;
2731
-
2732
- /**
2733
- * Checks if the given arguments are from an iteratee call.
2734
- *
2735
- * @private
2736
- * @param {*} value The potential iteratee value argument.
2737
- * @param {*} index The potential iteratee index or key argument.
2738
- * @param {*} object The potential iteratee object argument.
2739
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
2740
- * else `false`.
2741
- */
2742
- function isIterateeCall$1(value, index, object) {
2743
- if (!isObject(object)) {
2744
- return false;
2745
- }
2746
- var type = typeof index;
2747
- if (type == 'number'
2748
- ? (isArrayLike(object) && isIndex(index, object.length))
2749
- : (type == 'string' && index in object)
2750
- ) {
2751
- return eq(object[index], value);
2752
- }
2753
- return false;
2754
- }
2755
-
2756
- var _isIterateeCall = isIterateeCall$1;
2757
-
2758
- var baseRest = _baseRest,
2759
- isIterateeCall = _isIterateeCall;
2760
-
2761
- /**
2762
- * Creates a function like `_.assign`.
2763
- *
2764
- * @private
2765
- * @param {Function} assigner The function to assign values.
2766
- * @returns {Function} Returns the new assigner function.
2767
- */
2768
- function createAssigner$1(assigner) {
2769
- return baseRest(function(object, sources) {
2770
- var index = -1,
2771
- length = sources.length,
2772
- customizer = length > 1 ? sources[length - 1] : undefined,
2773
- guard = length > 2 ? sources[2] : undefined;
2774
-
2775
- customizer = (assigner.length > 3 && typeof customizer == 'function')
2776
- ? (length--, customizer)
2777
- : undefined;
2778
-
2779
- if (guard && isIterateeCall(sources[0], sources[1], guard)) {
2780
- customizer = length < 3 ? undefined : customizer;
2781
- length = 1;
2782
- }
2783
- object = Object(object);
2784
- while (++index < length) {
2785
- var source = sources[index];
2786
- if (source) {
2787
- assigner(object, source, index, customizer);
2788
- }
2789
- }
2790
- return object;
2791
- });
2792
- }
2793
-
2794
- var _createAssigner = createAssigner$1;
2795
-
2796
- var baseMerge = _baseMerge,
2797
- createAssigner = _createAssigner;
2798
-
2799
- /**
2800
- * This method is like `_.assign` except that it recursively merges own and
2801
- * inherited enumerable string keyed properties of source objects into the
2802
- * destination object. Source properties that resolve to `undefined` are
2803
- * skipped if a destination value exists. Array and plain object properties
2804
- * are merged recursively. Other objects and value types are overridden by
2805
- * assignment. Source objects are applied from left to right. Subsequent
2806
- * sources overwrite property assignments of previous sources.
2807
- *
2808
- * **Note:** This method mutates `object`.
2809
- *
2810
- * @static
2811
- * @memberOf _
2812
- * @since 0.5.0
2813
- * @category Object
2814
- * @param {Object} object The destination object.
2815
- * @param {...Object} [sources] The source objects.
2816
- * @returns {Object} Returns `object`.
2817
- * @example
2818
- *
2819
- * var object = {
2820
- * 'a': [{ 'b': 2 }, { 'd': 4 }]
2821
- * };
2822
- *
2823
- * var other = {
2824
- * 'a': [{ 'c': 3 }, { 'e': 5 }]
2825
- * };
2826
- *
2827
- * _.merge(object, other);
2828
- * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
2829
- */
2830
- var merge = createAssigner(function(object, source, srcIndex) {
2831
- baseMerge(object, source, srcIndex);
2832
- });
2833
-
2834
- var merge_1 = merge;
2835
-
2836
- /**
2837
- * Merge objects deeply with strongly typed for each argument
2838
- * @param value1 Merge object
2839
- * @param value2[] List of objects to merge (need to have the same shape as value1)
2840
- */
2841
- const mergeConfig = (defaultObj, fetchedObj, ...overrideObj) => {
2842
- // filter out null and undefined values
2843
- const overrideArgs = [defaultObj, fetchedObj, ...overrideObj].filter(Boolean);
2844
- return merge_1.apply(null, overrideArgs);
2845
- };
2846
-
2847
- const isInAvailableTestKey = (testKey) => {
2848
- return testKey in VarianceTest.availableTestKeys;
2849
- };
2850
-
2851
- const { dispose: zonosStoreDispose, onChange: zonosStoreOnChange, reset, state: zonosStore, } = createStore(() => ({
2852
- appearance: {
2853
- colorPrimary: 'white',
2854
- fontFamily: 'Inter',
2855
- logoUrl: '',
2856
- style: 'ROUNDED',
2857
- // null, never a list: mergeConfig is lodash merge, which merges arrays by index — a
2858
- // populated default would leak entries past a merchant's shorter selection
2859
- supportedLocales: null,
2860
- theme: 'LIGHT',
2861
- zonosAttribution: 'DISABLED',
2862
- },
2863
- checkoutAddressService: null,
2864
- checkoutSettings: {
2865
- allowedCharacterSets: 'ALL',
2866
- allowedSettlementCurrencies: 'LOCAL',
2867
- analyticsProviders: [],
2868
- companyFieldsStatus: 'DISABLED',
2869
- defaultCartExpiration: 3600,
2870
- externalPaymentMethods: [],
2871
- externalServiceTokens: [],
2872
- merchantPolicyLinks: null,
2873
- mode: 'TEST',
2874
- orderNotifications: {
2875
- abandonedCart: {
2876
- delay: 0,
2877
- discountPercent: 0,
2878
- status: {
2879
- active: 'DISABLED',
2880
- sendCopiesTo: [],
2881
- },
2882
- },
2883
- orderCancelled: {
2884
- active: 'DISABLED',
2885
- sendCopiesTo: [],
2886
- },
2887
- orderConfirmation: {
2888
- active: 'DISABLED',
2889
- sendCopiesTo: [],
2890
- },
2891
- orderShipped: {
2892
- active: 'DISABLED',
2893
- sendCopiesTo: [],
2894
- },
2895
- },
2896
- organization: '',
2897
- placeOrderButtonSelector: null,
2898
- // default inactive for subscription
2899
- subscriptionStatus: 'INACTIVE',
2900
- successBehavior: 'REDIRECT_TO_SUCCESS_PAGE',
2901
- successRedirectUrl: '',
2902
- visibilityStatus: 'ENABLED',
2903
- },
2904
- currentHelloPage: '',
2905
- disabledCountries: [],
2906
- enabledVariantTestKeys: [],
2907
- helloSettings: {
2908
- anchorElementSelector: '',
2909
- cartUrlPattern: '',
2910
- /**
2911
- * @TODO Default to URL_PARAM for now, and switch SESSION later when we have API save this info, and we have the ability to update setting of merchant store without having them do it.
2912
- */
2913
- countryOverrideBehavior: 'URL_PARAM',
2914
- currencyBehavior: 'ENABLED',
2915
- currencyElementSelector: '.money',
2916
- /**
2917
- * Default to bottom right so hello would float if anchorElementSelector is not set. Otherwise, this will be ignored
2918
- */
2919
- desktopLocation: 'BOTTOM_RIGHT',
2920
- excludedUrlPatterns: [],
2921
- homepageUrlPattern: '',
2922
- mobileLocation: 'BOTTOM_RIGHT',
2923
- mode: 'LIVE',
2924
- notFoundElementFallback: null,
2925
- organization: '',
2926
- peekMessageBehavior: 'ENABLED',
2927
- peekMessageDelay: 0,
2928
- productAddToCartElementSelector: '',
2929
- productDescriptionElementSelector: '',
2930
- productDetailUrlPattern: '',
2931
- productListUrlPattern: '',
2932
- productTitleElementSelector: '',
2933
- restrictionBehavior: 'DISABLED',
2934
- visibilityStatus: 'ENABLED',
2935
- widgetSize: null,
2936
- },
2937
- loadedConfig: false,
2938
- onlineStoreSettings: {
2939
- allowedDomains: [],
2940
- url: '',
2941
- },
2942
- organizationId: '',
2943
- organizationName: '',
2944
- sourceCurrency: 'USD',
2945
- storeId: null,
2946
- // toggle to know if the config has been loaded with graphql
2947
- stripeApiKey: '',
2948
- zonosApiKey: '',
2949
- zonosMode: null,
2950
- }));
2951
- let savedZonosSettings = null;
2952
- /**
2953
- * Get theme from media query if theme is SYSTEM, otherwise return the theme
2954
- */
2955
- const getZonosStoreTheme = (theme) => {
2956
- if (theme === 'SYSTEM') {
2957
- return window.matchMedia('(prefers-color-scheme: dark)').matches
2958
- ? 'DARK'
2959
- : 'LIGHT';
2960
- }
2961
- return theme;
2962
- };
2963
- /**
2964
- * Init setting from zonos setting
2965
- */
2966
- const zonosStoreInitSetting = ({ overrideSettings, zonosSettings, }) => {
2967
- var _a, _b, _c, _d, _e, _f, _g, _h;
2968
- reset();
2969
- if (zonosSettings) {
2970
- // save zonos settings to be used later
2971
- savedZonosSettings = zonosSettings;
2972
- }
2973
- const mergedAppearanceConfig = mergeConfig(zonosStore.appearance, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.appearanceSettings) ||
2974
- (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.appearanceSettings) ||
2975
- null, overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.appearance);
2976
- // override the theme to user browser preferences if it is set to SYSTEM
2977
- if (mergedAppearanceConfig.theme === 'SYSTEM') {
2978
- // update theme to user browser preferences
2979
- mergedAppearanceConfig.theme = getZonosStoreTheme(mergedAppearanceConfig.theme);
2980
- }
2981
- zonosStore.onlineStoreSettings = mergeConfig(zonosStore.onlineStoreSettings, (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.onlineStoreSettings) || null);
2982
- zonosStore.disabledCountries =
2983
- ((_a = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.checkoutSettings) === null || _a === void 0 ? void 0 : _a.disabledCountries) || [];
2984
- zonosStore.appearance = mergedAppearanceConfig;
2985
- zonosStore.checkoutSettings = mergeConfig(zonosStore.checkoutSettings, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.checkoutSettings) ||
2986
- (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.checkoutSettings) ||
2987
- null, overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.checkoutSettings);
2988
- zonosStore.helloSettings = mergeConfig(zonosStore.helloSettings, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.helloSettings) || (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.helloSettings) || null, overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.helloSettings);
2989
- zonosStore.genericSettings = mergeConfig(zonosStore.genericSettings, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.genericSettings) ||
2990
- (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.genericSettings) ||
2991
- null);
2992
- // set flag to true to indicate that config is ready
2993
- zonosStore.loadedConfig = true;
2994
- // initialize variant test keys
2995
- zonosStore.enabledVariantTestKeys =
2996
- // Only map and filter the test keys that the current code supports
2997
- ((_c = (_b = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.checkoutSettings) === null || _b === void 0 ? void 0 : _b.varianceTestRegistrations) === null || _c === void 0 ? void 0 : _c.flatMap(({ testKey }) => (isInAvailableTestKey(testKey) ? testKey : []))) || [];
2998
- zonosStore.organizationId = ((_d = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.organization) === null || _d === void 0 ? void 0 : _d.id) || '';
2999
- zonosStore.organizationName = ((_e = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.organization) === null || _e === void 0 ? void 0 : _e.name) || '';
3000
- zonosStore.storeId = ((_g = (_f = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.organization) === null || _f === void 0 ? void 0 : _f.references) === null || _g === void 0 ? void 0 : _g.storeId) || null;
3001
- zonosStore.currencyConverter = overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.currencyConverter;
3002
- zonosStore.onCountryChange = overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.onCountryChange;
3003
- zonosStore.overrideCurrencyFormat = overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.overrideCurrencyFormat;
3004
- // If url has sourceCurrencyCode, use it, otherwise use the default native currency
3005
- zonosStore.sourceCurrency =
3006
- new URLSearchParams(window.location.search).get('zonosSourceCurrencyCode') ||
3007
- ((_h = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.landedCostSettings) === null || _h === void 0 ? void 0 : _h.defaultNativeCurrency) ||
3008
- 'USD';
3009
- VarianceTest.log('Store base currency', 'info', zonosStore.sourceCurrency);
3010
- if (zonosStore.storeId) {
3011
- window.Zonos.storeId = zonosStore.storeId;
3012
- }
3013
- };
3014
- const zonosStoreFontFamily = () => {
3015
- const fontFamily = zonosStore.appearance.fontFamily || 'Inter';
3016
- return fontFamily;
3017
- };
3018
-
3019
- exports._baseGetTag = _baseGetTag;
3020
- exports._root = _root;
3021
- exports.commonjsGlobal = commonjsGlobal;
3022
- exports.createStore = createStore;
3023
- exports.getZonosStoreTheme = getZonosStoreTheme;
3024
- exports.isObjectLike_1 = isObjectLike_1;
3025
- exports.isObject_1 = isObject_1;
3026
- exports.mergeConfig = mergeConfig;
3027
- exports.zonosStore = zonosStore;
3028
- exports.zonosStoreFontFamily = zonosStoreFontFamily;
3029
- exports.zonosStoreInitSetting = zonosStoreInitSetting;
3030
- exports.zonosStoreOnChange = zonosStoreOnChange;