{
  "version": 3,
  "sources": ["/cdn/shop/t/6/assets/product-form.js?cb=20260407-7"],
  "sourcesContent": ["import { Component } from '@theme/component';\nimport { fetchConfig, onAnimationEnd, preloadImage } from '@theme/utilities';\nimport { ThemeEvents, CartAddEvent, CartErrorEvent, CartUpdateEvent, VariantUpdateEvent } from '@theme/events';\nimport { cartPerformance } from '@theme/performance';\nimport { morph } from '@theme/morph';\n\nexport const ADD_TO_CART_TEXT_ANIMATION_DURATION = 2000;\n\n// Error message display duration - gives users time to read the message\nconst ERROR_MESSAGE_DISPLAY_DURATION = 10000;\n\n// Button re-enable delay after error - prevents rapid repeat attempts\nconst ERROR_BUTTON_REENABLE_DELAY = 1000;\n\n// Success message display duration for screen readers\nconst SUCCESS_MESSAGE_DISPLAY_DURATION = 5000;\n\n/**\n * A custom element that manages an add to cart button.\n *\n * @typedef {object} AddToCartRefs\n * @property {HTMLButtonElement} addToCartButton - The add to cart button.\n * @extends Component<AddToCartRefs>\n */\nexport class AddToCartComponent extends Component {\n  requiredRefs = ['addToCartButton'];\n\n  /** @type {number | undefined} */\n  #animationTimeout;\n\n  /** @type {number | undefined} */\n  #cleanupTimeout;\n\n  connectedCallback() {\n    super.connectedCallback();\n\n    this.addEventListener('pointerenter', this.#preloadImage);\n  }\n\n  disconnectedCallback() {\n    super.disconnectedCallback();\n\n    if (this.#animationTimeout) clearTimeout(this.#animationTimeout);\n    if (this.#cleanupTimeout) clearTimeout(this.#cleanupTimeout);\n    this.removeEventListener('pointerenter', this.#preloadImage);\n  }\n\n  /**\n   * Disables the add to cart button.\n   */\n  disable() {\n    this.refs.addToCartButton.disabled = true;\n  }\n\n  /**\n   * Enables the add to cart button.\n   */\n  enable() {\n    this.refs.addToCartButton.disabled = false;\n  }\n\n  /**\n   * Handles the click event for the add to cart button.\n   * @param {MouseEvent & {target: HTMLElement}} event - The click event.\n   */\n  handleClick(event) {\n    const form = this.closest('form');\n    if (!form?.checkValidity()) return;\n\n    // Check if adding would exceed max before animating\n    const quantitySelector = /** @type {any} */ (form.querySelector('quantity-selector-component'));\n    if (quantitySelector?.canAddToCart) {\n      const validation = quantitySelector.canAddToCart();\n      // Don't animate if it would exceed max\n      if (!validation.canAdd) {\n        return;\n      }\n    }\n\n    this.animateAddToCart();\n\n    const animationEnabled = this.dataset.addToCartAnimation === 'true';\n\n    if (animationEnabled && !event.target.closest('.quick-add-modal')) {\n      this.#animateFlyToCart();\n    }\n  }\n\n  #preloadImage = () => {\n    const image = this.dataset.productVariantMedia;\n\n    if (!image) return;\n\n    preloadImage(image);\n  };\n\n  /**\n   * Animates the fly to cart animation.\n   */\n  #animateFlyToCart() {\n    const { addToCartButton } = this.refs;\n    const cartIcon = document.querySelector('.header-actions__cart-icon');\n\n    const image = this.dataset.productVariantMedia;\n\n    if (!cartIcon || !addToCartButton || !image) return;\n\n    const flyToCartElement = /** @type {FlyToCart} */ (document.createElement('fly-to-cart'));\n\n    flyToCartElement.style.setProperty('background-image', `url(${image})`);\n    flyToCartElement.source = addToCartButton;\n    flyToCartElement.destination = cartIcon;\n\n    document.body.appendChild(flyToCartElement);\n  }\n\n  /**\n   * Animates the add to cart button.\n   */\n  animateAddToCart() {\n    const { addToCartButton } = this.refs;\n\n    if (this.#animationTimeout) clearTimeout(this.#animationTimeout);\n    if (this.#cleanupTimeout) clearTimeout(this.#cleanupTimeout);\n\n    if (!addToCartButton.classList.contains('atc-added')) {\n      addToCartButton.classList.add('atc-added');\n    }\n\n    this.#animationTimeout = setTimeout(() => {\n      this.#cleanupTimeout = setTimeout(() => {\n        this.refs.addToCartButton.classList.remove('atc-added');\n      }, 10);\n    }, ADD_TO_CART_TEXT_ANIMATION_DURATION);\n  }\n}\n\nif (!customElements.get('add-to-cart-component')) {\n  customElements.define('add-to-cart-component', AddToCartComponent);\n}\n\n/**\n * A custom element that manages a product form.\n *\n * @typedef {object} ProductFormRefs\n * @property {HTMLInputElement} variantId - The form input for submitting the variant ID.\n * @property {AddToCartComponent | undefined} addToCartButtonContainer - The add to cart button container element.\n * @property {HTMLElement | undefined} addToCartTextError - The add to cart text error.\n * @property {HTMLElement | undefined} acceleratedCheckoutButtonContainer - The accelerated checkout button container element.\n * @property {HTMLElement} liveRegion - The live region.\n * @property {HTMLElement | undefined} quantityLabelCartCount - The quantity label cart count element.\n * @property {HTMLElement | undefined} quantityRules - The quantity rules element.\n * @property {HTMLElement | undefined} productFormButtons - The product form buttons container.\n *\n * @extends Component<ProductFormRefs>\n */\nclass ProductFormComponent extends Component {\n  requiredRefs = ['variantId', 'liveRegion'];\n  #abortController = new AbortController();\n\n  /** @type {number | undefined} */\n  #timeout;\n\n  connectedCallback() {\n    super.connectedCallback();\n\n    const { signal } = this.#abortController;\n    const target = this.closest('.shopify-section, dialog, product-card');\n    target?.addEventListener(ThemeEvents.variantUpdate, this.#onVariantUpdate, { signal });\n    target?.addEventListener(ThemeEvents.variantSelected, this.#onVariantSelected, { signal });\n\n    // Listen for cart updates to sync data-cart-quantity\n    document.addEventListener(ThemeEvents.cartUpdate, this.#onCartUpdate, { signal });\n  }\n\n  disconnectedCallback() {\n    super.disconnectedCallback();\n\n    this.#abortController.abort();\n  }\n\n  /**\n   * Fetches cart and updates quantity selector for current variant\n   * @returns {Promise<number>} The cart quantity for the current variant\n   */\n  async #fetchAndUpdateCartQuantity() {\n    const variantIdInput = /** @type {HTMLInputElement | null} */ (this.querySelector('input[name=\"id\"]'));\n    if (!variantIdInput?.value) return 0;\n\n    try {\n      const response = await fetch('/cart.js');\n      const cart = await response.json();\n\n      const cartItem = cart.items.find(\n        /** @param {any} item */\n        (item) => item.variant_id.toString() === variantIdInput.value.toString()\n      );\n      const cartQty = cartItem ? cartItem.quantity : 0;\n\n      // Use public API to update quantity selector\n      const quantitySelector = /** @type {any} */ (this.querySelector('quantity-selector-component'));\n      if (quantitySelector?.setCartQuantity) {\n        quantitySelector.setCartQuantity(cartQty);\n      }\n\n      // Update quantity label if it exists\n      this.#updateQuantityLabel(cartQty);\n\n      return cartQty;\n    } catch (error) {\n      console.error('Failed to fetch cart quantity:', error);\n      return 0;\n    }\n  }\n\n  /**\n   * Updates data-cart-quantity when cart is updated from elsewhere\n   * @param {CartUpdateEvent|CartAddEvent} event\n   */\n  #onCartUpdate = async (event) => {\n    // Skip if this event came from this component\n    if (event.detail?.sourceId === this.id || event.detail?.data?.source === 'product-form-component') return;\n\n    await this.#fetchAndUpdateCartQuantity();\n  };\n\n  /**\n   * Handles the submit event for the product form.\n   *\n   * @param {Event} event - The submit event.\n   */\n  handleSubmit(event) {\n    const { addToCartTextError, addToCartButtonContainer } = this.refs;\n    // Stop default behaviour from the browser\n    event.preventDefault();\n\n    if (this.#timeout) clearTimeout(this.#timeout);\n\n    // Check if the add to cart button is disabled and do an early return if it is\n    if (addToCartButtonContainer?.refs.addToCartButton?.disabled) return;\n\n    // Send the add to cart information to the cart\n    const form = this.querySelector('form');\n\n    if (!form) throw new Error('Product form element missing');\n\n    const quantitySelector = /** @type {any} */ (this.querySelector('quantity-selector-component'));\n    if (quantitySelector?.canAddToCart) {\n      const validation = quantitySelector.canAddToCart();\n\n      if (!validation.canAdd) {\n        addToCartButtonContainer?.disable();\n\n        const errorTemplate = this.dataset.quantityErrorMax || '';\n        const errorMessage = errorTemplate.replace('{{ maximum }}', validation.maxQuantity.toString());\n        if (addToCartTextError) {\n          addToCartTextError.classList.remove('hidden');\n\n          const textNode = addToCartTextError.childNodes[2];\n          if (textNode) {\n            textNode.textContent = errorMessage;\n          } else {\n            const newTextNode = document.createTextNode(errorMessage);\n            addToCartTextError.appendChild(newTextNode);\n          }\n\n          this.#setLiveRegionText(errorMessage);\n\n          if (this.#timeout) clearTimeout(this.#timeout);\n          this.#timeout = setTimeout(() => {\n            if (!addToCartTextError) return;\n            addToCartTextError.classList.add('hidden');\n            this.#clearLiveRegionText();\n          }, ERROR_MESSAGE_DISPLAY_DURATION);\n        }\n\n        setTimeout(() => {\n          addToCartButtonContainer?.enable();\n        }, ERROR_BUTTON_REENABLE_DELAY);\n\n        return;\n      }\n    }\n\n    const formData = new FormData(form);\n\n    const cartItemsComponents = document.querySelectorAll('cart-items-component');\n    let cartItemComponentsSectionIds = [];\n    cartItemsComponents.forEach((item) => {\n      if (item instanceof HTMLElement && item.dataset.sectionId) {\n        cartItemComponentsSectionIds.push(item.dataset.sectionId);\n      }\n      formData.append('sections', cartItemComponentsSectionIds.join(','));\n    });\n\n    const fetchCfg = fetchConfig('javascript', { body: formData });\n\n    fetch(Theme.routes.cart_add_url, {\n      ...fetchCfg,\n      headers: {\n        ...fetchCfg.headers,\n        Accept: 'text/html',\n      },\n    })\n      .then((response) => response.json())\n      .then((response) => {\n        if (response.status) {\n          this.dispatchEvent(\n            new CartErrorEvent(form.getAttribute('id') || '', response.message, response.description, response.errors)\n          );\n\n          if (!addToCartTextError) return;\n          addToCartTextError.classList.remove('hidden');\n\n          // Reuse the text node if the user is spam-clicking\n          const textNode = addToCartTextError.childNodes[2];\n          if (textNode) {\n            textNode.textContent = response.message;\n          } else {\n            const newTextNode = document.createTextNode(response.message);\n            addToCartTextError.appendChild(newTextNode);\n          }\n\n          // Create or get existing error live region for screen readers\n          this.#setLiveRegionText(response.message);\n\n          this.#timeout = setTimeout(() => {\n            if (!addToCartTextError) return;\n            addToCartTextError.classList.add('hidden');\n\n            // Clear the announcement\n            this.#clearLiveRegionText();\n          }, ERROR_MESSAGE_DISPLAY_DURATION);\n\n          // When we add more than the maximum amount of items to the cart, we need to dispatch a cart update event\n          // because our back-end still adds the max allowed amount to the cart.\n          this.dispatchEvent(\n            new CartAddEvent({}, this.id, {\n              didError: true,\n              source: 'product-form-component',\n              itemCount: Number(formData.get('quantity')) || Number(this.dataset.quantityDefault),\n              productId: this.dataset.productId,\n            })\n          );\n\n          return;\n        } else {\n          const id = formData.get('id');\n\n          if (addToCartTextError) {\n            addToCartTextError.classList.add('hidden');\n            addToCartTextError.removeAttribute('aria-live');\n          }\n\n          if (!id) throw new Error('Form ID is required');\n\n          // Add aria-live region to inform screen readers that the item was added\n          if (this.refs.addToCartButtonContainer?.refs.addToCartButton) {\n            const addToCartButton = this.refs.addToCartButtonContainer.refs.addToCartButton;\n            const addedTextElement = addToCartButton.querySelector('.add-to-cart-text--added');\n            const addedText = addedTextElement?.textContent?.trim() || Theme.translations.added;\n\n            this.#setLiveRegionText(addedText);\n\n            setTimeout(() => {\n              this.#clearLiveRegionText();\n            }, SUCCESS_MESSAGE_DISPLAY_DURATION);\n          }\n\n          // Fetch the updated cart to get the actual total quantity for this variant\n          this.#fetchAndUpdateCartQuantity();\n\n          this.dispatchEvent(\n            new CartAddEvent({}, id.toString(), {\n              source: 'product-form-component',\n              itemCount: Number(formData.get('quantity')) || Number(this.dataset.quantityDefault),\n              productId: this.dataset.productId,\n              sections: response.sections,\n            })\n          );\n        }\n      })\n      .catch((error) => {\n        console.error(error);\n      })\n      .finally(() => {\n        cartPerformance.measureFromEvent('add:user-action', event);\n      });\n  }\n\n  /**\n   * Updates the quantity label with the current cart quantity\n   * @param {number} cartQty - The quantity in cart\n   */\n  #updateQuantityLabel(cartQty) {\n    const quantityLabel = this.refs.quantityLabelCartCount;\n    if (quantityLabel) {\n      const inCartText = quantityLabel.textContent?.match(/\\((\\d+)\\s+(.+)\\)/);\n      if (inCartText && inCartText[2]) {\n        quantityLabel.textContent = `(${cartQty} ${inCartText[2]})`;\n      }\n\n      // Show/hide based on quantity\n      quantityLabel.classList.toggle('hidden', cartQty === 0);\n    }\n  }\n\n  /**\n   * @param {*} text\n   */\n  #setLiveRegionText(text) {\n    const liveRegion = this.refs.liveRegion;\n    liveRegion.textContent = text;\n  }\n\n  #clearLiveRegionText() {\n    const liveRegion = this.refs.liveRegion;\n    liveRegion.textContent = '';\n  }\n\n  /**\n   * Morphs or removes/adds an element based on current and new element states\n   * @param {Element | null | undefined} currentElement - The current element in the DOM\n   * @param {Element | null | undefined} newElement - The new element from the server response\n   * @param {Element | null} [insertReferenceElement] - Element to insert before if adding new element\n   */\n  #morphOrUpdateElement(currentElement, newElement, insertReferenceElement = null) {\n    if (currentElement && newElement) {\n      morph(currentElement, newElement);\n    } else if (currentElement && !newElement) {\n      currentElement.remove();\n    } else if (!currentElement && newElement && insertReferenceElement) {\n      insertReferenceElement.insertAdjacentElement('beforebegin', /** @type {Element} */ (newElement.cloneNode(true)));\n    }\n  }\n\n  /**\n   * @param {VariantUpdateEvent} event\n   */\n  #onVariantUpdate = async (event) => {\n    if (event.detail.data.newProduct) {\n      this.dataset.productId = event.detail.data.newProduct.id;\n    } else if (event.detail.data.productId !== this.dataset.productId) {\n      return;\n    }\n\n    const { variantId, addToCartButtonContainer } = this.refs;\n\n    const currentAddToCartButton = addToCartButtonContainer?.refs.addToCartButton;\n    const newAddToCartButton = event.detail.data.html.querySelector('[ref=\"addToCartButton\"]');\n\n    // Update the variant ID\n    variantId.value = event.detail.resource?.id ?? '';\n\n    if (!currentAddToCartButton && !this.refs.acceleratedCheckoutButtonContainer) return;\n\n    // Update the button state\n    if (currentAddToCartButton) {\n      if (event.detail.resource == null || event.detail.resource.available == false) {\n        addToCartButtonContainer.disable();\n      } else {\n        addToCartButtonContainer.enable();\n      }\n\n      // Update the add to cart button text and icon\n      if (newAddToCartButton) {\n        morph(currentAddToCartButton, newAddToCartButton);\n      }\n    }\n\n    if (this.refs.acceleratedCheckoutButtonContainer) {\n      if (event.detail.resource == null || event.detail.resource.available == false) {\n        this.refs.acceleratedCheckoutButtonContainer?.setAttribute('hidden', 'true');\n      } else {\n        this.refs.acceleratedCheckoutButtonContainer?.removeAttribute('hidden');\n      }\n    }\n\n    // Set the data attribute for the add to cart button to the product variant media if it exists\n    if (event.detail.resource) {\n      const productVariantMedia = event.detail.resource.featured_media?.preview_image?.src;\n      productVariantMedia &&\n        addToCartButtonContainer?.setAttribute('data-product-variant-media', productVariantMedia + '&width=100');\n    }\n\n    // Update quantity selector's min/max/step attributes and cart quantity for the new variant\n    const quantitySelector = /** @type {any} */ (this.querySelector('quantity-selector-component'));\n    const newQuantityInput = /** @type {HTMLInputElement | null} */ (\n      event.detail.data.html.querySelector('quantity-selector-component input[ref=\"quantityInput\"]')\n    );\n\n    if (quantitySelector?.updateConstraints && newQuantityInput) {\n      quantitySelector.updateConstraints(\n        newQuantityInput.min,\n        newQuantityInput.max || null,\n        newQuantityInput.step\n      );\n    }\n\n    // Check if quantity rules are appearing/disappearing (causes layout shift)\n    const quantityRules = this.refs.quantityRules;\n    const newQuantityRules = event.detail.data.html.querySelector('.quantity-rules');\n    const isQuantityRulesChanging = !!quantityRules !== !!newQuantityRules;\n\n    if (isQuantityRulesChanging && quantitySelector) {\n      // Store quantity value before morphing entire container\n      const currentQuantityValue = quantitySelector.getValue?.();\n\n      const currentProductFormButtons = this.refs.productFormButtons;\n      const newProductFormButtons = event.detail.data.html.querySelector('.product-form-buttons');\n\n      if (currentProductFormButtons && newProductFormButtons) {\n        morph(currentProductFormButtons, newProductFormButtons);\n\n        // Get the NEW quantity selector after morphing and update its constraints\n        const newQuantitySelector = /** @type {any} */ (this.querySelector('quantity-selector-component'));\n        const newQuantityInputElement = /** @type {HTMLInputElement | null} */ (\n          event.detail.data.html.querySelector('quantity-selector-component input[ref=\"quantityInput\"]')\n        );\n\n        if (newQuantitySelector?.updateConstraints && newQuantityInputElement && currentQuantityValue) {\n          // Temporarily set the old value so updateConstraints can snap it properly\n          newQuantitySelector.setValue(currentQuantityValue);\n          // updateConstraints will snap to valid increment if needed\n          newQuantitySelector.updateConstraints(\n            newQuantityInputElement.min,\n            newQuantityInputElement.max || null,\n            newQuantityInputElement.step\n          );\n        }\n      }\n    } else {\n      // Update elements individually when layout isn't changing\n      const quantityLabel = this.querySelector('.quantity-label');\n      const newQuantityLabel = event.detail.data.html.querySelector('.quantity-label');\n      this.#morphOrUpdateElement(quantityLabel, newQuantityLabel, quantitySelector);\n\n      const addToCartButton = this.querySelector('[ref=\"addToCartButtonContainer\"]');\n      this.#morphOrUpdateElement(quantityRules, newQuantityRules, addToCartButton);\n    }\n\n    // Fetch and update cart quantity for the new variant\n    await this.#fetchAndUpdateCartQuantity();\n  };\n\n  /**\n   * Disable the add to cart button while the UI is updating before #onVariantUpdate is called.\n   * Accelerated checkout button is also disabled via its own event listener not exposed to the theme.\n   */\n  #onVariantSelected = () => {\n    this.refs.addToCartButtonContainer?.disable();\n  };\n}\n\nif (!customElements.get('product-form-component')) {\n  customElements.define('product-form-component', ProductFormComponent);\n}\n\nclass FlyToCart extends HTMLElement {\n  /** @type {Element} */\n  source;\n\n  /** @type {Element} */\n  destination;\n\n  connectedCallback() {\n    this.#animate();\n  }\n\n  #animate() {\n    const rect = this.getBoundingClientRect();\n    const sourceRect = this.source.getBoundingClientRect();\n    const destinationRect = this.destination.getBoundingClientRect();\n\n    //Define bezier curve points\n    // Maybe add half of the size of the flying thingy to the x and y to make it center properly\n    const offset = {\n      x: rect.width / 2,\n      y: rect.height / 2,\n    };\n    const startPoint = {\n      x: sourceRect.left + sourceRect.width / 2 - offset.x,\n      y: sourceRect.top + sourceRect.height / 2 - offset.y,\n    };\n\n    const endPoint = {\n      x: destinationRect.left + destinationRect.width / 2 - offset.x,\n      y: destinationRect.top + destinationRect.height / 2 - offset.y,\n    };\n\n    //Calculate the control points\n    const controlPoint1 = { x: startPoint.x, y: startPoint.y - 200 }; // Go up 200px\n    const controlPoint2 = { x: endPoint.x - 300, y: endPoint.y - 100 }; // Go left 300px and up 100px\n\n    //Animation variables\n    /** @type {number | null} */\n    let startTime = null;\n    const duration = 600; // 600ms\n\n    this.style.opacity = '1';\n\n    /**\n     * Animates the flying thingy along the bezier curve.\n     * @param {number} currentTime - The current time.\n     */\n    const animate = (currentTime) => {\n      if (!startTime) startTime = currentTime;\n      const elapsed = currentTime - startTime;\n      const progress = Math.min(elapsed / duration, 1);\n\n      // Calculate current position along the bezier curve\n      const position = bezierPoint(progress, startPoint, controlPoint1, controlPoint2, endPoint);\n\n      //Update the position of the flying thingy\n      this.style.setProperty('--x', `${position.x}px`);\n      this.style.setProperty('--y', `${position.y}px`);\n\n      // Scale down as it approaches the cart\n      const scale = 1 - progress * 0.5;\n      this.style.setProperty('--scale', `${scale}`);\n\n      //Continue the animation if not finished\n      if (progress < 1) {\n        requestAnimationFrame(animate);\n      } else {\n        //Fade out the flying thingy\n        this.style.opacity = '0';\n        onAnimationEnd(this, () => this.remove());\n      }\n    };\n\n    // Position the flying thingy back to the start point\n    this.style.setProperty('--x', `${startPoint.x}px`);\n    this.style.setProperty('--y', `${startPoint.y}px`);\n\n    //Start the animation\n    requestAnimationFrame(animate);\n  }\n}\n\n/**\n * Calculates a point on a cubic B\u00E9zier curve.\n * @param {number} t - The parameter value (0 <= t <= 1).\n * @param {{x: number, y: number}} p0 - The starting point (x, y).\n * @param {{x: number, y: number}} p1 - The first control point (x, y).\n * @param {{x: number, y: number}} p2 - The second control point (x, y).\n * @param {{x: number, y: number}} p3 - The ending point (x, y).\n * @returns {{x: number, y: number}} The point on the curve.\n */\nfunction bezierPoint(t, p0, p1, p2, p3) {\n  const cX = 3 * (p1.x - p0.x);\n  const bX = 3 * (p2.x - p1.x) - cX;\n  const aX = p3.x - p0.x - cX - bX;\n\n  const cY = 3 * (p1.y - p0.y);\n  const bY = 3 * (p2.y - p1.y) - cY;\n  const aY = p3.y - p0.y - cY - bY;\n\n  const x = aX * Math.pow(t, 3) + bX * Math.pow(t, 2) + cX * t + p0.x;\n  const y = aY * Math.pow(t, 3) + bY * Math.pow(t, 2) + cY * t + p0.y;\n\n  return { x, y };\n}\n\nif (!customElements.get('fly-to-cart')) {\n  customElements.define('fly-to-cart', FlyToCart);\n}\n"],
  "mappings": "AAAA,OAAS,cAAiB,mBAC1B,OAAS,YAAa,eAAgB,iBAAoB,mBAC1D,OAAS,YAAa,aAAc,mBAA2D,gBAC/F,OAAS,oBAAuB,qBAChC,OAAS,UAAa,eAEf,aAAM,oCAAsC,IAGnD,MAAM,+BAAiC,IAGjC,4BAA8B,IAG9B,iCAAmC,IASlC,aAAM,2BAA2B,SAAU,CAChD,aAAe,CAAC,iBAAiB,EAGjC,kBAGA,gBAEA,mBAAo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