vviinn-widgets 2.18.21 → 2.19.1
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/{index-cb410762.js → Campaign-a94a827a.js} +17 -1
- package/dist/cjs/cropper-handler_29.cjs.entry.js +1418 -0
- package/dist/cjs/{imageSearch.store-98824653.js → index-48c94264.js} +16016 -11171
- package/dist/cjs/{index-7f1325a7.js → index-a4becaff.js} +683 -303
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/{vviinn-carousel_3.cjs.entry.js → vviinn-carousel_2.cjs.entry.js} +150 -270
- package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +14 -8
- package/dist/cjs/vviinn-vpr-button.cjs.entry.js +12 -14
- package/dist/cjs/vviinn-widgets.cjs.js +10 -3
- package/dist/collection/Image/sizing.spec.js +66 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +2 -16
- package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +11 -7
- package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +0 -1
- package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +40 -37
- package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.js +73 -67
- package/dist/collection/components/image-search/search-filters/search-filters.css +4 -23
- package/dist/collection/components/image-search/search-filters/search-filters.js +97 -91
- package/dist/collection/components/vviinn-button/vviinn-button.js +34 -31
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +1 -2
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +161 -156
- package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +12 -14
- package/dist/collection/components/vviinn-error/vviinn-error.js +12 -12
- package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +35 -30
- package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +35 -30
- package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +129 -121
- package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +75 -75
- package/dist/collection/components/vviinn-icons/index.js +10 -27
- package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +120 -67
- package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +81 -69
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +0 -1
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +27 -28
- package/dist/collection/components/vviinn-modal/vviinn-modal.css +7 -36
- package/dist/collection/components/vviinn-modal/vviinn-modal.js +115 -93
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +12 -14
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +12 -14
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +12 -14
- package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +12 -17
- package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +1 -12
- package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +12 -9
- package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +107 -78
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +1 -11
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +11 -7
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +0 -1
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +12 -16
- package/dist/collection/components/vviinn-product-card/render-helpers.js +6 -14
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +425 -415
- package/dist/collection/components/vviinn-slider/arrow.js +1 -2
- package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +12 -9
- package/dist/collection/components/vviinn-slider/vviinn-slider.css +0 -1
- package/dist/collection/components/vviinn-slider/vviinn-slider.js +87 -82
- package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +12 -18
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +12 -64
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +371 -360
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +448 -444
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +545 -542
- package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +2 -0
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +368 -332
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +0 -5
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.e2e.js +26 -0
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +502 -425
- package/dist/collection/geometry/Clip.spec.js +16 -0
- package/dist/collection/geometry/Rectangle.spec.js +66 -0
- package/dist/collection/geometry/Sized.spec.js +16 -0
- package/dist/collection/interfaces/generated.js +0 -4
- package/dist/collection/network/ion/Form.spec.js +43 -0
- package/dist/esm/{index-b31d86ce.js → Campaign-4aa53f29.js} +15 -2
- package/dist/esm/cropper-handler_29.entry.js +1386 -0
- package/dist/esm/{index-590cb67e.js → index-48ef9564.js} +683 -304
- package/dist/esm/{imageSearch.store-9dde5360.js → index-976acf7e.js} +16124 -11292
- package/dist/esm/loader.js +4 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{vviinn-carousel_3.entry.js → vviinn-carousel_2.entry.js} +106 -225
- package/dist/esm/vviinn-recommendations-sidebar.entry.js +13 -7
- package/dist/esm/vviinn-vpr-button.entry.js +11 -13
- package/dist/esm/vviinn-widgets.js +7 -3
- package/dist/loader/index.d.ts +9 -0
- package/dist/loader/package.json +1 -0
- package/dist/types/Image/sizing.d.ts +4 -4
- package/dist/types/campaign/Campaign.d.ts +5 -5
- package/dist/types/campaign/VCSCampaignResponse.d.ts +1 -1
- package/dist/types/components/vviinn-carousel/vviinn-carousel.d.ts +2 -2
- package/dist/types/components/vviinn-image-selector/vviinn-image-selector.d.ts +4 -0
- package/dist/types/components/vviinn-modal/vviinn-modal.d.ts +2 -0
- package/dist/types/components/vviinn-overlayed-modal/vviinn-overlayed-modal.d.ts +2 -0
- package/dist/types/components/vviinn-product-card/render-helpers.d.ts +3 -3
- package/dist/types/components/vviinn-slider/arrow.d.ts +2 -2
- package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +2 -2
- package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +9 -4
- package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +8 -0
- package/dist/types/components.d.ts +154 -54
- package/dist/types/error.d.ts +1 -1
- package/dist/types/geometry/Point.d.ts +1 -1
- package/dist/types/geometry/Rectangle.d.ts +1 -1
- package/dist/types/geometry/Sized.d.ts +1 -1
- package/dist/types/interfaces/generated.d.ts +192 -371
- package/dist/types/network/ion/File.d.ts +2 -2
- package/dist/types/network/ion/Form.d.ts +5 -5
- package/dist/types/network/ion/Link.d.ts +1 -1
- package/dist/types/network/ion/ValueObject.d.ts +4 -4
- package/dist/types/network/utils.d.ts +3 -3
- package/dist/types/recommendation/events.d.ts +5 -5
- package/dist/types/recommendation/recommendation.d.ts +1 -1
- package/dist/types/searchSession/searchSession.d.ts +7 -7
- package/dist/types/slider/GridMode.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +98 -23
- package/dist/types/store/imageSearch.store.d.ts +1 -1
- package/dist/types/tracking/models.d.ts +2 -2
- package/dist/types/utils/event/Events.d.ts +1 -1
- package/dist/vviinn-widgets/p-312b0eb7.entry.js +1 -0
- package/dist/vviinn-widgets/p-414b2291.js +1 -0
- package/dist/vviinn-widgets/p-5b50c7e5.entry.js +1 -0
- package/dist/vviinn-widgets/p-8deaa5da.entry.js +1 -0
- package/dist/vviinn-widgets/p-c6209bc1.entry.js +1 -0
- package/{www/build/p-2f9ee951.js → dist/vviinn-widgets/p-d08ce429.js} +1 -1
- package/dist/vviinn-widgets/p-fa17e81f.js +2 -0
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +12 -12
- package/www/build/p-312b0eb7.entry.js +1 -0
- package/www/build/p-414b2291.js +1 -0
- package/www/build/p-5b50c7e5.entry.js +1 -0
- package/www/build/p-8deaa5da.entry.js +1 -0
- package/www/build/p-c6209bc1.entry.js +1 -0
- package/{dist/vviinn-widgets/p-2f9ee951.js → www/build/p-d08ce429.js} +1 -1
- package/www/build/p-d39b7d70.js +161 -0
- package/www/build/p-fa17e81f.js +2 -0
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/www/index.html +2 -2
- package/dist/cjs/Campaign-13258569.js +0 -18
- package/dist/cjs/Handler-176539c8.js +0 -331
- package/dist/cjs/cropper-handler.cjs.entry.js +0 -27
- package/dist/cjs/customized-slots-6e56c354.js +0 -54
- package/dist/cjs/highlight-box_22.cjs.entry.js +0 -770
- package/dist/cjs/index-a99edb90.js +0 -3235
- package/dist/cjs/vviinn-button.cjs.entry.js +0 -21
- package/dist/cjs/vviinn-error.cjs.entry.js +0 -19
- package/dist/cjs/vviinn-preloader.cjs.entry.js +0 -26
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +0 -65
- package/dist/cjs/vviinn-vps-widget.cjs.entry.js +0 -251
- package/dist/esm/Campaign-90ba7e06.js +0 -14
- package/dist/esm/Handler-f9b8735c.js +0 -309
- package/dist/esm/cropper-handler.entry.js +0 -23
- package/dist/esm/customized-slots-00afe247.js +0 -51
- package/dist/esm/highlight-box_22.entry.js +0 -745
- package/dist/esm/index-4d5b52ba.js +0 -3224
- package/dist/esm/vviinn-button.entry.js +0 -17
- package/dist/esm/vviinn-error.entry.js +0 -15
- package/dist/esm/vviinn-preloader.entry.js +0 -22
- package/dist/esm/vviinn-vps-button.entry.js +0 -61
- package/dist/esm/vviinn-vps-widget.entry.js +0 -247
- package/dist/vviinn-widgets/p-11f61564.js +0 -1
- package/dist/vviinn-widgets/p-12851e97.entry.js +0 -1
- package/dist/vviinn-widgets/p-18fd769b.js +0 -1
- package/dist/vviinn-widgets/p-339c6838.js +0 -1
- package/dist/vviinn-widgets/p-3b2c91c0.entry.js +0 -1
- package/dist/vviinn-widgets/p-45df9f28.entry.js +0 -1
- package/dist/vviinn-widgets/p-57ed5303.entry.js +0 -1
- package/dist/vviinn-widgets/p-69850e5b.js +0 -1
- package/dist/vviinn-widgets/p-7c2f762a.entry.js +0 -1
- package/dist/vviinn-widgets/p-7c3b7388.entry.js +0 -1
- package/dist/vviinn-widgets/p-85006f41.entry.js +0 -1
- package/dist/vviinn-widgets/p-8a3dd76d.entry.js +0 -1
- package/dist/vviinn-widgets/p-99e58be7.entry.js +0 -1
- package/dist/vviinn-widgets/p-a2b450b6.entry.js +0 -1
- package/dist/vviinn-widgets/p-bcc1ccf0.js +0 -1
- package/dist/vviinn-widgets/p-e6fee8d2.js +0 -1
- package/www/build/p-11f61564.js +0 -1
- package/www/build/p-12851e97.entry.js +0 -1
- package/www/build/p-18fd769b.js +0 -1
- package/www/build/p-339c6838.js +0 -1
- package/www/build/p-3b2c91c0.entry.js +0 -1
- package/www/build/p-45df9f28.entry.js +0 -1
- package/www/build/p-57ed5303.entry.js +0 -1
- package/www/build/p-69850e5b.js +0 -1
- package/www/build/p-7c2f762a.entry.js +0 -1
- package/www/build/p-7c3b7388.entry.js +0 -1
- package/www/build/p-85006f41.entry.js +0 -1
- package/www/build/p-8a3dd76d.entry.js +0 -1
- package/www/build/p-99e58be7.entry.js +0 -1
- package/www/build/p-9e2c131a.js +0 -125
- package/www/build/p-a2b450b6.entry.js +0 -1
- package/www/build/p-bcc1ccf0.js +0 -1
- package/www/build/p-e6fee8d2.js +0 -1
package/www/build/p-bcc1ccf0.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as n,f as r}from"./p-e6fee8d2.js";import{h as t,t as u,i as e,l as o,r as i,a as c,b as f,p as a,n as v,s as d,f as p,c as s,d as l,e as m,g as h,H as I,j as b,k as R,m as U}from"./p-11f61564.js";var O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function j(n,r,t){return n(t={path:r,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},t.exports),t.exports}var g=j((function(n,r){function t(n){return n}function u(n){return function(){return n}}function e(n,r,t,u,e,o,i,c,f){switch(arguments.length){case 1:return n;case 2:return function(){return r(n.apply(this,arguments))};case 3:return function(){return t(r(n.apply(this,arguments)))};case 4:return function(){return u(t(r(n.apply(this,arguments))))};case 5:return function(){return e(u(t(r(n.apply(this,arguments)))))};case 6:return function(){return o(e(u(t(r(n.apply(this,arguments))))))};case 7:return function(){return i(o(e(u(t(r(n.apply(this,arguments)))))))};case 8:return function(){return c(i(o(e(u(t(r(n.apply(this,arguments))))))))};case 9:return function(){return f(c(i(o(e(u(t(r(n.apply(this,arguments)))))))))}}}function o(){throw new Error("Called `absurd` function which should be uncallable")}Object.defineProperty(r,"__esModule",{value:!0}),r.getEndomorphismMonoid=r.not=r.SK=r.hole=r.pipe=r.untupled=r.tupled=r.absurd=r.decrement=r.increment=r.tuple=r.flow=r.flip=r.constVoid=r.constUndefined=r.constNull=r.constFalse=r.constTrue=r.constant=r.unsafeCoerce=r.identity=r.apply=r.getRing=r.getSemiring=r.getMonoid=r.getSemigroup=r.getBooleanAlgebra=void 0,r.getBooleanAlgebra=function(n){return function(){return{meet:function(r,t){return function(u){return n.meet(r(u),t(u))}},join:function(r,t){return function(u){return n.join(r(u),t(u))}},zero:function(){return n.zero},one:function(){return n.one},implies:function(r,t){return function(u){return n.implies(r(u),t(u))}},not:function(r){return function(t){return n.not(r(t))}}}}},r.getSemigroup=function(n){return function(){return{concat:function(r,t){return function(u){return n.concat(r(u),t(u))}}}}},r.getMonoid=function(n){var t=(0,r.getSemigroup)(n);return function(){return{concat:t().concat,empty:function(){return n.empty}}}},r.getSemiring=function(n){return{add:function(r,t){return function(u){return n.add(r(u),t(u))}},zero:function(){return n.zero},mul:function(r,t){return function(u){return n.mul(r(u),t(u))}},one:function(){return n.one}}},r.getRing=function(n){var t=(0,r.getSemiring)(n);return{add:t.add,mul:t.mul,one:t.one,zero:t.zero,sub:function(r,t){return function(u){return n.sub(r(u),t(u))}}}},r.apply=function(n){return function(r){return r(n)}},r.identity=t,r.unsafeCoerce=t,r.constant=u,r.constTrue=u(!0),r.constFalse=u(!1),r.constNull=u(null),r.constUndefined=u(void 0),r.constVoid=r.constUndefined,r.flip=function(n){return function(r,t){return n(t,r)}},r.flow=e,r.tuple=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n},r.increment=function(n){return n+1},r.decrement=function(n){return n-1},r.absurd=o,r.tupled=function(n){return function(r){return n.apply(void 0,r)}},r.untupled=function(n){return function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return n(r)}},r.pipe=function(n,r,t,u,e,o,i,c,f){switch(arguments.length){case 1:return n;case 2:return r(n);case 3:return t(r(n));case 4:return u(t(r(n)));case 5:return e(u(t(r(n))));case 6:return o(e(u(t(r(n)))));case 7:return i(o(e(u(t(r(n))))));case 8:return c(i(o(e(u(t(r(n)))))));case 9:return f(c(i(o(e(u(t(r(n))))))));default:for(var a=arguments[0],v=1;v<arguments.length;v++)a=arguments[v](a);return a}},r.hole=o,r.SK=function(n,r){return r},r.not=function(n){return function(r){return!n(r)}},r.getEndomorphismMonoid=function(){return{concat:function(n,r){return e(n,r)},empty:t}}})),M=j((function(n,r){var t=O&&O.__spreadArray||function(n,r,t){if(t||2===arguments.length)for(var u,e=0,o=r.length;e<o;e++)!u&&e in r||(u||(u=Array.prototype.slice.call(r,0,e)),u[e]=r[e]);return n.concat(u||Array.prototype.slice.call(r))};Object.defineProperty(r,"__esModule",{value:!0}),r.fromReadonlyNonEmptyArray=r.has=r.emptyRecord=r.emptyReadonlyArray=r.tail=r.head=r.isNonEmpty=r.singleton=r.right=r.left=r.isRight=r.isLeft=r.some=r.none=r.isSome=r.isNone=void 0,r.isNone=function(n){return"None"===n._tag},r.isSome=function(n){return"Some"===n._tag},r.none={_tag:"None"},r.some=function(n){return{_tag:"Some",value:n}},r.isLeft=function(n){return"Left"===n._tag},r.isRight=function(n){return"Right"===n._tag},r.left=function(n){return{_tag:"Left",left:n}},r.right=function(n){return{_tag:"Right",right:n}},r.singleton=function(n){return[n]},r.isNonEmpty=function(n){return n.length>0},r.head=function(n){return n[0]},r.tail=function(n){return n.slice(1)},r.emptyReadonlyArray=[],r.emptyRecord={},r.has=Object.prototype.hasOwnProperty,r.fromReadonlyNonEmptyArray=function(n){return t([n[0]],n.slice(1),!0)}})),w=j((function(n,r){var t=O&&O.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t);var e=Object.getOwnPropertyDescriptor(r,t);e&&!("get"in e?!r.__esModule:e.writable||e.configurable)||(e={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,u,e)}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=O&&O.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=O&&O.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.sequenceS=r.sequenceT=r.getApplySemigroup=r.apS=r.apSecond=r.apFirst=r.ap=void 0;var o=e(M);function i(n,r,t){return function(u){for(var e=Array(t.length+1),o=0;o<t.length;o++)e[o]=t[o];return e[t.length]=u,0===r?n.apply(null,e):i(n,r-1,e)}}r.ap=function(n,r){return function(t){return function(u){return n.ap(n.map(u,(function(n){return function(t){return r.ap(n,t)}})),t)}}},r.apFirst=function(n){return function(r){return function(t){return n.ap(n.map(t,(function(n){return function(){return n}})),r)}}},r.apSecond=function(n){return function(r){return function(t){return n.ap(n.map(t,(function(){return function(n){return n}})),r)}}},r.apS=function(n){return function(r,t){return function(u){return n.ap(n.map(u,(function(n){return function(t){var u;return Object.assign({},n,((u={})[r]=t,u))}})),t)}}},r.getApplySemigroup=function(n){return function(r){return{concat:function(t,u){return n.ap(n.map(t,(function(n){return function(t){return r.concat(n,t)}})),u)}}}};var c={1:function(n){return[n]},2:function(n){return function(r){return[n,r]}},3:function(n){return function(r){return function(t){return[n,r,t]}}},4:function(n){return function(r){return function(t){return function(u){return[n,r,t,u]}}}},5:function(n){return function(r){return function(t){return function(u){return function(e){return[n,r,t,u,e]}}}}}};function f(n){return o.has.call(c,n)||(c[n]=i(g.tuple,n-1,[])),c[n]}r.sequenceT=function(n){return function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var u=r.length,e=f(u),o=n.map(r[0],e),i=1;i<u;i++)o=n.ap(o,r[i]);return o}},r.sequenceS=function(n){return function(r){for(var t=Object.keys(r),u=t.length,e=function(n){var r=n.length;switch(r){case 1:return function(r){var t;return(t={})[n[0]]=r,t};case 2:return function(r){return function(t){var u;return(u={})[n[0]]=r,u[n[1]]=t,u}};case 3:return function(r){return function(t){return function(u){var e;return(e={})[n[0]]=r,e[n[1]]=t,e[n[2]]=u,e}}};case 4:return function(r){return function(t){return function(u){return function(e){var o;return(o={})[n[0]]=r,o[n[1]]=t,o[n[2]]=u,o[n[3]]=e,o}}}};case 5:return function(r){return function(t){return function(u){return function(e){return function(o){var i;return(i={})[n[0]]=r,i[n[1]]=t,i[n[2]]=u,i[n[3]]=e,i[n[4]]=o,i}}}}};default:return i((function(){for(var t=[],u=0;u<arguments.length;u++)t[u]=arguments[u];for(var e={},o=0;o<r;o++)e[n[o]]=t[o];return e}),r-1,[])}}(t),o=n.map(r[t[0]],e),c=1;c<u;c++)o=n.ap(o,r[t[c]]);return o}}})),y=j((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.bind=r.chainFirst=void 0,r.chainFirst=function(n){return function(r){return function(t){return n.chain(t,(function(t){return n.map(r(t),(function(){return t}))}))}}},r.bind=function(n){return function(r,t){return function(u){return n.chain(u,(function(u){return n.map(t(u),(function(n){var t;return Object.assign({},u,((t={})[r]=n,t))}))}))}}}})),x=j((function(n,r){var t=O&&O.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t);var e=Object.getOwnPropertyDescriptor(r,t);e&&!("get"in e?!r.__esModule:e.writable||e.configurable)||(e={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,u,e)}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=O&&O.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=O&&O.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.filterOrElse=r.chainFirstEitherK=r.chainEitherK=r.fromEitherK=r.chainOptionK=r.fromOptionK=r.fromPredicate=r.fromOption=void 0;var o=e(M);function i(n){return function(r){return function(t){return n.fromEither(o.isNone(t)?o.left(r()):o.right(t.value))}}}function c(n){var r=i(n);return function(n){var t=r(n);return function(n){return(0,g.flow)(n,t)}}}function f(n){return function(r){return(0,g.flow)(r,n.fromEither)}}r.fromOption=i,r.fromPredicate=function(n){return function(r,t){return function(u){return n.fromEither(r(u)?o.right(u):o.left(t(u)))}}},r.fromOptionK=c,r.chainOptionK=function(n,r){var t=c(n);return function(n){var u=t(n);return function(n){return function(t){return r.chain(t,u(n))}}}},r.fromEitherK=f,r.chainEitherK=function(n,r){var t=f(n);return function(n){return function(u){return r.chain(u,t(n))}}},r.chainFirstEitherK=function(n,r){return(0,g.flow)(f(n),(0,y.chainFirst)(r))},r.filterOrElse=function(n,r){return function(t,u){return function(e){return r.chain(e,(function(r){return n.fromEither(t(r)?o.right(r):o.left(u(r)))}))}}}})),_=j((function(n,r){function t(n,r){return function(t){return function(u){return n.map(u,(function(n){return r.map(n,t)}))}}}Object.defineProperty(r,"__esModule",{value:!0}),r.getFunctorComposition=r.bindTo=r.flap=r.map=void 0,r.map=t,r.flap=function(n){return function(r){return function(t){return n.map(t,(function(n){return n(r)}))}}},r.bindTo=function(n){return function(r){return function(t){return n.map(t,(function(n){var t;return(t={})[r]=n,t}))}}},r.getFunctorComposition=function(n,r){var u=t(n,r);return{map:function(n,r){return(0,g.pipe)(n,u(r))}}}})),W=j((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.eqDate=r.eqNumber=r.eqString=r.eqBoolean=r.eq=r.strictEqual=r.getStructEq=r.getTupleEq=r.Contravariant=r.getMonoid=r.getSemigroup=r.eqStrict=r.URI=r.contramap=r.tuple=r.struct=r.fromEquals=void 0,r.fromEquals=function(n){return{equals:function(r,t){return r===t||n(r,t)}}},r.struct=function(n){return(0,r.fromEquals)((function(r,t){for(var u in n)if(!n[u].equals(r[u],t[u]))return!1;return!0}))},r.tuple=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return(0,r.fromEquals)((function(r,t){return n.every((function(n,u){return n.equals(r[u],t[u])}))}))},r.contramap=function(n){return function(t){return(0,r.fromEquals)((function(r,u){return t.equals(n(r),n(u))}))}},r.URI="Eq",r.eqStrict={equals:function(n,r){return n===r}};var t={equals:function(){return!0}};r.getSemigroup=function(){return{concat:function(n,t){return(0,r.fromEquals)((function(r,u){return n.equals(r,u)&&t.equals(r,u)}))}}},r.getMonoid=function(){return{concat:(0,r.getSemigroup)().concat,empty:t}},r.Contravariant={URI:r.URI,contramap:function(n,t){return(0,g.pipe)(n,(0,r.contramap)(t))}},r.getTupleEq=r.tuple,r.getStructEq=r.struct,r.strictEqual=r.eqStrict.equals,r.eq=r.Contravariant,r.eqBoolean=r.eqStrict,r.eqString=r.eqStrict,r.eqNumber=r.eqStrict,r.eqDate={equals:function(n,r){return n.valueOf()===r.valueOf()}}})),E=j((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ordDate=r.ordNumber=r.ordString=r.ordBoolean=r.ord=r.getDualOrd=r.getTupleOrd=r.between=r.clamp=r.max=r.min=r.geq=r.leq=r.gt=r.lt=r.equals=r.trivial=r.Contravariant=r.getMonoid=r.getSemigroup=r.URI=r.contramap=r.reverse=r.tuple=r.fromCompare=r.equalsDefault=void 0,r.equalsDefault=function(n){return function(r,t){return r===t||0===n(r,t)}},r.fromCompare=function(n){return{equals:(0,r.equalsDefault)(n),compare:function(r,t){return r===t?0:n(r,t)}}},r.tuple=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return(0,r.fromCompare)((function(r,t){for(var u=0;u<n.length-1;u++){var e=n[u].compare(r[u],t[u]);if(0!==e)return e}return n[u].compare(r[u],t[u])}))},r.reverse=function(n){return(0,r.fromCompare)((function(r,t){return n.compare(t,r)}))},r.contramap=function(n){return function(t){return(0,r.fromCompare)((function(r,u){return t.compare(n(r),n(u))}))}},r.URI="Ord",r.getSemigroup=function(){return{concat:function(n,t){return(0,r.fromCompare)((function(r,u){var e=n.compare(r,u);return 0!==e?e:t.compare(r,u)}))}}},r.getMonoid=function(){return{concat:(0,r.getSemigroup)().concat,empty:(0,r.fromCompare)((function(){return 0}))}},r.Contravariant={URI:r.URI,contramap:function(n,t){return(0,g.pipe)(n,(0,r.contramap)(t))}},r.trivial={equals:g.constTrue,compare:(0,g.constant)(0)},r.equals=function(n){return function(r){return function(t){return t===r||0===n.compare(t,r)}}},r.lt=function(n){return function(r,t){return-1===n.compare(r,t)}},r.gt=function(n){return function(r,t){return 1===n.compare(r,t)}},r.leq=function(n){return function(r,t){return 1!==n.compare(r,t)}},r.geq=function(n){return function(r,t){return-1!==n.compare(r,t)}},r.min=function(n){return function(r,t){return r===t||n.compare(r,t)<1?r:t}},r.max=function(n){return function(r,t){return r===t||n.compare(r,t)>-1?r:t}},r.clamp=function(n){var t=(0,r.min)(n),u=(0,r.max)(n);return function(n,r){return function(e){return u(t(e,r),n)}}},r.between=function(n){var t=(0,r.lt)(n),u=(0,r.gt)(n);return function(n,r){return function(e){return!t(e,n)&&!u(e,r)}}},r.getTupleOrd=r.tuple,r.getDualOrd=r.reverse,r.ord=r.Contravariant;var t={equals:W.eqStrict.equals,compare:function(n,r){return n<r?-1:n>r?1:0}};r.ordBoolean=t,r.ordString=t,r.ordNumber=t,r.ordDate=(0,g.pipe)(r.ordNumber,(0,r.contramap)((function(n){return n.valueOf()})))})),k=j((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.concatAll=r.endo=r.filterSecond=r.filterFirst=r.reverse=void 0,r.reverse=function(n){return{concat:function(r,t){return n.concat(t,r)}}},r.filterFirst=function(n){return function(r){return{concat:function(t,u){return n(t)?r.concat(t,u):u}}}},r.filterSecond=function(n){return function(r){return{concat:function(t,u){return n(u)?r.concat(t,u):t}}}},r.endo=function(n){return function(r){return{concat:function(t,u){return r.concat(n(t),n(u))}}}},r.concatAll=function(n){return function(r){return function(t){return t.reduce((function(r,t){return n.concat(r,t)}),r)}}}})),q=j((function(n,r){var t=O&&O.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t);var e=Object.getOwnPropertyDescriptor(r,t);e&&!("get"in e?!r.__esModule:e.writable||e.configurable)||(e={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,u,e)}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=O&&O.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=O&&O.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.semigroupProduct=r.semigroupSum=r.semigroupString=r.getFunctionSemigroup=r.semigroupAny=r.semigroupAll=r.fold=r.getIntercalateSemigroup=r.getMeetSemigroup=r.getJoinSemigroup=r.getDualSemigroup=r.getStructSemigroup=r.getTupleSemigroup=r.getFirstSemigroup=r.getLastSemigroup=r.getObjectSemigroup=r.semigroupVoid=r.concatAll=r.last=r.first=r.intercalate=r.tuple=r.struct=r.reverse=r.constant=r.max=r.min=void 0;var o=e(M),i=e(k),c=e(E);r.min=function(n){return{concat:c.min(n)}},r.max=function(n){return{concat:c.max(n)}},r.constant=function(n){return{concat:function(){return n}}},r.reverse=i.reverse,r.struct=function(n){return{concat:function(r,t){var u={};for(var e in n)o.has.call(n,e)&&(u[e]=n[e].concat(r[e],t[e]));return u}}},r.tuple=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return{concat:function(r,t){return n.map((function(n,u){return n.concat(r[u],t[u])}))}}},r.intercalate=function(n){return function(r){return{concat:function(t,u){return r.concat(t,r.concat(n,u))}}}},r.first=function(){return{concat:g.identity}},r.last=function(){return{concat:function(n,r){return r}}},r.concatAll=i.concatAll,r.semigroupVoid=(0,r.constant)(void 0),r.getObjectSemigroup=function(){return{concat:function(n,r){return Object.assign({},n,r)}}},r.getLastSemigroup=r.last,r.getFirstSemigroup=r.first,r.getTupleSemigroup=r.tuple,r.getStructSemigroup=r.struct,r.getDualSemigroup=r.reverse,r.getJoinSemigroup=r.max,r.getMeetSemigroup=r.min,r.getIntercalateSemigroup=r.intercalate,r.fold=function(n){var t=(0,r.concatAll)(n);return function(n,r){return void 0===r?t(n):t(n)(r)}},r.semigroupAll={concat:function(n,r){return n&&r}},r.semigroupAny={concat:function(n,r){return n||r}},r.getFunctionSemigroup=g.getSemigroup,r.semigroupString={concat:function(n,r){return n+r}},r.semigroupSum={concat:function(n,r){return n+r}},r.semigroupProduct={concat:function(n,r){return n*r}}})),P=j((function(n,r){var t=O&&O.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t);var e=Object.getOwnPropertyDescriptor(r,t);e&&!("get"in e?!r.__esModule:e.writable||e.configurable)||(e={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,u,e)}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=O&&O.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=O&&O.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r},o=O&&O.__spreadArray||function(n,r,t){if(t||2===arguments.length)for(var u,e=0,o=r.length;e<o;e++)!u&&e in r||(u||(u=Array.prototype.slice.call(r,0,e)),u[e]=r[e]);return n.concat(u||Array.prototype.slice.call(r))};Object.defineProperty(r,"__esModule",{value:!0}),r.reduceRight=r.foldMap=r.reduce=r.mapWithIndex=r.map=r.flatten=r.duplicate=r.extend=r.chain=r.ap=r.alt=r.altW=r.of=r.chunksOf=r.splitAt=r.chop=r.chainWithIndex=r.intersperse=r.prependAll=r.unzip=r.zip=r.zipWith=r.modifyAt=r.updateAt=r.sort=r.groupBy=r.group=r.reverse=r.concat=r.concatW=r.fromArray=r.unappend=r.unprepend=r.range=r.replicate=r.makeBy=r.fromReadonlyArray=r.rotate=r.union=r.sortBy=r.uniq=r.unsafeUpdateAt=r.unsafeInsertAt=r.append=r.appendW=r.prepend=r.prependW=r.isOutOfBound=r.isNonEmpty=r.empty=void 0,r.filterWithIndex=r.filter=r.groupSort=r.intercalate=r.updateLast=r.modifyLast=r.updateHead=r.modifyHead=r.matchRight=r.matchLeft=r.concatAll=r.max=r.min=r.init=r.last=r.tail=r.head=r.apS=r.bind=r.bindTo=r.Do=r.Comonad=r.Alt=r.TraversableWithIndex=r.Traversable=r.FoldableWithIndex=r.Foldable=r.Monad=r.chainFirst=r.Chain=r.Applicative=r.apSecond=r.apFirst=r.Apply=r.FunctorWithIndex=r.Pointed=r.flap=r.Functor=r.getUnionSemigroup=r.getEq=r.getSemigroup=r.getShow=r.URI=r.extract=r.traverseWithIndex=r.sequence=r.traverse=r.reduceRightWithIndex=r.foldMapWithIndex=r.reduceWithIndex=void 0,r.readonlyNonEmptyArray=r.fold=r.prependToAll=r.insertAt=r.snoc=r.cons=r.unsnoc=r.uncons=void 0;var i=e(M),c=e(q);function f(n){return function(r){return r.concat(n)}}function a(n,r){return r?n.concat(r):function(r){return r.concat(n)}}function v(n){return function(t){var u=t.length;if(0===u)return r.empty;for(var e=[],o=t[0],i=[o],c=1;c<u;c++){var f=t[c];n.equals(f,o)?i.push(f):(e.push(i),i=[o=f])}return e.push(i),e}}r.empty=i.emptyReadonlyArray,r.isNonEmpty=i.isNonEmpty,r.isOutOfBound=function(n,r){return n<0||n>=r.length},r.prependW=function(n){return function(r){return o([n],r,!0)}},r.prepend=r.prependW,r.appendW=function(n){return function(r){return o(o([],r,!0),[n],!1)}},r.append=r.appendW,r.unsafeInsertAt=function(n,t,u){if((0,r.isNonEmpty)(u)){var e=i.fromReadonlyNonEmptyArray(u);return e.splice(n,0,t),e}return[t]},r.unsafeUpdateAt=function(n,r,t){if(t[n]===r)return t;var u=i.fromReadonlyNonEmptyArray(t);return u[n]=r,u},r.uniq=function(n){return function(t){if(1===t.length)return t;for(var u=[(0,r.head)(t)],e=function(r){u.every((function(t){return!n.equals(t,r)}))&&u.push(r)},o=0,i=(0,r.tail)(t);o<i.length;o++)e(i[o]);return u}},r.sortBy=function(n){if((0,r.isNonEmpty)(n)){var t=(0,E.getMonoid)();return(0,r.sort)(n.reduce(t.concat,t.empty))}return g.identity},r.union=function(n){var t=(0,r.uniq)(n);return function(n){return function(r){return t((0,g.pipe)(r,a(n)))}}},r.rotate=function(n){return function(t){var u=t.length,e=Math.round(n)%u;if((0,r.isOutOfBound)(Math.abs(e),t)||0===e)return t;if(e<0){var o=(0,r.splitAt)(-e)(t);return(0,g.pipe)(o[1],a(o[0]))}return(0,r.rotate)(e-u)(t)}},r.fromReadonlyArray=function(n){return(0,r.isNonEmpty)(n)?i.some(n):i.none},r.makeBy=function(n){return function(r){for(var t=Math.max(0,Math.floor(r)),u=[n(0)],e=1;e<t;e++)u.push(n(e));return u}},r.replicate=function(n){return(0,r.makeBy)((function(){return n}))},r.range=function(n,t){return n<=t?(0,r.makeBy)((function(r){return n+r}))(t-n+1):[n]},r.unprepend=function(n){return[(0,r.head)(n),(0,r.tail)(n)]},r.unappend=function(n){return[(0,r.init)(n),(0,r.last)(n)]},r.fromArray=function(n){return(0,r.fromReadonlyArray)(n.slice())},r.concatW=f,r.concat=a,r.reverse=function(n){return 1===n.length?n:o([(0,r.last)(n)],n.slice(0,-1).reverse(),!0)},r.group=v,r.groupBy=function(n){return function(r){for(var t={},u=0,e=r;u<e.length;u++){var o=e[u],c=n(o);i.has.call(t,c)?t[c].push(o):t[c]=[o]}return t}},r.sort=function(n){return function(r){return 1===r.length?r:r.slice().sort(n.compare)}},r.updateAt=function(n,t){return(0,r.modifyAt)(n,(function(){return t}))},r.modifyAt=function(n,t){return function(u){return(0,r.isOutOfBound)(n,u)?i.none:i.some((0,r.unsafeUpdateAt)(n,t(u[n]),u))}},r.zipWith=function(n,r,t){for(var u=[t(n[0],r[0])],e=Math.min(n.length,r.length),o=1;o<e;o++)u[o]=t(n[o],r[o]);return u},r.zip=function n(t,u){return void 0===u?function(r){return n(r,t)}:(0,r.zipWith)(t,u,(function(n,r){return[n,r]}))},r.unzip=function(n){for(var r=[n[0][0]],t=[n[0][1]],u=1;u<n.length;u++)r[u]=n[u][0],t[u]=n[u][1];return[r,t]},r.prependAll=function(n){return function(r){for(var t=[n,r[0]],u=1;u<r.length;u++)t.push(n,r[u]);return t}},r.intersperse=function(n){return function(t){var u=(0,r.tail)(t);return(0,r.isNonEmpty)(u)?(0,g.pipe)(u,(0,r.prependAll)(n),(0,r.prepend)((0,r.head)(t))):t}},r.chainWithIndex=function(n){return function(t){for(var u=i.fromReadonlyNonEmptyArray(n(0,(0,r.head)(t))),e=1;e<t.length;e++)u.push.apply(u,n(e,t[e]));return u}},r.chop=function(n){return function(t){for(var u=n(t),e=[u[0]],o=u[1];(0,r.isNonEmpty)(o);){var i=n(o),c=i[1];e.push(i[0]),o=c}return e}},r.splitAt=function(n){return function(t){var u=Math.max(1,n);return u>=t.length?[t,r.empty]:[(0,g.pipe)(t.slice(1,u),(0,r.prepend)((0,r.head)(t))),t.slice(u)]}},r.chunksOf=function(n){return(0,r.chop)((0,r.splitAt)(n))};var d=function(n,t){return(0,g.pipe)(n,(0,r.map)(t))},p=function(n,t){return(0,g.pipe)(n,(0,r.mapWithIndex)(t))},s=function(n,t){return(0,g.pipe)(n,(0,r.ap)(t))},l=function(n,t){return(0,g.pipe)(n,(0,r.chain)(t))},m=function(n,t){return(0,g.pipe)(n,(0,r.extend)(t))},h=function(n,t,u){return(0,g.pipe)(n,(0,r.reduce)(t,u))},I=function(n){var t=(0,r.foldMap)(n);return function(n,r){return(0,g.pipe)(n,t(r))}},b=function(n,t,u){return(0,g.pipe)(n,(0,r.reduceRight)(t,u))},R=function(n){var t=(0,r.traverse)(n);return function(n,r){return(0,g.pipe)(n,t(r))}},U=function(n,t){return(0,g.pipe)(n,(0,r.alt)(t))},j=function(n,t,u){return(0,g.pipe)(n,(0,r.reduceWithIndex)(t,u))},x=function(n){var t=(0,r.foldMapWithIndex)(n);return function(n,r){return(0,g.pipe)(n,t(r))}},k=function(n,t,u){return(0,g.pipe)(n,(0,r.reduceRightWithIndex)(t,u))},P=function(n){var t=(0,r.traverseWithIndex)(n);return function(n,r){return(0,g.pipe)(n,t(r))}};r.of=i.singleton,r.altW=function(n){return function(r){return(0,g.pipe)(r,f(n()))}},r.alt=r.altW,r.ap=function(n){return(0,r.chain)((function(t){return(0,g.pipe)(n,(0,r.map)(t))}))},r.chain=function(n){return(0,r.chainWithIndex)((function(r,t){return n(t)}))},r.extend=function(n){return function(t){for(var u=(0,r.tail)(t),e=[n(t)];(0,r.isNonEmpty)(u);)e.push(n(u)),u=(0,r.tail)(u);return e}},r.duplicate=(0,r.extend)(g.identity),r.flatten=(0,r.chain)(g.identity),r.map=function(n){return(0,r.mapWithIndex)((function(r,t){return n(t)}))},r.mapWithIndex=function(n){return function(t){for(var u=[n(0,(0,r.head)(t))],e=1;e<t.length;e++)u.push(n(e,t[e]));return u}},r.reduce=function(n,t){return(0,r.reduceWithIndex)(n,(function(n,r,u){return t(r,u)}))},r.foldMap=function(n){return function(r){return function(t){return t.slice(1).reduce((function(t,u){return n.concat(t,r(u))}),r(t[0]))}}},r.reduceRight=function(n,t){return(0,r.reduceRightWithIndex)(n,(function(n,r,u){return t(r,u)}))},r.reduceWithIndex=function(n,r){return function(t){return t.reduce((function(n,t,u){return r(u,n,t)}),n)}},r.foldMapWithIndex=function(n){return function(r){return function(t){return t.slice(1).reduce((function(t,u,e){return n.concat(t,r(e+1,u))}),r(0,t[0]))}}},r.reduceRightWithIndex=function(n,r){return function(t){return t.reduceRight((function(n,t,u){return r(u,t,n)}),n)}},r.traverse=function(n){var t=(0,r.traverseWithIndex)(n);return function(n){return t((function(r,t){return n(t)}))}},r.sequence=function(n){return(0,r.traverseWithIndex)(n)(g.SK)},r.traverseWithIndex=function(n){return function(t){return function(u){for(var e=n.map(t(0,(0,r.head)(u)),r.of),o=1;o<u.length;o++)e=n.ap(n.map(e,(function(n){return function(t){return(0,g.pipe)(n,(0,r.append)(t))}})),t(o,u[o]));return e}}},r.extract=i.head,r.URI="ReadonlyNonEmptyArray",r.getShow=function(n){return{show:function(r){return"[".concat(r.map(n.show).join(", "),"]")}}},r.getSemigroup=function(){return{concat:a}},r.getEq=function(n){return(0,W.fromEquals)((function(r,t){return r.length===t.length&&r.every((function(r,u){return n.equals(r,t[u])}))}))},r.getUnionSemigroup=function(n){var t=(0,r.union)(n);return{concat:function(n,r){return t(r)(n)}}},r.Functor={URI:r.URI,map:d},r.flap=(0,_.flap)(r.Functor),r.Pointed={URI:r.URI,of:r.of},r.FunctorWithIndex={URI:r.URI,map:d,mapWithIndex:p},r.Apply={URI:r.URI,map:d,ap:s},r.apFirst=(0,w.apFirst)(r.Apply),r.apSecond=(0,w.apSecond)(r.Apply),r.Applicative={URI:r.URI,map:d,ap:s,of:r.of},r.Chain={URI:r.URI,map:d,ap:s,chain:l},r.chainFirst=(0,y.chainFirst)(r.Chain),r.Monad={URI:r.URI,map:d,ap:s,of:r.of,chain:l},r.Foldable={URI:r.URI,reduce:h,foldMap:I,reduceRight:b},r.FoldableWithIndex={URI:r.URI,reduce:h,foldMap:I,reduceRight:b,reduceWithIndex:j,foldMapWithIndex:x,reduceRightWithIndex:k},r.Traversable={URI:r.URI,map:d,reduce:h,foldMap:I,reduceRight:b,traverse:R,sequence:r.sequence},r.TraversableWithIndex={URI:r.URI,map:d,mapWithIndex:p,reduce:h,foldMap:I,reduceRight:b,traverse:R,sequence:r.sequence,reduceWithIndex:j,foldMapWithIndex:x,reduceRightWithIndex:k,traverseWithIndex:P},r.Alt={URI:r.URI,map:d,alt:U},r.Comonad={URI:r.URI,map:d,extend:m,extract:r.extract},r.Do=(0,r.of)(i.emptyRecord),r.bindTo=(0,_.bindTo)(r.Functor),r.bind=(0,y.bind)(r.Chain),r.apS=(0,w.apS)(r.Apply),r.head=r.extract,r.tail=i.tail,r.last=function(n){return n[n.length-1]},r.init=function(n){return n.slice(0,-1)},r.min=function(n){var r=c.min(n);return function(n){return n.reduce(r.concat)}},r.max=function(n){var r=c.max(n);return function(n){return n.reduce(r.concat)}},r.concatAll=function(n){return function(r){return r.reduce(n.concat)}},r.matchLeft=function(n){return function(t){return n((0,r.head)(t),(0,r.tail)(t))}},r.matchRight=function(n){return function(t){return n((0,r.init)(t),(0,r.last)(t))}},r.modifyHead=function(n){return function(t){return o([n((0,r.head)(t))],(0,r.tail)(t),!0)}},r.updateHead=function(n){return(0,r.modifyHead)((function(){return n}))},r.modifyLast=function(n){return function(t){return(0,g.pipe)((0,r.init)(t),(0,r.append)(n((0,r.last)(t))))}},r.updateLast=function(n){return(0,r.modifyLast)((function(){return n}))},r.intercalate=function(n){var t=(0,r.concatAll)(n);return function(n){return(0,g.flow)((0,r.intersperse)(n),t)}},r.groupSort=function(n){var t=(0,r.sort)(n),u=v(n);return function(n){return(0,r.isNonEmpty)(n)?u(t(n)):r.empty}},r.filter=function(n){return(0,r.filterWithIndex)((function(r,t){return n(t)}))},r.filterWithIndex=function(n){return function(t){return(0,r.fromReadonlyArray)(t.filter((function(r,t){return n(t,r)})))}},r.uncons=r.unprepend,r.unsnoc=r.unappend,r.cons=function(n,t){return void 0===t?(0,r.prepend)(n):(0,g.pipe)(t,(0,r.prepend)(n))},r.snoc=function(n,r){return(0,g.pipe)(n,a([r]))},r.insertAt=function(n,t){return function(u){return n<0||n>u.length?i.none:i.some((0,r.unsafeInsertAt)(n,t,u))}},r.prependToAll=r.prependAll,r.fold=r.concatAll,r.readonlyNonEmptyArray={URI:r.URI,of:r.of,map:d,mapWithIndex:p,ap:s,chain:l,extend:m,extract:r.extract,reduce:h,foldMap:I,reduceRight:b,traverse:R,sequence:r.sequence,reduceWithIndex:j,foldMapWithIndex:x,reduceRightWithIndex:k,traverseWithIndex:P,alt:U}})),T=j((function(n,r){var t=O&&O.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t);var e=Object.getOwnPropertyDescriptor(r,t);e&&!("get"in e?!r.__esModule:e.writable||e.configurable)||(e={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,u,e)}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=O&&O.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=O&&O.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r},o=O&&O.__spreadArray||function(n,r,t){if(t||2===arguments.length)for(var u,e=0,o=r.length;e<o;e++)!u&&e in r||(u||(u=Array.prototype.slice.call(r,0,e)),u[e]=r[e]);return n.concat(u||Array.prototype.slice.call(r))};Object.defineProperty(r,"__esModule",{value:!0}),r.mapWithIndex=r.map=r.flatten=r.duplicate=r.extend=r.chain=r.ap=r.alt=r.altW=r.chunksOf=r.splitAt=r.chop=r.chainWithIndex=r.foldMap=r.foldMapWithIndex=r.intersperse=r.prependAll=r.unzip=r.zip=r.zipWith=r.of=r.copy=r.modifyAt=r.updateAt=r.insertAt=r.sort=r.groupBy=r.group=r.reverse=r.concat=r.concatW=r.unappend=r.unprepend=r.range=r.replicate=r.makeBy=r.fromArray=r.fromReadonlyNonEmptyArray=r.rotate=r.union=r.sortBy=r.uniq=r.unsafeUpdateAt=r.unsafeInsertAt=r.append=r.appendW=r.prepend=r.prependW=r.isOutOfBound=r.isNonEmpty=void 0,r.filter=r.groupSort=r.intercalate=r.updateLast=r.modifyLast=r.updateHead=r.modifyHead=r.matchRight=r.matchLeft=r.concatAll=r.max=r.min=r.init=r.last=r.tail=r.head=r.apS=r.bind=r.bindTo=r.Do=r.Comonad=r.Alt=r.TraversableWithIndex=r.Traversable=r.FoldableWithIndex=r.Foldable=r.Monad=r.chainFirst=r.Chain=r.Applicative=r.apSecond=r.apFirst=r.Apply=r.FunctorWithIndex=r.Pointed=r.flap=r.Functor=r.getUnionSemigroup=r.getEq=r.getSemigroup=r.getShow=r.URI=r.extract=r.traverseWithIndex=r.sequence=r.traverse=r.reduceRightWithIndex=r.reduceRight=r.reduceWithIndex=r.reduce=void 0,r.nonEmptyArray=r.fold=r.prependToAll=r.snoc=r.cons=r.unsnoc=r.uncons=r.filterWithIndex=void 0;var i=e(M),c=e(P);function f(n){return function(r){return r.concat(n)}}function a(n,r){return r?n.concat(r):function(r){return r.concat(n)}}function v(n){return function(r){var t=r.length;if(0===t)return[];for(var u=[],e=r[0],o=[e],i=1;i<t;i++){var c=r[i];n.equals(c,e)?o.push(c):(u.push(o),o=[e=c])}return u.push(o),u}}r.isNonEmpty=function(n){return n.length>0},r.isOutOfBound=function(n,r){return n<0||n>=r.length},r.prependW=function(n){return function(r){return o([n],r,!0)}},r.prepend=r.prependW,r.appendW=function(n){return function(r){return o(o([],r,!0),[n],!1)}},r.append=r.appendW,r.unsafeInsertAt=function(n,t,u){if((0,r.isNonEmpty)(u)){var e=(0,r.fromReadonlyNonEmptyArray)(u);return e.splice(n,0,t),e}return[t]},r.unsafeUpdateAt=function(n,t,u){var e=(0,r.fromReadonlyNonEmptyArray)(u);return e[n]=t,e},r.uniq=function(n){return function(t){if(1===t.length)return(0,r.copy)(t);for(var u=[(0,r.head)(t)],e=function(r){u.every((function(t){return!n.equals(t,r)}))&&u.push(r)},o=0,i=(0,r.tail)(t);o<i.length;o++)e(i[o]);return u}},r.sortBy=function(n){if((0,r.isNonEmpty)(n)){var t=(0,E.getMonoid)();return(0,r.sort)(n.reduce(t.concat,t.empty))}return r.copy},r.union=function(n){var t=(0,r.uniq)(n);return function(n){return function(r){return t((0,g.pipe)(r,a(n)))}}},r.rotate=function(n){return function(t){var u=t.length,e=Math.round(n)%u;if((0,r.isOutOfBound)(Math.abs(e),t)||0===e)return(0,r.copy)(t);if(e<0){var o=(0,r.splitAt)(-e)(t);return(0,g.pipe)(o[1],a(o[0]))}return(0,r.rotate)(e-u)(t)}},r.fromReadonlyNonEmptyArray=i.fromReadonlyNonEmptyArray,r.fromArray=function(n){return(0,r.isNonEmpty)(n)?i.some(n):i.none},r.makeBy=function(n){return function(r){for(var t=Math.max(0,Math.floor(r)),u=[n(0)],e=1;e<t;e++)u.push(n(e));return u}},r.replicate=function(n){return(0,r.makeBy)((function(){return n}))},r.range=function(n,t){return n<=t?(0,r.makeBy)((function(r){return n+r}))(t-n+1):[n]},r.unprepend=function(n){return[(0,r.head)(n),(0,r.tail)(n)]},r.unappend=function(n){return[(0,r.init)(n),(0,r.last)(n)]},r.concatW=f,r.concat=a,r.reverse=function(n){return o([(0,r.last)(n)],n.slice(0,-1).reverse(),!0)},r.group=v,r.groupBy=function(n){return function(r){for(var t={},u=0,e=r;u<e.length;u++){var o=e[u],c=n(o);i.has.call(t,c)?t[c].push(o):t[c]=[o]}return t}},r.sort=function(n){return function(r){return r.slice().sort(n.compare)}},r.insertAt=function(n,t){return function(u){return n<0||n>u.length?i.none:i.some((0,r.unsafeInsertAt)(n,t,u))}},r.updateAt=function(n,t){return(0,r.modifyAt)(n,(function(){return t}))},r.modifyAt=function(n,t){return function(u){return(0,r.isOutOfBound)(n,u)?i.none:i.some((0,r.unsafeUpdateAt)(n,t(u[n]),u))}},r.copy=r.fromReadonlyNonEmptyArray,r.of=function(n){return[n]},r.zipWith=function(n,r,t){for(var u=[t(n[0],r[0])],e=Math.min(n.length,r.length),o=1;o<e;o++)u[o]=t(n[o],r[o]);return u},r.zip=function n(t,u){return void 0===u?function(r){return n(r,t)}:(0,r.zipWith)(t,u,(function(n,r){return[n,r]}))},r.unzip=function(n){for(var r=[n[0][0]],t=[n[0][1]],u=1;u<n.length;u++)r[u]=n[u][0],t[u]=n[u][1];return[r,t]},r.prependAll=function(n){return function(r){for(var t=[n,r[0]],u=1;u<r.length;u++)t.push(n,r[u]);return t}},r.intersperse=function(n){return function(t){var u=(0,r.tail)(t);return(0,r.isNonEmpty)(u)?(0,g.pipe)(u,(0,r.prependAll)(n),(0,r.prepend)((0,r.head)(t))):(0,r.copy)(t)}},r.foldMapWithIndex=c.foldMapWithIndex,r.foldMap=c.foldMap,r.chainWithIndex=function(n){return function(t){for(var u=(0,r.fromReadonlyNonEmptyArray)(n(0,(0,r.head)(t))),e=1;e<t.length;e++)u.push.apply(u,n(e,t[e]));return u}},r.chop=function(n){return function(t){for(var u=n(t),e=[u[0]],o=u[1];(0,r.isNonEmpty)(o);){var i=n(o),c=i[1];e.push(i[0]),o=c}return e}},r.splitAt=function(n){return function(t){var u=Math.max(1,n);return u>=t.length?[(0,r.copy)(t),[]]:[(0,g.pipe)(t.slice(1,u),(0,r.prepend)((0,r.head)(t))),t.slice(u)]}},r.chunksOf=function(n){return(0,r.chop)((0,r.splitAt)(n))};var d=function(n,t){return(0,g.pipe)(n,(0,r.map)(t))},p=function(n,t){return(0,g.pipe)(n,(0,r.mapWithIndex)(t))},s=function(n,t){return(0,g.pipe)(n,(0,r.ap)(t))},l=function(n,t){return(0,g.pipe)(n,(0,r.chain)(t))},m=function(n,t){return(0,g.pipe)(n,(0,r.extend)(t))},h=function(n,t,u){return(0,g.pipe)(n,(0,r.reduce)(t,u))},I=function(n){var t=(0,r.foldMap)(n);return function(n,r){return(0,g.pipe)(n,t(r))}},b=function(n,t,u){return(0,g.pipe)(n,(0,r.reduceRight)(t,u))},R=function(n){var t=(0,r.traverse)(n);return function(n,r){return(0,g.pipe)(n,t(r))}},U=function(n,t){return(0,g.pipe)(n,(0,r.alt)(t))},j=function(n,t,u){return(0,g.pipe)(n,(0,r.reduceWithIndex)(t,u))},x=function(n){var t=(0,r.foldMapWithIndex)(n);return function(n,r){return(0,g.pipe)(n,t(r))}},W=function(n,t,u){return(0,g.pipe)(n,(0,r.reduceRightWithIndex)(t,u))},k=function(n){var t=(0,r.traverseWithIndex)(n);return function(n,r){return(0,g.pipe)(n,t(r))}};r.altW=function(n){return function(r){return(0,g.pipe)(r,f(n()))}},r.alt=r.altW,r.ap=function(n){return(0,r.chain)((function(t){return(0,g.pipe)(n,(0,r.map)(t))}))},r.chain=function(n){return(0,r.chainWithIndex)((function(r,t){return n(t)}))},r.extend=function(n){return function(t){for(var u=(0,r.tail)(t),e=[n(t)];(0,r.isNonEmpty)(u);)e.push(n(u)),u=(0,r.tail)(u);return e}},r.duplicate=(0,r.extend)(g.identity),r.flatten=(0,r.chain)(g.identity),r.map=function(n){return(0,r.mapWithIndex)((function(r,t){return n(t)}))},r.mapWithIndex=function(n){return function(t){for(var u=[n(0,(0,r.head)(t))],e=1;e<t.length;e++)u.push(n(e,t[e]));return u}},r.reduce=c.reduce,r.reduceWithIndex=c.reduceWithIndex,r.reduceRight=c.reduceRight,r.reduceRightWithIndex=c.reduceRightWithIndex,r.traverse=function(n){var t=(0,r.traverseWithIndex)(n);return function(n){return t((function(r,t){return n(t)}))}},r.sequence=function(n){return(0,r.traverseWithIndex)(n)((function(n,r){return r}))},r.traverseWithIndex=function(n){return function(t){return function(u){for(var e=n.map(t(0,(0,r.head)(u)),r.of),o=1;o<u.length;o++)e=n.ap(n.map(e,(function(n){return function(t){return(0,g.pipe)(n,(0,r.append)(t))}})),t(o,u[o]));return e}}},r.extract=c.head,r.URI="NonEmptyArray",r.getShow=c.getShow,r.getSemigroup=function(){return{concat:a}},r.getEq=c.getEq,r.getUnionSemigroup=function(n){var t=(0,r.union)(n);return{concat:function(n,r){return t(r)(n)}}},r.Functor={URI:r.URI,map:d},r.flap=(0,_.flap)(r.Functor),r.Pointed={URI:r.URI,of:r.of},r.FunctorWithIndex={URI:r.URI,map:d,mapWithIndex:p},r.Apply={URI:r.URI,map:d,ap:s},r.apFirst=(0,w.apFirst)(r.Apply),r.apSecond=(0,w.apSecond)(r.Apply),r.Applicative={URI:r.URI,map:d,ap:s,of:r.of},r.Chain={URI:r.URI,map:d,ap:s,chain:l},r.chainFirst=(0,y.chainFirst)(r.Chain),r.Monad={URI:r.URI,map:d,ap:s,of:r.of,chain:l},r.Foldable={URI:r.URI,reduce:h,foldMap:I,reduceRight:b},r.FoldableWithIndex={URI:r.URI,reduce:h,foldMap:I,reduceRight:b,reduceWithIndex:j,foldMapWithIndex:x,reduceRightWithIndex:W},r.Traversable={URI:r.URI,map:d,reduce:h,foldMap:I,reduceRight:b,traverse:R,sequence:r.sequence},r.TraversableWithIndex={URI:r.URI,map:d,mapWithIndex:p,reduce:h,foldMap:I,reduceRight:b,traverse:R,sequence:r.sequence,reduceWithIndex:j,foldMapWithIndex:x,reduceRightWithIndex:W,traverseWithIndex:k},r.Alt={URI:r.URI,map:d,alt:U},r.Comonad={URI:r.URI,map:d,extend:m,extract:r.extract},r.Do=(0,r.of)(i.emptyRecord),r.bindTo=(0,_.bindTo)(r.Functor),r.bind=(0,y.bind)(r.Chain),r.apS=(0,w.apS)(r.Apply),r.head=c.head,r.tail=function(n){return n.slice(1)},r.last=c.last,r.init=function(n){return n.slice(0,-1)},r.min=c.min,r.max=c.max,r.concatAll=function(n){return function(r){return r.reduce(n.concat)}},r.matchLeft=function(n){return function(t){return n((0,r.head)(t),(0,r.tail)(t))}},r.matchRight=function(n){return function(t){return n((0,r.init)(t),(0,r.last)(t))}},r.modifyHead=function(n){return function(t){return o([n((0,r.head)(t))],(0,r.tail)(t),!0)}},r.updateHead=function(n){return(0,r.modifyHead)((function(){return n}))},r.modifyLast=function(n){return function(t){return(0,g.pipe)((0,r.init)(t),(0,r.append)(n((0,r.last)(t))))}},r.updateLast=function(n){return(0,r.modifyLast)((function(){return n}))},r.intercalate=c.intercalate,r.groupSort=function(n){var t=(0,r.sort)(n),u=v(n);return function(n){return(0,r.isNonEmpty)(n)?u(t(n)):[]}},r.filter=function(n){return(0,r.filterWithIndex)((function(r,t){return n(t)}))},r.filterWithIndex=function(n){return function(t){return(0,r.fromArray)(t.filter((function(r,t){return n(t,r)})))}},r.uncons=r.unprepend,r.unsnoc=r.unappend,r.cons=function(n,t){return void 0===t?(0,r.prepend)(n):(0,g.pipe)(t,(0,r.prepend)(n))},r.snoc=function(n,t){return(0,g.pipe)(n,(0,r.append)(t))},r.prependToAll=r.prependAll,r.fold=c.concatAll,r.nonEmptyArray={URI:r.URI,of:r.of,map:d,mapWithIndex:p,ap:s,chain:l,extend:m,extract:r.extract,reduce:h,foldMap:I,reduceRight:b,traverse:R,sequence:r.sequence,reduceWithIndex:j,foldMapWithIndex:x,reduceRightWithIndex:W,traverseWithIndex:k,alt:U}})),A=j((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Field=r.MonoidProduct=r.MonoidSum=r.SemigroupProduct=r.SemigroupSum=r.MagmaSub=r.Show=r.Bounded=r.Ord=r.Eq=r.isNumber=void 0,r.isNumber=function(n){return"number"==typeof n},r.Eq={equals:function(n,r){return n===r}},r.Ord={equals:r.Eq.equals,compare:function(n,r){return n<r?-1:n>r?1:0}},r.Bounded={equals:r.Eq.equals,compare:r.Ord.compare,top:1/0,bottom:-1/0},r.Show={show:function(n){return JSON.stringify(n)}},r.MagmaSub={concat:function(n,r){return n-r}},r.SemigroupSum={concat:function(n,r){return n+r}},r.SemigroupProduct={concat:function(n,r){return n*r}},r.MonoidSum={concat:r.SemigroupSum.concat,empty:0},r.MonoidProduct={concat:r.SemigroupProduct.concat,empty:1},r.Field={add:r.SemigroupSum.concat,zero:0,mul:r.SemigroupProduct.concat,one:1,sub:r.MagmaSub.concat,degree:function(){return 1},div:function(n,r){return n/r},mod:function(n,r){return n%r}}})),z=j((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.right=r.left=r.flap=r.Functor=r.Bifunctor=r.URI=r.bimap=r.mapLeft=r.map=r.separated=void 0,r.separated=function(n,r){return{left:n,right:r}},r.map=function(n){return function(t){return(0,r.separated)((0,r.left)(t),n((0,r.right)(t)))}},r.mapLeft=function(n){return function(t){return(0,r.separated)(n((0,r.left)(t)),(0,r.right)(t))}},r.bimap=function(n,t){return function(u){return(0,r.separated)(n((0,r.left)(u)),t((0,r.right)(u)))}},r.URI="Separated",r.Bifunctor={URI:r.URI,mapLeft:function(n,t){return(0,g.pipe)(n,(0,r.mapLeft)(t))},bimap:function(n,t,u){return(0,g.pipe)(n,(0,r.bimap)(t,u))}},r.Functor={URI:r.URI,map:function(n,t){return(0,g.pipe)(n,(0,r.map)(t))}},r.flap=(0,_.flap)(r.Functor),r.left=function(n){return n.left},r.right=function(n){return n.right}})),L=j((function(n,r){var t=O&&O.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t);var e=Object.getOwnPropertyDescriptor(r,t);e&&!("get"in e?!r.__esModule:e.writable||e.configurable)||(e={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,u,e)}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=O&&O.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=O&&O.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.filterE=r.witherDefault=r.wiltDefault=void 0;var o=e(M);r.wiltDefault=function(n,r){return function(t){var u=n.traverse(t);return function(n,e){return t.map(u(n,e),r.separate)}}},r.witherDefault=function(n,r){return function(t){var u=n.traverse(t);return function(n,e){return t.map(u(n,e),r.compact)}}},r.filterE=function(n){return function(r){var t=n.wither(r);return function(n){return function(u){return t(u,(function(t){return r.map(n(t),(function(n){return n?o.some(t):o.none}))}))}}}}})),N=j((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.guard=void 0,r.guard=function(n,r){return function(t){return t?r.of(void 0):n.zero()}}})),S=j((function(n,r){var t=O&&O.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t);var e=Object.getOwnPropertyDescriptor(r,t);e&&!("get"in e?!r.__esModule:e.writable||e.configurable)||(e={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,u,e)}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=O&&O.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=O&&O.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r},o=O&&O.__spreadArray||function(n,r,t){if(t||2===arguments.length)for(var u,e=0,o=r.length;e<o;e++)!u&&e in r||(u||(u=Array.prototype.slice.call(r,0,e)),u[e]=r[e]);return n.concat(u||Array.prototype.slice.call(r))};Object.defineProperty(r,"__esModule",{value:!0}),r.sort=r.lefts=r.rights=r.reverse=r.modifyAt=r.deleteAt=r.updateAt=r.insertAt=r.findLastIndex=r.findLastMap=r.findLast=r.findFirstMap=r.findFirst=r.findIndex=r.dropLeftWhile=r.dropRight=r.dropLeft=r.spanLeft=r.takeLeftWhile=r.takeRight=r.takeLeft=r.init=r.tail=r.last=r.head=r.lookup=r.isOutOfBound=r.size=r.scanRight=r.scanLeft=r.chainWithIndex=r.foldRight=r.matchRight=r.matchRightW=r.foldLeft=r.matchLeft=r.matchLeftW=r.match=r.matchW=r.fromEither=r.fromOption=r.fromPredicate=r.replicate=r.makeBy=r.appendW=r.append=r.prependW=r.prepend=r.isNonEmpty=r.isEmpty=void 0,r.sequence=r.traverse=r.reduceRightWithIndex=r.reduceRight=r.reduceWithIndex=r.foldMap=r.reduce=r.foldMapWithIndex=r.duplicate=r.extend=r.filterWithIndex=r.partitionMapWithIndex=r.partitionMap=r.partitionWithIndex=r.partition=r.compact=r.filterMap=r.filterMapWithIndex=r.filter=r.separate=r.mapWithIndex=r.map=r.flatten=r.chain=r.ap=r.alt=r.altW=r.zero=r.of=r._chainRecBreadthFirst=r._chainRecDepthFirst=r.difference=r.intersection=r.union=r.concat=r.concatW=r.comprehension=r.fromOptionK=r.chunksOf=r.splitAt=r.chop=r.sortBy=r.uniq=r.elem=r.rotate=r.intersperse=r.prependAll=r.unzip=r.zip=r.zipWith=void 0,r.toArray=r.unsafeDeleteAt=r.unsafeUpdateAt=r.unsafeInsertAt=r.fromEitherK=r.FromEither=r.filterE=r.Witherable=r.ChainRecBreadthFirst=r.chainRecBreadthFirst=r.ChainRecDepthFirst=r.chainRecDepthFirst=r.TraversableWithIndex=r.Traversable=r.FoldableWithIndex=r.Foldable=r.FilterableWithIndex=r.Filterable=r.Compactable=r.Extend=r.Alternative=r.guard=r.Zero=r.Alt=r.Unfoldable=r.chainFirst=r.Monad=r.Chain=r.Applicative=r.apSecond=r.apFirst=r.Apply=r.FunctorWithIndex=r.Pointed=r.flap=r.Functor=r.getDifferenceMagma=r.getIntersectionSemigroup=r.getUnionMonoid=r.getUnionSemigroup=r.getOrd=r.getEq=r.getMonoid=r.getSemigroup=r.getShow=r.URI=r.unfold=r.wilt=r.wither=r.traverseWithIndex=void 0,r.readonlyArray=r.prependToAll=r.snoc=r.cons=r.range=r.apS=r.bind=r.bindTo=r.Do=r.intercalate=r.exists=r.some=r.every=r.empty=r.fromArray=void 0;var i=e(M),c=e(A),f=e(P);r.isEmpty=function(n){return 0===n.length},r.isNonEmpty=f.isNonEmpty,r.prepend=f.prepend,r.prependW=f.prependW,r.append=f.append,r.appendW=f.appendW,r.makeBy=function(n,t){return n<=0?r.empty:f.makeBy(t)(n)},r.replicate=function(n,t){return(0,r.makeBy)(n,(function(){return t}))},r.fromPredicate=function(n){return function(t){return n(t)?[t]:r.empty}},r.fromOption=function(n){return i.isNone(n)?r.empty:[n.value]},r.fromEither=function(n){return i.isLeft(n)?r.empty:[n.right]},r.matchW=function(n,t){return function(u){return(0,r.isNonEmpty)(u)?t(u):n()}},r.match=r.matchW,r.matchLeftW=function(n,t){return function(u){return(0,r.isNonEmpty)(u)?t(f.head(u),f.tail(u)):n()}},r.matchLeft=r.matchLeftW,r.foldLeft=r.matchLeft,r.matchRightW=function(n,t){return function(u){return(0,r.isNonEmpty)(u)?t(f.init(u),f.last(u)):n()}},r.matchRight=r.matchRightW,r.foldRight=r.matchRight,r.chainWithIndex=function(n){return function(t){if((0,r.isEmpty)(t))return r.empty;for(var u=[],e=0;e<t.length;e++)u.push.apply(u,n(e,t[e]));return u}},r.scanLeft=function(n,r){return function(t){var u=t.length,e=new Array(u+1);e[0]=n;for(var o=0;o<u;o++)e[o+1]=r(e[o],t[o]);return e}},r.scanRight=function(n,r){return function(t){var u=t.length,e=new Array(u+1);e[u]=n;for(var o=u-1;o>=0;o--)e[o]=r(t[o],e[o+1]);return e}},r.size=function(n){return n.length},r.isOutOfBound=f.isOutOfBound,r.lookup=function n(t,u){return void 0===u?function(r){return n(t,r)}:(0,r.isOutOfBound)(t,u)?i.none:i.some(u[t])},r.head=function(n){return(0,r.isNonEmpty)(n)?i.some(f.head(n)):i.none},r.last=function(n){return(0,r.isNonEmpty)(n)?i.some(f.last(n)):i.none},r.tail=function(n){return(0,r.isNonEmpty)(n)?i.some(f.tail(n)):i.none},r.init=function(n){return(0,r.isNonEmpty)(n)?i.some(f.init(n)):i.none},r.takeLeft=function(n){return function(t){return(0,r.isOutOfBound)(n,t)?t:0===n?r.empty:t.slice(0,n)}},r.takeRight=function(n){return function(t){return(0,r.isOutOfBound)(n,t)?t:0===n?r.empty:t.slice(-n)}},r.takeLeftWhile=function(n){return function(t){for(var u=[],e=0,o=t;e<o.length;e++){var i=o[e];if(!n(i))break;u.push(i)}var c=u.length;return c===t.length?t:0===c?r.empty:u}};var a=function(n,r){for(var t=n.length,u=0;u<t&&r(n[u]);u++);return u};function v(n){return function(r,t){if(void 0===t){var u=v(n);return function(n){return u(r,n)}}for(var e=0;e<t.length;e++)if(n.equals(t[e],r))return!0;return!1}}function d(n){var t=f.union(n);return function(u,e){if(void 0===e){var o=d(n);return function(n){return o(n,u)}}return(0,r.isNonEmpty)(u)&&(0,r.isNonEmpty)(e)?t(e)(u):(0,r.isNonEmpty)(u)?u:e}}function p(n){var r=v(n);return function(t,u){if(void 0===u){var e=p(n);return function(n){return e(n,t)}}return t.filter((function(n){return r(n,u)}))}}function s(n){var r=v(n);return function(t,u){if(void 0===u){var e=s(n);return function(n){return e(n,t)}}return t.filter((function(n){return!r(n,u)}))}}r.spanLeft=function(n){return function(t){var u=(0,r.splitAt)(a(t,n))(t);return{init:u[0],rest:u[1]}}},r.dropLeft=function(n){return function(t){return n<=0||(0,r.isEmpty)(t)?t:n>=t.length?r.empty:t.slice(n,t.length)}},r.dropRight=function(n){return function(t){return n<=0||(0,r.isEmpty)(t)?t:n>=t.length?r.empty:t.slice(0,t.length-n)}},r.dropLeftWhile=function(n){return function(t){var u=a(t,n);return 0===u?t:u===t.length?r.empty:t.slice(u)}},r.findIndex=function(n){return function(r){for(var t=0;t<r.length;t++)if(n(r[t]))return i.some(t);return i.none}},r.findFirst=function(n){return function(r){for(var t=0;t<r.length;t++)if(n(r[t]))return i.some(r[t]);return i.none}},r.findFirstMap=function(n){return function(r){for(var t=0;t<r.length;t++){var u=n(r[t]);if(i.isSome(u))return u}return i.none}},r.findLast=function(n){return function(r){for(var t=r.length-1;t>=0;t--)if(n(r[t]))return i.some(r[t]);return i.none}},r.findLastMap=function(n){return function(r){for(var t=r.length-1;t>=0;t--){var u=n(r[t]);if(i.isSome(u))return u}return i.none}},r.findLastIndex=function(n){return function(r){for(var t=r.length-1;t>=0;t--)if(n(r[t]))return i.some(t);return i.none}},r.insertAt=function(n,r){return function(t){return n<0||n>t.length?i.none:i.some(f.unsafeInsertAt(n,r,t))}},r.updateAt=function(n,t){return(0,r.modifyAt)(n,(function(){return t}))},r.deleteAt=function(n){return function(t){return(0,r.isOutOfBound)(n,t)?i.none:i.some((0,r.unsafeDeleteAt)(n,t))}},r.modifyAt=function(n,t){return function(u){return(0,r.isOutOfBound)(n,u)?i.none:i.some((0,r.unsafeUpdateAt)(n,t(u[n]),u))}},r.reverse=function(n){return n.length<=1?n:n.slice().reverse()},r.rights=function(n){for(var r=[],t=0;t<n.length;t++){var u=n[t];"Right"===u._tag&&r.push(u.right)}return r},r.lefts=function(n){for(var r=[],t=0;t<n.length;t++){var u=n[t];"Left"===u._tag&&r.push(u.left)}return r},r.sort=function(n){return function(r){return r.length<=1?r:r.slice().sort(n.compare)}},r.zipWith=function(n,r,t){for(var u=[],e=Math.min(n.length,r.length),o=0;o<e;o++)u[o]=t(n[o],r[o]);return u},r.zip=function n(t,u){return void 0===u?function(r){return n(r,t)}:(0,r.zipWith)(t,u,(function(n,r){return[n,r]}))},r.unzip=function(n){for(var r=[],t=[],u=0;u<n.length;u++)r[u]=n[u][0],t[u]=n[u][1];return[r,t]},r.prependAll=function(n){var t=f.prependAll(n);return function(n){return(0,r.isNonEmpty)(n)?t(n):n}},r.intersperse=function(n){var t=f.intersperse(n);return function(n){return(0,r.isNonEmpty)(n)?t(n):n}},r.rotate=function(n){var t=f.rotate(n);return function(n){return(0,r.isNonEmpty)(n)?t(n):n}},r.elem=v,r.uniq=function(n){var t=f.uniq(n);return function(n){return(0,r.isNonEmpty)(n)?t(n):n}},r.sortBy=function(n){var t=f.sortBy(n);return function(n){return(0,r.isNonEmpty)(n)?t(n):n}},r.chop=function(n){var t=f.chop(n);return function(n){return(0,r.isNonEmpty)(n)?t(n):r.empty}},r.splitAt=function(n){return function(t){return n>=1&&(0,r.isNonEmpty)(t)?f.splitAt(n)(t):(0,r.isEmpty)(t)?[t,r.empty]:[r.empty,t]}},r.chunksOf=function(n){var t=f.chunksOf(n);return function(n){return(0,r.isNonEmpty)(n)?t(n):r.empty}},r.fromOptionK=function(n){return function(){for(var t=[],u=0;u<arguments.length;u++)t[u]=arguments[u];return(0,r.fromOption)(n.apply(void 0,t))}},r.comprehension=function(n,t,u){void 0===u&&(u=function(){return!0});var e=function(n,o){return(0,r.isNonEmpty)(o)?(0,g.pipe)(f.head(o),(0,r.chain)((function(t){return e((0,g.pipe)(n,(0,r.append)(t)),f.tail(o))}))):u.apply(void 0,n)?[t.apply(void 0,n)]:r.empty};return e(r.empty,n)},r.concatW=function(n){return function(t){return(0,r.isEmpty)(t)?n:(0,r.isEmpty)(n)?t:t.concat(n)}},r.concat=r.concatW,r.union=d,r.intersection=p,r.difference=s;var l=function(n,t){return(0,g.pipe)(n,(0,r.map)(t))},m=function(n,t){return(0,g.pipe)(n,(0,r.mapWithIndex)(t))},h=function(n,t){return(0,g.pipe)(n,(0,r.ap)(t))},I=function(n,t){return(0,g.pipe)(n,(0,r.chain)(t))},b=function(n,t){return(0,g.pipe)(n,(0,r.filter)(t))},R=function(n,t){return(0,g.pipe)(n,(0,r.filterMap)(t))},U=function(n,t){return(0,g.pipe)(n,(0,r.partition)(t))},j=function(n,t){return(0,g.pipe)(n,(0,r.partitionMap)(t))},k=function(n,t){return(0,g.pipe)(n,(0,r.partitionWithIndex)(t))},q=function(n,t){return(0,g.pipe)(n,(0,r.partitionMapWithIndex)(t))},T=function(n,t){return(0,g.pipe)(n,(0,r.alt)(t))},S=function(n,t,u){return(0,g.pipe)(n,(0,r.reduce)(t,u))},C=function(n){var t=(0,r.foldMap)(n);return function(n,r){return(0,g.pipe)(n,t(r))}},D=function(n,t,u){return(0,g.pipe)(n,(0,r.reduceRight)(t,u))},F=function(n,t,u){return(0,g.pipe)(n,(0,r.reduceWithIndex)(t,u))},H=function(n){var t=(0,r.foldMapWithIndex)(n);return function(n,r){return(0,g.pipe)(n,t(r))}},$=function(n,t,u){return(0,g.pipe)(n,(0,r.reduceRightWithIndex)(t,u))},G=function(n,t){return(0,g.pipe)(n,(0,r.filterMapWithIndex)(t))},J=function(n,t){return(0,g.pipe)(n,(0,r.filterWithIndex)(t))},B=function(n,t){return(0,g.pipe)(n,(0,r.extend)(t))},K=function(n){var t=(0,r.traverse)(n);return function(n,r){return(0,g.pipe)(n,t(r))}},Q=function(n){var t=(0,r.traverseWithIndex)(n);return function(n,r){return(0,g.pipe)(n,t(r))}};r._chainRecDepthFirst=function(n,t){return(0,g.pipe)(n,(0,r.chainRecDepthFirst)(t))},r._chainRecBreadthFirst=function(n,t){return(0,g.pipe)(n,(0,r.chainRecBreadthFirst)(t))},r.of=f.of,r.zero=function(){return r.empty},r.altW=function(n){return function(r){return r.concat(n())}},r.alt=r.altW,r.ap=function(n){return(0,r.chain)((function(t){return(0,g.pipe)(n,(0,r.map)(t))}))},r.chain=function(n){return function(t){return(0,g.pipe)(t,(0,r.chainWithIndex)((function(r,t){return n(t)})))}},r.flatten=(0,r.chain)(g.identity),r.map=function(n){return function(r){return r.map((function(r){return n(r)}))}},r.mapWithIndex=function(n){return function(r){return r.map((function(r,t){return n(t,r)}))}},r.separate=function(n){for(var r=[],t=[],u=0,e=n;u<e.length;u++){var o=e[u];"Left"===o._tag?r.push(o.left):t.push(o.right)}return(0,z.separated)(r,t)},r.filter=function(n){return function(r){return r.filter(n)}},r.filterMapWithIndex=function(n){return function(r){for(var t=[],u=0;u<r.length;u++){var e=n(u,r[u]);i.isSome(e)&&t.push(e.value)}return t}},r.filterMap=function(n){return(0,r.filterMapWithIndex)((function(r,t){return n(t)}))},r.compact=(0,r.filterMap)(g.identity),r.partition=function(n){return(0,r.partitionWithIndex)((function(r,t){return n(t)}))},r.partitionWithIndex=function(n){return function(r){for(var t=[],u=[],e=0;e<r.length;e++){var o=r[e];n(e,o)?u.push(o):t.push(o)}return(0,z.separated)(t,u)}},r.partitionMap=function(n){return(0,r.partitionMapWithIndex)((function(r,t){return n(t)}))},r.partitionMapWithIndex=function(n){return function(r){for(var t=[],u=[],e=0;e<r.length;e++){var o=n(e,r[e]);"Left"===o._tag?t.push(o.left):u.push(o.right)}return(0,z.separated)(t,u)}},r.filterWithIndex=function(n){return function(r){return r.filter((function(r,t){return n(t,r)}))}},r.extend=function(n){return function(r){return r.map((function(t,u){return n(r.slice(u))}))}},r.duplicate=(0,r.extend)(g.identity),r.foldMapWithIndex=function(n){return function(r){return function(t){return t.reduce((function(t,u,e){return n.concat(t,r(e,u))}),n.empty)}}},r.reduce=function(n,t){return(0,r.reduceWithIndex)(n,(function(n,r,u){return t(r,u)}))},r.foldMap=function(n){var t=(0,r.foldMapWithIndex)(n);return function(n){return t((function(r,t){return n(t)}))}},r.reduceWithIndex=function(n,r){return function(t){for(var u=t.length,e=n,o=0;o<u;o++)e=r(o,e,t[o]);return e}},r.reduceRight=function(n,t){return(0,r.reduceRightWithIndex)(n,(function(n,r,u){return t(r,u)}))},r.reduceRightWithIndex=function(n,r){return function(t){return t.reduceRight((function(n,t,u){return r(u,t,n)}),n)}},r.traverse=function(n){var t=(0,r.traverseWithIndex)(n);return function(n){return t((function(r,t){return n(t)}))}},r.sequence=function(n){return function(t){return S(t,n.of((0,r.zero)()),(function(t,u){return n.ap(n.map(t,(function(n){return function(t){return(0,g.pipe)(n,(0,r.append)(t))}})),u)}))}},r.traverseWithIndex=function(n){return function(t){return(0,r.reduceWithIndex)(n.of((0,r.zero)()),(function(u,e,o){return n.ap(n.map(e,(function(n){return function(t){return(0,g.pipe)(n,(0,r.append)(t))}})),t(u,o))}))}},r.wither=function(n){var r=V(n);return function(n){return function(t){return r(t,n)}}},r.wilt=function(n){var r=X(n);return function(n){return function(t){return r(t,n)}}},r.unfold=function(n,r){for(var t=[],u=n;;){var e=r(u);if(!i.isSome(e))break;var o=e.value,c=o[1];t.push(o[0]),u=c}return t},r.URI="ReadonlyArray",r.getShow=function(n){return{show:function(r){return"[".concat(r.map(n.show).join(", "),"]")}}},r.getSemigroup=function(){return{concat:function(n,t){return(0,r.isEmpty)(n)?t:(0,r.isEmpty)(t)?n:n.concat(t)}}},r.getMonoid=function(){return{concat:(0,r.getSemigroup)().concat,empty:r.empty}},r.getEq=function(n){return(0,W.fromEquals)((function(r,t){return r.length===t.length&&r.every((function(r,u){return n.equals(r,t[u])}))}))},r.getOrd=function(n){return(0,E.fromCompare)((function(r,t){for(var u=r.length,e=t.length,o=Math.min(u,e),i=0;i<o;i++){var f=n.compare(r[i],t[i]);if(0!==f)return f}return c.Ord.compare(u,e)}))},r.getUnionSemigroup=function(n){var r=d(n);return{concat:function(n,t){return r(t)(n)}}},r.getUnionMonoid=function(n){return{concat:(0,r.getUnionSemigroup)(n).concat,empty:r.empty}},r.getIntersectionSemigroup=function(n){var r=p(n);return{concat:function(n,t){return r(t)(n)}}},r.getDifferenceMagma=function(n){var r=s(n);return{concat:function(n,t){return r(t)(n)}}},r.Functor={URI:r.URI,map:l},r.flap=(0,_.flap)(r.Functor),r.Pointed={URI:r.URI,of:r.of},r.FunctorWithIndex={URI:r.URI,map:l,mapWithIndex:m},r.Apply={URI:r.URI,map:l,ap:h},r.apFirst=(0,w.apFirst)(r.Apply),r.apSecond=(0,w.apSecond)(r.Apply),r.Applicative={URI:r.URI,map:l,ap:h,of:r.of},r.Chain={URI:r.URI,map:l,ap:h,chain:I},r.Monad={URI:r.URI,map:l,ap:h,of:r.of,chain:I},r.chainFirst=(0,y.chainFirst)(r.Chain),r.Unfoldable={URI:r.URI,unfold:r.unfold},r.Alt={URI:r.URI,map:l,alt:T},r.Zero={URI:r.URI,zero:r.zero},r.guard=(0,N.guard)(r.Zero,r.Pointed),r.Alternative={URI:r.URI,map:l,ap:h,of:r.of,alt:T,zero:r.zero},r.Extend={URI:r.URI,map:l,extend:B},r.Compactable={URI:r.URI,compact:r.compact,separate:r.separate},r.Filterable={URI:r.URI,map:l,compact:r.compact,separate:r.separate,filter:b,filterMap:R,partition:U,partitionMap:j},r.FilterableWithIndex={URI:r.URI,map:l,mapWithIndex:m,compact:r.compact,separate:r.separate,filter:b,filterMap:R,partition:U,partitionMap:j,partitionMapWithIndex:q,partitionWithIndex:k,filterMapWithIndex:G,filterWithIndex:J},r.Foldable={URI:r.URI,reduce:S,foldMap:C,reduceRight:D},r.FoldableWithIndex={URI:r.URI,reduce:S,foldMap:C,reduceRight:D,reduceWithIndex:F,foldMapWithIndex:H,reduceRightWithIndex:$},r.Traversable={URI:r.URI,map:l,reduce:S,foldMap:C,reduceRight:D,traverse:K,sequence:r.sequence},r.TraversableWithIndex={URI:r.URI,map:l,mapWithIndex:m,reduce:S,foldMap:C,reduceRight:D,reduceWithIndex:F,foldMapWithIndex:H,reduceRightWithIndex:$,traverse:K,sequence:r.sequence,traverseWithIndex:Q},r.chainRecDepthFirst=function(n){return function(r){for(var t=o([],n(r),!0),u=[];t.length>0;){var e=t.shift();i.isLeft(e)?t.unshift.apply(t,n(e.left)):u.push(e.right)}return u}},r.ChainRecDepthFirst={URI:r.URI,map:l,ap:h,chain:I,chainRec:r._chainRecDepthFirst},r.chainRecBreadthFirst=function(n){return function(r){var t=n(r),u=[],e=[];function o(r){i.isLeft(r)?n(r.left).forEach((function(n){return u.push(n)})):e.push(r.right)}for(var c=0,f=t;c<f.length;c++)o(f[c]);for(;u.length>0;)o(u.shift());return e}},r.ChainRecBreadthFirst={URI:r.URI,map:l,ap:h,chain:I,chainRec:r._chainRecBreadthFirst};var V=(0,L.witherDefault)(r.Traversable,r.Compactable),X=(0,L.wiltDefault)(r.Traversable,r.Compactable);r.Witherable={URI:r.URI,map:l,compact:r.compact,separate:r.separate,filter:b,filterMap:R,partition:U,partitionMap:j,reduce:S,foldMap:C,reduceRight:D,traverse:K,sequence:r.sequence,wither:V,wilt:X},r.filterE=(0,L.filterE)(r.Witherable),r.FromEither={URI:r.URI,fromEither:r.fromEither},r.fromEitherK=(0,x.fromEitherK)(r.FromEither),r.unsafeInsertAt=f.unsafeInsertAt,r.unsafeUpdateAt=function(n,t,u){return(0,r.isNonEmpty)(u)?f.unsafeUpdateAt(n,t,u):u},r.unsafeDeleteAt=function(n,r){var t=r.slice();return t.splice(n,1),t},r.toArray=function(n){return n.slice()},r.fromArray=function(n){return(0,r.isEmpty)(n)?r.empty:n.slice()},r.empty=f.empty,r.every=function(n){return function(r){return r.every(n)}},r.some=function(n){return function(r){return r.some(n)}},r.exists=r.some,r.intercalate=function(n){var t=f.intercalate(n);return function(u){return(0,r.match)((function(){return n.empty}),t(u))}},r.Do=(0,r.of)(i.emptyRecord),r.bindTo=(0,_.bindTo)(r.Functor),r.bind=(0,y.bind)(r.Chain),r.apS=(0,w.apS)(r.Apply),r.range=f.range,r.cons=f.cons,r.snoc=f.snoc,r.prependToAll=r.prependAll,r.readonlyArray={URI:r.URI,compact:r.compact,separate:r.separate,map:l,ap:h,of:r.of,chain:I,filter:b,filterMap:R,partition:U,partitionMap:j,mapWithIndex:m,partitionMapWithIndex:q,partitionWithIndex:k,filterMapWithIndex:G,filterWithIndex:J,alt:T,zero:r.zero,unfold:r.unfold,reduce:S,foldMap:C,reduceRight:D,traverse:K,sequence:r.sequence,reduceWithIndex:F,foldMapWithIndex:H,reduceRightWithIndex:$,traverseWithIndex:Q,extend:B,wither:V,wilt:X}})),C=j((function(n,r){var t=O&&O.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t);var e=Object.getOwnPropertyDescriptor(r,t);e&&!("get"in e?!r.__esModule:e.writable||e.configurable)||(e={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,u,e)}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=O&&O.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=O&&O.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.lefts=r.rights=r.reverse=r.modifyAt=r.deleteAt=r.updateAt=r.insertAt=r.copy=r.findLastIndex=r.findLastMap=r.findLast=r.findFirstMap=r.findFirst=r.findIndex=r.dropLeftWhile=r.dropRight=r.dropLeft=r.spanLeft=r.takeLeftWhile=r.takeRight=r.takeLeft=r.init=r.tail=r.last=r.head=r.lookup=r.isOutOfBound=r.size=r.scanRight=r.scanLeft=r.chainWithIndex=r.foldRight=r.matchRight=r.matchRightW=r.foldLeft=r.matchLeft=r.matchLeftW=r.match=r.matchW=r.fromEither=r.fromOption=r.fromPredicate=r.replicate=r.makeBy=r.appendW=r.append=r.prependW=r.prepend=r.isNonEmpty=r.isEmpty=void 0,r.traverseWithIndex=r.sequence=r.traverse=r.reduceRightWithIndex=r.reduceRight=r.reduceWithIndex=r.reduce=r.foldMapWithIndex=r.foldMap=r.duplicate=r.extend=r.filterWithIndex=r.alt=r.altW=r.partitionMapWithIndex=r.partitionMap=r.partitionWithIndex=r.partition=r.filter=r.separate=r.compact=r.filterMap=r.filterMapWithIndex=r.mapWithIndex=r.flatten=r.chain=r.ap=r.map=r.zero=r.of=r.difference=r.intersection=r.union=r.concat=r.concatW=r.comprehension=r.fromOptionK=r.chunksOf=r.splitAt=r.chop=r.sortBy=r.uniq=r.elem=r.rotate=r.intersperse=r.prependAll=r.unzip=r.zip=r.zipWith=r.sort=void 0,r.some=r.every=r.unsafeDeleteAt=r.unsafeUpdateAt=r.unsafeInsertAt=r.fromEitherK=r.FromEither=r.filterE=r.ChainRecBreadthFirst=r.chainRecBreadthFirst=r.ChainRecDepthFirst=r.chainRecDepthFirst=r.Witherable=r.TraversableWithIndex=r.Traversable=r.FoldableWithIndex=r.Foldable=r.FilterableWithIndex=r.Filterable=r.Compactable=r.Extend=r.Alternative=r.guard=r.Zero=r.Alt=r.Unfoldable=r.Monad=r.chainFirst=r.Chain=r.Applicative=r.apSecond=r.apFirst=r.Apply=r.FunctorWithIndex=r.Pointed=r.flap=r.Functor=r.getDifferenceMagma=r.getIntersectionSemigroup=r.getUnionMonoid=r.getUnionSemigroup=r.getOrd=r.getEq=r.getMonoid=r.getSemigroup=r.getShow=r.URI=r.unfold=r.wilt=r.wither=void 0,r.array=r.prependToAll=r.snoc=r.cons=r.empty=r.range=r.apS=r.bind=r.bindTo=r.Do=r.intercalate=r.exists=void 0;var o=e(M),i=e(T),c=e(S);r.isEmpty=function(n){return 0===n.length},r.isNonEmpty=i.isNonEmpty,r.prepend=i.prepend,r.prependW=i.prependW,r.append=i.append,r.appendW=i.appendW,r.makeBy=function(n,r){return n<=0?[]:i.makeBy(r)(n)},r.replicate=function(n,t){return(0,r.makeBy)(n,(function(){return t}))},r.fromPredicate=function(n){return function(r){return n(r)?[r]:[]}},r.fromOption=function(n){return o.isNone(n)?[]:[n.value]},r.fromEither=function(n){return o.isLeft(n)?[]:[n.right]},r.matchW=function(n,t){return function(u){return(0,r.isNonEmpty)(u)?t(u):n()}},r.match=r.matchW,r.matchLeftW=function(n,t){return function(u){return(0,r.isNonEmpty)(u)?t(i.head(u),i.tail(u)):n()}},r.matchLeft=r.matchLeftW,r.foldLeft=r.matchLeft,r.matchRightW=function(n,t){return function(u){return(0,r.isNonEmpty)(u)?t(i.init(u),i.last(u)):n()}},r.matchRight=r.matchRightW,r.foldRight=r.matchRight,r.chainWithIndex=function(n){return function(r){for(var t=[],u=0;u<r.length;u++)t.push.apply(t,n(u,r[u]));return t}},r.scanLeft=function(n,r){return function(t){var u=t.length,e=new Array(u+1);e[0]=n;for(var o=0;o<u;o++)e[o+1]=r(e[o],t[o]);return e}},r.scanRight=function(n,r){return function(t){var u=t.length,e=new Array(u+1);e[u]=n;for(var o=u-1;o>=0;o--)e[o]=r(t[o],e[o+1]);return e}},r.size=function(n){return n.length},r.isOutOfBound=i.isOutOfBound,r.lookup=c.lookup,r.head=c.head,r.last=c.last,r.tail=function(n){return(0,r.isNonEmpty)(n)?o.some(i.tail(n)):o.none},r.init=function(n){return(0,r.isNonEmpty)(n)?o.some(i.init(n)):o.none},r.takeLeft=function(n){return function(t){return(0,r.isOutOfBound)(n,t)?(0,r.copy)(t):t.slice(0,n)}},r.takeRight=function(n){return function(t){return(0,r.isOutOfBound)(n,t)?(0,r.copy)(t):0===n?[]:t.slice(-n)}},r.takeLeftWhile=function(n){return function(r){for(var t=[],u=0,e=r;u<e.length;u++){var o=e[u];if(!n(o))break;t.push(o)}return t}};var f=function(n,r){for(var t=n.length,u=0;u<t&&r(n[u]);u++);return u};function a(n){var t=i.union(n);return function(u,e){if(void 0===e){var o=a(n);return function(n){return o(n,u)}}return(0,r.isNonEmpty)(u)&&(0,r.isNonEmpty)(e)?t(e)(u):(0,r.isNonEmpty)(u)?(0,r.copy)(u):(0,r.copy)(e)}}function v(n){var t=(0,r.elem)(n);return function(r,u){if(void 0===u){var e=v(n);return function(n){return e(n,r)}}return r.filter((function(n){return t(n,u)}))}}function d(n){var t=(0,r.elem)(n);return function(r,u){if(void 0===u){var e=d(n);return function(n){return e(n,r)}}return r.filter((function(n){return!t(n,u)}))}}r.spanLeft=function(n){return function(t){var u=(0,r.splitAt)(f(t,n))(t);return{init:u[0],rest:u[1]}}},r.dropLeft=function(n){return function(t){return n<=0||(0,r.isEmpty)(t)?(0,r.copy)(t):n>=t.length?[]:t.slice(n,t.length)}},r.dropRight=function(n){return function(t){return n<=0||(0,r.isEmpty)(t)?(0,r.copy)(t):n>=t.length?[]:t.slice(0,t.length-n)}},r.dropLeftWhile=function(n){return function(r){return r.slice(f(r,n))}},r.findIndex=c.findIndex,r.findFirst=function(n){return c.findFirst(n)},r.findFirstMap=c.findFirstMap,r.findLast=function(n){return c.findLast(n)},r.findLastMap=c.findLastMap,r.findLastIndex=c.findLastIndex,r.copy=function(n){return n.slice()},r.insertAt=function(n,t){return function(u){return n<0||n>u.length?o.none:o.some((0,r.unsafeInsertAt)(n,t,u))}},r.updateAt=function(n,t){return(0,r.modifyAt)(n,(function(){return t}))},r.deleteAt=function(n){return function(t){return(0,r.isOutOfBound)(n,t)?o.none:o.some((0,r.unsafeDeleteAt)(n,t))}},r.modifyAt=function(n,t){return function(u){return(0,r.isOutOfBound)(n,u)?o.none:o.some((0,r.unsafeUpdateAt)(n,t(u[n]),u))}},r.reverse=function(n){return(0,r.isEmpty)(n)?[]:n.slice().reverse()},r.rights=function(n){for(var r=[],t=0;t<n.length;t++){var u=n[t];"Right"===u._tag&&r.push(u.right)}return r},r.lefts=function(n){for(var r=[],t=0;t<n.length;t++){var u=n[t];"Left"===u._tag&&r.push(u.left)}return r},r.sort=function(n){return function(t){return t.length<=1?(0,r.copy)(t):t.slice().sort(n.compare)}},r.zipWith=function(n,r,t){for(var u=[],e=Math.min(n.length,r.length),o=0;o<e;o++)u[o]=t(n[o],r[o]);return u},r.zip=function n(t,u){return void 0===u?function(r){return n(r,t)}:(0,r.zipWith)(t,u,(function(n,r){return[n,r]}))},r.unzip=function(n){for(var r=[],t=[],u=0;u<n.length;u++)r[u]=n[u][0],t[u]=n[u][1];return[r,t]},r.prependAll=function(n){var t=i.prependAll(n);return function(n){return(0,r.isNonEmpty)(n)?t(n):[]}},r.intersperse=function(n){var t=i.intersperse(n);return function(n){return(0,r.isNonEmpty)(n)?t(n):(0,r.copy)(n)}},r.rotate=function(n){var t=i.rotate(n);return function(n){return(0,r.isNonEmpty)(n)?t(n):(0,r.copy)(n)}},r.elem=c.elem,r.uniq=function(n){var t=i.uniq(n);return function(n){return(0,r.isNonEmpty)(n)?t(n):(0,r.copy)(n)}},r.sortBy=function(n){var t=i.sortBy(n);return function(n){return(0,r.isNonEmpty)(n)?t(n):(0,r.copy)(n)}},r.chop=function(n){var t=i.chop(n);return function(n){return(0,r.isNonEmpty)(n)?t(n):[]}},r.splitAt=function(n){return function(t){return n>=1&&(0,r.isNonEmpty)(t)?i.splitAt(n)(t):(0,r.isEmpty)(t)?[(0,r.copy)(t),[]]:[[],(0,r.copy)(t)]}},r.chunksOf=function(n){var t=i.chunksOf(n);return function(n){return(0,r.isNonEmpty)(n)?t(n):[]}},r.fromOptionK=function(n){return function(){for(var t=[],u=0;u<arguments.length;u++)t[u]=arguments[u];return(0,r.fromOption)(n.apply(void 0,t))}},r.comprehension=function(n,t,u){void 0===u&&(u=function(){return!0});var e=function(n,o){return(0,r.isNonEmpty)(o)?(0,g.pipe)(i.head(o),(0,r.chain)((function(t){return e((0,g.pipe)(n,(0,r.append)(t)),i.tail(o))}))):u.apply(void 0,n)?[t.apply(void 0,n)]:[]};return e([],n)},r.concatW=function(n){return function(t){return(0,r.isEmpty)(t)?(0,r.copy)(n):(0,r.isEmpty)(n)?(0,r.copy)(t):t.concat(n)}},r.concat=r.concatW,r.union=a,r.intersection=v,r.difference=d;var p=function(n,t){return(0,g.pipe)(n,(0,r.map)(t))},s=function(n,t){return(0,g.pipe)(n,(0,r.mapWithIndex)(t))},l=function(n,t){return(0,g.pipe)(n,(0,r.ap)(t))},m=function(n,t){return(0,g.pipe)(n,(0,r.chain)(t))},h=function(n,t){return(0,g.pipe)(n,(0,r.filter)(t))},I=function(n,t){return(0,g.pipe)(n,(0,r.filterMap)(t))},b=function(n,t){return(0,g.pipe)(n,(0,r.partition)(t))},R=function(n,t){return(0,g.pipe)(n,(0,r.partitionMap)(t))},U=function(n,t){return(0,g.pipe)(n,(0,r.partitionWithIndex)(t))},j=function(n,t){return(0,g.pipe)(n,(0,r.partitionMapWithIndex)(t))},W=function(n,t){return(0,g.pipe)(n,(0,r.alt)(t))},E=function(n,t,u){return(0,g.pipe)(n,(0,r.reduce)(t,u))},k=function(n){var t=(0,r.foldMap)(n);return function(n,r){return(0,g.pipe)(n,t(r))}},q=function(n,t,u){return(0,g.pipe)(n,(0,r.reduceRight)(t,u))},P=function(n,t,u){return(0,g.pipe)(n,(0,r.reduceWithIndex)(t,u))},A=function(n){var t=(0,r.foldMapWithIndex)(n);return function(n,r){return(0,g.pipe)(n,t(r))}},C=function(n,t,u){return(0,g.pipe)(n,(0,r.reduceRightWithIndex)(t,u))},D=function(n,t){return(0,g.pipe)(n,(0,r.filterMapWithIndex)(t))},F=function(n,t){return(0,g.pipe)(n,(0,r.filterWithIndex)(t))},H=function(n,t){return(0,g.pipe)(n,(0,r.extend)(t))},$=function(n){var t=(0,r.traverse)(n);return function(n,r){return(0,g.pipe)(n,t(r))}},G=function(n){var t=(0,r.traverseWithIndex)(n);return function(n,r){return(0,g.pipe)(n,t(r))}},J=c._chainRecDepthFirst,B=c._chainRecBreadthFirst;r.of=i.of,r.zero=function(){return[]},r.map=function(n){return function(r){return r.map((function(r){return n(r)}))}},r.ap=function(n){return(0,r.chain)((function(t){return(0,g.pipe)(n,(0,r.map)(t))}))},r.chain=function(n){return function(t){return(0,g.pipe)(t,(0,r.chainWithIndex)((function(r,t){return n(t)})))}},r.flatten=(0,r.chain)(g.identity),r.mapWithIndex=function(n){return function(r){return r.map((function(r,t){return n(t,r)}))}},r.filterMapWithIndex=function(n){return function(r){for(var t=[],u=0;u<r.length;u++){var e=n(u,r[u]);o.isSome(e)&&t.push(e.value)}return t}},r.filterMap=function(n){return(0,r.filterMapWithIndex)((function(r,t){return n(t)}))},r.compact=(0,r.filterMap)(g.identity),r.separate=function(n){for(var r=[],t=[],u=0,e=n;u<e.length;u++){var o=e[u];"Left"===o._tag?r.push(o.left):t.push(o.right)}return(0,z.separated)(r,t)},r.filter=function(n){return function(r){return r.filter(n)}},r.partition=function(n){return(0,r.partitionWithIndex)((function(r,t){return n(t)}))},r.partitionWithIndex=function(n){return function(r){for(var t=[],u=[],e=0;e<r.length;e++){var o=r[e];n(e,o)?u.push(o):t.push(o)}return(0,z.separated)(t,u)}},r.partitionMap=function(n){return(0,r.partitionMapWithIndex)((function(r,t){return n(t)}))},r.partitionMapWithIndex=function(n){return function(r){for(var t=[],u=[],e=0;e<r.length;e++){var o=n(e,r[e]);"Left"===o._tag?t.push(o.left):u.push(o.right)}return(0,z.separated)(t,u)}},r.altW=function(n){return function(r){return r.concat(n())}},r.alt=r.altW,r.filterWithIndex=function(n){return function(r){return r.filter((function(r,t){return n(t,r)}))}},r.extend=function(n){return function(r){return r.map((function(t,u){return n(r.slice(u))}))}},r.duplicate=(0,r.extend)(g.identity),r.foldMap=c.foldMap,r.foldMapWithIndex=c.foldMapWithIndex,r.reduce=c.reduce,r.reduceWithIndex=c.reduceWithIndex,r.reduceRight=c.reduceRight,r.reduceRightWithIndex=c.reduceRightWithIndex,r.traverse=function(n){var t=(0,r.traverseWithIndex)(n);return function(n){return t((function(r,t){return n(t)}))}},r.sequence=function(n){return function(t){return E(t,n.of((0,r.zero)()),(function(t,u){return n.ap(n.map(t,(function(n){return function(t){return(0,g.pipe)(n,(0,r.append)(t))}})),u)}))}},r.traverseWithIndex=function(n){return function(t){return(0,r.reduceWithIndex)(n.of((0,r.zero)()),(function(u,e,o){return n.ap(n.map(e,(function(n){return function(t){return(0,g.pipe)(n,(0,r.append)(t))}})),t(u,o))}))}},r.wither=function(n){var r=K(n);return function(n){return function(t){return r(t,n)}}},r.wilt=function(n){var r=Q(n);return function(n){return function(t){return r(t,n)}}},r.unfold=function(n,r){for(var t=[],u=n;;){var e=r(u);if(!o.isSome(e))break;var i=e.value,c=i[1];t.push(i[0]),u=c}return t},r.URI="Array",r.getShow=c.getShow,r.getSemigroup=function(){return{concat:function(n,r){return n.concat(r)}}},r.getMonoid=function(){return{concat:(0,r.getSemigroup)().concat,empty:[]}},r.getEq=c.getEq,r.getOrd=c.getOrd,r.getUnionSemigroup=function(n){var r=a(n);return{concat:function(n,t){return r(t)(n)}}},r.getUnionMonoid=function(n){return{concat:(0,r.getUnionSemigroup)(n).concat,empty:[]}},r.getIntersectionSemigroup=function(n){var r=v(n);return{concat:function(n,t){return r(t)(n)}}},r.getDifferenceMagma=function(n){var r=d(n);return{concat:function(n,t){return r(t)(n)}}},r.Functor={URI:r.URI,map:p},r.flap=(0,_.flap)(r.Functor),r.Pointed={URI:r.URI,of:r.of},r.FunctorWithIndex={URI:r.URI,map:p,mapWithIndex:s},r.Apply={URI:r.URI,map:p,ap:l},r.apFirst=(0,w.apFirst)(r.Apply),r.apSecond=(0,w.apSecond)(r.Apply),r.Applicative={URI:r.URI,map:p,ap:l,of:r.of},r.Chain={URI:r.URI,map:p,ap:l,chain:m},r.chainFirst=(0,y.chainFirst)(r.Chain),r.Monad={URI:r.URI,map:p,ap:l,of:r.of,chain:m},r.Unfoldable={URI:r.URI,unfold:r.unfold},r.Alt={URI:r.URI,map:p,alt:W},r.Zero={URI:r.URI,zero:r.zero},r.guard=(0,N.guard)(r.Zero,r.Pointed),r.Alternative={URI:r.URI,map:p,ap:l,of:r.of,alt:W,zero:r.zero},r.Extend={URI:r.URI,map:p,extend:H},r.Compactable={URI:r.URI,compact:r.compact,separate:r.separate},r.Filterable={URI:r.URI,map:p,compact:r.compact,separate:r.separate,filter:h,filterMap:I,partition:b,partitionMap:R},r.FilterableWithIndex={URI:r.URI,map:p,mapWithIndex:s,compact:r.compact,separate:r.separate,filter:h,filterMap:I,partition:b,partitionMap:R,partitionMapWithIndex:j,partitionWithIndex:U,filterMapWithIndex:D,filterWithIndex:F},r.Foldable={URI:r.URI,reduce:E,foldMap:k,reduceRight:q},r.FoldableWithIndex={URI:r.URI,reduce:E,foldMap:k,reduceRight:q,reduceWithIndex:P,foldMapWithIndex:A,reduceRightWithIndex:C},r.Traversable={URI:r.URI,map:p,reduce:E,foldMap:k,reduceRight:q,traverse:$,sequence:r.sequence},r.TraversableWithIndex={URI:r.URI,map:p,mapWithIndex:s,reduce:E,foldMap:k,reduceRight:q,reduceWithIndex:P,foldMapWithIndex:A,reduceRightWithIndex:C,traverse:$,sequence:r.sequence,traverseWithIndex:G};var K=(0,L.witherDefault)(r.Traversable,r.Compactable),Q=(0,L.wiltDefault)(r.Traversable,r.Compactable);r.Witherable={URI:r.URI,map:p,compact:r.compact,separate:r.separate,filter:h,filterMap:I,partition:b,partitionMap:R,reduce:E,foldMap:k,reduceRight:q,traverse:$,sequence:r.sequence,wither:K,wilt:Q},r.chainRecDepthFirst=c.chainRecDepthFirst,r.ChainRecDepthFirst={URI:r.URI,map:p,ap:l,chain:m,chainRec:J},r.chainRecBreadthFirst=c.chainRecBreadthFirst,r.ChainRecBreadthFirst={URI:r.URI,map:p,ap:l,chain:m,chainRec:B},r.filterE=(0,L.filterE)(r.Witherable),r.FromEither={URI:r.URI,fromEither:r.fromEither},r.fromEitherK=(0,x.fromEitherK)(r.FromEither),r.unsafeInsertAt=i.unsafeInsertAt,r.unsafeUpdateAt=function(n,t,u){return(0,r.isNonEmpty)(u)?i.unsafeUpdateAt(n,t,u):[]},r.unsafeDeleteAt=function(n,r){var t=r.slice();return t.splice(n,1),t},r.every=c.every,r.some=function(n){return function(r){return r.some(n)}},r.exists=r.some,r.intercalate=c.intercalate,r.Do=(0,r.of)(o.emptyRecord),r.bindTo=(0,_.bindTo)(r.Functor),r.bind=(0,y.bind)(r.Chain),r.apS=(0,w.apS)(r.Apply),r.range=i.range,r.empty=[],r.cons=i.cons,r.snoc=i.snoc,r.prependToAll=r.prependAll,r.array={URI:r.URI,compact:r.compact,separate:r.separate,map:p,ap:l,of:r.of,chain:m,filter:h,filterMap:I,partition:b,partitionMap:R,mapWithIndex:s,partitionMapWithIndex:j,partitionWithIndex:U,filterMapWithIndex:D,filterWithIndex:F,alt:W,zero:r.zero,unfold:r.unfold,reduce:E,foldMap:k,reduceRight:q,traverse:$,sequence:r.sequence,reduceWithIndex:P,foldMapWithIndex:A,reduceRightWithIndex:C,traverseWithIndex:G,extend:H,wither:K,wilt:Q}})),D=j((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getApplicativeComposition=r.getApplicativeMonoid=void 0,r.getApplicativeMonoid=function(n){var r=(0,w.getApplySemigroup)(n);return function(t){return{concat:r(t).concat,empty:n.of(t.empty)}}},r.getApplicativeComposition=function(n,r){var t=(0,_.getFunctorComposition)(n,r).map,u=(0,w.ap)(n,r);return{map:t,of:function(t){return n.of(r.of(t))},ap:function(n,r){return(0,g.pipe)(n,u(r))}}}})),F=j((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.and=r.or=r.not=r.Contravariant=r.getMonoidAll=r.getSemigroupAll=r.getMonoidAny=r.getSemigroupAny=r.URI=r.contramap=void 0,r.contramap=function(n){return function(r){return(0,g.flow)(n,r)}},r.URI="Predicate",r.getSemigroupAny=function(){return{concat:function(n,t){return(0,g.pipe)(n,(0,r.or)(t))}}},r.getMonoidAny=function(){return{concat:(0,r.getSemigroupAny)().concat,empty:g.constFalse}},r.getSemigroupAll=function(){return{concat:function(n,t){return(0,g.pipe)(n,(0,r.and)(t))}}},r.getMonoidAll=function(){return{concat:(0,r.getSemigroupAll)().concat,empty:g.constTrue}},r.Contravariant={URI:r.URI,contramap:function(n,t){return(0,g.pipe)(n,(0,r.contramap)(t))}},r.not=function(n){return function(r){return!n(r)}},r.or=function(n){return function(r){return function(t){return r(t)||n(t)}}},r.and=function(n){return function(r){return function(t){return r(t)&&n(t)}}}})),H=j((function(n,r){var t=O&&O.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t);var e=Object.getOwnPropertyDescriptor(r,t);e&&!("get"in e?!r.__esModule:e.writable||e.configurable)||(e={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,u,e)}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=O&&O.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=O&&O.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.fromEither=r.MonadThrow=r.throwError=r.Witherable=r.wilt=r.wither=r.Traversable=r.sequence=r.traverse=r.Filterable=r.partitionMap=r.partition=r.filterMap=r.filter=r.Compactable=r.separate=r.compact=r.Extend=r.extend=r.Alternative=r.guard=r.Zero=r.zero=r.Alt=r.alt=r.altW=r.Foldable=r.reduceRight=r.foldMap=r.reduce=r.Monad=r.Chain=r.chain=r.Applicative=r.Apply=r.ap=r.Pointed=r.of=r.Functor=r.map=r.getMonoid=r.getOrd=r.getEq=r.getShow=r.URI=r.getRight=r.getLeft=r.fromPredicate=r.some=r.none=void 0,r.getLastMonoid=r.getFirstMonoid=r.getApplyMonoid=r.getApplySemigroup=r.option=r.mapNullable=r.getRefinement=r.sequenceArray=r.traverseArray=r.traverseArrayWithIndex=r.traverseReadonlyArrayWithIndex=r.traverseReadonlyNonEmptyArrayWithIndex=r.ApT=r.apS=r.bind=r.bindTo=r.Do=r.exists=r.elem=r.toUndefined=r.toNullable=r.chainNullableK=r.fromNullableK=r.tryCatchK=r.tryCatch=r.fromNullable=r.chainFirstEitherK=r.chainEitherK=r.fromEitherK=r.duplicate=r.chainFirst=r.flatten=r.apSecond=r.apFirst=r.flap=r.getOrElse=r.getOrElseW=r.fold=r.match=r.foldW=r.matchW=r.isNone=r.isSome=r.FromEither=void 0;var o=e(M);r.none=o.none,r.some=o.some,r.fromPredicate=function(n){return function(t){return n(t)?(0,r.some)(t):r.none}},r.getLeft=function(n){return"Right"===n._tag?r.none:(0,r.some)(n.left)},r.getRight=function(n){return"Left"===n._tag?r.none:(0,r.some)(n.right)};var i=function(n,t){return(0,g.pipe)(n,(0,r.map)(t))},c=function(n,t){return(0,g.pipe)(n,(0,r.ap)(t))},f=function(n,t){return(0,g.pipe)(n,(0,r.chain)(t))},a=function(n,t,u){return(0,g.pipe)(n,(0,r.reduce)(t,u))},v=function(n){var t=(0,r.foldMap)(n);return function(n,r){return(0,g.pipe)(n,t(r))}},d=function(n,t,u){return(0,g.pipe)(n,(0,r.reduceRight)(t,u))},p=function(n){var t=(0,r.traverse)(n);return function(n,r){return(0,g.pipe)(n,t(r))}},s=function(n,t){return(0,g.pipe)(n,(0,r.alt)(t))},l=function(n,t){return(0,g.pipe)(n,(0,r.filter)(t))},m=function(n,t){return(0,g.pipe)(n,(0,r.filterMap)(t))},h=function(n,t){return(0,g.pipe)(n,(0,r.extend)(t))},I=function(n,t){return(0,g.pipe)(n,(0,r.partition)(t))},b=function(n,t){return(0,g.pipe)(n,(0,r.partitionMap)(t))};r.URI="Option",r.getShow=function(n){return{show:function(t){return(0,r.isNone)(t)?"none":"some(".concat(n.show(t.value),")")}}},r.getEq=function(n){return{equals:function(t,u){return t===u||((0,r.isNone)(t)?(0,r.isNone)(u):!(0,r.isNone)(u)&&n.equals(t.value,u.value))}}},r.getOrd=function(n){return{equals:(0,r.getEq)(n).equals,compare:function(t,u){return t===u?0:(0,r.isSome)(t)?(0,r.isSome)(u)?n.compare(t.value,u.value):1:-1}}},r.getMonoid=function(n){return{concat:function(t,u){return(0,r.isNone)(t)?u:(0,r.isNone)(u)?t:(0,r.some)(n.concat(t.value,u.value))},empty:r.none}},r.map=function(n){return function(t){return(0,r.isNone)(t)?r.none:(0,r.some)(n(t.value))}},r.Functor={URI:r.URI,map:i},r.of=r.some,r.Pointed={URI:r.URI,of:r.of},r.ap=function(n){return function(t){return(0,r.isNone)(t)||(0,r.isNone)(n)?r.none:(0,r.some)(t.value(n.value))}},r.Apply={URI:r.URI,map:i,ap:c},r.Applicative={URI:r.URI,map:i,ap:c,of:r.of},r.chain=function(n){return function(t){return(0,r.isNone)(t)?r.none:n(t.value)}},r.Chain={URI:r.URI,map:i,ap:c,chain:f},r.Monad={URI:r.URI,map:i,ap:c,of:r.of,chain:f},r.reduce=function(n,t){return function(u){return(0,r.isNone)(u)?n:t(n,u.value)}},r.foldMap=function(n){return function(t){return function(u){return(0,r.isNone)(u)?n.empty:t(u.value)}}},r.reduceRight=function(n,t){return function(u){return(0,r.isNone)(u)?n:t(u.value,n)}},r.Foldable={URI:r.URI,reduce:a,foldMap:v,reduceRight:d},r.altW=function(n){return function(t){return(0,r.isNone)(t)?n():t}},r.alt=r.altW,r.Alt={URI:r.URI,map:i,alt:s},r.zero=function(){return r.none},r.Zero={URI:r.URI,zero:r.zero},r.guard=(0,N.guard)(r.Zero,r.Pointed),r.Alternative={URI:r.URI,map:i,ap:c,of:r.of,alt:s,zero:r.zero},r.extend=function(n){return function(t){return(0,r.isNone)(t)?r.none:(0,r.some)(n(t))}},r.Extend={URI:r.URI,map:i,extend:h},r.compact=(0,r.chain)(g.identity);var R=(0,z.separated)(r.none,r.none);r.separate=function(n){return(0,r.isNone)(n)?R:(0,z.separated)((0,r.getLeft)(n.value),(0,r.getRight)(n.value))},r.Compactable={URI:r.URI,compact:r.compact,separate:r.separate},r.filter=function(n){return function(t){return(0,r.isNone)(t)?r.none:n(t.value)?t:r.none}},r.filterMap=function(n){return function(t){return(0,r.isNone)(t)?r.none:n(t.value)}},r.partition=function(n){return function(r){return(0,z.separated)(l(r,(0,F.not)(n)),l(r,n))}},r.partitionMap=function(n){return(0,g.flow)((0,r.map)(n),r.separate)},r.Filterable={URI:r.URI,map:i,compact:r.compact,separate:r.separate,filter:l,filterMap:m,partition:I,partitionMap:b},r.traverse=function(n){return function(t){return function(u){return(0,r.isNone)(u)?n.of(r.none):n.map(t(u.value),r.some)}}},r.sequence=function(n){return function(t){return(0,r.isNone)(t)?n.of(r.none):n.map(t.value,r.some)}},r.Traversable={URI:r.URI,map:i,reduce:a,foldMap:v,reduceRight:d,traverse:p,sequence:r.sequence};var U=(0,L.witherDefault)(r.Traversable,r.Compactable),j=(0,L.wiltDefault)(r.Traversable,r.Compactable);r.wither=function(n){var r=U(n);return function(n){return function(t){return r(t,n)}}},r.wilt=function(n){var r=j(n);return function(n){return function(t){return r(t,n)}}},r.Witherable={URI:r.URI,map:i,reduce:a,foldMap:v,reduceRight:d,traverse:p,sequence:r.sequence,compact:r.compact,separate:r.separate,filter:l,filterMap:m,partition:I,partitionMap:b,wither:U,wilt:j},r.throwError=function(){return r.none},r.MonadThrow={URI:r.URI,map:i,ap:c,of:r.of,chain:f,throwError:r.throwError},r.fromEither=r.getRight,r.FromEither={URI:r.URI,fromEither:r.fromEither},r.isSome=o.isSome,r.isNone=function(n){return"None"===n._tag},r.matchW=function(n,t){return function(u){return(0,r.isNone)(u)?n():t(u.value)}},r.foldW=r.matchW,r.match=r.matchW,r.fold=r.match,r.getOrElseW=function(n){return function(t){return(0,r.isNone)(t)?n():t.value}},r.getOrElse=r.getOrElseW,r.flap=(0,_.flap)(r.Functor),r.apFirst=(0,w.apFirst)(r.Apply),r.apSecond=(0,w.apSecond)(r.Apply),r.flatten=r.compact,r.chainFirst=(0,y.chainFirst)(r.Chain),r.duplicate=(0,r.extend)(g.identity),r.fromEitherK=(0,x.fromEitherK)(r.FromEither),r.chainEitherK=(0,x.chainEitherK)(r.FromEither,r.Chain),r.chainFirstEitherK=(0,x.chainFirstEitherK)(r.FromEither,r.Chain),r.fromNullable=function(n){return null==n?r.none:(0,r.some)(n)},r.tryCatch=function(n){try{return(0,r.some)(n())}catch(n){return r.none}},r.tryCatchK=function(n){return function(){for(var t=[],u=0;u<arguments.length;u++)t[u]=arguments[u];return(0,r.tryCatch)((function(){return n.apply(void 0,t)}))}},r.fromNullableK=function(n){return(0,g.flow)(n,r.fromNullable)},r.chainNullableK=function(n){return function(t){return(0,r.isNone)(t)?r.none:(0,r.fromNullable)(n(t.value))}},r.toNullable=(0,r.match)(g.constNull,g.identity),r.toUndefined=(0,r.match)(g.constUndefined,g.identity),r.elem=function n(t){return function(u,e){if(void 0===e){var o=n(t);return function(n){return o(u,n)}}return!(0,r.isNone)(e)&&t.equals(u,e.value)}},r.exists=function(n){return function(t){return!(0,r.isNone)(t)&&n(t.value)}},r.Do=(0,r.of)(o.emptyRecord),r.bindTo=(0,_.bindTo)(r.Functor),r.bind=(0,y.bind)(r.Chain),r.apS=(0,w.apS)(r.Apply),r.ApT=(0,r.of)(o.emptyReadonlyArray),r.traverseReadonlyNonEmptyArrayWithIndex=function(n){return function(t){var u=n(0,o.head(t));if((0,r.isNone)(u))return r.none;for(var e=[u.value],i=1;i<t.length;i++){var c=n(i,t[i]);if((0,r.isNone)(c))return r.none;e.push(c.value)}return(0,r.some)(e)}},r.traverseReadonlyArrayWithIndex=function(n){var t=(0,r.traverseReadonlyNonEmptyArrayWithIndex)(n);return function(n){return o.isNonEmpty(n)?t(n):r.ApT}},r.traverseArrayWithIndex=r.traverseReadonlyArrayWithIndex,r.traverseArray=function(n){return(0,r.traverseReadonlyArrayWithIndex)((function(r,t){return n(t)}))},r.sequenceArray=(0,r.traverseArray)(g.identity),r.getRefinement=function(n){return function(t){return(0,r.isSome)(n(t))}},r.mapNullable=r.chainNullableK,r.option={URI:r.URI,map:i,of:r.of,ap:c,chain:f,reduce:a,foldMap:v,reduceRight:d,traverse:p,sequence:r.sequence,zero:r.zero,alt:s,extend:h,compact:r.compact,separate:r.separate,filter:l,filterMap:m,partition:I,partitionMap:b,wither:U,wilt:j,throwError:r.throwError},r.getApplySemigroup=(0,w.getApplySemigroup)(r.Apply),r.getApplyMonoid=(0,D.getApplicativeMonoid)(r.Applicative),r.getFirstMonoid=function(){return(0,r.getMonoid)((0,q.first)())},r.getLastMonoid=function(){return(0,r.getMonoid)((0,q.last)())}}));const $=n=>!("isConnected"in n)||n.isConnected,G=(()=>{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($))})(...r)}),2e3)}})(),J=(t,u)=>{const e=((n,r=((n,r)=>n!==r))=>{let t=new Map(Object.entries(null!=n?n:{}));const u={dispose:[],get:[],set:[],reset:[]},e=()=>{t=new Map(Object.entries(null!=n?n:{})),u.reset.forEach((n=>n()))},o=n=>(u.get.forEach((r=>r(n))),t.get(n)),i=(n,e)=>{const o=t.get(n);r(e,o,n)&&(t.set(n,e),u.set.forEach((r=>r(n,e,o))))},c="undefined"==typeof Proxy?{}:new Proxy(n,{get:(n,r)=>o(r),ownKeys:()=>Array.from(t.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,r)=>t.has(r),set:(n,r,t)=>(i(r,t),!0)}),f=(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:c,get:o,set:i,on:f,onChange:(r,t)=>{const u=f("set",((n,u)=>{n===r&&t(u)})),e=f("reset",(()=>t(n[r])));return()=>{u(),e()}},use:(...n)=>{const r=n.reduce(((n,r)=>(r.set&&n.push(f("set",r.set)),r.get&&n.push(f("get",r.get)),r.reset&&n.push(f("reset",r.reset)),r.dispose&&n.push(f("dispose",r.dispose)),n)),[]);return()=>r.forEach((n=>n()))},dispose:()=>{u.dispose.forEach((n=>n())),e()},reset:e,forceUpdate:n=>{const r=t.get(n);u.set.forEach((t=>t(n,r,r)))}}})(t,u);return e.use((()=>{if("function"!=typeof n)return{};const t=new Map;return{dispose:()=>t.clear(),get:r=>{const u=n();u&&((n,r,t)=>{const u=n.get(r);u?u.includes(t)||u.push(t):n.set(r,[t])})(t,r,u)},set:n=>{const u=t.get(n);u&&t.set(n,u.filter(r)),G(t)},reset:()=>{t.forEach((n=>n.forEach(r))),G(t)}}})()),e},{state:B}=J(Object.assign({fallbackStyles:"",pricePrefix:null,currencySign:null,apiPath:null,token:null,locale:"de-DE"},{trackingEnabled:!0}));function K(n,r,t){return function(u){for(var e=Array(t.length+1),o=0;o<t.length;o++)e[o]=t[o];return e[t.length]=u,0===r?n.apply(null,e):K(n,r-1,e)}}var Q={1:function(n){return[n]},2:function(n){return function(r){return[n,r]}},3:function(n){return function(r){return function(t){return[n,r,t]}}},4:function(n){return function(r){return function(t){return function(u){return[n,r,t,u]}}}},5:function(n){return function(r){return function(t){return function(u){return function(e){return[n,r,t,u,e]}}}}}};function V(n){return t.call(Q,n)||(Q[n]=K(u,n-1,[])),Q[n]}function X(n){return function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var u=r.length,e=V(u),o=n.map(r[0],e),i=1;i<u;i++)o=n.ap(o,r[i]);return o}}function Y(n){return function(r){return function(t){return n.fromEither(e(t)?o(r()):i(t.value))}}}var Z=o,nn=i,rn=function(n,r){return a(n,tn(r))},tn=function(n){return function(r){return fn(r)?r:nn(n(r.right))}},un={URI:"Either",map:rn},en={URI:"Either",map:rn,ap:function(n,r){return a(n,function(n){return function(r){return fn(r)?r:fn(n)?n:nn(r.right(n.right))}}(r))}},on=function(n){return function(r){return fn(r)?Z(n(r.left)):r}},cn=Y({URI:"Either",fromEither:f}),fn=c,an=function(n,r){return function(t){return fn(t)?n(t.left):r(t.right)}},vn=v,dn=d,pn=function(n){return{concat:function(r,t){return ln(r)?t:ln(t)?r:dn(n.concat(r.value,t.value))},empty:vn}},sn=function(n){return function(r){return ln(r)?vn:dn(n(r.value))}},ln=function(n){return"None"===n._tag},mn=function(n,r){return function(t){return ln(t)?n():r(t.value)}},hn=mn,In=function(n){return null==n?vn:dn(n)};function bn(n){return function(r){return n.map(r,nn)}}function Rn(n){return function(n,r){return function(t){return function(u){return n.map(u,(function(n){return r.map(n,t)}))}}}(n,un)}function Un(n){return function(n,r){return function(t){return function(u){return n.ap(n.map(u,(function(n){return function(t){return r.ap(n,t)}})),t)}}}(n,en)}function On(n){return function(r){return function(t){return n.chain(t,(function(t){return fn(t)?n.of(t):r(t.right)}))}}}function jn(n){return function(r){return function(t){return n.map(t,on(r))}}}function gn(n,r){return function(t){var u=s(t,n.fromTask);return function(n){return r.chain(n,u)}}}var Mn=function(n){return function(){return Promise.resolve().then(n)}},wn=function(n,r){return a(n,xn(r))},yn=function(n,r){return a(n,_n(r))},xn=function(n){return function(r){return function(){return Promise.resolve().then(r).then(n)}}},_n=function(n){return function(r){return function(){return Promise.all([Promise.resolve().then(r),Promise.resolve().then(n)]).then((function(n){return(0,n[0])(n[1])}))}}},Wn=function(n){return function(){return Promise.resolve(n)}},En={URI:"Task",map:wn},kn={URI:"Task",map:wn,ap:yn},qn={URI:"Task",map:wn,of:Wn,ap:yn,chain:function(n,r){return a(n,function(n){return function(r){return function(){return Promise.resolve().then(r).then((function(r){return n(r)()}))}}}(r))}},Pn=bn(En),Tn=s(Mn,Pn),An=Pn,zn=Wn,Ln=Rn(En),Nn=jn(En),Sn=Un(kn),Cn=On(qn),Dn=Cn,Fn="TaskEither",Hn={URI:Fn,map:function(n,r){return a(n,Ln(r))},ap:function(n,r){return a(n,Sn(r))},chain:function(n,r){return a(n,Cn(r))}},$n=Y({URI:Fn,fromEither:zn}),Gn=gn({URI:Fn,fromIO:Tn,fromTask:An},Hn),Jn=j((function(n,r){var t=O&&O.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t);var e=Object.getOwnPropertyDescriptor(r,t);e&&!("get"in e?!r.__esModule:e.writable||e.configurable)||(e={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,u,e)}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=O&&O.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=O&&O.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.getCompactableComposition=r.separate=r.compact=void 0;var o=e(z);function i(n,r){return function(t){return n.map(t,r.compact)}}function c(n,r,t){var u=i(n,r),e=(0,_.map)(n,t);return function(n){return o.separated(u((0,g.pipe)(n,e(H.getLeft))),u((0,g.pipe)(n,e(H.getRight))))}}r.compact=i,r.separate=c,r.getCompactableComposition=function(n,r){return{map:(0,_.getFunctorComposition)(n,r).map,compact:i(n,r),separate:c(n,r,r)}}})),Bn=j((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.tailRec=void 0,r.tailRec=function(n,r){for(var t=r(n);"Left"===t._tag;)t=r(t.left);return t.right}})),Kn=j((function(n,r){var t=O&&O.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t);var e=Object.getOwnPropertyDescriptor(r,t);e&&!("get"in e?!r.__esModule:e.writable||e.configurable)||(e={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,u,e)}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=O&&O.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=O&&O.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.fold=r.match=r.foldW=r.matchW=r.isRight=r.isLeft=r.fromOption=r.fromPredicate=r.FromEither=r.MonadThrow=r.throwError=r.ChainRec=r.Extend=r.extend=r.Alt=r.alt=r.altW=r.Bifunctor=r.mapLeft=r.bimap=r.Traversable=r.sequence=r.traverse=r.Foldable=r.reduceRight=r.foldMap=r.reduce=r.Monad=r.Chain=r.chain=r.chainW=r.Applicative=r.Apply=r.ap=r.apW=r.Pointed=r.of=r.Functor=r.map=r.getAltValidation=r.getApplicativeValidation=r.getWitherable=r.getFilterable=r.getCompactable=r.getSemigroup=r.getEq=r.getShow=r.URI=r.right=r.left=void 0,r.getValidation=r.getValidationMonoid=r.getValidationSemigroup=r.getApplyMonoid=r.getApplySemigroup=r.either=r.stringifyJSON=r.parseJSON=r.sequenceArray=r.traverseArray=r.traverseArrayWithIndex=r.traverseReadonlyArrayWithIndex=r.traverseReadonlyNonEmptyArrayWithIndex=r.ApT=r.apSW=r.apS=r.bindW=r.bind=r.bindTo=r.Do=r.exists=r.elem=r.toError=r.toUnion=r.chainNullableK=r.fromNullableK=r.tryCatchK=r.tryCatch=r.fromNullable=r.orElse=r.orElseW=r.swap=r.filterOrElseW=r.filterOrElse=r.chainOptionK=r.fromOptionK=r.duplicate=r.flatten=r.flattenW=r.chainFirstW=r.chainFirst=r.apSecondW=r.apSecond=r.apFirstW=r.apFirst=r.flap=r.getOrElse=r.getOrElseW=void 0;var o=e(M);r.left=o.left,r.right=o.right;var i=function(n,t){return(0,g.pipe)(n,(0,r.map)(t))},c=function(n,t){return(0,g.pipe)(n,(0,r.ap)(t))},f=function(n,t){return(0,g.pipe)(n,(0,r.chain)(t))},a=function(n,t,u){return(0,g.pipe)(n,(0,r.reduce)(t,u))},v=function(n){return function(t,u){var e=(0,r.foldMap)(n);return(0,g.pipe)(t,e(u))}},d=function(n,t,u){return(0,g.pipe)(n,(0,r.reduceRight)(t,u))},p=function(n){var t=(0,r.traverse)(n);return function(n,r){return(0,g.pipe)(n,t(r))}},s=function(n,t,u){return(0,g.pipe)(n,(0,r.bimap)(t,u))},l=function(n,t){return(0,g.pipe)(n,(0,r.mapLeft)(t))},m=function(n,t){return(0,g.pipe)(n,(0,r.alt)(t))},h=function(n,t){return(0,g.pipe)(n,(0,r.extend)(t))},I=function(n,t){return(0,Bn.tailRec)(t(n),(function(n){return(0,r.isLeft)(n)?(0,r.right)((0,r.left)(n.left)):(0,r.isLeft)(n.right)?(0,r.left)(t(n.right.left)):(0,r.right)((0,r.right)(n.right.right))}))};r.URI="Either",r.getShow=function(n,t){return{show:function(u){return(0,r.isLeft)(u)?"left(".concat(n.show(u.left),")"):"right(".concat(t.show(u.right),")")}}},r.getEq=function(n,t){return{equals:function(u,e){return u===e||((0,r.isLeft)(u)?(0,r.isLeft)(e)&&n.equals(u.left,e.left):(0,r.isRight)(e)&&t.equals(u.right,e.right))}}},r.getSemigroup=function(n){return{concat:function(t,u){return(0,r.isLeft)(u)?t:(0,r.isLeft)(t)?u:(0,r.right)(n.concat(t.right,u.right))}}},r.getCompactable=function(n){var t=(0,r.left)(n.empty);return{URI:r.URI,_E:void 0,compact:function(n){return(0,r.isLeft)(n)?n:"None"===n.right._tag?t:(0,r.right)(n.right.value)},separate:function(n){return(0,r.isLeft)(n)?(0,z.separated)(n,n):(0,r.isLeft)(n.right)?(0,z.separated)((0,r.right)(n.right.left),t):(0,z.separated)(t,(0,r.right)(n.right.right))}}},r.getFilterable=function(n){var t=(0,r.left)(n.empty),u=(0,r.getCompactable)(n);return{URI:r.URI,_E:void 0,map:i,compact:u.compact,separate:u.separate,filter:function(n,u){return(0,r.isLeft)(n)||u(n.right)?n:t},filterMap:function(n,u){if((0,r.isLeft)(n))return n;var e=u(n.right);return"None"===e._tag?t:(0,r.right)(e.value)},partition:function(n,u){return(0,r.isLeft)(n)?(0,z.separated)(n,n):u(n.right)?(0,z.separated)(t,(0,r.right)(n.right)):(0,z.separated)((0,r.right)(n.right),t)},partitionMap:function(n,u){if((0,r.isLeft)(n))return(0,z.separated)(n,n);var e=u(n.right);return(0,r.isLeft)(e)?(0,z.separated)((0,r.right)(e.left),t):(0,z.separated)(t,(0,r.right)(e.right))}}},r.getWitherable=function(n){var t=(0,r.getFilterable)(n),u=(0,r.getCompactable)(n);return{URI:r.URI,_E:void 0,map:i,compact:t.compact,separate:t.separate,filter:t.filter,filterMap:t.filterMap,partition:t.partition,partitionMap:t.partitionMap,traverse:p,sequence:r.sequence,reduce:a,foldMap:v,reduceRight:d,wither:(0,L.witherDefault)(r.Traversable,u),wilt:(0,L.wiltDefault)(r.Traversable,u)}},r.getApplicativeValidation=function(n){return{URI:r.URI,_E:void 0,map:i,ap:function(t,u){return(0,r.isLeft)(t)?(0,r.isLeft)(u)?(0,r.left)(n.concat(t.left,u.left)):t:(0,r.isLeft)(u)?u:(0,r.right)(t.right(u.right))},of:r.of}},r.getAltValidation=function(n){return{URI:r.URI,_E:void 0,map:i,alt:function(t,u){if((0,r.isRight)(t))return t;var e=u();return(0,r.isLeft)(e)?(0,r.left)(n.concat(t.left,e.left)):e}}},r.map=function(n){return function(t){return(0,r.isLeft)(t)?t:(0,r.right)(n(t.right))}},r.Functor={URI:r.URI,map:i},r.of=r.right,r.Pointed={URI:r.URI,of:r.of},r.apW=function(n){return function(t){return(0,r.isLeft)(t)?t:(0,r.isLeft)(n)?n:(0,r.right)(t.right(n.right))}},r.ap=r.apW,r.Apply={URI:r.URI,map:i,ap:c},r.Applicative={URI:r.URI,map:i,ap:c,of:r.of},r.chainW=function(n){return function(t){return(0,r.isLeft)(t)?t:n(t.right)}},r.chain=r.chainW,r.Chain={URI:r.URI,map:i,ap:c,chain:f},r.Monad={URI:r.URI,map:i,ap:c,of:r.of,chain:f},r.reduce=function(n,t){return function(u){return(0,r.isLeft)(u)?n:t(n,u.right)}},r.foldMap=function(n){return function(t){return function(u){return(0,r.isLeft)(u)?n.empty:t(u.right)}}},r.reduceRight=function(n,t){return function(u){return(0,r.isLeft)(u)?n:t(u.right,n)}},r.Foldable={URI:r.URI,reduce:a,foldMap:v,reduceRight:d},r.traverse=function(n){return function(t){return function(u){return(0,r.isLeft)(u)?n.of((0,r.left)(u.left)):n.map(t(u.right),r.right)}}},r.sequence=function(n){return function(t){return(0,r.isLeft)(t)?n.of((0,r.left)(t.left)):n.map(t.right,r.right)}},r.Traversable={URI:r.URI,map:i,reduce:a,foldMap:v,reduceRight:d,traverse:p,sequence:r.sequence},r.bimap=function(n,t){return function(u){return(0,r.isLeft)(u)?(0,r.left)(n(u.left)):(0,r.right)(t(u.right))}},r.mapLeft=function(n){return function(t){return(0,r.isLeft)(t)?(0,r.left)(n(t.left)):t}},r.Bifunctor={URI:r.URI,bimap:s,mapLeft:l},r.altW=function(n){return function(t){return(0,r.isLeft)(t)?n():t}},r.alt=r.altW,r.Alt={URI:r.URI,map:i,alt:m},r.extend=function(n){return function(t){return(0,r.isLeft)(t)?t:(0,r.right)(n(t))}},r.Extend={URI:r.URI,map:i,extend:h},r.ChainRec={URI:r.URI,map:i,ap:c,chain:f,chainRec:I},r.throwError=r.left,r.MonadThrow={URI:r.URI,map:i,ap:c,of:r.of,chain:f,throwError:r.throwError},r.FromEither={URI:r.URI,fromEither:g.identity},r.fromPredicate=(0,x.fromPredicate)(r.FromEither),r.fromOption=(0,x.fromOption)(r.FromEither),r.isLeft=o.isLeft,r.isRight=o.isRight,r.matchW=function(n,t){return function(u){return(0,r.isLeft)(u)?n(u.left):t(u.right)}},r.foldW=r.matchW,r.match=r.matchW,r.fold=r.match,r.getOrElseW=function(n){return function(t){return(0,r.isLeft)(t)?n(t.left):t.right}},r.getOrElse=r.getOrElseW,r.flap=(0,_.flap)(r.Functor),r.apFirst=(0,w.apFirst)(r.Apply),r.apFirstW=r.apFirst,r.apSecond=(0,w.apSecond)(r.Apply),r.apSecondW=r.apSecond,r.chainFirst=(0,y.chainFirst)(r.Chain),r.chainFirstW=r.chainFirst,r.flattenW=(0,r.chainW)(g.identity),r.flatten=r.flattenW,r.duplicate=(0,r.extend)(g.identity),r.fromOptionK=(0,x.fromOptionK)(r.FromEither),r.chainOptionK=(0,x.chainOptionK)(r.FromEither,r.Chain),r.filterOrElse=(0,x.filterOrElse)(r.FromEither,r.Chain),r.filterOrElseW=r.filterOrElse,r.swap=function(n){return(0,r.isLeft)(n)?(0,r.right)(n.left):(0,r.left)(n.right)},r.orElseW=function(n){return function(t){return(0,r.isLeft)(t)?n(t.left):t}},r.orElse=r.orElseW,r.fromNullable=function(n){return function(t){return null==t?(0,r.left)(n):(0,r.right)(t)}},r.tryCatch=function(n,t){try{return(0,r.right)(n())}catch(n){return(0,r.left)(t(n))}},r.tryCatchK=function(n,t){return function(){for(var u=[],e=0;e<arguments.length;e++)u[e]=arguments[e];return(0,r.tryCatch)((function(){return n.apply(void 0,u)}),t)}},r.fromNullableK=function(n){var t=(0,r.fromNullable)(n);return function(n){return(0,g.flow)(n,t)}},r.chainNullableK=function(n){var t=(0,r.fromNullableK)(n);return function(n){return(0,r.chain)(t(n))}},r.toUnion=(0,r.foldW)(g.identity,g.identity),r.toError=function(n){return n instanceof Error?n:new Error(String(n))},r.elem=function n(t){return function(u,e){if(void 0===e){var o=n(t);return function(n){return o(u,n)}}return!(0,r.isLeft)(e)&&t.equals(u,e.right)}},r.exists=function(n){return function(t){return!(0,r.isLeft)(t)&&n(t.right)}},r.Do=(0,r.of)(o.emptyRecord),r.bindTo=(0,_.bindTo)(r.Functor),r.bind=(0,y.bind)(r.Chain),r.bindW=r.bind,r.apS=(0,w.apS)(r.Apply),r.apSW=r.apS,r.ApT=(0,r.of)(o.emptyReadonlyArray),r.traverseReadonlyNonEmptyArrayWithIndex=function(n){return function(t){var u=n(0,o.head(t));if((0,r.isLeft)(u))return u;for(var e=[u.right],i=1;i<t.length;i++){var c=n(i,t[i]);if((0,r.isLeft)(c))return c;e.push(c.right)}return(0,r.right)(e)}},r.traverseReadonlyArrayWithIndex=function(n){var t=(0,r.traverseReadonlyNonEmptyArrayWithIndex)(n);return function(n){return o.isNonEmpty(n)?t(n):r.ApT}},r.traverseArrayWithIndex=r.traverseReadonlyArrayWithIndex,r.traverseArray=function(n){return(0,r.traverseReadonlyArrayWithIndex)((function(r,t){return n(t)}))},r.sequenceArray=(0,r.traverseArray)(g.identity),r.parseJSON=function(n,t){return(0,r.tryCatch)((function(){return JSON.parse(n)}),t)},r.stringifyJSON=function(n,t){return(0,r.tryCatch)((function(){var r=JSON.stringify(n);if("string"!=typeof r)throw new Error("Converting unsupported structure to JSON");return r}),t)},r.either={URI:r.URI,map:i,of:r.of,ap:c,chain:f,reduce:a,foldMap:v,reduceRight:d,traverse:p,sequence:r.sequence,bimap:s,mapLeft:l,alt:m,extend:h,chainRec:I,throwError:r.throwError},r.getApplySemigroup=(0,w.getApplySemigroup)(r.Apply),r.getApplyMonoid=(0,D.getApplicativeMonoid)(r.Applicative),r.getValidationSemigroup=function(n,t){return(0,w.getApplySemigroup)((0,r.getApplicativeValidation)(n))(t)},r.getValidationMonoid=function(n,t){return(0,D.getApplicativeMonoid)((0,r.getApplicativeValidation)(n))(t)},r.getValidation=function(n){var t=(0,r.getApplicativeValidation)(n).ap,u=(0,r.getAltValidation)(n).alt;return{URI:r.URI,_E:void 0,map:i,of:r.of,chain:f,bimap:s,mapLeft:l,reduce:a,foldMap:v,reduceRight:d,extend:h,traverse:p,sequence:r.sequence,chainRec:I,throwError:r.throwError,ap:t,alt:u}}})),Qn=j((function(n,r){var t=O&&O.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t);var e=Object.getOwnPropertyDescriptor(r,t);e&&!("get"in e?!r.__esModule:e.writable||e.configurable)||(e={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,u,e)}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=O&&O.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=O&&O.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.getEitherM=r.toUnion=r.swap=r.orLeft=r.orElseFirst=r.orElse=r.getOrElse=r.matchE=r.match=r.altValidation=r.mapLeft=r.bimap=r.alt=r.chain=r.ap=r.map=r.chainNullableK=r.fromNullableK=r.fromNullable=r.leftF=r.rightF=r.left=r.right=void 0;var o=e(Kn);function i(n){return(0,g.flow)(o.right,n.of)}function c(n){return(0,g.flow)(o.left,n.of)}function f(n){return function(r){return n.map(r,o.right)}}function a(n){return function(r){return n.map(r,o.left)}}function v(n){return function(r){return(0,g.flow)(o.fromNullable(r),n.of)}}function d(n){var r=v(n);return function(n){var t=r(n);return function(n){return(0,g.flow)(n,t)}}}function p(n){return(0,_.map)(n,o.Functor)}function s(n){return(0,w.ap)(n,o.Apply)}function l(n){return function(r){return function(t){return n.chain(t,(function(t){return o.isLeft(t)?n.of(t):r(t.right)}))}}}function m(n){return function(r){return function(t){return n.chain(t,(function(t){return o.isLeft(t)?r():n.of(t)}))}}}function h(n){return function(r,t){return function(u){return n.map(u,o.bimap(r,t))}}}function I(n){return function(r){return function(t){return n.map(t,o.mapLeft(r))}}}function b(n){return function(r,t){return function(u){return n.chain(u,o.match(r,t))}}}function R(n){return function(r){return function(t){return n.chain(t,o.match(r,n.of))}}}function U(n){return function(r){return function(t){return n.chain(t,(function(t){return o.isLeft(t)?r(t.left):n.of(t)}))}}}function j(n){return function(r){return n.map(r,o.swap)}}r.right=i,r.left=c,r.rightF=f,r.leftF=a,r.fromNullable=v,r.fromNullableK=d,r.chainNullableK=function(n){var r=l(n),t=d(n);return function(n){var u=t(n);return function(n){return r(u(n))}}},r.map=p,r.ap=s,r.chain=l,r.alt=m,r.bimap=h,r.mapLeft=I,r.altValidation=function(n,r){return function(t){return function(u){return n.chain(u,o.match((function(u){return n.map(t(),o.mapLeft((function(n){return r.concat(u,n)})))}),i(n)))}}},r.match=function(n){return function(r,t){return function(u){return n.map(u,o.match(r,t))}}},r.matchE=b,r.getOrElse=R,r.orElse=U,r.orElseFirst=function(n){var r=U(n);return function(t){return r((function(r){return n.map(t(r),(function(n){return o.isLeft(n)?n:o.left(r)}))}))}},r.orLeft=function(n){return function(r){return function(t){return n.chain(t,o.match((function(t){return n.map(r(t),o.left)}),(function(r){return n.of(o.right(r))})))}}},r.swap=j,r.toUnion=function(n){return function(r){return n.map(r,o.toUnion)}},r.getEitherM=function(n){var r=s(n),t=p(n),u=l(n),e=m(n),o=h(n),v=I(n),d=b(n),O=R(n),M=U(n);return{map:function(n,r){return(0,g.pipe)(n,t(r))},ap:function(n,t){return(0,g.pipe)(n,r(t))},of:i(n),chain:function(n,r){return(0,g.pipe)(n,u(r))},alt:function(n,r){return(0,g.pipe)(n,e(r))},bimap:function(n,r,t){return(0,g.pipe)(n,o(r,t))},mapLeft:function(n,r){return(0,g.pipe)(n,v(r))},fold:function(n,r,t){return(0,g.pipe)(n,d(r,t))},getOrElse:function(n,r){return(0,g.pipe)(n,O(r))},orElse:function(n,r){return(0,g.pipe)(n,M(r))},swap:j(n),rightM:f(n),leftM:a(n),left:c(n)}}})),Vn=j((function(n,r){function t(n,r){return function(t){return function(u){return n.map(u,(function(n){return r.filter(n,t)}))}}}function u(n,r){return function(t){return function(u){return n.map(u,(function(n){return r.filterMap(n,t)}))}}}function e(n,r){var u=t(n,r);return function(n){var r=u((0,F.not)(n)),t=u(n);return function(n){return(0,z.separated)(r(n),t(n))}}}function o(n,r){var t=u(n,r);return function(n){return function(r){return(0,z.separated)((0,g.pipe)(r,t((function(r){return(0,H.getLeft)(n(r))}))),(0,g.pipe)(r,t((function(r){return(0,H.getRight)(n(r))}))))}}}Object.defineProperty(r,"__esModule",{value:!0}),r.getFilterableComposition=r.partitionMap=r.partition=r.filterMap=r.filter=void 0,r.filter=t,r.filterMap=u,r.partition=e,r.partitionMap=o,r.getFilterableComposition=function(n,r){var i=(0,_.getFunctorComposition)(n,r).map,c=(0,Jn.compact)(n,r),f=(0,Jn.separate)(n,r,r),a=t(n,r),v=u(n,r),d=e(n,r),p=o(n,r);return{map:i,compact:c,separate:f,filter:function(n,r){return(0,g.pipe)(n,a(r))},filterMap:function(n,r){return(0,g.pipe)(n,v(r))},partition:function(n,r){return(0,g.pipe)(n,d(r))},partitionMap:function(n,r){return(0,g.pipe)(n,p(r))}}}})),Xn=j((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.chainFirstIOK=r.chainIOK=r.fromIOK=void 0,r.fromIOK=function(n){return function(r){return(0,g.flow)(r,n.fromIO)}},r.chainIOK=function(n,r){return function(t){var u=(0,g.flow)(t,n.fromIO);return function(n){return r.chain(n,u)}}},r.chainFirstIOK=function(n,r){var t=(0,y.chainFirst)(r);return function(r){return t((0,g.flow)(r,n.fromIO))}}})),Yn=j((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.chainFirstTaskK=r.chainTaskK=r.fromTaskK=void 0,r.fromTaskK=function(n){return function(r){return(0,g.flow)(r,n.fromTask)}},r.chainTaskK=function(n,r){return function(t){var u=(0,g.flow)(t,n.fromTask);return function(n){return r.chain(n,u)}}},r.chainFirstTaskK=function(n,r){var t=(0,y.chainFirst)(r);return function(r){return t((0,g.flow)(r,n.fromTask))}}})),Zn=j((function(n,r){var t=O&&O.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t);var e=Object.getOwnPropertyDescriptor(r,t);e&&!("get"in e?!r.__esModule:e.writable||e.configurable)||(e={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,u,e)}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=O&&O.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=O&&O.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.getMonoid=r.getSemigroup=r.taskSeq=r.task=r.sequenceSeqArray=r.traverseSeqArray=r.traverseSeqArrayWithIndex=r.sequenceArray=r.traverseArray=r.traverseArrayWithIndex=r.traverseReadonlyArrayWithIndexSeq=r.traverseReadonlyNonEmptyArrayWithIndexSeq=r.traverseReadonlyArrayWithIndex=r.traverseReadonlyNonEmptyArrayWithIndex=r.ApT=r.apS=r.bind=r.bindTo=r.Do=r.never=r.FromTask=r.chainFirstIOK=r.chainIOK=r.fromIOK=r.FromIO=r.chainFirst=r.MonadTask=r.fromTask=r.MonadIO=r.Monad=r.Chain=r.ApplicativeSeq=r.ApplySeq=r.ApplicativePar=r.apSecond=r.apFirst=r.ApplyPar=r.Pointed=r.flap=r.Functor=r.getRaceMonoid=r.URI=r.flatten=r.chain=r.of=r.ap=r.map=r.delay=r.fromIO=void 0;var o=e(M);r.fromIO=function(n){return function(){return Promise.resolve().then(n)}},r.delay=function(n){return function(r){return function(){return new Promise((function(t){setTimeout((function(){Promise.resolve().then(r).then(t)}),n)}))}}};var i=function(n,t){return(0,g.pipe)(n,(0,r.map)(t))},c=function(n,t){return(0,g.pipe)(n,(0,r.ap)(t))},f=function(n,t){return(0,g.pipe)(n,(0,r.chain)((function(n){return(0,g.pipe)(t,(0,r.map)(n))})))},a=function(n,t){return(0,g.pipe)(n,(0,r.chain)(t))};r.map=function(n){return function(r){return function(){return Promise.resolve().then(r).then(n)}}},r.ap=function(n){return function(r){return function(){return Promise.all([Promise.resolve().then(r),Promise.resolve().then(n)]).then((function(n){return(0,n[0])(n[1])}))}}},r.of=function(n){return function(){return Promise.resolve(n)}},r.chain=function(n){return function(r){return function(){return Promise.resolve().then(r).then((function(r){return n(r)()}))}}},r.flatten=(0,r.chain)(g.identity),r.URI="Task",r.getRaceMonoid=function(){return{concat:function(n,r){return function(){return Promise.race([Promise.resolve().then(n),Promise.resolve().then(r)])}},empty:r.never}},r.Functor={URI:r.URI,map:i},r.flap=(0,_.flap)(r.Functor),r.Pointed={URI:r.URI,of:r.of},r.ApplyPar={URI:r.URI,map:i,ap:c},r.apFirst=(0,w.apFirst)(r.ApplyPar),r.apSecond=(0,w.apSecond)(r.ApplyPar),r.ApplicativePar={URI:r.URI,map:i,ap:c,of:r.of},r.ApplySeq={URI:r.URI,map:i,ap:f},r.ApplicativeSeq={URI:r.URI,map:i,ap:f,of:r.of},r.Chain={URI:r.URI,map:i,ap:c,chain:a},r.Monad={URI:r.URI,map:i,of:r.of,ap:c,chain:a},r.MonadIO={URI:r.URI,map:i,of:r.of,ap:c,chain:a,fromIO:r.fromIO},r.fromTask=g.identity,r.MonadTask={URI:r.URI,map:i,of:r.of,ap:c,chain:a,fromIO:r.fromIO,fromTask:r.fromTask},r.chainFirst=(0,y.chainFirst)(r.Chain),r.FromIO={URI:r.URI,fromIO:r.fromIO},r.fromIOK=(0,Xn.fromIOK)(r.FromIO),r.chainIOK=(0,Xn.chainIOK)(r.FromIO,r.Chain),r.chainFirstIOK=(0,Xn.chainFirstIOK)(r.FromIO,r.Chain),r.FromTask={URI:r.URI,fromIO:r.fromIO,fromTask:r.fromTask},r.never=function(){return new Promise((function(){}))},r.Do=(0,r.of)(o.emptyRecord),r.bindTo=(0,_.bindTo)(r.Functor),r.bind=(0,y.bind)(r.Chain),r.apS=(0,w.apS)(r.ApplyPar),r.ApT=(0,r.of)(o.emptyReadonlyArray),r.traverseReadonlyNonEmptyArrayWithIndex=function(n){return function(r){return function(){return Promise.all(r.map((function(r,t){return Promise.resolve().then((function(){return n(t,r)()}))})))}}},r.traverseReadonlyArrayWithIndex=function(n){var t=(0,r.traverseReadonlyNonEmptyArrayWithIndex)(n);return function(n){return o.isNonEmpty(n)?t(n):r.ApT}},r.traverseReadonlyNonEmptyArrayWithIndexSeq=function(n){return function(r){return function(){return o.tail(r).reduce((function(r,t,u){return r.then((function(r){return Promise.resolve().then(n(u+1,t)).then((function(n){return r.push(n),r}))}))}),Promise.resolve().then(n(0,o.head(r))).then(o.singleton))}}},r.traverseReadonlyArrayWithIndexSeq=function(n){var t=(0,r.traverseReadonlyNonEmptyArrayWithIndexSeq)(n);return function(n){return o.isNonEmpty(n)?t(n):r.ApT}},r.traverseArrayWithIndex=r.traverseReadonlyArrayWithIndex,r.traverseArray=function(n){return(0,r.traverseReadonlyArrayWithIndex)((function(r,t){return n(t)}))},r.sequenceArray=(0,r.traverseArray)(g.identity),r.traverseSeqArrayWithIndex=r.traverseReadonlyArrayWithIndexSeq,r.traverseSeqArray=function(n){return(0,r.traverseReadonlyArrayWithIndexSeq)((function(r,t){return n(t)}))},r.sequenceSeqArray=(0,r.traverseSeqArray)(g.identity),r.task={URI:r.URI,map:i,of:r.of,ap:c,chain:a,fromIO:r.fromIO,fromTask:r.fromTask},r.taskSeq={URI:r.URI,map:i,of:r.of,ap:f,chain:a,fromIO:r.fromIO,fromTask:r.fromTask},r.getSemigroup=(0,w.getApplySemigroup)(r.ApplySeq),r.getMonoid=(0,D.getApplicativeMonoid)(r.ApplicativeSeq)})),nr=j((function(n,r){var t=O&&O.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t);var e=Object.getOwnPropertyDescriptor(r,t);e&&!("get"in e?!r.__esModule:e.writable||e.configurable)||(e={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,u,e)}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=O&&O.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=O&&O.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r},o=O&&O.__awaiter||function(n,r,t,u){return new(t||(t=Promise))((function(e,o){function i(n){try{f(u.next(n))}catch(n){o(n)}}function c(n){try{f(u.throw(n))}catch(n){o(n)}}function f(n){var r;n.done?e(n.value):(r=n.value,r instanceof t?r:new t((function(n){n(r)}))).then(i,c)}f((u=u.apply(n,r||[])).next())}))},i=O&&O.__generator||function(n,r){var t,u,e,o,i={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,u&&(e=2&o[0]?u.return:o[0]?u.throw||((e=u.return)&&e.call(u),0):u.next)&&!(e=e.call(u,o[1])).done)return e;switch(u=0,e&&(o=[2&o[0],e.value]),o[0]){case 0:case 1:e=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,u=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!((e=(e=i.trys).length>0&&e[e.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!e||o[1]>e[0]&&o[1]<e[3])){i.label=o[1];break}if(6===o[0]&&i.label<e[1]){i.label=e[1],e=o;break}if(e&&i.label<e[2]){i.label=e[2],i.ops.push(o);break}e[2]&&i.ops.pop(),i.trys.pop();continue}o=r.call(n,i)}catch(n){o=[6,n],u=0}finally{t=e=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.altW=r.alt=r.flatten=r.flattenW=r.chainW=r.chain=r.apW=r.ap=r.mapLeft=r.bimap=r.map=r.chainIOEitherK=r.chainIOEitherKW=r.fromIOEitherK=r.chainTaskOptionK=r.chainTaskOptionKW=r.fromTaskOptionK=r.swap=r.orLeft=r.orElseFirstTaskK=r.orElseFirstIOK=r.orElseFirstW=r.orElseFirst=r.orElseW=r.orElse=r.chainNullableK=r.fromNullableK=r.fromNullable=r.toUnion=r.tryCatchK=r.tryCatch=r.getOrElseW=r.getOrElse=r.foldW=r.matchEW=r.fold=r.matchE=r.matchW=r.match=r.fromTaskOption=r.fromIOEither=r.fromEither=r.fromTask=r.fromIO=r.leftIO=r.rightIO=r.leftTask=r.rightTask=r.right=r.left=void 0,r.bracketW=r.bracket=r.taskify=r.chainFirstTaskK=r.chainTaskK=r.fromTaskK=r.FromTask=r.chainFirstIOK=r.chainIOK=r.fromIOK=r.FromIO=r.fromEitherK=r.filterOrElseW=r.filterOrElse=r.fromPredicate=r.chainFirstEitherKW=r.chainFirstEitherK=r.chainEitherKW=r.chainEitherK=r.chainOptionK=r.fromOptionK=r.fromOption=r.FromEither=r.Alt=r.Bifunctor=r.chainFirstW=r.chainFirst=r.MonadThrow=r.MonadTask=r.MonadIO=r.Monad=r.Chain=r.ApplicativeSeq=r.ApplySeq=r.ApplicativePar=r.apSecondW=r.apSecond=r.apFirstW=r.apFirst=r.ApplyPar=r.Pointed=r.flap=r.Functor=r.getFilterable=r.getCompactable=r.getAltTaskValidation=r.getApplicativeTaskValidation=r.URI=r.throwError=r.of=void 0,r.getTaskValidation=r.getSemigroup=r.getApplyMonoid=r.getApplySemigroup=r.taskEitherSeq=r.taskEither=r.sequenceSeqArray=r.traverseSeqArray=r.traverseSeqArrayWithIndex=r.sequenceArray=r.traverseArray=r.traverseArrayWithIndex=r.traverseReadonlyArrayWithIndexSeq=r.traverseReadonlyNonEmptyArrayWithIndexSeq=r.traverseReadonlyArrayWithIndex=r.traverseReadonlyNonEmptyArrayWithIndex=r.ApT=r.apSW=r.apS=r.bindW=r.bind=r.bindTo=r.Do=void 0;var c=e(Kn),f=e(Qn),a=e(M),v=e(Zn);r.left=f.left(v.Pointed),r.right=f.right(v.Pointed),r.rightTask=f.rightF(v.Functor),r.leftTask=f.leftF(v.Functor),r.rightIO=(0,g.flow)(v.fromIO,r.rightTask),r.leftIO=(0,g.flow)(v.fromIO,r.leftTask),r.fromIO=r.rightIO,r.fromTask=r.rightTask,r.fromEither=v.of,r.fromIOEither=v.fromIO,r.fromTaskOption=function(n){return v.map(c.fromOption(n))},r.match=f.match(v.Functor),r.matchW=r.match,r.matchE=f.matchE(v.Monad),r.fold=r.matchE,r.matchEW=r.matchE,r.foldW=r.matchEW,r.getOrElse=f.getOrElse(v.Monad),r.getOrElseW=r.getOrElse,r.tryCatch=function(n,r){return function(){return o(void 0,void 0,void 0,(function(){var t;return i(this,(function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,n().then(a.right)];case 1:return[2,u.sent()];case 2:return t=u.sent(),[2,a.left(r(t))];case 3:return[2]}}))}))}},r.tryCatchK=function(n,t){return function(){for(var u=[],e=0;e<arguments.length;e++)u[e]=arguments[e];return(0,r.tryCatch)((function(){return n.apply(void 0,u)}),t)}},r.toUnion=f.toUnion(v.Functor),r.fromNullable=f.fromNullable(v.Pointed),r.fromNullableK=f.fromNullableK(v.Pointed),r.chainNullableK=f.chainNullableK(v.Monad),r.orElse=f.orElse(v.Monad),r.orElseW=r.orElse,r.orElseFirst=f.orElseFirst(v.Monad),r.orElseFirstW=r.orElseFirst,r.orElseFirstIOK=function(n){return(0,r.orElseFirst)((0,r.fromIOK)(n))},r.orElseFirstTaskK=function(n){return(0,r.orElseFirst)((0,r.fromTaskK)(n))},r.orLeft=f.orLeft(v.Monad),r.swap=f.swap(v.Functor),r.fromTaskOptionK=function(n){var t=(0,r.fromTaskOption)(n);return function(n){return(0,g.flow)(n,t)}},r.chainTaskOptionKW=function(n){return function(t){return function(u){return(0,g.pipe)(u,(0,r.chain)((0,r.fromTaskOptionK)(n)(t)))}}},r.chainTaskOptionK=r.chainTaskOptionKW,r.fromIOEitherK=function(n){return(0,g.flow)(n,r.fromIOEither)},r.chainIOEitherKW=function(n){return(0,r.chainW)((0,r.fromIOEitherK)(n))},r.chainIOEitherK=r.chainIOEitherKW;var d=function(n,t){return(0,g.pipe)(n,(0,r.map)(t))},p=function(n,t){return(0,g.pipe)(n,(0,r.ap)(t))},s=function(n,t){return(0,g.pipe)(n,(0,r.chain)((function(n){return(0,g.pipe)(t,(0,r.map)(n))})))},l=function(n,t){return(0,g.pipe)(n,(0,r.chain)(t))},m=function(n,t,u){return(0,g.pipe)(n,(0,r.bimap)(t,u))},h=function(n,t){return(0,g.pipe)(n,(0,r.mapLeft)(t))},I=function(n,t){return(0,g.pipe)(n,(0,r.alt)(t))};function b(n,t){var u=(0,w.ap)(n,c.getApplicativeValidation(t));return{URI:r.URI,_E:void 0,map:d,ap:function(n,r){return(0,g.pipe)(n,u(r))},of:r.of}}function R(n){var t=f.altValidation(v.Monad,n);return{URI:r.URI,_E:void 0,map:d,alt:function(n,r){return(0,g.pipe)(n,t(r))}}}r.map=f.map(v.Functor),r.bimap=f.bimap(v.Functor),r.mapLeft=f.mapLeft(v.Functor),r.ap=f.ap(v.ApplyPar),r.apW=r.ap,r.chain=f.chain(v.Monad),r.chainW=r.chain,r.flattenW=(0,r.chainW)(g.identity),r.flatten=r.flattenW,r.alt=f.alt(v.Monad),r.altW=r.alt,r.of=r.right,r.throwError=r.left,r.URI="TaskEither",r.getApplicativeTaskValidation=b,r.getAltTaskValidation=R,r.getCompactable=function(n){var t=c.getCompactable(n);return{URI:r.URI,_E:void 0,compact:(0,Jn.compact)(v.Functor,t),separate:(0,Jn.separate)(v.Functor,t,c.Functor)}},r.getFilterable=function(n){var t=c.getFilterable(n),u=(0,r.getCompactable)(n),e=(0,Vn.filter)(v.Functor,t),o=(0,Vn.filterMap)(v.Functor,t),i=(0,Vn.partition)(v.Functor,t),f=(0,Vn.partitionMap)(v.Functor,t);return{URI:r.URI,_E:void 0,map:d,compact:u.compact,separate:u.separate,filter:function(n,r){return(0,g.pipe)(n,e(r))},filterMap:function(n,r){return(0,g.pipe)(n,o(r))},partition:function(n,r){return(0,g.pipe)(n,i(r))},partitionMap:function(n,r){return(0,g.pipe)(n,f(r))}}},r.Functor={URI:r.URI,map:d},r.flap=(0,_.flap)(r.Functor),r.Pointed={URI:r.URI,of:r.of},r.ApplyPar={URI:r.URI,map:d,ap:p},r.apFirst=(0,w.apFirst)(r.ApplyPar),r.apFirstW=r.apFirst,r.apSecond=(0,w.apSecond)(r.ApplyPar),r.apSecondW=r.apSecond,r.ApplicativePar={URI:r.URI,map:d,ap:p,of:r.of},r.ApplySeq={URI:r.URI,map:d,ap:s},r.ApplicativeSeq={URI:r.URI,map:d,ap:s,of:r.of},r.Chain={URI:r.URI,map:d,ap:p,chain:l},r.Monad={URI:r.URI,map:d,ap:p,chain:l,of:r.of},r.MonadIO={URI:r.URI,map:d,ap:p,chain:l,of:r.of,fromIO:r.fromIO},r.MonadTask={URI:r.URI,map:d,ap:p,chain:l,of:r.of,fromIO:r.fromIO,fromTask:r.fromTask},r.MonadThrow={URI:r.URI,map:d,ap:p,chain:l,of:r.of,throwError:r.throwError},r.chainFirst=(0,y.chainFirst)(r.Chain),r.chainFirstW=r.chainFirst,r.Bifunctor={URI:r.URI,bimap:m,mapLeft:h},r.Alt={URI:r.URI,map:d,alt:I},r.FromEither={URI:r.URI,fromEither:r.fromEither},r.fromOption=(0,x.fromOption)(r.FromEither),r.fromOptionK=(0,x.fromOptionK)(r.FromEither),r.chainOptionK=(0,x.chainOptionK)(r.FromEither,r.Chain),r.chainEitherK=(0,x.chainEitherK)(r.FromEither,r.Chain),r.chainEitherKW=r.chainEitherK,r.chainFirstEitherK=(0,x.chainFirstEitherK)(r.FromEither,r.Chain),r.chainFirstEitherKW=r.chainFirstEitherK,r.fromPredicate=(0,x.fromPredicate)(r.FromEither),r.filterOrElse=(0,x.filterOrElse)(r.FromEither,r.Chain),r.filterOrElseW=r.filterOrElse,r.fromEitherK=(0,x.fromEitherK)(r.FromEither),r.FromIO={URI:r.URI,fromIO:r.fromIO},r.fromIOK=(0,Xn.fromIOK)(r.FromIO),r.chainIOK=(0,Xn.chainIOK)(r.FromIO,r.Chain),r.chainFirstIOK=(0,Xn.chainFirstIOK)(r.FromIO,r.Chain),r.FromTask={URI:r.URI,fromIO:r.fromIO,fromTask:r.fromTask},r.fromTaskK=(0,Yn.fromTaskK)(r.FromTask),r.chainTaskK=(0,Yn.chainTaskK)(r.FromTask,r.Chain),r.chainFirstTaskK=(0,Yn.chainFirstTaskK)(r.FromTask,r.Chain),r.taskify=function(n){return function(){var r=Array.prototype.slice.call(arguments);return function(){return new Promise((function(t){n.apply(null,r.concat((function(n,r){return t(null!=n?a.left(n):a.right(r))})))}))}}},r.bracket=function(n,t,u){return(0,r.bracketW)(n,t,u)},r.bracketW=function(n,t,u){return(0,g.pipe)(n,(0,r.chainW)((function(n){return(0,g.pipe)(t(n),v.chain((function(t){return(0,g.pipe)(u(n,t),(0,r.chainW)((function(){return v.of(t)})))})))})))},r.Do=(0,r.of)(a.emptyRecord),r.bindTo=(0,_.bindTo)(r.Functor),r.bind=(0,y.bind)(r.Chain),r.bindW=r.bind,r.apS=(0,w.apS)(r.ApplyPar),r.apSW=r.apS,r.ApT=(0,r.of)(a.emptyReadonlyArray),r.traverseReadonlyNonEmptyArrayWithIndex=function(n){return(0,g.flow)(v.traverseReadonlyNonEmptyArrayWithIndex(n),v.map(c.traverseReadonlyNonEmptyArrayWithIndex(g.SK)))},r.traverseReadonlyArrayWithIndex=function(n){var t=(0,r.traverseReadonlyNonEmptyArrayWithIndex)(n);return function(n){return a.isNonEmpty(n)?t(n):r.ApT}},r.traverseReadonlyNonEmptyArrayWithIndexSeq=function(n){return function(r){return function(){return a.tail(r).reduce((function(r,t,u){return r.then((function(e){return a.isLeft(e)?r:n(u+1,t)().then((function(n){return a.isLeft(n)?n:(e.right.push(n.right),e)}))}))}),n(0,a.head(r))().then(c.map(a.singleton)))}}},r.traverseReadonlyArrayWithIndexSeq=function(n){var t=(0,r.traverseReadonlyNonEmptyArrayWithIndexSeq)(n);return function(n){return a.isNonEmpty(n)?t(n):r.ApT}},r.traverseArrayWithIndex=r.traverseReadonlyArrayWithIndex,r.traverseArray=function(n){return(0,r.traverseReadonlyArrayWithIndex)((function(r,t){return n(t)}))},r.sequenceArray=(0,r.traverseArray)(g.identity),r.traverseSeqArrayWithIndex=r.traverseReadonlyArrayWithIndexSeq,r.traverseSeqArray=function(n){return(0,r.traverseReadonlyArrayWithIndexSeq)((function(r,t){return n(t)}))},r.sequenceSeqArray=(0,r.traverseSeqArray)(g.identity),r.taskEither={URI:r.URI,bimap:m,mapLeft:h,map:d,of:r.of,ap:p,chain:l,alt:I,fromIO:r.fromIO,fromTask:r.fromTask,throwError:r.throwError},r.taskEitherSeq={URI:r.URI,bimap:m,mapLeft:h,map:d,of:r.of,ap:s,chain:l,alt:I,fromIO:r.fromIO,fromTask:r.fromTask,throwError:r.throwError},r.getApplySemigroup=(0,w.getApplySemigroup)(r.ApplySeq),r.getApplyMonoid=(0,D.getApplicativeMonoid)(r.ApplicativeSeq),r.getSemigroup=function(n){return(0,w.getApplySemigroup)(v.ApplySeq)(c.getSemigroup(n))},r.getTaskValidation=function(n){var t=b(v.ApplicativePar,n),u=R(n);return{URI:r.URI,_E:void 0,map:d,ap:t.ap,of:r.of,chain:l,bimap:m,mapLeft:h,alt:u.alt,fromIO:r.fromIO,fromTask:r.fromTask,throwError:r.throwError}}})),rr=function(n){return 0===n.length};const tr=n=>({kind:"server",inner:n}),ur={kind:"client",inner:"Token not exist or empty"},er={kind:"client",inner:"Api path empty or missing"},or=pn({concat:function(n,r){return n+r},empty:""}),ir=()=>a(pn(p()).concat(In(B.apiPath),In("https://api.vviinn.com")),cn((()=>er))),cr={concat:(n,r)=>{const t=new Headers;return void 0!==n&&n.forEach(((n,r)=>t.append(r,n))),void 0!==r&&r.forEach(((n,r)=>t.append(r,n))),t}},fr=l({method:{concat:(n,r)=>{const t=or.concat(In(n),In(r));return a(t,(u=()=>"GET",function(n){return ln(n)?u():n.value}));var u}},body:m(),headers:cr}),ar=n=>({method:n}),vr=nn(ar("GET")),dr=nn(ar("POST")),pr=n=>n.status>=200&&n.status<300?nr.right(n):nr.left(n),sr=fr,lr=(n,r)=>([t,u])=>{const e=new URL(n,t),o=sr.concat(u,r);return g.pipe(((n,r={})=>g.pipe(((n,r={method:"GET"})=>nr.tryCatch((()=>fetch(n,r)),(n=>n)))(n,r),nr.chain(pr),nr.chain((n=>function(n){return nr.fromTask((()=>n.json()))}(n)))))(e.toString(),o),nr.mapLeft(tr))},mr=n=>(n=>0===n.length)(n)?Z("entity is empty"):nn(n),hr=n=>{return a(n,("entity not exist",function(n){return null==n?Z("entity not exist"):nn(n)}),(r=mr,function(n){return fn(n)?n:r(n.right)}));var r},Ir=n=>new Headers({Authorization:`Bearer ${n}`}),br=n=>a(n,hr,Kn.mapLeft((()=>ur))),Rr=n=>a(n,br,Kn.map(Ir)),Ur=w.sequenceT(Kn.Apply),Or={equals:(n,r)=>n.class===r.class&&n.score===r.score&&n.rectangle.left===r.rectangle.left&&n.rectangle.top===r.rectangle.top&&n.rectangle.height===r.rectangle.height&&n.rectangle.width===r.rectangle.width};var jr;!function(n){n.eform="eform",n.etype="etype",n.form="form",n.href="href",n.method="method",n.accepts="accepts",n.produces="produces",n.rel="rel",n.type="type",n.value="value"}(jr||(jr={}));const gr=n=>{switch(n.type){case"array":return n.value.map(gr);default:return n.value}},Mr=n=>r=>a(Ur(ir(),nn(ar(n.method))),zn,Dn(lr(n.href,r))),wr=(n,r)=>{const t=b(n),u=h.concat(t,r);return Object.assign(Object.assign({},u),{width:n.width,height:n.height})},yr=(n,r)=>{switch(r.direction){case I.NorthEast:return((n,r)=>{const t=h.concat(b(n),{x:0,y:r.position.y});return Object.assign(Object.assign({},t),{width:n.width+r.position.x,height:n.height-r.position.y})})(n,r);case I.NorthWest:return((n,r)=>{const t=h.concat(b(n),r.position);return Object.assign(Object.assign({},t),{width:n.width-r.position.x,height:n.height-r.position.y})})(n,r);case I.SouthEast:return((n,r)=>Object.assign(Object.assign({},n),{width:n.width+r.position.x,height:n.height+r.position.y}))(n,r);case I.SouthWest:return((n,r)=>{const t=h.concat(b(n),{x:r.position.x,y:0});return Object.assign(Object.assign({},t),{width:n.width-r.position.x,height:n.height+r.position.y})})(n,r)}},xr=n=>({x:0,y:0,width:n.width,height:n.height}),_r=n=>Object.assign({x:n.left,y:n.top},n),Wr=n=>r=>({x:r.x*n.width,y:r.y*n.height,width:r.width*n.width,height:r.height*n.height}),Er=n=>({x:n.x+.5*n.width,y:n.y+.5*n.height});var kr;!function(n){n.desc="desc",n.eform="eform",n.enabled="enabled",n.etype="etype",n.form="form",n.label="label",n.max="max",n.maxlength="maxlength",n.maxsize="maxsize",n.min="min",n.minlength="minlength",n.minsize="minsize",n.mutable="mutable",n.name="name",n.options="options",n.pattern="pattern",n.placeholder="placeholder",n.required="required",n.secret="secret",n.type="type",n.value="value",n.visible="visible"}(kr||(kr={}));const qr=(n,r)=>{const t=new URLSearchParams(Object.entries(r));return[`${n.href}?${t.toString()}`,{method:"GET"}]},Pr=(n,r)=>[n.href,{body:JSON.stringify(r),method:n.method,headers:new Headers({"Content-Type":"application/ion+json"})}],Tr=(n,r={})=>t=>g.pipe(Ur(ir(),g.pipe(((n,r)=>g.pipe(((n,r)=>{const t=n.map((n=>n.name)),u=Object.keys(r),e=t.filter((n=>!u.includes(n)));return 0===e.length?nn(r):Z(`Data should contains fields: ${e.join(", ")}`)})(n.value,r),tn((r=>n.rel.includes("query-form")?qr(n,r):Pr(n,r)))))(n,r),on((n=>({kind:"app",inner:n}))))),zn,Dn((n=>{const r=n[0],[u,e]=n[1];return lr(u,e)([r,t])}))),Ar=async n=>new Promise((r=>{const t=new FileReader;t.addEventListener("load",(()=>{r(t.result)})),t.readAsDataURL(n)})),zr=w.sequenceT(H.Apply),Lr=n=>n.length>0?H.some(n):H.none;const Nr=["jpg","jpeg","png","webp"],Sr={kind:"client",inner:"File format not supported"},Cr=n=>{const r=n.type.split("/")[1],t=(u=t=>t===r?H.some(n):H.none,function(n){for(var r=0;r<n.length;r++){var t=u(n[r]);if(R(t))return t}return v})(Nr);var u;return g.pipe(t,Kn.fromOption((()=>Sr)))},Dr={kind:"app",inner:"File doesnt exist"},Fr=n=>()=>new Promise((r=>{const t=new FileReader,u=new Image;t.onload=n=>{u.src=n.target.result},u.onload=()=>r(u),t.readAsDataURL(n)}));var Hr=j((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.copy=void 0,r.copy=(n,r,t=0,u=0,e=n.width-t,o=n.height-u,i=0,c=0)=>{if(t|=0,u|=0,o|=0,i|=0,c|=0,(e|=0)<=0||o<=0)return;const f=new Uint32Array(n.data.buffer),a=new Uint32Array(r.data.buffer);for(let v=0;v<o;v++){const o=u+v;if(o<0||o>=n.height)continue;const d=c+v;if(!(d<0||d>=r.height))for(let u=0;u<e;u++){const e=t+u;if(e<0||e>=n.width)continue;const c=i+u;c<0||c>=r.width||(a[d*r.width+c]=f[o*n.width+e])}}}})),$r=j((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.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(u,e,o)=>{if(void 0===u||void 0===e)throw TypeError("Not enough arguments");if(u=Math.floor(u),e=Math.floor(e),isNaN(u)||u<1||isNaN(e)||e<1)throw TypeError("Index or size is negative or greater than the allowed amount");const i=u*e*r;if(void 0===o&&(o=new Uint8ClampedArray(i)),o instanceof Uint8ClampedArray){if(o.length!==i)throw TypeError("Index or size is negative or greater than the allowed amount");if(!t)for(let t=0;t<e;t++)for(let e=0;e<u;e++){const i=(t*u+e)*r;for(let t=0;t<r;t++)o[i+t]=n[t]}return{get width(){return u},get height(){return e},get data(){return o}}}throw TypeError("Expected data to be Uint8ClampedArray or undefined")}},r.createImage=r.CreateImageFactory()})),Gr=j((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.filters=void 0;const t=(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)},u=n=>Math.round(16383*n);r.filters=(n,r,e,o,i)=>{const c=i?2:3,f=1/e,a=Math.min(1,e),v=c/a,d=Math.floor(2*(v+1)),p=new Int16Array((d+2)*r);let s=0;for(let e=0;e<r;e++){const i=(e+.5)*f+o,d=Math.max(0,Math.floor(i-v)),l=Math.min(n-1,Math.ceil(i+v)),m=l-d+1,h=new Float32Array(m),I=new Int16Array(m);let b=0,R=0;for(let n=d;n<=l;n++){const r=t((n+.5-i)*a,c);b+=r,h[R]=r,R++}let U=0;for(let n=0;n<h.length;n++){const r=h[n]/b;U+=r,I[n]=u(r)}I[r>>1]+=u(1-U);let O=0;for(;O<I.length&&0===I[O];)O++;let j=I.length-1;for(;j>0&&0===I[j];)j--;const g=j-O+1;p[s++]=d+O,p[s++]=g,p.set(I.subarray(O,j+1),s),s+=g}return p}})),Jr=j((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convolve=void 0,r.convolve=(n,r,t,u,e,o)=>{let i=0,c=0;for(let f=0;f<u;f++){let a=0;for(let t=0;t<e;t++){let t=i+4*o[a++]|0,e=0,f=0,v=0,d=0;for(let r=o[a++];r>0;r--){const r=o[a++];e=e+r*n[t]|0,f=f+r*n[t+1]|0,v=v+r*n[t+2]|0,d=d+r*n[t+3]|0,t=t+4|0}r[c]=e+8192>>14,r[c+1]=f+8192>>14,r[c+2]=v+8192>>14,r[c+3]=d+8192>>14,c=c+4*u|0}c=4*(f+1)|0,i=(f+1)*t*4|0}}})),Br=j((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.lanczos2=r.lanczos=void 0;const t=(n,r,t=!1)=>{const u=r.height/n.height,e=Gr.filters(n.width,r.width,r.width/n.width,0,t),o=Gr.filters(n.height,r.height,u,0,t),i=new Uint8ClampedArray(r.width*n.height*4);Jr.convolve(n.data,i,n.width,n.height,r.width,e),Jr.convolve(i,r.data,n.height,r.width,r.height,o)};r.lanczos=(n,r,u=0,e=0,o=n.width-u,i=n.height-e,c=0,f=0,a=r.width-c,v=r.height-f)=>{if(e|=0,i|=0,c|=0,f|=0,a|=0,v|=0,(o|=0)<=0||i<=0||a<=0||v<=0)return;if(0==(u|=0)&&0===e&&o===n.width&&i===n.height&&0===c&&0===f&&a===r.width&&v===r.height)return void t(n,r);const d=$r.createImage(o,i),p=$r.createImage(a,v);Hr.copy(n,d,u,e),t(d,p),Hr.copy(p,r,0,0,p.width,p.height,c,f)},r.lanczos2=(n,r,u=0,e=0,o=n.width-u,i=n.height-e,c=0,f=0,a=r.width-c,v=r.height-f)=>{if(e|=0,i|=0,c|=0,f|=0,a|=0,v|=0,(o|=0)<=0||i<=0||a<=0||v<=0)return;if(0==(u|=0)&&0===e&&o===n.width&&i===n.height&&0===c&&0===f&&a===r.width&&v===r.height)return void t(n,r,!0);const d=$r.createImage(o,i),p=$r.createImage(a,v);Hr.copy(n,d,u,e),t(d,p,!0),Hr.copy(p,r,0,0,p.width,p.height,c,f)}}));const Kr=n=>({kind:"height",size:n}),Qr=E.contramap((n=>n.size))(A.Ord),Vr=C.sort(Qr),Xr=C.sort({equals:(n,r)=>n.kind===r.kind,compare:(n,r)=>n.kind===r.kind?0:"width"===n.kind?-1:1}),Yr=n=>r=>{const t=Vr(r),u=(n=>{const[r,t]=n;return r.size/t.size})(t),e=Object.assign(Object.assign({},t[0]),{size:n*u}),o=Object.assign(Object.assign({},t[1]),{size:n});return Xr([o,e])},Zr=n=>{const{naturalWidth:r,naturalHeight:t}=n;return[(u=r,{kind:"width",size:u}),Kr(t)];var u},nt=()=>{const n=document.createElement("canvas"),r=n.getContext("2d");return[n,r]},rt=async n=>{const r=await fetch(n),t=await r.blob();return new File([t],"image",{type:t.type,lastModified:Date.now()})},tt=n=>()=>new Promise((async r=>{const t=await fetch(n),u=await t.blob();r(new File([u],"image",{type:u.type,lastModified:Date.now()}))})),ut=(n,r)=>n.naturalWidth>r?((n,r)=>{const t=Yr(n),[u,e]=nt(),o=Zr(r),[i,c]=t(o).map((n=>n.size)),f=new ImageData(i,c),a=(n=>{const{naturalWidth:r,naturalHeight:t}=n,[u,e]=nt();return u.width=r,u.height=t,e.drawImage(n,0,0),e.getImageData(0,0,r,t)})(r);return u.width=i,u.height=c,Br.lanczos(a,f),e.putImageData(f,0,0),u.toDataURL()})(r,n):(n=>{const r=document.createElement("canvas"),{naturalWidth:t,naturalHeight:u}=n,e=r.getContext("2d");return r.width=t,r.height=u,e.drawImage(n,0,0,t,u),r.toDataURL()})(n),et=n=>a(n,Rr,tn((n=>({headers:n})))),{state:ot,onChange:it}=J({campaignId:H.none,results:[],filters:[],cropperHandlers:[],detectedObjects:[],objectDetectionInProgress:!1,imageWidth:500,image:H.none,imageUrl:H.none,imageBounds:H.none,searchArea:H.none,resultsComponents:[],serverError:!1,loading:!1}),ct=async n=>{var r,t;ot.results=n.value,ot.filters=(t=gr(n.filters),Object.entries(t).map((([n,r])=>({name:n,filters:r})))),ot.rectangleSearchForm=n.searchArea,ot.resetCategoryLink=null===(r=n.links)||void 0===r?void 0:r.clearFilters,ot.loading=!1},ft=n=>a(et(ot.token),zn,Dn(Mr(n))),at=async()=>{ot.loading=!0,a(zr(ot.imageBounds,ot.searchArea),H.map((async([n,r])=>{const t=(u=n,n=>({x:n.x/u.width,y:n.y/u.height,width:n.width/u.width,height:n.height/u.height}))(r);var u;const e={width:t.width,height:t.height,left:t.x,top:t.y};return await a(et(ot.token),zn,Dn(Tr(ot.rectangleSearchForm,e)),Ln(ct))()})))},vt=n=>{ot.loading=!0;const r=(n=>{const r=new FormData;return r.append("image",n),r})(n),t=Ur(Rr(ot.token),nn(r));return a(t,tn((([n,r])=>({headers:n,body:r}))),zn,Cn((n=>((n,r=vn)=>{const t="search/session",u=g.pipe(r,hn((()=>t),(n=>`${t}?campaign-id=${n}`)));return g.pipe(Ur(ir(),dr),zn,Dn(lr(u,n)))})(n,ot.campaignId))),Ln((n=>(ct(n),(async n=>{ot.objectDetectionInProgress=!0;const r={kind:"server",inner:"Can not get a link for objects detection"};var t,u,e;await a((t=n,u="detectedObjects",a(t.links,In,(e=n=>In(n[u]),function(n){return ln(n)?vn:e(n.value)}))),$n((()=>r)),Cn(ft),Ln((n=>ot.detectedObjects=gr(n))))(),ot.objectDetectionInProgress=!1})(n),ot.loading=!1,n))),Nn((n=>(ot.serverError=!0,ot.loading=!1,n))))},dt=ot;it("activeIonLink",(async n=>{ot.loading=!0;const r=n||ot.resetCategoryLink;await a(et(ot.token),zn,Dn(Mr(r)),Ln(ct),Nn((n=>({kind:"network error",inner:n}))))()})),it("searchArea",(n=>{a(n,H.map((n=>{ot.cropperHandlers=U(n)})))})),it("serverError",(()=>{ot.loading=!1}));const pt=n=>{dt.image=H.some(n),dt.imageUrl=H.some(n.src)},st=async n=>{const r=(n=>g.pipe(n,H.fromNullable,Kn.fromOption((()=>Dr)),Kn.chain(Cr)))(n),t=(500,n=>g.pipe(n,Fr,Zn.map((n=>ut(n,500))),Zn.chain(tt)));const u=a(r,zn,Gn(t)),e=await a(u,Cn(vt))();return a(Ur(e,r),tn((([n,r])=>(async(n,r)=>{const t={image:await(async n=>({name:n.name,mediaType:n.type,value:await Ar(n)}))(r)},u=n.uploadHighResolutionImage;await a(et(ot.token),zn,Dn(Tr(u,t)))()})(n,r)))),await a(u,Gn(Fr),Ln(pt))(),e};export{en as A,an as B,xr as C,Zr as D,Kn as E,Yr as F,T as N,H as O,q as S,nr as T,C as _,g as a,vr as b,Dn as c,X as d,sn as e,zn as f,ir as g,mn as h,dt as i,Lr as j,O as k,j as l,lr as m,rr as n,zr as o,wr as p,at as q,_r as r,B as s,yr as t,gr as u,Wr as v,Er as w,Or as x,rt as y,st as z}
|
package/www/build/p-e6fee8d2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let e,t,n=!1,l=null,s=!1;const o="undefined"!=typeof window?window:{},i=o.document||{head:{}},c={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},r=e=>Promise.resolve(e),a=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),u=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=d(e,n),i=f(t,s),r=h(n);c.ael(o,l,i,r),(t.o=t.o||[]).push((()=>c.rel(o,l,i,r)))}))},f=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){se(e)}},d=(e,t)=>16&t?i.body:e,h=e=>0!=(2&e),y=new WeakMap,p=e=>"sc-"+e.h,$={},m=e=>"object"==(e=typeof e)||"function"===e,b=(e,t,...n)=>{let l=null,s=null,o=!1,i=!1,c=[];const r=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!m(l))&&(l+=""),o&&i?c[c.length-1].p+=l:c.push(o?w(null,l):l),i=o)};if(r(n),t){t.key&&(s=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,v);const a=w(e,null);return a.$=t,c.length>0&&(a.m=c),a.g=s,a},w=(e,t)=>({t:0,v:e,p:t,j:null,m:null,$:null,g:null}),g={},v={forEach:(e,t)=>e.map(j).forEach(t),map:(e,t)=>e.map(j).map(t).map(S)},j=e=>({vattrs:e.$,vchildren:e.m,vkey:e.g,vname:e.S,vtag:e.v,vtext:e.p}),S=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),b(e.vtag,t,...e.vchildren||[])}const t=w(e.vtag,e.vtext);return t.$=e.vattrs,t.m=e.vchildren,t.g=e.vkey,t.S=e.vname,t},k=(e,t,n,l,s,i)=>{if(n!==l){let r=le(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,s=C(n),o=C(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const o=m(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{let s=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):le(o,a)?a.slice(2):a[2]+t.slice(3),n&&c.rel(e,t,n,!1),l&&c.ael(e,t,l,!1)}},O=/\s/,C=e=>e?e.split(O):[],M=(e,t,n,l)=>{const s=11===t.j.nodeType&&t.j.host?t.j.host:t.j,o=e&&e.$||$,i=t.$||$;for(l in o)l in i||k(s,l,o[l],void 0,n,t.t);for(l in i)k(s,l,o[l],i[l],n,t.t)},x=(t,l,s)=>{let o,c,r=l.m[s],a=0;if(null!==r.p)o=r.j=i.createTextNode(r.p);else{if(n||(n="svg"===r.v),o=r.j=i.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r.v),n&&"foreignObject"===r.v&&(n=!1),M(null,r,n),null!=e&&o["s-si"]!==e&&o.classList.add(o["s-si"]=e),r.m)for(a=0;a<r.m.length;++a)c=x(t,r,a),c&&o.appendChild(c);"svg"===r.v?n=!1:"foreignObject"===o.tagName&&(n=!0)}return o},E=(e,n,l,s,o,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===t&&(r=r.shadowRoot);o<=i;++o)s[o]&&(c=x(null,l,o),c&&(s[o].j=c,r.insertBefore(c,n)))},L=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.j,T(l),s.remove())},P=(e,t)=>e.v===t.v&&e.g===t.g,F=(e,t)=>{const l=t.j=e.j,s=e.m,o=t.m,i=t.v,c=t.p;null===c?(n="svg"===i||"foreignObject"!==i&&n,"slot"===i||M(e,t,n),null!==s&&null!==o?((e,t,n,l)=>{let s,o,i=0,c=0,r=0,a=0,u=t.length-1,f=t[0],d=t[u],h=l.length-1,y=l[0],p=l[h];for(;i<=u&&c<=h;)if(null==f)f=t[++i];else if(null==d)d=t[--u];else if(null==y)y=l[++c];else if(null==p)p=l[--h];else if(P(f,y))F(f,y),f=t[++i],y=l[++c];else if(P(d,p))F(d,p),d=t[--u],p=l[--h];else if(P(f,p))F(f,p),e.insertBefore(f.j,d.j.nextSibling),f=t[++i],p=l[--h];else if(P(d,y))F(d,y),e.insertBefore(d.j,f.j),d=t[--u],y=l[++c];else{for(r=-1,a=i;a<=u;++a)if(t[a]&&null!==t[a].g&&t[a].g===y.g){r=a;break}r>=0?(o=t[r],o.v!==y.v?s=x(t&&t[c],n,r):(F(o,y),t[r]=void 0,s=o.j),y=l[++c]):(s=x(t&&t[c],n,c),y=l[++c]),s&&f.j.parentNode.insertBefore(s,f.j)}i>u?E(e,null==l[h+1]?null:l[h+1].j,n,l,c,h):c>h&&L(t,i,u)})(l,s,t,o):null!==o?(null!==e.p&&(l.textContent=""),E(l,null,t,o,0,o.length-1)):null!==s&&L(s,0,s.length-1),n&&"svg"===i&&(n=!1)):e.p!==c&&(l.data=c)},T=e=>{e.$&&e.$.ref&&e.$.ref(null),e.m&&e.m.map(T)},W=e=>ee(e).k,A=(e,t,n)=>{const l=W(e);return{emit:e=>H(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},H=(e,t,n)=>{const l=c.ce(t,n);return e.dispatchEvent(l),l},R=(e,t)=>{t&&!e.O&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.O=t)))},U=(e,t)=>{if(e.t|=16,!(4&e.t))return R(e,e.C),ye((()=>q(e,t)));e.t|=512},q=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>G(n,e,t))),e.u=null),l=G(n,"componentWillLoad")),I(l,(()=>D(e,n,t)))},D=async(e,t,n)=>{const l=e.k,s=l["s-rc"];n&&(e=>{const t=e.M,n=e.k,l=t.t,s=((e,t)=>{let n=p(t),l=ce.get(n);if(e=11===e.nodeType?e:i,l)if("string"==typeof l){let t,s=y.get(e=e.head||e);s||y.set(e,s=new Set),s.has(n)||(t=i.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);N(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>_(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},N=(n,s)=>{try{l=s,s=s.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.k,o=n.M,i=n.L||w(null,null),c=(e=>e&&e.v===g)(l)?l:b(null,null,l);t=s.tagName,o.P&&(c.$=c.$||{},o.P.map((([e,t])=>c.$[t]=s[e]))),c.v=null,c.t|=4,n.L=c,c.j=i.j=s.shadowRoot||s,e=s["s-sc"],F(i,c)})(n,s)}catch(e){se(e,n.k)}return l=null,null},V=()=>l,_=e=>{const t=e.k,n=e.i,l=e.C;64&e.t||(e.t|=64,J(t),G(n,"componentDidLoad"),e.F(t),l||B()),e.O&&(e.O(),e.O=void 0),512&e.t&&he((()=>U(e,!1))),e.t&=-517},z=e=>{{const t=ee(e),n=t.k.isConnected;return n&&2==(18&t.t)&&U(t,!1),n}},B=()=>{J(i.documentElement),he((()=>H(o,"appload",{detail:{namespace:"vviinn-widgets"}})))},G=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){se(e)}},I=(e,t)=>e&&e.then?e.then(t):t(),J=e=>e.classList.add("hydrated"),K=(e,t,n)=>{if(t.T){e.watchers&&(t.W=e.watchers);const l=Object.entries(t.T),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>ee(this).A.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=ee(e),o=s.k,i=s.A.get(t),c=s.t,r=s.i;if(n=((e,t)=>null==e||m(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.T[t][0]),!(8&c&&void 0!==i||n===i)&&(s.A.set(t,n),r)){if(l.W&&128&c){const e=l.W[t];e&&e.map((e=>{try{r[e](n,i,t)}catch(e){se(e,o)}}))}2==(18&c)&&U(s,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,l){c.jmp((()=>{const t=n.get(e);this.hasOwnProperty(t)&&(l=this[t],delete this[t]),this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const s=l[1]||e;return n.set(s,e),512&l[0]&&t.P.push([e,s]),s}))}}return e},Q=e=>{G(e,"connectedCallback")},X=(e,t={})=>{const n=[],l=t.exclude||[],s=o.customElements,r=i.head,f=r.querySelector("meta[charset]"),d=i.createElement("style"),h=[];let y,$=!0;Object.assign(c,t),c.l=new URL(t.resourcesUrl||"./",i.baseURI).href,e.map((e=>e[1].map((t=>{const o={t:t[0],h:t[1],T:t[2],H:t[3]};o.T=t[2],o.H=t[3],o.P=[],o.W={};const i=o.h,r=class extends HTMLElement{constructor(e){super(e),ne(e=this,o),1&o.t&&e.attachShadow({mode:"open"})}connectedCallback(){y&&(clearTimeout(y),y=null),$?h.push(this):c.jmp((()=>(e=>{if(0==(1&c.t)){const t=ee(e),n=t.M,l=()=>{};if(1&t.t)u(e,t,n.H),Q(t.i);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){R(t,t.C=n);break}}n.T&&Object.entries(n.T).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=ie(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.W=s.watchers,K(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){se(e)}t.t&=-9,t.t|=128,e(),Q(t.i)}if(s.style){let e=s.style;const t=p(n);if(!ce.has(t)){const l=()=>{};((e,t,n)=>{let l=ce.get(e);a&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,ce.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.C,i=()=>U(t,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){c.jmp((()=>(()=>{if(0==(1&c.t)){const e=ee(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),G(t,"disconnectedCallback")}})()))}componentOnReady(){return ee(this).R}};o.U=e[0],l.includes(i)||s.get(i)||(n.push(i),s.define(i,K(r,o,1)))})))),d.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),r.insertBefore(d,f?f.nextSibling:r.firstChild),$=!1,h.length?h.map((e=>e.connectedCallback())):c.jmp((()=>y=setTimeout(B,30)))},Y=(e,t)=>t,Z=new WeakMap,ee=e=>Z.get(e),te=(e,t)=>Z.set(t.i=e,t),ne=(e,t)=>{const n={t:0,k:e,M:t,A:new Map};return n.R=new Promise((e=>n.F=e)),e["s-p"]=[],e["s-rc"]=[],u(e,n,t.H),Z.set(e,n)},le=(e,t)=>t in e,se=(e,t)=>(0,console.error)(e,t),oe=new Map,ie=e=>{const t=e.h.replace(/-/g,"_"),n=e.U,l=oe.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(oe.set(n,e),e[t])),se)},ce=new Map,re=[],ae=[],ue=(e,t)=>n=>{e.push(n),s||(s=!0,t&&4&c.t?he(de):c.raf(de))},fe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){se(e)}e.length=0},de=()=>{fe(re),fe(ae),(s=re.length>0)&&c.raf(de)},he=e=>r().then(e),ye=ue(ae,!0);export{Y as F,g as H,V as a,X as b,A as c,z as f,W as g,b as h,r as p,te as r}
|