slice-machine-ui 2.12.3 → 2.12.4-alpha.dani-table-code.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/out/404.html +1 -1
  2. package/out/_next/static/{xDri6qXZSilPzvvH6wB4L → FljnelMrjQDv3WFCJtRwH}/_buildManifest.js +1 -1
  3. package/out/_next/static/chunks/150-e030a221a6bd2282.js +1 -0
  4. package/out/_next/static/chunks/429-016b807b72ea4c41.js +8 -0
  5. package/out/_next/static/chunks/4c744e84-480e426e4b1cfef3.js +1 -0
  6. package/out/_next/static/chunks/574-0c1b117bcea4181c.js +1 -0
  7. package/out/_next/static/chunks/pages/{_app-20181c2c0a54573c.js → _app-ac11f3763a7536f9.js} +75 -73
  8. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-1628edd314d05be8.js +1 -0
  9. package/out/_next/static/css/9350c43687004447.css +1 -0
  10. package/out/changelog.html +1 -1
  11. package/out/changes.html +1 -1
  12. package/out/custom-types/[customTypeId].html +1 -1
  13. package/out/custom-types.html +1 -1
  14. package/out/index.html +1 -1
  15. package/out/labs.html +1 -1
  16. package/out/page-types/[pageTypeId].html +1 -1
  17. package/out/settings.html +1 -1
  18. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  19. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  20. package/out/slices.html +1 -1
  21. package/package.json +11 -10
  22. package/src/domain/fields.ts +16 -6
  23. package/src/domain/slice.ts +3 -1
  24. package/src/features/builder/useTableFieldExperiment.ts +8 -0
  25. package/src/legacy/lib/builders/CustomTypeBuilder/TabZone/index.tsx +8 -1
  26. package/src/legacy/lib/builders/SliceBuilder/FieldZones/index.tsx +13 -3
  27. package/src/legacy/lib/models/common/widgets/Group/index.tsx +12 -3
  28. package/src/legacy/lib/models/common/widgets/Link/components.tsx +5 -5
  29. package/src/legacy/lib/models/common/widgets/NestedGroup/index.tsx +17 -8
  30. package/src/legacy/lib/models/common/widgets/Table/index.ts +52 -0
  31. package/src/legacy/lib/models/common/widgets/nonGroupWidgets.ts +2 -0
  32. package/out/_next/static/chunks/150-2328555354d79c01.js +0 -1
  33. package/out/_next/static/chunks/429-159ed82b9198a550.js +0 -8
  34. package/out/_next/static/chunks/4c744e84-642bc2ece03445a4.js +0 -1
  35. package/out/_next/static/chunks/574-51e1dc5d26f148e4.js +0 -1
  36. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-eee8fd501e56e955.js +0 -1
  37. package/out/_next/static/css/69a583909471a453.css +0 -1
  38. /package/out/_next/static/{xDri6qXZSilPzvvH6wB4L → FljnelMrjQDv3WFCJtRwH}/_ssgManifest.js +0 -0
@@ -1,8 +0,0 @@
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(87783),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(87783);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(87783),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(87783).__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(87783),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(87783).__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(87783),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(87783),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(87783),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(87783).__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(87783);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(87783),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(87783),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(87783),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(87783),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(87783),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(87783),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(87783),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(87783),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(87783).__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(87783).__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(87783).__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(87783),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(87783).__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(24698),y=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,g.TextDef,y.TimestampDef,p.LinkDef])},56156:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberDef=void 0;let r=e(87783),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(87783),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(87783),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(87783),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(87783),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)},24698:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TextDef=void 0;let r=e(87783),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(87783),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(87783);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(24698),t),r.__exportStar(e(49437),t)},3094:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeSliceDef=void 0;let r=e(87783),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(87783),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(87783),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(87783).__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(87783),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(87783);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(87783);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(87783).__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(87783);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(87783),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(87783).__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(87783).__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(87783).__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(87783),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 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 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 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 return null}})},12706:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),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(87783);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(87783),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(87783),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(87783),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))})},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.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}})},24485:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),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(87783).__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(87783),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(87783),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(87783),i=e(74982),u=e(42275),o=e(92425),a=r.__importStar(e(20492)),c=e(81681),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}})},81681: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(42104)),i=d(e(17564)),u=d(e(21105)),o=d(e(28331)),a=d(e(67565)),c=d(e(3341)),f=d(e(88087)),l=d(e(70507)),p=d(e(72333));function d(n){return n&&n.__esModule?n:{default:n}}},86243: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))}},49030: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}},67565:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},72333:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=e(88087))&&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}},88403: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},93827: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)},39852: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]]}},70507:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=o;var r,i=(r=e(88087))&&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}},42104:function(n,t,e){let r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u,o=(u=e(93827))&&u.__esModule?u:{default:u},a=e(70507);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)}},17564:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(e(37967)),i=u(e(86243));function u(n){return n&&n.__esModule?n:{default:n}}let o=(0,r.default)("v3",48,i.default);t.default=o},37967: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(70507),u=(r=e(72333))&&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},21105:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(e(49030)),i=o(e(93827)),u=e(70507);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)}},28331:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(e(37967)),i=u(e(39852));function u(n){return n&&n.__esModule?n:{default:n}}let o=(0,r.default)("v5",80,i.default);t.default=o},88087:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=e(88403))&&r.__esModule?r:{default:r};t.default=function(n){return"string"==typeof n&&i.default.test(n)}},3341:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=e(88087))&&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)}},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(78948);(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(78948).__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(60130),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(78948);(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(78948),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(78948),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(78948),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"}}}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(78948),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(78948),i=e(74982),u=e(74702),o=e(60130),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=t.LoremDefaultConfig=void 0;let r=e(23535),i=e(72788),u=e(15801);t.LoremDefaultConfig={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."},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."},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"}},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)=>{let r=new i.LoremIpsum(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 r.generateParagraphs(1)}}},35650:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextMock=void 0;let r=e(78948),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)).value(i);return Array((null==t?void 0:t.nbBlocks)||c.RichTextMockConfig.INITIAL_CONFIG.blocks).fill(null).map(()=>o.map(n=>{if(c.RichTextMockConfig.isText(n))return{type:n,content:{text:c.RichTextMockConfig.generateText(n,c.LoremDefaultConfig)}};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)}}}},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(78948),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(44395),_=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"Text":return b.TextMock.generate(n,(null==t?void 0:t.type)==="Text"?t:void 0);case"Timestamp":return _.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},I=o.ColorMock.applyPatch(r)||a.DateMock.applyPatch(r)||_.TimestampMock.applyPatch(r)||g.SelectMock.applyPatch(r)||h.RangeMock.applyPatch(r)||b.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)||m.RepeatableMock.applyPatch(r);return null==I?void 0:I.result}}},25242:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.generateSliceMock=t.generateDocumentMock=void 0;let r=e(78948),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(78948),i=e(88985),u=e(23535),o=e(60130),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}}},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(98227).__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(98227);(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(98227),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);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(98227).__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(98227),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(98227),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=t.GroupContent.is,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 f=null==e?void 0:e[r];return(a=f&&(null==f?void 0:f.type)!==c.GroupFieldType||u.__TYPE__!==t.GroupContentType?f&&(null==f?void 0:f.type)!=="Link"||"RepeatableContent"!==u.__TYPE__?i({path:o.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:f,content:u}):(0,p.traverseRepeatableContent)({path:o.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:f,content:u})(i):h({path:o.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:f,content:u})(i))&&((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(98227),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(98227).__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(98227);(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(98227),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(98227),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(98227),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(98227),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(98227),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(98227),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(98227),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(98227),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(98227),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(98227),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(98227),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(98227),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(98227),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(98227),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(23284),c=e(13669),f=e(8597),l=e(35002),p=e(58237),d=n=>"string"==typeof n&&(0,c.validate)(n),s=new o.Type("UUID",d,(n,t)=>void 0===n?o.success((0,c.v4)()):d(n)?o.success(n):o.failure(n,t),o.identity);function h(n){return o.intersection([o.strict({key:s}),n])}t.ImageLinkType="ImageLink";let m=n=>"string"==typeof n,v=new o.Type("ImageLinkKind",n=>m(n),(n,t)=>m(n)?o.success("image"):o.failure(n,t),()=>"image"),g=o.intersection([o.strict({kind:v,id:o.string,url:o.string,height:o.string,width:o.string,size:o.string,name:o.string}),o.exact(o.partial({date:f.StringOrNull}))]),y=new o.Type("FilledImageLink",n=>(0,p.hasContentType)(n)&&n.__TYPE__===t.ImageLinkType,n=>(0,u.pipe)(g.decode(n),i.either.map(n=>t.FilledImageLinkContent.encode({...n,__TYPE__:t.ImageLinkType}))),n=>g.encode(n));t.FilledImageLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ImageLinkType)}),g]);let b=o.intersection([o.union([g,o.strict({kind:o.literal("image")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),_=new o.Type("ImageLink",n=>(0,p.hasContentType)(n)&&n.__TYPE__===t.ImageLinkType,n=>(0,u.pipe)(b.decode(n),i.either.map(n=>t.ImageLinkContent.encode({...n,__TYPE__:t.ImageLinkType}))),n=>b.encode(n));t.ImageLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ImageLinkType)}),b]),t.FileLinkType="FileLink";let I=n=>"string"==typeof n,R=new o.Type("FileLinkKind",n=>I(n),(n,t)=>I(n)?o.success("file"):o.failure(n,t),()=>"file"),S=o.exact(o.intersection([o.type({kind:R,id:o.string,url:o.string,name:o.string,size:(0,a.withFallback)(o.string,"0")}),o.partial({date:f.StringOrNull})])),w=new o.Type("FilledFileLink",n=>(0,p.hasContentType)(n)&&n.__TYPE__===t.FileLinkType,n=>(0,u.pipe)(S.decode(n),i.either.map(n=>t.FilledFileLinkContent.encode({...n,__TYPE__:t.FileLinkType}))),n=>S.encode(n));t.FilledFileLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.FileLinkType)}),S]);let x=o.intersection([o.union([S,o.strict({kind:o.literal("file")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),M=new o.Type("FileLink",n=>(0,p.hasContentType)(n)&&n.__TYPE__===t.FileLinkType,n=>(0,u.pipe)(x.decode(n),i.either.map(n=>t.FileLinkContent.encode({...n,__TYPE__:t.FileLinkType}))),n=>x.encode(n));t.FileLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.FileLinkType)}),x]),t.MediaLinkType="MediaLink";let O=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,p.hasContentType)(n)&&n.__TYPE__===t.MediaLinkType,n=>(0,u.pipe)(O.decode(n),i.either.map(n=>t.MediaLinkContent.encode({...n,__TYPE__:t.MediaLinkType}))),n=>O.encode(n));t.MediaLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.MediaLinkType)}),O]),t.DocumentLinkType="DocumentLink";let E=o.strict({id:f.NonEmptyString}),k=new o.Type("FilledDocumentLink",n=>(0,p.hasContentType)(n)&&n.__TYPE__===t.DocumentLinkType,n=>(0,u.pipe)(E.decode(n),i.either.map(n=>t.FilledDocumentLinkContent.encode({...n,__TYPE__:t.DocumentLinkType}))),n=>E.encode(n));t.FilledDocumentLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.DocumentLinkType)}),E]);let C=o.intersection([o.union([E,o.strict({kind:o.literal("document")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),W=new o.Type("DocumentLink",n=>(0,p.hasContentType)(n)&&n.__TYPE__===t.DocumentLinkType,n=>(0,u.pipe)(C.decode(n),i.either.map(n=>t.DocumentLinkContent.encode({...n,__TYPE__:t.DocumentLinkType}))),n=>C.encode(n));t.DocumentLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.DocumentLinkType)}),C]),t.ExternalLinkType="ExternalLink";let P=o.exact(o.intersection([o.type({url:o.string}),o.partial({kind:o.literal("web"),target:f.StringOrNull,preview:(0,l.nullable)(o.partial({title:o.string}))})])),F=new o.Type("FilledExternalLink",n=>(0,p.hasContentType)(n)&&n.__TYPE__===t.ExternalLinkType,n=>(0,u.pipe)(P.decode(n),i.either.map(n=>t.FilledExternalLinkContent.encode({...n,__TYPE__:t.ExternalLinkType}))),n=>P.encode(n));t.FilledExternalLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ExternalLinkType)}),P]);let U=o.intersection([o.union([P,o.strict({kind:o.literal("web")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),D=new o.Type("ExternalLink",n=>(0,p.hasContentType)(n)&&n.__TYPE__===t.ExternalLinkType,n=>(0,u.pipe)(U.decode(n),i.either.map(n=>t.ExternalLinkContent.encode({...n,__TYPE__:t.ExternalLinkType}))),n=>U.encode(n));t.ExternalLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ExternalLinkType)}),U]),t.AnyLinkType="AnyLink";let A=o.exact(o.intersection([o.type({kind:(0,a.withFallback)(o.literal("any"),"any")}),o.partial({text:o.string,variant:o.string})])),L=new o.Type("AnyLink",n=>(0,p.hasContentType)(n)&&n.__TYPE__===t.AnyLinkType,n=>(0,u.pipe)(A.decode(n),i.either.map(n=>t.AnyLinkContent.encode({...n,__TYPE__:t.AnyLinkType}))),n=>A.encode(n));t.AnyLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.AnyLinkType)}),A]),t.LinkContentType="LinkContent",t.isLinkContent=n=>(0,p.hasContentType)(n)&&n.__TYPE__===t.LinkContentType,t.LinkLegacy=h(o.union([_,M,W,D,T,L])),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=h(o.strict({__TYPE__:o.literal(t.LinkContentType),value:t.Link})),t.isFilledLinkContent=n=>(0,p.hasContentType)(n)&&n.__TYPE__===t.LinkContentType,t.FilledLinkLegacy=o.union([y,w,k,F]),t.FilledLinkContentLegacy=n=>{let e=h(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=h(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(98227),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);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,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,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"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"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(98227),i=e(9554),u=e(87412),o=e(14632),a=(0,r.__importStar)(e(87830)),c=e(72202);t.RepeatableContent=a.strict({__TYPE__:a.literal("RepeatableContent"),type:a.literal("Link"),value:a.array(c.LinkContent)}),t.isRepeatableContent=t.RepeatableContent.is,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,c.LinkContentLegacy)(n).decode(r)),!i||(0,u.isLeft)(i)?t:[...t,i.right]},[]),type:e,__TYPE__:"RepeatableContent"}))),t=>({content:a.array(c.LinkContent).encode(t.value).reduce((t,e)=>{let r;return e.__TYPE__===c.LinkContentType&&(r=(0,c.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 f=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 f&&(0,c.isLinkContent)(f)?i.concat(f):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.TextBlock=t.checkEmbedBlock=t.EmbedBlock=t.checkImageBlock=t.ImageBlock=t.ValidatedSpans=t.SpanLegacy=t.Span=void 0;let r=e(98227),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);let S=R(t.SpanLegacy),w=a.union([I,b,S]);t.BlockLegacy=new a.Type("BlockLegacy",n=>I.is(n)||b.is(n)||S.is(n),n=>w.decode(n),n=>t.ImageBlock.is(n)?b.encode(n):t.EmbedBlock.is(n)?I.encode(n):S.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.isRichTextContent=t.RichTextContentType=void 0;let r=e(98227),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;let f=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)(f.decode(n),i.either.map(n=>({value:n,__TYPE__:t.RichTextContentType}))),t=>({content:f.encode(t.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(98227).__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)})},91366:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(98227);(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)},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(98227),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(98227).__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(98227),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.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(98227).__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(98227).__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(98227),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(98227),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(98227),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(98227);(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(98227);(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.hasContentType=t.hasFieldContentType=void 0;let r=e(87412),i=e(33832);function u(n){return"object"==typeof n&&null!==n&&"__TYPE__"in n}t.hasFieldContentType=function(n){return u(n)&&n.__TYPE__===i.FieldContentType&&(null==n?void 0:n.type)!==void 0&&"string"==typeof n.type&&(0,r.isRight)(i.FieldType.decode(n.type))},t.hasContentType=u},17896:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),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(98227),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
- ${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},{})}},22453:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Sections=t.DynamicSection=t.StaticSection=t.sectionReader=void 0;let r=(0,e(98227).__importStar)(e(87830)),i=e(31289),u=e(53039);function o(n){return r.record(i.WidgetKey,n)}t.sectionReader=o,t.StaticSection=o(u.StaticWidget),t.DynamicSection=o(u.DynamicWidget),t.Sections={toStatic:(n,t)=>Object.entries(n).reduce((n,[e,r])=>({...n,[e]:u.Widgets.toStatic(r,t)}),{})}},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(98227);(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(98227);(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.Group=t.GroupConfig=t.NestedGroup=t.NestedGroupConfig=t.GroupFieldType=void 0;let r=(0,e(98227).__importStar)(e(87830)),i=e(31289),u=e(8597),o=e(30961);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)})]));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]))},63437:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UID=t.UIDConfig=t.UIDFieldType=void 0;let r=(0,e(98227).__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(98227).__importStar)(e(87830)),i=e(10673),u=e(44613),o=e(30961),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.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(98227);(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(98227).__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(98227).__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(98227).__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(98227).__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(98227).__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(98227),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(98227).__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=void 0;let r=e(98227),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);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:u.readonlyArray(u.string),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})]))},30961:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidget=void 0;let r=(0,e(98227).__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(36732),y=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.Text,y.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(98227).__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(98227).__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(98227),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(98227).__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(98227).__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})]))},36732:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextConfig=t.TextFieldType=void 0;let r=(0,e(98227).__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(98227).__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(98227);(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(30961),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(36732),t),(0,r.__exportStar)(e(48903),t)},71747:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(98227),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.isCompositeSlice=t.CompositeSlice=t.CompositeSliceConfig=t.CompositeSliceType=void 0;let r=(0,e(98227).__importStar)(e(87830)),i=e(31289),u=e(8597),o=e(30961);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}},97442:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isLegacySlice=t.LegacySlice=void 0;let r=(0,e(98227).__importStar)(e(87830)),i=e(10673),u=e(30961);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.isDynamicSharedSlice=t.isStaticSharedSlice=t.SharedSlice=t.SharedSliceType=t.Variation=void 0;let r=(0,e(98227).__importStar)(e(87830)),i=e(69624),u=e(31289),o=e(30961),a=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,a.SlicePrimaryWidget),items:r.record(u.WidgetKey,o.NestableWidget)})])),t.SharedSliceType="SharedSlice";let c=r.string,f=r.string;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(c,f)})])),t.isStaticSharedSlice=function(n){return"SharedSlice"===n.type},t.isDynamicSharedSlice=function(n){return"SharedSlice"===n.type}},73194:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceRef=void 0;let r=(0,e(98227).__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(98227).__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.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(98227).__importStar)(e(87830)),i=e(31289),u=e(8597),o=e(26417),a=e(97442),c=e(32233),f=e(73194);function l(n){return r.exact(r.partial({label:u.StringOrNull,labels:t.SlicesLabels,choices:r.record(i.WidgetKey,r.union([a.LegacySlice,o.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=l,t.StaticSlicesConfig=l(c.SharedSlice),t.DynamicSlicesConfig=l(f.SharedSliceRef);let p={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 d(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=d,t.StaticSlices=d(t.StaticSlicesConfig),t.DynamicSlices=d(t.DynamicSlicesConfig),t.Slices={toStatic:(n,t)=>n.config?{...n,config:p.toStatic(n.config,t)}:n}},51945:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesTypes=void 0;let r=(0,e(98227).__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(98227);(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(98227),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(98227);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(98227),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(98227),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(98227),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(98227),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(98227),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(98227),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(98227),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(98227).__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(98227),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(98227).__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(98227).__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(98227),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(98227),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(98227).__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(98227),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(98227),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(98227);(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}})},13669: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(74797)),i=d(e(63020)),u=d(e(9855)),o=d(e(86768)),a=d(e(30534)),c=d(e(88159)),f=d(e(13366)),l=d(e(72404)),p=d(e(63947));function d(n){return n&&n.__esModule?n:{default:n}}},1672: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))}},1884: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}},30534:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},63947:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=e(13366))&&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}},85703: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},18551: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)},77392: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]]}},72404:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=o;var r,i=(r=e(13366))&&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}},74797:function(n,t,e){let r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u,o=(u=e(18551))&&u.__esModule?u:{default:u},a=e(72404);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)}},63020:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(e(19972)),i=u(e(1672));function u(n){return n&&n.__esModule?n:{default:n}}let o=(0,r.default)("v3",48,i.default);t.default=o},19972: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(72404),u=(r=e(63947))&&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},9855:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(e(1884)),i=o(e(18551)),u=e(72404);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)}},86768:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(e(19972)),i=u(e(77392));function u(n){return n&&n.__esModule?n:{default:n}}let o=(0,r.default)("v5",80,i.default);t.default=o},13366:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=e(85703))&&r.__esModule?r:{default:r};t.default=function(n){return"string"==typeof n&&i.default.test(n)}},88159:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=e(13366))&&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)}},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 tD},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 tU},Monad:function(){return tG},Pointed:function(){return tF},Traversable:function(){return t0},TraversableWithIndex:function(){return t1},URI:function(){return tR},Unfoldable:function(){return tK},Witherable:function(){return t5},Zero:function(){return tV},alt:function(){return to},altW:function(){return tu},ap:function(){return n2},apFirst:function(){return tA},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 P},chop:function(){return n_},chunksOf:function(){return nR},compact:function(){return n9},comprehension:function(){return nw},concat:function(){return nM},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 tP},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 w},fromEitherK:function(){return et},fromOption:function(){return S},fromOptionK:function(){return nS},fromPredicate:function(){return R},getDifferenceMagma:function(){return tC},getEq:function(){return tM},getIntersectionSemigroup:function(){return tk},getMonoid:function(){return tx},getOrd:function(){return tO},getSemigroup:function(){return tw},getShow:function(){return tS},getUnionMonoid:function(){return tE},getUnionSemigroup:function(){return tT},guard:function(){return tB},head:function(){return N},init:function(){return G},insertAt:function(){return ni},intercalate:function(){return ec},intersection:function(){return nT},intersperse:function(){return nm},isEmpty:function(){return h},isNonEmpty:function(){return m},isOutOfBound:function(){return A},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 M},matchLeft:function(){return T},matchLeftW:function(){return O},matchRight:function(){return C},matchRightW:function(){return k},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 F},scanRight:function(){return U},separate:function(){return n6},sequence:function(){return tg},size:function(){return D},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 V},takeRight:function(){return Y},traverse:function(){return tv},traverseWithIndex:function(){return ty},unfold:function(){return tI},union:function(){return nO},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]},w=function(n){return c.nM(n)?[]:[n.right]},x=function(n,t){return function(e){return m(e)?t(e):n()}},M=x,O=function(n,t){return function(e){return m(e)?t(f.head(e),f.tail(e)):n()}},T=O,E=T,k=function(n,t){return function(e){return m(e)?t(f.init(e),f.last(e)):n()}},C=k,W=C,P=function(n){return function(t){for(var e=[],r=0;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},F=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}},U=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}},D=function(n){return n.length},A=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 A(n,t)?nr(t):t.slice(0,n)}},Y=function(n){return function(t){return A(n,t)?nr(t):0===n?[]:t.slice(-n)}};function V(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 B=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(B(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(B(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 A(n,t)?c.YP:c.G(ei(n,t))}},na=function(n,t){return function(e){return A(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 nw(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)}},nM=nx;function nO(n){var t=f.union(n);return function(e,r){if(void 0===r){var i=nO(n);return function(n){return i(n,e)}}return m(e)&&m(r)?t(r)(e):m(e)?nr(e):nr(r)}}function nT(n){var t=ng(n);return function(e,r){if(void 0===r){var i=nT(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 nk=function(n,t){return(0,o.pipe)(n,n1(t))},nC=function(n,t){return(0,o.pipe)(n,n3(t))},nW=function(n,t){return(0,o.pipe)(n,n2(t))},nP=function(n,t){return(0,o.pipe)(n,tn(t))},nF=function(n,t){return(0,o.pipe)(n,n7(t))},nU=function(n,t){return(0,o.pipe)(n,tt(t))},nD=function(n,t){return(0,o.pipe)(n,tr(t))},nA=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))}},nV=function(n,t,e){return(0,o.pipe)(n,tm(t,e))},nB=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 n8(function(t){return(0,o.pipe)(n,n1(t))})},n8=(0,o.dual)(2,function(n,t){return(0,o.pipe)(n,P(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)})}},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=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,tw=function(){return{concat:function(n,t){return n.concat(t)}}},tx=function(){return{concat:tw().concat,empty:[]}},tM=l.getEq,tO=l.getOrd,tT=function(n){var t=nO(n);return{concat:function(n,e){return t(e)(n)}}},tE=function(n){return{concat:tT(n).concat,empty:[]}},tk=function(n){var t=nT(n);return{concat:function(n,e){return t(e)(n)}}},tC=function(n){var t=nE(n);return{concat:function(n,e){return t(e)(n)}}},tW={URI:tR,map:nk},tP=(0,a.flap)(tW),tF={URI:tR,of:nQ},tU={URI:tR,map:nk,mapWithIndex:nC},tD={URI:tR,map:nk,ap:nW},tA=(0,r.apFirst)(tD),tL=(0,r.apSecond)(tD),tN={URI:tR,map:nk,ap:nW,of:nQ},tj={URI:tR,map:nk,ap:nW,chain:n8},tq=(0,i.chainFirst)(tj),tG={URI:tR,map:nk,ap:nW,of:nQ,chain:n8},tK={URI:tR,unfold:tI},tY={URI:tR,map:nk,alt:nN},tV={URI:tR,zero:n0},tB=(0,s.guard)(tV,tF),tH={URI:tR,map:nk,ap:nW,of:nQ,alt:nN,zero:n0},tz={URI:tR,map:nk,extend:nz},tX={URI:tR,compact:n9,separate:n6},tJ={URI:tR,map:nk,compact:n9,separate:n6,filter:nP,filterMap:nF,partition:nU,partitionMap:nD},t$={URI:tR,map:nk,mapWithIndex:nC,compact:n9,separate:n6,filter:nP,filterMap:nF,partition:nU,partitionMap:nD,partitionMapWithIndex:nL,partitionWithIndex:nA,filterMapWithIndex:nB,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:nV},t0={URI:tR,map:nk,reduce:nj,foldMap:nq,reduceRight:nG,traverse:nX,sequence:tg},t1={URI:tR,map:nk,mapWithIndex:nC,reduce:nj,foldMap:nq,reduceRight:nG,reduceWithIndex:nK,foldMapWithIndex:nY,reduceRightWithIndex:nV,traverse:nX,sequence:tg,traverseWithIndex:nJ},t2=(0,d.witherDefault)(t0,tX),t8=(0,d.wiltDefault)(t0,tX),t5={URI:tR,map:nk,compact:n9,separate:n6,filter:nP,filterMap:nF,partition:nU,partitionMap:nD,reduce:nj,foldMap:nq,reduceRight:nG,traverse:nX,sequence:tg,wither:t2,wilt:t8},t3=l.chainRecDepthFirst,t4={URI:tR,map:nk,ap:nW,chain:n8,chainRec:n$},t7=l.chainRecBreadthFirst,t9={URI:tR,map:nk,ap:nW,chain:n8,chainRec:nZ},t6=(0,d.filterE)(t5),en={URI:tR,fromEither:w},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)(tD),eh=n8,em=f.range,ev=[],eg=f.cons,ey=f.snoc,eb=nh,e_={URI:tR,compact:n9,separate:n6,map:nk,ap:nW,of:nQ,chain:n8,filter:nP,filterMap:nF,partition:nU,partitionMap:nD,mapWithIndex:nC,partitionMapWithIndex:nL,partitionWithIndex:nA,filterMapWithIndex:nB,filterWithIndex:nH,alt:nN,zero:n0,unfold:tI,reduce:nj,foldMap:nq,reduceRight:nG,traverse:nX,sequence:tg,reduceWithIndex:nK,foldMapWithIndex:nY,reduceRightWithIndex:nV,traverseWithIndex:nJ,extend:nz,wither:t2,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 k},Contravariant:function(){return E},Functor:function(){return O},URI:function(){return M},bimap:function(){return w},const_:function(){return C},contramap:function(){return R},flap:function(){return T},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:M,_E:void 0,map:b,ap:function(t,e){return u(n.concat(t,e))}}}function g(n){var t=v(n);return{URI:M,_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,w(t,e))},I=function(n,t){return(0,r.pipe)(n,x(t))},R=function(){return r.unsafeCoerce},S=function(){return r.unsafeCoerce},w=function(n){return function(t){return u(n(t))}},x=function(n){return function(t){return u(n(t))}},M="Const",O={URI:M,map:b},T=(0,i.flap)(O),E={URI:M,contramap:y},k={URI:M,bimap:_,mapLeft:I},C={URI:M,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 V},Apply:function(){return Y},Bifunctor:function(){return nr},Chain:function(){return B},ChainRec:function(){return nf},Do:function(){return n0},Extend:function(){return nc},Foldable:function(){return $},FromEither:function(){return nd},Functor:function(){return A},Monad:function(){return H},MonadThrow:function(){return np},Pointed:function(){return q},Traversable:function(){return nn},URI:function(){return O},alt:function(){return nu},altW:function(){return ni},ap:function(){return K},apFirst:function(){return nw},apFirstW:function(){return nx},apS:function(){return n3},apSW:function(){return n4},apSecond:function(){return nM},apSecondW:function(){return nO},apW:function(){return G},as:function(){return L},asUnit:function(){return N},bimap:function(){return nt},bind:function(){return n8},bindTo:function(){return n1},bindW:function(){return n5},chain:function(){return ti},chainFirst:function(){return tu},chainFirstW:function(){return to},chainNullableK:function(){return nJ},chainOptionK:function(){return nP},chainOptionKW:function(){return nF},chainW:function(){return tr},duplicate:function(){return nC},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 nk},flattenW:function(){return nE},fold:function(){return n_},foldMap:function(){return X},foldW:function(){return ny},fromNullable:function(){return nB},fromNullableK:function(){return nX},fromOption:function(){return nh},fromOptionK:function(){return nW},fromPredicate:function(){return ns},getAltValidation:function(){return U},getApplicativeValidation:function(){return F},getApplyMonoid:function(){return tp},getApplySemigroup:function(){return tl},getCompactable:function(){return C},getEq:function(){return E},getFilterable:function(){return W},getOrElse:function(){return nR},getOrElseW:function(){return nI},getSemigroup:function(){return k},getShow:function(){return T},getValidation:function(){return th},getValidationMonoid:function(){return ts},getValidationSemigroup:function(){return td},getWitherable:function(){return P},isLeft:function(){return nm},isRight:function(){return nv},left:function(){return s},let:function(){return n2},liftNullable:function(){return nD},liftOption:function(){return nA},map:function(){return D},mapLeft:function(){return ne},match:function(){return nb},matchW:function(){return ng},of:function(){return j},orElse:function(){return nV},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 nT},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,D(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))},w=function(n,t){return(0,c.pipe)(n,nu(t))},x=function(n,t){return(0,c.pipe)(n,na(t))},M=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))})},O="Either",T=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))}}},k=function(n){return{concat:function(t,e){return nm(e)?t:nm(t)?e:h(n.concat(t.right,e.right))}}},C=function(n){var t=s(n.empty);return{URI:O,_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=C(n);return{URI:O,_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))}}},P=function(n){var t=W(n),e=C(n);return{URI:O,_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)}},F=function(n){return{URI:O,_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}},U=function(n){return{URI:O,_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}}},D=function(n){return function(t){return nm(t)?t:h(n(t.right))}},A={URI:O,map:v},L=(0,c.dual)(2,(0,f.as)(A)),N=(0,f.asUnit)(A),j=h,q={URI:O,of:j},G=function(n){return function(t){return nm(t)?t:nm(n)?n:h(t.right(n.right))}},K=G,Y={URI:O,map:v,ap:g},V={URI:O,map:v,ap:g,of:j},B={URI:O,map:v,ap:g,chain:m},H={URI:O,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:O,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:O,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:O,bimap:R,mapLeft:S},ni=function(n){return function(t){return nm(t)?n():t}},nu=ni,no={URI:O,map:v,alt:w},na=function(n){return function(t){return nm(t)?t:h(n(t))}},nc={URI:O,map:v,extend:x},nf={URI:O,map:v,ap:g,chain:m,chainRec:M},nl=s,np={URI:O,map:v,ap:g,of:j,chain:m,throwError:nl},nd={URI:O,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)(A),nw=(0,i.apFirst)(Y),nx=nw,nM=(0,i.apSecond)(Y),nO=nM,nT=(0,c.dual)(2,u.tap(B)),nE=m(c.identity),nk=nE,nC=na(c.identity),nW=(0,a.fromOptionK)(nd),nP=(0,a.chainOptionK)(nd,B),nF=nP,nU={fromEither:nd.fromEither},nD=l.uL(nU),nA=l.WE(nU),nL={flatMap:m},nN=l.ny(nU,nL),nj=l.hU(nU,nL),nq=(0,a.filterOrElse)(nd,B),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}},nV=nY,nB=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=nB(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)(A),n2=(0,f.let)(A),n8=u.bind(B),n5=n8,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=nT,to=nT;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:O,map:v,of:j,ap:g,chain:m,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:Q,bimap:R,mapLeft:S,alt:w,extend:x,chainRec:M,throwError:nl},tl=(0,i.getApplySemigroup)(Y),tp=(0,r.getApplicativeMonoid)(V),td=function(n,t){return(0,i.getApplySemigroup)(F(n))(t)},ts=function(n,t){return(0,r.getApplicativeMonoid)(F(n))(t)};function th(n){return{URI:O,_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:M,throwError:nl,ap:F(n).ap,alt:U(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 nw},elem:function(){return m},empty:function(){return nx},filter:function(){return z},filterMap:function(){return X},filterMapWithIndex:function(){return D},filterWithIndex:function(){return A},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 k},getShow:function(){return p},getTraversableWithIndex:function(){return nv},getUnionMonoid:function(){return nr},getUnionSemigroup:function(){return ne},getWitherable:function(){return na},insertAt:function(){return nM},intersection:function(){return nS},isEmpty:function(){return s},isSubmap:function(){return T},keys:function(){return v},lookup:function(){return O},lookupWithKey:function(){return M},map:function(){return J},mapWithIndex:function(){return $},map_:function(){return nO},member:function(){return h},modifyAt:function(){return w},partition:function(){return Z},partitionMap:function(){return Q},partitionMapWithIndex:function(){return F},partitionWithIndex:function(){return U},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 C},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=M(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=M(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=w(n);return function(n,e){return t(n,function(){return e})}},w=function(n){var t=M(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=O(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 M(n){return function(t,e){if(void 0===e){var r,i=M(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 O=a.lookup,T=a.isSubmap,E=a.getEq;function k(n,t){var e=M(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 C=function(n,t){return new Map([[n,t]])};function W(n,t,e){return function(r){var i=M(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 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},F=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 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 o=e.value,a=o[0],c=n(a,o[1]);u.pC(c)&&r.set(a,c.value)}return r}};function A(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 P(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 V(n,function(n,e){return t(e)})},G=function(n,t){return B(n,function(n,e){return t(e)})},K=function(n,t){return(0,r.pipe)(n,A(t))},Y=function(n,t){return(0,r.pipe)(n,D(t))},V=function(n,t){return(0,r.pipe)(n,U(t))},B=function(n,t){return(0,r.pipe)(n,F(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 P(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=nw(n);return{concat:function(n,e){return t(e)(n)}}}};function no(){return{URI:nt,_E:void 0,map:L,mapWithIndex:P,compact:H,separate:nn,filter:N,filterMap:j,partition:q,partitionMap:G,partitionMapWithIndex:B,partitionWithIndex:V,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:P,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: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,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)}}},nw=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,nM=I,nO=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 M},monoidString:function(){return w},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)())},w={concat:o.semigroupString.concat,empty:""},x={concat:o.semigroupSum.concat,empty:0},M={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 nD},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 nU},Monad:function(){return nG},Pointed:function(){return nF},Traversable:function(){return nV},TraversableWithIndex:function(){return nB},URI:function(){return nO},alt:function(){return np},altW:function(){return nl},ap:function(){return nd},apFirst:function(){return nA},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 C},concatAll:function(){return n4},concatW:function(){return k},cons:function(){return tl},copy:function(){return N},duplicate:function(){return nm},extend:function(){return nh},extract:function(){return nM},filter:function(){return to},filterWithIndex:function(){return ta},flap:function(){return nP},flatMap:function(){return ns},flatten:function(){return nv},fold:function(){return ts},foldMap:function(){return B},foldMapWithIndex:function(){return V},fromArray:function(){return w},fromReadonlyNonEmptyArray:function(){return S},getEq:function(){return nk},getSemigroup:function(){return nE},getShow:function(){return nT},getUnionSemigroup:function(){return nC},group:function(){return P},groupBy:function(){return F},groupSort:function(){return tu},head:function(){return n0},init:function(){return n8},insertAt:function(){return D},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 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 O},reduce:function(){return nb},reduceRight:function(){return nI},reduceRightWithIndex:function(){return nR},reduceWithIndex:function(){return n_},replicate:function(){return M},reverse:function(){return W},rotate:function(){return R},sequence:function(){return nw},snoc:function(){return tp},sort:function(){return U},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 T},unsafeInsertAt:function(){return g},unsafeUpdateAt:function(){return y},unsnoc:function(){return tf},unzip:function(){return G},updateAt:function(){return A},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 U(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,C(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,C(o))}},S=a.r1,w=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}},M=function(n){return x(function(){return n})},O=function(n,t){return n<=t?x(function(t){return n+t})(t-n+1):[n]},T=function(n){return[n0(n),n1(n)]},E=function(n){return[n8(n),n2(n)]};function k(n){return function(t){return t.concat(n)}}function C(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 P(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 F=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}},U=function(n){return function(t){return t.slice().sort(n.compare)}},D=function(n,t){return function(e){return n<0||n>e.length?a.YP:a.G(g(n,t,e))}},A=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)}},V=f.foldMapWithIndex,B=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=B(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=V(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,k(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)})}},nw=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}}},nM=f.head,nO="NonEmptyArray",nT=f.getShow,nE=function(){return{concat:C}},nk=f.getEq,nC=function(n){var t=I(n);return{concat:function(n,e){return t(e)(n)}}},nW={URI:nO,map:$},nP=(0,o.flap)(nW),nF={URI:nO,of:j},nU={URI:nO,map:$,mapWithIndex:Z},nD={URI:nO,map:$,ap:Q},nA=(0,r.apFirst)(nD),nL=(0,r.apSecond)(nD),nN={URI:nO,map:$,ap:Q,of:j},nj={URI:nO,map:$,ap:Q,chain:ns},nq=(0,i.chainFirst)(nj),nG={URI:nO,map:$,ap:Q,of:j,chain:ns},nK={URI:nO,reduce:nt,foldMap:ne,reduceRight:nr},nY={URI:nO,reduce:nt,foldMap:ne,reduceRight:nr,reduceWithIndex:no,foldMapWithIndex:na,reduceRightWithIndex:nc},nV={URI:nO,map:$,reduce:nt,foldMap:ne,reduceRight:nr,traverse:ni,sequence:nw},nB={URI:nO,map:$,mapWithIndex:Z,reduce:nt,foldMap:ne,reduceRight:nr,traverse:ni,sequence:nw,reduceWithIndex:no,foldMapWithIndex:na,reduceRightWithIndex:nc,traverseWithIndex:nf},nH={URI:nO,map:$,alt:nu},nz={URI:nO,map:$,extend:nn,extract:nM},nX=j(a.F4),nJ=(0,o.bindTo)(nW),n$=(0,o.let)(nW),nZ=(0,i.bind)(nj),nQ=(0,r.apS)(nD),n0=f.head,n1=function(n){return n.slice(1)},n2=f.last,n8=function(n){return n.slice(0,-1)},n5=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(n8(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)(n8(t),v(n(n2(t))))}},te=function(n){return tt(function(){return n})},tr=f.intercalate,ti=ns;function tu(n){var t=U(n),e=P(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 w(t.filter(function(t,e){return n(e,t)}))}},tc=T,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:nO,of:j,map:$,mapWithIndex:Z,ap:Q,chain:ns,extend:nn,extract:nM,reduce:nt,foldMap:ne,reduceRight:nr,traverse:ni,sequence:nw,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 V},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 nO},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 n8},chain:function(){return tr},chainEitherK:function(){return nB},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!nC(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 B},flatten:function(){return nq},fold:function(){return nU},foldMap:function(){return J},foldW:function(){return nP},fromEither:function(){return nT},fromEitherK:function(){return nV},fromNullable:function(){return nz},fromNullableK:function(){return n$},fromPredicate:function(){return g},getApplyMonoid:function(){return tf},getApplySemigroup:function(){return tc},getEq:function(){return F},getFirstMonoid:function(){return tl},getLastMonoid:function(){return tp},getLeft:function(){return y},getMonoid:function(){return D},getOrElse:function(){return nA},getOrElseW:function(){return nD},getOrd:function(){return U},getRefinement:function(){return tu},getRight:function(){return b},getShow:function(){return P},guard:function(){return nu},isNone:function(){return nC},isSome:function(){return nk},let:function(){return n5},map:function(){return A},mapNullable:function(){return to},match:function(){return nF},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 nM},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 nw},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,A(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))}},w=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))}},M=function(n,t){return(0,a.pipe)(n,nt(t))},O=function(n,t){return(0,a.pipe)(n,ns(t))},T=function(n,t){return(0,a.pipe)(n,nh(t))},E=function(n,t){return(0,a.pipe)(n,na(t))},k=function(n,t){return(0,a.pipe)(n,nm(t))},C=function(n,t){return(0,a.pipe)(n,nv(t))},W="Option",P=function(n){return{show:function(t){return nC(t)?"none":"some(".concat(n.show(t.value),")")}}},F=function(n){return{equals:function(t,e){return t===e||(nC(t)?nC(e):!nC(e)&&n.equals(t.value,e.value))}}},U=function(n){return{equals:F(n).equals,compare:function(t,e){return t===e?0:nk(t)?nk(e)?n.compare(t.value,e.value):1:-1}}},D=function(n){return{concat:function(t,e){return nC(t)?e:nC(e)?t:v(n.concat(t.value,e.value))},empty:m}},A=function(n){return function(t){return nC(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 nC(t)?m:nC(n)?m:v(t.value(n.value))}},Y={URI:W,map:_,ap:I},V={URI:W,map:_,ap:I,of:q},B=(0,a.dual)(2,function(n,t){return nC(n)?m:t(n.value)}),H={URI:W,map:_,ap:I,chain:B},z={URI:W,map:_,ap:I,of:q,chain:B},X=function(n,t){return function(e){return nC(e)?n:t(n,e.value)}},J=function(n){return function(t){return function(e){return nC(e)?n.empty:t(e.value)}}},$=function(n,t){return function(e){return nC(e)?n:t(e.value,n)}},Z={URI:W,reduce:R,foldMap:S,reduceRight:w},Q=(0,a.dual)(2,function(n,t){return nC(n)?t():n}),nn=Q,nt=Q,ne={URI:W,map:_,alt:M},nr=function(){return m},ni={URI:W,zero:nr},nu=(0,h.guard)(ni,G),no={URI:W,map:_,ap:I,of:q,alt:M,zero:nr},na=function(n){return function(t){return nC(t)?m:v(n(t))}},nc={URI:W,map:_,extend:E},nf=B(a.identity),nl=(0,d.separated)(m,m),np=function(n){return nC(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 nC(t)?m:n(t.value)?t:m}},nh=function(n){return function(t){return nC(t)?m:n(t.value)}},nm=function(n){return function(t){return(0,d.separated)(O(t,(0,l.not)(n)),O(t,n))}},nv=function(n){return(0,a.flow)(A(n),np)},ng={URI:W,map:_,compact:nf,separate:np,filter:O,filterMap:T,partition:k,partitionMap:C},ny=function(n){return function(t){return function(e){return nC(e)?n.of(m):n.map(t(e.value),v)}}},nb=function(n){return function(t){return nC(t)?n.of(m):n.map(t.value,v)}},n_={URI:W,map:_,reduce:R,foldMap:S,reduceRight:w,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)}}},nw=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:w,traverse:x,sequence:nb,compact:nf,separate:np,filter:O,filterMap:T,partition:k,partitionMap:C,wither:nI,wilt:nR},nM=function(){return m},nO={URI:W,map:_,ap:I,of:q,chain:B,throwError:nM},nT=b,nE={URI:W,fromEither:nT},nk=f.pC,nC=function(n){return"None"===n._tag},nW=function(n,t){return function(e){return nC(e)?n():t(e.value)}},nP=nW,nF=nW,nU=nF,nD=function(n){return function(t){return nC(t)?n():t.value}},nA=nD,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),nV=(0,o.fromEitherK)(nE),nB=(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 nC(t)?m:nz(n(t.value))}},nQ=nF(a.constNull,a.identity),n0=nF(a.constUndefined,a.identity),n1=function(n){return function(t){return!nC(t)&&n(t.value)}},n2=q(f.F4),n8=(0,c.bindTo)(L),n5=(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(nC(e))return m;for(var r=[e.value],i=1;i<t.length;i++){var u=n(i,t[i]);if(nC(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=B,ti=nG;function tu(n){return function(t){return nk(n(t))}}var to=nZ,ta={URI:W,map:_,of:q,ap:I,chain:B,reduce:R,foldMap:S,reduceRight:w,traverse:x,sequence:nb,zero:nr,alt:M,extend:E,compact:nf,separate:np,filter:O,filterMap:T,partition:k,partitionMap:C,wither:nI,wilt:nR,throwError:nM},tc=(0,i.getApplySemigroup)(Y),tf=(0,r.getApplicativeMonoid)(V),tl=function(){return D((0,p.first)())},tp=function(){return D((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 w},gt:function(){return g},leq:function(){return y},lt:function(){return v},max:function(){return I},min:function(){return _},ord:function(){return M},ordBoolean:function(){return T},ordDate:function(){return C},ordNumber:function(){return k},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))}}},w=a,x=c,M=s,O={equals:r.eqStrict.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},T=O,E=O,k=O,C=(0,i.pipe)(k,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 tV},Alternative:function(){return tz},Applicative:function(){return tj},Apply:function(){return tA},Chain:function(){return tq},ChainRecBreadthFirst:function(){return t4},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 tP},FunctorWithIndex:function(){return tD},Monad:function(){return tG},Pointed:function(){return tU},Traversable:function(){return t1},TraversableWithIndex:function(){return t2},URI:function(){return tS},Unfoldable:function(){return tY},Witherable:function(){return t6},Zero:function(){return tB},_chainRecBreadthFirst:function(){return nQ},_chainRecDepthFirst:function(){return nZ},alt:function(){return n8},altW:function(){return n2},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 D},chop:function(){return nI},chunksOf:function(){return nS},compact:function(){return tr},comprehension:function(){return nx},concat:function(){return nO},concatW:function(){return nM},cons:function(){return e_},deleteAt:function(){return na},difference:function(){return nk},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 tF},flatMap:function(){return n3},flatten:function(){return n4},foldLeft:function(){return W},foldMap:function(){return ts},foldMapWithIndex:function(){return tp},foldRight:function(){return U},fromArray:function(){return ea},fromEither:function(){return O},fromEitherK:function(){return ee},fromOption:function(){return M},fromOptionK:function(){return nw},fromPredicate:function(){return x},getDifferenceMagma:function(){return tW},getEq:function(){return tO},getIntersectionSemigroup:function(){return tC},getMonoid:function(){return tM},getOrd:function(){return tT},getSemigroup:function(){return tx},getShow:function(){return tw},getUnionMonoid:function(){return tk},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 C},matchLeftW:function(){return k},matchRight:function(){return F},matchRightW:function(){return P},matchW:function(){return T},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 w},reverse:function(){return nf},rights:function(){return nl},rotate:function(){return ng},scanLeft:function(){return A},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 V},takeLeftWhile:function(){return H},takeRight:function(){return B},toArray:function(){return eo},traverse:function(){return tg},traverseWithIndex:function(){return tb},unfold:function(){return tR},union:function(){return nT},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)},w=function(n,t){return S(n,function(){return t})};function x(n){return function(t){return n(t)?[t]:ec}}var M=function(n){return f.Wi(n)?ec:[n.value]},O=function(n){return f.nM(n)?ec:[n.right]},T=function(n,t){return function(e){return y(e)?t(e):n()}},E=T,k=function(n,t){return function(e){return y(e)?t(d.head(e),d.tail(e)):n()}},C=k,W=C,P=function(n,t){return function(e){return y(e)?t(d.init(e),d.last(e)):n()}},F=P,U=F,D=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}},A=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},V=function(n){return function(t){return j(n,t)?t:0===n?ec:t.slice(0,n)}},B=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}},nw=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return M(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 nM=function(n){return function(t){return g(t)?n:g(n)?t:t.concat(n)}},nO=nM;function nT(n){var t=d.union(n);return function(e,r){if(void 0===r){var i=nT(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 nk(n){var t=ny(n);return function(e,r){if(void 0===r){var i=nk(n);return function(n){return i(n,e)}}return e.filter(function(n){return!t(n,r)})}}var nC=function(n,t){return(0,a.pipe)(n,n7(t))},nW=function(n,t){return(0,a.pipe)(n,n9(t))},nP=function(n,t){return(0,a.pipe)(n,n5(t))},nF=function(n,t){return(0,a.pipe)(n,tn(t))},nU=function(n,t){return(0,a.pipe)(n,te(t))},nD=function(n,t){return(0,a.pipe)(n,ti(t))},nA=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))},nV=function(n){var t=tp(n);return function(n,e){return(0,a.pipe)(n,t(e))}},nB=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,n1=function(){return ec},n2=function(n){return function(t){return t.concat(n())}},n8=n2,n5=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,D(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",tw=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)}}},tM=function(){return{concat:tx().concat,empty:ec}},tO=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])})})},tT=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=nT(n);return{concat:function(n,e){return t(e)(n)}}},tk=function(n){return{concat:tE(n).concat,empty:ec}},tC=function(n){var t=nE(n);return{concat:function(n,e){return t(e)(n)}}},tW=function(n){var t=nk(n);return{concat:function(n,e){return t(e)(n)}}},tP={URI:tS,map:nC},tF=(0,c.flap)(tP),tU={URI:tS,of:n0},tD={URI:tS,map:nC,mapWithIndex:nW},tA={URI:tS,map:nC,ap:nP},tL=(0,r.apFirst)(tA),tN=(0,r.apSecond)(tA),tj={URI:tS,map:nC,ap:nP,of:n0},tq={URI:tS,map:nC,ap:nP,chain:n3},tG={URI:tS,map:nC,ap:nP,of:n0,chain:n3},tK=(0,i.chainFirst)(tq),tY={URI:tS,unfold:tR},tV={URI:tS,map:nC,alt:nj},tB={URI:tS,zero:n1},tH=(0,m.guard)(tB,tU),tz={URI:tS,map:nC,ap:nP,of:n0,alt:nj,zero:n1},tX={URI:tS,map:nC,extend:nX},tJ={URI:tS,compact:tr,separate:n6},t$={URI:tS,map:nC,compact:tr,separate:n6,filter:nF,filterMap:nU,partition:nD,partitionMap:nA},tZ={URI:tS,map:nC,mapWithIndex:nW,compact:tr,separate:n6,filter:nF,filterMap:nU,partition:nD,partitionMap:nA,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:nV,reduceRightWithIndex:nB},t1={URI:tS,map:nC,reduce:nq,foldMap:nG,reduceRight:nK,traverse:nJ,sequence:ty},t2={URI:tS,map:nC,mapWithIndex:nW,reduce:nq,foldMap:nG,reduceRight:nK,reduceWithIndex:nY,foldMapWithIndex:nV,reduceRightWithIndex:nB,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:nC,ap:nP,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:nC,ap:nP,chain:n3,chainRec:nQ},t7=(0,h.witherDefault)(t1,tJ),t9=(0,h.wiltDefault)(t1,tJ),t6={URI:tS,map:nC,compact:tr,separate:n6,filter:nF,filterMap:nU,partition:nD,partitionMap:nA,reduce:nq,foldMap:nG,reduceRight:nK,traverse:nJ,sequence:ty,wither:t7,wilt:t9},en=(0,h.filterE)(t6),et={URI:tS,fromEither:O},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)(tP),em=(0,c.let)(tP),ev=(0,i.bind)(tq),eg=(0,r.apS)(tA),ey=n3,eb=d.range,e_=d.cons,eI=d.snoc,eR=nm,eS={URI:tS,compact:tr,separate:n6,map:nC,ap:nP,of:n0,chain:n3,filter:nF,filterMap:nU,partition:nD,partitionMap:nA,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:nV,reduceRightWithIndex:nB,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 nM},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 A},filterWithIndex:function(){return L},flap:function(){return nf},foldMap:function(){return nh},foldMapWithIndex:function(){return ny},fromFoldable:function(){return P},fromMap:function(){return l},getDifferenceMagma:function(){return no},getEq:function(){return k},getFilterableWithIndex:function(){return na},getFoldable:function(){return nv},getFoldableWithIndex:function(){return n_},getFunctorWithIndex:function(){return nl},getIntersectionSemigroup:function(){return nu},getMonoid:function(){return C},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 nO},intersection:function(){return nx},isEmpty:function(){return h},isSubmap:function(){return T},keys:function(){return v},lookup:function(){return O},lookupWithKey:function(){return M},map:function(){return $},mapWithIndex:function(){return Z},member:function(){return m},modifyAt:function(){return w},partition:function(){return Q},partitionMap:function(){return nn},partitionMapWithIndex:function(){return U},partitionWithIndex:function(){return D},pop:function(){return x},readonlyMap:function(){return nT},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 nw},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=O(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=M(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=M(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=w(n);return function(n,e){return t(n,function(){return e})}},w=function(n){var t=M(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=O(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 M(n){return function(t,e){if(void 0===e){var r,i=M(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 O(n){var t=M(n);return function(e,r){if(void 0===r){var u=O(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 T(n,t){var e=M(n);return function(r,i){if(void 0===i){var u,a=T(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 k(n,t){var e=T(n,t);return(0,r.fromEquals)(function(n,t){return e(n,t)&&e(t,n)})}function C(n,t){var e=M(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 P(n,t,e){return function(r){var i=M(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 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},U=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 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 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 F(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 V(n,function(n,e){return t(e)})},G=function(n,t){return B(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))},V=function(n,t){return(0,i.pipe)(n,A(t))},B=function(n,t){return(0,i.pipe)(n,D(t))},H=function(n,t){return(0,i.pipe)(n,U(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 F(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=nw(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=nM(n);return{concat:function(n,e){return t(e)(n)}}}};function na(){return{URI:ne,_E:void 0,map:N,mapWithIndex:F,compact:z,separate:nt,filter:j,filterMap:q,partition:G,partitionMap:K,partitionMapWithIndex:H,partitionWithIndex:B,filterMapWithIndex:V,filterWithIndex:Y}}var nc={URI:ne,map:N},nf=(0,u.flap)(nc),nl=function(){return{URI:ne,_E:void 0,map:N,mapWithIndex:F}},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: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,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:F,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 nw=function(n,t){var e=O(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=O(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}}},nM=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}}},nO=I,nT={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 nD},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 nU},Monad:function(){return nG},Pointed:function(){return nF},Traversable:function(){return nV},TraversableWithIndex:function(){return nB},URI:function(){return nO},alt:function(){return nf},altW:function(){return nc},ap:function(){return nl},apFirst:function(){return nA},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 V},chunksOf:function(){return H},concat:function(){return P},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 nM},filter:function(){return to},filterWithIndex:function(){return ta},flap:function(){return nP},flatMap:function(){return np},flatten:function(){return nh},fold:function(){return th},foldMap:function(){return ny},foldMapWithIndex:function(){return nI},fromArray:function(){return C},fromReadonlyArray:function(){return x},getEq:function(){return nk},getSemigroup:function(){return nE},getShow:function(){return nT},getUnionSemigroup:function(){return nC},group:function(){return U},groupBy:function(){return D},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 n2},let:function(){return n$},makeBy:function(){return M},map:function(){return nm},mapWithIndex:function(){return nv},matchLeft:function(){return n7},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 T},readonlyNonEmptyArray:function(){return tm},reduce:function(){return ng},reduceRight:function(){return nb},reduceRightWithIndex:function(){return nR},reduceWithIndex:function(){return n_},replicate:function(){return O},reverse:function(){return F},rotate:function(){return w},sequence:function(){return nw},snoc:function(){return tp},sort:function(){return A},sortBy:function(){return R},splitAt:function(){return B},tail:function(){return n1},traverse:function(){return nS},traverseWithIndex:function(){return nx},unappend:function(){return k},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 A(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,P(n)))}}},w=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 w(r-e)(t);var i=B(-r)(t),u=i[0],a=i[1];return(0,o.pipe)(a,P(u))}},x=function(n){return s(n)?c.G(n):c.YP},M=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}},O=function(n){return M(function(){return n})},T=function(n,t){return n<=t?M(function(t){return n+t})(t-n+1):[n]},E=function(n){return[n0(n),n1(n)]},k=function(n){return[n8(n),n2(n)]},C=function(n){return x(n.slice())};function W(n){return function(t){return t.concat(n)}}function P(n,t){return t?n.concat(t):function(t){return t.concat(n)}}var F=function(n){return 1===n.length?n:p([n2(n)],n.slice(0,-1).reverse(),!0)};function U(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 D=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}},A=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}},V=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}},B=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 V(B(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)})}},nw=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}}},nM=c.YM,nO="ReadonlyNonEmptyArray",nT=function(n){return{show:function(t){return"[".concat(t.map(n.show).join(", "),"]")}}},nE=function(){return{concat:P}},nk=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])})})},nC=function(n){var t=S(n);return{concat:function(n,e){return t(e)(n)}}},nW={URI:nO,map:z},nP=(0,a.flap)(nW),nF={URI:nO,of:na},nU={URI:nO,map:z,mapWithIndex:X},nD={URI:nO,map:z,ap:J},nA=(0,r.apFirst)(nD),nL=(0,r.apSecond)(nD),nN={URI:nO,map:z,ap:J,of:na},nj={URI:nO,map:z,ap:J,chain:np},nq=(0,i.chainFirst)(nj),nG={URI:nO,map:z,ap:J,of:na,chain:np},nK={URI:nO,reduce:Z,foldMap:Q,reduceRight:nn},nY={URI:nO,reduce:Z,foldMap:Q,reduceRight:nn,reduceWithIndex:nr,foldMapWithIndex:ni,reduceRightWithIndex:nu},nV={URI:nO,map:z,reduce:Z,foldMap:Q,reduceRight:nn,traverse:nt,sequence:nw},nB={URI:nO,map:z,mapWithIndex:X,reduce:Z,foldMap:Q,reduceRight:nn,traverse:nt,sequence:nw,reduceWithIndex:nr,foldMapWithIndex:ni,reduceRightWithIndex:nu,traverseWithIndex:no},nH={URI:nO,map:z,alt:ne},nz={URI:nO,map:z,extend:$,extract:nM},nX=na(c.F4),nJ=(0,a.bindTo)(nW),n$=(0,a.let)(nW),nZ=(0,i.bind)(nj),nQ=(0,r.apS)(nD),n0=nM,n1=c.Gb,n2=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)}},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(n8(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)(n8(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=A(n),e=U(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=k;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,P([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:nO,of:na,map:z,mapWithIndex:X,ap:J,chain:np,extend:$,extract:nM,reduce:Z,foldMap:Q,reduceRight:nn,traverse:nt,sequence:nw,reduceWithIndex:nr,foldMapWithIndex:ni,reduceRightWithIndex:nu,traverseWithIndex:no,alt:ne}},97054:function(n,t,e){e.r(t),e.d(t,{Compactable:function(){return nF},Filterable:function(){return nU},FilterableWithIndex:function(){return nD},Foldable:function(){return nY},FoldableWithIndex:function(){return nV},Functor:function(){return nE},FunctorWithIndex:function(){return nC},Traversable:function(){return nB},TraversableWithIndex:function(){return nH},URI:function(){return nM},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 nw},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 O},every:function(){return H},filter:function(){return ng},filterMap:function(){return ny},filterMapWithIndex:function(){return q},filterWithIndex:function(){return G},flap:function(){return nk},foldMap:function(){return nR},foldMapWithIndex:function(){return C},fromEntries:function(){return B},fromFoldable:function(){return K},fromFoldableMap:function(){return Y},fromRecord:function(){return l},getDifferenceMagma:function(){return nK},getEq:function(){return nO},getFoldable:function(){return nW},getFoldableWithIndex:function(){return nP},getIntersectionSemigroup:function(){return nG},getMonoid:function(){return nT},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 nA},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 M},map:function(){return E},mapWithIndex:function(){return T},modifyAt:function(){return S},partition:function(){return nb},partitionMap:function(){return n_},partitionMapWithIndex:function(){return N},partitionWithIndex:function(){return j},pop:function(){return w},readonlyRecord:function(){return nQ},reduce:function(){return nI},reduceRight:function(){return nS},reduceRightWithIndex:function(){return W},reduceWithIndex:function(){return k},separate:function(){return nx},sequence:function(){return D},singleton:function(){return P},size:function(){return d},some:function(){return z},toEntries:function(){return V},toReadonlyArray:function(){return g},toRecord:function(){return p},toUnfoldable:function(){return y},traverse:function(){return U},traverseWithIndex:function(){return F},union:function(){return X},updateAt:function(){return R},upsertAt:function(){return b},wilt:function(){return L},wither:function(){return A}});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 w(n){var t=I(n);return function(e){var r=M(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 M(n,t){return void 0===t?function(t){return M(n,t)}:o.e$.call(t,n)?o.G(t[n]):o.YP}var O={};function T(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 T(function(t,e){return n(e)})}function k(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(2===n.length)return k(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 C(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 C(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 P=function(n,t){var e;return(e={})[n]=t,e};function F(n){var t=nv(c.Ord)(n);return function(n){return function(e){return t(e,n)}}}function U(n){var t=nh(c.Ord)(n);return function(n){return function(e){return t(e,n)}}}function D(n){return nm(c.Ord)(n)}var A=function(n){var t=U(n);return function(e){return function(r){return n.map((0,i.pipe)(r,t(e)),nw)}}},L=function(n){var t=U(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 V=g,B=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 O;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,T(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=k(n);return function(n,e,r){return(0,i.pipe)(n,t(e,r))}},nc=function(n){var t=C(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(O);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=k(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=C(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 nw=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)},nM="ReadonlyRecord";function nO(n){var t=x(n);return(0,r.fromEquals)(function(n,e){return t(n)(e)&&t(e)(n)})}function nT(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:O}}var nE={URI:nM,map:Z},nk=(0,u.flap)(nE),nC={URI:nM,map:Z,mapWithIndex:Q},nW=function(n){return{URI:nM,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n)}},nP=function(n){return{URI:nM,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n),reduceWithIndex:na(n),foldMapWithIndex:nc(n),reduceRightWithIndex:nf(n)}},nF={URI:nM,compact:nw,separate:nx},nU={URI:nM,map:Z,compact:nw,separate:nx,filter:nr,filterMap:ni,partition:nu,partitionMap:no},nD={URI:nM,map:Z,mapWithIndex:Q,compact:nw,separate:nx,filter:nr,filterMap:ni,partition:nu,partitionMap:no,filterMapWithIndex:nd,filterWithIndex:ns,partitionMapWithIndex:nl,partitionWithIndex:np},nA=function(n){return{URI:nM,map:Z,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n),traverse:nh(n),sequence:nm(n)}},nL=function(n){return{URI:nM,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=nA(n);return{URI:nM,map:Z,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n),traverse:t.traverse,sequence:t.sequence,compact:nw,separate:nx,filter:nr,filterMap:ni,partition:nu,partitionMap:no,wither:(0,f.witherDefault)(t,nF),wilt:(0,f.wiltDefault)(t,nF)}},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:O}},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:nM,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord)},nV={URI:nM,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord),reduceWithIndex:na(c.Ord),foldMapWithIndex:nc(c.Ord),reduceRightWithIndex:nf(c.Ord)},nB={URI:nM,map:Z,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord),traverse:nh(c.Ord),sequence:D},nH={URI:nM,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:D,traverseWithIndex:nv(c.Ord)},nz=(0,f.witherDefault)(nB,nF),nX=(0,f.wiltDefault)(nB,nF),nJ={URI:nM,map:Z,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord),traverse:nh(c.Ord),sequence:D,compact:nw,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:nM,map:Z,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord),traverse:nh(c.Ord),sequence:D,compact:nw,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 D},chain:function(){return d},compact:function(){return x},difference:function(){return y},elem:function(){return F},empty:function(){return T},every:function(){return W},filter:function(){return s},filterMap:function(){return O},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 A},getUnionMonoid:function(){return j},getUnionSemigroup:function(){return N},insert:function(){return R},intersection:function(){return v},isEmpty:function(){return E},isSubset:function(){return P},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 M},singleton:function(){return c},size:function(){return k},some:function(){return C},toReadonlyArray:function(){return U},toSet:function(){return l},toggle:function(){return w},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=F(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=F(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=F(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=F(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=F(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 T;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=F(n),l=F(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=F(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=U(n);return function(n,e){return function(r){return t(r).reduce(e,n)}}}function _(n,t){var e=U(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=U(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=F(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)}}},w=function(n){var t=F(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 O(n)(i.identity)};function M(n,t){return function(e){var r=F(n),i=F(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 O(n){var t=F(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 T=new Set,E=function(n){return 0===n.size},k=function(n){return n.size},C=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)(C((0,u.not)(n)))}function P(n){var t=F(n);return function(e,r){if(void 0===r){var i=P(n);return function(n){return i(n,e)}}return W(function(n){return t(n,r)})(e)}}function F(n){return function(t,e){if(void 0===e){var r,i=F(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 U=function(n){return function(t){var e=[];return t.forEach(function(n){return e.push(n)}),e.sort(n.compare)}},D="ReadonlySet";function A(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=P(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:T}},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 O},getDualSemigroup:function(){return S},getFirstSemigroup:function(){return _},getFunctionSemigroup:function(){return k},getIntercalateSemigroup:function(){return M},getJoinSemigroup:function(){return w},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 T},semigroupAny:function(){return E},semigroupProduct:function(){return P},semigroupString:function(){return C},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,w=c,x=a,M=s;function O(n){var t=v(n);return function(n,e){return void 0===e?t(n):t(n)(e)}}var T={concat:function(n,t){return n&&t}},E={concat:function(n,t){return n||t}},k=r.getSemigroup,C={concat:function(n,t){return n+t}},W={concat:function(n,t){return n+t}},P={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 T},difference:function(){return m},elem:function(){return A},empty:function(){return C},every:function(){return U},filter:function(){return l},filterMap:function(){return k},foldMap:function(){return I},fromArray:function(){return O},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 w},intersection:function(){return s},isEmpty:function(){return W},isSubset:function(){return D},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 P},some:function(){return F},subset:function(){return N},toArray:function(){return L},toggle:function(){return M},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=A(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=A(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=A(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=A(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=A(n),l=A(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=A(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 w(n){var t=A(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)}}},M=function(n){var t=A(n),e=x(n),r=w(n);return function(n){return function(i){return(t(n,i)?e:r)(n)(i)}}},O=function(n){return function(t){for(var e=t.length,r=new Set,i=A(n),u=0;u<e;u++){var o=t[u];i(o,r)||r.add(o)}return r}},T=function(n){return k(n)(r.identity)};function E(n,t){return function(e){var r=A(n),i=A(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 k(n){var t=A(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 C=new Set,W=function(n){return 0===n.size},P=function(n){return n.size},F=i.some,U=i.every,D=i.isSubset,A=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 T},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 C},flip:function(){return y},flow:function(){return b},getBooleanAlgebra:function(){return i},getEndomorphismMonoid:function(){return k},getMonoid:function(){return o},getRing:function(){return c},getSemigroup:function(){return u},getSemiring:function(){return a},hole:function(){return O},identity:function(){return l},increment:function(){return I},not:function(){return E},pipe:function(){return M},tuple:function(){return _},tupled:function(){return w},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 w(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 M(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 O=S,T=function(n,t){return t};function E(n){return function(t){return!n(t)}}var k=function(){return{concat:function(n,t){return b(n,t)},empty:l}},C=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 tk},eitherT:function(){return I},endomorphism:function(){return t5},eq:function(){return t3},extend:function(){return R},field:function(){return S},filterable:function(){return w},filterableWithIndex:function(){return x},foldable:function(){return M},foldableWithIndex:function(){return O},fromEither:function(){return eb},fromIO:function(){return T},fromReader:function(){return k},fromState:function(){return W},fromTask:function(){return P},fromThese:function(){return F},function:function(){return n8},functor:function(){return tp},functorWithIndex:function(){return U},group:function(){return D},heytingAlgebra:function(){return A},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 V},joinSemilattice:function(){return B},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 fP},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 C},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 nw},taskThese:function(){return nO},these:function(){return nx},theseT:function(){return nM},traced:function(){return nT},traversable:function(){return nE},traversableWithIndex:function(){return nk},tree:function(){return nC},tuple:function(){return nW},unfoldable:function(){return nP},validationT:function(){return nF},void:function(){return nU},witherable:function(){return Ir},writer:function(){return nD},writerT:function(){return nA},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 n1},SemigroupAll:function(){return n$},SemigroupAny:function(){return nZ},Show:function(){return n2},fold:function(){return nz},foldW:function(){return nB},isBoolean:function(){return nY},match:function(){return nH},matchW:function(){return nV}});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 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 tO},create:function(){return tT},eqDate:function(){return tw},eqMonth:function(){return tx},eqYear:function(){return tM},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 tA},flatMap:function(){return tq},fromNullable:function(){return tU},fromNullableK:function(){return tD},getEitherM:function(){return t8},getOrElse:function(){return tJ},left:function(){return tW},leftF:function(){return tF},map:function(){return tL},mapBoth:function(){return tY},mapError:function(){return tB},mapLeft:function(){return tV},match:function(){return tz},matchE:function(){return tX},orElse:function(){return t$},orElseFirst:function(){return tZ},orLeft:function(){return t0},right:function(){return tC},rightF:function(){return tP},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 w={};e.r(w),e.d(w,{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 M={};e.r(M),e.d(M,{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 O={};e.r(O),e.d(O,{foldMapWithIndex:function(){return ev},getFoldableWithIndexComposition:function(){return ey},reduceRightWithIndex:function(){return eg},reduceWithIndex:function(){return em}});var T={};e.r(T),e.d(T,{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 e7},Strong:function(){return e6},URI:function(){return ez},ap:function(){return eD},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 eU},ask:function(){return ex},asks:function(){return eM},asksReader:function(){return eE},asksReaderW:function(){return eT},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 eB},let:function(){return re},local:function(){return eO},map:function(){return eF},of:function(){return eA},promap:function(){return eG},reader:function(){return ry},right:function(){return eH},second:function(){return eV},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 k={};e.r(k),e.d(k,{ask:function(){return rI},asks:function(){return rR},chainFirstReaderK:function(){return rx},chainReaderK:function(){return rw},fromReaderK:function(){return rS},tapReader:function(){return rM}});var C={};e.r(C),e.d(C,{Applicative:function(){return rV},Apply:function(){return rG},Chain:function(){return rB},FromState:function(){return rX},Functor:function(){return rN},Monad:function(){return rH},Pointed:function(){return rq},URI:function(){return rL},ap:function(){return rF},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 rD},flatten:function(){return rA},get:function(){return rO},gets:function(){return rk},let:function(){return rQ},map:function(){return rP},modify:function(){return rE},of:function(){return rU},put:function(){return rT},sequenceArray:function(){return r4},state:function(){return ie},tap:function(){return rz},traverseArray:function(){return r3},traverseArrayWithIndex:function(){return r5},traverseReadonlyArrayWithIndex:function(){return r8},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 P={};e.r(P),e.d(P,{chainFirstTaskK:function(){return id},chainTaskK:function(){return ip},fromTaskK:function(){return il},tapTask:function(){return is}});var F={};e.r(F),e.d(F,{fromTheseK:function(){return ih}});var U={};e.r(U),e.d(U,{getFunctorWithIndexComposition:function(){return iv},mapWithIndex:function(){return im}});var D={};e.r(D);var A={};e.r(A);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 i5},Comonad:function(){return i8},Do:function(){return i3},Foldable:function(){return i0},Functor:function(){return iY},Monad:function(){return iZ},Pointed:function(){return iB},Traversable:function(){return i1},URI:function(){return iq},alt:function(){return ij},altW:function(){return iN},ap:function(){return iO},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 ik},extract:function(){return iC},flap:function(){return iV},flatMap:function(){return iE},flatten:function(){return iP},foldMap:function(){return iU},getEq:function(){return iK},getShow:function(){return iG},identity:function(){return ut},let:function(){return i7},map:function(){return iM},of:function(){return iT},reduce:function(){return iF},reduceRight:function(){return iD},sequence:function(){return iL},traverse:function(){return iA}});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 uO},FromIO:function(){return uM},Functor:function(){return up},Monad:function(){return uI},MonadIO:function(){return uw},Pointed:function(){return um},URI:function(){return ul},ap:function(){return uo},apFirst:function(){return ug},apS:function(){return uC},apSecond:function(){return uy},as:function(){return ud},asUnit:function(){return us},bind:function(){return uk},bindTo:function(){return uT},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 uA},tap:function(){return uR},traverseArray:function(){return uD},traverseArrayWithIndex:function(){return uU},traverseReadonlyArrayWithIndex:function(){return uF},traverseReadonlyNonEmptyArrayWithIndex:function(){return uP}});var G={};e.r(G),e.d(G,{Alt:function(){return oY},ApT:function(){return am},Applicative:function(){return aM},ApplicativePar:function(){return oU},ApplicativeSeq:function(){return oD},ApplyPar:function(){return ok},Bifunctor:function(){return oE},Chain:function(){return oA},Do:function(){return ac},FromEither:function(){return oN},FromIO:function(){return oj},Functor:function(){return ow},Monad:function(){return oL},MonadIO:function(){return oV},MonadThrow:function(){return oB},Pointed:function(){return oT},URI:function(){return ob},alt:function(){return ov},altW:function(){return og},ap:function(){return ol},apFirst:function(){return oC},apFirstW:function(){return oW},apS:function(){return as},apSW:function(){return ah},apSecond:function(){return oP},apSecondW:function(){return oF},apW:function(){return op},as:function(){return ox},asUnit:function(){return oM},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 aO},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 ak},chainIOK:function(){return o7},chainOptionK:function(){return o$},chainOptionKW:function(){return oZ},chainW:function(){return aT},filterOrElse:function(){return ar},filterOrElseW:function(){return ai},flap:function(){return oO},flatMap:function(){return os},flatMapEither:function(){return o3},flatMapIO:function(){return o4},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 aU},getApplySemigroup:function(){return aF},getCompactable:function(){return oR},getFilterable:function(){return oS},getIOValidation:function(){return aA},getOrElse:function(){return u1},getOrElseW:function(){return u2},getSemigroup:function(){return aD},ioEither:function(){return aP},left:function(){return uK},leftIO:function(){return uB},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 aC},orElseFirstIOK:function(){return u6},orElseFirstW:function(){return aW},orElseW:function(){return u7},orLeft:function(){return on},right:function(){return uY},rightIO:function(){return uV},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 aw},traverseSeqArrayWithIndex:function(){return aS},tryCatch:function(){return u8},tryCatchK:function(){return u5}});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 aV},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 aB},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 cA},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 cD},URI:function(){return cC},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 cP},asUnit:function(){return cF},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 cw},filterMap:function(){return cx},flap:function(){return cU},flatMap:function(){return cv},flatMapEither:function(){return c3},flatMapIO:function(){return c8},flatMapNullable:function(){return c4},flatMapOption:function(){return c5},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 cM},partitionMap:function(){return cO},separate:function(){return cS},some:function(){return a5},tap:function(){return cY},tapEither:function(){return cV},tapIO:function(){return cB},toNullable:function(){return cc},toUndefined:function(){return ca},traverseReadonlyArrayWithIndex:function(){return fp},traverseReadonlyNonEmptyArrayWithIndex:function(){return fl},zero:function(){return c_}});var V={};e.r(V),e.d(V,{IORef:function(){return fh},newIORef:function(){return fm}});var B={};e.r(B);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 fO},Semigroup:function(){return fM},eqOrdering:function(){return fC},invert:function(){return fE},match:function(){return fS},matchW:function(){return fR},monoidOrdering:function(){return fW},reverse:function(){return fw},semigroupOrdering:function(){return fk},sign:function(){return fT}});var ne={};e.r(ne);var nr={};e.r(nr);var ni={};e.r(ni),e.d(ni,{random:function(){return fF},randomBool:function(){return fA},randomElem:function(){return fL},randomInt:function(){return fU},randomRange:function(){return fD}});var nu={};e.r(nu),e.d(nu,{Alt:function(){return lN},ApT:function(){return pd},Applicative:function(){return lk},Apply:function(){return lx},Bifunctor:function(){return lL},Chain:function(){return lC},Do:function(){return pu},FromEither:function(){return lP},FromReader:function(){return lF},Functor:function(){return l_},Monad:function(){return lW},MonadThrow:function(){return lV},Pointed:function(){return lw},URI:function(){return lm},alt:function(){return ld},altW:function(){return ls},ap:function(){return lo},apFirst:function(){return lM},apFirstW:function(){return lO},apS:function(){return pl},apSW:function(){return pp},apSecond:function(){return lT},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 l8},flatMapNullable:function(){return l1},flatMapOption:function(){return l2},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 lB},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 pM},getApplySemigroup:function(){return px},getCompactable:function(){return lv},getFilterable:function(){return lg},getOrElse:function(){return f$},getOrElseW:function(){return fZ},getReaderValidation:function(){return pT},getSemigroup:function(){return pO},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 fV},matchE:function(){return fH},matchEW:function(){return fX},matchW:function(){return fB},of:function(){return lc},orElse:function(){return f8},orElseFirst:function(){return pR},orElseFirstW:function(){return pS},orElseW:function(){return f5},orLeft:function(){return f4},readerEither:function(){return pw},right:function(){return fj},rightReader:function(){return fq},sequenceArray:function(){return pg},swap:function(){return f7},tap:function(){return lU},tapEither:function(){return lD},tapError:function(){return f3},tapReader:function(){return lA},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 pC},chain:function(){return pW},flatMap:function(){return pP},fromNaturalTransformation:function(){return pU},fromReader:function(){return pF},getReaderM:function(){return pD},map:function(){return pk},of:function(){return pE}});var na={};e.r(na),e.d(na,{ApT:function(){return dM},Applicative:function(){return p4},Apply:function(){return p8},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 pV},apFirst:function(){return p5},apS:function(){return dw},apSW:function(){return dx},apSecond:function(){return p3},apW:function(){return pB},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 dF},chainFirstIOK:function(){return dd},chainFirstReaderK:function(){return dy},chainFirstReaderKW:function(){return db},chainFirstW:function(){return dU},chainIOK:function(){return dp},chainReaderK:function(){return dv},chainReaderKW:function(){return dg},chainW:function(){return dP},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 pA},fromReaderK:function(){return dm},local:function(){return pN},map:function(){return pY},of:function(){return pH},sequenceArray:function(){return dC},tap:function(){return da},tapIO:function(){return dc},tapReader:function(){return df},traverseArray:function(){return dk},traverseArrayWithIndex:function(){return dE},traverseReadonlyArrayWithIndex:function(){return dT},traverseReadonlyNonEmptyArrayWithIndex:function(){return dO}});var nc={};e.r(nc),e.d(nc,{ApT:function(){return sm},ApplicativePar:function(){return d2},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 d4},MonadIO:function(){return d7},MonadTask:function(){return d6},Pointed:function(){return dZ},URI:function(){return dB},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 sM},chainFirst:function(){return sO},chainFirstIOK:function(){return sa},chainIOK:function(){return so},delay:function(){return dA},flap:function(){return d$},flatMap:function(){return dY},flatMapIO:function(){return se},flatten:function(){return dV},fromIO:function(){return dD},fromIOK:function(){return su},fromTask:function(){return d9},getMonoid:function(){return sC},getRaceMonoid:function(){return dH},getSemigroup:function(){return sk},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 sT},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 sw},traverseSeqArrayWithIndex:function(){return sS}});var nf={};e.r(nf),e.d(nf,{ApT:function(){return hj},ApplicativePar:function(){return s5},ApplicativeSeq:function(){return s4},ApplyPar:function(){return s1},ApplySeq:function(){return s3},Chain:function(){return s7},Do:function(){return hP},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 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 sA},bind:function(){return hD},bindTo:function(){return hF},bindW:function(){return hA},chain:function(){return hJ},chainFirst:function(){return hZ},chainFirstIOK:function(){return hg},chainFirstReaderIOK:function(){return hE},chainFirstReaderIOKW:function(){return hT},chainFirstReaderK:function(){return hS},chainFirstReaderKW:function(){return hw},chainFirstTaskK:function(){return hW},chainFirstW:function(){return hQ},chainIOK:function(){return hv},chainReaderIOK:function(){return hO},chainReaderIOKW:function(){return hM},chainReaderK:function(){return hI},chainReaderKW:function(){return hR},chainTaskK:function(){return hC},chainW:function(){return h$},flap:function(){return sQ},flatMap:function(){return sB},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 sF},fromIOK:function(){return hm},fromReader:function(){return sW},fromReaderIO:function(){return sU},fromReaderIOK:function(){return hx},fromReaderK:function(){return h_},fromTask:function(){return sP},fromTaskK:function(){return hk},getMonoid:function(){return h5},getSemigroup:function(){return h8},let:function(){return hU},local:function(){return sD},map:function(){return sG},of:function(){return sV},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 hB},traverseArrayWithIndex:function(){return hV},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 m8},asUnit:function(){return m5},bimap:function(){return mN},bind:function(){return v8},bindTo:function(){return v1},bindW:function(){return v5},bracket:function(){return vZ},bracketW:function(){return vQ},chain:function(){return gc},chainEitherK:function(){return vU},chainEitherKW:function(){return vD},chainFirst:function(){return gl},chainFirstEitherK:function(){return vA},chainFirstEitherKW:function(){return vL},chainFirstIOK:function(){return vV},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 mC},chainTaskOptionKW:function(){return mk},chainW:function(){return gf},filterOrElse:function(){return vj},filterOrElseW:function(){return vq},flap:function(){return m3},flatMap:function(){return mY},flatMapEither:function(){return vk},flatMapIO:function(){return vC},flatMapIOEither:function(){return vP},flatMapNullable:function(){return vT},flatMapOption:function(){return vE},flatMapTask:function(){return vW},flatMapTaskOption:function(){return vF},flatten:function(){return mB},flattenW:function(){return mV},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 vB},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 vw},liftOption:function(){return vx},map:function(){return mA},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 mM},orElseFirstW:function(){return gs},orElseW:function(){return mS},orLeft:function(){return mO},right:function(){return h9},rightIO:function(){return mt},rightTask:function(){return h6},sequenceArray:function(){return gi},sequenceSeqArray:function(){return ga},swap:function(){return mT},tap:function(){return vs},tapEither:function(){return vh},tapError:function(){return mw},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 yC},ApplicativeSeq:function(){return yP},ApplyPar:function(){return yM},ApplySeq:function(){return yW},Bifunctor:function(){return yZ},Chain:function(){return yF},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 yU},MonadIO:function(){return yD},MonadTask:function(){return yA},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 yO},apFirstW:function(){return yT},apS:function(){return b8},apSW:function(){return b5},apSecond:function(){return yE},apSecondW:function(){return yk},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 bw},chainEitherKW:function(){return bx},chainFirst:function(){return _c},chainFirstEitherK:function(){return bM},chainFirstEitherKW:function(){return bO},chainFirstIOK:function(){return bL},chainFirstReaderEitherK:function(){return y4},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 y7},chainFirstTaskK:function(){return bq},chainFirstW:function(){return _f},chainIOEitherK:function(){return bH},chainIOEitherKW:function(){return bB},chainIOK:function(){return bA},chainNullableK:function(){return gJ},chainOptionK:function(){return ba},chainOptionKW:function(){return bc},chainReaderEitherK:function(){return bX},chainReaderEitherKW:function(){return bz},chainReaderIOK:function(){return bV},chainReaderIOKW:function(){return bY},chainReaderK:function(){return bG},chainReaderKW:function(){return bK},chainReaderTaskK:function(){return bC},chainReaderTaskKW:function(){return bk},chainTaskEitherK:function(){return bE},chainTaskEitherKW:function(){return bT},chainTaskK:function(){return bj},chainW:function(){return _a},filterOrElse:function(){return bP},filterOrElseW:function(){return bF},flap:function(){return yw},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 gP},fromEitherK:function(){return bU},fromIO:function(){return gU},fromIOEither:function(){return gA},fromIOEitherK:function(){return g3},fromIOK:function(){return bD},fromNullable:function(){return gz},fromNullableK:function(){return gX},fromOption:function(){return bu},fromOptionK:function(){return bo},fromPredicate:function(){return bW},fromReader:function(){return gF},fromReaderEither:function(){return gL},fromReaderEitherK:function(){return g7},fromReaderIOK:function(){return be},fromReaderK:function(){return y2},fromReaderTaskK:function(){return y6},fromTask:function(){return gD},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 gV},getOrElseW:function(){return gB},getReaderTaskValidation:function(){return _g},getSemigroup:function(){return _v},left:function(){return gI},leftIO:function(){return gk},leftReader:function(){return gM},leftReaderIO:function(){return gW},leftReaderTask:function(){return gT},leftTask:function(){return gw},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 g8},readerTaskEither:function(){return _d},readerTaskEitherSeq:function(){return _s},right:function(){return gR},rightIO:function(){return gE},rightReader:function(){return gx},rightReaderIO:function(){return gC},rightReaderTask:function(){return gO},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 g2},tapIO:function(){return yV},tapReader:function(){return yH},tapReaderEither:function(){return yz},tapReaderIO:function(){return y$},tapReaderTask:function(){return yJ},tapTask:function(){return yB},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 _V},duplicate:function(){return _z},extend:function(){return _B},extract:function(){return _H},flap:function(){return _2},foldMap:function(){return _J},fst:function(){return _w},getApplicative:function(){return _E},getApply:function(){return _O},getChain:function(){return _k},getChainRec:function(){return _W},getMonad:function(){return _C},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 _M},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 RT},FoldableWithIndex:function(){return RE},Functor:function(){return Rs},FunctorWithIndex:function(){return Rm},Traversable:function(){return Rk},TraversableWithIndex:function(){return RC},URI:function(){return Rf},Witherable:function(){return RF},collect:function(){return If},compact:function(){return Ra},deleteAt:function(){return Ih},difference:function(){return IY},elem:function(){return Iq},empty:function(){return RU},every:function(){return IN},filter:function(){return Rn},filterMap:function(){return Rt},filterMapWithIndex:function(){return IP},filterWithIndex:function(){return IF},flap:function(){return Rh},foldMap:function(){return Ru},foldMapWithIndex:function(){return IS},fromEntries:function(){return IA},fromFoldable:function(){return IU},fromFoldableMap:function(){return IL},getDifferenceMagma:function(){return RO},getEq:function(){return Rp},getFoldable:function(){return Rv},getFoldableWithIndex:function(){return Rg},getIntersectionSemigroup:function(){return RM},getMonoid:function(){return Rd},getShow:function(){return Rl},getTraversable:function(){return RI},getTraversableWithIndex:function(){return RR},getUnionMonoid:function(){return Rx},getUnionSemigroup:function(){return Rw},getWitherable:function(){return RS},has:function(){return Is},hasOwnProperty:function(){return RA},insertAt:function(){return RD},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 IC},partitionWithIndex:function(){return IW},pop:function(){return Ig},record:function(){return RL},reduce:function(){return Ri},reduceRight:function(){return Ro},reduceRightWithIndex:function(){return Iw},reduceWithIndex:function(){return IR},separate:function(){return Rc},sequence:function(){return IT},singleton:function(){return Ix},size:function(){return Iu},some:function(){return Ij},toArray:function(){return Il},toEntries:function(){return ID},toUnfoldable:function(){return Ip},traverse:function(){return IO},traverseWithIndex:function(){return IM},union:function(){return IG},updateAt:function(){return Im},upsertAt:function(){return Id},wilt:function(){return Ik},wither:function(){return IE}});var nh={};e.r(nh),e.d(nh,{and:function(){return RY},compose:function(){return RB},fromEitherK:function(){return Rj},fromOptionK:function(){return RN},id:function(){return Rq},not:function(){return RG},or:function(){return RK},zero:function(){return RV}});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 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 R7},of:function(){return R4}});var n_={};e.r(n_),e.d(n_,{Alt:function(){return wC},Applicative:function(){return wc},Apply:function(){return wr},Bifunctor:function(){return wk},Chain:function(){return wf},FromEither:function(){return wI},FromIO:function(){return wR},FromReader:function(){return ww},FromState:function(){return wl},FromTask:function(){return wS},Functor:function(){return S9},Monad:function(){return wg},MonadIO:function(){return wy},MonadTask:function(){return wb},MonadThrow:function(){return w_},Pointed:function(){return we},URI:function(){return S7},alt:function(){return S3},altW:function(){return S5},ap:function(){return Sq},apFirst:function(){return wi},apFirstW:function(){return wu},apS:function(){return xr},apSW:function(){return xi},apSecond:function(){return wo},apSecondW:function(){return wa},apW:function(){return SG},as:function(){return S6},asUnit:function(){return wn},ask:function(){return wW},asks:function(){return wP},asksStateReaderTaskEither:function(){return SO},asksStateReaderTaskEitherW:function(){return SM},bimap:function(){return SN},bind:function(){return xt},bindTo:function(){return w6},bindW:function(){return xe},chain:function(){return xl},chainEitherK:function(){return wK},chainEitherKW:function(){return wY},chainFirst:function(){return xd},chainFirstEitherK:function(){return wV},chainFirstEitherKW:function(){return wB},chainFirstIOK:function(){return wQ},chainFirstReaderK:function(){return wA},chainFirstReaderKW:function(){return wL},chainFirstTaskK:function(){return w4},chainFirstW:function(){return xs},chainIOEitherK:function(){return w8},chainIOEitherKW:function(){return w2},chainIOK:function(){return wZ},chainOptionK:function(){return wq},chainOptionKW:function(){return wG},chainReaderK:function(){return wU},chainReaderKW:function(){return wD},chainReaderTaskEitherK:function(){return SW},chainReaderTaskEitherKW:function(){return SC},chainStateK:function(){return wv},chainTaskEitherK:function(){return w1},chainTaskEitherKW:function(){return w0},chainTaskK:function(){return w3},chainW:function(){return xp},evalState:function(){return xv},evaluate:function(){return w7},execState:function(){return xg},execute:function(){return w9},filterOrElse:function(){return wz},filterOrElseW:function(){return wX},flap:function(){return wt},flatMap:function(){return SV},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 S8},flattenW:function(){return S2},fromEither:function(){return Sv},fromEitherK:function(){return wJ},fromIO:function(){return Sy},fromIOEither:function(){return SR},fromIOEitherK:function(){return ST},fromIOK:function(){return w$},fromOption:function(){return wN},fromOptionK:function(){return wj},fromPredicate:function(){return wH},fromReader:function(){return Sg},fromReaderEither:function(){return SS},fromReaderK:function(){return wF},fromReaderTaskEither:function(){return Sw},fromReaderTaskEitherK:function(){return Sk},fromState:function(){return S_},fromStateK:function(){return wm},fromTask:function(){return Sb},fromTaskEither:function(){return SI},fromTaskEitherK:function(){return SE},fromTaskK:function(){return w5},get:function(){return wp},gets:function(){return wh},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 ws},of:function(){return SK},put:function(){return wd},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 wx},tapEither:function(){return wM},tapIO:function(){return wO},tapReader:function(){return wE},tapTask:function(){return wT},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 xC},Functor:function(){return xE},URI:function(){return xT},duplicate:function(){return xM},experiment:function(){return xR},extend:function(){return xw},extract:function(){return xx},flap:function(){return xk},map:function(){return xO},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 xF},fanout:function(){return xD},split:function(){return xP},splitStrong:function(){return xU}});var nS={};e.r(nS),e.d(nS,{evolve:function(){return xL},getAssignSemigroup:function(){return xA}});var nw={};e.r(nw),e.d(nw,{Alt:function(){return Mj},Alternative:function(){return MK},ApT:function(){return M6},ApplicativePar:function(){return MT},ApplicativeSeq:function(){return MC},ApplyPar:function(){return Mx},ApplySeq:function(){return Mk},Chain:function(){return MW},Compactable:function(){return MH},Do:function(){return M5},Filterable:function(){return Mz},FromEither:function(){return MP},FromIO:function(){return MF},FromTask:function(){return MU},Functor:function(){return M_},Monad:function(){return MY},MonadIO:function(){return MV},MonadTask:function(){return MB},Pointed:function(){return Mw},URI:function(){return Mb},Zero:function(){return Mq},alt:function(){return Mo},altW:function(){return Ma},ap:function(){return x6},apFirst:function(){return MM},apS:function(){return M9},apSecond:function(){return MO},as:function(){return MI},asUnit:function(){return MR},bind:function(){return M7},bindTo:function(){return M3},chain:function(){return Ol},chainEitherK:function(){return MQ},chainFirst:function(){return Op},chainFirstEitherK:function(){return M0},chainFirstIOK:function(){return M$},chainFirstTaskK:function(){return M8},chainIOK:function(){return MJ},chainNullableK:function(){return x3},chainOptionK:function(){return x7},chainTaskK:function(){return M2},compact:function(){return Ml},filter:function(){return Md},filterMap:function(){return Ms},flap:function(){return MS},flatMap:function(){return Mt},flatMapIO:function(){return Mr},flatMapTask:function(){return Mi},flatten:function(){return Mu},fold:function(){return xJ},foldW:function(){return xZ},fromEither:function(){return xK},fromEitherK:function(){return MZ},fromIO:function(){return xY},fromIOK:function(){return MX},fromNullable:function(){return x1},fromNullableK:function(){return x5},fromOption:function(){return xG},fromOptionK:function(){return x4},fromPredicate:function(){return xq},fromTask:function(){return xV},fromTaskEither:function(){return xB},fromTaskK:function(){return M1},getOrElse:function(){return xQ},getOrElseW:function(){return x0},guard:function(){return MG},let:function(){return M4},map:function(){return x9},match:function(){return xH},matchE:function(){return xX},matchEW:function(){return x$},matchW:function(){return xz},none:function(){return Mf},of:function(){return Mn},partition:function(){return Mh},partitionMap:function(){return Mm},separate:function(){return Mp},sequenceArray:function(){return Oo},sequenceSeqArray:function(){return Of},some:function(){return xj},tap:function(){return MD},tapEither:function(){return MA},tapIO:function(){return ML},tapTask:function(){return MN},traverseArray:function(){return Ou},traverseArrayWithIndex:function(){return Oi},traverseReadonlyArrayWithIndex:function(){return Ot},traverseReadonlyArrayWithIndexSeq:function(){return Or},traverseReadonlyNonEmptyArrayWithIndex:function(){return On},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return Oe},traverseSeqArray:function(){return Oc},traverseSeqArrayWithIndex:function(){return Oa},tryCatch:function(){return x2},tryCatchK:function(){return x8},zero:function(){return Mc}});var nx={};e.r(nx),e.d(nx,{ApT:function(){return Tu},Bifunctor:function(){return O8},Foldable:function(){return O3},FromEither:function(){return O7},FromThese:function(){return O5},Functor:function(){return O0},Pointed:function(){return O2},Traversable:function(){return O4},URI:function(){return OQ},bimap:function(){return OY},both:function(){return Og},elem:function(){return Tt},exists:function(){return Te},flap:function(){return O1},fold:function(){return OI},foldMap:function(){return Oz},foldW:function(){return Ob},fromOption:function(){return O6},fromOptionK:function(){return Tn},fromOptions:function(){return OD},fromPredicate:function(){return O9},getApplicative:function(){return OO},getApply:function(){return OM},getChain:function(){return OT},getEq:function(){return Ow},getLeft:function(){return Ok},getLeftOnly:function(){return OF},getMonad:function(){return OE},getRight:function(){return OC},getRightOnly:function(){return OU},getSemigroup:function(){return Ox},getShow:function(){return OS},isBoth:function(){return Oh},isLeft:function(){return Od},isRight:function(){return Os},left:function(){return Om},leftOrBoth:function(){return OW},map:function(){return OB},mapLeft:function(){return OV},match:function(){return O_},matchW:function(){return Oy},of:function(){return OZ},reduce:function(){return OH},reduceRight:function(){return OX},right:function(){return Ov},rightOrBoth:function(){return OP},sequence:function(){return O$},swap:function(){return OR},these:function(){return Tc},toTuple:function(){return Ti},toTuple2:function(){return Tr},traverse:function(){return OJ},traverseReadonlyArrayWithIndex:function(){return Ta},traverseReadonlyNonEmptyArrayWithIndex:function(){return To}});var nM={};e.r(nM),e.d(nM,{ap:function(){return Tm},bimap:function(){return Tg},both:function(){return Tp},chain:function(){return Tv},getTheseM:function(){return TS},left:function(){return Tl},leftF:function(){return Ts},map:function(){return Th},mapLeft:function(){return Ty},match:function(){return Tb},matchE:function(){return T_},right:function(){return Tf},rightF:function(){return Td},swap:function(){return TI},toTuple2:function(){return TR}});var nO={};e.r(nO),e.d(nO,{ApT:function(){return Eo},Bifunctor:function(){return T5},FromEither:function(){return T3},FromIO:function(){return Et},FromTask:function(){return Er},FromThese:function(){return T6},Functor:function(){return T1},Pointed:function(){return T8},URI:function(){return TJ},bifunctorTaskThese:function(){return Ed},bimap:function(){return TH},both:function(){return TM},flap:function(){return T2},fold:function(){return TN},foldW:function(){return Tq},fromEither:function(){return TC},fromIO:function(){return TP},fromIOEither:function(){return TF},fromIOK:function(){return Ee},fromOption:function(){return T4},fromOptionK:function(){return T7},fromPredicate:function(){return T9},fromTask:function(){return TU},fromTaskK:function(){return Ei},fromThese:function(){return TW},fromTheseK:function(){return En},functorTaskThese:function(){return Ep},getApplicative:function(){return TZ},getApply:function(){return T$},getChain:function(){return TQ},getMonad:function(){return T0},getSemigroup:function(){return Em},left:function(){return Tw},leftIO:function(){return Tk},leftTask:function(){return TT},map:function(){return TB},mapLeft:function(){return Tz},match:function(){return TD},matchE:function(){return TL},matchEW:function(){return Tj},matchW:function(){return TA},of:function(){return TX},right:function(){return Tx},rightIO:function(){return TE},rightTask:function(){return TO},swap:function(){return TG},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 nT={};e.r(nT),e.d(nT,{Functor:function(){return Ew},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 EM},tracks:function(){return Ev}});var nE={};e.r(nE),e.d(nE,{getTraversableComposition:function(){return EE},sequence:function(){return ET},traverse:function(){return EO}});var nk={};e.r(nk);var nC={};e.r(nC),e.d(nC,{Applicative:function(){return ki},Apply:function(){return kt},Chain:function(){return ku},Comonad:function(){return kl},Do:function(){return kp},Foldable:function(){return kc},Functor:function(){return E9},Monad:function(){return ko},Pointed:function(){return kn},Traversable:function(){return kf},URI:function(){return E7},ap:function(){return Ez},apFirst:function(){return ke},apS:function(){return km},apSecond:function(){return kr},bind:function(){return kh},bindTo:function(){return kd},chain:function(){return ky},chainFirst:function(){return ka},drawForest:function(){return EF},drawTree:function(){return EU},duplicate:function(){return E$},elem:function(){return kv},exists:function(){return kg},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 E1},getEq:function(){return EW},getShow:function(){return EC},let:function(){return ks},make:function(){return Ek},map:function(){return EQ},of:function(){return E4},reduce:function(){return E0},reduceRight:function(){return E2},sequence:function(){return E3},traverse:function(){return E5},tree:function(){return kb},unfoldForest:function(){return EA},unfoldForestM:function(){return EN},unfoldTree:function(){return ED},unfoldTreeM:function(){return EL}});var nW={};e.r(nW),e.d(nW,{Bifunctor:function(){return kQ},Comonad:function(){return k1},Foldable:function(){return k2},Functor:function(){return k$},Semigroupoid:function(){return k0},Traversable:function(){return k8},URI:function(){return kJ},bimap:function(){return kL},compose:function(){return kq},duplicate:function(){return kK},extend:function(){return kG},extract:function(){return kY},flap:function(){return kZ},foldMap:function(){return kV},fst:function(){return k_},getApplicative:function(){return kx},getApply:function(){return kS},getChain:function(){return kM},getChainRec:function(){return kT},getMonad:function(){return kO},map:function(){return k5},mapFst:function(){return kN},mapLeft:function(){return k3},mapSnd:function(){return kj},reduce:function(){return kB},reduceRight:function(){return kH},sequence:function(){return kX},snd:function(){return kI},swap:function(){return kR},traverse:function(){return kz},tuple:function(){return k4}});var nP={};e.r(nP);var nF={};e.r(nF),e.d(nF,{getValidationM:function(){return k7}});var nU={};e.r(nU),e.d(nU,{Monoid:function(){return k6},Semigroup:function(){return k9}});var nD={};e.r(nD),e.d(nD,{Functor:function(){return Cs},URI:function(){return Ca},censor:function(){return Ci},evalWriter:function(){return Cg},evaluate:function(){return Cm},execWriter:function(){return Cy},execute:function(){return Cv},flap:function(){return Ch},getApplicative:function(){return Cl},getApply:function(){return Cf},getChain:function(){return Cp},getMonad:function(){return Cd},getPointed:function(){return Cc},listen:function(){return Ct},listens:function(){return Cr},map:function(){return Co},pass:function(){return Ce},tell:function(){return Cn},writer:function(){return Cb}});var nA={};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(nA),e.d(nA,{getWriterM:function(){return C_}});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},nV=function(n,t){return function(e){return e?t():n()}},nB=nV,nH=nB,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)}},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(){}},n4=n5,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=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()}},tw={equals:function(n,t){return n.getDate()===t.getDate()}},tx={equals:function(n,t){return n.getMonth()===t.getMonth()}},tM={equals:function(n,t){return n.getFullYear()===t.getFullYear()}},tO=(0,n8.pipe)(tR.Ord,n6.contramap(function(n){return n.valueOf()})),tT=function(){return new Date},tE=function(){return new Date().getTime()},tk=e(81878);function tC(n){return(0,n8.flow)(tk.right,n.of)}function tW(n){return(0,n8.flow)(tk.left,n.of)}function tP(n){return function(t){return n.map(t,tk.right)}}function tF(n){return function(t){return n.map(t,tk.left)}}function tU(n){return function(t){return(0,n8.flow)(tk.fromNullable(t),n.of)}}function tD(n){var t=tU(n);return function(n){var e=t(n);return function(n){return(0,n8.flow)(n,e)}}}function tA(n){var t=tj(n),e=tD(n);return function(n){var r=e(n);return function(n){return t(r(n))}}}function tL(n){return(0,tp.map)(n,tk.Functor)}function tN(n){return(0,nN.ap)(n,tk.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 tk.isLeft(t)?n.of(t):e(t.right)})}}function tG(n){return function(t){return function(e){return n.chain(e,function(e){return tk.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,tk.bimap(e,r))}}function tV(n){var t=tB(n);return function(n){return function(e){return t(e,n)}}}function tB(n){return function(t,e){return n.map(t,tk.mapLeft(e))}}function tH(n,t){return function(e){return function(r){return n.chain(r,tk.match(function(r){return n.map(e(),tk.mapLeft(function(n){return t.concat(r,n)}))},tC(n)))}}}function tz(n){return function(t,e){return function(r){return n.map(r,tk.match(t,e))}}}function tX(n){return function(t,e){return function(r){return n.chain(r,tk.match(t,e))}}}function tJ(n){return function(t){return function(e){return n.chain(e,tk.match(t,n.of))}}}function t$(n){return function(t){return function(e){return n.chain(e,function(e){return tk.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 tk.isLeft(n)?n:tk.left(t)})}))}}function t0(n){return function(t){return function(e){return n.chain(e,tk.match(function(e){return n.map(t(e),tk.left)},function(t){return n.of(tk.right(t))}))}}}function t1(n){return function(t){return n.map(t,tk.swap)}}function t2(n){return function(t){return n.map(t,tk.toUnion)}}function t8(n){var t=tN(n),e=tL(n),r=tj(n),i=tG(n),u=tK(n),o=tV(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:tC(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:t1(n),rightM:tP(n),leftM:tF(n),left:tW(n)}}var t5=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,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 ew=e(97963),ex=function(){return n8.identity},eM=n8.identity,eO=function(n){return function(t){return function(e){return t(n(e))}}},eT=function(n){return function(t){return n(t)(t)}},eE=eT,ek=function(n,t){return(0,n8.pipe)(n,eF(t))},eC=function(n,t){return(0,n8.pipe)(n,eD(t))},eW=function(n,t){return(0,n8.pipe)(n,eq(t))},eP=function(n,t,e){return(0,n8.pipe)(n,eG(t,e))},eF=function(n){return function(t){return function(e){return n(t(e))}}},eU=function(n){return function(t){return function(e){return t(e)(n(e))}}},eD=eU,eA=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]}},eV=function(n){return function(t){return[t[0],n(t[1])]}},eB=function(n){return tk.fold(function(t){return ew.t$(n(t))},tk.right)},eH=function(n){return tk.fold(tk.left,function(t){return ew.F2(n(t))})},ez="Reader",eX={URI:ez,map:ek},eJ=(0,tp.flap)(eX),e$={URI:ez,of:eA},eZ={URI:ez,map:ek,ap:eC},eQ=(0,nN.apFirst)(eZ),e0=eQ,e1=(0,nN.apSecond)(eZ),e2=e1,e8={URI:ez,map:ek,ap:eC,of:eA},e5={URI:ez,map:ek,ap:eC,chain:eL},e3={URI:ez,map:ek,of:eA,ap:eC,chain:eL},e4=(0,n8.dual)(2,tu.tap(e5)),e7={URI:ez,map:ek,promap:eP},e9={URI:ez,compose:eW,id:eK},e6={URI:ez,map:ek,promap:eP,first:eY,second:eV},rn={URI:ez,map:ek,promap:eP,left:eB,right:eH},rt=(0,tp.bindTo)(eX),re=(0,tp.let)(eX),rr=tu.bind(e5),ri=rr,ru=eA(ew.F4),ro=(0,nN.apS)(eZ),ra=ro,rc=eA(ew.Xl),rf=function(n){return function(t){return function(e){for(var r=[n(0,ew.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 ew.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=e4,rg=e4,ry={URI:ez,map:ek,of:eA,ap:eC,chain:eL,promap:eP,compose:eW,id:eK,first:eY,second:eV,left:eB,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 rw(n,t){var e=rS(n);return function(n){return function(r){return t.chain(r,e(n))}}}function rx(n,t){var e=rM(n,t);return function(n){return function(t){return e(t,n)}}}function rM(n,t){var e=(0,tu.tap)(t);return function(t,r){return e(t,(0,n8.flow)(r,n.fromReader))}}var rO=function(){return function(n){return[n,n]}},rT=function(n){return function(){return[void 0,n]}},rE=function(n){return function(t){return[void 0,n(t)]}},rk=function(n){return function(t){return[n(t),t]}},rC=function(n,t){return(0,n8.pipe)(n,rP(t))},rW=function(n,t){return(0,n8.pipe)(n,rF(t))},rP=function(n){return function(t){return function(e){var r=t(e),i=r[0],u=r[1];return[n(i),u]}}},rF=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]}}},rU=function(n){return function(t){return[n,t]}},rD=(0,n8.dual)(2,function(n,t){return function(e){var r=n(e),i=r[0],u=r[1];return t(i)(u)}}),rA=rD(n8.identity),rL="State",rN={URI:rL,map:rC},rj=(0,tp.flap)(rN),rq={URI:rL,of:rU},rG={URI:rL,map:rC,ap:rW},rK=(0,nN.apFirst)(rG),rY=(0,nN.apSecond)(rG),rV={URI:rL,map:rC,ap:rW,of:rU},rB={URI:rL,map:rC,ap:rW,chain:rD},rH={URI:rL,map:rC,ap:rW,of:rU,chain:rD},rz=(0,n8.dual)(2,tu.tap(rB)),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(rB),r1=(0,nN.apS)(rG),r2=function(n){return function(t){return function(e){for(var r=n(0,ew.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=r2(n);return function(n){return ew.Od(n)?t(n):rU(ew.Xl)}},r5=r8,r3=function(n){return r8(function(t,e){return n(e)})},r4=r3(n8.identity),r7=rD,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(rO())}}function ii(n){return function(t){return n.fromState(rT(t))}}function iu(n){return(0,n8.flow)(rE,n.fromState)}function io(n){return(0,n8.flow)(rk,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,iM(t))},iy=function(n,t){return(0,n8.pipe)(n,iO(t))},ib=function(n,t,e){return(0,n8.pipe)(n,iF(t,e))},i_=function(n){return function(t,e){return(0,n8.pipe)(t,iU(n)(e))}},iI=function(n,t,e){return(0,n8.pipe)(n,iD(t,e))},iR=function(n,t){return(0,n8.pipe)(n,ij(t))},iS=function(n,t){return(0,n8.pipe)(n,ik(t))},iw=function(n){var t=iA(n);return function(n,e){return(0,n8.pipe)(n,t(e))}},ix=to.tailRec,iM=function(n){return function(t){return n(t)}},iO=function(n){return function(t){return t(n)}},iT=n8.identity,iE=(0,n8.dual)(2,function(n,t){return t(n)}),ik=function(n){return function(t){return n(t)}},iC=n8.identity,iW=ik(n8.identity),iP=iE(n8.identity),iF=function(n,t){return function(e){return t(n,e)}},iU=function(){return function(n){return function(t){return n(t)}}},iD=function(n,t){return function(e){return t(e,n)}},iA=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},iV=(0,tp.flap)(iY),iB={URI:iq,of:iT},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:iT},i$={URI:iq,map:ig,ap:iy,chain:iE},iZ={URI:iq,map:ig,ap:iy,of:iT,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:iw,sequence:iL},i2={URI:iq,map:ig,alt:iR},i8={URI:iq,map:ig,extend:iS,extract:iC},i5={URI:iq,map:ig,ap:iy,chain:iE,chainRec:ix},i3=iT(ew.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:iT,chain:iE,reduce:ib,foldMap:i_,reduceRight:iI,traverse:iw,sequence:iL,alt:iR,extract:iC,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,uw={URI:ul,map:ue,ap:ur,of:ua,chain:uc,fromIO:uS},ux={URI:ul,map:ue,ap:ur,chain:uc,chainRec:ui},uM={URI:ul,fromIO:n8.identity},uO=ua(ew.F4),uT=(0,tp.bindTo)(up),uE=(0,tp.let)(up),uk=tu.bind(u_),uC=(0,nN.apS)(uv),uW=ua(ew.Xl),uP=function(n){return function(t){return function(){for(var e=[n(0,ew.YM(t))()],r=1;r<t.length;r++)e.push(n(r,t[r])());return e}}},uF=function(n){var t=uP(n);return function(n){return ew.Od(n)?t(n):uW}},uU=uF,uD=function(n){return uF(function(t,e){return n(e)})},uA=uD(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=tC(um),uV=tP(up),uB=tF(up),uH=ua,uz=uV,uX=tz(up),uJ=uX,u$=tX(uI),uZ=u$,uQ=u$,u0=uQ,u1=tJ(uI),u2=u1,u8=function(n,t){return function(){return tk.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=t2(up),u4=t$(uI),u7=u4,u9=(0,n8.dual)(2,tQ(uI)),u6=function(n){return u9(oH(n))},on=t0(uI),ot=t1(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,tB(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,tk.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=tk.getCompactable(n);return{URI:ob,_E:void 0,compact:th(up,t),separate:tm(up,t,tk.Functor)}};function oS(n){var t=tk.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 ow={URI:ob,map:oe},ox=(0,n8.dual)(2,(0,tp.as)(ow)),oM=(0,tp.asUnit)(ow),oO=(0,tp.flap)(ow),oT={URI:ob,of:od},oE={URI:ob,bimap:oo,mapLeft:oc},ok={URI:ob,map:oe,ap:or},oC=(0,nN.apFirst)(ok),oW=oC,oP=(0,nN.apSecond)(ok),oF=oP,oU={URI:ob,map:oe,ap:or,of:od},oD={URI:ob,map:oe,ap:function(n,t){return os(n,function(n){return(0,n8.pipe)(t,ou(n))})},of:od},oA={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(oA)),oG=(0,n8.dual)(2,(0,eb.tapEither)(oN,oA)),oK=(0,n8.dual)(2,eS(oj,oA)),oY={URI:ob,map:oe,alt:oi},oV={URI:ob,map:oe,ap:or,of:od,chain:os,fromIO:uz},oB={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,oA),oZ=o$,oQ={fromEither:oN.fromEither},o0=ew.uL(oQ),o1=ew.WE(oQ),o2={flatMap:os},o8=ew.ny(oQ,o2),o5=ew.hU(oQ,o2),o3=ew.iu(oQ,o2),o4=ew.we({fromIO:uz},o2),o7=o4,o9=o3,o6=o3,an=oG,at=oG,ae=(0,eb.fromPredicate)(oN),ar=(0,eb.filterOrElse)(oN,oA),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(ew.F4),af=(0,tp.bindTo)(ow),al=(0,tp.let)(ow),ap=tu.bind(oA),ad=ap,as=(0,nN.apS)(ok),ah=as,am=od(ew.Xl),av=function(n){return(0,n8.flow)(uP(n),uu(tk.traverseReadonlyNonEmptyArrayWithIndex(n8.SK)))},ag=function(n){var t=av(n);return function(n){return ew.Od(n)?t(n):am}},ay=function(n){return function(t){return function(){var e=n(0,ew.YM(t))();if(ew.nM(e))return e;for(var r=[e.right],i=1;i<t.length;i++){var u=n(i,t[i])();if(ew.nM(u))return u;r.push(u.right)}return ew.F2(r)}}},ab=function(n){var t=ay(n);return function(n){return ew.Od(n)?t(n):am}},a_=ag,aI=function(n){return ag(function(t,e){return n(e)})},aR=aI(n8.identity),aS=ab,aw=function(n){return ab(function(t,e){return n(e)})},ax=aw(n8.identity),aM=oU,aO=os,aT=os,aE=oq,ak=oq,aC=u9,aW=u9,aP={URI:ob,bimap:oo,mapLeft:oc,map:oe,of:od,ap:or,chain:os,alt:oi,fromIO:uz,throwError:oy},aF=(0,nN.getApplySemigroup)(ok),aU=(0,nG.getApplicativeMonoid)(oU),aD=function(n){return(0,nN.getApplySemigroup)(uv)(tk.getSemigroup(n))};function aA(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 aV(n){var t=aQ(n),e=aY(n);return function(n){return t(e(n))}}function aB(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 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,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=aB(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=a5,cv=(0,n8.dual)(2,a0(uI)),cg=cv(n8.identity),cy=a1(uI),cb=cy,c_=aN(um),cI=c_(),cR=th(up,td.Compactable),cS=tm(up,td.Compactable,td.Functor),cw=en(up,td.Filterable),cx=et(up,td.Filterable),cM=ee(up,td.Filterable),cO=er(up,td.Filterable),cT=function(n,t){return(0,n8.pipe)(n,cs(t))},cE=function(n,t){return(0,n8.pipe)(n,ch(t))},ck=function(n,t){return(0,n8.pipe)(n,cy(t))},cC="IOOption",cW={URI:cC,map:cT},cP=(0,n8.dual)(2,(0,tp.as)(cW)),cF=(0,tp.asUnit)(cW),cU=(0,tp.flap)(cW),cD={URI:cC,of:cm},cA={URI:cC,map:cT,ap:cE},cL=(0,nN.apFirst)(cA),cN=(0,nN.apSecond)(cA),cj={URI:cC,map:cT,ap:cE,of:cm},cq={URI:cC,map:cT,ap:cE,chain:cv},cG={URI:cC,fromEither:a7},cK={URI:cC,fromIO:a9},cY=(0,n8.dual)(2,tu.tap(cq)),cV=(0,n8.dual)(2,(0,eb.tapEither)(cG,cq)),cB=(0,n8.dual)(2,eS(cK,cq)),cH={URI:cC,map:cT,alt:ck},cz={URI:cC,zero:c_},cX=(0,a8.guard)(cz,cD),cJ={URI:cC,map:cT,ap:cE,of:cm,alt:ck,zero:c_},c$={URI:cC,map:cT,ap:cE,of:cm,chain:cv},cZ={URI:cC,map:cT,ap:cE,of:cm,chain:cv,fromIO:a9},cQ={URI:cC,compact:cR,separate:cS},c0={URI:cC,map:cT,compact:cR,separate:cS,filter:function(n,t){return(0,n8.pipe)(n,cw(t))},filterMap:function(n,t){return(0,n8.pipe)(n,cx(t))},partition:function(n,t){return(0,n8.pipe)(n,cM(t))},partitionMap:function(n,t){return(0,n8.pipe)(n,cO(t))}},c1={flatMap:cv},c2={fromIO:cK.fromIO},c8=ew.we(c2,c1),c5=(0,n8.dual)(2,function(n,t){return cv(n,cd(t))}),c3=ew.iu({fromEither:a7},c1),c4=(0,n8.dual)(2,function(n,t){return cv(n,cl(t))}),c7=e_(cK),c9=c8,c6=cB,fn=(0,eb.fromEitherK)(cG),ft=c3,fe=cV,fr=c5,fi=cm(ew.F4),fu=(0,tp.bindTo)(cW),fo=(0,tp.let)(cW),fa=tu.bind(cq),fc=(0,nN.apS)(cA),ff=cm(ew.Xl),fl=function(n){return(0,n8.flow)(uP(n),uu(td.traverseReadonlyNonEmptyArrayWithIndex(n8.SK)))},fp=function(n){var t=fl(n);return function(n){return ew.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,tk.tryCatch)(function(){return JSON.parse(n)},n8.identity)},fg=function(n){return(0,tk.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,fw=function(n){return -1===n?1:1===n?-1:0},fx={equals:function(n,t){return n===t}},fM={concat:function(n,t){return 0!==n?n:t}},fO={concat:fM.concat,empty:0},fT=function(n){return n<=-1?-1:n>=1?1:0},fE=fw,fk=fM,fC=fx,fW=fO,fP=e(18896),fF=function(){return Math.random()};function fU(n,t){return(0,n8.pipe)(fF,uu(function(e){return Math.floor((t-n+1)*e+n)}))}function fD(n,t){return(0,n8.pipe)(fF,uu(function(e){return(t-n)*e+n}))}var fA=(0,n8.pipe)(fF,uu(function(n){return n<.5})),fL=function(n){return(0,n8.pipe)(fU(0,n.length-1),uu(function(t){return n[t]}))},fN=tW(e$),fj=tC(e$),fq=tP(eX),fG=tF(eX),fK=eA,fY=fq,fV=tz(eX),fB=fV,fH=tX(e3),fz=fH,fX=fH,fJ=fX,f$=tJ(e3),fZ=f$,fQ=t2(eX),f0=eO,f1=eT,f2=f1,f8=t$(e3),f5=f8,f3=(0,n8.dual)(2,tQ(e3)),f4=t0(e3),f7=t1(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,tB(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=tk.getCompactable(n);return{URI:lm,_E:void 0,compact:th(eX,t),separate:tm(eX,t,tk.Functor)}};function lg(n){var t=tk.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,tk.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_),lw={URI:lm,of:lc},lx={URI:lm,map:f9,ap:f6},lM=(0,nN.apFirst)(lx),lO=lM,lT=(0,nN.apSecond)(lx),lE=lT,lk={URI:lm,map:f9,ap:f6,of:lc},lC={URI:lm,map:f9,ap:f6,chain:lf},lW={URI:lm,map:f9,ap:f6,of:lc,chain:lf},lP={URI:lm,fromEither:fK},lF={URI:lm,fromReader:fY},lU=(0,n8.dual)(2,tu.tap(lC)),lD=(0,n8.dual)(2,(0,eb.tapEither)(lP,lC)),lA=(0,n8.dual)(2,rM(lF,lC)),lL={URI:lm,bimap:le,mapLeft:li},lN={URI:lm,map:f9,alt:ln},lj=rI(lF),lq=rR(lF),lG=rS(lF),lK=lA,lY=lA,lV={URI:lm,map:f9,ap:f6,of:lc,chain:lf,throwError:lh},lB=(0,eb.fromOption)(lP),lH=(0,eb.fromOptionK)(lP),lz=(0,eb.chainOptionK)(lP,lC),lX=lz,lJ={fromEither:lP.fromEither},l$={fromReader:lF.fromReader},lZ=ew.uL(lJ),lQ=ew.WE(lJ),l0={flatMap:lf},l1=ew.ny(lJ,l0),l2=ew.hU(lJ,l0),l8=ew.iu(lJ,l0),l5=ew.on(l$,l0),l3=l8,l4=l8,l7=lD,l9=lD,l6=l5,pn=l5,pt=(0,eb.fromPredicate)(lP),pe=(0,eb.filterOrElse)(lP,lC),pr=pe,pi=(0,eb.fromEitherK)(lP),pu=lc(ew.F4),po=(0,tp.bindTo)(l_),pa=(0,tp.let)(l_),pc=tu.bind(lC),pf=pc,pl=(0,nN.apS)(lx),pp=pl,pd=lc(ew.Xl),ps=function(n){return(0,n8.flow)(rf(n),eF(tk.traverseReadonlyNonEmptyArrayWithIndex(n8.SK)))},ph=function(n){var t=ps(n);return function(n){return ew.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_=lU,pI=lU,pR=f3,pS=f3,pw={URI:lm,bimap:le,mapLeft:li,map:f9,of:lc,ap:f6,chain:lf,alt:ln,throwError:fN},px=(0,nN.getApplySemigroup)(lx),pM=(0,nG.getApplicativeMonoid)(lk),pO=function(n){return(0,nN.getApplySemigroup)(eZ)(tk.getSemigroup(n))};function pT(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 pk(n){return function(t){return function(e){return function(r){return n.map(e(r),t)}}}}function pC(n){return function(t){return function(e){return function(r){return n.ap(e(r),t(r))}}}}function pW(n){var t=pP(n);return function(n){return function(e){return t(e,n)}}}function pP(n){return function(t,e){return function(r){return n.chain(t(r),function(n){return e(n)(r)})}}}function pF(n){return function(t){return(0,n8.flow)(t,n.of)}}function pU(n){return function(t){return(0,n8.flow)(t,n)}}function pD(n){var t=pC(n),e=pk(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:pF(n),fromM:function(n){return function(){return n}}}}var pA=pF(um),pL=eA,pN=eO,pj=eT,pq=pj,pG=function(n,t){return(0,n8.pipe)(n,pY(t))},pK=function(n,t){return(0,n8.pipe)(n,pV(t))},pY=pk(up),pV=pC(uv),pB=pV,pH=pE(um),pz=(0,n8.dual)(2,pP(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),p1=(0,tp.flap)(pZ),p2={URI:p$,of:pH},p8={URI:p$,map:pG,ap:pK},p5=(0,nN.apFirst)(p8),p3=(0,nN.apSecond)(p8),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:pA},de={flatMap:pz},dr={fromIO:dn.fromIO},di=ew.we(dr,de),du=ew.on({fromReader:pA},de),da=(0,n8.dual)(2,tu.tap(p7)),dc=(0,n8.dual)(2,eS(dn,p7)),df=(0,n8.dual)(2,rM(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(ew.F4),dI=(0,tp.bindTo)(pZ),dR=tu.bind(p7),dS=dR,dw=(0,nN.apS)(p8),dx=dw,dM=pH(ew.Xl),dO=function(n){return(0,n8.flow)(rf(n),eF(uP(n8.SK)))},dT=function(n){var t=dO(n);return function(n){return ew.Od(n)?t(n):dM}},dE=dT,dk=function(n){return dT(function(t,e){return n(e)})},dC=dk(n8.identity),dW=pz,dP=pz,dF=da,dU=da,dD=function(n){return function(){return Promise.resolve().then(n)}};function dA(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)()})}}),dV=dY(n8.identity),dB="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:dB,map:dL},dX=(0,n8.dual)(2,(0,tp.as)(dz)),dJ=(0,tp.asUnit)(dz),d$=(0,tp.flap)(dz),dZ={URI:dB,of:dK},dQ={URI:dB,map:dL,ap:dN},d0=(0,nN.apFirst)(dQ),d1=(0,nN.apSecond)(dQ),d2={URI:dB,map:dL,ap:dN,of:dK},d8={URI:dB,map:dL,ap:dj},d5={URI:dB,map:dL,ap:dj,of:dK},d3={URI:dB,map:dL,ap:dN,chain:dY},d4={URI:dB,map:dL,of:dK,ap:dN,chain:dY},d7={URI:dB,map:dL,of:dK,ap:dN,chain:dY,fromIO:dD},d9=n8.identity,d6={URI:dB,map:dL,of:dK,ap:dN,chain:dY,fromIO:dD,fromTask:d9},sn={URI:dB,fromIO:dD},st={fromIO:sn.fromIO},se=ew.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:dB,fromIO:dD,fromTask:d9},sf=function(){return new Promise(function(n){})},sl=dK(ew.F4),sp=(0,tp.bindTo)(dz),sd=(0,tp.let)(dz),ss=tu.bind(d3),sh=(0,nN.apS)(dQ),sm=dK(ew.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 ew.Od(n)?t(n):sm}},sy=function(n){return function(t){return function(){return ew.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,ew.YM(t))).then(ew.ri))}}},sb=function(n){var t=sy(n);return function(n){return ew.Od(n)?t(n):sm}},s_=sg,sI=function(n){return sg(function(t,e){return n(e)})},sR=sI(n8.identity),sS=sb,sw=function(n){return sb(function(t,e){return n(e)})},sx=sw(n8.identity),sM=dY,sO=sr,sT={URI:dB,map:dL,of:dK,ap:dN,chain:dY,fromIO:dD,fromTask:d9},sE={URI:dB,map:dL,of:dK,ap:dj,chain:dY,fromIO:dD,fromTask:d9},sk=(0,nN.getApplySemigroup)(d8),sC=(0,nG.getApplicativeMonoid)(d5),sW=pF(dZ),sP=eA,sF=(0,n8.flow)(dD,sP),sU=eF(dD),sD=eO,sA=eT,sL=sA,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 sB(n,function(n){return(0,n8.pipe)(t,sG(n))})},sG=pk(dz),sK=pC(dQ),sY=sK,sV=pE(dZ),sB=(0,n8.dual)(2,pP(d4)),sH=sB(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:sV},s1={URI:sX,map:sN,ap:sj},s2=(0,nN.apFirst)(s1),s8=(0,nN.apSecond)(s1),s5={URI:sX,map:sN,ap:sj,of:sV},s3={URI:sX,map:sN,ap:sq},s4={URI:sX,map:sN,ap:sq,of:sV},s7={URI:sX,map:sN,ap:sj,chain:sB},s9={URI:sX,map:sN,of:sV,ap:sj,chain:sB},s6={URI:sX,map:sN,of:sV,ap:sj,chain:sB,fromIO:sF},hn={URI:sX,map:sN,of:sV,ap:sj,chain:sB,fromIO:sF,fromTask:sP},ht={URI:sX,fromIO:sF},he={URI:sX,fromIO:sF,fromTask:sP},hr={URI:sX,fromReader:sW},hi={flatMap:sB},hu={fromIO:ht.fromIO},ho=ew.we(hu,hi),ha=ew.D9({fromTask:sP},hi),hc=ew.on({fromReader:sW},hi),hf=(0,n8.dual)(2,function(n,t){return sB(n,hx(t))}),hl=(0,n8.dual)(2,tu.tap(s7)),hp=(0,n8.dual)(2,eS(ht,s7)),hd=(0,n8.dual)(2,rM(hr,s7)),hs=(0,n8.dual)(2,is(he,s7)),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,hw=hd,hx=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return sU(n.apply(void 0,t))}},hM=hf,hO=hf,hT=hh,hE=hh,hk=il(he),hC=ha,hW=hs,hP=sV(ew.F4),hF=(0,tp.bindTo)(sJ),hU=(0,tp.let)(sJ),hD=tu.bind(s7),hA=hD,hL=(0,nN.apS)(s1),hN=hL,hj=sV(ew.Xl),hq=function(n){return(0,n8.flow)(rf(n),eF(sv(n8.SK)))},hG=function(n){var t=hq(n);return function(n){return ew.Od(n)?t(n):hj}},hK=function(n){return(0,n8.flow)(rf(n),eF(sy(n8.SK)))},hY=function(n){var t=hK(n);return function(n){return ew.Od(n)?t(n):hj}},hV=hG,hB=function(n){return hG(function(t,e){return n(e)})},hH=hB(n8.identity),hz=hY,hX=function(n){return hY(function(t,e){return n(e)})},hJ=sB,h$=sB,hZ=hl,hQ=hl,h0=hX(n8.identity),h1={URI:sX,map:sN,of:sV,ap:sj,chain:sB,fromIO:sF,fromTask:sP},h2={URI:sX,map:sN,of:sV,ap:sq,chain:sB,fromIO:sF,fromTask:sP},h8=(0,nN.getApplySemigroup)(s3),h5=(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=tC(dZ),h6=tP(dz),mn=tF(dz),mt=(0,n8.flow)(dD,h6),me=(0,n8.flow)(dD,mn),mr=mt,mi=h6,mu=dK,mo=dD,ma=function(n){return dq(tk.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(ew.F2)];case 1:return[2,r.sent()];case 2:return e=r.sent(),[2,ew.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=tU(dZ),m_=tD(dZ),mI=tA(d4),mR=t$(d4),mS=mR,mw=(0,n8.dual)(2,tQ(d4)),mx=function(n){return mw(vK(n))},mM=function(n){return mw(vB(n))},mO=t0(d4),mT=t1(dz),mE=function(n){var t=ma(n);return function(n){return(0,n8.flow)(n,t)}},mk=function(n){return function(t){return function(e){return mY(e,mE(n)(t))}}},mC=mk,mW=function(n){return(0,n8.flow)(n,mo)},mP=function(n,t){return(0,n8.pipe)(n,mA(t))},mF=function(n,t){return(0,n8.pipe)(n,mG(t))},mU=function(n,t){return mY(n,function(n){return(0,n8.pipe)(t,mA(n))})},mD=function(n,t){return(0,n8.pipe)(n,mH(t))},mA=tL(dz),mL=(0,n8.dual)(3,tY(dz)),mN=mL,mj=(0,n8.dual)(2,tB(dz)),mq=mj,mG=tN(dQ),mK=mG,mY=(0,n8.dual)(2,tq(d4)),mV=mY(n8.identity),mB=mV,mH=tG(d4),mz=mH,mX=h9,mJ=h7,m$="TaskEither";function mZ(n,t){var e=(0,nN.ap)(n,tk.getApplicativeValidation(t));return{URI:m$,_E:void 0,map:mP,ap:function(n,t){return(0,n8.pipe)(n,e(t))},of:mX}}function mQ(n){var t=tH(d4,n);return{URI:m$,_E:void 0,map:mP,alt:function(n,e){return(0,n8.pipe)(n,t(e))}}}var m0=function(n){var t=tk.getCompactable(n);return{URI:m$,_E:void 0,compact:th(dz,t),separate:tm(dz,t,tk.Functor)}};function m1(n){var t=tk.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:mP,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 m2={URI:m$,map:mP},m8=(0,n8.dual)(2,(0,tp.as)(m2)),m5=(0,tp.asUnit)(m2),m3=(0,tp.flap)(m2),m4={URI:m$,of:mX},m7={URI:m$,map:mP,ap:mF},m9=(0,nN.apFirst)(m7),m6=m9,vn=(0,nN.apSecond)(m7),vt=vn,ve={URI:m$,map:mP,ap:mF,of:mX},vr={URI:m$,map:mP,ap:mU},vi={URI:m$,map:mP,ap:mU,of:mX},vu={URI:m$,map:mP,ap:mF,chain:mY},vo={URI:m$,map:mP,ap:mF,chain:mY,of:mX},va={URI:m$,map:mP,ap:mF,chain:mY,of:mX,fromIO:mr},vc={URI:m$,map:mP,ap:mF,chain:mY,of:mX,fromIO:mr,fromTask:mi},vf={URI:m$,map:mP,ap:mF,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:mP,alt:mD},vb=(0,eb.fromOption)(vl),v_=(0,eb.fromOptionK)(vl),vI=(0,eb.chainOptionK)(vl,vu),vR=vI,vS={fromEither:vl.fromEither},vw=ew.uL(vS),vx=ew.WE(vS),vM={flatMap:mY},vO={fromIO:vp.fromIO},vT=ew.ny(vS,vM),vE=ew.hU(vS,vM),vk=ew.iu(vS,vM),vC=ew.we(vO,vM),vW=ew.D9({fromTask:mi},vM),vP=(0,n8.dual)(2,function(n,t){return mY(n,mW(t))}),vF=(0,n8.dual)(3,function(n,t,e){return mY(n,function(n){return ma(function(){return e(n)})(t(n))})}),vU=vk,vD=vk,vA=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=vC,vV=vm,vB=il(vd),vH=vW,vz=vv,vX=vP,vJ=vP;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(ew.t$(n)):e(ew.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(ew.F4),v1=(0,tp.bindTo)(m2),v2=(0,tp.let)(m2),v8=tu.bind(vu),v5=v8,v3=(0,nN.apS)(m7),v4=v3,v7=mX(ew.Xl),v9=function(n){return(0,n8.flow)(sv(n),dq(tk.traverseReadonlyNonEmptyArrayWithIndex(n8.SK)))},v6=function(n){var t=v9(n);return function(n){return ew.Od(n)?t(n):v7}},gn=function(n){return function(t){return function(){return ew.Gb(t).reduce(function(t,e,r){return t.then(function(i){return ew.nM(i)?t:n(r+1,e)().then(function(n){return ew.nM(n)?n:(i.right.push(n.right),i)})})},n(0,ew.YM(t))().then(tk.map(ew.ri)))}}},gt=function(n){var t=gn(n);return function(n){return ew.Od(n)?t(n):v7}},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=mw,gs=mw,gh={URI:m$,bimap:mL,mapLeft:mj,map:mP,of:mX,ap:mF,chain:mY,alt:mD,fromIO:mr,fromTask:mi,throwError:mJ},gm={URI:m$,bimap:mL,mapLeft:mj,map:mP,of:mX,ap:mU,chain:mY,alt:mD,fromIO:mr,fromTask:mi,throwError:mJ},gv=(0,nN.getApplySemigroup)(vr),gg=(0,nG.getApplicativeMonoid)(vi),gy=function(n){return(0,nN.getApplySemigroup)(d8)(tk.getSemigroup(n))};function gb(n){var t=mZ(d2,n),e=mQ(n);return{URI:m$,_E:void 0,map:mP,ap:t.ap,of:mX,chain:mY,bimap:mL,mapLeft:mj,alt:e.alt,fromIO:mr,fromTask:mi,throwError:mJ}}var g_=eA,gI=tW(s0),gR=tC(s0),gS=(0,n8.flow)(h6,g_),gw=(0,n8.flow)(mn,g_),gx=function(n){return(0,n8.flow)(n,h9)},gM=function(n){return(0,n8.flow)(n,h7)},gO=tP(sJ),gT=tF(sJ),gE=(0,n8.flow)(mt,g_),gk=(0,n8.flow)(me,g_),gC=function(n){return(0,n8.flow)(n,mt)},gW=function(n){return(0,n8.flow)(n,me)},gP=sV,gF=gx,gU=gE,gD=gS,gA=(0,n8.flow)(mo,g_),gL=function(n){return(0,n8.flow)(n,mu)},gN=tz(sJ),gj=gN,gq=tX(s7),gG=gq,gK=gq,gY=gK,gV=tJ(s9),gB=gV,gH=t2(sJ),gz=tU(s0),gX=tD(s0),gJ=tA(s9),g$=eO,gZ=eT,gQ=gZ,g0=t$(s9),g1=g0,g2=(0,n8.dual)(2,tQ(s9)),g8=t0(s9),g5=t1(sJ),g3=function(n){return(0,n8.flow)(n,gA)},g4=function(n){return(0,n8.flow)(n,g_)},g7=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,tB(sJ)),yo=yu,ya=tN(s1),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=tk.getCompactable(n);return{URI:yv,_E:void 0,compact:th(sJ,t),separate:tm(sJ,t,tk.Functor)}};function yy(n){var t=tk.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),yw=(0,tp.flap)(yI),yx={URI:yv,of:yf},yM={URI:yv,map:g9,ap:g6},yO=(0,nN.apFirst)(yM),yT=yO,yE=(0,nN.apSecond)(yM),yk=yE,yC={URI:yv,map:g9,ap:g6,of:yf},yW={URI:yv,map:g9,ap:yn},yP={URI:yv,map:g9,ap:yn,of:yf},yF={URI:yv,map:g9,ap:g6,chain:yl},yU={URI:yv,map:g9,ap:g6,chain:yl,of:yf},yD={URI:yv,map:g9,ap:g6,chain:yl,of:yf,fromIO:gU},yA={URI:yv,map:g9,ap:g6,chain:yl,of:yf,fromIO:gU,fromTask:gD},yL={URI:yv,map:g9,ap:g6,chain:yl,of:yf,throwError:ym},yN={URI:yv,fromEither:gP},yj={URI:yv,fromIO:gU},yq={URI:yv,fromIO:gU,fromTask:gD},yG={URI:yv,fromReader:gF},yK=(0,n8.dual)(2,tu.tap(yF)),yY=(0,n8.dual)(2,(0,eb.tapEither)(yN,yF)),yV=(0,n8.dual)(2,eS(yj,yF)),yB=(0,n8.dual)(2,is(yq,yF)),yH=(0,n8.dual)(2,rM(yG,yF)),yz=(0,n8.dual)(2,function(n,t){return yK(n,g7(t))}),yX=(0,n8.dual)(2,function(n,t){return yK(n,g4(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),y1=rR(yG),y2=rS(yG),y8=yH,y5=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 gO(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 gC(n.apply(void 0,t))}},br=y$,bi=y$,bu=(0,eb.fromOption)(yN),bo=(0,eb.fromOptionK)(yN),ba=(0,eb.chainOptionK)(yN,yF),bc=ba,bf={fromEither:yN.fromEither},bl=ew.uL(bf),bp=ew.WE(bf),bd={flatMap:yl},bs=ew.ny(bf,bd),bh=ew.hU(bf,bd),bm=ew.iu(bf,bd),bv=(0,n8.dual)(2,function(n,t){return yl(n,g4(t))}),bg=(0,n8.dual)(2,function(n,t){return yl(n,y6(t))}),by=ew.we({fromIO:gU},bd),bb=ew.D9({fromTask:gD},bd),b_=ew.on({fromReader:gF},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,g7(t))}),bw=bm,bx=bm,bM=yY,bO=yY,bT=bv,bE=bv,bk=bg,bC=bg,bW=(0,eb.fromPredicate)(yN),bP=(0,eb.filterOrElse)(yN,yF),bF=bP,bU=(0,eb.fromEitherK)(yN),bD=e_(yj),bA=by,bL=yV,bN=il(yq),bj=bb,bq=yB,bG=b_,bK=b_,bY=bI,bV=bI,bB=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(ew.F4),bQ=(0,tp.bindTo)(yI),b0=(0,tp.let)(yI),b1=tu.bind(yF),b2=b1,b8=(0,nN.apS)(yM),b5=b8,b3=yf(ew.Xl),b4=function(n){return(0,n8.flow)(rf(n),eF(v9(n8.SK)))},b7=function(n){var t=b4(n);return function(n){return ew.Od(n)?t(n):b3}},b9=function(n){return(0,n8.flow)(rf(n),eF(gn(n8.SK)))},b6=function(n){var t=b9(n);return function(n){return ew.Od(n)?t(n):b3}},_n=b7,_t=function(n){return b7(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=g2,_p=g2,_d={URI:yv,map:g9,of:yf,ap:g6,chain:yl,alt:yt,bimap:yr,mapLeft:yu,fromIO:gU,fromTask:gD,throwError:ym},_s={URI:yv,map:g9,of:yf,ap:yn,chain:yl,alt:yt,bimap:yr,mapLeft:yu,fromIO:gU,fromTask:gD,throwError:ym},_h=(0,nN.getApplySemigroup)(yW),_m=(0,nG.getApplicativeMonoid)(yP),_v=function(n){return(0,nN.getApplySemigroup)(s3)(tk.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:gU,fromTask:gD,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 _w(n){return n[0]}function _x(n){return n[1]}var _M=function(n){return[_x(n),n[0]]};function _O(n){return{URI:_0,_E:void 0,map:_F,ap:function(t,e){return[t[0](e[0]),n.concat(_x(t),_x(e))]}}}var _T=function(n){return function(t){return[t,n.empty]}};function _E(n){return{URI:_0,_E:void 0,map:_F,ap:_O(n).ap,of:_T(n)}}function _k(n){return{URI:_0,_E:void 0,map:_F,ap:_O(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 _C(n){var t=_k(n);return{URI:_0,_E:void 0,map:_F,ap:t.ap,chain:t.chain,of:_T(n)}}function _W(n){var t=_k(n);return{URI:_0,_E:void 0,map:_F,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 _P=function(n,t){return(0,n8.pipe)(n,_V(t))},_F=function(n,t){return(0,n8.pipe)(n,_K(t))},_U=function(n,t,e){return(0,n8.pipe)(n,_G(t,e))},_D=function(n,t){return(0,n8.pipe)(n,_Y(t))},_A=function(n,t){return(0,n8.pipe)(n,_B(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))]}},_V=function(n){return function(t){return[t[0],_x(n)]}},_B=function(n){return function(t){return[n(t),_x(t)]}},_H=_w,_z=_B(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",_1={URI:_0,map:_F},_2=(0,tp.flap)(_1),_8=_K,_5=_Y,_3={URI:_0,bimap:_U,mapLeft:_D},_4={URI:_0,compose:_P},_7={URI:_0,map:_F,extend:_A,extract:_H},_9={URI:_0,reduce:_L,foldMap:_N,reduceRight:_j},_6={URI:_0,map:_F,reduce:_L,foldMap:_N,reduceRight:_j,traverse:_q,sequence:_Q},In={URI:_0,compose:_P,map:_F,bimap:_U,mapLeft:_D,extract:_H,extend:_A,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?ew.G([e[n],n+1]):ew.YP})}}var Id=_R.upsertAt,Is=_R.has;function Ih(n){return function(t){if(!ew.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 ew.YP;var r=Object.assign({},e);return r[n]=t(e[n]),ew.G(r)}};function Ig(n){var t=Ih(n);return function(e){var r=Ib(n,e);return ew.Wi(r)?ew.YP:ew.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 Iw(){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 IM(n){return _R.traverseWithIndex(n)}function IO(n){return _R.traverse(n)}function IT(n){return _R.sequence(n)}var IE=function(n){var t=IO(n);return function(e){return function(r){return n.map((0,n8.pipe)(r,t(e)),Ra)}}},Ik=function(n){var t=IO(n);return function(e){return function(r){return n.map((0,n8.pipe)(r,t(e)),Rc)}}},IC=_R.partitionMapWithIndex;function IW(n){return _R.partitionWithIndex(n)}var IP=_R.filterMapWithIndex;function IF(n){return _R.filterWithIndex(n)}function IU(n,t){return _R.fromFoldable(n,t)}var ID=Il,IA=function(n){return IU(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)}},IV=_R._map,IB=_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,I8=_R._partitionMapWithIndex,I5=_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:IV},Rh=(0,tp.flap)(Rs),Rm={URI:Rf,map:IV,mapWithIndex:IB},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:IV,compact:Ra,separate:Rc,filter:IJ,filterMap:I$,partition:IZ,partitionMap:IQ},R_={URI:Rf,map:IV,mapWithIndex:IB,compact:Ra,separate:Rc,filter:IJ,filterMap:I$,partition:IZ,partitionMap:IQ,filterMapWithIndex:I3,filterWithIndex:I4,partitionMapWithIndex:I8,partitionWithIndex:I5},RI=function(n){return{URI:Rf,map:IV,reduce:IH(n),foldMap:Iz(n),reduceRight:IX(n),traverse:I7(n),sequence:I9(n)}},RR=function(n){return{URI:Rf,map:IV,mapWithIndex:IB,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:IV,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)}},Rw=function(n){var t=IG(n);return{concat:function(n,e){return t(e)(n)}}},Rx=function(n){return{concat:Rw(n).concat,empty:{}}},RM=function(n){var t=IK(n);return{concat:function(n,e){return t(e)(n)}}},RO=function(){return{concat:function(n,t){return IY(t)(n)}}},RT={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)},Rk={URI:Rf,map:IV,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord),traverse:I7(Ie.Ord),sequence:IT},RC={URI:Rf,map:IV,mapWithIndex:IB,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:IT,traverseWithIndex:I6(Ie.Ord)},RW=(0,Ir.witherDefault)(Rk,Ry),RP=(0,Ir.wiltDefault)(Rk,Ry),RF={URI:Rf,map:IV,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord),traverse:I7(Ie.Ord),sequence:IT,compact:Ra,separate:Rc,filter:IJ,filterMap:I$,partition:IZ,partitionMap:IQ,wither:RW,wilt:RP},RU={},RD=Id,RA=_R.hasOwnProperty,RL={URI:Rf,map:IV,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord),traverse:I7(Ie.Ord),sequence:IT,compact:Ra,separate:Rc,filter:IJ,filterMap:I$,partition:IZ,partitionMap:IQ,mapWithIndex:IB,reduceWithIndex:I0(Ie.Ord),foldMapWithIndex:I1(Ie.Ord),reduceRightWithIndex:I2(Ie.Ord),filterMapWithIndex:I3,filterWithIndex:I4,partitionMapWithIndex:I8,partitionWithIndex:I5,traverseWithIndex:I6(Ie.Ord),wither:RW,wilt:RP},RN=function(n){return function(t){return ew.pC(n(t))}},Rj=function(n){return function(t){return ew.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)}}},RV=function(){return function(n){return!1}},RB=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)ew.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,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 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,n8.pipe)(n,e(t))},ap:function(n,e){return(0,n8.pipe)(n,t(e))},of:R4(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=R4(yx);function Sc(n){return Sw(gS(n))}function Sf(n){return Sw(gw(n))}function Sl(n){return Sw(gx(n))}function Sp(n){return Sw(gM(n))}function Sd(n){return Sw(gE(n))}function Ss(n){return Sw(gk(n))}var Sh=function(n){return(0,n8.flow)(n,gR)},Sm=function(n){return function(t){return gI(n(t)[0])}},Sv=tk.match(function(n){return So(n)},Sa),Sg=Sl,Sy=Sd,Sb=Sc,S_=St(yx),SI=function(n){return Sw(g_(n))},SR=function(n){return Sw(gA(n))},SS=function(n){return Sw(gL(n))},Sw=Se(yI),Sx=function(n){return function(t){return(0,n8.flow)(t,eO(n))}},SM=function(n){return function(t){return function(e){return n(e)(t)(e)}}},SO=SM,ST=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))}},Sk=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Sw(n.apply(void 0,t))}},SC=function(n){return function(t){return SV(t,Sk(n))}},SW=SC,SP=function(n,t){return(0,n8.pipe)(n,SL(t))},SF=function(n,t){return(0,n8.pipe)(n,Sq(t))},SU=function(n,t){return function(e){return(0,n8.pipe)(n(e),ys(function(){return t()(e)}))}},SD=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]}))}},SA=function(n,t){return function(e){return(0,n8.pipe)(n(e),yo(t))}},SL=R7(yI),SN=function(n,t){return function(e){return SD(e,n,t)}},Sj=function(n){return function(t){return SA(t,n)}},Sq=R9(yF),SG=Sq,SK=Sa,SY={fromEither:Sv},SV=(0,n8.dual)(2,Sn(yU)),SB={flatMap:SV},SH=(0,n8.dual)(2,function(n,t){return SV(n,function(n){return SE(t)(n)})}),Sz=ew.we({fromIO:Sy},SB),SX=ew.D9({fromTask:Sb},SB),SJ=ew.on({fromReader:Sg},SB),S$=(0,n8.dual)(2,function(n,t){return SV(n,function(n){return ST(t)(n)})}),SZ=(0,n8.dual)(2,ew.iu(SY,SB)),SQ=ew.hU(SY,SB),S0=(0,n8.dual)(2,function(n,t){return SV(n,function(n){return Sk(t)(n)})}),S1=(0,n8.dual)(2,function(n,t){return SV(n,wm(t))}),S2=SV(n8.identity),S8=S2,S5=function(n){return function(t){return function(e){return(0,n8.pipe)(t(e),yh(function(){return n()(e)}))}}},S3=S5,S4=So,S7="StateReaderTaskEither",S9={URI:S7,map:SP},S6=(0,n8.dual)(2,(0,tp.as)(S9)),wn=(0,tp.asUnit)(S9),wt=(0,tp.flap)(S9),we={URI:S7,of:SK},wr={URI:S7,map:SP,ap:SF},wi=(0,nN.apFirst)(wr),wu=wi,wo=(0,nN.apSecond)(wr),wa=wo,wc={URI:S7,map:SP,ap:SF,of:SK},wf={URI:S7,map:SP,ap:SF,chain:SV},wl={URI:S7,fromState:S_},wp=ir(wl),wd=ii(wl),ws=iu(wl),wh=io(wl),wm=ia(wl),wv=ic(wl,wf),wg={URI:S7,map:SP,ap:SF,of:SK,chain:SV},wy={URI:S7,map:SP,ap:SF,of:SK,chain:SV,fromIO:Sy},wb={URI:S7,map:SP,ap:SF,of:SK,chain:SV,fromIO:Sy,fromTask:Sb},w_={URI:S7,map:SP,ap:SF,of:SK,chain:SV,throwError:S4},wI={URI:S7,fromEither:Sv},wR={URI:S7,fromIO:Sy},wS={URI:S7,fromIO:Sy,fromTask:Sb},ww={URI:S7,fromReader:Sg},wx=(0,n8.dual)(2,tu.tap(wf)),wM=(0,n8.dual)(2,(0,eb.tapEither)(wI,wf)),wO=(0,n8.dual)(2,eS(wR,wf)),wT=(0,n8.dual)(2,is(wS,wf)),wE=(0,n8.dual)(2,rM(ww,wf)),wk={URI:S7,bimap:SD,mapLeft:SA},wC={URI:S7,map:SP,alt:SU},wW=rI(ww),wP=rR(ww),wF=rS(ww),wU=SJ,wD=SJ,wA=wE,wL=wE,wN=(0,eb.fromOption)(wI),wj=(0,eb.fromOptionK)(wI),wq=(0,eb.chainOptionK)(wI,wf),wG=wq,wK=SZ,wY=SZ,wV=wM,wB=wM,wH=(0,eb.fromPredicate)(wI),wz=(0,eb.filterOrElse)(wI,wf),wX=wz,wJ=(0,eb.fromEitherK)(wI),w$=e_(wR),wZ=Sz,wQ=wO,w0=SH,w1=SH,w2=S$,w8=S$,w5=il(wS),w3=SX,w4=wT,w7=Sr(yI),w9=Si(yI),w6=(0,tp.bindTo)(S9),xn=(0,tp.let)(S9),xt=tu.bind(wf),xe=xt,xr=(0,nN.apS)(wr),xi=xr,xu=function(n){return function(t){return function(e){return function(r){return function(){return ew.Gb(t).reduce(function(t,e,i){return t.then(function(u){return ew.nM(u)?t:n(i+1,e)(u.right[1])(r)().then(function(n){if(ew.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,ew.YM(t))(e)(r)().then(tk.map(function(n){return[[n[0]],n[1]]})))}}}}},xo=function(n){var t=xu(n);return function(n){return ew.Od(n)?t(n):SK(ew.Xl)}},xa=xo,xc=function(n){return xo(function(t,e){return n(e)})},xf=xc(n8.identity),xl=SV,xp=SV,xd=wx,xs=wx,xh={URI:S7,map:SP,of:SK,ap:SF,chain:SV,bimap:SD,mapLeft:SA,alt:SU,fromIO:Sy,fromTask:Sb,throwError:S4},xm={URI:S7,map:SP,of:SK,ap:SF,chain:SV,bimap:SD,mapLeft:SA,alt:SU,fromIO:Sy,fromTask:Sb,throwError:S4},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,xO(t))},xw=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)},xM=xw(n8.identity),xO=function(n){return function(t){return{peek:function(e){return n(t.peek(e))},pos:t.pos}}},xT="Store",xE={URI:xT,map:xS},xk=(0,tp.flap)(xE),xC={URI:xT,map:xS,extend:function(n,t){return(0,n8.pipe)(n,xw(t))},extract:xx},xW=xC;function xP(n,t){return function(e,r){return t.compose(n.second(r),n.first(e))}}function xF(n,t){var e=xP(n,t);return function(r,i){return t.compose(e(r,i),n.promap(t.id(),n8.identity,function(n){return[n,n]}))}}function xU(n){return xP(n,n)}function xD(n){return xF(n,n)}var xA=function(){return{concat:function(n,t){return Object.assign({},n,t)}}},xL=function(n){return function(t){var e={};for(var r in t)ew.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=aB(dZ),xG=dK,xK=aH(dZ),xY=function(n){return xV(dD(n))},xV=aj(dz),xB=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(ew.G)];case 1:return[2,t.sent()];case 2:return t.sent(),[2,ew.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 x2(function(){return n.apply(void 0,t)})}},x5=aG(dZ),x3=aK(d4),x4=aY(dZ),x7=aV(d4),x9=a$(dz),x6=aZ(dQ),Mn=xj,Mt=(0,n8.dual)(2,a0(d4)),Me={flatMap:Mt},Mr=ew.we({fromIO:xY},Me),Mi=ew.D9({fromTask:xV},Me),Mu=Mt(n8.identity),Mo=a1(d4),Ma=Mo,Mc=aN(dZ),Mf=Mc(),Ml=th(dz,td.Compactable),Mp=tm(dz,td.Compactable,td.Functor),Md=en(dz,td.Filterable),Ms=et(dz,td.Filterable),Mh=ee(dz,td.Filterable),Mm=er(dz,td.Filterable),Mv=function(n,t){return(0,n8.pipe)(n,x9(t))},Mg=function(n,t){return(0,n8.pipe)(n,x6(t))},My=function(n,t){return(0,n8.pipe)(n,Mo(t))},Mb="TaskOption",M_={URI:Mb,map:Mv},MI=(0,n8.dual)(2,(0,tp.as)(M_)),MR=(0,tp.asUnit)(M_),MS=(0,tp.flap)(M_),Mw={URI:Mb,of:Mn},Mx={URI:Mb,map:Mv,ap:Mg},MM=(0,nN.apFirst)(Mx),MO=(0,nN.apSecond)(Mx),MT={URI:Mb,map:Mv,ap:Mg,of:Mn},ME=function(n,t){return Mt(n,function(n){return(0,n8.pipe)(t,x9(n))})},Mk={URI:Mb,map:Mv,ap:ME},MC={URI:Mb,map:Mv,ap:ME,of:Mn},MW={URI:Mb,map:Mv,ap:Mg,chain:Mt},MP={URI:Mb,fromEither:xK},MF={URI:Mb,fromIO:xY},MU={URI:Mb,fromIO:xY,fromTask:xV},MD=(0,n8.dual)(2,tu.tap(MW)),MA=(0,n8.dual)(2,(0,eb.tapEither)(MP,MW)),ML=(0,n8.dual)(2,eS(MF,MW)),MN=(0,n8.dual)(2,is(MU,MW)),Mj={URI:Mb,map:Mv,alt:My},Mq={URI:Mb,zero:Mc},MG=(0,a8.guard)(Mq,Mw),MK={URI:Mb,map:Mv,ap:Mg,of:Mn,alt:My,zero:Mc},MY={URI:Mb,map:Mv,ap:Mg,of:Mn,chain:Mt},MV={URI:Mb,map:Mv,ap:Mg,of:Mn,chain:Mt,fromIO:xY},MB={URI:Mb,map:Mv,ap:Mg,of:Mn,chain:Mt,fromIO:xY,fromTask:xV},MH={URI:Mb,compact:Ml,separate:Mp},Mz={URI:Mb,map:Mv,compact:Ml,separate:Mp,filter:function(n,t){return(0,n8.pipe)(n,Md(t))},filterMap:function(n,t){return(0,n8.pipe)(n,Ms(t))},partition:function(n,t){return(0,n8.pipe)(n,Mh(t))},partitionMap:function(n,t){return(0,n8.pipe)(n,Mm(t))}},MX=e_(MF),MJ=Mr,M$=ML,MZ=(0,eb.fromEitherK)(MP),MQ=(0,eb.chainEitherK)(MP,MW),M0=MA,M1=il(MU),M2=Mi,M8=MN,M5=Mn(ew.F4),M3=(0,tp.bindTo)(M_),M4=(0,tp.let)(M_),M7=tu.bind(MW),M9=(0,nN.apS)(Mx),M6=Mn(ew.Xl),On=function(n){return(0,n8.flow)(sv(n),dq(td.traverseReadonlyNonEmptyArrayWithIndex(n8.SK)))},Ot=function(n){var t=On(n);return function(n){return ew.Od(n)?t(n):M6}},Oe=function(n){return function(t){return function(){return ew.Gb(t).reduce(function(t,e,r){return t.then(function(i){return ew.Wi(i)?t:n(r+1,e)().then(function(n){return ew.Wi(n)?n:(i.value.push(n.value),i)})})},n(0,ew.YM(t))().then(td.map(ew.ri)))}}},Or=function(n){var t=Oe(n);return function(n){return ew.Od(n)?t(n):M6}},Oi=Ot,Ou=function(n){return Ot(function(t,e){return n(e)})},Oo=Ou(n8.identity),Oa=Or,Oc=function(n){return Or(function(t,e){return n(e)})},Of=Oc(n8.identity),Ol=Mt,Op=MD,Od=function(n){return"Left"===n._tag},Os=function(n){return"Right"===n._tag};function Oh(n){return"Both"===n._tag}function Om(n){return{_tag:"Left",left:n}}function Ov(n){return{_tag:"Right",right:n}}function Og(n,t){return{_tag:"Both",left:n,right:t}}var Oy=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)}}},Ob=Oy,O_=Oy,OI=O_,OR=O_(Ov,Om,function(n,t){return Og(t,n)});function OS(n,t){return{show:O_(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 Ow(n,t){return(0,t3.fromEquals)(function(e,r){return Od(e)?Od(r)&&n.equals(e.left,r.left):Os(e)?Os(r)&&t.equals(e.right,r.right):Oh(r)&&n.equals(e.left,r.left)&&t.equals(e.right,r.right)})}function Ox(n,t){return{concat:function(e,r){return Od(e)?Od(r)?Om(n.concat(e.left,r.left)):Os(r)?Og(e.left,r.right):Og(n.concat(e.left,r.left),r.right):Os(e)?Od(r)?Og(r.left,e.right):Os(r)?Ov(t.concat(e.right,r.right)):Og(r.left,t.concat(e.right,r.right)):Od(r)?Og(n.concat(e.left,r.left),e.right):Os(r)?Og(e.left,t.concat(e.right,r.right)):Og(n.concat(e.left,r.left),t.concat(e.right,r.right))}}}var OM=function(n){return{URI:OQ,_E:void 0,map:OA,ap:function(t,e){return Od(t)?Od(e)?Om(n.concat(t.left,e.left)):Os(e)?Om(t.left):Om(n.concat(t.left,e.left)):Os(t)?Od(e)?Om(e.left):Os(e)?Ov(t.right(e.right)):Og(e.left,t.right(e.right)):Od(e)?Om(n.concat(t.left,e.left)):Os(e)?Og(t.left,t.right(e.right)):Og(n.concat(t.left,e.left),t.right(e.right))}}};function OO(n){return{URI:OQ,_E:void 0,map:OA,ap:OM(n).ap,of:OZ}}function OT(n){return{URI:OQ,_E:void 0,map:OA,ap:OM(n).ap,chain:function(t,e){if(Od(t))return t;if(Os(t))return e(t.right);var r=e(t.right);return Od(r)?Om(n.concat(t.left,r.left)):Os(r)?Og(t.left,r.right):Og(n.concat(t.left,r.left),r.right)}}}function OE(n){var t=OT(n);return{URI:OQ,_E:void 0,map:OA,of:OZ,ap:t.ap,chain:t.chain,throwError:Om}}function Ok(n){return Od(n)?ew.G(n.left):Os(n)?ew.YP:ew.G(n.left)}function OC(n){return Od(n)?ew.YP:(Os(n),ew.G(n.right))}function OW(n){return function(t){return ew.Wi(t)?Om(n):Og(n,t.value)}}function OP(n){return function(t){return ew.Wi(t)?Ov(n):Og(t.value,n)}}function OF(n){return Od(n)?ew.G(n.left):ew.YP}function OU(n){return Os(n)?ew.G(n.right):ew.YP}var OD=function(n,t){return ew.Wi(n)?ew.Wi(t)?ew.YP:ew.G(Ov(t.value)):ew.Wi(t)?ew.G(Om(n.value)):ew.G(Og(n.value,t.value))},OA=function(n,t){return(0,n8.pipe)(n,OB(t))},OL=function(n,t,e){return(0,n8.pipe)(n,OY(t,e))},ON=function(n,t){return(0,n8.pipe)(n,OV(t))},Oj=function(n,t,e){return(0,n8.pipe)(n,OH(t,e))},Oq=function(n){var t=Oz(n);return function(n,e){return(0,n8.pipe)(n,t(e))}},OG=function(n,t,e){return(0,n8.pipe)(n,OX(t,e))},OK=function(n){var t=OJ(n);return function(n,e){return(0,n8.pipe)(n,t(e))}},OY=function(n,t){return function(e){return Od(e)?Om(n(e.left)):Os(e)?Ov(t(e.right)):Og(n(e.left),t(e.right))}},OV=function(n){return function(t){return Od(t)?Om(n(t.left)):Oh(t)?Og(n(t.left),t.right):t}},OB=function(n){return function(t){return Od(t)?t:Os(t)?Ov(n(t.right)):Og(t.left,n(t.right))}},OH=function(n,t){return function(e){return Od(e)?n:t(n,e.right)}},Oz=function(n){return function(t){return function(e){return Od(e)?n.empty:t(e.right)}}},OX=function(n,t){return function(e){return Od(e)?n:t(e.right,n)}},OJ=function(n){return function(t){return function(e){return Od(e)?n.of(e):Os(e)?n.map(t(e.right),Ov):n.map(t(e.right),function(n){return Og(e.left,n)})}}},O$=function(n){return function(t){return Od(t)?n.of(t):Os(t)?n.map(t.right,Ov):n.map(t.right,function(n){return Og(t.left,n)})}},OZ=Ov,OQ="These",O0={URI:OQ,map:OA},O1=(0,tp.flap)(O0),O2={URI:OQ,of:OZ},O8={URI:OQ,bimap:OL,mapLeft:ON},O5={URI:OQ,fromThese:n8.identity},O3={URI:OQ,reduce:Oj,foldMap:Oq,reduceRight:OG},O4={URI:OQ,map:OA,reduce:Oj,foldMap:Oq,reduceRight:OG,traverse:OK,sequence:O$},O7={URI:OQ,fromEither:n8.identity},O9=(0,eb.fromPredicate)(O7),O6=(0,eb.fromOption)(O7),Tn=(0,eb.fromOptionK)(O7),Tt=function(n){return function(t){return function(e){return!Od(e)&&n.equals(t,e.right)}}},Te=function(n){return function(t){return!Od(t)&&n(t.right)}},Tr=function(n,t){return function(e){return Od(e)?[e.left,t()]:Os(e)?[n(),e.right]:[e.left,e.right]}},Ti=function(n,t){return Tr(function(){return n},function(){return t})},Tu=OZ(ew.Xl),To=function(n){return function(t){return function(e){var r=ew.YP,i=t(0,ew.YM(e));if(Od(i))return i;Oh(i)&&(r=ew.G(i.left));for(var u=[i.right],o=1;o<e.length;o++){var a=t(o,e[o]);if(Od(a))return a;Oh(a)&&(r=ew.Wi(r)?ew.G(a.left):ew.G(n.concat(r.value,a.left))),u.push(a.right)}return ew.Wi(r)?Ov(u):Og(r.value,u)}}},Ta=function(n){return function(t){var e=To(n)(t);return function(n){return ew.Od(n)?e(n):Tu}}},Tc={URI:OQ,map:OA,bimap:OL,mapLeft:ON,reduce:Oj,foldMap:Oq,reduceRight:OG,traverse:OK,sequence:O$};function Tf(n){return(0,n8.flow)(Ov,n.of)}function Tl(n){return(0,n8.flow)(Om,n.of)}function Tp(n){return(0,n8.flow)(Og,n.of)}function Td(n){return function(t){return n.map(t,Ov)}}function Ts(n){return function(t){return n.map(t,Om)}}function Th(n){return(0,tp.map)(n,O0)}function Tm(n,t){return(0,nN.ap)(n,OM(t))}function Tv(n,t){var e=Tl(n);return function(r){return function(i){return n.chain(i,O_(e,r,function(e,i){return n.map(r(i),O_(function(n){return Om(t.concat(e,n))},function(n){return Og(e,n)},function(n,r){return Og(t.concat(e,n),r)}))}))}}}function Tg(n){return function(t,e){return function(r){return n.map(r,OY(t,e))}}}function Ty(n){return function(t){return function(e){return n.map(e,OV(t))}}}function Tb(n){return function(t,e,r){return function(i){return n.map(i,O_(t,e,r))}}}function T_(n){return function(t,e,r){return function(i){return n.chain(i,O_(t,e,r))}}}function TI(n){return function(t){return n.map(t,OR)}}function TR(n){return function(t,e){return function(r){return n.map(r,Tr(t,e))}}}function TS(n){var t=Th(n),e=Tg(n),r=Ty(n),i=T_(n),u=TR(n),o=Tf(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:TI(n),rightM:Td(n),leftM:Ts(n),left:Tl(n),right:Tf(n),both:Tp(n),toTuple:function(n,t,e){return(0,n8.pipe)(n,u(function(){return t},function(){return e}))},getMonad:function(t){var e=Tm(n,t),r=Tv(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 Tw=Tl(dZ),Tx=Tf(dZ),TM=Tp(dZ),TO=Td(dz),TT=Ts(dz),TE=(0,n8.flow)(dD,TO),Tk=(0,n8.flow)(dD,TT),TC=dK,TW=dK,TP=TE,TF=dD,TU=TO,TD=Tb(dz),TA=TD,TL=T_(d4),TN=TL,Tj=TN,Tq=Tj,TG=TI(dz),TK=function(n,t){return(0,n8.pipe)(n,TB(t))},TY=function(n,t,e){return(0,n8.pipe)(n,TH(t,e))},TV=function(n,t){return(0,n8.pipe)(n,Tz(t))},TB=Th(dz),TH=Tg(dz),Tz=Ty(dz),TX=Tx,TJ="TaskThese",T$=function(n,t){var e=Tm(n,t);return{URI:TJ,_E:void 0,map:TK,ap:function(n,t){return(0,n8.pipe)(n,e(t))}}};function TZ(n,t){return{URI:TJ,_E:void 0,map:TK,ap:T$(n,t).ap,of:TX}}function TQ(n){var t=T$(d2,n),e=Tv(d4,n);return{URI:TJ,_E:void 0,map:TK,ap:t.ap,chain:function(n,t){return(0,n8.pipe)(n,e(t))}}}function T0(n){var t=TZ(d2,n),e=TQ(n);return{URI:TJ,_E:void 0,map:TK,ap:t.ap,of:TX,chain:e.chain,fromIO:TP,fromTask:TU}}var T1={URI:TJ,map:TK},T2=(0,tp.flap)(T1),T8={URI:TJ,of:TX},T5={URI:TJ,bimap:TY,mapLeft:TV},T3={URI:TJ,fromEither:TC},T4=(0,eb.fromOption)(T3),T7=(0,eb.fromOptionK)(T3),T9=(0,eb.fromPredicate)(T3),T6={URI:TJ,fromThese:TW},En=ih(T6),Et={URI:TJ,fromIO:TP},Ee=e_(Et),Er={URI:TJ,fromIO:TP,fromTask:TU},Ei=il(Er),Eu=TR(dz),Eo=TX(ew.Xl),Ea=function(n){var t=To(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 ew.Od(n)?e(n):Eo}}},Ef=function(n){return function(t){return function(e){return function(){return ew.Gb(e).reduce(function(e,r,i){return e.then(function(u){return Od(u)?e:t(i+1,r)().then(function(t){if(Od(t))return t;if(Oh(t)){var e=u.right;return e.push(t.right),Oh(u)?Og(n.concat(u.left,t.left),e):Og(t.left,e)}return u.right.push(t.right),u})})},t(0,ew.YM(e))().then(OB(ew.ri)))}}}},El=function(n){return function(t){var e=Ef(n)(t);return function(n){return ew.Od(n)?e(n):Eo}}},Ep={URI:TJ,map:TK},Ed={URI:TJ,bimap:TY,mapLeft:TV},Es=function(n,t){return Eu(function(){return n},function(){return t})},Eh={URI:TJ,map:TK,bimap:TY,mapLeft:TV},Em=function(n,t){return(0,nN.getApplySemigroup)(d8)(Ox(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",Ew={URI:ES,map:EI},Ex=(0,tp.flap)(Ew),EM=Ew;function EO(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 ET(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=EO(n,t),u=ET(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 Ek(n,t){return void 0===t&&(t=[]),{value:n,forest:t}}function EC(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 EP=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+EP(n+(i>1&&!o?"│ ":" "),e.forest)}return r};function EF(n){return EP("\n",n)}function EU(n){return n.value+EF(n.forest)}function ED(n,t){var e=t(n);return{value:e[0],forest:EA(e[1],t)}}function EA(n,t){return n.map(function(n){return ED(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=E1(n);return function(n,e){return(0,n8.pipe)(n,t(e))}},EV=function(n,t,e){return(0,n8.pipe)(n,E2(t,e))},EB=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}},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,n8.pipe)(e.forest[u],E2(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)},E4=function(n){return Ek(n)},E7="Tree",E9={URI:E7,map:Eq},E6=(0,tp.flap)(E9),kn={URI:E7,of:E4},kt={URI:E7,map:Eq,ap:EG},ke=(0,nN.apFirst)(kt),kr=(0,nN.apSecond)(kt),ki={URI:E7,map:Eq,ap:EG,of:E4},ku={URI:E7,map:Eq,ap:EG,chain:EX},ko={URI:E7,map:Eq,ap:EG,of:E4,chain:EX},ka=(0,tu.chainFirst)(ku),kc={URI:E7,reduce:EK,foldMap:EY,reduceRight:EV},kf={URI:E7,map:Eq,reduce:EK,foldMap:EY,reduceRight:EV,traverse:EH,sequence:E3},kl={URI:E7,map:Eq,extend:EB,extract:E8},kp=E4(ew.F4),kd=(0,tp.bindTo)(E9),ks=(0,tp.let)(E9),kh=(0,tu.bind)(ku),km=(0,nN.apS)(kt);function kv(n){var t=function(e,r){return n.equals(e,r.value)||r.forest.some(function(n){return t(e,n)})};return t}var kg=function(n){return function(t){return n(t.value)||t.forest.some(kg(n))}},ky=EX,kb={URI:E7,map:Eq,of:E4,ap:EG,chain:EX,reduce:EK,foldMap:EY,reduceRight:EV,traverse:EH,sequence:E3,extract:E8,extend:EB},k_=_w,kI=_x,kR=function(n){return[kI(n),k_(n)]};function kS(n){return{URI:kJ,_E:void 0,map:kk,ap:function(t,e){return[k_(t)(k_(e)),n.concat(kI(t),kI(e))]}}}var kw=function(n){return function(t){return[t,n.empty]}};function kx(n){var t=kS(n);return{URI:kJ,_E:void 0,map:t.map,ap:t.ap,of:kw(n)}}function kM(n){var t=kS(n);return{URI:kJ,_E:void 0,map:t.map,ap:t.ap,chain:function(t,e){var r=e(k_(t)),i=r[0],u=r[1];return[i,n.concat(kI(t),u)]}}}function kO(n){var t=kM(n);return{URI:kJ,_E:void 0,map:t.map,ap:t.ap,chain:t.chain,of:kw(n)}}function kT(n){var t=kM(n);return{URI:kJ,_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=k_(r);"Left"===u._tag;)i=n.concat(i,kI(r)),u=k_(r=e(u.left));return[u.right,n.concat(i,kI(r))]}}}var kE=function(n,t){return(0,n8.pipe)(n,kq(t))},kk=function(n,t){return(0,n8.pipe)(n,kN(t))},kC=function(n,t,e){return(0,n8.pipe)(n,kL(t,e))},kW=function(n,t){return(0,n8.pipe)(n,kj(t))},kP=function(n,t){return(0,n8.pipe)(n,kG(t))},kF=function(n,t,e){return(0,n8.pipe)(n,kB(t,e))},kU=function(n){var t=kV(n);return function(n,e){return(0,n8.pipe)(n,t(e))}},kD=function(n,t,e){return(0,n8.pipe)(n,kH(t,e))};function kA(n){var t=kz(n);return function(n,e){return(0,n8.pipe)(n,t(e))}}var kL=function(n,t){return function(e){return[t(k_(e)),n(kI(e))]}},kN=function(n){return function(t){return[n(k_(t)),kI(t)]}},kj=function(n){return function(t){return[k_(t),n(kI(t))]}},kq=function(n){return function(t){return[k_(t),kI(n)]}},kG=function(n){return function(t){return[n(t),kI(t)]}},kK=kG(n8.identity),kY=_H,kV=_J,kB=_X,kH=_$,kz=function(n){return function(t){return function(e){return n.map(t(k_(e)),function(n){return[n,kI(e)]})}}},kX=function(n){return function(t){return n.map(k_(t),function(n){return[n,kI(t)]})}},kJ="Tuple",k$={URI:kJ,map:kk},kZ=(0,tp.flap)(k$),kQ={URI:kJ,bimap:kC,mapLeft:kW},k0={URI:kJ,compose:kE},k1={URI:kJ,map:kk,extend:kP,extract:kY},k2={URI:kJ,reduce:kF,foldMap:kU,reduceRight:kD},k8={URI:kJ,map:kk,reduce:kF,foldMap:kU,reduceRight:kD,traverse:kA,sequence:kX},k5=kN,k3=kj,k4={URI:kJ,compose:kE,map:kk,bimap:kC,mapLeft:kW,extract:kY,extend:kP,reduce:kF,foldMap:kU,reduceRight:kD,traverse:kA,sequence:kX};function k7(n,t){var e=(0,nG.getApplicativeComposition)(t,tk.getApplicativeValidation(n));return{map:e.map,ap:e.ap,of:e.of,chain:function(n,e){return t.chain(n,function(n){return ew.nM(n)?t.of(ew.t$(n.left)):e(n.right)})},alt:function(e,r){return t.chain(e,function(e){return ew.tO(e)?t.of(e):t.map(r(),function(t){return ew.nM(t)?ew.t$(n.concat(e.left,t.left)):t})})}}}var k9=It.constant(void 0),k6={concat:k9.concat,empty:void 0},Cn=function(n){return function(){return[void 0,n]}},Ct=function(n){return function(){var t=n(),e=t[0],r=t[1];return[[e,r],r]}},Ce=function(n){return function(){var t=n(),e=t[0];return[e[0],(0,e[1])(t[1])]}},Cr=function(n){return function(t){return function(){var e=t(),r=e[0],i=e[1];return[[r,n(i)],i]}}},Ci=function(n){return function(t){return function(){var e=t();return[e[0],n(e[1])]}}},Cu=function(n,t){return(0,n8.pipe)(n,Co(t))},Co=function(n){return function(t){return function(){var e=t(),r=e[0],i=e[1];return[n(r),i]}}},Ca="Writer",Cc=function(n){return{URI:Ca,_E:void 0,of:function(t){return function(){return[t,n.empty]}}}},Cf=function(n){return{URI:Ca,_E:void 0,map:Cu,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)]}}}},Cl=function(n){var t=Cf(n),e=Cc(n);return{URI:Ca,_E:void 0,map:Cu,ap:t.ap,of:e.of}};function Cp(n){return{URI:Ca,_E:void 0,map:Cu,ap:Cf(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 Cd(n){var t=Cl(n),e=Cp(n);return{URI:Ca,_E:void 0,map:Cu,ap:t.ap,of:t.of,chain:e.chain}}var Cs={URI:Ca,map:Cu},Ch=(0,tp.flap)(Cs),Cm=function(n){return n()[0]},Cv=function(n){return n()[1]},Cg=function(n){return n()[0]},Cy=function(n){return n()[1]},Cb=Cs;function C_(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 O},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 w},iu:function(){return x},nM:function(){return f},ny:function(){return S},on:function(){return T},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 M}});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))})},w=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))})})},M=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromIO(r(t))})})},O=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromTask(r(t))})})},T=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 k},contramap:function(){return a},extend:function(){return s},filter:function(){return I},filterMap:function(){return R},filterMapWithIndex:function(){return M},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 w},partitionMapWithIndex:function(){return T},partitionWithIndex:function(){return O},pipe:function(){return W},pipeable:function(){return C},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 w(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 M(n){return function(t){return function(e){return n.filterMapWithIndex(e,t)}}}function O(n){return function(t){return function(e){return n.partitionWithIndex(e,t)}}}function T(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 k(n){return function(t){return function(e){return n.compose(e,t)}}}function C(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=w(n)),"function"==typeof n.filterWithIndex&&(t.filterWithIndex=x(n),t.filterMapWithIndex=M(n),t.partitionWithIndex=O(n),t.partitionMapWithIndex=T(n)),"function"==typeof n.promap&&(t.promap=E(n)),"function"==typeof n.compose&&(t.compose=k(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))},w=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))},M=function(n,e){return(0,f.pipe)(n,(0,t.partition)(e))},O=function(n,e){return(0,f.pipe)(n,(0,t.partitionMap)(e))},T=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))},k=function(n,e){return(0,f.pipe)(n,(0,t.alt)(e))},C=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))}},P=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceRight)(e,r))},F=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceWithIndex)(e,r))},U=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},D=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceRightWithIndex)(e,r))},A=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 C(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=V(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:k},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:k,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:w,filterMap:x,partition:M,partitionMap:O},t.FilterableWithIndex={URI:t.URI,map:I,mapWithIndex:R,compact:t.compact,separate:t.separate,filter:w,filterMap:x,partition:M,partitionMap:O,partitionMapWithIndex:E,partitionWithIndex:T,filterMapWithIndex:A,filterWithIndex:L},t.Foldable={URI:t.URI,reduce:C,foldMap:W,reduceRight:P},t.FoldableWithIndex={URI:t.URI,reduce:C,foldMap:W,reduceRight:P,reduceWithIndex:F,foldMapWithIndex:U,reduceRightWithIndex:D},t.Traversable={URI:t.URI,map:I,reduce:C,foldMap:W,reduceRight:P,traverse:j,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:I,mapWithIndex:R,reduce:C,foldMap:W,reduceRight:P,reduceWithIndex:F,foldMapWithIndex:U,reduceRightWithIndex:D,traverse:j,sequence:t.sequence,traverseWithIndex:q};var Y=(0,m.witherDefault)(t.Traversable,t.Compactable),V=(0,m.wiltDefault)(t.Traversable,t.Compactable);t.Witherable={URI:t.URI,map:I,compact:t.compact,separate:t.separate,filter:w,filterMap:x,partition:M,partitionMap:O,reduce:C,foldMap:W,reduceRight:P,traverse:j,sequence:t.sequence,wither:Y,wilt:V},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 B=(0,l.let)(t.Functor);t.let=B,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:w,filterMap:x,partition:M,partitionMap:O,mapWithIndex:R,partitionMapWithIndex:E,partitionWithIndex:T,filterMapWithIndex:A,filterWithIndex:L,alt:k,zero:t.zero,unfold:t.unfold,reduce:C,foldMap:W,reduceRight:P,traverse:j,sequence:t.sequence,reduceWithIndex:F,foldMapWithIndex:U,reduceRightWithIndex:D,traverseWithIndex:q,extend:N,wither:Y,wilt:V}},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))},w=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))},M=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:w},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:M},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 O={fromEither:t.FromEither.fromEither};t.liftNullable=s.liftNullable(O),t.liftOption=s.liftOption(O);var T={flatMap:t.flatMap};t.flatMapNullable=s.flatMapNullable(O,T),t.flatMapOption=s.flatMapOption(O,T),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:w,extend:x,chainRec:M,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:M,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))},w=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))},M=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceWithIndex)(e,r))},O=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},T=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:M,foldMapWithIndex:O,reduceRightWithIndex:T},t.Traversable={URI:t.URI,map:g,reduce:I,foldMap:R,reduceRight:S,traverse:w,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:g,mapWithIndex:y,reduce:I,foldMap:R,reduceRight:S,traverse:w,sequence:t.sequence,reduceWithIndex:M,foldMapWithIndex:O,reduceRightWithIndex:T,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 k=(0,l.let)(t.Functor);t.let=k,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:w,sequence:t.sequence,reduceWithIndex:M,foldMapWithIndex:O,reduceRightWithIndex:T,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))}},w=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))},M=function(n,e){return(0,l.pipe)(n,(0,t.filterMap)(e))},O=function(n,e){return(0,l.pipe)(n,(0,t.extend)(e))},T=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:w},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:w,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:O},t.compact=(0,t.flatMap)(l.identity);var k=(0,m.separated)(t.none,t.none);t.separate=function(n){return(0,t.isNone)(n)?k:(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:M,partition:T,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 C=(0,v.witherDefault)(t.Traversable,t.Compactable),W=(0,v.wiltDefault)(t.Traversable,t.Compactable);t.wither=function(n){var t=C(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:M,partition:T,partitionMap:E,wither:C,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 P=(0,p.let)(t.Functor);t.let=P,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:w,extend:O,compact:t.compact,separate:t.separate,filter:x,filterMap:M,partition:T,partitionMap:E,wither:C,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 w(n){var t=I(n);return function(e,r){if(void 0===r){var i=w(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=w;var x=function(n,e){return(0,p.pipe)(n,(0,t.map)(e))},M=function(n,e){return(0,p.pipe)(n,(0,t.mapWithIndex)(e))},O=function(n,e){return(0,p.pipe)(n,(0,t.ap)(e))},T=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))},k=function(n,e){return(0,p.pipe)(n,(0,t.partition)(e))},C=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))},P=function(n,e){return(0,p.pipe)(n,(0,t.partitionMapWithIndex)(e))},F=function(n,e){return(0,p.pipe)(n,(0,t.alt)(e))},U=function(n,e,r){return(0,p.pipe)(n,(0,t.reduce)(e,r))},D=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,p.pipe)(n,e(t))}},A=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))}},V=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 U(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=B(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=w(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:M},t.Apply={URI:t.URI,map:x,ap:O},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:x,ap:O,of:t.of},t.Chain={URI:t.URI,map:x,ap:O,chain:t.flatMap},t.Monad={URI:t.URI,map:x,ap:O,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:F},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:O,of:t.of,alt:F,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:T,filterMap:E,partition:k,partitionMap:C},t.FilterableWithIndex={URI:t.URI,map:x,mapWithIndex:M,compact:t.compact,separate:t.separate,filter:T,filterMap:E,partition:k,partitionMap:C,partitionMapWithIndex:P,partitionWithIndex:W,filterMapWithIndex:q,filterWithIndex:G},t.Foldable={URI:t.URI,reduce:U,foldMap:D,reduceRight:A},t.FoldableWithIndex={URI:t.URI,reduce:U,foldMap:D,reduceRight:A,reduceWithIndex:L,foldMapWithIndex:N,reduceRightWithIndex:j},t.Traversable={URI:t.URI,map:x,reduce:U,foldMap:D,reduceRight:A,traverse:Y,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:x,mapWithIndex:M,reduce:U,foldMap:D,reduceRight:A,reduceWithIndex:L,foldMapWithIndex:N,reduceRightWithIndex:j,traverse:Y,sequence:t.sequence,traverseWithIndex:V},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:O,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:O,chain:t.flatMap,chainRec:t._chainRecBreadthFirst};var B=(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:T,filterMap:E,partition:k,partitionMap:C,reduce:U,foldMap:D,reduceRight:A,traverse:Y,sequence:t.sequence,wither:B,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:O,of:t.of,chain:t.flatMap,filter:T,filterMap:E,partition:k,partitionMap:C,mapWithIndex:M,partitionMapWithIndex:P,partitionWithIndex:W,filterMapWithIndex:q,filterWithIndex:G,alt:F,zero:t.zero,unfold:t.unfold,reduce:U,foldMap:D,reduceRight:A,traverse:Y,sequence:t.sequence,reduceWithIndex:L,foldMapWithIndex:N,reduceRightWithIndex:j,traverseWithIndex:V,extend:K,wither:B,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))}},w=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))}},M=function(n,e){return(0,l.pipe)(n,(0,t.alt)(e))},O=function(n,e,r){return(0,l.pipe)(n,(0,t.reduceWithIndex)(e,r))},T=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))},k=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:w},t.FoldableWithIndex={URI:t.URI,reduce:R,foldMap:S,reduceRight:w,reduceWithIndex:O,foldMapWithIndex:T,reduceRightWithIndex:E},t.Traversable={URI:t.URI,map:y,reduce:R,foldMap:S,reduceRight:w,traverse:x,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:y,mapWithIndex:b,reduce:R,foldMap:S,reduceRight:w,traverse:x,sequence:t.sequence,reduceWithIndex:O,foldMapWithIndex:T,reduceRightWithIndex:E,traverseWithIndex:k},t.Alt={URI:t.URI,map:y,alt:M},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 C=(0,p.let)(t.Functor);t.let=C,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:w,traverse:x,sequence:t.sequence,reduceWithIndex:O,foldMapWithIndex:T,reduceRightWithIndex:E,traverseWithIndex:k,alt:M}},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 w(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 M(n){return function(t){return function(e){return n.filterMapWithIndex(e,t)}}}function O(n){return function(t){return function(e){return n.partitionWithIndex(e,t)}}}function T(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 k(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=w,t.filterWithIndex=x,t.filterMapWithIndex=M,t.partitionWithIndex=O,t.partitionMapWithIndex=T,t.promap=E,t.compose=k,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=w(n)),"function"==typeof n.filterWithIndex&&(t.filterWithIndex=x(n),t.filterMapWithIndex=M(n),t.partitionWithIndex=O(n),t.partitionMapWithIndex=T(n)),"function"==typeof n.promap&&(t.promap=E(n)),"function"==typeof n.compose&&(t.compose=k(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 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 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 nO},Invariant:function(){return nx},Semigroupoid:function(){return nM},URI:function(){return nw},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))},w=function(n){return M(n.get,(0,y.flow)(n.reverseGet,y.constant))},x=function(n){return D((0,y.flow)(n.get,p.some),(0,y.flow)(n.reverseGet,y.constant))},M=function(n,t){return{get:n,set:t}},O=function(n){return D((0,y.flow)(n.get,p.some),n.set)},T=function(n){return function(t){return M(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(C(n))(O(t))}},k=function(n,t){return{getOption:n,reverseGet:t}},C=function(n){return D(n.getOption,function(t){return P(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 P(t)(n)(r)})}))}}})},P=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}))}}},F=function(n){return k(p.fromPredicate(n),y.identity)},U=function(){return k(y.identity,p.some)},D=function(n,t){return{getOption:n,set:t}},A=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=A(n)(t);return function(n){return(0,f.pipe)(e(n),p.getOrElse(function(){return n}))}}},N=function(n){return function(t){return D((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}},V=function(n){return{at:n}},B=function(n,t){return{get:n,reverseGet:t}},H=function(n){return k((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=M,J=function(){return M(y.identity,y.constant)},$=O,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=T,nn=Q,nt=(0,y.flow)(w,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(k(p.fromNullable,y.identity))(n)};function nc(n){return ne(F(n))}var nf=function(n){return function(t){return M(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 M(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 M(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 D(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 D(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 D(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,T(V(function(n){return M(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(U()),ng=ne(k(p.fromEither,l.right)),ny=ne(k(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(D(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(D(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))},nw="monocle-ts/Lens",nx={URI:nw,imap:nS},nM={URI:nw,compose:function(n,t){return Q(n)(t)}},nO={URI:nw,compose:nM.compose,id:J},nT=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 k((0,y.flow)(t.getOption,p.chain(n.getOption)),(0,y.flow)(n.reverseGet,t.reverseGet))}},nk=function(n){return function(t){return t.modifyF(K)(n)}},nC=function(n){return new nL(n.get,n.reverseGet)},nW=function(n){return new nN(n.get,n.set)},nP=function(n){return new nj(n.getOption,n.reverseGet)},nF=function(n){return new nG(n.getOption,n.set)},nU=function(n){return new nK(n.modifyF)},nD=function(n){return new nV(function(t){return nF(n.index(t))})},nA=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 nC(B(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(w(this))},n.prototype.asPrism=function(){return nP(H(this))},n.prototype.asOptional=function(){return nF(x(this))},n.prototype.asTraversal=function(){return nU(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 nB(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 nC((t=this,B((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,w,Q(n)))},n.prototype.composePrism=function(n){return nP((0,f.pipe)(this,H,nE(n)))},n.prototype.composeOptional=function(n){return nF((0,f.pipe)(this,x,N(n)))},n.prototype.composeTraversal=function(n){return nU((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 nA(e,t,n)}})}},n.prototype.modify=function(n){return nu(n)(this)},n.prototype.asOptional=function(){return nF($(this))},n.prototype.asTraversal=function(){return nU(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 nB(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 nF((0,f.pipe)(this,$,N(n)))},n.prototype.composeTraversal=function(n){return nU((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,w))))},n.prototype.composePrism=function(n){return nF(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 nP(F(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 nF(C(this))},n.prototype.asTraversal=function(){return nU(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 nP(nE(n)(this))},n.prototype.composePrism=function(n){return this.compose(n)},n.prototype.composeOptional=function(n){return nF((0,f.pipe)(this,C,N(n)))},n.prototype.composeTraversal=function(n){return nU((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 nP((0,f.pipe)(this,nE((0,f.pipe)(n,H))))},n.prototype.composeLens=function(n){return nF(N(O(n))(C(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:nA(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 A(n)(this)},n.prototype.asTraversal=function(){return nU(nT(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 nF(N(n)(this))},n.prototype.composeOptional=function(n){return this.compose(n)},n.prototype.composeTraversal=function(n){return nU((0,f.pipe)(this,nT,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 nF((0,f.pipe)(this,N((0,f.pipe)(n,$))))},n.prototype.composePrism=function(n){return nF((0,f.pipe)(this,N((0,f.pipe)(n,C))))},n.prototype.composeIso=function(n){return nF((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 nk(n)(this)},n.prototype.set=function(n){return nk(function(){return n})(this)},n.prototype.filter=function(n){return nU(G(W(F(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 nU(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 nU((0,f.pipe)(this,G((0,f.pipe)(n,Z))))},n.prototype.composePrism=function(n){return nU((0,f.pipe)(this,G((0,f.pipe)(n,W))))},n.prototype.composeIso=function(n){return nU((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=V(function(t){return(0,f.pipe)(n,w,T(e.at(t)))}),new nY(function(n){return nW(t.at(n))})},n}(),nV=function(){function n(n){this.index=n,this._tag="Index"}return n.fromAt=function(n){return nD(Y(function(t){return E(U())(n.at(t))}))},n.prototype.fromIso=function(n){var t;return nD((t=this,Y(function(e){return(0,f.pipe)(n,x,N(t.index(e)))})))},n}(),nB=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 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 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 nU},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 nC},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 nP},NullType:function(){return U},NumberType:function(){return V},ObjectType:function(){return nY},PartialType:function(){return nh},ReadonlyArrayType:function(){return nM},ReadonlyType:function(){return nw},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 A},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 nD},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 nB},emptyTags:function(){return M},exact:function(){return nk},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 F},getTags:function(){return P},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 w},never:function(){return nF},null:function(){return D},nullType:function(){return D},number:function(){return B},object:function(){return nV},partial:function(){return nm},readonly:function(){return nx},readonlyArray:function(){return nO},record:function(){return ng},recursion:function(){return nf},refinement:function(){return nA},strict:function(){return nT},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(C(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 w(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 M={};function O(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 T(n){return"AnyType"===n._tag}function E(n){return"LiteralType"===n._tag}function k(n){return"InterfaceType"===n._tag}function C(n){return"UnionType"===n._tag}var W=[];function P(n){if(-1!==W.indexOf(n))return M;if(k(n)||"StrictType"===n._tag){var t=M;for(var e in n.props){var r=n.props[e];E(r)&&(t===M&&(t={}),t[e]=[r.value])}return t}if("ExactType"===n._tag||"RefinementType"===n._tag)return P(n.type);if("IntersectionType"===n._tag)return n.types.reduce(function(n,t){return function(n,t){if(n===M)return t;if(t===M)return n;var e=Object.assign({},n);for(var r in t)if(g.call(n,r)){var i=O(n[r],t[r]);if(i.length>0)e[r]=i;else{e=M;break}}else e[r]=t[r];return e}(n,P(t))},M);if(C(n))return n.types.slice(1).reduce(function(n,t){return function(n,t){if(n===M||t===M)return M;var e=M;for(var r in n)g.call(t,r)&&0===O(n[r],t[r]).length&&(e===M&&(e={}),e[r]=n[r].concat(t[r]));return e}(n,P(t))},P(n.types[0]));if("RecursiveType"===n._tag){W.push(n);var i=P(n.type);return W.pop(),i}return M}function F(n){for(var t=P(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=P(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 U=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),D=new U,A=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 A,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,V=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),B=new V,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 nA(n,t,e)}var na=nA(B,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])}):T(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 T(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=F(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(w(t,u))},0===n.length?d:function(t){return w(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 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="ReadonlyType",o}return u(t,n),t}(p);function nx(n,t){return void 0===t&&(t="Readonly<".concat(n.name,">")),new nw(t,n.is,n.validate,n.encode,n)}var nM=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 nO(n,t){void 0===t&&(t="ReadonlyArray<".concat(n.name,">"));var e=np(n);return new nM(t,e.is,e.validate,e.encode,n)}var nT=function(n,t){return nk(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 nk(n,t){void 0===t&&(t=k(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 nC=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 nC,nP=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),nF=new nP,nU=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),nD=new nU;function nA(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=nA(B,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),nV=new nY,nB=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,w=n.containerClassName,x=n.containerStyle,M=n.contentLocation,O=n.boundaryInset,T=void 0===O?0:O,E=n.onClickOutside,k=n.clickOutsideCapture,C=void 0!==k&&k,W=f.useMemoizedArray(void 0===s?d:s),P=u.useRef(!1),F=u.useRef(),U=u.useRef(),D=u.useRef(b),A=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:T,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:A,containerClassName:void 0===w?"react-tiny-popover-container":w,parentElement:I,boundaryElement:S,contentLocation:M,positions:W,align:m,padding:g,boundaryInset:T,reposition:b,onPositionPopover:q}),K=G.positionPopover,Y=G.popoverRef,V=G.scoutRef;u.useLayoutEffect(function(){var n=!0,t=function(){var r,i;if(e&&n){var u=null===(r=null==A?void 0:A.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===F.current&&M===U.current&&b===D.current||K(),W!==F.current&&(F.current=W),M!==U.current&&(U.current=M),b!==D.current&&(D.current=b),n&&window.requestAnimationFrame(t)}P.current=e};return window.requestAnimationFrame(t),function(){n=!1}},[m,M,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 B=u.useCallback(function(n){var t,r;!e||(null===(t=Y.current)||void 0===t?void 0:t.contains(n.target))||(null===(r=A.current)||void 0===r?void 0:r.contains(n.target))||null==E||E(n)},[e,E,Y]),H=u.useCallback(function(){A.current&&window.requestAnimationFrame(function(){return K()})},[K]);u.useEffect(function(){var n=I.ownerDocument.body;return n.addEventListener("click",B,C),n.addEventListener("contextmenu",B,C),n.addEventListener("resize",H),function(){n.removeEventListener("click",B,C),n.removeEventListener("contextmenu",B,C),n.removeEventListener("resize",H)}},[C,B,H,I]);var z=u.useCallback(function(n){A.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:V.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,w=void 0===S?null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.getBoundingClientRect():S,x=o.scoutRect,M=void 0===x?null===(u=null==b?void 0:b.current)||void 0===u?void 0:u.getBoundingClientRect():x,O=o.popoverRect,T=void 0===O?y.current.getBoundingClientRect():O,E=o.boundaryRect,k=void 0===E?v===l?R:v.getBoundingClientRect():E;if(w&&R&&t){if(p){var C="function"==typeof p?p({childRect:w,popoverRect:T,parentRect:R,boundaryRect:k,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:m,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1}):p,W=C.top,P=C.left,F=Math.round(R.left+P-M.left),U=Math.round(R.top+W-M.top);y.current.style.transform="translate("+F+"px, "+U+"px)",g({childRect:w,popoverRect:T,parentRect:R,boundaryRect:k,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:m,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1});return}var D=f===c.length,A=D?c[0]:c[f],L=i.getNewPopoverRect({childRect:w,popoverRect:T,boundaryRect:k,position:A,align:d,padding:s,reposition:h},m),N=L.rect;if(L.boundaryViolation&&h&&!D){_({positionIndex:f+1,childRect:w,popoverRect:T,parentRect:R,boundaryRect:k});return}var j=N.top,q=N.left,G=N.width,K=N.height,Y=h&&!D,V=i.getNudgedPopoverRect(N,k,m),B=V.left,H=V.top,z=j,X=q;Y&&(z=H,X=B),z=Math.round(z-M.top),X=Math.round(X-M.left),y.current.style.transform="translate("+X+"px, "+z+"px)";var J={top:k.top+m-z,left:k.left+m-X,right:X+G-k.right+m,bottom:z+K-k.bottom+m};g({childRect:w,popoverRect:{top:z,left:X,width:G,height:K,right:X+G,bottom:z+K},parentRect:R,boundaryRect:k,position:A,align:d,padding:s,nudgedTop:H-j,nudgedLeft:B-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){/*!
4
- * statuses
5
- * Copyright(c) 2014 Jonathan Ong
6
- * Copyright(c) 2016 Douglas Christopher Wilson
7
- * MIT Licensed
8
- */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]]}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)}},87783:function(n,t,e){e.r(t),e.d(t,{__assign:function(){return u},__asyncDelegator:function(){return x},__asyncGenerator:function(){return w},__asyncValues:function(){return M},__await:function(){return S},__awaiter:function(){return h},__classPrivateFieldGet:function(){return C},__classPrivateFieldIn:function(){return P},__classPrivateFieldSet:function(){return W},__createBinding:function(){return v},__decorate:function(){return a},__esDecorate:function(){return f},__exportStar:function(){return g},__extends:function(){return i},__generator:function(){return m},__importDefault:function(){return k},__importStar:function(){return E},__makeTemplateObject:function(){return O},__metadata:function(){return s},__param:function(){return c},__propKey:function(){return p},__read:function(){return b},__rest:function(){return o},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return _},__spreadArray:function(){return R},__spreadArrays:function(){return I},__values:function(){return y}});var 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 i(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)}var u=function(){return(u=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)};function o(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&0>t.indexOf(r)&&(e[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(e[r[i]]=n[r[i]]);return e}function a(n,t,e,r){var i,u=arguments.length,o=u<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(i=n[a])&&(o=(u<3?i(o):u>3?i(t,e,o):i(t,e))||o);return u>3&&o&&Object.defineProperty(t,e,o),o}function c(n,t){return function(e,r){t(e,r,n)}}function f(n,t,e,r,i,u){function o(n){if(void 0!==n&&"function"!=typeof n)throw TypeError("Function expected");return n}for(var a,c=r.kind,f="getter"===c?"get":"setter"===c?"set":"value",l=!t&&n?r.static?n:n.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,s=e.length-1;s>=0;s--){var h={};for(var m in r)h[m]="access"===m?{}:r[m];for(var m in r.access)h.access[m]=r.access[m];h.addInitializer=function(n){if(d)throw TypeError("Cannot add initializers after decoration has completed");u.push(o(n||null))};var v=(0,e[s])("accessor"===c?{get:p.get,set:p.set}:p[f],h);if("accessor"===c){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(a=o(v.get))&&(p.get=a),(a=o(v.set))&&(p.set=a),(a=o(v.init))&&i.unshift(a)}else(a=o(v))&&("field"===c?i.unshift(a):p[f]=a)}l&&Object.defineProperty(l,r.name,p),d=!0}function l(n,t,e){for(var r=arguments.length>2,i=0;i<t.length;i++)e=r?t[i].call(n,e):t[i].call(n);return r?e:void 0}function p(n){return"symbol"==typeof n?n:"".concat(n)}function d(n,t,e){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(n,"name",{configurable:!0,value:e?"".concat(e," ",t):t})}function s(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function h(n,t,e,r){return new(e||(e=Promise))(function(i,u){function o(n){try{c(r.next(n))}catch(n){u(n)}}function a(n){try{c(r.throw(n))}catch(n){u(n)}}function c(n){var t;n.done?i(n.value):((t=n.value)instanceof e?t:new e(function(n){n(t)})).then(o,a)}c((r=r.apply(n,t||[])).next())})}function m(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])}}}var v=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]};function g(n,t){for(var e in n)"default"===e||Object.prototype.hasOwnProperty.call(t,e)||v(t,n,e)}function y(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,i,u=e.call(n),o=[];try{for(;(void 0===t||t-- >0)&&!(r=u.next()).done;)o.push(r.value)}catch(n){i={error:n}}finally{try{r&&!r.done&&(e=u.return)&&e.call(u)}finally{if(i)throw i.error}}return o}function _(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(b(arguments[t]));return n}function I(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;for(var r=Array(n),i=0,t=0;t<e;t++)for(var u=arguments[t],o=0,a=u.length;o<a;o++,i++)r[i]=u[o];return r}function R(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 S(n){return this instanceof S?(this.v=n,this):new S(n)}function w(n,t,e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),u=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(n){i[n]&&(r[n]=function(t){return new Promise(function(e,r){u.push([n,t,e,r])>1||a(n,t)})})}function a(n,t){try{var e;(e=i[n](t)).value instanceof S?Promise.resolve(e.value.v).then(c,f):l(u[0][2],e)}catch(n){l(u[0][3],n)}}function c(n){a("next",n)}function f(n){a("throw",n)}function l(n,t){n(t),u.shift(),u.length&&a(u[0][0],u[0][1])}}function x(n){var t,e;return t={},r("next"),r("throw",function(n){throw n}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=n[r]?function(t){return(e=!e)?{value:S(n[r](t)),done:!1}:i?i(t):t}:i}}function M(n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=y(n),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise(function(r,i){!function(n,t,e,r){Promise.resolve(r).then(function(t){n({value:t,done:e})},t)}(r,i,(t=n[e](t)).done,t.value)})}}}function O(n,t){return Object.defineProperty?Object.defineProperty(n,"raw",{value:t}):n.raw=t,n}var T=Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t};function E(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)&&v(t,n,e);return T(t,n),t}function k(n){return n&&n.__esModule?n:{default:n}}function C(n,t,e,r){if("a"===e&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?n!==t||!r:!t.has(n))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?r:"a"===e?r.call(n):r?r.value:t.get(n)}function W(n,t,e,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?n!==t||!i:!t.has(n))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(n,e):i?i.value=e:t.set(n,e),e}function P(n,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof n?t===n:n.has(t)}t.default={__extends:i,__assign:u,__rest:o,__decorate:a,__param:c,__metadata:s,__awaiter:h,__generator:m,__createBinding:v,__exportStar:g,__values:y,__read:b,__spread:_,__spreadArrays:I,__spreadArray:R,__await:S,__asyncGenerator:w,__asyncDelegator:x,__asyncValues:M,__makeTemplateObject:O,__importStar:E,__importDefault:k,__classPrivateFieldGet:C,__classPrivateFieldSet:W,__classPrivateFieldIn:P}},78948:function(n,t,e){e.r(t),e.d(t,{__assign:function(){return u},__asyncDelegator:function(){return x},__asyncGenerator:function(){return w},__asyncValues:function(){return M},__await:function(){return S},__awaiter:function(){return h},__classPrivateFieldGet:function(){return C},__classPrivateFieldIn:function(){return P},__classPrivateFieldSet:function(){return W},__createBinding:function(){return v},__decorate:function(){return a},__esDecorate:function(){return f},__exportStar:function(){return g},__extends:function(){return i},__generator:function(){return m},__importDefault:function(){return k},__importStar:function(){return E},__makeTemplateObject:function(){return O},__metadata:function(){return s},__param:function(){return c},__propKey:function(){return p},__read:function(){return b},__rest:function(){return o},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return _},__spreadArray:function(){return R},__spreadArrays:function(){return I},__values:function(){return y}});var 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 i(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)}var u=function(){return(u=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)};function o(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&0>t.indexOf(r)&&(e[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(e[r[i]]=n[r[i]]);return e}function a(n,t,e,r){var i,u=arguments.length,o=u<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(i=n[a])&&(o=(u<3?i(o):u>3?i(t,e,o):i(t,e))||o);return u>3&&o&&Object.defineProperty(t,e,o),o}function c(n,t){return function(e,r){t(e,r,n)}}function f(n,t,e,r,i,u){function o(n){if(void 0!==n&&"function"!=typeof n)throw TypeError("Function expected");return n}for(var a,c=r.kind,f="getter"===c?"get":"setter"===c?"set":"value",l=!t&&n?r.static?n:n.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,s=e.length-1;s>=0;s--){var h={};for(var m in r)h[m]="access"===m?{}:r[m];for(var m in r.access)h.access[m]=r.access[m];h.addInitializer=function(n){if(d)throw TypeError("Cannot add initializers after decoration has completed");u.push(o(n||null))};var v=(0,e[s])("accessor"===c?{get:p.get,set:p.set}:p[f],h);if("accessor"===c){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(a=o(v.get))&&(p.get=a),(a=o(v.set))&&(p.set=a),(a=o(v.init))&&i.unshift(a)}else(a=o(v))&&("field"===c?i.unshift(a):p[f]=a)}l&&Object.defineProperty(l,r.name,p),d=!0}function l(n,t,e){for(var r=arguments.length>2,i=0;i<t.length;i++)e=r?t[i].call(n,e):t[i].call(n);return r?e:void 0}function p(n){return"symbol"==typeof n?n:"".concat(n)}function d(n,t,e){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(n,"name",{configurable:!0,value:e?"".concat(e," ",t):t})}function s(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function h(n,t,e,r){return new(e||(e=Promise))(function(i,u){function o(n){try{c(r.next(n))}catch(n){u(n)}}function a(n){try{c(r.throw(n))}catch(n){u(n)}}function c(n){var t;n.done?i(n.value):((t=n.value)instanceof e?t:new e(function(n){n(t)})).then(o,a)}c((r=r.apply(n,t||[])).next())})}function m(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])}}}var v=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]};function g(n,t){for(var e in n)"default"===e||Object.prototype.hasOwnProperty.call(t,e)||v(t,n,e)}function y(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,i,u=e.call(n),o=[];try{for(;(void 0===t||t-- >0)&&!(r=u.next()).done;)o.push(r.value)}catch(n){i={error:n}}finally{try{r&&!r.done&&(e=u.return)&&e.call(u)}finally{if(i)throw i.error}}return o}function _(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(b(arguments[t]));return n}function I(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;for(var r=Array(n),i=0,t=0;t<e;t++)for(var u=arguments[t],o=0,a=u.length;o<a;o++,i++)r[i]=u[o];return r}function R(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 S(n){return this instanceof S?(this.v=n,this):new S(n)}function w(n,t,e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),u=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(n){i[n]&&(r[n]=function(t){return new Promise(function(e,r){u.push([n,t,e,r])>1||a(n,t)})})}function a(n,t){try{var e;(e=i[n](t)).value instanceof S?Promise.resolve(e.value.v).then(c,f):l(u[0][2],e)}catch(n){l(u[0][3],n)}}function c(n){a("next",n)}function f(n){a("throw",n)}function l(n,t){n(t),u.shift(),u.length&&a(u[0][0],u[0][1])}}function x(n){var t,e;return t={},r("next"),r("throw",function(n){throw n}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=n[r]?function(t){return(e=!e)?{value:S(n[r](t)),done:!1}:i?i(t):t}:i}}function M(n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=y(n),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise(function(r,i){!function(n,t,e,r){Promise.resolve(r).then(function(t){n({value:t,done:e})},t)}(r,i,(t=n[e](t)).done,t.value)})}}}function O(n,t){return Object.defineProperty?Object.defineProperty(n,"raw",{value:t}):n.raw=t,n}var T=Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t};function E(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)&&v(t,n,e);return T(t,n),t}function k(n){return n&&n.__esModule?n:{default:n}}function C(n,t,e,r){if("a"===e&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?n!==t||!r:!t.has(n))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?r:"a"===e?r.call(n):r?r.value:t.get(n)}function W(n,t,e,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?n!==t||!i:!t.has(n))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(n,e):i?i.value=e:t.set(n,e),e}function P(n,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof n?t===n:n.has(t)}t.default={__extends:i,__assign:u,__rest:o,__decorate:a,__param:c,__metadata:s,__awaiter:h,__generator:m,__createBinding:v,__exportStar:g,__values:y,__read:b,__spread:_,__spreadArrays:I,__spreadArray:R,__await:S,__asyncGenerator:w,__asyncDelegator:x,__asyncValues:M,__makeTemplateObject:O,__importStar:E,__importDefault:k,__classPrivateFieldGet:C,__classPrivateFieldSet:W,__classPrivateFieldIn:P}},16:function(n,t,e){e.d(t,{SH:function(){return V}}),(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,w=(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}},M=(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}},O=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},T=n=>"type"in n,E=n=>!("type"in n),k=n=>E(n)&&!("error"in n);var C=Object.defineProperty,W=(n,t,e)=>t in n?C(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,P=(n,t,e)=>(W(n,"symbol"!=typeof t?t+"":t,e),e);let F={debug:!1,maximumRequestConcurrency:20,defaultTimeout:5e3,requestIDPrefix:"channel-"};class U{constructor(n,t){P(this,"requestHandlers"),P(this,"options"),P(this,"_port",null),P(this,"_pendingRequests",new Map),this.requestHandlers=n,this.options={...F,...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 w(n,t,this.options.requestIDPrefix)}async onMessage(n){this.options.debug&&console.debug(n.data);try{let t=O(n.data);if(T(t)){if(this.requestHandlers[t.type])try{let n=await this.requestHandlers[t.type](t,{success:x.bind(this,t.requestID),error:M.bind(this,t.requestID)});this.postResponse(n)}catch(n){this.postResponse(M(t.requestID,n,500))}else this.postResponse(M(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),k(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 D=Object.defineProperty,A=(n,t,e)=>t in n?D(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,L=(n,t,e)=>(A(n,"symbol"!=typeof t?t+"":t,e),e);let N={connectTimeout:2e4,requestIDPrefix:"emitter-"};class j extends U{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=O(n.data);if(T(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(M(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 V 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},98227:function(n,t,e){e.r(t),e.d(t,{__assign:function(){return u},__asyncDelegator:function(){return x},__asyncGenerator:function(){return w},__asyncValues:function(){return M},__await:function(){return S},__awaiter:function(){return h},__classPrivateFieldGet:function(){return C},__classPrivateFieldIn:function(){return P},__classPrivateFieldSet:function(){return W},__createBinding:function(){return v},__decorate:function(){return a},__esDecorate:function(){return f},__exportStar:function(){return g},__extends:function(){return i},__generator:function(){return m},__importDefault:function(){return k},__importStar:function(){return E},__makeTemplateObject:function(){return O},__metadata:function(){return s},__param:function(){return c},__propKey:function(){return p},__read:function(){return b},__rest:function(){return o},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return _},__spreadArray:function(){return R},__spreadArrays:function(){return I},__values:function(){return y}});var 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 i(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)}var u=function(){return(u=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)};function o(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&0>t.indexOf(r)&&(e[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(e[r[i]]=n[r[i]]);return e}function a(n,t,e,r){var i,u=arguments.length,o=u<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(i=n[a])&&(o=(u<3?i(o):u>3?i(t,e,o):i(t,e))||o);return u>3&&o&&Object.defineProperty(t,e,o),o}function c(n,t){return function(e,r){t(e,r,n)}}function f(n,t,e,r,i,u){function o(n){if(void 0!==n&&"function"!=typeof n)throw TypeError("Function expected");return n}for(var a,c=r.kind,f="getter"===c?"get":"setter"===c?"set":"value",l=!t&&n?r.static?n:n.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,s=e.length-1;s>=0;s--){var h={};for(var m in r)h[m]="access"===m?{}:r[m];for(var m in r.access)h.access[m]=r.access[m];h.addInitializer=function(n){if(d)throw TypeError("Cannot add initializers after decoration has completed");u.push(o(n||null))};var v=(0,e[s])("accessor"===c?{get:p.get,set:p.set}:p[f],h);if("accessor"===c){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(a=o(v.get))&&(p.get=a),(a=o(v.set))&&(p.set=a),(a=o(v.init))&&i.unshift(a)}else(a=o(v))&&("field"===c?i.unshift(a):p[f]=a)}l&&Object.defineProperty(l,r.name,p),d=!0}function l(n,t,e){for(var r=arguments.length>2,i=0;i<t.length;i++)e=r?t[i].call(n,e):t[i].call(n);return r?e:void 0}function p(n){return"symbol"==typeof n?n:"".concat(n)}function d(n,t,e){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(n,"name",{configurable:!0,value:e?"".concat(e," ",t):t})}function s(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function h(n,t,e,r){return new(e||(e=Promise))(function(i,u){function o(n){try{c(r.next(n))}catch(n){u(n)}}function a(n){try{c(r.throw(n))}catch(n){u(n)}}function c(n){var t;n.done?i(n.value):((t=n.value)instanceof e?t:new e(function(n){n(t)})).then(o,a)}c((r=r.apply(n,t||[])).next())})}function m(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])}}}var v=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]};function g(n,t){for(var e in n)"default"===e||Object.prototype.hasOwnProperty.call(t,e)||v(t,n,e)}function y(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,i,u=e.call(n),o=[];try{for(;(void 0===t||t-- >0)&&!(r=u.next()).done;)o.push(r.value)}catch(n){i={error:n}}finally{try{r&&!r.done&&(e=u.return)&&e.call(u)}finally{if(i)throw i.error}}return o}function _(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(b(arguments[t]));return n}function I(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;for(var r=Array(n),i=0,t=0;t<e;t++)for(var u=arguments[t],o=0,a=u.length;o<a;o++,i++)r[i]=u[o];return r}function R(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 S(n){return this instanceof S?(this.v=n,this):new S(n)}function w(n,t,e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),u=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(n){i[n]&&(r[n]=function(t){return new Promise(function(e,r){u.push([n,t,e,r])>1||a(n,t)})})}function a(n,t){try{var e;(e=i[n](t)).value instanceof S?Promise.resolve(e.value.v).then(c,f):l(u[0][2],e)}catch(n){l(u[0][3],n)}}function c(n){a("next",n)}function f(n){a("throw",n)}function l(n,t){n(t),u.shift(),u.length&&a(u[0][0],u[0][1])}}function x(n){var t,e;return t={},r("next"),r("throw",function(n){throw n}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=n[r]?function(t){return(e=!e)?{value:S(n[r](t)),done:!1}:i?i(t):t}:i}}function M(n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=y(n),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise(function(r,i){!function(n,t,e,r){Promise.resolve(r).then(function(t){n({value:t,done:e})},t)}(r,i,(t=n[e](t)).done,t.value)})}}}function O(n,t){return Object.defineProperty?Object.defineProperty(n,"raw",{value:t}):n.raw=t,n}var T=Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t};function E(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)&&v(t,n,e);return T(t,n),t}function k(n){return n&&n.__esModule?n:{default:n}}function C(n,t,e,r){if("a"===e&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?n!==t||!r:!t.has(n))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?r:"a"===e?r.call(n):r?r.value:t.get(n)}function W(n,t,e,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?n!==t||!i:!t.has(n))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(n,e):i?i.value=e:t.set(n,e),e}function P(n,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof n?t===n:n.has(t)}t.default={__extends:i,__assign:u,__rest:o,__decorate:a,__param:c,__metadata:s,__awaiter:h,__generator:m,__createBinding:v,__exportStar:g,__values:y,__read:b,__spread:_,__spreadArrays:I,__spreadArray:R,__await:S,__asyncGenerator:w,__asyncDelegator:x,__asyncValues:M,__makeTemplateObject:O,__importStar:E,__importDefault:k,__classPrivateFieldGet:C,__classPrivateFieldSet:W,__classPrivateFieldIn:P}},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>&#39;s thoughts on Gatsby&#39;s success and how they&#39;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>&mdash; 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&amp;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>&mdash; 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&#39;re launching a new <a href=\\"https://twitter.com/hashtag/SliceContest?src=hash&amp;ref_src=twsrc%5Etfw\\">#SliceContest</a> tomorrow along with Slice Machine upgrades.<br><br>Want to know more? Join us at tomorrow&#39;s Product Meet-up\uD83D\uDC47<a href=\\"https://t.co/prYSypiAvB\\">https://t.co/prYSypiAvB</a><br><br>We can&#39;t tell you any further details for now, but here&#39;s a sneak peek at the prizes\uD83D\uDC40 <a href=\\"https://t.co/fV1eoGlEBh\\">pic.twitter.com/fV1eoGlEBh</a></p>&mdash; 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 &#39;Wall Street Bets&#39; using Prismic?<br><br>It may or may not have to look a lot like <a href=\\"https://twitter.com/hashtag/reddit?src=hash&amp;ref_src=twsrc%5Etfw\\">#reddit</a> and we won&#39;t make it private.<br><br>Just asking for some friends...</p>&mdash; 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"}')}}]);