vviinn-widgets 2.226.2 → 2.227.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.
- package/dist/cjs/{Rectangle-CopOhKfk.js → Rectangle-B7-dl4zr.js} +4 -4
- package/dist/cjs/{SecondaryActionIcon-DJkiqzKf.js → SecondaryActionIcon-CqnCQG1V.js} +4 -4
- package/dist/cjs/{app-globals-BI4YcnGX.js → app-globals-Bhojy5Uj.js} +3 -3
- package/dist/cjs/{cropperUtils-C-XU1J_8.js → cropperUtils-HujLFYz-.js} +4 -4
- package/dist/cjs/{cssUrlHelper-CNX5gTl3.js → cssUrlHelper-wYUS6juZ.js} +4 -4
- package/dist/cjs/{exampleImage-DXnq1_gm.js → exampleImage-DyZl-Zfz.js} +3 -3
- package/dist/cjs/{index-Bx3A7Ug3.js → index-Bz6kK4Kq.js} +3 -3
- package/dist/cjs/{index-wKjld6Ft.js → index-DD2wckQQ.js} +4 -4
- package/dist/cjs/{index-Dc37VzG4.js → index-Ddq5Gwq2.js} +6 -6
- package/dist/cjs/{index-DdqDxuZV.js → index-XHzTQzNR.js} +4 -4
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{openProductLink-D1JdHh_O.js → openProductLink-B5aaa2i4.js} +3 -3
- package/dist/cjs/{resultsPageUrl-BSyynJ_k.js → resultsPageUrl-DkgA_BG5.js} +3 -3
- package/dist/cjs/{search.store-D5Zu3JJX.js → search.store-DO0B1GDy.js} +6 -6
- package/dist/cjs/{store-B4_GxlAy.js → store-ncQ0GnDP.js} +3 -3
- package/dist/cjs/{swiper-element-CxrhMTDw.js → swiper-element-iOnGr8Sh.js} +3 -3
- package/dist/cjs/vviinn-button_6.cjs.entry.js +12 -11
- package/dist/cjs/vviinn-camera_12.cjs.entry.js +20 -20
- package/dist/cjs/vviinn-carousel_10.cjs.entry.js +26 -17
- package/dist/cjs/vviinn-detected-object_2.cjs.entry.js +6 -6
- package/dist/cjs/vviinn-shop-the-look.cjs.entry.js +13 -13
- package/dist/cjs/vviinn-text-search.cjs.entry.js +10 -10
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +9 -9
- package/dist/cjs/vviinn-widgets.cjs.js +5 -5
- package/dist/collection/Image/bounds.js +3 -3
- package/dist/collection/Image/error.js +3 -3
- package/dist/collection/Image/fromFile.js +3 -3
- package/dist/collection/Image/imageToB64.js +3 -3
- package/dist/collection/Image/index.js +3 -3
- package/dist/collection/Image/renderPromise.js +3 -3
- package/dist/collection/Image/renderTitleImage.js +3 -3
- package/dist/collection/Image/resizeImage.js +3 -3
- package/dist/collection/Image/responsive.js +3 -3
- package/dist/collection/Image/sizing.js +3 -3
- package/dist/collection/Image/toFile.js +3 -3
- package/dist/collection/a11y/announcements.js +3 -3
- package/dist/collection/a11y/aria-labels.js +3 -3
- package/dist/collection/a11y/index.js +3 -3
- package/dist/collection/analytics/GAnalytics.js +3 -3
- package/dist/collection/analytics/GeneralAnalytics.js +3 -3
- package/dist/collection/analytics/GtagAnalytics.js +3 -3
- package/dist/collection/campaign/Campaign.js +3 -3
- package/dist/collection/campaign/CampaignService.js +3 -3
- package/dist/collection/campaign/VCSCampaignService.js +3 -3
- package/dist/collection/campaign/VPRCampaignService.js +3 -3
- package/dist/collection/components/customized-slots.js +3 -3
- package/dist/collection/components/vviinn-button/vviinn-button.js +3 -3
- package/dist/collection/components/vviinn-camera/vviinn-camera.js +3 -3
- package/dist/collection/components/vviinn-carousel/constants.js +3 -3
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +3 -3
- package/dist/collection/components/vviinn-cropper/constants.js +3 -3
- package/dist/collection/components/vviinn-cropper/helpers/cropperOcrGate.js +3 -3
- package/dist/collection/components/vviinn-cropper/helpers/cropperUtils.js +3 -3
- package/dist/collection/components/vviinn-cropper/helpers/hasSelectedOcrFilter.js +3 -3
- package/dist/collection/components/vviinn-cropper/helpers/isCropBoxDataSimilar.js +3 -3
- package/dist/collection/components/vviinn-cropper/helpers/validateCropBoxData.js +3 -3
- package/dist/collection/components/vviinn-cropper/vviinn-cropper.js +3 -3
- package/dist/collection/components/vviinn-cropper/vviinn-detected-object/vviinn-detected-object.js +3 -3
- package/dist/collection/components/vviinn-error/index.js +3 -3
- package/dist/collection/components/vviinn-error/vviinn-error.js +3 -3
- package/dist/collection/components/vviinn-filters/helpers/RenderCustomButton.js +3 -3
- package/dist/collection/components/vviinn-filters/helpers/RenderFilterButton.js +3 -3
- package/dist/collection/components/vviinn-filters/helpers/RenderSearchInput.js +3 -3
- package/dist/collection/components/vviinn-filters/helpers/extractSelectedFilters.js +3 -3
- package/dist/collection/components/vviinn-filters/helpers/filterValueUtils.js +3 -3
- package/dist/collection/components/vviinn-filters/helpers/getFilterOptions.js +3 -3
- package/dist/collection/components/vviinn-filters/helpers/getIntervalLabel.js +3 -3
- package/dist/collection/components/vviinn-filters/helpers/getSelectedInterval.js +3 -3
- package/dist/collection/components/vviinn-filters/helpers/index.js +3 -3
- package/dist/collection/components/vviinn-filters/helpers/isSubFilterActive.js +3 -3
- package/dist/collection/components/vviinn-filters/helpers/modalPositioning.js +3 -3
- package/dist/collection/components/vviinn-filters/helpers/searchHelper.js +3 -3
- package/dist/collection/components/vviinn-filters/helpers/subFilterSelection.js +3 -3
- package/dist/collection/components/vviinn-filters/helpers/syncRequestFilters.js +3 -3
- package/dist/collection/components/vviinn-filters/helpers/triggerFilter.js +3 -3
- package/dist/collection/components/vviinn-filters/vviinn-extended-filters-button.js +3 -3
- package/dist/collection/components/vviinn-filters/vviinn-extended-filters.js +3 -3
- package/dist/collection/components/vviinn-filters/vviinn-filters.js +3 -3
- package/dist/collection/components/vviinn-filters/vviinn-selected-filters.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/ArrowIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/BasketIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/CameraActionIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/CameraIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/CheckCircleIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/ChevronIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/ChevronIconSmall.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/CrossIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/CrossSellingIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/DragDropImageIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/FavoriteIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/FavoriteIconPressed.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/FilterIconCheck.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/FilterIconClose.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/FiltersIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/GridViewIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/ImagePlaceholder.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/MicIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/MinusIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/NewCloseIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/PhotoFrameCorner.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/PlusIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/RoundCameraIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/SearchIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/SearchModalCameraIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/SearchModalFullSearchIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/SearchModalImageSearchIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/SearchModalUploadIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/SecondaryActionIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/SimilarProductsIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/SparkIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/TextIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/TextSearchIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/UpdateIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/UploadActionIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/UploadActionIconVariant.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/VisualSearchIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/icons/WarningIcon.js +3 -3
- package/dist/collection/components/vviinn-icons/index.js +3 -3
- package/dist/collection/components/vviinn-image/vviinn-image.js +3 -3
- package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +3 -3
- package/dist/collection/components/vviinn-modal/vviinn-modal.js +3 -3
- package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +3 -3
- package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +3 -3
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +3 -3
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +3 -3
- package/dist/collection/components/vviinn-product-card/helpers.js +11 -3
- package/dist/collection/components/vviinn-product-card/render-helpers.js +3 -3
- package/dist/collection/components/vviinn-product-card/stories/args.js +3 -3
- package/dist/collection/components/vviinn-product-card/stories/decorators.js +3 -3
- package/dist/collection/components/vviinn-product-card/vviinn-energy-label/vviinn-energy-label.js +3 -3
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +10 -8
- package/dist/collection/components/vviinn-range-filter/vviinn-range-filter.js +3 -3
- package/dist/collection/components/vviinn-results/stories/ResultsTemplate.js +3 -3
- package/dist/collection/components/vviinn-results/vviinn-results.css +14 -8
- package/dist/collection/components/vviinn-results/vviinn-results.js +7 -7
- package/dist/collection/components/vviinn-shop-the-look/constants.js +3 -3
- package/dist/collection/components/vviinn-shop-the-look/cropper-manager.js +3 -3
- package/dist/collection/components/vviinn-shop-the-look/helpers.js +3 -3
- package/dist/collection/components/vviinn-shop-the-look/render-helpers.js +3 -3
- package/dist/collection/components/vviinn-shop-the-look/store.js +3 -3
- package/dist/collection/components/vviinn-shop-the-look/test-data.js +3 -3
- package/dist/collection/components/vviinn-shop-the-look/vviinn-shop-the-look.js +3 -3
- package/dist/collection/components/vviinn-skeleton/vviinn-skeleton.js +3 -3
- package/dist/collection/components/vviinn-slider/arrow.js +3 -3
- package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +3 -3
- package/dist/collection/components/vviinn-slider/vviinn-slider.js +3 -3
- package/dist/collection/components/vviinn-suggestions/helpers.js +3 -3
- package/dist/collection/components/vviinn-suggestions/render-helpers.js +3 -3
- package/dist/collection/components/vviinn-suggestions/vviinn-suggestions.js +3 -3
- package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +3 -3
- package/dist/collection/components/vviinn-text-search/helpers/autoSuggestDebounce.js +3 -3
- package/dist/collection/components/vviinn-text-search/helpers/handleSuggestionsKeyDown.js +3 -3
- package/dist/collection/components/vviinn-text-search/helpers/index.js +3 -3
- package/dist/collection/components/vviinn-text-search/helpers/initializeRecognition.js +3 -3
- package/dist/collection/components/vviinn-text-search/helpers/permitSpeechRecognition.js +3 -3
- package/dist/collection/components/vviinn-text-search/helpers/renderSuggestions.js +3 -3
- package/dist/collection/components/vviinn-text-search/helpers/speechTooltip.js +3 -3
- package/dist/collection/components/vviinn-text-search/vviinn-text-search.js +3 -3
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +3 -3
- package/dist/collection/components/vviinn-vpr-button/stories/args.js +3 -3
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +4 -3
- package/dist/collection/components/vviinn-vpr-widget/stories/args.js +3 -3
- package/dist/collection/components/vviinn-vpr-widget/stories/decorators.js +3 -3
- package/dist/collection/components/vviinn-vpr-widget/token-helpers.js +3 -3
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.js +3 -3
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +3 -3
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +3 -3
- package/dist/collection/constants/exampleImage.js +3 -3
- package/dist/collection/cssParts/filters.js +3 -3
- package/dist/collection/cssParts/index.js +3 -3
- package/dist/collection/cssParts/product.js +3 -3
- package/dist/collection/cssParts/suggestions.js +3 -3
- package/dist/collection/dom/index.js +3 -3
- package/dist/collection/dom/intersectionObserver.js +3 -3
- package/dist/collection/error.js +3 -3
- package/dist/collection/file/index.js +3 -3
- package/dist/collection/filters/index.js +3 -3
- package/dist/collection/filters/testFixtures.js +3 -3
- package/dist/collection/geometry/Clip.js +3 -3
- package/dist/collection/geometry/Point.js +3 -3
- package/dist/collection/geometry/Rectangle.js +3 -3
- package/dist/collection/geometry/RectangleAlt.js +3 -3
- package/dist/collection/geometry/Sized.js +3 -3
- package/dist/collection/global.js +3 -3
- package/dist/collection/helpers/device/browserType.js +3 -3
- package/dist/collection/helpers/device/checkDeviceType.js +3 -3
- package/dist/collection/helpers/dragAndDrop/parseDroppedFile.js +3 -3
- package/dist/collection/helpers/navigation/openProductLink.js +3 -3
- package/dist/collection/helpers/url/getLastUrlPath.js +3 -3
- package/dist/collection/helpers/url/getLastUrlPath.test.js +3 -3
- package/dist/collection/helpers/url/resultsPageUrl.js +3 -3
- package/dist/collection/helpers/url/resultsPageUrl.test.js +3 -3
- package/dist/collection/index.js +3 -3
- package/dist/collection/interfaces/index.js +3 -3
- package/dist/collection/localStorage/index.js +3 -3
- package/dist/collection/locale/index.js +3 -3
- package/dist/collection/locale/resources.js +3 -3
- package/dist/collection/network/apiClient.js +3 -3
- package/dist/collection/network/request.js +3 -3
- package/dist/collection/network/utils.js +3 -3
- package/dist/collection/openApi/index.js +3 -3
- package/dist/collection/recommendation/index.js +3 -3
- package/dist/collection/searchSession/searchSession.js +3 -3
- package/dist/collection/sentry.js +3 -3
- package/dist/collection/store/file-processing.js +3 -3
- package/dist/collection/store/helpers/applyResponseFilters.js +3 -3
- package/dist/collection/store/helpers/searchSequence.js +3 -3
- package/dist/collection/store/image-processing.js +3 -3
- package/dist/collection/store/search.store.js +3 -3
- package/dist/collection/store/store.js +3 -3
- package/dist/collection/store/tracking.js +3 -3
- package/dist/collection/tracking/event.js +3 -3
- package/dist/collection/tracking/index.js +3 -3
- package/dist/collection/tracking/models.js +3 -3
- package/dist/collection/tracking/searchTracking.js +3 -3
- package/dist/collection/tracking/session.js +3 -3
- package/dist/collection/utils/collections/collectionUtils.test.js +3 -3
- package/dist/collection/utils/collections/collectionsUtils.js +3 -3
- package/dist/collection/utils/cssUrl/cssUrlHelper.js +3 -3
- package/dist/collection/utils/either.js +3 -3
- package/dist/collection/utils/enum/enumUtils.js +3 -3
- package/dist/collection/utils/number/index.js +3 -3
- package/dist/collection/utils/option/option.js +3 -3
- package/dist/collection/utils/semigroup/semigroupDiff.js +3 -3
- package/dist/collection/utils/string/encodeToBase64UTF8.js +3 -3
- package/dist/collection/utils/string/joinTruthy.js +3 -3
- package/dist/collection/utils/string/joinTruthy.test.js +3 -3
- package/dist/collection/utils/swiper/swiperUtils.js +3 -3
- package/dist/collection/utils/token/tokenUtils.js +3 -3
- package/dist/collection/video/settings.js +3 -3
- package/dist/collection/widget/constants.js +3 -3
- package/dist/collection/widget/types.js +3 -3
- package/dist/esm/{Rectangle-B-guJ12O.js → Rectangle-DYZUk1F3.js} +4 -4
- package/dist/esm/{SecondaryActionIcon-Cdh95mYN.js → SecondaryActionIcon-C7llW1vz.js} +4 -4
- package/dist/esm/{app-globals-C-wS8Gww.js → app-globals-K2sPgzSL.js} +3 -3
- package/dist/esm/{cropperUtils-sMYHiiXk.js → cropperUtils-CexZ_yfb.js} +4 -4
- package/dist/esm/{cssUrlHelper-D2cDTfTS.js → cssUrlHelper-C9a8Lgt6.js} +4 -4
- package/dist/esm/{exampleImage-DR9_lICd.js → exampleImage-OaNWTAPi.js} +3 -3
- package/dist/esm/{index-BYSkRZGE.js → index-CWTRysN5.js} +6 -6
- package/dist/esm/{index-DTRZmXVv.js → index-D9AV63U9.js} +4 -4
- package/dist/esm/{index-DW1q_PTq.js → index-DRuRp4Bj.js} +4 -4
- package/dist/esm/{index-DHLFo5Q5.js → index-FhFmxhnG.js} +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{openProductLink-DodmldXL.js → openProductLink-VT0ItZ7J.js} +3 -3
- package/dist/esm/{resultsPageUrl-BdVH6RtP.js → resultsPageUrl-Cc4vYYIH.js} +3 -3
- package/dist/esm/{search.store-BHk80_jt.js → search.store-BkVbtzWE.js} +6 -6
- package/dist/esm/{store-BtLMHZyk.js → store-CFvXi0uP.js} +3 -3
- package/dist/esm/{swiper-element-CC2LQV6l.js → swiper-element-CNZyvcZk.js} +3 -3
- package/dist/esm/vviinn-button_6.entry.js +12 -11
- package/dist/esm/vviinn-camera_12.entry.js +20 -20
- package/dist/esm/vviinn-carousel_10.entry.js +26 -17
- package/dist/esm/vviinn-detected-object_2.entry.js +6 -6
- package/dist/esm/vviinn-shop-the-look.entry.js +13 -13
- package/dist/esm/vviinn-text-search.entry.js +10 -10
- package/dist/esm/vviinn-vps-button.entry.js +9 -9
- package/dist/esm/vviinn-widgets.js +6 -6
- package/dist/loader/cdn.js +3 -3
- package/dist/loader/index.cjs.js +3 -3
- package/dist/loader/index.es2017.js +3 -3
- package/dist/loader/index.js +3 -3
- package/dist/storybook/helpers/sharedArgTypes.js +3 -3
- package/dist/types/components/vviinn-product-card/helpers.d.ts +5 -0
- package/dist/vviinn-widgets/index.esm.js +3 -3
- package/dist/vviinn-widgets/p-1076dfba.entry.js +8 -0
- package/dist/vviinn-widgets/{p-ff415f6a.entry.js → p-10a1e757.entry.js} +4 -4
- package/dist/vviinn-widgets/{p-d20fb53d.entry.js → p-1d1f5dc5.entry.js} +4 -4
- package/{www/build/p-048d6977.entry.js → dist/vviinn-widgets/p-5a528ed3.entry.js} +4 -4
- package/dist/vviinn-widgets/p-6OgrnZJP.js +8 -0
- package/{www/build/p-3d0534fa.entry.js → dist/vviinn-widgets/p-77b3c70d.entry.js} +4 -4
- package/{www/build/p-C6O6DOOp.js → dist/vviinn-widgets/p-BVr4JODj.js} +4 -4
- package/{www/build/p-BtLMHZyk.js → dist/vviinn-widgets/p-CFvXi0uP.js} +3 -3
- package/{www/build/p-DKPugXab.js → dist/vviinn-widgets/p-CLnNoPoc.js} +4 -4
- package/dist/vviinn-widgets/{p-CC2LQV6l.js → p-CNZyvcZk.js} +3 -3
- package/dist/vviinn-widgets/{p-BdVH6RtP.js → p-Cc4vYYIH.js} +3 -3
- package/{www/build/p-BlUrMaDK.js → dist/vviinn-widgets/p-D-DCoH5E.js} +4 -4
- package/{www/build/p-B_iLMWJ_.js → dist/vviinn-widgets/p-D4gGbVSQ.js} +4 -4
- package/dist/vviinn-widgets/{p-DdkNrtrk.js → p-D5VwnX0v.js} +4 -4
- package/{www/build/p-D1uvUHoD.js → dist/vviinn-widgets/p-DFKrbabt.js} +4 -4
- package/{www/build/p-BCWco3TD.js → dist/vviinn-widgets/p-EQFA7gFB.js} +4 -4
- package/dist/vviinn-widgets/{p-DHLFo5Q5.js → p-FhFmxhnG.js} +3 -3
- package/dist/vviinn-widgets/p-K2sPgzSL.js +8 -0
- package/dist/vviinn-widgets/p-OaNWTAPi.js +8 -0
- package/dist/vviinn-widgets/{p-DodmldXL.js → p-VT0ItZ7J.js} +3 -3
- package/dist/vviinn-widgets/{p-87c71357.entry.js → p-e668a5af.entry.js} +4 -4
- package/dist/vviinn-widgets/p-f127bf93.entry.js +8 -0
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +4 -4
- package/package.json +1 -1
- package/www/build/index.esm.js +3 -3
- package/www/build/{p-df0b4b1c.js → p-0255cc44.js} +4 -4
- package/www/build/p-1076dfba.entry.js +8 -0
- package/www/build/{p-ff415f6a.entry.js → p-10a1e757.entry.js} +4 -4
- package/www/build/{p-d20fb53d.entry.js → p-1d1f5dc5.entry.js} +4 -4
- package/{dist/vviinn-widgets/p-048d6977.entry.js → www/build/p-5a528ed3.entry.js} +4 -4
- package/www/build/p-6OgrnZJP.js +8 -0
- package/{dist/vviinn-widgets/p-3d0534fa.entry.js → www/build/p-77b3c70d.entry.js} +4 -4
- package/{dist/vviinn-widgets/p-C6O6DOOp.js → www/build/p-BVr4JODj.js} +4 -4
- package/{dist/vviinn-widgets/p-BtLMHZyk.js → www/build/p-CFvXi0uP.js} +3 -3
- package/{dist/vviinn-widgets/p-DKPugXab.js → www/build/p-CLnNoPoc.js} +4 -4
- package/www/build/{p-CC2LQV6l.js → p-CNZyvcZk.js} +3 -3
- package/www/build/{p-BdVH6RtP.js → p-Cc4vYYIH.js} +3 -3
- package/{dist/vviinn-widgets/p-BlUrMaDK.js → www/build/p-D-DCoH5E.js} +4 -4
- package/{dist/vviinn-widgets/p-B_iLMWJ_.js → www/build/p-D4gGbVSQ.js} +4 -4
- package/www/build/{p-DdkNrtrk.js → p-D5VwnX0v.js} +4 -4
- package/{dist/vviinn-widgets/p-D1uvUHoD.js → www/build/p-DFKrbabt.js} +4 -4
- package/{dist/vviinn-widgets/p-BCWco3TD.js → www/build/p-EQFA7gFB.js} +4 -4
- package/www/build/{p-DHLFo5Q5.js → p-FhFmxhnG.js} +3 -3
- package/www/build/p-K2sPgzSL.js +8 -0
- package/www/build/p-OaNWTAPi.js +8 -0
- package/www/build/{p-DodmldXL.js → p-VT0ItZ7J.js} +3 -3
- package/www/build/{p-87c71357.entry.js → p-e668a5af.entry.js} +4 -4
- package/www/build/p-f127bf93.entry.js +8 -0
- package/www/build/vviinn-widgets.esm.js +4 -4
- package/www/build/vviinn-widgets.js +3 -3
- package/dist/vviinn-widgets/p-6d2e9507.entry.js +0 -8
- package/dist/vviinn-widgets/p-8273aff4.entry.js +0 -8
- package/dist/vviinn-widgets/p-C-wS8Gww.js +0 -8
- package/dist/vviinn-widgets/p-DR9_lICd.js +0 -8
- package/dist/vviinn-widgets/p-cBtUrYGn.js +0 -8
- package/www/build/p-6d2e9507.entry.js +0 -8
- package/www/build/p-8273aff4.entry.js +0 -8
- package/www/build/p-C-wS8Gww.js +0 -8
- package/www/build/p-DR9_lICd.js +0 -8
- package/www/build/p-cBtUrYGn.js +0 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* vviinn-widgets v2.
|
|
2
|
+
* vviinn-widgets v2.227.0
|
|
3
3
|
* Copyright 2020 Mediaopt
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
* License: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.
|
|
6
|
-
* Notice: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.
|
|
5
|
+
* License: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.227.0/LICENSE
|
|
6
|
+
* Notice: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.227.0/NOTICE
|
|
7
7
|
*/
|
|
8
|
-
import{a as n,f as r}from"./p-DHLFo5Q5.js";import{r as t,g as e,h as u,j as i,k as o,l as c,n as f,o as a,p as d,q as s,t as l,u as v,v as p,w as h,x as m,y as I,z as g,A as b,E as R,B as x,C as M,D as j,F as y,_ as O,O as U,G as w,H as W,I as S,J as A,K as q,L as P,M as _,N as k,P as F,Q as T,R as E,S as C,T as z,U as N,V,W as D,a as L}from"./p-DKPugXab.js";var H,$,B={},K={},Q={};function J(){return H||(H=1,function(n){var r=Q&&Q.__createBinding||(Object.create?function(n,r,t,e){void 0===e&&(e=t);var u=Object.getOwnPropertyDescriptor(r,t);u&&!("get"in u?!r.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,e,u)}:function(n,r,t,e){void 0===e&&(e=t),n[e]=r[t]}),d=Q&&Q.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),s=Q&&Q.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return d(t,n),t},l=Q&&Q.__spreadArray||function(n,r,t){if(t||2===arguments.length)for(var e,u=0,i=r.length;u<i;u++)!e&&u in r||(e||(e=Array.prototype.slice.call(r,0,u)),e[u]=r[u]);return n.concat(e||Array.prototype.slice.call(r))};Object.defineProperty(n,"__esModule",{value:!0}),n.traverse=n.reduceRightWithIndex=n.foldMapWithIndex=n.reduceWithIndex=n.reduceRight=n.foldMap=n.reduce=n.mapWithIndex=n.map=n.flatten=n.duplicate=n.extend=n.flatMap=n.ap=n.alt=n.altW=n.of=n.chunksOf=n.splitAt=n.chop=n.chainWithIndex=n.intersperse=n.prependAll=n.unzip=n.zipWith=n.modifyAt=n.updateAt=n.sort=n.groupBy=n.reverse=n.fromArray=n.unappend=n.unprepend=n.range=n.replicate=n.makeBy=n.fromReadonlyArray=n.rotate=n.union=n.sortBy=n.uniq=n.unsafeUpdateAt=n.unsafeInsertAt=n.append=n.appendW=n.prepend=n.prependW=n.isOutOfBound=n.isNonEmpty=n.empty=void 0,n.insertAt=n.snoc=n.unsnoc=n.uncons=n.filterWithIndex=n.chain=n.intercalate=n.updateLast=n.modifyLast=n.updateHead=n.modifyHead=n.matchRight=n.matchLeft=n.concatAll=n.max=n.min=n.init=n.last=n.tail=n.head=n.apS=n.bind=n.let=n.bindTo=n.Do=n.Comonad=n.Alt=n.TraversableWithIndex=n.Traversable=n.FoldableWithIndex=n.Foldable=n.Monad=n.chainFirst=n.Chain=n.Applicative=n.apSecond=n.apFirst=n.Apply=n.FunctorWithIndex=n.Pointed=n.flap=n.Functor=n.getUnionSemigroup=n.getEq=n.getSemigroup=n.getShow=n.URI=n.extract=n.traverseWithIndex=n.sequence=void 0,n.readonlyNonEmptyArray=n.fold=n.prependToAll=void 0,n.concatW=x,n.concat=M,n.group=j,n.zip=function r(t,e){return void 0===e?function(n){return r(n,t)}:(0,n.zipWith)(t,e,(function(n,r){return[n,r]}))},n.groupSort=function(r){var t=(0,n.sort)(r),e=j(r);return function(r){return(0,n.isNonEmpty)(r)?e(t(r)):n.empty}},n.filter=function(r){return(0,n.filterWithIndex)((function(n,t){return r(t)}))},n.cons=function(r,t){return void 0===t?(0,n.prepend)(r):(0,m.pipe)(t,(0,n.prepend)(r))};var v=o(),p=c(),h=a(),m=u(),I=i(),g=s(t()),b=f(),R=s(e());function x(n){return function(r){return r.concat(n)}}function M(n,r){return r?n.concat(r):function(r){return r.concat(n)}}function j(r){return function(t){var e=t.length;if(0===e)return n.empty;for(var u=[],i=t[0],o=[i],c=1;c<e;c++){var f=t[c];r.equals(f,i)?o.push(f):(u.push(o),o=[i=f])}return u.push(o),u}}n.empty=g.emptyReadonlyArray,n.isNonEmpty=g.isNonEmpty,n.isOutOfBound=function(n,r){return n<0||n>=r.length},n.prependW=function(n){return function(r){return l([n],r,!0)}},n.prepend=n.prependW,n.appendW=function(n){return function(r){return l(l([],r,!0),[n],!1)}},n.append=n.appendW,n.unsafeInsertAt=function(r,t,e){if((0,n.isNonEmpty)(e)){var u=g.fromReadonlyNonEmptyArray(e);return u.splice(r,0,t),u}return[t]},n.unsafeUpdateAt=function(n,r,t){if(t[n]===r)return t;var e=g.fromReadonlyNonEmptyArray(t);return e[n]=r,e},n.uniq=function(r){return function(t){if(1===t.length)return t;for(var e=[(0,n.head)(t)],u=function(n){e.every((function(t){return!r.equals(t,n)}))&&e.push(n)},i=0,o=(0,n.tail)(t);i<o.length;i++)u(o[i]);return e}},n.sortBy=function(r){if((0,n.isNonEmpty)(r)){var t=(0,b.getMonoid)();return(0,n.sort)(r.reduce(t.concat,t.empty))}return m.identity},n.union=function(r){var t=(0,n.uniq)(r);return function(n){return function(r){return t((0,m.pipe)(r,M(n)))}}},n.rotate=function(r){return function(t){var e=t.length,u=Math.round(r)%e;if((0,n.isOutOfBound)(Math.abs(u),t)||0===u)return t;if(u<0){var i=(0,n.splitAt)(-u)(t);return(0,m.pipe)(i[1],M(i[0]))}return(0,n.rotate)(u-e)(t)}},n.fromReadonlyArray=function(r){return(0,n.isNonEmpty)(r)?g.some(r):g.none},n.makeBy=function(n){return function(r){for(var t=Math.max(0,Math.floor(r)),e=[n(0)],u=1;u<t;u++)e.push(n(u));return e}},n.replicate=function(r){return(0,n.makeBy)((function(){return r}))},n.range=function(r,t){return r<=t?(0,n.makeBy)((function(n){return r+n}))(t-r+1):[r]},n.unprepend=function(r){return[(0,n.head)(r),(0,n.tail)(r)]},n.unappend=function(r){return[(0,n.init)(r),(0,n.last)(r)]},n.fromArray=function(r){return(0,n.fromReadonlyArray)(r.slice())},n.reverse=function(r){return 1===r.length?r:l([(0,n.last)(r)],r.slice(0,-1).reverse(),!0)},n.groupBy=function(n){return function(r){for(var t={},e=0,u=r;e<u.length;e++){var i=u[e],o=n(i);g.has.call(t,o)?t[o].push(i):t[o]=[i]}return t}},n.sort=function(n){return function(r){return 1===r.length?r:r.slice().sort(n.compare)}},n.updateAt=function(r,t){return(0,n.modifyAt)(r,(function(){return t}))},n.modifyAt=function(r,t){return function(e){return(0,n.isOutOfBound)(r,e)?g.none:g.some((0,n.unsafeUpdateAt)(r,t(e[r]),e))}},n.zipWith=function(n,r,t){for(var e=[t(n[0],r[0])],u=Math.min(n.length,r.length),i=1;i<u;i++)e[i]=t(n[i],r[i]);return e},n.unzip=function(n){for(var r=[n[0][0]],t=[n[0][1]],e=1;e<n.length;e++)r[e]=n[e][0],t[e]=n[e][1];return[r,t]},n.prependAll=function(n){return function(r){for(var t=[n,r[0]],e=1;e<r.length;e++)t.push(n,r[e]);return t}},n.intersperse=function(r){return function(t){var e=(0,n.tail)(t);return(0,n.isNonEmpty)(e)?(0,m.pipe)(e,(0,n.prependAll)(r),(0,n.prepend)((0,n.head)(t))):t}},n.chainWithIndex=function(r){return function(t){for(var e=g.fromReadonlyNonEmptyArray(r(0,(0,n.head)(t))),u=1;u<t.length;u++)for(var i=r(u,t[u]),o=0;o<i.length;o++)e.push(i[o]);return e}},n.chop=function(r){return function(t){for(var e=r(t),u=[e[0]],i=e[1];(0,n.isNonEmpty)(i);){var o=r(i),c=o[1];u.push(o[0]),i=c}return u}},n.splitAt=function(r){return function(t){var e=Math.max(1,r);return e>=t.length?[t,n.empty]:[(0,m.pipe)(t.slice(1,e),(0,n.prepend)((0,n.head)(t))),t.slice(e)]}},n.chunksOf=function(r){return(0,n.chop)((0,n.splitAt)(r))};var y=function(r,t){return(0,m.pipe)(r,(0,n.map)(t))},O=function(r,t){return(0,m.pipe)(r,(0,n.mapWithIndex)(t))},U=function(r,t){return(0,m.pipe)(r,(0,n.ap)(t))},w=function(r,t){return(0,m.pipe)(r,(0,n.extend)(t))},W=function(r,t,e){return(0,m.pipe)(r,(0,n.reduce)(t,e))},S=function(r){var t=(0,n.foldMap)(r);return function(n,r){return(0,m.pipe)(n,t(r))}},A=function(r,t,e){return(0,m.pipe)(r,(0,n.reduceRight)(t,e))},q=function(r){var t=(0,n.traverse)(r);return function(n,r){return(0,m.pipe)(n,t(r))}},P=function(r,t){return(0,m.pipe)(r,(0,n.alt)(t))},_=function(r,t,e){return(0,m.pipe)(r,(0,n.reduceWithIndex)(t,e))},k=function(r){var t=(0,n.foldMapWithIndex)(r);return function(n,r){return(0,m.pipe)(n,t(r))}},F=function(r,t,e){return(0,m.pipe)(r,(0,n.reduceRightWithIndex)(t,e))},T=function(r){var t=(0,n.traverseWithIndex)(r);return function(n,r){return(0,m.pipe)(n,t(r))}};n.of=g.singleton,n.altW=function(n){return function(r){return(0,m.pipe)(r,x(n()))}},n.alt=n.altW,n.ap=function(r){return(0,n.flatMap)((function(t){return(0,m.pipe)(r,(0,n.map)(t))}))},n.flatMap=(0,m.dual)(2,(function(r,t){return(0,m.pipe)(r,(0,n.chainWithIndex)((function(n,r){return t(r,n)})))})),n.extend=function(r){return function(t){for(var e=(0,n.tail)(t),u=[r(t)];(0,n.isNonEmpty)(e);)u.push(r(e)),e=(0,n.tail)(e);return u}},n.duplicate=(0,n.extend)(m.identity),n.flatten=(0,n.flatMap)(m.identity),n.map=function(r){return(0,n.mapWithIndex)((function(n,t){return r(t)}))},n.mapWithIndex=function(r){return function(t){for(var e=[r(0,(0,n.head)(t))],u=1;u<t.length;u++)e.push(r(u,t[u]));return e}},n.reduce=function(r,t){return(0,n.reduceWithIndex)(r,(function(n,r,e){return t(r,e)}))},n.foldMap=function(n){return function(r){return function(t){return t.slice(1).reduce((function(t,e){return n.concat(t,r(e))}),r(t[0]))}}},n.reduceRight=function(r,t){return(0,n.reduceRightWithIndex)(r,(function(n,r,e){return t(r,e)}))},n.reduceWithIndex=function(n,r){return function(t){return t.reduce((function(n,t,e){return r(e,n,t)}),n)}},n.foldMapWithIndex=function(n){return function(r){return function(t){return t.slice(1).reduce((function(t,e,u){return n.concat(t,r(u+1,e))}),r(0,t[0]))}}},n.reduceRightWithIndex=function(n,r){return function(t){return t.reduceRight((function(n,t,e){return r(e,t,n)}),n)}},n.traverse=function(r){var t=(0,n.traverseWithIndex)(r);return function(n){return t((function(r,t){return n(t)}))}},n.sequence=function(r){return(0,n.traverseWithIndex)(r)(m.SK)},n.traverseWithIndex=function(r){return function(t){return function(e){for(var u=r.map(t(0,(0,n.head)(e)),n.of),i=1;i<e.length;i++)u=r.ap(r.map(u,(function(r){return function(t){return(0,m.pipe)(r,(0,n.append)(t))}})),t(i,e[i]));return u}}},n.extract=g.head,n.URI="ReadonlyNonEmptyArray",n.getShow=function(n){return{show:function(r){return"[".concat(r.map(n.show).join(", "),"]")}}},n.getSemigroup=function(){return{concat:M}},n.getEq=function(n){return(0,h.fromEquals)((function(r,t){return r.length===t.length&&r.every((function(r,e){return n.equals(r,t[e])}))}))},n.getUnionSemigroup=function(r){var t=(0,n.union)(r);return{concat:function(n,r){return t(r)(n)}}},n.Functor={URI:n.URI,map:y},n.flap=(0,I.flap)(n.Functor),n.Pointed={URI:n.URI,of:n.of},n.FunctorWithIndex={URI:n.URI,map:y,mapWithIndex:O},n.Apply={URI:n.URI,map:y,ap:U},n.apFirst=(0,v.apFirst)(n.Apply),n.apSecond=(0,v.apSecond)(n.Apply),n.Applicative={URI:n.URI,map:y,ap:U,of:n.of},n.Chain={URI:n.URI,map:y,ap:U,chain:n.flatMap},n.chainFirst=(0,p.chainFirst)(n.Chain),n.Monad={URI:n.URI,map:y,ap:U,of:n.of,chain:n.flatMap},n.Foldable={URI:n.URI,reduce:W,foldMap:S,reduceRight:A},n.FoldableWithIndex={URI:n.URI,reduce:W,foldMap:S,reduceRight:A,reduceWithIndex:_,foldMapWithIndex:k,reduceRightWithIndex:F},n.Traversable={URI:n.URI,map:y,reduce:W,foldMap:S,reduceRight:A,traverse:q,sequence:n.sequence},n.TraversableWithIndex={URI:n.URI,map:y,mapWithIndex:O,reduce:W,foldMap:S,reduceRight:A,traverse:q,sequence:n.sequence,reduceWithIndex:_,foldMapWithIndex:k,reduceRightWithIndex:F,traverseWithIndex:T},n.Alt={URI:n.URI,map:y,alt:P},n.Comonad={URI:n.URI,map:y,extend:w,extract:n.extract},n.Do=(0,n.of)(g.emptyRecord),n.bindTo=(0,I.bindTo)(n.Functor),n.let=(0,I.let)(n.Functor),n.bind=(0,p.bind)(n.Chain),n.apS=(0,v.apS)(n.Apply),n.head=n.extract,n.tail=g.tail,n.last=function(n){return n[n.length-1]},n.init=function(n){return n.slice(0,-1)},n.min=function(n){var r=R.min(n);return function(n){return n.reduce(r.concat)}},n.max=function(n){var r=R.max(n);return function(n){return n.reduce(r.concat)}},n.concatAll=function(n){return function(r){return r.reduce(n.concat)}},n.matchLeft=function(r){return function(t){return r((0,n.head)(t),(0,n.tail)(t))}},n.matchRight=function(r){return function(t){return r((0,n.init)(t),(0,n.last)(t))}},n.modifyHead=function(r){return function(t){return l([r((0,n.head)(t))],(0,n.tail)(t),!0)}},n.updateHead=function(r){return(0,n.modifyHead)((function(){return r}))},n.modifyLast=function(r){return function(t){return(0,m.pipe)((0,n.init)(t),(0,n.append)(r((0,n.last)(t))))}},n.updateLast=function(r){return(0,n.modifyLast)((function(){return r}))},n.intercalate=function(r){var t=(0,n.concatAll)(r);return function(r){return(0,m.flow)((0,n.intersperse)(r),t)}},n.chain=n.flatMap,n.filterWithIndex=function(r){return function(t){return(0,n.fromReadonlyArray)(t.filter((function(n,t){return r(t,n)})))}},n.uncons=n.unprepend,n.unsnoc=n.unappend,n.snoc=function(n,r){return(0,m.pipe)(n,M([r]))},n.insertAt=function(r,t){return function(e){return r<0||r>e.length?g.none:g.some((0,n.unsafeInsertAt)(r,t,e))}},n.prependToAll=n.prependAll,n.fold=n.concatAll,n.readonlyNonEmptyArray={URI:n.URI,of:n.of,map:y,mapWithIndex:O,ap:U,chain:n.flatMap,extend:w,extract:n.extract,reduce:W,foldMap:S,reduceRight:A,traverse:q,sequence:n.sequence,reduceWithIndex:_,foldMapWithIndex:k,reduceRightWithIndex:F,traverseWithIndex:T,alt:P}}(Q)),Q}function G(){return $||($=1,function(n){var r=K&&K.__createBinding||(Object.create?function(n,r,t,e){void 0===e&&(e=t);var u=Object.getOwnPropertyDescriptor(r,t);u&&!("get"in u?!r.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,e,u)}:function(n,r,t,e){void 0===e&&(e=t),n[e]=r[t]}),e=K&&K.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),a=K&&K.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var u in n)"default"!==u&&Object.prototype.hasOwnProperty.call(n,u)&&r(t,n,u);return e(t,n),t},d=K&&K.__spreadArray||function(n,r,t){if(t||2===arguments.length)for(var e,u=0,i=r.length;u<i;u++)!e&&u in r||(e||(e=Array.prototype.slice.call(r,0,u)),e[u]=r[u]);return n.concat(e||Array.prototype.slice.call(r))};Object.defineProperty(n,"__esModule",{value:!0}),n.reduceRightWithIndex=n.reduceRight=n.reduceWithIndex=n.reduce=n.mapWithIndex=n.map=n.flatten=n.duplicate=n.extend=n.flatMap=n.ap=n.alt=n.altW=n.chunksOf=n.splitAt=n.chop=n.chainWithIndex=n.foldMap=n.foldMapWithIndex=n.intersperse=n.prependAll=n.unzip=n.zipWith=n.of=n.copy=n.modifyAt=n.updateAt=n.insertAt=n.sort=n.groupBy=n.reverse=n.unappend=n.unprepend=n.range=n.replicate=n.makeBy=n.fromArray=n.fromReadonlyNonEmptyArray=n.rotate=n.union=n.sortBy=n.uniq=n.unsafeUpdateAt=n.unsafeInsertAt=n.append=n.appendW=n.prepend=n.prependW=n.isOutOfBound=n.isNonEmpty=void 0,n.snoc=n.unsnoc=n.uncons=n.filterWithIndex=n.chain=n.intercalate=n.updateLast=n.modifyLast=n.updateHead=n.modifyHead=n.matchRight=n.matchLeft=n.concatAll=n.max=n.min=n.init=n.last=n.tail=n.head=n.apS=n.bind=n.let=n.bindTo=n.Do=n.Comonad=n.Alt=n.TraversableWithIndex=n.Traversable=n.FoldableWithIndex=n.Foldable=n.Monad=n.chainFirst=n.Chain=n.Applicative=n.apSecond=n.apFirst=n.Apply=n.FunctorWithIndex=n.Pointed=n.flap=n.Functor=n.getUnionSemigroup=n.getEq=n.getSemigroup=n.getShow=n.URI=n.extract=n.traverseWithIndex=n.sequence=n.traverse=void 0,n.nonEmptyArray=n.fold=n.prependToAll=void 0,n.concatW=g,n.concat=b,n.group=R,n.zip=function r(t,e){return void 0===e?function(n){return r(n,t)}:(0,n.zipWith)(t,e,(function(n,r){return[n,r]}))},n.groupSort=function(r){var t=(0,n.sort)(r),e=R(r);return function(r){return(0,n.isNonEmpty)(r)?e(t(r)):[]}},n.filter=function(r){return(0,n.filterWithIndex)((function(n,t){return r(t)}))},n.cons=function(r,t){return void 0===t?(0,n.prepend)(r):(0,v.pipe)(t,(0,n.prepend)(r))};var s=o(),l=c(),v=u(),p=i(),h=a(t()),m=f(),I=a(J());function g(n){return function(r){return r.concat(n)}}function b(n,r){return r?n.concat(r):function(r){return r.concat(n)}}function R(n){return function(r){var t=r.length;if(0===t)return[];for(var e=[],u=r[0],i=[u],o=1;o<t;o++){var c=r[o];n.equals(c,u)?i.push(c):(e.push(i),i=[u=c])}return e.push(i),e}}n.isNonEmpty=function(n){return n.length>0},n.isOutOfBound=function(n,r){return n<0||n>=r.length},n.prependW=function(n){return function(r){return d([n],r,!0)}},n.prepend=n.prependW,n.appendW=function(n){return function(r){return d(d([],r,!0),[n],!1)}},n.append=n.appendW,n.unsafeInsertAt=function(r,t,e){if((0,n.isNonEmpty)(e)){var u=(0,n.fromReadonlyNonEmptyArray)(e);return u.splice(r,0,t),u}return[t]},n.unsafeUpdateAt=function(r,t,e){var u=(0,n.fromReadonlyNonEmptyArray)(e);return u[r]=t,u},n.uniq=function(r){return function(t){if(1===t.length)return(0,n.copy)(t);for(var e=[(0,n.head)(t)],u=function(n){e.every((function(t){return!r.equals(t,n)}))&&e.push(n)},i=0,o=(0,n.tail)(t);i<o.length;i++)u(o[i]);return e}},n.sortBy=function(r){if((0,n.isNonEmpty)(r)){var t=(0,m.getMonoid)();return(0,n.sort)(r.reduce(t.concat,t.empty))}return n.copy},n.union=function(r){var t=(0,n.uniq)(r);return function(n){return function(r){return t((0,v.pipe)(r,b(n)))}}},n.rotate=function(r){return function(t){var e=t.length,u=Math.round(r)%e;if((0,n.isOutOfBound)(Math.abs(u),t)||0===u)return(0,n.copy)(t);if(u<0){var i=(0,n.splitAt)(-u)(t);return(0,v.pipe)(i[1],b(i[0]))}return(0,n.rotate)(u-e)(t)}},n.fromReadonlyNonEmptyArray=h.fromReadonlyNonEmptyArray,n.fromArray=function(r){return(0,n.isNonEmpty)(r)?h.some(r):h.none},n.makeBy=function(n){return function(r){for(var t=Math.max(0,Math.floor(r)),e=[n(0)],u=1;u<t;u++)e.push(n(u));return e}},n.replicate=function(r){return(0,n.makeBy)((function(){return r}))},n.range=function(r,t){return r<=t?(0,n.makeBy)((function(n){return r+n}))(t-r+1):[r]},n.unprepend=function(r){return[(0,n.head)(r),(0,n.tail)(r)]},n.unappend=function(r){return[(0,n.init)(r),(0,n.last)(r)]},n.reverse=function(r){return d([(0,n.last)(r)],r.slice(0,-1).reverse(),!0)},n.groupBy=function(n){return function(r){for(var t={},e=0,u=r;e<u.length;e++){var i=u[e],o=n(i);h.has.call(t,o)?t[o].push(i):t[o]=[i]}return t}},n.sort=function(n){return function(r){return r.slice().sort(n.compare)}},n.insertAt=function(r,t){return function(e){return r<0||r>e.length?h.none:h.some((0,n.unsafeInsertAt)(r,t,e))}},n.updateAt=function(r,t){return(0,n.modifyAt)(r,(function(){return t}))},n.modifyAt=function(r,t){return function(e){return(0,n.isOutOfBound)(r,e)?h.none:h.some((0,n.unsafeUpdateAt)(r,t(e[r]),e))}},n.copy=n.fromReadonlyNonEmptyArray,n.of=function(n){return[n]},n.zipWith=function(n,r,t){for(var e=[t(n[0],r[0])],u=Math.min(n.length,r.length),i=1;i<u;i++)e[i]=t(n[i],r[i]);return e},n.unzip=function(n){for(var r=[n[0][0]],t=[n[0][1]],e=1;e<n.length;e++)r[e]=n[e][0],t[e]=n[e][1];return[r,t]},n.prependAll=function(n){return function(r){for(var t=[n,r[0]],e=1;e<r.length;e++)t.push(n,r[e]);return t}},n.intersperse=function(r){return function(t){var e=(0,n.tail)(t);return(0,n.isNonEmpty)(e)?(0,v.pipe)(e,(0,n.prependAll)(r),(0,n.prepend)((0,n.head)(t))):(0,n.copy)(t)}},n.foldMapWithIndex=I.foldMapWithIndex,n.foldMap=I.foldMap,n.chainWithIndex=function(r){return function(t){for(var e=(0,n.fromReadonlyNonEmptyArray)(r(0,(0,n.head)(t))),u=1;u<t.length;u++)for(var i=r(u,t[u]),o=0;o<i.length;o++)e.push(i[o]);return e}},n.chop=function(r){return function(t){for(var e=r(t),u=[e[0]],i=e[1];(0,n.isNonEmpty)(i);){var o=r(i),c=o[1];u.push(o[0]),i=c}return u}},n.splitAt=function(r){return function(t){var e=Math.max(1,r);return e>=t.length?[(0,n.copy)(t),[]]:[(0,v.pipe)(t.slice(1,e),(0,n.prepend)((0,n.head)(t))),t.slice(e)]}},n.chunksOf=function(r){return(0,n.chop)((0,n.splitAt)(r))};var x=function(r,t){return(0,v.pipe)(r,(0,n.map)(t))},M=function(r,t){return(0,v.pipe)(r,(0,n.mapWithIndex)(t))},j=function(r,t){return(0,v.pipe)(r,(0,n.ap)(t))},y=function(r,t){return(0,v.pipe)(r,(0,n.extend)(t))},O=function(r,t,e){return(0,v.pipe)(r,(0,n.reduce)(t,e))},U=function(r){var t=(0,n.foldMap)(r);return function(n,r){return(0,v.pipe)(n,t(r))}},w=function(r,t,e){return(0,v.pipe)(r,(0,n.reduceRight)(t,e))},W=function(r){var t=(0,n.traverse)(r);return function(n,r){return(0,v.pipe)(n,t(r))}},S=function(r,t){return(0,v.pipe)(r,(0,n.alt)(t))},A=function(r,t,e){return(0,v.pipe)(r,(0,n.reduceWithIndex)(t,e))},q=function(r){var t=(0,n.foldMapWithIndex)(r);return function(n,r){return(0,v.pipe)(n,t(r))}},P=function(r,t,e){return(0,v.pipe)(r,(0,n.reduceRightWithIndex)(t,e))},_=function(r){var t=(0,n.traverseWithIndex)(r);return function(n,r){return(0,v.pipe)(n,t(r))}};n.altW=function(n){return function(r){return(0,v.pipe)(r,g(n()))}},n.alt=n.altW,n.ap=function(r){return(0,n.flatMap)((function(t){return(0,v.pipe)(r,(0,n.map)(t))}))},n.flatMap=(0,v.dual)(2,(function(r,t){return(0,v.pipe)(r,(0,n.chainWithIndex)((function(n,r){return t(r,n)})))})),n.extend=function(r){return function(t){for(var e=(0,n.tail)(t),u=[r(t)];(0,n.isNonEmpty)(e);)u.push(r(e)),e=(0,n.tail)(e);return u}},n.duplicate=(0,n.extend)(v.identity),n.flatten=(0,n.flatMap)(v.identity),n.map=function(r){return(0,n.mapWithIndex)((function(n,t){return r(t)}))},n.mapWithIndex=function(r){return function(t){for(var e=[r(0,(0,n.head)(t))],u=1;u<t.length;u++)e.push(r(u,t[u]));return e}},n.reduce=I.reduce,n.reduceWithIndex=I.reduceWithIndex,n.reduceRight=I.reduceRight,n.reduceRightWithIndex=I.reduceRightWithIndex,n.traverse=function(r){var t=(0,n.traverseWithIndex)(r);return function(n){return t((function(r,t){return n(t)}))}},n.sequence=function(r){return(0,n.traverseWithIndex)(r)((function(n,r){return r}))},n.traverseWithIndex=function(r){return function(t){return function(e){for(var u=r.map(t(0,(0,n.head)(e)),n.of),i=1;i<e.length;i++)u=r.ap(r.map(u,(function(r){return function(t){return(0,v.pipe)(r,(0,n.append)(t))}})),t(i,e[i]));return u}}},n.extract=I.head,n.URI="NonEmptyArray",n.getShow=I.getShow,n.getSemigroup=function(){return{concat:b}},n.getEq=I.getEq,n.getUnionSemigroup=function(r){var t=(0,n.union)(r);return{concat:function(n,r){return t(r)(n)}}},n.Functor={URI:n.URI,map:x},n.flap=(0,p.flap)(n.Functor),n.Pointed={URI:n.URI,of:n.of},n.FunctorWithIndex={URI:n.URI,map:x,mapWithIndex:M},n.Apply={URI:n.URI,map:x,ap:j},n.apFirst=(0,s.apFirst)(n.Apply),n.apSecond=(0,s.apSecond)(n.Apply),n.Applicative={URI:n.URI,map:x,ap:j,of:n.of},n.Chain={URI:n.URI,map:x,ap:j,chain:n.flatMap},n.chainFirst=(0,l.chainFirst)(n.Chain),n.Monad={URI:n.URI,map:x,ap:j,of:n.of,chain:n.flatMap},n.Foldable={URI:n.URI,reduce:O,foldMap:U,reduceRight:w},n.FoldableWithIndex={URI:n.URI,reduce:O,foldMap:U,reduceRight:w,reduceWithIndex:A,foldMapWithIndex:q,reduceRightWithIndex:P},n.Traversable={URI:n.URI,map:x,reduce:O,foldMap:U,reduceRight:w,traverse:W,sequence:n.sequence},n.TraversableWithIndex={URI:n.URI,map:x,mapWithIndex:M,reduce:O,foldMap:U,reduceRight:w,traverse:W,sequence:n.sequence,reduceWithIndex:A,foldMapWithIndex:q,reduceRightWithIndex:P,traverseWithIndex:_},n.Alt={URI:n.URI,map:x,alt:S},n.Comonad={URI:n.URI,map:x,extend:y,extract:n.extract},n.Do=(0,n.of)(h.emptyRecord),n.bindTo=(0,p.bindTo)(n.Functor),n.let=(0,p.let)(n.Functor),n.bind=(0,l.bind)(n.Chain),n.apS=(0,s.apS)(n.Apply),n.head=I.head,n.tail=function(n){return n.slice(1)},n.last=I.last,n.init=function(n){return n.slice(0,-1)},n.min=I.min,n.max=I.max,n.concatAll=function(n){return function(r){return r.reduce(n.concat)}},n.matchLeft=function(r){return function(t){return r((0,n.head)(t),(0,n.tail)(t))}},n.matchRight=function(r){return function(t){return r((0,n.init)(t),(0,n.last)(t))}},n.modifyHead=function(r){return function(t){return d([r((0,n.head)(t))],(0,n.tail)(t),!0)}},n.updateHead=function(r){return(0,n.modifyHead)((function(){return r}))},n.modifyLast=function(r){return function(t){return(0,v.pipe)((0,n.init)(t),(0,n.append)(r((0,n.last)(t))))}},n.updateLast=function(r){return(0,n.modifyLast)((function(){return r}))},n.intercalate=I.intercalate,n.chain=n.flatMap,n.filterWithIndex=function(r){return function(t){return(0,n.fromArray)(t.filter((function(n,t){return r(t,n)})))}},n.uncons=n.unprepend,n.unsnoc=n.unappend,n.snoc=function(r,t){return(0,v.pipe)(r,(0,n.append)(t))},n.prependToAll=n.prependAll,n.fold=I.concatAll,n.nonEmptyArray={URI:n.URI,of:n.of,map:x,mapWithIndex:M,ap:j,chain:n.flatMap,extend:y,extract:n.extract,reduce:O,foldMap:U,reduceRight:w,traverse:W,sequence:n.sequence,reduceWithIndex:A,foldMapWithIndex:q,reduceRightWithIndex:P,traverseWithIndex:_,alt:S}}(K)),K}var X,Y,Z,nn={},rn={};function tn(){return X||(X=1,n=rn,Object.defineProperty(n,"__esModule",{value:!0}),n.Field=n.MonoidProduct=n.MonoidSum=n.SemigroupProduct=n.SemigroupSum=n.MagmaSub=n.Show=n.Bounded=n.Ord=n.Eq=n.isNumber=void 0,n.isNumber=function(n){return"number"==typeof n},n.Eq={equals:function(n,r){return n===r}},n.Ord={equals:n.Eq.equals,compare:function(n,r){return n<r?-1:n>r?1:0}},n.Bounded={equals:n.Eq.equals,compare:n.Ord.compare,top:1/0,bottom:-1/0},n.Show={show:function(n){return JSON.stringify(n)}},n.MagmaSub={concat:function(n,r){return n-r}},n.SemigroupSum={concat:function(n,r){return n+r}},n.SemigroupProduct={concat:function(n,r){return n*r}},n.MonoidSum={concat:n.SemigroupSum.concat,empty:0},n.MonoidProduct={concat:n.SemigroupProduct.concat,empty:1},n.Field={add:n.SemigroupSum.concat,zero:0,mul:n.SemigroupProduct.concat,one:1,sub:n.MagmaSub.concat,degree:function(){return 1},div:function(n,r){return n/r},mod:function(n,r){return n%r}}),rn;var n}function en(){return Y||(Y=1,function(n){var r=nn&&nn.__createBinding||(Object.create?function(n,r,t,e){void 0===e&&(e=t);var u=Object.getOwnPropertyDescriptor(r,t);u&&!("get"in u?!r.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,e,u)}:function(n,r,t,e){void 0===e&&(e=t),n[e]=r[t]}),e=nn&&nn.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),p=nn&&nn.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var u in n)"default"!==u&&Object.prototype.hasOwnProperty.call(n,u)&&r(t,n,u);return e(t,n),t},h=nn&&nn.__spreadArray||function(n,r,t){if(t||2===arguments.length)for(var e,u=0,i=r.length;u<i;u++)!e&&u in r||(e||(e=Array.prototype.slice.call(r,0,u)),e[u]=r[u]);return n.concat(e||Array.prototype.slice.call(r))};Object.defineProperty(n,"__esModule",{value:!0}),n.sortBy=n.uniq=n.rotate=n.intersperse=n.prependAll=n.unzip=n.zipWith=n.sort=n.lefts=n.rights=n.reverse=n.modifyAt=n.deleteAt=n.updateAt=n.insertAt=n.findLastIndex=n.findLastMap=n.findFirstMap=n.findIndex=n.dropRight=n.dropLeft=n.takeRight=n.takeLeft=n.init=n.tail=n.last=n.head=n.isOutOfBound=n.size=n.scanRight=n.scanLeft=n.chainWithIndex=n.foldRight=n.matchRight=n.matchRightW=n.foldLeft=n.matchLeft=n.matchLeftW=n.match=n.matchW=n.fromEither=n.fromOption=n.replicate=n.makeBy=n.appendW=n.append=n.prependW=n.prepend=n.isNonEmpty=n.isEmpty=void 0,n.getIntersectionSemigroup=n.getUnionMonoid=n.getUnionSemigroup=n.getOrd=n.getEq=n.getMonoid=n.getSemigroup=n.getShow=n.URI=n.unfold=n.wilt=n.wither=n.traverseWithIndex=n.sequence=n.traverse=n.reduceRightWithIndex=n.reduceRight=n.reduceWithIndex=n.foldMap=n.reduce=n.foldMapWithIndex=n.duplicate=n.extend=n.filterWithIndex=n.partitionMapWithIndex=n.partitionMap=n.partitionWithIndex=n.partition=n.compact=n.filterMap=n.filterMapWithIndex=n.filter=n.separate=n.mapWithIndex=n.map=n.flatten=n.flatMap=n.ap=n.alt=n.altW=n.zero=n.of=n._chainRecBreadthFirst=n._chainRecDepthFirst=n.concat=n.concatW=n.fromOptionK=n.chunksOf=n.splitAt=n.chop=void 0,n.cons=n.range=n.chain=n.apS=n.bind=n.let=n.bindTo=n.Do=n.intercalate=n.exists=n.some=n.empty=n.fromArray=n.toArray=n.unsafeDeleteAt=n.unsafeUpdateAt=n.unsafeInsertAt=n.fromEitherK=n.FromEither=n.filterE=n.Witherable=n.ChainRecBreadthFirst=n.chainRecBreadthFirst=n.ChainRecDepthFirst=n.chainRecDepthFirst=n.TraversableWithIndex=n.Traversable=n.FoldableWithIndex=n.Foldable=n.FilterableWithIndex=n.Filterable=n.Compactable=n.Extend=n.Alternative=n.guard=n.Zero=n.Alt=n.Unfoldable=n.chainFirst=n.Monad=n.Chain=n.Applicative=n.apSecond=n.apFirst=n.Apply=n.FunctorWithIndex=n.Pointed=n.flap=n.Functor=n.getDifferenceMagma=void 0,n.readonlyArray=n.prependToAll=n.snoc=void 0,n.fromPredicate=function(r){return function(t){return r(t)?[t]:n.empty}},n.lookup=function r(t,e){return void 0===e?function(n){return r(t,n)}:(0,n.isOutOfBound)(t,e)?M.none:M.some(e[t])},n.takeLeftWhile=function(r){return function(t){for(var e=[],u=0,i=t;u<i.length;u++){var o=i[u];if(!r(o))break;e.push(o)}var c=e.length;return c===t.length?t:0===c?n.empty:e}},n.spanLeft=function(r){return function(t){var e=(0,n.splitAt)(S(t,r))(t);return{init:e[0],rest:e[1]}}},n.dropLeftWhile=function(r){return function(t){var e=S(t,r);return 0===e?t:e===t.length?n.empty:t.slice(e)}},n.findFirst=function(n){return function(r){for(var t=0;t<r.length;t++)if(n(r[t]))return M.some(r[t]);return M.none}},n.findLast=function(n){return function(r){for(var t=r.length-1;t>=0;t--)if(n(r[t]))return M.some(r[t]);return M.none}},n.zip=function r(t,e){return void 0===e?function(n){return r(n,t)}:(0,n.zipWith)(t,e,(function(n,r){return[n,r]}))},n.elem=A,n.comprehension=function(r,t,e){void 0===e&&(e=function(){return!0});var u=function(r,i){return(0,n.isNonEmpty)(i)?(0,n.flatMap)(O.head(i),(function(t){return u((0,R.pipe)(r,(0,n.append)(t)),O.tail(i))})):e.apply(void 0,r)?[t.apply(void 0,r)]:n.empty};return u(n.empty,r)},n.union=q,n.intersection=P,n.difference=_,n.every=function(n){return function(r){return r.every(n)}};var m=o(),I=c(),g=a(),b=l(),R=u(),x=i(),M=p(t()),j=p(tn()),y=f(),O=p(J()),U=v(),w=s(),W=d();n.isEmpty=function(n){return 0===n.length},n.isNonEmpty=O.isNonEmpty,n.prepend=O.prepend,n.prependW=O.prependW,n.append=O.append,n.appendW=O.appendW,n.makeBy=function(r,t){return r<=0?n.empty:O.makeBy(t)(r)},n.replicate=function(r,t){return(0,n.makeBy)(r,(function(){return t}))},n.fromOption=function(r){return M.isNone(r)?n.empty:[r.value]},n.fromEither=function(r){return M.isLeft(r)?n.empty:[r.right]},n.matchW=function(r,t){return function(e){return(0,n.isNonEmpty)(e)?t(e):r()}},n.match=n.matchW,n.matchLeftW=function(r,t){return function(e){return(0,n.isNonEmpty)(e)?t(O.head(e),O.tail(e)):r()}},n.matchLeft=n.matchLeftW,n.foldLeft=n.matchLeft,n.matchRightW=function(r,t){return function(e){return(0,n.isNonEmpty)(e)?t(O.init(e),O.last(e)):r()}},n.matchRight=n.matchRightW,n.foldRight=n.matchRight,n.chainWithIndex=function(r){return function(t){if((0,n.isEmpty)(t))return n.empty;for(var e=[],u=0;u<t.length;u++)for(var i=r(u,t[u]),o=0;o<i.length;o++)e.push(i[o]);return e}},n.scanLeft=function(n,r){return function(t){var e=t.length,u=new Array(e+1);u[0]=n;for(var i=0;i<e;i++)u[i+1]=r(u[i],t[i]);return u}},n.scanRight=function(n,r){return function(t){var e=t.length,u=new Array(e+1);u[e]=n;for(var i=e-1;i>=0;i--)u[i]=r(t[i],u[i+1]);return u}},n.size=function(n){return n.length},n.isOutOfBound=O.isOutOfBound,n.head=function(r){return(0,n.isNonEmpty)(r)?M.some(O.head(r)):M.none},n.last=function(r){return(0,n.isNonEmpty)(r)?M.some(O.last(r)):M.none},n.tail=function(r){return(0,n.isNonEmpty)(r)?M.some(O.tail(r)):M.none},n.init=function(r){return(0,n.isNonEmpty)(r)?M.some(O.init(r)):M.none},n.takeLeft=function(r){return function(t){return(0,n.isOutOfBound)(r,t)?t:0===r?n.empty:t.slice(0,r)}},n.takeRight=function(r){return function(t){return(0,n.isOutOfBound)(r,t)?t:0===r?n.empty:t.slice(-r)}};var S=function(n,r){for(var t=n.length,e=0;e<t&&r(n[e]);e++);return e};function A(n){return function(r,t){if(void 0===t){var e=A(n);return function(n){return e(r,n)}}for(var u=0;u<t.length;u++)if(n.equals(t[u],r))return!0;return!1}}function q(r){var t=O.union(r);return function(e,u){if(void 0===u){var i=q(r);return function(n){return i(n,e)}}return(0,n.isNonEmpty)(e)&&(0,n.isNonEmpty)(u)?t(u)(e):(0,n.isNonEmpty)(e)?e:u}}function P(n){var r=A(n);return function(t,e){if(void 0===e){var u=P(n);return function(n){return u(n,t)}}return t.filter((function(n){return r(n,e)}))}}function _(n){var r=A(n);return function(t,e){if(void 0===e){var u=_(n);return function(n){return u(n,t)}}return t.filter((function(n){return!r(n,e)}))}}n.dropLeft=function(r){return function(t){return r<=0||(0,n.isEmpty)(t)?t:r>=t.length?n.empty:t.slice(r,t.length)}},n.dropRight=function(r){return function(t){return r<=0||(0,n.isEmpty)(t)?t:r>=t.length?n.empty:t.slice(0,t.length-r)}},n.findIndex=function(n){return function(r){for(var t=0;t<r.length;t++)if(n(r[t]))return M.some(t);return M.none}},n.findFirstMap=function(n){return function(r){for(var t=0;t<r.length;t++){var e=n(r[t]);if(M.isSome(e))return e}return M.none}},n.findLastMap=function(n){return function(r){for(var t=r.length-1;t>=0;t--){var e=n(r[t]);if(M.isSome(e))return e}return M.none}},n.findLastIndex=function(n){return function(r){for(var t=r.length-1;t>=0;t--)if(n(r[t]))return M.some(t);return M.none}},n.insertAt=function(n,r){return function(t){return n<0||n>t.length?M.none:M.some(O.unsafeInsertAt(n,r,t))}},n.updateAt=function(r,t){return(0,n.modifyAt)(r,(function(){return t}))},n.deleteAt=function(r){return function(t){return(0,n.isOutOfBound)(r,t)?M.none:M.some((0,n.unsafeDeleteAt)(r,t))}},n.modifyAt=function(r,t){return function(e){return(0,n.isOutOfBound)(r,e)?M.none:M.some((0,n.unsafeUpdateAt)(r,t(e[r]),e))}},n.reverse=function(n){return n.length<=1?n:n.slice().reverse()},n.rights=function(n){for(var r=[],t=0;t<n.length;t++){var e=n[t];"Right"===e._tag&&r.push(e.right)}return r},n.lefts=function(n){for(var r=[],t=0;t<n.length;t++){var e=n[t];"Left"===e._tag&&r.push(e.left)}return r},n.sort=function(n){return function(r){return r.length<=1?r:r.slice().sort(n.compare)}},n.zipWith=function(n,r,t){for(var e=[],u=Math.min(n.length,r.length),i=0;i<u;i++)e[i]=t(n[i],r[i]);return e},n.unzip=function(n){for(var r=[],t=[],e=0;e<n.length;e++)r[e]=n[e][0],t[e]=n[e][1];return[r,t]},n.prependAll=function(r){var t=O.prependAll(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):r}},n.intersperse=function(r){var t=O.intersperse(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):r}},n.rotate=function(r){var t=O.rotate(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):r}},n.uniq=function(r){var t=O.uniq(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):r}},n.sortBy=function(r){var t=O.sortBy(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):r}},n.chop=function(r){var t=O.chop(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):n.empty}},n.splitAt=function(r){return function(t){return r>=1&&(0,n.isNonEmpty)(t)?O.splitAt(r)(t):(0,n.isEmpty)(t)?[t,n.empty]:[n.empty,t]}},n.chunksOf=function(r){var t=O.chunksOf(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):n.empty}},n.fromOptionK=function(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,n.fromOption)(r.apply(void 0,t))}},n.concatW=function(r){return function(t){return(0,n.isEmpty)(t)?r:(0,n.isEmpty)(r)?t:t.concat(r)}},n.concat=n.concatW;var k=function(r,t){return(0,R.pipe)(r,(0,n.map)(t))},F=function(r,t){return(0,R.pipe)(r,(0,n.mapWithIndex)(t))},T=function(r,t){return(0,R.pipe)(r,(0,n.ap)(t))},E=function(r,t){return(0,R.pipe)(r,(0,n.filter)(t))},C=function(r,t){return(0,R.pipe)(r,(0,n.filterMap)(t))},z=function(r,t){return(0,R.pipe)(r,(0,n.partition)(t))},N=function(r,t){return(0,R.pipe)(r,(0,n.partitionMap)(t))},V=function(r,t){return(0,R.pipe)(r,(0,n.partitionWithIndex)(t))},D=function(r,t){return(0,R.pipe)(r,(0,n.partitionMapWithIndex)(t))},L=function(r,t){return(0,R.pipe)(r,(0,n.alt)(t))},H=function(r,t,e){return(0,R.pipe)(r,(0,n.reduce)(t,e))},$=function(r){var t=(0,n.foldMap)(r);return function(n,r){return(0,R.pipe)(n,t(r))}},B=function(r,t,e){return(0,R.pipe)(r,(0,n.reduceRight)(t,e))},K=function(r,t,e){return(0,R.pipe)(r,(0,n.reduceWithIndex)(t,e))},Q=function(r){var t=(0,n.foldMapWithIndex)(r);return function(n,r){return(0,R.pipe)(n,t(r))}},G=function(r,t,e){return(0,R.pipe)(r,(0,n.reduceRightWithIndex)(t,e))},X=function(r,t){return(0,R.pipe)(r,(0,n.filterMapWithIndex)(t))},Y=function(r,t){return(0,R.pipe)(r,(0,n.filterWithIndex)(t))},Z=function(r,t){return(0,R.pipe)(r,(0,n.extend)(t))},rn=function(r){var t=(0,n.traverse)(r);return function(n,r){return(0,R.pipe)(n,t(r))}},en=function(r){var t=(0,n.traverseWithIndex)(r);return function(n,r){return(0,R.pipe)(n,t(r))}};n._chainRecDepthFirst=function(r,t){return(0,R.pipe)(r,(0,n.chainRecDepthFirst)(t))},n._chainRecBreadthFirst=function(r,t){return(0,R.pipe)(r,(0,n.chainRecBreadthFirst)(t))},n.of=O.of,n.zero=function(){return n.empty},n.altW=function(n){return function(r){return r.concat(n())}},n.alt=n.altW,n.ap=function(r){return(0,n.flatMap)((function(t){return(0,R.pipe)(r,(0,n.map)(t))}))},n.flatMap=(0,R.dual)(2,(function(r,t){return(0,R.pipe)(r,(0,n.chainWithIndex)((function(n,r){return t(r,n)})))})),n.flatten=(0,n.flatMap)(R.identity),n.map=function(n){return function(r){return r.map((function(r){return n(r)}))}},n.mapWithIndex=function(n){return function(r){return r.map((function(r,t){return n(t,r)}))}},n.separate=function(n){for(var r=[],t=[],e=0,u=n;e<u.length;e++){var i=u[e];"Left"===i._tag?r.push(i.left):t.push(i.right)}return(0,U.separated)(r,t)},n.filter=function(n){return function(r){return r.filter(n)}},n.filterMapWithIndex=function(n){return function(r){for(var t=[],e=0;e<r.length;e++){var u=n(e,r[e]);M.isSome(u)&&t.push(u.value)}return t}},n.filterMap=function(r){return(0,n.filterMapWithIndex)((function(n,t){return r(t)}))},n.compact=(0,n.filterMap)(R.identity),n.partition=function(r){return(0,n.partitionWithIndex)((function(n,t){return r(t)}))},n.partitionWithIndex=function(n){return function(r){for(var t=[],e=[],u=0;u<r.length;u++){var i=r[u];n(u,i)?e.push(i):t.push(i)}return(0,U.separated)(t,e)}},n.partitionMap=function(r){return(0,n.partitionMapWithIndex)((function(n,t){return r(t)}))},n.partitionMapWithIndex=function(n){return function(r){for(var t=[],e=[],u=0;u<r.length;u++){var i=n(u,r[u]);"Left"===i._tag?t.push(i.left):e.push(i.right)}return(0,U.separated)(t,e)}},n.filterWithIndex=function(n){return function(r){return r.filter((function(r,t){return n(t,r)}))}},n.extend=function(n){return function(r){return r.map((function(t,e){return n(r.slice(e))}))}},n.duplicate=(0,n.extend)(R.identity),n.foldMapWithIndex=function(n){return function(r){return function(t){return t.reduce((function(t,e,u){return n.concat(t,r(u,e))}),n.empty)}}},n.reduce=function(r,t){return(0,n.reduceWithIndex)(r,(function(n,r,e){return t(r,e)}))},n.foldMap=function(r){var t=(0,n.foldMapWithIndex)(r);return function(n){return t((function(r,t){return n(t)}))}},n.reduceWithIndex=function(n,r){return function(t){for(var e=t.length,u=n,i=0;i<e;i++)u=r(i,u,t[i]);return u}},n.reduceRight=function(r,t){return(0,n.reduceRightWithIndex)(r,(function(n,r,e){return t(r,e)}))},n.reduceRightWithIndex=function(n,r){return function(t){return t.reduceRight((function(n,t,e){return r(e,t,n)}),n)}},n.traverse=function(r){var t=(0,n.traverseWithIndex)(r);return function(n){return t((function(r,t){return n(t)}))}},n.sequence=function(r){return function(t){return H(t,r.of((0,n.zero)()),(function(t,e){return r.ap(r.map(t,(function(r){return function(t){return(0,R.pipe)(r,(0,n.append)(t))}})),e)}))}},n.traverseWithIndex=function(r){return function(t){return(0,n.reduceWithIndex)(r.of((0,n.zero)()),(function(e,u,i){return r.ap(r.map(u,(function(r){return function(t){return(0,R.pipe)(r,(0,n.append)(t))}})),t(e,i))}))}},n.wither=function(n){var r=un(n);return function(n){return function(t){return r(t,n)}}},n.wilt=function(n){var r=on(n);return function(n){return function(t){return r(t,n)}}},n.unfold=function(n,r){for(var t=[],e=n;;){var u=r(e);if(!M.isSome(u))break;var i=u.value,o=i[1];t.push(i[0]),e=o}return t},n.URI="ReadonlyArray",n.getShow=function(n){return{show:function(r){return"[".concat(r.map(n.show).join(", "),"]")}}},n.getSemigroup=function(){return{concat:function(r,t){return(0,n.isEmpty)(r)?t:(0,n.isEmpty)(t)?r:r.concat(t)}}},n.getMonoid=function(){return{concat:(0,n.getSemigroup)().concat,empty:n.empty}},n.getEq=function(n){return(0,g.fromEquals)((function(r,t){return r.length===t.length&&r.every((function(r,e){return n.equals(r,t[e])}))}))},n.getOrd=function(n){return(0,y.fromCompare)((function(r,t){for(var e=r.length,u=t.length,i=Math.min(e,u),o=0;o<i;o++){var c=n.compare(r[o],t[o]);if(0!==c)return c}return j.Ord.compare(e,u)}))},n.getUnionSemigroup=function(n){var r=q(n);return{concat:function(n,t){return r(t)(n)}}},n.getUnionMonoid=function(r){return{concat:(0,n.getUnionSemigroup)(r).concat,empty:n.empty}},n.getIntersectionSemigroup=function(n){var r=P(n);return{concat:function(n,t){return r(t)(n)}}},n.getDifferenceMagma=function(n){var r=_(n);return{concat:function(n,t){return r(t)(n)}}},n.Functor={URI:n.URI,map:k},n.flap=(0,x.flap)(n.Functor),n.Pointed={URI:n.URI,of:n.of},n.FunctorWithIndex={URI:n.URI,map:k,mapWithIndex:F},n.Apply={URI:n.URI,map:k,ap:T},n.apFirst=(0,m.apFirst)(n.Apply),n.apSecond=(0,m.apSecond)(n.Apply),n.Applicative={URI:n.URI,map:k,ap:T,of:n.of},n.Chain={URI:n.URI,map:k,ap:T,chain:n.flatMap},n.Monad={URI:n.URI,map:k,ap:T,of:n.of,chain:n.flatMap},n.chainFirst=(0,I.chainFirst)(n.Chain),n.Unfoldable={URI:n.URI,unfold:n.unfold},n.Alt={URI:n.URI,map:k,alt:L},n.Zero={URI:n.URI,zero:n.zero},n.guard=(0,W.guard)(n.Zero,n.Pointed),n.Alternative={URI:n.URI,map:k,ap:T,of:n.of,alt:L,zero:n.zero},n.Extend={URI:n.URI,map:k,extend:Z},n.Compactable={URI:n.URI,compact:n.compact,separate:n.separate},n.Filterable={URI:n.URI,map:k,compact:n.compact,separate:n.separate,filter:E,filterMap:C,partition:z,partitionMap:N},n.FilterableWithIndex={URI:n.URI,map:k,mapWithIndex:F,compact:n.compact,separate:n.separate,filter:E,filterMap:C,partition:z,partitionMap:N,partitionMapWithIndex:D,partitionWithIndex:V,filterMapWithIndex:X,filterWithIndex:Y},n.Foldable={URI:n.URI,reduce:H,foldMap:$,reduceRight:B},n.FoldableWithIndex={URI:n.URI,reduce:H,foldMap:$,reduceRight:B,reduceWithIndex:K,foldMapWithIndex:Q,reduceRightWithIndex:G},n.Traversable={URI:n.URI,map:k,reduce:H,foldMap:$,reduceRight:B,traverse:rn,sequence:n.sequence},n.TraversableWithIndex={URI:n.URI,map:k,mapWithIndex:F,reduce:H,foldMap:$,reduceRight:B,reduceWithIndex:K,foldMapWithIndex:Q,reduceRightWithIndex:G,traverse:rn,sequence:n.sequence,traverseWithIndex:en},n.chainRecDepthFirst=function(n){return function(r){for(var t=h([],n(r),!0),e=[];t.length>0;){var u=t.shift();M.isLeft(u)?t.unshift.apply(t,n(u.left)):e.push(u.right)}return e}},n.ChainRecDepthFirst={URI:n.URI,map:k,ap:T,chain:n.flatMap,chainRec:n._chainRecDepthFirst},n.chainRecBreadthFirst=function(n){return function(r){var t=n(r),e=[],u=[];function i(r){M.isLeft(r)?n(r.left).forEach((function(n){return e.push(n)})):u.push(r.right)}for(var o=0,c=t;o<c.length;o++)i(c[o]);for(;e.length>0;)i(e.shift());return u}},n.ChainRecBreadthFirst={URI:n.URI,map:k,ap:T,chain:n.flatMap,chainRec:n._chainRecBreadthFirst};var un=(0,w.witherDefault)(n.Traversable,n.Compactable),on=(0,w.wiltDefault)(n.Traversable,n.Compactable);n.Witherable={URI:n.URI,map:k,compact:n.compact,separate:n.separate,filter:E,filterMap:C,partition:z,partitionMap:N,reduce:H,foldMap:$,reduceRight:B,traverse:rn,sequence:n.sequence,wither:un,wilt:on},n.filterE=(0,w.filterE)(n.Witherable),n.FromEither={URI:n.URI,fromEither:n.fromEither},n.fromEitherK=(0,b.fromEitherK)(n.FromEither),n.unsafeInsertAt=O.unsafeInsertAt,n.unsafeUpdateAt=function(r,t,e){return(0,n.isNonEmpty)(e)?O.unsafeUpdateAt(r,t,e):e},n.unsafeDeleteAt=function(n,r){var t=r.slice();return t.splice(n,1),t},n.toArray=function(n){return n.slice()},n.fromArray=function(r){return(0,n.isEmpty)(r)?n.empty:r.slice()},n.empty=O.empty,n.some=function(n){return function(r){return r.some(n)}},n.exists=n.some,n.intercalate=function(r){var t=O.intercalate(r);return function(e){return(0,n.match)((function(){return r.empty}),t(e))}},n.Do=(0,n.of)(M.emptyRecord),n.bindTo=(0,x.bindTo)(n.Functor),n.let=(0,x.let)(n.Functor),n.bind=(0,I.bind)(n.Chain),n.apS=(0,m.apS)(n.Apply),n.chain=n.flatMap,n.range=O.range,n.cons=O.cons,n.snoc=O.snoc,n.prependToAll=n.prependAll,n.readonlyArray={URI:n.URI,compact:n.compact,separate:n.separate,map:k,ap:T,of:n.of,chain:n.flatMap,filter:E,filterMap:C,partition:z,partitionMap:N,mapWithIndex:F,partitionMapWithIndex:D,partitionWithIndex:V,filterMapWithIndex:X,filterWithIndex:Y,alt:L,zero:n.zero,unfold:n.unfold,reduce:H,foldMap:$,reduceRight:B,traverse:rn,sequence:n.sequence,reduceWithIndex:K,foldMapWithIndex:Q,reduceRightWithIndex:G,traverseWithIndex:en,extend:Z,wither:un,wilt:on}}(nn)),nn}function un(){return Z||(Z=1,function(n){var r=B&&B.__createBinding||(Object.create?function(n,r,t,e){void 0===e&&(e=t);var u=Object.getOwnPropertyDescriptor(r,t);u&&!("get"in u?!r.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,e,u)}:function(n,r,t,e){void 0===e&&(e=t),n[e]=r[t]}),e=B&&B.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),f=B&&B.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var u in n)"default"!==u&&Object.prototype.hasOwnProperty.call(n,u)&&r(t,n,u);return e(t,n),t};Object.defineProperty(n,"__esModule",{value:!0}),n.rotate=n.intersperse=n.prependAll=n.unzip=n.zipWith=n.sort=n.lefts=n.rights=n.reverse=n.modifyAt=n.deleteAt=n.updateAt=n.insertAt=n.copy=n.findLastIndex=n.findLastMap=n.findFirstMap=n.findIndex=n.dropRight=n.dropLeft=n.takeRight=n.takeLeft=n.init=n.tail=n.last=n.head=n.lookup=n.isOutOfBound=n.size=n.scanRight=n.scanLeft=n.chainWithIndex=n.foldRight=n.matchRight=n.matchRightW=n.foldLeft=n.matchLeft=n.matchLeftW=n.match=n.matchW=n.fromEither=n.fromOption=n.replicate=n.makeBy=n.appendW=n.append=n.prependW=n.prepend=n.isNonEmpty=n.isEmpty=void 0,n.getUnionMonoid=n.getUnionSemigroup=n.getOrd=n.getEq=n.getMonoid=n.getSemigroup=n.getShow=n.URI=n.unfold=n.wilt=n.wither=n.traverseWithIndex=n.sequence=n.traverse=n.reduceRightWithIndex=n.reduceRight=n.reduceWithIndex=n.reduce=n.foldMapWithIndex=n.foldMap=n.duplicate=n.extend=n.filterWithIndex=n.alt=n.altW=n.partitionMapWithIndex=n.partitionMap=n.partitionWithIndex=n.partition=n.filter=n.separate=n.compact=n.filterMap=n.filterMapWithIndex=n.mapWithIndex=n.flatten=n.flatMap=n.ap=n.map=n.zero=n.of=n.concat=n.concatW=n.fromOptionK=n.chunksOf=n.splitAt=n.chop=n.sortBy=n.uniq=n.elem=void 0,n.cons=n.empty=n.range=n.chain=n.apS=n.bind=n.let=n.bindTo=n.Do=n.intercalate=n.exists=n.some=n.every=n.unsafeDeleteAt=n.unsafeUpdateAt=n.unsafeInsertAt=n.fromEitherK=n.FromEither=n.filterE=n.ChainRecBreadthFirst=n.chainRecBreadthFirst=n.ChainRecDepthFirst=n.chainRecDepthFirst=n.Witherable=n.TraversableWithIndex=n.Traversable=n.FoldableWithIndex=n.Foldable=n.FilterableWithIndex=n.Filterable=n.Compactable=n.Extend=n.Alternative=n.guard=n.Zero=n.Alt=n.Unfoldable=n.Monad=n.chainFirst=n.Chain=n.Applicative=n.apSecond=n.apFirst=n.Apply=n.FunctorWithIndex=n.Pointed=n.flap=n.Functor=n.getDifferenceMagma=n.getIntersectionSemigroup=void 0,n.array=n.prependToAll=n.snoc=void 0,n.fromPredicate=function(n){return function(r){return n(r)?[r]:[]}},n.takeLeftWhile=function(n){return function(r){for(var t=[],e=0,u=r;e<u.length;e++){var i=u[e];if(!n(i))break;t.push(i)}return t}},n.spanLeft=function(r){return function(t){var e=(0,n.splitAt)(y(t,r))(t);return{init:e[0],rest:e[1]}}},n.dropLeftWhile=function(n){return function(r){return r.slice(y(r,n))}},n.findFirst=function(n){return R.findFirst(n)},n.findLast=function(n){return R.findLast(n)},n.zip=function r(t,e){return void 0===e?function(n){return r(n,t)}:(0,n.zipWith)(t,e,(function(n,r){return[n,r]}))},n.comprehension=function(r,t,e){void 0===e&&(e=function(){return!0});var u=function(r,i){return(0,n.isNonEmpty)(i)?(0,n.flatMap)(b.head(i),(function(t){return u((0,m.pipe)(r,(0,n.append)(t)),b.tail(i))})):e.apply(void 0,r)?[t.apply(void 0,r)]:[]};return u([],r)},n.union=O,n.intersection=U,n.difference=w;var a=o(),p=c(),h=l(),m=u(),I=i(),g=f(t()),b=f(G()),R=f(en()),x=v(),M=s(),j=d();n.isEmpty=function(n){return 0===n.length},n.isNonEmpty=b.isNonEmpty,n.prepend=b.prepend,n.prependW=b.prependW,n.append=b.append,n.appendW=b.appendW,n.makeBy=function(n,r){return n<=0?[]:b.makeBy(r)(n)},n.replicate=function(r,t){return(0,n.makeBy)(r,(function(){return t}))},n.fromOption=function(n){return g.isNone(n)?[]:[n.value]},n.fromEither=function(n){return g.isLeft(n)?[]:[n.right]},n.matchW=function(r,t){return function(e){return(0,n.isNonEmpty)(e)?t(e):r()}},n.match=n.matchW,n.matchLeftW=function(r,t){return function(e){return(0,n.isNonEmpty)(e)?t(b.head(e),b.tail(e)):r()}},n.matchLeft=n.matchLeftW,n.foldLeft=n.matchLeft,n.matchRightW=function(r,t){return function(e){return(0,n.isNonEmpty)(e)?t(b.init(e),b.last(e)):r()}},n.matchRight=n.matchRightW,n.foldRight=n.matchRight,n.chainWithIndex=function(n){return function(r){for(var t=[],e=0;e<r.length;e++)for(var u=n(e,r[e]),i=0;i<u.length;i++)t.push(u[i]);return t}},n.scanLeft=function(n,r){return function(t){var e=t.length,u=new Array(e+1);u[0]=n;for(var i=0;i<e;i++)u[i+1]=r(u[i],t[i]);return u}},n.scanRight=function(n,r){return function(t){var e=t.length,u=new Array(e+1);u[e]=n;for(var i=e-1;i>=0;i--)u[i]=r(t[i],u[i+1]);return u}},n.size=function(n){return n.length},n.isOutOfBound=b.isOutOfBound,n.lookup=R.lookup,n.head=R.head,n.last=R.last,n.tail=function(r){return(0,n.isNonEmpty)(r)?g.some(b.tail(r)):g.none},n.init=function(r){return(0,n.isNonEmpty)(r)?g.some(b.init(r)):g.none},n.takeLeft=function(r){return function(t){return(0,n.isOutOfBound)(r,t)?(0,n.copy)(t):t.slice(0,r)}},n.takeRight=function(r){return function(t){return(0,n.isOutOfBound)(r,t)?(0,n.copy)(t):0===r?[]:t.slice(-r)}};var y=function(n,r){for(var t=n.length,e=0;e<t&&r(n[e]);e++);return e};function O(r){var t=b.union(r);return function(e,u){if(void 0===u){var i=O(r);return function(n){return i(n,e)}}return(0,n.isNonEmpty)(e)&&(0,n.isNonEmpty)(u)?t(u)(e):(0,n.isNonEmpty)(e)?(0,n.copy)(e):(0,n.copy)(u)}}function U(r){var t=(0,n.elem)(r);return function(n,e){if(void 0===e){var u=U(r);return function(r){return u(r,n)}}return n.filter((function(n){return t(n,e)}))}}function w(r){var t=(0,n.elem)(r);return function(n,e){if(void 0===e){var u=w(r);return function(r){return u(r,n)}}return n.filter((function(n){return!t(n,e)}))}}n.dropLeft=function(r){return function(t){return r<=0||(0,n.isEmpty)(t)?(0,n.copy)(t):r>=t.length?[]:t.slice(r,t.length)}},n.dropRight=function(r){return function(t){return r<=0||(0,n.isEmpty)(t)?(0,n.copy)(t):r>=t.length?[]:t.slice(0,t.length-r)}},n.findIndex=R.findIndex,n.findFirstMap=R.findFirstMap,n.findLastMap=R.findLastMap,n.findLastIndex=R.findLastIndex,n.copy=function(n){return n.slice()},n.insertAt=function(r,t){return function(e){return r<0||r>e.length?g.none:g.some((0,n.unsafeInsertAt)(r,t,e))}},n.updateAt=function(r,t){return(0,n.modifyAt)(r,(function(){return t}))},n.deleteAt=function(r){return function(t){return(0,n.isOutOfBound)(r,t)?g.none:g.some((0,n.unsafeDeleteAt)(r,t))}},n.modifyAt=function(r,t){return function(e){return(0,n.isOutOfBound)(r,e)?g.none:g.some((0,n.unsafeUpdateAt)(r,t(e[r]),e))}},n.reverse=function(r){return(0,n.isEmpty)(r)?[]:r.slice().reverse()},n.rights=function(n){for(var r=[],t=0;t<n.length;t++){var e=n[t];"Right"===e._tag&&r.push(e.right)}return r},n.lefts=function(n){for(var r=[],t=0;t<n.length;t++){var e=n[t];"Left"===e._tag&&r.push(e.left)}return r},n.sort=function(r){return function(t){return t.length<=1?(0,n.copy)(t):t.slice().sort(r.compare)}},n.zipWith=function(n,r,t){for(var e=[],u=Math.min(n.length,r.length),i=0;i<u;i++)e[i]=t(n[i],r[i]);return e},n.unzip=function(n){for(var r=[],t=[],e=0;e<n.length;e++)r[e]=n[e][0],t[e]=n[e][1];return[r,t]},n.prependAll=function(r){var t=b.prependAll(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):[]}},n.intersperse=function(r){var t=b.intersperse(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):(0,n.copy)(r)}},n.rotate=function(r){var t=b.rotate(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):(0,n.copy)(r)}},n.elem=R.elem,n.uniq=function(r){var t=b.uniq(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):(0,n.copy)(r)}},n.sortBy=function(r){var t=b.sortBy(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):(0,n.copy)(r)}},n.chop=function(r){var t=b.chop(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):[]}},n.splitAt=function(r){return function(t){return r>=1&&(0,n.isNonEmpty)(t)?b.splitAt(r)(t):(0,n.isEmpty)(t)?[(0,n.copy)(t),[]]:[[],(0,n.copy)(t)]}},n.chunksOf=function(r){var t=b.chunksOf(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):[]}},n.fromOptionK=function(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,n.fromOption)(r.apply(void 0,t))}},n.concatW=function(r){return function(t){return(0,n.isEmpty)(t)?(0,n.copy)(r):(0,n.isEmpty)(r)?(0,n.copy)(t):t.concat(r)}},n.concat=n.concatW;var W=function(r,t){return(0,m.pipe)(r,(0,n.map)(t))},S=function(r,t){return(0,m.pipe)(r,(0,n.mapWithIndex)(t))},A=function(r,t){return(0,m.pipe)(r,(0,n.ap)(t))},q=function(r,t){return(0,m.pipe)(r,(0,n.filter)(t))},P=function(r,t){return(0,m.pipe)(r,(0,n.filterMap)(t))},_=function(r,t){return(0,m.pipe)(r,(0,n.partition)(t))},k=function(r,t){return(0,m.pipe)(r,(0,n.partitionMap)(t))},F=function(r,t){return(0,m.pipe)(r,(0,n.partitionWithIndex)(t))},T=function(r,t){return(0,m.pipe)(r,(0,n.partitionMapWithIndex)(t))},E=function(r,t){return(0,m.pipe)(r,(0,n.alt)(t))},C=function(r,t,e){return(0,m.pipe)(r,(0,n.reduce)(t,e))},z=function(r){var t=(0,n.foldMap)(r);return function(n,r){return(0,m.pipe)(n,t(r))}},N=function(r,t,e){return(0,m.pipe)(r,(0,n.reduceRight)(t,e))},V=function(r,t,e){return(0,m.pipe)(r,(0,n.reduceWithIndex)(t,e))},D=function(r){var t=(0,n.foldMapWithIndex)(r);return function(n,r){return(0,m.pipe)(n,t(r))}},L=function(r,t,e){return(0,m.pipe)(r,(0,n.reduceRightWithIndex)(t,e))},H=function(r,t){return(0,m.pipe)(r,(0,n.filterMapWithIndex)(t))},$=function(r,t){return(0,m.pipe)(r,(0,n.filterWithIndex)(t))},K=function(r,t){return(0,m.pipe)(r,(0,n.extend)(t))},Q=function(r){var t=(0,n.traverse)(r);return function(n,r){return(0,m.pipe)(n,t(r))}},J=function(r){var t=(0,n.traverseWithIndex)(r);return function(n,r){return(0,m.pipe)(n,t(r))}},X=R._chainRecDepthFirst,Y=R._chainRecBreadthFirst;n.of=b.of,n.zero=function(){return[]},n.map=function(n){return function(r){return r.map((function(r){return n(r)}))}},n.ap=function(r){return(0,n.flatMap)((function(t){return(0,m.pipe)(r,(0,n.map)(t))}))},n.flatMap=(0,m.dual)(2,(function(r,t){return(0,m.pipe)(r,(0,n.chainWithIndex)((function(n,r){return t(r,n)})))})),n.flatten=(0,n.flatMap)(m.identity),n.mapWithIndex=function(n){return function(r){return r.map((function(r,t){return n(t,r)}))}},n.filterMapWithIndex=function(n){return function(r){for(var t=[],e=0;e<r.length;e++){var u=n(e,r[e]);g.isSome(u)&&t.push(u.value)}return t}},n.filterMap=function(r){return(0,n.filterMapWithIndex)((function(n,t){return r(t)}))},n.compact=(0,n.filterMap)(m.identity),n.separate=function(n){for(var r=[],t=[],e=0,u=n;e<u.length;e++){var i=u[e];"Left"===i._tag?r.push(i.left):t.push(i.right)}return(0,x.separated)(r,t)},n.filter=function(n){return function(r){return r.filter(n)}},n.partition=function(r){return(0,n.partitionWithIndex)((function(n,t){return r(t)}))},n.partitionWithIndex=function(n){return function(r){for(var t=[],e=[],u=0;u<r.length;u++){var i=r[u];n(u,i)?e.push(i):t.push(i)}return(0,x.separated)(t,e)}},n.partitionMap=function(r){return(0,n.partitionMapWithIndex)((function(n,t){return r(t)}))},n.partitionMapWithIndex=function(n){return function(r){for(var t=[],e=[],u=0;u<r.length;u++){var i=n(u,r[u]);"Left"===i._tag?t.push(i.left):e.push(i.right)}return(0,x.separated)(t,e)}},n.altW=function(n){return function(r){return r.concat(n())}},n.alt=n.altW,n.filterWithIndex=function(n){return function(r){return r.filter((function(r,t){return n(t,r)}))}},n.extend=function(n){return function(r){return r.map((function(t,e){return n(r.slice(e))}))}},n.duplicate=(0,n.extend)(m.identity),n.foldMap=R.foldMap,n.foldMapWithIndex=R.foldMapWithIndex,n.reduce=R.reduce,n.reduceWithIndex=R.reduceWithIndex,n.reduceRight=R.reduceRight,n.reduceRightWithIndex=R.reduceRightWithIndex,n.traverse=function(r){var t=(0,n.traverseWithIndex)(r);return function(n){return t((function(r,t){return n(t)}))}},n.sequence=function(r){return function(t){return C(t,r.of((0,n.zero)()),(function(t,e){return r.ap(r.map(t,(function(r){return function(t){return(0,m.pipe)(r,(0,n.append)(t))}})),e)}))}},n.traverseWithIndex=function(r){return function(t){return(0,n.reduceWithIndex)(r.of((0,n.zero)()),(function(e,u,i){return r.ap(r.map(u,(function(r){return function(t){return(0,m.pipe)(r,(0,n.append)(t))}})),t(e,i))}))}},n.wither=function(n){var r=Z(n);return function(n){return function(t){return r(t,n)}}},n.wilt=function(n){var r=nn(n);return function(n){return function(t){return r(t,n)}}},n.unfold=function(n,r){for(var t=[],e=n;;){var u=r(e);if(!g.isSome(u))break;var i=u.value,o=i[1];t.push(i[0]),e=o}return t},n.URI="Array",n.getShow=R.getShow,n.getSemigroup=function(){return{concat:function(n,r){return n.concat(r)}}},n.getMonoid=function(){return{concat:(0,n.getSemigroup)().concat,empty:[]}},n.getEq=R.getEq,n.getOrd=R.getOrd,n.getUnionSemigroup=function(n){var r=O(n);return{concat:function(n,t){return r(t)(n)}}},n.getUnionMonoid=function(r){return{concat:(0,n.getUnionSemigroup)(r).concat,empty:[]}},n.getIntersectionSemigroup=function(n){var r=U(n);return{concat:function(n,t){return r(t)(n)}}},n.getDifferenceMagma=function(n){var r=w(n);return{concat:function(n,t){return r(t)(n)}}},n.Functor={URI:n.URI,map:W},n.flap=(0,I.flap)(n.Functor),n.Pointed={URI:n.URI,of:n.of},n.FunctorWithIndex={URI:n.URI,map:W,mapWithIndex:S},n.Apply={URI:n.URI,map:W,ap:A},n.apFirst=(0,a.apFirst)(n.Apply),n.apSecond=(0,a.apSecond)(n.Apply),n.Applicative={URI:n.URI,map:W,ap:A,of:n.of},n.Chain={URI:n.URI,map:W,ap:A,chain:n.flatMap},n.chainFirst=(0,p.chainFirst)(n.Chain),n.Monad={URI:n.URI,map:W,ap:A,of:n.of,chain:n.flatMap},n.Unfoldable={URI:n.URI,unfold:n.unfold},n.Alt={URI:n.URI,map:W,alt:E},n.Zero={URI:n.URI,zero:n.zero},n.guard=(0,j.guard)(n.Zero,n.Pointed),n.Alternative={URI:n.URI,map:W,ap:A,of:n.of,alt:E,zero:n.zero},n.Extend={URI:n.URI,map:W,extend:K},n.Compactable={URI:n.URI,compact:n.compact,separate:n.separate},n.Filterable={URI:n.URI,map:W,compact:n.compact,separate:n.separate,filter:q,filterMap:P,partition:_,partitionMap:k},n.FilterableWithIndex={URI:n.URI,map:W,mapWithIndex:S,compact:n.compact,separate:n.separate,filter:q,filterMap:P,partition:_,partitionMap:k,partitionMapWithIndex:T,partitionWithIndex:F,filterMapWithIndex:H,filterWithIndex:$},n.Foldable={URI:n.URI,reduce:C,foldMap:z,reduceRight:N},n.FoldableWithIndex={URI:n.URI,reduce:C,foldMap:z,reduceRight:N,reduceWithIndex:V,foldMapWithIndex:D,reduceRightWithIndex:L},n.Traversable={URI:n.URI,map:W,reduce:C,foldMap:z,reduceRight:N,traverse:Q,sequence:n.sequence},n.TraversableWithIndex={URI:n.URI,map:W,mapWithIndex:S,reduce:C,foldMap:z,reduceRight:N,reduceWithIndex:V,foldMapWithIndex:D,reduceRightWithIndex:L,traverse:Q,sequence:n.sequence,traverseWithIndex:J};var Z=(0,M.witherDefault)(n.Traversable,n.Compactable),nn=(0,M.wiltDefault)(n.Traversable,n.Compactable);n.Witherable={URI:n.URI,map:W,compact:n.compact,separate:n.separate,filter:q,filterMap:P,partition:_,partitionMap:k,reduce:C,foldMap:z,reduceRight:N,traverse:Q,sequence:n.sequence,wither:Z,wilt:nn},n.chainRecDepthFirst=R.chainRecDepthFirst,n.ChainRecDepthFirst={URI:n.URI,map:W,ap:A,chain:n.flatMap,chainRec:X},n.chainRecBreadthFirst=R.chainRecBreadthFirst,n.ChainRecBreadthFirst={URI:n.URI,map:W,ap:A,chain:n.flatMap,chainRec:Y},n.filterE=(0,M.filterE)(n.Witherable),n.FromEither={URI:n.URI,fromEither:n.fromEither},n.fromEitherK=(0,h.fromEitherK)(n.FromEither),n.unsafeInsertAt=b.unsafeInsertAt,n.unsafeUpdateAt=function(r,t,e){return(0,n.isNonEmpty)(e)?b.unsafeUpdateAt(r,t,e):[]},n.unsafeDeleteAt=function(n,r){var t=r.slice();return t.splice(n,1),t},n.every=R.every,n.some=function(n){return function(r){return r.some(n)}},n.exists=n.some,n.intercalate=R.intercalate,n.Do=(0,n.of)(g.emptyRecord),n.bindTo=(0,I.bindTo)(n.Functor),n.let=(0,I.let)(n.Functor),n.bind=(0,p.bind)(n.Chain),n.apS=(0,a.apS)(n.Apply),n.chain=n.flatMap,n.range=b.range,n.empty=[],n.cons=b.cons,n.snoc=b.snoc,n.prependToAll=n.prependAll,n.array={URI:n.URI,compact:n.compact,separate:n.separate,map:W,ap:A,of:n.of,chain:n.flatMap,filter:q,filterMap:P,partition:_,partitionMap:k,mapWithIndex:S,partitionMapWithIndex:T,partitionWithIndex:F,filterMapWithIndex:H,filterWithIndex:$,alt:E,zero:n.zero,unfold:n.unfold,reduce:C,foldMap:z,reduceRight:N,traverse:Q,sequence:n.sequence,reduceWithIndex:V,foldMapWithIndex:D,reduceRightWithIndex:L,traverseWithIndex:J,extend:K,wither:Z,wilt:nn}}(B)),B}var on=un();const cn={VPR:"Similar Products",VPS:"Visual Search",VCS:"Cross-Selling",TPS:"Text Product Search"};function fn(n,r){return t=>(n=>"VPR"===n._tag)(t)?n():r()}function an(n){return"VPR"===n?{_tag:"VPR"}:{_tag:"VCS"}}const dn=n=>(n=>0===n.length)(n)?m("entity is empty"):I(n),sn=n=>p(n,g("entity not exist"),h(dn)),ln=n=>n.split(";").map((n=>{const[r,t]=n.split(":");return{column:r,values:t?t.split(","):[]}})).filter((({column:n})=>!!n)),vn=(n,r)=>null!=r?{[n]:r}:{},pn=(n,r)=>r&&(Array.isArray(r)?r.length:Object.keys(r).length)?{[n]:r}:{},hn=(n,r)=>r&&Object.keys(r).length>0?{[n]:r}:{},mn=n=>{var r,t;return null!==(t=null!==(r=n.interval)&&void 0!==r?r:n.value)&&void 0!==t?t:n},In=n=>null==n?null:"string"==typeof n||"number"==typeof n?String(n):"object"==typeof n&&null!==n&&"value"in n?In(n.value):String(n),gn=(n,r)=>"object"==typeof n&&"object"==typeof r&&null!==n&&null!==r&&(n.start===r.start&&n.end===r.end),bn=(n,r)=>{const t=n===r,e=void 0!==r.interval&&gn(n,r.interval);return t||e||void 0!==r.value&&n===r.value},Rn=n=>(null==n?void 0:n.length)?n.reduce(((n,r)=>{const t=(n=>{var r;return"categorical"===n.type&&"values"in n?n.values.reduce(((n,r)=>{if(r.selected){const t=In(r.value);t&&n.push(t)}return n}),[]):"interval"===n.type&&"selectedValues"in n&&null!==(r=n.selectedValues)&&void 0!==r?r:[]})(r);return(null==t?void 0:t.length)>0&&n.push({column:r.column,values:t}),n}),[]):[],xn=n=>!("isConnected"in n)||n.isConnected,Mn=(()=>{let n;return(...r)=>{n&&clearTimeout(n),n=setTimeout((()=>{n=0,(n=>{for(let r of n.keys())n.set(r,n.get(r).filter(xn))})(...r)}),2e3)}})(),jn=n=>"function"==typeof n?n():n,yn=(t,e)=>{const u=((n,r=(n,r)=>n!==r)=>{const t=jn(n);let e=new Map(Object.entries(t??{}));const u={dispose:[],get:[],set:[],reset:[]},i=()=>{e=new Map(Object.entries(jn(n)??{})),u.reset.forEach((n=>n()))},o=n=>(u.get.forEach((r=>r(n))),e.get(n)),c=(n,t)=>{const i=e.get(n);r(t,i,n)&&(e.set(n,t),u.set.forEach((r=>r(n,t,i))))},f="undefined"==typeof Proxy?{}:new Proxy(t,{get:(n,r)=>o(r),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,r)=>e.has(r),set:(n,r,t)=>(c(r,t),!0)}),a=(n,r)=>(u[n].push(r),()=>{((n,r)=>{const t=n.indexOf(r);t>=0&&(n[t]=n[n.length-1],n.length--)})(u[n],r)});return{state:f,get:o,set:c,on:a,onChange:(r,t)=>{const e=a("set",((n,e)=>{n===r&&t(e)})),u=a("reset",(()=>t(jn(n)[r])));return()=>{e(),u()}},use:(...n)=>{const r=n.reduce(((n,r)=>(r.set&&n.push(a("set",r.set)),r.get&&n.push(a("get",r.get)),r.reset&&n.push(a("reset",r.reset)),r.dispose&&n.push(a("dispose",r.dispose)),n)),[]);return()=>r.forEach((n=>n()))},dispose:()=>{u.dispose.forEach((n=>n())),i()},reset:i,forceUpdate:n=>{const r=e.get(n);u.set.forEach((t=>t(n,r,r)))}}})(t,e);return u.use((()=>{if("function"!=typeof n)return{};const t=new Map;return{dispose:()=>t.clear(),get:r=>{const e=n();e&&((n,r,t)=>{const e=n.get(r);e?e.includes(t)||e.push(t):n.set(r,[t])})(t,r,e)},set:n=>{const e=t.get(n);e&&t.set(n,e.filter(r)),Mn(t)},reset:()=>{t.forEach((n=>n.forEach(r))),Mn(t)}}})()),u},On=n=>new Headers({Authorization:`Bearer ${n}`}),Un=n=>p(n,sn,R.mapLeft((()=>x))),wn=(n,r)=>b((n=>p(n,Un,R.map(On)))(n),R.right(JSON.stringify(r)));var Wn=M();const Sn=()=>{const n=navigator.userAgent;return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(n)?"tablet":/Mobile|Android|iP(hone|od)|IEMobile|BlackBerry|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(n)?"mobile":"desktop"},An=()=>{if("undefined"==typeof navigator)return!1;const n=navigator.userAgent;return!!/iPhone|iPad|iPod/.test(n)||/WebKit/.test(n)&&!/Chrome|Edg|OPR/.test(n)},qn=(n=768)=>"undefined"!=typeof window&&window.innerWidth>=n,Pn=(n=768)=>"undefined"!=typeof window&&window.innerWidth<n,_n=["jpg","jpeg","png","webp","avif","heic","heif"],kn=["jpg","jpeg","png","webp","avif"],Fn=n=>"jpg"===n?"image/jpeg":`image/${n}`,Tn=Object.fromEntries(_n.map((n=>[n,Fn(n)]))),En=()=>{const n=An()?[...kn,"heic"]:kn;return[...n.map((n=>Tn[n])),...n.map((n=>`.${n}`))].join(",")},Cn=()=>{const n=(An()?[...kn,"heic"]:kn).filter((n=>"jpeg"!==n)).map((n=>`.${n}`)),r=n.pop();return`${n.join(", ")}, or ${r}`},zn={kind:"client",inner:"File format not supported",code:"unsupported-file-type"},Nn={kind:"client",inner:"HEIC format is only supported in Safari and iOS browsers",code:"heic-not-supported"},Vn=n=>{var r;const t=n.type?n.type.split("/")[1]:null===(r=n.name.split(".").pop())||void 0===r?void 0:r.toLowerCase();if(("heic"===t||"heif"===t)&&!An())return R.left(Nn);const e=(u=r=>r===t?U.some(n):U.none,function(n){for(var r=0;r<n.length;r++){var t=u(n[r]);if(j(t))return t}return y})(_n);var u;return O.pipe(e,R.fromOption((()=>zn)))},Dn={kind:"app",inner:"File doesnt exist"},Ln=async n=>new Promise((r=>{const t=new FileReader;t.addEventListener("load",(()=>{r(t.result)})),t.readAsDataURL(n)})),Hn=n=>()=>new Promise(((r,t)=>{const e=new FileReader,u=new Image;e.onload=n=>{u.src=n.target.result},e.onerror=()=>{t(new Error("Failed to read file"))},u.onload=()=>{r(u)},u.onerror=()=>{t(new Error("Failed to load image"))},e.readAsDataURL(n)})),$n=n=>{var r,t;const[e,u]=n.split(","),i=null!==(t=null===(r=e.match(/data:(.*?);base64/))||void 0===r?void 0:r[1])&&void 0!==t?t:"",o=atob(u),c=new Uint8Array(o.length);for(let n=0;n<o.length;n++)c[n]=o.charCodeAt(n);return new File([c],"image",{type:i,lastModified:Date.now()})},Bn=n=>()=>Promise.resolve($n(n));var Kn,Qn,Jn,Gn,Xn,Yn={},Zn={},nr={},rr={},tr={},er=function(){if(Xn)return Yn;Xn=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.lanczos2=Yn.lanczos=void 0;const n=(Kn||(Kn=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.copy=void 0,Zn.copy=(n,r,t=0,e=0,u=n.width-t,i=n.height-e,o=0,c=0)=>{if(t|=0,e|=0,i|=0,o|=0,c|=0,(u|=0)<=0||i<=0)return;const f=new Uint32Array(n.data.buffer),a=new Uint32Array(r.data.buffer);for(let d=0;d<i;d++){const i=e+d;if(i<0||i>=n.height)continue;const s=c+d;if(!(s<0||s>=r.height))for(let e=0;e<u;e++){const u=t+e;if(u<0||u>=n.width)continue;const c=o+e;c<0||c>=r.width||(a[s*r.width+c]=f[i*n.width+u])}}}),Zn),r=(Qn||(Qn=1,t=nr,Object.defineProperty(t,"__esModule",{value:!0}),t.CreateImageFactory=(n=[0,0,0,0],r=4)=>{if(r=Math.floor(r),isNaN(r)||r<1)throw TypeError("channels should be a positive non-zero number");if(!("length"in n)||n.length<r)throw TypeError(`fill should be iterable with at least ${r} members`);const t=(n=new Uint8ClampedArray(n).slice(0,r)).every((n=>0===n));return(e,u,i)=>{if(void 0===e||void 0===u)throw TypeError("Not enough arguments");if(e=Math.floor(e),u=Math.floor(u),isNaN(e)||e<1||isNaN(u)||u<1)throw TypeError("Index or size is negative or greater than the allowed amount");const o=e*u*r;if(void 0===i&&(i=new Uint8ClampedArray(o)),i instanceof Uint8ClampedArray){if(i.length!==o)throw TypeError("Index or size is negative or greater than the allowed amount");if(!t)for(let t=0;t<u;t++)for(let u=0;u<e;u++){const o=(t*e+u)*r;for(let t=0;t<r;t++)i[o+t]=n[t]}return{get width(){return e},get height(){return u},get data(){return i}}}throw TypeError("Expected data to be Uint8ClampedArray or undefined")}},t.createImage=t.CreateImageFactory()),nr);var t;const e=function(){if(Jn)return rr;Jn=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.filters=void 0;const n=(n,r)=>{if(n<=-r||n>=r)return 0;if(0==n)return 0;const t=n*Math.PI;return Math.sin(t)/t*Math.sin(t/r)/(t/r)},r=n=>Math.round(16383*n);return rr.filters=(t,e,u,i,o)=>{const c=o?2:3,f=1/u,a=Math.min(1,u),d=c/a,s=Math.floor(2*(d+1)),l=new Int16Array((s+2)*e);let v=0;for(let u=0;u<e;u++){const o=(u+.5)*f+i,s=Math.max(0,Math.floor(o-d)),p=Math.min(t-1,Math.ceil(o+d)),h=p-s+1,m=new Float32Array(h),I=new Int16Array(h);let g=0,b=0;for(let r=s;r<=p;r++){const t=n((r+.5-o)*a,c);g+=t,m[b]=t,b++}let R=0;for(let n=0;n<m.length;n++){const t=m[n]/g;R+=t,I[n]=r(t)}I[e>>1]+=r(1-R);let x=0;for(;x<I.length&&0===I[x];)x++;let M=I.length-1;for(;M>0&&0===I[M];)M--;const j=M-x+1;l[v++]=s+x,l[v++]=j,l.set(I.subarray(x,M+1),v),v+=j}return l},rr}(),u=(Gn||(Gn=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.convolve=void 0,tr.convolve=(n,r,t,e,u,i)=>{let o=0,c=0;for(let f=0;f<e;f++){let a=0;for(let t=0;t<u;t++){let t=o+4*i[a++]|0,u=0,f=0,d=0,s=0;for(let r=i[a++];r>0;r--){const r=i[a++];u=u+r*n[t]|0,f=f+r*n[t+1]|0,d=d+r*n[t+2]|0,s=s+r*n[t+3]|0,t=t+4|0}r[c]=u+8192>>14,r[c+1]=f+8192>>14,r[c+2]=d+8192>>14,r[c+3]=s+8192>>14,c=c+4*e|0}c=4*(f+1)|0,o=(f+1)*t*4|0}}),tr),i=(n,r,t=!1)=>{const i=r.height/n.height,o=e.filters(n.width,r.width,r.width/n.width,0,t),c=e.filters(n.height,r.height,i,0,t),f=new Uint8ClampedArray(r.width*n.height*4);u.convolve(n.data,f,n.width,n.height,r.width,o),u.convolve(f,r.data,n.height,r.width,r.height,c)};return Yn.lanczos=(t,e,u=0,o=0,c=t.width-u,f=t.height-o,a=0,d=0,s=e.width-a,l=e.height-d)=>{if(o|=0,f|=0,a|=0,d|=0,s|=0,l|=0,(c|=0)<=0||f<=0||s<=0||l<=0)return;if(0==(u|=0)&&0===o&&c===t.width&&f===t.height&&0===a&&0===d&&s===e.width&&l===e.height)return void i(t,e);const v=r.createImage(c,f),p=r.createImage(s,l);n.copy(t,v,u,o),i(v,p),n.copy(p,e,0,0,p.width,p.height,a,d)},Yn.lanczos2=(t,e,u=0,o=0,c=t.width-u,f=t.height-o,a=0,d=0,s=e.width-a,l=e.height-d)=>{if(o|=0,f|=0,a|=0,d|=0,s|=0,l|=0,(c|=0)<=0||f<=0||s<=0||l<=0)return;if(0==(u|=0)&&0===o&&c===t.width&&f===t.height&&0===a&&0===d&&s===e.width&&l===e.height)return void i(t,e,!0);const v=r.createImage(c,f),p=r.createImage(s,l);n.copy(t,v,u,o),i(v,p,!0),n.copy(p,e,0,0,p.width,p.height,a,d)},Yn}(),ur=tn();const ir=n=>({kind:"height",size:n}),or=f().contramap((n=>n.size))(ur.Ord),cr=on.sort(or),fr=on.sort({equals:(n,r)=>n.kind===r.kind,compare:(n,r)=>n.kind===r.kind?0:"width"===n.kind?-1:1}),ar=(n,r)=>t=>{const e=cr(t),u=(n=>{const[r,t]=n;return r.size/t.size})(e),i=Object.assign(Object.assign({},e[0]),{size:"smallest"===r?n:n*u}),o=Object.assign(Object.assign({},e[1]),{size:"largest"===r?n:n/u});return fr([o,i])},dr=n=>{const{naturalWidth:r,naturalHeight:t}=n;return[(e=r,{kind:"width",size:e}),ir(t)];var e},sr=(n,r)=>{const t=dr(n),e=ar(r,"largest")(t).map((n=>n.size));return[e[0],e[1]]},lr=()=>{const n=document.createElement("canvas"),r=n.getContext("2d");return[n,r]},vr={image:800,highResolutionImage:2e3},pr=(n,r)=>Math.min(n.naturalWidth,n.naturalHeight)>vr[r],hr=(n,r)=>pr(n,r)?((n,r)=>{const t=ar(n,"smallest"),[e,u]=lr(),i=dr(r),[o,c]=t(i).map((n=>n.size)),f=new ImageData(o,c),a=(n=>{const{naturalWidth:r,naturalHeight:t}=n,[e,u]=lr();return e.width=r,e.height=t,u.drawImage(n,0,0),u.getImageData(0,0,r,t)})(r);return e.width=o,e.height=c,er.lanczos(a,f),u.putImageData(f,0,0),e.toDataURL("image/jpeg",.7)})(vr[r],n):(n=>{const r=document.createElement("canvas"),{naturalWidth:t,naturalHeight:e}=n,u=r.getContext("2d");return r.width=t,r.height=e,u.drawImage(n,0,0,t,e),r.toDataURL("image/jpeg")})(n),mr=n=>{const r=(new TextEncoder).encode(n);return btoa(String.fromCharCode.apply(null,r))},Ir=(n,r)=>{r&&(n.dynamicFilters=r,n.requestFilters=Rn(r))},gr=new Map,br=n=>{var r;const t=(null!==(r=gr.get(n))&&void 0!==r?r:0)+1;return gr.set(n,t),()=>gr.get(n)!==t},Rr="2.226.2",xr={visualSearchId:null,textSearchId:null,textSearchQuery:null,searchType:null,searchStatus:"idle",resultLoaded:!1,resultViewed:!1,image:null,imageBounds:null,searchArea:null,croppedImageUrl:null,visualSearchStarted:!1,requestFilters:[]},Mr={results:[],sourceProduct:null,dynamicFilters:[],detectedObjects:[],stream:null,redirect:null},jr=Object.assign(Object.assign(Object.assign({},{excluded:null,campaignId:"",campaignIdTextSearch:"",campaignIdVisualSearch:""}),xr),Mr),yr=yn(jr),Or=yr.state,Ur=yr.onChange,wr=yn(jr),Wr=wr.state,Sr=wr.onChange,Ar=yn(Object.assign({},jr)).state,qr=n=>{switch(n){case"widget":return Or;case"components":return Wr;case"shopTheLook":return Ar;default:throw new Error(`Unknown store name: ${n}`)}},Pr=n=>{const r=qr(n);r.resultLoaded=!1,r.resultViewed=!1},_r=(n,r="appStateAndReceivedData",t=[])=>{const e=qr(n);let u={};switch(r){case"appStateOnly":u=Object.assign({},xr);break;case"receivedDataOnly":u=Object.assign({},Mr);break;case"appStateAndReceivedData":u=Object.assign(Object.assign({},xr),Mr);break;case"all":u=Object.assign({},jr)}for(const n of t)delete u[n];Object.assign(e,u)},kr=(n,r,t)=>{const e=Object.assign(Object.assign({results:r.results,dynamicFilters:r.dynamicFilters,detectedObjects:r.detectedObjects,requestId:"VPS"===t?r.visualSearchId||"":r.textSearchId||""},vn("query",r.textSearchQuery)),{storeName:n,campaignTypeId:t,campaignTypeName:cn[t],widgetVersion:Rr});document.dispatchEvent(new CustomEvent("vviinnSearchSuccess",{detail:e,bubbles:!0,composed:!0}))},Fr=(n,r=()=>!1)=>t=>(r()||(_r(n,"receivedDataOnly",["dynamicFilters"]),qr(n).searchStatus="error"),t),Tr=(n,r,t,e,u=!1)=>{const i=br(n);return p(wn(t,r),_,P,A((n=>V(n,e))),S((r=>(i()||((n,r=!1)=>async t=>{var e;const u=qr(n);if("shopTheLook"===n)return void(u.visualSearchId=t.requestId);const i=t.interactions.suggestedSearchAreas.map((({rectangle:n})=>n));i.length>0&&(u.detectedObjects=i),u.visualSearchId=t.requestId,u.results=t.data.products,Ir(u,t.interactions.dynamicFilters),u.redirect=t.interactions.redirect?Object.assign(Object.assign({},t.interactions.redirect),{searchId:t.requestId}):null,u.stream=null!==(e=null==t?void 0:t.stream)&&void 0!==e?e:null,u.searchStatus="success",r||kr(n,u,"VPS")})(n,u)(r),r))),W(Fr(n,i)))},Er=(n,r,{apiPath:t,campaignId:e,imageType:u="image",searchId:i,isHiResUpdate:o=!1}={})=>c=>{const f=qr(n);return p(P((n=>O.pipe(U.fromNullable(n),R.fromOption((()=>Dn)),R.chain(Vn)))(c)),C((n=>r=>O.pipe(r,Hn,Wn.map((r=>hr(r,n))),Wn.chain(Bn)))(u)),A((r=>(n=>r=>p(w(Hn(r)),S((r=>(qr(n).image=r,r))),S((()=>r))))(n)(r))),A((c=>p(E((async()=>Object.assign(Object.assign(Object.assign({query:{[u]:(await Ln(c)).split(",")[1]},objectDetection:{include:"image"===u}},hn("staticFilters",Object.assign({},pn("excluded",f.excluded)))),vn("requestId",i)),pn("campaign",e||f.campaignIdVisualSearch||f.campaignId))),(n=>({kind:"network error",inner:n}))),A((e=>Tr(n,e,r,t,o)))))))},Cr=async(n,r,t,{apiPath:e,campaignId:u}={})=>{const i=qr(n),o=Object.assign(Object.assign({query:{url:r},objectDetection:{include:!0}},hn("staticFilters",Object.assign({},pn("excluded",i.excluded)))),pn("campaign",u||i.campaignIdVisualSearch||i.campaignId));return Tr(n,o,t,e)()},zr=(n,r,t={})=>async e=>{var u;const i=qr(n);"shopTheLook"!==n&&Object.assign(i,{image:null,detectedObjects:[],textSearchQuery:null,searchType:"image",searchStatus:"loading",visualSearchStarted:!0});const o=await Er(n,r,t)(e)();return(null===(u=i.visualSearchId)||void 0===u?void 0:u.length)&&await p(w(Hn(e)),S((n=>pr(n,"highResolutionImage"))),z((()=>N(!1))))()?(p(Er(n,r,Object.assign(Object.assign({},t),{imageType:"highResolutionImage",searchId:i.visualSearchId,isHiResUpdate:!0}))(e),D((n=>(console.error("Failed to upload hi-res image:",n),N(o)))))(),o):o},Nr=async(n,r,t,{apiPath:e,campaignId:u,dropAppliedFilters:i}={})=>{const o=qr(n);o.textSearchQuery=null,o.searchType="image",o.searchStatus="loading",o.visualSearchStarted=!0;let c=null,f=!1;if(o.searchArea){if("shopTheLook"===n)c=o.searchArea;else if(o.searchArea&&o.imageBounds){const n=L(o.imageBounds)(o.searchArea);c={width:n.width,height:n.height,left:n.left,top:n.top}}}else c=null,f=!0;const a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vn("requestId",null!=r?r:o.visualSearchId)),pn("campaign",u||o.campaignIdVisualSearch||o.campaignId)),pn("dynamicFilters",i?[]:o.requestFilters)),{query:Object.assign({},vn("searchArea",c))}),hn("staticFilters",Object.assign({},pn("excluded",o.excluded)))),{objectDetection:{include:f}});return Tr(n,a,t,e)()},Vr=(n,r)=>{qr(n).textSearchQuery=r||null},Dr=async(n,r,t,e,u,i)=>{const o=qr(n);o.textSearchQuery=r,o.searchType="text",o.searchStatus="loading";const c=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({query:r},vn("requestId",u)),vn("resultsCount",i)),pn("dynamicFilters",o.requestFilters)),pn("campaign",o.campaignIdTextSearch)),hn("staticFilters",Object.assign({},pn("excluded",o.excluded)))),f=br(n);return p(wn(t,c),_,P,A((n=>q(n,e))),S((r=>{var t,e,u,i;return f()||(o.results=null!==(e=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.products)&&void 0!==e?e:[],o.textSearchId=r.requestId,Ir(o,null===(u=null==r?void 0:r.interactions)||void 0===u?void 0:u.dynamicFilters),o.stream=null!==(i=null==r?void 0:r.stream)&&void 0!==i?i:null,o.searchStatus="success",kr(n,o,"TPS")),r})),W(Fr(n,f)))()},Lr=async(n,r,t,e,u,i,o)=>{const c=qr("components");c.searchStatus="loading";const f="product_type"===n||"google_product_category"===n?p(r,(n=>n.split(" > ").join(">")),mr,(n=>n.split("=")[0])):r,a=Object.assign(Object.assign({staticFilters:{included:[{column:n,values:[f]}]}},vn("resultsCount",u)),vn("dynamicFilters",i));return await p(wn(t,a),_,P,k((n=>F(n,e))),S((n=>{var r,t,e,u;return o||(c.results=null!==(t=null===(r=null==n?void 0:n.data)||void 0===r?void 0:r.products)&&void 0!==t?t:[],c.dynamicFilters=null!==(u=null===(e=null==n?void 0:n.interactions)||void 0===e?void 0:e.dynamicFilters)&&void 0!==u?u:[],c.searchStatus="success",kr("components",c,"TPS")),n})),W(Fr("components")))()},Hr=n=>n?{state:Or,onChange:Ur,storeName:"widget"}:{state:Wr,onChange:Sr,storeName:"components"},$r=async(n,r,t,e,u)=>{const i=qr(n);return p(wn(t,{query:r}),_,P,A((n=>T(n,e))),S((n=>{var t,e;if(n.data.query.trim().toLowerCase()!==(null===(t=i.textSearchQuery)||void 0===t?void 0:t.trim().toLowerCase()))return n;const o=null!==(e=n.data.completions)&&void 0!==e?e:[];null==u||u(o);const c=o.find((n=>n.suggestion.trim().toLowerCase()===r.trim().toLowerCase()&&(null==n?void 0:n.url)));return i.redirect=(null==c?void 0:c.url)?{url:c.url,query:r}:null,n})),W((n=>n)))()};export{_r as A,Lr as B,Sn as C,Pn as D,an as E,fn as F,on as _,Cr as a,Hn as b,zr as c,Vr as d,$r as e,cn as f,En as g,pn as h,qn as i,Dr as j,Cn as k,Or as l,Nr as m,bn as n,gn as o,ln as p,In as q,mn as r,Ar as s,$n as t,Hr as u,Rr as v,Rn as w,Pr as x,sr as y,Vn as z}
|
|
8
|
+
import{a as n,f as r}from"./p-FhFmxhnG.js";import{r as t,g as e,h as u,j as i,k as o,l as c,n as f,o as a,p as d,q as s,t as l,u as v,v as p,w as h,x as m,y as I,z as g,A as b,E as R,B as x,C as M,D as j,F as y,_ as O,O as U,G as w,H as W,I as S,J as A,K as q,L as P,M as _,N as k,P as F,Q as T,R as E,S as C,T as z,U as N,V,W as L,a as D}from"./p-CLnNoPoc.js";var H,$,B={},K={},J={};function Q(){return H||(H=1,function(n){var r=J&&J.__createBinding||(Object.create?function(n,r,t,e){void 0===e&&(e=t);var u=Object.getOwnPropertyDescriptor(r,t);u&&!("get"in u?!r.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,e,u)}:function(n,r,t,e){void 0===e&&(e=t),n[e]=r[t]}),d=J&&J.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),s=J&&J.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return d(t,n),t},l=J&&J.__spreadArray||function(n,r,t){if(t||2===arguments.length)for(var e,u=0,i=r.length;u<i;u++)!e&&u in r||(e||(e=Array.prototype.slice.call(r,0,u)),e[u]=r[u]);return n.concat(e||Array.prototype.slice.call(r))};Object.defineProperty(n,"__esModule",{value:!0}),n.traverse=n.reduceRightWithIndex=n.foldMapWithIndex=n.reduceWithIndex=n.reduceRight=n.foldMap=n.reduce=n.mapWithIndex=n.map=n.flatten=n.duplicate=n.extend=n.flatMap=n.ap=n.alt=n.altW=n.of=n.chunksOf=n.splitAt=n.chop=n.chainWithIndex=n.intersperse=n.prependAll=n.unzip=n.zipWith=n.modifyAt=n.updateAt=n.sort=n.groupBy=n.reverse=n.fromArray=n.unappend=n.unprepend=n.range=n.replicate=n.makeBy=n.fromReadonlyArray=n.rotate=n.union=n.sortBy=n.uniq=n.unsafeUpdateAt=n.unsafeInsertAt=n.append=n.appendW=n.prepend=n.prependW=n.isOutOfBound=n.isNonEmpty=n.empty=void 0,n.insertAt=n.snoc=n.unsnoc=n.uncons=n.filterWithIndex=n.chain=n.intercalate=n.updateLast=n.modifyLast=n.updateHead=n.modifyHead=n.matchRight=n.matchLeft=n.concatAll=n.max=n.min=n.init=n.last=n.tail=n.head=n.apS=n.bind=n.let=n.bindTo=n.Do=n.Comonad=n.Alt=n.TraversableWithIndex=n.Traversable=n.FoldableWithIndex=n.Foldable=n.Monad=n.chainFirst=n.Chain=n.Applicative=n.apSecond=n.apFirst=n.Apply=n.FunctorWithIndex=n.Pointed=n.flap=n.Functor=n.getUnionSemigroup=n.getEq=n.getSemigroup=n.getShow=n.URI=n.extract=n.traverseWithIndex=n.sequence=void 0,n.readonlyNonEmptyArray=n.fold=n.prependToAll=void 0,n.concatW=x,n.concat=M,n.group=j,n.zip=function r(t,e){return void 0===e?function(n){return r(n,t)}:(0,n.zipWith)(t,e,(function(n,r){return[n,r]}))},n.groupSort=function(r){var t=(0,n.sort)(r),e=j(r);return function(r){return(0,n.isNonEmpty)(r)?e(t(r)):n.empty}},n.filter=function(r){return(0,n.filterWithIndex)((function(n,t){return r(t)}))},n.cons=function(r,t){return void 0===t?(0,n.prepend)(r):(0,m.pipe)(t,(0,n.prepend)(r))};var v=o(),p=c(),h=a(),m=u(),I=i(),g=s(t()),b=f(),R=s(e());function x(n){return function(r){return r.concat(n)}}function M(n,r){return r?n.concat(r):function(r){return r.concat(n)}}function j(r){return function(t){var e=t.length;if(0===e)return n.empty;for(var u=[],i=t[0],o=[i],c=1;c<e;c++){var f=t[c];r.equals(f,i)?o.push(f):(u.push(o),o=[i=f])}return u.push(o),u}}n.empty=g.emptyReadonlyArray,n.isNonEmpty=g.isNonEmpty,n.isOutOfBound=function(n,r){return n<0||n>=r.length},n.prependW=function(n){return function(r){return l([n],r,!0)}},n.prepend=n.prependW,n.appendW=function(n){return function(r){return l(l([],r,!0),[n],!1)}},n.append=n.appendW,n.unsafeInsertAt=function(r,t,e){if((0,n.isNonEmpty)(e)){var u=g.fromReadonlyNonEmptyArray(e);return u.splice(r,0,t),u}return[t]},n.unsafeUpdateAt=function(n,r,t){if(t[n]===r)return t;var e=g.fromReadonlyNonEmptyArray(t);return e[n]=r,e},n.uniq=function(r){return function(t){if(1===t.length)return t;for(var e=[(0,n.head)(t)],u=function(n){e.every((function(t){return!r.equals(t,n)}))&&e.push(n)},i=0,o=(0,n.tail)(t);i<o.length;i++)u(o[i]);return e}},n.sortBy=function(r){if((0,n.isNonEmpty)(r)){var t=(0,b.getMonoid)();return(0,n.sort)(r.reduce(t.concat,t.empty))}return m.identity},n.union=function(r){var t=(0,n.uniq)(r);return function(n){return function(r){return t((0,m.pipe)(r,M(n)))}}},n.rotate=function(r){return function(t){var e=t.length,u=Math.round(r)%e;if((0,n.isOutOfBound)(Math.abs(u),t)||0===u)return t;if(u<0){var i=(0,n.splitAt)(-u)(t);return(0,m.pipe)(i[1],M(i[0]))}return(0,n.rotate)(u-e)(t)}},n.fromReadonlyArray=function(r){return(0,n.isNonEmpty)(r)?g.some(r):g.none},n.makeBy=function(n){return function(r){for(var t=Math.max(0,Math.floor(r)),e=[n(0)],u=1;u<t;u++)e.push(n(u));return e}},n.replicate=function(r){return(0,n.makeBy)((function(){return r}))},n.range=function(r,t){return r<=t?(0,n.makeBy)((function(n){return r+n}))(t-r+1):[r]},n.unprepend=function(r){return[(0,n.head)(r),(0,n.tail)(r)]},n.unappend=function(r){return[(0,n.init)(r),(0,n.last)(r)]},n.fromArray=function(r){return(0,n.fromReadonlyArray)(r.slice())},n.reverse=function(r){return 1===r.length?r:l([(0,n.last)(r)],r.slice(0,-1).reverse(),!0)},n.groupBy=function(n){return function(r){for(var t={},e=0,u=r;e<u.length;e++){var i=u[e],o=n(i);g.has.call(t,o)?t[o].push(i):t[o]=[i]}return t}},n.sort=function(n){return function(r){return 1===r.length?r:r.slice().sort(n.compare)}},n.updateAt=function(r,t){return(0,n.modifyAt)(r,(function(){return t}))},n.modifyAt=function(r,t){return function(e){return(0,n.isOutOfBound)(r,e)?g.none:g.some((0,n.unsafeUpdateAt)(r,t(e[r]),e))}},n.zipWith=function(n,r,t){for(var e=[t(n[0],r[0])],u=Math.min(n.length,r.length),i=1;i<u;i++)e[i]=t(n[i],r[i]);return e},n.unzip=function(n){for(var r=[n[0][0]],t=[n[0][1]],e=1;e<n.length;e++)r[e]=n[e][0],t[e]=n[e][1];return[r,t]},n.prependAll=function(n){return function(r){for(var t=[n,r[0]],e=1;e<r.length;e++)t.push(n,r[e]);return t}},n.intersperse=function(r){return function(t){var e=(0,n.tail)(t);return(0,n.isNonEmpty)(e)?(0,m.pipe)(e,(0,n.prependAll)(r),(0,n.prepend)((0,n.head)(t))):t}},n.chainWithIndex=function(r){return function(t){for(var e=g.fromReadonlyNonEmptyArray(r(0,(0,n.head)(t))),u=1;u<t.length;u++)for(var i=r(u,t[u]),o=0;o<i.length;o++)e.push(i[o]);return e}},n.chop=function(r){return function(t){for(var e=r(t),u=[e[0]],i=e[1];(0,n.isNonEmpty)(i);){var o=r(i),c=o[1];u.push(o[0]),i=c}return u}},n.splitAt=function(r){return function(t){var e=Math.max(1,r);return e>=t.length?[t,n.empty]:[(0,m.pipe)(t.slice(1,e),(0,n.prepend)((0,n.head)(t))),t.slice(e)]}},n.chunksOf=function(r){return(0,n.chop)((0,n.splitAt)(r))};var y=function(r,t){return(0,m.pipe)(r,(0,n.map)(t))},O=function(r,t){return(0,m.pipe)(r,(0,n.mapWithIndex)(t))},U=function(r,t){return(0,m.pipe)(r,(0,n.ap)(t))},w=function(r,t){return(0,m.pipe)(r,(0,n.extend)(t))},W=function(r,t,e){return(0,m.pipe)(r,(0,n.reduce)(t,e))},S=function(r){var t=(0,n.foldMap)(r);return function(n,r){return(0,m.pipe)(n,t(r))}},A=function(r,t,e){return(0,m.pipe)(r,(0,n.reduceRight)(t,e))},q=function(r){var t=(0,n.traverse)(r);return function(n,r){return(0,m.pipe)(n,t(r))}},P=function(r,t){return(0,m.pipe)(r,(0,n.alt)(t))},_=function(r,t,e){return(0,m.pipe)(r,(0,n.reduceWithIndex)(t,e))},k=function(r){var t=(0,n.foldMapWithIndex)(r);return function(n,r){return(0,m.pipe)(n,t(r))}},F=function(r,t,e){return(0,m.pipe)(r,(0,n.reduceRightWithIndex)(t,e))},T=function(r){var t=(0,n.traverseWithIndex)(r);return function(n,r){return(0,m.pipe)(n,t(r))}};n.of=g.singleton,n.altW=function(n){return function(r){return(0,m.pipe)(r,x(n()))}},n.alt=n.altW,n.ap=function(r){return(0,n.flatMap)((function(t){return(0,m.pipe)(r,(0,n.map)(t))}))},n.flatMap=(0,m.dual)(2,(function(r,t){return(0,m.pipe)(r,(0,n.chainWithIndex)((function(n,r){return t(r,n)})))})),n.extend=function(r){return function(t){for(var e=(0,n.tail)(t),u=[r(t)];(0,n.isNonEmpty)(e);)u.push(r(e)),e=(0,n.tail)(e);return u}},n.duplicate=(0,n.extend)(m.identity),n.flatten=(0,n.flatMap)(m.identity),n.map=function(r){return(0,n.mapWithIndex)((function(n,t){return r(t)}))},n.mapWithIndex=function(r){return function(t){for(var e=[r(0,(0,n.head)(t))],u=1;u<t.length;u++)e.push(r(u,t[u]));return e}},n.reduce=function(r,t){return(0,n.reduceWithIndex)(r,(function(n,r,e){return t(r,e)}))},n.foldMap=function(n){return function(r){return function(t){return t.slice(1).reduce((function(t,e){return n.concat(t,r(e))}),r(t[0]))}}},n.reduceRight=function(r,t){return(0,n.reduceRightWithIndex)(r,(function(n,r,e){return t(r,e)}))},n.reduceWithIndex=function(n,r){return function(t){return t.reduce((function(n,t,e){return r(e,n,t)}),n)}},n.foldMapWithIndex=function(n){return function(r){return function(t){return t.slice(1).reduce((function(t,e,u){return n.concat(t,r(u+1,e))}),r(0,t[0]))}}},n.reduceRightWithIndex=function(n,r){return function(t){return t.reduceRight((function(n,t,e){return r(e,t,n)}),n)}},n.traverse=function(r){var t=(0,n.traverseWithIndex)(r);return function(n){return t((function(r,t){return n(t)}))}},n.sequence=function(r){return(0,n.traverseWithIndex)(r)(m.SK)},n.traverseWithIndex=function(r){return function(t){return function(e){for(var u=r.map(t(0,(0,n.head)(e)),n.of),i=1;i<e.length;i++)u=r.ap(r.map(u,(function(r){return function(t){return(0,m.pipe)(r,(0,n.append)(t))}})),t(i,e[i]));return u}}},n.extract=g.head,n.URI="ReadonlyNonEmptyArray",n.getShow=function(n){return{show:function(r){return"[".concat(r.map(n.show).join(", "),"]")}}},n.getSemigroup=function(){return{concat:M}},n.getEq=function(n){return(0,h.fromEquals)((function(r,t){return r.length===t.length&&r.every((function(r,e){return n.equals(r,t[e])}))}))},n.getUnionSemigroup=function(r){var t=(0,n.union)(r);return{concat:function(n,r){return t(r)(n)}}},n.Functor={URI:n.URI,map:y},n.flap=(0,I.flap)(n.Functor),n.Pointed={URI:n.URI,of:n.of},n.FunctorWithIndex={URI:n.URI,map:y,mapWithIndex:O},n.Apply={URI:n.URI,map:y,ap:U},n.apFirst=(0,v.apFirst)(n.Apply),n.apSecond=(0,v.apSecond)(n.Apply),n.Applicative={URI:n.URI,map:y,ap:U,of:n.of},n.Chain={URI:n.URI,map:y,ap:U,chain:n.flatMap},n.chainFirst=(0,p.chainFirst)(n.Chain),n.Monad={URI:n.URI,map:y,ap:U,of:n.of,chain:n.flatMap},n.Foldable={URI:n.URI,reduce:W,foldMap:S,reduceRight:A},n.FoldableWithIndex={URI:n.URI,reduce:W,foldMap:S,reduceRight:A,reduceWithIndex:_,foldMapWithIndex:k,reduceRightWithIndex:F},n.Traversable={URI:n.URI,map:y,reduce:W,foldMap:S,reduceRight:A,traverse:q,sequence:n.sequence},n.TraversableWithIndex={URI:n.URI,map:y,mapWithIndex:O,reduce:W,foldMap:S,reduceRight:A,traverse:q,sequence:n.sequence,reduceWithIndex:_,foldMapWithIndex:k,reduceRightWithIndex:F,traverseWithIndex:T},n.Alt={URI:n.URI,map:y,alt:P},n.Comonad={URI:n.URI,map:y,extend:w,extract:n.extract},n.Do=(0,n.of)(g.emptyRecord),n.bindTo=(0,I.bindTo)(n.Functor),n.let=(0,I.let)(n.Functor),n.bind=(0,p.bind)(n.Chain),n.apS=(0,v.apS)(n.Apply),n.head=n.extract,n.tail=g.tail,n.last=function(n){return n[n.length-1]},n.init=function(n){return n.slice(0,-1)},n.min=function(n){var r=R.min(n);return function(n){return n.reduce(r.concat)}},n.max=function(n){var r=R.max(n);return function(n){return n.reduce(r.concat)}},n.concatAll=function(n){return function(r){return r.reduce(n.concat)}},n.matchLeft=function(r){return function(t){return r((0,n.head)(t),(0,n.tail)(t))}},n.matchRight=function(r){return function(t){return r((0,n.init)(t),(0,n.last)(t))}},n.modifyHead=function(r){return function(t){return l([r((0,n.head)(t))],(0,n.tail)(t),!0)}},n.updateHead=function(r){return(0,n.modifyHead)((function(){return r}))},n.modifyLast=function(r){return function(t){return(0,m.pipe)((0,n.init)(t),(0,n.append)(r((0,n.last)(t))))}},n.updateLast=function(r){return(0,n.modifyLast)((function(){return r}))},n.intercalate=function(r){var t=(0,n.concatAll)(r);return function(r){return(0,m.flow)((0,n.intersperse)(r),t)}},n.chain=n.flatMap,n.filterWithIndex=function(r){return function(t){return(0,n.fromReadonlyArray)(t.filter((function(n,t){return r(t,n)})))}},n.uncons=n.unprepend,n.unsnoc=n.unappend,n.snoc=function(n,r){return(0,m.pipe)(n,M([r]))},n.insertAt=function(r,t){return function(e){return r<0||r>e.length?g.none:g.some((0,n.unsafeInsertAt)(r,t,e))}},n.prependToAll=n.prependAll,n.fold=n.concatAll,n.readonlyNonEmptyArray={URI:n.URI,of:n.of,map:y,mapWithIndex:O,ap:U,chain:n.flatMap,extend:w,extract:n.extract,reduce:W,foldMap:S,reduceRight:A,traverse:q,sequence:n.sequence,reduceWithIndex:_,foldMapWithIndex:k,reduceRightWithIndex:F,traverseWithIndex:T,alt:P}}(J)),J}function G(){return $||($=1,function(n){var r=K&&K.__createBinding||(Object.create?function(n,r,t,e){void 0===e&&(e=t);var u=Object.getOwnPropertyDescriptor(r,t);u&&!("get"in u?!r.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,e,u)}:function(n,r,t,e){void 0===e&&(e=t),n[e]=r[t]}),e=K&&K.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),a=K&&K.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var u in n)"default"!==u&&Object.prototype.hasOwnProperty.call(n,u)&&r(t,n,u);return e(t,n),t},d=K&&K.__spreadArray||function(n,r,t){if(t||2===arguments.length)for(var e,u=0,i=r.length;u<i;u++)!e&&u in r||(e||(e=Array.prototype.slice.call(r,0,u)),e[u]=r[u]);return n.concat(e||Array.prototype.slice.call(r))};Object.defineProperty(n,"__esModule",{value:!0}),n.reduceRightWithIndex=n.reduceRight=n.reduceWithIndex=n.reduce=n.mapWithIndex=n.map=n.flatten=n.duplicate=n.extend=n.flatMap=n.ap=n.alt=n.altW=n.chunksOf=n.splitAt=n.chop=n.chainWithIndex=n.foldMap=n.foldMapWithIndex=n.intersperse=n.prependAll=n.unzip=n.zipWith=n.of=n.copy=n.modifyAt=n.updateAt=n.insertAt=n.sort=n.groupBy=n.reverse=n.unappend=n.unprepend=n.range=n.replicate=n.makeBy=n.fromArray=n.fromReadonlyNonEmptyArray=n.rotate=n.union=n.sortBy=n.uniq=n.unsafeUpdateAt=n.unsafeInsertAt=n.append=n.appendW=n.prepend=n.prependW=n.isOutOfBound=n.isNonEmpty=void 0,n.snoc=n.unsnoc=n.uncons=n.filterWithIndex=n.chain=n.intercalate=n.updateLast=n.modifyLast=n.updateHead=n.modifyHead=n.matchRight=n.matchLeft=n.concatAll=n.max=n.min=n.init=n.last=n.tail=n.head=n.apS=n.bind=n.let=n.bindTo=n.Do=n.Comonad=n.Alt=n.TraversableWithIndex=n.Traversable=n.FoldableWithIndex=n.Foldable=n.Monad=n.chainFirst=n.Chain=n.Applicative=n.apSecond=n.apFirst=n.Apply=n.FunctorWithIndex=n.Pointed=n.flap=n.Functor=n.getUnionSemigroup=n.getEq=n.getSemigroup=n.getShow=n.URI=n.extract=n.traverseWithIndex=n.sequence=n.traverse=void 0,n.nonEmptyArray=n.fold=n.prependToAll=void 0,n.concatW=g,n.concat=b,n.group=R,n.zip=function r(t,e){return void 0===e?function(n){return r(n,t)}:(0,n.zipWith)(t,e,(function(n,r){return[n,r]}))},n.groupSort=function(r){var t=(0,n.sort)(r),e=R(r);return function(r){return(0,n.isNonEmpty)(r)?e(t(r)):[]}},n.filter=function(r){return(0,n.filterWithIndex)((function(n,t){return r(t)}))},n.cons=function(r,t){return void 0===t?(0,n.prepend)(r):(0,v.pipe)(t,(0,n.prepend)(r))};var s=o(),l=c(),v=u(),p=i(),h=a(t()),m=f(),I=a(Q());function g(n){return function(r){return r.concat(n)}}function b(n,r){return r?n.concat(r):function(r){return r.concat(n)}}function R(n){return function(r){var t=r.length;if(0===t)return[];for(var e=[],u=r[0],i=[u],o=1;o<t;o++){var c=r[o];n.equals(c,u)?i.push(c):(e.push(i),i=[u=c])}return e.push(i),e}}n.isNonEmpty=function(n){return n.length>0},n.isOutOfBound=function(n,r){return n<0||n>=r.length},n.prependW=function(n){return function(r){return d([n],r,!0)}},n.prepend=n.prependW,n.appendW=function(n){return function(r){return d(d([],r,!0),[n],!1)}},n.append=n.appendW,n.unsafeInsertAt=function(r,t,e){if((0,n.isNonEmpty)(e)){var u=(0,n.fromReadonlyNonEmptyArray)(e);return u.splice(r,0,t),u}return[t]},n.unsafeUpdateAt=function(r,t,e){var u=(0,n.fromReadonlyNonEmptyArray)(e);return u[r]=t,u},n.uniq=function(r){return function(t){if(1===t.length)return(0,n.copy)(t);for(var e=[(0,n.head)(t)],u=function(n){e.every((function(t){return!r.equals(t,n)}))&&e.push(n)},i=0,o=(0,n.tail)(t);i<o.length;i++)u(o[i]);return e}},n.sortBy=function(r){if((0,n.isNonEmpty)(r)){var t=(0,m.getMonoid)();return(0,n.sort)(r.reduce(t.concat,t.empty))}return n.copy},n.union=function(r){var t=(0,n.uniq)(r);return function(n){return function(r){return t((0,v.pipe)(r,b(n)))}}},n.rotate=function(r){return function(t){var e=t.length,u=Math.round(r)%e;if((0,n.isOutOfBound)(Math.abs(u),t)||0===u)return(0,n.copy)(t);if(u<0){var i=(0,n.splitAt)(-u)(t);return(0,v.pipe)(i[1],b(i[0]))}return(0,n.rotate)(u-e)(t)}},n.fromReadonlyNonEmptyArray=h.fromReadonlyNonEmptyArray,n.fromArray=function(r){return(0,n.isNonEmpty)(r)?h.some(r):h.none},n.makeBy=function(n){return function(r){for(var t=Math.max(0,Math.floor(r)),e=[n(0)],u=1;u<t;u++)e.push(n(u));return e}},n.replicate=function(r){return(0,n.makeBy)((function(){return r}))},n.range=function(r,t){return r<=t?(0,n.makeBy)((function(n){return r+n}))(t-r+1):[r]},n.unprepend=function(r){return[(0,n.head)(r),(0,n.tail)(r)]},n.unappend=function(r){return[(0,n.init)(r),(0,n.last)(r)]},n.reverse=function(r){return d([(0,n.last)(r)],r.slice(0,-1).reverse(),!0)},n.groupBy=function(n){return function(r){for(var t={},e=0,u=r;e<u.length;e++){var i=u[e],o=n(i);h.has.call(t,o)?t[o].push(i):t[o]=[i]}return t}},n.sort=function(n){return function(r){return r.slice().sort(n.compare)}},n.insertAt=function(r,t){return function(e){return r<0||r>e.length?h.none:h.some((0,n.unsafeInsertAt)(r,t,e))}},n.updateAt=function(r,t){return(0,n.modifyAt)(r,(function(){return t}))},n.modifyAt=function(r,t){return function(e){return(0,n.isOutOfBound)(r,e)?h.none:h.some((0,n.unsafeUpdateAt)(r,t(e[r]),e))}},n.copy=n.fromReadonlyNonEmptyArray,n.of=function(n){return[n]},n.zipWith=function(n,r,t){for(var e=[t(n[0],r[0])],u=Math.min(n.length,r.length),i=1;i<u;i++)e[i]=t(n[i],r[i]);return e},n.unzip=function(n){for(var r=[n[0][0]],t=[n[0][1]],e=1;e<n.length;e++)r[e]=n[e][0],t[e]=n[e][1];return[r,t]},n.prependAll=function(n){return function(r){for(var t=[n,r[0]],e=1;e<r.length;e++)t.push(n,r[e]);return t}},n.intersperse=function(r){return function(t){var e=(0,n.tail)(t);return(0,n.isNonEmpty)(e)?(0,v.pipe)(e,(0,n.prependAll)(r),(0,n.prepend)((0,n.head)(t))):(0,n.copy)(t)}},n.foldMapWithIndex=I.foldMapWithIndex,n.foldMap=I.foldMap,n.chainWithIndex=function(r){return function(t){for(var e=(0,n.fromReadonlyNonEmptyArray)(r(0,(0,n.head)(t))),u=1;u<t.length;u++)for(var i=r(u,t[u]),o=0;o<i.length;o++)e.push(i[o]);return e}},n.chop=function(r){return function(t){for(var e=r(t),u=[e[0]],i=e[1];(0,n.isNonEmpty)(i);){var o=r(i),c=o[1];u.push(o[0]),i=c}return u}},n.splitAt=function(r){return function(t){var e=Math.max(1,r);return e>=t.length?[(0,n.copy)(t),[]]:[(0,v.pipe)(t.slice(1,e),(0,n.prepend)((0,n.head)(t))),t.slice(e)]}},n.chunksOf=function(r){return(0,n.chop)((0,n.splitAt)(r))};var x=function(r,t){return(0,v.pipe)(r,(0,n.map)(t))},M=function(r,t){return(0,v.pipe)(r,(0,n.mapWithIndex)(t))},j=function(r,t){return(0,v.pipe)(r,(0,n.ap)(t))},y=function(r,t){return(0,v.pipe)(r,(0,n.extend)(t))},O=function(r,t,e){return(0,v.pipe)(r,(0,n.reduce)(t,e))},U=function(r){var t=(0,n.foldMap)(r);return function(n,r){return(0,v.pipe)(n,t(r))}},w=function(r,t,e){return(0,v.pipe)(r,(0,n.reduceRight)(t,e))},W=function(r){var t=(0,n.traverse)(r);return function(n,r){return(0,v.pipe)(n,t(r))}},S=function(r,t){return(0,v.pipe)(r,(0,n.alt)(t))},A=function(r,t,e){return(0,v.pipe)(r,(0,n.reduceWithIndex)(t,e))},q=function(r){var t=(0,n.foldMapWithIndex)(r);return function(n,r){return(0,v.pipe)(n,t(r))}},P=function(r,t,e){return(0,v.pipe)(r,(0,n.reduceRightWithIndex)(t,e))},_=function(r){var t=(0,n.traverseWithIndex)(r);return function(n,r){return(0,v.pipe)(n,t(r))}};n.altW=function(n){return function(r){return(0,v.pipe)(r,g(n()))}},n.alt=n.altW,n.ap=function(r){return(0,n.flatMap)((function(t){return(0,v.pipe)(r,(0,n.map)(t))}))},n.flatMap=(0,v.dual)(2,(function(r,t){return(0,v.pipe)(r,(0,n.chainWithIndex)((function(n,r){return t(r,n)})))})),n.extend=function(r){return function(t){for(var e=(0,n.tail)(t),u=[r(t)];(0,n.isNonEmpty)(e);)u.push(r(e)),e=(0,n.tail)(e);return u}},n.duplicate=(0,n.extend)(v.identity),n.flatten=(0,n.flatMap)(v.identity),n.map=function(r){return(0,n.mapWithIndex)((function(n,t){return r(t)}))},n.mapWithIndex=function(r){return function(t){for(var e=[r(0,(0,n.head)(t))],u=1;u<t.length;u++)e.push(r(u,t[u]));return e}},n.reduce=I.reduce,n.reduceWithIndex=I.reduceWithIndex,n.reduceRight=I.reduceRight,n.reduceRightWithIndex=I.reduceRightWithIndex,n.traverse=function(r){var t=(0,n.traverseWithIndex)(r);return function(n){return t((function(r,t){return n(t)}))}},n.sequence=function(r){return(0,n.traverseWithIndex)(r)((function(n,r){return r}))},n.traverseWithIndex=function(r){return function(t){return function(e){for(var u=r.map(t(0,(0,n.head)(e)),n.of),i=1;i<e.length;i++)u=r.ap(r.map(u,(function(r){return function(t){return(0,v.pipe)(r,(0,n.append)(t))}})),t(i,e[i]));return u}}},n.extract=I.head,n.URI="NonEmptyArray",n.getShow=I.getShow,n.getSemigroup=function(){return{concat:b}},n.getEq=I.getEq,n.getUnionSemigroup=function(r){var t=(0,n.union)(r);return{concat:function(n,r){return t(r)(n)}}},n.Functor={URI:n.URI,map:x},n.flap=(0,p.flap)(n.Functor),n.Pointed={URI:n.URI,of:n.of},n.FunctorWithIndex={URI:n.URI,map:x,mapWithIndex:M},n.Apply={URI:n.URI,map:x,ap:j},n.apFirst=(0,s.apFirst)(n.Apply),n.apSecond=(0,s.apSecond)(n.Apply),n.Applicative={URI:n.URI,map:x,ap:j,of:n.of},n.Chain={URI:n.URI,map:x,ap:j,chain:n.flatMap},n.chainFirst=(0,l.chainFirst)(n.Chain),n.Monad={URI:n.URI,map:x,ap:j,of:n.of,chain:n.flatMap},n.Foldable={URI:n.URI,reduce:O,foldMap:U,reduceRight:w},n.FoldableWithIndex={URI:n.URI,reduce:O,foldMap:U,reduceRight:w,reduceWithIndex:A,foldMapWithIndex:q,reduceRightWithIndex:P},n.Traversable={URI:n.URI,map:x,reduce:O,foldMap:U,reduceRight:w,traverse:W,sequence:n.sequence},n.TraversableWithIndex={URI:n.URI,map:x,mapWithIndex:M,reduce:O,foldMap:U,reduceRight:w,traverse:W,sequence:n.sequence,reduceWithIndex:A,foldMapWithIndex:q,reduceRightWithIndex:P,traverseWithIndex:_},n.Alt={URI:n.URI,map:x,alt:S},n.Comonad={URI:n.URI,map:x,extend:y,extract:n.extract},n.Do=(0,n.of)(h.emptyRecord),n.bindTo=(0,p.bindTo)(n.Functor),n.let=(0,p.let)(n.Functor),n.bind=(0,l.bind)(n.Chain),n.apS=(0,s.apS)(n.Apply),n.head=I.head,n.tail=function(n){return n.slice(1)},n.last=I.last,n.init=function(n){return n.slice(0,-1)},n.min=I.min,n.max=I.max,n.concatAll=function(n){return function(r){return r.reduce(n.concat)}},n.matchLeft=function(r){return function(t){return r((0,n.head)(t),(0,n.tail)(t))}},n.matchRight=function(r){return function(t){return r((0,n.init)(t),(0,n.last)(t))}},n.modifyHead=function(r){return function(t){return d([r((0,n.head)(t))],(0,n.tail)(t),!0)}},n.updateHead=function(r){return(0,n.modifyHead)((function(){return r}))},n.modifyLast=function(r){return function(t){return(0,v.pipe)((0,n.init)(t),(0,n.append)(r((0,n.last)(t))))}},n.updateLast=function(r){return(0,n.modifyLast)((function(){return r}))},n.intercalate=I.intercalate,n.chain=n.flatMap,n.filterWithIndex=function(r){return function(t){return(0,n.fromArray)(t.filter((function(n,t){return r(t,n)})))}},n.uncons=n.unprepend,n.unsnoc=n.unappend,n.snoc=function(r,t){return(0,v.pipe)(r,(0,n.append)(t))},n.prependToAll=n.prependAll,n.fold=I.concatAll,n.nonEmptyArray={URI:n.URI,of:n.of,map:x,mapWithIndex:M,ap:j,chain:n.flatMap,extend:y,extract:n.extract,reduce:O,foldMap:U,reduceRight:w,traverse:W,sequence:n.sequence,reduceWithIndex:A,foldMapWithIndex:q,reduceRightWithIndex:P,traverseWithIndex:_,alt:S}}(K)),K}var X,Y,Z,nn={},rn={};function tn(){return X||(X=1,n=rn,Object.defineProperty(n,"__esModule",{value:!0}),n.Field=n.MonoidProduct=n.MonoidSum=n.SemigroupProduct=n.SemigroupSum=n.MagmaSub=n.Show=n.Bounded=n.Ord=n.Eq=n.isNumber=void 0,n.isNumber=function(n){return"number"==typeof n},n.Eq={equals:function(n,r){return n===r}},n.Ord={equals:n.Eq.equals,compare:function(n,r){return n<r?-1:n>r?1:0}},n.Bounded={equals:n.Eq.equals,compare:n.Ord.compare,top:1/0,bottom:-1/0},n.Show={show:function(n){return JSON.stringify(n)}},n.MagmaSub={concat:function(n,r){return n-r}},n.SemigroupSum={concat:function(n,r){return n+r}},n.SemigroupProduct={concat:function(n,r){return n*r}},n.MonoidSum={concat:n.SemigroupSum.concat,empty:0},n.MonoidProduct={concat:n.SemigroupProduct.concat,empty:1},n.Field={add:n.SemigroupSum.concat,zero:0,mul:n.SemigroupProduct.concat,one:1,sub:n.MagmaSub.concat,degree:function(){return 1},div:function(n,r){return n/r},mod:function(n,r){return n%r}}),rn;var n}function en(){return Y||(Y=1,function(n){var r=nn&&nn.__createBinding||(Object.create?function(n,r,t,e){void 0===e&&(e=t);var u=Object.getOwnPropertyDescriptor(r,t);u&&!("get"in u?!r.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,e,u)}:function(n,r,t,e){void 0===e&&(e=t),n[e]=r[t]}),e=nn&&nn.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),p=nn&&nn.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var u in n)"default"!==u&&Object.prototype.hasOwnProperty.call(n,u)&&r(t,n,u);return e(t,n),t},h=nn&&nn.__spreadArray||function(n,r,t){if(t||2===arguments.length)for(var e,u=0,i=r.length;u<i;u++)!e&&u in r||(e||(e=Array.prototype.slice.call(r,0,u)),e[u]=r[u]);return n.concat(e||Array.prototype.slice.call(r))};Object.defineProperty(n,"__esModule",{value:!0}),n.sortBy=n.uniq=n.rotate=n.intersperse=n.prependAll=n.unzip=n.zipWith=n.sort=n.lefts=n.rights=n.reverse=n.modifyAt=n.deleteAt=n.updateAt=n.insertAt=n.findLastIndex=n.findLastMap=n.findFirstMap=n.findIndex=n.dropRight=n.dropLeft=n.takeRight=n.takeLeft=n.init=n.tail=n.last=n.head=n.isOutOfBound=n.size=n.scanRight=n.scanLeft=n.chainWithIndex=n.foldRight=n.matchRight=n.matchRightW=n.foldLeft=n.matchLeft=n.matchLeftW=n.match=n.matchW=n.fromEither=n.fromOption=n.replicate=n.makeBy=n.appendW=n.append=n.prependW=n.prepend=n.isNonEmpty=n.isEmpty=void 0,n.getIntersectionSemigroup=n.getUnionMonoid=n.getUnionSemigroup=n.getOrd=n.getEq=n.getMonoid=n.getSemigroup=n.getShow=n.URI=n.unfold=n.wilt=n.wither=n.traverseWithIndex=n.sequence=n.traverse=n.reduceRightWithIndex=n.reduceRight=n.reduceWithIndex=n.foldMap=n.reduce=n.foldMapWithIndex=n.duplicate=n.extend=n.filterWithIndex=n.partitionMapWithIndex=n.partitionMap=n.partitionWithIndex=n.partition=n.compact=n.filterMap=n.filterMapWithIndex=n.filter=n.separate=n.mapWithIndex=n.map=n.flatten=n.flatMap=n.ap=n.alt=n.altW=n.zero=n.of=n._chainRecBreadthFirst=n._chainRecDepthFirst=n.concat=n.concatW=n.fromOptionK=n.chunksOf=n.splitAt=n.chop=void 0,n.cons=n.range=n.chain=n.apS=n.bind=n.let=n.bindTo=n.Do=n.intercalate=n.exists=n.some=n.empty=n.fromArray=n.toArray=n.unsafeDeleteAt=n.unsafeUpdateAt=n.unsafeInsertAt=n.fromEitherK=n.FromEither=n.filterE=n.Witherable=n.ChainRecBreadthFirst=n.chainRecBreadthFirst=n.ChainRecDepthFirst=n.chainRecDepthFirst=n.TraversableWithIndex=n.Traversable=n.FoldableWithIndex=n.Foldable=n.FilterableWithIndex=n.Filterable=n.Compactable=n.Extend=n.Alternative=n.guard=n.Zero=n.Alt=n.Unfoldable=n.chainFirst=n.Monad=n.Chain=n.Applicative=n.apSecond=n.apFirst=n.Apply=n.FunctorWithIndex=n.Pointed=n.flap=n.Functor=n.getDifferenceMagma=void 0,n.readonlyArray=n.prependToAll=n.snoc=void 0,n.fromPredicate=function(r){return function(t){return r(t)?[t]:n.empty}},n.lookup=function r(t,e){return void 0===e?function(n){return r(t,n)}:(0,n.isOutOfBound)(t,e)?M.none:M.some(e[t])},n.takeLeftWhile=function(r){return function(t){for(var e=[],u=0,i=t;u<i.length;u++){var o=i[u];if(!r(o))break;e.push(o)}var c=e.length;return c===t.length?t:0===c?n.empty:e}},n.spanLeft=function(r){return function(t){var e=(0,n.splitAt)(S(t,r))(t);return{init:e[0],rest:e[1]}}},n.dropLeftWhile=function(r){return function(t){var e=S(t,r);return 0===e?t:e===t.length?n.empty:t.slice(e)}},n.findFirst=function(n){return function(r){for(var t=0;t<r.length;t++)if(n(r[t]))return M.some(r[t]);return M.none}},n.findLast=function(n){return function(r){for(var t=r.length-1;t>=0;t--)if(n(r[t]))return M.some(r[t]);return M.none}},n.zip=function r(t,e){return void 0===e?function(n){return r(n,t)}:(0,n.zipWith)(t,e,(function(n,r){return[n,r]}))},n.elem=A,n.comprehension=function(r,t,e){void 0===e&&(e=function(){return!0});var u=function(r,i){return(0,n.isNonEmpty)(i)?(0,n.flatMap)(O.head(i),(function(t){return u((0,R.pipe)(r,(0,n.append)(t)),O.tail(i))})):e.apply(void 0,r)?[t.apply(void 0,r)]:n.empty};return u(n.empty,r)},n.union=q,n.intersection=P,n.difference=_,n.every=function(n){return function(r){return r.every(n)}};var m=o(),I=c(),g=a(),b=l(),R=u(),x=i(),M=p(t()),j=p(tn()),y=f(),O=p(Q()),U=v(),w=s(),W=d();n.isEmpty=function(n){return 0===n.length},n.isNonEmpty=O.isNonEmpty,n.prepend=O.prepend,n.prependW=O.prependW,n.append=O.append,n.appendW=O.appendW,n.makeBy=function(r,t){return r<=0?n.empty:O.makeBy(t)(r)},n.replicate=function(r,t){return(0,n.makeBy)(r,(function(){return t}))},n.fromOption=function(r){return M.isNone(r)?n.empty:[r.value]},n.fromEither=function(r){return M.isLeft(r)?n.empty:[r.right]},n.matchW=function(r,t){return function(e){return(0,n.isNonEmpty)(e)?t(e):r()}},n.match=n.matchW,n.matchLeftW=function(r,t){return function(e){return(0,n.isNonEmpty)(e)?t(O.head(e),O.tail(e)):r()}},n.matchLeft=n.matchLeftW,n.foldLeft=n.matchLeft,n.matchRightW=function(r,t){return function(e){return(0,n.isNonEmpty)(e)?t(O.init(e),O.last(e)):r()}},n.matchRight=n.matchRightW,n.foldRight=n.matchRight,n.chainWithIndex=function(r){return function(t){if((0,n.isEmpty)(t))return n.empty;for(var e=[],u=0;u<t.length;u++)for(var i=r(u,t[u]),o=0;o<i.length;o++)e.push(i[o]);return e}},n.scanLeft=function(n,r){return function(t){var e=t.length,u=new Array(e+1);u[0]=n;for(var i=0;i<e;i++)u[i+1]=r(u[i],t[i]);return u}},n.scanRight=function(n,r){return function(t){var e=t.length,u=new Array(e+1);u[e]=n;for(var i=e-1;i>=0;i--)u[i]=r(t[i],u[i+1]);return u}},n.size=function(n){return n.length},n.isOutOfBound=O.isOutOfBound,n.head=function(r){return(0,n.isNonEmpty)(r)?M.some(O.head(r)):M.none},n.last=function(r){return(0,n.isNonEmpty)(r)?M.some(O.last(r)):M.none},n.tail=function(r){return(0,n.isNonEmpty)(r)?M.some(O.tail(r)):M.none},n.init=function(r){return(0,n.isNonEmpty)(r)?M.some(O.init(r)):M.none},n.takeLeft=function(r){return function(t){return(0,n.isOutOfBound)(r,t)?t:0===r?n.empty:t.slice(0,r)}},n.takeRight=function(r){return function(t){return(0,n.isOutOfBound)(r,t)?t:0===r?n.empty:t.slice(-r)}};var S=function(n,r){for(var t=n.length,e=0;e<t&&r(n[e]);e++);return e};function A(n){return function(r,t){if(void 0===t){var e=A(n);return function(n){return e(r,n)}}for(var u=0;u<t.length;u++)if(n.equals(t[u],r))return!0;return!1}}function q(r){var t=O.union(r);return function(e,u){if(void 0===u){var i=q(r);return function(n){return i(n,e)}}return(0,n.isNonEmpty)(e)&&(0,n.isNonEmpty)(u)?t(u)(e):(0,n.isNonEmpty)(e)?e:u}}function P(n){var r=A(n);return function(t,e){if(void 0===e){var u=P(n);return function(n){return u(n,t)}}return t.filter((function(n){return r(n,e)}))}}function _(n){var r=A(n);return function(t,e){if(void 0===e){var u=_(n);return function(n){return u(n,t)}}return t.filter((function(n){return!r(n,e)}))}}n.dropLeft=function(r){return function(t){return r<=0||(0,n.isEmpty)(t)?t:r>=t.length?n.empty:t.slice(r,t.length)}},n.dropRight=function(r){return function(t){return r<=0||(0,n.isEmpty)(t)?t:r>=t.length?n.empty:t.slice(0,t.length-r)}},n.findIndex=function(n){return function(r){for(var t=0;t<r.length;t++)if(n(r[t]))return M.some(t);return M.none}},n.findFirstMap=function(n){return function(r){for(var t=0;t<r.length;t++){var e=n(r[t]);if(M.isSome(e))return e}return M.none}},n.findLastMap=function(n){return function(r){for(var t=r.length-1;t>=0;t--){var e=n(r[t]);if(M.isSome(e))return e}return M.none}},n.findLastIndex=function(n){return function(r){for(var t=r.length-1;t>=0;t--)if(n(r[t]))return M.some(t);return M.none}},n.insertAt=function(n,r){return function(t){return n<0||n>t.length?M.none:M.some(O.unsafeInsertAt(n,r,t))}},n.updateAt=function(r,t){return(0,n.modifyAt)(r,(function(){return t}))},n.deleteAt=function(r){return function(t){return(0,n.isOutOfBound)(r,t)?M.none:M.some((0,n.unsafeDeleteAt)(r,t))}},n.modifyAt=function(r,t){return function(e){return(0,n.isOutOfBound)(r,e)?M.none:M.some((0,n.unsafeUpdateAt)(r,t(e[r]),e))}},n.reverse=function(n){return n.length<=1?n:n.slice().reverse()},n.rights=function(n){for(var r=[],t=0;t<n.length;t++){var e=n[t];"Right"===e._tag&&r.push(e.right)}return r},n.lefts=function(n){for(var r=[],t=0;t<n.length;t++){var e=n[t];"Left"===e._tag&&r.push(e.left)}return r},n.sort=function(n){return function(r){return r.length<=1?r:r.slice().sort(n.compare)}},n.zipWith=function(n,r,t){for(var e=[],u=Math.min(n.length,r.length),i=0;i<u;i++)e[i]=t(n[i],r[i]);return e},n.unzip=function(n){for(var r=[],t=[],e=0;e<n.length;e++)r[e]=n[e][0],t[e]=n[e][1];return[r,t]},n.prependAll=function(r){var t=O.prependAll(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):r}},n.intersperse=function(r){var t=O.intersperse(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):r}},n.rotate=function(r){var t=O.rotate(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):r}},n.uniq=function(r){var t=O.uniq(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):r}},n.sortBy=function(r){var t=O.sortBy(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):r}},n.chop=function(r){var t=O.chop(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):n.empty}},n.splitAt=function(r){return function(t){return r>=1&&(0,n.isNonEmpty)(t)?O.splitAt(r)(t):(0,n.isEmpty)(t)?[t,n.empty]:[n.empty,t]}},n.chunksOf=function(r){var t=O.chunksOf(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):n.empty}},n.fromOptionK=function(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,n.fromOption)(r.apply(void 0,t))}},n.concatW=function(r){return function(t){return(0,n.isEmpty)(t)?r:(0,n.isEmpty)(r)?t:t.concat(r)}},n.concat=n.concatW;var k=function(r,t){return(0,R.pipe)(r,(0,n.map)(t))},F=function(r,t){return(0,R.pipe)(r,(0,n.mapWithIndex)(t))},T=function(r,t){return(0,R.pipe)(r,(0,n.ap)(t))},E=function(r,t){return(0,R.pipe)(r,(0,n.filter)(t))},C=function(r,t){return(0,R.pipe)(r,(0,n.filterMap)(t))},z=function(r,t){return(0,R.pipe)(r,(0,n.partition)(t))},N=function(r,t){return(0,R.pipe)(r,(0,n.partitionMap)(t))},V=function(r,t){return(0,R.pipe)(r,(0,n.partitionWithIndex)(t))},L=function(r,t){return(0,R.pipe)(r,(0,n.partitionMapWithIndex)(t))},D=function(r,t){return(0,R.pipe)(r,(0,n.alt)(t))},H=function(r,t,e){return(0,R.pipe)(r,(0,n.reduce)(t,e))},$=function(r){var t=(0,n.foldMap)(r);return function(n,r){return(0,R.pipe)(n,t(r))}},B=function(r,t,e){return(0,R.pipe)(r,(0,n.reduceRight)(t,e))},K=function(r,t,e){return(0,R.pipe)(r,(0,n.reduceWithIndex)(t,e))},J=function(r){var t=(0,n.foldMapWithIndex)(r);return function(n,r){return(0,R.pipe)(n,t(r))}},G=function(r,t,e){return(0,R.pipe)(r,(0,n.reduceRightWithIndex)(t,e))},X=function(r,t){return(0,R.pipe)(r,(0,n.filterMapWithIndex)(t))},Y=function(r,t){return(0,R.pipe)(r,(0,n.filterWithIndex)(t))},Z=function(r,t){return(0,R.pipe)(r,(0,n.extend)(t))},rn=function(r){var t=(0,n.traverse)(r);return function(n,r){return(0,R.pipe)(n,t(r))}},en=function(r){var t=(0,n.traverseWithIndex)(r);return function(n,r){return(0,R.pipe)(n,t(r))}};n._chainRecDepthFirst=function(r,t){return(0,R.pipe)(r,(0,n.chainRecDepthFirst)(t))},n._chainRecBreadthFirst=function(r,t){return(0,R.pipe)(r,(0,n.chainRecBreadthFirst)(t))},n.of=O.of,n.zero=function(){return n.empty},n.altW=function(n){return function(r){return r.concat(n())}},n.alt=n.altW,n.ap=function(r){return(0,n.flatMap)((function(t){return(0,R.pipe)(r,(0,n.map)(t))}))},n.flatMap=(0,R.dual)(2,(function(r,t){return(0,R.pipe)(r,(0,n.chainWithIndex)((function(n,r){return t(r,n)})))})),n.flatten=(0,n.flatMap)(R.identity),n.map=function(n){return function(r){return r.map((function(r){return n(r)}))}},n.mapWithIndex=function(n){return function(r){return r.map((function(r,t){return n(t,r)}))}},n.separate=function(n){for(var r=[],t=[],e=0,u=n;e<u.length;e++){var i=u[e];"Left"===i._tag?r.push(i.left):t.push(i.right)}return(0,U.separated)(r,t)},n.filter=function(n){return function(r){return r.filter(n)}},n.filterMapWithIndex=function(n){return function(r){for(var t=[],e=0;e<r.length;e++){var u=n(e,r[e]);M.isSome(u)&&t.push(u.value)}return t}},n.filterMap=function(r){return(0,n.filterMapWithIndex)((function(n,t){return r(t)}))},n.compact=(0,n.filterMap)(R.identity),n.partition=function(r){return(0,n.partitionWithIndex)((function(n,t){return r(t)}))},n.partitionWithIndex=function(n){return function(r){for(var t=[],e=[],u=0;u<r.length;u++){var i=r[u];n(u,i)?e.push(i):t.push(i)}return(0,U.separated)(t,e)}},n.partitionMap=function(r){return(0,n.partitionMapWithIndex)((function(n,t){return r(t)}))},n.partitionMapWithIndex=function(n){return function(r){for(var t=[],e=[],u=0;u<r.length;u++){var i=n(u,r[u]);"Left"===i._tag?t.push(i.left):e.push(i.right)}return(0,U.separated)(t,e)}},n.filterWithIndex=function(n){return function(r){return r.filter((function(r,t){return n(t,r)}))}},n.extend=function(n){return function(r){return r.map((function(t,e){return n(r.slice(e))}))}},n.duplicate=(0,n.extend)(R.identity),n.foldMapWithIndex=function(n){return function(r){return function(t){return t.reduce((function(t,e,u){return n.concat(t,r(u,e))}),n.empty)}}},n.reduce=function(r,t){return(0,n.reduceWithIndex)(r,(function(n,r,e){return t(r,e)}))},n.foldMap=function(r){var t=(0,n.foldMapWithIndex)(r);return function(n){return t((function(r,t){return n(t)}))}},n.reduceWithIndex=function(n,r){return function(t){for(var e=t.length,u=n,i=0;i<e;i++)u=r(i,u,t[i]);return u}},n.reduceRight=function(r,t){return(0,n.reduceRightWithIndex)(r,(function(n,r,e){return t(r,e)}))},n.reduceRightWithIndex=function(n,r){return function(t){return t.reduceRight((function(n,t,e){return r(e,t,n)}),n)}},n.traverse=function(r){var t=(0,n.traverseWithIndex)(r);return function(n){return t((function(r,t){return n(t)}))}},n.sequence=function(r){return function(t){return H(t,r.of((0,n.zero)()),(function(t,e){return r.ap(r.map(t,(function(r){return function(t){return(0,R.pipe)(r,(0,n.append)(t))}})),e)}))}},n.traverseWithIndex=function(r){return function(t){return(0,n.reduceWithIndex)(r.of((0,n.zero)()),(function(e,u,i){return r.ap(r.map(u,(function(r){return function(t){return(0,R.pipe)(r,(0,n.append)(t))}})),t(e,i))}))}},n.wither=function(n){var r=un(n);return function(n){return function(t){return r(t,n)}}},n.wilt=function(n){var r=on(n);return function(n){return function(t){return r(t,n)}}},n.unfold=function(n,r){for(var t=[],e=n;;){var u=r(e);if(!M.isSome(u))break;var i=u.value,o=i[1];t.push(i[0]),e=o}return t},n.URI="ReadonlyArray",n.getShow=function(n){return{show:function(r){return"[".concat(r.map(n.show).join(", "),"]")}}},n.getSemigroup=function(){return{concat:function(r,t){return(0,n.isEmpty)(r)?t:(0,n.isEmpty)(t)?r:r.concat(t)}}},n.getMonoid=function(){return{concat:(0,n.getSemigroup)().concat,empty:n.empty}},n.getEq=function(n){return(0,g.fromEquals)((function(r,t){return r.length===t.length&&r.every((function(r,e){return n.equals(r,t[e])}))}))},n.getOrd=function(n){return(0,y.fromCompare)((function(r,t){for(var e=r.length,u=t.length,i=Math.min(e,u),o=0;o<i;o++){var c=n.compare(r[o],t[o]);if(0!==c)return c}return j.Ord.compare(e,u)}))},n.getUnionSemigroup=function(n){var r=q(n);return{concat:function(n,t){return r(t)(n)}}},n.getUnionMonoid=function(r){return{concat:(0,n.getUnionSemigroup)(r).concat,empty:n.empty}},n.getIntersectionSemigroup=function(n){var r=P(n);return{concat:function(n,t){return r(t)(n)}}},n.getDifferenceMagma=function(n){var r=_(n);return{concat:function(n,t){return r(t)(n)}}},n.Functor={URI:n.URI,map:k},n.flap=(0,x.flap)(n.Functor),n.Pointed={URI:n.URI,of:n.of},n.FunctorWithIndex={URI:n.URI,map:k,mapWithIndex:F},n.Apply={URI:n.URI,map:k,ap:T},n.apFirst=(0,m.apFirst)(n.Apply),n.apSecond=(0,m.apSecond)(n.Apply),n.Applicative={URI:n.URI,map:k,ap:T,of:n.of},n.Chain={URI:n.URI,map:k,ap:T,chain:n.flatMap},n.Monad={URI:n.URI,map:k,ap:T,of:n.of,chain:n.flatMap},n.chainFirst=(0,I.chainFirst)(n.Chain),n.Unfoldable={URI:n.URI,unfold:n.unfold},n.Alt={URI:n.URI,map:k,alt:D},n.Zero={URI:n.URI,zero:n.zero},n.guard=(0,W.guard)(n.Zero,n.Pointed),n.Alternative={URI:n.URI,map:k,ap:T,of:n.of,alt:D,zero:n.zero},n.Extend={URI:n.URI,map:k,extend:Z},n.Compactable={URI:n.URI,compact:n.compact,separate:n.separate},n.Filterable={URI:n.URI,map:k,compact:n.compact,separate:n.separate,filter:E,filterMap:C,partition:z,partitionMap:N},n.FilterableWithIndex={URI:n.URI,map:k,mapWithIndex:F,compact:n.compact,separate:n.separate,filter:E,filterMap:C,partition:z,partitionMap:N,partitionMapWithIndex:L,partitionWithIndex:V,filterMapWithIndex:X,filterWithIndex:Y},n.Foldable={URI:n.URI,reduce:H,foldMap:$,reduceRight:B},n.FoldableWithIndex={URI:n.URI,reduce:H,foldMap:$,reduceRight:B,reduceWithIndex:K,foldMapWithIndex:J,reduceRightWithIndex:G},n.Traversable={URI:n.URI,map:k,reduce:H,foldMap:$,reduceRight:B,traverse:rn,sequence:n.sequence},n.TraversableWithIndex={URI:n.URI,map:k,mapWithIndex:F,reduce:H,foldMap:$,reduceRight:B,reduceWithIndex:K,foldMapWithIndex:J,reduceRightWithIndex:G,traverse:rn,sequence:n.sequence,traverseWithIndex:en},n.chainRecDepthFirst=function(n){return function(r){for(var t=h([],n(r),!0),e=[];t.length>0;){var u=t.shift();M.isLeft(u)?t.unshift.apply(t,n(u.left)):e.push(u.right)}return e}},n.ChainRecDepthFirst={URI:n.URI,map:k,ap:T,chain:n.flatMap,chainRec:n._chainRecDepthFirst},n.chainRecBreadthFirst=function(n){return function(r){var t=n(r),e=[],u=[];function i(r){M.isLeft(r)?n(r.left).forEach((function(n){return e.push(n)})):u.push(r.right)}for(var o=0,c=t;o<c.length;o++)i(c[o]);for(;e.length>0;)i(e.shift());return u}},n.ChainRecBreadthFirst={URI:n.URI,map:k,ap:T,chain:n.flatMap,chainRec:n._chainRecBreadthFirst};var un=(0,w.witherDefault)(n.Traversable,n.Compactable),on=(0,w.wiltDefault)(n.Traversable,n.Compactable);n.Witherable={URI:n.URI,map:k,compact:n.compact,separate:n.separate,filter:E,filterMap:C,partition:z,partitionMap:N,reduce:H,foldMap:$,reduceRight:B,traverse:rn,sequence:n.sequence,wither:un,wilt:on},n.filterE=(0,w.filterE)(n.Witherable),n.FromEither={URI:n.URI,fromEither:n.fromEither},n.fromEitherK=(0,b.fromEitherK)(n.FromEither),n.unsafeInsertAt=O.unsafeInsertAt,n.unsafeUpdateAt=function(r,t,e){return(0,n.isNonEmpty)(e)?O.unsafeUpdateAt(r,t,e):e},n.unsafeDeleteAt=function(n,r){var t=r.slice();return t.splice(n,1),t},n.toArray=function(n){return n.slice()},n.fromArray=function(r){return(0,n.isEmpty)(r)?n.empty:r.slice()},n.empty=O.empty,n.some=function(n){return function(r){return r.some(n)}},n.exists=n.some,n.intercalate=function(r){var t=O.intercalate(r);return function(e){return(0,n.match)((function(){return r.empty}),t(e))}},n.Do=(0,n.of)(M.emptyRecord),n.bindTo=(0,x.bindTo)(n.Functor),n.let=(0,x.let)(n.Functor),n.bind=(0,I.bind)(n.Chain),n.apS=(0,m.apS)(n.Apply),n.chain=n.flatMap,n.range=O.range,n.cons=O.cons,n.snoc=O.snoc,n.prependToAll=n.prependAll,n.readonlyArray={URI:n.URI,compact:n.compact,separate:n.separate,map:k,ap:T,of:n.of,chain:n.flatMap,filter:E,filterMap:C,partition:z,partitionMap:N,mapWithIndex:F,partitionMapWithIndex:L,partitionWithIndex:V,filterMapWithIndex:X,filterWithIndex:Y,alt:D,zero:n.zero,unfold:n.unfold,reduce:H,foldMap:$,reduceRight:B,traverse:rn,sequence:n.sequence,reduceWithIndex:K,foldMapWithIndex:J,reduceRightWithIndex:G,traverseWithIndex:en,extend:Z,wither:un,wilt:on}}(nn)),nn}function un(){return Z||(Z=1,function(n){var r=B&&B.__createBinding||(Object.create?function(n,r,t,e){void 0===e&&(e=t);var u=Object.getOwnPropertyDescriptor(r,t);u&&!("get"in u?!r.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,e,u)}:function(n,r,t,e){void 0===e&&(e=t),n[e]=r[t]}),e=B&&B.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),f=B&&B.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var u in n)"default"!==u&&Object.prototype.hasOwnProperty.call(n,u)&&r(t,n,u);return e(t,n),t};Object.defineProperty(n,"__esModule",{value:!0}),n.rotate=n.intersperse=n.prependAll=n.unzip=n.zipWith=n.sort=n.lefts=n.rights=n.reverse=n.modifyAt=n.deleteAt=n.updateAt=n.insertAt=n.copy=n.findLastIndex=n.findLastMap=n.findFirstMap=n.findIndex=n.dropRight=n.dropLeft=n.takeRight=n.takeLeft=n.init=n.tail=n.last=n.head=n.lookup=n.isOutOfBound=n.size=n.scanRight=n.scanLeft=n.chainWithIndex=n.foldRight=n.matchRight=n.matchRightW=n.foldLeft=n.matchLeft=n.matchLeftW=n.match=n.matchW=n.fromEither=n.fromOption=n.replicate=n.makeBy=n.appendW=n.append=n.prependW=n.prepend=n.isNonEmpty=n.isEmpty=void 0,n.getUnionMonoid=n.getUnionSemigroup=n.getOrd=n.getEq=n.getMonoid=n.getSemigroup=n.getShow=n.URI=n.unfold=n.wilt=n.wither=n.traverseWithIndex=n.sequence=n.traverse=n.reduceRightWithIndex=n.reduceRight=n.reduceWithIndex=n.reduce=n.foldMapWithIndex=n.foldMap=n.duplicate=n.extend=n.filterWithIndex=n.alt=n.altW=n.partitionMapWithIndex=n.partitionMap=n.partitionWithIndex=n.partition=n.filter=n.separate=n.compact=n.filterMap=n.filterMapWithIndex=n.mapWithIndex=n.flatten=n.flatMap=n.ap=n.map=n.zero=n.of=n.concat=n.concatW=n.fromOptionK=n.chunksOf=n.splitAt=n.chop=n.sortBy=n.uniq=n.elem=void 0,n.cons=n.empty=n.range=n.chain=n.apS=n.bind=n.let=n.bindTo=n.Do=n.intercalate=n.exists=n.some=n.every=n.unsafeDeleteAt=n.unsafeUpdateAt=n.unsafeInsertAt=n.fromEitherK=n.FromEither=n.filterE=n.ChainRecBreadthFirst=n.chainRecBreadthFirst=n.ChainRecDepthFirst=n.chainRecDepthFirst=n.Witherable=n.TraversableWithIndex=n.Traversable=n.FoldableWithIndex=n.Foldable=n.FilterableWithIndex=n.Filterable=n.Compactable=n.Extend=n.Alternative=n.guard=n.Zero=n.Alt=n.Unfoldable=n.Monad=n.chainFirst=n.Chain=n.Applicative=n.apSecond=n.apFirst=n.Apply=n.FunctorWithIndex=n.Pointed=n.flap=n.Functor=n.getDifferenceMagma=n.getIntersectionSemigroup=void 0,n.array=n.prependToAll=n.snoc=void 0,n.fromPredicate=function(n){return function(r){return n(r)?[r]:[]}},n.takeLeftWhile=function(n){return function(r){for(var t=[],e=0,u=r;e<u.length;e++){var i=u[e];if(!n(i))break;t.push(i)}return t}},n.spanLeft=function(r){return function(t){var e=(0,n.splitAt)(y(t,r))(t);return{init:e[0],rest:e[1]}}},n.dropLeftWhile=function(n){return function(r){return r.slice(y(r,n))}},n.findFirst=function(n){return R.findFirst(n)},n.findLast=function(n){return R.findLast(n)},n.zip=function r(t,e){return void 0===e?function(n){return r(n,t)}:(0,n.zipWith)(t,e,(function(n,r){return[n,r]}))},n.comprehension=function(r,t,e){void 0===e&&(e=function(){return!0});var u=function(r,i){return(0,n.isNonEmpty)(i)?(0,n.flatMap)(b.head(i),(function(t){return u((0,m.pipe)(r,(0,n.append)(t)),b.tail(i))})):e.apply(void 0,r)?[t.apply(void 0,r)]:[]};return u([],r)},n.union=O,n.intersection=U,n.difference=w;var a=o(),p=c(),h=l(),m=u(),I=i(),g=f(t()),b=f(G()),R=f(en()),x=v(),M=s(),j=d();n.isEmpty=function(n){return 0===n.length},n.isNonEmpty=b.isNonEmpty,n.prepend=b.prepend,n.prependW=b.prependW,n.append=b.append,n.appendW=b.appendW,n.makeBy=function(n,r){return n<=0?[]:b.makeBy(r)(n)},n.replicate=function(r,t){return(0,n.makeBy)(r,(function(){return t}))},n.fromOption=function(n){return g.isNone(n)?[]:[n.value]},n.fromEither=function(n){return g.isLeft(n)?[]:[n.right]},n.matchW=function(r,t){return function(e){return(0,n.isNonEmpty)(e)?t(e):r()}},n.match=n.matchW,n.matchLeftW=function(r,t){return function(e){return(0,n.isNonEmpty)(e)?t(b.head(e),b.tail(e)):r()}},n.matchLeft=n.matchLeftW,n.foldLeft=n.matchLeft,n.matchRightW=function(r,t){return function(e){return(0,n.isNonEmpty)(e)?t(b.init(e),b.last(e)):r()}},n.matchRight=n.matchRightW,n.foldRight=n.matchRight,n.chainWithIndex=function(n){return function(r){for(var t=[],e=0;e<r.length;e++)for(var u=n(e,r[e]),i=0;i<u.length;i++)t.push(u[i]);return t}},n.scanLeft=function(n,r){return function(t){var e=t.length,u=new Array(e+1);u[0]=n;for(var i=0;i<e;i++)u[i+1]=r(u[i],t[i]);return u}},n.scanRight=function(n,r){return function(t){var e=t.length,u=new Array(e+1);u[e]=n;for(var i=e-1;i>=0;i--)u[i]=r(t[i],u[i+1]);return u}},n.size=function(n){return n.length},n.isOutOfBound=b.isOutOfBound,n.lookup=R.lookup,n.head=R.head,n.last=R.last,n.tail=function(r){return(0,n.isNonEmpty)(r)?g.some(b.tail(r)):g.none},n.init=function(r){return(0,n.isNonEmpty)(r)?g.some(b.init(r)):g.none},n.takeLeft=function(r){return function(t){return(0,n.isOutOfBound)(r,t)?(0,n.copy)(t):t.slice(0,r)}},n.takeRight=function(r){return function(t){return(0,n.isOutOfBound)(r,t)?(0,n.copy)(t):0===r?[]:t.slice(-r)}};var y=function(n,r){for(var t=n.length,e=0;e<t&&r(n[e]);e++);return e};function O(r){var t=b.union(r);return function(e,u){if(void 0===u){var i=O(r);return function(n){return i(n,e)}}return(0,n.isNonEmpty)(e)&&(0,n.isNonEmpty)(u)?t(u)(e):(0,n.isNonEmpty)(e)?(0,n.copy)(e):(0,n.copy)(u)}}function U(r){var t=(0,n.elem)(r);return function(n,e){if(void 0===e){var u=U(r);return function(r){return u(r,n)}}return n.filter((function(n){return t(n,e)}))}}function w(r){var t=(0,n.elem)(r);return function(n,e){if(void 0===e){var u=w(r);return function(r){return u(r,n)}}return n.filter((function(n){return!t(n,e)}))}}n.dropLeft=function(r){return function(t){return r<=0||(0,n.isEmpty)(t)?(0,n.copy)(t):r>=t.length?[]:t.slice(r,t.length)}},n.dropRight=function(r){return function(t){return r<=0||(0,n.isEmpty)(t)?(0,n.copy)(t):r>=t.length?[]:t.slice(0,t.length-r)}},n.findIndex=R.findIndex,n.findFirstMap=R.findFirstMap,n.findLastMap=R.findLastMap,n.findLastIndex=R.findLastIndex,n.copy=function(n){return n.slice()},n.insertAt=function(r,t){return function(e){return r<0||r>e.length?g.none:g.some((0,n.unsafeInsertAt)(r,t,e))}},n.updateAt=function(r,t){return(0,n.modifyAt)(r,(function(){return t}))},n.deleteAt=function(r){return function(t){return(0,n.isOutOfBound)(r,t)?g.none:g.some((0,n.unsafeDeleteAt)(r,t))}},n.modifyAt=function(r,t){return function(e){return(0,n.isOutOfBound)(r,e)?g.none:g.some((0,n.unsafeUpdateAt)(r,t(e[r]),e))}},n.reverse=function(r){return(0,n.isEmpty)(r)?[]:r.slice().reverse()},n.rights=function(n){for(var r=[],t=0;t<n.length;t++){var e=n[t];"Right"===e._tag&&r.push(e.right)}return r},n.lefts=function(n){for(var r=[],t=0;t<n.length;t++){var e=n[t];"Left"===e._tag&&r.push(e.left)}return r},n.sort=function(r){return function(t){return t.length<=1?(0,n.copy)(t):t.slice().sort(r.compare)}},n.zipWith=function(n,r,t){for(var e=[],u=Math.min(n.length,r.length),i=0;i<u;i++)e[i]=t(n[i],r[i]);return e},n.unzip=function(n){for(var r=[],t=[],e=0;e<n.length;e++)r[e]=n[e][0],t[e]=n[e][1];return[r,t]},n.prependAll=function(r){var t=b.prependAll(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):[]}},n.intersperse=function(r){var t=b.intersperse(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):(0,n.copy)(r)}},n.rotate=function(r){var t=b.rotate(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):(0,n.copy)(r)}},n.elem=R.elem,n.uniq=function(r){var t=b.uniq(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):(0,n.copy)(r)}},n.sortBy=function(r){var t=b.sortBy(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):(0,n.copy)(r)}},n.chop=function(r){var t=b.chop(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):[]}},n.splitAt=function(r){return function(t){return r>=1&&(0,n.isNonEmpty)(t)?b.splitAt(r)(t):(0,n.isEmpty)(t)?[(0,n.copy)(t),[]]:[[],(0,n.copy)(t)]}},n.chunksOf=function(r){var t=b.chunksOf(r);return function(r){return(0,n.isNonEmpty)(r)?t(r):[]}},n.fromOptionK=function(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,n.fromOption)(r.apply(void 0,t))}},n.concatW=function(r){return function(t){return(0,n.isEmpty)(t)?(0,n.copy)(r):(0,n.isEmpty)(r)?(0,n.copy)(t):t.concat(r)}},n.concat=n.concatW;var W=function(r,t){return(0,m.pipe)(r,(0,n.map)(t))},S=function(r,t){return(0,m.pipe)(r,(0,n.mapWithIndex)(t))},A=function(r,t){return(0,m.pipe)(r,(0,n.ap)(t))},q=function(r,t){return(0,m.pipe)(r,(0,n.filter)(t))},P=function(r,t){return(0,m.pipe)(r,(0,n.filterMap)(t))},_=function(r,t){return(0,m.pipe)(r,(0,n.partition)(t))},k=function(r,t){return(0,m.pipe)(r,(0,n.partitionMap)(t))},F=function(r,t){return(0,m.pipe)(r,(0,n.partitionWithIndex)(t))},T=function(r,t){return(0,m.pipe)(r,(0,n.partitionMapWithIndex)(t))},E=function(r,t){return(0,m.pipe)(r,(0,n.alt)(t))},C=function(r,t,e){return(0,m.pipe)(r,(0,n.reduce)(t,e))},z=function(r){var t=(0,n.foldMap)(r);return function(n,r){return(0,m.pipe)(n,t(r))}},N=function(r,t,e){return(0,m.pipe)(r,(0,n.reduceRight)(t,e))},V=function(r,t,e){return(0,m.pipe)(r,(0,n.reduceWithIndex)(t,e))},L=function(r){var t=(0,n.foldMapWithIndex)(r);return function(n,r){return(0,m.pipe)(n,t(r))}},D=function(r,t,e){return(0,m.pipe)(r,(0,n.reduceRightWithIndex)(t,e))},H=function(r,t){return(0,m.pipe)(r,(0,n.filterMapWithIndex)(t))},$=function(r,t){return(0,m.pipe)(r,(0,n.filterWithIndex)(t))},K=function(r,t){return(0,m.pipe)(r,(0,n.extend)(t))},J=function(r){var t=(0,n.traverse)(r);return function(n,r){return(0,m.pipe)(n,t(r))}},Q=function(r){var t=(0,n.traverseWithIndex)(r);return function(n,r){return(0,m.pipe)(n,t(r))}},X=R._chainRecDepthFirst,Y=R._chainRecBreadthFirst;n.of=b.of,n.zero=function(){return[]},n.map=function(n){return function(r){return r.map((function(r){return n(r)}))}},n.ap=function(r){return(0,n.flatMap)((function(t){return(0,m.pipe)(r,(0,n.map)(t))}))},n.flatMap=(0,m.dual)(2,(function(r,t){return(0,m.pipe)(r,(0,n.chainWithIndex)((function(n,r){return t(r,n)})))})),n.flatten=(0,n.flatMap)(m.identity),n.mapWithIndex=function(n){return function(r){return r.map((function(r,t){return n(t,r)}))}},n.filterMapWithIndex=function(n){return function(r){for(var t=[],e=0;e<r.length;e++){var u=n(e,r[e]);g.isSome(u)&&t.push(u.value)}return t}},n.filterMap=function(r){return(0,n.filterMapWithIndex)((function(n,t){return r(t)}))},n.compact=(0,n.filterMap)(m.identity),n.separate=function(n){for(var r=[],t=[],e=0,u=n;e<u.length;e++){var i=u[e];"Left"===i._tag?r.push(i.left):t.push(i.right)}return(0,x.separated)(r,t)},n.filter=function(n){return function(r){return r.filter(n)}},n.partition=function(r){return(0,n.partitionWithIndex)((function(n,t){return r(t)}))},n.partitionWithIndex=function(n){return function(r){for(var t=[],e=[],u=0;u<r.length;u++){var i=r[u];n(u,i)?e.push(i):t.push(i)}return(0,x.separated)(t,e)}},n.partitionMap=function(r){return(0,n.partitionMapWithIndex)((function(n,t){return r(t)}))},n.partitionMapWithIndex=function(n){return function(r){for(var t=[],e=[],u=0;u<r.length;u++){var i=n(u,r[u]);"Left"===i._tag?t.push(i.left):e.push(i.right)}return(0,x.separated)(t,e)}},n.altW=function(n){return function(r){return r.concat(n())}},n.alt=n.altW,n.filterWithIndex=function(n){return function(r){return r.filter((function(r,t){return n(t,r)}))}},n.extend=function(n){return function(r){return r.map((function(t,e){return n(r.slice(e))}))}},n.duplicate=(0,n.extend)(m.identity),n.foldMap=R.foldMap,n.foldMapWithIndex=R.foldMapWithIndex,n.reduce=R.reduce,n.reduceWithIndex=R.reduceWithIndex,n.reduceRight=R.reduceRight,n.reduceRightWithIndex=R.reduceRightWithIndex,n.traverse=function(r){var t=(0,n.traverseWithIndex)(r);return function(n){return t((function(r,t){return n(t)}))}},n.sequence=function(r){return function(t){return C(t,r.of((0,n.zero)()),(function(t,e){return r.ap(r.map(t,(function(r){return function(t){return(0,m.pipe)(r,(0,n.append)(t))}})),e)}))}},n.traverseWithIndex=function(r){return function(t){return(0,n.reduceWithIndex)(r.of((0,n.zero)()),(function(e,u,i){return r.ap(r.map(u,(function(r){return function(t){return(0,m.pipe)(r,(0,n.append)(t))}})),t(e,i))}))}},n.wither=function(n){var r=Z(n);return function(n){return function(t){return r(t,n)}}},n.wilt=function(n){var r=nn(n);return function(n){return function(t){return r(t,n)}}},n.unfold=function(n,r){for(var t=[],e=n;;){var u=r(e);if(!g.isSome(u))break;var i=u.value,o=i[1];t.push(i[0]),e=o}return t},n.URI="Array",n.getShow=R.getShow,n.getSemigroup=function(){return{concat:function(n,r){return n.concat(r)}}},n.getMonoid=function(){return{concat:(0,n.getSemigroup)().concat,empty:[]}},n.getEq=R.getEq,n.getOrd=R.getOrd,n.getUnionSemigroup=function(n){var r=O(n);return{concat:function(n,t){return r(t)(n)}}},n.getUnionMonoid=function(r){return{concat:(0,n.getUnionSemigroup)(r).concat,empty:[]}},n.getIntersectionSemigroup=function(n){var r=U(n);return{concat:function(n,t){return r(t)(n)}}},n.getDifferenceMagma=function(n){var r=w(n);return{concat:function(n,t){return r(t)(n)}}},n.Functor={URI:n.URI,map:W},n.flap=(0,I.flap)(n.Functor),n.Pointed={URI:n.URI,of:n.of},n.FunctorWithIndex={URI:n.URI,map:W,mapWithIndex:S},n.Apply={URI:n.URI,map:W,ap:A},n.apFirst=(0,a.apFirst)(n.Apply),n.apSecond=(0,a.apSecond)(n.Apply),n.Applicative={URI:n.URI,map:W,ap:A,of:n.of},n.Chain={URI:n.URI,map:W,ap:A,chain:n.flatMap},n.chainFirst=(0,p.chainFirst)(n.Chain),n.Monad={URI:n.URI,map:W,ap:A,of:n.of,chain:n.flatMap},n.Unfoldable={URI:n.URI,unfold:n.unfold},n.Alt={URI:n.URI,map:W,alt:E},n.Zero={URI:n.URI,zero:n.zero},n.guard=(0,j.guard)(n.Zero,n.Pointed),n.Alternative={URI:n.URI,map:W,ap:A,of:n.of,alt:E,zero:n.zero},n.Extend={URI:n.URI,map:W,extend:K},n.Compactable={URI:n.URI,compact:n.compact,separate:n.separate},n.Filterable={URI:n.URI,map:W,compact:n.compact,separate:n.separate,filter:q,filterMap:P,partition:_,partitionMap:k},n.FilterableWithIndex={URI:n.URI,map:W,mapWithIndex:S,compact:n.compact,separate:n.separate,filter:q,filterMap:P,partition:_,partitionMap:k,partitionMapWithIndex:T,partitionWithIndex:F,filterMapWithIndex:H,filterWithIndex:$},n.Foldable={URI:n.URI,reduce:C,foldMap:z,reduceRight:N},n.FoldableWithIndex={URI:n.URI,reduce:C,foldMap:z,reduceRight:N,reduceWithIndex:V,foldMapWithIndex:L,reduceRightWithIndex:D},n.Traversable={URI:n.URI,map:W,reduce:C,foldMap:z,reduceRight:N,traverse:J,sequence:n.sequence},n.TraversableWithIndex={URI:n.URI,map:W,mapWithIndex:S,reduce:C,foldMap:z,reduceRight:N,reduceWithIndex:V,foldMapWithIndex:L,reduceRightWithIndex:D,traverse:J,sequence:n.sequence,traverseWithIndex:Q};var Z=(0,M.witherDefault)(n.Traversable,n.Compactable),nn=(0,M.wiltDefault)(n.Traversable,n.Compactable);n.Witherable={URI:n.URI,map:W,compact:n.compact,separate:n.separate,filter:q,filterMap:P,partition:_,partitionMap:k,reduce:C,foldMap:z,reduceRight:N,traverse:J,sequence:n.sequence,wither:Z,wilt:nn},n.chainRecDepthFirst=R.chainRecDepthFirst,n.ChainRecDepthFirst={URI:n.URI,map:W,ap:A,chain:n.flatMap,chainRec:X},n.chainRecBreadthFirst=R.chainRecBreadthFirst,n.ChainRecBreadthFirst={URI:n.URI,map:W,ap:A,chain:n.flatMap,chainRec:Y},n.filterE=(0,M.filterE)(n.Witherable),n.FromEither={URI:n.URI,fromEither:n.fromEither},n.fromEitherK=(0,h.fromEitherK)(n.FromEither),n.unsafeInsertAt=b.unsafeInsertAt,n.unsafeUpdateAt=function(r,t,e){return(0,n.isNonEmpty)(e)?b.unsafeUpdateAt(r,t,e):[]},n.unsafeDeleteAt=function(n,r){var t=r.slice();return t.splice(n,1),t},n.every=R.every,n.some=function(n){return function(r){return r.some(n)}},n.exists=n.some,n.intercalate=R.intercalate,n.Do=(0,n.of)(g.emptyRecord),n.bindTo=(0,I.bindTo)(n.Functor),n.let=(0,I.let)(n.Functor),n.bind=(0,p.bind)(n.Chain),n.apS=(0,a.apS)(n.Apply),n.chain=n.flatMap,n.range=b.range,n.empty=[],n.cons=b.cons,n.snoc=b.snoc,n.prependToAll=n.prependAll,n.array={URI:n.URI,compact:n.compact,separate:n.separate,map:W,ap:A,of:n.of,chain:n.flatMap,filter:q,filterMap:P,partition:_,partitionMap:k,mapWithIndex:S,partitionMapWithIndex:T,partitionWithIndex:F,filterMapWithIndex:H,filterWithIndex:$,alt:E,zero:n.zero,unfold:n.unfold,reduce:C,foldMap:z,reduceRight:N,traverse:J,sequence:n.sequence,reduceWithIndex:V,foldMapWithIndex:L,reduceRightWithIndex:D,traverseWithIndex:Q,extend:K,wither:Z,wilt:nn}}(B)),B}var on=un();const cn={VPR:"Similar Products",VPS:"Visual Search",VCS:"Cross-Selling",TPS:"Text Product Search"};function fn(n,r){return t=>(n=>"VPR"===n._tag)(t)?n():r()}function an(n){return"VPR"===n?{_tag:"VPR"}:{_tag:"VCS"}}const dn=n=>(n=>0===n.length)(n)?m("entity is empty"):I(n),sn=n=>p(n,g("entity not exist"),h(dn)),ln=n=>n.split(";").map((n=>{const[r,t]=n.split(":");return{column:r,values:t?t.split(","):[]}})).filter((({column:n})=>!!n)),vn=(n,r)=>null!=r?{[n]:r}:{},pn=(n,r)=>r&&(Array.isArray(r)?r.length:Object.keys(r).length)?{[n]:r}:{},hn=(n,r)=>r&&Object.keys(r).length>0?{[n]:r}:{},mn=n=>{var r,t;return null!==(t=null!==(r=n.interval)&&void 0!==r?r:n.value)&&void 0!==t?t:n},In=n=>null==n?null:"string"==typeof n||"number"==typeof n?String(n):"object"==typeof n&&null!==n&&"value"in n?In(n.value):String(n),gn=(n,r)=>"object"==typeof n&&"object"==typeof r&&null!==n&&null!==r&&(n.start===r.start&&n.end===r.end),bn=(n,r)=>{const t=n===r,e=void 0!==r.interval&&gn(n,r.interval);return t||e||void 0!==r.value&&n===r.value},Rn=n=>(null==n?void 0:n.length)?n.reduce(((n,r)=>{const t=(n=>{var r;return"categorical"===n.type&&"values"in n?n.values.reduce(((n,r)=>{if(r.selected){const t=In(r.value);t&&n.push(t)}return n}),[]):"interval"===n.type&&"selectedValues"in n&&null!==(r=n.selectedValues)&&void 0!==r?r:[]})(r);return(null==t?void 0:t.length)>0&&n.push({column:r.column,values:t}),n}),[]):[],xn=n=>!("isConnected"in n)||n.isConnected,Mn=(()=>{let n;return(...r)=>{n&&clearTimeout(n),n=setTimeout((()=>{n=0,(n=>{for(let r of n.keys())n.set(r,n.get(r).filter(xn))})(...r)}),2e3)}})(),jn=n=>"function"==typeof n?n():n,yn=(t,e)=>{const u=((n,r=(n,r)=>n!==r)=>{const t=jn(n);let e=new Map(Object.entries(t??{}));const u={dispose:[],get:[],set:[],reset:[]},i=()=>{e=new Map(Object.entries(jn(n)??{})),u.reset.forEach((n=>n()))},o=n=>(u.get.forEach((r=>r(n))),e.get(n)),c=(n,t)=>{const i=e.get(n);r(t,i,n)&&(e.set(n,t),u.set.forEach((r=>r(n,t,i))))},f="undefined"==typeof Proxy?{}:new Proxy(t,{get:(n,r)=>o(r),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,r)=>e.has(r),set:(n,r,t)=>(c(r,t),!0)}),a=(n,r)=>(u[n].push(r),()=>{((n,r)=>{const t=n.indexOf(r);t>=0&&(n[t]=n[n.length-1],n.length--)})(u[n],r)});return{state:f,get:o,set:c,on:a,onChange:(r,t)=>{const e=a("set",((n,e)=>{n===r&&t(e)})),u=a("reset",(()=>t(jn(n)[r])));return()=>{e(),u()}},use:(...n)=>{const r=n.reduce(((n,r)=>(r.set&&n.push(a("set",r.set)),r.get&&n.push(a("get",r.get)),r.reset&&n.push(a("reset",r.reset)),r.dispose&&n.push(a("dispose",r.dispose)),n)),[]);return()=>r.forEach((n=>n()))},dispose:()=>{u.dispose.forEach((n=>n())),i()},reset:i,forceUpdate:n=>{const r=e.get(n);u.set.forEach((t=>t(n,r,r)))}}})(t,e);return u.use((()=>{if("function"!=typeof n)return{};const t=new Map;return{dispose:()=>t.clear(),get:r=>{const e=n();e&&((n,r,t)=>{const e=n.get(r);e?e.includes(t)||e.push(t):n.set(r,[t])})(t,r,e)},set:n=>{const e=t.get(n);e&&t.set(n,e.filter(r)),Mn(t)},reset:()=>{t.forEach((n=>n.forEach(r))),Mn(t)}}})()),u},On=n=>new Headers({Authorization:`Bearer ${n}`}),Un=n=>p(n,sn,R.mapLeft((()=>x))),wn=(n,r)=>b((n=>p(n,Un,R.map(On)))(n),R.right(JSON.stringify(r)));var Wn=M();const Sn=()=>{const n=navigator.userAgent;return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(n)?"tablet":/Mobile|Android|iP(hone|od)|IEMobile|BlackBerry|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(n)?"mobile":"desktop"},An=()=>{if("undefined"==typeof navigator)return!1;const n=navigator.userAgent;return!!/iPhone|iPad|iPod/.test(n)||/WebKit/.test(n)&&!/Chrome|Edg|OPR/.test(n)},qn=(n=768)=>"undefined"!=typeof window&&window.innerWidth>=n,Pn=(n=768)=>"undefined"!=typeof window&&window.innerWidth<n,_n=["jpg","jpeg","png","webp","avif","heic","heif"],kn=["jpg","jpeg","png","webp","avif"],Fn=n=>"jpg"===n?"image/jpeg":`image/${n}`,Tn=Object.fromEntries(_n.map((n=>[n,Fn(n)]))),En=()=>{const n=An()?[...kn,"heic"]:kn;return[...n.map((n=>Tn[n])),...n.map((n=>`.${n}`))].join(",")},Cn=()=>{const n=(An()?[...kn,"heic"]:kn).filter((n=>"jpeg"!==n)).map((n=>`.${n}`)),r=n.pop();return`${n.join(", ")}, or ${r}`},zn={kind:"client",inner:"File format not supported",code:"unsupported-file-type"},Nn={kind:"client",inner:"HEIC format is only supported in Safari and iOS browsers",code:"heic-not-supported"},Vn=n=>{var r;const t=n.type?n.type.split("/")[1]:null===(r=n.name.split(".").pop())||void 0===r?void 0:r.toLowerCase();if(("heic"===t||"heif"===t)&&!An())return R.left(Nn);const e=(u=r=>r===t?U.some(n):U.none,function(n){for(var r=0;r<n.length;r++){var t=u(n[r]);if(j(t))return t}return y})(_n);var u;return O.pipe(e,R.fromOption((()=>zn)))},Ln={kind:"app",inner:"File doesnt exist"},Dn=async n=>new Promise((r=>{const t=new FileReader;t.addEventListener("load",(()=>{r(t.result)})),t.readAsDataURL(n)})),Hn=n=>()=>new Promise(((r,t)=>{const e=new FileReader,u=new Image;e.onload=n=>{u.src=n.target.result},e.onerror=()=>{t(new Error("Failed to read file"))},u.onload=()=>{r(u)},u.onerror=()=>{t(new Error("Failed to load image"))},e.readAsDataURL(n)})),$n=n=>{var r,t;const[e,u]=n.split(","),i=null!==(t=null===(r=e.match(/data:(.*?);base64/))||void 0===r?void 0:r[1])&&void 0!==t?t:"",o=atob(u),c=new Uint8Array(o.length);for(let n=0;n<o.length;n++)c[n]=o.charCodeAt(n);return new File([c],"image",{type:i,lastModified:Date.now()})},Bn=n=>()=>Promise.resolve($n(n));var Kn,Jn,Qn,Gn,Xn,Yn={},Zn={},nr={},rr={},tr={},er=function(){if(Xn)return Yn;Xn=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.lanczos2=Yn.lanczos=void 0;const n=(Kn||(Kn=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.copy=void 0,Zn.copy=(n,r,t=0,e=0,u=n.width-t,i=n.height-e,o=0,c=0)=>{if(t|=0,e|=0,i|=0,o|=0,c|=0,(u|=0)<=0||i<=0)return;const f=new Uint32Array(n.data.buffer),a=new Uint32Array(r.data.buffer);for(let d=0;d<i;d++){const i=e+d;if(i<0||i>=n.height)continue;const s=c+d;if(!(s<0||s>=r.height))for(let e=0;e<u;e++){const u=t+e;if(u<0||u>=n.width)continue;const c=o+e;c<0||c>=r.width||(a[s*r.width+c]=f[i*n.width+u])}}}),Zn),r=(Jn||(Jn=1,t=nr,Object.defineProperty(t,"__esModule",{value:!0}),t.CreateImageFactory=(n=[0,0,0,0],r=4)=>{if(r=Math.floor(r),isNaN(r)||r<1)throw TypeError("channels should be a positive non-zero number");if(!("length"in n)||n.length<r)throw TypeError(`fill should be iterable with at least ${r} members`);const t=(n=new Uint8ClampedArray(n).slice(0,r)).every((n=>0===n));return(e,u,i)=>{if(void 0===e||void 0===u)throw TypeError("Not enough arguments");if(e=Math.floor(e),u=Math.floor(u),isNaN(e)||e<1||isNaN(u)||u<1)throw TypeError("Index or size is negative or greater than the allowed amount");const o=e*u*r;if(void 0===i&&(i=new Uint8ClampedArray(o)),i instanceof Uint8ClampedArray){if(i.length!==o)throw TypeError("Index or size is negative or greater than the allowed amount");if(!t)for(let t=0;t<u;t++)for(let u=0;u<e;u++){const o=(t*e+u)*r;for(let t=0;t<r;t++)i[o+t]=n[t]}return{get width(){return e},get height(){return u},get data(){return i}}}throw TypeError("Expected data to be Uint8ClampedArray or undefined")}},t.createImage=t.CreateImageFactory()),nr);var t;const e=function(){if(Qn)return rr;Qn=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.filters=void 0;const n=(n,r)=>{if(n<=-r||n>=r)return 0;if(0==n)return 0;const t=n*Math.PI;return Math.sin(t)/t*Math.sin(t/r)/(t/r)},r=n=>Math.round(16383*n);return rr.filters=(t,e,u,i,o)=>{const c=o?2:3,f=1/u,a=Math.min(1,u),d=c/a,s=Math.floor(2*(d+1)),l=new Int16Array((s+2)*e);let v=0;for(let u=0;u<e;u++){const o=(u+.5)*f+i,s=Math.max(0,Math.floor(o-d)),p=Math.min(t-1,Math.ceil(o+d)),h=p-s+1,m=new Float32Array(h),I=new Int16Array(h);let g=0,b=0;for(let r=s;r<=p;r++){const t=n((r+.5-o)*a,c);g+=t,m[b]=t,b++}let R=0;for(let n=0;n<m.length;n++){const t=m[n]/g;R+=t,I[n]=r(t)}I[e>>1]+=r(1-R);let x=0;for(;x<I.length&&0===I[x];)x++;let M=I.length-1;for(;M>0&&0===I[M];)M--;const j=M-x+1;l[v++]=s+x,l[v++]=j,l.set(I.subarray(x,M+1),v),v+=j}return l},rr}(),u=(Gn||(Gn=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.convolve=void 0,tr.convolve=(n,r,t,e,u,i)=>{let o=0,c=0;for(let f=0;f<e;f++){let a=0;for(let t=0;t<u;t++){let t=o+4*i[a++]|0,u=0,f=0,d=0,s=0;for(let r=i[a++];r>0;r--){const r=i[a++];u=u+r*n[t]|0,f=f+r*n[t+1]|0,d=d+r*n[t+2]|0,s=s+r*n[t+3]|0,t=t+4|0}r[c]=u+8192>>14,r[c+1]=f+8192>>14,r[c+2]=d+8192>>14,r[c+3]=s+8192>>14,c=c+4*e|0}c=4*(f+1)|0,o=(f+1)*t*4|0}}),tr),i=(n,r,t=!1)=>{const i=r.height/n.height,o=e.filters(n.width,r.width,r.width/n.width,0,t),c=e.filters(n.height,r.height,i,0,t),f=new Uint8ClampedArray(r.width*n.height*4);u.convolve(n.data,f,n.width,n.height,r.width,o),u.convolve(f,r.data,n.height,r.width,r.height,c)};return Yn.lanczos=(t,e,u=0,o=0,c=t.width-u,f=t.height-o,a=0,d=0,s=e.width-a,l=e.height-d)=>{if(o|=0,f|=0,a|=0,d|=0,s|=0,l|=0,(c|=0)<=0||f<=0||s<=0||l<=0)return;if(0==(u|=0)&&0===o&&c===t.width&&f===t.height&&0===a&&0===d&&s===e.width&&l===e.height)return void i(t,e);const v=r.createImage(c,f),p=r.createImage(s,l);n.copy(t,v,u,o),i(v,p),n.copy(p,e,0,0,p.width,p.height,a,d)},Yn.lanczos2=(t,e,u=0,o=0,c=t.width-u,f=t.height-o,a=0,d=0,s=e.width-a,l=e.height-d)=>{if(o|=0,f|=0,a|=0,d|=0,s|=0,l|=0,(c|=0)<=0||f<=0||s<=0||l<=0)return;if(0==(u|=0)&&0===o&&c===t.width&&f===t.height&&0===a&&0===d&&s===e.width&&l===e.height)return void i(t,e,!0);const v=r.createImage(c,f),p=r.createImage(s,l);n.copy(t,v,u,o),i(v,p,!0),n.copy(p,e,0,0,p.width,p.height,a,d)},Yn}(),ur=tn();const ir=n=>({kind:"height",size:n}),or=f().contramap((n=>n.size))(ur.Ord),cr=on.sort(or),fr=on.sort({equals:(n,r)=>n.kind===r.kind,compare:(n,r)=>n.kind===r.kind?0:"width"===n.kind?-1:1}),ar=(n,r)=>t=>{const e=cr(t),u=(n=>{const[r,t]=n;return r.size/t.size})(e),i=Object.assign(Object.assign({},e[0]),{size:"smallest"===r?n:n*u}),o=Object.assign(Object.assign({},e[1]),{size:"largest"===r?n:n/u});return fr([o,i])},dr=n=>{const{naturalWidth:r,naturalHeight:t}=n;return[(e=r,{kind:"width",size:e}),ir(t)];var e},sr=(n,r)=>{const t=dr(n),e=ar(r,"largest")(t).map((n=>n.size));return[e[0],e[1]]},lr=()=>{const n=document.createElement("canvas"),r=n.getContext("2d");return[n,r]},vr={image:800,highResolutionImage:2e3},pr=(n,r)=>Math.min(n.naturalWidth,n.naturalHeight)>vr[r],hr=(n,r)=>pr(n,r)?((n,r)=>{const t=ar(n,"smallest"),[e,u]=lr(),i=dr(r),[o,c]=t(i).map((n=>n.size)),f=new ImageData(o,c),a=(n=>{const{naturalWidth:r,naturalHeight:t}=n,[e,u]=lr();return e.width=r,e.height=t,u.drawImage(n,0,0),u.getImageData(0,0,r,t)})(r);return e.width=o,e.height=c,er.lanczos(a,f),u.putImageData(f,0,0),e.toDataURL("image/jpeg",.7)})(vr[r],n):(n=>{const r=document.createElement("canvas"),{naturalWidth:t,naturalHeight:e}=n,u=r.getContext("2d");return r.width=t,r.height=e,u.drawImage(n,0,0,t,e),r.toDataURL("image/jpeg")})(n),mr=n=>{const r=(new TextEncoder).encode(n);return btoa(String.fromCharCode.apply(null,r))},Ir=(n,r)=>{r&&(n.dynamicFilters=r,n.requestFilters=Rn(r))},gr=new Map,br=n=>{var r;const t=(null!==(r=gr.get(n))&&void 0!==r?r:0)+1;return gr.set(n,t),()=>gr.get(n)!==t},Rr="2.227.0",xr={visualSearchId:null,textSearchId:null,textSearchQuery:null,searchType:null,searchStatus:"idle",resultLoaded:!1,resultViewed:!1,image:null,imageBounds:null,searchArea:null,croppedImageUrl:null,visualSearchStarted:!1,requestFilters:[]},Mr={results:[],sourceProduct:null,dynamicFilters:[],detectedObjects:[],stream:null,redirect:null},jr=Object.assign(Object.assign(Object.assign({},{excluded:null,campaignId:"",campaignIdTextSearch:"",campaignIdVisualSearch:""}),xr),Mr),yr=yn(jr),Or=yr.state,Ur=yr.onChange,wr=yn(jr),Wr=wr.state,Sr=wr.onChange,Ar=yn(Object.assign({},jr)).state,qr=n=>{switch(n){case"widget":return Or;case"components":return Wr;case"shopTheLook":return Ar;default:throw new Error(`Unknown store name: ${n}`)}},Pr=n=>{const r=qr(n);r.resultLoaded=!1,r.resultViewed=!1},_r=(n,r="appStateAndReceivedData",t=[])=>{const e=qr(n);let u={};switch(r){case"appStateOnly":u=Object.assign({},xr);break;case"receivedDataOnly":u=Object.assign({},Mr);break;case"appStateAndReceivedData":u=Object.assign(Object.assign({},xr),Mr);break;case"all":u=Object.assign({},jr)}for(const n of t)delete u[n];Object.assign(e,u)},kr=(n,r,t)=>{const e=Object.assign(Object.assign({results:r.results,dynamicFilters:r.dynamicFilters,detectedObjects:r.detectedObjects,requestId:"VPS"===t?r.visualSearchId||"":r.textSearchId||""},vn("query",r.textSearchQuery)),{storeName:n,campaignTypeId:t,campaignTypeName:cn[t],widgetVersion:Rr});document.dispatchEvent(new CustomEvent("vviinnSearchSuccess",{detail:e,bubbles:!0,composed:!0}))},Fr=(n,r=()=>!1)=>t=>(r()||(_r(n,"receivedDataOnly",["dynamicFilters"]),qr(n).searchStatus="error"),t),Tr=(n,r,t,e,u=!1)=>{const i=br(n);return p(wn(t,r),_,P,A((n=>V(n,e))),S((r=>(i()||((n,r=!1)=>async t=>{var e;const u=qr(n);if("shopTheLook"===n)return void(u.visualSearchId=t.requestId);const i=t.interactions.suggestedSearchAreas.map((({rectangle:n})=>n));i.length>0&&(u.detectedObjects=i),u.visualSearchId=t.requestId,u.results=t.data.products,Ir(u,t.interactions.dynamicFilters),u.redirect=t.interactions.redirect?Object.assign(Object.assign({},t.interactions.redirect),{searchId:t.requestId}):null,u.stream=null!==(e=null==t?void 0:t.stream)&&void 0!==e?e:null,u.searchStatus="success",r||kr(n,u,"VPS")})(n,u)(r),r))),W(Fr(n,i)))},Er=(n,r,{apiPath:t,campaignId:e,imageType:u="image",searchId:i,isHiResUpdate:o=!1}={})=>c=>{const f=qr(n);return p(P((n=>O.pipe(U.fromNullable(n),R.fromOption((()=>Ln)),R.chain(Vn)))(c)),C((n=>r=>O.pipe(r,Hn,Wn.map((r=>hr(r,n))),Wn.chain(Bn)))(u)),A((r=>(n=>r=>p(w(Hn(r)),S((r=>(qr(n).image=r,r))),S((()=>r))))(n)(r))),A((c=>p(E((async()=>Object.assign(Object.assign(Object.assign({query:{[u]:(await Dn(c)).split(",")[1]},objectDetection:{include:"image"===u}},hn("staticFilters",Object.assign({},pn("excluded",f.excluded)))),vn("requestId",i)),pn("campaign",e||f.campaignIdVisualSearch||f.campaignId))),(n=>({kind:"network error",inner:n}))),A((e=>Tr(n,e,r,t,o)))))))},Cr=async(n,r,t,{apiPath:e,campaignId:u}={})=>{const i=qr(n),o=Object.assign(Object.assign({query:{url:r},objectDetection:{include:!0}},hn("staticFilters",Object.assign({},pn("excluded",i.excluded)))),pn("campaign",u||i.campaignIdVisualSearch||i.campaignId));return Tr(n,o,t,e)()},zr=(n,r,t={})=>async e=>{var u;const i=qr(n);"shopTheLook"!==n&&Object.assign(i,{image:null,detectedObjects:[],textSearchQuery:null,searchType:"image",searchStatus:"loading",visualSearchStarted:!0});const o=await Er(n,r,t)(e)();return(null===(u=i.visualSearchId)||void 0===u?void 0:u.length)&&await p(w(Hn(e)),S((n=>pr(n,"highResolutionImage"))),z((()=>N(!1))))()?(p(Er(n,r,Object.assign(Object.assign({},t),{imageType:"highResolutionImage",searchId:i.visualSearchId,isHiResUpdate:!0}))(e),L((n=>(console.error("Failed to upload hi-res image:",n),N(o)))))(),o):o},Nr=async(n,r,t,{apiPath:e,campaignId:u,dropAppliedFilters:i}={})=>{const o=qr(n);o.textSearchQuery=null,o.searchType="image",o.searchStatus="loading",o.visualSearchStarted=!0;let c=null,f=!1;if(o.searchArea){if("shopTheLook"===n)c=o.searchArea;else if(o.searchArea&&o.imageBounds){const n=D(o.imageBounds)(o.searchArea);c={width:n.width,height:n.height,left:n.left,top:n.top}}}else c=null,f=!0;const a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vn("requestId",null!=r?r:o.visualSearchId)),pn("campaign",u||o.campaignIdVisualSearch||o.campaignId)),pn("dynamicFilters",i?[]:o.requestFilters)),{query:Object.assign({},vn("searchArea",c))}),hn("staticFilters",Object.assign({},pn("excluded",o.excluded)))),{objectDetection:{include:f}});return Tr(n,a,t,e)()},Vr=(n,r)=>{qr(n).textSearchQuery=r||null},Lr=async(n,r,t,e,u,i)=>{const o=qr(n);o.textSearchQuery=r,o.searchType="text",o.searchStatus="loading";const c=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({query:r},vn("requestId",u)),vn("resultsCount",i)),pn("dynamicFilters",o.requestFilters)),pn("campaign",o.campaignIdTextSearch)),hn("staticFilters",Object.assign({},pn("excluded",o.excluded)))),f=br(n);return p(wn(t,c),_,P,A((n=>q(n,e))),S((r=>{var t,e,u,i;return f()||(o.results=null!==(e=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.products)&&void 0!==e?e:[],o.textSearchId=r.requestId,Ir(o,null===(u=null==r?void 0:r.interactions)||void 0===u?void 0:u.dynamicFilters),o.stream=null!==(i=null==r?void 0:r.stream)&&void 0!==i?i:null,o.searchStatus="success",kr(n,o,"TPS")),r})),W(Fr(n,f)))()},Dr=async(n,r,t,e,u,i,o)=>{const c=qr("components");c.searchStatus="loading";const f="product_type"===n||"google_product_category"===n?p(r,(n=>n.split(" > ").join(">")),mr,(n=>n.split("=")[0])):r,a=Object.assign(Object.assign({staticFilters:{included:[{column:n,values:[f]}]}},vn("resultsCount",u)),vn("dynamicFilters",i));return await p(wn(t,a),_,P,k((n=>F(n,e))),S((n=>{var r,t,e,u;return o||(c.results=null!==(t=null===(r=null==n?void 0:n.data)||void 0===r?void 0:r.products)&&void 0!==t?t:[],c.dynamicFilters=null!==(u=null===(e=null==n?void 0:n.interactions)||void 0===e?void 0:e.dynamicFilters)&&void 0!==u?u:[],c.searchStatus="success",kr("components",c,"TPS")),n})),W(Fr("components")))()},Hr=n=>n?{state:Or,onChange:Ur,storeName:"widget"}:{state:Wr,onChange:Sr,storeName:"components"},$r=async(n,r,t,e,u)=>{const i=qr(n);return p(wn(t,{query:r}),_,P,A((n=>T(n,e))),S((n=>{var t,e;if(n.data.query.trim().toLowerCase()!==(null===(t=i.textSearchQuery)||void 0===t?void 0:t.trim().toLowerCase()))return n;const o=null!==(e=n.data.completions)&&void 0!==e?e:[];null==u||u(o);const c=o.find((n=>n.suggestion.trim().toLowerCase()===r.trim().toLowerCase()&&(null==n?void 0:n.url)));return i.redirect=(null==c?void 0:c.url)?{url:c.url,query:r}:null,n})),W((n=>n)))()};export{_r as A,Dr as B,Sn as C,Pn as D,an as E,fn as F,on as _,Cr as a,Hn as b,zr as c,Vr as d,$r as e,cn as f,En as g,pn as h,qn as i,Lr as j,Cn as k,Or as l,Nr as m,bn as n,gn as o,ln as p,In as q,mn as r,Ar as s,$n as t,Hr as u,Rr as v,Rn as w,Pr as x,sr as y,Vn as z}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* vviinn-widgets v2.
|
|
2
|
+
* vviinn-widgets v2.227.0
|
|
3
3
|
* Copyright 2020 Mediaopt
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
* License: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.
|
|
6
|
-
* Notice: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.
|
|
5
|
+
* License: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.227.0/LICENSE
|
|
6
|
+
* Notice: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.227.0/NOTICE
|
|
7
7
|
*/
|
|
8
|
-
import{i as e,d as t}from"./p-BtLMHZyk.js";const r=["filters-sub-row","filters-option-button","filters-option-image","filters-option-color-dot","filters-option-text","filters-option-icon-wrapper"],i=["extended-filters-button","extended-filters-modal","extended-filters-modal-wrapper","extended-filters-header","extended-filters-title","extended-filters-modal-close","extended-filters-no-filters","extended-filters-list","extended-filters-main","extended-filters-row","extended-filters-row-wrapper","extended-filters-main-button","extended-filters-selected-wrapper","extended-filters-sub-list","extended-filters-actions","extended-filters-apply","extended-filters-reset"],o=["filters-wrapper","filters-list","filters-main-button","filters-footer","filters-footer-list","filters-sub-button"],a=["selected-filters-list"],n=["filters-search-container","filters-search-input-container","filters-search-icon","filters-search-input"],s=["histogram","histogram-bar","histogram-range-container","histogram-sliders-control","histogram-from-slider","histogram-to-slider","histogram-label-wrapper","histogram-label","histogram-input-container","histogram-input-label","histogram-from-input","histogram-to-input"],l=["image","image-container","image-picture","image-placeholder","image-skeleton","image-link","content-card-image","content-card-image-container","content-card-image-picture","list-card-image","list-card-image-container","list-card-image-picture"],c=["energy-label-container","energy-label-icon","energy-label-product-type","energy-label-data-sheet-link"],d=(...e)=>e.flat().join(", "),u=d(i,s,r,n),p=d(o,s,r),g=d(a,r),m=d(s),h=d(c),f="products",b=d(l),x=d(["product-card","content-container","brand","product-type","currency","deeplink","title","basket-button","basket-button-container","update-button-item","product-card-actions","product-card-actions-top","favorite-button","discount-label","discount-percentage","product-images-pagination","product-images-pagination-bullet","product-images-pagination-bullet-active"],l,["price-container","price-regular","price-sale","price-outdated","price-amount-regular","price-amount-sale","price-amount-outdated","price-amount-base-regular","price-amount-base-sale","price-amount-base-outdated","price-prefix"],["custom-label-0","custom-label-1","custom-label-2","custom-label-3","custom-label-4","custom-label-content","custom-label-image"],c),k=d(["content-card","content-card-content-container","content-label","content-title","content-link"],l),S=d(["list-card","list-card-content-container","list-label","list-title"],l),B=d(i,o,s,n,r,a),v=d(["upload-photo_button","start-camera_button","drop-zone"]),y=d(["close-button","secondary-action","upload-photo_button","start-camera_button","drop-zone"]),F=d(["text-search-input","text-search-button","speech-button","text-search-tooltip","text-search-container","suggestions-container","suggestion-item"]),w=d(["recommendations-title","recommendations-subtitle"]),T=d(["items-group","carousel-button","carousel-button-prev","carousel-button-next","recommendations-results"]),I=d(["results-title","close-button","secondary-action"]),P=d(["suggestions-container","suggestions-header","suggestions-icon","suggestions-title","suggestions-wrapper","suggestions-list","suggestion-item","suggestion-link","suggestion-filter-button","suggestion-info-text"]),C=d(["shop-the-look-actions-container","shop-the-look-upload-button","shop-the-look-upload-button-icon","shop-the-look-upload-button-text","shop-the-look-results-grid","shop-the-look-result-item","shop-the-look-result-image-container"]),z="<a href='https://www.vviinn.com/' target='_blank' rel='noopener noreferrer'>vviinn</a>",E={de:{translation:{noResultText:"Keine Ergebnisse! Versuche es bitte später erneut.",basketButtonText:"In den Warenkorb",basketButtonPressedText:"In den Warenkorb",discoveryWidgetTitle:"Ähnliche Produkte",contentLabel:"Inhalt",listLabel:"Kategorie",setMode:{widgetTitle:"Kaufen Sie ein Set und erhalten Sie Rabatt",widgetSubtitle:"Sparen Sie bis zu 15% beim Kauf von Produkten aus der Liste",basketButtonText:"Als Set kaufen",basketButtonPressedText:"gespart",updateButtonText:"Neues Set vorschlagen"},exampleImagesTitle:"Mit den Beispielbildern die Suche direkt ausprobieren",imageUploadButtonText:"Bild hochladen",dragDropHintText:"Bild per Drag & Drop hierhin ziehen",cameraButtonTextStart:"Kamera starten",cameraButtonTextStop:"Kamera stoppen",privacyBadgeText:`Durch das Hochladen eines Bildes willigst Du in die Verarbeitung durch unseren Partner ${z} ein.`,teaserText:"Finde Dein Produkt",imageSearchModalTitle:"KI-Suche",textSearchPlaceholder:"mit Text suchen",suggestions:{title:"KI-Vorschläge",description:"Hier sind einige Vorschläge, die Ihnen helfen, das perfekte zu finden."},speechRecognition:{placeholder:"Aufnahme...",tooltip:{general:"Bitte Mikrofon aktivieren",siri:"Bitte aktivieren Siri"}},buttons:{next:"weitere Produkte anzeigen",previous:"vorherige Produkte anzeigen"},emptyResultsBlock:{title:"Leider nichts gefunden",button:"Erneut versuchen"},serverErrorBlock:{title:"Keine Verbindung",button:"Erneut versuchen"},wrongFormatBlock:{title:"Dateityp wird nicht unterstützt",text:"Bitte laden Sie ein Bild im {{formats}} Format hoch.",button:"Erneut versuchen"},heicNotSupportedBlock:{title:"HEIC wird nicht unterstützt",text:"HEIC-Dateien werden nur in Safari und iOS-Browsern unterstützt. Bitte verwenden Sie ein anderes Format.",button:"Erneut versuchen"},wrongAspectRatioBlock:{title:"Das Bild ist zu schmal",button:"Erneut versuchen"},filters:{modal:{title:"Filter",apply:"Anwenden",resetFilters:"Filter zurücksetzen",noFiltersMessage:"Für die akuelle Suche sind keine Filter verfügbar."},search:{placeholder:"Suche..."},imageFilterText:"Bild",cropFilterText:"Bildausschnitt",from:"Von",till:"Bis"},energyLabel:{dataSheetText:"Produktdatenblatt",iconAlt:"Energieeffizienzklasse",iconAltWithClass:"Energieeffizienzklasse {{energyClass}} auf einer Skala von {{minClass}} bis {{maxClass}}",iconAltWithClassOnly:"Energieeffizienzklasse {{energyClass}}"},a11y:{closeButton:"Fenster schließen",backButton:"Zurück",speechButton:"Spracheingabe starten",textSearchButton:"Textsuche starten",cameraModeSearchButton:"KI-Suche mit Kamera starten",modalModeSearchButton:"KI-Suche starten",uploadModeSearchButton:"KI-Suche mit Bildupload starten",cameraExampleImage:"Beispielbild für die Kamerafunktion",capturedImage:"Von der Kamera aufgenommenes Bild",zoomIn:"Vergrößern",zoomOut:"Verkleinern",takePicture:"Foto aufnehmen",cropperImage:"Hochgeladenes Bild zum Zuschneiden und für die visuelle Suche",uploadedImage:"Hochgeladenes Bild für die visuelle Suche",addToFavorites:"Zu Favoriten hinzufügen",removeFromFavorites:"Von Favoriten entfernen",findSimilarProducts:"Ähnliche Produkte finden",productFilters:"Produktfilter",selectedFilters:"Ausgewählte Filter",openFilters:"Filter öffnen",closeDialog:"Dialog schließen",removeFilterLabel:"Filter entfernen: {{label}}",filterExpanded:"{{label}} Filter erweitert",filterSelectionCleared:"Filterauswahl gelöscht",filterDialogOpened:"Filter-Dialog geöffnet",filterDialogClosed:"Filter-Dialog geschlossen",filterRemoved:"Filter entfernt: {{label}}",filterOptions:"{{label}} Filteroptionen",filterButton:"{{label}} Filter",colorOption:"{{label}} Farbe",showMoreOptions:"{{count}} weitere {{label}} Optionen anzeigen",detectedObject:"Erkanntes Objekt auswählen",recommendations:"Empfohlene Produkte",sourceProductImage:"Bild des ursprünglichen Produkts",priceRangeMin:"Mindestpreis",priceRangeMax:"Höchstpreis",vviinnLink:"Vviinn-Website besuchen (öffnet in neuem Tab)"}}},en:{translation:{noResultText:"No results! Please, try again later.",basketButtonText:"Add to Basket",basketButtonPressedText:"Add to Basket",discoveryWidgetTitle:"Recommended products",contentLabel:"Content",listLabel:"Category",setMode:{widgetTitle:"Buy a set to get discount",widgetSubtitle:"Save up to 15% for buying products from the list",basketButtonText:"Buy as set",basketButtonPressedText:"saved",updateButtonText:"Suggest New Set"},exampleImagesTitle:"Try out the search with the example images",imageUploadButtonText:"Upload Photo",dragDropHintText:"Drag and drop your image here",cameraButtonTextStart:"Start Camera",cameraButtonTextStop:"Stop Camera",privacyBadgeText:`By uploading a picture you agree to the processing by our partner ${z}.`,teaserText:"Find Your Product",imageSearchModalTitle:"AI Search",textSearchPlaceholder:"Search by text",suggestions:{title:"AI Suggestions",description:"Here are some suggestions to help you find the perfect match."},speechRecognition:{placeholder:"Listening...",tooltip:{general:"Please enable microphone",siri:"Please enable Siri"}},buttons:{next:"show next products",previous:"show previous products"},emptyResultsBlock:{title:"Sorry, nothing found",button:"Try again"},serverErrorBlock:{title:"Something went wrong",button:"Try again"},wrongFormatBlock:{title:"Wrong file format",text:"Please upload an image in {{formats}} format.",button:"Try again"},heicNotSupportedBlock:{title:"HEIC not supported",text:"HEIC files are only supported in Safari and iOS browsers. Please use a different format.",button:"Try again"},wrongAspectRatioBlock:{title:"The image is too narrow",button:"Try again"},filters:{modal:{title:"Filters",apply:"Apply",resetFilters:"Reset Filters",noFiltersMessage:"No filters available for the current search."},search:{placeholder:"Search..."},imageFilterText:"Image",cropFilterText:"Crop",from:"From",till:"Till"},energyLabel:{dataSheetText:"Product Data Sheet",iconAlt:"Energy efficiency class",iconAltWithClass:"Energy efficiency class {{energyClass}} on a scale from {{minClass}} to {{maxClass}}",iconAltWithClassOnly:"Energy efficiency class {{energyClass}}"},a11y:{closeButton:"Close window",backButton:"Go back",speechButton:"Start speech input",textSearchButton:"Start text search",cameraModeSearchButton:"Start AI search with camera",modalModeSearchButton:"Start AI search",uploadModeSearchButton:"Start AI search with image upload",cameraExampleImage:"Example image for the camera function",capturedImage:"Image captured by the camera",zoomIn:"Zoom in",zoomOut:"Zoom out",takePicture:"Take picture",cropperImage:"Uploaded image for cropping and visual search",uploadedImage:"Uploaded image for visual search",addToFavorites:"Add to favorites",removeFromFavorites:"Remove from favorites",findSimilarProducts:"Find similar products",productFilters:"Product filters",selectedFilters:"Selected filters",openFilters:"Open filters",closeDialog:"Close dialog",removeFilterLabel:"Remove filter: {{label}}",filterExpanded:"{{label}} filter expanded",filterSelectionCleared:"Filter selection cleared",filterDialogOpened:"Filter dialog opened",filterDialogClosed:"Filter dialog closed",filterRemoved:"Filter removed: {{label}}",filterOptions:"{{label}} filter options",filterButton:"{{label}} filter",colorOption:"{{label}} color",showMoreOptions:"Show {{count}} more {{label}} options",detectedObject:"Select detected object",recommendations:"Recommended products",sourceProductImage:"Source product image",priceRangeMin:"Minimum price",priceRangeMax:"Maximum price",vviinnLink:"Visit Vviinn website (opens in new tab)"}}}},M=async r=>{const i=null!=r?r:t.locale;if(e.isInitialized){if(e.language===i)return;await e.changeLanguage(i)}else await e.init({lng:i,fallbackLng:"en",resources:E})};export{C as a,F as b,T as c,f as d,k as e,g as f,P as g,p as h,M as i,u as j,B as k,S as l,I as m,v as n,h as o,x as p,b as q,w as r,y as s,m as t}
|
|
8
|
+
import{i as e,d as t}from"./p-CFvXi0uP.js";const r=["filters-sub-row","filters-option-button","filters-option-image","filters-option-color-dot","filters-option-text","filters-option-icon-wrapper"],i=["extended-filters-button","extended-filters-modal","extended-filters-modal-wrapper","extended-filters-header","extended-filters-title","extended-filters-modal-close","extended-filters-no-filters","extended-filters-list","extended-filters-main","extended-filters-row","extended-filters-row-wrapper","extended-filters-main-button","extended-filters-selected-wrapper","extended-filters-sub-list","extended-filters-actions","extended-filters-apply","extended-filters-reset"],o=["filters-wrapper","filters-list","filters-main-button","filters-footer","filters-footer-list","filters-sub-button"],a=["selected-filters-list"],n=["filters-search-container","filters-search-input-container","filters-search-icon","filters-search-input"],s=["histogram","histogram-bar","histogram-range-container","histogram-sliders-control","histogram-from-slider","histogram-to-slider","histogram-label-wrapper","histogram-label","histogram-input-container","histogram-input-label","histogram-from-input","histogram-to-input"],l=["image","image-container","image-picture","image-placeholder","image-skeleton","image-link","content-card-image","content-card-image-container","content-card-image-picture","list-card-image","list-card-image-container","list-card-image-picture"],c=["energy-label-container","energy-label-icon","energy-label-product-type","energy-label-data-sheet-link"],d=(...e)=>e.flat().join(", "),u=d(i,s,r,n),p=d(o,s,r),g=d(a,r),m=d(s),h=d(c),f="products",b=d(l),x=d(["product-card","content-container","brand","product-type","currency","deeplink","title","basket-button","basket-button-container","update-button-item","product-card-actions","product-card-actions-top","favorite-button","discount-label","discount-percentage","product-images-pagination","product-images-pagination-bullet","product-images-pagination-bullet-active"],l,["price-container","price-regular","price-sale","price-outdated","price-amount-regular","price-amount-sale","price-amount-outdated","price-amount-base-regular","price-amount-base-sale","price-amount-base-outdated","price-prefix"],["custom-label-0","custom-label-1","custom-label-2","custom-label-3","custom-label-4","custom-label-content","custom-label-image"],c),k=d(["content-card","content-card-content-container","content-label","content-title","content-link"],l),S=d(["list-card","list-card-content-container","list-label","list-title"],l),B=d(i,o,s,n,r,a),v=d(["upload-photo_button","start-camera_button","drop-zone"]),y=d(["close-button","secondary-action","upload-photo_button","start-camera_button","drop-zone"]),F=d(["text-search-input","text-search-button","speech-button","text-search-tooltip","text-search-container","suggestions-container","suggestion-item"]),w=d(["recommendations-title","recommendations-subtitle"]),T=d(["items-group","carousel-button","carousel-button-prev","carousel-button-next","recommendations-results"]),I=d(["results-title","close-button","secondary-action"]),P=d(["suggestions-container","suggestions-header","suggestions-icon","suggestions-title","suggestions-wrapper","suggestions-list","suggestion-item","suggestion-link","suggestion-filter-button","suggestion-info-text"]),C=d(["shop-the-look-actions-container","shop-the-look-upload-button","shop-the-look-upload-button-icon","shop-the-look-upload-button-text","shop-the-look-results-grid","shop-the-look-result-item","shop-the-look-result-image-container"]),z="<a href='https://www.vviinn.com/' target='_blank' rel='noopener noreferrer'>vviinn</a>",E={de:{translation:{noResultText:"Keine Ergebnisse! Versuche es bitte später erneut.",basketButtonText:"In den Warenkorb",basketButtonPressedText:"In den Warenkorb",discoveryWidgetTitle:"Ähnliche Produkte",contentLabel:"Inhalt",listLabel:"Kategorie",setMode:{widgetTitle:"Kaufen Sie ein Set und erhalten Sie Rabatt",widgetSubtitle:"Sparen Sie bis zu 15% beim Kauf von Produkten aus der Liste",basketButtonText:"Als Set kaufen",basketButtonPressedText:"gespart",updateButtonText:"Neues Set vorschlagen"},exampleImagesTitle:"Mit den Beispielbildern die Suche direkt ausprobieren",imageUploadButtonText:"Bild hochladen",dragDropHintText:"Bild per Drag & Drop hierhin ziehen",cameraButtonTextStart:"Kamera starten",cameraButtonTextStop:"Kamera stoppen",privacyBadgeText:`Durch das Hochladen eines Bildes willigst Du in die Verarbeitung durch unseren Partner ${z} ein.`,teaserText:"Finde Dein Produkt",imageSearchModalTitle:"KI-Suche",textSearchPlaceholder:"mit Text suchen",suggestions:{title:"KI-Vorschläge",description:"Hier sind einige Vorschläge, die Ihnen helfen, das perfekte zu finden."},speechRecognition:{placeholder:"Aufnahme...",tooltip:{general:"Bitte Mikrofon aktivieren",siri:"Bitte aktivieren Siri"}},buttons:{next:"weitere Produkte anzeigen",previous:"vorherige Produkte anzeigen"},emptyResultsBlock:{title:"Leider nichts gefunden",button:"Erneut versuchen"},serverErrorBlock:{title:"Keine Verbindung",button:"Erneut versuchen"},wrongFormatBlock:{title:"Dateityp wird nicht unterstützt",text:"Bitte laden Sie ein Bild im {{formats}} Format hoch.",button:"Erneut versuchen"},heicNotSupportedBlock:{title:"HEIC wird nicht unterstützt",text:"HEIC-Dateien werden nur in Safari und iOS-Browsern unterstützt. Bitte verwenden Sie ein anderes Format.",button:"Erneut versuchen"},wrongAspectRatioBlock:{title:"Das Bild ist zu schmal",button:"Erneut versuchen"},filters:{modal:{title:"Filter",apply:"Anwenden",resetFilters:"Filter zurücksetzen",noFiltersMessage:"Für die akuelle Suche sind keine Filter verfügbar."},search:{placeholder:"Suche..."},imageFilterText:"Bild",cropFilterText:"Bildausschnitt",from:"Von",till:"Bis"},energyLabel:{dataSheetText:"Produktdatenblatt",iconAlt:"Energieeffizienzklasse",iconAltWithClass:"Energieeffizienzklasse {{energyClass}} auf einer Skala von {{minClass}} bis {{maxClass}}",iconAltWithClassOnly:"Energieeffizienzklasse {{energyClass}}"},a11y:{closeButton:"Fenster schließen",backButton:"Zurück",speechButton:"Spracheingabe starten",textSearchButton:"Textsuche starten",cameraModeSearchButton:"KI-Suche mit Kamera starten",modalModeSearchButton:"KI-Suche starten",uploadModeSearchButton:"KI-Suche mit Bildupload starten",cameraExampleImage:"Beispielbild für die Kamerafunktion",capturedImage:"Von der Kamera aufgenommenes Bild",zoomIn:"Vergrößern",zoomOut:"Verkleinern",takePicture:"Foto aufnehmen",cropperImage:"Hochgeladenes Bild zum Zuschneiden und für die visuelle Suche",uploadedImage:"Hochgeladenes Bild für die visuelle Suche",addToFavorites:"Zu Favoriten hinzufügen",removeFromFavorites:"Von Favoriten entfernen",findSimilarProducts:"Ähnliche Produkte finden",productFilters:"Produktfilter",selectedFilters:"Ausgewählte Filter",openFilters:"Filter öffnen",closeDialog:"Dialog schließen",removeFilterLabel:"Filter entfernen: {{label}}",filterExpanded:"{{label}} Filter erweitert",filterSelectionCleared:"Filterauswahl gelöscht",filterDialogOpened:"Filter-Dialog geöffnet",filterDialogClosed:"Filter-Dialog geschlossen",filterRemoved:"Filter entfernt: {{label}}",filterOptions:"{{label}} Filteroptionen",filterButton:"{{label}} Filter",colorOption:"{{label}} Farbe",showMoreOptions:"{{count}} weitere {{label}} Optionen anzeigen",detectedObject:"Erkanntes Objekt auswählen",recommendations:"Empfohlene Produkte",sourceProductImage:"Bild des ursprünglichen Produkts",priceRangeMin:"Mindestpreis",priceRangeMax:"Höchstpreis",vviinnLink:"Vviinn-Website besuchen (öffnet in neuem Tab)"}}},en:{translation:{noResultText:"No results! Please, try again later.",basketButtonText:"Add to Basket",basketButtonPressedText:"Add to Basket",discoveryWidgetTitle:"Recommended products",contentLabel:"Content",listLabel:"Category",setMode:{widgetTitle:"Buy a set to get discount",widgetSubtitle:"Save up to 15% for buying products from the list",basketButtonText:"Buy as set",basketButtonPressedText:"saved",updateButtonText:"Suggest New Set"},exampleImagesTitle:"Try out the search with the example images",imageUploadButtonText:"Upload Photo",dragDropHintText:"Drag and drop your image here",cameraButtonTextStart:"Start Camera",cameraButtonTextStop:"Stop Camera",privacyBadgeText:`By uploading a picture you agree to the processing by our partner ${z}.`,teaserText:"Find Your Product",imageSearchModalTitle:"AI Search",textSearchPlaceholder:"Search by text",suggestions:{title:"AI Suggestions",description:"Here are some suggestions to help you find the perfect match."},speechRecognition:{placeholder:"Listening...",tooltip:{general:"Please enable microphone",siri:"Please enable Siri"}},buttons:{next:"show next products",previous:"show previous products"},emptyResultsBlock:{title:"Sorry, nothing found",button:"Try again"},serverErrorBlock:{title:"Something went wrong",button:"Try again"},wrongFormatBlock:{title:"Wrong file format",text:"Please upload an image in {{formats}} format.",button:"Try again"},heicNotSupportedBlock:{title:"HEIC not supported",text:"HEIC files are only supported in Safari and iOS browsers. Please use a different format.",button:"Try again"},wrongAspectRatioBlock:{title:"The image is too narrow",button:"Try again"},filters:{modal:{title:"Filters",apply:"Apply",resetFilters:"Reset Filters",noFiltersMessage:"No filters available for the current search."},search:{placeholder:"Search..."},imageFilterText:"Image",cropFilterText:"Crop",from:"From",till:"Till"},energyLabel:{dataSheetText:"Product Data Sheet",iconAlt:"Energy efficiency class",iconAltWithClass:"Energy efficiency class {{energyClass}} on a scale from {{minClass}} to {{maxClass}}",iconAltWithClassOnly:"Energy efficiency class {{energyClass}}"},a11y:{closeButton:"Close window",backButton:"Go back",speechButton:"Start speech input",textSearchButton:"Start text search",cameraModeSearchButton:"Start AI search with camera",modalModeSearchButton:"Start AI search",uploadModeSearchButton:"Start AI search with image upload",cameraExampleImage:"Example image for the camera function",capturedImage:"Image captured by the camera",zoomIn:"Zoom in",zoomOut:"Zoom out",takePicture:"Take picture",cropperImage:"Uploaded image for cropping and visual search",uploadedImage:"Uploaded image for visual search",addToFavorites:"Add to favorites",removeFromFavorites:"Remove from favorites",findSimilarProducts:"Find similar products",productFilters:"Product filters",selectedFilters:"Selected filters",openFilters:"Open filters",closeDialog:"Close dialog",removeFilterLabel:"Remove filter: {{label}}",filterExpanded:"{{label}} filter expanded",filterSelectionCleared:"Filter selection cleared",filterDialogOpened:"Filter dialog opened",filterDialogClosed:"Filter dialog closed",filterRemoved:"Filter removed: {{label}}",filterOptions:"{{label}} filter options",filterButton:"{{label}} filter",colorOption:"{{label}} color",showMoreOptions:"Show {{count}} more {{label}} options",detectedObject:"Select detected object",recommendations:"Recommended products",sourceProductImage:"Source product image",priceRangeMin:"Minimum price",priceRangeMax:"Maximum price",vviinnLink:"Visit Vviinn website (opens in new tab)"}}}},M=async r=>{const i=null!=r?r:t.locale;if(e.isInitialized){if(e.language===i)return;await e.changeLanguage(i)}else await e.init({lng:i,fallbackLng:"en",resources:E})};export{C as a,F as b,T as c,f as d,k as e,g as f,P as g,p as h,M as i,u as j,B as k,S as l,I as m,v as n,h as o,x as p,b as q,w as r,y as s,m as t}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* vviinn-widgets v2.
|
|
2
|
+
* vviinn-widgets v2.227.0
|
|
3
3
|
* Copyright 2020 Mediaopt
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
* License: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.
|
|
6
|
-
* Notice: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.
|
|
5
|
+
* License: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.227.0/LICENSE
|
|
6
|
+
* Notice: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.227.0/NOTICE
|
|
7
7
|
*/
|
|
8
|
-
import{h as n}from"./p-
|
|
8
|
+
import{h as n}from"./p-FhFmxhnG.js";const i=["vviinn-recommendations-title","vviinn-recommendations-subtitle","vviinn-update-button-text","vviinn-update-button-icon"],e=["vviinn-teaser-text","vviinn-image-upload-button-text","vviinn-image-upload-icon","vviinn-drag-drop-icon","vviinn-drag-drop-text","vviinn-camera-button-text-start","vviinn-camera-button-text-stop","vviinn-camera-icon","vviinn-text-search-icon","vviinn-privacy-badge-text","vviinn-image-search-modal-title"],t=["vviinn-extended-filters-title","vviinn-extended-filters-apply","vviinn-extended-filters-reset","vviinn-extended-filters-no-filters","vviinn-filters-search-icon","vviinn-image-filter-text","vviinn-crop-filter-text","vviinn-range-filter-from-label","vviinn-range-filter-to-label"],v=["vviinn-suggestions-title","vviinn-suggestions-icon"],a=["vviinn-basket-button-icon","vviinn-basket-button-text","vviinn-basket-button-icon-pressed","vviinn-basket-button-text-pressed","vviinn-favorite-icon","vviinn-favorite-icon-pressed","vviinn-energy-label-data-sheet-text","vviinn-product-card-actions","vviinn-custom-label-0","vviinn-custom-label-1","vviinn-custom-label-2","vviinn-custom-label-3","vviinn-custom-label-4","vviinn-image-placeholder-icon"],o="vviinn-results-vpr-icon",l=i=>n("slot",{name:i}),r=n=>(n=>{switch(n){case"search":return[...e,...t,...a,...v];case"discovery":return[...i,...t,...a];case"filters":return t;case"card":return a}})(n).map(l),s=(n,i)=>{i.innerHTML=n.outerHTML},d=(n,i)=>{n.connectedCallback=function(){document.addEventListener("globalSlotsChanged",(({detail:n})=>{const e=i.tagName,t=["VVIINN-PRODUCT-CARD","VVIINN-TEASER","VVIINN-CAMERA","VVIINN-PRIVACY-BADGE","VVIINN-MODAL","VVIINN-TEXT-SEARCH","VVIINN-EXTENDED-FILTERS","VVIINN-FILTERS","VVIINN-SELECTED-FILTERS","VVIINN-SUGGESTIONS","VVIINN-RANGE-FILTER"].includes(e),v=i!==n.element,a=v&&!t,o="VVIINN-VPS-BUTTON"===n.element.tagName&&"VVIINN-VPS-WIDGET"===e,l=n.element.shadowRoot,{levelOne:r,levelTwo:d,levelThree:c}=(n=>{var i,e,t,v;const a=null!==(e=null===(i=null==n?void 0:n.lastChild)||void 0===i?void 0:i.shadowRoot)&&void 0!==e?e:null;return{levelOne:n,levelTwo:a,levelThree:null!==(v=null===(t=null==a?void 0:a.lastChild)||void 0===t?void 0:t.shadowRoot)&&void 0!==v?v:null}})(l),u=!(r&&r.contains(i)||d&&d.contains(i)||c&&c.contains(i)),I=(a||t&&u)&&!o,N=o&&!l.contains(i),b=I||N,V=!["VVIINN-ENERGY-LABEL"].includes(e);if(v&&b&&V)return;const x=(n=>Array.from(n.shadowRoot.querySelectorAll("slot")))(i).reduce((m=n.slots,(n,i)=>{const e=m.find((t=i,n=>t.getAttribute("name")===n.getAttribute("slot")));var t;return e&&n.set(i,e),n}),new Map);var m;x.forEach(s)}),!0)},n.connectedCallback.call(n)},c=n=>Array.from(n.querySelectorAll("[slot]")),u=n=>n.map((n=>n.getAttribute("slot"))),I=n=>Array.from(n.childNodes).some((n=>n.nodeType===Node.TEXT_NODE?""!==n.textContent.trim():n.nodeType===Node.ELEMENT_NODE&&!n.getAttribute("slot")));function N(n,i,e){i.forEach((([i,t])=>{n.addEventListener(i,t,{signal:e})}))}function b(n,i){if(i)n.removeAttribute("inert"),n.removeAttribute("aria-hidden"),function(n){n.querySelectorAll("[data-original-tabindex]").forEach((n=>{const i=n,e=i.getAttribute("data-original-tabindex");"0"===e||""===e?i.removeAttribute("tabindex"):i.tabIndex=parseInt(e,10),i.removeAttribute("data-original-tabindex")}))}(n);else{const i=document.activeElement;i&&n.contains(i)&&i.blur(),n.querySelectorAll(":focus").forEach((n=>{n.blur()})),Promise.resolve().then((()=>{n.setAttribute("inert",""),n.setAttribute("aria-hidden","true"),function(n){n.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])').forEach((n=>{const i=n;i.hasAttribute("data-original-tabindex")||i.setAttribute("data-original-tabindex",i.tabIndex.toString()),i.tabIndex=-1}))}(n)}))}}function V(n,i){var e,t;const v=n.target,a=(null===(e=n.composedPath)||void 0===e?void 0:e.call(n))||[];return!!(null===(t=null==v?void 0:v.closest)||void 0===t?void 0:t.call(v,i))||a.some((n=>{var e;return null===(e=n.matches)||void 0===e?void 0:e.call(n,i)}))}export{r as S,N as a,b,c as f,u as g,I as h,V as i,a as p,d as s,o as v}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* vviinn-widgets v2.
|
|
2
|
+
* vviinn-widgets v2.227.0
|
|
3
3
|
* Copyright 2020 Mediaopt
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
* License: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.
|
|
6
|
-
* Notice: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.
|
|
5
|
+
* License: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.227.0/LICENSE
|
|
6
|
+
* Notice: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.227.0/NOTICE
|
|
7
7
|
*/
|
|
8
|
-
import{h as C}from"./p-
|
|
8
|
+
import{h as C}from"./p-FhFmxhnG.js";const o=()=>C("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},C("path",{d:"M7.82499 13L12.725 17.9C12.925 18.1 13.0208 18.3333 13.0125 18.6C13.0042 18.8667 12.9 19.1 12.7 19.3C12.5 19.4833 12.2667 19.5792 12 19.5875C11.7333 19.5958 11.5 19.5 11.3 19.3L4.69999 12.7C4.59999 12.6 4.52915 12.4917 4.48749 12.375C4.44582 12.2583 4.42499 12.1333 4.42499 12C4.42499 11.8667 4.44582 11.7417 4.48749 11.625C4.52915 11.5083 4.59999 11.4 4.69999 11.3L11.3 4.69999C11.4833 4.51665 11.7125 4.42499 11.9875 4.42499C12.2625 4.42499 12.5 4.51665 12.7 4.69999C12.9 4.89999 13 5.13749 13 5.41249C13 5.68749 12.9 5.92499 12.7 6.12499L7.82499 11H19C19.2833 11 19.5208 11.0958 19.7125 11.2875C19.9042 11.4792 20 11.7167 20 12C20 12.2833 19.9042 12.5208 19.7125 12.7125C19.5208 12.9042 19.2833 13 19 13H7.82499Z",fill:"currentColor"}));export{o as S}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* vviinn-widgets v2.
|
|
2
|
+
* vviinn-widgets v2.227.0
|
|
3
3
|
* Copyright 2020 Mediaopt
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
* License: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.
|
|
6
|
-
* Notice: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.
|
|
5
|
+
* License: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.227.0/LICENSE
|
|
6
|
+
* Notice: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.227.0/NOTICE
|
|
7
7
|
*/
|
|
8
8
|
var t=Object.defineProperty,e=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},n=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},o=(t,e)=>e in t,l=(t,e)=>(0,console.error)(t,e),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="http://www.w3.org/1999/xlink",u="undefined"!=typeof window?window:{},a={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},f=t=>Promise.resolve(t),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),p=!1,h=[],m=[],v=(t,e)=>n=>{t.push(n),p||(p=!0,e&&4&a.o?b(w):a.raf(w))},y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){l(t)}t.length=0},w=()=>{y(h),y(m),(p=h.length>0)&&a.raf(w)},b=t=>f().then(t),$=v(m,!0),g=t=>"object"==(t=typeof t)||"function"===t;function S(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>O,ok:()=>j,unwrap:()=>E,unwrapErr:()=>x});var j=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function O(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>j(t))):j(n)}if(t.isErr)return k(t.value);throw"should never get here"}var E=t=>{if(t.isOk)return t.value;throw t.value},x=t=>{if(t.isErr)return t.value;throw t.value},C=(t,e,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!g(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?M(null,o):o),i=s)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,r,N);const u=M(t,null);return u.u=e,r.length>0&&(u.p=r),u.h=l,u},M=(t,e)=>({o:0,m:t,i:e,v:null,p:null,u:null,h:null}),P={},N={forEach:(t,e)=>t.map(R).forEach(e),map:(t,e)=>t.map(R).map(e).map(D)},R=t=>({vattrs:t.u,vchildren:t.p,vkey:t.h,vname:t.$,vtag:t.m,vtext:t.i}),D=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),C(t.vtag,e,...t.vchildren||[])}const e=M(t.vtag,t.vtext);return e.u=t.vattrs,e.p=t.vchildren,e.h=t.vkey,e.$=t.vname,e},U=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};U("::slotted"),U(":host"),U(":host-context");var W,A=(t,e)=>null==t||g(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,F=t=>e(t).$hostElement$,H=(t,e)=>{const n=F(t);return{emit:t=>L(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},L=(t,e,n)=>{const o=a.ce(e,n);return t.dispatchEvent(o),o},T=new WeakMap,z=t=>"sc-"+t.S,V=(t,e,n,l,s,i)=>{if(n===l)return;let r=o(t,e),f=e.toLowerCase();if("class"===e){const e=t.classList,o=G(n);let s=G(l);e.remove(...o.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!o.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if("key"===e);else if("ref"===e)l&&l(t);else if(r||"o"!==e[0]||"n"!==e[1]){const o=g(l);if((r||o&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]!==l&&(t[e]=l);else{const o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==o||("function"==typeof t.__lookupSetter__(e)?t[e]=o:t.setAttribute(e,o))}}catch(t){}let u=!1;f!==(f=f.replace(/^xlink\:?/,""))&&(e=f,u=!0),null==l||!1===l?!1===l&&""!==t.getAttribute(e)||(u?t.removeAttributeNS(c,e):t.removeAttribute(e)):(!r||4&i||s)&&!o&&1===t.nodeType&&(l=!0===l?"":l,u?t.setAttributeNS(c,e,l):t.setAttribute(e,l))}else if(e="-"===e[2]?e.slice(3):o(u,f)?f.slice(2):f[2]+e.slice(3),n||l){const o=e.endsWith(I);e=e.replace(Y,""),n&&a.rel(t,e,n,o),l&&a.ael(t,e,l,o)}},q=/\s/,G=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(q):[]),I="Capture",Y=RegExp(I+"$"),_=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,l=t&&t.u||{},s=e.u||{};for(const t of B(Object.keys(l)))t in s||V(o,t,l[t],void 0,n,e.o);for(const t of B(Object.keys(s)))V(o,t,l[t],s[t],n,e.o)};function B(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var J=!1,K=(t,e,n)=>{const o=e.p[n];let l,s,i=0;if(null!==o.i)l=o.v=u.document.createTextNode(o.i);else{if(J||(J="svg"===o.m),!u.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=o.v=u.document.createElementNS(J?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),J&&"foreignObject"===o.m&&(J=!1),_(null,o,J),o.p)for(i=0;i<o.p.length;++i)s=K(t,o,i),s&&l.appendChild(s);"svg"===o.m?J=!1:"foreignObject"===l.tagName&&(J=!0)}return l["s-hn"]=W,l},Q=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===W&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=K(null,n,l),i&&(o[l].v=i,nt(r,i,e)))},X=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;et(e),t&&t.remove()}}},Z=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.h&&e.h&&(t.h=e.h),!0):t.h===e.h),tt=(t,e,n=!1)=>{const o=e.v=t.v,l=t.p,s=e.p,i=e.m,r=e.i;null===r?(_(t,e,J="svg"===i||"foreignObject"!==i&&J),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=e.length-1,d=e[0],p=e[f],h=o.length-1,m=o[0],v=o[h];for(;r<=f&&c<=h;)if(null==d)d=e[++r];else if(null==p)p=e[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--h];else if(Z(d,m,l))tt(d,m,l),d=e[++r],m=o[++c];else if(Z(p,v,l))tt(p,v,l),p=e[--f],v=o[--h];else if(Z(d,v,l))tt(d,v,l),nt(t,d.v,p.v.nextSibling),d=e[++r],v=o[--h];else if(Z(p,m,l))tt(p,m,l),nt(t,p.v,d.v),p=e[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].h&&e[a].h===m.h){u=a;break}u>=0?(i=e[u],i.m!==m.m?s=K(e&&e[c],n,u):(tt(i,m,l),e[u]=void 0,s=i.v),m=o[++c]):(s=K(e&&e[c],n,c),m=o[++c]),s&&nt(d.v.parentNode,s,d.v)}r>f?Q(t,null==o[h+1]?null:o[h+1].v,n,o,c,h):c>h&&X(e,r,f)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),Q(o,null,e,s,0,s.length-1)):!n&&null!==l&&X(l,0,l.length-1),J&&"svg"===i&&(J=!1)):t.i!==r&&(o.data=r)},et=t=>{t.u&&t.u.ref&&t.u.ref(null),t.p&&t.p.map(et)},nt=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),ot=(t,e)=>{if(e&&!t.j&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.j=()=>{e["s-p"].splice(n-1,1),o()})))}},lt=(t,e)=>{if(t.o|=16,!(4&t.o))return ot(t,t.k),$((()=>st(t,e)));t.o|=512},st=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e?(t.o|=256,t.O&&(t.O.map((([t,e])=>mt(o,t,e,n))),t.O=void 0),l=mt(o,"componentWillLoad",void 0,n)):l=mt(o,"componentWillUpdate",void 0,n),l=it(l,(()=>mt(o,"componentWillRender",void 0,n))),it(l,(()=>ct(t,o,e)))},it=(t,e)=>rt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),rt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,ct=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.C,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=z(e),l=i.get(o);if(!u.document)return o;if(t=11===t.nodeType?t:u.document,l)if("string"==typeof l){let s,i=T.get(t=t.head||t);if(i||T.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.document.createElement("style"),s.innerHTML=l;const i=null!=(n=a.M)?n:S(u.document);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(d){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=r),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);at(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>dt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},ut=null,at=(t,e,n,o)=>{try{ut=e,e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.C,s=t.P||M(null,null),i=(t=>t&&t.m===P)(e)?e:C(null,null,e);if(W=o.tagName,l.N&&(i.u=i.u||{},l.N.map((([t,e])=>i.u[e]=o[t]))),n&&i.u)for(const t of Object.keys(i.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.u[t]=o[t]);i.m=null,i.o|=4,t.P=i,i.v=s.v=o.shadowRoot||o,tt(s,i,n)})(t,e,o)}catch(e){l(e,t.$hostElement$)}return ut=null,null},ft=()=>ut,dt=t=>{const e=t.$hostElement$,n=t.t,o=t.k;mt(n,"componentDidRender",void 0,e),64&t.o?mt(n,"componentDidUpdate",void 0,e):(t.o|=64,vt(e),mt(n,"componentDidLoad",void 0,e),t.R(e),o||ht()),t.j&&(t.j(),t.j=void 0),512&t.o&&b((()=>lt(t,!1))),t.o&=-517},pt=t=>{{const n=e(t),o=n.$hostElement$.isConnected;return o&&2==(18&n.o)&<(n,!1),o}},ht=()=>{b((()=>L(u,"appload",{detail:{namespace:"vviinn-widgets"}})))},mt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){l(t,o)}},vt=t=>t.classList.add("hydrated"),yt=(t,n,o,s)=>{const i=e(t);if(!i)throw Error(`Couldn't find host element for "${s.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=i.$hostElement$,c=i.D.get(n),u=i.o,a=i.t;if(o=A(o,s.U[n][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.D.set(n,o),a)){if(s.W&&128&u){const t=s.W[n];t&&t.map((t=>{try{a[t](o,c,n)}catch(t){l(t,r)}}))}if(2==(18&u)){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(o,c,n))return;lt(i,!1)}}},wt=(t,n,o)=>{var l,s;const i=t.prototype;if(n.U||n.W||t.watchers){t.watchers&&!n.W&&(n.W=t.watchers);const r=Object.entries(null!=(l=n.U)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(n.U[t][0]|=2048),r&&(n.U[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&n.U[t][0]))return((t,n)=>e(this).D.get(n))(0,t);const o=e(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=e(this);if(r){const e=32&l?this[t]:i.$hostElement$[t];return void 0===e&&i.D.get(t)?s=i.D.get(t):!i.D.get(t)&&e&&i.D.set(t,e),r.call(this,A(s,l)),void yt(this,t,s=32&l?this[t]:i.$hostElement$[t],n)}{if(!(1&o&&4096&n.U[t][0]))return yt(this,t,s,n),void(1&o&&!i.t&&i.A.then((()=>{4096&n.U[t][0]&&i.t[t]!==i.D.get(t)&&(i.t[t]=s)})));const e=()=>{const e=i.t[t];!i.D.get(t)&&e&&i.D.set(t,e),i.t[t]=A(s,l),yt(this,t,i.t[t],n)};i.t?e():i.A.then((()=>e()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){a.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=e(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const e=o.t,i=null==(r=n.W)?void 0:r[t];null==i||i.forEach((n=>{null!=e[n]&&e[n].call(e,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.W)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{var l;const s=e[1]||t;return o.set(s,t),512&e[0]&&(null==(l=n.N)||l.push([t,s])),s}))]))}}return t},bt=(t,e)=>{mt(t,"connectedCallback",void 0,e)},$t=(t,e)=>{mt(t,"disconnectedCallback",void 0,e||t)},gt=(t,n={})=>{var o;if(!u.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const c=[],f=n.exclude||[],p=u.customElements,h=u.document.head,m=h.querySelector("meta[charset]"),v=u.document.createElement("style"),y=[];let w,b=!0;Object.assign(a,n),a.l=new URL(n.resourcesUrl||"./",u.document.baseURI).href;let $=!1;if(t.map((t=>{t[1].map((n=>{var o;const r={o:n[0],S:n[1],U:n[2],F:n[3]};4&r.o&&($=!0),r.U=n[2],r.F=n[3],r.N=[],r.W=null!=(o=n[4])?o:{};const u=r.S,h=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,C:e,D:new Map};n.A=new Promise((t=>n.R=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,r),1&r.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.S}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=e(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,jt(this,t,r.F)),w&&(clearTimeout(w),w=null),b?y.push(this):a.jmp((()=>(t=>{if(!(1&a.o)){const n=e(t),o=n.C,r=()=>{};if(1&n.o)jt(t,n,o.F),(null==n?void 0:n.t)?bt(n.t,t):(null==n?void 0:n.A)&&n.A.then((()=>bt(n.t,t)));else{n.o|=1;{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){ot(n,n.k=e);break}}o.U&&Object.entries(o.U).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.H){const i=((t,e)=>{const n=t.S.replace(/-/g,"_"),o=t.H;if(!o)return;const i=s.get(o);return i?i[n]:import(`./${o}.entry.js`).then((t=>(s.set(o,t),t[n])),(t=>{l(t,e.$hostElement$)}))
|
|
9
9
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(i&&"then"in i){const t=()=>{};o=await i,t()}else o=i;if(!o)throw Error(`Constructor for "${n.S}#${e.L}" was not found`);o.isProxied||(n.W=o.watchers,wt(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){l(e,t)}e.o&=-9,e.o|=128,r(),bt(e.t,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=z(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const r=e.k,c=()=>lt(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,n,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async t=>{if(!(1&a.o)){const n=e(t);n.T&&(n.T.map((t=>t())),n.T=void 0),(null==n?void 0:n.t)?$t(n.t,t):(null==n?void 0:n.A)&&n.A.then((()=>$t(n.t,t)))}T.has(t)&&T.delete(t),t.shadowRoot&&T.has(t.shadowRoot)&&T.delete(t.shadowRoot)})(this))),a.raf((()=>{var t;const n=e(this),o=y.findIndex((t=>t===this));o>-1&&y.splice(o,1),(null==(t=null==n?void 0:n.P)?void 0:t.v)instanceof Node&&!n.P.v.isConnected&&delete n.P.v}))}componentOnReady(){return e(this).A}};r.H=t[0],f.includes(u)||p.get(u)||(c.push(u),p.define(u,wt(h,r,1)))}))})),c.length>0&&($&&(v.textContent+=r),v.textContent+=c.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const t=null!=(o=a.M)?o:S(u.document);null!=t&&v.setAttribute("nonce",t),h.insertBefore(v,m?m.nextSibling:h.firstChild)}b=!1,y.length?y.map((t=>t.connectedCallback())):a.jmp((()=>w=setTimeout(ht,30)))},St=(t,e)=>e,jt=(t,e,n)=>{n&&u.document&&n.map((([n,o,l])=>{const s=Ot(u.document,t,n),i=kt(e,l),r=Et(n);a.ael(s,o,i,r),(e.T=e.T||[]).push((()=>a.rel(s,o,i,r)))}))},kt=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.O=t.O||[]).push([e,n])}catch(e){l(e,t.$hostElement$)}},Ot=(t,e,n)=>4&n?t:8&n?u:16&n?t.body:e,Et=t=>({passive:!!(1&t),capture:!!(2&t)}),xt=t=>a.M=t;export{St as F,P as H,ft as a,gt as b,H as c,pt as f,F as g,C as h,f as p,n as r,xt as s}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* vviinn-widgets v2.227.0
|
|
3
|
+
* Copyright 2020 Mediaopt
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
* License: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.227.0/LICENSE
|
|
6
|
+
* Notice: https://cdn.jsdelivr.net/npm/vviinn-widgets@2.227.0/NOTICE
|
|
7
|
+
*/
|
|
8
|
+
const n=function(){};export{n as g}
|