ordering-ui-external 10.0.0 → 10.1.0

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 (360) hide show
  1. package/_bundles/{0.ordering-ui.cbc5b3aa15dd7af939b0.js → 0.ordering-ui.e9827c5566d8cce0eaa4.js} +1 -1
  2. package/_bundles/{1.ordering-ui.cbc5b3aa15dd7af939b0.js → 1.ordering-ui.e9827c5566d8cce0eaa4.js} +1 -1
  3. package/_bundles/{2.ordering-ui.cbc5b3aa15dd7af939b0.js → 2.ordering-ui.e9827c5566d8cce0eaa4.js} +1 -1
  4. package/_bundles/{4.ordering-ui.cbc5b3aa15dd7af939b0.js → 4.ordering-ui.e9827c5566d8cce0eaa4.js} +1 -1
  5. package/_bundles/{5.ordering-ui.cbc5b3aa15dd7af939b0.js → 5.ordering-ui.e9827c5566d8cce0eaa4.js} +1 -1
  6. package/_bundles/{6.ordering-ui.cbc5b3aa15dd7af939b0.js → 6.ordering-ui.e9827c5566d8cce0eaa4.js} +1 -1
  7. package/_bundles/{7.ordering-ui.cbc5b3aa15dd7af939b0.js → 7.ordering-ui.e9827c5566d8cce0eaa4.js} +2 -2
  8. package/_bundles/{8.ordering-ui.cbc5b3aa15dd7af939b0.js → 8.ordering-ui.e9827c5566d8cce0eaa4.js} +1 -1
  9. package/_bundles/{9.ordering-ui.cbc5b3aa15dd7af939b0.js → 9.ordering-ui.e9827c5566d8cce0eaa4.js} +1 -1
  10. package/_bundles/ordering-ui.e9827c5566d8cce0eaa4.js +2 -0
  11. package/_modules/config/currency.js +1017 -0
  12. package/_modules/themes/callcenterOriginal/src/components/Orders/AddressForm/index.js +608 -0
  13. package/_modules/themes/callcenterOriginal/src/components/Orders/AddressForm/styles.js +69 -0
  14. package/_modules/themes/callcenterOriginal/src/components/Orders/AddressList/index.js +304 -0
  15. package/_modules/themes/callcenterOriginal/src/components/Orders/AddressList/styles.js +60 -0
  16. package/_modules/themes/callcenterOriginal/src/components/Orders/AllInOne/DriversManager/index.js +128 -0
  17. package/_modules/themes/callcenterOriginal/src/components/Orders/AllInOne/DriversManager/styles.js +27 -0
  18. package/_modules/themes/callcenterOriginal/src/components/Orders/AllInOne/index.js +337 -0
  19. package/_modules/themes/callcenterOriginal/src/components/Orders/AllInOne/styles.js +67 -0
  20. package/_modules/themes/callcenterOriginal/src/components/Orders/Appointments/CalendarHeader.js +81 -0
  21. package/_modules/themes/callcenterOriginal/src/components/Orders/Appointments/EventComponent.js +46 -0
  22. package/_modules/themes/callcenterOriginal/src/components/Orders/Appointments/index.js +141 -0
  23. package/_modules/themes/callcenterOriginal/src/components/Orders/Appointments/styles.js +61 -0
  24. package/_modules/themes/callcenterOriginal/src/components/Orders/BusinessesSelector/index.js +23 -3
  25. package/_modules/themes/callcenterOriginal/src/components/Orders/CompanySelector/index.js +259 -0
  26. package/_modules/themes/callcenterOriginal/src/components/Orders/CompanySelector/styles.js +86 -0
  27. package/_modules/themes/callcenterOriginal/src/components/Orders/CountryFilter/index.js +20 -7
  28. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardForm/index.js +96 -0
  29. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardForm/styles.js +35 -0
  30. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardFormCustom/cardUtils.js +102 -0
  31. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardFormCustom/index.js +148 -0
  32. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardFormCustom/styles.js +16 -0
  33. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CartBill/index.js +275 -0
  34. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CartBill/styles.js +23 -0
  35. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Checkout/index.js +498 -0
  36. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Checkout/styles.js +31 -0
  37. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CouponControl/index.js +100 -0
  38. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CouponControl/styles.js +17 -0
  39. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CustomOrderDetails/index.js +139 -0
  40. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CustomOrderDetails/styles.js +17 -0
  41. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/DriverTips/index.js +101 -0
  42. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/DriverTips/styles.js +37 -0
  43. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Map/index.js +131 -0
  44. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Map/styles.js +12 -0
  45. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCard/index.js +83 -0
  46. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCash/index.js +81 -0
  47. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCash/styles.js +23 -0
  48. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionPaypal/index.js +45 -0
  49. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionPaypal/styles.js +12 -0
  50. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionSquare/index.js +112 -0
  51. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionSquare/styles.js +21 -0
  52. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionStripe/index.js +259 -0
  53. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionStripe/styles.js +66 -0
  54. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionWallet/index.js +173 -0
  55. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionWallet/styles.js +26 -0
  56. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptions/index.js +400 -0
  57. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptions/styles.js +40 -0
  58. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductForm/index.js +613 -0
  59. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductForm/styles.js +109 -0
  60. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductIngredient/index.js +39 -0
  61. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductIngredient/styles.js +23 -0
  62. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOption/index.js +51 -0
  63. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOption/styles.js +29 -0
  64. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOptionSubOption/index.js +148 -0
  65. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOptionSubOption/styles.js +79 -0
  66. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectBusinesses/index.js +82 -0
  67. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectBusinesses/styles.js +21 -0
  68. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectCustomer/index.js +190 -0
  69. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectCustomer/styles.js +68 -0
  70. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectProducts/index.js +234 -0
  71. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectProducts/styles.js +54 -0
  72. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SingleProductCard/index.js +99 -0
  73. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SingleProductCard/styles.js +131 -0
  74. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeElementsForm/index.js +73 -0
  75. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeElementsForm/styles.js +17 -0
  76. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeMethodForm/index.js +124 -0
  77. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeMethodForm/styles.js +12 -0
  78. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeRedirectForm/index.js +83 -0
  79. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeRedirectForm/styles.js +21 -0
  80. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/TaxInformation/index.js +48 -0
  81. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/TaxInformation/styles.js +14 -0
  82. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/index.js +59 -0
  83. package/_modules/themes/callcenterOriginal/src/components/Orders/CurrencyFilter/index.js +20 -7
  84. package/_modules/themes/callcenterOriginal/src/components/Orders/DateTypeSelector/index.js +2 -2
  85. package/_modules/themes/callcenterOriginal/src/components/Orders/DeliveriesLocation/index.js +5 -4
  86. package/_modules/themes/callcenterOriginal/src/components/Orders/DeliveriesManager/index.js +5 -3
  87. package/_modules/themes/callcenterOriginal/src/components/Orders/DeliveryDashboard/index.js +2 -1
  88. package/_modules/themes/callcenterOriginal/src/components/Orders/DeliveryDashboard/styles.js +1 -1
  89. package/_modules/themes/callcenterOriginal/src/components/Orders/DeliveryTypeSelector/index.js +36 -8
  90. package/_modules/themes/callcenterOriginal/src/components/Orders/DriverSelector/index.js +15 -1
  91. package/_modules/themes/callcenterOriginal/src/components/Orders/DriversBusyStatusFilter/styles.js +6 -3
  92. package/_modules/themes/callcenterOriginal/src/components/Orders/DriversDashboard/index.js +8 -9
  93. package/_modules/themes/callcenterOriginal/src/components/Orders/DriversDashboard/styles.js +1 -1
  94. package/_modules/themes/callcenterOriginal/src/components/Orders/DriversGroupTypeSelector/index.js +27 -7
  95. package/_modules/themes/callcenterOriginal/src/components/Orders/DriversList/index.js +21 -10
  96. package/_modules/themes/callcenterOriginal/src/components/Orders/DriversList/styles.js +11 -18
  97. package/_modules/themes/callcenterOriginal/src/components/Orders/DriversManager/index.js +9 -6
  98. package/_modules/themes/callcenterOriginal/src/components/Orders/DriversOnlineOfflineFilter/styles.js +5 -2
  99. package/_modules/themes/callcenterOriginal/src/components/Orders/GiftCardsListing/index.js +144 -0
  100. package/_modules/themes/callcenterOriginal/src/components/Orders/GiftCardsListing/styles.js +57 -0
  101. package/_modules/themes/callcenterOriginal/src/components/Orders/GoogleGpsButton/index.js +37 -0
  102. package/_modules/themes/callcenterOriginal/src/components/Orders/GoogleGpsButton/styles.js +24 -0
  103. package/_modules/themes/callcenterOriginal/src/components/Orders/Logistics/index.js +10 -2
  104. package/_modules/themes/callcenterOriginal/src/components/Orders/Logistics/styles.js +1 -1
  105. package/_modules/themes/callcenterOriginal/src/components/Orders/Messages/index.js +66 -124
  106. package/_modules/themes/callcenterOriginal/src/components/Orders/Messages/styles.js +64 -65
  107. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderBill/RefundToWallet.js +238 -0
  108. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderBill/index.js +62 -37
  109. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderBill/styles.js +41 -3
  110. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderContactInformation/index.js +31 -14
  111. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDashboardSLASetting/index.js +1 -1
  112. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDelete/index.js +25 -57
  113. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDetails/index.js +73 -171
  114. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDetails/styles.js +5 -3
  115. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDetailsHeader/index.js +87 -15
  116. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDetailsHeader/styles.js +12 -4
  117. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderNotification/index.js +48 -3
  118. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderStatusSubFilter/styles.js +1 -1
  119. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderToPrint/index.js +6 -5
  120. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderToPrintTicket/index.js +126 -0
  121. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderToPrintTicket/styles.js +30 -0
  122. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersCards/index.js +23 -12
  123. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersCards/styles.js +1 -1
  124. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersContentHeader/index.js +4 -3
  125. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersDashboardControls/index.js +6 -2
  126. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersDashboardControls/styles.js +3 -3
  127. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersDashboardList/index.js +1 -0
  128. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersExportCSV/styles.js +14 -8
  129. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersFilterGroup/index.js +123 -17
  130. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersFilterGroup/styles.js +11 -3
  131. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersLateralBar/index.js +22 -5
  132. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersLateralBar/styles.js +2 -2
  133. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersListing/index.js +10 -4
  134. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersManager/index.js +19 -13
  135. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersManager/styles.js +7 -10
  136. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersTable/index.js +159 -47
  137. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersTable/styles.js +14 -2
  138. package/_modules/themes/callcenterOriginal/src/components/Orders/PaymethodTypeSelector/index.js +25 -4
  139. package/_modules/themes/callcenterOriginal/src/components/Orders/ProductItemAccordion/index.js +16 -12
  140. package/_modules/themes/callcenterOriginal/src/components/Orders/ProductItemAccordion/styles.js +11 -3
  141. package/_modules/themes/callcenterOriginal/src/components/Orders/UserAddForm/index.js +377 -0
  142. package/_modules/themes/callcenterOriginal/src/components/Orders/UserAddForm/styles.js +49 -0
  143. package/_modules/themes/callcenterOriginal/src/components/Orders/UserTypeSelector/index.js +89 -0
  144. package/_modules/themes/callcenterOriginal/src/components/Orders/UserTypeSelector/styles.js +20 -0
  145. package/_modules/themes/callcenterOriginal/src/components/Orders/WebsocketStatus/index.js +119 -0
  146. package/_modules/themes/callcenterOriginal/src/components/Orders/WebsocketStatus/styles.js +65 -0
  147. package/_modules/themes/callcenterOriginal/src/components/Orders/index.js +21 -0
  148. package/_modules/themes/callcenterOriginal/src/components/Shared/AutoScroll/index.js +1 -0
  149. package/_modules/themes/callcenterOriginal/src/components/Shared/CitySelector/index.js +18 -5
  150. package/_modules/themes/callcenterOriginal/src/components/Shared/ColumnAllowSettingPopover/styles.js +1 -1
  151. package/_modules/themes/callcenterOriginal/src/components/Shared/Confirm/index.js +6 -2
  152. package/_modules/themes/callcenterOriginal/src/components/Shared/ConfirmAdmin/index.js +269 -26
  153. package/_modules/themes/callcenterOriginal/src/components/Shared/ConfirmAdmin/styles.js +47 -9
  154. package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertImage/index.js +202 -0
  155. package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertImage/styles.js +36 -0
  156. package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertLink/index.js +75 -0
  157. package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertLink/styles.js +16 -0
  158. package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertVideo/index.js +56 -0
  159. package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertVideo/styles.js +14 -0
  160. package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/index.js +181 -0
  161. package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/styles.js +18 -0
  162. package/_modules/themes/callcenterOriginal/src/components/Shared/ImageCrop/index.js +126 -19
  163. package/_modules/themes/callcenterOriginal/src/components/Shared/ImageCrop/styles.js +11 -3
  164. package/_modules/themes/callcenterOriginal/src/components/Shared/InputPhoneNumber/index.js +7 -4
  165. package/_modules/themes/callcenterOriginal/src/components/Shared/LinkableText/index.js +22 -0
  166. package/_modules/themes/callcenterOriginal/src/components/Shared/Modal/index.js +5 -3
  167. package/_modules/themes/callcenterOriginal/src/components/Shared/Modal/styles.js +1 -1
  168. package/_modules/themes/callcenterOriginal/src/components/Shared/Pagination/styles.js +2 -2
  169. package/_modules/themes/callcenterOriginal/src/components/Shared/ProtectedRoute/index.js +6 -1
  170. package/_modules/themes/callcenterOriginal/src/components/Shared/RangeCalendar/index.js +9 -1
  171. package/_modules/themes/callcenterOriginal/src/components/Shared/Schedule/index.js +15 -2
  172. package/_modules/themes/callcenterOriginal/src/components/Shared/Schedule/styles.js +12 -10
  173. package/_modules/themes/callcenterOriginal/src/components/Shared/SearchBar/index.js +11 -6
  174. package/_modules/themes/callcenterOriginal/src/components/Shared/SearchBar/styles.js +9 -15
  175. package/_modules/themes/callcenterOriginal/src/components/Shared/SideBar/index.js +22 -3
  176. package/_modules/themes/callcenterOriginal/src/components/Shared/SideBar/styles.js +10 -8
  177. package/_modules/themes/callcenterOriginal/src/components/Shared/Tabs/index.js +32 -0
  178. package/_modules/themes/callcenterOriginal/src/components/Shared/index.js +27 -0
  179. package/_modules/themes/callcenterOriginal/src/components/Stores/BusinessSelectHeader/index.js +4 -4
  180. package/_modules/themes/callcenterOriginal/src/styles/Buttons/index.js +116 -74
  181. package/_modules/themes/callcenterOriginal/src/styles/index.js +6 -0
  182. package/_modules/utils/index.js +42 -2
  183. package/package.json +2 -2
  184. package/src/config/currency.js +1010 -0
  185. package/src/themes/callcenterOriginal/src/components/Orders/AddressForm/index.js +592 -0
  186. package/src/themes/callcenterOriginal/src/components/Orders/AddressForm/styles.js +200 -0
  187. package/src/themes/callcenterOriginal/src/components/Orders/AddressList/index.js +327 -0
  188. package/src/themes/callcenterOriginal/src/components/Orders/AddressList/styles.js +198 -0
  189. package/src/themes/callcenterOriginal/src/components/Orders/AllInOne/DriversManager/index.js +137 -0
  190. package/src/themes/callcenterOriginal/src/components/Orders/AllInOne/DriversManager/styles.js +51 -0
  191. package/src/themes/callcenterOriginal/src/components/Orders/AllInOne/index.js +339 -0
  192. package/src/themes/callcenterOriginal/src/components/Orders/AllInOne/styles.js +144 -0
  193. package/src/themes/callcenterOriginal/src/components/Orders/Appointments/CalendarHeader.js +74 -0
  194. package/src/themes/callcenterOriginal/src/components/Orders/Appointments/EventComponent.js +38 -0
  195. package/src/themes/callcenterOriginal/src/components/Orders/Appointments/index.js +145 -0
  196. package/src/themes/callcenterOriginal/src/components/Orders/Appointments/styles.js +196 -0
  197. package/src/themes/callcenterOriginal/src/components/Orders/BusinessesSelector/index.js +37 -24
  198. package/src/themes/callcenterOriginal/src/components/Orders/CompanySelector/index.js +251 -0
  199. package/src/themes/callcenterOriginal/src/components/Orders/CompanySelector/styles.js +142 -0
  200. package/src/themes/callcenterOriginal/src/components/Orders/CountryFilter/index.js +19 -11
  201. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardForm/index.js +135 -0
  202. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardForm/styles.js +135 -0
  203. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardFormCustom/cardUtils.js +111 -0
  204. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardFormCustom/index.js +161 -0
  205. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardFormCustom/styles.js +20 -0
  206. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CartBill/index.js +267 -0
  207. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CartBill/styles.js +67 -0
  208. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Checkout/index.js +519 -0
  209. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Checkout/styles.js +85 -0
  210. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CouponControl/index.js +90 -0
  211. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CouponControl/styles.js +22 -0
  212. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CustomOrderDetails/index.js +132 -0
  213. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CustomOrderDetails/styles.js +28 -0
  214. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/DriverTips/index.js +113 -0
  215. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/DriverTips/styles.js +91 -0
  216. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Map/index.js +115 -0
  217. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Map/styles.js +10 -0
  218. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCard/index.js +70 -0
  219. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCash/index.js +83 -0
  220. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCash/styles.js +50 -0
  221. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionPaypal/index.js +43 -0
  222. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionPaypal/styles.js +5 -0
  223. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionSquare/index.js +105 -0
  224. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionSquare/styles.js +27 -0
  225. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionStripe/index.js +261 -0
  226. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionStripe/styles.js +159 -0
  227. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionWallet/index.js +172 -0
  228. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionWallet/styles.js +33 -0
  229. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptions/index.js +440 -0
  230. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptions/styles.js +132 -0
  231. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductForm/index.js +701 -0
  232. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductForm/styles.js +540 -0
  233. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductIngredient/index.js +43 -0
  234. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductIngredient/styles.js +29 -0
  235. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOption/index.js +58 -0
  236. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOption/styles.js +76 -0
  237. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOptionSubOption/index.js +182 -0
  238. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOptionSubOption/styles.js +195 -0
  239. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectBusinesses/index.js +67 -0
  240. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectBusinesses/styles.js +63 -0
  241. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectCustomer/index.js +240 -0
  242. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectCustomer/styles.js +235 -0
  243. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectProducts/index.js +237 -0
  244. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectProducts/styles.js +161 -0
  245. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SingleProductCard/index.js +105 -0
  246. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SingleProductCard/styles.js +314 -0
  247. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeElementsForm/index.js +71 -0
  248. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeElementsForm/styles.js +13 -0
  249. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeMethodForm/index.js +90 -0
  250. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeMethodForm/styles.js +9 -0
  251. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeRedirectForm/index.js +96 -0
  252. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeRedirectForm/styles.js +73 -0
  253. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/TaxInformation/index.js +69 -0
  254. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/TaxInformation/styles.js +25 -0
  255. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/index.js +45 -0
  256. package/src/themes/callcenterOriginal/src/components/Orders/CurrencyFilter/index.js +17 -9
  257. package/src/themes/callcenterOriginal/src/components/Orders/DateTypeSelector/index.js +2 -2
  258. package/src/themes/callcenterOriginal/src/components/Orders/DeliveriesLocation/index.js +5 -5
  259. package/src/themes/callcenterOriginal/src/components/Orders/DeliveriesManager/index.js +3 -3
  260. package/src/themes/callcenterOriginal/src/components/Orders/DeliveryDashboard/index.js +1 -0
  261. package/src/themes/callcenterOriginal/src/components/Orders/DeliveryDashboard/styles.js +1 -1
  262. package/src/themes/callcenterOriginal/src/components/Orders/DeliveryTypeSelector/index.js +30 -7
  263. package/src/themes/callcenterOriginal/src/components/Orders/DriverSelector/index.js +10 -0
  264. package/src/themes/callcenterOriginal/src/components/Orders/DriversBusyStatusFilter/styles.js +7 -1
  265. package/src/themes/callcenterOriginal/src/components/Orders/DriversDashboard/index.js +4 -4
  266. package/src/themes/callcenterOriginal/src/components/Orders/DriversDashboard/styles.js +1 -1
  267. package/src/themes/callcenterOriginal/src/components/Orders/DriversGroupTypeSelector/index.js +23 -9
  268. package/src/themes/callcenterOriginal/src/components/Orders/DriversList/index.js +16 -8
  269. package/src/themes/callcenterOriginal/src/components/Orders/DriversList/styles.js +2 -11
  270. package/src/themes/callcenterOriginal/src/components/Orders/DriversManager/index.js +6 -5
  271. package/src/themes/callcenterOriginal/src/components/Orders/DriversOnlineOfflineFilter/styles.js +8 -1
  272. package/src/themes/callcenterOriginal/src/components/Orders/GiftCardsListing/index.js +178 -0
  273. package/src/themes/callcenterOriginal/src/components/Orders/GiftCardsListing/styles.js +116 -0
  274. package/src/themes/callcenterOriginal/src/components/Orders/GoogleGpsButton/index.js +39 -0
  275. package/src/themes/callcenterOriginal/src/components/Orders/GoogleGpsButton/styles.js +29 -0
  276. package/src/themes/callcenterOriginal/src/components/Orders/Logistics/index.js +10 -1
  277. package/src/themes/callcenterOriginal/src/components/Orders/Logistics/styles.js +6 -0
  278. package/src/themes/callcenterOriginal/src/components/Orders/Messages/index.js +191 -311
  279. package/src/themes/callcenterOriginal/src/components/Orders/Messages/styles.js +24 -4
  280. package/src/themes/callcenterOriginal/src/components/Orders/OrderBill/RefundToWallet.js +221 -0
  281. package/src/themes/callcenterOriginal/src/components/Orders/OrderBill/index.js +76 -35
  282. package/src/themes/callcenterOriginal/src/components/Orders/OrderBill/styles.js +104 -0
  283. package/src/themes/callcenterOriginal/src/components/Orders/OrderContactInformation/index.js +40 -17
  284. package/src/themes/callcenterOriginal/src/components/Orders/OrderDashboardSLASetting/index.js +1 -1
  285. package/src/themes/callcenterOriginal/src/components/Orders/OrderDelete/index.js +17 -71
  286. package/src/themes/callcenterOriginal/src/components/Orders/OrderDetails/index.js +75 -72
  287. package/src/themes/callcenterOriginal/src/components/Orders/OrderDetails/styles.js +4 -0
  288. package/src/themes/callcenterOriginal/src/components/Orders/OrderDetailsHeader/index.js +101 -22
  289. package/src/themes/callcenterOriginal/src/components/Orders/OrderDetailsHeader/styles.js +27 -0
  290. package/src/themes/callcenterOriginal/src/components/Orders/OrderNotification/index.js +28 -5
  291. package/src/themes/callcenterOriginal/src/components/Orders/OrderStatusSubFilter/styles.js +1 -1
  292. package/src/themes/callcenterOriginal/src/components/Orders/OrderToPrint/index.js +4 -3
  293. package/src/themes/callcenterOriginal/src/components/Orders/OrderToPrintTicket/index.js +251 -0
  294. package/src/themes/callcenterOriginal/src/components/Orders/OrderToPrintTicket/styles.js +68 -0
  295. package/src/themes/callcenterOriginal/src/components/Orders/OrdersCards/index.js +18 -9
  296. package/src/themes/callcenterOriginal/src/components/Orders/OrdersCards/styles.js +3 -1
  297. package/src/themes/callcenterOriginal/src/components/Orders/OrdersContentHeader/index.js +4 -1
  298. package/src/themes/callcenterOriginal/src/components/Orders/OrdersDashboardControls/index.js +4 -1
  299. package/src/themes/callcenterOriginal/src/components/Orders/OrdersDashboardControls/styles.js +13 -11
  300. package/src/themes/callcenterOriginal/src/components/Orders/OrdersDashboardList/index.js +1 -0
  301. package/src/themes/callcenterOriginal/src/components/Orders/OrdersExportCSV/styles.js +16 -0
  302. package/src/themes/callcenterOriginal/src/components/Orders/OrdersFilterGroup/index.js +120 -13
  303. package/src/themes/callcenterOriginal/src/components/Orders/OrdersFilterGroup/styles.js +26 -0
  304. package/src/themes/callcenterOriginal/src/components/Orders/OrdersLateralBar/index.js +20 -2
  305. package/src/themes/callcenterOriginal/src/components/Orders/OrdersLateralBar/styles.js +3 -1
  306. package/src/themes/callcenterOriginal/src/components/Orders/OrdersListing/index.js +7 -1
  307. package/src/themes/callcenterOriginal/src/components/Orders/OrdersManager/index.js +15 -9
  308. package/src/themes/callcenterOriginal/src/components/Orders/OrdersManager/styles.js +2 -15
  309. package/src/themes/callcenterOriginal/src/components/Orders/OrdersTable/index.js +270 -130
  310. package/src/themes/callcenterOriginal/src/components/Orders/OrdersTable/styles.js +14 -1
  311. package/src/themes/callcenterOriginal/src/components/Orders/PaymethodTypeSelector/index.js +22 -9
  312. package/src/themes/callcenterOriginal/src/components/Orders/ProductItemAccordion/index.js +63 -45
  313. package/src/themes/callcenterOriginal/src/components/Orders/ProductItemAccordion/styles.js +25 -0
  314. package/src/themes/callcenterOriginal/src/components/Orders/UserAddForm/index.js +383 -0
  315. package/src/themes/callcenterOriginal/src/components/Orders/UserAddForm/styles.js +205 -0
  316. package/src/themes/callcenterOriginal/src/components/Orders/UserTypeSelector/index.js +76 -0
  317. package/src/themes/callcenterOriginal/src/components/Orders/UserTypeSelector/styles.js +11 -0
  318. package/src/themes/callcenterOriginal/src/components/Orders/WebsocketStatus/index.js +138 -0
  319. package/src/themes/callcenterOriginal/src/components/Orders/WebsocketStatus/styles.js +171 -0
  320. package/src/themes/callcenterOriginal/src/components/Orders/index.js +7 -0
  321. package/src/themes/callcenterOriginal/src/components/Shared/AutoScroll/index.js +1 -0
  322. package/src/themes/callcenterOriginal/src/components/Shared/CitySelector/index.js +18 -9
  323. package/src/themes/callcenterOriginal/src/components/Shared/ColumnAllowSettingPopover/styles.js +1 -0
  324. package/src/themes/callcenterOriginal/src/components/Shared/Confirm/index.js +11 -1
  325. package/src/themes/callcenterOriginal/src/components/Shared/ConfirmAdmin/index.js +303 -36
  326. package/src/themes/callcenterOriginal/src/components/Shared/ConfirmAdmin/styles.js +95 -19
  327. package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertImage/index.js +172 -0
  328. package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertImage/styles.js +136 -0
  329. package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertLink/index.js +73 -0
  330. package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertLink/styles.js +34 -0
  331. package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertVideo/index.js +51 -0
  332. package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertVideo/styles.js +23 -0
  333. package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/index.js +172 -0
  334. package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/styles.js +30 -0
  335. package/src/themes/callcenterOriginal/src/components/Shared/ImageCrop/index.js +77 -18
  336. package/src/themes/callcenterOriginal/src/components/Shared/ImageCrop/styles.js +18 -0
  337. package/src/themes/callcenterOriginal/src/components/Shared/InputPhoneNumber/index.js +6 -3
  338. package/src/themes/callcenterOriginal/src/components/Shared/LinkableText/index.js +17 -0
  339. package/src/themes/callcenterOriginal/src/components/Shared/Modal/index.js +7 -2
  340. package/src/themes/callcenterOriginal/src/components/Shared/Modal/styles.js +1 -1
  341. package/src/themes/callcenterOriginal/src/components/Shared/Pagination/styles.js +2 -2
  342. package/src/themes/callcenterOriginal/src/components/Shared/ProtectedRoute/index.js +7 -1
  343. package/src/themes/callcenterOriginal/src/components/Shared/RangeCalendar/index.js +7 -1
  344. package/src/themes/callcenterOriginal/src/components/Shared/Schedule/index.js +19 -4
  345. package/src/themes/callcenterOriginal/src/components/Shared/Schedule/styles.js +47 -12
  346. package/src/themes/callcenterOriginal/src/components/Shared/SearchBar/index.js +11 -4
  347. package/src/themes/callcenterOriginal/src/components/Shared/SearchBar/styles.js +19 -32
  348. package/src/themes/callcenterOriginal/src/components/Shared/SideBar/index.js +30 -10
  349. package/src/themes/callcenterOriginal/src/components/Shared/SideBar/styles.js +13 -14
  350. package/src/themes/callcenterOriginal/src/components/Shared/Tabs/index.js +28 -0
  351. package/src/themes/callcenterOriginal/src/components/Shared/index.js +8 -1
  352. package/src/themes/callcenterOriginal/src/components/Stores/BusinessSelectHeader/index.js +1 -1
  353. package/src/themes/callcenterOriginal/src/styles/Buttons/index.js +75 -48
  354. package/src/themes/callcenterOriginal/src/styles/index.js +2 -1
  355. package/src/utils/index.js +36 -1
  356. package/_bundles/ordering-ui.cbc5b3aa15dd7af939b0.js +0 -2
  357. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDelete/styles.js +0 -19
  358. package/src/themes/callcenterOriginal/src/components/Orders/OrderDelete/styles.js +0 -40
  359. /package/_bundles/{7.ordering-ui.cbc5b3aa15dd7af939b0.js.LICENSE.txt → 7.ordering-ui.e9827c5566d8cce0eaa4.js.LICENSE.txt} +0 -0
  360. /package/_bundles/{ordering-ui.cbc5b3aa15dd7af939b0.js.LICENSE.txt → ordering-ui.e9827c5566d8cce0eaa4.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[0],{706:function(t,n,e){"use strict";function i(t,n){var e,i;return"boolean"==typeof(null==n?void 0:n.enabled)?n.enabled:null===(i=null===(e=null==t?void 0:t.__default)||void 0===e?void 0:e.enabled)||void 0===i||i}e.d(n,"a",(function(){return i}))},810:function(t,n,e){"use strict";e.r(n),e.d(n,"LegacyDestination",(function(){return I})),e.d(n,"ajsDestinations",(function(){return z}));var i=e(4),r=e(71),o=e(61),a=e(42),s=e(50),c=e(131),u=e(124),d=e(706),l=e(247),h=e(252),v=e(231),f=e(89),b=e(248),p=e(112),g=e(144);function y(t){return t.toLowerCase().replace(".","").replace(/\s+/g,"-")}function j(t,n){return void 0===n&&(n=!1),n?btoa(t).replace(/=/g,""):void 0}function O(t,n,e,r){return Object(i.b)(this,void 0,void 0,(function(){var o,a,s,c,u,d;return Object(i.d)(this,(function(l){switch(l.label){case 0:o=y(n),a=j(o,r),s=Object(p.b)(),c="".concat(s,"/integrations/").concat(null!=a?a:o,"/").concat(e,"/").concat(null!=a?a:o,".dynamic.js.gz"),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Object(g.a)(c)];case 2:return l.sent(),function(t,n,e){var r,o;try{var a=(null!==(o=null===(r=null===window||void 0===window?void 0:window.performance)||void 0===r?void 0:r.getEntriesByName(t,"resource"))&&void 0!==o?o:[])[0];a&&n.stats.gauge("legacy_destination_time",Math.round(a.duration),Object(i.f)([e],a.duration<100?["cached"]:[],!0))}catch(t){}}(c,t,n),[3,4];case 3:throw u=l.sent(),t.stats.gauge("legacy_destination_time",-1,["plugin:".concat(n),"failed"]),u;case 4:return d=window["".concat(o,"Deps")],[4,Promise.all(d.map((function(t){return Object(g.a)(s+t+".gz")})))];case 5:return l.sent(),window["".concat(o,"Loader")](),[2,window["".concat(o,"Integration")]]}}))}))}var m=e(72),w=function(t,n){var e,i=n.type,r=n.bundlingStatus,o=n.versionSettings,a="unbundled"!==r&&("browser"===i||(null===(e=null==o?void 0:o.componentTypes)||void 0===e?void 0:e.includes("browser")));return!t.startsWith("Segment")&&"Iterable"!==t&&a},_=function(t,n){var e=!1===n.All&&void 0===n[t];return!1===n[t]||e};function k(t,n){return Object(i.b)(this,void 0,void 0,(function(){var e,r=this;return Object(i.d)(this,(function(s){switch(s.label){case 0:return e=[],Object(o.a)()?[2,n]:[4,Object(h.a)((function(){return n.length>0&&Object(o.b)()}),(function(){return Object(i.b)(r,void 0,void 0,(function(){var r,o;return Object(i.d)(this,(function(i){switch(i.label){case 0:return(r=n.pop())?[4,Object(u.a)(r,t)]:[2];case 1:return o=i.sent(),o instanceof a.a||e.push(r),[2]}}))}))}))];case 1:return s.sent(),e.map((function(t){return n.pushWithBackoff(t)})),[2,n]}}))}))}var I=function(){function t(t,n,e,r,o,a){void 0===r&&(r={}),this.options={},this.type="destination",this.middleware=[],this._ready=!1,this._initialized=!1,this.flushing=!1,this.name=t,this.version=n,this.settings=Object(i.a)({},r),this.disableAutoISOConversion=o.disableAutoISOConversion||!1,this.integrationSource=a,this.settings.type&&"browser"===this.settings.type&&delete this.settings.type,this.options=o,this.buffer=o.disableClientPersistence?new v.b(4,[]):new f.a(4,"".concat(e,":dest-").concat(t)),this.scheduleFlush()}return t.prototype.isLoaded=function(){return this._ready},t.prototype.ready=function(){var t;return null!==(t=this.onReady)&&void 0!==t?t:Promise.resolve()},t.prototype.load=function(t,n){var e;return Object(i.b)(this,void 0,void 0,(function(){var r,o,a=this;return Object(i.d)(this,(function(i){switch(i.label){case 0:return this._ready||void 0!==this.onReady?[2]:null===(e=this.integrationSource)||void 0===e?[3,1]:(o=e,[3,3]);case 1:return[4,O(t,this.name,this.version,this.options.obfuscate)];case 2:o=i.sent(),i.label=3;case 3:r=o,this.integration=function(t,n,e){var i;"Integration"in t?(t({user:function(){return e.user()},addIntegration:function(){}}),i=t.Integration):i=t;var r=new i(n);return r.analytics=e,r}(r,this.settings,n),this.onReady=new Promise((function(t){a.integration.once("ready",(function(){a._ready=!0,t(!0)}))})),this.onInitialize=new Promise((function(t){a.integration.on("initialize",(function(){a._initialized=!0,t(!0)}))}));try{t.stats.increment("analytics_js.integration.invoke",1,["method:initialize","integration_name:".concat(this.name)]),this.integration.initialize()}catch(n){throw t.stats.increment("analytics_js.integration.invoke.error",1,["method:initialize","integration_name:".concat(this.name)]),n}return[2]}}))}))},t.prototype.unload=function(t,n){return function(t,n,e){return Object(i.b)(this,void 0,void 0,(function(){var r,o,a,s;return Object(i.d)(this,(function(i){return r=Object(p.b)(),o=y(t),a=j(t,e),s="".concat(r,"/integrations/").concat(null!=a?a:o,"/").concat(n,"/").concat(null!=a?a:o,".dynamic.js.gz"),[2,Object(g.b)(s)]}))}))}(this.name,this.version,this.options.obfuscate)},t.prototype.addMiddleware=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this.middleware=(t=this.middleware).concat.apply(t,n)},t.prototype.shouldBuffer=function(t){return"page"!==t.event.type&&(Object(o.a)()||!1===this._ready||!1===this._initialized)},t.prototype.send=function(t,n,e){var r,o;return Object(i.b)(this,void 0,void 0,(function(){var a,c,u,l,h,v;return Object(i.d)(this,(function(f){switch(f.label){case 0:if(this.shouldBuffer(t))return this.buffer.push(t),this.scheduleFlush(),[2,t];if(a=null===(o=null===(r=this.options)||void 0===r?void 0:r.plan)||void 0===o?void 0:o.track,c=t.event.event,a&&c&&"Segment.io"!==this.name){if(u=a[c],!Object(d.a)(a,u))return t.updateEvent("integrations",Object(i.a)(Object(i.a)({},t.event.integrations),{All:!1,"Segment.io":!0})),t.cancel(new s.a({retry:!1,reason:"Event ".concat(c," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,t];if(t.updateEvent("integrations",Object(i.a)(Object(i.a)({},t.event.integrations),null==u?void 0:u.integrations)),(null==u?void 0:u.enabled)&&!1===(null==u?void 0:u.integrations[this.name]))return t.cancel(new s.a({retry:!1,reason:"Event ".concat(c," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,t]}return[4,Object(b.applyDestinationMiddleware)(this.name,t.event,this.middleware)];case 1:if(null===(l=f.sent()))return[2,t];h=new n(l,{traverse:!this.disableAutoISOConversion}),t.stats.increment("analytics_js.integration.invoke",1,["method:".concat(e),"integration_name:".concat(this.name)]),f.label=2;case 2:return f.trys.push([2,5,,6]),this.integration?[4,this.integration.invoke.call(this.integration,e,h)]:[3,4];case 3:f.sent(),f.label=4;case 4:return[3,6];case 5:throw v=f.sent(),t.stats.increment("analytics_js.integration.invoke.error",1,["method:".concat(e),"integration_name:".concat(this.name)]),v;case 6:return[2,t]}}))}))},t.prototype.track=function(t){return Object(i.b)(this,void 0,void 0,(function(){return Object(i.d)(this,(function(n){return[2,this.send(t,r.Track,"track")]}))}))},t.prototype.page=function(t){var n;return Object(i.b)(this,void 0,void 0,(function(){var e=this;return Object(i.d)(this,(function(i){return(null===(n=this.integration)||void 0===n?void 0:n._assumesPageview)&&!this._initialized&&this.integration.initialize(),[2,this.onInitialize.then((function(){return e.send(t,r.Page,"page")}))]}))}))},t.prototype.identify=function(t){return Object(i.b)(this,void 0,void 0,(function(){return Object(i.d)(this,(function(n){return[2,this.send(t,r.Identify,"identify")]}))}))},t.prototype.alias=function(t){return Object(i.b)(this,void 0,void 0,(function(){return Object(i.d)(this,(function(n){return[2,this.send(t,r.Alias,"alias")]}))}))},t.prototype.group=function(t){return Object(i.b)(this,void 0,void 0,(function(){return Object(i.d)(this,(function(n){return[2,this.send(t,r.Group,"group")]}))}))},t.prototype.scheduleFlush=function(){var t=this;this.flushing||setTimeout((function(){return Object(i.b)(t,void 0,void 0,(function(){var t;return Object(i.d)(this,(function(n){switch(n.label){case 0:return this.flushing=!0,t=this,[4,k(this,this.buffer)];case 1:return t.buffer=n.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}}))}))}),5e3*Math.random())},t}();function z(t,n,e,r,o,a){var s,u;if(void 0===e&&(e={}),void 0===r&&(r={}),Object(c.b)())return[];n.plan&&((r=null!=r?r:{}).plan=n.plan);var d=null!==(u=null===(s=n.middlewareSettings)||void 0===s?void 0:s.routingRules)&&void 0!==u?u:[],h=n.integrations,v=r.integrations,f=Object(l.a)(n,null!=r?r:{}),b=null==a?void 0:a.reduce((function(t,n){var e;return Object(i.a)(Object(i.a)({},t),((e={})[function(t){return("Integration"in t?t.Integration:t).prototype.name}(n)]=n,e))}),{}),p=new Set(Object(i.f)(Object(i.f)([],Object.keys(h).filter((function(t){return w(t,h[t])})),!0),Object.keys(b||{}).filter((function(t){return Object(m.d)(h[t])||Object(m.d)(null==v?void 0:v[t])})),!0));return Array.from(p).filter((function(t){return!_(t,e)})).map((function(n){var e=function(t){var n,e,i,r;return null!==(r=null!==(e=null===(n=null==t?void 0:t.versionSettings)||void 0===n?void 0:n.override)&&void 0!==e?e:null===(i=null==t?void 0:t.versionSettings)||void 0===i?void 0:i.version)&&void 0!==r?r:"latest"}(h[n]),i=new I(n,e,t,f[n],r,null==b?void 0:b[n]);return d.filter((function(t){return t.destinationName===n})).length>0&&o&&i.addMiddleware(o),i}))}}}]);
1
+ (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[0],{711:function(t,n,e){"use strict";function i(t,n){var e,i;return"boolean"==typeof(null==n?void 0:n.enabled)?n.enabled:null===(i=null===(e=null==t?void 0:t.__default)||void 0===e?void 0:e.enabled)||void 0===i||i}e.d(n,"a",(function(){return i}))},815:function(t,n,e){"use strict";e.r(n),e.d(n,"LegacyDestination",(function(){return I})),e.d(n,"ajsDestinations",(function(){return z}));var i=e(4),r=e(71),o=e(61),a=e(42),s=e(51),c=e(131),u=e(124),d=e(711),l=e(247),h=e(252),v=e(231),f=e(89),b=e(248),p=e(112),g=e(144);function y(t){return t.toLowerCase().replace(".","").replace(/\s+/g,"-")}function j(t,n){return void 0===n&&(n=!1),n?btoa(t).replace(/=/g,""):void 0}function O(t,n,e,r){return Object(i.b)(this,void 0,void 0,(function(){var o,a,s,c,u,d;return Object(i.d)(this,(function(l){switch(l.label){case 0:o=y(n),a=j(o,r),s=Object(p.b)(),c="".concat(s,"/integrations/").concat(null!=a?a:o,"/").concat(e,"/").concat(null!=a?a:o,".dynamic.js.gz"),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Object(g.a)(c)];case 2:return l.sent(),function(t,n,e){var r,o;try{var a=(null!==(o=null===(r=null===window||void 0===window?void 0:window.performance)||void 0===r?void 0:r.getEntriesByName(t,"resource"))&&void 0!==o?o:[])[0];a&&n.stats.gauge("legacy_destination_time",Math.round(a.duration),Object(i.f)([e],a.duration<100?["cached"]:[],!0))}catch(t){}}(c,t,n),[3,4];case 3:throw u=l.sent(),t.stats.gauge("legacy_destination_time",-1,["plugin:".concat(n),"failed"]),u;case 4:return d=window["".concat(o,"Deps")],[4,Promise.all(d.map((function(t){return Object(g.a)(s+t+".gz")})))];case 5:return l.sent(),window["".concat(o,"Loader")](),[2,window["".concat(o,"Integration")]]}}))}))}var m=e(72),w=function(t,n){var e,i=n.type,r=n.bundlingStatus,o=n.versionSettings,a="unbundled"!==r&&("browser"===i||(null===(e=null==o?void 0:o.componentTypes)||void 0===e?void 0:e.includes("browser")));return!t.startsWith("Segment")&&"Iterable"!==t&&a},_=function(t,n){var e=!1===n.All&&void 0===n[t];return!1===n[t]||e};function k(t,n){return Object(i.b)(this,void 0,void 0,(function(){var e,r=this;return Object(i.d)(this,(function(s){switch(s.label){case 0:return e=[],Object(o.a)()?[2,n]:[4,Object(h.a)((function(){return n.length>0&&Object(o.b)()}),(function(){return Object(i.b)(r,void 0,void 0,(function(){var r,o;return Object(i.d)(this,(function(i){switch(i.label){case 0:return(r=n.pop())?[4,Object(u.a)(r,t)]:[2];case 1:return o=i.sent(),o instanceof a.a||e.push(r),[2]}}))}))}))];case 1:return s.sent(),e.map((function(t){return n.pushWithBackoff(t)})),[2,n]}}))}))}var I=function(){function t(t,n,e,r,o,a){void 0===r&&(r={}),this.options={},this.type="destination",this.middleware=[],this._ready=!1,this._initialized=!1,this.flushing=!1,this.name=t,this.version=n,this.settings=Object(i.a)({},r),this.disableAutoISOConversion=o.disableAutoISOConversion||!1,this.integrationSource=a,this.settings.type&&"browser"===this.settings.type&&delete this.settings.type,this.options=o,this.buffer=o.disableClientPersistence?new v.b(4,[]):new f.a(4,"".concat(e,":dest-").concat(t)),this.scheduleFlush()}return t.prototype.isLoaded=function(){return this._ready},t.prototype.ready=function(){var t;return null!==(t=this.onReady)&&void 0!==t?t:Promise.resolve()},t.prototype.load=function(t,n){var e;return Object(i.b)(this,void 0,void 0,(function(){var r,o,a=this;return Object(i.d)(this,(function(i){switch(i.label){case 0:return this._ready||void 0!==this.onReady?[2]:null===(e=this.integrationSource)||void 0===e?[3,1]:(o=e,[3,3]);case 1:return[4,O(t,this.name,this.version,this.options.obfuscate)];case 2:o=i.sent(),i.label=3;case 3:r=o,this.integration=function(t,n,e){var i;"Integration"in t?(t({user:function(){return e.user()},addIntegration:function(){}}),i=t.Integration):i=t;var r=new i(n);return r.analytics=e,r}(r,this.settings,n),this.onReady=new Promise((function(t){a.integration.once("ready",(function(){a._ready=!0,t(!0)}))})),this.onInitialize=new Promise((function(t){a.integration.on("initialize",(function(){a._initialized=!0,t(!0)}))}));try{t.stats.increment("analytics_js.integration.invoke",1,["method:initialize","integration_name:".concat(this.name)]),this.integration.initialize()}catch(n){throw t.stats.increment("analytics_js.integration.invoke.error",1,["method:initialize","integration_name:".concat(this.name)]),n}return[2]}}))}))},t.prototype.unload=function(t,n){return function(t,n,e){return Object(i.b)(this,void 0,void 0,(function(){var r,o,a,s;return Object(i.d)(this,(function(i){return r=Object(p.b)(),o=y(t),a=j(t,e),s="".concat(r,"/integrations/").concat(null!=a?a:o,"/").concat(n,"/").concat(null!=a?a:o,".dynamic.js.gz"),[2,Object(g.b)(s)]}))}))}(this.name,this.version,this.options.obfuscate)},t.prototype.addMiddleware=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this.middleware=(t=this.middleware).concat.apply(t,n)},t.prototype.shouldBuffer=function(t){return"page"!==t.event.type&&(Object(o.a)()||!1===this._ready||!1===this._initialized)},t.prototype.send=function(t,n,e){var r,o;return Object(i.b)(this,void 0,void 0,(function(){var a,c,u,l,h,v;return Object(i.d)(this,(function(f){switch(f.label){case 0:if(this.shouldBuffer(t))return this.buffer.push(t),this.scheduleFlush(),[2,t];if(a=null===(o=null===(r=this.options)||void 0===r?void 0:r.plan)||void 0===o?void 0:o.track,c=t.event.event,a&&c&&"Segment.io"!==this.name){if(u=a[c],!Object(d.a)(a,u))return t.updateEvent("integrations",Object(i.a)(Object(i.a)({},t.event.integrations),{All:!1,"Segment.io":!0})),t.cancel(new s.a({retry:!1,reason:"Event ".concat(c," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,t];if(t.updateEvent("integrations",Object(i.a)(Object(i.a)({},t.event.integrations),null==u?void 0:u.integrations)),(null==u?void 0:u.enabled)&&!1===(null==u?void 0:u.integrations[this.name]))return t.cancel(new s.a({retry:!1,reason:"Event ".concat(c," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,t]}return[4,Object(b.applyDestinationMiddleware)(this.name,t.event,this.middleware)];case 1:if(null===(l=f.sent()))return[2,t];h=new n(l,{traverse:!this.disableAutoISOConversion}),t.stats.increment("analytics_js.integration.invoke",1,["method:".concat(e),"integration_name:".concat(this.name)]),f.label=2;case 2:return f.trys.push([2,5,,6]),this.integration?[4,this.integration.invoke.call(this.integration,e,h)]:[3,4];case 3:f.sent(),f.label=4;case 4:return[3,6];case 5:throw v=f.sent(),t.stats.increment("analytics_js.integration.invoke.error",1,["method:".concat(e),"integration_name:".concat(this.name)]),v;case 6:return[2,t]}}))}))},t.prototype.track=function(t){return Object(i.b)(this,void 0,void 0,(function(){return Object(i.d)(this,(function(n){return[2,this.send(t,r.Track,"track")]}))}))},t.prototype.page=function(t){var n;return Object(i.b)(this,void 0,void 0,(function(){var e=this;return Object(i.d)(this,(function(i){return(null===(n=this.integration)||void 0===n?void 0:n._assumesPageview)&&!this._initialized&&this.integration.initialize(),[2,this.onInitialize.then((function(){return e.send(t,r.Page,"page")}))]}))}))},t.prototype.identify=function(t){return Object(i.b)(this,void 0,void 0,(function(){return Object(i.d)(this,(function(n){return[2,this.send(t,r.Identify,"identify")]}))}))},t.prototype.alias=function(t){return Object(i.b)(this,void 0,void 0,(function(){return Object(i.d)(this,(function(n){return[2,this.send(t,r.Alias,"alias")]}))}))},t.prototype.group=function(t){return Object(i.b)(this,void 0,void 0,(function(){return Object(i.d)(this,(function(n){return[2,this.send(t,r.Group,"group")]}))}))},t.prototype.scheduleFlush=function(){var t=this;this.flushing||setTimeout((function(){return Object(i.b)(t,void 0,void 0,(function(){var t;return Object(i.d)(this,(function(n){switch(n.label){case 0:return this.flushing=!0,t=this,[4,k(this,this.buffer)];case 1:return t.buffer=n.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}}))}))}),5e3*Math.random())},t}();function z(t,n,e,r,o,a){var s,u;if(void 0===e&&(e={}),void 0===r&&(r={}),Object(c.b)())return[];n.plan&&((r=null!=r?r:{}).plan=n.plan);var d=null!==(u=null===(s=n.middlewareSettings)||void 0===s?void 0:s.routingRules)&&void 0!==u?u:[],h=n.integrations,v=r.integrations,f=Object(l.a)(n,null!=r?r:{}),b=null==a?void 0:a.reduce((function(t,n){var e;return Object(i.a)(Object(i.a)({},t),((e={})[function(t){return("Integration"in t?t.Integration:t).prototype.name}(n)]=n,e))}),{}),p=new Set(Object(i.f)(Object(i.f)([],Object.keys(h).filter((function(t){return w(t,h[t])})),!0),Object.keys(b||{}).filter((function(t){return Object(m.d)(h[t])||Object(m.d)(null==v?void 0:v[t])})),!0));return Array.from(p).filter((function(t){return!_(t,e)})).map((function(n){var e=function(t){var n,e,i,r;return null!==(r=null!==(e=null===(n=null==t?void 0:t.versionSettings)||void 0===n?void 0:n.override)&&void 0!==e?e:null===(i=null==t?void 0:t.versionSettings)||void 0===i?void 0:i.version)&&void 0!==r?r:"latest"}(h[n]),i=new I(n,e,t,f[n],r,null==b?void 0:b[n]);return d.filter((function(t){return t.destinationName===n})).length>0&&o&&i.addMiddleware(o),i}))}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[1],{804:function(t,n,e){"use strict";e.r(n),e.d(n,"link",(function(){return o})),e.d(n,"form",(function(){return i}));var r=e(407);function o(t,n,e,o){var i=this;return t?((t instanceof Element?[t]:"toArray"in t?t.toArray():t).forEach((function(t){t.addEventListener("click",(function(u){var c,a,s=n instanceof Function?n(t):n,f=e instanceof Function?e(t):e,l=t.getAttribute("href")||t.getAttributeNS("http://www.w3.org/1999/xlink","href")||t.getAttribute("xlink:href")||(null===(c=t.getElementsByTagName("a")[0])||void 0===c?void 0:c.getAttribute("href")),h=Object(r.b)(i.track(s,f,null!=o?o:{}),null!==(a=i.settings.timeout)&&void 0!==a?a:500);(function(t,n){return!("_blank"!==t.target||!n)})(t,l)||function(t){var n=t;return!!(n.ctrlKey||n.shiftKey||n.metaKey||n.button&&1==n.button)}(u)||l&&(u.preventDefault?u.preventDefault():u.returnValue=!1,h.catch(console.error).then((function(){window.location.href=l})).catch(console.error))}),!1)})),this):this}function i(t,n,e,o){var i=this;return t?(t instanceof HTMLFormElement&&(t=[t]),t.forEach((function(t){if(!(t instanceof Element))throw new TypeError("Must pass HTMLElement to trackForm/trackSubmit.");var u=function(u){var c;u.preventDefault?u.preventDefault():u.returnValue=!1;var a=n instanceof Function?n(t):n,s=e instanceof Function?e(t):e;Object(r.b)(i.track(a,s,null!=o?o:{}),null!==(c=i.settings.timeout)&&void 0!==c?c:500).catch(console.error).then((function(){t.submit()})).catch(console.error)},c=window.jQuery||window.Zepto;c?c(t).submit(u):t.addEventListener("submit",u,!1)})),this):this}}}]);
1
+ (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[1],{809:function(t,n,e){"use strict";e.r(n),e.d(n,"link",(function(){return o})),e.d(n,"form",(function(){return i}));var r=e(407);function o(t,n,e,o){var i=this;return t?((t instanceof Element?[t]:"toArray"in t?t.toArray():t).forEach((function(t){t.addEventListener("click",(function(u){var c,a,s=n instanceof Function?n(t):n,f=e instanceof Function?e(t):e,l=t.getAttribute("href")||t.getAttributeNS("http://www.w3.org/1999/xlink","href")||t.getAttribute("xlink:href")||(null===(c=t.getElementsByTagName("a")[0])||void 0===c?void 0:c.getAttribute("href")),h=Object(r.b)(i.track(s,f,null!=o?o:{}),null!==(a=i.settings.timeout)&&void 0!==a?a:500);(function(t,n){return!("_blank"!==t.target||!n)})(t,l)||function(t){var n=t;return!!(n.ctrlKey||n.shiftKey||n.metaKey||n.button&&1==n.button)}(u)||l&&(u.preventDefault?u.preventDefault():u.returnValue=!1,h.catch(console.error).then((function(){window.location.href=l})).catch(console.error))}),!1)})),this):this}function i(t,n,e,o){var i=this;return t?(t instanceof HTMLFormElement&&(t=[t]),t.forEach((function(t){if(!(t instanceof Element))throw new TypeError("Must pass HTMLElement to trackForm/trackSubmit.");var u=function(u){var c;u.preventDefault?u.preventDefault():u.returnValue=!1;var a=n instanceof Function?n(t):n,s=e instanceof Function?e(t):e;Object(r.b)(i.track(a,s,null!=o?o:{}),null!==(c=i.settings.timeout)&&void 0!==c?c:500).catch(console.error).then((function(){t.submit()})).catch(console.error)},c=window.jQuery||window.Zepto;c?c(t).submit(u):t.addEventListener("submit",u,!1)})),this):this}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[2],{806:function(n,e,t){"use strict";t.r(e),t.d(e,"loadLegacyVideoPlugins",(function(){return r}));var i=t(4);function r(n){return Object(i.b)(this,void 0,void 0,(function(){var e;return Object(i.d)(this,(function(i){switch(i.label){case 0:return[4,t.e(8).then(t.t.bind(null,802,7))];case 1:return e=i.sent(),n._plugins=e,[2]}}))}))}}}]);
1
+ (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[2],{811:function(n,e,t){"use strict";t.r(e),t.d(e,"loadLegacyVideoPlugins",(function(){return r}));var i=t(4);function r(n){return Object(i.b)(this,void 0,void 0,(function(){var e;return Object(i.d)(this,(function(i){switch(i.label){case 0:return[4,t.e(8).then(t.t.bind(null,807,7))];case 1:return e=i.sent(),n._plugins=e,[2]}}))}))}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[4],{811:function(r,e,t){"use strict";function a(r,e){return Object.keys(e).reduce((function(t,a){a.startsWith(r)&&(t[a.substr(r.length)]=e[a]);return t}),{})}t.r(e),t.d(e,"queryString",(function(){return n}));var i=t(246),s=t(72);function n(r,e){var t=document.createElement("a");t.href=e;var n=t.search.slice(1).split("&").reduce((function(r,e){var t=e.split("="),a=t[0],s=t[1];return r[a]=Object(i.a)(s),r}),{}),u=[],d=n.ajs_uid,o=n.ajs_event,c=n.ajs_aid,j=Object(s.d)(r.options.useQueryString)?r.options.useQueryString:{},_=j.aid,v=void 0===_?/.+/:_,p=j.uid,f=void 0===p?/.+/:p;if(c){var y=Array.isArray(n.ajs_aid)?n.ajs_aid[0]:n.ajs_aid;v.test(y)&&r.setAnonymousId(y)}if(d){var h=Array.isArray(n.ajs_uid)?n.ajs_uid[0]:n.ajs_uid;if(f.test(h)){var l=a("ajs_trait_",n);u.push(r.identify(h,l))}}if(o){var A=Array.isArray(n.ajs_event)?n.ajs_event[0]:n.ajs_event,b=a("ajs_prop_",n);u.push(r.track(A,b))}return Promise.all(u)}}}]);
1
+ (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[4],{816:function(r,e,t){"use strict";function a(r,e){return Object.keys(e).reduce((function(t,a){a.startsWith(r)&&(t[a.substr(r.length)]=e[a]);return t}),{})}t.r(e),t.d(e,"queryString",(function(){return n}));var i=t(246),s=t(72);function n(r,e){var t=document.createElement("a");t.href=e;var n=t.search.slice(1).split("&").reduce((function(r,e){var t=e.split("="),a=t[0],s=t[1];return r[a]=Object(i.a)(s),r}),{}),u=[],d=n.ajs_uid,o=n.ajs_event,c=n.ajs_aid,j=Object(s.d)(r.options.useQueryString)?r.options.useQueryString:{},_=j.aid,v=void 0===_?/.+/:_,p=j.uid,f=void 0===p?/.+/:p;if(c){var y=Array.isArray(n.ajs_aid)?n.ajs_aid[0]:n.ajs_aid;v.test(y)&&r.setAnonymousId(y)}if(d){var h=Array.isArray(n.ajs_uid)?n.ajs_uid[0]:n.ajs_uid;if(f.test(h)){var l=a("ajs_trait_",n);u.push(r.identify(h,l))}}if(o){var A=Array.isArray(n.ajs_event)?n.ajs_event[0]:n.ajs_event,b=a("ajs_prop_",n);u.push(r.track(A,b))}return Promise.all(u)}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[5],{808:function(e,t,n){"use strict";n.r(t),n.d(t,"remoteMiddlewares",(function(){return o}));var r=n(4),c=n(131),i=n(144),a=n(112);function o(e,t,n){var o;return Object(r.b)(this,void 0,void 0,(function(){var s,u,d,l,b=this;return Object(r.d)(this,(function(w){switch(w.label){case 0:return Object(c.b)()?[2,[]]:(s=Object(a.b)(),u=null!==(o=t.enabledMiddleware)&&void 0!==o?o:{},d=Object.entries(u).filter((function(e){e[0];return e[1]})).map((function(e){return e[0]})),l=d.map((function(t){return Object(r.b)(b,void 0,void 0,(function(){var c,a,o,u;return Object(r.d)(this,(function(r){switch(r.label){case 0:c=t.replace("@segment/",""),a=c,n&&(a=btoa(c).replace(/=/g,"")),o="".concat(s,"/middleware/").concat(a,"/latest/").concat(a,".js.gz"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,Object(i.a)(o)];case 2:return r.sent(),[2,window["".concat(c,"Middleware")]];case 3:return u=r.sent(),e.log("error",u),e.stats.increment("failed_remote_middleware"),[3,4];case 4:return[2]}}))}))})),[4,Promise.all(l)]);case 1:return[2,w.sent().filter(Boolean)]}}))}))}}}]);
1
+ (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[5],{813:function(e,t,n){"use strict";n.r(t),n.d(t,"remoteMiddlewares",(function(){return o}));var r=n(4),c=n(131),i=n(144),a=n(112);function o(e,t,n){var o;return Object(r.b)(this,void 0,void 0,(function(){var s,u,d,l,b=this;return Object(r.d)(this,(function(w){switch(w.label){case 0:return Object(c.b)()?[2,[]]:(s=Object(a.b)(),u=null!==(o=t.enabledMiddleware)&&void 0!==o?o:{},d=Object.entries(u).filter((function(e){e[0];return e[1]})).map((function(e){return e[0]})),l=d.map((function(t){return Object(r.b)(b,void 0,void 0,(function(){var c,a,o,u;return Object(r.d)(this,(function(r){switch(r.label){case 0:c=t.replace("@segment/",""),a=c,n&&(a=btoa(c).replace(/=/g,"")),o="".concat(s,"/middleware/").concat(a,"/latest/").concat(a,".js.gz"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,Object(i.a)(o)];case 2:return r.sent(),[2,window["".concat(c,"Middleware")]];case 3:return u=r.sent(),e.log("error",u),e.stats.increment("failed_remote_middleware"),[3,4];case 4:return[2]}}))}))})),[4,Promise.all(l)]);case 1:return[2,w.sent().filter(Boolean)]}}))}))}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[6],{706:function(n,e,t){"use strict";function i(n,e){var t,i;return"boolean"==typeof(null==e?void 0:e.enabled)?e.enabled:null===(i=null===(t=null==n?void 0:n.__default)||void 0===t?void 0:t.enabled)||void 0===i||i}t.d(e,"a",(function(){return i}))},807:function(n,e,t){"use strict";t.r(e),t.d(e,"schemaFilter",(function(){return o}));var i=t(4),r=t(706);function o(n,e){function t(t){var o=n,a=t.event.event;if(o&&a){var u=o[a];if(!Object(r.a)(o,u))return t.updateEvent("integrations",Object(i.a)(Object(i.a)({},t.event.integrations),{All:!1,"Segment.io":!0})),t;var c=function(n,e){var t,i;if(!n||!Object.keys(n))return{};var r=n.integrations?Object.keys(n.integrations).filter((function(e){return!1===n.integrations[e]})):[],o=[];return(null!==(t=e.remotePlugins)&&void 0!==t?t:[]).forEach((function(n){r.forEach((function(e){(n.name.includes(e)||e.includes(n.name))&&o.push(n.name)}))})),(null!==(i=e.remotePlugins)&&void 0!==i?i:[]).reduce((function(n,e){return e.settings.subscriptions&&o.includes(e.name)&&e.settings.subscriptions.forEach((function(t){return n["".concat(e.name," ").concat(t.partnerAction)]=!1})),n}),{})}(u,e);t.updateEvent("integrations",Object(i.a)(Object(i.a)(Object(i.a)({},t.event.integrations),null==u?void 0:u.integrations),c))}return t}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:t,alias:t,track:t,identify:t,group:t}}}}]);
1
+ (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[6],{711:function(n,e,t){"use strict";function i(n,e){var t,i;return"boolean"==typeof(null==e?void 0:e.enabled)?e.enabled:null===(i=null===(t=null==n?void 0:n.__default)||void 0===t?void 0:t.enabled)||void 0===i||i}t.d(e,"a",(function(){return i}))},812:function(n,e,t){"use strict";t.r(e),t.d(e,"schemaFilter",(function(){return o}));var i=t(4),r=t(711);function o(n,e){function t(t){var o=n,a=t.event.event;if(o&&a){var u=o[a];if(!Object(r.a)(o,u))return t.updateEvent("integrations",Object(i.a)(Object(i.a)({},t.event.integrations),{All:!1,"Segment.io":!0})),t;var c=function(n,e){var t,i;if(!n||!Object.keys(n))return{};var r=n.integrations?Object.keys(n.integrations).filter((function(e){return!1===n.integrations[e]})):[],o=[];return(null!==(t=e.remotePlugins)&&void 0!==t?t:[]).forEach((function(n){r.forEach((function(e){(n.name.includes(e)||e.includes(n.name))&&o.push(n.name)}))})),(null!==(i=e.remotePlugins)&&void 0!==i?i:[]).reduce((function(n,e){return e.settings.subscriptions&&o.includes(e.name)&&e.settings.subscriptions.forEach((function(t){return n["".concat(e.name," ").concat(t.partnerAction)]=!1})),n}),{})}(u,e);t.updateEvent("integrations",Object(i.a)(Object(i.a)(Object(i.a)({},t.event.integrations),null==u?void 0:u.integrations),c))}return t}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:t,alias:t,track:t,identify:t,group:t}}}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 7.ordering-ui.cbc5b3aa15dd7af939b0.js.LICENSE.txt */
2
- (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[7],{701:function(t,r,e){"use strict";var n,o=e(746),i=e(750),u=e(751);n=o()?u:i,t.exports=n},702:function(t,r,e){t.exports=function(t,r,e,n,o){for(r=r.split?r.split("."):r,n=0;n<r.length;n++)t=t?t[r[n]]:o;return t===o?e:t}},703:function(t,r,e){"use strict";var n,o=e(742),i=e(757),u=e(758);n=o()?i:u,t.exports=n},704:function(t,r,e){"use strict";var n,o=e(759),i=e(764),u=e(765);n=o()?i:u,t.exports=n},705:function(t,r,e){"use strict";var n=e(767);t.exports=n},707:function(t,r,e){"use strict";var n=Number.POSITIVE_INFINITY;t.exports=n},708:function(t,r,e){"use strict";var n=e(724).NEGATIVE_INFINITY;t.exports=n},709:function(t,r,e){"use strict";t.exports=1023},710:function(t,r,e){"use strict";var n=e(729);t.exports=n},711:function(t,r,e){"use strict";var n=e(730);t.exports=n},712:function(t,r,e){"use strict";var n=e(713),o=e(741);n(o,"assign",e(714)),t.exports=o},713:function(t,r,e){"use strict";var n=e(735);t.exports=n},714:function(t,r,e){"use strict";var n=e(703),o=e(704),i=e(766),u=new o(1),s=new n(u.buffer),c=i.HIGH,a=i.LOW;t.exports=function(t,r,e,n){return u[0]=t,r[n]=s[c],r[n+e]=s[a],r}},715:function(t,r,e){"use strict";var n=Object.prototype.toString;t.exports=n},716:function(t,r,e){"use strict";var n=e(787);t.exports=n},717:function(t,r,e){"use strict";var n=e(789);t.exports=n},718:function(t,r,e){"use strict";var n=e(793),o=e(711),i=e(710),u=e(794);t.exports=function(t,r,e,s){return i(t)||o(t)?(r[s]=t,r[s+e]=0,r):0!==t&&u(t)<n?(r[s]=4503599627370496*t,r[s+e]=-52,r):(r[s]=t,r[s+e]=0,r)}},719:function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.Store=r.matches=r.transform=void 0;var o=e(720);Object.defineProperty(r,"transform",{enumerable:!0,get:function(){return n(o).default}});var i=e(800);Object.defineProperty(r,"matches",{enumerable:!0,get:function(){return n(i).default}});var u=e(801);Object.defineProperty(r,"Store",{enumerable:!0,get:function(){return n(u).default}})},720:function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var o=n(e(721)),i=n(e(702)),u=n(e(722)),s=e(114),c=e(799);function a(t,r){p(t,r.drop,(function(t,r){r.forEach((function(r){return delete t[r]}))}))}function f(t,r){p(t,r.allow,(function(t,r){Object.keys(t).forEach((function(e){r.includes(e)||delete t[e]}))}))}function p(t,r,e){Object.entries(r).forEach((function(r){var n=r[0],o=r[1],u=function(t){"object"==typeof t&&null!==t&&e(t,o)},s=""===n?t:(0,i.default)(t,n);Array.isArray(s)?s.forEach(u):u(s)}))}function l(t,r){var e=JSON.parse(JSON.stringify(t));for(var n in r.map)if(r.map.hasOwnProperty(n)){var o=r.map[n],u=n.split("."),a=void 0;if(u.length>1?(u.pop(),a=(0,i.default)(e,u.join("."))):a=t,"object"==typeof a){if(o.copy){var f=(0,i.default)(e,o.copy);void 0!==f&&(0,s.dset)(t,n,f)}else if(o.move){var p=(0,i.default)(e,o.move);void 0!==p&&(0,s.dset)(t,n,p),(0,c.unset)(t,o.move)}else o.hasOwnProperty("set")&&(0,s.dset)(t,n,o.set);if(o.to_string){var l=(0,i.default)(t,n);if("string"==typeof l||"object"==typeof l&&null!==l)continue;void 0!==l?(0,s.dset)(t,n,JSON.stringify(l)):(0,s.dset)(t,n,"undefined")}}}}function v(t,r){return!(r.sample.percent<=0)&&(r.sample.percent>=1||(r.sample.path?function(t,r){var e=(0,i.default)(t,r.sample.path),n=(0,o.default)(JSON.stringify(e)),s=-64,c=[];y(n.slice(0,8),c);for(var a=0,f=0;f<64&&1!==c[f];f++)a++;if(0!==a){var p=[];y(n.slice(9,16),p),s-=a,c.splice(0,a),p.splice(64-a),c=c.concat(p)}return c[63]=0===c[63]?1:0,(0,u.default)(parseInt(c.join(""),2),s)<r.sample.percent}(t,r):(e=r.sample.percent,Math.random()<=e)));var e}function y(t,r){for(var e=0;e<8;e++)for(var n=t[e],o=128;o>=1;o/=2)n-o>=0?(n-=o,r.push(1)):r.push(0)}r.default=function(t,r){for(var e=t,n=0,o=r;n<o.length;n++){var i=o[n];switch(i.type){case"drop":return null;case"drop_properties":a(e,i.config);break;case"allow_properties":f(e,i.config);break;case"sample_event":if(v(e,i.config))break;return null;case"map_properties":l(e,i.config);break;case"hash_properties":break;default:throw new Error('Transformer of type "'.concat(i.type,'" is unsupported.'))}}return e}},721:function(t,r,e){"use strict";e.r(r);for(var n=[],o=0;o<64;)n[o]=0|4294967296*Math.sin(++o%Math.PI);r.default=function(t){var r,e,i,u=[r=1732584193,e=4023233417,~r,~e],s=[],c=unescape(encodeURI(t))+"€",a=c.length;for(t=--a/4+2|15,s[--t]=8*a;~a;)s[a>>2]|=c.charCodeAt(a)<<8*a--;for(o=c=0;o<t;o+=16){for(a=u;c<64;a=[i=a[3],r+((i=a[0]+[r&e|~r&i,i&r|~i&e,r^e^i,e^(r|~i)][a=c>>4]+n[c]+~~s[o|15&[c,5*c+1,3*c+5,7*c][a]])<<(a=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*a+c++%4])|i>>>-a),r,e])r=0|a[1],e=a[2];for(c=4;c;)u[--c]+=a[c]}for(t="";c<32;)t+=(u[c>>3]>>4*(1^c++)&15).toString(16);return t}},722:function(t,r,e){"use strict";var n=e(723);t.exports=n},723:function(t,r,e){"use strict";var n=e(707),o=e(708),i=e(709),u=e(726),s=e(727),c=e(728),a=e(710),f=e(711),p=e(731),l=e(791),v=e(796),y=e(712),h=e(717),d=[0,0],x=[0,0];t.exports=function(t,r){var e,b;return 0===t||a(t)||f(t)?t:(l(d,t),r+=d[1],(r+=v(t=d[0]))<c?p(0,t):r>u?t<0?o:n:(r<=s?(r+=52,b=2220446049250313e-31):b=1,y(x,t),e=x[0],e&=2148532223,b*h(e|=r+i<<20,x[1])))}},724:function(t,r,e){"use strict";var n=e(725);t.exports=n},725:function(t,r,e){"use strict";t.exports=Number},726:function(t,r,e){"use strict";t.exports=1023},727:function(t,r,e){"use strict";t.exports=-1023},728:function(t,r,e){"use strict";t.exports=-1074},729:function(t,r,e){"use strict";t.exports=function(t){return t!=t}},730:function(t,r,e){"use strict";var n=e(707),o=e(708);t.exports=function(t){return t===n||t===o}},731:function(t,r,e){"use strict";var n=e(732);t.exports=n},732:function(t,r,e){"use strict";var n=e(733),o=e(734),i=e(712),u=e(716),s=e(717),c=[0,0];t.exports=function(t,r){var e,a;return i.assign(t,c,1,0),e=c[0],e&=o,a=u(r),s(e|=a&=n,c[1])}},733:function(t,r,e){"use strict";t.exports=2147483648},734:function(t,r,e){"use strict";t.exports=2147483647},735:function(t,r,e){"use strict";var n=e(736);t.exports=function(t,r,e){n(t,r,{configurable:!1,enumerable:!1,writable:!1,value:e})}},736:function(t,r,e){"use strict";var n,o=e(737),i=e(739),u=e(740);n=o()?i:u,t.exports=n},737:function(t,r,e){"use strict";var n=e(738);t.exports=function(){try{return n({},"x",{}),!0}catch(t){return!1}}},738:function(t,r,e){"use strict";var n="function"==typeof Object.defineProperty?Object.defineProperty:null;t.exports=n},739:function(t,r,e){"use strict";var n=Object.defineProperty;t.exports=n},740:function(t,r,e){"use strict";var n=Object.prototype,o=n.toString,i=n.__defineGetter__,u=n.__defineSetter__,s=n.__lookupGetter__,c=n.__lookupSetter__;t.exports=function(t,r,e){var a,f,p,l;if("object"!=typeof t||null===t||"[object Array]"===o.call(t))throw new TypeError("invalid argument. First argument must be an object. Value: `"+t+"`.");if("object"!=typeof e||null===e||"[object Array]"===o.call(e))throw new TypeError("invalid argument. Property descriptor must be an object. Value: `"+e+"`.");if((f="value"in e)&&(s.call(t,r)||c.call(t,r)?(a=t.__proto__,t.__proto__=n,delete t[r],t[r]=e.value,t.__proto__=a):t[r]=e.value),p="get"in e,l="set"in e,f&&(p||l))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return p&&i&&i.call(t,r,e.get),l&&u&&u.call(t,r,e.set),t}},741:function(t,r,e){"use strict";var n=e(714);t.exports=function(t){return n(t,[0,0],1,0)}},742:function(t,r,e){"use strict";var n=e(743);t.exports=n},743:function(t,r,e){"use strict";var n=e(744),o=e(755),i=e(756);t.exports=function(){var t,r;if("function"!=typeof i)return!1;try{r=new i(r=[1,3.14,-3.14,o+1,o+2]),t=n(r)&&1===r[0]&&3===r[1]&&r[2]===o-2&&0===r[3]&&1===r[4]}catch(r){t=!1}return t}},744:function(t,r,e){"use strict";var n=e(745);t.exports=n},745:function(t,r,e){"use strict";var n=e(701),o="function"==typeof Uint32Array;t.exports=function(t){return o&&t instanceof Uint32Array||"[object Uint32Array]"===n(t)}},746:function(t,r,e){"use strict";var n=e(747);t.exports=n},747:function(t,r,e){"use strict";var n=e(748)();t.exports=function(){return n&&"symbol"==typeof Symbol.toStringTag}},748:function(t,r,e){"use strict";var n=e(749);t.exports=n},749:function(t,r,e){"use strict";t.exports=function(){return"function"==typeof Symbol&&"symbol"==typeof Symbol("foo")}},750:function(t,r,e){"use strict";var n=e(715);t.exports=function(t){return n.call(t)}},751:function(t,r,e){"use strict";var n=e(752),o=e(754),i=e(715);t.exports=function(t){var r,e,u;if(null==t)return i.call(t);e=t[o],r=n(t,o);try{t[o]=void 0}catch(r){return i.call(t)}return u=i.call(t),r?t[o]=e:delete t[o],u}},752:function(t,r,e){"use strict";var n=e(753);t.exports=n},753:function(t,r,e){"use strict";var n=Object.prototype.hasOwnProperty;t.exports=function(t,r){return null!=t&&n.call(t,r)}},754:function(t,r,e){"use strict";var n="function"==typeof Symbol?Symbol.toStringTag:"";t.exports=n},755:function(t,r,e){"use strict";t.exports=4294967295},756:function(t,r,e){"use strict";var n="function"==typeof Uint32Array?Uint32Array:null;t.exports=n},757:function(t,r,e){"use strict";var n="function"==typeof Uint32Array?Uint32Array:void 0;t.exports=n},758:function(t,r,e){"use strict";t.exports=function(){throw new Error("not implemented")}},759:function(t,r,e){"use strict";var n=e(760);t.exports=n},760:function(t,r,e){"use strict";var n=e(761),o=e(763);t.exports=function(){var t,r;if("function"!=typeof o)return!1;try{r=new o([1,3.14,-3.14,NaN]),t=n(r)&&1===r[0]&&3.14===r[1]&&-3.14===r[2]&&r[3]!=r[3]}catch(r){t=!1}return t}},761:function(t,r,e){"use strict";var n=e(762);t.exports=n},762:function(t,r,e){"use strict";var n=e(701),o="function"==typeof Float64Array;t.exports=function(t){return o&&t instanceof Float64Array||"[object Float64Array]"===n(t)}},763:function(t,r,e){"use strict";var n="function"==typeof Float64Array?Float64Array:null;t.exports=n},764:function(t,r,e){"use strict";var n="function"==typeof Float64Array?Float64Array:void 0;t.exports=n},765:function(t,r,e){"use strict";t.exports=function(){throw new Error("not implemented")}},766:function(t,r,e){"use strict";var n,o,i;!0===e(705)?(o=1,i=0):(o=0,i=1),n={HIGH:o,LOW:i},t.exports=n},767:function(t,r,e){"use strict";var n,o,i=e(768);(o=new i.uint16(1))[0]=4660,n=52===new i.uint8(o.buffer)[0],t.exports=n},768:function(t,r,e){"use strict";var n=e(769),o={uint16:e(778),uint8:n};t.exports=o},769:function(t,r,e){"use strict";var n,o=e(770),i=e(776),u=e(777);n=o()?i:u,t.exports=n},770:function(t,r,e){"use strict";var n=e(771);t.exports=n},771:function(t,r,e){"use strict";var n=e(772),o=e(774),i=e(775);t.exports=function(){var t,r;if("function"!=typeof i)return!1;try{r=new i(r=[1,3.14,-3.14,o+1,o+2]),t=n(r)&&1===r[0]&&3===r[1]&&r[2]===o-2&&0===r[3]&&1===r[4]}catch(r){t=!1}return t}},772:function(t,r,e){"use strict";var n=e(773);t.exports=n},773:function(t,r,e){"use strict";var n=e(701),o="function"==typeof Uint8Array;t.exports=function(t){return o&&t instanceof Uint8Array||"[object Uint8Array]"===n(t)}},774:function(t,r,e){"use strict";t.exports=255},775:function(t,r,e){"use strict";var n="function"==typeof Uint8Array?Uint8Array:null;t.exports=n},776:function(t,r,e){"use strict";var n="function"==typeof Uint8Array?Uint8Array:void 0;t.exports=n},777:function(t,r,e){"use strict";t.exports=function(){throw new Error("not implemented")}},778:function(t,r,e){"use strict";var n,o=e(779),i=e(785),u=e(786);n=o()?i:u,t.exports=n},779:function(t,r,e){"use strict";var n=e(780);t.exports=n},780:function(t,r,e){"use strict";var n=e(781),o=e(783),i=e(784);t.exports=function(){var t,r;if("function"!=typeof i)return!1;try{r=new i(r=[1,3.14,-3.14,o+1,o+2]),t=n(r)&&1===r[0]&&3===r[1]&&r[2]===o-2&&0===r[3]&&1===r[4]}catch(r){t=!1}return t}},781:function(t,r,e){"use strict";var n=e(782);t.exports=n},782:function(t,r,e){"use strict";var n=e(701),o="function"==typeof Uint16Array;t.exports=function(t){return o&&t instanceof Uint16Array||"[object Uint16Array]"===n(t)}},783:function(t,r,e){"use strict";t.exports=65535},784:function(t,r,e){"use strict";var n="function"==typeof Uint16Array?Uint16Array:null;t.exports=n},785:function(t,r,e){"use strict";var n="function"==typeof Uint16Array?Uint16Array:void 0;t.exports=n},786:function(t,r,e){"use strict";t.exports=function(){throw new Error("not implemented")}},787:function(t,r,e){"use strict";var n=e(703),o=e(704),i=e(788),u=new o(1),s=new n(u.buffer);t.exports=function(t){return u[0]=t,s[i]}},788:function(t,r,e){"use strict";var n;n=!0===e(705)?1:0,t.exports=n},789:function(t,r,e){"use strict";var n=e(703),o=e(704),i=e(790),u=new o(1),s=new n(u.buffer),c=i.HIGH,a=i.LOW;t.exports=function(t,r){return s[c]=t,s[a]=r,u[0]}},790:function(t,r,e){"use strict";var n,o,i;!0===e(705)?(o=1,i=0):(o=0,i=1),n={HIGH:o,LOW:i},t.exports=n},791:function(t,r,e){"use strict";var n=e(713),o=e(792);n(o,"assign",e(718)),t.exports=o},792:function(t,r,e){"use strict";var n=e(718);t.exports=function(t){return n(t,[0,0],1,0)}},793:function(t,r,e){"use strict";t.exports=22250738585072014e-324},794:function(t,r,e){"use strict";var n=e(795);t.exports=n},795:function(t,r,e){"use strict";t.exports=function(t){return Math.abs(t)}},796:function(t,r,e){"use strict";var n=e(797);t.exports=n},797:function(t,r,e){"use strict";var n=e(716),o=e(798),i=e(709);t.exports=function(t){var r=n(t);return(r=(r&o)>>>20)-i|0}},798:function(t,r,e){"use strict";t.exports=2146435072},799:function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.unset=void 0;var o=n(e(702));r.unset=function(t,r){if((0,o.default)(t,r)){for(var e=r.split("."),n=e.pop();e.length&&"\\"===e[e.length-1].slice(-1);)n=e.pop().slice(0,-1)+"."+n;for(;e.length;)t=t[r=e.shift()];return delete t[n]}return!0}},800:function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var o=n(e(702));function i(t,r){if(!Array.isArray(t))return!0===u(t,r);var e=t[0];switch(e){case"!":return!i(t[1],r);case"or":for(var n=1;n<t.length;n++)if(i(t[n],r))return!0;return!1;case"and":for(n=1;n<t.length;n++)if(!i(t[n],r))return!1;return!0;case"=":case"!=":return function(t,r,e,n){s(t)&&(t=i(t,n));s(r)&&(r=i(r,n));"object"==typeof t&&"object"==typeof r&&(t=JSON.stringify(t),r=JSON.stringify(r));switch(e){case"=":return t===r;case"!=":return t!==r;default:throw new Error("Invalid operator in compareItems: ".concat(e))}}(u(t[1],r),u(t[2],r),e,r);case"<=":case"<":case">":case">=":return function(t,r,e,n){s(t)&&(t=i(t,n));s(r)&&(r=i(r,n));if("number"!=typeof t||"number"!=typeof r)return!1;switch(e){case"<=":return t<=r;case">=":return t>=r;case"<":return t<r;case">":return t>r;default:throw new Error("Invalid operator in compareNumbers: ".concat(e))}}(u(t[1],r),u(t[2],r),e,r);case"in":return function(t,r,e){return void 0!==r.find((function(r){return u(r,e)===t}))}(u(t[1],r),u(t[2],r),r);case"contains":return function(t,r){if("string"!=typeof t||"string"!=typeof r)return!1;return-1!==t.indexOf(r)}(u(t[1],r),u(t[2],r));case"match":return function(t,r){if("string"!=typeof t||"string"!=typeof r)return!1;return function(t,r){var e,n;t:for(;t.length>0;){var o=void 0,i=void 0;if(o=(e=c(t)).star,i=e.chunk,t=e.pattern,o&&""===i)return!0;var u=a(i,r),s=u.t,f=u.ok,p=u.err;if(p)return!1;if(!f||!(0===s.length||t.length>0)){if(o)for(var l=0;l<r.length;l++){if(s=(n=a(i,r.slice(l+1))).t,f=n.ok,p=n.err,f){if(0===t.length&&s.length>0)continue;r=s;continue t}if(p)return!1}return!1}r=s}return 0===r.length}(r,t)}(u(t[1],r),u(t[2],r));case"lowercase":var o=u(t[1],r);return"string"!=typeof o?null:o.toLowerCase();case"typeof":return typeof u(t[1],r);case"length":return function(t){if(null===t)return 0;if(!Array.isArray(t)&&"string"!=typeof t)return NaN;return t.length}(u(t[1],r));default:throw new Error("FQL IR could not evaluate for token: ".concat(e))}}function u(t,r){return Array.isArray(t)?t:"object"==typeof t?t.value:(0,o.default)(r,t)}function s(t){return!!Array.isArray(t)&&(("lowercase"===t[0]||"length"===t[0]||"typeof"===t[0])&&2===t.length||("contains"===t[0]||"match"===t[0])&&3===t.length)}function c(t){for(var r={star:!1,chunk:"",pattern:""};t.length>0&&"*"===t[0];)t=t.slice(1),r.star=!0;var e,n=!1;t:for(e=0;e<t.length;e++)switch(t[e]){case"\\":e+1<t.length&&e++;break;case"[":n=!0;break;case"]":n=!1;break;case"*":if(!n)break t}return r.chunk=t.slice(0,e),r.pattern=t.slice(e),r}function a(t,r){for(var e,n,o={t:"",ok:!1,err:!1};t.length>0;){if(0===r.length)return o;switch(t[0]){case"[":var i=r[0];r=r.slice(1);var u=!0;(t=t.slice(1)).length>0&&"^"===t[0]&&(u=!1,t=t.slice(1));for(var s=!1,c=0;;){if(t.length>0&&"]"===t[0]&&c>0){t=t.slice(1);break}var a,p="";if(a=(e=f(t)).char,t=e.newChunk,e.err)return o;if(p=a,"-"===t[0]&&(p=(n=f(t.slice(1))).char,t=n.newChunk,n.err))return o;a<=i&&i<=p&&(s=!0),c++}if(s!==u)return o;break;case"?":r=r.slice(1),t=t.slice(1);break;case"\\":if(0===(t=t.slice(1)).length)return o.err=!0,o;default:if(t[0]!==r[0])return o;r=r.slice(1),t=t.slice(1)}}return o.t=r,o.ok=!0,o.err=!1,o}function f(t){var r={char:"",newChunk:"",err:!1};return 0===t.length||"-"===t[0]||"]"===t[0]||"\\"===t[0]&&0===(t=t.slice(1)).length?(r.err=!0,r):(r.char=t[0],r.newChunk=t.slice(1),0===r.newChunk.length&&(r.err=!0),r)}r.default=function(t,r){if(!r)throw new Error("No matcher supplied!");switch(r.type){case"all":return!0;case"fql":return function(t,r){if(!t)return!1;try{t=JSON.parse(t)}catch(r){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(t,'": ').concat(r))}var e=i(t,r);if("boolean"!=typeof e)return!1;return e}(r.ir,t);default:throw new Error("Matcher of type ".concat(r.type," unsupported."))}}},801:function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function t(t){this.rules=[],this.rules=t||[]}return t.prototype.getRulesByDestinationName=function(t){for(var r=[],e=0,n=this.rules;e<n.length;e++){var o=n[e];o.destinationName!==t&&void 0!==o.destinationName||r.push(o)}return r},t}();r.default=n},805:function(t,r,e){"use strict";e.r(r),e.d(r,"tsubMiddleware",(function(){return o}));var n=e(719),o=function(t){return function(r){var e=r.payload,o=r.integration,i=r.next;new n.Store(t).getRulesByDestinationName(o).forEach((function(t){for(var r=t.matchers,o=t.transformers,u=0;u<r.length;u++)if(n.matches(e.obj,r[u])&&(e.obj=n.transform(e.obj,o[u]),null===e.obj))return i(null)})),i(e)}}}}]);
1
+ /*! For license information please see 7.ordering-ui.e9827c5566d8cce0eaa4.js.LICENSE.txt */
2
+ (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[7],{706:function(t,r,e){"use strict";var n,o=e(751),i=e(755),u=e(756);n=o()?u:i,t.exports=n},707:function(t,r,e){t.exports=function(t,r,e,n,o){for(r=r.split?r.split("."):r,n=0;n<r.length;n++)t=t?t[r[n]]:o;return t===o?e:t}},708:function(t,r,e){"use strict";var n,o=e(747),i=e(762),u=e(763);n=o()?i:u,t.exports=n},709:function(t,r,e){"use strict";var n,o=e(764),i=e(769),u=e(770);n=o()?i:u,t.exports=n},710:function(t,r,e){"use strict";var n=e(772);t.exports=n},712:function(t,r,e){"use strict";var n=Number.POSITIVE_INFINITY;t.exports=n},713:function(t,r,e){"use strict";var n=e(729).NEGATIVE_INFINITY;t.exports=n},714:function(t,r,e){"use strict";t.exports=1023},715:function(t,r,e){"use strict";var n=e(734);t.exports=n},716:function(t,r,e){"use strict";var n=e(735);t.exports=n},717:function(t,r,e){"use strict";var n=e(718),o=e(746);n(o,"assign",e(719)),t.exports=o},718:function(t,r,e){"use strict";var n=e(740);t.exports=n},719:function(t,r,e){"use strict";var n=e(708),o=e(709),i=e(771),u=new o(1),s=new n(u.buffer),c=i.HIGH,a=i.LOW;t.exports=function(t,r,e,n){return u[0]=t,r[n]=s[c],r[n+e]=s[a],r}},720:function(t,r,e){"use strict";var n=Object.prototype.toString;t.exports=n},721:function(t,r,e){"use strict";var n=e(792);t.exports=n},722:function(t,r,e){"use strict";var n=e(794);t.exports=n},723:function(t,r,e){"use strict";var n=e(798),o=e(716),i=e(715),u=e(799);t.exports=function(t,r,e,s){return i(t)||o(t)?(r[s]=t,r[s+e]=0,r):0!==t&&u(t)<n?(r[s]=4503599627370496*t,r[s+e]=-52,r):(r[s]=t,r[s+e]=0,r)}},724:function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.Store=r.matches=r.transform=void 0;var o=e(725);Object.defineProperty(r,"transform",{enumerable:!0,get:function(){return n(o).default}});var i=e(805);Object.defineProperty(r,"matches",{enumerable:!0,get:function(){return n(i).default}});var u=e(806);Object.defineProperty(r,"Store",{enumerable:!0,get:function(){return n(u).default}})},725:function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var o=n(e(726)),i=n(e(707)),u=n(e(727)),s=e(114),c=e(804);function a(t,r){p(t,r.drop,(function(t,r){r.forEach((function(r){return delete t[r]}))}))}function f(t,r){p(t,r.allow,(function(t,r){Object.keys(t).forEach((function(e){r.includes(e)||delete t[e]}))}))}function p(t,r,e){Object.entries(r).forEach((function(r){var n=r[0],o=r[1],u=function(t){"object"==typeof t&&null!==t&&e(t,o)},s=""===n?t:(0,i.default)(t,n);Array.isArray(s)?s.forEach(u):u(s)}))}function l(t,r){var e=JSON.parse(JSON.stringify(t));for(var n in r.map)if(r.map.hasOwnProperty(n)){var o=r.map[n],u=n.split("."),a=void 0;if(u.length>1?(u.pop(),a=(0,i.default)(e,u.join("."))):a=t,"object"==typeof a){if(o.copy){var f=(0,i.default)(e,o.copy);void 0!==f&&(0,s.dset)(t,n,f)}else if(o.move){var p=(0,i.default)(e,o.move);void 0!==p&&(0,s.dset)(t,n,p),(0,c.unset)(t,o.move)}else o.hasOwnProperty("set")&&(0,s.dset)(t,n,o.set);if(o.to_string){var l=(0,i.default)(t,n);if("string"==typeof l||"object"==typeof l&&null!==l)continue;void 0!==l?(0,s.dset)(t,n,JSON.stringify(l)):(0,s.dset)(t,n,"undefined")}}}}function v(t,r){return!(r.sample.percent<=0)&&(r.sample.percent>=1||(r.sample.path?function(t,r){var e=(0,i.default)(t,r.sample.path),n=(0,o.default)(JSON.stringify(e)),s=-64,c=[];y(n.slice(0,8),c);for(var a=0,f=0;f<64&&1!==c[f];f++)a++;if(0!==a){var p=[];y(n.slice(9,16),p),s-=a,c.splice(0,a),p.splice(64-a),c=c.concat(p)}return c[63]=0===c[63]?1:0,(0,u.default)(parseInt(c.join(""),2),s)<r.sample.percent}(t,r):(e=r.sample.percent,Math.random()<=e)));var e}function y(t,r){for(var e=0;e<8;e++)for(var n=t[e],o=128;o>=1;o/=2)n-o>=0?(n-=o,r.push(1)):r.push(0)}r.default=function(t,r){for(var e=t,n=0,o=r;n<o.length;n++){var i=o[n];switch(i.type){case"drop":return null;case"drop_properties":a(e,i.config);break;case"allow_properties":f(e,i.config);break;case"sample_event":if(v(e,i.config))break;return null;case"map_properties":l(e,i.config);break;case"hash_properties":break;default:throw new Error('Transformer of type "'.concat(i.type,'" is unsupported.'))}}return e}},726:function(t,r,e){"use strict";e.r(r);for(var n=[],o=0;o<64;)n[o]=0|4294967296*Math.sin(++o%Math.PI);r.default=function(t){var r,e,i,u=[r=1732584193,e=4023233417,~r,~e],s=[],c=unescape(encodeURI(t))+"€",a=c.length;for(t=--a/4+2|15,s[--t]=8*a;~a;)s[a>>2]|=c.charCodeAt(a)<<8*a--;for(o=c=0;o<t;o+=16){for(a=u;c<64;a=[i=a[3],r+((i=a[0]+[r&e|~r&i,i&r|~i&e,r^e^i,e^(r|~i)][a=c>>4]+n[c]+~~s[o|15&[c,5*c+1,3*c+5,7*c][a]])<<(a=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*a+c++%4])|i>>>-a),r,e])r=0|a[1],e=a[2];for(c=4;c;)u[--c]+=a[c]}for(t="";c<32;)t+=(u[c>>3]>>4*(1^c++)&15).toString(16);return t}},727:function(t,r,e){"use strict";var n=e(728);t.exports=n},728:function(t,r,e){"use strict";var n=e(712),o=e(713),i=e(714),u=e(731),s=e(732),c=e(733),a=e(715),f=e(716),p=e(736),l=e(796),v=e(801),y=e(717),h=e(722),d=[0,0],x=[0,0];t.exports=function(t,r){var e,b;return 0===t||a(t)||f(t)?t:(l(d,t),r+=d[1],(r+=v(t=d[0]))<c?p(0,t):r>u?t<0?o:n:(r<=s?(r+=52,b=2220446049250313e-31):b=1,y(x,t),e=x[0],e&=2148532223,b*h(e|=r+i<<20,x[1])))}},729:function(t,r,e){"use strict";var n=e(730);t.exports=n},730:function(t,r,e){"use strict";t.exports=Number},731:function(t,r,e){"use strict";t.exports=1023},732:function(t,r,e){"use strict";t.exports=-1023},733:function(t,r,e){"use strict";t.exports=-1074},734:function(t,r,e){"use strict";t.exports=function(t){return t!=t}},735:function(t,r,e){"use strict";var n=e(712),o=e(713);t.exports=function(t){return t===n||t===o}},736:function(t,r,e){"use strict";var n=e(737);t.exports=n},737:function(t,r,e){"use strict";var n=e(738),o=e(739),i=e(717),u=e(721),s=e(722),c=[0,0];t.exports=function(t,r){var e,a;return i.assign(t,c,1,0),e=c[0],e&=o,a=u(r),s(e|=a&=n,c[1])}},738:function(t,r,e){"use strict";t.exports=2147483648},739:function(t,r,e){"use strict";t.exports=2147483647},740:function(t,r,e){"use strict";var n=e(741);t.exports=function(t,r,e){n(t,r,{configurable:!1,enumerable:!1,writable:!1,value:e})}},741:function(t,r,e){"use strict";var n,o=e(742),i=e(744),u=e(745);n=o()?i:u,t.exports=n},742:function(t,r,e){"use strict";var n=e(743);t.exports=function(){try{return n({},"x",{}),!0}catch(t){return!1}}},743:function(t,r,e){"use strict";var n="function"==typeof Object.defineProperty?Object.defineProperty:null;t.exports=n},744:function(t,r,e){"use strict";var n=Object.defineProperty;t.exports=n},745:function(t,r,e){"use strict";var n=Object.prototype,o=n.toString,i=n.__defineGetter__,u=n.__defineSetter__,s=n.__lookupGetter__,c=n.__lookupSetter__;t.exports=function(t,r,e){var a,f,p,l;if("object"!=typeof t||null===t||"[object Array]"===o.call(t))throw new TypeError("invalid argument. First argument must be an object. Value: `"+t+"`.");if("object"!=typeof e||null===e||"[object Array]"===o.call(e))throw new TypeError("invalid argument. Property descriptor must be an object. Value: `"+e+"`.");if((f="value"in e)&&(s.call(t,r)||c.call(t,r)?(a=t.__proto__,t.__proto__=n,delete t[r],t[r]=e.value,t.__proto__=a):t[r]=e.value),p="get"in e,l="set"in e,f&&(p||l))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return p&&i&&i.call(t,r,e.get),l&&u&&u.call(t,r,e.set),t}},746:function(t,r,e){"use strict";var n=e(719);t.exports=function(t){return n(t,[0,0],1,0)}},747:function(t,r,e){"use strict";var n=e(748);t.exports=n},748:function(t,r,e){"use strict";var n=e(749),o=e(760),i=e(761);t.exports=function(){var t,r;if("function"!=typeof i)return!1;try{r=new i(r=[1,3.14,-3.14,o+1,o+2]),t=n(r)&&1===r[0]&&3===r[1]&&r[2]===o-2&&0===r[3]&&1===r[4]}catch(r){t=!1}return t}},749:function(t,r,e){"use strict";var n=e(750);t.exports=n},750:function(t,r,e){"use strict";var n=e(706),o="function"==typeof Uint32Array;t.exports=function(t){return o&&t instanceof Uint32Array||"[object Uint32Array]"===n(t)}},751:function(t,r,e){"use strict";var n=e(752);t.exports=n},752:function(t,r,e){"use strict";var n=e(753)();t.exports=function(){return n&&"symbol"==typeof Symbol.toStringTag}},753:function(t,r,e){"use strict";var n=e(754);t.exports=n},754:function(t,r,e){"use strict";t.exports=function(){return"function"==typeof Symbol&&"symbol"==typeof Symbol("foo")}},755:function(t,r,e){"use strict";var n=e(720);t.exports=function(t){return n.call(t)}},756:function(t,r,e){"use strict";var n=e(757),o=e(759),i=e(720);t.exports=function(t){var r,e,u;if(null==t)return i.call(t);e=t[o],r=n(t,o);try{t[o]=void 0}catch(r){return i.call(t)}return u=i.call(t),r?t[o]=e:delete t[o],u}},757:function(t,r,e){"use strict";var n=e(758);t.exports=n},758:function(t,r,e){"use strict";var n=Object.prototype.hasOwnProperty;t.exports=function(t,r){return null!=t&&n.call(t,r)}},759:function(t,r,e){"use strict";var n="function"==typeof Symbol?Symbol.toStringTag:"";t.exports=n},760:function(t,r,e){"use strict";t.exports=4294967295},761:function(t,r,e){"use strict";var n="function"==typeof Uint32Array?Uint32Array:null;t.exports=n},762:function(t,r,e){"use strict";var n="function"==typeof Uint32Array?Uint32Array:void 0;t.exports=n},763:function(t,r,e){"use strict";t.exports=function(){throw new Error("not implemented")}},764:function(t,r,e){"use strict";var n=e(765);t.exports=n},765:function(t,r,e){"use strict";var n=e(766),o=e(768);t.exports=function(){var t,r;if("function"!=typeof o)return!1;try{r=new o([1,3.14,-3.14,NaN]),t=n(r)&&1===r[0]&&3.14===r[1]&&-3.14===r[2]&&r[3]!=r[3]}catch(r){t=!1}return t}},766:function(t,r,e){"use strict";var n=e(767);t.exports=n},767:function(t,r,e){"use strict";var n=e(706),o="function"==typeof Float64Array;t.exports=function(t){return o&&t instanceof Float64Array||"[object Float64Array]"===n(t)}},768:function(t,r,e){"use strict";var n="function"==typeof Float64Array?Float64Array:null;t.exports=n},769:function(t,r,e){"use strict";var n="function"==typeof Float64Array?Float64Array:void 0;t.exports=n},770:function(t,r,e){"use strict";t.exports=function(){throw new Error("not implemented")}},771:function(t,r,e){"use strict";var n,o,i;!0===e(710)?(o=1,i=0):(o=0,i=1),n={HIGH:o,LOW:i},t.exports=n},772:function(t,r,e){"use strict";var n,o,i=e(773);(o=new i.uint16(1))[0]=4660,n=52===new i.uint8(o.buffer)[0],t.exports=n},773:function(t,r,e){"use strict";var n=e(774),o={uint16:e(783),uint8:n};t.exports=o},774:function(t,r,e){"use strict";var n,o=e(775),i=e(781),u=e(782);n=o()?i:u,t.exports=n},775:function(t,r,e){"use strict";var n=e(776);t.exports=n},776:function(t,r,e){"use strict";var n=e(777),o=e(779),i=e(780);t.exports=function(){var t,r;if("function"!=typeof i)return!1;try{r=new i(r=[1,3.14,-3.14,o+1,o+2]),t=n(r)&&1===r[0]&&3===r[1]&&r[2]===o-2&&0===r[3]&&1===r[4]}catch(r){t=!1}return t}},777:function(t,r,e){"use strict";var n=e(778);t.exports=n},778:function(t,r,e){"use strict";var n=e(706),o="function"==typeof Uint8Array;t.exports=function(t){return o&&t instanceof Uint8Array||"[object Uint8Array]"===n(t)}},779:function(t,r,e){"use strict";t.exports=255},780:function(t,r,e){"use strict";var n="function"==typeof Uint8Array?Uint8Array:null;t.exports=n},781:function(t,r,e){"use strict";var n="function"==typeof Uint8Array?Uint8Array:void 0;t.exports=n},782:function(t,r,e){"use strict";t.exports=function(){throw new Error("not implemented")}},783:function(t,r,e){"use strict";var n,o=e(784),i=e(790),u=e(791);n=o()?i:u,t.exports=n},784:function(t,r,e){"use strict";var n=e(785);t.exports=n},785:function(t,r,e){"use strict";var n=e(786),o=e(788),i=e(789);t.exports=function(){var t,r;if("function"!=typeof i)return!1;try{r=new i(r=[1,3.14,-3.14,o+1,o+2]),t=n(r)&&1===r[0]&&3===r[1]&&r[2]===o-2&&0===r[3]&&1===r[4]}catch(r){t=!1}return t}},786:function(t,r,e){"use strict";var n=e(787);t.exports=n},787:function(t,r,e){"use strict";var n=e(706),o="function"==typeof Uint16Array;t.exports=function(t){return o&&t instanceof Uint16Array||"[object Uint16Array]"===n(t)}},788:function(t,r,e){"use strict";t.exports=65535},789:function(t,r,e){"use strict";var n="function"==typeof Uint16Array?Uint16Array:null;t.exports=n},790:function(t,r,e){"use strict";var n="function"==typeof Uint16Array?Uint16Array:void 0;t.exports=n},791:function(t,r,e){"use strict";t.exports=function(){throw new Error("not implemented")}},792:function(t,r,e){"use strict";var n=e(708),o=e(709),i=e(793),u=new o(1),s=new n(u.buffer);t.exports=function(t){return u[0]=t,s[i]}},793:function(t,r,e){"use strict";var n;n=!0===e(710)?1:0,t.exports=n},794:function(t,r,e){"use strict";var n=e(708),o=e(709),i=e(795),u=new o(1),s=new n(u.buffer),c=i.HIGH,a=i.LOW;t.exports=function(t,r){return s[c]=t,s[a]=r,u[0]}},795:function(t,r,e){"use strict";var n,o,i;!0===e(710)?(o=1,i=0):(o=0,i=1),n={HIGH:o,LOW:i},t.exports=n},796:function(t,r,e){"use strict";var n=e(718),o=e(797);n(o,"assign",e(723)),t.exports=o},797:function(t,r,e){"use strict";var n=e(723);t.exports=function(t){return n(t,[0,0],1,0)}},798:function(t,r,e){"use strict";t.exports=22250738585072014e-324},799:function(t,r,e){"use strict";var n=e(800);t.exports=n},800:function(t,r,e){"use strict";t.exports=function(t){return Math.abs(t)}},801:function(t,r,e){"use strict";var n=e(802);t.exports=n},802:function(t,r,e){"use strict";var n=e(721),o=e(803),i=e(714);t.exports=function(t){var r=n(t);return(r=(r&o)>>>20)-i|0}},803:function(t,r,e){"use strict";t.exports=2146435072},804:function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.unset=void 0;var o=n(e(707));r.unset=function(t,r){if((0,o.default)(t,r)){for(var e=r.split("."),n=e.pop();e.length&&"\\"===e[e.length-1].slice(-1);)n=e.pop().slice(0,-1)+"."+n;for(;e.length;)t=t[r=e.shift()];return delete t[n]}return!0}},805:function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var o=n(e(707));function i(t,r){if(!Array.isArray(t))return!0===u(t,r);var e=t[0];switch(e){case"!":return!i(t[1],r);case"or":for(var n=1;n<t.length;n++)if(i(t[n],r))return!0;return!1;case"and":for(n=1;n<t.length;n++)if(!i(t[n],r))return!1;return!0;case"=":case"!=":return function(t,r,e,n){s(t)&&(t=i(t,n));s(r)&&(r=i(r,n));"object"==typeof t&&"object"==typeof r&&(t=JSON.stringify(t),r=JSON.stringify(r));switch(e){case"=":return t===r;case"!=":return t!==r;default:throw new Error("Invalid operator in compareItems: ".concat(e))}}(u(t[1],r),u(t[2],r),e,r);case"<=":case"<":case">":case">=":return function(t,r,e,n){s(t)&&(t=i(t,n));s(r)&&(r=i(r,n));if("number"!=typeof t||"number"!=typeof r)return!1;switch(e){case"<=":return t<=r;case">=":return t>=r;case"<":return t<r;case">":return t>r;default:throw new Error("Invalid operator in compareNumbers: ".concat(e))}}(u(t[1],r),u(t[2],r),e,r);case"in":return function(t,r,e){return void 0!==r.find((function(r){return u(r,e)===t}))}(u(t[1],r),u(t[2],r),r);case"contains":return function(t,r){if("string"!=typeof t||"string"!=typeof r)return!1;return-1!==t.indexOf(r)}(u(t[1],r),u(t[2],r));case"match":return function(t,r){if("string"!=typeof t||"string"!=typeof r)return!1;return function(t,r){var e,n;t:for(;t.length>0;){var o=void 0,i=void 0;if(o=(e=c(t)).star,i=e.chunk,t=e.pattern,o&&""===i)return!0;var u=a(i,r),s=u.t,f=u.ok,p=u.err;if(p)return!1;if(!f||!(0===s.length||t.length>0)){if(o)for(var l=0;l<r.length;l++){if(s=(n=a(i,r.slice(l+1))).t,f=n.ok,p=n.err,f){if(0===t.length&&s.length>0)continue;r=s;continue t}if(p)return!1}return!1}r=s}return 0===r.length}(r,t)}(u(t[1],r),u(t[2],r));case"lowercase":var o=u(t[1],r);return"string"!=typeof o?null:o.toLowerCase();case"typeof":return typeof u(t[1],r);case"length":return function(t){if(null===t)return 0;if(!Array.isArray(t)&&"string"!=typeof t)return NaN;return t.length}(u(t[1],r));default:throw new Error("FQL IR could not evaluate for token: ".concat(e))}}function u(t,r){return Array.isArray(t)?t:"object"==typeof t?t.value:(0,o.default)(r,t)}function s(t){return!!Array.isArray(t)&&(("lowercase"===t[0]||"length"===t[0]||"typeof"===t[0])&&2===t.length||("contains"===t[0]||"match"===t[0])&&3===t.length)}function c(t){for(var r={star:!1,chunk:"",pattern:""};t.length>0&&"*"===t[0];)t=t.slice(1),r.star=!0;var e,n=!1;t:for(e=0;e<t.length;e++)switch(t[e]){case"\\":e+1<t.length&&e++;break;case"[":n=!0;break;case"]":n=!1;break;case"*":if(!n)break t}return r.chunk=t.slice(0,e),r.pattern=t.slice(e),r}function a(t,r){for(var e,n,o={t:"",ok:!1,err:!1};t.length>0;){if(0===r.length)return o;switch(t[0]){case"[":var i=r[0];r=r.slice(1);var u=!0;(t=t.slice(1)).length>0&&"^"===t[0]&&(u=!1,t=t.slice(1));for(var s=!1,c=0;;){if(t.length>0&&"]"===t[0]&&c>0){t=t.slice(1);break}var a,p="";if(a=(e=f(t)).char,t=e.newChunk,e.err)return o;if(p=a,"-"===t[0]&&(p=(n=f(t.slice(1))).char,t=n.newChunk,n.err))return o;a<=i&&i<=p&&(s=!0),c++}if(s!==u)return o;break;case"?":r=r.slice(1),t=t.slice(1);break;case"\\":if(0===(t=t.slice(1)).length)return o.err=!0,o;default:if(t[0]!==r[0])return o;r=r.slice(1),t=t.slice(1)}}return o.t=r,o.ok=!0,o.err=!1,o}function f(t){var r={char:"",newChunk:"",err:!1};return 0===t.length||"-"===t[0]||"]"===t[0]||"\\"===t[0]&&0===(t=t.slice(1)).length?(r.err=!0,r):(r.char=t[0],r.newChunk=t.slice(1),0===r.newChunk.length&&(r.err=!0),r)}r.default=function(t,r){if(!r)throw new Error("No matcher supplied!");switch(r.type){case"all":return!0;case"fql":return function(t,r){if(!t)return!1;try{t=JSON.parse(t)}catch(r){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(t,'": ').concat(r))}var e=i(t,r);if("boolean"!=typeof e)return!1;return e}(r.ir,t);default:throw new Error("Matcher of type ".concat(r.type," unsupported."))}}},806:function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function t(t){this.rules=[],this.rules=t||[]}return t.prototype.getRulesByDestinationName=function(t){for(var r=[],e=0,n=this.rules;e<n.length;e++){var o=n[e];o.destinationName!==t&&void 0!==o.destinationName||r.push(o)}return r},t}();r.default=n},810:function(t,r,e){"use strict";e.r(r),e.d(r,"tsubMiddleware",(function(){return o}));var n=e(724),o=function(t){return function(r){var e=r.payload,o=r.integration,i=r.next;new n.Store(t).getRulesByDestinationName(o).forEach((function(t){for(var r=t.matchers,o=t.transformers,u=0;u<r.length;u++)if(n.matches(e.obj,r[u])&&(e.obj=n.transform(e.obj,o[u]),null===e.obj))return i(null)})),i(e)}}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[8],{802:function(e,t,a){window,e.exports=function(e){var t={};function a(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=2)}([function(e,t,a){"use strict";a.r(t);var n="function"==typeof fetch?fetch.bind():function(e,t){return t=t||{},new Promise((function(a,n){var i=new XMLHttpRequest;for(var r in i.open(t.method||"get",e,!0),t.headers)i.setRequestHeader(r,t.headers[r]);function o(){var e,t=[],a=[],n={};return i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(i,r,o){t.push(r=r.toLowerCase()),a.push([r,o]),e=n[r],n[r]=e?e+","+o:o})),{ok:2==(i.status/100|0),status:i.status,statusText:i.statusText,url:i.responseURL,clone:o,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},headers:{keys:function(){return t},entries:function(){return a},get:function(e){return n[e.toLowerCase()]},has:function(e){return e.toLowerCase()in n}}}}i.withCredentials="include"==t.credentials,i.onload=function(){a(o())},i.onerror=n,i.send(t.body)}))};t.default=n},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),i=function(){function e(t,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pluginName=t}return n(e,[{key:"track",value:function(e,t){window.analytics.track(e,t,{integration:{name:this.pluginName}})}}]),e}();t.default=i},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeAnalytics=t.VimeoAnalytics=void 0;var n=r(a(3)),i=r(a(4));function r(e){return e&&e.__esModule?e:{default:e}}t.VimeoAnalytics=n.default,t.YouTubeAnalytics=i.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),i=r(a(0));function r(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(e,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"VimeoAnalytics"));return n.authToken=a,n.player=e,n.metadata={content:{},playback:{videoPlayer:"Vimeo"}},n.mostRecentHeartbeat=0,n.isPaused=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"initialize",value:function(){var e=this,t={loaded:this.retrieveMetadata,play:this.trackPlay,pause:this.trackPause,ended:this.trackEnded,timeupdate:this.trackHeartbeat};for(var a in t)this.registerHandler(a,t[a]);this.player.getVideoId().then((function(t){e.retrieveMetadata({id:t})})).catch(console.error)}},{key:"registerHandler",value:function(e,t){var a=this;this.player.on(e,(function(e){a.updateMetadata(e),t.call(a,e)}))}},{key:"trackPlay",value:function(){this.isPaused?(this.track("Video Playback Resumed",this.metadata.playback),this.isPaused=!1):(this.track("Video Playback Started",this.metadata.playback),this.track("Video Content Started",this.metadata.content))}},{key:"trackEnded",value:function(){this.track("Video Playback Completed",this.metadata.playback),this.track("Video Content Completed",this.metadata.content)}},{key:"trackHeartbeat",value:function(){var e=this.mostRecentHeartbeat,t=this.metadata.playback.position;t!==e&&t-e>=10&&(this.track("Video Content Playing",this.metadata.content),this.mostRecentHeartbeat=Math.floor(t))}},{key:"trackPause",value:function(){this.isPaused=!0,this.track("Video Playback Paused",this.metadata.playback)}},{key:"retrieveMetadata",value:function(e){var t=this;return new Promise((function(a,n){var r=e.id;(0,i.default)("https://api.vimeo.com/videos/"+r,{headers:{Authorization:"Bearer "+t.authToken}}).then((function(e){return e.ok?e.json():n(e)})).then((function(e){t.metadata.content.title=e.name,t.metadata.content.description=e.description,t.metadata.content.publisher=e.user.name,t.metadata.playback.position=0,t.metadata.playback.totalLength=e.duration})).catch((function(e){return console.error("Request to Vimeo API Failed with: ",e),n(e)}))}))}},{key:"updateMetadata",value:function(e){var t=this;return new Promise((function(a,n){t.player.getVolume().then((function(n){n&&(t.metadata.playback.sound=100*n),t.metadata.playback.position=e.seconds,a()})).catch(n)}))}}]),t}(r(a(1)).default);t.default=o},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),i=r(a(0));function r(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(e,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"YoutubeAnalytics"));return n.player=e,n.apiKey=a,n.playerLoaded=!1,n.playbackStarted=!1,n.contentStarted=!1,n.isPaused=!1,n.isBuffering=!1,n.isSeeking=!1,n.lastRecordedTime={timeReported:Date.now(),timeElapsed:0},n.metadata=[{playback:{video_player:"youtube"},content:{}}],n.playlistIndex=0,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"initialize",value:function(){window.segmentYoutubeOnStateChange=this.onPlayerStateChange.bind(this),window.segmentYoutubeOnReady=this.onPlayerReady.bind(this),this.player.addEventListener("onReady","segmentYoutubeOnReady"),this.player.addEventListener("onStateChange","segmentYoutubeOnStateChange")}},{key:"onPlayerReady",value:function(e){this.retrieveMetadata()}},{key:"onPlayerStateChange",value:function(e){var t=this.player.getCurrentTime();switch(this.metadata[this.playlistIndex]&&(this.metadata[this.playlistIndex].playback.position=this.metadata[this.playlistIndex].content.position=t,this.metadata[this.playlistIndex].playback.quality=this.player.getPlaybackQuality(),this.metadata[this.playlistIndex].playback.sound=this.player.isMuted()?0:this.player.getVolume()),e.data){case-1:if(this.playerLoaded)break;this.retrieveMetadata(),this.playerLoaded=!0;break;case YT.PlayerState.BUFFERING:this.handleBuffer();break;case YT.PlayerState.PLAYING:this.handlePlay();break;case YT.PlayerState.PAUSED:this.handlePause();break;case YT.PlayerState.ENDED:this.handleEnd()}this.lastRecordedTime={timeReported:Date.now(),timeElapsed:1e3*this.player.getCurrentTime()}}},{key:"retrieveMetadata",value:function(){var e=this;return new Promise((function(t,a){var n=e.player.getVideoData(),r=e.player.getPlaylist()||[n.video_id],o=r.join();(0,i.default)("https://www.googleapis.com/youtube/v3/videos?id="+o+"&part=snippet,contentDetails&key="+e.apiKey).then((function(e){if(!e.ok){var t=new Error("Segment request to Youtube API failed (likely due to a bad API Key. Events will still be sent but will not contain video metadata)");throw t.response=e,t}return e.json()})).then((function(a){e.metadata=[];for(var n=0,i=0;i<r.length;i++){var o=a.items[i];e.metadata.push({content:{title:o.snippet.title,description:o.snippet.description,keywords:o.snippet.tags,channel:o.snippet.channelTitle,airdate:o.snippet.publishedAt}}),n+=s(o.contentDetails.duration)}for(i=0;i<r.length;i++)e.metadata[i].playback={total_length:n,video_player:"youtube"};t()})).catch((function(t){e.metadata=r.map((function(e){return{playback:{video_player:"youtube"},content:{}}})),a(t)}))}))}},{key:"handleBuffer",value:function(){var e=this.determineSeek();this.playbackStarted||(this.playbackStarted=!0,this.track("Video Playback Started",this.metadata[this.playlistIndex].playback)),e&&!this.isSeeking&&(this.isSeeking=!0,this.track("Video Playback Seek Started",this.metadata[this.playlistIndex].playback)),this.isSeeking&&(this.track("Video Playback Seek Completed",this.metadata[this.playlistIndex].playback),this.isSeeking=!1);var t=this.player.getPlaylist();t&&0===this.player.getCurrentTime()&&this.player.getPlaylistIndex()!==this.playlistIndex&&(this.contentStarted=!1,this.playlistIndex===t.length-1&&0===this.player.getPlaylistIndex()&&(this.track("Video Playback Completed",this.metadata[this.player.getPlaylistIndex()].playback),this.track("Video Playback Started",this.metadata[this.player.getPlaylistIndex()].playback))),this.track("Video Playback Buffer Started",this.metadata[this.playlistIndex].playback),this.isBuffering=!0}},{key:"handlePlay",value:function(){this.contentStarted||(this.playlistIndex=this.player.getPlaylistIndex(),-1===this.playlistIndex&&(this.playlistIndex=0),this.track("Video Content Started",this.metadata[this.playlistIndex].content),this.contentStarted=!0),this.isBuffering&&(this.track("Video Playback Buffer Completed",this.metadata[this.playlistIndex].playback),this.isBuffering=!1),this.isPaused&&(this.track("Video Playback Resumed",this.metadata[this.playlistIndex].playback),this.isPaused=!1)}},{key:"handlePause",value:function(){var e=this.determineSeek();this.isBuffering&&(this.track("Video Playback Buffer Completed",this.metadata[this.playlistIndex].playback),this.isBuffering=!1),this.isPaused||(e?(this.track("Video Playback Seek Started",this.metadata[this.playlistIndex].playback),this.isSeeking=!0):(this.track("Video Playback Paused",this.metadata[this.playlistIndex].playback),this.isPaused=!0))}},{key:"handleEnd",value:function(){this.track("Video Content Completed",this.metadata[this.playlistIndex].content),this.contentStarted=!1;var e=this.player.getPlaylistIndex(),t=this.player.getPlaylist();(t&&e===t.length-1||-1===e)&&(this.track("Video Playback Completed",this.metadata[this.playlistIndex].playback),this.playbackStarted=!1)}},{key:"determineSeek",value:function(){var e=this.isPaused||this.isBuffering?0:Date.now()-this.lastRecordedTime.timeReported,t=1e3*this.player.getCurrentTime()-this.lastRecordedTime.timeElapsed;return Math.abs(e-t)>2e3}}]),t}(r(a(1)).default);function s(e){var t=e.match(/PT(\d+H)?(\d+M)?(\d+S)?/);return t=t.slice(1).map((function(e){if(null!=e)return e.replace(/\D/,"")})),3600*(parseInt(t[0])||0)+60*(parseInt(t[1])||0)+(parseInt(t[2])||0)}t.default=o}])}}]);
1
+ (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[8],{807:function(e,t,a){window,e.exports=function(e){var t={};function a(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=2)}([function(e,t,a){"use strict";a.r(t);var n="function"==typeof fetch?fetch.bind():function(e,t){return t=t||{},new Promise((function(a,n){var i=new XMLHttpRequest;for(var r in i.open(t.method||"get",e,!0),t.headers)i.setRequestHeader(r,t.headers[r]);function o(){var e,t=[],a=[],n={};return i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(i,r,o){t.push(r=r.toLowerCase()),a.push([r,o]),e=n[r],n[r]=e?e+","+o:o})),{ok:2==(i.status/100|0),status:i.status,statusText:i.statusText,url:i.responseURL,clone:o,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},headers:{keys:function(){return t},entries:function(){return a},get:function(e){return n[e.toLowerCase()]},has:function(e){return e.toLowerCase()in n}}}}i.withCredentials="include"==t.credentials,i.onload=function(){a(o())},i.onerror=n,i.send(t.body)}))};t.default=n},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),i=function(){function e(t,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pluginName=t}return n(e,[{key:"track",value:function(e,t){window.analytics.track(e,t,{integration:{name:this.pluginName}})}}]),e}();t.default=i},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeAnalytics=t.VimeoAnalytics=void 0;var n=r(a(3)),i=r(a(4));function r(e){return e&&e.__esModule?e:{default:e}}t.VimeoAnalytics=n.default,t.YouTubeAnalytics=i.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),i=r(a(0));function r(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(e,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"VimeoAnalytics"));return n.authToken=a,n.player=e,n.metadata={content:{},playback:{videoPlayer:"Vimeo"}},n.mostRecentHeartbeat=0,n.isPaused=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"initialize",value:function(){var e=this,t={loaded:this.retrieveMetadata,play:this.trackPlay,pause:this.trackPause,ended:this.trackEnded,timeupdate:this.trackHeartbeat};for(var a in t)this.registerHandler(a,t[a]);this.player.getVideoId().then((function(t){e.retrieveMetadata({id:t})})).catch(console.error)}},{key:"registerHandler",value:function(e,t){var a=this;this.player.on(e,(function(e){a.updateMetadata(e),t.call(a,e)}))}},{key:"trackPlay",value:function(){this.isPaused?(this.track("Video Playback Resumed",this.metadata.playback),this.isPaused=!1):(this.track("Video Playback Started",this.metadata.playback),this.track("Video Content Started",this.metadata.content))}},{key:"trackEnded",value:function(){this.track("Video Playback Completed",this.metadata.playback),this.track("Video Content Completed",this.metadata.content)}},{key:"trackHeartbeat",value:function(){var e=this.mostRecentHeartbeat,t=this.metadata.playback.position;t!==e&&t-e>=10&&(this.track("Video Content Playing",this.metadata.content),this.mostRecentHeartbeat=Math.floor(t))}},{key:"trackPause",value:function(){this.isPaused=!0,this.track("Video Playback Paused",this.metadata.playback)}},{key:"retrieveMetadata",value:function(e){var t=this;return new Promise((function(a,n){var r=e.id;(0,i.default)("https://api.vimeo.com/videos/"+r,{headers:{Authorization:"Bearer "+t.authToken}}).then((function(e){return e.ok?e.json():n(e)})).then((function(e){t.metadata.content.title=e.name,t.metadata.content.description=e.description,t.metadata.content.publisher=e.user.name,t.metadata.playback.position=0,t.metadata.playback.totalLength=e.duration})).catch((function(e){return console.error("Request to Vimeo API Failed with: ",e),n(e)}))}))}},{key:"updateMetadata",value:function(e){var t=this;return new Promise((function(a,n){t.player.getVolume().then((function(n){n&&(t.metadata.playback.sound=100*n),t.metadata.playback.position=e.seconds,a()})).catch(n)}))}}]),t}(r(a(1)).default);t.default=o},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),i=r(a(0));function r(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(e,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"YoutubeAnalytics"));return n.player=e,n.apiKey=a,n.playerLoaded=!1,n.playbackStarted=!1,n.contentStarted=!1,n.isPaused=!1,n.isBuffering=!1,n.isSeeking=!1,n.lastRecordedTime={timeReported:Date.now(),timeElapsed:0},n.metadata=[{playback:{video_player:"youtube"},content:{}}],n.playlistIndex=0,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"initialize",value:function(){window.segmentYoutubeOnStateChange=this.onPlayerStateChange.bind(this),window.segmentYoutubeOnReady=this.onPlayerReady.bind(this),this.player.addEventListener("onReady","segmentYoutubeOnReady"),this.player.addEventListener("onStateChange","segmentYoutubeOnStateChange")}},{key:"onPlayerReady",value:function(e){this.retrieveMetadata()}},{key:"onPlayerStateChange",value:function(e){var t=this.player.getCurrentTime();switch(this.metadata[this.playlistIndex]&&(this.metadata[this.playlistIndex].playback.position=this.metadata[this.playlistIndex].content.position=t,this.metadata[this.playlistIndex].playback.quality=this.player.getPlaybackQuality(),this.metadata[this.playlistIndex].playback.sound=this.player.isMuted()?0:this.player.getVolume()),e.data){case-1:if(this.playerLoaded)break;this.retrieveMetadata(),this.playerLoaded=!0;break;case YT.PlayerState.BUFFERING:this.handleBuffer();break;case YT.PlayerState.PLAYING:this.handlePlay();break;case YT.PlayerState.PAUSED:this.handlePause();break;case YT.PlayerState.ENDED:this.handleEnd()}this.lastRecordedTime={timeReported:Date.now(),timeElapsed:1e3*this.player.getCurrentTime()}}},{key:"retrieveMetadata",value:function(){var e=this;return new Promise((function(t,a){var n=e.player.getVideoData(),r=e.player.getPlaylist()||[n.video_id],o=r.join();(0,i.default)("https://www.googleapis.com/youtube/v3/videos?id="+o+"&part=snippet,contentDetails&key="+e.apiKey).then((function(e){if(!e.ok){var t=new Error("Segment request to Youtube API failed (likely due to a bad API Key. Events will still be sent but will not contain video metadata)");throw t.response=e,t}return e.json()})).then((function(a){e.metadata=[];for(var n=0,i=0;i<r.length;i++){var o=a.items[i];e.metadata.push({content:{title:o.snippet.title,description:o.snippet.description,keywords:o.snippet.tags,channel:o.snippet.channelTitle,airdate:o.snippet.publishedAt}}),n+=s(o.contentDetails.duration)}for(i=0;i<r.length;i++)e.metadata[i].playback={total_length:n,video_player:"youtube"};t()})).catch((function(t){e.metadata=r.map((function(e){return{playback:{video_player:"youtube"},content:{}}})),a(t)}))}))}},{key:"handleBuffer",value:function(){var e=this.determineSeek();this.playbackStarted||(this.playbackStarted=!0,this.track("Video Playback Started",this.metadata[this.playlistIndex].playback)),e&&!this.isSeeking&&(this.isSeeking=!0,this.track("Video Playback Seek Started",this.metadata[this.playlistIndex].playback)),this.isSeeking&&(this.track("Video Playback Seek Completed",this.metadata[this.playlistIndex].playback),this.isSeeking=!1);var t=this.player.getPlaylist();t&&0===this.player.getCurrentTime()&&this.player.getPlaylistIndex()!==this.playlistIndex&&(this.contentStarted=!1,this.playlistIndex===t.length-1&&0===this.player.getPlaylistIndex()&&(this.track("Video Playback Completed",this.metadata[this.player.getPlaylistIndex()].playback),this.track("Video Playback Started",this.metadata[this.player.getPlaylistIndex()].playback))),this.track("Video Playback Buffer Started",this.metadata[this.playlistIndex].playback),this.isBuffering=!0}},{key:"handlePlay",value:function(){this.contentStarted||(this.playlistIndex=this.player.getPlaylistIndex(),-1===this.playlistIndex&&(this.playlistIndex=0),this.track("Video Content Started",this.metadata[this.playlistIndex].content),this.contentStarted=!0),this.isBuffering&&(this.track("Video Playback Buffer Completed",this.metadata[this.playlistIndex].playback),this.isBuffering=!1),this.isPaused&&(this.track("Video Playback Resumed",this.metadata[this.playlistIndex].playback),this.isPaused=!1)}},{key:"handlePause",value:function(){var e=this.determineSeek();this.isBuffering&&(this.track("Video Playback Buffer Completed",this.metadata[this.playlistIndex].playback),this.isBuffering=!1),this.isPaused||(e?(this.track("Video Playback Seek Started",this.metadata[this.playlistIndex].playback),this.isSeeking=!0):(this.track("Video Playback Paused",this.metadata[this.playlistIndex].playback),this.isPaused=!0))}},{key:"handleEnd",value:function(){this.track("Video Content Completed",this.metadata[this.playlistIndex].content),this.contentStarted=!1;var e=this.player.getPlaylistIndex(),t=this.player.getPlaylist();(t&&e===t.length-1||-1===e)&&(this.track("Video Playback Completed",this.metadata[this.playlistIndex].playback),this.playbackStarted=!1)}},{key:"determineSeek",value:function(){var e=this.isPaused||this.isBuffering?0:Date.now()-this.lastRecordedTime.timeReported,t=1e3*this.player.getCurrentTime()-this.lastRecordedTime.timeElapsed;return Math.abs(e-t)>2e3}}]),t}(r(a(1)).default);function s(e){var t=e.match(/PT(\d+H)?(\d+M)?(\d+S)?/);return t=t.slice(1).map((function(e){if(null!=e)return e.replace(/\D/,"")})),3600*(parseInt(t[0])||0)+60*(parseInt(t[1])||0)+(parseInt(t[2])||0)}t.default=o}])}}]);
@@ -1 +1 @@
1
- (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[9],{809:function(t,e){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,o=i(e);o;)o=i(e=o.ownerDocument);return e}(),e=[],o=null,n=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return o||(o=function(t,o){n=t&&o?l(t,o):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),o},s._resetCrossOriginUpdater=function(){o=null,n=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,o){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==o[e-1]}))},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var o=e.defaultView;if(o&&-1==this._monitoringDocuments.indexOf(e)){var n=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=o.setInterval(n,this.POLL_INTERVAL):(h(o,"resize",n,!0),h(e,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in o&&(s=new o.MutationObserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),c(t,"resize",n,!0)),c(e,"scroll",n,!0),s&&s.disconnect()}));var u=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=u){var a=i(e);a&&this._monitorIntersections(a.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var o=this._monitoringDocuments.indexOf(e);if(-1!=o){var n=this.root&&(this.root.ownerDocument||this.root)||t,r=this._observationTargets.some((function(t){var o=t.element.ownerDocument;if(o==e)return!0;for(;o&&o!=n;){var r=i(o);if((o=r&&r.ownerDocument)==e)return!0}return!1}));if(!r){var s=this._monitoringUnsubscribes[o];if(this._monitoringDocuments.splice(o,1),this._monitoringUnsubscribes.splice(o,1),s(),e!=n){var h=i(e);h&&this._unmonitorIntersections(h.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!o||n){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(n){var i=n.element,s=u(i),h=this._rootContainsTarget(i),c=n.entry,a=t&&h&&this._computeTargetAndRootIntersection(i,s,e),l=null;this._rootContainsTarget(i)?o&&!this.root||(l=e):l={top:0,bottom:0,left:0,right:0,width:0,height:0};var f=n.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:l,intersectionRect:a});c?t&&h?this._hasCrossedThreshold(c,f)&&this._queuedEntries.push(f):c&&c.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,i,r){if("none"!=window.getComputedStyle(e).display){for(var s,h,c,a,f,d,g,m,v=i,w=p(e),_=!1;!_&&w;){var b=null,y=1==w.nodeType?window.getComputedStyle(w):{};if("none"==y.display)return null;if(w==this.root||9==w.nodeType)if(_=!0,w==this.root||w==t)o&&!this.root?!n||0==n.width&&0==n.height?(w=null,b=null,v=null):b=n:b=r;else{var I=p(w),E=I&&u(I),T=I&&this._computeTargetAndRootIntersection(I,E,r);E&&T?(w=I,b=l(E,T)):(w=null,v=null)}else{var R=w.ownerDocument;w!=R.body&&w!=R.documentElement&&"visible"!=y.overflow&&(b=u(w))}if(b&&(s=b,h=v,c=void 0,a=void 0,f=void 0,d=void 0,g=void 0,m=void 0,c=Math.max(s.top,h.top),a=Math.min(s.bottom,h.bottom),f=Math.max(s.left,h.left),d=Math.min(s.right,h.right),m=a-c,v=(g=d-f)>=0&&m>=0&&{top:c,bottom:a,left:f,right:d,width:g,height:m}||null),!v)break;w=w&&p(w)}return v}},s.prototype._getRootRect=function(){var e;if(this.root&&!d(this.root))e=u(this.root);else{var o=d(this.root)?this.root:t,n=o.documentElement,i=o.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,o){return"px"==e.unit?e.value:e.value*(o%2?t.width:t.height)/100})),o={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return o.width=o.right-o.left,o.height=o.bottom-o.top,o},s.prototype._hasCrossedThreshold=function(t,e){var o=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(o!==n)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==o||r==n||r<o!=r<n)return!0}},s.prototype._rootIsInDom=function(){return!this.root||f(t,this.root)},s.prototype._rootContainsTarget=function(e){var o=this.root&&(this.root.ownerDocument||this.root)||t;return f(o,e)&&(!this.root||o==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=a(t.rootBounds),this.boundingClientRect=a(t.boundingClientRect),this.intersectionRect=a(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,o=e.width*e.height,n=this.intersectionRect,i=n.width*n.height;this.intersectionRatio=o?Number((i/o).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var o,n,i,r=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType&&9!=r.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(o=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout((function(){o(),i=null}),n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function h(t,e,o,n){"function"==typeof t.addEventListener?t.addEventListener(e,o,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,o)}function c(t,e,o,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,o,n||!1):"function"==typeof t.detachEvent&&t.detachEvent("on"+e,o)}function u(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function l(t,e){var o=e.top-t.top,n=e.left-t.left;return{top:o,left:n,height:e.height,width:e.width,bottom:o+e.height,right:n+e.width}}function f(t,e){for(var o=e;o;){if(o==t)return!0;o=p(o)}return!1}function p(e){var o=e.parentNode;return 9==e.nodeType&&e!=t?i(e):(o&&o.assignedSlot&&(o=o.assignedSlot.parentNode),o&&11==o.nodeType&&o.host?o.host:o)}function d(t){return t&&9===t.nodeType}}()}}]);
1
+ (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[9],{814:function(t,e){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,o=i(e);o;)o=i(e=o.ownerDocument);return e}(),e=[],o=null,n=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return o||(o=function(t,o){n=t&&o?l(t,o):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),o},s._resetCrossOriginUpdater=function(){o=null,n=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,o){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==o[e-1]}))},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var o=e.defaultView;if(o&&-1==this._monitoringDocuments.indexOf(e)){var n=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=o.setInterval(n,this.POLL_INTERVAL):(h(o,"resize",n,!0),h(e,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in o&&(s=new o.MutationObserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),c(t,"resize",n,!0)),c(e,"scroll",n,!0),s&&s.disconnect()}));var u=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=u){var a=i(e);a&&this._monitorIntersections(a.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var o=this._monitoringDocuments.indexOf(e);if(-1!=o){var n=this.root&&(this.root.ownerDocument||this.root)||t,r=this._observationTargets.some((function(t){var o=t.element.ownerDocument;if(o==e)return!0;for(;o&&o!=n;){var r=i(o);if((o=r&&r.ownerDocument)==e)return!0}return!1}));if(!r){var s=this._monitoringUnsubscribes[o];if(this._monitoringDocuments.splice(o,1),this._monitoringUnsubscribes.splice(o,1),s(),e!=n){var h=i(e);h&&this._unmonitorIntersections(h.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!o||n){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(n){var i=n.element,s=u(i),h=this._rootContainsTarget(i),c=n.entry,a=t&&h&&this._computeTargetAndRootIntersection(i,s,e),l=null;this._rootContainsTarget(i)?o&&!this.root||(l=e):l={top:0,bottom:0,left:0,right:0,width:0,height:0};var f=n.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:l,intersectionRect:a});c?t&&h?this._hasCrossedThreshold(c,f)&&this._queuedEntries.push(f):c&&c.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,i,r){if("none"!=window.getComputedStyle(e).display){for(var s,h,c,a,f,d,g,m,v=i,w=p(e),_=!1;!_&&w;){var b=null,y=1==w.nodeType?window.getComputedStyle(w):{};if("none"==y.display)return null;if(w==this.root||9==w.nodeType)if(_=!0,w==this.root||w==t)o&&!this.root?!n||0==n.width&&0==n.height?(w=null,b=null,v=null):b=n:b=r;else{var I=p(w),E=I&&u(I),T=I&&this._computeTargetAndRootIntersection(I,E,r);E&&T?(w=I,b=l(E,T)):(w=null,v=null)}else{var R=w.ownerDocument;w!=R.body&&w!=R.documentElement&&"visible"!=y.overflow&&(b=u(w))}if(b&&(s=b,h=v,c=void 0,a=void 0,f=void 0,d=void 0,g=void 0,m=void 0,c=Math.max(s.top,h.top),a=Math.min(s.bottom,h.bottom),f=Math.max(s.left,h.left),d=Math.min(s.right,h.right),m=a-c,v=(g=d-f)>=0&&m>=0&&{top:c,bottom:a,left:f,right:d,width:g,height:m}||null),!v)break;w=w&&p(w)}return v}},s.prototype._getRootRect=function(){var e;if(this.root&&!d(this.root))e=u(this.root);else{var o=d(this.root)?this.root:t,n=o.documentElement,i=o.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,o){return"px"==e.unit?e.value:e.value*(o%2?t.width:t.height)/100})),o={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return o.width=o.right-o.left,o.height=o.bottom-o.top,o},s.prototype._hasCrossedThreshold=function(t,e){var o=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(o!==n)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==o||r==n||r<o!=r<n)return!0}},s.prototype._rootIsInDom=function(){return!this.root||f(t,this.root)},s.prototype._rootContainsTarget=function(e){var o=this.root&&(this.root.ownerDocument||this.root)||t;return f(o,e)&&(!this.root||o==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=a(t.rootBounds),this.boundingClientRect=a(t.boundingClientRect),this.intersectionRect=a(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,o=e.width*e.height,n=this.intersectionRect,i=n.width*n.height;this.intersectionRatio=o?Number((i/o).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var o,n,i,r=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType&&9!=r.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(o=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout((function(){o(),i=null}),n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function h(t,e,o,n){"function"==typeof t.addEventListener?t.addEventListener(e,o,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,o)}function c(t,e,o,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,o,n||!1):"function"==typeof t.detachEvent&&t.detachEvent("on"+e,o)}function u(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function l(t,e){var o=e.top-t.top,n=e.left-t.left;return{top:o,left:n,height:e.height,width:e.width,bottom:o+e.height,right:n+e.width}}function f(t,e){for(var o=e;o;){if(o==t)return!0;o=p(o)}return!1}function p(e){var o=e.parentNode;return 9==e.nodeType&&e!=t?i(e):(o&&o.assignedSlot&&(o=o.assignedSlot.parentNode),o&&11==o.nodeType&&o.host?o.host:o)}function d(t){return t&&9===t.nodeType}}()}}]);