slice-machine-ui 2.20.4-beta.5 → 2.20.5-alpha.jp-import-slice-base.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/out/404.html +1 -1
- package/out/_next/static/chunks/130-e1a16d2f94fb2b64.js +1 -0
- package/out/_next/static/chunks/422-c7a16d95b75c9e1c.js +1 -0
- package/out/_next/static/chunks/{429-aab52070cad2884b.js → 429-e5d7e39160de9f5e.js} +1 -1
- package/out/_next/static/chunks/489-c9535ef34da63d1a.js +1 -0
- package/out/_next/static/chunks/585-c89bb2471e85b9f8.js +1 -0
- package/out/_next/static/chunks/954-bedaaabf664584a0.js +1 -0
- package/out/_next/static/chunks/pages/{_app-0757e69fc5aa12d6.js → _app-058f06cc8ce33c8d.js} +1 -1
- package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-6d613b67e6967ae5.js → [customTypeId]-273e9a82c085b596.js} +1 -1
- package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-40207b66190e3fcd.js → [pageTypeId]-3fa7667de1a790d9.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/{simulator-faeb6d2f77d97096.js → simulator-8c70298caf51bed0.js} +1 -1
- package/out/_next/static/chunks/pages/slices-76679cf064761d2b.js +1 -0
- package/out/_next/static/ycaxuLGaColncBF1Sgjjd/_buildManifest.js +1 -0
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +4 -4
- package/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal/ImportSlicesFromLibraryModal.tsx +336 -0
- package/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal/SliceCard.tsx +48 -0
- package/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal/hooks/useImportSlicesFromGithub.ts +91 -0
- package/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal/index.tsx +1 -0
- package/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal/types.ts +28 -0
- package/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal/utils/addSlices.ts +186 -0
- package/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal/utils/github.ts +657 -0
- package/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal/utils/mapWithConcurrency.ts +28 -0
- package/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal/utils/sliceWithoutConflicts.ts +51 -0
- package/src/features/customTypes/customTypesBuilder/SliceZoneBlankSlate.tsx +11 -0
- package/src/features/customTypes/customTypesBuilder/shared/getSubmitButtonLabel.ts +12 -0
- package/src/features/customTypes/customTypesBuilder/shared/useExistingSlices.ts +26 -0
- package/src/features/customTypes/customTypesBuilder/sliceCreationOptions.tsx +14 -0
- package/src/legacy/lib/builders/CustomTypeBuilder/SliceZone/index.tsx +51 -0
- package/src/pages/slices.tsx +30 -0
- package/out/_next/static/9dRDwSkN862Z880iYSr4h/_buildManifest.js +0 -1
- package/out/_next/static/chunks/422-c9192a1dbdd2ae0e.js +0 -1
- package/out/_next/static/chunks/489-32281540712d98bb.js +0 -1
- package/out/_next/static/chunks/633-74a9ae6d5200cefc.js +0 -1
- package/out/_next/static/chunks/pages/slices-ec56b94b35794675.js +0 -1
- /package/out/_next/static/{9dRDwSkN862Z880iYSr4h → ycaxuLGaColncBF1Sgjjd}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[429],{15952:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(74982),u=e(23535),o=e(73985),a=e(79687),c=e(81542),f=r.__importDefault(e(3758)),l=/(\w+)\[\d+]/;function p(n){let t={id:n.id,type:n.typ,lang:n.language};return n.uid?{...t,uid:n.uid}:t}function d(n){return(t,e)=>{if(!(0,i.isEmptyContent)(t))return(0,i.isUIDContent)(t)?c.UIDRenderer.renderV1(t):((0,i.isGroupContent)(t)||(0,i.isRepeatableContent)(t)||(0,i.isNestableContent)(t))&&!i.EmptyContent.is(t)?(0,c.StaticWidgetRenderer)(n).renderV1(t,o.Fetch.extractGroupOrFieldIfAny(e)):(0,f.default)(n).renderV1(t,o.Fetch.extractSliceFetchIfAny(e))}}function s(n){return(t,e,r)=>(0,i.isSlicesContent)(e)&&"Slices"===t.type?(0,f.default)(n).renderV2(t,e,o.Fetch.extractSliceFetchIfAny(r)):(0,i.isGroupContent)(e)&&"Group"===t.type?(0,c.StaticWidgetRenderer)(n).renderV2(t,e,o.Fetch.extractGroupOrFieldIfAny(r)):(0,i.isUIDContent)(e)&&"UID"===t.type?c.UIDRenderer.renderV2(t,e):(0,i.isNestableContent)(e)&&u.NestableWidget.is(t)?(0,c.StaticWidgetRenderer)(n).renderV2(t,e,o.Fetch.extractGroupOrFieldIfAny(r)):h(n)(t)}function h(n){return t=>{switch(t.type){case"Choice":case"Slices":return(0,f.default)(n).renderDefault(t);case"UID":return;default:return(0,c.StaticWidgetRenderer)(n).renderDefault(t)}}}t.default=n=>({renderV1:(t,e,r,u,o,c,f,s,h)=>{var m,v;let g=(o[t.groupLangId]||[]).filter(n=>n.id!==t.id).map(n=>p(n)),y=((t,e,r)=>{let u={};for(let[t,o]of e)if(!(0,i.isUIDContent)(o)){let e=t.match(l),i=e&&e[1],a=i?e[1]:t,c=i?u[a]:void 0;if(void 0!==r){let e=r.fields[t];void 0!==e&&(i?u[a]=Array.isArray(c)?[...c,d(n)(o,e)]:[d(n)(o,e)]:u[a]=d(n)(o,e))}else i?u[a]=Array.isArray(c)?[...c,d(n)(o,void 0)]:[d(n)(o,void 0)]:u[a]=d(n)(o,void 0)}return{[t.type]:u}})(t,e,h);return{id:t.id,uid:null!==(m=t.data.uid)&&void 0!==m?m:null,url:null!==(v=n.LinkResolver.buildUrl({linkResolver:s,pageType:t.type,masterLang:r,brokenRoute:f,doc:t}))&&void 0!==v?v:null,type:t.type,href:n.urlRewriter.enforceCDN(u),tags:t.tags,first_publication_date:t.first_publication_date?(0,a.formatDateTime)(t.first_publication_date):null,last_publication_date:t.last_publication_date?(0,a.formatDateTime)(t.last_publication_date):null,slugs:t.data.slugs,linked_documents:[],lang:t.language,alternate_languages:g,data:y,...c?t.metadata:{}}},renderWidgetV1:d(n),renderWidgetV2:s(n),renderV2:(t,e,r,u,o,c,f,d,m,v)=>{var g,y;let b=Object.entries(t.fields).map(([t,e])=>{if("UID"===e.type)return;let r=u.find(([n])=>n===t),o=null==v?void 0:v.fields[t],a=t.match(l),c=!!(a&&a[1]),f=c?a[1]:t;if(r){let[,t]=r;return(0,i.isUIDContent)(t)?void 0:void 0===v||void 0!==o?[f,s(n)(e,t,o),c]:void 0}return void 0===v||void 0!==o?[f,h(n)(e),c]:void 0}).reduce((n,t)=>{if(t){let[e,r,i]=t;if(i){let t=n[e];if(t){if(Array.isArray(t))return{...n,[e]:[...t,r]};throw Error(`[UNEXPECTED ERROR] ${JSON.stringify(t)} should be an Array`)}return{...n,[e]:[r]}}return{...n,[e]:r}}return n},{}),_=(c[e.groupLangId]||[]).filter(n=>n.id!==e.id).map(n=>p(n));return{id:e.id,uid:null!==(g=e.data.uid)&&void 0!==g?g:null,url:null!==(y=n.LinkResolver.buildUrl({linkResolver:m,pageType:e.type,masterLang:r,brokenRoute:d,doc:e}))&&void 0!==y?y:null,type:e.type,href:n.urlRewriter.enforceCDN(o),tags:e.tags,first_publication_date:e.first_publication_date?(0,a.formatDateTime)(e.first_publication_date):null,last_publication_date:e.last_publication_date?(0,a.formatDateTime)(e.last_publication_date):null,slugs:e.data.slugs,linked_documents:[],lang:e.language,alternate_languages:_,data:b,...f?e.metadata:{}}},renderMocks:(t,e)=>{let r=e.reduce((n,[,t])=>{if(i.UIDContent.is(t))return t.value},void 0),o=Object.entries(t.fields).map(([t,r])=>{var o;if("UID"===r.type)return;let a=e.find(([n])=>n===t),p=t.match(l),d=!!(p&&p[1]),s=d?p[1]:t;return a?[s,"SliceContentType"===(o=a[1]).__TYPE__&&"Slices"===r.type?(0,f.default)(n).renderMocks(r,o):(0,i.isGroupContent)(o)&&"Group"===r.type?(0,c.StaticWidgetRenderer)(n).renderMocks(r,o):(0,i.isNestableContent)(o)&&u.NestableWidget.is(r)?(0,c.StaticWidgetRenderer)(n).renderMocks(r,o):h(n)(r),d]:[s,h(n)(r),d]}).reduce((n,t)=>{if(t){let[e,r,i]=t;if(i){let t=n[e];if(t){if(Array.isArray(t))return{...n,[e]:[...t,r]};throw Error(`[UNEXPECTED ERROR] ${JSON.stringify(t)} should be an Array`)}return{...n,[e]:[r]}}return{...n,[e]:r}}return n},{});return{id:"mock-doc-id",uid:r,url:r?`/${r}`:null,type:t.customTypeId,href:null,tags:[],first_publication_date:"1970-01-01T00:00:01+0000",last_publication_date:"1970-01-01T00:00:01+0000",slugs:[],linked_documents:[],lang:"en-us",alternate_languages:[],data:o}},renderDefaultWidget:h(n)})},88985:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Utils=t.Models=t.DocumentRenderer=void 0;let r=e(22970);var i=e(15952);Object.defineProperty(t,"DocumentRenderer",{enumerable:!0,get:function(){return r.__importDefault(i).default}}),t.Models=r.__importStar(e(73985)),t.Utils=r.__importStar(e(79687)),r.__exportStar(e(81542),t)},59527:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentContent=void 0;let r=e(74982),i=e(74982),u=e(23535),o=e(87412);class a{constructor(n,t){Object.defineProperty(this,"fieldTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"widgets",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"slugs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"customType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parsed",{enumerable:!0,configurable:!0,writable:!0,value:{}});let{widgets:e,types:r,slugs:u,uid:o}=i.DocumentLegacy.extractMetadata(n);this.fieldTypes=r,this.slugs=u,this.uid=o,this.widgets=e,this.customType=t}getWidget(n){let t=this.parsed[n];if(t)return t;let e=this.widgets[n],i=(()=>{let t=(0,r.WidgetLegacy)((0,r.defaultCtx)(n,this.fieldTypes)).decode(e);if(!t||(0,o.isLeft)(t))return;if(!this.customType)return t.right;let i=this.customType.fields[n];return(0,r.isSlicesContent)(t.right)&&u.StaticSlices.is(i)?(0,r.traverseSlices)({path:[{key:this.customType.customTypeId,type:"CustomType"},{key:n,type:"Widget"}],key:n,model:i,content:t.right})({transformSlice:r.migrateSliceItem}):t.right})();if(i)return this.parsed[n]=i,i}parseAll(){let n=i.DocumentLegacy._codec(this.fieldTypes).decode(this.widgets),t=(0,o.isRight)(n)?n.right:{},e=this.customType?(0,r.migrateDocument)(t,this.customType):t;return this.parsed=e,e}}t.DocumentContent=a},53264:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentMetadata=void 0;let r=e(22970),i=e(35002),u=r.__importStar(e(87830)),o=u.exact(u.intersection([u.type({title:u.string,description:u.string}),u.partial({imageURL:(0,i.nullable)(u.string)})]));t.DocumentMetadata={empty:{title:"Untitled document",description:"",imageURL:void 0},codec:o}},72375:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedDocument=void 0;let r=e(22970).__importStar(e(87830));t.RelatedDocument=r.exact(r.intersection([r.type({typ:r.string,id:r.string,language:r.string,groupLangId:r.string}),r.partial({uid:r.union([r.string,r.null,r.undefined])})]))},27380:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedDocument=t.DocumentMetadata=t.DocumentContent=t.ApiDocumentCodec=t.GroupLangId=void 0;let r=e(22970),i=e(8597),u=e(9554),o=e(42275),a=r.__importStar(e(87830)),c=e(23284),f=e(2932),l=e(59527),p=e(53264);t.GroupLangId=a.string;let d=a.exact(a.intersection([a.type({id:a.string,version:a.string,type:a.string,groupLangId:t.GroupLangId,tags:a.array(a.string),data:a.UnknownRecord,language:a.string}),a.partial({first_publication_date:i.Function.nullable(i.DateFromStringOrNumber),last_publication_date:i.Function.nullable(i.DateFromStringOrNumber),metadata:(0,c.withFallback)(i.Function.nullable(p.DocumentMetadata.codec),p.DocumentMetadata.empty)})])),s=n=>(0,f.mapOutput)(d,t=>({id:t.id,version:t.version,type:t.type,groupLangId:t.groupLangId,tags:t.tags,data:new l.DocumentContent(t.data,n),language:t.language,first_publication_date:t.first_publication_date,last_publication_date:t.last_publication_date,metadata:t.metadata}));t.ApiDocumentCodec=n=>new a.Type("DocCodec",n=>s().is(n),(t,e)=>(0,o.pipe)(d.validate(t,e),u.either.chain(t=>{let e=n&&n.find(n=>n.customTypeId===t.type);return a.success(s(e).encode(t))})),n=>n);var h=e(59527);Object.defineProperty(t,"DocumentContent",{enumerable:!0,get:function(){return h.DocumentContent}});var m=e(53264);Object.defineProperty(t,"DocumentMetadata",{enumerable:!0,get:function(){return m.DocumentMetadata}});var v=e(72375);Object.defineProperty(t,"RelatedDocument",{enumerable:!0,get:function(){return v.RelatedDocument}})},15087:function(n,t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.ApiVersion=void 0,(e=t.ApiVersion||(t.ApiVersion={})).v1="v1",e.v2="v2",e.mocks="mocks"},43134:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.customParam=t.langParam=t.uidParam=t.staticParam=t.LinkResolver=t.Rule=void 0;let r=e(22970).__importStar(e(87830)),i=r.type({isOptional:r.boolean,name:r.string,type:r.literal("custom")}),u=r.type({isOptional:r.boolean,type:r.literal("uid")}),o=r.type({isOptional:r.boolean,type:r.literal("lang")}),a=r.union([i,u,o]),c=r.type({value:r.string,type:r.literal("static")}),f=r.union([c,a]),l=r.type({trailingSlash:r.boolean,params:r.array(f)}),p=r.type({customTypeID:r.string,relationName:r.string,targetCustomTypeID:r.string}),d=r.record(r.string,r.array(p));t.Rule=r.type({pattern:l,resolvers:d}),t.LinkResolver=r.record(r.string,r.record(r.string,r.record(r.string,t.Rule))),t.staticParam=function(n){return{value:n,type:"static"}},t.uidParam=function(n){return{isOptional:n,type:"uid"}},t.langParam=function(n){return{isOptional:n,type:"lang"}},t.customParam=function(n,t){return{name:n,isOptional:t,type:"custom"}}},44273:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.CustomTypeDef=void 0;let r=e(22970),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=e(78771),c=o.strict({id:o.string,definitions:o.array(a.WidgetDef)});t.CustomTypeDef=new o.Type("CustomTypeDef",n=>"object"==typeof n&&null!==n&&"customTypeId"in n,n=>(0,u.pipe)(c.decode(n),i.either.map(({id:n,definitions:t})=>({customTypeId:n,fields:t.reduce((n,{key:t,def:e})=>({...n,[t]:e}),{})}))),n=>n)},52908:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GroupDef=t.NestedGroupDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=e(66106);function l(n,t){return new a.Type("GroupDef",t=>(0,c.isFieldDef)(t)&&n.is(t.def),n=>{let e=a.strict({name:a.string,fields:a.array(t)});return(0,o.pipe)(e.decode(n),u.either.map(({name:n,fields:t})=>({key:n,def:{type:"Group",config:{fields:t.reduce((n,t)=>({...n,[t.key]:t.def}),{})}}})))},n=>n)}t.NestedGroupDef=l(i.NestedGroup,f.NestableDef),t.GroupDef=l(i.Group,a.union([f.NestableDef,t.NestedGroupDef]))},52144:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({uid:a.string});t.UIDDef=new a.Type("UID",n=>(0,c.isFieldDef)(n)&&i.UID.is(n.def),n=>(0,o.pipe)(f.decode(n),u.either.map(({uid:n})=>({key:n,def:{type:"UID"}}))),n=>n)},78771:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetDef=void 0;let r=e(22970).__importStar(e(87830)),i=e(52908),u=e(40646),o=e(68126),a=e(52144);t.WidgetDef=r.union([o.SlicesDef,i.GroupDef,a.UIDDef,u.NestableDef])},88476:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);r.__exportStar(e(52908),t),r.__exportStar(e(40646),t),r.__exportStar(e(68126),t),r.__exportStar(e(52144),t),r.__exportStar(e(78771),t)},63868:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({booleanField:a.string,config:a.strict({default_value:a.boolean})});t.BooleanDef=new a.Type("BooleanDef",n=>(0,c.isFieldDef)(n)&&i.BooleanField.is(n.def),n=>(0,o.pipe)(f.decode(n),u.either.map(({booleanField:n,config:t})=>({key:n,def:{type:"Boolean",config:t}}))),n=>n)},68294:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({color:a.string});t.ColorDef=new a.Type("ColorDef",n=>(0,c.isFieldDef)(n)&&i.Color.is(n.def),n=>(0,o.pipe)(f.decode(n),u.either.map(({color:n})=>({key:n,def:{type:"Color"}}))),n=>n)},43499:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DateDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({date:a.string});t.DateDef=new a.Type("DateDef",n=>(0,c.isFieldDef)(n)&&i.Date.is(n.def),n=>(0,o.pipe)(f.decode(n),u.either.map(({date:n})=>({key:n,def:{type:"Date"}}))),n=>n)},56301:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({embed:a.string});t.EmbedDef=new a.Type("EmbedDef",n=>(0,c.isFieldDef)(n)&&i.Embed.is(n.def),n=>(0,o.pipe)(f.decode(n),u.either.map(({embed:n})=>({key:n,def:{type:"Embed"}}))),n=>n)},24256:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({geopoint:a.string});t.GeoPointDef=new a.Type("GeoPointDef",n=>(0,c.isFieldDef)(n)&&i.GeoPoint.is(n.def),n=>(0,o.pipe)(f.decode(n),u.either.map(({geopoint:n})=>({key:n,def:{type:"GeoPoint"}}))),n=>n)},30245:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({image:a.string,config:a.strict({thumbnails:a.array(a.string)})});t.ImageDef=new a.Type("ImageDef",n=>(0,c.isFieldDef)(n)&&i.Image.is(n.def),n=>(0,o.pipe)(f.decode(n),u.either.map(({image:n,config:t})=>({key:n,def:{type:"Image",config:{thumbnails:t.thumbnails.map(n=>({name:n}))}}}))),n=>n)},30923:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({integrationFields:a.string});t.IntegrationFieldDef=new a.Type("IntegrationFieldDef",n=>(0,c.isFieldDef)(n)&&i.IntegrationField.is(n.def),n=>(0,o.pipe)(f.decode(n),u.either.map(({integrationFields:n})=>({key:n,def:{type:"IntegrationFields"}}))),n=>n)},17914:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultAnyLinkDef=t.AnyLinkDef=void 0;let r=e(22970),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=o.partial({select:o.union([o.literal("any"),o.null,o.undefined]),allowText:o.boolean,repeat:o.boolean,variants:o.array(o.string)});t.AnyLinkDef=new o.Type("AnyLinkDef",n=>"any"===n.select,n=>(0,u.pipe)(a.decode(n),i.either.map(n=>({...n,select:null}))),n=>n),t.defaultAnyLinkDef=function(n){return{select:null,allowText:!0,...n}}},64049:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDocumentLinkDef=t.DocumentLinkDef=void 0;let r=e(22970).__importStar(e(87830));t.DocumentLinkDef=r.intersection([r.strict({select:r.literal("document"),customtypes:r.readonlyArray(r.string)}),r.partial({allowText:r.boolean,repeat:r.boolean,variants:r.array(r.string)})]),t.defaultDocumentLinkDef=function(n){return{select:"document",customtypes:[],allowText:!0,...n}}},10599:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultMediaLinkDef=t.MediaLinkDef=void 0;let r=e(22970).__importStar(e(87830));t.MediaLinkDef=r.intersection([r.strict({select:r.literal("media")}),r.partial({allowText:r.boolean,repeat:r.boolean,variants:r.array(r.string)})]),t.defaultMediaLinkDef=function(n){return{select:"media",allowText:!0,...n}}},49612:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultWebLinkDef=t.WebLinkDef=void 0;let r=e(22970).__importStar(e(87830));t.WebLinkDef=r.intersection([r.strict({select:r.literal("web")}),r.partial({allowText:r.boolean,repeat:r.boolean,variants:r.array(r.string)})]),t.defaultWebLinkDef=function(n){return{select:"web",allowText:!0,...n}}},38207:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isWebLinkDef=t.isDocumentLinkDef=t.isAnyLinkDef=t.isMediaLinkDef=t.defaultLink=t.LinkDef=void 0;let r=e(22970),i=e(44613),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=e(17914),l=e(64049),p=e(10599),d=e(49612),s=a.union([p.MediaLinkDef,l.DocumentLinkDef,d.WebLinkDef,f.AnyLinkDef]),h=a.strict({link:a.string,config:s});t.LinkDef=new a.Type("LinkDef",n=>(0,c.isFieldDef)(n)&&i.Link.is(n.def),n=>(0,o.pipe)(h.decode(n),u.either.map(({link:n,config:t})=>({key:n,def:{type:"Link",config:t}}))),n=>n),t.defaultLink=function(n,t){return{type:"Link",config:(()=>{switch(n){case"document":return(0,l.defaultDocumentLinkDef)(t);case"media":return(0,p.defaultMediaLinkDef)(t);case"web":return(0,d.defaultWebLinkDef)(t);case null:return(0,f.defaultAnyLinkDef)(t)}})()}},t.isMediaLinkDef=function(n){var t;return"Link"===n.type&&(null===(t=null==n?void 0:n.config)||void 0===t?void 0:t.select)==="media"},t.isAnyLinkDef=function(n){var t;return"Link"===n.type&&(null===(t=null==n?void 0:n.config)||void 0===t?void 0:t.select)===null},t.isDocumentLinkDef=function(n){var t;return"Link"===n.type&&(null===(t=null==n?void 0:n.config)||void 0===t?void 0:t.select)==="document"},t.isWebLinkDef=function(n){var t;return"Link"===n.type&&(null===(t=null==n?void 0:n.config)||void 0===t?void 0:t.select)==="web"},r.__exportStar(e(17914),t),r.__exportStar(e(64049),t),r.__exportStar(e(10599),t),r.__exportStar(e(49612),t)},66106:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableDef=void 0;let r=e(22970).__importStar(e(87830)),i=e(63868),u=e(68294),o=e(43499),a=e(56301),c=e(24256),f=e(30245),l=e(30923),p=e(38207),d=e(56156),s=e(44135),h=e(36116),m=e(53335),v=e(8871),g=e(76128),y=e(58912),b=e(49437);t.NestableDef=r.union([i.BooleanDef,u.ColorDef,o.DateDef,a.EmbedDef,c.GeoPointDef,f.ImageDef,l.IntegrationFieldDef,d.NumberDef,s.RangeDef,h.RichTextDef,m.SelectDef,v.SeparatorDef,y.TextDef,b.TimestampDef,p.LinkDef,g.TableDef])},56156:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({number:a.string});t.NumberDef=new a.Type("NumberDef",n=>(0,c.isFieldDef)(n)&&i.Number.is(n.def),n=>(0,o.pipe)(f.decode(n),u.either.map(({number:n})=>({key:n,def:{type:"Number"}}))),n=>n)},44135:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({range:a.string});t.RangeDef=new a.Type("RangeDef",n=>(0,c.isFieldDef)(n)&&i.Range.is(n.def),n=>(0,o.pipe)(f.decode(n),u.either.map(({range:n})=>({key:n,def:{type:"Range"}}))),n=>n)},36116:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({structuredtext:a.string});t.RichTextDef=new a.Type("RichTextDef",n=>(0,c.isFieldDef)(n)&&i.RichText.is(n.def),n=>(0,o.pipe)(f.decode(n),u.either.map(({structuredtext:n})=>({key:n,def:{type:"StructuredText"}}))),n=>n)},53335:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({select:a.string,config:a.strict({options:a.readonlyArray(a.string)})});t.SelectDef=new a.Type("SelectDef",n=>(0,c.isFieldDef)(n)&&i.Select.is(n.def),n=>(0,o.pipe)(f.decode(n),u.either.map(({select:n,config:t})=>({key:n,def:{type:"Select",config:t}}))),n=>n)},8871:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({separator:a.string});t.SeparatorDef=new a.Type("SeparatorDef",n=>(0,c.isFieldDef)(n)&&i.Separator.is(n.def),n=>(0,o.pipe)(f.decode(n),u.either.map(({separator:n})=>({key:n,def:{type:"Separator"}}))),n=>n)},76128:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TableDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({table:a.string});t.TableDef=new a.Type("TableDef",n=>(0,c.isFieldDef)(n)&&i.Table.is(n.def),n=>(0,o.pipe)(f.decode(n),u.either.map(({table:n})=>({key:n,def:{type:"Table"}}))),n=>n)},58912:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TextDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({text:a.string});t.TextDef=new a.Type("TextDef",n=>(0,c.isFieldDef)(n)&&i.Text.is(n.def),n=>(0,o.pipe)(f.decode(n),u.either.map(({text:n})=>({key:n,def:{type:"Text"}}))),n=>n)},49437:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({timestamp:a.string});t.TimestampDef=new a.Type("TimestampDef",n=>(0,c.isFieldDef)(n)&&i.Timestamp.is(n.def),n=>(0,o.pipe)(f.decode(n),u.either.map(({timestamp:n})=>({key:n,def:{type:"Timestamp"}}))),n=>n)},40646:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);r.__exportStar(e(63868),t),r.__exportStar(e(68294),t),r.__exportStar(e(43499),t),r.__exportStar(e(56301),t),r.__exportStar(e(24256),t),r.__exportStar(e(30245),t),r.__exportStar(e(30923),t),r.__exportStar(e(38207),t),r.__exportStar(e(66106),t),r.__exportStar(e(56156),t),r.__exportStar(e(44135),t),r.__exportStar(e(36116),t),r.__exportStar(e(53335),t),r.__exportStar(e(8871),t),r.__exportStar(e(76128),t),r.__exportStar(e(58912),t),r.__exportStar(e(49437),t)},3094:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeSliceDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=e(52908),l=e(66106),p=a.strict({name:a.string,primary:a.array(l.NestableDef),items:f.NestedGroupDef});t.CompositeSliceDef=new a.Type("CompositeSliceDef",n=>(0,c.isFieldDef)(n)&&i.CompositeSlice.is(n.def),n=>(0,o.pipe)(p.decode(n),u.either.map(({name:n,primary:t,items:e})=>{var r;return{key:n,def:{type:"Slice","non-repeat":t.reduce((n,{key:t,def:e})=>({...n,[t]:e}),{}),repeat:null===(r=e.def.config)||void 0===r?void 0:r.fields}}})),n=>n)},58294:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.LegacySliceDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=e(52908),l=e(40646),p=a.type({name:a.string,widget:a.union([f.NestedGroupDef,l.NestableDef])});t.LegacySliceDef=new a.Type("LegacySliceDef",n=>(0,c.isFieldDef)(n)&&i.LegacySlice.is(n.def),n=>(0,o.pipe)(p.decode(n),u.either.map(({name:n,widget:t})=>({key:n,def:t.def}))),n=>n)},26669:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceDef=t.VariationDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=e(52908),l=e(66106),p=a.strict({id:a.string,primary:a.array(a.union([f.GroupDef,l.NestableDef])),items:a.array(l.NestableDef),version:a.string});t.VariationDef=new a.Type("VariationDef",n=>(0,c.hasType)(n)&&i.Variation.is(n),n=>(0,o.pipe)(p.decode(n),u.either.map(n=>({id:n.id,name:n.id,description:n.id,imageUrl:"",docURL:"",version:n.version,primary:n.primary.reduce((n,{key:t,def:e})=>({...n,[t]:e}),{}),items:n.items.reduce((n,{key:t,def:e})=>({...n,[t]:e}),{})}))),n=>n);let d=a.string,s=a.string,h=a.intersection([a.strict({name:a.string,variations:a.array(t.VariationDef)}),a.partial({legacyPaths:a.record(d,s)})]);t.SharedSliceDef=new a.Type("SharedSliceDef",n=>(0,c.isFieldDef)(n)&&i.SharedSlice.is(n.def),n=>(0,o.pipe)(h.decode(n),u.either.map(({name:n,variations:t,legacyPaths:e})=>({key:n,def:{id:n,name:n,type:"SharedSlice",variations:t,...e?{legacyPaths:e}:{}}}))),n=>n)},53531:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceDef=void 0;let r=e(22970).__importStar(e(87830)),i=e(3094),u=e(58294),o=e(26669);t.SliceDef=r.union([o.SharedSliceDef,i.CompositeSliceDef,u.LegacySliceDef])},19183:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=e(53531),l=a.strict({name:a.string,slices:a.array(f.SliceDef)});t.SlicesDef=new a.Type("SlicesDef",n=>(0,c.isFieldDef)(n)&&i.StaticSlices.is(n.def),n=>(0,o.pipe)(l.decode(n),u.either.map(({name:n,slices:t})=>({key:n,def:{type:"Slices",config:{choices:t.reduce((n,{key:t,def:e})=>({...n,[t]:e}),{})}}}))),n=>n)},68126:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);r.__exportStar(e(3094),t),r.__exportStar(e(58294),t),r.__exportStar(e(26669),t),r.__exportStar(e(53531),t),r.__exportStar(e(19183),t)},32548:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);r.__exportStar(e(44273),t),r.__exportStar(e(88476),t),r.__exportStar(e(87956),t)},87956:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.hasType=t.isFieldDef=void 0,t.isFieldDef=function(n){return"object"==typeof n&&null!==n&&"key"in n&&"def"in n},t.hasType=function(n){return"object"==typeof n&&null!==n&&"type"in n}},35280:function(n,t){Object.defineProperty(t,"__esModule",{value:!0})},71659:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.extractSliceFetchIfAny=t.extractGroupOrFieldIfAny=t.DocRelationType=t.Docs=t.Doc=t.DocType=t.Simple=t.DocRelationC=t.GroupType=t.Slice=t.SharedSlice=t.SharedSliceType=t.CompositeSlice=t.CompositeSliceType=t.VariationC=t.SliceZone=t.SliceZoneType=t.FieldC=t.GroupOrFieldC=t.Group=t.SimpleField=t.SimpleFieldType=void 0;let r=e(22970).__importStar(e(87830));t.SimpleFieldType="SimpleField",t.SimpleField=r.strict({TYPE:r.literal(t.SimpleFieldType),name:r.string,legacy:r.boolean}),t.Group=r.recursion("Group",()=>r.strict({TYPE:r.literal(t.GroupType),name:r.string,fields:r.record(r.string,t.GroupOrFieldC)})),t.GroupOrFieldC=r.recursion("GroupOrField",()=>r.union([t.Simple,t.Group])),t.FieldC=r.recursion("Field",()=>r.union([t.GroupOrFieldC,t.SliceZone])),t.SliceZoneType="SliceZone",t.SliceZone=r.recursion("SliceZone",()=>r.strict({TYPE:r.literal(t.SliceZoneType),name:r.string,slices:r.record(r.string,r.union([t.GroupOrFieldC,t.Slice]))})),t.VariationC=r.recursion("Variation",()=>r.strict({TYPE:r.literal("Variation"),nonRepeat:r.strict({fields:r.record(r.string,t.GroupOrFieldC)}),repeat:r.strict({fields:r.record(r.string,t.FieldC)})})),t.CompositeSliceType="CompositeSlice",t.CompositeSlice=r.strict({TYPE:r.literal(t.CompositeSliceType),nonRepeat:r.strict({fields:r.record(r.string,t.GroupOrFieldC),TYPE:r.literal("NonRepeat")}),repeat:r.strict({fields:r.record(r.string,t.GroupOrFieldC),TYPE:r.literal("Repeat")})}),t.SharedSliceType="SharedSlice",t.SharedSlice=r.strict({TYPE:r.literal(t.SharedSliceType),variations:r.record(r.string,t.VariationC)}),t.Slice=r.union([t.SharedSlice,t.CompositeSlice]),t.GroupType="Group",t.DocRelationC=r.recursion("DocRelation",()=>r.strict({TYPE:r.literal(t.DocRelationType),name:r.string,uuid:r.string,fields:r.record(r.string,r.record(r.string,t.FieldC))})),t.Simple=r.union([t.DocRelationC,t.SimpleField]),t.DocType="Doc",t.Doc=r.recursion("Field",()=>r.strict({TYPE:r.literal("Doc"),typ:r.string,fields:r.record(r.string,t.FieldC)})),t.Docs=r.recursion("Field",()=>r.strict({docs:r.record(r.string,r.union([t.DocRelationC,t.SimpleField,t.Group,t.SliceZone])),docRelationsMap:r.record(r.string,t.DocRelationC)})),t.DocRelationType="DocRelation",t.extractGroupOrFieldIfAny=function(n){return void 0!==n&&(n.TYPE===t.SimpleFieldType||n.TYPE===t.DocRelationType||n.TYPE===t.GroupType)?n:void 0},t.extractSliceFetchIfAny=function(n){if(void 0!==n&&n.TYPE===t.SliceZoneType)return n}},73985:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkResolver=t.Fetch=t.Extensions=t.ApiVersion=void 0;let r=e(22970);r.__exportStar(e(27380),t);var i=e(15087);Object.defineProperty(t,"ApiVersion",{enumerable:!0,get:function(){return i.ApiVersion}}),r.__exportStar(e(32548),t),t.Extensions=r.__importStar(e(35280)),t.Fetch=r.__importStar(e(71659));var u=e(43134);Object.defineProperty(t,"LinkResolver",{enumerable:!0,get:function(){return u.LinkResolver}})},621:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.withObjectRenderers=void 0;let r=e(22970),i=e(74982),u=e(92425),o=r.__importStar(e(72720)),a=e(79687);t.withObjectRenderers=function(n){return{...n,renderV1Object(t,e){let r=t instanceof Array?t:Object.entries(t);return Object.fromEntries((0,u.compact)(r.map(([t,r])=>i.EmptyContent.is(r)?o.none:(0,a.renderIfNoFetchOrFetchDefined)(e,t,e=>o.some([t,n.renderV1(r,e)])))))},renderV2Object(t,e,r,u,c){let f=t instanceof Array?Object.fromEntries(t):t,l={};return Object.entries(r).forEach(([t,r])=>{let p=f[t];if(void 0===p)e&&t in e||!e?l[t]=n.renderDefault(r):e&&"default"===u.withFetch&&(l[t]=n.renderDefault(r));else if(i.EmptyContent.is(p))e&&t in e?"default"===c.withFetchField?l[t]=n.renderDefault(r):"render"===c.withFetchField&&(l[t]=n.renderV2(r,p,e[t])):e?"default"===c.withFetch&&(l[t]=n.renderDefault(r)):"default"===c.default?l[t]=n.renderDefault(r):"render"===c.default&&(l[t]=n.renderV2(r,p));else{let i=(0,a.renderIfNoFetchOrFetchDefined)(e,t,t=>o.some(n.renderV2(r,p,t)));o.isSome(i)&&(l[t]=i.value)}}),l},renderMocksObject(t,e){let r=t instanceof Array?Object.fromEntries(t):t,u={};return Object.entries(e).forEach(([t,e])=>{let c=r[t];if(void 0===c)u[t]=n.renderDefault(e);else if(i.EmptyContent.is(c))u[t]=n.renderDefault(e);else{let r=(0,a.renderIfNoFetchOrFetchDefined)(void 0,t,()=>o.some(n.renderMocks(e,c)));o.isSome(r)&&(u[t]=r.value)}}),u}}}},79687:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=t.formatDate=t.formatDateTime=t.filterDouble=t.writeEmptyStringOrNull=t.renderIfNoFetchOrFetchDefined=void 0;let r=e(22970).__importStar(e(72720));t.renderIfNoFetchOrFetchDefined=function(n,t,e){if(void 0===n)return e(void 0);{let i=n[t];return void 0===i?r.none:e(i)}},t.writeEmptyStringOrNull=function(n,t){return null==n?t?"":null:n},t.filterDouble=function(n){if(""===n)return null;let t=Number(n);return Number.isNaN(t)?null:t},t.formatDateTime=function(n){return n.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(n){return n.toISOString().replace(/T.*/,"")},t.isEmpty=function(n){for(let t in n)return!1;return!0}},937:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970).__importDefault(e(12706));t.default=n=>({renderV1:(t,e)=>({type:"Group",value:t.value.map(t=>(0,r.default)(n).renderV1Object(t.value,null==e?void 0:e.fields))}),renderV2:(t,e,i)=>e.value.map(e=>{var u;return(0,r.default)(n).renderV2Object(e.value,null==i?void 0:i.fields,(null===(u=t.config)||void 0===u?void 0:u.fields)||{},{withFetch:"filter"},{default:"default",withFetch:"default",withFetchField:"default"})}),renderDefault:()=>[],renderMocks:(t,e)=>e.value.map(e=>{var i,u;return(null===(i=t.config)||void 0===i?void 0:i.fields)?(0,r.default)(n).renderMocksObject(e.value,null===(u=t.config)||void 0===u?void 0:u.fields):{}})})},56016:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970).__importDefault(e(12706));t.default=n=>({renderV1:(t,e)=>t.value.map(t=>(0,r.default)(n).renderV1(t,e)),renderV2:(t,e,i)=>e.value.map(e=>(0,r.default)(n).renderV2({...t,config:{...t.config,repeat:!1}},e,i)),renderDefault:()=>[],renderMocks:(t,e)=>e.value.map(e=>(0,r.default)(n).renderMocks({...t,config:{...t.config,repeat:!1}},e))})},65082:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(74982),u=e(71659),o=e(621),a=e(26041),c=r.__importDefault(e(32955));function f(n){return void 0!==n&&n.TYPE===u.SimpleFieldType?n:void 0}function l(n){return void 0!==n&&n.TYPE===u.DocRelationType?n:void 0}t.default=n=>(0,o.withObjectRenderers)({renderV1(t,e){if((0,i.isRichTextContent)(t))return(0,a.StructuredTextRenderer)(n).renderV1(t,f(e));if((0,i.isImageContent)(t))return(0,a.ImageRenderer)(n).renderV1(t);if((0,i.isRangeContent)(t)||(0,i.isNumberContent)(t)||(0,i.isTimestampContent)(t)||(0,i.isDateContent)(t)||(0,i.isTextContent)(t)||(0,i.isColorContent)(t)||(0,i.isSelectContent)(t))return a.FieldRenderer.renderV1(t);if((0,i.isLinkContent)(t))return(0,a.LinkRenderer)(n).renderV1(t,l(e));if((0,i.isEmbedContent)(t))return a.EmbedRenderer.renderV1(t);if((0,i.isGeoPointContent)(t))return a.GeoPointRenderer.renderV1(t);if((0,i.isUIDContent)(t))return c.default.renderV1(t);else if((0,i.isIntegrationFieldContent)(t))return(0,a.IntegrationFieldsRenderer)(n).renderV1(t);else if((0,i.isSeparatorContent)(t))return a.SeparatorRenderer.renderV1(t);else if((0,i.isBooleanContent)(t))return a.BooleanRenderer.renderV1(t);else if((0,i.isTableContent)(t))return(0,a.TableRenderer)(n).renderV1(t,f(e));else return null},renderV2(t,e,r){if("StructuredText"===t.type&&(0,i.isRichTextContent)(e))return(0,a.StructuredTextRenderer)(n).renderV2(t,e,f(r));if("Image"===t.type&&(0,i.isImageContent)(e))return(0,a.ImageRenderer)(n).renderV2(t,e);if("Link"===t.type&&(0,i.isLinkContent)(e))return(0,a.LinkRenderer)(n).renderV2(t,e,l(r));if("Embed"===t.type&&(0,i.isEmbedContent)(e))return a.EmbedRenderer.renderV2(t,e);if("GeoPoint"===t.type&&(0,i.isGeoPointContent)(e))return a.GeoPointRenderer.renderV2(t,e);if("IntegrationFields"===t.type&&(0,i.isIntegrationFieldContent)(e))return(0,a.IntegrationFieldsRenderer)(n).renderV2(t,e);if("Separator"===t.type&&(0,i.isSeparatorContent)(e))return a.SeparatorRenderer.renderV2(t,e);else if("Boolean"===t.type&&(0,i.isBooleanContent)(e))return a.BooleanRenderer.renderV2(t,e);else if((0,i.isRangeContent)(e)||(0,i.isNumberContent)(e)||(0,i.isTimestampContent)(e)||(0,i.isDateContent)(e)||(0,i.isTextContent)(e)||(0,i.isColorContent)(e)||(0,i.isSelectContent)(e))return a.FieldRenderer.renderV2(t,e);else if("Table"===t.type&&(0,i.isTableContent)(e))return(0,a.TableRenderer)(n).renderV2(t,e,f(r));else return null},renderDefault(t){if("Link"===t.type)return(0,a.LinkRenderer)(n).renderDefault(t);if("Embed"===t.type)return a.EmbedRenderer.renderDefault(t);if("GeoPoint"===t.type)return a.GeoPointRenderer.renderDefault(t);if("StructuredText"===t.type)return(0,a.StructuredTextRenderer)(n).renderDefault(t);if("Image"===t.type)return(0,a.ImageRenderer)(n).renderDefault(t);if("Separator"===t.type)return a.SeparatorRenderer.renderDefault(t);if("Boolean"===t.type)return a.BooleanRenderer.renderDefault(t);else if("IntegrationFields"===t.type)return(0,a.IntegrationFieldsRenderer)(n).renderDefault(t);else if("Table"===t.type)return(0,a.TableRenderer)(n).renderDefault(t);else return a.FieldRenderer.renderDefault(t)},renderMocks(t,e){if("StructuredText"===t.type&&(0,i.isRichTextContent)(e))return(0,a.StructuredTextRenderer)(n).renderMocks(t,e);if("Image"===t.type&&(0,i.isImageContent)(e))return(0,a.ImageRenderer)(n).renderMocks(t,e);if("Link"===t.type&&(0,i.isLinkContent)(e))return(0,a.LinkRenderer)(n).renderMocks(t,e);if("Embed"===t.type&&(0,i.isEmbedContent)(e))return a.EmbedRenderer.renderMocks(t,e);if("GeoPoint"===t.type&&(0,i.isGeoPointContent)(e))return a.GeoPointRenderer.renderMocks(t,e);if("IntegrationFields"===t.type&&(0,i.isIntegrationFieldContent)(e))return(0,a.IntegrationFieldsRenderer)(n).renderMocks(t,e);if("Separator"===t.type&&(0,i.isSeparatorContent)(e))return a.SeparatorRenderer.renderMocks(t,e);else if("Boolean"===t.type&&(0,i.isBooleanContent)(e))return a.BooleanRenderer.renderMocks(t,e);else if((0,i.isRangeContent)(e)&&"Range"===t.type||(0,i.isNumberContent)(e)&&"Number"===t.type||(0,i.isTimestampContent)(e)&&"Timestamp"===t.type||(0,i.isDateContent)(e)&&"Date"===t.type||(0,i.isTextContent)(e)&&"Text"===t.type||(0,i.isColorContent)(e)&&"Color"===t.type||(0,i.isSelectContent)(e)&&"Select"===t.type)return a.FieldRenderer.renderMocks(t,e);else if("Table"===t.type&&(0,i.isTableContent)(e))return(0,a.TableRenderer)(n).renderMocks(t,e);else return null}})},12706:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(74982),u=e(71659),o=e(621),a=r.__importDefault(e(937)),c=r.__importDefault(e(56016)),f=r.__importDefault(e(65082));function l(n){return void 0!==n&&n.TYPE===u.GroupType?n:void 0}function p(n){return void 0!==n&&n.TYPE!==u.GroupType?n:void 0}function d(n){return void 0!==n&&("SimpleField"===n.TYPE||"DocRelation"===n.TYPE)?n:void 0}function s(n,t,e,r){var u,o,a,c;if("Link"===n.type){if((null===(u=n.config)||void 0===u?void 0:u.repeat)&&(0,i.isRepeatableContent)(t))return r.repeatable(n,t,d(e));if((null===(o=n.config)||void 0===o?void 0:o.repeat)&&(0,i.isLinkContent)(t))return r.repeatable(n,{__TYPE__:"RepeatableContent",type:n.type,value:[t]},d(e));if(!(null===(a=n.config)||void 0===a?void 0:a.repeat)&&(0,i.isRepeatableContent)(t)&&t.value[0])return r.simple(n,t.value[0],p(e));if(!(null===(c=n.config)||void 0===c?void 0:c.repeat)&&(0,i.isRepeatableContent)(t))return r.default(n)}return"Group"!==n.type&&(0,i.isNestableContent)(t)?r.simple(n,t,p(e)):"Group"===n.type&&(0,i.isGroupContent)(t)?r.group(n,t,l(e)):r.default(n)}t.default=n=>(0,o.withObjectRenderers)({renderV1:(t,e)=>(0,i.isGroupContent)(t)?(0,a.default)(n).renderV1(t,l(e)):(0,i.isRepeatableContent)(t)?(0,c.default)(n).renderV1(t,d(e)):(0,f.default)(n).renderV1(t,p(e)),renderV2(t,e,r){return s(t,e,r,{group:(t,e,r)=>(0,a.default)(n).renderV2(t,e,r),repeatable:(t,e,r)=>(0,c.default)(n).renderV2(t,e,r),simple:(t,e,r)=>(0,f.default)(n).renderV2(t,e,r),default:n=>this.renderDefault(n)})},renderDefault(t){var e;return"Link"===t.type&&(null===(e=t.config)||void 0===e?void 0:e.repeat)?(0,c.default)(n).renderDefault(t):"Group"===t.type?(0,a.default)(n).renderDefault(t):(0,f.default)(n).renderDefault(t)},renderMocks(t,e){return s(t,e,void 0,{group:(t,e)=>(0,a.default)(n).renderMocks(t,e),repeatable:(t,e)=>(0,c.default)(n).renderMocks(t,e),simple:(t,e)=>(0,f.default)(n).renderMocks(t,e),default:n=>this.renderDefault(n)})}})},32955:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:n=>({value:n.value}),renderV2:(n,t)=>t.value,renderDefault:n=>null,renderMocks:(n,t)=>t.value}},81542:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDRenderer=t.StaticWidgetRenderer=t.SimpleWidgetRenderer=t.GroupRenderer=void 0;let r=e(22970);var i=e(937);Object.defineProperty(t,"GroupRenderer",{enumerable:!0,get:function(){return r.__importDefault(i).default}}),r.__exportStar(e(26041),t);var u=e(65082);Object.defineProperty(t,"SimpleWidgetRenderer",{enumerable:!0,get:function(){return r.__importDefault(u).default}}),r.__exportStar(e(94814),t);var o=e(12706);Object.defineProperty(t,"StaticWidgetRenderer",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var a=e(32955);Object.defineProperty(t,"UIDRenderer",{enumerable:!0,get:function(){return r.__importDefault(a).default}})},7796:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:n=>({type:"Boolean",value:n.value}),renderV2:(n,t)=>t.value,renderDefault:n=>null,renderMocks(n,t){return this.renderV2(n,t)}}},89591:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:n=>({type:"Embed",value:{oembed:n.all}}),renderV2:(n,t)=>t.all,renderDefault:n=>({}),renderMocks(n,t){return this.renderV2(n,t)}}},49357:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(79687),i=/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:(?:[+-]{1}[0-9]{2}:?[0-9]{2})|Z)$/,u=/^(\d{1,4})-([0-9]{1,2})-([0-9]{1,2})$/;function o(n){let[t,e,r]=[n[1],n[2],n[3]];return`${t.padStart(4,"0")}-${e.padStart(2,"0")}-${r.padStart(2,"0")}T00:00:00.000+0000`}t.default={renderV1(n){let t={type:n.type,value:null};switch(n.type){case"Number":{let e=(0,r.filterDouble)(n.value);return{...t,value:e}}case"Date":try{let e=u.exec(n.value);if(e){let n=new Date(o(e));return{...t,value:(0,r.formatDate)(n)}}return t}catch(e){return console.warn(`Unable to render Date value with ${n.value}: ${e.toString()}`),t}case"Timestamp":try{if(i.test(n.value)){let e=new Date(n.value);return{...t,value:(0,r.formatDateTime)(e)}}return t}catch(e){return console.warn(`Unable to render Timestamp value with ${n.value}: ${e.toString()}`),t}default:return{...t,value:n.value}}},renderV2(n,t){switch(t.type){case"Number":return(0,r.filterDouble)(t.value);case"Date":try{let n=u.exec(t.value);if(n){let t=new Date(o(n));return(0,r.formatDate)(t)}return null}catch(n){return console.warn(`Unable to render Date value with ${t.value}: ${n.toString()}`),null}case"Timestamp":try{if(i.test(t.value)){let n=new Date(t.value);return(0,r.formatDateTime)(n)}return null}catch(n){return console.warn(`Unable to render Timestamp value with ${t.value}: ${n.toString()}`),null}default:return t.value}},renderDefault:n=>null,renderMocks(n,t){return this.renderV2(n,t)}}},42715:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:n=>({type:"GeoPoint",value:{latitude:n.position.lat,longitude:n.position.lng}}),renderV2:(n,t)=>({latitude:t.position.lat,longitude:t.position.lng}),renderDefault:n=>({}),renderMocks(n,t){return this.renderV2(n,t)}}},6637:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(73985),i=e(79687);function u(n,t,e){let r="v2"===e?{id:n.origin.id,edit:{x:n.edit.crop.x,y:n.edit.crop.y,zoom:n.edit.zoom,background:n.edit.background}}:{};return{dimensions:{width:n.width,height:n.height},alt:(0,i.writeEmptyStringOrNull)(n.alt,t.emptyStringInsteadOfNull),copyright:(0,i.writeEmptyStringOrNull)(n.credits,t.emptyStringInsteadOfNull),url:t.urlRewriter.rewriteImageUrl(n),...r}}t.default=n=>({renderV1(t){if(t.thumbnails){let e=Object.entries(t.thumbnails).reduce((t,[e,i])=>({...t,[e.toLowerCase()]:u(i,n,r.ApiVersion.v1)}),{});return{type:"Image",value:{main:u(t,n,r.ApiVersion.v1),views:e}}}return{type:"Image",value:{main:u(t,n,r.ApiVersion.v1),views:{}}}},renderV2(t,e){let i=u(e,n,r.ApiVersion.v2);return e.thumbnails?Object.assign(i,Object.entries(e.thumbnails).reduce((t,[e,i])=>Object.assign(t,{[e]:u(i,n,r.ApiVersion.v2)}),{})):i},renderDefault(n){var t;return((null===(t=n.config)||void 0===t?void 0:t.thumbnails)||[]).reduce((n,{name:t})=>({...n,[t]:{}}),{})},renderMocks(n,t){return this.renderV2(n,t)}})},6413:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n=>{var t;let e=null===(t=n.Extension)||void 0===t?void 0:t.encoders.integrationFields;return{renderV1(n){if(!e)return{value:{}};try{return{type:"IntegrationFields",value:e.encode(n.value)}}catch(n){return{value:{}}}},renderV2(n,t){if(!e)return{};try{return e.encode(t.value)}catch(n){return{}}},renderDefault:n=>null,renderMocks(n){return this.renderDefault(n)}}}},8092:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:(n,t,e)=>({type:"Link.any",value:{...!(null==e?void 0:e.omitKey)&&{key:n.key},...n.value.text&&{text:n.value.text},...n.value.variant&&{variant:n.value.variant}}}),renderV2(n,t,e,r){let i=n.variants||[],u=t.value.variant&&i.includes(t.value.variant)?t.value.variant:i[0];return{link_type:"Any",...!(null==r?void 0:r.omitKey)&&{key:t.key},...n.allowText&&t.value.text&&{text:t.value.text},...u&&{variant:u}}},renderMocks(n,t,e){return this.renderV2(n,t,void 0,e)}}},50335:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.BROKEN_CUSTOM_TYPE=void 0;let r=e(74982),i=e(73985);function u(n,e){return{type:"Link.document",value:{...!(null==e?void 0:e.omitKey)&&{key:n.key},...r.FilledDocumentLinkContent.is(n.value)&&{id:n.value.id,tags:[]},type:t.BROKEN_CUSTOM_TYPE,isBroken:!0,...n.value.text&&{text:n.value.text},...n.value.variant&&{variant:n.value.variant}}}}function o(n,e,i){let u=e.variants||[],o=n.value.variant&&u.includes(n.value.variant)?n.value.variant:u[0];return{...!(null==i?void 0:i.omitKey)&&{key:n.key},...r.FilledDocumentLinkContent.is(n.value)&&{id:n.value.id,tags:[]},type:t.BROKEN_CUSTOM_TYPE,isBroken:!0,...e.allowText&&n.value.text&&{text:n.value.text},...o&&{variant:o}}}t.BROKEN_CUSTOM_TYPE="broken_type",t.default=n=>{let t=n.Extension;return{renderV1(n,e,i){if(!t)return u(n,i);try{if(r.FilledDocumentLinkContent.is(n.value)){let r=(null==i?void 0:i.omitKey)?void 0:n.key,u=t.DocEncoder.encodeDocId(n.value.id,null==e?void 0:e.uuid,[r,n.value.text,n.value.variant]);return{type:"Link.document",value:t.encoders.documentLinks.encode(u)}}return{type:"Link.document",value:{...!(null==i?void 0:i.omitKey)&&{key:n.key},...n.value.text&&{text:n.value.text},...n.value.variant&&{variant:n.value.variant}}}}catch(t){return u(n,i)}},renderV2(n,e,i,u){if(!t)return o(e,n,u);try{let o=n.allowText?e.value.text:void 0,a=n.variants||[],c=e.value.variant&&a.includes(e.value.variant)?e.value.variant:a[0];if(r.FilledDocumentLinkContent.is(e.value)){let n=(null==u?void 0:u.omitKey)?void 0:e.key,r=t.DocEncoder.encodeDocId(e.value.id,null==i?void 0:i.uuid,[n,o,c]);return t.encoders.documentLinks.encode(r)}return{link_type:"Document",...!(null==u?void 0:u.omitKey)&&{key:e.key},...o&&{text:o},...c&&{variant:c}}}catch(t){return o(e,n,u)}},renderMocks(n,t,e){if(r.FilledDocumentLinkContent.is(t.value)){let r=i.DocumentLinkDef.is(n)&&n.customtypes[0]||"mock",u=n.variants||[],o=t.value.variant&&u.includes(t.value.variant)?t.value.variant:u[0];return{id:t.value.id,...n.allowText&&t.value.text&&{text:t.value.text},...o&&{variant:o},link_type:"Document",...!(null==e?void 0:e.omitKey)&&{key:t.key},type:r,tags:[],lang:"en-us",slug:null,first_publication_date:"1970-01-01T00:00:01+0000",last_publication_date:"1970-01-01T01:00:00+0000"}}return o(t,n,e)}}}},15802:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(74982);t.default={renderV1:(n,t,e)=>({type:"Link.web",value:{...!(null==e?void 0:e.omitKey)&&{key:n.key},...r.FilledExternalLinkContent.is(n.value)&&{url:n.value.url,..."string"==typeof n.value.target&&{target:n.value.target}},...n.value.text&&{text:n.value.text},...n.value.variant&&{variant:n.value.variant}}}),renderV2(n,t,e,i){let u=n.variants||[],o=t.value.variant&&u.includes(t.value.variant)?t.value.variant:u[0];return{link_type:"Web",...!(null==i?void 0:i.omitKey)&&{key:t.key},...r.FilledExternalLinkContent.is(t.value)&&{url:t.value.url,..."string"==typeof t.value.target&&{target:t.value.target}},...n.allowText&&t.value.text&&{text:t.value.text},...o&&{variant:o}}},renderMocks(n,t,e){return this.renderV2(n,t,void 0,e)}}},50632:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(74982);t.default=n=>({renderV1:(t,e,i)=>({type:"Link.file",value:{...!(null==i?void 0:i.omitKey)&&{key:t.key},file:{kind:t.value.kind,...r.FilledFileLinkContent.is(t.value)&&{url:n.urlRewriter.rewriteFileUrl(t.value.url),name:t.value.name,size:t.value.size},...t.value.text&&{text:t.value.text},...t.value.variant&&{variant:t.value.variant}}}}),renderV2(t,e,i,u){let o=t.variants||[],a=e.value.variant&&o.includes(e.value.variant)?e.value.variant:o[0];return{link_type:"Media",...!(null==u?void 0:u.omitKey)&&{key:e.key},kind:e.value.kind,...r.FilledFileLinkContent.is(e.value)&&{id:e.value.id,url:n.urlRewriter.rewriteFileUrl(e.value.url),name:e.value.name,size:e.value.size},...t.allowText&&e.value.text&&{text:e.value.text},...a&&{variant:a}}},renderMocks(n,t,e){return this.renderV2(n,t,void 0,e)}})},83434:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(74982);t.default=n=>({renderV1:(t,e,i)=>({type:"Link.image",value:{...!(null==i?void 0:i.omitKey)&&{key:t.key},image:{kind:t.value.kind,...r.FilledImageLinkContent.is(t.value)&&{id:t.value.id,url:n.urlRewriter.optimizeImageUrl(t.value.url),name:t.value.name,size:t.value.size,width:t.value.width,height:t.value.height},...t.value.text&&{text:t.value.text},...t.value.variant&&{variant:t.value.variant}}}}),renderV2(t,e,i,u){let o=t.variants||[],a=e.value.variant&&o.includes(e.value.variant)?e.value.variant:o[0];return{link_type:"Media",...!(null==u?void 0:u.omitKey)&&{key:e.key},kind:e.value.kind,...r.FilledImageLinkContent.is(e.value)&&{id:e.value.id,url:n.urlRewriter.optimizeImageUrl(e.value.url),name:e.value.name,size:e.value.size,width:e.value.width,height:e.value.height},...t.allowText&&e.value.text&&{text:e.value.text},...a&&{variant:a}}},renderMocks(n,t,e){return this.renderV2(n,t,void 0,e)}})},1666:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:(n,t,e)=>({type:"Link.media",value:{...!(null==e?void 0:e.omitKey)&&{key:n.key},...n.value.text&&{text:n.value.text},...n.value.variant&&{variant:n.value.variant}}}),renderV2(n,t,e,r){let i=n.variants||[],u=t.value.variant&&i.includes(t.value.variant)?t.value.variant:i[0];return{link_type:"Media",...!(null==r?void 0:r.omitKey)&&{key:t.key},...n.allowText&&t.value.text&&{text:t.value.text},...u&&{variant:u}}},renderMocks(n,t,e){return this.renderV2(n,t,void 0,e)}}},57777:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageLinkRenderer=t.FileLinkRenderer=t.ExternalLinkRenderer=t.DocumentLinkRenderer=void 0;let r=e(22970),i=e(73985),u=r.__importDefault(e(8092)),o=r.__importDefault(e(50335));t.DocumentLinkRenderer=o.default;let a=r.__importDefault(e(15802));t.ExternalLinkRenderer=a.default;let c=r.__importDefault(e(50632));t.FileLinkRenderer=c.default;let f=r.__importDefault(e(83434));t.ImageLinkRenderer=f.default;let l=r.__importDefault(e(1666));t.default=n=>({renderV1(t,e,r){if("ImageLink"===t.value.__TYPE__)return(0,f.default)(n).renderV1({...t,value:t.value},void 0,r);if("DocumentLink"===t.value.__TYPE__)return(0,o.default)(n).renderV1({...t,value:t.value},e,r);if("FileLink"===t.value.__TYPE__)return(0,c.default)(n).renderV1({...t,value:t.value},void 0,r);if("ExternalLink"===t.value.__TYPE__)return a.default.renderV1({...t,value:t.value},void 0,r);if("MediaLink"===t.value.__TYPE__)return l.default.renderV1({...t,value:t.value},void 0,r);if("AnyLink"===t.value.__TYPE__)return u.default.renderV1({...t,value:t.value},void 0,r);throw Error(`No rendered found for link ${JSON.stringify(t)}`)},renderV2(t,e,r,p){return((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"ImageLink"===e.value.__TYPE__?(0,f.default)(n).renderV2(t.config,{...e,value:e.value},void 0,p):((0,i.isDocumentLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"DocumentLink"===e.value.__TYPE__?(0,o.default)(n).renderV2(t.config,{...e,value:e.value},r,p):((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"FileLink"===e.value.__TYPE__?(0,c.default)(n).renderV2(t.config,{...e,value:e.value},void 0,p):((0,i.isWebLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"ExternalLink"===e.value.__TYPE__?a.default.renderV2(t.config,{...e,value:e.value},void 0,p):((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"MediaLink"===e.value.__TYPE__?l.default.renderV2(t.config,{...e,value:e.value},void 0,p):(0,i.isAnyLinkDef)(t)&&"AnyLink"===e.value.__TYPE__?u.default.renderV2(t.config,{...e,value:e.value},void 0,p):this.renderDefault(t)},renderDefault(n){var t;switch(null===(t=n.config)||void 0===t?void 0:t.select){case"media":return{link_type:"Media"};case"document":return{link_type:"Document"};case"web":return{link_type:"Web"};default:return{link_type:"Any"}}},renderMocks(t,e,r){return((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"ImageLink"===e.value.__TYPE__?(0,f.default)(n).renderMocks(t.config,{...e,value:e.value},r):((0,i.isDocumentLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"DocumentLink"===e.value.__TYPE__?(0,o.default)(n).renderMocks(t.config,{...e,value:e.value},r):((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"FileLink"===e.value.__TYPE__?(0,c.default)(n).renderMocks(t.config,{...e,value:e.value},r):((0,i.isWebLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"ExternalLink"===e.value.__TYPE__?a.default.renderMocks(t.config,{...e,value:e.value},r):((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"MediaLink"===e.value.__TYPE__?l.default.renderMocks(t.config,{...e,value:e.value},r):(0,i.isAnyLinkDef)(t)&&"AnyLink"===e.value.__TYPE__?u.default.renderMocks(t.config,{...e,value:e.value},r):this.renderDefault(t)}})},97562:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:n=>({type:"Separator"}),renderV2:(n,t)=>!0,renderDefault:n=>!0,renderMocks(n,t){return this.renderV2(n,t)}}},83775:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(74982),u=r.__importStar(e(87412)),o=e(73985),a=e(73985),c=e(79687),f=r.__importDefault(e(57777));function l(n){if((0,i.isLinkContent)(n))switch(n.value.__TYPE__){case"DocumentLink":return"document";case"ExternalLink":return"web";case"FileLink":case"ImageLink":return"media";default:return null}throw Error(`[UNREACHABLE] unknown Link type for ${JSON.stringify(n)}`)}function p(n,t,e){return t===o.ApiVersion.v1?(0,f.default)(e).renderV1(n,void 0,{omitKey:!0}):t===o.ApiVersion.v2?(0,f.default)(e).renderV2((0,a.defaultLink)(l(n)),n,void 0,{omitKey:!0}):t===o.ApiVersion.mocks?(0,f.default)(e).renderMocks((0,a.defaultLink)(l(n)),n,{omitKey:!0}):void 0}t.default=n=>({renderBlock:t=>e=>{if((0,i.checkImageBlock)(t)){let r=t.data.linkTo?{linkTo:p({__TYPE__:"LinkContent",key:"",value:t.data.linkTo},e,n)}:{},i=t.label?{label:t.label}:{},u=t.direction?{direction:t.direction}:{},a=e===o.ApiVersion.v2?{id:t.data.origin.id,edit:{x:t.data.edit.crop.x,y:t.data.edit.crop.y,zoom:t.data.edit.zoom,background:t.data.edit.background}}:{};return{type:"image",url:n.urlRewriter.rewriteImageUrl(t.data),alt:(0,c.writeEmptyStringOrNull)(t.data.alt,n.emptyStringInsteadOfNull),copyright:(0,c.writeEmptyStringOrNull)(t.data.credits,n.emptyStringInsteadOfNull),dimensions:{width:t.data.width,height:t.data.height},...a,...r,...i,...u}}if((0,i.checkEmbedBlock)(t)){let n=t.label?{label:t.label}:{},e=t.direction?{direction:t.direction}:{};return{type:"embed",oembed:t.data.all,...n,...e}}{let r=t.label?{label:t.label}:{},o=t.direction?{direction:t.direction}:{},a=(t.content.spans||[]).map(t=>{let r={start:t.start,end:t.end,type:t.type};if("hyperlink"===t.type){let o=i.Link.decode(t.data),a=u.isRight(o)?p({__TYPE__:"LinkContent",value:o.right},e,n):{};return{...r,data:a}}return"label"===t.type?{...r,data:{label:"string"==typeof t.data?t.data:""}}:r});return{type:t.type,text:t.content.text,...r,spans:a,...o}}}})},558:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(14632),u=r.__importStar(e(72720)),o=e(73985),a=r.__importDefault(e(83775));function c(n,t){return t({__TYPE__:"StructuredTextContent",value:(0,i.pipe)(u.fromNullable(n.value.find(n=>n.type.startsWith("heading"))),u.alt(()=>u.fromNullable(n.value.find(n=>"embed"!==n.type&&"image"!==n.type))),u.map(n=>[n]),u.getOrElse(()=>[]))})}t.default=n=>({renderV1(t,e){let r=t.value.map(t=>(0,a.default)(n).renderBlock(t)(o.ApiVersion.v1));return void 0!==e&&e.legacy?c(t,t=>t.value.map(t=>(0,a.default)(n).renderBlock(t)(o.ApiVersion.v1))):{type:"StructuredText",value:r}},renderV2(t,e,r){return void 0!=r&&r.legacy?c(e,n=>this.renderV2(t,n,void 0)):e.value.map(t=>(0,a.default)(n).renderBlock(t)(o.ApiVersion.v2))},renderDefault:n=>[],renderMocks:(t,e)=>e.value.map(t=>(0,a.default)(n).renderBlock(t)(o.ApiVersion.mocks))})},11873:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(23535),u=r.__importDefault(e(558));function o(n,t){return{key:n.key,cells:n.content.map(n=>({key:n.key,type:a[n.type],content:t(n.content)}))}}let a={tableHeader:"header",tableCell:"data"};t.default=n=>({renderV1:(n,t)=>null,renderV2:(t,e,r)=>(function(n,t){let e=n.content[0];if(!e)return null;let r=e.content.every(n=>"tableHeader"===n.type),i=r?e:void 0,u=r?n.content.slice(1):n.content;return{...i?{head:function(n,t){if(n)return{rows:[o(n,t)]}}(i,t)}:{},body:{rows:u.map(n=>o(n,t))}}})(e,t=>(0,u.default)(n).renderV2(i.TableCell,t,r)),renderDefault:n=>null,renderMocks(n,t){return this.renderV2(n,t)}})},26041:function(n,t,e){var r=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.TableRenderer=t.StructuredTextRenderer=t.SeparatorRenderer=t.LinkRenderer=t.ImageLinkRenderer=t.FileLinkRenderer=t.ExternalLinkRenderer=t.DocumentLinkRenderer=t.IntegrationFieldsRenderer=t.ImageRenderer=t.GeoPointRenderer=t.FieldRenderer=t.EmbedRenderer=t.BooleanRenderer=void 0;var i=e(7796);Object.defineProperty(t,"BooleanRenderer",{enumerable:!0,get:function(){return r(i).default}});var u=e(89591);Object.defineProperty(t,"EmbedRenderer",{enumerable:!0,get:function(){return r(u).default}});var o=e(49357);Object.defineProperty(t,"FieldRenderer",{enumerable:!0,get:function(){return r(o).default}});var a=e(42715);Object.defineProperty(t,"GeoPointRenderer",{enumerable:!0,get:function(){return r(a).default}});var c=e(6637);Object.defineProperty(t,"ImageRenderer",{enumerable:!0,get:function(){return r(c).default}});var f=e(6413);Object.defineProperty(t,"IntegrationFieldsRenderer",{enumerable:!0,get:function(){return r(f).default}});var l=e(57777);Object.defineProperty(t,"DocumentLinkRenderer",{enumerable:!0,get:function(){return l.DocumentLinkRenderer}}),Object.defineProperty(t,"ExternalLinkRenderer",{enumerable:!0,get:function(){return l.ExternalLinkRenderer}}),Object.defineProperty(t,"FileLinkRenderer",{enumerable:!0,get:function(){return l.FileLinkRenderer}}),Object.defineProperty(t,"ImageLinkRenderer",{enumerable:!0,get:function(){return l.ImageLinkRenderer}}),Object.defineProperty(t,"LinkRenderer",{enumerable:!0,get:function(){return r(l).default}});var p=e(97562);Object.defineProperty(t,"SeparatorRenderer",{enumerable:!0,get:function(){return r(p).default}});var d=e(558);Object.defineProperty(t,"StructuredTextRenderer",{enumerable:!0,get:function(){return r(d).default}});var s=e(11873);Object.defineProperty(t,"TableRenderer",{enumerable:!0,get:function(){return r(s).default}})},24485:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(71659),u=e(79687),o=r.__importDefault(e(12706));t.default=n=>({renderV1(t,e){var r,i;let a=null===(r=null==e?void 0:e.repeat)||void 0===r?void 0:r.fields,c=null===(i=null==e?void 0:e.nonRepeat)||void 0===i?void 0:i.fields,f=t.repeat.flatMap(t=>{let e=(0,o.default)(n).renderV1Object(t.value,a);return(0,u.isEmpty)(e)?[]:[e]});return{"non-repeat":(0,o.default)(n).renderV1Object(t.nonRepeat,c),repeat:f}},renderV2(t,e,r){var u;let a=void 0===r?void 0:{TYPE:i.GroupType,name:t.type,fields:r.repeat.fields},c=null===(u=null==r?void 0:r.nonRepeat)||void 0===u?void 0:u.fields,f=e.repeat.map(e=>(0,o.default)(n).renderV2Object(e.value,null==a?void 0:a.fields,t.repeat||{},{withFetch:"default"},{default:"render",withFetch:"filter",withFetchField:"render"}));return{primary:(0,o.default)(n).renderV2Object(e.nonRepeat,c,t["non-repeat"]||{},{withFetch:"default"},{default:"render",withFetch:"filter",withFetchField:"render"}),items:f}},renderDefault:n=>({}),renderMocks(t,e){let r=e.repeat.map(e=>(0,o.default)(n).renderMocksObject(e.value,t.repeat||{}));return{primary:(0,o.default)(n).renderMocksObject(e.nonRepeat,t["non-repeat"]||{}),items:r}}})},68422:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970).__importDefault(e(12706));function i(n,t,e){var r,i,u;return null===(u=null===(i=null===(r=null==e?void 0:e.variations)||void 0===r?void 0:r[n])||void 0===i?void 0:i[t])||void 0===u?void 0:u.fields}t.default=n=>({renderV1(t,e){let u=t.items.map(u=>(0,r.default)(n).renderV1Object(u.value,i(t.variation,"repeat",e))),o=(0,r.default)(n).renderV1Object(t.primary,i(t.variation,"nonRepeat",e));return{variation:t.variation,items:u,primary:o}},renderV2(t,e,u){let o=t.variations.find(n=>n.id===e.variation);if(void 0===o)return this.renderDefault(t);let a=e.items.map(t=>(0,r.default)(n).renderV2Object(t.value,i(e.variation,"repeat",u),o.items||{},{withFetch:"filter"},{default:"default",withFetch:"filter",withFetchField:"render"})),c=(0,r.default)(n).renderV2Object(e.primary,i(e.variation,"nonRepeat",u),o.primary||{},{withFetch:"filter"},{default:"default",withFetch:"filter",withFetchField:"render"});return{variation:e.variation,version:o.version,items:a,primary:c}},renderDefault:n=>({}),renderMocks(t,e){let i=t.variations.find(n=>n.id===e.variation);if(void 0===i)return this.renderDefault(t);let u=e.items.map(t=>(0,r.default)(n).renderMocksObject(t.value,i.items||{})),o=(0,r.default)(n).renderMocksObject(e.primary,i.primary||{});return{variation:e.variation,version:i.version,items:u,primary:o}}})},57962:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(74982),u=r.__importStar(e(72720)),o=r.__importDefault(e(12706));t.default=n=>({renderV1:(t,e)=>t.__TYPE__===i.EmptyContentType?u.none:u.some({value:(0,o.default)(n).renderV1(t,e)}),renderV2:(t,e,r)=>e.__TYPE__===i.EmptyContentType?u.none:u.some({value:(0,o.default)(n).renderV2(t,e,r)}),renderDefault:n=>({}),renderMocks:(t,e)=>e.__TYPE__===i.EmptyContentType?u.none:u.some({value:(0,o.default)(n).renderMocks(t,e)})})},6324:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(74982),u=e(23535),o=r.__importStar(e(72720)),a=e(71659),c=r.__importDefault(e(24485)),f=r.__importDefault(e(68422)),l=r.__importDefault(e(57962)),p={extractCompositeSlice(n){if(void 0!==n&&n.TYPE===a.CompositeSliceType)return n},extractSharedSlice(n){if(void 0!==n&&n.TYPE===a.SharedSliceType)return n},extractGroupOrField(n){if(void 0!==n&&n.TYPE!==a.CompositeSliceType&&n.TYPE!==a.SharedSliceType)return n}};t.default=n=>({renderV1:(t,e)=>(0,i.isCompositeSliceContent)(t)?o.some((0,c.default)(n).renderV1(t,p.extractCompositeSlice(e))):(0,i.isSharedSliceContent)(t)?o.some((0,f.default)(n).renderV1(t,p.extractSharedSlice(e))):(0,l.default)(n).renderV1(t,p.extractGroupOrField(e)),renderV2(t,e,r){return(0,i.isCompositeSliceContent)(e)&&u.CompositeSlice.is(t)?o.some((0,c.default)(n).renderV2(t,e,p.extractCompositeSlice(r))):(0,i.isSharedSliceContent)(e)&&u.SharedSlice.is(t)?o.some((0,f.default)(n).renderV2(t,e,p.extractSharedSlice(r))):(0,i.isSimpleSliceContent)(e)&&u.LegacySlice.is(t)?(0,l.default)(n).renderV2(t,e,p.extractGroupOrField(r)):o.some(this.renderDefault(t))},renderDefault:n=>({}),renderMocks(t,e){return(0,i.isCompositeSliceContent)(e)&&u.CompositeSlice.is(t)?o.some((0,c.default)(n).renderMocks(t,e)):(0,i.isSharedSliceContent)(e)&&u.SharedSlice.is(t)?o.some((0,f.default)(n).renderMocks(t,e)):(0,i.isSimpleSliceContent)(e)&&u.LegacySlice.is(t)?(0,l.default)(n).renderMocks(t,e):o.some(this.renderDefault(t))}})},3758:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(74982),u=e(42275),o=e(92425),a=r.__importStar(e(20492)),c=e(60130),f=e(79687),l=r.__importDefault(e(6324));function p(n,t){let e=RegExp(`^(${t})\\$\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12}$`);return n.match(e)?n:`${t}$${(0,c.v4)()}`}t.default=n=>({renderV1:(t,e)=>({type:"SliceZone",value:(function(n,t,e){let r=null==t?void 0:t.slices;return(0,o.compact)(n.value.map(n=>(0,u.pipe)((0,f.renderIfNoFetchOrFetchDefined)(r,n.key,t=>(0,l.default)(e).renderV1(n.widget,t)),a.map(t=>[n,t]))))})(t,e,n).map(([n,t])=>{var e;return{...t,id:p(n.key,n.name),slice_type:n.name,slice_label:null!==(e=n.maybeLabel)&&void 0!==e?e:null,type:"Slice"}})}),renderV2(t,e,r){var c;let d=Object.fromEntries(Object.entries((null===(c=t.config)||void 0===c?void 0:c.choices)||{}).map(([n,t])=>[n,t])),s=null==r?void 0:r.slices;return(0,o.compact)(e.value.map(t=>(0,f.renderIfNoFetchOrFetchDefined)(s,t.name,e=>(function(n,t,e,r){if("__TYPE__"in n.widget&&n.widget.__TYPE__===i.EmptyContentType||!(n.name in r))return a.none;{let i=r[n.name];return i?(0,u.pipe)((0,l.default)(e).renderV2(i,n.widget,t),a.map(t=>{var e;return{...t,id:p(n.key,n.name),slice_type:n.name,slice_label:null!==(e=n.maybeLabel)&&void 0!==e?e:null}})):a.none}})(t,e,n,d))))},renderDefault:n=>[],renderMocks(n,t){return this.renderV2(n,t)}})},94814:function(n,t,e){var r=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.SliceWidgetRenderer=t.SlicesRenderer=t.SimpleSliceRenderer=t.SharedSliceRenderer=t.CompositeSliceRenderer=void 0;var i=e(24485);Object.defineProperty(t,"CompositeSliceRenderer",{enumerable:!0,get:function(){return r(i).default}});var u=e(68422);Object.defineProperty(t,"SharedSliceRenderer",{enumerable:!0,get:function(){return r(u).default}});var o=e(57962);Object.defineProperty(t,"SimpleSliceRenderer",{enumerable:!0,get:function(){return r(o).default}});var a=e(3758);Object.defineProperty(t,"SlicesRenderer",{enumerable:!0,get:function(){return r(a).default}});var c=e(6324);Object.defineProperty(t,"SliceWidgetRenderer",{enumerable:!0,get:function(){return r(c).default}})},62283:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.IncompatibleMockConfigError=void 0;class e extends Error{constructor(n,t){super(`The ${n} mock config is not compatible with the ${t} field.`),Object.defineProperty(this,"mockConfigType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.mockConfigType=n,this.fieldType=t}}t.IncompatibleMockConfigError=e},24662:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentMock=void 0;let r=e(23535),i=e(73605),u=e(32361);t.DocumentMock={generate:(n,t={},e)=>(0,r.flattenWidgets)(n).map(([n,r])=>{let o=function(n,t,e){switch(n.type){case"Choice":case"Slices":return u.SliceZoneMock.generate(n,t,e);case"Group":return i.GroupMock.generate(n,e);case"UID":return i.UIDMock.generate(n,e);default:return i.NestableWidgetMock.generate(n,e)}}(r,t,(null==e?void 0:e.value)&&e.value[n]);return[n,o]}).reduce((n,[t,e])=>({...n,[t]:e}),{})}},73605:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(24662),t),(0,r.__exportStar)(e(93103),t)},15801:function(n,t,e){var r=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.randomInt=t.slug=void 0;var i=e(91249);Object.defineProperty(t,"slug",{enumerable:!0,get:function(){return r(i).default}}),t.randomInt=function(n=0,t=100){return Math.floor(Math.random()*(t-n+1)+n)}},91249:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,e(22970).__importDefault)(e(93953)),i=e(15801);t.default=function(n){return function t(){let e=function(n){let t=n[(0,i.randomInt)(0,n.length-1)];if(!t)throw Error("Error while generating a slug.");return t}(r.default);return n&&(n.exactly&&e.length!=n.exactly||n.min&&e.length<n.min||n.max&&e.length>n.max)?t():e}()}},44609:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GroupMock=t.randomGroupBlock=void 0;let r=e(33832),i=e(23535),u=e(62283),o=e(93103);function a(n,e){return n.map(([n,r])=>{var a;let c=null==e?void 0:e[n];if(r.type===i.GroupFieldType){if(c&&c.type!==i.GroupFieldType)throw new u.IncompatibleMockConfigError(c.type,r.type);return[n,t.GroupMock.generate(r,c)]}if(!c||c.type===r.type||"Repeatable"==c.type&&"Link"===r.type&&(null===(a=r.config)||void 0===a?void 0:a.repeat))return[n,o.NestableWidgetMock.generate(r,c)];throw new u.IncompatibleMockConfigError(c.type,r.type)})}t.randomGroupBlock=a,t.GroupMock={generate(n,t){let e=(null==t?void 0:t.value)||function(n,t=1,e={}){if(!n.config||!n.config.fields)return[];let r=Object.entries(n.config.fields);return Array(t).fill(null).map(()=>a(r,e))}(n,null==t?void 0:t.nbBlocks,null==t?void 0:t.fields);return{__TYPE__:r.GroupContentType,value:e.map(n=>({__TYPE__:r.GroupItemContentType,value:n}))}},patch(n,e,u){if(n.op===i.DiffOperation.Removed)return;let a=((null==e?void 0:e.value)||Array((null==u?void 0:u.nbBlocks)||1).fill({__TYPE__:r.GroupItemContentType,value:[]})).map(e=>{var a;let c=Object.fromEntries(e.value);return Object.entries(null!==(a=n.value.config.fields)&&void 0!==a?a:{}).forEach(([n,e])=>{var a;let f;let l=c[n],p=null===(a=null==u?void 0:u.fields)||void 0===a?void 0:a[n];(0,r.isGroupContent)(l)&&(!p||(null==p?void 0:p.type)===i.GroupFieldType)?f=t.GroupMock.patch(e,l,p):(0,r.isGroupContent)(l)||(null==p?void 0:p.type)===i.GroupFieldType||(f=o.NestableWidgetMock.patch(e,l,p)),f?c[n]=f:delete c[n]}),{__TYPE__:r.GroupItemContentType,value:Object.entries(c)}});return{__TYPE__:r.GroupContentType,value:a}}}},73042:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceMock=void 0;let r=e(74982),i=e(74982),u=e(23535),o=e(74702),a=e(93103);function c(n,t){return function(n,t){let e=(null==t?void 0:t.nbItemsBlocks)||1;return{__TYPE__:i.SharedSliceContentType,variation:n.id,primary:n.primary?(0,a.randomGroupBlock)(Object.entries(n.primary),null==t?void 0:t.primaryFields).reduce((n,[t,e])=>({...n,[t]:e}),{}):{},items:n.items?Array(e).fill(null).map(()=>{var e,r;return e=Object.entries(n.items||{}),r=null==t?void 0:t.itemFields,e.map(([n,t])=>{let e=r&&r[n];return[n,a.NestableWidgetMock.generate(t,e)]})}).map(n=>({__TYPE__:r.GroupItemContentType,value:n})):[]}}(n,t)}function f(n,t,e){let i=Object.entries(n).reduce((n,[i,c])=>{var f;let l;let p=null===(f=t.find(([n])=>n===i))||void 0===f?void 0:f[1],d=null==e?void 0:e[i];return(0,r.isGroupContent)(p)||(null==d?void 0:d.type)===u.GroupFieldType||c.op===o.DiffOperation.Removed||c.value.type===u.GroupFieldType?(!p||(0,r.isGroupContent)(p))&&(!d||d.type===u.GroupFieldType)&&(l=a.GroupMock.patch(c,p,d)):l=a.NestableWidgetMock.patch(c,p,d),{...n,...l?{[i]:l}:{}}},{});return{...t.reduce((t,[e,r])=>{let u=n[e]?i[e]:r;return u?{...t,[e]:u}:t},{}),...i}}t.SharedSliceMock={generate(n,t){var e;if(null==t?void 0:t.value)return{__TYPE__:i.SharedSliceContentType,...t.value};let r=null!==(e=n.variations.find(n=>n.id===(null==t?void 0:t.variation)))&&void 0!==e?e:n.variations[0];if(!r)throw Error(`Something happened during Shared slice generation. No variations were configured for slice ${n.id}.`);let u=(null==t?void 0:t.variations)&&t.variations[r.id];return c(r,u)},patch(n,t,e){var i,u;switch(n.op){case o.DiffOperation.Removed:if(!(null==e?void 0:e.variation)||e.variation===(null==t?void 0:t.variation))return{ok:!0,result:void 0};return{ok:!1,error:Error(`Content doesn't match the config for variation ${e.variation}`)};case o.DiffOperation.Added:if(t)return{ok:!1,error:Error(`Content already exists for slice ${n.value.id}.`)};if(!(null==e?void 0:e.variation)||n.value.variations.find(n=>n.id===e.variation))return{ok:!0,result:this.generate(n.value,e)};return{ok:!1,error:Error(`Configured variation ${e.variation} not found in slice ${n.value.id} definition.`)};case o.DiffOperation.Updated:{let a=null!=t&&t.variation?(null==e?void 0:e.variation)&&t.variation!==(null==e?void 0:e.variation)?{ok:!1,error:Error(`Variation ${t.variation} from the content doesn't match the config ${null==e?void 0:e.variation}.`)}:{ok:!0,result:t.variation}:(null==e?void 0:e.variation)?{ok:!0,result:e.variation}:{ok:!1,error:Error("No variation provided. You must either provide some content or a config.")};if(!a.ok)return a;let l=a.result,p=null===(i=n.value.variations)||void 0===i?void 0:i[l];if(!p)return{ok:!1,error:Error(`The model of the content with variation ${l} has not changed.`)};return function(n,t,e,i){switch(t.op){case o.DiffOperation.Removed:return{ok:!0,result:void 0};case o.DiffOperation.Added:if(!e)return{ok:!0,result:c(t.value,i)};return{ok:!1,error:Error(`Content already exists for variation ${e.variation}.`)};case o.DiffOperation.Updated:return{ok:!0,result:{__TYPE__:"SharedSliceContent",variation:n,primary:t.value.primary&&(null==e?void 0:e.primary)?f(t.value.primary,Object.entries(null==e?void 0:e.primary),null==i?void 0:i.primaryFields):(null==e?void 0:e.primary)||{},items:(()=>{if(!t.value.items||null==e||!e.items)return(null==e?void 0:e.items)||[];{let n=t.value.items;return e.items.map(t=>({__TYPE__:r.GroupItemContentType,value:Object.entries(f(n,t.value,null==i?void 0:i.itemFields))}))}})()}}}}(l,p,t,p.op!==o.DiffOperation.Removed?null===(u=null==e?void 0:e.variations)||void 0===u?void 0:u[l]:void 0)}}}}},32361:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceZoneMock=void 0;let r=e(74982),i=e(73207),u=e(93103),o=e(92947);t.SliceZoneMock={generate(n,t={},e){var a;if(!(null===(a=n.config)||void 0===a?void 0:a.choices))return{__TYPE__:r.SlicesContentType,value:[]};let c=Object.entries(n.config.choices).reduce((n,[r,a])=>{let c=(null==e?void 0:e.value)&&e.value[r],f=(()=>{switch(a.type){case"SharedSlice":{let n=t[r];if(!n){console.error(`You must provide the definition of the Shared Slice ${r} to get mocks.`);return}return u.SharedSliceMock.generate(n,c)}case"Slice":return;case"Group":return u.GroupMock.generate(a);default:return o.NestableWidgetMock.generate(a)}})();return f?n.concat({key:`${r}$${(0,i.v4)()}`,name:r,maybeLabel:void 0,widget:f}):n},[]);return{__TYPE__:r.SlicesContentType,value:c}}}},32033:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDMock=void 0;let r=e(74982),i=e(15801);t.UIDMock={generate(n,t){let e=(null==t?void 0:t.value)||(0,i.slug)({min:3,max:10});return{__TYPE__:r.UIDContentType,value:e}}}},93103:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(44609),t),(0,r.__exportStar)(e(92947),t),(0,r.__exportStar)(e(73042),t),(0,r.__exportStar)(e(32033),t)},42386:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanMock=void 0;let r=e(74982),i=e(74702);t.BooleanMock={generate(n,t){let e="boolean"==typeof(null==t?void 0:t.value)?t.value:.5>Math.random();return{__TYPE__:r.BooleanContentType,value:e}},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}},applyPatch(n){var t;return n.diff.op===i.DiffOperation.Removed?{result:void 0}:"Boolean"===n.diff.value.type?{result:this.patch(n.diff,n.content&&n.content.__TYPE__!==r.BooleanContentType?void 0:n.content,(null===(t=n.config)||void 0===t?void 0:t.type)==="Boolean"?n.config:void 0)}:void 0}}},98017:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorMock=void 0;let r=e(74982),i=e(74982),u=e(74702);t.ColorMock={generate(n,t){let e=(null==t?void 0:t.value)||function(){let n="#";for(let t=0;t<6;t++)n+="0123456789abcdef"[Math.floor(16*Math.random())];return n}();return{__TYPE__:i.FieldContentType,value:e,type:"Color"}},applyPatch(n){var t;return n.diff.op===u.DiffOperation.Removed?{result:void 0}:"Color"===n.diff.value.type?{result:this.patch(n.diff,(0,r.isColorContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Color"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(n.value,e)}}}},21276:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DateMock=void 0;let r=e(74982),i=e(74702);function u(n){let t=n.toISOString().split("T")[0];if(!t)throw Error("Something happened during Date generation.");return t}function o(n=new Date(2012,0,1),t=new Date){return u(new Date(n.getTime()+Math.random()*(t.getTime()-n.getTime())))}t.DateMock={generate(n,t){let e=(null==t?void 0:t.value)?u(t.value):(null==t?void 0:t.start)&&(null==t?void 0:t.end)?o(t.start,t.end):o(new Date(2012,0,1),new Date);return{__TYPE__:r.FieldContentType,type:"Date",value:e}},applyPatch(n){var t;return n.diff.op===i.DiffOperation.Removed?{result:void 0}:"Date"===n.diff.value.type?{result:this.patch(n.diff,(0,r.isDateContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Date"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}}}},60300:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedMock=void 0;let r=e(22970),i=e(74982),u=e(74702),o=(0,r.__importDefault)(e(19108));t.EmbedMock={generate:(n,t)=>(function(n){var t;let e=n||(null===(t=o.default[Math.floor(Math.random()*o.default.length)])||void 0===t?void 0:t.oembed);if(!e)throw Error("Something happened during Embed generation.");return{...e,all:e,__TYPE__:i.EmbedContentType}})(null==t?void 0:t.value),applyPatch(n){var t;return n.diff.op===u.DiffOperation.Removed?{result:void 0}:"Embed"===n.diff.value.type?{result:this.patch(n.diff,(0,i.isEmbedContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Embed"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(n.value,e)}}}},95441:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointMock=void 0;let r=e(22970),i=e(74982),u=e(74702),o=(0,r.__importDefault)(e(88416));t.GeoPointMock={generate(n,t){let e=(null==t?void 0:t.value)||function(){let n=o.default[Math.floor(Math.random()*o.default.length)];if(!n)throw Error("Something happened during GeoPoint generation.");return{latitude:n.points.latitude,longitude:n.points.longitude}}();return{__TYPE__:i.GeoPointContentType,position:{lat:e.latitude,lng:e.longitude}}},applyPatch(n){var t;return n.diff.op===u.DiffOperation.Removed?{result:void 0}:"GeoPoint"===n.diff.value.type?{result:this.patch(n.diff,(0,i.isGeoPointContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="GeoPoint"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(n.value,e)}}}},66947:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageMock=t.random=void 0;let r=e(22970),i=e(74982),u=e(74702),o=(0,r.__importDefault)(e(15542)),a=e(15801),c=o.default,f=(n,t)=>{let[e,r]=(()=>{let{width:e,height:r}=null!=t?t:{};return e&&r?[e,r]:e?[e,Math.round(n.height*(e/n.width))]:r?[Math.round(n.width*(r/n.height)),r]:[n.width,n.height]})(),i=Math.max(e/n.width,r/n.height),u=Math.round((n.width-e/i)/2),o=Math.round((n.height-r/i)/2);return{width:e,height:r,rect:{x:u,y:o,width:Math.round(e/i),height:Math.round(r/i)}}},l=(n,t,e)=>{let r=new URL(n),{x:i,y:u,width:o,height:a}=t;return r.searchParams.set("rect",[i,u,o,a].join(",")),r.searchParams.set("w",e.width.toString()),r.searchParams.set("h",e.height.toString()),r.toString()};function p(n){var t,e;let[r,i,u]=(()=>{let t=n.images[(0,a.randomInt)(0,n.images.length-1)],e=null==t?void 0:t.url.split("?")[0];if(!e)throw Error("Something happened during Image generation.");return[e,t.width,t.height]})(),{width:o,height:c,rect:p}=f({width:i,height:u},n.constraints),d=(null===(t=n.constraints)||void 0===t?void 0:t.width)||(null===(e=n.constraints)||void 0===e?void 0:e.height)?l(r,p,{width:o,height:c}):r;return{origin:{id:n.id,url:r,width:i,height:u},url:d,width:o,height:c,edit:{zoom:1,crop:{x:p.x,y:p.y},background:"transparent"},alt:(0,a.slug)()}}function d(n,t=c){var e,r,u;let o=p({id:"main",constraints:null===(e=n.config)||void 0===e?void 0:e.constraint,images:t}),a=null===(u=null===(r=n.config)||void 0===r?void 0:r.thumbnails)||void 0===u?void 0:u.map(n=>[n.name,p({id:n.name,constraints:{width:n.width,height:n.height},images:t})]),f=a?{thumbnails:a.reduce((n,[t,e])=>({...n,[t]:e}),{})}:{};return{__TYPE__:i.ImageContentType,...o,...f}}t.random=d,t.ImageMock={generate:(n,t)=>d(n,(null==t?void 0:t.value)&&[t.value]),applyPatch(n){return n.diff.op===u.DiffOperation.Removed?{result:void 0}:"Image"===n.diff.value.type?{result:this.patch(n.diff,(0,i.isImageContent)(n.content)?n.content:void 0)}:void 0},patch(n,t){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(n.value)}}}},54595:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldMock=void 0;let r=e(74982),i=e(74702);t.IntegrationFieldMock={generate(n,t){let e=(null==t?void 0:t.value)||"integration-field-product-id";return{__TYPE__:r.IntegrationFieldContentType,value:e}},applyPatch(n){var t;return n.diff.op===i.DiffOperation.Removed?{result:void 0}:"IntegrationFields"===n.diff.value.type?{result:this.patch(n.diff,(0,r.isIntegrationFieldContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="IntegrationFields"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}}}},50107:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentLinkMock=void 0;let r=e(74982),i=e(15801);t.DocumentLinkMock={generate(n,t){var e,u,o;let a;if(null==t?void 0:t.value)a=t.value;else{let t=(null===(e=n.config)||void 0===e?void 0:e.allowText)?(0,i.slug)():void 0,r=null===(o=null===(u=n.config)||void 0===u?void 0:u.variants)||void 0===o?void 0:o[Math.floor(Math.random()*n.config.variants.length)];a={__TYPE__:"DocumentLink",id:"mock_document_id",...t&&{text:t},...r&&{variant:r}}}return r.DocumentLinkContent.encode(a)}}},79241:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalLinkMock=void 0;let r=e(22970),i=e(74982),u=(0,r.__importDefault)(e(83777)),o=e(15801);t.ExternalLinkMock={generate(n,t){var e,r,a;let c;if(null==t?void 0:t.value)c=t.value;else{let t=function(){let n=u.default,t=Math.floor(Math.random()*n.length),e=n[t];if(!e)throw Error("Something happened during web link generation.");return e}(),i=(null===(e=n.config)||void 0===e?void 0:e.allowText)?(0,o.slug)():void 0,f=null===(a=null===(r=n.config)||void 0===r?void 0:r.variants)||void 0===a?void 0:a[Math.floor(Math.random()*n.config.variants.length)];c={__TYPE__:"ExternalLink",url:t,...i&&{text:i},...f&&{variant:f}}}return i.ExternalLinkContent.encode(c)}}},25891:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.MediaLinkMock=void 0;let r=e(74982),i=e(15801);t.MediaLinkMock={generate(n,t){var e,u,o,a;let c;if(null==t?void 0:t.value)c=t.value;else{let f=(null===(e=n.config)||void 0===e?void 0:e.allowText)?(0,i.slug)():void 0,l=null===(o=null===(u=n.config)||void 0===u?void 0:u.variants)||void 0===o?void 0:o[Math.floor(Math.random()*n.config.variants.length)];c=null!==(a=null==t?void 0:t.value)&&void 0!==a?a:{__TYPE__:r.FileLinkType,id:"mock_Media_link",kind:"file",name:"mock_name",url:"https://source.unsplash.com/daily",size:"0",...f&&{text:f},...l&&{variant:l}}}return r.FileLinkContent.encode(c)}}},33610:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkMock=void 0;let r=e(22970),i=e(74982),u=e(74702),o=e(73207),a=e(50107),c=e(79241),f=e(25891);t.LinkMock={generate(n,t){let e=(()=>{var e;switch(null===(e=n.config)||void 0===e?void 0:e.select){case"document":return a.DocumentLinkMock.generate(n);case"web":default:return c.ExternalLinkMock.generate(n,(null==t?void 0:t.value)&&t.value);case"media":return f.MediaLinkMock.generate(n,(null==t?void 0:t.value)&&t.value)}})();return{__TYPE__:i.LinkContentType,key:(0,o.v4)(),value:e}},applyPatch(n){var t,e;return n.diff.op===u.DiffOperation.Removed?{result:void 0}:"Link"!==n.diff.value.type||null!==(t=n.diff.value.config)&&void 0!==t&&t.repeat?void 0:{result:this.patch(n.diff,(0,i.isLinkContent)(n.content)?n.content:void 0,(null===(e=n.config)||void 0===e?void 0:e.type)==="Link"?n.config:void 0)}},patch(n,t,e){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Added:case u.DiffOperation.Updated:return this.generate(n.value,e)}}},(0,r.__exportStar)(e(50107),t),(0,r.__exportStar)(e(79241),t),(0,r.__exportStar)(e(25891),t)},628:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberMock=void 0;let r=e(74982),i=e(74702);t.NumberMock={generate(n,t){var e,i,u;let o=(null===(e=n.config)||void 0===e?void 0:e.min)?(null==t?void 0:t.min)&&t.min>n.config.min?t.min:n.config.min:0,a=(null===(i=n.config)||void 0===i?void 0:i.max)?(null==t?void 0:t.max)&&t.max<n.config.max?t.max:n.config.max:100,c=(null===(u=n.config)||void 0===u?void 0:u.step)?(null==t?void 0:t.step)&&t.step>n.config.step?t.step:n.config.step:1,f=((null==t?void 0:t.value)?t.value:function(n,t,e){let r=Math.floor(Math.random()*(t-n))+n;return r%e==0?r:Math.min(r+(e-r%e),t)}(o,a,c)).toString();return{__TYPE__:r.FieldContentType,value:f,type:"Number"}},applyPatch(n){var t;return n.diff.op===i.DiffOperation.Removed?{result:void 0}:"Number"===n.diff.value.type?{result:this.patch(n.diff,n.content&&n.content.__TYPE__!==r.FieldContentType?void 0:n.content,(null===(t=n.config)||void 0===t?void 0:t.type)==="Number"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}}}},38206:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeMock=void 0;let r=e(74982),i=e(74702);t.RangeMock={generate(n,t){var e,i,u;let o=(null===(e=n.config)||void 0===e?void 0:e.min)?(null==t?void 0:t.min)&&t.min>n.config.min?t.min:n.config.min:0,a=(null===(i=n.config)||void 0===i?void 0:i.max)?(null==t?void 0:t.max)&&t.max<n.config.max?t.max:n.config.max:100,c=(null===(u=n.config)||void 0===u?void 0:u.step)?(null==t?void 0:t.step)&&t.step>n.config.step?t.step:n.config.step:1,f=((null==t?void 0:t.value)?t.value:function(n,t,e){let r=Math.floor(Math.random()*(t-n))+n;return r%e==0?r:Math.min(r+(e-r%e),t)}(o,a,c)).toString();return{__TYPE__:r.FieldContentType,value:f,type:"Range"}},applyPatch(n){var t;return n.diff.op===i.DiffOperation.Removed?{result:void 0}:"Range"===n.diff.value.type?{result:this.patch(n.diff,(0,r.isRangeContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Range"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}}}},28158:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatableMock=void 0;let r=e(74982),i=e(74702),u=e(33610);t.RepeatableMock={generate(n,t){var e,r;return{__TYPE__:"RepeatableContent",type:n.type,value:null!==(e=null==t?void 0:t.value)&&void 0!==e?e:Array(null!==(r=null==t?void 0:t.nbItems)&&void 0!==r?r:1).fill(null).map(()=>u.LinkMock.generate(n))}},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}},applyPatch(n){var t,e;return n.diff.op===i.DiffOperation.Removed?{result:void 0}:"Link"===n.diff.value.type&&(null===(t=n.diff.value.config)||void 0===t?void 0:t.repeat)?{result:this.patch(n.diff,(0,r.isRepeatableContent)(n.content)?n.content:void 0,(null===(e=n.config)||void 0===e?void 0:e.type)==="Repeatable"?n.config:void 0)}:void 0}}},13319:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextMockConfig=t.Patterns=void 0;let r=e(23535),i=e(72788),u=e(15801),o={sentencesPerParagraph:{min:1,max:3},wordsPerSentence:{min:4,max:16}};t.Patterns={PARAGRAPH:{title:"Simple Paragraph",test:n=>n.some(n=>n===r.RichTextNodeType.paragraph),value:()=>[r.RichTextNodeType.paragraph],description:"A single paragraph with a variant number of words.",loremConfig:o},HEADING:{title:"Section Title",test:n=>n.some(t.RichTextMockConfig.isHeading),value:n=>[n.find(t.RichTextMockConfig.isHeading)||r.RichTextNodeType.heading1],description:"A single heading (h1 to h6) with a variant number of words.",loremConfig:o},STORY:{title:"Story",test:n=>n.some(t.RichTextMockConfig.isHeading)&&n.some(n=>n===r.RichTextNodeType.paragraph),value:n=>[n.find(t.RichTextMockConfig.isHeading)||r.RichTextNodeType.heading1,...t.RichTextMockConfig.optionalType(n,r.RichTextNodeType.image),r.RichTextNodeType.paragraph],description:"Content with headings, texts and optional images",loremConfig:o},TABLE_HEADER:{title:"Table header",test:n=>n.some(n=>n===r.RichTextNodeType.paragraph),value:()=>[r.RichTextNodeType.paragraph],description:"A very short paragraph that can be used as a table header.",loremConfig:{sentencesPerParagraph:{min:1,max:1},wordsPerSentence:{min:1,max:2}}},TABLE_CELL:{title:"Table cell",test:n=>n.some(n=>n===r.RichTextNodeType.paragraph),value:()=>[r.RichTextNodeType.paragraph],description:"A single sentence paragraph that can be used as a table cell.",loremConfig:{sentencesPerParagraph:{min:1,max:1},wordsPerSentence:{min:4,max:8}}}},t.RichTextMockConfig={INITIAL_CONFIG:{pattern:t.Patterns.PARAGRAPH,blocks:1},isHeading:n=>0===n.indexOf("heading"),isText:n=>n===r.RichTextNodeType.paragraph||t.RichTextMockConfig.isHeading(n),isImage:n=>n===r.RichTextNodeType.image,optionalType:(n,t)=>n.find(n=>n===t)&&Math.random()>.5?[t]:[],findMatchingPattern:n=>{let e=Object.entries(t.Patterns).find(([,t])=>t.test(n));return e&&e.length?e[1]:t.RichTextMockConfig.INITIAL_CONFIG.pattern},generateText:(n,e)=>{if(t.RichTextMockConfig.isHeading(n)){let n=(0,u.slug)({min:5,max:10});return[n[0]&&n[0].toUpperCase(),...n.slice(1)].join("")}return new i.LoremIpsum(e).generateParagraphs(1)}}},35650:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextMock=void 0;let r=e(22970),i=e(74982),u=e(23535),o=e(74702),a=e(66947),c=e(13319);t.RichTextMock={generate(n,t){let e=(null==t?void 0:t.value)||function(n,t){var e,r;let i=((null===(e=null==n?void 0:n.config)||void 0===e?void 0:e.multi)||(null===(r=null==n?void 0:n.config)||void 0===r?void 0:r.single)||`${u.RichTextNodeType.paragraph}`).split(",").map(n=>n),o=(null==t?void 0:t.pattern)&&c.Patterns[t.pattern]||c.RichTextMockConfig.findMatchingPattern(i),f=o.value(i);return Array((null==t?void 0:t.nbBlocks)||c.RichTextMockConfig.INITIAL_CONFIG.blocks).fill(null).map(()=>f.map(n=>{if(c.RichTextMockConfig.isText(n))return{type:n,content:{text:c.RichTextMockConfig.generateText(n,o.loremConfig)}};let t=(0,a.random)({type:"Image"});return{type:u.RichTextNodeType.image,data:t}})).flat()}(n,t);return{__TYPE__:i.RichTextContentType,value:e}},applyPatch(n){var t;return n.diff.op===o.DiffOperation.Removed?{result:void 0}:"StructuredText"===n.diff.value.type?{result:this.patch(n.diff,(0,i.isRichTextContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="StructuredText"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(n.value,e)}}},(0,r.__exportStar)(e(13319),t)},20999:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectMock=void 0;let r=e(74982),i=e(74702),u="mock_option";t.SelectMock={generate(n,t){let e=(null==t?void 0:t.value)||function(n){if(!n.config)return u;if(n.config.default_value&&.5>Math.random())return n.config.default_value;if(!n.config.options)return u;let t=Math.floor(Math.random()*n.config.options.length);return n.config.options[t]||u}(n);return{__TYPE__:r.FieldContentType,value:e,type:"Select"}},applyPatch(n){var t;return n.diff.op===i.DiffOperation.Removed?{result:void 0}:"Select"===n.diff.value.type?{result:this.patch(n.diff,(0,r.isSelectContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Select"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}}}},14259:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorMock=void 0;let r=e(74982),i=e(74702);t.SeparatorMock={generate:()=>({__TYPE__:r.SeparatorContentType}),applyPatch(n){return n.diff.op===i.DiffOperation.Removed?{result:void 0}:"Separator"===n.diff.value.type?{result:this.patch(n.diff,(0,r.isSeparatorContent)(n.content)?n.content:void 0)}:void 0},patch(n,t){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value)}}}},91678:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TableMock=void 0;let r=e(74982),i=e(23535),u=e(74702),o=e(73207),a=e(35650);t.TableMock={generate(n,t){var e;return{__TYPE__:"TableContent",content:null!==(e=null==t?void 0:t.value)&&void 0!==e?e:[{key:(0,o.v4)(),type:"tableRow",content:f({length:2,type:"tableHeader"})},{key:(0,o.v4)(),type:"tableRow",content:f({length:2,type:"tableCell"})}]}},applyPatch(n){var t;return n.diff.op===u.DiffOperation.Removed?{result:void 0}:"Table"===n.diff.value.type?{result:this.patch(n.diff,(0,r.isTableContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Table"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(n.value,e)}}};let c={tableHeader:"TABLE_HEADER",tableCell:"TABLE_CELL"},f=({length:n,type:t})=>Array.from({length:n},()=>({key:(0,o.v4)(),type:t,content:a.RichTextMock.generate(i.TableCell,{type:"StructuredText",pattern:c[t]})}))},44395:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TextMock=void 0;let r=e(74982),i=e(74702),u=e(15801);t.TextMock={generate(n,t){var e,i;let o=(null==t?void 0:t.value)||(e=null==t?void 0:t.minChar,i=null==t?void 0:t.maxChar,(0,u.slug)({...e?{min:e}:{},...i?{max:i}:{}}));return{__TYPE__:r.FieldContentType,value:o,type:"Text"}},applyPatch(n){var t;return n.diff.op===i.DiffOperation.Removed?{result:void 0}:"Text"===n.diff.value.type?{result:this.patch(n.diff,(0,r.isTextContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Text"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}}}},4424:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampMock=void 0;let r=e(74982),i=e(74702);function u(n){return n.toISOString().slice(0,19)+"Z"}function o(n=new Date(2012,0,1),t=new Date){return u(new Date(n.getTime()+Math.random()*(t.getTime()-n.getTime())))}t.TimestampMock={generate(n,t){let e=(null==t?void 0:t.value)?u(t.value):(null==t?void 0:t.start)&&(null==t?void 0:t.end)?o(t.start,t.end):o(new Date(2012,0,1),new Date);return{__TYPE__:r.FieldContentType,type:"Timestamp",value:e}},applyPatch(n){var t;return n.diff.op===i.DiffOperation.Removed?{result:void 0}:"Timestamp"===n.diff.value.type?{result:this.patch(n.diff,(0,r.isTimestampContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Timestamp"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}}}},92947:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidgetMock=void 0;let r=e(22970),i=e(74702),u=e(42386),o=e(98017),a=e(21276),c=e(60300),f=e(95441),l=e(66947),p=e(54595),d=e(33610),s=e(628),h=e(38206),m=e(28158),v=e(35650),g=e(20999),y=e(14259),b=e(91678),_=e(44395),I=e(4424);(0,r.__exportStar)(e(42386),t),(0,r.__exportStar)(e(98017),t),(0,r.__exportStar)(e(21276),t),(0,r.__exportStar)(e(60300),t),(0,r.__exportStar)(e(95441),t),(0,r.__exportStar)(e(66947),t),(0,r.__exportStar)(e(54595),t),(0,r.__exportStar)(e(33610),t),(0,r.__exportStar)(e(628),t),(0,r.__exportStar)(e(38206),t),(0,r.__exportStar)(e(28158),t),(0,r.__exportStar)(e(35650),t),(0,r.__exportStar)(e(20999),t),(0,r.__exportStar)(e(14259),t),(0,r.__exportStar)(e(44395),t),(0,r.__exportStar)(e(4424),t),t.NestableWidgetMock={generate(n,t){var e;switch(n.type){case"Boolean":return u.BooleanMock.generate(n,(null==t?void 0:t.type)==="Boolean"?t:void 0);case"Color":return o.ColorMock.generate(n,(null==t?void 0:t.type)==="Color"?t:void 0);case"Link":if(null===(e=n.config)||void 0===e?void 0:e.repeat)return m.RepeatableMock.generate(n,(null==t?void 0:t.type)==="Repeatable"?t:void 0);return d.LinkMock.generate(n,(null==t?void 0:t.type)==="Link"?t:void 0);case"Date":return a.DateMock.generate(n,(null==t?void 0:t.type)==="Date"?t:void 0);case"Embed":return c.EmbedMock.generate(n,(null==t?void 0:t.type)==="Embed"?t:void 0);case"GeoPoint":return f.GeoPointMock.generate(n,(null==t?void 0:t.type)==="GeoPoint"?t:void 0);case"Image":return l.ImageMock.generate(n);case"IntegrationFields":return p.IntegrationFieldMock.generate(n,(null==t?void 0:t.type)==="IntegrationFields"?t:void 0);case"Number":return s.NumberMock.generate(n,(null==t?void 0:t.type)==="Number"?t:void 0);case"Range":return h.RangeMock.generate(n,(null==t?void 0:t.type)==="Range"?t:void 0);case"StructuredText":return v.RichTextMock.generate(n,(null==t?void 0:t.type)==="StructuredText"?t:void 0);case"Select":return g.SelectMock.generate(n,(null==t?void 0:t.type)==="Select"?t:void 0);case"Table":return b.TableMock.generate(n,(null==t?void 0:t.type)==="Table"?t:void 0);case"Text":return _.TextMock.generate(n,(null==t?void 0:t.type)==="Text"?t:void 0);case"Timestamp":return I.TimestampMock.generate(n,(null==t?void 0:t.type)==="Timestamp"?t:void 0);case"Separator":return y.SeparatorMock.generate(n)}},patch(n,t,e){if(n.op===i.DiffOperation.Removed)return;let r={diff:n,content:t,config:e},R=o.ColorMock.applyPatch(r)||a.DateMock.applyPatch(r)||I.TimestampMock.applyPatch(r)||g.SelectMock.applyPatch(r)||h.RangeMock.applyPatch(r)||_.TextMock.applyPatch(r)||s.NumberMock.applyPatch(r)||u.BooleanMock.applyPatch(r)||v.RichTextMock.applyPatch(r)||d.LinkMock.applyPatch(r)||c.EmbedMock.applyPatch(r)||f.GeoPointMock.applyPatch(r)||l.ImageMock.applyPatch(r)||p.IntegrationFieldMock.applyPatch(r)||y.SeparatorMock.applyPatch(r)||b.TableMock.applyPatch(r)||m.RepeatableMock.applyPatch(r);return null==R?void 0:R.result}}},25242:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.generateSliceMock=t.generateDocumentMock=void 0;let r=e(22970),i=e(73605);t.generateDocumentMock=function(n,t,e){let r=i.DocumentMock.generate(n,t,e);return e=>e?e(n,t,r):r},t.generateSliceMock=function(n,t){let e=i.SharedSliceMock.generate(n,t);return t=>t?t(n,e):e},(0,r.__exportStar)(e(62283),t),(0,r.__exportStar)(e(73605),t),(0,r.__exportStar)(e(86449),t)},54775:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});let e={urlRewriter:{optimizeImageUrl:n=>n,rewriteImageUrl:n=>n.url||"/mockURL",rewriteFileUrl:n=>n,rewriteS3Bucket:n=>n,enforceCDN:n=>n},emptyStringInsteadOfNull:!1,Extension:{DocEncoder:{encodeDocId:(n,t,e)=>`${n}${(null==e?void 0:e.length)?"%%"+e.join("%%"):""}`},encoders:{documentLinks:r("=&="),documentUrls:r(">&<"),integrationFields:r("%!%")}},LinkResolver:{buildUrl:n=>"/"}};function r(n){return{encode:t=>`${n}#${t}`}}t.default=e},86449:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.renderSliceMock=t.renderDocumentMock=void 0;let r=e(22970),i=e(88985),u=e(23535),o=e(73207),a=(0,r.__importDefault)(e(54775));t.renderDocumentMock=function(n,t,e){let r=Object.entries(t).filter(n=>!!n[1]),o=Object.entries(e).filter(n=>!!n[1]),c=(0,u.toStatic)(n,new Map(r)),f={customTypeId:n.id,fields:Object.fromEntries((0,u.flattenSections)(c))};return(0,i.DocumentRenderer)(a.default).renderMocks(f,o)},t.renderSliceMock=function(n,t){return{...(0,i.SharedSliceRenderer)(a.default).renderMocks(n,t),id:`${n.id}$${(0,o.v4)()}`,slice_type:n.id}}},73207:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return c.default}});var r=d(e(99324)),i=d(e(37776)),u=d(e(60588)),o=d(e(88434)),a=d(e(20669)),c=d(e(36058)),f=d(e(41252)),l=d(e(71400)),p=d(e(80169));function d(n){return n&&n.__esModule?n:{default:n}}},96902:function(n,t){function e(n){return(n+64>>>9<<4)+14+1}function r(n,t){let e=(65535&n)+(65535&t);return(n>>16)+(t>>16)+(e>>16)<<16|65535&e}function i(n,t,e,i,u,o){var a;return r((a=r(r(t,n),r(i,o)))<<u|a>>>32-u,e)}function u(n,t,e,r,u,o,a){return i(t&e|~t&r,n,t,u,o,a)}function o(n,t,e,r,u,o,a){return i(t&r|e&~r,n,t,u,o,a)}function a(n,t,e,r,u,o,a){return i(t^e^r,n,t,u,o,a)}function c(n,t,e,r,u,o,a){return i(e^(t|~r),n,t,u,o,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(n){if("string"==typeof n){let t=unescape(encodeURIComponent(n));n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e)}return function(n){let t=[],e=32*n.length,r="0123456789abcdef";for(let i=0;i<e;i+=8){let e=n[i>>5]>>>i%32&255,u=parseInt(r.charAt(e>>>4&15)+r.charAt(15&e),16);t.push(u)}return t}(function(n,t){n[t>>5]|=128<<t%32,n[e(t)-1]=t;let i=1732584193,f=-271733879,l=-1732584194,p=271733878;for(let t=0;t<n.length;t+=16){let e=i,d=f,s=l,h=p;i=u(i,f,l,p,n[t],7,-680876936),p=u(p,i,f,l,n[t+1],12,-389564586),l=u(l,p,i,f,n[t+2],17,606105819),f=u(f,l,p,i,n[t+3],22,-1044525330),i=u(i,f,l,p,n[t+4],7,-176418897),p=u(p,i,f,l,n[t+5],12,1200080426),l=u(l,p,i,f,n[t+6],17,-1473231341),f=u(f,l,p,i,n[t+7],22,-45705983),i=u(i,f,l,p,n[t+8],7,1770035416),p=u(p,i,f,l,n[t+9],12,-1958414417),l=u(l,p,i,f,n[t+10],17,-42063),f=u(f,l,p,i,n[t+11],22,-1990404162),i=u(i,f,l,p,n[t+12],7,1804603682),p=u(p,i,f,l,n[t+13],12,-40341101),l=u(l,p,i,f,n[t+14],17,-1502002290),f=u(f,l,p,i,n[t+15],22,1236535329),i=o(i,f,l,p,n[t+1],5,-165796510),p=o(p,i,f,l,n[t+6],9,-1069501632),l=o(l,p,i,f,n[t+11],14,643717713),f=o(f,l,p,i,n[t],20,-373897302),i=o(i,f,l,p,n[t+5],5,-701558691),p=o(p,i,f,l,n[t+10],9,38016083),l=o(l,p,i,f,n[t+15],14,-660478335),f=o(f,l,p,i,n[t+4],20,-405537848),i=o(i,f,l,p,n[t+9],5,568446438),p=o(p,i,f,l,n[t+14],9,-1019803690),l=o(l,p,i,f,n[t+3],14,-187363961),f=o(f,l,p,i,n[t+8],20,1163531501),i=o(i,f,l,p,n[t+13],5,-1444681467),p=o(p,i,f,l,n[t+2],9,-51403784),l=o(l,p,i,f,n[t+7],14,1735328473),f=o(f,l,p,i,n[t+12],20,-1926607734),i=a(i,f,l,p,n[t+5],4,-378558),p=a(p,i,f,l,n[t+8],11,-2022574463),l=a(l,p,i,f,n[t+11],16,1839030562),f=a(f,l,p,i,n[t+14],23,-35309556),i=a(i,f,l,p,n[t+1],4,-1530992060),p=a(p,i,f,l,n[t+4],11,1272893353),l=a(l,p,i,f,n[t+7],16,-155497632),f=a(f,l,p,i,n[t+10],23,-1094730640),i=a(i,f,l,p,n[t+13],4,681279174),p=a(p,i,f,l,n[t],11,-358537222),l=a(l,p,i,f,n[t+3],16,-722521979),f=a(f,l,p,i,n[t+6],23,76029189),i=a(i,f,l,p,n[t+9],4,-640364487),p=a(p,i,f,l,n[t+12],11,-421815835),l=a(l,p,i,f,n[t+15],16,530742520),f=a(f,l,p,i,n[t+2],23,-995338651),i=c(i,f,l,p,n[t],6,-198630844),p=c(p,i,f,l,n[t+7],10,1126891415),l=c(l,p,i,f,n[t+14],15,-1416354905),f=c(f,l,p,i,n[t+5],21,-57434055),i=c(i,f,l,p,n[t+12],6,1700485571),p=c(p,i,f,l,n[t+3],10,-1894986606),l=c(l,p,i,f,n[t+10],15,-1051523),f=c(f,l,p,i,n[t+1],21,-2054922799),i=c(i,f,l,p,n[t+8],6,1873313359),p=c(p,i,f,l,n[t+15],10,-30611744),l=c(l,p,i,f,n[t+6],15,-1560198380),f=c(f,l,p,i,n[t+13],21,1309151649),i=c(i,f,l,p,n[t+4],6,-145523070),p=c(p,i,f,l,n[t+11],10,-1120210379),l=c(l,p,i,f,n[t+2],15,718787259),f=c(f,l,p,i,n[t+9],21,-343485551),i=r(i,e),f=r(f,d),l=r(l,s),p=r(p,h)}return[i,f,l,p]}(function(n){if(0===n.length)return[];let t=8*n.length,r=new Uint32Array(e(t));for(let e=0;e<t;e+=8)r[e>>5]|=(255&n[e/8])<<e%32;return r}(n),8*n.length))}},45691:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let e="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:e}},20669:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},80169:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=e(41252))&&r.__esModule?r:{default:r};t.default=function(n){let t;if(!(0,i.default)(n))throw TypeError("Invalid UUID");let e=new Uint8Array(16);return e[0]=(t=parseInt(n.slice(0,8),16))>>>24,e[1]=t>>>16&255,e[2]=t>>>8&255,e[3]=255&t,e[4]=(t=parseInt(n.slice(9,13),16))>>>8,e[5]=255&t,e[6]=(t=parseInt(n.slice(14,18),16))>>>8,e[7]=255&t,e[8]=(t=parseInt(n.slice(19,23),16))>>>8,e[9]=255&t,e[10]=(t=parseInt(n.slice(24,36),16))/1099511627776&255,e[11]=t/4294967296&255,e[12]=t>>>24&255,e[13]=t>>>16&255,e[14]=t>>>8&255,e[15]=255&t,e}},42143:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},90371:function(n,t){let e;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(r)};let r=new Uint8Array(16)},63639:function(n,t){function e(n,t){return n<<t|n>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(n){let t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof n){let t=unescape(encodeURIComponent(n));n=[];for(let e=0;e<t.length;++e)n.push(t.charCodeAt(e))}else Array.isArray(n)||(n=Array.prototype.slice.call(n));n.push(128);let i=Math.ceil((n.length/4+2)/16),u=Array(i);for(let t=0;t<i;++t){let e=new Uint32Array(16);for(let r=0;r<16;++r)e[r]=n[64*t+4*r]<<24|n[64*t+4*r+1]<<16|n[64*t+4*r+2]<<8|n[64*t+4*r+3];u[t]=e}u[i-1][14]=(n.length-1)*8/4294967296,u[i-1][14]=Math.floor(u[i-1][14]),u[i-1][15]=(n.length-1)*8&4294967295;for(let n=0;n<i;++n){let i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=u[n][t];for(let n=16;n<80;++n)i[n]=e(i[n-3]^i[n-8]^i[n-14]^i[n-16],1);let o=r[0],a=r[1],c=r[2],f=r[3],l=r[4];for(let n=0;n<80;++n){let r=Math.floor(n/20),u=e(o,5)+function(n,t,e,r){switch(n){case 0:return t&e^~t&r;case 1:case 3:return t^e^r;case 2:return t&e^t&r^e&r}}(r,a,c,f)+l+t[r]+i[n]>>>0;l=f,f=c,c=e(a,30)>>>0,a=o,o=u}r[0]=r[0]+o>>>0,r[1]=r[1]+a>>>0,r[2]=r[2]+c>>>0,r[3]=r[3]+f>>>0,r[4]=r[4]+l>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},71400:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=o;var r,i=(r=e(41252))&&r.__esModule?r:{default:r};let u=[];for(let n=0;n<256;++n)u.push((n+256).toString(16).slice(1));function o(n,t=0){return u[n[t+0]]+u[n[t+1]]+u[n[t+2]]+u[n[t+3]]+"-"+u[n[t+4]]+u[n[t+5]]+"-"+u[n[t+6]]+u[n[t+7]]+"-"+u[n[t+8]]+u[n[t+9]]+"-"+u[n[t+10]]+u[n[t+11]]+u[n[t+12]]+u[n[t+13]]+u[n[t+14]]+u[n[t+15]]}t.default=function(n,t=0){let e=o(n,t);if(!(0,i.default)(e))throw TypeError("Stringified UUID is invalid");return e}},99324:function(n,t,e){let r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u,o=(u=e(90371))&&u.__esModule?u:{default:u},a=e(71400);let c=0,f=0;t.default=function(n,t,e){let u=t&&e||0,l=t||Array(16),p=(n=n||{}).node||r,d=void 0!==n.clockseq?n.clockseq:i;if(null==p||null==d){let t=n.random||(n.rng||o.default)();null==p&&(p=r=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==d&&(d=i=(t[6]<<8|t[7])&16383)}let s=void 0!==n.msecs?n.msecs:Date.now(),h=void 0!==n.nsecs?n.nsecs:f+1,m=s-c+(h-f)/1e4;if(m<0&&void 0===n.clockseq&&(d=d+1&16383),(m<0||s>c)&&void 0===n.nsecs&&(h=0),h>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");c=s,f=h,i=d;let v=((268435455&(s+=122192928e5))*1e4+h)%4294967296;l[u++]=v>>>24&255,l[u++]=v>>>16&255,l[u++]=v>>>8&255,l[u++]=255&v;let g=s/4294967296*1e4&268435455;l[u++]=g>>>8&255,l[u++]=255&g,l[u++]=g>>>24&15|16,l[u++]=g>>>16&255,l[u++]=d>>>8|128,l[u++]=255&d;for(let n=0;n<6;++n)l[u+n]=p[n];return t||(0,a.unsafeStringify)(l)}},37776:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(e(90619)),i=u(e(96902));function u(n){return n&&n.__esModule?n:{default:n}}let o=(0,r.default)("v3",48,i.default);t.default=o},90619:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(n,t,e){function r(n,r,o,a){var c;if("string"==typeof n&&(n=function(n){n=unescape(encodeURIComponent(n));let t=[];for(let e=0;e<n.length;++e)t.push(n.charCodeAt(e));return t}(n)),"string"==typeof r&&(r=(0,u.default)(r)),(null===(c=r)||void 0===c?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let f=new Uint8Array(16+n.length);if(f.set(r),f.set(n,r.length),(f=e(f))[6]=15&f[6]|t,f[8]=63&f[8]|128,o){a=a||0;for(let n=0;n<16;++n)o[a+n]=f[n];return o}return(0,i.unsafeStringify)(f)}try{r.name=n}catch(n){}return r.DNS=o,r.URL=a,r};var r,i=e(71400),u=(r=e(80169))&&r.__esModule?r:{default:r};let o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=o;let a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a},60588:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(e(45691)),i=o(e(90371)),u=e(71400);function o(n){return n&&n.__esModule?n:{default:n}}t.default=function(n,t,e){if(r.default.randomUUID&&!t&&!n)return r.default.randomUUID();let o=(n=n||{}).random||(n.rng||i.default)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){e=e||0;for(let n=0;n<16;++n)t[e+n]=o[n];return t}return(0,u.unsafeStringify)(o)}},88434:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(e(90619)),i=u(e(63639));function u(n){return n&&n.__esModule?n:{default:n}}let o=(0,r.default)("v5",80,i.default);t.default=o},41252:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=e(42143))&&r.__esModule?r:{default:r};t.default=function(n){return"string"==typeof n&&i.default.test(n)}},36058:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=e(41252))&&r.__esModule?r:{default:r};t.default=function(n){if(!(0,i.default)(n))throw TypeError("Invalid UUID");return parseInt(n.slice(14,15),16)}},32387:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ContentPath=void 0,t.ContentPath={serialize:n=>n.map(n=>n.key).join("::"),current:n=>n[n.length-1],append:(n,t)=>n+"::"+t,make:n=>n.reduce((n,{key:t,type:e})=>t?n.concat({key:t,type:e}):n,[])}},9085:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getAssetOrThrow=void 0,t.getAssetOrThrow=n=>t=>{let e=n[t];if(!e)throw Error(`Missing asset with id '${t}'!`);return e}},97381:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getEmbedOrThrow=void 0,t.getEmbedOrThrow=n=>t=>{let e=n[t];if(!e)throw Error(`Missing embed with url '${t}'`);return e}},55962:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.HexaColor=void 0;let e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;t.HexaColor={is:n=>e.test(n)}},70402:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetKey=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(35002),u=RegExp("^[^<>]+$");t.WidgetKey=(0,i.refineType)(r.string,"WidgetKey",n=>0===n.length||u.test(n))},31289:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(9085),t),(0,r.__exportStar)(e(97381),t),(0,r.__exportStar)(e(70402),t)},20168:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateDocument=t.collectWidgets=t.traverseDocument=t.fillDocumentWithDefaultValues=t.DocumentLegacy=t.Document=void 0;let r=e(22970),i=e(9554),u=e(87412),o=e(14632),a=(0,r.__importStar)(e(87830)),c=e(32387),f=e(31289),l=e(23535),p=e(33832),d=e(3845);t.Document=a.record(f.WidgetKey,p.WidgetContent);let s=a.record(f.WidgetKey,a.unknown),h=n=>new a.Type("Document",n=>!!n&&"object"==typeof n,t=>(0,o.pipe)(s.decode(t),i.either.map(t=>Object.entries(t).reduce((t,[e,r])=>{let i=(0,d.defaultCtx)(e,n),o=(0,p.WidgetLegacy)(i).decode(r);return!o||(0,u.isLeft)(o)?t:{...t,[e]:o.right}},{}))),t=>Object.entries(t).reduce((t,[e,r])=>{let i=(0,d.defaultCtx)(e,n),u=(0,p.WidgetLegacy)(i).encode(r);return u?{content:{...t.content,[e]:u.content},types:{...t.types,...u.types}}:t},{content:{},types:{}}));function m(n){let{types:t,widgets:e}=Object.entries(n).reduce((n,[t,e])=>{if(t.endsWith("_TYPE")){let r=d.FieldOrSliceType.decode(e);if((0,u.isRight)(r))return{...n,types:n.types.set(t.substring(0,t.length-5),r.right)}}return t.endsWith("_POSITION")||t.endsWith("_TYPE")?n:{...n,widgets:{...n.widgets,[t]:e}}},{types:new Map,widgets:{}}),r=n.slugs_INTERNAL||[];return{widgets:e,types:t,uid:n.uid,slugs:r}}function v(n){return{customTypeId:null==n?void 0:n.id,fields:Object.fromEntries((0,l.flattenSections)(n))}}function g({document:n,customType:t}){let e=t&&l.StaticCustomType.is(t)?v(t):t;return({transformWidget:t=({content:n})=>n,transformSlice:r=({content:n})=>n})=>{let i=e&&Object.entries(e.fields).reduce((n,[t,e])=>({...n,[t]:e}),{});return Object.entries(n).reduce((n,[u,o])=>{let a=i&&i[u],f=c.ContentPath.make([{key:null==e?void 0:e.customTypeId,type:"CustomType"},{key:u,type:"Widget"}]),l=(()=>{switch(o.__TYPE__){case"SliceContentType":return(0,p.traverseSlices)({path:f,key:u,model:(null==a?void 0:a.type)==="Slices"||(null==a?void 0:a.type)==="Choice"?a:void 0,content:o})({transformWidget:t,transformSlice:r});case"GroupContentType":return(0,p.traverseGroupContent)({path:f,key:u,apiId:u,model:(null==a?void 0:a.type)==="Group"?a:void 0,content:o})(t);case"RepeatableContent":return(0,p.traverseRepeatableContent)({path:f,key:u,apiId:u,model:(null==a?void 0:a.type)==="Link"?a:void 0,content:o})(t);case"TableContent":return(0,p.traverseTableContent)({path:f,key:u,apiId:u,model:(null==a?void 0:a.type)==="Table"?a:void 0,content:o})(t);default:return t({path:f,key:u,apiId:u,model:(null==a?void 0:a.type)!=="Group"&&(null==a?void 0:a.type)!=="Slices"&&(null==a?void 0:a.type)!=="Choice"?a:void 0,content:o})}})();return{...n,...l?{[u]:l}:{}}},{})}}function y(n,t){let e=l.StaticCustomType.is(t)?v(t):t;return Object.values((0,l.collectSharedSlices)(e)).some(n=>!!n.legacyPaths)?g({document:n,customType:t})({transformSlice:p.migrateSliceItem}):n}t.DocumentLegacy={_codec:h,extractMetadata:m,parse:function(n,t){let e=(0,o.pipe)(a.record(f.WidgetKey,a.unknown).decode(n),i.either.chain(n=>{let{types:t,widgets:e}=m(n);return h(t).decode(e)}));return(0,u.isLeft)(e)?void 0:y(e.right,t)},encode:function(n){let t=h().encode(n);return{...t.content,...t.types}}},t.fillDocumentWithDefaultValues=function(n,t){let{fields:e}=n&&l.StaticCustomType.is(n)?v(n):n;return Object.entries(e).reduce((n,[e,r])=>{let i=t[e],u=(()=>{switch(r.type){case"Group":return(0,p.isGroupContent)(i)?(0,p.groupContentWithDefaultValues)(r,i):i;case"Choice":case"Slices":return(0,p.isSlicesContent)(i)?(0,p.slicesContentWithDefaultValues)(r,i):i;default:return void 0===i&&l.NestableWidget.is(r)?(0,p.NestableContentDefaultValue)(r):i}})();return u?{...n,[e]:u}:n},t)},t.traverseDocument=g,t.collectWidgets=function(n,t){let e={};return g({document:n})({transformWidget:({content:n,path:r})=>{let i=c.ContentPath.serialize(r);return t(n,r)&&(e[i]=n),n}}),e},t.migrateDocument=y},3845:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCtx=t.getFieldCtx=t.LegacyContentCtx=t.FieldOrSliceType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(99814);t.FieldOrSliceType=r.union([r.union([i.FieldType,i.SlicesTypes]),r.literal("Repeatable.Link")]);class u{constructor(n,t,e){Object.defineProperty(this,"fieldKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"prefixedKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"keyOfType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"allTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.fieldKey=n,this.fieldPath=t||[],this.allTypes=e||new Map;let r=Array.of(this.fieldPath,[this.fieldKey]).flat().join(".");this.prefixedKey=r,this.keyOfType=`${r}_TYPE`,this.fieldType=this.allTypes.get(this.prefixedKey)}}t.LegacyContentCtx=u,t.getFieldCtx=function(n,t,e){return new u(n,[...t.fieldPath,t.fieldKey,...e||[]],t.allTypes)},t.defaultCtx=function(n,t=new Map){return new u(n,[],t)}},82646:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyContent=t.EmptyLegacy=t.isEmptyContent=t.EmptyContentType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(58237);t.EmptyContentType="EmptyContent",t.isEmptyContent=n=>(0,a.hasContentType)(n)&&n.__TYPE__===t.EmptyContentType;let c=o.union([o.null,o.type({value:o.null})]);t.EmptyLegacy=n=>new o.Type("EmptyLegacy",t.isEmptyContent,e=>(0,u.pipe)(c.decode(e),i.either.map(()=>({type:n,__TYPE__:t.EmptyContentType}))),()=>null),t.EmptyContent=o.strict({type:o.string,__TYPE__:o.literal(t.EmptyContentType)})},22443:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseGroupItemsContent=t.traverseGroupContent=t.groupContentWithDefaultValues=t.GroupLegacy=t.GroupItemLegacy=t.GroupContentDefaultValue=t.isGroupContent=t.GroupContent=t.GroupItemContent=t.GroupContentType=t.GroupItemContentType=void 0;let r=e(22970),i=e(9554),u=e(87412),o=e(14632),a=(0,r.__importStar)(e(87830)),c=e(23535),f=e(3845),l=e(58237),p=e(91366),d=e(22583);t.GroupItemContentType="GroupItemContent",t.GroupContentType="GroupContentType",t.GroupItemContent=a.recursion("GroupItemContent",()=>a.strict({__TYPE__:a.literal(t.GroupItemContentType),value:a.array(a.tuple([a.string,a.union([p.NestableContent,t.GroupContent])]))})),t.GroupContent=a.recursion("GroupContent",()=>a.strict({__TYPE__:a.literal(t.GroupContentType),value:a.array(t.GroupItemContent)})),t.isGroupContent=n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.GroupContentType,t.GroupContentDefaultValue={__TYPE__:t.GroupContentType,value:[]};let s=a.record(a.string,a.unknown);function h({path:n,key:t,apiId:e,model:r,content:i}){return u=>{var o;let a=m({path:n,model:null===(o=null==r?void 0:r.config)||void 0===o?void 0:o.fields,content:i.value})(u);return u({path:n,key:t,apiId:e,model:r,content:{__TYPE__:i.__TYPE__,value:a}})}}function m({path:n,model:e,content:r}){return i=>r.map((r,u)=>{let o=n.concat([{key:u.toString(),type:"GroupItem"}]),a=r.value.reduce((n,[r,u])=>{let a;let c=null==e?void 0:e[r];return(a=(0,t.isGroupContent)(u)?h({path:o.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==c?void 0:c.type)==="Group"?c:void 0,content:u})(i):(0,p.isRepeatableContent)(u)?(0,p.traverseRepeatableContent)({path:o.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==c?void 0:c.type)==="Link"?c:void 0,content:u})(i):(0,p.isTableContent)(u)?(0,p.traverseTableContent)({path:o.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==c?void 0:c.type)==="Table"?c:void 0,content:u})(i):i({path:o.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:c,content:u}))&&((0,p.isNestableContent)(a)||(0,t.isGroupContent)(a))?n.concat([[r,a]]):n},[]);return{__TYPE__:r.__TYPE__,value:a}})}t.GroupItemLegacy=n=>new a.Type("GroupItemLegacy",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.GroupItemContentType,e=>(0,o.pipe)(s.decode(e),i.either.map(e=>({value:Object.entries(e).reduce((e,[r,i])=>{let o=(0,f.getFieldCtx)(r,n),a=o.fieldType===c.GroupFieldType?(0,t.GroupLegacy)(o).decode(i):(0,p.NestableLegacy)(o).decode(i);return!a||(0,u.isLeft)(a)?e:[...e,[r,a.right]]},[]),__TYPE__:t.GroupItemContentType}))),e=>e.value.reduce((e,[r,i])=>{let u=(0,f.getFieldCtx)(r,n),o=(0,t.isGroupContent)(i)?(0,t.GroupLegacy)(u).encode(i):(0,p.NestableLegacy)(u).encode(i);return o?{content:{...e.content,[r]:o.content},types:{...e.types,...o.types}}:e},{content:{},types:{}})),t.GroupLegacy=n=>{let e=a.array(a.union([a.null,(0,t.GroupItemLegacy)(n)])),r=a.array((0,t.GroupItemLegacy)(n));return new a.Type("GroupLegacy",t.isGroupContent,n=>(0,o.pipe)(e.decode(n),i.either.map(n=>({value:n.map(n=>null===n?{__TYPE__:t.GroupItemContentType,value:[]}:n),__TYPE__:t.GroupContentType}))),t=>{let e=r.encode(t.value);return{content:e.map(n=>n.content),types:e.reduce((n,t)=>({...n,...t.types}),{[n.keyOfType]:c.GroupFieldType})}})},t.groupContentWithDefaultValues=function(n,t){var e;let r=null===(e=n.config)||void 0===e?void 0:e.fields;return r?{...t,value:(0,d.repeatableContentWithDefaultNestableContentValues)(r,t.value)}:t},t.traverseGroupContent=h,t.traverseGroupItemsContent=m},40174:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDContent=t.UIDLegacy=t.isUIDContent=t.UIDContentType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(58237);t.UIDContentType="UIDContent",t.isUIDContent=n=>(0,a.hasContentType)(n)&&n.__TYPE__===t.UIDContentType,t.UIDLegacy=n=>new o.Type("UIDLegacy",t.isUIDContent,n=>(0,u.pipe)(o.string.decode(n),i.either.map(n=>t.UIDContent.encode({value:n,__TYPE__:t.UIDContentType}))),t=>({content:t.value,types:{[n.keyOfType]:"UID"}})),t.UIDContent=o.type({__TYPE__:o.literal(t.UIDContentType),value:o.string})},93057:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetLegacy=t.isWidgetContent=t.WidgetContent=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(22443),u=e(91366),o=e(83592),a=e(40174);t.WidgetContent=r.union([i.GroupContent,u.NestableContent,a.UIDContent,o.SlicesContent]),t.isWidgetContent=n=>(0,i.isGroupContent)(n)||(0,u.isNestableContent)(n)||(0,a.isUIDContent)(n)||(0,o.isSlicesContent)(n),t.WidgetLegacy=n=>({decode(t){if(!n.fieldType)return;let e=(()=>{switch(n.fieldType){case"UID":return(0,a.UIDLegacy)(n);case"Group":return(0,i.GroupLegacy)(n);case"Choice":case"Slices":return(0,o.SlicesLegacy)(n);default:return(0,u.NestableLegacy)(n)}})();if(e)return e.decode(t)},encode(t){switch(t.__TYPE__){case a.UIDContentType:return(0,a.UIDLegacy)(n).encode(t);case i.GroupContentType:return(0,i.GroupLegacy)(n).encode(t);case o.SlicesContentType:return(0,o.SlicesLegacy)(n).encode(t);default:return(0,u.NestableLegacy)(n).encode(t)}}})},33832:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(82646),t),(0,r.__exportStar)(e(22443),t),(0,r.__exportStar)(e(91366),t),(0,r.__exportStar)(e(83592),t),(0,r.__exportStar)(e(40174),t),(0,r.__exportStar)(e(93057),t)},47451:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanContentDefaultValue=t.BooleanContent=t.BooleanLegacy=t.isBooleanContent=t.BooleanContentType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(58237);t.BooleanContentType="BooleanContent",t.isBooleanContent=n=>(0,a.hasContentType)(n)&&n.__TYPE__===t.BooleanContentType,t.BooleanLegacy=n=>new o.Type("BooleanLegacy",t.isBooleanContent,n=>(0,u.pipe)(o.boolean.decode(n),i.either.map(n=>t.BooleanContent.encode({value:n,__TYPE__:t.BooleanContentType}))),t=>({content:t.value,types:{[n.keyOfType]:"Boolean"}})),t.BooleanContent=o.strict({__TYPE__:o.literal(t.BooleanContentType),value:o.boolean}),t.BooleanContentDefaultValue=n=>{var e;return(null===(e=n.config)||void 0===e?void 0:e.default_value)!==void 0?{__TYPE__:t.BooleanContentType,value:n.config.default_value||!1}:void 0}},11836:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedContent=t.EmbedLegacy=t.EmbedContentLegacy=t.isEmbedContent=t.EmbedContentType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(8597),c=e(58237);t.EmbedContentType="EmbedContent",t.isEmbedContent=n=>(0,c.hasContentType)(n)&&n.__TYPE__===t.EmbedContentType,t.EmbedContentLegacy=o.exact(o.intersection([o.type({embed_url:o.string,type:o.string}),o.partial({version:o.union([o.string,o.number,o.null]),title:a.StringOrNull,author_name:a.StringOrNull,author_url:a.StringOrNull,provider_name:a.StringOrNull,provider_url:a.StringOrNull,cache_age:o.union([o.string,o.number,o.null]),thumbnail_url:a.StringOrNull,thumbnail_width:a.NumberOrNull,thumbnail_height:a.NumberOrNull,html:a.StringOrNull})])),t.EmbedLegacy=n=>new o.Type("EmbedLegacy",t.isEmbedContent,n=>(0,u.pipe)(t.EmbedContentLegacy.decode(n),i.either.map(e=>({...e,all:n,__TYPE__:t.EmbedContentType}))),t=>({content:t.all,types:{[n.keyOfType]:"Embed"}})),t.EmbedContent=o.intersection([t.EmbedContentLegacy,o.strict({__TYPE__:o.literal(t.EmbedContentType),all:o.unknown})])},77124:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContent=t.ColorLegacy=t.isColorContent=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(99814),c=(0,r.__importDefault)(e(38729)),f=e(58237),l=e(84929);t.isColorContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Color"===n.type,t.ColorLegacy=n=>new o.Type("ColorLegacy",t.isColorContent,n=>(0,u.pipe)(c.default.decode(n),i.either.map(n=>t.ColorContent.encode({value:n,type:a.ColorFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:a.ColorFieldType}})),t.ColorContent=o.strict({type:o.literal(a.ColorFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},62544:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DateContent=t.DateLegacy=t.isDateContent=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(99814),c=(0,r.__importDefault)(e(38729)),f=e(58237),l=e(84929);t.isDateContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Date"===n.type,t.DateLegacy=n=>new o.Type("DateLegacy",t.isDateContent,n=>(0,u.pipe)(c.default.decode(n),i.either.map(n=>t.DateContent.encode({value:n,type:a.DateFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:a.DateFieldType}})),t.DateContent=o.strict({type:o.literal(a.DateFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},83768:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberContent=t.NumberLegacy=t.isNumberContent=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(99814),c=(0,r.__importDefault)(e(38729)),f=e(58237),l=e(84929);t.isNumberContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Number"===n.type,t.NumberLegacy=n=>new o.Type("NumberLegacy",t.isNumberContent,n=>(0,u.pipe)(c.default.decode(n),i.either.map(n=>t.NumberContent.encode({value:n,type:a.NumberFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:a.NumberFieldType}})),t.NumberContent=o.strict({type:o.literal(a.NumberFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},8944:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeContent=t.RangeLegacy=t.isRangeContent=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(99814),c=(0,r.__importDefault)(e(38729)),f=e(58237),l=e(84929);t.isRangeContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Range"===n.type,t.RangeLegacy=n=>new o.Type("RangeLegacy",t.isRangeContent,n=>(0,u.pipe)(c.default.decode(n),i.either.map(n=>t.RangeContent.encode({value:n,type:a.RangeFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:a.RangeFieldType}})),t.RangeContent=o.strict({type:o.literal(a.RangeFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},13221:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectContentDefaultValue=t.SelectContent=t.SelectLegacy=t.isSelectContent=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(99814),c=(0,r.__importDefault)(e(38729)),f=e(58237),l=e(84929);t.isSelectContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Select"===n.type,t.SelectLegacy=n=>new o.Type("SelectLegacy",t.isSelectContent,n=>(0,u.pipe)(c.default.decode(n),i.either.map(n=>t.SelectContent.encode({value:n,type:a.SelectFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:a.SelectFieldType}})),t.SelectContent=o.strict({type:o.literal(a.SelectFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)}),t.SelectContentDefaultValue=n=>{var t;return(null===(t=n.config)||void 0===t?void 0:t.default_value)?{__TYPE__:l.FieldContentType,type:a.SelectFieldType,value:n.config.default_value||""}:void 0}},38295:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TextContent=t.TextLegacy=t.isTextContent=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(99814),c=(0,r.__importDefault)(e(38729)),f=e(58237),l=e(84929);t.isTextContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Text"===n.type,t.TextLegacy=n=>new o.Type("TextLegacy",t.isTextContent,n=>(0,u.pipe)(c.default.decode(n),i.either.map(n=>t.TextContent.encode({value:n,type:a.TextFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:a.TextFieldType}})),t.TextContent=o.strict({type:o.literal(a.TextFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},79137:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampContent=t.TimestampLegacy=t.isTimestampContent=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(99814),c=(0,r.__importDefault)(e(38729)),f=e(58237),l=e(84929);t.isTimestampContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Timestamp"===n.type,t.TimestampLegacy=n=>new o.Type("TimestampLegacy",t.isTimestampContent,n=>(0,u.pipe)(c.default.decode(n),i.either.map(n=>t.TimestampContent.encode({value:n,type:a.TimestampFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:a.TimestampFieldType}})),t.TimestampContent=o.strict({type:o.literal(a.TimestampFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},84929:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContentType=void 0,t.FieldContentType="FieldContent"},86649:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContent=t.FieldType=void 0;let r=e(22970),i=(0,r.__importStar)(e(87830)),u=e(77124),o=e(62544),a=e(83768),c=e(8944),f=e(13221),l=e(38295),p=e(79137);t.FieldType=i.keyof({Text:null,Date:null,Timestamp:null,Color:null,Number:null,Range:null,Select:null}),t.FieldContent=i.union([o.DateContent,u.ColorContent,a.NumberContent,c.RangeContent,f.SelectContent,l.TextContent,p.TimestampContent]),(0,r.__exportStar)(e(77124),t),(0,r.__exportStar)(e(84929),t),(0,r.__exportStar)(e(62544),t),(0,r.__exportStar)(e(83768),t),(0,r.__exportStar)(e(8944),t),(0,r.__exportStar)(e(13221),t),(0,r.__exportStar)(e(38295),t),(0,r.__exportStar)(e(79137),t)},48896:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointContent=t.GeoPointLegacy=t.isGeoPointContent=t.GeoPointContentType=void 0;let r=e(22970),i=e(9554),u=e(42275),o=(0,r.__importStar)(e(87830)),a=e(58237);t.GeoPointContentType="GeoPointContent",t.isGeoPointContent=n=>(0,a.hasContentType)(n)&&n.__TYPE__===t.GeoPointContentType;let c=o.strict({position:o.strict({lat:o.number,lng:o.number})});t.GeoPointLegacy=n=>new o.Type("GeoPointLegacy",t.isGeoPointContent,n=>(0,u.pipe)(c.decode(n),i.either.map(n=>t.GeoPointContent.encode({...n,__TYPE__:t.GeoPointContentType}))),t=>({content:{position:t.position},types:{[n.keyOfType]:"GeoPoint"}})),t.GeoPointContent=o.intersection([c,o.strict({__TYPE__:o.literal(t.GeoPointContentType)})])},15764:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageContent=t.ImageLegacy=t.ImageContentView=t.isImageContent=t.ImageContentType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(17160),c=e(8597),f=e(58237);t.ImageContentType="ImageContent",t.isImageContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===t.ImageContentType;let l=o.exact(o.type({id:o.string,url:o.string,width:o.number,height:o.number}));t.ImageContentView=o.exact(o.intersection([o.type({origin:l,width:o.number,height:o.number,edit:o.type({zoom:o.number,crop:o.type({x:o.number,y:o.number}),background:o.string})}),o.partial({url:o.string,credits:c.NonEmptyStringOrNull,alt:c.NonEmptyStringOrNull,provider:c.StringOrNull})]));let p=o.intersection([t.ImageContentView,o.partial({thumbnails:o.record(o.string,t.ImageContentView)})]);t.ImageLegacy=n=>new o.Type("ImageLegacy",t.isImageContent,n=>(0,u.pipe)(p.decode(n),i.either.map(n=>t.ImageContent.encode({...n,__TYPE__:t.ImageContentType}))),t=>({content:(0,a.withOptionals)({edit:t.edit,height:t.height,origin:t.origin,width:t.width},[["alt",t.alt],["credits",t.credits],["provider",t.provider],["thumbnails",t.thumbnails],["url",t.url]]),types:{[n.keyOfType]:"Image"}})),t.ImageContent=o.intersection([p,o.strict({__TYPE__:o.literal(t.ImageContentType)})])},9583:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldContent=t.IntegrationFieldLegacy=t.isIntegrationFieldContent=t.IntegrationFieldContentType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(58237);t.IntegrationFieldContentType="IntegrationFieldsContent",t.isIntegrationFieldContent=n=>(0,a.hasContentType)(n)&&n.__TYPE__===t.IntegrationFieldContentType,t.IntegrationFieldLegacy=n=>new o.Type("IntegrationFieldLegacy",t.isIntegrationFieldContent,n=>(0,u.pipe)(o.string.decode(n),i.either.map(n=>t.IntegrationFieldContent.encode({value:n,__TYPE__:t.IntegrationFieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:"IntegrationFields"}})),t.IntegrationFieldContent=o.strict({__TYPE__:o.literal(t.IntegrationFieldContentType),value:o.string})},72202:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.FilledLinkContent=t.FilledLink=t.FilledLinkContentLegacy=t.FilledLinkLegacy=t.isFilledLinkContent=t.LinkContent=t.Link=t.LinkContentLegacy=t.LinkLegacy=t.isLinkContent=t.LinkContentType=t.AnyLinkContent=t.AnyLinkType=t.ExternalLinkContent=t.FilledExternalLinkContent=t.ExternalLinkType=t.DocumentLinkContent=t.FilledDocumentLinkContent=t.DocumentLinkType=t.MediaLinkContent=t.MediaLinkType=t.FileLinkContent=t.FilledFileLinkContent=t.FileLinkType=t.ImageLinkContent=t.FilledImageLinkContent=t.ImageLinkType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(23284),c=e(8597),f=e(35002),l=e(58237);t.ImageLinkType="ImageLink";let p=n=>"string"==typeof n,d=new o.Type("ImageLinkKind",n=>p(n),(n,t)=>p(n)?o.success("image"):o.failure(n,t),()=>"image"),s=o.intersection([o.strict({kind:d,id:o.string,url:o.string,height:o.string,width:o.string,size:o.string,name:o.string}),o.exact(o.partial({date:c.StringOrNull}))]),h=new o.Type("FilledImageLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.ImageLinkType,n=>(0,u.pipe)(s.decode(n),i.either.map(n=>t.FilledImageLinkContent.encode({...n,__TYPE__:t.ImageLinkType}))),n=>s.encode(n));t.FilledImageLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ImageLinkType)}),s]);let m=o.intersection([o.union([s,o.strict({kind:o.literal("image")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),v=new o.Type("ImageLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.ImageLinkType,n=>(0,u.pipe)(m.decode(n),i.either.map(n=>t.ImageLinkContent.encode({...n,__TYPE__:t.ImageLinkType}))),n=>m.encode(n));t.ImageLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ImageLinkType)}),m]),t.FileLinkType="FileLink";let g=n=>"string"==typeof n,y=new o.Type("FileLinkKind",n=>g(n),(n,t)=>g(n)?o.success("file"):o.failure(n,t),()=>"file"),b=o.exact(o.intersection([o.type({kind:y,id:o.string,url:o.string,name:o.string,size:(0,a.withFallback)(o.string,"0")}),o.partial({date:c.StringOrNull})])),_=new o.Type("FilledFileLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.FileLinkType,n=>(0,u.pipe)(b.decode(n),i.either.map(n=>t.FilledFileLinkContent.encode({...n,__TYPE__:t.FileLinkType}))),n=>b.encode(n));t.FilledFileLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.FileLinkType)}),b]);let I=o.intersection([o.union([b,o.strict({kind:o.literal("file")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),R=new o.Type("FileLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.FileLinkType,n=>(0,u.pipe)(I.decode(n),i.either.map(n=>t.FileLinkContent.encode({...n,__TYPE__:t.FileLinkType}))),n=>I.encode(n));t.FileLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.FileLinkType)}),I]),t.MediaLinkType="MediaLink";let S=o.intersection([o.strict({kind:o.literal("media")}),o.exact(o.partial({text:o.string,variant:o.string}))]),T=new o.Type("MediaLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.MediaLinkType,n=>(0,u.pipe)(S.decode(n),i.either.map(n=>t.MediaLinkContent.encode({...n,__TYPE__:t.MediaLinkType}))),n=>S.encode(n));t.MediaLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.MediaLinkType)}),S]),t.DocumentLinkType="DocumentLink";let x=o.strict({id:c.NonEmptyString}),w=new o.Type("FilledDocumentLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.DocumentLinkType,n=>(0,u.pipe)(x.decode(n),i.either.map(n=>t.FilledDocumentLinkContent.encode({...n,__TYPE__:t.DocumentLinkType}))),n=>x.encode(n));t.FilledDocumentLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.DocumentLinkType)}),x]);let M=o.intersection([o.union([x,o.strict({kind:o.literal("document")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),O=new o.Type("DocumentLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.DocumentLinkType,n=>(0,u.pipe)(M.decode(n),i.either.map(n=>t.DocumentLinkContent.encode({...n,__TYPE__:t.DocumentLinkType}))),n=>M.encode(n));t.DocumentLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.DocumentLinkType)}),M]),t.ExternalLinkType="ExternalLink";let E=o.exact(o.intersection([o.type({url:o.string}),o.partial({kind:o.literal("web"),target:c.StringOrNull,preview:(0,f.nullable)(o.partial({title:o.string}))})])),C=new o.Type("FilledExternalLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.ExternalLinkType,n=>(0,u.pipe)(E.decode(n),i.either.map(n=>t.FilledExternalLinkContent.encode({...n,__TYPE__:t.ExternalLinkType}))),n=>E.encode(n));t.FilledExternalLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ExternalLinkType)}),E]);let k=o.intersection([o.union([E,o.strict({kind:o.literal("web")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),W=new o.Type("ExternalLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.ExternalLinkType,n=>(0,u.pipe)(k.decode(n),i.either.map(n=>t.ExternalLinkContent.encode({...n,__TYPE__:t.ExternalLinkType}))),n=>k.encode(n));t.ExternalLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ExternalLinkType)}),k]),t.AnyLinkType="AnyLink";let F=o.exact(o.intersection([o.type({kind:(0,a.withFallback)(o.literal("any"),"any")}),o.partial({text:o.string,variant:o.string})])),P=new o.Type("AnyLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.AnyLinkType,n=>(0,u.pipe)(F.decode(n),i.either.map(n=>t.AnyLinkContent.encode({...n,__TYPE__:t.AnyLinkType}))),n=>F.encode(n));t.AnyLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.AnyLinkType)}),F]),t.LinkContentType="LinkContent",t.isLinkContent=n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.LinkContentType,t.LinkLegacy=(0,l.withKey)(o.union([v,R,O,W,T,P])),t.LinkContentLegacy=n=>new o.Type("LinkLegacy",t.isLinkContent,n=>(0,u.pipe)(t.LinkLegacy.decode(n),i.either.map(({key:n,...e})=>t.LinkContent.encode({__TYPE__:"LinkContent",key:n,value:e}))),({key:e,value:r})=>({content:t.LinkLegacy.encode({...r,key:e}),types:{[n.keyOfType]:"Link"}})),t.Link=o.union([t.ImageLinkContent,t.FileLinkContent,t.DocumentLinkContent,t.ExternalLinkContent,t.MediaLinkContent,t.AnyLinkContent]),t.LinkContent=(0,l.withKey)(o.strict({__TYPE__:o.literal(t.LinkContentType),value:t.Link})),t.isFilledLinkContent=n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.LinkContentType,t.FilledLinkLegacy=o.union([h,_,w,C]),t.FilledLinkContentLegacy=n=>{let e=(0,l.withKey)(t.FilledLinkLegacy);return new o.Type("FilledLinkLegacy",t.isFilledLinkContent,n=>(0,u.pipe)(e.decode(n),i.either.map(({key:n,...e})=>t.FilledLinkContent.encode({__TYPE__:"LinkContent",key:n,value:e}))),({key:t,value:r})=>({content:e.encode({...r,key:t}),types:{[n.keyOfType]:"Link"}}))},t.FilledLink=o.union([t.FilledImageLinkContent,t.FilledFileLinkContent,t.FilledDocumentLinkContent,t.FilledExternalLinkContent]),t.FilledLinkContent=(0,l.withKey)(o.strict({__TYPE__:o.literal(t.LinkContentType),value:t.FilledLink}))},65090:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableLegacy=t.isNestableContent=t.NestableContentDefaultValue=t.NestableContent=void 0;let r=e(22970),i=e(87412),u=(0,r.__importStar)(e(87830)),o=e(82646),a=e(47451),c=e(11836),f=e(86649),l=e(84929),p=e(48896),d=e(15764),s=e(9583),h=e(72202),m=e(92521),v=e(89040),g=e(68507),y=e(84057);t.NestableContent=u.union([o.EmptyContent,a.BooleanContent,c.EmbedContent,f.TextContent,f.TimestampContent,f.SelectContent,f.RangeContent,f.NumberContent,f.DateContent,f.ColorContent,p.GeoPointContent,d.ImageContent,s.IntegrationFieldContent,h.LinkContent,v.RichTextContent,g.SeparatorContent,y.TableContent,m.RepeatableContent]),t.NestableContentDefaultValue=n=>{switch(n.type){case"Boolean":return(0,a.BooleanContentDefaultValue)(n);case"Select":return(0,f.SelectContentDefaultValue)(n);default:return}},t.isNestableContent=n=>(0,f.isTextContent)(n)||(0,f.isColorContent)(n)||(0,f.isDateContent)(n)||(0,f.isTimestampContent)(n)||(0,f.isNumberContent)(n)||(0,f.isRangeContent)(n)||(0,f.isSelectContent)(n)||(0,p.isGeoPointContent)(n)||(0,v.isRichTextContent)(n)||(0,a.isBooleanContent)(n)||(0,c.isEmbedContent)(n)||(0,d.isImageContent)(n)||(0,s.isIntegrationFieldContent)(n)||(0,h.isLinkContent)(n)||(0,g.isSeparatorContent)(n)||(0,y.isTableContent)(n)||(0,o.isEmptyContent)(n)||(0,m.isRepeatableContent)(n),t.NestableLegacy=n=>({decode(t){if(!n.fieldType)return;let e=(0,o.EmptyLegacy)(n.fieldType).decode(t);if((0,i.isRight)(e))return e;let r=(()=>{switch(n.fieldType){case"Text":return(0,f.TextLegacy)(n);case"Color":return(0,f.ColorLegacy)(n);case"Date":return(0,f.DateLegacy)(n);case"Timestamp":return(0,f.TimestampLegacy)(n);case"Number":return(0,f.NumberLegacy)(n);case"Range":return(0,f.RangeLegacy)(n);case"Select":return(0,f.SelectLegacy)(n);case"GeoPoint":return(0,p.GeoPointLegacy)(n);case"StructuredText":return(0,v.RichTextLegacy)(n);case"Boolean":return(0,a.BooleanLegacy)(n);case"Embed":return(0,c.EmbedLegacy)(n);case"Image":return(0,d.ImageLegacy)(n);case"IntegrationFields":return(0,s.IntegrationFieldLegacy)(n);case"Link":return(0,h.LinkContentLegacy)(n);case"Separator":return(0,g.SeparatorLegacy)(n);case"Table":return(0,y.TableLegacy)(n);case"Repeatable.Link":return(0,m.RepeatableLegacy)(n,"Link");default:return}})();if(r)return r.decode(t)},encode(t){switch(t.__TYPE__){case l.FieldContentType:if("Text"===t.type)return(0,f.TextLegacy)(n).encode(t);if("Color"===t.type)return(0,f.ColorLegacy)(n).encode(t);if("Range"===t.type)return(0,f.RangeLegacy)(n).encode(t);if("Date"===t.type)return(0,f.DateLegacy)(n).encode(t);if("Number"===t.type)return(0,f.NumberLegacy)(n).encode(t);if("Timestamp"===t.type)return(0,f.TimestampLegacy)(n).encode(t);if("Select"===t.type)return(0,f.SelectLegacy)(n).encode(t);return;case p.GeoPointContentType:return(0,p.GeoPointLegacy)(n).encode(t);case v.RichTextContentType:return(0,v.RichTextLegacy)(n).encode(t);case c.EmbedContentType:return(0,c.EmbedLegacy)(n).encode(t);case a.BooleanContentType:return(0,a.BooleanLegacy)(n).encode(t);case d.ImageContentType:return(0,d.ImageLegacy)(n).encode(t);case s.IntegrationFieldContentType:return(0,s.IntegrationFieldLegacy)(n).encode(t);case h.LinkContentType:return(0,h.LinkContentLegacy)(n).encode(t);case g.SeparatorContentType:return(0,g.SeparatorLegacy)(n).encode(t);case y.TableContentType:return(0,y.TableLegacy)(n).encode(t);case"RepeatableContent":return(0,m.RepeatableLegacy)(n,t.type).encode(t);default:return}}})},92521:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseRepeatableContent=t.RepeatableLegacy=t.isRepeatableContent=t.RepeatableContent=void 0;let r=e(22970),i=e(9554),u=e(87412),o=e(14632),a=(0,r.__importStar)(e(87830)),c=e(58237),f=e(72202),l="RepeatableContent";t.RepeatableContent=a.strict({__TYPE__:a.literal(l),type:a.literal("Link"),value:a.array(f.LinkContent)}),t.isRepeatableContent=n=>(0,c.hasContentType)(n)&&n.__TYPE__===l,t.RepeatableLegacy=(n,e)=>new a.Type("RepeatableLegacy",t.isRepeatableContent,t=>(0,o.pipe)(a.array(a.unknown).decode(t),i.either.map(t=>({value:t.reduce((t,r)=>{let i;return"Link"===e&&(i=(0,f.LinkContentLegacy)(n).decode(r)),!i||(0,u.isLeft)(i)?t:[...t,i.right]},[]),type:e,__TYPE__:"RepeatableContent"}))),t=>({content:a.array(f.LinkContent).encode(t.value).reduce((t,e)=>{let r;return e.__TYPE__===f.LinkContentType&&(r=(0,f.LinkContentLegacy)(n).encode(e)),r?[...t,r]:t},[]).map(n=>n.content),types:{[n.keyOfType]:`Repeatable.${e}`}})),t.traverseRepeatableContent=function({path:n,key:t,apiId:e,model:r,content:i}){return u=>{let o=i.value.reduce((i,o,a)=>{let c=u({path:n.concat([{key:a.toString(),type:"Widget"}]),key:t,apiId:e,model:(null==r?void 0:r.type)==="Link"&&r.config?{...r,config:{...r.config,repeat:!1}}:r,content:o});return c&&(0,f.isLinkContent)(c)?i.concat(c):i},[]);return u({path:n,key:t,apiId:e,model:r,content:{__TYPE__:i.__TYPE__,type:i.type,value:o}})}}},71741:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Block=t.BlockLegacy=t.TextBlockLegacy=t.TextBlock=t.checkEmbedBlock=t.EmbedBlock=t.checkImageBlock=t.ImageBlock=t.ValidatedSpans=t.SpanLegacy=t.Span=void 0;let r=e(22970),i=e(9554),u=e(87412),o=e(14632),a=(0,r.__importStar)(e(87830)),c=e(23284),f=e(44613),l=e(8597),p=e(35002),d=e(11836),s=e(15764),h=e(72202),m=n=>a.strict({data:n,start:a.number,end:a.number,type:a.literal(f.RichTextNodeType.hyperlink)}),v=a.strict({data:(0,c.withFallback)(a.string,""),start:a.number,end:a.number,type:a.literal("label")}),g=a.strict({start:a.number,end:a.number,type:a.keyof({[f.RichTextNodeType.strong]:null,[f.RichTextNodeType.em]:null,"list-item":null})});t.Span=a.union([m(h.FilledLink),v,g]),t.SpanLegacy=a.union([m(h.FilledLinkLegacy),v,g]),t.ValidatedSpans=n=>new a.Type("ValidatedSpans",t=>Array.isArray(t)&&t.every(n.is),(t,e)=>{if(!Array.isArray(t))return a.failure(t,e);{let e=t.reduce((t,e)=>{let r=n.decode(e);return(0,u.isLeft)(r)?t:[...t,r.right]},[]).sort((n,t)=>n.start-t.start);return a.success(e)}},t=>t.reduce((t,e)=>[...t,n.encode(e)],[]));let y=n=>a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.image),data:a.intersection([s.ImageContentView,a.partial({linkTo:(0,p.nullable)(n)})])}),a.partial({label:l.StringOrNull,direction:l.StringOrNull})]));t.ImageBlock=y(h.FilledLink);let b=y(h.FilledLinkLegacy);t.checkImageBlock=function(n){return n.type===f.RichTextNodeType.image};let _=a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.embed),data:a.unknown}),a.partial({label:l.StringOrNull,direction:l.StringOrNull})])),I=new a.Type("EmbedBlockLegacy",n=>"embed"===n.type,n=>(0,o.pipe)(_.decode(n),i.either.chain(n=>i.either.map(t=>[n,t])(d.EmbedContentLegacy.decode(n.data))),i.either.map(([n,e])=>t.EmbedBlock.encode({...n,data:{...e,__TYPE__:d.EmbedContentType,all:n.data}}))),n=>({..._.encode(n),data:d.EmbedContentLegacy.encode(n.data)}));t.EmbedBlock=a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.embed),data:d.EmbedContent}),a.partial({label:l.StringOrNull,direction:l.StringOrNull})])),t.checkEmbedBlock=function(n){return n.type===f.RichTextNodeType.embed};let R=n=>a.exact(a.intersection([a.type({type:(0,p.refineType)(f.RichTextNodeTypeCodec,`string which isn't ${f.RichTextNodeType.image} ${f.RichTextNodeType.embed}`,n=>n!==f.RichTextNodeType.image&&n!==f.RichTextNodeType.embed),content:a.intersection([a.type({text:a.string}),a.partial({spans:(0,t.ValidatedSpans)(n)})])}),a.partial({label:a.string,direction:a.string})]));t.TextBlock=R(t.Span),t.TextBlockLegacy=R(t.SpanLegacy);let S=a.union([I,b,t.TextBlockLegacy]);t.BlockLegacy=new a.Type("BlockLegacy",n=>I.is(n)||b.is(n)||t.TextBlockLegacy.is(n),n=>S.decode(n),n=>t.ImageBlock.is(n)?b.encode(n):t.EmbedBlock.is(n)?I.encode(n):t.TextBlockLegacy.encode(n)),t.Block=a.union([t.ImageBlock,t.EmbedBlock,t.TextBlock])},89040:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextLegacy=t.RichTextContent=t.RichTextLegacyContent=t.isRichTextContent=t.RichTextContentType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(58237),c=e(71741);t.RichTextContentType="StructuredTextContent",t.isRichTextContent=n=>(0,a.hasContentType)(n)&&n.__TYPE__===t.RichTextContentType,t.RichTextLegacyContent=o.array(c.BlockLegacy),t.RichTextContent=o.strict({__TYPE__:o.literal(t.RichTextContentType),value:o.array(c.Block)}),(0,r.__exportStar)(e(71741),t),t.RichTextLegacy=n=>new o.Type("RichTextLegacy",t.isRichTextContent,n=>(0,u.pipe)(t.RichTextLegacyContent.decode(n),i.either.map(n=>({value:n,__TYPE__:t.RichTextContentType}))),e=>({content:t.RichTextLegacyContent.encode(e.value),types:{[n.keyOfType]:"StructuredText"}}))},68507:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorContent=t.SeparatorLegacy=t.isSeparatorContent=t.SeparatorContentType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(58237);t.SeparatorContentType="SeparatorContent",t.isSeparatorContent=n=>(0,i.hasContentType)(n)&&n.__TYPE__===t.SeparatorContentType,t.SeparatorLegacy=n=>new r.Type("SeparatorLegacy",t.isSeparatorContent,()=>r.success(t.SeparatorContent.encode({__TYPE__:t.SeparatorContentType})),()=>({content:{},types:{[n.keyOfType]:"Separator"}})),t.SeparatorContent=r.strict({__TYPE__:r.literal(t.SeparatorContentType)})},84057:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseTableContent=t.TableLegacy=t.TableContent=t.isTableContent=t.TableContentType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(23535),c=e(58237),f=e(89040);t.TableContentType="TableContent",t.isTableContent=n=>(0,c.hasContentType)(n)&&n.__TYPE__===t.TableContentType;let l=(0,c.withKey)(o.intersection([o.strict({type:o.union([o.literal("tableHeader"),o.literal("tableCell")]),content:f.RichTextContent}),o.exact(o.partial({columnWidth:o.number}))])),p=(0,c.withKey)(o.strict({type:o.literal("tableRow"),content:o.array(l)}));t.TableContent=o.strict({__TYPE__:o.literal(t.TableContentType),content:o.array(p)});let d=(0,c.withKey)(o.intersection([o.strict({type:o.union([o.literal("tableHeader"),o.literal("tableCell")]),content:f.RichTextLegacyContent}),o.exact(o.partial({columnWidth:o.number}))])),s=(0,c.withKey)(o.strict({type:o.literal("tableRow"),content:o.array(d)})),h=o.strict({content:o.array(s)});t.TableLegacy=n=>new o.Type("TableLegacy",t.isTableContent,n=>(0,u.pipe)(h.decode(n),i.either.map(n=>({__TYPE__:"TableContent",content:n.content.map(n=>({...n,content:n.content.map(n=>({...n,content:{__TYPE__:"StructuredTextContent",value:n.content}}))}))}))),t=>({content:h.encode({content:t.content.map(n=>({...n,content:n.content.map(n=>({...n,content:n.content.value}))}))}),types:{[n.keyOfType]:"Table"}})),t.traverseTableContent=function({path:n,key:t,apiId:e,model:r,content:i}){return u=>{let o=i.content.map((r,i)=>({...r,content:r.content.map((r,o)=>{let c=u({path:n.concat([{key:[i.toString(),o.toString()].join(","),type:"Widget"}]),key:t,apiId:e,model:a.TableCell,content:{__TYPE__:r.content.__TYPE__,value:r.content.value}})||{__TYPE__:"StructuredTextContent",value:[]};return{...r,content:c}})}));return u({path:n,key:t,apiId:e,model:r,content:{__TYPE__:i.__TYPE__,content:o}})}}},91366:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(47451),t),(0,r.__exportStar)(e(11836),t),(0,r.__exportStar)(e(86649),t),(0,r.__exportStar)(e(48896),t),(0,r.__exportStar)(e(15764),t),(0,r.__exportStar)(e(9583),t),(0,r.__exportStar)(e(72202),t),(0,r.__exportStar)(e(65090),t),(0,r.__exportStar)(e(92521),t),(0,r.__exportStar)(e(89040),t),(0,r.__exportStar)(e(68507),t),(0,r.__exportStar)(e(84057),t)},53422:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateCompositeSlice=t.traverseCompositeSliceContent=t.compositeSliceContentWithDefaultValues=t.CompositeSliceContent=t.CompositeSliceLegacy=t.isCompositeSliceContent=t.CompositeSliceContentType=void 0;let r=e(22970),i=e(9554),u=e(87412),o=e(14632),a=(0,r.__importStar)(e(87830)),c=e(3845),f=e(58237),l=e(22443),p=e(91366),d=e(22583),s=e(53034);t.CompositeSliceContentType="CompositeSliceContent",t.isCompositeSliceContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===t.CompositeSliceContentType;let h=a.exact(a.partial({repeat:a.array(a.unknown),"non-repeat":a.UnknownRecord}));t.CompositeSliceLegacy=n=>new a.Type("CompositeSliceLegacy",t.isCompositeSliceContent,e=>(0,o.pipe)(h.decode(e),i.either.map(e=>{let r=(()=>{let t=(0,c.getFieldCtx)("repeat",n),r=(0,s.RepeatableWidgetsLegacy)(t).decode(e.repeat);if(!(!r||(0,u.isLeft)(r)))return r.right})()||[];return{nonRepeat:Object.entries(e["non-repeat"]||{}).reduce((t,[e,r])=>{let i=(0,c.getFieldCtx)(e,n,["non-repeat"]);if(!i)return t;let o=(0,p.NestableLegacy)(i).decode(r);return!o||(0,u.isLeft)(o)?t:{...t,[e]:o.right}},{}),repeat:r,__TYPE__:t.CompositeSliceContentType}})),t=>{let e=Object.entries(t.nonRepeat).reduce((t,[e,r])=>{let i=(0,c.getFieldCtx)(e,n,["non-repeat"]),u=(0,p.NestableLegacy)(i).encode(r);return u?{content:{...t.content,[e]:u.content},types:{...t.types,...u.types}}:t},{content:{},types:{}}),r=(()=>{let e=(0,c.getFieldCtx)("repeat",n);return(0,s.RepeatableWidgetsLegacy)(e).encode(t.repeat)})()||[];return{content:{"non-repeat":e.content,repeat:r.map(n=>n.content)},types:{[n.keyOfType]:"Slice",...e.types,...r.reduce((n,t)=>({...n,...t.types}),{})}}}),t.CompositeSliceContent=a.strict({__TYPE__:a.literal(t.CompositeSliceContentType),nonRepeat:a.record(a.string,p.NestableContent),repeat:s.RepeatableWidgets}),t.compositeSliceContentWithDefaultValues=function(n,t){var e,r;let i=(0,d.withDefaultNestableContentValues)(null!==(e=n["non-repeat"])&&void 0!==e?e:{},t.nonRepeat),u=(0,d.repeatableContentWithDefaultNestableContentValues)(null!==(r=n.repeat)&&void 0!==r?r:{},t.repeat);return{...t,nonRepeat:i,repeat:u}},t.traverseCompositeSliceContent=function({path:n,sliceKey:t,sliceName:e,model:r,content:i}){return(u,o)=>{let a=Object.entries(i.widget.nonRepeat).reduce((i,[o,a])=>{var c,f,l;let d=(null==r?void 0:r.type)==="SharedSlice"?null===(f=null===(c=null==r?void 0:r.fields)||void 0===c?void 0:c.primary)||void 0===f?void 0:f[o]:null===(l=null==r?void 0:r["non-repeat"])||void 0===l?void 0:l[o],s=u({path:n.concat([{key:"non-repeat",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:e,model:d,content:a});return s?(0,p.isNestableContent)(s)?{...i,[o]:s}:(console.warn(`Warn: Non nestable content with key [${o}] detected in a composite slice [${e}] with key [${t}]`),i):i},{}),c=(0,l.traverseGroupItemsContent)({path:n.concat([{key:"repeat",type:"items"}]),model:(null==r?void 0:r.type)==="SharedSlice"?null==r?void 0:r.fields.items:null==r?void 0:r.repeat,content:i.widget.repeat})(u);return o({key:t,apiId:e,path:n,model:r,content:{...i,widget:{__TYPE__:"CompositeSliceContent",repeat:c,nonRepeat:a}}})}},t.migrateCompositeSlice=function(n,t){let[,e]=t.key.split("$");return{key:`${n.sliceName}$${e}`,name:n.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:n.variationId,primary:Object.entries(t.widget.nonRepeat).reduce((e,[r,i])=>{var u;return(null===(u=n.fields.primary)||void 0===u?void 0:u[r])?{...e,[r]:i}:(console.warn(`The widget ${r} in the non-repeat zone of the composite slice [${n.sliceName}] with key [${t.key}] doesn't exist in the model.`),e)},{}),items:t.widget.repeat.map(e=>({__TYPE__:"GroupItemContent",value:e.value.reduce((e,[r,i])=>{var u;return(null===(u=n.fields.items)||void 0===u?void 0:u[r])?e.concat([[r,i]]):(console.warn(`The widget ${r} in the repeat zone of the composite slice [${n.sliceName}] with key [${t.key}] doesn't exist in the model.`),e)},[])}),[])}}}},53034:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatableWidgets=t.RepeatableWidgetsLegacy=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(22443),u=e(91366);t.RepeatableWidgetsLegacy=n=>r.array((0,i.GroupItemLegacy)(n));let o=r.tuple([r.string,r.union([u.NestableContent,i.GroupContent])]),a=r.strict({__TYPE__:r.literal(i.GroupItemContentType),value:r.array(o)});t.RepeatableWidgets=r.array(a)},74951:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSharedSliceContent=t.sharedSliceContentWithDefaultValues=t.SharedSliceContent=t.SharedSliceLegacy=t.isSharedSliceContent=t.SharedSliceContentType=void 0;let r=e(22970),i=e(9554),u=e(87412),o=e(14632),a=(0,r.__importStar)(e(87830)),c=e(23284),f=e(23535),l=e(3845),p=e(58237),d=e(22443),s=e(91366),h=e(22583),m=e(53034),v=e(12238);t.SharedSliceContentType="SharedSliceContent",t.isSharedSliceContent=n=>(0,p.hasContentType)(n)&&n.__TYPE__===t.SharedSliceContentType;let g=a.exact(a.type({variation:a.string,items:(0,c.withFallback)(a.array(a.unknown),[]),primary:(0,c.withFallback)(a.UnknownRecord,{})}));t.SharedSliceLegacy=n=>new a.Type("SharedSliceLegacy",t.isSharedSliceContent,e=>(0,o.pipe)(g.decode(e),i.either.map(e=>{let r=(()=>{let t=(0,l.getFieldCtx)("items",n,["variations",e.variation]),r=(0,m.RepeatableWidgetsLegacy)(t).decode(e.items);if(!(!r||(0,u.isLeft)(r)))return r.right})()||[],i=Object.entries(e.primary).reduce((t,[r,i])=>{let o=(0,l.getFieldCtx)(r,n,["variations",e.variation,"primary"]),a=(0,v.SlicePrimaryLegacy)(o).decode(i);return!a||(0,u.isLeft)(a)?t:{...t,[r]:a.right}},{});return{variation:e.variation,primary:i,items:r,__TYPE__:t.SharedSliceContentType}})),t=>{let e=Object.entries(t.primary).reduce((e,[r,i])=>{let u=(0,l.getFieldCtx)(r,n,["variations",t.variation,"primary"]),o=(0,v.SlicePrimaryLegacy)(u).encode(i);return o?{content:{...e.content,[r]:o.content},types:{...e.types,...o.types}}:e},{content:{},types:{}}),r=(()=>{let e=(0,l.getFieldCtx)("items",n,["variations",t.variation]);return(0,m.RepeatableWidgetsLegacy)(e).encode(t.items)})()||[];return{content:{primary:e.content,items:r.map(n=>n.content),variation:t.variation},types:{[n.keyOfType]:"SharedSlice",...e.types,...r.reduce((n,t)=>({...n,...t.types}),{})}}}),t.SharedSliceContent=a.strict({__TYPE__:a.literal(t.SharedSliceContentType),variation:a.string,primary:a.record(a.string,v.SlicePrimaryContent),items:m.RepeatableWidgets}),t.sharedSliceContentWithDefaultValues=function(n,t){var e,r;let i=n.variations.find(n=>n.id===t.variation),u=null!==(e=null==i?void 0:i.primary)&&void 0!==e?e:{},o=null!==(r=null==i?void 0:i.items)&&void 0!==r?r:{},a=(0,h.withDefaultSlicePrimaryContentValues)(u,t.primary),c=(0,h.repeatableContentWithDefaultNestableContentValues)(o,t.items);return{...t,primary:a,items:c}},t.traverseSharedSliceContent=function({path:n,sliceKey:t,sliceName:e,model:r,content:i}){return(u,o)=>{let a=Object.entries(i.widget.primary).reduce((i,[o,a])=>{var c,l;let p=null===(l=null===(c=null==r?void 0:r.fields)||void 0===c?void 0:c.primary)||void 0===l?void 0:l[o],h=(0,d.isGroupContent)(a)?(0,d.traverseGroupContent)({path:n.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,content:a,model:(null==p?void 0:p.type)===f.GroupFieldType?p:void 0})(u):(0,s.isRepeatableContent)(a)?(0,s.traverseRepeatableContent)({path:n.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,content:a,model:(null==p?void 0:p.type)==="Link"?p:void 0})(u):(0,s.isTableContent)(a)?(0,s.traverseTableContent)({path:n.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,content:a,model:(null==p?void 0:p.type)==="Table"?p:void 0})(u):(0,s.isNestableContent)(a)?u({path:n.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,model:p,content:a}):void 0;return h?((0,v.isSlicePrimaryContent)(h)||console.warn(`Warn: Non nestable or group content with key [${o}] detected in a shared slice [${e}] with key [${t}]`),{...i,[o]:h}):i},{}),c=(0,d.traverseGroupItemsContent)({path:n.concat([{key:"items",type:"items"}]),model:null==r?void 0:r.fields.items,content:i.widget.items})(u);return o({key:t,apiId:e,path:n,model:r,content:{...i,widget:{__TYPE__:"SharedSliceContent",variation:i.widget.variation,primary:a,items:c}}})}}},27835:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSimpleSlice=t.traverseSimpleSliceContent=t.SimpleSliceLegacy=t.isSimpleSliceContent=t.SimpleSliceContent=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(22443),u=e(91366);t.SimpleSliceContent=r.union([u.NestableContent,i.GroupContent]),t.isSimpleSliceContent=n=>(0,u.isNestableContent)(n)||(0,i.isGroupContent)(n),t.SimpleSliceLegacy=n=>({decode:"Group"===n.fieldType?(0,i.GroupLegacy)(n).decode.bind(null):(0,u.NestableLegacy)(n).decode.bind(null),encode:t=>"GroupContentType"===t.__TYPE__?(0,i.GroupLegacy)(n).encode(t):(0,u.NestableLegacy)(n).encode(t)}),t.traverseSimpleSliceContent=function({path:n,sliceKey:t,sliceName:e,model:r,content:u}){return(o,a)=>{var c;if((0,i.isGroupContent)(u.widget)){let t=(0,i.traverseGroupContent)({path:n,key:u.key,apiId:u.name,model:(null==r?void 0:r.type)==="Group"?r:(null==r?void 0:r.type)==="SharedSlice"?{type:"Group",config:{fields:r.fields.items||{}}}:void 0,content:u.widget})(o);return t&&a({key:u.key,apiId:u.name,path:n,model:r,content:{...u,widget:t}})}let f=o({key:u.key,apiId:u.name,path:n,model:(null==r?void 0:r.type)==="SharedSlice"?null===(c=r.fields.primary)||void 0===c?void 0:c[u.name]:(null==r?void 0:r.type)!=="Group"?r:void 0,content:u.widget});return f&&a({key:t,apiId:e,path:n,model:r,content:{...u,widget:f}})}},t.migrateSimpleSlice=function(n,t){var e;let[,r]=t.key.split("$"),i=`${n.sliceName}$${r}`;return"GroupContentType"===t.widget.__TYPE__?{key:i,name:n.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:n.variationId,primary:{},items:t.widget.value.map(t=>({__TYPE__:"GroupItemContent",value:t.value.reduce((t,[e,r])=>{var i;return(null===(i=n.fields.items)||void 0===i?void 0:i[e])?t.concat([[e,r]]):t},[])}),[])}}:{key:i,name:n.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:n.variationId,primary:(null===(e=n.fields.primary)||void 0===e?void 0:e[t.name])?{[t.name]:t.widget}:{},items:[]}}}},12238:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryContent=t.SlicePrimaryLegacy=t.SlicePrimaryContent=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(23535),u=e(22443),o=e(91366);t.SlicePrimaryContent=r.union([o.NestableContent,u.GroupContent]),t.SlicePrimaryLegacy=n=>{let t=(0,u.GroupLegacy)(n),e=(0,o.NestableLegacy)(n);return{decode:r=>n.fieldType===i.GroupFieldType?t.decode(r):e.decode(r),encode:n=>(0,u.isGroupContent)(n)?t.encode(n):e.encode(n)}},t.isSlicePrimaryContent=n=>(0,o.isNestableContent)(n)||(0,u.isGroupContent)(n)},21925:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceContent=t.SliceLegacy=void 0;let r=e(22970),i=(0,r.__importStar)(e(87830)),u=e(53422),o=e(74951),a=e(27835);t.SliceLegacy=n=>({decode:t=>(()=>{switch(n.fieldType){case"Slice":return(0,u.CompositeSliceLegacy)(n);case"SharedSlice":return(0,o.SharedSliceLegacy)(n);default:return(0,a.SimpleSliceLegacy)(n)}})().decode(t),encode:t=>{switch(t.__TYPE__){case"SharedSliceContent":return(0,o.SharedSliceLegacy)(n).encode(t);case"CompositeSliceContent":return(0,u.CompositeSliceLegacy)(n).encode(t);default:return(0,a.SimpleSliceLegacy)(n).encode(t)}}}),t.SliceContent=i.union([u.CompositeSliceContent,o.SharedSliceContent,a.SimpleSliceContent]),(0,r.__exportStar)(e(53422),t),(0,r.__exportStar)(e(74951),t),(0,r.__exportStar)(e(27835),t),(0,r.__exportStar)(e(12238),t)},57495:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSliceItem=t.SlicesItemLegacy=t.sliceItemContentWithDefaultValues=t.isSimpleSliceItemContent=t.isCompositeSliceItemContent=t.isSharedSliceItemContent=t.SliceItemContent=void 0;let r=e(22970),i=e(9554),u=e(87412),o=e(14632),a=(0,r.__importStar)(e(87830)),c=e(35002),f=e(3845),l=e(22443),p=e(91366),d=e(22583),s=e(21925),h=e(53422),m=e(74951),v=e(27835);function g(n){return(0,h.isCompositeSliceContent)(n.widget)}function y(n){return(0,l.isGroupContent)(n.widget)||(0,p.isNestableContent)(n.widget)}t.SliceItemContent=a.type({key:a.string,name:a.string,maybeLabel:a.union([a.string,a.undefined]),widget:s.SliceContent}),t.isSharedSliceItemContent=function(n){return(0,m.isSharedSliceContent)(n.widget)},t.isCompositeSliceItemContent=g,t.isSimpleSliceItemContent=y,t.sliceItemContentWithDefaultValues=function(n,t){var e;if("SharedSlice"===n.type&&(0,m.isSharedSliceContent)(t))return(0,s.sharedSliceContentWithDefaultValues)(n,t);if("Slice"===n.type&&(0,h.isCompositeSliceContent)(t))return(0,s.compositeSliceContentWithDefaultValues)(n,t);if("Group"===n.type&&(0,l.isGroupContent)(t)&&(null===(e=n.config)||void 0===e?void 0:e.fields)){let e=(0,d.repeatableContentWithDefaultNestableContentValues)(n.config.fields,t.value);return{...t,value:e}}return t};let b=a.exact(a.intersection([a.type({key:a.string,value:a.unknown}),a.partial({label:(0,c.nullable)(a.string)})]));t.SlicesItemLegacy=n=>new a.Type("SlicesItemLegacy",n=>((0,m.isSharedSliceContent)(n.widget),(0,h.isCompositeSliceContent)(n.widget),(0,v.isSimpleSliceContent)(n.widget)),(t,e)=>(0,o.pipe)(b.decode(t),i.either.chain(r=>{var i;let o=r.key.indexOf("$"),c=r.key.substring(0,o>0?o:void 0),l=(0,f.getFieldCtx)(c,n),p=(0,s.SliceLegacy)(l).decode(r.value);return!p||(0,u.isLeft)(p)?a.failure(t,e):a.success({key:r.key,name:c,maybeLabel:null!==(i=r.label)&&void 0!==i?i:void 0,widget:p.right})})),t=>{let e=(0,f.getFieldCtx)(t.name,n),r=(0,s.SliceLegacy)(e).encode(t.widget);return{content:{key:t.key,label:t.maybeLabel,value:(null==r?void 0:r.content)||{}},types:(null==r?void 0:r.types)||{}}}),t.migrateSliceItem=({model:n,content:t})=>g(t)&&(null==n?void 0:n.type)==="SharedSlice"?(0,h.migrateCompositeSlice)(n,t):y(t)&&(null==n?void 0:n.type)==="SharedSlice"?(0,v.migrateSimpleSlice)(n,t):t},8059:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSlices=t.slicesContentWithDefaultValues=t.SlicesContent=t.SlicesLegacy=t.isSlicesContent=t.SlicesContentType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(32387),c=e(23535),f=e(58237),l=e(53422),p=e(74951),d=e(27835),s=e(57495);t.SlicesContentType="SliceContentType",t.isSlicesContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===t.SlicesContentType,t.SlicesLegacy=n=>{let e=o.array((0,s.SlicesItemLegacy)(n));return new o.Type("SlicesLegacy",t.isSlicesContent,n=>(0,u.pipe)(e.decode(n),i.either.map(n=>({__TYPE__:t.SlicesContentType,value:n}))),t=>{let r=e.encode(t.value);return{content:r.map(n=>n.content),types:r.reduce((n,t)=>({...n,...t.types}),{[n.keyOfType]:"Slices"})}})},t.SlicesContent=o.type({__TYPE__:o.literal(t.SlicesContentType),value:o.array(s.SliceItemContent)}),t.slicesContentWithDefaultValues=function(n,t){var e;let r=null===(e=null==n?void 0:n.config)||void 0===e?void 0:e.choices;if(void 0===r)return t;let i=t.value.map(n=>{let t=r[n.name];if(t){let e=(0,s.sliceItemContentWithDefaultValues)(t,n.widget);return{...n,widget:e}}return n});return{...t,value:i}},t.traverseSlices=function({path:n,key:t,model:e,content:r}){return({transformWidget:i=({content:n})=>n,transformSlice:u=({content:n})=>n})=>{let o=r.value.reduce((t,r)=>{let o=e&&function(n,t,e){var r,i;let u=null===(i=null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||void 0===i?void 0:i[e.name];return(()=>{if((0,s.isSharedSliceItemContent)(e)&&u&&(0,c.isStaticSharedSlice)(u)){let n=u.variations.find(n=>n.id===e.widget.variation);return n?{type:"SharedSlice",sliceName:u.id,variationId:n.id,fields:{primary:n.primary||{},items:n.items||{}}}:void 0}})()||(()=>{var r;let i=a.ContentPath.append(a.ContentPath.serialize(n),e.name),u=Object.values((null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||{}).find(n=>{var t;return!!(0,c.isStaticSharedSlice)(n)&&!!(null===(t=n.legacyPaths)||void 0===t?void 0:t[i])});if(!u)return;let o=null==u?void 0:u.variations.find(n=>{var t;return n.id===(null===(t=u.legacyPaths)||void 0===t?void 0:t[i])});if(o)return{type:"SharedSlice",sliceName:u.id,variationId:o.id,fields:{primary:o.primary||{},items:o.items||{}}}})()||(()=>{if(u){if((0,c.isCompositeSlice)(u))return{type:"Slice","non-repeat":u["non-repeat"]||{},repeat:u.repeat||{}};if((0,c.isLegacySlice)(u))return u}})()}(n,e,r),f=(0,s.isSharedSliceItemContent)(r)?(0,p.traverseSharedSliceContent)({path:n.concat({key:r.key,type:"SharedSlice"}),sliceKey:r.key,sliceName:r.name,model:(null==o?void 0:o.type)==="SharedSlice"?o:void 0,content:r})(i,u):(0,s.isCompositeSliceItemContent)(r)?(0,l.traverseCompositeSliceContent)({path:n.concat({key:r.key,type:"Slice"}),sliceKey:r.key,sliceName:r.name,model:(null==o?void 0:o.type)==="Slice"||(null==o?void 0:o.type)==="SharedSlice"?o:void 0,content:r})(i,u):(0,s.isSimpleSliceItemContent)(r)?(0,d.traverseSimpleSliceContent)({path:n.concat({key:r.key,type:"LegacySlice"}),sliceKey:r.key,sliceName:r.name,model:o&&(null==o?void 0:o.type)!=="Slice"?o:void 0,content:r})(i,u):void 0;return f?t.concat(f):t},[]);return i({path:n,key:t,apiId:t,model:e,content:{__TYPE__:r.__TYPE__,value:o}})}}},83592:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(21925),t),(0,r.__exportStar)(e(57495),t),(0,r.__exportStar)(e(8059),t)},22583:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.repeatableContentWithDefaultNestableContentValues=t.withDefaultNestableContentValues=t.withDefaultSlicePrimaryContentValues=void 0;let r=e(23535),i=e(22443),u=e(91366);t.withDefaultSlicePrimaryContentValues=function(n,t){for(let[e,o]of Object.entries(n)){let n=t[e];if(void 0===n){if(o.type===r.GroupFieldType)t[e]=(0,i.groupContentWithDefaultValues)(o,i.GroupContentDefaultValue);else{let n=(0,u.NestableContentDefaultValue)(o);n&&(t[e]=n)}continue}o.type===r.GroupFieldType&&(0,i.isGroupContent)(n)&&(t[e]=(0,i.groupContentWithDefaultValues)(o,n))}return t},t.withDefaultNestableContentValues=function(n,t){return Object.entries(n).reduce((n,[e,r])=>{if(void 0===t[e]){let t=(0,u.NestableContentDefaultValue)(r);return void 0!==t?{...n,[e]:t}:n}return n},t)},t.repeatableContentWithDefaultNestableContentValues=function(n,t){let e=Object.entries(n);return t.map(n=>e.reduce((t,[e,r])=>{var o;let a=n.value.find(([n])=>n===e);if("Group"===r.type){let n=(0,i.groupContentWithDefaultValues)(r,null!==(o=null==a?void 0:a[1])&&void 0!==o?o:{__TYPE__:i.GroupContentType,value:[]});return{...t,value:[...t.value.filter(([n])=>n!==e),...n?[[e,n]]:[]]}}if(!a){let n=(0,u.NestableContentDefaultValue)(r);return{...t,value:[...t.value,...n?[[e,n]]:[]]}}return t},n))}},74982:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(20168),t),(0,r.__exportStar)(e(33832),t),(0,r.__exportStar)(e(3845),t)},58237:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.withKey=t.hasContentType=t.hasFieldContentType=void 0;let r=e(22970),i=e(87412),u=(0,r.__importStar)(e(87830)),o=e(60130),a=e(33832);function c(n){return"object"==typeof n&&null!==n&&"__TYPE__"in n}t.hasFieldContentType=function(n){return c(n)&&n.__TYPE__===a.FieldContentType&&(null==n?void 0:n.type)!==void 0&&"string"==typeof n.type&&(0,i.isRight)(a.FieldType.decode(n.type))},t.hasContentType=c;let f=n=>"string"==typeof n&&(0,o.validate)(n),l=new u.Type("UUID",f,(n,t)=>void 0===n?u.success((0,o.v4)()):f(n)?u.success(n):u.failure(n,t),u.identity);t.withKey=function(n){return u.intersection([u.strict({key:l}),n])}},17896:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseCustomType=t.collectSharedSlices=t.flattenCustomTypeFields=t.filterMissingSharedSlices=t.collectWidgets=t.validateSlices=t.toStatic=t.flattenSections=t.flattenWidgets=t.CustomType=t.StaticCustomType=t.CustomTypeFormat=void 0;let r=e(22970),i=e(87412),u=(0,r.__importStar)(e(87830)),o=e(69624),a=e(8597),c=e(22453);t.CustomTypeFormat={page:"page",custom:"custom"};class f extends Error{constructor(n){super(),Object.defineProperty(this,"slices",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"message",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.slices=n,this.message=this._formatError(n)}_formatError(n){let t=n.map(n=>` - ${n}`);return`The following slices doesn't exists in your Prismic repository:
|
|
2
2
|
${t.join("\n")}
|
|
3
|
-
`}}function l(n){return u.exact(u.intersection([u.type({id:u.string,label:a.StringOrNull,repeatable:(0,o.withFallback)(u.boolean,!0),json:u.record(u.string,n),status:(0,o.withFallback)(u.boolean,!0)}),u.partial({format:(0,o.withFallback)(u.keyof(t.CustomTypeFormat),"custom")})]))}function p(n){return Object.entries(n.json).reduce((n,[,t])=>{let e=Object.entries(t);return n.concat(e)},[])}function d(n,t){let e=Object.entries(n.json).reduce((n,[e,r])=>{let i=Object.entries(r).reduce((n,[e,r])=>{let i=t(e,r);return i?{...n,[e]:i}:n},{});return{...n,[e]:i}},{});return{...n,json:e}}t.StaticCustomType=l(c.StaticSection),t.CustomType=l(c.DynamicSection),t.flattenWidgets=p,t.flattenSections=function(n){return Object.entries(n.json).reduce((n,[,t])=>{let e=Object.entries(t);return n.concat(e)},[])},t.toStatic=function(n,t){let e=Object.entries(n.json).reduce((n,[e,r])=>({...n,[e]:c.Sections.toStatic(r,t)}),{});return{...n,json:e}},t.validateSlices=function(n,t){let e=(function(n){let t=p(n).filter(([,n])=>"Slices"===n.type).reduce((n,[,t])=>{let e=Object.entries(t.config&&t.config.choices?t.config.choices:{}).filter(([,n])=>"SharedSlice"===n.type).map(([n])=>n);return n.concat(e)},[]);return function(n){return t.map(n)}})(n)(n=>{if(!t.get(n))return n}).filter(Boolean);return e.length>0?(0,i.left)(new f(e)):(0,i.right)(n)},t.collectWidgets=d,t.filterMissingSharedSlices=function(n,t){return d(n,(n,e)=>{if("Slices"===e.type){if(!e.config||!e.config.choices)return e;let n=Object.entries(e.config.choices).reduce((n,[e,r])=>"SharedSlice"!==r.type||t.get(e)?{...n,[e]:r}:n,{}),r={...e.config,choices:n};return{...e,config:r}}return e})},t.flattenCustomTypeFields=function(n){return Object.values(n.json).reduce((n,t)=>({...n,...t}),{})},t.collectSharedSlices=function(n){return Object.entries(n.fields).reduce((n,[,t])=>{var e;return"Slices"===t.type||"Choice"===t.type?{...n,...Object.entries((null===(e=t.config)||void 0===e?void 0:e.choices)||{}).reduce((n,[t,e])=>"SharedSlice"===e.type?{...n,[t]:e}:n,{})}:n},{})},t.traverseCustomType=function(n){let t;let{customType:e,onField:r}=n;for(let[n,i]of Object.entries(e.json)){let u=(0,c.traverseSection)({path:[n],section:i,onField:r});u!==i&&(t||(t={...e.json}),t[n]=u)}return t?{...e,json:t}:e}},22453:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSection=t.Sections=t.DynamicSection=t.StaticSection=t.sectionReader=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(31289),u=e(99814),o=e(53039);function a(n){return r.record(i.WidgetKey,n)}t.sectionReader=a,t.StaticSection=a(o.StaticWidget),t.DynamicSection=a(o.DynamicWidget),t.Sections={toStatic:(n,t)=>Object.entries(n).reduce((n,[e,r])=>({...n,[e]:o.Widgets.toStatic(r,t)}),{})},t.traverseSection=function(n){let t;let{path:e,section:r,onField:i}=n;for(let[n,o]of Object.entries(r)){let a;let c=[...e,n];switch(o.type){case"Choice":case"Slices":a=(0,u.traverseSlices)({path:c,slices:o,onField:i});break;case"Group":a=i({path:c,key:n,field:(0,u.traverseGroup)({path:c,group:o,onField:i})});break;default:a=i({path:c,key:n,field:o})}a!==o&&(t||(t={...r}),t[n]=a)}return null!=t?t:r}},5480:function(n,t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.DiffOperation=void 0,(e=t.DiffOperation||(t.DiffOperation={})).Added="added",e.Removed="removed",e.Updated="updated"},89408:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceComparator=void 0;let r=e(35566),i=e(5480),u=e(62961);t.SliceComparator={compare(n,t){if(!n&&t)return{op:i.DiffOperation.Added,value:t};if(n&&!t)return{op:i.DiffOperation.Removed};let e=Object.entries(r.Objects.zipObjects(n,t)).reduce((n,[t,e])=>"variations"===t||(null==e?void 0:e.left)===(null==e?void 0:e.right)?n:{...n,[t]:null==e?void 0:e.right},{}),o=Object.entries(r.Objects.zipObjects(n&&r.Arrays.toRecord(n.variations,n=>n.id),t&&r.Arrays.toRecord(t.variations,n=>n.id))).reduce((n,[t,e])=>{if(!e)return n;let r=u.VariationComparator.compare(e.left,e.right);return r?{...n,[t]:r}:n},{}),a={...e,...r.Objects.isNotEmpty(o)?{variations:o}:{}};if(r.Objects.isNotEmpty(a))return{op:i.DiffOperation.Updated,value:a}}}},62961:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.VariationComparator=void 0;let r=e(35566),i=e(10673),u=e(5480);function o(n,t){let e=Object.entries(r.Objects.zipObjects(n,t)).reduce((n,[t,e])=>{if(JSON.stringify(null==e?void 0:e.left)===JSON.stringify(null==e?void 0:e.right))return n;let r=(()=>{var n,t,r,a,c,f,l;if((null==e?void 0:e.left)||(null==e?void 0:e.right)){if((null==e?void 0:e.left)&&!e.right)return{op:u.DiffOperation.Removed};if(!(null==e?void 0:e.left)&&(null==e?void 0:e.right)){if((null===(n=e.right)||void 0===n?void 0:n.type)===i.GroupFieldType){let n={...e.right,config:{...e.right.config,fields:{}}};return n.config.fields=o(void 0,null===(t=e.right.config)||void 0===t?void 0:t.fields)||{},{op:u.DiffOperation.Added,value:n}}return{op:u.DiffOperation.Added,value:e.right}}if((null===(r=e.right)||void 0===r?void 0:r.type)===i.GroupFieldType){let n={...e.right,config:{...e.right.config,fields:{}}};return n.config.fields=o((null===(a=e.left)||void 0===a?void 0:a.type)===i.GroupFieldType?null===(f=null===(c=e.left)||void 0===c?void 0:c.config)||void 0===f?void 0:f.fields:void 0,null===(l=e.right.config)||void 0===l?void 0:l.fields)||{},{op:u.DiffOperation.Updated,value:n}}return{op:u.DiffOperation.Updated,value:e.right}}})();return r?{...n,[t]:r}:n},{});return r.Objects.isNotEmpty(e)?e:void 0}t.VariationComparator={compare(n,t){if(n&&!t)return{op:u.DiffOperation.Removed};if(!n&&t)return{op:u.DiffOperation.Added,value:t};let e=Object.entries(r.Objects.zipObjects(n,t)).reduce((n,[t,e])=>"primary"===t||"items"===t||(null==e?void 0:e.left)===(null==e?void 0:e.right)?n:{...n,[t]:null==e?void 0:e.right},{}),i=o(null==n?void 0:n.primary,null==t?void 0:t.primary),a=o(null==n?void 0:n.items,null==t?void 0:t.items),c={...e,...i?{primary:i}:{},...a?{items:a}:{}};if(r.Objects.isNotEmpty(c))return{op:u.DiffOperation.Updated,value:c}}}},83095:function(n,t){Object.defineProperty(t,"__esModule",{value:!0})},74702:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(5480),t),(0,r.__exportStar)(e(89408),t),(0,r.__exportStar)(e(62961),t),(0,r.__exportStar)(e(83095),t)},23535:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(17896),t),(0,r.__exportStar)(e(74702),t),(0,r.__exportStar)(e(22453),t),(0,r.__exportStar)(e(99814),t)},10673:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseGroup=t.traverseNestedGroup=t.Group=t.GroupConfig=t.NestedGroup=t.NestedGroupConfig=t.GroupFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(31289),u=e(8597),o=e(8435);t.GroupFieldType="Group";let a=n=>r.exact(r.partial({label:u.StringOrNull,repeat:r.boolean,fields:r.record(i.WidgetKey,n)})),c=n=>r.exact(r.intersection([r.type({type:r.literal(t.GroupFieldType)}),r.partial({fieldset:u.StringOrNull,icon:r.string,description:r.string,config:a(n)})]));function f(n){var t;let e;let{path:r,group:i,onField:u}=n;if(!(null===(t=i.config)||void 0===t?void 0:t.fields))return i;for(let[n,t]of Object.entries(i.config.fields)){let o=u({path:[...r,n],key:n,field:t});t!==o&&(e||(e={...i.config.fields}),e[n]=o)}return e?{...i,config:{...i.config,fields:e}}:i}t.NestedGroupConfig=a(o.NestableWidget),t.NestedGroup=c(o.NestableWidget),t.GroupConfig=a(r.union([o.NestableWidget,t.NestedGroup])),t.Group=c(r.union([o.NestableWidget,t.NestedGroup])),t.traverseNestedGroup=f,t.traverseGroup=function(n){var t;let e;let{path:r,group:i,onField:u}=n;if(!(null===(t=i.config)||void 0===t?void 0:t.fields))return i;for(let[n,t]of Object.entries(i.config.fields)){let o;let a=[...r,n];o="Group"===t.type?f({path:a,group:t,onField:u}):t;let c=u({path:a,key:n,field:o});o!==c&&(e||(e={...i.config.fields}),e[n]=c)}return e?{...i,config:{...i.config,fields:e}}:i}},63437:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UID=t.UIDConfig=t.UIDFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.UIDFieldType="UID",t.UIDConfig=r.exact(r.partial({label:i.StringOrNull,useAsTitle:r.boolean,placeholder:r.string})),t.UID=r.exact(r.intersection([r.type({type:r.literal(t.UIDFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.UIDConfig})]))},53039:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Widgets=t.FieldType=t.DynamicWidget=t.StaticWidget=t.widgetReader=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(10673),u=e(44613),o=e(8435),a=e(78110),c=e(63437);function f(n){return r.union([c.UID,o.NestableWidget,i.Group,n])}t.widgetReader=f,t.StaticWidget=f(a.StaticSlices),t.DynamicWidget=f(a.DynamicSlices),t.FieldType=r.keyof({[u.ColorFieldType]:null,[u.BooleanFieldType]:null,[u.NumberFieldType]:null,[u.EmbedFieldType]:null,[u.GeoPointFieldType]:null,[u.DateFieldType]:null,[u.RangeFieldType]:null,[u.RichTextFieldType]:null,[u.SelectFieldType]:null,[u.SeparatorFieldType]:null,[u.TableFieldType]:null,[u.TextFieldType]:null,[u.TimestampFieldType]:null,[u.LinkFieldType]:null,[u.ImageFieldType]:null,[u.IntegrationFieldType]:null,[c.UIDFieldType]:null,[i.GroupFieldType]:null,[a.SlicesFieldType]:null,[a.LegacySlicesFieldType]:null}),t.Widgets={toStatic(n,t){switch(n.type){case"Choice":case"Slices":return a.Slices.toStatic(n,t);default:return n}}}},99814:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(10673),t),(0,r.__exportStar)(e(44613),t),(0,r.__exportStar)(e(77666),t),(0,r.__exportStar)(e(30324),t),(0,r.__exportStar)(e(63437),t),(0,r.__exportStar)(e(53039),t)},66014:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanField=t.BooleanConfig=t.BooleanFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.BooleanFieldType="Boolean",t.BooleanConfig=r.exact(r.partial({label:i.StringOrNull,default_value:r.boolean,placeholder_true:r.string,placeholder_false:r.string})),t.BooleanField=r.exact(r.intersection([r.type({type:r.literal(t.BooleanFieldType)}),r.partial({config:t.BooleanConfig})]))},2330:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Color=t.ColorConfig=t.ColorFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.ColorFieldType="Color",t.ColorConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string})),t.Color=r.exact(r.intersection([r.type({type:r.literal(t.ColorFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.ColorConfig})]))},77352:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Date=t.DateConfig=t.DateFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.DateFieldType="Date",t.DateConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,default:r.string})),t.Date=r.exact(r.intersection([r.type({type:r.literal(t.DateFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.DateConfig})]))},53142:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Embed=t.EmbedConfig=t.EmbedFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.EmbedFieldType="Embed",t.EmbedConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,useAsTitle:r.boolean})),t.Embed=r.exact(r.intersection([r.type({type:r.literal(t.EmbedFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.EmbedConfig})]))},46068:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPoint=t.GeoPointConfig=t.GeoPointFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.GeoPointFieldType="GeoPoint",t.GeoPointConfig=r.exact(r.partial({label:i.StringOrNull})),t.GeoPoint=r.exact(r.intersection([r.type({type:r.literal(t.GeoPointFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.GeoPointConfig})]))},65694:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Image=t.ImageConfig=t.Thumbnail=t.ImageFieldType=void 0;let r=e(22970),i=(0,r.__importStar)(e(87830)),u=e(8597),o=(0,r.__importDefault)(e(71747));t.ImageFieldType="Image",t.Thumbnail=i.exact(i.intersection([i.type({name:i.string}),o.default])),t.ImageConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,constraint:o.default,thumbnails:i.readonlyArray(t.Thumbnail)})),t.Image=i.exact(i.intersection([i.type({type:i.literal(t.ImageFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.ImageConfig})]))},60337:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationField=t.IntegrationFieldConfig=t.IntegrationFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.IntegrationFieldType="IntegrationFields",t.IntegrationFieldConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,catalog:r.string})),t.IntegrationField=r.exact(r.intersection([r.type({type:r.literal(t.IntegrationFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.IntegrationFieldConfig})]))},64907:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Link=t.LinkConfig=t.LinkFieldType=t.CustomTypes=void 0;let r=e(22970),i=e(87412),u=(0,r.__importStar)(e(87830)),o=e(69624),a=e(8597),c=n=>{if(n instanceof Array&&n.reduce((n,t)=>n&&"string"==typeof t,!0))return u.success(n)},f=n=>{if("string"==typeof n)return u.success([n])},l=new u.Type("MasksArrayString",n=>n instanceof Array,(n,t)=>i.either.chain(u.union([u.array(u.string),u.string]).validate(n,t),e=>c(e)||f(e)||u.failure(n,t)),n=>n),p=new u.Type("CustomTypeLevel2FieldGroupFields",n=>Array.isArray(n)&&n.every(n=>"string"==typeof n),(n,t)=>i.either.chain(u.array(u.string).validate(n,t),e=>new Set(e).size===e.length?u.success(e):u.failure(n,t,"Fields have duplicates.")),n=>n),d=u.union([u.strict({id:u.string,fields:p}),u.string]),s=new u.Type("CustomTypeLevel2Fields",n=>Array.isArray(n)&&n.every(n=>d.is(n)),(n,t)=>i.either.chain(u.array(d).validate(n,t),e=>new Set(e.map(n=>"string"==typeof n?n:n.id)).size===e.length?u.success(e):u.failure(n,t,"Fields have duplicates.")),n=>n),h=u.union([u.string,u.strict({id:u.string,fields:s})]),m=new u.Type("CustomTypesLevel2",n=>Array.isArray(n)&&n.every(n=>h.is(n)),(n,t)=>i.either.chain(u.array(h).validate(n,t),e=>new Set(e.map(n=>"string"==typeof n?n:n.id)).size===e.length?u.success(e):u.failure(n,t,"Custom types have duplicates.")),n=>n),v=u.strict({id:u.string,customtypes:m}),g=u.union([v,u.string]),y=new u.Type("CustomTypeLevel1FieldGroupFields",n=>Array.isArray(n)&&n.every(n=>g.is(n)),(n,t)=>i.either.chain(u.array(g).validate(n,t),e=>new Set(e.map(n=>"string"==typeof n?n:n.id)).size===e.length?u.success(e):u.failure(n,t,"Fields have duplicates.")),n=>n),b=u.union([u.strict({id:u.string,fields:y}),v,u.string]),_=new u.Type("CustomTypeLevel1Fields",n=>Array.isArray(n)&&n.every(n=>b.is(n)),(n,t)=>i.either.chain(u.array(b).validate(n,t),e=>new Set(e.map(n=>"string"==typeof n?n:n.id)).size===e.length?u.success(e):u.failure(n,t,"Fields have duplicates.")),n=>n),I=u.union([u.string,u.strict({id:u.string,fields:_})]);t.CustomTypes=new u.Type("CustomTypes",n=>Array.isArray(n)&&n.every(n=>I.is(n)),(n,t)=>i.either.chain(u.array(I).validate(n,t),e=>{let r=new Set,i=new Set;for(let o of e){let e=!1;if("string"==typeof o)e=i.has(o),r.add(o);else{let{id:n}=o;e=r.has(n)||i.has(n),i.add(n)}if(e)return u.failure(n,t,"Custom types have duplicates.")}return u.success(e)}),n=>n),t.LinkFieldType="Link",t.LinkConfig=u.exact(u.partial({label:a.StringOrNull,useAsTitle:u.boolean,placeholder:u.string,select:(0,o.withFallback)(u.union([u.literal("media"),u.literal("document"),u.literal("web"),u.null]),null),customtypes:t.CustomTypes,masks:l,tags:l,allowTargetBlank:u.boolean,allowText:u.boolean,repeat:u.boolean,variants:u.array(u.string)})),t.Link=u.exact(u.intersection([u.type({type:u.literal(t.LinkFieldType)}),u.partial({fieldset:a.StringOrNull,config:t.LinkConfig})]))},8435:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidget=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(66014),u=e(2330),o=e(77352),a=e(53142),c=e(46068),f=e(65694),l=e(60337),p=e(64907),d=e(16879),s=e(61490),h=e(48483),m=e(44284),v=e(29881),g=e(31324),y=e(36732),b=e(48903);t.NestableWidget=r.union([u.Color,i.BooleanField,a.Embed,c.GeoPoint,o.Date,d.Number,s.Range,h.RichText,m.Select,v.Separator,g.Table,y.Text,b.Timestamp,p.Link,f.Image,l.IntegrationField])},16879:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Number=t.NumberConfig=t.NumberFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(59054),u=e(8597);t.NumberFieldType="Number",t.NumberConfig=r.exact(r.partial({label:u.StringOrNull,placeholder:r.string,min:r.union([r.number,i.NumberFromString]),max:r.union([r.number,i.NumberFromString]),step:r.union([r.number,i.NumberFromString])})),t.Number=r.exact(r.intersection([r.type({type:r.literal(t.NumberFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.NumberConfig})]))},61490:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Range=t.RangeConfig=t.RangeFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(59054),u=e(8597);t.RangeFieldType="Range",t.RangeConfig=r.exact(r.partial({label:u.StringOrNull,placeholder:r.string,min:r.union([r.number,i.NumberFromString]),max:r.union([r.number,i.NumberFromString]),step:r.union([r.number,i.NumberFromString])})),t.Range=r.exact(r.intersection([r.type({type:r.literal(t.RangeFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.RangeConfig})]))},48483:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RichText=t.RichTextConfig=t.RichTextNodeTypeCodec=t.RichTextNodeType=t.DEFAULT_OPTION=t.RichTextFieldType=void 0;let r=e(22970),i=e(9554),u=e(87412),o=e(14632),a=(0,r.__importStar)(e(87830)),c=e(8597),f=(0,r.__importDefault)(e(71747));t.RichTextFieldType="StructuredText",t.DEFAULT_OPTION="paragraph",t.RichTextNodeType={heading1:"heading1",heading2:"heading2",heading3:"heading3",heading4:"heading4",heading5:"heading5",heading6:"heading6",paragraph:"paragraph",strong:"strong",em:"em",preformatted:"preformatted",hyperlink:"hyperlink",image:"image",embed:"embed",list:"list-item",orderedList:"o-list-item",rtl:"rtl"},t.RichTextNodeTypeCodec=a.keyof({[t.RichTextNodeType.heading1]:null,[t.RichTextNodeType.heading2]:null,[t.RichTextNodeType.heading3]:null,[t.RichTextNodeType.heading4]:null,[t.RichTextNodeType.heading5]:null,[t.RichTextNodeType.heading6]:null,[t.RichTextNodeType.paragraph]:null,[t.RichTextNodeType.strong]:null,[t.RichTextNodeType.em]:null,[t.RichTextNodeType.preformatted]:null,[t.RichTextNodeType.hyperlink]:null,[t.RichTextNodeType.image]:null,[t.RichTextNodeType.embed]:null,[t.RichTextNodeType.list]:null,[t.RichTextNodeType.orderedList]:null,[t.RichTextNodeType.rtl]:null});let l=new a.Type("RichTextOptions",n=>"string"==typeof n,n=>(0,o.pipe)(a.union([a.string,a.null]).decode(n),i.either.map(n=>{if(!n)return t.DEFAULT_OPTION;let e=n.split(",").map(n=>n.trim()).filter(n=>(0,u.getOrElseW)(()=>void 0)(t.RichTextNodeTypeCodec.decode(n)));return e.length?e.join(","):t.DEFAULT_OPTION})),n=>n),p=n=>{if(!n)return a.success([])},d=n=>{if(n instanceof Object){if(!Object.entries(n).length)return a.success([]);if(n[""])return a.success(n[""].map(n=>n.name));let t=Object.entries(n).reduce((n,[,t])=>n.concat(t.map(n=>n.name)),[]).filter(Boolean);return a.success(t)}},s=n=>{if(n instanceof Array&&n.reduce((n,t)=>n&&"string"==typeof t,!0))return a.success(n)},h=n=>{if("string"==typeof n)return a.success([n])},m=new a.Type("RichTextLabels",n=>n instanceof Array,(n,t)=>{let e=a.record(a.string,a.readonlyArray(a.record(a.literal("name"),a.string))),r=a.readonlyArray(a.string);return(0,o.pipe)(a.union([e,r,a.string,a.null]).decode(n),i.either.chain(e=>p(e)||s(e)||d(e)||h(e)||a.failure(n,t)))},n=>n);t.RichTextConfig=a.exact(a.partial({label:c.StringOrNull,placeholder:a.string,useAsTitle:a.boolean,single:l,multi:l,imageConstraint:f.default,labels:m,allowTargetBlank:a.boolean})),t.RichText=a.exact(a.intersection([a.type({type:a.literal(t.RichTextFieldType)}),a.partial({fieldset:c.StringOrNull,config:t.RichTextConfig})]))},44284:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Select=t.SelectConfig=t.SelectFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.SelectFieldType="Select",t.SelectConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,default_value:r.string,options:r.readonlyArray(r.union([r.string,i.StringFromNumber,i.StringFromBoolean]))})),t.Select=r.exact(r.intersection([r.type({type:r.literal(t.SelectFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.SelectConfig})]))},29881:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Separator=t.SeparatorConfig=t.SeparatorFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.SeparatorFieldType="Separator",t.SeparatorConfig=r.exact(r.partial({label:i.StringOrNull})),t.Separator=r.exact(r.intersection([r.type({type:r.literal(t.SeparatorFieldType)}),r.partial({config:t.SeparatorConfig})]))},31324:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TableCell=t.Table=t.TableFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597),u=e(48483);t.TableFieldType="Table";let o=r.exact(r.partial({label:i.StringOrNull}));t.Table=r.exact(r.intersection([r.type({type:r.literal(t.TableFieldType)}),r.partial({config:o})])),t.TableCell={type:"StructuredText",config:{multi:[u.RichTextNodeType.paragraph,u.RichTextNodeType.strong,u.RichTextNodeType.em,u.RichTextNodeType.hyperlink].join(",")}}},36732:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextConfig=t.TextFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.TextFieldType="Text",t.TextConfig=r.exact(r.partial({label:i.StringOrNull,useAsTitle:r.boolean,placeholder:r.string})),t.Text=r.exact(r.intersection([r.type({type:r.literal(t.TextFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.TextConfig})]))},48903:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.TimestampConfig=t.TimestampFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.TimestampFieldType="Timestamp",t.TimestampConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,default:r.string})),t.Timestamp=r.exact(r.intersection([r.type({type:r.literal(t.TimestampFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.TimestampConfig})]))},44613:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(66014),t),(0,r.__exportStar)(e(2330),t),(0,r.__exportStar)(e(77352),t),(0,r.__exportStar)(e(53142),t),(0,r.__exportStar)(e(46068),t),(0,r.__exportStar)(e(65694),t),(0,r.__exportStar)(e(60337),t),(0,r.__exportStar)(e(64907),t),(0,r.__exportStar)(e(8435),t),(0,r.__exportStar)(e(16879),t),(0,r.__exportStar)(e(61490),t),(0,r.__exportStar)(e(48483),t),(0,r.__exportStar)(e(44284),t),(0,r.__exportStar)(e(29881),t),(0,r.__exportStar)(e(31324),t),(0,r.__exportStar)(e(36732),t),(0,r.__exportStar)(e(48903),t)},71747:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(87412),u=(0,r.__importStar)(e(87830)),o=e(11621),a=e(8597),c=new u.Type("SideConstraints",n=>!n||"number"==typeof n,(n,t)=>i.either.chain(u.union([u.literal("auto"),u.literal(""),u.Int,o.IntFromString,a.IntFromNumber,a.IntFromPixels,u.null]).validate(n,t),n=>"auto"===n||""===n?u.success(null):u.success(n)),n=>n),f=u.partial({width:c,height:c});t.default=f},77666:function(n,t,e){var r=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConstraint=void 0;var i=e(71747);Object.defineProperty(t,"ImageConstraint",{enumerable:!0,get:function(){return r(i).default}})},26417:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseCompositeSlice=t.isCompositeSlice=t.CompositeSlice=t.CompositeSliceConfig=t.CompositeSliceType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(31289),u=e(8597),o=e(8435);t.CompositeSliceType="Slice",t.CompositeSliceConfig=r.exact(r.partial({label:u.StringOrNull})),t.CompositeSlice=r.exact(r.intersection([r.type({type:r.literal(t.CompositeSliceType)}),r.partial({fieldset:u.StringOrNull,description:r.string,icon:r.string,display:r.string,"non-repeat":r.record(i.WidgetKey,o.NestableWidget),repeat:r.record(i.WidgetKey,o.NestableWidget),config:t.CompositeSliceConfig})])),t.isCompositeSlice=function(n){return"Slice"===n.type},t.traverseCompositeSlice=function(n){var t,e;let r,i;let{path:u,slice:o,onField:a}=n;for(let[n,e]of Object.entries(null!==(t=o["non-repeat"])&&void 0!==t?t:{})){let t=a({path:[...u,"non-repeat",n],key:n,field:e});e!==t&&(r||(r={...o["non-repeat"]}),r[n]=t)}for(let[n,t]of Object.entries(null!==(e=o.repeat)&&void 0!==e?e:{})){let e=a({path:[...u,"repeat",n],key:n,field:t});t!==e&&(i||(i={...o.repeat}),i[n]=e)}return i||r?{...o,...r&&{"non-repeat":r},...i&&{repeat:i}}:o}},97442:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isLegacySlice=t.LegacySlice=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(10673),u=e(8435);t.LegacySlice=r.union([u.NestableWidget,i.NestedGroup]),t.isLegacySlice=function(n){return"Slice"!==n.type&&"SharedSlice"!==n.type}},32233:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSharedSlice=t.traverseVariation=t.isDynamicSharedSlice=t.isStaticSharedSlice=t.SharedSlice=t.SharedSliceType=t.Variation=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(69624),u=e(31289),o=e(10673),a=e(8435),c=e(19288);t.Variation=r.exact(r.intersection([r.type({id:r.string,name:r.string,description:r.string,imageUrl:(0,i.withFallback)(r.string,"https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format"),docURL:r.string,version:r.string}),r.partial({display:r.string,primary:r.record(u.WidgetKey,c.SlicePrimaryWidget),items:r.record(u.WidgetKey,a.NestableWidget)})])),t.SharedSliceType="SharedSlice";let f=r.string,l=r.string;function p(n){var t,e;let r,i;let{path:u,variation:a,onField:c}=n;for(let[n,e]of Object.entries(null!==(t=a.primary)&&void 0!==t?t:{})){let t;let i=[...u,"primary",n];t="Group"===e.type?(0,o.traverseGroup)({path:i,group:e,onField:c}):e;let f=c({path:i,key:n,field:t});t!==f&&(r||(r={...a.primary}),r[n]=f)}for(let[n,t]of Object.entries(null!==(e=a.items)&&void 0!==e?e:{})){let e=c({path:[...u,"items",n],key:n,field:t});t!==e&&(i||(i={...a.items}),i[n]=e)}return r||i?{...a,...r&&{primary:r},...i&&{items:i}}:a}t.SharedSlice=r.exact(r.intersection([r.type({id:r.string,type:r.literal(t.SharedSliceType),name:r.string,variations:r.readonlyArray(t.Variation)}),r.partial({description:r.string,legacyPaths:r.record(f,l)})])),t.isStaticSharedSlice=function(n){return"SharedSlice"===n.type},t.isDynamicSharedSlice=function(n){return"SharedSlice"===n.type},t.traverseVariation=p,t.traverseSharedSlice=function(n){let t;let{path:e,slice:r,onField:i}=n;for(let n=0;n<r.variations.length;n++){let u=r.variations[n];if(!u)continue;let o=p({path:[...e,u.id],variation:u,onField:i});o!==u&&(t||(t=[...r.variations]),t[n]=o)}return t?{...r,variations:t}:r}},73194:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceRef=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(32233);t.SharedSliceRef=r.exact(r.type({type:r.literal(i.SharedSliceType)}))},42738:function(n,t){Object.defineProperty(t,"__esModule",{value:!0})},19288:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryWidget=t.SlicePrimaryWidget=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(10673),u=e(44613);t.SlicePrimaryWidget=r.union([u.NestableWidget,i.Group]),t.isSlicePrimaryWidget=n=>u.NestableWidget.is(n)||i.Group.is(n)},78110:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSlices=t.Slices=t.DynamicSlices=t.StaticSlices=t.slicesReader=t.DynamicSlicesConfig=t.StaticSlicesConfig=t.slicesConfigReader=t.SlicesLabels=t.SlicesFieldType=t.LegacySlicesFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(31289),u=e(8597),o=e(10673),a=e(26417),c=e(97442),f=e(32233),l=e(73194);function p(n){return r.exact(r.partial({label:u.StringOrNull,labels:t.SlicesLabels,choices:r.record(i.WidgetKey,r.union([c.LegacySlice,a.CompositeSlice,n]))}))}t.LegacySlicesFieldType="Choice",t.SlicesFieldType="Slices",t.SlicesLabels=r.union([r.record(r.string,r.readonlyArray(r.exact(r.intersection([r.type({name:r.string}),r.partial({display:r.string})])))),r.null]),t.slicesConfigReader=p,t.StaticSlicesConfig=p(f.SharedSlice),t.DynamicSlicesConfig=p(l.SharedSliceRef);let d={toStatic(n,t){let e=Object.entries(n.choices||{}).reduce((n,[e,r])=>{if("SharedSlice"!==r.type)return{...n,[e]:r};{let r=t.get(e);return r?{...n,[e]:r}:n}},{});return{...n,choices:e}}};function s(n){return r.exact(r.intersection([r.type({type:r.keyof({[t.SlicesFieldType]:null,[t.LegacySlicesFieldType]:null})}),r.partial({fieldset:u.StringOrNull,config:n})]))}t.slicesReader=s,t.StaticSlices=s(t.StaticSlicesConfig),t.DynamicSlices=s(t.DynamicSlicesConfig),t.Slices={toStatic:(n,t)=>n.config?{...n,config:d.toStatic(n.config,t)}:n},t.traverseSlices=function(n){var t;let e;let{path:r,slices:i,onField:u}=n;if(!(null===(t=i.config)||void 0===t?void 0:t.choices))return i;for(let[n,t]of Object.entries(i.config.choices)){let c;let l=[...r,n];switch(t.type){case"Slice":c=(0,a.traverseCompositeSlice)({path:l,slice:t,onField:u});break;case"SharedSlice":c="variations"in t?(0,f.traverseSharedSlice)({path:l,slice:t,onField:u}):t;break;case"Group":c=u({path:l,key:n,field:(0,o.traverseNestedGroup)({path:l,group:t,onField:u})});break;default:c=u({path:l,key:n,field:t})}c!==t&&(e||(e={...i.config.choices}),e[n]=c)}return e?{...i,config:{...i.config,choices:e}}:i}},51945:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesTypes=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(26417),u=e(32233);t.SlicesTypes=r.keyof({[i.CompositeSliceType]:null,[u.SharedSliceType]:null})},30324:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(26417),t),(0,r.__exportStar)(e(97442),t),(0,r.__exportStar)(e(32233),t),(0,r.__exportStar)(e(73194),t),(0,r.__exportStar)(e(42738),t),(0,r.__exportStar)(e(19288),t),(0,r.__exportStar)(e(78110),t),(0,r.__exportStar)(e(51945),t)},18949:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toRecord=void 0,t.toRecord=function(n,t){return n.reduce((n,e)=>{let r=t(e);return{...n,[r]:e}},{})}},17160:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.mapValues=t.isObject=t.withOptionals=t.isNotEmpty=t.zipObjects=void 0;let r=e(22970),i=e(87412),u=(0,r.__importStar)(e(87830));t.zipObjects=function(n,t){return[...new Set(Object.keys(n||{}).concat(Object.keys(t||{})))].reduce((e,r)=>{let i=null==n?void 0:n[r],u=null==t?void 0:t[r];return{...e,[r]:{left:i,right:u}}},{})},t.isNotEmpty=function(n){return!!Object.keys(n).length},t.withOptionals=function(n,t){return{...n,...t.reduce((n,[t,e])=>e?{...n,[t]:e}:n,{})}};let o=u.record(u.string,u.unknown);t.isObject=function(n){return(0,i.isRight)(o.decode(n))},t.mapValues=function(n,t){return Object.entries(n).reduce((n,[e,r])=>({...n,[e]:t(r,e)}),{})}},35566:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Objects=t.Arrays=t.HexaColorCode=void 0;let r=e(22970);t.HexaColorCode=(0,r.__importStar)(e(55962)),t.Arrays=(0,r.__importStar)(e(18949)),t.Objects=(0,r.__importStar)(e(17160))},19841:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArray=t.EmptyObject=t.Boolean=t.NumberOrNull=t.Number=t.StringOrNull=t.String=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(35002);t.String=(0,a.withCustomError)(o.string,()=>"The value must be a string"),t.StringOrNull=(0,a.withCustomError)(o.union([o.string,o.null]),()=>"The value must be a string or null"),t.Number=(0,a.withCustomError)(o.number,()=>"The value must be a number"),t.NumberOrNull=(0,a.withCustomError)(o.union([o.number,o.null]),()=>"The value must be a number or null"),t.Boolean=(0,a.withCustomError)(o.boolean,()=>"The value must be a boolean"),t.EmptyObject=o.UnknownRecord.pipe(new o.Type("emptyObject",n=>o.UnknownRecord.is(n),(n,t)=>Object.keys(n).length>0?o.failure(n,t,"The object is not empty."):o.success({}),o.identity)),t.EmptyArray=new o.Type("emptyArray",n=>o.UnknownArray.is(n)&&0===n.length,(n,t)=>(0,u.pipe)(o.UnknownArray.decode(n),i.either.chain(e=>e.length>0?o.failure(n,t,"The array is not empty."):o.success([]))),()=>[])},89394:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830)),a=e(8597);t.default=new o.Type("dateFromString",n=>n instanceof Date,(n,t)=>(0,u.pipe)(a.String.validate(n,t),(0,i.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(n,t):o.success(r)})),n=>n.toISOString())},23954:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("dateFromStringOrNumber",n=>n instanceof Date,(n,t)=>(0,u.pipe)(o.union([o.number,o.string]).validate(n,t),(0,i.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(n,t):o.success(r)})),n=>n)},72113:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("dateFromTsMs",n=>n instanceof Date,(n,t)=>(0,u.pipe)(o.number.validate(n,t),(0,i.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(n,t):o.success(r)})),n=>n.getTime())},35541:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArrayOrElse=t.EmptyObjectOrElse=t.NullOrElse=t.DefaultOrElse=void 0;let r=e(22970),i=e(87412),u=(0,r.__importStar)(e(87830)),o=e(19841);t.DefaultOrElse=n=>t=>new u.Type(`DefaultOrElse<${n.name}, ${t.name}>`,n=>null===n||t.is(n),(e,r)=>(0,i.isRight)(n.validate(e,r))?u.success(null):t.validate(e,r),n=>n?t.encode(n):void 0),t.NullOrElse=n=>(0,t.DefaultOrElse)(u.null)(n),t.EmptyObjectOrElse=n=>(0,t.DefaultOrElse)(o.EmptyObject)(n),t.EmptyArrayOrElse=n=>(0,t.DefaultOrElse)(o.EmptyArray)(n)},62990:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("IntFromNumber",o.Int.is,(n,t)=>(0,u.pipe)(o.number.validate(n,t),(0,i.chain)(n=>o.Int.is(n)?o.success(n):o.success(Math.round(n)))),o.Int.encode)},64678:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830)),a=/^([0-9]+)px$/;t.default=new o.Type("IntFromPixels",o.Int.is,(n,t)=>(0,u.pipe)(o.string.validate(n,t),(0,i.chain)(e=>{try{let r=e.match(a);if(!r)return o.failure(n,t);let i=parseInt(r[1]);return o.success(i)}catch{return o.failure(n,t)}})),String)},19528:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(87830)),i=e(35002);t.default=(0,i.withCustomError)((0,i.refineType)(r.string,"nonEmptyString",n=>n.trim().length>0),()=>"The value must be a non-empty string")},89448:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=e(87830),a=(0,r.__importDefault)(e(89793));t.default=new o.Type("nonEmptyStringOrNull",n=>"string"==typeof n||null===n,(n,t)=>(0,u.pipe)(a.default.validate(n,t),(0,i.chain)(n=>"string"==typeof n&&n.length>0?(0,o.success)(n):(0,o.success)(null))),n=>n)},33805:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(87830)),i=e(35002);t.default=(0,i.nullable)(r.number)},13670:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(87830)),i=e(19841);t.default=(n,t,e)=>i.Number.pipe(new r.Type("numberInRange",n=>i.Number.is(n),(i,u)=>i>t||i<n?r.failure(i,u,`${e} must be a number between ${n} and ${t}`):r.success(i),r.identity))},32047:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("StringFromInt",o.string.is,(n,t)=>(0,u.pipe)(o.boolean.validate(n,t),(0,i.chain)(n=>o.success(n.toString()))),n=>n)},80990:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("StringFromInt",o.string.is,(n,t)=>(0,u.pipe)(o.number.validate(n,t),(0,i.chain)(n=>o.success(n.toString()))),n=>n)},89793:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(87830)),i=e(35002);t.default=(0,i.nullable)(r.string)},38729:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("TrimmedString",o.string.is,(n,t)=>(0,u.pipe)(o.string.validate(n,t),(0,i.chain)(n=>o.success(function(n){let t=0;for(;t<n.length&&n[t]<=" ";)t++;let e=n.length;for(;t<e&&n[e-1]<=" ";)e--;return n.substring(t,e)}(n)))),n=>n)},35002:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.withCustomError=t.addType=t.isEmpty=t.objectToMap=t.grouped=t.formatDate=t.formatDateTime=t.filterDouble=t.refineType=t.nullable=void 0;let r=e(22970),i=e(9554),u=e(42275),o=(0,r.__importStar)(e(87830)),a=e(23284),c=e(47361);t.nullable=function(n){return o.union([n,o.null,o.undefined])},t.refineType=function(n,t,e){return new o.Type(t,n.is,(t,r)=>(0,u.pipe)(n.validate(t,r),i.either.chain(n=>e(n)?o.success(n):o.failure(t,r))),n.encode)},t.filterDouble=function(n){if(""===n)return null;let t=Number(n);return Number.isNaN(t)?null:t},t.formatDateTime=function(n){return n.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(n){return n.toISOString().replace(/T.*/,"")},t.grouped=function(n,t){return n.reduce((n,e,r)=>(r%t==0?n.push([e]):n[Math.floor(r/t)].push(e),n),[])},t.objectToMap=function(n){return new Map(Object.entries(n))},t.isEmpty=function(n){for(let t in n)return!1;return!0},t.addType=function(n,t){return(0,c.mapOutput)(n,n=>({...n,__TYPE__:t}))},t.withCustomError=function(n,t){return(0,a.withValidate)(n,(e,r)=>i.either.mapLeft(n=>n.find(n=>n.message)?n:[{value:e,context:r,message:t(e,r),actual:e}])(n.validate(e,r)))}},8597:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.StringOrNull=t.StringFromNumber=t.StringFromBoolean=t.NumberRange=t.NumberOrNull=t.NonEmptyStringOrNull=t.NonEmptyString=t.IntFromPixels=t.IntFromNumber=t.Function=t.DateFromTsMs=t.DateFromStringOrNumber=t.DateFromString=void 0;let r=e(22970);(0,r.__exportStar)(e(19841),t);var i=e(89394);Object.defineProperty(t,"DateFromString",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var u=e(23954);Object.defineProperty(t,"DateFromStringOrNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}});var o=e(72113);Object.defineProperty(t,"DateFromTsMs",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}}),(0,r.__exportStar)(e(35541),t),t.Function=(0,r.__importStar)(e(35002));var a=e(62990);Object.defineProperty(t,"IntFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var c=e(64678);Object.defineProperty(t,"IntFromPixels",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var f=e(19528);Object.defineProperty(t,"NonEmptyString",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var l=e(89448);Object.defineProperty(t,"NonEmptyStringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var p=e(33805);Object.defineProperty(t,"NumberOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(p).default}});var d=e(13670);Object.defineProperty(t,"NumberRange",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}});var s=e(32047);Object.defineProperty(t,"StringFromBoolean",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var h=e(80990);Object.defineProperty(t,"StringFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(h).default}});var m=e(89793);Object.defineProperty(t,"StringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(m).default}})},46111:function(n,t,e){e.r(t),e.d(t,{getApplicativeComposition:function(){return a},getApplicativeMonoid:function(){return o}});var r=e(42925),i=e(42275),u=e(67560);function o(n){var t=(0,r.getApplySemigroup)(n);return function(e){return{concat:t(e).concat,empty:n.of(e.empty)}}}function a(n,t){var e=(0,u.getFunctorComposition)(n,t).map,o=(0,r.ap)(n,t);return{map:e,of:function(e){return n.of(t.of(e))},ap:function(n,t){return(0,i.pipe)(n,o(t))}}}},42925:function(n,t,e){e.r(t),e.d(t,{ap:function(){return u},apFirst:function(){return o},apS:function(){return c},apSecond:function(){return a},getApplySemigroup:function(){return f},sequenceS:function(){return s},sequenceT:function(){return d}});var r=e(42275),i=e(97963);function u(n,t){return function(e){return function(r){return n.ap(n.map(r,function(n){return function(e){return t.ap(n,e)}}),e)}}}function o(n){return function(t){return function(e){return n.ap(n.map(e,function(n){return function(){return n}}),t)}}}function a(n){return function(t){return function(e){return n.ap(n.map(e,function(){return function(n){return n}}),t)}}}function c(n){return function(t,e){return function(r){return n.ap(n.map(r,function(n){return function(e){var r;return Object.assign({},n,((r={})[t]=e,r))}}),e)}}}function f(n){return function(t){return{concat:function(e,r){return n.ap(n.map(e,function(n){return function(e){return t.concat(n,e)}}),r)}}}}function l(n,t,e){return function(r){for(var i=Array(e.length+1),u=0;u<e.length;u++)i[u]=e[u];return i[e.length]=r,0===t?n.apply(null,i):l(n,t-1,i)}}var p={1:function(n){return[n]},2:function(n){return function(t){return[n,t]}},3:function(n){return function(t){return function(e){return[n,t,e]}}},4:function(n){return function(t){return function(e){return function(r){return[n,t,e,r]}}}},5:function(n){return function(t){return function(e){return function(r){return function(i){return[n,t,e,r,i]}}}}}};function d(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var u=t.length,o=(i.e$.call(p,u)||(p[u]=l(r.tuple,u-1,[])),p[u]),a=n.map(t[0],o),c=1;c<u;c++)a=n.ap(a,t[c]);return a}}function s(n){return function(t){for(var e=Object.keys(t),r=e.length,i=function(n){var t=n.length;switch(t){case 1:return function(t){var e;return(e={})[n[0]]=t,e};case 2:return function(t){return function(e){var r;return(r={})[n[0]]=t,r[n[1]]=e,r}};case 3:return function(t){return function(e){return function(r){var i;return(i={})[n[0]]=t,i[n[1]]=e,i[n[2]]=r,i}}};case 4:return function(t){return function(e){return function(r){return function(i){var u;return(u={})[n[0]]=t,u[n[1]]=e,u[n[2]]=r,u[n[3]]=i,u}}}};case 5:return function(t){return function(e){return function(r){return function(i){return function(u){var o;return(o={})[n[0]]=t,o[n[1]]=e,o[n[2]]=r,o[n[3]]=i,o[n[4]]=u,o}}}}};default:return l(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var i={},u=0;u<t;u++)i[n[u]]=e[u];return i},t-1,[])}}(e),u=n.map(t[e[0]],i),o=1;o<r;o++)u=n.ap(u,t[e[o]]);return u}}},1358:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return tY},Alternative:function(){return tH},Applicative:function(){return tN},Apply:function(){return tU},Chain:function(){return tj},ChainRecBreadthFirst:function(){return t9},ChainRecDepthFirst:function(){return t4},Compactable:function(){return tX},Do:function(){return ef},Extend:function(){return tz},Filterable:function(){return tJ},FilterableWithIndex:function(){return t$},Foldable:function(){return tZ},FoldableWithIndex:function(){return tQ},FromEither:function(){return en},Functor:function(){return tW},FunctorWithIndex:function(){return tA},Monad:function(){return tG},Pointed:function(){return tP},Traversable:function(){return t0},TraversableWithIndex:function(){return t1},URI:function(){return tR},Unfoldable:function(){return tK},Witherable:function(){return t8},Zero:function(){return tB},alt:function(){return to},altW:function(){return tu},ap:function(){return n2},apFirst:function(){return tD},apS:function(){return es},apSecond:function(){return tL},append:function(){return y},appendW:function(){return b},array:function(){return e_},bind:function(){return ed},bindTo:function(){return el},chain:function(){return eh},chainFirst:function(){return tq},chainRecBreadthFirst:function(){return t7},chainRecDepthFirst:function(){return t3},chainWithIndex:function(){return F},chop:function(){return n_},chunksOf:function(){return nR},compact:function(){return n9},comprehension:function(){return nT},concat:function(){return nw},concatW:function(){return nx},cons:function(){return eg},copy:function(){return nr},deleteAt:function(){return no},difference:function(){return nE},dropLeft:function(){return z},dropLeftWhile:function(){return J},dropRight:function(){return X},duplicate:function(){return tf},elem:function(){return ng},empty:function(){return ev},every:function(){return eu},exists:function(){return ea},extend:function(){return tc},filter:function(){return tn},filterE:function(){return t6},filterMap:function(){return n7},filterMapWithIndex:function(){return n4},filterWithIndex:function(){return ta},findFirst:function(){return Z},findFirstMap:function(){return Q},findIndex:function(){return $},findLast:function(){return nn},findLastIndex:function(){return ne},findLastMap:function(){return nt},flap:function(){return tF},flatMap:function(){return n5},flatten:function(){return n8},foldLeft:function(){return E},foldMap:function(){return tl},foldMapWithIndex:function(){return tp},foldRight:function(){return W},fromEither:function(){return T},fromEitherK:function(){return et},fromOption:function(){return S},fromOptionK:function(){return nS},fromPredicate:function(){return R},getDifferenceMagma:function(){return tk},getEq:function(){return tw},getIntersectionSemigroup:function(){return tC},getMonoid:function(){return tx},getOrd:function(){return tM},getSemigroup:function(){return tT},getShow:function(){return tS},getUnionMonoid:function(){return tE},getUnionSemigroup:function(){return tO},guard:function(){return tV},head:function(){return N},init:function(){return G},insertAt:function(){return ni},intercalate:function(){return ec},intersection:function(){return nO},intersperse:function(){return nm},isEmpty:function(){return h},isNonEmpty:function(){return m},isOutOfBound:function(){return D},last:function(){return j},lefts:function(){return nl},let:function(){return ep},lookup:function(){return L},makeBy:function(){return _},map:function(){return n1},mapWithIndex:function(){return n3},match:function(){return w},matchLeft:function(){return O},matchLeftW:function(){return M},matchRight:function(){return k},matchRightW:function(){return C},matchW:function(){return x},modifyAt:function(){return na},of:function(){return nQ},partition:function(){return tt},partitionMap:function(){return tr},partitionMapWithIndex:function(){return ti},partitionWithIndex:function(){return te},prepend:function(){return v},prependAll:function(){return nh},prependToAll:function(){return eb},prependW:function(){return g},range:function(){return em},reduce:function(){return td},reduceRight:function(){return th},reduceRightWithIndex:function(){return tm},reduceWithIndex:function(){return ts},replicate:function(){return I},reverse:function(){return nc},rights:function(){return nf},rotate:function(){return nv},scanLeft:function(){return P},scanRight:function(){return A},separate:function(){return n6},sequence:function(){return tg},size:function(){return U},snoc:function(){return ey},some:function(){return eo},sort:function(){return np},sortBy:function(){return nb},spanLeft:function(){return H},splitAt:function(){return nI},tail:function(){return q},takeLeft:function(){return K},takeLeftWhile:function(){return B},takeRight:function(){return Y},traverse:function(){return tv},traverseWithIndex:function(){return ty},unfold:function(){return tI},union:function(){return nM},uniq:function(){return ny},unsafeDeleteAt:function(){return ei},unsafeInsertAt:function(){return ee},unsafeUpdateAt:function(){return er},unzip:function(){return ns},updateAt:function(){return nu},wilt:function(){return t_},wither:function(){return tb},zero:function(){return n0},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:nd(t,e,function(n,t){return[n,t]})}},zipWith:function(){return nd}});var r=e(42925),i=e(88543),u=e(25162),o=e(42275),a=e(67560),c=e(97963),f=e(43586),l=e(31583),p=e(34219),d=e(76511),s=e(28957),h=function(n){return 0===n.length},m=f.isNonEmpty,v=f.prepend,g=f.prependW,y=f.append,b=f.appendW,_=function(n,t){return n<=0?[]:f.makeBy(t)(n)},I=function(n,t){return _(n,function(){return t})};function R(n){return function(t){return n(t)?[t]:[]}}var S=function(n){return c.Wi(n)?[]:[n.value]},T=function(n){return c.nM(n)?[]:[n.right]},x=function(n,t){return function(e){return m(e)?t(e):n()}},w=x,M=function(n,t){return function(e){return m(e)?t(f.head(e),f.tail(e)):n()}},O=M,E=O,C=function(n,t){return function(e){return m(e)?t(f.init(e),f.last(e)):n()}},k=C,W=k,F=function(n){return function(t){for(var e=[],r=0;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},P=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[0]=n;for(var u=0;u<r;u++)i[u+1]=t(i[u],e[u]);return i}},A=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[r]=n;for(var u=r-1;u>=0;u--)i[u]=t(e[u],i[u+1]);return i}},U=function(n){return n.length},D=f.isOutOfBound,L=l.lookup,N=l.head,j=l.last,q=function(n){return m(n)?c.G(f.tail(n)):c.YP},G=function(n){return m(n)?c.G(f.init(n)):c.YP},K=function(n){return function(t){return D(n,t)?nr(t):t.slice(0,n)}},Y=function(n){return function(t){return D(n,t)?nr(t):0===n?[]:t.slice(-n)}};function B(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r];if(!n(i))break;e.push(i)}return e}}var V=function(n,t){for(var e=n.length,r=0;r<e&&t(n[r]);r++);return r};function H(n){return function(t){var e=nI(V(t,n))(t);return{init:e[0],rest:e[1]}}}var z=function(n){return function(t){return n<=0||h(t)?nr(t):n>=t.length?[]:t.slice(n,t.length)}},X=function(n){return function(t){return n<=0||h(t)?nr(t):n>=t.length?[]:t.slice(0,t.length-n)}};function J(n){return function(t){return t.slice(V(t,n))}}var $=l.findIndex;function Z(n){return l.findFirst(n)}var Q=l.findFirstMap;function nn(n){return l.findLast(n)}var nt=l.findLastMap,ne=l.findLastIndex,nr=function(n){return n.slice()},ni=function(n,t){return function(e){return n<0||n>e.length?c.YP:c.G(ee(n,t,e))}},nu=function(n,t){return na(n,function(){return t})},no=function(n){return function(t){return D(n,t)?c.YP:c.G(ei(n,t))}},na=function(n,t){return function(e){return D(n,e)?c.YP:c.G(er(n,t(e[n]),e))}},nc=function(n){return h(n)?[]:n.slice().reverse()},nf=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Right"===r._tag&&t.push(r.right)}return t},nl=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Left"===r._tag&&t.push(r.left)}return t},np=function(n){return function(t){return t.length<=1?nr(t):t.slice().sort(n.compare)}},nd=function(n,t,e){for(var r=[],i=Math.min(n.length,t.length),u=0;u<i;u++)r[u]=e(n[u],t[u]);return r},ns=function(n){for(var t=[],e=[],r=0;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},nh=function(n){var t=f.prependAll(n);return function(n){return m(n)?t(n):[]}},nm=function(n){var t=f.intersperse(n);return function(n){return m(n)?t(n):nr(n)}},nv=function(n){var t=f.rotate(n);return function(n){return m(n)?t(n):nr(n)}},ng=l.elem,ny=function(n){var t=f.uniq(n);return function(n){return m(n)?t(n):nr(n)}},nb=function(n){var t=f.sortBy(n);return function(n){return m(n)?t(n):nr(n)}},n_=function(n){var t=f.chop(n);return function(n){return m(n)?t(n):[]}},nI=function(n){return function(t){return n>=1&&m(t)?f.splitAt(n)(t):h(t)?[nr(t),[]]:[[],nr(t)]}},nR=function(n){var t=f.chunksOf(n);return function(n){return m(n)?t(n):[]}},nS=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return S(n.apply(void 0,t))}};function nT(n,t,e){void 0===e&&(e=function(){return!0});var r=function(n,i){return m(i)?n5(f.head(i),function(t){return r((0,o.pipe)(n,y(t)),f.tail(i))}):e.apply(void 0,n)?[t.apply(void 0,n)]:[]};return r([],n)}var nx=function(n){return function(t){return h(t)?nr(n):h(n)?nr(t):t.concat(n)}},nw=nx;function nM(n){var t=f.union(n);return function(e,r){if(void 0===r){var i=nM(n);return function(n){return i(n,e)}}return m(e)&&m(r)?t(r)(e):m(e)?nr(e):nr(r)}}function nO(n){var t=ng(n);return function(e,r){if(void 0===r){var i=nO(n);return function(n){return i(n,e)}}return e.filter(function(n){return t(n,r)})}}function nE(n){var t=ng(n);return function(e,r){if(void 0===r){var i=nE(n);return function(n){return i(n,e)}}return e.filter(function(n){return!t(n,r)})}}var nC=function(n,t){return(0,o.pipe)(n,n1(t))},nk=function(n,t){return(0,o.pipe)(n,n3(t))},nW=function(n,t){return(0,o.pipe)(n,n2(t))},nF=function(n,t){return(0,o.pipe)(n,tn(t))},nP=function(n,t){return(0,o.pipe)(n,n7(t))},nA=function(n,t){return(0,o.pipe)(n,tt(t))},nU=function(n,t){return(0,o.pipe)(n,tr(t))},nD=function(n,t){return(0,o.pipe)(n,te(t))},nL=function(n,t){return(0,o.pipe)(n,ti(t))},nN=function(n,t){return(0,o.pipe)(n,to(t))},nj=function(n,t,e){return(0,o.pipe)(n,td(t,e))},nq=function(n){var t=tl(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nG=function(n,t,e){return(0,o.pipe)(n,th(t,e))},nK=function(n,t,e){return(0,o.pipe)(n,ts(t,e))},nY=function(n){var t=tp(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nB=function(n,t,e){return(0,o.pipe)(n,tm(t,e))},nV=function(n,t){return(0,o.pipe)(n,n4(t))},nH=function(n,t){return(0,o.pipe)(n,ta(t))},nz=function(n,t){return(0,o.pipe)(n,tc(t))},nX=function(n){var t=tv(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nJ=function(n){var t=ty(n);return function(n,e){return(0,o.pipe)(n,t(e))}},n$=l._chainRecDepthFirst,nZ=l._chainRecBreadthFirst,nQ=f.of,n0=function(){return[]},n1=function(n){return function(t){return t.map(function(t){return n(t)})}},n2=function(n){return n5(function(t){return(0,o.pipe)(n,n1(t))})},n5=(0,o.dual)(2,function(n,t){return(0,o.pipe)(n,F(function(n,e){return t(e,n)}))}),n8=n5(o.identity),n3=function(n){return function(t){return t.map(function(t,e){return n(e,t)})}},n4=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=n(r,t[r]);c.pC(i)&&e.push(i.value)}return e}},n7=function(n){return n4(function(t,e){return n(e)})},n9=n7(o.identity),n6=function(n){for(var t=[],e=[],r=0;r<n.length;r++){var i=n[r];"Left"===i._tag?t.push(i.left):e.push(i.right)}return(0,p.separated)(t,e)},tn=function(n){return function(t){return t.filter(n)}},tt=function(n){return te(function(t,e){return n(e)})},te=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=t[i];n(i,u)?r.push(u):e.push(u)}return(0,p.separated)(e,r)}},tr=function(n){return ti(function(t,e){return n(e)})},ti=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=n(i,t[i]);"Left"===u._tag?e.push(u.left):r.push(u.right)}return(0,p.separated)(e,r)}},tu=function(n){return function(t){return t.concat(n())}},to=tu,ta=function(n){return function(t){return t.filter(function(t,e){return n(e,t)})}},tc=function(n){return function(t){return t.map(function(e,r){return n(t.slice(r))})}},tf=tc(o.identity),tl=l.foldMap,tp=l.foldMapWithIndex,td=l.reduce,ts=l.reduceWithIndex,th=l.reduceRight,tm=l.reduceRightWithIndex,tv=function(n){var t=ty(n);return function(n){return t(function(t,e){return n(e)})}},tg=function(n){return function(t){return nj(t,n.of(n0()),function(t,e){return n.ap(n.map(t,function(n){return function(t){return(0,o.pipe)(n,y(t))}}),e)})}},ty=function(n){return function(t){return ts(n.of(n0()),function(e,r,i){return n.ap(n.map(r,function(n){return function(t){return(0,o.pipe)(n,y(t))}}),t(e,i))})}},tb=function(n){var t=t2(n);return function(n){return function(e){return t(e,n)}}},t_=function(n){var t=t5(n);return function(n){return function(e){return t(e,n)}}},tI=function(n,t){for(var e=[],r=n;;){var i=t(r);if(c.pC(i)){var u=i.value,o=u[0],a=u[1];e.push(o),r=a}else break}return e},tR="Array",tS=l.getShow,tT=function(){return{concat:function(n,t){return n.concat(t)}}},tx=function(){return{concat:tT().concat,empty:[]}},tw=l.getEq,tM=l.getOrd,tO=function(n){var t=nM(n);return{concat:function(n,e){return t(e)(n)}}},tE=function(n){return{concat:tO(n).concat,empty:[]}},tC=function(n){var t=nO(n);return{concat:function(n,e){return t(e)(n)}}},tk=function(n){var t=nE(n);return{concat:function(n,e){return t(e)(n)}}},tW={URI:tR,map:nC},tF=(0,a.flap)(tW),tP={URI:tR,of:nQ},tA={URI:tR,map:nC,mapWithIndex:nk},tU={URI:tR,map:nC,ap:nW},tD=(0,r.apFirst)(tU),tL=(0,r.apSecond)(tU),tN={URI:tR,map:nC,ap:nW,of:nQ},tj={URI:tR,map:nC,ap:nW,chain:n5},tq=(0,i.chainFirst)(tj),tG={URI:tR,map:nC,ap:nW,of:nQ,chain:n5},tK={URI:tR,unfold:tI},tY={URI:tR,map:nC,alt:nN},tB={URI:tR,zero:n0},tV=(0,s.guard)(tB,tP),tH={URI:tR,map:nC,ap:nW,of:nQ,alt:nN,zero:n0},tz={URI:tR,map:nC,extend:nz},tX={URI:tR,compact:n9,separate:n6},tJ={URI:tR,map:nC,compact:n9,separate:n6,filter:nF,filterMap:nP,partition:nA,partitionMap:nU},t$={URI:tR,map:nC,mapWithIndex:nk,compact:n9,separate:n6,filter:nF,filterMap:nP,partition:nA,partitionMap:nU,partitionMapWithIndex:nL,partitionWithIndex:nD,filterMapWithIndex:nV,filterWithIndex:nH},tZ={URI:tR,reduce:nj,foldMap:nq,reduceRight:nG},tQ={URI:tR,reduce:nj,foldMap:nq,reduceRight:nG,reduceWithIndex:nK,foldMapWithIndex:nY,reduceRightWithIndex:nB},t0={URI:tR,map:nC,reduce:nj,foldMap:nq,reduceRight:nG,traverse:nX,sequence:tg},t1={URI:tR,map:nC,mapWithIndex:nk,reduce:nj,foldMap:nq,reduceRight:nG,reduceWithIndex:nK,foldMapWithIndex:nY,reduceRightWithIndex:nB,traverse:nX,sequence:tg,traverseWithIndex:nJ},t2=(0,d.witherDefault)(t0,tX),t5=(0,d.wiltDefault)(t0,tX),t8={URI:tR,map:nC,compact:n9,separate:n6,filter:nF,filterMap:nP,partition:nA,partitionMap:nU,reduce:nj,foldMap:nq,reduceRight:nG,traverse:nX,sequence:tg,wither:t2,wilt:t5},t3=l.chainRecDepthFirst,t4={URI:tR,map:nC,ap:nW,chain:n5,chainRec:n$},t7=l.chainRecBreadthFirst,t9={URI:tR,map:nC,ap:nW,chain:n5,chainRec:nZ},t6=(0,d.filterE)(t8),en={URI:tR,fromEither:T},et=(0,u.fromEitherK)(en),ee=f.unsafeInsertAt,er=function(n,t,e){return m(e)?f.unsafeUpdateAt(n,t,e):[]},ei=function(n,t){var e=t.slice();return e.splice(n,1),e},eu=l.every,eo=function(n){return function(t){return t.some(n)}},ea=eo,ec=l.intercalate,ef=nQ(c.F4),el=(0,a.bindTo)(tW),ep=(0,a.let)(tW),ed=(0,i.bind)(tj),es=(0,r.apS)(tU),eh=n5,em=f.range,ev=[],eg=f.cons,ey=f.snoc,eb=nh,e_={URI:tR,compact:n9,separate:n6,map:nC,ap:nW,of:nQ,chain:n5,filter:nF,filterMap:nP,partition:nA,partitionMap:nU,mapWithIndex:nk,partitionMapWithIndex:nL,partitionWithIndex:nD,filterMapWithIndex:nV,filterWithIndex:nH,alt:nN,zero:n0,unfold:tI,reduce:nj,foldMap:nq,reduceRight:nG,traverse:nX,sequence:tg,reduceWithIndex:nK,foldMapWithIndex:nY,reduceRightWithIndex:nB,traverseWithIndex:nJ,extend:nz,wither:t2,wilt:t5}},88543:function(n,t,e){function r(n){var t=i(n);return function(n){return function(e){return t(e,n)}}}function i(n){return function(t,e){return n.chain(t,function(t){return n.map(e(t),function(){return t})})}}function u(n){return function(t,e){return function(r){return n.chain(r,function(r){return n.map(e(r),function(n){var e;return Object.assign({},r,((e={})[t]=n,e))})})}}}e.r(t),e.d(t,{bind:function(){return u},chainFirst:function(){return r},tap:function(){return i}})},56661:function(n,t,e){e.r(t),e.d(t,{tailRec:function(){return r}});var r=function(n,t){for(var e=t(n);"Left"===e._tag;)e=t(e.left);return e.right}},90817:function(n,t,e){e.r(t),e.d(t,{Bifunctor:function(){return C},Contravariant:function(){return E},Functor:function(){return M},URI:function(){return w},bimap:function(){return T},const_:function(){return k},contramap:function(){return R},flap:function(){return O},getApplicative:function(){return g},getApply:function(){return v},getBooleanAlgebra:function(){return m},getBounded:function(){return f},getEq:function(){return a},getHeytingAlgebra:function(){return h},getMonoid:function(){return p},getOrd:function(){return c},getRing:function(){return s},getSemigroup:function(){return l},getSemiring:function(){return d},getShow:function(){return o},make:function(){return u},map:function(){return S},mapLeft:function(){return x}});var r=e(42275),i=e(67560),u=r.unsafeCoerce;function o(n){return{show:function(t){return"make(".concat(n.show(t),")")}}}var a=r.identity,c=r.identity,f=r.identity,l=r.identity,p=r.identity,d=r.identity,s=r.identity,h=r.identity,m=r.identity;function v(n){return{URI:w,_E:void 0,map:b,ap:function(t,e){return u(n.concat(t,e))}}}function g(n){var t=v(n);return{URI:w,_E:void 0,map:t.map,ap:t.ap,of:function(){return u(n.empty)}}}var y=function(n,t){return(0,r.pipe)(n,R(t))},b=function(n,t){return(0,r.pipe)(n,S(t))},_=function(n,t,e){return(0,r.pipe)(n,T(t,e))},I=function(n,t){return(0,r.pipe)(n,x(t))},R=function(){return r.unsafeCoerce},S=function(){return r.unsafeCoerce},T=function(n){return function(t){return u(n(t))}},x=function(n){return function(t){return u(n(t))}},w="Const",M={URI:w,map:b},O=(0,i.flap)(M),E={URI:w,contramap:y},C={URI:w,bimap:_,mapLeft:I},k={URI:w,map:b,contramap:y,bimap:_,mapLeft:I}},81878:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return no},ApT:function(){return n7},Applicative:function(){return B},Apply:function(){return Y},Bifunctor:function(){return nr},Chain:function(){return V},ChainRec:function(){return nf},Do:function(){return n0},Extend:function(){return nc},Foldable:function(){return $},FromEither:function(){return nd},Functor:function(){return D},Monad:function(){return H},MonadThrow:function(){return np},Pointed:function(){return q},Traversable:function(){return nn},URI:function(){return M},alt:function(){return nu},altW:function(){return ni},ap:function(){return K},apFirst:function(){return nT},apFirstW:function(){return nx},apS:function(){return n3},apSW:function(){return n4},apSecond:function(){return nw},apSecondW:function(){return nM},apW:function(){return G},as:function(){return L},asUnit:function(){return N},bimap:function(){return nt},bind:function(){return n5},bindTo:function(){return n1},bindW:function(){return n8},chain:function(){return ti},chainFirst:function(){return tu},chainFirstW:function(){return to},chainNullableK:function(){return nJ},chainOptionK:function(){return nF},chainOptionKW:function(){return nP},chainW:function(){return tr},duplicate:function(){return nk},either:function(){return tf},elem:function(){return function n(t){return function(e,r){if(void 0===r){var i=n(t);return function(n){return i(e,n)}}return!nm(r)&&t.equals(e,r.right)}}},exists:function(){return nQ},extend:function(){return na},filterOrElse:function(){return nq},filterOrElseW:function(){return nG},flap:function(){return nS},flatMap:function(){return m},flatMapNullable:function(){return nN},flatMapOption:function(){return nj},flatten:function(){return nC},flattenW:function(){return nE},fold:function(){return n_},foldMap:function(){return X},foldW:function(){return ny},fromNullable:function(){return nV},fromNullableK:function(){return nX},fromOption:function(){return nh},fromOptionK:function(){return nW},fromPredicate:function(){return ns},getAltValidation:function(){return A},getApplicativeValidation:function(){return P},getApplyMonoid:function(){return tp},getApplySemigroup:function(){return tl},getCompactable:function(){return k},getEq:function(){return E},getFilterable:function(){return W},getOrElse:function(){return nR},getOrElseW:function(){return nI},getSemigroup:function(){return C},getShow:function(){return O},getValidation:function(){return th},getValidationMonoid:function(){return ts},getValidationSemigroup:function(){return td},getWitherable:function(){return F},isLeft:function(){return nm},isRight:function(){return nv},left:function(){return s},let:function(){return n2},liftNullable:function(){return nU},liftOption:function(){return nD},map:function(){return U},mapLeft:function(){return ne},match:function(){return nb},matchW:function(){return ng},of:function(){return j},orElse:function(){return nB},orElseW:function(){return nY},parseJSON:function(){return ta},reduce:function(){return z},reduceRight:function(){return J},right:function(){return h},sequence:function(){return Q},sequenceArray:function(){return te},stringifyJSON:function(){return tc},swap:function(){return nK},tap:function(){return nO},throwError:function(){return nl},toError:function(){return nZ},toUnion:function(){return n$},traverse:function(){return Z},traverseArray:function(){return tt},traverseArrayWithIndex:function(){return tn},traverseReadonlyArrayWithIndex:function(){return n6},traverseReadonlyNonEmptyArrayWithIndex:function(){return n9},tryCatch:function(){return nH},tryCatchK:function(){return nz}});var r=e(46111),i=e(42925),u=e(88543),o=e(56661),a=e(25162),c=e(42275),f=e(67560),l=e(97963),p=e(34219),d=e(76511),s=l.t$,h=l.F2,m=(0,c.dual)(2,function(n,t){return nm(n)?n:t(n.right)}),v=function(n,t){return(0,c.pipe)(n,U(t))},g=function(n,t){return(0,c.pipe)(n,K(t))},y=function(n,t,e){return(0,c.pipe)(n,z(t,e))},b=function(n){return function(t,e){var r=X(n);return(0,c.pipe)(t,r(e))}},_=function(n,t,e){return(0,c.pipe)(n,J(t,e))},I=function(n){var t=Z(n);return function(n,e){return(0,c.pipe)(n,t(e))}},R=function(n,t,e){return(0,c.pipe)(n,nt(t,e))},S=function(n,t){return(0,c.pipe)(n,ne(t))},T=function(n,t){return(0,c.pipe)(n,nu(t))},x=function(n,t){return(0,c.pipe)(n,na(t))},w=function(n,t){return(0,o.tailRec)(t(n),function(n){return nm(n)?h(s(n.left)):nm(n.right)?s(t(n.right.left)):h(h(n.right.right))})},M="Either",O=function(n,t){return{show:function(e){return nm(e)?"left(".concat(n.show(e.left),")"):"right(".concat(t.show(e.right),")")}}},E=function(n,t){return{equals:function(e,r){return e===r||(nm(e)?nm(r)&&n.equals(e.left,r.left):nv(r)&&t.equals(e.right,r.right))}}},C=function(n){return{concat:function(t,e){return nm(e)?t:nm(t)?e:h(n.concat(t.right,e.right))}}},k=function(n){var t=s(n.empty);return{URI:M,_E:void 0,compact:function(n){return nm(n)?n:"None"===n.right._tag?t:h(n.right.value)},separate:function(n){return nm(n)?(0,p.separated)(n,n):nm(n.right)?(0,p.separated)(h(n.right.left),t):(0,p.separated)(t,h(n.right.right))}}},W=function(n){var t=s(n.empty),e=k(n);return{URI:M,_E:void 0,map:v,compact:e.compact,separate:e.separate,filter:function(n,e){return nm(n)?n:e(n.right)?n:t},filterMap:function(n,e){if(nm(n))return n;var r=e(n.right);return"None"===r._tag?t:h(r.value)},partition:function(n,e){return nm(n)?(0,p.separated)(n,n):e(n.right)?(0,p.separated)(t,h(n.right)):(0,p.separated)(h(n.right),t)},partitionMap:function(n,e){if(nm(n))return(0,p.separated)(n,n);var r=e(n.right);return nm(r)?(0,p.separated)(h(r.left),t):(0,p.separated)(t,h(r.right))}}},F=function(n){var t=W(n),e=k(n);return{URI:M,_E:void 0,map:v,compact:t.compact,separate:t.separate,filter:t.filter,filterMap:t.filterMap,partition:t.partition,partitionMap:t.partitionMap,traverse:I,sequence:Q,reduce:y,foldMap:b,reduceRight:_,wither:(0,d.witherDefault)(nn,e),wilt:(0,d.wiltDefault)(nn,e)}},P=function(n){return{URI:M,_E:void 0,map:v,ap:function(t,e){return nm(t)?nm(e)?s(n.concat(t.left,e.left)):t:nm(e)?e:h(t.right(e.right))},of:j}},A=function(n){return{URI:M,_E:void 0,map:v,alt:function(t,e){if(nv(t))return t;var r=e();return nm(r)?s(n.concat(t.left,r.left)):r}}},U=function(n){return function(t){return nm(t)?t:h(n(t.right))}},D={URI:M,map:v},L=(0,c.dual)(2,(0,f.as)(D)),N=(0,f.asUnit)(D),j=h,q={URI:M,of:j},G=function(n){return function(t){return nm(t)?t:nm(n)?n:h(t.right(n.right))}},K=G,Y={URI:M,map:v,ap:g},B={URI:M,map:v,ap:g,of:j},V={URI:M,map:v,ap:g,chain:m},H={URI:M,map:v,ap:g,of:j,chain:m},z=function(n,t){return function(e){return nm(e)?n:t(n,e.right)}},X=function(n){return function(t){return function(e){return nm(e)?n.empty:t(e.right)}}},J=function(n,t){return function(e){return nm(e)?n:t(e.right,n)}},$={URI:M,reduce:y,foldMap:b,reduceRight:_},Z=function(n){return function(t){return function(e){return nm(e)?n.of(s(e.left)):n.map(t(e.right),h)}}},Q=function(n){return function(t){return nm(t)?n.of(s(t.left)):n.map(t.right,h)}},nn={URI:M,map:v,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:Q},nt=function(n,t){return function(e){return nm(e)?s(n(e.left)):h(t(e.right))}},ne=function(n){return function(t){return nm(t)?s(n(t.left)):t}},nr={URI:M,bimap:R,mapLeft:S},ni=function(n){return function(t){return nm(t)?n():t}},nu=ni,no={URI:M,map:v,alt:T},na=function(n){return function(t){return nm(t)?t:h(n(t))}},nc={URI:M,map:v,extend:x},nf={URI:M,map:v,ap:g,chain:m,chainRec:w},nl=s,np={URI:M,map:v,ap:g,of:j,chain:m,throwError:nl},nd={URI:M,fromEither:c.identity},ns=(0,a.fromPredicate)(nd),nh=(0,a.fromOption)(nd),nm=l.nM,nv=l.tO,ng=function(n,t){return function(e){return nm(e)?n(e.left):t(e.right)}},ny=ng,nb=ng,n_=nb,nI=function(n){return function(t){return nm(t)?n(t.left):t.right}},nR=nI,nS=(0,f.flap)(D),nT=(0,i.apFirst)(Y),nx=nT,nw=(0,i.apSecond)(Y),nM=nw,nO=(0,c.dual)(2,u.tap(V)),nE=m(c.identity),nC=nE,nk=na(c.identity),nW=(0,a.fromOptionK)(nd),nF=(0,a.chainOptionK)(nd,V),nP=nF,nA={fromEither:nd.fromEither},nU=l.uL(nA),nD=l.WE(nA),nL={flatMap:m},nN=l.ny(nA,nL),nj=l.hU(nA,nL),nq=(0,a.filterOrElse)(nd,V),nG=nq,nK=function(n){return nm(n)?h(n.left):s(n.right)},nY=function(n){return function(t){return nm(t)?n(t.left):t}},nB=nY,nV=function(n){return function(t){return null==t?s(n):h(t)}},nH=function(n,t){try{return h(n())}catch(n){return s(t(n))}},nz=function(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return nH(function(){return n.apply(void 0,e)},t)}},nX=function(n){var t=nV(n);return function(n){return(0,c.flow)(n,t)}},nJ=function(n){var t=nX(n);return function(n){return m(t(n))}},n$=ny(c.identity,c.identity);function nZ(n){return n instanceof Error?n:Error(String(n))}var nQ=function(n){return function(t){return!nm(t)&&n(t.right)}},n0=j(l.F4),n1=(0,f.bindTo)(D),n2=(0,f.let)(D),n5=u.bind(V),n8=n5,n3=(0,i.apS)(Y),n4=n3,n7=j(l.Xl),n9=function(n){return function(t){var e=n(0,l.YM(t));if(nm(e))return e;for(var r=[e.right],i=1;i<t.length;i++){var u=n(i,t[i]);if(nm(u))return u;r.push(u.right)}return h(r)}},n6=function(n){var t=n9(n);return function(n){return l.Od(n)?t(n):n7}},tn=n6,tt=function(n){return n6(function(t,e){return n(e)})},te=tt(c.identity),tr=m,ti=m,tu=nO,to=nO;function ta(n,t){return nH(function(){return JSON.parse(n)},t)}var tc=function(n,t){return nH(function(){var t=JSON.stringify(n);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},t)},tf={URI:M,map:v,of:j,ap:g,chain:m,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:Q,bimap:R,mapLeft:S,alt:T,extend:x,chainRec:w,throwError:nl},tl=(0,i.getApplySemigroup)(Y),tp=(0,r.getApplicativeMonoid)(B),td=function(n,t){return(0,i.getApplySemigroup)(P(n))(t)},ts=function(n,t){return(0,r.getApplicativeMonoid)(P(n))(t)};function th(n){return{URI:M,_E:void 0,map:v,of:j,chain:m,bimap:R,mapLeft:S,reduce:y,foldMap:b,reduceRight:_,extend:x,traverse:I,sequence:Q,chainRec:w,throwError:nl,ap:P(n).ap,alt:A(n).alt}}},47797:function(n,t,e){e.r(t),e.d(t,{URI:function(){return i},getMonoid:function(){return o},getSemigroup:function(){return u}});var r=e(42275),i="Endomorphism",u=function(){return{concat:function(n,t){return(0,r.flow)(n,t)}}},o=function(){return{concat:u().concat,empty:r.identity}}},65191:function(n,t,e){e.r(t),e.d(t,{Contravariant:function(){return s},URI:function(){return c},contramap:function(){return a},eq:function(){return g},eqBoolean:function(){return y},eqDate:function(){return I},eqNumber:function(){return _},eqStrict:function(){return f},eqString:function(){return b},fromEquals:function(){return i},getMonoid:function(){return d},getSemigroup:function(){return p},getStructEq:function(){return m},getTupleEq:function(){return h},strictEqual:function(){return v},struct:function(){return u},tuple:function(){return o}});var r=e(42275),i=function(n){return{equals:function(t,e){return t===e||n(t,e)}}},u=function(n){return i(function(t,e){for(var r in n)if(!n[r].equals(t[r],e[r]))return!1;return!0})},o=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return i(function(t,e){return n.every(function(n,r){return n.equals(t[r],e[r])})})},a=function(n){return function(t){return i(function(e,r){return t.equals(n(e),n(r))})}},c="Eq",f={equals:function(n,t){return n===t}},l={equals:function(){return!0}},p=function(){return{concat:function(n,t){return i(function(e,r){return n.equals(e,r)&&t.equals(e,r)})}}},d=function(){return{concat:p().concat,empty:l}},s={URI:c,contramap:function(n,t){return(0,r.pipe)(n,a(t))}},h=o,m=u,v=f.equals,g=s,y=f,b=f,_=f,I={equals:function(n,t){return n.valueOf()===t.valueOf()}}},25162:function(n,t,e){e.r(t),e.d(t,{chainEitherK:function(){return p},chainFirstEitherK:function(){return d},chainOptionK:function(){return f},filterOrElse:function(){return s},fromEitherK:function(){return l},fromOption:function(){return o},fromOptionK:function(){return c},fromPredicate:function(){return a},tapEither:function(){return h}});var r=e(88543),i=e(42275),u=e(97963);function o(n){return function(t){return function(e){return n.fromEither(u.Wi(e)?u.t$(t()):u.F2(e.value))}}}function a(n){return function(t,e){return function(r){return n.fromEither(t(r)?u.F2(r):u.t$(e(r)))}}}function c(n){var t=o(n);return function(n){var e=t(n);return function(n){return(0,i.flow)(n,e)}}}function f(n,t){var e=c(n);return function(n){var r=e(n);return function(n){return function(e){return t.chain(e,r(n))}}}}function l(n){return function(t){return(0,i.flow)(t,n.fromEither)}}function p(n,t){var e=l(n);return function(n){return function(r){return t.chain(r,e(n))}}}function d(n,t){var e=h(n,t);return function(n){return function(t){return e(t,n)}}}function s(n,t){return function(e,r){return function(i){return t.chain(i,function(t){return n.fromEither(e(t)?u.F2(t):u.t$(r(t)))})}}}function h(n,t){var e=l(n),i=(0,r.tap)(t);return function(n,t){return i(n,e(t))}}},67560:function(n,t,e){e.r(t),e.d(t,{as:function(){return f},asUnit:function(){return l},bindTo:function(){return o},flap:function(){return u},getFunctorComposition:function(){return c},let:function(){return a},map:function(){return i}});var r=e(42275);function i(n,t){return function(e){return function(r){return n.map(r,function(n){return t.map(n,e)})}}}function u(n){return function(t){return function(e){return n.map(e,function(n){return n(t)})}}}function o(n){return function(t){return function(e){return n.map(e,function(n){var e;return(e={})[t]=n,e})}}}function a(n){return function(t,e){return function(r){return n.map(r,function(n){var r;return Object.assign({},n,((r={})[t]=e(n),r))})}}}function c(n,t){var e=i(n,t);return{map:function(n,t){return(0,r.pipe)(n,e(t))}}}function f(n){return function(t,e){return n.map(t,function(){return e})}}function l(n){var t=f(n);return function(n){return t(n,void 0)}}},76113:function(n,t,e){e.r(t),e.d(t,{concatAll:function(){return a},endo:function(){return o},filterFirst:function(){return i},filterSecond:function(){return u},reverse:function(){return r}});var r=function(n){return{concat:function(t,e){return n.concat(e,t)}}},i=function(n){return function(t){return{concat:function(e,r){return n(e)?t.concat(e,r):r}}}},u=function(n){return function(t){return{concat:function(e,r){return n(r)?t.concat(e,r):e}}}},o=function(n){return function(t){return{concat:function(e,r){return t.concat(n(e),n(r))}}}},a=function(n){return function(t){return function(e){return e.reduce(function(t,e){return n.concat(t,e)},t)}}}},55116:function(n,t,e){e.r(t),e.d(t,{Compactable:function(){return nb},Filterable:function(){return n_},Functor:function(){return ng},URI:function(){return nt},collect:function(){return y},compact:function(){return H},deleteAt:function(){return R},difference:function(){return nT},elem:function(){return m},empty:function(){return nx},filter:function(){return z},filterMap:function(){return X},filterMapWithIndex:function(){return U},filterWithIndex:function(){return D},flap:function(){return ny},foldMap:function(){return nf},foldMapWithIndex:function(){return ns},fromFoldable:function(){return W},getDifferenceMagma:function(){return nu},getEq:function(){return E},getFilterableWithIndex:function(){return no},getFoldable:function(){return np},getFoldableWithIndex:function(){return nm},getIntersectionSemigroup:function(){return ni},getMonoid:function(){return C},getShow:function(){return p},getTraversableWithIndex:function(){return nv},getUnionMonoid:function(){return nr},getUnionSemigroup:function(){return ne},getWitherable:function(){return na},insertAt:function(){return nw},intersection:function(){return nS},isEmpty:function(){return s},isSubmap:function(){return O},keys:function(){return v},lookup:function(){return M},lookupWithKey:function(){return w},map:function(){return J},mapWithIndex:function(){return $},map_:function(){return nM},member:function(){return h},modifyAt:function(){return T},partition:function(){return Z},partitionMap:function(){return Q},partitionMapWithIndex:function(){return P},partitionWithIndex:function(){return A},pop:function(){return x},reduce:function(){return nc},reduceRight:function(){return nl},reduceRightWithIndex:function(){return nh},reduceWithIndex:function(){return nd},separate:function(){return nn},singleton:function(){return k},size:function(){return d},toArray:function(){return b},toUnfoldable:function(){return _},union:function(){return nR},updateAt:function(){return S},upsertAt:function(){return I},values:function(){return g}});var r=e(42275),i=e(67560),u=e(97963),o=e(20492),a=e(13512),c=e(34219),f=e(76511),l=function(){return(l=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},p=a.getShow,d=a.size,s=a.isEmpty,h=a.member,m=a.elem,v=function(n){return function(t){return Array.from(t.keys()).sort(n.compare)}},g=function(n){return function(t){return Array.from(t.values()).sort(n.compare)}};function y(n){var t=v(n);return function(n){return function(e){for(var r=[],i=t(e),u=0;u<i.length;u++){var o=i[u];r.push(n(o,e.get(o)))}return r}}}function b(n){return y(n)(function(n,t){return[n,t]})}function _(n,t){var e=b(n);return function(n){var r=e(n),i=r.length;return t.unfold(0,function(n){return n<i?u.G([r[n],n+1]):u.YP})}}var I=function(n){var t=w(n);return function(n,e){var r=t(n);return function(t){var i=r(t);if(u.Wi(i)){var o=new Map(t);return o.set(n,e),o}if(i.value[1]!==e){var o=new Map(t);return o.set(i.value[0],e),o}return t}}},R=function(n){var t=w(n);return function(n){return function(e){var r=t(n,e);if(u.pC(r)){var i=new Map(e);return i.delete(r.value[0]),i}return e}}},S=function(n){var t=T(n);return function(n,e){return t(n,function(){return e})}},T=function(n){var t=w(n);return function(n,e){return function(r){var i=t(n,r);if(u.Wi(i))return u.YP;var o=new Map(r);return o.set(i.value[0],e(i.value[1])),u.G(o)}}};function x(n){var t=M(n),e=R(n);return function(n){var i=e(n);return function(e){return(0,r.pipe)(t(n,e),o.map(function(n){return[n,i(e)]}))}}}function w(n){return function(t,e){if(void 0===e){var r,i=w(n);return function(n){return i(t,n)}}for(var o=e.entries();!(r=o.next()).done;){var a=r.value,c=a[0],f=a[1];if(n.equals(c,t))return u.G([c,f])}return u.YP}}var M=a.lookup,O=a.isSubmap,E=a.getEq;function C(n,t){var e=w(n);return{concat:function(n,r){if(s(n))return r;if(s(r))return n;for(var i,o=new Map(n),a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=e(f,n);u.pC(p)?o.set(p.value[0],t.concat(p.value[1],l)):o.set(f,l)}return o},empty:new Map}}var k=function(n,t){return new Map([[n,t]])};function W(n,t,e){return function(r){var i=w(n);return e.reduce(r,new Map,function(n,e){var r=e[0],o=e[1],a=i(r,n);return u.pC(a)?n.set(a.value[0],t.concat(a.value[1],o)):n.set(r,o),n})}}var F=function(n,t){for(var e,r=new Map,i=n.entries();!(e=i.next()).done;){var u=e.value,o=u[0],a=u[1];r.set(o,t(o,a))}return r},P=function(n){return function(t){for(var e,r=new Map,i=new Map,o=t.entries();!(e=o.next()).done;){var a=e.value,f=a[0],l=n(f,a[1]);u.nM(l)?r.set(f,l.left):i.set(f,l.right)}return(0,c.separated)(r,i)}};function A(n){return function(t){for(var e,r=new Map,i=new Map,u=t.entries();!(e=u.next()).done;){var o=e.value,a=o[0],f=o[1];n(a,f)?i.set(a,f):r.set(a,f)}return(0,c.separated)(r,i)}}var U=function(n){return function(t){for(var e,r=new Map,i=t.entries();!(e=i.next()).done;){var o=e.value,a=o[0],c=n(a,o[1]);u.pC(c)&&r.set(a,c.value)}return r}};function D(n){return function(t){for(var e,r=new Map,i=t.entries();!(e=i.next()).done;){var u=e.value,o=u[0],a=u[1];n(o,a)&&r.set(o,a)}return r}}var L=function(n,t){return F(n,function(n,e){return t(e)})},N=function(n,t){return K(n,function(n,e){return t(e)})},j=function(n,t){return Y(n,function(n,e){return t(e)})},q=function(n,t){return B(n,function(n,e){return t(e)})},G=function(n,t){return V(n,function(n,e){return t(e)})},K=function(n,t){return(0,r.pipe)(n,D(t))},Y=function(n,t){return(0,r.pipe)(n,U(t))},B=function(n,t){return(0,r.pipe)(n,A(t))},V=function(n,t){return(0,r.pipe)(n,P(t))},H=function(n){for(var t,e=new Map,r=n.entries();!(t=r.next()).done;){var i=t.value,o=i[0],a=i[1];u.pC(a)&&e.set(o,a.value)}return e},z=function(n){return function(t){return N(t,n)}},X=function(n){return function(t){return j(t,n)}},J=function(n){return function(t){return L(t,n)}},$=function(n){return function(t){return F(t,n)}},Z=function(n){return function(t){return q(t,n)}},Q=function(n){return function(t){return G(t,n)}},nn=function(n){for(var t,e=new Map,r=new Map,i=n.entries();!(t=i.next()).done;){var o=t.value,a=o[0],f=o[1];u.nM(f)?e.set(a,f.left):r.set(a,f.right)}return(0,c.separated)(e,r)},nt="Map",ne=function(n,t){var e=nR(n,t);return{concat:function(n,t){return e(t)(n)}}},nr=function(n,t){return{concat:ne(n,t).concat,empty:new Map}},ni=function(n,t){var e=nS(n,t);return{concat:function(n,t){return e(t)(n)}}},nu=function(n){return function(){var t=nT(n);return{concat:function(n,e){return t(e)(n)}}}};function no(){return{URI:nt,_E:void 0,map:L,mapWithIndex:F,compact:H,separate:nn,filter:N,filterMap:j,partition:q,partitionMap:G,partitionMapWithIndex:V,partitionWithIndex:B,filterMapWithIndex:Y,filterWithIndex:K}}function na(n){var t=nv(n);return{URI:nt,_E:void 0,map:L,compact:H,separate:nn,filter:N,filterMap:j,partition:q,partitionMap:G,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,traverse:t.traverse,sequence:t.sequence,mapWithIndex:F,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverseWithIndex:t.traverseWithIndex,wilt:(0,f.wiltDefault)(t,nb),wither:(0,f.witherDefault)(t,nb)}}var nc=a.reduce,nf=a.foldMap,nl=a.reduceRight,np=function(n){return l(l({},a.getFoldable(n)),{URI:nt})},nd=a.reduceWithIndex,ns=a.foldMapWithIndex,nh=a.reduceRightWithIndex,nm=function(n){return l(l({},a.getFoldableWithIndex(n)),{URI:nt})},nv=function(n){var t=nm(n),e=v(n),r=function(n){return function(t,r){for(var i=n.of(new Map),u=e(t),o=u.length,a=0;a<o;a++)!function(e){var o=u[e],a=t.get(o);i=n.ap(n.map(i,function(n){return function(t){return n.set(o,t)}}),r(o,a))}(a);return i}};return{URI:nt,_E:void 0,map:L,mapWithIndex:F,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:function(n){var t=r(n);return function(n,e){return t(n,function(n,t){return e(t)})}},sequence:function(n){var t=r(n);return function(n){return t(n,function(n,t){return t})}},traverseWithIndex:r}},ng={URI:nt,map:L},ny=(0,i.flap)(ng),nb={URI:nt,compact:H,separate:nn},n_={URI:nt,map:L,compact:H,separate:nn,filter:N,filterMap:j,partition:q,partitionMap:G},nI=function(n){return new Map(n)},nR=function(n,t){var e=a.union(n,t);return function(n){return function(t){return s(t)?nI(n):s(n)?nI(t):e(n)(t)}}},nS=function(n,t){var e=a.intersection(n,t);return function(n){return function(t){return s(t)||s(n)?new Map:e(n)(t)}}},nT=function(n){var t=a.difference(n);return function(n){return function(e){return s(e)?nI(n):s(n)?nI(e):t(n)(e)}}},nx=new Map,nw=I,nM=n_},96576:function(n,t,e){e.r(t),e.d(t,{concatAll:function(){return d},fold:function(){return b},getDualMonoid:function(){return v},getEndomorphismMonoid:function(){return S},getFunctionMonoid:function(){return R},getJoinMonoid:function(){return g},getMeetMonoid:function(){return y},getStructMonoid:function(){return m},getTupleMonoid:function(){return h},max:function(){return c},min:function(){return a},monoidAll:function(){return _},monoidAny:function(){return I},monoidProduct:function(){return w},monoidString:function(){return T},monoidSum:function(){return x},monoidVoid:function(){return s},reverse:function(){return f},struct:function(){return l},tuple:function(){return p}});var r=e(47797),i=e(42275),u=e(97963),o=e(3291),a=function(n){return{concat:o.min(n).concat,empty:n.top}},c=function(n){return{concat:o.max(n).concat,empty:n.bottom}},f=function(n){return{concat:o.reverse(n).concat,empty:n.empty}},l=function(n){var t={};for(var e in n)u.e$.call(n,e)&&(t[e]=n[e].empty);return{concat:o.struct(n).concat,empty:t}},p=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{concat:o.tuple.apply(o,n).concat,empty:n.map(function(n){return n.empty})}},d=function(n){return o.concatAll(n)(n.empty)},s={concat:o.semigroupVoid.concat,empty:void 0},h=p,m=l,v=f,g=c,y=a,b=d,_={concat:o.semigroupAll.concat,empty:!0},I={concat:o.semigroupAny.concat,empty:!1},R=i.getMonoid,S=function(){return f((0,r.getMonoid)())},T={concat:o.semigroupString.concat,empty:""},x={concat:o.semigroupSum.concat,empty:0},w={concat:o.semigroupProduct.concat,empty:1}},43586:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return nH},Applicative:function(){return nN},Apply:function(){return nU},Chain:function(){return nj},Comonad:function(){return nz},Do:function(){return nX},Foldable:function(){return nK},FoldableWithIndex:function(){return nY},Functor:function(){return nW},FunctorWithIndex:function(){return nA},Monad:function(){return nG},Pointed:function(){return nP},Traversable:function(){return nB},TraversableWithIndex:function(){return nV},URI:function(){return nM},alt:function(){return np},altW:function(){return nl},ap:function(){return nd},apFirst:function(){return nD},apS:function(){return nQ},apSecond:function(){return nL},append:function(){return v},appendW:function(){return m},bind:function(){return nZ},bindTo:function(){return nJ},chain:function(){return ti},chainFirst:function(){return nq},chainWithIndex:function(){return H},chop:function(){return z},chunksOf:function(){return J},concat:function(){return k},concatAll:function(){return n4},concatW:function(){return C},cons:function(){return tl},copy:function(){return N},duplicate:function(){return nm},extend:function(){return nh},extract:function(){return nw},filter:function(){return to},filterWithIndex:function(){return ta},flap:function(){return nF},flatMap:function(){return ns},flatten:function(){return nv},fold:function(){return ts},foldMap:function(){return V},foldMapWithIndex:function(){return B},fromArray:function(){return T},fromReadonlyNonEmptyArray:function(){return S},getEq:function(){return nC},getSemigroup:function(){return nE},getShow:function(){return nO},getUnionSemigroup:function(){return nk},group:function(){return F},groupBy:function(){return P},groupSort:function(){return tu},head:function(){return n0},init:function(){return n5},insertAt:function(){return U},intercalate:function(){return tr},intersperse:function(){return Y},isNonEmpty:function(){return p},isOutOfBound:function(){return d},last:function(){return n2},let:function(){return n$},makeBy:function(){return x},map:function(){return ng},mapWithIndex:function(){return ny},matchLeft:function(){return n7},matchRight:function(){return n9},max:function(){return n3},min:function(){return n8},modifyAt:function(){return L},modifyHead:function(){return n6},modifyLast:function(){return tt},nonEmptyArray:function(){return th},of:function(){return j},prepend:function(){return h},prependAll:function(){return K},prependToAll:function(){return td},prependW:function(){return s},range:function(){return M},reduce:function(){return nb},reduceRight:function(){return nI},reduceRightWithIndex:function(){return nR},reduceWithIndex:function(){return n_},replicate:function(){return w},reverse:function(){return W},rotate:function(){return R},sequence:function(){return nT},snoc:function(){return tp},sort:function(){return A},sortBy:function(){return _},splitAt:function(){return X},tail:function(){return n1},traverse:function(){return nS},traverseWithIndex:function(){return nx},unappend:function(){return E},uncons:function(){return tc},union:function(){return I},uniq:function(){return b},unprepend:function(){return O},unsafeInsertAt:function(){return g},unsafeUpdateAt:function(){return y},unsnoc:function(){return tf},unzip:function(){return G},updateAt:function(){return D},updateHead:function(){return tn},updateLast:function(){return te},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:q(t,e,function(n,t){return[n,t]})}},zipWith:function(){return q}});var r=e(42925),i=e(88543),u=e(42275),o=e(67560),a=e(97963),c=e(5586),f=e(28350),l=function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},p=function(n){return n.length>0},d=function(n,t){return n<0||n>=t.length},s=function(n){return function(t){return l([n],t,!0)}},h=s,m=function(n){return function(t){return l(l([],t,!0),[n],!1)}},v=m,g=function(n,t,e){if(p(e)){var r=S(e);return r.splice(n,0,t),r}return[t]},y=function(n,t,e){var r=S(e);return r[n]=t,r},b=function(n){return function(t){if(1===t.length)return N(t);for(var e=[n0(t)],r=n1(t),i=function(t){e.every(function(e){return!n.equals(e,t)})&&e.push(t)},u=0;u<r.length;u++)i(r[u]);return e}},_=function(n){if(p(n)){var t=(0,c.getMonoid)();return A(n.reduce(t.concat,t.empty))}return N},I=function(n){var t=b(n);return function(n){return function(e){return t((0,u.pipe)(e,k(n)))}}},R=function(n){return function(t){var e=t.length,r=Math.round(n)%e;if(d(Math.abs(r),t)||0===r)return N(t);if(!(r<0))return R(r-e)(t);var i=X(-r)(t),o=i[0],a=i[1];return(0,u.pipe)(a,k(o))}},S=a.r1,T=function(n){return p(n)?a.G(n):a.YP},x=function(n){return function(t){for(var e=Math.max(0,Math.floor(t)),r=[n(0)],i=1;i<e;i++)r.push(n(i));return r}},w=function(n){return x(function(){return n})},M=function(n,t){return n<=t?x(function(t){return n+t})(t-n+1):[n]},O=function(n){return[n0(n),n1(n)]},E=function(n){return[n5(n),n2(n)]};function C(n){return function(t){return t.concat(n)}}function k(n,t){return t?n.concat(t):function(t){return t.concat(n)}}var W=function(n){return l([n2(n)],n.slice(0,-1).reverse(),!0)};function F(n){return function(t){var e=t.length;if(0===e)return[];for(var r=[],i=t[0],u=[i],o=1;o<e;o++){var a=t[o];n.equals(a,i)?u.push(a):(r.push(u),u=[i=a])}return r.push(u),r}}var P=function(n){return function(t){for(var e={},r=0;r<t.length;r++){var i=t[r],u=n(i);a.e$.call(e,u)?e[u].push(i):e[u]=[i]}return e}},A=function(n){return function(t){return t.slice().sort(n.compare)}},U=function(n,t){return function(e){return n<0||n>e.length?a.YP:a.G(g(n,t,e))}},D=function(n,t){return L(n,function(){return t})},L=function(n,t){return function(e){return d(n,e)?a.YP:a.G(y(n,t(e[n]),e))}},N=S,j=function(n){return[n]},q=function(n,t,e){for(var r=[e(n[0],t[0])],i=Math.min(n.length,t.length),u=1;u<i;u++)r[u]=e(n[u],t[u]);return r},G=function(n){for(var t=[n[0][0]],e=[n[0][1]],r=1;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},K=function(n){return function(t){for(var e=[n,t[0]],r=1;r<t.length;r++)e.push(n,t[r]);return e}},Y=function(n){return function(t){var e=n1(t);return p(e)?(0,u.pipe)(e,K(n),h(n0(t))):N(t)}},B=f.foldMapWithIndex,V=f.foldMap,H=function(n){return function(t){for(var e=S(n(0,n0(t))),r=1;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},z=function(n){return function(t){for(var e=n(t),r=e[0],i=e[1],u=[r],o=i;p(o);){var a=n(o),c=a[0],f=a[1];u.push(c),o=f}return u}},X=function(n){return function(t){var e=Math.max(1,n);return e>=t.length?[N(t),[]]:[(0,u.pipe)(t.slice(1,e),h(n0(t))),t.slice(e)]}},J=function(n){return z(X(n))},$=function(n,t){return(0,u.pipe)(n,ng(t))},Z=function(n,t){return(0,u.pipe)(n,ny(t))},Q=function(n,t){return(0,u.pipe)(n,nd(t))},nn=function(n,t){return(0,u.pipe)(n,nh(t))},nt=function(n,t,e){return(0,u.pipe)(n,nb(t,e))},ne=function(n){var t=V(n);return function(n,e){return(0,u.pipe)(n,t(e))}},nr=function(n,t,e){return(0,u.pipe)(n,nI(t,e))},ni=function(n){var t=nS(n);return function(n,e){return(0,u.pipe)(n,t(e))}},nu=function(n,t){return(0,u.pipe)(n,np(t))},no=function(n,t,e){return(0,u.pipe)(n,n_(t,e))},na=function(n){var t=B(n);return function(n,e){return(0,u.pipe)(n,t(e))}},nc=function(n,t,e){return(0,u.pipe)(n,nR(t,e))},nf=function(n){var t=nx(n);return function(n,e){return(0,u.pipe)(n,t(e))}},nl=function(n){return function(t){return(0,u.pipe)(t,C(n()))}},np=nl,nd=function(n){return ns(function(t){return(0,u.pipe)(n,ng(t))})},ns=(0,u.dual)(2,function(n,t){return(0,u.pipe)(n,H(function(n,e){return t(e,n)}))}),nh=function(n){return function(t){for(var e=n1(t),r=[n(t)];p(e);)r.push(n(e)),e=n1(e);return r}},nm=nh(u.identity),nv=ns(u.identity),ng=function(n){return ny(function(t,e){return n(e)})},ny=function(n){return function(t){for(var e=[n(0,n0(t))],r=1;r<t.length;r++)e.push(n(r,t[r]));return e}},nb=f.reduce,n_=f.reduceWithIndex,nI=f.reduceRight,nR=f.reduceRightWithIndex,nS=function(n){var t=nx(n);return function(n){return t(function(t,e){return n(e)})}},nT=function(n){return nx(n)(function(n,t){return t})},nx=function(n){return function(t){return function(e){for(var r=n.map(t(0,n0(e)),j),i=1;i<e.length;i++)r=n.ap(n.map(r,function(n){return function(t){return(0,u.pipe)(n,v(t))}}),t(i,e[i]));return r}}},nw=f.head,nM="NonEmptyArray",nO=f.getShow,nE=function(){return{concat:k}},nC=f.getEq,nk=function(n){var t=I(n);return{concat:function(n,e){return t(e)(n)}}},nW={URI:nM,map:$},nF=(0,o.flap)(nW),nP={URI:nM,of:j},nA={URI:nM,map:$,mapWithIndex:Z},nU={URI:nM,map:$,ap:Q},nD=(0,r.apFirst)(nU),nL=(0,r.apSecond)(nU),nN={URI:nM,map:$,ap:Q,of:j},nj={URI:nM,map:$,ap:Q,chain:ns},nq=(0,i.chainFirst)(nj),nG={URI:nM,map:$,ap:Q,of:j,chain:ns},nK={URI:nM,reduce:nt,foldMap:ne,reduceRight:nr},nY={URI:nM,reduce:nt,foldMap:ne,reduceRight:nr,reduceWithIndex:no,foldMapWithIndex:na,reduceRightWithIndex:nc},nB={URI:nM,map:$,reduce:nt,foldMap:ne,reduceRight:nr,traverse:ni,sequence:nT},nV={URI:nM,map:$,mapWithIndex:Z,reduce:nt,foldMap:ne,reduceRight:nr,traverse:ni,sequence:nT,reduceWithIndex:no,foldMapWithIndex:na,reduceRightWithIndex:nc,traverseWithIndex:nf},nH={URI:nM,map:$,alt:nu},nz={URI:nM,map:$,extend:nn,extract:nw},nX=j(a.F4),nJ=(0,o.bindTo)(nW),n$=(0,o.let)(nW),nZ=(0,i.bind)(nj),nQ=(0,r.apS)(nU),n0=f.head,n1=function(n){return n.slice(1)},n2=f.last,n5=function(n){return n.slice(0,-1)},n8=f.min,n3=f.max,n4=function(n){return function(t){return t.reduce(n.concat)}},n7=function(n){return function(t){return n(n0(t),n1(t))}},n9=function(n){return function(t){return n(n5(t),n2(t))}},n6=function(n){return function(t){return l([n(n0(t))],n1(t),!0)}},tn=function(n){return n6(function(){return n})},tt=function(n){return function(t){return(0,u.pipe)(n5(t),v(n(n2(t))))}},te=function(n){return tt(function(){return n})},tr=f.intercalate,ti=ns;function tu(n){var t=A(n),e=F(n);return function(n){return p(n)?e(t(n)):[]}}function to(n){return ta(function(t,e){return n(e)})}var ta=function(n){return function(t){return T(t.filter(function(t,e){return n(e,t)}))}},tc=O,tf=E;function tl(n,t){return void 0===t?h(n):(0,u.pipe)(t,h(n))}var tp=function(n,t){return(0,u.pipe)(n,v(t))},td=K,ts=f.concatAll,th={URI:nM,of:j,map:$,mapWithIndex:Z,ap:Q,chain:ns,extend:nn,extract:nw,reduce:nt,foldMap:ne,reduceRight:nr,traverse:ni,sequence:nT,reduceWithIndex:no,foldMapWithIndex:na,reduceRightWithIndex:nc,traverseWithIndex:nf,alt:nu}},20492:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return ne},Alternative:function(){return no},ApT:function(){return n7},Applicative:function(){return B},Apply:function(){return Y},Chain:function(){return H},Compactable:function(){return nd},Do:function(){return n2},Extend:function(){return nc},Filterable:function(){return ng},Foldable:function(){return Z},FromEither:function(){return nE},Functor:function(){return L},Monad:function(){return z},MonadThrow:function(){return nM},Pointed:function(){return G},Traversable:function(){return n_},URI:function(){return W},Witherable:function(){return nx},Zero:function(){return ni},alt:function(){return nt},altW:function(){return nn},ap:function(){return K},apFirst:function(){return nN},apS:function(){return n4},apSecond:function(){return nj},as:function(){return N},asUnit:function(){return j},bind:function(){return n3},bindTo:function(){return n5},chain:function(){return tr},chainEitherK:function(){return nV},chainFirst:function(){return ti},chainFirstEitherK:function(){return nH},chainNullableK:function(){return nZ},compact:function(){return nf},duplicate:function(){return nY},elem:function(){return function n(t){return function(e,r){if(void 0===r){var i=n(t);return function(n){return i(e,n)}}return!nk(r)&&t.equals(e,r.value)}}},exists:function(){return n1},extend:function(){return na},filter:function(){return ns},filterMap:function(){return nh},flap:function(){return nL},flatMap:function(){return V},flatten:function(){return nq},fold:function(){return nA},foldMap:function(){return J},foldW:function(){return nF},fromEither:function(){return nO},fromEitherK:function(){return nB},fromNullable:function(){return nz},fromNullableK:function(){return n$},fromPredicate:function(){return g},getApplyMonoid:function(){return tf},getApplySemigroup:function(){return tc},getEq:function(){return P},getFirstMonoid:function(){return tl},getLastMonoid:function(){return tp},getLeft:function(){return y},getMonoid:function(){return U},getOrElse:function(){return nD},getOrElseW:function(){return nU},getOrd:function(){return A},getRefinement:function(){return tu},getRight:function(){return b},getShow:function(){return F},guard:function(){return nu},isNone:function(){return nk},isSome:function(){return nC},let:function(){return n8},map:function(){return D},mapNullable:function(){return to},match:function(){return nP},matchW:function(){return nW},none:function(){return m},of:function(){return q},option:function(){return ta},orElse:function(){return Q},partition:function(){return nm},partitionMap:function(){return nv},reduce:function(){return X},reduceRight:function(){return $},separate:function(){return np},sequence:function(){return nb},sequenceArray:function(){return te},some:function(){return v},tap:function(){return nG},tapEither:function(){return nK},throwError:function(){return nw},toNullable:function(){return nQ},toUndefined:function(){return n0},traverse:function(){return ny},traverseArray:function(){return tt},traverseArrayWithIndex:function(){return tn},traverseReadonlyArrayWithIndex:function(){return n6},traverseReadonlyNonEmptyArrayWithIndex:function(){return n9},tryCatch:function(){return nX},tryCatchK:function(){return nJ},wilt:function(){return nT},wither:function(){return nS},zero:function(){return nr}});var r=e(46111),i=e(42925),u=e(88543),o=e(25162),a=e(42275),c=e(67560),f=e(97963),l=e(88491),p=e(3291),d=e(34219),s=e(76511),h=e(28957),m=f.YP,v=f.G;function g(n){return function(t){return n(t)?v(t):m}}var y=function(n){return"Right"===n._tag?m:v(n.left)},b=function(n){return"Left"===n._tag?m:v(n.right)},_=function(n,t){return(0,a.pipe)(n,D(t))},I=function(n,t){return(0,a.pipe)(n,K(t))},R=function(n,t,e){return(0,a.pipe)(n,X(t,e))},S=function(n){var t=J(n);return function(n,e){return(0,a.pipe)(n,t(e))}},T=function(n,t,e){return(0,a.pipe)(n,$(t,e))},x=function(n){var t=ny(n);return function(n,e){return(0,a.pipe)(n,t(e))}},w=function(n,t){return(0,a.pipe)(n,nt(t))},M=function(n,t){return(0,a.pipe)(n,ns(t))},O=function(n,t){return(0,a.pipe)(n,nh(t))},E=function(n,t){return(0,a.pipe)(n,na(t))},C=function(n,t){return(0,a.pipe)(n,nm(t))},k=function(n,t){return(0,a.pipe)(n,nv(t))},W="Option",F=function(n){return{show:function(t){return nk(t)?"none":"some(".concat(n.show(t.value),")")}}},P=function(n){return{equals:function(t,e){return t===e||(nk(t)?nk(e):!nk(e)&&n.equals(t.value,e.value))}}},A=function(n){return{equals:P(n).equals,compare:function(t,e){return t===e?0:nC(t)?nC(e)?n.compare(t.value,e.value):1:-1}}},U=function(n){return{concat:function(t,e){return nk(t)?e:nk(e)?t:v(n.concat(t.value,e.value))},empty:m}},D=function(n){return function(t){return nk(t)?m:v(n(t.value))}},L={URI:W,map:_},N=(0,a.dual)(2,(0,c.as)(L)),j=(0,c.asUnit)(L),q=v,G={URI:W,of:q},K=function(n){return function(t){return nk(t)?m:nk(n)?m:v(t.value(n.value))}},Y={URI:W,map:_,ap:I},B={URI:W,map:_,ap:I,of:q},V=(0,a.dual)(2,function(n,t){return nk(n)?m:t(n.value)}),H={URI:W,map:_,ap:I,chain:V},z={URI:W,map:_,ap:I,of:q,chain:V},X=function(n,t){return function(e){return nk(e)?n:t(n,e.value)}},J=function(n){return function(t){return function(e){return nk(e)?n.empty:t(e.value)}}},$=function(n,t){return function(e){return nk(e)?n:t(e.value,n)}},Z={URI:W,reduce:R,foldMap:S,reduceRight:T},Q=(0,a.dual)(2,function(n,t){return nk(n)?t():n}),nn=Q,nt=Q,ne={URI:W,map:_,alt:w},nr=function(){return m},ni={URI:W,zero:nr},nu=(0,h.guard)(ni,G),no={URI:W,map:_,ap:I,of:q,alt:w,zero:nr},na=function(n){return function(t){return nk(t)?m:v(n(t))}},nc={URI:W,map:_,extend:E},nf=V(a.identity),nl=(0,d.separated)(m,m),np=function(n){return nk(n)?nl:(0,d.separated)(y(n.value),b(n.value))},nd={URI:W,compact:nf,separate:np},ns=function(n){return function(t){return nk(t)?m:n(t.value)?t:m}},nh=function(n){return function(t){return nk(t)?m:n(t.value)}},nm=function(n){return function(t){return(0,d.separated)(M(t,(0,l.not)(n)),M(t,n))}},nv=function(n){return(0,a.flow)(D(n),np)},ng={URI:W,map:_,compact:nf,separate:np,filter:M,filterMap:O,partition:C,partitionMap:k},ny=function(n){return function(t){return function(e){return nk(e)?n.of(m):n.map(t(e.value),v)}}},nb=function(n){return function(t){return nk(t)?n.of(m):n.map(t.value,v)}},n_={URI:W,map:_,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:nb},nI=(0,s.witherDefault)(n_,nd),nR=(0,s.wiltDefault)(n_,nd),nS=function(n){var t=nI(n);return function(n){return function(e){return t(e,n)}}},nT=function(n){var t=nR(n);return function(n){return function(e){return t(e,n)}}},nx={URI:W,map:_,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:nb,compact:nf,separate:np,filter:M,filterMap:O,partition:C,partitionMap:k,wither:nI,wilt:nR},nw=function(){return m},nM={URI:W,map:_,ap:I,of:q,chain:V,throwError:nw},nO=b,nE={URI:W,fromEither:nO},nC=f.pC,nk=function(n){return"None"===n._tag},nW=function(n,t){return function(e){return nk(e)?n():t(e.value)}},nF=nW,nP=nW,nA=nP,nU=function(n){return function(t){return nk(t)?n():t.value}},nD=nU,nL=(0,c.flap)(L),nN=(0,i.apFirst)(Y),nj=(0,i.apSecond)(Y),nq=nf,nG=(0,a.dual)(2,u.tap(H)),nK=(0,a.dual)(2,(0,o.tapEither)(nE,H)),nY=na(a.identity),nB=(0,o.fromEitherK)(nE),nV=(0,o.chainEitherK)(nE,H),nH=nK,nz=function(n){return null==n?m:v(n)},nX=function(n){try{return v(n())}catch(n){return m}},nJ=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return nX(function(){return n.apply(void 0,t)})}},n$=function(n){return(0,a.flow)(n,nz)},nZ=function(n){return function(t){return nk(t)?m:nz(n(t.value))}},nQ=nP(a.constNull,a.identity),n0=nP(a.constUndefined,a.identity),n1=function(n){return function(t){return!nk(t)&&n(t.value)}},n2=q(f.F4),n5=(0,c.bindTo)(L),n8=(0,c.let)(L),n3=u.bind(H),n4=(0,i.apS)(Y),n7=q(f.Xl),n9=function(n){return function(t){var e=n(0,f.YM(t));if(nk(e))return m;for(var r=[e.value],i=1;i<t.length;i++){var u=n(i,t[i]);if(nk(u))return m;r.push(u.value)}return v(r)}},n6=function(n){var t=n9(n);return function(n){return f.Od(n)?t(n):n7}},tn=n6,tt=function(n){return n6(function(t,e){return n(e)})},te=tt(a.identity),tr=V,ti=nG;function tu(n){return function(t){return nC(n(t))}}var to=nZ,ta={URI:W,map:_,of:q,ap:I,chain:V,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:nb,zero:nr,alt:w,extend:E,compact:nf,separate:np,filter:M,filterMap:O,partition:C,partitionMap:k,wither:nI,wilt:nR,throwError:nw},tc=(0,i.getApplySemigroup)(Y),tf=(0,r.getApplicativeMonoid)(B),tl=function(){return U((0,p.first)())},tp=function(){return U((0,p.last)())}},5586:function(n,t,e){e.r(t),e.d(t,{Contravariant:function(){return s},URI:function(){return l},between:function(){return S},clamp:function(){return R},contramap:function(){return f},equals:function(){return m},equalsDefault:function(){return u},fromCompare:function(){return o},geq:function(){return b},getDualOrd:function(){return x},getMonoid:function(){return d},getSemigroup:function(){return p},getTupleOrd:function(){return T},gt:function(){return g},leq:function(){return y},lt:function(){return v},max:function(){return I},min:function(){return _},ord:function(){return w},ordBoolean:function(){return O},ordDate:function(){return k},ordNumber:function(){return C},ordString:function(){return E},reverse:function(){return c},trivial:function(){return h},tuple:function(){return a}});var r=e(65191),i=e(42275),u=function(n){return function(t,e){return t===e||0===n(t,e)}},o=function(n){return{equals:u(n),compare:function(t,e){return t===e?0:n(t,e)}}},a=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return o(function(t,e){for(var r=0;r<n.length-1;r++){var i=n[r].compare(t[r],e[r]);if(0!==i)return i}return n[r].compare(t[r],e[r])})},c=function(n){return o(function(t,e){return n.compare(e,t)})},f=function(n){return function(t){return o(function(e,r){return t.compare(n(e),n(r))})}},l="Ord",p=function(){return{concat:function(n,t){return o(function(e,r){var i=n.compare(e,r);return 0!==i?i:t.compare(e,r)})}}},d=function(){return{concat:p().concat,empty:o(function(){return 0})}},s={URI:l,contramap:function(n,t){return(0,i.pipe)(n,f(t))}},h={equals:i.constTrue,compare:(0,i.constant)(0)},m=function(n){return function(t){return function(e){return e===t||0===n.compare(e,t)}}},v=function(n){return function(t,e){return -1===n.compare(t,e)}},g=function(n){return function(t,e){return 1===n.compare(t,e)}},y=function(n){return function(t,e){return 1!==n.compare(t,e)}},b=function(n){return function(t,e){return -1!==n.compare(t,e)}},_=function(n){return function(t,e){return t===e||1>n.compare(t,e)?t:e}},I=function(n){return function(t,e){return t===e||n.compare(t,e)>-1?t:e}},R=function(n){var t=_(n),e=I(n);return function(n,r){return function(i){return e(t(i,r),n)}}},S=function(n){var t=v(n),e=g(n);return function(n,r){return function(i){return!(t(i,n)||e(i,r))}}},T=a,x=c,w=s,M={equals:r.eqStrict.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},O=M,E=M,C=M,k=(0,i.pipe)(C,f(function(n){return n.valueOf()}))},88491:function(n,t,e){e.r(t),e.d(t,{Contravariant:function(){return l},URI:function(){return u},and:function(){return s},contramap:function(){return i},getMonoidAll:function(){return f},getMonoidAny:function(){return a},getSemigroupAll:function(){return c},getSemigroupAny:function(){return o},not:function(){return p},or:function(){return d}});var r=e(42275),i=function(n){return function(t){return(0,r.flow)(n,t)}},u="Predicate",o=function(){return{concat:function(n,t){return(0,r.pipe)(n,d(t))}}},a=function(){return{concat:o().concat,empty:r.constFalse}},c=function(){return{concat:function(n,t){return(0,r.pipe)(n,s(t))}}},f=function(){return{concat:c().concat,empty:r.constTrue}},l={URI:u,contramap:function(n,t){return(0,r.pipe)(n,i(t))}},p=function(n){return function(t){return!n(t)}},d=function(n){return function(t){return function(e){return t(e)||n(e)}}},s=function(n){return function(t){return function(e){return t(e)&&n(e)}}}},31583:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return tB},Alternative:function(){return tz},Applicative:function(){return tj},Apply:function(){return tD},Chain:function(){return tq},ChainRecBreadthFirst:function(){return t4},ChainRecDepthFirst:function(){return t8},Compactable:function(){return tJ},Do:function(){return es},Extend:function(){return tX},Filterable:function(){return t$},FilterableWithIndex:function(){return tZ},Foldable:function(){return tQ},FoldableWithIndex:function(){return t0},FromEither:function(){return et},Functor:function(){return tF},FunctorWithIndex:function(){return tU},Monad:function(){return tG},Pointed:function(){return tA},Traversable:function(){return t1},TraversableWithIndex:function(){return t2},URI:function(){return tS},Unfoldable:function(){return tY},Witherable:function(){return t6},Zero:function(){return tV},_chainRecBreadthFirst:function(){return nQ},_chainRecDepthFirst:function(){return nZ},alt:function(){return n5},altW:function(){return n2},ap:function(){return n8},apFirst:function(){return tL},apS:function(){return eg},apSecond:function(){return tN},append:function(){return I},appendW:function(){return R},bind:function(){return ev},bindTo:function(){return eh},chain:function(){return ey},chainFirst:function(){return tK},chainRecBreadthFirst:function(){return t3},chainRecDepthFirst:function(){return t5},chainWithIndex:function(){return U},chop:function(){return nI},chunksOf:function(){return nS},compact:function(){return tr},comprehension:function(){return nx},concat:function(){return nM},concatW:function(){return nw},cons:function(){return e_},deleteAt:function(){return na},difference:function(){return nC},dropLeft:function(){return J},dropLeftWhile:function(){return Z},dropRight:function(){return $},duplicate:function(){return tl},elem:function(){return ny},empty:function(){return ec},every:function(){return ef},exists:function(){return ep},extend:function(){return tf},filter:function(){return tn},filterE:function(){return en},filterMap:function(){return te},filterMapWithIndex:function(){return tt},filterWithIndex:function(){return tc},findFirst:function(){return nn},findFirstMap:function(){return nt},findIndex:function(){return Q},findLast:function(){return ne},findLastIndex:function(){return ni},findLastMap:function(){return nr},flap:function(){return tP},flatMap:function(){return n3},flatten:function(){return n4},foldLeft:function(){return W},foldMap:function(){return ts},foldMapWithIndex:function(){return tp},foldRight:function(){return A},fromArray:function(){return ea},fromEither:function(){return M},fromEitherK:function(){return ee},fromOption:function(){return w},fromOptionK:function(){return nT},fromPredicate:function(){return x},getDifferenceMagma:function(){return tW},getEq:function(){return tM},getIntersectionSemigroup:function(){return tk},getMonoid:function(){return tw},getOrd:function(){return tO},getSemigroup:function(){return tx},getShow:function(){return tT},getUnionMonoid:function(){return tC},getUnionSemigroup:function(){return tE},guard:function(){return tH},head:function(){return q},init:function(){return Y},insertAt:function(){return nu},intercalate:function(){return ed},intersection:function(){return nE},intersperse:function(){return nv},isEmpty:function(){return g},isNonEmpty:function(){return y},isOutOfBound:function(){return j},last:function(){return G},lefts:function(){return np},let:function(){return em},lookup:function(){return function n(t,e){return void 0===e?function(e){return n(t,e)}:j(t,e)?f.YP:f.G(e[t])}},makeBy:function(){return S},map:function(){return n7},mapWithIndex:function(){return n9},match:function(){return E},matchLeft:function(){return k},matchLeftW:function(){return C},matchRight:function(){return P},matchRightW:function(){return F},matchW:function(){return O},modifyAt:function(){return nc},of:function(){return n0},partition:function(){return ti},partitionMap:function(){return to},partitionMapWithIndex:function(){return ta},partitionWithIndex:function(){return tu},prepend:function(){return b},prependAll:function(){return nm},prependToAll:function(){return eR},prependW:function(){return _},range:function(){return eb},readonlyArray:function(){return eS},reduce:function(){return td},reduceRight:function(){return tm},reduceRightWithIndex:function(){return tv},reduceWithIndex:function(){return th},replicate:function(){return T},reverse:function(){return nf},rights:function(){return nl},rotate:function(){return ng},scanLeft:function(){return D},scanRight:function(){return L},separate:function(){return n6},sequence:function(){return ty},size:function(){return N},snoc:function(){return eI},some:function(){return el},sort:function(){return nd},sortBy:function(){return n_},spanLeft:function(){return X},splitAt:function(){return nR},tail:function(){return K},takeLeft:function(){return B},takeLeftWhile:function(){return H},takeRight:function(){return V},toArray:function(){return eo},traverse:function(){return tg},traverseWithIndex:function(){return tb},unfold:function(){return tR},union:function(){return nO},uniq:function(){return nb},unsafeDeleteAt:function(){return eu},unsafeInsertAt:function(){return er},unsafeUpdateAt:function(){return ei},unzip:function(){return nh},updateAt:function(){return no},wilt:function(){return tI},wither:function(){return t_},zero:function(){return n1},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:ns(t,e,function(n,t){return[n,t]})}},zipWith:function(){return ns}});var r=e(42925),i=e(88543),u=e(65191),o=e(25162),a=e(42275),c=e(67560),f=e(97963),l=e(76627),p=e(5586),d=e(28350),s=e(34219),h=e(76511),m=e(28957),v=function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},g=function(n){return 0===n.length},y=d.isNonEmpty,b=d.prepend,_=d.prependW,I=d.append,R=d.appendW,S=function(n,t){return n<=0?ec:d.makeBy(t)(n)},T=function(n,t){return S(n,function(){return t})};function x(n){return function(t){return n(t)?[t]:ec}}var w=function(n){return f.Wi(n)?ec:[n.value]},M=function(n){return f.nM(n)?ec:[n.right]},O=function(n,t){return function(e){return y(e)?t(e):n()}},E=O,C=function(n,t){return function(e){return y(e)?t(d.head(e),d.tail(e)):n()}},k=C,W=k,F=function(n,t){return function(e){return y(e)?t(d.init(e),d.last(e)):n()}},P=F,A=P,U=function(n){return function(t){if(g(t))return ec;for(var e=[],r=0;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},D=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[0]=n;for(var u=0;u<r;u++)i[u+1]=t(i[u],e[u]);return i}},L=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[r]=n;for(var u=r-1;u>=0;u--)i[u]=t(e[u],i[u+1]);return i}},N=function(n){return n.length},j=d.isOutOfBound,q=function(n){return y(n)?f.G(d.head(n)):f.YP},G=function(n){return y(n)?f.G(d.last(n)):f.YP},K=function(n){return y(n)?f.G(d.tail(n)):f.YP},Y=function(n){return y(n)?f.G(d.init(n)):f.YP},B=function(n){return function(t){return j(n,t)?t:0===n?ec:t.slice(0,n)}},V=function(n){return function(t){return j(n,t)?t:0===n?ec:t.slice(-n)}};function H(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r];if(!n(i))break;e.push(i)}var u=e.length;return u===t.length?t:0===u?ec:e}}var z=function(n,t){for(var e=n.length,r=0;r<e&&t(n[r]);r++);return r};function X(n){return function(t){var e=nR(z(t,n))(t);return{init:e[0],rest:e[1]}}}var J=function(n){return function(t){return n<=0||g(t)?t:n>=t.length?ec:t.slice(n,t.length)}},$=function(n){return function(t){return n<=0||g(t)?t:n>=t.length?ec:t.slice(0,t.length-n)}};function Z(n){return function(t){var e=z(t,n);return 0===e?t:e===t.length?ec:t.slice(e)}}var Q=function(n){return function(t){for(var e=0;e<t.length;e++)if(n(t[e]))return f.G(e);return f.YP}};function nn(n){return function(t){for(var e=0;e<t.length;e++)if(n(t[e]))return f.G(t[e]);return f.YP}}var nt=function(n){return function(t){for(var e=0;e<t.length;e++){var r=n(t[e]);if(f.pC(r))return r}return f.YP}};function ne(n){return function(t){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return f.G(t[e]);return f.YP}}var nr=function(n){return function(t){for(var e=t.length-1;e>=0;e--){var r=n(t[e]);if(f.pC(r))return r}return f.YP}},ni=function(n){return function(t){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return f.G(e);return f.YP}},nu=function(n,t){return function(e){return n<0||n>e.length?f.YP:f.G(d.unsafeInsertAt(n,t,e))}},no=function(n,t){return nc(n,function(){return t})},na=function(n){return function(t){return j(n,t)?f.YP:f.G(eu(n,t))}},nc=function(n,t){return function(e){return j(n,e)?f.YP:f.G(ei(n,t(e[n]),e))}},nf=function(n){return n.length<=1?n:n.slice().reverse()},nl=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Right"===r._tag&&t.push(r.right)}return t},np=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Left"===r._tag&&t.push(r.left)}return t},nd=function(n){return function(t){return t.length<=1?t:t.slice().sort(n.compare)}},ns=function(n,t,e){for(var r=[],i=Math.min(n.length,t.length),u=0;u<i;u++)r[u]=e(n[u],t[u]);return r},nh=function(n){for(var t=[],e=[],r=0;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},nm=function(n){var t=d.prependAll(n);return function(n){return y(n)?t(n):n}},nv=function(n){var t=d.intersperse(n);return function(n){return y(n)?t(n):n}},ng=function(n){var t=d.rotate(n);return function(n){return y(n)?t(n):n}};function ny(n){return function(t,e){if(void 0===e){var r,i=ny(n);return function(n){return i(t,n)}}for(var u=0;u<e.length;u++)if(r=e[u],n.equals(r,t))return!0;return!1}}var nb=function(n){var t=d.uniq(n);return function(n){return y(n)?t(n):n}},n_=function(n){var t=d.sortBy(n);return function(n){return y(n)?t(n):n}},nI=function(n){var t=d.chop(n);return function(n){return y(n)?t(n):ec}},nR=function(n){return function(t){return n>=1&&y(t)?d.splitAt(n)(t):g(t)?[t,ec]:[ec,t]}},nS=function(n){var t=d.chunksOf(n);return function(n){return y(n)?t(n):ec}},nT=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return w(n.apply(void 0,t))}};function nx(n,t,e){void 0===e&&(e=function(){return!0});var r=function(n,i){return y(i)?n3(d.head(i),function(t){return r((0,a.pipe)(n,I(t)),d.tail(i))}):e.apply(void 0,n)?[t.apply(void 0,n)]:ec};return r(ec,n)}var nw=function(n){return function(t){return g(t)?n:g(n)?t:t.concat(n)}},nM=nw;function nO(n){var t=d.union(n);return function(e,r){if(void 0===r){var i=nO(n);return function(n){return i(n,e)}}return y(e)&&y(r)?t(r)(e):y(e)?e:r}}function nE(n){var t=ny(n);return function(e,r){if(void 0===r){var i=nE(n);return function(n){return i(n,e)}}return e.filter(function(n){return t(n,r)})}}function nC(n){var t=ny(n);return function(e,r){if(void 0===r){var i=nC(n);return function(n){return i(n,e)}}return e.filter(function(n){return!t(n,r)})}}var nk=function(n,t){return(0,a.pipe)(n,n7(t))},nW=function(n,t){return(0,a.pipe)(n,n9(t))},nF=function(n,t){return(0,a.pipe)(n,n8(t))},nP=function(n,t){return(0,a.pipe)(n,tn(t))},nA=function(n,t){return(0,a.pipe)(n,te(t))},nU=function(n,t){return(0,a.pipe)(n,ti(t))},nD=function(n,t){return(0,a.pipe)(n,to(t))},nL=function(n,t){return(0,a.pipe)(n,tu(t))},nN=function(n,t){return(0,a.pipe)(n,ta(t))},nj=function(n,t){return(0,a.pipe)(n,n5(t))},nq=function(n,t,e){return(0,a.pipe)(n,td(t,e))},nG=function(n){var t=ts(n);return function(n,e){return(0,a.pipe)(n,t(e))}},nK=function(n,t,e){return(0,a.pipe)(n,tm(t,e))},nY=function(n,t,e){return(0,a.pipe)(n,th(t,e))},nB=function(n){var t=tp(n);return function(n,e){return(0,a.pipe)(n,t(e))}},nV=function(n,t,e){return(0,a.pipe)(n,tv(t,e))},nH=function(n,t){return(0,a.pipe)(n,tt(t))},nz=function(n,t){return(0,a.pipe)(n,tc(t))},nX=function(n,t){return(0,a.pipe)(n,tf(t))},nJ=function(n){var t=tg(n);return function(n,e){return(0,a.pipe)(n,t(e))}},n$=function(n){var t=tb(n);return function(n,e){return(0,a.pipe)(n,t(e))}},nZ=function(n,t){return(0,a.pipe)(n,t5(t))},nQ=function(n,t){return(0,a.pipe)(n,t3(t))},n0=d.of,n1=function(){return ec},n2=function(n){return function(t){return t.concat(n())}},n5=n2,n8=function(n){return n3(function(t){return(0,a.pipe)(n,n7(t))})},n3=(0,a.dual)(2,function(n,t){return(0,a.pipe)(n,U(function(n,e){return t(e,n)}))}),n4=n3(a.identity),n7=function(n){return function(t){return t.map(function(t){return n(t)})}},n9=function(n){return function(t){return t.map(function(t,e){return n(e,t)})}},n6=function(n){for(var t=[],e=[],r=0;r<n.length;r++){var i=n[r];"Left"===i._tag?t.push(i.left):e.push(i.right)}return(0,s.separated)(t,e)},tn=function(n){return function(t){return t.filter(n)}},tt=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=n(r,t[r]);f.pC(i)&&e.push(i.value)}return e}},te=function(n){return tt(function(t,e){return n(e)})},tr=te(a.identity),ti=function(n){return tu(function(t,e){return n(e)})},tu=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=t[i];n(i,u)?r.push(u):e.push(u)}return(0,s.separated)(e,r)}},to=function(n){return ta(function(t,e){return n(e)})},ta=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=n(i,t[i]);"Left"===u._tag?e.push(u.left):r.push(u.right)}return(0,s.separated)(e,r)}},tc=function(n){return function(t){return t.filter(function(t,e){return n(e,t)})}},tf=function(n){return function(t){return t.map(function(e,r){return n(t.slice(r))})}},tl=tf(a.identity),tp=function(n){return function(t){return function(e){return e.reduce(function(e,r,i){return n.concat(e,t(i,r))},n.empty)}}},td=function(n,t){return th(n,function(n,e,r){return t(e,r)})},ts=function(n){var t=tp(n);return function(n){return t(function(t,e){return n(e)})}},th=function(n,t){return function(e){for(var r=e.length,i=n,u=0;u<r;u++)i=t(u,i,e[u]);return i}},tm=function(n,t){return tv(n,function(n,e,r){return t(e,r)})},tv=function(n,t){return function(e){return e.reduceRight(function(n,e,r){return t(r,e,n)},n)}},tg=function(n){var t=tb(n);return function(n){return t(function(t,e){return n(e)})}},ty=function(n){return function(t){return nq(t,n.of(n1()),function(t,e){return n.ap(n.map(t,function(n){return function(t){return(0,a.pipe)(n,I(t))}}),e)})}},tb=function(n){return function(t){return th(n.of(n1()),function(e,r,i){return n.ap(n.map(r,function(n){return function(t){return(0,a.pipe)(n,I(t))}}),t(e,i))})}},t_=function(n){var t=t7(n);return function(n){return function(e){return t(e,n)}}},tI=function(n){var t=t9(n);return function(n){return function(e){return t(e,n)}}},tR=function(n,t){for(var e=[],r=n;;){var i=t(r);if(f.pC(i)){var u=i.value,o=u[0],a=u[1];e.push(o),r=a}else break}return e},tS="ReadonlyArray",tT=function(n){return{show:function(t){return"[".concat(t.map(n.show).join(", "),"]")}}},tx=function(){return{concat:function(n,t){return g(n)?t:g(t)?n:n.concat(t)}}},tw=function(){return{concat:tx().concat,empty:ec}},tM=function(n){return(0,u.fromEquals)(function(t,e){return t.length===e.length&&t.every(function(t,r){return n.equals(t,e[r])})})},tO=function(n){return(0,p.fromCompare)(function(t,e){for(var r=t.length,i=e.length,u=Math.min(r,i),o=0;o<u;o++){var a=n.compare(t[o],e[o]);if(0!==a)return a}return l.Ord.compare(r,i)})},tE=function(n){var t=nO(n);return{concat:function(n,e){return t(e)(n)}}},tC=function(n){return{concat:tE(n).concat,empty:ec}},tk=function(n){var t=nE(n);return{concat:function(n,e){return t(e)(n)}}},tW=function(n){var t=nC(n);return{concat:function(n,e){return t(e)(n)}}},tF={URI:tS,map:nk},tP=(0,c.flap)(tF),tA={URI:tS,of:n0},tU={URI:tS,map:nk,mapWithIndex:nW},tD={URI:tS,map:nk,ap:nF},tL=(0,r.apFirst)(tD),tN=(0,r.apSecond)(tD),tj={URI:tS,map:nk,ap:nF,of:n0},tq={URI:tS,map:nk,ap:nF,chain:n3},tG={URI:tS,map:nk,ap:nF,of:n0,chain:n3},tK=(0,i.chainFirst)(tq),tY={URI:tS,unfold:tR},tB={URI:tS,map:nk,alt:nj},tV={URI:tS,zero:n1},tH=(0,m.guard)(tV,tA),tz={URI:tS,map:nk,ap:nF,of:n0,alt:nj,zero:n1},tX={URI:tS,map:nk,extend:nX},tJ={URI:tS,compact:tr,separate:n6},t$={URI:tS,map:nk,compact:tr,separate:n6,filter:nP,filterMap:nA,partition:nU,partitionMap:nD},tZ={URI:tS,map:nk,mapWithIndex:nW,compact:tr,separate:n6,filter:nP,filterMap:nA,partition:nU,partitionMap:nD,partitionMapWithIndex:nN,partitionWithIndex:nL,filterMapWithIndex:nH,filterWithIndex:nz},tQ={URI:tS,reduce:nq,foldMap:nG,reduceRight:nK},t0={URI:tS,reduce:nq,foldMap:nG,reduceRight:nK,reduceWithIndex:nY,foldMapWithIndex:nB,reduceRightWithIndex:nV},t1={URI:tS,map:nk,reduce:nq,foldMap:nG,reduceRight:nK,traverse:nJ,sequence:ty},t2={URI:tS,map:nk,mapWithIndex:nW,reduce:nq,foldMap:nG,reduceRight:nK,reduceWithIndex:nY,foldMapWithIndex:nB,reduceRightWithIndex:nV,traverse:nJ,sequence:ty,traverseWithIndex:n$},t5=function(n){return function(t){for(var e=v([],n(t),!0),r=[];e.length>0;){var i=e.shift();f.nM(i)?e.unshift.apply(e,n(i.left)):r.push(i.right)}return r}},t8={URI:tS,map:nk,ap:nF,chain:n3,chainRec:nZ},t3=function(n){return function(t){var e=n(t),r=[],i=[];function u(t){f.nM(t)?n(t.left).forEach(function(n){return r.push(n)}):i.push(t.right)}for(var o=0;o<e.length;o++)u(e[o]);for(;r.length>0;)u(r.shift());return i}},t4={URI:tS,map:nk,ap:nF,chain:n3,chainRec:nQ},t7=(0,h.witherDefault)(t1,tJ),t9=(0,h.wiltDefault)(t1,tJ),t6={URI:tS,map:nk,compact:tr,separate:n6,filter:nP,filterMap:nA,partition:nU,partitionMap:nD,reduce:nq,foldMap:nG,reduceRight:nK,traverse:nJ,sequence:ty,wither:t7,wilt:t9},en=(0,h.filterE)(t6),et={URI:tS,fromEither:M},ee=(0,o.fromEitherK)(et),er=d.unsafeInsertAt,ei=function(n,t,e){return y(e)?d.unsafeUpdateAt(n,t,e):e},eu=function(n,t){var e=t.slice();return e.splice(n,1),e},eo=function(n){return n.slice()},ea=function(n){return g(n)?ec:n.slice()},ec=d.empty;function ef(n){return function(t){return t.every(n)}}var el=function(n){return function(t){return t.some(n)}},ep=el,ed=function(n){var t=d.intercalate(n);return function(e){return E(function(){return n.empty},t(e))}},es=n0(f.F4),eh=(0,c.bindTo)(tF),em=(0,c.let)(tF),ev=(0,i.bind)(tq),eg=(0,r.apS)(tD),ey=n3,eb=d.range,e_=d.cons,eI=d.snoc,eR=nm,eS={URI:tS,compact:tr,separate:n6,map:nk,ap:nF,of:n0,chain:n3,filter:nP,filterMap:nA,partition:nU,partitionMap:nD,mapWithIndex:nW,partitionMapWithIndex:nN,partitionWithIndex:nL,filterMapWithIndex:nH,filterWithIndex:nz,alt:nj,zero:n1,unfold:tR,reduce:nq,foldMap:nG,reduceRight:nK,traverse:nJ,sequence:ty,reduceWithIndex:nY,foldMapWithIndex:nB,reduceRightWithIndex:nV,traverseWithIndex:n$,extend:nX,wither:t7,wilt:t9}},13512:function(n,t,e){e.r(t),e.d(t,{Compactable:function(){return np},Filterable:function(){return nd},Functor:function(){return nc},URI:function(){return ne},collect:function(){return y},compact:function(){return z},deleteAt:function(){return R},difference:function(){return nw},elem:function(){return function n(t){return function(e,r){if(void 0===r){var i,u=n(t);return function(n){return u(e,n)}}for(var o=r.values();!(i=o.next()).done;){var a=i.value;if(t.equals(e,a))return!0}return!1}}},empty:function(){return E},filter:function(){return X},filterMap:function(){return J},filterMapWithIndex:function(){return D},filterWithIndex:function(){return L},flap:function(){return nf},foldMap:function(){return nh},foldMapWithIndex:function(){return ny},fromFoldable:function(){return F},fromMap:function(){return l},getDifferenceMagma:function(){return no},getEq:function(){return C},getFilterableWithIndex:function(){return na},getFoldable:function(){return nv},getFoldableWithIndex:function(){return n_},getFunctorWithIndex:function(){return nl},getIntersectionSemigroup:function(){return nu},getMonoid:function(){return k},getShow:function(){return d},getTraversable:function(){return nI},getTraversableWithIndex:function(){return nR},getUnionMonoid:function(){return ni},getUnionSemigroup:function(){return nr},getWitherable:function(){return nS},insertAt:function(){return nM},intersection:function(){return nx},isEmpty:function(){return h},isSubmap:function(){return O},keys:function(){return v},lookup:function(){return M},lookupWithKey:function(){return w},map:function(){return $},mapWithIndex:function(){return Z},member:function(){return m},modifyAt:function(){return T},partition:function(){return Q},partitionMap:function(){return nn},partitionMapWithIndex:function(){return A},partitionWithIndex:function(){return U},pop:function(){return x},readonlyMap:function(){return nO},reduce:function(){return ns},reduceRight:function(){return nm},reduceRightWithIndex:function(){return nb},reduceWithIndex:function(){return ng},separate:function(){return nt},singleton:function(){return W},size:function(){return s},toMap:function(){return p},toReadonlyArray:function(){return b},toUnfoldable:function(){return _},union:function(){return nT},updateAt:function(){return S},upsertAt:function(){return I},values:function(){return g}});var r=e(65191),i=e(42275),u=e(67560),o=e(97963),a=e(20492),c=e(34219),f=e(76511),l=function(n){return new Map(n)};function p(n){return new Map(n)}function d(n,t){return{show:function(e){var r=[];return e.forEach(function(e,i){r.push("[".concat(n.show(i),", ").concat(t.show(e),"]"))}),"new Map([".concat(r.sort().join(", "),"])")}}}var s=function(n){return n.size},h=function(n){return 0===n.size};function m(n){var t=M(n);return function(e,r){if(void 0===r){var i=m(n);return function(n){return i(e,n)}}return o.pC(t(e,r))}}var v=function(n){return function(t){return Array.from(t.keys()).sort(n.compare)}},g=function(n){return function(t){return Array.from(t.values()).sort(n.compare)}};function y(n){var t=v(n);return function(n){return function(e){for(var r=[],i=t(e),u=0;u<i.length;u++){var o=i[u];r.push(n(o,e.get(o)))}return r}}}var b=function(n){return y(n)(function(n,t){return[n,t]})};function _(n,t){var e=b(n);return function(n){var r=e(n),i=r.length;return t.unfold(0,function(n){return n<i?o.G([r[n],n+1]):o.YP})}}var I=function(n){var t=w(n);return function(n,e){var r=t(n);return function(t){var i=r(t);if(o.Wi(i)){var u=new Map(t);return u.set(n,e),u}if(i.value[1]!==e){var u=new Map(t);return u.set(i.value[0],e),u}return t}}},R=function(n){var t=w(n);return function(n){return function(e){var r=t(n,e);if(o.pC(r)){var i=new Map(e);return i.delete(r.value[0]),i}return e}}},S=function(n){var t=T(n);return function(n,e){return t(n,function(){return e})}},T=function(n){var t=w(n);return function(n,e){return function(r){var i=t(n,r);if(o.Wi(i))return o.YP;var u=i.value,a=u[0],c=u[1],f=e(c);if(f===c)return o.G(r);var l=new Map(r);return l.set(a,f),o.G(l)}}};function x(n){var t=M(n),e=R(n);return function(n){var r=e(n);return function(e){return(0,i.pipe)(t(n,e),a.map(function(n){return[n,r(e)]}))}}}function w(n){return function(t,e){if(void 0===e){var r,i=w(n);return function(n){return i(t,n)}}for(var u=e.entries();!(r=u.next()).done;){var a=r.value,c=a[0],f=a[1];if(n.equals(c,t))return o.G([c,f])}return o.YP}}function M(n){var t=w(n);return function(e,r){if(void 0===r){var u=M(n);return function(n){return u(e,n)}}return(0,i.pipe)(t(e,r),a.map(function(n){return n[0],n[1]}))}}function O(n,t){var e=w(n);return function(r,i){if(void 0===i){var u,a=O(n,t);return function(n){return a(n,r)}}for(var c=r.entries();!(u=c.next()).done;){var f=u.value,l=f[0],p=f[1],d=e(l,i);if(o.Wi(d)||!n.equals(l,d.value[0])||!t.equals(p,d.value[1]))return!1}return!0}}var E=new Map;function C(n,t){var e=O(n,t);return(0,r.fromEquals)(function(n,t){return e(n,t)&&e(t,n)})}function k(n,t){var e=w(n);return{concat:function(n,r){if(h(n))return r;if(h(r))return n;for(var i,u=new Map(n),a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=e(f,n);o.pC(p)?u.set(p.value[0],t.concat(p.value[1],l)):u.set(f,l)}return u},empty:E}}var W=function(n,t){return new Map([[n,t]])};function F(n,t,e){return function(r){var i=w(n);return e.reduce(r,new Map,function(n,e){var r=e[0],u=e[1],a=i(r,n);return o.pC(a)?n.set(a.value[0],t.concat(a.value[1],u)):n.set(r,u),n})}}var P=function(n,t){for(var e,r=new Map,i=n.entries();!(e=i.next()).done;){var u=e.value,o=u[0],a=u[1];r.set(o,t(o,a))}return r},A=function(n){return function(t){for(var e,r=new Map,i=new Map,u=t.entries();!(e=u.next()).done;){var a=e.value,f=a[0],l=n(f,a[1]);o.nM(l)?r.set(f,l.left):i.set(f,l.right)}return(0,c.separated)(r,i)}};function U(n){return function(t){for(var e,r=new Map,i=new Map,u=t.entries();!(e=u.next()).done;){var o=e.value,a=o[0],f=o[1];n(a,f)?i.set(a,f):r.set(a,f)}return(0,c.separated)(r,i)}}var D=function(n){return function(t){for(var e,r=new Map,i=t.entries();!(e=i.next()).done;){var u=e.value,a=u[0],c=n(a,u[1]);o.pC(c)&&r.set(a,c.value)}return r}};function L(n){return function(t){for(var e,r=new Map,i=t.entries();!(e=i.next()).done;){var u=e.value,o=u[0],a=u[1];n(o,a)&&r.set(o,a)}return r}}var N=function(n,t){return P(n,function(n,e){return t(e)})},j=function(n,t){return Y(n,function(n,e){return t(e)})},q=function(n,t){return B(n,function(n,e){return t(e)})},G=function(n,t){return V(n,function(n,e){return t(e)})},K=function(n,t){return H(n,function(n,e){return t(e)})},Y=function(n,t){return(0,i.pipe)(n,L(t))},B=function(n,t){return(0,i.pipe)(n,D(t))},V=function(n,t){return(0,i.pipe)(n,U(t))},H=function(n,t){return(0,i.pipe)(n,A(t))},z=function(n){for(var t,e=new Map,r=n.entries();!(t=r.next()).done;){var i=t.value,u=i[0],a=i[1];o.pC(a)&&e.set(u,a.value)}return e},X=function(n){return function(t){return j(t,n)}},J=function(n){return function(t){return q(t,n)}},$=function(n){return function(t){return N(t,n)}},Z=function(n){return function(t){return P(t,n)}},Q=function(n){return function(t){return G(t,n)}},nn=function(n){return function(t){return K(t,n)}},nt=function(n){for(var t,e=new Map,r=new Map,i=n.entries();!(t=i.next()).done;){var u=t.value,a=u[0],f=u[1];o.nM(f)?e.set(a,f.left):r.set(a,f.right)}return(0,c.separated)(e,r)},ne="ReadonlyMap",nr=function(n,t){var e=nT(n,t);return{concat:function(n,t){return e(t)(n)}}},ni=function(n,t){return{concat:nr(n,t).concat,empty:E}},nu=function(n,t){var e=nx(n,t);return{concat:function(n,t){return e(t)(n)}}},no=function(n){return function(){var t=nw(n);return{concat:function(n,e){return t(e)(n)}}}};function na(){return{URI:ne,_E:void 0,map:N,mapWithIndex:P,compact:z,separate:nt,filter:j,filterMap:q,partition:G,partitionMap:K,partitionMapWithIndex:H,partitionWithIndex:V,filterMapWithIndex:B,filterWithIndex:Y}}var nc={URI:ne,map:N},nf=(0,u.flap)(nc),nl=function(){return{URI:ne,_E:void 0,map:N,mapWithIndex:P}},np={URI:ne,compact:z,separate:nt},nd={URI:ne,map:N,compact:z,separate:nt,filter:j,filterMap:q,partition:G,partitionMap:K},ns=function(n){var t=ng(n);return function(n,e){return t(n,function(n,t,r){return e(t,r)})}},nh=function(n){var t=ny(n);return function(n){var e=t(n);return function(n){return e(function(t,e){return n(e)})}}},nm=function(n){var t=nb(n);return function(n,e){return t(n,function(n,t,r){return e(t,r)})}},nv=function(n){var t=ns(n),e=nh(n),r=nm(n);return{URI:ne,_E:void 0,reduce:function(n,e,r){return(0,i.pipe)(n,t(e,r))},foldMap:function(n){var t=e(n);return function(n,e){return(0,i.pipe)(n,t(e))}},reduceRight:function(n,t,e){return(0,i.pipe)(n,r(t,e))}}},ng=function(n){var t=v(n);return function(n,e){return function(r){for(var i=n,u=0,o=t(r);u<o.length;u++){var a=o[u];i=e(a,i,r.get(a))}return i}}},ny=function(n){var t=v(n);return function(n){return function(e){return function(r){for(var i=n.empty,u=0,o=t(r);u<o.length;u++){var a=o[u];i=n.concat(i,e(a,r.get(a)))}return i}}}},nb=function(n){var t=v(n);return function(n,e){return function(r){for(var i=n,u=t(r),o=u.length,a=o-1;a>=0;a--){var c=u[a];i=e(c,r.get(c),i)}return i}}},n_=function(n){var t=nv(n),e=ng(n),r=ny(n),u=nb(n);return{URI:ne,_E:void 0,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:function(n,t,r){return(0,i.pipe)(n,e(t,r))},foldMapWithIndex:function(n){var t=r(n);return function(n,e){return(0,i.pipe)(n,t(e))}},reduceRightWithIndex:function(n,t,e){return(0,i.pipe)(n,u(t,e))}}},nI=function(n){var t=nR(n),e=nv(n);return{URI:ne,_E:void 0,map:N,reduce:e.reduce,foldMap:e.foldMap,reduceRight:e.reduceRight,traverse:t.traverse,sequence:t.sequence}},nR=function(n){var t=n_(n),e=v(n),r=function(n){return function(t,r){for(var i=n.of(new Map),u=e(t),o=u.length,a=0;a<o;a++)!function(e){var o=u[e],a=t.get(o);i=n.ap(n.map(i,function(n){return function(t){return n.set(o,t)}}),r(o,a))}(a);return i}};return{URI:ne,_E:void 0,map:N,mapWithIndex:P,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:function(n){var t=r(n);return function(n,e){return t(n,function(n,t){return e(t)})}},sequence:function(n){var t=r(n);return function(n){return t(n,i.SK)}},traverseWithIndex:r}};function nS(n){var t=nR(n);return{URI:ne,_E:void 0,map:N,compact:z,separate:nt,filter:j,filterMap:q,partition:G,partitionMap:K,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,traverse:t.traverse,sequence:t.sequence,mapWithIndex:P,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverseWithIndex:t.traverseWithIndex,wilt:(0,f.wiltDefault)(t,np),wither:(0,f.witherDefault)(t,np)}}var nT=function(n,t){var e=M(n);return function(n){return function(r){if(h(r))return n;if(h(n))return r;for(var i,u=new Map,a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=e(f)(n);o.pC(p)?u.set(f,t.concat(l,p.value)):u.set(f,l)}for(var d=n.entries();!(i=d.next()).done;){var s=i.value,f=s[0],l=s[1],p=e(f)(u);o.Wi(p)&&u.set(f,l)}return u}}},nx=function(n,t){var e=M(n);return function(n){return function(r){if(h(r)||h(n))return E;for(var i,u=new Map,a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=e(f)(n);o.pC(p)&&u.set(f,t.concat(l,p.value))}return u}}},nw=function(n){var t=m(n);return function(n){return function(e){if(h(e))return n;if(h(n))return e;for(var r,i=new Map,u=e.entries();!(r=u.next()).done;){var o=r.value,a=o[0],c=o[1];t(a)(n)||i.set(a,c)}for(var f=n.entries();!(r=f.next()).done;){var l=r.value,a=l[0],c=l[1];t(a)(e)||i.set(a,c)}return i}}},nM=I,nO={URI:ne,map:N,compact:z,separate:nt,filter:j,filterMap:q,partition:G,partitionMap:K}},28350:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return nH},Applicative:function(){return nN},Apply:function(){return nU},Chain:function(){return nj},Comonad:function(){return nz},Do:function(){return nX},Foldable:function(){return nK},FoldableWithIndex:function(){return nY},Functor:function(){return nW},FunctorWithIndex:function(){return nA},Monad:function(){return nG},Pointed:function(){return nP},Traversable:function(){return nB},TraversableWithIndex:function(){return nV},URI:function(){return nM},alt:function(){return nf},altW:function(){return nc},ap:function(){return nl},apFirst:function(){return nD},apS:function(){return nQ},apSecond:function(){return nL},append:function(){return y},appendW:function(){return g},bind:function(){return nZ},bindTo:function(){return nJ},chain:function(){return ti},chainFirst:function(){return nq},chainWithIndex:function(){return Y},chop:function(){return B},chunksOf:function(){return H},concat:function(){return F},concatAll:function(){return n4},concatW:function(){return W},cons:function(){return tl},duplicate:function(){return ns},empty:function(){return d},extend:function(){return nd},extract:function(){return nw},filter:function(){return to},filterWithIndex:function(){return ta},flap:function(){return nF},flatMap:function(){return np},flatten:function(){return nh},fold:function(){return th},foldMap:function(){return ny},foldMapWithIndex:function(){return nI},fromArray:function(){return k},fromReadonlyArray:function(){return x},getEq:function(){return nC},getSemigroup:function(){return nE},getShow:function(){return nO},getUnionSemigroup:function(){return nk},group:function(){return A},groupBy:function(){return U},groupSort:function(){return tu},head:function(){return n0},init:function(){return n5},insertAt:function(){return td},intercalate:function(){return tr},intersperse:function(){return K},isNonEmpty:function(){return s},isOutOfBound:function(){return h},last:function(){return n2},let:function(){return n$},makeBy:function(){return w},map:function(){return nm},mapWithIndex:function(){return nv},matchLeft:function(){return n7},matchRight:function(){return n9},max:function(){return n3},min:function(){return n8},modifyAt:function(){return N},modifyHead:function(){return n6},modifyLast:function(){return tt},of:function(){return na},prepend:function(){return v},prependAll:function(){return G},prependToAll:function(){return ts},prependW:function(){return m},range:function(){return O},readonlyNonEmptyArray:function(){return tm},reduce:function(){return ng},reduceRight:function(){return nb},reduceRightWithIndex:function(){return nR},reduceWithIndex:function(){return n_},replicate:function(){return M},reverse:function(){return P},rotate:function(){return T},sequence:function(){return nT},snoc:function(){return tp},sort:function(){return D},sortBy:function(){return R},splitAt:function(){return V},tail:function(){return n1},traverse:function(){return nS},traverseWithIndex:function(){return nx},unappend:function(){return C},uncons:function(){return tc},union:function(){return S},uniq:function(){return I},unprepend:function(){return E},unsafeInsertAt:function(){return b},unsafeUpdateAt:function(){return _},unsnoc:function(){return tf},unzip:function(){return q},updateAt:function(){return L},updateHead:function(){return tn},updateLast:function(){return te},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:j(t,e,function(n,t){return[n,t]})}},zipWith:function(){return j}});var r=e(42925),i=e(88543),u=e(65191),o=e(42275),a=e(67560),c=e(97963),f=e(5586),l=e(3291),p=function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},d=c.Xl,s=c.Od,h=function(n,t){return n<0||n>=t.length},m=function(n){return function(t){return p([n],t,!0)}},v=m,g=function(n){return function(t){return p(p([],t,!0),[n],!1)}},y=g,b=function(n,t,e){if(s(e)){var r=c.r1(e);return r.splice(n,0,t),r}return[t]},_=function(n,t,e){if(e[n]===t)return e;var r=c.r1(e);return r[n]=t,r},I=function(n){return function(t){if(1===t.length)return t;for(var e=[n0(t)],r=n1(t),i=function(t){e.every(function(e){return!n.equals(e,t)})&&e.push(t)},u=0;u<r.length;u++)i(r[u]);return e}},R=function(n){if(s(n)){var t=(0,f.getMonoid)();return D(n.reduce(t.concat,t.empty))}return o.identity},S=function(n){var t=I(n);return function(n){return function(e){return t((0,o.pipe)(e,F(n)))}}},T=function(n){return function(t){var e=t.length,r=Math.round(n)%e;if(h(Math.abs(r),t)||0===r)return t;if(!(r<0))return T(r-e)(t);var i=V(-r)(t),u=i[0],a=i[1];return(0,o.pipe)(a,F(u))}},x=function(n){return s(n)?c.G(n):c.YP},w=function(n){return function(t){for(var e=Math.max(0,Math.floor(t)),r=[n(0)],i=1;i<e;i++)r.push(n(i));return r}},M=function(n){return w(function(){return n})},O=function(n,t){return n<=t?w(function(t){return n+t})(t-n+1):[n]},E=function(n){return[n0(n),n1(n)]},C=function(n){return[n5(n),n2(n)]},k=function(n){return x(n.slice())};function W(n){return function(t){return t.concat(n)}}function F(n,t){return t?n.concat(t):function(t){return t.concat(n)}}var P=function(n){return 1===n.length?n:p([n2(n)],n.slice(0,-1).reverse(),!0)};function A(n){return function(t){var e=t.length;if(0===e)return d;for(var r=[],i=t[0],u=[i],o=1;o<e;o++){var a=t[o];n.equals(a,i)?u.push(a):(r.push(u),u=[i=a])}return r.push(u),r}}var U=function(n){return function(t){for(var e={},r=0;r<t.length;r++){var i=t[r],u=n(i);c.e$.call(e,u)?e[u].push(i):e[u]=[i]}return e}},D=function(n){return function(t){return 1===t.length?t:t.slice().sort(n.compare)}},L=function(n,t){return N(n,function(){return t})},N=function(n,t){return function(e){return h(n,e)?c.YP:c.G(_(n,t(e[n]),e))}},j=function(n,t,e){for(var r=[e(n[0],t[0])],i=Math.min(n.length,t.length),u=1;u<i;u++)r[u]=e(n[u],t[u]);return r},q=function(n){for(var t=[n[0][0]],e=[n[0][1]],r=1;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},G=function(n){return function(t){for(var e=[n,t[0]],r=1;r<t.length;r++)e.push(n,t[r]);return e}},K=function(n){return function(t){var e=n1(t);return s(e)?(0,o.pipe)(e,G(n),v(n0(t))):t}},Y=function(n){return function(t){for(var e=c.r1(n(0,n0(t))),r=1;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},B=function(n){return function(t){for(var e=n(t),r=e[0],i=e[1],u=[r],o=i;s(o);){var a=n(o),c=a[0],f=a[1];u.push(c),o=f}return u}},V=function(n){return function(t){var e=Math.max(1,n);return e>=t.length?[t,d]:[(0,o.pipe)(t.slice(1,e),v(n0(t))),t.slice(e)]}},H=function(n){return B(V(n))},z=function(n,t){return(0,o.pipe)(n,nm(t))},X=function(n,t){return(0,o.pipe)(n,nv(t))},J=function(n,t){return(0,o.pipe)(n,nl(t))},$=function(n,t){return(0,o.pipe)(n,nd(t))},Z=function(n,t,e){return(0,o.pipe)(n,ng(t,e))},Q=function(n){var t=ny(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nn=function(n,t,e){return(0,o.pipe)(n,nb(t,e))},nt=function(n){var t=nS(n);return function(n,e){return(0,o.pipe)(n,t(e))}},ne=function(n,t){return(0,o.pipe)(n,nf(t))},nr=function(n,t,e){return(0,o.pipe)(n,n_(t,e))},ni=function(n){var t=nI(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nu=function(n,t,e){return(0,o.pipe)(n,nR(t,e))},no=function(n){var t=nx(n);return function(n,e){return(0,o.pipe)(n,t(e))}},na=c.ri,nc=function(n){return function(t){return(0,o.pipe)(t,W(n()))}},nf=nc,nl=function(n){return np(function(t){return(0,o.pipe)(n,nm(t))})},np=(0,o.dual)(2,function(n,t){return(0,o.pipe)(n,Y(function(n,e){return t(e,n)}))}),nd=function(n){return function(t){for(var e=n1(t),r=[n(t)];s(e);)r.push(n(e)),e=n1(e);return r}},ns=nd(o.identity),nh=np(o.identity),nm=function(n){return nv(function(t,e){return n(e)})},nv=function(n){return function(t){for(var e=[n(0,n0(t))],r=1;r<t.length;r++)e.push(n(r,t[r]));return e}},ng=function(n,t){return n_(n,function(n,e,r){return t(e,r)})},ny=function(n){return function(t){return function(e){return e.slice(1).reduce(function(e,r){return n.concat(e,t(r))},t(e[0]))}}},nb=function(n,t){return nR(n,function(n,e,r){return t(e,r)})},n_=function(n,t){return function(e){return e.reduce(function(n,e,r){return t(r,n,e)},n)}},nI=function(n){return function(t){return function(e){return e.slice(1).reduce(function(e,r,i){return n.concat(e,t(i+1,r))},t(0,e[0]))}}},nR=function(n,t){return function(e){return e.reduceRight(function(n,e,r){return t(r,e,n)},n)}},nS=function(n){var t=nx(n);return function(n){return t(function(t,e){return n(e)})}},nT=function(n){return nx(n)(o.SK)},nx=function(n){return function(t){return function(e){for(var r=n.map(t(0,n0(e)),na),i=1;i<e.length;i++)r=n.ap(n.map(r,function(n){return function(t){return(0,o.pipe)(n,y(t))}}),t(i,e[i]));return r}}},nw=c.YM,nM="ReadonlyNonEmptyArray",nO=function(n){return{show:function(t){return"[".concat(t.map(n.show).join(", "),"]")}}},nE=function(){return{concat:F}},nC=function(n){return(0,u.fromEquals)(function(t,e){return t.length===e.length&&t.every(function(t,r){return n.equals(t,e[r])})})},nk=function(n){var t=S(n);return{concat:function(n,e){return t(e)(n)}}},nW={URI:nM,map:z},nF=(0,a.flap)(nW),nP={URI:nM,of:na},nA={URI:nM,map:z,mapWithIndex:X},nU={URI:nM,map:z,ap:J},nD=(0,r.apFirst)(nU),nL=(0,r.apSecond)(nU),nN={URI:nM,map:z,ap:J,of:na},nj={URI:nM,map:z,ap:J,chain:np},nq=(0,i.chainFirst)(nj),nG={URI:nM,map:z,ap:J,of:na,chain:np},nK={URI:nM,reduce:Z,foldMap:Q,reduceRight:nn},nY={URI:nM,reduce:Z,foldMap:Q,reduceRight:nn,reduceWithIndex:nr,foldMapWithIndex:ni,reduceRightWithIndex:nu},nB={URI:nM,map:z,reduce:Z,foldMap:Q,reduceRight:nn,traverse:nt,sequence:nT},nV={URI:nM,map:z,mapWithIndex:X,reduce:Z,foldMap:Q,reduceRight:nn,traverse:nt,sequence:nT,reduceWithIndex:nr,foldMapWithIndex:ni,reduceRightWithIndex:nu,traverseWithIndex:no},nH={URI:nM,map:z,alt:ne},nz={URI:nM,map:z,extend:$,extract:nw},nX=na(c.F4),nJ=(0,a.bindTo)(nW),n$=(0,a.let)(nW),nZ=(0,i.bind)(nj),nQ=(0,r.apS)(nU),n0=nw,n1=c.Gb,n2=function(n){return n[n.length-1]},n5=function(n){return n.slice(0,-1)},n8=function(n){var t=l.min(n);return function(n){return n.reduce(t.concat)}},n3=function(n){var t=l.max(n);return function(n){return n.reduce(t.concat)}},n4=function(n){return function(t){return t.reduce(n.concat)}},n7=function(n){return function(t){return n(n0(t),n1(t))}},n9=function(n){return function(t){return n(n5(t),n2(t))}},n6=function(n){return function(t){return p([n(n0(t))],n1(t),!0)}},tn=function(n){return n6(function(){return n})},tt=function(n){return function(t){return(0,o.pipe)(n5(t),y(n(n2(t))))}},te=function(n){return tt(function(){return n})},tr=function(n){var t=n4(n);return function(n){return(0,o.flow)(K(n),t)}},ti=np;function tu(n){var t=D(n),e=A(n);return function(n){return s(n)?e(t(n)):d}}function to(n){return ta(function(t,e){return n(e)})}var ta=function(n){return function(t){return x(t.filter(function(t,e){return n(e,t)}))}},tc=E,tf=C;function tl(n,t){return void 0===t?v(n):(0,o.pipe)(t,v(n))}var tp=function(n,t){return(0,o.pipe)(n,F([t]))},td=function(n,t){return function(e){return n<0||n>e.length?c.YP:c.G(b(n,t,e))}},ts=G,th=n4,tm={URI:nM,of:na,map:z,mapWithIndex:X,ap:J,chain:np,extend:$,extract:nw,reduce:Z,foldMap:Q,reduceRight:nn,traverse:nt,sequence:nT,reduceWithIndex:nr,foldMapWithIndex:ni,reduceRightWithIndex:nu,traverseWithIndex:no,alt:ne}},97054:function(n,t,e){e.r(t),e.d(t,{Compactable:function(){return nP},Filterable:function(){return nA},FilterableWithIndex:function(){return nU},Foldable:function(){return nY},FoldableWithIndex:function(){return nB},Functor:function(){return nE},FunctorWithIndex:function(){return nk},Traversable:function(){return nV},TraversableWithIndex:function(){return nH},URI:function(){return nw},Witherable:function(){return nJ},_filter:function(){return nr},_filterMap:function(){return ni},_filterMapWithIndex:function(){return nd},_filterWithIndex:function(){return ns},_foldMap:function(){return nt},_foldMapWithIndex:function(){return nc},_map:function(){return Z},_mapWithIndex:function(){return Q},_partition:function(){return nu},_partitionMap:function(){return no},_partitionMapWithIndex:function(){return nl},_partitionWithIndex:function(){return np},_reduce:function(){return nn},_reduceRight:function(){return ne},_reduceRightWithIndex:function(){return nf},_reduceWithIndex:function(){return na},_sequence:function(){return nm},_traverse:function(){return nh},collect:function(){return v},compact:function(){return nT},deleteAt:function(){return I},difference:function(){return $},elem:function(){return function n(t){return function(e,r){if(void 0===r){var i=n(t);return function(n){return i(e,n)}}for(var u in r)if(t.equals(r[u],e))return!0;return!1}}},empty:function(){return M},every:function(){return H},filter:function(){return ng},filterMap:function(){return ny},filterMapWithIndex:function(){return q},filterWithIndex:function(){return G},flap:function(){return nC},foldMap:function(){return nR},foldMapWithIndex:function(){return k},fromEntries:function(){return V},fromFoldable:function(){return K},fromFoldableMap:function(){return Y},fromRecord:function(){return l},getDifferenceMagma:function(){return nK},getEq:function(){return nM},getFoldable:function(){return nW},getFoldableWithIndex:function(){return nF},getIntersectionSemigroup:function(){return nG},getMonoid:function(){return nO},getShow:function(){return function n(t){return"compare"in t?function(n){return{show:function(e){var r=v(t)(function(t,e){return"".concat(JSON.stringify(t),": ").concat(n.show(e))})(e).join(", ");return""===r?"{}":"{ ".concat(r," }")}}}:n(c.Ord)(t)}},getTraversable:function(){return nD},getTraversableWithIndex:function(){return nL},getUnionMonoid:function(){return nq},getUnionSemigroup:function(){return nj},getWitherable:function(){return nN},has:function(){return _},hasOwnProperty:function(){return nZ},insertAt:function(){return n$},intersection:function(){return J},isEmpty:function(){return s},isSubrecord:function(){return x},keys:function(){return m},lookup:function(){return w},map:function(){return E},mapWithIndex:function(){return O},modifyAt:function(){return S},partition:function(){return nb},partitionMap:function(){return n_},partitionMapWithIndex:function(){return N},partitionWithIndex:function(){return j},pop:function(){return T},readonlyRecord:function(){return nQ},reduce:function(){return nI},reduceRight:function(){return nS},reduceRightWithIndex:function(){return W},reduceWithIndex:function(){return C},separate:function(){return nx},sequence:function(){return U},singleton:function(){return F},size:function(){return d},some:function(){return z},toEntries:function(){return B},toReadonlyArray:function(){return g},toRecord:function(){return p},toUnfoldable:function(){return y},traverse:function(){return A},traverseWithIndex:function(){return P},union:function(){return X},updateAt:function(){return R},upsertAt:function(){return b},wilt:function(){return L},wither:function(){return D}});var r=e(65191),i=e(42275),u=e(67560),o=e(97963),a=e(34219),c=e(57029),f=e(76511),l=function(n){return Object.assign({},n)},p=function(n){return Object.assign({},n)},d=function(n){return Object.keys(n).length},s=function(n){for(var t in n)if(o.e$.call(n,t))return!1;return!0},h=function(n){return function(t){return Object.keys(t).sort(n.compare)}},m=h(c.Ord);function v(n){if("function"==typeof n)return v(c.Ord)(n);var t=h(n);return function(n){return function(e){for(var r=[],i=0,u=t(e);i<u.length;i++){var o=u[i];r.push(n(o,e[o]))}return r}}}var g=v(c.Ord)(function(n,t){return[n,t]});function y(n){return function(t){var e=g(t),r=e.length;return n.unfold(0,function(n){return n<r?o.G([e[n],n+1]):o.YP})}}var b=function(n,t){return function(e){if(o.e$.call(e,n)&&e[n]===t)return e;var r=Object.assign({},e);return r[n]=t,r}},_=function(n,t){return o.e$.call(t,n)};function I(n){return function(t){if(!o.e$.call(t,n))return t;var e=Object.assign({},t);return delete e[n],e}}var R=function(n,t){return function(e){if(!_(n,e))return o.YP;if(e[n]===t)return o.G(e);var r=Object.assign({},e);return r[n]=t,o.G(r)}},S=function(n,t){return function(e){if(!_(n,e))return o.YP;var r=t(e[n]);if(r===e[n])return o.G(e);var i=Object.assign({},e);return i[n]=r,o.G(i)}};function T(n){var t=I(n);return function(e){var r=w(n,e);return o.Wi(r)?o.YP:o.G([r.value,t(e)])}}function x(n){return function(t,e){if(void 0===e){var r=x(n);return function(n){return r(n,t)}}for(var i in t)if(!o.e$.call(e,i)||!n.equals(t[i],e[i]))return!1;return!0}}function w(n,t){return void 0===t?function(t){return w(n,t)}:o.e$.call(t,n)?o.G(t[n]):o.YP}var M={};function O(n){return function(t){var e={};for(var r in t)o.e$.call(t,r)&&(e[r]=n(r,t[r]));return e}}function E(n){return O(function(t,e){return n(e)})}function C(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(2===n.length)return C(c.Ord).apply(void 0,n);var e=h(n[0]);return function(n,t){return function(r){for(var i=n,u=e(r),o=u.length,a=0;a<o;a++){var c=u[a];i=t(c,i,r[c])}return i}}}function k(n){if("compare"in n){var t=h(n);return function(n){return function(e){return function(r){for(var i=n.empty,u=t(r),o=u.length,a=0;a<o;a++){var c=u[a];i=n.concat(i,e(c,r[c]))}return i}}}}return k(c.Ord)(n)}function W(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(2===n.length)return W(c.Ord).apply(void 0,n);var e=h(n[0]);return function(n,t){return function(r){for(var i=n,u=e(r),o=u.length,a=o-1;a>=0;a--){var c=u[a];i=t(c,r[c],i)}return i}}}var F=function(n,t){var e;return(e={})[n]=t,e};function P(n){var t=nv(c.Ord)(n);return function(n){return function(e){return t(e,n)}}}function A(n){var t=nh(c.Ord)(n);return function(n){return function(e){return t(e,n)}}}function U(n){return nm(c.Ord)(n)}var D=function(n){var t=A(n);return function(e){return function(r){return n.map((0,i.pipe)(r,t(e)),nT)}}},L=function(n){var t=A(n);return function(e){return function(r){return n.map((0,i.pipe)(r,t(e)),nx)}}};function N(n){return function(t){var e={},r={};for(var i in t)if(o.e$.call(t,i)){var u=n(i,t[i]);switch(u._tag){case"Left":e[i]=u.left;break;case"Right":r[i]=u.right}}return(0,a.separated)(e,r)}}function j(n){return function(t){var e={},r={};for(var i in t)if(o.e$.call(t,i)){var u=t[i];n(i,u)?r[i]=u:e[i]=u}return(0,a.separated)(e,r)}}function q(n){return function(t){var e={};for(var r in t)if(o.e$.call(t,r)){var i=n(r,t[r]);o.pC(i)&&(e[r]=i.value)}return e}}function G(n){return function(t){var e={},r=!1;for(var i in t)if(o.e$.call(t,i)){var u=t[i];n(i,u)?e[i]=u:r=!0}return r?e:t}}function K(n,t){var e=Y(n,t);return function(n){return e(n,i.identity)}}function Y(n,t){return function(e,r){return t.reduce(e,{},function(t,e){var i=r(e),u=i[0],a=i[1];return t[u]=o.e$.call(t,u)?n.concat(t[u],a):a,t})}}var B=g,V=function(n){for(var t={},e=0;e<n.length;e++){var r=n[e];t[r[0]]=r[1]}return t};function H(n){return function(t){for(var e in t)if(!n(t[e]))return!1;return!0}}function z(n){return function(t){for(var e in t)if(n(t[e]))return!0;return!1}}var X=function(n){return function(t){return function(e){if(s(e))return t;if(s(t))return e;var r={};for(var i in e)_(i,t)?r[i]=n.concat(e[i],t[i]):r[i]=e[i];for(var i in t)_(i,r)||(r[i]=t[i]);return r}}},J=function(n){return function(t){return function(e){if(s(e)||s(t))return M;var r={};for(var i in e)_(i,t)&&(r[i]=n.concat(e[i],t[i]));return r}}},$=function(n){return function(t){if(s(t))return n;if(s(n))return t;var e={};for(var r in t)_(r,n)||(e[r]=t[r]);for(var r in n)_(r,t)||(e[r]=n[r]);return e}},Z=function(n,t){return(0,i.pipe)(n,E(t))},Q=function(n,t){return(0,i.pipe)(n,O(t))},nn=function(n){var t=nI(n);return function(n,e,r){return(0,i.pipe)(n,t(e,r))}},nt=function(n){return function(t){var e=nR(n)(t);return function(n,t){return(0,i.pipe)(n,e(t))}}},ne=function(n){var t=nS(n);return function(n,e,r){return(0,i.pipe)(n,t(e,r))}},nr=function(n,t){return(0,i.pipe)(n,ng(t))},ni=function(n,t){return(0,i.pipe)(n,ny(t))},nu=function(n,t){return(0,i.pipe)(n,nb(t))},no=function(n,t){return(0,i.pipe)(n,n_(t))},na=function(n){var t=C(n);return function(n,e,r){return(0,i.pipe)(n,t(e,r))}},nc=function(n){var t=k(n);return function(n){var e=t(n);return function(n,t){return(0,i.pipe)(n,e(t))}}},nf=function(n){var t=W(n);return function(n,e,r){return(0,i.pipe)(n,t(e,r))}},nl=function(n,t){return(0,i.pipe)(n,N(t))},np=function(n,t){return(0,i.pipe)(n,j(t))},nd=function(n,t){return(0,i.pipe)(n,q(t))},ns=function(n,t){return(0,i.pipe)(n,G(t))},nh=function(n){var t=nv(n);return function(n){var e=t(n);return function(n,t){return e(n,(0,i.flow)(i.SK,t))}}},nm=function(n){var t=nh(n);return function(n){var e=t(n);return function(n){return e(n,i.identity)}}},nv=function(n){return function(t){var e=h(n);return function(n,r){var i=e(n);if(0===i.length)return t.of(M);for(var u=t.of({}),o=function(e){u=t.ap(t.map(u,function(n){return function(t){var r;return Object.assign({},n,((r={})[e]=t,r))}}),r(e,n[e]))},a=0;a<i.length;a++)o(i[a]);return u}}},ng=function(n){return G(function(t,e){return n(e)})},ny=function(n){return q(function(t,e){return n(e)})},nb=function(n){return j(function(t,e){return n(e)})},n_=function(n){return N(function(t,e){return n(e)})};function nI(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(1===n.length){var e=C(n[0]);return function(n,t){return e(n,function(n,e,r){return t(e,r)})}}return nI(c.Ord).apply(void 0,n)}function nR(n){if("compare"in n){var t=k(n);return function(n){var e=t(n);return function(n){return e(function(t,e){return n(e)})}}}return nR(c.Ord)(n)}function nS(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(1===n.length){var e=W(n[0]);return function(n,t){return e(n,function(n,e,r){return t(e,r)})}}return nS(c.Ord).apply(void 0,n)}var nT=function(n){var t={};for(var e in n)if(o.e$.call(n,e)){var r=n[e];o.pC(r)&&(t[e]=r.value)}return t},nx=function(n){var t={},e={};for(var r in n)if(o.e$.call(n,r)){var i=n[r];o.nM(i)?t[r]=i.left:e[r]=i.right}return(0,a.separated)(t,e)},nw="ReadonlyRecord";function nM(n){var t=x(n);return(0,r.fromEquals)(function(n,e){return t(n)(e)&&t(e)(n)})}function nO(n){return{concat:function(t,e){if(s(t))return e;if(s(e))return t;var r=Object.assign({},t);for(var i in e)o.e$.call(e,i)&&(r[i]=o.e$.call(t,i)?n.concat(t[i],e[i]):e[i]);return r},empty:M}}var nE={URI:nw,map:Z},nC=(0,u.flap)(nE),nk={URI:nw,map:Z,mapWithIndex:Q},nW=function(n){return{URI:nw,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n)}},nF=function(n){return{URI:nw,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n),reduceWithIndex:na(n),foldMapWithIndex:nc(n),reduceRightWithIndex:nf(n)}},nP={URI:nw,compact:nT,separate:nx},nA={URI:nw,map:Z,compact:nT,separate:nx,filter:nr,filterMap:ni,partition:nu,partitionMap:no},nU={URI:nw,map:Z,mapWithIndex:Q,compact:nT,separate:nx,filter:nr,filterMap:ni,partition:nu,partitionMap:no,filterMapWithIndex:nd,filterWithIndex:ns,partitionMapWithIndex:nl,partitionWithIndex:np},nD=function(n){return{URI:nw,map:Z,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n),traverse:nh(n),sequence:nm(n)}},nL=function(n){return{URI:nw,map:Z,mapWithIndex:Q,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n),reduceWithIndex:na(n),foldMapWithIndex:nc(n),reduceRightWithIndex:nf(n),traverse:nh(n),sequence:nm(n),traverseWithIndex:nv(n)}},nN=function(n){var t=nD(n);return{URI:nw,map:Z,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n),traverse:t.traverse,sequence:t.sequence,compact:nT,separate:nx,filter:nr,filterMap:ni,partition:nu,partitionMap:no,wither:(0,f.witherDefault)(t,nP),wilt:(0,f.wiltDefault)(t,nP)}},nj=function(n){var t=X(n);return{concat:function(n,e){return t(e)(n)}}},nq=function(n){return{concat:nj(n).concat,empty:M}},nG=function(n){var t=J(n);return{concat:function(n,e){return t(e)(n)}}},nK=function(){return{concat:function(n,t){return $(t)(n)}}},nY={URI:nw,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord)},nB={URI:nw,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord),reduceWithIndex:na(c.Ord),foldMapWithIndex:nc(c.Ord),reduceRightWithIndex:nf(c.Ord)},nV={URI:nw,map:Z,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord),traverse:nh(c.Ord),sequence:U},nH={URI:nw,map:Z,mapWithIndex:Q,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord),reduceWithIndex:na(c.Ord),foldMapWithIndex:nc(c.Ord),reduceRightWithIndex:nf(c.Ord),traverse:nh(c.Ord),sequence:U,traverseWithIndex:nv(c.Ord)},nz=(0,f.witherDefault)(nV,nP),nX=(0,f.wiltDefault)(nV,nP),nJ={URI:nw,map:Z,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord),traverse:nh(c.Ord),sequence:U,compact:nT,separate:nx,filter:nr,filterMap:ni,partition:nu,partitionMap:no,wither:nz,wilt:nX},n$=b;function nZ(n,t){return o.e$.call(void 0===t?this:t,n)}var nQ={URI:nw,map:Z,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord),traverse:nh(c.Ord),sequence:U,compact:nT,separate:nx,filter:nr,filterMap:ni,partition:nu,partitionMap:no,mapWithIndex:Q,reduceWithIndex:na(c.Ord),foldMapWithIndex:nc(c.Ord),reduceRightWithIndex:nf(c.Ord),filterMapWithIndex:nd,filterWithIndex:ns,partitionMapWithIndex:nl,partitionWithIndex:np,traverseWithIndex:nv(c.Ord),wither:nz,wilt:nX}},99156:function(n,t,e){e.r(t),e.d(t,{URI:function(){return U},chain:function(){return d},compact:function(){return x},difference:function(){return y},elem:function(){return P},empty:function(){return O},every:function(){return W},filter:function(){return s},filterMap:function(){return M},foldMap:function(){return _},fromArray:function(){return K},fromReadonlyArray:function(){return f},fromSet:function(){return a},getDifferenceMagma:function(){return G},getEq:function(){return L},getIntersectionSemigroup:function(){return q},getShow:function(){return D},getUnionMonoid:function(){return j},getUnionSemigroup:function(){return N},insert:function(){return R},intersection:function(){return v},isEmpty:function(){return E},isSubset:function(){return F},map:function(){return p},partition:function(){return h},partitionMap:function(){return g},reduce:function(){return b},reduceRight:function(){return I},remove:function(){return S},separate:function(){return w},singleton:function(){return c},size:function(){return C},some:function(){return k},toReadonlyArray:function(){return A},toSet:function(){return l},toggle:function(){return T},union:function(){return m}});var r=e(65191),i=e(42275),u=e(88491),o=e(34219),a=function(n){return new Set(n)},c=function(n){return new Set([n])},f=function(n){return function(t){for(var e=t.length,r=new Set,i=P(n),u=0;u<e;u++){var o=t[u];i(o,r)||r.add(o)}return r}};function l(n){return new Set(n)}function p(n){var t=P(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var i=n(e);t(i,r)||r.add(i)}),r}}}function d(n){var t=P(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){n(e).forEach(function(n){t(n,r)||r.add(n)})}),r}}}function s(n){return function(t){for(var e,r=t.values(),i=new Set;!(e=r.next()).done;){var u=e.value;n(u)&&i.add(u)}return i}}function h(n){return function(t){for(var e,r=t.values(),i=new Set,u=new Set;!(e=r.next()).done;){var a=e.value;n(a)?i.add(a):u.add(a)}return(0,o.separated)(u,i)}}function m(n){var t=P(n);return function(e,r){if(void 0===r){var i=m(n);return function(n){return i(e,n)}}if(E(e))return r;if(E(r))return e;var u=new Set(e);return r.forEach(function(n){t(n,u)||u.add(n)}),u}}function v(n){var t=P(n);return function(e,r){if(void 0===r){var i=v(n);return function(n){return i(n,e)}}if(E(e)||E(r))return O;var u=new Set;return e.forEach(function(n){t(n,r)&&u.add(n)}),u}}function g(n,t){return function(e){return function(r){for(var i,u=r.values(),a=new Set,c=new Set,f=P(n),l=P(t);!(i=u.next()).done;){var p=e(i.value);switch(p._tag){case"Left":f(p.left,a)||a.add(p.left);break;case"Right":l(p.right,c)||c.add(p.right)}}return(0,o.separated)(a,c)}}}function y(n){var t=P(n);return function(e,r){if(void 0===r){var i=y(n);return function(n){return i(n,e)}}return s(function(n){return!t(n,r)})(e)}}function b(n){var t=A(n);return function(n,e){return function(r){return t(r).reduce(e,n)}}}function _(n,t){var e=A(n);return function(n){return function(r){return e(r).reduce(function(e,r){return t.concat(e,n(r))},t.empty)}}}var I=function(n){var t=A(n);return function(n,e){return function(r){return t(r).reduceRight(function(n,t){return e(t,n)},n)}}};function R(n){var t=P(n);return function(n){return function(e){if(t(n)(e))return e;var r=new Set(e);return r.add(n),r}}}var S=function(n){return function(t){return function(e){return s(function(e){return!n.equals(t,e)})(e)}}},T=function(n){var t=P(n),e=S(n),r=R(n);return function(n){return function(i){return(t(n,i)?e:r)(n)(i)}}},x=function(n){return M(n)(i.identity)};function w(n,t){return function(e){var r=P(n),i=P(t),u=new Set,a=new Set;return e.forEach(function(n){switch(n._tag){case"Left":r(n.left,u)||u.add(n.left);break;case"Right":i(n.right,a)||a.add(n.right)}}),(0,o.separated)(u,a)}}function M(n){var t=P(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var i=n(e);"Some"!==i._tag||t(i.value,r)||r.add(i.value)}),r}}}var O=new Set,E=function(n){return 0===n.size},C=function(n){return n.size},k=function(n){return function(t){for(var e,r=t.values(),i=!1;!i&&!(e=r.next()).done;)i=n(e.value);return i}};function W(n){return(0,u.not)(k((0,u.not)(n)))}function F(n){var t=P(n);return function(e,r){if(void 0===r){var i=F(n);return function(n){return i(n,e)}}return W(function(n){return t(n,r)})(e)}}function P(n){return function(t,e){if(void 0===e){var r,i=P(n);return function(n){return i(t,n)}}for(var u=e.values(),o=!1;!o&&!(r=u.next()).done;)o=n.equals(t,r.value);return o}}var A=function(n){return function(t){var e=[];return t.forEach(function(n){return e.push(n)}),e.sort(n.compare)}},U="ReadonlySet";function D(n){return{show:function(t){var e=[];return t.forEach(function(t){e.push(n.show(t))}),"new Set([".concat(e.sort().join(", "),"])")}}}function L(n){var t=F(n);return(0,r.fromEquals)(function(n,e){return t(n,e)&&t(e,n)})}var N=function(n){return{concat:m(n)}},j=function(n){return{concat:N(n).concat,empty:O}},q=function(n){return{concat:v(n)}},G=function(n){return{concat:y(n)}},K=f},3291:function(n,t,e){e.r(t),e.d(t,{concatAll:function(){return v},constant:function(){return f},first:function(){return h},fold:function(){return M},getDualSemigroup:function(){return S},getFirstSemigroup:function(){return _},getFunctionSemigroup:function(){return C},getIntercalateSemigroup:function(){return w},getJoinSemigroup:function(){return T},getLastSemigroup:function(){return b},getMeetSemigroup:function(){return x},getObjectSemigroup:function(){return y},getStructSemigroup:function(){return R},getTupleSemigroup:function(){return I},intercalate:function(){return s},last:function(){return m},max:function(){return c},min:function(){return a},reverse:function(){return l},semigroupAll:function(){return O},semigroupAny:function(){return E},semigroupProduct:function(){return F},semigroupString:function(){return k},semigroupSum:function(){return W},semigroupVoid:function(){return g},struct:function(){return p},tuple:function(){return d}});var r=e(42275),i=e(97963),u=e(76113),o=e(5586),a=function(n){return{concat:o.min(n)}},c=function(n){return{concat:o.max(n)}},f=function(n){return{concat:function(){return n}}},l=u.reverse,p=function(n){return{concat:function(t,e){var r={};for(var u in n)i.e$.call(n,u)&&(r[u]=n[u].concat(t[u],e[u]));return r}}},d=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{concat:function(t,e){return n.map(function(n,r){return n.concat(t[r],e[r])})}}},s=function(n){return function(t){return{concat:function(e,r){return t.concat(e,t.concat(n,r))}}}},h=function(){return{concat:r.identity}},m=function(){return{concat:function(n,t){return t}}},v=u.concatAll,g=f(void 0),y=function(){return{concat:function(n,t){return Object.assign({},n,t)}}},b=m,_=h,I=d,R=p,S=l,T=c,x=a,w=s;function M(n){var t=v(n);return function(n,e){return void 0===e?t(n):t(n)(e)}}var O={concat:function(n,t){return n&&t}},E={concat:function(n,t){return n||t}},C=r.getSemigroup,k={concat:function(n,t){return n+t}},W={concat:function(n,t){return n+t}},F={concat:function(n,t){return n*t}}},34219:function(n,t,e){e.r(t),e.d(t,{Bifunctor:function(){return l},Functor:function(){return p},URI:function(){return f},bimap:function(){return c},flap:function(){return d},left:function(){return s},map:function(){return o},mapLeft:function(){return a},right:function(){return h},separated:function(){return u}});var r=e(42275),i=e(67560),u=function(n,t){return{left:n,right:t}},o=function(n){return function(t){return u(s(t),n(h(t)))}},a=function(n){return function(t){return u(n(s(t)),h(t))}},c=function(n,t){return function(e){return u(n(s(e)),t(h(e)))}},f="Separated",l={URI:f,mapLeft:function(n,t){return(0,r.pipe)(n,a(t))},bimap:function(n,t,e){return(0,r.pipe)(n,c(t,e))}},p={URI:f,map:function(n,t){return(0,r.pipe)(n,o(t))}},d=(0,i.flap)(p),s=function(n){return n.left},h=function(n){return n.right}},1214:function(n,t,e){e.r(t),e.d(t,{chain:function(){return f},compact:function(){return O},difference:function(){return m},elem:function(){return D},empty:function(){return k},every:function(){return A},filter:function(){return l},filterMap:function(){return C},foldMap:function(){return I},fromArray:function(){return M},getDifferenceMagma:function(){return b},getEq:function(){return a},getIntersectionSemigroup:function(){return y},getShow:function(){return o},getUnionMonoid:function(){return g},getUnionSemigroup:function(){return v},insert:function(){return T},intersection:function(){return s},isEmpty:function(){return W},isSubset:function(){return U},map:function(){return c},partition:function(){return p},partitionMap:function(){return h},reduce:function(){return _},reduceRight:function(){return R},remove:function(){return x},separate:function(){return E},singleton:function(){return S},size:function(){return F},some:function(){return P},subset:function(){return N},toArray:function(){return L},toggle:function(){return w},union:function(){return d}});var r=e(42275),i=e(99156),u=e(34219),o=i.getShow,a=i.getEq;function c(n){var t=D(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var i=n(e);t(i,r)||r.add(i)}),r}}}function f(n){var t=D(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){n(e).forEach(function(n){t(n,r)||r.add(n)})}),r}}}function l(n){return function(t){for(var e,r=t.values(),i=new Set;!(e=r.next()).done;){var u=e.value;n(u)&&i.add(u)}return i}}function p(n){return function(t){for(var e,r=t.values(),i=new Set,o=new Set;!(e=r.next()).done;){var a=e.value;n(a)?i.add(a):o.add(a)}return(0,u.separated)(o,i)}}function d(n){var t=D(n);return function(e,r){if(void 0===r){var i=d(n);return function(n){return i(e,n)}}if(W(e))return r;if(W(r))return e;var u=new Set(e);return r.forEach(function(n){t(n,u)||u.add(n)}),u}}function s(n){var t=D(n);return function(e,r){if(void 0===r){var i=s(n);return function(n){return i(n,e)}}if(W(e)||W(r))return new Set;var u=new Set;return e.forEach(function(n){t(n,r)&&u.add(n)}),u}}function h(n,t){return function(e){return function(r){for(var i,o=r.values(),a=new Set,c=new Set,f=D(n),l=D(t);!(i=o.next()).done;){var p=e(i.value);switch(p._tag){case"Left":f(p.left,a)||a.add(p.left);break;case"Right":l(p.right,c)||c.add(p.right)}}return(0,u.separated)(a,c)}}}function m(n){var t=D(n);return function(e,r){if(void 0===r){var i=m(n);return function(n){return i(n,e)}}return l(function(n){return!t(n,r)})(e)}}var v=function(n){return{concat:d(n)}},g=function(n){return{concat:v(n).concat,empty:new Set}},y=function(n){return{concat:s(n)}},b=function(n){return{concat:m(n)}},_=i.reduce,I=i.foldMap,R=i.reduceRight,S=function(n){return new Set([n])};function T(n){var t=D(n);return function(n){return function(e){if(t(n)(e))return e;var r=new Set(e);return r.add(n),r}}}var x=function(n){return function(t){return function(e){return l(function(e){return!n.equals(t,e)})(e)}}},w=function(n){var t=D(n),e=x(n),r=T(n);return function(n){return function(i){return(t(n,i)?e:r)(n)(i)}}},M=function(n){return function(t){for(var e=t.length,r=new Set,i=D(n),u=0;u<e;u++){var o=t[u];i(o,r)||r.add(o)}return r}},O=function(n){return C(n)(r.identity)};function E(n,t){return function(e){var r=D(n),i=D(t),o=new Set,a=new Set;return e.forEach(function(n){switch(n._tag){case"Left":r(n.left,o)||o.add(n.left);break;case"Right":i(n.right,a)||a.add(n.right)}}),(0,u.separated)(o,a)}}function C(n){var t=D(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var i=n(e);"Some"!==i._tag||t(i.value,r)||r.add(i.value)}),r}}}var k=new Set,W=function(n){return 0===n.size},F=function(n){return n.size},P=i.some,A=i.every,U=i.isSubset,D=i.elem,L=function(n){return function(t){var e=[];return t.forEach(function(n){return e.push(n)}),e.sort(n.compare)}},N=i.isSubset},76511:function(n,t,e){e.r(t),e.d(t,{filterE:function(){return o},wiltDefault:function(){return i},witherDefault:function(){return u}});var r=e(97963);function i(n,t){return function(e){var r=n.traverse(e);return function(n,i){return e.map(r(n,i),t.separate)}}}function u(n,t){return function(e){var r=n.traverse(e);return function(n,i){return e.map(r(n,i),t.compact)}}}function o(n){return function(t){var e=n.wither(t);return function(n){return function(i){return e(i,function(e){return t.map(n(e),function(n){return n?r.G(e):r.YP})})}}}}},28957:function(n,t,e){function r(n,t){return function(e){return e?t.of(void 0):n.zero()}}e.r(t),e.d(t,{guard:function(){return r}})},42275:function(n,t,e){e.r(t),e.d(t,{SK:function(){return O},absurd:function(){return S},apply:function(){return f},constFalse:function(){return h},constNull:function(){return m},constTrue:function(){return s},constUndefined:function(){return v},constVoid:function(){return g},constant:function(){return d},decrement:function(){return R},dual:function(){return k},flip:function(){return y},flow:function(){return b},getBooleanAlgebra:function(){return i},getEndomorphismMonoid:function(){return C},getMonoid:function(){return o},getRing:function(){return c},getSemigroup:function(){return u},getSemiring:function(){return a},hole:function(){return M},identity:function(){return l},increment:function(){return I},not:function(){return E},pipe:function(){return w},tuple:function(){return _},tupled:function(){return T},unsafeCoerce:function(){return p},untupled:function(){return x}});var r=function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},i=function(n){return function(){return{meet:function(t,e){return function(r){return n.meet(t(r),e(r))}},join:function(t,e){return function(r){return n.join(t(r),e(r))}},zero:function(){return n.zero},one:function(){return n.one},implies:function(t,e){return function(r){return n.implies(t(r),e(r))}},not:function(t){return function(e){return n.not(t(e))}}}}},u=function(n){return function(){return{concat:function(t,e){return function(r){return n.concat(t(r),e(r))}}}}},o=function(n){var t=u(n);return function(){return{concat:t().concat,empty:function(){return n.empty}}}},a=function(n){return{add:function(t,e){return function(r){return n.add(t(r),e(r))}},zero:function(){return n.zero},mul:function(t,e){return function(r){return n.mul(t(r),e(r))}},one:function(){return n.one}}},c=function(n){var t=a(n);return{add:t.add,mul:t.mul,one:t.one,zero:t.zero,sub:function(t,e){return function(r){return n.sub(t(r),e(r))}}}},f=function(n){return function(t){return t(n)}};function l(n){return n}var p=l;function d(n){return function(){return n}}var s=d(!0),h=d(!1),m=d(null),v=d(void 0),g=v;function y(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length>1?n(t[1],t[0]):function(e){return n(e)(t[0])}}}function b(n,t,e,r,i,u,o,a,c){switch(arguments.length){case 1:return n;case 2:return function(){return t(n.apply(this,arguments))};case 3:return function(){return e(t(n.apply(this,arguments)))};case 4:return function(){return r(e(t(n.apply(this,arguments))))};case 5:return function(){return i(r(e(t(n.apply(this,arguments)))))};case 6:return function(){return u(i(r(e(t(n.apply(this,arguments))))))};case 7:return function(){return o(u(i(r(e(t(n.apply(this,arguments)))))))};case 8:return function(){return a(o(u(i(r(e(t(n.apply(this,arguments))))))))};case 9:return function(){return c(a(o(u(i(r(e(t(n.apply(this,arguments)))))))))}}}function _(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n}function I(n){return n+1}function R(n){return n-1}function S(n){throw Error("Called `absurd` function which should be uncallable")}function T(n){return function(t){return n.apply(void 0,t)}}function x(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n(t)}}function w(n,t,e,r,i,u,o,a,c){switch(arguments.length){case 1:return n;case 2:return t(n);case 3:return e(t(n));case 4:return r(e(t(n)));case 5:return i(r(e(t(n))));case 6:return u(i(r(e(t(n)))));case 7:return o(u(i(r(e(t(n))))));case 8:return a(o(u(i(r(e(t(n)))))));case 9:return c(a(o(u(i(r(e(t(n))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}}var M=S,O=function(n,t){return t};function E(n){return function(t){return!n(t)}}var C=function(){return{concat:function(n,t){return b(n,t)},empty:l}},k=function(n,t){var e="number"==typeof n?function(t){return t.length>=n}:n;return function(){var n=Array.from(arguments);return e(arguments)?t.apply(this,n):function(e){return t.apply(void 0,r([e],n,!1))}}}},9554:function(n,t,e){e.r(t),e.d(t,{alt:function(){return r},alternative:function(){return i},applicative:function(){return nG},apply:function(){return nN},array:function(){return nK},bifunctor:function(){return u},boolean:function(){return o},booleanAlgebra:function(){return a},bounded:function(){return c},boundedDistributiveLattice:function(){return l},boundedJoinSemilattice:function(){return p},boundedLattice:function(){return d},boundedMeetSemilattice:function(){return s},category:function(){return h},chain:function(){return tu},chainRec:function(){return to},choice:function(){return m},comonad:function(){return v},compactable:function(){return g},console:function(){return y},const:function(){return tI},contravariant:function(){return b},date:function(){return _},distributiveLattice:function(){return f},either:function(){return tC},eitherT:function(){return I},endomorphism:function(){return t8},eq:function(){return t3},extend:function(){return R},field:function(){return S},filterable:function(){return T},filterableWithIndex:function(){return x},foldable:function(){return w},foldableWithIndex:function(){return M},fromEither:function(){return eb},fromIO:function(){return O},fromReader:function(){return C},fromState:function(){return W},fromTask:function(){return F},fromThese:function(){return P},function:function(){return n5},functor:function(){return tp},functorWithIndex:function(){return A},group:function(){return U},heytingAlgebra:function(){return D},hkt:function(){return L},identity:function(){return N},invariant:function(){return j},io:function(){return q},ioEither:function(){return G},ioOption:function(){return Y},ioRef:function(){return B},joinSemilattice:function(){return V},json:function(){return H},lattice:function(){return z},magma:function(){return fy},map:function(){return fb},meetSemilattice:function(){return X},monad:function(){return J},monadIO:function(){return $},monadTask:function(){return Z},monadThrow:function(){return Q},monoid:function(){return f_},naturalTransformation:function(){return nn},nonEmptyArray:function(){return fI},number:function(){return tR},option:function(){return td},optionT:function(){return K},ord:function(){return n6},ordering:function(){return nt},pipeable:function(){return fF},pointed:function(){return ne},predicate:function(){return t6},profunctor:function(){return nr},random:function(){return ni},reader:function(){return E},readerEither:function(){return nu},readerIO:function(){return na},readerT:function(){return no},readerTask:function(){return nf},readerTaskEither:function(){return np},readonlyArray:function(){return _b},readonlyMap:function(){return __},readonlyNonEmptyArray:function(){return _I},readonlyRecord:function(){return _R},readonlySet:function(){return _S},readonlyTuple:function(){return nd},record:function(){return ns},refinement:function(){return nh},ring:function(){return nm},semigroup:function(){return It},semigroupoid:function(){return nv},semiring:function(){return ng},separated:function(){return ts},set:function(){return RZ},show:function(){return ny},state:function(){return k},stateReaderTaskEither:function(){return n_},stateT:function(){return nb},store:function(){return nI},string:function(){return Ie},strong:function(){return nR},struct:function(){return nS},task:function(){return nc},taskEither:function(){return nl},taskOption:function(){return nT},taskThese:function(){return nM},these:function(){return nx},theseT:function(){return nw},traced:function(){return nO},traversable:function(){return nE},traversableWithIndex:function(){return nC},tree:function(){return nk},tuple:function(){return nW},unfoldable:function(){return nF},validationT:function(){return nP},void:function(){return nA},witherable:function(){return Ir},writer:function(){return nU},writerT:function(){return nD},zero:function(){return a5}});var r={};e.r(r),e.d(r,{altAll:function(){return nL}});var i={};e.r(i),e.d(i,{altAll:function(){return nj},getAlternativeMonoid:function(){return nq}});var u={};e.r(u);var o={};e.r(o),e.d(o,{BooleanAlgebra:function(){return nJ},Eq:function(){return nX},MonoidAll:function(){return nQ},MonoidAny:function(){return n0},Ord:function(){return n1},SemigroupAll:function(){return n$},SemigroupAny:function(){return nZ},Show:function(){return n2},fold:function(){return nz},foldW:function(){return nV},isBoolean:function(){return nY},match:function(){return nH},matchW:function(){return nB}});var a={};e.r(a),e.d(a,{booleanAlgebraBoolean:function(){return n7},booleanAlgebraVoid:function(){return n3},getDualBooleanAlgebra:function(){return n4},getFunctionBooleanAlgebra:function(){return n9},reverse:function(){return n8}});var c={};e.r(c),e.d(c,{boundedNumber:function(){return te},clamp:function(){return tn},reverse:function(){return tt}});var f={};e.r(f),e.d(f,{getMinMaxDistributiveLattice:function(){return tr}});var l={};e.r(l),e.d(l,{getMinMaxBoundedDistributiveLattice:function(){return ti}});var p={};e.r(p);var d={};e.r(d);var s={};e.r(s);var h={};e.r(h);var m={};e.r(m),e.d(m,{fanIn:function(){return tc},fanin:function(){return tl},split:function(){return ta},splitChoice:function(){return tf}});var v={};e.r(v);var g={};e.r(g),e.d(g,{compact:function(){return th},getCompactableComposition:function(){return tv},separate:function(){return tm}});var y={};e.r(y),e.d(y,{error:function(){return tb},info:function(){return t_},log:function(){return tg},warn:function(){return ty}});var b={};e.r(b);var _={};e.r(_),e.d(_,{Eq:function(){return tS},Ord:function(){return tM},create:function(){return tO},eqDate:function(){return tT},eqMonth:function(){return tx},eqYear:function(){return tw},now:function(){return tE}});var I={};e.r(I),e.d(I,{alt:function(){return tG},altValidation:function(){return tH},ap:function(){return tN},bimap:function(){return tK},chain:function(){return tj},chainNullableK:function(){return tD},flatMap:function(){return tq},fromNullable:function(){return tA},fromNullableK:function(){return tU},getEitherM:function(){return t5},getOrElse:function(){return tJ},left:function(){return tW},leftF:function(){return tP},map:function(){return tL},mapBoth:function(){return tY},mapError:function(){return tV},mapLeft:function(){return tB},match:function(){return tz},matchE:function(){return tX},orElse:function(){return t$},orElseFirst:function(){return tZ},orLeft:function(){return t0},right:function(){return tk},rightF:function(){return tF},swap:function(){return t1},tapError:function(){return tQ},toUnion:function(){return t2}});var R={};e.r(R);var S={};e.r(S),e.d(S,{fieldNumber:function(){return t9},gcd:function(){return t4},lcm:function(){return t7}});var T={};e.r(T),e.d(T,{filter:function(){return en},filterMap:function(){return et},getFilterableComposition:function(){return ei},partition:function(){return ee},partitionMap:function(){return er}});var x={};e.r(x);var w={};e.r(w),e.d(w,{foldM:function(){return ed},foldMap:function(){return eo},getFoldableComposition:function(){return eh},intercalate:function(){return ef},reduce:function(){return eu},reduceM:function(){return ec},reduceRight:function(){return ea},toArray:function(){return es},toReadonlyArray:function(){return el},traverse_:function(){return ep}});var M={};e.r(M),e.d(M,{foldMapWithIndex:function(){return ev},getFoldableWithIndexComposition:function(){return ey},reduceRightWithIndex:function(){return eg},reduceWithIndex:function(){return em}});var O={};e.r(O),e.d(O,{chainFirstIOK:function(){return eR},chainIOK:function(){return eI},fromIOK:function(){return e_},tapIO:function(){return eS}});var E={};e.r(E),e.d(E,{ApT:function(){return rc},Applicative:function(){return e5},Apply:function(){return eZ},Category:function(){return e9},Chain:function(){return e8},Choice:function(){return rn},Do:function(){return ru},Functor:function(){return eX},Monad:function(){return e3},Pointed:function(){return e$},Profunctor:function(){return e7},Strong:function(){return e6},URI:function(){return ez},ap:function(){return eU},apFirst:function(){return eQ},apFirstW:function(){return e0},apS:function(){return ro},apSW:function(){return ra},apSecond:function(){return e1},apSecondW:function(){return e2},apW:function(){return eA},ask:function(){return ex},asks:function(){return ew},asksReader:function(){return eE},asksReaderW:function(){return eO},bind:function(){return rr},bindTo:function(){return rt},bindW:function(){return ri},chain:function(){return rm},chainFirst:function(){return rv},chainFirstW:function(){return rg},chainW:function(){return rh},compose:function(){return eq},first:function(){return eY},flap:function(){return eJ},flatMap:function(){return eL},flatten:function(){return ej},flattenW:function(){return eN},getMonoid:function(){return r_},getSemigroup:function(){return rb},id:function(){return eK},left:function(){return eV},let:function(){return re},local:function(){return eM},map:function(){return eP},of:function(){return eD},promap:function(){return eG},reader:function(){return ry},right:function(){return eH},second:function(){return eB},sequenceArray:function(){return rs},tap:function(){return e4},traverseArray:function(){return rd},traverseArrayWithIndex:function(){return rp},traverseReadonlyArrayWithIndex:function(){return rl},traverseReadonlyNonEmptyArrayWithIndex:function(){return rf}});var C={};e.r(C),e.d(C,{ask:function(){return rI},asks:function(){return rR},chainFirstReaderK:function(){return rx},chainReaderK:function(){return rT},fromReaderK:function(){return rS},tapReader:function(){return rw}});var k={};e.r(k),e.d(k,{Applicative:function(){return rB},Apply:function(){return rG},Chain:function(){return rV},FromState:function(){return rX},Functor:function(){return rN},Monad:function(){return rH},Pointed:function(){return rq},URI:function(){return rL},ap:function(){return rP},apFirst:function(){return rK},apS:function(){return r1},apSecond:function(){return rY},bind:function(){return r0},bindTo:function(){return rZ},chain:function(){return r7},chainFirst:function(){return r9},evalState:function(){return r6},evaluate:function(){return rJ},execState:function(){return it},execute:function(){return r$},flap:function(){return rj},flatMap:function(){return rU},flatten:function(){return rD},get:function(){return rM},gets:function(){return rC},let:function(){return rQ},map:function(){return rF},modify:function(){return rE},of:function(){return rA},put:function(){return rO},sequenceArray:function(){return r4},state:function(){return ie},tap:function(){return rz},traverseArray:function(){return r3},traverseArrayWithIndex:function(){return r8},traverseReadonlyArrayWithIndex:function(){return r5},traverseReadonlyNonEmptyArrayWithIndex:function(){return r2}});var W={};e.r(W),e.d(W,{chainStateK:function(){return ic},fromStateK:function(){return ia},get:function(){return ir},gets:function(){return io},modify:function(){return iu},put:function(){return ii}});var F={};e.r(F),e.d(F,{chainFirstTaskK:function(){return id},chainTaskK:function(){return ip},fromTaskK:function(){return il},tapTask:function(){return is}});var P={};e.r(P),e.d(P,{fromTheseK:function(){return ih}});var A={};e.r(A),e.d(A,{getFunctorWithIndexComposition:function(){return iv},mapWithIndex:function(){return im}});var U={};e.r(U);var D={};e.r(D);var L={};e.r(L);var N={};e.r(N),e.d(N,{Alt:function(){return i2},Applicative:function(){return iJ},Apply:function(){return iH},Chain:function(){return i$},ChainRec:function(){return i8},Comonad:function(){return i5},Do:function(){return i3},Foldable:function(){return i0},Functor:function(){return iY},Monad:function(){return iZ},Pointed:function(){return iV},Traversable:function(){return i1},URI:function(){return iq},alt:function(){return ij},altW:function(){return iN},ap:function(){return iM},apFirst:function(){return iz},apS:function(){return i6},apSecond:function(){return iX},bind:function(){return i9},bindTo:function(){return i4},chain:function(){return un},chainFirst:function(){return iQ},duplicate:function(){return iW},extend:function(){return iC},extract:function(){return ik},flap:function(){return iB},flatMap:function(){return iE},flatten:function(){return iF},foldMap:function(){return iA},getEq:function(){return iK},getShow:function(){return iG},identity:function(){return ut},let:function(){return i7},map:function(){return iw},of:function(){return iO},reduce:function(){return iP},reduceRight:function(){return iU},sequence:function(){return iL},traverse:function(){return iD}});var j={};e.r(j);var q={};e.r(q),e.d(q,{ApT:function(){return uW},Applicative:function(){return ub},Apply:function(){return uv},Chain:function(){return u_},ChainRec:function(){return ux},Do:function(){return uM},FromIO:function(){return uw},Functor:function(){return up},Monad:function(){return uI},MonadIO:function(){return uT},Pointed:function(){return um},URI:function(){return ul},ap:function(){return uo},apFirst:function(){return ug},apS:function(){return uk},apSecond:function(){return uy},as:function(){return ud},asUnit:function(){return us},bind:function(){return uC},bindTo:function(){return uO},chain:function(){return uL},chainFirst:function(){return uN},flap:function(){return uh},flatMap:function(){return uc},flatten:function(){return uf},fromIO:function(){return uS},getMonoid:function(){return uG},getSemigroup:function(){return uq},io:function(){return uj},let:function(){return uE},map:function(){return uu},of:function(){return ua},sequenceArray:function(){return uD},tap:function(){return uR},traverseArray:function(){return uU},traverseArrayWithIndex:function(){return uA},traverseReadonlyArrayWithIndex:function(){return uP},traverseReadonlyNonEmptyArrayWithIndex:function(){return uF}});var G={};e.r(G),e.d(G,{Alt:function(){return oY},ApT:function(){return am},Applicative:function(){return aw},ApplicativePar:function(){return oA},ApplicativeSeq:function(){return oU},ApplyPar:function(){return oC},Bifunctor:function(){return oE},Chain:function(){return oD},Do:function(){return ac},FromEither:function(){return oN},FromIO:function(){return oj},Functor:function(){return oT},Monad:function(){return oL},MonadIO:function(){return oB},MonadThrow:function(){return oV},Pointed:function(){return oO},URI:function(){return ob},alt:function(){return ov},altW:function(){return og},ap:function(){return ol},apFirst:function(){return ok},apFirstW:function(){return oW},apS:function(){return as},apSW:function(){return ah},apSecond:function(){return oF},apSecondW:function(){return oP},apW:function(){return op},as:function(){return ox},asUnit:function(){return ow},bimap:function(){return oa},bind:function(){return ap},bindTo:function(){return af},bindW:function(){return ad},bracket:function(){return ao},bracketW:function(){return aa},chain:function(){return aM},chainEitherK:function(){return o9},chainEitherKW:function(){return o6},chainFirst:function(){return aE},chainFirstEitherK:function(){return an},chainFirstEitherKW:function(){return at},chainFirstIOK:function(){return oz},chainFirstW:function(){return aC},chainIOK:function(){return o7},chainOptionK:function(){return o$},chainOptionKW:function(){return oZ},chainW:function(){return aO},filterOrElse:function(){return ar},filterOrElseW:function(){return ai},flap:function(){return oM},flatMap:function(){return os},flatMapEither:function(){return o3},flatMapIO:function(){return o4},flatMapNullable:function(){return o5},flatMapOption:function(){return o8},flatten:function(){return om},flattenW:function(){return oh},fold:function(){return uZ},foldW:function(){return u0},fromEither:function(){return uH},fromEitherK:function(){return au},fromIO:function(){return uz},fromIOK:function(){return oH},fromOption:function(){return oX},fromOptionK:function(){return oJ},fromPredicate:function(){return ae},getAltIOValidation:function(){return oI},getApplicativeIOValidation:function(){return o_},getApplyMonoid:function(){return aA},getApplySemigroup:function(){return aP},getCompactable:function(){return oR},getFilterable:function(){return oS},getIOValidation:function(){return aD},getOrElse:function(){return u1},getOrElseW:function(){return u2},getSemigroup:function(){return aU},ioEither:function(){return aF},left:function(){return uK},leftIO:function(){return uV},let:function(){return al},liftNullable:function(){return o0},liftOption:function(){return o1},map:function(){return ou},mapBoth:function(){return oo},mapError:function(){return oc},mapLeft:function(){return of},match:function(){return uX},matchE:function(){return u$},matchEW:function(){return uQ},matchW:function(){return uJ},of:function(){return od},orElse:function(){return u4},orElseFirst:function(){return ak},orElseFirstIOK:function(){return u6},orElseFirstW:function(){return aW},orElseW:function(){return u7},orLeft:function(){return on},right:function(){return uY},rightIO:function(){return uB},sequenceArray:function(){return aR},sequenceSeqArray:function(){return ax},swap:function(){return ot},tap:function(){return oq},tapEither:function(){return oG},tapError:function(){return u9},tapIO:function(){return oK},throwError:function(){return oy},toUnion:function(){return u3},traverseArray:function(){return aI},traverseArrayWithIndex:function(){return a_},traverseReadonlyArrayWithIndex:function(){return ag},traverseReadonlyArrayWithIndexSeq:function(){return ab},traverseReadonlyNonEmptyArrayWithIndex:function(){return av},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return ay},traverseSeqArray:function(){return aT},traverseSeqArrayWithIndex:function(){return aS},tryCatch:function(){return u5},tryCatchK:function(){return u8}});var K={};e.r(K),e.d(K,{alt:function(){return a1},ap:function(){return aZ},chain:function(){return aQ},chainNullableK:function(){return aK},chainOptionK:function(){return aB},flatMap:function(){return a0},fromEither:function(){return aH},fromF:function(){return aj},fromNullable:function(){return aq},fromNullableK:function(){return aG},fromOptionK:function(){return aY},fromPredicate:function(){return aV},getOptionM:function(){return a2},getOrElse:function(){return aJ},map:function(){return a$},match:function(){return az},matchE:function(){return aX},some:function(){return aL},zero:function(){return aN}});var Y={};e.r(Y),e.d(Y,{Alt:function(){return cH},Alternative:function(){return cJ},ApT:function(){return ff},Applicative:function(){return cj},Apply:function(){return cD},Chain:function(){return cq},Compactable:function(){return cQ},Do:function(){return fi},Filterable:function(){return c0},FromEither:function(){return cG},FromIO:function(){return cK},Functor:function(){return cW},Monad:function(){return c$},MonadIO:function(){return cZ},Pointed:function(){return cU},URI:function(){return ck},Zero:function(){return cz},alt:function(){return cy},altW:function(){return cb},ap:function(){return ch},apFirst:function(){return cL},apS:function(){return fc},apSecond:function(){return cN},as:function(){return cF},asUnit:function(){return cP},bind:function(){return fa},bindTo:function(){return fu},chain:function(){return fd},chainEitherK:function(){return ft},chainFirst:function(){return fs},chainFirstEitherK:function(){return fe},chainFirstIOK:function(){return c6},chainIOK:function(){return c9},chainNullableK:function(){return cp},chainOptionK:function(){return fr},compact:function(){return cR},filter:function(){return cT},filterMap:function(){return cx},flap:function(){return cA},flatMap:function(){return cv},flatMapEither:function(){return c3},flatMapIO:function(){return c5},flatMapNullable:function(){return c4},flatMapOption:function(){return c8},flatten:function(){return cg},fold:function(){return cr},fromEither:function(){return a7},fromEitherK:function(){return fn},fromIO:function(){return a9},fromIOEither:function(){return a6},fromIOK:function(){return c7},fromNullable:function(){return cf},fromNullableK:function(){return cl},fromOption:function(){return a4},fromOptionK:function(){return cd},fromPredicate:function(){return a3},getOrElse:function(){return cu},getOrElseW:function(){return co},guard:function(){return cX},let:function(){return fo},map:function(){return cs},match:function(){return cn},matchE:function(){return ce},matchEW:function(){return ci},matchW:function(){return ct},none:function(){return cI},of:function(){return cm},partition:function(){return cw},partitionMap:function(){return cM},separate:function(){return cS},some:function(){return a8},tap:function(){return cY},tapEither:function(){return cB},tapIO:function(){return cV},toNullable:function(){return cc},toUndefined:function(){return ca},traverseReadonlyArrayWithIndex:function(){return fp},traverseReadonlyNonEmptyArrayWithIndex:function(){return fl},zero:function(){return c_}});var B={};e.r(B),e.d(B,{IORef:function(){return fh},newIORef:function(){return fm}});var V={};e.r(V);var H={};e.r(H),e.d(H,{parse:function(){return fv},stringify:function(){return fg}});var z={};e.r(z);var X={};e.r(X);var J={};e.r(J);var $={};e.r($);var Z={};e.r(Z);var Q={};e.r(Q);var nn={};e.r(nn);var nt={};e.r(nt),e.d(nt,{Eq:function(){return fx},Monoid:function(){return fM},Semigroup:function(){return fw},eqOrdering:function(){return fk},invert:function(){return fE},match:function(){return fS},matchW:function(){return fR},monoidOrdering:function(){return fW},reverse:function(){return fT},semigroupOrdering:function(){return fC},sign:function(){return fO}});var ne={};e.r(ne);var nr={};e.r(nr);var ni={};e.r(ni),e.d(ni,{random:function(){return fP},randomBool:function(){return fD},randomElem:function(){return fL},randomInt:function(){return fA},randomRange:function(){return fU}});var nu={};e.r(nu),e.d(nu,{Alt:function(){return lN},ApT:function(){return pd},Applicative:function(){return lC},Apply:function(){return lx},Bifunctor:function(){return lL},Chain:function(){return lk},Do:function(){return pu},FromEither:function(){return lF},FromReader:function(){return lP},Functor:function(){return l_},Monad:function(){return lW},MonadThrow:function(){return lB},Pointed:function(){return lT},URI:function(){return lm},alt:function(){return ld},altW:function(){return ls},ap:function(){return lo},apFirst:function(){return lw},apFirstW:function(){return lM},apS:function(){return pl},apSW:function(){return pp},apSecond:function(){return lO},apSecondW:function(){return lE},apW:function(){return la},as:function(){return lI},asUnit:function(){return lR},ask:function(){return lj},asks:function(){return lq},asksReaderEither:function(){return f2},asksReaderEitherW:function(){return f1},bimap:function(){return lr},bind:function(){return pc},bindTo:function(){return po},bindW:function(){return pf},chain:function(){return py},chainEitherK:function(){return l3},chainEitherKW:function(){return l4},chainFirst:function(){return p_},chainFirstEitherK:function(){return l7},chainFirstEitherKW:function(){return l9},chainFirstReaderK:function(){return lK},chainFirstReaderKW:function(){return lY},chainFirstW:function(){return pI},chainOptionK:function(){return lz},chainOptionKW:function(){return lX},chainReaderK:function(){return l6},chainReaderKW:function(){return pn},chainW:function(){return pb},filterOrElse:function(){return pe},filterOrElseW:function(){return pr},flap:function(){return lS},flatMap:function(){return lf},flatMapEither:function(){return l5},flatMapNullable:function(){return l1},flatMapOption:function(){return l2},flatMapReader:function(){return l8},flatten:function(){return lp},flattenW:function(){return ll},fold:function(){return fz},foldW:function(){return fJ},fromEither:function(){return fK},fromEitherK:function(){return pi},fromOption:function(){return lV},fromOptionK:function(){return lH},fromPredicate:function(){return pt},fromReader:function(){return fY},fromReaderK:function(){return lG},getAltReaderValidation:function(){return lb},getApplicativeReaderValidation:function(){return ly},getApplyMonoid:function(){return pw},getApplySemigroup:function(){return px},getCompactable:function(){return lv},getFilterable:function(){return lg},getOrElse:function(){return f$},getOrElseW:function(){return fZ},getReaderValidation:function(){return pO},getSemigroup:function(){return pM},left:function(){return fN},leftReader:function(){return fG},let:function(){return pa},liftNullable:function(){return lZ},liftOption:function(){return lQ},local:function(){return f0},map:function(){return lt},mapBoth:function(){return le},mapError:function(){return li},mapLeft:function(){return lu},match:function(){return fB},matchE:function(){return fH},matchEW:function(){return fX},matchW:function(){return fV},of:function(){return lc},orElse:function(){return f5},orElseFirst:function(){return pR},orElseFirstW:function(){return pS},orElseW:function(){return f8},orLeft:function(){return f4},readerEither:function(){return pT},right:function(){return fj},rightReader:function(){return fq},sequenceArray:function(){return pg},swap:function(){return f7},tap:function(){return lA},tapEither:function(){return lU},tapError:function(){return f3},tapReader:function(){return lD},throwError:function(){return lh},toUnion:function(){return fQ},traverseArray:function(){return pv},traverseArrayWithIndex:function(){return pm},traverseReadonlyArrayWithIndex:function(){return ph},traverseReadonlyNonEmptyArrayWithIndex:function(){return ps}});var no={};e.r(no),e.d(no,{ap:function(){return pk},chain:function(){return pW},flatMap:function(){return pF},fromNaturalTransformation:function(){return pA},fromReader:function(){return pP},getReaderM:function(){return pU},map:function(){return pC},of:function(){return pE}});var na={};e.r(na),e.d(na,{ApT:function(){return dw},Applicative:function(){return p4},Apply:function(){return p5},Chain:function(){return p7},Do:function(){return d_},FromIO:function(){return dn},FromReader:function(){return dt},Functor:function(){return pZ},Monad:function(){return p9},MonadIO:function(){return p6},Pointed:function(){return p2},URI:function(){return p$},ap:function(){return pB},apFirst:function(){return p8},apS:function(){return dT},apSW:function(){return dx},apSecond:function(){return p3},apW:function(){return pV},as:function(){return pQ},asUnit:function(){return p0},ask:function(){return ds},asks:function(){return dh},asksReaderIO:function(){return pq},asksReaderIOW:function(){return pj},bind:function(){return dR},bindTo:function(){return dI},bindW:function(){return dS},chain:function(){return dW},chainFirst:function(){return dP},chainFirstIOK:function(){return dd},chainFirstReaderK:function(){return dy},chainFirstReaderKW:function(){return db},chainFirstW:function(){return dA},chainIOK:function(){return dp},chainReaderK:function(){return dv},chainReaderKW:function(){return dg},chainW:function(){return dF},flap:function(){return p1},flatMap:function(){return pz},flatMapIO:function(){return di},flatMapReader:function(){return du},flatten:function(){return pJ},flattenW:function(){return pX},fromIO:function(){return pL},fromIOK:function(){return dl},fromReader:function(){return pD},fromReaderK:function(){return dm},local:function(){return pN},map:function(){return pY},of:function(){return pH},sequenceArray:function(){return dk},tap:function(){return da},tapIO:function(){return dc},tapReader:function(){return df},traverseArray:function(){return dC},traverseArrayWithIndex:function(){return dE},traverseReadonlyArrayWithIndex:function(){return dO},traverseReadonlyNonEmptyArrayWithIndex:function(){return dM}});var nc={};e.r(nc),e.d(nc,{ApT:function(){return sm},ApplicativePar:function(){return d2},ApplicativeSeq:function(){return d8},ApplyPar:function(){return dQ},ApplySeq:function(){return d5},Chain:function(){return d3},Do:function(){return sl},FromIO:function(){return sn},FromTask:function(){return sc},Functor:function(){return dz},Monad:function(){return d4},MonadIO:function(){return d7},MonadTask:function(){return d6},Pointed:function(){return dZ},URI:function(){return dV},ap:function(){return dG},apFirst:function(){return d0},apS:function(){return sh},apSecond:function(){return d1},as:function(){return dX},asUnit:function(){return dJ},bind:function(){return ss},bindTo:function(){return sp},chain:function(){return sw},chainFirst:function(){return sM},chainFirstIOK:function(){return sa},chainIOK:function(){return so},delay:function(){return dD},flap:function(){return d$},flatMap:function(){return dY},flatMapIO:function(){return se},flatten:function(){return dB},fromIO:function(){return dU},fromIOK:function(){return su},fromTask:function(){return d9},getMonoid:function(){return sk},getRaceMonoid:function(){return dH},getSemigroup:function(){return sC},let:function(){return sd},map:function(){return dq},never:function(){return sf},of:function(){return dK},sequenceArray:function(){return sR},sequenceSeqArray:function(){return sx},tap:function(){return sr},tapIO:function(){return si},task:function(){return sO},taskSeq:function(){return sE},traverseArray:function(){return sI},traverseArrayWithIndex:function(){return s_},traverseReadonlyArrayWithIndex:function(){return sg},traverseReadonlyArrayWithIndexSeq:function(){return sb},traverseReadonlyNonEmptyArrayWithIndex:function(){return sv},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return sy},traverseSeqArray:function(){return sT},traverseSeqArrayWithIndex:function(){return sS}});var nf={};e.r(nf),e.d(nf,{ApT:function(){return hj},ApplicativePar:function(){return s8},ApplicativeSeq:function(){return s4},ApplyPar:function(){return s1},ApplySeq:function(){return s3},Chain:function(){return s7},Do:function(){return hF},FromIO:function(){return ht},FromReader:function(){return hr},FromTask:function(){return he},Functor:function(){return sJ},Monad:function(){return s9},MonadIO:function(){return s6},MonadTask:function(){return hn},Pointed:function(){return s0},URI:function(){return sX},ap:function(){return sK},apFirst:function(){return s2},apS:function(){return hL},apSW:function(){return hN},apSecond:function(){return s5},apW:function(){return sY},as:function(){return s$},asUnit:function(){return sZ},ask:function(){return hy},asks:function(){return hb},asksReaderTask:function(){return sL},asksReaderTaskW:function(){return sD},bind:function(){return hU},bindTo:function(){return hP},bindW:function(){return hD},chain:function(){return hJ},chainFirst:function(){return hZ},chainFirstIOK:function(){return hg},chainFirstReaderIOK:function(){return hE},chainFirstReaderIOKW:function(){return hO},chainFirstReaderK:function(){return hS},chainFirstReaderKW:function(){return hT},chainFirstTaskK:function(){return hW},chainFirstW:function(){return hQ},chainIOK:function(){return hv},chainReaderIOK:function(){return hM},chainReaderIOKW:function(){return hw},chainReaderK:function(){return hI},chainReaderKW:function(){return hR},chainTaskK:function(){return hk},chainW:function(){return h$},flap:function(){return sQ},flatMap:function(){return sV},flatMapIO:function(){return ho},flatMapReader:function(){return hc},flatMapReaderIO:function(){return hf},flatMapTask:function(){return ha},flatten:function(){return sz},flattenW:function(){return sH},fromIO:function(){return sP},fromIOK:function(){return hm},fromReader:function(){return sW},fromReaderIO:function(){return sA},fromReaderIOK:function(){return hx},fromReaderK:function(){return h_},fromTask:function(){return sF},fromTaskK:function(){return hC},getMonoid:function(){return h8},getSemigroup:function(){return h5},let:function(){return hA},local:function(){return sU},map:function(){return sG},of:function(){return sB},readerTask:function(){return h1},readerTaskSeq:function(){return h2},run:function(){return h3},sequenceArray:function(){return hH},sequenceSeqArray:function(){return h0},tap:function(){return hl},tapIO:function(){return hp},tapReader:function(){return hd},tapReaderIO:function(){return hh},tapTask:function(){return hs},traverseArray:function(){return hV},traverseArrayWithIndex:function(){return hB},traverseReadonlyArrayWithIndex:function(){return hG},traverseReadonlyArrayWithIndexSeq:function(){return hY},traverseReadonlyNonEmptyArrayWithIndex:function(){return hq},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return hK},traverseSeqArray:function(){return hX},traverseSeqArrayWithIndex:function(){return hz}});var nl={};e.r(nl),e.d(nl,{Alt:function(){return vy},ApT:function(){return v7},ApplicativePar:function(){return ve},ApplicativeSeq:function(){return vi},ApplyPar:function(){return m7},ApplySeq:function(){return vr},Bifunctor:function(){return vg},Chain:function(){return vu},Do:function(){return v0},FromEither:function(){return vl},FromIO:function(){return vp},FromTask:function(){return vd},Functor:function(){return m2},Monad:function(){return vo},MonadIO:function(){return va},MonadTask:function(){return vc},MonadThrow:function(){return vf},Pointed:function(){return m4},URI:function(){return m$},alt:function(){return mH},altW:function(){return mz},ap:function(){return mG},apFirst:function(){return m9},apFirstW:function(){return m6},apS:function(){return v3},apSW:function(){return v4},apSecond:function(){return vn},apSecondW:function(){return vt},apW:function(){return mK},as:function(){return m5},asUnit:function(){return m8},bimap:function(){return mN},bind:function(){return v5},bindTo:function(){return v1},bindW:function(){return v8},bracket:function(){return vZ},bracketW:function(){return vQ},chain:function(){return gc},chainEitherK:function(){return vA},chainEitherKW:function(){return vU},chainFirst:function(){return gl},chainFirstEitherK:function(){return vD},chainFirstEitherKW:function(){return vL},chainFirstIOK:function(){return vB},chainFirstTaskK:function(){return vz},chainFirstW:function(){return gp},chainIOEitherK:function(){return vJ},chainIOEitherKW:function(){return vX},chainIOK:function(){return vY},chainNullableK:function(){return mI},chainOptionK:function(){return vI},chainOptionKW:function(){return vR},chainTaskK:function(){return vH},chainTaskOptionK:function(){return mk},chainTaskOptionKW:function(){return mC},chainW:function(){return gf},filterOrElse:function(){return vj},filterOrElseW:function(){return vq},flap:function(){return m3},flatMap:function(){return mY},flatMapEither:function(){return vC},flatMapIO:function(){return vk},flatMapIOEither:function(){return vF},flatMapNullable:function(){return vO},flatMapOption:function(){return vE},flatMapTask:function(){return vW},flatMapTaskOption:function(){return vP},flatten:function(){return mV},flattenW:function(){return mB},fold:function(){return mp},foldW:function(){return ms},fromEither:function(){return mu},fromEitherK:function(){return vG},fromIO:function(){return mr},fromIOEither:function(){return mo},fromIOEitherK:function(){return mW},fromIOK:function(){return vK},fromNullable:function(){return mb},fromNullableK:function(){return m_},fromOption:function(){return vb},fromOptionK:function(){return v_},fromPredicate:function(){return vN},fromTask:function(){return mi},fromTaskK:function(){return vV},fromTaskOption:function(){return ma},fromTaskOptionK:function(){return mE},getAltTaskValidation:function(){return mQ},getApplicativeTaskValidation:function(){return mZ},getApplyMonoid:function(){return gg},getApplySemigroup:function(){return gv},getCompactable:function(){return m0},getFilterable:function(){return m1},getOrElse:function(){return mh},getOrElseW:function(){return mm},getSemigroup:function(){return gy},getTaskValidation:function(){return gb},left:function(){return h7},leftIO:function(){return me},leftTask:function(){return mn},let:function(){return v2},liftNullable:function(){return vT},liftOption:function(){return vx},map:function(){return mD},mapBoth:function(){return mL},mapError:function(){return mj},mapLeft:function(){return mq},match:function(){return mc},matchE:function(){return ml},matchEW:function(){return md},matchW:function(){return mf},of:function(){return mX},orElse:function(){return mR},orElseFirst:function(){return gd},orElseFirstIOK:function(){return mx},orElseFirstTaskK:function(){return mw},orElseFirstW:function(){return gs},orElseW:function(){return mS},orLeft:function(){return mM},right:function(){return h9},rightIO:function(){return mt},rightTask:function(){return h6},sequenceArray:function(){return gi},sequenceSeqArray:function(){return ga},swap:function(){return mO},tap:function(){return vs},tapEither:function(){return vh},tapError:function(){return mT},tapIO:function(){return vm},tapTask:function(){return vv},taskEither:function(){return gh},taskEitherSeq:function(){return gm},taskify:function(){return v$},throwError:function(){return mJ},toUnion:function(){return my},traverseArray:function(){return gr},traverseArrayWithIndex:function(){return ge},traverseReadonlyArrayWithIndex:function(){return v6},traverseReadonlyArrayWithIndexSeq:function(){return gt},traverseReadonlyNonEmptyArrayWithIndex:function(){return v9},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return gn},traverseSeqArray:function(){return go},traverseSeqArrayWithIndex:function(){return gu},tryCatch:function(){return mv},tryCatchK:function(){return mg}});var np={};e.r(np),e.d(np,{Alt:function(){return yQ},ApT:function(){return b3},ApplicativePar:function(){return yk},ApplicativeSeq:function(){return yF},ApplyPar:function(){return yw},ApplySeq:function(){return yW},Bifunctor:function(){return yZ},Chain:function(){return yP},Do:function(){return bZ},FromEither:function(){return yN},FromIO:function(){return yj},FromReader:function(){return yG},FromTask:function(){return yq},Functor:function(){return yI},Monad:function(){return yA},MonadIO:function(){return yU},MonadTask:function(){return yD},MonadThrow:function(){return yL},Pointed:function(){return yx},URI:function(){return yv},alt:function(){return ys},altW:function(){return yh},ap:function(){return ya},apFirst:function(){return yM},apFirstW:function(){return yO},apS:function(){return b5},apSW:function(){return b8},apSecond:function(){return yE},apSecondW:function(){return yC},apW:function(){return yc},as:function(){return yR},asUnit:function(){return yS},ask:function(){return y0},asks:function(){return y1},asksReaderTaskEither:function(){return gQ},asksReaderTaskEitherW:function(){return gZ},bimap:function(){return yi},bind:function(){return b1},bindTo:function(){return bQ},bindW:function(){return b2},bracket:function(){return bJ},bracketW:function(){return b$},chain:function(){return _o},chainEitherK:function(){return bT},chainEitherKW:function(){return bx},chainFirst:function(){return _c},chainFirstEitherK:function(){return bw},chainFirstEitherKW:function(){return bM},chainFirstIOK:function(){return bL},chainFirstReaderEitherK:function(){return y4},chainFirstReaderEitherKW:function(){return y3},chainFirstReaderIOK:function(){return bi},chainFirstReaderIOKW:function(){return br},chainFirstReaderK:function(){return y5},chainFirstReaderKW:function(){return y8},chainFirstReaderTaskK:function(){return bt},chainFirstReaderTaskKW:function(){return bn},chainFirstTaskEitherK:function(){return y9},chainFirstTaskEitherKW:function(){return y7},chainFirstTaskK:function(){return bq},chainFirstW:function(){return _f},chainIOEitherK:function(){return bH},chainIOEitherKW:function(){return bV},chainIOK:function(){return bD},chainNullableK:function(){return gJ},chainOptionK:function(){return ba},chainOptionKW:function(){return bc},chainReaderEitherK:function(){return bX},chainReaderEitherKW:function(){return bz},chainReaderIOK:function(){return bB},chainReaderIOKW:function(){return bY},chainReaderK:function(){return bG},chainReaderKW:function(){return bK},chainReaderTaskK:function(){return bk},chainReaderTaskKW:function(){return bC},chainTaskEitherK:function(){return bE},chainTaskEitherKW:function(){return bO},chainTaskK:function(){return bj},chainW:function(){return _a},filterOrElse:function(){return bF},filterOrElseW:function(){return bP},flap:function(){return yT},flatMap:function(){return yl},flatMapEither:function(){return bm},flatMapIO:function(){return by},flatMapIOEither:function(){return bR},flatMapNullable:function(){return bs},flatMapOption:function(){return bh},flatMapReader:function(){return b_},flatMapReaderEither:function(){return bS},flatMapReaderIO:function(){return bI},flatMapReaderTask:function(){return bg},flatMapTask:function(){return bb},flatMapTaskEither:function(){return bv},flatten:function(){return yd},flattenW:function(){return yp},fold:function(){return gG},foldW:function(){return gY},fromEither:function(){return gF},fromEitherK:function(){return bA},fromIO:function(){return gA},fromIOEither:function(){return gD},fromIOEitherK:function(){return g3},fromIOK:function(){return bU},fromNullable:function(){return gz},fromNullableK:function(){return gX},fromOption:function(){return bu},fromOptionK:function(){return bo},fromPredicate:function(){return bW},fromReader:function(){return gP},fromReaderEither:function(){return gL},fromReaderEitherK:function(){return g7},fromReaderIOK:function(){return be},fromReaderK:function(){return y2},fromReaderTaskK:function(){return y6},fromTask:function(){return gU},fromTaskEither:function(){return g_},fromTaskEitherK:function(){return g4},fromTaskK:function(){return bN},getAltReaderTaskValidation:function(){return y_},getApplicativeReaderTaskValidation:function(){return yb},getApplyMonoid:function(){return _m},getApplySemigroup:function(){return _h},getCompactable:function(){return yg},getFilterable:function(){return yy},getOrElse:function(){return gB},getOrElseW:function(){return gV},getReaderTaskValidation:function(){return _g},getSemigroup:function(){return _v},left:function(){return gI},leftIO:function(){return gC},leftReader:function(){return gw},leftReaderIO:function(){return gW},leftReaderTask:function(){return gO},leftTask:function(){return gT},let:function(){return b0},liftNullable:function(){return bl},liftOption:function(){return bp},local:function(){return g$},map:function(){return ye},mapBoth:function(){return yr},mapError:function(){return yu},mapLeft:function(){return yo},match:function(){return gN},matchE:function(){return gq},matchEW:function(){return gK},matchW:function(){return gj},of:function(){return yf},orElse:function(){return g0},orElseFirst:function(){return _l},orElseFirstW:function(){return _p},orElseW:function(){return g1},orLeft:function(){return g5},readerTaskEither:function(){return _d},readerTaskEitherSeq:function(){return _s},right:function(){return gR},rightIO:function(){return gE},rightReader:function(){return gx},rightReaderIO:function(){return gk},rightReaderTask:function(){return gM},rightTask:function(){return gS},run:function(){return _y},sequenceArray:function(){return _e},sequenceSeqArray:function(){return _u},swap:function(){return g8},tap:function(){return yK},tapEither:function(){return yY},tapError:function(){return g2},tapIO:function(){return yB},tapReader:function(){return yH},tapReaderEither:function(){return yz},tapReaderIO:function(){return y$},tapReaderTask:function(){return yJ},tapTask:function(){return yV},tapTaskEither:function(){return yX},throwError:function(){return ym},toUnion:function(){return gH},traverseArray:function(){return _t},traverseArrayWithIndex:function(){return _n},traverseReadonlyArrayWithIndex:function(){return b7},traverseReadonlyArrayWithIndexSeq:function(){return b6},traverseReadonlyNonEmptyArrayWithIndex:function(){return b4},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return b9},traverseSeqArray:function(){return _i},traverseSeqArrayWithIndex:function(){return _r}});var nd={};e.r(nd),e.d(nd,{Bifunctor:function(){return _3},Comonad:function(){return _7},Foldable:function(){return _9},Functor:function(){return _1},Semigroupoid:function(){return _4},Traversable:function(){return _6},URI:function(){return _0},bimap:function(){return _G},compose:function(){return _B},duplicate:function(){return _z},extend:function(){return _V},extract:function(){return _H},flap:function(){return _2},foldMap:function(){return _J},fst:function(){return _T},getApplicative:function(){return _E},getApply:function(){return _M},getChain:function(){return _C},getChainRec:function(){return _W},getMonad:function(){return _k},map:function(){return _5},mapFst:function(){return _K},mapLeft:function(){return _8},mapSnd:function(){return _Y},readonlyTuple:function(){return In},reduce:function(){return _X},reduceRight:function(){return _$},sequence:function(){return _Q},snd:function(){return _x},swap:function(){return _w},traverse:function(){return _Z}});var ns={};e.r(ns),e.d(ns,{Compactable:function(){return Ry},Filterable:function(){return Rb},FilterableWithIndex:function(){return R_},Foldable:function(){return RO},FoldableWithIndex:function(){return RE},Functor:function(){return Rs},FunctorWithIndex:function(){return Rm},Traversable:function(){return RC},TraversableWithIndex:function(){return Rk},URI:function(){return Rf},Witherable:function(){return RP},collect:function(){return If},compact:function(){return Ra},deleteAt:function(){return Ih},difference:function(){return IY},elem:function(){return Iq},empty:function(){return RA},every:function(){return IN},filter:function(){return Rn},filterMap:function(){return Rt},filterMapWithIndex:function(){return IF},filterWithIndex:function(){return IP},flap:function(){return Rh},foldMap:function(){return Ru},foldMapWithIndex:function(){return IS},fromEntries:function(){return ID},fromFoldable:function(){return IA},fromFoldableMap:function(){return IL},getDifferenceMagma:function(){return RM},getEq:function(){return Rp},getFoldable:function(){return Rv},getFoldableWithIndex:function(){return Rg},getIntersectionSemigroup:function(){return Rw},getMonoid:function(){return Rd},getShow:function(){return Rl},getTraversable:function(){return RI},getTraversableWithIndex:function(){return RR},getUnionMonoid:function(){return Rx},getUnionSemigroup:function(){return RT},getWitherable:function(){return RS},has:function(){return Is},hasOwnProperty:function(){return RD},insertAt:function(){return RU},intersection:function(){return IK},isEmpty:function(){return Io},isSubrecord:function(){return Iy},keys:function(){return Ic},lookup:function(){return Ib},map:function(){return II},mapWithIndex:function(){return I_},modifyAt:function(){return Iv},partition:function(){return Re},partitionMap:function(){return Rr},partitionMapWithIndex:function(){return Ik},partitionWithIndex:function(){return IW},pop:function(){return Ig},record:function(){return RL},reduce:function(){return Ri},reduceRight:function(){return Ro},reduceRightWithIndex:function(){return IT},reduceWithIndex:function(){return IR},separate:function(){return Rc},sequence:function(){return IO},singleton:function(){return Ix},size:function(){return Iu},some:function(){return Ij},toArray:function(){return Il},toEntries:function(){return IU},toUnfoldable:function(){return Ip},traverse:function(){return IM},traverseWithIndex:function(){return Iw},union:function(){return IG},updateAt:function(){return Im},upsertAt:function(){return Id},wilt:function(){return IC},wither:function(){return IE}});var nh={};e.r(nh),e.d(nh,{and:function(){return RY},compose:function(){return RV},fromEitherK:function(){return Rj},fromOptionK:function(){return RN},id:function(){return Rq},not:function(){return RG},or:function(){return RK},zero:function(){return RB}});var nm={};e.r(nm),e.d(nm,{getFunctionRing:function(){return RJ},getTupleRing:function(){return RX},negate:function(){return Rz},tuple:function(){return RH}});var nv={};e.r(nv);var ng={};e.r(ng),e.d(ng,{getFunctionSemiring:function(){return R$}});var ny={};e.r(ny),e.d(ny,{getStructShow:function(){return R2},getTupleShow:function(){return R1},showBoolean:function(){return R5},showNumber:function(){return R3},showString:function(){return R8},struct:function(){return RQ},tuple:function(){return R0}});var nb={};e.r(nb),e.d(nb,{ap:function(){return R9},chain:function(){return R6},evaluate:function(){return Sr},execute:function(){return Si},flatMap:function(){return Sn},fromF:function(){return Se},fromState:function(){return St},getStateM:function(){return Su},map:function(){return R7},of:function(){return R4}});var n_={};e.r(n_),e.d(n_,{Alt:function(){return Tk},Applicative:function(){return Tc},Apply:function(){return Tr},Bifunctor:function(){return TC},Chain:function(){return Tf},FromEither:function(){return TI},FromIO:function(){return TR},FromReader:function(){return TT},FromState:function(){return Tl},FromTask:function(){return TS},Functor:function(){return S9},Monad:function(){return Tg},MonadIO:function(){return Ty},MonadTask:function(){return Tb},MonadThrow:function(){return T_},Pointed:function(){return Te},URI:function(){return S7},alt:function(){return S3},altW:function(){return S8},ap:function(){return Sq},apFirst:function(){return Ti},apFirstW:function(){return Tu},apS:function(){return xr},apSW:function(){return xi},apSecond:function(){return To},apSecondW:function(){return Ta},apW:function(){return SG},as:function(){return S6},asUnit:function(){return Tn},ask:function(){return TW},asks:function(){return TF},asksStateReaderTaskEither:function(){return SM},asksStateReaderTaskEitherW:function(){return Sw},bimap:function(){return SN},bind:function(){return xt},bindTo:function(){return T6},bindW:function(){return xe},chain:function(){return xl},chainEitherK:function(){return TK},chainEitherKW:function(){return TY},chainFirst:function(){return xd},chainFirstEitherK:function(){return TB},chainFirstEitherKW:function(){return TV},chainFirstIOK:function(){return TQ},chainFirstReaderK:function(){return TD},chainFirstReaderKW:function(){return TL},chainFirstTaskK:function(){return T4},chainFirstW:function(){return xs},chainIOEitherK:function(){return T5},chainIOEitherKW:function(){return T2},chainIOK:function(){return TZ},chainOptionK:function(){return Tq},chainOptionKW:function(){return TG},chainReaderK:function(){return TA},chainReaderKW:function(){return TU},chainReaderTaskEitherK:function(){return SW},chainReaderTaskEitherKW:function(){return Sk},chainStateK:function(){return Tv},chainTaskEitherK:function(){return T1},chainTaskEitherKW:function(){return T0},chainTaskK:function(){return T3},chainW:function(){return xp},evalState:function(){return xv},evaluate:function(){return T7},execState:function(){return xg},execute:function(){return T9},filterOrElse:function(){return Tz},filterOrElseW:function(){return TX},flap:function(){return Tt},flatMap:function(){return SB},flatMapEither:function(){return SZ},flatMapIO:function(){return Sz},flatMapIOEither:function(){return S$},flatMapOption:function(){return SQ},flatMapReader:function(){return SJ},flatMapReaderTaskEither:function(){return S0},flatMapState:function(){return S1},flatMapTask:function(){return SX},flatMapTaskEither:function(){return SH},flatten:function(){return S5},flattenW:function(){return S2},fromEither:function(){return Sv},fromEitherK:function(){return TJ},fromIO:function(){return Sy},fromIOEither:function(){return SR},fromIOEitherK:function(){return SO},fromIOK:function(){return T$},fromOption:function(){return TN},fromOptionK:function(){return Tj},fromPredicate:function(){return TH},fromReader:function(){return Sg},fromReaderEither:function(){return SS},fromReaderK:function(){return TP},fromReaderTaskEither:function(){return ST},fromReaderTaskEitherK:function(){return SC},fromState:function(){return S_},fromStateK:function(){return Tm},fromTask:function(){return Sb},fromTaskEither:function(){return SI},fromTaskEitherK:function(){return SE},fromTaskK:function(){return T8},get:function(){return Tp},gets:function(){return Th},left:function(){return So},leftIO:function(){return Ss},leftReader:function(){return Sp},leftState:function(){return Sm},leftTask:function(){return Sf},let:function(){return xn},local:function(){return Sx},map:function(){return SL},mapLeft:function(){return Sj},modify:function(){return Ts},of:function(){return SK},put:function(){return Td},right:function(){return Sa},rightIO:function(){return Sd},rightReader:function(){return Sl},rightState:function(){return Sh},rightTask:function(){return Sc},run:function(){return xy},sequenceArray:function(){return xf},stateReaderTaskEither:function(){return xh},stateReaderTaskEitherSeq:function(){return xm},tap:function(){return Tx},tapEither:function(){return Tw},tapIO:function(){return TM},tapReader:function(){return TE},tapTask:function(){return TO},throwError:function(){return S4},traverseArray:function(){return xc},traverseArrayWithIndex:function(){return xa},traverseReadonlyArrayWithIndex:function(){return xo},traverseReadonlyNonEmptyArrayWithIndex:function(){return xu}});var nI={};e.r(nI),e.d(nI,{Comonad:function(){return xk},Functor:function(){return xE},URI:function(){return xO},duplicate:function(){return xw},experiment:function(){return xR},extend:function(){return xT},extract:function(){return xx},flap:function(){return xC},map:function(){return xM},peeks:function(){return xI},seek:function(){return xb},seeks:function(){return x_},store:function(){return xW}});var nR={};e.r(nR),e.d(nR,{fanOut:function(){return xP},fanout:function(){return xU},split:function(){return xF},splitStrong:function(){return xA}});var nS={};e.r(nS),e.d(nS,{evolve:function(){return xL},getAssignSemigroup:function(){return xD}});var nT={};e.r(nT),e.d(nT,{Alt:function(){return wj},Alternative:function(){return wK},ApT:function(){return w6},ApplicativePar:function(){return wO},ApplicativeSeq:function(){return wk},ApplyPar:function(){return wx},ApplySeq:function(){return wC},Chain:function(){return wW},Compactable:function(){return wH},Do:function(){return w8},Filterable:function(){return wz},FromEither:function(){return wF},FromIO:function(){return wP},FromTask:function(){return wA},Functor:function(){return w_},Monad:function(){return wY},MonadIO:function(){return wB},MonadTask:function(){return wV},Pointed:function(){return wT},URI:function(){return wb},Zero:function(){return wq},alt:function(){return wo},altW:function(){return wa},ap:function(){return x6},apFirst:function(){return ww},apS:function(){return w9},apSecond:function(){return wM},as:function(){return wI},asUnit:function(){return wR},bind:function(){return w7},bindTo:function(){return w3},chain:function(){return Ml},chainEitherK:function(){return wQ},chainFirst:function(){return Mp},chainFirstEitherK:function(){return w0},chainFirstIOK:function(){return w$},chainFirstTaskK:function(){return w5},chainIOK:function(){return wJ},chainNullableK:function(){return x3},chainOptionK:function(){return x7},chainTaskK:function(){return w2},compact:function(){return wl},filter:function(){return wd},filterMap:function(){return ws},flap:function(){return wS},flatMap:function(){return wt},flatMapIO:function(){return wr},flatMapTask:function(){return wi},flatten:function(){return wu},fold:function(){return xJ},foldW:function(){return xZ},fromEither:function(){return xK},fromEitherK:function(){return wZ},fromIO:function(){return xY},fromIOK:function(){return wX},fromNullable:function(){return x1},fromNullableK:function(){return x8},fromOption:function(){return xG},fromOptionK:function(){return x4},fromPredicate:function(){return xq},fromTask:function(){return xB},fromTaskEither:function(){return xV},fromTaskK:function(){return w1},getOrElse:function(){return xQ},getOrElseW:function(){return x0},guard:function(){return wG},let:function(){return w4},map:function(){return x9},match:function(){return xH},matchE:function(){return xX},matchEW:function(){return x$},matchW:function(){return xz},none:function(){return wf},of:function(){return wn},partition:function(){return wh},partitionMap:function(){return wm},separate:function(){return wp},sequenceArray:function(){return Mo},sequenceSeqArray:function(){return Mf},some:function(){return xj},tap:function(){return wU},tapEither:function(){return wD},tapIO:function(){return wL},tapTask:function(){return wN},traverseArray:function(){return Mu},traverseArrayWithIndex:function(){return Mi},traverseReadonlyArrayWithIndex:function(){return Mt},traverseReadonlyArrayWithIndexSeq:function(){return Mr},traverseReadonlyNonEmptyArrayWithIndex:function(){return Mn},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return Me},traverseSeqArray:function(){return Mc},traverseSeqArrayWithIndex:function(){return Ma},tryCatch:function(){return x2},tryCatchK:function(){return x5},zero:function(){return wc}});var nx={};e.r(nx),e.d(nx,{ApT:function(){return Ou},Bifunctor:function(){return M5},Foldable:function(){return M3},FromEither:function(){return M7},FromThese:function(){return M8},Functor:function(){return M0},Pointed:function(){return M2},Traversable:function(){return M4},URI:function(){return MQ},bimap:function(){return MY},both:function(){return Mg},elem:function(){return Ot},exists:function(){return Oe},flap:function(){return M1},fold:function(){return MI},foldMap:function(){return Mz},foldW:function(){return Mb},fromOption:function(){return M6},fromOptionK:function(){return On},fromOptions:function(){return MU},fromPredicate:function(){return M9},getApplicative:function(){return MM},getApply:function(){return Mw},getChain:function(){return MO},getEq:function(){return MT},getLeft:function(){return MC},getLeftOnly:function(){return MP},getMonad:function(){return ME},getRight:function(){return Mk},getRightOnly:function(){return MA},getSemigroup:function(){return Mx},getShow:function(){return MS},isBoth:function(){return Mh},isLeft:function(){return Md},isRight:function(){return Ms},left:function(){return Mm},leftOrBoth:function(){return MW},map:function(){return MV},mapLeft:function(){return MB},match:function(){return M_},matchW:function(){return My},of:function(){return MZ},reduce:function(){return MH},reduceRight:function(){return MX},right:function(){return Mv},rightOrBoth:function(){return MF},sequence:function(){return M$},swap:function(){return MR},these:function(){return Oc},toTuple:function(){return Oi},toTuple2:function(){return Or},traverse:function(){return MJ},traverseReadonlyArrayWithIndex:function(){return Oa},traverseReadonlyNonEmptyArrayWithIndex:function(){return Oo}});var nw={};e.r(nw),e.d(nw,{ap:function(){return Om},bimap:function(){return Og},both:function(){return Op},chain:function(){return Ov},getTheseM:function(){return OS},left:function(){return Ol},leftF:function(){return Os},map:function(){return Oh},mapLeft:function(){return Oy},match:function(){return Ob},matchE:function(){return O_},right:function(){return Of},rightF:function(){return Od},swap:function(){return OI},toTuple2:function(){return OR}});var nM={};e.r(nM),e.d(nM,{ApT:function(){return Eo},Bifunctor:function(){return O8},FromEither:function(){return O3},FromIO:function(){return Et},FromTask:function(){return Er},FromThese:function(){return O6},Functor:function(){return O1},Pointed:function(){return O5},URI:function(){return OJ},bifunctorTaskThese:function(){return Ed},bimap:function(){return OH},both:function(){return Ow},flap:function(){return O2},fold:function(){return ON},foldW:function(){return Oq},fromEither:function(){return Ok},fromIO:function(){return OF},fromIOEither:function(){return OP},fromIOK:function(){return Ee},fromOption:function(){return O4},fromOptionK:function(){return O7},fromPredicate:function(){return O9},fromTask:function(){return OA},fromTaskK:function(){return Ei},fromThese:function(){return OW},fromTheseK:function(){return En},functorTaskThese:function(){return Ep},getApplicative:function(){return OZ},getApply:function(){return O$},getChain:function(){return OQ},getMonad:function(){return O0},getSemigroup:function(){return Em},left:function(){return OT},leftIO:function(){return OC},leftTask:function(){return OO},map:function(){return OV},mapLeft:function(){return Oz},match:function(){return OU},matchE:function(){return OL},matchEW:function(){return Oj},matchW:function(){return OD},of:function(){return OX},right:function(){return Ox},rightIO:function(){return OE},rightTask:function(){return OM},swap:function(){return OG},taskThese:function(){return Eh},toTuple:function(){return Es},toTuple2:function(){return Eu},traverseReadonlyArrayWithIndex:function(){return Ec},traverseReadonlyArrayWithIndexSeq:function(){return El},traverseReadonlyNonEmptyArrayWithIndex:function(){return Ea},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return Ef}});var nO={};e.r(nO),e.d(nO,{Functor:function(){return ET},URI:function(){return ES},censor:function(){return Eb},flap:function(){return Ex},getComonad:function(){return E_},listen:function(){return Eg},listens:function(){return Ey},map:function(){return ER},traced:function(){return Ew},tracks:function(){return Ev}});var nE={};e.r(nE),e.d(nE,{getTraversableComposition:function(){return EE},sequence:function(){return EO},traverse:function(){return EM}});var nC={};e.r(nC);var nk={};e.r(nk),e.d(nk,{Applicative:function(){return Ci},Apply:function(){return Ct},Chain:function(){return Cu},Comonad:function(){return Cl},Do:function(){return Cp},Foldable:function(){return Cc},Functor:function(){return E9},Monad:function(){return Co},Pointed:function(){return Cn},Traversable:function(){return Cf},URI:function(){return E7},ap:function(){return Ez},apFirst:function(){return Ce},apS:function(){return Cm},apSecond:function(){return Cr},bind:function(){return Ch},bindTo:function(){return Cd},chain:function(){return Cy},chainFirst:function(){return Ca},drawForest:function(){return EP},drawTree:function(){return EA},duplicate:function(){return E$},elem:function(){return Cv},exists:function(){return Cg},extend:function(){return EJ},extract:function(){return E5},flap:function(){return E6},flatMap:function(){return EX},flatten:function(){return EZ},fold:function(){return Ej},foldMap:function(){return E1},getEq:function(){return EW},getShow:function(){return Ek},let:function(){return Cs},make:function(){return EC},map:function(){return EQ},of:function(){return E4},reduce:function(){return E0},reduceRight:function(){return E2},sequence:function(){return E3},traverse:function(){return E8},tree:function(){return Cb},unfoldForest:function(){return ED},unfoldForestM:function(){return EN},unfoldTree:function(){return EU},unfoldTreeM:function(){return EL}});var nW={};e.r(nW),e.d(nW,{Bifunctor:function(){return CQ},Comonad:function(){return C1},Foldable:function(){return C2},Functor:function(){return C$},Semigroupoid:function(){return C0},Traversable:function(){return C5},URI:function(){return CJ},bimap:function(){return CL},compose:function(){return Cq},duplicate:function(){return CK},extend:function(){return CG},extract:function(){return CY},flap:function(){return CZ},foldMap:function(){return CB},fst:function(){return C_},getApplicative:function(){return Cx},getApply:function(){return CS},getChain:function(){return Cw},getChainRec:function(){return CO},getMonad:function(){return CM},map:function(){return C8},mapFst:function(){return CN},mapLeft:function(){return C3},mapSnd:function(){return Cj},reduce:function(){return CV},reduceRight:function(){return CH},sequence:function(){return CX},snd:function(){return CI},swap:function(){return CR},traverse:function(){return Cz},tuple:function(){return C4}});var nF={};e.r(nF);var nP={};e.r(nP),e.d(nP,{getValidationM:function(){return C7}});var nA={};e.r(nA),e.d(nA,{Monoid:function(){return C6},Semigroup:function(){return C9}});var nU={};e.r(nU),e.d(nU,{Functor:function(){return ks},URI:function(){return ka},censor:function(){return ki},evalWriter:function(){return kg},evaluate:function(){return km},execWriter:function(){return ky},execute:function(){return kv},flap:function(){return kh},getApplicative:function(){return kl},getApply:function(){return kf},getChain:function(){return kp},getMonad:function(){return kd},getPointed:function(){return kc},listen:function(){return kt},listens:function(){return kr},map:function(){return ko},pass:function(){return ke},tell:function(){return kn},writer:function(){return kb}});var nD={};function nL(n){return function(t){return function(e){return e.reduce(function(t,e){return n.alt(t,function(){return e})},t)}}}e.r(nD),e.d(nD,{getWriterM:function(){return k_}});var nN=e(42925);function nj(n){return nL(n)(n.zero())}function nq(n){var t=(0,nN.getApplySemigroup)(n);return function(e){var r=t(e);return{concat:function(t,e){return n.alt(r.concat(t,e),function(){return n.alt(t,function(){return e})})},empty:n.zero()}}}var nG=e(46111),nK=e(1358),nY=function(n){return"boolean"==typeof n},nB=function(n,t){return function(e){return e?t():n()}},nV=nB,nH=nV,nz=nH,nX={equals:function(n,t){return n===t}},nJ={meet:function(n,t){return n&&t},join:function(n,t){return n||t},zero:!1,one:!0,implies:function(n,t){return!n||t},not:function(n){return!n}},n$={concat:function(n,t){return n&&t}},nZ={concat:function(n,t){return n||t}},nQ={concat:n$.concat,empty:!0},n0={concat:nZ.concat,empty:!1},n1={equals:nX.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},n2={show:function(n){return JSON.stringify(n)}},n5=e(42275),n8=function(n){return{meet:function(t,e){return n.join(t,e)},join:function(t,e){return n.meet(t,e)},zero:n.one,one:n.zero,implies:function(t,e){return n.join(n.not(t),e)},not:n.not}},n3={meet:function(){},join:function(){},zero:void 0,one:void 0,implies:function(){},not:function(){}},n4=n8,n7={meet:function(n,t){return n&&t},join:function(n,t){return n||t},zero:!1,one:!0,implies:function(n,t){return!n||t},not:function(n){return!n}},n9=n5.getBooleanAlgebra,n6=e(5586),tn=function(n){return n6.clamp(n)(n.bottom,n.top)},tt=function(n){var t=n6.reverse(n);return{equals:t.equals,compare:t.compare,top:n.bottom,bottom:n.top}},te={equals:n6.ordNumber.equals,compare:n6.ordNumber.compare,top:1/0,bottom:-1/0};function tr(n){return{meet:(0,n6.min)(n),join:(0,n6.max)(n)}}function ti(n){var t=tr(n);return function(n,e){return{join:t.join,meet:t.meet,zero:n,one:e}}}var tu=e(88543),to=e(56661);function ta(n,t){return function(e,r){return t.compose(n.right(r),n.left(e))}}function tc(n,t){var e=ta(n,t);return function(r,i){return t.compose(n.promap(t.id(),function(n){return"Left"===n._tag?n.left:n.right},n5.identity),e(r,i))}}function tf(n){return ta(n,n)}function tl(n){return tc(n,n)}var tp=e(67560),td=e(20492),ts=e(34219);function th(n,t){return function(e){return n.map(e,t.compact)}}function tm(n,t,e){var r=th(n,t),i=(0,tp.map)(n,e);return function(n){return ts.separated(r((0,n5.pipe)(n,i(td.getLeft))),r((0,n5.pipe)(n,i(td.getRight))))}}function tv(n,t){return{map:(0,tp.getFunctorComposition)(n,t).map,compact:th(n,t),separate:tm(n,t,t)}}var tg=function(n){return function(){return console.log(n)}},ty=function(n){return function(){return console.warn(n)}},tb=function(n){return function(){return console.error(n)}},t_=function(n){return function(){return console.info(n)}},tI=e(90817),tR=e(76627),tS={equals:function(n,t){return n.valueOf()===t.valueOf()}},tT={equals:function(n,t){return n.getDate()===t.getDate()}},tx={equals:function(n,t){return n.getMonth()===t.getMonth()}},tw={equals:function(n,t){return n.getFullYear()===t.getFullYear()}},tM=(0,n5.pipe)(tR.Ord,n6.contramap(function(n){return n.valueOf()})),tO=function(){return new Date},tE=function(){return new Date().getTime()},tC=e(81878);function tk(n){return(0,n5.flow)(tC.right,n.of)}function tW(n){return(0,n5.flow)(tC.left,n.of)}function tF(n){return function(t){return n.map(t,tC.right)}}function tP(n){return function(t){return n.map(t,tC.left)}}function tA(n){return function(t){return(0,n5.flow)(tC.fromNullable(t),n.of)}}function tU(n){var t=tA(n);return function(n){var e=t(n);return function(n){return(0,n5.flow)(n,e)}}}function tD(n){var t=tj(n),e=tU(n);return function(n){var r=e(n);return function(n){return t(r(n))}}}function tL(n){return(0,tp.map)(n,tC.Functor)}function tN(n){return(0,nN.ap)(n,tC.Apply)}function tj(n){var t=tq(n);return function(n){return function(e){return t(e,n)}}}function tq(n){return function(t,e){return n.chain(t,function(t){return tC.isLeft(t)?n.of(t):e(t.right)})}}function tG(n){return function(t){return function(e){return n.chain(e,function(e){return tC.isLeft(e)?t():n.of(e)})}}}function tK(n){var t=tY(n);return function(n,e){return function(r){return t(r,n,e)}}}function tY(n){return function(t,e,r){return n.map(t,tC.bimap(e,r))}}function tB(n){var t=tV(n);return function(n){return function(e){return t(e,n)}}}function tV(n){return function(t,e){return n.map(t,tC.mapLeft(e))}}function tH(n,t){return function(e){return function(r){return n.chain(r,tC.match(function(r){return n.map(e(),tC.mapLeft(function(n){return t.concat(r,n)}))},tk(n)))}}}function tz(n){return function(t,e){return function(r){return n.map(r,tC.match(t,e))}}}function tX(n){return function(t,e){return function(r){return n.chain(r,tC.match(t,e))}}}function tJ(n){return function(t){return function(e){return n.chain(e,tC.match(t,n.of))}}}function t$(n){return function(t){return function(e){return n.chain(e,function(e){return tC.isLeft(e)?t(e.left):n.of(e)})}}}function tZ(n){var t=tQ(n);return function(n){return function(e){return t(e,n)}}}function tQ(n){var t=t$(n);return function(e,r){return(0,n5.pipe)(e,t(function(t){return n.map(r(t),function(n){return tC.isLeft(n)?n:tC.left(t)})}))}}function t0(n){return function(t){return function(e){return n.chain(e,tC.match(function(e){return n.map(t(e),tC.left)},function(t){return n.of(tC.right(t))}))}}}function t1(n){return function(t){return n.map(t,tC.swap)}}function t2(n){return function(t){return n.map(t,tC.toUnion)}}function t5(n){var t=tN(n),e=tL(n),r=tj(n),i=tG(n),u=tK(n),o=tB(n),a=tX(n),c=tJ(n),f=t$(n);return{map:function(n,t){return(0,n5.pipe)(n,e(t))},ap:function(n,e){return(0,n5.pipe)(n,t(e))},of:tk(n),chain:function(n,t){return(0,n5.pipe)(n,r(t))},alt:function(n,t){return(0,n5.pipe)(n,i(t))},bimap:function(n,t,e){return(0,n5.pipe)(n,u(t,e))},mapLeft:function(n,t){return(0,n5.pipe)(n,o(t))},fold:function(n,t,e){return(0,n5.pipe)(n,a(t,e))},getOrElse:function(n,t){return(0,n5.pipe)(n,c(t))},orElse:function(n,t){return(0,n5.pipe)(n,f(t))},swap:t1(n),rightM:tF(n),leftM:tP(n),left:tW(n)}}var t8=e(47797),t3=e(65191);function t4(n,t){var e=t.zero,r=function(i,u){return n.equals(u,e)?i:r(u,t.mod(i,u))};return r}function t7(n,t){var e=t.zero,r=t4(n,t);return function(i,u){return n.equals(i,e)||n.equals(u,e)?e:t.div(t.mul(i,u),r(i,u))}}var t9={add:function(n,t){return n+t},zero:0,mul:function(n,t){return n*t},one:1,sub:function(n,t){return n-t},degree:function(n){return 1},div:function(n,t){return n/t},mod:function(n,t){return n%t}},t6=e(88491);function en(n,t){return function(e){return function(r){return n.map(r,function(n){return t.filter(n,e)})}}}function et(n,t){return function(e){return function(r){return n.map(r,function(n){return t.filterMap(n,e)})}}}function ee(n,t){var e=en(n,t);return function(n){var t=e((0,t6.not)(n)),r=e(n);return function(n){return(0,ts.separated)(t(n),r(n))}}}function er(n,t){var e=et(n,t);return function(n){return function(t){return(0,ts.separated)((0,n5.pipe)(t,e(function(t){return(0,td.getLeft)(n(t))})),(0,n5.pipe)(t,e(function(t){return(0,td.getRight)(n(t))})))}}}function ei(n,t){var e=(0,tp.getFunctorComposition)(n,t).map,r=th(n,t),i=tm(n,t,t),u=en(n,t),o=et(n,t),a=ee(n,t),c=er(n,t);return{map:e,compact:r,separate:i,filter:function(n,t){return(0,n5.pipe)(n,u(t))},filterMap:function(n,t){return(0,n5.pipe)(n,o(t))},partition:function(n,t){return(0,n5.pipe)(n,a(t))},partitionMap:function(n,t){return(0,n5.pipe)(n,c(t))}}}function eu(n,t){return function(e,r){return function(i){return n.reduce(i,e,function(n,e){return t.reduce(e,n,r)})}}}function eo(n,t){return function(e){var r=n.foldMap(e),i=t.foldMap(e);return function(n){return function(t){return r(t,function(t){return i(t,n)})}}}}function ea(n,t){return function(e,r){return function(i){return n.reduceRight(i,e,function(n,e){return t.reduceRight(n,e,r)})}}}function ec(n,t){return function(e,r){return function(i){return t.reduce(i,n.of(e),function(t,e){return n.chain(t,function(n){return r(n,e)})})}}}function ef(n,t){return function(e,r){return t.reduce(r,{init:!0,acc:n.empty},function(t,r){var i=t.init,u=t.acc;return i?{init:!1,acc:r}:{init:!1,acc:n.concat(n.concat(u,e),r)}}).acc}}function el(n){return function(t){return n.reduce(t,[],function(n,t){return n.push(t),n})}}function ep(n,t){var e=n.of(void 0);return function(r,i){return t.reduce(r,e,function(t,e){var r;return r=i(e),n.ap(n.map(t,n5.constant),r)})}}function ed(n,t){return function(e,r,i){return t.reduce(e,n.of(r),function(t,e){return n.chain(t,function(n){return i(n,e)})})}}var es=el;function eh(n,t){var e=eu(n,t),r=eo(n,t),i=ea(n,t);return{reduce:function(n,t,r){return(0,n5.pipe)(n,e(t,r))},foldMap:function(n){var t=r(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},reduceRight:function(n,t,e){return(0,n5.pipe)(n,i(t,e))}}}function em(n,t){return function(e,r){return function(i){return n.reduceWithIndex(i,e,function(n,e,i){return t.reduceWithIndex(i,e,function(t,e,i){return r([n,t],e,i)})})}}}function ev(n,t){return function(e){var r=n.foldMapWithIndex(e),i=t.foldMapWithIndex(e);return function(n){return function(t){return r(t,function(t,e){return i(e,function(e,r){return n([t,e],r)})})}}}}function eg(n,t){return function(e,r){return function(i){return n.reduceRightWithIndex(i,e,function(n,e,i){return t.reduceRightWithIndex(e,i,function(t,e,i){return r([n,t],e,i)})})}}}function ey(n,t){var e=eh(n,t),r=em(n,t),i=ev(n,t),u=eg(n,t);return{reduce:e.reduce,foldMap:e.foldMap,reduceRight:e.reduceRight,reduceWithIndex:function(n,t,e){return(0,n5.pipe)(n,r(t,e))},foldMapWithIndex:function(n){var t=i(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},reduceRightWithIndex:function(n,t,e){return(0,n5.pipe)(n,u(t,e))}}}var eb=e(25162);function e_(n){return function(t){return(0,n5.flow)(t,n.fromIO)}}function eI(n,t){return function(e){var r=(0,n5.flow)(e,n.fromIO);return function(n){return t.chain(n,r)}}}function eR(n,t){var e=eS(n,t);return function(n){return function(t){return e(t,n)}}}function eS(n,t){var e=(0,tu.tap)(t);return function(t,r){return e(t,(0,n5.flow)(r,n.fromIO))}}var eT=e(97963),ex=function(){return n5.identity},ew=n5.identity,eM=function(n){return function(t){return function(e){return t(n(e))}}},eO=function(n){return function(t){return n(t)(t)}},eE=eO,eC=function(n,t){return(0,n5.pipe)(n,eP(t))},ek=function(n,t){return(0,n5.pipe)(n,eU(t))},eW=function(n,t){return(0,n5.pipe)(n,eq(t))},eF=function(n,t,e){return(0,n5.pipe)(n,eG(t,e))},eP=function(n){return function(t){return function(e){return n(t(e))}}},eA=function(n){return function(t){return function(e){return t(e)(n(e))}}},eU=eA,eD=n5.constant,eL=(0,n5.dual)(2,function(n,t){return function(e){return t(n(e))(e)}}),eN=eL(n5.identity),ej=eN,eq=function(n){return function(t){return(0,n5.flow)(n,t)}},eG=function(n,t){return function(e){return function(r){return t(e(n(r)))}}},eK=function(){return n5.identity},eY=function(n){return function(t){var e=t[0],r=t[1];return[n(e),r]}},eB=function(n){return function(t){return[t[0],n(t[1])]}},eV=function(n){return tC.fold(function(t){return eT.t$(n(t))},tC.right)},eH=function(n){return tC.fold(tC.left,function(t){return eT.F2(n(t))})},ez="Reader",eX={URI:ez,map:eC},eJ=(0,tp.flap)(eX),e$={URI:ez,of:eD},eZ={URI:ez,map:eC,ap:ek},eQ=(0,nN.apFirst)(eZ),e0=eQ,e1=(0,nN.apSecond)(eZ),e2=e1,e5={URI:ez,map:eC,ap:ek,of:eD},e8={URI:ez,map:eC,ap:ek,chain:eL},e3={URI:ez,map:eC,of:eD,ap:ek,chain:eL},e4=(0,n5.dual)(2,tu.tap(e8)),e7={URI:ez,map:eC,promap:eF},e9={URI:ez,compose:eW,id:eK},e6={URI:ez,map:eC,promap:eF,first:eY,second:eB},rn={URI:ez,map:eC,promap:eF,left:eV,right:eH},rt=(0,tp.bindTo)(eX),re=(0,tp.let)(eX),rr=tu.bind(e8),ri=rr,ru=eD(eT.F4),ro=(0,nN.apS)(eZ),ra=ro,rc=eD(eT.Xl),rf=function(n){return function(t){return function(e){for(var r=[n(0,eT.YM(t))(e)],i=1;i<t.length;i++)r.push(n(i,t[i])(e));return r}}},rl=function(n){var t=rf(n);return function(n){return eT.Od(n)?t(n):rc}},rp=rl,rd=function(n){return rl(function(t,e){return n(e)})},rs=rd(n5.identity),rh=eL,rm=eL,rv=e4,rg=e4,ry={URI:ez,map:eC,of:eD,ap:ek,chain:eL,promap:eF,compose:eW,id:eK,first:eY,second:eB,left:eV,right:eH},rb=(0,nN.getApplySemigroup)(eZ),r_=(0,nG.getApplicativeMonoid)(e5);function rI(n){return function(){return n.fromReader(ex())}}function rR(n){return n.fromReader}function rS(n){return function(t){return(0,n5.flow)(t,n.fromReader)}}function rT(n,t){var e=rS(n);return function(n){return function(r){return t.chain(r,e(n))}}}function rx(n,t){var e=rw(n,t);return function(n){return function(t){return e(t,n)}}}function rw(n,t){var e=(0,tu.tap)(t);return function(t,r){return e(t,(0,n5.flow)(r,n.fromReader))}}var rM=function(){return function(n){return[n,n]}},rO=function(n){return function(){return[void 0,n]}},rE=function(n){return function(t){return[void 0,n(t)]}},rC=function(n){return function(t){return[n(t),t]}},rk=function(n,t){return(0,n5.pipe)(n,rF(t))},rW=function(n,t){return(0,n5.pipe)(n,rP(t))},rF=function(n){return function(t){return function(e){var r=t(e),i=r[0],u=r[1];return[n(i),u]}}},rP=function(n){return function(t){return function(e){var r=t(e),i=r[0],u=n(r[1]),o=u[0],a=u[1];return[i(o),a]}}},rA=function(n){return function(t){return[n,t]}},rU=(0,n5.dual)(2,function(n,t){return function(e){var r=n(e),i=r[0],u=r[1];return t(i)(u)}}),rD=rU(n5.identity),rL="State",rN={URI:rL,map:rk},rj=(0,tp.flap)(rN),rq={URI:rL,of:rA},rG={URI:rL,map:rk,ap:rW},rK=(0,nN.apFirst)(rG),rY=(0,nN.apSecond)(rG),rB={URI:rL,map:rk,ap:rW,of:rA},rV={URI:rL,map:rk,ap:rW,chain:rU},rH={URI:rL,map:rk,ap:rW,of:rA,chain:rU},rz=(0,n5.dual)(2,tu.tap(rV)),rX={URI:rL,fromState:n5.identity},rJ=function(n){return function(t){return t(n)[0]}},r$=function(n){return function(t){return t(n)[1]}},rZ=(0,tp.bindTo)(rN),rQ=(0,tp.let)(rN),r0=tu.bind(rV),r1=(0,nN.apS)(rG),r2=function(n){return function(t){return function(e){for(var r=n(0,eT.YM(t))(e),i=r[0],u=r[1],o=[i],a=u,c=1;c<t.length;c++){var f=n(c,t[c])(a),l=f[0],p=f[1];o.push(l),a=p}return[o,a]}}},r5=function(n){var t=r2(n);return function(n){return eT.Od(n)?t(n):rA(eT.Xl)}},r8=r5,r3=function(n){return r5(function(t,e){return n(e)})},r4=r3(n5.identity),r7=rU,r9=rz,r6=function(n,t){return n(t)[0]},it=function(n,t){return n(t)[1]},ie=rH;function ir(n){return function(){return n.fromState(rM())}}function ii(n){return function(t){return n.fromState(rO(t))}}function iu(n){return(0,n5.flow)(rE,n.fromState)}function io(n){return(0,n5.flow)(rC,n.fromState)}function ia(n){return function(t){return(0,n5.flow)(t,n.fromState)}}function ic(n,t){var e=ia(n);return function(n){return function(r){return t.chain(r,e(n))}}}function il(n){return function(t){return(0,n5.flow)(t,n.fromTask)}}function ip(n,t){return function(e){var r=(0,n5.flow)(e,n.fromTask);return function(n){return t.chain(n,r)}}}function id(n,t){var e=is(n,t);return function(n){return function(t){return e(t,n)}}}function is(n,t){var e=(0,tu.tap)(t);return function(t,r){return e(t,(0,n5.flow)(r,n.fromTask))}}function ih(n){return function(t){return(0,n5.flow)(t,n.fromThese)}}function im(n,t){return function(e){return function(r){return n.mapWithIndex(r,function(n,r){return t.mapWithIndex(r,function(t,r){return e([n,t],r)})})}}}function iv(n,t){var e=(0,tp.getFunctorComposition)(n,t).map,r=im(n,t);return{map:e,mapWithIndex:function(n,t){return(0,n5.pipe)(n,r(t))}}}var ig=function(n,t){return(0,n5.pipe)(n,iw(t))},iy=function(n,t){return(0,n5.pipe)(n,iM(t))},ib=function(n,t,e){return(0,n5.pipe)(n,iP(t,e))},i_=function(n){return function(t,e){return(0,n5.pipe)(t,iA(n)(e))}},iI=function(n,t,e){return(0,n5.pipe)(n,iU(t,e))},iR=function(n,t){return(0,n5.pipe)(n,ij(t))},iS=function(n,t){return(0,n5.pipe)(n,iC(t))},iT=function(n){var t=iD(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},ix=to.tailRec,iw=function(n){return function(t){return n(t)}},iM=function(n){return function(t){return t(n)}},iO=n5.identity,iE=(0,n5.dual)(2,function(n,t){return t(n)}),iC=function(n){return function(t){return n(t)}},ik=n5.identity,iW=iC(n5.identity),iF=iE(n5.identity),iP=function(n,t){return function(e){return t(n,e)}},iA=function(){return function(n){return function(t){return n(t)}}},iU=function(n,t){return function(e){return t(e,n)}},iD=function(n){return function(t){return function(e){return n.map(t(e),n5.identity)}}},iL=function(n){return function(t){return n.map(t,n5.identity)}},iN=function(){return n5.identity},ij=iN,iq="Identity",iG=n5.identity,iK=n5.identity,iY={URI:iq,map:ig},iB=(0,tp.flap)(iY),iV={URI:iq,of:iO},iH={URI:iq,map:ig,ap:iy},iz=(0,nN.apFirst)(iH),iX=(0,nN.apSecond)(iH),iJ={URI:iq,map:ig,ap:iy,of:iO},i$={URI:iq,map:ig,ap:iy,chain:iE},iZ={URI:iq,map:ig,ap:iy,of:iO,chain:iE},iQ=(0,tu.chainFirst)(i$),i0={URI:iq,reduce:ib,foldMap:i_,reduceRight:iI},i1={URI:iq,map:ig,reduce:ib,foldMap:i_,reduceRight:iI,traverse:iT,sequence:iL},i2={URI:iq,map:ig,alt:iR},i5={URI:iq,map:ig,extend:iS,extract:ik},i8={URI:iq,map:ig,ap:iy,chain:iE,chainRec:ix},i3=iO(eT.F4),i4=(0,tp.bindTo)(iY),i7=(0,tp.let)(iY),i9=(0,tu.bind)(i$),i6=(0,nN.apS)(iH),un=iE,ut={URI:iq,map:ig,ap:iy,of:iO,chain:iE,reduce:ib,foldMap:i_,reduceRight:iI,traverse:iT,sequence:iL,alt:iR,extract:ik,extend:iS,chainRec:ix},ue=function(n,t){return function(){return t(n())}},ur=function(n,t){return function(){return n()(t())}},ui=function(n,t){return function(){for(var e=t(n)();"Left"===e._tag;)e=t(e.left)();return e.right}},uu=function(n){return function(t){return ue(t,n)}},uo=function(n){return function(t){return ur(t,n)}},ua=n5.constant,uc=(0,n5.dual)(2,function(n,t){return function(){return t(n())()}}),uf=uc(n5.identity),ul="IO",up={URI:ul,map:ue},ud=(0,n5.dual)(2,(0,tp.as)(up)),us=(0,tp.asUnit)(up),uh=(0,tp.flap)(up),um={URI:ul,of:ua},uv={URI:ul,map:ue,ap:ur},ug=(0,nN.apFirst)(uv),uy=(0,nN.apSecond)(uv),ub={URI:ul,map:ue,ap:ur,of:ua},u_={URI:ul,map:ue,ap:ur,chain:uc},uI={URI:ul,map:ue,ap:ur,of:ua,chain:uc},uR=(0,n5.dual)(2,tu.tap(u_)),uS=n5.identity,uT={URI:ul,map:ue,ap:ur,of:ua,chain:uc,fromIO:uS},ux={URI:ul,map:ue,ap:ur,chain:uc,chainRec:ui},uw={URI:ul,fromIO:n5.identity},uM=ua(eT.F4),uO=(0,tp.bindTo)(up),uE=(0,tp.let)(up),uC=tu.bind(u_),uk=(0,nN.apS)(uv),uW=ua(eT.Xl),uF=function(n){return function(t){return function(){for(var e=[n(0,eT.YM(t))()],r=1;r<t.length;r++)e.push(n(r,t[r])());return e}}},uP=function(n){var t=uF(n);return function(n){return eT.Od(n)?t(n):uW}},uA=uP,uU=function(n){return uP(function(t,e){return n(e)})},uD=uU(n5.identity),uL=uc,uN=uR,uj={URI:ul,map:ue,of:ua,ap:ur,chain:uc,fromIO:uS,chainRec:ui},uq=(0,nN.getApplySemigroup)(uv),uG=(0,nG.getApplicativeMonoid)(ub),uK=tW(um),uY=tk(um),uB=tF(up),uV=tP(up),uH=ua,uz=uB,uX=tz(up),uJ=uX,u$=tX(uI),uZ=u$,uQ=u$,u0=uQ,u1=tJ(uI),u2=u1,u5=function(n,t){return function(){return tC.tryCatch(n,t)}},u8=function(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return u5(function(){return n.apply(void 0,e)},t)}},u3=t2(up),u4=t$(uI),u7=u4,u9=(0,n5.dual)(2,tQ(uI)),u6=function(n){return u9(oH(n))},on=t0(uI),ot=t1(up),oe=function(n,t){return(0,n5.pipe)(n,ou(t))},or=function(n,t){return(0,n5.pipe)(n,ol(t))},oi=function(n,t){return(0,n5.pipe)(n,ov(t))},ou=tL(up),oo=(0,n5.dual)(3,tY(up)),oa=oo,oc=(0,n5.dual)(2,tV(up)),of=oc,ol=tN(uv),op=ol,od=uY,os=(0,n5.dual)(2,tq(uI)),oh=os(n5.identity),om=oh,ov=tG(uI),og=ov,oy=uK,ob="IOEither";function o_(n){var t=(0,nN.ap)(uv,tC.getApplicativeValidation(n));return{URI:ob,_E:void 0,map:oe,ap:function(n,e){return(0,n5.pipe)(n,t(e))},of:od}}function oI(n){var t=tH(uI,n);return{URI:ob,_E:void 0,map:oe,alt:function(n,e){return(0,n5.pipe)(n,t(e))}}}var oR=function(n){var t=tC.getCompactable(n);return{URI:ob,_E:void 0,compact:th(up,t),separate:tm(up,t,tC.Functor)}};function oS(n){var t=tC.getFilterable(n),e=oR(n),r=en(up,t),i=et(up,t),u=ee(up,t),o=er(up,t);return{URI:ob,_E:void 0,map:oe,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,n5.pipe)(n,r(t))},filterMap:function(n,t){return(0,n5.pipe)(n,i(t))},partition:function(n,t){return(0,n5.pipe)(n,u(t))},partitionMap:function(n,t){return(0,n5.pipe)(n,o(t))}}}var oT={URI:ob,map:oe},ox=(0,n5.dual)(2,(0,tp.as)(oT)),ow=(0,tp.asUnit)(oT),oM=(0,tp.flap)(oT),oO={URI:ob,of:od},oE={URI:ob,bimap:oo,mapLeft:oc},oC={URI:ob,map:oe,ap:or},ok=(0,nN.apFirst)(oC),oW=ok,oF=(0,nN.apSecond)(oC),oP=oF,oA={URI:ob,map:oe,ap:or,of:od},oU={URI:ob,map:oe,ap:function(n,t){return os(n,function(n){return(0,n5.pipe)(t,ou(n))})},of:od},oD={URI:ob,map:oe,ap:or,chain:os},oL={URI:ob,map:oe,ap:or,of:od,chain:os},oN={URI:ob,fromEither:uH},oj={URI:ob,fromIO:uz},oq=(0,n5.dual)(2,tu.tap(oD)),oG=(0,n5.dual)(2,(0,eb.tapEither)(oN,oD)),oK=(0,n5.dual)(2,eS(oj,oD)),oY={URI:ob,map:oe,alt:oi},oB={URI:ob,map:oe,ap:or,of:od,chain:os,fromIO:uz},oV={URI:ob,map:oe,ap:or,of:od,chain:os,throwError:oy},oH=e_(oj),oz=oK,oX=(0,eb.fromOption)(oN),oJ=(0,eb.fromOptionK)(oN),o$=(0,eb.chainOptionK)(oN,oD),oZ=o$,oQ={fromEither:oN.fromEither},o0=eT.uL(oQ),o1=eT.WE(oQ),o2={flatMap:os},o5=eT.ny(oQ,o2),o8=eT.hU(oQ,o2),o3=eT.iu(oQ,o2),o4=eT.we({fromIO:uz},o2),o7=o4,o9=o3,o6=o3,an=oG,at=oG,ae=(0,eb.fromPredicate)(oN),ar=(0,eb.filterOrElse)(oN,oD),ai=ar,au=(0,eb.fromEitherK)(oN),ao=function(n,t,e){return aa(n,t,e)},aa=function(n,t,e){return os(n,function(n){return uc(t(n),function(t){return os(e(n,t),function(){return ua(t)})})})},ac=od(eT.F4),af=(0,tp.bindTo)(oT),al=(0,tp.let)(oT),ap=tu.bind(oD),ad=ap,as=(0,nN.apS)(oC),ah=as,am=od(eT.Xl),av=function(n){return(0,n5.flow)(uF(n),uu(tC.traverseReadonlyNonEmptyArrayWithIndex(n5.SK)))},ag=function(n){var t=av(n);return function(n){return eT.Od(n)?t(n):am}},ay=function(n){return function(t){return function(){var e=n(0,eT.YM(t))();if(eT.nM(e))return e;for(var r=[e.right],i=1;i<t.length;i++){var u=n(i,t[i])();if(eT.nM(u))return u;r.push(u.right)}return eT.F2(r)}}},ab=function(n){var t=ay(n);return function(n){return eT.Od(n)?t(n):am}},a_=ag,aI=function(n){return ag(function(t,e){return n(e)})},aR=aI(n5.identity),aS=ab,aT=function(n){return ab(function(t,e){return n(e)})},ax=aT(n5.identity),aw=oA,aM=os,aO=os,aE=oq,aC=oq,ak=u9,aW=u9,aF={URI:ob,bimap:oo,mapLeft:oc,map:oe,of:od,ap:or,chain:os,alt:oi,fromIO:uz,throwError:oy},aP=(0,nN.getApplySemigroup)(oC),aA=(0,nG.getApplicativeMonoid)(oA),aU=function(n){return(0,nN.getApplySemigroup)(uv)(tC.getSemigroup(n))};function aD(n){var t=o_(n),e=oI(n);return{URI:ob,_E:void 0,map:oe,ap:t.ap,of:od,chain:os,bimap:oo,mapLeft:oc,alt:e.alt,fromIO:uz,throwError:oy}}function aL(n){return(0,n5.flow)(td.some,n.of)}function aN(n){return(0,n5.constant)(n.of(td.none))}function aj(n){return function(t){return n.map(t,td.some)}}function aq(n){return(0,n5.flow)(td.fromNullable,n.of)}function aG(n){var t=aq(n);return function(n){return(0,n5.flow)(n,t)}}function aK(n){var t=aQ(n),e=aG(n);return function(n){return t(e(n))}}function aY(n){return function(t){return(0,n5.flow)(t,n.of)}}function aB(n){var t=aQ(n),e=aY(n);return function(n){return t(e(n))}}function aV(n){return function(t){return function(e){return n.of(td.fromPredicate(t)(e))}}}function aH(n){return(0,n5.flow)(td.fromEither,n.of)}function az(n){return function(t,e){return function(r){return n.map(r,td.match(t,e))}}}function aX(n){return function(t,e){return function(r){return n.chain(r,td.match(t,e))}}}function aJ(n){return function(t){return function(e){return n.chain(e,td.match(t,n.of))}}}function a$(n){return(0,tp.map)(n,td.Functor)}function aZ(n){return(0,nN.ap)(n,td.Apply)}function aQ(n){var t=a0(n);return function(n){return function(e){return t(e,n)}}}function a0(n){var t=aN(n);return function(e,r){return n.chain(e,td.match(function(){return t()},r))}}function a1(n){var t=aL(n);return function(e){return function(r){return n.chain(r,td.match(e,t))}}}function a2(n){var t=aZ(n),e=a$(n),r=aQ(n),i=a1(n),u=aX(n),o=aJ(n),a=aN(n);return{map:function(n,t){return(0,n5.pipe)(n,e(t))},ap:function(n,e){return(0,n5.pipe)(n,t(e))},of:aL(n),chain:function(n,t){return(0,n5.pipe)(n,r(t))},alt:function(n,t){return(0,n5.pipe)(n,i(t))},fold:function(n,t,e){return(0,n5.pipe)(n,u(t,e))},getOrElse:function(n,t){return(0,n5.pipe)(n,o(t))},fromM:aj(n),none:function(){return a()}}}var a5=e(28957),a8=aL(um),a3=aV(um),a4=ua,a7=aH(um),a9=aj(up),a6=uu(td.fromEither),cn=az(up),ct=cn,ce=aX(u_),cr=ce,ci=ce,cu=aJ(uI),co=cu,ca=uu(td.toUndefined),cc=uu(td.toNullable),cf=aq(um),cl=aG(um),cp=aK(uI),cd=aY(um),cs=a$(up),ch=aZ(uv),cm=a8,cv=(0,n5.dual)(2,a0(uI)),cg=cv(n5.identity),cy=a1(uI),cb=cy,c_=aN(um),cI=c_(),cR=th(up,td.Compactable),cS=tm(up,td.Compactable,td.Functor),cT=en(up,td.Filterable),cx=et(up,td.Filterable),cw=ee(up,td.Filterable),cM=er(up,td.Filterable),cO=function(n,t){return(0,n5.pipe)(n,cs(t))},cE=function(n,t){return(0,n5.pipe)(n,ch(t))},cC=function(n,t){return(0,n5.pipe)(n,cy(t))},ck="IOOption",cW={URI:ck,map:cO},cF=(0,n5.dual)(2,(0,tp.as)(cW)),cP=(0,tp.asUnit)(cW),cA=(0,tp.flap)(cW),cU={URI:ck,of:cm},cD={URI:ck,map:cO,ap:cE},cL=(0,nN.apFirst)(cD),cN=(0,nN.apSecond)(cD),cj={URI:ck,map:cO,ap:cE,of:cm},cq={URI:ck,map:cO,ap:cE,chain:cv},cG={URI:ck,fromEither:a7},cK={URI:ck,fromIO:a9},cY=(0,n5.dual)(2,tu.tap(cq)),cB=(0,n5.dual)(2,(0,eb.tapEither)(cG,cq)),cV=(0,n5.dual)(2,eS(cK,cq)),cH={URI:ck,map:cO,alt:cC},cz={URI:ck,zero:c_},cX=(0,a5.guard)(cz,cU),cJ={URI:ck,map:cO,ap:cE,of:cm,alt:cC,zero:c_},c$={URI:ck,map:cO,ap:cE,of:cm,chain:cv},cZ={URI:ck,map:cO,ap:cE,of:cm,chain:cv,fromIO:a9},cQ={URI:ck,compact:cR,separate:cS},c0={URI:ck,map:cO,compact:cR,separate:cS,filter:function(n,t){return(0,n5.pipe)(n,cT(t))},filterMap:function(n,t){return(0,n5.pipe)(n,cx(t))},partition:function(n,t){return(0,n5.pipe)(n,cw(t))},partitionMap:function(n,t){return(0,n5.pipe)(n,cM(t))}},c1={flatMap:cv},c2={fromIO:cK.fromIO},c5=eT.we(c2,c1),c8=(0,n5.dual)(2,function(n,t){return cv(n,cd(t))}),c3=eT.iu({fromEither:a7},c1),c4=(0,n5.dual)(2,function(n,t){return cv(n,cl(t))}),c7=e_(cK),c9=c5,c6=cV,fn=(0,eb.fromEitherK)(cG),ft=c3,fe=cB,fr=c8,fi=cm(eT.F4),fu=(0,tp.bindTo)(cW),fo=(0,tp.let)(cW),fa=tu.bind(cq),fc=(0,nN.apS)(cD),ff=cm(eT.Xl),fl=function(n){return(0,n5.flow)(uF(n),uu(td.traverseReadonlyNonEmptyArrayWithIndex(n5.SK)))},fp=function(n){var t=fl(n);return function(n){return eT.Od(n)?t(n):ff}},fd=cv,fs=cY,fh=function(){function n(n){var t=this;this.value=n,this.read=function(){return t.value},this.write=this.write.bind(this),this.modify=this.modify.bind(this)}return n.prototype.write=function(n){var t=this;return function(){t.value=n}},n.prototype.modify=function(n){var t=this;return function(){t.value=n(t.value)}},n}();function fm(n){return function(){return new fh(n)}}var fv=function(n){return(0,tC.tryCatch)(function(){return JSON.parse(n)},n5.identity)},fg=function(n){return(0,tC.tryCatch)(function(){var t=JSON.stringify(n);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},n5.identity)},fy=e(76113),fb=e(55116),f_=e(96576),fI=e(43586),fR=function(n,t,e){return function(r){return -1===r?n():0===r?t():e()}},fS=fR,fT=function(n){return -1===n?1:1===n?-1:0},fx={equals:function(n,t){return n===t}},fw={concat:function(n,t){return 0!==n?n:t}},fM={concat:fw.concat,empty:0},fO=function(n){return n<=-1?-1:n>=1?1:0},fE=fT,fC=fw,fk=fx,fW=fM,fF=e(18896),fP=function(){return Math.random()};function fA(n,t){return(0,n5.pipe)(fP,uu(function(e){return Math.floor((t-n+1)*e+n)}))}function fU(n,t){return(0,n5.pipe)(fP,uu(function(e){return(t-n)*e+n}))}var fD=(0,n5.pipe)(fP,uu(function(n){return n<.5})),fL=function(n){return(0,n5.pipe)(fA(0,n.length-1),uu(function(t){return n[t]}))},fN=tW(e$),fj=tk(e$),fq=tF(eX),fG=tP(eX),fK=eD,fY=fq,fB=tz(eX),fV=fB,fH=tX(e3),fz=fH,fX=fH,fJ=fX,f$=tJ(e3),fZ=f$,fQ=t2(eX),f0=eM,f1=eO,f2=f1,f5=t$(e3),f8=f5,f3=(0,n5.dual)(2,tQ(e3)),f4=t0(e3),f7=t1(eX),f9=function(n,t){return(0,n5.pipe)(n,lt(t))},f6=function(n,t){return(0,n5.pipe)(n,lo(t))},ln=function(n,t){return(0,n5.pipe)(n,ld(t))},lt=tL(eX),le=(0,n5.dual)(3,tY(eX)),lr=le,li=(0,n5.dual)(2,tV(eX)),lu=li,lo=tN(eZ),la=lo,lc=fj,lf=(0,n5.dual)(2,tq(e3)),ll=lf(n5.identity),lp=ll,ld=tG(e3),ls=ld,lh=fN,lm="ReaderEither",lv=function(n){var t=tC.getCompactable(n);return{URI:lm,_E:void 0,compact:th(eX,t),separate:tm(eX,t,tC.Functor)}};function lg(n){var t=tC.getFilterable(n),e=lv(n),r=en(eX,t),i=et(eX,t),u=ee(eX,t),o=er(eX,t);return{URI:lm,_E:void 0,map:f9,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,n5.pipe)(n,r(t))},filterMap:function(n,t){return(0,n5.pipe)(n,i(t))},partition:function(n,t){return(0,n5.pipe)(n,u(t))},partitionMap:function(n,t){return(0,n5.pipe)(n,o(t))}}}function ly(n){var t=(0,nN.ap)(eZ,tC.getApplicativeValidation(n));return{URI:lm,_E:void 0,map:f9,ap:function(n,e){return(0,n5.pipe)(n,t(e))},of:lc}}function lb(n){var t=tH(e3,n);return{URI:lm,_E:void 0,map:f9,alt:function(n,e){return(0,n5.pipe)(n,t(e))}}}var l_={URI:lm,map:f9},lI=(0,n5.dual)(2,(0,tp.as)(l_)),lR=(0,tp.asUnit)(l_),lS=(0,tp.flap)(l_),lT={URI:lm,of:lc},lx={URI:lm,map:f9,ap:f6},lw=(0,nN.apFirst)(lx),lM=lw,lO=(0,nN.apSecond)(lx),lE=lO,lC={URI:lm,map:f9,ap:f6,of:lc},lk={URI:lm,map:f9,ap:f6,chain:lf},lW={URI:lm,map:f9,ap:f6,of:lc,chain:lf},lF={URI:lm,fromEither:fK},lP={URI:lm,fromReader:fY},lA=(0,n5.dual)(2,tu.tap(lk)),lU=(0,n5.dual)(2,(0,eb.tapEither)(lF,lk)),lD=(0,n5.dual)(2,rw(lP,lk)),lL={URI:lm,bimap:le,mapLeft:li},lN={URI:lm,map:f9,alt:ln},lj=rI(lP),lq=rR(lP),lG=rS(lP),lK=lD,lY=lD,lB={URI:lm,map:f9,ap:f6,of:lc,chain:lf,throwError:lh},lV=(0,eb.fromOption)(lF),lH=(0,eb.fromOptionK)(lF),lz=(0,eb.chainOptionK)(lF,lk),lX=lz,lJ={fromEither:lF.fromEither},l$={fromReader:lP.fromReader},lZ=eT.uL(lJ),lQ=eT.WE(lJ),l0={flatMap:lf},l1=eT.ny(lJ,l0),l2=eT.hU(lJ,l0),l5=eT.iu(lJ,l0),l8=eT.on(l$,l0),l3=l5,l4=l5,l7=lU,l9=lU,l6=l8,pn=l8,pt=(0,eb.fromPredicate)(lF),pe=(0,eb.filterOrElse)(lF,lk),pr=pe,pi=(0,eb.fromEitherK)(lF),pu=lc(eT.F4),po=(0,tp.bindTo)(l_),pa=(0,tp.let)(l_),pc=tu.bind(lk),pf=pc,pl=(0,nN.apS)(lx),pp=pl,pd=lc(eT.Xl),ps=function(n){return(0,n5.flow)(rf(n),eP(tC.traverseReadonlyNonEmptyArrayWithIndex(n5.SK)))},ph=function(n){var t=ps(n);return function(n){return eT.Od(n)?t(n):pd}},pm=ph,pv=function(n){return ph(function(t,e){return n(e)})},pg=pv(n5.identity),py=lf,pb=lf,p_=lA,pI=lA,pR=f3,pS=f3,pT={URI:lm,bimap:le,mapLeft:li,map:f9,of:lc,ap:f6,chain:lf,alt:ln,throwError:fN},px=(0,nN.getApplySemigroup)(lx),pw=(0,nG.getApplicativeMonoid)(lC),pM=function(n){return(0,nN.getApplySemigroup)(eZ)(tC.getSemigroup(n))};function pO(n){var t=ly(n),e=lb(n);return{URI:lm,_E:void 0,map:f9,ap:t.ap,of:lc,chain:lf,bimap:le,mapLeft:li,alt:e.alt,throwError:lh}}function pE(n){return function(t){return function(){return n.of(t)}}}function pC(n){return function(t){return function(e){return function(r){return n.map(e(r),t)}}}}function pk(n){return function(t){return function(e){return function(r){return n.ap(e(r),t(r))}}}}function pW(n){var t=pF(n);return function(n){return function(e){return t(e,n)}}}function pF(n){return function(t,e){return function(r){return n.chain(t(r),function(n){return e(n)(r)})}}}function pP(n){return function(t){return(0,n5.flow)(t,n.of)}}function pA(n){return function(t){return(0,n5.flow)(t,n)}}function pU(n){var t=pk(n),e=pC(n),r=pW(n);return{map:function(n,t){return(0,n5.pipe)(n,e(t))},ap:function(n,e){return(0,n5.pipe)(n,t(e))},of:pE(n),chain:function(n,t){return(0,n5.pipe)(n,r(t))},ask:function(){return n.of},asks:function(t){return(0,n5.flow)(t,n.of)},local:function(n,t){return function(e){return n(t(e))}},fromReader:pP(n),fromM:function(n){return function(){return n}}}}var pD=pP(um),pL=eD,pN=eM,pj=eO,pq=pj,pG=function(n,t){return(0,n5.pipe)(n,pY(t))},pK=function(n,t){return(0,n5.pipe)(n,pB(t))},pY=pC(up),pB=pk(uv),pV=pB,pH=pE(um),pz=(0,n5.dual)(2,pF(uI)),pX=pz(n5.identity),pJ=pX,p$="ReaderIO",pZ={URI:p$,map:pG},pQ=(0,n5.dual)(2,(0,tp.as)(pZ)),p0=(0,tp.asUnit)(pZ),p1=(0,tp.flap)(pZ),p2={URI:p$,of:pH},p5={URI:p$,map:pG,ap:pK},p8=(0,nN.apFirst)(p5),p3=(0,nN.apSecond)(p5),p4={URI:p$,map:pG,ap:pK,of:pH},p7={URI:p$,map:pG,ap:pK,chain:pz},p9={URI:p$,map:pG,of:pH,ap:pK,chain:pz},p6={URI:p$,map:pG,of:pH,ap:pK,chain:pz,fromIO:pL},dn={URI:p$,fromIO:pL},dt={URI:p$,fromReader:pD},de={flatMap:pz},dr={fromIO:dn.fromIO},di=eT.we(dr,de),du=eT.on({fromReader:pD},de),da=(0,n5.dual)(2,tu.tap(p7)),dc=(0,n5.dual)(2,eS(dn,p7)),df=(0,n5.dual)(2,rw(dt,p7)),dl=e_(dn),dp=di,dd=dc,ds=rI(dt),dh=rR(dt),dm=rS(dt),dv=du,dg=du,dy=df,db=df,d_=pH(eT.F4),dI=(0,tp.bindTo)(pZ),dR=tu.bind(p7),dS=dR,dT=(0,nN.apS)(p5),dx=dT,dw=pH(eT.Xl),dM=function(n){return(0,n5.flow)(rf(n),eP(uF(n5.SK)))},dO=function(n){var t=dM(n);return function(n){return eT.Od(n)?t(n):dw}},dE=dO,dC=function(n){return dO(function(t,e){return n(e)})},dk=dC(n5.identity),dW=pz,dF=pz,dP=da,dA=da,dU=function(n){return function(){return Promise.resolve().then(n)}};function dD(n){return function(t){return function(){return new Promise(function(e){setTimeout(function(){Promise.resolve().then(t).then(e)},n)})}}}var dL=function(n,t){return(0,n5.pipe)(n,dq(t))},dN=function(n,t){return(0,n5.pipe)(n,dG(t))},dj=function(n,t){return dY(n,function(n){return(0,n5.pipe)(t,dq(n))})},dq=function(n){return function(t){return function(){return Promise.resolve().then(t).then(n)}}},dG=function(n){return function(t){return function(){return Promise.all([Promise.resolve().then(t),Promise.resolve().then(n)]).then(function(n){return(0,n[0])(n[1])})}}},dK=function(n){return function(){return Promise.resolve(n)}},dY=(0,n5.dual)(2,function(n,t){return function(){return Promise.resolve().then(n).then(function(n){return t(n)()})}}),dB=dY(n5.identity),dV="Task";function dH(){return{concat:function(n,t){return function(){return Promise.race([Promise.resolve().then(n),Promise.resolve().then(t)])}},empty:sf}}var dz={URI:dV,map:dL},dX=(0,n5.dual)(2,(0,tp.as)(dz)),dJ=(0,tp.asUnit)(dz),d$=(0,tp.flap)(dz),dZ={URI:dV,of:dK},dQ={URI:dV,map:dL,ap:dN},d0=(0,nN.apFirst)(dQ),d1=(0,nN.apSecond)(dQ),d2={URI:dV,map:dL,ap:dN,of:dK},d5={URI:dV,map:dL,ap:dj},d8={URI:dV,map:dL,ap:dj,of:dK},d3={URI:dV,map:dL,ap:dN,chain:dY},d4={URI:dV,map:dL,of:dK,ap:dN,chain:dY},d7={URI:dV,map:dL,of:dK,ap:dN,chain:dY,fromIO:dU},d9=n5.identity,d6={URI:dV,map:dL,of:dK,ap:dN,chain:dY,fromIO:dU,fromTask:d9},sn={URI:dV,fromIO:dU},st={fromIO:sn.fromIO},se=eT.we(st,{flatMap:dY}),sr=(0,n5.dual)(2,tu.tap(d3)),si=(0,n5.dual)(2,eS(sn,d3)),su=e_(sn),so=se,sa=si,sc={URI:dV,fromIO:dU,fromTask:d9},sf=function(){return new Promise(function(n){})},sl=dK(eT.F4),sp=(0,tp.bindTo)(dz),sd=(0,tp.let)(dz),ss=tu.bind(d3),sh=(0,nN.apS)(dQ),sm=dK(eT.Xl),sv=function(n){return function(t){return function(){return Promise.all(t.map(function(t,e){return Promise.resolve().then(function(){return n(e,t)()})}))}}},sg=function(n){var t=sv(n);return function(n){return eT.Od(n)?t(n):sm}},sy=function(n){return function(t){return function(){return eT.Gb(t).reduce(function(t,e,r){return t.then(function(t){return Promise.resolve().then(n(r+1,e)).then(function(n){return t.push(n),t})})},Promise.resolve().then(n(0,eT.YM(t))).then(eT.ri))}}},sb=function(n){var t=sy(n);return function(n){return eT.Od(n)?t(n):sm}},s_=sg,sI=function(n){return sg(function(t,e){return n(e)})},sR=sI(n5.identity),sS=sb,sT=function(n){return sb(function(t,e){return n(e)})},sx=sT(n5.identity),sw=dY,sM=sr,sO={URI:dV,map:dL,of:dK,ap:dN,chain:dY,fromIO:dU,fromTask:d9},sE={URI:dV,map:dL,of:dK,ap:dj,chain:dY,fromIO:dU,fromTask:d9},sC=(0,nN.getApplySemigroup)(d5),sk=(0,nG.getApplicativeMonoid)(d8),sW=pP(dZ),sF=eD,sP=(0,n5.flow)(dU,sF),sA=eP(dU),sU=eM,sD=eO,sL=sD,sN=function(n,t){return(0,n5.pipe)(n,sG(t))},sj=function(n,t){return(0,n5.pipe)(n,sK(t))},sq=function(n,t){return sV(n,function(n){return(0,n5.pipe)(t,sG(n))})},sG=pC(dz),sK=pk(dQ),sY=sK,sB=pE(dZ),sV=(0,n5.dual)(2,pF(d4)),sH=sV(n5.identity),sz=sH,sX="ReaderTask",sJ={URI:sX,map:sN},s$=(0,n5.dual)(2,(0,tp.as)(sJ)),sZ=(0,tp.asUnit)(sJ),sQ=(0,tp.flap)(sJ),s0={URI:sX,of:sB},s1={URI:sX,map:sN,ap:sj},s2=(0,nN.apFirst)(s1),s5=(0,nN.apSecond)(s1),s8={URI:sX,map:sN,ap:sj,of:sB},s3={URI:sX,map:sN,ap:sq},s4={URI:sX,map:sN,ap:sq,of:sB},s7={URI:sX,map:sN,ap:sj,chain:sV},s9={URI:sX,map:sN,of:sB,ap:sj,chain:sV},s6={URI:sX,map:sN,of:sB,ap:sj,chain:sV,fromIO:sP},hn={URI:sX,map:sN,of:sB,ap:sj,chain:sV,fromIO:sP,fromTask:sF},ht={URI:sX,fromIO:sP},he={URI:sX,fromIO:sP,fromTask:sF},hr={URI:sX,fromReader:sW},hi={flatMap:sV},hu={fromIO:ht.fromIO},ho=eT.we(hu,hi),ha=eT.D9({fromTask:sF},hi),hc=eT.on({fromReader:sW},hi),hf=(0,n5.dual)(2,function(n,t){return sV(n,hx(t))}),hl=(0,n5.dual)(2,tu.tap(s7)),hp=(0,n5.dual)(2,eS(ht,s7)),hd=(0,n5.dual)(2,rw(hr,s7)),hs=(0,n5.dual)(2,is(he,s7)),hh=(0,n5.dual)(2,function(n,t){return hl(n,hx(t))}),hm=e_(ht),hv=ho,hg=hp,hy=rI(hr),hb=rR(hr),h_=rS(hr),hI=hc,hR=hc,hS=hd,hT=hd,hx=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return sA(n.apply(void 0,t))}},hw=hf,hM=hf,hO=hh,hE=hh,hC=il(he),hk=ha,hW=hs,hF=sB(eT.F4),hP=(0,tp.bindTo)(sJ),hA=(0,tp.let)(sJ),hU=tu.bind(s7),hD=hU,hL=(0,nN.apS)(s1),hN=hL,hj=sB(eT.Xl),hq=function(n){return(0,n5.flow)(rf(n),eP(sv(n5.SK)))},hG=function(n){var t=hq(n);return function(n){return eT.Od(n)?t(n):hj}},hK=function(n){return(0,n5.flow)(rf(n),eP(sy(n5.SK)))},hY=function(n){var t=hK(n);return function(n){return eT.Od(n)?t(n):hj}},hB=hG,hV=function(n){return hG(function(t,e){return n(e)})},hH=hV(n5.identity),hz=hY,hX=function(n){return hY(function(t,e){return n(e)})},hJ=sV,h$=sV,hZ=hl,hQ=hl,h0=hX(n5.identity),h1={URI:sX,map:sN,of:sB,ap:sj,chain:sV,fromIO:sP,fromTask:sF},h2={URI:sX,map:sN,of:sB,ap:sq,chain:sV,fromIO:sP,fromTask:sF},h5=(0,nN.getApplySemigroup)(s3),h8=(0,nG.getApplicativeMonoid)(s4);function h3(n,t){return n(t)()}var h4=function(n,t){var e,r,i,u,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(c){return function(a){if(e)throw TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(o=0)),o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(n,o)}catch(n){a=[6,n],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},h7=tW(dZ),h9=tk(dZ),h6=tF(dz),mn=tP(dz),mt=(0,n5.flow)(dU,h6),me=(0,n5.flow)(dU,mn),mr=mt,mi=h6,mu=dK,mo=dU,ma=function(n){return dq(tC.fromOption(n))},mc=tz(dz),mf=mc,ml=tX(d4),mp=ml,md=ml,ms=md,mh=tJ(d4),mm=mh,mv=function(n,t){return function(){var e,r,i,u;return e=void 0,r=void 0,i=void 0,u=function(){var e;return h4(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,n().then(eT.F2)];case 1:return[2,r.sent()];case 2:return e=r.sent(),[2,eT.t$(t(e))];case 3:return[2]}})},new(i||(i=Promise))(function(n,t){function o(n){try{c(u.next(n))}catch(n){t(n)}}function a(n){try{c(u.throw(n))}catch(n){t(n)}}function c(t){var e;t.done?n(t.value):((e=t.value)instanceof i?e:new i(function(n){n(e)})).then(o,a)}c((u=u.apply(e,r||[])).next())})}},mg=function(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return mv(function(){return n.apply(void 0,e)},t)}},my=t2(dz),mb=tA(dZ),m_=tU(dZ),mI=tD(d4),mR=t$(d4),mS=mR,mT=(0,n5.dual)(2,tQ(d4)),mx=function(n){return mT(vK(n))},mw=function(n){return mT(vV(n))},mM=t0(d4),mO=t1(dz),mE=function(n){var t=ma(n);return function(n){return(0,n5.flow)(n,t)}},mC=function(n){return function(t){return function(e){return mY(e,mE(n)(t))}}},mk=mC,mW=function(n){return(0,n5.flow)(n,mo)},mF=function(n,t){return(0,n5.pipe)(n,mD(t))},mP=function(n,t){return(0,n5.pipe)(n,mG(t))},mA=function(n,t){return mY(n,function(n){return(0,n5.pipe)(t,mD(n))})},mU=function(n,t){return(0,n5.pipe)(n,mH(t))},mD=tL(dz),mL=(0,n5.dual)(3,tY(dz)),mN=mL,mj=(0,n5.dual)(2,tV(dz)),mq=mj,mG=tN(dQ),mK=mG,mY=(0,n5.dual)(2,tq(d4)),mB=mY(n5.identity),mV=mB,mH=tG(d4),mz=mH,mX=h9,mJ=h7,m$="TaskEither";function mZ(n,t){var e=(0,nN.ap)(n,tC.getApplicativeValidation(t));return{URI:m$,_E:void 0,map:mF,ap:function(n,t){return(0,n5.pipe)(n,e(t))},of:mX}}function mQ(n){var t=tH(d4,n);return{URI:m$,_E:void 0,map:mF,alt:function(n,e){return(0,n5.pipe)(n,t(e))}}}var m0=function(n){var t=tC.getCompactable(n);return{URI:m$,_E:void 0,compact:th(dz,t),separate:tm(dz,t,tC.Functor)}};function m1(n){var t=tC.getFilterable(n),e=m0(n),r=en(dz,t),i=et(dz,t),u=ee(dz,t),o=er(dz,t);return{URI:m$,_E:void 0,map:mF,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,n5.pipe)(n,r(t))},filterMap:function(n,t){return(0,n5.pipe)(n,i(t))},partition:function(n,t){return(0,n5.pipe)(n,u(t))},partitionMap:function(n,t){return(0,n5.pipe)(n,o(t))}}}var m2={URI:m$,map:mF},m5=(0,n5.dual)(2,(0,tp.as)(m2)),m8=(0,tp.asUnit)(m2),m3=(0,tp.flap)(m2),m4={URI:m$,of:mX},m7={URI:m$,map:mF,ap:mP},m9=(0,nN.apFirst)(m7),m6=m9,vn=(0,nN.apSecond)(m7),vt=vn,ve={URI:m$,map:mF,ap:mP,of:mX},vr={URI:m$,map:mF,ap:mA},vi={URI:m$,map:mF,ap:mA,of:mX},vu={URI:m$,map:mF,ap:mP,chain:mY},vo={URI:m$,map:mF,ap:mP,chain:mY,of:mX},va={URI:m$,map:mF,ap:mP,chain:mY,of:mX,fromIO:mr},vc={URI:m$,map:mF,ap:mP,chain:mY,of:mX,fromIO:mr,fromTask:mi},vf={URI:m$,map:mF,ap:mP,chain:mY,of:mX,throwError:mJ},vl={URI:m$,fromEither:mu},vp={URI:m$,fromIO:mr},vd={URI:m$,fromIO:mr,fromTask:mi},vs=(0,n5.dual)(2,tu.tap(vu)),vh=(0,n5.dual)(2,(0,eb.tapEither)(vl,vu)),vm=(0,n5.dual)(2,eS(vp,vu)),vv=(0,n5.dual)(2,is(vd,vu)),vg={URI:m$,bimap:mL,mapLeft:mj},vy={URI:m$,map:mF,alt:mU},vb=(0,eb.fromOption)(vl),v_=(0,eb.fromOptionK)(vl),vI=(0,eb.chainOptionK)(vl,vu),vR=vI,vS={fromEither:vl.fromEither},vT=eT.uL(vS),vx=eT.WE(vS),vw={flatMap:mY},vM={fromIO:vp.fromIO},vO=eT.ny(vS,vw),vE=eT.hU(vS,vw),vC=eT.iu(vS,vw),vk=eT.we(vM,vw),vW=eT.D9({fromTask:mi},vw),vF=(0,n5.dual)(2,function(n,t){return mY(n,mW(t))}),vP=(0,n5.dual)(3,function(n,t,e){return mY(n,function(n){return ma(function(){return e(n)})(t(n))})}),vA=vC,vU=vC,vD=vh,vL=vh,vN=(0,eb.fromPredicate)(vl),vj=(0,eb.filterOrElse)(vl,vu),vq=vj,vG=(0,eb.fromEitherK)(vl),vK=e_(vp),vY=vk,vB=vm,vV=il(vd),vH=vW,vz=vv,vX=vF,vJ=vF;function v$(n){return function(){var t=Array.prototype.slice.call(arguments);return function(){return new Promise(function(e){n.apply(null,t.concat(function(n,t){return null!=n?e(eT.t$(n)):e(eT.F2(t))}))})}}}var vZ=function(n,t,e){return vQ(n,t,e)},vQ=function(n,t,e){return mY(n,function(n){return dY(t(n),function(t){return mY(e(n,t),function(){return dK(t)})})})},v0=mX(eT.F4),v1=(0,tp.bindTo)(m2),v2=(0,tp.let)(m2),v5=tu.bind(vu),v8=v5,v3=(0,nN.apS)(m7),v4=v3,v7=mX(eT.Xl),v9=function(n){return(0,n5.flow)(sv(n),dq(tC.traverseReadonlyNonEmptyArrayWithIndex(n5.SK)))},v6=function(n){var t=v9(n);return function(n){return eT.Od(n)?t(n):v7}},gn=function(n){return function(t){return function(){return eT.Gb(t).reduce(function(t,e,r){return t.then(function(i){return eT.nM(i)?t:n(r+1,e)().then(function(n){return eT.nM(n)?n:(i.right.push(n.right),i)})})},n(0,eT.YM(t))().then(tC.map(eT.ri)))}}},gt=function(n){var t=gn(n);return function(n){return eT.Od(n)?t(n):v7}},ge=v6,gr=function(n){return v6(function(t,e){return n(e)})},gi=gr(n5.identity),gu=gt,go=function(n){return gt(function(t,e){return n(e)})},ga=go(n5.identity),gc=mY,gf=mY,gl=vs,gp=vs,gd=mT,gs=mT,gh={URI:m$,bimap:mL,mapLeft:mj,map:mF,of:mX,ap:mP,chain:mY,alt:mU,fromIO:mr,fromTask:mi,throwError:mJ},gm={URI:m$,bimap:mL,mapLeft:mj,map:mF,of:mX,ap:mA,chain:mY,alt:mU,fromIO:mr,fromTask:mi,throwError:mJ},gv=(0,nN.getApplySemigroup)(vr),gg=(0,nG.getApplicativeMonoid)(vi),gy=function(n){return(0,nN.getApplySemigroup)(d5)(tC.getSemigroup(n))};function gb(n){var t=mZ(d2,n),e=mQ(n);return{URI:m$,_E:void 0,map:mF,ap:t.ap,of:mX,chain:mY,bimap:mL,mapLeft:mj,alt:e.alt,fromIO:mr,fromTask:mi,throwError:mJ}}var g_=eD,gI=tW(s0),gR=tk(s0),gS=(0,n5.flow)(h6,g_),gT=(0,n5.flow)(mn,g_),gx=function(n){return(0,n5.flow)(n,h9)},gw=function(n){return(0,n5.flow)(n,h7)},gM=tF(sJ),gO=tP(sJ),gE=(0,n5.flow)(mt,g_),gC=(0,n5.flow)(me,g_),gk=function(n){return(0,n5.flow)(n,mt)},gW=function(n){return(0,n5.flow)(n,me)},gF=sB,gP=gx,gA=gE,gU=gS,gD=(0,n5.flow)(mo,g_),gL=function(n){return(0,n5.flow)(n,mu)},gN=tz(sJ),gj=gN,gq=tX(s7),gG=gq,gK=gq,gY=gK,gB=tJ(s9),gV=gB,gH=t2(sJ),gz=tA(s0),gX=tU(s0),gJ=tD(s9),g$=eM,gZ=eO,gQ=gZ,g0=t$(s9),g1=g0,g2=(0,n5.dual)(2,tQ(s9)),g5=t0(s9),g8=t1(sJ),g3=function(n){return(0,n5.flow)(n,gD)},g4=function(n){return(0,n5.flow)(n,g_)},g7=function(n){return(0,n5.flow)(n,gL)},g9=function(n,t){return(0,n5.pipe)(n,ye(t))},g6=function(n,t){return(0,n5.pipe)(n,ya(t))},yn=function(n,t){return yl(n,function(n){return(0,n5.pipe)(t,ye(n))})},yt=function(n,t){return(0,n5.pipe)(n,ys(t))},ye=tL(sJ),yr=(0,n5.dual)(3,tY(sJ)),yi=yr,yu=(0,n5.dual)(2,tV(sJ)),yo=yu,ya=tN(s1),yc=ya,yf=gR,yl=(0,n5.dual)(2,tq(s9)),yp=yl(n5.identity),yd=yp,ys=tG(s9),yh=ys,ym=gI,yv="ReaderTaskEither",yg=function(n){var t=tC.getCompactable(n);return{URI:yv,_E:void 0,compact:th(sJ,t),separate:tm(sJ,t,tC.Functor)}};function yy(n){var t=tC.getFilterable(n),e=yg(n),r=en(sJ,t),i=et(sJ,t),u=ee(sJ,t),o=er(sJ,t);return{URI:yv,_E:void 0,map:g9,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,n5.pipe)(n,r(t))},filterMap:function(n,t){return(0,n5.pipe)(n,i(t))},partition:function(n,t){return(0,n5.pipe)(n,u(t))},partitionMap:function(n,t){return(0,n5.pipe)(n,o(t))}}}function yb(n,t){var e=(0,nN.ap)(eZ,mZ(n,t));return{URI:yv,_E:void 0,map:g9,ap:function(n,t){return(0,n5.pipe)(n,e(t))},of:yf}}function y_(n){var t=tH(s9,n);return{URI:yv,_E:void 0,map:g9,alt:function(n,e){return(0,n5.pipe)(n,t(e))}}}var yI={URI:yv,map:g9},yR=(0,n5.dual)(2,(0,tp.as)(yI)),yS=(0,tp.asUnit)(yI),yT=(0,tp.flap)(yI),yx={URI:yv,of:yf},yw={URI:yv,map:g9,ap:g6},yM=(0,nN.apFirst)(yw),yO=yM,yE=(0,nN.apSecond)(yw),yC=yE,yk={URI:yv,map:g9,ap:g6,of:yf},yW={URI:yv,map:g9,ap:yn},yF={URI:yv,map:g9,ap:yn,of:yf},yP={URI:yv,map:g9,ap:g6,chain:yl},yA={URI:yv,map:g9,ap:g6,chain:yl,of:yf},yU={URI:yv,map:g9,ap:g6,chain:yl,of:yf,fromIO:gA},yD={URI:yv,map:g9,ap:g6,chain:yl,of:yf,fromIO:gA,fromTask:gU},yL={URI:yv,map:g9,ap:g6,chain:yl,of:yf,throwError:ym},yN={URI:yv,fromEither:gF},yj={URI:yv,fromIO:gA},yq={URI:yv,fromIO:gA,fromTask:gU},yG={URI:yv,fromReader:gP},yK=(0,n5.dual)(2,tu.tap(yP)),yY=(0,n5.dual)(2,(0,eb.tapEither)(yN,yP)),yB=(0,n5.dual)(2,eS(yj,yP)),yV=(0,n5.dual)(2,is(yq,yP)),yH=(0,n5.dual)(2,rw(yG,yP)),yz=(0,n5.dual)(2,function(n,t){return yK(n,g7(t))}),yX=(0,n5.dual)(2,function(n,t){return yK(n,g4(t))}),yJ=(0,n5.dual)(2,function(n,t){return yK(n,y6(t))}),y$=(0,n5.dual)(2,function(n,t){return yK(n,be(t))}),yZ={URI:yv,bimap:yr,mapLeft:yu},yQ={URI:yv,map:g9,alt:yt},y0=rI(yG),y1=rR(yG),y2=rS(yG),y5=yH,y8=yH,y3=yz,y4=yz,y7=yX,y9=yX,y6=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return gM(n.apply(void 0,t))}},bn=yJ,bt=yJ,be=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return gk(n.apply(void 0,t))}},br=y$,bi=y$,bu=(0,eb.fromOption)(yN),bo=(0,eb.fromOptionK)(yN),ba=(0,eb.chainOptionK)(yN,yP),bc=ba,bf={fromEither:yN.fromEither},bl=eT.uL(bf),bp=eT.WE(bf),bd={flatMap:yl},bs=eT.ny(bf,bd),bh=eT.hU(bf,bd),bm=eT.iu(bf,bd),bv=(0,n5.dual)(2,function(n,t){return yl(n,g4(t))}),bg=(0,n5.dual)(2,function(n,t){return yl(n,y6(t))}),by=eT.we({fromIO:gA},bd),bb=eT.D9({fromTask:gU},bd),b_=eT.on({fromReader:gP},bd),bI=(0,n5.dual)(2,function(n,t){return yl(n,be(t))}),bR=(0,n5.dual)(2,function(n,t){return yl(n,g3(t))}),bS=(0,n5.dual)(2,function(n,t){return yl(n,g7(t))}),bT=bm,bx=bm,bw=yY,bM=yY,bO=bv,bE=bv,bC=bg,bk=bg,bW=(0,eb.fromPredicate)(yN),bF=(0,eb.filterOrElse)(yN,yP),bP=bF,bA=(0,eb.fromEitherK)(yN),bU=e_(yj),bD=by,bL=yB,bN=il(yq),bj=bb,bq=yV,bG=b_,bK=b_,bY=bI,bB=bI,bV=bR,bH=bR,bz=bS,bX=bS;function bJ(n,t,e){return b$(n,t,e)}function b$(n,t,e){return function(r){return vQ(n(r),function(n){return t(n)(r)},function(n,t){return e(n,t)(r)})}}var bZ=yf(eT.F4),bQ=(0,tp.bindTo)(yI),b0=(0,tp.let)(yI),b1=tu.bind(yP),b2=b1,b5=(0,nN.apS)(yw),b8=b5,b3=yf(eT.Xl),b4=function(n){return(0,n5.flow)(rf(n),eP(v9(n5.SK)))},b7=function(n){var t=b4(n);return function(n){return eT.Od(n)?t(n):b3}},b9=function(n){return(0,n5.flow)(rf(n),eP(gn(n5.SK)))},b6=function(n){var t=b9(n);return function(n){return eT.Od(n)?t(n):b3}},_n=b7,_t=function(n){return b7(function(t,e){return n(e)})},_e=_t(n5.identity),_r=b6,_i=function(n){return b6(function(t,e){return n(e)})},_u=_i(n5.identity),_o=yl,_a=yl,_c=yK,_f=yK,_l=g2,_p=g2,_d={URI:yv,map:g9,of:yf,ap:g6,chain:yl,alt:yt,bimap:yr,mapLeft:yu,fromIO:gA,fromTask:gU,throwError:ym},_s={URI:yv,map:g9,of:yf,ap:yn,chain:yl,alt:yt,bimap:yr,mapLeft:yu,fromIO:gA,fromTask:gU,throwError:ym},_h=(0,nN.getApplySemigroup)(yW),_m=(0,nG.getApplicativeMonoid)(yF),_v=function(n){return(0,nN.getApplySemigroup)(s3)(tC.getSemigroup(n))};function _g(n){var t=yb(d2,n),e=y_(n);return{URI:yv,_E:void 0,map:g9,of:yf,chain:yl,bimap:yr,mapLeft:yu,ap:t.ap,alt:e.alt,fromIO:gA,fromTask:gU,throwError:ym}}function _y(n,t){return n(t)()}var _b=e(31583),__=e(13512),_I=e(28350),_R=e(97054),_S=e(99156);function _T(n){return n[0]}function _x(n){return n[1]}var _w=function(n){return[_x(n),n[0]]};function _M(n){return{URI:_0,_E:void 0,map:_P,ap:function(t,e){return[t[0](e[0]),n.concat(_x(t),_x(e))]}}}var _O=function(n){return function(t){return[t,n.empty]}};function _E(n){return{URI:_0,_E:void 0,map:_P,ap:_M(n).ap,of:_O(n)}}function _C(n){return{URI:_0,_E:void 0,map:_P,ap:_M(n).ap,chain:function(t,e){var r=e(t[0]),i=r[0],u=r[1];return[i,n.concat(_x(t),u)]}}}function _k(n){var t=_C(n);return{URI:_0,_E:void 0,map:_P,ap:t.ap,chain:t.chain,of:_O(n)}}function _W(n){var t=_C(n);return{URI:_0,_E:void 0,map:_P,ap:t.ap,chain:t.chain,chainRec:function(t,e){for(var r=e(t),i=n.empty,u=r[0];"Left"===u._tag;)i=n.concat(i,_x(r)),u=(r=e(u.left))[0];return[u.right,n.concat(i,_x(r))]}}}var _F=function(n,t){return(0,n5.pipe)(n,_B(t))},_P=function(n,t){return(0,n5.pipe)(n,_K(t))},_A=function(n,t,e){return(0,n5.pipe)(n,_G(t,e))},_U=function(n,t){return(0,n5.pipe)(n,_Y(t))},_D=function(n,t){return(0,n5.pipe)(n,_V(t))},_L=function(n,t,e){return(0,n5.pipe)(n,_X(t,e))},_N=function(n){var t=_J(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},_j=function(n,t,e){return(0,n5.pipe)(n,_$(t,e))},_q=function(n){var t=_Z(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},_G=function(n,t){return function(e){return[t(e[0]),n(_x(e))]}},_K=function(n){return function(t){return[n(t[0]),_x(t)]}},_Y=function(n){return function(t){return[t[0],n(_x(t))]}},_B=function(n){return function(t){return[t[0],_x(n)]}},_V=function(n){return function(t){return[n(t),_x(t)]}},_H=_T,_z=_V(n5.identity),_X=function(n,t){return function(e){return t(n,e[0])}},_J=function(){return function(n){return function(t){return n(t[0])}}},_$=function(n,t){return function(e){return t(e[0],n)}},_Z=function(n){return function(t){return function(e){return n.map(t(e[0]),function(n){return[n,_x(e)]})}}},_Q=function(n){return function(t){return n.map(t[0],function(n){return[n,_x(t)]})}},_0="ReadonlyTuple",_1={URI:_0,map:_P},_2=(0,tp.flap)(_1),_5=_K,_8=_Y,_3={URI:_0,bimap:_A,mapLeft:_U},_4={URI:_0,compose:_F},_7={URI:_0,map:_P,extend:_D,extract:_H},_9={URI:_0,reduce:_L,foldMap:_N,reduceRight:_j},_6={URI:_0,map:_P,reduce:_L,foldMap:_N,reduceRight:_j,traverse:_q,sequence:_Q},In={URI:_0,compose:_F,map:_P,bimap:_A,mapLeft:_U,extract:_H,extend:_D,reduce:_L,foldMap:_N,reduceRight:_j,traverse:_q,sequence:_Q},It=e(3291),Ie=e(57029),Ir=e(76511),Ii=function(){return(Ii=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},Iu=_R.size,Io=_R.isEmpty,Ia=function(n){return function(t){return Object.keys(t).sort(n.compare)}},Ic=Ia(Ie.Ord);function If(n){if("function"==typeof n)return If(Ie.Ord)(n);var t=Ia(n);return function(n){return function(e){for(var r=[],i=0,u=t(e);i<u.length;i++){var o=u[i];r.push(n(o,e[o]))}return r}}}var Il=If(Ie.Ord)(function(n,t){return[n,t]});function Ip(n){return function(t){var e=Il(t),r=e.length;return n.unfold(0,function(n){return n<r?eT.G([e[n],n+1]):eT.YP})}}var Id=_R.upsertAt,Is=_R.has;function Ih(n){return function(t){if(!eT.e$.call(t,n))return t;var e=Object.assign({},t);return delete e[n],e}}var Im=function(n,t){return Iv(n,function(){return t})},Iv=function(n,t){return function(e){if(!Is(n,e))return eT.YP;var r=Object.assign({},e);return r[n]=t(e[n]),eT.G(r)}};function Ig(n){var t=Ih(n);return function(e){var r=Ib(n,e);return eT.Wi(r)?eT.YP:eT.G([r.value,t(e)])}}var Iy=_R.isSubrecord,Ib=_R.lookup,I_=_R.mapWithIndex,II=_R.map;function IR(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?_R.reduceWithIndex(n[0]):_R.reduceWithIndex(Ie.Ord).apply(void 0,n)}function IS(n){return"compare"in n?_R.foldMapWithIndex(n):_R.foldMapWithIndex(Ie.Ord)(n)}function IT(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?_R.reduceRightWithIndex(n[0]):_R.reduceRightWithIndex(Ie.Ord).apply(void 0,n)}var Ix=_R.singleton;function Iw(n){return _R.traverseWithIndex(n)}function IM(n){return _R.traverse(n)}function IO(n){return _R.sequence(n)}var IE=function(n){var t=IM(n);return function(e){return function(r){return n.map((0,n5.pipe)(r,t(e)),Ra)}}},IC=function(n){var t=IM(n);return function(e){return function(r){return n.map((0,n5.pipe)(r,t(e)),Rc)}}},Ik=_R.partitionMapWithIndex;function IW(n){return _R.partitionWithIndex(n)}var IF=_R.filterMapWithIndex;function IP(n){return _R.filterWithIndex(n)}function IA(n,t){return _R.fromFoldable(n,t)}var IU=Il,ID=function(n){return IA(It.last(),nK.Foldable)(n)};function IL(n,t){return _R.fromFoldableMap(n,t)}var IN=_R.every,Ij=_R.some,Iq=_R.elem,IG=function(n){var t=_R.union(n);return function(n){return function(e){return Io(e)?Ii({},n):Io(n)?Ii({},e):t(n)(e)}}},IK=function(n){return function(t){return function(e){return Io(e)||Io(t)?{}:_R.intersection(n)(t)(e)}}},IY=function(n){return function(t){return Io(t)?Ii({},n):Io(n)?Ii({},t):_R.difference(n)(t)}},IB=_R._map,IV=_R._mapWithIndex,IH=_R._reduce,Iz=_R._foldMap,IX=_R._reduceRight,IJ=_R._filter,I$=_R._filterMap,IZ=_R._partition,IQ=_R._partitionMap,I0=_R._reduceWithIndex,I1=_R._foldMapWithIndex,I2=_R._reduceRightWithIndex,I5=_R._partitionMapWithIndex,I8=_R._partitionWithIndex,I3=_R._filterMapWithIndex,I4=_R._filterWithIndex,I7=_R._traverse,I9=_R._sequence,I6=function(n){return function(t){var e=Ia(n);return function(n,r){var i=e(n);if(0===i.length)return t.of({});for(var u=t.of({}),o=function(e){u=t.ap(t.map(u,function(n){return function(t){return n[e]=t,n}}),r(e,n[e]))},a=0;a<i.length;a++)o(i[a]);return u}}},Rn=_R.filter,Rt=_R.filterMap,Re=_R.partition,Rr=_R.partitionMap;function Ri(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?_R.reduce(n[0]):_R.reduce(Ie.Ord).apply(void 0,n)}function Ru(n){return"compare"in n?_R.foldMap(n):_R.foldMap(Ie.Ord)(n)}function Ro(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?_R.reduceRight(n[0]):_R.reduceRight(Ie.Ord).apply(void 0,n)}var Ra=_R.compact,Rc=_R.separate,Rf="Record";function Rl(n){return"compare"in n?_R.getShow(n):_R.getShow(Ie.Ord)(n)}var Rp=_R.getEq,Rd=_R.getMonoid,Rs={URI:Rf,map:IB},Rh=(0,tp.flap)(Rs),Rm={URI:Rf,map:IB,mapWithIndex:IV},Rv=function(n){return{URI:Rf,reduce:IH(n),foldMap:Iz(n),reduceRight:IX(n)}},Rg=function(n){return{URI:Rf,reduce:IH(n),foldMap:Iz(n),reduceRight:IX(n),reduceWithIndex:I0(n),foldMapWithIndex:I1(n),reduceRightWithIndex:I2(n)}},Ry={URI:Rf,compact:Ra,separate:Rc},Rb={URI:Rf,map:IB,compact:Ra,separate:Rc,filter:IJ,filterMap:I$,partition:IZ,partitionMap:IQ},R_={URI:Rf,map:IB,mapWithIndex:IV,compact:Ra,separate:Rc,filter:IJ,filterMap:I$,partition:IZ,partitionMap:IQ,filterMapWithIndex:I3,filterWithIndex:I4,partitionMapWithIndex:I5,partitionWithIndex:I8},RI=function(n){return{URI:Rf,map:IB,reduce:IH(n),foldMap:Iz(n),reduceRight:IX(n),traverse:I7(n),sequence:I9(n)}},RR=function(n){return{URI:Rf,map:IB,mapWithIndex:IV,reduce:IH(n),foldMap:Iz(n),reduceRight:IX(n),reduceWithIndex:I0(n),foldMapWithIndex:I1(n),reduceRightWithIndex:I2(n),traverse:I7(n),sequence:I9(n),traverseWithIndex:I6(n)}},RS=function(n){var t=RI(n);return{URI:Rf,map:IB,reduce:IH(n),foldMap:Iz(n),reduceRight:IX(n),traverse:t.traverse,sequence:t.sequence,compact:Ra,separate:Rc,filter:IJ,filterMap:I$,partition:IZ,partitionMap:IQ,wither:(0,Ir.witherDefault)(t,Ry),wilt:(0,Ir.wiltDefault)(t,Ry)}},RT=function(n){var t=IG(n);return{concat:function(n,e){return t(e)(n)}}},Rx=function(n){return{concat:RT(n).concat,empty:{}}},Rw=function(n){var t=IK(n);return{concat:function(n,e){return t(e)(n)}}},RM=function(){return{concat:function(n,t){return IY(t)(n)}}},RO={URI:Rf,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord)},RE={URI:Rf,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord),reduceWithIndex:I0(Ie.Ord),foldMapWithIndex:I1(Ie.Ord),reduceRightWithIndex:I2(Ie.Ord)},RC={URI:Rf,map:IB,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord),traverse:I7(Ie.Ord),sequence:IO},Rk={URI:Rf,map:IB,mapWithIndex:IV,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord),reduceWithIndex:I0(Ie.Ord),foldMapWithIndex:I1(Ie.Ord),reduceRightWithIndex:I2(Ie.Ord),traverse:I7(Ie.Ord),sequence:IO,traverseWithIndex:I6(Ie.Ord)},RW=(0,Ir.witherDefault)(RC,Ry),RF=(0,Ir.wiltDefault)(RC,Ry),RP={URI:Rf,map:IB,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord),traverse:I7(Ie.Ord),sequence:IO,compact:Ra,separate:Rc,filter:IJ,filterMap:I$,partition:IZ,partitionMap:IQ,wither:RW,wilt:RF},RA={},RU=Id,RD=_R.hasOwnProperty,RL={URI:Rf,map:IB,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord),traverse:I7(Ie.Ord),sequence:IO,compact:Ra,separate:Rc,filter:IJ,filterMap:I$,partition:IZ,partitionMap:IQ,mapWithIndex:IV,reduceWithIndex:I0(Ie.Ord),foldMapWithIndex:I1(Ie.Ord),reduceRightWithIndex:I2(Ie.Ord),filterMapWithIndex:I3,filterWithIndex:I4,partitionMapWithIndex:I5,partitionWithIndex:I8,traverseWithIndex:I6(Ie.Ord),wither:RW,wilt:RF},RN=function(n){return function(t){return eT.pC(n(t))}},Rj=function(n){return function(t){return eT.tO(n(t))}},Rq=function(){return function(n){return!0}},RG=function(n){return function(t){return!n(t)}},RK=function(n){return function(t){return function(e){return t(e)||n(e)}}},RY=function(n){return function(t){return function(e){return t(e)&&n(e)}}},RB=function(){return function(n){return!1}},RV=function(n){return function(t){return function(e){return t(e)&&n(e)}}},RH=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{add:function(t,e){return n.map(function(n,r){return n.add(t[r],e[r])})},zero:n.map(function(n){return n.zero}),mul:function(t,e){return n.map(function(n,r){return n.mul(t[r],e[r])})},one:n.map(function(n){return n.one}),sub:function(t,e){return n.map(function(n,r){return n.sub(t[r],e[r])})}}},Rz=function(n){return function(t){return n.sub(n.zero,t)}},RX=RH,RJ=n5.getRing,R$=n5.getSemiring,RZ=e(1214),RQ=function(n){return{show:function(t){var e="{";for(var r in n)eT.e$.call(n,r)&&(e+=" ".concat(r,": ").concat(n[r].show(t[r]),","));return e.length>1&&(e=e.slice(0,-1)+" "),e+="}"}}},R0=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{show:function(t){return"[".concat(t.map(function(t,e){return n[e].show(t)}).join(", "),"]")}}},R1=R0,R2=RQ,R5={show:function(n){return JSON.stringify(n)}},R8={show:function(n){return JSON.stringify(n)}},R3={show:function(n){return JSON.stringify(n)}};function R4(n){return function(t){return function(e){return n.of([t,e])}}}function R7(n){return function(t){return function(e){return function(r){return n.map(e(r),function(n){var e=n[0],r=n[1];return[t(e),r]})}}}}function R9(n){return function(t){return function(e){return function(r){return n.chain(e(r),function(e){var r=e[0],i=e[1];return n.map(t(i),function(n){var t=n[0],e=n[1];return[r(t),e]})})}}}}function R6(n){var t=Sn(n);return function(n){return function(e){return t(e,n)}}}function Sn(n){return function(t,e){return function(r){return n.chain(t(r),function(n){var t=n[0],r=n[1];return e(t)(r)})}}}function St(n){return function(t){return function(e){return n.of(t(e))}}}function Se(n){return function(t){return function(e){return n.map(t,function(n){return[n,e]})}}}function Sr(n){return function(t){return function(e){return n.map(e(t),function(n){return n[0]})}}}function Si(n){return function(t){return function(e){return n.map(e(t),_x)}}}function Su(n){var t=R9(n),e=R7(n),r=R6(n),i=Sr(n),u=Si(n);return{map:function(n,t){return(0,n5.pipe)(n,e(t))},ap:function(n,e){return(0,n5.pipe)(n,t(e))},of:R4(n),chain:function(n,t){return(0,n5.pipe)(n,r(t))},get:function(){return function(t){return n.of([t,t])}},put:function(t){return function(){return n.of([void 0,t])}},modify:function(t){return function(e){return n.of([void 0,t(e)])}},gets:function(t){return function(e){return n.of([t(e),e])}},fromState:St(n),fromM:Se(n),evalState:function(n,t){return(0,n5.pipe)(n,i(t))},execState:function(n,t){return(0,n5.pipe)(n,u(t))}}}var So=function(n){return function(){return gI(n)}},Sa=R4(yx);function Sc(n){return ST(gS(n))}function Sf(n){return ST(gT(n))}function Sl(n){return ST(gx(n))}function Sp(n){return ST(gw(n))}function Sd(n){return ST(gE(n))}function Ss(n){return ST(gC(n))}var Sh=function(n){return(0,n5.flow)(n,gR)},Sm=function(n){return function(t){return gI(n(t)[0])}},Sv=tC.match(function(n){return So(n)},Sa),Sg=Sl,Sy=Sd,Sb=Sc,S_=St(yx),SI=function(n){return ST(g_(n))},SR=function(n){return ST(gD(n))},SS=function(n){return ST(gL(n))},ST=Se(yI),Sx=function(n){return function(t){return(0,n5.flow)(t,eM(n))}},Sw=function(n){return function(t){return function(e){return n(e)(t)(e)}}},SM=Sw,SO=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return SR(n.apply(void 0,t))}},SE=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return SI(n.apply(void 0,t))}},SC=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ST(n.apply(void 0,t))}},Sk=function(n){return function(t){return SB(t,SC(n))}},SW=Sk,SF=function(n,t){return(0,n5.pipe)(n,SL(t))},SP=function(n,t){return(0,n5.pipe)(n,Sq(t))},SA=function(n,t){return function(e){return(0,n5.pipe)(n(e),ys(function(){return t()(e)}))}},SU=function(n,t,e){return function(r){return(0,n5.pipe)(n(r),yi(t,function(n){var t=n[0],r=n[1];return[e(t),r]}))}},SD=function(n,t){return function(e){return(0,n5.pipe)(n(e),yo(t))}},SL=R7(yI),SN=function(n,t){return function(e){return SU(e,n,t)}},Sj=function(n){return function(t){return SD(t,n)}},Sq=R9(yP),SG=Sq,SK=Sa,SY={fromEither:Sv},SB=(0,n5.dual)(2,Sn(yA)),SV={flatMap:SB},SH=(0,n5.dual)(2,function(n,t){return SB(n,function(n){return SE(t)(n)})}),Sz=eT.we({fromIO:Sy},SV),SX=eT.D9({fromTask:Sb},SV),SJ=eT.on({fromReader:Sg},SV),S$=(0,n5.dual)(2,function(n,t){return SB(n,function(n){return SO(t)(n)})}),SZ=(0,n5.dual)(2,eT.iu(SY,SV)),SQ=eT.hU(SY,SV),S0=(0,n5.dual)(2,function(n,t){return SB(n,function(n){return SC(t)(n)})}),S1=(0,n5.dual)(2,function(n,t){return SB(n,Tm(t))}),S2=SB(n5.identity),S5=S2,S8=function(n){return function(t){return function(e){return(0,n5.pipe)(t(e),yh(function(){return n()(e)}))}}},S3=S8,S4=So,S7="StateReaderTaskEither",S9={URI:S7,map:SF},S6=(0,n5.dual)(2,(0,tp.as)(S9)),Tn=(0,tp.asUnit)(S9),Tt=(0,tp.flap)(S9),Te={URI:S7,of:SK},Tr={URI:S7,map:SF,ap:SP},Ti=(0,nN.apFirst)(Tr),Tu=Ti,To=(0,nN.apSecond)(Tr),Ta=To,Tc={URI:S7,map:SF,ap:SP,of:SK},Tf={URI:S7,map:SF,ap:SP,chain:SB},Tl={URI:S7,fromState:S_},Tp=ir(Tl),Td=ii(Tl),Ts=iu(Tl),Th=io(Tl),Tm=ia(Tl),Tv=ic(Tl,Tf),Tg={URI:S7,map:SF,ap:SP,of:SK,chain:SB},Ty={URI:S7,map:SF,ap:SP,of:SK,chain:SB,fromIO:Sy},Tb={URI:S7,map:SF,ap:SP,of:SK,chain:SB,fromIO:Sy,fromTask:Sb},T_={URI:S7,map:SF,ap:SP,of:SK,chain:SB,throwError:S4},TI={URI:S7,fromEither:Sv},TR={URI:S7,fromIO:Sy},TS={URI:S7,fromIO:Sy,fromTask:Sb},TT={URI:S7,fromReader:Sg},Tx=(0,n5.dual)(2,tu.tap(Tf)),Tw=(0,n5.dual)(2,(0,eb.tapEither)(TI,Tf)),TM=(0,n5.dual)(2,eS(TR,Tf)),TO=(0,n5.dual)(2,is(TS,Tf)),TE=(0,n5.dual)(2,rw(TT,Tf)),TC={URI:S7,bimap:SU,mapLeft:SD},Tk={URI:S7,map:SF,alt:SA},TW=rI(TT),TF=rR(TT),TP=rS(TT),TA=SJ,TU=SJ,TD=TE,TL=TE,TN=(0,eb.fromOption)(TI),Tj=(0,eb.fromOptionK)(TI),Tq=(0,eb.chainOptionK)(TI,Tf),TG=Tq,TK=SZ,TY=SZ,TB=Tw,TV=Tw,TH=(0,eb.fromPredicate)(TI),Tz=(0,eb.filterOrElse)(TI,Tf),TX=Tz,TJ=(0,eb.fromEitherK)(TI),T$=e_(TR),TZ=Sz,TQ=TM,T0=SH,T1=SH,T2=S$,T5=S$,T8=il(TS),T3=SX,T4=TO,T7=Sr(yI),T9=Si(yI),T6=(0,tp.bindTo)(S9),xn=(0,tp.let)(S9),xt=tu.bind(Tf),xe=xt,xr=(0,nN.apS)(Tr),xi=xr,xu=function(n){return function(t){return function(e){return function(r){return function(){return eT.Gb(t).reduce(function(t,e,i){return t.then(function(u){return eT.nM(u)?t:n(i+1,e)(u.right[1])(r)().then(function(n){if(eT.nM(n))return n;var t=n.right,e=t[0],r=t[1];return u.right[0].push(e),u.right[1]=r,u})})},n(0,eT.YM(t))(e)(r)().then(tC.map(function(n){return[[n[0]],n[1]]})))}}}}},xo=function(n){var t=xu(n);return function(n){return eT.Od(n)?t(n):SK(eT.Xl)}},xa=xo,xc=function(n){return xo(function(t,e){return n(e)})},xf=xc(n5.identity),xl=SB,xp=SB,xd=Tx,xs=Tx,xh={URI:S7,map:SF,of:SK,ap:SP,chain:SB,bimap:SU,mapLeft:SD,alt:SA,fromIO:Sy,fromTask:Sb,throwError:S4},xm={URI:S7,map:SF,of:SK,ap:SP,chain:SB,bimap:SU,mapLeft:SD,alt:SA,fromIO:Sy,fromTask:Sb,throwError:S4},xv=function(n,t){return(0,n5.pipe)(n(t),ye(function(n){return n[0]}))},xg=function(n,t){return(0,n5.pipe)(n(t),ye(function(n){return n[0],n[1]}))};function xy(n,t,e){return n(t)(e)()}function xb(n){return function(t){return{peek:t.peek,pos:n}}}function x_(n){return function(t){return{peek:t.peek,pos:n(t.pos)}}}function xI(n){return function(t){return t.peek(n(t.pos))}}function xR(n){return function(t){return function(e){return n.map(t(e.pos),function(n){return e.peek(n)})}}}var xS=function(n,t){return(0,n5.pipe)(n,xM(t))},xT=function(n){return function(t){return{peek:function(e){return n({peek:t.peek,pos:e})},pos:t.pos}}},xx=function(n){return n.peek(n.pos)},xw=xT(n5.identity),xM=function(n){return function(t){return{peek:function(e){return n(t.peek(e))},pos:t.pos}}},xO="Store",xE={URI:xO,map:xS},xC=(0,tp.flap)(xE),xk={URI:xO,map:xS,extend:function(n,t){return(0,n5.pipe)(n,xT(t))},extract:xx},xW=xk;function xF(n,t){return function(e,r){return t.compose(n.second(r),n.first(e))}}function xP(n,t){var e=xF(n,t);return function(r,i){return t.compose(e(r,i),n.promap(t.id(),n5.identity,function(n){return[n,n]}))}}function xA(n){return xF(n,n)}function xU(n){return xP(n,n)}var xD=function(){return{concat:function(n,t){return Object.assign({},n,t)}}},xL=function(n){return function(t){var e={};for(var r in t)eT.e$.call(t,r)&&(e[r]=n[r](t[r]));return e}},xN=function(n,t){var e,r,i,u,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(c){return function(a){if(e)throw TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(o=0)),o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(n,o)}catch(n){a=[6,n],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},xj=aL(dZ),xq=aV(dZ),xG=dK,xK=aH(dZ),xY=function(n){return xB(dU(n))},xB=aj(dz),xV=dq(td.fromEither),xH=az(dz),xz=xH,xX=aX(d3),xJ=xX,x$=xX,xZ=x$,xQ=aJ(d4),x0=xQ,x1=aq(dZ),x2=function(n){return function(){var t,e,r,i;return t=void 0,e=void 0,r=void 0,i=function(){return xN(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,n().then(eT.G)];case 1:return[2,t.sent()];case 2:return t.sent(),[2,eT.YP];case 3:return[2]}})},new(r||(r=Promise))(function(n,u){function o(n){try{c(i.next(n))}catch(n){u(n)}}function a(n){try{c(i.throw(n))}catch(n){u(n)}}function c(t){var e;t.done?n(t.value):((e=t.value)instanceof r?e:new r(function(n){n(e)})).then(o,a)}c((i=i.apply(t,e||[])).next())})}},x5=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return x2(function(){return n.apply(void 0,t)})}},x8=aG(dZ),x3=aK(d4),x4=aY(dZ),x7=aB(d4),x9=a$(dz),x6=aZ(dQ),wn=xj,wt=(0,n5.dual)(2,a0(d4)),we={flatMap:wt},wr=eT.we({fromIO:xY},we),wi=eT.D9({fromTask:xB},we),wu=wt(n5.identity),wo=a1(d4),wa=wo,wc=aN(dZ),wf=wc(),wl=th(dz,td.Compactable),wp=tm(dz,td.Compactable,td.Functor),wd=en(dz,td.Filterable),ws=et(dz,td.Filterable),wh=ee(dz,td.Filterable),wm=er(dz,td.Filterable),wv=function(n,t){return(0,n5.pipe)(n,x9(t))},wg=function(n,t){return(0,n5.pipe)(n,x6(t))},wy=function(n,t){return(0,n5.pipe)(n,wo(t))},wb="TaskOption",w_={URI:wb,map:wv},wI=(0,n5.dual)(2,(0,tp.as)(w_)),wR=(0,tp.asUnit)(w_),wS=(0,tp.flap)(w_),wT={URI:wb,of:wn},wx={URI:wb,map:wv,ap:wg},ww=(0,nN.apFirst)(wx),wM=(0,nN.apSecond)(wx),wO={URI:wb,map:wv,ap:wg,of:wn},wE=function(n,t){return wt(n,function(n){return(0,n5.pipe)(t,x9(n))})},wC={URI:wb,map:wv,ap:wE},wk={URI:wb,map:wv,ap:wE,of:wn},wW={URI:wb,map:wv,ap:wg,chain:wt},wF={URI:wb,fromEither:xK},wP={URI:wb,fromIO:xY},wA={URI:wb,fromIO:xY,fromTask:xB},wU=(0,n5.dual)(2,tu.tap(wW)),wD=(0,n5.dual)(2,(0,eb.tapEither)(wF,wW)),wL=(0,n5.dual)(2,eS(wP,wW)),wN=(0,n5.dual)(2,is(wA,wW)),wj={URI:wb,map:wv,alt:wy},wq={URI:wb,zero:wc},wG=(0,a5.guard)(wq,wT),wK={URI:wb,map:wv,ap:wg,of:wn,alt:wy,zero:wc},wY={URI:wb,map:wv,ap:wg,of:wn,chain:wt},wB={URI:wb,map:wv,ap:wg,of:wn,chain:wt,fromIO:xY},wV={URI:wb,map:wv,ap:wg,of:wn,chain:wt,fromIO:xY,fromTask:xB},wH={URI:wb,compact:wl,separate:wp},wz={URI:wb,map:wv,compact:wl,separate:wp,filter:function(n,t){return(0,n5.pipe)(n,wd(t))},filterMap:function(n,t){return(0,n5.pipe)(n,ws(t))},partition:function(n,t){return(0,n5.pipe)(n,wh(t))},partitionMap:function(n,t){return(0,n5.pipe)(n,wm(t))}},wX=e_(wP),wJ=wr,w$=wL,wZ=(0,eb.fromEitherK)(wF),wQ=(0,eb.chainEitherK)(wF,wW),w0=wD,w1=il(wA),w2=wi,w5=wN,w8=wn(eT.F4),w3=(0,tp.bindTo)(w_),w4=(0,tp.let)(w_),w7=tu.bind(wW),w9=(0,nN.apS)(wx),w6=wn(eT.Xl),Mn=function(n){return(0,n5.flow)(sv(n),dq(td.traverseReadonlyNonEmptyArrayWithIndex(n5.SK)))},Mt=function(n){var t=Mn(n);return function(n){return eT.Od(n)?t(n):w6}},Me=function(n){return function(t){return function(){return eT.Gb(t).reduce(function(t,e,r){return t.then(function(i){return eT.Wi(i)?t:n(r+1,e)().then(function(n){return eT.Wi(n)?n:(i.value.push(n.value),i)})})},n(0,eT.YM(t))().then(td.map(eT.ri)))}}},Mr=function(n){var t=Me(n);return function(n){return eT.Od(n)?t(n):w6}},Mi=Mt,Mu=function(n){return Mt(function(t,e){return n(e)})},Mo=Mu(n5.identity),Ma=Mr,Mc=function(n){return Mr(function(t,e){return n(e)})},Mf=Mc(n5.identity),Ml=wt,Mp=wU,Md=function(n){return"Left"===n._tag},Ms=function(n){return"Right"===n._tag};function Mh(n){return"Both"===n._tag}function Mm(n){return{_tag:"Left",left:n}}function Mv(n){return{_tag:"Right",right:n}}function Mg(n,t){return{_tag:"Both",left:n,right:t}}var My=function(n,t,e){return function(r){switch(r._tag){case"Left":return n(r.left);case"Right":return t(r.right);case"Both":return e(r.left,r.right)}}},Mb=My,M_=My,MI=M_,MR=M_(Mv,Mm,function(n,t){return Mg(t,n)});function MS(n,t){return{show:M_(function(t){return"left(".concat(n.show(t),")")},function(n){return"right(".concat(t.show(n),")")},function(e,r){return"both(".concat(n.show(e),", ").concat(t.show(r),")")})}}function MT(n,t){return(0,t3.fromEquals)(function(e,r){return Md(e)?Md(r)&&n.equals(e.left,r.left):Ms(e)?Ms(r)&&t.equals(e.right,r.right):Mh(r)&&n.equals(e.left,r.left)&&t.equals(e.right,r.right)})}function Mx(n,t){return{concat:function(e,r){return Md(e)?Md(r)?Mm(n.concat(e.left,r.left)):Ms(r)?Mg(e.left,r.right):Mg(n.concat(e.left,r.left),r.right):Ms(e)?Md(r)?Mg(r.left,e.right):Ms(r)?Mv(t.concat(e.right,r.right)):Mg(r.left,t.concat(e.right,r.right)):Md(r)?Mg(n.concat(e.left,r.left),e.right):Ms(r)?Mg(e.left,t.concat(e.right,r.right)):Mg(n.concat(e.left,r.left),t.concat(e.right,r.right))}}}var Mw=function(n){return{URI:MQ,_E:void 0,map:MD,ap:function(t,e){return Md(t)?Md(e)?Mm(n.concat(t.left,e.left)):Ms(e)?Mm(t.left):Mm(n.concat(t.left,e.left)):Ms(t)?Md(e)?Mm(e.left):Ms(e)?Mv(t.right(e.right)):Mg(e.left,t.right(e.right)):Md(e)?Mm(n.concat(t.left,e.left)):Ms(e)?Mg(t.left,t.right(e.right)):Mg(n.concat(t.left,e.left),t.right(e.right))}}};function MM(n){return{URI:MQ,_E:void 0,map:MD,ap:Mw(n).ap,of:MZ}}function MO(n){return{URI:MQ,_E:void 0,map:MD,ap:Mw(n).ap,chain:function(t,e){if(Md(t))return t;if(Ms(t))return e(t.right);var r=e(t.right);return Md(r)?Mm(n.concat(t.left,r.left)):Ms(r)?Mg(t.left,r.right):Mg(n.concat(t.left,r.left),r.right)}}}function ME(n){var t=MO(n);return{URI:MQ,_E:void 0,map:MD,of:MZ,ap:t.ap,chain:t.chain,throwError:Mm}}function MC(n){return Md(n)?eT.G(n.left):Ms(n)?eT.YP:eT.G(n.left)}function Mk(n){return Md(n)?eT.YP:(Ms(n),eT.G(n.right))}function MW(n){return function(t){return eT.Wi(t)?Mm(n):Mg(n,t.value)}}function MF(n){return function(t){return eT.Wi(t)?Mv(n):Mg(t.value,n)}}function MP(n){return Md(n)?eT.G(n.left):eT.YP}function MA(n){return Ms(n)?eT.G(n.right):eT.YP}var MU=function(n,t){return eT.Wi(n)?eT.Wi(t)?eT.YP:eT.G(Mv(t.value)):eT.Wi(t)?eT.G(Mm(n.value)):eT.G(Mg(n.value,t.value))},MD=function(n,t){return(0,n5.pipe)(n,MV(t))},ML=function(n,t,e){return(0,n5.pipe)(n,MY(t,e))},MN=function(n,t){return(0,n5.pipe)(n,MB(t))},Mj=function(n,t,e){return(0,n5.pipe)(n,MH(t,e))},Mq=function(n){var t=Mz(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},MG=function(n,t,e){return(0,n5.pipe)(n,MX(t,e))},MK=function(n){var t=MJ(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},MY=function(n,t){return function(e){return Md(e)?Mm(n(e.left)):Ms(e)?Mv(t(e.right)):Mg(n(e.left),t(e.right))}},MB=function(n){return function(t){return Md(t)?Mm(n(t.left)):Mh(t)?Mg(n(t.left),t.right):t}},MV=function(n){return function(t){return Md(t)?t:Ms(t)?Mv(n(t.right)):Mg(t.left,n(t.right))}},MH=function(n,t){return function(e){return Md(e)?n:t(n,e.right)}},Mz=function(n){return function(t){return function(e){return Md(e)?n.empty:t(e.right)}}},MX=function(n,t){return function(e){return Md(e)?n:t(e.right,n)}},MJ=function(n){return function(t){return function(e){return Md(e)?n.of(e):Ms(e)?n.map(t(e.right),Mv):n.map(t(e.right),function(n){return Mg(e.left,n)})}}},M$=function(n){return function(t){return Md(t)?n.of(t):Ms(t)?n.map(t.right,Mv):n.map(t.right,function(n){return Mg(t.left,n)})}},MZ=Mv,MQ="These",M0={URI:MQ,map:MD},M1=(0,tp.flap)(M0),M2={URI:MQ,of:MZ},M5={URI:MQ,bimap:ML,mapLeft:MN},M8={URI:MQ,fromThese:n5.identity},M3={URI:MQ,reduce:Mj,foldMap:Mq,reduceRight:MG},M4={URI:MQ,map:MD,reduce:Mj,foldMap:Mq,reduceRight:MG,traverse:MK,sequence:M$},M7={URI:MQ,fromEither:n5.identity},M9=(0,eb.fromPredicate)(M7),M6=(0,eb.fromOption)(M7),On=(0,eb.fromOptionK)(M7),Ot=function(n){return function(t){return function(e){return!Md(e)&&n.equals(t,e.right)}}},Oe=function(n){return function(t){return!Md(t)&&n(t.right)}},Or=function(n,t){return function(e){return Md(e)?[e.left,t()]:Ms(e)?[n(),e.right]:[e.left,e.right]}},Oi=function(n,t){return Or(function(){return n},function(){return t})},Ou=MZ(eT.Xl),Oo=function(n){return function(t){return function(e){var r=eT.YP,i=t(0,eT.YM(e));if(Md(i))return i;Mh(i)&&(r=eT.G(i.left));for(var u=[i.right],o=1;o<e.length;o++){var a=t(o,e[o]);if(Md(a))return a;Mh(a)&&(r=eT.Wi(r)?eT.G(a.left):eT.G(n.concat(r.value,a.left))),u.push(a.right)}return eT.Wi(r)?Mv(u):Mg(r.value,u)}}},Oa=function(n){return function(t){var e=Oo(n)(t);return function(n){return eT.Od(n)?e(n):Ou}}},Oc={URI:MQ,map:MD,bimap:ML,mapLeft:MN,reduce:Mj,foldMap:Mq,reduceRight:MG,traverse:MK,sequence:M$};function Of(n){return(0,n5.flow)(Mv,n.of)}function Ol(n){return(0,n5.flow)(Mm,n.of)}function Op(n){return(0,n5.flow)(Mg,n.of)}function Od(n){return function(t){return n.map(t,Mv)}}function Os(n){return function(t){return n.map(t,Mm)}}function Oh(n){return(0,tp.map)(n,M0)}function Om(n,t){return(0,nN.ap)(n,Mw(t))}function Ov(n,t){var e=Ol(n);return function(r){return function(i){return n.chain(i,M_(e,r,function(e,i){return n.map(r(i),M_(function(n){return Mm(t.concat(e,n))},function(n){return Mg(e,n)},function(n,r){return Mg(t.concat(e,n),r)}))}))}}}function Og(n){return function(t,e){return function(r){return n.map(r,MY(t,e))}}}function Oy(n){return function(t){return function(e){return n.map(e,MB(t))}}}function Ob(n){return function(t,e,r){return function(i){return n.map(i,M_(t,e,r))}}}function O_(n){return function(t,e,r){return function(i){return n.chain(i,M_(t,e,r))}}}function OI(n){return function(t){return n.map(t,MR)}}function OR(n){return function(t,e){return function(r){return n.map(r,Or(t,e))}}}function OS(n){var t=Oh(n),e=Og(n),r=Oy(n),i=O_(n),u=OR(n),o=Of(n),a=function(n,e){return(0,n5.pipe)(n,t(e))};return{map:a,bimap:function(n,t,r){return(0,n5.pipe)(n,e(t,r))},mapLeft:function(n,t){return(0,n5.pipe)(n,r(t))},fold:function(n,t,e,r){return(0,n5.pipe)(n,i(t,e,r))},swap:OI(n),rightM:Od(n),leftM:Os(n),left:Ol(n),right:Of(n),both:Op(n),toTuple:function(n,t,e){return(0,n5.pipe)(n,u(function(){return t},function(){return e}))},getMonad:function(t){var e=Om(n,t),r=Ov(n,t);return{_E:void 0,map:a,of:o,ap:function(n,t){return(0,n5.pipe)(n,e(t))},chain:function(n,t){return(0,n5.pipe)(n,r(t))}}}}}var OT=Ol(dZ),Ox=Of(dZ),Ow=Op(dZ),OM=Od(dz),OO=Os(dz),OE=(0,n5.flow)(dU,OM),OC=(0,n5.flow)(dU,OO),Ok=dK,OW=dK,OF=OE,OP=dU,OA=OM,OU=Ob(dz),OD=OU,OL=O_(d4),ON=OL,Oj=ON,Oq=Oj,OG=OI(dz),OK=function(n,t){return(0,n5.pipe)(n,OV(t))},OY=function(n,t,e){return(0,n5.pipe)(n,OH(t,e))},OB=function(n,t){return(0,n5.pipe)(n,Oz(t))},OV=Oh(dz),OH=Og(dz),Oz=Oy(dz),OX=Ox,OJ="TaskThese",O$=function(n,t){var e=Om(n,t);return{URI:OJ,_E:void 0,map:OK,ap:function(n,t){return(0,n5.pipe)(n,e(t))}}};function OZ(n,t){return{URI:OJ,_E:void 0,map:OK,ap:O$(n,t).ap,of:OX}}function OQ(n){var t=O$(d2,n),e=Ov(d4,n);return{URI:OJ,_E:void 0,map:OK,ap:t.ap,chain:function(n,t){return(0,n5.pipe)(n,e(t))}}}function O0(n){var t=OZ(d2,n),e=OQ(n);return{URI:OJ,_E:void 0,map:OK,ap:t.ap,of:OX,chain:e.chain,fromIO:OF,fromTask:OA}}var O1={URI:OJ,map:OK},O2=(0,tp.flap)(O1),O5={URI:OJ,of:OX},O8={URI:OJ,bimap:OY,mapLeft:OB},O3={URI:OJ,fromEither:Ok},O4=(0,eb.fromOption)(O3),O7=(0,eb.fromOptionK)(O3),O9=(0,eb.fromPredicate)(O3),O6={URI:OJ,fromThese:OW},En=ih(O6),Et={URI:OJ,fromIO:OF},Ee=e_(Et),Er={URI:OJ,fromIO:OF,fromTask:OA},Ei=il(Er),Eu=OR(dz),Eo=OX(eT.Xl),Ea=function(n){var t=Oo(n);return function(n){return(0,n5.flow)(sv(n),dq(t(n5.SK)))}},Ec=function(n){return function(t){var e=Ea(n)(t);return function(n){return eT.Od(n)?e(n):Eo}}},Ef=function(n){return function(t){return function(e){return function(){return eT.Gb(e).reduce(function(e,r,i){return e.then(function(u){return Md(u)?e:t(i+1,r)().then(function(t){if(Md(t))return t;if(Mh(t)){var e=u.right;return e.push(t.right),Mh(u)?Mg(n.concat(u.left,t.left),e):Mg(t.left,e)}return u.right.push(t.right),u})})},t(0,eT.YM(e))().then(MV(eT.ri)))}}}},El=function(n){return function(t){var e=Ef(n)(t);return function(n){return eT.Od(n)?e(n):Eo}}},Ep={URI:OJ,map:OK},Ed={URI:OJ,bimap:OY,mapLeft:OB},Es=function(n,t){return Eu(function(){return n},function(){return t})},Eh={URI:OJ,map:OK,bimap:OY,mapLeft:OB},Em=function(n,t){return(0,nN.getApplySemigroup)(d5)(Mx(n,t))};function Ev(n,t){return function(e){return e(t(e(n.empty)))}}function Eg(n){return function(t){return[n(t),t]}}function Ey(n){return function(t){return function(e){return[t(e),n(e)]}}}function Eb(n){return function(t){return function(e){return t(n(e))}}}function E_(n){return{URI:ES,_E:void 0,map:EI,extend:function(t,e){return function(r){return e(function(e){return t(n.concat(r,e))})}},extract:function(t){return t(n.empty)}}}var EI=function(n,t){return(0,n5.pipe)(n,ER(t))},ER=function(n){return function(t){return function(e){return n(t(e))}}},ES="Traced",ET={URI:ES,map:EI},Ex=(0,tp.flap)(ET),Ew=ET;function EM(n,t){return function(e){var r=n.traverse(e),i=t.traverse(e);return function(n){return function(t){return r(t,function(t){return i(t,n)})}}}}function EO(n,t){return function(e){var r=n.sequence(e),i=t.sequence(e);return function(t){return r(n.map(t,i))}}}function EE(n,t){var e=(0,tp.getFunctorComposition)(n,t).map,r=eh(n,t),i=EM(n,t),u=EO(n,t);return{map:e,reduce:r.reduce,foldMap:r.foldMap,reduceRight:r.reduceRight,traverse:function(n){var t=i(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},sequence:function(n){var t=u(n);return function(n){return(0,n5.pipe)(n,t)}}}}function EC(n,t){return void 0===t&&(t=[]),{value:n,forest:t}}function Ek(n){var t=function(e){return nK.isEmpty(e.forest)?"make(".concat(n.show(e.value),")"):"make(".concat(n.show(e.value),", [").concat(e.forest.map(t).join(", "),"])")};return{show:t}}function EW(n){var t,e=(0,t3.fromEquals)(function(e,r){return n.equals(e.value,r.value)&&t.equals(e.forest,r.forest)});return t=nK.getEq(e),e}var EF=function(n,t){for(var e,r="",i=t.length,u=0;u<i;u++){e=t[u];var o=u===i-1;r+=n+(o?"└":"├")+"─ "+e.value+EF(n+(i>1&&!o?"│ ":" "),e.forest)}return r};function EP(n){return EF("\n",n)}function EA(n){return n.value+EP(n.forest)}function EU(n,t){var e=t(n);return{value:e[0],forest:ED(e[1],t)}}function ED(n,t){return n.map(function(n){return EU(n,t)})}function EL(n){var t=EN(n);return function(e,r){return n.chain(r(e),function(e){var i=e[0],u=e[1];return n.map(t(u,r),function(n){return{value:i,forest:n}})})}}function EN(n){var t=nK.traverse(n);return function(e,r){return(0,n5.pipe)(e,t(function(t){return EL(n)(t,r)}))}}function Ej(n){var t=function(e){return n(e.value,e.forest.map(t))};return t}var Eq=function(n,t){return(0,n5.pipe)(n,EQ(t))},EG=function(n,t){return EX(n,function(n){return(0,n5.pipe)(t,EQ(n))})},EK=function(n,t,e){return(0,n5.pipe)(n,E0(t,e))},EY=function(n){var t=E1(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},EB=function(n,t,e){return(0,n5.pipe)(n,E2(t,e))},EV=function(n,t){return(0,n5.pipe)(n,EJ(t))},EH=function(n){var t=E8(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},Ez=function(n){return function(t){return EG(t,n)}},EX=(0,n5.dual)(2,function(n,t){var e=t(n.value),r=e.value,i=e.forest;return{value:r,forest:(0,nK.getMonoid().concat)(i,n.forest.map(EX(t)))}}),EJ=function(n){return function(t){return{value:n(t),forest:t.forest.map(EJ(n))}}},E$=EJ(n5.identity),EZ=EX(n5.identity),EQ=function(n){return function(t){return{value:n(t.value),forest:t.forest.map(EQ(n))}}},E0=function(n,t){return function(e){for(var r=t(n,e.value),i=e.forest.length,u=0;u<i;u++)r=(0,n5.pipe)(e.forest[u],E0(r,t));return r}},E1=function(n){return function(t){return E0(n.empty,function(e,r){return n.concat(e,t(r))})}},E2=function(n,t){return function(e){for(var r=n,i=e.forest.length,u=i-1;u>=0;u--)r=(0,n5.pipe)(e.forest[u],E2(r,t));return t(e.value,r)}},E5=function(n){return n.value},E8=function(n){var t=nK.traverse(n),e=function(r){return function(i){return n.ap(n.map(r(i.value),function(n){return function(t){return{value:n,forest:t}}}),(0,n5.pipe)(i.forest,t(e(r))))}};return e},E3=function(n){return E8(n)(n5.identity)},E4=function(n){return EC(n)},E7="Tree",E9={URI:E7,map:Eq},E6=(0,tp.flap)(E9),Cn={URI:E7,of:E4},Ct={URI:E7,map:Eq,ap:EG},Ce=(0,nN.apFirst)(Ct),Cr=(0,nN.apSecond)(Ct),Ci={URI:E7,map:Eq,ap:EG,of:E4},Cu={URI:E7,map:Eq,ap:EG,chain:EX},Co={URI:E7,map:Eq,ap:EG,of:E4,chain:EX},Ca=(0,tu.chainFirst)(Cu),Cc={URI:E7,reduce:EK,foldMap:EY,reduceRight:EB},Cf={URI:E7,map:Eq,reduce:EK,foldMap:EY,reduceRight:EB,traverse:EH,sequence:E3},Cl={URI:E7,map:Eq,extend:EV,extract:E5},Cp=E4(eT.F4),Cd=(0,tp.bindTo)(E9),Cs=(0,tp.let)(E9),Ch=(0,tu.bind)(Cu),Cm=(0,nN.apS)(Ct);function Cv(n){var t=function(e,r){return n.equals(e,r.value)||r.forest.some(function(n){return t(e,n)})};return t}var Cg=function(n){return function(t){return n(t.value)||t.forest.some(Cg(n))}},Cy=EX,Cb={URI:E7,map:Eq,of:E4,ap:EG,chain:EX,reduce:EK,foldMap:EY,reduceRight:EB,traverse:EH,sequence:E3,extract:E5,extend:EV},C_=_T,CI=_x,CR=function(n){return[CI(n),C_(n)]};function CS(n){return{URI:CJ,_E:void 0,map:CC,ap:function(t,e){return[C_(t)(C_(e)),n.concat(CI(t),CI(e))]}}}var CT=function(n){return function(t){return[t,n.empty]}};function Cx(n){var t=CS(n);return{URI:CJ,_E:void 0,map:t.map,ap:t.ap,of:CT(n)}}function Cw(n){var t=CS(n);return{URI:CJ,_E:void 0,map:t.map,ap:t.ap,chain:function(t,e){var r=e(C_(t)),i=r[0],u=r[1];return[i,n.concat(CI(t),u)]}}}function CM(n){var t=Cw(n);return{URI:CJ,_E:void 0,map:t.map,ap:t.ap,chain:t.chain,of:CT(n)}}function CO(n){var t=Cw(n);return{URI:CJ,_E:void 0,map:t.map,ap:t.ap,chain:t.chain,chainRec:function(t,e){for(var r=e(t),i=n.empty,u=C_(r);"Left"===u._tag;)i=n.concat(i,CI(r)),u=C_(r=e(u.left));return[u.right,n.concat(i,CI(r))]}}}var CE=function(n,t){return(0,n5.pipe)(n,Cq(t))},CC=function(n,t){return(0,n5.pipe)(n,CN(t))},Ck=function(n,t,e){return(0,n5.pipe)(n,CL(t,e))},CW=function(n,t){return(0,n5.pipe)(n,Cj(t))},CF=function(n,t){return(0,n5.pipe)(n,CG(t))},CP=function(n,t,e){return(0,n5.pipe)(n,CV(t,e))},CA=function(n){var t=CB(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},CU=function(n,t,e){return(0,n5.pipe)(n,CH(t,e))};function CD(n){var t=Cz(n);return function(n,e){return(0,n5.pipe)(n,t(e))}}var CL=function(n,t){return function(e){return[t(C_(e)),n(CI(e))]}},CN=function(n){return function(t){return[n(C_(t)),CI(t)]}},Cj=function(n){return function(t){return[C_(t),n(CI(t))]}},Cq=function(n){return function(t){return[C_(t),CI(n)]}},CG=function(n){return function(t){return[n(t),CI(t)]}},CK=CG(n5.identity),CY=_H,CB=_J,CV=_X,CH=_$,Cz=function(n){return function(t){return function(e){return n.map(t(C_(e)),function(n){return[n,CI(e)]})}}},CX=function(n){return function(t){return n.map(C_(t),function(n){return[n,CI(t)]})}},CJ="Tuple",C$={URI:CJ,map:CC},CZ=(0,tp.flap)(C$),CQ={URI:CJ,bimap:Ck,mapLeft:CW},C0={URI:CJ,compose:CE},C1={URI:CJ,map:CC,extend:CF,extract:CY},C2={URI:CJ,reduce:CP,foldMap:CA,reduceRight:CU},C5={URI:CJ,map:CC,reduce:CP,foldMap:CA,reduceRight:CU,traverse:CD,sequence:CX},C8=CN,C3=Cj,C4={URI:CJ,compose:CE,map:CC,bimap:Ck,mapLeft:CW,extract:CY,extend:CF,reduce:CP,foldMap:CA,reduceRight:CU,traverse:CD,sequence:CX};function C7(n,t){var e=(0,nG.getApplicativeComposition)(t,tC.getApplicativeValidation(n));return{map:e.map,ap:e.ap,of:e.of,chain:function(n,e){return t.chain(n,function(n){return eT.nM(n)?t.of(eT.t$(n.left)):e(n.right)})},alt:function(e,r){return t.chain(e,function(e){return eT.tO(e)?t.of(e):t.map(r(),function(t){return eT.nM(t)?eT.t$(n.concat(e.left,t.left)):t})})}}}var C9=It.constant(void 0),C6={concat:C9.concat,empty:void 0},kn=function(n){return function(){return[void 0,n]}},kt=function(n){return function(){var t=n(),e=t[0],r=t[1];return[[e,r],r]}},ke=function(n){return function(){var t=n(),e=t[0];return[e[0],(0,e[1])(t[1])]}},kr=function(n){return function(t){return function(){var e=t(),r=e[0],i=e[1];return[[r,n(i)],i]}}},ki=function(n){return function(t){return function(){var e=t();return[e[0],n(e[1])]}}},ku=function(n,t){return(0,n5.pipe)(n,ko(t))},ko=function(n){return function(t){return function(){var e=t(),r=e[0],i=e[1];return[n(r),i]}}},ka="Writer",kc=function(n){return{URI:ka,_E:void 0,of:function(t){return function(){return[t,n.empty]}}}},kf=function(n){return{URI:ka,_E:void 0,map:ku,ap:function(t,e){return function(){var r=t(),i=r[0],u=r[1],o=e(),a=o[0],c=o[1];return[i(a),n.concat(u,c)]}}}},kl=function(n){var t=kf(n),e=kc(n);return{URI:ka,_E:void 0,map:ku,ap:t.ap,of:e.of}};function kp(n){return{URI:ka,_E:void 0,map:ku,ap:kf(n).ap,chain:function(t,e){return function(){var r=t(),i=r[0],u=r[1],o=e(i)(),a=o[0],c=o[1];return[a,n.concat(u,c)]}}}}function kd(n){var t=kl(n),e=kp(n);return{URI:ka,_E:void 0,map:ku,ap:t.ap,of:t.of,chain:e.chain}}var ks={URI:ka,map:ku},kh=(0,tp.flap)(ks),km=function(n){return n()[0]},kv=function(n){return n()[1]},kg=function(n){return n()[0]},ky=function(n){return n()[1]},kb=ks;function k_(n){var t=function(t,e){return function(){return n.map(t(),function(n){var t=n[0],r=n[1];return[e(t),r]})}};return{map:t,evalWriter:function(t){return n.map(t(),function(n){return n[0]})},execWriter:function(t){return n.map(t(),function(n){return n[0],n[1]})},tell:function(t){return function(){return n.of([void 0,t])}},listen:function(t){return function(){return n.map(t(),function(n){var t=n[0],e=n[1];return[[t,e],e]})}},pass:function(t){return function(){return n.map(t(),function(n){var t=n[0];return[t[0],(0,t[1])(n[1])]})}},listens:function(t,e){return function(){return n.map(t(),function(n){var t=n[0],r=n[1];return[[t,e(r)],r]})}},censor:function(t,e){return function(){return n.map(t(),function(n){return[n[0],e(n[1])]})}},getMonad:function(e){return{_E:void 0,map:t,of:function(t){return function(){return n.of([t,e.empty])}},ap:function(t,r){return function(){return n.chain(t(),function(t){var i=t[0],u=t[1];return n.map(r(),function(n){var t=n[0],r=n[1];return[i(t),e.concat(u,r)]})})}},chain:function(t,r){return function(){return n.chain(t(),function(t){var i=t[0],u=t[1];return n.map(r(i)(),function(n){var t=n[0],r=n[1];return[t,e.concat(u,r)]})})}}}}}}},97963:function(n,t,e){e.d(t,{D9:function(){return M},F2:function(){return d},F4:function(){return y},G:function(){return c},Gb:function(){return v},Od:function(){return h},WE:function(){return R},Wi:function(){return u},Xl:function(){return g},YM:function(){return m},YP:function(){return a},e$:function(){return b},hU:function(){return T},iu:function(){return x},nM:function(){return f},ny:function(){return S},on:function(){return O},pC:function(){return o},r1:function(){return _},ri:function(){return s},t$:function(){return p},tO:function(){return l},uL:function(){return I},we:function(){return w}});var r=e(42275),i=function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},u=function(n){return"None"===n._tag},o=function(n){return"Some"===n._tag},a={_tag:"None"},c=function(n){return{_tag:"Some",value:n}},f=function(n){return"Left"===n._tag},l=function(n){return"Right"===n._tag},p=function(n){return{_tag:"Left",left:n}},d=function(n){return{_tag:"Right",right:n}},s=function(n){return[n]},h=function(n){return n.length>0},m=function(n){return n[0]},v=function(n){return n.slice(1)},g=[],y={},b=Object.prototype.hasOwnProperty,_=function(n){return i([n[0]],n.slice(1),!0)},I=function(n){return function(t,e){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var u=t.apply(void 0,r);return n.fromEither(null==u?p(e.apply(void 0,r)):d(u))}}},R=function(n){return function(t,e){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=t.apply(void 0,r);return n.fromEither(u(o)?p(e.apply(void 0,r)):d(o.value))}}},S=function(n,t){return(0,r.dual)(3,function(e,r,i){return t.flatMap(e,I(n)(r,i))})},T=function(n,t){return(0,r.dual)(3,function(e,r,i){return t.flatMap(e,R(n)(r,i))})},x=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromEither(r(t))})})},w=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromIO(r(t))})})},M=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromTask(r(t))})})},O=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromReader(r(t))})})}},76627:function(n,t,e){e.r(t),e.d(t,{Bounded:function(){return o},Eq:function(){return i},Field:function(){return s},MagmaSub:function(){return c},MonoidProduct:function(){return d},MonoidSum:function(){return p},Ord:function(){return u},SemigroupProduct:function(){return l},SemigroupSum:function(){return f},Show:function(){return a},isNumber:function(){return r}});var r=function(n){return"number"==typeof n},i={equals:function(n,t){return n===t}},u={equals:i.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},o={equals:i.equals,compare:u.compare,top:1/0,bottom:-1/0},a={show:function(n){return JSON.stringify(n)}},c={concat:function(n,t){return n-t}},f={concat:function(n,t){return n+t}},l={concat:function(n,t){return n*t}},p={concat:f.concat,empty:0},d={concat:l.concat,empty:1},s={add:f.concat,zero:0,mul:l.concat,one:1,sub:c.concat,degree:function(n){return 1},div:function(n,t){return n/t},mod:function(n,t){return n%t}}},18896:function(n,t,e){e.r(t),e.d(t,{alt:function(){return _},ap:function(){return f},bimap:function(){return p},chain:function(){return l},compose:function(){return C},contramap:function(){return a},extend:function(){return s},filter:function(){return I},filterMap:function(){return R},filterMapWithIndex:function(){return w},filterWithIndex:function(){return x},foldMap:function(){return m},foldMapWithIndex:function(){return y},map:function(){return o},mapLeft:function(){return d},mapWithIndex:function(){return c},partition:function(){return S},partitionMap:function(){return T},partitionMapWithIndex:function(){return O},partitionWithIndex:function(){return M},pipe:function(){return W},pipeable:function(){return k},promap:function(){return E},reduce:function(){return h},reduceRight:function(){return v},reduceRightWithIndex:function(){return b},reduceWithIndex:function(){return g}});var r=e(42925),i=e(88543),u=e(42275);function o(n){return function(t){return function(e){return n.map(e,t)}}}function a(n){return function(t){return function(e){return n.contramap(e,t)}}}function c(n){return function(t){return function(e){return n.mapWithIndex(e,t)}}}function f(n){return function(t){return function(e){return n.ap(e,t)}}}function l(n){return function(t){return function(e){return n.chain(e,t)}}}function p(n){return function(t,e){return function(r){return n.bimap(r,t,e)}}}function d(n){return function(t){return function(e){return n.mapLeft(e,t)}}}function s(n){return function(t){return function(e){return n.extend(e,t)}}}function h(n){return function(t,e){return function(r){return n.reduce(r,t,e)}}}function m(n){return function(t){var e=n.foldMap(t);return function(n){return function(t){return e(t,n)}}}}function v(n){return function(t,e){return function(r){return n.reduceRight(r,t,e)}}}function g(n){return function(t,e){return function(r){return n.reduceWithIndex(r,t,e)}}}function y(n){return function(t){var e=n.foldMapWithIndex(t);return function(n){return function(t){return e(t,n)}}}}function b(n){return function(t,e){return function(r){return n.reduceRightWithIndex(r,t,e)}}}function _(n){return function(t){return function(e){return n.alt(e,t)}}}function I(n){return function(t){return function(e){return n.filter(e,t)}}}function R(n){return function(t){return function(e){return n.filterMap(e,t)}}}function S(n){return function(t){return function(e){return n.partition(e,t)}}}function T(n){return function(t){return function(e){return n.partitionMap(e,t)}}}function x(n){return function(t){return function(e){return n.filterWithIndex(e,t)}}}function w(n){return function(t){return function(e){return n.filterMapWithIndex(e,t)}}}function M(n){return function(t){return function(e){return n.partitionWithIndex(e,t)}}}function O(n){return function(t){return function(e){return n.partitionMapWithIndex(e,t)}}}function E(n){return function(t,e){return function(r){return n.promap(r,t,e)}}}function C(n){return function(t){return function(e){return n.compose(e,t)}}}function k(n){var t={};return"function"==typeof n.map&&(t.map=o(n)),"function"==typeof n.contramap&&(t.contramap=a(n)),"function"==typeof n.mapWithIndex&&(t.mapWithIndex=c(n)),"function"==typeof n.ap&&(t.ap=f(n),t.apFirst=(0,r.apFirst)(n),t.apSecond=(0,r.apSecond)(n)),"function"==typeof n.chain&&(t.chain=l(n),t.chainFirst=(0,i.chainFirst)(n),t.flatten=t.chain(u.identity)),"function"==typeof n.bimap&&(t.bimap=p(n),t.mapLeft=d(n)),"function"==typeof n.extend&&(t.extend=s(n),t.duplicate=t.extend(u.identity)),"function"==typeof n.reduce&&(t.reduce=h(n),t.foldMap=m(n),t.reduceRight=v(n)),"function"==typeof n.reduceWithIndex&&(t.reduceWithIndex=g(n),t.foldMapWithIndex=y(n),t.reduceRightWithIndex=b(n)),"function"==typeof n.alt&&(t.alt=_(n)),"function"==typeof n.compact&&(t.compact=n.compact,t.separate=n.separate),"function"==typeof n.filter&&(t.filter=I(n),t.filterMap=R(n),t.partition=S(n),t.partitionMap=T(n)),"function"==typeof n.filterWithIndex&&(t.filterWithIndex=x(n),t.filterMapWithIndex=w(n),t.partitionWithIndex=M(n),t.partitionMapWithIndex=O(n)),"function"==typeof n.promap&&(t.promap=E(n)),"function"==typeof n.compose&&(t.compose=C(n)),"function"==typeof n.throwError&&(t.fromOption=function(t){return function(e){return"None"===e._tag?n.throwError(t()):n.of(e.value)}},t.fromEither=function(t){return"Left"===t._tag?n.throwError(t.left):n.of(t.right)},t.fromPredicate=function(t,e){return function(r){return t(r)?n.of(r):n.throwError(e(r))}},t.filterOrElse=function(t,e){return function(r){return n.chain(r,function(r){return t(r)?n.of(r):n.throwError(e(r))})}}),t}var W=u.pipe},57029:function(n,t,e){e.r(t),e.d(t,{Eq:function(){return i},Monoid:function(){return a},Ord:function(){return c},Semigroup:function(){return u},Show:function(){return f},empty:function(){return o},endsWith:function(){return S},includes:function(){return I},isEmpty:function(){return y},isString:function(){return l},replace:function(){return s},size:function(){return b},slice:function(){return g},split:function(){return _},startsWith:function(){return R},toLowerCase:function(){return d},toUpperCase:function(){return p},trim:function(){return h},trimLeft:function(){return m},trimRight:function(){return v}});var r=e(28350),i={equals:function(n,t){return n===t}},u={concat:function(n,t){return n+t}},o="",a={concat:u.concat,empty:o},c={equals:i.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},f={show:function(n){return JSON.stringify(n)}},l=function(n){return"string"==typeof n},p=function(n){return n.toUpperCase()},d=function(n){return n.toLowerCase()},s=function(n,t){return function(e){return e.replace(n,t)}},h=function(n){return n.trim()},m=function(n){return n.trimLeft()},v=function(n){return n.trimRight()},g=function(n,t){return function(e){return e.slice(n,t)}},y=function(n){return 0===n.length},b=function(n){return n.length},_=function(n){return function(t){var e=t.split(n);return(0,r.isNonEmpty)(e)?e:[t]}},I=function(n,t){return function(e){return e.includes(n,t)}},R=function(n,t){return function(e){return e.startsWith(n,t)}},S=function(n,t){return function(e){return e.endsWith(n,t)}}},91756:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.getApplicativeComposition=t.getApplicativeMonoid=void 0;var r=e(93145),i=e(14632),u=e(8762);t.getApplicativeMonoid=function(n){var t=(0,r.getApplySemigroup)(n);return function(e){return{concat:t(e).concat,empty:n.of(e.empty)}}},t.getApplicativeComposition=function(n,t){var e=(0,u.getFunctorComposition)(n,t).map,o=(0,r.ap)(n,t);return{map:e,of:function(e){return n.of(t.of(e))},ap:function(n,t){return(0,i.pipe)(n,o(t))}}}},93145:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceS=t.sequenceT=t.getApplySemigroup=t.apS=t.apSecond=t.apFirst=t.ap=void 0;var o=e(14632),a=u(e(5309));function c(n,t,e){return function(r){for(var i=Array(e.length+1),u=0;u<e.length;u++)i[u]=e[u];return i[e.length]=r,0===t?n.apply(null,i):c(n,t-1,i)}}t.ap=function(n,t){return function(e){return function(r){return n.ap(n.map(r,function(n){return function(e){return t.ap(n,e)}}),e)}}},t.apFirst=function(n){return function(t){return function(e){return n.ap(n.map(e,function(n){return function(){return n}}),t)}}},t.apSecond=function(n){return function(t){return function(e){return n.ap(n.map(e,function(){return function(n){return n}}),t)}}},t.apS=function(n){return function(t,e){return function(r){return n.ap(n.map(r,function(n){return function(e){var r;return Object.assign({},n,((r={})[t]=e,r))}}),e)}}},t.getApplySemigroup=function(n){return function(t){return{concat:function(e,r){return n.ap(n.map(e,function(n){return function(e){return t.concat(n,e)}}),r)}}}};var f={1:function(n){return[n]},2:function(n){return function(t){return[n,t]}},3:function(n){return function(t){return function(e){return[n,t,e]}}},4:function(n){return function(t){return function(e){return function(r){return[n,t,e,r]}}}},5:function(n){return function(t){return function(e){return function(r){return function(i){return[n,t,e,r,i]}}}}}};t.sequenceT=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=t.length,i=(a.has.call(f,r)||(f[r]=c(o.tuple,r-1,[])),f[r]),u=n.map(t[0],i),l=1;l<r;l++)u=n.ap(u,t[l]);return u}},t.sequenceS=function(n){return function(t){for(var e=Object.keys(t),r=e.length,i=function(n){var t=n.length;switch(t){case 1:return function(t){var e;return(e={})[n[0]]=t,e};case 2:return function(t){return function(e){var r;return(r={})[n[0]]=t,r[n[1]]=e,r}};case 3:return function(t){return function(e){return function(r){var i;return(i={})[n[0]]=t,i[n[1]]=e,i[n[2]]=r,i}}};case 4:return function(t){return function(e){return function(r){return function(i){var u;return(u={})[n[0]]=t,u[n[1]]=e,u[n[2]]=r,u[n[3]]=i,u}}}};case 5:return function(t){return function(e){return function(r){return function(i){return function(u){var o;return(o={})[n[0]]=t,o[n[1]]=e,o[n[2]]=r,o[n[3]]=i,o[n[4]]=u,o}}}}};default:return c(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var i={},u=0;u<t;u++)i[n[u]]=e[u];return i},t-1,[])}}(e),u=n.map(t[e[0]],i),o=1;o<r;o++)u=n.ap(u,t[e[o]]);return u}}},92425:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.lefts=t.rights=t.reverse=t.modifyAt=t.deleteAt=t.updateAt=t.insertAt=t.copy=t.findLastIndex=t.findLastMap=t.findLast=t.findFirstMap=t.findFirst=t.findIndex=t.dropLeftWhile=t.dropRight=t.dropLeft=t.spanLeft=t.takeLeftWhile=t.takeRight=t.takeLeft=t.init=t.tail=t.last=t.head=t.lookup=t.isOutOfBound=t.size=t.scanRight=t.scanLeft=t.chainWithIndex=t.foldRight=t.matchRight=t.matchRightW=t.foldLeft=t.matchLeft=t.matchLeftW=t.match=t.matchW=t.fromEither=t.fromOption=t.fromPredicate=t.replicate=t.makeBy=t.appendW=t.append=t.prependW=t.prepend=t.isNonEmpty=t.isEmpty=void 0,t.traverseWithIndex=t.sequence=t.traverse=t.reduceRightWithIndex=t.reduceRight=t.reduceWithIndex=t.reduce=t.foldMapWithIndex=t.foldMap=t.duplicate=t.extend=t.filterWithIndex=t.alt=t.altW=t.partitionMapWithIndex=t.partitionMap=t.partitionWithIndex=t.partition=t.filter=t.separate=t.compact=t.filterMap=t.filterMapWithIndex=t.mapWithIndex=t.flatten=t.flatMap=t.ap=t.map=t.zero=t.of=t.difference=t.intersection=t.union=t.concat=t.concatW=t.comprehension=t.fromOptionK=t.chunksOf=t.splitAt=t.chop=t.sortBy=t.uniq=t.elem=t.rotate=t.intersperse=t.prependAll=t.unzip=t.zip=t.zipWith=t.sort=void 0,t.some=t.every=t.unsafeDeleteAt=t.unsafeUpdateAt=t.unsafeInsertAt=t.fromEitherK=t.FromEither=t.filterE=t.ChainRecBreadthFirst=t.chainRecBreadthFirst=t.ChainRecDepthFirst=t.chainRecDepthFirst=t.Witherable=t.TraversableWithIndex=t.Traversable=t.FoldableWithIndex=t.Foldable=t.FilterableWithIndex=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.guard=t.Zero=t.Alt=t.Unfoldable=t.Monad=t.chainFirst=t.Chain=t.Applicative=t.apSecond=t.apFirst=t.Apply=t.FunctorWithIndex=t.Pointed=t.flap=t.Functor=t.getDifferenceMagma=t.getIntersectionSemigroup=t.getUnionMonoid=t.getUnionSemigroup=t.getOrd=t.getEq=t.getMonoid=t.getSemigroup=t.getShow=t.URI=t.unfold=t.wilt=t.wither=void 0,t.array=t.prependToAll=t.snoc=t.cons=t.empty=t.range=t.chain=t.apS=t.bind=t.let=t.bindTo=t.Do=t.intercalate=t.exists=void 0;var o=e(93145),a=e(18222),c=e(57756),f=e(14632),l=e(8762),p=u(e(5309)),d=u(e(7219)),s=u(e(78703)),h=e(4773),m=e(69706),v=e(3899);t.isEmpty=function(n){return 0===n.length},t.isNonEmpty=d.isNonEmpty,t.prepend=d.prepend,t.prependW=d.prependW,t.append=d.append,t.appendW=d.appendW,t.makeBy=function(n,t){return n<=0?[]:d.makeBy(t)(n)},t.replicate=function(n,e){return(0,t.makeBy)(n,function(){return e})},t.fromPredicate=function(n){return function(t){return n(t)?[t]:[]}},t.fromOption=function(n){return p.isNone(n)?[]:[n.value]},t.fromEither=function(n){return p.isLeft(n)?[]:[n.right]},t.matchW=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(r):n()}},t.match=t.matchW,t.matchLeftW=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(d.head(r),d.tail(r)):n()}},t.matchLeft=t.matchLeftW,t.foldLeft=t.matchLeft,t.matchRightW=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(d.init(r),d.last(r)):n()}},t.matchRight=t.matchRightW,t.foldRight=t.matchRight,t.chainWithIndex=function(n){return function(t){for(var e=[],r=0;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},t.scanLeft=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[0]=n;for(var u=0;u<r;u++)i[u+1]=t(i[u],e[u]);return i}},t.scanRight=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[r]=n;for(var u=r-1;u>=0;u--)i[u]=t(e[u],i[u+1]);return i}},t.size=function(n){return n.length},t.isOutOfBound=d.isOutOfBound,t.lookup=s.lookup,t.head=s.head,t.last=s.last,t.tail=function(n){return(0,t.isNonEmpty)(n)?p.some(d.tail(n)):p.none},t.init=function(n){return(0,t.isNonEmpty)(n)?p.some(d.init(n)):p.none},t.takeLeft=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?(0,t.copy)(e):e.slice(0,n)}},t.takeRight=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?(0,t.copy)(e):0===n?[]:e.slice(-n)}},t.takeLeftWhile=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r];if(!n(i))break;e.push(i)}return e}};var g=function(n,t){for(var e=n.length,r=0;r<e&&t(n[r]);r++);return r};function y(n){var e=d.union(n);return function(r,i){if(void 0===i){var u=y(n);return function(n){return u(n,r)}}return(0,t.isNonEmpty)(r)&&(0,t.isNonEmpty)(i)?e(i)(r):(0,t.isNonEmpty)(r)?(0,t.copy)(r):(0,t.copy)(i)}}function b(n){var e=(0,t.elem)(n);return function(t,r){if(void 0===r){var i=b(n);return function(n){return i(n,t)}}return t.filter(function(n){return e(n,r)})}}function _(n){var e=(0,t.elem)(n);return function(t,r){if(void 0===r){var i=_(n);return function(n){return i(n,t)}}return t.filter(function(n){return!e(n,r)})}}t.spanLeft=function(n){return function(e){var r=(0,t.splitAt)(g(e,n))(e);return{init:r[0],rest:r[1]}}},t.dropLeft=function(n){return function(e){return n<=0||(0,t.isEmpty)(e)?(0,t.copy)(e):n>=e.length?[]:e.slice(n,e.length)}},t.dropRight=function(n){return function(e){return n<=0||(0,t.isEmpty)(e)?(0,t.copy)(e):n>=e.length?[]:e.slice(0,e.length-n)}},t.dropLeftWhile=function(n){return function(t){return t.slice(g(t,n))}},t.findIndex=s.findIndex,t.findFirst=function(n){return s.findFirst(n)},t.findFirstMap=s.findFirstMap,t.findLast=function(n){return s.findLast(n)},t.findLastMap=s.findLastMap,t.findLastIndex=s.findLastIndex,t.copy=function(n){return n.slice()},t.insertAt=function(n,e){return function(r){return n<0||n>r.length?p.none:p.some((0,t.unsafeInsertAt)(n,e,r))}},t.updateAt=function(n,e){return(0,t.modifyAt)(n,function(){return e})},t.deleteAt=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?p.none:p.some((0,t.unsafeDeleteAt)(n,e))}},t.modifyAt=function(n,e){return function(r){return(0,t.isOutOfBound)(n,r)?p.none:p.some((0,t.unsafeUpdateAt)(n,e(r[n]),r))}},t.reverse=function(n){return(0,t.isEmpty)(n)?[]:n.slice().reverse()},t.rights=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Right"===r._tag&&t.push(r.right)}return t},t.lefts=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Left"===r._tag&&t.push(r.left)}return t},t.sort=function(n){return function(e){return e.length<=1?(0,t.copy)(e):e.slice().sort(n.compare)}},t.zipWith=function(n,t,e){for(var r=[],i=Math.min(n.length,t.length),u=0;u<i;u++)r[u]=e(n[u],t[u]);return r},t.zip=function n(e,r){return void 0===r?function(t){return n(t,e)}:(0,t.zipWith)(e,r,function(n,t){return[n,t]})},t.unzip=function(n){for(var t=[],e=[],r=0;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},t.prependAll=function(n){var e=d.prependAll(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):[]}},t.intersperse=function(n){var e=d.intersperse(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):(0,t.copy)(n)}},t.rotate=function(n){var e=d.rotate(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):(0,t.copy)(n)}},t.elem=s.elem,t.uniq=function(n){var e=d.uniq(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):(0,t.copy)(n)}},t.sortBy=function(n){var e=d.sortBy(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):(0,t.copy)(n)}},t.chop=function(n){var e=d.chop(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):[]}},t.splitAt=function(n){return function(e){return n>=1&&(0,t.isNonEmpty)(e)?d.splitAt(n)(e):(0,t.isEmpty)(e)?[(0,t.copy)(e),[]]:[[],(0,t.copy)(e)]}},t.chunksOf=function(n){var e=d.chunksOf(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):[]}},t.fromOptionK=function(n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0,t.fromOption)(n.apply(void 0,e))}},t.comprehension=function(n,e,r){void 0===r&&(r=function(){return!0});var i=function(n,u){return(0,t.isNonEmpty)(u)?(0,t.flatMap)(d.head(u),function(e){return i((0,f.pipe)(n,(0,t.append)(e)),d.tail(u))}):r.apply(void 0,n)?[e.apply(void 0,n)]:[]};return i([],n)},t.concatW=function(n){return function(e){return(0,t.isEmpty)(e)?(0,t.copy)(n):(0,t.isEmpty)(n)?(0,t.copy)(e):e.concat(n)}},t.concat=t.concatW,t.union=y,t.intersection=b,t.difference=_;var I=function(n,e){return(0,f.pipe)(n,(0,t.map)(e))},R=function(n,e){return(0,f.pipe)(n,(0,t.mapWithIndex)(e))},S=function(n,e){return(0,f.pipe)(n,(0,t.ap)(e))},T=function(n,e){return(0,f.pipe)(n,(0,t.filter)(e))},x=function(n,e){return(0,f.pipe)(n,(0,t.filterMap)(e))},w=function(n,e){return(0,f.pipe)(n,(0,t.partition)(e))},M=function(n,e){return(0,f.pipe)(n,(0,t.partitionMap)(e))},O=function(n,e){return(0,f.pipe)(n,(0,t.partitionWithIndex)(e))},E=function(n,e){return(0,f.pipe)(n,(0,t.partitionMapWithIndex)(e))},C=function(n,e){return(0,f.pipe)(n,(0,t.alt)(e))},k=function(n,e,r){return(0,f.pipe)(n,(0,t.reduce)(e,r))},W=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},F=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceRight)(e,r))},P=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceWithIndex)(e,r))},A=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},U=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceRightWithIndex)(e,r))},D=function(n,e){return(0,f.pipe)(n,(0,t.filterMapWithIndex)(e))},L=function(n,e){return(0,f.pipe)(n,(0,t.filterWithIndex)(e))},N=function(n,e){return(0,f.pipe)(n,(0,t.extend)(e))},j=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},q=function(n){var e=(0,t.traverseWithIndex)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},G=s._chainRecDepthFirst,K=s._chainRecBreadthFirst;t.of=d.of,t.zero=function(){return[]},t.map=function(n){return function(t){return t.map(function(t){return n(t)})}},t.ap=function(n){return(0,t.flatMap)(function(e){return(0,f.pipe)(n,(0,t.map)(e))})},t.flatMap=(0,f.dual)(2,function(n,e){return(0,f.pipe)(n,(0,t.chainWithIndex)(function(n,t){return e(t,n)}))}),t.flatten=(0,t.flatMap)(f.identity),t.mapWithIndex=function(n){return function(t){return t.map(function(t,e){return n(e,t)})}},t.filterMapWithIndex=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=n(r,t[r]);p.isSome(i)&&e.push(i.value)}return e}},t.filterMap=function(n){return(0,t.filterMapWithIndex)(function(t,e){return n(e)})},t.compact=(0,t.filterMap)(f.identity),t.separate=function(n){for(var t=[],e=[],r=0;r<n.length;r++){var i=n[r];"Left"===i._tag?t.push(i.left):e.push(i.right)}return(0,h.separated)(t,e)},t.filter=function(n){return function(t){return t.filter(n)}},t.partition=function(n){return(0,t.partitionWithIndex)(function(t,e){return n(e)})},t.partitionWithIndex=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=t[i];n(i,u)?r.push(u):e.push(u)}return(0,h.separated)(e,r)}},t.partitionMap=function(n){return(0,t.partitionMapWithIndex)(function(t,e){return n(e)})},t.partitionMapWithIndex=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=n(i,t[i]);"Left"===u._tag?e.push(u.left):r.push(u.right)}return(0,h.separated)(e,r)}},t.altW=function(n){return function(t){return t.concat(n())}},t.alt=t.altW,t.filterWithIndex=function(n){return function(t){return t.filter(function(t,e){return n(e,t)})}},t.extend=function(n){return function(t){return t.map(function(e,r){return n(t.slice(r))})}},t.duplicate=(0,t.extend)(f.identity),t.foldMap=s.foldMap,t.foldMapWithIndex=s.foldMapWithIndex,t.reduce=s.reduce,t.reduceWithIndex=s.reduceWithIndex,t.reduceRight=s.reduceRight,t.reduceRightWithIndex=s.reduceRightWithIndex,t.traverse=function(n){var e=(0,t.traverseWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}},t.sequence=function(n){return function(e){return k(e,n.of((0,t.zero)()),function(e,r){return n.ap(n.map(e,function(n){return function(e){return(0,f.pipe)(n,(0,t.append)(e))}}),r)})}},t.traverseWithIndex=function(n){return function(e){return(0,t.reduceWithIndex)(n.of((0,t.zero)()),function(r,i,u){return n.ap(n.map(i,function(n){return function(e){return(0,f.pipe)(n,(0,t.append)(e))}}),e(r,u))})}},t.wither=function(n){var t=Y(n);return function(n){return function(e){return t(e,n)}}},t.wilt=function(n){var t=B(n);return function(n){return function(e){return t(e,n)}}},t.unfold=function(n,t){for(var e=[],r=n;;){var i=t(r);if(p.isSome(i)){var u=i.value,o=u[0],a=u[1];e.push(o),r=a}else break}return e},t.URI="Array",t.getShow=s.getShow,t.getSemigroup=function(){return{concat:function(n,t){return n.concat(t)}}},t.getMonoid=function(){return{concat:(0,t.getSemigroup)().concat,empty:[]}},t.getEq=s.getEq,t.getOrd=s.getOrd,t.getUnionSemigroup=function(n){var t=y(n);return{concat:function(n,e){return t(e)(n)}}},t.getUnionMonoid=function(n){return{concat:(0,t.getUnionSemigroup)(n).concat,empty:[]}},t.getIntersectionSemigroup=function(n){var t=b(n);return{concat:function(n,e){return t(e)(n)}}},t.getDifferenceMagma=function(n){var t=_(n);return{concat:function(n,e){return t(e)(n)}}},t.Functor={URI:t.URI,map:I},t.flap=(0,l.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:I,mapWithIndex:R},t.Apply={URI:t.URI,map:I,ap:S},t.apFirst=(0,o.apFirst)(t.Apply),t.apSecond=(0,o.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:I,ap:S,of:t.of},t.Chain={URI:t.URI,map:I,ap:S,chain:t.flatMap},t.chainFirst=(0,a.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:I,ap:S,of:t.of,chain:t.flatMap},t.Unfoldable={URI:t.URI,unfold:t.unfold},t.Alt={URI:t.URI,map:I,alt:C},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,v.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:I,ap:S,of:t.of,alt:C,zero:t.zero},t.Extend={URI:t.URI,map:I,extend:N},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:I,compact:t.compact,separate:t.separate,filter:T,filterMap:x,partition:w,partitionMap:M},t.FilterableWithIndex={URI:t.URI,map:I,mapWithIndex:R,compact:t.compact,separate:t.separate,filter:T,filterMap:x,partition:w,partitionMap:M,partitionMapWithIndex:E,partitionWithIndex:O,filterMapWithIndex:D,filterWithIndex:L},t.Foldable={URI:t.URI,reduce:k,foldMap:W,reduceRight:F},t.FoldableWithIndex={URI:t.URI,reduce:k,foldMap:W,reduceRight:F,reduceWithIndex:P,foldMapWithIndex:A,reduceRightWithIndex:U},t.Traversable={URI:t.URI,map:I,reduce:k,foldMap:W,reduceRight:F,traverse:j,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:I,mapWithIndex:R,reduce:k,foldMap:W,reduceRight:F,reduceWithIndex:P,foldMapWithIndex:A,reduceRightWithIndex:U,traverse:j,sequence:t.sequence,traverseWithIndex:q};var Y=(0,m.witherDefault)(t.Traversable,t.Compactable),B=(0,m.wiltDefault)(t.Traversable,t.Compactable);t.Witherable={URI:t.URI,map:I,compact:t.compact,separate:t.separate,filter:T,filterMap:x,partition:w,partitionMap:M,reduce:k,foldMap:W,reduceRight:F,traverse:j,sequence:t.sequence,wither:Y,wilt:B},t.chainRecDepthFirst=s.chainRecDepthFirst,t.ChainRecDepthFirst={URI:t.URI,map:I,ap:S,chain:t.flatMap,chainRec:G},t.chainRecBreadthFirst=s.chainRecBreadthFirst,t.ChainRecBreadthFirst={URI:t.URI,map:I,ap:S,chain:t.flatMap,chainRec:K},t.filterE=(0,m.filterE)(t.Witherable),t.FromEither={URI:t.URI,fromEither:t.fromEither},t.fromEitherK=(0,c.fromEitherK)(t.FromEither),t.unsafeInsertAt=d.unsafeInsertAt,t.unsafeUpdateAt=function(n,e,r){return(0,t.isNonEmpty)(r)?d.unsafeUpdateAt(n,e,r):[]},t.unsafeDeleteAt=function(n,t){var e=t.slice();return e.splice(n,1),e},t.every=s.every,t.some=function(n){return function(t){return t.some(n)}},t.exists=t.some,t.intercalate=s.intercalate,t.Do=(0,t.of)(p.emptyRecord),t.bindTo=(0,l.bindTo)(t.Functor);var V=(0,l.let)(t.Functor);t.let=V,t.bind=(0,a.bind)(t.Chain),t.apS=(0,o.apS)(t.Apply),t.chain=t.flatMap,t.range=d.range,t.empty=[],t.cons=d.cons,t.snoc=d.snoc,t.prependToAll=t.prependAll,t.array={URI:t.URI,compact:t.compact,separate:t.separate,map:I,ap:S,of:t.of,chain:t.flatMap,filter:T,filterMap:x,partition:w,partitionMap:M,mapWithIndex:R,partitionMapWithIndex:E,partitionWithIndex:O,filterMapWithIndex:D,filterWithIndex:L,alt:C,zero:t.zero,unfold:t.unfold,reduce:k,foldMap:W,reduceRight:F,traverse:j,sequence:t.sequence,reduceWithIndex:P,foldMapWithIndex:A,reduceRightWithIndex:U,traverseWithIndex:q,extend:N,wither:Y,wilt:B}},18222:function(n,t){function e(n){return function(t,e){return n.chain(t,function(t){return n.map(e(t),function(){return t})})}}Object.defineProperty(t,"__esModule",{value:!0}),t.bind=t.tap=t.chainFirst=void 0,t.chainFirst=function(n){var t=e(n);return function(n){return function(e){return t(e,n)}}},t.tap=e,t.bind=function(n){return function(t,e){return function(r){return n.chain(r,function(r){return n.map(e(r),function(n){var e;return Object.assign({},r,((e={})[t]=n,e))})})}}}},71166:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tailRec=void 0,t.tailRec=function(n,t){for(var e=t(n);"Left"===e._tag;)e=t(e.left);return e.right}},87412:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.match=t.foldW=t.matchW=t.isRight=t.isLeft=t.fromOption=t.fromPredicate=t.FromEither=t.MonadThrow=t.throwError=t.ChainRec=t.Extend=t.extend=t.Alt=t.alt=t.altW=t.Bifunctor=t.mapLeft=t.bimap=t.Traversable=t.sequence=t.traverse=t.Foldable=t.reduceRight=t.foldMap=t.reduce=t.Monad=t.Chain=t.Applicative=t.Apply=t.ap=t.apW=t.Pointed=t.of=t.asUnit=t.as=t.Functor=t.map=t.getAltValidation=t.getApplicativeValidation=t.getWitherable=t.getFilterable=t.getCompactable=t.getSemigroup=t.getEq=t.getShow=t.URI=t.flatMap=t.right=t.left=void 0,t.chainFirstW=t.chainFirst=t.chain=t.chainW=t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex=t.traverseReadonlyNonEmptyArrayWithIndex=t.ApT=t.apSW=t.apS=t.bindW=t.bind=t.let=t.bindTo=t.Do=t.exists=t.elem=t.toError=t.toUnion=t.chainNullableK=t.fromNullableK=t.tryCatchK=t.tryCatch=t.fromNullable=t.orElse=t.orElseW=t.swap=t.filterOrElseW=t.filterOrElse=t.flatMapOption=t.flatMapNullable=t.liftOption=t.liftNullable=t.chainOptionKW=t.chainOptionK=t.fromOptionK=t.duplicate=t.flatten=t.flattenW=t.tap=t.apSecondW=t.apSecond=t.apFirstW=t.apFirst=t.flap=t.getOrElse=t.getOrElseW=t.fold=void 0,t.getValidation=t.getValidationMonoid=t.getValidationSemigroup=t.getApplyMonoid=t.getApplySemigroup=t.either=t.stringifyJSON=t.parseJSON=void 0;var o=e(91756),a=e(93145),c=u(e(18222)),f=e(71166),l=e(57756),p=e(14632),d=e(8762),s=u(e(5309)),h=e(4773),m=e(69706);t.left=s.left,t.right=s.right,t.flatMap=(0,p.dual)(2,function(n,e){return(0,t.isLeft)(n)?n:e(n.right)});var v=function(n,e){return(0,p.pipe)(n,(0,t.map)(e))},g=function(n,e){return(0,p.pipe)(n,(0,t.ap)(e))},y=function(n,e,r){return(0,p.pipe)(n,(0,t.reduce)(e,r))},b=function(n){return function(e,r){var i=(0,t.foldMap)(n);return(0,p.pipe)(e,i(r))}},_=function(n,e,r){return(0,p.pipe)(n,(0,t.reduceRight)(e,r))},I=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,p.pipe)(n,e(t))}},R=function(n,e,r){return(0,p.pipe)(n,(0,t.bimap)(e,r))},S=function(n,e){return(0,p.pipe)(n,(0,t.mapLeft)(e))},T=function(n,e){return(0,p.pipe)(n,(0,t.alt)(e))},x=function(n,e){return(0,p.pipe)(n,(0,t.extend)(e))},w=function(n,e){return(0,f.tailRec)(e(n),function(n){return(0,t.isLeft)(n)?(0,t.right)((0,t.left)(n.left)):(0,t.isLeft)(n.right)?(0,t.left)(e(n.right.left)):(0,t.right)((0,t.right)(n.right.right))})};t.URI="Either",t.getShow=function(n,e){return{show:function(r){return(0,t.isLeft)(r)?"left(".concat(n.show(r.left),")"):"right(".concat(e.show(r.right),")")}}},t.getEq=function(n,e){return{equals:function(r,i){return r===i||((0,t.isLeft)(r)?(0,t.isLeft)(i)&&n.equals(r.left,i.left):(0,t.isRight)(i)&&e.equals(r.right,i.right))}}},t.getSemigroup=function(n){return{concat:function(e,r){return(0,t.isLeft)(r)?e:(0,t.isLeft)(e)?r:(0,t.right)(n.concat(e.right,r.right))}}},t.getCompactable=function(n){var e=(0,t.left)(n.empty);return{URI:t.URI,_E:void 0,compact:function(n){return(0,t.isLeft)(n)?n:"None"===n.right._tag?e:(0,t.right)(n.right.value)},separate:function(n){return(0,t.isLeft)(n)?(0,h.separated)(n,n):(0,t.isLeft)(n.right)?(0,h.separated)((0,t.right)(n.right.left),e):(0,h.separated)(e,(0,t.right)(n.right.right))}}},t.getFilterable=function(n){var e=(0,t.left)(n.empty),r=(0,t.getCompactable)(n),i=r.compact,u=r.separate;return{URI:t.URI,_E:void 0,map:v,compact:i,separate:u,filter:function(n,r){return(0,t.isLeft)(n)?n:r(n.right)?n:e},filterMap:function(n,r){if((0,t.isLeft)(n))return n;var i=r(n.right);return"None"===i._tag?e:(0,t.right)(i.value)},partition:function(n,r){return(0,t.isLeft)(n)?(0,h.separated)(n,n):r(n.right)?(0,h.separated)(e,(0,t.right)(n.right)):(0,h.separated)((0,t.right)(n.right),e)},partitionMap:function(n,r){if((0,t.isLeft)(n))return(0,h.separated)(n,n);var i=r(n.right);return(0,t.isLeft)(i)?(0,h.separated)((0,t.right)(i.left),e):(0,h.separated)(e,(0,t.right)(i.right))}}},t.getWitherable=function(n){var e=(0,t.getFilterable)(n),r=(0,t.getCompactable)(n);return{URI:t.URI,_E:void 0,map:v,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:I,sequence:t.sequence,reduce:y,foldMap:b,reduceRight:_,wither:(0,m.witherDefault)(t.Traversable,r),wilt:(0,m.wiltDefault)(t.Traversable,r)}},t.getApplicativeValidation=function(n){return{URI:t.URI,_E:void 0,map:v,ap:function(e,r){return(0,t.isLeft)(e)?(0,t.isLeft)(r)?(0,t.left)(n.concat(e.left,r.left)):e:(0,t.isLeft)(r)?r:(0,t.right)(e.right(r.right))},of:t.of}},t.getAltValidation=function(n){return{URI:t.URI,_E:void 0,map:v,alt:function(e,r){if((0,t.isRight)(e))return e;var i=r();return(0,t.isLeft)(i)?(0,t.left)(n.concat(e.left,i.left)):i}}},t.map=function(n){return function(e){return(0,t.isLeft)(e)?e:(0,t.right)(n(e.right))}},t.Functor={URI:t.URI,map:v},t.as=(0,p.dual)(2,(0,d.as)(t.Functor)),t.asUnit=(0,d.asUnit)(t.Functor),t.of=t.right,t.Pointed={URI:t.URI,of:t.of},t.apW=function(n){return function(e){return(0,t.isLeft)(e)?e:(0,t.isLeft)(n)?n:(0,t.right)(e.right(n.right))}},t.ap=t.apW,t.Apply={URI:t.URI,map:v,ap:g},t.Applicative={URI:t.URI,map:v,ap:g,of:t.of},t.Chain={URI:t.URI,map:v,ap:g,chain:t.flatMap},t.Monad={URI:t.URI,map:v,ap:g,of:t.of,chain:t.flatMap},t.reduce=function(n,e){return function(r){return(0,t.isLeft)(r)?n:e(n,r.right)}},t.foldMap=function(n){return function(e){return function(r){return(0,t.isLeft)(r)?n.empty:e(r.right)}}},t.reduceRight=function(n,e){return function(r){return(0,t.isLeft)(r)?n:e(r.right,n)}},t.Foldable={URI:t.URI,reduce:y,foldMap:b,reduceRight:_},t.traverse=function(n){return function(e){return function(r){return(0,t.isLeft)(r)?n.of((0,t.left)(r.left)):n.map(e(r.right),t.right)}}},t.sequence=function(n){return function(e){return(0,t.isLeft)(e)?n.of((0,t.left)(e.left)):n.map(e.right,t.right)}},t.Traversable={URI:t.URI,map:v,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:t.sequence},t.bimap=function(n,e){return function(r){return(0,t.isLeft)(r)?(0,t.left)(n(r.left)):(0,t.right)(e(r.right))}},t.mapLeft=function(n){return function(e){return(0,t.isLeft)(e)?(0,t.left)(n(e.left)):e}},t.Bifunctor={URI:t.URI,bimap:R,mapLeft:S},t.altW=function(n){return function(e){return(0,t.isLeft)(e)?n():e}},t.alt=t.altW,t.Alt={URI:t.URI,map:v,alt:T},t.extend=function(n){return function(e){return(0,t.isLeft)(e)?e:(0,t.right)(n(e))}},t.Extend={URI:t.URI,map:v,extend:x},t.ChainRec={URI:t.URI,map:v,ap:g,chain:t.flatMap,chainRec:w},t.throwError=t.left,t.MonadThrow={URI:t.URI,map:v,ap:g,of:t.of,chain:t.flatMap,throwError:t.throwError},t.FromEither={URI:t.URI,fromEither:p.identity},t.fromPredicate=(0,l.fromPredicate)(t.FromEither),t.fromOption=(0,l.fromOption)(t.FromEither),t.isLeft=s.isLeft,t.isRight=s.isRight,t.matchW=function(n,e){return function(r){return(0,t.isLeft)(r)?n(r.left):e(r.right)}},t.foldW=t.matchW,t.match=t.matchW,t.fold=t.match,t.getOrElseW=function(n){return function(e){return(0,t.isLeft)(e)?n(e.left):e.right}},t.getOrElse=t.getOrElseW,t.flap=(0,d.flap)(t.Functor),t.apFirst=(0,a.apFirst)(t.Apply),t.apFirstW=t.apFirst,t.apSecond=(0,a.apSecond)(t.Apply),t.apSecondW=t.apSecond,t.tap=(0,p.dual)(2,c.tap(t.Chain)),t.flattenW=(0,t.flatMap)(p.identity),t.flatten=t.flattenW,t.duplicate=(0,t.extend)(p.identity),t.fromOptionK=(0,l.fromOptionK)(t.FromEither),t.chainOptionK=(0,l.chainOptionK)(t.FromEither,t.Chain),t.chainOptionKW=t.chainOptionK;var M={fromEither:t.FromEither.fromEither};t.liftNullable=s.liftNullable(M),t.liftOption=s.liftOption(M);var O={flatMap:t.flatMap};t.flatMapNullable=s.flatMapNullable(M,O),t.flatMapOption=s.flatMapOption(M,O),t.filterOrElse=(0,l.filterOrElse)(t.FromEither,t.Chain),t.filterOrElseW=t.filterOrElse,t.swap=function(n){return(0,t.isLeft)(n)?(0,t.right)(n.left):(0,t.left)(n.right)},t.orElseW=function(n){return function(e){return(0,t.isLeft)(e)?n(e.left):e}},t.orElse=t.orElseW,t.fromNullable=function(n){return function(e){return null==e?(0,t.left)(n):(0,t.right)(e)}},t.tryCatch=function(n,e){try{return(0,t.right)(n())}catch(n){return(0,t.left)(e(n))}},t.tryCatchK=function(n,e){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return(0,t.tryCatch)(function(){return n.apply(void 0,r)},e)}},t.fromNullableK=function(n){var e=(0,t.fromNullable)(n);return function(n){return(0,p.flow)(n,e)}},t.chainNullableK=function(n){var e=(0,t.fromNullableK)(n);return function(n){return(0,t.flatMap)(e(n))}},t.toUnion=(0,t.foldW)(p.identity,p.identity),t.toError=function(n){return n instanceof Error?n:Error(String(n))},t.elem=function n(e){return function(r,i){if(void 0===i){var u=n(e);return function(n){return u(r,n)}}return!(0,t.isLeft)(i)&&e.equals(r,i.right)}},t.exists=function(n){return function(e){return!(0,t.isLeft)(e)&&n(e.right)}},t.Do=(0,t.of)(s.emptyRecord),t.bindTo=(0,d.bindTo)(t.Functor);var E=(0,d.let)(t.Functor);t.let=E,t.bind=c.bind(t.Chain),t.bindW=t.bind,t.apS=(0,a.apS)(t.Apply),t.apSW=t.apS,t.ApT=(0,t.of)(s.emptyReadonlyArray),t.traverseReadonlyNonEmptyArrayWithIndex=function(n){return function(e){var r=n(0,s.head(e));if((0,t.isLeft)(r))return r;for(var i=[r.right],u=1;u<e.length;u++){var o=n(u,e[u]);if((0,t.isLeft)(o))return o;i.push(o.right)}return(0,t.right)(i)}},t.traverseReadonlyArrayWithIndex=function(n){var e=(0,t.traverseReadonlyNonEmptyArrayWithIndex)(n);return function(n){return s.isNonEmpty(n)?e(n):t.ApT}},t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex,t.traverseArray=function(n){return(0,t.traverseReadonlyArrayWithIndex)(function(t,e){return n(e)})},t.sequenceArray=(0,t.traverseArray)(p.identity),t.chainW=t.flatMap,t.chain=t.flatMap,t.chainFirst=t.tap,t.chainFirstW=t.tap,t.parseJSON=function(n,e){return(0,t.tryCatch)(function(){return JSON.parse(n)},e)},t.stringifyJSON=function(n,e){return(0,t.tryCatch)(function(){var t=JSON.stringify(n);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},e)},t.either={URI:t.URI,map:v,of:t.of,ap:g,chain:t.flatMap,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:t.sequence,bimap:R,mapLeft:S,alt:T,extend:x,chainRec:w,throwError:t.throwError},t.getApplySemigroup=(0,a.getApplySemigroup)(t.Apply),t.getApplyMonoid=(0,o.getApplicativeMonoid)(t.Applicative),t.getValidationSemigroup=function(n,e){return(0,a.getApplySemigroup)((0,t.getApplicativeValidation)(n))(e)},t.getValidationMonoid=function(n,e){return(0,o.getApplicativeMonoid)((0,t.getApplicativeValidation)(n))(e)},t.getValidation=function(n){var e=(0,t.getApplicativeValidation)(n).ap,r=(0,t.getAltValidation)(n).alt;return{URI:t.URI,_E:void 0,map:v,of:t.of,chain:t.flatMap,bimap:R,mapLeft:S,reduce:y,foldMap:b,reduceRight:_,extend:x,traverse:I,sequence:t.sequence,chainRec:w,throwError:t.throwError,ap:e,alt:r}}},8190:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.eqDate=t.eqNumber=t.eqString=t.eqBoolean=t.eq=t.strictEqual=t.getStructEq=t.getTupleEq=t.Contravariant=t.getMonoid=t.getSemigroup=t.eqStrict=t.URI=t.contramap=t.tuple=t.struct=t.fromEquals=void 0;var r=e(14632);t.fromEquals=function(n){return{equals:function(t,e){return t===e||n(t,e)}}},t.struct=function(n){return(0,t.fromEquals)(function(t,e){for(var r in n)if(!n[r].equals(t[r],e[r]))return!1;return!0})},t.tuple=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return(0,t.fromEquals)(function(t,e){return n.every(function(n,r){return n.equals(t[r],e[r])})})},t.contramap=function(n){return function(e){return(0,t.fromEquals)(function(t,r){return e.equals(n(t),n(r))})}},t.URI="Eq",t.eqStrict={equals:function(n,t){return n===t}};var i={equals:function(){return!0}};t.getSemigroup=function(){return{concat:function(n,e){return(0,t.fromEquals)(function(t,r){return n.equals(t,r)&&e.equals(t,r)})}}},t.getMonoid=function(){return{concat:(0,t.getSemigroup)().concat,empty:i}},t.Contravariant={URI:t.URI,contramap:function(n,e){return(0,r.pipe)(n,(0,t.contramap)(e))}},t.getTupleEq=t.tuple,t.getStructEq=t.struct,t.strictEqual=t.eqStrict.equals,t.eq=t.Contravariant,t.eqBoolean=t.eqStrict,t.eqString=t.eqStrict,t.eqNumber=t.eqStrict,t.eqDate={equals:function(n,t){return n.valueOf()===t.valueOf()}}},57756:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.tapEither=t.filterOrElse=t.chainFirstEitherK=t.chainEitherK=t.fromEitherK=t.chainOptionK=t.fromOptionK=t.fromPredicate=t.fromOption=void 0;var o=e(18222),a=e(14632),c=u(e(5309));function f(n){return function(t){return function(e){return n.fromEither(c.isNone(e)?c.left(t()):c.right(e.value))}}}function l(n){var t=f(n);return function(n){var e=t(n);return function(n){return(0,a.flow)(n,e)}}}function p(n){return function(t){return(0,a.flow)(t,n.fromEither)}}function d(n,t){var e=p(n),r=(0,o.tap)(t);return function(n,t){return r(n,e(t))}}t.fromOption=f,t.fromPredicate=function(n){return function(t,e){return function(r){return n.fromEither(t(r)?c.right(r):c.left(e(r)))}}},t.fromOptionK=l,t.chainOptionK=function(n,t){var e=l(n);return function(n){var r=e(n);return function(n){return function(e){return t.chain(e,r(n))}}}},t.fromEitherK=p,t.chainEitherK=function(n,t){var e=p(n);return function(n){return function(r){return t.chain(r,e(n))}}},t.chainFirstEitherK=function(n,t){var e=d(n,t);return function(n){return function(t){return e(t,n)}}},t.filterOrElse=function(n,t){return function(e,r){return function(i){return t.chain(i,function(t){return n.fromEither(e(t)?c.right(t):c.left(r(t)))})}}},t.tapEither=d},8762:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.asUnit=t.as=t.getFunctorComposition=t.let=t.bindTo=t.flap=t.map=void 0;var r=e(14632);function i(n,t){return function(e){return function(r){return n.map(r,function(n){return t.map(n,e)})}}}function u(n){return function(t,e){return n.map(t,function(){return e})}}t.map=i,t.flap=function(n){return function(t){return function(e){return n.map(e,function(n){return n(t)})}}},t.bindTo=function(n){return function(t){return function(e){return n.map(e,function(n){var e;return(e={})[t]=n,e})}}},t.let=function(n){return function(t,e){return function(r){return n.map(r,function(n){var r;return Object.assign({},n,((r={})[t]=e(n),r))})}}},t.getFunctorComposition=function(n,t){var e=i(n,t);return{map:function(n,t){return(0,r.pipe)(n,e(t))}}},t.as=u,t.asUnit=function(n){var t=u(n);return function(n){return t(n,void 0)}}},73540:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=t.endo=t.filterSecond=t.filterFirst=t.reverse=void 0,t.reverse=function(n){return{concat:function(t,e){return n.concat(e,t)}}},t.filterFirst=function(n){return function(t){return{concat:function(e,r){return n(e)?t.concat(e,r):r}}}},t.filterSecond=function(n){return function(t){return{concat:function(e,r){return n(r)?t.concat(e,r):e}}}},t.endo=function(n){return function(t){return{concat:function(e,r){return t.concat(n(e),n(r))}}}},t.concatAll=function(n){return function(t){return function(e){return e.reduce(function(t,e){return n.concat(t,e)},t)}}}},7219:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t},o=this&&this.__spreadArray||function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.mapWithIndex=t.map=t.flatten=t.duplicate=t.extend=t.flatMap=t.ap=t.alt=t.altW=t.chunksOf=t.splitAt=t.chop=t.chainWithIndex=t.foldMap=t.foldMapWithIndex=t.intersperse=t.prependAll=t.unzip=t.zip=t.zipWith=t.of=t.copy=t.modifyAt=t.updateAt=t.insertAt=t.sort=t.groupBy=t.group=t.reverse=t.concat=t.concatW=t.unappend=t.unprepend=t.range=t.replicate=t.makeBy=t.fromArray=t.fromReadonlyNonEmptyArray=t.rotate=t.union=t.sortBy=t.uniq=t.unsafeUpdateAt=t.unsafeInsertAt=t.append=t.appendW=t.prepend=t.prependW=t.isOutOfBound=t.isNonEmpty=void 0,t.chain=t.intercalate=t.updateLast=t.modifyLast=t.updateHead=t.modifyHead=t.matchRight=t.matchLeft=t.concatAll=t.max=t.min=t.init=t.last=t.tail=t.head=t.apS=t.bind=t.let=t.bindTo=t.Do=t.Comonad=t.Alt=t.TraversableWithIndex=t.Traversable=t.FoldableWithIndex=t.Foldable=t.Monad=t.chainFirst=t.Chain=t.Applicative=t.apSecond=t.apFirst=t.Apply=t.FunctorWithIndex=t.Pointed=t.flap=t.Functor=t.getUnionSemigroup=t.getEq=t.getSemigroup=t.getShow=t.URI=t.extract=t.traverseWithIndex=t.sequence=t.traverse=t.reduceRightWithIndex=t.reduceRight=t.reduceWithIndex=t.reduce=void 0,t.nonEmptyArray=t.fold=t.prependToAll=t.snoc=t.cons=t.unsnoc=t.uncons=t.filterWithIndex=t.filter=t.groupSort=void 0;var a=e(93145),c=e(18222),f=e(14632),l=e(8762),p=u(e(5309)),d=e(83235),s=u(e(84612));function h(n){return function(t){return t.concat(n)}}function m(n,t){return t?n.concat(t):function(t){return t.concat(n)}}function v(n){return function(t){var e=t.length;if(0===e)return[];for(var r=[],i=t[0],u=[i],o=1;o<e;o++){var a=t[o];n.equals(a,i)?u.push(a):(r.push(u),u=[i=a])}return r.push(u),r}}t.isNonEmpty=function(n){return n.length>0},t.isOutOfBound=function(n,t){return n<0||n>=t.length},t.prependW=function(n){return function(t){return o([n],t,!0)}},t.prepend=t.prependW,t.appendW=function(n){return function(t){return o(o([],t,!0),[n],!1)}},t.append=t.appendW,t.unsafeInsertAt=function(n,e,r){if((0,t.isNonEmpty)(r)){var i=(0,t.fromReadonlyNonEmptyArray)(r);return i.splice(n,0,e),i}return[e]},t.unsafeUpdateAt=function(n,e,r){var i=(0,t.fromReadonlyNonEmptyArray)(r);return i[n]=e,i},t.uniq=function(n){return function(e){if(1===e.length)return(0,t.copy)(e);for(var r=[(0,t.head)(e)],i=(0,t.tail)(e),u=function(t){r.every(function(e){return!n.equals(e,t)})&&r.push(t)},o=0;o<i.length;o++)u(i[o]);return r}},t.sortBy=function(n){if((0,t.isNonEmpty)(n)){var e=(0,d.getMonoid)();return(0,t.sort)(n.reduce(e.concat,e.empty))}return t.copy},t.union=function(n){var e=(0,t.uniq)(n);return function(n){return function(t){return e((0,f.pipe)(t,m(n)))}}},t.rotate=function(n){return function(e){var r=e.length,i=Math.round(n)%r;if((0,t.isOutOfBound)(Math.abs(i),e)||0===i)return(0,t.copy)(e);if(!(i<0))return(0,t.rotate)(i-r)(e);var u=(0,t.splitAt)(-i)(e),o=u[0],a=u[1];return(0,f.pipe)(a,m(o))}},t.fromReadonlyNonEmptyArray=p.fromReadonlyNonEmptyArray,t.fromArray=function(n){return(0,t.isNonEmpty)(n)?p.some(n):p.none},t.makeBy=function(n){return function(t){for(var e=Math.max(0,Math.floor(t)),r=[n(0)],i=1;i<e;i++)r.push(n(i));return r}},t.replicate=function(n){return(0,t.makeBy)(function(){return n})},t.range=function(n,e){return n<=e?(0,t.makeBy)(function(t){return n+t})(e-n+1):[n]},t.unprepend=function(n){return[(0,t.head)(n),(0,t.tail)(n)]},t.unappend=function(n){return[(0,t.init)(n),(0,t.last)(n)]},t.concatW=h,t.concat=m,t.reverse=function(n){return o([(0,t.last)(n)],n.slice(0,-1).reverse(),!0)},t.group=v,t.groupBy=function(n){return function(t){for(var e={},r=0;r<t.length;r++){var i=t[r],u=n(i);p.has.call(e,u)?e[u].push(i):e[u]=[i]}return e}},t.sort=function(n){return function(t){return t.slice().sort(n.compare)}},t.insertAt=function(n,e){return function(r){return n<0||n>r.length?p.none:p.some((0,t.unsafeInsertAt)(n,e,r))}},t.updateAt=function(n,e){return(0,t.modifyAt)(n,function(){return e})},t.modifyAt=function(n,e){return function(r){return(0,t.isOutOfBound)(n,r)?p.none:p.some((0,t.unsafeUpdateAt)(n,e(r[n]),r))}},t.copy=t.fromReadonlyNonEmptyArray,t.of=function(n){return[n]},t.zipWith=function(n,t,e){for(var r=[e(n[0],t[0])],i=Math.min(n.length,t.length),u=1;u<i;u++)r[u]=e(n[u],t[u]);return r},t.zip=function n(e,r){return void 0===r?function(t){return n(t,e)}:(0,t.zipWith)(e,r,function(n,t){return[n,t]})},t.unzip=function(n){for(var t=[n[0][0]],e=[n[0][1]],r=1;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},t.prependAll=function(n){return function(t){for(var e=[n,t[0]],r=1;r<t.length;r++)e.push(n,t[r]);return e}},t.intersperse=function(n){return function(e){var r=(0,t.tail)(e);return(0,t.isNonEmpty)(r)?(0,f.pipe)(r,(0,t.prependAll)(n),(0,t.prepend)((0,t.head)(e))):(0,t.copy)(e)}},t.foldMapWithIndex=s.foldMapWithIndex,t.foldMap=s.foldMap,t.chainWithIndex=function(n){return function(e){for(var r=(0,t.fromReadonlyNonEmptyArray)(n(0,(0,t.head)(e))),i=1;i<e.length;i++)r.push.apply(r,n(i,e[i]));return r}},t.chop=function(n){return function(e){for(var r=n(e),i=r[0],u=r[1],o=[i],a=u;(0,t.isNonEmpty)(a);){var c=n(a),f=c[0],l=c[1];o.push(f),a=l}return o}},t.splitAt=function(n){return function(e){var r=Math.max(1,n);return r>=e.length?[(0,t.copy)(e),[]]:[(0,f.pipe)(e.slice(1,r),(0,t.prepend)((0,t.head)(e))),e.slice(r)]}},t.chunksOf=function(n){return(0,t.chop)((0,t.splitAt)(n))};var g=function(n,e){return(0,f.pipe)(n,(0,t.map)(e))},y=function(n,e){return(0,f.pipe)(n,(0,t.mapWithIndex)(e))},b=function(n,e){return(0,f.pipe)(n,(0,t.ap)(e))},_=function(n,e){return(0,f.pipe)(n,(0,t.extend)(e))},I=function(n,e,r){return(0,f.pipe)(n,(0,t.reduce)(e,r))},R=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},S=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceRight)(e,r))},T=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},x=function(n,e){return(0,f.pipe)(n,(0,t.alt)(e))},w=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceWithIndex)(e,r))},M=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},O=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceRightWithIndex)(e,r))},E=function(n){var e=(0,t.traverseWithIndex)(n);return function(n,t){return(0,f.pipe)(n,e(t))}};t.altW=function(n){return function(t){return(0,f.pipe)(t,h(n()))}},t.alt=t.altW,t.ap=function(n){return(0,t.flatMap)(function(e){return(0,f.pipe)(n,(0,t.map)(e))})},t.flatMap=(0,f.dual)(2,function(n,e){return(0,f.pipe)(n,(0,t.chainWithIndex)(function(n,t){return e(t,n)}))}),t.extend=function(n){return function(e){for(var r=(0,t.tail)(e),i=[n(e)];(0,t.isNonEmpty)(r);)i.push(n(r)),r=(0,t.tail)(r);return i}},t.duplicate=(0,t.extend)(f.identity),t.flatten=(0,t.flatMap)(f.identity),t.map=function(n){return(0,t.mapWithIndex)(function(t,e){return n(e)})},t.mapWithIndex=function(n){return function(e){for(var r=[n(0,(0,t.head)(e))],i=1;i<e.length;i++)r.push(n(i,e[i]));return r}},t.reduce=s.reduce,t.reduceWithIndex=s.reduceWithIndex,t.reduceRight=s.reduceRight,t.reduceRightWithIndex=s.reduceRightWithIndex,t.traverse=function(n){var e=(0,t.traverseWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}},t.sequence=function(n){return(0,t.traverseWithIndex)(n)(function(n,t){return t})},t.traverseWithIndex=function(n){return function(e){return function(r){for(var i=n.map(e(0,(0,t.head)(r)),t.of),u=1;u<r.length;u++)i=n.ap(n.map(i,function(n){return function(e){return(0,f.pipe)(n,(0,t.append)(e))}}),e(u,r[u]));return i}}},t.extract=s.head,t.URI="NonEmptyArray",t.getShow=s.getShow,t.getSemigroup=function(){return{concat:m}},t.getEq=s.getEq,t.getUnionSemigroup=function(n){var e=(0,t.union)(n);return{concat:function(n,t){return e(t)(n)}}},t.Functor={URI:t.URI,map:g},t.flap=(0,l.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:g,mapWithIndex:y},t.Apply={URI:t.URI,map:g,ap:b},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:g,ap:b,of:t.of},t.Chain={URI:t.URI,map:g,ap:b,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:g,ap:b,of:t.of,chain:t.flatMap},t.Foldable={URI:t.URI,reduce:I,foldMap:R,reduceRight:S},t.FoldableWithIndex={URI:t.URI,reduce:I,foldMap:R,reduceRight:S,reduceWithIndex:w,foldMapWithIndex:M,reduceRightWithIndex:O},t.Traversable={URI:t.URI,map:g,reduce:I,foldMap:R,reduceRight:S,traverse:T,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:g,mapWithIndex:y,reduce:I,foldMap:R,reduceRight:S,traverse:T,sequence:t.sequence,reduceWithIndex:w,foldMapWithIndex:M,reduceRightWithIndex:O,traverseWithIndex:E},t.Alt={URI:t.URI,map:g,alt:x},t.Comonad={URI:t.URI,map:g,extend:_,extract:t.extract},t.Do=(0,t.of)(p.emptyRecord),t.bindTo=(0,l.bindTo)(t.Functor);var C=(0,l.let)(t.Functor);t.let=C,t.bind=(0,c.bind)(t.Chain),t.apS=(0,a.apS)(t.Apply),t.head=s.head,t.tail=function(n){return n.slice(1)},t.last=s.last,t.init=function(n){return n.slice(0,-1)},t.min=s.min,t.max=s.max,t.concatAll=function(n){return function(t){return t.reduce(n.concat)}},t.matchLeft=function(n){return function(e){return n((0,t.head)(e),(0,t.tail)(e))}},t.matchRight=function(n){return function(e){return n((0,t.init)(e),(0,t.last)(e))}},t.modifyHead=function(n){return function(e){return o([n((0,t.head)(e))],(0,t.tail)(e),!0)}},t.updateHead=function(n){return(0,t.modifyHead)(function(){return n})},t.modifyLast=function(n){return function(e){return(0,f.pipe)((0,t.init)(e),(0,t.append)(n((0,t.last)(e))))}},t.updateLast=function(n){return(0,t.modifyLast)(function(){return n})},t.intercalate=s.intercalate,t.chain=t.flatMap,t.groupSort=function(n){var e=(0,t.sort)(n),r=v(n);return function(n){return(0,t.isNonEmpty)(n)?r(e(n)):[]}},t.filter=function(n){return(0,t.filterWithIndex)(function(t,e){return n(e)})},t.filterWithIndex=function(n){return function(e){return(0,t.fromArray)(e.filter(function(t,e){return n(e,t)}))}},t.uncons=t.unprepend,t.unsnoc=t.unappend,t.cons=function(n,e){return void 0===e?(0,t.prepend)(n):(0,f.pipe)(e,(0,t.prepend)(n))},t.snoc=function(n,e){return(0,f.pipe)(n,(0,t.append)(e))},t.prependToAll=t.prependAll,t.fold=s.concatAll,t.nonEmptyArray={URI:t.URI,of:t.of,map:g,mapWithIndex:y,ap:b,chain:t.flatMap,extend:_,extract:t.extract,reduce:I,foldMap:R,reduceRight:S,traverse:T,sequence:t.sequence,reduceWithIndex:w,foldMapWithIndex:M,reduceRightWithIndex:O,traverseWithIndex:E,alt:x}},72720:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Witherable=t.wilt=t.wither=t.Traversable=t.sequence=t.traverse=t.Filterable=t.partitionMap=t.partition=t.filterMap=t.filter=t.Compactable=t.separate=t.compact=t.Extend=t.extend=t.Alternative=t.guard=t.Zero=t.zero=t.Alt=t.alt=t.altW=t.orElse=t.Foldable=t.reduceRight=t.foldMap=t.reduce=t.Monad=t.Chain=t.flatMap=t.Applicative=t.Apply=t.ap=t.Pointed=t.of=t.asUnit=t.as=t.Functor=t.map=t.getMonoid=t.getOrd=t.getEq=t.getShow=t.URI=t.getRight=t.getLeft=t.fromPredicate=t.some=t.none=void 0,t.getFirstMonoid=t.getApplyMonoid=t.getApplySemigroup=t.option=t.mapNullable=t.getRefinement=t.chainFirst=t.chain=t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex=t.traverseReadonlyNonEmptyArrayWithIndex=t.ApT=t.apS=t.bind=t.let=t.bindTo=t.Do=t.exists=t.elem=t.toUndefined=t.toNullable=t.chainNullableK=t.fromNullableK=t.tryCatchK=t.tryCatch=t.fromNullable=t.chainFirstEitherK=t.chainEitherK=t.fromEitherK=t.duplicate=t.tapEither=t.tap=t.flatten=t.apSecond=t.apFirst=t.flap=t.getOrElse=t.getOrElseW=t.fold=t.match=t.foldW=t.matchW=t.isNone=t.isSome=t.FromEither=t.fromEither=t.MonadThrow=t.throwError=void 0,t.getLastMonoid=void 0;var o=e(91756),a=e(93145),c=u(e(18222)),f=e(57756),l=e(14632),p=e(8762),d=u(e(5309)),s=e(87612),h=e(98744),m=e(4773),v=e(69706),g=e(3899);t.none=d.none,t.some=d.some,t.fromPredicate=function(n){return function(e){return n(e)?(0,t.some)(e):t.none}},t.getLeft=function(n){return"Right"===n._tag?t.none:(0,t.some)(n.left)},t.getRight=function(n){return"Left"===n._tag?t.none:(0,t.some)(n.right)};var y=function(n,e){return(0,l.pipe)(n,(0,t.map)(e))},b=function(n,e){return(0,l.pipe)(n,(0,t.ap)(e))},_=function(n,e,r){return(0,l.pipe)(n,(0,t.reduce)(e,r))},I=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},R=function(n,e,r){return(0,l.pipe)(n,(0,t.reduceRight)(e,r))},S=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},T=function(n,e){return(0,l.pipe)(n,(0,t.alt)(e))},x=function(n,e){return(0,l.pipe)(n,(0,t.filter)(e))},w=function(n,e){return(0,l.pipe)(n,(0,t.filterMap)(e))},M=function(n,e){return(0,l.pipe)(n,(0,t.extend)(e))},O=function(n,e){return(0,l.pipe)(n,(0,t.partition)(e))},E=function(n,e){return(0,l.pipe)(n,(0,t.partitionMap)(e))};t.URI="Option",t.getShow=function(n){return{show:function(e){return(0,t.isNone)(e)?"none":"some(".concat(n.show(e.value),")")}}},t.getEq=function(n){return{equals:function(e,r){return e===r||((0,t.isNone)(e)?(0,t.isNone)(r):!(0,t.isNone)(r)&&n.equals(e.value,r.value))}}},t.getOrd=function(n){return{equals:(0,t.getEq)(n).equals,compare:function(e,r){return e===r?0:(0,t.isSome)(e)?(0,t.isSome)(r)?n.compare(e.value,r.value):1:-1}}},t.getMonoid=function(n){return{concat:function(e,r){return(0,t.isNone)(e)?r:(0,t.isNone)(r)?e:(0,t.some)(n.concat(e.value,r.value))},empty:t.none}},t.map=function(n){return function(e){return(0,t.isNone)(e)?t.none:(0,t.some)(n(e.value))}},t.Functor={URI:t.URI,map:y},t.as=(0,l.dual)(2,(0,p.as)(t.Functor)),t.asUnit=(0,p.asUnit)(t.Functor),t.of=t.some,t.Pointed={URI:t.URI,of:t.of},t.ap=function(n){return function(e){return(0,t.isNone)(e)?t.none:(0,t.isNone)(n)?t.none:(0,t.some)(e.value(n.value))}},t.Apply={URI:t.URI,map:y,ap:b},t.Applicative={URI:t.URI,map:y,ap:b,of:t.of},t.flatMap=(0,l.dual)(2,function(n,e){return(0,t.isNone)(n)?t.none:e(n.value)}),t.Chain={URI:t.URI,map:y,ap:b,chain:t.flatMap},t.Monad={URI:t.URI,map:y,ap:b,of:t.of,chain:t.flatMap},t.reduce=function(n,e){return function(r){return(0,t.isNone)(r)?n:e(n,r.value)}},t.foldMap=function(n){return function(e){return function(r){return(0,t.isNone)(r)?n.empty:e(r.value)}}},t.reduceRight=function(n,e){return function(r){return(0,t.isNone)(r)?n:e(r.value,n)}},t.Foldable={URI:t.URI,reduce:_,foldMap:I,reduceRight:R},t.orElse=(0,l.dual)(2,function(n,e){return(0,t.isNone)(n)?e():n}),t.altW=t.orElse,t.alt=t.orElse,t.Alt={URI:t.URI,map:y,alt:T},t.zero=function(){return t.none},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,g.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:y,ap:b,of:t.of,alt:T,zero:t.zero},t.extend=function(n){return function(e){return(0,t.isNone)(e)?t.none:(0,t.some)(n(e))}},t.Extend={URI:t.URI,map:y,extend:M},t.compact=(0,t.flatMap)(l.identity);var C=(0,m.separated)(t.none,t.none);t.separate=function(n){return(0,t.isNone)(n)?C:(0,m.separated)((0,t.getLeft)(n.value),(0,t.getRight)(n.value))},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.filter=function(n){return function(e){return(0,t.isNone)(e)?t.none:n(e.value)?e:t.none}},t.filterMap=function(n){return function(e){return(0,t.isNone)(e)?t.none:n(e.value)}},t.partition=function(n){return function(t){return(0,m.separated)(x(t,(0,s.not)(n)),x(t,n))}},t.partitionMap=function(n){return(0,l.flow)((0,t.map)(n),t.separate)},t.Filterable={URI:t.URI,map:y,compact:t.compact,separate:t.separate,filter:x,filterMap:w,partition:O,partitionMap:E},t.traverse=function(n){return function(e){return function(r){return(0,t.isNone)(r)?n.of(t.none):n.map(e(r.value),t.some)}}},t.sequence=function(n){return function(e){return(0,t.isNone)(e)?n.of(t.none):n.map(e.value,t.some)}},t.Traversable={URI:t.URI,map:y,reduce:_,foldMap:I,reduceRight:R,traverse:S,sequence:t.sequence};var k=(0,v.witherDefault)(t.Traversable,t.Compactable),W=(0,v.wiltDefault)(t.Traversable,t.Compactable);t.wither=function(n){var t=k(n);return function(n){return function(e){return t(e,n)}}},t.wilt=function(n){var t=W(n);return function(n){return function(e){return t(e,n)}}},t.Witherable={URI:t.URI,map:y,reduce:_,foldMap:I,reduceRight:R,traverse:S,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:x,filterMap:w,partition:O,partitionMap:E,wither:k,wilt:W},t.throwError=function(){return t.none},t.MonadThrow={URI:t.URI,map:y,ap:b,of:t.of,chain:t.flatMap,throwError:t.throwError},t.fromEither=t.getRight,t.FromEither={URI:t.URI,fromEither:t.fromEither},t.isSome=d.isSome,t.isNone=function(n){return"None"===n._tag},t.matchW=function(n,e){return function(r){return(0,t.isNone)(r)?n():e(r.value)}},t.foldW=t.matchW,t.match=t.matchW,t.fold=t.match,t.getOrElseW=function(n){return function(e){return(0,t.isNone)(e)?n():e.value}},t.getOrElse=t.getOrElseW,t.flap=(0,p.flap)(t.Functor),t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.flatten=t.compact,t.tap=(0,l.dual)(2,c.tap(t.Chain)),t.tapEither=(0,l.dual)(2,(0,f.tapEither)(t.FromEither,t.Chain)),t.duplicate=(0,t.extend)(l.identity),t.fromEitherK=(0,f.fromEitherK)(t.FromEither),t.chainEitherK=(0,f.chainEitherK)(t.FromEither,t.Chain),t.chainFirstEitherK=t.tapEither,t.fromNullable=function(n){return null==n?t.none:(0,t.some)(n)},t.tryCatch=function(n){try{return(0,t.some)(n())}catch(n){return t.none}},t.tryCatchK=function(n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0,t.tryCatch)(function(){return n.apply(void 0,e)})}},t.fromNullableK=function(n){return(0,l.flow)(n,t.fromNullable)},t.chainNullableK=function(n){return function(e){return(0,t.isNone)(e)?t.none:(0,t.fromNullable)(n(e.value))}},t.toNullable=(0,t.match)(l.constNull,l.identity),t.toUndefined=(0,t.match)(l.constUndefined,l.identity),t.elem=function n(e){return function(r,i){if(void 0===i){var u=n(e);return function(n){return u(r,n)}}return!(0,t.isNone)(i)&&e.equals(r,i.value)}},t.exists=function(n){return function(e){return!(0,t.isNone)(e)&&n(e.value)}},t.Do=(0,t.of)(d.emptyRecord),t.bindTo=(0,p.bindTo)(t.Functor);var F=(0,p.let)(t.Functor);t.let=F,t.bind=c.bind(t.Chain),t.apS=(0,a.apS)(t.Apply),t.ApT=(0,t.of)(d.emptyReadonlyArray),t.traverseReadonlyNonEmptyArrayWithIndex=function(n){return function(e){var r=n(0,d.head(e));if((0,t.isNone)(r))return t.none;for(var i=[r.value],u=1;u<e.length;u++){var o=n(u,e[u]);if((0,t.isNone)(o))return t.none;i.push(o.value)}return(0,t.some)(i)}},t.traverseReadonlyArrayWithIndex=function(n){var e=(0,t.traverseReadonlyNonEmptyArrayWithIndex)(n);return function(n){return d.isNonEmpty(n)?e(n):t.ApT}},t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex,t.traverseArray=function(n){return(0,t.traverseReadonlyArrayWithIndex)(function(t,e){return n(e)})},t.sequenceArray=(0,t.traverseArray)(l.identity),t.chain=t.flatMap,t.chainFirst=t.tap,t.getRefinement=function(n){return function(e){return(0,t.isSome)(n(e))}},t.mapNullable=t.chainNullableK,t.option={URI:t.URI,map:y,of:t.of,ap:b,chain:t.flatMap,reduce:_,foldMap:I,reduceRight:R,traverse:S,sequence:t.sequence,zero:t.zero,alt:T,extend:M,compact:t.compact,separate:t.separate,filter:x,filterMap:w,partition:O,partitionMap:E,wither:k,wilt:W,throwError:t.throwError},t.getApplySemigroup=(0,a.getApplySemigroup)(t.Apply),t.getApplyMonoid=(0,o.getApplicativeMonoid)(t.Applicative),t.getFirstMonoid=function(){return(0,t.getMonoid)((0,h.first)())},t.getLastMonoid=function(){return(0,t.getMonoid)((0,h.last)())}},83235:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ordDate=t.ordNumber=t.ordString=t.ordBoolean=t.ord=t.getDualOrd=t.getTupleOrd=t.between=t.clamp=t.max=t.min=t.geq=t.leq=t.gt=t.lt=t.equals=t.trivial=t.Contravariant=t.getMonoid=t.getSemigroup=t.URI=t.contramap=t.reverse=t.tuple=t.fromCompare=t.equalsDefault=void 0;var r=e(8190),i=e(14632);t.equalsDefault=function(n){return function(t,e){return t===e||0===n(t,e)}},t.fromCompare=function(n){return{equals:(0,t.equalsDefault)(n),compare:function(t,e){return t===e?0:n(t,e)}}},t.tuple=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return(0,t.fromCompare)(function(t,e){for(var r=0;r<n.length-1;r++){var i=n[r].compare(t[r],e[r]);if(0!==i)return i}return n[r].compare(t[r],e[r])})},t.reverse=function(n){return(0,t.fromCompare)(function(t,e){return n.compare(e,t)})},t.contramap=function(n){return function(e){return(0,t.fromCompare)(function(t,r){return e.compare(n(t),n(r))})}},t.URI="Ord",t.getSemigroup=function(){return{concat:function(n,e){return(0,t.fromCompare)(function(t,r){var i=n.compare(t,r);return 0!==i?i:e.compare(t,r)})}}},t.getMonoid=function(){return{concat:(0,t.getSemigroup)().concat,empty:(0,t.fromCompare)(function(){return 0})}},t.Contravariant={URI:t.URI,contramap:function(n,e){return(0,i.pipe)(n,(0,t.contramap)(e))}},t.trivial={equals:i.constTrue,compare:(0,i.constant)(0)},t.equals=function(n){return function(t){return function(e){return e===t||0===n.compare(e,t)}}},t.lt=function(n){return function(t,e){return -1===n.compare(t,e)}},t.gt=function(n){return function(t,e){return 1===n.compare(t,e)}},t.leq=function(n){return function(t,e){return 1!==n.compare(t,e)}},t.geq=function(n){return function(t,e){return -1!==n.compare(t,e)}},t.min=function(n){return function(t,e){return t===e||1>n.compare(t,e)?t:e}},t.max=function(n){return function(t,e){return t===e||n.compare(t,e)>-1?t:e}},t.clamp=function(n){var e=(0,t.min)(n),r=(0,t.max)(n);return function(n,t){return function(i){return r(e(i,t),n)}}},t.between=function(n){var e=(0,t.lt)(n),r=(0,t.gt)(n);return function(n,t){return function(i){return!(e(i,n)||r(i,t))}}},t.getTupleOrd=t.tuple,t.getDualOrd=t.reverse,t.ord=t.Contravariant;var u={equals:r.eqStrict.equals,compare:function(n,t){return n<t?-1:n>t?1:0}};t.ordBoolean=u,t.ordString=u,t.ordNumber=u,t.ordDate=(0,i.pipe)(t.ordNumber,(0,t.contramap)(function(n){return n.valueOf()}))},87612:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.and=t.or=t.not=t.Contravariant=t.getMonoidAll=t.getSemigroupAll=t.getMonoidAny=t.getSemigroupAny=t.URI=t.contramap=void 0;var r=e(14632);t.contramap=function(n){return function(t){return(0,r.flow)(n,t)}},t.URI="Predicate",t.getSemigroupAny=function(){return{concat:function(n,e){return(0,r.pipe)(n,(0,t.or)(e))}}},t.getMonoidAny=function(){return{concat:(0,t.getSemigroupAny)().concat,empty:r.constFalse}},t.getSemigroupAll=function(){return{concat:function(n,e){return(0,r.pipe)(n,(0,t.and)(e))}}},t.getMonoidAll=function(){return{concat:(0,t.getSemigroupAll)().concat,empty:r.constTrue}},t.Contravariant={URI:t.URI,contramap:function(n,e){return(0,r.pipe)(n,(0,t.contramap)(e))}},t.not=function(n){return function(t){return!n(t)}},t.or=function(n){return function(t){return function(e){return t(e)||n(e)}}},t.and=function(n){return function(t){return function(e){return t(e)&&n(e)}}}},78703:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t},o=this&&this.__spreadArray||function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.sort=t.lefts=t.rights=t.reverse=t.modifyAt=t.deleteAt=t.updateAt=t.insertAt=t.findLastIndex=t.findLastMap=t.findLast=t.findFirstMap=t.findFirst=t.findIndex=t.dropLeftWhile=t.dropRight=t.dropLeft=t.spanLeft=t.takeLeftWhile=t.takeRight=t.takeLeft=t.init=t.tail=t.last=t.head=t.lookup=t.isOutOfBound=t.size=t.scanRight=t.scanLeft=t.chainWithIndex=t.foldRight=t.matchRight=t.matchRightW=t.foldLeft=t.matchLeft=t.matchLeftW=t.match=t.matchW=t.fromEither=t.fromOption=t.fromPredicate=t.replicate=t.makeBy=t.appendW=t.append=t.prependW=t.prepend=t.isNonEmpty=t.isEmpty=void 0,t.sequence=t.traverse=t.reduceRightWithIndex=t.reduceRight=t.reduceWithIndex=t.foldMap=t.reduce=t.foldMapWithIndex=t.duplicate=t.extend=t.filterWithIndex=t.partitionMapWithIndex=t.partitionMap=t.partitionWithIndex=t.partition=t.compact=t.filterMap=t.filterMapWithIndex=t.filter=t.separate=t.mapWithIndex=t.map=t.flatten=t.flatMap=t.ap=t.alt=t.altW=t.zero=t.of=t._chainRecBreadthFirst=t._chainRecDepthFirst=t.difference=t.intersection=t.union=t.concat=t.concatW=t.comprehension=t.fromOptionK=t.chunksOf=t.splitAt=t.chop=t.sortBy=t.uniq=t.elem=t.rotate=t.intersperse=t.prependAll=t.unzip=t.zip=t.zipWith=void 0,t.toArray=t.unsafeDeleteAt=t.unsafeUpdateAt=t.unsafeInsertAt=t.fromEitherK=t.FromEither=t.filterE=t.Witherable=t.ChainRecBreadthFirst=t.chainRecBreadthFirst=t.ChainRecDepthFirst=t.chainRecDepthFirst=t.TraversableWithIndex=t.Traversable=t.FoldableWithIndex=t.Foldable=t.FilterableWithIndex=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.guard=t.Zero=t.Alt=t.Unfoldable=t.chainFirst=t.Monad=t.Chain=t.Applicative=t.apSecond=t.apFirst=t.Apply=t.FunctorWithIndex=t.Pointed=t.flap=t.Functor=t.getDifferenceMagma=t.getIntersectionSemigroup=t.getUnionMonoid=t.getUnionSemigroup=t.getOrd=t.getEq=t.getMonoid=t.getSemigroup=t.getShow=t.URI=t.unfold=t.wilt=t.wither=t.traverseWithIndex=void 0,t.readonlyArray=t.prependToAll=t.snoc=t.cons=t.range=t.chain=t.apS=t.bind=t.let=t.bindTo=t.Do=t.intercalate=t.exists=t.some=t.every=t.empty=t.fromArray=void 0;var a=e(93145),c=e(18222),f=e(8190),l=e(57756),p=e(14632),d=e(8762),s=u(e(5309)),h=u(e(40457)),m=e(83235),v=u(e(84612)),g=e(4773),y=e(69706),b=e(3899);t.isEmpty=function(n){return 0===n.length},t.isNonEmpty=v.isNonEmpty,t.prepend=v.prepend,t.prependW=v.prependW,t.append=v.append,t.appendW=v.appendW,t.makeBy=function(n,e){return n<=0?t.empty:v.makeBy(e)(n)},t.replicate=function(n,e){return(0,t.makeBy)(n,function(){return e})},t.fromPredicate=function(n){return function(e){return n(e)?[e]:t.empty}},t.fromOption=function(n){return s.isNone(n)?t.empty:[n.value]},t.fromEither=function(n){return s.isLeft(n)?t.empty:[n.right]},t.matchW=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(r):n()}},t.match=t.matchW,t.matchLeftW=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(v.head(r),v.tail(r)):n()}},t.matchLeft=t.matchLeftW,t.foldLeft=t.matchLeft,t.matchRightW=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(v.init(r),v.last(r)):n()}},t.matchRight=t.matchRightW,t.foldRight=t.matchRight,t.chainWithIndex=function(n){return function(e){if((0,t.isEmpty)(e))return t.empty;for(var r=[],i=0;i<e.length;i++)r.push.apply(r,n(i,e[i]));return r}},t.scanLeft=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[0]=n;for(var u=0;u<r;u++)i[u+1]=t(i[u],e[u]);return i}},t.scanRight=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[r]=n;for(var u=r-1;u>=0;u--)i[u]=t(e[u],i[u+1]);return i}},t.size=function(n){return n.length},t.isOutOfBound=v.isOutOfBound,t.lookup=function n(e,r){return void 0===r?function(t){return n(e,t)}:(0,t.isOutOfBound)(e,r)?s.none:s.some(r[e])},t.head=function(n){return(0,t.isNonEmpty)(n)?s.some(v.head(n)):s.none},t.last=function(n){return(0,t.isNonEmpty)(n)?s.some(v.last(n)):s.none},t.tail=function(n){return(0,t.isNonEmpty)(n)?s.some(v.tail(n)):s.none},t.init=function(n){return(0,t.isNonEmpty)(n)?s.some(v.init(n)):s.none},t.takeLeft=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?e:0===n?t.empty:e.slice(0,n)}},t.takeRight=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?e:0===n?t.empty:e.slice(-n)}},t.takeLeftWhile=function(n){return function(e){for(var r=[],i=0;i<e.length;i++){var u=e[i];if(!n(u))break;r.push(u)}var o=r.length;return o===e.length?e:0===o?t.empty:r}};var _=function(n,t){for(var e=n.length,r=0;r<e&&t(n[r]);r++);return r};function I(n){return function(t,e){if(void 0===e){var r,i=I(n);return function(n){return i(t,n)}}for(var u=0;u<e.length;u++)if(r=e[u],n.equals(r,t))return!0;return!1}}function R(n){var e=v.union(n);return function(r,i){if(void 0===i){var u=R(n);return function(n){return u(n,r)}}return(0,t.isNonEmpty)(r)&&(0,t.isNonEmpty)(i)?e(i)(r):(0,t.isNonEmpty)(r)?r:i}}function S(n){var t=I(n);return function(e,r){if(void 0===r){var i=S(n);return function(n){return i(n,e)}}return e.filter(function(n){return t(n,r)})}}function T(n){var t=I(n);return function(e,r){if(void 0===r){var i=T(n);return function(n){return i(n,e)}}return e.filter(function(n){return!t(n,r)})}}t.spanLeft=function(n){return function(e){var r=(0,t.splitAt)(_(e,n))(e);return{init:r[0],rest:r[1]}}},t.dropLeft=function(n){return function(e){return n<=0||(0,t.isEmpty)(e)?e:n>=e.length?t.empty:e.slice(n,e.length)}},t.dropRight=function(n){return function(e){return n<=0||(0,t.isEmpty)(e)?e:n>=e.length?t.empty:e.slice(0,e.length-n)}},t.dropLeftWhile=function(n){return function(e){var r=_(e,n);return 0===r?e:r===e.length?t.empty:e.slice(r)}},t.findIndex=function(n){return function(t){for(var e=0;e<t.length;e++)if(n(t[e]))return s.some(e);return s.none}},t.findFirst=function(n){return function(t){for(var e=0;e<t.length;e++)if(n(t[e]))return s.some(t[e]);return s.none}},t.findFirstMap=function(n){return function(t){for(var e=0;e<t.length;e++){var r=n(t[e]);if(s.isSome(r))return r}return s.none}},t.findLast=function(n){return function(t){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return s.some(t[e]);return s.none}},t.findLastMap=function(n){return function(t){for(var e=t.length-1;e>=0;e--){var r=n(t[e]);if(s.isSome(r))return r}return s.none}},t.findLastIndex=function(n){return function(t){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return s.some(e);return s.none}},t.insertAt=function(n,t){return function(e){return n<0||n>e.length?s.none:s.some(v.unsafeInsertAt(n,t,e))}},t.updateAt=function(n,e){return(0,t.modifyAt)(n,function(){return e})},t.deleteAt=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?s.none:s.some((0,t.unsafeDeleteAt)(n,e))}},t.modifyAt=function(n,e){return function(r){return(0,t.isOutOfBound)(n,r)?s.none:s.some((0,t.unsafeUpdateAt)(n,e(r[n]),r))}},t.reverse=function(n){return n.length<=1?n:n.slice().reverse()},t.rights=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Right"===r._tag&&t.push(r.right)}return t},t.lefts=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Left"===r._tag&&t.push(r.left)}return t},t.sort=function(n){return function(t){return t.length<=1?t:t.slice().sort(n.compare)}},t.zipWith=function(n,t,e){for(var r=[],i=Math.min(n.length,t.length),u=0;u<i;u++)r[u]=e(n[u],t[u]);return r},t.zip=function n(e,r){return void 0===r?function(t){return n(t,e)}:(0,t.zipWith)(e,r,function(n,t){return[n,t]})},t.unzip=function(n){for(var t=[],e=[],r=0;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},t.prependAll=function(n){var e=v.prependAll(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}},t.intersperse=function(n){var e=v.intersperse(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}},t.rotate=function(n){var e=v.rotate(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}},t.elem=I,t.uniq=function(n){var e=v.uniq(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}},t.sortBy=function(n){var e=v.sortBy(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}},t.chop=function(n){var e=v.chop(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):t.empty}},t.splitAt=function(n){return function(e){return n>=1&&(0,t.isNonEmpty)(e)?v.splitAt(n)(e):(0,t.isEmpty)(e)?[e,t.empty]:[t.empty,e]}},t.chunksOf=function(n){var e=v.chunksOf(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):t.empty}},t.fromOptionK=function(n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0,t.fromOption)(n.apply(void 0,e))}},t.comprehension=function(n,e,r){void 0===r&&(r=function(){return!0});var i=function(n,u){return(0,t.isNonEmpty)(u)?(0,t.flatMap)(v.head(u),function(e){return i((0,p.pipe)(n,(0,t.append)(e)),v.tail(u))}):r.apply(void 0,n)?[e.apply(void 0,n)]:t.empty};return i(t.empty,n)},t.concatW=function(n){return function(e){return(0,t.isEmpty)(e)?n:(0,t.isEmpty)(n)?e:e.concat(n)}},t.concat=t.concatW,t.union=R,t.intersection=S,t.difference=T;var x=function(n,e){return(0,p.pipe)(n,(0,t.map)(e))},w=function(n,e){return(0,p.pipe)(n,(0,t.mapWithIndex)(e))},M=function(n,e){return(0,p.pipe)(n,(0,t.ap)(e))},O=function(n,e){return(0,p.pipe)(n,(0,t.filter)(e))},E=function(n,e){return(0,p.pipe)(n,(0,t.filterMap)(e))},C=function(n,e){return(0,p.pipe)(n,(0,t.partition)(e))},k=function(n,e){return(0,p.pipe)(n,(0,t.partitionMap)(e))},W=function(n,e){return(0,p.pipe)(n,(0,t.partitionWithIndex)(e))},F=function(n,e){return(0,p.pipe)(n,(0,t.partitionMapWithIndex)(e))},P=function(n,e){return(0,p.pipe)(n,(0,t.alt)(e))},A=function(n,e,r){return(0,p.pipe)(n,(0,t.reduce)(e,r))},U=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,p.pipe)(n,e(t))}},D=function(n,e,r){return(0,p.pipe)(n,(0,t.reduceRight)(e,r))},L=function(n,e,r){return(0,p.pipe)(n,(0,t.reduceWithIndex)(e,r))},N=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n,t){return(0,p.pipe)(n,e(t))}},j=function(n,e,r){return(0,p.pipe)(n,(0,t.reduceRightWithIndex)(e,r))},q=function(n,e){return(0,p.pipe)(n,(0,t.filterMapWithIndex)(e))},G=function(n,e){return(0,p.pipe)(n,(0,t.filterWithIndex)(e))},K=function(n,e){return(0,p.pipe)(n,(0,t.extend)(e))},Y=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,p.pipe)(n,e(t))}},B=function(n){var e=(0,t.traverseWithIndex)(n);return function(n,t){return(0,p.pipe)(n,e(t))}};t._chainRecDepthFirst=function(n,e){return(0,p.pipe)(n,(0,t.chainRecDepthFirst)(e))},t._chainRecBreadthFirst=function(n,e){return(0,p.pipe)(n,(0,t.chainRecBreadthFirst)(e))},t.of=v.of,t.zero=function(){return t.empty},t.altW=function(n){return function(t){return t.concat(n())}},t.alt=t.altW,t.ap=function(n){return(0,t.flatMap)(function(e){return(0,p.pipe)(n,(0,t.map)(e))})},t.flatMap=(0,p.dual)(2,function(n,e){return(0,p.pipe)(n,(0,t.chainWithIndex)(function(n,t){return e(t,n)}))}),t.flatten=(0,t.flatMap)(p.identity),t.map=function(n){return function(t){return t.map(function(t){return n(t)})}},t.mapWithIndex=function(n){return function(t){return t.map(function(t,e){return n(e,t)})}},t.separate=function(n){for(var t=[],e=[],r=0;r<n.length;r++){var i=n[r];"Left"===i._tag?t.push(i.left):e.push(i.right)}return(0,g.separated)(t,e)},t.filter=function(n){return function(t){return t.filter(n)}},t.filterMapWithIndex=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=n(r,t[r]);s.isSome(i)&&e.push(i.value)}return e}},t.filterMap=function(n){return(0,t.filterMapWithIndex)(function(t,e){return n(e)})},t.compact=(0,t.filterMap)(p.identity),t.partition=function(n){return(0,t.partitionWithIndex)(function(t,e){return n(e)})},t.partitionWithIndex=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=t[i];n(i,u)?r.push(u):e.push(u)}return(0,g.separated)(e,r)}},t.partitionMap=function(n){return(0,t.partitionMapWithIndex)(function(t,e){return n(e)})},t.partitionMapWithIndex=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=n(i,t[i]);"Left"===u._tag?e.push(u.left):r.push(u.right)}return(0,g.separated)(e,r)}},t.filterWithIndex=function(n){return function(t){return t.filter(function(t,e){return n(e,t)})}},t.extend=function(n){return function(t){return t.map(function(e,r){return n(t.slice(r))})}},t.duplicate=(0,t.extend)(p.identity),t.foldMapWithIndex=function(n){return function(t){return function(e){return e.reduce(function(e,r,i){return n.concat(e,t(i,r))},n.empty)}}},t.reduce=function(n,e){return(0,t.reduceWithIndex)(n,function(n,t,r){return e(t,r)})},t.foldMap=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}},t.reduceWithIndex=function(n,t){return function(e){for(var r=e.length,i=n,u=0;u<r;u++)i=t(u,i,e[u]);return i}},t.reduceRight=function(n,e){return(0,t.reduceRightWithIndex)(n,function(n,t,r){return e(t,r)})},t.reduceRightWithIndex=function(n,t){return function(e){return e.reduceRight(function(n,e,r){return t(r,e,n)},n)}},t.traverse=function(n){var e=(0,t.traverseWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}},t.sequence=function(n){return function(e){return A(e,n.of((0,t.zero)()),function(e,r){return n.ap(n.map(e,function(n){return function(e){return(0,p.pipe)(n,(0,t.append)(e))}}),r)})}},t.traverseWithIndex=function(n){return function(e){return(0,t.reduceWithIndex)(n.of((0,t.zero)()),function(r,i,u){return n.ap(n.map(i,function(n){return function(e){return(0,p.pipe)(n,(0,t.append)(e))}}),e(r,u))})}},t.wither=function(n){var t=V(n);return function(n){return function(e){return t(e,n)}}},t.wilt=function(n){var t=H(n);return function(n){return function(e){return t(e,n)}}},t.unfold=function(n,t){for(var e=[],r=n;;){var i=t(r);if(s.isSome(i)){var u=i.value,o=u[0],a=u[1];e.push(o),r=a}else break}return e},t.URI="ReadonlyArray",t.getShow=function(n){return{show:function(t){return"[".concat(t.map(n.show).join(", "),"]")}}},t.getSemigroup=function(){return{concat:function(n,e){return(0,t.isEmpty)(n)?e:(0,t.isEmpty)(e)?n:n.concat(e)}}},t.getMonoid=function(){return{concat:(0,t.getSemigroup)().concat,empty:t.empty}},t.getEq=function(n){return(0,f.fromEquals)(function(t,e){return t.length===e.length&&t.every(function(t,r){return n.equals(t,e[r])})})},t.getOrd=function(n){return(0,m.fromCompare)(function(t,e){for(var r=t.length,i=e.length,u=Math.min(r,i),o=0;o<u;o++){var a=n.compare(t[o],e[o]);if(0!==a)return a}return h.Ord.compare(r,i)})},t.getUnionSemigroup=function(n){var t=R(n);return{concat:function(n,e){return t(e)(n)}}},t.getUnionMonoid=function(n){return{concat:(0,t.getUnionSemigroup)(n).concat,empty:t.empty}},t.getIntersectionSemigroup=function(n){var t=S(n);return{concat:function(n,e){return t(e)(n)}}},t.getDifferenceMagma=function(n){var t=T(n);return{concat:function(n,e){return t(e)(n)}}},t.Functor={URI:t.URI,map:x},t.flap=(0,d.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:x,mapWithIndex:w},t.Apply={URI:t.URI,map:x,ap:M},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:x,ap:M,of:t.of},t.Chain={URI:t.URI,map:x,ap:M,chain:t.flatMap},t.Monad={URI:t.URI,map:x,ap:M,of:t.of,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Unfoldable={URI:t.URI,unfold:t.unfold},t.Alt={URI:t.URI,map:x,alt:P},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,b.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:x,ap:M,of:t.of,alt:P,zero:t.zero},t.Extend={URI:t.URI,map:x,extend:K},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:x,compact:t.compact,separate:t.separate,filter:O,filterMap:E,partition:C,partitionMap:k},t.FilterableWithIndex={URI:t.URI,map:x,mapWithIndex:w,compact:t.compact,separate:t.separate,filter:O,filterMap:E,partition:C,partitionMap:k,partitionMapWithIndex:F,partitionWithIndex:W,filterMapWithIndex:q,filterWithIndex:G},t.Foldable={URI:t.URI,reduce:A,foldMap:U,reduceRight:D},t.FoldableWithIndex={URI:t.URI,reduce:A,foldMap:U,reduceRight:D,reduceWithIndex:L,foldMapWithIndex:N,reduceRightWithIndex:j},t.Traversable={URI:t.URI,map:x,reduce:A,foldMap:U,reduceRight:D,traverse:Y,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:x,mapWithIndex:w,reduce:A,foldMap:U,reduceRight:D,reduceWithIndex:L,foldMapWithIndex:N,reduceRightWithIndex:j,traverse:Y,sequence:t.sequence,traverseWithIndex:B},t.chainRecDepthFirst=function(n){return function(t){for(var e=o([],n(t),!0),r=[];e.length>0;){var i=e.shift();s.isLeft(i)?e.unshift.apply(e,n(i.left)):r.push(i.right)}return r}},t.ChainRecDepthFirst={URI:t.URI,map:x,ap:M,chain:t.flatMap,chainRec:t._chainRecDepthFirst},t.chainRecBreadthFirst=function(n){return function(t){var e=n(t),r=[],i=[];function u(t){s.isLeft(t)?n(t.left).forEach(function(n){return r.push(n)}):i.push(t.right)}for(var o=0;o<e.length;o++)u(e[o]);for(;r.length>0;)u(r.shift());return i}},t.ChainRecBreadthFirst={URI:t.URI,map:x,ap:M,chain:t.flatMap,chainRec:t._chainRecBreadthFirst};var V=(0,y.witherDefault)(t.Traversable,t.Compactable),H=(0,y.wiltDefault)(t.Traversable,t.Compactable);t.Witherable={URI:t.URI,map:x,compact:t.compact,separate:t.separate,filter:O,filterMap:E,partition:C,partitionMap:k,reduce:A,foldMap:U,reduceRight:D,traverse:Y,sequence:t.sequence,wither:V,wilt:H},t.filterE=(0,y.filterE)(t.Witherable),t.FromEither={URI:t.URI,fromEither:t.fromEither},t.fromEitherK=(0,l.fromEitherK)(t.FromEither),t.unsafeInsertAt=v.unsafeInsertAt,t.unsafeUpdateAt=function(n,e,r){return(0,t.isNonEmpty)(r)?v.unsafeUpdateAt(n,e,r):r},t.unsafeDeleteAt=function(n,t){var e=t.slice();return e.splice(n,1),e},t.toArray=function(n){return n.slice()},t.fromArray=function(n){return(0,t.isEmpty)(n)?t.empty:n.slice()},t.empty=v.empty,t.every=function(n){return function(t){return t.every(n)}},t.some=function(n){return function(t){return t.some(n)}},t.exists=t.some,t.intercalate=function(n){var e=v.intercalate(n);return function(r){return(0,t.match)(function(){return n.empty},e(r))}},t.Do=(0,t.of)(s.emptyRecord),t.bindTo=(0,d.bindTo)(t.Functor);var z=(0,d.let)(t.Functor);t.let=z,t.bind=(0,c.bind)(t.Chain),t.apS=(0,a.apS)(t.Apply),t.chain=t.flatMap,t.range=v.range,t.cons=v.cons,t.snoc=v.snoc,t.prependToAll=t.prependAll,t.readonlyArray={URI:t.URI,compact:t.compact,separate:t.separate,map:x,ap:M,of:t.of,chain:t.flatMap,filter:O,filterMap:E,partition:C,partitionMap:k,mapWithIndex:w,partitionMapWithIndex:F,partitionWithIndex:W,filterMapWithIndex:q,filterWithIndex:G,alt:P,zero:t.zero,unfold:t.unfold,reduce:A,foldMap:U,reduceRight:D,traverse:Y,sequence:t.sequence,reduceWithIndex:L,foldMapWithIndex:N,reduceRightWithIndex:j,traverseWithIndex:B,extend:K,wither:V,wilt:H}},84612:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t},o=this&&this.__spreadArray||function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.reduceRight=t.foldMap=t.reduce=t.mapWithIndex=t.map=t.flatten=t.duplicate=t.extend=t.flatMap=t.ap=t.alt=t.altW=t.of=t.chunksOf=t.splitAt=t.chop=t.chainWithIndex=t.intersperse=t.prependAll=t.unzip=t.zip=t.zipWith=t.modifyAt=t.updateAt=t.sort=t.groupBy=t.group=t.reverse=t.concat=t.concatW=t.fromArray=t.unappend=t.unprepend=t.range=t.replicate=t.makeBy=t.fromReadonlyArray=t.rotate=t.union=t.sortBy=t.uniq=t.unsafeUpdateAt=t.unsafeInsertAt=t.append=t.appendW=t.prepend=t.prependW=t.isOutOfBound=t.isNonEmpty=t.empty=void 0,t.groupSort=t.chain=t.intercalate=t.updateLast=t.modifyLast=t.updateHead=t.modifyHead=t.matchRight=t.matchLeft=t.concatAll=t.max=t.min=t.init=t.last=t.tail=t.head=t.apS=t.bind=t.let=t.bindTo=t.Do=t.Comonad=t.Alt=t.TraversableWithIndex=t.Traversable=t.FoldableWithIndex=t.Foldable=t.Monad=t.chainFirst=t.Chain=t.Applicative=t.apSecond=t.apFirst=t.Apply=t.FunctorWithIndex=t.Pointed=t.flap=t.Functor=t.getUnionSemigroup=t.getEq=t.getSemigroup=t.getShow=t.URI=t.extract=t.traverseWithIndex=t.sequence=t.traverse=t.reduceRightWithIndex=t.foldMapWithIndex=t.reduceWithIndex=void 0,t.readonlyNonEmptyArray=t.fold=t.prependToAll=t.insertAt=t.snoc=t.cons=t.unsnoc=t.uncons=t.filterWithIndex=t.filter=void 0;var a=e(93145),c=e(18222),f=e(8190),l=e(14632),p=e(8762),d=u(e(5309)),s=e(83235),h=u(e(98744));function m(n){return function(t){return t.concat(n)}}function v(n,t){return t?n.concat(t):function(t){return t.concat(n)}}function g(n){return function(e){var r=e.length;if(0===r)return t.empty;for(var i=[],u=e[0],o=[u],a=1;a<r;a++){var c=e[a];n.equals(c,u)?o.push(c):(i.push(o),o=[u=c])}return i.push(o),i}}t.empty=d.emptyReadonlyArray,t.isNonEmpty=d.isNonEmpty,t.isOutOfBound=function(n,t){return n<0||n>=t.length},t.prependW=function(n){return function(t){return o([n],t,!0)}},t.prepend=t.prependW,t.appendW=function(n){return function(t){return o(o([],t,!0),[n],!1)}},t.append=t.appendW,t.unsafeInsertAt=function(n,e,r){if((0,t.isNonEmpty)(r)){var i=d.fromReadonlyNonEmptyArray(r);return i.splice(n,0,e),i}return[e]},t.unsafeUpdateAt=function(n,t,e){if(e[n]===t)return e;var r=d.fromReadonlyNonEmptyArray(e);return r[n]=t,r},t.uniq=function(n){return function(e){if(1===e.length)return e;for(var r=[(0,t.head)(e)],i=(0,t.tail)(e),u=function(t){r.every(function(e){return!n.equals(e,t)})&&r.push(t)},o=0;o<i.length;o++)u(i[o]);return r}},t.sortBy=function(n){if((0,t.isNonEmpty)(n)){var e=(0,s.getMonoid)();return(0,t.sort)(n.reduce(e.concat,e.empty))}return l.identity},t.union=function(n){var e=(0,t.uniq)(n);return function(n){return function(t){return e((0,l.pipe)(t,v(n)))}}},t.rotate=function(n){return function(e){var r=e.length,i=Math.round(n)%r;if((0,t.isOutOfBound)(Math.abs(i),e)||0===i)return e;if(!(i<0))return(0,t.rotate)(i-r)(e);var u=(0,t.splitAt)(-i)(e),o=u[0],a=u[1];return(0,l.pipe)(a,v(o))}},t.fromReadonlyArray=function(n){return(0,t.isNonEmpty)(n)?d.some(n):d.none},t.makeBy=function(n){return function(t){for(var e=Math.max(0,Math.floor(t)),r=[n(0)],i=1;i<e;i++)r.push(n(i));return r}},t.replicate=function(n){return(0,t.makeBy)(function(){return n})},t.range=function(n,e){return n<=e?(0,t.makeBy)(function(t){return n+t})(e-n+1):[n]},t.unprepend=function(n){return[(0,t.head)(n),(0,t.tail)(n)]},t.unappend=function(n){return[(0,t.init)(n),(0,t.last)(n)]},t.fromArray=function(n){return(0,t.fromReadonlyArray)(n.slice())},t.concatW=m,t.concat=v,t.reverse=function(n){return 1===n.length?n:o([(0,t.last)(n)],n.slice(0,-1).reverse(),!0)},t.group=g,t.groupBy=function(n){return function(t){for(var e={},r=0;r<t.length;r++){var i=t[r],u=n(i);d.has.call(e,u)?e[u].push(i):e[u]=[i]}return e}},t.sort=function(n){return function(t){return 1===t.length?t:t.slice().sort(n.compare)}},t.updateAt=function(n,e){return(0,t.modifyAt)(n,function(){return e})},t.modifyAt=function(n,e){return function(r){return(0,t.isOutOfBound)(n,r)?d.none:d.some((0,t.unsafeUpdateAt)(n,e(r[n]),r))}},t.zipWith=function(n,t,e){for(var r=[e(n[0],t[0])],i=Math.min(n.length,t.length),u=1;u<i;u++)r[u]=e(n[u],t[u]);return r},t.zip=function n(e,r){return void 0===r?function(t){return n(t,e)}:(0,t.zipWith)(e,r,function(n,t){return[n,t]})},t.unzip=function(n){for(var t=[n[0][0]],e=[n[0][1]],r=1;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},t.prependAll=function(n){return function(t){for(var e=[n,t[0]],r=1;r<t.length;r++)e.push(n,t[r]);return e}},t.intersperse=function(n){return function(e){var r=(0,t.tail)(e);return(0,t.isNonEmpty)(r)?(0,l.pipe)(r,(0,t.prependAll)(n),(0,t.prepend)((0,t.head)(e))):e}},t.chainWithIndex=function(n){return function(e){for(var r=d.fromReadonlyNonEmptyArray(n(0,(0,t.head)(e))),i=1;i<e.length;i++)r.push.apply(r,n(i,e[i]));return r}},t.chop=function(n){return function(e){for(var r=n(e),i=r[0],u=r[1],o=[i],a=u;(0,t.isNonEmpty)(a);){var c=n(a),f=c[0],l=c[1];o.push(f),a=l}return o}},t.splitAt=function(n){return function(e){var r=Math.max(1,n);return r>=e.length?[e,t.empty]:[(0,l.pipe)(e.slice(1,r),(0,t.prepend)((0,t.head)(e))),e.slice(r)]}},t.chunksOf=function(n){return(0,t.chop)((0,t.splitAt)(n))};var y=function(n,e){return(0,l.pipe)(n,(0,t.map)(e))},b=function(n,e){return(0,l.pipe)(n,(0,t.mapWithIndex)(e))},_=function(n,e){return(0,l.pipe)(n,(0,t.ap)(e))},I=function(n,e){return(0,l.pipe)(n,(0,t.extend)(e))},R=function(n,e,r){return(0,l.pipe)(n,(0,t.reduce)(e,r))},S=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},T=function(n,e,r){return(0,l.pipe)(n,(0,t.reduceRight)(e,r))},x=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},w=function(n,e){return(0,l.pipe)(n,(0,t.alt)(e))},M=function(n,e,r){return(0,l.pipe)(n,(0,t.reduceWithIndex)(e,r))},O=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},E=function(n,e,r){return(0,l.pipe)(n,(0,t.reduceRightWithIndex)(e,r))},C=function(n){var e=(0,t.traverseWithIndex)(n);return function(n,t){return(0,l.pipe)(n,e(t))}};t.of=d.singleton,t.altW=function(n){return function(t){return(0,l.pipe)(t,m(n()))}},t.alt=t.altW,t.ap=function(n){return(0,t.flatMap)(function(e){return(0,l.pipe)(n,(0,t.map)(e))})},t.flatMap=(0,l.dual)(2,function(n,e){return(0,l.pipe)(n,(0,t.chainWithIndex)(function(n,t){return e(t,n)}))}),t.extend=function(n){return function(e){for(var r=(0,t.tail)(e),i=[n(e)];(0,t.isNonEmpty)(r);)i.push(n(r)),r=(0,t.tail)(r);return i}},t.duplicate=(0,t.extend)(l.identity),t.flatten=(0,t.flatMap)(l.identity),t.map=function(n){return(0,t.mapWithIndex)(function(t,e){return n(e)})},t.mapWithIndex=function(n){return function(e){for(var r=[n(0,(0,t.head)(e))],i=1;i<e.length;i++)r.push(n(i,e[i]));return r}},t.reduce=function(n,e){return(0,t.reduceWithIndex)(n,function(n,t,r){return e(t,r)})},t.foldMap=function(n){return function(t){return function(e){return e.slice(1).reduce(function(e,r){return n.concat(e,t(r))},t(e[0]))}}},t.reduceRight=function(n,e){return(0,t.reduceRightWithIndex)(n,function(n,t,r){return e(t,r)})},t.reduceWithIndex=function(n,t){return function(e){return e.reduce(function(n,e,r){return t(r,n,e)},n)}},t.foldMapWithIndex=function(n){return function(t){return function(e){return e.slice(1).reduce(function(e,r,i){return n.concat(e,t(i+1,r))},t(0,e[0]))}}},t.reduceRightWithIndex=function(n,t){return function(e){return e.reduceRight(function(n,e,r){return t(r,e,n)},n)}},t.traverse=function(n){var e=(0,t.traverseWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}},t.sequence=function(n){return(0,t.traverseWithIndex)(n)(l.SK)},t.traverseWithIndex=function(n){return function(e){return function(r){for(var i=n.map(e(0,(0,t.head)(r)),t.of),u=1;u<r.length;u++)i=n.ap(n.map(i,function(n){return function(e){return(0,l.pipe)(n,(0,t.append)(e))}}),e(u,r[u]));return i}}},t.extract=d.head,t.URI="ReadonlyNonEmptyArray",t.getShow=function(n){return{show:function(t){return"[".concat(t.map(n.show).join(", "),"]")}}},t.getSemigroup=function(){return{concat:v}},t.getEq=function(n){return(0,f.fromEquals)(function(t,e){return t.length===e.length&&t.every(function(t,r){return n.equals(t,e[r])})})},t.getUnionSemigroup=function(n){var e=(0,t.union)(n);return{concat:function(n,t){return e(t)(n)}}},t.Functor={URI:t.URI,map:y},t.flap=(0,p.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:y,mapWithIndex:b},t.Apply={URI:t.URI,map:y,ap:_},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:y,ap:_,of:t.of},t.Chain={URI:t.URI,map:y,ap:_,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:y,ap:_,of:t.of,chain:t.flatMap},t.Foldable={URI:t.URI,reduce:R,foldMap:S,reduceRight:T},t.FoldableWithIndex={URI:t.URI,reduce:R,foldMap:S,reduceRight:T,reduceWithIndex:M,foldMapWithIndex:O,reduceRightWithIndex:E},t.Traversable={URI:t.URI,map:y,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:y,mapWithIndex:b,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:t.sequence,reduceWithIndex:M,foldMapWithIndex:O,reduceRightWithIndex:E,traverseWithIndex:C},t.Alt={URI:t.URI,map:y,alt:w},t.Comonad={URI:t.URI,map:y,extend:I,extract:t.extract},t.Do=(0,t.of)(d.emptyRecord),t.bindTo=(0,p.bindTo)(t.Functor);var k=(0,p.let)(t.Functor);t.let=k,t.bind=(0,c.bind)(t.Chain),t.apS=(0,a.apS)(t.Apply),t.head=t.extract,t.tail=d.tail,t.last=function(n){return n[n.length-1]},t.init=function(n){return n.slice(0,-1)},t.min=function(n){var t=h.min(n);return function(n){return n.reduce(t.concat)}},t.max=function(n){var t=h.max(n);return function(n){return n.reduce(t.concat)}},t.concatAll=function(n){return function(t){return t.reduce(n.concat)}},t.matchLeft=function(n){return function(e){return n((0,t.head)(e),(0,t.tail)(e))}},t.matchRight=function(n){return function(e){return n((0,t.init)(e),(0,t.last)(e))}},t.modifyHead=function(n){return function(e){return o([n((0,t.head)(e))],(0,t.tail)(e),!0)}},t.updateHead=function(n){return(0,t.modifyHead)(function(){return n})},t.modifyLast=function(n){return function(e){return(0,l.pipe)((0,t.init)(e),(0,t.append)(n((0,t.last)(e))))}},t.updateLast=function(n){return(0,t.modifyLast)(function(){return n})},t.intercalate=function(n){var e=(0,t.concatAll)(n);return function(n){return(0,l.flow)((0,t.intersperse)(n),e)}},t.chain=t.flatMap,t.groupSort=function(n){var e=(0,t.sort)(n),r=g(n);return function(n){return(0,t.isNonEmpty)(n)?r(e(n)):t.empty}},t.filter=function(n){return(0,t.filterWithIndex)(function(t,e){return n(e)})},t.filterWithIndex=function(n){return function(e){return(0,t.fromReadonlyArray)(e.filter(function(t,e){return n(e,t)}))}},t.uncons=t.unprepend,t.unsnoc=t.unappend,t.cons=function(n,e){return void 0===e?(0,t.prepend)(n):(0,l.pipe)(e,(0,t.prepend)(n))},t.snoc=function(n,t){return(0,l.pipe)(n,v([t]))},t.insertAt=function(n,e){return function(r){return n<0||n>r.length?d.none:d.some((0,t.unsafeInsertAt)(n,e,r))}},t.prependToAll=t.prependAll,t.fold=t.concatAll,t.readonlyNonEmptyArray={URI:t.URI,of:t.of,map:y,mapWithIndex:b,ap:_,chain:t.flatMap,extend:I,extract:t.extract,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:t.sequence,reduceWithIndex:M,foldMapWithIndex:O,reduceRightWithIndex:E,traverseWithIndex:C,alt:w}},98744:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.semigroupProduct=t.semigroupSum=t.semigroupString=t.getFunctionSemigroup=t.semigroupAny=t.semigroupAll=t.fold=t.getIntercalateSemigroup=t.getMeetSemigroup=t.getJoinSemigroup=t.getDualSemigroup=t.getStructSemigroup=t.getTupleSemigroup=t.getFirstSemigroup=t.getLastSemigroup=t.getObjectSemigroup=t.semigroupVoid=t.concatAll=t.last=t.first=t.intercalate=t.tuple=t.struct=t.reverse=t.constant=t.max=t.min=void 0;var o=e(14632),a=u(e(5309)),c=u(e(73540)),f=u(e(83235));t.min=function(n){return{concat:f.min(n)}},t.max=function(n){return{concat:f.max(n)}},t.constant=function(n){return{concat:function(){return n}}},t.reverse=c.reverse,t.struct=function(n){return{concat:function(t,e){var r={};for(var i in n)a.has.call(n,i)&&(r[i]=n[i].concat(t[i],e[i]));return r}}},t.tuple=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{concat:function(t,e){return n.map(function(n,r){return n.concat(t[r],e[r])})}}},t.intercalate=function(n){return function(t){return{concat:function(e,r){return t.concat(e,t.concat(n,r))}}}},t.first=function(){return{concat:o.identity}},t.last=function(){return{concat:function(n,t){return t}}},t.concatAll=c.concatAll,t.semigroupVoid=(0,t.constant)(void 0),t.getObjectSemigroup=function(){return{concat:function(n,t){return Object.assign({},n,t)}}},t.getLastSemigroup=t.last,t.getFirstSemigroup=t.first,t.getTupleSemigroup=t.tuple,t.getStructSemigroup=t.struct,t.getDualSemigroup=t.reverse,t.getJoinSemigroup=t.max,t.getMeetSemigroup=t.min,t.getIntercalateSemigroup=t.intercalate,t.fold=function(n){var e=(0,t.concatAll)(n);return function(n,t){return void 0===t?e(n):e(n)(t)}},t.semigroupAll={concat:function(n,t){return n&&t}},t.semigroupAny={concat:function(n,t){return n||t}},t.getFunctionSemigroup=o.getSemigroup,t.semigroupString={concat:function(n,t){return n+t}},t.semigroupSum={concat:function(n,t){return n+t}},t.semigroupProduct={concat:function(n,t){return n*t}}},4773:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.right=t.left=t.flap=t.Functor=t.Bifunctor=t.URI=t.bimap=t.mapLeft=t.map=t.separated=void 0;var r=e(14632),i=e(8762);t.separated=function(n,t){return{left:n,right:t}},t.map=function(n){return function(e){return(0,t.separated)((0,t.left)(e),n((0,t.right)(e)))}},t.mapLeft=function(n){return function(e){return(0,t.separated)(n((0,t.left)(e)),(0,t.right)(e))}},t.bimap=function(n,e){return function(r){return(0,t.separated)(n((0,t.left)(r)),e((0,t.right)(r)))}},t.URI="Separated",t.Bifunctor={URI:t.URI,mapLeft:function(n,e){return(0,r.pipe)(n,(0,t.mapLeft)(e))},bimap:function(n,e,i){return(0,r.pipe)(n,(0,t.bimap)(e,i))}},t.Functor={URI:t.URI,map:function(n,e){return(0,r.pipe)(n,(0,t.map)(e))}},t.flap=(0,i.flap)(t.Functor),t.left=function(n){return n.left},t.right=function(n){return n.right}},69706:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.filterE=t.witherDefault=t.wiltDefault=void 0;var o=u(e(5309));t.wiltDefault=function(n,t){return function(e){var r=n.traverse(e);return function(n,i){return e.map(r(n,i),t.separate)}}},t.witherDefault=function(n,t){return function(e){var r=n.traverse(e);return function(n,i){return e.map(r(n,i),t.compact)}}},t.filterE=function(n){return function(t){var e=n.wither(t);return function(n){return function(r){return e(r,function(e){return t.map(n(e),function(n){return n?o.some(e):o.none})})}}}}},3899:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.guard=void 0,t.guard=function(n,t){return function(e){return e?t.of(void 0):n.zero()}}},14632:function(n,t){var e=this&&this.__spreadArray||function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))};function r(n){return n}function i(n){return function(){return n}}function u(n,t,e,r,i,u,o,a,c){switch(arguments.length){case 1:return n;case 2:return function(){return t(n.apply(this,arguments))};case 3:return function(){return e(t(n.apply(this,arguments)))};case 4:return function(){return r(e(t(n.apply(this,arguments))))};case 5:return function(){return i(r(e(t(n.apply(this,arguments)))))};case 6:return function(){return u(i(r(e(t(n.apply(this,arguments))))))};case 7:return function(){return o(u(i(r(e(t(n.apply(this,arguments)))))))};case 8:return function(){return a(o(u(i(r(e(t(n.apply(this,arguments))))))))};case 9:return function(){return c(a(o(u(i(r(e(t(n.apply(this,arguments)))))))))}}}function o(n){throw Error("Called `absurd` function which should be uncallable")}Object.defineProperty(t,"__esModule",{value:!0}),t.dual=t.getEndomorphismMonoid=t.not=t.SK=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.unsafeCoerce=t.identity=t.apply=t.getRing=t.getSemiring=t.getMonoid=t.getSemigroup=t.getBooleanAlgebra=void 0,t.getBooleanAlgebra=function(n){return function(){return{meet:function(t,e){return function(r){return n.meet(t(r),e(r))}},join:function(t,e){return function(r){return n.join(t(r),e(r))}},zero:function(){return n.zero},one:function(){return n.one},implies:function(t,e){return function(r){return n.implies(t(r),e(r))}},not:function(t){return function(e){return n.not(t(e))}}}}},t.getSemigroup=function(n){return function(){return{concat:function(t,e){return function(r){return n.concat(t(r),e(r))}}}}},t.getMonoid=function(n){var e=(0,t.getSemigroup)(n);return function(){return{concat:e().concat,empty:function(){return n.empty}}}},t.getSemiring=function(n){return{add:function(t,e){return function(r){return n.add(t(r),e(r))}},zero:function(){return n.zero},mul:function(t,e){return function(r){return n.mul(t(r),e(r))}},one:function(){return n.one}}},t.getRing=function(n){var e=(0,t.getSemiring)(n);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(t,e){return function(r){return n.sub(t(r),e(r))}}}},t.apply=function(n){return function(t){return t(n)}},t.identity=r,t.unsafeCoerce=r,t.constant=i,t.constTrue=i(!0),t.constFalse=i(!1),t.constNull=i(null),t.constUndefined=i(void 0),t.constVoid=t.constUndefined,t.flip=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length>1?n(t[1],t[0]):function(e){return n(e)(t[0])}}},t.flow=u,t.tuple=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n},t.increment=function(n){return n+1},t.decrement=function(n){return n-1},t.absurd=o,t.tupled=function(n){return function(t){return n.apply(void 0,t)}},t.untupled=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n(t)}},t.pipe=function(n,t,e,r,i,u,o,a,c){switch(arguments.length){case 1:return n;case 2:return t(n);case 3:return e(t(n));case 4:return r(e(t(n)));case 5:return i(r(e(t(n))));case 6:return u(i(r(e(t(n)))));case 7:return o(u(i(r(e(t(n))))));case 8:return a(o(u(i(r(e(t(n)))))));case 9:return c(a(o(u(i(r(e(t(n))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}},t.hole=o,t.SK=function(n,t){return t},t.not=function(n){return function(t){return!n(t)}},t.getEndomorphismMonoid=function(){return{concat:function(n,t){return u(n,t)},empty:r}},t.dual=function(n,t){var r="number"==typeof n?function(t){return t.length>=n}:n;return function(){var n=Array.from(arguments);return r(arguments)?t.apply(this,n):function(r){return t.apply(void 0,e([r],n,!1))}}}},5309:function(n,t,e){var r=this&&this.__spreadArray||function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.flatMapReader=t.flatMapTask=t.flatMapIO=t.flatMapEither=t.flatMapOption=t.flatMapNullable=t.liftOption=t.liftNullable=t.fromReadonlyNonEmptyArray=t.has=t.emptyRecord=t.emptyReadonlyArray=t.tail=t.head=t.isNonEmpty=t.singleton=t.right=t.left=t.isRight=t.isLeft=t.some=t.none=t.isSome=t.isNone=void 0;var i=e(14632);t.isNone=function(n){return"None"===n._tag},t.isSome=function(n){return"Some"===n._tag},t.none={_tag:"None"},t.some=function(n){return{_tag:"Some",value:n}},t.isLeft=function(n){return"Left"===n._tag},t.isRight=function(n){return"Right"===n._tag},t.left=function(n){return{_tag:"Left",left:n}},t.right=function(n){return{_tag:"Right",right:n}},t.singleton=function(n){return[n]},t.isNonEmpty=function(n){return n.length>0},t.head=function(n){return n[0]},t.tail=function(n){return n.slice(1)},t.emptyReadonlyArray=[],t.emptyRecord={},t.has=Object.prototype.hasOwnProperty,t.fromReadonlyNonEmptyArray=function(n){return r([n[0]],n.slice(1),!0)},t.liftNullable=function(n){return function(e,r){return function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var o=e.apply(void 0,i);return n.fromEither(null==o?(0,t.left)(r.apply(void 0,i)):(0,t.right)(o))}}},t.liftOption=function(n){return function(e,r){return function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var o=e.apply(void 0,i);return n.fromEither((0,t.isNone)(o)?(0,t.left)(r.apply(void 0,i)):(0,t.right)(o.value))}}},t.flatMapNullable=function(n,e){return(0,i.dual)(3,function(r,i,u){return e.flatMap(r,(0,t.liftNullable)(n)(i,u))})},t.flatMapOption=function(n,e){return(0,i.dual)(3,function(r,i,u){return e.flatMap(r,(0,t.liftOption)(n)(i,u))})},t.flatMapEither=function(n,t){return(0,i.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromEither(r(t))})})},t.flatMapIO=function(n,t){return(0,i.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromIO(r(t))})})},t.flatMapTask=function(n,t){return(0,i.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromTask(r(t))})})},t.flatMapReader=function(n,t){return(0,i.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromReader(r(t))})})}},40457:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Field=t.MonoidProduct=t.MonoidSum=t.SemigroupProduct=t.SemigroupSum=t.MagmaSub=t.Show=t.Bounded=t.Ord=t.Eq=t.isNumber=void 0,t.isNumber=function(n){return"number"==typeof n},t.Eq={equals:function(n,t){return n===t}},t.Ord={equals:t.Eq.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},t.Bounded={equals:t.Eq.equals,compare:t.Ord.compare,top:1/0,bottom:-1/0},t.Show={show:function(n){return JSON.stringify(n)}},t.MagmaSub={concat:function(n,t){return n-t}},t.SemigroupSum={concat:function(n,t){return n+t}},t.SemigroupProduct={concat:function(n,t){return n*t}},t.MonoidSum={concat:t.SemigroupSum.concat,empty:0},t.MonoidProduct={concat:t.SemigroupProduct.concat,empty:1},t.Field={add:t.SemigroupSum.concat,zero:0,mul:t.SemigroupProduct.concat,one:1,sub:t.MagmaSub.concat,degree:function(n){return 1},div:function(n,t){return n/t},mod:function(n,t){return n%t}}},67794:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.pipe=t.pipeable=t.compose=t.promap=t.partitionMapWithIndex=t.partitionWithIndex=t.filterMapWithIndex=t.filterWithIndex=t.partitionMap=t.partition=t.filterMap=t.filter=t.alt=t.reduceRightWithIndex=t.foldMapWithIndex=t.reduceWithIndex=t.reduceRight=t.foldMap=t.reduce=t.extend=t.mapLeft=t.bimap=t.chain=t.ap=t.mapWithIndex=t.contramap=t.map=void 0;var r=e(93145),i=e(18222),u=e(14632);function o(n){return function(t){return function(e){return n.map(e,t)}}}function a(n){return function(t){return function(e){return n.contramap(e,t)}}}function c(n){return function(t){return function(e){return n.mapWithIndex(e,t)}}}function f(n){return function(t){return function(e){return n.ap(e,t)}}}function l(n){return function(t){return function(e){return n.chain(e,t)}}}function p(n){return function(t,e){return function(r){return n.bimap(r,t,e)}}}function d(n){return function(t){return function(e){return n.mapLeft(e,t)}}}function s(n){return function(t){return function(e){return n.extend(e,t)}}}function h(n){return function(t,e){return function(r){return n.reduce(r,t,e)}}}function m(n){return function(t){var e=n.foldMap(t);return function(n){return function(t){return e(t,n)}}}}function v(n){return function(t,e){return function(r){return n.reduceRight(r,t,e)}}}function g(n){return function(t,e){return function(r){return n.reduceWithIndex(r,t,e)}}}function y(n){return function(t){var e=n.foldMapWithIndex(t);return function(n){return function(t){return e(t,n)}}}}function b(n){return function(t,e){return function(r){return n.reduceRightWithIndex(r,t,e)}}}function _(n){return function(t){return function(e){return n.alt(e,t)}}}function I(n){return function(t){return function(e){return n.filter(e,t)}}}function R(n){return function(t){return function(e){return n.filterMap(e,t)}}}function S(n){return function(t){return function(e){return n.partition(e,t)}}}function T(n){return function(t){return function(e){return n.partitionMap(e,t)}}}function x(n){return function(t){return function(e){return n.filterWithIndex(e,t)}}}function w(n){return function(t){return function(e){return n.filterMapWithIndex(e,t)}}}function M(n){return function(t){return function(e){return n.partitionWithIndex(e,t)}}}function O(n){return function(t){return function(e){return n.partitionMapWithIndex(e,t)}}}function E(n){return function(t,e){return function(r){return n.promap(r,t,e)}}}function C(n){return function(t){return function(e){return n.compose(e,t)}}}t.map=o,t.contramap=a,t.mapWithIndex=c,t.ap=f,t.chain=l,t.bimap=p,t.mapLeft=d,t.extend=s,t.reduce=h,t.foldMap=m,t.reduceRight=v,t.reduceWithIndex=g,t.foldMapWithIndex=y,t.reduceRightWithIndex=b,t.alt=_,t.filter=I,t.filterMap=R,t.partition=S,t.partitionMap=T,t.filterWithIndex=x,t.filterMapWithIndex=w,t.partitionWithIndex=M,t.partitionMapWithIndex=O,t.promap=E,t.compose=C,t.pipeable=function(n){var t={};return"function"==typeof n.map&&(t.map=o(n)),"function"==typeof n.contramap&&(t.contramap=a(n)),"function"==typeof n.mapWithIndex&&(t.mapWithIndex=c(n)),"function"==typeof n.ap&&(t.ap=f(n),t.apFirst=(0,r.apFirst)(n),t.apSecond=(0,r.apSecond)(n)),"function"==typeof n.chain&&(t.chain=l(n),t.chainFirst=(0,i.chainFirst)(n),t.flatten=t.chain(u.identity)),"function"==typeof n.bimap&&(t.bimap=p(n),t.mapLeft=d(n)),"function"==typeof n.extend&&(t.extend=s(n),t.duplicate=t.extend(u.identity)),"function"==typeof n.reduce&&(t.reduce=h(n),t.foldMap=m(n),t.reduceRight=v(n)),"function"==typeof n.reduceWithIndex&&(t.reduceWithIndex=g(n),t.foldMapWithIndex=y(n),t.reduceRightWithIndex=b(n)),"function"==typeof n.alt&&(t.alt=_(n)),"function"==typeof n.compact&&(t.compact=n.compact,t.separate=n.separate),"function"==typeof n.filter&&(t.filter=I(n),t.filterMap=R(n),t.partition=S(n),t.partitionMap=T(n)),"function"==typeof n.filterWithIndex&&(t.filterWithIndex=x(n),t.filterMapWithIndex=w(n),t.partitionWithIndex=M(n),t.partitionMapWithIndex=O(n)),"function"==typeof n.promap&&(t.promap=E(n)),"function"==typeof n.compose&&(t.compose=C(n)),"function"==typeof n.throwError&&(t.fromOption=function(t){return function(e){return"None"===e._tag?n.throwError(t()):n.of(e.value)}},t.fromEither=function(t){return"Left"===t._tag?n.throwError(t.left):n.of(t.right)},t.fromPredicate=function(t,e){return function(r){return t(r)?n.of(r):n.throwError(e(r))}},t.filterOrElse=function(t,e){return function(r){return n.chain(r,function(r){return t(r)?n.of(r):n.throwError(e(r))})}}),t},t.pipe=u.pipe},23284:function(n,t,e){e.r(t),e.d(t,{BigIntFromString:function(){return tv},BooleanFromNumber:function(){return ty},BooleanFromString:function(){return tn},DateFromISOString:function(){return n1},DateFromNumber:function(){return n8},DateFromUnixTime:function(){return to},IntFromString:function(){return tc},Json:function(){return tp},JsonArray:function(){return tf},JsonFromString:function(){return td},JsonRecord:function(){return tl},NonEmptyString:function(){return o},NumberFromString:function(){return ta},UUID:function(){return n9},clone:function(){return n5},date:function(){return g},either:function(){return tm},fromNewtype:function(){return nJ},fromNullable:function(){return n6},fromRefinement:function(){return v},getLenses:function(){return ti},mapFromEntries:function(){return tI},mapOutput:function(){return i.mapOutput},nonEmptyArray:function(){return d},option:function(){return nQ},optionFromNullable:function(){return n0},readonlyMapFromEntries:function(){return tR},readonlyNonEmptyArray:function(){return n2},readonlySetFromArray:function(){return m},regexp:function(){return tu},setFromArray:function(){return h},withEncode:function(){return tg},withFallback:function(){return n4},withMessage:function(){return tt},withValidate:function(){return n3}});var r={};e.r(r),e.d(r,{Category:function(){return nM},Invariant:function(){return nx},Semigroupoid:function(){return nw},URI:function(){return nT},asOptional:function(){return $},asTraversal:function(){return Z},atKey:function(){return nm},component:function(){return np},compose:function(){return Q},composeIso:function(){return nt},composeLens:function(){return nn},composeOptional:function(){return nr},composePrism:function(){return ne},composeTraversal:function(){return ni},filter:function(){return nc},findFirst:function(){return n_},findFirstNonEmpty:function(){return nI},fromNullable:function(){return na},id:function(){return J},imap:function(){return nR},index:function(){return nd},indexNonEmpty:function(){return ns},key:function(){return nh},left:function(){return ny},lens:function(){return X},modify:function(){return nu},modifyF:function(){return no},prop:function(){return nf},props:function(){return nl},right:function(){return ng},some:function(){return nv},traverse:function(){return nb}});var i=e(47361),u=e(87830),o=u.brand(u.string,function(n){return n.length>0},"NonEmptyString"),a=e(43586),c=e(1358),f=e(18896),l=e(81878),p=e(20492);function d(n,t){void 0===t&&(t="NonEmptyArray<"+n.name+">");var e=u.array(n);return new u.Type(t,function(n){return e.is(n)&&(0,c.isNonEmpty)(n)},function(n,t){return(0,f.pipe)(e.validate(n,t),(0,l.chain)(function(e){var r=(0,a.fromArray)(e);return(0,p.isNone)(r)?u.failure(n,t):u.success(r.value)}))},(0,a.map)(n.encode))}var s=e(1214);function h(n,t,e){void 0===e&&(e="Set<"+n.name+">");var r=u.array(n),i=(0,s.toArray)(t),o=(0,s.fromArray)(t);return new u.Type(e,function(t){return t instanceof Set&&(0,s.every)(n.is)(t)},function(n,t){return(0,f.pipe)(r.validate(n,t),(0,l.chain)(function(e){var r=o(e);return r.size!==e.length?u.failure(n,t):u.success(r)}))},function(n){return r.encode(i(n))})}function m(n,t,e){return void 0===e&&(e="ReadonlySet<"+n.name+">"),h(n,t,e)}function v(n,t){return new u.Type(n,t,function(n,e){return t(n)?u.success(n):u.failure(n,e)},u.identity)}var g=v("Date",function(n){return n instanceof Date}),y=e(42275),b=e(90817),_=e(96576),I=e(31583),R=e(97054),S=function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},T=function(n){return w(n.get,(0,y.flow)(n.reverseGet,y.constant))},x=function(n){return U((0,y.flow)(n.get,p.some),(0,y.flow)(n.reverseGet,y.constant))},w=function(n,t){return{get:n,set:t}},M=function(n){return U((0,y.flow)(n.get,p.some),n.set)},O=function(n){return function(t){return w(function(e){return n.get(t.get(e))},function(e){return function(r){return t.set(n.set(e)(t.get(r)))(r)}})}},E=function(n){return function(t){return N(k(n))(M(t))}},C=function(n,t){return{getOption:n,reverseGet:t}},k=function(n){return U(n.getOption,function(t){return F(t)(n)})},W=function(n){return q(function(t){return function(e){return function(r){return(0,f.pipe)(n.getOption(r),p.fold(function(){return t.of(r)},function(i){return t.map(e(i),function(t){return F(t)(n)(r)})}))}}})},F=function(n){var t;return t=function(){return n},function(n){return function(e){var r;return(0,f.pipe)((r=e,(0,f.pipe)(n.getOption(r),p.map(function(e){var i=t(e);return i===e?r:n.reverseGet(i)}))),p.getOrElse(function(){return e}))}}},P=function(n){return C(p.fromPredicate(n),y.identity)},A=function(){return C(y.identity,p.some)},U=function(n,t){return{getOption:n,set:t}},D=function(n){return function(t){return function(e){return(0,f.pipe)(t.getOption(e),p.map(function(r){var i=n(r);return i===r?e:t.set(i)(e)}))}}},L=function(n){return function(t){var e=D(n)(t);return function(n){return(0,f.pipe)(e(n),p.getOrElse(function(){return n}))}}},N=function(n){return function(t){return U((0,y.flow)(t.getOption,p.chain(n.getOption)),function(e){return L(n.set(e))(t)})}},j=function(n,t,e){if(e[n]===t)return e;var r=S([e[0]],e.slice(1),!0);return r[n]=t,r},q=function(n){return{modifyF:n}};function G(n){return function(t){return q(function(e){return function(r){return t.modifyF(e)(n.modifyF(e)(r))}})}}var K={URI:"Identity",map:function(n,t){return t(n)},of:y.identity,ap:function(n,t){return n(t)}},Y=function(n){return{index:n}},B=function(n){return{at:n}},V=function(n,t){return{get:n,reverseGet:t}},H=function(n){return C((0,y.flow)(n.get,p.some),n.reverseGet)},z=function(n){return q(function(t){return function(e){return function(r){return t.map(e(n.get(r)),function(t){return n.reverseGet(t)})}}})},X=w,J=function(){return w(y.identity,y.constant)},$=M,Z=function(n){return q(function(t){return function(e){return function(r){return t.map(e(n.get(r)),function(t){return n.set(t)(r)})}}})},Q=O,nn=Q,nt=(0,y.flow)(T,Q),ne=E,nr=function(n){return(0,y.flow)($,N(n))},ni=function(n){return(0,y.flow)(Z,G(n))},nu=function(n){return function(t){return function(e){var r=t.get(e),i=n(r);return r===i?e:t.set(i)(e)}}};function no(n){return function(t){return function(e){return function(r){return(0,f.pipe)(e.get(r),t,function(t){return n.map(t,function(n){return e.set(n)(r)})})}}}}var na=function(n){return ne(C(p.fromNullable,y.identity))(n)};function nc(n){return ne(P(n))}var nf=function(n){return function(t){return w(function(e){return t.get(e)[n]},function(e){return function(r){var i,u=t.get(r);return e===u[n]?r:t.set(Object.assign({},u,((i={})[n]=e,i)))(r)}})}},nl=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return function(t){return w(function(e){for(var r=t.get(e),i={},u=0;u<n.length;u++){var o=n[u];i[o]=r[o]}return i},function(e){return function(r){for(var i=t.get(r),u=0;u<n.length;u++){var o=n[u];if(e[o]!==i[o])return t.set(Object.assign({},i,e))(r)}return r}})}},np=function(n){return function(t){return w(function(e){return t.get(e)[n]},function(e){return function(r){var i=t.get(r);if(e===i[n])return r;var u=i.slice();return u[n]=e,t.set(u)(r)}})}},nd=function(n){return(0,y.flow)($,function(t){return(0,f.pipe)(t,N(Y(function(n){return U(function(t){return I.lookup(n,t)},function(t){return function(e){return(0,f.pipe)(I.lookup(n,e),p.fold(function(){return e},function(){return I.unsafeUpdateAt(n,t,e)}))}})}).index(n)))})},ns=function(n){return(0,y.flow)($,function(t){return(0,f.pipe)(t,N(Y(function(n){return U(function(t){return I.lookup(n,t)},function(t){return function(e){return(0,f.pipe)(I.lookup(n,e),p.fold(function(){return e},function(){return j(n,t,e)}))}})}).index(n)))})},nh=function(n){return(0,y.flow)($,function(t){return(0,f.pipe)(t,N(Y(function(n){return U(function(t){return R.lookup(n,t)},function(t){return function(e){return e[n]===t||p.isNone(R.lookup(n,e))?e:R.insertAt(n,t)(e)}})}).index(n)))})},nm=function(n){return function(t){return(0,f.pipe)(t,O(B(function(n){return w(function(t){return R.lookup(n,t)},p.fold(function(){return R.deleteAt(n)},function(t){return R.insertAt(n,t)}))}).at(n)))}},nv=ne(A()),ng=ne(C(p.fromEither,l.right)),ny=ne(C(function(n){return l.isLeft(n)?p.some(n.left):p.none},l.left));function nb(n){return(0,y.flow)(Z,G(q(function(t){var e="Identity"===t.URI?n.map:n.traverse(t);return function(n){return function(t){return e(t,n)}}})))}function n_(n){return nr(U(I.findFirst(n),function(t){return function(e){return(0,f.pipe)(I.findIndex(n)(e),p.fold(function(){return e},function(n){return I.unsafeUpdateAt(n,t,e)}))}}))}function nI(n){return nr(U(I.findFirst(n),function(t){return function(e){return(0,f.pipe)(I.findIndex(n)(e),p.fold(function(){return e},function(n){return j(n,t,e)}))}}))}var nR=function(n,t){return function(e){return nS(e,n,t)}},nS=function(n,t,e){return X((0,y.flow)(n.get,t),(0,y.flow)(e,n.set))},nT="monocle-ts/Lens",nx={URI:nT,imap:nS},nw={URI:nT,compose:function(n,t){return Q(n)(t)}},nM={URI:nT,compose:nw.compose,id:J},nO=function(n){return q(function(t){return function(e){return function(r){return(0,f.pipe)(n.getOption(r),p.fold(function(){return t.of(r)},function(i){return t.map(e(i),function(t){return n.set(t)(r)})}))}}})},nE=function(n){return function(t){return C((0,y.flow)(t.getOption,p.chain(n.getOption)),(0,y.flow)(n.reverseGet,t.reverseGet))}},nC=function(n){return function(t){return t.modifyF(K)(n)}},nk=function(n){return new nL(n.get,n.reverseGet)},nW=function(n){return new nN(n.get,n.set)},nF=function(n){return new nj(n.getOption,n.reverseGet)},nP=function(n){return new nG(n.getOption,n.set)},nA=function(n){return new nK(n.modifyF)},nU=function(n){return new nB(function(t){return nP(n.index(t))})},nD=function(n,t,e){var r;return e===n[t]?n:Object.assign({},n,((r={})[t]=e,r))},nL=function(){function n(n,t){this.get=n,this.reverseGet=t,this._tag="Iso",this.unwrap=this.get,this.to=this.get,this.wrap=this.reverseGet,this.from=this.reverseGet}return n.prototype.reverse=function(){return nk(V(this.reverseGet,this.get))},n.prototype.modify=function(n){var t;return t=this,function(e){return t.reverseGet(n(t.get(e)))}},n.prototype.asLens=function(){return nW(T(this))},n.prototype.asPrism=function(){return nF(H(this))},n.prototype.asOptional=function(){return nP(x(this))},n.prototype.asTraversal=function(){return nA(z(this))},n.prototype.asFold=function(){var n=this;return new nH(function(){return function(t){return function(e){return t(n.get(e))}}})},n.prototype.asGetter=function(){var n=this;return new nV(function(t){return n.get(t)})},n.prototype.asSetter=function(){var n=this;return new nz(function(t){return n.modify(t)})},n.prototype.compose=function(n){var t;return nk((t=this,V((0,y.flow)(t.get,n.get),(0,y.flow)(n.reverseGet,t.reverseGet))))},n.prototype.composeIso=function(n){return this.compose(n)},n.prototype.composeLens=function(n){return nW((0,f.pipe)(this,T,Q(n)))},n.prototype.composePrism=function(n){return nF((0,f.pipe)(this,H,nE(n)))},n.prototype.composeOptional=function(n){return nP((0,f.pipe)(this,x,N(n)))},n.prototype.composeTraversal=function(n){return nA((0,f.pipe)(this,z,G(n)))},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeGetter=function(n){return this.asGetter().compose(n)},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n}(),nN=function(){function n(n,t){this.get=n,this.set=t,this._tag="Lens"}return n.fromPath=function(){var t=n.fromProp();return function(n){var e=t(n[0]);return n.slice(1).reduce(function(n,e){return n.compose(t(e))},e)}},n.fromProp=function(){return function(n){return nW((0,f.pipe)(J(),nf(n)))}},n.fromProps=function(){return function(n){return nW((0,f.pipe)(J(),nl.apply(r,n)))}},n.fromNullableProp=function(){return function(t,e){return new n(function(n){var r=(0,p.fromNullable)(n[t]);return(0,p.isNone)(r)?e:r.value},function(n){return function(e){return nD(e,t,n)}})}},n.prototype.modify=function(n){return nu(n)(this)},n.prototype.asOptional=function(){return nP($(this))},n.prototype.asTraversal=function(){return nA(Z(this))},n.prototype.asSetter=function(){var n=this;return new nz(function(t){return n.modify(t)})},n.prototype.asGetter=function(){var n=this;return new nV(function(t){return n.get(t)})},n.prototype.asFold=function(){var n=this;return new nH(function(){return function(t){return function(e){return t(n.get(e))}}})},n.prototype.compose=function(n){return nW(Q(n)(this))},n.prototype.composeLens=function(n){return this.compose(n)},n.prototype.composeGetter=function(n){return this.asGetter().compose(n)},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeOptional=function(n){return nP((0,f.pipe)(this,$,N(n)))},n.prototype.composeTraversal=function(n){return nA((0,f.pipe)(this,Z,G(n)))},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n.prototype.composeIso=function(n){return nW((0,f.pipe)(this,Q((0,f.pipe)(n,T))))},n.prototype.composePrism=function(n){return nP(ne(n)(this))},n}(),nj=function(){function n(n,t){this.getOption=n,this.reverseGet=t,this._tag="Prism"}return n.fromPredicate=function(n){return nF(P(n))},n.some=function(){return nq},n.prototype.modify=function(n){var t=this;return function(e){var r=t.modifyOption(n)(e);return(0,p.isNone)(r)?e:r.value}},n.prototype.modifyOption=function(n){var t=this;return function(e){return p.option.map(t.getOption(e),function(r){var i=n(r);return i===r?e:t.reverseGet(i)})}},n.prototype.set=function(n){return this.modify(function(){return n})},n.prototype.asOptional=function(){return nP(k(this))},n.prototype.asTraversal=function(){return nA(W(this))},n.prototype.asSetter=function(){var n=this;return new nz(function(t){return n.modify(t)})},n.prototype.asFold=function(){var n=this;return new nH(function(t){return function(e){return function(r){var i=n.getOption(r);return(0,p.isNone)(i)?t.empty:e(i.value)}}})},n.prototype.compose=function(n){return nF(nE(n)(this))},n.prototype.composePrism=function(n){return this.compose(n)},n.prototype.composeOptional=function(n){return nP((0,f.pipe)(this,k,N(n)))},n.prototype.composeTraversal=function(n){return nA((0,f.pipe)(this,W,G(n)))},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n.prototype.composeIso=function(n){return nF((0,f.pipe)(this,nE((0,f.pipe)(n,H))))},n.prototype.composeLens=function(n){return nP(N(M(n))(k(this)))},n.prototype.composeGetter=function(n){return this.asFold().compose(n.asFold())},n}(),nq=new nj(y.identity,p.some),nG=function(){function n(n,t){this.getOption=n,this.set=t,this._tag="Optional"}return n.fromPath=function(){var t=n.fromNullableProp();return function(n){var e=t(n[0]);return n.slice(1).reduce(function(n,e){return n.compose(t(e))},e)}},n.fromNullableProp=function(){return function(t){return new n(function(n){return(0,p.fromNullable)(n[t])},function(n){return function(e){return null==e[t]?e:nD(e,t,n)}})}},n.fromOptionProp=function(){var n=nN.fromProp();return function(t){return n(t).composePrism(nq)}},n.prototype.modify=function(n){return L(n)(this)},n.prototype.modifyOption=function(n){return D(n)(this)},n.prototype.asTraversal=function(){return nA(nO(this))},n.prototype.asFold=function(){var n=this;return new nH(function(t){return function(e){return function(r){var i=n.getOption(r);return(0,p.isNone)(i)?t.empty:e(i.value)}}})},n.prototype.asSetter=function(){var n=this;return new nz(function(t){return n.modify(t)})},n.prototype.compose=function(n){return nP(N(n)(this))},n.prototype.composeOptional=function(n){return this.compose(n)},n.prototype.composeTraversal=function(n){return nA((0,f.pipe)(this,nO,G(n)))},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n.prototype.composeLens=function(n){return nP((0,f.pipe)(this,N((0,f.pipe)(n,$))))},n.prototype.composePrism=function(n){return nP((0,f.pipe)(this,N((0,f.pipe)(n,k))))},n.prototype.composeIso=function(n){return nP((0,f.pipe)(this,N((0,f.pipe)(n,x))))},n.prototype.composeGetter=function(n){return this.asFold().compose(n.asFold())},n}(),nK=function(){function n(n){this.modifyF=n,this._tag="Traversal"}return n.prototype.modify=function(n){return nC(n)(this)},n.prototype.set=function(n){return nC(function(){return n})(this)},n.prototype.filter=function(n){return nA(G(W(P(n)))(this))},n.prototype.asFold=function(){var n=this;return new nH(function(t){return function(e){return n.modifyF((0,b.getApplicative)(t))(function(n){return(0,b.make)(e(n))})}})},n.prototype.asSetter=function(){var n=this;return new nz(function(t){return n.modify(t)})},n.prototype.compose=function(n){return nA(G(n)(this))},n.prototype.composeTraversal=function(n){return this.compose(n)},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n.prototype.composeOptional=function(n){return this.compose(n.asTraversal())},n.prototype.composeLens=function(n){return nA((0,f.pipe)(this,G((0,f.pipe)(n,Z))))},n.prototype.composePrism=function(n){return nA((0,f.pipe)(this,G((0,f.pipe)(n,W))))},n.prototype.composeIso=function(n){return nA((0,f.pipe)(this,G((0,f.pipe)(n,z))))},n.prototype.composeGetter=function(n){return this.asFold().compose(n.asFold())},n}(),nY=function(){function n(n){this.at=n,this._tag="At"}return n.prototype.fromIso=function(n){var t,e;return e=this,t=B(function(t){return(0,f.pipe)(n,T,O(e.at(t)))}),new nY(function(n){return nW(t.at(n))})},n}(),nB=function(){function n(n){this.index=n,this._tag="Index"}return n.fromAt=function(n){return nU(Y(function(t){return E(A())(n.at(t))}))},n.prototype.fromIso=function(n){var t;return nU((t=this,Y(function(e){return(0,f.pipe)(n,x,N(t.index(e)))})))},n}(),nV=function(){function n(n){this.get=n,this._tag="Getter"}return n.prototype.asFold=function(){var n=this;return new nH(function(){return function(t){return function(e){return t(n.get(e))}}})},n.prototype.compose=function(t){var e=this;return new n(function(n){return t.get(e.get(n))})},n.prototype.composeGetter=function(n){return this.compose(n)},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeLens=function(n){return this.compose(n.asGetter())},n.prototype.composeIso=function(n){return this.compose(n.asGetter())},n.prototype.composeTraversal=function(n){return this.asFold().compose(n.asFold())},n.prototype.composeOptional=function(n){return this.asFold().compose(n.asFold())},n.prototype.composePrism=function(n){return this.asFold().compose(n.asFold())},n}(),nH=function(){function n(n){this.foldMap=n,this._tag="Fold",this.getAll=n(c.getMonoid())(c.of),this.exist=n(_.monoidAny),this.all=n(_.monoidAll),this.foldMapFirst=n((0,p.getFirstMonoid)())}return n.prototype.compose=function(t){var e=this;return new n(function(n){return function(r){return e.foldMap(n)(t.foldMap(n)(r))}})},n.prototype.composeFold=function(n){return this.compose(n)},n.prototype.composeGetter=function(n){return this.compose(n.asFold())},n.prototype.composeTraversal=function(n){return this.compose(n.asFold())},n.prototype.composeOptional=function(n){return this.compose(n.asFold())},n.prototype.composeLens=function(n){return this.compose(n.asFold())},n.prototype.composePrism=function(n){return this.compose(n.asFold())},n.prototype.composeIso=function(n){return this.compose(n.asFold())},n.prototype.find=function(n){return this.foldMapFirst((0,p.fromPredicate)(n))},n.prototype.headOption=function(n){return this.find(function(){return!0})(n)},n}(),nz=function(){function n(n){this.modify=n,this._tag="Setter"}return n.prototype.set=function(n){return this.modify((0,y.constant)(n))},n.prototype.compose=function(t){var e=this;return new n(function(n){return e.modify(t.modify(n))})},n.prototype.composeSetter=function(n){return this.compose(n)},n.prototype.composeTraversal=function(n){return this.compose(n.asSetter())},n.prototype.composeOptional=function(n){return this.compose(n.asSetter())},n.prototype.composeLens=function(n){return this.compose(n.asSetter())},n.prototype.composePrism=function(n){return this.compose(n.asSetter())},n.prototype.composeIso=function(n){return this.compose(n.asSetter())},n}(),nX=new nL(y.unsafeCoerce,y.unsafeCoerce);function nJ(n,t){return void 0===t&&(t="fromNewtype("+n.name+")"),new u.Type(t,function(t){return n.is(t)},function(t,e){return(0,f.pipe)(n.validate(t,e),(0,l.map)(nX.wrap))},function(t){return n.encode(nX.unwrap(t))})}var n$=u.strict({_tag:u.literal("None")},"None"),nZ=u.literal("Some");function nQ(n,t){return void 0===t&&(t="Option<"+n.name+">"),u.union([n$,u.strict({_tag:nZ,value:n},"Some<"+n.name+">")],t)}function n0(n,t){return void 0===t&&(t="Option<"+n.name+">"),new u.Type(t,nQ(n).is,function(t,e){return null==t?u.success(p.none):(0,f.pipe)(n.validate(t,e),(0,l.map)(p.some))},function(t){return p.toNullable((0,f.pipe)(t,p.map(n.encode)))})}var n1=new u.Type("DateFromISOString",function(n){return n instanceof Date},function(n,t){return(0,f.pipe)(u.string.validate(n,t),(0,l.chain)(function(e){var r=new Date(e);return isNaN(r.getTime())?u.failure(n,t):u.success(r)}))},function(n){return n.toISOString()});function n2(n,t){return void 0===t&&(t="ReadonlyNonEmptyArray<"+n.name+">"),d(n,t)}function n5(n){var t=Object.create(Object.getPrototypeOf(n));return Object.assign(t,n),t}var n8=new u.Type("DateFromNumber",function(n){return n instanceof Date},function(n,t){return(0,f.pipe)(u.number.validate(n,t),(0,l.chain)(function(e){var r=new Date(e);return isNaN(r.getTime())?u.failure(n,t):u.success(r)}))},function(n){return n.getTime()});function n3(n,t,e){void 0===e&&(e=n.name);var r=n5(n);return r.validate=t,r.decode=function(n){return t(n,u.getDefaultContext(r))},r.name=e,r}function n4(n,t,e){return void 0===e&&(e="withFallback("+n.name+")"),n3(n,function(e,r){return(0,l.orElse)(function(){return u.success(t)})(n.validate(e,r))},e)}var n7=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,n9=u.brand(u.string,function(n){return n7.test(n)},"UUID");function n6(n,t,e){return void 0===e&&(e="fromNullable("+n.name+")"),n3(n,function(e,r){return null==e?u.success(t):n.validate(e,r)},e)}var tn=new u.Type("BooleanFromString",u.boolean.is,function(n,t){return(0,f.pipe)(u.string.validate(n,t),(0,l.chain)(function(e){return"true"===e?u.success(!0):"false"===e?u.success(!1):u.failure(n,t)}))},String);function tt(n,t){return n3(n,function(e,r){return(0,l.mapLeft)(function(){return[{value:e,context:r,message:t(e,r),actual:e}]})(n.validate(e,r))})}function te(n){switch(n._tag){case"InterfaceType":return n.props;case"ExactType":return te(n.type)}}var tr=nN.fromProp();function ti(n){var t={};for(var e in te(n))t[e]=tr(e);return t}var tu=v("RegExp",function(n){return"[object RegExp]"===Object.prototype.toString.call(n)}),to=new u.Type("DateFromUnixTime",function(n){return n instanceof Date},function(n,t){return(0,f.pipe)(u.Int.validate(n,t),(0,l.chain)(function(e){var r=new Date(1e3*e);return isNaN(r.getTime())?u.failure(n,t):u.success(r)}))},function(n){return Math.floor(n.getTime()/1e3)}),ta=new u.Type("NumberFromString",u.number.is,function(n,t){return(0,f.pipe)(u.string.validate(n,t),(0,l.chain)(function(e){var r=+e;return isNaN(r)||""===e.trim()?u.failure(n,t):u.success(r)}))},String),tc=new u.Type("IntFromString",u.Int.is,function(n,t){return(0,f.pipe)(ta.validate(n,t),(0,l.chain)(function(e){return u.Int.is(e)?u.success(e):u.failure(n,t)}))},ta.encode),tf=u.recursion("JsonArray",function(){return u.readonlyArray(tp)}),tl=u.recursion("JsonRecord",function(){return u.record(u.string,tp)}),tp=u.union([u.boolean,u.number,u.string,u.null,tf,tl],"Json"),td=new u.Type("JsonFromString",tp.is,function(n,t){try{return u.success(JSON.parse(n))}catch(e){return u.failure(n,t)}},function(n){return JSON.stringify(n)}),ts=u.literal("Left"),th=u.literal("Right");function tm(n,t,e){return void 0===e&&(e="Either<"+n.name+", "+t.name+">"),u.union([u.strict({_tag:ts,left:n},"Left<"+n.name+">"),u.strict({_tag:th,right:t},"Right<"+n.name+">")],e)}var tv=new u.Type("BigIntFromString",function(n){return"bigint"==typeof n},function(n,t){return(0,f.pipe)(u.string.validate(n,t),(0,l.chain)(function(e){if(!o.is(e.trim()))return u.failure(n,t);try{return u.success(BigInt(e))}catch(e){return u.failure(n,t)}}))},String);function tg(n,t,e){return void 0===e&&(e=n.name),new u.Type(e,n.is,n.validate,t)}var ty=new u.Type("BooleanFromNumber",u.boolean.is,function(n,t){return(0,f.pipe)(u.number.validate(n,t),(0,l.map)(function(n){return 0!==n}))},Number),tb=e(55116),t_=e(3291);function tI(n,t,e,r){void 0===r&&(r="Map<"+n.name+", "+e.name+">");var i,o,a=u.array(u.tuple([n,e])),f=(0,tb.toArray)(t),p=(0,tb.fromFoldable)(t,(0,t_.getLastSemigroup)(),c.Foldable),d=(i=n.is,o=e.is,function(n){for(var t,e=n.entries();!(t=e.next()).done;)if(!1===i(t.value[0])||!1===o(t.value[1]))return!1;return!0});return new u.Type(r,function(n){return n instanceof Map&&d(n)},function(n,t){return(0,y.pipe)(a.validate(n,t),(0,l.chain)(function(e){var r=p(e);return r.size!==e.length?u.failure(n,t):u.success(r)}))},function(n){return a.encode(f(n))})}function tR(n,t,e,r){return void 0===r&&(r="ReadonlyMap<"+n.name+", "+e.name+">"),tI(n,t,e,r)}},47361:function(n,t,e){e.r(t),e.d(t,{mapOutput:function(){return i}});var r=e(87830);function i(n,t,e){return void 0===e&&(e=n.name),new r.Type(e,n.is,n.validate,function(e){return t(n.encode(e))})}},11621:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.IntFromString=void 0;var o=u(e(87830)),a=e(59054),c=e(67794),f=e(87412);t.IntFromString=new o.Type("IntFromString",o.Int.is,function(n,t){return c.pipe(a.NumberFromString.validate(n,t),f.chain(function(e){return o.Int.is(e)?o.success(e):o.failure(n,t)}))},a.NumberFromString.encode)},59054:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NumberFromString=void 0;var o=u(e(87830)),a=e(67794),c=e(87412);t.NumberFromString=new o.Type("NumberFromString",o.number.is,function(n,t){return a.pipe(o.string.validate(n,t),c.chain(function(e){var r=+e;return isNaN(r)||""===e.trim()?o.failure(n,t):o.success(r)}))},String)},62886:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function(n){var t=Object.create(Object.getPrototypeOf(n));return Object.assign(t,n),t}},2932:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.mapOutput=void 0;var o=u(e(87830));t.mapOutput=function(n,t,e){return void 0===e&&(e=n.name),new o.Type(e,n.is,n.validate,function(e){return t(n.encode(e))})}},69624:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withFallback=void 0;var o=u(e(87830)),a=e(40308),c=e(87412);t.withFallback=function(n,t,e){return void 0===e&&(e="withFallback("+n.name+")"),a.withValidate(n,function(e,r){return c.orElse(function(){return o.success(t)})(n.validate(e,r))},e)}},40308:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withValidate=void 0;var o=u(e(87830)),a=e(62886);t.withValidate=function(n,t,e){void 0===e&&(e=n.name);var r=a.clone(n);return r.validate=t,r.decode=function(n){return t(n,o.getDefaultContext(r))},r.name=e,r}},87830:function(n,t,e){e.r(t),e.d(t,{AnyArrayType:function(){return $},AnyDictionaryType:function(){return Q},AnyType:function(){return nA},Array:function(){return Z},ArrayType:function(){return nl},BigIntType:function(){return H},BooleanType:function(){return X},Dictionary:function(){return nK},DictionaryType:function(){return nv},ExactType:function(){return nE},Function:function(){return nW},FunctionType:function(){return nk},Int:function(){return na},Integer:function(){return nL},InterfaceType:function(){return nd},IntersectionType:function(){return n_},KeyofType:function(){return nr},LiteralType:function(){return nt},NeverType:function(){return nF},NullType:function(){return A},NumberType:function(){return B},ObjectType:function(){return nY},PartialType:function(){return nh},ReadonlyArrayType:function(){return nw},ReadonlyType:function(){return nT},RecursiveType:function(){return nc},RefinementType:function(){return nu},StrictType:function(){return nH},StringType:function(){return K},TaggedUnionType:function(){return nN},TupleType:function(){return nR},Type:function(){return p},UndefinedType:function(){return D},UnionType:function(){return ny},UnknownArray:function(){return Z},UnknownRecord:function(){return nn},UnknownType:function(){return q},VoidType:function(){return N},alias:function(){return nX},any:function(){return nU},appendContext:function(){return m},array:function(){return np},bigint:function(){return z},boolean:function(){return J},brand:function(){return no},clean:function(){return nz},dictionary:function(){return nV},emptyTags:function(){return w},exact:function(){return nC},failure:function(){return f},failures:function(){return c},getContextEntry:function(){return h},getDefaultContext:function(){return nG},getDomainKeys:function(){return R},getFunctionName:function(){return s},getIndex:function(){return P},getTags:function(){return F},getValidationError:function(){return nq},identity:function(){return d},interface:function(){return ns},intersection:function(){return nI},keyof:function(){return ni},literal:function(){return ne},mergeAll:function(){return T},never:function(){return nP},null:function(){return U},nullType:function(){return U},number:function(){return V},object:function(){return nB},partial:function(){return nm},readonly:function(){return nx},readonlyArray:function(){return nM},record:function(){return ng},recursion:function(){return nf},refinement:function(){return nD},strict:function(){return nO},string:function(){return Y},success:function(){return l},taggedUnion:function(){return nj},tuple:function(){return nS},type:function(){return ns},undefined:function(){return L},union:function(){return nb},unknown:function(){return G},void:function(){return j},voidType:function(){return j}});var r,i=e(81878),u=(r=function(n,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])})(n,t)},function(n,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}),o=function(){return(o=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},a=function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},c=i.left,f=function(n,t,e){return c([{value:n,context:t,message:e}])},l=i.right,p=function(){function n(n,t,e,r){this.name=n,this.is=t,this.validate=e,this.encode=r,this.decode=this.decode.bind(this)}return n.prototype.pipe=function(t,e){var r=this;return void 0===e&&(e="pipe(".concat(this.name,", ").concat(t.name,")")),new n(e,t.is,function(n,e){var u=r.validate(n,e);return(0,i.isLeft)(u)?u:t.validate(u.right,e)},this.encode===d&&t.encode===d?d:function(n){return r.encode(t.encode(n))})},n.prototype.asDecoder=function(){return this},n.prototype.asEncoder=function(){return this},n.prototype.decode=function(n){return this.validate(n,[{key:"",type:this,actual:n}])},n}(),d=function(n){return n};function s(n){return n.displayName||n.name||"<function".concat(n.length,">")}function h(n,t){return{key:n,type:t}}function m(n,t,e,r){for(var i=n.length,u=Array(i+1),o=0;o<i;o++)u[o]=n[o];return u[i]={key:t,type:e,actual:r},u}function v(n,t){for(var e=t.length,r=0;r<e;r++)n.push(t[r])}var g=Object.prototype.hasOwnProperty;function y(n){return Object.keys(n).map(function(t){return"".concat(t,": ").concat(n[t].name)}).join(", ")}function b(n){for(var t=0;t<n.length;t++)if(n[t].encode!==d)return!1;return!0}function _(n){return"{ ".concat(y(n)," }")}function I(n){return"Partial<".concat(n,">")}function R(n){var t;if(E(n)){var e=n.value;if(Y.is(e))return(t={})[e]=null,t}else{if("KeyofType"===n._tag)return n.keys;if(k(n)){var r=n.types.map(function(n){return R(n)});return r.some(L.is)?void 0:Object.assign.apply(Object,a([{}],r,!1))}}}function S(n){return"("+n.map(function(n){return n.name}).join(" | ")+")"}function T(n,t){for(var e=!0,r=!0,i=!nn.is(n),u=0;u<t.length;u++){var o=t[u];o!==n&&(e=!1),nn.is(o)&&(r=!1)}if(e)return n;if(r)return t[t.length-1];for(var a={},c=0;c<t.length;c++){var o=t[c];for(var f in o)(!g.call(a,f)||i||o[f]!==n[f])&&(a[f]=o[f])}return a}function x(n,t){for(var e=Object.getOwnPropertyNames(n),r=!1,i={},u=0;u<e.length;u++){var o=e[u];g.call(t,o)?i[o]=n[o]:r=!0}return r?i:n}var w={};function M(n,t){for(var e=[],r=0;r<n.length;r++){var i=n[r];-1!==t.indexOf(i)&&e.push(i)}return e}function O(n){return"AnyType"===n._tag}function E(n){return"LiteralType"===n._tag}function C(n){return"InterfaceType"===n._tag}function k(n){return"UnionType"===n._tag}var W=[];function F(n){if(-1!==W.indexOf(n))return w;if(C(n)||"StrictType"===n._tag){var t=w;for(var e in n.props){var r=n.props[e];E(r)&&(t===w&&(t={}),t[e]=[r.value])}return t}if("ExactType"===n._tag||"RefinementType"===n._tag)return F(n.type);if("IntersectionType"===n._tag)return n.types.reduce(function(n,t){return function(n,t){if(n===w)return t;if(t===w)return n;var e=Object.assign({},n);for(var r in t)if(g.call(n,r)){var i=M(n[r],t[r]);if(i.length>0)e[r]=i;else{e=w;break}}else e[r]=t[r];return e}(n,F(t))},w);if(k(n))return n.types.slice(1).reduce(function(n,t){return function(n,t){if(n===w||t===w)return w;var e=w;for(var r in n)g.call(t,r)&&0===M(n[r],t[r]).length&&(e===w&&(e={}),e[r]=n[r].concat(t[r]));return e}(n,F(t))},F(n.types[0]));if("RecursiveType"===n._tag){W.push(n);var i=F(n.type);return W.pop(),i}return w}function P(n){for(var t=F(n[0]),e=Object.keys(t),r=n.length,i=0;i<e.length;i++){var u=function(e){for(var i=t[e].slice(),u=[t[e]],o=1;o<r;o++){var a=F(n[o])[e];if(void 0===a||a.some(function(n){return -1!==i.indexOf(n)}))return"continue-keys";i.push.apply(i,a),u.push(a)}return{value:[e,u]}}(e[i]);if("object"==typeof u)return u.value;if("continue-keys"===u)continue}}var A=function(n){function t(){var t=n.call(this,"null",function(n){return null===n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="NullType",t}return u(t,n),t}(p),U=new A,D=function(n){function t(){var t=n.call(this,"undefined",function(n){return void 0===n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="UndefinedType",t}return u(t,n),t}(p),L=new D,N=function(n){function t(){var t=n.call(this,"void",L.is,L.validate,d)||this;return t._tag="VoidType",t}return u(t,n),t}(p),j=new N,q=function(n){function t(){var t=n.call(this,"unknown",function(n){return!0},l,d)||this;return t._tag="UnknownType",t}return u(t,n),t}(p),G=new q,K=function(n){function t(){var t=n.call(this,"string",function(n){return"string"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="StringType",t}return u(t,n),t}(p),Y=new K,B=function(n){function t(){var t=n.call(this,"number",function(n){return"number"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="NumberType",t}return u(t,n),t}(p),V=new B,H=function(n){function t(){var t=n.call(this,"bigint",function(n){return"bigint"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="BigIntType",t}return u(t,n),t}(p),z=new H,X=function(n){function t(){var t=n.call(this,"boolean",function(n){return"boolean"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="BooleanType",t}return u(t,n),t}(p),J=new X,$=function(n){function t(){var t=n.call(this,"UnknownArray",Array.isArray,function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="AnyArrayType",t}return u(t,n),t}(p),Z=new $,Q=function(n){function t(){var t=n.call(this,"UnknownRecord",function(n){return null!==n&&"object"==typeof n&&!Array.isArray(n)},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="AnyDictionaryType",t}return u(t,n),t}(p),nn=new Q,nt=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.value=u,o._tag="LiteralType",o}return u(t,n),t}(p);function ne(n,t){void 0===t&&(t=JSON.stringify(n));var e=function(t){return t===n};return new nt(t,e,function(t,r){return e(t)?l(n):f(t,r)},d,n)}var nr=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.keys=u,o._tag="KeyofType",o}return u(t,n),t}(p);function ni(n,t){void 0===t&&(t=Object.keys(n).map(function(n){return JSON.stringify(n)}).join(" | "));var e=function(t){return Y.is(t)&&g.call(n,t)};return new nr(t,e,function(n,t){return e(n)?l(n):f(n,t)},d,n)}var nu=function(n){function t(t,e,r,i,u,o){var a=n.call(this,t,e,r,i)||this;return a.type=u,a.predicate=o,a._tag="RefinementType",a}return u(t,n),t}(p);function no(n,t,e){return nD(n,t,e)}var na=nD(V,function(n){return Number.isInteger(n)},"Int"),nc=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.runDefinition=u,o._tag="RecursiveType",o}return u(t,n),t}(p);function nf(n,t){var e,r=function(){return e||((e=t(i)).name=n),e},i=new nc(n,function(n){return r().is(n)},function(n,t){return r().validate(n,t)},function(n){return r().encode(n)},r);return i}Object.defineProperty(nc.prototype,"type",{get:function(){return this.runDefinition()},enumerable:!0,configurable:!0});var nl=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.type=u,o._tag="ArrayType",o}return u(t,n),t}(p);function np(n,t){return void 0===t&&(t="Array<".concat(n.name,">")),new nl(t,function(t){return Z.is(t)&&t.every(n.is)},function(t,e){var r=Z.validate(t,e);if((0,i.isLeft)(r))return r;for(var u=r.right,o=u.length,a=u,f=[],p=0;p<o;p++){var d=u[p],s=n.validate(d,m(e,String(p),n,d));if((0,i.isLeft)(s))v(f,s.left);else{var h=s.right;h!==d&&(a===u&&(a=u.slice()),a[p]=h)}}return f.length>0?c(f):l(a)},n.encode===d?d:function(t){return t.map(n.encode)},n)}var nd=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.props=u,o._tag="InterfaceType",o}return u(t,n),t}(p);function ns(n,t){void 0===t&&(t=_(n));var e=Object.keys(n),r=e.map(function(t){return n[t]}),u=e.length;return new nd(t,function(n){if(nn.is(n)){for(var t=0;t<u;t++){var i=e[t],o=n[i];if(void 0===o&&!g.call(n,i)||!r[t].is(o))return!1}return!0}return!1},function(n,t){var a=nn.validate(n,t);if((0,i.isLeft)(a))return a;for(var f=a.right,p=f,d=[],s=0;s<u;s++){var h=e[s],y=p[h],b=r[s],_=b.validate(y,m(t,h,b,y));if((0,i.isLeft)(_))v(d,_.left);else{var I=_.right;I===y&&(void 0!==I||g.call(p,h))||(p===f&&(p=o({},f)),p[h]=I)}}return d.length>0?c(d):l(p)},b(r)?d:function(n){for(var t=o({},n),i=0;i<u;i++){var a=e[i],c=r[i].encode;c!==d&&(t[a]=c(n[a]))}return t},n)}var nh=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.props=u,o._tag="PartialType",o}return u(t,n),t}(p);function nm(n,t){void 0===t&&(t=I(_(n)));var e=Object.keys(n),r=e.map(function(t){return n[t]}),u=e.length;return new nh(t,function(t){if(nn.is(t)){for(var r=0;r<u;r++){var i=e[r],o=t[i];if(void 0!==o&&!n[i].is(o))return!1}return!0}return!1},function(t,r){var a=nn.validate(t,r);if((0,i.isLeft)(a))return a;for(var f=a.right,p=f,d=[],s=0;s<u;s++){var h=e[s],g=p[h],y=n[h],b=y.validate(g,m(r,h,y,g));if((0,i.isLeft)(b))void 0!==g&&v(d,b.left);else{var _=b.right;_!==g&&(p===f&&(p=o({},f)),p[h]=_)}}return d.length>0?c(d):l(p)},b(r)?d:function(n){for(var t=o({},n),i=0;i<u;i++){var a=e[i],c=n[a];void 0!==c&&(t[a]=r[i].encode(c))}return t},n)}var nv=function(n){function t(t,e,r,i,u,o){var a=n.call(this,t,e,r,i)||this;return a.domain=u,a.codomain=o,a._tag="DictionaryType",a}return u(t,n),t}(p);function ng(n,t,e){var r,u,o,a,p=R(n);return p?(r=Object.keys(p),void 0===(u=e)&&(u="{ [K in ".concat(n.name,"]: ").concat(t.name," }")),o=r.length,new nv(u,function(n){return nn.is(n)&&r.every(function(e){return t.is(n[e])})},function(n,e){var u=nn.validate(n,e);if((0,i.isLeft)(u))return u;for(var a=u.right,f={},p=[],d=!1,s=0;s<o;s++){var h=r[s],g=a[h],y=t.validate(g,m(e,h,t,g));if((0,i.isLeft)(y))v(p,y.left);else{var b=y.right;d=d||b!==g,f[h]=b}}return p.length>0?c(p):l(d||Object.keys(a).length!==o?f:a)},t.encode===d?d:function(n){for(var e={},i=0;i<o;i++){var u=r[i];e[u]=t.encode(n[u])}return e},n,t)):(void 0===(a=e)&&(a="{ [K in ".concat(n.name,"]: ").concat(t.name," }")),new nv(a,function(e){return nn.is(e)?Object.keys(e).every(function(r){return n.is(r)&&t.is(e[r])}):O(t)&&Array.isArray(e)},function(e,r){if(nn.is(e)){for(var u={},o=[],a=Object.keys(e),p=a.length,d=!1,s=0;s<p;s++){var h=a[s],g=e[h],y=n.validate(h,m(r,h,n,h));if((0,i.isLeft)(y))v(o,y.left);else{var b=y.right;d=d||b!==h,h=b;var _=t.validate(g,m(r,h,t,g));if((0,i.isLeft)(_))v(o,_.left);else{var I=_.right;d=d||I!==g,u[h]=I}}}return o.length>0?c(o):l(d?u:e)}return O(t)&&Array.isArray(e)?l(e):f(e,r)},n.encode===d&&t.encode===d?d:function(e){for(var r={},i=Object.keys(e),u=i.length,o=0;o<u;o++){var a=i[o];r[String(n.encode(a))]=t.encode(e[a])}return r},n,t))}var ny=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.types=u,o._tag="UnionType",o}return u(t,n),t}(p);function nb(n,t){void 0===t&&(t=S(n));var e=P(n);if(void 0===e||!(n.length>0))return new ny(t,function(t){return n.some(function(n){return n.is(t)})},function(t,e){for(var r=[],u=0;u<n.length;u++){var o=n[u],a=o.validate(t,m(e,String(u),o,t));if(!(0,i.isLeft)(a))return l(a.right);v(r,a.left)}return c(r)},b(n)?d:function(e){for(var r=0;r<n.length;r++){var i=n[r];if(i.is(e))return i.encode(e)}throw Error("no codec found to encode value in union type ".concat(t))},n);var r=e[0],u=e[1],o=u.length,a=function(n){for(var t=0;t<o;t++)if(-1!==u[t].indexOf(n))return t};return new nN(t,function(t){if(nn.is(t)){var e=a(t[r]);return void 0!==e&&n[e].is(t)}return!1},function(t,e){var u=nn.validate(t,e);if((0,i.isLeft)(u))return u;var o=u.right,c=a(o[r]);if(void 0===c)return f(t,e);var l=n[c];return l.validate(o,m(e,String(c),l,o))},b(n)?d:function(e){var i=a(e[r]);if(void 0!==i)return n[i].encode(e);throw Error("no codec found to encode value in union codec ".concat(t))},n,r)}var n_=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.types=u,o._tag="IntersectionType",o}return u(t,n),t}(p);function nI(n,t){void 0===t&&(t="(".concat(n.map(function(n){return n.name}).join(" & "),")"));var e=n.length;return new n_(t,function(t){return n.every(function(n){return n.is(t)})},0===n.length?l:function(t,r){for(var u=[],o=[],a=0;a<e;a++){var f=n[a],p=f.validate(t,m(r,String(a),f,t));(0,i.isLeft)(p)?v(o,p.left):u.push(p.right)}return o.length>0?c(o):l(T(t,u))},0===n.length?d:function(t){return T(t,n.map(function(n){return n.encode(t)}))},n)}var nR=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.types=u,o._tag="TupleType",o}return u(t,n),t}(p);function nS(n,t){void 0===t&&(t="[".concat(n.map(function(n){return n.name}).join(", "),"]"));var e=n.length;return new nR(t,function(t){return Z.is(t)&&t.length===e&&n.every(function(n,e){return n.is(t[e])})},function(t,r){var u=Z.validate(t,r);if((0,i.isLeft)(u))return u;for(var o=u.right,a=o.length>e?o.slice(0,e):o,f=[],p=0;p<e;p++){var d=o[p],s=n[p],h=s.validate(d,m(r,String(p),s,d));if((0,i.isLeft)(h))v(f,h.left);else{var g=h.right;g!==d&&(a===o&&(a=o.slice()),a[p]=g)}}return f.length>0?c(f):l(a)},b(n)?d:function(t){return n.map(function(n,e){return n.encode(t[e])})},n)}var nT=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.type=u,o._tag="ReadonlyType",o}return u(t,n),t}(p);function nx(n,t){return void 0===t&&(t="Readonly<".concat(n.name,">")),new nT(t,n.is,n.validate,n.encode,n)}var nw=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.type=u,o._tag="ReadonlyArrayType",o}return u(t,n),t}(p);function nM(n,t){void 0===t&&(t="ReadonlyArray<".concat(n.name,">"));var e=np(n);return new nw(t,e.is,e.validate,e.encode,n)}var nO=function(n,t){return nC(ns(n),t)},nE=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.type=u,o._tag="ExactType",o}return u(t,n),t}(p);function nC(n,t){void 0===t&&(t=C(n)?"{| ".concat(y(n.props)," |}"):"PartialType"===n._tag?I("{| ".concat(y(n.props)," |}")):"Exact<".concat(n.name,">"));var e=function n(t){switch(t._tag){case"RefinementType":case"ReadonlyType":return n(t.type);case"InterfaceType":case"StrictType":case"PartialType":return t.props;case"IntersectionType":return t.types.reduce(function(t,e){return Object.assign(t,n(e))},{})}}(n);return new nE(t,n.is,function(t,r){var u=nn.validate(t,r);if((0,i.isLeft)(u))return u;var o=n.validate(t,r);return(0,i.isLeft)(o)?o:(0,i.right)(x(o.right,e))},function(t){return n.encode(x(t,e))},n)}var nk=function(n){function t(){var t=n.call(this,"Function",function(n){return"function"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="FunctionType",t}return u(t,n),t}(p),nW=new nk,nF=function(n){function t(){var t=n.call(this,"never",function(n){return!1},function(n,t){return f(n,t)},function(){throw Error("cannot encode never")})||this;return t._tag="NeverType",t}return u(t,n),t}(p),nP=new nF,nA=function(n){function t(){var t=n.call(this,"any",function(n){return!0},l,d)||this;return t._tag="AnyType",t}return u(t,n),t}(p),nU=new nA;function nD(n,t,e){return void 0===e&&(e="(".concat(n.name," | ").concat(s(t),")")),new nu(e,function(e){return n.is(e)&&t(e)},function(e,r){var u=n.validate(e,r);if((0,i.isLeft)(u))return u;var o=u.right;return t(o)?l(o):f(o,r)},n.encode,n,t)}var nL=nD(V,Number.isInteger,"Integer"),nN=function(n){function t(t,e,r,i,u,o){var a=n.call(this,t,e,r,i,u)||this;return a.tag=o,a}return u(t,n),t}(ny),nj=function(n,t,e){void 0===e&&(e=S(t));var r=nb(t,e);return r instanceof nN?r:(console.warn("[io-ts] Cannot build a tagged union for ".concat(e,", returning a de-optimized union")),new nN(e,r.is,r.validate,r.encode,t,n))},nq=function(n,t){return{value:n,context:t}},nG=function(n){return[{key:"",type:n}]},nK=nn,nY=function(n){function t(){var t=n.call(this,"object",function(n){return null!==n&&"object"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="ObjectType",t}return u(t,n),t}(p),nB=new nY,nV=ng,nH=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.props=u,o._tag="StrictType",o}return u(t,n),t}(p);function nz(n){return n}function nX(n){return function(){return n}}},77883:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FORMAT_PLAIN=t.FORMAT_HTML=t.FORMATS=void 0;var e="html";t.FORMAT_HTML=e;var r="plain";t.FORMAT_PLAIN=r;var i=[e,r];t.FORMATS=i},779:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.LINE_ENDINGS=void 0,t.LINE_ENDINGS={POSIX:"\n",WIN32:"\r\n"}},36021:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_PLATFORMS=void 0,t.SUPPORTED_PLATFORMS={DARWIN:"darwin",LINUX:"linux",WIN32:"win32"}},29688:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UNIT_WORDS=t.UNIT_WORD=t.UNIT_SENTENCES=t.UNIT_SENTENCE=t.UNIT_PARAGRAPHS=t.UNIT_PARAGRAPH=t.UNITS=void 0;var e="words";t.UNIT_WORDS=e;var r="word";t.UNIT_WORD=r;var i="sentences";t.UNIT_SENTENCES=i;var u="sentence";t.UNIT_SENTENCE=u;var o="paragraphs";t.UNIT_PARAGRAPHS=o;var a="paragraph";t.UNIT_PARAGRAPH=a;var c=[e,r,i,u,o,a];t.UNITS=c},90783:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.WORDS=void 0,t.WORDS=["ad","adipisicing","aliqua","aliquip","amet","anim","aute","cillum","commodo","consectetur","consequat","culpa","cupidatat","deserunt","do","dolor","dolore","duis","ea","eiusmod","elit","enim","esse","est","et","eu","ex","excepteur","exercitation","fugiat","id","in","incididunt","ipsum","irure","labore","laboris","laborum","Lorem","magna","minim","mollit","nisi","non","nostrud","nulla","occaecat","officia","pariatur","proident","qui","quis","reprehenderit","sint","sit","sunt","tempor","ullamco","ut","velit","veniam","voluptate"]},72788:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoremIpsum",{enumerable:!0,get:function(){return a.default}}),t.loremIpsum=void 0;var r,i=e(77883),u=e(29688),o=e(90783),a=(r=e(55548))&&r.__esModule?r:{default:r};t.loremIpsum=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.count,e=void 0===t?1:t,r=n.format,c=void 0===r?i.FORMAT_PLAIN:r,f=n.paragraphLowerBound,l=n.paragraphUpperBound,p=n.random,d=n.sentenceLowerBound,s=n.sentenceUpperBound,h=n.units,m=void 0===h?u.UNIT_SENTENCES:h,v=n.words,g=void 0===v?o.WORDS:v,y=n.suffix,b=new a.default({random:p,sentencesPerParagraph:{max:void 0===l?7:l,min:void 0===f?3:f},words:g,wordsPerSentence:{max:void 0===s?15:s,min:void 0===d?5:d}},c,void 0===y?"":y);switch(m){case u.UNIT_PARAGRAPHS:case u.UNIT_PARAGRAPH:return b.generateParagraphs(e);case u.UNIT_SENTENCES:case u.UNIT_SENTENCE:return b.generateSentences(e);case u.UNIT_WORDS:case u.UNIT_WORD:return b.generateWords(e);default:return""}}},55548:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=e(77883),u=e(779),o=(r=e(40928))&&r.__esModule?r:{default:r},a=e(23749),c=function(){var n;function t(){var n,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.FORMAT_PLAIN,a=arguments.length>2?arguments[2]:void 0;if(!function(n,t){if(!(n instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.format=u,this.suffix=a,e=void 0,(n="generator")in this?Object.defineProperty(this,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):this[n]=e,-1===i.FORMATS.indexOf(u.toLowerCase()))throw Error("".concat(u," is an invalid format. Please use ").concat(i.FORMATS.join(" or "),"."));this.generator=new o.default(r)}return n=[{key:"getLineEnding",value:function(){return this.suffix?this.suffix:!(0,a.isReactNative)()&&(0,a.isNode)()&&(0,a.isWindows)()?u.LINE_ENDINGS.WIN32:u.LINE_ENDINGS.POSIX}},{key:"formatString",value:function(n){return this.format===i.FORMAT_HTML?"<p>".concat(n,"</p>"):n}},{key:"formatStrings",value:function(n){var t=this;return n.map(function(n){return t.formatString(n)})}},{key:"generateWords",value:function(n){return this.formatString(this.generator.generateRandomWords(n))}},{key:"generateSentences",value:function(n){return this.formatString(this.generator.generateRandomParagraph(n))}},{key:"generateParagraphs",value:function(n){var t=this.generator.generateRandomParagraph.bind(this.generator);return this.formatStrings((0,a.makeArrayOfStrings)(n,t)).join(this.getLineEnding())}}],function(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t}();t.default=c},40928:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=e(90783),i=e(23749);function u(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var o=function(){var n;function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.sentencesPerParagraph,i=void 0===e?{max:7,min:3}:e,o=n.wordsPerSentence,a=void 0===o?{max:15,min:5}:o,c=n.random,f=(n.seed,n.words),l=void 0===f?r.WORDS:f;if(!function(n,t){if(!(n instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),u(this,"sentencesPerParagraph",void 0),u(this,"wordsPerSentence",void 0),u(this,"random",void 0),u(this,"words",void 0),i.min>i.max)throw Error("Minimum number of sentences per paragraph (".concat(i.min,") cannot exceed maximum (").concat(i.max,")."));if(a.min>a.max)throw Error("Minimum number of words per sentence (".concat(a.min,") cannot exceed maximum (").concat(a.max,")."));this.sentencesPerParagraph=i,this.words=l,this.wordsPerSentence=a,this.random=c||Math.random}return n=[{key:"generateRandomInteger",value:function(n,t){return Math.floor(this.random()*(t-n+1)+n)}},{key:"generateRandomWords",value:function(n){var t=this,e=this.wordsPerSentence,r=e.min,u=e.max,o=n||this.generateRandomInteger(r,u);return(0,i.makeArrayOfLength)(o).reduce(function(n,e){return"".concat(t.pluckRandomWord()," ").concat(n)},"").trim()}},{key:"generateRandomSentence",value:function(n){return"".concat((0,i.capitalize)(this.generateRandomWords(n)),".")}},{key:"generateRandomParagraph",value:function(n){var t=this,e=this.sentencesPerParagraph,r=e.min,u=e.max,o=n||this.generateRandomInteger(r,u);return(0,i.makeArrayOfLength)(o).reduce(function(n,e){return"".concat(t.generateRandomSentence()," ").concat(n)},"").trim()}},{key:"pluckRandomWord",value:function(){var n=this.words.length-1,t=this.generateRandomInteger(0,n);return this.words[t]}}],function(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t}();t.default=o},79998:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(n){var t=n.trim();return t.charAt(0).toUpperCase()+t.slice(1)}},23749:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"capitalize",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"isReactNative",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"isWindows",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"makeArrayOfLength",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"makeArrayOfStrings",{enumerable:!0,get:function(){return c.default}});var r=f(e(79998)),i=f(e(18077)),u=f(e(66002)),o=f(e(89759)),a=f(e(13385)),c=f(e(74523));function f(n){return n&&n.__esModule?n:{default:n}}},18077:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){return!!n.exports}},66002:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){var n=!1;try{n="ReactNative"===navigator.product}catch(t){n=!1}return n}},89759:function(n,t,e){var r=e(34406);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=e(36021);t.default=function(){var n=!1;try{n=r.platform===i.SUPPORTED_PLATFORMS.WIN32}catch(t){n=!1}return n}},13385:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.apply(null,Array(n)).map(function(n,t){return t})}},74523:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=e(13385))&&r.__esModule?r:{default:r};t.default=function(n,t){return(0,i.default)(n).map(function(){return t()})}},58831:function(n,t,e){var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowContainer=void 0;var i=e(52322),u=e(2784),o=e(64379);t.ArrowContainer=function(n){var t=n.childRect,e=n.popoverRect,a=n.position,c=n.arrowColor,f=n.arrowSize,l=n.arrowClassName,p=n.arrowStyle,d=n.className,s=n.children,h=n.style,m=o.useArrowContainer({childRect:t,popoverRect:e,position:a,arrowColor:c,arrowSize:f}),v=m.arrowContainerStyle,g=m.arrowStyle,y=u.useMemo(function(){return r(r({},v),h)},[v,h]),b=u.useMemo(function(){return r(r({},g),p)},[g,p]);return i.jsxs("div",r({className:d,style:y},{children:[i.jsx("div",{style:b,className:l},void 0),s]}),void 0)}},19909:function(n,t,e){var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Popover=t.usePopover=t.ArrowContainer=t.useArrowContainer=void 0;var i=e(52322),u=e(2784),o=e(44635),a=e(27574),c=e(61462);Object.defineProperty(t,"usePopover",{enumerable:!0,get:function(){return c.usePopover}});var f=e(70414),l=e(64379);Object.defineProperty(t,"useArrowContainer",{enumerable:!0,get:function(){return l.useArrowContainer}});var p=e(58831);Object.defineProperty(t,"ArrowContainer",{enumerable:!0,get:function(){return p.ArrowContainer}});var d=["top","left","right","bottom"],s=u.forwardRef(function(n,t){var e=n.isOpen,l=n.children,p=n.content,s=n.positions,h=n.align,m=void 0===h?"center":h,v=n.padding,g=void 0===v?0:v,y=n.reposition,b=void 0===y||y,_=n.parentElement,I=void 0===_?window.document.body:_,R=n.boundaryElement,S=void 0===R?I:R,T=n.containerClassName,x=n.containerStyle,w=n.contentLocation,M=n.boundaryInset,O=void 0===M?0:M,E=n.onClickOutside,C=n.clickOutsideCapture,k=void 0!==C&&C,W=f.useMemoizedArray(void 0===s?d:s),F=u.useRef(!1),P=u.useRef(),A=u.useRef(),U=u.useRef(b),D=u.useRef(),L=u.useState({align:m,nudgedLeft:0,nudgedTop:0,position:W[0],padding:g,childRect:a.EMPTY_CLIENT_RECT,popoverRect:a.EMPTY_CLIENT_RECT,parentRect:a.EMPTY_CLIENT_RECT,boundaryRect:a.EMPTY_CLIENT_RECT,boundaryInset:O,violations:a.EMPTY_CLIENT_RECT,hasViolations:!1}),N=L[0],j=L[1],q=u.useCallback(function(n){return j(n)},[]),G=c.usePopover({isOpen:e,childRef:D,containerClassName:void 0===T?"react-tiny-popover-container":T,parentElement:I,boundaryElement:S,contentLocation:w,positions:W,align:m,padding:g,boundaryInset:O,reposition:b,onPositionPopover:q}),K=G.positionPopover,Y=G.popoverRef,B=G.scoutRef;u.useLayoutEffect(function(){var n=!0,t=function(){var r,i;if(e&&n){var u=null===(r=null==D?void 0:D.current)||void 0===r?void 0:r.getBoundingClientRect(),o=null===(i=null==Y?void 0:Y.current)||void 0===i?void 0:i.getBoundingClientRect();null==u||null==o||a.rectsAreEqual(u,{top:N.childRect.top,left:N.childRect.left,width:N.childRect.width,height:N.childRect.height,bottom:N.childRect.top+N.childRect.height,right:N.childRect.left+N.childRect.width})&&o.width===N.popoverRect.width&&o.height===N.popoverRect.height&&N.padding===g&&N.align===m&&W===P.current&&w===A.current&&b===U.current||K(),W!==P.current&&(P.current=W),w!==A.current&&(A.current=w),b!==U.current&&(U.current=b),n&&window.requestAnimationFrame(t)}F.current=e};return window.requestAnimationFrame(t),function(){n=!1}},[m,w,e,g,Y,N.align,N.childRect.height,N.childRect.left,N.childRect.top,N.childRect.width,N.padding,N.popoverRect.height,N.popoverRect.width,K,W,b]),u.useEffect(function(){var n=Y.current;return Object.assign(n.style,x),function(){Object.keys(null!=x?x:{}).forEach(function(t){return delete n.style[t]})}},[x,e,Y]);var V=u.useCallback(function(n){var t,r;!e||(null===(t=Y.current)||void 0===t?void 0:t.contains(n.target))||(null===(r=D.current)||void 0===r?void 0:r.contains(n.target))||null==E||E(n)},[e,E,Y]),H=u.useCallback(function(){D.current&&window.requestAnimationFrame(function(){return K()})},[K]);u.useEffect(function(){var n=I.ownerDocument.body;return n.addEventListener("click",V,k),n.addEventListener("contextmenu",V,k),n.addEventListener("resize",H),function(){n.removeEventListener("click",V,k),n.removeEventListener("contextmenu",V,k),n.removeEventListener("resize",H)}},[k,V,H,I]);var z=u.useCallback(function(n){D.current=n,null!=t&&("object"==typeof t?t.current=n:"function"==typeof t&&t(n))},[t]);return i.jsxs(i.Fragment,{children:[u.cloneElement(l,{ref:z}),e?i.jsx(o.PopoverPortal,r({element:Y.current,scoutElement:B.current,container:I},{children:"function"==typeof p?p(N):p}),void 0):null]},void 0)});t.Popover=u.forwardRef(function(n,t){return"undefined"==typeof window?n.children:i.jsx(s,r({},n,{ref:t}),void 0)})},44635:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.PopoverPortal=void 0;var r=e(2784),i=e(28316);t.PopoverPortal=function(n){var t=n.container,e=n.element,u=n.scoutElement,o=n.children;return r.useLayoutEffect(function(){return t.appendChild(e),t.appendChild(u),function(){t.removeChild(e),t.removeChild(u)}},[t,e,u]),i.createPortal(o,e)}},64379:function(n,t,e){var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.useArrowContainer=void 0;var i=e(2784);t.useArrowContainer=function(n){var t=n.childRect,e=n.popoverRect,u=n.position,o=n.arrowSize,a=n.arrowColor;return{arrowContainerStyle:i.useMemo(function(){return{padding:o}},[o]),arrowStyle:i.useMemo(function(){return r({position:"absolute"},function(){var n=2*o,r=t.top-e.top+t.height/2-n/2,i=t.left-e.left+t.width/2-n/2,c=e.width-o,f=e.height-o;switch(i=(i=i<o?o:i)+n>c?c-n:i,r=Number.isNaN(r=(r=r<o?o:r)+n>f?f-n:r)?0:r,i=Number.isNaN(i)?0:i,u){case"right":return{borderTop:o+"px solid transparent",borderBottom:o+"px solid transparent",borderRight:o+"px solid "+a,left:0,top:r};case"left":return{borderTop:o+"px solid transparent",borderBottom:o+"px solid transparent",borderLeft:o+"px solid "+a,right:0,top:r};case"bottom":return{borderLeft:o+"px solid transparent",borderRight:o+"px solid transparent",borderBottom:o+"px solid "+a,top:0,left:i};case"top":return{borderLeft:o+"px solid transparent",borderRight:o+"px solid transparent",borderTop:o+"px solid "+a,bottom:0,left:i};default:return{display:"hidden"}}}())},[a,o,t.height,t.left,t.top,t.width,e.height,e.left,e.top,e.width,u])}}},79601:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.useElementRef=void 0;var r=e(2784),i=e(27574);t.useElementRef=function(n,t){var e=r.useRef(),u=r.useMemo(function(){return i.createContainer(t,n)},[n,t]);return e.current=u,e}},70414:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.useMemoizedArray=void 0;var r=e(2784);t.useMemoizedArray=function(n){var t=r.useRef(n);return r.useMemo(function(){if(t.current===n)return t.current;if(t.current.length!==n.length)return t.current=n,n;for(var e=0;e<n.length;e+=1)if(n[e]!==t.current[e])return t.current=n,n;return t.current},[n])}},61462:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.usePopover=void 0;var r=e(2784),i=e(27574),u=e(79601),o={position:"fixed",overflow:"visible",top:"0px",left:"0px"},a={position:"fixed",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden"};t.usePopover=function(n){var t=n.isOpen,e=n.childRef,c=n.positions,f=n.containerClassName,l=n.parentElement,p=n.contentLocation,d=n.align,s=n.padding,h=n.reposition,m=n.boundaryInset,v=n.boundaryElement,g=n.onPositionPopover,y=u.useElementRef(f,o),b=u.useElementRef("react-tiny-popover-scout",a),_=r.useCallback(function(n){var r,u,o=void 0===n?{}:n,a=o.positionIndex,f=void 0===a?0:a,I=o.parentRect,R=void 0===I?l.getBoundingClientRect():I,S=o.childRect,T=void 0===S?null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.getBoundingClientRect():S,x=o.scoutRect,w=void 0===x?null===(u=null==b?void 0:b.current)||void 0===u?void 0:u.getBoundingClientRect():x,M=o.popoverRect,O=void 0===M?y.current.getBoundingClientRect():M,E=o.boundaryRect,C=void 0===E?v===l?R:v.getBoundingClientRect():E;if(T&&R&&t){if(p){var k="function"==typeof p?p({childRect:T,popoverRect:O,parentRect:R,boundaryRect:C,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:m,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1}):p,W=k.top,F=k.left,P=Math.round(R.left+F-w.left),A=Math.round(R.top+W-w.top);y.current.style.transform="translate("+P+"px, "+A+"px)",g({childRect:T,popoverRect:O,parentRect:R,boundaryRect:C,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:m,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1});return}var U=f===c.length,D=U?c[0]:c[f],L=i.getNewPopoverRect({childRect:T,popoverRect:O,boundaryRect:C,position:D,align:d,padding:s,reposition:h},m),N=L.rect;if(L.boundaryViolation&&h&&!U){_({positionIndex:f+1,childRect:T,popoverRect:O,parentRect:R,boundaryRect:C});return}var j=N.top,q=N.left,G=N.width,K=N.height,Y=h&&!U,B=i.getNudgedPopoverRect(N,C,m),V=B.left,H=B.top,z=j,X=q;Y&&(z=H,X=V),z=Math.round(z-w.top),X=Math.round(X-w.left),y.current.style.transform="translate("+X+"px, "+z+"px)";var J={top:C.top+m-z,left:C.left+m-X,right:X+G-C.right+m,bottom:z+K-C.bottom+m};g({childRect:T,popoverRect:{top:z,left:X,width:G,height:K,right:X+G,bottom:z+K},parentRect:R,boundaryRect:C,position:D,align:d,padding:s,nudgedTop:H-j,nudgedLeft:V-q,boundaryInset:m,violations:{top:J.top<=0?0:J.top,left:J.left<=0?0:J.left,right:J.right<=0?0:J.right,bottom:J.bottom<=0?0:J.bottom},hasViolations:J.top>0||J.left>0||J.right>0||J.bottom>0})}},[l,e,b,y,v,t,p,c,d,s,h,m,g]);return{positionPopover:_,popoverRef:y,scoutRef:b}}},27574:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getNudgedPopoverRect=t.getNewPopoverRect=t.popoverRectForPosition=t.createContainer=t.rectsAreEqual=t.EMPTY_CLIENT_RECT=void 0,t.EMPTY_CLIENT_RECT={top:0,left:0,bottom:0,height:0,right:0,width:0},t.rectsAreEqual=function(n,t){return n===t||(null==n?void 0:n.bottom)===(null==t?void 0:t.bottom)&&(null==n?void 0:n.height)===(null==t?void 0:t.height)&&(null==n?void 0:n.left)===(null==t?void 0:t.left)&&(null==n?void 0:n.right)===(null==t?void 0:t.right)&&(null==n?void 0:n.top)===(null==t?void 0:t.top)&&(null==n?void 0:n.width)===(null==t?void 0:t.width)},t.createContainer=function(n,t){var e=window.document.createElement("div");return t&&(e.className=t),Object.assign(e.style,n),e},t.popoverRectForPosition=function(n,t,e,r,i){var u,o,a=t.left+t.width/2,c=t.top+t.height/2,f=e.width,l=e.height;switch(n){case"left":u=c-l/2,o=t.left-r-f,"start"===i&&(u=t.top),"end"===i&&(u=t.bottom-l);break;case"bottom":u=t.bottom+r,o=a-f/2,"start"===i&&(o=t.left),"end"===i&&(o=t.right-f);break;case"right":u=c-l/2,o=t.right+r,"start"===i&&(u=t.top),"end"===i&&(u=t.bottom-l);break;default:u=t.top-l-r,o=a-f/2,"start"===i&&(o=t.left),"end"===i&&(o=t.right-f)}return{top:u,left:o,width:f,height:l,right:o+f,bottom:u+l}},t.getNewPopoverRect=function(n,e){var r=n.position,i=n.align,u=n.childRect,o=n.popoverRect,a=n.boundaryRect,c=n.padding,f=n.reposition,l=t.popoverRectForPosition(r,u,o,c,i),p=f&&("top"===r&&l.top<a.top+e||"left"===r&&l.left<a.left+e||"right"===r&&l.right>a.right-e||"bottom"===r&&l.bottom>a.bottom-e);return{rect:l,boundaryViolation:p}},t.getNudgedPopoverRect=function(n,t,e){var r=t.top+e,i=t.left+e,u=t.right-e,o=t.bottom-e,a=n.top<r?r:n.top;a=a+n.height>o?o-n.height:a;var c=n.left<i?i:n.left;return{top:a,left:c=c+n.width>u?u-n.width:c,width:n.width,height:n.height,right:c+n.width,bottom:a+n.height}}},80734:function(n,t,e){var r,i=e(1710);function u(n){if(!Object.prototype.hasOwnProperty.call(o.message,n))throw Error("invalid status code: "+n);return o.message[n]}function o(n){if("number"==typeof n)return u(n);if("string"!=typeof n)throw TypeError("code must be a number or string");var t=parseInt(n,10);return isNaN(t)?function(n){var t=n.toLowerCase();if(!Object.prototype.hasOwnProperty.call(o.code,t))throw Error('invalid status message: "'+n+'"');return o.code[t]}(n):u(t)}n.exports=o,o.message=i,o.code=(r={},Object.keys(i).forEach(function(n){var t=i[n],e=Number(n);r[t.toLowerCase()]=e}),r),o.codes=Object.keys(i).map(function(n){return Number(n)}),o.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},o.empty={204:!0,205:!0,304:!0},o.retry={502:!0,503:!0,504:!0}},60130:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return c.default}});var r=d(e(27343)),i=d(e(46076)),u=d(e(85854)),o=d(e(95899)),a=d(e(15384)),c=d(e(25791)),f=d(e(77888)),l=d(e(49926)),p=d(e(9964));function d(n){return n&&n.__esModule?n:{default:n}}},2763:function(n,t){function e(n){return(n+64>>>9<<4)+14+1}function r(n,t){let e=(65535&n)+(65535&t);return(n>>16)+(t>>16)+(e>>16)<<16|65535&e}function i(n,t,e,i,u,o){var a;return r((a=r(r(t,n),r(i,o)))<<u|a>>>32-u,e)}function u(n,t,e,r,u,o,a){return i(t&e|~t&r,n,t,u,o,a)}function o(n,t,e,r,u,o,a){return i(t&r|e&~r,n,t,u,o,a)}function a(n,t,e,r,u,o,a){return i(t^e^r,n,t,u,o,a)}function c(n,t,e,r,u,o,a){return i(e^(t|~r),n,t,u,o,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(n){if("string"==typeof n){let t=unescape(encodeURIComponent(n));n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e)}return function(n){let t=[],e=32*n.length,r="0123456789abcdef";for(let i=0;i<e;i+=8){let e=n[i>>5]>>>i%32&255,u=parseInt(r.charAt(e>>>4&15)+r.charAt(15&e),16);t.push(u)}return t}(function(n,t){n[t>>5]|=128<<t%32,n[e(t)-1]=t;let i=1732584193,f=-271733879,l=-1732584194,p=271733878;for(let t=0;t<n.length;t+=16){let e=i,d=f,s=l,h=p;i=u(i,f,l,p,n[t],7,-680876936),p=u(p,i,f,l,n[t+1],12,-389564586),l=u(l,p,i,f,n[t+2],17,606105819),f=u(f,l,p,i,n[t+3],22,-1044525330),i=u(i,f,l,p,n[t+4],7,-176418897),p=u(p,i,f,l,n[t+5],12,1200080426),l=u(l,p,i,f,n[t+6],17,-1473231341),f=u(f,l,p,i,n[t+7],22,-45705983),i=u(i,f,l,p,n[t+8],7,1770035416),p=u(p,i,f,l,n[t+9],12,-1958414417),l=u(l,p,i,f,n[t+10],17,-42063),f=u(f,l,p,i,n[t+11],22,-1990404162),i=u(i,f,l,p,n[t+12],7,1804603682),p=u(p,i,f,l,n[t+13],12,-40341101),l=u(l,p,i,f,n[t+14],17,-1502002290),f=u(f,l,p,i,n[t+15],22,1236535329),i=o(i,f,l,p,n[t+1],5,-165796510),p=o(p,i,f,l,n[t+6],9,-1069501632),l=o(l,p,i,f,n[t+11],14,643717713),f=o(f,l,p,i,n[t],20,-373897302),i=o(i,f,l,p,n[t+5],5,-701558691),p=o(p,i,f,l,n[t+10],9,38016083),l=o(l,p,i,f,n[t+15],14,-660478335),f=o(f,l,p,i,n[t+4],20,-405537848),i=o(i,f,l,p,n[t+9],5,568446438),p=o(p,i,f,l,n[t+14],9,-1019803690),l=o(l,p,i,f,n[t+3],14,-187363961),f=o(f,l,p,i,n[t+8],20,1163531501),i=o(i,f,l,p,n[t+13],5,-1444681467),p=o(p,i,f,l,n[t+2],9,-51403784),l=o(l,p,i,f,n[t+7],14,1735328473),f=o(f,l,p,i,n[t+12],20,-1926607734),i=a(i,f,l,p,n[t+5],4,-378558),p=a(p,i,f,l,n[t+8],11,-2022574463),l=a(l,p,i,f,n[t+11],16,1839030562),f=a(f,l,p,i,n[t+14],23,-35309556),i=a(i,f,l,p,n[t+1],4,-1530992060),p=a(p,i,f,l,n[t+4],11,1272893353),l=a(l,p,i,f,n[t+7],16,-155497632),f=a(f,l,p,i,n[t+10],23,-1094730640),i=a(i,f,l,p,n[t+13],4,681279174),p=a(p,i,f,l,n[t],11,-358537222),l=a(l,p,i,f,n[t+3],16,-722521979),f=a(f,l,p,i,n[t+6],23,76029189),i=a(i,f,l,p,n[t+9],4,-640364487),p=a(p,i,f,l,n[t+12],11,-421815835),l=a(l,p,i,f,n[t+15],16,530742520),f=a(f,l,p,i,n[t+2],23,-995338651),i=c(i,f,l,p,n[t],6,-198630844),p=c(p,i,f,l,n[t+7],10,1126891415),l=c(l,p,i,f,n[t+14],15,-1416354905),f=c(f,l,p,i,n[t+5],21,-57434055),i=c(i,f,l,p,n[t+12],6,1700485571),p=c(p,i,f,l,n[t+3],10,-1894986606),l=c(l,p,i,f,n[t+10],15,-1051523),f=c(f,l,p,i,n[t+1],21,-2054922799),i=c(i,f,l,p,n[t+8],6,1873313359),p=c(p,i,f,l,n[t+15],10,-30611744),l=c(l,p,i,f,n[t+6],15,-1560198380),f=c(f,l,p,i,n[t+13],21,1309151649),i=c(i,f,l,p,n[t+4],6,-145523070),p=c(p,i,f,l,n[t+11],10,-1120210379),l=c(l,p,i,f,n[t+2],15,718787259),f=c(f,l,p,i,n[t+9],21,-343485551),i=r(i,e),f=r(f,d),l=r(l,s),p=r(p,h)}return[i,f,l,p]}(function(n){if(0===n.length)return[];let t=8*n.length,r=new Uint32Array(e(t));for(let e=0;e<t;e+=8)r[e>>5]|=(255&n[e/8])<<e%32;return r}(n),8*n.length))}},74267:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let e="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:e}},15384:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},9964:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=e(77888))&&r.__esModule?r:{default:r};t.default=function(n){let t;if(!(0,i.default)(n))throw TypeError("Invalid UUID");let e=new Uint8Array(16);return e[0]=(t=parseInt(n.slice(0,8),16))>>>24,e[1]=t>>>16&255,e[2]=t>>>8&255,e[3]=255&t,e[4]=(t=parseInt(n.slice(9,13),16))>>>8,e[5]=255&t,e[6]=(t=parseInt(n.slice(14,18),16))>>>8,e[7]=255&t,e[8]=(t=parseInt(n.slice(19,23),16))>>>8,e[9]=255&t,e[10]=(t=parseInt(n.slice(24,36),16))/1099511627776&255,e[11]=t/4294967296&255,e[12]=t>>>24&255,e[13]=t>>>16&255,e[14]=t>>>8&255,e[15]=255&t,e}},76678:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},41874:function(n,t){let e;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(r)};let r=new Uint8Array(16)},13254:function(n,t){function e(n,t){return n<<t|n>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(n){let t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof n){let t=unescape(encodeURIComponent(n));n=[];for(let e=0;e<t.length;++e)n.push(t.charCodeAt(e))}else Array.isArray(n)||(n=Array.prototype.slice.call(n));n.push(128);let i=Math.ceil((n.length/4+2)/16),u=Array(i);for(let t=0;t<i;++t){let e=new Uint32Array(16);for(let r=0;r<16;++r)e[r]=n[64*t+4*r]<<24|n[64*t+4*r+1]<<16|n[64*t+4*r+2]<<8|n[64*t+4*r+3];u[t]=e}u[i-1][14]=(n.length-1)*8/4294967296,u[i-1][14]=Math.floor(u[i-1][14]),u[i-1][15]=(n.length-1)*8&4294967295;for(let n=0;n<i;++n){let i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=u[n][t];for(let n=16;n<80;++n)i[n]=e(i[n-3]^i[n-8]^i[n-14]^i[n-16],1);let o=r[0],a=r[1],c=r[2],f=r[3],l=r[4];for(let n=0;n<80;++n){let r=Math.floor(n/20),u=e(o,5)+function(n,t,e,r){switch(n){case 0:return t&e^~t&r;case 1:case 3:return t^e^r;case 2:return t&e^t&r^e&r}}(r,a,c,f)+l+t[r]+i[n]>>>0;l=f,f=c,c=e(a,30)>>>0,a=o,o=u}r[0]=r[0]+o>>>0,r[1]=r[1]+a>>>0,r[2]=r[2]+c>>>0,r[3]=r[3]+f>>>0,r[4]=r[4]+l>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},49926:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=o;var r,i=(r=e(77888))&&r.__esModule?r:{default:r};let u=[];for(let n=0;n<256;++n)u.push((n+256).toString(16).slice(1));function o(n,t=0){return(u[n[t+0]]+u[n[t+1]]+u[n[t+2]]+u[n[t+3]]+"-"+u[n[t+4]]+u[n[t+5]]+"-"+u[n[t+6]]+u[n[t+7]]+"-"+u[n[t+8]]+u[n[t+9]]+"-"+u[n[t+10]]+u[n[t+11]]+u[n[t+12]]+u[n[t+13]]+u[n[t+14]]+u[n[t+15]]).toLowerCase()}t.default=function(n,t=0){let e=o(n,t);if(!(0,i.default)(e))throw TypeError("Stringified UUID is invalid");return e}},27343:function(n,t,e){let r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u,o=(u=e(41874))&&u.__esModule?u:{default:u},a=e(49926);let c=0,f=0;t.default=function(n,t,e){let u=t&&e||0,l=t||Array(16),p=(n=n||{}).node||r,d=void 0!==n.clockseq?n.clockseq:i;if(null==p||null==d){let t=n.random||(n.rng||o.default)();null==p&&(p=r=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==d&&(d=i=(t[6]<<8|t[7])&16383)}let s=void 0!==n.msecs?n.msecs:Date.now(),h=void 0!==n.nsecs?n.nsecs:f+1,m=s-c+(h-f)/1e4;if(m<0&&void 0===n.clockseq&&(d=d+1&16383),(m<0||s>c)&&void 0===n.nsecs&&(h=0),h>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");c=s,f=h,i=d;let v=((268435455&(s+=122192928e5))*1e4+h)%4294967296;l[u++]=v>>>24&255,l[u++]=v>>>16&255,l[u++]=v>>>8&255,l[u++]=255&v;let g=s/4294967296*1e4&268435455;l[u++]=g>>>8&255,l[u++]=255&g,l[u++]=g>>>24&15|16,l[u++]=g>>>16&255,l[u++]=d>>>8|128,l[u++]=255&d;for(let n=0;n<6;++n)l[u+n]=p[n];return t||(0,a.unsafeStringify)(l)}},46076:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(e(18679)),i=u(e(2763));function u(n){return n&&n.__esModule?n:{default:n}}let o=(0,r.default)("v3",48,i.default);t.default=o},18679:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(n,t,e){function r(n,r,o,a){var c;if("string"==typeof n&&(n=function(n){n=unescape(encodeURIComponent(n));let t=[];for(let e=0;e<n.length;++e)t.push(n.charCodeAt(e));return t}(n)),"string"==typeof r&&(r=(0,u.default)(r)),(null===(c=r)||void 0===c?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let f=new Uint8Array(16+n.length);if(f.set(r),f.set(n,r.length),(f=e(f))[6]=15&f[6]|t,f[8]=63&f[8]|128,o){a=a||0;for(let n=0;n<16;++n)o[a+n]=f[n];return o}return(0,i.unsafeStringify)(f)}try{r.name=n}catch(n){}return r.DNS=o,r.URL=a,r};var r,i=e(49926),u=(r=e(9964))&&r.__esModule?r:{default:r};let o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=o;let a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a},85854:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(e(74267)),i=o(e(41874)),u=e(49926);function o(n){return n&&n.__esModule?n:{default:n}}t.default=function(n,t,e){if(r.default.randomUUID&&!t&&!n)return r.default.randomUUID();let o=(n=n||{}).random||(n.rng||i.default)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){e=e||0;for(let n=0;n<16;++n)t[e+n]=o[n];return t}return(0,u.unsafeStringify)(o)}},95899:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(e(18679)),i=u(e(13254));function u(n){return n&&n.__esModule?n:{default:n}}let o=(0,r.default)("v5",80,i.default);t.default=o},77888:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=e(76678))&&r.__esModule?r:{default:r};t.default=function(n){return"string"==typeof n&&i.default.test(n)}},25791:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=e(77888))&&r.__esModule?r:{default:r};t.default=function(n){if(!(0,i.default)(n))throw TypeError("Invalid UUID");return parseInt(n.slice(14,15),16)}},16:function(n,t,e){e.d(t,{SH:function(){return B}}),(r=u||(u={})).SetActiveSlice="setActiveSlice",r.SetSliceZoneSize="setSliceZoneSize",(i=o||(o={})).Ping="ping",i.SetSliceZone="setSliceZone",i.ScrollToSlice="scrollToSlice";var r,i,u,o,a,c,f,l,p,d=e(80734);(a||(a={})).Connect="connect",(c||(c={})).Ready="ready";var s=Object.defineProperty,h=(n,t,e)=>t in n?s(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,m=(n,t,e)=>(h(n,"symbol"!=typeof t?t+"":t,e),e);class v extends Error{constructor(n){super(n.msg),m(this,"response"),this.response=n}}class g extends Error{constructor(){super("Connection timed out")}}class y extends Error{constructor(n){super("Too many concurrent requests"),m(this,"request"),this.request=n}}class b extends Error{constructor(n){super(`Request \`${n.requestID}\` timed out`),m(this,"request"),this.request=n}}class _ extends Error{}class I extends Error{constructor(){super("Port is not set")}}class R extends Error{constructor(){super("Channel is not set")}}let S=0,T=(n,t,e="")=>({requestID:`${e}${S++}`,type:n,data:t}),x=(n,t,e=200)=>{var r;if(e>=400)throw TypeError(`Invalid success status code, expected status to be within \`[100;400[\`, got \`${e}\``);return{requestID:n,status:e,msg:(null==(r=d.message[e])?void 0:r.replace(/\.$/,"").toLowerCase())??"",data:t}},w=(n,t,e=400)=>{var r;if(e<400)throw TypeError(`Invalid error status code, expected status to be within \`[500;600[\`, got \`${e}\``);return{requestID:n,status:e,msg:(null==(r=d.message[e])?void 0:r.replace(/\.$/,"").toLowerCase())??"",error:t}},M=n=>{if("object"!=typeof n||null===n)throw TypeError(`Invalid message received, expected message to be of type \`object\`, got \`${typeof n}\``);if(Object.keys(n).every(n=>["requestID","type","data","status","msg","error"].includes(n))){if("string"!=typeof n.requestID)throw TypeError(`Invalid message received, expected \`message.requestID\` to be of type \`string\`, got \`${typeof n.id}\``)}else throw TypeError(`Invalid message received: ${JSON.stringify(n)}`);return n},O=n=>"type"in n,E=n=>!("type"in n),C=n=>E(n)&&!("error"in n);var k=Object.defineProperty,W=(n,t,e)=>t in n?k(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,F=(n,t,e)=>(W(n,"symbol"!=typeof t?t+"":t,e),e);let P={debug:!1,maximumRequestConcurrency:20,defaultTimeout:5e3,requestIDPrefix:"channel-"};class A{constructor(n,t){F(this,"requestHandlers"),F(this,"options"),F(this,"_port",null),F(this,"_pendingRequests",new Map),this.requestHandlers=n,this.options={...P,...t}}get port(){if(!this._port)throw new I;return this._port}set port(n){this._port&&(this._port.onmessage=null),this._port=n,this._port&&(this._port.onmessage=this.onMessage.bind(this))}createRequestMessage(n,t){return T(n,t,this.options.requestIDPrefix)}async onMessage(n){this.options.debug&&console.debug(n.data);try{let t=M(n.data);if(O(t)){if(this.requestHandlers[t.type])try{let n=await this.requestHandlers[t.type](t,{success:x.bind(this,t.requestID),error:w.bind(this,t.requestID)});this.postResponse(n)}catch(n){this.postResponse(w(t.requestID,n,500))}else this.postResponse(w(t.requestID,void 0,501))}else this._pendingRequests.has(t.requestID)?(this._pendingRequests.get(t.requestID)(t),this._pendingRequests.delete(t.requestID)):console.error(`Unknown request ID received in response: ${JSON.stringify(t)}`)}catch(n){if(n instanceof TypeError)console.warn(n.message);else throw n}}postRequest(n,t=n=>this.port.postMessage(n),e={}){if(this.options.debug&&console.debug(n),this._pendingRequests.size>=this.options.maximumRequestConcurrency)throw new y(n);return new Promise((r,i)=>{let u=setTimeout(()=>{this._pendingRequests.has(n.requestID)&&this._pendingRequests.delete(n.requestID),i(new b(n))},e.timeout||this.options.defaultTimeout);this._pendingRequests.set(n.requestID,n=>{clearTimeout(u),C(n)?r(n):i(new v(n))}),t(n)})}postResponse(n,t=n=>this.port.postMessage(n)){return this.options.debug&&console.debug(n),t(n),n}}var U=Object.defineProperty,D=(n,t,e)=>t in n?U(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,L=(n,t,e)=>(D(n,"symbol"!=typeof t?t+"":t,e),e);let N={connectTimeout:2e4,requestIDPrefix:"emitter-"};class j extends A{constructor(n,t,e){super(t,{...N,...e}),L(this,"_target"),L(this,"_channel",null),L(this,"_receiverReady",""),L(this,"_receiverReadyCallback",null),L(this,"_connected",!1),this._target=n,window.addEventListener("message",n=>{this._onPublicMessage(n)})}get channel(){if(!this._channel)throw new R;return this._channel}set channel(n){this._channel=n,this._channel?this.port=this._channel.port1:this.port=null}get connected(){return this._connected}connect(n={},t=!1){return this.disconnect(),t&&(this._receiverReady=""),new Promise((t,e)=>{this._target.addEventListener("load",()=>{if(!this._target.contentWindow)return e(Error("Target window is not available"));let r=setTimeout(()=>{e(new g)},this.options.connectTimeout),i=async()=>{clearTimeout(r),this.channel=new MessageChannel;let e=this.createRequestMessage(a.Connect,n),i=await this.postRequest(e,n=>{this._target.contentWindow.postMessage(n,"*",[this.channel.port2])});this.postResponse(x(this._receiverReady,void 0),n=>{this._target.contentWindow.postMessage(n,"*")}),this._connected=!0,t(i)};this._receiverReady?i():this._receiverReadyCallback=i},{once:!0})})}disconnect(){this._connected=!1,this.channel=null}async _onPublicMessage(n){if(n.source===this._target.contentWindow)try{let t=M(n.data);if(O(t)){if(this.options.debug&&console.debug(n.data),t.type===c.Ready){if(this._receiverReady=t.requestID,this._receiverReadyCallback){let n=this._receiverReadyCallback();this._receiverReadyCallback=null,await n}}else this.postResponse(w(t.requestID,void 0),t=>{n.source.postMessage(t,n.origin)})}}catch(n){if(n instanceof TypeError);else throw n}}postFormattedRequest(n,t,e={}){if(!this._connected)throw new _("Emitter is not connected, use `ChannelEmitter.connect()` first");return this.postRequest(this.createRequestMessage(n,t),void 0,e)}}var q=Object.defineProperty,G=(n,t,e)=>t in n?q(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,K=(n,t,e)=>(G(n,"symbol"!=typeof t?t+"":t,e),e);let Y={requestIDPrefix:"client-"};class B extends j{constructor(n,t,e){var r,i;let a=(null==e?void 0:e.debug)||/[?&]debug=true/i.test(decodeURIComponent(window.location.search));super(n,{[u.SetActiveSlice]:(n,t)=>t.success(),[u.SetSliceZoneSize]:(n,t)=>t.success(),...t},{...Y,...e,debug:a}),K(this,f,async()=>await this.postFormattedRequest(o.Ping)),K(this,l,async n=>await this.postFormattedRequest(o.SetSliceZone,n)),K(this,p,async n=>await this.postFormattedRequest(o.ScrollToSlice,n)),a&&(window.prismic||(window.prismic={}),(r=window.prismic).sliceSimulator||(r.sliceSimulator={}),(i=window.prismic.sliceSimulator).client||(i.client=[]),window.prismic.sliceSimulator.client.push(this))}}f=o.Ping,l=o.SetSliceZone,p=o.ScrollToSlice,u.SetActiveSlice,u.SetSliceZoneSize},19108:function(n){n.exports=JSON.parse('[{"url":"https://twitter.com/prismicio/status/1356293316158095361","oembed":{"embed_url":"https://twitter.com/prismicio/status/1356293316158095361","author_name":"Prismic","author_url":"https://twitter.com/prismicio","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">Gatsby is a popular choice for Prismic users and we work hard on delivering a CMS that plays to its strengths.<br><br>But, what makes <a href=\\"https://twitter.com/GatsbyJS?ref_src=twsrc%5Etfw\\">@GatsbyJS</a> so popular?<br><br>Here are some of <a href=\\"https://twitter.com/mxstbr?ref_src=twsrc%5Etfw\\">@mxstbr</a>'s thoughts on Gatsby's success and how they're improving developer experience.<a href=\\"https://t.co/ZjCPvsWWUD\\">https://t.co/ZjCPvsWWUD</a> <a href=\\"https://t.co/EQqzJpeNKl\\">pic.twitter.com/EQqzJpeNKl</a></p>— Prismic (@prismicio) <a href=\\"https://twitter.com/prismicio/status/1356293316158095361?ref_src=twsrc%5Etfw\\">February 1, 2021</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}},{"url":"https://twitter.com/timbenniks/status/1304146886832594944","oembed":{"embed_url":"https://twitter.com/timbenniks/status/1304146886832594944","author_name":"Tim Benniks","author_url":"https://twitter.com/timbenniks","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">I’ve been diving deep on <a href=\\"https://twitter.com/prismicio?ref_src=twsrc%5Etfw\\">@prismicio</a> <a href=\\"https://twitter.com/hashtag/slicemachine?src=hash&ref_src=twsrc%5Etfw\\">#slicemachine</a> today. I made all my own components and I used custom slices. It works like a charm with <a href=\\"https://twitter.com/nuxt_js?ref_src=twsrc%5Etfw\\">@nuxt_js</a>. Also\\": I’m coding with this view. <a href=\\"https://t.co/F0I8X9gz39\\">pic.twitter.com/F0I8X9gz39</a></p>— Tim Benniks (@timbenniks) <a href=\\"https://twitter.com/timbenniks/status/1304146886832594944?ref_src=twsrc%5Etfw\\">September 10, 2020</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}},{"url":"https://twitter.com/prismicio/status/1354112310252630016","oembed":{"embed_url":"https://twitter.com/prismicio/status/1354112310252630016","author_name":"Prismic","author_url":"https://twitter.com/prismicio","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">We're launching a new <a href=\\"https://twitter.com/hashtag/SliceContest?src=hash&ref_src=twsrc%5Etfw\\">#SliceContest</a> tomorrow along with Slice Machine upgrades.<br><br>Want to know more? Join us at tomorrow's Product Meet-up\uD83D\uDC47<a href=\\"https://t.co/prYSypiAvB\\">https://t.co/prYSypiAvB</a><br><br>We can't tell you any further details for now, but here's a sneak peek at the prizes\uD83D\uDC40 <a href=\\"https://t.co/fV1eoGlEBh\\">pic.twitter.com/fV1eoGlEBh</a></p>— Prismic (@prismicio) <a href=\\"https://twitter.com/prismicio/status/1354112310252630016?ref_src=twsrc%5Etfw\\">January 26, 2021</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}},{"url":"https://twitter.com/prismicio/status/1354835716430319617","oembed":{"embed_url":"https://twitter.com/prismicio/status/1354835716430319617","author_name":"Prismic","author_url":"https://twitter.com/prismicio","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">Does anyone want to create a wildly popular website for discussing 'Wall Street Bets' using Prismic?<br><br>It may or may not have to look a lot like <a href=\\"https://twitter.com/hashtag/reddit?src=hash&ref_src=twsrc%5Etfw\\">#reddit</a> and we won't make it private.<br><br>Just asking for some friends...</p>— Prismic (@prismicio) <a href=\\"https://twitter.com/prismicio/status/1354835716430319617?ref_src=twsrc%5Etfw\\">January 28, 2021</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}}]')},88416:function(n){n.exports=JSON.parse('[{"name":"Moulin Rouge","imageUrl":"https://lh4.googleusercontent.com/proxy/xJPIDVmq8AZjNlaDRkNadqW8ojW8e3Xu81Fgf3WuaVkwp_8d-hho0xbZHGeMpzIX58tV8HCTeb6nttHMr5sJiYKIr-Nmm4IQ2OVgkisg5wXt_6dhpLEeQhjNvBzZD2poV3AHZMuhb0cOUVdM-htjlyGJ2aLz6A=w408-h272-k-no","points":{"latitude":48.8841267,"longitude":2.3300579}},{"name":"Prismic Headquarters","imageUrl":"/prismic-headquarters.png","points":{"latitude":48.8703712,"longitude":2.3865198}},{"name":"Eiffel Tower","imageUrl":"https://lh5.googleusercontent.com/p/AF1QipPs_9Q0oquXoQMMEg45fpFd_Hkn8B9ljATTaDRY=w408-h295-k-no","points":{"latitude":48.8583736,"longitude":2.2922926}},{"name":"Louvre Museum","imageUrl":"https://lh5.googleusercontent.com/p/AF1QipNbg2fGRkUEXpmsBuhEgANtpr-SH_SrsaKFsamK=w408-h270-k-no","points":{"latitude":48.8606111,"longitude":2.337644}}]')},15542:function(n){n.exports=JSON.parse('[{"url":"https://images.unsplash.com/photo-1515378791036-0648a3ef77b2?ixid=MXwyMDEzOTN8MXwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":5616,"height":3744},{"url":"https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":4076,"height":2712},{"url":"https://images.unsplash.com/photo-1589652717521-10c0d092dea9?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":4752,"height":3168},{"url":"https://images.unsplash.com/photo-1515378960530-7c0da6231fb1?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":5616,"height":3744},{"url":"https://images.unsplash.com/photo-1547394765-185e1e68f34e?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":6000,"height":4000},{"url":"https://images.unsplash.com/photo-1601933973783-43cf8a7d4c5f?ixid=MXwyMDEzOTN8MXwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":6597,"height":4398},{"url":"https://images.unsplash.com/photo-1537498425277-c283d32ef9db?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":4380,"height":2895},{"url":"https://images.unsplash.com/photo-1496181133206-80ce9b88a853?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":5243,"height":3495},{"url":"https://images.unsplash.com/photo-1448932223592-d1fc686e76ea?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":3500,"height":2338},{"url":"https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":3882,"height":2584},{"url":"https://images.unsplash.com/photo-1560762484-813fc97650a0?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":3344,"height":2509},{"url":"https://images.unsplash.com/photo-1544731612-de7f96afe55f?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":6000,"height":4000},{"url":"https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":5848,"height":3899},{"url":"https://images.unsplash.com/photo-1560457079-9a6532ccb118?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":4160,"height":3120},{"url":"https://images.unsplash.com/photo-1547082299-de196ea013d6?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":4272,"height":2848},{"url":"https://images.unsplash.com/photo-1551739440-5dd934d3a94a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3456,"height":4320},{"url":"https://images.unsplash.com/photo-1531771686035-25f47595c87a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3024,"height":3778},{"url":"https://images.unsplash.com/photo-1471897488648-5eae4ac6686b?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3560,"height":5340},{"url":"https://images.unsplash.com/photo-1504198070170-4ca53bb1c1fa?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":2747,"height":4120},{"url":"https://images.unsplash.com/photo-1494173853739-c21f58b16055?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3277,"height":4092},{"url":"https://images.unsplash.com/photo-1541807084-5c52b6b3adef?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":4000,"height":6000},{"url":"https://images.unsplash.com/photo-1593642633279-1796119d5482?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":4016,"height":6016},{"url":"https://images.unsplash.com/photo-1545239351-1141bd82e8a6?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3212,"height":3880},{"url":"https://images.unsplash.com/photo-1491975474562-1f4e30bc9468?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":4000,"height":6000},{"url":"https://images.unsplash.com/photo-1587614295999-6c1c13675117?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3810,"height":5715},{"url":"https://images.unsplash.com/photo-1525547719571-a2d4ac8945e2?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3648,"height":4560},{"url":"https://images.unsplash.com/photo-1587905069134-008460d7a636?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3935,"height":5894},{"url":"https://images.unsplash.com/photo-1587613865763-4b8b0d19e8ab?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":12288,"height":16384},{"url":"https://images.unsplash.com/photo-1589321599763-d66926c29613?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3168,"height":4752},{"url":"https://images.unsplash.com/photo-1589321578146-4c1ba445cc88?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3168,"height":4752},{"url":"https://images.unsplash.com/photo-1593642532973-d31b6557fa68?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":8640,"height":8640},{"url":"https://images.unsplash.com/photo-1591012911207-0dbac31f37da?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4000,"height":4000},{"url":"https://images.unsplash.com/photo-1576662712957-9c79ae1280f8?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":3456,"height":3456},{"url":"https://images.unsplash.com/photo-1606248897732-2c5ffe759c04?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4000,"height":4000},{"url":"https://images.unsplash.com/photo-1600804931749-2da4ce26c869?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":3199,"height":3199},{"url":"https://images.unsplash.com/photo-1607582278038-6bebbd4d7b72?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4010,"height":4010},{"url":"https://images.unsplash.com/photo-1587840171670-8b850147754e?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4480,"height":4480},{"url":"https://images.unsplash.com/photo-1493119508027-2b584f234d6c?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":3424,"height":3424},{"url":"https://images.unsplash.com/photo-1600861194802-a2b11076bc51?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":2545,"height":2545},{"url":"https://images.unsplash.com/photo-1571126770897-2d612d1f7b89?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":3456,"height":3456},{"url":"https://images.unsplash.com/photo-1586952518485-11b180e92764?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":4172,"height":4000},{"url":"https://images.unsplash.com/photo-1587653915936-5623ea0b949a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":4000,"height":4000},{"url":"https://images.unsplash.com/photo-1607582278043-57198ac8da43?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":4024,"height":4024},{"url":"https://images.unsplash.com/photo-1579931794097-0ad001e51edb?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":3958,"height":3958},{"url":"https://images.unsplash.com/photo-1596195689404-24d8a8d1c6ea?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":5000,"height":4613}]')},93953:function(n){n.exports=JSON.parse('["ability","able","aboard","about","above","accept","accident","according","account","accurate","acres","across","act","action","active","activity","actual","actually","add","addition","additional","adjective","adult","adventure","advice","affect","afraid","after","afternoon","again","against","age","ago","agree","ahead","aid","air","airplane","alike","alive","all","allow","almost","alone","along","aloud","alphabet","already","also","although","am","among","amount","ancient","angle","angry","animal","announced","another","answer","ants","any","anybody","anyone","anything","anyway","anywhere","apart","apartment","appearance","apple","applied","appropriate","are","area","arm","army","around","arrange","arrangement","arrive","arrow","art","article","as","aside","ask","asleep","at","ate","atmosphere","atom","atomic","attached","attack","attempt","attention","audience","author","automobile","available","average","avoid","aware","away","baby","back","bad","badly","bag","balance","ball","balloon","band","bank","bar","bare","bark","barn","base","baseball","basic","basis","basket","bat","battle","be","bean","bear","beat","beautiful","beauty","became","because","become","becoming","bee","been","before","began","beginning","begun","behavior","behind","being","believed","bell","belong","below","belt","bend","beneath","bent","beside","best","bet","better","between","beyond","bicycle","bigger","biggest","bill","birds","birth","birthday","bit","bite","black","blank","blanket","blew","blind","block","blood","blow","blue","board","boat","body","bone","book","border","born","both","bottle","bottom","bound","bow","bowl","box","boy","brain","branch","brass","brave","bread","break","breakfast","breath","breathe","breathing","breeze","brick","bridge","brief","bright","bring","broad","broke","broken","brother","brought","brown","brush","buffalo","build","building","built","buried","burn","burst","bus","bush","business","busy","but","butter","buy","by","cabin","cage","cake","call","calm","came","camera","camp","can","canal","cannot","cap","capital","captain","captured","car","carbon","card","care","careful","carefully","carried","carry","case","cast","castle","cat","catch","cattle","caught","cause","cave","cell","cent","center","central","century","certain","certainly","chain","chair","chamber","chance","change","changing","chapter","character","characteristic","charge","chart","check","cheese","chemical","chest","chicken","chief","child","children","choice","choose","chose","chosen","church","circle","circus","citizen","city","class","classroom","claws","clay","clean","clear","clearly","climate","climb","clock","close","closely","closer","cloth","clothes","clothing","cloud","club","coach","coal","coast","coat","coffee","cold","collect","college","colony","color","column","combination","combine","come","comfortable","coming","command","common","community","company","compare","compass","complete","completely","complex","composed","composition","compound","concerned","condition","congress","connected","consider","consist","consonant","constantly","construction","contain","continent","continued","contrast","control","conversation","cook","cookies","cool","copper","copy","corn","corner","correct","correctly","cost","cotton","could","count","country","couple","courage","course","court","cover","cow","cowboy","crack","cream","create","creature","crew","crop","cross","crowd","cry","cup","curious","current","curve","customs","cut","cutting","daily","damage","dance","danger","dangerous","dark","darkness","date","daughter","dawn","day","dead","deal","dear","death","decide","declared","deep","deeply","deer","definition","degree","depend","depth","describe","desert","design","desk","detail","determine","develop","development","diagram","diameter","did","die","differ","difference","different","difficult","difficulty","dig","dinner","direct","direction","directly","dirt","dirty","disappear","discover","discovery","discuss","discussion","disease","dish","distance","distant","divide","division","do","doctor","does","dog","doing","doll","dollar","done","donkey","door","dot","double","doubt","down","dozen","draw","drawn","dream","dress","drew","dried","drink","drive","driven","driver","driving","drop","dropped","drove","dry","duck","due","dug","dull","during","dust","duty","each","eager","ear","earlier","early","earn","earth","easier","easily","east","easy","eat","eaten","edge","education","effect","effort","egg","eight","either","electric","electricity","element","elephant","eleven","else","empty","end","enemy","energy","engine","engineer","enjoy","enough","enter","entire","entirely","environment","equal","equally","equator","equipment","escape","especially","essential","establish","even","evening","event","eventually","ever","every","everybody","everyone","everything","everywhere","evidence","exact","exactly","examine","example","excellent","except","exchange","excited","excitement","exciting","exclaimed","exercise","exist","expect","experience","experiment","explain","explanation","explore","express","expression","extra","eye","face","facing","fact","factor","factory","failed","fair","fairly","fall","fallen","familiar","family","famous","far","farm","farmer","farther","fast","fastened","faster","fat","father","favorite","fear","feathers","feature","fed","feed","feel","feet","fell","fellow","felt","fence","few","fewer","field","fierce","fifteen","fifth","fifty","fight","fighting","figure","fill","film","final","finally","find","fine","finest","finger","finish","fire","fireplace","firm","first","fish","five","fix","flag","flame","flat","flew","flies","flight","floating","floor","flow","flower","fly","fog","folks","follow","food","foot","football","for","force","foreign","forest","forget","forgot","forgotten","form","former","fort","forth","forty","forward","fought","found","four","fourth","fox","frame","free","freedom","frequently","fresh","friend","friendly","frighten","frog","from","front","frozen","fruit","fuel","full","fully","fun","function","funny","fur","furniture","further","future","gain","game","garage","garden","gas","gasoline","gate","gather","gave","general","generally","gentle","gently","get","getting","giant","gift","girl","give","given","giving","glad","glass","globe","go","goes","gold","golden","gone","good","goose","got","government","grabbed","grade","gradually","grain","grandfather","grandmother","graph","grass","gravity","gray","great","greater","greatest","greatly","green","grew","ground","group","grow","grown","growth","guard","guess","guide","gulf","gun","habit","had","hair","half","halfway","hall","hand","handle","handsome","hang","happen","happened","happily","happy","harbor","hard","harder","hardly","has","hat","have","having","hay","he","headed","heading","health","heard","hearing","heart","heat","heavy","height","held","hello","help","helpful","her","herd","here","herself","hidden","hide","high","higher","highest","highway","hill","him","himself","his","history","hit","hold","hole","hollow","home","honor","hope","horn","horse","hospital","hot","hour","house","how","however","huge","human","hundred","hung","hungry","hunt","hunter","hurried","hurry","hurt","husband","ice","idea","identity","if","ill","image","imagine","immediately","importance","important","impossible","improve","in","inch","include","including","income","increase","indeed","independent","indicate","individual","industrial","industry","influence","information","inside","instance","instant","instead","instrument","interest","interior","into","introduced","invented","involved","iron","is","island","it","its","itself","jack","jar","jet","job","join","joined","journey","joy","judge","jump","jungle","just","keep","kept","key","kids","kill","kind","kitchen","knew","knife","know","knowledge","known","label","labor","lack","lady","laid","lake","lamp","land","language","large","larger","largest","last","late","later","laugh","law","lay","layers","lead","leader","leaf","learn","least","leather","leave","leaving","led","left","leg","length","lesson","let","letter","level","library","lie","life","lift","light","like","likely","limited","line","lion","lips","liquid","list","listen","little","live","living","load","local","locate","location","log","lonely","long","longer","look","loose","lose","loss","lost","lot","loud","love","lovely","low","lower","luck","lucky","lunch","lungs","lying","machine","machinery","mad","made","magic","magnet","mail","main","mainly","major","make","making","man","managed","manner","manufacturing","many","map","mark","market","married","mass","massage","master","material","mathematics","matter","may","maybe","me","meal","mean","means","meant","measure","meat","medicine","meet","melted","member","memory","men","mental","merely","met","metal","method","mice","middle","might","mighty","mile","military","milk","mill","mind","mine","minerals","minute","mirror","missing","mission","mistake","mix","mixture","model","modern","molecular","moment","money","monkey","month","mood","moon","more","morning","most","mostly","mother","motion","motor","mountain","mouse","mouth","move","movement","movie","moving","mud","muscle","music","musical","must","my","myself","mysterious","nails","name","nation","national","native","natural","naturally","nature","near","nearby","nearer","nearest","nearly","necessary","neck","needed","needle","needs","negative","neighbor","neighborhood","nervous","nest","never","new","news","newspaper","next","nice","night","nine","no","nobody","nodded","noise","none","noon","nor","north","nose","not","note","noted","nothing","notice","noun","now","number","numeral","nuts","object","observe","obtain","occasionally","occur","ocean","of","off","offer","office","officer","official","oil","old","older","oldest","on","once","one","only","onto","open","operation","opinion","opportunity","opposite","or","orange","orbit","order","ordinary","organization","organized","origin","original","other","ought","our","ourselves","out","outer","outline","outside","over","own","owner","oxygen","pack","package","page","paid","pain","paint","pair","palace","pale","pan","paper","paragraph","parallel","parent","park","part","particles","particular","particularly","partly","parts","party","pass","passage","past","path","pattern","pay","peace","pen","pencil","people","per","percent","perfect","perfectly","perhaps","period","person","personal","pet","phrase","physical","piano","pick","picture","pictured","pie","piece","pig","pile","pilot","pine","pink","pipe","pitch","place","plain","plan","plane","planet","planned","planning","plant","plastic","plate","plates","play","pleasant","please","pleasure","plenty","plural","plus","pocket","poem","poet","poetry","point","pole","police","policeman","political","pond","pony","pool","poor","popular","population","porch","port","position","positive","possible","possibly","post","pot","potatoes","pound","pour","powder","power","powerful","practical","practice","prepare","present","president","press","pressure","pretty","prevent","previous","price","pride","primitive","principal","principle","printed","private","prize","probably","problem","process","produce","product","production","program","progress","promised","proper","properly","property","protection","proud","prove","provide","public","pull","pupil","pure","purple","purpose","push","put","putting","quarter","queen","question","quick","quickly","quiet","quietly","quite","rabbit","race","radio","railroad","rain","raise","ran","ranch","range","rapidly","rate","rather","raw","rays","reach","read","reader","ready","real","realize","rear","reason","recall","receive","recent","recently","recognize","record","red","refer","refused","region","regular","related","relationship","religious","remain","remarkable","remember","remove","repeat","replace","replied","report","represent","require","research","respect","rest","result","return","review","rhyme","rhythm","rice","rich","ride","riding","right","ring","rise","rising","river","road","roar","rock","rocket","rocky","rod","roll","roof","room","root","rope","rose","rough","round","route","row","rubbed","rubber","rule","ruler","run","running","rush","sad","saddle","safe","safety","said","sail","sale","salmon","salt","same","sand","sang","sat","satellites","satisfied","save","saved","saw","say","scale","scared","scene","school","science","scientific","scientist","score","screen","sea","search","season","seat","second","secret","section","see","seed","seeing","seems","seen","seldom","select","selection","sell","send","sense","sent","sentence","separate","series","serious","serve","service","sets","setting","settle","settlers","seven","several","shade","shadow","shake","shaking","shall","shallow","shape","share","sharp","she","sheep","sheet","shelf","shells","shelter","shine","shinning","ship","shirt","shoe","shoot","shop","shore","short","shorter","shot","should","shoulder","shout","show","shown","shut","sick","sides","sight","sign","signal","silence","silent","silk","silly","silver","similar","simple","simplest","simply","since","sing","single","sink","sister","sit","sitting","situation","six","size","skill","skin","sky","slabs","slave","sleep","slept","slide","slight","slightly","slip","slipped","slope","slow","slowly","small","smaller","smallest","smell","smile","smoke","smooth","snake","snow","so","soap","social","society","soft","softly","soil","solar","sold","soldier","solid","solution","solve","some","somebody","somehow","someone","something","sometime","somewhere","son","song","soon","sort","sound","source","south","southern","space","speak","special","species","specific","speech","speed","spell","spend","spent","spider","spin","spirit","spite","split","spoken","sport","spread","spring","square","stage","stairs","stand","standard","star","stared","start","state","statement","station","stay","steady","steam","steel","steep","stems","step","stepped","stick","stiff","still","stock","stomach","stone","stood","stop","stopped","store","storm","story","stove","straight","strange","stranger","straw","stream","street","strength","stretch","strike","string","strip","strong","stronger","struck","structure","struggle","stuck","student","studied","studying","subject","substance","success","successful","such","sudden","suddenly","sugar","suggest","suit","sum","summer","sun","sunlight","supper","supply","support","suppose","sure","surface","surprise","surrounded","swam","sweet","swept","swim","swimming","swing","swung","syllable","symbol","system","table","tail","take","taken","tales","talk","tall","tank","tape","task","taste","taught","tax","tea","teach","teacher","team","tears","teeth","telephone","television","tell","temperature","ten","tent","term","terrible","test","than","thank","that","thee","them","themselves","then","theory","there","therefore","these","they","thick","thin","thing","think","third","thirty","this","those","thou","though","thought","thousand","thread","three","threw","throat","through","throughout","throw","thrown","thumb","thus","thy","tide","tie","tight","tightly","till","time","tin","tiny","tip","tired","title","to","tobacco","today","together","told","tomorrow","tone","tongue","tonight","too","took","tool","top","topic","torn","total","touch","toward","tower","town","toy","trace","track","trade","traffic","trail","train","transportation","trap","travel","treated","tree","triangle","tribe","trick","tried","trip","troops","tropical","trouble","truck","trunk","truth","try","tube","tune","turn","twelve","twenty","twice","two","type","typical","uncle","under","underline","understanding","unhappy","union","unit","universe","unknown","unless","until","unusual","up","upon","upper","upward","us","use","useful","using","usual","usually","valley","valuable","value","vapor","variety","various","vast","vegetable","verb","vertical","very","vessels","victory","view","village","visit","visitor","voice","volume","vote","vowel","voyage","wagon","wait","walk","wall","want","war","warm","warn","was","wash","waste","watch","water","wave","way","we","weak","wealth","wear","weather","week","weigh","weight","welcome","well","went","were","west","western","wet","whale","what","whatever","wheat","wheel","when","whenever","where","wherever","whether","which","while","whispered","whistle","white","who","whole","whom","whose","why","wide","widely","wife","wild","will","willing","win","wind","window","wing","winter","wire","wise","wish","with","within","without","wolf","women","won","wonder","wonderful","wood","wooden","wool","word","wore","work","worker","world","worried","worry","worse","worth","would","wrapped","write","writer","writing","written","wrong","wrote","yard","year","yellow","yes","yesterday","yet","you","young","younger","your","yourself","youth","zero","zebra","zipper","zoo","zulu"]')},83777:function(n){n.exports=JSON.parse('["https://slicemachine.dev","https://prismic.io","http://google.com","http://twitter.com"]')},1710:function(n){n.exports=JSON.parse('{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I\'m a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}')}}]);
|
|
3
|
+
`}}function l(n){return u.exact(u.intersection([u.type({id:u.string,label:a.StringOrNull,repeatable:(0,o.withFallback)(u.boolean,!0),json:u.record(u.string,n),status:(0,o.withFallback)(u.boolean,!0)}),u.partial({format:(0,o.withFallback)(u.keyof(t.CustomTypeFormat),"custom")})]))}function p(n){return Object.entries(n.json).reduce((n,[,t])=>{let e=Object.entries(t);return n.concat(e)},[])}function d(n,t){let e=Object.entries(n.json).reduce((n,[e,r])=>{let i=Object.entries(r).reduce((n,[e,r])=>{let i=t(e,r);return i?{...n,[e]:i}:n},{});return{...n,[e]:i}},{});return{...n,json:e}}t.StaticCustomType=l(c.StaticSection),t.CustomType=l(c.DynamicSection),t.flattenWidgets=p,t.flattenSections=function(n){return Object.entries(n.json).reduce((n,[,t])=>{let e=Object.entries(t);return n.concat(e)},[])},t.toStatic=function(n,t){let e=Object.entries(n.json).reduce((n,[e,r])=>({...n,[e]:c.Sections.toStatic(r,t)}),{});return{...n,json:e}},t.validateSlices=function(n,t){let e=(function(n){let t=p(n).filter(([,n])=>"Slices"===n.type).reduce((n,[,t])=>{let e=Object.entries(t.config&&t.config.choices?t.config.choices:{}).filter(([,n])=>"SharedSlice"===n.type).map(([n])=>n);return n.concat(e)},[]);return function(n){return t.map(n)}})(n)(n=>{if(!t.get(n))return n}).filter(Boolean);return e.length>0?(0,i.left)(new f(e)):(0,i.right)(n)},t.collectWidgets=d,t.filterMissingSharedSlices=function(n,t){return d(n,(n,e)=>{if("Slices"===e.type){if(!e.config||!e.config.choices)return e;let n=Object.entries(e.config.choices).reduce((n,[e,r])=>"SharedSlice"!==r.type||t.get(e)?{...n,[e]:r}:n,{}),r={...e.config,choices:n};return{...e,config:r}}return e})},t.flattenCustomTypeFields=function(n){return Object.values(n.json).reduce((n,t)=>({...n,...t}),{})},t.collectSharedSlices=function(n){return Object.entries(n.fields).reduce((n,[,t])=>{var e;return"Slices"===t.type||"Choice"===t.type?{...n,...Object.entries((null===(e=t.config)||void 0===e?void 0:e.choices)||{}).reduce((n,[t,e])=>"SharedSlice"===e.type?{...n,[t]:e}:n,{})}:n},{})},t.traverseCustomType=function(n){let t;let{customType:e,onField:r}=n;for(let[n,i]of Object.entries(e.json)){let u=(0,c.traverseSection)({path:[n],section:i,onField:r});u!==i&&(t||(t={...e.json}),t[n]=u)}return t?{...e,json:t}:e}},22453:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSection=t.Sections=t.DynamicSection=t.StaticSection=t.sectionReader=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(31289),u=e(99814),o=e(53039);function a(n){return r.record(i.WidgetKey,n)}t.sectionReader=a,t.StaticSection=a(o.StaticWidget),t.DynamicSection=a(o.DynamicWidget),t.Sections={toStatic:(n,t)=>Object.entries(n).reduce((n,[e,r])=>({...n,[e]:o.Widgets.toStatic(r,t)}),{})},t.traverseSection=function(n){let t;let{path:e,section:r,onField:i}=n;for(let[n,o]of Object.entries(r)){let a;let c=[...e,n];switch(o.type){case"Choice":case"Slices":a=(0,u.traverseSlices)({path:c,slices:o,onField:i});break;case"Group":a=i({path:c,key:n,field:(0,u.traverseGroup)({path:c,group:o,onField:i})});break;default:a=i({path:c,key:n,field:o})}a!==o&&(t||(t={...r}),t[n]=a)}return null!=t?t:r}},5480:function(n,t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.DiffOperation=void 0,(e=t.DiffOperation||(t.DiffOperation={})).Added="added",e.Removed="removed",e.Updated="updated"},89408:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceComparator=void 0;let r=e(35566),i=e(5480),u=e(62961);t.SliceComparator={compare(n,t){if(!n&&t)return{op:i.DiffOperation.Added,value:t};if(n&&!t)return{op:i.DiffOperation.Removed};let e=Object.entries(r.Objects.zipObjects(n,t)).reduce((n,[t,e])=>"variations"===t||(null==e?void 0:e.left)===(null==e?void 0:e.right)?n:{...n,[t]:null==e?void 0:e.right},{}),o=Object.entries(r.Objects.zipObjects(n&&r.Arrays.toRecord(n.variations,n=>n.id),t&&r.Arrays.toRecord(t.variations,n=>n.id))).reduce((n,[t,e])=>{if(!e)return n;let r=u.VariationComparator.compare(e.left,e.right);return r?{...n,[t]:r}:n},{}),a={...e,...r.Objects.isNotEmpty(o)?{variations:o}:{}};if(r.Objects.isNotEmpty(a))return{op:i.DiffOperation.Updated,value:a}}}},62961:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.VariationComparator=void 0;let r=e(35566),i=e(10673),u=e(5480);function o(n,t){let e=Object.entries(r.Objects.zipObjects(n,t)).reduce((n,[t,e])=>{if(JSON.stringify(null==e?void 0:e.left)===JSON.stringify(null==e?void 0:e.right))return n;let r=(()=>{var n,t,r,a,c,f,l;if((null==e?void 0:e.left)||(null==e?void 0:e.right)){if((null==e?void 0:e.left)&&!e.right)return{op:u.DiffOperation.Removed};if(!(null==e?void 0:e.left)&&(null==e?void 0:e.right)){if((null===(n=e.right)||void 0===n?void 0:n.type)===i.GroupFieldType){let n={...e.right,config:{...e.right.config,fields:{}}};return n.config.fields=o(void 0,null===(t=e.right.config)||void 0===t?void 0:t.fields)||{},{op:u.DiffOperation.Added,value:n}}return{op:u.DiffOperation.Added,value:e.right}}if((null===(r=e.right)||void 0===r?void 0:r.type)===i.GroupFieldType){let n={...e.right,config:{...e.right.config,fields:{}}};return n.config.fields=o((null===(a=e.left)||void 0===a?void 0:a.type)===i.GroupFieldType?null===(f=null===(c=e.left)||void 0===c?void 0:c.config)||void 0===f?void 0:f.fields:void 0,null===(l=e.right.config)||void 0===l?void 0:l.fields)||{},{op:u.DiffOperation.Updated,value:n}}return{op:u.DiffOperation.Updated,value:e.right}}})();return r?{...n,[t]:r}:n},{});return r.Objects.isNotEmpty(e)?e:void 0}t.VariationComparator={compare(n,t){if(n&&!t)return{op:u.DiffOperation.Removed};if(!n&&t)return{op:u.DiffOperation.Added,value:t};let e=Object.entries(r.Objects.zipObjects(n,t)).reduce((n,[t,e])=>"primary"===t||"items"===t||(null==e?void 0:e.left)===(null==e?void 0:e.right)?n:{...n,[t]:null==e?void 0:e.right},{}),i=o(null==n?void 0:n.primary,null==t?void 0:t.primary),a=o(null==n?void 0:n.items,null==t?void 0:t.items),c={...e,...i?{primary:i}:{},...a?{items:a}:{}};if(r.Objects.isNotEmpty(c))return{op:u.DiffOperation.Updated,value:c}}}},83095:function(n,t){Object.defineProperty(t,"__esModule",{value:!0})},74702:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(5480),t),(0,r.__exportStar)(e(89408),t),(0,r.__exportStar)(e(62961),t),(0,r.__exportStar)(e(83095),t)},23535:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(17896),t),(0,r.__exportStar)(e(74702),t),(0,r.__exportStar)(e(22453),t),(0,r.__exportStar)(e(99814),t)},10673:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseGroup=t.traverseNestedGroup=t.Group=t.GroupConfig=t.NestedGroup=t.NestedGroupConfig=t.GroupFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(31289),u=e(8597),o=e(8435);t.GroupFieldType="Group";let a=n=>r.exact(r.partial({label:u.StringOrNull,repeat:r.boolean,fields:r.record(i.WidgetKey,n)})),c=n=>r.exact(r.intersection([r.type({type:r.literal(t.GroupFieldType)}),r.partial({fieldset:u.StringOrNull,icon:r.string,description:r.string,config:a(n)})]));function f(n){var t;let e;let{path:r,group:i,onField:u}=n;if(!(null===(t=i.config)||void 0===t?void 0:t.fields))return i;for(let[n,t]of Object.entries(i.config.fields)){let o=u({path:[...r,n],key:n,field:t});t!==o&&(e||(e={...i.config.fields}),e[n]=o)}return e?{...i,config:{...i.config,fields:e}}:i}t.NestedGroupConfig=a(o.NestableWidget),t.NestedGroup=c(o.NestableWidget),t.GroupConfig=a(r.union([o.NestableWidget,t.NestedGroup])),t.Group=c(r.union([o.NestableWidget,t.NestedGroup])),t.traverseNestedGroup=f,t.traverseGroup=function(n){var t;let e;let{path:r,group:i,onField:u}=n;if(!(null===(t=i.config)||void 0===t?void 0:t.fields))return i;for(let[n,t]of Object.entries(i.config.fields)){let o;let a=[...r,n];o="Group"===t.type?f({path:a,group:t,onField:u}):t;let c=u({path:a,key:n,field:o});o!==c&&(e||(e={...i.config.fields}),e[n]=c)}return e?{...i,config:{...i.config,fields:e}}:i}},63437:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UID=t.UIDConfig=t.UIDFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.UIDFieldType="UID",t.UIDConfig=r.exact(r.partial({label:i.StringOrNull,useAsTitle:r.boolean,placeholder:r.string})),t.UID=r.exact(r.intersection([r.type({type:r.literal(t.UIDFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.UIDConfig})]))},53039:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Widgets=t.FieldType=t.DynamicWidget=t.StaticWidget=t.widgetReader=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(10673),u=e(44613),o=e(8435),a=e(78110),c=e(63437);function f(n){return r.union([c.UID,o.NestableWidget,i.Group,n])}t.widgetReader=f,t.StaticWidget=f(a.StaticSlices),t.DynamicWidget=f(a.DynamicSlices),t.FieldType=r.keyof({[u.ColorFieldType]:null,[u.BooleanFieldType]:null,[u.NumberFieldType]:null,[u.EmbedFieldType]:null,[u.GeoPointFieldType]:null,[u.DateFieldType]:null,[u.RangeFieldType]:null,[u.RichTextFieldType]:null,[u.SelectFieldType]:null,[u.SeparatorFieldType]:null,[u.TableFieldType]:null,[u.TextFieldType]:null,[u.TimestampFieldType]:null,[u.LinkFieldType]:null,[u.ImageFieldType]:null,[u.IntegrationFieldType]:null,[c.UIDFieldType]:null,[i.GroupFieldType]:null,[a.SlicesFieldType]:null,[a.LegacySlicesFieldType]:null}),t.Widgets={toStatic(n,t){switch(n.type){case"Choice":case"Slices":return a.Slices.toStatic(n,t);default:return n}}}},99814:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(10673),t),(0,r.__exportStar)(e(44613),t),(0,r.__exportStar)(e(77666),t),(0,r.__exportStar)(e(30324),t),(0,r.__exportStar)(e(63437),t),(0,r.__exportStar)(e(53039),t)},66014:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanField=t.BooleanConfig=t.BooleanFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.BooleanFieldType="Boolean",t.BooleanConfig=r.exact(r.partial({label:i.StringOrNull,default_value:r.boolean,placeholder_true:r.string,placeholder_false:r.string})),t.BooleanField=r.exact(r.intersection([r.type({type:r.literal(t.BooleanFieldType)}),r.partial({config:t.BooleanConfig})]))},2330:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Color=t.ColorConfig=t.ColorFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.ColorFieldType="Color",t.ColorConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string})),t.Color=r.exact(r.intersection([r.type({type:r.literal(t.ColorFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.ColorConfig})]))},77352:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Date=t.DateConfig=t.DateFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.DateFieldType="Date",t.DateConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,default:r.string})),t.Date=r.exact(r.intersection([r.type({type:r.literal(t.DateFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.DateConfig})]))},53142:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Embed=t.EmbedConfig=t.EmbedFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.EmbedFieldType="Embed",t.EmbedConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,useAsTitle:r.boolean})),t.Embed=r.exact(r.intersection([r.type({type:r.literal(t.EmbedFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.EmbedConfig})]))},46068:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPoint=t.GeoPointConfig=t.GeoPointFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.GeoPointFieldType="GeoPoint",t.GeoPointConfig=r.exact(r.partial({label:i.StringOrNull})),t.GeoPoint=r.exact(r.intersection([r.type({type:r.literal(t.GeoPointFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.GeoPointConfig})]))},65694:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Image=t.ImageConfig=t.Thumbnail=t.ImageFieldType=void 0;let r=e(22970),i=(0,r.__importStar)(e(87830)),u=e(8597),o=(0,r.__importDefault)(e(71747));t.ImageFieldType="Image",t.Thumbnail=i.exact(i.intersection([i.type({name:i.string}),o.default])),t.ImageConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,constraint:o.default,thumbnails:i.readonlyArray(t.Thumbnail)})),t.Image=i.exact(i.intersection([i.type({type:i.literal(t.ImageFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.ImageConfig})]))},60337:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationField=t.IntegrationFieldConfig=t.IntegrationFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.IntegrationFieldType="IntegrationFields",t.IntegrationFieldConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,catalog:r.string})),t.IntegrationField=r.exact(r.intersection([r.type({type:r.literal(t.IntegrationFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.IntegrationFieldConfig})]))},64907:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Link=t.LinkConfig=t.LinkFieldType=t.CustomTypes=void 0;let r=e(22970),i=e(87412),u=(0,r.__importStar)(e(87830)),o=e(69624),a=e(8597),c=n=>{if(n instanceof Array&&n.reduce((n,t)=>n&&"string"==typeof t,!0))return u.success(n)},f=n=>{if("string"==typeof n)return u.success([n])},l=new u.Type("MasksArrayString",n=>n instanceof Array,(n,t)=>i.either.chain(u.union([u.array(u.string),u.string]).validate(n,t),e=>c(e)||f(e)||u.failure(n,t)),n=>n),p=new u.Type("CustomTypeLevel2FieldGroupFields",n=>Array.isArray(n)&&n.every(n=>"string"==typeof n),(n,t)=>i.either.chain(u.array(u.string).validate(n,t),e=>new Set(e).size===e.length?u.success(e):u.failure(n,t,"Fields have duplicates.")),n=>n),d=u.union([u.strict({id:u.string,fields:p}),u.string]),s=new u.Type("CustomTypeLevel2Fields",n=>Array.isArray(n)&&n.every(n=>d.is(n)),(n,t)=>i.either.chain(u.array(d).validate(n,t),e=>new Set(e.map(n=>"string"==typeof n?n:n.id)).size===e.length?u.success(e):u.failure(n,t,"Fields have duplicates.")),n=>n),h=u.union([u.string,u.strict({id:u.string,fields:s})]),m=new u.Type("CustomTypesLevel2",n=>Array.isArray(n)&&n.every(n=>h.is(n)),(n,t)=>i.either.chain(u.array(h).validate(n,t),e=>new Set(e.map(n=>"string"==typeof n?n:n.id)).size===e.length?u.success(e):u.failure(n,t,"Custom types have duplicates.")),n=>n),v=u.strict({id:u.string,customtypes:m}),g=u.union([v,u.string]),y=new u.Type("CustomTypeLevel1FieldGroupFields",n=>Array.isArray(n)&&n.every(n=>g.is(n)),(n,t)=>i.either.chain(u.array(g).validate(n,t),e=>new Set(e.map(n=>"string"==typeof n?n:n.id)).size===e.length?u.success(e):u.failure(n,t,"Fields have duplicates.")),n=>n),b=u.union([u.strict({id:u.string,fields:y}),v,u.string]),_=new u.Type("CustomTypeLevel1Fields",n=>Array.isArray(n)&&n.every(n=>b.is(n)),(n,t)=>i.either.chain(u.array(b).validate(n,t),e=>new Set(e.map(n=>"string"==typeof n?n:n.id)).size===e.length?u.success(e):u.failure(n,t,"Fields have duplicates.")),n=>n),I=u.union([u.string,u.strict({id:u.string,fields:_})]);t.CustomTypes=new u.Type("CustomTypes",n=>Array.isArray(n)&&n.every(n=>I.is(n)),(n,t)=>i.either.chain(u.array(I).validate(n,t),e=>{let r=new Set,i=new Set;for(let o of e){let e=!1;if("string"==typeof o)e=i.has(o),r.add(o);else{let{id:n}=o;e=r.has(n)||i.has(n),i.add(n)}if(e)return u.failure(n,t,"Custom types have duplicates.")}return u.success(e)}),n=>n),t.LinkFieldType="Link",t.LinkConfig=u.exact(u.partial({label:a.StringOrNull,useAsTitle:u.boolean,placeholder:u.string,select:(0,o.withFallback)(u.union([u.literal("media"),u.literal("document"),u.literal("web"),u.null]),null),customtypes:t.CustomTypes,masks:l,tags:l,allowTargetBlank:u.boolean,allowText:u.boolean,repeat:u.boolean,variants:u.array(u.string)})),t.Link=u.exact(u.intersection([u.type({type:u.literal(t.LinkFieldType)}),u.partial({fieldset:a.StringOrNull,config:t.LinkConfig})]))},8435:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidget=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(66014),u=e(2330),o=e(77352),a=e(53142),c=e(46068),f=e(65694),l=e(60337),p=e(64907),d=e(16879),s=e(61490),h=e(48483),m=e(44284),v=e(29881),g=e(31324),y=e(36732),b=e(48903);t.NestableWidget=r.union([u.Color,i.BooleanField,a.Embed,c.GeoPoint,o.Date,d.Number,s.Range,h.RichText,m.Select,v.Separator,g.Table,y.Text,b.Timestamp,p.Link,f.Image,l.IntegrationField])},16879:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Number=t.NumberConfig=t.NumberFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(59054),u=e(8597);t.NumberFieldType="Number",t.NumberConfig=r.exact(r.partial({label:u.StringOrNull,placeholder:r.string,min:r.union([r.number,i.NumberFromString]),max:r.union([r.number,i.NumberFromString]),step:r.union([r.number,i.NumberFromString])})),t.Number=r.exact(r.intersection([r.type({type:r.literal(t.NumberFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.NumberConfig})]))},61490:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Range=t.RangeConfig=t.RangeFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(59054),u=e(8597);t.RangeFieldType="Range",t.RangeConfig=r.exact(r.partial({label:u.StringOrNull,placeholder:r.string,min:r.union([r.number,i.NumberFromString]),max:r.union([r.number,i.NumberFromString]),step:r.union([r.number,i.NumberFromString])})),t.Range=r.exact(r.intersection([r.type({type:r.literal(t.RangeFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.RangeConfig})]))},48483:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RichText=t.RichTextConfig=t.RichTextNodeTypeCodec=t.RichTextNodeType=t.DEFAULT_OPTION=t.RichTextFieldType=void 0;let r=e(22970),i=e(9554),u=e(87412),o=e(14632),a=(0,r.__importStar)(e(87830)),c=e(8597),f=(0,r.__importDefault)(e(71747));t.RichTextFieldType="StructuredText",t.DEFAULT_OPTION="paragraph",t.RichTextNodeType={heading1:"heading1",heading2:"heading2",heading3:"heading3",heading4:"heading4",heading5:"heading5",heading6:"heading6",paragraph:"paragraph",strong:"strong",em:"em",preformatted:"preformatted",hyperlink:"hyperlink",image:"image",embed:"embed",list:"list-item",orderedList:"o-list-item",rtl:"rtl"},t.RichTextNodeTypeCodec=a.keyof({[t.RichTextNodeType.heading1]:null,[t.RichTextNodeType.heading2]:null,[t.RichTextNodeType.heading3]:null,[t.RichTextNodeType.heading4]:null,[t.RichTextNodeType.heading5]:null,[t.RichTextNodeType.heading6]:null,[t.RichTextNodeType.paragraph]:null,[t.RichTextNodeType.strong]:null,[t.RichTextNodeType.em]:null,[t.RichTextNodeType.preformatted]:null,[t.RichTextNodeType.hyperlink]:null,[t.RichTextNodeType.image]:null,[t.RichTextNodeType.embed]:null,[t.RichTextNodeType.list]:null,[t.RichTextNodeType.orderedList]:null,[t.RichTextNodeType.rtl]:null});let l=new a.Type("RichTextOptions",n=>"string"==typeof n,n=>(0,o.pipe)(a.union([a.string,a.null]).decode(n),i.either.map(n=>{if(!n)return t.DEFAULT_OPTION;let e=n.split(",").map(n=>n.trim()).filter(n=>(0,u.getOrElseW)(()=>void 0)(t.RichTextNodeTypeCodec.decode(n)));return e.length?e.join(","):t.DEFAULT_OPTION})),n=>n),p=n=>{if(!n)return a.success([])},d=n=>{if(n instanceof Object){if(!Object.entries(n).length)return a.success([]);if(n[""])return a.success(n[""].map(n=>n.name));let t=Object.entries(n).reduce((n,[,t])=>n.concat(t.map(n=>n.name)),[]).filter(Boolean);return a.success(t)}},s=n=>{if(n instanceof Array&&n.reduce((n,t)=>n&&"string"==typeof t,!0))return a.success(n)},h=n=>{if("string"==typeof n)return a.success([n])},m=new a.Type("RichTextLabels",n=>n instanceof Array,(n,t)=>{let e=a.record(a.string,a.readonlyArray(a.record(a.literal("name"),a.string))),r=a.readonlyArray(a.string);return(0,o.pipe)(a.union([e,r,a.string,a.null]).decode(n),i.either.chain(e=>p(e)||s(e)||d(e)||h(e)||a.failure(n,t)))},n=>n);t.RichTextConfig=a.exact(a.partial({label:c.StringOrNull,placeholder:a.string,useAsTitle:a.boolean,single:l,multi:l,imageConstraint:f.default,labels:m,allowTargetBlank:a.boolean})),t.RichText=a.exact(a.intersection([a.type({type:a.literal(t.RichTextFieldType)}),a.partial({fieldset:c.StringOrNull,config:t.RichTextConfig})]))},44284:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Select=t.SelectConfig=t.SelectFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.SelectFieldType="Select",t.SelectConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,default_value:r.string,options:r.readonlyArray(r.union([r.string,i.StringFromNumber,i.StringFromBoolean]))})),t.Select=r.exact(r.intersection([r.type({type:r.literal(t.SelectFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.SelectConfig})]))},29881:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Separator=t.SeparatorConfig=t.SeparatorFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.SeparatorFieldType="Separator",t.SeparatorConfig=r.exact(r.partial({label:i.StringOrNull})),t.Separator=r.exact(r.intersection([r.type({type:r.literal(t.SeparatorFieldType)}),r.partial({config:t.SeparatorConfig})]))},31324:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TableCell=t.Table=t.TableFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597),u=e(48483);t.TableFieldType="Table";let o=r.exact(r.partial({label:i.StringOrNull}));t.Table=r.exact(r.intersection([r.type({type:r.literal(t.TableFieldType)}),r.partial({config:o})])),t.TableCell={type:"StructuredText",config:{multi:[u.RichTextNodeType.paragraph,u.RichTextNodeType.strong,u.RichTextNodeType.em,u.RichTextNodeType.hyperlink].join(",")}}},36732:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextConfig=t.TextFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.TextFieldType="Text",t.TextConfig=r.exact(r.partial({label:i.StringOrNull,useAsTitle:r.boolean,placeholder:r.string})),t.Text=r.exact(r.intersection([r.type({type:r.literal(t.TextFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.TextConfig})]))},48903:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.TimestampConfig=t.TimestampFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);t.TimestampFieldType="Timestamp",t.TimestampConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,default:r.string})),t.Timestamp=r.exact(r.intersection([r.type({type:r.literal(t.TimestampFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.TimestampConfig})]))},44613:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(66014),t),(0,r.__exportStar)(e(2330),t),(0,r.__exportStar)(e(77352),t),(0,r.__exportStar)(e(53142),t),(0,r.__exportStar)(e(46068),t),(0,r.__exportStar)(e(65694),t),(0,r.__exportStar)(e(60337),t),(0,r.__exportStar)(e(64907),t),(0,r.__exportStar)(e(8435),t),(0,r.__exportStar)(e(16879),t),(0,r.__exportStar)(e(61490),t),(0,r.__exportStar)(e(48483),t),(0,r.__exportStar)(e(44284),t),(0,r.__exportStar)(e(29881),t),(0,r.__exportStar)(e(31324),t),(0,r.__exportStar)(e(36732),t),(0,r.__exportStar)(e(48903),t)},71747:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(87412),u=(0,r.__importStar)(e(87830)),o=e(11621),a=e(8597),c=new u.Type("SideConstraints",n=>!n||"number"==typeof n,(n,t)=>i.either.chain(u.union([u.literal("auto"),u.literal(""),u.Int,o.IntFromString,a.IntFromNumber,a.IntFromPixels,u.null]).validate(n,t),n=>"auto"===n||""===n?u.success(null):u.success(n)),n=>n),f=u.partial({width:c,height:c});t.default=f},77666:function(n,t,e){var r=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConstraint=void 0;var i=e(71747);Object.defineProperty(t,"ImageConstraint",{enumerable:!0,get:function(){return r(i).default}})},26417:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseCompositeSlice=t.isCompositeSlice=t.CompositeSlice=t.CompositeSliceConfig=t.CompositeSliceType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(31289),u=e(8597),o=e(8435);t.CompositeSliceType="Slice",t.CompositeSliceConfig=r.exact(r.partial({label:u.StringOrNull})),t.CompositeSlice=r.exact(r.intersection([r.type({type:r.literal(t.CompositeSliceType)}),r.partial({fieldset:u.StringOrNull,description:r.string,icon:r.string,display:r.string,"non-repeat":r.record(i.WidgetKey,o.NestableWidget),repeat:r.record(i.WidgetKey,o.NestableWidget),config:t.CompositeSliceConfig})])),t.isCompositeSlice=function(n){return"Slice"===n.type},t.traverseCompositeSlice=function(n){var t,e;let r,i;let{path:u,slice:o,onField:a}=n;for(let[n,e]of Object.entries(null!==(t=o["non-repeat"])&&void 0!==t?t:{})){let t=a({path:[...u,"non-repeat",n],key:n,field:e});e!==t&&(r||(r={...o["non-repeat"]}),r[n]=t)}for(let[n,t]of Object.entries(null!==(e=o.repeat)&&void 0!==e?e:{})){let e=a({path:[...u,"repeat",n],key:n,field:t});t!==e&&(i||(i={...o.repeat}),i[n]=e)}return i||r?{...o,...r&&{"non-repeat":r},...i&&{repeat:i}}:o}},97442:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isLegacySlice=t.LegacySlice=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(10673),u=e(8435);t.LegacySlice=r.union([u.NestableWidget,i.NestedGroup]),t.isLegacySlice=function(n){return"Slice"!==n.type&&"SharedSlice"!==n.type}},32233:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSharedSlice=t.traverseVariation=t.isDynamicSharedSlice=t.isStaticSharedSlice=t.SharedSlice=t.SharedSliceType=t.Variation=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(69624),u=e(31289),o=e(10673),a=e(8435),c=e(19288);t.Variation=r.exact(r.intersection([r.type({id:r.string,name:r.string,description:r.string,imageUrl:(0,i.withFallback)(r.string,"https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format"),docURL:r.string,version:r.string}),r.partial({display:r.string,primary:r.record(u.WidgetKey,c.SlicePrimaryWidget),items:r.record(u.WidgetKey,a.NestableWidget)})])),t.SharedSliceType="SharedSlice";let f=r.string,l=r.string;function p(n){var t,e;let r,i;let{path:u,variation:a,onField:c}=n;for(let[n,e]of Object.entries(null!==(t=a.primary)&&void 0!==t?t:{})){let t;let i=[...u,"primary",n];t="Group"===e.type?(0,o.traverseGroup)({path:i,group:e,onField:c}):e;let f=c({path:i,key:n,field:t});t!==f&&(r||(r={...a.primary}),r[n]=f)}for(let[n,t]of Object.entries(null!==(e=a.items)&&void 0!==e?e:{})){let e=c({path:[...u,"items",n],key:n,field:t});t!==e&&(i||(i={...a.items}),i[n]=e)}return r||i?{...a,...r&&{primary:r},...i&&{items:i}}:a}t.SharedSlice=r.exact(r.intersection([r.type({id:r.string,type:r.literal(t.SharedSliceType),name:r.string,variations:r.readonlyArray(t.Variation)}),r.partial({description:r.string,legacyPaths:r.record(f,l)})])),t.isStaticSharedSlice=function(n){return"SharedSlice"===n.type},t.isDynamicSharedSlice=function(n){return"SharedSlice"===n.type},t.traverseVariation=p,t.traverseSharedSlice=function(n){let t;let{path:e,slice:r,onField:i}=n;for(let n=0;n<r.variations.length;n++){let u=r.variations[n];if(!u)continue;let o=p({path:[...e,u.id],variation:u,onField:i});o!==u&&(t||(t=[...r.variations]),t[n]=o)}return t?{...r,variations:t}:r}},73194:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceRef=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(32233);t.SharedSliceRef=r.exact(r.type({type:r.literal(i.SharedSliceType)}))},42738:function(n,t){Object.defineProperty(t,"__esModule",{value:!0})},19288:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryWidget=t.SlicePrimaryWidget=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(10673),u=e(44613);t.SlicePrimaryWidget=r.union([u.NestableWidget,i.Group]),t.isSlicePrimaryWidget=n=>u.NestableWidget.is(n)||i.Group.is(n)},78110:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSlices=t.Slices=t.DynamicSlices=t.StaticSlices=t.slicesReader=t.DynamicSlicesConfig=t.StaticSlicesConfig=t.slicesConfigReader=t.SlicesLabels=t.SlicesFieldType=t.LegacySlicesFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(31289),u=e(8597),o=e(10673),a=e(26417),c=e(97442),f=e(32233),l=e(73194);function p(n){return r.exact(r.partial({label:u.StringOrNull,labels:t.SlicesLabels,choices:r.record(i.WidgetKey,r.union([c.LegacySlice,a.CompositeSlice,n]))}))}t.LegacySlicesFieldType="Choice",t.SlicesFieldType="Slices",t.SlicesLabels=r.union([r.record(r.string,r.readonlyArray(r.exact(r.intersection([r.type({name:r.string}),r.partial({display:r.string})])))),r.null]),t.slicesConfigReader=p,t.StaticSlicesConfig=p(f.SharedSlice),t.DynamicSlicesConfig=p(l.SharedSliceRef);let d={toStatic(n,t){let e=Object.entries(n.choices||{}).reduce((n,[e,r])=>{if("SharedSlice"!==r.type)return{...n,[e]:r};{let r=t.get(e);return r?{...n,[e]:r}:n}},{});return{...n,choices:e}}};function s(n){return r.exact(r.intersection([r.type({type:r.keyof({[t.SlicesFieldType]:null,[t.LegacySlicesFieldType]:null})}),r.partial({fieldset:u.StringOrNull,config:n})]))}t.slicesReader=s,t.StaticSlices=s(t.StaticSlicesConfig),t.DynamicSlices=s(t.DynamicSlicesConfig),t.Slices={toStatic:(n,t)=>n.config?{...n,config:d.toStatic(n.config,t)}:n},t.traverseSlices=function(n){var t;let e;let{path:r,slices:i,onField:u}=n;if(!(null===(t=i.config)||void 0===t?void 0:t.choices))return i;for(let[n,t]of Object.entries(i.config.choices)){let c;let l=[...r,n];switch(t.type){case"Slice":c=(0,a.traverseCompositeSlice)({path:l,slice:t,onField:u});break;case"SharedSlice":c="variations"in t?(0,f.traverseSharedSlice)({path:l,slice:t,onField:u}):t;break;case"Group":c=u({path:l,key:n,field:(0,o.traverseNestedGroup)({path:l,group:t,onField:u})});break;default:c=u({path:l,key:n,field:t})}c!==t&&(e||(e={...i.config.choices}),e[n]=c)}return e?{...i,config:{...i.config,choices:e}}:i}},51945:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesTypes=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(26417),u=e(32233);t.SlicesTypes=r.keyof({[i.CompositeSliceType]:null,[u.SharedSliceType]:null})},30324:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(26417),t),(0,r.__exportStar)(e(97442),t),(0,r.__exportStar)(e(32233),t),(0,r.__exportStar)(e(73194),t),(0,r.__exportStar)(e(42738),t),(0,r.__exportStar)(e(19288),t),(0,r.__exportStar)(e(78110),t),(0,r.__exportStar)(e(51945),t)},18949:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toRecord=void 0,t.toRecord=function(n,t){return n.reduce((n,e)=>{let r=t(e);return{...n,[r]:e}},{})}},17160:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.mapValues=t.isObject=t.withOptionals=t.isNotEmpty=t.zipObjects=void 0;let r=e(22970),i=e(87412),u=(0,r.__importStar)(e(87830));t.zipObjects=function(n,t){return[...new Set(Object.keys(n||{}).concat(Object.keys(t||{})))].reduce((e,r)=>{let i=null==n?void 0:n[r],u=null==t?void 0:t[r];return{...e,[r]:{left:i,right:u}}},{})},t.isNotEmpty=function(n){return!!Object.keys(n).length},t.withOptionals=function(n,t){return{...n,...t.reduce((n,[t,e])=>e?{...n,[t]:e}:n,{})}};let o=u.record(u.string,u.unknown);t.isObject=function(n){return(0,i.isRight)(o.decode(n))},t.mapValues=function(n,t){return Object.entries(n).reduce((n,[e,r])=>({...n,[e]:t(r,e)}),{})}},35566:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Objects=t.Arrays=t.HexaColorCode=void 0;let r=e(22970);t.HexaColorCode=(0,r.__importStar)(e(55962)),t.Arrays=(0,r.__importStar)(e(18949)),t.Objects=(0,r.__importStar)(e(17160))},19841:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArray=t.EmptyObject=t.Boolean=t.NumberOrNull=t.Number=t.StringOrNull=t.String=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(35002);t.String=(0,a.withCustomError)(o.string,()=>"The value must be a string"),t.StringOrNull=(0,a.withCustomError)(o.union([o.string,o.null]),()=>"The value must be a string or null"),t.Number=(0,a.withCustomError)(o.number,()=>"The value must be a number"),t.NumberOrNull=(0,a.withCustomError)(o.union([o.number,o.null]),()=>"The value must be a number or null"),t.Boolean=(0,a.withCustomError)(o.boolean,()=>"The value must be a boolean"),t.EmptyObject=o.UnknownRecord.pipe(new o.Type("emptyObject",n=>o.UnknownRecord.is(n),(n,t)=>Object.keys(n).length>0?o.failure(n,t,"The object is not empty."):o.success({}),o.identity)),t.EmptyArray=new o.Type("emptyArray",n=>o.UnknownArray.is(n)&&0===n.length,(n,t)=>(0,u.pipe)(o.UnknownArray.decode(n),i.either.chain(e=>e.length>0?o.failure(n,t,"The array is not empty."):o.success([]))),()=>[])},89394:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830)),a=e(8597);t.default=new o.Type("dateFromString",n=>n instanceof Date,(n,t)=>(0,u.pipe)(a.String.validate(n,t),(0,i.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(n,t):o.success(r)})),n=>n.toISOString())},23954:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("dateFromStringOrNumber",n=>n instanceof Date,(n,t)=>(0,u.pipe)(o.union([o.number,o.string]).validate(n,t),(0,i.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(n,t):o.success(r)})),n=>n)},72113:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("dateFromTsMs",n=>n instanceof Date,(n,t)=>(0,u.pipe)(o.number.validate(n,t),(0,i.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(n,t):o.success(r)})),n=>n.getTime())},35541:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArrayOrElse=t.EmptyObjectOrElse=t.NullOrElse=t.DefaultOrElse=void 0;let r=e(22970),i=e(87412),u=(0,r.__importStar)(e(87830)),o=e(19841);t.DefaultOrElse=n=>t=>new u.Type(`DefaultOrElse<${n.name}, ${t.name}>`,n=>null===n||t.is(n),(e,r)=>(0,i.isRight)(n.validate(e,r))?u.success(null):t.validate(e,r),n=>n?t.encode(n):void 0),t.NullOrElse=n=>(0,t.DefaultOrElse)(u.null)(n),t.EmptyObjectOrElse=n=>(0,t.DefaultOrElse)(o.EmptyObject)(n),t.EmptyArrayOrElse=n=>(0,t.DefaultOrElse)(o.EmptyArray)(n)},62990:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("IntFromNumber",o.Int.is,(n,t)=>(0,u.pipe)(o.number.validate(n,t),(0,i.chain)(n=>o.Int.is(n)?o.success(n):o.success(Math.round(n)))),o.Int.encode)},64678:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830)),a=/^([0-9]+)px$/;t.default=new o.Type("IntFromPixels",o.Int.is,(n,t)=>(0,u.pipe)(o.string.validate(n,t),(0,i.chain)(e=>{try{let r=e.match(a);if(!r)return o.failure(n,t);let i=parseInt(r[1]);return o.success(i)}catch{return o.failure(n,t)}})),String)},19528:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(87830)),i=e(35002);t.default=(0,i.withCustomError)((0,i.refineType)(r.string,"nonEmptyString",n=>n.trim().length>0),()=>"The value must be a non-empty string")},89448:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=e(87830),a=(0,r.__importDefault)(e(89793));t.default=new o.Type("nonEmptyStringOrNull",n=>"string"==typeof n||null===n,(n,t)=>(0,u.pipe)(a.default.validate(n,t),(0,i.chain)(n=>"string"==typeof n&&n.length>0?(0,o.success)(n):(0,o.success)(null))),n=>n)},33805:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(87830)),i=e(35002);t.default=(0,i.nullable)(r.number)},13670:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(87830)),i=e(19841);t.default=(n,t,e)=>i.Number.pipe(new r.Type("numberInRange",n=>i.Number.is(n),(i,u)=>i>t||i<n?r.failure(i,u,`${e} must be a number between ${n} and ${t}`):r.success(i),r.identity))},32047:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("StringFromInt",o.string.is,(n,t)=>(0,u.pipe)(o.boolean.validate(n,t),(0,i.chain)(n=>o.success(n.toString()))),n=>n)},80990:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("StringFromInt",o.string.is,(n,t)=>(0,u.pipe)(o.number.validate(n,t),(0,i.chain)(n=>o.success(n.toString()))),n=>n)},89793:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(87830)),i=e(35002);t.default=(0,i.nullable)(r.string)},38729:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("TrimmedString",o.string.is,(n,t)=>(0,u.pipe)(o.string.validate(n,t),(0,i.chain)(n=>o.success(function(n){let t=0;for(;t<n.length&&n[t]<=" ";)t++;let e=n.length;for(;t<e&&n[e-1]<=" ";)e--;return n.substring(t,e)}(n)))),n=>n)},35002:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.withCustomError=t.addType=t.isEmpty=t.objectToMap=t.grouped=t.formatDate=t.formatDateTime=t.filterDouble=t.refineType=t.nullable=void 0;let r=e(22970),i=e(9554),u=e(42275),o=(0,r.__importStar)(e(87830)),a=e(23284),c=e(47361);t.nullable=function(n){return o.union([n,o.null,o.undefined])},t.refineType=function(n,t,e){return new o.Type(t,n.is,(t,r)=>(0,u.pipe)(n.validate(t,r),i.either.chain(n=>e(n)?o.success(n):o.failure(t,r))),n.encode)},t.filterDouble=function(n){if(""===n)return null;let t=Number(n);return Number.isNaN(t)?null:t},t.formatDateTime=function(n){return n.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(n){return n.toISOString().replace(/T.*/,"")},t.grouped=function(n,t){return n.reduce((n,e,r)=>(r%t==0?n.push([e]):n[Math.floor(r/t)].push(e),n),[])},t.objectToMap=function(n){return new Map(Object.entries(n))},t.isEmpty=function(n){for(let t in n)return!1;return!0},t.addType=function(n,t){return(0,c.mapOutput)(n,n=>({...n,__TYPE__:t}))},t.withCustomError=function(n,t){return(0,a.withValidate)(n,(e,r)=>i.either.mapLeft(n=>n.find(n=>n.message)?n:[{value:e,context:r,message:t(e,r),actual:e}])(n.validate(e,r)))}},8597:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.StringOrNull=t.StringFromNumber=t.StringFromBoolean=t.NumberRange=t.NumberOrNull=t.NonEmptyStringOrNull=t.NonEmptyString=t.IntFromPixels=t.IntFromNumber=t.Function=t.DateFromTsMs=t.DateFromStringOrNumber=t.DateFromString=void 0;let r=e(22970);(0,r.__exportStar)(e(19841),t);var i=e(89394);Object.defineProperty(t,"DateFromString",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var u=e(23954);Object.defineProperty(t,"DateFromStringOrNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}});var o=e(72113);Object.defineProperty(t,"DateFromTsMs",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}}),(0,r.__exportStar)(e(35541),t),t.Function=(0,r.__importStar)(e(35002));var a=e(62990);Object.defineProperty(t,"IntFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var c=e(64678);Object.defineProperty(t,"IntFromPixels",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var f=e(19528);Object.defineProperty(t,"NonEmptyString",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var l=e(89448);Object.defineProperty(t,"NonEmptyStringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var p=e(33805);Object.defineProperty(t,"NumberOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(p).default}});var d=e(13670);Object.defineProperty(t,"NumberRange",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}});var s=e(32047);Object.defineProperty(t,"StringFromBoolean",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var h=e(80990);Object.defineProperty(t,"StringFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(h).default}});var m=e(89793);Object.defineProperty(t,"StringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(m).default}})},46111:function(n,t,e){e.r(t),e.d(t,{getApplicativeComposition:function(){return a},getApplicativeMonoid:function(){return o}});var r=e(42925),i=e(42275),u=e(67560);function o(n){var t=(0,r.getApplySemigroup)(n);return function(e){return{concat:t(e).concat,empty:n.of(e.empty)}}}function a(n,t){var e=(0,u.getFunctorComposition)(n,t).map,o=(0,r.ap)(n,t);return{map:e,of:function(e){return n.of(t.of(e))},ap:function(n,t){return(0,i.pipe)(n,o(t))}}}},42925:function(n,t,e){e.r(t),e.d(t,{ap:function(){return u},apFirst:function(){return o},apS:function(){return c},apSecond:function(){return a},getApplySemigroup:function(){return f},sequenceS:function(){return s},sequenceT:function(){return d}});var r=e(42275),i=e(97963);function u(n,t){return function(e){return function(r){return n.ap(n.map(r,function(n){return function(e){return t.ap(n,e)}}),e)}}}function o(n){return function(t){return function(e){return n.ap(n.map(e,function(n){return function(){return n}}),t)}}}function a(n){return function(t){return function(e){return n.ap(n.map(e,function(){return function(n){return n}}),t)}}}function c(n){return function(t,e){return function(r){return n.ap(n.map(r,function(n){return function(e){var r;return Object.assign({},n,((r={})[t]=e,r))}}),e)}}}function f(n){return function(t){return{concat:function(e,r){return n.ap(n.map(e,function(n){return function(e){return t.concat(n,e)}}),r)}}}}function l(n,t,e){return function(r){for(var i=Array(e.length+1),u=0;u<e.length;u++)i[u]=e[u];return i[e.length]=r,0===t?n.apply(null,i):l(n,t-1,i)}}var p={1:function(n){return[n]},2:function(n){return function(t){return[n,t]}},3:function(n){return function(t){return function(e){return[n,t,e]}}},4:function(n){return function(t){return function(e){return function(r){return[n,t,e,r]}}}},5:function(n){return function(t){return function(e){return function(r){return function(i){return[n,t,e,r,i]}}}}}};function d(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var u=t.length,o=(i.e$.call(p,u)||(p[u]=l(r.tuple,u-1,[])),p[u]),a=n.map(t[0],o),c=1;c<u;c++)a=n.ap(a,t[c]);return a}}function s(n){return function(t){for(var e=Object.keys(t),r=e.length,i=function(n){var t=n.length;switch(t){case 1:return function(t){var e;return(e={})[n[0]]=t,e};case 2:return function(t){return function(e){var r;return(r={})[n[0]]=t,r[n[1]]=e,r}};case 3:return function(t){return function(e){return function(r){var i;return(i={})[n[0]]=t,i[n[1]]=e,i[n[2]]=r,i}}};case 4:return function(t){return function(e){return function(r){return function(i){var u;return(u={})[n[0]]=t,u[n[1]]=e,u[n[2]]=r,u[n[3]]=i,u}}}};case 5:return function(t){return function(e){return function(r){return function(i){return function(u){var o;return(o={})[n[0]]=t,o[n[1]]=e,o[n[2]]=r,o[n[3]]=i,o[n[4]]=u,o}}}}};default:return l(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var i={},u=0;u<t;u++)i[n[u]]=e[u];return i},t-1,[])}}(e),u=n.map(t[e[0]],i),o=1;o<r;o++)u=n.ap(u,t[e[o]]);return u}}},1358:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return tY},Alternative:function(){return tH},Applicative:function(){return tN},Apply:function(){return tA},Chain:function(){return tj},ChainRecBreadthFirst:function(){return t9},ChainRecDepthFirst:function(){return t7},Compactable:function(){return tX},Do:function(){return ef},Extend:function(){return tz},Filterable:function(){return tJ},FilterableWithIndex:function(){return t$},Foldable:function(){return tZ},FoldableWithIndex:function(){return tQ},FromEither:function(){return en},Functor:function(){return tW},FunctorWithIndex:function(){return tD},Monad:function(){return tG},Pointed:function(){return tP},Traversable:function(){return t0},TraversableWithIndex:function(){return t2},URI:function(){return tR},Unfoldable:function(){return tK},Witherable:function(){return t5},Zero:function(){return tB},alt:function(){return to},altW:function(){return tu},ap:function(){return n1},apFirst:function(){return tU},apS:function(){return es},apSecond:function(){return tL},append:function(){return y},appendW:function(){return b},array:function(){return e_},bind:function(){return ed},bindTo:function(){return el},chain:function(){return eh},chainFirst:function(){return tq},chainRecBreadthFirst:function(){return t4},chainRecDepthFirst:function(){return t3},chainWithIndex:function(){return F},chop:function(){return n_},chunksOf:function(){return nR},compact:function(){return n9},comprehension:function(){return nT},concat:function(){return nw},concatW:function(){return nx},cons:function(){return eg},copy:function(){return nr},deleteAt:function(){return no},difference:function(){return nE},dropLeft:function(){return z},dropLeftWhile:function(){return J},dropRight:function(){return X},duplicate:function(){return tf},elem:function(){return ng},empty:function(){return ev},every:function(){return eu},exists:function(){return ea},extend:function(){return tc},filter:function(){return tn},filterE:function(){return t6},filterMap:function(){return n4},filterMapWithIndex:function(){return n7},filterWithIndex:function(){return ta},findFirst:function(){return Z},findFirstMap:function(){return Q},findIndex:function(){return $},findLast:function(){return nn},findLastIndex:function(){return ne},findLastMap:function(){return nt},flap:function(){return tF},flatMap:function(){return n8},flatten:function(){return n5},foldLeft:function(){return E},foldMap:function(){return tl},foldMapWithIndex:function(){return tp},foldRight:function(){return W},fromEither:function(){return T},fromEitherK:function(){return et},fromOption:function(){return S},fromOptionK:function(){return nS},fromPredicate:function(){return R},getDifferenceMagma:function(){return tk},getEq:function(){return tw},getIntersectionSemigroup:function(){return tC},getMonoid:function(){return tx},getOrd:function(){return tM},getSemigroup:function(){return tT},getShow:function(){return tS},getUnionMonoid:function(){return tE},getUnionSemigroup:function(){return tO},guard:function(){return tV},head:function(){return N},init:function(){return G},insertAt:function(){return ni},intercalate:function(){return ec},intersection:function(){return nO},intersperse:function(){return nm},isEmpty:function(){return h},isNonEmpty:function(){return m},isOutOfBound:function(){return U},last:function(){return j},lefts:function(){return nl},let:function(){return ep},lookup:function(){return L},makeBy:function(){return _},map:function(){return n2},mapWithIndex:function(){return n3},match:function(){return w},matchLeft:function(){return O},matchLeftW:function(){return M},matchRight:function(){return k},matchRightW:function(){return C},matchW:function(){return x},modifyAt:function(){return na},of:function(){return nQ},partition:function(){return tt},partitionMap:function(){return tr},partitionMapWithIndex:function(){return ti},partitionWithIndex:function(){return te},prepend:function(){return v},prependAll:function(){return nh},prependToAll:function(){return eb},prependW:function(){return g},range:function(){return em},reduce:function(){return td},reduceRight:function(){return th},reduceRightWithIndex:function(){return tm},reduceWithIndex:function(){return ts},replicate:function(){return I},reverse:function(){return nc},rights:function(){return nf},rotate:function(){return nv},scanLeft:function(){return P},scanRight:function(){return D},separate:function(){return n6},sequence:function(){return tg},size:function(){return A},snoc:function(){return ey},some:function(){return eo},sort:function(){return np},sortBy:function(){return nb},spanLeft:function(){return H},splitAt:function(){return nI},tail:function(){return q},takeLeft:function(){return K},takeLeftWhile:function(){return B},takeRight:function(){return Y},traverse:function(){return tv},traverseWithIndex:function(){return ty},unfold:function(){return tI},union:function(){return nM},uniq:function(){return ny},unsafeDeleteAt:function(){return ei},unsafeInsertAt:function(){return ee},unsafeUpdateAt:function(){return er},unzip:function(){return ns},updateAt:function(){return nu},wilt:function(){return t_},wither:function(){return tb},zero:function(){return n0},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:nd(t,e,function(n,t){return[n,t]})}},zipWith:function(){return nd}});var r=e(42925),i=e(88543),u=e(25162),o=e(42275),a=e(67560),c=e(97963),f=e(43586),l=e(31583),p=e(34219),d=e(76511),s=e(28957),h=function(n){return 0===n.length},m=f.isNonEmpty,v=f.prepend,g=f.prependW,y=f.append,b=f.appendW,_=function(n,t){return n<=0?[]:f.makeBy(t)(n)},I=function(n,t){return _(n,function(){return t})};function R(n){return function(t){return n(t)?[t]:[]}}var S=function(n){return c.Wi(n)?[]:[n.value]},T=function(n){return c.nM(n)?[]:[n.right]},x=function(n,t){return function(e){return m(e)?t(e):n()}},w=x,M=function(n,t){return function(e){return m(e)?t(f.head(e),f.tail(e)):n()}},O=M,E=O,C=function(n,t){return function(e){return m(e)?t(f.init(e),f.last(e)):n()}},k=C,W=k,F=function(n){return function(t){for(var e=[],r=0;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},P=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[0]=n;for(var u=0;u<r;u++)i[u+1]=t(i[u],e[u]);return i}},D=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[r]=n;for(var u=r-1;u>=0;u--)i[u]=t(e[u],i[u+1]);return i}},A=function(n){return n.length},U=f.isOutOfBound,L=l.lookup,N=l.head,j=l.last,q=function(n){return m(n)?c.G(f.tail(n)):c.YP},G=function(n){return m(n)?c.G(f.init(n)):c.YP},K=function(n){return function(t){return U(n,t)?nr(t):t.slice(0,n)}},Y=function(n){return function(t){return U(n,t)?nr(t):0===n?[]:t.slice(-n)}};function B(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r];if(!n(i))break;e.push(i)}return e}}var V=function(n,t){for(var e=n.length,r=0;r<e&&t(n[r]);r++);return r};function H(n){return function(t){var e=nI(V(t,n))(t);return{init:e[0],rest:e[1]}}}var z=function(n){return function(t){return n<=0||h(t)?nr(t):n>=t.length?[]:t.slice(n,t.length)}},X=function(n){return function(t){return n<=0||h(t)?nr(t):n>=t.length?[]:t.slice(0,t.length-n)}};function J(n){return function(t){return t.slice(V(t,n))}}var $=l.findIndex;function Z(n){return l.findFirst(n)}var Q=l.findFirstMap;function nn(n){return l.findLast(n)}var nt=l.findLastMap,ne=l.findLastIndex,nr=function(n){return n.slice()},ni=function(n,t){return function(e){return n<0||n>e.length?c.YP:c.G(ee(n,t,e))}},nu=function(n,t){return na(n,function(){return t})},no=function(n){return function(t){return U(n,t)?c.YP:c.G(ei(n,t))}},na=function(n,t){return function(e){return U(n,e)?c.YP:c.G(er(n,t(e[n]),e))}},nc=function(n){return h(n)?[]:n.slice().reverse()},nf=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Right"===r._tag&&t.push(r.right)}return t},nl=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Left"===r._tag&&t.push(r.left)}return t},np=function(n){return function(t){return t.length<=1?nr(t):t.slice().sort(n.compare)}},nd=function(n,t,e){for(var r=[],i=Math.min(n.length,t.length),u=0;u<i;u++)r[u]=e(n[u],t[u]);return r},ns=function(n){for(var t=[],e=[],r=0;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},nh=function(n){var t=f.prependAll(n);return function(n){return m(n)?t(n):[]}},nm=function(n){var t=f.intersperse(n);return function(n){return m(n)?t(n):nr(n)}},nv=function(n){var t=f.rotate(n);return function(n){return m(n)?t(n):nr(n)}},ng=l.elem,ny=function(n){var t=f.uniq(n);return function(n){return m(n)?t(n):nr(n)}},nb=function(n){var t=f.sortBy(n);return function(n){return m(n)?t(n):nr(n)}},n_=function(n){var t=f.chop(n);return function(n){return m(n)?t(n):[]}},nI=function(n){return function(t){return n>=1&&m(t)?f.splitAt(n)(t):h(t)?[nr(t),[]]:[[],nr(t)]}},nR=function(n){var t=f.chunksOf(n);return function(n){return m(n)?t(n):[]}},nS=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return S(n.apply(void 0,t))}};function nT(n,t,e){void 0===e&&(e=function(){return!0});var r=function(n,i){return m(i)?n8(f.head(i),function(t){return r((0,o.pipe)(n,y(t)),f.tail(i))}):e.apply(void 0,n)?[t.apply(void 0,n)]:[]};return r([],n)}var nx=function(n){return function(t){return h(t)?nr(n):h(n)?nr(t):t.concat(n)}},nw=nx;function nM(n){var t=f.union(n);return function(e,r){if(void 0===r){var i=nM(n);return function(n){return i(n,e)}}return m(e)&&m(r)?t(r)(e):m(e)?nr(e):nr(r)}}function nO(n){var t=ng(n);return function(e,r){if(void 0===r){var i=nO(n);return function(n){return i(n,e)}}return e.filter(function(n){return t(n,r)})}}function nE(n){var t=ng(n);return function(e,r){if(void 0===r){var i=nE(n);return function(n){return i(n,e)}}return e.filter(function(n){return!t(n,r)})}}var nC=function(n,t){return(0,o.pipe)(n,n2(t))},nk=function(n,t){return(0,o.pipe)(n,n3(t))},nW=function(n,t){return(0,o.pipe)(n,n1(t))},nF=function(n,t){return(0,o.pipe)(n,tn(t))},nP=function(n,t){return(0,o.pipe)(n,n4(t))},nD=function(n,t){return(0,o.pipe)(n,tt(t))},nA=function(n,t){return(0,o.pipe)(n,tr(t))},nU=function(n,t){return(0,o.pipe)(n,te(t))},nL=function(n,t){return(0,o.pipe)(n,ti(t))},nN=function(n,t){return(0,o.pipe)(n,to(t))},nj=function(n,t,e){return(0,o.pipe)(n,td(t,e))},nq=function(n){var t=tl(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nG=function(n,t,e){return(0,o.pipe)(n,th(t,e))},nK=function(n,t,e){return(0,o.pipe)(n,ts(t,e))},nY=function(n){var t=tp(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nB=function(n,t,e){return(0,o.pipe)(n,tm(t,e))},nV=function(n,t){return(0,o.pipe)(n,n7(t))},nH=function(n,t){return(0,o.pipe)(n,ta(t))},nz=function(n,t){return(0,o.pipe)(n,tc(t))},nX=function(n){var t=tv(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nJ=function(n){var t=ty(n);return function(n,e){return(0,o.pipe)(n,t(e))}},n$=l._chainRecDepthFirst,nZ=l._chainRecBreadthFirst,nQ=f.of,n0=function(){return[]},n2=function(n){return function(t){return t.map(function(t){return n(t)})}},n1=function(n){return n8(function(t){return(0,o.pipe)(n,n2(t))})},n8=(0,o.dual)(2,function(n,t){return(0,o.pipe)(n,F(function(n,e){return t(e,n)}))}),n5=n8(o.identity),n3=function(n){return function(t){return t.map(function(t,e){return n(e,t)})}},n7=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=n(r,t[r]);c.pC(i)&&e.push(i.value)}return e}},n4=function(n){return n7(function(t,e){return n(e)})},n9=n4(o.identity),n6=function(n){for(var t=[],e=[],r=0;r<n.length;r++){var i=n[r];"Left"===i._tag?t.push(i.left):e.push(i.right)}return(0,p.separated)(t,e)},tn=function(n){return function(t){return t.filter(n)}},tt=function(n){return te(function(t,e){return n(e)})},te=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=t[i];n(i,u)?r.push(u):e.push(u)}return(0,p.separated)(e,r)}},tr=function(n){return ti(function(t,e){return n(e)})},ti=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=n(i,t[i]);"Left"===u._tag?e.push(u.left):r.push(u.right)}return(0,p.separated)(e,r)}},tu=function(n){return function(t){return t.concat(n())}},to=tu,ta=function(n){return function(t){return t.filter(function(t,e){return n(e,t)})}},tc=function(n){return function(t){return t.map(function(e,r){return n(t.slice(r))})}},tf=tc(o.identity),tl=l.foldMap,tp=l.foldMapWithIndex,td=l.reduce,ts=l.reduceWithIndex,th=l.reduceRight,tm=l.reduceRightWithIndex,tv=function(n){var t=ty(n);return function(n){return t(function(t,e){return n(e)})}},tg=function(n){return function(t){return nj(t,n.of(n0()),function(t,e){return n.ap(n.map(t,function(n){return function(t){return(0,o.pipe)(n,y(t))}}),e)})}},ty=function(n){return function(t){return ts(n.of(n0()),function(e,r,i){return n.ap(n.map(r,function(n){return function(t){return(0,o.pipe)(n,y(t))}}),t(e,i))})}},tb=function(n){var t=t1(n);return function(n){return function(e){return t(e,n)}}},t_=function(n){var t=t8(n);return function(n){return function(e){return t(e,n)}}},tI=function(n,t){for(var e=[],r=n;;){var i=t(r);if(c.pC(i)){var u=i.value,o=u[0],a=u[1];e.push(o),r=a}else break}return e},tR="Array",tS=l.getShow,tT=function(){return{concat:function(n,t){return n.concat(t)}}},tx=function(){return{concat:tT().concat,empty:[]}},tw=l.getEq,tM=l.getOrd,tO=function(n){var t=nM(n);return{concat:function(n,e){return t(e)(n)}}},tE=function(n){return{concat:tO(n).concat,empty:[]}},tC=function(n){var t=nO(n);return{concat:function(n,e){return t(e)(n)}}},tk=function(n){var t=nE(n);return{concat:function(n,e){return t(e)(n)}}},tW={URI:tR,map:nC},tF=(0,a.flap)(tW),tP={URI:tR,of:nQ},tD={URI:tR,map:nC,mapWithIndex:nk},tA={URI:tR,map:nC,ap:nW},tU=(0,r.apFirst)(tA),tL=(0,r.apSecond)(tA),tN={URI:tR,map:nC,ap:nW,of:nQ},tj={URI:tR,map:nC,ap:nW,chain:n8},tq=(0,i.chainFirst)(tj),tG={URI:tR,map:nC,ap:nW,of:nQ,chain:n8},tK={URI:tR,unfold:tI},tY={URI:tR,map:nC,alt:nN},tB={URI:tR,zero:n0},tV=(0,s.guard)(tB,tP),tH={URI:tR,map:nC,ap:nW,of:nQ,alt:nN,zero:n0},tz={URI:tR,map:nC,extend:nz},tX={URI:tR,compact:n9,separate:n6},tJ={URI:tR,map:nC,compact:n9,separate:n6,filter:nF,filterMap:nP,partition:nD,partitionMap:nA},t$={URI:tR,map:nC,mapWithIndex:nk,compact:n9,separate:n6,filter:nF,filterMap:nP,partition:nD,partitionMap:nA,partitionMapWithIndex:nL,partitionWithIndex:nU,filterMapWithIndex:nV,filterWithIndex:nH},tZ={URI:tR,reduce:nj,foldMap:nq,reduceRight:nG},tQ={URI:tR,reduce:nj,foldMap:nq,reduceRight:nG,reduceWithIndex:nK,foldMapWithIndex:nY,reduceRightWithIndex:nB},t0={URI:tR,map:nC,reduce:nj,foldMap:nq,reduceRight:nG,traverse:nX,sequence:tg},t2={URI:tR,map:nC,mapWithIndex:nk,reduce:nj,foldMap:nq,reduceRight:nG,reduceWithIndex:nK,foldMapWithIndex:nY,reduceRightWithIndex:nB,traverse:nX,sequence:tg,traverseWithIndex:nJ},t1=(0,d.witherDefault)(t0,tX),t8=(0,d.wiltDefault)(t0,tX),t5={URI:tR,map:nC,compact:n9,separate:n6,filter:nF,filterMap:nP,partition:nD,partitionMap:nA,reduce:nj,foldMap:nq,reduceRight:nG,traverse:nX,sequence:tg,wither:t1,wilt:t8},t3=l.chainRecDepthFirst,t7={URI:tR,map:nC,ap:nW,chain:n8,chainRec:n$},t4=l.chainRecBreadthFirst,t9={URI:tR,map:nC,ap:nW,chain:n8,chainRec:nZ},t6=(0,d.filterE)(t5),en={URI:tR,fromEither:T},et=(0,u.fromEitherK)(en),ee=f.unsafeInsertAt,er=function(n,t,e){return m(e)?f.unsafeUpdateAt(n,t,e):[]},ei=function(n,t){var e=t.slice();return e.splice(n,1),e},eu=l.every,eo=function(n){return function(t){return t.some(n)}},ea=eo,ec=l.intercalate,ef=nQ(c.F4),el=(0,a.bindTo)(tW),ep=(0,a.let)(tW),ed=(0,i.bind)(tj),es=(0,r.apS)(tA),eh=n8,em=f.range,ev=[],eg=f.cons,ey=f.snoc,eb=nh,e_={URI:tR,compact:n9,separate:n6,map:nC,ap:nW,of:nQ,chain:n8,filter:nF,filterMap:nP,partition:nD,partitionMap:nA,mapWithIndex:nk,partitionMapWithIndex:nL,partitionWithIndex:nU,filterMapWithIndex:nV,filterWithIndex:nH,alt:nN,zero:n0,unfold:tI,reduce:nj,foldMap:nq,reduceRight:nG,traverse:nX,sequence:tg,reduceWithIndex:nK,foldMapWithIndex:nY,reduceRightWithIndex:nB,traverseWithIndex:nJ,extend:nz,wither:t1,wilt:t8}},88543:function(n,t,e){function r(n){var t=i(n);return function(n){return function(e){return t(e,n)}}}function i(n){return function(t,e){return n.chain(t,function(t){return n.map(e(t),function(){return t})})}}function u(n){return function(t,e){return function(r){return n.chain(r,function(r){return n.map(e(r),function(n){var e;return Object.assign({},r,((e={})[t]=n,e))})})}}}e.r(t),e.d(t,{bind:function(){return u},chainFirst:function(){return r},tap:function(){return i}})},56661:function(n,t,e){e.r(t),e.d(t,{tailRec:function(){return r}});var r=function(n,t){for(var e=t(n);"Left"===e._tag;)e=t(e.left);return e.right}},90817:function(n,t,e){e.r(t),e.d(t,{Bifunctor:function(){return C},Contravariant:function(){return E},Functor:function(){return M},URI:function(){return w},bimap:function(){return T},const_:function(){return k},contramap:function(){return R},flap:function(){return O},getApplicative:function(){return g},getApply:function(){return v},getBooleanAlgebra:function(){return m},getBounded:function(){return f},getEq:function(){return a},getHeytingAlgebra:function(){return h},getMonoid:function(){return p},getOrd:function(){return c},getRing:function(){return s},getSemigroup:function(){return l},getSemiring:function(){return d},getShow:function(){return o},make:function(){return u},map:function(){return S},mapLeft:function(){return x}});var r=e(42275),i=e(67560),u=r.unsafeCoerce;function o(n){return{show:function(t){return"make(".concat(n.show(t),")")}}}var a=r.identity,c=r.identity,f=r.identity,l=r.identity,p=r.identity,d=r.identity,s=r.identity,h=r.identity,m=r.identity;function v(n){return{URI:w,_E:void 0,map:b,ap:function(t,e){return u(n.concat(t,e))}}}function g(n){var t=v(n);return{URI:w,_E:void 0,map:t.map,ap:t.ap,of:function(){return u(n.empty)}}}var y=function(n,t){return(0,r.pipe)(n,R(t))},b=function(n,t){return(0,r.pipe)(n,S(t))},_=function(n,t,e){return(0,r.pipe)(n,T(t,e))},I=function(n,t){return(0,r.pipe)(n,x(t))},R=function(){return r.unsafeCoerce},S=function(){return r.unsafeCoerce},T=function(n){return function(t){return u(n(t))}},x=function(n){return function(t){return u(n(t))}},w="Const",M={URI:w,map:b},O=(0,i.flap)(M),E={URI:w,contramap:y},C={URI:w,bimap:_,mapLeft:I},k={URI:w,map:b,contramap:y,bimap:_,mapLeft:I}},81878:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return no},ApT:function(){return n4},Applicative:function(){return B},Apply:function(){return Y},Bifunctor:function(){return nr},Chain:function(){return V},ChainRec:function(){return nf},Do:function(){return n0},Extend:function(){return nc},Foldable:function(){return $},FromEither:function(){return nd},Functor:function(){return U},Monad:function(){return H},MonadThrow:function(){return np},Pointed:function(){return q},Traversable:function(){return nn},URI:function(){return M},alt:function(){return nu},altW:function(){return ni},ap:function(){return K},apFirst:function(){return nT},apFirstW:function(){return nx},apS:function(){return n3},apSW:function(){return n7},apSecond:function(){return nw},apSecondW:function(){return nM},apW:function(){return G},as:function(){return L},asUnit:function(){return N},bimap:function(){return nt},bind:function(){return n8},bindTo:function(){return n2},bindW:function(){return n5},chain:function(){return ti},chainFirst:function(){return tu},chainFirstW:function(){return to},chainNullableK:function(){return nJ},chainOptionK:function(){return nF},chainOptionKW:function(){return nP},chainW:function(){return tr},duplicate:function(){return nk},either:function(){return tf},elem:function(){return function n(t){return function(e,r){if(void 0===r){var i=n(t);return function(n){return i(e,n)}}return!nm(r)&&t.equals(e,r.right)}}},exists:function(){return nQ},extend:function(){return na},filterOrElse:function(){return nq},filterOrElseW:function(){return nG},flap:function(){return nS},flatMap:function(){return m},flatMapNullable:function(){return nN},flatMapOption:function(){return nj},flatten:function(){return nC},flattenW:function(){return nE},fold:function(){return n_},foldMap:function(){return X},foldW:function(){return ny},fromNullable:function(){return nV},fromNullableK:function(){return nX},fromOption:function(){return nh},fromOptionK:function(){return nW},fromPredicate:function(){return ns},getAltValidation:function(){return D},getApplicativeValidation:function(){return P},getApplyMonoid:function(){return tp},getApplySemigroup:function(){return tl},getCompactable:function(){return k},getEq:function(){return E},getFilterable:function(){return W},getOrElse:function(){return nR},getOrElseW:function(){return nI},getSemigroup:function(){return C},getShow:function(){return O},getValidation:function(){return th},getValidationMonoid:function(){return ts},getValidationSemigroup:function(){return td},getWitherable:function(){return F},isLeft:function(){return nm},isRight:function(){return nv},left:function(){return s},let:function(){return n1},liftNullable:function(){return nA},liftOption:function(){return nU},map:function(){return A},mapLeft:function(){return ne},match:function(){return nb},matchW:function(){return ng},of:function(){return j},orElse:function(){return nB},orElseW:function(){return nY},parseJSON:function(){return ta},reduce:function(){return z},reduceRight:function(){return J},right:function(){return h},sequence:function(){return Q},sequenceArray:function(){return te},stringifyJSON:function(){return tc},swap:function(){return nK},tap:function(){return nO},throwError:function(){return nl},toError:function(){return nZ},toUnion:function(){return n$},traverse:function(){return Z},traverseArray:function(){return tt},traverseArrayWithIndex:function(){return tn},traverseReadonlyArrayWithIndex:function(){return n6},traverseReadonlyNonEmptyArrayWithIndex:function(){return n9},tryCatch:function(){return nH},tryCatchK:function(){return nz}});var r=e(46111),i=e(42925),u=e(88543),o=e(56661),a=e(25162),c=e(42275),f=e(67560),l=e(97963),p=e(34219),d=e(76511),s=l.t$,h=l.F2,m=(0,c.dual)(2,function(n,t){return nm(n)?n:t(n.right)}),v=function(n,t){return(0,c.pipe)(n,A(t))},g=function(n,t){return(0,c.pipe)(n,K(t))},y=function(n,t,e){return(0,c.pipe)(n,z(t,e))},b=function(n){return function(t,e){var r=X(n);return(0,c.pipe)(t,r(e))}},_=function(n,t,e){return(0,c.pipe)(n,J(t,e))},I=function(n){var t=Z(n);return function(n,e){return(0,c.pipe)(n,t(e))}},R=function(n,t,e){return(0,c.pipe)(n,nt(t,e))},S=function(n,t){return(0,c.pipe)(n,ne(t))},T=function(n,t){return(0,c.pipe)(n,nu(t))},x=function(n,t){return(0,c.pipe)(n,na(t))},w=function(n,t){return(0,o.tailRec)(t(n),function(n){return nm(n)?h(s(n.left)):nm(n.right)?s(t(n.right.left)):h(h(n.right.right))})},M="Either",O=function(n,t){return{show:function(e){return nm(e)?"left(".concat(n.show(e.left),")"):"right(".concat(t.show(e.right),")")}}},E=function(n,t){return{equals:function(e,r){return e===r||(nm(e)?nm(r)&&n.equals(e.left,r.left):nv(r)&&t.equals(e.right,r.right))}}},C=function(n){return{concat:function(t,e){return nm(e)?t:nm(t)?e:h(n.concat(t.right,e.right))}}},k=function(n){var t=s(n.empty);return{URI:M,_E:void 0,compact:function(n){return nm(n)?n:"None"===n.right._tag?t:h(n.right.value)},separate:function(n){return nm(n)?(0,p.separated)(n,n):nm(n.right)?(0,p.separated)(h(n.right.left),t):(0,p.separated)(t,h(n.right.right))}}},W=function(n){var t=s(n.empty),e=k(n);return{URI:M,_E:void 0,map:v,compact:e.compact,separate:e.separate,filter:function(n,e){return nm(n)?n:e(n.right)?n:t},filterMap:function(n,e){if(nm(n))return n;var r=e(n.right);return"None"===r._tag?t:h(r.value)},partition:function(n,e){return nm(n)?(0,p.separated)(n,n):e(n.right)?(0,p.separated)(t,h(n.right)):(0,p.separated)(h(n.right),t)},partitionMap:function(n,e){if(nm(n))return(0,p.separated)(n,n);var r=e(n.right);return nm(r)?(0,p.separated)(h(r.left),t):(0,p.separated)(t,h(r.right))}}},F=function(n){var t=W(n),e=k(n);return{URI:M,_E:void 0,map:v,compact:t.compact,separate:t.separate,filter:t.filter,filterMap:t.filterMap,partition:t.partition,partitionMap:t.partitionMap,traverse:I,sequence:Q,reduce:y,foldMap:b,reduceRight:_,wither:(0,d.witherDefault)(nn,e),wilt:(0,d.wiltDefault)(nn,e)}},P=function(n){return{URI:M,_E:void 0,map:v,ap:function(t,e){return nm(t)?nm(e)?s(n.concat(t.left,e.left)):t:nm(e)?e:h(t.right(e.right))},of:j}},D=function(n){return{URI:M,_E:void 0,map:v,alt:function(t,e){if(nv(t))return t;var r=e();return nm(r)?s(n.concat(t.left,r.left)):r}}},A=function(n){return function(t){return nm(t)?t:h(n(t.right))}},U={URI:M,map:v},L=(0,c.dual)(2,(0,f.as)(U)),N=(0,f.asUnit)(U),j=h,q={URI:M,of:j},G=function(n){return function(t){return nm(t)?t:nm(n)?n:h(t.right(n.right))}},K=G,Y={URI:M,map:v,ap:g},B={URI:M,map:v,ap:g,of:j},V={URI:M,map:v,ap:g,chain:m},H={URI:M,map:v,ap:g,of:j,chain:m},z=function(n,t){return function(e){return nm(e)?n:t(n,e.right)}},X=function(n){return function(t){return function(e){return nm(e)?n.empty:t(e.right)}}},J=function(n,t){return function(e){return nm(e)?n:t(e.right,n)}},$={URI:M,reduce:y,foldMap:b,reduceRight:_},Z=function(n){return function(t){return function(e){return nm(e)?n.of(s(e.left)):n.map(t(e.right),h)}}},Q=function(n){return function(t){return nm(t)?n.of(s(t.left)):n.map(t.right,h)}},nn={URI:M,map:v,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:Q},nt=function(n,t){return function(e){return nm(e)?s(n(e.left)):h(t(e.right))}},ne=function(n){return function(t){return nm(t)?s(n(t.left)):t}},nr={URI:M,bimap:R,mapLeft:S},ni=function(n){return function(t){return nm(t)?n():t}},nu=ni,no={URI:M,map:v,alt:T},na=function(n){return function(t){return nm(t)?t:h(n(t))}},nc={URI:M,map:v,extend:x},nf={URI:M,map:v,ap:g,chain:m,chainRec:w},nl=s,np={URI:M,map:v,ap:g,of:j,chain:m,throwError:nl},nd={URI:M,fromEither:c.identity},ns=(0,a.fromPredicate)(nd),nh=(0,a.fromOption)(nd),nm=l.nM,nv=l.tO,ng=function(n,t){return function(e){return nm(e)?n(e.left):t(e.right)}},ny=ng,nb=ng,n_=nb,nI=function(n){return function(t){return nm(t)?n(t.left):t.right}},nR=nI,nS=(0,f.flap)(U),nT=(0,i.apFirst)(Y),nx=nT,nw=(0,i.apSecond)(Y),nM=nw,nO=(0,c.dual)(2,u.tap(V)),nE=m(c.identity),nC=nE,nk=na(c.identity),nW=(0,a.fromOptionK)(nd),nF=(0,a.chainOptionK)(nd,V),nP=nF,nD={fromEither:nd.fromEither},nA=l.uL(nD),nU=l.WE(nD),nL={flatMap:m},nN=l.ny(nD,nL),nj=l.hU(nD,nL),nq=(0,a.filterOrElse)(nd,V),nG=nq,nK=function(n){return nm(n)?h(n.left):s(n.right)},nY=function(n){return function(t){return nm(t)?n(t.left):t}},nB=nY,nV=function(n){return function(t){return null==t?s(n):h(t)}},nH=function(n,t){try{return h(n())}catch(n){return s(t(n))}},nz=function(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return nH(function(){return n.apply(void 0,e)},t)}},nX=function(n){var t=nV(n);return function(n){return(0,c.flow)(n,t)}},nJ=function(n){var t=nX(n);return function(n){return m(t(n))}},n$=ny(c.identity,c.identity);function nZ(n){return n instanceof Error?n:Error(String(n))}var nQ=function(n){return function(t){return!nm(t)&&n(t.right)}},n0=j(l.F4),n2=(0,f.bindTo)(U),n1=(0,f.let)(U),n8=u.bind(V),n5=n8,n3=(0,i.apS)(Y),n7=n3,n4=j(l.Xl),n9=function(n){return function(t){var e=n(0,l.YM(t));if(nm(e))return e;for(var r=[e.right],i=1;i<t.length;i++){var u=n(i,t[i]);if(nm(u))return u;r.push(u.right)}return h(r)}},n6=function(n){var t=n9(n);return function(n){return l.Od(n)?t(n):n4}},tn=n6,tt=function(n){return n6(function(t,e){return n(e)})},te=tt(c.identity),tr=m,ti=m,tu=nO,to=nO;function ta(n,t){return nH(function(){return JSON.parse(n)},t)}var tc=function(n,t){return nH(function(){var t=JSON.stringify(n);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},t)},tf={URI:M,map:v,of:j,ap:g,chain:m,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:Q,bimap:R,mapLeft:S,alt:T,extend:x,chainRec:w,throwError:nl},tl=(0,i.getApplySemigroup)(Y),tp=(0,r.getApplicativeMonoid)(B),td=function(n,t){return(0,i.getApplySemigroup)(P(n))(t)},ts=function(n,t){return(0,r.getApplicativeMonoid)(P(n))(t)};function th(n){return{URI:M,_E:void 0,map:v,of:j,chain:m,bimap:R,mapLeft:S,reduce:y,foldMap:b,reduceRight:_,extend:x,traverse:I,sequence:Q,chainRec:w,throwError:nl,ap:P(n).ap,alt:D(n).alt}}},47797:function(n,t,e){e.r(t),e.d(t,{URI:function(){return i},getMonoid:function(){return o},getSemigroup:function(){return u}});var r=e(42275),i="Endomorphism",u=function(){return{concat:function(n,t){return(0,r.flow)(n,t)}}},o=function(){return{concat:u().concat,empty:r.identity}}},65191:function(n,t,e){e.r(t),e.d(t,{Contravariant:function(){return s},URI:function(){return c},contramap:function(){return a},eq:function(){return g},eqBoolean:function(){return y},eqDate:function(){return I},eqNumber:function(){return _},eqStrict:function(){return f},eqString:function(){return b},fromEquals:function(){return i},getMonoid:function(){return d},getSemigroup:function(){return p},getStructEq:function(){return m},getTupleEq:function(){return h},strictEqual:function(){return v},struct:function(){return u},tuple:function(){return o}});var r=e(42275),i=function(n){return{equals:function(t,e){return t===e||n(t,e)}}},u=function(n){return i(function(t,e){for(var r in n)if(!n[r].equals(t[r],e[r]))return!1;return!0})},o=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return i(function(t,e){return n.every(function(n,r){return n.equals(t[r],e[r])})})},a=function(n){return function(t){return i(function(e,r){return t.equals(n(e),n(r))})}},c="Eq",f={equals:function(n,t){return n===t}},l={equals:function(){return!0}},p=function(){return{concat:function(n,t){return i(function(e,r){return n.equals(e,r)&&t.equals(e,r)})}}},d=function(){return{concat:p().concat,empty:l}},s={URI:c,contramap:function(n,t){return(0,r.pipe)(n,a(t))}},h=o,m=u,v=f.equals,g=s,y=f,b=f,_=f,I={equals:function(n,t){return n.valueOf()===t.valueOf()}}},25162:function(n,t,e){e.r(t),e.d(t,{chainEitherK:function(){return p},chainFirstEitherK:function(){return d},chainOptionK:function(){return f},filterOrElse:function(){return s},fromEitherK:function(){return l},fromOption:function(){return o},fromOptionK:function(){return c},fromPredicate:function(){return a},tapEither:function(){return h}});var r=e(88543),i=e(42275),u=e(97963);function o(n){return function(t){return function(e){return n.fromEither(u.Wi(e)?u.t$(t()):u.F2(e.value))}}}function a(n){return function(t,e){return function(r){return n.fromEither(t(r)?u.F2(r):u.t$(e(r)))}}}function c(n){var t=o(n);return function(n){var e=t(n);return function(n){return(0,i.flow)(n,e)}}}function f(n,t){var e=c(n);return function(n){var r=e(n);return function(n){return function(e){return t.chain(e,r(n))}}}}function l(n){return function(t){return(0,i.flow)(t,n.fromEither)}}function p(n,t){var e=l(n);return function(n){return function(r){return t.chain(r,e(n))}}}function d(n,t){var e=h(n,t);return function(n){return function(t){return e(t,n)}}}function s(n,t){return function(e,r){return function(i){return t.chain(i,function(t){return n.fromEither(e(t)?u.F2(t):u.t$(r(t)))})}}}function h(n,t){var e=l(n),i=(0,r.tap)(t);return function(n,t){return i(n,e(t))}}},67560:function(n,t,e){e.r(t),e.d(t,{as:function(){return f},asUnit:function(){return l},bindTo:function(){return o},flap:function(){return u},getFunctorComposition:function(){return c},let:function(){return a},map:function(){return i}});var r=e(42275);function i(n,t){return function(e){return function(r){return n.map(r,function(n){return t.map(n,e)})}}}function u(n){return function(t){return function(e){return n.map(e,function(n){return n(t)})}}}function o(n){return function(t){return function(e){return n.map(e,function(n){var e;return(e={})[t]=n,e})}}}function a(n){return function(t,e){return function(r){return n.map(r,function(n){var r;return Object.assign({},n,((r={})[t]=e(n),r))})}}}function c(n,t){var e=i(n,t);return{map:function(n,t){return(0,r.pipe)(n,e(t))}}}function f(n){return function(t,e){return n.map(t,function(){return e})}}function l(n){var t=f(n);return function(n){return t(n,void 0)}}},76113:function(n,t,e){e.r(t),e.d(t,{concatAll:function(){return a},endo:function(){return o},filterFirst:function(){return i},filterSecond:function(){return u},reverse:function(){return r}});var r=function(n){return{concat:function(t,e){return n.concat(e,t)}}},i=function(n){return function(t){return{concat:function(e,r){return n(e)?t.concat(e,r):r}}}},u=function(n){return function(t){return{concat:function(e,r){return n(r)?t.concat(e,r):e}}}},o=function(n){return function(t){return{concat:function(e,r){return t.concat(n(e),n(r))}}}},a=function(n){return function(t){return function(e){return e.reduce(function(t,e){return n.concat(t,e)},t)}}}},55116:function(n,t,e){e.r(t),e.d(t,{Compactable:function(){return nb},Filterable:function(){return n_},Functor:function(){return ng},URI:function(){return nt},collect:function(){return y},compact:function(){return H},deleteAt:function(){return R},difference:function(){return nT},elem:function(){return m},empty:function(){return nx},filter:function(){return z},filterMap:function(){return X},filterMapWithIndex:function(){return A},filterWithIndex:function(){return U},flap:function(){return ny},foldMap:function(){return nf},foldMapWithIndex:function(){return ns},fromFoldable:function(){return W},getDifferenceMagma:function(){return nu},getEq:function(){return E},getFilterableWithIndex:function(){return no},getFoldable:function(){return np},getFoldableWithIndex:function(){return nm},getIntersectionSemigroup:function(){return ni},getMonoid:function(){return C},getShow:function(){return p},getTraversableWithIndex:function(){return nv},getUnionMonoid:function(){return nr},getUnionSemigroup:function(){return ne},getWitherable:function(){return na},insertAt:function(){return nw},intersection:function(){return nS},isEmpty:function(){return s},isSubmap:function(){return O},keys:function(){return v},lookup:function(){return M},lookupWithKey:function(){return w},map:function(){return J},mapWithIndex:function(){return $},map_:function(){return nM},member:function(){return h},modifyAt:function(){return T},partition:function(){return Z},partitionMap:function(){return Q},partitionMapWithIndex:function(){return P},partitionWithIndex:function(){return D},pop:function(){return x},reduce:function(){return nc},reduceRight:function(){return nl},reduceRightWithIndex:function(){return nh},reduceWithIndex:function(){return nd},separate:function(){return nn},singleton:function(){return k},size:function(){return d},toArray:function(){return b},toUnfoldable:function(){return _},union:function(){return nR},updateAt:function(){return S},upsertAt:function(){return I},values:function(){return g}});var r=e(42275),i=e(67560),u=e(97963),o=e(20492),a=e(13512),c=e(34219),f=e(76511),l=function(){return(l=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},p=a.getShow,d=a.size,s=a.isEmpty,h=a.member,m=a.elem,v=function(n){return function(t){return Array.from(t.keys()).sort(n.compare)}},g=function(n){return function(t){return Array.from(t.values()).sort(n.compare)}};function y(n){var t=v(n);return function(n){return function(e){for(var r=[],i=t(e),u=0;u<i.length;u++){var o=i[u];r.push(n(o,e.get(o)))}return r}}}function b(n){return y(n)(function(n,t){return[n,t]})}function _(n,t){var e=b(n);return function(n){var r=e(n),i=r.length;return t.unfold(0,function(n){return n<i?u.G([r[n],n+1]):u.YP})}}var I=function(n){var t=w(n);return function(n,e){var r=t(n);return function(t){var i=r(t);if(u.Wi(i)){var o=new Map(t);return o.set(n,e),o}if(i.value[1]!==e){var o=new Map(t);return o.set(i.value[0],e),o}return t}}},R=function(n){var t=w(n);return function(n){return function(e){var r=t(n,e);if(u.pC(r)){var i=new Map(e);return i.delete(r.value[0]),i}return e}}},S=function(n){var t=T(n);return function(n,e){return t(n,function(){return e})}},T=function(n){var t=w(n);return function(n,e){return function(r){var i=t(n,r);if(u.Wi(i))return u.YP;var o=new Map(r);return o.set(i.value[0],e(i.value[1])),u.G(o)}}};function x(n){var t=M(n),e=R(n);return function(n){var i=e(n);return function(e){return(0,r.pipe)(t(n,e),o.map(function(n){return[n,i(e)]}))}}}function w(n){return function(t,e){if(void 0===e){var r,i=w(n);return function(n){return i(t,n)}}for(var o=e.entries();!(r=o.next()).done;){var a=r.value,c=a[0],f=a[1];if(n.equals(c,t))return u.G([c,f])}return u.YP}}var M=a.lookup,O=a.isSubmap,E=a.getEq;function C(n,t){var e=w(n);return{concat:function(n,r){if(s(n))return r;if(s(r))return n;for(var i,o=new Map(n),a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=e(f,n);u.pC(p)?o.set(p.value[0],t.concat(p.value[1],l)):o.set(f,l)}return o},empty:new Map}}var k=function(n,t){return new Map([[n,t]])};function W(n,t,e){return function(r){var i=w(n);return e.reduce(r,new Map,function(n,e){var r=e[0],o=e[1],a=i(r,n);return u.pC(a)?n.set(a.value[0],t.concat(a.value[1],o)):n.set(r,o),n})}}var F=function(n,t){for(var e,r=new Map,i=n.entries();!(e=i.next()).done;){var u=e.value,o=u[0],a=u[1];r.set(o,t(o,a))}return r},P=function(n){return function(t){for(var e,r=new Map,i=new Map,o=t.entries();!(e=o.next()).done;){var a=e.value,f=a[0],l=n(f,a[1]);u.nM(l)?r.set(f,l.left):i.set(f,l.right)}return(0,c.separated)(r,i)}};function D(n){return function(t){for(var e,r=new Map,i=new Map,u=t.entries();!(e=u.next()).done;){var o=e.value,a=o[0],f=o[1];n(a,f)?i.set(a,f):r.set(a,f)}return(0,c.separated)(r,i)}}var A=function(n){return function(t){for(var e,r=new Map,i=t.entries();!(e=i.next()).done;){var o=e.value,a=o[0],c=n(a,o[1]);u.pC(c)&&r.set(a,c.value)}return r}};function U(n){return function(t){for(var e,r=new Map,i=t.entries();!(e=i.next()).done;){var u=e.value,o=u[0],a=u[1];n(o,a)&&r.set(o,a)}return r}}var L=function(n,t){return F(n,function(n,e){return t(e)})},N=function(n,t){return K(n,function(n,e){return t(e)})},j=function(n,t){return Y(n,function(n,e){return t(e)})},q=function(n,t){return B(n,function(n,e){return t(e)})},G=function(n,t){return V(n,function(n,e){return t(e)})},K=function(n,t){return(0,r.pipe)(n,U(t))},Y=function(n,t){return(0,r.pipe)(n,A(t))},B=function(n,t){return(0,r.pipe)(n,D(t))},V=function(n,t){return(0,r.pipe)(n,P(t))},H=function(n){for(var t,e=new Map,r=n.entries();!(t=r.next()).done;){var i=t.value,o=i[0],a=i[1];u.pC(a)&&e.set(o,a.value)}return e},z=function(n){return function(t){return N(t,n)}},X=function(n){return function(t){return j(t,n)}},J=function(n){return function(t){return L(t,n)}},$=function(n){return function(t){return F(t,n)}},Z=function(n){return function(t){return q(t,n)}},Q=function(n){return function(t){return G(t,n)}},nn=function(n){for(var t,e=new Map,r=new Map,i=n.entries();!(t=i.next()).done;){var o=t.value,a=o[0],f=o[1];u.nM(f)?e.set(a,f.left):r.set(a,f.right)}return(0,c.separated)(e,r)},nt="Map",ne=function(n,t){var e=nR(n,t);return{concat:function(n,t){return e(t)(n)}}},nr=function(n,t){return{concat:ne(n,t).concat,empty:new Map}},ni=function(n,t){var e=nS(n,t);return{concat:function(n,t){return e(t)(n)}}},nu=function(n){return function(){var t=nT(n);return{concat:function(n,e){return t(e)(n)}}}};function no(){return{URI:nt,_E:void 0,map:L,mapWithIndex:F,compact:H,separate:nn,filter:N,filterMap:j,partition:q,partitionMap:G,partitionMapWithIndex:V,partitionWithIndex:B,filterMapWithIndex:Y,filterWithIndex:K}}function na(n){var t=nv(n);return{URI:nt,_E:void 0,map:L,compact:H,separate:nn,filter:N,filterMap:j,partition:q,partitionMap:G,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,traverse:t.traverse,sequence:t.sequence,mapWithIndex:F,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverseWithIndex:t.traverseWithIndex,wilt:(0,f.wiltDefault)(t,nb),wither:(0,f.witherDefault)(t,nb)}}var nc=a.reduce,nf=a.foldMap,nl=a.reduceRight,np=function(n){return l(l({},a.getFoldable(n)),{URI:nt})},nd=a.reduceWithIndex,ns=a.foldMapWithIndex,nh=a.reduceRightWithIndex,nm=function(n){return l(l({},a.getFoldableWithIndex(n)),{URI:nt})},nv=function(n){var t=nm(n),e=v(n),r=function(n){return function(t,r){for(var i=n.of(new Map),u=e(t),o=u.length,a=0;a<o;a++)!function(e){var o=u[e],a=t.get(o);i=n.ap(n.map(i,function(n){return function(t){return n.set(o,t)}}),r(o,a))}(a);return i}};return{URI:nt,_E:void 0,map:L,mapWithIndex:F,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:function(n){var t=r(n);return function(n,e){return t(n,function(n,t){return e(t)})}},sequence:function(n){var t=r(n);return function(n){return t(n,function(n,t){return t})}},traverseWithIndex:r}},ng={URI:nt,map:L},ny=(0,i.flap)(ng),nb={URI:nt,compact:H,separate:nn},n_={URI:nt,map:L,compact:H,separate:nn,filter:N,filterMap:j,partition:q,partitionMap:G},nI=function(n){return new Map(n)},nR=function(n,t){var e=a.union(n,t);return function(n){return function(t){return s(t)?nI(n):s(n)?nI(t):e(n)(t)}}},nS=function(n,t){var e=a.intersection(n,t);return function(n){return function(t){return s(t)||s(n)?new Map:e(n)(t)}}},nT=function(n){var t=a.difference(n);return function(n){return function(e){return s(e)?nI(n):s(n)?nI(e):t(n)(e)}}},nx=new Map,nw=I,nM=n_},96576:function(n,t,e){e.r(t),e.d(t,{concatAll:function(){return d},fold:function(){return b},getDualMonoid:function(){return v},getEndomorphismMonoid:function(){return S},getFunctionMonoid:function(){return R},getJoinMonoid:function(){return g},getMeetMonoid:function(){return y},getStructMonoid:function(){return m},getTupleMonoid:function(){return h},max:function(){return c},min:function(){return a},monoidAll:function(){return _},monoidAny:function(){return I},monoidProduct:function(){return w},monoidString:function(){return T},monoidSum:function(){return x},monoidVoid:function(){return s},reverse:function(){return f},struct:function(){return l},tuple:function(){return p}});var r=e(47797),i=e(42275),u=e(97963),o=e(3291),a=function(n){return{concat:o.min(n).concat,empty:n.top}},c=function(n){return{concat:o.max(n).concat,empty:n.bottom}},f=function(n){return{concat:o.reverse(n).concat,empty:n.empty}},l=function(n){var t={};for(var e in n)u.e$.call(n,e)&&(t[e]=n[e].empty);return{concat:o.struct(n).concat,empty:t}},p=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{concat:o.tuple.apply(o,n).concat,empty:n.map(function(n){return n.empty})}},d=function(n){return o.concatAll(n)(n.empty)},s={concat:o.semigroupVoid.concat,empty:void 0},h=p,m=l,v=f,g=c,y=a,b=d,_={concat:o.semigroupAll.concat,empty:!0},I={concat:o.semigroupAny.concat,empty:!1},R=i.getMonoid,S=function(){return f((0,r.getMonoid)())},T={concat:o.semigroupString.concat,empty:""},x={concat:o.semigroupSum.concat,empty:0},w={concat:o.semigroupProduct.concat,empty:1}},43586:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return nH},Applicative:function(){return nN},Apply:function(){return nA},Chain:function(){return nj},Comonad:function(){return nz},Do:function(){return nX},Foldable:function(){return nK},FoldableWithIndex:function(){return nY},Functor:function(){return nW},FunctorWithIndex:function(){return nD},Monad:function(){return nG},Pointed:function(){return nP},Traversable:function(){return nB},TraversableWithIndex:function(){return nV},URI:function(){return nM},alt:function(){return np},altW:function(){return nl},ap:function(){return nd},apFirst:function(){return nU},apS:function(){return nQ},apSecond:function(){return nL},append:function(){return v},appendW:function(){return m},bind:function(){return nZ},bindTo:function(){return nJ},chain:function(){return ti},chainFirst:function(){return nq},chainWithIndex:function(){return H},chop:function(){return z},chunksOf:function(){return J},concat:function(){return k},concatAll:function(){return n7},concatW:function(){return C},cons:function(){return tl},copy:function(){return N},duplicate:function(){return nm},extend:function(){return nh},extract:function(){return nw},filter:function(){return to},filterWithIndex:function(){return ta},flap:function(){return nF},flatMap:function(){return ns},flatten:function(){return nv},fold:function(){return ts},foldMap:function(){return V},foldMapWithIndex:function(){return B},fromArray:function(){return T},fromReadonlyNonEmptyArray:function(){return S},getEq:function(){return nC},getSemigroup:function(){return nE},getShow:function(){return nO},getUnionSemigroup:function(){return nk},group:function(){return F},groupBy:function(){return P},groupSort:function(){return tu},head:function(){return n0},init:function(){return n8},insertAt:function(){return A},intercalate:function(){return tr},intersperse:function(){return Y},isNonEmpty:function(){return p},isOutOfBound:function(){return d},last:function(){return n1},let:function(){return n$},makeBy:function(){return x},map:function(){return ng},mapWithIndex:function(){return ny},matchLeft:function(){return n4},matchRight:function(){return n9},max:function(){return n3},min:function(){return n5},modifyAt:function(){return L},modifyHead:function(){return n6},modifyLast:function(){return tt},nonEmptyArray:function(){return th},of:function(){return j},prepend:function(){return h},prependAll:function(){return K},prependToAll:function(){return td},prependW:function(){return s},range:function(){return M},reduce:function(){return nb},reduceRight:function(){return nI},reduceRightWithIndex:function(){return nR},reduceWithIndex:function(){return n_},replicate:function(){return w},reverse:function(){return W},rotate:function(){return R},sequence:function(){return nT},snoc:function(){return tp},sort:function(){return D},sortBy:function(){return _},splitAt:function(){return X},tail:function(){return n2},traverse:function(){return nS},traverseWithIndex:function(){return nx},unappend:function(){return E},uncons:function(){return tc},union:function(){return I},uniq:function(){return b},unprepend:function(){return O},unsafeInsertAt:function(){return g},unsafeUpdateAt:function(){return y},unsnoc:function(){return tf},unzip:function(){return G},updateAt:function(){return U},updateHead:function(){return tn},updateLast:function(){return te},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:q(t,e,function(n,t){return[n,t]})}},zipWith:function(){return q}});var r=e(42925),i=e(88543),u=e(42275),o=e(67560),a=e(97963),c=e(5586),f=e(28350),l=function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},p=function(n){return n.length>0},d=function(n,t){return n<0||n>=t.length},s=function(n){return function(t){return l([n],t,!0)}},h=s,m=function(n){return function(t){return l(l([],t,!0),[n],!1)}},v=m,g=function(n,t,e){if(p(e)){var r=S(e);return r.splice(n,0,t),r}return[t]},y=function(n,t,e){var r=S(e);return r[n]=t,r},b=function(n){return function(t){if(1===t.length)return N(t);for(var e=[n0(t)],r=n2(t),i=function(t){e.every(function(e){return!n.equals(e,t)})&&e.push(t)},u=0;u<r.length;u++)i(r[u]);return e}},_=function(n){if(p(n)){var t=(0,c.getMonoid)();return D(n.reduce(t.concat,t.empty))}return N},I=function(n){var t=b(n);return function(n){return function(e){return t((0,u.pipe)(e,k(n)))}}},R=function(n){return function(t){var e=t.length,r=Math.round(n)%e;if(d(Math.abs(r),t)||0===r)return N(t);if(!(r<0))return R(r-e)(t);var i=X(-r)(t),o=i[0],a=i[1];return(0,u.pipe)(a,k(o))}},S=a.r1,T=function(n){return p(n)?a.G(n):a.YP},x=function(n){return function(t){for(var e=Math.max(0,Math.floor(t)),r=[n(0)],i=1;i<e;i++)r.push(n(i));return r}},w=function(n){return x(function(){return n})},M=function(n,t){return n<=t?x(function(t){return n+t})(t-n+1):[n]},O=function(n){return[n0(n),n2(n)]},E=function(n){return[n8(n),n1(n)]};function C(n){return function(t){return t.concat(n)}}function k(n,t){return t?n.concat(t):function(t){return t.concat(n)}}var W=function(n){return l([n1(n)],n.slice(0,-1).reverse(),!0)};function F(n){return function(t){var e=t.length;if(0===e)return[];for(var r=[],i=t[0],u=[i],o=1;o<e;o++){var a=t[o];n.equals(a,i)?u.push(a):(r.push(u),u=[i=a])}return r.push(u),r}}var P=function(n){return function(t){for(var e={},r=0;r<t.length;r++){var i=t[r],u=n(i);a.e$.call(e,u)?e[u].push(i):e[u]=[i]}return e}},D=function(n){return function(t){return t.slice().sort(n.compare)}},A=function(n,t){return function(e){return n<0||n>e.length?a.YP:a.G(g(n,t,e))}},U=function(n,t){return L(n,function(){return t})},L=function(n,t){return function(e){return d(n,e)?a.YP:a.G(y(n,t(e[n]),e))}},N=S,j=function(n){return[n]},q=function(n,t,e){for(var r=[e(n[0],t[0])],i=Math.min(n.length,t.length),u=1;u<i;u++)r[u]=e(n[u],t[u]);return r},G=function(n){for(var t=[n[0][0]],e=[n[0][1]],r=1;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},K=function(n){return function(t){for(var e=[n,t[0]],r=1;r<t.length;r++)e.push(n,t[r]);return e}},Y=function(n){return function(t){var e=n2(t);return p(e)?(0,u.pipe)(e,K(n),h(n0(t))):N(t)}},B=f.foldMapWithIndex,V=f.foldMap,H=function(n){return function(t){for(var e=S(n(0,n0(t))),r=1;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},z=function(n){return function(t){for(var e=n(t),r=e[0],i=e[1],u=[r],o=i;p(o);){var a=n(o),c=a[0],f=a[1];u.push(c),o=f}return u}},X=function(n){return function(t){var e=Math.max(1,n);return e>=t.length?[N(t),[]]:[(0,u.pipe)(t.slice(1,e),h(n0(t))),t.slice(e)]}},J=function(n){return z(X(n))},$=function(n,t){return(0,u.pipe)(n,ng(t))},Z=function(n,t){return(0,u.pipe)(n,ny(t))},Q=function(n,t){return(0,u.pipe)(n,nd(t))},nn=function(n,t){return(0,u.pipe)(n,nh(t))},nt=function(n,t,e){return(0,u.pipe)(n,nb(t,e))},ne=function(n){var t=V(n);return function(n,e){return(0,u.pipe)(n,t(e))}},nr=function(n,t,e){return(0,u.pipe)(n,nI(t,e))},ni=function(n){var t=nS(n);return function(n,e){return(0,u.pipe)(n,t(e))}},nu=function(n,t){return(0,u.pipe)(n,np(t))},no=function(n,t,e){return(0,u.pipe)(n,n_(t,e))},na=function(n){var t=B(n);return function(n,e){return(0,u.pipe)(n,t(e))}},nc=function(n,t,e){return(0,u.pipe)(n,nR(t,e))},nf=function(n){var t=nx(n);return function(n,e){return(0,u.pipe)(n,t(e))}},nl=function(n){return function(t){return(0,u.pipe)(t,C(n()))}},np=nl,nd=function(n){return ns(function(t){return(0,u.pipe)(n,ng(t))})},ns=(0,u.dual)(2,function(n,t){return(0,u.pipe)(n,H(function(n,e){return t(e,n)}))}),nh=function(n){return function(t){for(var e=n2(t),r=[n(t)];p(e);)r.push(n(e)),e=n2(e);return r}},nm=nh(u.identity),nv=ns(u.identity),ng=function(n){return ny(function(t,e){return n(e)})},ny=function(n){return function(t){for(var e=[n(0,n0(t))],r=1;r<t.length;r++)e.push(n(r,t[r]));return e}},nb=f.reduce,n_=f.reduceWithIndex,nI=f.reduceRight,nR=f.reduceRightWithIndex,nS=function(n){var t=nx(n);return function(n){return t(function(t,e){return n(e)})}},nT=function(n){return nx(n)(function(n,t){return t})},nx=function(n){return function(t){return function(e){for(var r=n.map(t(0,n0(e)),j),i=1;i<e.length;i++)r=n.ap(n.map(r,function(n){return function(t){return(0,u.pipe)(n,v(t))}}),t(i,e[i]));return r}}},nw=f.head,nM="NonEmptyArray",nO=f.getShow,nE=function(){return{concat:k}},nC=f.getEq,nk=function(n){var t=I(n);return{concat:function(n,e){return t(e)(n)}}},nW={URI:nM,map:$},nF=(0,o.flap)(nW),nP={URI:nM,of:j},nD={URI:nM,map:$,mapWithIndex:Z},nA={URI:nM,map:$,ap:Q},nU=(0,r.apFirst)(nA),nL=(0,r.apSecond)(nA),nN={URI:nM,map:$,ap:Q,of:j},nj={URI:nM,map:$,ap:Q,chain:ns},nq=(0,i.chainFirst)(nj),nG={URI:nM,map:$,ap:Q,of:j,chain:ns},nK={URI:nM,reduce:nt,foldMap:ne,reduceRight:nr},nY={URI:nM,reduce:nt,foldMap:ne,reduceRight:nr,reduceWithIndex:no,foldMapWithIndex:na,reduceRightWithIndex:nc},nB={URI:nM,map:$,reduce:nt,foldMap:ne,reduceRight:nr,traverse:ni,sequence:nT},nV={URI:nM,map:$,mapWithIndex:Z,reduce:nt,foldMap:ne,reduceRight:nr,traverse:ni,sequence:nT,reduceWithIndex:no,foldMapWithIndex:na,reduceRightWithIndex:nc,traverseWithIndex:nf},nH={URI:nM,map:$,alt:nu},nz={URI:nM,map:$,extend:nn,extract:nw},nX=j(a.F4),nJ=(0,o.bindTo)(nW),n$=(0,o.let)(nW),nZ=(0,i.bind)(nj),nQ=(0,r.apS)(nA),n0=f.head,n2=function(n){return n.slice(1)},n1=f.last,n8=function(n){return n.slice(0,-1)},n5=f.min,n3=f.max,n7=function(n){return function(t){return t.reduce(n.concat)}},n4=function(n){return function(t){return n(n0(t),n2(t))}},n9=function(n){return function(t){return n(n8(t),n1(t))}},n6=function(n){return function(t){return l([n(n0(t))],n2(t),!0)}},tn=function(n){return n6(function(){return n})},tt=function(n){return function(t){return(0,u.pipe)(n8(t),v(n(n1(t))))}},te=function(n){return tt(function(){return n})},tr=f.intercalate,ti=ns;function tu(n){var t=D(n),e=F(n);return function(n){return p(n)?e(t(n)):[]}}function to(n){return ta(function(t,e){return n(e)})}var ta=function(n){return function(t){return T(t.filter(function(t,e){return n(e,t)}))}},tc=O,tf=E;function tl(n,t){return void 0===t?h(n):(0,u.pipe)(t,h(n))}var tp=function(n,t){return(0,u.pipe)(n,v(t))},td=K,ts=f.concatAll,th={URI:nM,of:j,map:$,mapWithIndex:Z,ap:Q,chain:ns,extend:nn,extract:nw,reduce:nt,foldMap:ne,reduceRight:nr,traverse:ni,sequence:nT,reduceWithIndex:no,foldMapWithIndex:na,reduceRightWithIndex:nc,traverseWithIndex:nf,alt:nu}},20492:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return ne},Alternative:function(){return no},ApT:function(){return n4},Applicative:function(){return B},Apply:function(){return Y},Chain:function(){return H},Compactable:function(){return nd},Do:function(){return n1},Extend:function(){return nc},Filterable:function(){return ng},Foldable:function(){return Z},FromEither:function(){return nE},Functor:function(){return L},Monad:function(){return z},MonadThrow:function(){return nM},Pointed:function(){return G},Traversable:function(){return n_},URI:function(){return W},Witherable:function(){return nx},Zero:function(){return ni},alt:function(){return nt},altW:function(){return nn},ap:function(){return K},apFirst:function(){return nN},apS:function(){return n7},apSecond:function(){return nj},as:function(){return N},asUnit:function(){return j},bind:function(){return n3},bindTo:function(){return n8},chain:function(){return tr},chainEitherK:function(){return nV},chainFirst:function(){return ti},chainFirstEitherK:function(){return nH},chainNullableK:function(){return nZ},compact:function(){return nf},duplicate:function(){return nY},elem:function(){return function n(t){return function(e,r){if(void 0===r){var i=n(t);return function(n){return i(e,n)}}return!nk(r)&&t.equals(e,r.value)}}},exists:function(){return n2},extend:function(){return na},filter:function(){return ns},filterMap:function(){return nh},flap:function(){return nL},flatMap:function(){return V},flatten:function(){return nq},fold:function(){return nD},foldMap:function(){return J},foldW:function(){return nF},fromEither:function(){return nO},fromEitherK:function(){return nB},fromNullable:function(){return nz},fromNullableK:function(){return n$},fromPredicate:function(){return g},getApplyMonoid:function(){return tf},getApplySemigroup:function(){return tc},getEq:function(){return P},getFirstMonoid:function(){return tl},getLastMonoid:function(){return tp},getLeft:function(){return y},getMonoid:function(){return A},getOrElse:function(){return nU},getOrElseW:function(){return nA},getOrd:function(){return D},getRefinement:function(){return tu},getRight:function(){return b},getShow:function(){return F},guard:function(){return nu},isNone:function(){return nk},isSome:function(){return nC},let:function(){return n5},map:function(){return U},mapNullable:function(){return to},match:function(){return nP},matchW:function(){return nW},none:function(){return m},of:function(){return q},option:function(){return ta},orElse:function(){return Q},partition:function(){return nm},partitionMap:function(){return nv},reduce:function(){return X},reduceRight:function(){return $},separate:function(){return np},sequence:function(){return nb},sequenceArray:function(){return te},some:function(){return v},tap:function(){return nG},tapEither:function(){return nK},throwError:function(){return nw},toNullable:function(){return nQ},toUndefined:function(){return n0},traverse:function(){return ny},traverseArray:function(){return tt},traverseArrayWithIndex:function(){return tn},traverseReadonlyArrayWithIndex:function(){return n6},traverseReadonlyNonEmptyArrayWithIndex:function(){return n9},tryCatch:function(){return nX},tryCatchK:function(){return nJ},wilt:function(){return nT},wither:function(){return nS},zero:function(){return nr}});var r=e(46111),i=e(42925),u=e(88543),o=e(25162),a=e(42275),c=e(67560),f=e(97963),l=e(88491),p=e(3291),d=e(34219),s=e(76511),h=e(28957),m=f.YP,v=f.G;function g(n){return function(t){return n(t)?v(t):m}}var y=function(n){return"Right"===n._tag?m:v(n.left)},b=function(n){return"Left"===n._tag?m:v(n.right)},_=function(n,t){return(0,a.pipe)(n,U(t))},I=function(n,t){return(0,a.pipe)(n,K(t))},R=function(n,t,e){return(0,a.pipe)(n,X(t,e))},S=function(n){var t=J(n);return function(n,e){return(0,a.pipe)(n,t(e))}},T=function(n,t,e){return(0,a.pipe)(n,$(t,e))},x=function(n){var t=ny(n);return function(n,e){return(0,a.pipe)(n,t(e))}},w=function(n,t){return(0,a.pipe)(n,nt(t))},M=function(n,t){return(0,a.pipe)(n,ns(t))},O=function(n,t){return(0,a.pipe)(n,nh(t))},E=function(n,t){return(0,a.pipe)(n,na(t))},C=function(n,t){return(0,a.pipe)(n,nm(t))},k=function(n,t){return(0,a.pipe)(n,nv(t))},W="Option",F=function(n){return{show:function(t){return nk(t)?"none":"some(".concat(n.show(t.value),")")}}},P=function(n){return{equals:function(t,e){return t===e||(nk(t)?nk(e):!nk(e)&&n.equals(t.value,e.value))}}},D=function(n){return{equals:P(n).equals,compare:function(t,e){return t===e?0:nC(t)?nC(e)?n.compare(t.value,e.value):1:-1}}},A=function(n){return{concat:function(t,e){return nk(t)?e:nk(e)?t:v(n.concat(t.value,e.value))},empty:m}},U=function(n){return function(t){return nk(t)?m:v(n(t.value))}},L={URI:W,map:_},N=(0,a.dual)(2,(0,c.as)(L)),j=(0,c.asUnit)(L),q=v,G={URI:W,of:q},K=function(n){return function(t){return nk(t)?m:nk(n)?m:v(t.value(n.value))}},Y={URI:W,map:_,ap:I},B={URI:W,map:_,ap:I,of:q},V=(0,a.dual)(2,function(n,t){return nk(n)?m:t(n.value)}),H={URI:W,map:_,ap:I,chain:V},z={URI:W,map:_,ap:I,of:q,chain:V},X=function(n,t){return function(e){return nk(e)?n:t(n,e.value)}},J=function(n){return function(t){return function(e){return nk(e)?n.empty:t(e.value)}}},$=function(n,t){return function(e){return nk(e)?n:t(e.value,n)}},Z={URI:W,reduce:R,foldMap:S,reduceRight:T},Q=(0,a.dual)(2,function(n,t){return nk(n)?t():n}),nn=Q,nt=Q,ne={URI:W,map:_,alt:w},nr=function(){return m},ni={URI:W,zero:nr},nu=(0,h.guard)(ni,G),no={URI:W,map:_,ap:I,of:q,alt:w,zero:nr},na=function(n){return function(t){return nk(t)?m:v(n(t))}},nc={URI:W,map:_,extend:E},nf=V(a.identity),nl=(0,d.separated)(m,m),np=function(n){return nk(n)?nl:(0,d.separated)(y(n.value),b(n.value))},nd={URI:W,compact:nf,separate:np},ns=function(n){return function(t){return nk(t)?m:n(t.value)?t:m}},nh=function(n){return function(t){return nk(t)?m:n(t.value)}},nm=function(n){return function(t){return(0,d.separated)(M(t,(0,l.not)(n)),M(t,n))}},nv=function(n){return(0,a.flow)(U(n),np)},ng={URI:W,map:_,compact:nf,separate:np,filter:M,filterMap:O,partition:C,partitionMap:k},ny=function(n){return function(t){return function(e){return nk(e)?n.of(m):n.map(t(e.value),v)}}},nb=function(n){return function(t){return nk(t)?n.of(m):n.map(t.value,v)}},n_={URI:W,map:_,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:nb},nI=(0,s.witherDefault)(n_,nd),nR=(0,s.wiltDefault)(n_,nd),nS=function(n){var t=nI(n);return function(n){return function(e){return t(e,n)}}},nT=function(n){var t=nR(n);return function(n){return function(e){return t(e,n)}}},nx={URI:W,map:_,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:nb,compact:nf,separate:np,filter:M,filterMap:O,partition:C,partitionMap:k,wither:nI,wilt:nR},nw=function(){return m},nM={URI:W,map:_,ap:I,of:q,chain:V,throwError:nw},nO=b,nE={URI:W,fromEither:nO},nC=f.pC,nk=function(n){return"None"===n._tag},nW=function(n,t){return function(e){return nk(e)?n():t(e.value)}},nF=nW,nP=nW,nD=nP,nA=function(n){return function(t){return nk(t)?n():t.value}},nU=nA,nL=(0,c.flap)(L),nN=(0,i.apFirst)(Y),nj=(0,i.apSecond)(Y),nq=nf,nG=(0,a.dual)(2,u.tap(H)),nK=(0,a.dual)(2,(0,o.tapEither)(nE,H)),nY=na(a.identity),nB=(0,o.fromEitherK)(nE),nV=(0,o.chainEitherK)(nE,H),nH=nK,nz=function(n){return null==n?m:v(n)},nX=function(n){try{return v(n())}catch(n){return m}},nJ=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return nX(function(){return n.apply(void 0,t)})}},n$=function(n){return(0,a.flow)(n,nz)},nZ=function(n){return function(t){return nk(t)?m:nz(n(t.value))}},nQ=nP(a.constNull,a.identity),n0=nP(a.constUndefined,a.identity),n2=function(n){return function(t){return!nk(t)&&n(t.value)}},n1=q(f.F4),n8=(0,c.bindTo)(L),n5=(0,c.let)(L),n3=u.bind(H),n7=(0,i.apS)(Y),n4=q(f.Xl),n9=function(n){return function(t){var e=n(0,f.YM(t));if(nk(e))return m;for(var r=[e.value],i=1;i<t.length;i++){var u=n(i,t[i]);if(nk(u))return m;r.push(u.value)}return v(r)}},n6=function(n){var t=n9(n);return function(n){return f.Od(n)?t(n):n4}},tn=n6,tt=function(n){return n6(function(t,e){return n(e)})},te=tt(a.identity),tr=V,ti=nG;function tu(n){return function(t){return nC(n(t))}}var to=nZ,ta={URI:W,map:_,of:q,ap:I,chain:V,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:nb,zero:nr,alt:w,extend:E,compact:nf,separate:np,filter:M,filterMap:O,partition:C,partitionMap:k,wither:nI,wilt:nR,throwError:nw},tc=(0,i.getApplySemigroup)(Y),tf=(0,r.getApplicativeMonoid)(B),tl=function(){return A((0,p.first)())},tp=function(){return A((0,p.last)())}},5586:function(n,t,e){e.r(t),e.d(t,{Contravariant:function(){return s},URI:function(){return l},between:function(){return S},clamp:function(){return R},contramap:function(){return f},equals:function(){return m},equalsDefault:function(){return u},fromCompare:function(){return o},geq:function(){return b},getDualOrd:function(){return x},getMonoid:function(){return d},getSemigroup:function(){return p},getTupleOrd:function(){return T},gt:function(){return g},leq:function(){return y},lt:function(){return v},max:function(){return I},min:function(){return _},ord:function(){return w},ordBoolean:function(){return O},ordDate:function(){return k},ordNumber:function(){return C},ordString:function(){return E},reverse:function(){return c},trivial:function(){return h},tuple:function(){return a}});var r=e(65191),i=e(42275),u=function(n){return function(t,e){return t===e||0===n(t,e)}},o=function(n){return{equals:u(n),compare:function(t,e){return t===e?0:n(t,e)}}},a=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return o(function(t,e){for(var r=0;r<n.length-1;r++){var i=n[r].compare(t[r],e[r]);if(0!==i)return i}return n[r].compare(t[r],e[r])})},c=function(n){return o(function(t,e){return n.compare(e,t)})},f=function(n){return function(t){return o(function(e,r){return t.compare(n(e),n(r))})}},l="Ord",p=function(){return{concat:function(n,t){return o(function(e,r){var i=n.compare(e,r);return 0!==i?i:t.compare(e,r)})}}},d=function(){return{concat:p().concat,empty:o(function(){return 0})}},s={URI:l,contramap:function(n,t){return(0,i.pipe)(n,f(t))}},h={equals:i.constTrue,compare:(0,i.constant)(0)},m=function(n){return function(t){return function(e){return e===t||0===n.compare(e,t)}}},v=function(n){return function(t,e){return -1===n.compare(t,e)}},g=function(n){return function(t,e){return 1===n.compare(t,e)}},y=function(n){return function(t,e){return 1!==n.compare(t,e)}},b=function(n){return function(t,e){return -1!==n.compare(t,e)}},_=function(n){return function(t,e){return t===e||1>n.compare(t,e)?t:e}},I=function(n){return function(t,e){return t===e||n.compare(t,e)>-1?t:e}},R=function(n){var t=_(n),e=I(n);return function(n,r){return function(i){return e(t(i,r),n)}}},S=function(n){var t=v(n),e=g(n);return function(n,r){return function(i){return!(t(i,n)||e(i,r))}}},T=a,x=c,w=s,M={equals:r.eqStrict.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},O=M,E=M,C=M,k=(0,i.pipe)(C,f(function(n){return n.valueOf()}))},88491:function(n,t,e){e.r(t),e.d(t,{Contravariant:function(){return l},URI:function(){return u},and:function(){return s},contramap:function(){return i},getMonoidAll:function(){return f},getMonoidAny:function(){return a},getSemigroupAll:function(){return c},getSemigroupAny:function(){return o},not:function(){return p},or:function(){return d}});var r=e(42275),i=function(n){return function(t){return(0,r.flow)(n,t)}},u="Predicate",o=function(){return{concat:function(n,t){return(0,r.pipe)(n,d(t))}}},a=function(){return{concat:o().concat,empty:r.constFalse}},c=function(){return{concat:function(n,t){return(0,r.pipe)(n,s(t))}}},f=function(){return{concat:c().concat,empty:r.constTrue}},l={URI:u,contramap:function(n,t){return(0,r.pipe)(n,i(t))}},p=function(n){return function(t){return!n(t)}},d=function(n){return function(t){return function(e){return t(e)||n(e)}}},s=function(n){return function(t){return function(e){return t(e)&&n(e)}}}},31583:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return tB},Alternative:function(){return tz},Applicative:function(){return tj},Apply:function(){return tU},Chain:function(){return tq},ChainRecBreadthFirst:function(){return t7},ChainRecDepthFirst:function(){return t5},Compactable:function(){return tJ},Do:function(){return es},Extend:function(){return tX},Filterable:function(){return t$},FilterableWithIndex:function(){return tZ},Foldable:function(){return tQ},FoldableWithIndex:function(){return t0},FromEither:function(){return et},Functor:function(){return tF},FunctorWithIndex:function(){return tA},Monad:function(){return tG},Pointed:function(){return tD},Traversable:function(){return t2},TraversableWithIndex:function(){return t1},URI:function(){return tS},Unfoldable:function(){return tY},Witherable:function(){return t6},Zero:function(){return tV},_chainRecBreadthFirst:function(){return nQ},_chainRecDepthFirst:function(){return nZ},alt:function(){return n8},altW:function(){return n1},ap:function(){return n5},apFirst:function(){return tL},apS:function(){return eg},apSecond:function(){return tN},append:function(){return I},appendW:function(){return R},bind:function(){return ev},bindTo:function(){return eh},chain:function(){return ey},chainFirst:function(){return tK},chainRecBreadthFirst:function(){return t3},chainRecDepthFirst:function(){return t8},chainWithIndex:function(){return A},chop:function(){return nI},chunksOf:function(){return nS},compact:function(){return tr},comprehension:function(){return nx},concat:function(){return nM},concatW:function(){return nw},cons:function(){return e_},deleteAt:function(){return na},difference:function(){return nC},dropLeft:function(){return J},dropLeftWhile:function(){return Z},dropRight:function(){return $},duplicate:function(){return tl},elem:function(){return ny},empty:function(){return ec},every:function(){return ef},exists:function(){return ep},extend:function(){return tf},filter:function(){return tn},filterE:function(){return en},filterMap:function(){return te},filterMapWithIndex:function(){return tt},filterWithIndex:function(){return tc},findFirst:function(){return nn},findFirstMap:function(){return nt},findIndex:function(){return Q},findLast:function(){return ne},findLastIndex:function(){return ni},findLastMap:function(){return nr},flap:function(){return tP},flatMap:function(){return n3},flatten:function(){return n7},foldLeft:function(){return W},foldMap:function(){return ts},foldMapWithIndex:function(){return tp},foldRight:function(){return D},fromArray:function(){return ea},fromEither:function(){return M},fromEitherK:function(){return ee},fromOption:function(){return w},fromOptionK:function(){return nT},fromPredicate:function(){return x},getDifferenceMagma:function(){return tW},getEq:function(){return tM},getIntersectionSemigroup:function(){return tk},getMonoid:function(){return tw},getOrd:function(){return tO},getSemigroup:function(){return tx},getShow:function(){return tT},getUnionMonoid:function(){return tC},getUnionSemigroup:function(){return tE},guard:function(){return tH},head:function(){return q},init:function(){return Y},insertAt:function(){return nu},intercalate:function(){return ed},intersection:function(){return nE},intersperse:function(){return nv},isEmpty:function(){return g},isNonEmpty:function(){return y},isOutOfBound:function(){return j},last:function(){return G},lefts:function(){return np},let:function(){return em},lookup:function(){return function n(t,e){return void 0===e?function(e){return n(t,e)}:j(t,e)?f.YP:f.G(e[t])}},makeBy:function(){return S},map:function(){return n4},mapWithIndex:function(){return n9},match:function(){return E},matchLeft:function(){return k},matchLeftW:function(){return C},matchRight:function(){return P},matchRightW:function(){return F},matchW:function(){return O},modifyAt:function(){return nc},of:function(){return n0},partition:function(){return ti},partitionMap:function(){return to},partitionMapWithIndex:function(){return ta},partitionWithIndex:function(){return tu},prepend:function(){return b},prependAll:function(){return nm},prependToAll:function(){return eR},prependW:function(){return _},range:function(){return eb},readonlyArray:function(){return eS},reduce:function(){return td},reduceRight:function(){return tm},reduceRightWithIndex:function(){return tv},reduceWithIndex:function(){return th},replicate:function(){return T},reverse:function(){return nf},rights:function(){return nl},rotate:function(){return ng},scanLeft:function(){return U},scanRight:function(){return L},separate:function(){return n6},sequence:function(){return ty},size:function(){return N},snoc:function(){return eI},some:function(){return el},sort:function(){return nd},sortBy:function(){return n_},spanLeft:function(){return X},splitAt:function(){return nR},tail:function(){return K},takeLeft:function(){return B},takeLeftWhile:function(){return H},takeRight:function(){return V},toArray:function(){return eo},traverse:function(){return tg},traverseWithIndex:function(){return tb},unfold:function(){return tR},union:function(){return nO},uniq:function(){return nb},unsafeDeleteAt:function(){return eu},unsafeInsertAt:function(){return er},unsafeUpdateAt:function(){return ei},unzip:function(){return nh},updateAt:function(){return no},wilt:function(){return tI},wither:function(){return t_},zero:function(){return n2},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:ns(t,e,function(n,t){return[n,t]})}},zipWith:function(){return ns}});var r=e(42925),i=e(88543),u=e(65191),o=e(25162),a=e(42275),c=e(67560),f=e(97963),l=e(76627),p=e(5586),d=e(28350),s=e(34219),h=e(76511),m=e(28957),v=function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},g=function(n){return 0===n.length},y=d.isNonEmpty,b=d.prepend,_=d.prependW,I=d.append,R=d.appendW,S=function(n,t){return n<=0?ec:d.makeBy(t)(n)},T=function(n,t){return S(n,function(){return t})};function x(n){return function(t){return n(t)?[t]:ec}}var w=function(n){return f.Wi(n)?ec:[n.value]},M=function(n){return f.nM(n)?ec:[n.right]},O=function(n,t){return function(e){return y(e)?t(e):n()}},E=O,C=function(n,t){return function(e){return y(e)?t(d.head(e),d.tail(e)):n()}},k=C,W=k,F=function(n,t){return function(e){return y(e)?t(d.init(e),d.last(e)):n()}},P=F,D=P,A=function(n){return function(t){if(g(t))return ec;for(var e=[],r=0;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},U=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[0]=n;for(var u=0;u<r;u++)i[u+1]=t(i[u],e[u]);return i}},L=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[r]=n;for(var u=r-1;u>=0;u--)i[u]=t(e[u],i[u+1]);return i}},N=function(n){return n.length},j=d.isOutOfBound,q=function(n){return y(n)?f.G(d.head(n)):f.YP},G=function(n){return y(n)?f.G(d.last(n)):f.YP},K=function(n){return y(n)?f.G(d.tail(n)):f.YP},Y=function(n){return y(n)?f.G(d.init(n)):f.YP},B=function(n){return function(t){return j(n,t)?t:0===n?ec:t.slice(0,n)}},V=function(n){return function(t){return j(n,t)?t:0===n?ec:t.slice(-n)}};function H(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r];if(!n(i))break;e.push(i)}var u=e.length;return u===t.length?t:0===u?ec:e}}var z=function(n,t){for(var e=n.length,r=0;r<e&&t(n[r]);r++);return r};function X(n){return function(t){var e=nR(z(t,n))(t);return{init:e[0],rest:e[1]}}}var J=function(n){return function(t){return n<=0||g(t)?t:n>=t.length?ec:t.slice(n,t.length)}},$=function(n){return function(t){return n<=0||g(t)?t:n>=t.length?ec:t.slice(0,t.length-n)}};function Z(n){return function(t){var e=z(t,n);return 0===e?t:e===t.length?ec:t.slice(e)}}var Q=function(n){return function(t){for(var e=0;e<t.length;e++)if(n(t[e]))return f.G(e);return f.YP}};function nn(n){return function(t){for(var e=0;e<t.length;e++)if(n(t[e]))return f.G(t[e]);return f.YP}}var nt=function(n){return function(t){for(var e=0;e<t.length;e++){var r=n(t[e]);if(f.pC(r))return r}return f.YP}};function ne(n){return function(t){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return f.G(t[e]);return f.YP}}var nr=function(n){return function(t){for(var e=t.length-1;e>=0;e--){var r=n(t[e]);if(f.pC(r))return r}return f.YP}},ni=function(n){return function(t){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return f.G(e);return f.YP}},nu=function(n,t){return function(e){return n<0||n>e.length?f.YP:f.G(d.unsafeInsertAt(n,t,e))}},no=function(n,t){return nc(n,function(){return t})},na=function(n){return function(t){return j(n,t)?f.YP:f.G(eu(n,t))}},nc=function(n,t){return function(e){return j(n,e)?f.YP:f.G(ei(n,t(e[n]),e))}},nf=function(n){return n.length<=1?n:n.slice().reverse()},nl=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Right"===r._tag&&t.push(r.right)}return t},np=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Left"===r._tag&&t.push(r.left)}return t},nd=function(n){return function(t){return t.length<=1?t:t.slice().sort(n.compare)}},ns=function(n,t,e){for(var r=[],i=Math.min(n.length,t.length),u=0;u<i;u++)r[u]=e(n[u],t[u]);return r},nh=function(n){for(var t=[],e=[],r=0;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},nm=function(n){var t=d.prependAll(n);return function(n){return y(n)?t(n):n}},nv=function(n){var t=d.intersperse(n);return function(n){return y(n)?t(n):n}},ng=function(n){var t=d.rotate(n);return function(n){return y(n)?t(n):n}};function ny(n){return function(t,e){if(void 0===e){var r,i=ny(n);return function(n){return i(t,n)}}for(var u=0;u<e.length;u++)if(r=e[u],n.equals(r,t))return!0;return!1}}var nb=function(n){var t=d.uniq(n);return function(n){return y(n)?t(n):n}},n_=function(n){var t=d.sortBy(n);return function(n){return y(n)?t(n):n}},nI=function(n){var t=d.chop(n);return function(n){return y(n)?t(n):ec}},nR=function(n){return function(t){return n>=1&&y(t)?d.splitAt(n)(t):g(t)?[t,ec]:[ec,t]}},nS=function(n){var t=d.chunksOf(n);return function(n){return y(n)?t(n):ec}},nT=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return w(n.apply(void 0,t))}};function nx(n,t,e){void 0===e&&(e=function(){return!0});var r=function(n,i){return y(i)?n3(d.head(i),function(t){return r((0,a.pipe)(n,I(t)),d.tail(i))}):e.apply(void 0,n)?[t.apply(void 0,n)]:ec};return r(ec,n)}var nw=function(n){return function(t){return g(t)?n:g(n)?t:t.concat(n)}},nM=nw;function nO(n){var t=d.union(n);return function(e,r){if(void 0===r){var i=nO(n);return function(n){return i(n,e)}}return y(e)&&y(r)?t(r)(e):y(e)?e:r}}function nE(n){var t=ny(n);return function(e,r){if(void 0===r){var i=nE(n);return function(n){return i(n,e)}}return e.filter(function(n){return t(n,r)})}}function nC(n){var t=ny(n);return function(e,r){if(void 0===r){var i=nC(n);return function(n){return i(n,e)}}return e.filter(function(n){return!t(n,r)})}}var nk=function(n,t){return(0,a.pipe)(n,n4(t))},nW=function(n,t){return(0,a.pipe)(n,n9(t))},nF=function(n,t){return(0,a.pipe)(n,n5(t))},nP=function(n,t){return(0,a.pipe)(n,tn(t))},nD=function(n,t){return(0,a.pipe)(n,te(t))},nA=function(n,t){return(0,a.pipe)(n,ti(t))},nU=function(n,t){return(0,a.pipe)(n,to(t))},nL=function(n,t){return(0,a.pipe)(n,tu(t))},nN=function(n,t){return(0,a.pipe)(n,ta(t))},nj=function(n,t){return(0,a.pipe)(n,n8(t))},nq=function(n,t,e){return(0,a.pipe)(n,td(t,e))},nG=function(n){var t=ts(n);return function(n,e){return(0,a.pipe)(n,t(e))}},nK=function(n,t,e){return(0,a.pipe)(n,tm(t,e))},nY=function(n,t,e){return(0,a.pipe)(n,th(t,e))},nB=function(n){var t=tp(n);return function(n,e){return(0,a.pipe)(n,t(e))}},nV=function(n,t,e){return(0,a.pipe)(n,tv(t,e))},nH=function(n,t){return(0,a.pipe)(n,tt(t))},nz=function(n,t){return(0,a.pipe)(n,tc(t))},nX=function(n,t){return(0,a.pipe)(n,tf(t))},nJ=function(n){var t=tg(n);return function(n,e){return(0,a.pipe)(n,t(e))}},n$=function(n){var t=tb(n);return function(n,e){return(0,a.pipe)(n,t(e))}},nZ=function(n,t){return(0,a.pipe)(n,t8(t))},nQ=function(n,t){return(0,a.pipe)(n,t3(t))},n0=d.of,n2=function(){return ec},n1=function(n){return function(t){return t.concat(n())}},n8=n1,n5=function(n){return n3(function(t){return(0,a.pipe)(n,n4(t))})},n3=(0,a.dual)(2,function(n,t){return(0,a.pipe)(n,A(function(n,e){return t(e,n)}))}),n7=n3(a.identity),n4=function(n){return function(t){return t.map(function(t){return n(t)})}},n9=function(n){return function(t){return t.map(function(t,e){return n(e,t)})}},n6=function(n){for(var t=[],e=[],r=0;r<n.length;r++){var i=n[r];"Left"===i._tag?t.push(i.left):e.push(i.right)}return(0,s.separated)(t,e)},tn=function(n){return function(t){return t.filter(n)}},tt=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=n(r,t[r]);f.pC(i)&&e.push(i.value)}return e}},te=function(n){return tt(function(t,e){return n(e)})},tr=te(a.identity),ti=function(n){return tu(function(t,e){return n(e)})},tu=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=t[i];n(i,u)?r.push(u):e.push(u)}return(0,s.separated)(e,r)}},to=function(n){return ta(function(t,e){return n(e)})},ta=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=n(i,t[i]);"Left"===u._tag?e.push(u.left):r.push(u.right)}return(0,s.separated)(e,r)}},tc=function(n){return function(t){return t.filter(function(t,e){return n(e,t)})}},tf=function(n){return function(t){return t.map(function(e,r){return n(t.slice(r))})}},tl=tf(a.identity),tp=function(n){return function(t){return function(e){return e.reduce(function(e,r,i){return n.concat(e,t(i,r))},n.empty)}}},td=function(n,t){return th(n,function(n,e,r){return t(e,r)})},ts=function(n){var t=tp(n);return function(n){return t(function(t,e){return n(e)})}},th=function(n,t){return function(e){for(var r=e.length,i=n,u=0;u<r;u++)i=t(u,i,e[u]);return i}},tm=function(n,t){return tv(n,function(n,e,r){return t(e,r)})},tv=function(n,t){return function(e){return e.reduceRight(function(n,e,r){return t(r,e,n)},n)}},tg=function(n){var t=tb(n);return function(n){return t(function(t,e){return n(e)})}},ty=function(n){return function(t){return nq(t,n.of(n2()),function(t,e){return n.ap(n.map(t,function(n){return function(t){return(0,a.pipe)(n,I(t))}}),e)})}},tb=function(n){return function(t){return th(n.of(n2()),function(e,r,i){return n.ap(n.map(r,function(n){return function(t){return(0,a.pipe)(n,I(t))}}),t(e,i))})}},t_=function(n){var t=t4(n);return function(n){return function(e){return t(e,n)}}},tI=function(n){var t=t9(n);return function(n){return function(e){return t(e,n)}}},tR=function(n,t){for(var e=[],r=n;;){var i=t(r);if(f.pC(i)){var u=i.value,o=u[0],a=u[1];e.push(o),r=a}else break}return e},tS="ReadonlyArray",tT=function(n){return{show:function(t){return"[".concat(t.map(n.show).join(", "),"]")}}},tx=function(){return{concat:function(n,t){return g(n)?t:g(t)?n:n.concat(t)}}},tw=function(){return{concat:tx().concat,empty:ec}},tM=function(n){return(0,u.fromEquals)(function(t,e){return t.length===e.length&&t.every(function(t,r){return n.equals(t,e[r])})})},tO=function(n){return(0,p.fromCompare)(function(t,e){for(var r=t.length,i=e.length,u=Math.min(r,i),o=0;o<u;o++){var a=n.compare(t[o],e[o]);if(0!==a)return a}return l.Ord.compare(r,i)})},tE=function(n){var t=nO(n);return{concat:function(n,e){return t(e)(n)}}},tC=function(n){return{concat:tE(n).concat,empty:ec}},tk=function(n){var t=nE(n);return{concat:function(n,e){return t(e)(n)}}},tW=function(n){var t=nC(n);return{concat:function(n,e){return t(e)(n)}}},tF={URI:tS,map:nk},tP=(0,c.flap)(tF),tD={URI:tS,of:n0},tA={URI:tS,map:nk,mapWithIndex:nW},tU={URI:tS,map:nk,ap:nF},tL=(0,r.apFirst)(tU),tN=(0,r.apSecond)(tU),tj={URI:tS,map:nk,ap:nF,of:n0},tq={URI:tS,map:nk,ap:nF,chain:n3},tG={URI:tS,map:nk,ap:nF,of:n0,chain:n3},tK=(0,i.chainFirst)(tq),tY={URI:tS,unfold:tR},tB={URI:tS,map:nk,alt:nj},tV={URI:tS,zero:n2},tH=(0,m.guard)(tV,tD),tz={URI:tS,map:nk,ap:nF,of:n0,alt:nj,zero:n2},tX={URI:tS,map:nk,extend:nX},tJ={URI:tS,compact:tr,separate:n6},t$={URI:tS,map:nk,compact:tr,separate:n6,filter:nP,filterMap:nD,partition:nA,partitionMap:nU},tZ={URI:tS,map:nk,mapWithIndex:nW,compact:tr,separate:n6,filter:nP,filterMap:nD,partition:nA,partitionMap:nU,partitionMapWithIndex:nN,partitionWithIndex:nL,filterMapWithIndex:nH,filterWithIndex:nz},tQ={URI:tS,reduce:nq,foldMap:nG,reduceRight:nK},t0={URI:tS,reduce:nq,foldMap:nG,reduceRight:nK,reduceWithIndex:nY,foldMapWithIndex:nB,reduceRightWithIndex:nV},t2={URI:tS,map:nk,reduce:nq,foldMap:nG,reduceRight:nK,traverse:nJ,sequence:ty},t1={URI:tS,map:nk,mapWithIndex:nW,reduce:nq,foldMap:nG,reduceRight:nK,reduceWithIndex:nY,foldMapWithIndex:nB,reduceRightWithIndex:nV,traverse:nJ,sequence:ty,traverseWithIndex:n$},t8=function(n){return function(t){for(var e=v([],n(t),!0),r=[];e.length>0;){var i=e.shift();f.nM(i)?e.unshift.apply(e,n(i.left)):r.push(i.right)}return r}},t5={URI:tS,map:nk,ap:nF,chain:n3,chainRec:nZ},t3=function(n){return function(t){var e=n(t),r=[],i=[];function u(t){f.nM(t)?n(t.left).forEach(function(n){return r.push(n)}):i.push(t.right)}for(var o=0;o<e.length;o++)u(e[o]);for(;r.length>0;)u(r.shift());return i}},t7={URI:tS,map:nk,ap:nF,chain:n3,chainRec:nQ},t4=(0,h.witherDefault)(t2,tJ),t9=(0,h.wiltDefault)(t2,tJ),t6={URI:tS,map:nk,compact:tr,separate:n6,filter:nP,filterMap:nD,partition:nA,partitionMap:nU,reduce:nq,foldMap:nG,reduceRight:nK,traverse:nJ,sequence:ty,wither:t4,wilt:t9},en=(0,h.filterE)(t6),et={URI:tS,fromEither:M},ee=(0,o.fromEitherK)(et),er=d.unsafeInsertAt,ei=function(n,t,e){return y(e)?d.unsafeUpdateAt(n,t,e):e},eu=function(n,t){var e=t.slice();return e.splice(n,1),e},eo=function(n){return n.slice()},ea=function(n){return g(n)?ec:n.slice()},ec=d.empty;function ef(n){return function(t){return t.every(n)}}var el=function(n){return function(t){return t.some(n)}},ep=el,ed=function(n){var t=d.intercalate(n);return function(e){return E(function(){return n.empty},t(e))}},es=n0(f.F4),eh=(0,c.bindTo)(tF),em=(0,c.let)(tF),ev=(0,i.bind)(tq),eg=(0,r.apS)(tU),ey=n3,eb=d.range,e_=d.cons,eI=d.snoc,eR=nm,eS={URI:tS,compact:tr,separate:n6,map:nk,ap:nF,of:n0,chain:n3,filter:nP,filterMap:nD,partition:nA,partitionMap:nU,mapWithIndex:nW,partitionMapWithIndex:nN,partitionWithIndex:nL,filterMapWithIndex:nH,filterWithIndex:nz,alt:nj,zero:n2,unfold:tR,reduce:nq,foldMap:nG,reduceRight:nK,traverse:nJ,sequence:ty,reduceWithIndex:nY,foldMapWithIndex:nB,reduceRightWithIndex:nV,traverseWithIndex:n$,extend:nX,wither:t4,wilt:t9}},13512:function(n,t,e){e.r(t),e.d(t,{Compactable:function(){return np},Filterable:function(){return nd},Functor:function(){return nc},URI:function(){return ne},collect:function(){return y},compact:function(){return z},deleteAt:function(){return R},difference:function(){return nw},elem:function(){return function n(t){return function(e,r){if(void 0===r){var i,u=n(t);return function(n){return u(e,n)}}for(var o=r.values();!(i=o.next()).done;){var a=i.value;if(t.equals(e,a))return!0}return!1}}},empty:function(){return E},filter:function(){return X},filterMap:function(){return J},filterMapWithIndex:function(){return U},filterWithIndex:function(){return L},flap:function(){return nf},foldMap:function(){return nh},foldMapWithIndex:function(){return ny},fromFoldable:function(){return F},fromMap:function(){return l},getDifferenceMagma:function(){return no},getEq:function(){return C},getFilterableWithIndex:function(){return na},getFoldable:function(){return nv},getFoldableWithIndex:function(){return n_},getFunctorWithIndex:function(){return nl},getIntersectionSemigroup:function(){return nu},getMonoid:function(){return k},getShow:function(){return d},getTraversable:function(){return nI},getTraversableWithIndex:function(){return nR},getUnionMonoid:function(){return ni},getUnionSemigroup:function(){return nr},getWitherable:function(){return nS},insertAt:function(){return nM},intersection:function(){return nx},isEmpty:function(){return h},isSubmap:function(){return O},keys:function(){return v},lookup:function(){return M},lookupWithKey:function(){return w},map:function(){return $},mapWithIndex:function(){return Z},member:function(){return m},modifyAt:function(){return T},partition:function(){return Q},partitionMap:function(){return nn},partitionMapWithIndex:function(){return D},partitionWithIndex:function(){return A},pop:function(){return x},readonlyMap:function(){return nO},reduce:function(){return ns},reduceRight:function(){return nm},reduceRightWithIndex:function(){return nb},reduceWithIndex:function(){return ng},separate:function(){return nt},singleton:function(){return W},size:function(){return s},toMap:function(){return p},toReadonlyArray:function(){return b},toUnfoldable:function(){return _},union:function(){return nT},updateAt:function(){return S},upsertAt:function(){return I},values:function(){return g}});var r=e(65191),i=e(42275),u=e(67560),o=e(97963),a=e(20492),c=e(34219),f=e(76511),l=function(n){return new Map(n)};function p(n){return new Map(n)}function d(n,t){return{show:function(e){var r=[];return e.forEach(function(e,i){r.push("[".concat(n.show(i),", ").concat(t.show(e),"]"))}),"new Map([".concat(r.sort().join(", "),"])")}}}var s=function(n){return n.size},h=function(n){return 0===n.size};function m(n){var t=M(n);return function(e,r){if(void 0===r){var i=m(n);return function(n){return i(e,n)}}return o.pC(t(e,r))}}var v=function(n){return function(t){return Array.from(t.keys()).sort(n.compare)}},g=function(n){return function(t){return Array.from(t.values()).sort(n.compare)}};function y(n){var t=v(n);return function(n){return function(e){for(var r=[],i=t(e),u=0;u<i.length;u++){var o=i[u];r.push(n(o,e.get(o)))}return r}}}var b=function(n){return y(n)(function(n,t){return[n,t]})};function _(n,t){var e=b(n);return function(n){var r=e(n),i=r.length;return t.unfold(0,function(n){return n<i?o.G([r[n],n+1]):o.YP})}}var I=function(n){var t=w(n);return function(n,e){var r=t(n);return function(t){var i=r(t);if(o.Wi(i)){var u=new Map(t);return u.set(n,e),u}if(i.value[1]!==e){var u=new Map(t);return u.set(i.value[0],e),u}return t}}},R=function(n){var t=w(n);return function(n){return function(e){var r=t(n,e);if(o.pC(r)){var i=new Map(e);return i.delete(r.value[0]),i}return e}}},S=function(n){var t=T(n);return function(n,e){return t(n,function(){return e})}},T=function(n){var t=w(n);return function(n,e){return function(r){var i=t(n,r);if(o.Wi(i))return o.YP;var u=i.value,a=u[0],c=u[1],f=e(c);if(f===c)return o.G(r);var l=new Map(r);return l.set(a,f),o.G(l)}}};function x(n){var t=M(n),e=R(n);return function(n){var r=e(n);return function(e){return(0,i.pipe)(t(n,e),a.map(function(n){return[n,r(e)]}))}}}function w(n){return function(t,e){if(void 0===e){var r,i=w(n);return function(n){return i(t,n)}}for(var u=e.entries();!(r=u.next()).done;){var a=r.value,c=a[0],f=a[1];if(n.equals(c,t))return o.G([c,f])}return o.YP}}function M(n){var t=w(n);return function(e,r){if(void 0===r){var u=M(n);return function(n){return u(e,n)}}return(0,i.pipe)(t(e,r),a.map(function(n){return n[0],n[1]}))}}function O(n,t){var e=w(n);return function(r,i){if(void 0===i){var u,a=O(n,t);return function(n){return a(n,r)}}for(var c=r.entries();!(u=c.next()).done;){var f=u.value,l=f[0],p=f[1],d=e(l,i);if(o.Wi(d)||!n.equals(l,d.value[0])||!t.equals(p,d.value[1]))return!1}return!0}}var E=new Map;function C(n,t){var e=O(n,t);return(0,r.fromEquals)(function(n,t){return e(n,t)&&e(t,n)})}function k(n,t){var e=w(n);return{concat:function(n,r){if(h(n))return r;if(h(r))return n;for(var i,u=new Map(n),a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=e(f,n);o.pC(p)?u.set(p.value[0],t.concat(p.value[1],l)):u.set(f,l)}return u},empty:E}}var W=function(n,t){return new Map([[n,t]])};function F(n,t,e){return function(r){var i=w(n);return e.reduce(r,new Map,function(n,e){var r=e[0],u=e[1],a=i(r,n);return o.pC(a)?n.set(a.value[0],t.concat(a.value[1],u)):n.set(r,u),n})}}var P=function(n,t){for(var e,r=new Map,i=n.entries();!(e=i.next()).done;){var u=e.value,o=u[0],a=u[1];r.set(o,t(o,a))}return r},D=function(n){return function(t){for(var e,r=new Map,i=new Map,u=t.entries();!(e=u.next()).done;){var a=e.value,f=a[0],l=n(f,a[1]);o.nM(l)?r.set(f,l.left):i.set(f,l.right)}return(0,c.separated)(r,i)}};function A(n){return function(t){for(var e,r=new Map,i=new Map,u=t.entries();!(e=u.next()).done;){var o=e.value,a=o[0],f=o[1];n(a,f)?i.set(a,f):r.set(a,f)}return(0,c.separated)(r,i)}}var U=function(n){return function(t){for(var e,r=new Map,i=t.entries();!(e=i.next()).done;){var u=e.value,a=u[0],c=n(a,u[1]);o.pC(c)&&r.set(a,c.value)}return r}};function L(n){return function(t){for(var e,r=new Map,i=t.entries();!(e=i.next()).done;){var u=e.value,o=u[0],a=u[1];n(o,a)&&r.set(o,a)}return r}}var N=function(n,t){return P(n,function(n,e){return t(e)})},j=function(n,t){return Y(n,function(n,e){return t(e)})},q=function(n,t){return B(n,function(n,e){return t(e)})},G=function(n,t){return V(n,function(n,e){return t(e)})},K=function(n,t){return H(n,function(n,e){return t(e)})},Y=function(n,t){return(0,i.pipe)(n,L(t))},B=function(n,t){return(0,i.pipe)(n,U(t))},V=function(n,t){return(0,i.pipe)(n,A(t))},H=function(n,t){return(0,i.pipe)(n,D(t))},z=function(n){for(var t,e=new Map,r=n.entries();!(t=r.next()).done;){var i=t.value,u=i[0],a=i[1];o.pC(a)&&e.set(u,a.value)}return e},X=function(n){return function(t){return j(t,n)}},J=function(n){return function(t){return q(t,n)}},$=function(n){return function(t){return N(t,n)}},Z=function(n){return function(t){return P(t,n)}},Q=function(n){return function(t){return G(t,n)}},nn=function(n){return function(t){return K(t,n)}},nt=function(n){for(var t,e=new Map,r=new Map,i=n.entries();!(t=i.next()).done;){var u=t.value,a=u[0],f=u[1];o.nM(f)?e.set(a,f.left):r.set(a,f.right)}return(0,c.separated)(e,r)},ne="ReadonlyMap",nr=function(n,t){var e=nT(n,t);return{concat:function(n,t){return e(t)(n)}}},ni=function(n,t){return{concat:nr(n,t).concat,empty:E}},nu=function(n,t){var e=nx(n,t);return{concat:function(n,t){return e(t)(n)}}},no=function(n){return function(){var t=nw(n);return{concat:function(n,e){return t(e)(n)}}}};function na(){return{URI:ne,_E:void 0,map:N,mapWithIndex:P,compact:z,separate:nt,filter:j,filterMap:q,partition:G,partitionMap:K,partitionMapWithIndex:H,partitionWithIndex:V,filterMapWithIndex:B,filterWithIndex:Y}}var nc={URI:ne,map:N},nf=(0,u.flap)(nc),nl=function(){return{URI:ne,_E:void 0,map:N,mapWithIndex:P}},np={URI:ne,compact:z,separate:nt},nd={URI:ne,map:N,compact:z,separate:nt,filter:j,filterMap:q,partition:G,partitionMap:K},ns=function(n){var t=ng(n);return function(n,e){return t(n,function(n,t,r){return e(t,r)})}},nh=function(n){var t=ny(n);return function(n){var e=t(n);return function(n){return e(function(t,e){return n(e)})}}},nm=function(n){var t=nb(n);return function(n,e){return t(n,function(n,t,r){return e(t,r)})}},nv=function(n){var t=ns(n),e=nh(n),r=nm(n);return{URI:ne,_E:void 0,reduce:function(n,e,r){return(0,i.pipe)(n,t(e,r))},foldMap:function(n){var t=e(n);return function(n,e){return(0,i.pipe)(n,t(e))}},reduceRight:function(n,t,e){return(0,i.pipe)(n,r(t,e))}}},ng=function(n){var t=v(n);return function(n,e){return function(r){for(var i=n,u=0,o=t(r);u<o.length;u++){var a=o[u];i=e(a,i,r.get(a))}return i}}},ny=function(n){var t=v(n);return function(n){return function(e){return function(r){for(var i=n.empty,u=0,o=t(r);u<o.length;u++){var a=o[u];i=n.concat(i,e(a,r.get(a)))}return i}}}},nb=function(n){var t=v(n);return function(n,e){return function(r){for(var i=n,u=t(r),o=u.length,a=o-1;a>=0;a--){var c=u[a];i=e(c,r.get(c),i)}return i}}},n_=function(n){var t=nv(n),e=ng(n),r=ny(n),u=nb(n);return{URI:ne,_E:void 0,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:function(n,t,r){return(0,i.pipe)(n,e(t,r))},foldMapWithIndex:function(n){var t=r(n);return function(n,e){return(0,i.pipe)(n,t(e))}},reduceRightWithIndex:function(n,t,e){return(0,i.pipe)(n,u(t,e))}}},nI=function(n){var t=nR(n),e=nv(n);return{URI:ne,_E:void 0,map:N,reduce:e.reduce,foldMap:e.foldMap,reduceRight:e.reduceRight,traverse:t.traverse,sequence:t.sequence}},nR=function(n){var t=n_(n),e=v(n),r=function(n){return function(t,r){for(var i=n.of(new Map),u=e(t),o=u.length,a=0;a<o;a++)!function(e){var o=u[e],a=t.get(o);i=n.ap(n.map(i,function(n){return function(t){return n.set(o,t)}}),r(o,a))}(a);return i}};return{URI:ne,_E:void 0,map:N,mapWithIndex:P,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:function(n){var t=r(n);return function(n,e){return t(n,function(n,t){return e(t)})}},sequence:function(n){var t=r(n);return function(n){return t(n,i.SK)}},traverseWithIndex:r}};function nS(n){var t=nR(n);return{URI:ne,_E:void 0,map:N,compact:z,separate:nt,filter:j,filterMap:q,partition:G,partitionMap:K,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,traverse:t.traverse,sequence:t.sequence,mapWithIndex:P,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverseWithIndex:t.traverseWithIndex,wilt:(0,f.wiltDefault)(t,np),wither:(0,f.witherDefault)(t,np)}}var nT=function(n,t){var e=M(n);return function(n){return function(r){if(h(r))return n;if(h(n))return r;for(var i,u=new Map,a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=e(f)(n);o.pC(p)?u.set(f,t.concat(l,p.value)):u.set(f,l)}for(var d=n.entries();!(i=d.next()).done;){var s=i.value,f=s[0],l=s[1],p=e(f)(u);o.Wi(p)&&u.set(f,l)}return u}}},nx=function(n,t){var e=M(n);return function(n){return function(r){if(h(r)||h(n))return E;for(var i,u=new Map,a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=e(f)(n);o.pC(p)&&u.set(f,t.concat(l,p.value))}return u}}},nw=function(n){var t=m(n);return function(n){return function(e){if(h(e))return n;if(h(n))return e;for(var r,i=new Map,u=e.entries();!(r=u.next()).done;){var o=r.value,a=o[0],c=o[1];t(a)(n)||i.set(a,c)}for(var f=n.entries();!(r=f.next()).done;){var l=r.value,a=l[0],c=l[1];t(a)(e)||i.set(a,c)}return i}}},nM=I,nO={URI:ne,map:N,compact:z,separate:nt,filter:j,filterMap:q,partition:G,partitionMap:K}},28350:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return nH},Applicative:function(){return nN},Apply:function(){return nA},Chain:function(){return nj},Comonad:function(){return nz},Do:function(){return nX},Foldable:function(){return nK},FoldableWithIndex:function(){return nY},Functor:function(){return nW},FunctorWithIndex:function(){return nD},Monad:function(){return nG},Pointed:function(){return nP},Traversable:function(){return nB},TraversableWithIndex:function(){return nV},URI:function(){return nM},alt:function(){return nf},altW:function(){return nc},ap:function(){return nl},apFirst:function(){return nU},apS:function(){return nQ},apSecond:function(){return nL},append:function(){return y},appendW:function(){return g},bind:function(){return nZ},bindTo:function(){return nJ},chain:function(){return ti},chainFirst:function(){return nq},chainWithIndex:function(){return Y},chop:function(){return B},chunksOf:function(){return H},concat:function(){return F},concatAll:function(){return n7},concatW:function(){return W},cons:function(){return tl},duplicate:function(){return ns},empty:function(){return d},extend:function(){return nd},extract:function(){return nw},filter:function(){return to},filterWithIndex:function(){return ta},flap:function(){return nF},flatMap:function(){return np},flatten:function(){return nh},fold:function(){return th},foldMap:function(){return ny},foldMapWithIndex:function(){return nI},fromArray:function(){return k},fromReadonlyArray:function(){return x},getEq:function(){return nC},getSemigroup:function(){return nE},getShow:function(){return nO},getUnionSemigroup:function(){return nk},group:function(){return D},groupBy:function(){return A},groupSort:function(){return tu},head:function(){return n0},init:function(){return n8},insertAt:function(){return td},intercalate:function(){return tr},intersperse:function(){return K},isNonEmpty:function(){return s},isOutOfBound:function(){return h},last:function(){return n1},let:function(){return n$},makeBy:function(){return w},map:function(){return nm},mapWithIndex:function(){return nv},matchLeft:function(){return n4},matchRight:function(){return n9},max:function(){return n3},min:function(){return n5},modifyAt:function(){return N},modifyHead:function(){return n6},modifyLast:function(){return tt},of:function(){return na},prepend:function(){return v},prependAll:function(){return G},prependToAll:function(){return ts},prependW:function(){return m},range:function(){return O},readonlyNonEmptyArray:function(){return tm},reduce:function(){return ng},reduceRight:function(){return nb},reduceRightWithIndex:function(){return nR},reduceWithIndex:function(){return n_},replicate:function(){return M},reverse:function(){return P},rotate:function(){return T},sequence:function(){return nT},snoc:function(){return tp},sort:function(){return U},sortBy:function(){return R},splitAt:function(){return V},tail:function(){return n2},traverse:function(){return nS},traverseWithIndex:function(){return nx},unappend:function(){return C},uncons:function(){return tc},union:function(){return S},uniq:function(){return I},unprepend:function(){return E},unsafeInsertAt:function(){return b},unsafeUpdateAt:function(){return _},unsnoc:function(){return tf},unzip:function(){return q},updateAt:function(){return L},updateHead:function(){return tn},updateLast:function(){return te},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:j(t,e,function(n,t){return[n,t]})}},zipWith:function(){return j}});var r=e(42925),i=e(88543),u=e(65191),o=e(42275),a=e(67560),c=e(97963),f=e(5586),l=e(3291),p=function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},d=c.Xl,s=c.Od,h=function(n,t){return n<0||n>=t.length},m=function(n){return function(t){return p([n],t,!0)}},v=m,g=function(n){return function(t){return p(p([],t,!0),[n],!1)}},y=g,b=function(n,t,e){if(s(e)){var r=c.r1(e);return r.splice(n,0,t),r}return[t]},_=function(n,t,e){if(e[n]===t)return e;var r=c.r1(e);return r[n]=t,r},I=function(n){return function(t){if(1===t.length)return t;for(var e=[n0(t)],r=n2(t),i=function(t){e.every(function(e){return!n.equals(e,t)})&&e.push(t)},u=0;u<r.length;u++)i(r[u]);return e}},R=function(n){if(s(n)){var t=(0,f.getMonoid)();return U(n.reduce(t.concat,t.empty))}return o.identity},S=function(n){var t=I(n);return function(n){return function(e){return t((0,o.pipe)(e,F(n)))}}},T=function(n){return function(t){var e=t.length,r=Math.round(n)%e;if(h(Math.abs(r),t)||0===r)return t;if(!(r<0))return T(r-e)(t);var i=V(-r)(t),u=i[0],a=i[1];return(0,o.pipe)(a,F(u))}},x=function(n){return s(n)?c.G(n):c.YP},w=function(n){return function(t){for(var e=Math.max(0,Math.floor(t)),r=[n(0)],i=1;i<e;i++)r.push(n(i));return r}},M=function(n){return w(function(){return n})},O=function(n,t){return n<=t?w(function(t){return n+t})(t-n+1):[n]},E=function(n){return[n0(n),n2(n)]},C=function(n){return[n8(n),n1(n)]},k=function(n){return x(n.slice())};function W(n){return function(t){return t.concat(n)}}function F(n,t){return t?n.concat(t):function(t){return t.concat(n)}}var P=function(n){return 1===n.length?n:p([n1(n)],n.slice(0,-1).reverse(),!0)};function D(n){return function(t){var e=t.length;if(0===e)return d;for(var r=[],i=t[0],u=[i],o=1;o<e;o++){var a=t[o];n.equals(a,i)?u.push(a):(r.push(u),u=[i=a])}return r.push(u),r}}var A=function(n){return function(t){for(var e={},r=0;r<t.length;r++){var i=t[r],u=n(i);c.e$.call(e,u)?e[u].push(i):e[u]=[i]}return e}},U=function(n){return function(t){return 1===t.length?t:t.slice().sort(n.compare)}},L=function(n,t){return N(n,function(){return t})},N=function(n,t){return function(e){return h(n,e)?c.YP:c.G(_(n,t(e[n]),e))}},j=function(n,t,e){for(var r=[e(n[0],t[0])],i=Math.min(n.length,t.length),u=1;u<i;u++)r[u]=e(n[u],t[u]);return r},q=function(n){for(var t=[n[0][0]],e=[n[0][1]],r=1;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},G=function(n){return function(t){for(var e=[n,t[0]],r=1;r<t.length;r++)e.push(n,t[r]);return e}},K=function(n){return function(t){var e=n2(t);return s(e)?(0,o.pipe)(e,G(n),v(n0(t))):t}},Y=function(n){return function(t){for(var e=c.r1(n(0,n0(t))),r=1;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},B=function(n){return function(t){for(var e=n(t),r=e[0],i=e[1],u=[r],o=i;s(o);){var a=n(o),c=a[0],f=a[1];u.push(c),o=f}return u}},V=function(n){return function(t){var e=Math.max(1,n);return e>=t.length?[t,d]:[(0,o.pipe)(t.slice(1,e),v(n0(t))),t.slice(e)]}},H=function(n){return B(V(n))},z=function(n,t){return(0,o.pipe)(n,nm(t))},X=function(n,t){return(0,o.pipe)(n,nv(t))},J=function(n,t){return(0,o.pipe)(n,nl(t))},$=function(n,t){return(0,o.pipe)(n,nd(t))},Z=function(n,t,e){return(0,o.pipe)(n,ng(t,e))},Q=function(n){var t=ny(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nn=function(n,t,e){return(0,o.pipe)(n,nb(t,e))},nt=function(n){var t=nS(n);return function(n,e){return(0,o.pipe)(n,t(e))}},ne=function(n,t){return(0,o.pipe)(n,nf(t))},nr=function(n,t,e){return(0,o.pipe)(n,n_(t,e))},ni=function(n){var t=nI(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nu=function(n,t,e){return(0,o.pipe)(n,nR(t,e))},no=function(n){var t=nx(n);return function(n,e){return(0,o.pipe)(n,t(e))}},na=c.ri,nc=function(n){return function(t){return(0,o.pipe)(t,W(n()))}},nf=nc,nl=function(n){return np(function(t){return(0,o.pipe)(n,nm(t))})},np=(0,o.dual)(2,function(n,t){return(0,o.pipe)(n,Y(function(n,e){return t(e,n)}))}),nd=function(n){return function(t){for(var e=n2(t),r=[n(t)];s(e);)r.push(n(e)),e=n2(e);return r}},ns=nd(o.identity),nh=np(o.identity),nm=function(n){return nv(function(t,e){return n(e)})},nv=function(n){return function(t){for(var e=[n(0,n0(t))],r=1;r<t.length;r++)e.push(n(r,t[r]));return e}},ng=function(n,t){return n_(n,function(n,e,r){return t(e,r)})},ny=function(n){return function(t){return function(e){return e.slice(1).reduce(function(e,r){return n.concat(e,t(r))},t(e[0]))}}},nb=function(n,t){return nR(n,function(n,e,r){return t(e,r)})},n_=function(n,t){return function(e){return e.reduce(function(n,e,r){return t(r,n,e)},n)}},nI=function(n){return function(t){return function(e){return e.slice(1).reduce(function(e,r,i){return n.concat(e,t(i+1,r))},t(0,e[0]))}}},nR=function(n,t){return function(e){return e.reduceRight(function(n,e,r){return t(r,e,n)},n)}},nS=function(n){var t=nx(n);return function(n){return t(function(t,e){return n(e)})}},nT=function(n){return nx(n)(o.SK)},nx=function(n){return function(t){return function(e){for(var r=n.map(t(0,n0(e)),na),i=1;i<e.length;i++)r=n.ap(n.map(r,function(n){return function(t){return(0,o.pipe)(n,y(t))}}),t(i,e[i]));return r}}},nw=c.YM,nM="ReadonlyNonEmptyArray",nO=function(n){return{show:function(t){return"[".concat(t.map(n.show).join(", "),"]")}}},nE=function(){return{concat:F}},nC=function(n){return(0,u.fromEquals)(function(t,e){return t.length===e.length&&t.every(function(t,r){return n.equals(t,e[r])})})},nk=function(n){var t=S(n);return{concat:function(n,e){return t(e)(n)}}},nW={URI:nM,map:z},nF=(0,a.flap)(nW),nP={URI:nM,of:na},nD={URI:nM,map:z,mapWithIndex:X},nA={URI:nM,map:z,ap:J},nU=(0,r.apFirst)(nA),nL=(0,r.apSecond)(nA),nN={URI:nM,map:z,ap:J,of:na},nj={URI:nM,map:z,ap:J,chain:np},nq=(0,i.chainFirst)(nj),nG={URI:nM,map:z,ap:J,of:na,chain:np},nK={URI:nM,reduce:Z,foldMap:Q,reduceRight:nn},nY={URI:nM,reduce:Z,foldMap:Q,reduceRight:nn,reduceWithIndex:nr,foldMapWithIndex:ni,reduceRightWithIndex:nu},nB={URI:nM,map:z,reduce:Z,foldMap:Q,reduceRight:nn,traverse:nt,sequence:nT},nV={URI:nM,map:z,mapWithIndex:X,reduce:Z,foldMap:Q,reduceRight:nn,traverse:nt,sequence:nT,reduceWithIndex:nr,foldMapWithIndex:ni,reduceRightWithIndex:nu,traverseWithIndex:no},nH={URI:nM,map:z,alt:ne},nz={URI:nM,map:z,extend:$,extract:nw},nX=na(c.F4),nJ=(0,a.bindTo)(nW),n$=(0,a.let)(nW),nZ=(0,i.bind)(nj),nQ=(0,r.apS)(nA),n0=nw,n2=c.Gb,n1=function(n){return n[n.length-1]},n8=function(n){return n.slice(0,-1)},n5=function(n){var t=l.min(n);return function(n){return n.reduce(t.concat)}},n3=function(n){var t=l.max(n);return function(n){return n.reduce(t.concat)}},n7=function(n){return function(t){return t.reduce(n.concat)}},n4=function(n){return function(t){return n(n0(t),n2(t))}},n9=function(n){return function(t){return n(n8(t),n1(t))}},n6=function(n){return function(t){return p([n(n0(t))],n2(t),!0)}},tn=function(n){return n6(function(){return n})},tt=function(n){return function(t){return(0,o.pipe)(n8(t),y(n(n1(t))))}},te=function(n){return tt(function(){return n})},tr=function(n){var t=n7(n);return function(n){return(0,o.flow)(K(n),t)}},ti=np;function tu(n){var t=U(n),e=D(n);return function(n){return s(n)?e(t(n)):d}}function to(n){return ta(function(t,e){return n(e)})}var ta=function(n){return function(t){return x(t.filter(function(t,e){return n(e,t)}))}},tc=E,tf=C;function tl(n,t){return void 0===t?v(n):(0,o.pipe)(t,v(n))}var tp=function(n,t){return(0,o.pipe)(n,F([t]))},td=function(n,t){return function(e){return n<0||n>e.length?c.YP:c.G(b(n,t,e))}},ts=G,th=n7,tm={URI:nM,of:na,map:z,mapWithIndex:X,ap:J,chain:np,extend:$,extract:nw,reduce:Z,foldMap:Q,reduceRight:nn,traverse:nt,sequence:nT,reduceWithIndex:nr,foldMapWithIndex:ni,reduceRightWithIndex:nu,traverseWithIndex:no,alt:ne}},97054:function(n,t,e){e.r(t),e.d(t,{Compactable:function(){return nP},Filterable:function(){return nD},FilterableWithIndex:function(){return nA},Foldable:function(){return nY},FoldableWithIndex:function(){return nB},Functor:function(){return nE},FunctorWithIndex:function(){return nk},Traversable:function(){return nV},TraversableWithIndex:function(){return nH},URI:function(){return nw},Witherable:function(){return nJ},_filter:function(){return nr},_filterMap:function(){return ni},_filterMapWithIndex:function(){return nd},_filterWithIndex:function(){return ns},_foldMap:function(){return nt},_foldMapWithIndex:function(){return nc},_map:function(){return Z},_mapWithIndex:function(){return Q},_partition:function(){return nu},_partitionMap:function(){return no},_partitionMapWithIndex:function(){return nl},_partitionWithIndex:function(){return np},_reduce:function(){return nn},_reduceRight:function(){return ne},_reduceRightWithIndex:function(){return nf},_reduceWithIndex:function(){return na},_sequence:function(){return nm},_traverse:function(){return nh},collect:function(){return v},compact:function(){return nT},deleteAt:function(){return I},difference:function(){return $},elem:function(){return function n(t){return function(e,r){if(void 0===r){var i=n(t);return function(n){return i(e,n)}}for(var u in r)if(t.equals(r[u],e))return!0;return!1}}},empty:function(){return M},every:function(){return H},filter:function(){return ng},filterMap:function(){return ny},filterMapWithIndex:function(){return q},filterWithIndex:function(){return G},flap:function(){return nC},foldMap:function(){return nR},foldMapWithIndex:function(){return k},fromEntries:function(){return V},fromFoldable:function(){return K},fromFoldableMap:function(){return Y},fromRecord:function(){return l},getDifferenceMagma:function(){return nK},getEq:function(){return nM},getFoldable:function(){return nW},getFoldableWithIndex:function(){return nF},getIntersectionSemigroup:function(){return nG},getMonoid:function(){return nO},getShow:function(){return function n(t){return"compare"in t?function(n){return{show:function(e){var r=v(t)(function(t,e){return"".concat(JSON.stringify(t),": ").concat(n.show(e))})(e).join(", ");return""===r?"{}":"{ ".concat(r," }")}}}:n(c.Ord)(t)}},getTraversable:function(){return nU},getTraversableWithIndex:function(){return nL},getUnionMonoid:function(){return nq},getUnionSemigroup:function(){return nj},getWitherable:function(){return nN},has:function(){return _},hasOwnProperty:function(){return nZ},insertAt:function(){return n$},intersection:function(){return J},isEmpty:function(){return s},isSubrecord:function(){return x},keys:function(){return m},lookup:function(){return w},map:function(){return E},mapWithIndex:function(){return O},modifyAt:function(){return S},partition:function(){return nb},partitionMap:function(){return n_},partitionMapWithIndex:function(){return N},partitionWithIndex:function(){return j},pop:function(){return T},readonlyRecord:function(){return nQ},reduce:function(){return nI},reduceRight:function(){return nS},reduceRightWithIndex:function(){return W},reduceWithIndex:function(){return C},separate:function(){return nx},sequence:function(){return A},singleton:function(){return F},size:function(){return d},some:function(){return z},toEntries:function(){return B},toReadonlyArray:function(){return g},toRecord:function(){return p},toUnfoldable:function(){return y},traverse:function(){return D},traverseWithIndex:function(){return P},union:function(){return X},updateAt:function(){return R},upsertAt:function(){return b},wilt:function(){return L},wither:function(){return U}});var r=e(65191),i=e(42275),u=e(67560),o=e(97963),a=e(34219),c=e(57029),f=e(76511),l=function(n){return Object.assign({},n)},p=function(n){return Object.assign({},n)},d=function(n){return Object.keys(n).length},s=function(n){for(var t in n)if(o.e$.call(n,t))return!1;return!0},h=function(n){return function(t){return Object.keys(t).sort(n.compare)}},m=h(c.Ord);function v(n){if("function"==typeof n)return v(c.Ord)(n);var t=h(n);return function(n){return function(e){for(var r=[],i=0,u=t(e);i<u.length;i++){var o=u[i];r.push(n(o,e[o]))}return r}}}var g=v(c.Ord)(function(n,t){return[n,t]});function y(n){return function(t){var e=g(t),r=e.length;return n.unfold(0,function(n){return n<r?o.G([e[n],n+1]):o.YP})}}var b=function(n,t){return function(e){if(o.e$.call(e,n)&&e[n]===t)return e;var r=Object.assign({},e);return r[n]=t,r}},_=function(n,t){return o.e$.call(t,n)};function I(n){return function(t){if(!o.e$.call(t,n))return t;var e=Object.assign({},t);return delete e[n],e}}var R=function(n,t){return function(e){if(!_(n,e))return o.YP;if(e[n]===t)return o.G(e);var r=Object.assign({},e);return r[n]=t,o.G(r)}},S=function(n,t){return function(e){if(!_(n,e))return o.YP;var r=t(e[n]);if(r===e[n])return o.G(e);var i=Object.assign({},e);return i[n]=r,o.G(i)}};function T(n){var t=I(n);return function(e){var r=w(n,e);return o.Wi(r)?o.YP:o.G([r.value,t(e)])}}function x(n){return function(t,e){if(void 0===e){var r=x(n);return function(n){return r(n,t)}}for(var i in t)if(!o.e$.call(e,i)||!n.equals(t[i],e[i]))return!1;return!0}}function w(n,t){return void 0===t?function(t){return w(n,t)}:o.e$.call(t,n)?o.G(t[n]):o.YP}var M={};function O(n){return function(t){var e={};for(var r in t)o.e$.call(t,r)&&(e[r]=n(r,t[r]));return e}}function E(n){return O(function(t,e){return n(e)})}function C(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(2===n.length)return C(c.Ord).apply(void 0,n);var e=h(n[0]);return function(n,t){return function(r){for(var i=n,u=e(r),o=u.length,a=0;a<o;a++){var c=u[a];i=t(c,i,r[c])}return i}}}function k(n){if("compare"in n){var t=h(n);return function(n){return function(e){return function(r){for(var i=n.empty,u=t(r),o=u.length,a=0;a<o;a++){var c=u[a];i=n.concat(i,e(c,r[c]))}return i}}}}return k(c.Ord)(n)}function W(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(2===n.length)return W(c.Ord).apply(void 0,n);var e=h(n[0]);return function(n,t){return function(r){for(var i=n,u=e(r),o=u.length,a=o-1;a>=0;a--){var c=u[a];i=t(c,r[c],i)}return i}}}var F=function(n,t){var e;return(e={})[n]=t,e};function P(n){var t=nv(c.Ord)(n);return function(n){return function(e){return t(e,n)}}}function D(n){var t=nh(c.Ord)(n);return function(n){return function(e){return t(e,n)}}}function A(n){return nm(c.Ord)(n)}var U=function(n){var t=D(n);return function(e){return function(r){return n.map((0,i.pipe)(r,t(e)),nT)}}},L=function(n){var t=D(n);return function(e){return function(r){return n.map((0,i.pipe)(r,t(e)),nx)}}};function N(n){return function(t){var e={},r={};for(var i in t)if(o.e$.call(t,i)){var u=n(i,t[i]);switch(u._tag){case"Left":e[i]=u.left;break;case"Right":r[i]=u.right}}return(0,a.separated)(e,r)}}function j(n){return function(t){var e={},r={};for(var i in t)if(o.e$.call(t,i)){var u=t[i];n(i,u)?r[i]=u:e[i]=u}return(0,a.separated)(e,r)}}function q(n){return function(t){var e={};for(var r in t)if(o.e$.call(t,r)){var i=n(r,t[r]);o.pC(i)&&(e[r]=i.value)}return e}}function G(n){return function(t){var e={},r=!1;for(var i in t)if(o.e$.call(t,i)){var u=t[i];n(i,u)?e[i]=u:r=!0}return r?e:t}}function K(n,t){var e=Y(n,t);return function(n){return e(n,i.identity)}}function Y(n,t){return function(e,r){return t.reduce(e,{},function(t,e){var i=r(e),u=i[0],a=i[1];return t[u]=o.e$.call(t,u)?n.concat(t[u],a):a,t})}}var B=g,V=function(n){for(var t={},e=0;e<n.length;e++){var r=n[e];t[r[0]]=r[1]}return t};function H(n){return function(t){for(var e in t)if(!n(t[e]))return!1;return!0}}function z(n){return function(t){for(var e in t)if(n(t[e]))return!0;return!1}}var X=function(n){return function(t){return function(e){if(s(e))return t;if(s(t))return e;var r={};for(var i in e)_(i,t)?r[i]=n.concat(e[i],t[i]):r[i]=e[i];for(var i in t)_(i,r)||(r[i]=t[i]);return r}}},J=function(n){return function(t){return function(e){if(s(e)||s(t))return M;var r={};for(var i in e)_(i,t)&&(r[i]=n.concat(e[i],t[i]));return r}}},$=function(n){return function(t){if(s(t))return n;if(s(n))return t;var e={};for(var r in t)_(r,n)||(e[r]=t[r]);for(var r in n)_(r,t)||(e[r]=n[r]);return e}},Z=function(n,t){return(0,i.pipe)(n,E(t))},Q=function(n,t){return(0,i.pipe)(n,O(t))},nn=function(n){var t=nI(n);return function(n,e,r){return(0,i.pipe)(n,t(e,r))}},nt=function(n){return function(t){var e=nR(n)(t);return function(n,t){return(0,i.pipe)(n,e(t))}}},ne=function(n){var t=nS(n);return function(n,e,r){return(0,i.pipe)(n,t(e,r))}},nr=function(n,t){return(0,i.pipe)(n,ng(t))},ni=function(n,t){return(0,i.pipe)(n,ny(t))},nu=function(n,t){return(0,i.pipe)(n,nb(t))},no=function(n,t){return(0,i.pipe)(n,n_(t))},na=function(n){var t=C(n);return function(n,e,r){return(0,i.pipe)(n,t(e,r))}},nc=function(n){var t=k(n);return function(n){var e=t(n);return function(n,t){return(0,i.pipe)(n,e(t))}}},nf=function(n){var t=W(n);return function(n,e,r){return(0,i.pipe)(n,t(e,r))}},nl=function(n,t){return(0,i.pipe)(n,N(t))},np=function(n,t){return(0,i.pipe)(n,j(t))},nd=function(n,t){return(0,i.pipe)(n,q(t))},ns=function(n,t){return(0,i.pipe)(n,G(t))},nh=function(n){var t=nv(n);return function(n){var e=t(n);return function(n,t){return e(n,(0,i.flow)(i.SK,t))}}},nm=function(n){var t=nh(n);return function(n){var e=t(n);return function(n){return e(n,i.identity)}}},nv=function(n){return function(t){var e=h(n);return function(n,r){var i=e(n);if(0===i.length)return t.of(M);for(var u=t.of({}),o=function(e){u=t.ap(t.map(u,function(n){return function(t){var r;return Object.assign({},n,((r={})[e]=t,r))}}),r(e,n[e]))},a=0;a<i.length;a++)o(i[a]);return u}}},ng=function(n){return G(function(t,e){return n(e)})},ny=function(n){return q(function(t,e){return n(e)})},nb=function(n){return j(function(t,e){return n(e)})},n_=function(n){return N(function(t,e){return n(e)})};function nI(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(1===n.length){var e=C(n[0]);return function(n,t){return e(n,function(n,e,r){return t(e,r)})}}return nI(c.Ord).apply(void 0,n)}function nR(n){if("compare"in n){var t=k(n);return function(n){var e=t(n);return function(n){return e(function(t,e){return n(e)})}}}return nR(c.Ord)(n)}function nS(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(1===n.length){var e=W(n[0]);return function(n,t){return e(n,function(n,e,r){return t(e,r)})}}return nS(c.Ord).apply(void 0,n)}var nT=function(n){var t={};for(var e in n)if(o.e$.call(n,e)){var r=n[e];o.pC(r)&&(t[e]=r.value)}return t},nx=function(n){var t={},e={};for(var r in n)if(o.e$.call(n,r)){var i=n[r];o.nM(i)?t[r]=i.left:e[r]=i.right}return(0,a.separated)(t,e)},nw="ReadonlyRecord";function nM(n){var t=x(n);return(0,r.fromEquals)(function(n,e){return t(n)(e)&&t(e)(n)})}function nO(n){return{concat:function(t,e){if(s(t))return e;if(s(e))return t;var r=Object.assign({},t);for(var i in e)o.e$.call(e,i)&&(r[i]=o.e$.call(t,i)?n.concat(t[i],e[i]):e[i]);return r},empty:M}}var nE={URI:nw,map:Z},nC=(0,u.flap)(nE),nk={URI:nw,map:Z,mapWithIndex:Q},nW=function(n){return{URI:nw,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n)}},nF=function(n){return{URI:nw,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n),reduceWithIndex:na(n),foldMapWithIndex:nc(n),reduceRightWithIndex:nf(n)}},nP={URI:nw,compact:nT,separate:nx},nD={URI:nw,map:Z,compact:nT,separate:nx,filter:nr,filterMap:ni,partition:nu,partitionMap:no},nA={URI:nw,map:Z,mapWithIndex:Q,compact:nT,separate:nx,filter:nr,filterMap:ni,partition:nu,partitionMap:no,filterMapWithIndex:nd,filterWithIndex:ns,partitionMapWithIndex:nl,partitionWithIndex:np},nU=function(n){return{URI:nw,map:Z,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n),traverse:nh(n),sequence:nm(n)}},nL=function(n){return{URI:nw,map:Z,mapWithIndex:Q,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n),reduceWithIndex:na(n),foldMapWithIndex:nc(n),reduceRightWithIndex:nf(n),traverse:nh(n),sequence:nm(n),traverseWithIndex:nv(n)}},nN=function(n){var t=nU(n);return{URI:nw,map:Z,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n),traverse:t.traverse,sequence:t.sequence,compact:nT,separate:nx,filter:nr,filterMap:ni,partition:nu,partitionMap:no,wither:(0,f.witherDefault)(t,nP),wilt:(0,f.wiltDefault)(t,nP)}},nj=function(n){var t=X(n);return{concat:function(n,e){return t(e)(n)}}},nq=function(n){return{concat:nj(n).concat,empty:M}},nG=function(n){var t=J(n);return{concat:function(n,e){return t(e)(n)}}},nK=function(){return{concat:function(n,t){return $(t)(n)}}},nY={URI:nw,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord)},nB={URI:nw,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord),reduceWithIndex:na(c.Ord),foldMapWithIndex:nc(c.Ord),reduceRightWithIndex:nf(c.Ord)},nV={URI:nw,map:Z,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord),traverse:nh(c.Ord),sequence:A},nH={URI:nw,map:Z,mapWithIndex:Q,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord),reduceWithIndex:na(c.Ord),foldMapWithIndex:nc(c.Ord),reduceRightWithIndex:nf(c.Ord),traverse:nh(c.Ord),sequence:A,traverseWithIndex:nv(c.Ord)},nz=(0,f.witherDefault)(nV,nP),nX=(0,f.wiltDefault)(nV,nP),nJ={URI:nw,map:Z,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord),traverse:nh(c.Ord),sequence:A,compact:nT,separate:nx,filter:nr,filterMap:ni,partition:nu,partitionMap:no,wither:nz,wilt:nX},n$=b;function nZ(n,t){return o.e$.call(void 0===t?this:t,n)}var nQ={URI:nw,map:Z,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord),traverse:nh(c.Ord),sequence:A,compact:nT,separate:nx,filter:nr,filterMap:ni,partition:nu,partitionMap:no,mapWithIndex:Q,reduceWithIndex:na(c.Ord),foldMapWithIndex:nc(c.Ord),reduceRightWithIndex:nf(c.Ord),filterMapWithIndex:nd,filterWithIndex:ns,partitionMapWithIndex:nl,partitionWithIndex:np,traverseWithIndex:nv(c.Ord),wither:nz,wilt:nX}},99156:function(n,t,e){e.r(t),e.d(t,{URI:function(){return A},chain:function(){return d},compact:function(){return x},difference:function(){return y},elem:function(){return P},empty:function(){return O},every:function(){return W},filter:function(){return s},filterMap:function(){return M},foldMap:function(){return _},fromArray:function(){return K},fromReadonlyArray:function(){return f},fromSet:function(){return a},getDifferenceMagma:function(){return G},getEq:function(){return L},getIntersectionSemigroup:function(){return q},getShow:function(){return U},getUnionMonoid:function(){return j},getUnionSemigroup:function(){return N},insert:function(){return R},intersection:function(){return v},isEmpty:function(){return E},isSubset:function(){return F},map:function(){return p},partition:function(){return h},partitionMap:function(){return g},reduce:function(){return b},reduceRight:function(){return I},remove:function(){return S},separate:function(){return w},singleton:function(){return c},size:function(){return C},some:function(){return k},toReadonlyArray:function(){return D},toSet:function(){return l},toggle:function(){return T},union:function(){return m}});var r=e(65191),i=e(42275),u=e(88491),o=e(34219),a=function(n){return new Set(n)},c=function(n){return new Set([n])},f=function(n){return function(t){for(var e=t.length,r=new Set,i=P(n),u=0;u<e;u++){var o=t[u];i(o,r)||r.add(o)}return r}};function l(n){return new Set(n)}function p(n){var t=P(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var i=n(e);t(i,r)||r.add(i)}),r}}}function d(n){var t=P(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){n(e).forEach(function(n){t(n,r)||r.add(n)})}),r}}}function s(n){return function(t){for(var e,r=t.values(),i=new Set;!(e=r.next()).done;){var u=e.value;n(u)&&i.add(u)}return i}}function h(n){return function(t){for(var e,r=t.values(),i=new Set,u=new Set;!(e=r.next()).done;){var a=e.value;n(a)?i.add(a):u.add(a)}return(0,o.separated)(u,i)}}function m(n){var t=P(n);return function(e,r){if(void 0===r){var i=m(n);return function(n){return i(e,n)}}if(E(e))return r;if(E(r))return e;var u=new Set(e);return r.forEach(function(n){t(n,u)||u.add(n)}),u}}function v(n){var t=P(n);return function(e,r){if(void 0===r){var i=v(n);return function(n){return i(n,e)}}if(E(e)||E(r))return O;var u=new Set;return e.forEach(function(n){t(n,r)&&u.add(n)}),u}}function g(n,t){return function(e){return function(r){for(var i,u=r.values(),a=new Set,c=new Set,f=P(n),l=P(t);!(i=u.next()).done;){var p=e(i.value);switch(p._tag){case"Left":f(p.left,a)||a.add(p.left);break;case"Right":l(p.right,c)||c.add(p.right)}}return(0,o.separated)(a,c)}}}function y(n){var t=P(n);return function(e,r){if(void 0===r){var i=y(n);return function(n){return i(n,e)}}return s(function(n){return!t(n,r)})(e)}}function b(n){var t=D(n);return function(n,e){return function(r){return t(r).reduce(e,n)}}}function _(n,t){var e=D(n);return function(n){return function(r){return e(r).reduce(function(e,r){return t.concat(e,n(r))},t.empty)}}}var I=function(n){var t=D(n);return function(n,e){return function(r){return t(r).reduceRight(function(n,t){return e(t,n)},n)}}};function R(n){var t=P(n);return function(n){return function(e){if(t(n)(e))return e;var r=new Set(e);return r.add(n),r}}}var S=function(n){return function(t){return function(e){return s(function(e){return!n.equals(t,e)})(e)}}},T=function(n){var t=P(n),e=S(n),r=R(n);return function(n){return function(i){return(t(n,i)?e:r)(n)(i)}}},x=function(n){return M(n)(i.identity)};function w(n,t){return function(e){var r=P(n),i=P(t),u=new Set,a=new Set;return e.forEach(function(n){switch(n._tag){case"Left":r(n.left,u)||u.add(n.left);break;case"Right":i(n.right,a)||a.add(n.right)}}),(0,o.separated)(u,a)}}function M(n){var t=P(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var i=n(e);"Some"!==i._tag||t(i.value,r)||r.add(i.value)}),r}}}var O=new Set,E=function(n){return 0===n.size},C=function(n){return n.size},k=function(n){return function(t){for(var e,r=t.values(),i=!1;!i&&!(e=r.next()).done;)i=n(e.value);return i}};function W(n){return(0,u.not)(k((0,u.not)(n)))}function F(n){var t=P(n);return function(e,r){if(void 0===r){var i=F(n);return function(n){return i(n,e)}}return W(function(n){return t(n,r)})(e)}}function P(n){return function(t,e){if(void 0===e){var r,i=P(n);return function(n){return i(t,n)}}for(var u=e.values(),o=!1;!o&&!(r=u.next()).done;)o=n.equals(t,r.value);return o}}var D=function(n){return function(t){var e=[];return t.forEach(function(n){return e.push(n)}),e.sort(n.compare)}},A="ReadonlySet";function U(n){return{show:function(t){var e=[];return t.forEach(function(t){e.push(n.show(t))}),"new Set([".concat(e.sort().join(", "),"])")}}}function L(n){var t=F(n);return(0,r.fromEquals)(function(n,e){return t(n,e)&&t(e,n)})}var N=function(n){return{concat:m(n)}},j=function(n){return{concat:N(n).concat,empty:O}},q=function(n){return{concat:v(n)}},G=function(n){return{concat:y(n)}},K=f},3291:function(n,t,e){e.r(t),e.d(t,{concatAll:function(){return v},constant:function(){return f},first:function(){return h},fold:function(){return M},getDualSemigroup:function(){return S},getFirstSemigroup:function(){return _},getFunctionSemigroup:function(){return C},getIntercalateSemigroup:function(){return w},getJoinSemigroup:function(){return T},getLastSemigroup:function(){return b},getMeetSemigroup:function(){return x},getObjectSemigroup:function(){return y},getStructSemigroup:function(){return R},getTupleSemigroup:function(){return I},intercalate:function(){return s},last:function(){return m},max:function(){return c},min:function(){return a},reverse:function(){return l},semigroupAll:function(){return O},semigroupAny:function(){return E},semigroupProduct:function(){return F},semigroupString:function(){return k},semigroupSum:function(){return W},semigroupVoid:function(){return g},struct:function(){return p},tuple:function(){return d}});var r=e(42275),i=e(97963),u=e(76113),o=e(5586),a=function(n){return{concat:o.min(n)}},c=function(n){return{concat:o.max(n)}},f=function(n){return{concat:function(){return n}}},l=u.reverse,p=function(n){return{concat:function(t,e){var r={};for(var u in n)i.e$.call(n,u)&&(r[u]=n[u].concat(t[u],e[u]));return r}}},d=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{concat:function(t,e){return n.map(function(n,r){return n.concat(t[r],e[r])})}}},s=function(n){return function(t){return{concat:function(e,r){return t.concat(e,t.concat(n,r))}}}},h=function(){return{concat:r.identity}},m=function(){return{concat:function(n,t){return t}}},v=u.concatAll,g=f(void 0),y=function(){return{concat:function(n,t){return Object.assign({},n,t)}}},b=m,_=h,I=d,R=p,S=l,T=c,x=a,w=s;function M(n){var t=v(n);return function(n,e){return void 0===e?t(n):t(n)(e)}}var O={concat:function(n,t){return n&&t}},E={concat:function(n,t){return n||t}},C=r.getSemigroup,k={concat:function(n,t){return n+t}},W={concat:function(n,t){return n+t}},F={concat:function(n,t){return n*t}}},34219:function(n,t,e){e.r(t),e.d(t,{Bifunctor:function(){return l},Functor:function(){return p},URI:function(){return f},bimap:function(){return c},flap:function(){return d},left:function(){return s},map:function(){return o},mapLeft:function(){return a},right:function(){return h},separated:function(){return u}});var r=e(42275),i=e(67560),u=function(n,t){return{left:n,right:t}},o=function(n){return function(t){return u(s(t),n(h(t)))}},a=function(n){return function(t){return u(n(s(t)),h(t))}},c=function(n,t){return function(e){return u(n(s(e)),t(h(e)))}},f="Separated",l={URI:f,mapLeft:function(n,t){return(0,r.pipe)(n,a(t))},bimap:function(n,t,e){return(0,r.pipe)(n,c(t,e))}},p={URI:f,map:function(n,t){return(0,r.pipe)(n,o(t))}},d=(0,i.flap)(p),s=function(n){return n.left},h=function(n){return n.right}},1214:function(n,t,e){e.r(t),e.d(t,{chain:function(){return f},compact:function(){return O},difference:function(){return m},elem:function(){return U},empty:function(){return k},every:function(){return D},filter:function(){return l},filterMap:function(){return C},foldMap:function(){return I},fromArray:function(){return M},getDifferenceMagma:function(){return b},getEq:function(){return a},getIntersectionSemigroup:function(){return y},getShow:function(){return o},getUnionMonoid:function(){return g},getUnionSemigroup:function(){return v},insert:function(){return T},intersection:function(){return s},isEmpty:function(){return W},isSubset:function(){return A},map:function(){return c},partition:function(){return p},partitionMap:function(){return h},reduce:function(){return _},reduceRight:function(){return R},remove:function(){return x},separate:function(){return E},singleton:function(){return S},size:function(){return F},some:function(){return P},subset:function(){return N},toArray:function(){return L},toggle:function(){return w},union:function(){return d}});var r=e(42275),i=e(99156),u=e(34219),o=i.getShow,a=i.getEq;function c(n){var t=U(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var i=n(e);t(i,r)||r.add(i)}),r}}}function f(n){var t=U(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){n(e).forEach(function(n){t(n,r)||r.add(n)})}),r}}}function l(n){return function(t){for(var e,r=t.values(),i=new Set;!(e=r.next()).done;){var u=e.value;n(u)&&i.add(u)}return i}}function p(n){return function(t){for(var e,r=t.values(),i=new Set,o=new Set;!(e=r.next()).done;){var a=e.value;n(a)?i.add(a):o.add(a)}return(0,u.separated)(o,i)}}function d(n){var t=U(n);return function(e,r){if(void 0===r){var i=d(n);return function(n){return i(e,n)}}if(W(e))return r;if(W(r))return e;var u=new Set(e);return r.forEach(function(n){t(n,u)||u.add(n)}),u}}function s(n){var t=U(n);return function(e,r){if(void 0===r){var i=s(n);return function(n){return i(n,e)}}if(W(e)||W(r))return new Set;var u=new Set;return e.forEach(function(n){t(n,r)&&u.add(n)}),u}}function h(n,t){return function(e){return function(r){for(var i,o=r.values(),a=new Set,c=new Set,f=U(n),l=U(t);!(i=o.next()).done;){var p=e(i.value);switch(p._tag){case"Left":f(p.left,a)||a.add(p.left);break;case"Right":l(p.right,c)||c.add(p.right)}}return(0,u.separated)(a,c)}}}function m(n){var t=U(n);return function(e,r){if(void 0===r){var i=m(n);return function(n){return i(n,e)}}return l(function(n){return!t(n,r)})(e)}}var v=function(n){return{concat:d(n)}},g=function(n){return{concat:v(n).concat,empty:new Set}},y=function(n){return{concat:s(n)}},b=function(n){return{concat:m(n)}},_=i.reduce,I=i.foldMap,R=i.reduceRight,S=function(n){return new Set([n])};function T(n){var t=U(n);return function(n){return function(e){if(t(n)(e))return e;var r=new Set(e);return r.add(n),r}}}var x=function(n){return function(t){return function(e){return l(function(e){return!n.equals(t,e)})(e)}}},w=function(n){var t=U(n),e=x(n),r=T(n);return function(n){return function(i){return(t(n,i)?e:r)(n)(i)}}},M=function(n){return function(t){for(var e=t.length,r=new Set,i=U(n),u=0;u<e;u++){var o=t[u];i(o,r)||r.add(o)}return r}},O=function(n){return C(n)(r.identity)};function E(n,t){return function(e){var r=U(n),i=U(t),o=new Set,a=new Set;return e.forEach(function(n){switch(n._tag){case"Left":r(n.left,o)||o.add(n.left);break;case"Right":i(n.right,a)||a.add(n.right)}}),(0,u.separated)(o,a)}}function C(n){var t=U(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var i=n(e);"Some"!==i._tag||t(i.value,r)||r.add(i.value)}),r}}}var k=new Set,W=function(n){return 0===n.size},F=function(n){return n.size},P=i.some,D=i.every,A=i.isSubset,U=i.elem,L=function(n){return function(t){var e=[];return t.forEach(function(n){return e.push(n)}),e.sort(n.compare)}},N=i.isSubset},76511:function(n,t,e){e.r(t),e.d(t,{filterE:function(){return o},wiltDefault:function(){return i},witherDefault:function(){return u}});var r=e(97963);function i(n,t){return function(e){var r=n.traverse(e);return function(n,i){return e.map(r(n,i),t.separate)}}}function u(n,t){return function(e){var r=n.traverse(e);return function(n,i){return e.map(r(n,i),t.compact)}}}function o(n){return function(t){var e=n.wither(t);return function(n){return function(i){return e(i,function(e){return t.map(n(e),function(n){return n?r.G(e):r.YP})})}}}}},28957:function(n,t,e){function r(n,t){return function(e){return e?t.of(void 0):n.zero()}}e.r(t),e.d(t,{guard:function(){return r}})},42275:function(n,t,e){e.r(t),e.d(t,{SK:function(){return O},absurd:function(){return S},apply:function(){return f},constFalse:function(){return h},constNull:function(){return m},constTrue:function(){return s},constUndefined:function(){return v},constVoid:function(){return g},constant:function(){return d},decrement:function(){return R},dual:function(){return k},flip:function(){return y},flow:function(){return b},getBooleanAlgebra:function(){return i},getEndomorphismMonoid:function(){return C},getMonoid:function(){return o},getRing:function(){return c},getSemigroup:function(){return u},getSemiring:function(){return a},hole:function(){return M},identity:function(){return l},increment:function(){return I},not:function(){return E},pipe:function(){return w},tuple:function(){return _},tupled:function(){return T},unsafeCoerce:function(){return p},untupled:function(){return x}});var r=function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},i=function(n){return function(){return{meet:function(t,e){return function(r){return n.meet(t(r),e(r))}},join:function(t,e){return function(r){return n.join(t(r),e(r))}},zero:function(){return n.zero},one:function(){return n.one},implies:function(t,e){return function(r){return n.implies(t(r),e(r))}},not:function(t){return function(e){return n.not(t(e))}}}}},u=function(n){return function(){return{concat:function(t,e){return function(r){return n.concat(t(r),e(r))}}}}},o=function(n){var t=u(n);return function(){return{concat:t().concat,empty:function(){return n.empty}}}},a=function(n){return{add:function(t,e){return function(r){return n.add(t(r),e(r))}},zero:function(){return n.zero},mul:function(t,e){return function(r){return n.mul(t(r),e(r))}},one:function(){return n.one}}},c=function(n){var t=a(n);return{add:t.add,mul:t.mul,one:t.one,zero:t.zero,sub:function(t,e){return function(r){return n.sub(t(r),e(r))}}}},f=function(n){return function(t){return t(n)}};function l(n){return n}var p=l;function d(n){return function(){return n}}var s=d(!0),h=d(!1),m=d(null),v=d(void 0),g=v;function y(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length>1?n(t[1],t[0]):function(e){return n(e)(t[0])}}}function b(n,t,e,r,i,u,o,a,c){switch(arguments.length){case 1:return n;case 2:return function(){return t(n.apply(this,arguments))};case 3:return function(){return e(t(n.apply(this,arguments)))};case 4:return function(){return r(e(t(n.apply(this,arguments))))};case 5:return function(){return i(r(e(t(n.apply(this,arguments)))))};case 6:return function(){return u(i(r(e(t(n.apply(this,arguments))))))};case 7:return function(){return o(u(i(r(e(t(n.apply(this,arguments)))))))};case 8:return function(){return a(o(u(i(r(e(t(n.apply(this,arguments))))))))};case 9:return function(){return c(a(o(u(i(r(e(t(n.apply(this,arguments)))))))))}}}function _(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n}function I(n){return n+1}function R(n){return n-1}function S(n){throw Error("Called `absurd` function which should be uncallable")}function T(n){return function(t){return n.apply(void 0,t)}}function x(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n(t)}}function w(n,t,e,r,i,u,o,a,c){switch(arguments.length){case 1:return n;case 2:return t(n);case 3:return e(t(n));case 4:return r(e(t(n)));case 5:return i(r(e(t(n))));case 6:return u(i(r(e(t(n)))));case 7:return o(u(i(r(e(t(n))))));case 8:return a(o(u(i(r(e(t(n)))))));case 9:return c(a(o(u(i(r(e(t(n))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}}var M=S,O=function(n,t){return t};function E(n){return function(t){return!n(t)}}var C=function(){return{concat:function(n,t){return b(n,t)},empty:l}},k=function(n,t){var e="number"==typeof n?function(t){return t.length>=n}:n;return function(){var n=Array.from(arguments);return e(arguments)?t.apply(this,n):function(e){return t.apply(void 0,r([e],n,!1))}}}},9554:function(n,t,e){e.r(t),e.d(t,{alt:function(){return r},alternative:function(){return i},applicative:function(){return nG},apply:function(){return nN},array:function(){return nK},bifunctor:function(){return u},boolean:function(){return o},booleanAlgebra:function(){return a},bounded:function(){return c},boundedDistributiveLattice:function(){return l},boundedJoinSemilattice:function(){return p},boundedLattice:function(){return d},boundedMeetSemilattice:function(){return s},category:function(){return h},chain:function(){return tu},chainRec:function(){return to},choice:function(){return m},comonad:function(){return v},compactable:function(){return g},console:function(){return y},const:function(){return tI},contravariant:function(){return b},date:function(){return _},distributiveLattice:function(){return f},either:function(){return tC},eitherT:function(){return I},endomorphism:function(){return t5},eq:function(){return t3},extend:function(){return R},field:function(){return S},filterable:function(){return T},filterableWithIndex:function(){return x},foldable:function(){return w},foldableWithIndex:function(){return M},fromEither:function(){return eb},fromIO:function(){return O},fromReader:function(){return C},fromState:function(){return W},fromTask:function(){return F},fromThese:function(){return P},function:function(){return n8},functor:function(){return tp},functorWithIndex:function(){return D},group:function(){return A},heytingAlgebra:function(){return U},hkt:function(){return L},identity:function(){return N},invariant:function(){return j},io:function(){return q},ioEither:function(){return G},ioOption:function(){return Y},ioRef:function(){return B},joinSemilattice:function(){return V},json:function(){return H},lattice:function(){return z},magma:function(){return fy},map:function(){return fb},meetSemilattice:function(){return X},monad:function(){return J},monadIO:function(){return $},monadTask:function(){return Z},monadThrow:function(){return Q},monoid:function(){return f_},naturalTransformation:function(){return nn},nonEmptyArray:function(){return fI},number:function(){return tR},option:function(){return td},optionT:function(){return K},ord:function(){return n6},ordering:function(){return nt},pipeable:function(){return fF},pointed:function(){return ne},predicate:function(){return t6},profunctor:function(){return nr},random:function(){return ni},reader:function(){return E},readerEither:function(){return nu},readerIO:function(){return na},readerT:function(){return no},readerTask:function(){return nf},readerTaskEither:function(){return np},readonlyArray:function(){return _b},readonlyMap:function(){return __},readonlyNonEmptyArray:function(){return _I},readonlyRecord:function(){return _R},readonlySet:function(){return _S},readonlyTuple:function(){return nd},record:function(){return ns},refinement:function(){return nh},ring:function(){return nm},semigroup:function(){return It},semigroupoid:function(){return nv},semiring:function(){return ng},separated:function(){return ts},set:function(){return RZ},show:function(){return ny},state:function(){return k},stateReaderTaskEither:function(){return n_},stateT:function(){return nb},store:function(){return nI},string:function(){return Ie},strong:function(){return nR},struct:function(){return nS},task:function(){return nc},taskEither:function(){return nl},taskOption:function(){return nT},taskThese:function(){return nM},these:function(){return nx},theseT:function(){return nw},traced:function(){return nO},traversable:function(){return nE},traversableWithIndex:function(){return nC},tree:function(){return nk},tuple:function(){return nW},unfoldable:function(){return nF},validationT:function(){return nP},void:function(){return nD},witherable:function(){return Ir},writer:function(){return nA},writerT:function(){return nU},zero:function(){return a8}});var r={};e.r(r),e.d(r,{altAll:function(){return nL}});var i={};e.r(i),e.d(i,{altAll:function(){return nj},getAlternativeMonoid:function(){return nq}});var u={};e.r(u);var o={};e.r(o),e.d(o,{BooleanAlgebra:function(){return nJ},Eq:function(){return nX},MonoidAll:function(){return nQ},MonoidAny:function(){return n0},Ord:function(){return n2},SemigroupAll:function(){return n$},SemigroupAny:function(){return nZ},Show:function(){return n1},fold:function(){return nz},foldW:function(){return nV},isBoolean:function(){return nY},match:function(){return nH},matchW:function(){return nB}});var a={};e.r(a),e.d(a,{booleanAlgebraBoolean:function(){return n4},booleanAlgebraVoid:function(){return n3},getDualBooleanAlgebra:function(){return n7},getFunctionBooleanAlgebra:function(){return n9},reverse:function(){return n5}});var c={};e.r(c),e.d(c,{boundedNumber:function(){return te},clamp:function(){return tn},reverse:function(){return tt}});var f={};e.r(f),e.d(f,{getMinMaxDistributiveLattice:function(){return tr}});var l={};e.r(l),e.d(l,{getMinMaxBoundedDistributiveLattice:function(){return ti}});var p={};e.r(p);var d={};e.r(d);var s={};e.r(s);var h={};e.r(h);var m={};e.r(m),e.d(m,{fanIn:function(){return tc},fanin:function(){return tl},split:function(){return ta},splitChoice:function(){return tf}});var v={};e.r(v);var g={};e.r(g),e.d(g,{compact:function(){return th},getCompactableComposition:function(){return tv},separate:function(){return tm}});var y={};e.r(y),e.d(y,{error:function(){return tb},info:function(){return t_},log:function(){return tg},warn:function(){return ty}});var b={};e.r(b);var _={};e.r(_),e.d(_,{Eq:function(){return tS},Ord:function(){return tM},create:function(){return tO},eqDate:function(){return tT},eqMonth:function(){return tx},eqYear:function(){return tw},now:function(){return tE}});var I={};e.r(I),e.d(I,{alt:function(){return tG},altValidation:function(){return tH},ap:function(){return tN},bimap:function(){return tK},chain:function(){return tj},chainNullableK:function(){return tU},flatMap:function(){return tq},fromNullable:function(){return tD},fromNullableK:function(){return tA},getEitherM:function(){return t8},getOrElse:function(){return tJ},left:function(){return tW},leftF:function(){return tP},map:function(){return tL},mapBoth:function(){return tY},mapError:function(){return tV},mapLeft:function(){return tB},match:function(){return tz},matchE:function(){return tX},orElse:function(){return t$},orElseFirst:function(){return tZ},orLeft:function(){return t0},right:function(){return tk},rightF:function(){return tF},swap:function(){return t2},tapError:function(){return tQ},toUnion:function(){return t1}});var R={};e.r(R);var S={};e.r(S),e.d(S,{fieldNumber:function(){return t9},gcd:function(){return t7},lcm:function(){return t4}});var T={};e.r(T),e.d(T,{filter:function(){return en},filterMap:function(){return et},getFilterableComposition:function(){return ei},partition:function(){return ee},partitionMap:function(){return er}});var x={};e.r(x);var w={};e.r(w),e.d(w,{foldM:function(){return ed},foldMap:function(){return eo},getFoldableComposition:function(){return eh},intercalate:function(){return ef},reduce:function(){return eu},reduceM:function(){return ec},reduceRight:function(){return ea},toArray:function(){return es},toReadonlyArray:function(){return el},traverse_:function(){return ep}});var M={};e.r(M),e.d(M,{foldMapWithIndex:function(){return ev},getFoldableWithIndexComposition:function(){return ey},reduceRightWithIndex:function(){return eg},reduceWithIndex:function(){return em}});var O={};e.r(O),e.d(O,{chainFirstIOK:function(){return eR},chainIOK:function(){return eI},fromIOK:function(){return e_},tapIO:function(){return eS}});var E={};e.r(E),e.d(E,{ApT:function(){return rc},Applicative:function(){return e8},Apply:function(){return eZ},Category:function(){return e9},Chain:function(){return e5},Choice:function(){return rn},Do:function(){return ru},Functor:function(){return eX},Monad:function(){return e3},Pointed:function(){return e$},Profunctor:function(){return e4},Strong:function(){return e6},URI:function(){return ez},ap:function(){return eA},apFirst:function(){return eQ},apFirstW:function(){return e0},apS:function(){return ro},apSW:function(){return ra},apSecond:function(){return e2},apSecondW:function(){return e1},apW:function(){return eD},ask:function(){return ex},asks:function(){return ew},asksReader:function(){return eE},asksReaderW:function(){return eO},bind:function(){return rr},bindTo:function(){return rt},bindW:function(){return ri},chain:function(){return rm},chainFirst:function(){return rv},chainFirstW:function(){return rg},chainW:function(){return rh},compose:function(){return eq},first:function(){return eY},flap:function(){return eJ},flatMap:function(){return eL},flatten:function(){return ej},flattenW:function(){return eN},getMonoid:function(){return r_},getSemigroup:function(){return rb},id:function(){return eK},left:function(){return eV},let:function(){return re},local:function(){return eM},map:function(){return eP},of:function(){return eU},promap:function(){return eG},reader:function(){return ry},right:function(){return eH},second:function(){return eB},sequenceArray:function(){return rs},tap:function(){return e7},traverseArray:function(){return rd},traverseArrayWithIndex:function(){return rp},traverseReadonlyArrayWithIndex:function(){return rl},traverseReadonlyNonEmptyArrayWithIndex:function(){return rf}});var C={};e.r(C),e.d(C,{ask:function(){return rI},asks:function(){return rR},chainFirstReaderK:function(){return rx},chainReaderK:function(){return rT},fromReaderK:function(){return rS},tapReader:function(){return rw}});var k={};e.r(k),e.d(k,{Applicative:function(){return rB},Apply:function(){return rG},Chain:function(){return rV},FromState:function(){return rX},Functor:function(){return rN},Monad:function(){return rH},Pointed:function(){return rq},URI:function(){return rL},ap:function(){return rP},apFirst:function(){return rK},apS:function(){return r2},apSecond:function(){return rY},bind:function(){return r0},bindTo:function(){return rZ},chain:function(){return r4},chainFirst:function(){return r9},evalState:function(){return r6},evaluate:function(){return rJ},execState:function(){return it},execute:function(){return r$},flap:function(){return rj},flatMap:function(){return rA},flatten:function(){return rU},get:function(){return rM},gets:function(){return rC},let:function(){return rQ},map:function(){return rF},modify:function(){return rE},of:function(){return rD},put:function(){return rO},sequenceArray:function(){return r7},state:function(){return ie},tap:function(){return rz},traverseArray:function(){return r3},traverseArrayWithIndex:function(){return r5},traverseReadonlyArrayWithIndex:function(){return r8},traverseReadonlyNonEmptyArrayWithIndex:function(){return r1}});var W={};e.r(W),e.d(W,{chainStateK:function(){return ic},fromStateK:function(){return ia},get:function(){return ir},gets:function(){return io},modify:function(){return iu},put:function(){return ii}});var F={};e.r(F),e.d(F,{chainFirstTaskK:function(){return id},chainTaskK:function(){return ip},fromTaskK:function(){return il},tapTask:function(){return is}});var P={};e.r(P),e.d(P,{fromTheseK:function(){return ih}});var D={};e.r(D),e.d(D,{getFunctorWithIndexComposition:function(){return iv},mapWithIndex:function(){return im}});var A={};e.r(A);var U={};e.r(U);var L={};e.r(L);var N={};e.r(N),e.d(N,{Alt:function(){return i1},Applicative:function(){return iJ},Apply:function(){return iH},Chain:function(){return i$},ChainRec:function(){return i5},Comonad:function(){return i8},Do:function(){return i3},Foldable:function(){return i0},Functor:function(){return iY},Monad:function(){return iZ},Pointed:function(){return iV},Traversable:function(){return i2},URI:function(){return iq},alt:function(){return ij},altW:function(){return iN},ap:function(){return iM},apFirst:function(){return iz},apS:function(){return i6},apSecond:function(){return iX},bind:function(){return i9},bindTo:function(){return i7},chain:function(){return un},chainFirst:function(){return iQ},duplicate:function(){return iW},extend:function(){return iC},extract:function(){return ik},flap:function(){return iB},flatMap:function(){return iE},flatten:function(){return iF},foldMap:function(){return iD},getEq:function(){return iK},getShow:function(){return iG},identity:function(){return ut},let:function(){return i4},map:function(){return iw},of:function(){return iO},reduce:function(){return iP},reduceRight:function(){return iA},sequence:function(){return iL},traverse:function(){return iU}});var j={};e.r(j);var q={};e.r(q),e.d(q,{ApT:function(){return uW},Applicative:function(){return ub},Apply:function(){return uv},Chain:function(){return u_},ChainRec:function(){return ux},Do:function(){return uM},FromIO:function(){return uw},Functor:function(){return up},Monad:function(){return uI},MonadIO:function(){return uT},Pointed:function(){return um},URI:function(){return ul},ap:function(){return uo},apFirst:function(){return ug},apS:function(){return uk},apSecond:function(){return uy},as:function(){return ud},asUnit:function(){return us},bind:function(){return uC},bindTo:function(){return uO},chain:function(){return uL},chainFirst:function(){return uN},flap:function(){return uh},flatMap:function(){return uc},flatten:function(){return uf},fromIO:function(){return uS},getMonoid:function(){return uG},getSemigroup:function(){return uq},io:function(){return uj},let:function(){return uE},map:function(){return uu},of:function(){return ua},sequenceArray:function(){return uU},tap:function(){return uR},traverseArray:function(){return uA},traverseArrayWithIndex:function(){return uD},traverseReadonlyArrayWithIndex:function(){return uP},traverseReadonlyNonEmptyArrayWithIndex:function(){return uF}});var G={};e.r(G),e.d(G,{Alt:function(){return oY},ApT:function(){return am},Applicative:function(){return aw},ApplicativePar:function(){return oD},ApplicativeSeq:function(){return oA},ApplyPar:function(){return oC},Bifunctor:function(){return oE},Chain:function(){return oU},Do:function(){return ac},FromEither:function(){return oN},FromIO:function(){return oj},Functor:function(){return oT},Monad:function(){return oL},MonadIO:function(){return oB},MonadThrow:function(){return oV},Pointed:function(){return oO},URI:function(){return ob},alt:function(){return ov},altW:function(){return og},ap:function(){return ol},apFirst:function(){return ok},apFirstW:function(){return oW},apS:function(){return as},apSW:function(){return ah},apSecond:function(){return oF},apSecondW:function(){return oP},apW:function(){return op},as:function(){return ox},asUnit:function(){return ow},bimap:function(){return oa},bind:function(){return ap},bindTo:function(){return af},bindW:function(){return ad},bracket:function(){return ao},bracketW:function(){return aa},chain:function(){return aM},chainEitherK:function(){return o9},chainEitherKW:function(){return o6},chainFirst:function(){return aE},chainFirstEitherK:function(){return an},chainFirstEitherKW:function(){return at},chainFirstIOK:function(){return oz},chainFirstW:function(){return aC},chainIOK:function(){return o4},chainOptionK:function(){return o$},chainOptionKW:function(){return oZ},chainW:function(){return aO},filterOrElse:function(){return ar},filterOrElseW:function(){return ai},flap:function(){return oM},flatMap:function(){return os},flatMapEither:function(){return o3},flatMapIO:function(){return o7},flatMapNullable:function(){return o8},flatMapOption:function(){return o5},flatten:function(){return om},flattenW:function(){return oh},fold:function(){return uZ},foldW:function(){return u0},fromEither:function(){return uH},fromEitherK:function(){return au},fromIO:function(){return uz},fromIOK:function(){return oH},fromOption:function(){return oX},fromOptionK:function(){return oJ},fromPredicate:function(){return ae},getAltIOValidation:function(){return oI},getApplicativeIOValidation:function(){return o_},getApplyMonoid:function(){return aD},getApplySemigroup:function(){return aP},getCompactable:function(){return oR},getFilterable:function(){return oS},getIOValidation:function(){return aU},getOrElse:function(){return u2},getOrElseW:function(){return u1},getSemigroup:function(){return aA},ioEither:function(){return aF},left:function(){return uK},leftIO:function(){return uV},let:function(){return al},liftNullable:function(){return o0},liftOption:function(){return o2},map:function(){return ou},mapBoth:function(){return oo},mapError:function(){return oc},mapLeft:function(){return of},match:function(){return uX},matchE:function(){return u$},matchEW:function(){return uQ},matchW:function(){return uJ},of:function(){return od},orElse:function(){return u7},orElseFirst:function(){return ak},orElseFirstIOK:function(){return u6},orElseFirstW:function(){return aW},orElseW:function(){return u4},orLeft:function(){return on},right:function(){return uY},rightIO:function(){return uB},sequenceArray:function(){return aR},sequenceSeqArray:function(){return ax},swap:function(){return ot},tap:function(){return oq},tapEither:function(){return oG},tapError:function(){return u9},tapIO:function(){return oK},throwError:function(){return oy},toUnion:function(){return u3},traverseArray:function(){return aI},traverseArrayWithIndex:function(){return a_},traverseReadonlyArrayWithIndex:function(){return ag},traverseReadonlyArrayWithIndexSeq:function(){return ab},traverseReadonlyNonEmptyArrayWithIndex:function(){return av},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return ay},traverseSeqArray:function(){return aT},traverseSeqArrayWithIndex:function(){return aS},tryCatch:function(){return u8},tryCatchK:function(){return u5}});var K={};e.r(K),e.d(K,{alt:function(){return a2},ap:function(){return aZ},chain:function(){return aQ},chainNullableK:function(){return aK},chainOptionK:function(){return aB},flatMap:function(){return a0},fromEither:function(){return aH},fromF:function(){return aj},fromNullable:function(){return aq},fromNullableK:function(){return aG},fromOptionK:function(){return aY},fromPredicate:function(){return aV},getOptionM:function(){return a1},getOrElse:function(){return aJ},map:function(){return a$},match:function(){return az},matchE:function(){return aX},some:function(){return aL},zero:function(){return aN}});var Y={};e.r(Y),e.d(Y,{Alt:function(){return cH},Alternative:function(){return cJ},ApT:function(){return ff},Applicative:function(){return cj},Apply:function(){return cU},Chain:function(){return cq},Compactable:function(){return cQ},Do:function(){return fi},Filterable:function(){return c0},FromEither:function(){return cG},FromIO:function(){return cK},Functor:function(){return cW},Monad:function(){return c$},MonadIO:function(){return cZ},Pointed:function(){return cA},URI:function(){return ck},Zero:function(){return cz},alt:function(){return cy},altW:function(){return cb},ap:function(){return ch},apFirst:function(){return cL},apS:function(){return fc},apSecond:function(){return cN},as:function(){return cF},asUnit:function(){return cP},bind:function(){return fa},bindTo:function(){return fu},chain:function(){return fd},chainEitherK:function(){return ft},chainFirst:function(){return fs},chainFirstEitherK:function(){return fe},chainFirstIOK:function(){return c6},chainIOK:function(){return c9},chainNullableK:function(){return cp},chainOptionK:function(){return fr},compact:function(){return cR},filter:function(){return cT},filterMap:function(){return cx},flap:function(){return cD},flatMap:function(){return cv},flatMapEither:function(){return c3},flatMapIO:function(){return c8},flatMapNullable:function(){return c7},flatMapOption:function(){return c5},flatten:function(){return cg},fold:function(){return cr},fromEither:function(){return a4},fromEitherK:function(){return fn},fromIO:function(){return a9},fromIOEither:function(){return a6},fromIOK:function(){return c4},fromNullable:function(){return cf},fromNullableK:function(){return cl},fromOption:function(){return a7},fromOptionK:function(){return cd},fromPredicate:function(){return a3},getOrElse:function(){return cu},getOrElseW:function(){return co},guard:function(){return cX},let:function(){return fo},map:function(){return cs},match:function(){return cn},matchE:function(){return ce},matchEW:function(){return ci},matchW:function(){return ct},none:function(){return cI},of:function(){return cm},partition:function(){return cw},partitionMap:function(){return cM},separate:function(){return cS},some:function(){return a5},tap:function(){return cY},tapEither:function(){return cB},tapIO:function(){return cV},toNullable:function(){return cc},toUndefined:function(){return ca},traverseReadonlyArrayWithIndex:function(){return fp},traverseReadonlyNonEmptyArrayWithIndex:function(){return fl},zero:function(){return c_}});var B={};e.r(B),e.d(B,{IORef:function(){return fh},newIORef:function(){return fm}});var V={};e.r(V);var H={};e.r(H),e.d(H,{parse:function(){return fv},stringify:function(){return fg}});var z={};e.r(z);var X={};e.r(X);var J={};e.r(J);var $={};e.r($);var Z={};e.r(Z);var Q={};e.r(Q);var nn={};e.r(nn);var nt={};e.r(nt),e.d(nt,{Eq:function(){return fx},Monoid:function(){return fM},Semigroup:function(){return fw},eqOrdering:function(){return fk},invert:function(){return fE},match:function(){return fS},matchW:function(){return fR},monoidOrdering:function(){return fW},reverse:function(){return fT},semigroupOrdering:function(){return fC},sign:function(){return fO}});var ne={};e.r(ne);var nr={};e.r(nr);var ni={};e.r(ni),e.d(ni,{random:function(){return fP},randomBool:function(){return fU},randomElem:function(){return fL},randomInt:function(){return fD},randomRange:function(){return fA}});var nu={};e.r(nu),e.d(nu,{Alt:function(){return lN},ApT:function(){return pd},Applicative:function(){return lC},Apply:function(){return lx},Bifunctor:function(){return lL},Chain:function(){return lk},Do:function(){return pu},FromEither:function(){return lF},FromReader:function(){return lP},Functor:function(){return l_},Monad:function(){return lW},MonadThrow:function(){return lB},Pointed:function(){return lT},URI:function(){return lm},alt:function(){return ld},altW:function(){return ls},ap:function(){return lo},apFirst:function(){return lw},apFirstW:function(){return lM},apS:function(){return pl},apSW:function(){return pp},apSecond:function(){return lO},apSecondW:function(){return lE},apW:function(){return la},as:function(){return lI},asUnit:function(){return lR},ask:function(){return lj},asks:function(){return lq},asksReaderEither:function(){return f1},asksReaderEitherW:function(){return f2},bimap:function(){return lr},bind:function(){return pc},bindTo:function(){return po},bindW:function(){return pf},chain:function(){return py},chainEitherK:function(){return l3},chainEitherKW:function(){return l7},chainFirst:function(){return p_},chainFirstEitherK:function(){return l4},chainFirstEitherKW:function(){return l9},chainFirstReaderK:function(){return lK},chainFirstReaderKW:function(){return lY},chainFirstW:function(){return pI},chainOptionK:function(){return lz},chainOptionKW:function(){return lX},chainReaderK:function(){return l6},chainReaderKW:function(){return pn},chainW:function(){return pb},filterOrElse:function(){return pe},filterOrElseW:function(){return pr},flap:function(){return lS},flatMap:function(){return lf},flatMapEither:function(){return l8},flatMapNullable:function(){return l2},flatMapOption:function(){return l1},flatMapReader:function(){return l5},flatten:function(){return lp},flattenW:function(){return ll},fold:function(){return fz},foldW:function(){return fJ},fromEither:function(){return fK},fromEitherK:function(){return pi},fromOption:function(){return lV},fromOptionK:function(){return lH},fromPredicate:function(){return pt},fromReader:function(){return fY},fromReaderK:function(){return lG},getAltReaderValidation:function(){return lb},getApplicativeReaderValidation:function(){return ly},getApplyMonoid:function(){return pw},getApplySemigroup:function(){return px},getCompactable:function(){return lv},getFilterable:function(){return lg},getOrElse:function(){return f$},getOrElseW:function(){return fZ},getReaderValidation:function(){return pO},getSemigroup:function(){return pM},left:function(){return fN},leftReader:function(){return fG},let:function(){return pa},liftNullable:function(){return lZ},liftOption:function(){return lQ},local:function(){return f0},map:function(){return lt},mapBoth:function(){return le},mapError:function(){return li},mapLeft:function(){return lu},match:function(){return fB},matchE:function(){return fH},matchEW:function(){return fX},matchW:function(){return fV},of:function(){return lc},orElse:function(){return f8},orElseFirst:function(){return pR},orElseFirstW:function(){return pS},orElseW:function(){return f5},orLeft:function(){return f7},readerEither:function(){return pT},right:function(){return fj},rightReader:function(){return fq},sequenceArray:function(){return pg},swap:function(){return f4},tap:function(){return lD},tapEither:function(){return lA},tapError:function(){return f3},tapReader:function(){return lU},throwError:function(){return lh},toUnion:function(){return fQ},traverseArray:function(){return pv},traverseArrayWithIndex:function(){return pm},traverseReadonlyArrayWithIndex:function(){return ph},traverseReadonlyNonEmptyArrayWithIndex:function(){return ps}});var no={};e.r(no),e.d(no,{ap:function(){return pk},chain:function(){return pW},flatMap:function(){return pF},fromNaturalTransformation:function(){return pD},fromReader:function(){return pP},getReaderM:function(){return pA},map:function(){return pC},of:function(){return pE}});var na={};e.r(na),e.d(na,{ApT:function(){return dw},Applicative:function(){return p7},Apply:function(){return p8},Chain:function(){return p4},Do:function(){return d_},FromIO:function(){return dn},FromReader:function(){return dt},Functor:function(){return pZ},Monad:function(){return p9},MonadIO:function(){return p6},Pointed:function(){return p1},URI:function(){return p$},ap:function(){return pB},apFirst:function(){return p5},apS:function(){return dT},apSW:function(){return dx},apSecond:function(){return p3},apW:function(){return pV},as:function(){return pQ},asUnit:function(){return p0},ask:function(){return ds},asks:function(){return dh},asksReaderIO:function(){return pq},asksReaderIOW:function(){return pj},bind:function(){return dR},bindTo:function(){return dI},bindW:function(){return dS},chain:function(){return dW},chainFirst:function(){return dP},chainFirstIOK:function(){return dd},chainFirstReaderK:function(){return dy},chainFirstReaderKW:function(){return db},chainFirstW:function(){return dD},chainIOK:function(){return dp},chainReaderK:function(){return dv},chainReaderKW:function(){return dg},chainW:function(){return dF},flap:function(){return p2},flatMap:function(){return pz},flatMapIO:function(){return di},flatMapReader:function(){return du},flatten:function(){return pJ},flattenW:function(){return pX},fromIO:function(){return pL},fromIOK:function(){return dl},fromReader:function(){return pU},fromReaderK:function(){return dm},local:function(){return pN},map:function(){return pY},of:function(){return pH},sequenceArray:function(){return dk},tap:function(){return da},tapIO:function(){return dc},tapReader:function(){return df},traverseArray:function(){return dC},traverseArrayWithIndex:function(){return dE},traverseReadonlyArrayWithIndex:function(){return dO},traverseReadonlyNonEmptyArrayWithIndex:function(){return dM}});var nc={};e.r(nc),e.d(nc,{ApT:function(){return sm},ApplicativePar:function(){return d1},ApplicativeSeq:function(){return d5},ApplyPar:function(){return dQ},ApplySeq:function(){return d8},Chain:function(){return d3},Do:function(){return sl},FromIO:function(){return sn},FromTask:function(){return sc},Functor:function(){return dz},Monad:function(){return d7},MonadIO:function(){return d4},MonadTask:function(){return d6},Pointed:function(){return dZ},URI:function(){return dV},ap:function(){return dG},apFirst:function(){return d0},apS:function(){return sh},apSecond:function(){return d2},as:function(){return dX},asUnit:function(){return dJ},bind:function(){return ss},bindTo:function(){return sp},chain:function(){return sw},chainFirst:function(){return sM},chainFirstIOK:function(){return sa},chainIOK:function(){return so},delay:function(){return dU},flap:function(){return d$},flatMap:function(){return dY},flatMapIO:function(){return se},flatten:function(){return dB},fromIO:function(){return dA},fromIOK:function(){return su},fromTask:function(){return d9},getMonoid:function(){return sk},getRaceMonoid:function(){return dH},getSemigroup:function(){return sC},let:function(){return sd},map:function(){return dq},never:function(){return sf},of:function(){return dK},sequenceArray:function(){return sR},sequenceSeqArray:function(){return sx},tap:function(){return sr},tapIO:function(){return si},task:function(){return sO},taskSeq:function(){return sE},traverseArray:function(){return sI},traverseArrayWithIndex:function(){return s_},traverseReadonlyArrayWithIndex:function(){return sg},traverseReadonlyArrayWithIndexSeq:function(){return sb},traverseReadonlyNonEmptyArrayWithIndex:function(){return sv},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return sy},traverseSeqArray:function(){return sT},traverseSeqArrayWithIndex:function(){return sS}});var nf={};e.r(nf),e.d(nf,{ApT:function(){return hj},ApplicativePar:function(){return s5},ApplicativeSeq:function(){return s7},ApplyPar:function(){return s2},ApplySeq:function(){return s3},Chain:function(){return s4},Do:function(){return hF},FromIO:function(){return ht},FromReader:function(){return hr},FromTask:function(){return he},Functor:function(){return sJ},Monad:function(){return s9},MonadIO:function(){return s6},MonadTask:function(){return hn},Pointed:function(){return s0},URI:function(){return sX},ap:function(){return sK},apFirst:function(){return s1},apS:function(){return hL},apSW:function(){return hN},apSecond:function(){return s8},apW:function(){return sY},as:function(){return s$},asUnit:function(){return sZ},ask:function(){return hy},asks:function(){return hb},asksReaderTask:function(){return sL},asksReaderTaskW:function(){return sU},bind:function(){return hA},bindTo:function(){return hP},bindW:function(){return hU},chain:function(){return hJ},chainFirst:function(){return hZ},chainFirstIOK:function(){return hg},chainFirstReaderIOK:function(){return hE},chainFirstReaderIOKW:function(){return hO},chainFirstReaderK:function(){return hS},chainFirstReaderKW:function(){return hT},chainFirstTaskK:function(){return hW},chainFirstW:function(){return hQ},chainIOK:function(){return hv},chainReaderIOK:function(){return hM},chainReaderIOKW:function(){return hw},chainReaderK:function(){return hI},chainReaderKW:function(){return hR},chainTaskK:function(){return hk},chainW:function(){return h$},flap:function(){return sQ},flatMap:function(){return sV},flatMapIO:function(){return ho},flatMapReader:function(){return hc},flatMapReaderIO:function(){return hf},flatMapTask:function(){return ha},flatten:function(){return sz},flattenW:function(){return sH},fromIO:function(){return sP},fromIOK:function(){return hm},fromReader:function(){return sW},fromReaderIO:function(){return sD},fromReaderIOK:function(){return hx},fromReaderK:function(){return h_},fromTask:function(){return sF},fromTaskK:function(){return hC},getMonoid:function(){return h5},getSemigroup:function(){return h8},let:function(){return hD},local:function(){return sA},map:function(){return sG},of:function(){return sB},readerTask:function(){return h2},readerTaskSeq:function(){return h1},run:function(){return h3},sequenceArray:function(){return hH},sequenceSeqArray:function(){return h0},tap:function(){return hl},tapIO:function(){return hp},tapReader:function(){return hd},tapReaderIO:function(){return hh},tapTask:function(){return hs},traverseArray:function(){return hV},traverseArrayWithIndex:function(){return hB},traverseReadonlyArrayWithIndex:function(){return hG},traverseReadonlyArrayWithIndexSeq:function(){return hY},traverseReadonlyNonEmptyArrayWithIndex:function(){return hq},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return hK},traverseSeqArray:function(){return hX},traverseSeqArrayWithIndex:function(){return hz}});var nl={};e.r(nl),e.d(nl,{Alt:function(){return vy},ApT:function(){return v4},ApplicativePar:function(){return ve},ApplicativeSeq:function(){return vi},ApplyPar:function(){return m4},ApplySeq:function(){return vr},Bifunctor:function(){return vg},Chain:function(){return vu},Do:function(){return v0},FromEither:function(){return vl},FromIO:function(){return vp},FromTask:function(){return vd},Functor:function(){return m1},Monad:function(){return vo},MonadIO:function(){return va},MonadTask:function(){return vc},MonadThrow:function(){return vf},Pointed:function(){return m7},URI:function(){return m$},alt:function(){return mH},altW:function(){return mz},ap:function(){return mG},apFirst:function(){return m9},apFirstW:function(){return m6},apS:function(){return v3},apSW:function(){return v7},apSecond:function(){return vn},apSecondW:function(){return vt},apW:function(){return mK},as:function(){return m8},asUnit:function(){return m5},bimap:function(){return mN},bind:function(){return v8},bindTo:function(){return v2},bindW:function(){return v5},bracket:function(){return vZ},bracketW:function(){return vQ},chain:function(){return gc},chainEitherK:function(){return vD},chainEitherKW:function(){return vA},chainFirst:function(){return gl},chainFirstEitherK:function(){return vU},chainFirstEitherKW:function(){return vL},chainFirstIOK:function(){return vB},chainFirstTaskK:function(){return vz},chainFirstW:function(){return gp},chainIOEitherK:function(){return vJ},chainIOEitherKW:function(){return vX},chainIOK:function(){return vY},chainNullableK:function(){return mI},chainOptionK:function(){return vI},chainOptionKW:function(){return vR},chainTaskK:function(){return vH},chainTaskOptionK:function(){return mk},chainTaskOptionKW:function(){return mC},chainW:function(){return gf},filterOrElse:function(){return vj},filterOrElseW:function(){return vq},flap:function(){return m3},flatMap:function(){return mY},flatMapEither:function(){return vC},flatMapIO:function(){return vk},flatMapIOEither:function(){return vF},flatMapNullable:function(){return vO},flatMapOption:function(){return vE},flatMapTask:function(){return vW},flatMapTaskOption:function(){return vP},flatten:function(){return mV},flattenW:function(){return mB},fold:function(){return mp},foldW:function(){return ms},fromEither:function(){return mu},fromEitherK:function(){return vG},fromIO:function(){return mr},fromIOEither:function(){return mo},fromIOEitherK:function(){return mW},fromIOK:function(){return vK},fromNullable:function(){return mb},fromNullableK:function(){return m_},fromOption:function(){return vb},fromOptionK:function(){return v_},fromPredicate:function(){return vN},fromTask:function(){return mi},fromTaskK:function(){return vV},fromTaskOption:function(){return ma},fromTaskOptionK:function(){return mE},getAltTaskValidation:function(){return mQ},getApplicativeTaskValidation:function(){return mZ},getApplyMonoid:function(){return gg},getApplySemigroup:function(){return gv},getCompactable:function(){return m0},getFilterable:function(){return m2},getOrElse:function(){return mh},getOrElseW:function(){return mm},getSemigroup:function(){return gy},getTaskValidation:function(){return gb},left:function(){return h4},leftIO:function(){return me},leftTask:function(){return mn},let:function(){return v1},liftNullable:function(){return vT},liftOption:function(){return vx},map:function(){return mU},mapBoth:function(){return mL},mapError:function(){return mj},mapLeft:function(){return mq},match:function(){return mc},matchE:function(){return ml},matchEW:function(){return md},matchW:function(){return mf},of:function(){return mX},orElse:function(){return mR},orElseFirst:function(){return gd},orElseFirstIOK:function(){return mx},orElseFirstTaskK:function(){return mw},orElseFirstW:function(){return gs},orElseW:function(){return mS},orLeft:function(){return mM},right:function(){return h9},rightIO:function(){return mt},rightTask:function(){return h6},sequenceArray:function(){return gi},sequenceSeqArray:function(){return ga},swap:function(){return mO},tap:function(){return vs},tapEither:function(){return vh},tapError:function(){return mT},tapIO:function(){return vm},tapTask:function(){return vv},taskEither:function(){return gh},taskEitherSeq:function(){return gm},taskify:function(){return v$},throwError:function(){return mJ},toUnion:function(){return my},traverseArray:function(){return gr},traverseArrayWithIndex:function(){return ge},traverseReadonlyArrayWithIndex:function(){return v6},traverseReadonlyArrayWithIndexSeq:function(){return gt},traverseReadonlyNonEmptyArrayWithIndex:function(){return v9},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return gn},traverseSeqArray:function(){return go},traverseSeqArrayWithIndex:function(){return gu},tryCatch:function(){return mv},tryCatchK:function(){return mg}});var np={};e.r(np),e.d(np,{Alt:function(){return yQ},ApT:function(){return b3},ApplicativePar:function(){return yk},ApplicativeSeq:function(){return yF},ApplyPar:function(){return yw},ApplySeq:function(){return yW},Bifunctor:function(){return yZ},Chain:function(){return yP},Do:function(){return bZ},FromEither:function(){return yN},FromIO:function(){return yj},FromReader:function(){return yG},FromTask:function(){return yq},Functor:function(){return yI},Monad:function(){return yD},MonadIO:function(){return yA},MonadTask:function(){return yU},MonadThrow:function(){return yL},Pointed:function(){return yx},URI:function(){return yv},alt:function(){return ys},altW:function(){return yh},ap:function(){return ya},apFirst:function(){return yM},apFirstW:function(){return yO},apS:function(){return b8},apSW:function(){return b5},apSecond:function(){return yE},apSecondW:function(){return yC},apW:function(){return yc},as:function(){return yR},asUnit:function(){return yS},ask:function(){return y0},asks:function(){return y2},asksReaderTaskEither:function(){return gQ},asksReaderTaskEitherW:function(){return gZ},bimap:function(){return yi},bind:function(){return b2},bindTo:function(){return bQ},bindW:function(){return b1},bracket:function(){return bJ},bracketW:function(){return b$},chain:function(){return _o},chainEitherK:function(){return bT},chainEitherKW:function(){return bx},chainFirst:function(){return _c},chainFirstEitherK:function(){return bw},chainFirstEitherKW:function(){return bM},chainFirstIOK:function(){return bL},chainFirstReaderEitherK:function(){return y7},chainFirstReaderEitherKW:function(){return y3},chainFirstReaderIOK:function(){return bi},chainFirstReaderIOKW:function(){return br},chainFirstReaderK:function(){return y8},chainFirstReaderKW:function(){return y5},chainFirstReaderTaskK:function(){return bt},chainFirstReaderTaskKW:function(){return bn},chainFirstTaskEitherK:function(){return y9},chainFirstTaskEitherKW:function(){return y4},chainFirstTaskK:function(){return bq},chainFirstW:function(){return _f},chainIOEitherK:function(){return bH},chainIOEitherKW:function(){return bV},chainIOK:function(){return bU},chainNullableK:function(){return gJ},chainOptionK:function(){return ba},chainOptionKW:function(){return bc},chainReaderEitherK:function(){return bX},chainReaderEitherKW:function(){return bz},chainReaderIOK:function(){return bB},chainReaderIOKW:function(){return bY},chainReaderK:function(){return bG},chainReaderKW:function(){return bK},chainReaderTaskK:function(){return bk},chainReaderTaskKW:function(){return bC},chainTaskEitherK:function(){return bE},chainTaskEitherKW:function(){return bO},chainTaskK:function(){return bj},chainW:function(){return _a},filterOrElse:function(){return bF},filterOrElseW:function(){return bP},flap:function(){return yT},flatMap:function(){return yl},flatMapEither:function(){return bm},flatMapIO:function(){return by},flatMapIOEither:function(){return bR},flatMapNullable:function(){return bs},flatMapOption:function(){return bh},flatMapReader:function(){return b_},flatMapReaderEither:function(){return bS},flatMapReaderIO:function(){return bI},flatMapReaderTask:function(){return bg},flatMapTask:function(){return bb},flatMapTaskEither:function(){return bv},flatten:function(){return yd},flattenW:function(){return yp},fold:function(){return gG},foldW:function(){return gY},fromEither:function(){return gF},fromEitherK:function(){return bD},fromIO:function(){return gD},fromIOEither:function(){return gU},fromIOEitherK:function(){return g3},fromIOK:function(){return bA},fromNullable:function(){return gz},fromNullableK:function(){return gX},fromOption:function(){return bu},fromOptionK:function(){return bo},fromPredicate:function(){return bW},fromReader:function(){return gP},fromReaderEither:function(){return gL},fromReaderEitherK:function(){return g4},fromReaderIOK:function(){return be},fromReaderK:function(){return y1},fromReaderTaskK:function(){return y6},fromTask:function(){return gA},fromTaskEither:function(){return g_},fromTaskEitherK:function(){return g7},fromTaskK:function(){return bN},getAltReaderTaskValidation:function(){return y_},getApplicativeReaderTaskValidation:function(){return yb},getApplyMonoid:function(){return _m},getApplySemigroup:function(){return _h},getCompactable:function(){return yg},getFilterable:function(){return yy},getOrElse:function(){return gB},getOrElseW:function(){return gV},getReaderTaskValidation:function(){return _g},getSemigroup:function(){return _v},left:function(){return gI},leftIO:function(){return gC},leftReader:function(){return gw},leftReaderIO:function(){return gW},leftReaderTask:function(){return gO},leftTask:function(){return gT},let:function(){return b0},liftNullable:function(){return bl},liftOption:function(){return bp},local:function(){return g$},map:function(){return ye},mapBoth:function(){return yr},mapError:function(){return yu},mapLeft:function(){return yo},match:function(){return gN},matchE:function(){return gq},matchEW:function(){return gK},matchW:function(){return gj},of:function(){return yf},orElse:function(){return g0},orElseFirst:function(){return _l},orElseFirstW:function(){return _p},orElseW:function(){return g2},orLeft:function(){return g8},readerTaskEither:function(){return _d},readerTaskEitherSeq:function(){return _s},right:function(){return gR},rightIO:function(){return gE},rightReader:function(){return gx},rightReaderIO:function(){return gk},rightReaderTask:function(){return gM},rightTask:function(){return gS},run:function(){return _y},sequenceArray:function(){return _e},sequenceSeqArray:function(){return _u},swap:function(){return g5},tap:function(){return yK},tapEither:function(){return yY},tapError:function(){return g1},tapIO:function(){return yB},tapReader:function(){return yH},tapReaderEither:function(){return yz},tapReaderIO:function(){return y$},tapReaderTask:function(){return yJ},tapTask:function(){return yV},tapTaskEither:function(){return yX},throwError:function(){return ym},toUnion:function(){return gH},traverseArray:function(){return _t},traverseArrayWithIndex:function(){return _n},traverseReadonlyArrayWithIndex:function(){return b4},traverseReadonlyArrayWithIndexSeq:function(){return b6},traverseReadonlyNonEmptyArrayWithIndex:function(){return b7},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return b9},traverseSeqArray:function(){return _i},traverseSeqArrayWithIndex:function(){return _r}});var nd={};e.r(nd),e.d(nd,{Bifunctor:function(){return _3},Comonad:function(){return _4},Foldable:function(){return _9},Functor:function(){return _2},Semigroupoid:function(){return _7},Traversable:function(){return _6},URI:function(){return _0},bimap:function(){return _G},compose:function(){return _B},duplicate:function(){return _z},extend:function(){return _V},extract:function(){return _H},flap:function(){return _1},foldMap:function(){return _J},fst:function(){return _T},getApplicative:function(){return _E},getApply:function(){return _M},getChain:function(){return _C},getChainRec:function(){return _W},getMonad:function(){return _k},map:function(){return _8},mapFst:function(){return _K},mapLeft:function(){return _5},mapSnd:function(){return _Y},readonlyTuple:function(){return In},reduce:function(){return _X},reduceRight:function(){return _$},sequence:function(){return _Q},snd:function(){return _x},swap:function(){return _w},traverse:function(){return _Z}});var ns={};e.r(ns),e.d(ns,{Compactable:function(){return Ry},Filterable:function(){return Rb},FilterableWithIndex:function(){return R_},Foldable:function(){return RO},FoldableWithIndex:function(){return RE},Functor:function(){return Rs},FunctorWithIndex:function(){return Rm},Traversable:function(){return RC},TraversableWithIndex:function(){return Rk},URI:function(){return Rf},Witherable:function(){return RP},collect:function(){return If},compact:function(){return Ra},deleteAt:function(){return Ih},difference:function(){return IY},elem:function(){return Iq},empty:function(){return RD},every:function(){return IN},filter:function(){return Rn},filterMap:function(){return Rt},filterMapWithIndex:function(){return IF},filterWithIndex:function(){return IP},flap:function(){return Rh},foldMap:function(){return Ru},foldMapWithIndex:function(){return IS},fromEntries:function(){return IU},fromFoldable:function(){return ID},fromFoldableMap:function(){return IL},getDifferenceMagma:function(){return RM},getEq:function(){return Rp},getFoldable:function(){return Rv},getFoldableWithIndex:function(){return Rg},getIntersectionSemigroup:function(){return Rw},getMonoid:function(){return Rd},getShow:function(){return Rl},getTraversable:function(){return RI},getTraversableWithIndex:function(){return RR},getUnionMonoid:function(){return Rx},getUnionSemigroup:function(){return RT},getWitherable:function(){return RS},has:function(){return Is},hasOwnProperty:function(){return RU},insertAt:function(){return RA},intersection:function(){return IK},isEmpty:function(){return Io},isSubrecord:function(){return Iy},keys:function(){return Ic},lookup:function(){return Ib},map:function(){return II},mapWithIndex:function(){return I_},modifyAt:function(){return Iv},partition:function(){return Re},partitionMap:function(){return Rr},partitionMapWithIndex:function(){return Ik},partitionWithIndex:function(){return IW},pop:function(){return Ig},record:function(){return RL},reduce:function(){return Ri},reduceRight:function(){return Ro},reduceRightWithIndex:function(){return IT},reduceWithIndex:function(){return IR},separate:function(){return Rc},sequence:function(){return IO},singleton:function(){return Ix},size:function(){return Iu},some:function(){return Ij},toArray:function(){return Il},toEntries:function(){return IA},toUnfoldable:function(){return Ip},traverse:function(){return IM},traverseWithIndex:function(){return Iw},union:function(){return IG},updateAt:function(){return Im},upsertAt:function(){return Id},wilt:function(){return IC},wither:function(){return IE}});var nh={};e.r(nh),e.d(nh,{and:function(){return RY},compose:function(){return RV},fromEitherK:function(){return Rj},fromOptionK:function(){return RN},id:function(){return Rq},not:function(){return RG},or:function(){return RK},zero:function(){return RB}});var nm={};e.r(nm),e.d(nm,{getFunctionRing:function(){return RJ},getTupleRing:function(){return RX},negate:function(){return Rz},tuple:function(){return RH}});var nv={};e.r(nv);var ng={};e.r(ng),e.d(ng,{getFunctionSemiring:function(){return R$}});var ny={};e.r(ny),e.d(ny,{getStructShow:function(){return R1},getTupleShow:function(){return R2},showBoolean:function(){return R8},showNumber:function(){return R3},showString:function(){return R5},struct:function(){return RQ},tuple:function(){return R0}});var nb={};e.r(nb),e.d(nb,{ap:function(){return R9},chain:function(){return R6},evaluate:function(){return Sr},execute:function(){return Si},flatMap:function(){return Sn},fromF:function(){return Se},fromState:function(){return St},getStateM:function(){return Su},map:function(){return R4},of:function(){return R7}});var n_={};e.r(n_),e.d(n_,{Alt:function(){return Tk},Applicative:function(){return Tc},Apply:function(){return Tr},Bifunctor:function(){return TC},Chain:function(){return Tf},FromEither:function(){return TI},FromIO:function(){return TR},FromReader:function(){return TT},FromState:function(){return Tl},FromTask:function(){return TS},Functor:function(){return S9},Monad:function(){return Tg},MonadIO:function(){return Ty},MonadTask:function(){return Tb},MonadThrow:function(){return T_},Pointed:function(){return Te},URI:function(){return S4},alt:function(){return S3},altW:function(){return S5},ap:function(){return Sq},apFirst:function(){return Ti},apFirstW:function(){return Tu},apS:function(){return xr},apSW:function(){return xi},apSecond:function(){return To},apSecondW:function(){return Ta},apW:function(){return SG},as:function(){return S6},asUnit:function(){return Tn},ask:function(){return TW},asks:function(){return TF},asksStateReaderTaskEither:function(){return SM},asksStateReaderTaskEitherW:function(){return Sw},bimap:function(){return SN},bind:function(){return xt},bindTo:function(){return T6},bindW:function(){return xe},chain:function(){return xl},chainEitherK:function(){return TK},chainEitherKW:function(){return TY},chainFirst:function(){return xd},chainFirstEitherK:function(){return TB},chainFirstEitherKW:function(){return TV},chainFirstIOK:function(){return TQ},chainFirstReaderK:function(){return TU},chainFirstReaderKW:function(){return TL},chainFirstTaskK:function(){return T7},chainFirstW:function(){return xs},chainIOEitherK:function(){return T8},chainIOEitherKW:function(){return T1},chainIOK:function(){return TZ},chainOptionK:function(){return Tq},chainOptionKW:function(){return TG},chainReaderK:function(){return TD},chainReaderKW:function(){return TA},chainReaderTaskEitherK:function(){return SW},chainReaderTaskEitherKW:function(){return Sk},chainStateK:function(){return Tv},chainTaskEitherK:function(){return T2},chainTaskEitherKW:function(){return T0},chainTaskK:function(){return T3},chainW:function(){return xp},evalState:function(){return xv},evaluate:function(){return T4},execState:function(){return xg},execute:function(){return T9},filterOrElse:function(){return Tz},filterOrElseW:function(){return TX},flap:function(){return Tt},flatMap:function(){return SB},flatMapEither:function(){return SZ},flatMapIO:function(){return Sz},flatMapIOEither:function(){return S$},flatMapOption:function(){return SQ},flatMapReader:function(){return SJ},flatMapReaderTaskEither:function(){return S0},flatMapState:function(){return S2},flatMapTask:function(){return SX},flatMapTaskEither:function(){return SH},flatten:function(){return S8},flattenW:function(){return S1},fromEither:function(){return Sv},fromEitherK:function(){return TJ},fromIO:function(){return Sy},fromIOEither:function(){return SR},fromIOEitherK:function(){return SO},fromIOK:function(){return T$},fromOption:function(){return TN},fromOptionK:function(){return Tj},fromPredicate:function(){return TH},fromReader:function(){return Sg},fromReaderEither:function(){return SS},fromReaderK:function(){return TP},fromReaderTaskEither:function(){return ST},fromReaderTaskEitherK:function(){return SC},fromState:function(){return S_},fromStateK:function(){return Tm},fromTask:function(){return Sb},fromTaskEither:function(){return SI},fromTaskEitherK:function(){return SE},fromTaskK:function(){return T5},get:function(){return Tp},gets:function(){return Th},left:function(){return So},leftIO:function(){return Ss},leftReader:function(){return Sp},leftState:function(){return Sm},leftTask:function(){return Sf},let:function(){return xn},local:function(){return Sx},map:function(){return SL},mapLeft:function(){return Sj},modify:function(){return Ts},of:function(){return SK},put:function(){return Td},right:function(){return Sa},rightIO:function(){return Sd},rightReader:function(){return Sl},rightState:function(){return Sh},rightTask:function(){return Sc},run:function(){return xy},sequenceArray:function(){return xf},stateReaderTaskEither:function(){return xh},stateReaderTaskEitherSeq:function(){return xm},tap:function(){return Tx},tapEither:function(){return Tw},tapIO:function(){return TM},tapReader:function(){return TE},tapTask:function(){return TO},throwError:function(){return S7},traverseArray:function(){return xc},traverseArrayWithIndex:function(){return xa},traverseReadonlyArrayWithIndex:function(){return xo},traverseReadonlyNonEmptyArrayWithIndex:function(){return xu}});var nI={};e.r(nI),e.d(nI,{Comonad:function(){return xk},Functor:function(){return xE},URI:function(){return xO},duplicate:function(){return xw},experiment:function(){return xR},extend:function(){return xT},extract:function(){return xx},flap:function(){return xC},map:function(){return xM},peeks:function(){return xI},seek:function(){return xb},seeks:function(){return x_},store:function(){return xW}});var nR={};e.r(nR),e.d(nR,{fanOut:function(){return xP},fanout:function(){return xA},split:function(){return xF},splitStrong:function(){return xD}});var nS={};e.r(nS),e.d(nS,{evolve:function(){return xL},getAssignSemigroup:function(){return xU}});var nT={};e.r(nT),e.d(nT,{Alt:function(){return wj},Alternative:function(){return wK},ApT:function(){return w6},ApplicativePar:function(){return wO},ApplicativeSeq:function(){return wk},ApplyPar:function(){return wx},ApplySeq:function(){return wC},Chain:function(){return wW},Compactable:function(){return wH},Do:function(){return w5},Filterable:function(){return wz},FromEither:function(){return wF},FromIO:function(){return wP},FromTask:function(){return wD},Functor:function(){return w_},Monad:function(){return wY},MonadIO:function(){return wB},MonadTask:function(){return wV},Pointed:function(){return wT},URI:function(){return wb},Zero:function(){return wq},alt:function(){return wo},altW:function(){return wa},ap:function(){return x6},apFirst:function(){return ww},apS:function(){return w9},apSecond:function(){return wM},as:function(){return wI},asUnit:function(){return wR},bind:function(){return w4},bindTo:function(){return w3},chain:function(){return Ml},chainEitherK:function(){return wQ},chainFirst:function(){return Mp},chainFirstEitherK:function(){return w0},chainFirstIOK:function(){return w$},chainFirstTaskK:function(){return w8},chainIOK:function(){return wJ},chainNullableK:function(){return x3},chainOptionK:function(){return x4},chainTaskK:function(){return w1},compact:function(){return wl},filter:function(){return wd},filterMap:function(){return ws},flap:function(){return wS},flatMap:function(){return wt},flatMapIO:function(){return wr},flatMapTask:function(){return wi},flatten:function(){return wu},fold:function(){return xJ},foldW:function(){return xZ},fromEither:function(){return xK},fromEitherK:function(){return wZ},fromIO:function(){return xY},fromIOK:function(){return wX},fromNullable:function(){return x2},fromNullableK:function(){return x5},fromOption:function(){return xG},fromOptionK:function(){return x7},fromPredicate:function(){return xq},fromTask:function(){return xB},fromTaskEither:function(){return xV},fromTaskK:function(){return w2},getOrElse:function(){return xQ},getOrElseW:function(){return x0},guard:function(){return wG},let:function(){return w7},map:function(){return x9},match:function(){return xH},matchE:function(){return xX},matchEW:function(){return x$},matchW:function(){return xz},none:function(){return wf},of:function(){return wn},partition:function(){return wh},partitionMap:function(){return wm},separate:function(){return wp},sequenceArray:function(){return Mo},sequenceSeqArray:function(){return Mf},some:function(){return xj},tap:function(){return wA},tapEither:function(){return wU},tapIO:function(){return wL},tapTask:function(){return wN},traverseArray:function(){return Mu},traverseArrayWithIndex:function(){return Mi},traverseReadonlyArrayWithIndex:function(){return Mt},traverseReadonlyArrayWithIndexSeq:function(){return Mr},traverseReadonlyNonEmptyArrayWithIndex:function(){return Mn},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return Me},traverseSeqArray:function(){return Mc},traverseSeqArrayWithIndex:function(){return Ma},tryCatch:function(){return x1},tryCatchK:function(){return x8},zero:function(){return wc}});var nx={};e.r(nx),e.d(nx,{ApT:function(){return Ou},Bifunctor:function(){return M8},Foldable:function(){return M3},FromEither:function(){return M4},FromThese:function(){return M5},Functor:function(){return M0},Pointed:function(){return M1},Traversable:function(){return M7},URI:function(){return MQ},bimap:function(){return MY},both:function(){return Mg},elem:function(){return Ot},exists:function(){return Oe},flap:function(){return M2},fold:function(){return MI},foldMap:function(){return Mz},foldW:function(){return Mb},fromOption:function(){return M6},fromOptionK:function(){return On},fromOptions:function(){return MA},fromPredicate:function(){return M9},getApplicative:function(){return MM},getApply:function(){return Mw},getChain:function(){return MO},getEq:function(){return MT},getLeft:function(){return MC},getLeftOnly:function(){return MP},getMonad:function(){return ME},getRight:function(){return Mk},getRightOnly:function(){return MD},getSemigroup:function(){return Mx},getShow:function(){return MS},isBoth:function(){return Mh},isLeft:function(){return Md},isRight:function(){return Ms},left:function(){return Mm},leftOrBoth:function(){return MW},map:function(){return MV},mapLeft:function(){return MB},match:function(){return M_},matchW:function(){return My},of:function(){return MZ},reduce:function(){return MH},reduceRight:function(){return MX},right:function(){return Mv},rightOrBoth:function(){return MF},sequence:function(){return M$},swap:function(){return MR},these:function(){return Oc},toTuple:function(){return Oi},toTuple2:function(){return Or},traverse:function(){return MJ},traverseReadonlyArrayWithIndex:function(){return Oa},traverseReadonlyNonEmptyArrayWithIndex:function(){return Oo}});var nw={};e.r(nw),e.d(nw,{ap:function(){return Om},bimap:function(){return Og},both:function(){return Op},chain:function(){return Ov},getTheseM:function(){return OS},left:function(){return Ol},leftF:function(){return Os},map:function(){return Oh},mapLeft:function(){return Oy},match:function(){return Ob},matchE:function(){return O_},right:function(){return Of},rightF:function(){return Od},swap:function(){return OI},toTuple2:function(){return OR}});var nM={};e.r(nM),e.d(nM,{ApT:function(){return Eo},Bifunctor:function(){return O5},FromEither:function(){return O3},FromIO:function(){return Et},FromTask:function(){return Er},FromThese:function(){return O6},Functor:function(){return O2},Pointed:function(){return O8},URI:function(){return OJ},bifunctorTaskThese:function(){return Ed},bimap:function(){return OH},both:function(){return Ow},flap:function(){return O1},fold:function(){return ON},foldW:function(){return Oq},fromEither:function(){return Ok},fromIO:function(){return OF},fromIOEither:function(){return OP},fromIOK:function(){return Ee},fromOption:function(){return O7},fromOptionK:function(){return O4},fromPredicate:function(){return O9},fromTask:function(){return OD},fromTaskK:function(){return Ei},fromThese:function(){return OW},fromTheseK:function(){return En},functorTaskThese:function(){return Ep},getApplicative:function(){return OZ},getApply:function(){return O$},getChain:function(){return OQ},getMonad:function(){return O0},getSemigroup:function(){return Em},left:function(){return OT},leftIO:function(){return OC},leftTask:function(){return OO},map:function(){return OV},mapLeft:function(){return Oz},match:function(){return OA},matchE:function(){return OL},matchEW:function(){return Oj},matchW:function(){return OU},of:function(){return OX},right:function(){return Ox},rightIO:function(){return OE},rightTask:function(){return OM},swap:function(){return OG},taskThese:function(){return Eh},toTuple:function(){return Es},toTuple2:function(){return Eu},traverseReadonlyArrayWithIndex:function(){return Ec},traverseReadonlyArrayWithIndexSeq:function(){return El},traverseReadonlyNonEmptyArrayWithIndex:function(){return Ea},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return Ef}});var nO={};e.r(nO),e.d(nO,{Functor:function(){return ET},URI:function(){return ES},censor:function(){return Eb},flap:function(){return Ex},getComonad:function(){return E_},listen:function(){return Eg},listens:function(){return Ey},map:function(){return ER},traced:function(){return Ew},tracks:function(){return Ev}});var nE={};e.r(nE),e.d(nE,{getTraversableComposition:function(){return EE},sequence:function(){return EO},traverse:function(){return EM}});var nC={};e.r(nC);var nk={};e.r(nk),e.d(nk,{Applicative:function(){return Ci},Apply:function(){return Ct},Chain:function(){return Cu},Comonad:function(){return Cl},Do:function(){return Cp},Foldable:function(){return Cc},Functor:function(){return E9},Monad:function(){return Co},Pointed:function(){return Cn},Traversable:function(){return Cf},URI:function(){return E4},ap:function(){return Ez},apFirst:function(){return Ce},apS:function(){return Cm},apSecond:function(){return Cr},bind:function(){return Ch},bindTo:function(){return Cd},chain:function(){return Cy},chainFirst:function(){return Ca},drawForest:function(){return EP},drawTree:function(){return ED},duplicate:function(){return E$},elem:function(){return Cv},exists:function(){return Cg},extend:function(){return EJ},extract:function(){return E8},flap:function(){return E6},flatMap:function(){return EX},flatten:function(){return EZ},fold:function(){return Ej},foldMap:function(){return E2},getEq:function(){return EW},getShow:function(){return Ek},let:function(){return Cs},make:function(){return EC},map:function(){return EQ},of:function(){return E7},reduce:function(){return E0},reduceRight:function(){return E1},sequence:function(){return E3},traverse:function(){return E5},tree:function(){return Cb},unfoldForest:function(){return EU},unfoldForestM:function(){return EN},unfoldTree:function(){return EA},unfoldTreeM:function(){return EL}});var nW={};e.r(nW),e.d(nW,{Bifunctor:function(){return CQ},Comonad:function(){return C2},Foldable:function(){return C1},Functor:function(){return C$},Semigroupoid:function(){return C0},Traversable:function(){return C8},URI:function(){return CJ},bimap:function(){return CL},compose:function(){return Cq},duplicate:function(){return CK},extend:function(){return CG},extract:function(){return CY},flap:function(){return CZ},foldMap:function(){return CB},fst:function(){return C_},getApplicative:function(){return Cx},getApply:function(){return CS},getChain:function(){return Cw},getChainRec:function(){return CO},getMonad:function(){return CM},map:function(){return C5},mapFst:function(){return CN},mapLeft:function(){return C3},mapSnd:function(){return Cj},reduce:function(){return CV},reduceRight:function(){return CH},sequence:function(){return CX},snd:function(){return CI},swap:function(){return CR},traverse:function(){return Cz},tuple:function(){return C7}});var nF={};e.r(nF);var nP={};e.r(nP),e.d(nP,{getValidationM:function(){return C4}});var nD={};e.r(nD),e.d(nD,{Monoid:function(){return C6},Semigroup:function(){return C9}});var nA={};e.r(nA),e.d(nA,{Functor:function(){return ks},URI:function(){return ka},censor:function(){return ki},evalWriter:function(){return kg},evaluate:function(){return km},execWriter:function(){return ky},execute:function(){return kv},flap:function(){return kh},getApplicative:function(){return kl},getApply:function(){return kf},getChain:function(){return kp},getMonad:function(){return kd},getPointed:function(){return kc},listen:function(){return kt},listens:function(){return kr},map:function(){return ko},pass:function(){return ke},tell:function(){return kn},writer:function(){return kb}});var nU={};function nL(n){return function(t){return function(e){return e.reduce(function(t,e){return n.alt(t,function(){return e})},t)}}}e.r(nU),e.d(nU,{getWriterM:function(){return k_}});var nN=e(42925);function nj(n){return nL(n)(n.zero())}function nq(n){var t=(0,nN.getApplySemigroup)(n);return function(e){var r=t(e);return{concat:function(t,e){return n.alt(r.concat(t,e),function(){return n.alt(t,function(){return e})})},empty:n.zero()}}}var nG=e(46111),nK=e(1358),nY=function(n){return"boolean"==typeof n},nB=function(n,t){return function(e){return e?t():n()}},nV=nB,nH=nV,nz=nH,nX={equals:function(n,t){return n===t}},nJ={meet:function(n,t){return n&&t},join:function(n,t){return n||t},zero:!1,one:!0,implies:function(n,t){return!n||t},not:function(n){return!n}},n$={concat:function(n,t){return n&&t}},nZ={concat:function(n,t){return n||t}},nQ={concat:n$.concat,empty:!0},n0={concat:nZ.concat,empty:!1},n2={equals:nX.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},n1={show:function(n){return JSON.stringify(n)}},n8=e(42275),n5=function(n){return{meet:function(t,e){return n.join(t,e)},join:function(t,e){return n.meet(t,e)},zero:n.one,one:n.zero,implies:function(t,e){return n.join(n.not(t),e)},not:n.not}},n3={meet:function(){},join:function(){},zero:void 0,one:void 0,implies:function(){},not:function(){}},n7=n5,n4={meet:function(n,t){return n&&t},join:function(n,t){return n||t},zero:!1,one:!0,implies:function(n,t){return!n||t},not:function(n){return!n}},n9=n8.getBooleanAlgebra,n6=e(5586),tn=function(n){return n6.clamp(n)(n.bottom,n.top)},tt=function(n){var t=n6.reverse(n);return{equals:t.equals,compare:t.compare,top:n.bottom,bottom:n.top}},te={equals:n6.ordNumber.equals,compare:n6.ordNumber.compare,top:1/0,bottom:-1/0};function tr(n){return{meet:(0,n6.min)(n),join:(0,n6.max)(n)}}function ti(n){var t=tr(n);return function(n,e){return{join:t.join,meet:t.meet,zero:n,one:e}}}var tu=e(88543),to=e(56661);function ta(n,t){return function(e,r){return t.compose(n.right(r),n.left(e))}}function tc(n,t){var e=ta(n,t);return function(r,i){return t.compose(n.promap(t.id(),function(n){return"Left"===n._tag?n.left:n.right},n8.identity),e(r,i))}}function tf(n){return ta(n,n)}function tl(n){return tc(n,n)}var tp=e(67560),td=e(20492),ts=e(34219);function th(n,t){return function(e){return n.map(e,t.compact)}}function tm(n,t,e){var r=th(n,t),i=(0,tp.map)(n,e);return function(n){return ts.separated(r((0,n8.pipe)(n,i(td.getLeft))),r((0,n8.pipe)(n,i(td.getRight))))}}function tv(n,t){return{map:(0,tp.getFunctorComposition)(n,t).map,compact:th(n,t),separate:tm(n,t,t)}}var tg=function(n){return function(){return console.log(n)}},ty=function(n){return function(){return console.warn(n)}},tb=function(n){return function(){return console.error(n)}},t_=function(n){return function(){return console.info(n)}},tI=e(90817),tR=e(76627),tS={equals:function(n,t){return n.valueOf()===t.valueOf()}},tT={equals:function(n,t){return n.getDate()===t.getDate()}},tx={equals:function(n,t){return n.getMonth()===t.getMonth()}},tw={equals:function(n,t){return n.getFullYear()===t.getFullYear()}},tM=(0,n8.pipe)(tR.Ord,n6.contramap(function(n){return n.valueOf()})),tO=function(){return new Date},tE=function(){return new Date().getTime()},tC=e(81878);function tk(n){return(0,n8.flow)(tC.right,n.of)}function tW(n){return(0,n8.flow)(tC.left,n.of)}function tF(n){return function(t){return n.map(t,tC.right)}}function tP(n){return function(t){return n.map(t,tC.left)}}function tD(n){return function(t){return(0,n8.flow)(tC.fromNullable(t),n.of)}}function tA(n){var t=tD(n);return function(n){var e=t(n);return function(n){return(0,n8.flow)(n,e)}}}function tU(n){var t=tj(n),e=tA(n);return function(n){var r=e(n);return function(n){return t(r(n))}}}function tL(n){return(0,tp.map)(n,tC.Functor)}function tN(n){return(0,nN.ap)(n,tC.Apply)}function tj(n){var t=tq(n);return function(n){return function(e){return t(e,n)}}}function tq(n){return function(t,e){return n.chain(t,function(t){return tC.isLeft(t)?n.of(t):e(t.right)})}}function tG(n){return function(t){return function(e){return n.chain(e,function(e){return tC.isLeft(e)?t():n.of(e)})}}}function tK(n){var t=tY(n);return function(n,e){return function(r){return t(r,n,e)}}}function tY(n){return function(t,e,r){return n.map(t,tC.bimap(e,r))}}function tB(n){var t=tV(n);return function(n){return function(e){return t(e,n)}}}function tV(n){return function(t,e){return n.map(t,tC.mapLeft(e))}}function tH(n,t){return function(e){return function(r){return n.chain(r,tC.match(function(r){return n.map(e(),tC.mapLeft(function(n){return t.concat(r,n)}))},tk(n)))}}}function tz(n){return function(t,e){return function(r){return n.map(r,tC.match(t,e))}}}function tX(n){return function(t,e){return function(r){return n.chain(r,tC.match(t,e))}}}function tJ(n){return function(t){return function(e){return n.chain(e,tC.match(t,n.of))}}}function t$(n){return function(t){return function(e){return n.chain(e,function(e){return tC.isLeft(e)?t(e.left):n.of(e)})}}}function tZ(n){var t=tQ(n);return function(n){return function(e){return t(e,n)}}}function tQ(n){var t=t$(n);return function(e,r){return(0,n8.pipe)(e,t(function(t){return n.map(r(t),function(n){return tC.isLeft(n)?n:tC.left(t)})}))}}function t0(n){return function(t){return function(e){return n.chain(e,tC.match(function(e){return n.map(t(e),tC.left)},function(t){return n.of(tC.right(t))}))}}}function t2(n){return function(t){return n.map(t,tC.swap)}}function t1(n){return function(t){return n.map(t,tC.toUnion)}}function t8(n){var t=tN(n),e=tL(n),r=tj(n),i=tG(n),u=tK(n),o=tB(n),a=tX(n),c=tJ(n),f=t$(n);return{map:function(n,t){return(0,n8.pipe)(n,e(t))},ap:function(n,e){return(0,n8.pipe)(n,t(e))},of:tk(n),chain:function(n,t){return(0,n8.pipe)(n,r(t))},alt:function(n,t){return(0,n8.pipe)(n,i(t))},bimap:function(n,t,e){return(0,n8.pipe)(n,u(t,e))},mapLeft:function(n,t){return(0,n8.pipe)(n,o(t))},fold:function(n,t,e){return(0,n8.pipe)(n,a(t,e))},getOrElse:function(n,t){return(0,n8.pipe)(n,c(t))},orElse:function(n,t){return(0,n8.pipe)(n,f(t))},swap:t2(n),rightM:tF(n),leftM:tP(n),left:tW(n)}}var t5=e(47797),t3=e(65191);function t7(n,t){var e=t.zero,r=function(i,u){return n.equals(u,e)?i:r(u,t.mod(i,u))};return r}function t4(n,t){var e=t.zero,r=t7(n,t);return function(i,u){return n.equals(i,e)||n.equals(u,e)?e:t.div(t.mul(i,u),r(i,u))}}var t9={add:function(n,t){return n+t},zero:0,mul:function(n,t){return n*t},one:1,sub:function(n,t){return n-t},degree:function(n){return 1},div:function(n,t){return n/t},mod:function(n,t){return n%t}},t6=e(88491);function en(n,t){return function(e){return function(r){return n.map(r,function(n){return t.filter(n,e)})}}}function et(n,t){return function(e){return function(r){return n.map(r,function(n){return t.filterMap(n,e)})}}}function ee(n,t){var e=en(n,t);return function(n){var t=e((0,t6.not)(n)),r=e(n);return function(n){return(0,ts.separated)(t(n),r(n))}}}function er(n,t){var e=et(n,t);return function(n){return function(t){return(0,ts.separated)((0,n8.pipe)(t,e(function(t){return(0,td.getLeft)(n(t))})),(0,n8.pipe)(t,e(function(t){return(0,td.getRight)(n(t))})))}}}function ei(n,t){var e=(0,tp.getFunctorComposition)(n,t).map,r=th(n,t),i=tm(n,t,t),u=en(n,t),o=et(n,t),a=ee(n,t),c=er(n,t);return{map:e,compact:r,separate:i,filter:function(n,t){return(0,n8.pipe)(n,u(t))},filterMap:function(n,t){return(0,n8.pipe)(n,o(t))},partition:function(n,t){return(0,n8.pipe)(n,a(t))},partitionMap:function(n,t){return(0,n8.pipe)(n,c(t))}}}function eu(n,t){return function(e,r){return function(i){return n.reduce(i,e,function(n,e){return t.reduce(e,n,r)})}}}function eo(n,t){return function(e){var r=n.foldMap(e),i=t.foldMap(e);return function(n){return function(t){return r(t,function(t){return i(t,n)})}}}}function ea(n,t){return function(e,r){return function(i){return n.reduceRight(i,e,function(n,e){return t.reduceRight(n,e,r)})}}}function ec(n,t){return function(e,r){return function(i){return t.reduce(i,n.of(e),function(t,e){return n.chain(t,function(n){return r(n,e)})})}}}function ef(n,t){return function(e,r){return t.reduce(r,{init:!0,acc:n.empty},function(t,r){var i=t.init,u=t.acc;return i?{init:!1,acc:r}:{init:!1,acc:n.concat(n.concat(u,e),r)}}).acc}}function el(n){return function(t){return n.reduce(t,[],function(n,t){return n.push(t),n})}}function ep(n,t){var e=n.of(void 0);return function(r,i){return t.reduce(r,e,function(t,e){var r;return r=i(e),n.ap(n.map(t,n8.constant),r)})}}function ed(n,t){return function(e,r,i){return t.reduce(e,n.of(r),function(t,e){return n.chain(t,function(n){return i(n,e)})})}}var es=el;function eh(n,t){var e=eu(n,t),r=eo(n,t),i=ea(n,t);return{reduce:function(n,t,r){return(0,n8.pipe)(n,e(t,r))},foldMap:function(n){var t=r(n);return function(n,e){return(0,n8.pipe)(n,t(e))}},reduceRight:function(n,t,e){return(0,n8.pipe)(n,i(t,e))}}}function em(n,t){return function(e,r){return function(i){return n.reduceWithIndex(i,e,function(n,e,i){return t.reduceWithIndex(i,e,function(t,e,i){return r([n,t],e,i)})})}}}function ev(n,t){return function(e){var r=n.foldMapWithIndex(e),i=t.foldMapWithIndex(e);return function(n){return function(t){return r(t,function(t,e){return i(e,function(e,r){return n([t,e],r)})})}}}}function eg(n,t){return function(e,r){return function(i){return n.reduceRightWithIndex(i,e,function(n,e,i){return t.reduceRightWithIndex(e,i,function(t,e,i){return r([n,t],e,i)})})}}}function ey(n,t){var e=eh(n,t),r=em(n,t),i=ev(n,t),u=eg(n,t);return{reduce:e.reduce,foldMap:e.foldMap,reduceRight:e.reduceRight,reduceWithIndex:function(n,t,e){return(0,n8.pipe)(n,r(t,e))},foldMapWithIndex:function(n){var t=i(n);return function(n,e){return(0,n8.pipe)(n,t(e))}},reduceRightWithIndex:function(n,t,e){return(0,n8.pipe)(n,u(t,e))}}}var eb=e(25162);function e_(n){return function(t){return(0,n8.flow)(t,n.fromIO)}}function eI(n,t){return function(e){var r=(0,n8.flow)(e,n.fromIO);return function(n){return t.chain(n,r)}}}function eR(n,t){var e=eS(n,t);return function(n){return function(t){return e(t,n)}}}function eS(n,t){var e=(0,tu.tap)(t);return function(t,r){return e(t,(0,n8.flow)(r,n.fromIO))}}var eT=e(97963),ex=function(){return n8.identity},ew=n8.identity,eM=function(n){return function(t){return function(e){return t(n(e))}}},eO=function(n){return function(t){return n(t)(t)}},eE=eO,eC=function(n,t){return(0,n8.pipe)(n,eP(t))},ek=function(n,t){return(0,n8.pipe)(n,eA(t))},eW=function(n,t){return(0,n8.pipe)(n,eq(t))},eF=function(n,t,e){return(0,n8.pipe)(n,eG(t,e))},eP=function(n){return function(t){return function(e){return n(t(e))}}},eD=function(n){return function(t){return function(e){return t(e)(n(e))}}},eA=eD,eU=n8.constant,eL=(0,n8.dual)(2,function(n,t){return function(e){return t(n(e))(e)}}),eN=eL(n8.identity),ej=eN,eq=function(n){return function(t){return(0,n8.flow)(n,t)}},eG=function(n,t){return function(e){return function(r){return t(e(n(r)))}}},eK=function(){return n8.identity},eY=function(n){return function(t){var e=t[0],r=t[1];return[n(e),r]}},eB=function(n){return function(t){return[t[0],n(t[1])]}},eV=function(n){return tC.fold(function(t){return eT.t$(n(t))},tC.right)},eH=function(n){return tC.fold(tC.left,function(t){return eT.F2(n(t))})},ez="Reader",eX={URI:ez,map:eC},eJ=(0,tp.flap)(eX),e$={URI:ez,of:eU},eZ={URI:ez,map:eC,ap:ek},eQ=(0,nN.apFirst)(eZ),e0=eQ,e2=(0,nN.apSecond)(eZ),e1=e2,e8={URI:ez,map:eC,ap:ek,of:eU},e5={URI:ez,map:eC,ap:ek,chain:eL},e3={URI:ez,map:eC,of:eU,ap:ek,chain:eL},e7=(0,n8.dual)(2,tu.tap(e5)),e4={URI:ez,map:eC,promap:eF},e9={URI:ez,compose:eW,id:eK},e6={URI:ez,map:eC,promap:eF,first:eY,second:eB},rn={URI:ez,map:eC,promap:eF,left:eV,right:eH},rt=(0,tp.bindTo)(eX),re=(0,tp.let)(eX),rr=tu.bind(e5),ri=rr,ru=eU(eT.F4),ro=(0,nN.apS)(eZ),ra=ro,rc=eU(eT.Xl),rf=function(n){return function(t){return function(e){for(var r=[n(0,eT.YM(t))(e)],i=1;i<t.length;i++)r.push(n(i,t[i])(e));return r}}},rl=function(n){var t=rf(n);return function(n){return eT.Od(n)?t(n):rc}},rp=rl,rd=function(n){return rl(function(t,e){return n(e)})},rs=rd(n8.identity),rh=eL,rm=eL,rv=e7,rg=e7,ry={URI:ez,map:eC,of:eU,ap:ek,chain:eL,promap:eF,compose:eW,id:eK,first:eY,second:eB,left:eV,right:eH},rb=(0,nN.getApplySemigroup)(eZ),r_=(0,nG.getApplicativeMonoid)(e8);function rI(n){return function(){return n.fromReader(ex())}}function rR(n){return n.fromReader}function rS(n){return function(t){return(0,n8.flow)(t,n.fromReader)}}function rT(n,t){var e=rS(n);return function(n){return function(r){return t.chain(r,e(n))}}}function rx(n,t){var e=rw(n,t);return function(n){return function(t){return e(t,n)}}}function rw(n,t){var e=(0,tu.tap)(t);return function(t,r){return e(t,(0,n8.flow)(r,n.fromReader))}}var rM=function(){return function(n){return[n,n]}},rO=function(n){return function(){return[void 0,n]}},rE=function(n){return function(t){return[void 0,n(t)]}},rC=function(n){return function(t){return[n(t),t]}},rk=function(n,t){return(0,n8.pipe)(n,rF(t))},rW=function(n,t){return(0,n8.pipe)(n,rP(t))},rF=function(n){return function(t){return function(e){var r=t(e),i=r[0],u=r[1];return[n(i),u]}}},rP=function(n){return function(t){return function(e){var r=t(e),i=r[0],u=n(r[1]),o=u[0],a=u[1];return[i(o),a]}}},rD=function(n){return function(t){return[n,t]}},rA=(0,n8.dual)(2,function(n,t){return function(e){var r=n(e),i=r[0],u=r[1];return t(i)(u)}}),rU=rA(n8.identity),rL="State",rN={URI:rL,map:rk},rj=(0,tp.flap)(rN),rq={URI:rL,of:rD},rG={URI:rL,map:rk,ap:rW},rK=(0,nN.apFirst)(rG),rY=(0,nN.apSecond)(rG),rB={URI:rL,map:rk,ap:rW,of:rD},rV={URI:rL,map:rk,ap:rW,chain:rA},rH={URI:rL,map:rk,ap:rW,of:rD,chain:rA},rz=(0,n8.dual)(2,tu.tap(rV)),rX={URI:rL,fromState:n8.identity},rJ=function(n){return function(t){return t(n)[0]}},r$=function(n){return function(t){return t(n)[1]}},rZ=(0,tp.bindTo)(rN),rQ=(0,tp.let)(rN),r0=tu.bind(rV),r2=(0,nN.apS)(rG),r1=function(n){return function(t){return function(e){for(var r=n(0,eT.YM(t))(e),i=r[0],u=r[1],o=[i],a=u,c=1;c<t.length;c++){var f=n(c,t[c])(a),l=f[0],p=f[1];o.push(l),a=p}return[o,a]}}},r8=function(n){var t=r1(n);return function(n){return eT.Od(n)?t(n):rD(eT.Xl)}},r5=r8,r3=function(n){return r8(function(t,e){return n(e)})},r7=r3(n8.identity),r4=rA,r9=rz,r6=function(n,t){return n(t)[0]},it=function(n,t){return n(t)[1]},ie=rH;function ir(n){return function(){return n.fromState(rM())}}function ii(n){return function(t){return n.fromState(rO(t))}}function iu(n){return(0,n8.flow)(rE,n.fromState)}function io(n){return(0,n8.flow)(rC,n.fromState)}function ia(n){return function(t){return(0,n8.flow)(t,n.fromState)}}function ic(n,t){var e=ia(n);return function(n){return function(r){return t.chain(r,e(n))}}}function il(n){return function(t){return(0,n8.flow)(t,n.fromTask)}}function ip(n,t){return function(e){var r=(0,n8.flow)(e,n.fromTask);return function(n){return t.chain(n,r)}}}function id(n,t){var e=is(n,t);return function(n){return function(t){return e(t,n)}}}function is(n,t){var e=(0,tu.tap)(t);return function(t,r){return e(t,(0,n8.flow)(r,n.fromTask))}}function ih(n){return function(t){return(0,n8.flow)(t,n.fromThese)}}function im(n,t){return function(e){return function(r){return n.mapWithIndex(r,function(n,r){return t.mapWithIndex(r,function(t,r){return e([n,t],r)})})}}}function iv(n,t){var e=(0,tp.getFunctorComposition)(n,t).map,r=im(n,t);return{map:e,mapWithIndex:function(n,t){return(0,n8.pipe)(n,r(t))}}}var ig=function(n,t){return(0,n8.pipe)(n,iw(t))},iy=function(n,t){return(0,n8.pipe)(n,iM(t))},ib=function(n,t,e){return(0,n8.pipe)(n,iP(t,e))},i_=function(n){return function(t,e){return(0,n8.pipe)(t,iD(n)(e))}},iI=function(n,t,e){return(0,n8.pipe)(n,iA(t,e))},iR=function(n,t){return(0,n8.pipe)(n,ij(t))},iS=function(n,t){return(0,n8.pipe)(n,iC(t))},iT=function(n){var t=iU(n);return function(n,e){return(0,n8.pipe)(n,t(e))}},ix=to.tailRec,iw=function(n){return function(t){return n(t)}},iM=function(n){return function(t){return t(n)}},iO=n8.identity,iE=(0,n8.dual)(2,function(n,t){return t(n)}),iC=function(n){return function(t){return n(t)}},ik=n8.identity,iW=iC(n8.identity),iF=iE(n8.identity),iP=function(n,t){return function(e){return t(n,e)}},iD=function(){return function(n){return function(t){return n(t)}}},iA=function(n,t){return function(e){return t(e,n)}},iU=function(n){return function(t){return function(e){return n.map(t(e),n8.identity)}}},iL=function(n){return function(t){return n.map(t,n8.identity)}},iN=function(){return n8.identity},ij=iN,iq="Identity",iG=n8.identity,iK=n8.identity,iY={URI:iq,map:ig},iB=(0,tp.flap)(iY),iV={URI:iq,of:iO},iH={URI:iq,map:ig,ap:iy},iz=(0,nN.apFirst)(iH),iX=(0,nN.apSecond)(iH),iJ={URI:iq,map:ig,ap:iy,of:iO},i$={URI:iq,map:ig,ap:iy,chain:iE},iZ={URI:iq,map:ig,ap:iy,of:iO,chain:iE},iQ=(0,tu.chainFirst)(i$),i0={URI:iq,reduce:ib,foldMap:i_,reduceRight:iI},i2={URI:iq,map:ig,reduce:ib,foldMap:i_,reduceRight:iI,traverse:iT,sequence:iL},i1={URI:iq,map:ig,alt:iR},i8={URI:iq,map:ig,extend:iS,extract:ik},i5={URI:iq,map:ig,ap:iy,chain:iE,chainRec:ix},i3=iO(eT.F4),i7=(0,tp.bindTo)(iY),i4=(0,tp.let)(iY),i9=(0,tu.bind)(i$),i6=(0,nN.apS)(iH),un=iE,ut={URI:iq,map:ig,ap:iy,of:iO,chain:iE,reduce:ib,foldMap:i_,reduceRight:iI,traverse:iT,sequence:iL,alt:iR,extract:ik,extend:iS,chainRec:ix},ue=function(n,t){return function(){return t(n())}},ur=function(n,t){return function(){return n()(t())}},ui=function(n,t){return function(){for(var e=t(n)();"Left"===e._tag;)e=t(e.left)();return e.right}},uu=function(n){return function(t){return ue(t,n)}},uo=function(n){return function(t){return ur(t,n)}},ua=n8.constant,uc=(0,n8.dual)(2,function(n,t){return function(){return t(n())()}}),uf=uc(n8.identity),ul="IO",up={URI:ul,map:ue},ud=(0,n8.dual)(2,(0,tp.as)(up)),us=(0,tp.asUnit)(up),uh=(0,tp.flap)(up),um={URI:ul,of:ua},uv={URI:ul,map:ue,ap:ur},ug=(0,nN.apFirst)(uv),uy=(0,nN.apSecond)(uv),ub={URI:ul,map:ue,ap:ur,of:ua},u_={URI:ul,map:ue,ap:ur,chain:uc},uI={URI:ul,map:ue,ap:ur,of:ua,chain:uc},uR=(0,n8.dual)(2,tu.tap(u_)),uS=n8.identity,uT={URI:ul,map:ue,ap:ur,of:ua,chain:uc,fromIO:uS},ux={URI:ul,map:ue,ap:ur,chain:uc,chainRec:ui},uw={URI:ul,fromIO:n8.identity},uM=ua(eT.F4),uO=(0,tp.bindTo)(up),uE=(0,tp.let)(up),uC=tu.bind(u_),uk=(0,nN.apS)(uv),uW=ua(eT.Xl),uF=function(n){return function(t){return function(){for(var e=[n(0,eT.YM(t))()],r=1;r<t.length;r++)e.push(n(r,t[r])());return e}}},uP=function(n){var t=uF(n);return function(n){return eT.Od(n)?t(n):uW}},uD=uP,uA=function(n){return uP(function(t,e){return n(e)})},uU=uA(n8.identity),uL=uc,uN=uR,uj={URI:ul,map:ue,of:ua,ap:ur,chain:uc,fromIO:uS,chainRec:ui},uq=(0,nN.getApplySemigroup)(uv),uG=(0,nG.getApplicativeMonoid)(ub),uK=tW(um),uY=tk(um),uB=tF(up),uV=tP(up),uH=ua,uz=uB,uX=tz(up),uJ=uX,u$=tX(uI),uZ=u$,uQ=u$,u0=uQ,u2=tJ(uI),u1=u2,u8=function(n,t){return function(){return tC.tryCatch(n,t)}},u5=function(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return u8(function(){return n.apply(void 0,e)},t)}},u3=t1(up),u7=t$(uI),u4=u7,u9=(0,n8.dual)(2,tQ(uI)),u6=function(n){return u9(oH(n))},on=t0(uI),ot=t2(up),oe=function(n,t){return(0,n8.pipe)(n,ou(t))},or=function(n,t){return(0,n8.pipe)(n,ol(t))},oi=function(n,t){return(0,n8.pipe)(n,ov(t))},ou=tL(up),oo=(0,n8.dual)(3,tY(up)),oa=oo,oc=(0,n8.dual)(2,tV(up)),of=oc,ol=tN(uv),op=ol,od=uY,os=(0,n8.dual)(2,tq(uI)),oh=os(n8.identity),om=oh,ov=tG(uI),og=ov,oy=uK,ob="IOEither";function o_(n){var t=(0,nN.ap)(uv,tC.getApplicativeValidation(n));return{URI:ob,_E:void 0,map:oe,ap:function(n,e){return(0,n8.pipe)(n,t(e))},of:od}}function oI(n){var t=tH(uI,n);return{URI:ob,_E:void 0,map:oe,alt:function(n,e){return(0,n8.pipe)(n,t(e))}}}var oR=function(n){var t=tC.getCompactable(n);return{URI:ob,_E:void 0,compact:th(up,t),separate:tm(up,t,tC.Functor)}};function oS(n){var t=tC.getFilterable(n),e=oR(n),r=en(up,t),i=et(up,t),u=ee(up,t),o=er(up,t);return{URI:ob,_E:void 0,map:oe,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,n8.pipe)(n,r(t))},filterMap:function(n,t){return(0,n8.pipe)(n,i(t))},partition:function(n,t){return(0,n8.pipe)(n,u(t))},partitionMap:function(n,t){return(0,n8.pipe)(n,o(t))}}}var oT={URI:ob,map:oe},ox=(0,n8.dual)(2,(0,tp.as)(oT)),ow=(0,tp.asUnit)(oT),oM=(0,tp.flap)(oT),oO={URI:ob,of:od},oE={URI:ob,bimap:oo,mapLeft:oc},oC={URI:ob,map:oe,ap:or},ok=(0,nN.apFirst)(oC),oW=ok,oF=(0,nN.apSecond)(oC),oP=oF,oD={URI:ob,map:oe,ap:or,of:od},oA={URI:ob,map:oe,ap:function(n,t){return os(n,function(n){return(0,n8.pipe)(t,ou(n))})},of:od},oU={URI:ob,map:oe,ap:or,chain:os},oL={URI:ob,map:oe,ap:or,of:od,chain:os},oN={URI:ob,fromEither:uH},oj={URI:ob,fromIO:uz},oq=(0,n8.dual)(2,tu.tap(oU)),oG=(0,n8.dual)(2,(0,eb.tapEither)(oN,oU)),oK=(0,n8.dual)(2,eS(oj,oU)),oY={URI:ob,map:oe,alt:oi},oB={URI:ob,map:oe,ap:or,of:od,chain:os,fromIO:uz},oV={URI:ob,map:oe,ap:or,of:od,chain:os,throwError:oy},oH=e_(oj),oz=oK,oX=(0,eb.fromOption)(oN),oJ=(0,eb.fromOptionK)(oN),o$=(0,eb.chainOptionK)(oN,oU),oZ=o$,oQ={fromEither:oN.fromEither},o0=eT.uL(oQ),o2=eT.WE(oQ),o1={flatMap:os},o8=eT.ny(oQ,o1),o5=eT.hU(oQ,o1),o3=eT.iu(oQ,o1),o7=eT.we({fromIO:uz},o1),o4=o7,o9=o3,o6=o3,an=oG,at=oG,ae=(0,eb.fromPredicate)(oN),ar=(0,eb.filterOrElse)(oN,oU),ai=ar,au=(0,eb.fromEitherK)(oN),ao=function(n,t,e){return aa(n,t,e)},aa=function(n,t,e){return os(n,function(n){return uc(t(n),function(t){return os(e(n,t),function(){return ua(t)})})})},ac=od(eT.F4),af=(0,tp.bindTo)(oT),al=(0,tp.let)(oT),ap=tu.bind(oU),ad=ap,as=(0,nN.apS)(oC),ah=as,am=od(eT.Xl),av=function(n){return(0,n8.flow)(uF(n),uu(tC.traverseReadonlyNonEmptyArrayWithIndex(n8.SK)))},ag=function(n){var t=av(n);return function(n){return eT.Od(n)?t(n):am}},ay=function(n){return function(t){return function(){var e=n(0,eT.YM(t))();if(eT.nM(e))return e;for(var r=[e.right],i=1;i<t.length;i++){var u=n(i,t[i])();if(eT.nM(u))return u;r.push(u.right)}return eT.F2(r)}}},ab=function(n){var t=ay(n);return function(n){return eT.Od(n)?t(n):am}},a_=ag,aI=function(n){return ag(function(t,e){return n(e)})},aR=aI(n8.identity),aS=ab,aT=function(n){return ab(function(t,e){return n(e)})},ax=aT(n8.identity),aw=oD,aM=os,aO=os,aE=oq,aC=oq,ak=u9,aW=u9,aF={URI:ob,bimap:oo,mapLeft:oc,map:oe,of:od,ap:or,chain:os,alt:oi,fromIO:uz,throwError:oy},aP=(0,nN.getApplySemigroup)(oC),aD=(0,nG.getApplicativeMonoid)(oD),aA=function(n){return(0,nN.getApplySemigroup)(uv)(tC.getSemigroup(n))};function aU(n){var t=o_(n),e=oI(n);return{URI:ob,_E:void 0,map:oe,ap:t.ap,of:od,chain:os,bimap:oo,mapLeft:oc,alt:e.alt,fromIO:uz,throwError:oy}}function aL(n){return(0,n8.flow)(td.some,n.of)}function aN(n){return(0,n8.constant)(n.of(td.none))}function aj(n){return function(t){return n.map(t,td.some)}}function aq(n){return(0,n8.flow)(td.fromNullable,n.of)}function aG(n){var t=aq(n);return function(n){return(0,n8.flow)(n,t)}}function aK(n){var t=aQ(n),e=aG(n);return function(n){return t(e(n))}}function aY(n){return function(t){return(0,n8.flow)(t,n.of)}}function aB(n){var t=aQ(n),e=aY(n);return function(n){return t(e(n))}}function aV(n){return function(t){return function(e){return n.of(td.fromPredicate(t)(e))}}}function aH(n){return(0,n8.flow)(td.fromEither,n.of)}function az(n){return function(t,e){return function(r){return n.map(r,td.match(t,e))}}}function aX(n){return function(t,e){return function(r){return n.chain(r,td.match(t,e))}}}function aJ(n){return function(t){return function(e){return n.chain(e,td.match(t,n.of))}}}function a$(n){return(0,tp.map)(n,td.Functor)}function aZ(n){return(0,nN.ap)(n,td.Apply)}function aQ(n){var t=a0(n);return function(n){return function(e){return t(e,n)}}}function a0(n){var t=aN(n);return function(e,r){return n.chain(e,td.match(function(){return t()},r))}}function a2(n){var t=aL(n);return function(e){return function(r){return n.chain(r,td.match(e,t))}}}function a1(n){var t=aZ(n),e=a$(n),r=aQ(n),i=a2(n),u=aX(n),o=aJ(n),a=aN(n);return{map:function(n,t){return(0,n8.pipe)(n,e(t))},ap:function(n,e){return(0,n8.pipe)(n,t(e))},of:aL(n),chain:function(n,t){return(0,n8.pipe)(n,r(t))},alt:function(n,t){return(0,n8.pipe)(n,i(t))},fold:function(n,t,e){return(0,n8.pipe)(n,u(t,e))},getOrElse:function(n,t){return(0,n8.pipe)(n,o(t))},fromM:aj(n),none:function(){return a()}}}var a8=e(28957),a5=aL(um),a3=aV(um),a7=ua,a4=aH(um),a9=aj(up),a6=uu(td.fromEither),cn=az(up),ct=cn,ce=aX(u_),cr=ce,ci=ce,cu=aJ(uI),co=cu,ca=uu(td.toUndefined),cc=uu(td.toNullable),cf=aq(um),cl=aG(um),cp=aK(uI),cd=aY(um),cs=a$(up),ch=aZ(uv),cm=a5,cv=(0,n8.dual)(2,a0(uI)),cg=cv(n8.identity),cy=a2(uI),cb=cy,c_=aN(um),cI=c_(),cR=th(up,td.Compactable),cS=tm(up,td.Compactable,td.Functor),cT=en(up,td.Filterable),cx=et(up,td.Filterable),cw=ee(up,td.Filterable),cM=er(up,td.Filterable),cO=function(n,t){return(0,n8.pipe)(n,cs(t))},cE=function(n,t){return(0,n8.pipe)(n,ch(t))},cC=function(n,t){return(0,n8.pipe)(n,cy(t))},ck="IOOption",cW={URI:ck,map:cO},cF=(0,n8.dual)(2,(0,tp.as)(cW)),cP=(0,tp.asUnit)(cW),cD=(0,tp.flap)(cW),cA={URI:ck,of:cm},cU={URI:ck,map:cO,ap:cE},cL=(0,nN.apFirst)(cU),cN=(0,nN.apSecond)(cU),cj={URI:ck,map:cO,ap:cE,of:cm},cq={URI:ck,map:cO,ap:cE,chain:cv},cG={URI:ck,fromEither:a4},cK={URI:ck,fromIO:a9},cY=(0,n8.dual)(2,tu.tap(cq)),cB=(0,n8.dual)(2,(0,eb.tapEither)(cG,cq)),cV=(0,n8.dual)(2,eS(cK,cq)),cH={URI:ck,map:cO,alt:cC},cz={URI:ck,zero:c_},cX=(0,a8.guard)(cz,cA),cJ={URI:ck,map:cO,ap:cE,of:cm,alt:cC,zero:c_},c$={URI:ck,map:cO,ap:cE,of:cm,chain:cv},cZ={URI:ck,map:cO,ap:cE,of:cm,chain:cv,fromIO:a9},cQ={URI:ck,compact:cR,separate:cS},c0={URI:ck,map:cO,compact:cR,separate:cS,filter:function(n,t){return(0,n8.pipe)(n,cT(t))},filterMap:function(n,t){return(0,n8.pipe)(n,cx(t))},partition:function(n,t){return(0,n8.pipe)(n,cw(t))},partitionMap:function(n,t){return(0,n8.pipe)(n,cM(t))}},c2={flatMap:cv},c1={fromIO:cK.fromIO},c8=eT.we(c1,c2),c5=(0,n8.dual)(2,function(n,t){return cv(n,cd(t))}),c3=eT.iu({fromEither:a4},c2),c7=(0,n8.dual)(2,function(n,t){return cv(n,cl(t))}),c4=e_(cK),c9=c8,c6=cV,fn=(0,eb.fromEitherK)(cG),ft=c3,fe=cB,fr=c5,fi=cm(eT.F4),fu=(0,tp.bindTo)(cW),fo=(0,tp.let)(cW),fa=tu.bind(cq),fc=(0,nN.apS)(cU),ff=cm(eT.Xl),fl=function(n){return(0,n8.flow)(uF(n),uu(td.traverseReadonlyNonEmptyArrayWithIndex(n8.SK)))},fp=function(n){var t=fl(n);return function(n){return eT.Od(n)?t(n):ff}},fd=cv,fs=cY,fh=function(){function n(n){var t=this;this.value=n,this.read=function(){return t.value},this.write=this.write.bind(this),this.modify=this.modify.bind(this)}return n.prototype.write=function(n){var t=this;return function(){t.value=n}},n.prototype.modify=function(n){var t=this;return function(){t.value=n(t.value)}},n}();function fm(n){return function(){return new fh(n)}}var fv=function(n){return(0,tC.tryCatch)(function(){return JSON.parse(n)},n8.identity)},fg=function(n){return(0,tC.tryCatch)(function(){var t=JSON.stringify(n);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},n8.identity)},fy=e(76113),fb=e(55116),f_=e(96576),fI=e(43586),fR=function(n,t,e){return function(r){return -1===r?n():0===r?t():e()}},fS=fR,fT=function(n){return -1===n?1:1===n?-1:0},fx={equals:function(n,t){return n===t}},fw={concat:function(n,t){return 0!==n?n:t}},fM={concat:fw.concat,empty:0},fO=function(n){return n<=-1?-1:n>=1?1:0},fE=fT,fC=fw,fk=fx,fW=fM,fF=e(18896),fP=function(){return Math.random()};function fD(n,t){return(0,n8.pipe)(fP,uu(function(e){return Math.floor((t-n+1)*e+n)}))}function fA(n,t){return(0,n8.pipe)(fP,uu(function(e){return(t-n)*e+n}))}var fU=(0,n8.pipe)(fP,uu(function(n){return n<.5})),fL=function(n){return(0,n8.pipe)(fD(0,n.length-1),uu(function(t){return n[t]}))},fN=tW(e$),fj=tk(e$),fq=tF(eX),fG=tP(eX),fK=eU,fY=fq,fB=tz(eX),fV=fB,fH=tX(e3),fz=fH,fX=fH,fJ=fX,f$=tJ(e3),fZ=f$,fQ=t1(eX),f0=eM,f2=eO,f1=f2,f8=t$(e3),f5=f8,f3=(0,n8.dual)(2,tQ(e3)),f7=t0(e3),f4=t2(eX),f9=function(n,t){return(0,n8.pipe)(n,lt(t))},f6=function(n,t){return(0,n8.pipe)(n,lo(t))},ln=function(n,t){return(0,n8.pipe)(n,ld(t))},lt=tL(eX),le=(0,n8.dual)(3,tY(eX)),lr=le,li=(0,n8.dual)(2,tV(eX)),lu=li,lo=tN(eZ),la=lo,lc=fj,lf=(0,n8.dual)(2,tq(e3)),ll=lf(n8.identity),lp=ll,ld=tG(e3),ls=ld,lh=fN,lm="ReaderEither",lv=function(n){var t=tC.getCompactable(n);return{URI:lm,_E:void 0,compact:th(eX,t),separate:tm(eX,t,tC.Functor)}};function lg(n){var t=tC.getFilterable(n),e=lv(n),r=en(eX,t),i=et(eX,t),u=ee(eX,t),o=er(eX,t);return{URI:lm,_E:void 0,map:f9,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,n8.pipe)(n,r(t))},filterMap:function(n,t){return(0,n8.pipe)(n,i(t))},partition:function(n,t){return(0,n8.pipe)(n,u(t))},partitionMap:function(n,t){return(0,n8.pipe)(n,o(t))}}}function ly(n){var t=(0,nN.ap)(eZ,tC.getApplicativeValidation(n));return{URI:lm,_E:void 0,map:f9,ap:function(n,e){return(0,n8.pipe)(n,t(e))},of:lc}}function lb(n){var t=tH(e3,n);return{URI:lm,_E:void 0,map:f9,alt:function(n,e){return(0,n8.pipe)(n,t(e))}}}var l_={URI:lm,map:f9},lI=(0,n8.dual)(2,(0,tp.as)(l_)),lR=(0,tp.asUnit)(l_),lS=(0,tp.flap)(l_),lT={URI:lm,of:lc},lx={URI:lm,map:f9,ap:f6},lw=(0,nN.apFirst)(lx),lM=lw,lO=(0,nN.apSecond)(lx),lE=lO,lC={URI:lm,map:f9,ap:f6,of:lc},lk={URI:lm,map:f9,ap:f6,chain:lf},lW={URI:lm,map:f9,ap:f6,of:lc,chain:lf},lF={URI:lm,fromEither:fK},lP={URI:lm,fromReader:fY},lD=(0,n8.dual)(2,tu.tap(lk)),lA=(0,n8.dual)(2,(0,eb.tapEither)(lF,lk)),lU=(0,n8.dual)(2,rw(lP,lk)),lL={URI:lm,bimap:le,mapLeft:li},lN={URI:lm,map:f9,alt:ln},lj=rI(lP),lq=rR(lP),lG=rS(lP),lK=lU,lY=lU,lB={URI:lm,map:f9,ap:f6,of:lc,chain:lf,throwError:lh},lV=(0,eb.fromOption)(lF),lH=(0,eb.fromOptionK)(lF),lz=(0,eb.chainOptionK)(lF,lk),lX=lz,lJ={fromEither:lF.fromEither},l$={fromReader:lP.fromReader},lZ=eT.uL(lJ),lQ=eT.WE(lJ),l0={flatMap:lf},l2=eT.ny(lJ,l0),l1=eT.hU(lJ,l0),l8=eT.iu(lJ,l0),l5=eT.on(l$,l0),l3=l8,l7=l8,l4=lA,l9=lA,l6=l5,pn=l5,pt=(0,eb.fromPredicate)(lF),pe=(0,eb.filterOrElse)(lF,lk),pr=pe,pi=(0,eb.fromEitherK)(lF),pu=lc(eT.F4),po=(0,tp.bindTo)(l_),pa=(0,tp.let)(l_),pc=tu.bind(lk),pf=pc,pl=(0,nN.apS)(lx),pp=pl,pd=lc(eT.Xl),ps=function(n){return(0,n8.flow)(rf(n),eP(tC.traverseReadonlyNonEmptyArrayWithIndex(n8.SK)))},ph=function(n){var t=ps(n);return function(n){return eT.Od(n)?t(n):pd}},pm=ph,pv=function(n){return ph(function(t,e){return n(e)})},pg=pv(n8.identity),py=lf,pb=lf,p_=lD,pI=lD,pR=f3,pS=f3,pT={URI:lm,bimap:le,mapLeft:li,map:f9,of:lc,ap:f6,chain:lf,alt:ln,throwError:fN},px=(0,nN.getApplySemigroup)(lx),pw=(0,nG.getApplicativeMonoid)(lC),pM=function(n){return(0,nN.getApplySemigroup)(eZ)(tC.getSemigroup(n))};function pO(n){var t=ly(n),e=lb(n);return{URI:lm,_E:void 0,map:f9,ap:t.ap,of:lc,chain:lf,bimap:le,mapLeft:li,alt:e.alt,throwError:lh}}function pE(n){return function(t){return function(){return n.of(t)}}}function pC(n){return function(t){return function(e){return function(r){return n.map(e(r),t)}}}}function pk(n){return function(t){return function(e){return function(r){return n.ap(e(r),t(r))}}}}function pW(n){var t=pF(n);return function(n){return function(e){return t(e,n)}}}function pF(n){return function(t,e){return function(r){return n.chain(t(r),function(n){return e(n)(r)})}}}function pP(n){return function(t){return(0,n8.flow)(t,n.of)}}function pD(n){return function(t){return(0,n8.flow)(t,n)}}function pA(n){var t=pk(n),e=pC(n),r=pW(n);return{map:function(n,t){return(0,n8.pipe)(n,e(t))},ap:function(n,e){return(0,n8.pipe)(n,t(e))},of:pE(n),chain:function(n,t){return(0,n8.pipe)(n,r(t))},ask:function(){return n.of},asks:function(t){return(0,n8.flow)(t,n.of)},local:function(n,t){return function(e){return n(t(e))}},fromReader:pP(n),fromM:function(n){return function(){return n}}}}var pU=pP(um),pL=eU,pN=eM,pj=eO,pq=pj,pG=function(n,t){return(0,n8.pipe)(n,pY(t))},pK=function(n,t){return(0,n8.pipe)(n,pB(t))},pY=pC(up),pB=pk(uv),pV=pB,pH=pE(um),pz=(0,n8.dual)(2,pF(uI)),pX=pz(n8.identity),pJ=pX,p$="ReaderIO",pZ={URI:p$,map:pG},pQ=(0,n8.dual)(2,(0,tp.as)(pZ)),p0=(0,tp.asUnit)(pZ),p2=(0,tp.flap)(pZ),p1={URI:p$,of:pH},p8={URI:p$,map:pG,ap:pK},p5=(0,nN.apFirst)(p8),p3=(0,nN.apSecond)(p8),p7={URI:p$,map:pG,ap:pK,of:pH},p4={URI:p$,map:pG,ap:pK,chain:pz},p9={URI:p$,map:pG,of:pH,ap:pK,chain:pz},p6={URI:p$,map:pG,of:pH,ap:pK,chain:pz,fromIO:pL},dn={URI:p$,fromIO:pL},dt={URI:p$,fromReader:pU},de={flatMap:pz},dr={fromIO:dn.fromIO},di=eT.we(dr,de),du=eT.on({fromReader:pU},de),da=(0,n8.dual)(2,tu.tap(p4)),dc=(0,n8.dual)(2,eS(dn,p4)),df=(0,n8.dual)(2,rw(dt,p4)),dl=e_(dn),dp=di,dd=dc,ds=rI(dt),dh=rR(dt),dm=rS(dt),dv=du,dg=du,dy=df,db=df,d_=pH(eT.F4),dI=(0,tp.bindTo)(pZ),dR=tu.bind(p4),dS=dR,dT=(0,nN.apS)(p8),dx=dT,dw=pH(eT.Xl),dM=function(n){return(0,n8.flow)(rf(n),eP(uF(n8.SK)))},dO=function(n){var t=dM(n);return function(n){return eT.Od(n)?t(n):dw}},dE=dO,dC=function(n){return dO(function(t,e){return n(e)})},dk=dC(n8.identity),dW=pz,dF=pz,dP=da,dD=da,dA=function(n){return function(){return Promise.resolve().then(n)}};function dU(n){return function(t){return function(){return new Promise(function(e){setTimeout(function(){Promise.resolve().then(t).then(e)},n)})}}}var dL=function(n,t){return(0,n8.pipe)(n,dq(t))},dN=function(n,t){return(0,n8.pipe)(n,dG(t))},dj=function(n,t){return dY(n,function(n){return(0,n8.pipe)(t,dq(n))})},dq=function(n){return function(t){return function(){return Promise.resolve().then(t).then(n)}}},dG=function(n){return function(t){return function(){return Promise.all([Promise.resolve().then(t),Promise.resolve().then(n)]).then(function(n){return(0,n[0])(n[1])})}}},dK=function(n){return function(){return Promise.resolve(n)}},dY=(0,n8.dual)(2,function(n,t){return function(){return Promise.resolve().then(n).then(function(n){return t(n)()})}}),dB=dY(n8.identity),dV="Task";function dH(){return{concat:function(n,t){return function(){return Promise.race([Promise.resolve().then(n),Promise.resolve().then(t)])}},empty:sf}}var dz={URI:dV,map:dL},dX=(0,n8.dual)(2,(0,tp.as)(dz)),dJ=(0,tp.asUnit)(dz),d$=(0,tp.flap)(dz),dZ={URI:dV,of:dK},dQ={URI:dV,map:dL,ap:dN},d0=(0,nN.apFirst)(dQ),d2=(0,nN.apSecond)(dQ),d1={URI:dV,map:dL,ap:dN,of:dK},d8={URI:dV,map:dL,ap:dj},d5={URI:dV,map:dL,ap:dj,of:dK},d3={URI:dV,map:dL,ap:dN,chain:dY},d7={URI:dV,map:dL,of:dK,ap:dN,chain:dY},d4={URI:dV,map:dL,of:dK,ap:dN,chain:dY,fromIO:dA},d9=n8.identity,d6={URI:dV,map:dL,of:dK,ap:dN,chain:dY,fromIO:dA,fromTask:d9},sn={URI:dV,fromIO:dA},st={fromIO:sn.fromIO},se=eT.we(st,{flatMap:dY}),sr=(0,n8.dual)(2,tu.tap(d3)),si=(0,n8.dual)(2,eS(sn,d3)),su=e_(sn),so=se,sa=si,sc={URI:dV,fromIO:dA,fromTask:d9},sf=function(){return new Promise(function(n){})},sl=dK(eT.F4),sp=(0,tp.bindTo)(dz),sd=(0,tp.let)(dz),ss=tu.bind(d3),sh=(0,nN.apS)(dQ),sm=dK(eT.Xl),sv=function(n){return function(t){return function(){return Promise.all(t.map(function(t,e){return Promise.resolve().then(function(){return n(e,t)()})}))}}},sg=function(n){var t=sv(n);return function(n){return eT.Od(n)?t(n):sm}},sy=function(n){return function(t){return function(){return eT.Gb(t).reduce(function(t,e,r){return t.then(function(t){return Promise.resolve().then(n(r+1,e)).then(function(n){return t.push(n),t})})},Promise.resolve().then(n(0,eT.YM(t))).then(eT.ri))}}},sb=function(n){var t=sy(n);return function(n){return eT.Od(n)?t(n):sm}},s_=sg,sI=function(n){return sg(function(t,e){return n(e)})},sR=sI(n8.identity),sS=sb,sT=function(n){return sb(function(t,e){return n(e)})},sx=sT(n8.identity),sw=dY,sM=sr,sO={URI:dV,map:dL,of:dK,ap:dN,chain:dY,fromIO:dA,fromTask:d9},sE={URI:dV,map:dL,of:dK,ap:dj,chain:dY,fromIO:dA,fromTask:d9},sC=(0,nN.getApplySemigroup)(d8),sk=(0,nG.getApplicativeMonoid)(d5),sW=pP(dZ),sF=eU,sP=(0,n8.flow)(dA,sF),sD=eP(dA),sA=eM,sU=eO,sL=sU,sN=function(n,t){return(0,n8.pipe)(n,sG(t))},sj=function(n,t){return(0,n8.pipe)(n,sK(t))},sq=function(n,t){return sV(n,function(n){return(0,n8.pipe)(t,sG(n))})},sG=pC(dz),sK=pk(dQ),sY=sK,sB=pE(dZ),sV=(0,n8.dual)(2,pF(d7)),sH=sV(n8.identity),sz=sH,sX="ReaderTask",sJ={URI:sX,map:sN},s$=(0,n8.dual)(2,(0,tp.as)(sJ)),sZ=(0,tp.asUnit)(sJ),sQ=(0,tp.flap)(sJ),s0={URI:sX,of:sB},s2={URI:sX,map:sN,ap:sj},s1=(0,nN.apFirst)(s2),s8=(0,nN.apSecond)(s2),s5={URI:sX,map:sN,ap:sj,of:sB},s3={URI:sX,map:sN,ap:sq},s7={URI:sX,map:sN,ap:sq,of:sB},s4={URI:sX,map:sN,ap:sj,chain:sV},s9={URI:sX,map:sN,of:sB,ap:sj,chain:sV},s6={URI:sX,map:sN,of:sB,ap:sj,chain:sV,fromIO:sP},hn={URI:sX,map:sN,of:sB,ap:sj,chain:sV,fromIO:sP,fromTask:sF},ht={URI:sX,fromIO:sP},he={URI:sX,fromIO:sP,fromTask:sF},hr={URI:sX,fromReader:sW},hi={flatMap:sV},hu={fromIO:ht.fromIO},ho=eT.we(hu,hi),ha=eT.D9({fromTask:sF},hi),hc=eT.on({fromReader:sW},hi),hf=(0,n8.dual)(2,function(n,t){return sV(n,hx(t))}),hl=(0,n8.dual)(2,tu.tap(s4)),hp=(0,n8.dual)(2,eS(ht,s4)),hd=(0,n8.dual)(2,rw(hr,s4)),hs=(0,n8.dual)(2,is(he,s4)),hh=(0,n8.dual)(2,function(n,t){return hl(n,hx(t))}),hm=e_(ht),hv=ho,hg=hp,hy=rI(hr),hb=rR(hr),h_=rS(hr),hI=hc,hR=hc,hS=hd,hT=hd,hx=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return sD(n.apply(void 0,t))}},hw=hf,hM=hf,hO=hh,hE=hh,hC=il(he),hk=ha,hW=hs,hF=sB(eT.F4),hP=(0,tp.bindTo)(sJ),hD=(0,tp.let)(sJ),hA=tu.bind(s4),hU=hA,hL=(0,nN.apS)(s2),hN=hL,hj=sB(eT.Xl),hq=function(n){return(0,n8.flow)(rf(n),eP(sv(n8.SK)))},hG=function(n){var t=hq(n);return function(n){return eT.Od(n)?t(n):hj}},hK=function(n){return(0,n8.flow)(rf(n),eP(sy(n8.SK)))},hY=function(n){var t=hK(n);return function(n){return eT.Od(n)?t(n):hj}},hB=hG,hV=function(n){return hG(function(t,e){return n(e)})},hH=hV(n8.identity),hz=hY,hX=function(n){return hY(function(t,e){return n(e)})},hJ=sV,h$=sV,hZ=hl,hQ=hl,h0=hX(n8.identity),h2={URI:sX,map:sN,of:sB,ap:sj,chain:sV,fromIO:sP,fromTask:sF},h1={URI:sX,map:sN,of:sB,ap:sq,chain:sV,fromIO:sP,fromTask:sF},h8=(0,nN.getApplySemigroup)(s3),h5=(0,nG.getApplicativeMonoid)(s7);function h3(n,t){return n(t)()}var h7=function(n,t){var e,r,i,u,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(c){return function(a){if(e)throw TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(o=0)),o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(n,o)}catch(n){a=[6,n],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},h4=tW(dZ),h9=tk(dZ),h6=tF(dz),mn=tP(dz),mt=(0,n8.flow)(dA,h6),me=(0,n8.flow)(dA,mn),mr=mt,mi=h6,mu=dK,mo=dA,ma=function(n){return dq(tC.fromOption(n))},mc=tz(dz),mf=mc,ml=tX(d7),mp=ml,md=ml,ms=md,mh=tJ(d7),mm=mh,mv=function(n,t){return function(){var e,r,i,u;return e=void 0,r=void 0,i=void 0,u=function(){var e;return h7(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,n().then(eT.F2)];case 1:return[2,r.sent()];case 2:return e=r.sent(),[2,eT.t$(t(e))];case 3:return[2]}})},new(i||(i=Promise))(function(n,t){function o(n){try{c(u.next(n))}catch(n){t(n)}}function a(n){try{c(u.throw(n))}catch(n){t(n)}}function c(t){var e;t.done?n(t.value):((e=t.value)instanceof i?e:new i(function(n){n(e)})).then(o,a)}c((u=u.apply(e,r||[])).next())})}},mg=function(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return mv(function(){return n.apply(void 0,e)},t)}},my=t1(dz),mb=tD(dZ),m_=tA(dZ),mI=tU(d7),mR=t$(d7),mS=mR,mT=(0,n8.dual)(2,tQ(d7)),mx=function(n){return mT(vK(n))},mw=function(n){return mT(vV(n))},mM=t0(d7),mO=t2(dz),mE=function(n){var t=ma(n);return function(n){return(0,n8.flow)(n,t)}},mC=function(n){return function(t){return function(e){return mY(e,mE(n)(t))}}},mk=mC,mW=function(n){return(0,n8.flow)(n,mo)},mF=function(n,t){return(0,n8.pipe)(n,mU(t))},mP=function(n,t){return(0,n8.pipe)(n,mG(t))},mD=function(n,t){return mY(n,function(n){return(0,n8.pipe)(t,mU(n))})},mA=function(n,t){return(0,n8.pipe)(n,mH(t))},mU=tL(dz),mL=(0,n8.dual)(3,tY(dz)),mN=mL,mj=(0,n8.dual)(2,tV(dz)),mq=mj,mG=tN(dQ),mK=mG,mY=(0,n8.dual)(2,tq(d7)),mB=mY(n8.identity),mV=mB,mH=tG(d7),mz=mH,mX=h9,mJ=h4,m$="TaskEither";function mZ(n,t){var e=(0,nN.ap)(n,tC.getApplicativeValidation(t));return{URI:m$,_E:void 0,map:mF,ap:function(n,t){return(0,n8.pipe)(n,e(t))},of:mX}}function mQ(n){var t=tH(d7,n);return{URI:m$,_E:void 0,map:mF,alt:function(n,e){return(0,n8.pipe)(n,t(e))}}}var m0=function(n){var t=tC.getCompactable(n);return{URI:m$,_E:void 0,compact:th(dz,t),separate:tm(dz,t,tC.Functor)}};function m2(n){var t=tC.getFilterable(n),e=m0(n),r=en(dz,t),i=et(dz,t),u=ee(dz,t),o=er(dz,t);return{URI:m$,_E:void 0,map:mF,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,n8.pipe)(n,r(t))},filterMap:function(n,t){return(0,n8.pipe)(n,i(t))},partition:function(n,t){return(0,n8.pipe)(n,u(t))},partitionMap:function(n,t){return(0,n8.pipe)(n,o(t))}}}var m1={URI:m$,map:mF},m8=(0,n8.dual)(2,(0,tp.as)(m1)),m5=(0,tp.asUnit)(m1),m3=(0,tp.flap)(m1),m7={URI:m$,of:mX},m4={URI:m$,map:mF,ap:mP},m9=(0,nN.apFirst)(m4),m6=m9,vn=(0,nN.apSecond)(m4),vt=vn,ve={URI:m$,map:mF,ap:mP,of:mX},vr={URI:m$,map:mF,ap:mD},vi={URI:m$,map:mF,ap:mD,of:mX},vu={URI:m$,map:mF,ap:mP,chain:mY},vo={URI:m$,map:mF,ap:mP,chain:mY,of:mX},va={URI:m$,map:mF,ap:mP,chain:mY,of:mX,fromIO:mr},vc={URI:m$,map:mF,ap:mP,chain:mY,of:mX,fromIO:mr,fromTask:mi},vf={URI:m$,map:mF,ap:mP,chain:mY,of:mX,throwError:mJ},vl={URI:m$,fromEither:mu},vp={URI:m$,fromIO:mr},vd={URI:m$,fromIO:mr,fromTask:mi},vs=(0,n8.dual)(2,tu.tap(vu)),vh=(0,n8.dual)(2,(0,eb.tapEither)(vl,vu)),vm=(0,n8.dual)(2,eS(vp,vu)),vv=(0,n8.dual)(2,is(vd,vu)),vg={URI:m$,bimap:mL,mapLeft:mj},vy={URI:m$,map:mF,alt:mA},vb=(0,eb.fromOption)(vl),v_=(0,eb.fromOptionK)(vl),vI=(0,eb.chainOptionK)(vl,vu),vR=vI,vS={fromEither:vl.fromEither},vT=eT.uL(vS),vx=eT.WE(vS),vw={flatMap:mY},vM={fromIO:vp.fromIO},vO=eT.ny(vS,vw),vE=eT.hU(vS,vw),vC=eT.iu(vS,vw),vk=eT.we(vM,vw),vW=eT.D9({fromTask:mi},vw),vF=(0,n8.dual)(2,function(n,t){return mY(n,mW(t))}),vP=(0,n8.dual)(3,function(n,t,e){return mY(n,function(n){return ma(function(){return e(n)})(t(n))})}),vD=vC,vA=vC,vU=vh,vL=vh,vN=(0,eb.fromPredicate)(vl),vj=(0,eb.filterOrElse)(vl,vu),vq=vj,vG=(0,eb.fromEitherK)(vl),vK=e_(vp),vY=vk,vB=vm,vV=il(vd),vH=vW,vz=vv,vX=vF,vJ=vF;function v$(n){return function(){var t=Array.prototype.slice.call(arguments);return function(){return new Promise(function(e){n.apply(null,t.concat(function(n,t){return null!=n?e(eT.t$(n)):e(eT.F2(t))}))})}}}var vZ=function(n,t,e){return vQ(n,t,e)},vQ=function(n,t,e){return mY(n,function(n){return dY(t(n),function(t){return mY(e(n,t),function(){return dK(t)})})})},v0=mX(eT.F4),v2=(0,tp.bindTo)(m1),v1=(0,tp.let)(m1),v8=tu.bind(vu),v5=v8,v3=(0,nN.apS)(m4),v7=v3,v4=mX(eT.Xl),v9=function(n){return(0,n8.flow)(sv(n),dq(tC.traverseReadonlyNonEmptyArrayWithIndex(n8.SK)))},v6=function(n){var t=v9(n);return function(n){return eT.Od(n)?t(n):v4}},gn=function(n){return function(t){return function(){return eT.Gb(t).reduce(function(t,e,r){return t.then(function(i){return eT.nM(i)?t:n(r+1,e)().then(function(n){return eT.nM(n)?n:(i.right.push(n.right),i)})})},n(0,eT.YM(t))().then(tC.map(eT.ri)))}}},gt=function(n){var t=gn(n);return function(n){return eT.Od(n)?t(n):v4}},ge=v6,gr=function(n){return v6(function(t,e){return n(e)})},gi=gr(n8.identity),gu=gt,go=function(n){return gt(function(t,e){return n(e)})},ga=go(n8.identity),gc=mY,gf=mY,gl=vs,gp=vs,gd=mT,gs=mT,gh={URI:m$,bimap:mL,mapLeft:mj,map:mF,of:mX,ap:mP,chain:mY,alt:mA,fromIO:mr,fromTask:mi,throwError:mJ},gm={URI:m$,bimap:mL,mapLeft:mj,map:mF,of:mX,ap:mD,chain:mY,alt:mA,fromIO:mr,fromTask:mi,throwError:mJ},gv=(0,nN.getApplySemigroup)(vr),gg=(0,nG.getApplicativeMonoid)(vi),gy=function(n){return(0,nN.getApplySemigroup)(d8)(tC.getSemigroup(n))};function gb(n){var t=mZ(d1,n),e=mQ(n);return{URI:m$,_E:void 0,map:mF,ap:t.ap,of:mX,chain:mY,bimap:mL,mapLeft:mj,alt:e.alt,fromIO:mr,fromTask:mi,throwError:mJ}}var g_=eU,gI=tW(s0),gR=tk(s0),gS=(0,n8.flow)(h6,g_),gT=(0,n8.flow)(mn,g_),gx=function(n){return(0,n8.flow)(n,h9)},gw=function(n){return(0,n8.flow)(n,h4)},gM=tF(sJ),gO=tP(sJ),gE=(0,n8.flow)(mt,g_),gC=(0,n8.flow)(me,g_),gk=function(n){return(0,n8.flow)(n,mt)},gW=function(n){return(0,n8.flow)(n,me)},gF=sB,gP=gx,gD=gE,gA=gS,gU=(0,n8.flow)(mo,g_),gL=function(n){return(0,n8.flow)(n,mu)},gN=tz(sJ),gj=gN,gq=tX(s4),gG=gq,gK=gq,gY=gK,gB=tJ(s9),gV=gB,gH=t1(sJ),gz=tD(s0),gX=tA(s0),gJ=tU(s9),g$=eM,gZ=eO,gQ=gZ,g0=t$(s9),g2=g0,g1=(0,n8.dual)(2,tQ(s9)),g8=t0(s9),g5=t2(sJ),g3=function(n){return(0,n8.flow)(n,gU)},g7=function(n){return(0,n8.flow)(n,g_)},g4=function(n){return(0,n8.flow)(n,gL)},g9=function(n,t){return(0,n8.pipe)(n,ye(t))},g6=function(n,t){return(0,n8.pipe)(n,ya(t))},yn=function(n,t){return yl(n,function(n){return(0,n8.pipe)(t,ye(n))})},yt=function(n,t){return(0,n8.pipe)(n,ys(t))},ye=tL(sJ),yr=(0,n8.dual)(3,tY(sJ)),yi=yr,yu=(0,n8.dual)(2,tV(sJ)),yo=yu,ya=tN(s2),yc=ya,yf=gR,yl=(0,n8.dual)(2,tq(s9)),yp=yl(n8.identity),yd=yp,ys=tG(s9),yh=ys,ym=gI,yv="ReaderTaskEither",yg=function(n){var t=tC.getCompactable(n);return{URI:yv,_E:void 0,compact:th(sJ,t),separate:tm(sJ,t,tC.Functor)}};function yy(n){var t=tC.getFilterable(n),e=yg(n),r=en(sJ,t),i=et(sJ,t),u=ee(sJ,t),o=er(sJ,t);return{URI:yv,_E:void 0,map:g9,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,n8.pipe)(n,r(t))},filterMap:function(n,t){return(0,n8.pipe)(n,i(t))},partition:function(n,t){return(0,n8.pipe)(n,u(t))},partitionMap:function(n,t){return(0,n8.pipe)(n,o(t))}}}function yb(n,t){var e=(0,nN.ap)(eZ,mZ(n,t));return{URI:yv,_E:void 0,map:g9,ap:function(n,t){return(0,n8.pipe)(n,e(t))},of:yf}}function y_(n){var t=tH(s9,n);return{URI:yv,_E:void 0,map:g9,alt:function(n,e){return(0,n8.pipe)(n,t(e))}}}var yI={URI:yv,map:g9},yR=(0,n8.dual)(2,(0,tp.as)(yI)),yS=(0,tp.asUnit)(yI),yT=(0,tp.flap)(yI),yx={URI:yv,of:yf},yw={URI:yv,map:g9,ap:g6},yM=(0,nN.apFirst)(yw),yO=yM,yE=(0,nN.apSecond)(yw),yC=yE,yk={URI:yv,map:g9,ap:g6,of:yf},yW={URI:yv,map:g9,ap:yn},yF={URI:yv,map:g9,ap:yn,of:yf},yP={URI:yv,map:g9,ap:g6,chain:yl},yD={URI:yv,map:g9,ap:g6,chain:yl,of:yf},yA={URI:yv,map:g9,ap:g6,chain:yl,of:yf,fromIO:gD},yU={URI:yv,map:g9,ap:g6,chain:yl,of:yf,fromIO:gD,fromTask:gA},yL={URI:yv,map:g9,ap:g6,chain:yl,of:yf,throwError:ym},yN={URI:yv,fromEither:gF},yj={URI:yv,fromIO:gD},yq={URI:yv,fromIO:gD,fromTask:gA},yG={URI:yv,fromReader:gP},yK=(0,n8.dual)(2,tu.tap(yP)),yY=(0,n8.dual)(2,(0,eb.tapEither)(yN,yP)),yB=(0,n8.dual)(2,eS(yj,yP)),yV=(0,n8.dual)(2,is(yq,yP)),yH=(0,n8.dual)(2,rw(yG,yP)),yz=(0,n8.dual)(2,function(n,t){return yK(n,g4(t))}),yX=(0,n8.dual)(2,function(n,t){return yK(n,g7(t))}),yJ=(0,n8.dual)(2,function(n,t){return yK(n,y6(t))}),y$=(0,n8.dual)(2,function(n,t){return yK(n,be(t))}),yZ={URI:yv,bimap:yr,mapLeft:yu},yQ={URI:yv,map:g9,alt:yt},y0=rI(yG),y2=rR(yG),y1=rS(yG),y8=yH,y5=yH,y3=yz,y7=yz,y4=yX,y9=yX,y6=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return gM(n.apply(void 0,t))}},bn=yJ,bt=yJ,be=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return gk(n.apply(void 0,t))}},br=y$,bi=y$,bu=(0,eb.fromOption)(yN),bo=(0,eb.fromOptionK)(yN),ba=(0,eb.chainOptionK)(yN,yP),bc=ba,bf={fromEither:yN.fromEither},bl=eT.uL(bf),bp=eT.WE(bf),bd={flatMap:yl},bs=eT.ny(bf,bd),bh=eT.hU(bf,bd),bm=eT.iu(bf,bd),bv=(0,n8.dual)(2,function(n,t){return yl(n,g7(t))}),bg=(0,n8.dual)(2,function(n,t){return yl(n,y6(t))}),by=eT.we({fromIO:gD},bd),bb=eT.D9({fromTask:gA},bd),b_=eT.on({fromReader:gP},bd),bI=(0,n8.dual)(2,function(n,t){return yl(n,be(t))}),bR=(0,n8.dual)(2,function(n,t){return yl(n,g3(t))}),bS=(0,n8.dual)(2,function(n,t){return yl(n,g4(t))}),bT=bm,bx=bm,bw=yY,bM=yY,bO=bv,bE=bv,bC=bg,bk=bg,bW=(0,eb.fromPredicate)(yN),bF=(0,eb.filterOrElse)(yN,yP),bP=bF,bD=(0,eb.fromEitherK)(yN),bA=e_(yj),bU=by,bL=yB,bN=il(yq),bj=bb,bq=yV,bG=b_,bK=b_,bY=bI,bB=bI,bV=bR,bH=bR,bz=bS,bX=bS;function bJ(n,t,e){return b$(n,t,e)}function b$(n,t,e){return function(r){return vQ(n(r),function(n){return t(n)(r)},function(n,t){return e(n,t)(r)})}}var bZ=yf(eT.F4),bQ=(0,tp.bindTo)(yI),b0=(0,tp.let)(yI),b2=tu.bind(yP),b1=b2,b8=(0,nN.apS)(yw),b5=b8,b3=yf(eT.Xl),b7=function(n){return(0,n8.flow)(rf(n),eP(v9(n8.SK)))},b4=function(n){var t=b7(n);return function(n){return eT.Od(n)?t(n):b3}},b9=function(n){return(0,n8.flow)(rf(n),eP(gn(n8.SK)))},b6=function(n){var t=b9(n);return function(n){return eT.Od(n)?t(n):b3}},_n=b4,_t=function(n){return b4(function(t,e){return n(e)})},_e=_t(n8.identity),_r=b6,_i=function(n){return b6(function(t,e){return n(e)})},_u=_i(n8.identity),_o=yl,_a=yl,_c=yK,_f=yK,_l=g1,_p=g1,_d={URI:yv,map:g9,of:yf,ap:g6,chain:yl,alt:yt,bimap:yr,mapLeft:yu,fromIO:gD,fromTask:gA,throwError:ym},_s={URI:yv,map:g9,of:yf,ap:yn,chain:yl,alt:yt,bimap:yr,mapLeft:yu,fromIO:gD,fromTask:gA,throwError:ym},_h=(0,nN.getApplySemigroup)(yW),_m=(0,nG.getApplicativeMonoid)(yF),_v=function(n){return(0,nN.getApplySemigroup)(s3)(tC.getSemigroup(n))};function _g(n){var t=yb(d1,n),e=y_(n);return{URI:yv,_E:void 0,map:g9,of:yf,chain:yl,bimap:yr,mapLeft:yu,ap:t.ap,alt:e.alt,fromIO:gD,fromTask:gA,throwError:ym}}function _y(n,t){return n(t)()}var _b=e(31583),__=e(13512),_I=e(28350),_R=e(97054),_S=e(99156);function _T(n){return n[0]}function _x(n){return n[1]}var _w=function(n){return[_x(n),n[0]]};function _M(n){return{URI:_0,_E:void 0,map:_P,ap:function(t,e){return[t[0](e[0]),n.concat(_x(t),_x(e))]}}}var _O=function(n){return function(t){return[t,n.empty]}};function _E(n){return{URI:_0,_E:void 0,map:_P,ap:_M(n).ap,of:_O(n)}}function _C(n){return{URI:_0,_E:void 0,map:_P,ap:_M(n).ap,chain:function(t,e){var r=e(t[0]),i=r[0],u=r[1];return[i,n.concat(_x(t),u)]}}}function _k(n){var t=_C(n);return{URI:_0,_E:void 0,map:_P,ap:t.ap,chain:t.chain,of:_O(n)}}function _W(n){var t=_C(n);return{URI:_0,_E:void 0,map:_P,ap:t.ap,chain:t.chain,chainRec:function(t,e){for(var r=e(t),i=n.empty,u=r[0];"Left"===u._tag;)i=n.concat(i,_x(r)),u=(r=e(u.left))[0];return[u.right,n.concat(i,_x(r))]}}}var _F=function(n,t){return(0,n8.pipe)(n,_B(t))},_P=function(n,t){return(0,n8.pipe)(n,_K(t))},_D=function(n,t,e){return(0,n8.pipe)(n,_G(t,e))},_A=function(n,t){return(0,n8.pipe)(n,_Y(t))},_U=function(n,t){return(0,n8.pipe)(n,_V(t))},_L=function(n,t,e){return(0,n8.pipe)(n,_X(t,e))},_N=function(n){var t=_J(n);return function(n,e){return(0,n8.pipe)(n,t(e))}},_j=function(n,t,e){return(0,n8.pipe)(n,_$(t,e))},_q=function(n){var t=_Z(n);return function(n,e){return(0,n8.pipe)(n,t(e))}},_G=function(n,t){return function(e){return[t(e[0]),n(_x(e))]}},_K=function(n){return function(t){return[n(t[0]),_x(t)]}},_Y=function(n){return function(t){return[t[0],n(_x(t))]}},_B=function(n){return function(t){return[t[0],_x(n)]}},_V=function(n){return function(t){return[n(t),_x(t)]}},_H=_T,_z=_V(n8.identity),_X=function(n,t){return function(e){return t(n,e[0])}},_J=function(){return function(n){return function(t){return n(t[0])}}},_$=function(n,t){return function(e){return t(e[0],n)}},_Z=function(n){return function(t){return function(e){return n.map(t(e[0]),function(n){return[n,_x(e)]})}}},_Q=function(n){return function(t){return n.map(t[0],function(n){return[n,_x(t)]})}},_0="ReadonlyTuple",_2={URI:_0,map:_P},_1=(0,tp.flap)(_2),_8=_K,_5=_Y,_3={URI:_0,bimap:_D,mapLeft:_A},_7={URI:_0,compose:_F},_4={URI:_0,map:_P,extend:_U,extract:_H},_9={URI:_0,reduce:_L,foldMap:_N,reduceRight:_j},_6={URI:_0,map:_P,reduce:_L,foldMap:_N,reduceRight:_j,traverse:_q,sequence:_Q},In={URI:_0,compose:_F,map:_P,bimap:_D,mapLeft:_A,extract:_H,extend:_U,reduce:_L,foldMap:_N,reduceRight:_j,traverse:_q,sequence:_Q},It=e(3291),Ie=e(57029),Ir=e(76511),Ii=function(){return(Ii=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},Iu=_R.size,Io=_R.isEmpty,Ia=function(n){return function(t){return Object.keys(t).sort(n.compare)}},Ic=Ia(Ie.Ord);function If(n){if("function"==typeof n)return If(Ie.Ord)(n);var t=Ia(n);return function(n){return function(e){for(var r=[],i=0,u=t(e);i<u.length;i++){var o=u[i];r.push(n(o,e[o]))}return r}}}var Il=If(Ie.Ord)(function(n,t){return[n,t]});function Ip(n){return function(t){var e=Il(t),r=e.length;return n.unfold(0,function(n){return n<r?eT.G([e[n],n+1]):eT.YP})}}var Id=_R.upsertAt,Is=_R.has;function Ih(n){return function(t){if(!eT.e$.call(t,n))return t;var e=Object.assign({},t);return delete e[n],e}}var Im=function(n,t){return Iv(n,function(){return t})},Iv=function(n,t){return function(e){if(!Is(n,e))return eT.YP;var r=Object.assign({},e);return r[n]=t(e[n]),eT.G(r)}};function Ig(n){var t=Ih(n);return function(e){var r=Ib(n,e);return eT.Wi(r)?eT.YP:eT.G([r.value,t(e)])}}var Iy=_R.isSubrecord,Ib=_R.lookup,I_=_R.mapWithIndex,II=_R.map;function IR(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?_R.reduceWithIndex(n[0]):_R.reduceWithIndex(Ie.Ord).apply(void 0,n)}function IS(n){return"compare"in n?_R.foldMapWithIndex(n):_R.foldMapWithIndex(Ie.Ord)(n)}function IT(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?_R.reduceRightWithIndex(n[0]):_R.reduceRightWithIndex(Ie.Ord).apply(void 0,n)}var Ix=_R.singleton;function Iw(n){return _R.traverseWithIndex(n)}function IM(n){return _R.traverse(n)}function IO(n){return _R.sequence(n)}var IE=function(n){var t=IM(n);return function(e){return function(r){return n.map((0,n8.pipe)(r,t(e)),Ra)}}},IC=function(n){var t=IM(n);return function(e){return function(r){return n.map((0,n8.pipe)(r,t(e)),Rc)}}},Ik=_R.partitionMapWithIndex;function IW(n){return _R.partitionWithIndex(n)}var IF=_R.filterMapWithIndex;function IP(n){return _R.filterWithIndex(n)}function ID(n,t){return _R.fromFoldable(n,t)}var IA=Il,IU=function(n){return ID(It.last(),nK.Foldable)(n)};function IL(n,t){return _R.fromFoldableMap(n,t)}var IN=_R.every,Ij=_R.some,Iq=_R.elem,IG=function(n){var t=_R.union(n);return function(n){return function(e){return Io(e)?Ii({},n):Io(n)?Ii({},e):t(n)(e)}}},IK=function(n){return function(t){return function(e){return Io(e)||Io(t)?{}:_R.intersection(n)(t)(e)}}},IY=function(n){return function(t){return Io(t)?Ii({},n):Io(n)?Ii({},t):_R.difference(n)(t)}},IB=_R._map,IV=_R._mapWithIndex,IH=_R._reduce,Iz=_R._foldMap,IX=_R._reduceRight,IJ=_R._filter,I$=_R._filterMap,IZ=_R._partition,IQ=_R._partitionMap,I0=_R._reduceWithIndex,I2=_R._foldMapWithIndex,I1=_R._reduceRightWithIndex,I8=_R._partitionMapWithIndex,I5=_R._partitionWithIndex,I3=_R._filterMapWithIndex,I7=_R._filterWithIndex,I4=_R._traverse,I9=_R._sequence,I6=function(n){return function(t){var e=Ia(n);return function(n,r){var i=e(n);if(0===i.length)return t.of({});for(var u=t.of({}),o=function(e){u=t.ap(t.map(u,function(n){return function(t){return n[e]=t,n}}),r(e,n[e]))},a=0;a<i.length;a++)o(i[a]);return u}}},Rn=_R.filter,Rt=_R.filterMap,Re=_R.partition,Rr=_R.partitionMap;function Ri(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?_R.reduce(n[0]):_R.reduce(Ie.Ord).apply(void 0,n)}function Ru(n){return"compare"in n?_R.foldMap(n):_R.foldMap(Ie.Ord)(n)}function Ro(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?_R.reduceRight(n[0]):_R.reduceRight(Ie.Ord).apply(void 0,n)}var Ra=_R.compact,Rc=_R.separate,Rf="Record";function Rl(n){return"compare"in n?_R.getShow(n):_R.getShow(Ie.Ord)(n)}var Rp=_R.getEq,Rd=_R.getMonoid,Rs={URI:Rf,map:IB},Rh=(0,tp.flap)(Rs),Rm={URI:Rf,map:IB,mapWithIndex:IV},Rv=function(n){return{URI:Rf,reduce:IH(n),foldMap:Iz(n),reduceRight:IX(n)}},Rg=function(n){return{URI:Rf,reduce:IH(n),foldMap:Iz(n),reduceRight:IX(n),reduceWithIndex:I0(n),foldMapWithIndex:I2(n),reduceRightWithIndex:I1(n)}},Ry={URI:Rf,compact:Ra,separate:Rc},Rb={URI:Rf,map:IB,compact:Ra,separate:Rc,filter:IJ,filterMap:I$,partition:IZ,partitionMap:IQ},R_={URI:Rf,map:IB,mapWithIndex:IV,compact:Ra,separate:Rc,filter:IJ,filterMap:I$,partition:IZ,partitionMap:IQ,filterMapWithIndex:I3,filterWithIndex:I7,partitionMapWithIndex:I8,partitionWithIndex:I5},RI=function(n){return{URI:Rf,map:IB,reduce:IH(n),foldMap:Iz(n),reduceRight:IX(n),traverse:I4(n),sequence:I9(n)}},RR=function(n){return{URI:Rf,map:IB,mapWithIndex:IV,reduce:IH(n),foldMap:Iz(n),reduceRight:IX(n),reduceWithIndex:I0(n),foldMapWithIndex:I2(n),reduceRightWithIndex:I1(n),traverse:I4(n),sequence:I9(n),traverseWithIndex:I6(n)}},RS=function(n){var t=RI(n);return{URI:Rf,map:IB,reduce:IH(n),foldMap:Iz(n),reduceRight:IX(n),traverse:t.traverse,sequence:t.sequence,compact:Ra,separate:Rc,filter:IJ,filterMap:I$,partition:IZ,partitionMap:IQ,wither:(0,Ir.witherDefault)(t,Ry),wilt:(0,Ir.wiltDefault)(t,Ry)}},RT=function(n){var t=IG(n);return{concat:function(n,e){return t(e)(n)}}},Rx=function(n){return{concat:RT(n).concat,empty:{}}},Rw=function(n){var t=IK(n);return{concat:function(n,e){return t(e)(n)}}},RM=function(){return{concat:function(n,t){return IY(t)(n)}}},RO={URI:Rf,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord)},RE={URI:Rf,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord),reduceWithIndex:I0(Ie.Ord),foldMapWithIndex:I2(Ie.Ord),reduceRightWithIndex:I1(Ie.Ord)},RC={URI:Rf,map:IB,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord),traverse:I4(Ie.Ord),sequence:IO},Rk={URI:Rf,map:IB,mapWithIndex:IV,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord),reduceWithIndex:I0(Ie.Ord),foldMapWithIndex:I2(Ie.Ord),reduceRightWithIndex:I1(Ie.Ord),traverse:I4(Ie.Ord),sequence:IO,traverseWithIndex:I6(Ie.Ord)},RW=(0,Ir.witherDefault)(RC,Ry),RF=(0,Ir.wiltDefault)(RC,Ry),RP={URI:Rf,map:IB,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord),traverse:I4(Ie.Ord),sequence:IO,compact:Ra,separate:Rc,filter:IJ,filterMap:I$,partition:IZ,partitionMap:IQ,wither:RW,wilt:RF},RD={},RA=Id,RU=_R.hasOwnProperty,RL={URI:Rf,map:IB,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord),traverse:I4(Ie.Ord),sequence:IO,compact:Ra,separate:Rc,filter:IJ,filterMap:I$,partition:IZ,partitionMap:IQ,mapWithIndex:IV,reduceWithIndex:I0(Ie.Ord),foldMapWithIndex:I2(Ie.Ord),reduceRightWithIndex:I1(Ie.Ord),filterMapWithIndex:I3,filterWithIndex:I7,partitionMapWithIndex:I8,partitionWithIndex:I5,traverseWithIndex:I6(Ie.Ord),wither:RW,wilt:RF},RN=function(n){return function(t){return eT.pC(n(t))}},Rj=function(n){return function(t){return eT.tO(n(t))}},Rq=function(){return function(n){return!0}},RG=function(n){return function(t){return!n(t)}},RK=function(n){return function(t){return function(e){return t(e)||n(e)}}},RY=function(n){return function(t){return function(e){return t(e)&&n(e)}}},RB=function(){return function(n){return!1}},RV=function(n){return function(t){return function(e){return t(e)&&n(e)}}},RH=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{add:function(t,e){return n.map(function(n,r){return n.add(t[r],e[r])})},zero:n.map(function(n){return n.zero}),mul:function(t,e){return n.map(function(n,r){return n.mul(t[r],e[r])})},one:n.map(function(n){return n.one}),sub:function(t,e){return n.map(function(n,r){return n.sub(t[r],e[r])})}}},Rz=function(n){return function(t){return n.sub(n.zero,t)}},RX=RH,RJ=n8.getRing,R$=n8.getSemiring,RZ=e(1214),RQ=function(n){return{show:function(t){var e="{";for(var r in n)eT.e$.call(n,r)&&(e+=" ".concat(r,": ").concat(n[r].show(t[r]),","));return e.length>1&&(e=e.slice(0,-1)+" "),e+="}"}}},R0=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{show:function(t){return"[".concat(t.map(function(t,e){return n[e].show(t)}).join(", "),"]")}}},R2=R0,R1=RQ,R8={show:function(n){return JSON.stringify(n)}},R5={show:function(n){return JSON.stringify(n)}},R3={show:function(n){return JSON.stringify(n)}};function R7(n){return function(t){return function(e){return n.of([t,e])}}}function R4(n){return function(t){return function(e){return function(r){return n.map(e(r),function(n){var e=n[0],r=n[1];return[t(e),r]})}}}}function R9(n){return function(t){return function(e){return function(r){return n.chain(e(r),function(e){var r=e[0],i=e[1];return n.map(t(i),function(n){var t=n[0],e=n[1];return[r(t),e]})})}}}}function R6(n){var t=Sn(n);return function(n){return function(e){return t(e,n)}}}function Sn(n){return function(t,e){return function(r){return n.chain(t(r),function(n){var t=n[0],r=n[1];return e(t)(r)})}}}function St(n){return function(t){return function(e){return n.of(t(e))}}}function Se(n){return function(t){return function(e){return n.map(t,function(n){return[n,e]})}}}function Sr(n){return function(t){return function(e){return n.map(e(t),function(n){return n[0]})}}}function Si(n){return function(t){return function(e){return n.map(e(t),_x)}}}function Su(n){var t=R9(n),e=R4(n),r=R6(n),i=Sr(n),u=Si(n);return{map:function(n,t){return(0,n8.pipe)(n,e(t))},ap:function(n,e){return(0,n8.pipe)(n,t(e))},of:R7(n),chain:function(n,t){return(0,n8.pipe)(n,r(t))},get:function(){return function(t){return n.of([t,t])}},put:function(t){return function(){return n.of([void 0,t])}},modify:function(t){return function(e){return n.of([void 0,t(e)])}},gets:function(t){return function(e){return n.of([t(e),e])}},fromState:St(n),fromM:Se(n),evalState:function(n,t){return(0,n8.pipe)(n,i(t))},execState:function(n,t){return(0,n8.pipe)(n,u(t))}}}var So=function(n){return function(){return gI(n)}},Sa=R7(yx);function Sc(n){return ST(gS(n))}function Sf(n){return ST(gT(n))}function Sl(n){return ST(gx(n))}function Sp(n){return ST(gw(n))}function Sd(n){return ST(gE(n))}function Ss(n){return ST(gC(n))}var Sh=function(n){return(0,n8.flow)(n,gR)},Sm=function(n){return function(t){return gI(n(t)[0])}},Sv=tC.match(function(n){return So(n)},Sa),Sg=Sl,Sy=Sd,Sb=Sc,S_=St(yx),SI=function(n){return ST(g_(n))},SR=function(n){return ST(gU(n))},SS=function(n){return ST(gL(n))},ST=Se(yI),Sx=function(n){return function(t){return(0,n8.flow)(t,eM(n))}},Sw=function(n){return function(t){return function(e){return n(e)(t)(e)}}},SM=Sw,SO=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return SR(n.apply(void 0,t))}},SE=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return SI(n.apply(void 0,t))}},SC=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ST(n.apply(void 0,t))}},Sk=function(n){return function(t){return SB(t,SC(n))}},SW=Sk,SF=function(n,t){return(0,n8.pipe)(n,SL(t))},SP=function(n,t){return(0,n8.pipe)(n,Sq(t))},SD=function(n,t){return function(e){return(0,n8.pipe)(n(e),ys(function(){return t()(e)}))}},SA=function(n,t,e){return function(r){return(0,n8.pipe)(n(r),yi(t,function(n){var t=n[0],r=n[1];return[e(t),r]}))}},SU=function(n,t){return function(e){return(0,n8.pipe)(n(e),yo(t))}},SL=R4(yI),SN=function(n,t){return function(e){return SA(e,n,t)}},Sj=function(n){return function(t){return SU(t,n)}},Sq=R9(yP),SG=Sq,SK=Sa,SY={fromEither:Sv},SB=(0,n8.dual)(2,Sn(yD)),SV={flatMap:SB},SH=(0,n8.dual)(2,function(n,t){return SB(n,function(n){return SE(t)(n)})}),Sz=eT.we({fromIO:Sy},SV),SX=eT.D9({fromTask:Sb},SV),SJ=eT.on({fromReader:Sg},SV),S$=(0,n8.dual)(2,function(n,t){return SB(n,function(n){return SO(t)(n)})}),SZ=(0,n8.dual)(2,eT.iu(SY,SV)),SQ=eT.hU(SY,SV),S0=(0,n8.dual)(2,function(n,t){return SB(n,function(n){return SC(t)(n)})}),S2=(0,n8.dual)(2,function(n,t){return SB(n,Tm(t))}),S1=SB(n8.identity),S8=S1,S5=function(n){return function(t){return function(e){return(0,n8.pipe)(t(e),yh(function(){return n()(e)}))}}},S3=S5,S7=So,S4="StateReaderTaskEither",S9={URI:S4,map:SF},S6=(0,n8.dual)(2,(0,tp.as)(S9)),Tn=(0,tp.asUnit)(S9),Tt=(0,tp.flap)(S9),Te={URI:S4,of:SK},Tr={URI:S4,map:SF,ap:SP},Ti=(0,nN.apFirst)(Tr),Tu=Ti,To=(0,nN.apSecond)(Tr),Ta=To,Tc={URI:S4,map:SF,ap:SP,of:SK},Tf={URI:S4,map:SF,ap:SP,chain:SB},Tl={URI:S4,fromState:S_},Tp=ir(Tl),Td=ii(Tl),Ts=iu(Tl),Th=io(Tl),Tm=ia(Tl),Tv=ic(Tl,Tf),Tg={URI:S4,map:SF,ap:SP,of:SK,chain:SB},Ty={URI:S4,map:SF,ap:SP,of:SK,chain:SB,fromIO:Sy},Tb={URI:S4,map:SF,ap:SP,of:SK,chain:SB,fromIO:Sy,fromTask:Sb},T_={URI:S4,map:SF,ap:SP,of:SK,chain:SB,throwError:S7},TI={URI:S4,fromEither:Sv},TR={URI:S4,fromIO:Sy},TS={URI:S4,fromIO:Sy,fromTask:Sb},TT={URI:S4,fromReader:Sg},Tx=(0,n8.dual)(2,tu.tap(Tf)),Tw=(0,n8.dual)(2,(0,eb.tapEither)(TI,Tf)),TM=(0,n8.dual)(2,eS(TR,Tf)),TO=(0,n8.dual)(2,is(TS,Tf)),TE=(0,n8.dual)(2,rw(TT,Tf)),TC={URI:S4,bimap:SA,mapLeft:SU},Tk={URI:S4,map:SF,alt:SD},TW=rI(TT),TF=rR(TT),TP=rS(TT),TD=SJ,TA=SJ,TU=TE,TL=TE,TN=(0,eb.fromOption)(TI),Tj=(0,eb.fromOptionK)(TI),Tq=(0,eb.chainOptionK)(TI,Tf),TG=Tq,TK=SZ,TY=SZ,TB=Tw,TV=Tw,TH=(0,eb.fromPredicate)(TI),Tz=(0,eb.filterOrElse)(TI,Tf),TX=Tz,TJ=(0,eb.fromEitherK)(TI),T$=e_(TR),TZ=Sz,TQ=TM,T0=SH,T2=SH,T1=S$,T8=S$,T5=il(TS),T3=SX,T7=TO,T4=Sr(yI),T9=Si(yI),T6=(0,tp.bindTo)(S9),xn=(0,tp.let)(S9),xt=tu.bind(Tf),xe=xt,xr=(0,nN.apS)(Tr),xi=xr,xu=function(n){return function(t){return function(e){return function(r){return function(){return eT.Gb(t).reduce(function(t,e,i){return t.then(function(u){return eT.nM(u)?t:n(i+1,e)(u.right[1])(r)().then(function(n){if(eT.nM(n))return n;var t=n.right,e=t[0],r=t[1];return u.right[0].push(e),u.right[1]=r,u})})},n(0,eT.YM(t))(e)(r)().then(tC.map(function(n){return[[n[0]],n[1]]})))}}}}},xo=function(n){var t=xu(n);return function(n){return eT.Od(n)?t(n):SK(eT.Xl)}},xa=xo,xc=function(n){return xo(function(t,e){return n(e)})},xf=xc(n8.identity),xl=SB,xp=SB,xd=Tx,xs=Tx,xh={URI:S4,map:SF,of:SK,ap:SP,chain:SB,bimap:SA,mapLeft:SU,alt:SD,fromIO:Sy,fromTask:Sb,throwError:S7},xm={URI:S4,map:SF,of:SK,ap:SP,chain:SB,bimap:SA,mapLeft:SU,alt:SD,fromIO:Sy,fromTask:Sb,throwError:S7},xv=function(n,t){return(0,n8.pipe)(n(t),ye(function(n){return n[0]}))},xg=function(n,t){return(0,n8.pipe)(n(t),ye(function(n){return n[0],n[1]}))};function xy(n,t,e){return n(t)(e)()}function xb(n){return function(t){return{peek:t.peek,pos:n}}}function x_(n){return function(t){return{peek:t.peek,pos:n(t.pos)}}}function xI(n){return function(t){return t.peek(n(t.pos))}}function xR(n){return function(t){return function(e){return n.map(t(e.pos),function(n){return e.peek(n)})}}}var xS=function(n,t){return(0,n8.pipe)(n,xM(t))},xT=function(n){return function(t){return{peek:function(e){return n({peek:t.peek,pos:e})},pos:t.pos}}},xx=function(n){return n.peek(n.pos)},xw=xT(n8.identity),xM=function(n){return function(t){return{peek:function(e){return n(t.peek(e))},pos:t.pos}}},xO="Store",xE={URI:xO,map:xS},xC=(0,tp.flap)(xE),xk={URI:xO,map:xS,extend:function(n,t){return(0,n8.pipe)(n,xT(t))},extract:xx},xW=xk;function xF(n,t){return function(e,r){return t.compose(n.second(r),n.first(e))}}function xP(n,t){var e=xF(n,t);return function(r,i){return t.compose(e(r,i),n.promap(t.id(),n8.identity,function(n){return[n,n]}))}}function xD(n){return xF(n,n)}function xA(n){return xP(n,n)}var xU=function(){return{concat:function(n,t){return Object.assign({},n,t)}}},xL=function(n){return function(t){var e={};for(var r in t)eT.e$.call(t,r)&&(e[r]=n[r](t[r]));return e}},xN=function(n,t){var e,r,i,u,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(c){return function(a){if(e)throw TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(o=0)),o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(n,o)}catch(n){a=[6,n],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},xj=aL(dZ),xq=aV(dZ),xG=dK,xK=aH(dZ),xY=function(n){return xB(dA(n))},xB=aj(dz),xV=dq(td.fromEither),xH=az(dz),xz=xH,xX=aX(d3),xJ=xX,x$=xX,xZ=x$,xQ=aJ(d7),x0=xQ,x2=aq(dZ),x1=function(n){return function(){var t,e,r,i;return t=void 0,e=void 0,r=void 0,i=function(){return xN(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,n().then(eT.G)];case 1:return[2,t.sent()];case 2:return t.sent(),[2,eT.YP];case 3:return[2]}})},new(r||(r=Promise))(function(n,u){function o(n){try{c(i.next(n))}catch(n){u(n)}}function a(n){try{c(i.throw(n))}catch(n){u(n)}}function c(t){var e;t.done?n(t.value):((e=t.value)instanceof r?e:new r(function(n){n(e)})).then(o,a)}c((i=i.apply(t,e||[])).next())})}},x8=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return x1(function(){return n.apply(void 0,t)})}},x5=aG(dZ),x3=aK(d7),x7=aY(dZ),x4=aB(d7),x9=a$(dz),x6=aZ(dQ),wn=xj,wt=(0,n8.dual)(2,a0(d7)),we={flatMap:wt},wr=eT.we({fromIO:xY},we),wi=eT.D9({fromTask:xB},we),wu=wt(n8.identity),wo=a2(d7),wa=wo,wc=aN(dZ),wf=wc(),wl=th(dz,td.Compactable),wp=tm(dz,td.Compactable,td.Functor),wd=en(dz,td.Filterable),ws=et(dz,td.Filterable),wh=ee(dz,td.Filterable),wm=er(dz,td.Filterable),wv=function(n,t){return(0,n8.pipe)(n,x9(t))},wg=function(n,t){return(0,n8.pipe)(n,x6(t))},wy=function(n,t){return(0,n8.pipe)(n,wo(t))},wb="TaskOption",w_={URI:wb,map:wv},wI=(0,n8.dual)(2,(0,tp.as)(w_)),wR=(0,tp.asUnit)(w_),wS=(0,tp.flap)(w_),wT={URI:wb,of:wn},wx={URI:wb,map:wv,ap:wg},ww=(0,nN.apFirst)(wx),wM=(0,nN.apSecond)(wx),wO={URI:wb,map:wv,ap:wg,of:wn},wE=function(n,t){return wt(n,function(n){return(0,n8.pipe)(t,x9(n))})},wC={URI:wb,map:wv,ap:wE},wk={URI:wb,map:wv,ap:wE,of:wn},wW={URI:wb,map:wv,ap:wg,chain:wt},wF={URI:wb,fromEither:xK},wP={URI:wb,fromIO:xY},wD={URI:wb,fromIO:xY,fromTask:xB},wA=(0,n8.dual)(2,tu.tap(wW)),wU=(0,n8.dual)(2,(0,eb.tapEither)(wF,wW)),wL=(0,n8.dual)(2,eS(wP,wW)),wN=(0,n8.dual)(2,is(wD,wW)),wj={URI:wb,map:wv,alt:wy},wq={URI:wb,zero:wc},wG=(0,a8.guard)(wq,wT),wK={URI:wb,map:wv,ap:wg,of:wn,alt:wy,zero:wc},wY={URI:wb,map:wv,ap:wg,of:wn,chain:wt},wB={URI:wb,map:wv,ap:wg,of:wn,chain:wt,fromIO:xY},wV={URI:wb,map:wv,ap:wg,of:wn,chain:wt,fromIO:xY,fromTask:xB},wH={URI:wb,compact:wl,separate:wp},wz={URI:wb,map:wv,compact:wl,separate:wp,filter:function(n,t){return(0,n8.pipe)(n,wd(t))},filterMap:function(n,t){return(0,n8.pipe)(n,ws(t))},partition:function(n,t){return(0,n8.pipe)(n,wh(t))},partitionMap:function(n,t){return(0,n8.pipe)(n,wm(t))}},wX=e_(wP),wJ=wr,w$=wL,wZ=(0,eb.fromEitherK)(wF),wQ=(0,eb.chainEitherK)(wF,wW),w0=wU,w2=il(wD),w1=wi,w8=wN,w5=wn(eT.F4),w3=(0,tp.bindTo)(w_),w7=(0,tp.let)(w_),w4=tu.bind(wW),w9=(0,nN.apS)(wx),w6=wn(eT.Xl),Mn=function(n){return(0,n8.flow)(sv(n),dq(td.traverseReadonlyNonEmptyArrayWithIndex(n8.SK)))},Mt=function(n){var t=Mn(n);return function(n){return eT.Od(n)?t(n):w6}},Me=function(n){return function(t){return function(){return eT.Gb(t).reduce(function(t,e,r){return t.then(function(i){return eT.Wi(i)?t:n(r+1,e)().then(function(n){return eT.Wi(n)?n:(i.value.push(n.value),i)})})},n(0,eT.YM(t))().then(td.map(eT.ri)))}}},Mr=function(n){var t=Me(n);return function(n){return eT.Od(n)?t(n):w6}},Mi=Mt,Mu=function(n){return Mt(function(t,e){return n(e)})},Mo=Mu(n8.identity),Ma=Mr,Mc=function(n){return Mr(function(t,e){return n(e)})},Mf=Mc(n8.identity),Ml=wt,Mp=wA,Md=function(n){return"Left"===n._tag},Ms=function(n){return"Right"===n._tag};function Mh(n){return"Both"===n._tag}function Mm(n){return{_tag:"Left",left:n}}function Mv(n){return{_tag:"Right",right:n}}function Mg(n,t){return{_tag:"Both",left:n,right:t}}var My=function(n,t,e){return function(r){switch(r._tag){case"Left":return n(r.left);case"Right":return t(r.right);case"Both":return e(r.left,r.right)}}},Mb=My,M_=My,MI=M_,MR=M_(Mv,Mm,function(n,t){return Mg(t,n)});function MS(n,t){return{show:M_(function(t){return"left(".concat(n.show(t),")")},function(n){return"right(".concat(t.show(n),")")},function(e,r){return"both(".concat(n.show(e),", ").concat(t.show(r),")")})}}function MT(n,t){return(0,t3.fromEquals)(function(e,r){return Md(e)?Md(r)&&n.equals(e.left,r.left):Ms(e)?Ms(r)&&t.equals(e.right,r.right):Mh(r)&&n.equals(e.left,r.left)&&t.equals(e.right,r.right)})}function Mx(n,t){return{concat:function(e,r){return Md(e)?Md(r)?Mm(n.concat(e.left,r.left)):Ms(r)?Mg(e.left,r.right):Mg(n.concat(e.left,r.left),r.right):Ms(e)?Md(r)?Mg(r.left,e.right):Ms(r)?Mv(t.concat(e.right,r.right)):Mg(r.left,t.concat(e.right,r.right)):Md(r)?Mg(n.concat(e.left,r.left),e.right):Ms(r)?Mg(e.left,t.concat(e.right,r.right)):Mg(n.concat(e.left,r.left),t.concat(e.right,r.right))}}}var Mw=function(n){return{URI:MQ,_E:void 0,map:MU,ap:function(t,e){return Md(t)?Md(e)?Mm(n.concat(t.left,e.left)):Ms(e)?Mm(t.left):Mm(n.concat(t.left,e.left)):Ms(t)?Md(e)?Mm(e.left):Ms(e)?Mv(t.right(e.right)):Mg(e.left,t.right(e.right)):Md(e)?Mm(n.concat(t.left,e.left)):Ms(e)?Mg(t.left,t.right(e.right)):Mg(n.concat(t.left,e.left),t.right(e.right))}}};function MM(n){return{URI:MQ,_E:void 0,map:MU,ap:Mw(n).ap,of:MZ}}function MO(n){return{URI:MQ,_E:void 0,map:MU,ap:Mw(n).ap,chain:function(t,e){if(Md(t))return t;if(Ms(t))return e(t.right);var r=e(t.right);return Md(r)?Mm(n.concat(t.left,r.left)):Ms(r)?Mg(t.left,r.right):Mg(n.concat(t.left,r.left),r.right)}}}function ME(n){var t=MO(n);return{URI:MQ,_E:void 0,map:MU,of:MZ,ap:t.ap,chain:t.chain,throwError:Mm}}function MC(n){return Md(n)?eT.G(n.left):Ms(n)?eT.YP:eT.G(n.left)}function Mk(n){return Md(n)?eT.YP:(Ms(n),eT.G(n.right))}function MW(n){return function(t){return eT.Wi(t)?Mm(n):Mg(n,t.value)}}function MF(n){return function(t){return eT.Wi(t)?Mv(n):Mg(t.value,n)}}function MP(n){return Md(n)?eT.G(n.left):eT.YP}function MD(n){return Ms(n)?eT.G(n.right):eT.YP}var MA=function(n,t){return eT.Wi(n)?eT.Wi(t)?eT.YP:eT.G(Mv(t.value)):eT.Wi(t)?eT.G(Mm(n.value)):eT.G(Mg(n.value,t.value))},MU=function(n,t){return(0,n8.pipe)(n,MV(t))},ML=function(n,t,e){return(0,n8.pipe)(n,MY(t,e))},MN=function(n,t){return(0,n8.pipe)(n,MB(t))},Mj=function(n,t,e){return(0,n8.pipe)(n,MH(t,e))},Mq=function(n){var t=Mz(n);return function(n,e){return(0,n8.pipe)(n,t(e))}},MG=function(n,t,e){return(0,n8.pipe)(n,MX(t,e))},MK=function(n){var t=MJ(n);return function(n,e){return(0,n8.pipe)(n,t(e))}},MY=function(n,t){return function(e){return Md(e)?Mm(n(e.left)):Ms(e)?Mv(t(e.right)):Mg(n(e.left),t(e.right))}},MB=function(n){return function(t){return Md(t)?Mm(n(t.left)):Mh(t)?Mg(n(t.left),t.right):t}},MV=function(n){return function(t){return Md(t)?t:Ms(t)?Mv(n(t.right)):Mg(t.left,n(t.right))}},MH=function(n,t){return function(e){return Md(e)?n:t(n,e.right)}},Mz=function(n){return function(t){return function(e){return Md(e)?n.empty:t(e.right)}}},MX=function(n,t){return function(e){return Md(e)?n:t(e.right,n)}},MJ=function(n){return function(t){return function(e){return Md(e)?n.of(e):Ms(e)?n.map(t(e.right),Mv):n.map(t(e.right),function(n){return Mg(e.left,n)})}}},M$=function(n){return function(t){return Md(t)?n.of(t):Ms(t)?n.map(t.right,Mv):n.map(t.right,function(n){return Mg(t.left,n)})}},MZ=Mv,MQ="These",M0={URI:MQ,map:MU},M2=(0,tp.flap)(M0),M1={URI:MQ,of:MZ},M8={URI:MQ,bimap:ML,mapLeft:MN},M5={URI:MQ,fromThese:n8.identity},M3={URI:MQ,reduce:Mj,foldMap:Mq,reduceRight:MG},M7={URI:MQ,map:MU,reduce:Mj,foldMap:Mq,reduceRight:MG,traverse:MK,sequence:M$},M4={URI:MQ,fromEither:n8.identity},M9=(0,eb.fromPredicate)(M4),M6=(0,eb.fromOption)(M4),On=(0,eb.fromOptionK)(M4),Ot=function(n){return function(t){return function(e){return!Md(e)&&n.equals(t,e.right)}}},Oe=function(n){return function(t){return!Md(t)&&n(t.right)}},Or=function(n,t){return function(e){return Md(e)?[e.left,t()]:Ms(e)?[n(),e.right]:[e.left,e.right]}},Oi=function(n,t){return Or(function(){return n},function(){return t})},Ou=MZ(eT.Xl),Oo=function(n){return function(t){return function(e){var r=eT.YP,i=t(0,eT.YM(e));if(Md(i))return i;Mh(i)&&(r=eT.G(i.left));for(var u=[i.right],o=1;o<e.length;o++){var a=t(o,e[o]);if(Md(a))return a;Mh(a)&&(r=eT.Wi(r)?eT.G(a.left):eT.G(n.concat(r.value,a.left))),u.push(a.right)}return eT.Wi(r)?Mv(u):Mg(r.value,u)}}},Oa=function(n){return function(t){var e=Oo(n)(t);return function(n){return eT.Od(n)?e(n):Ou}}},Oc={URI:MQ,map:MU,bimap:ML,mapLeft:MN,reduce:Mj,foldMap:Mq,reduceRight:MG,traverse:MK,sequence:M$};function Of(n){return(0,n8.flow)(Mv,n.of)}function Ol(n){return(0,n8.flow)(Mm,n.of)}function Op(n){return(0,n8.flow)(Mg,n.of)}function Od(n){return function(t){return n.map(t,Mv)}}function Os(n){return function(t){return n.map(t,Mm)}}function Oh(n){return(0,tp.map)(n,M0)}function Om(n,t){return(0,nN.ap)(n,Mw(t))}function Ov(n,t){var e=Ol(n);return function(r){return function(i){return n.chain(i,M_(e,r,function(e,i){return n.map(r(i),M_(function(n){return Mm(t.concat(e,n))},function(n){return Mg(e,n)},function(n,r){return Mg(t.concat(e,n),r)}))}))}}}function Og(n){return function(t,e){return function(r){return n.map(r,MY(t,e))}}}function Oy(n){return function(t){return function(e){return n.map(e,MB(t))}}}function Ob(n){return function(t,e,r){return function(i){return n.map(i,M_(t,e,r))}}}function O_(n){return function(t,e,r){return function(i){return n.chain(i,M_(t,e,r))}}}function OI(n){return function(t){return n.map(t,MR)}}function OR(n){return function(t,e){return function(r){return n.map(r,Or(t,e))}}}function OS(n){var t=Oh(n),e=Og(n),r=Oy(n),i=O_(n),u=OR(n),o=Of(n),a=function(n,e){return(0,n8.pipe)(n,t(e))};return{map:a,bimap:function(n,t,r){return(0,n8.pipe)(n,e(t,r))},mapLeft:function(n,t){return(0,n8.pipe)(n,r(t))},fold:function(n,t,e,r){return(0,n8.pipe)(n,i(t,e,r))},swap:OI(n),rightM:Od(n),leftM:Os(n),left:Ol(n),right:Of(n),both:Op(n),toTuple:function(n,t,e){return(0,n8.pipe)(n,u(function(){return t},function(){return e}))},getMonad:function(t){var e=Om(n,t),r=Ov(n,t);return{_E:void 0,map:a,of:o,ap:function(n,t){return(0,n8.pipe)(n,e(t))},chain:function(n,t){return(0,n8.pipe)(n,r(t))}}}}}var OT=Ol(dZ),Ox=Of(dZ),Ow=Op(dZ),OM=Od(dz),OO=Os(dz),OE=(0,n8.flow)(dA,OM),OC=(0,n8.flow)(dA,OO),Ok=dK,OW=dK,OF=OE,OP=dA,OD=OM,OA=Ob(dz),OU=OA,OL=O_(d7),ON=OL,Oj=ON,Oq=Oj,OG=OI(dz),OK=function(n,t){return(0,n8.pipe)(n,OV(t))},OY=function(n,t,e){return(0,n8.pipe)(n,OH(t,e))},OB=function(n,t){return(0,n8.pipe)(n,Oz(t))},OV=Oh(dz),OH=Og(dz),Oz=Oy(dz),OX=Ox,OJ="TaskThese",O$=function(n,t){var e=Om(n,t);return{URI:OJ,_E:void 0,map:OK,ap:function(n,t){return(0,n8.pipe)(n,e(t))}}};function OZ(n,t){return{URI:OJ,_E:void 0,map:OK,ap:O$(n,t).ap,of:OX}}function OQ(n){var t=O$(d1,n),e=Ov(d7,n);return{URI:OJ,_E:void 0,map:OK,ap:t.ap,chain:function(n,t){return(0,n8.pipe)(n,e(t))}}}function O0(n){var t=OZ(d1,n),e=OQ(n);return{URI:OJ,_E:void 0,map:OK,ap:t.ap,of:OX,chain:e.chain,fromIO:OF,fromTask:OD}}var O2={URI:OJ,map:OK},O1=(0,tp.flap)(O2),O8={URI:OJ,of:OX},O5={URI:OJ,bimap:OY,mapLeft:OB},O3={URI:OJ,fromEither:Ok},O7=(0,eb.fromOption)(O3),O4=(0,eb.fromOptionK)(O3),O9=(0,eb.fromPredicate)(O3),O6={URI:OJ,fromThese:OW},En=ih(O6),Et={URI:OJ,fromIO:OF},Ee=e_(Et),Er={URI:OJ,fromIO:OF,fromTask:OD},Ei=il(Er),Eu=OR(dz),Eo=OX(eT.Xl),Ea=function(n){var t=Oo(n);return function(n){return(0,n8.flow)(sv(n),dq(t(n8.SK)))}},Ec=function(n){return function(t){var e=Ea(n)(t);return function(n){return eT.Od(n)?e(n):Eo}}},Ef=function(n){return function(t){return function(e){return function(){return eT.Gb(e).reduce(function(e,r,i){return e.then(function(u){return Md(u)?e:t(i+1,r)().then(function(t){if(Md(t))return t;if(Mh(t)){var e=u.right;return e.push(t.right),Mh(u)?Mg(n.concat(u.left,t.left),e):Mg(t.left,e)}return u.right.push(t.right),u})})},t(0,eT.YM(e))().then(MV(eT.ri)))}}}},El=function(n){return function(t){var e=Ef(n)(t);return function(n){return eT.Od(n)?e(n):Eo}}},Ep={URI:OJ,map:OK},Ed={URI:OJ,bimap:OY,mapLeft:OB},Es=function(n,t){return Eu(function(){return n},function(){return t})},Eh={URI:OJ,map:OK,bimap:OY,mapLeft:OB},Em=function(n,t){return(0,nN.getApplySemigroup)(d8)(Mx(n,t))};function Ev(n,t){return function(e){return e(t(e(n.empty)))}}function Eg(n){return function(t){return[n(t),t]}}function Ey(n){return function(t){return function(e){return[t(e),n(e)]}}}function Eb(n){return function(t){return function(e){return t(n(e))}}}function E_(n){return{URI:ES,_E:void 0,map:EI,extend:function(t,e){return function(r){return e(function(e){return t(n.concat(r,e))})}},extract:function(t){return t(n.empty)}}}var EI=function(n,t){return(0,n8.pipe)(n,ER(t))},ER=function(n){return function(t){return function(e){return n(t(e))}}},ES="Traced",ET={URI:ES,map:EI},Ex=(0,tp.flap)(ET),Ew=ET;function EM(n,t){return function(e){var r=n.traverse(e),i=t.traverse(e);return function(n){return function(t){return r(t,function(t){return i(t,n)})}}}}function EO(n,t){return function(e){var r=n.sequence(e),i=t.sequence(e);return function(t){return r(n.map(t,i))}}}function EE(n,t){var e=(0,tp.getFunctorComposition)(n,t).map,r=eh(n,t),i=EM(n,t),u=EO(n,t);return{map:e,reduce:r.reduce,foldMap:r.foldMap,reduceRight:r.reduceRight,traverse:function(n){var t=i(n);return function(n,e){return(0,n8.pipe)(n,t(e))}},sequence:function(n){var t=u(n);return function(n){return(0,n8.pipe)(n,t)}}}}function EC(n,t){return void 0===t&&(t=[]),{value:n,forest:t}}function Ek(n){var t=function(e){return nK.isEmpty(e.forest)?"make(".concat(n.show(e.value),")"):"make(".concat(n.show(e.value),", [").concat(e.forest.map(t).join(", "),"])")};return{show:t}}function EW(n){var t,e=(0,t3.fromEquals)(function(e,r){return n.equals(e.value,r.value)&&t.equals(e.forest,r.forest)});return t=nK.getEq(e),e}var EF=function(n,t){for(var e,r="",i=t.length,u=0;u<i;u++){e=t[u];var o=u===i-1;r+=n+(o?"└":"├")+"─ "+e.value+EF(n+(i>1&&!o?"│ ":" "),e.forest)}return r};function EP(n){return EF("\n",n)}function ED(n){return n.value+EP(n.forest)}function EA(n,t){var e=t(n);return{value:e[0],forest:EU(e[1],t)}}function EU(n,t){return n.map(function(n){return EA(n,t)})}function EL(n){var t=EN(n);return function(e,r){return n.chain(r(e),function(e){var i=e[0],u=e[1];return n.map(t(u,r),function(n){return{value:i,forest:n}})})}}function EN(n){var t=nK.traverse(n);return function(e,r){return(0,n8.pipe)(e,t(function(t){return EL(n)(t,r)}))}}function Ej(n){var t=function(e){return n(e.value,e.forest.map(t))};return t}var Eq=function(n,t){return(0,n8.pipe)(n,EQ(t))},EG=function(n,t){return EX(n,function(n){return(0,n8.pipe)(t,EQ(n))})},EK=function(n,t,e){return(0,n8.pipe)(n,E0(t,e))},EY=function(n){var t=E2(n);return function(n,e){return(0,n8.pipe)(n,t(e))}},EB=function(n,t,e){return(0,n8.pipe)(n,E1(t,e))},EV=function(n,t){return(0,n8.pipe)(n,EJ(t))},EH=function(n){var t=E5(n);return function(n,e){return(0,n8.pipe)(n,t(e))}},Ez=function(n){return function(t){return EG(t,n)}},EX=(0,n8.dual)(2,function(n,t){var e=t(n.value),r=e.value,i=e.forest;return{value:r,forest:(0,nK.getMonoid().concat)(i,n.forest.map(EX(t)))}}),EJ=function(n){return function(t){return{value:n(t),forest:t.forest.map(EJ(n))}}},E$=EJ(n8.identity),EZ=EX(n8.identity),EQ=function(n){return function(t){return{value:n(t.value),forest:t.forest.map(EQ(n))}}},E0=function(n,t){return function(e){for(var r=t(n,e.value),i=e.forest.length,u=0;u<i;u++)r=(0,n8.pipe)(e.forest[u],E0(r,t));return r}},E2=function(n){return function(t){return E0(n.empty,function(e,r){return n.concat(e,t(r))})}},E1=function(n,t){return function(e){for(var r=n,i=e.forest.length,u=i-1;u>=0;u--)r=(0,n8.pipe)(e.forest[u],E1(r,t));return t(e.value,r)}},E8=function(n){return n.value},E5=function(n){var t=nK.traverse(n),e=function(r){return function(i){return n.ap(n.map(r(i.value),function(n){return function(t){return{value:n,forest:t}}}),(0,n8.pipe)(i.forest,t(e(r))))}};return e},E3=function(n){return E5(n)(n8.identity)},E7=function(n){return EC(n)},E4="Tree",E9={URI:E4,map:Eq},E6=(0,tp.flap)(E9),Cn={URI:E4,of:E7},Ct={URI:E4,map:Eq,ap:EG},Ce=(0,nN.apFirst)(Ct),Cr=(0,nN.apSecond)(Ct),Ci={URI:E4,map:Eq,ap:EG,of:E7},Cu={URI:E4,map:Eq,ap:EG,chain:EX},Co={URI:E4,map:Eq,ap:EG,of:E7,chain:EX},Ca=(0,tu.chainFirst)(Cu),Cc={URI:E4,reduce:EK,foldMap:EY,reduceRight:EB},Cf={URI:E4,map:Eq,reduce:EK,foldMap:EY,reduceRight:EB,traverse:EH,sequence:E3},Cl={URI:E4,map:Eq,extend:EV,extract:E8},Cp=E7(eT.F4),Cd=(0,tp.bindTo)(E9),Cs=(0,tp.let)(E9),Ch=(0,tu.bind)(Cu),Cm=(0,nN.apS)(Ct);function Cv(n){var t=function(e,r){return n.equals(e,r.value)||r.forest.some(function(n){return t(e,n)})};return t}var Cg=function(n){return function(t){return n(t.value)||t.forest.some(Cg(n))}},Cy=EX,Cb={URI:E4,map:Eq,of:E7,ap:EG,chain:EX,reduce:EK,foldMap:EY,reduceRight:EB,traverse:EH,sequence:E3,extract:E8,extend:EV},C_=_T,CI=_x,CR=function(n){return[CI(n),C_(n)]};function CS(n){return{URI:CJ,_E:void 0,map:CC,ap:function(t,e){return[C_(t)(C_(e)),n.concat(CI(t),CI(e))]}}}var CT=function(n){return function(t){return[t,n.empty]}};function Cx(n){var t=CS(n);return{URI:CJ,_E:void 0,map:t.map,ap:t.ap,of:CT(n)}}function Cw(n){var t=CS(n);return{URI:CJ,_E:void 0,map:t.map,ap:t.ap,chain:function(t,e){var r=e(C_(t)),i=r[0],u=r[1];return[i,n.concat(CI(t),u)]}}}function CM(n){var t=Cw(n);return{URI:CJ,_E:void 0,map:t.map,ap:t.ap,chain:t.chain,of:CT(n)}}function CO(n){var t=Cw(n);return{URI:CJ,_E:void 0,map:t.map,ap:t.ap,chain:t.chain,chainRec:function(t,e){for(var r=e(t),i=n.empty,u=C_(r);"Left"===u._tag;)i=n.concat(i,CI(r)),u=C_(r=e(u.left));return[u.right,n.concat(i,CI(r))]}}}var CE=function(n,t){return(0,n8.pipe)(n,Cq(t))},CC=function(n,t){return(0,n8.pipe)(n,CN(t))},Ck=function(n,t,e){return(0,n8.pipe)(n,CL(t,e))},CW=function(n,t){return(0,n8.pipe)(n,Cj(t))},CF=function(n,t){return(0,n8.pipe)(n,CG(t))},CP=function(n,t,e){return(0,n8.pipe)(n,CV(t,e))},CD=function(n){var t=CB(n);return function(n,e){return(0,n8.pipe)(n,t(e))}},CA=function(n,t,e){return(0,n8.pipe)(n,CH(t,e))};function CU(n){var t=Cz(n);return function(n,e){return(0,n8.pipe)(n,t(e))}}var CL=function(n,t){return function(e){return[t(C_(e)),n(CI(e))]}},CN=function(n){return function(t){return[n(C_(t)),CI(t)]}},Cj=function(n){return function(t){return[C_(t),n(CI(t))]}},Cq=function(n){return function(t){return[C_(t),CI(n)]}},CG=function(n){return function(t){return[n(t),CI(t)]}},CK=CG(n8.identity),CY=_H,CB=_J,CV=_X,CH=_$,Cz=function(n){return function(t){return function(e){return n.map(t(C_(e)),function(n){return[n,CI(e)]})}}},CX=function(n){return function(t){return n.map(C_(t),function(n){return[n,CI(t)]})}},CJ="Tuple",C$={URI:CJ,map:CC},CZ=(0,tp.flap)(C$),CQ={URI:CJ,bimap:Ck,mapLeft:CW},C0={URI:CJ,compose:CE},C2={URI:CJ,map:CC,extend:CF,extract:CY},C1={URI:CJ,reduce:CP,foldMap:CD,reduceRight:CA},C8={URI:CJ,map:CC,reduce:CP,foldMap:CD,reduceRight:CA,traverse:CU,sequence:CX},C5=CN,C3=Cj,C7={URI:CJ,compose:CE,map:CC,bimap:Ck,mapLeft:CW,extract:CY,extend:CF,reduce:CP,foldMap:CD,reduceRight:CA,traverse:CU,sequence:CX};function C4(n,t){var e=(0,nG.getApplicativeComposition)(t,tC.getApplicativeValidation(n));return{map:e.map,ap:e.ap,of:e.of,chain:function(n,e){return t.chain(n,function(n){return eT.nM(n)?t.of(eT.t$(n.left)):e(n.right)})},alt:function(e,r){return t.chain(e,function(e){return eT.tO(e)?t.of(e):t.map(r(),function(t){return eT.nM(t)?eT.t$(n.concat(e.left,t.left)):t})})}}}var C9=It.constant(void 0),C6={concat:C9.concat,empty:void 0},kn=function(n){return function(){return[void 0,n]}},kt=function(n){return function(){var t=n(),e=t[0],r=t[1];return[[e,r],r]}},ke=function(n){return function(){var t=n(),e=t[0];return[e[0],(0,e[1])(t[1])]}},kr=function(n){return function(t){return function(){var e=t(),r=e[0],i=e[1];return[[r,n(i)],i]}}},ki=function(n){return function(t){return function(){var e=t();return[e[0],n(e[1])]}}},ku=function(n,t){return(0,n8.pipe)(n,ko(t))},ko=function(n){return function(t){return function(){var e=t(),r=e[0],i=e[1];return[n(r),i]}}},ka="Writer",kc=function(n){return{URI:ka,_E:void 0,of:function(t){return function(){return[t,n.empty]}}}},kf=function(n){return{URI:ka,_E:void 0,map:ku,ap:function(t,e){return function(){var r=t(),i=r[0],u=r[1],o=e(),a=o[0],c=o[1];return[i(a),n.concat(u,c)]}}}},kl=function(n){var t=kf(n),e=kc(n);return{URI:ka,_E:void 0,map:ku,ap:t.ap,of:e.of}};function kp(n){return{URI:ka,_E:void 0,map:ku,ap:kf(n).ap,chain:function(t,e){return function(){var r=t(),i=r[0],u=r[1],o=e(i)(),a=o[0],c=o[1];return[a,n.concat(u,c)]}}}}function kd(n){var t=kl(n),e=kp(n);return{URI:ka,_E:void 0,map:ku,ap:t.ap,of:t.of,chain:e.chain}}var ks={URI:ka,map:ku},kh=(0,tp.flap)(ks),km=function(n){return n()[0]},kv=function(n){return n()[1]},kg=function(n){return n()[0]},ky=function(n){return n()[1]},kb=ks;function k_(n){var t=function(t,e){return function(){return n.map(t(),function(n){var t=n[0],r=n[1];return[e(t),r]})}};return{map:t,evalWriter:function(t){return n.map(t(),function(n){return n[0]})},execWriter:function(t){return n.map(t(),function(n){return n[0],n[1]})},tell:function(t){return function(){return n.of([void 0,t])}},listen:function(t){return function(){return n.map(t(),function(n){var t=n[0],e=n[1];return[[t,e],e]})}},pass:function(t){return function(){return n.map(t(),function(n){var t=n[0];return[t[0],(0,t[1])(n[1])]})}},listens:function(t,e){return function(){return n.map(t(),function(n){var t=n[0],r=n[1];return[[t,e(r)],r]})}},censor:function(t,e){return function(){return n.map(t(),function(n){return[n[0],e(n[1])]})}},getMonad:function(e){return{_E:void 0,map:t,of:function(t){return function(){return n.of([t,e.empty])}},ap:function(t,r){return function(){return n.chain(t(),function(t){var i=t[0],u=t[1];return n.map(r(),function(n){var t=n[0],r=n[1];return[i(t),e.concat(u,r)]})})}},chain:function(t,r){return function(){return n.chain(t(),function(t){var i=t[0],u=t[1];return n.map(r(i)(),function(n){var t=n[0],r=n[1];return[t,e.concat(u,r)]})})}}}}}}},97963:function(n,t,e){e.d(t,{D9:function(){return M},F2:function(){return d},F4:function(){return y},G:function(){return c},Gb:function(){return v},Od:function(){return h},WE:function(){return R},Wi:function(){return u},Xl:function(){return g},YM:function(){return m},YP:function(){return a},e$:function(){return b},hU:function(){return T},iu:function(){return x},nM:function(){return f},ny:function(){return S},on:function(){return O},pC:function(){return o},r1:function(){return _},ri:function(){return s},t$:function(){return p},tO:function(){return l},uL:function(){return I},we:function(){return w}});var r=e(42275),i=function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},u=function(n){return"None"===n._tag},o=function(n){return"Some"===n._tag},a={_tag:"None"},c=function(n){return{_tag:"Some",value:n}},f=function(n){return"Left"===n._tag},l=function(n){return"Right"===n._tag},p=function(n){return{_tag:"Left",left:n}},d=function(n){return{_tag:"Right",right:n}},s=function(n){return[n]},h=function(n){return n.length>0},m=function(n){return n[0]},v=function(n){return n.slice(1)},g=[],y={},b=Object.prototype.hasOwnProperty,_=function(n){return i([n[0]],n.slice(1),!0)},I=function(n){return function(t,e){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var u=t.apply(void 0,r);return n.fromEither(null==u?p(e.apply(void 0,r)):d(u))}}},R=function(n){return function(t,e){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=t.apply(void 0,r);return n.fromEither(u(o)?p(e.apply(void 0,r)):d(o.value))}}},S=function(n,t){return(0,r.dual)(3,function(e,r,i){return t.flatMap(e,I(n)(r,i))})},T=function(n,t){return(0,r.dual)(3,function(e,r,i){return t.flatMap(e,R(n)(r,i))})},x=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromEither(r(t))})})},w=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromIO(r(t))})})},M=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromTask(r(t))})})},O=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromReader(r(t))})})}},76627:function(n,t,e){e.r(t),e.d(t,{Bounded:function(){return o},Eq:function(){return i},Field:function(){return s},MagmaSub:function(){return c},MonoidProduct:function(){return d},MonoidSum:function(){return p},Ord:function(){return u},SemigroupProduct:function(){return l},SemigroupSum:function(){return f},Show:function(){return a},isNumber:function(){return r}});var r=function(n){return"number"==typeof n},i={equals:function(n,t){return n===t}},u={equals:i.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},o={equals:i.equals,compare:u.compare,top:1/0,bottom:-1/0},a={show:function(n){return JSON.stringify(n)}},c={concat:function(n,t){return n-t}},f={concat:function(n,t){return n+t}},l={concat:function(n,t){return n*t}},p={concat:f.concat,empty:0},d={concat:l.concat,empty:1},s={add:f.concat,zero:0,mul:l.concat,one:1,sub:c.concat,degree:function(n){return 1},div:function(n,t){return n/t},mod:function(n,t){return n%t}}},18896:function(n,t,e){e.r(t),e.d(t,{alt:function(){return _},ap:function(){return f},bimap:function(){return p},chain:function(){return l},compose:function(){return C},contramap:function(){return a},extend:function(){return s},filter:function(){return I},filterMap:function(){return R},filterMapWithIndex:function(){return w},filterWithIndex:function(){return x},foldMap:function(){return m},foldMapWithIndex:function(){return y},map:function(){return o},mapLeft:function(){return d},mapWithIndex:function(){return c},partition:function(){return S},partitionMap:function(){return T},partitionMapWithIndex:function(){return O},partitionWithIndex:function(){return M},pipe:function(){return W},pipeable:function(){return k},promap:function(){return E},reduce:function(){return h},reduceRight:function(){return v},reduceRightWithIndex:function(){return b},reduceWithIndex:function(){return g}});var r=e(42925),i=e(88543),u=e(42275);function o(n){return function(t){return function(e){return n.map(e,t)}}}function a(n){return function(t){return function(e){return n.contramap(e,t)}}}function c(n){return function(t){return function(e){return n.mapWithIndex(e,t)}}}function f(n){return function(t){return function(e){return n.ap(e,t)}}}function l(n){return function(t){return function(e){return n.chain(e,t)}}}function p(n){return function(t,e){return function(r){return n.bimap(r,t,e)}}}function d(n){return function(t){return function(e){return n.mapLeft(e,t)}}}function s(n){return function(t){return function(e){return n.extend(e,t)}}}function h(n){return function(t,e){return function(r){return n.reduce(r,t,e)}}}function m(n){return function(t){var e=n.foldMap(t);return function(n){return function(t){return e(t,n)}}}}function v(n){return function(t,e){return function(r){return n.reduceRight(r,t,e)}}}function g(n){return function(t,e){return function(r){return n.reduceWithIndex(r,t,e)}}}function y(n){return function(t){var e=n.foldMapWithIndex(t);return function(n){return function(t){return e(t,n)}}}}function b(n){return function(t,e){return function(r){return n.reduceRightWithIndex(r,t,e)}}}function _(n){return function(t){return function(e){return n.alt(e,t)}}}function I(n){return function(t){return function(e){return n.filter(e,t)}}}function R(n){return function(t){return function(e){return n.filterMap(e,t)}}}function S(n){return function(t){return function(e){return n.partition(e,t)}}}function T(n){return function(t){return function(e){return n.partitionMap(e,t)}}}function x(n){return function(t){return function(e){return n.filterWithIndex(e,t)}}}function w(n){return function(t){return function(e){return n.filterMapWithIndex(e,t)}}}function M(n){return function(t){return function(e){return n.partitionWithIndex(e,t)}}}function O(n){return function(t){return function(e){return n.partitionMapWithIndex(e,t)}}}function E(n){return function(t,e){return function(r){return n.promap(r,t,e)}}}function C(n){return function(t){return function(e){return n.compose(e,t)}}}function k(n){var t={};return"function"==typeof n.map&&(t.map=o(n)),"function"==typeof n.contramap&&(t.contramap=a(n)),"function"==typeof n.mapWithIndex&&(t.mapWithIndex=c(n)),"function"==typeof n.ap&&(t.ap=f(n),t.apFirst=(0,r.apFirst)(n),t.apSecond=(0,r.apSecond)(n)),"function"==typeof n.chain&&(t.chain=l(n),t.chainFirst=(0,i.chainFirst)(n),t.flatten=t.chain(u.identity)),"function"==typeof n.bimap&&(t.bimap=p(n),t.mapLeft=d(n)),"function"==typeof n.extend&&(t.extend=s(n),t.duplicate=t.extend(u.identity)),"function"==typeof n.reduce&&(t.reduce=h(n),t.foldMap=m(n),t.reduceRight=v(n)),"function"==typeof n.reduceWithIndex&&(t.reduceWithIndex=g(n),t.foldMapWithIndex=y(n),t.reduceRightWithIndex=b(n)),"function"==typeof n.alt&&(t.alt=_(n)),"function"==typeof n.compact&&(t.compact=n.compact,t.separate=n.separate),"function"==typeof n.filter&&(t.filter=I(n),t.filterMap=R(n),t.partition=S(n),t.partitionMap=T(n)),"function"==typeof n.filterWithIndex&&(t.filterWithIndex=x(n),t.filterMapWithIndex=w(n),t.partitionWithIndex=M(n),t.partitionMapWithIndex=O(n)),"function"==typeof n.promap&&(t.promap=E(n)),"function"==typeof n.compose&&(t.compose=C(n)),"function"==typeof n.throwError&&(t.fromOption=function(t){return function(e){return"None"===e._tag?n.throwError(t()):n.of(e.value)}},t.fromEither=function(t){return"Left"===t._tag?n.throwError(t.left):n.of(t.right)},t.fromPredicate=function(t,e){return function(r){return t(r)?n.of(r):n.throwError(e(r))}},t.filterOrElse=function(t,e){return function(r){return n.chain(r,function(r){return t(r)?n.of(r):n.throwError(e(r))})}}),t}var W=u.pipe},57029:function(n,t,e){e.r(t),e.d(t,{Eq:function(){return i},Monoid:function(){return a},Ord:function(){return c},Semigroup:function(){return u},Show:function(){return f},empty:function(){return o},endsWith:function(){return S},includes:function(){return I},isEmpty:function(){return y},isString:function(){return l},replace:function(){return s},size:function(){return b},slice:function(){return g},split:function(){return _},startsWith:function(){return R},toLowerCase:function(){return d},toUpperCase:function(){return p},trim:function(){return h},trimLeft:function(){return m},trimRight:function(){return v}});var r=e(28350),i={equals:function(n,t){return n===t}},u={concat:function(n,t){return n+t}},o="",a={concat:u.concat,empty:o},c={equals:i.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},f={show:function(n){return JSON.stringify(n)}},l=function(n){return"string"==typeof n},p=function(n){return n.toUpperCase()},d=function(n){return n.toLowerCase()},s=function(n,t){return function(e){return e.replace(n,t)}},h=function(n){return n.trim()},m=function(n){return n.trimLeft()},v=function(n){return n.trimRight()},g=function(n,t){return function(e){return e.slice(n,t)}},y=function(n){return 0===n.length},b=function(n){return n.length},_=function(n){return function(t){var e=t.split(n);return(0,r.isNonEmpty)(e)?e:[t]}},I=function(n,t){return function(e){return e.includes(n,t)}},R=function(n,t){return function(e){return e.startsWith(n,t)}},S=function(n,t){return function(e){return e.endsWith(n,t)}}},91756:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.getApplicativeComposition=t.getApplicativeMonoid=void 0;var r=e(93145),i=e(14632),u=e(8762);t.getApplicativeMonoid=function(n){var t=(0,r.getApplySemigroup)(n);return function(e){return{concat:t(e).concat,empty:n.of(e.empty)}}},t.getApplicativeComposition=function(n,t){var e=(0,u.getFunctorComposition)(n,t).map,o=(0,r.ap)(n,t);return{map:e,of:function(e){return n.of(t.of(e))},ap:function(n,t){return(0,i.pipe)(n,o(t))}}}},93145:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceS=t.sequenceT=t.getApplySemigroup=t.apS=t.apSecond=t.apFirst=t.ap=void 0;var o=e(14632),a=u(e(5309));function c(n,t,e){return function(r){for(var i=Array(e.length+1),u=0;u<e.length;u++)i[u]=e[u];return i[e.length]=r,0===t?n.apply(null,i):c(n,t-1,i)}}t.ap=function(n,t){return function(e){return function(r){return n.ap(n.map(r,function(n){return function(e){return t.ap(n,e)}}),e)}}},t.apFirst=function(n){return function(t){return function(e){return n.ap(n.map(e,function(n){return function(){return n}}),t)}}},t.apSecond=function(n){return function(t){return function(e){return n.ap(n.map(e,function(){return function(n){return n}}),t)}}},t.apS=function(n){return function(t,e){return function(r){return n.ap(n.map(r,function(n){return function(e){var r;return Object.assign({},n,((r={})[t]=e,r))}}),e)}}},t.getApplySemigroup=function(n){return function(t){return{concat:function(e,r){return n.ap(n.map(e,function(n){return function(e){return t.concat(n,e)}}),r)}}}};var f={1:function(n){return[n]},2:function(n){return function(t){return[n,t]}},3:function(n){return function(t){return function(e){return[n,t,e]}}},4:function(n){return function(t){return function(e){return function(r){return[n,t,e,r]}}}},5:function(n){return function(t){return function(e){return function(r){return function(i){return[n,t,e,r,i]}}}}}};t.sequenceT=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=t.length,i=(a.has.call(f,r)||(f[r]=c(o.tuple,r-1,[])),f[r]),u=n.map(t[0],i),l=1;l<r;l++)u=n.ap(u,t[l]);return u}},t.sequenceS=function(n){return function(t){for(var e=Object.keys(t),r=e.length,i=function(n){var t=n.length;switch(t){case 1:return function(t){var e;return(e={})[n[0]]=t,e};case 2:return function(t){return function(e){var r;return(r={})[n[0]]=t,r[n[1]]=e,r}};case 3:return function(t){return function(e){return function(r){var i;return(i={})[n[0]]=t,i[n[1]]=e,i[n[2]]=r,i}}};case 4:return function(t){return function(e){return function(r){return function(i){var u;return(u={})[n[0]]=t,u[n[1]]=e,u[n[2]]=r,u[n[3]]=i,u}}}};case 5:return function(t){return function(e){return function(r){return function(i){return function(u){var o;return(o={})[n[0]]=t,o[n[1]]=e,o[n[2]]=r,o[n[3]]=i,o[n[4]]=u,o}}}}};default:return c(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var i={},u=0;u<t;u++)i[n[u]]=e[u];return i},t-1,[])}}(e),u=n.map(t[e[0]],i),o=1;o<r;o++)u=n.ap(u,t[e[o]]);return u}}},92425:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.lefts=t.rights=t.reverse=t.modifyAt=t.deleteAt=t.updateAt=t.insertAt=t.copy=t.findLastIndex=t.findLastMap=t.findLast=t.findFirstMap=t.findFirst=t.findIndex=t.dropLeftWhile=t.dropRight=t.dropLeft=t.spanLeft=t.takeLeftWhile=t.takeRight=t.takeLeft=t.init=t.tail=t.last=t.head=t.lookup=t.isOutOfBound=t.size=t.scanRight=t.scanLeft=t.chainWithIndex=t.foldRight=t.matchRight=t.matchRightW=t.foldLeft=t.matchLeft=t.matchLeftW=t.match=t.matchW=t.fromEither=t.fromOption=t.fromPredicate=t.replicate=t.makeBy=t.appendW=t.append=t.prependW=t.prepend=t.isNonEmpty=t.isEmpty=void 0,t.traverseWithIndex=t.sequence=t.traverse=t.reduceRightWithIndex=t.reduceRight=t.reduceWithIndex=t.reduce=t.foldMapWithIndex=t.foldMap=t.duplicate=t.extend=t.filterWithIndex=t.alt=t.altW=t.partitionMapWithIndex=t.partitionMap=t.partitionWithIndex=t.partition=t.filter=t.separate=t.compact=t.filterMap=t.filterMapWithIndex=t.mapWithIndex=t.flatten=t.flatMap=t.ap=t.map=t.zero=t.of=t.difference=t.intersection=t.union=t.concat=t.concatW=t.comprehension=t.fromOptionK=t.chunksOf=t.splitAt=t.chop=t.sortBy=t.uniq=t.elem=t.rotate=t.intersperse=t.prependAll=t.unzip=t.zip=t.zipWith=t.sort=void 0,t.some=t.every=t.unsafeDeleteAt=t.unsafeUpdateAt=t.unsafeInsertAt=t.fromEitherK=t.FromEither=t.filterE=t.ChainRecBreadthFirst=t.chainRecBreadthFirst=t.ChainRecDepthFirst=t.chainRecDepthFirst=t.Witherable=t.TraversableWithIndex=t.Traversable=t.FoldableWithIndex=t.Foldable=t.FilterableWithIndex=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.guard=t.Zero=t.Alt=t.Unfoldable=t.Monad=t.chainFirst=t.Chain=t.Applicative=t.apSecond=t.apFirst=t.Apply=t.FunctorWithIndex=t.Pointed=t.flap=t.Functor=t.getDifferenceMagma=t.getIntersectionSemigroup=t.getUnionMonoid=t.getUnionSemigroup=t.getOrd=t.getEq=t.getMonoid=t.getSemigroup=t.getShow=t.URI=t.unfold=t.wilt=t.wither=void 0,t.array=t.prependToAll=t.snoc=t.cons=t.empty=t.range=t.chain=t.apS=t.bind=t.let=t.bindTo=t.Do=t.intercalate=t.exists=void 0;var o=e(93145),a=e(18222),c=e(57756),f=e(14632),l=e(8762),p=u(e(5309)),d=u(e(7219)),s=u(e(78703)),h=e(4773),m=e(69706),v=e(3899);t.isEmpty=function(n){return 0===n.length},t.isNonEmpty=d.isNonEmpty,t.prepend=d.prepend,t.prependW=d.prependW,t.append=d.append,t.appendW=d.appendW,t.makeBy=function(n,t){return n<=0?[]:d.makeBy(t)(n)},t.replicate=function(n,e){return(0,t.makeBy)(n,function(){return e})},t.fromPredicate=function(n){return function(t){return n(t)?[t]:[]}},t.fromOption=function(n){return p.isNone(n)?[]:[n.value]},t.fromEither=function(n){return p.isLeft(n)?[]:[n.right]},t.matchW=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(r):n()}},t.match=t.matchW,t.matchLeftW=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(d.head(r),d.tail(r)):n()}},t.matchLeft=t.matchLeftW,t.foldLeft=t.matchLeft,t.matchRightW=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(d.init(r),d.last(r)):n()}},t.matchRight=t.matchRightW,t.foldRight=t.matchRight,t.chainWithIndex=function(n){return function(t){for(var e=[],r=0;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},t.scanLeft=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[0]=n;for(var u=0;u<r;u++)i[u+1]=t(i[u],e[u]);return i}},t.scanRight=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[r]=n;for(var u=r-1;u>=0;u--)i[u]=t(e[u],i[u+1]);return i}},t.size=function(n){return n.length},t.isOutOfBound=d.isOutOfBound,t.lookup=s.lookup,t.head=s.head,t.last=s.last,t.tail=function(n){return(0,t.isNonEmpty)(n)?p.some(d.tail(n)):p.none},t.init=function(n){return(0,t.isNonEmpty)(n)?p.some(d.init(n)):p.none},t.takeLeft=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?(0,t.copy)(e):e.slice(0,n)}},t.takeRight=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?(0,t.copy)(e):0===n?[]:e.slice(-n)}},t.takeLeftWhile=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r];if(!n(i))break;e.push(i)}return e}};var g=function(n,t){for(var e=n.length,r=0;r<e&&t(n[r]);r++);return r};function y(n){var e=d.union(n);return function(r,i){if(void 0===i){var u=y(n);return function(n){return u(n,r)}}return(0,t.isNonEmpty)(r)&&(0,t.isNonEmpty)(i)?e(i)(r):(0,t.isNonEmpty)(r)?(0,t.copy)(r):(0,t.copy)(i)}}function b(n){var e=(0,t.elem)(n);return function(t,r){if(void 0===r){var i=b(n);return function(n){return i(n,t)}}return t.filter(function(n){return e(n,r)})}}function _(n){var e=(0,t.elem)(n);return function(t,r){if(void 0===r){var i=_(n);return function(n){return i(n,t)}}return t.filter(function(n){return!e(n,r)})}}t.spanLeft=function(n){return function(e){var r=(0,t.splitAt)(g(e,n))(e);return{init:r[0],rest:r[1]}}},t.dropLeft=function(n){return function(e){return n<=0||(0,t.isEmpty)(e)?(0,t.copy)(e):n>=e.length?[]:e.slice(n,e.length)}},t.dropRight=function(n){return function(e){return n<=0||(0,t.isEmpty)(e)?(0,t.copy)(e):n>=e.length?[]:e.slice(0,e.length-n)}},t.dropLeftWhile=function(n){return function(t){return t.slice(g(t,n))}},t.findIndex=s.findIndex,t.findFirst=function(n){return s.findFirst(n)},t.findFirstMap=s.findFirstMap,t.findLast=function(n){return s.findLast(n)},t.findLastMap=s.findLastMap,t.findLastIndex=s.findLastIndex,t.copy=function(n){return n.slice()},t.insertAt=function(n,e){return function(r){return n<0||n>r.length?p.none:p.some((0,t.unsafeInsertAt)(n,e,r))}},t.updateAt=function(n,e){return(0,t.modifyAt)(n,function(){return e})},t.deleteAt=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?p.none:p.some((0,t.unsafeDeleteAt)(n,e))}},t.modifyAt=function(n,e){return function(r){return(0,t.isOutOfBound)(n,r)?p.none:p.some((0,t.unsafeUpdateAt)(n,e(r[n]),r))}},t.reverse=function(n){return(0,t.isEmpty)(n)?[]:n.slice().reverse()},t.rights=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Right"===r._tag&&t.push(r.right)}return t},t.lefts=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Left"===r._tag&&t.push(r.left)}return t},t.sort=function(n){return function(e){return e.length<=1?(0,t.copy)(e):e.slice().sort(n.compare)}},t.zipWith=function(n,t,e){for(var r=[],i=Math.min(n.length,t.length),u=0;u<i;u++)r[u]=e(n[u],t[u]);return r},t.zip=function n(e,r){return void 0===r?function(t){return n(t,e)}:(0,t.zipWith)(e,r,function(n,t){return[n,t]})},t.unzip=function(n){for(var t=[],e=[],r=0;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},t.prependAll=function(n){var e=d.prependAll(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):[]}},t.intersperse=function(n){var e=d.intersperse(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):(0,t.copy)(n)}},t.rotate=function(n){var e=d.rotate(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):(0,t.copy)(n)}},t.elem=s.elem,t.uniq=function(n){var e=d.uniq(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):(0,t.copy)(n)}},t.sortBy=function(n){var e=d.sortBy(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):(0,t.copy)(n)}},t.chop=function(n){var e=d.chop(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):[]}},t.splitAt=function(n){return function(e){return n>=1&&(0,t.isNonEmpty)(e)?d.splitAt(n)(e):(0,t.isEmpty)(e)?[(0,t.copy)(e),[]]:[[],(0,t.copy)(e)]}},t.chunksOf=function(n){var e=d.chunksOf(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):[]}},t.fromOptionK=function(n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0,t.fromOption)(n.apply(void 0,e))}},t.comprehension=function(n,e,r){void 0===r&&(r=function(){return!0});var i=function(n,u){return(0,t.isNonEmpty)(u)?(0,t.flatMap)(d.head(u),function(e){return i((0,f.pipe)(n,(0,t.append)(e)),d.tail(u))}):r.apply(void 0,n)?[e.apply(void 0,n)]:[]};return i([],n)},t.concatW=function(n){return function(e){return(0,t.isEmpty)(e)?(0,t.copy)(n):(0,t.isEmpty)(n)?(0,t.copy)(e):e.concat(n)}},t.concat=t.concatW,t.union=y,t.intersection=b,t.difference=_;var I=function(n,e){return(0,f.pipe)(n,(0,t.map)(e))},R=function(n,e){return(0,f.pipe)(n,(0,t.mapWithIndex)(e))},S=function(n,e){return(0,f.pipe)(n,(0,t.ap)(e))},T=function(n,e){return(0,f.pipe)(n,(0,t.filter)(e))},x=function(n,e){return(0,f.pipe)(n,(0,t.filterMap)(e))},w=function(n,e){return(0,f.pipe)(n,(0,t.partition)(e))},M=function(n,e){return(0,f.pipe)(n,(0,t.partitionMap)(e))},O=function(n,e){return(0,f.pipe)(n,(0,t.partitionWithIndex)(e))},E=function(n,e){return(0,f.pipe)(n,(0,t.partitionMapWithIndex)(e))},C=function(n,e){return(0,f.pipe)(n,(0,t.alt)(e))},k=function(n,e,r){return(0,f.pipe)(n,(0,t.reduce)(e,r))},W=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},F=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceRight)(e,r))},P=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceWithIndex)(e,r))},D=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},A=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceRightWithIndex)(e,r))},U=function(n,e){return(0,f.pipe)(n,(0,t.filterMapWithIndex)(e))},L=function(n,e){return(0,f.pipe)(n,(0,t.filterWithIndex)(e))},N=function(n,e){return(0,f.pipe)(n,(0,t.extend)(e))},j=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},q=function(n){var e=(0,t.traverseWithIndex)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},G=s._chainRecDepthFirst,K=s._chainRecBreadthFirst;t.of=d.of,t.zero=function(){return[]},t.map=function(n){return function(t){return t.map(function(t){return n(t)})}},t.ap=function(n){return(0,t.flatMap)(function(e){return(0,f.pipe)(n,(0,t.map)(e))})},t.flatMap=(0,f.dual)(2,function(n,e){return(0,f.pipe)(n,(0,t.chainWithIndex)(function(n,t){return e(t,n)}))}),t.flatten=(0,t.flatMap)(f.identity),t.mapWithIndex=function(n){return function(t){return t.map(function(t,e){return n(e,t)})}},t.filterMapWithIndex=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=n(r,t[r]);p.isSome(i)&&e.push(i.value)}return e}},t.filterMap=function(n){return(0,t.filterMapWithIndex)(function(t,e){return n(e)})},t.compact=(0,t.filterMap)(f.identity),t.separate=function(n){for(var t=[],e=[],r=0;r<n.length;r++){var i=n[r];"Left"===i._tag?t.push(i.left):e.push(i.right)}return(0,h.separated)(t,e)},t.filter=function(n){return function(t){return t.filter(n)}},t.partition=function(n){return(0,t.partitionWithIndex)(function(t,e){return n(e)})},t.partitionWithIndex=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=t[i];n(i,u)?r.push(u):e.push(u)}return(0,h.separated)(e,r)}},t.partitionMap=function(n){return(0,t.partitionMapWithIndex)(function(t,e){return n(e)})},t.partitionMapWithIndex=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=n(i,t[i]);"Left"===u._tag?e.push(u.left):r.push(u.right)}return(0,h.separated)(e,r)}},t.altW=function(n){return function(t){return t.concat(n())}},t.alt=t.altW,t.filterWithIndex=function(n){return function(t){return t.filter(function(t,e){return n(e,t)})}},t.extend=function(n){return function(t){return t.map(function(e,r){return n(t.slice(r))})}},t.duplicate=(0,t.extend)(f.identity),t.foldMap=s.foldMap,t.foldMapWithIndex=s.foldMapWithIndex,t.reduce=s.reduce,t.reduceWithIndex=s.reduceWithIndex,t.reduceRight=s.reduceRight,t.reduceRightWithIndex=s.reduceRightWithIndex,t.traverse=function(n){var e=(0,t.traverseWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}},t.sequence=function(n){return function(e){return k(e,n.of((0,t.zero)()),function(e,r){return n.ap(n.map(e,function(n){return function(e){return(0,f.pipe)(n,(0,t.append)(e))}}),r)})}},t.traverseWithIndex=function(n){return function(e){return(0,t.reduceWithIndex)(n.of((0,t.zero)()),function(r,i,u){return n.ap(n.map(i,function(n){return function(e){return(0,f.pipe)(n,(0,t.append)(e))}}),e(r,u))})}},t.wither=function(n){var t=Y(n);return function(n){return function(e){return t(e,n)}}},t.wilt=function(n){var t=B(n);return function(n){return function(e){return t(e,n)}}},t.unfold=function(n,t){for(var e=[],r=n;;){var i=t(r);if(p.isSome(i)){var u=i.value,o=u[0],a=u[1];e.push(o),r=a}else break}return e},t.URI="Array",t.getShow=s.getShow,t.getSemigroup=function(){return{concat:function(n,t){return n.concat(t)}}},t.getMonoid=function(){return{concat:(0,t.getSemigroup)().concat,empty:[]}},t.getEq=s.getEq,t.getOrd=s.getOrd,t.getUnionSemigroup=function(n){var t=y(n);return{concat:function(n,e){return t(e)(n)}}},t.getUnionMonoid=function(n){return{concat:(0,t.getUnionSemigroup)(n).concat,empty:[]}},t.getIntersectionSemigroup=function(n){var t=b(n);return{concat:function(n,e){return t(e)(n)}}},t.getDifferenceMagma=function(n){var t=_(n);return{concat:function(n,e){return t(e)(n)}}},t.Functor={URI:t.URI,map:I},t.flap=(0,l.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:I,mapWithIndex:R},t.Apply={URI:t.URI,map:I,ap:S},t.apFirst=(0,o.apFirst)(t.Apply),t.apSecond=(0,o.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:I,ap:S,of:t.of},t.Chain={URI:t.URI,map:I,ap:S,chain:t.flatMap},t.chainFirst=(0,a.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:I,ap:S,of:t.of,chain:t.flatMap},t.Unfoldable={URI:t.URI,unfold:t.unfold},t.Alt={URI:t.URI,map:I,alt:C},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,v.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:I,ap:S,of:t.of,alt:C,zero:t.zero},t.Extend={URI:t.URI,map:I,extend:N},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:I,compact:t.compact,separate:t.separate,filter:T,filterMap:x,partition:w,partitionMap:M},t.FilterableWithIndex={URI:t.URI,map:I,mapWithIndex:R,compact:t.compact,separate:t.separate,filter:T,filterMap:x,partition:w,partitionMap:M,partitionMapWithIndex:E,partitionWithIndex:O,filterMapWithIndex:U,filterWithIndex:L},t.Foldable={URI:t.URI,reduce:k,foldMap:W,reduceRight:F},t.FoldableWithIndex={URI:t.URI,reduce:k,foldMap:W,reduceRight:F,reduceWithIndex:P,foldMapWithIndex:D,reduceRightWithIndex:A},t.Traversable={URI:t.URI,map:I,reduce:k,foldMap:W,reduceRight:F,traverse:j,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:I,mapWithIndex:R,reduce:k,foldMap:W,reduceRight:F,reduceWithIndex:P,foldMapWithIndex:D,reduceRightWithIndex:A,traverse:j,sequence:t.sequence,traverseWithIndex:q};var Y=(0,m.witherDefault)(t.Traversable,t.Compactable),B=(0,m.wiltDefault)(t.Traversable,t.Compactable);t.Witherable={URI:t.URI,map:I,compact:t.compact,separate:t.separate,filter:T,filterMap:x,partition:w,partitionMap:M,reduce:k,foldMap:W,reduceRight:F,traverse:j,sequence:t.sequence,wither:Y,wilt:B},t.chainRecDepthFirst=s.chainRecDepthFirst,t.ChainRecDepthFirst={URI:t.URI,map:I,ap:S,chain:t.flatMap,chainRec:G},t.chainRecBreadthFirst=s.chainRecBreadthFirst,t.ChainRecBreadthFirst={URI:t.URI,map:I,ap:S,chain:t.flatMap,chainRec:K},t.filterE=(0,m.filterE)(t.Witherable),t.FromEither={URI:t.URI,fromEither:t.fromEither},t.fromEitherK=(0,c.fromEitherK)(t.FromEither),t.unsafeInsertAt=d.unsafeInsertAt,t.unsafeUpdateAt=function(n,e,r){return(0,t.isNonEmpty)(r)?d.unsafeUpdateAt(n,e,r):[]},t.unsafeDeleteAt=function(n,t){var e=t.slice();return e.splice(n,1),e},t.every=s.every,t.some=function(n){return function(t){return t.some(n)}},t.exists=t.some,t.intercalate=s.intercalate,t.Do=(0,t.of)(p.emptyRecord),t.bindTo=(0,l.bindTo)(t.Functor);var V=(0,l.let)(t.Functor);t.let=V,t.bind=(0,a.bind)(t.Chain),t.apS=(0,o.apS)(t.Apply),t.chain=t.flatMap,t.range=d.range,t.empty=[],t.cons=d.cons,t.snoc=d.snoc,t.prependToAll=t.prependAll,t.array={URI:t.URI,compact:t.compact,separate:t.separate,map:I,ap:S,of:t.of,chain:t.flatMap,filter:T,filterMap:x,partition:w,partitionMap:M,mapWithIndex:R,partitionMapWithIndex:E,partitionWithIndex:O,filterMapWithIndex:U,filterWithIndex:L,alt:C,zero:t.zero,unfold:t.unfold,reduce:k,foldMap:W,reduceRight:F,traverse:j,sequence:t.sequence,reduceWithIndex:P,foldMapWithIndex:D,reduceRightWithIndex:A,traverseWithIndex:q,extend:N,wither:Y,wilt:B}},18222:function(n,t){function e(n){return function(t,e){return n.chain(t,function(t){return n.map(e(t),function(){return t})})}}Object.defineProperty(t,"__esModule",{value:!0}),t.bind=t.tap=t.chainFirst=void 0,t.chainFirst=function(n){var t=e(n);return function(n){return function(e){return t(e,n)}}},t.tap=e,t.bind=function(n){return function(t,e){return function(r){return n.chain(r,function(r){return n.map(e(r),function(n){var e;return Object.assign({},r,((e={})[t]=n,e))})})}}}},71166:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tailRec=void 0,t.tailRec=function(n,t){for(var e=t(n);"Left"===e._tag;)e=t(e.left);return e.right}},87412:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.match=t.foldW=t.matchW=t.isRight=t.isLeft=t.fromOption=t.fromPredicate=t.FromEither=t.MonadThrow=t.throwError=t.ChainRec=t.Extend=t.extend=t.Alt=t.alt=t.altW=t.Bifunctor=t.mapLeft=t.bimap=t.Traversable=t.sequence=t.traverse=t.Foldable=t.reduceRight=t.foldMap=t.reduce=t.Monad=t.Chain=t.Applicative=t.Apply=t.ap=t.apW=t.Pointed=t.of=t.asUnit=t.as=t.Functor=t.map=t.getAltValidation=t.getApplicativeValidation=t.getWitherable=t.getFilterable=t.getCompactable=t.getSemigroup=t.getEq=t.getShow=t.URI=t.flatMap=t.right=t.left=void 0,t.chainFirstW=t.chainFirst=t.chain=t.chainW=t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex=t.traverseReadonlyNonEmptyArrayWithIndex=t.ApT=t.apSW=t.apS=t.bindW=t.bind=t.let=t.bindTo=t.Do=t.exists=t.elem=t.toError=t.toUnion=t.chainNullableK=t.fromNullableK=t.tryCatchK=t.tryCatch=t.fromNullable=t.orElse=t.orElseW=t.swap=t.filterOrElseW=t.filterOrElse=t.flatMapOption=t.flatMapNullable=t.liftOption=t.liftNullable=t.chainOptionKW=t.chainOptionK=t.fromOptionK=t.duplicate=t.flatten=t.flattenW=t.tap=t.apSecondW=t.apSecond=t.apFirstW=t.apFirst=t.flap=t.getOrElse=t.getOrElseW=t.fold=void 0,t.getValidation=t.getValidationMonoid=t.getValidationSemigroup=t.getApplyMonoid=t.getApplySemigroup=t.either=t.stringifyJSON=t.parseJSON=void 0;var o=e(91756),a=e(93145),c=u(e(18222)),f=e(71166),l=e(57756),p=e(14632),d=e(8762),s=u(e(5309)),h=e(4773),m=e(69706);t.left=s.left,t.right=s.right,t.flatMap=(0,p.dual)(2,function(n,e){return(0,t.isLeft)(n)?n:e(n.right)});var v=function(n,e){return(0,p.pipe)(n,(0,t.map)(e))},g=function(n,e){return(0,p.pipe)(n,(0,t.ap)(e))},y=function(n,e,r){return(0,p.pipe)(n,(0,t.reduce)(e,r))},b=function(n){return function(e,r){var i=(0,t.foldMap)(n);return(0,p.pipe)(e,i(r))}},_=function(n,e,r){return(0,p.pipe)(n,(0,t.reduceRight)(e,r))},I=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,p.pipe)(n,e(t))}},R=function(n,e,r){return(0,p.pipe)(n,(0,t.bimap)(e,r))},S=function(n,e){return(0,p.pipe)(n,(0,t.mapLeft)(e))},T=function(n,e){return(0,p.pipe)(n,(0,t.alt)(e))},x=function(n,e){return(0,p.pipe)(n,(0,t.extend)(e))},w=function(n,e){return(0,f.tailRec)(e(n),function(n){return(0,t.isLeft)(n)?(0,t.right)((0,t.left)(n.left)):(0,t.isLeft)(n.right)?(0,t.left)(e(n.right.left)):(0,t.right)((0,t.right)(n.right.right))})};t.URI="Either",t.getShow=function(n,e){return{show:function(r){return(0,t.isLeft)(r)?"left(".concat(n.show(r.left),")"):"right(".concat(e.show(r.right),")")}}},t.getEq=function(n,e){return{equals:function(r,i){return r===i||((0,t.isLeft)(r)?(0,t.isLeft)(i)&&n.equals(r.left,i.left):(0,t.isRight)(i)&&e.equals(r.right,i.right))}}},t.getSemigroup=function(n){return{concat:function(e,r){return(0,t.isLeft)(r)?e:(0,t.isLeft)(e)?r:(0,t.right)(n.concat(e.right,r.right))}}},t.getCompactable=function(n){var e=(0,t.left)(n.empty);return{URI:t.URI,_E:void 0,compact:function(n){return(0,t.isLeft)(n)?n:"None"===n.right._tag?e:(0,t.right)(n.right.value)},separate:function(n){return(0,t.isLeft)(n)?(0,h.separated)(n,n):(0,t.isLeft)(n.right)?(0,h.separated)((0,t.right)(n.right.left),e):(0,h.separated)(e,(0,t.right)(n.right.right))}}},t.getFilterable=function(n){var e=(0,t.left)(n.empty),r=(0,t.getCompactable)(n),i=r.compact,u=r.separate;return{URI:t.URI,_E:void 0,map:v,compact:i,separate:u,filter:function(n,r){return(0,t.isLeft)(n)?n:r(n.right)?n:e},filterMap:function(n,r){if((0,t.isLeft)(n))return n;var i=r(n.right);return"None"===i._tag?e:(0,t.right)(i.value)},partition:function(n,r){return(0,t.isLeft)(n)?(0,h.separated)(n,n):r(n.right)?(0,h.separated)(e,(0,t.right)(n.right)):(0,h.separated)((0,t.right)(n.right),e)},partitionMap:function(n,r){if((0,t.isLeft)(n))return(0,h.separated)(n,n);var i=r(n.right);return(0,t.isLeft)(i)?(0,h.separated)((0,t.right)(i.left),e):(0,h.separated)(e,(0,t.right)(i.right))}}},t.getWitherable=function(n){var e=(0,t.getFilterable)(n),r=(0,t.getCompactable)(n);return{URI:t.URI,_E:void 0,map:v,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:I,sequence:t.sequence,reduce:y,foldMap:b,reduceRight:_,wither:(0,m.witherDefault)(t.Traversable,r),wilt:(0,m.wiltDefault)(t.Traversable,r)}},t.getApplicativeValidation=function(n){return{URI:t.URI,_E:void 0,map:v,ap:function(e,r){return(0,t.isLeft)(e)?(0,t.isLeft)(r)?(0,t.left)(n.concat(e.left,r.left)):e:(0,t.isLeft)(r)?r:(0,t.right)(e.right(r.right))},of:t.of}},t.getAltValidation=function(n){return{URI:t.URI,_E:void 0,map:v,alt:function(e,r){if((0,t.isRight)(e))return e;var i=r();return(0,t.isLeft)(i)?(0,t.left)(n.concat(e.left,i.left)):i}}},t.map=function(n){return function(e){return(0,t.isLeft)(e)?e:(0,t.right)(n(e.right))}},t.Functor={URI:t.URI,map:v},t.as=(0,p.dual)(2,(0,d.as)(t.Functor)),t.asUnit=(0,d.asUnit)(t.Functor),t.of=t.right,t.Pointed={URI:t.URI,of:t.of},t.apW=function(n){return function(e){return(0,t.isLeft)(e)?e:(0,t.isLeft)(n)?n:(0,t.right)(e.right(n.right))}},t.ap=t.apW,t.Apply={URI:t.URI,map:v,ap:g},t.Applicative={URI:t.URI,map:v,ap:g,of:t.of},t.Chain={URI:t.URI,map:v,ap:g,chain:t.flatMap},t.Monad={URI:t.URI,map:v,ap:g,of:t.of,chain:t.flatMap},t.reduce=function(n,e){return function(r){return(0,t.isLeft)(r)?n:e(n,r.right)}},t.foldMap=function(n){return function(e){return function(r){return(0,t.isLeft)(r)?n.empty:e(r.right)}}},t.reduceRight=function(n,e){return function(r){return(0,t.isLeft)(r)?n:e(r.right,n)}},t.Foldable={URI:t.URI,reduce:y,foldMap:b,reduceRight:_},t.traverse=function(n){return function(e){return function(r){return(0,t.isLeft)(r)?n.of((0,t.left)(r.left)):n.map(e(r.right),t.right)}}},t.sequence=function(n){return function(e){return(0,t.isLeft)(e)?n.of((0,t.left)(e.left)):n.map(e.right,t.right)}},t.Traversable={URI:t.URI,map:v,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:t.sequence},t.bimap=function(n,e){return function(r){return(0,t.isLeft)(r)?(0,t.left)(n(r.left)):(0,t.right)(e(r.right))}},t.mapLeft=function(n){return function(e){return(0,t.isLeft)(e)?(0,t.left)(n(e.left)):e}},t.Bifunctor={URI:t.URI,bimap:R,mapLeft:S},t.altW=function(n){return function(e){return(0,t.isLeft)(e)?n():e}},t.alt=t.altW,t.Alt={URI:t.URI,map:v,alt:T},t.extend=function(n){return function(e){return(0,t.isLeft)(e)?e:(0,t.right)(n(e))}},t.Extend={URI:t.URI,map:v,extend:x},t.ChainRec={URI:t.URI,map:v,ap:g,chain:t.flatMap,chainRec:w},t.throwError=t.left,t.MonadThrow={URI:t.URI,map:v,ap:g,of:t.of,chain:t.flatMap,throwError:t.throwError},t.FromEither={URI:t.URI,fromEither:p.identity},t.fromPredicate=(0,l.fromPredicate)(t.FromEither),t.fromOption=(0,l.fromOption)(t.FromEither),t.isLeft=s.isLeft,t.isRight=s.isRight,t.matchW=function(n,e){return function(r){return(0,t.isLeft)(r)?n(r.left):e(r.right)}},t.foldW=t.matchW,t.match=t.matchW,t.fold=t.match,t.getOrElseW=function(n){return function(e){return(0,t.isLeft)(e)?n(e.left):e.right}},t.getOrElse=t.getOrElseW,t.flap=(0,d.flap)(t.Functor),t.apFirst=(0,a.apFirst)(t.Apply),t.apFirstW=t.apFirst,t.apSecond=(0,a.apSecond)(t.Apply),t.apSecondW=t.apSecond,t.tap=(0,p.dual)(2,c.tap(t.Chain)),t.flattenW=(0,t.flatMap)(p.identity),t.flatten=t.flattenW,t.duplicate=(0,t.extend)(p.identity),t.fromOptionK=(0,l.fromOptionK)(t.FromEither),t.chainOptionK=(0,l.chainOptionK)(t.FromEither,t.Chain),t.chainOptionKW=t.chainOptionK;var M={fromEither:t.FromEither.fromEither};t.liftNullable=s.liftNullable(M),t.liftOption=s.liftOption(M);var O={flatMap:t.flatMap};t.flatMapNullable=s.flatMapNullable(M,O),t.flatMapOption=s.flatMapOption(M,O),t.filterOrElse=(0,l.filterOrElse)(t.FromEither,t.Chain),t.filterOrElseW=t.filterOrElse,t.swap=function(n){return(0,t.isLeft)(n)?(0,t.right)(n.left):(0,t.left)(n.right)},t.orElseW=function(n){return function(e){return(0,t.isLeft)(e)?n(e.left):e}},t.orElse=t.orElseW,t.fromNullable=function(n){return function(e){return null==e?(0,t.left)(n):(0,t.right)(e)}},t.tryCatch=function(n,e){try{return(0,t.right)(n())}catch(n){return(0,t.left)(e(n))}},t.tryCatchK=function(n,e){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return(0,t.tryCatch)(function(){return n.apply(void 0,r)},e)}},t.fromNullableK=function(n){var e=(0,t.fromNullable)(n);return function(n){return(0,p.flow)(n,e)}},t.chainNullableK=function(n){var e=(0,t.fromNullableK)(n);return function(n){return(0,t.flatMap)(e(n))}},t.toUnion=(0,t.foldW)(p.identity,p.identity),t.toError=function(n){return n instanceof Error?n:Error(String(n))},t.elem=function n(e){return function(r,i){if(void 0===i){var u=n(e);return function(n){return u(r,n)}}return!(0,t.isLeft)(i)&&e.equals(r,i.right)}},t.exists=function(n){return function(e){return!(0,t.isLeft)(e)&&n(e.right)}},t.Do=(0,t.of)(s.emptyRecord),t.bindTo=(0,d.bindTo)(t.Functor);var E=(0,d.let)(t.Functor);t.let=E,t.bind=c.bind(t.Chain),t.bindW=t.bind,t.apS=(0,a.apS)(t.Apply),t.apSW=t.apS,t.ApT=(0,t.of)(s.emptyReadonlyArray),t.traverseReadonlyNonEmptyArrayWithIndex=function(n){return function(e){var r=n(0,s.head(e));if((0,t.isLeft)(r))return r;for(var i=[r.right],u=1;u<e.length;u++){var o=n(u,e[u]);if((0,t.isLeft)(o))return o;i.push(o.right)}return(0,t.right)(i)}},t.traverseReadonlyArrayWithIndex=function(n){var e=(0,t.traverseReadonlyNonEmptyArrayWithIndex)(n);return function(n){return s.isNonEmpty(n)?e(n):t.ApT}},t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex,t.traverseArray=function(n){return(0,t.traverseReadonlyArrayWithIndex)(function(t,e){return n(e)})},t.sequenceArray=(0,t.traverseArray)(p.identity),t.chainW=t.flatMap,t.chain=t.flatMap,t.chainFirst=t.tap,t.chainFirstW=t.tap,t.parseJSON=function(n,e){return(0,t.tryCatch)(function(){return JSON.parse(n)},e)},t.stringifyJSON=function(n,e){return(0,t.tryCatch)(function(){var t=JSON.stringify(n);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},e)},t.either={URI:t.URI,map:v,of:t.of,ap:g,chain:t.flatMap,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:t.sequence,bimap:R,mapLeft:S,alt:T,extend:x,chainRec:w,throwError:t.throwError},t.getApplySemigroup=(0,a.getApplySemigroup)(t.Apply),t.getApplyMonoid=(0,o.getApplicativeMonoid)(t.Applicative),t.getValidationSemigroup=function(n,e){return(0,a.getApplySemigroup)((0,t.getApplicativeValidation)(n))(e)},t.getValidationMonoid=function(n,e){return(0,o.getApplicativeMonoid)((0,t.getApplicativeValidation)(n))(e)},t.getValidation=function(n){var e=(0,t.getApplicativeValidation)(n).ap,r=(0,t.getAltValidation)(n).alt;return{URI:t.URI,_E:void 0,map:v,of:t.of,chain:t.flatMap,bimap:R,mapLeft:S,reduce:y,foldMap:b,reduceRight:_,extend:x,traverse:I,sequence:t.sequence,chainRec:w,throwError:t.throwError,ap:e,alt:r}}},8190:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.eqDate=t.eqNumber=t.eqString=t.eqBoolean=t.eq=t.strictEqual=t.getStructEq=t.getTupleEq=t.Contravariant=t.getMonoid=t.getSemigroup=t.eqStrict=t.URI=t.contramap=t.tuple=t.struct=t.fromEquals=void 0;var r=e(14632);t.fromEquals=function(n){return{equals:function(t,e){return t===e||n(t,e)}}},t.struct=function(n){return(0,t.fromEquals)(function(t,e){for(var r in n)if(!n[r].equals(t[r],e[r]))return!1;return!0})},t.tuple=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return(0,t.fromEquals)(function(t,e){return n.every(function(n,r){return n.equals(t[r],e[r])})})},t.contramap=function(n){return function(e){return(0,t.fromEquals)(function(t,r){return e.equals(n(t),n(r))})}},t.URI="Eq",t.eqStrict={equals:function(n,t){return n===t}};var i={equals:function(){return!0}};t.getSemigroup=function(){return{concat:function(n,e){return(0,t.fromEquals)(function(t,r){return n.equals(t,r)&&e.equals(t,r)})}}},t.getMonoid=function(){return{concat:(0,t.getSemigroup)().concat,empty:i}},t.Contravariant={URI:t.URI,contramap:function(n,e){return(0,r.pipe)(n,(0,t.contramap)(e))}},t.getTupleEq=t.tuple,t.getStructEq=t.struct,t.strictEqual=t.eqStrict.equals,t.eq=t.Contravariant,t.eqBoolean=t.eqStrict,t.eqString=t.eqStrict,t.eqNumber=t.eqStrict,t.eqDate={equals:function(n,t){return n.valueOf()===t.valueOf()}}},57756:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.tapEither=t.filterOrElse=t.chainFirstEitherK=t.chainEitherK=t.fromEitherK=t.chainOptionK=t.fromOptionK=t.fromPredicate=t.fromOption=void 0;var o=e(18222),a=e(14632),c=u(e(5309));function f(n){return function(t){return function(e){return n.fromEither(c.isNone(e)?c.left(t()):c.right(e.value))}}}function l(n){var t=f(n);return function(n){var e=t(n);return function(n){return(0,a.flow)(n,e)}}}function p(n){return function(t){return(0,a.flow)(t,n.fromEither)}}function d(n,t){var e=p(n),r=(0,o.tap)(t);return function(n,t){return r(n,e(t))}}t.fromOption=f,t.fromPredicate=function(n){return function(t,e){return function(r){return n.fromEither(t(r)?c.right(r):c.left(e(r)))}}},t.fromOptionK=l,t.chainOptionK=function(n,t){var e=l(n);return function(n){var r=e(n);return function(n){return function(e){return t.chain(e,r(n))}}}},t.fromEitherK=p,t.chainEitherK=function(n,t){var e=p(n);return function(n){return function(r){return t.chain(r,e(n))}}},t.chainFirstEitherK=function(n,t){var e=d(n,t);return function(n){return function(t){return e(t,n)}}},t.filterOrElse=function(n,t){return function(e,r){return function(i){return t.chain(i,function(t){return n.fromEither(e(t)?c.right(t):c.left(r(t)))})}}},t.tapEither=d},8762:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.asUnit=t.as=t.getFunctorComposition=t.let=t.bindTo=t.flap=t.map=void 0;var r=e(14632);function i(n,t){return function(e){return function(r){return n.map(r,function(n){return t.map(n,e)})}}}function u(n){return function(t,e){return n.map(t,function(){return e})}}t.map=i,t.flap=function(n){return function(t){return function(e){return n.map(e,function(n){return n(t)})}}},t.bindTo=function(n){return function(t){return function(e){return n.map(e,function(n){var e;return(e={})[t]=n,e})}}},t.let=function(n){return function(t,e){return function(r){return n.map(r,function(n){var r;return Object.assign({},n,((r={})[t]=e(n),r))})}}},t.getFunctorComposition=function(n,t){var e=i(n,t);return{map:function(n,t){return(0,r.pipe)(n,e(t))}}},t.as=u,t.asUnit=function(n){var t=u(n);return function(n){return t(n,void 0)}}},73540:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=t.endo=t.filterSecond=t.filterFirst=t.reverse=void 0,t.reverse=function(n){return{concat:function(t,e){return n.concat(e,t)}}},t.filterFirst=function(n){return function(t){return{concat:function(e,r){return n(e)?t.concat(e,r):r}}}},t.filterSecond=function(n){return function(t){return{concat:function(e,r){return n(r)?t.concat(e,r):e}}}},t.endo=function(n){return function(t){return{concat:function(e,r){return t.concat(n(e),n(r))}}}},t.concatAll=function(n){return function(t){return function(e){return e.reduce(function(t,e){return n.concat(t,e)},t)}}}},7219:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t},o=this&&this.__spreadArray||function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.mapWithIndex=t.map=t.flatten=t.duplicate=t.extend=t.flatMap=t.ap=t.alt=t.altW=t.chunksOf=t.splitAt=t.chop=t.chainWithIndex=t.foldMap=t.foldMapWithIndex=t.intersperse=t.prependAll=t.unzip=t.zip=t.zipWith=t.of=t.copy=t.modifyAt=t.updateAt=t.insertAt=t.sort=t.groupBy=t.group=t.reverse=t.concat=t.concatW=t.unappend=t.unprepend=t.range=t.replicate=t.makeBy=t.fromArray=t.fromReadonlyNonEmptyArray=t.rotate=t.union=t.sortBy=t.uniq=t.unsafeUpdateAt=t.unsafeInsertAt=t.append=t.appendW=t.prepend=t.prependW=t.isOutOfBound=t.isNonEmpty=void 0,t.chain=t.intercalate=t.updateLast=t.modifyLast=t.updateHead=t.modifyHead=t.matchRight=t.matchLeft=t.concatAll=t.max=t.min=t.init=t.last=t.tail=t.head=t.apS=t.bind=t.let=t.bindTo=t.Do=t.Comonad=t.Alt=t.TraversableWithIndex=t.Traversable=t.FoldableWithIndex=t.Foldable=t.Monad=t.chainFirst=t.Chain=t.Applicative=t.apSecond=t.apFirst=t.Apply=t.FunctorWithIndex=t.Pointed=t.flap=t.Functor=t.getUnionSemigroup=t.getEq=t.getSemigroup=t.getShow=t.URI=t.extract=t.traverseWithIndex=t.sequence=t.traverse=t.reduceRightWithIndex=t.reduceRight=t.reduceWithIndex=t.reduce=void 0,t.nonEmptyArray=t.fold=t.prependToAll=t.snoc=t.cons=t.unsnoc=t.uncons=t.filterWithIndex=t.filter=t.groupSort=void 0;var a=e(93145),c=e(18222),f=e(14632),l=e(8762),p=u(e(5309)),d=e(83235),s=u(e(84612));function h(n){return function(t){return t.concat(n)}}function m(n,t){return t?n.concat(t):function(t){return t.concat(n)}}function v(n){return function(t){var e=t.length;if(0===e)return[];for(var r=[],i=t[0],u=[i],o=1;o<e;o++){var a=t[o];n.equals(a,i)?u.push(a):(r.push(u),u=[i=a])}return r.push(u),r}}t.isNonEmpty=function(n){return n.length>0},t.isOutOfBound=function(n,t){return n<0||n>=t.length},t.prependW=function(n){return function(t){return o([n],t,!0)}},t.prepend=t.prependW,t.appendW=function(n){return function(t){return o(o([],t,!0),[n],!1)}},t.append=t.appendW,t.unsafeInsertAt=function(n,e,r){if((0,t.isNonEmpty)(r)){var i=(0,t.fromReadonlyNonEmptyArray)(r);return i.splice(n,0,e),i}return[e]},t.unsafeUpdateAt=function(n,e,r){var i=(0,t.fromReadonlyNonEmptyArray)(r);return i[n]=e,i},t.uniq=function(n){return function(e){if(1===e.length)return(0,t.copy)(e);for(var r=[(0,t.head)(e)],i=(0,t.tail)(e),u=function(t){r.every(function(e){return!n.equals(e,t)})&&r.push(t)},o=0;o<i.length;o++)u(i[o]);return r}},t.sortBy=function(n){if((0,t.isNonEmpty)(n)){var e=(0,d.getMonoid)();return(0,t.sort)(n.reduce(e.concat,e.empty))}return t.copy},t.union=function(n){var e=(0,t.uniq)(n);return function(n){return function(t){return e((0,f.pipe)(t,m(n)))}}},t.rotate=function(n){return function(e){var r=e.length,i=Math.round(n)%r;if((0,t.isOutOfBound)(Math.abs(i),e)||0===i)return(0,t.copy)(e);if(!(i<0))return(0,t.rotate)(i-r)(e);var u=(0,t.splitAt)(-i)(e),o=u[0],a=u[1];return(0,f.pipe)(a,m(o))}},t.fromReadonlyNonEmptyArray=p.fromReadonlyNonEmptyArray,t.fromArray=function(n){return(0,t.isNonEmpty)(n)?p.some(n):p.none},t.makeBy=function(n){return function(t){for(var e=Math.max(0,Math.floor(t)),r=[n(0)],i=1;i<e;i++)r.push(n(i));return r}},t.replicate=function(n){return(0,t.makeBy)(function(){return n})},t.range=function(n,e){return n<=e?(0,t.makeBy)(function(t){return n+t})(e-n+1):[n]},t.unprepend=function(n){return[(0,t.head)(n),(0,t.tail)(n)]},t.unappend=function(n){return[(0,t.init)(n),(0,t.last)(n)]},t.concatW=h,t.concat=m,t.reverse=function(n){return o([(0,t.last)(n)],n.slice(0,-1).reverse(),!0)},t.group=v,t.groupBy=function(n){return function(t){for(var e={},r=0;r<t.length;r++){var i=t[r],u=n(i);p.has.call(e,u)?e[u].push(i):e[u]=[i]}return e}},t.sort=function(n){return function(t){return t.slice().sort(n.compare)}},t.insertAt=function(n,e){return function(r){return n<0||n>r.length?p.none:p.some((0,t.unsafeInsertAt)(n,e,r))}},t.updateAt=function(n,e){return(0,t.modifyAt)(n,function(){return e})},t.modifyAt=function(n,e){return function(r){return(0,t.isOutOfBound)(n,r)?p.none:p.some((0,t.unsafeUpdateAt)(n,e(r[n]),r))}},t.copy=t.fromReadonlyNonEmptyArray,t.of=function(n){return[n]},t.zipWith=function(n,t,e){for(var r=[e(n[0],t[0])],i=Math.min(n.length,t.length),u=1;u<i;u++)r[u]=e(n[u],t[u]);return r},t.zip=function n(e,r){return void 0===r?function(t){return n(t,e)}:(0,t.zipWith)(e,r,function(n,t){return[n,t]})},t.unzip=function(n){for(var t=[n[0][0]],e=[n[0][1]],r=1;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},t.prependAll=function(n){return function(t){for(var e=[n,t[0]],r=1;r<t.length;r++)e.push(n,t[r]);return e}},t.intersperse=function(n){return function(e){var r=(0,t.tail)(e);return(0,t.isNonEmpty)(r)?(0,f.pipe)(r,(0,t.prependAll)(n),(0,t.prepend)((0,t.head)(e))):(0,t.copy)(e)}},t.foldMapWithIndex=s.foldMapWithIndex,t.foldMap=s.foldMap,t.chainWithIndex=function(n){return function(e){for(var r=(0,t.fromReadonlyNonEmptyArray)(n(0,(0,t.head)(e))),i=1;i<e.length;i++)r.push.apply(r,n(i,e[i]));return r}},t.chop=function(n){return function(e){for(var r=n(e),i=r[0],u=r[1],o=[i],a=u;(0,t.isNonEmpty)(a);){var c=n(a),f=c[0],l=c[1];o.push(f),a=l}return o}},t.splitAt=function(n){return function(e){var r=Math.max(1,n);return r>=e.length?[(0,t.copy)(e),[]]:[(0,f.pipe)(e.slice(1,r),(0,t.prepend)((0,t.head)(e))),e.slice(r)]}},t.chunksOf=function(n){return(0,t.chop)((0,t.splitAt)(n))};var g=function(n,e){return(0,f.pipe)(n,(0,t.map)(e))},y=function(n,e){return(0,f.pipe)(n,(0,t.mapWithIndex)(e))},b=function(n,e){return(0,f.pipe)(n,(0,t.ap)(e))},_=function(n,e){return(0,f.pipe)(n,(0,t.extend)(e))},I=function(n,e,r){return(0,f.pipe)(n,(0,t.reduce)(e,r))},R=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},S=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceRight)(e,r))},T=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},x=function(n,e){return(0,f.pipe)(n,(0,t.alt)(e))},w=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceWithIndex)(e,r))},M=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},O=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceRightWithIndex)(e,r))},E=function(n){var e=(0,t.traverseWithIndex)(n);return function(n,t){return(0,f.pipe)(n,e(t))}};t.altW=function(n){return function(t){return(0,f.pipe)(t,h(n()))}},t.alt=t.altW,t.ap=function(n){return(0,t.flatMap)(function(e){return(0,f.pipe)(n,(0,t.map)(e))})},t.flatMap=(0,f.dual)(2,function(n,e){return(0,f.pipe)(n,(0,t.chainWithIndex)(function(n,t){return e(t,n)}))}),t.extend=function(n){return function(e){for(var r=(0,t.tail)(e),i=[n(e)];(0,t.isNonEmpty)(r);)i.push(n(r)),r=(0,t.tail)(r);return i}},t.duplicate=(0,t.extend)(f.identity),t.flatten=(0,t.flatMap)(f.identity),t.map=function(n){return(0,t.mapWithIndex)(function(t,e){return n(e)})},t.mapWithIndex=function(n){return function(e){for(var r=[n(0,(0,t.head)(e))],i=1;i<e.length;i++)r.push(n(i,e[i]));return r}},t.reduce=s.reduce,t.reduceWithIndex=s.reduceWithIndex,t.reduceRight=s.reduceRight,t.reduceRightWithIndex=s.reduceRightWithIndex,t.traverse=function(n){var e=(0,t.traverseWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}},t.sequence=function(n){return(0,t.traverseWithIndex)(n)(function(n,t){return t})},t.traverseWithIndex=function(n){return function(e){return function(r){for(var i=n.map(e(0,(0,t.head)(r)),t.of),u=1;u<r.length;u++)i=n.ap(n.map(i,function(n){return function(e){return(0,f.pipe)(n,(0,t.append)(e))}}),e(u,r[u]));return i}}},t.extract=s.head,t.URI="NonEmptyArray",t.getShow=s.getShow,t.getSemigroup=function(){return{concat:m}},t.getEq=s.getEq,t.getUnionSemigroup=function(n){var e=(0,t.union)(n);return{concat:function(n,t){return e(t)(n)}}},t.Functor={URI:t.URI,map:g},t.flap=(0,l.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:g,mapWithIndex:y},t.Apply={URI:t.URI,map:g,ap:b},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:g,ap:b,of:t.of},t.Chain={URI:t.URI,map:g,ap:b,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:g,ap:b,of:t.of,chain:t.flatMap},t.Foldable={URI:t.URI,reduce:I,foldMap:R,reduceRight:S},t.FoldableWithIndex={URI:t.URI,reduce:I,foldMap:R,reduceRight:S,reduceWithIndex:w,foldMapWithIndex:M,reduceRightWithIndex:O},t.Traversable={URI:t.URI,map:g,reduce:I,foldMap:R,reduceRight:S,traverse:T,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:g,mapWithIndex:y,reduce:I,foldMap:R,reduceRight:S,traverse:T,sequence:t.sequence,reduceWithIndex:w,foldMapWithIndex:M,reduceRightWithIndex:O,traverseWithIndex:E},t.Alt={URI:t.URI,map:g,alt:x},t.Comonad={URI:t.URI,map:g,extend:_,extract:t.extract},t.Do=(0,t.of)(p.emptyRecord),t.bindTo=(0,l.bindTo)(t.Functor);var C=(0,l.let)(t.Functor);t.let=C,t.bind=(0,c.bind)(t.Chain),t.apS=(0,a.apS)(t.Apply),t.head=s.head,t.tail=function(n){return n.slice(1)},t.last=s.last,t.init=function(n){return n.slice(0,-1)},t.min=s.min,t.max=s.max,t.concatAll=function(n){return function(t){return t.reduce(n.concat)}},t.matchLeft=function(n){return function(e){return n((0,t.head)(e),(0,t.tail)(e))}},t.matchRight=function(n){return function(e){return n((0,t.init)(e),(0,t.last)(e))}},t.modifyHead=function(n){return function(e){return o([n((0,t.head)(e))],(0,t.tail)(e),!0)}},t.updateHead=function(n){return(0,t.modifyHead)(function(){return n})},t.modifyLast=function(n){return function(e){return(0,f.pipe)((0,t.init)(e),(0,t.append)(n((0,t.last)(e))))}},t.updateLast=function(n){return(0,t.modifyLast)(function(){return n})},t.intercalate=s.intercalate,t.chain=t.flatMap,t.groupSort=function(n){var e=(0,t.sort)(n),r=v(n);return function(n){return(0,t.isNonEmpty)(n)?r(e(n)):[]}},t.filter=function(n){return(0,t.filterWithIndex)(function(t,e){return n(e)})},t.filterWithIndex=function(n){return function(e){return(0,t.fromArray)(e.filter(function(t,e){return n(e,t)}))}},t.uncons=t.unprepend,t.unsnoc=t.unappend,t.cons=function(n,e){return void 0===e?(0,t.prepend)(n):(0,f.pipe)(e,(0,t.prepend)(n))},t.snoc=function(n,e){return(0,f.pipe)(n,(0,t.append)(e))},t.prependToAll=t.prependAll,t.fold=s.concatAll,t.nonEmptyArray={URI:t.URI,of:t.of,map:g,mapWithIndex:y,ap:b,chain:t.flatMap,extend:_,extract:t.extract,reduce:I,foldMap:R,reduceRight:S,traverse:T,sequence:t.sequence,reduceWithIndex:w,foldMapWithIndex:M,reduceRightWithIndex:O,traverseWithIndex:E,alt:x}},72720:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Witherable=t.wilt=t.wither=t.Traversable=t.sequence=t.traverse=t.Filterable=t.partitionMap=t.partition=t.filterMap=t.filter=t.Compactable=t.separate=t.compact=t.Extend=t.extend=t.Alternative=t.guard=t.Zero=t.zero=t.Alt=t.alt=t.altW=t.orElse=t.Foldable=t.reduceRight=t.foldMap=t.reduce=t.Monad=t.Chain=t.flatMap=t.Applicative=t.Apply=t.ap=t.Pointed=t.of=t.asUnit=t.as=t.Functor=t.map=t.getMonoid=t.getOrd=t.getEq=t.getShow=t.URI=t.getRight=t.getLeft=t.fromPredicate=t.some=t.none=void 0,t.getFirstMonoid=t.getApplyMonoid=t.getApplySemigroup=t.option=t.mapNullable=t.getRefinement=t.chainFirst=t.chain=t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex=t.traverseReadonlyNonEmptyArrayWithIndex=t.ApT=t.apS=t.bind=t.let=t.bindTo=t.Do=t.exists=t.elem=t.toUndefined=t.toNullable=t.chainNullableK=t.fromNullableK=t.tryCatchK=t.tryCatch=t.fromNullable=t.chainFirstEitherK=t.chainEitherK=t.fromEitherK=t.duplicate=t.tapEither=t.tap=t.flatten=t.apSecond=t.apFirst=t.flap=t.getOrElse=t.getOrElseW=t.fold=t.match=t.foldW=t.matchW=t.isNone=t.isSome=t.FromEither=t.fromEither=t.MonadThrow=t.throwError=void 0,t.getLastMonoid=void 0;var o=e(91756),a=e(93145),c=u(e(18222)),f=e(57756),l=e(14632),p=e(8762),d=u(e(5309)),s=e(87612),h=e(98744),m=e(4773),v=e(69706),g=e(3899);t.none=d.none,t.some=d.some,t.fromPredicate=function(n){return function(e){return n(e)?(0,t.some)(e):t.none}},t.getLeft=function(n){return"Right"===n._tag?t.none:(0,t.some)(n.left)},t.getRight=function(n){return"Left"===n._tag?t.none:(0,t.some)(n.right)};var y=function(n,e){return(0,l.pipe)(n,(0,t.map)(e))},b=function(n,e){return(0,l.pipe)(n,(0,t.ap)(e))},_=function(n,e,r){return(0,l.pipe)(n,(0,t.reduce)(e,r))},I=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},R=function(n,e,r){return(0,l.pipe)(n,(0,t.reduceRight)(e,r))},S=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},T=function(n,e){return(0,l.pipe)(n,(0,t.alt)(e))},x=function(n,e){return(0,l.pipe)(n,(0,t.filter)(e))},w=function(n,e){return(0,l.pipe)(n,(0,t.filterMap)(e))},M=function(n,e){return(0,l.pipe)(n,(0,t.extend)(e))},O=function(n,e){return(0,l.pipe)(n,(0,t.partition)(e))},E=function(n,e){return(0,l.pipe)(n,(0,t.partitionMap)(e))};t.URI="Option",t.getShow=function(n){return{show:function(e){return(0,t.isNone)(e)?"none":"some(".concat(n.show(e.value),")")}}},t.getEq=function(n){return{equals:function(e,r){return e===r||((0,t.isNone)(e)?(0,t.isNone)(r):!(0,t.isNone)(r)&&n.equals(e.value,r.value))}}},t.getOrd=function(n){return{equals:(0,t.getEq)(n).equals,compare:function(e,r){return e===r?0:(0,t.isSome)(e)?(0,t.isSome)(r)?n.compare(e.value,r.value):1:-1}}},t.getMonoid=function(n){return{concat:function(e,r){return(0,t.isNone)(e)?r:(0,t.isNone)(r)?e:(0,t.some)(n.concat(e.value,r.value))},empty:t.none}},t.map=function(n){return function(e){return(0,t.isNone)(e)?t.none:(0,t.some)(n(e.value))}},t.Functor={URI:t.URI,map:y},t.as=(0,l.dual)(2,(0,p.as)(t.Functor)),t.asUnit=(0,p.asUnit)(t.Functor),t.of=t.some,t.Pointed={URI:t.URI,of:t.of},t.ap=function(n){return function(e){return(0,t.isNone)(e)?t.none:(0,t.isNone)(n)?t.none:(0,t.some)(e.value(n.value))}},t.Apply={URI:t.URI,map:y,ap:b},t.Applicative={URI:t.URI,map:y,ap:b,of:t.of},t.flatMap=(0,l.dual)(2,function(n,e){return(0,t.isNone)(n)?t.none:e(n.value)}),t.Chain={URI:t.URI,map:y,ap:b,chain:t.flatMap},t.Monad={URI:t.URI,map:y,ap:b,of:t.of,chain:t.flatMap},t.reduce=function(n,e){return function(r){return(0,t.isNone)(r)?n:e(n,r.value)}},t.foldMap=function(n){return function(e){return function(r){return(0,t.isNone)(r)?n.empty:e(r.value)}}},t.reduceRight=function(n,e){return function(r){return(0,t.isNone)(r)?n:e(r.value,n)}},t.Foldable={URI:t.URI,reduce:_,foldMap:I,reduceRight:R},t.orElse=(0,l.dual)(2,function(n,e){return(0,t.isNone)(n)?e():n}),t.altW=t.orElse,t.alt=t.orElse,t.Alt={URI:t.URI,map:y,alt:T},t.zero=function(){return t.none},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,g.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:y,ap:b,of:t.of,alt:T,zero:t.zero},t.extend=function(n){return function(e){return(0,t.isNone)(e)?t.none:(0,t.some)(n(e))}},t.Extend={URI:t.URI,map:y,extend:M},t.compact=(0,t.flatMap)(l.identity);var C=(0,m.separated)(t.none,t.none);t.separate=function(n){return(0,t.isNone)(n)?C:(0,m.separated)((0,t.getLeft)(n.value),(0,t.getRight)(n.value))},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.filter=function(n){return function(e){return(0,t.isNone)(e)?t.none:n(e.value)?e:t.none}},t.filterMap=function(n){return function(e){return(0,t.isNone)(e)?t.none:n(e.value)}},t.partition=function(n){return function(t){return(0,m.separated)(x(t,(0,s.not)(n)),x(t,n))}},t.partitionMap=function(n){return(0,l.flow)((0,t.map)(n),t.separate)},t.Filterable={URI:t.URI,map:y,compact:t.compact,separate:t.separate,filter:x,filterMap:w,partition:O,partitionMap:E},t.traverse=function(n){return function(e){return function(r){return(0,t.isNone)(r)?n.of(t.none):n.map(e(r.value),t.some)}}},t.sequence=function(n){return function(e){return(0,t.isNone)(e)?n.of(t.none):n.map(e.value,t.some)}},t.Traversable={URI:t.URI,map:y,reduce:_,foldMap:I,reduceRight:R,traverse:S,sequence:t.sequence};var k=(0,v.witherDefault)(t.Traversable,t.Compactable),W=(0,v.wiltDefault)(t.Traversable,t.Compactable);t.wither=function(n){var t=k(n);return function(n){return function(e){return t(e,n)}}},t.wilt=function(n){var t=W(n);return function(n){return function(e){return t(e,n)}}},t.Witherable={URI:t.URI,map:y,reduce:_,foldMap:I,reduceRight:R,traverse:S,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:x,filterMap:w,partition:O,partitionMap:E,wither:k,wilt:W},t.throwError=function(){return t.none},t.MonadThrow={URI:t.URI,map:y,ap:b,of:t.of,chain:t.flatMap,throwError:t.throwError},t.fromEither=t.getRight,t.FromEither={URI:t.URI,fromEither:t.fromEither},t.isSome=d.isSome,t.isNone=function(n){return"None"===n._tag},t.matchW=function(n,e){return function(r){return(0,t.isNone)(r)?n():e(r.value)}},t.foldW=t.matchW,t.match=t.matchW,t.fold=t.match,t.getOrElseW=function(n){return function(e){return(0,t.isNone)(e)?n():e.value}},t.getOrElse=t.getOrElseW,t.flap=(0,p.flap)(t.Functor),t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.flatten=t.compact,t.tap=(0,l.dual)(2,c.tap(t.Chain)),t.tapEither=(0,l.dual)(2,(0,f.tapEither)(t.FromEither,t.Chain)),t.duplicate=(0,t.extend)(l.identity),t.fromEitherK=(0,f.fromEitherK)(t.FromEither),t.chainEitherK=(0,f.chainEitherK)(t.FromEither,t.Chain),t.chainFirstEitherK=t.tapEither,t.fromNullable=function(n){return null==n?t.none:(0,t.some)(n)},t.tryCatch=function(n){try{return(0,t.some)(n())}catch(n){return t.none}},t.tryCatchK=function(n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0,t.tryCatch)(function(){return n.apply(void 0,e)})}},t.fromNullableK=function(n){return(0,l.flow)(n,t.fromNullable)},t.chainNullableK=function(n){return function(e){return(0,t.isNone)(e)?t.none:(0,t.fromNullable)(n(e.value))}},t.toNullable=(0,t.match)(l.constNull,l.identity),t.toUndefined=(0,t.match)(l.constUndefined,l.identity),t.elem=function n(e){return function(r,i){if(void 0===i){var u=n(e);return function(n){return u(r,n)}}return!(0,t.isNone)(i)&&e.equals(r,i.value)}},t.exists=function(n){return function(e){return!(0,t.isNone)(e)&&n(e.value)}},t.Do=(0,t.of)(d.emptyRecord),t.bindTo=(0,p.bindTo)(t.Functor);var F=(0,p.let)(t.Functor);t.let=F,t.bind=c.bind(t.Chain),t.apS=(0,a.apS)(t.Apply),t.ApT=(0,t.of)(d.emptyReadonlyArray),t.traverseReadonlyNonEmptyArrayWithIndex=function(n){return function(e){var r=n(0,d.head(e));if((0,t.isNone)(r))return t.none;for(var i=[r.value],u=1;u<e.length;u++){var o=n(u,e[u]);if((0,t.isNone)(o))return t.none;i.push(o.value)}return(0,t.some)(i)}},t.traverseReadonlyArrayWithIndex=function(n){var e=(0,t.traverseReadonlyNonEmptyArrayWithIndex)(n);return function(n){return d.isNonEmpty(n)?e(n):t.ApT}},t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex,t.traverseArray=function(n){return(0,t.traverseReadonlyArrayWithIndex)(function(t,e){return n(e)})},t.sequenceArray=(0,t.traverseArray)(l.identity),t.chain=t.flatMap,t.chainFirst=t.tap,t.getRefinement=function(n){return function(e){return(0,t.isSome)(n(e))}},t.mapNullable=t.chainNullableK,t.option={URI:t.URI,map:y,of:t.of,ap:b,chain:t.flatMap,reduce:_,foldMap:I,reduceRight:R,traverse:S,sequence:t.sequence,zero:t.zero,alt:T,extend:M,compact:t.compact,separate:t.separate,filter:x,filterMap:w,partition:O,partitionMap:E,wither:k,wilt:W,throwError:t.throwError},t.getApplySemigroup=(0,a.getApplySemigroup)(t.Apply),t.getApplyMonoid=(0,o.getApplicativeMonoid)(t.Applicative),t.getFirstMonoid=function(){return(0,t.getMonoid)((0,h.first)())},t.getLastMonoid=function(){return(0,t.getMonoid)((0,h.last)())}},83235:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ordDate=t.ordNumber=t.ordString=t.ordBoolean=t.ord=t.getDualOrd=t.getTupleOrd=t.between=t.clamp=t.max=t.min=t.geq=t.leq=t.gt=t.lt=t.equals=t.trivial=t.Contravariant=t.getMonoid=t.getSemigroup=t.URI=t.contramap=t.reverse=t.tuple=t.fromCompare=t.equalsDefault=void 0;var r=e(8190),i=e(14632);t.equalsDefault=function(n){return function(t,e){return t===e||0===n(t,e)}},t.fromCompare=function(n){return{equals:(0,t.equalsDefault)(n),compare:function(t,e){return t===e?0:n(t,e)}}},t.tuple=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return(0,t.fromCompare)(function(t,e){for(var r=0;r<n.length-1;r++){var i=n[r].compare(t[r],e[r]);if(0!==i)return i}return n[r].compare(t[r],e[r])})},t.reverse=function(n){return(0,t.fromCompare)(function(t,e){return n.compare(e,t)})},t.contramap=function(n){return function(e){return(0,t.fromCompare)(function(t,r){return e.compare(n(t),n(r))})}},t.URI="Ord",t.getSemigroup=function(){return{concat:function(n,e){return(0,t.fromCompare)(function(t,r){var i=n.compare(t,r);return 0!==i?i:e.compare(t,r)})}}},t.getMonoid=function(){return{concat:(0,t.getSemigroup)().concat,empty:(0,t.fromCompare)(function(){return 0})}},t.Contravariant={URI:t.URI,contramap:function(n,e){return(0,i.pipe)(n,(0,t.contramap)(e))}},t.trivial={equals:i.constTrue,compare:(0,i.constant)(0)},t.equals=function(n){return function(t){return function(e){return e===t||0===n.compare(e,t)}}},t.lt=function(n){return function(t,e){return -1===n.compare(t,e)}},t.gt=function(n){return function(t,e){return 1===n.compare(t,e)}},t.leq=function(n){return function(t,e){return 1!==n.compare(t,e)}},t.geq=function(n){return function(t,e){return -1!==n.compare(t,e)}},t.min=function(n){return function(t,e){return t===e||1>n.compare(t,e)?t:e}},t.max=function(n){return function(t,e){return t===e||n.compare(t,e)>-1?t:e}},t.clamp=function(n){var e=(0,t.min)(n),r=(0,t.max)(n);return function(n,t){return function(i){return r(e(i,t),n)}}},t.between=function(n){var e=(0,t.lt)(n),r=(0,t.gt)(n);return function(n,t){return function(i){return!(e(i,n)||r(i,t))}}},t.getTupleOrd=t.tuple,t.getDualOrd=t.reverse,t.ord=t.Contravariant;var u={equals:r.eqStrict.equals,compare:function(n,t){return n<t?-1:n>t?1:0}};t.ordBoolean=u,t.ordString=u,t.ordNumber=u,t.ordDate=(0,i.pipe)(t.ordNumber,(0,t.contramap)(function(n){return n.valueOf()}))},87612:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.and=t.or=t.not=t.Contravariant=t.getMonoidAll=t.getSemigroupAll=t.getMonoidAny=t.getSemigroupAny=t.URI=t.contramap=void 0;var r=e(14632);t.contramap=function(n){return function(t){return(0,r.flow)(n,t)}},t.URI="Predicate",t.getSemigroupAny=function(){return{concat:function(n,e){return(0,r.pipe)(n,(0,t.or)(e))}}},t.getMonoidAny=function(){return{concat:(0,t.getSemigroupAny)().concat,empty:r.constFalse}},t.getSemigroupAll=function(){return{concat:function(n,e){return(0,r.pipe)(n,(0,t.and)(e))}}},t.getMonoidAll=function(){return{concat:(0,t.getSemigroupAll)().concat,empty:r.constTrue}},t.Contravariant={URI:t.URI,contramap:function(n,e){return(0,r.pipe)(n,(0,t.contramap)(e))}},t.not=function(n){return function(t){return!n(t)}},t.or=function(n){return function(t){return function(e){return t(e)||n(e)}}},t.and=function(n){return function(t){return function(e){return t(e)&&n(e)}}}},78703:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t},o=this&&this.__spreadArray||function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.sort=t.lefts=t.rights=t.reverse=t.modifyAt=t.deleteAt=t.updateAt=t.insertAt=t.findLastIndex=t.findLastMap=t.findLast=t.findFirstMap=t.findFirst=t.findIndex=t.dropLeftWhile=t.dropRight=t.dropLeft=t.spanLeft=t.takeLeftWhile=t.takeRight=t.takeLeft=t.init=t.tail=t.last=t.head=t.lookup=t.isOutOfBound=t.size=t.scanRight=t.scanLeft=t.chainWithIndex=t.foldRight=t.matchRight=t.matchRightW=t.foldLeft=t.matchLeft=t.matchLeftW=t.match=t.matchW=t.fromEither=t.fromOption=t.fromPredicate=t.replicate=t.makeBy=t.appendW=t.append=t.prependW=t.prepend=t.isNonEmpty=t.isEmpty=void 0,t.sequence=t.traverse=t.reduceRightWithIndex=t.reduceRight=t.reduceWithIndex=t.foldMap=t.reduce=t.foldMapWithIndex=t.duplicate=t.extend=t.filterWithIndex=t.partitionMapWithIndex=t.partitionMap=t.partitionWithIndex=t.partition=t.compact=t.filterMap=t.filterMapWithIndex=t.filter=t.separate=t.mapWithIndex=t.map=t.flatten=t.flatMap=t.ap=t.alt=t.altW=t.zero=t.of=t._chainRecBreadthFirst=t._chainRecDepthFirst=t.difference=t.intersection=t.union=t.concat=t.concatW=t.comprehension=t.fromOptionK=t.chunksOf=t.splitAt=t.chop=t.sortBy=t.uniq=t.elem=t.rotate=t.intersperse=t.prependAll=t.unzip=t.zip=t.zipWith=void 0,t.toArray=t.unsafeDeleteAt=t.unsafeUpdateAt=t.unsafeInsertAt=t.fromEitherK=t.FromEither=t.filterE=t.Witherable=t.ChainRecBreadthFirst=t.chainRecBreadthFirst=t.ChainRecDepthFirst=t.chainRecDepthFirst=t.TraversableWithIndex=t.Traversable=t.FoldableWithIndex=t.Foldable=t.FilterableWithIndex=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.guard=t.Zero=t.Alt=t.Unfoldable=t.chainFirst=t.Monad=t.Chain=t.Applicative=t.apSecond=t.apFirst=t.Apply=t.FunctorWithIndex=t.Pointed=t.flap=t.Functor=t.getDifferenceMagma=t.getIntersectionSemigroup=t.getUnionMonoid=t.getUnionSemigroup=t.getOrd=t.getEq=t.getMonoid=t.getSemigroup=t.getShow=t.URI=t.unfold=t.wilt=t.wither=t.traverseWithIndex=void 0,t.readonlyArray=t.prependToAll=t.snoc=t.cons=t.range=t.chain=t.apS=t.bind=t.let=t.bindTo=t.Do=t.intercalate=t.exists=t.some=t.every=t.empty=t.fromArray=void 0;var a=e(93145),c=e(18222),f=e(8190),l=e(57756),p=e(14632),d=e(8762),s=u(e(5309)),h=u(e(40457)),m=e(83235),v=u(e(84612)),g=e(4773),y=e(69706),b=e(3899);t.isEmpty=function(n){return 0===n.length},t.isNonEmpty=v.isNonEmpty,t.prepend=v.prepend,t.prependW=v.prependW,t.append=v.append,t.appendW=v.appendW,t.makeBy=function(n,e){return n<=0?t.empty:v.makeBy(e)(n)},t.replicate=function(n,e){return(0,t.makeBy)(n,function(){return e})},t.fromPredicate=function(n){return function(e){return n(e)?[e]:t.empty}},t.fromOption=function(n){return s.isNone(n)?t.empty:[n.value]},t.fromEither=function(n){return s.isLeft(n)?t.empty:[n.right]},t.matchW=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(r):n()}},t.match=t.matchW,t.matchLeftW=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(v.head(r),v.tail(r)):n()}},t.matchLeft=t.matchLeftW,t.foldLeft=t.matchLeft,t.matchRightW=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(v.init(r),v.last(r)):n()}},t.matchRight=t.matchRightW,t.foldRight=t.matchRight,t.chainWithIndex=function(n){return function(e){if((0,t.isEmpty)(e))return t.empty;for(var r=[],i=0;i<e.length;i++)r.push.apply(r,n(i,e[i]));return r}},t.scanLeft=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[0]=n;for(var u=0;u<r;u++)i[u+1]=t(i[u],e[u]);return i}},t.scanRight=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[r]=n;for(var u=r-1;u>=0;u--)i[u]=t(e[u],i[u+1]);return i}},t.size=function(n){return n.length},t.isOutOfBound=v.isOutOfBound,t.lookup=function n(e,r){return void 0===r?function(t){return n(e,t)}:(0,t.isOutOfBound)(e,r)?s.none:s.some(r[e])},t.head=function(n){return(0,t.isNonEmpty)(n)?s.some(v.head(n)):s.none},t.last=function(n){return(0,t.isNonEmpty)(n)?s.some(v.last(n)):s.none},t.tail=function(n){return(0,t.isNonEmpty)(n)?s.some(v.tail(n)):s.none},t.init=function(n){return(0,t.isNonEmpty)(n)?s.some(v.init(n)):s.none},t.takeLeft=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?e:0===n?t.empty:e.slice(0,n)}},t.takeRight=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?e:0===n?t.empty:e.slice(-n)}},t.takeLeftWhile=function(n){return function(e){for(var r=[],i=0;i<e.length;i++){var u=e[i];if(!n(u))break;r.push(u)}var o=r.length;return o===e.length?e:0===o?t.empty:r}};var _=function(n,t){for(var e=n.length,r=0;r<e&&t(n[r]);r++);return r};function I(n){return function(t,e){if(void 0===e){var r,i=I(n);return function(n){return i(t,n)}}for(var u=0;u<e.length;u++)if(r=e[u],n.equals(r,t))return!0;return!1}}function R(n){var e=v.union(n);return function(r,i){if(void 0===i){var u=R(n);return function(n){return u(n,r)}}return(0,t.isNonEmpty)(r)&&(0,t.isNonEmpty)(i)?e(i)(r):(0,t.isNonEmpty)(r)?r:i}}function S(n){var t=I(n);return function(e,r){if(void 0===r){var i=S(n);return function(n){return i(n,e)}}return e.filter(function(n){return t(n,r)})}}function T(n){var t=I(n);return function(e,r){if(void 0===r){var i=T(n);return function(n){return i(n,e)}}return e.filter(function(n){return!t(n,r)})}}t.spanLeft=function(n){return function(e){var r=(0,t.splitAt)(_(e,n))(e);return{init:r[0],rest:r[1]}}},t.dropLeft=function(n){return function(e){return n<=0||(0,t.isEmpty)(e)?e:n>=e.length?t.empty:e.slice(n,e.length)}},t.dropRight=function(n){return function(e){return n<=0||(0,t.isEmpty)(e)?e:n>=e.length?t.empty:e.slice(0,e.length-n)}},t.dropLeftWhile=function(n){return function(e){var r=_(e,n);return 0===r?e:r===e.length?t.empty:e.slice(r)}},t.findIndex=function(n){return function(t){for(var e=0;e<t.length;e++)if(n(t[e]))return s.some(e);return s.none}},t.findFirst=function(n){return function(t){for(var e=0;e<t.length;e++)if(n(t[e]))return s.some(t[e]);return s.none}},t.findFirstMap=function(n){return function(t){for(var e=0;e<t.length;e++){var r=n(t[e]);if(s.isSome(r))return r}return s.none}},t.findLast=function(n){return function(t){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return s.some(t[e]);return s.none}},t.findLastMap=function(n){return function(t){for(var e=t.length-1;e>=0;e--){var r=n(t[e]);if(s.isSome(r))return r}return s.none}},t.findLastIndex=function(n){return function(t){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return s.some(e);return s.none}},t.insertAt=function(n,t){return function(e){return n<0||n>e.length?s.none:s.some(v.unsafeInsertAt(n,t,e))}},t.updateAt=function(n,e){return(0,t.modifyAt)(n,function(){return e})},t.deleteAt=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?s.none:s.some((0,t.unsafeDeleteAt)(n,e))}},t.modifyAt=function(n,e){return function(r){return(0,t.isOutOfBound)(n,r)?s.none:s.some((0,t.unsafeUpdateAt)(n,e(r[n]),r))}},t.reverse=function(n){return n.length<=1?n:n.slice().reverse()},t.rights=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Right"===r._tag&&t.push(r.right)}return t},t.lefts=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Left"===r._tag&&t.push(r.left)}return t},t.sort=function(n){return function(t){return t.length<=1?t:t.slice().sort(n.compare)}},t.zipWith=function(n,t,e){for(var r=[],i=Math.min(n.length,t.length),u=0;u<i;u++)r[u]=e(n[u],t[u]);return r},t.zip=function n(e,r){return void 0===r?function(t){return n(t,e)}:(0,t.zipWith)(e,r,function(n,t){return[n,t]})},t.unzip=function(n){for(var t=[],e=[],r=0;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},t.prependAll=function(n){var e=v.prependAll(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}},t.intersperse=function(n){var e=v.intersperse(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}},t.rotate=function(n){var e=v.rotate(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}},t.elem=I,t.uniq=function(n){var e=v.uniq(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}},t.sortBy=function(n){var e=v.sortBy(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}},t.chop=function(n){var e=v.chop(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):t.empty}},t.splitAt=function(n){return function(e){return n>=1&&(0,t.isNonEmpty)(e)?v.splitAt(n)(e):(0,t.isEmpty)(e)?[e,t.empty]:[t.empty,e]}},t.chunksOf=function(n){var e=v.chunksOf(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):t.empty}},t.fromOptionK=function(n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0,t.fromOption)(n.apply(void 0,e))}},t.comprehension=function(n,e,r){void 0===r&&(r=function(){return!0});var i=function(n,u){return(0,t.isNonEmpty)(u)?(0,t.flatMap)(v.head(u),function(e){return i((0,p.pipe)(n,(0,t.append)(e)),v.tail(u))}):r.apply(void 0,n)?[e.apply(void 0,n)]:t.empty};return i(t.empty,n)},t.concatW=function(n){return function(e){return(0,t.isEmpty)(e)?n:(0,t.isEmpty)(n)?e:e.concat(n)}},t.concat=t.concatW,t.union=R,t.intersection=S,t.difference=T;var x=function(n,e){return(0,p.pipe)(n,(0,t.map)(e))},w=function(n,e){return(0,p.pipe)(n,(0,t.mapWithIndex)(e))},M=function(n,e){return(0,p.pipe)(n,(0,t.ap)(e))},O=function(n,e){return(0,p.pipe)(n,(0,t.filter)(e))},E=function(n,e){return(0,p.pipe)(n,(0,t.filterMap)(e))},C=function(n,e){return(0,p.pipe)(n,(0,t.partition)(e))},k=function(n,e){return(0,p.pipe)(n,(0,t.partitionMap)(e))},W=function(n,e){return(0,p.pipe)(n,(0,t.partitionWithIndex)(e))},F=function(n,e){return(0,p.pipe)(n,(0,t.partitionMapWithIndex)(e))},P=function(n,e){return(0,p.pipe)(n,(0,t.alt)(e))},D=function(n,e,r){return(0,p.pipe)(n,(0,t.reduce)(e,r))},A=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,p.pipe)(n,e(t))}},U=function(n,e,r){return(0,p.pipe)(n,(0,t.reduceRight)(e,r))},L=function(n,e,r){return(0,p.pipe)(n,(0,t.reduceWithIndex)(e,r))},N=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n,t){return(0,p.pipe)(n,e(t))}},j=function(n,e,r){return(0,p.pipe)(n,(0,t.reduceRightWithIndex)(e,r))},q=function(n,e){return(0,p.pipe)(n,(0,t.filterMapWithIndex)(e))},G=function(n,e){return(0,p.pipe)(n,(0,t.filterWithIndex)(e))},K=function(n,e){return(0,p.pipe)(n,(0,t.extend)(e))},Y=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,p.pipe)(n,e(t))}},B=function(n){var e=(0,t.traverseWithIndex)(n);return function(n,t){return(0,p.pipe)(n,e(t))}};t._chainRecDepthFirst=function(n,e){return(0,p.pipe)(n,(0,t.chainRecDepthFirst)(e))},t._chainRecBreadthFirst=function(n,e){return(0,p.pipe)(n,(0,t.chainRecBreadthFirst)(e))},t.of=v.of,t.zero=function(){return t.empty},t.altW=function(n){return function(t){return t.concat(n())}},t.alt=t.altW,t.ap=function(n){return(0,t.flatMap)(function(e){return(0,p.pipe)(n,(0,t.map)(e))})},t.flatMap=(0,p.dual)(2,function(n,e){return(0,p.pipe)(n,(0,t.chainWithIndex)(function(n,t){return e(t,n)}))}),t.flatten=(0,t.flatMap)(p.identity),t.map=function(n){return function(t){return t.map(function(t){return n(t)})}},t.mapWithIndex=function(n){return function(t){return t.map(function(t,e){return n(e,t)})}},t.separate=function(n){for(var t=[],e=[],r=0;r<n.length;r++){var i=n[r];"Left"===i._tag?t.push(i.left):e.push(i.right)}return(0,g.separated)(t,e)},t.filter=function(n){return function(t){return t.filter(n)}},t.filterMapWithIndex=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=n(r,t[r]);s.isSome(i)&&e.push(i.value)}return e}},t.filterMap=function(n){return(0,t.filterMapWithIndex)(function(t,e){return n(e)})},t.compact=(0,t.filterMap)(p.identity),t.partition=function(n){return(0,t.partitionWithIndex)(function(t,e){return n(e)})},t.partitionWithIndex=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=t[i];n(i,u)?r.push(u):e.push(u)}return(0,g.separated)(e,r)}},t.partitionMap=function(n){return(0,t.partitionMapWithIndex)(function(t,e){return n(e)})},t.partitionMapWithIndex=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=n(i,t[i]);"Left"===u._tag?e.push(u.left):r.push(u.right)}return(0,g.separated)(e,r)}},t.filterWithIndex=function(n){return function(t){return t.filter(function(t,e){return n(e,t)})}},t.extend=function(n){return function(t){return t.map(function(e,r){return n(t.slice(r))})}},t.duplicate=(0,t.extend)(p.identity),t.foldMapWithIndex=function(n){return function(t){return function(e){return e.reduce(function(e,r,i){return n.concat(e,t(i,r))},n.empty)}}},t.reduce=function(n,e){return(0,t.reduceWithIndex)(n,function(n,t,r){return e(t,r)})},t.foldMap=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}},t.reduceWithIndex=function(n,t){return function(e){for(var r=e.length,i=n,u=0;u<r;u++)i=t(u,i,e[u]);return i}},t.reduceRight=function(n,e){return(0,t.reduceRightWithIndex)(n,function(n,t,r){return e(t,r)})},t.reduceRightWithIndex=function(n,t){return function(e){return e.reduceRight(function(n,e,r){return t(r,e,n)},n)}},t.traverse=function(n){var e=(0,t.traverseWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}},t.sequence=function(n){return function(e){return D(e,n.of((0,t.zero)()),function(e,r){return n.ap(n.map(e,function(n){return function(e){return(0,p.pipe)(n,(0,t.append)(e))}}),r)})}},t.traverseWithIndex=function(n){return function(e){return(0,t.reduceWithIndex)(n.of((0,t.zero)()),function(r,i,u){return n.ap(n.map(i,function(n){return function(e){return(0,p.pipe)(n,(0,t.append)(e))}}),e(r,u))})}},t.wither=function(n){var t=V(n);return function(n){return function(e){return t(e,n)}}},t.wilt=function(n){var t=H(n);return function(n){return function(e){return t(e,n)}}},t.unfold=function(n,t){for(var e=[],r=n;;){var i=t(r);if(s.isSome(i)){var u=i.value,o=u[0],a=u[1];e.push(o),r=a}else break}return e},t.URI="ReadonlyArray",t.getShow=function(n){return{show:function(t){return"[".concat(t.map(n.show).join(", "),"]")}}},t.getSemigroup=function(){return{concat:function(n,e){return(0,t.isEmpty)(n)?e:(0,t.isEmpty)(e)?n:n.concat(e)}}},t.getMonoid=function(){return{concat:(0,t.getSemigroup)().concat,empty:t.empty}},t.getEq=function(n){return(0,f.fromEquals)(function(t,e){return t.length===e.length&&t.every(function(t,r){return n.equals(t,e[r])})})},t.getOrd=function(n){return(0,m.fromCompare)(function(t,e){for(var r=t.length,i=e.length,u=Math.min(r,i),o=0;o<u;o++){var a=n.compare(t[o],e[o]);if(0!==a)return a}return h.Ord.compare(r,i)})},t.getUnionSemigroup=function(n){var t=R(n);return{concat:function(n,e){return t(e)(n)}}},t.getUnionMonoid=function(n){return{concat:(0,t.getUnionSemigroup)(n).concat,empty:t.empty}},t.getIntersectionSemigroup=function(n){var t=S(n);return{concat:function(n,e){return t(e)(n)}}},t.getDifferenceMagma=function(n){var t=T(n);return{concat:function(n,e){return t(e)(n)}}},t.Functor={URI:t.URI,map:x},t.flap=(0,d.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:x,mapWithIndex:w},t.Apply={URI:t.URI,map:x,ap:M},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:x,ap:M,of:t.of},t.Chain={URI:t.URI,map:x,ap:M,chain:t.flatMap},t.Monad={URI:t.URI,map:x,ap:M,of:t.of,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Unfoldable={URI:t.URI,unfold:t.unfold},t.Alt={URI:t.URI,map:x,alt:P},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,b.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:x,ap:M,of:t.of,alt:P,zero:t.zero},t.Extend={URI:t.URI,map:x,extend:K},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:x,compact:t.compact,separate:t.separate,filter:O,filterMap:E,partition:C,partitionMap:k},t.FilterableWithIndex={URI:t.URI,map:x,mapWithIndex:w,compact:t.compact,separate:t.separate,filter:O,filterMap:E,partition:C,partitionMap:k,partitionMapWithIndex:F,partitionWithIndex:W,filterMapWithIndex:q,filterWithIndex:G},t.Foldable={URI:t.URI,reduce:D,foldMap:A,reduceRight:U},t.FoldableWithIndex={URI:t.URI,reduce:D,foldMap:A,reduceRight:U,reduceWithIndex:L,foldMapWithIndex:N,reduceRightWithIndex:j},t.Traversable={URI:t.URI,map:x,reduce:D,foldMap:A,reduceRight:U,traverse:Y,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:x,mapWithIndex:w,reduce:D,foldMap:A,reduceRight:U,reduceWithIndex:L,foldMapWithIndex:N,reduceRightWithIndex:j,traverse:Y,sequence:t.sequence,traverseWithIndex:B},t.chainRecDepthFirst=function(n){return function(t){for(var e=o([],n(t),!0),r=[];e.length>0;){var i=e.shift();s.isLeft(i)?e.unshift.apply(e,n(i.left)):r.push(i.right)}return r}},t.ChainRecDepthFirst={URI:t.URI,map:x,ap:M,chain:t.flatMap,chainRec:t._chainRecDepthFirst},t.chainRecBreadthFirst=function(n){return function(t){var e=n(t),r=[],i=[];function u(t){s.isLeft(t)?n(t.left).forEach(function(n){return r.push(n)}):i.push(t.right)}for(var o=0;o<e.length;o++)u(e[o]);for(;r.length>0;)u(r.shift());return i}},t.ChainRecBreadthFirst={URI:t.URI,map:x,ap:M,chain:t.flatMap,chainRec:t._chainRecBreadthFirst};var V=(0,y.witherDefault)(t.Traversable,t.Compactable),H=(0,y.wiltDefault)(t.Traversable,t.Compactable);t.Witherable={URI:t.URI,map:x,compact:t.compact,separate:t.separate,filter:O,filterMap:E,partition:C,partitionMap:k,reduce:D,foldMap:A,reduceRight:U,traverse:Y,sequence:t.sequence,wither:V,wilt:H},t.filterE=(0,y.filterE)(t.Witherable),t.FromEither={URI:t.URI,fromEither:t.fromEither},t.fromEitherK=(0,l.fromEitherK)(t.FromEither),t.unsafeInsertAt=v.unsafeInsertAt,t.unsafeUpdateAt=function(n,e,r){return(0,t.isNonEmpty)(r)?v.unsafeUpdateAt(n,e,r):r},t.unsafeDeleteAt=function(n,t){var e=t.slice();return e.splice(n,1),e},t.toArray=function(n){return n.slice()},t.fromArray=function(n){return(0,t.isEmpty)(n)?t.empty:n.slice()},t.empty=v.empty,t.every=function(n){return function(t){return t.every(n)}},t.some=function(n){return function(t){return t.some(n)}},t.exists=t.some,t.intercalate=function(n){var e=v.intercalate(n);return function(r){return(0,t.match)(function(){return n.empty},e(r))}},t.Do=(0,t.of)(s.emptyRecord),t.bindTo=(0,d.bindTo)(t.Functor);var z=(0,d.let)(t.Functor);t.let=z,t.bind=(0,c.bind)(t.Chain),t.apS=(0,a.apS)(t.Apply),t.chain=t.flatMap,t.range=v.range,t.cons=v.cons,t.snoc=v.snoc,t.prependToAll=t.prependAll,t.readonlyArray={URI:t.URI,compact:t.compact,separate:t.separate,map:x,ap:M,of:t.of,chain:t.flatMap,filter:O,filterMap:E,partition:C,partitionMap:k,mapWithIndex:w,partitionMapWithIndex:F,partitionWithIndex:W,filterMapWithIndex:q,filterWithIndex:G,alt:P,zero:t.zero,unfold:t.unfold,reduce:D,foldMap:A,reduceRight:U,traverse:Y,sequence:t.sequence,reduceWithIndex:L,foldMapWithIndex:N,reduceRightWithIndex:j,traverseWithIndex:B,extend:K,wither:V,wilt:H}},84612:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t},o=this&&this.__spreadArray||function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.reduceRight=t.foldMap=t.reduce=t.mapWithIndex=t.map=t.flatten=t.duplicate=t.extend=t.flatMap=t.ap=t.alt=t.altW=t.of=t.chunksOf=t.splitAt=t.chop=t.chainWithIndex=t.intersperse=t.prependAll=t.unzip=t.zip=t.zipWith=t.modifyAt=t.updateAt=t.sort=t.groupBy=t.group=t.reverse=t.concat=t.concatW=t.fromArray=t.unappend=t.unprepend=t.range=t.replicate=t.makeBy=t.fromReadonlyArray=t.rotate=t.union=t.sortBy=t.uniq=t.unsafeUpdateAt=t.unsafeInsertAt=t.append=t.appendW=t.prepend=t.prependW=t.isOutOfBound=t.isNonEmpty=t.empty=void 0,t.groupSort=t.chain=t.intercalate=t.updateLast=t.modifyLast=t.updateHead=t.modifyHead=t.matchRight=t.matchLeft=t.concatAll=t.max=t.min=t.init=t.last=t.tail=t.head=t.apS=t.bind=t.let=t.bindTo=t.Do=t.Comonad=t.Alt=t.TraversableWithIndex=t.Traversable=t.FoldableWithIndex=t.Foldable=t.Monad=t.chainFirst=t.Chain=t.Applicative=t.apSecond=t.apFirst=t.Apply=t.FunctorWithIndex=t.Pointed=t.flap=t.Functor=t.getUnionSemigroup=t.getEq=t.getSemigroup=t.getShow=t.URI=t.extract=t.traverseWithIndex=t.sequence=t.traverse=t.reduceRightWithIndex=t.foldMapWithIndex=t.reduceWithIndex=void 0,t.readonlyNonEmptyArray=t.fold=t.prependToAll=t.insertAt=t.snoc=t.cons=t.unsnoc=t.uncons=t.filterWithIndex=t.filter=void 0;var a=e(93145),c=e(18222),f=e(8190),l=e(14632),p=e(8762),d=u(e(5309)),s=e(83235),h=u(e(98744));function m(n){return function(t){return t.concat(n)}}function v(n,t){return t?n.concat(t):function(t){return t.concat(n)}}function g(n){return function(e){var r=e.length;if(0===r)return t.empty;for(var i=[],u=e[0],o=[u],a=1;a<r;a++){var c=e[a];n.equals(c,u)?o.push(c):(i.push(o),o=[u=c])}return i.push(o),i}}t.empty=d.emptyReadonlyArray,t.isNonEmpty=d.isNonEmpty,t.isOutOfBound=function(n,t){return n<0||n>=t.length},t.prependW=function(n){return function(t){return o([n],t,!0)}},t.prepend=t.prependW,t.appendW=function(n){return function(t){return o(o([],t,!0),[n],!1)}},t.append=t.appendW,t.unsafeInsertAt=function(n,e,r){if((0,t.isNonEmpty)(r)){var i=d.fromReadonlyNonEmptyArray(r);return i.splice(n,0,e),i}return[e]},t.unsafeUpdateAt=function(n,t,e){if(e[n]===t)return e;var r=d.fromReadonlyNonEmptyArray(e);return r[n]=t,r},t.uniq=function(n){return function(e){if(1===e.length)return e;for(var r=[(0,t.head)(e)],i=(0,t.tail)(e),u=function(t){r.every(function(e){return!n.equals(e,t)})&&r.push(t)},o=0;o<i.length;o++)u(i[o]);return r}},t.sortBy=function(n){if((0,t.isNonEmpty)(n)){var e=(0,s.getMonoid)();return(0,t.sort)(n.reduce(e.concat,e.empty))}return l.identity},t.union=function(n){var e=(0,t.uniq)(n);return function(n){return function(t){return e((0,l.pipe)(t,v(n)))}}},t.rotate=function(n){return function(e){var r=e.length,i=Math.round(n)%r;if((0,t.isOutOfBound)(Math.abs(i),e)||0===i)return e;if(!(i<0))return(0,t.rotate)(i-r)(e);var u=(0,t.splitAt)(-i)(e),o=u[0],a=u[1];return(0,l.pipe)(a,v(o))}},t.fromReadonlyArray=function(n){return(0,t.isNonEmpty)(n)?d.some(n):d.none},t.makeBy=function(n){return function(t){for(var e=Math.max(0,Math.floor(t)),r=[n(0)],i=1;i<e;i++)r.push(n(i));return r}},t.replicate=function(n){return(0,t.makeBy)(function(){return n})},t.range=function(n,e){return n<=e?(0,t.makeBy)(function(t){return n+t})(e-n+1):[n]},t.unprepend=function(n){return[(0,t.head)(n),(0,t.tail)(n)]},t.unappend=function(n){return[(0,t.init)(n),(0,t.last)(n)]},t.fromArray=function(n){return(0,t.fromReadonlyArray)(n.slice())},t.concatW=m,t.concat=v,t.reverse=function(n){return 1===n.length?n:o([(0,t.last)(n)],n.slice(0,-1).reverse(),!0)},t.group=g,t.groupBy=function(n){return function(t){for(var e={},r=0;r<t.length;r++){var i=t[r],u=n(i);d.has.call(e,u)?e[u].push(i):e[u]=[i]}return e}},t.sort=function(n){return function(t){return 1===t.length?t:t.slice().sort(n.compare)}},t.updateAt=function(n,e){return(0,t.modifyAt)(n,function(){return e})},t.modifyAt=function(n,e){return function(r){return(0,t.isOutOfBound)(n,r)?d.none:d.some((0,t.unsafeUpdateAt)(n,e(r[n]),r))}},t.zipWith=function(n,t,e){for(var r=[e(n[0],t[0])],i=Math.min(n.length,t.length),u=1;u<i;u++)r[u]=e(n[u],t[u]);return r},t.zip=function n(e,r){return void 0===r?function(t){return n(t,e)}:(0,t.zipWith)(e,r,function(n,t){return[n,t]})},t.unzip=function(n){for(var t=[n[0][0]],e=[n[0][1]],r=1;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},t.prependAll=function(n){return function(t){for(var e=[n,t[0]],r=1;r<t.length;r++)e.push(n,t[r]);return e}},t.intersperse=function(n){return function(e){var r=(0,t.tail)(e);return(0,t.isNonEmpty)(r)?(0,l.pipe)(r,(0,t.prependAll)(n),(0,t.prepend)((0,t.head)(e))):e}},t.chainWithIndex=function(n){return function(e){for(var r=d.fromReadonlyNonEmptyArray(n(0,(0,t.head)(e))),i=1;i<e.length;i++)r.push.apply(r,n(i,e[i]));return r}},t.chop=function(n){return function(e){for(var r=n(e),i=r[0],u=r[1],o=[i],a=u;(0,t.isNonEmpty)(a);){var c=n(a),f=c[0],l=c[1];o.push(f),a=l}return o}},t.splitAt=function(n){return function(e){var r=Math.max(1,n);return r>=e.length?[e,t.empty]:[(0,l.pipe)(e.slice(1,r),(0,t.prepend)((0,t.head)(e))),e.slice(r)]}},t.chunksOf=function(n){return(0,t.chop)((0,t.splitAt)(n))};var y=function(n,e){return(0,l.pipe)(n,(0,t.map)(e))},b=function(n,e){return(0,l.pipe)(n,(0,t.mapWithIndex)(e))},_=function(n,e){return(0,l.pipe)(n,(0,t.ap)(e))},I=function(n,e){return(0,l.pipe)(n,(0,t.extend)(e))},R=function(n,e,r){return(0,l.pipe)(n,(0,t.reduce)(e,r))},S=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},T=function(n,e,r){return(0,l.pipe)(n,(0,t.reduceRight)(e,r))},x=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},w=function(n,e){return(0,l.pipe)(n,(0,t.alt)(e))},M=function(n,e,r){return(0,l.pipe)(n,(0,t.reduceWithIndex)(e,r))},O=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},E=function(n,e,r){return(0,l.pipe)(n,(0,t.reduceRightWithIndex)(e,r))},C=function(n){var e=(0,t.traverseWithIndex)(n);return function(n,t){return(0,l.pipe)(n,e(t))}};t.of=d.singleton,t.altW=function(n){return function(t){return(0,l.pipe)(t,m(n()))}},t.alt=t.altW,t.ap=function(n){return(0,t.flatMap)(function(e){return(0,l.pipe)(n,(0,t.map)(e))})},t.flatMap=(0,l.dual)(2,function(n,e){return(0,l.pipe)(n,(0,t.chainWithIndex)(function(n,t){return e(t,n)}))}),t.extend=function(n){return function(e){for(var r=(0,t.tail)(e),i=[n(e)];(0,t.isNonEmpty)(r);)i.push(n(r)),r=(0,t.tail)(r);return i}},t.duplicate=(0,t.extend)(l.identity),t.flatten=(0,t.flatMap)(l.identity),t.map=function(n){return(0,t.mapWithIndex)(function(t,e){return n(e)})},t.mapWithIndex=function(n){return function(e){for(var r=[n(0,(0,t.head)(e))],i=1;i<e.length;i++)r.push(n(i,e[i]));return r}},t.reduce=function(n,e){return(0,t.reduceWithIndex)(n,function(n,t,r){return e(t,r)})},t.foldMap=function(n){return function(t){return function(e){return e.slice(1).reduce(function(e,r){return n.concat(e,t(r))},t(e[0]))}}},t.reduceRight=function(n,e){return(0,t.reduceRightWithIndex)(n,function(n,t,r){return e(t,r)})},t.reduceWithIndex=function(n,t){return function(e){return e.reduce(function(n,e,r){return t(r,n,e)},n)}},t.foldMapWithIndex=function(n){return function(t){return function(e){return e.slice(1).reduce(function(e,r,i){return n.concat(e,t(i+1,r))},t(0,e[0]))}}},t.reduceRightWithIndex=function(n,t){return function(e){return e.reduceRight(function(n,e,r){return t(r,e,n)},n)}},t.traverse=function(n){var e=(0,t.traverseWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}},t.sequence=function(n){return(0,t.traverseWithIndex)(n)(l.SK)},t.traverseWithIndex=function(n){return function(e){return function(r){for(var i=n.map(e(0,(0,t.head)(r)),t.of),u=1;u<r.length;u++)i=n.ap(n.map(i,function(n){return function(e){return(0,l.pipe)(n,(0,t.append)(e))}}),e(u,r[u]));return i}}},t.extract=d.head,t.URI="ReadonlyNonEmptyArray",t.getShow=function(n){return{show:function(t){return"[".concat(t.map(n.show).join(", "),"]")}}},t.getSemigroup=function(){return{concat:v}},t.getEq=function(n){return(0,f.fromEquals)(function(t,e){return t.length===e.length&&t.every(function(t,r){return n.equals(t,e[r])})})},t.getUnionSemigroup=function(n){var e=(0,t.union)(n);return{concat:function(n,t){return e(t)(n)}}},t.Functor={URI:t.URI,map:y},t.flap=(0,p.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:y,mapWithIndex:b},t.Apply={URI:t.URI,map:y,ap:_},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:y,ap:_,of:t.of},t.Chain={URI:t.URI,map:y,ap:_,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:y,ap:_,of:t.of,chain:t.flatMap},t.Foldable={URI:t.URI,reduce:R,foldMap:S,reduceRight:T},t.FoldableWithIndex={URI:t.URI,reduce:R,foldMap:S,reduceRight:T,reduceWithIndex:M,foldMapWithIndex:O,reduceRightWithIndex:E},t.Traversable={URI:t.URI,map:y,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:y,mapWithIndex:b,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:t.sequence,reduceWithIndex:M,foldMapWithIndex:O,reduceRightWithIndex:E,traverseWithIndex:C},t.Alt={URI:t.URI,map:y,alt:w},t.Comonad={URI:t.URI,map:y,extend:I,extract:t.extract},t.Do=(0,t.of)(d.emptyRecord),t.bindTo=(0,p.bindTo)(t.Functor);var k=(0,p.let)(t.Functor);t.let=k,t.bind=(0,c.bind)(t.Chain),t.apS=(0,a.apS)(t.Apply),t.head=t.extract,t.tail=d.tail,t.last=function(n){return n[n.length-1]},t.init=function(n){return n.slice(0,-1)},t.min=function(n){var t=h.min(n);return function(n){return n.reduce(t.concat)}},t.max=function(n){var t=h.max(n);return function(n){return n.reduce(t.concat)}},t.concatAll=function(n){return function(t){return t.reduce(n.concat)}},t.matchLeft=function(n){return function(e){return n((0,t.head)(e),(0,t.tail)(e))}},t.matchRight=function(n){return function(e){return n((0,t.init)(e),(0,t.last)(e))}},t.modifyHead=function(n){return function(e){return o([n((0,t.head)(e))],(0,t.tail)(e),!0)}},t.updateHead=function(n){return(0,t.modifyHead)(function(){return n})},t.modifyLast=function(n){return function(e){return(0,l.pipe)((0,t.init)(e),(0,t.append)(n((0,t.last)(e))))}},t.updateLast=function(n){return(0,t.modifyLast)(function(){return n})},t.intercalate=function(n){var e=(0,t.concatAll)(n);return function(n){return(0,l.flow)((0,t.intersperse)(n),e)}},t.chain=t.flatMap,t.groupSort=function(n){var e=(0,t.sort)(n),r=g(n);return function(n){return(0,t.isNonEmpty)(n)?r(e(n)):t.empty}},t.filter=function(n){return(0,t.filterWithIndex)(function(t,e){return n(e)})},t.filterWithIndex=function(n){return function(e){return(0,t.fromReadonlyArray)(e.filter(function(t,e){return n(e,t)}))}},t.uncons=t.unprepend,t.unsnoc=t.unappend,t.cons=function(n,e){return void 0===e?(0,t.prepend)(n):(0,l.pipe)(e,(0,t.prepend)(n))},t.snoc=function(n,t){return(0,l.pipe)(n,v([t]))},t.insertAt=function(n,e){return function(r){return n<0||n>r.length?d.none:d.some((0,t.unsafeInsertAt)(n,e,r))}},t.prependToAll=t.prependAll,t.fold=t.concatAll,t.readonlyNonEmptyArray={URI:t.URI,of:t.of,map:y,mapWithIndex:b,ap:_,chain:t.flatMap,extend:I,extract:t.extract,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:t.sequence,reduceWithIndex:M,foldMapWithIndex:O,reduceRightWithIndex:E,traverseWithIndex:C,alt:w}},98744:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.semigroupProduct=t.semigroupSum=t.semigroupString=t.getFunctionSemigroup=t.semigroupAny=t.semigroupAll=t.fold=t.getIntercalateSemigroup=t.getMeetSemigroup=t.getJoinSemigroup=t.getDualSemigroup=t.getStructSemigroup=t.getTupleSemigroup=t.getFirstSemigroup=t.getLastSemigroup=t.getObjectSemigroup=t.semigroupVoid=t.concatAll=t.last=t.first=t.intercalate=t.tuple=t.struct=t.reverse=t.constant=t.max=t.min=void 0;var o=e(14632),a=u(e(5309)),c=u(e(73540)),f=u(e(83235));t.min=function(n){return{concat:f.min(n)}},t.max=function(n){return{concat:f.max(n)}},t.constant=function(n){return{concat:function(){return n}}},t.reverse=c.reverse,t.struct=function(n){return{concat:function(t,e){var r={};for(var i in n)a.has.call(n,i)&&(r[i]=n[i].concat(t[i],e[i]));return r}}},t.tuple=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{concat:function(t,e){return n.map(function(n,r){return n.concat(t[r],e[r])})}}},t.intercalate=function(n){return function(t){return{concat:function(e,r){return t.concat(e,t.concat(n,r))}}}},t.first=function(){return{concat:o.identity}},t.last=function(){return{concat:function(n,t){return t}}},t.concatAll=c.concatAll,t.semigroupVoid=(0,t.constant)(void 0),t.getObjectSemigroup=function(){return{concat:function(n,t){return Object.assign({},n,t)}}},t.getLastSemigroup=t.last,t.getFirstSemigroup=t.first,t.getTupleSemigroup=t.tuple,t.getStructSemigroup=t.struct,t.getDualSemigroup=t.reverse,t.getJoinSemigroup=t.max,t.getMeetSemigroup=t.min,t.getIntercalateSemigroup=t.intercalate,t.fold=function(n){var e=(0,t.concatAll)(n);return function(n,t){return void 0===t?e(n):e(n)(t)}},t.semigroupAll={concat:function(n,t){return n&&t}},t.semigroupAny={concat:function(n,t){return n||t}},t.getFunctionSemigroup=o.getSemigroup,t.semigroupString={concat:function(n,t){return n+t}},t.semigroupSum={concat:function(n,t){return n+t}},t.semigroupProduct={concat:function(n,t){return n*t}}},4773:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.right=t.left=t.flap=t.Functor=t.Bifunctor=t.URI=t.bimap=t.mapLeft=t.map=t.separated=void 0;var r=e(14632),i=e(8762);t.separated=function(n,t){return{left:n,right:t}},t.map=function(n){return function(e){return(0,t.separated)((0,t.left)(e),n((0,t.right)(e)))}},t.mapLeft=function(n){return function(e){return(0,t.separated)(n((0,t.left)(e)),(0,t.right)(e))}},t.bimap=function(n,e){return function(r){return(0,t.separated)(n((0,t.left)(r)),e((0,t.right)(r)))}},t.URI="Separated",t.Bifunctor={URI:t.URI,mapLeft:function(n,e){return(0,r.pipe)(n,(0,t.mapLeft)(e))},bimap:function(n,e,i){return(0,r.pipe)(n,(0,t.bimap)(e,i))}},t.Functor={URI:t.URI,map:function(n,e){return(0,r.pipe)(n,(0,t.map)(e))}},t.flap=(0,i.flap)(t.Functor),t.left=function(n){return n.left},t.right=function(n){return n.right}},69706:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.filterE=t.witherDefault=t.wiltDefault=void 0;var o=u(e(5309));t.wiltDefault=function(n,t){return function(e){var r=n.traverse(e);return function(n,i){return e.map(r(n,i),t.separate)}}},t.witherDefault=function(n,t){return function(e){var r=n.traverse(e);return function(n,i){return e.map(r(n,i),t.compact)}}},t.filterE=function(n){return function(t){var e=n.wither(t);return function(n){return function(r){return e(r,function(e){return t.map(n(e),function(n){return n?o.some(e):o.none})})}}}}},3899:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.guard=void 0,t.guard=function(n,t){return function(e){return e?t.of(void 0):n.zero()}}},14632:function(n,t){var e=this&&this.__spreadArray||function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))};function r(n){return n}function i(n){return function(){return n}}function u(n,t,e,r,i,u,o,a,c){switch(arguments.length){case 1:return n;case 2:return function(){return t(n.apply(this,arguments))};case 3:return function(){return e(t(n.apply(this,arguments)))};case 4:return function(){return r(e(t(n.apply(this,arguments))))};case 5:return function(){return i(r(e(t(n.apply(this,arguments)))))};case 6:return function(){return u(i(r(e(t(n.apply(this,arguments))))))};case 7:return function(){return o(u(i(r(e(t(n.apply(this,arguments)))))))};case 8:return function(){return a(o(u(i(r(e(t(n.apply(this,arguments))))))))};case 9:return function(){return c(a(o(u(i(r(e(t(n.apply(this,arguments)))))))))}}}function o(n){throw Error("Called `absurd` function which should be uncallable")}Object.defineProperty(t,"__esModule",{value:!0}),t.dual=t.getEndomorphismMonoid=t.not=t.SK=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.unsafeCoerce=t.identity=t.apply=t.getRing=t.getSemiring=t.getMonoid=t.getSemigroup=t.getBooleanAlgebra=void 0,t.getBooleanAlgebra=function(n){return function(){return{meet:function(t,e){return function(r){return n.meet(t(r),e(r))}},join:function(t,e){return function(r){return n.join(t(r),e(r))}},zero:function(){return n.zero},one:function(){return n.one},implies:function(t,e){return function(r){return n.implies(t(r),e(r))}},not:function(t){return function(e){return n.not(t(e))}}}}},t.getSemigroup=function(n){return function(){return{concat:function(t,e){return function(r){return n.concat(t(r),e(r))}}}}},t.getMonoid=function(n){var e=(0,t.getSemigroup)(n);return function(){return{concat:e().concat,empty:function(){return n.empty}}}},t.getSemiring=function(n){return{add:function(t,e){return function(r){return n.add(t(r),e(r))}},zero:function(){return n.zero},mul:function(t,e){return function(r){return n.mul(t(r),e(r))}},one:function(){return n.one}}},t.getRing=function(n){var e=(0,t.getSemiring)(n);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(t,e){return function(r){return n.sub(t(r),e(r))}}}},t.apply=function(n){return function(t){return t(n)}},t.identity=r,t.unsafeCoerce=r,t.constant=i,t.constTrue=i(!0),t.constFalse=i(!1),t.constNull=i(null),t.constUndefined=i(void 0),t.constVoid=t.constUndefined,t.flip=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length>1?n(t[1],t[0]):function(e){return n(e)(t[0])}}},t.flow=u,t.tuple=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n},t.increment=function(n){return n+1},t.decrement=function(n){return n-1},t.absurd=o,t.tupled=function(n){return function(t){return n.apply(void 0,t)}},t.untupled=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n(t)}},t.pipe=function(n,t,e,r,i,u,o,a,c){switch(arguments.length){case 1:return n;case 2:return t(n);case 3:return e(t(n));case 4:return r(e(t(n)));case 5:return i(r(e(t(n))));case 6:return u(i(r(e(t(n)))));case 7:return o(u(i(r(e(t(n))))));case 8:return a(o(u(i(r(e(t(n)))))));case 9:return c(a(o(u(i(r(e(t(n))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}},t.hole=o,t.SK=function(n,t){return t},t.not=function(n){return function(t){return!n(t)}},t.getEndomorphismMonoid=function(){return{concat:function(n,t){return u(n,t)},empty:r}},t.dual=function(n,t){var r="number"==typeof n?function(t){return t.length>=n}:n;return function(){var n=Array.from(arguments);return r(arguments)?t.apply(this,n):function(r){return t.apply(void 0,e([r],n,!1))}}}},5309:function(n,t,e){var r=this&&this.__spreadArray||function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.flatMapReader=t.flatMapTask=t.flatMapIO=t.flatMapEither=t.flatMapOption=t.flatMapNullable=t.liftOption=t.liftNullable=t.fromReadonlyNonEmptyArray=t.has=t.emptyRecord=t.emptyReadonlyArray=t.tail=t.head=t.isNonEmpty=t.singleton=t.right=t.left=t.isRight=t.isLeft=t.some=t.none=t.isSome=t.isNone=void 0;var i=e(14632);t.isNone=function(n){return"None"===n._tag},t.isSome=function(n){return"Some"===n._tag},t.none={_tag:"None"},t.some=function(n){return{_tag:"Some",value:n}},t.isLeft=function(n){return"Left"===n._tag},t.isRight=function(n){return"Right"===n._tag},t.left=function(n){return{_tag:"Left",left:n}},t.right=function(n){return{_tag:"Right",right:n}},t.singleton=function(n){return[n]},t.isNonEmpty=function(n){return n.length>0},t.head=function(n){return n[0]},t.tail=function(n){return n.slice(1)},t.emptyReadonlyArray=[],t.emptyRecord={},t.has=Object.prototype.hasOwnProperty,t.fromReadonlyNonEmptyArray=function(n){return r([n[0]],n.slice(1),!0)},t.liftNullable=function(n){return function(e,r){return function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var o=e.apply(void 0,i);return n.fromEither(null==o?(0,t.left)(r.apply(void 0,i)):(0,t.right)(o))}}},t.liftOption=function(n){return function(e,r){return function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var o=e.apply(void 0,i);return n.fromEither((0,t.isNone)(o)?(0,t.left)(r.apply(void 0,i)):(0,t.right)(o.value))}}},t.flatMapNullable=function(n,e){return(0,i.dual)(3,function(r,i,u){return e.flatMap(r,(0,t.liftNullable)(n)(i,u))})},t.flatMapOption=function(n,e){return(0,i.dual)(3,function(r,i,u){return e.flatMap(r,(0,t.liftOption)(n)(i,u))})},t.flatMapEither=function(n,t){return(0,i.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromEither(r(t))})})},t.flatMapIO=function(n,t){return(0,i.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromIO(r(t))})})},t.flatMapTask=function(n,t){return(0,i.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromTask(r(t))})})},t.flatMapReader=function(n,t){return(0,i.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromReader(r(t))})})}},40457:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Field=t.MonoidProduct=t.MonoidSum=t.SemigroupProduct=t.SemigroupSum=t.MagmaSub=t.Show=t.Bounded=t.Ord=t.Eq=t.isNumber=void 0,t.isNumber=function(n){return"number"==typeof n},t.Eq={equals:function(n,t){return n===t}},t.Ord={equals:t.Eq.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},t.Bounded={equals:t.Eq.equals,compare:t.Ord.compare,top:1/0,bottom:-1/0},t.Show={show:function(n){return JSON.stringify(n)}},t.MagmaSub={concat:function(n,t){return n-t}},t.SemigroupSum={concat:function(n,t){return n+t}},t.SemigroupProduct={concat:function(n,t){return n*t}},t.MonoidSum={concat:t.SemigroupSum.concat,empty:0},t.MonoidProduct={concat:t.SemigroupProduct.concat,empty:1},t.Field={add:t.SemigroupSum.concat,zero:0,mul:t.SemigroupProduct.concat,one:1,sub:t.MagmaSub.concat,degree:function(n){return 1},div:function(n,t){return n/t},mod:function(n,t){return n%t}}},67794:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.pipe=t.pipeable=t.compose=t.promap=t.partitionMapWithIndex=t.partitionWithIndex=t.filterMapWithIndex=t.filterWithIndex=t.partitionMap=t.partition=t.filterMap=t.filter=t.alt=t.reduceRightWithIndex=t.foldMapWithIndex=t.reduceWithIndex=t.reduceRight=t.foldMap=t.reduce=t.extend=t.mapLeft=t.bimap=t.chain=t.ap=t.mapWithIndex=t.contramap=t.map=void 0;var r=e(93145),i=e(18222),u=e(14632);function o(n){return function(t){return function(e){return n.map(e,t)}}}function a(n){return function(t){return function(e){return n.contramap(e,t)}}}function c(n){return function(t){return function(e){return n.mapWithIndex(e,t)}}}function f(n){return function(t){return function(e){return n.ap(e,t)}}}function l(n){return function(t){return function(e){return n.chain(e,t)}}}function p(n){return function(t,e){return function(r){return n.bimap(r,t,e)}}}function d(n){return function(t){return function(e){return n.mapLeft(e,t)}}}function s(n){return function(t){return function(e){return n.extend(e,t)}}}function h(n){return function(t,e){return function(r){return n.reduce(r,t,e)}}}function m(n){return function(t){var e=n.foldMap(t);return function(n){return function(t){return e(t,n)}}}}function v(n){return function(t,e){return function(r){return n.reduceRight(r,t,e)}}}function g(n){return function(t,e){return function(r){return n.reduceWithIndex(r,t,e)}}}function y(n){return function(t){var e=n.foldMapWithIndex(t);return function(n){return function(t){return e(t,n)}}}}function b(n){return function(t,e){return function(r){return n.reduceRightWithIndex(r,t,e)}}}function _(n){return function(t){return function(e){return n.alt(e,t)}}}function I(n){return function(t){return function(e){return n.filter(e,t)}}}function R(n){return function(t){return function(e){return n.filterMap(e,t)}}}function S(n){return function(t){return function(e){return n.partition(e,t)}}}function T(n){return function(t){return function(e){return n.partitionMap(e,t)}}}function x(n){return function(t){return function(e){return n.filterWithIndex(e,t)}}}function w(n){return function(t){return function(e){return n.filterMapWithIndex(e,t)}}}function M(n){return function(t){return function(e){return n.partitionWithIndex(e,t)}}}function O(n){return function(t){return function(e){return n.partitionMapWithIndex(e,t)}}}function E(n){return function(t,e){return function(r){return n.promap(r,t,e)}}}function C(n){return function(t){return function(e){return n.compose(e,t)}}}t.map=o,t.contramap=a,t.mapWithIndex=c,t.ap=f,t.chain=l,t.bimap=p,t.mapLeft=d,t.extend=s,t.reduce=h,t.foldMap=m,t.reduceRight=v,t.reduceWithIndex=g,t.foldMapWithIndex=y,t.reduceRightWithIndex=b,t.alt=_,t.filter=I,t.filterMap=R,t.partition=S,t.partitionMap=T,t.filterWithIndex=x,t.filterMapWithIndex=w,t.partitionWithIndex=M,t.partitionMapWithIndex=O,t.promap=E,t.compose=C,t.pipeable=function(n){var t={};return"function"==typeof n.map&&(t.map=o(n)),"function"==typeof n.contramap&&(t.contramap=a(n)),"function"==typeof n.mapWithIndex&&(t.mapWithIndex=c(n)),"function"==typeof n.ap&&(t.ap=f(n),t.apFirst=(0,r.apFirst)(n),t.apSecond=(0,r.apSecond)(n)),"function"==typeof n.chain&&(t.chain=l(n),t.chainFirst=(0,i.chainFirst)(n),t.flatten=t.chain(u.identity)),"function"==typeof n.bimap&&(t.bimap=p(n),t.mapLeft=d(n)),"function"==typeof n.extend&&(t.extend=s(n),t.duplicate=t.extend(u.identity)),"function"==typeof n.reduce&&(t.reduce=h(n),t.foldMap=m(n),t.reduceRight=v(n)),"function"==typeof n.reduceWithIndex&&(t.reduceWithIndex=g(n),t.foldMapWithIndex=y(n),t.reduceRightWithIndex=b(n)),"function"==typeof n.alt&&(t.alt=_(n)),"function"==typeof n.compact&&(t.compact=n.compact,t.separate=n.separate),"function"==typeof n.filter&&(t.filter=I(n),t.filterMap=R(n),t.partition=S(n),t.partitionMap=T(n)),"function"==typeof n.filterWithIndex&&(t.filterWithIndex=x(n),t.filterMapWithIndex=w(n),t.partitionWithIndex=M(n),t.partitionMapWithIndex=O(n)),"function"==typeof n.promap&&(t.promap=E(n)),"function"==typeof n.compose&&(t.compose=C(n)),"function"==typeof n.throwError&&(t.fromOption=function(t){return function(e){return"None"===e._tag?n.throwError(t()):n.of(e.value)}},t.fromEither=function(t){return"Left"===t._tag?n.throwError(t.left):n.of(t.right)},t.fromPredicate=function(t,e){return function(r){return t(r)?n.of(r):n.throwError(e(r))}},t.filterOrElse=function(t,e){return function(r){return n.chain(r,function(r){return t(r)?n.of(r):n.throwError(e(r))})}}),t},t.pipe=u.pipe},23284:function(n,t,e){e.r(t),e.d(t,{BigIntFromString:function(){return tv},BooleanFromNumber:function(){return ty},BooleanFromString:function(){return tn},DateFromISOString:function(){return n2},DateFromNumber:function(){return n5},DateFromUnixTime:function(){return to},IntFromString:function(){return tc},Json:function(){return tp},JsonArray:function(){return tf},JsonFromString:function(){return td},JsonRecord:function(){return tl},NonEmptyString:function(){return o},NumberFromString:function(){return ta},UUID:function(){return n9},clone:function(){return n8},date:function(){return g},either:function(){return tm},fromNewtype:function(){return nJ},fromNullable:function(){return n6},fromRefinement:function(){return v},getLenses:function(){return ti},mapFromEntries:function(){return tI},mapOutput:function(){return i.mapOutput},nonEmptyArray:function(){return d},option:function(){return nQ},optionFromNullable:function(){return n0},readonlyMapFromEntries:function(){return tR},readonlyNonEmptyArray:function(){return n1},readonlySetFromArray:function(){return m},regexp:function(){return tu},setFromArray:function(){return h},withEncode:function(){return tg},withFallback:function(){return n7},withMessage:function(){return tt},withValidate:function(){return n3}});var r={};e.r(r),e.d(r,{Category:function(){return nM},Invariant:function(){return nx},Semigroupoid:function(){return nw},URI:function(){return nT},asOptional:function(){return $},asTraversal:function(){return Z},atKey:function(){return nm},component:function(){return np},compose:function(){return Q},composeIso:function(){return nt},composeLens:function(){return nn},composeOptional:function(){return nr},composePrism:function(){return ne},composeTraversal:function(){return ni},filter:function(){return nc},findFirst:function(){return n_},findFirstNonEmpty:function(){return nI},fromNullable:function(){return na},id:function(){return J},imap:function(){return nR},index:function(){return nd},indexNonEmpty:function(){return ns},key:function(){return nh},left:function(){return ny},lens:function(){return X},modify:function(){return nu},modifyF:function(){return no},prop:function(){return nf},props:function(){return nl},right:function(){return ng},some:function(){return nv},traverse:function(){return nb}});var i=e(47361),u=e(87830),o=u.brand(u.string,function(n){return n.length>0},"NonEmptyString"),a=e(43586),c=e(1358),f=e(18896),l=e(81878),p=e(20492);function d(n,t){void 0===t&&(t="NonEmptyArray<"+n.name+">");var e=u.array(n);return new u.Type(t,function(n){return e.is(n)&&(0,c.isNonEmpty)(n)},function(n,t){return(0,f.pipe)(e.validate(n,t),(0,l.chain)(function(e){var r=(0,a.fromArray)(e);return(0,p.isNone)(r)?u.failure(n,t):u.success(r.value)}))},(0,a.map)(n.encode))}var s=e(1214);function h(n,t,e){void 0===e&&(e="Set<"+n.name+">");var r=u.array(n),i=(0,s.toArray)(t),o=(0,s.fromArray)(t);return new u.Type(e,function(t){return t instanceof Set&&(0,s.every)(n.is)(t)},function(n,t){return(0,f.pipe)(r.validate(n,t),(0,l.chain)(function(e){var r=o(e);return r.size!==e.length?u.failure(n,t):u.success(r)}))},function(n){return r.encode(i(n))})}function m(n,t,e){return void 0===e&&(e="ReadonlySet<"+n.name+">"),h(n,t,e)}function v(n,t){return new u.Type(n,t,function(n,e){return t(n)?u.success(n):u.failure(n,e)},u.identity)}var g=v("Date",function(n){return n instanceof Date}),y=e(42275),b=e(90817),_=e(96576),I=e(31583),R=e(97054),S=function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},T=function(n){return w(n.get,(0,y.flow)(n.reverseGet,y.constant))},x=function(n){return A((0,y.flow)(n.get,p.some),(0,y.flow)(n.reverseGet,y.constant))},w=function(n,t){return{get:n,set:t}},M=function(n){return A((0,y.flow)(n.get,p.some),n.set)},O=function(n){return function(t){return w(function(e){return n.get(t.get(e))},function(e){return function(r){return t.set(n.set(e)(t.get(r)))(r)}})}},E=function(n){return function(t){return N(k(n))(M(t))}},C=function(n,t){return{getOption:n,reverseGet:t}},k=function(n){return A(n.getOption,function(t){return F(t)(n)})},W=function(n){return q(function(t){return function(e){return function(r){return(0,f.pipe)(n.getOption(r),p.fold(function(){return t.of(r)},function(i){return t.map(e(i),function(t){return F(t)(n)(r)})}))}}})},F=function(n){var t;return t=function(){return n},function(n){return function(e){var r;return(0,f.pipe)((r=e,(0,f.pipe)(n.getOption(r),p.map(function(e){var i=t(e);return i===e?r:n.reverseGet(i)}))),p.getOrElse(function(){return e}))}}},P=function(n){return C(p.fromPredicate(n),y.identity)},D=function(){return C(y.identity,p.some)},A=function(n,t){return{getOption:n,set:t}},U=function(n){return function(t){return function(e){return(0,f.pipe)(t.getOption(e),p.map(function(r){var i=n(r);return i===r?e:t.set(i)(e)}))}}},L=function(n){return function(t){var e=U(n)(t);return function(n){return(0,f.pipe)(e(n),p.getOrElse(function(){return n}))}}},N=function(n){return function(t){return A((0,y.flow)(t.getOption,p.chain(n.getOption)),function(e){return L(n.set(e))(t)})}},j=function(n,t,e){if(e[n]===t)return e;var r=S([e[0]],e.slice(1),!0);return r[n]=t,r},q=function(n){return{modifyF:n}};function G(n){return function(t){return q(function(e){return function(r){return t.modifyF(e)(n.modifyF(e)(r))}})}}var K={URI:"Identity",map:function(n,t){return t(n)},of:y.identity,ap:function(n,t){return n(t)}},Y=function(n){return{index:n}},B=function(n){return{at:n}},V=function(n,t){return{get:n,reverseGet:t}},H=function(n){return C((0,y.flow)(n.get,p.some),n.reverseGet)},z=function(n){return q(function(t){return function(e){return function(r){return t.map(e(n.get(r)),function(t){return n.reverseGet(t)})}}})},X=w,J=function(){return w(y.identity,y.constant)},$=M,Z=function(n){return q(function(t){return function(e){return function(r){return t.map(e(n.get(r)),function(t){return n.set(t)(r)})}}})},Q=O,nn=Q,nt=(0,y.flow)(T,Q),ne=E,nr=function(n){return(0,y.flow)($,N(n))},ni=function(n){return(0,y.flow)(Z,G(n))},nu=function(n){return function(t){return function(e){var r=t.get(e),i=n(r);return r===i?e:t.set(i)(e)}}};function no(n){return function(t){return function(e){return function(r){return(0,f.pipe)(e.get(r),t,function(t){return n.map(t,function(n){return e.set(n)(r)})})}}}}var na=function(n){return ne(C(p.fromNullable,y.identity))(n)};function nc(n){return ne(P(n))}var nf=function(n){return function(t){return w(function(e){return t.get(e)[n]},function(e){return function(r){var i,u=t.get(r);return e===u[n]?r:t.set(Object.assign({},u,((i={})[n]=e,i)))(r)}})}},nl=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return function(t){return w(function(e){for(var r=t.get(e),i={},u=0;u<n.length;u++){var o=n[u];i[o]=r[o]}return i},function(e){return function(r){for(var i=t.get(r),u=0;u<n.length;u++){var o=n[u];if(e[o]!==i[o])return t.set(Object.assign({},i,e))(r)}return r}})}},np=function(n){return function(t){return w(function(e){return t.get(e)[n]},function(e){return function(r){var i=t.get(r);if(e===i[n])return r;var u=i.slice();return u[n]=e,t.set(u)(r)}})}},nd=function(n){return(0,y.flow)($,function(t){return(0,f.pipe)(t,N(Y(function(n){return A(function(t){return I.lookup(n,t)},function(t){return function(e){return(0,f.pipe)(I.lookup(n,e),p.fold(function(){return e},function(){return I.unsafeUpdateAt(n,t,e)}))}})}).index(n)))})},ns=function(n){return(0,y.flow)($,function(t){return(0,f.pipe)(t,N(Y(function(n){return A(function(t){return I.lookup(n,t)},function(t){return function(e){return(0,f.pipe)(I.lookup(n,e),p.fold(function(){return e},function(){return j(n,t,e)}))}})}).index(n)))})},nh=function(n){return(0,y.flow)($,function(t){return(0,f.pipe)(t,N(Y(function(n){return A(function(t){return R.lookup(n,t)},function(t){return function(e){return e[n]===t||p.isNone(R.lookup(n,e))?e:R.insertAt(n,t)(e)}})}).index(n)))})},nm=function(n){return function(t){return(0,f.pipe)(t,O(B(function(n){return w(function(t){return R.lookup(n,t)},p.fold(function(){return R.deleteAt(n)},function(t){return R.insertAt(n,t)}))}).at(n)))}},nv=ne(D()),ng=ne(C(p.fromEither,l.right)),ny=ne(C(function(n){return l.isLeft(n)?p.some(n.left):p.none},l.left));function nb(n){return(0,y.flow)(Z,G(q(function(t){var e="Identity"===t.URI?n.map:n.traverse(t);return function(n){return function(t){return e(t,n)}}})))}function n_(n){return nr(A(I.findFirst(n),function(t){return function(e){return(0,f.pipe)(I.findIndex(n)(e),p.fold(function(){return e},function(n){return I.unsafeUpdateAt(n,t,e)}))}}))}function nI(n){return nr(A(I.findFirst(n),function(t){return function(e){return(0,f.pipe)(I.findIndex(n)(e),p.fold(function(){return e},function(n){return j(n,t,e)}))}}))}var nR=function(n,t){return function(e){return nS(e,n,t)}},nS=function(n,t,e){return X((0,y.flow)(n.get,t),(0,y.flow)(e,n.set))},nT="monocle-ts/Lens",nx={URI:nT,imap:nS},nw={URI:nT,compose:function(n,t){return Q(n)(t)}},nM={URI:nT,compose:nw.compose,id:J},nO=function(n){return q(function(t){return function(e){return function(r){return(0,f.pipe)(n.getOption(r),p.fold(function(){return t.of(r)},function(i){return t.map(e(i),function(t){return n.set(t)(r)})}))}}})},nE=function(n){return function(t){return C((0,y.flow)(t.getOption,p.chain(n.getOption)),(0,y.flow)(n.reverseGet,t.reverseGet))}},nC=function(n){return function(t){return t.modifyF(K)(n)}},nk=function(n){return new nL(n.get,n.reverseGet)},nW=function(n){return new nN(n.get,n.set)},nF=function(n){return new nj(n.getOption,n.reverseGet)},nP=function(n){return new nG(n.getOption,n.set)},nD=function(n){return new nK(n.modifyF)},nA=function(n){return new nB(function(t){return nP(n.index(t))})},nU=function(n,t,e){var r;return e===n[t]?n:Object.assign({},n,((r={})[t]=e,r))},nL=function(){function n(n,t){this.get=n,this.reverseGet=t,this._tag="Iso",this.unwrap=this.get,this.to=this.get,this.wrap=this.reverseGet,this.from=this.reverseGet}return n.prototype.reverse=function(){return nk(V(this.reverseGet,this.get))},n.prototype.modify=function(n){var t;return t=this,function(e){return t.reverseGet(n(t.get(e)))}},n.prototype.asLens=function(){return nW(T(this))},n.prototype.asPrism=function(){return nF(H(this))},n.prototype.asOptional=function(){return nP(x(this))},n.prototype.asTraversal=function(){return nD(z(this))},n.prototype.asFold=function(){var n=this;return new nH(function(){return function(t){return function(e){return t(n.get(e))}}})},n.prototype.asGetter=function(){var n=this;return new nV(function(t){return n.get(t)})},n.prototype.asSetter=function(){var n=this;return new nz(function(t){return n.modify(t)})},n.prototype.compose=function(n){var t;return nk((t=this,V((0,y.flow)(t.get,n.get),(0,y.flow)(n.reverseGet,t.reverseGet))))},n.prototype.composeIso=function(n){return this.compose(n)},n.prototype.composeLens=function(n){return nW((0,f.pipe)(this,T,Q(n)))},n.prototype.composePrism=function(n){return nF((0,f.pipe)(this,H,nE(n)))},n.prototype.composeOptional=function(n){return nP((0,f.pipe)(this,x,N(n)))},n.prototype.composeTraversal=function(n){return nD((0,f.pipe)(this,z,G(n)))},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeGetter=function(n){return this.asGetter().compose(n)},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n}(),nN=function(){function n(n,t){this.get=n,this.set=t,this._tag="Lens"}return n.fromPath=function(){var t=n.fromProp();return function(n){var e=t(n[0]);return n.slice(1).reduce(function(n,e){return n.compose(t(e))},e)}},n.fromProp=function(){return function(n){return nW((0,f.pipe)(J(),nf(n)))}},n.fromProps=function(){return function(n){return nW((0,f.pipe)(J(),nl.apply(r,n)))}},n.fromNullableProp=function(){return function(t,e){return new n(function(n){var r=(0,p.fromNullable)(n[t]);return(0,p.isNone)(r)?e:r.value},function(n){return function(e){return nU(e,t,n)}})}},n.prototype.modify=function(n){return nu(n)(this)},n.prototype.asOptional=function(){return nP($(this))},n.prototype.asTraversal=function(){return nD(Z(this))},n.prototype.asSetter=function(){var n=this;return new nz(function(t){return n.modify(t)})},n.prototype.asGetter=function(){var n=this;return new nV(function(t){return n.get(t)})},n.prototype.asFold=function(){var n=this;return new nH(function(){return function(t){return function(e){return t(n.get(e))}}})},n.prototype.compose=function(n){return nW(Q(n)(this))},n.prototype.composeLens=function(n){return this.compose(n)},n.prototype.composeGetter=function(n){return this.asGetter().compose(n)},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeOptional=function(n){return nP((0,f.pipe)(this,$,N(n)))},n.prototype.composeTraversal=function(n){return nD((0,f.pipe)(this,Z,G(n)))},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n.prototype.composeIso=function(n){return nW((0,f.pipe)(this,Q((0,f.pipe)(n,T))))},n.prototype.composePrism=function(n){return nP(ne(n)(this))},n}(),nj=function(){function n(n,t){this.getOption=n,this.reverseGet=t,this._tag="Prism"}return n.fromPredicate=function(n){return nF(P(n))},n.some=function(){return nq},n.prototype.modify=function(n){var t=this;return function(e){var r=t.modifyOption(n)(e);return(0,p.isNone)(r)?e:r.value}},n.prototype.modifyOption=function(n){var t=this;return function(e){return p.option.map(t.getOption(e),function(r){var i=n(r);return i===r?e:t.reverseGet(i)})}},n.prototype.set=function(n){return this.modify(function(){return n})},n.prototype.asOptional=function(){return nP(k(this))},n.prototype.asTraversal=function(){return nD(W(this))},n.prototype.asSetter=function(){var n=this;return new nz(function(t){return n.modify(t)})},n.prototype.asFold=function(){var n=this;return new nH(function(t){return function(e){return function(r){var i=n.getOption(r);return(0,p.isNone)(i)?t.empty:e(i.value)}}})},n.prototype.compose=function(n){return nF(nE(n)(this))},n.prototype.composePrism=function(n){return this.compose(n)},n.prototype.composeOptional=function(n){return nP((0,f.pipe)(this,k,N(n)))},n.prototype.composeTraversal=function(n){return nD((0,f.pipe)(this,W,G(n)))},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n.prototype.composeIso=function(n){return nF((0,f.pipe)(this,nE((0,f.pipe)(n,H))))},n.prototype.composeLens=function(n){return nP(N(M(n))(k(this)))},n.prototype.composeGetter=function(n){return this.asFold().compose(n.asFold())},n}(),nq=new nj(y.identity,p.some),nG=function(){function n(n,t){this.getOption=n,this.set=t,this._tag="Optional"}return n.fromPath=function(){var t=n.fromNullableProp();return function(n){var e=t(n[0]);return n.slice(1).reduce(function(n,e){return n.compose(t(e))},e)}},n.fromNullableProp=function(){return function(t){return new n(function(n){return(0,p.fromNullable)(n[t])},function(n){return function(e){return null==e[t]?e:nU(e,t,n)}})}},n.fromOptionProp=function(){var n=nN.fromProp();return function(t){return n(t).composePrism(nq)}},n.prototype.modify=function(n){return L(n)(this)},n.prototype.modifyOption=function(n){return U(n)(this)},n.prototype.asTraversal=function(){return nD(nO(this))},n.prototype.asFold=function(){var n=this;return new nH(function(t){return function(e){return function(r){var i=n.getOption(r);return(0,p.isNone)(i)?t.empty:e(i.value)}}})},n.prototype.asSetter=function(){var n=this;return new nz(function(t){return n.modify(t)})},n.prototype.compose=function(n){return nP(N(n)(this))},n.prototype.composeOptional=function(n){return this.compose(n)},n.prototype.composeTraversal=function(n){return nD((0,f.pipe)(this,nO,G(n)))},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n.prototype.composeLens=function(n){return nP((0,f.pipe)(this,N((0,f.pipe)(n,$))))},n.prototype.composePrism=function(n){return nP((0,f.pipe)(this,N((0,f.pipe)(n,k))))},n.prototype.composeIso=function(n){return nP((0,f.pipe)(this,N((0,f.pipe)(n,x))))},n.prototype.composeGetter=function(n){return this.asFold().compose(n.asFold())},n}(),nK=function(){function n(n){this.modifyF=n,this._tag="Traversal"}return n.prototype.modify=function(n){return nC(n)(this)},n.prototype.set=function(n){return nC(function(){return n})(this)},n.prototype.filter=function(n){return nD(G(W(P(n)))(this))},n.prototype.asFold=function(){var n=this;return new nH(function(t){return function(e){return n.modifyF((0,b.getApplicative)(t))(function(n){return(0,b.make)(e(n))})}})},n.prototype.asSetter=function(){var n=this;return new nz(function(t){return n.modify(t)})},n.prototype.compose=function(n){return nD(G(n)(this))},n.prototype.composeTraversal=function(n){return this.compose(n)},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n.prototype.composeOptional=function(n){return this.compose(n.asTraversal())},n.prototype.composeLens=function(n){return nD((0,f.pipe)(this,G((0,f.pipe)(n,Z))))},n.prototype.composePrism=function(n){return nD((0,f.pipe)(this,G((0,f.pipe)(n,W))))},n.prototype.composeIso=function(n){return nD((0,f.pipe)(this,G((0,f.pipe)(n,z))))},n.prototype.composeGetter=function(n){return this.asFold().compose(n.asFold())},n}(),nY=function(){function n(n){this.at=n,this._tag="At"}return n.prototype.fromIso=function(n){var t,e;return e=this,t=B(function(t){return(0,f.pipe)(n,T,O(e.at(t)))}),new nY(function(n){return nW(t.at(n))})},n}(),nB=function(){function n(n){this.index=n,this._tag="Index"}return n.fromAt=function(n){return nA(Y(function(t){return E(D())(n.at(t))}))},n.prototype.fromIso=function(n){var t;return nA((t=this,Y(function(e){return(0,f.pipe)(n,x,N(t.index(e)))})))},n}(),nV=function(){function n(n){this.get=n,this._tag="Getter"}return n.prototype.asFold=function(){var n=this;return new nH(function(){return function(t){return function(e){return t(n.get(e))}}})},n.prototype.compose=function(t){var e=this;return new n(function(n){return t.get(e.get(n))})},n.prototype.composeGetter=function(n){return this.compose(n)},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeLens=function(n){return this.compose(n.asGetter())},n.prototype.composeIso=function(n){return this.compose(n.asGetter())},n.prototype.composeTraversal=function(n){return this.asFold().compose(n.asFold())},n.prototype.composeOptional=function(n){return this.asFold().compose(n.asFold())},n.prototype.composePrism=function(n){return this.asFold().compose(n.asFold())},n}(),nH=function(){function n(n){this.foldMap=n,this._tag="Fold",this.getAll=n(c.getMonoid())(c.of),this.exist=n(_.monoidAny),this.all=n(_.monoidAll),this.foldMapFirst=n((0,p.getFirstMonoid)())}return n.prototype.compose=function(t){var e=this;return new n(function(n){return function(r){return e.foldMap(n)(t.foldMap(n)(r))}})},n.prototype.composeFold=function(n){return this.compose(n)},n.prototype.composeGetter=function(n){return this.compose(n.asFold())},n.prototype.composeTraversal=function(n){return this.compose(n.asFold())},n.prototype.composeOptional=function(n){return this.compose(n.asFold())},n.prototype.composeLens=function(n){return this.compose(n.asFold())},n.prototype.composePrism=function(n){return this.compose(n.asFold())},n.prototype.composeIso=function(n){return this.compose(n.asFold())},n.prototype.find=function(n){return this.foldMapFirst((0,p.fromPredicate)(n))},n.prototype.headOption=function(n){return this.find(function(){return!0})(n)},n}(),nz=function(){function n(n){this.modify=n,this._tag="Setter"}return n.prototype.set=function(n){return this.modify((0,y.constant)(n))},n.prototype.compose=function(t){var e=this;return new n(function(n){return e.modify(t.modify(n))})},n.prototype.composeSetter=function(n){return this.compose(n)},n.prototype.composeTraversal=function(n){return this.compose(n.asSetter())},n.prototype.composeOptional=function(n){return this.compose(n.asSetter())},n.prototype.composeLens=function(n){return this.compose(n.asSetter())},n.prototype.composePrism=function(n){return this.compose(n.asSetter())},n.prototype.composeIso=function(n){return this.compose(n.asSetter())},n}(),nX=new nL(y.unsafeCoerce,y.unsafeCoerce);function nJ(n,t){return void 0===t&&(t="fromNewtype("+n.name+")"),new u.Type(t,function(t){return n.is(t)},function(t,e){return(0,f.pipe)(n.validate(t,e),(0,l.map)(nX.wrap))},function(t){return n.encode(nX.unwrap(t))})}var n$=u.strict({_tag:u.literal("None")},"None"),nZ=u.literal("Some");function nQ(n,t){return void 0===t&&(t="Option<"+n.name+">"),u.union([n$,u.strict({_tag:nZ,value:n},"Some<"+n.name+">")],t)}function n0(n,t){return void 0===t&&(t="Option<"+n.name+">"),new u.Type(t,nQ(n).is,function(t,e){return null==t?u.success(p.none):(0,f.pipe)(n.validate(t,e),(0,l.map)(p.some))},function(t){return p.toNullable((0,f.pipe)(t,p.map(n.encode)))})}var n2=new u.Type("DateFromISOString",function(n){return n instanceof Date},function(n,t){return(0,f.pipe)(u.string.validate(n,t),(0,l.chain)(function(e){var r=new Date(e);return isNaN(r.getTime())?u.failure(n,t):u.success(r)}))},function(n){return n.toISOString()});function n1(n,t){return void 0===t&&(t="ReadonlyNonEmptyArray<"+n.name+">"),d(n,t)}function n8(n){var t=Object.create(Object.getPrototypeOf(n));return Object.assign(t,n),t}var n5=new u.Type("DateFromNumber",function(n){return n instanceof Date},function(n,t){return(0,f.pipe)(u.number.validate(n,t),(0,l.chain)(function(e){var r=new Date(e);return isNaN(r.getTime())?u.failure(n,t):u.success(r)}))},function(n){return n.getTime()});function n3(n,t,e){void 0===e&&(e=n.name);var r=n8(n);return r.validate=t,r.decode=function(n){return t(n,u.getDefaultContext(r))},r.name=e,r}function n7(n,t,e){return void 0===e&&(e="withFallback("+n.name+")"),n3(n,function(e,r){return(0,l.orElse)(function(){return u.success(t)})(n.validate(e,r))},e)}var n4=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,n9=u.brand(u.string,function(n){return n4.test(n)},"UUID");function n6(n,t,e){return void 0===e&&(e="fromNullable("+n.name+")"),n3(n,function(e,r){return null==e?u.success(t):n.validate(e,r)},e)}var tn=new u.Type("BooleanFromString",u.boolean.is,function(n,t){return(0,f.pipe)(u.string.validate(n,t),(0,l.chain)(function(e){return"true"===e?u.success(!0):"false"===e?u.success(!1):u.failure(n,t)}))},String);function tt(n,t){return n3(n,function(e,r){return(0,l.mapLeft)(function(){return[{value:e,context:r,message:t(e,r),actual:e}]})(n.validate(e,r))})}function te(n){switch(n._tag){case"InterfaceType":return n.props;case"ExactType":return te(n.type)}}var tr=nN.fromProp();function ti(n){var t={};for(var e in te(n))t[e]=tr(e);return t}var tu=v("RegExp",function(n){return"[object RegExp]"===Object.prototype.toString.call(n)}),to=new u.Type("DateFromUnixTime",function(n){return n instanceof Date},function(n,t){return(0,f.pipe)(u.Int.validate(n,t),(0,l.chain)(function(e){var r=new Date(1e3*e);return isNaN(r.getTime())?u.failure(n,t):u.success(r)}))},function(n){return Math.floor(n.getTime()/1e3)}),ta=new u.Type("NumberFromString",u.number.is,function(n,t){return(0,f.pipe)(u.string.validate(n,t),(0,l.chain)(function(e){var r=+e;return isNaN(r)||""===e.trim()?u.failure(n,t):u.success(r)}))},String),tc=new u.Type("IntFromString",u.Int.is,function(n,t){return(0,f.pipe)(ta.validate(n,t),(0,l.chain)(function(e){return u.Int.is(e)?u.success(e):u.failure(n,t)}))},ta.encode),tf=u.recursion("JsonArray",function(){return u.readonlyArray(tp)}),tl=u.recursion("JsonRecord",function(){return u.record(u.string,tp)}),tp=u.union([u.boolean,u.number,u.string,u.null,tf,tl],"Json"),td=new u.Type("JsonFromString",tp.is,function(n,t){try{return u.success(JSON.parse(n))}catch(e){return u.failure(n,t)}},function(n){return JSON.stringify(n)}),ts=u.literal("Left"),th=u.literal("Right");function tm(n,t,e){return void 0===e&&(e="Either<"+n.name+", "+t.name+">"),u.union([u.strict({_tag:ts,left:n},"Left<"+n.name+">"),u.strict({_tag:th,right:t},"Right<"+n.name+">")],e)}var tv=new u.Type("BigIntFromString",function(n){return"bigint"==typeof n},function(n,t){return(0,f.pipe)(u.string.validate(n,t),(0,l.chain)(function(e){if(!o.is(e.trim()))return u.failure(n,t);try{return u.success(BigInt(e))}catch(e){return u.failure(n,t)}}))},String);function tg(n,t,e){return void 0===e&&(e=n.name),new u.Type(e,n.is,n.validate,t)}var ty=new u.Type("BooleanFromNumber",u.boolean.is,function(n,t){return(0,f.pipe)(u.number.validate(n,t),(0,l.map)(function(n){return 0!==n}))},Number),tb=e(55116),t_=e(3291);function tI(n,t,e,r){void 0===r&&(r="Map<"+n.name+", "+e.name+">");var i,o,a=u.array(u.tuple([n,e])),f=(0,tb.toArray)(t),p=(0,tb.fromFoldable)(t,(0,t_.getLastSemigroup)(),c.Foldable),d=(i=n.is,o=e.is,function(n){for(var t,e=n.entries();!(t=e.next()).done;)if(!1===i(t.value[0])||!1===o(t.value[1]))return!1;return!0});return new u.Type(r,function(n){return n instanceof Map&&d(n)},function(n,t){return(0,y.pipe)(a.validate(n,t),(0,l.chain)(function(e){var r=p(e);return r.size!==e.length?u.failure(n,t):u.success(r)}))},function(n){return a.encode(f(n))})}function tR(n,t,e,r){return void 0===r&&(r="ReadonlyMap<"+n.name+", "+e.name+">"),tI(n,t,e,r)}},47361:function(n,t,e){e.r(t),e.d(t,{mapOutput:function(){return i}});var r=e(87830);function i(n,t,e){return void 0===e&&(e=n.name),new r.Type(e,n.is,n.validate,function(e){return t(n.encode(e))})}},11621:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.IntFromString=void 0;var o=u(e(87830)),a=e(59054),c=e(67794),f=e(87412);t.IntFromString=new o.Type("IntFromString",o.Int.is,function(n,t){return c.pipe(a.NumberFromString.validate(n,t),f.chain(function(e){return o.Int.is(e)?o.success(e):o.failure(n,t)}))},a.NumberFromString.encode)},59054:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NumberFromString=void 0;var o=u(e(87830)),a=e(67794),c=e(87412);t.NumberFromString=new o.Type("NumberFromString",o.number.is,function(n,t){return a.pipe(o.string.validate(n,t),c.chain(function(e){var r=+e;return isNaN(r)||""===e.trim()?o.failure(n,t):o.success(r)}))},String)},62886:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function(n){var t=Object.create(Object.getPrototypeOf(n));return Object.assign(t,n),t}},2932:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.mapOutput=void 0;var o=u(e(87830));t.mapOutput=function(n,t,e){return void 0===e&&(e=n.name),new o.Type(e,n.is,n.validate,function(e){return t(n.encode(e))})}},69624:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withFallback=void 0;var o=u(e(87830)),a=e(40308),c=e(87412);t.withFallback=function(n,t,e){return void 0===e&&(e="withFallback("+n.name+")"),a.withValidate(n,function(e,r){return c.orElse(function(){return o.success(t)})(n.validate(e,r))},e)}},40308:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withValidate=void 0;var o=u(e(87830)),a=e(62886);t.withValidate=function(n,t,e){void 0===e&&(e=n.name);var r=a.clone(n);return r.validate=t,r.decode=function(n){return t(n,o.getDefaultContext(r))},r.name=e,r}},87830:function(n,t,e){e.r(t),e.d(t,{AnyArrayType:function(){return $},AnyDictionaryType:function(){return Q},AnyType:function(){return nD},Array:function(){return Z},ArrayType:function(){return nl},BigIntType:function(){return H},BooleanType:function(){return X},Dictionary:function(){return nK},DictionaryType:function(){return nv},ExactType:function(){return nE},Function:function(){return nW},FunctionType:function(){return nk},Int:function(){return na},Integer:function(){return nL},InterfaceType:function(){return nd},IntersectionType:function(){return n_},KeyofType:function(){return nr},LiteralType:function(){return nt},NeverType:function(){return nF},NullType:function(){return D},NumberType:function(){return B},ObjectType:function(){return nY},PartialType:function(){return nh},ReadonlyArrayType:function(){return nw},ReadonlyType:function(){return nT},RecursiveType:function(){return nc},RefinementType:function(){return nu},StrictType:function(){return nH},StringType:function(){return K},TaggedUnionType:function(){return nN},TupleType:function(){return nR},Type:function(){return p},UndefinedType:function(){return U},UnionType:function(){return ny},UnknownArray:function(){return Z},UnknownRecord:function(){return nn},UnknownType:function(){return q},VoidType:function(){return N},alias:function(){return nX},any:function(){return nA},appendContext:function(){return m},array:function(){return np},bigint:function(){return z},boolean:function(){return J},brand:function(){return no},clean:function(){return nz},dictionary:function(){return nV},emptyTags:function(){return w},exact:function(){return nC},failure:function(){return f},failures:function(){return c},getContextEntry:function(){return h},getDefaultContext:function(){return nG},getDomainKeys:function(){return R},getFunctionName:function(){return s},getIndex:function(){return P},getTags:function(){return F},getValidationError:function(){return nq},identity:function(){return d},interface:function(){return ns},intersection:function(){return nI},keyof:function(){return ni},literal:function(){return ne},mergeAll:function(){return T},never:function(){return nP},null:function(){return A},nullType:function(){return A},number:function(){return V},object:function(){return nB},partial:function(){return nm},readonly:function(){return nx},readonlyArray:function(){return nM},record:function(){return ng},recursion:function(){return nf},refinement:function(){return nU},strict:function(){return nO},string:function(){return Y},success:function(){return l},taggedUnion:function(){return nj},tuple:function(){return nS},type:function(){return ns},undefined:function(){return L},union:function(){return nb},unknown:function(){return G},void:function(){return j},voidType:function(){return j}});var r,i=e(81878),u=(r=function(n,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])})(n,t)},function(n,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}),o=function(){return(o=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},a=function(n,t,e){if(e||2==arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},c=i.left,f=function(n,t,e){return c([{value:n,context:t,message:e}])},l=i.right,p=function(){function n(n,t,e,r){this.name=n,this.is=t,this.validate=e,this.encode=r,this.decode=this.decode.bind(this)}return n.prototype.pipe=function(t,e){var r=this;return void 0===e&&(e="pipe(".concat(this.name,", ").concat(t.name,")")),new n(e,t.is,function(n,e){var u=r.validate(n,e);return(0,i.isLeft)(u)?u:t.validate(u.right,e)},this.encode===d&&t.encode===d?d:function(n){return r.encode(t.encode(n))})},n.prototype.asDecoder=function(){return this},n.prototype.asEncoder=function(){return this},n.prototype.decode=function(n){return this.validate(n,[{key:"",type:this,actual:n}])},n}(),d=function(n){return n};function s(n){return n.displayName||n.name||"<function".concat(n.length,">")}function h(n,t){return{key:n,type:t}}function m(n,t,e,r){for(var i=n.length,u=Array(i+1),o=0;o<i;o++)u[o]=n[o];return u[i]={key:t,type:e,actual:r},u}function v(n,t){for(var e=t.length,r=0;r<e;r++)n.push(t[r])}var g=Object.prototype.hasOwnProperty;function y(n){return Object.keys(n).map(function(t){return"".concat(t,": ").concat(n[t].name)}).join(", ")}function b(n){for(var t=0;t<n.length;t++)if(n[t].encode!==d)return!1;return!0}function _(n){return"{ ".concat(y(n)," }")}function I(n){return"Partial<".concat(n,">")}function R(n){var t;if(E(n)){var e=n.value;if(Y.is(e))return(t={})[e]=null,t}else{if("KeyofType"===n._tag)return n.keys;if(k(n)){var r=n.types.map(function(n){return R(n)});return r.some(L.is)?void 0:Object.assign.apply(Object,a([{}],r,!1))}}}function S(n){return"("+n.map(function(n){return n.name}).join(" | ")+")"}function T(n,t){for(var e=!0,r=!0,i=!nn.is(n),u=0;u<t.length;u++){var o=t[u];o!==n&&(e=!1),nn.is(o)&&(r=!1)}if(e)return n;if(r)return t[t.length-1];for(var a={},c=0;c<t.length;c++){var o=t[c];for(var f in o)(!g.call(a,f)||i||o[f]!==n[f])&&(a[f]=o[f])}return a}function x(n,t){for(var e=Object.getOwnPropertyNames(n),r=!1,i={},u=0;u<e.length;u++){var o=e[u];g.call(t,o)?i[o]=n[o]:r=!0}return r?i:n}var w={};function M(n,t){for(var e=[],r=0;r<n.length;r++){var i=n[r];-1!==t.indexOf(i)&&e.push(i)}return e}function O(n){return"AnyType"===n._tag}function E(n){return"LiteralType"===n._tag}function C(n){return"InterfaceType"===n._tag}function k(n){return"UnionType"===n._tag}var W=[];function F(n){if(-1!==W.indexOf(n))return w;if(C(n)||"StrictType"===n._tag){var t=w;for(var e in n.props){var r=n.props[e];E(r)&&(t===w&&(t={}),t[e]=[r.value])}return t}if("ExactType"===n._tag||"RefinementType"===n._tag)return F(n.type);if("IntersectionType"===n._tag)return n.types.reduce(function(n,t){return function(n,t){if(n===w)return t;if(t===w)return n;var e=Object.assign({},n);for(var r in t)if(g.call(n,r)){var i=M(n[r],t[r]);if(i.length>0)e[r]=i;else{e=w;break}}else e[r]=t[r];return e}(n,F(t))},w);if(k(n))return n.types.slice(1).reduce(function(n,t){return function(n,t){if(n===w||t===w)return w;var e=w;for(var r in n)g.call(t,r)&&0===M(n[r],t[r]).length&&(e===w&&(e={}),e[r]=n[r].concat(t[r]));return e}(n,F(t))},F(n.types[0]));if("RecursiveType"===n._tag){W.push(n);var i=F(n.type);return W.pop(),i}return w}function P(n){for(var t=F(n[0]),e=Object.keys(t),r=n.length,i=0;i<e.length;i++){var u=function(e){for(var i=t[e].slice(),u=[t[e]],o=1;o<r;o++){var a=F(n[o])[e];if(void 0===a||a.some(function(n){return -1!==i.indexOf(n)}))return"continue-keys";i.push.apply(i,a),u.push(a)}return{value:[e,u]}}(e[i]);if("object"==typeof u)return u.value;if("continue-keys"===u)continue}}var D=function(n){function t(){var t=n.call(this,"null",function(n){return null===n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="NullType",t}return u(t,n),t}(p),A=new D,U=function(n){function t(){var t=n.call(this,"undefined",function(n){return void 0===n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="UndefinedType",t}return u(t,n),t}(p),L=new U,N=function(n){function t(){var t=n.call(this,"void",L.is,L.validate,d)||this;return t._tag="VoidType",t}return u(t,n),t}(p),j=new N,q=function(n){function t(){var t=n.call(this,"unknown",function(n){return!0},l,d)||this;return t._tag="UnknownType",t}return u(t,n),t}(p),G=new q,K=function(n){function t(){var t=n.call(this,"string",function(n){return"string"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="StringType",t}return u(t,n),t}(p),Y=new K,B=function(n){function t(){var t=n.call(this,"number",function(n){return"number"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="NumberType",t}return u(t,n),t}(p),V=new B,H=function(n){function t(){var t=n.call(this,"bigint",function(n){return"bigint"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="BigIntType",t}return u(t,n),t}(p),z=new H,X=function(n){function t(){var t=n.call(this,"boolean",function(n){return"boolean"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="BooleanType",t}return u(t,n),t}(p),J=new X,$=function(n){function t(){var t=n.call(this,"UnknownArray",Array.isArray,function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="AnyArrayType",t}return u(t,n),t}(p),Z=new $,Q=function(n){function t(){var t=n.call(this,"UnknownRecord",function(n){return null!==n&&"object"==typeof n&&!Array.isArray(n)},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="AnyDictionaryType",t}return u(t,n),t}(p),nn=new Q,nt=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.value=u,o._tag="LiteralType",o}return u(t,n),t}(p);function ne(n,t){void 0===t&&(t=JSON.stringify(n));var e=function(t){return t===n};return new nt(t,e,function(t,r){return e(t)?l(n):f(t,r)},d,n)}var nr=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.keys=u,o._tag="KeyofType",o}return u(t,n),t}(p);function ni(n,t){void 0===t&&(t=Object.keys(n).map(function(n){return JSON.stringify(n)}).join(" | "));var e=function(t){return Y.is(t)&&g.call(n,t)};return new nr(t,e,function(n,t){return e(n)?l(n):f(n,t)},d,n)}var nu=function(n){function t(t,e,r,i,u,o){var a=n.call(this,t,e,r,i)||this;return a.type=u,a.predicate=o,a._tag="RefinementType",a}return u(t,n),t}(p);function no(n,t,e){return nU(n,t,e)}var na=nU(V,function(n){return Number.isInteger(n)},"Int"),nc=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.runDefinition=u,o._tag="RecursiveType",o}return u(t,n),t}(p);function nf(n,t){var e,r=function(){return e||((e=t(i)).name=n),e},i=new nc(n,function(n){return r().is(n)},function(n,t){return r().validate(n,t)},function(n){return r().encode(n)},r);return i}Object.defineProperty(nc.prototype,"type",{get:function(){return this.runDefinition()},enumerable:!0,configurable:!0});var nl=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.type=u,o._tag="ArrayType",o}return u(t,n),t}(p);function np(n,t){return void 0===t&&(t="Array<".concat(n.name,">")),new nl(t,function(t){return Z.is(t)&&t.every(n.is)},function(t,e){var r=Z.validate(t,e);if((0,i.isLeft)(r))return r;for(var u=r.right,o=u.length,a=u,f=[],p=0;p<o;p++){var d=u[p],s=n.validate(d,m(e,String(p),n,d));if((0,i.isLeft)(s))v(f,s.left);else{var h=s.right;h!==d&&(a===u&&(a=u.slice()),a[p]=h)}}return f.length>0?c(f):l(a)},n.encode===d?d:function(t){return t.map(n.encode)},n)}var nd=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.props=u,o._tag="InterfaceType",o}return u(t,n),t}(p);function ns(n,t){void 0===t&&(t=_(n));var e=Object.keys(n),r=e.map(function(t){return n[t]}),u=e.length;return new nd(t,function(n){if(nn.is(n)){for(var t=0;t<u;t++){var i=e[t],o=n[i];if(void 0===o&&!g.call(n,i)||!r[t].is(o))return!1}return!0}return!1},function(n,t){var a=nn.validate(n,t);if((0,i.isLeft)(a))return a;for(var f=a.right,p=f,d=[],s=0;s<u;s++){var h=e[s],y=p[h],b=r[s],_=b.validate(y,m(t,h,b,y));if((0,i.isLeft)(_))v(d,_.left);else{var I=_.right;I===y&&(void 0!==I||g.call(p,h))||(p===f&&(p=o({},f)),p[h]=I)}}return d.length>0?c(d):l(p)},b(r)?d:function(n){for(var t=o({},n),i=0;i<u;i++){var a=e[i],c=r[i].encode;c!==d&&(t[a]=c(n[a]))}return t},n)}var nh=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.props=u,o._tag="PartialType",o}return u(t,n),t}(p);function nm(n,t){void 0===t&&(t=I(_(n)));var e=Object.keys(n),r=e.map(function(t){return n[t]}),u=e.length;return new nh(t,function(t){if(nn.is(t)){for(var r=0;r<u;r++){var i=e[r],o=t[i];if(void 0!==o&&!n[i].is(o))return!1}return!0}return!1},function(t,r){var a=nn.validate(t,r);if((0,i.isLeft)(a))return a;for(var f=a.right,p=f,d=[],s=0;s<u;s++){var h=e[s],g=p[h],y=n[h],b=y.validate(g,m(r,h,y,g));if((0,i.isLeft)(b))void 0!==g&&v(d,b.left);else{var _=b.right;_!==g&&(p===f&&(p=o({},f)),p[h]=_)}}return d.length>0?c(d):l(p)},b(r)?d:function(n){for(var t=o({},n),i=0;i<u;i++){var a=e[i],c=n[a];void 0!==c&&(t[a]=r[i].encode(c))}return t},n)}var nv=function(n){function t(t,e,r,i,u,o){var a=n.call(this,t,e,r,i)||this;return a.domain=u,a.codomain=o,a._tag="DictionaryType",a}return u(t,n),t}(p);function ng(n,t,e){var r,u,o,a,p=R(n);return p?(r=Object.keys(p),void 0===(u=e)&&(u="{ [K in ".concat(n.name,"]: ").concat(t.name," }")),o=r.length,new nv(u,function(n){return nn.is(n)&&r.every(function(e){return t.is(n[e])})},function(n,e){var u=nn.validate(n,e);if((0,i.isLeft)(u))return u;for(var a=u.right,f={},p=[],d=!1,s=0;s<o;s++){var h=r[s],g=a[h],y=t.validate(g,m(e,h,t,g));if((0,i.isLeft)(y))v(p,y.left);else{var b=y.right;d=d||b!==g,f[h]=b}}return p.length>0?c(p):l(d||Object.keys(a).length!==o?f:a)},t.encode===d?d:function(n){for(var e={},i=0;i<o;i++){var u=r[i];e[u]=t.encode(n[u])}return e},n,t)):(void 0===(a=e)&&(a="{ [K in ".concat(n.name,"]: ").concat(t.name," }")),new nv(a,function(e){return nn.is(e)?Object.keys(e).every(function(r){return n.is(r)&&t.is(e[r])}):O(t)&&Array.isArray(e)},function(e,r){if(nn.is(e)){for(var u={},o=[],a=Object.keys(e),p=a.length,d=!1,s=0;s<p;s++){var h=a[s],g=e[h],y=n.validate(h,m(r,h,n,h));if((0,i.isLeft)(y))v(o,y.left);else{var b=y.right;d=d||b!==h,h=b;var _=t.validate(g,m(r,h,t,g));if((0,i.isLeft)(_))v(o,_.left);else{var I=_.right;d=d||I!==g,u[h]=I}}}return o.length>0?c(o):l(d?u:e)}return O(t)&&Array.isArray(e)?l(e):f(e,r)},n.encode===d&&t.encode===d?d:function(e){for(var r={},i=Object.keys(e),u=i.length,o=0;o<u;o++){var a=i[o];r[String(n.encode(a))]=t.encode(e[a])}return r},n,t))}var ny=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.types=u,o._tag="UnionType",o}return u(t,n),t}(p);function nb(n,t){void 0===t&&(t=S(n));var e=P(n);if(void 0===e||!(n.length>0))return new ny(t,function(t){return n.some(function(n){return n.is(t)})},function(t,e){for(var r=[],u=0;u<n.length;u++){var o=n[u],a=o.validate(t,m(e,String(u),o,t));if(!(0,i.isLeft)(a))return l(a.right);v(r,a.left)}return c(r)},b(n)?d:function(e){for(var r=0;r<n.length;r++){var i=n[r];if(i.is(e))return i.encode(e)}throw Error("no codec found to encode value in union type ".concat(t))},n);var r=e[0],u=e[1],o=u.length,a=function(n){for(var t=0;t<o;t++)if(-1!==u[t].indexOf(n))return t};return new nN(t,function(t){if(nn.is(t)){var e=a(t[r]);return void 0!==e&&n[e].is(t)}return!1},function(t,e){var u=nn.validate(t,e);if((0,i.isLeft)(u))return u;var o=u.right,c=a(o[r]);if(void 0===c)return f(t,e);var l=n[c];return l.validate(o,m(e,String(c),l,o))},b(n)?d:function(e){var i=a(e[r]);if(void 0!==i)return n[i].encode(e);throw Error("no codec found to encode value in union codec ".concat(t))},n,r)}var n_=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.types=u,o._tag="IntersectionType",o}return u(t,n),t}(p);function nI(n,t){void 0===t&&(t="(".concat(n.map(function(n){return n.name}).join(" & "),")"));var e=n.length;return new n_(t,function(t){return n.every(function(n){return n.is(t)})},0===n.length?l:function(t,r){for(var u=[],o=[],a=0;a<e;a++){var f=n[a],p=f.validate(t,m(r,String(a),f,t));(0,i.isLeft)(p)?v(o,p.left):u.push(p.right)}return o.length>0?c(o):l(T(t,u))},0===n.length?d:function(t){return T(t,n.map(function(n){return n.encode(t)}))},n)}var nR=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.types=u,o._tag="TupleType",o}return u(t,n),t}(p);function nS(n,t){void 0===t&&(t="[".concat(n.map(function(n){return n.name}).join(", "),"]"));var e=n.length;return new nR(t,function(t){return Z.is(t)&&t.length===e&&n.every(function(n,e){return n.is(t[e])})},function(t,r){var u=Z.validate(t,r);if((0,i.isLeft)(u))return u;for(var o=u.right,a=o.length>e?o.slice(0,e):o,f=[],p=0;p<e;p++){var d=o[p],s=n[p],h=s.validate(d,m(r,String(p),s,d));if((0,i.isLeft)(h))v(f,h.left);else{var g=h.right;g!==d&&(a===o&&(a=o.slice()),a[p]=g)}}return f.length>0?c(f):l(a)},b(n)?d:function(t){return n.map(function(n,e){return n.encode(t[e])})},n)}var nT=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.type=u,o._tag="ReadonlyType",o}return u(t,n),t}(p);function nx(n,t){return void 0===t&&(t="Readonly<".concat(n.name,">")),new nT(t,n.is,n.validate,n.encode,n)}var nw=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.type=u,o._tag="ReadonlyArrayType",o}return u(t,n),t}(p);function nM(n,t){void 0===t&&(t="ReadonlyArray<".concat(n.name,">"));var e=np(n);return new nw(t,e.is,e.validate,e.encode,n)}var nO=function(n,t){return nC(ns(n),t)},nE=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.type=u,o._tag="ExactType",o}return u(t,n),t}(p);function nC(n,t){void 0===t&&(t=C(n)?"{| ".concat(y(n.props)," |}"):"PartialType"===n._tag?I("{| ".concat(y(n.props)," |}")):"Exact<".concat(n.name,">"));var e=function n(t){switch(t._tag){case"RefinementType":case"ReadonlyType":return n(t.type);case"InterfaceType":case"StrictType":case"PartialType":return t.props;case"IntersectionType":return t.types.reduce(function(t,e){return Object.assign(t,n(e))},{})}}(n);return new nE(t,n.is,function(t,r){var u=nn.validate(t,r);if((0,i.isLeft)(u))return u;var o=n.validate(t,r);return(0,i.isLeft)(o)?o:(0,i.right)(x(o.right,e))},function(t){return n.encode(x(t,e))},n)}var nk=function(n){function t(){var t=n.call(this,"Function",function(n){return"function"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="FunctionType",t}return u(t,n),t}(p),nW=new nk,nF=function(n){function t(){var t=n.call(this,"never",function(n){return!1},function(n,t){return f(n,t)},function(){throw Error("cannot encode never")})||this;return t._tag="NeverType",t}return u(t,n),t}(p),nP=new nF,nD=function(n){function t(){var t=n.call(this,"any",function(n){return!0},l,d)||this;return t._tag="AnyType",t}return u(t,n),t}(p),nA=new nD;function nU(n,t,e){return void 0===e&&(e="(".concat(n.name," | ").concat(s(t),")")),new nu(e,function(e){return n.is(e)&&t(e)},function(e,r){var u=n.validate(e,r);if((0,i.isLeft)(u))return u;var o=u.right;return t(o)?l(o):f(o,r)},n.encode,n,t)}var nL=nU(V,Number.isInteger,"Integer"),nN=function(n){function t(t,e,r,i,u,o){var a=n.call(this,t,e,r,i,u)||this;return a.tag=o,a}return u(t,n),t}(ny),nj=function(n,t,e){void 0===e&&(e=S(t));var r=nb(t,e);return r instanceof nN?r:(console.warn("[io-ts] Cannot build a tagged union for ".concat(e,", returning a de-optimized union")),new nN(e,r.is,r.validate,r.encode,t,n))},nq=function(n,t){return{value:n,context:t}},nG=function(n){return[{key:"",type:n}]},nK=nn,nY=function(n){function t(){var t=n.call(this,"object",function(n){return null!==n&&"object"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="ObjectType",t}return u(t,n),t}(p),nB=new nY,nV=ng,nH=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.props=u,o._tag="StrictType",o}return u(t,n),t}(p);function nz(n){return n}function nX(n){return function(){return n}}},77883:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FORMAT_PLAIN=t.FORMAT_HTML=t.FORMATS=void 0;var e="html";t.FORMAT_HTML=e;var r="plain";t.FORMAT_PLAIN=r;var i=[e,r];t.FORMATS=i},779:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.LINE_ENDINGS=void 0,t.LINE_ENDINGS={POSIX:"\n",WIN32:"\r\n"}},36021:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_PLATFORMS=void 0,t.SUPPORTED_PLATFORMS={DARWIN:"darwin",LINUX:"linux",WIN32:"win32"}},29688:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UNIT_WORDS=t.UNIT_WORD=t.UNIT_SENTENCES=t.UNIT_SENTENCE=t.UNIT_PARAGRAPHS=t.UNIT_PARAGRAPH=t.UNITS=void 0;var e="words";t.UNIT_WORDS=e;var r="word";t.UNIT_WORD=r;var i="sentences";t.UNIT_SENTENCES=i;var u="sentence";t.UNIT_SENTENCE=u;var o="paragraphs";t.UNIT_PARAGRAPHS=o;var a="paragraph";t.UNIT_PARAGRAPH=a;var c=[e,r,i,u,o,a];t.UNITS=c},90783:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.WORDS=void 0,t.WORDS=["ad","adipisicing","aliqua","aliquip","amet","anim","aute","cillum","commodo","consectetur","consequat","culpa","cupidatat","deserunt","do","dolor","dolore","duis","ea","eiusmod","elit","enim","esse","est","et","eu","ex","excepteur","exercitation","fugiat","id","in","incididunt","ipsum","irure","labore","laboris","laborum","Lorem","magna","minim","mollit","nisi","non","nostrud","nulla","occaecat","officia","pariatur","proident","qui","quis","reprehenderit","sint","sit","sunt","tempor","ullamco","ut","velit","veniam","voluptate"]},72788:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoremIpsum",{enumerable:!0,get:function(){return a.default}}),t.loremIpsum=void 0;var r,i=e(77883),u=e(29688),o=e(90783),a=(r=e(55548))&&r.__esModule?r:{default:r};t.loremIpsum=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.count,e=void 0===t?1:t,r=n.format,c=void 0===r?i.FORMAT_PLAIN:r,f=n.paragraphLowerBound,l=n.paragraphUpperBound,p=n.random,d=n.sentenceLowerBound,s=n.sentenceUpperBound,h=n.units,m=void 0===h?u.UNIT_SENTENCES:h,v=n.words,g=void 0===v?o.WORDS:v,y=n.suffix,b=new a.default({random:p,sentencesPerParagraph:{max:void 0===l?7:l,min:void 0===f?3:f},words:g,wordsPerSentence:{max:void 0===s?15:s,min:void 0===d?5:d}},c,void 0===y?"":y);switch(m){case u.UNIT_PARAGRAPHS:case u.UNIT_PARAGRAPH:return b.generateParagraphs(e);case u.UNIT_SENTENCES:case u.UNIT_SENTENCE:return b.generateSentences(e);case u.UNIT_WORDS:case u.UNIT_WORD:return b.generateWords(e);default:return""}}},55548:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=e(77883),u=e(779),o=(r=e(40928))&&r.__esModule?r:{default:r},a=e(23749),c=function(){var n;function t(){var n,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.FORMAT_PLAIN,a=arguments.length>2?arguments[2]:void 0;if(!function(n,t){if(!(n instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.format=u,this.suffix=a,e=void 0,(n="generator")in this?Object.defineProperty(this,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):this[n]=e,-1===i.FORMATS.indexOf(u.toLowerCase()))throw Error("".concat(u," is an invalid format. Please use ").concat(i.FORMATS.join(" or "),"."));this.generator=new o.default(r)}return n=[{key:"getLineEnding",value:function(){return this.suffix?this.suffix:!(0,a.isReactNative)()&&(0,a.isNode)()&&(0,a.isWindows)()?u.LINE_ENDINGS.WIN32:u.LINE_ENDINGS.POSIX}},{key:"formatString",value:function(n){return this.format===i.FORMAT_HTML?"<p>".concat(n,"</p>"):n}},{key:"formatStrings",value:function(n){var t=this;return n.map(function(n){return t.formatString(n)})}},{key:"generateWords",value:function(n){return this.formatString(this.generator.generateRandomWords(n))}},{key:"generateSentences",value:function(n){return this.formatString(this.generator.generateRandomParagraph(n))}},{key:"generateParagraphs",value:function(n){var t=this.generator.generateRandomParagraph.bind(this.generator);return this.formatStrings((0,a.makeArrayOfStrings)(n,t)).join(this.getLineEnding())}}],function(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t}();t.default=c},40928:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=e(90783),i=e(23749);function u(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var o=function(){var n;function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.sentencesPerParagraph,i=void 0===e?{max:7,min:3}:e,o=n.wordsPerSentence,a=void 0===o?{max:15,min:5}:o,c=n.random,f=(n.seed,n.words),l=void 0===f?r.WORDS:f;if(!function(n,t){if(!(n instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),u(this,"sentencesPerParagraph",void 0),u(this,"wordsPerSentence",void 0),u(this,"random",void 0),u(this,"words",void 0),i.min>i.max)throw Error("Minimum number of sentences per paragraph (".concat(i.min,") cannot exceed maximum (").concat(i.max,")."));if(a.min>a.max)throw Error("Minimum number of words per sentence (".concat(a.min,") cannot exceed maximum (").concat(a.max,")."));this.sentencesPerParagraph=i,this.words=l,this.wordsPerSentence=a,this.random=c||Math.random}return n=[{key:"generateRandomInteger",value:function(n,t){return Math.floor(this.random()*(t-n+1)+n)}},{key:"generateRandomWords",value:function(n){var t=this,e=this.wordsPerSentence,r=e.min,u=e.max,o=n||this.generateRandomInteger(r,u);return(0,i.makeArrayOfLength)(o).reduce(function(n,e){return"".concat(t.pluckRandomWord()," ").concat(n)},"").trim()}},{key:"generateRandomSentence",value:function(n){return"".concat((0,i.capitalize)(this.generateRandomWords(n)),".")}},{key:"generateRandomParagraph",value:function(n){var t=this,e=this.sentencesPerParagraph,r=e.min,u=e.max,o=n||this.generateRandomInteger(r,u);return(0,i.makeArrayOfLength)(o).reduce(function(n,e){return"".concat(t.generateRandomSentence()," ").concat(n)},"").trim()}},{key:"pluckRandomWord",value:function(){var n=this.words.length-1,t=this.generateRandomInteger(0,n);return this.words[t]}}],function(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t}();t.default=o},79998:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(n){var t=n.trim();return t.charAt(0).toUpperCase()+t.slice(1)}},23749:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"capitalize",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"isReactNative",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"isWindows",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"makeArrayOfLength",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"makeArrayOfStrings",{enumerable:!0,get:function(){return c.default}});var r=f(e(79998)),i=f(e(18077)),u=f(e(66002)),o=f(e(89759)),a=f(e(13385)),c=f(e(74523));function f(n){return n&&n.__esModule?n:{default:n}}},18077:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){return!!n.exports}},66002:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){var n=!1;try{n="ReactNative"===navigator.product}catch(t){n=!1}return n}},89759:function(n,t,e){var r=e(34406);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=e(36021);t.default=function(){var n=!1;try{n=r.platform===i.SUPPORTED_PLATFORMS.WIN32}catch(t){n=!1}return n}},13385:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.apply(null,Array(n)).map(function(n,t){return t})}},74523:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=e(13385))&&r.__esModule?r:{default:r};t.default=function(n,t){return(0,i.default)(n).map(function(){return t()})}},58831:function(n,t,e){var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowContainer=void 0;var i=e(52322),u=e(2784),o=e(64379);t.ArrowContainer=function(n){var t=n.childRect,e=n.popoverRect,a=n.position,c=n.arrowColor,f=n.arrowSize,l=n.arrowClassName,p=n.arrowStyle,d=n.className,s=n.children,h=n.style,m=o.useArrowContainer({childRect:t,popoverRect:e,position:a,arrowColor:c,arrowSize:f}),v=m.arrowContainerStyle,g=m.arrowStyle,y=u.useMemo(function(){return r(r({},v),h)},[v,h]),b=u.useMemo(function(){return r(r({},g),p)},[g,p]);return i.jsxs("div",r({className:d,style:y},{children:[i.jsx("div",{style:b,className:l},void 0),s]}),void 0)}},19909:function(n,t,e){var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Popover=t.usePopover=t.ArrowContainer=t.useArrowContainer=void 0;var i=e(52322),u=e(2784),o=e(44635),a=e(27574),c=e(61462);Object.defineProperty(t,"usePopover",{enumerable:!0,get:function(){return c.usePopover}});var f=e(70414),l=e(64379);Object.defineProperty(t,"useArrowContainer",{enumerable:!0,get:function(){return l.useArrowContainer}});var p=e(58831);Object.defineProperty(t,"ArrowContainer",{enumerable:!0,get:function(){return p.ArrowContainer}});var d=["top","left","right","bottom"],s=u.forwardRef(function(n,t){var e=n.isOpen,l=n.children,p=n.content,s=n.positions,h=n.align,m=void 0===h?"center":h,v=n.padding,g=void 0===v?0:v,y=n.reposition,b=void 0===y||y,_=n.parentElement,I=void 0===_?window.document.body:_,R=n.boundaryElement,S=void 0===R?I:R,T=n.containerClassName,x=n.containerStyle,w=n.contentLocation,M=n.boundaryInset,O=void 0===M?0:M,E=n.onClickOutside,C=n.clickOutsideCapture,k=void 0!==C&&C,W=f.useMemoizedArray(void 0===s?d:s),F=u.useRef(!1),P=u.useRef(),D=u.useRef(),A=u.useRef(b),U=u.useRef(),L=u.useState({align:m,nudgedLeft:0,nudgedTop:0,position:W[0],padding:g,childRect:a.EMPTY_CLIENT_RECT,popoverRect:a.EMPTY_CLIENT_RECT,parentRect:a.EMPTY_CLIENT_RECT,boundaryRect:a.EMPTY_CLIENT_RECT,boundaryInset:O,violations:a.EMPTY_CLIENT_RECT,hasViolations:!1}),N=L[0],j=L[1],q=u.useCallback(function(n){return j(n)},[]),G=c.usePopover({isOpen:e,childRef:U,containerClassName:void 0===T?"react-tiny-popover-container":T,parentElement:I,boundaryElement:S,contentLocation:w,positions:W,align:m,padding:g,boundaryInset:O,reposition:b,onPositionPopover:q}),K=G.positionPopover,Y=G.popoverRef,B=G.scoutRef;u.useLayoutEffect(function(){var n=!0,t=function(){var r,i;if(e&&n){var u=null===(r=null==U?void 0:U.current)||void 0===r?void 0:r.getBoundingClientRect(),o=null===(i=null==Y?void 0:Y.current)||void 0===i?void 0:i.getBoundingClientRect();null==u||null==o||a.rectsAreEqual(u,{top:N.childRect.top,left:N.childRect.left,width:N.childRect.width,height:N.childRect.height,bottom:N.childRect.top+N.childRect.height,right:N.childRect.left+N.childRect.width})&&o.width===N.popoverRect.width&&o.height===N.popoverRect.height&&N.padding===g&&N.align===m&&W===P.current&&w===D.current&&b===A.current||K(),W!==P.current&&(P.current=W),w!==D.current&&(D.current=w),b!==A.current&&(A.current=b),n&&window.requestAnimationFrame(t)}F.current=e};return window.requestAnimationFrame(t),function(){n=!1}},[m,w,e,g,Y,N.align,N.childRect.height,N.childRect.left,N.childRect.top,N.childRect.width,N.padding,N.popoverRect.height,N.popoverRect.width,K,W,b]),u.useEffect(function(){var n=Y.current;return Object.assign(n.style,x),function(){Object.keys(null!=x?x:{}).forEach(function(t){return delete n.style[t]})}},[x,e,Y]);var V=u.useCallback(function(n){var t,r;!e||(null===(t=Y.current)||void 0===t?void 0:t.contains(n.target))||(null===(r=U.current)||void 0===r?void 0:r.contains(n.target))||null==E||E(n)},[e,E,Y]),H=u.useCallback(function(){U.current&&window.requestAnimationFrame(function(){return K()})},[K]);u.useEffect(function(){var n=I.ownerDocument.body;return n.addEventListener("click",V,k),n.addEventListener("contextmenu",V,k),n.addEventListener("resize",H),function(){n.removeEventListener("click",V,k),n.removeEventListener("contextmenu",V,k),n.removeEventListener("resize",H)}},[k,V,H,I]);var z=u.useCallback(function(n){U.current=n,null!=t&&("object"==typeof t?t.current=n:"function"==typeof t&&t(n))},[t]);return i.jsxs(i.Fragment,{children:[u.cloneElement(l,{ref:z}),e?i.jsx(o.PopoverPortal,r({element:Y.current,scoutElement:B.current,container:I},{children:"function"==typeof p?p(N):p}),void 0):null]},void 0)});t.Popover=u.forwardRef(function(n,t){return"undefined"==typeof window?n.children:i.jsx(s,r({},n,{ref:t}),void 0)})},44635:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.PopoverPortal=void 0;var r=e(2784),i=e(28316);t.PopoverPortal=function(n){var t=n.container,e=n.element,u=n.scoutElement,o=n.children;return r.useLayoutEffect(function(){return t.appendChild(e),t.appendChild(u),function(){t.removeChild(e),t.removeChild(u)}},[t,e,u]),i.createPortal(o,e)}},64379:function(n,t,e){var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.useArrowContainer=void 0;var i=e(2784);t.useArrowContainer=function(n){var t=n.childRect,e=n.popoverRect,u=n.position,o=n.arrowSize,a=n.arrowColor;return{arrowContainerStyle:i.useMemo(function(){return{padding:o}},[o]),arrowStyle:i.useMemo(function(){return r({position:"absolute"},function(){var n=2*o,r=t.top-e.top+t.height/2-n/2,i=t.left-e.left+t.width/2-n/2,c=e.width-o,f=e.height-o;switch(i=(i=i<o?o:i)+n>c?c-n:i,r=Number.isNaN(r=(r=r<o?o:r)+n>f?f-n:r)?0:r,i=Number.isNaN(i)?0:i,u){case"right":return{borderTop:o+"px solid transparent",borderBottom:o+"px solid transparent",borderRight:o+"px solid "+a,left:0,top:r};case"left":return{borderTop:o+"px solid transparent",borderBottom:o+"px solid transparent",borderLeft:o+"px solid "+a,right:0,top:r};case"bottom":return{borderLeft:o+"px solid transparent",borderRight:o+"px solid transparent",borderBottom:o+"px solid "+a,top:0,left:i};case"top":return{borderLeft:o+"px solid transparent",borderRight:o+"px solid transparent",borderTop:o+"px solid "+a,bottom:0,left:i};default:return{display:"hidden"}}}())},[a,o,t.height,t.left,t.top,t.width,e.height,e.left,e.top,e.width,u])}}},79601:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.useElementRef=void 0;var r=e(2784),i=e(27574);t.useElementRef=function(n,t){var e=r.useRef(),u=r.useMemo(function(){return i.createContainer(t,n)},[n,t]);return e.current=u,e}},70414:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.useMemoizedArray=void 0;var r=e(2784);t.useMemoizedArray=function(n){var t=r.useRef(n);return r.useMemo(function(){if(t.current===n)return t.current;if(t.current.length!==n.length)return t.current=n,n;for(var e=0;e<n.length;e+=1)if(n[e]!==t.current[e])return t.current=n,n;return t.current},[n])}},61462:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.usePopover=void 0;var r=e(2784),i=e(27574),u=e(79601),o={position:"fixed",overflow:"visible",top:"0px",left:"0px"},a={position:"fixed",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden"};t.usePopover=function(n){var t=n.isOpen,e=n.childRef,c=n.positions,f=n.containerClassName,l=n.parentElement,p=n.contentLocation,d=n.align,s=n.padding,h=n.reposition,m=n.boundaryInset,v=n.boundaryElement,g=n.onPositionPopover,y=u.useElementRef(f,o),b=u.useElementRef("react-tiny-popover-scout",a),_=r.useCallback(function(n){var r,u,o=void 0===n?{}:n,a=o.positionIndex,f=void 0===a?0:a,I=o.parentRect,R=void 0===I?l.getBoundingClientRect():I,S=o.childRect,T=void 0===S?null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.getBoundingClientRect():S,x=o.scoutRect,w=void 0===x?null===(u=null==b?void 0:b.current)||void 0===u?void 0:u.getBoundingClientRect():x,M=o.popoverRect,O=void 0===M?y.current.getBoundingClientRect():M,E=o.boundaryRect,C=void 0===E?v===l?R:v.getBoundingClientRect():E;if(T&&R&&t){if(p){var k="function"==typeof p?p({childRect:T,popoverRect:O,parentRect:R,boundaryRect:C,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:m,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1}):p,W=k.top,F=k.left,P=Math.round(R.left+F-w.left),D=Math.round(R.top+W-w.top);y.current.style.transform="translate("+P+"px, "+D+"px)",g({childRect:T,popoverRect:O,parentRect:R,boundaryRect:C,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:m,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1});return}var A=f===c.length,U=A?c[0]:c[f],L=i.getNewPopoverRect({childRect:T,popoverRect:O,boundaryRect:C,position:U,align:d,padding:s,reposition:h},m),N=L.rect;if(L.boundaryViolation&&h&&!A){_({positionIndex:f+1,childRect:T,popoverRect:O,parentRect:R,boundaryRect:C});return}var j=N.top,q=N.left,G=N.width,K=N.height,Y=h&&!A,B=i.getNudgedPopoverRect(N,C,m),V=B.left,H=B.top,z=j,X=q;Y&&(z=H,X=V),z=Math.round(z-w.top),X=Math.round(X-w.left),y.current.style.transform="translate("+X+"px, "+z+"px)";var J={top:C.top+m-z,left:C.left+m-X,right:X+G-C.right+m,bottom:z+K-C.bottom+m};g({childRect:T,popoverRect:{top:z,left:X,width:G,height:K,right:X+G,bottom:z+K},parentRect:R,boundaryRect:C,position:U,align:d,padding:s,nudgedTop:H-j,nudgedLeft:V-q,boundaryInset:m,violations:{top:J.top<=0?0:J.top,left:J.left<=0?0:J.left,right:J.right<=0?0:J.right,bottom:J.bottom<=0?0:J.bottom},hasViolations:J.top>0||J.left>0||J.right>0||J.bottom>0})}},[l,e,b,y,v,t,p,c,d,s,h,m,g]);return{positionPopover:_,popoverRef:y,scoutRef:b}}},27574:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getNudgedPopoverRect=t.getNewPopoverRect=t.popoverRectForPosition=t.createContainer=t.rectsAreEqual=t.EMPTY_CLIENT_RECT=void 0,t.EMPTY_CLIENT_RECT={top:0,left:0,bottom:0,height:0,right:0,width:0},t.rectsAreEqual=function(n,t){return n===t||(null==n?void 0:n.bottom)===(null==t?void 0:t.bottom)&&(null==n?void 0:n.height)===(null==t?void 0:t.height)&&(null==n?void 0:n.left)===(null==t?void 0:t.left)&&(null==n?void 0:n.right)===(null==t?void 0:t.right)&&(null==n?void 0:n.top)===(null==t?void 0:t.top)&&(null==n?void 0:n.width)===(null==t?void 0:t.width)},t.createContainer=function(n,t){var e=window.document.createElement("div");return t&&(e.className=t),Object.assign(e.style,n),e},t.popoverRectForPosition=function(n,t,e,r,i){var u,o,a=t.left+t.width/2,c=t.top+t.height/2,f=e.width,l=e.height;switch(n){case"left":u=c-l/2,o=t.left-r-f,"start"===i&&(u=t.top),"end"===i&&(u=t.bottom-l);break;case"bottom":u=t.bottom+r,o=a-f/2,"start"===i&&(o=t.left),"end"===i&&(o=t.right-f);break;case"right":u=c-l/2,o=t.right+r,"start"===i&&(u=t.top),"end"===i&&(u=t.bottom-l);break;default:u=t.top-l-r,o=a-f/2,"start"===i&&(o=t.left),"end"===i&&(o=t.right-f)}return{top:u,left:o,width:f,height:l,right:o+f,bottom:u+l}},t.getNewPopoverRect=function(n,e){var r=n.position,i=n.align,u=n.childRect,o=n.popoverRect,a=n.boundaryRect,c=n.padding,f=n.reposition,l=t.popoverRectForPosition(r,u,o,c,i),p=f&&("top"===r&&l.top<a.top+e||"left"===r&&l.left<a.left+e||"right"===r&&l.right>a.right-e||"bottom"===r&&l.bottom>a.bottom-e);return{rect:l,boundaryViolation:p}},t.getNudgedPopoverRect=function(n,t,e){var r=t.top+e,i=t.left+e,u=t.right-e,o=t.bottom-e,a=n.top<r?r:n.top;a=a+n.height>o?o-n.height:a;var c=n.left<i?i:n.left;return{top:a,left:c=c+n.width>u?u-n.width:c,width:n.width,height:n.height,right:c+n.width,bottom:a+n.height}}},80734:function(n,t,e){var r,i=e(1710);function u(n){if(!Object.prototype.hasOwnProperty.call(o.message,n))throw Error("invalid status code: "+n);return o.message[n]}function o(n){if("number"==typeof n)return u(n);if("string"!=typeof n)throw TypeError("code must be a number or string");var t=parseInt(n,10);return isNaN(t)?function(n){var t=n.toLowerCase();if(!Object.prototype.hasOwnProperty.call(o.code,t))throw Error('invalid status message: "'+n+'"');return o.code[t]}(n):u(t)}n.exports=o,o.message=i,o.code=(r={},Object.keys(i).forEach(function(n){var t=i[n],e=Number(n);r[t.toLowerCase()]=e}),r),o.codes=Object.keys(i).map(function(n){return Number(n)}),o.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},o.empty={204:!0,205:!0,304:!0},o.retry={502:!0,503:!0,504:!0}},16:function(n,t,e){e.d(t,{SH:function(){return B}}),(r=u||(u={})).SetActiveSlice="setActiveSlice",r.SetSliceZoneSize="setSliceZoneSize",(i=o||(o={})).Ping="ping",i.SetSliceZone="setSliceZone",i.ScrollToSlice="scrollToSlice";var r,i,u,o,a,c,f,l,p,d=e(80734);(a||(a={})).Connect="connect",(c||(c={})).Ready="ready";var s=Object.defineProperty,h=(n,t,e)=>t in n?s(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,m=(n,t,e)=>(h(n,"symbol"!=typeof t?t+"":t,e),e);class v extends Error{constructor(n){super(n.msg),m(this,"response"),this.response=n}}class g extends Error{constructor(){super("Connection timed out")}}class y extends Error{constructor(n){super("Too many concurrent requests"),m(this,"request"),this.request=n}}class b extends Error{constructor(n){super(`Request \`${n.requestID}\` timed out`),m(this,"request"),this.request=n}}class _ extends Error{}class I extends Error{constructor(){super("Port is not set")}}class R extends Error{constructor(){super("Channel is not set")}}let S=0,T=(n,t,e="")=>({requestID:`${e}${S++}`,type:n,data:t}),x=(n,t,e=200)=>{var r;if(e>=400)throw TypeError(`Invalid success status code, expected status to be within \`[100;400[\`, got \`${e}\``);return{requestID:n,status:e,msg:(null==(r=d.message[e])?void 0:r.replace(/\.$/,"").toLowerCase())??"",data:t}},w=(n,t,e=400)=>{var r;if(e<400)throw TypeError(`Invalid error status code, expected status to be within \`[500;600[\`, got \`${e}\``);return{requestID:n,status:e,msg:(null==(r=d.message[e])?void 0:r.replace(/\.$/,"").toLowerCase())??"",error:t}},M=n=>{if("object"!=typeof n||null===n)throw TypeError(`Invalid message received, expected message to be of type \`object\`, got \`${typeof n}\``);if(Object.keys(n).every(n=>["requestID","type","data","status","msg","error"].includes(n))){if("string"!=typeof n.requestID)throw TypeError(`Invalid message received, expected \`message.requestID\` to be of type \`string\`, got \`${typeof n.id}\``)}else throw TypeError(`Invalid message received: ${JSON.stringify(n)}`);return n},O=n=>"type"in n,E=n=>!("type"in n),C=n=>E(n)&&!("error"in n);var k=Object.defineProperty,W=(n,t,e)=>t in n?k(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,F=(n,t,e)=>(W(n,"symbol"!=typeof t?t+"":t,e),e);let P={debug:!1,maximumRequestConcurrency:20,defaultTimeout:5e3,requestIDPrefix:"channel-"};class D{constructor(n,t){F(this,"requestHandlers"),F(this,"options"),F(this,"_port",null),F(this,"_pendingRequests",new Map),this.requestHandlers=n,this.options={...P,...t}}get port(){if(!this._port)throw new I;return this._port}set port(n){this._port&&(this._port.onmessage=null),this._port=n,this._port&&(this._port.onmessage=this.onMessage.bind(this))}createRequestMessage(n,t){return T(n,t,this.options.requestIDPrefix)}async onMessage(n){this.options.debug&&console.debug(n.data);try{let t=M(n.data);if(O(t)){if(this.requestHandlers[t.type])try{let n=await this.requestHandlers[t.type](t,{success:x.bind(this,t.requestID),error:w.bind(this,t.requestID)});this.postResponse(n)}catch(n){this.postResponse(w(t.requestID,n,500))}else this.postResponse(w(t.requestID,void 0,501))}else this._pendingRequests.has(t.requestID)?(this._pendingRequests.get(t.requestID)(t),this._pendingRequests.delete(t.requestID)):console.error(`Unknown request ID received in response: ${JSON.stringify(t)}`)}catch(n){if(n instanceof TypeError)console.warn(n.message);else throw n}}postRequest(n,t=n=>this.port.postMessage(n),e={}){if(this.options.debug&&console.debug(n),this._pendingRequests.size>=this.options.maximumRequestConcurrency)throw new y(n);return new Promise((r,i)=>{let u=setTimeout(()=>{this._pendingRequests.has(n.requestID)&&this._pendingRequests.delete(n.requestID),i(new b(n))},e.timeout||this.options.defaultTimeout);this._pendingRequests.set(n.requestID,n=>{clearTimeout(u),C(n)?r(n):i(new v(n))}),t(n)})}postResponse(n,t=n=>this.port.postMessage(n)){return this.options.debug&&console.debug(n),t(n),n}}var A=Object.defineProperty,U=(n,t,e)=>t in n?A(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,L=(n,t,e)=>(U(n,"symbol"!=typeof t?t+"":t,e),e);let N={connectTimeout:2e4,requestIDPrefix:"emitter-"};class j extends D{constructor(n,t,e){super(t,{...N,...e}),L(this,"_target"),L(this,"_channel",null),L(this,"_receiverReady",""),L(this,"_receiverReadyCallback",null),L(this,"_connected",!1),this._target=n,window.addEventListener("message",n=>{this._onPublicMessage(n)})}get channel(){if(!this._channel)throw new R;return this._channel}set channel(n){this._channel=n,this._channel?this.port=this._channel.port1:this.port=null}get connected(){return this._connected}connect(n={},t=!1){return this.disconnect(),t&&(this._receiverReady=""),new Promise((t,e)=>{this._target.addEventListener("load",()=>{if(!this._target.contentWindow)return e(Error("Target window is not available"));let r=setTimeout(()=>{e(new g)},this.options.connectTimeout),i=async()=>{clearTimeout(r),this.channel=new MessageChannel;let e=this.createRequestMessage(a.Connect,n),i=await this.postRequest(e,n=>{this._target.contentWindow.postMessage(n,"*",[this.channel.port2])});this.postResponse(x(this._receiverReady,void 0),n=>{this._target.contentWindow.postMessage(n,"*")}),this._connected=!0,t(i)};this._receiverReady?i():this._receiverReadyCallback=i},{once:!0})})}disconnect(){this._connected=!1,this.channel=null}async _onPublicMessage(n){if(n.source===this._target.contentWindow)try{let t=M(n.data);if(O(t)){if(this.options.debug&&console.debug(n.data),t.type===c.Ready){if(this._receiverReady=t.requestID,this._receiverReadyCallback){let n=this._receiverReadyCallback();this._receiverReadyCallback=null,await n}}else this.postResponse(w(t.requestID,void 0),t=>{n.source.postMessage(t,n.origin)})}}catch(n){if(n instanceof TypeError);else throw n}}postFormattedRequest(n,t,e={}){if(!this._connected)throw new _("Emitter is not connected, use `ChannelEmitter.connect()` first");return this.postRequest(this.createRequestMessage(n,t),void 0,e)}}var q=Object.defineProperty,G=(n,t,e)=>t in n?q(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,K=(n,t,e)=>(G(n,"symbol"!=typeof t?t+"":t,e),e);let Y={requestIDPrefix:"client-"};class B extends j{constructor(n,t,e){var r,i;let a=(null==e?void 0:e.debug)||/[?&]debug=true/i.test(decodeURIComponent(window.location.search));super(n,{[u.SetActiveSlice]:(n,t)=>t.success(),[u.SetSliceZoneSize]:(n,t)=>t.success(),...t},{...Y,...e,debug:a}),K(this,f,async()=>await this.postFormattedRequest(o.Ping)),K(this,l,async n=>await this.postFormattedRequest(o.SetSliceZone,n)),K(this,p,async n=>await this.postFormattedRequest(o.ScrollToSlice,n)),a&&(window.prismic||(window.prismic={}),(r=window.prismic).sliceSimulator||(r.sliceSimulator={}),(i=window.prismic.sliceSimulator).client||(i.client=[]),window.prismic.sliceSimulator.client.push(this))}}f=o.Ping,l=o.SetSliceZone,p=o.ScrollToSlice,u.SetActiveSlice,u.SetSliceZoneSize},19108:function(n){n.exports=JSON.parse('[{"url":"https://twitter.com/prismicio/status/1356293316158095361","oembed":{"embed_url":"https://twitter.com/prismicio/status/1356293316158095361","author_name":"Prismic","author_url":"https://twitter.com/prismicio","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">Gatsby is a popular choice for Prismic users and we work hard on delivering a CMS that plays to its strengths.<br><br>But, what makes <a href=\\"https://twitter.com/GatsbyJS?ref_src=twsrc%5Etfw\\">@GatsbyJS</a> so popular?<br><br>Here are some of <a href=\\"https://twitter.com/mxstbr?ref_src=twsrc%5Etfw\\">@mxstbr</a>'s thoughts on Gatsby's success and how they're improving developer experience.<a href=\\"https://t.co/ZjCPvsWWUD\\">https://t.co/ZjCPvsWWUD</a> <a href=\\"https://t.co/EQqzJpeNKl\\">pic.twitter.com/EQqzJpeNKl</a></p>— Prismic (@prismicio) <a href=\\"https://twitter.com/prismicio/status/1356293316158095361?ref_src=twsrc%5Etfw\\">February 1, 2021</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}},{"url":"https://twitter.com/timbenniks/status/1304146886832594944","oembed":{"embed_url":"https://twitter.com/timbenniks/status/1304146886832594944","author_name":"Tim Benniks","author_url":"https://twitter.com/timbenniks","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">I’ve been diving deep on <a href=\\"https://twitter.com/prismicio?ref_src=twsrc%5Etfw\\">@prismicio</a> <a href=\\"https://twitter.com/hashtag/slicemachine?src=hash&ref_src=twsrc%5Etfw\\">#slicemachine</a> today. I made all my own components and I used custom slices. It works like a charm with <a href=\\"https://twitter.com/nuxt_js?ref_src=twsrc%5Etfw\\">@nuxt_js</a>. Also\\": I’m coding with this view. <a href=\\"https://t.co/F0I8X9gz39\\">pic.twitter.com/F0I8X9gz39</a></p>— Tim Benniks (@timbenniks) <a href=\\"https://twitter.com/timbenniks/status/1304146886832594944?ref_src=twsrc%5Etfw\\">September 10, 2020</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}},{"url":"https://twitter.com/prismicio/status/1354112310252630016","oembed":{"embed_url":"https://twitter.com/prismicio/status/1354112310252630016","author_name":"Prismic","author_url":"https://twitter.com/prismicio","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">We're launching a new <a href=\\"https://twitter.com/hashtag/SliceContest?src=hash&ref_src=twsrc%5Etfw\\">#SliceContest</a> tomorrow along with Slice Machine upgrades.<br><br>Want to know more? Join us at tomorrow's Product Meet-up\uD83D\uDC47<a href=\\"https://t.co/prYSypiAvB\\">https://t.co/prYSypiAvB</a><br><br>We can't tell you any further details for now, but here's a sneak peek at the prizes\uD83D\uDC40 <a href=\\"https://t.co/fV1eoGlEBh\\">pic.twitter.com/fV1eoGlEBh</a></p>— Prismic (@prismicio) <a href=\\"https://twitter.com/prismicio/status/1354112310252630016?ref_src=twsrc%5Etfw\\">January 26, 2021</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}},{"url":"https://twitter.com/prismicio/status/1354835716430319617","oembed":{"embed_url":"https://twitter.com/prismicio/status/1354835716430319617","author_name":"Prismic","author_url":"https://twitter.com/prismicio","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">Does anyone want to create a wildly popular website for discussing 'Wall Street Bets' using Prismic?<br><br>It may or may not have to look a lot like <a href=\\"https://twitter.com/hashtag/reddit?src=hash&ref_src=twsrc%5Etfw\\">#reddit</a> and we won't make it private.<br><br>Just asking for some friends...</p>— Prismic (@prismicio) <a href=\\"https://twitter.com/prismicio/status/1354835716430319617?ref_src=twsrc%5Etfw\\">January 28, 2021</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}}]')},88416:function(n){n.exports=JSON.parse('[{"name":"Moulin Rouge","imageUrl":"https://lh4.googleusercontent.com/proxy/xJPIDVmq8AZjNlaDRkNadqW8ojW8e3Xu81Fgf3WuaVkwp_8d-hho0xbZHGeMpzIX58tV8HCTeb6nttHMr5sJiYKIr-Nmm4IQ2OVgkisg5wXt_6dhpLEeQhjNvBzZD2poV3AHZMuhb0cOUVdM-htjlyGJ2aLz6A=w408-h272-k-no","points":{"latitude":48.8841267,"longitude":2.3300579}},{"name":"Prismic Headquarters","imageUrl":"/prismic-headquarters.png","points":{"latitude":48.8703712,"longitude":2.3865198}},{"name":"Eiffel Tower","imageUrl":"https://lh5.googleusercontent.com/p/AF1QipPs_9Q0oquXoQMMEg45fpFd_Hkn8B9ljATTaDRY=w408-h295-k-no","points":{"latitude":48.8583736,"longitude":2.2922926}},{"name":"Louvre Museum","imageUrl":"https://lh5.googleusercontent.com/p/AF1QipNbg2fGRkUEXpmsBuhEgANtpr-SH_SrsaKFsamK=w408-h270-k-no","points":{"latitude":48.8606111,"longitude":2.337644}}]')},15542:function(n){n.exports=JSON.parse('[{"url":"https://images.unsplash.com/photo-1515378791036-0648a3ef77b2?ixid=MXwyMDEzOTN8MXwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":5616,"height":3744},{"url":"https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":4076,"height":2712},{"url":"https://images.unsplash.com/photo-1589652717521-10c0d092dea9?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":4752,"height":3168},{"url":"https://images.unsplash.com/photo-1515378960530-7c0da6231fb1?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":5616,"height":3744},{"url":"https://images.unsplash.com/photo-1547394765-185e1e68f34e?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":6000,"height":4000},{"url":"https://images.unsplash.com/photo-1601933973783-43cf8a7d4c5f?ixid=MXwyMDEzOTN8MXwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":6597,"height":4398},{"url":"https://images.unsplash.com/photo-1537498425277-c283d32ef9db?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":4380,"height":2895},{"url":"https://images.unsplash.com/photo-1496181133206-80ce9b88a853?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":5243,"height":3495},{"url":"https://images.unsplash.com/photo-1448932223592-d1fc686e76ea?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":3500,"height":2338},{"url":"https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":3882,"height":2584},{"url":"https://images.unsplash.com/photo-1560762484-813fc97650a0?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":3344,"height":2509},{"url":"https://images.unsplash.com/photo-1544731612-de7f96afe55f?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":6000,"height":4000},{"url":"https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":5848,"height":3899},{"url":"https://images.unsplash.com/photo-1560457079-9a6532ccb118?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":4160,"height":3120},{"url":"https://images.unsplash.com/photo-1547082299-de196ea013d6?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":4272,"height":2848},{"url":"https://images.unsplash.com/photo-1551739440-5dd934d3a94a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3456,"height":4320},{"url":"https://images.unsplash.com/photo-1531771686035-25f47595c87a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3024,"height":3778},{"url":"https://images.unsplash.com/photo-1471897488648-5eae4ac6686b?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3560,"height":5340},{"url":"https://images.unsplash.com/photo-1504198070170-4ca53bb1c1fa?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":2747,"height":4120},{"url":"https://images.unsplash.com/photo-1494173853739-c21f58b16055?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3277,"height":4092},{"url":"https://images.unsplash.com/photo-1541807084-5c52b6b3adef?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":4000,"height":6000},{"url":"https://images.unsplash.com/photo-1593642633279-1796119d5482?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":4016,"height":6016},{"url":"https://images.unsplash.com/photo-1545239351-1141bd82e8a6?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3212,"height":3880},{"url":"https://images.unsplash.com/photo-1491975474562-1f4e30bc9468?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":4000,"height":6000},{"url":"https://images.unsplash.com/photo-1587614295999-6c1c13675117?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3810,"height":5715},{"url":"https://images.unsplash.com/photo-1525547719571-a2d4ac8945e2?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3648,"height":4560},{"url":"https://images.unsplash.com/photo-1587905069134-008460d7a636?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3935,"height":5894},{"url":"https://images.unsplash.com/photo-1587613865763-4b8b0d19e8ab?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":12288,"height":16384},{"url":"https://images.unsplash.com/photo-1589321599763-d66926c29613?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3168,"height":4752},{"url":"https://images.unsplash.com/photo-1589321578146-4c1ba445cc88?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3168,"height":4752},{"url":"https://images.unsplash.com/photo-1593642532973-d31b6557fa68?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":8640,"height":8640},{"url":"https://images.unsplash.com/photo-1591012911207-0dbac31f37da?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4000,"height":4000},{"url":"https://images.unsplash.com/photo-1576662712957-9c79ae1280f8?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":3456,"height":3456},{"url":"https://images.unsplash.com/photo-1606248897732-2c5ffe759c04?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4000,"height":4000},{"url":"https://images.unsplash.com/photo-1600804931749-2da4ce26c869?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":3199,"height":3199},{"url":"https://images.unsplash.com/photo-1607582278038-6bebbd4d7b72?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4010,"height":4010},{"url":"https://images.unsplash.com/photo-1587840171670-8b850147754e?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4480,"height":4480},{"url":"https://images.unsplash.com/photo-1493119508027-2b584f234d6c?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":3424,"height":3424},{"url":"https://images.unsplash.com/photo-1600861194802-a2b11076bc51?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":2545,"height":2545},{"url":"https://images.unsplash.com/photo-1571126770897-2d612d1f7b89?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":3456,"height":3456},{"url":"https://images.unsplash.com/photo-1586952518485-11b180e92764?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":4172,"height":4000},{"url":"https://images.unsplash.com/photo-1587653915936-5623ea0b949a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":4000,"height":4000},{"url":"https://images.unsplash.com/photo-1607582278043-57198ac8da43?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":4024,"height":4024},{"url":"https://images.unsplash.com/photo-1579931794097-0ad001e51edb?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":3958,"height":3958},{"url":"https://images.unsplash.com/photo-1596195689404-24d8a8d1c6ea?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":5000,"height":4613}]')},93953:function(n){n.exports=JSON.parse('["ability","able","aboard","about","above","accept","accident","according","account","accurate","acres","across","act","action","active","activity","actual","actually","add","addition","additional","adjective","adult","adventure","advice","affect","afraid","after","afternoon","again","against","age","ago","agree","ahead","aid","air","airplane","alike","alive","all","allow","almost","alone","along","aloud","alphabet","already","also","although","am","among","amount","ancient","angle","angry","animal","announced","another","answer","ants","any","anybody","anyone","anything","anyway","anywhere","apart","apartment","appearance","apple","applied","appropriate","are","area","arm","army","around","arrange","arrangement","arrive","arrow","art","article","as","aside","ask","asleep","at","ate","atmosphere","atom","atomic","attached","attack","attempt","attention","audience","author","automobile","available","average","avoid","aware","away","baby","back","bad","badly","bag","balance","ball","balloon","band","bank","bar","bare","bark","barn","base","baseball","basic","basis","basket","bat","battle","be","bean","bear","beat","beautiful","beauty","became","because","become","becoming","bee","been","before","began","beginning","begun","behavior","behind","being","believed","bell","belong","below","belt","bend","beneath","bent","beside","best","bet","better","between","beyond","bicycle","bigger","biggest","bill","birds","birth","birthday","bit","bite","black","blank","blanket","blew","blind","block","blood","blow","blue","board","boat","body","bone","book","border","born","both","bottle","bottom","bound","bow","bowl","box","boy","brain","branch","brass","brave","bread","break","breakfast","breath","breathe","breathing","breeze","brick","bridge","brief","bright","bring","broad","broke","broken","brother","brought","brown","brush","buffalo","build","building","built","buried","burn","burst","bus","bush","business","busy","but","butter","buy","by","cabin","cage","cake","call","calm","came","camera","camp","can","canal","cannot","cap","capital","captain","captured","car","carbon","card","care","careful","carefully","carried","carry","case","cast","castle","cat","catch","cattle","caught","cause","cave","cell","cent","center","central","century","certain","certainly","chain","chair","chamber","chance","change","changing","chapter","character","characteristic","charge","chart","check","cheese","chemical","chest","chicken","chief","child","children","choice","choose","chose","chosen","church","circle","circus","citizen","city","class","classroom","claws","clay","clean","clear","clearly","climate","climb","clock","close","closely","closer","cloth","clothes","clothing","cloud","club","coach","coal","coast","coat","coffee","cold","collect","college","colony","color","column","combination","combine","come","comfortable","coming","command","common","community","company","compare","compass","complete","completely","complex","composed","composition","compound","concerned","condition","congress","connected","consider","consist","consonant","constantly","construction","contain","continent","continued","contrast","control","conversation","cook","cookies","cool","copper","copy","corn","corner","correct","correctly","cost","cotton","could","count","country","couple","courage","course","court","cover","cow","cowboy","crack","cream","create","creature","crew","crop","cross","crowd","cry","cup","curious","current","curve","customs","cut","cutting","daily","damage","dance","danger","dangerous","dark","darkness","date","daughter","dawn","day","dead","deal","dear","death","decide","declared","deep","deeply","deer","definition","degree","depend","depth","describe","desert","design","desk","detail","determine","develop","development","diagram","diameter","did","die","differ","difference","different","difficult","difficulty","dig","dinner","direct","direction","directly","dirt","dirty","disappear","discover","discovery","discuss","discussion","disease","dish","distance","distant","divide","division","do","doctor","does","dog","doing","doll","dollar","done","donkey","door","dot","double","doubt","down","dozen","draw","drawn","dream","dress","drew","dried","drink","drive","driven","driver","driving","drop","dropped","drove","dry","duck","due","dug","dull","during","dust","duty","each","eager","ear","earlier","early","earn","earth","easier","easily","east","easy","eat","eaten","edge","education","effect","effort","egg","eight","either","electric","electricity","element","elephant","eleven","else","empty","end","enemy","energy","engine","engineer","enjoy","enough","enter","entire","entirely","environment","equal","equally","equator","equipment","escape","especially","essential","establish","even","evening","event","eventually","ever","every","everybody","everyone","everything","everywhere","evidence","exact","exactly","examine","example","excellent","except","exchange","excited","excitement","exciting","exclaimed","exercise","exist","expect","experience","experiment","explain","explanation","explore","express","expression","extra","eye","face","facing","fact","factor","factory","failed","fair","fairly","fall","fallen","familiar","family","famous","far","farm","farmer","farther","fast","fastened","faster","fat","father","favorite","fear","feathers","feature","fed","feed","feel","feet","fell","fellow","felt","fence","few","fewer","field","fierce","fifteen","fifth","fifty","fight","fighting","figure","fill","film","final","finally","find","fine","finest","finger","finish","fire","fireplace","firm","first","fish","five","fix","flag","flame","flat","flew","flies","flight","floating","floor","flow","flower","fly","fog","folks","follow","food","foot","football","for","force","foreign","forest","forget","forgot","forgotten","form","former","fort","forth","forty","forward","fought","found","four","fourth","fox","frame","free","freedom","frequently","fresh","friend","friendly","frighten","frog","from","front","frozen","fruit","fuel","full","fully","fun","function","funny","fur","furniture","further","future","gain","game","garage","garden","gas","gasoline","gate","gather","gave","general","generally","gentle","gently","get","getting","giant","gift","girl","give","given","giving","glad","glass","globe","go","goes","gold","golden","gone","good","goose","got","government","grabbed","grade","gradually","grain","grandfather","grandmother","graph","grass","gravity","gray","great","greater","greatest","greatly","green","grew","ground","group","grow","grown","growth","guard","guess","guide","gulf","gun","habit","had","hair","half","halfway","hall","hand","handle","handsome","hang","happen","happened","happily","happy","harbor","hard","harder","hardly","has","hat","have","having","hay","he","headed","heading","health","heard","hearing","heart","heat","heavy","height","held","hello","help","helpful","her","herd","here","herself","hidden","hide","high","higher","highest","highway","hill","him","himself","his","history","hit","hold","hole","hollow","home","honor","hope","horn","horse","hospital","hot","hour","house","how","however","huge","human","hundred","hung","hungry","hunt","hunter","hurried","hurry","hurt","husband","ice","idea","identity","if","ill","image","imagine","immediately","importance","important","impossible","improve","in","inch","include","including","income","increase","indeed","independent","indicate","individual","industrial","industry","influence","information","inside","instance","instant","instead","instrument","interest","interior","into","introduced","invented","involved","iron","is","island","it","its","itself","jack","jar","jet","job","join","joined","journey","joy","judge","jump","jungle","just","keep","kept","key","kids","kill","kind","kitchen","knew","knife","know","knowledge","known","label","labor","lack","lady","laid","lake","lamp","land","language","large","larger","largest","last","late","later","laugh","law","lay","layers","lead","leader","leaf","learn","least","leather","leave","leaving","led","left","leg","length","lesson","let","letter","level","library","lie","life","lift","light","like","likely","limited","line","lion","lips","liquid","list","listen","little","live","living","load","local","locate","location","log","lonely","long","longer","look","loose","lose","loss","lost","lot","loud","love","lovely","low","lower","luck","lucky","lunch","lungs","lying","machine","machinery","mad","made","magic","magnet","mail","main","mainly","major","make","making","man","managed","manner","manufacturing","many","map","mark","market","married","mass","massage","master","material","mathematics","matter","may","maybe","me","meal","mean","means","meant","measure","meat","medicine","meet","melted","member","memory","men","mental","merely","met","metal","method","mice","middle","might","mighty","mile","military","milk","mill","mind","mine","minerals","minute","mirror","missing","mission","mistake","mix","mixture","model","modern","molecular","moment","money","monkey","month","mood","moon","more","morning","most","mostly","mother","motion","motor","mountain","mouse","mouth","move","movement","movie","moving","mud","muscle","music","musical","must","my","myself","mysterious","nails","name","nation","national","native","natural","naturally","nature","near","nearby","nearer","nearest","nearly","necessary","neck","needed","needle","needs","negative","neighbor","neighborhood","nervous","nest","never","new","news","newspaper","next","nice","night","nine","no","nobody","nodded","noise","none","noon","nor","north","nose","not","note","noted","nothing","notice","noun","now","number","numeral","nuts","object","observe","obtain","occasionally","occur","ocean","of","off","offer","office","officer","official","oil","old","older","oldest","on","once","one","only","onto","open","operation","opinion","opportunity","opposite","or","orange","orbit","order","ordinary","organization","organized","origin","original","other","ought","our","ourselves","out","outer","outline","outside","over","own","owner","oxygen","pack","package","page","paid","pain","paint","pair","palace","pale","pan","paper","paragraph","parallel","parent","park","part","particles","particular","particularly","partly","parts","party","pass","passage","past","path","pattern","pay","peace","pen","pencil","people","per","percent","perfect","perfectly","perhaps","period","person","personal","pet","phrase","physical","piano","pick","picture","pictured","pie","piece","pig","pile","pilot","pine","pink","pipe","pitch","place","plain","plan","plane","planet","planned","planning","plant","plastic","plate","plates","play","pleasant","please","pleasure","plenty","plural","plus","pocket","poem","poet","poetry","point","pole","police","policeman","political","pond","pony","pool","poor","popular","population","porch","port","position","positive","possible","possibly","post","pot","potatoes","pound","pour","powder","power","powerful","practical","practice","prepare","present","president","press","pressure","pretty","prevent","previous","price","pride","primitive","principal","principle","printed","private","prize","probably","problem","process","produce","product","production","program","progress","promised","proper","properly","property","protection","proud","prove","provide","public","pull","pupil","pure","purple","purpose","push","put","putting","quarter","queen","question","quick","quickly","quiet","quietly","quite","rabbit","race","radio","railroad","rain","raise","ran","ranch","range","rapidly","rate","rather","raw","rays","reach","read","reader","ready","real","realize","rear","reason","recall","receive","recent","recently","recognize","record","red","refer","refused","region","regular","related","relationship","religious","remain","remarkable","remember","remove","repeat","replace","replied","report","represent","require","research","respect","rest","result","return","review","rhyme","rhythm","rice","rich","ride","riding","right","ring","rise","rising","river","road","roar","rock","rocket","rocky","rod","roll","roof","room","root","rope","rose","rough","round","route","row","rubbed","rubber","rule","ruler","run","running","rush","sad","saddle","safe","safety","said","sail","sale","salmon","salt","same","sand","sang","sat","satellites","satisfied","save","saved","saw","say","scale","scared","scene","school","science","scientific","scientist","score","screen","sea","search","season","seat","second","secret","section","see","seed","seeing","seems","seen","seldom","select","selection","sell","send","sense","sent","sentence","separate","series","serious","serve","service","sets","setting","settle","settlers","seven","several","shade","shadow","shake","shaking","shall","shallow","shape","share","sharp","she","sheep","sheet","shelf","shells","shelter","shine","shinning","ship","shirt","shoe","shoot","shop","shore","short","shorter","shot","should","shoulder","shout","show","shown","shut","sick","sides","sight","sign","signal","silence","silent","silk","silly","silver","similar","simple","simplest","simply","since","sing","single","sink","sister","sit","sitting","situation","six","size","skill","skin","sky","slabs","slave","sleep","slept","slide","slight","slightly","slip","slipped","slope","slow","slowly","small","smaller","smallest","smell","smile","smoke","smooth","snake","snow","so","soap","social","society","soft","softly","soil","solar","sold","soldier","solid","solution","solve","some","somebody","somehow","someone","something","sometime","somewhere","son","song","soon","sort","sound","source","south","southern","space","speak","special","species","specific","speech","speed","spell","spend","spent","spider","spin","spirit","spite","split","spoken","sport","spread","spring","square","stage","stairs","stand","standard","star","stared","start","state","statement","station","stay","steady","steam","steel","steep","stems","step","stepped","stick","stiff","still","stock","stomach","stone","stood","stop","stopped","store","storm","story","stove","straight","strange","stranger","straw","stream","street","strength","stretch","strike","string","strip","strong","stronger","struck","structure","struggle","stuck","student","studied","studying","subject","substance","success","successful","such","sudden","suddenly","sugar","suggest","suit","sum","summer","sun","sunlight","supper","supply","support","suppose","sure","surface","surprise","surrounded","swam","sweet","swept","swim","swimming","swing","swung","syllable","symbol","system","table","tail","take","taken","tales","talk","tall","tank","tape","task","taste","taught","tax","tea","teach","teacher","team","tears","teeth","telephone","television","tell","temperature","ten","tent","term","terrible","test","than","thank","that","thee","them","themselves","then","theory","there","therefore","these","they","thick","thin","thing","think","third","thirty","this","those","thou","though","thought","thousand","thread","three","threw","throat","through","throughout","throw","thrown","thumb","thus","thy","tide","tie","tight","tightly","till","time","tin","tiny","tip","tired","title","to","tobacco","today","together","told","tomorrow","tone","tongue","tonight","too","took","tool","top","topic","torn","total","touch","toward","tower","town","toy","trace","track","trade","traffic","trail","train","transportation","trap","travel","treated","tree","triangle","tribe","trick","tried","trip","troops","tropical","trouble","truck","trunk","truth","try","tube","tune","turn","twelve","twenty","twice","two","type","typical","uncle","under","underline","understanding","unhappy","union","unit","universe","unknown","unless","until","unusual","up","upon","upper","upward","us","use","useful","using","usual","usually","valley","valuable","value","vapor","variety","various","vast","vegetable","verb","vertical","very","vessels","victory","view","village","visit","visitor","voice","volume","vote","vowel","voyage","wagon","wait","walk","wall","want","war","warm","warn","was","wash","waste","watch","water","wave","way","we","weak","wealth","wear","weather","week","weigh","weight","welcome","well","went","were","west","western","wet","whale","what","whatever","wheat","wheel","when","whenever","where","wherever","whether","which","while","whispered","whistle","white","who","whole","whom","whose","why","wide","widely","wife","wild","will","willing","win","wind","window","wing","winter","wire","wise","wish","with","within","without","wolf","women","won","wonder","wonderful","wood","wooden","wool","word","wore","work","worker","world","worried","worry","worse","worth","would","wrapped","write","writer","writing","written","wrong","wrote","yard","year","yellow","yes","yesterday","yet","you","young","younger","your","yourself","youth","zero","zebra","zipper","zoo","zulu"]')},83777:function(n){n.exports=JSON.parse('["https://slicemachine.dev","https://prismic.io","http://google.com","http://twitter.com"]')},1710:function(n){n.exports=JSON.parse('{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I\'m a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}')}}]);
|