slice-machine-ui 2.2.2-beta.8 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/out/404.html +1 -1
  2. package/out/_next/static/chunks/{18539003-4c4fdc1584f243b4.js → 18539003-afe9213a677bd9f0.js} +3 -3
  3. package/out/_next/static/chunks/212-b6a2b8d9d16ef3c5.js +1 -0
  4. package/out/_next/static/chunks/{210-565d01ee9777d1a1.js → 326-2d6d04d623de16c6.js} +2 -2
  5. package/out/_next/static/chunks/448-ae7b5e576a84b47d.js +1 -0
  6. package/out/_next/static/chunks/465-d5dd75edd8e6bb65.js +1 -0
  7. package/out/_next/static/chunks/574-a23212bd78e563de.js +1 -0
  8. package/out/_next/static/chunks/59b4e022-8e544a511d670317.js +1 -0
  9. package/out/_next/static/chunks/{756-0b198fb40a3e6ae2.js → 695-bfe7255199983590.js} +6 -4
  10. package/out/_next/static/chunks/816-17afd84d2642f4c4.js +1 -0
  11. package/out/_next/static/chunks/f36c6662-1f3a854183168b10.js +1 -0
  12. package/out/_next/static/chunks/pages/_app-07a2573662865a6b.js +547 -0
  13. package/out/_next/static/chunks/pages/changelog-1d15a7ef498f499a.js +1 -0
  14. package/out/_next/static/chunks/pages/changes-0af2a1a5244418f9.js +1 -0
  15. package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-a6ff1618238b3510.js → [customTypeId]-b714ad9814898d23.js} +1 -1
  16. package/out/_next/static/chunks/pages/index-2610e550d79c5bb1.js +1 -0
  17. package/out/_next/static/chunks/pages/labs-240ba57bfdabe998.js +1 -0
  18. package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-c300f963db847451.js → [pageTypeId]-aa881786f6e5aee2.js} +1 -1
  19. package/out/_next/static/chunks/pages/settings-039476a9a63d25a1.js +1 -0
  20. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-cfc19e3e799745bb.js +1 -0
  21. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-58e6cb0f278ea03c.js +1 -0
  22. package/out/_next/static/chunks/pages/slices-9894ce968d74baf6.js +1 -0
  23. package/out/_next/static/css/447984631bacb88c.css +1 -0
  24. package/out/_next/static/yi8ItcVBmEtxCSvLChc0b/_buildManifest.js +1 -0
  25. package/out/changelog.html +1 -1
  26. package/out/changes.html +1 -1
  27. package/out/custom-types/[customTypeId].html +1 -1
  28. package/out/custom-types.html +1 -1
  29. package/out/index.html +1 -1
  30. package/out/labs.html +1 -1
  31. package/out/page-types/[pageTypeId].html +1 -1
  32. package/out/settings.html +1 -1
  33. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  34. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  35. package/out/slices.html +1 -1
  36. package/package.json +9 -9
  37. package/src/domain/fields.ts +223 -0
  38. package/src/features/builder/AddFieldDropdown.tsx +122 -0
  39. package/src/features/onboarding/OnboardingGuide.tsx +45 -0
  40. package/src/features/onboarding/OnboardingProgressStepper.tsx +71 -0
  41. package/src/features/onboarding/OnboardingProvider.tsx +82 -0
  42. package/src/features/onboarding/OnboardingStepDialog/OnboardingStepDialog.tsx +46 -0
  43. package/src/features/onboarding/OnboardingStepDialog/OnboardingStepDialogContent.tsx +38 -0
  44. package/src/features/onboarding/OnboardingStepDialog/index.ts +1 -0
  45. package/src/features/onboarding/content.tsx +99 -0
  46. package/src/features/onboarding/types.ts +32 -0
  47. package/src/features/onboarding/useOnboardingExperiment.ts +6 -0
  48. package/src/hooks/usePersistedState.ts +20 -3
  49. package/src/legacy/components/Navigation/index.tsx +2 -0
  50. package/src/legacy/lib/builders/CustomTypeBuilder/TabZone/index.tsx +9 -9
  51. package/src/legacy/lib/builders/SliceBuilder/FieldZones/index.tsx +7 -9
  52. package/src/legacy/lib/builders/SliceBuilder/VariationsList/index.tsx +1 -0
  53. package/src/legacy/lib/builders/common/Zone/components/ZoneEmptyState/ZoneEmptyState.tsx +4 -13
  54. package/src/legacy/lib/builders/common/Zone/index.jsx +26 -31
  55. package/src/legacy/lib/models/common/widgets/Boolean/index.ts +2 -4
  56. package/src/legacy/lib/models/common/widgets/Color/index.ts +2 -4
  57. package/src/legacy/lib/models/common/widgets/ContentRelationship/index.ts +0 -2
  58. package/src/legacy/lib/models/common/widgets/Date/index.ts +0 -2
  59. package/src/legacy/lib/models/common/widgets/Embed/index.ts +2 -4
  60. package/src/legacy/lib/models/common/widgets/GeoPoint/index.ts +2 -4
  61. package/src/legacy/lib/models/common/widgets/Group/ListItem/index.jsx +25 -19
  62. package/src/legacy/lib/models/common/widgets/Group/createGroupWidget.ts +2 -4
  63. package/src/legacy/lib/models/common/widgets/Group/index.tsx +8 -8
  64. package/src/legacy/lib/models/common/widgets/Image/index.ts +2 -4
  65. package/src/legacy/lib/models/common/widgets/Link/index.ts +2 -4
  66. package/src/legacy/lib/models/common/widgets/LinkToMedia/index.ts +2 -4
  67. package/src/legacy/lib/models/common/widgets/NestedGroup/index.tsx +7 -7
  68. package/src/legacy/lib/models/common/widgets/Number/index.ts +2 -4
  69. package/src/legacy/lib/models/common/widgets/Select/index.ts +2 -4
  70. package/src/legacy/lib/models/common/widgets/StructuredText/index.ts +0 -2
  71. package/src/legacy/lib/models/common/widgets/Text/index.ts +0 -2
  72. package/src/legacy/lib/models/common/widgets/Timestamp/index.ts +2 -4
  73. package/src/legacy/lib/models/common/widgets/UID/index.ts +2 -4
  74. package/src/legacy/lib/models/common/widgets/Widget.ts +0 -2
  75. package/out/_next/static/8ioxR-A_Nfflu3QxG8paB/_buildManifest.js +0 -1
  76. package/out/_next/static/chunks/212-58a99ab312f8a03b.js +0 -1
  77. package/out/_next/static/chunks/448-7a6843206737d199.js +0 -1
  78. package/out/_next/static/chunks/465-695ac5fedef986eb.js +0 -1
  79. package/out/_next/static/chunks/574-dfeb0e6aa3079da1.js +0 -1
  80. package/out/_next/static/chunks/59b4e022-7a3b5554b806349f.js +0 -1
  81. package/out/_next/static/chunks/816-96fc9a79308019c7.js +0 -1
  82. package/out/_next/static/chunks/f36c6662-03bb5e9d9aa0b0aa.js +0 -1
  83. package/out/_next/static/chunks/pages/_app-0f7eec1bd89de90c.js +0 -536
  84. package/out/_next/static/chunks/pages/changelog-f0cd26a9ae095e9e.js +0 -1
  85. package/out/_next/static/chunks/pages/changes-1a57f90433a0b5e2.js +0 -1
  86. package/out/_next/static/chunks/pages/index-a0530bd55c7e1872.js +0 -1
  87. package/out/_next/static/chunks/pages/labs-7b0abeef69494aec.js +0 -1
  88. package/out/_next/static/chunks/pages/settings-f82286dde10f624c.js +0 -1
  89. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-453f946e8879c829.js +0 -1
  90. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-b530a5e0ac9d0391.js +0 -1
  91. package/out/_next/static/chunks/pages/slices-7411822d74f1f6c1.js +0 -1
  92. package/out/_next/static/css/ebf74ed654df9202.css +0 -1
  93. package/src/legacy/lib/builders/common/SelectFieldTypeModal/FieldTypeCard.jsx +0 -51
  94. package/src/legacy/lib/builders/common/SelectFieldTypeModal/index.jsx +0 -84
  95. /package/out/_next/static/{8ioxR-A_Nfflu3QxG8paB → yi8ItcVBmEtxCSvLChc0b}/_ssgManifest.js +0 -0
@@ -1,10 +1,12 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[756],{15952:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(16211),o=n(96742),u=n(73985),a=n(79687),c=n(81542),f=r.__importDefault(n(3758)),l=/(\w+)\[\d+]/;function p(e){let t={id:e.id,type:e.typ,lang:e.language};return e.uid?{...t,uid:e.uid}:t}function d(e){return(t,n)=>{var r;if(!(0,i.isEmptyContent)(t))return(0,i.isUIDContent)(t)?c.UIDRenderer.renderV1(t):(r=t,((0,i.isGroupContent)(r)||(0,i.isNestableContent)(r))&&!i.EmptyContent.is(t))?(0,c.StaticWidgetRenderer)(e).renderV1(t,u.Fetch.extractGroupOrFieldIfAny(n)):(0,f.default)(e).renderV1(t,u.Fetch.extractSliceFetchIfAny(n))}}function s(e){return(t,n,r)=>(0,i.isSlicesContent)(n)&&"Slices"===t.type?(0,f.default)(e).renderV2(t,n,u.Fetch.extractSliceFetchIfAny(r)):(0,i.isGroupContent)(n)&&"Group"===t.type?(0,c.StaticWidgetRenderer)(e).renderV2(t,n,u.Fetch.extractGroupOrFieldIfAny(r)):(0,i.isUIDContent)(n)&&"UID"===t.type?c.UIDRenderer.renderV2(t,n):(0,i.isNestableContent)(n)&&o.NestableWidget.is(t)?(0,c.StaticWidgetRenderer)(e).renderV2(t,n,u.Fetch.extractGroupOrFieldIfAny(r)):m(e)(t)}function m(e){return t=>{switch(t.type){case"Choice":case"Slices":return(0,f.default)(e).renderDefault(t);case"UID":return;default:return(0,c.StaticWidgetRenderer)(e).renderDefault(t)}}}let h=e=>{var t,n,r;return{renderV1(t,n,r,o,u,c,f,s,m){var h,v,y;let g=(u[t.groupLangId]||[]).filter(e=>e.id!==t.id).map(e=>p(e)),_=((t,n,r)=>{let o={};for(let[u,a]of n)if(!(0,i.isUIDContent)(a)){let c=u.match(l),f=c&&c[1],p=f?c[1]:u,s=f?o[p]:void 0;if(void 0!==r){let m=r.fields[u];void 0!==m&&(f?o[p]=Array.isArray(s)?[...s,d(e)(a,m)]:[d(e)(a,m)]:o[p]=d(e)(a,m))}else f?o[p]=Array.isArray(s)?[...s,d(e)(a,void 0)]:[d(e)(a,void 0)]:o[p]=d(e)(a,void 0)}return{[t.type]:o}})(t,n,m);return{id:t.id,uid:null!==(h=t.data.uid)&&void 0!==h?h:null,url:null!==(v=e.LinkResolver.buildUrl({linkResolver:s,pageType:t.type,masterLang:r,brokenRoute:f,doc:t}))&&void 0!==v?v:null,type:t.type,href:e.urlRewriter.enforceCDN(o),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:_,...c?t.metadata:{}}},renderWidgetV1:d(e),renderWidgetV2:s(e),renderV2(t,n,r,o,u,c,f,d,h,v){var y,g;let _=Object.entries(t.fields).map(([t,n])=>{if("UID"===n.type)return;let r=o.find(([e])=>e===t),u=null==v?void 0:v.fields[t],a=t.match(l),c=Boolean(a&&a[1]),f=c?a[1]:t;if(r){let[,p]=r;return(0,i.isUIDContent)(p)?void 0:void 0===v||void 0!==u?[f,s(e)(n,p,u),c]:void 0}return void 0===v||void 0!==u?[f,m(e)(n),c]:void 0}).reduce((e,t)=>{if(t){let[n,r,i]=t;if(i){let o=e[n];if(o){if(Array.isArray(o))return{...e,[n]:[...o,r]};throw Error(`[UNEXPECTED ERROR] ${JSON.stringify(o)} should be an Array`)}return{...e,[n]:[r]}}return{...e,[n]:r}}return e},{}),b=(c[n.groupLangId]||[]).filter(e=>e.id!==n.id).map(e=>p(e));return{id:n.id,uid:null!==(y=n.data.uid)&&void 0!==y?y:null,url:null!==(g=e.LinkResolver.buildUrl({linkResolver:h,pageType:n.type,masterLang:r,brokenRoute:d,doc:n}))&&void 0!==g?g:null,type:n.type,href:e.urlRewriter.enforceCDN(u),tags:n.tags,first_publication_date:n.first_publication_date?(0,a.formatDateTime)(n.first_publication_date):null,last_publication_date:n.last_publication_date?(0,a.formatDateTime)(n.last_publication_date):null,slugs:n.data.slugs,linked_documents:[],lang:n.language,alternate_languages:b,data:_,...f?n.metadata:{}}},renderMocks(t,n){let r=n.reduce((e,[,t])=>{if(i.UIDContent.is(t))return t.value},void 0),u=Object.entries(t.fields).map(([t,r])=>{var u,a,p;if("UID"===r.type)return;let d=n.find(([e])=>e===t),s=t.match(l),h=Boolean(s&&s[1]),v=h?s[1]:t;if(!d)return[v,m(e)(r),h];return[v,(a=r,p=d[1],"SliceContentType"===p.__TYPE__&&"Slices"===a.type?(0,f.default)(e).renderMocks(a,p):(0,i.isGroupContent)(p)&&"Group"===a.type?(0,c.StaticWidgetRenderer)(e).renderMocks(a,p):(0,i.isNestableContent)(p)&&o.NestableWidget.is(a)?(0,c.StaticWidgetRenderer)(e).renderMocks(a,p):m(e)(a)),h]}).reduce((e,t)=>{if(t){let[n,r,i]=t;if(i){let o=e[n];if(o){if(Array.isArray(o))return{...e,[n]:[...o,r]};throw Error(`[UNEXPECTED ERROR] ${JSON.stringify(o)} should be an Array`)}return{...e,[n]:[r]}}return{...e,[n]:r}}return e},{});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:u}},renderDefaultWidget:m(e)}};t.default=h},88985:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Utils=t.Models=t.DocumentRenderer=void 0;let r=n(87783);var i=n(15952);Object.defineProperty(t,"DocumentRenderer",{enumerable:!0,get:function(){return r.__importDefault(i).default}}),t.Models=r.__importStar(n(73985)),t.Utils=r.__importStar(n(79687)),r.__exportStar(n(81542),t)},59527:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentContent=void 0;let r=n(16211),i=n(16211),o=n(96742),u=n(87412);t.DocumentContent=class{constructor(e,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:n,types:r,slugs:o,uid:u}=i.DocumentLegacy.extractMetadata(e);this.fieldTypes=r,this.slugs=o,this.uid=u,this.widgets=n,this.customType=t}getWidget(e){let t=this.parsed[e];if(t)return t;let n=this.widgets[e],i=(()=>{let t=(0,r.WidgetLegacy)((0,r.defaultCtx)(e,this.fieldTypes)).decode(n);if(!t||(0,u.isLeft)(t))return;if(!this.customType)return t.right;let i=this.customType.fields[e];return(0,r.isSlicesContent)(t.right)&&o.StaticSlices.is(i)?(0,r.traverseSlices)({path:[{key:this.customType.customTypeId,type:"CustomType"},{key:e,type:"Widget"},],key:e,model:i,content:t.right})({transformSlice:r.migrateSliceItem}):t.right})();if(i)return this.parsed[e]=i,i}parseAll(){let e=i.DocumentLegacy._codec(this.fieldTypes).decode(this.widgets),t=(0,u.isRight)(e)?e.right:{},n=this.customType?(0,r.migrateDocument)(t,this.customType):t;return this.parsed=n,n}}},53264:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentMetadata=void 0;let r=n(87783),i=n(47320),o=r.__importStar(n(87830)),u=o.exact(o.intersection([o.type({title:o.string,description:o.string}),o.partial({imageURL:(0,i.nullable)(o.string)}),]));t.DocumentMetadata={empty:{title:"Untitled document",description:"",imageURL:void 0},codec:u}},72375:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedDocument=void 0;let r=n(87783),i=r.__importStar(n(87830));t.RelatedDocument=i.exact(i.intersection([i.type({typ:i.string,id:i.string,language:i.string,groupLangId:i.string}),i.partial({uid:i.union([i.string,i.null,i.undefined])}),]))},27380:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedDocument=t.DocumentMetadata=t.DocumentContent=t.ApiDocumentCodec=t.GroupLangId=void 0;let r=n(87783),i=n(37581),o=n(9554),u=n(42275),a=r.__importStar(n(87830)),c=n(23284),f=n(2932),l=n(59527),p=n(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=e=>(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,e),language:t.language,first_publication_date:t.first_publication_date,last_publication_date:t.last_publication_date,metadata:t.metadata})),m=e=>new a.Type("DocCodec",e=>s().is(e),(t,n)=>(0,u.pipe)(d.validate(t,n),o.either.chain(t=>{let n=e&&e.find(e=>e.customTypeId===t.type);return a.success(s(n).encode(t))})),e=>e);t.ApiDocumentCodec=m;var h=n(59527);Object.defineProperty(t,"DocumentContent",{enumerable:!0,get:function(){return h.DocumentContent}});var v=n(53264);Object.defineProperty(t,"DocumentMetadata",{enumerable:!0,get:function(){return v.DocumentMetadata}});var y=n(72375);Object.defineProperty(t,"RelatedDocument",{enumerable:!0,get:function(){return y.RelatedDocument}})},15087:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ApiVersion=void 0,(n=t.ApiVersion||(t.ApiVersion={})).v1="v1",n.v2="v2",n.mocks="mocks"},43134:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.customParam=t.langParam=t.uidParam=t.staticParam=t.LinkResolver=t.Rule=void 0;let r=n(87783),i=r.__importStar(n(87830)),o=i.type({isOptional:i.boolean,name:i.string,type:i.literal("custom")}),u=i.type({isOptional:i.boolean,type:i.literal("uid")}),a=i.type({isOptional:i.boolean,type:i.literal("lang")}),c=i.union([o,u,a]),f=i.type({value:i.string,type:i.literal("static")}),l=i.union([f,c]),p=i.type({trailingSlash:i.boolean,params:i.array(l)}),d=i.type({customTypeID:i.string,relationName:i.string,targetCustomTypeID:i.string}),s=i.record(i.string,i.array(d));t.Rule=i.type({pattern:p,resolvers:s}),t.LinkResolver=i.record(i.string,i.record(i.string,i.record(i.string,t.Rule))),t.staticParam=function(e){return{value:e,type:"static"}},t.uidParam=function(e){return{isOptional:e,type:"uid"}},t.langParam=function(e){return{isOptional:e,type:"lang"}},t.customParam=function(e,t){return{name:e,isOptional:t,type:"custom"}}},44273:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CustomTypeDef=void 0;let r=n(87783),i=n(9554),o=n(14632),u=r.__importStar(n(87830)),a=n(78771),c=u.strict({id:u.string,definitions:u.array(a.WidgetDef)});t.CustomTypeDef=new u.Type("CustomTypeDef",e=>"object"==typeof e&&null!==e&&"customTypeId"in e,e=>(0,o.pipe)(c.decode(e),i.either.map(({id:e,definitions:t})=>({customTypeId:e,fields:t.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{})}))),e=>e)},52908:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GroupDef=t.NestedGroupDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(66106);function l(e,t){return new a.Type("GroupDef",t=>(0,c.isFieldDef)(t)&&e.is(t.def),e=>{let n=a.strict({name:a.string,fields:a.array(t)});return(0,u.pipe)(n.decode(e),o.either.map(({name:e,fields:t})=>({key:e,def:{type:"Group",config:{fields:t.reduce((e,t)=>({...e,[t.key]:t.def}),{})}}})))},e=>e)}t.NestedGroupDef=l(i.NestedGroup,f.NestableDef),t.GroupDef=l(i.Group,a.union([f.NestableDef,t.NestedGroupDef]))},52144:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({uid:a.string});t.UIDDef=new a.Type("UID",e=>(0,c.isFieldDef)(e)&&i.UID.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({uid:e})=>({key:e,def:{type:"UID"}}))),e=>e)},78771:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetDef=void 0;let r=n(87783),i=r.__importStar(n(87830)),o=n(52908),u=n(40646),a=n(68126),c=n(52144);t.WidgetDef=i.union([a.SlicesDef,o.GroupDef,c.UIDDef,u.NestableDef])},73466:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);r.__exportStar(n(52908),t),r.__exportStar(n(40646),t),r.__exportStar(n(68126),t),r.__exportStar(n(52144),t),r.__exportStar(n(78771),t)},63868:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({booleanField:a.string,config:a.strict({default_value:a.boolean})});t.BooleanDef=new a.Type("BooleanDef",e=>(0,c.isFieldDef)(e)&&i.BooleanField.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({booleanField:e,config:t})=>({key:e,def:{type:"Boolean",config:t}}))),e=>e)},68294:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({color:a.string});t.ColorDef=new a.Type("ColorDef",e=>(0,c.isFieldDef)(e)&&i.Color.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({color:e})=>({key:e,def:{type:"Color"}}))),e=>e)},43499:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DateDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({date:a.string});t.DateDef=new a.Type("DateDef",e=>(0,c.isFieldDef)(e)&&i.Date.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({date:e})=>({key:e,def:{type:"Date"}}))),e=>e)},56301:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({embed:a.string});t.EmbedDef=new a.Type("EmbedDef",e=>(0,c.isFieldDef)(e)&&i.Embed.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({embed:e})=>({key:e,def:{type:"Embed"}}))),e=>e)},24256:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({geopoint:a.string});t.GeoPointDef=new a.Type("GeoPointDef",e=>(0,c.isFieldDef)(e)&&i.GeoPoint.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({geopoint:e})=>({key:e,def:{type:"GeoPoint"}}))),e=>e)},30245:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({image:a.string,config:a.strict({thumbnails:a.array(a.string)})});t.ImageDef=new a.Type("ImageDef",e=>(0,c.isFieldDef)(e)&&i.Image.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({image:e,config:t})=>({key:e,def:{type:"Image",config:{thumbnails:t.thumbnails.map(e=>({name:e}))}}}))),e=>e)},30923:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({integrationFields:a.string});t.IntegrationFieldDef=new a.Type("IntegrationFieldDef",e=>(0,c.isFieldDef)(e)&&i.IntegrationField.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({integrationFields:e})=>({key:e,def:{type:"IntegrationFields"}}))),e=>e)},17914:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultAnyLinkDef=t.AnyLinkDef=void 0;let r=n(87783),i=n(9554),o=n(14632),u=r.__importStar(n(87830)),a=u.partial({select:u.union([u.literal("any"),u.null,u.undefined])});t.AnyLinkDef=new u.Type("AnyLinkDef",e=>"any"===e.select,e=>(0,o.pipe)(a.decode(e),i.either.map(()=>({select:null}))),e=>e),t.defaultAnyLinkDef=function(){return{select:null}}},64049:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDocumentLinkDef=t.DocumentLinkDef=void 0;let r=n(87783),i=r.__importStar(n(87830));t.DocumentLinkDef=i.strict({select:i.literal("document"),customtypes:i.readonlyArray(i.string)}),t.defaultDocumentLinkDef=function(){return{select:"document",customtypes:[]}}},10599:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultMediaLinkDef=t.MediaLinkDef=void 0;let r=n(87783),i=r.__importStar(n(87830));t.MediaLinkDef=i.strict({select:i.literal("media")}),t.defaultMediaLinkDef=function(){return{select:"media"}}},49612:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultWebLinkDef=t.WebLinkDef=void 0;let r=n(87783),i=r.__importStar(n(87830));t.WebLinkDef=i.strict({select:i.literal("web")}),t.defaultWebLinkDef=function(){return{select:"web"}}},38207:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isWebLinkDef=t.isDocumentLinkDef=t.isAnyLinkDef=t.isMediaLinkDef=t.defaultLink=t.LinkDef=void 0;let r=n(87783),i=n(46239),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(17914),l=n(64049),p=n(10599),d=n(49612),s=a.union([p.MediaLinkDef,l.DocumentLinkDef,d.WebLinkDef,f.AnyLinkDef]),m=a.strict({link:a.string,config:s});t.LinkDef=new a.Type("LinkDef",e=>(0,c.isFieldDef)(e)&&i.Link.is(e.def),e=>(0,u.pipe)(m.decode(e),o.either.map(({link:e,config:t})=>({key:e,def:{type:"Link",config:t}}))),e=>e),t.defaultLink=function(e){let t=(()=>{switch(e){case"document":return(0,l.defaultDocumentLinkDef)();case"media":return(0,p.defaultMediaLinkDef)();case"web":return(0,d.defaultWebLinkDef)();case null:return(0,f.defaultAnyLinkDef)()}})();return{type:"Link",config:t}},t.isMediaLinkDef=function(e){var t;return"Link"===e.type&&(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.select)==="media"},t.isAnyLinkDef=function(e){var t;return"Link"===e.type&&(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.select)===null},t.isDocumentLinkDef=function(e){var t;return"Link"===e.type&&(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.select)==="document"},t.isWebLinkDef=function(e){var t;return"Link"===e.type&&(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.select)==="web"},r.__exportStar(n(17914),t),r.__exportStar(n(64049),t),r.__exportStar(n(10599),t),r.__exportStar(n(49612),t)},66106:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableDef=void 0;let r=n(87783),i=r.__importStar(n(87830)),o=n(63868),u=n(68294),a=n(43499),c=n(56301),f=n(24256),l=n(30245),p=n(30923),d=n(38207),s=n(56156),m=n(44135),h=n(36116),v=n(53335),y=n(8871),g=n(24698),_=n(49437);t.NestableDef=i.union([o.BooleanDef,u.ColorDef,a.DateDef,c.EmbedDef,f.GeoPointDef,l.ImageDef,p.IntegrationFieldDef,s.NumberDef,m.RangeDef,h.RichTextDef,v.SelectDef,y.SeparatorDef,g.TextDef,_.TimestampDef,d.LinkDef,])},56156:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({number:a.string});t.NumberDef=new a.Type("NumberDef",e=>(0,c.isFieldDef)(e)&&i.Number.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({number:e})=>({key:e,def:{type:"Number"}}))),e=>e)},44135:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({range:a.string});t.RangeDef=new a.Type("RangeDef",e=>(0,c.isFieldDef)(e)&&i.Range.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({range:e})=>({key:e,def:{type:"Range"}}))),e=>e)},36116:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({structuredtext:a.string});t.RichTextDef=new a.Type("RichTextDef",e=>(0,c.isFieldDef)(e)&&i.RichText.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({structuredtext:e})=>({key:e,def:{type:"StructuredText"}}))),e=>e)},53335:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({select:a.string,config:a.strict({options:a.readonlyArray(a.string)})});t.SelectDef=new a.Type("SelectDef",e=>(0,c.isFieldDef)(e)&&i.Select.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({select:e,config:t})=>({key:e,def:{type:"Select",config:t}}))),e=>e)},8871:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({separator:a.string});t.SeparatorDef=new a.Type("SeparatorDef",e=>(0,c.isFieldDef)(e)&&i.Separator.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({separator:e})=>({key:e,def:{type:"Separator"}}))),e=>e)},24698:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({text:a.string});t.TextDef=new a.Type("TextDef",e=>(0,c.isFieldDef)(e)&&i.Text.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({text:e})=>({key:e,def:{type:"Text"}}))),e=>e)},49437:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({timestamp:a.string});t.TimestampDef=new a.Type("TimestampDef",e=>(0,c.isFieldDef)(e)&&i.Timestamp.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({timestamp:e})=>({key:e,def:{type:"Timestamp"}}))),e=>e)},40646:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);r.__exportStar(n(63868),t),r.__exportStar(n(68294),t),r.__exportStar(n(43499),t),r.__exportStar(n(56301),t),r.__exportStar(n(24256),t),r.__exportStar(n(30245),t),r.__exportStar(n(30923),t),r.__exportStar(n(38207),t),r.__exportStar(n(66106),t),r.__exportStar(n(56156),t),r.__exportStar(n(44135),t),r.__exportStar(n(36116),t),r.__exportStar(n(53335),t),r.__exportStar(n(8871),t),r.__exportStar(n(24698),t),r.__exportStar(n(49437),t)},3094:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeSliceDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(52908),l=n(66106),p=a.strict({name:a.string,primary:a.array(l.NestableDef),items:f.NestedGroupDef});t.CompositeSliceDef=new a.Type("CompositeSliceDef",e=>(0,c.isFieldDef)(e)&&i.CompositeSlice.is(e.def),e=>(0,u.pipe)(p.decode(e),o.either.map(({name:e,primary:t,items:n})=>{var r;return{key:e,def:{type:"Slice","non-repeat":t.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{}),repeat:null===(r=n.def.config)||void 0===r?void 0:r.fields}}})),e=>e)},58294:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LegacySliceDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(52908),l=n(40646),p=a.type({name:a.string,widget:a.union([f.NestedGroupDef,l.NestableDef])});t.LegacySliceDef=new a.Type("LegacySliceDef",e=>(0,c.isFieldDef)(e)&&i.LegacySlice.is(e.def),e=>(0,u.pipe)(p.decode(e),o.either.map(({name:e,widget:t})=>({key:e,def:t.def}))),e=>e)},26669:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceDef=t.VariationDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(52908),l=n(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",e=>(0,c.hasType)(e)&&i.Variation.is(e),e=>(0,u.pipe)(p.decode(e),o.either.map(e=>({id:e.id,name:e.id,description:e.id,imageUrl:"",docURL:"",version:e.version,primary:e.primary.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{}),items:e.items.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{})}))),e=>e);let d=a.string,s=a.string,m=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",e=>(0,c.isFieldDef)(e)&&i.SharedSlice.is(e.def),e=>(0,u.pipe)(m.decode(e),o.either.map(({name:e,variations:t,legacyPaths:n})=>({key:e,def:{id:e,name:e,type:"SharedSlice",variations:t,...n?{legacyPaths:n}:{}}}))),e=>e)},53531:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceDef=void 0;let r=n(87783),i=r.__importStar(n(87830)),o=n(3094),u=n(58294),a=n(26669);t.SliceDef=i.union([a.SharedSliceDef,o.CompositeSliceDef,u.LegacySliceDef])},19183:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(53531),l=a.strict({name:a.string,slices:a.array(f.SliceDef)});t.SlicesDef=new a.Type("SlicesDef",e=>(0,c.isFieldDef)(e)&&i.StaticSlices.is(e.def),e=>(0,u.pipe)(l.decode(e),o.either.map(({name:e,slices:t})=>({key:e,def:{type:"Slices",config:{choices:t.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{})}}}))),e=>e)},68126:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);r.__exportStar(n(3094),t),r.__exportStar(n(58294),t),r.__exportStar(n(26669),t),r.__exportStar(n(53531),t),r.__exportStar(n(19183),t)},32548:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);r.__exportStar(n(44273),t),r.__exportStar(n(73466),t),r.__exportStar(n(87956),t)},87956:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.hasType=t.isFieldDef=void 0,t.isFieldDef=function(e){return"object"==typeof e&&null!==e&&"key"in e&&"def"in e},t.hasType=function(e){return"object"==typeof e&&null!==e&&"type"in e}},35280:function(e,t,n){var r=n(48834).lW;function i(e){return{encode(t){let n=t.length;if(3>=r.byteLength(n.toString(),"utf8")){let i=`${n}`.padStart(3,"0");return e+i+t}throw Error(`ID is too long. Its size is ${n} and should be inferior to 1000`)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.IDEncoders=t.IDEncoder=t.decodeDocId=t.encodeDocId=void 0,t.encodeDocId=function(e,t){return`${e}%%${null!=t?t:""}`},t.decodeDocId=function(e,t){let[n,r]=e.split("%%");if(n&&r)return[n,r];if(n)return[n];throw Error(`Unable to read from for extension ${t} with encoded api key ${e}`)},t.IDEncoder=i,t.IDEncoders={documentLinks:i("=&="),documentUrls:i(">&<"),integrationFields:i("%!%")}},71659:function(e,t,n){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=n(87783),i=r.__importStar(n(87830));t.SimpleFieldType="SimpleField",t.SimpleField=i.strict({TYPE:i.literal(t.SimpleFieldType),name:i.string,legacy:i.boolean}),t.Group=i.recursion("Group",()=>i.strict({TYPE:i.literal(t.GroupType),name:i.string,fields:i.record(i.string,t.GroupOrFieldC)})),t.GroupOrFieldC=i.recursion("GroupOrField",()=>i.union([t.Simple,t.Group])),t.FieldC=i.recursion("Field",()=>i.union([t.GroupOrFieldC,t.SliceZone])),t.SliceZoneType="SliceZone",t.SliceZone=i.recursion("SliceZone",()=>i.strict({TYPE:i.literal(t.SliceZoneType),name:i.string,slices:i.record(i.string,i.union([t.GroupOrFieldC,t.Slice]))})),t.VariationC=i.recursion("Variation",()=>i.strict({TYPE:i.literal("Variation"),nonRepeat:i.strict({fields:i.record(i.string,t.GroupOrFieldC)}),repeat:i.strict({fields:i.record(i.string,t.FieldC)})})),t.CompositeSliceType="CompositeSlice",t.CompositeSlice=i.strict({TYPE:i.literal(t.CompositeSliceType),nonRepeat:i.strict({fields:i.record(i.string,t.GroupOrFieldC),TYPE:i.literal("NonRepeat")}),repeat:i.strict({fields:i.record(i.string,t.GroupOrFieldC),TYPE:i.literal("Repeat")})}),t.SharedSliceType="SharedSlice",t.SharedSlice=i.strict({TYPE:i.literal(t.SharedSliceType),variations:i.record(i.string,t.VariationC)}),t.Slice=i.union([t.SharedSlice,t.CompositeSlice]),t.GroupType="Group",t.DocRelationC=i.recursion("DocRelation",()=>i.strict({TYPE:i.literal(t.DocRelationType),name:i.string,uuid:i.string,fields:i.record(i.string,i.record(i.string,t.FieldC))})),t.Simple=i.union([t.DocRelationC,t.SimpleField]),t.DocType="Doc",t.Doc=i.recursion("Field",()=>i.strict({TYPE:i.literal("Doc"),typ:i.string,fields:i.record(i.string,t.FieldC)})),t.Docs=i.recursion("Field",()=>i.strict({docs:i.record(i.string,i.union([t.DocRelationC,t.SimpleField,t.Group,t.SliceZone])),docRelationsMap:i.record(i.string,t.DocRelationC)})),t.DocRelationType="DocRelation",t.extractGroupOrFieldIfAny=function(e){return void 0!==e&&(e.TYPE===t.SimpleFieldType||e.TYPE===t.DocRelationType||e.TYPE===t.GroupType)?e:void 0},t.extractSliceFetchIfAny=function(e){if(void 0!==e&&e.TYPE===t.SliceZoneType)return e}},73985:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkResolver=t.Fetch=t.Extensions=t.ApiVersion=void 0;let r=n(87783);r.__exportStar(n(27380),t);var i=n(15087);Object.defineProperty(t,"ApiVersion",{enumerable:!0,get:function(){return i.ApiVersion}}),r.__exportStar(n(32548),t),t.Extensions=r.__importStar(n(35280)),t.Fetch=r.__importStar(n(71659));var o=n(43134);Object.defineProperty(t,"LinkResolver",{enumerable:!0,get:function(){return o.LinkResolver}})},621:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.withObjectRenderers=void 0;let r=n(87783),i=n(16211),o=n(92425),u=r.__importStar(n(72720)),a=n(79687);t.withObjectRenderers=function(e){return{...e,renderV1Object(t,n){let r=t instanceof Array?t:Object.entries(t);return Object.fromEntries((0,o.compact)(r.map(([t,r])=>i.EmptyContent.is(r)?u.none:(0,a.renderIfNoFetchOrFetchDefined)(n,t,n=>u.some([t,e.renderV1(r,n)])))))},renderV2Object(t,n,r,o,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)n&&t in n||!n?l[t]=e.renderDefault(r):n&&"default"===o.withFetch&&(l[t]=e.renderDefault(r));else if(i.EmptyContent.is(p))n&&t in n?"default"===c.withFetchField?l[t]=e.renderDefault(r):"render"===c.withFetchField&&(l[t]=e.renderV2(r,p,n[t])):n?"default"===c.withFetch&&(l[t]=e.renderDefault(r)):"default"===c.default?l[t]=e.renderDefault(r):"render"===c.default&&(l[t]=e.renderV2(r,p));else{let d=(0,a.renderIfNoFetchOrFetchDefined)(n,t,t=>u.some(e.renderV2(r,p,t)));u.isSome(d)&&(l[t]=d.value)}}),l},renderMocksObject(t,n){let r=t instanceof Array?Object.fromEntries(t):t,o={};return Object.entries(n).forEach(([t,n])=>{let c=r[t];if(void 0===c)o[t]=e.renderDefault(n);else if(i.EmptyContent.is(c))o[t]=e.renderDefault(n);else{let f=(0,a.renderIfNoFetchOrFetchDefined)(void 0,t,()=>u.some(e.renderMocks(n,c)));u.isSome(f)&&(o[t]=f.value)}}),o}}}},79687:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=t.formatDate=t.formatDateTime=t.filterDouble=t.writeEmptyStringOrNull=t.renderIfNoFetchOrFetchDefined=void 0;let r=n(87783),i=r.__importStar(n(72720));t.renderIfNoFetchOrFetchDefined=function(e,t,n){if(void 0===e)return n(void 0);{let r=e[t];return void 0===r?i.none:n(r)}},t.writeEmptyStringOrNull=function(e,t){return null==e?t?"":null:e},t.filterDouble=function(e){if(""===e)return null;let t=Number(e);return Number.isNaN(t)?null:t},t.formatDateTime=function(e){return e.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(e){return e.toISOString().replace(/T.*/,"")},t.isEmpty=function(e){for(let t in e)return!1;return!0}},937:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=r.__importDefault(n(12706)),o=e=>({renderV1:(t,n)=>({type:"Group",value:t.value.map(t=>(0,i.default)(e).renderV1Object(t.value,null==n?void 0:n.fields))}),renderV2:(t,n,r)=>n.value.map(n=>{var o;return(0,i.default)(e).renderV2Object(n.value,null==r?void 0:r.fields,(null===(o=t.config)||void 0===o?void 0:o.fields)||{},{withFetch:"filter"},{default:"default",withFetch:"default",withFetchField:"default"})}),renderDefault:()=>[],renderMocks:(t,n)=>n.value.map(n=>{var r,o;return(null===(r=t.config)||void 0===r?void 0:r.fields)?(0,i.default)(e).renderMocksObject(n.value,null===(o=t.config)||void 0===o?void 0:o.fields):{}})});t.default=o},65082:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(16211),o=n(71659),u=n(621),a=n(26041),c=r.__importDefault(n(32955));function f(e){return void 0!==e&&e.TYPE===o.SimpleFieldType?e:void 0}function l(e){return void 0!==e&&e.TYPE===o.DocRelationType?e:void 0}let p=e=>(0,u.withObjectRenderers)({renderV1(t,n){if((0,i.isRichTextContent)(t))return(0,a.StructuredTextRenderer)(e).renderV1(t,f(n));if((0,i.isImageContent)(t))return(0,a.ImageRenderer)(e).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)(e).renderV1(t,l(n));if((0,i.isEmbedContent)(t))return a.EmbedRenderer.renderV1(t);else if((0,i.isGeoPointContent)(t))return a.GeoPointRenderer.renderV1(t);else if((0,i.isUIDContent)(t))return c.default.renderV1(t);else if((0,i.isIntegrationFieldContent)(t))return(0,a.IntegrationFieldsRenderer)(e).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,n,r){if("StructuredText"===t.type&&(0,i.isRichTextContent)(n))return(0,a.StructuredTextRenderer)(e).renderV2(t,n,f(r));if("Image"===t.type&&(0,i.isImageContent)(n))return(0,a.ImageRenderer)(e).renderV2(t,n);if("Link"===t.type&&(0,i.isLinkContent)(n))return(0,a.LinkRenderer)(e).renderV2(t,n,l(r));if("Embed"===t.type&&(0,i.isEmbedContent)(n))return a.EmbedRenderer.renderV2(t,n);if("GeoPoint"===t.type&&(0,i.isGeoPointContent)(n))return a.GeoPointRenderer.renderV2(t,n);else if("IntegrationFields"===t.type&&(0,i.isIntegrationFieldContent)(n))return(0,a.IntegrationFieldsRenderer)(e).renderV2(t,n);else if("Separator"===t.type&&(0,i.isSeparatorContent)(n))return a.SeparatorRenderer.renderV2(t,n);else if("Boolean"===t.type&&(0,i.isBooleanContent)(n))return a.BooleanRenderer.renderV2(t,n);else if((0,i.isRangeContent)(n)||(0,i.isNumberContent)(n)||(0,i.isTimestampContent)(n)||(0,i.isDateContent)(n)||(0,i.isTextContent)(n)||(0,i.isColorContent)(n)||(0,i.isSelectContent)(n))return a.FieldRenderer.renderV2(t,n);else return null},renderDefault(t){if("Link"===t.type)return(0,a.LinkRenderer)(e).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)(e).renderDefault(t);if("Image"===t.type)return(0,a.ImageRenderer)(e).renderDefault(t);else if("Separator"===t.type)return a.SeparatorRenderer.renderDefault(t);else if("Boolean"===t.type)return a.BooleanRenderer.renderDefault(t);else if("IntegrationFields"===t.type)return(0,a.IntegrationFieldsRenderer)(e).renderDefault(t);else return a.FieldRenderer.renderDefault(t)},renderMocks(t,n){if("StructuredText"===t.type&&(0,i.isRichTextContent)(n))return(0,a.StructuredTextRenderer)(e).renderMocks(t,n);if("Image"===t.type&&(0,i.isImageContent)(n))return(0,a.ImageRenderer)(e).renderMocks(t,n);if("Link"===t.type&&(0,i.isLinkContent)(n))return(0,a.LinkRenderer)(e).renderMocks(t,n);if("Embed"===t.type&&(0,i.isEmbedContent)(n))return a.EmbedRenderer.renderMocks(t,n);if("GeoPoint"===t.type&&(0,i.isGeoPointContent)(n))return a.GeoPointRenderer.renderMocks(t,n);else if("IntegrationFields"===t.type&&(0,i.isIntegrationFieldContent)(n))return(0,a.IntegrationFieldsRenderer)(e).renderMocks(t,n);else if("Separator"===t.type&&(0,i.isSeparatorContent)(n))return a.SeparatorRenderer.renderMocks(t,n);else if("Boolean"===t.type&&(0,i.isBooleanContent)(n))return a.BooleanRenderer.renderMocks(t,n);else if((0,i.isRangeContent)(n)&&"Range"===t.type||(0,i.isNumberContent)(n)&&"Number"===t.type||(0,i.isTimestampContent)(n)&&"Timestamp"===t.type||(0,i.isDateContent)(n)&&"Date"===t.type||(0,i.isTextContent)(n)&&"Text"===t.type||(0,i.isColorContent)(n)&&"Color"===t.type||(0,i.isSelectContent)(n)&&"Select"===t.type)return a.FieldRenderer.renderMocks(t,n);else return null}});t.default=p},12706:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(16211),o=n(71659),u=n(621),a=r.__importDefault(n(937)),c=r.__importDefault(n(65082));function f(e){return void 0!==e&&e.TYPE===o.GroupType?e:void 0}function l(e){return void 0!==e&&e.TYPE!==o.GroupType?e:void 0}let p=e=>(0,u.withObjectRenderers)({renderV1:(t,n)=>(0,i.isGroupContent)(t)?(0,a.default)(e).renderV1(t,f(n)):(0,c.default)(e).renderV1(t,l(n)),renderV2(t,n,r){return"Group"!==t.type&&(0,i.isNestableContent)(n)?(0,c.default)(e).renderV2(t,n,l(r)):"Group"===t.type&&(0,i.isGroupContent)(n)?(0,a.default)(e).renderV2(t,n,f(r)):this.renderDefault(t)},renderDefault:t=>"Group"===t.type?(0,a.default)(e).renderDefault(t):(0,c.default)(e).renderDefault(t),renderMocks(t,n){return(0,i.isNestableContent)(n)&&"Group"!==t.type?(0,c.default)(e).renderMocks(t,n):(0,i.isGroupContent)(n)&&"Group"===t.type?(0,a.default)(e).renderMocks(t,n):this.renderDefault(t)}});t.default=p},32955:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({value:e.value}),renderV2:(e,t)=>t.value,renderDefault:e=>null,renderMocks:(e,t)=>t.value}},81542:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDRenderer=t.StaticWidgetRenderer=t.SimpleWidgetRenderer=t.GroupRenderer=void 0;let r=n(87783);var i=n(937);Object.defineProperty(t,"GroupRenderer",{enumerable:!0,get:function(){return r.__importDefault(i).default}}),r.__exportStar(n(26041),t);var o=n(65082);Object.defineProperty(t,"SimpleWidgetRenderer",{enumerable:!0,get:function(){return r.__importDefault(o).default}}),r.__exportStar(n(94814),t);var u=n(12706);Object.defineProperty(t,"StaticWidgetRenderer",{enumerable:!0,get:function(){return r.__importDefault(u).default}});var a=n(32955);Object.defineProperty(t,"UIDRenderer",{enumerable:!0,get:function(){return r.__importDefault(a).default}})},7796:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({type:"Boolean",value:e.value}),renderV2:(e,t)=>t.value,renderDefault:e=>null,renderMocks(e,t){return this.renderV2(e,t)}}},89591:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({type:"Embed",value:{oembed:e.all}}),renderV2:(e,t)=>t.all,renderDefault:e=>({}),renderMocks(e,t){return this.renderV2(e,t)}}},49357:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(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)$/,o=/^(\d{1,4})-([0-9]{1,2})-([0-9]{1,2})$/;function u(e){let[t,n,r]=[e[1],e[2],e[3]];return`${t.padStart(4,"0")}-${n.padStart(2,"0")}-${r.padStart(2,"0")}T00:00:00.000+0000`}t.default={renderV1(e){let t={type:e.type,value:null};switch(e.type){case"Number":{let n=(0,r.filterDouble)(e.value);return{...t,value:n}}case"Date":try{let a=o.exec(e.value);if(a){let c=new Date(u(a));return{...t,value:(0,r.formatDate)(c)}}return t}catch(f){return console.warn(`Unable to render Date value with ${e.value}: ${f.toString()}`),t}case"Timestamp":try{if(i.test(e.value)){let l=new Date(e.value);return{...t,value:(0,r.formatDateTime)(l)}}return t}catch(p){return console.warn(`Unable to render Timestamp value with ${e.value}: ${p.toString()}`),t}default:return{...t,value:e.value}}},renderV2(e,t){switch(t.type){case"Number":return(0,r.filterDouble)(t.value);case"Date":try{let n=o.exec(t.value);if(n){let a=new Date(u(n));return(0,r.formatDate)(a)}return null}catch(c){return console.warn(`Unable to render Date value with ${t.value}: ${c.toString()}`),null}case"Timestamp":try{if(i.test(t.value)){let f=new Date(t.value);return(0,r.formatDateTime)(f)}return null}catch(l){return console.warn(`Unable to render Timestamp value with ${t.value}: ${l.toString()}`),null}default:return t.value}},renderDefault:e=>null,renderMocks(e,t){return this.renderV2(e,t)}}},42715:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({type:"GeoPoint",value:{latitude:e.position.lat,longitude:e.position.lng}}),renderV2:(e,t)=>({latitude:t.position.lat,longitude:t.position.lng}),renderDefault:e=>({}),renderMocks(e,t){return this.renderV2(e,t)}}},6637:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(73985),i=n(79687);function o(e,t,n){let r="v2"===n?{id:e.origin.id,edit:{x:e.edit.crop.x,y:e.edit.crop.y,zoom:e.edit.zoom,background:e.edit.background}}:{};return{dimensions:{width:e.width,height:e.height},alt:(0,i.writeEmptyStringOrNull)(e.alt,t.emptyStringInsteadOfNull),copyright:(0,i.writeEmptyStringOrNull)(e.credits,t.emptyStringInsteadOfNull),url:t.urlRewriter.rewriteImageUrl(e),...r}}let u=e=>({renderV1(t){if(t.thumbnails){let n=Object.entries(t.thumbnails).reduce((t,[n,i])=>({...t,[n.toLowerCase()]:o(i,e,r.ApiVersion.v1)}),{});return{type:"Image",value:{main:o(t,e,r.ApiVersion.v1),views:n}}}return{type:"Image",value:{main:o(t,e,r.ApiVersion.v1),views:[]}}},renderV2(t,n){let i=o(n,e,r.ApiVersion.v2);if(n.thumbnails&&n.thumbnails){let u=Object.entries(n.thumbnails).reduce((t,[n,i])=>Object.assign(t,{[n]:o(i,e,r.ApiVersion.v2)}),{});return Object.assign(i,u)}return i},renderDefault(e){var t;return((null===(t=e.config)||void 0===t?void 0:t.thumbnails)||[]).reduce((e,{name:t})=>({...e,[t]:{}}),{})},renderMocks(e,t){return this.renderV2(e,t)}});t.default=u},6413:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let n=e=>({renderV1(t){try{return{type:"IntegrationFields",value:e.Extension.encoders.integrationFields.encode(t.value)}}catch(n){return{value:{}}}},renderV2(t,n){try{return e.Extension.encoders.integrationFields.encode(n.value)}catch(r){return{}}},renderDefault:e=>null,renderMocks(e){return this.renderDefault(e)}});t.default=n},50335:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BROKEN_CUSTOM_TYPE=void 0;let r=n(73985);function i(e){return{id:e,type:t.BROKEN_CUSTOM_TYPE,tags:[],isBroken:!0}}t.BROKEN_CUSTOM_TYPE="broken_type";let o=e=>({renderV1(t,n){try{let r=e.Extension.DocEncoder.encodeDocId(t.id,null==n?void 0:n.uuid);return{type:"Link.document",value:e.Extension.encoders.documentLinks.encode(r)}}catch(u){var o;return{value:i(o=t.id)}}},renderV2(t,n,r){try{let o=e.Extension.DocEncoder.encodeDocId(n.id,null==r?void 0:r.uuid);return e.Extension.encoders.documentLinks.encode(o)}catch(u){return i(n.id)}},renderMocks(e,t){let n=r.DocumentLinkDef.is(e)&&e.customtypes[0]||"mock";return{id:t.id,link_type:"Document",type:n,tags:[],lang:"en-us",slug:null,first_publication_date:"1970-01-01T00:00:01+0000",last_publication_date:"1970-01-01T01:00:00+0000"}}});t.default=o},15802:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1(e){let t="string"==typeof e.target?{target:e.target}:{};return{type:"Link.web",value:{url:e.url,...t}}},renderV2(e,t){let n={link_type:"Web",url:t.url};return Object.assign(n,"string"==typeof t.target?{target:t.target}:{})},renderMocks(e,t){return this.renderV2(e,t)}}},50632:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let n=e=>({renderV1:t=>({type:"Link.file",value:{file:{name:t.name,kind:t.kind,url:e.urlRewriter.rewriteFileUrl(t.url),size:t.size}}}),renderV2:(t,n)=>({link_type:"Media",id:n.id,name:n.name,kind:n.kind,url:e.urlRewriter.rewriteFileUrl(n.url),size:n.size}),renderMocks:(e,t)=>({link_type:"Media",name:"mock",kind:"image",url:"https://source.unsplash.com/random",size:"10kB"})});t.default=n},83434:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let n=e=>({renderV1:t=>({type:"Link.image",value:{image:{name:t.name,kind:t.kind,url:e.urlRewriter.optimizeImageUrl(t.url),size:t.size,height:t.height,width:t.width}}}),renderV2:(t,n)=>({id:n.id,link_type:"Media",name:n.name,kind:n.kind,url:e.urlRewriter.optimizeImageUrl(n.url),size:n.size,height:n.height,width:n.width}),renderMocks:(e,t)=>({link_type:"Media",name:"mock",kind:"image",url:"https://source.unsplash.com/random",size:"10kB",height:"1920px",width:"1080px"})});t.default=n},57777:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageLinkRenderer=t.FileLinkRenderer=t.ExternalLinkRenderer=t.DocumentLinkRenderer=void 0;let r=n(87783),i=n(73985),o=r.__importDefault(n(50335));t.DocumentLinkRenderer=o.default;let u=r.__importDefault(n(15802));t.ExternalLinkRenderer=u.default;let a=r.__importDefault(n(50632));t.FileLinkRenderer=a.default;let c=r.__importDefault(n(83434));t.ImageLinkRenderer=c.default;let f=e=>({renderV1(t,n){if("ImageLink"===t.value.__TYPE__)return(0,c.default)(e).renderV1(t.value);if("DocumentLink"===t.value.__TYPE__)return(0,o.default)(e).renderV1(t.value,n);if("FileLink"===t.value.__TYPE__)return(0,a.default)(e).renderV1(t.value);if("ExternalLink"===t.value.__TYPE__)return u.default.renderV1(t.value);throw Error(`No rendered found for link ${JSON.stringify(t)}`)},renderV2(t,n,r){return"ImageLink"===n.value.__TYPE__&&((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))?(0,c.default)(e).renderV2(t.config,n.value):((0,i.isDocumentLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"DocumentLink"===n.value.__TYPE__?(0,o.default)(e).renderV2(t.config,n.value,r):((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"FileLink"===n.value.__TYPE__?(0,a.default)(e).renderV2(t.config,n.value):((0,i.isWebLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"ExternalLink"===n.value.__TYPE__?u.default.renderV2(t.config,n.value):this.renderDefault(t)},renderDefault(e){var t;switch(null===(t=e.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,n){return"ImageLink"===n.value.__TYPE__&&((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))?(0,c.default)(e).renderMocks(t.config,n.value):((0,i.isDocumentLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"DocumentLink"===n.value.__TYPE__?(0,o.default)(e).renderMocks(t.config,n.value):((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"FileLink"===n.value.__TYPE__?(0,a.default)(e).renderMocks(t.config,n.value):((0,i.isWebLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"ExternalLink"===n.value.__TYPE__?u.default.renderMocks(t.config,n.value):this.renderDefault(t)}});t.default=f},97562:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({type:"Separator"}),renderV2:(e,t)=>!0,renderDefault:e=>!0,renderMocks(e,t){return this.renderV2(e,t)}}},83775:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(16211),o=r.__importStar(n(87412)),u=n(73985),a=n(73985),c=n(79687),f=r.__importDefault(n(57777));function l(e){if((0,i.isLinkContent)(e))switch(e.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(e)}`)}function p(e,t,n){return t===u.ApiVersion.v1?(0,f.default)(n).renderV1(e,void 0):t===u.ApiVersion.v2?(0,f.default)(n).renderV2((0,a.defaultLink)(l(e)),e,void 0):t===u.ApiVersion.mocks?(0,f.default)(n).renderMocks((0,a.defaultLink)(l(e)),e):void 0}let d=e=>({renderBlock:t=>n=>{if((0,i.checkImageBlock)(t)){let r=(()=>{if(t.data.linkTo){let r={__TYPE__:"LinkContent",value:t.data.linkTo};return{linkTo:p(r,n,e)}}return{}})(),a=t.label?{label:t.label}:{},f=t.direction?{direction:t.direction}:{},l=n===u.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:e.urlRewriter.rewriteImageUrl(t.data),alt:(0,c.writeEmptyStringOrNull)(t.data.alt,e.emptyStringInsteadOfNull),copyright:(0,c.writeEmptyStringOrNull)(t.data.credits,e.emptyStringInsteadOfNull),dimensions:{width:t.data.width,height:t.data.height},...l,...r,...a,...f}}if((0,i.checkEmbedBlock)(t)){let d=t.label?{label:t.label}:{},s=t.direction?{direction:t.direction}:{};return{type:"embed",oembed:t.data.all,...d,...s}}{let m=t.label?{label:t.label}:{},h=t.direction?{direction:t.direction}:{},v=(t.content.spans||[]).map(t=>{let r={start:t.start,end:t.end,type:t.type};if("hyperlink"===t.type){let u=i.Link.decode(t.data),a=(()=>{if(o.isRight(u)){let t={__TYPE__:"LinkContent",value:u.right};return p(t,n,e)}return{}})();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,...m,spans:v,...h}}}});t.default=d},558:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(14632),o=r.__importStar(n(72720)),u=n(73985),a=r.__importDefault(n(83775));function c(e,t){let n=(0,i.pipe)(o.fromNullable(e.value.find(e=>e.type.startsWith("heading"))),o.alt(()=>o.fromNullable(e.value.find(e=>"embed"!==e.type&&"image"!==e.type))),o.map(e=>[e]),o.getOrElse(()=>[]));return t({__TYPE__:"StructuredTextContent",value:n})}let f=e=>({renderV1(t,n){let r=t.value.map(t=>(0,a.default)(e).renderBlock(t)(u.ApiVersion.v1));return void 0!==n&&n.legacy?c(t,t=>t.value.map(t=>(0,a.default)(e).renderBlock(t)(u.ApiVersion.v1))):{type:"StructuredText",value:r}},renderV2(t,n,r){return void 0!=r&&r.legacy?c(n,e=>this.renderV2(t,e,void 0)):n.value.map(t=>(0,a.default)(e).renderBlock(t)(u.ApiVersion.v2))},renderDefault:e=>[],renderMocks:(t,n)=>n.value.map(t=>(0,a.default)(e).renderBlock(t)(u.ApiVersion.mocks))});t.default=f},26041:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};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=n(7796);Object.defineProperty(t,"BooleanRenderer",{enumerable:!0,get:function(){return r(i).default}});var o=n(89591);Object.defineProperty(t,"EmbedRenderer",{enumerable:!0,get:function(){return r(o).default}});var u=n(49357);Object.defineProperty(t,"FieldRenderer",{enumerable:!0,get:function(){return r(u).default}});var a=n(42715);Object.defineProperty(t,"GeoPointRenderer",{enumerable:!0,get:function(){return r(a).default}});var c=n(6637);Object.defineProperty(t,"ImageRenderer",{enumerable:!0,get:function(){return r(c).default}});var f=n(6413);Object.defineProperty(t,"IntegrationFieldsRenderer",{enumerable:!0,get:function(){return r(f).default}});var l=n(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=n(97562);Object.defineProperty(t,"SeparatorRenderer",{enumerable:!0,get:function(){return r(p).default}});var d=n(558);Object.defineProperty(t,"StructuredTextRenderer",{enumerable:!0,get:function(){return r(d).default}})},24485:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(71659),o=n(79687),u=r.__importDefault(n(12706)),a=e=>({renderV1(t,n){var r,i;let a=null===(r=null==n?void 0:n.repeat)||void 0===r?void 0:r.fields,c=null===(i=null==n?void 0:n.nonRepeat)||void 0===i?void 0:i.fields,f=t.repeat.flatMap(t=>{let n=(0,u.default)(e).renderV1Object(t.value,a);return(0,o.isEmpty)(n)?[]:[n]}),l=(0,u.default)(e).renderV1Object(t.nonRepeat,c);return{"non-repeat":l,repeat:f}},renderV2(t,n,r){var o;let a=void 0===r?void 0:{TYPE:i.GroupType,name:t.type,fields:r.repeat.fields},c=null===(o=null==r?void 0:r.nonRepeat)||void 0===o?void 0:o.fields,f=n.repeat.map(n=>(0,u.default)(e).renderV2Object(n.value,null==a?void 0:a.fields,t.repeat||{},{withFetch:"default"},{default:"render",withFetch:"filter",withFetchField:"render"})),l=(0,u.default)(e).renderV2Object(n.nonRepeat,c,t["non-repeat"]||{},{withFetch:"default"},{default:"render",withFetch:"filter",withFetchField:"render"});return{primary:l,items:f}},renderDefault:e=>({}),renderMocks(t,n){let r=n.repeat.map(n=>(0,u.default)(e).renderMocksObject(n.value,t.repeat||{})),i=(0,u.default)(e).renderMocksObject(n.nonRepeat,t["non-repeat"]||{});return{primary:i,items:r}}});t.default=a},68422:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=r.__importDefault(n(12706));function o(e,t,n){var r,i,o;return null===(o=null===(i=null===(r=null==n?void 0:n.variations)||void 0===r?void 0:r[e])||void 0===i?void 0:i[t])||void 0===o?void 0:o.fields}let u=e=>({renderV1(t,n){let r=t.items.map(r=>(0,i.default)(e).renderV1Object(r.value,o(t.variation,"repeat",n))),u=(0,i.default)(e).renderV1Object(t.primary,o(t.variation,"nonRepeat",n));return{variation:t.variation,items:r,primary:u}},renderV2(t,n,r){let u=t.variations.find(e=>e.id===n.variation);if(void 0===u)return this.renderDefault(t);let a=n.items.map(t=>(0,i.default)(e).renderV2Object(t.value,o(n.variation,"repeat",r),u.items||{},{withFetch:"filter"},{default:"default",withFetch:"filter",withFetchField:"render"})),c=(0,i.default)(e).renderV2Object(n.primary,o(n.variation,"nonRepeat",r),u.primary||{},{withFetch:"filter"},{default:"default",withFetch:"filter",withFetchField:"render"});return{variation:n.variation,version:u.version,items:a,primary:c}},renderDefault:e=>({}),renderMocks(t,n){let r=t.variations.find(e=>e.id===n.variation);if(void 0===r)return this.renderDefault(t);let o=n.items.map(t=>(0,i.default)(e).renderMocksObject(t.value,r.items||{})),u=(0,i.default)(e).renderMocksObject(n.primary,r.primary||{});return{variation:n.variation,version:r.version,items:o,primary:u}}});t.default=u},57962:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(16211),o=r.__importStar(n(72720)),u=r.__importDefault(n(12706)),a=e=>({renderV1:(t,n)=>t.__TYPE__===i.EmptyContentType?o.none:o.some({value:(0,u.default)(e).renderV1(t,n)}),renderV2:(t,n,r)=>n.__TYPE__===i.EmptyContentType?o.none:o.some({value:(0,u.default)(e).renderV2(t,n,r)}),renderDefault:e=>({}),renderMocks:(t,n)=>n.__TYPE__===i.EmptyContentType?o.none:o.some({value:(0,u.default)(e).renderMocks(t,n)})});t.default=a},6324:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(16211),o=n(96742),u=r.__importStar(n(72720)),a=n(71659),c=r.__importDefault(n(24485)),f=r.__importDefault(n(68422)),l=r.__importDefault(n(57962)),p={extractCompositeSlice(e){if(void 0!==e&&e.TYPE===a.CompositeSliceType)return e},extractSharedSlice(e){if(void 0!==e&&e.TYPE===a.SharedSliceType)return e},extractGroupOrField(e){if(void 0!==e&&e.TYPE!==a.CompositeSliceType&&e.TYPE!==a.SharedSliceType)return e}},d=e=>({renderV1:(t,n)=>(0,i.isCompositeSliceContent)(t)?u.some((0,c.default)(e).renderV1(t,p.extractCompositeSlice(n))):(0,i.isSharedSliceContent)(t)?u.some((0,f.default)(e).renderV1(t,p.extractSharedSlice(n))):(0,l.default)(e).renderV1(t,p.extractGroupOrField(n)),renderV2(t,n,r){return(0,i.isCompositeSliceContent)(n)&&o.CompositeSlice.is(t)?u.some((0,c.default)(e).renderV2(t,n,p.extractCompositeSlice(r))):(0,i.isSharedSliceContent)(n)&&o.SharedSlice.is(t)?u.some((0,f.default)(e).renderV2(t,n,p.extractSharedSlice(r))):(0,i.isSimpleSliceContent)(n)&&o.LegacySlice.is(t)?(0,l.default)(e).renderV2(t,n,p.extractGroupOrField(r)):u.some(this.renderDefault(t))},renderDefault:e=>({}),renderMocks(t,n){return(0,i.isCompositeSliceContent)(n)&&o.CompositeSlice.is(t)?u.some((0,c.default)(e).renderMocks(t,n)):(0,i.isSharedSliceContent)(n)&&o.SharedSlice.is(t)?u.some((0,f.default)(e).renderMocks(t,n)):(0,i.isSimpleSliceContent)(n)&&o.LegacySlice.is(t)?(0,l.default)(e).renderMocks(t,n):u.some(this.renderDefault(t))}});t.default=d},3758:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(16211),o=n(42275),u=n(92425),a=r.__importStar(n(20492)),c=n(81681),f=n(79687),l=r.__importDefault(n(6324));function p(e,t){let n=RegExp(`^(${t})\\$\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12}$`);return e.match(n)?e:`${t}$${(0,c.v4)()}`}let d=e=>({renderV1:(t,n)=>({type:"SliceZone",value:(function(e,t,n){let r=null==t?void 0:t.slices;return(0,u.compact)(e.value.map(e=>(0,o.pipe)((0,f.renderIfNoFetchOrFetchDefined)(r,e.key,t=>(0,l.default)(n).renderV1(e.widget,t)),a.map(t=>[e,t]))))})(t,n,e).map(([e,t])=>{var n;return{...t,id:p(e.key,e.name),slice_type:e.name,slice_label:null!==(n=e.maybeLabel)&&void 0!==n?n:null,type:"Slice"}})}),renderV2(t,n,r){var c;let d=Object.fromEntries(Object.entries((null===(c=t.config)||void 0===c?void 0:c.choices)||{}).map(([e,t])=>[e,t])),s=null==r?void 0:r.slices;return(0,u.compact)(n.value.map(t=>(0,f.renderIfNoFetchOrFetchDefined)(s,t.name,n=>(function(e,t,n,r){if("__TYPE__"in e.widget&&e.widget.__TYPE__===i.EmptyContentType||!(e.name in r))return a.none;{let u=r[e.name];return u?(0,o.pipe)((0,l.default)(n).renderV2(u,e.widget,t),a.map(t=>{var n;return{...t,id:p(e.key,e.name),slice_type:e.name,slice_label:null!==(n=e.maybeLabel)&&void 0!==n?n:null}})):a.none}})(t,n,e,d))))},renderDefault:e=>[],renderMocks(e,t){return this.renderV2(e,t)}});t.default=d},94814:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SliceWidgetRenderer=t.SlicesRenderer=t.SimpleSliceRenderer=t.SharedSliceRenderer=t.CompositeSliceRenderer=void 0;var i=n(24485);Object.defineProperty(t,"CompositeSliceRenderer",{enumerable:!0,get:function(){return r(i).default}});var o=n(68422);Object.defineProperty(t,"SharedSliceRenderer",{enumerable:!0,get:function(){return r(o).default}});var u=n(57962);Object.defineProperty(t,"SimpleSliceRenderer",{enumerable:!0,get:function(){return r(u).default}});var a=n(3758);Object.defineProperty(t,"SlicesRenderer",{enumerable:!0,get:function(){return r(a).default}});var c=n(6324);Object.defineProperty(t,"SliceWidgetRenderer",{enumerable:!0,get:function(){return r(c).default}})},53953:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ContentPath=void 0,t.ContentPath={serialize:e=>e.map(e=>e.key).join("::"),current:e=>e[e.length-1],append:(e,t)=>e+"::"+t,make:e=>e.reduce((e,{key:t,type:n})=>t?e.concat({key:t,type:n}):e,[])}},59146:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getAssetOrThrow=void 0;let n=e=>t=>{let n=e[t];if(!n)throw Error(`Missing asset with id '${t}'!`);return n};t.getAssetOrThrow=n},23234:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getEmbedOrThrow=void 0;let n=e=>t=>{let n=e[t];if(!n)throw Error(`Missing embed with url '${t}'`);return n};t.getEmbedOrThrow=n},62754:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.HexaColor=void 0;let n=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;t.HexaColor={is:e=>n.test(e)}},18573:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetKey=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(47320),u=RegExp("^[^<>]+$");t.WidgetKey=(0,o.refineType)(i.string,"WidgetKey",e=>0===e.length||u.test(e))},11697:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(59146),t),(0,r.__exportStar)(n(23234),t),(0,r.__exportStar)(n(18573),t)},48925:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateDocument=t.collectWidgets=t.traverseDocument=t.fillDocumentWithDefaultValues=t.DocumentLegacy=t.Document=void 0;let r=n(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(53953),f=n(11697),l=n(96742),p=n(1645),d=n(35264);t.Document=a.record(f.WidgetKey,p.WidgetContent);let s=a.record(f.WidgetKey,a.unknown),m=e=>new a.Type("Document",e=>!!e&&"object"==typeof e,t=>(0,u.pipe)(s.decode(t),i.either.map(t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,d.defaultCtx)(n,e),u=(0,p.WidgetLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:{...t,[n]:u.right}},{}))),t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,d.defaultCtx)(n,e),o=(0,p.WidgetLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}}));function h(e){let t=Object.entries(e),{types:n,widgets:r}=t.reduce((e,[t,n])=>{if(t.endsWith("_TYPE")){let r=d.FieldOrSliceType.decode(n);if((0,o.isRight)(r))return{...e,types:e.types.set(t.substring(0,t.length-5),r.right)}}return t.endsWith("_POSITION")||t.endsWith("_TYPE")?e:{...e,widgets:{...e.widgets,[t]:n}}},{types:new Map,widgets:{}}),i=e.slugs_INTERNAL||[],u=e.uid;return{widgets:r,types:n,uid:u,slugs:i}}function v(e){return{customTypeId:null==e?void 0:e.id,fields:Object.fromEntries((0,l.flattenSections)(e))}}function y({document:e,customType:t}){let n=t&&l.StaticCustomType.is(t)?v(t):t;return({transformWidget:t=({content:e})=>e,transformSlice:r=({content:e})=>e})=>{let i=n&&Object.entries(n.fields).reduce((e,[t,n])=>({...e,[t]:n}),{});return Object.entries(e).reduce((e,[o,u])=>{let a=i&&i[o],f=c.ContentPath.make([{key:null==n?void 0:n.customTypeId,type:"CustomType"},{key:o,type:"Widget"},]),l=(()=>{switch(u.__TYPE__){case"SliceContentType":return(0,p.traverseSlices)({path:f,key:o,model:(null==a?void 0:a.type)==="Slices"||(null==a?void 0:a.type)==="Choice"?a:void 0,content:u})({transformWidget:t,transformSlice:r});case"GroupContentType":return(0,p.traverseGroupContent)({path:f,key:o,apiId:o,model:(null==a?void 0:a.type)==="Group"?a:void 0,content:u})(t);default:return t({path:f,key:o,apiId:o,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:u})}})();return{...e,...l?{[o]:l}:{}}},{})}}function g(e,t){let n=l.StaticCustomType.is(t)?v(t):t,r=Object.values((0,l.collectSharedSlices)(n)).some(e=>Boolean(e.legacyPaths));return r?y({document:e,customType:t})({transformSlice:p.migrateSliceItem}):e}t.DocumentLegacy={_codec:m,extractMetadata:h,parse:function(e,t){let n=(0,u.pipe)(a.record(f.WidgetKey,a.unknown).decode(e),i.either.chain(e=>{let{types:t,widgets:n}=h(e);return m(t).decode(n)}));return(0,o.isLeft)(n)?void 0:g(n.right,t)},encode:function(e){let t=m().encode(e);return{...t.content,...t.types}}},t.fillDocumentWithDefaultValues=function(e,t){let{fields:n}=e&&l.StaticCustomType.is(e)?v(e):e;return Object.entries(n).reduce((e,[n,r])=>{let i=t[n],o=(()=>{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 o?{...e,[n]:o}:e},t)},t.traverseDocument=y,t.collectWidgets=function(e,t){let n={};return y({document:e})({transformWidget({content:e,path:r}){let i=c.ContentPath.serialize(r);return t(e,r)&&(n[i]=e),e}}),n},t.migrateDocument=g},35264:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCtx=t.getFieldCtx=t.LegacyContentCtx=t.FieldOrSliceType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(54249);t.FieldOrSliceType=i.union([o.FieldType,o.SlicesTypes]);class u{constructor(e,t,n){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=e,this.fieldPath=t||[],this.allTypes=n||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(e,t,n){return new u(e,[...t.fieldPath,t.fieldKey,...n||[]],t.allTypes)},t.defaultCtx=function(e,t=new Map){return new u(e,[],t)}},34039:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyContent=t.EmptyLegacy=t.isEmptyContent=t.EmptyContentType=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(72186);t.EmptyContentType="EmptyContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.EmptyContentType;t.isEmptyContent=c;let f=u.union([u.null,u.type({value:u.null}),]),l=e=>new u.Type("EmptyLegacy",t.isEmptyContent,n=>(0,o.pipe)(f.decode(n),i.either.map(()=>({type:e,__TYPE__:t.EmptyContentType}))),()=>null);t.EmptyLegacy=l,t.EmptyContent=u.strict({type:u.string,__TYPE__:u.literal(t.EmptyContentType)})},31952:function(e,t,n){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=n(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(96742),f=n(35264),l=n(72186),p=n(12750),d=n(77184);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),m=e=>new a.Type("GroupItemLegacy",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.GroupItemContentType,n=>{let r=(0,u.pipe)(s.decode(n),i.either.map(n=>{let r=Object.entries(n).reduce((n,[r,i])=>{let u=(0,f.getFieldCtx)(r,e),a=u.fieldType===c.GroupFieldType?(0,t.GroupLegacy)(u).decode(i):(0,p.NestableLegacy)(u).decode(i);return!a||(0,o.isLeft)(a)?n:[...n,[r,a.right]]},[]);return{value:r,__TYPE__:t.GroupItemContentType}}));return r},n=>n.value.reduce((n,[r,i])=>{let o=(0,f.getFieldCtx)(r,e),u=(0,t.isGroupContent)(i)?(0,t.GroupLegacy)(o).encode(i):(0,p.NestableLegacy)(o).encode(i);return u?{content:{...n.content,[r]:u.content},types:{...n.types,...u.types}}:n},{content:{},types:{}}));t.GroupItemLegacy=m;let h=e=>{let n=a.array(a.union([a.null,(0,t.GroupItemLegacy)(e)])),r=a.array((0,t.GroupItemLegacy)(e));return new a.Type("GroupLegacy",t.isGroupContent,e=>(0,u.pipe)(n.decode(e),i.either.map(e=>({value:e.map(e=>null===e?{__TYPE__:t.GroupItemContentType,value:[]}:e),__TYPE__:t.GroupContentType}))),t=>{let n=r.encode(t.value);return{content:n.map(e=>e.content),types:n.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:c.GroupFieldType})}})};function v({path:e,key:t,apiId:n,model:r,content:i}){return o=>{var u;let a=y({path:e,model:null===(u=null==r?void 0:r.config)||void 0===u?void 0:u.fields,content:i.value})(o);return o({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,value:a}})}}function y({path:e,model:n,content:r}){return i=>r.map((r,o)=>{let u=e.concat([{key:o.toString(),type:"GroupItem"},]),a=r.value.reduce((e,[r,o])=>{let a=null==n?void 0:n[r],f;return(f=a&&(null==a?void 0:a.type)!==c.GroupFieldType||o.__TYPE__!==t.GroupContentType?i({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:a,content:o}):v({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:a,content:o})(i))&&((0,p.isNestableContent)(f)||(0,t.isGroupContent)(f))?e.concat([[r,f]]):e},[]);return{__TYPE__:r.__TYPE__,value:a}})}t.GroupLegacy=h,t.groupContentWithDefaultValues=function(e,t){var n;let r=null===(n=e.config)||void 0===n?void 0:n.fields;return r?{...t,value:(0,d.repeatableContentWithDefaultNestableContentValues)(r,t.value)}:t},t.traverseGroupContent=v,t.traverseGroupItemsContent=y},17320:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDContent=t.UIDLegacy=t.isUIDContent=t.UIDContentType=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(72186);t.UIDContentType="UIDContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.UIDContentType;t.isUIDContent=c;let f=e=>new u.Type("UIDLegacy",t.isUIDContent,e=>(0,o.pipe)(u.string.decode(e),i.either.map(e=>t.UIDContent.encode({value:e,__TYPE__:t.UIDContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"UID"}}));t.UIDLegacy=f,t.UIDContent=u.type({__TYPE__:u.literal(t.UIDContentType),value:u.string})},40098:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetLegacy=t.isWidgetContent=t.WidgetContent=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(31952),u=n(12750),a=n(91167),c=n(17320);t.WidgetContent=i.union([o.GroupContent,u.NestableContent,c.UIDContent,a.SlicesContent,]);let f=e=>(0,o.isGroupContent)(e)||(0,u.isNestableContent)(e)||(0,c.isUIDContent)(e)||(0,a.isSlicesContent)(e);t.isWidgetContent=f;let l=e=>({decode(t){if(!e.fieldType)return;let n=(()=>{switch(e.fieldType){case"UID":return(0,c.UIDLegacy)(e);case"Group":return(0,o.GroupLegacy)(e);case"Choice":case"Slices":return(0,a.SlicesLegacy)(e);default:return(0,u.NestableLegacy)(e)}})();if(n)return n.decode(t)},encode(t){switch(t.__TYPE__){case c.UIDContentType:return(0,c.UIDLegacy)(e).encode(t);case o.GroupContentType:return(0,o.GroupLegacy)(e).encode(t);case a.SlicesContentType:return(0,a.SlicesLegacy)(e).encode(t);default:return(0,u.NestableLegacy)(e).encode(t)}}});t.WidgetLegacy=l},1645:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(34039),t),(0,r.__exportStar)(n(31952),t),(0,r.__exportStar)(n(12750),t),(0,r.__exportStar)(n(91167),t),(0,r.__exportStar)(n(17320),t),(0,r.__exportStar)(n(40098),t)},3136:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanContentDefaultValue=t.BooleanContent=t.BooleanLegacy=t.isBooleanContent=t.BooleanContentType=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(72186);t.BooleanContentType="BooleanContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.BooleanContentType;t.isBooleanContent=c;let f=e=>new u.Type("BooleanLegacy",t.isBooleanContent,e=>(0,o.pipe)(u.boolean.decode(e),i.either.map(e=>t.BooleanContent.encode({value:e,__TYPE__:t.BooleanContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"Boolean"}}));t.BooleanLegacy=f,t.BooleanContent=u.strict({__TYPE__:u.literal(t.BooleanContentType),value:u.boolean});let l=e=>{var n;return(null===(n=e.config)||void 0===n?void 0:n.default_value)!==void 0?{__TYPE__:t.BooleanContentType,value:e.config.default_value||!1}:void 0};t.BooleanContentDefaultValue=l},11893:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedContent=t.EmbedLegacy=t.EmbedContentLegacy=t.isEmbedContent=t.EmbedContentType=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(37581),c=n(72186);t.EmbedContentType="EmbedContent";let f=e=>(0,c.hasContentType)(e)&&e.__TYPE__===t.EmbedContentType;t.isEmbedContent=f,t.EmbedContentLegacy=u.exact(u.intersection([u.type({embed_url:u.string,type:u.string}),u.partial({version:u.union([u.string,u.number,u.null]),title:a.StringOrNull,author_name:a.StringOrNull,author_url:a.StringOrNull,provider_name:a.StringOrNull,provider_url:a.StringOrNull,cache_age:u.union([u.string,u.number,u.null]),thumbnail_url:a.StringOrNull,thumbnail_width:a.NumberOrNull,thumbnail_height:a.NumberOrNull,html:a.StringOrNull}),]));let l=e=>new u.Type("EmbedLegacy",t.isEmbedContent,e=>(0,o.pipe)(t.EmbedContentLegacy.decode(e),i.either.map(n=>({...n,all:e,__TYPE__:t.EmbedContentType}))),t=>({content:t.all,types:{[e.keyOfType]:"Embed"}}));t.EmbedLegacy=l,t.EmbedContent=u.intersection([t.EmbedContentLegacy,u.strict({__TYPE__:u.literal(t.EmbedContentType),all:u.unknown}),])},26377:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContent=t.ColorLegacy=t.isColorContent=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Color"===e.type;t.isColorContent=p;let d=e=>new u.Type("ColorLegacy",t.isColorContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.ColorContent.encode({value:e,type:a.ColorFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.ColorFieldType}}));t.ColorLegacy=d,t.ColorContent=u.strict({type:u.literal(a.ColorFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},30626:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DateContent=t.DateLegacy=t.isDateContent=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Date"===e.type;t.isDateContent=p;let d=e=>new u.Type("DateLegacy",t.isDateContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.DateContent.encode({value:e,type:a.DateFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.DateFieldType}}));t.DateLegacy=d,t.DateContent=u.strict({type:u.literal(a.DateFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},82341:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberContent=t.NumberLegacy=t.isNumberContent=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Number"===e.type;t.isNumberContent=p;let d=e=>new u.Type("NumberLegacy",t.isNumberContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.NumberContent.encode({value:e,type:a.NumberFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.NumberFieldType}}));t.NumberLegacy=d,t.NumberContent=u.strict({type:u.literal(a.NumberFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},15908:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeContent=t.RangeLegacy=t.isRangeContent=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Range"===e.type;t.isRangeContent=p;let d=e=>new u.Type("RangeLegacy",t.isRangeContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.RangeContent.encode({value:e,type:a.RangeFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.RangeFieldType}}));t.RangeLegacy=d,t.RangeContent=u.strict({type:u.literal(a.RangeFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},27876:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectContentDefaultValue=t.SelectContent=t.SelectLegacy=t.isSelectContent=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Select"===e.type;t.isSelectContent=p;let d=e=>new u.Type("SelectLegacy",t.isSelectContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.SelectContent.encode({value:e,type:a.SelectFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.SelectFieldType}}));t.SelectLegacy=d,t.SelectContent=u.strict({type:u.literal(a.SelectFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)});let s=e=>{var t;return(null===(t=e.config)||void 0===t?void 0:t.default_value)?{__TYPE__:l.FieldContentType,type:a.SelectFieldType,value:e.config.default_value||""}:void 0};t.SelectContentDefaultValue=s},74474:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextContent=t.TextLegacy=t.isTextContent=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Text"===e.type;t.isTextContent=p;let d=e=>new u.Type("TextLegacy",t.isTextContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.TextContent.encode({value:e,type:a.TextFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.TextFieldType}}));t.TextLegacy=d,t.TextContent=u.strict({type:u.literal(a.TextFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},57780:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampContent=t.TimestampLegacy=t.isTimestampContent=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Timestamp"===e.type;t.isTimestampContent=p;let d=e=>new u.Type("TimestampLegacy",t.isTimestampContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.TimestampContent.encode({value:e,type:a.TimestampFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.TimestampFieldType}}));t.TimestampLegacy=d,t.TimestampContent=u.strict({type:u.literal(a.TimestampFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},33111:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContentType=void 0,t.FieldContentType="FieldContent"},48930:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContent=t.FieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(26377),u=n(30626),a=n(82341),c=n(15908),f=n(27876),l=n(74474),p=n(57780);t.FieldType=i.keyof({Text:null,Date:null,Timestamp:null,Color:null,Number:null,Range:null,Select:null}),t.FieldContent=i.union([u.DateContent,o.ColorContent,a.NumberContent,c.RangeContent,f.SelectContent,l.TextContent,p.TimestampContent,]),(0,r.__exportStar)(n(26377),t),(0,r.__exportStar)(n(33111),t),(0,r.__exportStar)(n(30626),t),(0,r.__exportStar)(n(82341),t),(0,r.__exportStar)(n(15908),t),(0,r.__exportStar)(n(27876),t),(0,r.__exportStar)(n(74474),t),(0,r.__exportStar)(n(57780),t)},33065:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointContent=t.GeoPointLegacy=t.isGeoPointContent=t.GeoPointContentType=void 0;let r=n(87783),i=n(9554),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(72186);t.GeoPointContentType="GeoPointContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.GeoPointContentType;t.isGeoPointContent=c;let f=u.strict({position:u.strict({lat:u.number,lng:u.number})}),l=e=>new u.Type("GeoPointLegacy",t.isGeoPointContent,e=>(0,o.pipe)(f.decode(e),i.either.map(e=>t.GeoPointContent.encode({...e,__TYPE__:t.GeoPointContentType}))),t=>({content:{position:t.position},types:{[e.keyOfType]:"GeoPoint"}}));t.GeoPointLegacy=l,t.GeoPointContent=u.intersection([f,u.strict({__TYPE__:u.literal(t.GeoPointContentType)}),])},73089:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageContent=t.ImageLegacy=t.ImageContentView=t.isImageContent=t.ImageContentType=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(77454),c=n(37581),f=n(72186);t.ImageContentType="ImageContent";let l=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.ImageContentType;t.isImageContent=l;let p=u.exact(u.type({id:u.string,url:u.string,width:u.number,height:u.number}));t.ImageContentView=u.exact(u.intersection([u.type({origin:p,width:u.number,height:u.number,edit:u.type({zoom:u.number,crop:u.type({x:u.number,y:u.number}),background:u.string})}),u.partial({url:u.string,credits:c.NonEmptyStringOrNull,alt:c.NonEmptyStringOrNull,provider:c.StringOrNull}),]));let d=u.intersection([t.ImageContentView,u.partial({thumbnails:u.record(u.string,t.ImageContentView)}),]),s=e=>new u.Type("ImageLegacy",t.isImageContent,e=>(0,o.pipe)(d.decode(e),i.either.map(e=>t.ImageContent.encode({...e,__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:{[e.keyOfType]:"Image"}}));t.ImageLegacy=s,t.ImageContent=u.intersection([d,u.strict({__TYPE__:u.literal(t.ImageContentType)}),])},32732:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldContent=t.IntegrationFieldLegacy=t.isIntegrationFieldContent=t.IntegrationFieldContentType=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(72186);t.IntegrationFieldContentType="IntegrationFieldsContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.IntegrationFieldContentType;t.isIntegrationFieldContent=c;let f=e=>new u.Type("IntegrationFieldLegacy",t.isIntegrationFieldContent,e=>(0,o.pipe)(u.string.decode(e),i.either.map(e=>t.IntegrationFieldContent.encode({value:e,__TYPE__:t.IntegrationFieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"IntegrationFields"}}));t.IntegrationFieldLegacy=f,t.IntegrationFieldContent=u.strict({__TYPE__:u.literal(t.IntegrationFieldContentType),value:u.string})},17665:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkContent=t.Link=t.LinkContentLegacy=t.LinkLegacy=t.isLinkContent=t.LinkContentType=t.ExternalLinkContent=t.ExternalLinkType=t.DocumentLinkContent=t.DocumentLinkType=t.FileLinkContent=t.FileLinkType=t.ImageLinkContent=t.ImageLinkType=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(23284),c=n(37581),f=n(47320),l=n(72186);t.ImageLinkType="ImageLink";let p=u.exact(u.intersection([u.type({id:u.string,url:u.string,height:u.string,width:u.string,size:u.string,name:u.string,kind:u.string}),u.partial({date:c.StringOrNull}),])),d=new u.Type("ImageLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ImageLinkType,e=>(0,o.pipe)(p.decode(e),i.either.map(e=>t.ImageLinkContent.encode({...e,__TYPE__:t.ImageLinkType}))),e=>p.encode(e));t.ImageLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ImageLinkType)}),p,]),t.FileLinkType="FileLink";let s=u.exact(u.intersection([u.type({id:u.string,url:u.string,name:u.string,kind:u.string,size:(0,a.withFallback)(u.string,"0")}),u.partial({date:(0,f.nullable)(u.string)}),])),m=new u.Type("FileLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.FileLinkType,e=>(0,o.pipe)(s.decode(e),i.either.map(e=>t.FileLinkContent.encode({...e,__TYPE__:t.FileLinkType}))),e=>s.encode(e));t.FileLinkContent=u.intersection([s,u.exact(u.intersection([u.type({__TYPE__:u.literal(t.FileLinkType)}),u.partial({size:(0,a.withFallback)(u.string,"0")}),])),]),t.DocumentLinkType="DocumentLink";let h=u.strict({id:c.NonEmptyString}),v=new u.Type("DocumentLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.DocumentLinkType,e=>(0,o.pipe)(h.decode(e),i.either.map(e=>t.DocumentLinkContent.encode({...e,__TYPE__:t.DocumentLinkType}))),e=>h.encode(e));t.DocumentLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.DocumentLinkType)}),h,]),t.ExternalLinkType="ExternalLink";let y=u.exact(u.intersection([u.type({url:u.string}),u.partial({kind:u.literal("web"),target:c.StringOrNull,preview:(0,f.nullable)(u.partial({title:u.string}))}),])),g=new u.Type("ExternalLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ExternalLinkType,e=>(0,o.pipe)(y.decode(e),i.either.map(e=>t.ExternalLinkContent.encode({...e,__TYPE__:t.ExternalLinkType}))),e=>y.encode(e));t.ExternalLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ExternalLinkType)}),y,]),t.LinkContentType="LinkContent";let _=e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.LinkContentType;t.isLinkContent=_,t.LinkLegacy=u.union([d,m,v,g,]);let b=e=>new u.Type("LinkLegacy",t.isLinkContent,e=>(0,o.pipe)(t.LinkLegacy.decode(e),i.either.map(e=>t.LinkContent.encode({value:e,__TYPE__:t.LinkContentType}))),n=>({content:t.LinkLegacy.encode(n.value),types:{[e.keyOfType]:"Link"}}));t.LinkContentLegacy=b,t.Link=u.union([t.ImageLinkContent,t.FileLinkContent,t.DocumentLinkContent,t.ExternalLinkContent,]),t.LinkContent=u.strict({__TYPE__:u.literal(t.LinkContentType),value:t.Link})},22577:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableLegacy=t.isNestableContent=t.NestableContentDefaultValue=t.NestableContent=void 0;let r=n(87783),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(34039),a=n(3136),c=n(11893),f=n(48930),l=n(33111),p=n(33065),d=n(73089),s=n(32732),m=n(17665),h=n(29474),v=n(93783);t.NestableContent=o.union([u.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,m.LinkContent,h.RichTextContent,v.SeparatorContent,]);let y=e=>{switch(e.type){case"Boolean":return(0,a.BooleanContentDefaultValue)(e);case"Select":return(0,f.SelectContentDefaultValue)(e);default:return}};t.NestableContentDefaultValue=y;let g=e=>(0,f.isTextContent)(e)||(0,f.isColorContent)(e)||(0,f.isDateContent)(e)||(0,f.isTimestampContent)(e)||(0,f.isNumberContent)(e)||(0,f.isRangeContent)(e)||(0,f.isSelectContent)(e)||(0,p.isGeoPointContent)(e)||(0,h.isRichTextContent)(e)||(0,a.isBooleanContent)(e)||(0,c.isEmbedContent)(e)||(0,d.isImageContent)(e)||(0,s.isIntegrationFieldContent)(e)||(0,m.isLinkContent)(e)||(0,v.isSeparatorContent)(e)||(0,u.isEmptyContent)(e);t.isNestableContent=g;let _=e=>({decode(t){if(!e.fieldType)return;let n=(0,u.EmptyLegacy)(e.fieldType).decode(t);if((0,i.isRight)(n))return n;let r=(()=>{switch(e.fieldType){case"Text":return(0,f.TextLegacy)(e);case"Color":return(0,f.ColorLegacy)(e);case"Date":return(0,f.DateLegacy)(e);case"Timestamp":return(0,f.TimestampLegacy)(e);case"Number":return(0,f.NumberLegacy)(e);case"Range":return(0,f.RangeLegacy)(e);case"Select":return(0,f.SelectLegacy)(e);case"GeoPoint":return(0,p.GeoPointLegacy)(e);case"StructuredText":return(0,h.RichTextLegacy)(e);case"Boolean":return(0,a.BooleanLegacy)(e);case"Embed":return(0,c.EmbedLegacy)(e);case"Image":return(0,d.ImageLegacy)(e);case"IntegrationFields":return(0,s.IntegrationFieldLegacy)(e);case"Link":return(0,m.LinkContentLegacy)(e);case"Separator":return(0,v.SeparatorLegacy)(e);default:return}})();if(r)return r.decode(t)},encode(t){switch(t.__TYPE__){case l.FieldContentType:if("Text"===t.type)return(0,f.TextLegacy)(e).encode(t);if("Color"===t.type)return(0,f.ColorLegacy)(e).encode(t);if("Range"===t.type)return(0,f.RangeLegacy)(e).encode(t);if("Date"===t.type)return(0,f.DateLegacy)(e).encode(t);if("Number"===t.type)return(0,f.NumberLegacy)(e).encode(t);if("Timestamp"===t.type)return(0,f.TimestampLegacy)(e).encode(t);if("Select"===t.type)return(0,f.SelectLegacy)(e).encode(t);return;case p.GeoPointContentType:return(0,p.GeoPointLegacy)(e).encode(t);case h.RichTextContentType:return(0,h.RichTextLegacy)(e).encode(t);case c.EmbedContentType:return(0,c.EmbedLegacy)(e).encode(t);case a.BooleanContentType:return(0,a.BooleanLegacy)(e).encode(t);case d.ImageContentType:return(0,d.ImageLegacy)(e).encode(t);case s.IntegrationFieldContentType:return(0,s.IntegrationFieldLegacy)(e).encode(t);case m.LinkContentType:return(0,m.LinkContentLegacy)(e).encode(t);case v.SeparatorContentType:return(0,v.SeparatorLegacy)(e).encode(t);default:return}}});t.NestableLegacy=_},3110:function(e,t,n){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=n(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23284),f=n(46239),l=n(37581),p=n(47320),d=n(11893),s=n(73089),m=n(17665),h=e=>a.strict({data:e,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")}),y=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([h(m.Link),v,y]),t.SpanLegacy=a.union([h(m.LinkLegacy),v,y]);let g=e=>new a.Type("ValidatedSpans",t=>Array.isArray(t)&&t.every(e.is),(t,n)=>{if(!Array.isArray(t))return a.failure(t,n);{let r=t.reduce((t,n)=>{let r=e.decode(n);return(0,o.isLeft)(r)?t:[...t,r.right]},[]).sort((e,t)=>e.start-t.start);return a.success(r)}},t=>t.reduce((t,n)=>{let r=e.encode(n);return[...t,r]},[]));t.ValidatedSpans=g;let _=e=>a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.image),data:a.intersection([s.ImageContentView,a.partial({linkTo:(0,p.nullable)(e)}),])}),a.partial({label:l.StringOrNull,direction:l.StringOrNull}),]));t.ImageBlock=_(m.Link);let b=_(m.LinkLegacy);t.checkImageBlock=function(e){return e.type===f.RichTextNodeType.image};let S=a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.embed),data:a.unknown}),a.partial({label:l.StringOrNull,direction:l.StringOrNull}),])),T=new a.Type("EmbedBlockLegacy",e=>"embed"===e.type,e=>(0,u.pipe)(S.decode(e),i.either.chain(e=>i.either.map(t=>[e,t])(d.EmbedContentLegacy.decode(e.data))),i.either.map(([e,n])=>t.EmbedBlock.encode({...e,data:{...n,__TYPE__:d.EmbedContentType,all:e.data}}))),e=>({...S.encode(e),data:d.EmbedContentLegacy.encode(e.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(e){return e.type===f.RichTextNodeType.embed};let I=e=>a.exact(a.intersection([a.type({type:(0,p.refineType)(f.RichTextNodeTypeCodec,`string which isn't ${f.RichTextNodeType.image} ${f.RichTextNodeType.embed}`,e=>e!==f.RichTextNodeType.image&&e!==f.RichTextNodeType.embed),content:a.intersection([a.type({text:a.string}),a.partial({spans:(0,t.ValidatedSpans)(e)}),])}),a.partial({label:a.string,direction:a.string}),]));t.TextBlock=I(t.Span);let R=I(t.SpanLegacy),w=a.union([T,b,R,]);t.BlockLegacy=new a.Type("BlockLegacy",e=>T.is(e)||b.is(e)||R.is(e),e=>w.decode(e),e=>t.ImageBlock.is(e)?b.encode(e):t.EmbedBlock.is(e)?T.encode(e):R.encode(e)),t.Block=a.union([t.ImageBlock,t.EmbedBlock,t.TextBlock])},29474:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextLegacy=t.RichTextContent=t.isRichTextContent=t.RichTextContentType=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(72186),c=n(3110);t.RichTextContentType="StructuredTextContent";let f=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.RichTextContentType;t.isRichTextContent=f;let l=u.array(c.BlockLegacy);t.RichTextContent=u.strict({__TYPE__:u.literal(t.RichTextContentType),value:u.array(c.Block)}),(0,r.__exportStar)(n(3110),t);let p=e=>new u.Type("RichTextLegacy",t.isRichTextContent,e=>(0,o.pipe)(l.decode(e),i.either.map(e=>({value:e,__TYPE__:t.RichTextContentType}))),t=>({content:l.encode(t.value),types:{[e.keyOfType]:"StructuredText"}}));t.RichTextLegacy=p},93783:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorContent=t.SeparatorLegacy=t.isSeparatorContent=t.SeparatorContentType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(72186);t.SeparatorContentType="SeparatorContent";let u=e=>(0,o.hasContentType)(e)&&e.__TYPE__===t.SeparatorContentType;t.isSeparatorContent=u;let a=e=>new i.Type("SeparatorLegacy",t.isSeparatorContent,()=>i.success(t.SeparatorContent.encode({__TYPE__:t.SeparatorContentType})),()=>({content:{},types:{[e.keyOfType]:"Separator"}}));t.SeparatorLegacy=a,t.SeparatorContent=i.strict({__TYPE__:i.literal(t.SeparatorContentType)})},12750:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(3136),t),(0,r.__exportStar)(n(11893),t),(0,r.__exportStar)(n(48930),t),(0,r.__exportStar)(n(33065),t),(0,r.__exportStar)(n(73089),t),(0,r.__exportStar)(n(32732),t),(0,r.__exportStar)(n(17665),t),(0,r.__exportStar)(n(22577),t),(0,r.__exportStar)(n(29474),t),(0,r.__exportStar)(n(93783),t)},96865:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateCompositeSlice=t.traverseCompositeSliceContent=t.compositeSliceContentWithDefaultValues=t.CompositeSliceContent=t.CompositeSliceLegacy=t.isCompositeSliceContent=t.CompositeSliceContentType=void 0;let r=n(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(35264),f=n(72186),l=n(12750),p=n(77184),d=n(68413);t.CompositeSliceContentType="CompositeSliceContent";let s=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.CompositeSliceContentType;t.isCompositeSliceContent=s;let m=a.exact(a.partial({repeat:a.array(a.unknown),"non-repeat":a.UnknownRecord})),h=e=>new a.Type("CompositeSliceLegacy",t.isCompositeSliceContent,n=>(0,u.pipe)(m.decode(n),i.either.map(n=>{let r=(()=>{let t=(0,c.getFieldCtx)("repeat",e),r=(0,d.RepeatableWidgetsLegacy)(t).decode(n.repeat);if(!(!r||(0,o.isLeft)(r)))return r.right})()||[],i=Object.entries(n["non-repeat"]||{}).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e,["non-repeat"]);if(!i)return t;let u=(0,l.NestableLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:{...t,[n]:u.right}},{});return{nonRepeat:i,repeat:r,__TYPE__:t.CompositeSliceContentType}})),t=>{let n=Object.entries(t.nonRepeat).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e,["non-repeat"]),o=(0,l.NestableLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}}),r=(()=>{let n=(0,c.getFieldCtx)("repeat",e),r=(0,d.RepeatableWidgetsLegacy)(n).encode(t.repeat);return r})()||[];return{content:{"non-repeat":n.content,repeat:r.map(e=>e.content)},types:{[e.keyOfType]:"Slice",...n.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}});t.CompositeSliceLegacy=h,t.CompositeSliceContent=a.strict({__TYPE__:a.literal(t.CompositeSliceContentType),nonRepeat:a.record(a.string,l.NestableContent),repeat:d.RepeatableWidgets}),t.compositeSliceContentWithDefaultValues=function(e,t){var n,r;let i=(0,p.withDefaultNestableContentValues)(null!==(n=e["non-repeat"])&&void 0!==n?n:{},t.nonRepeat),o=(0,p.repeatableContentWithDefaultNestableContentValues)(null!==(r=e.repeat)&&void 0!==r?r:{},t.repeat);return{...t,nonRepeat:i,repeat:o}},t.traverseCompositeSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,u)=>{let a=Object.entries(i.widget.nonRepeat).reduce((i,[u,a])=>{var c,f,p;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[u]:null===(p=null==r?void 0:r["non-repeat"])||void 0===p?void 0:p[u],s=o({path:e.concat([{key:"non-repeat",type:"primary"},{key:u,type:"Widget"},]),key:u,apiId:n,model:d,content:a});return s?(0,l.isNestableContent)(s)?{...i,[u]:s}:(console.warn(`Warn: Non nestable content with key [${u}] detected in a composite slice [${n}] with key [${t}]`),i):i},{}),c=(0,d.traverseRepeatableWidgetItemsContent)({path:e.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})(o);return u({key:t,apiId:n,path:e,model:r,content:{...i,widget:{__TYPE__:"CompositeSliceContent",repeat:c,nonRepeat:a}}})}},t.migrateCompositeSlice=function(e,t){let[,n]=t.key.split("$");return{key:`${e.sliceName}$${n}`,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:Object.entries(t.widget.nonRepeat).reduce((n,[r,i])=>{var o;return(null===(o=e.fields.primary)||void 0===o?void 0:o[r])?{...n,[r]:i}:(console.warn(`The widget ${r} in the non-repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},{}),items:t.widget.repeat.map(n=>({__TYPE__:"GroupItemContent",value:n.value.reduce((n,[r,i])=>{var o;return(null===(o=e.fields.items)||void 0===o?void 0:o[r])?n.concat([[r,i]]):(console.warn(`The widget ${r} in the repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},[])}),[])}}}},68413:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatableWidgets=t.RepeatableWidgetsLegacy=t.traverseRepeatableWidgetItemsContent=t.traverseRepeatableWidgetContent=t.RepeatableWidgetContent=t.isRepeatableWidgetContent=t.RepeatableWidgetLegacy=void 0;let r=n(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(35264),f=n(72186),l=n(31952),p=n(12750),d=a.strict({__TYPE__:a.literal(l.GroupItemContentType),value:a.array(a.tuple([a.string,p.NestableContent]))}),s=a.record(a.string,a.unknown),m=e=>new a.Type("RepeatableWidgetItemLegacy",e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.GroupItemContentType,t=>{let n=(0,u.pipe)(s.decode(t),i.either.map(t=>{let n=Object.entries(t).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e),u=(0,p.NestableLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:[...t,[n,u.right]]},[]);return{value:n,__TYPE__:l.GroupItemContentType}}));return n},t=>t.value.reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e),o=(0,p.NestableLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}})),h=e=>{let n=a.array(a.union([a.null,m(e)])),r=a.array(m(e));return new a.Type("RepeatableWidgetLegacy",t.isRepeatableWidgetContent,e=>(0,u.pipe)(n.decode(e),i.either.map(e=>({value:e.map(e=>null===e?{__TYPE__:l.GroupItemContentType,value:[]}:e),__TYPE__:l.GroupContentType}))),t=>{let n=r.encode(t.value);return{content:n.map(e=>e.content),types:n.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:"Group"})}})};t.RepeatableWidgetLegacy=h;let v=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.GroupContentType;function y({path:e,model:t,content:n}){return r=>n.map((n,i)=>{let o=e.concat([{key:i.toString(),type:"GroupItem"},]),u=n.value.reduce((e,[n,i])=>{let u=null==t?void 0:t[n],a=r({path:o.concat([{key:n,type:"Widget"},]),key:n,apiId:n,model:u,content:i});return a&&(0,p.isNestableContent)(a)?e.concat([[n,a]]):e},[]);return{__TYPE__:n.__TYPE__,value:u}})}t.isRepeatableWidgetContent=v,t.RepeatableWidgetContent=a.strict({__TYPE__:a.literal(l.GroupContentType),value:a.array(d)}),t.traverseRepeatableWidgetContent=function({path:e,key:t,apiId:n,model:r,content:i}){return o=>{var u;let a=y({path:e,model:null===(u=null==r?void 0:r.config)||void 0===u?void 0:u.fields,content:i.value})(o);return o({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,value:a}})}},t.traverseRepeatableWidgetItemsContent=y;let g=e=>a.array(m(e));t.RepeatableWidgetsLegacy=g;let _=a.tuple([a.string,p.NestableContent]),b=a.strict({__TYPE__:a.literal(l.GroupItemContentType),value:a.array(_)});t.RepeatableWidgets=a.array(b)},914:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSharedSliceContent=t.sharedSliceContentWithDefaultValues=t.SharedSliceContent=t.SharedSliceLegacy=t.isSharedSliceContent=t.SharedSliceContentType=void 0;let r=n(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23284),f=n(96742),l=n(35264),p=n(72186),d=n(31952),s=n(12750),m=n(77184),h=n(68413),v=n(55076);t.SharedSliceContentType="SharedSliceContent";let y=e=>(0,p.hasContentType)(e)&&e.__TYPE__===t.SharedSliceContentType;t.isSharedSliceContent=y;let g=a.exact(a.type({variation:a.string,items:(0,c.withFallback)(a.array(a.unknown),[]),primary:(0,c.withFallback)(a.UnknownRecord,{})})),_=e=>new a.Type("SharedSliceLegacy",t.isSharedSliceContent,n=>(0,u.pipe)(g.decode(n),i.either.map(n=>{let r=(()=>{let t=(0,l.getFieldCtx)("items",e,["variations",n.variation,]),r=(0,h.RepeatableWidgetsLegacy)(t).decode(n.items);if(!(!r||(0,o.isLeft)(r)))return r.right})()||[],i=Object.entries(n.primary).reduce((t,[r,i])=>{let u=(0,l.getFieldCtx)(r,e,["variations",n.variation,"primary",]),a=(0,v.SlicePrimaryLegacy)(u).decode(i);return!a||(0,o.isLeft)(a)?t:{...t,[r]:a.right}},{});return{variation:n.variation,primary:i,items:r,__TYPE__:t.SharedSliceContentType}})),t=>{let n=Object.entries(t.primary).reduce((n,[r,i])=>{let o=(0,l.getFieldCtx)(r,e,["variations",t.variation,"primary",]),u=(0,v.SlicePrimaryLegacy)(o).encode(i);return u?{content:{...n.content,[r]:u.content},types:{...n.types,...u.types}}:n},{content:{},types:{}}),r=(()=>{let n=(0,l.getFieldCtx)("items",e,["variations",t.variation,]),r=(0,h.RepeatableWidgetsLegacy)(n).encode(t.items);return r})()||[];return{content:{primary:n.content,items:r.map(e=>e.content),variation:t.variation},types:{[e.keyOfType]:"SharedSlice",...n.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}});t.SharedSliceLegacy=_,t.SharedSliceContent=a.strict({__TYPE__:a.literal(t.SharedSliceContentType),variation:a.string,primary:a.record(a.string,v.SlicePrimaryContent),items:h.RepeatableWidgets}),t.sharedSliceContentWithDefaultValues=function(e,t){var n,r;let i=e.variations.find(e=>e.id===t.variation),o=null!==(n=null==i?void 0:i.primary)&&void 0!==n?n:{},u=null!==(r=null==i?void 0:i.items)&&void 0!==r?r:{},a=(0,m.withDefaultSlicePrimaryContentValues)(o,t.primary),c=(0,m.repeatableContentWithDefaultNestableContentValues)(u,t.items);return{...t,primary:a,items:c}},t.traverseSharedSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,u)=>{let a=Object.entries(i.widget.primary).reduce((i,[u,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[u],m=(0,d.isGroupContent)(a)?(0,d.traverseGroupContent)({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"},]),key:u,apiId:u,content:a,model:(null==p?void 0:p.type)===f.GroupFieldType?p:void 0})(o):(0,s.isNestableContent)(a)?o({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"},]),key:u,apiId:u,model:p,content:a}):void 0;return m?((0,v.isSlicePrimaryContent)(m)||console.warn(`Warn: Non nestable or group content with key [${u}] detected in a shared slice [${n}] with key [${t}]`),{...i,[u]:m}):i},{}),c=(0,h.traverseRepeatableWidgetItemsContent)({path:e.concat([{key:"items",type:"items"}]),model:null==r?void 0:r.fields.items,content:i.widget.items})(o);return u({key:t,apiId:n,path:e,model:r,content:{...i,widget:{__TYPE__:"SharedSliceContent",variation:i.widget.variation,primary:a,items:c}}})}}},463:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSimpleSlice=t.traverseSimpleSliceContent=t.SimpleSliceLegacy=t.isSimpleSliceContent=t.SimpleSliceContent=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(12750),u=n(68413);t.SimpleSliceContent=i.union([o.NestableContent,u.RepeatableWidgetContent,]);let a=e=>(0,o.isNestableContent)(e)||(0,u.isRepeatableWidgetContent)(e);t.isSimpleSliceContent=a;let c=e=>({decode:"Group"===e.fieldType?(0,u.RepeatableWidgetLegacy)(e).decode.bind(null):(0,o.NestableLegacy)(e).decode.bind(null),encode:t=>"GroupContentType"===t.__TYPE__?(0,u.RepeatableWidgetLegacy)(e).encode(t):(0,o.NestableLegacy)(e).encode(t)});t.SimpleSliceLegacy=c,t.traverseSimpleSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,a)=>{var c;if((0,u.isRepeatableWidgetContent)(i.widget)){let f=(0,u.traverseRepeatableWidgetContent)({path:e,key:i.key,apiId:i.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:i.widget})(o);return f&&a({key:i.key,apiId:i.name,path:e,model:r,content:{...i,widget:f}})}let l=o({key:i.key,apiId:i.name,path:e,model:(null==r?void 0:r.type)==="SharedSlice"?null===(c=r.fields.primary)||void 0===c?void 0:c[i.name]:(null==r?void 0:r.type)!=="Group"?r:void 0,content:i.widget});return l&&a({key:t,apiId:n,path:e,model:r,content:{...i,widget:l}})}},t.migrateSimpleSlice=function(e,t){var n;let[,r]=t.key.split("$"),i=`${e.sliceName}$${r}`;return"GroupContentType"===t.widget.__TYPE__?{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:{},items:t.widget.value.map(t=>({__TYPE__:"GroupItemContent",value:t.value.reduce((t,[n,r])=>{var i;return(null===(i=e.fields.items)||void 0===i?void 0:i[n])?t.concat([[n,r]]):t},[])}),[])}}:{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:(null===(n=e.fields.primary)||void 0===n?void 0:n[t.name])?{[t.name]:t.widget}:{},items:[]}}}},55076:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryContent=t.SlicePrimaryLegacy=t.SlicePrimaryContent=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(96742),u=n(31952),a=n(12750);t.SlicePrimaryContent=i.union([a.NestableContent,u.GroupContent]);let c=e=>{let t=(0,u.GroupLegacy)(e),n=(0,a.NestableLegacy)(e);return{decode:r=>e.fieldType===o.GroupFieldType?t.decode(r):n.decode(r),encode:e=>(0,u.isGroupContent)(e)?t.encode(e):n.encode(e)}};t.SlicePrimaryLegacy=c;let f=e=>(0,a.isNestableContent)(e)||(0,u.isGroupContent)(e);t.isSlicePrimaryContent=f},77822:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceContent=t.SliceLegacy=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(96865),u=n(914),a=n(463),c=e=>({decode(t){let n=(()=>{switch(e.fieldType){case"Slice":return(0,o.CompositeSliceLegacy)(e);case"SharedSlice":return(0,u.SharedSliceLegacy)(e);default:return(0,a.SimpleSliceLegacy)(e)}})();return n.decode(t)},encode(t){switch(t.__TYPE__){case"SharedSliceContent":return(0,u.SharedSliceLegacy)(e).encode(t);case"CompositeSliceContent":return(0,o.CompositeSliceLegacy)(e).encode(t);default:return(0,a.SimpleSliceLegacy)(e).encode(t)}}});t.SliceLegacy=c,t.SliceContent=i.union([o.CompositeSliceContent,u.SharedSliceContent,a.SimpleSliceContent,]),(0,r.__exportStar)(n(96865),t),(0,r.__exportStar)(n(68413),t),(0,r.__exportStar)(n(914),t),(0,r.__exportStar)(n(463),t),(0,r.__exportStar)(n(55076),t)},26226:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSliceItem=t.SlicesItemLegacy=t.sliceItemContentWithDefaultValues=t.isSimpleSliceItemContent=t.isCompositeSliceItemContent=t.isSharedSliceItemContent=t.SliceItemContent=void 0;let r=n(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(47320),f=n(35264),l=n(31952),p=n(12750),d=n(77184),s=n(77822),m=n(96865),h=n(914),v=n(463);function y(e){return(0,m.isCompositeSliceContent)(e.widget)}function g(e){return(0,l.isGroupContent)(e.widget)||(0,p.isNestableContent)(e.widget)}t.SliceItemContent=a.type({key:a.string,name:a.string,maybeLabel:a.union([a.string,a.undefined]),widget:s.SliceContent}),t.isSharedSliceItemContent=function(e){return(0,h.isSharedSliceContent)(e.widget)},t.isCompositeSliceItemContent=y,t.isSimpleSliceItemContent=g,t.sliceItemContentWithDefaultValues=function(e,t){var n;if("SharedSlice"===e.type&&(0,h.isSharedSliceContent)(t))return(0,s.sharedSliceContentWithDefaultValues)(e,t);if("Slice"===e.type&&(0,m.isCompositeSliceContent)(t))return(0,s.compositeSliceContentWithDefaultValues)(e,t);if("Group"===e.type&&(0,l.isGroupContent)(t)&&(null===(n=e.config)||void 0===n?void 0:n.fields)){let r=(0,d.repeatableContentWithDefaultNestableContentValues)(e.config.fields,t.value);return{...t,value:r}}return t};let _=a.exact(a.intersection([a.type({key:a.string,value:a.unknown}),a.partial({label:(0,c.nullable)(a.string)}),])),b=e=>new a.Type("SlicesItemLegacy",e=>((0,h.isSharedSliceContent)(e.widget),(0,m.isCompositeSliceContent)(e.widget),(0,v.isSimpleSliceContent)(e.widget)),(t,n)=>(0,u.pipe)(_.decode(t),i.either.chain(r=>{var i;let u=r.key.indexOf("$"),c=r.key.substring(0,u>0?u:void 0),l=(0,f.getFieldCtx)(c,e),p=(0,s.SliceLegacy)(l).decode(r.value);return!p||(0,o.isLeft)(p)?a.failure(t,n):a.success({key:r.key,name:c,maybeLabel:null!==(i=r.label)&&void 0!==i?i:void 0,widget:p.right})})),t=>{let n=(0,f.getFieldCtx)(t.name,e),r=(0,s.SliceLegacy)(n).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.SlicesItemLegacy=b;let S=({model:e,content:t})=>y(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,m.migrateCompositeSlice)(e,t):g(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,v.migrateSimpleSlice)(e,t):t;t.migrateSliceItem=S},19436:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSlices=t.slicesContentWithDefaultValues=t.SlicesContent=t.SlicesLegacy=t.isSlicesContent=t.SlicesContentType=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(53953),c=n(96742),f=n(72186),l=n(96865),p=n(914),d=n(463),s=n(26226);t.SlicesContentType="SliceContentType";let m=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.SlicesContentType;t.isSlicesContent=m;let h=e=>{let n=u.array((0,s.SlicesItemLegacy)(e));return new u.Type("SlicesLegacy",t.isSlicesContent,e=>(0,o.pipe)(n.decode(e),i.either.map(e=>({__TYPE__:t.SlicesContentType,value:e}))),t=>{let r=n.encode(t.value);return{content:r.map(e=>e.content),types:r.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:"Slices"})}})};t.SlicesLegacy=h,t.SlicesContent=u.type({__TYPE__:u.literal(t.SlicesContentType),value:u.array(s.SliceItemContent)}),t.slicesContentWithDefaultValues=function(e,t){var n;let r=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.choices;if(void 0===r)return t;let i=t.value.map(e=>{let t=r[e.name];if(t){let n=(0,s.sliceItemContentWithDefaultValues)(t,e.widget);return{...e,widget:n}}return e});return{...t,value:i}},t.traverseSlices=function({path:e,key:t,model:n,content:r}){return({transformWidget:i=({content:e})=>e,transformSlice:o=({content:e})=>e})=>{let u=r.value.reduce((t,r)=>{let u=n&&function(e,t,n){var r,i;let o=null===(i=null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||void 0===i?void 0:i[n.name];return(()=>{if((0,s.isSharedSliceItemContent)(n)&&o&&(0,c.isStaticSharedSlice)(o)){let e=o.variations.find(e=>e.id===n.widget.variation);return e?{type:"SharedSlice",sliceName:o.id,variationId:e.id,fields:{primary:e.primary||{},items:e.items||{}}}:void 0}})()||(()=>{var r;let i=a.ContentPath.append(a.ContentPath.serialize(e),n.name),o=Object.values((null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||{}).find(e=>{var t;return!!(0,c.isStaticSharedSlice)(e)&&!!(null===(t=e.legacyPaths)||void 0===t?void 0:t[i])});if(!o)return;let u=null==o?void 0:o.variations.find(e=>{var t;return e.id===(null===(t=o.legacyPaths)||void 0===t?void 0:t[i])});if(u)return{type:"SharedSlice",sliceName:o.id,variationId:u.id,fields:{primary:u.primary||{},items:u.items||{}}}})()||(()=>{if(o){if((0,c.isCompositeSlice)(o))return{type:"Slice","non-repeat":o["non-repeat"]||{},repeat:o.repeat||{}};if((0,c.isLegacySlice)(o))return o}})()}(e,n,r),f=(0,s.isSharedSliceItemContent)(r)?(0,p.traverseSharedSliceContent)({path:e.concat({key:r.key,type:"SharedSlice"}),sliceKey:r.key,sliceName:r.name,model:(null==u?void 0:u.type)==="SharedSlice"?u:void 0,content:r})(i,o):(0,s.isCompositeSliceItemContent)(r)?(0,l.traverseCompositeSliceContent)({path:e.concat({key:r.key,type:"Slice"}),sliceKey:r.key,sliceName:r.name,model:(null==u?void 0:u.type)==="Slice"||(null==u?void 0:u.type)==="SharedSlice"?u:void 0,content:r})(i,o):(0,s.isSimpleSliceItemContent)(r)?(0,d.traverseSimpleSliceContent)({path:e.concat({key:r.key,type:"LegacySlice"}),sliceKey:r.key,sliceName:r.name,model:u&&(null==u?void 0:u.type)!=="Slice"?u:void 0,content:r})(i,o):void 0;return f?t.concat(f):t},[]);return i({path:e,key:t,apiId:t,model:n,content:{__TYPE__:r.__TYPE__,value:u}})}}},91167:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(77822),t),(0,r.__exportStar)(n(26226),t),(0,r.__exportStar)(n(19436),t)},77184:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.repeatableContentWithDefaultNestableContentValues=t.withDefaultNestableContentValues=t.withDefaultSlicePrimaryContentValues=void 0;let r=n(96742),i=n(31952),o=n(12750);t.withDefaultSlicePrimaryContentValues=function(e,t){let n=t;for(let[u,a]of Object.entries(e)){let c=t[u];if(void 0===c){if(a.type===r.GroupFieldType)n[u]=(0,i.groupContentWithDefaultValues)(a,i.GroupContentDefaultValue);else{let f=(0,o.NestableContentDefaultValue)(a);f&&(n[u]=f)}continue}a.type===r.GroupFieldType&&(0,i.isGroupContent)(c)&&(n[u]=(0,i.groupContentWithDefaultValues)(a,c))}return n},t.withDefaultNestableContentValues=function(e,t){return Object.entries(e).reduce((e,[n,r])=>{if(void 0===t[n]){let i=(0,o.NestableContentDefaultValue)(r);return void 0!==i?{...e,[n]:i}:e}return e},t)},t.repeatableContentWithDefaultNestableContentValues=function(e,t){let n=Object.entries(e);return t.map(e=>n.reduce((t,[n,r])=>{var u;let a=e.value.find(([e])=>e===n);if("Group"===r.type){let c=(0,i.groupContentWithDefaultValues)(r,null!==(u=null==a?void 0:a[1])&&void 0!==u?u:{__TYPE__:i.GroupContentType,value:[]});return{...t,value:[...t.value.filter(([e])=>e!==n),...c?[[n,c]]:[],]}}if(!a){let f=(0,o.NestableContentDefaultValue)(r);return{...t,value:[...t.value,...f?[[n,f]]:[],]}}return t},e))}},16211:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(48925),t),(0,r.__exportStar)(n(1645),t),(0,r.__exportStar)(n(35264),t)},72186:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.hasContentType=t.hasFieldContentType=void 0;let r=n(87412),i=n(1645);function o(e){return"object"==typeof e&&null!==e&&"__TYPE__"in e}t.hasFieldContentType=function(e){return o(e)&&e.__TYPE__===i.FieldContentType&&(null==e?void 0:e.type)!==void 0&&"string"==typeof e.type&&(0,r.isRight)(i.FieldType.decode(e.type))},t.hasContentType=o},32141:function(e,t,n){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=n(87783),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(69624),a=n(37581),c=n(69879);t.CustomTypeFormat={page:"page",custom:"custom"};class f extends Error{constructor(e){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=e,this.message=this._formatError(e)}_formatError(e){let t=e.map(e=>` - ${e}`);return`The following slices doesn't exists in your Prismic repository:
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[695],{15952:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(16211),o=n(96742),u=n(73985),a=n(79687),c=n(81542),f=r.__importDefault(n(3758)),l=/(\w+)\[\d+]/;function p(e){let t={id:e.id,type:e.typ,lang:e.language};return e.uid?{...t,uid:e.uid}:t}function d(e){return(t,n)=>{var r;if(!(0,i.isEmptyContent)(t))return(0,i.isUIDContent)(t)?c.UIDRenderer.renderV1(t):(r=t,((0,i.isGroupContent)(r)||(0,i.isNestableContent)(r))&&!i.EmptyContent.is(t))?(0,c.StaticWidgetRenderer)(e).renderV1(t,u.Fetch.extractGroupOrFieldIfAny(n)):(0,f.default)(e).renderV1(t,u.Fetch.extractSliceFetchIfAny(n))}}function s(e){return(t,n,r)=>(0,i.isSlicesContent)(n)&&"Slices"===t.type?(0,f.default)(e).renderV2(t,n,u.Fetch.extractSliceFetchIfAny(r)):(0,i.isGroupContent)(n)&&"Group"===t.type?(0,c.StaticWidgetRenderer)(e).renderV2(t,n,u.Fetch.extractGroupOrFieldIfAny(r)):(0,i.isUIDContent)(n)&&"UID"===t.type?c.UIDRenderer.renderV2(t,n):(0,i.isNestableContent)(n)&&o.NestableWidget.is(t)?(0,c.StaticWidgetRenderer)(e).renderV2(t,n,u.Fetch.extractGroupOrFieldIfAny(r)):m(e)(t)}function m(e){return t=>{switch(t.type){case"Choice":case"Slices":return(0,f.default)(e).renderDefault(t);case"UID":return;default:return(0,c.StaticWidgetRenderer)(e).renderDefault(t)}}}let h=e=>{var t,n,r;return{renderV1(t,n,r,o,u,c,f,s,m){var h,v,y;let g=(u[t.groupLangId]||[]).filter(e=>e.id!==t.id).map(e=>p(e)),_=((t,n,r)=>{let o={};for(let[u,a]of n)if(!(0,i.isUIDContent)(a)){let c=u.match(l),f=c&&c[1],p=f?c[1]:u,s=f?o[p]:void 0;if(void 0!==r){let m=r.fields[u];void 0!==m&&(f?o[p]=Array.isArray(s)?[...s,d(e)(a,m)]:[d(e)(a,m)]:o[p]=d(e)(a,m))}else f?o[p]=Array.isArray(s)?[...s,d(e)(a,void 0)]:[d(e)(a,void 0)]:o[p]=d(e)(a,void 0)}return{[t.type]:o}})(t,n,m);return{id:t.id,uid:null!==(h=t.data.uid)&&void 0!==h?h:null,url:null!==(v=e.LinkResolver.buildUrl({linkResolver:s,pageType:t.type,masterLang:r,brokenRoute:f,doc:t}))&&void 0!==v?v:null,type:t.type,href:e.urlRewriter.enforceCDN(o),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:_,...c?t.metadata:{}}},renderWidgetV1:d(e),renderWidgetV2:s(e),renderV2(t,n,r,o,u,c,f,d,h,v){var y,g;let _=Object.entries(t.fields).map(([t,n])=>{if("UID"===n.type)return;let r=o.find(([e])=>e===t),u=null==v?void 0:v.fields[t],a=t.match(l),c=Boolean(a&&a[1]),f=c?a[1]:t;if(r){let[,p]=r;return(0,i.isUIDContent)(p)?void 0:void 0===v||void 0!==u?[f,s(e)(n,p,u),c]:void 0}return void 0===v||void 0!==u?[f,m(e)(n),c]:void 0}).reduce((e,t)=>{if(t){let[n,r,i]=t;if(i){let o=e[n];if(o){if(Array.isArray(o))return{...e,[n]:[...o,r]};throw Error(`[UNEXPECTED ERROR] ${JSON.stringify(o)} should be an Array`)}return{...e,[n]:[r]}}return{...e,[n]:r}}return e},{}),b=(c[n.groupLangId]||[]).filter(e=>e.id!==n.id).map(e=>p(e));return{id:n.id,uid:null!==(y=n.data.uid)&&void 0!==y?y:null,url:null!==(g=e.LinkResolver.buildUrl({linkResolver:h,pageType:n.type,masterLang:r,brokenRoute:d,doc:n}))&&void 0!==g?g:null,type:n.type,href:e.urlRewriter.enforceCDN(u),tags:n.tags,first_publication_date:n.first_publication_date?(0,a.formatDateTime)(n.first_publication_date):null,last_publication_date:n.last_publication_date?(0,a.formatDateTime)(n.last_publication_date):null,slugs:n.data.slugs,linked_documents:[],lang:n.language,alternate_languages:b,data:_,...f?n.metadata:{}}},renderMocks(t,n){let r=n.reduce((e,[,t])=>{if(i.UIDContent.is(t))return t.value},void 0),u=Object.entries(t.fields).map(([t,r])=>{var u,a,p;if("UID"===r.type)return;let d=n.find(([e])=>e===t),s=t.match(l),h=Boolean(s&&s[1]),v=h?s[1]:t;if(!d)return[v,m(e)(r),h];return[v,(a=r,p=d[1],"SliceContentType"===p.__TYPE__&&"Slices"===a.type?(0,f.default)(e).renderMocks(a,p):(0,i.isGroupContent)(p)&&"Group"===a.type?(0,c.StaticWidgetRenderer)(e).renderMocks(a,p):(0,i.isNestableContent)(p)&&o.NestableWidget.is(a)?(0,c.StaticWidgetRenderer)(e).renderMocks(a,p):m(e)(a)),h]}).reduce((e,t)=>{if(t){let[n,r,i]=t;if(i){let o=e[n];if(o){if(Array.isArray(o))return{...e,[n]:[...o,r]};throw Error(`[UNEXPECTED ERROR] ${JSON.stringify(o)} should be an Array`)}return{...e,[n]:[r]}}return{...e,[n]:r}}return e},{});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:u}},renderDefaultWidget:m(e)}};t.default=h},88985:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Utils=t.Models=t.DocumentRenderer=void 0;let r=n(87783);var i=n(15952);Object.defineProperty(t,"DocumentRenderer",{enumerable:!0,get:function(){return r.__importDefault(i).default}}),t.Models=r.__importStar(n(73985)),t.Utils=r.__importStar(n(79687)),r.__exportStar(n(81542),t)},59527:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentContent=void 0;let r=n(16211),i=n(16211),o=n(96742),u=n(87412);t.DocumentContent=class{constructor(e,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:n,types:r,slugs:o,uid:u}=i.DocumentLegacy.extractMetadata(e);this.fieldTypes=r,this.slugs=o,this.uid=u,this.widgets=n,this.customType=t}getWidget(e){let t=this.parsed[e];if(t)return t;let n=this.widgets[e],i=(()=>{let t=(0,r.WidgetLegacy)((0,r.defaultCtx)(e,this.fieldTypes)).decode(n);if(!t||(0,u.isLeft)(t))return;if(!this.customType)return t.right;let i=this.customType.fields[e];return(0,r.isSlicesContent)(t.right)&&o.StaticSlices.is(i)?(0,r.traverseSlices)({path:[{key:this.customType.customTypeId,type:"CustomType"},{key:e,type:"Widget"},],key:e,model:i,content:t.right})({transformSlice:r.migrateSliceItem}):t.right})();if(i)return this.parsed[e]=i,i}parseAll(){let e=i.DocumentLegacy._codec(this.fieldTypes).decode(this.widgets),t=(0,u.isRight)(e)?e.right:{},n=this.customType?(0,r.migrateDocument)(t,this.customType):t;return this.parsed=n,n}}},53264:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentMetadata=void 0;let r=n(87783),i=n(47320),o=r.__importStar(n(87830)),u=o.exact(o.intersection([o.type({title:o.string,description:o.string}),o.partial({imageURL:(0,i.nullable)(o.string)}),]));t.DocumentMetadata={empty:{title:"Untitled document",description:"",imageURL:void 0},codec:u}},72375:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedDocument=void 0;let r=n(87783),i=r.__importStar(n(87830));t.RelatedDocument=i.exact(i.intersection([i.type({typ:i.string,id:i.string,language:i.string,groupLangId:i.string}),i.partial({uid:i.union([i.string,i.null,i.undefined])}),]))},27380:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedDocument=t.DocumentMetadata=t.DocumentContent=t.ApiDocumentCodec=t.GroupLangId=void 0;let r=n(87783),i=n(37581),o=n(9554),u=n(42275),a=r.__importStar(n(87830)),c=n(23284),f=n(2932),l=n(59527),p=n(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=e=>(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,e),language:t.language,first_publication_date:t.first_publication_date,last_publication_date:t.last_publication_date,metadata:t.metadata})),m=e=>new a.Type("DocCodec",e=>s().is(e),(t,n)=>(0,u.pipe)(d.validate(t,n),o.either.chain(t=>{let n=e&&e.find(e=>e.customTypeId===t.type);return a.success(s(n).encode(t))})),e=>e);t.ApiDocumentCodec=m;var h=n(59527);Object.defineProperty(t,"DocumentContent",{enumerable:!0,get:function(){return h.DocumentContent}});var v=n(53264);Object.defineProperty(t,"DocumentMetadata",{enumerable:!0,get:function(){return v.DocumentMetadata}});var y=n(72375);Object.defineProperty(t,"RelatedDocument",{enumerable:!0,get:function(){return y.RelatedDocument}})},15087:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ApiVersion=void 0,(n=t.ApiVersion||(t.ApiVersion={})).v1="v1",n.v2="v2",n.mocks="mocks"},43134:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.customParam=t.langParam=t.uidParam=t.staticParam=t.LinkResolver=t.Rule=void 0;let r=n(87783),i=r.__importStar(n(87830)),o=i.type({isOptional:i.boolean,name:i.string,type:i.literal("custom")}),u=i.type({isOptional:i.boolean,type:i.literal("uid")}),a=i.type({isOptional:i.boolean,type:i.literal("lang")}),c=i.union([o,u,a]),f=i.type({value:i.string,type:i.literal("static")}),l=i.union([f,c]),p=i.type({trailingSlash:i.boolean,params:i.array(l)}),d=i.type({customTypeID:i.string,relationName:i.string,targetCustomTypeID:i.string}),s=i.record(i.string,i.array(d));t.Rule=i.type({pattern:p,resolvers:s}),t.LinkResolver=i.record(i.string,i.record(i.string,i.record(i.string,t.Rule))),t.staticParam=function(e){return{value:e,type:"static"}},t.uidParam=function(e){return{isOptional:e,type:"uid"}},t.langParam=function(e){return{isOptional:e,type:"lang"}},t.customParam=function(e,t){return{name:e,isOptional:t,type:"custom"}}},44273:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CustomTypeDef=void 0;let r=n(87783),i=n(9554),o=n(14632),u=r.__importStar(n(87830)),a=n(78771),c=u.strict({id:u.string,definitions:u.array(a.WidgetDef)});t.CustomTypeDef=new u.Type("CustomTypeDef",e=>"object"==typeof e&&null!==e&&"customTypeId"in e,e=>(0,o.pipe)(c.decode(e),i.either.map(({id:e,definitions:t})=>({customTypeId:e,fields:t.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{})}))),e=>e)},52908:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GroupDef=t.NestedGroupDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(66106);function l(e,t){return new a.Type("GroupDef",t=>(0,c.isFieldDef)(t)&&e.is(t.def),e=>{let n=a.strict({name:a.string,fields:a.array(t)});return(0,u.pipe)(n.decode(e),o.either.map(({name:e,fields:t})=>({key:e,def:{type:"Group",config:{fields:t.reduce((e,t)=>({...e,[t.key]:t.def}),{})}}})))},e=>e)}t.NestedGroupDef=l(i.NestedGroup,f.NestableDef),t.GroupDef=l(i.Group,a.union([f.NestableDef,t.NestedGroupDef]))},52144:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({uid:a.string});t.UIDDef=new a.Type("UID",e=>(0,c.isFieldDef)(e)&&i.UID.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({uid:e})=>({key:e,def:{type:"UID"}}))),e=>e)},78771:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetDef=void 0;let r=n(87783),i=r.__importStar(n(87830)),o=n(52908),u=n(40646),a=n(68126),c=n(52144);t.WidgetDef=i.union([a.SlicesDef,o.GroupDef,c.UIDDef,u.NestableDef])},73466:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);r.__exportStar(n(52908),t),r.__exportStar(n(40646),t),r.__exportStar(n(68126),t),r.__exportStar(n(52144),t),r.__exportStar(n(78771),t)},63868:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({booleanField:a.string,config:a.strict({default_value:a.boolean})});t.BooleanDef=new a.Type("BooleanDef",e=>(0,c.isFieldDef)(e)&&i.BooleanField.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({booleanField:e,config:t})=>({key:e,def:{type:"Boolean",config:t}}))),e=>e)},68294:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({color:a.string});t.ColorDef=new a.Type("ColorDef",e=>(0,c.isFieldDef)(e)&&i.Color.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({color:e})=>({key:e,def:{type:"Color"}}))),e=>e)},43499:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DateDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({date:a.string});t.DateDef=new a.Type("DateDef",e=>(0,c.isFieldDef)(e)&&i.Date.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({date:e})=>({key:e,def:{type:"Date"}}))),e=>e)},56301:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({embed:a.string});t.EmbedDef=new a.Type("EmbedDef",e=>(0,c.isFieldDef)(e)&&i.Embed.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({embed:e})=>({key:e,def:{type:"Embed"}}))),e=>e)},24256:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({geopoint:a.string});t.GeoPointDef=new a.Type("GeoPointDef",e=>(0,c.isFieldDef)(e)&&i.GeoPoint.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({geopoint:e})=>({key:e,def:{type:"GeoPoint"}}))),e=>e)},30245:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({image:a.string,config:a.strict({thumbnails:a.array(a.string)})});t.ImageDef=new a.Type("ImageDef",e=>(0,c.isFieldDef)(e)&&i.Image.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({image:e,config:t})=>({key:e,def:{type:"Image",config:{thumbnails:t.thumbnails.map(e=>({name:e}))}}}))),e=>e)},30923:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({integrationFields:a.string});t.IntegrationFieldDef=new a.Type("IntegrationFieldDef",e=>(0,c.isFieldDef)(e)&&i.IntegrationField.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({integrationFields:e})=>({key:e,def:{type:"IntegrationFields"}}))),e=>e)},17914:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultAnyLinkDef=t.AnyLinkDef=void 0;let r=n(87783),i=n(9554),o=n(14632),u=r.__importStar(n(87830)),a=u.partial({select:u.union([u.literal("any"),u.null,u.undefined])});t.AnyLinkDef=new u.Type("AnyLinkDef",e=>"any"===e.select,e=>(0,o.pipe)(a.decode(e),i.either.map(()=>({select:null}))),e=>e),t.defaultAnyLinkDef=function(){return{select:null}}},64049:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDocumentLinkDef=t.DocumentLinkDef=void 0;let r=n(87783),i=r.__importStar(n(87830));t.DocumentLinkDef=i.strict({select:i.literal("document"),customtypes:i.readonlyArray(i.string)}),t.defaultDocumentLinkDef=function(){return{select:"document",customtypes:[]}}},10599:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultMediaLinkDef=t.MediaLinkDef=void 0;let r=n(87783),i=r.__importStar(n(87830));t.MediaLinkDef=i.strict({select:i.literal("media")}),t.defaultMediaLinkDef=function(){return{select:"media"}}},49612:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultWebLinkDef=t.WebLinkDef=void 0;let r=n(87783),i=r.__importStar(n(87830));t.WebLinkDef=i.strict({select:i.literal("web")}),t.defaultWebLinkDef=function(){return{select:"web"}}},38207:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isWebLinkDef=t.isDocumentLinkDef=t.isAnyLinkDef=t.isMediaLinkDef=t.defaultLink=t.LinkDef=void 0;let r=n(87783),i=n(46239),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(17914),l=n(64049),p=n(10599),d=n(49612),s=a.union([p.MediaLinkDef,l.DocumentLinkDef,d.WebLinkDef,f.AnyLinkDef]),m=a.strict({link:a.string,config:s});t.LinkDef=new a.Type("LinkDef",e=>(0,c.isFieldDef)(e)&&i.Link.is(e.def),e=>(0,u.pipe)(m.decode(e),o.either.map(({link:e,config:t})=>({key:e,def:{type:"Link",config:t}}))),e=>e),t.defaultLink=function(e){let t=(()=>{switch(e){case"document":return(0,l.defaultDocumentLinkDef)();case"media":return(0,p.defaultMediaLinkDef)();case"web":return(0,d.defaultWebLinkDef)();case null:return(0,f.defaultAnyLinkDef)()}})();return{type:"Link",config:t}},t.isMediaLinkDef=function(e){var t;return"Link"===e.type&&(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.select)==="media"},t.isAnyLinkDef=function(e){var t;return"Link"===e.type&&(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.select)===null},t.isDocumentLinkDef=function(e){var t;return"Link"===e.type&&(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.select)==="document"},t.isWebLinkDef=function(e){var t;return"Link"===e.type&&(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.select)==="web"},r.__exportStar(n(17914),t),r.__exportStar(n(64049),t),r.__exportStar(n(10599),t),r.__exportStar(n(49612),t)},66106:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableDef=void 0;let r=n(87783),i=r.__importStar(n(87830)),o=n(63868),u=n(68294),a=n(43499),c=n(56301),f=n(24256),l=n(30245),p=n(30923),d=n(38207),s=n(56156),m=n(44135),h=n(36116),v=n(53335),y=n(8871),g=n(24698),_=n(49437);t.NestableDef=i.union([o.BooleanDef,u.ColorDef,a.DateDef,c.EmbedDef,f.GeoPointDef,l.ImageDef,p.IntegrationFieldDef,s.NumberDef,m.RangeDef,h.RichTextDef,v.SelectDef,y.SeparatorDef,g.TextDef,_.TimestampDef,d.LinkDef,])},56156:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({number:a.string});t.NumberDef=new a.Type("NumberDef",e=>(0,c.isFieldDef)(e)&&i.Number.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({number:e})=>({key:e,def:{type:"Number"}}))),e=>e)},44135:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({range:a.string});t.RangeDef=new a.Type("RangeDef",e=>(0,c.isFieldDef)(e)&&i.Range.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({range:e})=>({key:e,def:{type:"Range"}}))),e=>e)},36116:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({structuredtext:a.string});t.RichTextDef=new a.Type("RichTextDef",e=>(0,c.isFieldDef)(e)&&i.RichText.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({structuredtext:e})=>({key:e,def:{type:"StructuredText"}}))),e=>e)},53335:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({select:a.string,config:a.strict({options:a.readonlyArray(a.string)})});t.SelectDef=new a.Type("SelectDef",e=>(0,c.isFieldDef)(e)&&i.Select.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({select:e,config:t})=>({key:e,def:{type:"Select",config:t}}))),e=>e)},8871:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({separator:a.string});t.SeparatorDef=new a.Type("SeparatorDef",e=>(0,c.isFieldDef)(e)&&i.Separator.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({separator:e})=>({key:e,def:{type:"Separator"}}))),e=>e)},24698:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({text:a.string});t.TextDef=new a.Type("TextDef",e=>(0,c.isFieldDef)(e)&&i.Text.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({text:e})=>({key:e,def:{type:"Text"}}))),e=>e)},49437:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({timestamp:a.string});t.TimestampDef=new a.Type("TimestampDef",e=>(0,c.isFieldDef)(e)&&i.Timestamp.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({timestamp:e})=>({key:e,def:{type:"Timestamp"}}))),e=>e)},40646:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);r.__exportStar(n(63868),t),r.__exportStar(n(68294),t),r.__exportStar(n(43499),t),r.__exportStar(n(56301),t),r.__exportStar(n(24256),t),r.__exportStar(n(30245),t),r.__exportStar(n(30923),t),r.__exportStar(n(38207),t),r.__exportStar(n(66106),t),r.__exportStar(n(56156),t),r.__exportStar(n(44135),t),r.__exportStar(n(36116),t),r.__exportStar(n(53335),t),r.__exportStar(n(8871),t),r.__exportStar(n(24698),t),r.__exportStar(n(49437),t)},3094:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeSliceDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(52908),l=n(66106),p=a.strict({name:a.string,primary:a.array(l.NestableDef),items:f.NestedGroupDef});t.CompositeSliceDef=new a.Type("CompositeSliceDef",e=>(0,c.isFieldDef)(e)&&i.CompositeSlice.is(e.def),e=>(0,u.pipe)(p.decode(e),o.either.map(({name:e,primary:t,items:n})=>{var r;return{key:e,def:{type:"Slice","non-repeat":t.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{}),repeat:null===(r=n.def.config)||void 0===r?void 0:r.fields}}})),e=>e)},58294:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LegacySliceDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(52908),l=n(40646),p=a.type({name:a.string,widget:a.union([f.NestedGroupDef,l.NestableDef])});t.LegacySliceDef=new a.Type("LegacySliceDef",e=>(0,c.isFieldDef)(e)&&i.LegacySlice.is(e.def),e=>(0,u.pipe)(p.decode(e),o.either.map(({name:e,widget:t})=>({key:e,def:t.def}))),e=>e)},26669:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceDef=t.VariationDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(52908),l=n(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",e=>(0,c.hasType)(e)&&i.Variation.is(e),e=>(0,u.pipe)(p.decode(e),o.either.map(e=>({id:e.id,name:e.id,description:e.id,imageUrl:"",docURL:"",version:e.version,primary:e.primary.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{}),items:e.items.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{})}))),e=>e);let d=a.string,s=a.string,m=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",e=>(0,c.isFieldDef)(e)&&i.SharedSlice.is(e.def),e=>(0,u.pipe)(m.decode(e),o.either.map(({name:e,variations:t,legacyPaths:n})=>({key:e,def:{id:e,name:e,type:"SharedSlice",variations:t,...n?{legacyPaths:n}:{}}}))),e=>e)},53531:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceDef=void 0;let r=n(87783),i=r.__importStar(n(87830)),o=n(3094),u=n(58294),a=n(26669);t.SliceDef=i.union([a.SharedSliceDef,o.CompositeSliceDef,u.LegacySliceDef])},19183:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesDef=void 0;let r=n(87783),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(53531),l=a.strict({name:a.string,slices:a.array(f.SliceDef)});t.SlicesDef=new a.Type("SlicesDef",e=>(0,c.isFieldDef)(e)&&i.StaticSlices.is(e.def),e=>(0,u.pipe)(l.decode(e),o.either.map(({name:e,slices:t})=>({key:e,def:{type:"Slices",config:{choices:t.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{})}}}))),e=>e)},68126:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);r.__exportStar(n(3094),t),r.__exportStar(n(58294),t),r.__exportStar(n(26669),t),r.__exportStar(n(53531),t),r.__exportStar(n(19183),t)},32548:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);r.__exportStar(n(44273),t),r.__exportStar(n(73466),t),r.__exportStar(n(87956),t)},87956:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.hasType=t.isFieldDef=void 0,t.isFieldDef=function(e){return"object"==typeof e&&null!==e&&"key"in e&&"def"in e},t.hasType=function(e){return"object"==typeof e&&null!==e&&"type"in e}},35280:function(e,t,n){var r=n(48834).lW;function i(e){return{encode(t){let n=t.length;if(3>=r.byteLength(n.toString(),"utf8")){let i=`${n}`.padStart(3,"0");return e+i+t}throw Error(`ID is too long. Its size is ${n} and should be inferior to 1000`)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.IDEncoders=t.IDEncoder=t.decodeDocId=t.encodeDocId=void 0,t.encodeDocId=function(e,t){return`${e}%%${null!=t?t:""}`},t.decodeDocId=function(e,t){let[n,r]=e.split("%%");if(n&&r)return[n,r];if(n)return[n];throw Error(`Unable to read from for extension ${t} with encoded api key ${e}`)},t.IDEncoder=i,t.IDEncoders={documentLinks:i("=&="),documentUrls:i(">&<"),integrationFields:i("%!%")}},71659:function(e,t,n){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=n(87783),i=r.__importStar(n(87830));t.SimpleFieldType="SimpleField",t.SimpleField=i.strict({TYPE:i.literal(t.SimpleFieldType),name:i.string,legacy:i.boolean}),t.Group=i.recursion("Group",()=>i.strict({TYPE:i.literal(t.GroupType),name:i.string,fields:i.record(i.string,t.GroupOrFieldC)})),t.GroupOrFieldC=i.recursion("GroupOrField",()=>i.union([t.Simple,t.Group])),t.FieldC=i.recursion("Field",()=>i.union([t.GroupOrFieldC,t.SliceZone])),t.SliceZoneType="SliceZone",t.SliceZone=i.recursion("SliceZone",()=>i.strict({TYPE:i.literal(t.SliceZoneType),name:i.string,slices:i.record(i.string,i.union([t.GroupOrFieldC,t.Slice]))})),t.VariationC=i.recursion("Variation",()=>i.strict({TYPE:i.literal("Variation"),nonRepeat:i.strict({fields:i.record(i.string,t.GroupOrFieldC)}),repeat:i.strict({fields:i.record(i.string,t.FieldC)})})),t.CompositeSliceType="CompositeSlice",t.CompositeSlice=i.strict({TYPE:i.literal(t.CompositeSliceType),nonRepeat:i.strict({fields:i.record(i.string,t.GroupOrFieldC),TYPE:i.literal("NonRepeat")}),repeat:i.strict({fields:i.record(i.string,t.GroupOrFieldC),TYPE:i.literal("Repeat")})}),t.SharedSliceType="SharedSlice",t.SharedSlice=i.strict({TYPE:i.literal(t.SharedSliceType),variations:i.record(i.string,t.VariationC)}),t.Slice=i.union([t.SharedSlice,t.CompositeSlice]),t.GroupType="Group",t.DocRelationC=i.recursion("DocRelation",()=>i.strict({TYPE:i.literal(t.DocRelationType),name:i.string,uuid:i.string,fields:i.record(i.string,i.record(i.string,t.FieldC))})),t.Simple=i.union([t.DocRelationC,t.SimpleField]),t.DocType="Doc",t.Doc=i.recursion("Field",()=>i.strict({TYPE:i.literal("Doc"),typ:i.string,fields:i.record(i.string,t.FieldC)})),t.Docs=i.recursion("Field",()=>i.strict({docs:i.record(i.string,i.union([t.DocRelationC,t.SimpleField,t.Group,t.SliceZone])),docRelationsMap:i.record(i.string,t.DocRelationC)})),t.DocRelationType="DocRelation",t.extractGroupOrFieldIfAny=function(e){return void 0!==e&&(e.TYPE===t.SimpleFieldType||e.TYPE===t.DocRelationType||e.TYPE===t.GroupType)?e:void 0},t.extractSliceFetchIfAny=function(e){if(void 0!==e&&e.TYPE===t.SliceZoneType)return e}},73985:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkResolver=t.Fetch=t.Extensions=t.ApiVersion=void 0;let r=n(87783);r.__exportStar(n(27380),t);var i=n(15087);Object.defineProperty(t,"ApiVersion",{enumerable:!0,get:function(){return i.ApiVersion}}),r.__exportStar(n(32548),t),t.Extensions=r.__importStar(n(35280)),t.Fetch=r.__importStar(n(71659));var o=n(43134);Object.defineProperty(t,"LinkResolver",{enumerable:!0,get:function(){return o.LinkResolver}})},621:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.withObjectRenderers=void 0;let r=n(87783),i=n(16211),o=n(92425),u=r.__importStar(n(72720)),a=n(79687);t.withObjectRenderers=function(e){return{...e,renderV1Object(t,n){let r=t instanceof Array?t:Object.entries(t);return Object.fromEntries((0,o.compact)(r.map(([t,r])=>i.EmptyContent.is(r)?u.none:(0,a.renderIfNoFetchOrFetchDefined)(n,t,n=>u.some([t,e.renderV1(r,n)])))))},renderV2Object(t,n,r,o,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)n&&t in n||!n?l[t]=e.renderDefault(r):n&&"default"===o.withFetch&&(l[t]=e.renderDefault(r));else if(i.EmptyContent.is(p))n&&t in n?"default"===c.withFetchField?l[t]=e.renderDefault(r):"render"===c.withFetchField&&(l[t]=e.renderV2(r,p,n[t])):n?"default"===c.withFetch&&(l[t]=e.renderDefault(r)):"default"===c.default?l[t]=e.renderDefault(r):"render"===c.default&&(l[t]=e.renderV2(r,p));else{let d=(0,a.renderIfNoFetchOrFetchDefined)(n,t,t=>u.some(e.renderV2(r,p,t)));u.isSome(d)&&(l[t]=d.value)}}),l},renderMocksObject(t,n){let r=t instanceof Array?Object.fromEntries(t):t,o={};return Object.entries(n).forEach(([t,n])=>{let c=r[t];if(void 0===c)o[t]=e.renderDefault(n);else if(i.EmptyContent.is(c))o[t]=e.renderDefault(n);else{let f=(0,a.renderIfNoFetchOrFetchDefined)(void 0,t,()=>u.some(e.renderMocks(n,c)));u.isSome(f)&&(o[t]=f.value)}}),o}}}},79687:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=t.formatDate=t.formatDateTime=t.filterDouble=t.writeEmptyStringOrNull=t.renderIfNoFetchOrFetchDefined=void 0;let r=n(87783),i=r.__importStar(n(72720));t.renderIfNoFetchOrFetchDefined=function(e,t,n){if(void 0===e)return n(void 0);{let r=e[t];return void 0===r?i.none:n(r)}},t.writeEmptyStringOrNull=function(e,t){return null==e?t?"":null:e},t.filterDouble=function(e){if(""===e)return null;let t=Number(e);return Number.isNaN(t)?null:t},t.formatDateTime=function(e){return e.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(e){return e.toISOString().replace(/T.*/,"")},t.isEmpty=function(e){for(let t in e)return!1;return!0}},937:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=r.__importDefault(n(12706)),o=e=>({renderV1:(t,n)=>({type:"Group",value:t.value.map(t=>(0,i.default)(e).renderV1Object(t.value,null==n?void 0:n.fields))}),renderV2:(t,n,r)=>n.value.map(n=>{var o;return(0,i.default)(e).renderV2Object(n.value,null==r?void 0:r.fields,(null===(o=t.config)||void 0===o?void 0:o.fields)||{},{withFetch:"filter"},{default:"default",withFetch:"default",withFetchField:"default"})}),renderDefault:()=>[],renderMocks:(t,n)=>n.value.map(n=>{var r,o;return(null===(r=t.config)||void 0===r?void 0:r.fields)?(0,i.default)(e).renderMocksObject(n.value,null===(o=t.config)||void 0===o?void 0:o.fields):{}})});t.default=o},65082:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(16211),o=n(71659),u=n(621),a=n(26041),c=r.__importDefault(n(32955));function f(e){return void 0!==e&&e.TYPE===o.SimpleFieldType?e:void 0}function l(e){return void 0!==e&&e.TYPE===o.DocRelationType?e:void 0}let p=e=>(0,u.withObjectRenderers)({renderV1(t,n){if((0,i.isRichTextContent)(t))return(0,a.StructuredTextRenderer)(e).renderV1(t,f(n));if((0,i.isImageContent)(t))return(0,a.ImageRenderer)(e).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)(e).renderV1(t,l(n));if((0,i.isEmbedContent)(t))return a.EmbedRenderer.renderV1(t);else if((0,i.isGeoPointContent)(t))return a.GeoPointRenderer.renderV1(t);else if((0,i.isUIDContent)(t))return c.default.renderV1(t);else if((0,i.isIntegrationFieldContent)(t))return(0,a.IntegrationFieldsRenderer)(e).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,n,r){if("StructuredText"===t.type&&(0,i.isRichTextContent)(n))return(0,a.StructuredTextRenderer)(e).renderV2(t,n,f(r));if("Image"===t.type&&(0,i.isImageContent)(n))return(0,a.ImageRenderer)(e).renderV2(t,n);if("Link"===t.type&&(0,i.isLinkContent)(n))return(0,a.LinkRenderer)(e).renderV2(t,n,l(r));if("Embed"===t.type&&(0,i.isEmbedContent)(n))return a.EmbedRenderer.renderV2(t,n);if("GeoPoint"===t.type&&(0,i.isGeoPointContent)(n))return a.GeoPointRenderer.renderV2(t,n);else if("IntegrationFields"===t.type&&(0,i.isIntegrationFieldContent)(n))return(0,a.IntegrationFieldsRenderer)(e).renderV2(t,n);else if("Separator"===t.type&&(0,i.isSeparatorContent)(n))return a.SeparatorRenderer.renderV2(t,n);else if("Boolean"===t.type&&(0,i.isBooleanContent)(n))return a.BooleanRenderer.renderV2(t,n);else if((0,i.isRangeContent)(n)||(0,i.isNumberContent)(n)||(0,i.isTimestampContent)(n)||(0,i.isDateContent)(n)||(0,i.isTextContent)(n)||(0,i.isColorContent)(n)||(0,i.isSelectContent)(n))return a.FieldRenderer.renderV2(t,n);else return null},renderDefault(t){if("Link"===t.type)return(0,a.LinkRenderer)(e).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)(e).renderDefault(t);if("Image"===t.type)return(0,a.ImageRenderer)(e).renderDefault(t);else if("Separator"===t.type)return a.SeparatorRenderer.renderDefault(t);else if("Boolean"===t.type)return a.BooleanRenderer.renderDefault(t);else if("IntegrationFields"===t.type)return(0,a.IntegrationFieldsRenderer)(e).renderDefault(t);else return a.FieldRenderer.renderDefault(t)},renderMocks(t,n){if("StructuredText"===t.type&&(0,i.isRichTextContent)(n))return(0,a.StructuredTextRenderer)(e).renderMocks(t,n);if("Image"===t.type&&(0,i.isImageContent)(n))return(0,a.ImageRenderer)(e).renderMocks(t,n);if("Link"===t.type&&(0,i.isLinkContent)(n))return(0,a.LinkRenderer)(e).renderMocks(t,n);if("Embed"===t.type&&(0,i.isEmbedContent)(n))return a.EmbedRenderer.renderMocks(t,n);if("GeoPoint"===t.type&&(0,i.isGeoPointContent)(n))return a.GeoPointRenderer.renderMocks(t,n);else if("IntegrationFields"===t.type&&(0,i.isIntegrationFieldContent)(n))return(0,a.IntegrationFieldsRenderer)(e).renderMocks(t,n);else if("Separator"===t.type&&(0,i.isSeparatorContent)(n))return a.SeparatorRenderer.renderMocks(t,n);else if("Boolean"===t.type&&(0,i.isBooleanContent)(n))return a.BooleanRenderer.renderMocks(t,n);else if((0,i.isRangeContent)(n)&&"Range"===t.type||(0,i.isNumberContent)(n)&&"Number"===t.type||(0,i.isTimestampContent)(n)&&"Timestamp"===t.type||(0,i.isDateContent)(n)&&"Date"===t.type||(0,i.isTextContent)(n)&&"Text"===t.type||(0,i.isColorContent)(n)&&"Color"===t.type||(0,i.isSelectContent)(n)&&"Select"===t.type)return a.FieldRenderer.renderMocks(t,n);else return null}});t.default=p},12706:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(16211),o=n(71659),u=n(621),a=r.__importDefault(n(937)),c=r.__importDefault(n(65082));function f(e){return void 0!==e&&e.TYPE===o.GroupType?e:void 0}function l(e){return void 0!==e&&e.TYPE!==o.GroupType?e:void 0}let p=e=>(0,u.withObjectRenderers)({renderV1:(t,n)=>(0,i.isGroupContent)(t)?(0,a.default)(e).renderV1(t,f(n)):(0,c.default)(e).renderV1(t,l(n)),renderV2(t,n,r){return"Group"!==t.type&&(0,i.isNestableContent)(n)?(0,c.default)(e).renderV2(t,n,l(r)):"Group"===t.type&&(0,i.isGroupContent)(n)?(0,a.default)(e).renderV2(t,n,f(r)):this.renderDefault(t)},renderDefault:t=>"Group"===t.type?(0,a.default)(e).renderDefault(t):(0,c.default)(e).renderDefault(t),renderMocks(t,n){return(0,i.isNestableContent)(n)&&"Group"!==t.type?(0,c.default)(e).renderMocks(t,n):(0,i.isGroupContent)(n)&&"Group"===t.type?(0,a.default)(e).renderMocks(t,n):this.renderDefault(t)}});t.default=p},32955:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({value:e.value}),renderV2:(e,t)=>t.value,renderDefault:e=>null,renderMocks:(e,t)=>t.value}},81542:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDRenderer=t.StaticWidgetRenderer=t.SimpleWidgetRenderer=t.GroupRenderer=void 0;let r=n(87783);var i=n(937);Object.defineProperty(t,"GroupRenderer",{enumerable:!0,get:function(){return r.__importDefault(i).default}}),r.__exportStar(n(26041),t);var o=n(65082);Object.defineProperty(t,"SimpleWidgetRenderer",{enumerable:!0,get:function(){return r.__importDefault(o).default}}),r.__exportStar(n(94814),t);var u=n(12706);Object.defineProperty(t,"StaticWidgetRenderer",{enumerable:!0,get:function(){return r.__importDefault(u).default}});var a=n(32955);Object.defineProperty(t,"UIDRenderer",{enumerable:!0,get:function(){return r.__importDefault(a).default}})},7796:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({type:"Boolean",value:e.value}),renderV2:(e,t)=>t.value,renderDefault:e=>null,renderMocks(e,t){return this.renderV2(e,t)}}},89591:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({type:"Embed",value:{oembed:e.all}}),renderV2:(e,t)=>t.all,renderDefault:e=>({}),renderMocks(e,t){return this.renderV2(e,t)}}},49357:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(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)$/,o=/^(\d{1,4})-([0-9]{1,2})-([0-9]{1,2})$/;function u(e){let[t,n,r]=[e[1],e[2],e[3]];return`${t.padStart(4,"0")}-${n.padStart(2,"0")}-${r.padStart(2,"0")}T00:00:00.000+0000`}t.default={renderV1(e){let t={type:e.type,value:null};switch(e.type){case"Number":{let n=(0,r.filterDouble)(e.value);return{...t,value:n}}case"Date":try{let a=o.exec(e.value);if(a){let c=new Date(u(a));return{...t,value:(0,r.formatDate)(c)}}return t}catch(f){return console.warn(`Unable to render Date value with ${e.value}: ${f.toString()}`),t}case"Timestamp":try{if(i.test(e.value)){let l=new Date(e.value);return{...t,value:(0,r.formatDateTime)(l)}}return t}catch(p){return console.warn(`Unable to render Timestamp value with ${e.value}: ${p.toString()}`),t}default:return{...t,value:e.value}}},renderV2(e,t){switch(t.type){case"Number":return(0,r.filterDouble)(t.value);case"Date":try{let n=o.exec(t.value);if(n){let a=new Date(u(n));return(0,r.formatDate)(a)}return null}catch(c){return console.warn(`Unable to render Date value with ${t.value}: ${c.toString()}`),null}case"Timestamp":try{if(i.test(t.value)){let f=new Date(t.value);return(0,r.formatDateTime)(f)}return null}catch(l){return console.warn(`Unable to render Timestamp value with ${t.value}: ${l.toString()}`),null}default:return t.value}},renderDefault:e=>null,renderMocks(e,t){return this.renderV2(e,t)}}},42715:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({type:"GeoPoint",value:{latitude:e.position.lat,longitude:e.position.lng}}),renderV2:(e,t)=>({latitude:t.position.lat,longitude:t.position.lng}),renderDefault:e=>({}),renderMocks(e,t){return this.renderV2(e,t)}}},6637:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(73985),i=n(79687);function o(e,t,n){let r="v2"===n?{id:e.origin.id,edit:{x:e.edit.crop.x,y:e.edit.crop.y,zoom:e.edit.zoom,background:e.edit.background}}:{};return{dimensions:{width:e.width,height:e.height},alt:(0,i.writeEmptyStringOrNull)(e.alt,t.emptyStringInsteadOfNull),copyright:(0,i.writeEmptyStringOrNull)(e.credits,t.emptyStringInsteadOfNull),url:t.urlRewriter.rewriteImageUrl(e),...r}}let u=e=>({renderV1(t){if(t.thumbnails){let n=Object.entries(t.thumbnails).reduce((t,[n,i])=>({...t,[n.toLowerCase()]:o(i,e,r.ApiVersion.v1)}),{});return{type:"Image",value:{main:o(t,e,r.ApiVersion.v1),views:n}}}return{type:"Image",value:{main:o(t,e,r.ApiVersion.v1),views:[]}}},renderV2(t,n){let i=o(n,e,r.ApiVersion.v2);if(n.thumbnails&&n.thumbnails){let u=Object.entries(n.thumbnails).reduce((t,[n,i])=>Object.assign(t,{[n]:o(i,e,r.ApiVersion.v2)}),{});return Object.assign(i,u)}return i},renderDefault(e){var t;return((null===(t=e.config)||void 0===t?void 0:t.thumbnails)||[]).reduce((e,{name:t})=>({...e,[t]:{}}),{})},renderMocks(e,t){return this.renderV2(e,t)}});t.default=u},6413:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let n=e=>({renderV1(t){try{return{type:"IntegrationFields",value:e.Extension.encoders.integrationFields.encode(t.value)}}catch(n){return{value:{}}}},renderV2(t,n){try{return e.Extension.encoders.integrationFields.encode(n.value)}catch(r){return{}}},renderDefault:e=>null,renderMocks(e){return this.renderDefault(e)}});t.default=n},50335:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BROKEN_CUSTOM_TYPE=void 0;let r=n(73985);function i(e){return{id:e,type:t.BROKEN_CUSTOM_TYPE,tags:[],isBroken:!0}}t.BROKEN_CUSTOM_TYPE="broken_type";let o=e=>({renderV1(t,n){try{let r=e.Extension.DocEncoder.encodeDocId(t.id,null==n?void 0:n.uuid);return{type:"Link.document",value:e.Extension.encoders.documentLinks.encode(r)}}catch(u){var o;return{value:i(o=t.id)}}},renderV2(t,n,r){try{let o=e.Extension.DocEncoder.encodeDocId(n.id,null==r?void 0:r.uuid);return e.Extension.encoders.documentLinks.encode(o)}catch(u){return i(n.id)}},renderMocks(e,t){let n=r.DocumentLinkDef.is(e)&&e.customtypes[0]||"mock";return{id:t.id,link_type:"Document",type:n,tags:[],lang:"en-us",slug:null,first_publication_date:"1970-01-01T00:00:01+0000",last_publication_date:"1970-01-01T01:00:00+0000"}}});t.default=o},15802:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1(e){let t="string"==typeof e.target?{target:e.target}:{};return{type:"Link.web",value:{url:e.url,...t}}},renderV2(e,t){let n={link_type:"Web",url:t.url};return Object.assign(n,"string"==typeof t.target?{target:t.target}:{})},renderMocks(e,t){return this.renderV2(e,t)}}},50632:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let n=e=>({renderV1:t=>({type:"Link.file",value:{file:{name:t.name,kind:t.kind,url:e.urlRewriter.rewriteFileUrl(t.url),size:t.size}}}),renderV2:(t,n)=>({link_type:"Media",id:n.id,name:n.name,kind:n.kind,url:e.urlRewriter.rewriteFileUrl(n.url),size:n.size}),renderMocks:(e,t)=>({link_type:"Media",name:"mock",kind:"image",url:"https://source.unsplash.com/random",size:"10kB"})});t.default=n},83434:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let n=e=>({renderV1:t=>({type:"Link.image",value:{image:{name:t.name,kind:t.kind,url:e.urlRewriter.optimizeImageUrl(t.url),size:t.size,height:t.height,width:t.width}}}),renderV2:(t,n)=>({id:n.id,link_type:"Media",name:n.name,kind:n.kind,url:e.urlRewriter.optimizeImageUrl(n.url),size:n.size,height:n.height,width:n.width}),renderMocks:(e,t)=>({link_type:"Media",name:"mock",kind:"image",url:"https://source.unsplash.com/random",size:"10kB",height:"1920px",width:"1080px"})});t.default=n},57777:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageLinkRenderer=t.FileLinkRenderer=t.ExternalLinkRenderer=t.DocumentLinkRenderer=void 0;let r=n(87783),i=n(73985),o=r.__importDefault(n(50335));t.DocumentLinkRenderer=o.default;let u=r.__importDefault(n(15802));t.ExternalLinkRenderer=u.default;let a=r.__importDefault(n(50632));t.FileLinkRenderer=a.default;let c=r.__importDefault(n(83434));t.ImageLinkRenderer=c.default;let f=e=>({renderV1(t,n){if("ImageLink"===t.value.__TYPE__)return(0,c.default)(e).renderV1(t.value);if("DocumentLink"===t.value.__TYPE__)return(0,o.default)(e).renderV1(t.value,n);if("FileLink"===t.value.__TYPE__)return(0,a.default)(e).renderV1(t.value);if("ExternalLink"===t.value.__TYPE__)return u.default.renderV1(t.value);throw Error(`No rendered found for link ${JSON.stringify(t)}`)},renderV2(t,n,r){return"ImageLink"===n.value.__TYPE__&&((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))?(0,c.default)(e).renderV2(t.config,n.value):((0,i.isDocumentLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"DocumentLink"===n.value.__TYPE__?(0,o.default)(e).renderV2(t.config,n.value,r):((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"FileLink"===n.value.__TYPE__?(0,a.default)(e).renderV2(t.config,n.value):((0,i.isWebLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"ExternalLink"===n.value.__TYPE__?u.default.renderV2(t.config,n.value):this.renderDefault(t)},renderDefault(e){var t;switch(null===(t=e.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,n){return"ImageLink"===n.value.__TYPE__&&((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))?(0,c.default)(e).renderMocks(t.config,n.value):((0,i.isDocumentLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"DocumentLink"===n.value.__TYPE__?(0,o.default)(e).renderMocks(t.config,n.value):((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"FileLink"===n.value.__TYPE__?(0,a.default)(e).renderMocks(t.config,n.value):((0,i.isWebLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"ExternalLink"===n.value.__TYPE__?u.default.renderMocks(t.config,n.value):this.renderDefault(t)}});t.default=f},97562:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({type:"Separator"}),renderV2:(e,t)=>!0,renderDefault:e=>!0,renderMocks(e,t){return this.renderV2(e,t)}}},83775:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(16211),o=r.__importStar(n(87412)),u=n(73985),a=n(73985),c=n(79687),f=r.__importDefault(n(57777));function l(e){if((0,i.isLinkContent)(e))switch(e.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(e)}`)}function p(e,t,n){return t===u.ApiVersion.v1?(0,f.default)(n).renderV1(e,void 0):t===u.ApiVersion.v2?(0,f.default)(n).renderV2((0,a.defaultLink)(l(e)),e,void 0):t===u.ApiVersion.mocks?(0,f.default)(n).renderMocks((0,a.defaultLink)(l(e)),e):void 0}let d=e=>({renderBlock:t=>n=>{if((0,i.checkImageBlock)(t)){let r=(()=>{if(t.data.linkTo){let r={__TYPE__:"LinkContent",value:t.data.linkTo};return{linkTo:p(r,n,e)}}return{}})(),a=t.label?{label:t.label}:{},f=t.direction?{direction:t.direction}:{},l=n===u.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:e.urlRewriter.rewriteImageUrl(t.data),alt:(0,c.writeEmptyStringOrNull)(t.data.alt,e.emptyStringInsteadOfNull),copyright:(0,c.writeEmptyStringOrNull)(t.data.credits,e.emptyStringInsteadOfNull),dimensions:{width:t.data.width,height:t.data.height},...l,...r,...a,...f}}if((0,i.checkEmbedBlock)(t)){let d=t.label?{label:t.label}:{},s=t.direction?{direction:t.direction}:{};return{type:"embed",oembed:t.data.all,...d,...s}}{let m=t.label?{label:t.label}:{},h=t.direction?{direction:t.direction}:{},v=(t.content.spans||[]).map(t=>{let r={start:t.start,end:t.end,type:t.type};if("hyperlink"===t.type){let u=i.Link.decode(t.data),a=(()=>{if(o.isRight(u)){let t={__TYPE__:"LinkContent",value:u.right};return p(t,n,e)}return{}})();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,...m,spans:v,...h}}}});t.default=d},558:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(14632),o=r.__importStar(n(72720)),u=n(73985),a=r.__importDefault(n(83775));function c(e,t){let n=(0,i.pipe)(o.fromNullable(e.value.find(e=>e.type.startsWith("heading"))),o.alt(()=>o.fromNullable(e.value.find(e=>"embed"!==e.type&&"image"!==e.type))),o.map(e=>[e]),o.getOrElse(()=>[]));return t({__TYPE__:"StructuredTextContent",value:n})}let f=e=>({renderV1(t,n){let r=t.value.map(t=>(0,a.default)(e).renderBlock(t)(u.ApiVersion.v1));return void 0!==n&&n.legacy?c(t,t=>t.value.map(t=>(0,a.default)(e).renderBlock(t)(u.ApiVersion.v1))):{type:"StructuredText",value:r}},renderV2(t,n,r){return void 0!=r&&r.legacy?c(n,e=>this.renderV2(t,e,void 0)):n.value.map(t=>(0,a.default)(e).renderBlock(t)(u.ApiVersion.v2))},renderDefault:e=>[],renderMocks:(t,n)=>n.value.map(t=>(0,a.default)(e).renderBlock(t)(u.ApiVersion.mocks))});t.default=f},26041:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};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=n(7796);Object.defineProperty(t,"BooleanRenderer",{enumerable:!0,get:function(){return r(i).default}});var o=n(89591);Object.defineProperty(t,"EmbedRenderer",{enumerable:!0,get:function(){return r(o).default}});var u=n(49357);Object.defineProperty(t,"FieldRenderer",{enumerable:!0,get:function(){return r(u).default}});var a=n(42715);Object.defineProperty(t,"GeoPointRenderer",{enumerable:!0,get:function(){return r(a).default}});var c=n(6637);Object.defineProperty(t,"ImageRenderer",{enumerable:!0,get:function(){return r(c).default}});var f=n(6413);Object.defineProperty(t,"IntegrationFieldsRenderer",{enumerable:!0,get:function(){return r(f).default}});var l=n(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=n(97562);Object.defineProperty(t,"SeparatorRenderer",{enumerable:!0,get:function(){return r(p).default}});var d=n(558);Object.defineProperty(t,"StructuredTextRenderer",{enumerable:!0,get:function(){return r(d).default}})},24485:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(71659),o=n(79687),u=r.__importDefault(n(12706)),a=e=>({renderV1(t,n){var r,i;let a=null===(r=null==n?void 0:n.repeat)||void 0===r?void 0:r.fields,c=null===(i=null==n?void 0:n.nonRepeat)||void 0===i?void 0:i.fields,f=t.repeat.flatMap(t=>{let n=(0,u.default)(e).renderV1Object(t.value,a);return(0,o.isEmpty)(n)?[]:[n]}),l=(0,u.default)(e).renderV1Object(t.nonRepeat,c);return{"non-repeat":l,repeat:f}},renderV2(t,n,r){var o;let a=void 0===r?void 0:{TYPE:i.GroupType,name:t.type,fields:r.repeat.fields},c=null===(o=null==r?void 0:r.nonRepeat)||void 0===o?void 0:o.fields,f=n.repeat.map(n=>(0,u.default)(e).renderV2Object(n.value,null==a?void 0:a.fields,t.repeat||{},{withFetch:"default"},{default:"render",withFetch:"filter",withFetchField:"render"})),l=(0,u.default)(e).renderV2Object(n.nonRepeat,c,t["non-repeat"]||{},{withFetch:"default"},{default:"render",withFetch:"filter",withFetchField:"render"});return{primary:l,items:f}},renderDefault:e=>({}),renderMocks(t,n){let r=n.repeat.map(n=>(0,u.default)(e).renderMocksObject(n.value,t.repeat||{})),i=(0,u.default)(e).renderMocksObject(n.nonRepeat,t["non-repeat"]||{});return{primary:i,items:r}}});t.default=a},68422:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=r.__importDefault(n(12706));function o(e,t,n){var r,i,o;return null===(o=null===(i=null===(r=null==n?void 0:n.variations)||void 0===r?void 0:r[e])||void 0===i?void 0:i[t])||void 0===o?void 0:o.fields}let u=e=>({renderV1(t,n){let r=t.items.map(r=>(0,i.default)(e).renderV1Object(r.value,o(t.variation,"repeat",n))),u=(0,i.default)(e).renderV1Object(t.primary,o(t.variation,"nonRepeat",n));return{variation:t.variation,items:r,primary:u}},renderV2(t,n,r){let u=t.variations.find(e=>e.id===n.variation);if(void 0===u)return this.renderDefault(t);let a=n.items.map(t=>(0,i.default)(e).renderV2Object(t.value,o(n.variation,"repeat",r),u.items||{},{withFetch:"filter"},{default:"default",withFetch:"filter",withFetchField:"render"})),c=(0,i.default)(e).renderV2Object(n.primary,o(n.variation,"nonRepeat",r),u.primary||{},{withFetch:"filter"},{default:"default",withFetch:"filter",withFetchField:"render"});return{variation:n.variation,version:u.version,items:a,primary:c}},renderDefault:e=>({}),renderMocks(t,n){let r=t.variations.find(e=>e.id===n.variation);if(void 0===r)return this.renderDefault(t);let o=n.items.map(t=>(0,i.default)(e).renderMocksObject(t.value,r.items||{})),u=(0,i.default)(e).renderMocksObject(n.primary,r.primary||{});return{variation:n.variation,version:r.version,items:o,primary:u}}});t.default=u},57962:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(16211),o=r.__importStar(n(72720)),u=r.__importDefault(n(12706)),a=e=>({renderV1:(t,n)=>t.__TYPE__===i.EmptyContentType?o.none:o.some({value:(0,u.default)(e).renderV1(t,n)}),renderV2:(t,n,r)=>n.__TYPE__===i.EmptyContentType?o.none:o.some({value:(0,u.default)(e).renderV2(t,n,r)}),renderDefault:e=>({}),renderMocks:(t,n)=>n.__TYPE__===i.EmptyContentType?o.none:o.some({value:(0,u.default)(e).renderMocks(t,n)})});t.default=a},6324:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(16211),o=n(96742),u=r.__importStar(n(72720)),a=n(71659),c=r.__importDefault(n(24485)),f=r.__importDefault(n(68422)),l=r.__importDefault(n(57962)),p={extractCompositeSlice(e){if(void 0!==e&&e.TYPE===a.CompositeSliceType)return e},extractSharedSlice(e){if(void 0!==e&&e.TYPE===a.SharedSliceType)return e},extractGroupOrField(e){if(void 0!==e&&e.TYPE!==a.CompositeSliceType&&e.TYPE!==a.SharedSliceType)return e}},d=e=>({renderV1:(t,n)=>(0,i.isCompositeSliceContent)(t)?u.some((0,c.default)(e).renderV1(t,p.extractCompositeSlice(n))):(0,i.isSharedSliceContent)(t)?u.some((0,f.default)(e).renderV1(t,p.extractSharedSlice(n))):(0,l.default)(e).renderV1(t,p.extractGroupOrField(n)),renderV2(t,n,r){return(0,i.isCompositeSliceContent)(n)&&o.CompositeSlice.is(t)?u.some((0,c.default)(e).renderV2(t,n,p.extractCompositeSlice(r))):(0,i.isSharedSliceContent)(n)&&o.SharedSlice.is(t)?u.some((0,f.default)(e).renderV2(t,n,p.extractSharedSlice(r))):(0,i.isSimpleSliceContent)(n)&&o.LegacySlice.is(t)?(0,l.default)(e).renderV2(t,n,p.extractGroupOrField(r)):u.some(this.renderDefault(t))},renderDefault:e=>({}),renderMocks(t,n){return(0,i.isCompositeSliceContent)(n)&&o.CompositeSlice.is(t)?u.some((0,c.default)(e).renderMocks(t,n)):(0,i.isSharedSliceContent)(n)&&o.SharedSlice.is(t)?u.some((0,f.default)(e).renderMocks(t,n)):(0,i.isSimpleSliceContent)(n)&&o.LegacySlice.is(t)?(0,l.default)(e).renderMocks(t,n):u.some(this.renderDefault(t))}});t.default=d},3758:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(16211),o=n(42275),u=n(92425),a=r.__importStar(n(20492)),c=n(81681),f=n(79687),l=r.__importDefault(n(6324));function p(e,t){let n=RegExp(`^(${t})\\$\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12}$`);return e.match(n)?e:`${t}$${(0,c.v4)()}`}let d=e=>({renderV1:(t,n)=>({type:"SliceZone",value:(function(e,t,n){let r=null==t?void 0:t.slices;return(0,u.compact)(e.value.map(e=>(0,o.pipe)((0,f.renderIfNoFetchOrFetchDefined)(r,e.key,t=>(0,l.default)(n).renderV1(e.widget,t)),a.map(t=>[e,t]))))})(t,n,e).map(([e,t])=>{var n;return{...t,id:p(e.key,e.name),slice_type:e.name,slice_label:null!==(n=e.maybeLabel)&&void 0!==n?n:null,type:"Slice"}})}),renderV2(t,n,r){var c;let d=Object.fromEntries(Object.entries((null===(c=t.config)||void 0===c?void 0:c.choices)||{}).map(([e,t])=>[e,t])),s=null==r?void 0:r.slices;return(0,u.compact)(n.value.map(t=>(0,f.renderIfNoFetchOrFetchDefined)(s,t.name,n=>(function(e,t,n,r){if("__TYPE__"in e.widget&&e.widget.__TYPE__===i.EmptyContentType||!(e.name in r))return a.none;{let u=r[e.name];return u?(0,o.pipe)((0,l.default)(n).renderV2(u,e.widget,t),a.map(t=>{var n;return{...t,id:p(e.key,e.name),slice_type:e.name,slice_label:null!==(n=e.maybeLabel)&&void 0!==n?n:null}})):a.none}})(t,n,e,d))))},renderDefault:e=>[],renderMocks(e,t){return this.renderV2(e,t)}});t.default=d},94814:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SliceWidgetRenderer=t.SlicesRenderer=t.SimpleSliceRenderer=t.SharedSliceRenderer=t.CompositeSliceRenderer=void 0;var i=n(24485);Object.defineProperty(t,"CompositeSliceRenderer",{enumerable:!0,get:function(){return r(i).default}});var o=n(68422);Object.defineProperty(t,"SharedSliceRenderer",{enumerable:!0,get:function(){return r(o).default}});var u=n(57962);Object.defineProperty(t,"SimpleSliceRenderer",{enumerable:!0,get:function(){return r(u).default}});var a=n(3758);Object.defineProperty(t,"SlicesRenderer",{enumerable:!0,get:function(){return r(a).default}});var c=n(6324);Object.defineProperty(t,"SliceWidgetRenderer",{enumerable:!0,get:function(){return r(c).default}})},53953:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ContentPath=void 0,t.ContentPath={serialize:e=>e.map(e=>e.key).join("::"),current:e=>e[e.length-1],append:(e,t)=>e+"::"+t,make:e=>e.reduce((e,{key:t,type:n})=>t?e.concat({key:t,type:n}):e,[])}},59146:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getAssetOrThrow=void 0;let n=e=>t=>{let n=e[t];if(!n)throw Error(`Missing asset with id '${t}'!`);return n};t.getAssetOrThrow=n},23234:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getEmbedOrThrow=void 0;let n=e=>t=>{let n=e[t];if(!n)throw Error(`Missing embed with url '${t}'`);return n};t.getEmbedOrThrow=n},62754:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.HexaColor=void 0;let n=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;t.HexaColor={is:e=>n.test(e)}},18573:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetKey=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(47320),u=RegExp("^[^<>]+$");t.WidgetKey=(0,o.refineType)(i.string,"WidgetKey",e=>0===e.length||u.test(e))},11697:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(59146),t),(0,r.__exportStar)(n(23234),t),(0,r.__exportStar)(n(18573),t)},48925:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateDocument=t.collectWidgets=t.traverseDocument=t.fillDocumentWithDefaultValues=t.DocumentLegacy=t.Document=void 0;let r=n(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(53953),f=n(11697),l=n(96742),p=n(1645),d=n(35264);t.Document=a.record(f.WidgetKey,p.WidgetContent);let s=a.record(f.WidgetKey,a.unknown),m=e=>new a.Type("Document",e=>!!e&&"object"==typeof e,t=>(0,u.pipe)(s.decode(t),i.either.map(t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,d.defaultCtx)(n,e),u=(0,p.WidgetLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:{...t,[n]:u.right}},{}))),t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,d.defaultCtx)(n,e),o=(0,p.WidgetLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}}));function h(e){let t=Object.entries(e),{types:n,widgets:r}=t.reduce((e,[t,n])=>{if(t.endsWith("_TYPE")){let r=d.FieldOrSliceType.decode(n);if((0,o.isRight)(r))return{...e,types:e.types.set(t.substring(0,t.length-5),r.right)}}return t.endsWith("_POSITION")||t.endsWith("_TYPE")?e:{...e,widgets:{...e.widgets,[t]:n}}},{types:new Map,widgets:{}}),i=e.slugs_INTERNAL||[],u=e.uid;return{widgets:r,types:n,uid:u,slugs:i}}function v(e){return{customTypeId:null==e?void 0:e.id,fields:Object.fromEntries((0,l.flattenSections)(e))}}function y({document:e,customType:t}){let n=t&&l.StaticCustomType.is(t)?v(t):t;return({transformWidget:t=({content:e})=>e,transformSlice:r=({content:e})=>e})=>{let i=n&&Object.entries(n.fields).reduce((e,[t,n])=>({...e,[t]:n}),{});return Object.entries(e).reduce((e,[o,u])=>{let a=i&&i[o],f=c.ContentPath.make([{key:null==n?void 0:n.customTypeId,type:"CustomType"},{key:o,type:"Widget"},]),l=(()=>{switch(u.__TYPE__){case"SliceContentType":return(0,p.traverseSlices)({path:f,key:o,model:(null==a?void 0:a.type)==="Slices"||(null==a?void 0:a.type)==="Choice"?a:void 0,content:u})({transformWidget:t,transformSlice:r});case"GroupContentType":return(0,p.traverseGroupContent)({path:f,key:o,apiId:o,model:(null==a?void 0:a.type)==="Group"?a:void 0,content:u})(t);default:return t({path:f,key:o,apiId:o,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:u})}})();return{...e,...l?{[o]:l}:{}}},{})}}function g(e,t){let n=l.StaticCustomType.is(t)?v(t):t,r=Object.values((0,l.collectSharedSlices)(n)).some(e=>Boolean(e.legacyPaths));return r?y({document:e,customType:t})({transformSlice:p.migrateSliceItem}):e}t.DocumentLegacy={_codec:m,extractMetadata:h,parse:function(e,t){let n=(0,u.pipe)(a.record(f.WidgetKey,a.unknown).decode(e),i.either.chain(e=>{let{types:t,widgets:n}=h(e);return m(t).decode(n)}));return(0,o.isLeft)(n)?void 0:g(n.right,t)},encode:function(e){let t=m().encode(e);return{...t.content,...t.types}}},t.fillDocumentWithDefaultValues=function(e,t){let{fields:n}=e&&l.StaticCustomType.is(e)?v(e):e;return Object.entries(n).reduce((e,[n,r])=>{let i=t[n],o=(()=>{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 o?{...e,[n]:o}:e},t)},t.traverseDocument=y,t.collectWidgets=function(e,t){let n={};return y({document:e})({transformWidget({content:e,path:r}){let i=c.ContentPath.serialize(r);return t(e,r)&&(n[i]=e),e}}),n},t.migrateDocument=g},35264:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCtx=t.getFieldCtx=t.LegacyContentCtx=t.FieldOrSliceType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(54249);t.FieldOrSliceType=i.union([o.FieldType,o.SlicesTypes]);class u{constructor(e,t,n){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=e,this.fieldPath=t||[],this.allTypes=n||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(e,t,n){return new u(e,[...t.fieldPath,t.fieldKey,...n||[]],t.allTypes)},t.defaultCtx=function(e,t=new Map){return new u(e,[],t)}},34039:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyContent=t.EmptyLegacy=t.isEmptyContent=t.EmptyContentType=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(72186);t.EmptyContentType="EmptyContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.EmptyContentType;t.isEmptyContent=c;let f=u.union([u.null,u.type({value:u.null}),]),l=e=>new u.Type("EmptyLegacy",t.isEmptyContent,n=>(0,o.pipe)(f.decode(n),i.either.map(()=>({type:e,__TYPE__:t.EmptyContentType}))),()=>null);t.EmptyLegacy=l,t.EmptyContent=u.strict({type:u.string,__TYPE__:u.literal(t.EmptyContentType)})},31952:function(e,t,n){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=n(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(96742),f=n(35264),l=n(72186),p=n(12750),d=n(77184);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),m=e=>new a.Type("GroupItemLegacy",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.GroupItemContentType,n=>{let r=(0,u.pipe)(s.decode(n),i.either.map(n=>{let r=Object.entries(n).reduce((n,[r,i])=>{let u=(0,f.getFieldCtx)(r,e),a=u.fieldType===c.GroupFieldType?(0,t.GroupLegacy)(u).decode(i):(0,p.NestableLegacy)(u).decode(i);return!a||(0,o.isLeft)(a)?n:[...n,[r,a.right]]},[]);return{value:r,__TYPE__:t.GroupItemContentType}}));return r},n=>n.value.reduce((n,[r,i])=>{let o=(0,f.getFieldCtx)(r,e),u=(0,t.isGroupContent)(i)?(0,t.GroupLegacy)(o).encode(i):(0,p.NestableLegacy)(o).encode(i);return u?{content:{...n.content,[r]:u.content},types:{...n.types,...u.types}}:n},{content:{},types:{}}));t.GroupItemLegacy=m;let h=e=>{let n=a.array(a.union([a.null,(0,t.GroupItemLegacy)(e)])),r=a.array((0,t.GroupItemLegacy)(e));return new a.Type("GroupLegacy",t.isGroupContent,e=>(0,u.pipe)(n.decode(e),i.either.map(e=>({value:e.map(e=>null===e?{__TYPE__:t.GroupItemContentType,value:[]}:e),__TYPE__:t.GroupContentType}))),t=>{let n=r.encode(t.value);return{content:n.map(e=>e.content),types:n.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:c.GroupFieldType})}})};function v({path:e,key:t,apiId:n,model:r,content:i}){return o=>{var u;let a=y({path:e,model:null===(u=null==r?void 0:r.config)||void 0===u?void 0:u.fields,content:i.value})(o);return o({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,value:a}})}}function y({path:e,model:n,content:r}){return i=>r.map((r,o)=>{let u=e.concat([{key:o.toString(),type:"GroupItem"},]),a=r.value.reduce((e,[r,o])=>{let a=null==n?void 0:n[r],f;return(f=a&&(null==a?void 0:a.type)!==c.GroupFieldType||o.__TYPE__!==t.GroupContentType?i({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:a,content:o}):v({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:a,content:o})(i))&&((0,p.isNestableContent)(f)||(0,t.isGroupContent)(f))?e.concat([[r,f]]):e},[]);return{__TYPE__:r.__TYPE__,value:a}})}t.GroupLegacy=h,t.groupContentWithDefaultValues=function(e,t){var n;let r=null===(n=e.config)||void 0===n?void 0:n.fields;return r?{...t,value:(0,d.repeatableContentWithDefaultNestableContentValues)(r,t.value)}:t},t.traverseGroupContent=v,t.traverseGroupItemsContent=y},17320:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDContent=t.UIDLegacy=t.isUIDContent=t.UIDContentType=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(72186);t.UIDContentType="UIDContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.UIDContentType;t.isUIDContent=c;let f=e=>new u.Type("UIDLegacy",t.isUIDContent,e=>(0,o.pipe)(u.string.decode(e),i.either.map(e=>t.UIDContent.encode({value:e,__TYPE__:t.UIDContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"UID"}}));t.UIDLegacy=f,t.UIDContent=u.type({__TYPE__:u.literal(t.UIDContentType),value:u.string})},40098:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetLegacy=t.isWidgetContent=t.WidgetContent=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(31952),u=n(12750),a=n(91167),c=n(17320);t.WidgetContent=i.union([o.GroupContent,u.NestableContent,c.UIDContent,a.SlicesContent,]);let f=e=>(0,o.isGroupContent)(e)||(0,u.isNestableContent)(e)||(0,c.isUIDContent)(e)||(0,a.isSlicesContent)(e);t.isWidgetContent=f;let l=e=>({decode(t){if(!e.fieldType)return;let n=(()=>{switch(e.fieldType){case"UID":return(0,c.UIDLegacy)(e);case"Group":return(0,o.GroupLegacy)(e);case"Choice":case"Slices":return(0,a.SlicesLegacy)(e);default:return(0,u.NestableLegacy)(e)}})();if(n)return n.decode(t)},encode(t){switch(t.__TYPE__){case c.UIDContentType:return(0,c.UIDLegacy)(e).encode(t);case o.GroupContentType:return(0,o.GroupLegacy)(e).encode(t);case a.SlicesContentType:return(0,a.SlicesLegacy)(e).encode(t);default:return(0,u.NestableLegacy)(e).encode(t)}}});t.WidgetLegacy=l},1645:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(34039),t),(0,r.__exportStar)(n(31952),t),(0,r.__exportStar)(n(12750),t),(0,r.__exportStar)(n(91167),t),(0,r.__exportStar)(n(17320),t),(0,r.__exportStar)(n(40098),t)},3136:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanContentDefaultValue=t.BooleanContent=t.BooleanLegacy=t.isBooleanContent=t.BooleanContentType=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(72186);t.BooleanContentType="BooleanContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.BooleanContentType;t.isBooleanContent=c;let f=e=>new u.Type("BooleanLegacy",t.isBooleanContent,e=>(0,o.pipe)(u.boolean.decode(e),i.either.map(e=>t.BooleanContent.encode({value:e,__TYPE__:t.BooleanContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"Boolean"}}));t.BooleanLegacy=f,t.BooleanContent=u.strict({__TYPE__:u.literal(t.BooleanContentType),value:u.boolean});let l=e=>{var n;return(null===(n=e.config)||void 0===n?void 0:n.default_value)!==void 0?{__TYPE__:t.BooleanContentType,value:e.config.default_value||!1}:void 0};t.BooleanContentDefaultValue=l},11893:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedContent=t.EmbedLegacy=t.EmbedContentLegacy=t.isEmbedContent=t.EmbedContentType=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(37581),c=n(72186);t.EmbedContentType="EmbedContent";let f=e=>(0,c.hasContentType)(e)&&e.__TYPE__===t.EmbedContentType;t.isEmbedContent=f,t.EmbedContentLegacy=u.exact(u.intersection([u.type({embed_url:u.string,type:u.string}),u.partial({version:u.union([u.string,u.number,u.null]),title:a.StringOrNull,author_name:a.StringOrNull,author_url:a.StringOrNull,provider_name:a.StringOrNull,provider_url:a.StringOrNull,cache_age:u.union([u.string,u.number,u.null]),thumbnail_url:a.StringOrNull,thumbnail_width:a.NumberOrNull,thumbnail_height:a.NumberOrNull,html:a.StringOrNull}),]));let l=e=>new u.Type("EmbedLegacy",t.isEmbedContent,e=>(0,o.pipe)(t.EmbedContentLegacy.decode(e),i.either.map(n=>({...n,all:e,__TYPE__:t.EmbedContentType}))),t=>({content:t.all,types:{[e.keyOfType]:"Embed"}}));t.EmbedLegacy=l,t.EmbedContent=u.intersection([t.EmbedContentLegacy,u.strict({__TYPE__:u.literal(t.EmbedContentType),all:u.unknown}),])},26377:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContent=t.ColorLegacy=t.isColorContent=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Color"===e.type;t.isColorContent=p;let d=e=>new u.Type("ColorLegacy",t.isColorContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.ColorContent.encode({value:e,type:a.ColorFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.ColorFieldType}}));t.ColorLegacy=d,t.ColorContent=u.strict({type:u.literal(a.ColorFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},30626:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DateContent=t.DateLegacy=t.isDateContent=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Date"===e.type;t.isDateContent=p;let d=e=>new u.Type("DateLegacy",t.isDateContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.DateContent.encode({value:e,type:a.DateFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.DateFieldType}}));t.DateLegacy=d,t.DateContent=u.strict({type:u.literal(a.DateFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},82341:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberContent=t.NumberLegacy=t.isNumberContent=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Number"===e.type;t.isNumberContent=p;let d=e=>new u.Type("NumberLegacy",t.isNumberContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.NumberContent.encode({value:e,type:a.NumberFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.NumberFieldType}}));t.NumberLegacy=d,t.NumberContent=u.strict({type:u.literal(a.NumberFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},15908:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeContent=t.RangeLegacy=t.isRangeContent=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Range"===e.type;t.isRangeContent=p;let d=e=>new u.Type("RangeLegacy",t.isRangeContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.RangeContent.encode({value:e,type:a.RangeFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.RangeFieldType}}));t.RangeLegacy=d,t.RangeContent=u.strict({type:u.literal(a.RangeFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},27876:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectContentDefaultValue=t.SelectContent=t.SelectLegacy=t.isSelectContent=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Select"===e.type;t.isSelectContent=p;let d=e=>new u.Type("SelectLegacy",t.isSelectContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.SelectContent.encode({value:e,type:a.SelectFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.SelectFieldType}}));t.SelectLegacy=d,t.SelectContent=u.strict({type:u.literal(a.SelectFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)});let s=e=>{var t;return(null===(t=e.config)||void 0===t?void 0:t.default_value)?{__TYPE__:l.FieldContentType,type:a.SelectFieldType,value:e.config.default_value||""}:void 0};t.SelectContentDefaultValue=s},74474:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextContent=t.TextLegacy=t.isTextContent=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Text"===e.type;t.isTextContent=p;let d=e=>new u.Type("TextLegacy",t.isTextContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.TextContent.encode({value:e,type:a.TextFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.TextFieldType}}));t.TextLegacy=d,t.TextContent=u.strict({type:u.literal(a.TextFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},57780:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampContent=t.TimestampLegacy=t.isTimestampContent=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Timestamp"===e.type;t.isTimestampContent=p;let d=e=>new u.Type("TimestampLegacy",t.isTimestampContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.TimestampContent.encode({value:e,type:a.TimestampFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.TimestampFieldType}}));t.TimestampLegacy=d,t.TimestampContent=u.strict({type:u.literal(a.TimestampFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},33111:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContentType=void 0,t.FieldContentType="FieldContent"},48930:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContent=t.FieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(26377),u=n(30626),a=n(82341),c=n(15908),f=n(27876),l=n(74474),p=n(57780);t.FieldType=i.keyof({Text:null,Date:null,Timestamp:null,Color:null,Number:null,Range:null,Select:null}),t.FieldContent=i.union([u.DateContent,o.ColorContent,a.NumberContent,c.RangeContent,f.SelectContent,l.TextContent,p.TimestampContent,]),(0,r.__exportStar)(n(26377),t),(0,r.__exportStar)(n(33111),t),(0,r.__exportStar)(n(30626),t),(0,r.__exportStar)(n(82341),t),(0,r.__exportStar)(n(15908),t),(0,r.__exportStar)(n(27876),t),(0,r.__exportStar)(n(74474),t),(0,r.__exportStar)(n(57780),t)},33065:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointContent=t.GeoPointLegacy=t.isGeoPointContent=t.GeoPointContentType=void 0;let r=n(87783),i=n(9554),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(72186);t.GeoPointContentType="GeoPointContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.GeoPointContentType;t.isGeoPointContent=c;let f=u.strict({position:u.strict({lat:u.number,lng:u.number})}),l=e=>new u.Type("GeoPointLegacy",t.isGeoPointContent,e=>(0,o.pipe)(f.decode(e),i.either.map(e=>t.GeoPointContent.encode({...e,__TYPE__:t.GeoPointContentType}))),t=>({content:{position:t.position},types:{[e.keyOfType]:"GeoPoint"}}));t.GeoPointLegacy=l,t.GeoPointContent=u.intersection([f,u.strict({__TYPE__:u.literal(t.GeoPointContentType)}),])},73089:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageContent=t.ImageLegacy=t.ImageContentView=t.isImageContent=t.ImageContentType=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(77454),c=n(37581),f=n(72186);t.ImageContentType="ImageContent";let l=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.ImageContentType;t.isImageContent=l;let p=u.exact(u.type({id:u.string,url:u.string,width:u.number,height:u.number}));t.ImageContentView=u.exact(u.intersection([u.type({origin:p,width:u.number,height:u.number,edit:u.type({zoom:u.number,crop:u.type({x:u.number,y:u.number}),background:u.string})}),u.partial({url:u.string,credits:c.NonEmptyStringOrNull,alt:c.NonEmptyStringOrNull,provider:c.StringOrNull}),]));let d=u.intersection([t.ImageContentView,u.partial({thumbnails:u.record(u.string,t.ImageContentView)}),]),s=e=>new u.Type("ImageLegacy",t.isImageContent,e=>(0,o.pipe)(d.decode(e),i.either.map(e=>t.ImageContent.encode({...e,__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:{[e.keyOfType]:"Image"}}));t.ImageLegacy=s,t.ImageContent=u.intersection([d,u.strict({__TYPE__:u.literal(t.ImageContentType)}),])},32732:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldContent=t.IntegrationFieldLegacy=t.isIntegrationFieldContent=t.IntegrationFieldContentType=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(72186);t.IntegrationFieldContentType="IntegrationFieldsContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.IntegrationFieldContentType;t.isIntegrationFieldContent=c;let f=e=>new u.Type("IntegrationFieldLegacy",t.isIntegrationFieldContent,e=>(0,o.pipe)(u.string.decode(e),i.either.map(e=>t.IntegrationFieldContent.encode({value:e,__TYPE__:t.IntegrationFieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"IntegrationFields"}}));t.IntegrationFieldLegacy=f,t.IntegrationFieldContent=u.strict({__TYPE__:u.literal(t.IntegrationFieldContentType),value:u.string})},17665:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkContent=t.Link=t.LinkContentLegacy=t.LinkLegacy=t.isLinkContent=t.LinkContentType=t.ExternalLinkContent=t.ExternalLinkType=t.DocumentLinkContent=t.DocumentLinkType=t.FileLinkContent=t.FileLinkType=t.ImageLinkContent=t.ImageLinkType=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(23284),c=n(37581),f=n(47320),l=n(72186);t.ImageLinkType="ImageLink";let p=u.exact(u.intersection([u.type({id:u.string,url:u.string,height:u.string,width:u.string,size:u.string,name:u.string,kind:u.string}),u.partial({date:c.StringOrNull}),])),d=new u.Type("ImageLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ImageLinkType,e=>(0,o.pipe)(p.decode(e),i.either.map(e=>t.ImageLinkContent.encode({...e,__TYPE__:t.ImageLinkType}))),e=>p.encode(e));t.ImageLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ImageLinkType)}),p,]),t.FileLinkType="FileLink";let s=u.exact(u.intersection([u.type({id:u.string,url:u.string,name:u.string,kind:u.string,size:(0,a.withFallback)(u.string,"0")}),u.partial({date:(0,f.nullable)(u.string)}),])),m=new u.Type("FileLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.FileLinkType,e=>(0,o.pipe)(s.decode(e),i.either.map(e=>t.FileLinkContent.encode({...e,__TYPE__:t.FileLinkType}))),e=>s.encode(e));t.FileLinkContent=u.intersection([s,u.exact(u.intersection([u.type({__TYPE__:u.literal(t.FileLinkType)}),u.partial({size:(0,a.withFallback)(u.string,"0")}),])),]),t.DocumentLinkType="DocumentLink";let h=u.strict({id:c.NonEmptyString}),v=new u.Type("DocumentLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.DocumentLinkType,e=>(0,o.pipe)(h.decode(e),i.either.map(e=>t.DocumentLinkContent.encode({...e,__TYPE__:t.DocumentLinkType}))),e=>h.encode(e));t.DocumentLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.DocumentLinkType)}),h,]),t.ExternalLinkType="ExternalLink";let y=u.exact(u.intersection([u.type({url:u.string}),u.partial({kind:u.literal("web"),target:c.StringOrNull,preview:(0,f.nullable)(u.partial({title:u.string}))}),])),g=new u.Type("ExternalLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ExternalLinkType,e=>(0,o.pipe)(y.decode(e),i.either.map(e=>t.ExternalLinkContent.encode({...e,__TYPE__:t.ExternalLinkType}))),e=>y.encode(e));t.ExternalLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ExternalLinkType)}),y,]),t.LinkContentType="LinkContent";let _=e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.LinkContentType;t.isLinkContent=_,t.LinkLegacy=u.union([d,m,v,g,]);let b=e=>new u.Type("LinkLegacy",t.isLinkContent,e=>(0,o.pipe)(t.LinkLegacy.decode(e),i.either.map(e=>t.LinkContent.encode({value:e,__TYPE__:t.LinkContentType}))),n=>({content:t.LinkLegacy.encode(n.value),types:{[e.keyOfType]:"Link"}}));t.LinkContentLegacy=b,t.Link=u.union([t.ImageLinkContent,t.FileLinkContent,t.DocumentLinkContent,t.ExternalLinkContent,]),t.LinkContent=u.strict({__TYPE__:u.literal(t.LinkContentType),value:t.Link})},22577:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableLegacy=t.isNestableContent=t.NestableContentDefaultValue=t.NestableContent=void 0;let r=n(87783),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(34039),a=n(3136),c=n(11893),f=n(48930),l=n(33111),p=n(33065),d=n(73089),s=n(32732),m=n(17665),h=n(29474),v=n(93783);t.NestableContent=o.union([u.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,m.LinkContent,h.RichTextContent,v.SeparatorContent,]);let y=e=>{switch(e.type){case"Boolean":return(0,a.BooleanContentDefaultValue)(e);case"Select":return(0,f.SelectContentDefaultValue)(e);default:return}};t.NestableContentDefaultValue=y;let g=e=>(0,f.isTextContent)(e)||(0,f.isColorContent)(e)||(0,f.isDateContent)(e)||(0,f.isTimestampContent)(e)||(0,f.isNumberContent)(e)||(0,f.isRangeContent)(e)||(0,f.isSelectContent)(e)||(0,p.isGeoPointContent)(e)||(0,h.isRichTextContent)(e)||(0,a.isBooleanContent)(e)||(0,c.isEmbedContent)(e)||(0,d.isImageContent)(e)||(0,s.isIntegrationFieldContent)(e)||(0,m.isLinkContent)(e)||(0,v.isSeparatorContent)(e)||(0,u.isEmptyContent)(e);t.isNestableContent=g;let _=e=>({decode(t){if(!e.fieldType)return;let n=(0,u.EmptyLegacy)(e.fieldType).decode(t);if((0,i.isRight)(n))return n;let r=(()=>{switch(e.fieldType){case"Text":return(0,f.TextLegacy)(e);case"Color":return(0,f.ColorLegacy)(e);case"Date":return(0,f.DateLegacy)(e);case"Timestamp":return(0,f.TimestampLegacy)(e);case"Number":return(0,f.NumberLegacy)(e);case"Range":return(0,f.RangeLegacy)(e);case"Select":return(0,f.SelectLegacy)(e);case"GeoPoint":return(0,p.GeoPointLegacy)(e);case"StructuredText":return(0,h.RichTextLegacy)(e);case"Boolean":return(0,a.BooleanLegacy)(e);case"Embed":return(0,c.EmbedLegacy)(e);case"Image":return(0,d.ImageLegacy)(e);case"IntegrationFields":return(0,s.IntegrationFieldLegacy)(e);case"Link":return(0,m.LinkContentLegacy)(e);case"Separator":return(0,v.SeparatorLegacy)(e);default:return}})();if(r)return r.decode(t)},encode(t){switch(t.__TYPE__){case l.FieldContentType:if("Text"===t.type)return(0,f.TextLegacy)(e).encode(t);if("Color"===t.type)return(0,f.ColorLegacy)(e).encode(t);if("Range"===t.type)return(0,f.RangeLegacy)(e).encode(t);if("Date"===t.type)return(0,f.DateLegacy)(e).encode(t);if("Number"===t.type)return(0,f.NumberLegacy)(e).encode(t);if("Timestamp"===t.type)return(0,f.TimestampLegacy)(e).encode(t);if("Select"===t.type)return(0,f.SelectLegacy)(e).encode(t);return;case p.GeoPointContentType:return(0,p.GeoPointLegacy)(e).encode(t);case h.RichTextContentType:return(0,h.RichTextLegacy)(e).encode(t);case c.EmbedContentType:return(0,c.EmbedLegacy)(e).encode(t);case a.BooleanContentType:return(0,a.BooleanLegacy)(e).encode(t);case d.ImageContentType:return(0,d.ImageLegacy)(e).encode(t);case s.IntegrationFieldContentType:return(0,s.IntegrationFieldLegacy)(e).encode(t);case m.LinkContentType:return(0,m.LinkContentLegacy)(e).encode(t);case v.SeparatorContentType:return(0,v.SeparatorLegacy)(e).encode(t);default:return}}});t.NestableLegacy=_},3110:function(e,t,n){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=n(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23284),f=n(46239),l=n(37581),p=n(47320),d=n(11893),s=n(73089),m=n(17665),h=e=>a.strict({data:e,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")}),y=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([h(m.Link),v,y]),t.SpanLegacy=a.union([h(m.LinkLegacy),v,y]);let g=e=>new a.Type("ValidatedSpans",t=>Array.isArray(t)&&t.every(e.is),(t,n)=>{if(!Array.isArray(t))return a.failure(t,n);{let r=t.reduce((t,n)=>{let r=e.decode(n);return(0,o.isLeft)(r)?t:[...t,r.right]},[]).sort((e,t)=>e.start-t.start);return a.success(r)}},t=>t.reduce((t,n)=>{let r=e.encode(n);return[...t,r]},[]));t.ValidatedSpans=g;let _=e=>a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.image),data:a.intersection([s.ImageContentView,a.partial({linkTo:(0,p.nullable)(e)}),])}),a.partial({label:l.StringOrNull,direction:l.StringOrNull}),]));t.ImageBlock=_(m.Link);let b=_(m.LinkLegacy);t.checkImageBlock=function(e){return e.type===f.RichTextNodeType.image};let S=a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.embed),data:a.unknown}),a.partial({label:l.StringOrNull,direction:l.StringOrNull}),])),T=new a.Type("EmbedBlockLegacy",e=>"embed"===e.type,e=>(0,u.pipe)(S.decode(e),i.either.chain(e=>i.either.map(t=>[e,t])(d.EmbedContentLegacy.decode(e.data))),i.either.map(([e,n])=>t.EmbedBlock.encode({...e,data:{...n,__TYPE__:d.EmbedContentType,all:e.data}}))),e=>({...S.encode(e),data:d.EmbedContentLegacy.encode(e.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(e){return e.type===f.RichTextNodeType.embed};let I=e=>a.exact(a.intersection([a.type({type:(0,p.refineType)(f.RichTextNodeTypeCodec,`string which isn't ${f.RichTextNodeType.image} ${f.RichTextNodeType.embed}`,e=>e!==f.RichTextNodeType.image&&e!==f.RichTextNodeType.embed),content:a.intersection([a.type({text:a.string}),a.partial({spans:(0,t.ValidatedSpans)(e)}),])}),a.partial({label:a.string,direction:a.string}),]));t.TextBlock=I(t.Span);let R=I(t.SpanLegacy),w=a.union([T,b,R,]);t.BlockLegacy=new a.Type("BlockLegacy",e=>T.is(e)||b.is(e)||R.is(e),e=>w.decode(e),e=>t.ImageBlock.is(e)?b.encode(e):t.EmbedBlock.is(e)?T.encode(e):R.encode(e)),t.Block=a.union([t.ImageBlock,t.EmbedBlock,t.TextBlock])},29474:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextLegacy=t.RichTextContent=t.isRichTextContent=t.RichTextContentType=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(72186),c=n(3110);t.RichTextContentType="StructuredTextContent";let f=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.RichTextContentType;t.isRichTextContent=f;let l=u.array(c.BlockLegacy);t.RichTextContent=u.strict({__TYPE__:u.literal(t.RichTextContentType),value:u.array(c.Block)}),(0,r.__exportStar)(n(3110),t);let p=e=>new u.Type("RichTextLegacy",t.isRichTextContent,e=>(0,o.pipe)(l.decode(e),i.either.map(e=>({value:e,__TYPE__:t.RichTextContentType}))),t=>({content:l.encode(t.value),types:{[e.keyOfType]:"StructuredText"}}));t.RichTextLegacy=p},93783:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorContent=t.SeparatorLegacy=t.isSeparatorContent=t.SeparatorContentType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(72186);t.SeparatorContentType="SeparatorContent";let u=e=>(0,o.hasContentType)(e)&&e.__TYPE__===t.SeparatorContentType;t.isSeparatorContent=u;let a=e=>new i.Type("SeparatorLegacy",t.isSeparatorContent,()=>i.success(t.SeparatorContent.encode({__TYPE__:t.SeparatorContentType})),()=>({content:{},types:{[e.keyOfType]:"Separator"}}));t.SeparatorLegacy=a,t.SeparatorContent=i.strict({__TYPE__:i.literal(t.SeparatorContentType)})},12750:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(3136),t),(0,r.__exportStar)(n(11893),t),(0,r.__exportStar)(n(48930),t),(0,r.__exportStar)(n(33065),t),(0,r.__exportStar)(n(73089),t),(0,r.__exportStar)(n(32732),t),(0,r.__exportStar)(n(17665),t),(0,r.__exportStar)(n(22577),t),(0,r.__exportStar)(n(29474),t),(0,r.__exportStar)(n(93783),t)},96865:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateCompositeSlice=t.traverseCompositeSliceContent=t.compositeSliceContentWithDefaultValues=t.CompositeSliceContent=t.CompositeSliceLegacy=t.isCompositeSliceContent=t.CompositeSliceContentType=void 0;let r=n(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(35264),f=n(72186),l=n(12750),p=n(77184),d=n(68413);t.CompositeSliceContentType="CompositeSliceContent";let s=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.CompositeSliceContentType;t.isCompositeSliceContent=s;let m=a.exact(a.partial({repeat:a.array(a.unknown),"non-repeat":a.UnknownRecord})),h=e=>new a.Type("CompositeSliceLegacy",t.isCompositeSliceContent,n=>(0,u.pipe)(m.decode(n),i.either.map(n=>{let r=(()=>{let t=(0,c.getFieldCtx)("repeat",e),r=(0,d.RepeatableWidgetsLegacy)(t).decode(n.repeat);if(!(!r||(0,o.isLeft)(r)))return r.right})()||[],i=Object.entries(n["non-repeat"]||{}).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e,["non-repeat"]);if(!i)return t;let u=(0,l.NestableLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:{...t,[n]:u.right}},{});return{nonRepeat:i,repeat:r,__TYPE__:t.CompositeSliceContentType}})),t=>{let n=Object.entries(t.nonRepeat).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e,["non-repeat"]),o=(0,l.NestableLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}}),r=(()=>{let n=(0,c.getFieldCtx)("repeat",e),r=(0,d.RepeatableWidgetsLegacy)(n).encode(t.repeat);return r})()||[];return{content:{"non-repeat":n.content,repeat:r.map(e=>e.content)},types:{[e.keyOfType]:"Slice",...n.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}});t.CompositeSliceLegacy=h,t.CompositeSliceContent=a.strict({__TYPE__:a.literal(t.CompositeSliceContentType),nonRepeat:a.record(a.string,l.NestableContent),repeat:d.RepeatableWidgets}),t.compositeSliceContentWithDefaultValues=function(e,t){var n,r;let i=(0,p.withDefaultNestableContentValues)(null!==(n=e["non-repeat"])&&void 0!==n?n:{},t.nonRepeat),o=(0,p.repeatableContentWithDefaultNestableContentValues)(null!==(r=e.repeat)&&void 0!==r?r:{},t.repeat);return{...t,nonRepeat:i,repeat:o}},t.traverseCompositeSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,u)=>{let a=Object.entries(i.widget.nonRepeat).reduce((i,[u,a])=>{var c,f,p;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[u]:null===(p=null==r?void 0:r["non-repeat"])||void 0===p?void 0:p[u],s=o({path:e.concat([{key:"non-repeat",type:"primary"},{key:u,type:"Widget"},]),key:u,apiId:n,model:d,content:a});return s?(0,l.isNestableContent)(s)?{...i,[u]:s}:(console.warn(`Warn: Non nestable content with key [${u}] detected in a composite slice [${n}] with key [${t}]`),i):i},{}),c=(0,d.traverseRepeatableWidgetItemsContent)({path:e.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})(o);return u({key:t,apiId:n,path:e,model:r,content:{...i,widget:{__TYPE__:"CompositeSliceContent",repeat:c,nonRepeat:a}}})}},t.migrateCompositeSlice=function(e,t){let[,n]=t.key.split("$");return{key:`${e.sliceName}$${n}`,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:Object.entries(t.widget.nonRepeat).reduce((n,[r,i])=>{var o;return(null===(o=e.fields.primary)||void 0===o?void 0:o[r])?{...n,[r]:i}:(console.warn(`The widget ${r} in the non-repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},{}),items:t.widget.repeat.map(n=>({__TYPE__:"GroupItemContent",value:n.value.reduce((n,[r,i])=>{var o;return(null===(o=e.fields.items)||void 0===o?void 0:o[r])?n.concat([[r,i]]):(console.warn(`The widget ${r} in the repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},[])}),[])}}}},68413:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatableWidgets=t.RepeatableWidgetsLegacy=t.traverseRepeatableWidgetItemsContent=t.traverseRepeatableWidgetContent=t.RepeatableWidgetContent=t.isRepeatableWidgetContent=t.RepeatableWidgetLegacy=void 0;let r=n(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(35264),f=n(72186),l=n(31952),p=n(12750),d=a.strict({__TYPE__:a.literal(l.GroupItemContentType),value:a.array(a.tuple([a.string,p.NestableContent]))}),s=a.record(a.string,a.unknown),m=e=>new a.Type("RepeatableWidgetItemLegacy",e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.GroupItemContentType,t=>{let n=(0,u.pipe)(s.decode(t),i.either.map(t=>{let n=Object.entries(t).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e),u=(0,p.NestableLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:[...t,[n,u.right]]},[]);return{value:n,__TYPE__:l.GroupItemContentType}}));return n},t=>t.value.reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e),o=(0,p.NestableLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}})),h=e=>{let n=a.array(a.union([a.null,m(e)])),r=a.array(m(e));return new a.Type("RepeatableWidgetLegacy",t.isRepeatableWidgetContent,e=>(0,u.pipe)(n.decode(e),i.either.map(e=>({value:e.map(e=>null===e?{__TYPE__:l.GroupItemContentType,value:[]}:e),__TYPE__:l.GroupContentType}))),t=>{let n=r.encode(t.value);return{content:n.map(e=>e.content),types:n.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:"Group"})}})};t.RepeatableWidgetLegacy=h;let v=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.GroupContentType;function y({path:e,model:t,content:n}){return r=>n.map((n,i)=>{let o=e.concat([{key:i.toString(),type:"GroupItem"},]),u=n.value.reduce((e,[n,i])=>{let u=null==t?void 0:t[n],a=r({path:o.concat([{key:n,type:"Widget"},]),key:n,apiId:n,model:u,content:i});return a&&(0,p.isNestableContent)(a)?e.concat([[n,a]]):e},[]);return{__TYPE__:n.__TYPE__,value:u}})}t.isRepeatableWidgetContent=v,t.RepeatableWidgetContent=a.strict({__TYPE__:a.literal(l.GroupContentType),value:a.array(d)}),t.traverseRepeatableWidgetContent=function({path:e,key:t,apiId:n,model:r,content:i}){return o=>{var u;let a=y({path:e,model:null===(u=null==r?void 0:r.config)||void 0===u?void 0:u.fields,content:i.value})(o);return o({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,value:a}})}},t.traverseRepeatableWidgetItemsContent=y;let g=e=>a.array(m(e));t.RepeatableWidgetsLegacy=g;let _=a.tuple([a.string,p.NestableContent]),b=a.strict({__TYPE__:a.literal(l.GroupItemContentType),value:a.array(_)});t.RepeatableWidgets=a.array(b)},914:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSharedSliceContent=t.sharedSliceContentWithDefaultValues=t.SharedSliceContent=t.SharedSliceLegacy=t.isSharedSliceContent=t.SharedSliceContentType=void 0;let r=n(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23284),f=n(96742),l=n(35264),p=n(72186),d=n(31952),s=n(12750),m=n(77184),h=n(68413),v=n(55076);t.SharedSliceContentType="SharedSliceContent";let y=e=>(0,p.hasContentType)(e)&&e.__TYPE__===t.SharedSliceContentType;t.isSharedSliceContent=y;let g=a.exact(a.type({variation:a.string,items:(0,c.withFallback)(a.array(a.unknown),[]),primary:(0,c.withFallback)(a.UnknownRecord,{})})),_=e=>new a.Type("SharedSliceLegacy",t.isSharedSliceContent,n=>(0,u.pipe)(g.decode(n),i.either.map(n=>{let r=(()=>{let t=(0,l.getFieldCtx)("items",e,["variations",n.variation,]),r=(0,h.RepeatableWidgetsLegacy)(t).decode(n.items);if(!(!r||(0,o.isLeft)(r)))return r.right})()||[],i=Object.entries(n.primary).reduce((t,[r,i])=>{let u=(0,l.getFieldCtx)(r,e,["variations",n.variation,"primary",]),a=(0,v.SlicePrimaryLegacy)(u).decode(i);return!a||(0,o.isLeft)(a)?t:{...t,[r]:a.right}},{});return{variation:n.variation,primary:i,items:r,__TYPE__:t.SharedSliceContentType}})),t=>{let n=Object.entries(t.primary).reduce((n,[r,i])=>{let o=(0,l.getFieldCtx)(r,e,["variations",t.variation,"primary",]),u=(0,v.SlicePrimaryLegacy)(o).encode(i);return u?{content:{...n.content,[r]:u.content},types:{...n.types,...u.types}}:n},{content:{},types:{}}),r=(()=>{let n=(0,l.getFieldCtx)("items",e,["variations",t.variation,]),r=(0,h.RepeatableWidgetsLegacy)(n).encode(t.items);return r})()||[];return{content:{primary:n.content,items:r.map(e=>e.content),variation:t.variation},types:{[e.keyOfType]:"SharedSlice",...n.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}});t.SharedSliceLegacy=_,t.SharedSliceContent=a.strict({__TYPE__:a.literal(t.SharedSliceContentType),variation:a.string,primary:a.record(a.string,v.SlicePrimaryContent),items:h.RepeatableWidgets}),t.sharedSliceContentWithDefaultValues=function(e,t){var n,r;let i=e.variations.find(e=>e.id===t.variation),o=null!==(n=null==i?void 0:i.primary)&&void 0!==n?n:{},u=null!==(r=null==i?void 0:i.items)&&void 0!==r?r:{},a=(0,m.withDefaultSlicePrimaryContentValues)(o,t.primary),c=(0,m.repeatableContentWithDefaultNestableContentValues)(u,t.items);return{...t,primary:a,items:c}},t.traverseSharedSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,u)=>{let a=Object.entries(i.widget.primary).reduce((i,[u,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[u],m=(0,d.isGroupContent)(a)?(0,d.traverseGroupContent)({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"},]),key:u,apiId:u,content:a,model:(null==p?void 0:p.type)===f.GroupFieldType?p:void 0})(o):(0,s.isNestableContent)(a)?o({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"},]),key:u,apiId:u,model:p,content:a}):void 0;return m?((0,v.isSlicePrimaryContent)(m)||console.warn(`Warn: Non nestable or group content with key [${u}] detected in a shared slice [${n}] with key [${t}]`),{...i,[u]:m}):i},{}),c=(0,h.traverseRepeatableWidgetItemsContent)({path:e.concat([{key:"items",type:"items"}]),model:null==r?void 0:r.fields.items,content:i.widget.items})(o);return u({key:t,apiId:n,path:e,model:r,content:{...i,widget:{__TYPE__:"SharedSliceContent",variation:i.widget.variation,primary:a,items:c}}})}}},463:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSimpleSlice=t.traverseSimpleSliceContent=t.SimpleSliceLegacy=t.isSimpleSliceContent=t.SimpleSliceContent=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(12750),u=n(68413);t.SimpleSliceContent=i.union([o.NestableContent,u.RepeatableWidgetContent,]);let a=e=>(0,o.isNestableContent)(e)||(0,u.isRepeatableWidgetContent)(e);t.isSimpleSliceContent=a;let c=e=>({decode:"Group"===e.fieldType?(0,u.RepeatableWidgetLegacy)(e).decode.bind(null):(0,o.NestableLegacy)(e).decode.bind(null),encode:t=>"GroupContentType"===t.__TYPE__?(0,u.RepeatableWidgetLegacy)(e).encode(t):(0,o.NestableLegacy)(e).encode(t)});t.SimpleSliceLegacy=c,t.traverseSimpleSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,a)=>{var c;if((0,u.isRepeatableWidgetContent)(i.widget)){let f=(0,u.traverseRepeatableWidgetContent)({path:e,key:i.key,apiId:i.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:i.widget})(o);return f&&a({key:i.key,apiId:i.name,path:e,model:r,content:{...i,widget:f}})}let l=o({key:i.key,apiId:i.name,path:e,model:(null==r?void 0:r.type)==="SharedSlice"?null===(c=r.fields.primary)||void 0===c?void 0:c[i.name]:(null==r?void 0:r.type)!=="Group"?r:void 0,content:i.widget});return l&&a({key:t,apiId:n,path:e,model:r,content:{...i,widget:l}})}},t.migrateSimpleSlice=function(e,t){var n;let[,r]=t.key.split("$"),i=`${e.sliceName}$${r}`;return"GroupContentType"===t.widget.__TYPE__?{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:{},items:t.widget.value.map(t=>({__TYPE__:"GroupItemContent",value:t.value.reduce((t,[n,r])=>{var i;return(null===(i=e.fields.items)||void 0===i?void 0:i[n])?t.concat([[n,r]]):t},[])}),[])}}:{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:(null===(n=e.fields.primary)||void 0===n?void 0:n[t.name])?{[t.name]:t.widget}:{},items:[]}}}},55076:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryContent=t.SlicePrimaryLegacy=t.SlicePrimaryContent=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(96742),u=n(31952),a=n(12750);t.SlicePrimaryContent=i.union([a.NestableContent,u.GroupContent]);let c=e=>{let t=(0,u.GroupLegacy)(e),n=(0,a.NestableLegacy)(e);return{decode:r=>e.fieldType===o.GroupFieldType?t.decode(r):n.decode(r),encode:e=>(0,u.isGroupContent)(e)?t.encode(e):n.encode(e)}};t.SlicePrimaryLegacy=c;let f=e=>(0,a.isNestableContent)(e)||(0,u.isGroupContent)(e);t.isSlicePrimaryContent=f},77822:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceContent=t.SliceLegacy=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(96865),u=n(914),a=n(463),c=e=>({decode(t){let n=(()=>{switch(e.fieldType){case"Slice":return(0,o.CompositeSliceLegacy)(e);case"SharedSlice":return(0,u.SharedSliceLegacy)(e);default:return(0,a.SimpleSliceLegacy)(e)}})();return n.decode(t)},encode(t){switch(t.__TYPE__){case"SharedSliceContent":return(0,u.SharedSliceLegacy)(e).encode(t);case"CompositeSliceContent":return(0,o.CompositeSliceLegacy)(e).encode(t);default:return(0,a.SimpleSliceLegacy)(e).encode(t)}}});t.SliceLegacy=c,t.SliceContent=i.union([o.CompositeSliceContent,u.SharedSliceContent,a.SimpleSliceContent,]),(0,r.__exportStar)(n(96865),t),(0,r.__exportStar)(n(68413),t),(0,r.__exportStar)(n(914),t),(0,r.__exportStar)(n(463),t),(0,r.__exportStar)(n(55076),t)},26226:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSliceItem=t.SlicesItemLegacy=t.sliceItemContentWithDefaultValues=t.isSimpleSliceItemContent=t.isCompositeSliceItemContent=t.isSharedSliceItemContent=t.SliceItemContent=void 0;let r=n(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(47320),f=n(35264),l=n(31952),p=n(12750),d=n(77184),s=n(77822),m=n(96865),h=n(914),v=n(463);function y(e){return(0,m.isCompositeSliceContent)(e.widget)}function g(e){return(0,l.isGroupContent)(e.widget)||(0,p.isNestableContent)(e.widget)}t.SliceItemContent=a.type({key:a.string,name:a.string,maybeLabel:a.union([a.string,a.undefined]),widget:s.SliceContent}),t.isSharedSliceItemContent=function(e){return(0,h.isSharedSliceContent)(e.widget)},t.isCompositeSliceItemContent=y,t.isSimpleSliceItemContent=g,t.sliceItemContentWithDefaultValues=function(e,t){var n;if("SharedSlice"===e.type&&(0,h.isSharedSliceContent)(t))return(0,s.sharedSliceContentWithDefaultValues)(e,t);if("Slice"===e.type&&(0,m.isCompositeSliceContent)(t))return(0,s.compositeSliceContentWithDefaultValues)(e,t);if("Group"===e.type&&(0,l.isGroupContent)(t)&&(null===(n=e.config)||void 0===n?void 0:n.fields)){let r=(0,d.repeatableContentWithDefaultNestableContentValues)(e.config.fields,t.value);return{...t,value:r}}return t};let _=a.exact(a.intersection([a.type({key:a.string,value:a.unknown}),a.partial({label:(0,c.nullable)(a.string)}),])),b=e=>new a.Type("SlicesItemLegacy",e=>((0,h.isSharedSliceContent)(e.widget),(0,m.isCompositeSliceContent)(e.widget),(0,v.isSimpleSliceContent)(e.widget)),(t,n)=>(0,u.pipe)(_.decode(t),i.either.chain(r=>{var i;let u=r.key.indexOf("$"),c=r.key.substring(0,u>0?u:void 0),l=(0,f.getFieldCtx)(c,e),p=(0,s.SliceLegacy)(l).decode(r.value);return!p||(0,o.isLeft)(p)?a.failure(t,n):a.success({key:r.key,name:c,maybeLabel:null!==(i=r.label)&&void 0!==i?i:void 0,widget:p.right})})),t=>{let n=(0,f.getFieldCtx)(t.name,e),r=(0,s.SliceLegacy)(n).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.SlicesItemLegacy=b;let S=({model:e,content:t})=>y(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,m.migrateCompositeSlice)(e,t):g(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,v.migrateSimpleSlice)(e,t):t;t.migrateSliceItem=S},19436:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSlices=t.slicesContentWithDefaultValues=t.SlicesContent=t.SlicesLegacy=t.isSlicesContent=t.SlicesContentType=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(53953),c=n(96742),f=n(72186),l=n(96865),p=n(914),d=n(463),s=n(26226);t.SlicesContentType="SliceContentType";let m=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.SlicesContentType;t.isSlicesContent=m;let h=e=>{let n=u.array((0,s.SlicesItemLegacy)(e));return new u.Type("SlicesLegacy",t.isSlicesContent,e=>(0,o.pipe)(n.decode(e),i.either.map(e=>({__TYPE__:t.SlicesContentType,value:e}))),t=>{let r=n.encode(t.value);return{content:r.map(e=>e.content),types:r.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:"Slices"})}})};t.SlicesLegacy=h,t.SlicesContent=u.type({__TYPE__:u.literal(t.SlicesContentType),value:u.array(s.SliceItemContent)}),t.slicesContentWithDefaultValues=function(e,t){var n;let r=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.choices;if(void 0===r)return t;let i=t.value.map(e=>{let t=r[e.name];if(t){let n=(0,s.sliceItemContentWithDefaultValues)(t,e.widget);return{...e,widget:n}}return e});return{...t,value:i}},t.traverseSlices=function({path:e,key:t,model:n,content:r}){return({transformWidget:i=({content:e})=>e,transformSlice:o=({content:e})=>e})=>{let u=r.value.reduce((t,r)=>{let u=n&&function(e,t,n){var r,i;let o=null===(i=null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||void 0===i?void 0:i[n.name];return(()=>{if((0,s.isSharedSliceItemContent)(n)&&o&&(0,c.isStaticSharedSlice)(o)){let e=o.variations.find(e=>e.id===n.widget.variation);return e?{type:"SharedSlice",sliceName:o.id,variationId:e.id,fields:{primary:e.primary||{},items:e.items||{}}}:void 0}})()||(()=>{var r;let i=a.ContentPath.append(a.ContentPath.serialize(e),n.name),o=Object.values((null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||{}).find(e=>{var t;return!!(0,c.isStaticSharedSlice)(e)&&!!(null===(t=e.legacyPaths)||void 0===t?void 0:t[i])});if(!o)return;let u=null==o?void 0:o.variations.find(e=>{var t;return e.id===(null===(t=o.legacyPaths)||void 0===t?void 0:t[i])});if(u)return{type:"SharedSlice",sliceName:o.id,variationId:u.id,fields:{primary:u.primary||{},items:u.items||{}}}})()||(()=>{if(o){if((0,c.isCompositeSlice)(o))return{type:"Slice","non-repeat":o["non-repeat"]||{},repeat:o.repeat||{}};if((0,c.isLegacySlice)(o))return o}})()}(e,n,r),f=(0,s.isSharedSliceItemContent)(r)?(0,p.traverseSharedSliceContent)({path:e.concat({key:r.key,type:"SharedSlice"}),sliceKey:r.key,sliceName:r.name,model:(null==u?void 0:u.type)==="SharedSlice"?u:void 0,content:r})(i,o):(0,s.isCompositeSliceItemContent)(r)?(0,l.traverseCompositeSliceContent)({path:e.concat({key:r.key,type:"Slice"}),sliceKey:r.key,sliceName:r.name,model:(null==u?void 0:u.type)==="Slice"||(null==u?void 0:u.type)==="SharedSlice"?u:void 0,content:r})(i,o):(0,s.isSimpleSliceItemContent)(r)?(0,d.traverseSimpleSliceContent)({path:e.concat({key:r.key,type:"LegacySlice"}),sliceKey:r.key,sliceName:r.name,model:u&&(null==u?void 0:u.type)!=="Slice"?u:void 0,content:r})(i,o):void 0;return f?t.concat(f):t},[]);return i({path:e,key:t,apiId:t,model:n,content:{__TYPE__:r.__TYPE__,value:u}})}}},91167:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(77822),t),(0,r.__exportStar)(n(26226),t),(0,r.__exportStar)(n(19436),t)},77184:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.repeatableContentWithDefaultNestableContentValues=t.withDefaultNestableContentValues=t.withDefaultSlicePrimaryContentValues=void 0;let r=n(96742),i=n(31952),o=n(12750);t.withDefaultSlicePrimaryContentValues=function(e,t){let n=t;for(let[u,a]of Object.entries(e)){let c=t[u];if(void 0===c){if(a.type===r.GroupFieldType)n[u]=(0,i.groupContentWithDefaultValues)(a,i.GroupContentDefaultValue);else{let f=(0,o.NestableContentDefaultValue)(a);f&&(n[u]=f)}continue}a.type===r.GroupFieldType&&(0,i.isGroupContent)(c)&&(n[u]=(0,i.groupContentWithDefaultValues)(a,c))}return n},t.withDefaultNestableContentValues=function(e,t){return Object.entries(e).reduce((e,[n,r])=>{if(void 0===t[n]){let i=(0,o.NestableContentDefaultValue)(r);return void 0!==i?{...e,[n]:i}:e}return e},t)},t.repeatableContentWithDefaultNestableContentValues=function(e,t){let n=Object.entries(e);return t.map(e=>n.reduce((t,[n,r])=>{var u;let a=e.value.find(([e])=>e===n);if("Group"===r.type){let c=(0,i.groupContentWithDefaultValues)(r,null!==(u=null==a?void 0:a[1])&&void 0!==u?u:{__TYPE__:i.GroupContentType,value:[]});return{...t,value:[...t.value.filter(([e])=>e!==n),...c?[[n,c]]:[],]}}if(!a){let f=(0,o.NestableContentDefaultValue)(r);return{...t,value:[...t.value,...f?[[n,f]]:[],]}}return t},e))}},16211:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(48925),t),(0,r.__exportStar)(n(1645),t),(0,r.__exportStar)(n(35264),t)},72186:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.hasContentType=t.hasFieldContentType=void 0;let r=n(87412),i=n(1645);function o(e){return"object"==typeof e&&null!==e&&"__TYPE__"in e}t.hasFieldContentType=function(e){return o(e)&&e.__TYPE__===i.FieldContentType&&(null==e?void 0:e.type)!==void 0&&"string"==typeof e.type&&(0,r.isRight)(i.FieldType.decode(e.type))},t.hasContentType=o},32141:function(e,t,n){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=n(87783),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(69624),a=n(37581),c=n(69879);t.CustomTypeFormat={page:"page",custom:"custom"};class f extends Error{constructor(e){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=e,this.message=this._formatError(e)}_formatError(e){let t=e.map(e=>` - ${e}`);return`The following slices doesn't exists in your Prismic repository:
2
2
  ${t.join("\n")}
3
- `}}function l(e){return o.exact(o.intersection([o.type({id:o.string,label:a.StringOrNull,repeatable:(0,u.withFallback)(o.boolean,!0),json:o.record(o.string,e),status:(0,u.withFallback)(o.boolean,!0)}),o.partial({hash:o.string,format:(0,u.withFallback)(o.keyof(t.CustomTypeFormat),"custom")}),]))}function p(e){return Object.entries(e.json).reduce((e,[,t])=>{let n=Object.entries(t);return e.concat(n)},[])}function d(e,t){let n=Object.entries(e.json).reduce((e,[n,r])=>{let i=Object.entries(r).reduce((e,[n,r])=>{let i=t(n,r);return i?{...e,[n]:i}:e},{});return{...e,[n]:i}},{});return{...e,json:n}}t.StaticCustomType=l(c.StaticSection),t.CustomType=l(c.DynamicSection),t.flattenWidgets=p,t.flattenSections=function(e){return Object.entries(e.json).reduce((e,[,t])=>{let n=Object.entries(t);return e.concat(n)},[])},t.toStatic=function(e,t){let n=Object.entries(e.json).reduce((e,[n,r])=>({...e,[n]:c.Sections.toStatic(r,t)}),{});return{...e,json:n}},t.validateSlices=function(e,t){let n=(function(e){let t=function(e){let t=p(e).filter(([,e])=>"Slices"===e.type),n=t.reduce((e,[,t])=>{let n=Object.entries(t.config&&t.config.choices?t.config.choices:{}).filter(([,e])=>"SharedSlice"===e.type).map(([e])=>e);return e.concat(n)},[]);return n}(e);return function(e){return t.map(e)}})(e)(e=>{let n=t.get(e);if(!n)return e}).filter(Boolean);return n.length>0?(0,i.left)(new f(n)):(0,i.right)(e)},t.collectWidgets=d,t.filterMissingSharedSlices=function(e,t){return d(e,(e,n)=>{if("Slices"===n.type){if(!n.config||!n.config.choices)return n;let r=Object.entries(n.config.choices).reduce((e,[n,r])=>"SharedSlice"!==r.type||t.get(n)?{...e,[n]:r}:e,{}),i={...n.config,choices:r};return{...n,config:i}}return n})},t.flattenCustomTypeFields=function(e){return Object.values(e.json).reduce((e,t)=>({...e,...t}),{})},t.collectSharedSlices=function(e){return Object.entries(e.fields).reduce((e,[,t])=>{var n;return"Slices"===t.type||"Choice"===t.type?{...e,...Object.entries((null===(n=t.config)||void 0===n?void 0:n.choices)||{}).reduce((e,[t,n])=>"SharedSlice"===n.type?{...e,[t]:n}:e,{})}:e},{})}},69879:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Sections=t.DynamicSection=t.StaticSection=t.sectionReader=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(11697),u=n(34716);function a(e){return i.record(o.WidgetKey,e)}t.sectionReader=a,t.StaticSection=a(u.StaticWidget),t.DynamicSection=a(u.DynamicWidget),t.Sections={toStatic(e,t){let n=Object.entries(e).reduce((e,[n,r])=>({...e,[n]:u.Widgets.toStatic(r,t)}),{});return n}}},10505:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiffOperation=void 0,(n=t.DiffOperation||(t.DiffOperation={})).Added="added",n.Removed="removed",n.Updated="updated"},14881:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceComparator=void 0;let r=n(68845),i=n(10505),o=n(67068);t.SliceComparator={compare(e,t){if(!e&&t)return{op:i.DiffOperation.Added,value:t};if(e&&!t)return{op:i.DiffOperation.Removed};let n=function(e,t){let n=r.Objects.zipObjects(e,t);return Object.entries(n).reduce((e,[t,n])=>"variations"===t||(null==n?void 0:n.left)===(null==n?void 0:n.right)?e:{...e,[t]:null==n?void 0:n.right},{})}(e,t),u=r.Objects.zipObjects(e&&r.Arrays.toRecord(e.variations,e=>e.id),t&&r.Arrays.toRecord(t.variations,e=>e.id)),a=Object.entries(u).reduce((e,[t,n])=>{if(!n)return e;let r=o.VariationComparator.compare(n.left,n.right);return r?{...e,[t]:r}:e},{}),c={...n,...r.Objects.isNotEmpty(a)?{variations:a}:{}};if(r.Objects.isNotEmpty(c))return{op:i.DiffOperation.Updated,value:c}}}},67068:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.VariationComparator=void 0;let r=n(68845),i=n(73045),o=n(10505);function u(e,t){let n=r.Objects.zipObjects(e,t),a=Object.entries(n).reduce((e,[t,n])=>{if(JSON.stringify(null==n?void 0:n.left)===JSON.stringify(null==n?void 0:n.right))return e;let r=(()=>{var e,t,r,a,c,f,l;if((null==n?void 0:n.left)||(null==n?void 0:n.right)){if((null==n?void 0:n.left)&&!n.right)return{op:o.DiffOperation.Removed};if(!(null==n?void 0:n.left)&&(null==n?void 0:n.right)){if((null===(e=n.right)||void 0===e?void 0:e.type)===i.GroupFieldType){let p={...n.right,config:{...n.right.config,fields:{}}};return p.config.fields=u(void 0,null===(t=n.right.config)||void 0===t?void 0:t.fields)||{},{op:o.DiffOperation.Added,value:p}}return{op:o.DiffOperation.Added,value:n.right}}if((null===(r=n.right)||void 0===r?void 0:r.type)===i.GroupFieldType){let d={...n.right,config:{...n.right.config,fields:{}}};return d.config.fields=u((null===(a=n.left)||void 0===a?void 0:a.type)===i.GroupFieldType?null===(f=null===(c=n.left)||void 0===c?void 0:c.config)||void 0===f?void 0:f.fields:void 0,null===(l=n.right.config)||void 0===l?void 0:l.fields)||{},{op:o.DiffOperation.Updated,value:d}}return{op:o.DiffOperation.Updated,value:n.right}}})();return r?{...e,[t]:r}:e},{});return r.Objects.isNotEmpty(a)?a:void 0}t.VariationComparator={compare(e,t){if(e&&!t)return{op:o.DiffOperation.Removed};if(!e&&t)return{op:o.DiffOperation.Added,value:t};let n=function(e,t){let n=r.Objects.zipObjects(e,t);return Object.entries(n).reduce((e,[t,n])=>"primary"===t||"items"===t||(null==n?void 0:n.left)===(null==n?void 0:n.right)?e:{...e,[t]:null==n?void 0:n.right},{})}(e,t),i=u(null==e?void 0:e.primary,null==t?void 0:t.primary),a=u(null==e?void 0:e.items,null==t?void 0:t.items),c={...n,...i?{primary:i}:{},...a?{items:a}:{}};if(r.Objects.isNotEmpty(c))return{op:o.DiffOperation.Updated,value:c}}}},29294:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},81566:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(10505),t),(0,r.__exportStar)(n(14881),t),(0,r.__exportStar)(n(67068),t),(0,r.__exportStar)(n(29294),t)},96742:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(32141),t),(0,r.__exportStar)(n(81566),t),(0,r.__exportStar)(n(69879),t),(0,r.__exportStar)(n(54249),t)},73045:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Group=t.GroupConfig=t.NestedGroup=t.NestedGroupConfig=t.GroupFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(11697),u=n(37581),a=n(97662);t.GroupFieldType="Group";let c=e=>i.exact(i.partial({label:u.StringOrNull,repeat:i.boolean,fields:i.record(o.WidgetKey,e)})),f=e=>i.exact(i.intersection([i.type({type:i.literal(t.GroupFieldType)}),i.partial({fieldset:u.StringOrNull,icon:i.string,description:i.string,config:c(e)}),]));t.NestedGroupConfig=c(a.NestableWidget),t.NestedGroup=f(a.NestableWidget),t.GroupConfig=c(i.union([a.NestableWidget,t.NestedGroup])),t.Group=f(i.union([a.NestableWidget,t.NestedGroup]))},80260:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UID=t.UIDConfig=t.UIDFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.UIDFieldType="UID",t.UIDConfig=i.exact(i.partial({label:o.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),t.UID=i.exact(i.intersection([i.type({type:i.literal(t.UIDFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.UIDConfig}),]))},34716:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Widgets=t.FieldType=t.DynamicWidget=t.StaticWidget=t.widgetReader=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(73045),u=n(46239),a=n(97662),c=n(8972),f=n(80260);function l(e){return i.union([f.UID,a.NestableWidget,o.Group,e])}t.widgetReader=l,t.StaticWidget=l(c.StaticSlices),t.DynamicWidget=l(c.DynamicSlices),t.FieldType=i.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,[f.UIDFieldType]:null,[o.GroupFieldType]:null,[c.SlicesFieldType]:null,[c.LegacySlicesFieldType]:null}),t.Widgets={toStatic(e,t){switch(e.type){case"Choice":case"Slices":return c.Slices.toStatic(e,t);default:return e}}}},54249:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(73045),t),(0,r.__exportStar)(n(46239),t),(0,r.__exportStar)(n(94631),t),(0,r.__exportStar)(n(66903),t),(0,r.__exportStar)(n(80260),t),(0,r.__exportStar)(n(34716),t)},13071:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanField=t.BooleanConfig=t.BooleanFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.BooleanFieldType="Boolean",t.BooleanConfig=i.exact(i.partial({label:o.StringOrNull,default_value:i.boolean,placeholder_true:i.string,placeholder_false:i.string})),t.BooleanField=i.exact(i.intersection([i.type({type:i.literal(t.BooleanFieldType)}),i.partial({config:t.BooleanConfig}),]))},98871:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Color=t.ColorConfig=t.ColorFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.ColorFieldType="Color",t.ColorConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string})),t.Color=i.exact(i.intersection([i.type({type:i.literal(t.ColorFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.ColorConfig}),]))},68829:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Date=t.DateConfig=t.DateFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.DateFieldType="Date",t.DateConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,default:i.string})),t.Date=i.exact(i.intersection([i.type({type:i.literal(t.DateFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.DateConfig}),]))},82427:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Embed=t.EmbedConfig=t.EmbedFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.EmbedFieldType="Embed",t.EmbedConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,useAsTitle:i.boolean})),t.Embed=i.exact(i.intersection([i.type({type:i.literal(t.EmbedFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.EmbedConfig}),]))},56477:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPoint=t.GeoPointConfig=t.GeoPointFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.GeoPointFieldType="GeoPoint",t.GeoPointConfig=i.exact(i.partial({label:o.StringOrNull})),t.GeoPoint=i.exact(i.intersection([i.type({type:i.literal(t.GeoPointFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.GeoPointConfig}),]))},4813:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Image=t.ImageConfig=t.Thumbnail=t.ImageFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581),u=(0,r.__importDefault)(n(62291));t.ImageFieldType="Image",t.Thumbnail=i.exact(i.intersection([i.type({name:i.string}),u.default,])),t.ImageConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,constraint:u.default,thumbnails:i.readonlyArray(t.Thumbnail)})),t.Image=i.exact(i.intersection([i.type({type:i.literal(t.ImageFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.ImageConfig}),]))},25272:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationField=t.IntegrationFieldConfig=t.IntegrationFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.IntegrationFieldType="IntegrationFields",t.IntegrationFieldConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,catalog:i.string})),t.IntegrationField=i.exact(i.intersection([i.type({type:i.literal(t.IntegrationFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.IntegrationFieldConfig}),]))},68751:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Link=t.LinkConfig=t.LinkFieldType=void 0;let r=n(87783),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(69624),a=n(37581),c=e=>{if(e instanceof Array){let t=e.reduce((e,t)=>e&&"string"==typeof t,!0);if(t)return o.success(e)}},f=e=>{if("string"==typeof e)return o.success([e])},l=new o.Type("MasksArrayString",e=>e instanceof Array,(e,t)=>i.either.chain(o.union([o.array(o.string),o.string]).validate(e,t),n=>c(n)||f(n)||o.failure(e,t)),e=>e);t.LinkFieldType="Link",t.LinkConfig=o.exact(o.partial({label:a.StringOrNull,useAsTitle:o.boolean,placeholder:o.string,select:(0,u.withFallback)(o.union([o.literal("media"),o.literal("document"),o.literal("web"),o.null,]),null),customtypes:o.readonlyArray(o.string),masks:l,tags:l,allowTargetBlank:o.boolean})),t.Link=o.exact(o.intersection([o.type({type:o.literal(t.LinkFieldType)}),o.partial({fieldset:a.StringOrNull,config:t.LinkConfig}),]))},97662:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidget=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(13071),u=n(98871),a=n(68829),c=n(82427),f=n(56477),l=n(4813),p=n(25272),d=n(68751),s=n(25286),m=n(35600),h=n(17685),v=n(99187),y=n(57225),g=n(4575),_=n(37842);t.NestableWidget=i.union([u.Color,o.BooleanField,c.Embed,f.GeoPoint,a.Date,s.Number,m.Range,h.RichText,v.Select,y.Separator,g.Text,_.Timestamp,d.Link,l.Image,p.IntegrationField,])},25286:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Number=t.NumberConfig=t.NumberFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(59054),u=n(37581);t.NumberFieldType="Number",t.NumberConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,min:i.union([i.number,o.NumberFromString]),max:i.union([i.number,o.NumberFromString]),step:i.union([i.number,o.NumberFromString])})),t.Number=i.exact(i.intersection([i.type({type:i.literal(t.NumberFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.NumberConfig}),]))},35600:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Range=t.RangeConfig=t.RangeFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(59054),u=n(37581);t.RangeFieldType="Range",t.RangeConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,min:i.union([i.number,o.NumberFromString]),max:i.union([i.number,o.NumberFromString]),step:i.union([i.number,o.NumberFromString])})),t.Range=i.exact(i.intersection([i.type({type:i.literal(t.RangeFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.RangeConfig}),]))},17685:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichText=t.RichTextConfig=t.RichTextNodeTypeCodec=t.RichTextNodeType=t.DEFAULT_OPTION=t.RichTextFieldType=void 0;let r=n(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(37581),f=(0,r.__importDefault)(n(62291));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",e=>"string"==typeof e,e=>(0,u.pipe)(a.union([a.string,a.null]).decode(e),i.either.map(e=>{if(!e)return t.DEFAULT_OPTION;let n=e.split(",").map(e=>e.trim()),r=n.filter(e=>(0,o.getOrElseW)(()=>void 0)(t.RichTextNodeTypeCodec.decode(e)));return r.length?r.join(","):t.DEFAULT_OPTION})),e=>e),p=e=>{if(!e)return a.success([])},d=e=>{if(e instanceof Object){if(!Object.entries(e).length)return a.success([]);if(e[""])return a.success(e[""].map(e=>e.name));let t=Object.entries(e).reduce((e,[,t])=>e.concat(t.map(e=>e.name)),[]).filter(Boolean);return a.success(t)}},s=e=>{if(e instanceof Array){let t=e.reduce((e,t)=>e&&"string"==typeof t,!0);if(t)return a.success(e)}},m=e=>{if("string"==typeof e)return a.success([e])},h=new a.Type("RichTextLabels",e=>e instanceof Array,(e,t)=>{let n=a.record(a.string,a.readonlyArray(a.record(a.literal("name"),a.string))),r=a.readonlyArray(a.string);return(0,u.pipe)(a.union([n,r,a.string,a.null]).decode(e),i.either.chain(n=>p(n)||s(n)||d(n)||m(n)||a.failure(e,t)))},e=>e);t.RichTextConfig=a.exact(a.partial({label:c.StringOrNull,placeholder:a.string,useAsTitle:a.boolean,single:l,multi:l,imageConstraint:f.default,labels:h,allowTargetBlank:a.boolean})),t.RichText=a.exact(a.intersection([a.type({type:a.literal(t.RichTextFieldType)}),a.partial({fieldset:c.StringOrNull,config:t.RichTextConfig}),]))},99187:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Select=t.SelectConfig=t.SelectFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.SelectFieldType="Select",t.SelectConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,default_value:i.string,options:i.readonlyArray(i.union([i.string,o.StringFromNumber,o.StringFromBoolean]))})),t.Select=i.exact(i.intersection([i.type({type:i.literal(t.SelectFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.SelectConfig}),]))},57225:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Separator=t.SeparatorConfig=t.SeparatorFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.SeparatorFieldType="Separator",t.SeparatorConfig=i.exact(i.partial({label:o.StringOrNull})),t.Separator=i.exact(i.intersection([i.type({type:i.literal(t.SeparatorFieldType)}),i.partial({config:t.SeparatorConfig}),]))},4575:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextConfig=t.TextFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.TextFieldType="Text",t.TextConfig=i.exact(i.partial({label:o.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),t.Text=i.exact(i.intersection([i.type({type:i.literal(t.TextFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.TextConfig}),]))},37842:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.TimestampConfig=t.TimestampFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.TimestampFieldType="Timestamp",t.TimestampConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,default:i.string})),t.Timestamp=i.exact(i.intersection([i.type({type:i.literal(t.TimestampFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.TimestampConfig}),]))},46239:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(13071),t),(0,r.__exportStar)(n(98871),t),(0,r.__exportStar)(n(68829),t),(0,r.__exportStar)(n(82427),t),(0,r.__exportStar)(n(56477),t),(0,r.__exportStar)(n(4813),t),(0,r.__exportStar)(n(25272),t),(0,r.__exportStar)(n(68751),t),(0,r.__exportStar)(n(97662),t),(0,r.__exportStar)(n(25286),t),(0,r.__exportStar)(n(35600),t),(0,r.__exportStar)(n(17685),t),(0,r.__exportStar)(n(99187),t),(0,r.__exportStar)(n(57225),t),(0,r.__exportStar)(n(4575),t),(0,r.__exportStar)(n(37842),t)},62291:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(11621),a=n(37581),c=new o.Type("SideConstraints",e=>!e||"number"==typeof e,(e,t)=>i.either.chain(o.union([o.literal("auto"),o.literal(""),o.Int,u.IntFromString,a.IntFromNumber,a.IntFromPixels,o.null,]).validate(e,t),e=>"auto"===e||""===e?o.success(null):o.success(e)),e=>e),f=o.partial({width:c,height:c});t.default=f},94631:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConstraint=void 0;var i=n(62291);Object.defineProperty(t,"ImageConstraint",{enumerable:!0,get:function(){return r(i).default}})},57191:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isCompositeSlice=t.CompositeSlice=t.CompositeSliceConfig=t.CompositeSliceType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(11697),u=n(37581),a=n(97662);t.CompositeSliceType="Slice",t.CompositeSliceConfig=i.exact(i.partial({label:u.StringOrNull})),t.CompositeSlice=i.exact(i.intersection([i.type({type:i.literal(t.CompositeSliceType)}),i.partial({fieldset:u.StringOrNull,description:i.string,icon:i.string,display:i.string,"non-repeat":i.record(o.WidgetKey,a.NestableWidget),repeat:i.record(o.WidgetKey,a.NestableWidget),config:t.CompositeSliceConfig}),])),t.isCompositeSlice=function(e){return"Slice"===e.type}},7816:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isLegacySlice=t.LegacySlice=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(73045),u=n(97662);t.LegacySlice=i.union([u.NestableWidget,o.NestedGroup]),t.isLegacySlice=function(e){return"Slice"!==e.type&&"SharedSlice"!==e.type}},78716:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicSharedSlice=t.isStaticSharedSlice=t.SharedSlice=t.SharedSliceType=t.Variation=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(69624),u=n(11697),a=n(97662),c=n(23084);t.Variation=i.exact(i.intersection([i.type({id:i.string,name:i.string,description:i.string,imageUrl:(0,o.withFallback)(i.string,"https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format"),docURL:i.string,version:i.string}),i.partial({display:i.string,primary:i.record(u.WidgetKey,c.SlicePrimaryWidget),items:i.record(u.WidgetKey,a.NestableWidget)}),])),t.SharedSliceType="SharedSlice";let f=i.string,l=i.string;t.SharedSlice=i.exact(i.intersection([i.type({id:i.string,type:i.literal(t.SharedSliceType),name:i.string,variations:i.readonlyArray(t.Variation)}),i.partial({description:i.string,legacyPaths:i.record(f,l)}),])),t.isStaticSharedSlice=function(e){return"SharedSlice"===e.type},t.isDynamicSharedSlice=function(e){return"SharedSlice"===e.type}},29377:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceRef=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(78716);t.SharedSliceRef=i.exact(i.type({type:i.literal(o.SharedSliceType)}))},76098:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},23084:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryWidget=t.SlicePrimaryWidget=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(73045),u=n(46239);t.SlicePrimaryWidget=i.union([u.NestableWidget,o.Group]);let a=e=>u.NestableWidget.is(e)||o.Group.is(e);t.isSlicePrimaryWidget=a},8972:function(e,t,n){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=n(87783),i=(0,r.__importStar)(n(87830)),o=n(11697),u=n(37581),a=n(57191),c=n(7816),f=n(78716),l=n(29377);function p(e){return i.exact(i.partial({label:u.StringOrNull,labels:t.SlicesLabels,choices:i.record(o.WidgetKey,i.union([c.LegacySlice,a.CompositeSlice,e]))}))}t.LegacySlicesFieldType="Choice",t.SlicesFieldType="Slices",t.SlicesLabels=i.union([i.record(i.string,i.readonlyArray(i.exact(i.intersection([i.type({name:i.string}),i.partial({display:i.string}),])))),i.null,]),t.slicesConfigReader=p,t.StaticSlicesConfig=p(f.SharedSlice),t.DynamicSlicesConfig=p(l.SharedSliceRef);let d={toStatic(e,t){let n=Object.entries(e.choices||{}).reduce((e,[n,r])=>{if("SharedSlice"!==r.type)return{...e,[n]:r};{let i=t.get(n);return i?{...e,[n]:i}:e}},{});return{...e,choices:n}}};function s(e){return i.exact(i.intersection([i.type({type:i.keyof({[t.SlicesFieldType]:null,[t.LegacySlicesFieldType]:null})}),i.partial({fieldset:u.StringOrNull,config:e}),]))}t.slicesReader=s,t.StaticSlices=s(t.StaticSlicesConfig),t.DynamicSlices=s(t.DynamicSlicesConfig),t.Slices={toStatic:(e,t)=>e.config?{...e,config:d.toStatic(e.config,t)}:e}},37182:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesTypes=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(57191),u=n(78716);t.SlicesTypes=i.keyof({[o.CompositeSliceType]:null,[u.SharedSliceType]:null})},66903:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(57191),t),(0,r.__exportStar)(n(7816),t),(0,r.__exportStar)(n(78716),t),(0,r.__exportStar)(n(29377),t),(0,r.__exportStar)(n(76098),t),(0,r.__exportStar)(n(23084),t),(0,r.__exportStar)(n(8972),t),(0,r.__exportStar)(n(37182),t)},72941:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toRecord=void 0,t.toRecord=function(e,t){return e.reduce((e,n)=>{let r=t(n);return{...e,[r]:n}},{})}},77454:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mapValues=t.isObject=t.withOptionals=t.isNotEmpty=t.zipObjects=void 0;let r=n(87783),i=n(87412),o=(0,r.__importStar)(n(87830));t.zipObjects=function(e,t){let n=[...new Set(Object.keys(e||{}).concat(Object.keys(t||{}))),];return n.reduce((n,r)=>{let i=null==e?void 0:e[r],o=null==t?void 0:t[r];return{...n,[r]:{left:i,right:o}}},{})},t.isNotEmpty=function(e){return Boolean(Object.keys(e).length)},t.withOptionals=function(e,t){return{...e,...t.reduce((e,[t,n])=>n?{...e,[t]:n}:e,{})}};let u=o.record(o.string,o.unknown);t.isObject=function(e){return(0,i.isRight)(u.decode(e))},t.mapValues=function(e,t){return Object.entries(e).reduce((e,[n,r])=>({...e,[n]:t(r,n)}),{})}},68845:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Objects=t.Arrays=t.HexaColorCode=void 0;let r=n(87783);t.HexaColorCode=(0,r.__importStar)(n(62754)),t.Arrays=(0,r.__importStar)(n(72941)),t.Objects=(0,r.__importStar)(n(77454))},42080:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArray=t.EmptyObject=t.Boolean=t.NumberOrNull=t.Number=t.StringOrNull=t.String=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(47320);t.String=(0,a.withCustomError)(u.string,()=>"The value must be a string"),t.StringOrNull=(0,a.withCustomError)(u.union([u.string,u.null]),()=>"The value must be a string or null"),t.Number=(0,a.withCustomError)(u.number,()=>"The value must be a number"),t.NumberOrNull=(0,a.withCustomError)(u.union([u.number,u.null]),()=>"The value must be a number or null"),t.Boolean=(0,a.withCustomError)(u.boolean,()=>"The value must be a boolean"),t.EmptyObject=u.UnknownRecord.pipe(new u.Type("emptyObject",e=>u.UnknownRecord.is(e),(e,t)=>Object.keys(e).length>0?u.failure(e,t,"The object is not empty."):u.success({}),u.identity)),t.EmptyArray=new u.Type("emptyArray",e=>u.UnknownArray.is(e)&&0===e.length,(e,t)=>(0,o.pipe)(u.UnknownArray.decode(e),i.either.chain(n=>n.length>0?u.failure(e,t,"The array is not empty."):u.success([]))),()=>[])},63323:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(37581);t.default=new u.Type("dateFromString",e=>e instanceof Date,(e,t)=>(0,o.pipe)(a.String.validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e.toISOString())},16905:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("dateFromStringOrNumber",e=>e instanceof Date,(e,t)=>(0,o.pipe)(u.union([u.number,u.string]).validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e)},82175:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("dateFromTsMs",e=>e instanceof Date,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e.getTime())},9141:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArrayOrElse=t.EmptyObjectOrElse=t.NullOrElse=t.DefaultOrElse=void 0;let r=n(87783),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(42080),a=e=>t=>new o.Type(`DefaultOrElse<${e.name}, ${t.name}>`,e=>null===e||t.is(e),(n,r)=>(0,i.isRight)(e.validate(n,r))?o.success(null):t.validate(n,r),e=>e?t.encode(e):void 0);t.DefaultOrElse=a;let c=e=>(0,t.DefaultOrElse)(o.null)(e);t.NullOrElse=c;let f=e=>(0,t.DefaultOrElse)(u.EmptyObject)(e);t.EmptyObjectOrElse=f;let l=e=>(0,t.DefaultOrElse)(u.EmptyArray)(e);t.EmptyArrayOrElse=l},79312:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("IntFromNumber",u.Int.is,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(e=>u.Int.is(e)?u.success(e):u.success(Math.round(e)))),u.Int.encode)},57288:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830)),a=/^([0-9]+)px$/;t.default=new u.Type("IntFromPixels",u.Int.is,(e,t)=>(0,o.pipe)(u.string.validate(e,t),(0,i.chain)(n=>{try{let r=n.match(a);if(!r)return u.failure(e,t);let i=parseInt(r[1]);return u.success(i)}catch{return u.failure(e,t)}})),String)},30487:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(47320);t.default=(0,o.withCustomError)((0,o.refineType)(i.string,"nonEmptyString",e=>e.trim().length>0),()=>"The value must be a non-empty string")},32514:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(81878),o=n(42275),u=n(87830),a=(0,r.__importDefault)(n(59941));t.default=new u.Type("nonEmptyStringOrNull",e=>"string"==typeof e||null===e,(e,t)=>(0,o.pipe)(a.default.validate(e,t),(0,i.chain)(e=>"string"==typeof e&&e.length>0?(0,u.success)(e):(0,u.success)(null))),e=>e)},63205:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(47320);t.default=(0,o.nullable)(i.number)},91776:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(42080);t.default=(e,t,n)=>o.Number.pipe(new i.Type("numberInRange",e=>o.Number.is(e),(r,o)=>r>t||r<e?i.failure(r,o,`${n} must be a number between ${e} and ${t}`):i.success(r),i.identity))},70453:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("StringFromInt",u.string.is,(e,t)=>(0,o.pipe)(u.boolean.validate(e,t),(0,i.chain)(e=>u.success(e.toString()))),e=>e)},62161:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("StringFromInt",u.string.is,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(e=>u.success(e.toString()))),e=>e)},59941:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(47320);t.default=(0,o.nullable)(i.string)},38417:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("TrimmedString",u.string.is,(e,t)=>(0,o.pipe)(u.string.validate(e,t),(0,i.chain)(e=>u.success(function(e){let t=0;for(;t<e.length&&e[t]<=" ";)t++;let n=e.length;for(;t<n&&e[n-1]<=" ";)n--;return e.substring(t,n)}(e)))),e=>e)},47320:function(e,t,n){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=n(87783),i=n(9554),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(23284),c=n(47361);t.nullable=function(e){return u.union([e,u.null,u.undefined])},t.refineType=function(e,t,n){return new u.Type(t,e.is,(t,r)=>(0,o.pipe)(e.validate(t,r),i.either.chain(e=>n(e)?u.success(e):u.failure(t,r))),e.encode)},t.filterDouble=function(e){if(""===e)return null;let t=Number(e);return Number.isNaN(t)?null:t},t.formatDateTime=function(e){return e.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(e){return e.toISOString().replace(/T.*/,"")},t.grouped=function(e,t){return e.reduce((e,n,r)=>(r%t==0?e.push([n]):e[Math.floor(r/t)].push(n),e),[])},t.objectToMap=function(e){return new Map(Object.entries(e))},t.isEmpty=function(e){for(let t in e)return!1;return!0},t.addType=function(e,t){return(0,c.mapOutput)(e,e=>({...e,__TYPE__:t}))},t.withCustomError=function(e,t){return(0,a.withValidate)(e,(n,r)=>i.either.mapLeft(e=>e.find(e=>e.message)?e:[{value:n,context:r,message:t(n,r),actual:n},])(e.validate(n,r)))}},37581:function(e,t,n){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=n(87783);(0,r.__exportStar)(n(42080),t);var i=n(63323);Object.defineProperty(t,"DateFromString",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var o=n(16905);Object.defineProperty(t,"DateFromStringOrNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}});var u=n(82175);Object.defineProperty(t,"DateFromTsMs",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}}),(0,r.__exportStar)(n(9141),t),t.Function=(0,r.__importStar)(n(47320));var a=n(79312);Object.defineProperty(t,"IntFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var c=n(57288);Object.defineProperty(t,"IntFromPixels",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var f=n(30487);Object.defineProperty(t,"NonEmptyString",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var l=n(32514);Object.defineProperty(t,"NonEmptyStringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var p=n(63205);Object.defineProperty(t,"NumberOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(p).default}});var d=n(91776);Object.defineProperty(t,"NumberRange",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}});var s=n(70453);Object.defineProperty(t,"StringFromBoolean",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var m=n(62161);Object.defineProperty(t,"StringFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(m).default}});var h=n(59941);Object.defineProperty(t,"StringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(h).default}})},81681:function(e,t,n){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 o.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return u.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(n(42104)),i=d(n(17564)),o=d(n(21105)),u=d(n(28331)),a=d(n(67565)),c=d(n(3341)),f=d(n(88087)),l=d(n(70507)),p=d(n(72333));function d(e){return e&&e.__esModule?e:{default:e}}},86243:function(e,t){function n(e){return(e+64>>>9<<4)+14+1}function r(e,t){let n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,o,u){var a,c;return r((a=r(r(t,e),r(i,u)))<<o|a>>>32-o,n)}function o(e,t,n,r,o,u,a){return i(t&n|~t&r,e,t,o,u,a)}function u(e,t,n,r,o,u,a){return i(t&r|n&~r,e,t,o,u,a)}function a(e,t,n,r,o,u,a){return i(t^n^r,e,t,o,u,a)}function c(e,t,n,r,o,u,a){return i(n^(t|~r),e,t,o,u,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let i=0;i<t.length;++i)e[i]=t.charCodeAt(i)}return function(e){let t=[],n=32*e.length,r="0123456789abcdef";for(let i=0;i<n;i+=8){let o=e[i>>5]>>>i%32&255,u=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(u)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let i=1732584193,f=-271733879,l=-1732584194,p=271733878;for(let d=0;d<e.length;d+=16){let s=i,m=f,h=l,v=p;i=o(i,f,l,p,e[d],7,-680876936),p=o(p,i,f,l,e[d+1],12,-389564586),l=o(l,p,i,f,e[d+2],17,606105819),f=o(f,l,p,i,e[d+3],22,-1044525330),i=o(i,f,l,p,e[d+4],7,-176418897),p=o(p,i,f,l,e[d+5],12,1200080426),l=o(l,p,i,f,e[d+6],17,-1473231341),f=o(f,l,p,i,e[d+7],22,-45705983),i=o(i,f,l,p,e[d+8],7,1770035416),p=o(p,i,f,l,e[d+9],12,-1958414417),l=o(l,p,i,f,e[d+10],17,-42063),f=o(f,l,p,i,e[d+11],22,-1990404162),i=o(i,f,l,p,e[d+12],7,1804603682),p=o(p,i,f,l,e[d+13],12,-40341101),l=o(l,p,i,f,e[d+14],17,-1502002290),f=o(f,l,p,i,e[d+15],22,1236535329),i=u(i,f,l,p,e[d+1],5,-165796510),p=u(p,i,f,l,e[d+6],9,-1069501632),l=u(l,p,i,f,e[d+11],14,643717713),f=u(f,l,p,i,e[d],20,-373897302),i=u(i,f,l,p,e[d+5],5,-701558691),p=u(p,i,f,l,e[d+10],9,38016083),l=u(l,p,i,f,e[d+15],14,-660478335),f=u(f,l,p,i,e[d+4],20,-405537848),i=u(i,f,l,p,e[d+9],5,568446438),p=u(p,i,f,l,e[d+14],9,-1019803690),l=u(l,p,i,f,e[d+3],14,-187363961),f=u(f,l,p,i,e[d+8],20,1163531501),i=u(i,f,l,p,e[d+13],5,-1444681467),p=u(p,i,f,l,e[d+2],9,-51403784),l=u(l,p,i,f,e[d+7],14,1735328473),f=u(f,l,p,i,e[d+12],20,-1926607734),i=a(i,f,l,p,e[d+5],4,-378558),p=a(p,i,f,l,e[d+8],11,-2022574463),l=a(l,p,i,f,e[d+11],16,1839030562),f=a(f,l,p,i,e[d+14],23,-35309556),i=a(i,f,l,p,e[d+1],4,-1530992060),p=a(p,i,f,l,e[d+4],11,1272893353),l=a(l,p,i,f,e[d+7],16,-155497632),f=a(f,l,p,i,e[d+10],23,-1094730640),i=a(i,f,l,p,e[d+13],4,681279174),p=a(p,i,f,l,e[d],11,-358537222),l=a(l,p,i,f,e[d+3],16,-722521979),f=a(f,l,p,i,e[d+6],23,76029189),i=a(i,f,l,p,e[d+9],4,-640364487),p=a(p,i,f,l,e[d+12],11,-421815835),l=a(l,p,i,f,e[d+15],16,530742520),f=a(f,l,p,i,e[d+2],23,-995338651),i=c(i,f,l,p,e[d],6,-198630844),p=c(p,i,f,l,e[d+7],10,1126891415),l=c(l,p,i,f,e[d+14],15,-1416354905),f=c(f,l,p,i,e[d+5],21,-57434055),i=c(i,f,l,p,e[d+12],6,1700485571),p=c(p,i,f,l,e[d+3],10,-1894986606),l=c(l,p,i,f,e[d+10],15,-1051523),f=c(f,l,p,i,e[d+1],21,-2054922799),i=c(i,f,l,p,e[d+8],6,1873313359),p=c(p,i,f,l,e[d+15],10,-30611744),l=c(l,p,i,f,e[d+6],15,-1560198380),f=c(f,l,p,i,e[d+13],21,1309151649),i=c(i,f,l,p,e[d+4],6,-145523070),p=c(p,i,f,l,e[d+11],10,-1120210379),l=c(l,p,i,f,e[d+2],15,718787259),f=c(f,l,p,i,e[d+9],21,-343485551),i=r(i,s),f=r(f,m),l=r(l,h),p=r(p,v)}return[i,f,l,p]}(function(e){if(0===e.length)return[];let t=8*e.length,r=new Uint32Array(n(t));for(let i=0;i<t;i+=8)r[i>>5]|=(255&e[i/8])<<i%32;return r}(e),8*e.length))};t.default=f},49030:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:n}},67565:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},72333:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(88087),r&&r.__esModule?r:{default:r}),o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");let t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};t.default=o},88403:function(e,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(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&!(n="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 n(r)};let n,r=new Uint8Array(16)},39852:function(e,t){function n(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function r(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){let t=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){let o=unescape(encodeURIComponent(e));e=[];for(let u=0;u<o.length;++u)e.push(o.charCodeAt(u))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let a=e.length/4+2,c=Math.ceil(a/16),f=Array(c);for(let l=0;l<c;++l){let p=new Uint32Array(16);for(let d=0;d<16;++d)p[d]=e[64*l+4*d]<<24|e[64*l+4*d+1]<<16|e[64*l+4*d+2]<<8|e[64*l+4*d+3];f[l]=p}f[c-1][14]=(e.length-1)*8/4294967296,f[c-1][14]=Math.floor(f[c-1][14]),f[c-1][15]=(e.length-1)*8&4294967295;for(let s=0;s<c;++s){let m=new Uint32Array(80);for(let h=0;h<16;++h)m[h]=f[s][h];for(let v=16;v<80;++v)m[v]=r(m[v-3]^m[v-8]^m[v-14]^m[v-16],1);let y=i[0],g=i[1],_=i[2],b=i[3],S=i[4];for(let T=0;T<80;++T){let I=Math.floor(T/20),R=r(y,5)+n(I,g,_,b)+S+t[I]+m[T]>>>0;S=b,b=_,_=r(g,30)>>>0,g=y,y=R}i[0]=i[0]+y>>>0,i[1]=i[1]+g>>>0,i[2]=i[2]+_>>>0,i[3]=i[3]+b>>>0,i[4]=i[4]+S>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]};t.default=i},70507:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var r,i=(r=n(88087),r&&r.__esModule?r:{default:r});let o=[];for(let u=0;u<256;++u)o.push((u+256).toString(16).slice(1));function a(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}var c=function(e,t=0){let n=a(e,t);if(!(0,i.default)(n))throw TypeError("Stringified UUID is invalid");return n};t.default=c},42104:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(93827),r&&r.__esModule?r:{default:r}),o=n(70507);let u,a,c=0,f=0;var l=function(e,t,n){let r=t&&n||0,l=t||Array(16),p=(e=e||{}).node||u,d=void 0!==e.clockseq?e.clockseq:a;if(null==p||null==d){let s=e.random||(e.rng||i.default)();null==p&&(p=u=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==d&&(d=a=(s[6]<<8|s[7])&16383)}let m=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:f+1,v=m-c+(h-f)/1e4;if(v<0&&void 0===e.clockseq&&(d=d+1&16383),(v<0||m>c)&&void 0===e.nsecs&&(h=0),h>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");c=m,f=h,a=d,m+=122192928e5;let y=((268435455&m)*1e4+h)%4294967296;l[r++]=y>>>24&255,l[r++]=y>>>16&255,l[r++]=y>>>8&255,l[r++]=255&y;let g=m/4294967296*1e4&268435455;l[r++]=g>>>8&255,l[r++]=255&g,l[r++]=g>>>24&15|16,l[r++]=g>>>16&255,l[r++]=d>>>8|128,l[r++]=255&d;for(let _=0;_<6;++_)l[r+_]=p[_];return t||(0,o.unsafeStringify)(l)};t.default=l},17564:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(37967)),i=o(n(86243));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v3",48,i.default);t.default=u},37967:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,u,a){var c;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=(0,o.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+e.length);if(f.set(r),f.set(e,r.length),(f=n(f))[6]=15&f[6]|t,f[8]=63&f[8]|128,u){a=a||0;for(let l=0;l<16;++l)u[a+l]=f[l];return u}return(0,i.unsafeStringify)(f)}try{r.name=e}catch(c){}return r.DNS=u,r.URL=a,r};var r,i=n(70507),o=(r=n(72333),r&&r.__esModule?r:{default:r});let u="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=u;let a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a},21105:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(49030)),i=u(n(93827)),o=n(70507);function u(e){return e&&e.__esModule?e:{default:e}}var a=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();e=e||{};let u=e.random||(e.rng||i.default)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){n=n||0;for(let a=0;a<16;++a)t[n+a]=u[a];return t}return(0,o.unsafeStringify)(u)};t.default=a},28331:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(37967)),i=o(n(39852));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v5",80,i.default);t.default=u},88087:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(88403),r&&r.__esModule?r:{default:r}),o=function(e){return"string"==typeof e&&i.default.test(e)};t.default=o},3341:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(88087),r&&r.__esModule?r:{default:r}),o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};t.default=o},1611:function(e,t,n){n.d(t,{WY:function(){return i},xb:function(){return a}});var r=n(86579);async function i(e,t){let{okType:n,signal:i,headers:a,body:c,timeout:f=2*6e4,...l}=t,p=new Headers(a);!p.has("Content-Type")&&c&&p.set("Content-Type","application/json"),"multipart/form-data"===p.get("Content-Type")&&p.delete("Content-Type");let d=u();d&&p.set("Authorization",`Bearer ${d}`);let s="application/json"===p.get("Content-Type")?JSON.stringify(c):c,m=!1;try{let h=t.method&&"GET"!==t.method?void 0:new AbortController,v=function(e){let t=new AbortController;function n(){for(let r of(t.abort(),e))r.removeEventListener("abort",n)}for(let r of e){if(r.aborted){n();break}r.addEventListener("abort",n)}return t.signal}([null==h?void 0:h.signal,i].filter(r.$));h&&setTimeout(()=>{m=!0,h.abort()},f);let y=await fetch(e,{...l,body:s,headers:p,signal:v}),{status:g}=y,_=y.clone(),b=await y.json().catch(e=>_.text());if(y.ok){let S=n.safeParse(b);if(!S.success)throw new o(e,{type:"validation",status:g,cause:S.error});return S.data}throw new o(e,{type:"http",status:g,body:b})}catch(w){var T,I,R;throw(T=w,T instanceof o)?w:(I=w,I instanceof DOMException&&"AbortError"===I.name)?new o(e,{type:m?"timeout":"abort"}):new o(e,{type:"unknown",cause:(R=w,R instanceof Error?{name:R.name,message:R.message,stack:R.stack}:R)})}}class o extends Error{constructor(e,t){super(JSON.stringify({url:e,...t},null,2)),this.detail=t,this.name="RequestError"}}let u=()=>"";function a(e){return"token"===e?"omit":"include"}},47124:function(e,t,n){function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function i(e,t){return e.length<=t?e:`${null==e?void 0:e.slice(0,t).trim()}...`}function o(e){if(0===e)return"0 Bytes";let t=Math.floor(Math.log(e)/Math.log(1024)),n=["Bytes","KB","MB","GB","TB"][t];return n?`${(e/Math.pow(1024,t)).toFixed(2)} ${n}`:`${e} Bytes`}n.d(t,{kC:function(){return r},td:function(){return o},tx:function(){return i}})},77252:function(e,t,n){n.d(t,{S$:function(){return o},aO:function(){return u},ju:function(){return i}});var r=n(47124);function i(e){try{return new URL(e)}catch{return}}function o(e){try{return e.host.split(".").slice(0,-1).filter(e=>"www"!==e).map(r.kC)[0]??""}catch{return""}}function u(e){let{params:t}=e;return Object.entries(t).reduce((e,[t,n])=>void 0!==n?{...e,[t]:n}:e,{})}},62283:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.IncompatibleMockConfigError=void 0,t.IncompatibleMockConfigError=class extends Error{constructor(e,t){super(`The ${e} 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=e,this.fieldType=t}}},24662:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentMock=void 0;let r=n(23535),i=n(73605),o=n(32361);t.DocumentMock={generate(e,t={},n){var u,a,c;return(0,r.flattenWidgets)(e).map(([e,r])=>{let u=(null==n?void 0:n.value)&&n.value[e],a=function(e,t,n){switch(e.type){case"Choice":case"Slices":return o.SliceZoneMock.generate(e,t,n);case"Group":return i.GroupMock.generate(e,n);case"UID":return i.UIDMock.generate(e,n);default:return i.NestableWidgetMock.generate(e,n)}}(r,t,u);return[e,a]}).reduce((e,[t,n])=>({...e,[t]:n}),{})}}},73605:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948);(0,r.__exportStar)(n(24662),t),(0,r.__exportStar)(n(93103),t)},15801:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.randomInt=t.slug=void 0;var i=n(91249);Object.defineProperty(t,"slug",{enumerable:!0,get:function(){return r(i).default}}),t.randomInt=function(e=0,t=100){return Math.floor(Math.random()*(t-e+1)+e)}},91249:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948),i=(0,r.__importDefault)(n(93953)),o=n(15801);t.default=function(e){return function t(){let n=function(e){let t=e[(0,o.randomInt)(0,e.length-1)];if(!t)throw Error("Error while generating a slug.");return t}(i.default);return e&&(e.exactly&&n.length!=e.exactly||e.min&&n.length<e.min||e.max&&n.length>e.max)?t():n}()}},44609:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GroupMock=t.randomGroupBlock=void 0;let r=n(33832),i=n(23535),o=n(62283),u=n(93103);function a(e,n){return e.map(([e,r])=>{let a=null==n?void 0:n[e];if(r.type===i.GroupFieldType){if(a&&a.type!==i.GroupFieldType)throw new o.IncompatibleMockConfigError(a.type,r.type);return[e,t.GroupMock.generate(r,a)]}if(a&&a.type!==r.type)throw new o.IncompatibleMockConfigError(a.type,r.type);return[e,u.NestableWidgetMock.generate(r,a)]})}t.randomGroupBlock=a,t.GroupMock={generate(e,t){let n=(null==t?void 0:t.value)||function(e,t=1,n={}){if(!e.config||!e.config.fields)return[];let r=Object.entries(e.config.fields);return Array(t).fill(null).map(()=>a(r,n))}(e,null==t?void 0:t.nbBlocks,null==t?void 0:t.fields);return{__TYPE__:r.GroupContentType,value:n.map(e=>({__TYPE__:r.GroupItemContentType,value:e}))}},patch(e,n,o){if(e.op===i.DiffOperation.Removed)return;let a=(null==n?void 0:n.value)||Array((null==o?void 0:o.nbBlocks)||1).fill({__TYPE__:r.GroupItemContentType,value:[]}),c=a.map(n=>{var a;let c=Object.fromEntries(n.value);return Object.entries(null!==(a=e.value.config.fields)&&void 0!==a?a:{}).forEach(([e,n])=>{var a;let f=c[e],l=null===(a=null==o?void 0:o.fields)||void 0===a?void 0:a[e],p;(0,r.isGroupContent)(f)&&(!l||(null==l?void 0:l.type)===i.GroupFieldType)?p=t.GroupMock.patch(n,f,l):(0,r.isGroupContent)(f)||(null==l?void 0:l.type)===i.GroupFieldType||(p=u.NestableWidgetMock.patch(n,f,l)),p?c[e]=p:delete c[e]}),{__TYPE__:r.GroupItemContentType,value:Object.entries(c)}});return{__TYPE__:r.GroupContentType,value:c}}}},73042:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceMock=void 0;let r=n(74982),i=n(74982),o=n(23535),u=n(74702),a=n(93103);function c(e,t){return function(e,t){let n=(null==t?void 0:t.nbItemsBlocks)||1;return{__TYPE__:i.SharedSliceContentType,variation:e.id,primary:e.primary?(0,a.randomGroupBlock)(Object.entries(e.primary),null==t?void 0:t.primaryFields).reduce((e,[t,n])=>({...e,[t]:n}),{}):{},items:e.items?Array(n).fill(null).map(()=>{var n,r;return n=Object.entries(e.items||{}),r=null==t?void 0:t.itemFields,n.map(([e,t])=>{let n=r&&r[e];return[e,a.NestableWidgetMock.generate(t,n)]})}).map(e=>({__TYPE__:r.GroupItemContentType,value:e})):[]}}(e,t)}function f(e,t,n){let i=Object.entries(e).reduce((e,[i,c])=>{var f;let l=null===(f=t.find(([e])=>e===i))||void 0===f?void 0:f[1],p=null==n?void 0:n[i],d;return(0,r.isGroupContent)(l)||(null==p?void 0:p.type)===o.GroupFieldType||c.op===u.DiffOperation.Removed||c.value.type===o.GroupFieldType?(!l||(0,r.isGroupContent)(l))&&(!p||p.type===o.GroupFieldType)&&(d=a.GroupMock.patch(c,l,p)):d=a.NestableWidgetMock.patch(c,l,p),{...e,...d?{[i]:d}:{}}},{}),c=t.reduce((t,[n,r])=>{let o=e[n]?i[n]:r;return o?{...t,[n]:o}:t},{});return{...c,...i}}t.SharedSliceMock={generate(e,t){var n;if(null==t?void 0:t.value)return{__TYPE__:i.SharedSliceContentType,...t.value};let r=null!==(n=e.variations.find(e=>e.id===(null==t?void 0:t.variation)))&&void 0!==n?n:e.variations[0];if(!r)throw Error(`Something happened during Shared slice generation. No variations were configured for slice ${e.id}.`);let o=(null==t?void 0:t.variations)&&t.variations[r.id];return c(r,o)},patch(e,t,n){var i,o;switch(e.op){case u.DiffOperation.Removed:if(!(null==n?void 0:n.variation)||n.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 ${n.variation}`)};case u.DiffOperation.Added:if(t)return{ok:!1,error:Error(`Content already exists for slice ${e.value.id}.`)};if(!(null==n?void 0:n.variation)||e.value.variations.find(e=>e.id===n.variation))return{ok:!0,result:this.generate(e.value,n)};return{ok:!1,error:Error(`Configured variation ${n.variation} not found in slice ${e.value.id} definition.`)};case u.DiffOperation.Updated:{let a=null!=t&&t.variation?(null==n?void 0:n.variation)&&t.variation!==(null==n?void 0:n.variation)?{ok:!1,error:Error(`Variation ${t.variation} from the content doesn't match the config ${null==n?void 0:n.variation}.`)}:{ok:!0,result:t.variation}:(null==n?void 0:n.variation)?{ok:!0,result:n.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=e.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(e,t,n,i){switch(t.op){case u.DiffOperation.Removed:return{ok:!0,result:void 0};case u.DiffOperation.Added:if(!n)return{ok:!0,result:c(t.value,i)};return{ok:!1,error:Error(`Content already exists for variation ${n.variation}.`)};case u.DiffOperation.Updated:{let o=t.value.primary&&(null==n?void 0:n.primary)?f(t.value.primary,Object.entries(null==n?void 0:n.primary),null==i?void 0:i.primaryFields):(null==n?void 0:n.primary)||{},a=(()=>{if(!t.value.items||null==n||!n.items)return(null==n?void 0:n.items)||[];{let e=t.value.items;return n.items.map(t=>({__TYPE__:r.GroupItemContentType,value:Object.entries(f(e,t.value,null==i?void 0:i.itemFields))}))}})();return{ok:!0,result:{__TYPE__:"SharedSliceContent",variation:e,primary:o,items:a}}}}}(l,p,t,p.op!==u.DiffOperation.Removed?null===(o=null==n?void 0:n.variations)||void 0===o?void 0:o[l]:void 0)}}}}},32361:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceZoneMock=void 0;let r=n(74982),i=n(60130),o=n(93103),u=n(92947);t.SliceZoneMock={generate(e,t={},n){var a;if(!(null===(a=e.config)||void 0===a?void 0:a.choices))return{__TYPE__:r.SlicesContentType,value:[]};let c=Object.entries(e.config.choices).reduce((e,[r,a])=>{let c=(null==n?void 0:n.value)&&n.value[r],f;switch(a.type){case"SharedSlice":{let l=t[r];if(!l){console.error(`You must provide the definition of the Shared Slice ${r} to get mocks.`);break}f=o.SharedSliceMock.generate(l,c);break}case"Slice":break;case"Group":f=o.GroupMock.generate(a);break;default:f=u.NestableWidgetMock.generate(a)}return f?e.concat({key:`${r}$${(0,i.v4)()}`,name:r,maybeLabel:void 0,widget:f}):e},[]);return{__TYPE__:r.SlicesContentType,value:c}}}},32033:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDMock=void 0;let r=n(74982),i=n(15801);t.UIDMock={generate(e,t){let n=(null==t?void 0:t.value)||(0,i.slug)({min:3,max:10});return{__TYPE__:r.UIDContentType,value:n}}}},93103:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948);(0,r.__exportStar)(n(44609),t),(0,r.__exportStar)(n(92947),t),(0,r.__exportStar)(n(73042),t),(0,r.__exportStar)(n(32033),t)},42386:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanMock=void 0;let r=n(74982),i=n(74702);t.BooleanMock={generate(e,t){let n="boolean"==typeof(null==t?void 0:t.value)?t.value:.5>Math.random();return{__TYPE__:r.BooleanContentType,value:n}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Boolean"===e.diff.value.type){let n=this.patch(e.diff,e.content&&e.content.__TYPE__!==r.BooleanContentType?void 0:e.content,(null===(t=e.config)||void 0===t?void 0:t.type)==="Boolean"?e.config:void 0);return{result:n}}}}},98017:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorMock=void 0;let r=n(74982),i=n(74982),o=n(74702);t.ColorMock={generate(e,t){let n=(null==t?void 0:t.value)||function(){let e="#";for(let t=0;t<6;t++)e+="0123456789abcdef"[Math.floor(16*Math.random())];return e}();return{__TYPE__:i.FieldContentType,value:n,type:"Color"}},applyPatch(e){var t;if(e.diff.op===o.DiffOperation.Removed)return{result:void 0};if("Color"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isColorContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Color"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(e.value,n)}}}},21276:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DateMock=void 0;let r=n(74982),i=n(74702);function o(e){let t=e.toISOString().split("T")[0];if(!t)throw Error("Something happened during Date generation.");return t}function u(e=new Date(2012,0,1),t=new Date){let n=new Date(e.getTime()+Math.random()*(t.getTime()-e.getTime()));return o(n)}t.DateMock={generate(e,t){let n=(null==t?void 0:t.value)?o(t.value):(null==t?void 0:t.start)&&(null==t?void 0:t.end)?u(t.start,t.end):u(new Date(2012,0,1),new Date);return{__TYPE__:r.FieldContentType,type:"Date",value:n}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Date"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isDateContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Date"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},60300:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedMock=void 0;let r=n(78948),i=n(74982),o=n(74702),u=(0,r.__importDefault)(n(19108));t.EmbedMock={generate:(e,t)=>(function(e){var t;let n=e||(null===(t=u.default[Math.floor(Math.random()*u.default.length)])||void 0===t?void 0:t.oembed);if(!n)throw Error("Something happened during Embed generation.");return{...n,all:n,__TYPE__:i.EmbedContentType}})(null==t?void 0:t.value),applyPatch(e){var t;if(e.diff.op===o.DiffOperation.Removed)return{result:void 0};if("Embed"===e.diff.value.type){let n=this.patch(e.diff,(0,i.isEmbedContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Embed"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(e.value,n)}}}},95441:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointMock=void 0;let r=n(78948),i=n(74982),o=n(74702),u=(0,r.__importDefault)(n(88416));t.GeoPointMock={generate(e,t){let n=(null==t?void 0:t.value)||function(){let e=u.default[Math.floor(Math.random()*u.default.length)];if(!e)throw Error("Something happened during GeoPoint generation.");return{latitude:e.points.latitude,longitude:e.points.longitude}}();return{__TYPE__:i.GeoPointContentType,position:{lat:n.latitude,lng:n.longitude}}},applyPatch(e){var t;if(e.diff.op===o.DiffOperation.Removed)return{result:void 0};if("GeoPoint"===e.diff.value.type){let n=this.patch(e.diff,(0,i.isGeoPointContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="GeoPoint"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(e.value,n)}}}},66947:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageMock=t.random=void 0;let r=n(78948),i=n(74982),o=n(74702),u=(0,r.__importDefault)(n(15542)),a=n(15801),c=u.default,f=(e,t)=>{let[n,r]=(()=>{let{width:n,height:r}=null!=t?t:{};return n&&r?[n,r]:n?[n,Math.round(e.height*(n/e.width))]:r?[Math.round(e.width*(r/e.height)),r]:[e.width,e.height]})(),i=Math.max(n/e.width,r/e.height),o=Math.round((e.width-n/i)/2),u=Math.round((e.height-r/i)/2);return{width:n,height:r,rect:{x:o,y:u,width:Math.round(n/i),height:Math.round(r/i)}}},l=(e,t,n)=>{let r=new URL(e),{x:i,y:o,width:u,height:a}=t;return r.searchParams.set("rect",[i,o,u,a].join(",")),r.searchParams.set("w",n.width.toString()),r.searchParams.set("h",n.height.toString()),r.toString()};function p(e){var t,n;let[r,i,o]=(()=>{let t=e.images[(0,a.randomInt)(0,e.images.length-1)],n=null==t?void 0:t.url.split("?")[0];if(!n)throw Error("Something happened during Image generation.");return[n,t.width,t.height]})(),{width:u,height:c,rect:p}=f({width:i,height:o},e.constraints),d=Boolean((null===(t=e.constraints)||void 0===t?void 0:t.width)||(null===(n=e.constraints)||void 0===n?void 0:n.height)),s=d?l(r,p,{width:u,height:c}):r;return{origin:{id:e.id,url:r,width:i,height:o},url:s,width:u,height:c,edit:{zoom:1,crop:{x:p.x,y:p.y},background:"transparent"}}}function d(e,t=c){var n,r,o;let u=p({id:"main",constraints:null===(n=e.config)||void 0===n?void 0:n.constraint,images:t}),a=null===(o=null===(r=e.config)||void 0===r?void 0:r.thumbnails)||void 0===o?void 0:o.map(e=>[e.name,p({id:e.name,constraints:{width:e.width,height:e.height},images:t}),]),f=a?{thumbnails:a.reduce((e,[t,n])=>({...e,[t]:n}),{})}:{};return{__TYPE__:i.ImageContentType,...u,...f}}t.random=d,t.ImageMock={generate:(e,t)=>d(e,(null==t?void 0:t.value)&&[t.value]),applyPatch(e){if(e.diff.op===o.DiffOperation.Removed)return{result:void 0};if("Image"===e.diff.value.type){let t=this.patch(e.diff,(0,i.isImageContent)(e.content)?e.content:void 0);return{result:t}}},patch(e,t){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(e.value)}}}},54595:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldMock=void 0;let r=n(74982),i=n(74702);t.IntegrationFieldMock={generate(e,t){let n=(null==t?void 0:t.value)||"integration-field-product-id";return{__TYPE__:r.IntegrationFieldContentType,value:n}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("IntegrationFields"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isIntegrationFieldContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="IntegrationFields"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},50107:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentLinkMock=void 0;let r=n(74982);t.DocumentLinkMock={generate:e=>r.DocumentLinkContent.encode({__TYPE__:r.DocumentLinkType,id:"mock_document_id"})}},79241:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalLinkMock=void 0;let r=n(78948),i=n(74982),o=(0,r.__importDefault)(n(83777));t.ExternalLinkMock={generate(e,t){let n=(null==t?void 0:t.value)&&{__TYPE__:i.ExternalLinkType,url:t.value}||function(){let e=o.default,t=Math.floor(Math.random()*e.length),n=e[t];if(!n)throw Error("Something happened during Web link generation.");return{__TYPE__:i.ExternalLinkType,url:n}}();return i.ExternalLinkContent.encode(n)}}},25891:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.MediaLinkMock=void 0;let r=n(74982);t.MediaLinkMock={generate(e,t){let n=(null==t?void 0:t.value)||{__TYPE__:r.FileLinkType,id:"mock_Media_link",kind:"image/jpeg",name:"mock_name",url:"https://source.unsplash.com/daily",size:"0"};return r.FileLinkContent.encode(n)}}},33610:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkMock=void 0;let r=n(78948),i=n(74982),o=n(74702),u=n(50107),a=n(79241),c=n(25891);t.LinkMock={generate(e,t){let n=(()=>{var n;switch(null===(n=e.config)||void 0===n?void 0:n.select){case"document":return u.DocumentLinkMock.generate(e);case"web":default:return a.ExternalLinkMock.generate(e,(null==t?void 0:t.value)&&t.value);case"media":return c.MediaLinkMock.generate(e,(null==t?void 0:t.value)&&t.value)}})();return{__TYPE__:i.LinkContentType,value:n}},applyPatch(e){var t;if(e.diff.op===o.DiffOperation.Removed)return{result:void 0};if("Link"===e.diff.value.type){let n=this.patch(e.diff,(0,i.isLinkContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Link"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Added:case o.DiffOperation.Updated:return this.generate(e.value,n)}}},(0,r.__exportStar)(n(50107),t),(0,r.__exportStar)(n(79241),t),(0,r.__exportStar)(n(25891),t)},628:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberMock=void 0;let r=n(74982),i=n(74702);t.NumberMock={generate(e,t){var n,i,o;let u=(null===(n=e.config)||void 0===n?void 0:n.min)?(null==t?void 0:t.min)&&t.min>e.config.min?t.min:e.config.min:0,a=(null===(i=e.config)||void 0===i?void 0:i.max)?(null==t?void 0:t.max)&&t.max<e.config.max?t.max:e.config.max:100,c=(null===(o=e.config)||void 0===o?void 0:o.step)?(null==t?void 0:t.step)&&t.step>e.config.step?t.step:e.config.step:1,f=((null==t?void 0:t.value)?t.value:function(e,t,n){let r=Math.floor(Math.random()*(t-e))+e;return r%n==0?r:Math.min(r+(n-r%n),t)}(u,a,c)).toString();return{__TYPE__:r.FieldContentType,value:f,type:"Number"}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Number"===e.diff.value.type){let n=this.patch(e.diff,e.content&&e.content.__TYPE__!==r.FieldContentType?void 0:e.content,(null===(t=e.config)||void 0===t?void 0:t.type)==="Number"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},38206:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeMock=void 0;let r=n(74982),i=n(74702);t.RangeMock={generate(e,t){var n,i,o;let u=(null===(n=e.config)||void 0===n?void 0:n.min)?(null==t?void 0:t.min)&&t.min>e.config.min?t.min:e.config.min:0,a=(null===(i=e.config)||void 0===i?void 0:i.max)?(null==t?void 0:t.max)&&t.max<e.config.max?t.max:e.config.max:100,c=(null===(o=e.config)||void 0===o?void 0:o.step)?(null==t?void 0:t.step)&&t.step>e.config.step?t.step:e.config.step:1,f=((null==t?void 0:t.value)?t.value:function(e,t,n){let r=Math.floor(Math.random()*(t-e))+e;return r%n==0?r:Math.min(r+(n-r%n),t)}(u,a,c)).toString();return{__TYPE__:r.FieldContentType,value:f,type:"Range"}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Range"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isRangeContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Range"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},13319:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextMockConfig=t.Patterns=t.LoremDefaultConfig=void 0;let r=n(23535),i=n(72788),o=n(15801);t.LoremDefaultConfig={sentencesPerParagraph:{min:1,max:3},wordsPerSentence:{min:4,max:16}},t.Patterns={PARAGRAPH:{title:"Simple Paragraph",test:e=>e.some(e=>e===r.RichTextNodeType.paragraph),value:()=>[r.RichTextNodeType.paragraph],description:"A single paragraph with a variant number of words."},HEADING:{title:"Section Title",test:e=>e.some(t.RichTextMockConfig.isHeading),value:e=>[e.find(t.RichTextMockConfig.isHeading)||r.RichTextNodeType.heading1,],description:"A single heading (h1 to h6) with a variant number of words."},STORY:{title:"Story",test:e=>e.some(t.RichTextMockConfig.isHeading)&&e.some(e=>e===r.RichTextNodeType.paragraph),value:e=>[e.find(t.RichTextMockConfig.isHeading)||r.RichTextNodeType.heading1,...t.RichTextMockConfig.optionalType(e,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:e=>0===e.indexOf("heading"),isText:e=>e===r.RichTextNodeType.paragraph||t.RichTextMockConfig.isHeading(e),isImage:e=>e===r.RichTextNodeType.image,optionalType:(e,t)=>e.find(e=>e===t)&&Math.random()>.5?[t]:[],findMatchingPattern(e){let n=Object.entries(t.Patterns).find(([,t])=>t.test(e));return n&&n.length?n[1]:t.RichTextMockConfig.INITIAL_CONFIG.pattern},generateText(e,n){let r=new i.LoremIpsum(n);if(t.RichTextMockConfig.isHeading(e)){let u=(0,o.slug)({min:5,max:10});return[u[0]&&u[0].toUpperCase(),...u.slice(1)].join("")}return r.generateParagraphs(1)}}},35650:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextMock=void 0;let r=n(78948),i=n(74982),o=n(23535),u=n(74702),a=n(66947),c=n(13319);t.RichTextMock={generate(e,t){let n=(null==t?void 0:t.value)||function(e,t){var n,r;let i=((null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.multi)||(null===(r=null==e?void 0:e.config)||void 0===r?void 0:r.single)||`${o.RichTextNodeType.paragraph}`).split(",").map(e=>e),u=(null==t?void 0:t.pattern)&&c.Patterns[t.pattern]||c.RichTextMockConfig.findMatchingPattern(i),f=u.value(i),l=Array((null==t?void 0:t.nbBlocks)||c.RichTextMockConfig.INITIAL_CONFIG.blocks).fill(null).map(()=>f.map(e=>{if(c.RichTextMockConfig.isText(e))return{type:e,content:{text:c.RichTextMockConfig.generateText(e,c.LoremDefaultConfig)}};let t=(0,a.random)({type:"Image"});return{type:o.RichTextNodeType.image,data:t}}));return l.flat()}(e,t);return{__TYPE__:i.RichTextContentType,value:n}},applyPatch(e){var t;if(e.diff.op===u.DiffOperation.Removed)return{result:void 0};if("StructuredText"===e.diff.value.type){let n=this.patch(e.diff,(0,i.isRichTextContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="StructuredText"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(e.value,n)}}},(0,r.__exportStar)(n(13319),t)},20999:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectMock=void 0;let r=n(74982),i=n(74702),o="mock_option";t.SelectMock={generate(e,t){let n=(null==t?void 0:t.value)||function(e){if(!e.config)return o;if(e.config.default_value&&.5>Math.random())return e.config.default_value;if(!e.config.options)return o;let t=Math.floor(Math.random()*e.config.options.length);return e.config.options[t]||o}(e);return{__TYPE__:r.FieldContentType,value:n,type:"Select"}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Select"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isSelectContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Select"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},14259:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorMock=void 0;let r=n(74982),i=n(74702);t.SeparatorMock={generate:()=>({__TYPE__:r.SeparatorContentType}),applyPatch(e){if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Separator"===e.diff.value.type){let t=this.patch(e.diff,(0,r.isSeparatorContent)(e.content)?e.content:void 0);return{result:t}}},patch(e,t){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value)}}}},44395:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextMock=void 0;let r=n(74982),i=n(74702),o=n(15801);t.TextMock={generate(e,t){var n,i;let u=(null==t?void 0:t.value)||(n=null==t?void 0:t.minChar,i=null==t?void 0:t.maxChar,(0,o.slug)({...n?{min:n}:{},...i?{max:i}:{}}));return{__TYPE__:r.FieldContentType,value:u,type:"Text"}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Text"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isTextContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Text"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},4424:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampMock=void 0;let r=n(74982),i=n(74702);function o(e){return e.toISOString().slice(0,19)+"Z"}function u(e=new Date(2012,0,1),t=new Date){let n=new Date(e.getTime()+Math.random()*(t.getTime()-e.getTime()));return o(n)}t.TimestampMock={generate(e,t){let n=(null==t?void 0:t.value)?o(t.value):(null==t?void 0:t.start)&&(null==t?void 0:t.end)?u(t.start,t.end):u(new Date(2012,0,1),new Date);return{__TYPE__:r.FieldContentType,type:"Timestamp",value:n}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Timestamp"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isTimestampContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Timestamp"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},92947:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidgetMock=void 0;let r=n(78948),i=n(74702),o=n(42386),u=n(98017),a=n(21276),c=n(60300),f=n(95441),l=n(66947),p=n(54595),d=n(33610),s=n(628),m=n(38206),h=n(35650),v=n(20999),y=n(14259),g=n(44395),_=n(4424);(0,r.__exportStar)(n(42386),t),(0,r.__exportStar)(n(98017),t),(0,r.__exportStar)(n(21276),t),(0,r.__exportStar)(n(60300),t),(0,r.__exportStar)(n(95441),t),(0,r.__exportStar)(n(66947),t),(0,r.__exportStar)(n(54595),t),(0,r.__exportStar)(n(33610),t),(0,r.__exportStar)(n(628),t),(0,r.__exportStar)(n(38206),t),(0,r.__exportStar)(n(35650),t),(0,r.__exportStar)(n(20999),t),(0,r.__exportStar)(n(14259),t),(0,r.__exportStar)(n(44395),t),(0,r.__exportStar)(n(4424),t),t.NestableWidgetMock={generate(e,t){switch(e.type){case"Boolean":return o.BooleanMock.generate(e,(null==t?void 0:t.type)==="Boolean"?t:void 0);case"Color":return u.ColorMock.generate(e,(null==t?void 0:t.type)==="Color"?t:void 0);case"Link":return d.LinkMock.generate(e,(null==t?void 0:t.type)==="Link"?t:void 0);case"Date":return a.DateMock.generate(e,(null==t?void 0:t.type)==="Date"?t:void 0);case"Embed":return c.EmbedMock.generate(e,(null==t?void 0:t.type)==="Embed"?t:void 0);case"GeoPoint":return f.GeoPointMock.generate(e,(null==t?void 0:t.type)==="GeoPoint"?t:void 0);case"Image":return l.ImageMock.generate(e);case"IntegrationFields":return p.IntegrationFieldMock.generate(e,(null==t?void 0:t.type)==="IntegrationFields"?t:void 0);case"Number":return s.NumberMock.generate(e,(null==t?void 0:t.type)==="Number"?t:void 0);case"Range":return m.RangeMock.generate(e,(null==t?void 0:t.type)==="Range"?t:void 0);case"StructuredText":return h.RichTextMock.generate(e,(null==t?void 0:t.type)==="StructuredText"?t:void 0);case"Select":return v.SelectMock.generate(e,(null==t?void 0:t.type)==="Select"?t:void 0);case"Text":return g.TextMock.generate(e,(null==t?void 0:t.type)==="Text"?t:void 0);case"Timestamp":return _.TimestampMock.generate(e,(null==t?void 0:t.type)==="Timestamp"?t:void 0);case"Separator":return y.SeparatorMock.generate(e)}},patch(e,t,n){if(e.op===i.DiffOperation.Removed)return;let r={diff:e,content:t,config:n},b=u.ColorMock.applyPatch(r)||a.DateMock.applyPatch(r)||_.TimestampMock.applyPatch(r)||v.SelectMock.applyPatch(r)||m.RangeMock.applyPatch(r)||g.TextMock.applyPatch(r)||s.NumberMock.applyPatch(r)||o.BooleanMock.applyPatch(r)||h.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);return null==b?void 0:b.result}}},25242:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.generateSliceMock=t.generateDocumentMock=void 0;let r=n(78948),i=n(73605);t.generateDocumentMock=function(e,t,n){let r=i.DocumentMock.generate(e,t,n);return n=>n?n(e,t,r):r},t.generateSliceMock=function(e,t){let n=i.SharedSliceMock.generate(e,t);return t=>t?t(e,n):n},(0,r.__exportStar)(n(62283),t),(0,r.__exportStar)(n(73605),t),(0,r.__exportStar)(n(86449),t)},54775:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(73985),i={urlRewriter:{optimizeImageUrl:e=>e,rewriteImageUrl:e=>e.url||"/mockURL",rewriteFileUrl:e=>e,rewriteS3Bucket:e=>e,enforceCDN:e=>e},emptyStringInsteadOfNull:!1,Extension:{DocEncoder:{encodeDocId:r.Extensions.encodeDocId},encoders:r.Extensions.IDEncoders},LinkResolver:{buildUrl:e=>"/"}};t.default=i},86449:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.renderSliceMock=t.renderDocumentMock=void 0;let r=n(78948),i=n(88985),o=n(23535),u=n(60130),a=(0,r.__importDefault)(n(54775));t.renderDocumentMock=function(e,t,n){let r=Object.entries(t).filter(e=>Boolean(e[1])),u=Object.entries(n).filter(e=>Boolean(e[1])),c=(0,o.toStatic)(e,new Map(r)),f={customTypeId:e.id,fields:Object.fromEntries((0,o.flattenSections)(c))};return(0,i.DocumentRenderer)(a.default).renderMocks(f,u)},t.renderSliceMock=function(e,t){return{...(0,i.SharedSliceRenderer)(a.default).renderMocks(e,t),id:`${e.id}$${(0,u.v4)()}`,slice_type:e.id}}},32387:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ContentPath=void 0,t.ContentPath={serialize:e=>e.map(e=>e.key).join("::"),current:e=>e[e.length-1],append:(e,t)=>e+"::"+t,make:e=>e.reduce((e,{key:t,type:n})=>t?e.concat({key:t,type:n}):e,[])}},9085:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getAssetOrThrow=void 0;let n=e=>t=>{let n=e[t];if(!n)throw Error(`Missing asset with id '${t}'!`);return n};t.getAssetOrThrow=n},97381:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getEmbedOrThrow=void 0;let n=e=>t=>{let n=e[t];if(!n)throw Error(`Missing embed with url '${t}'`);return n};t.getEmbedOrThrow=n},55962:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.HexaColor=void 0;let n=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;t.HexaColor={is:e=>n.test(e)}},70402:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetKey=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(35002),u=RegExp("^[^<>]+$");t.WidgetKey=(0,o.refineType)(i.string,"WidgetKey",e=>0===e.length||u.test(e))},31289:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(9085),t),(0,r.__exportStar)(n(97381),t),(0,r.__exportStar)(n(70402),t)},20168:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateDocument=t.collectWidgets=t.traverseDocument=t.fillDocumentWithDefaultValues=t.DocumentLegacy=t.Document=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(32387),f=n(31289),l=n(23535),p=n(33832),d=n(3845);t.Document=a.record(f.WidgetKey,p.WidgetContent);let s=a.record(f.WidgetKey,a.unknown),m=e=>new a.Type("Document",e=>!!e&&"object"==typeof e,t=>(0,u.pipe)(s.decode(t),i.either.map(t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,d.defaultCtx)(n,e),u=(0,p.WidgetLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:{...t,[n]:u.right}},{}))),t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,d.defaultCtx)(n,e),o=(0,p.WidgetLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}}));function h(e){let t=Object.entries(e),{types:n,widgets:r}=t.reduce((e,[t,n])=>{if(t.endsWith("_TYPE")){let r=d.FieldOrSliceType.decode(n);if((0,o.isRight)(r))return{...e,types:e.types.set(t.substring(0,t.length-5),r.right)}}return t.endsWith("_POSITION")||t.endsWith("_TYPE")?e:{...e,widgets:{...e.widgets,[t]:n}}},{types:new Map,widgets:{}}),i=e.slugs_INTERNAL||[],u=e.uid;return{widgets:r,types:n,uid:u,slugs:i}}function v(e){return{customTypeId:null==e?void 0:e.id,fields:Object.fromEntries((0,l.flattenSections)(e))}}function y({document:e,customType:t}){let n=t&&l.StaticCustomType.is(t)?v(t):t;return({transformWidget:t=({content:e})=>e,transformSlice:r=({content:e})=>e})=>{let i=n&&Object.entries(n.fields).reduce((e,[t,n])=>({...e,[t]:n}),{});return Object.entries(e).reduce((e,[o,u])=>{let a=i&&i[o],f=c.ContentPath.make([{key:null==n?void 0:n.customTypeId,type:"CustomType"},{key:o,type:"Widget"},]),l=(()=>{switch(u.__TYPE__){case"SliceContentType":return(0,p.traverseSlices)({path:f,key:o,model:(null==a?void 0:a.type)==="Slices"||(null==a?void 0:a.type)==="Choice"?a:void 0,content:u})({transformWidget:t,transformSlice:r});case"GroupContentType":return(0,p.traverseGroupContent)({path:f,key:o,apiId:o,model:(null==a?void 0:a.type)==="Group"?a:void 0,content:u})(t);default:return t({path:f,key:o,apiId:o,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:u})}})();return{...e,...l?{[o]:l}:{}}},{})}}function g(e,t){let n=l.StaticCustomType.is(t)?v(t):t,r=Object.values((0,l.collectSharedSlices)(n)).some(e=>Boolean(e.legacyPaths));return r?y({document:e,customType:t})({transformSlice:p.migrateSliceItem}):e}t.DocumentLegacy={_codec:m,extractMetadata:h,parse:function(e,t){let n=(0,u.pipe)(a.record(f.WidgetKey,a.unknown).decode(e),i.either.chain(e=>{let{types:t,widgets:n}=h(e);return m(t).decode(n)}));return(0,o.isLeft)(n)?void 0:g(n.right,t)},encode:function(e){let t=m().encode(e);return{...t.content,...t.types}}},t.fillDocumentWithDefaultValues=function(e,t){let{fields:n}=e&&l.StaticCustomType.is(e)?v(e):e;return Object.entries(n).reduce((e,[n,r])=>{let i=t[n],o=(()=>{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 o?{...e,[n]:o}:e},t)},t.traverseDocument=y,t.collectWidgets=function(e,t){let n={};return y({document:e})({transformWidget({content:e,path:r}){let i=c.ContentPath.serialize(r);return t(e,r)&&(n[i]=e),e}}),n},t.migrateDocument=g},3845:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCtx=t.getFieldCtx=t.LegacyContentCtx=t.FieldOrSliceType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(99814);t.FieldOrSliceType=i.union([o.FieldType,o.SlicesTypes]);class u{constructor(e,t,n){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=e,this.fieldPath=t||[],this.allTypes=n||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(e,t,n){return new u(e,[...t.fieldPath,t.fieldKey,...n||[]],t.allTypes)},t.defaultCtx=function(e,t=new Map){return new u(e,[],t)}},82646:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyContent=t.EmptyLegacy=t.isEmptyContent=t.EmptyContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237);t.EmptyContentType="EmptyContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.EmptyContentType;t.isEmptyContent=c;let f=u.union([u.null,u.type({value:u.null}),]),l=e=>new u.Type("EmptyLegacy",t.isEmptyContent,n=>(0,o.pipe)(f.decode(n),i.either.map(()=>({type:e,__TYPE__:t.EmptyContentType}))),()=>null);t.EmptyLegacy=l,t.EmptyContent=u.strict({type:u.string,__TYPE__:u.literal(t.EmptyContentType)})},22443:function(e,t,n){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=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23535),f=n(3845),l=n(58237),p=n(91366),d=n(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),m=e=>new a.Type("GroupItemLegacy",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.GroupItemContentType,n=>{let r=(0,u.pipe)(s.decode(n),i.either.map(n=>{let r=Object.entries(n).reduce((n,[r,i])=>{let u=(0,f.getFieldCtx)(r,e),a=u.fieldType===c.GroupFieldType?(0,t.GroupLegacy)(u).decode(i):(0,p.NestableLegacy)(u).decode(i);return!a||(0,o.isLeft)(a)?n:[...n,[r,a.right]]},[]);return{value:r,__TYPE__:t.GroupItemContentType}}));return r},n=>n.value.reduce((n,[r,i])=>{let o=(0,f.getFieldCtx)(r,e),u=(0,t.isGroupContent)(i)?(0,t.GroupLegacy)(o).encode(i):(0,p.NestableLegacy)(o).encode(i);return u?{content:{...n.content,[r]:u.content},types:{...n.types,...u.types}}:n},{content:{},types:{}}));t.GroupItemLegacy=m;let h=e=>{let n=a.array(a.union([a.null,(0,t.GroupItemLegacy)(e)])),r=a.array((0,t.GroupItemLegacy)(e));return new a.Type("GroupLegacy",t.isGroupContent,e=>(0,u.pipe)(n.decode(e),i.either.map(e=>({value:e.map(e=>null===e?{__TYPE__:t.GroupItemContentType,value:[]}:e),__TYPE__:t.GroupContentType}))),t=>{let n=r.encode(t.value);return{content:n.map(e=>e.content),types:n.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:c.GroupFieldType})}})};function v({path:e,key:t,apiId:n,model:r,content:i}){return o=>{var u;let a=y({path:e,model:null===(u=null==r?void 0:r.config)||void 0===u?void 0:u.fields,content:i.value})(o);return o({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,value:a}})}}function y({path:e,model:n,content:r}){return i=>r.map((r,o)=>{let u=e.concat([{key:o.toString(),type:"GroupItem"},]),a=r.value.reduce((e,[r,o])=>{let a=null==n?void 0:n[r],f;return(f=a&&(null==a?void 0:a.type)!==c.GroupFieldType||o.__TYPE__!==t.GroupContentType?i({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:a,content:o}):v({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:a,content:o})(i))&&((0,p.isNestableContent)(f)||(0,t.isGroupContent)(f))?e.concat([[r,f]]):e},[]);return{__TYPE__:r.__TYPE__,value:a}})}t.GroupLegacy=h,t.groupContentWithDefaultValues=function(e,t){var n;let r=null===(n=e.config)||void 0===n?void 0:n.fields;return r?{...t,value:(0,d.repeatableContentWithDefaultNestableContentValues)(r,t.value)}:t},t.traverseGroupContent=v,t.traverseGroupItemsContent=y},40174:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDContent=t.UIDLegacy=t.isUIDContent=t.UIDContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237);t.UIDContentType="UIDContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.UIDContentType;t.isUIDContent=c;let f=e=>new u.Type("UIDLegacy",t.isUIDContent,e=>(0,o.pipe)(u.string.decode(e),i.either.map(e=>t.UIDContent.encode({value:e,__TYPE__:t.UIDContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"UID"}}));t.UIDLegacy=f,t.UIDContent=u.type({__TYPE__:u.literal(t.UIDContentType),value:u.string})},93057:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetLegacy=t.isWidgetContent=t.WidgetContent=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(22443),u=n(91366),a=n(83592),c=n(40174);t.WidgetContent=i.union([o.GroupContent,u.NestableContent,c.UIDContent,a.SlicesContent,]);let f=e=>(0,o.isGroupContent)(e)||(0,u.isNestableContent)(e)||(0,c.isUIDContent)(e)||(0,a.isSlicesContent)(e);t.isWidgetContent=f;let l=e=>({decode(t){if(!e.fieldType)return;let n=(()=>{switch(e.fieldType){case"UID":return(0,c.UIDLegacy)(e);case"Group":return(0,o.GroupLegacy)(e);case"Choice":case"Slices":return(0,a.SlicesLegacy)(e);default:return(0,u.NestableLegacy)(e)}})();if(n)return n.decode(t)},encode(t){switch(t.__TYPE__){case c.UIDContentType:return(0,c.UIDLegacy)(e).encode(t);case o.GroupContentType:return(0,o.GroupLegacy)(e).encode(t);case a.SlicesContentType:return(0,a.SlicesLegacy)(e).encode(t);default:return(0,u.NestableLegacy)(e).encode(t)}}});t.WidgetLegacy=l},33832:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(82646),t),(0,r.__exportStar)(n(22443),t),(0,r.__exportStar)(n(91366),t),(0,r.__exportStar)(n(83592),t),(0,r.__exportStar)(n(40174),t),(0,r.__exportStar)(n(93057),t)},47451:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanContentDefaultValue=t.BooleanContent=t.BooleanLegacy=t.isBooleanContent=t.BooleanContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237);t.BooleanContentType="BooleanContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.BooleanContentType;t.isBooleanContent=c;let f=e=>new u.Type("BooleanLegacy",t.isBooleanContent,e=>(0,o.pipe)(u.boolean.decode(e),i.either.map(e=>t.BooleanContent.encode({value:e,__TYPE__:t.BooleanContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"Boolean"}}));t.BooleanLegacy=f,t.BooleanContent=u.strict({__TYPE__:u.literal(t.BooleanContentType),value:u.boolean});let l=e=>{var n;return(null===(n=e.config)||void 0===n?void 0:n.default_value)!==void 0?{__TYPE__:t.BooleanContentType,value:e.config.default_value||!1}:void 0};t.BooleanContentDefaultValue=l},11836:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedContent=t.EmbedLegacy=t.EmbedContentLegacy=t.isEmbedContent=t.EmbedContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(8597),c=n(58237);t.EmbedContentType="EmbedContent";let f=e=>(0,c.hasContentType)(e)&&e.__TYPE__===t.EmbedContentType;t.isEmbedContent=f,t.EmbedContentLegacy=u.exact(u.intersection([u.type({embed_url:u.string,type:u.string}),u.partial({version:u.union([u.string,u.number,u.null]),title:a.StringOrNull,author_name:a.StringOrNull,author_url:a.StringOrNull,provider_name:a.StringOrNull,provider_url:a.StringOrNull,cache_age:u.union([u.string,u.number,u.null]),thumbnail_url:a.StringOrNull,thumbnail_width:a.NumberOrNull,thumbnail_height:a.NumberOrNull,html:a.StringOrNull}),]));let l=e=>new u.Type("EmbedLegacy",t.isEmbedContent,e=>(0,o.pipe)(t.EmbedContentLegacy.decode(e),i.either.map(n=>({...n,all:e,__TYPE__:t.EmbedContentType}))),t=>({content:t.all,types:{[e.keyOfType]:"Embed"}}));t.EmbedLegacy=l,t.EmbedContent=u.intersection([t.EmbedContentLegacy,u.strict({__TYPE__:u.literal(t.EmbedContentType),all:u.unknown}),])},77124:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContent=t.ColorLegacy=t.isColorContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Color"===e.type;t.isColorContent=p;let d=e=>new u.Type("ColorLegacy",t.isColorContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.ColorContent.encode({value:e,type:a.ColorFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.ColorFieldType}}));t.ColorLegacy=d,t.ColorContent=u.strict({type:u.literal(a.ColorFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},62544:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DateContent=t.DateLegacy=t.isDateContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Date"===e.type;t.isDateContent=p;let d=e=>new u.Type("DateLegacy",t.isDateContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.DateContent.encode({value:e,type:a.DateFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.DateFieldType}}));t.DateLegacy=d,t.DateContent=u.strict({type:u.literal(a.DateFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},83768:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberContent=t.NumberLegacy=t.isNumberContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Number"===e.type;t.isNumberContent=p;let d=e=>new u.Type("NumberLegacy",t.isNumberContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.NumberContent.encode({value:e,type:a.NumberFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.NumberFieldType}}));t.NumberLegacy=d,t.NumberContent=u.strict({type:u.literal(a.NumberFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},8944:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeContent=t.RangeLegacy=t.isRangeContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Range"===e.type;t.isRangeContent=p;let d=e=>new u.Type("RangeLegacy",t.isRangeContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.RangeContent.encode({value:e,type:a.RangeFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.RangeFieldType}}));t.RangeLegacy=d,t.RangeContent=u.strict({type:u.literal(a.RangeFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},13221:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectContentDefaultValue=t.SelectContent=t.SelectLegacy=t.isSelectContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Select"===e.type;t.isSelectContent=p;let d=e=>new u.Type("SelectLegacy",t.isSelectContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.SelectContent.encode({value:e,type:a.SelectFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.SelectFieldType}}));t.SelectLegacy=d,t.SelectContent=u.strict({type:u.literal(a.SelectFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)});let s=e=>{var t;return(null===(t=e.config)||void 0===t?void 0:t.default_value)?{__TYPE__:l.FieldContentType,type:a.SelectFieldType,value:e.config.default_value||""}:void 0};t.SelectContentDefaultValue=s},38295:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextContent=t.TextLegacy=t.isTextContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Text"===e.type;t.isTextContent=p;let d=e=>new u.Type("TextLegacy",t.isTextContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.TextContent.encode({value:e,type:a.TextFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.TextFieldType}}));t.TextLegacy=d,t.TextContent=u.strict({type:u.literal(a.TextFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},79137:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampContent=t.TimestampLegacy=t.isTimestampContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Timestamp"===e.type;t.isTimestampContent=p;let d=e=>new u.Type("TimestampLegacy",t.isTimestampContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.TimestampContent.encode({value:e,type:a.TimestampFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.TimestampFieldType}}));t.TimestampLegacy=d,t.TimestampContent=u.strict({type:u.literal(a.TimestampFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},84929:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContentType=void 0,t.FieldContentType="FieldContent"},86649:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContent=t.FieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(77124),u=n(62544),a=n(83768),c=n(8944),f=n(13221),l=n(38295),p=n(79137);t.FieldType=i.keyof({Text:null,Date:null,Timestamp:null,Color:null,Number:null,Range:null,Select:null}),t.FieldContent=i.union([u.DateContent,o.ColorContent,a.NumberContent,c.RangeContent,f.SelectContent,l.TextContent,p.TimestampContent,]),(0,r.__exportStar)(n(77124),t),(0,r.__exportStar)(n(84929),t),(0,r.__exportStar)(n(62544),t),(0,r.__exportStar)(n(83768),t),(0,r.__exportStar)(n(8944),t),(0,r.__exportStar)(n(13221),t),(0,r.__exportStar)(n(38295),t),(0,r.__exportStar)(n(79137),t)},48896:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointContent=t.GeoPointLegacy=t.isGeoPointContent=t.GeoPointContentType=void 0;let r=n(98227),i=n(9554),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(58237);t.GeoPointContentType="GeoPointContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.GeoPointContentType;t.isGeoPointContent=c;let f=u.strict({position:u.strict({lat:u.number,lng:u.number})}),l=e=>new u.Type("GeoPointLegacy",t.isGeoPointContent,e=>(0,o.pipe)(f.decode(e),i.either.map(e=>t.GeoPointContent.encode({...e,__TYPE__:t.GeoPointContentType}))),t=>({content:{position:t.position},types:{[e.keyOfType]:"GeoPoint"}}));t.GeoPointLegacy=l,t.GeoPointContent=u.intersection([f,u.strict({__TYPE__:u.literal(t.GeoPointContentType)}),])},15764:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageContent=t.ImageLegacy=t.ImageContentView=t.isImageContent=t.ImageContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(17160),c=n(8597),f=n(58237);t.ImageContentType="ImageContent";let l=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.ImageContentType;t.isImageContent=l;let p=u.exact(u.type({id:u.string,url:u.string,width:u.number,height:u.number}));t.ImageContentView=u.exact(u.intersection([u.type({origin:p,width:u.number,height:u.number,edit:u.type({zoom:u.number,crop:u.type({x:u.number,y:u.number}),background:u.string})}),u.partial({url:u.string,credits:c.NonEmptyStringOrNull,alt:c.NonEmptyStringOrNull,provider:c.StringOrNull}),]));let d=u.intersection([t.ImageContentView,u.partial({thumbnails:u.record(u.string,t.ImageContentView)}),]),s=e=>new u.Type("ImageLegacy",t.isImageContent,e=>(0,o.pipe)(d.decode(e),i.either.map(e=>t.ImageContent.encode({...e,__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:{[e.keyOfType]:"Image"}}));t.ImageLegacy=s,t.ImageContent=u.intersection([d,u.strict({__TYPE__:u.literal(t.ImageContentType)}),])},9583:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldContent=t.IntegrationFieldLegacy=t.isIntegrationFieldContent=t.IntegrationFieldContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237);t.IntegrationFieldContentType="IntegrationFieldsContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.IntegrationFieldContentType;t.isIntegrationFieldContent=c;let f=e=>new u.Type("IntegrationFieldLegacy",t.isIntegrationFieldContent,e=>(0,o.pipe)(u.string.decode(e),i.either.map(e=>t.IntegrationFieldContent.encode({value:e,__TYPE__:t.IntegrationFieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"IntegrationFields"}}));t.IntegrationFieldLegacy=f,t.IntegrationFieldContent=u.strict({__TYPE__:u.literal(t.IntegrationFieldContentType),value:u.string})},72202:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkContent=t.Link=t.LinkContentLegacy=t.LinkLegacy=t.isLinkContent=t.LinkContentType=t.ExternalLinkContent=t.ExternalLinkType=t.DocumentLinkContent=t.DocumentLinkType=t.FileLinkContent=t.FileLinkType=t.ImageLinkContent=t.ImageLinkType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(23284),c=n(8597),f=n(35002),l=n(58237);t.ImageLinkType="ImageLink";let p=u.exact(u.intersection([u.type({id:u.string,url:u.string,height:u.string,width:u.string,size:u.string,name:u.string,kind:u.string}),u.partial({date:c.StringOrNull}),])),d=new u.Type("ImageLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ImageLinkType,e=>(0,o.pipe)(p.decode(e),i.either.map(e=>t.ImageLinkContent.encode({...e,__TYPE__:t.ImageLinkType}))),e=>p.encode(e));t.ImageLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ImageLinkType)}),p,]),t.FileLinkType="FileLink";let s=u.exact(u.intersection([u.type({id:u.string,url:u.string,name:u.string,kind:u.string,size:(0,a.withFallback)(u.string,"0")}),u.partial({date:(0,f.nullable)(u.string)}),])),m=new u.Type("FileLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.FileLinkType,e=>(0,o.pipe)(s.decode(e),i.either.map(e=>t.FileLinkContent.encode({...e,__TYPE__:t.FileLinkType}))),e=>s.encode(e));t.FileLinkContent=u.intersection([s,u.exact(u.intersection([u.type({__TYPE__:u.literal(t.FileLinkType)}),u.partial({size:(0,a.withFallback)(u.string,"0")}),])),]),t.DocumentLinkType="DocumentLink";let h=u.strict({id:c.NonEmptyString}),v=new u.Type("DocumentLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.DocumentLinkType,e=>(0,o.pipe)(h.decode(e),i.either.map(e=>t.DocumentLinkContent.encode({...e,__TYPE__:t.DocumentLinkType}))),e=>h.encode(e));t.DocumentLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.DocumentLinkType)}),h,]),t.ExternalLinkType="ExternalLink";let y=u.exact(u.intersection([u.type({url:u.string}),u.partial({kind:u.literal("web"),target:c.StringOrNull,preview:(0,f.nullable)(u.partial({title:u.string}))}),])),g=new u.Type("ExternalLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ExternalLinkType,e=>(0,o.pipe)(y.decode(e),i.either.map(e=>t.ExternalLinkContent.encode({...e,__TYPE__:t.ExternalLinkType}))),e=>y.encode(e));t.ExternalLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ExternalLinkType)}),y,]),t.LinkContentType="LinkContent";let _=e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.LinkContentType;t.isLinkContent=_,t.LinkLegacy=u.union([d,m,v,g,]);let b=e=>new u.Type("LinkLegacy",t.isLinkContent,e=>(0,o.pipe)(t.LinkLegacy.decode(e),i.either.map(e=>t.LinkContent.encode({value:e,__TYPE__:t.LinkContentType}))),n=>({content:t.LinkLegacy.encode(n.value),types:{[e.keyOfType]:"Link"}}));t.LinkContentLegacy=b,t.Link=u.union([t.ImageLinkContent,t.FileLinkContent,t.DocumentLinkContent,t.ExternalLinkContent,]),t.LinkContent=u.strict({__TYPE__:u.literal(t.LinkContentType),value:t.Link})},65090:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableLegacy=t.isNestableContent=t.NestableContentDefaultValue=t.NestableContent=void 0;let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(82646),a=n(47451),c=n(11836),f=n(86649),l=n(84929),p=n(48896),d=n(15764),s=n(9583),m=n(72202),h=n(89040),v=n(68507);t.NestableContent=o.union([u.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,m.LinkContent,h.RichTextContent,v.SeparatorContent,]);let y=e=>{switch(e.type){case"Boolean":return(0,a.BooleanContentDefaultValue)(e);case"Select":return(0,f.SelectContentDefaultValue)(e);default:return}};t.NestableContentDefaultValue=y;let g=e=>(0,f.isTextContent)(e)||(0,f.isColorContent)(e)||(0,f.isDateContent)(e)||(0,f.isTimestampContent)(e)||(0,f.isNumberContent)(e)||(0,f.isRangeContent)(e)||(0,f.isSelectContent)(e)||(0,p.isGeoPointContent)(e)||(0,h.isRichTextContent)(e)||(0,a.isBooleanContent)(e)||(0,c.isEmbedContent)(e)||(0,d.isImageContent)(e)||(0,s.isIntegrationFieldContent)(e)||(0,m.isLinkContent)(e)||(0,v.isSeparatorContent)(e)||(0,u.isEmptyContent)(e);t.isNestableContent=g;let _=e=>({decode(t){if(!e.fieldType)return;let n=(0,u.EmptyLegacy)(e.fieldType).decode(t);if((0,i.isRight)(n))return n;let r=(()=>{switch(e.fieldType){case"Text":return(0,f.TextLegacy)(e);case"Color":return(0,f.ColorLegacy)(e);case"Date":return(0,f.DateLegacy)(e);case"Timestamp":return(0,f.TimestampLegacy)(e);case"Number":return(0,f.NumberLegacy)(e);case"Range":return(0,f.RangeLegacy)(e);case"Select":return(0,f.SelectLegacy)(e);case"GeoPoint":return(0,p.GeoPointLegacy)(e);case"StructuredText":return(0,h.RichTextLegacy)(e);case"Boolean":return(0,a.BooleanLegacy)(e);case"Embed":return(0,c.EmbedLegacy)(e);case"Image":return(0,d.ImageLegacy)(e);case"IntegrationFields":return(0,s.IntegrationFieldLegacy)(e);case"Link":return(0,m.LinkContentLegacy)(e);case"Separator":return(0,v.SeparatorLegacy)(e);default:return}})();if(r)return r.decode(t)},encode(t){switch(t.__TYPE__){case l.FieldContentType:if("Text"===t.type)return(0,f.TextLegacy)(e).encode(t);if("Color"===t.type)return(0,f.ColorLegacy)(e).encode(t);if("Range"===t.type)return(0,f.RangeLegacy)(e).encode(t);if("Date"===t.type)return(0,f.DateLegacy)(e).encode(t);if("Number"===t.type)return(0,f.NumberLegacy)(e).encode(t);if("Timestamp"===t.type)return(0,f.TimestampLegacy)(e).encode(t);if("Select"===t.type)return(0,f.SelectLegacy)(e).encode(t);return;case p.GeoPointContentType:return(0,p.GeoPointLegacy)(e).encode(t);case h.RichTextContentType:return(0,h.RichTextLegacy)(e).encode(t);case c.EmbedContentType:return(0,c.EmbedLegacy)(e).encode(t);case a.BooleanContentType:return(0,a.BooleanLegacy)(e).encode(t);case d.ImageContentType:return(0,d.ImageLegacy)(e).encode(t);case s.IntegrationFieldContentType:return(0,s.IntegrationFieldLegacy)(e).encode(t);case m.LinkContentType:return(0,m.LinkContentLegacy)(e).encode(t);case v.SeparatorContentType:return(0,v.SeparatorLegacy)(e).encode(t);default:return}}});t.NestableLegacy=_},71741:function(e,t,n){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=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23284),f=n(44613),l=n(8597),p=n(35002),d=n(11836),s=n(15764),m=n(72202),h=e=>a.strict({data:e,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")}),y=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([h(m.Link),v,y]),t.SpanLegacy=a.union([h(m.LinkLegacy),v,y]);let g=e=>new a.Type("ValidatedSpans",t=>Array.isArray(t)&&t.every(e.is),(t,n)=>{if(!Array.isArray(t))return a.failure(t,n);{let r=t.reduce((t,n)=>{let r=e.decode(n);return(0,o.isLeft)(r)?t:[...t,r.right]},[]).sort((e,t)=>e.start-t.start);return a.success(r)}},t=>t.reduce((t,n)=>{let r=e.encode(n);return[...t,r]},[]));t.ValidatedSpans=g;let _=e=>a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.image),data:a.intersection([s.ImageContentView,a.partial({linkTo:(0,p.nullable)(e)}),])}),a.partial({label:l.StringOrNull,direction:l.StringOrNull}),]));t.ImageBlock=_(m.Link);let b=_(m.LinkLegacy);t.checkImageBlock=function(e){return e.type===f.RichTextNodeType.image};let S=a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.embed),data:a.unknown}),a.partial({label:l.StringOrNull,direction:l.StringOrNull}),])),T=new a.Type("EmbedBlockLegacy",e=>"embed"===e.type,e=>(0,u.pipe)(S.decode(e),i.either.chain(e=>i.either.map(t=>[e,t])(d.EmbedContentLegacy.decode(e.data))),i.either.map(([e,n])=>t.EmbedBlock.encode({...e,data:{...n,__TYPE__:d.EmbedContentType,all:e.data}}))),e=>({...S.encode(e),data:d.EmbedContentLegacy.encode(e.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(e){return e.type===f.RichTextNodeType.embed};let I=e=>a.exact(a.intersection([a.type({type:(0,p.refineType)(f.RichTextNodeTypeCodec,`string which isn't ${f.RichTextNodeType.image} ${f.RichTextNodeType.embed}`,e=>e!==f.RichTextNodeType.image&&e!==f.RichTextNodeType.embed),content:a.intersection([a.type({text:a.string}),a.partial({spans:(0,t.ValidatedSpans)(e)}),])}),a.partial({label:a.string,direction:a.string}),]));t.TextBlock=I(t.Span);let R=I(t.SpanLegacy),w=a.union([T,b,R,]);t.BlockLegacy=new a.Type("BlockLegacy",e=>T.is(e)||b.is(e)||R.is(e),e=>w.decode(e),e=>t.ImageBlock.is(e)?b.encode(e):t.EmbedBlock.is(e)?T.encode(e):R.encode(e)),t.Block=a.union([t.ImageBlock,t.EmbedBlock,t.TextBlock])},89040:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextLegacy=t.RichTextContent=t.isRichTextContent=t.RichTextContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237),c=n(71741);t.RichTextContentType="StructuredTextContent";let f=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.RichTextContentType;t.isRichTextContent=f;let l=u.array(c.BlockLegacy);t.RichTextContent=u.strict({__TYPE__:u.literal(t.RichTextContentType),value:u.array(c.Block)}),(0,r.__exportStar)(n(71741),t);let p=e=>new u.Type("RichTextLegacy",t.isRichTextContent,e=>(0,o.pipe)(l.decode(e),i.either.map(e=>({value:e,__TYPE__:t.RichTextContentType}))),t=>({content:l.encode(t.value),types:{[e.keyOfType]:"StructuredText"}}));t.RichTextLegacy=p},68507:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorContent=t.SeparatorLegacy=t.isSeparatorContent=t.SeparatorContentType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(58237);t.SeparatorContentType="SeparatorContent";let u=e=>(0,o.hasContentType)(e)&&e.__TYPE__===t.SeparatorContentType;t.isSeparatorContent=u;let a=e=>new i.Type("SeparatorLegacy",t.isSeparatorContent,()=>i.success(t.SeparatorContent.encode({__TYPE__:t.SeparatorContentType})),()=>({content:{},types:{[e.keyOfType]:"Separator"}}));t.SeparatorLegacy=a,t.SeparatorContent=i.strict({__TYPE__:i.literal(t.SeparatorContentType)})},91366:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(47451),t),(0,r.__exportStar)(n(11836),t),(0,r.__exportStar)(n(86649),t),(0,r.__exportStar)(n(48896),t),(0,r.__exportStar)(n(15764),t),(0,r.__exportStar)(n(9583),t),(0,r.__exportStar)(n(72202),t),(0,r.__exportStar)(n(65090),t),(0,r.__exportStar)(n(89040),t),(0,r.__exportStar)(n(68507),t)},53422:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateCompositeSlice=t.traverseCompositeSliceContent=t.compositeSliceContentWithDefaultValues=t.CompositeSliceContent=t.CompositeSliceLegacy=t.isCompositeSliceContent=t.CompositeSliceContentType=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(3845),f=n(58237),l=n(91366),p=n(22583),d=n(53034);t.CompositeSliceContentType="CompositeSliceContent";let s=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.CompositeSliceContentType;t.isCompositeSliceContent=s;let m=a.exact(a.partial({repeat:a.array(a.unknown),"non-repeat":a.UnknownRecord})),h=e=>new a.Type("CompositeSliceLegacy",t.isCompositeSliceContent,n=>(0,u.pipe)(m.decode(n),i.either.map(n=>{let r=(()=>{let t=(0,c.getFieldCtx)("repeat",e),r=(0,d.RepeatableWidgetsLegacy)(t).decode(n.repeat);if(!(!r||(0,o.isLeft)(r)))return r.right})()||[],i=Object.entries(n["non-repeat"]||{}).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e,["non-repeat"]);if(!i)return t;let u=(0,l.NestableLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:{...t,[n]:u.right}},{});return{nonRepeat:i,repeat:r,__TYPE__:t.CompositeSliceContentType}})),t=>{let n=Object.entries(t.nonRepeat).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e,["non-repeat"]),o=(0,l.NestableLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}}),r=(()=>{let n=(0,c.getFieldCtx)("repeat",e),r=(0,d.RepeatableWidgetsLegacy)(n).encode(t.repeat);return r})()||[];return{content:{"non-repeat":n.content,repeat:r.map(e=>e.content)},types:{[e.keyOfType]:"Slice",...n.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}});t.CompositeSliceLegacy=h,t.CompositeSliceContent=a.strict({__TYPE__:a.literal(t.CompositeSliceContentType),nonRepeat:a.record(a.string,l.NestableContent),repeat:d.RepeatableWidgets}),t.compositeSliceContentWithDefaultValues=function(e,t){var n,r;let i=(0,p.withDefaultNestableContentValues)(null!==(n=e["non-repeat"])&&void 0!==n?n:{},t.nonRepeat),o=(0,p.repeatableContentWithDefaultNestableContentValues)(null!==(r=e.repeat)&&void 0!==r?r:{},t.repeat);return{...t,nonRepeat:i,repeat:o}},t.traverseCompositeSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,u)=>{let a=Object.entries(i.widget.nonRepeat).reduce((i,[u,a])=>{var c,f,p;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[u]:null===(p=null==r?void 0:r["non-repeat"])||void 0===p?void 0:p[u],s=o({path:e.concat([{key:"non-repeat",type:"primary"},{key:u,type:"Widget"},]),key:u,apiId:n,model:d,content:a});return s?(0,l.isNestableContent)(s)?{...i,[u]:s}:(console.warn(`Warn: Non nestable content with key [${u}] detected in a composite slice [${n}] with key [${t}]`),i):i},{}),c=(0,d.traverseRepeatableWidgetItemsContent)({path:e.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})(o);return u({key:t,apiId:n,path:e,model:r,content:{...i,widget:{__TYPE__:"CompositeSliceContent",repeat:c,nonRepeat:a}}})}},t.migrateCompositeSlice=function(e,t){let[,n]=t.key.split("$");return{key:`${e.sliceName}$${n}`,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:Object.entries(t.widget.nonRepeat).reduce((n,[r,i])=>{var o;return(null===(o=e.fields.primary)||void 0===o?void 0:o[r])?{...n,[r]:i}:(console.warn(`The widget ${r} in the non-repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},{}),items:t.widget.repeat.map(n=>({__TYPE__:"GroupItemContent",value:n.value.reduce((n,[r,i])=>{var o;return(null===(o=e.fields.items)||void 0===o?void 0:o[r])?n.concat([[r,i]]):(console.warn(`The widget ${r} in the repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},[])}),[])}}}},53034:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatableWidgets=t.RepeatableWidgetsLegacy=t.traverseRepeatableWidgetItemsContent=t.traverseRepeatableWidgetContent=t.RepeatableWidgetContent=t.isRepeatableWidgetContent=t.RepeatableWidgetLegacy=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(3845),f=n(58237),l=n(22443),p=n(91366),d=a.strict({__TYPE__:a.literal(l.GroupItemContentType),value:a.array(a.tuple([a.string,p.NestableContent]))}),s=a.record(a.string,a.unknown),m=e=>new a.Type("RepeatableWidgetItemLegacy",e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.GroupItemContentType,t=>{let n=(0,u.pipe)(s.decode(t),i.either.map(t=>{let n=Object.entries(t).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e),u=(0,p.NestableLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:[...t,[n,u.right]]},[]);return{value:n,__TYPE__:l.GroupItemContentType}}));return n},t=>t.value.reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e),o=(0,p.NestableLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}})),h=e=>{let n=a.array(a.union([a.null,m(e)])),r=a.array(m(e));return new a.Type("RepeatableWidgetLegacy",t.isRepeatableWidgetContent,e=>(0,u.pipe)(n.decode(e),i.either.map(e=>({value:e.map(e=>null===e?{__TYPE__:l.GroupItemContentType,value:[]}:e),__TYPE__:l.GroupContentType}))),t=>{let n=r.encode(t.value);return{content:n.map(e=>e.content),types:n.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:"Group"})}})};t.RepeatableWidgetLegacy=h;let v=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.GroupContentType;function y({path:e,model:t,content:n}){return r=>n.map((n,i)=>{let o=e.concat([{key:i.toString(),type:"GroupItem"},]),u=n.value.reduce((e,[n,i])=>{let u=null==t?void 0:t[n],a=r({path:o.concat([{key:n,type:"Widget"},]),key:n,apiId:n,model:u,content:i});return a&&(0,p.isNestableContent)(a)?e.concat([[n,a]]):e},[]);return{__TYPE__:n.__TYPE__,value:u}})}t.isRepeatableWidgetContent=v,t.RepeatableWidgetContent=a.strict({__TYPE__:a.literal(l.GroupContentType),value:a.array(d)}),t.traverseRepeatableWidgetContent=function({path:e,key:t,apiId:n,model:r,content:i}){return o=>{var u;let a=y({path:e,model:null===(u=null==r?void 0:r.config)||void 0===u?void 0:u.fields,content:i.value})(o);return o({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,value:a}})}},t.traverseRepeatableWidgetItemsContent=y;let g=e=>a.array(m(e));t.RepeatableWidgetsLegacy=g;let _=a.tuple([a.string,p.NestableContent]),b=a.strict({__TYPE__:a.literal(l.GroupItemContentType),value:a.array(_)});t.RepeatableWidgets=a.array(b)},74951:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSharedSliceContent=t.sharedSliceContentWithDefaultValues=t.SharedSliceContent=t.SharedSliceLegacy=t.isSharedSliceContent=t.SharedSliceContentType=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23284),f=n(23535),l=n(3845),p=n(58237),d=n(22443),s=n(91366),m=n(22583),h=n(53034),v=n(12238);t.SharedSliceContentType="SharedSliceContent";let y=e=>(0,p.hasContentType)(e)&&e.__TYPE__===t.SharedSliceContentType;t.isSharedSliceContent=y;let g=a.exact(a.type({variation:a.string,items:(0,c.withFallback)(a.array(a.unknown),[]),primary:(0,c.withFallback)(a.UnknownRecord,{})})),_=e=>new a.Type("SharedSliceLegacy",t.isSharedSliceContent,n=>(0,u.pipe)(g.decode(n),i.either.map(n=>{let r=(()=>{let t=(0,l.getFieldCtx)("items",e,["variations",n.variation,]),r=(0,h.RepeatableWidgetsLegacy)(t).decode(n.items);if(!(!r||(0,o.isLeft)(r)))return r.right})()||[],i=Object.entries(n.primary).reduce((t,[r,i])=>{let u=(0,l.getFieldCtx)(r,e,["variations",n.variation,"primary",]),a=(0,v.SlicePrimaryLegacy)(u).decode(i);return!a||(0,o.isLeft)(a)?t:{...t,[r]:a.right}},{});return{variation:n.variation,primary:i,items:r,__TYPE__:t.SharedSliceContentType}})),t=>{let n=Object.entries(t.primary).reduce((n,[r,i])=>{let o=(0,l.getFieldCtx)(r,e,["variations",t.variation,"primary",]),u=(0,v.SlicePrimaryLegacy)(o).encode(i);return u?{content:{...n.content,[r]:u.content},types:{...n.types,...u.types}}:n},{content:{},types:{}}),r=(()=>{let n=(0,l.getFieldCtx)("items",e,["variations",t.variation,]),r=(0,h.RepeatableWidgetsLegacy)(n).encode(t.items);return r})()||[];return{content:{primary:n.content,items:r.map(e=>e.content),variation:t.variation},types:{[e.keyOfType]:"SharedSlice",...n.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}});t.SharedSliceLegacy=_,t.SharedSliceContent=a.strict({__TYPE__:a.literal(t.SharedSliceContentType),variation:a.string,primary:a.record(a.string,v.SlicePrimaryContent),items:h.RepeatableWidgets}),t.sharedSliceContentWithDefaultValues=function(e,t){var n,r;let i=e.variations.find(e=>e.id===t.variation),o=null!==(n=null==i?void 0:i.primary)&&void 0!==n?n:{},u=null!==(r=null==i?void 0:i.items)&&void 0!==r?r:{},a=(0,m.withDefaultSlicePrimaryContentValues)(o,t.primary),c=(0,m.repeatableContentWithDefaultNestableContentValues)(u,t.items);return{...t,primary:a,items:c}},t.traverseSharedSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,u)=>{let a=Object.entries(i.widget.primary).reduce((i,[u,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[u],m=(0,d.isGroupContent)(a)?(0,d.traverseGroupContent)({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"},]),key:u,apiId:u,content:a,model:(null==p?void 0:p.type)===f.GroupFieldType?p:void 0})(o):(0,s.isNestableContent)(a)?o({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"},]),key:u,apiId:u,model:p,content:a}):void 0;return m?((0,v.isSlicePrimaryContent)(m)||console.warn(`Warn: Non nestable or group content with key [${u}] detected in a shared slice [${n}] with key [${t}]`),{...i,[u]:m}):i},{}),c=(0,h.traverseRepeatableWidgetItemsContent)({path:e.concat([{key:"items",type:"items"}]),model:null==r?void 0:r.fields.items,content:i.widget.items})(o);return u({key:t,apiId:n,path:e,model:r,content:{...i,widget:{__TYPE__:"SharedSliceContent",variation:i.widget.variation,primary:a,items:c}}})}}},27835:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSimpleSlice=t.traverseSimpleSliceContent=t.SimpleSliceLegacy=t.isSimpleSliceContent=t.SimpleSliceContent=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(91366),u=n(53034);t.SimpleSliceContent=i.union([o.NestableContent,u.RepeatableWidgetContent,]);let a=e=>(0,o.isNestableContent)(e)||(0,u.isRepeatableWidgetContent)(e);t.isSimpleSliceContent=a;let c=e=>({decode:"Group"===e.fieldType?(0,u.RepeatableWidgetLegacy)(e).decode.bind(null):(0,o.NestableLegacy)(e).decode.bind(null),encode:t=>"GroupContentType"===t.__TYPE__?(0,u.RepeatableWidgetLegacy)(e).encode(t):(0,o.NestableLegacy)(e).encode(t)});t.SimpleSliceLegacy=c,t.traverseSimpleSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,a)=>{var c;if((0,u.isRepeatableWidgetContent)(i.widget)){let f=(0,u.traverseRepeatableWidgetContent)({path:e,key:i.key,apiId:i.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:i.widget})(o);return f&&a({key:i.key,apiId:i.name,path:e,model:r,content:{...i,widget:f}})}let l=o({key:i.key,apiId:i.name,path:e,model:(null==r?void 0:r.type)==="SharedSlice"?null===(c=r.fields.primary)||void 0===c?void 0:c[i.name]:(null==r?void 0:r.type)!=="Group"?r:void 0,content:i.widget});return l&&a({key:t,apiId:n,path:e,model:r,content:{...i,widget:l}})}},t.migrateSimpleSlice=function(e,t){var n;let[,r]=t.key.split("$"),i=`${e.sliceName}$${r}`;return"GroupContentType"===t.widget.__TYPE__?{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:{},items:t.widget.value.map(t=>({__TYPE__:"GroupItemContent",value:t.value.reduce((t,[n,r])=>{var i;return(null===(i=e.fields.items)||void 0===i?void 0:i[n])?t.concat([[n,r]]):t},[])}),[])}}:{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:(null===(n=e.fields.primary)||void 0===n?void 0:n[t.name])?{[t.name]:t.widget}:{},items:[]}}}},12238:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryContent=t.SlicePrimaryLegacy=t.SlicePrimaryContent=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(23535),u=n(22443),a=n(91366);t.SlicePrimaryContent=i.union([a.NestableContent,u.GroupContent]);let c=e=>{let t=(0,u.GroupLegacy)(e),n=(0,a.NestableLegacy)(e);return{decode:r=>e.fieldType===o.GroupFieldType?t.decode(r):n.decode(r),encode:e=>(0,u.isGroupContent)(e)?t.encode(e):n.encode(e)}};t.SlicePrimaryLegacy=c;let f=e=>(0,a.isNestableContent)(e)||(0,u.isGroupContent)(e);t.isSlicePrimaryContent=f},21925:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceContent=t.SliceLegacy=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(53422),u=n(74951),a=n(27835),c=e=>({decode(t){let n=(()=>{switch(e.fieldType){case"Slice":return(0,o.CompositeSliceLegacy)(e);case"SharedSlice":return(0,u.SharedSliceLegacy)(e);default:return(0,a.SimpleSliceLegacy)(e)}})();return n.decode(t)},encode(t){switch(t.__TYPE__){case"SharedSliceContent":return(0,u.SharedSliceLegacy)(e).encode(t);case"CompositeSliceContent":return(0,o.CompositeSliceLegacy)(e).encode(t);default:return(0,a.SimpleSliceLegacy)(e).encode(t)}}});t.SliceLegacy=c,t.SliceContent=i.union([o.CompositeSliceContent,u.SharedSliceContent,a.SimpleSliceContent,]),(0,r.__exportStar)(n(53422),t),(0,r.__exportStar)(n(53034),t),(0,r.__exportStar)(n(74951),t),(0,r.__exportStar)(n(27835),t),(0,r.__exportStar)(n(12238),t)},57495:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSliceItem=t.SlicesItemLegacy=t.sliceItemContentWithDefaultValues=t.isSimpleSliceItemContent=t.isCompositeSliceItemContent=t.isSharedSliceItemContent=t.SliceItemContent=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(35002),f=n(3845),l=n(22443),p=n(91366),d=n(22583),s=n(21925),m=n(53422),h=n(74951),v=n(27835);function y(e){return(0,m.isCompositeSliceContent)(e.widget)}function g(e){return(0,l.isGroupContent)(e.widget)||(0,p.isNestableContent)(e.widget)}t.SliceItemContent=a.type({key:a.string,name:a.string,maybeLabel:a.union([a.string,a.undefined]),widget:s.SliceContent}),t.isSharedSliceItemContent=function(e){return(0,h.isSharedSliceContent)(e.widget)},t.isCompositeSliceItemContent=y,t.isSimpleSliceItemContent=g,t.sliceItemContentWithDefaultValues=function(e,t){var n;if("SharedSlice"===e.type&&(0,h.isSharedSliceContent)(t))return(0,s.sharedSliceContentWithDefaultValues)(e,t);if("Slice"===e.type&&(0,m.isCompositeSliceContent)(t))return(0,s.compositeSliceContentWithDefaultValues)(e,t);if("Group"===e.type&&(0,l.isGroupContent)(t)&&(null===(n=e.config)||void 0===n?void 0:n.fields)){let r=(0,d.repeatableContentWithDefaultNestableContentValues)(e.config.fields,t.value);return{...t,value:r}}return t};let _=a.exact(a.intersection([a.type({key:a.string,value:a.unknown}),a.partial({label:(0,c.nullable)(a.string)}),])),b=e=>new a.Type("SlicesItemLegacy",e=>((0,h.isSharedSliceContent)(e.widget),(0,m.isCompositeSliceContent)(e.widget),(0,v.isSimpleSliceContent)(e.widget)),(t,n)=>(0,u.pipe)(_.decode(t),i.either.chain(r=>{var i;let u=r.key.indexOf("$"),c=r.key.substring(0,u>0?u:void 0),l=(0,f.getFieldCtx)(c,e),p=(0,s.SliceLegacy)(l).decode(r.value);return!p||(0,o.isLeft)(p)?a.failure(t,n):a.success({key:r.key,name:c,maybeLabel:null!==(i=r.label)&&void 0!==i?i:void 0,widget:p.right})})),t=>{let n=(0,f.getFieldCtx)(t.name,e),r=(0,s.SliceLegacy)(n).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.SlicesItemLegacy=b;let S=({model:e,content:t})=>y(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,m.migrateCompositeSlice)(e,t):g(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,v.migrateSimpleSlice)(e,t):t;t.migrateSliceItem=S},8059:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSlices=t.slicesContentWithDefaultValues=t.SlicesContent=t.SlicesLegacy=t.isSlicesContent=t.SlicesContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(32387),c=n(23535),f=n(58237),l=n(53422),p=n(74951),d=n(27835),s=n(57495);t.SlicesContentType="SliceContentType";let m=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.SlicesContentType;t.isSlicesContent=m;let h=e=>{let n=u.array((0,s.SlicesItemLegacy)(e));return new u.Type("SlicesLegacy",t.isSlicesContent,e=>(0,o.pipe)(n.decode(e),i.either.map(e=>({__TYPE__:t.SlicesContentType,value:e}))),t=>{let r=n.encode(t.value);return{content:r.map(e=>e.content),types:r.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:"Slices"})}})};t.SlicesLegacy=h,t.SlicesContent=u.type({__TYPE__:u.literal(t.SlicesContentType),value:u.array(s.SliceItemContent)}),t.slicesContentWithDefaultValues=function(e,t){var n;let r=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.choices;if(void 0===r)return t;let i=t.value.map(e=>{let t=r[e.name];if(t){let n=(0,s.sliceItemContentWithDefaultValues)(t,e.widget);return{...e,widget:n}}return e});return{...t,value:i}},t.traverseSlices=function({path:e,key:t,model:n,content:r}){return({transformWidget:i=({content:e})=>e,transformSlice:o=({content:e})=>e})=>{let u=r.value.reduce((t,r)=>{let u=n&&function(e,t,n){var r,i;let o=null===(i=null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||void 0===i?void 0:i[n.name];return(()=>{if((0,s.isSharedSliceItemContent)(n)&&o&&(0,c.isStaticSharedSlice)(o)){let e=o.variations.find(e=>e.id===n.widget.variation);return e?{type:"SharedSlice",sliceName:o.id,variationId:e.id,fields:{primary:e.primary||{},items:e.items||{}}}:void 0}})()||(()=>{var r;let i=a.ContentPath.append(a.ContentPath.serialize(e),n.name),o=Object.values((null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||{}).find(e=>{var t;return!!(0,c.isStaticSharedSlice)(e)&&!!(null===(t=e.legacyPaths)||void 0===t?void 0:t[i])});if(!o)return;let u=null==o?void 0:o.variations.find(e=>{var t;return e.id===(null===(t=o.legacyPaths)||void 0===t?void 0:t[i])});if(u)return{type:"SharedSlice",sliceName:o.id,variationId:u.id,fields:{primary:u.primary||{},items:u.items||{}}}})()||(()=>{if(o){if((0,c.isCompositeSlice)(o))return{type:"Slice","non-repeat":o["non-repeat"]||{},repeat:o.repeat||{}};if((0,c.isLegacySlice)(o))return o}})()}(e,n,r),f=(0,s.isSharedSliceItemContent)(r)?(0,p.traverseSharedSliceContent)({path:e.concat({key:r.key,type:"SharedSlice"}),sliceKey:r.key,sliceName:r.name,model:(null==u?void 0:u.type)==="SharedSlice"?u:void 0,content:r})(i,o):(0,s.isCompositeSliceItemContent)(r)?(0,l.traverseCompositeSliceContent)({path:e.concat({key:r.key,type:"Slice"}),sliceKey:r.key,sliceName:r.name,model:(null==u?void 0:u.type)==="Slice"||(null==u?void 0:u.type)==="SharedSlice"?u:void 0,content:r})(i,o):(0,s.isSimpleSliceItemContent)(r)?(0,d.traverseSimpleSliceContent)({path:e.concat({key:r.key,type:"LegacySlice"}),sliceKey:r.key,sliceName:r.name,model:u&&(null==u?void 0:u.type)!=="Slice"?u:void 0,content:r})(i,o):void 0;return f?t.concat(f):t},[]);return i({path:e,key:t,apiId:t,model:n,content:{__TYPE__:r.__TYPE__,value:u}})}}},83592:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(21925),t),(0,r.__exportStar)(n(57495),t),(0,r.__exportStar)(n(8059),t)},22583:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.repeatableContentWithDefaultNestableContentValues=t.withDefaultNestableContentValues=t.withDefaultSlicePrimaryContentValues=void 0;let r=n(23535),i=n(22443),o=n(91366);t.withDefaultSlicePrimaryContentValues=function(e,t){let n=t;for(let[u,a]of Object.entries(e)){let c=t[u];if(void 0===c){if(a.type===r.GroupFieldType)n[u]=(0,i.groupContentWithDefaultValues)(a,i.GroupContentDefaultValue);else{let f=(0,o.NestableContentDefaultValue)(a);f&&(n[u]=f)}continue}a.type===r.GroupFieldType&&(0,i.isGroupContent)(c)&&(n[u]=(0,i.groupContentWithDefaultValues)(a,c))}return n},t.withDefaultNestableContentValues=function(e,t){return Object.entries(e).reduce((e,[n,r])=>{if(void 0===t[n]){let i=(0,o.NestableContentDefaultValue)(r);return void 0!==i?{...e,[n]:i}:e}return e},t)},t.repeatableContentWithDefaultNestableContentValues=function(e,t){let n=Object.entries(e);return t.map(e=>n.reduce((t,[n,r])=>{var u;let a=e.value.find(([e])=>e===n);if("Group"===r.type){let c=(0,i.groupContentWithDefaultValues)(r,null!==(u=null==a?void 0:a[1])&&void 0!==u?u:{__TYPE__:i.GroupContentType,value:[]});return{...t,value:[...t.value.filter(([e])=>e!==n),...c?[[n,c]]:[],]}}if(!a){let f=(0,o.NestableContentDefaultValue)(r);return{...t,value:[...t.value,...f?[[n,f]]:[],]}}return t},e))}},74982:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(20168),t),(0,r.__exportStar)(n(33832),t),(0,r.__exportStar)(n(3845),t)},58237:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.hasContentType=t.hasFieldContentType=void 0;let r=n(87412),i=n(33832);function o(e){return"object"==typeof e&&null!==e&&"__TYPE__"in e}t.hasFieldContentType=function(e){return o(e)&&e.__TYPE__===i.FieldContentType&&(null==e?void 0:e.type)!==void 0&&"string"==typeof e.type&&(0,r.isRight)(i.FieldType.decode(e.type))},t.hasContentType=o},17896:function(e,t,n){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=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(69624),a=n(8597),c=n(22453);t.CustomTypeFormat={page:"page",custom:"custom"};class f extends Error{constructor(e){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=e,this.message=this._formatError(e)}_formatError(e){let t=e.map(e=>` - ${e}`);return`The following slices doesn't exists in your Prismic repository:
3
+ `}}function l(e){return o.exact(o.intersection([o.type({id:o.string,label:a.StringOrNull,repeatable:(0,u.withFallback)(o.boolean,!0),json:o.record(o.string,e),status:(0,u.withFallback)(o.boolean,!0)}),o.partial({hash:o.string,format:(0,u.withFallback)(o.keyof(t.CustomTypeFormat),"custom")}),]))}function p(e){return Object.entries(e.json).reduce((e,[,t])=>{let n=Object.entries(t);return e.concat(n)},[])}function d(e,t){let n=Object.entries(e.json).reduce((e,[n,r])=>{let i=Object.entries(r).reduce((e,[n,r])=>{let i=t(n,r);return i?{...e,[n]:i}:e},{});return{...e,[n]:i}},{});return{...e,json:n}}t.StaticCustomType=l(c.StaticSection),t.CustomType=l(c.DynamicSection),t.flattenWidgets=p,t.flattenSections=function(e){return Object.entries(e.json).reduce((e,[,t])=>{let n=Object.entries(t);return e.concat(n)},[])},t.toStatic=function(e,t){let n=Object.entries(e.json).reduce((e,[n,r])=>({...e,[n]:c.Sections.toStatic(r,t)}),{});return{...e,json:n}},t.validateSlices=function(e,t){let n=(function(e){let t=function(e){let t=p(e).filter(([,e])=>"Slices"===e.type),n=t.reduce((e,[,t])=>{let n=Object.entries(t.config&&t.config.choices?t.config.choices:{}).filter(([,e])=>"SharedSlice"===e.type).map(([e])=>e);return e.concat(n)},[]);return n}(e);return function(e){return t.map(e)}})(e)(e=>{let n=t.get(e);if(!n)return e}).filter(Boolean);return n.length>0?(0,i.left)(new f(n)):(0,i.right)(e)},t.collectWidgets=d,t.filterMissingSharedSlices=function(e,t){return d(e,(e,n)=>{if("Slices"===n.type){if(!n.config||!n.config.choices)return n;let r=Object.entries(n.config.choices).reduce((e,[n,r])=>"SharedSlice"!==r.type||t.get(n)?{...e,[n]:r}:e,{}),i={...n.config,choices:r};return{...n,config:i}}return n})},t.flattenCustomTypeFields=function(e){return Object.values(e.json).reduce((e,t)=>({...e,...t}),{})},t.collectSharedSlices=function(e){return Object.entries(e.fields).reduce((e,[,t])=>{var n;return"Slices"===t.type||"Choice"===t.type?{...e,...Object.entries((null===(n=t.config)||void 0===n?void 0:n.choices)||{}).reduce((e,[t,n])=>"SharedSlice"===n.type?{...e,[t]:n}:e,{})}:e},{})}},69879:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Sections=t.DynamicSection=t.StaticSection=t.sectionReader=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(11697),u=n(34716);function a(e){return i.record(o.WidgetKey,e)}t.sectionReader=a,t.StaticSection=a(u.StaticWidget),t.DynamicSection=a(u.DynamicWidget),t.Sections={toStatic(e,t){let n=Object.entries(e).reduce((e,[n,r])=>({...e,[n]:u.Widgets.toStatic(r,t)}),{});return n}}},10505:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiffOperation=void 0,(n=t.DiffOperation||(t.DiffOperation={})).Added="added",n.Removed="removed",n.Updated="updated"},14881:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceComparator=void 0;let r=n(68845),i=n(10505),o=n(67068);t.SliceComparator={compare(e,t){if(!e&&t)return{op:i.DiffOperation.Added,value:t};if(e&&!t)return{op:i.DiffOperation.Removed};let n=function(e,t){let n=r.Objects.zipObjects(e,t);return Object.entries(n).reduce((e,[t,n])=>"variations"===t||(null==n?void 0:n.left)===(null==n?void 0:n.right)?e:{...e,[t]:null==n?void 0:n.right},{})}(e,t),u=r.Objects.zipObjects(e&&r.Arrays.toRecord(e.variations,e=>e.id),t&&r.Arrays.toRecord(t.variations,e=>e.id)),a=Object.entries(u).reduce((e,[t,n])=>{if(!n)return e;let r=o.VariationComparator.compare(n.left,n.right);return r?{...e,[t]:r}:e},{}),c={...n,...r.Objects.isNotEmpty(a)?{variations:a}:{}};if(r.Objects.isNotEmpty(c))return{op:i.DiffOperation.Updated,value:c}}}},67068:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.VariationComparator=void 0;let r=n(68845),i=n(73045),o=n(10505);function u(e,t){let n=r.Objects.zipObjects(e,t),a=Object.entries(n).reduce((e,[t,n])=>{if(JSON.stringify(null==n?void 0:n.left)===JSON.stringify(null==n?void 0:n.right))return e;let r=(()=>{var e,t,r,a,c,f,l;if((null==n?void 0:n.left)||(null==n?void 0:n.right)){if((null==n?void 0:n.left)&&!n.right)return{op:o.DiffOperation.Removed};if(!(null==n?void 0:n.left)&&(null==n?void 0:n.right)){if((null===(e=n.right)||void 0===e?void 0:e.type)===i.GroupFieldType){let p={...n.right,config:{...n.right.config,fields:{}}};return p.config.fields=u(void 0,null===(t=n.right.config)||void 0===t?void 0:t.fields)||{},{op:o.DiffOperation.Added,value:p}}return{op:o.DiffOperation.Added,value:n.right}}if((null===(r=n.right)||void 0===r?void 0:r.type)===i.GroupFieldType){let d={...n.right,config:{...n.right.config,fields:{}}};return d.config.fields=u((null===(a=n.left)||void 0===a?void 0:a.type)===i.GroupFieldType?null===(f=null===(c=n.left)||void 0===c?void 0:c.config)||void 0===f?void 0:f.fields:void 0,null===(l=n.right.config)||void 0===l?void 0:l.fields)||{},{op:o.DiffOperation.Updated,value:d}}return{op:o.DiffOperation.Updated,value:n.right}}})();return r?{...e,[t]:r}:e},{});return r.Objects.isNotEmpty(a)?a:void 0}t.VariationComparator={compare(e,t){if(e&&!t)return{op:o.DiffOperation.Removed};if(!e&&t)return{op:o.DiffOperation.Added,value:t};let n=function(e,t){let n=r.Objects.zipObjects(e,t);return Object.entries(n).reduce((e,[t,n])=>"primary"===t||"items"===t||(null==n?void 0:n.left)===(null==n?void 0:n.right)?e:{...e,[t]:null==n?void 0:n.right},{})}(e,t),i=u(null==e?void 0:e.primary,null==t?void 0:t.primary),a=u(null==e?void 0:e.items,null==t?void 0:t.items),c={...n,...i?{primary:i}:{},...a?{items:a}:{}};if(r.Objects.isNotEmpty(c))return{op:o.DiffOperation.Updated,value:c}}}},29294:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},81566:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(10505),t),(0,r.__exportStar)(n(14881),t),(0,r.__exportStar)(n(67068),t),(0,r.__exportStar)(n(29294),t)},96742:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(32141),t),(0,r.__exportStar)(n(81566),t),(0,r.__exportStar)(n(69879),t),(0,r.__exportStar)(n(54249),t)},73045:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Group=t.GroupConfig=t.NestedGroup=t.NestedGroupConfig=t.GroupFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(11697),u=n(37581),a=n(97662);t.GroupFieldType="Group";let c=e=>i.exact(i.partial({label:u.StringOrNull,repeat:i.boolean,fields:i.record(o.WidgetKey,e)})),f=e=>i.exact(i.intersection([i.type({type:i.literal(t.GroupFieldType)}),i.partial({fieldset:u.StringOrNull,icon:i.string,description:i.string,config:c(e)}),]));t.NestedGroupConfig=c(a.NestableWidget),t.NestedGroup=f(a.NestableWidget),t.GroupConfig=c(i.union([a.NestableWidget,t.NestedGroup])),t.Group=f(i.union([a.NestableWidget,t.NestedGroup]))},80260:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UID=t.UIDConfig=t.UIDFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.UIDFieldType="UID",t.UIDConfig=i.exact(i.partial({label:o.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),t.UID=i.exact(i.intersection([i.type({type:i.literal(t.UIDFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.UIDConfig}),]))},34716:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Widgets=t.FieldType=t.DynamicWidget=t.StaticWidget=t.widgetReader=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(73045),u=n(46239),a=n(97662),c=n(8972),f=n(80260);function l(e){return i.union([f.UID,a.NestableWidget,o.Group,e])}t.widgetReader=l,t.StaticWidget=l(c.StaticSlices),t.DynamicWidget=l(c.DynamicSlices),t.FieldType=i.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,[f.UIDFieldType]:null,[o.GroupFieldType]:null,[c.SlicesFieldType]:null,[c.LegacySlicesFieldType]:null}),t.Widgets={toStatic(e,t){switch(e.type){case"Choice":case"Slices":return c.Slices.toStatic(e,t);default:return e}}}},54249:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(73045),t),(0,r.__exportStar)(n(46239),t),(0,r.__exportStar)(n(94631),t),(0,r.__exportStar)(n(66903),t),(0,r.__exportStar)(n(80260),t),(0,r.__exportStar)(n(34716),t)},13071:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanField=t.BooleanConfig=t.BooleanFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.BooleanFieldType="Boolean",t.BooleanConfig=i.exact(i.partial({label:o.StringOrNull,default_value:i.boolean,placeholder_true:i.string,placeholder_false:i.string})),t.BooleanField=i.exact(i.intersection([i.type({type:i.literal(t.BooleanFieldType)}),i.partial({config:t.BooleanConfig}),]))},98871:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Color=t.ColorConfig=t.ColorFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.ColorFieldType="Color",t.ColorConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string})),t.Color=i.exact(i.intersection([i.type({type:i.literal(t.ColorFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.ColorConfig}),]))},68829:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Date=t.DateConfig=t.DateFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.DateFieldType="Date",t.DateConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,default:i.string})),t.Date=i.exact(i.intersection([i.type({type:i.literal(t.DateFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.DateConfig}),]))},82427:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Embed=t.EmbedConfig=t.EmbedFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.EmbedFieldType="Embed",t.EmbedConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,useAsTitle:i.boolean})),t.Embed=i.exact(i.intersection([i.type({type:i.literal(t.EmbedFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.EmbedConfig}),]))},56477:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPoint=t.GeoPointConfig=t.GeoPointFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.GeoPointFieldType="GeoPoint",t.GeoPointConfig=i.exact(i.partial({label:o.StringOrNull})),t.GeoPoint=i.exact(i.intersection([i.type({type:i.literal(t.GeoPointFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.GeoPointConfig}),]))},4813:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Image=t.ImageConfig=t.Thumbnail=t.ImageFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581),u=(0,r.__importDefault)(n(62291));t.ImageFieldType="Image",t.Thumbnail=i.exact(i.intersection([i.type({name:i.string}),u.default,])),t.ImageConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,constraint:u.default,thumbnails:i.readonlyArray(t.Thumbnail)})),t.Image=i.exact(i.intersection([i.type({type:i.literal(t.ImageFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.ImageConfig}),]))},25272:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationField=t.IntegrationFieldConfig=t.IntegrationFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.IntegrationFieldType="IntegrationFields",t.IntegrationFieldConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,catalog:i.string})),t.IntegrationField=i.exact(i.intersection([i.type({type:i.literal(t.IntegrationFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.IntegrationFieldConfig}),]))},68751:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Link=t.LinkConfig=t.LinkFieldType=void 0;let r=n(87783),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(69624),a=n(37581),c=e=>{if(e instanceof Array){let t=e.reduce((e,t)=>e&&"string"==typeof t,!0);if(t)return o.success(e)}},f=e=>{if("string"==typeof e)return o.success([e])},l=new o.Type("MasksArrayString",e=>e instanceof Array,(e,t)=>i.either.chain(o.union([o.array(o.string),o.string]).validate(e,t),n=>c(n)||f(n)||o.failure(e,t)),e=>e);t.LinkFieldType="Link",t.LinkConfig=o.exact(o.partial({label:a.StringOrNull,useAsTitle:o.boolean,placeholder:o.string,select:(0,u.withFallback)(o.union([o.literal("media"),o.literal("document"),o.literal("web"),o.null,]),null),customtypes:o.readonlyArray(o.string),masks:l,tags:l,allowTargetBlank:o.boolean})),t.Link=o.exact(o.intersection([o.type({type:o.literal(t.LinkFieldType)}),o.partial({fieldset:a.StringOrNull,config:t.LinkConfig}),]))},97662:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidget=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(13071),u=n(98871),a=n(68829),c=n(82427),f=n(56477),l=n(4813),p=n(25272),d=n(68751),s=n(25286),m=n(35600),h=n(17685),v=n(99187),y=n(57225),g=n(4575),_=n(37842);t.NestableWidget=i.union([u.Color,o.BooleanField,c.Embed,f.GeoPoint,a.Date,s.Number,m.Range,h.RichText,v.Select,y.Separator,g.Text,_.Timestamp,d.Link,l.Image,p.IntegrationField,])},25286:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Number=t.NumberConfig=t.NumberFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(59054),u=n(37581);t.NumberFieldType="Number",t.NumberConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,min:i.union([i.number,o.NumberFromString]),max:i.union([i.number,o.NumberFromString]),step:i.union([i.number,o.NumberFromString])})),t.Number=i.exact(i.intersection([i.type({type:i.literal(t.NumberFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.NumberConfig}),]))},35600:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Range=t.RangeConfig=t.RangeFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(59054),u=n(37581);t.RangeFieldType="Range",t.RangeConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,min:i.union([i.number,o.NumberFromString]),max:i.union([i.number,o.NumberFromString]),step:i.union([i.number,o.NumberFromString])})),t.Range=i.exact(i.intersection([i.type({type:i.literal(t.RangeFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.RangeConfig}),]))},17685:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichText=t.RichTextConfig=t.RichTextNodeTypeCodec=t.RichTextNodeType=t.DEFAULT_OPTION=t.RichTextFieldType=void 0;let r=n(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(37581),f=(0,r.__importDefault)(n(62291));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",e=>"string"==typeof e,e=>(0,u.pipe)(a.union([a.string,a.null]).decode(e),i.either.map(e=>{if(!e)return t.DEFAULT_OPTION;let n=e.split(",").map(e=>e.trim()),r=n.filter(e=>(0,o.getOrElseW)(()=>void 0)(t.RichTextNodeTypeCodec.decode(e)));return r.length?r.join(","):t.DEFAULT_OPTION})),e=>e),p=e=>{if(!e)return a.success([])},d=e=>{if(e instanceof Object){if(!Object.entries(e).length)return a.success([]);if(e[""])return a.success(e[""].map(e=>e.name));let t=Object.entries(e).reduce((e,[,t])=>e.concat(t.map(e=>e.name)),[]).filter(Boolean);return a.success(t)}},s=e=>{if(e instanceof Array){let t=e.reduce((e,t)=>e&&"string"==typeof t,!0);if(t)return a.success(e)}},m=e=>{if("string"==typeof e)return a.success([e])},h=new a.Type("RichTextLabels",e=>e instanceof Array,(e,t)=>{let n=a.record(a.string,a.readonlyArray(a.record(a.literal("name"),a.string))),r=a.readonlyArray(a.string);return(0,u.pipe)(a.union([n,r,a.string,a.null]).decode(e),i.either.chain(n=>p(n)||s(n)||d(n)||m(n)||a.failure(e,t)))},e=>e);t.RichTextConfig=a.exact(a.partial({label:c.StringOrNull,placeholder:a.string,useAsTitle:a.boolean,single:l,multi:l,imageConstraint:f.default,labels:h,allowTargetBlank:a.boolean})),t.RichText=a.exact(a.intersection([a.type({type:a.literal(t.RichTextFieldType)}),a.partial({fieldset:c.StringOrNull,config:t.RichTextConfig}),]))},99187:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Select=t.SelectConfig=t.SelectFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.SelectFieldType="Select",t.SelectConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,default_value:i.string,options:i.readonlyArray(i.union([i.string,o.StringFromNumber,o.StringFromBoolean]))})),t.Select=i.exact(i.intersection([i.type({type:i.literal(t.SelectFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.SelectConfig}),]))},57225:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Separator=t.SeparatorConfig=t.SeparatorFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.SeparatorFieldType="Separator",t.SeparatorConfig=i.exact(i.partial({label:o.StringOrNull})),t.Separator=i.exact(i.intersection([i.type({type:i.literal(t.SeparatorFieldType)}),i.partial({config:t.SeparatorConfig}),]))},4575:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextConfig=t.TextFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.TextFieldType="Text",t.TextConfig=i.exact(i.partial({label:o.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),t.Text=i.exact(i.intersection([i.type({type:i.literal(t.TextFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.TextConfig}),]))},37842:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.TimestampConfig=t.TimestampFieldType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(37581);t.TimestampFieldType="Timestamp",t.TimestampConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,default:i.string})),t.Timestamp=i.exact(i.intersection([i.type({type:i.literal(t.TimestampFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.TimestampConfig}),]))},46239:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(13071),t),(0,r.__exportStar)(n(98871),t),(0,r.__exportStar)(n(68829),t),(0,r.__exportStar)(n(82427),t),(0,r.__exportStar)(n(56477),t),(0,r.__exportStar)(n(4813),t),(0,r.__exportStar)(n(25272),t),(0,r.__exportStar)(n(68751),t),(0,r.__exportStar)(n(97662),t),(0,r.__exportStar)(n(25286),t),(0,r.__exportStar)(n(35600),t),(0,r.__exportStar)(n(17685),t),(0,r.__exportStar)(n(99187),t),(0,r.__exportStar)(n(57225),t),(0,r.__exportStar)(n(4575),t),(0,r.__exportStar)(n(37842),t)},62291:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(11621),a=n(37581),c=new o.Type("SideConstraints",e=>!e||"number"==typeof e,(e,t)=>i.either.chain(o.union([o.literal("auto"),o.literal(""),o.Int,u.IntFromString,a.IntFromNumber,a.IntFromPixels,o.null,]).validate(e,t),e=>"auto"===e||""===e?o.success(null):o.success(e)),e=>e),f=o.partial({width:c,height:c});t.default=f},94631:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConstraint=void 0;var i=n(62291);Object.defineProperty(t,"ImageConstraint",{enumerable:!0,get:function(){return r(i).default}})},57191:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isCompositeSlice=t.CompositeSlice=t.CompositeSliceConfig=t.CompositeSliceType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(11697),u=n(37581),a=n(97662);t.CompositeSliceType="Slice",t.CompositeSliceConfig=i.exact(i.partial({label:u.StringOrNull})),t.CompositeSlice=i.exact(i.intersection([i.type({type:i.literal(t.CompositeSliceType)}),i.partial({fieldset:u.StringOrNull,description:i.string,icon:i.string,display:i.string,"non-repeat":i.record(o.WidgetKey,a.NestableWidget),repeat:i.record(o.WidgetKey,a.NestableWidget),config:t.CompositeSliceConfig}),])),t.isCompositeSlice=function(e){return"Slice"===e.type}},7816:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isLegacySlice=t.LegacySlice=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(73045),u=n(97662);t.LegacySlice=i.union([u.NestableWidget,o.NestedGroup]),t.isLegacySlice=function(e){return"Slice"!==e.type&&"SharedSlice"!==e.type}},78716:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicSharedSlice=t.isStaticSharedSlice=t.SharedSlice=t.SharedSliceType=t.Variation=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(69624),u=n(11697),a=n(97662),c=n(23084);t.Variation=i.exact(i.intersection([i.type({id:i.string,name:i.string,description:i.string,imageUrl:(0,o.withFallback)(i.string,"https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format"),docURL:i.string,version:i.string}),i.partial({display:i.string,primary:i.record(u.WidgetKey,c.SlicePrimaryWidget),items:i.record(u.WidgetKey,a.NestableWidget)}),])),t.SharedSliceType="SharedSlice";let f=i.string,l=i.string;t.SharedSlice=i.exact(i.intersection([i.type({id:i.string,type:i.literal(t.SharedSliceType),name:i.string,variations:i.readonlyArray(t.Variation)}),i.partial({description:i.string,legacyPaths:i.record(f,l)}),])),t.isStaticSharedSlice=function(e){return"SharedSlice"===e.type},t.isDynamicSharedSlice=function(e){return"SharedSlice"===e.type}},29377:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceRef=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(78716);t.SharedSliceRef=i.exact(i.type({type:i.literal(o.SharedSliceType)}))},76098:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},23084:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryWidget=t.SlicePrimaryWidget=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(73045),u=n(46239);t.SlicePrimaryWidget=i.union([u.NestableWidget,o.Group]);let a=e=>u.NestableWidget.is(e)||o.Group.is(e);t.isSlicePrimaryWidget=a},8972:function(e,t,n){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=n(87783),i=(0,r.__importStar)(n(87830)),o=n(11697),u=n(37581),a=n(57191),c=n(7816),f=n(78716),l=n(29377);function p(e){return i.exact(i.partial({label:u.StringOrNull,labels:t.SlicesLabels,choices:i.record(o.WidgetKey,i.union([c.LegacySlice,a.CompositeSlice,e]))}))}t.LegacySlicesFieldType="Choice",t.SlicesFieldType="Slices",t.SlicesLabels=i.union([i.record(i.string,i.readonlyArray(i.exact(i.intersection([i.type({name:i.string}),i.partial({display:i.string}),])))),i.null,]),t.slicesConfigReader=p,t.StaticSlicesConfig=p(f.SharedSlice),t.DynamicSlicesConfig=p(l.SharedSliceRef);let d={toStatic(e,t){let n=Object.entries(e.choices||{}).reduce((e,[n,r])=>{if("SharedSlice"!==r.type)return{...e,[n]:r};{let i=t.get(n);return i?{...e,[n]:i}:e}},{});return{...e,choices:n}}};function s(e){return i.exact(i.intersection([i.type({type:i.keyof({[t.SlicesFieldType]:null,[t.LegacySlicesFieldType]:null})}),i.partial({fieldset:u.StringOrNull,config:e}),]))}t.slicesReader=s,t.StaticSlices=s(t.StaticSlicesConfig),t.DynamicSlices=s(t.DynamicSlicesConfig),t.Slices={toStatic:(e,t)=>e.config?{...e,config:d.toStatic(e.config,t)}:e}},37182:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesTypes=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(57191),u=n(78716);t.SlicesTypes=i.keyof({[o.CompositeSliceType]:null,[u.SharedSliceType]:null})},66903:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(57191),t),(0,r.__exportStar)(n(7816),t),(0,r.__exportStar)(n(78716),t),(0,r.__exportStar)(n(29377),t),(0,r.__exportStar)(n(76098),t),(0,r.__exportStar)(n(23084),t),(0,r.__exportStar)(n(8972),t),(0,r.__exportStar)(n(37182),t)},72941:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toRecord=void 0,t.toRecord=function(e,t){return e.reduce((e,n)=>{let r=t(n);return{...e,[r]:n}},{})}},77454:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mapValues=t.isObject=t.withOptionals=t.isNotEmpty=t.zipObjects=void 0;let r=n(87783),i=n(87412),o=(0,r.__importStar)(n(87830));t.zipObjects=function(e,t){let n=[...new Set(Object.keys(e||{}).concat(Object.keys(t||{}))),];return n.reduce((n,r)=>{let i=null==e?void 0:e[r],o=null==t?void 0:t[r];return{...n,[r]:{left:i,right:o}}},{})},t.isNotEmpty=function(e){return Boolean(Object.keys(e).length)},t.withOptionals=function(e,t){return{...e,...t.reduce((e,[t,n])=>n?{...e,[t]:n}:e,{})}};let u=o.record(o.string,o.unknown);t.isObject=function(e){return(0,i.isRight)(u.decode(e))},t.mapValues=function(e,t){return Object.entries(e).reduce((e,[n,r])=>({...e,[n]:t(r,n)}),{})}},68845:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Objects=t.Arrays=t.HexaColorCode=void 0;let r=n(87783);t.HexaColorCode=(0,r.__importStar)(n(62754)),t.Arrays=(0,r.__importStar)(n(72941)),t.Objects=(0,r.__importStar)(n(77454))},42080:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArray=t.EmptyObject=t.Boolean=t.NumberOrNull=t.Number=t.StringOrNull=t.String=void 0;let r=n(87783),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(47320);t.String=(0,a.withCustomError)(u.string,()=>"The value must be a string"),t.StringOrNull=(0,a.withCustomError)(u.union([u.string,u.null]),()=>"The value must be a string or null"),t.Number=(0,a.withCustomError)(u.number,()=>"The value must be a number"),t.NumberOrNull=(0,a.withCustomError)(u.union([u.number,u.null]),()=>"The value must be a number or null"),t.Boolean=(0,a.withCustomError)(u.boolean,()=>"The value must be a boolean"),t.EmptyObject=u.UnknownRecord.pipe(new u.Type("emptyObject",e=>u.UnknownRecord.is(e),(e,t)=>Object.keys(e).length>0?u.failure(e,t,"The object is not empty."):u.success({}),u.identity)),t.EmptyArray=new u.Type("emptyArray",e=>u.UnknownArray.is(e)&&0===e.length,(e,t)=>(0,o.pipe)(u.UnknownArray.decode(e),i.either.chain(n=>n.length>0?u.failure(e,t,"The array is not empty."):u.success([]))),()=>[])},63323:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(37581);t.default=new u.Type("dateFromString",e=>e instanceof Date,(e,t)=>(0,o.pipe)(a.String.validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e.toISOString())},16905:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("dateFromStringOrNumber",e=>e instanceof Date,(e,t)=>(0,o.pipe)(u.union([u.number,u.string]).validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e)},82175:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("dateFromTsMs",e=>e instanceof Date,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e.getTime())},9141:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArrayOrElse=t.EmptyObjectOrElse=t.NullOrElse=t.DefaultOrElse=void 0;let r=n(87783),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(42080),a=e=>t=>new o.Type(`DefaultOrElse<${e.name}, ${t.name}>`,e=>null===e||t.is(e),(n,r)=>(0,i.isRight)(e.validate(n,r))?o.success(null):t.validate(n,r),e=>e?t.encode(e):void 0);t.DefaultOrElse=a;let c=e=>(0,t.DefaultOrElse)(o.null)(e);t.NullOrElse=c;let f=e=>(0,t.DefaultOrElse)(u.EmptyObject)(e);t.EmptyObjectOrElse=f;let l=e=>(0,t.DefaultOrElse)(u.EmptyArray)(e);t.EmptyArrayOrElse=l},79312:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("IntFromNumber",u.Int.is,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(e=>u.Int.is(e)?u.success(e):u.success(Math.round(e)))),u.Int.encode)},57288:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830)),a=/^([0-9]+)px$/;t.default=new u.Type("IntFromPixels",u.Int.is,(e,t)=>(0,o.pipe)(u.string.validate(e,t),(0,i.chain)(n=>{try{let r=n.match(a);if(!r)return u.failure(e,t);let i=parseInt(r[1]);return u.success(i)}catch{return u.failure(e,t)}})),String)},30487:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(47320);t.default=(0,o.withCustomError)((0,o.refineType)(i.string,"nonEmptyString",e=>e.trim().length>0),()=>"The value must be a non-empty string")},32514:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(81878),o=n(42275),u=n(87830),a=(0,r.__importDefault)(n(59941));t.default=new u.Type("nonEmptyStringOrNull",e=>"string"==typeof e||null===e,(e,t)=>(0,o.pipe)(a.default.validate(e,t),(0,i.chain)(e=>"string"==typeof e&&e.length>0?(0,u.success)(e):(0,u.success)(null))),e=>e)},63205:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(47320);t.default=(0,o.nullable)(i.number)},91776:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(42080);t.default=(e,t,n)=>o.Number.pipe(new i.Type("numberInRange",e=>o.Number.is(e),(r,o)=>r>t||r<e?i.failure(r,o,`${n} must be a number between ${e} and ${t}`):i.success(r),i.identity))},70453:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("StringFromInt",u.string.is,(e,t)=>(0,o.pipe)(u.boolean.validate(e,t),(0,i.chain)(e=>u.success(e.toString()))),e=>e)},62161:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("StringFromInt",u.string.is,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(e=>u.success(e.toString()))),e=>e)},59941:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),o=n(47320);t.default=(0,o.nullable)(i.string)},38417:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("TrimmedString",u.string.is,(e,t)=>(0,o.pipe)(u.string.validate(e,t),(0,i.chain)(e=>u.success(function(e){let t=0;for(;t<e.length&&e[t]<=" ";)t++;let n=e.length;for(;t<n&&e[n-1]<=" ";)n--;return e.substring(t,n)}(e)))),e=>e)},47320:function(e,t,n){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=n(87783),i=n(9554),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(23284),c=n(47361);t.nullable=function(e){return u.union([e,u.null,u.undefined])},t.refineType=function(e,t,n){return new u.Type(t,e.is,(t,r)=>(0,o.pipe)(e.validate(t,r),i.either.chain(e=>n(e)?u.success(e):u.failure(t,r))),e.encode)},t.filterDouble=function(e){if(""===e)return null;let t=Number(e);return Number.isNaN(t)?null:t},t.formatDateTime=function(e){return e.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(e){return e.toISOString().replace(/T.*/,"")},t.grouped=function(e,t){return e.reduce((e,n,r)=>(r%t==0?e.push([n]):e[Math.floor(r/t)].push(n),e),[])},t.objectToMap=function(e){return new Map(Object.entries(e))},t.isEmpty=function(e){for(let t in e)return!1;return!0},t.addType=function(e,t){return(0,c.mapOutput)(e,e=>({...e,__TYPE__:t}))},t.withCustomError=function(e,t){return(0,a.withValidate)(e,(n,r)=>i.either.mapLeft(e=>e.find(e=>e.message)?e:[{value:n,context:r,message:t(n,r),actual:n},])(e.validate(n,r)))}},37581:function(e,t,n){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=n(87783);(0,r.__exportStar)(n(42080),t);var i=n(63323);Object.defineProperty(t,"DateFromString",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var o=n(16905);Object.defineProperty(t,"DateFromStringOrNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}});var u=n(82175);Object.defineProperty(t,"DateFromTsMs",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}}),(0,r.__exportStar)(n(9141),t),t.Function=(0,r.__importStar)(n(47320));var a=n(79312);Object.defineProperty(t,"IntFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var c=n(57288);Object.defineProperty(t,"IntFromPixels",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var f=n(30487);Object.defineProperty(t,"NonEmptyString",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var l=n(32514);Object.defineProperty(t,"NonEmptyStringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var p=n(63205);Object.defineProperty(t,"NumberOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(p).default}});var d=n(91776);Object.defineProperty(t,"NumberRange",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}});var s=n(70453);Object.defineProperty(t,"StringFromBoolean",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var m=n(62161);Object.defineProperty(t,"StringFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(m).default}});var h=n(59941);Object.defineProperty(t,"StringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(h).default}})},81681:function(e,t,n){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 o.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return u.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(n(42104)),i=d(n(17564)),o=d(n(21105)),u=d(n(28331)),a=d(n(67565)),c=d(n(3341)),f=d(n(88087)),l=d(n(70507)),p=d(n(72333));function d(e){return e&&e.__esModule?e:{default:e}}},86243:function(e,t){function n(e){return(e+64>>>9<<4)+14+1}function r(e,t){let n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,o,u){var a,c;return r((a=r(r(t,e),r(i,u)))<<o|a>>>32-o,n)}function o(e,t,n,r,o,u,a){return i(t&n|~t&r,e,t,o,u,a)}function u(e,t,n,r,o,u,a){return i(t&r|n&~r,e,t,o,u,a)}function a(e,t,n,r,o,u,a){return i(t^n^r,e,t,o,u,a)}function c(e,t,n,r,o,u,a){return i(n^(t|~r),e,t,o,u,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let i=0;i<t.length;++i)e[i]=t.charCodeAt(i)}return function(e){let t=[],n=32*e.length,r="0123456789abcdef";for(let i=0;i<n;i+=8){let o=e[i>>5]>>>i%32&255,u=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(u)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let i=1732584193,f=-271733879,l=-1732584194,p=271733878;for(let d=0;d<e.length;d+=16){let s=i,m=f,h=l,v=p;i=o(i,f,l,p,e[d],7,-680876936),p=o(p,i,f,l,e[d+1],12,-389564586),l=o(l,p,i,f,e[d+2],17,606105819),f=o(f,l,p,i,e[d+3],22,-1044525330),i=o(i,f,l,p,e[d+4],7,-176418897),p=o(p,i,f,l,e[d+5],12,1200080426),l=o(l,p,i,f,e[d+6],17,-1473231341),f=o(f,l,p,i,e[d+7],22,-45705983),i=o(i,f,l,p,e[d+8],7,1770035416),p=o(p,i,f,l,e[d+9],12,-1958414417),l=o(l,p,i,f,e[d+10],17,-42063),f=o(f,l,p,i,e[d+11],22,-1990404162),i=o(i,f,l,p,e[d+12],7,1804603682),p=o(p,i,f,l,e[d+13],12,-40341101),l=o(l,p,i,f,e[d+14],17,-1502002290),f=o(f,l,p,i,e[d+15],22,1236535329),i=u(i,f,l,p,e[d+1],5,-165796510),p=u(p,i,f,l,e[d+6],9,-1069501632),l=u(l,p,i,f,e[d+11],14,643717713),f=u(f,l,p,i,e[d],20,-373897302),i=u(i,f,l,p,e[d+5],5,-701558691),p=u(p,i,f,l,e[d+10],9,38016083),l=u(l,p,i,f,e[d+15],14,-660478335),f=u(f,l,p,i,e[d+4],20,-405537848),i=u(i,f,l,p,e[d+9],5,568446438),p=u(p,i,f,l,e[d+14],9,-1019803690),l=u(l,p,i,f,e[d+3],14,-187363961),f=u(f,l,p,i,e[d+8],20,1163531501),i=u(i,f,l,p,e[d+13],5,-1444681467),p=u(p,i,f,l,e[d+2],9,-51403784),l=u(l,p,i,f,e[d+7],14,1735328473),f=u(f,l,p,i,e[d+12],20,-1926607734),i=a(i,f,l,p,e[d+5],4,-378558),p=a(p,i,f,l,e[d+8],11,-2022574463),l=a(l,p,i,f,e[d+11],16,1839030562),f=a(f,l,p,i,e[d+14],23,-35309556),i=a(i,f,l,p,e[d+1],4,-1530992060),p=a(p,i,f,l,e[d+4],11,1272893353),l=a(l,p,i,f,e[d+7],16,-155497632),f=a(f,l,p,i,e[d+10],23,-1094730640),i=a(i,f,l,p,e[d+13],4,681279174),p=a(p,i,f,l,e[d],11,-358537222),l=a(l,p,i,f,e[d+3],16,-722521979),f=a(f,l,p,i,e[d+6],23,76029189),i=a(i,f,l,p,e[d+9],4,-640364487),p=a(p,i,f,l,e[d+12],11,-421815835),l=a(l,p,i,f,e[d+15],16,530742520),f=a(f,l,p,i,e[d+2],23,-995338651),i=c(i,f,l,p,e[d],6,-198630844),p=c(p,i,f,l,e[d+7],10,1126891415),l=c(l,p,i,f,e[d+14],15,-1416354905),f=c(f,l,p,i,e[d+5],21,-57434055),i=c(i,f,l,p,e[d+12],6,1700485571),p=c(p,i,f,l,e[d+3],10,-1894986606),l=c(l,p,i,f,e[d+10],15,-1051523),f=c(f,l,p,i,e[d+1],21,-2054922799),i=c(i,f,l,p,e[d+8],6,1873313359),p=c(p,i,f,l,e[d+15],10,-30611744),l=c(l,p,i,f,e[d+6],15,-1560198380),f=c(f,l,p,i,e[d+13],21,1309151649),i=c(i,f,l,p,e[d+4],6,-145523070),p=c(p,i,f,l,e[d+11],10,-1120210379),l=c(l,p,i,f,e[d+2],15,718787259),f=c(f,l,p,i,e[d+9],21,-343485551),i=r(i,s),f=r(f,m),l=r(l,h),p=r(p,v)}return[i,f,l,p]}(function(e){if(0===e.length)return[];let t=8*e.length,r=new Uint32Array(n(t));for(let i=0;i<t;i+=8)r[i>>5]|=(255&e[i/8])<<i%32;return r}(e),8*e.length))};t.default=f},49030:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:n}},67565:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},72333:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(88087),r&&r.__esModule?r:{default:r}),o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");let t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};t.default=o},88403:function(e,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(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&!(n="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 n(r)};let n,r=new Uint8Array(16)},39852:function(e,t){function n(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function r(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){let t=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){let o=unescape(encodeURIComponent(e));e=[];for(let u=0;u<o.length;++u)e.push(o.charCodeAt(u))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let a=e.length/4+2,c=Math.ceil(a/16),f=Array(c);for(let l=0;l<c;++l){let p=new Uint32Array(16);for(let d=0;d<16;++d)p[d]=e[64*l+4*d]<<24|e[64*l+4*d+1]<<16|e[64*l+4*d+2]<<8|e[64*l+4*d+3];f[l]=p}f[c-1][14]=(e.length-1)*8/4294967296,f[c-1][14]=Math.floor(f[c-1][14]),f[c-1][15]=(e.length-1)*8&4294967295;for(let s=0;s<c;++s){let m=new Uint32Array(80);for(let h=0;h<16;++h)m[h]=f[s][h];for(let v=16;v<80;++v)m[v]=r(m[v-3]^m[v-8]^m[v-14]^m[v-16],1);let y=i[0],g=i[1],_=i[2],b=i[3],S=i[4];for(let T=0;T<80;++T){let I=Math.floor(T/20),R=r(y,5)+n(I,g,_,b)+S+t[I]+m[T]>>>0;S=b,b=_,_=r(g,30)>>>0,g=y,y=R}i[0]=i[0]+y>>>0,i[1]=i[1]+g>>>0,i[2]=i[2]+_>>>0,i[3]=i[3]+b>>>0,i[4]=i[4]+S>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]};t.default=i},70507:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var r,i=(r=n(88087),r&&r.__esModule?r:{default:r});let o=[];for(let u=0;u<256;++u)o.push((u+256).toString(16).slice(1));function a(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}var c=function(e,t=0){let n=a(e,t);if(!(0,i.default)(n))throw TypeError("Stringified UUID is invalid");return n};t.default=c},42104:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(93827),r&&r.__esModule?r:{default:r}),o=n(70507);let u,a,c=0,f=0;var l=function(e,t,n){let r=t&&n||0,l=t||Array(16),p=(e=e||{}).node||u,d=void 0!==e.clockseq?e.clockseq:a;if(null==p||null==d){let s=e.random||(e.rng||i.default)();null==p&&(p=u=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==d&&(d=a=(s[6]<<8|s[7])&16383)}let m=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:f+1,v=m-c+(h-f)/1e4;if(v<0&&void 0===e.clockseq&&(d=d+1&16383),(v<0||m>c)&&void 0===e.nsecs&&(h=0),h>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");c=m,f=h,a=d,m+=122192928e5;let y=((268435455&m)*1e4+h)%4294967296;l[r++]=y>>>24&255,l[r++]=y>>>16&255,l[r++]=y>>>8&255,l[r++]=255&y;let g=m/4294967296*1e4&268435455;l[r++]=g>>>8&255,l[r++]=255&g,l[r++]=g>>>24&15|16,l[r++]=g>>>16&255,l[r++]=d>>>8|128,l[r++]=255&d;for(let _=0;_<6;++_)l[r+_]=p[_];return t||(0,o.unsafeStringify)(l)};t.default=l},17564:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(37967)),i=o(n(86243));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v3",48,i.default);t.default=u},37967:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,u,a){var c;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=(0,o.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+e.length);if(f.set(r),f.set(e,r.length),(f=n(f))[6]=15&f[6]|t,f[8]=63&f[8]|128,u){a=a||0;for(let l=0;l<16;++l)u[a+l]=f[l];return u}return(0,i.unsafeStringify)(f)}try{r.name=e}catch(c){}return r.DNS=u,r.URL=a,r};var r,i=n(70507),o=(r=n(72333),r&&r.__esModule?r:{default:r});let u="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=u;let a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a},21105:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(49030)),i=u(n(93827)),o=n(70507);function u(e){return e&&e.__esModule?e:{default:e}}var a=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();e=e||{};let u=e.random||(e.rng||i.default)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){n=n||0;for(let a=0;a<16;++a)t[n+a]=u[a];return t}return(0,o.unsafeStringify)(u)};t.default=a},28331:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(37967)),i=o(n(39852));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v5",80,i.default);t.default=u},88087:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(88403),r&&r.__esModule?r:{default:r}),o=function(e){return"string"==typeof e&&i.default.test(e)};t.default=o},3341:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(88087),r&&r.__esModule?r:{default:r}),o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};t.default=o},80832:function(e,t,n){function r(e,t){return e.filter((e,n)=>n!==t)}function i(e){return e[e.length-1]}function o(e,t){let n=new Set;return e.filter(e=>{let r=t(e);return!n.has(r)&&(n.add(r),!0)})}function u(e,t,n){if(t===n||a(e,t)||a(e,n))return e;let r=e.slice(),i=r.splice(t,1)[0];return r.splice(n,0,i),r}function a(e,t){return t<0||t>=e.length}function c(e,t,n=1){return Array.from({length:(t-e)/n+1},(t,r)=>e+r*n)}function f(e,...t){let n=e.slice();return 0===t.length&&(t=[e=>e]),n.sort((e,n)=>{for(let r of t){let i=r(e),o=r(n);if(null==i)return 1;if(null==o)return -1;if("string"==typeof i&&"string"==typeof o){let u=i.localeCompare(o);if(0!==u)return u}else if("number"==typeof i&&"number"==typeof o){if(i<o)return -1;if(i>o)return 1}}return 0}),n}n.d(t,{$E:function(){return r},DY:function(){return f},Z$:function(){return i},mN:function(){return o},pB:function(){return u},w6:function(){return c}})},91493:function(e,t,n){n.d(t,{Xb:function(){return r}});let r={isAvailable(){let e="__$$__test";try{return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}},read(e){try{return window.localStorage.getItem(e)??void 0}catch{return}},write(e,t){try{window.localStorage.setItem(e,t)}catch{}},readJSON(e,t){try{let n=r.read(e);if(!n)return;let i=JSON.parse(n),o=t.safeParse(i);return o.success?o.data:void 0}catch{return}}}},11232:function(e,t,n){function r(e){var t;let n=new Date(e);return isNaN(n.getTime())?void 0:n}function i(e,t="en-US"){let n=new Intl.DateTimeFormat(t,{year:"numeric",month:"short",day:"numeric"}),r=new Intl.DateTimeFormat(t,{hour:"2-digit",minute:"2-digit"}),i=n.format(e),o=r.format(e).toLocaleLowerCase();return`${i} ${o}`}n.d(t,{_L:function(){return i},_O:function(){return r}})},19245:function(e,t,n){n.d(t,{WY:function(){return i},xb:function(){return a}});var r=n(97867);async function i(e,t){let{okType:n,signal:i,headers:a,body:c,timeout:f=2*6e4,...l}=t,p=new Headers(a);!p.has("Content-Type")&&c&&p.set("Content-Type","application/json"),"multipart/form-data"===p.get("Content-Type")&&p.delete("Content-Type");let d=u();d&&p.set("Authorization",`Bearer ${d}`);let s="application/json"===p.get("Content-Type")?JSON.stringify(c):c,m=!1;try{let h=t.method&&"GET"!==t.method?void 0:new AbortController,v=function(e){let t=new AbortController;function n(){for(let r of(t.abort(),e))r.removeEventListener("abort",n)}for(let r of e){if(r.aborted){n();break}r.addEventListener("abort",n)}return t.signal}([null==h?void 0:h.signal,i].filter(r.$));h&&setTimeout(()=>{m=!0,h.abort()},f);let y=await fetch(e,{...l,body:s,headers:p,signal:v}),{status:g}=y,_=y.clone(),b=await y.json().catch(e=>_.text());if(y.ok){let S=n.safeParse(b);if(!S.success)throw new o(e,{type:"validation",status:g,cause:S.error});return S.data}throw new o(e,{type:"http",status:g,body:b})}catch(w){var T,I,R;throw(T=w,T instanceof o)?w:(I=w,I instanceof DOMException&&"AbortError"===I.name)?new o(e,{type:m?"timeout":"abort"}):new o(e,{type:"unknown",cause:(R=w,R instanceof Error?{name:R.name,message:R.message,stack:R.stack}:R)})}}class o extends Error{constructor(e,t){super(JSON.stringify({url:e,...t},null,2)),this.detail=t,this.name="RequestError"}}let u=()=>"";function a(e){return"token"===e?"omit":"include"}},87248:function(e,t,n){n.d(t,{vM:function(){return r}});function r(e,t){let n=new Map,r=0;for(let i of e){let o=t(i,r++),u=n.get(o);u?u.push(i):n.set(o,[i])}return n}},59131:function(e,t,n){n.d(t,{d:function(){return i}});let r=0;function i(){return r++}},34736:function(e,t,n){function r(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function i(e,...t){let n={...e};return t.forEach(e=>{delete n[e]}),n}function o(e){return Object.keys(e)}n.d(t,{Q8:function(){return r},XP:function(){return o},ud:function(){return i}})},32001:function(e,t,n){n.d(t,{$P:function(){return c},DX:function(){return l},NW:function(){return o},Nr:function(){return u},R9:function(){return i},Yz:function(){return p},pQ:function(){return a},vW:function(){return f}});var r=n(2784);function i(e){let t=(0,r.useRef)(e);return(0,r.useLayoutEffect)(()=>{t.current=e}),(0,r.useMemo)(()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)},[])}function o(){let[e,t]=(0,r.useState)({});return(0,r.useCallback)(()=>t({}),[])}function u(e,t,n){let i=(0,r.useRef)(!1);a(e,()=>{i.current=!0}),(0,r.useEffect)(()=>{if(!i.current)return;i.current=!1;let r=setTimeout(()=>n(e),t);return()=>clearTimeout(r)},[n,t,e])}function a(e,t){let[n,i]=(0,r.useState)(e);n!==e&&(i(e),t(e))}function c(e){let{ms:t=300,startTransition:n=e=>e(),synchronize:o=!1}=e,a=e.synchronize?e.state:e.initialState,[c,f]=(0,r.useState)(a),[l,p]=(0,r.useState)(a);return u(c,t,i(()=>n(()=>p(c)))),o&&c!==a&&f(a),{debouncedValue:l,set:f,value:c}}function f(e){(0,r.useEffect)(()=>{function t(){"hidden"!==document.visibilityState&&e()}return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)})}function l(e,t){return!!(e.current&&t instanceof Node)&&e.current.contains(t)}function p(e,t){let n=i(e);(0,r.useEffect)(()=>{if(null!==t){let e=setInterval(function(){n()},t);return()=>clearInterval(e)}return()=>{}},[t,n])}},34234:function(e,t,n){function r(e,t){for(let n of e)if(t(n))return!0;return!1}function i(e,t){let n=new Set;for(let r of e.values())n.add(t(r));return n}function o(e){let t=e.values().next();if(!t.done)return t.value}function u(...e){return e.reduce((e,t)=>new Set([...e,...t]),new Set)}function a(e,t){for(let n of e)if(t(n))return n}n.d(t,{G:function(){return r},G0:function(){return u},Ps:function(){return o},UI:function(){return i},sE:function(){return a}})},47304:function(e,t,n){function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function i(e,t){return e.length<=t?e:`${null==e?void 0:e.slice(0,t).trim()}...`}function o(e){if(0===e)return"0 Bytes";let t=Math.floor(Math.log(e)/Math.log(1024)),n=["Bytes","KB","MB","GB","TB"][t];return n?`${(e/Math.pow(1024,t)).toFixed(2)} ${n}`:`${e} Bytes`}n.d(t,{kC:function(){return r},td:function(){return o},tx:function(){return i}})},65662:function(e,t,n){n.d(t,{Nk:function(){return g},Fs:function(){return h},gw:function(){return u},YC:function(){return c},NN:function(){return _},q_:function(){return a},QT:function(){return o}});var r=n(2784),i=n(32001);function o(e,t){(function(e,t){let n=(0,i.NW)();(0,i.vW)(()=>{var r;let i=m.getFetcherConfig(e).revalidationStrategy;(null==i?void 0:i.type)!=="never"&&null!=i&&i.onFocus&&null!=(r=s(e,t))&&r.then(n).catch(()=>{})})})(e,t),d(e,function(n){let r=v(e,t),i=v(e,n);return r===i}),function(e,t){let n=(0,r.useContext)(g);if(!n){console.warn("It is not recommended to use editor-support->Suspense without a editor-ui->ErrorBoundary above it.");return}n.registerRequest(e,t)}(e,t);let n=m.get(e,t);if(!n)throw function(e,t){let{promise:n,start:r}=l(e,t);return m.set(e,t,{state:"fetching",promise:n,start:r}),n}(e,t);if("fetching"===n.state)throw n.promise;if(n.ok)return n.body;throw n.error}async function u(e,t){var n;return null==(n=s(e,t))?void 0:n.then(()=>f(e,t)).catch(()=>{})}function a(e){d(e,()=>!0);let t=m.getFetcherMap(e);return t?[...t.values()].flatMap(e=>"fetching"===e.state?[]:e.ok?e.body:[]):[]}function c(e,t){let n=m.getFetcherMap(e);if(n){for(let[r,i]of n){if("fetched"!==i.state||!i.ok)continue;let o=t(i.body);void 0===o?n.delete(r):n.set(r,{...i,body:o})}f(e)}}function f(e,t){y.forEach(n=>n(e,t))}function l(e,t){let n=m.getFetcherMap(e),{concurrency:r}=m.getFetcherConfig(e);if(!n||function(e,t){let n=0,r=e.next();for(;!r.done;)t(r.value)&&n++,r=e.next();return n}(n.values(),b)<r)return{promise:p(e,t)};let i,[o,u]=[new Promise(e=>{i=e}),()=>i()];return{promise:o.then(()=>p(e,t)),start:u}}function p(e,t){return e(...t).then(n=>(m.set(e,t,{state:"fetched",ok:!0,body:n}),n)).catch(n=>{m.set(e,t,{state:"fetched",ok:!1,error:n})}).finally(()=>{let t=m.getFetcherMap(e);if(!t)return;let n=function(e,t){let n=e.next();for(;!n.done;){if(t(n.value))return n.value;n=e.next()}}(t.values(),S);null==n||n.start()})}function d(e,t){let n=(0,i.NW)();(0,r.useEffect)(()=>{function r(r,i){e===r&&(i&&!t(i)||n())}return y.push(r),()=>{let e=y.indexOf(r);y.splice(e,1)}},[e,n,t])}function s(e,t){let n=m.get(e,t);if(!n||"fetched"!==n.state)return;let{promise:r,start:i}=l(e,t);return n.ok?m.set(e,t,{state:"revalidating",promise:r,start:i,ok:!0,body:n.body}):m.set(e,t,{state:"revalidating",promise:r,start:i,ok:!1,error:n.error}),r}let m=function(){let e=new Map,t=new Map,n={cacheCapacity:500,revalidationStrategy:{type:"swr",onFocus:!0},concurrency:10};function r(t){return e.get(t)??n}return{get(e,n){let r=v(e,n),i=t.get(e);if(!i||!i.has(r))return;let o=i.get(r);return i.delete(r),void 0!==o&&i.set(r,o),o},getFetcherMap:e=>t.get(e),set(e,n,i){let o=t.get(e);o||(o=new Map,t.set(e,o));let u=r(e),a=v(e,n);o.size!==u.cacheCapacity||o.has(a)||o.delete(o.keys().next().value),o.set(a,i)},has(e,n){let r=v(e,n),i=t.get(e),o=null==i?void 0:i.get(r);if(!o)return!1;let u="fetched"===o.state,a="revalidating"===o.state&&o.ok;return u||a},getFetcherConfig:r,registerFetcherConfig(t,r){e.set(t,{...n,...r})},clear(e,n){if(!n){t.delete(e);return}let r=t.get(e);if(!r)return;let i=v(e,n);r.delete(i)},clearAll(){t.clear()},clearAllFetcherConfigs(){e.clear()}}}(),h=m;function v(e,t){let n=e.length-t.length;if(0===n)return t.join(`
4
+ `);let r=[...t];for(let i=0;i<n;i++)r.push(void 0);return r.join(`
5
+ `)}let y=[],g=(0,r.createContext)(void 0);function _(e){let{fetcher:t,requestParams:n,validator:r,onCacheInvalidated:o,every:u=null}=e,c=a(t);function f(){t(...n).then(e=>r(e,c)&&o()).catch(e=>console.warn(e))}(0,i.vW)(f),(0,i.Yz)(f,u)}function b(e){return"fetching"===e.state||"revalidating"===e.state}function S(e){return b(e)&&!!e.start}},97867:function(e,t,n){n.d(t,{$:function(){return r}});function r(e){return null!=e}},4727:function(e,t,n){n.d(t,{S$:function(){return o},aO:function(){return u},ju:function(){return i}});var r=n(47304);function i(e){try{return new URL(e)}catch{return}}function o(e){try{return e.host.split(".").slice(0,-1).filter(e=>"www"!==e).map(r.kC)[0]??""}catch{return""}}function u(e){let{params:t}=e;return Object.entries(t).reduce((e,[t,n])=>void 0!==n?{...e,[t]:n}:e,{})}},62283:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.IncompatibleMockConfigError=void 0,t.IncompatibleMockConfigError=class extends Error{constructor(e,t){super(`The ${e} 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=e,this.fieldType=t}}},24662:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentMock=void 0;let r=n(23535),i=n(73605),o=n(32361);t.DocumentMock={generate(e,t={},n){var u,a,c;return(0,r.flattenWidgets)(e).map(([e,r])=>{let u=(null==n?void 0:n.value)&&n.value[e],a=function(e,t,n){switch(e.type){case"Choice":case"Slices":return o.SliceZoneMock.generate(e,t,n);case"Group":return i.GroupMock.generate(e,n);case"UID":return i.UIDMock.generate(e,n);default:return i.NestableWidgetMock.generate(e,n)}}(r,t,u);return[e,a]}).reduce((e,[t,n])=>({...e,[t]:n}),{})}}},73605:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948);(0,r.__exportStar)(n(24662),t),(0,r.__exportStar)(n(93103),t)},15801:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.randomInt=t.slug=void 0;var i=n(91249);Object.defineProperty(t,"slug",{enumerable:!0,get:function(){return r(i).default}}),t.randomInt=function(e=0,t=100){return Math.floor(Math.random()*(t-e+1)+e)}},91249:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948),i=(0,r.__importDefault)(n(93953)),o=n(15801);t.default=function(e){return function t(){let n=function(e){let t=e[(0,o.randomInt)(0,e.length-1)];if(!t)throw Error("Error while generating a slug.");return t}(i.default);return e&&(e.exactly&&n.length!=e.exactly||e.min&&n.length<e.min||e.max&&n.length>e.max)?t():n}()}},44609:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GroupMock=t.randomGroupBlock=void 0;let r=n(33832),i=n(23535),o=n(62283),u=n(93103);function a(e,n){return e.map(([e,r])=>{let a=null==n?void 0:n[e];if(r.type===i.GroupFieldType){if(a&&a.type!==i.GroupFieldType)throw new o.IncompatibleMockConfigError(a.type,r.type);return[e,t.GroupMock.generate(r,a)]}if(a&&a.type!==r.type)throw new o.IncompatibleMockConfigError(a.type,r.type);return[e,u.NestableWidgetMock.generate(r,a)]})}t.randomGroupBlock=a,t.GroupMock={generate(e,t){let n=(null==t?void 0:t.value)||function(e,t=1,n={}){if(!e.config||!e.config.fields)return[];let r=Object.entries(e.config.fields);return Array(t).fill(null).map(()=>a(r,n))}(e,null==t?void 0:t.nbBlocks,null==t?void 0:t.fields);return{__TYPE__:r.GroupContentType,value:n.map(e=>({__TYPE__:r.GroupItemContentType,value:e}))}},patch(e,n,o){if(e.op===i.DiffOperation.Removed)return;let a=(null==n?void 0:n.value)||Array((null==o?void 0:o.nbBlocks)||1).fill({__TYPE__:r.GroupItemContentType,value:[]}),c=a.map(n=>{var a;let c=Object.fromEntries(n.value);return Object.entries(null!==(a=e.value.config.fields)&&void 0!==a?a:{}).forEach(([e,n])=>{var a;let f=c[e],l=null===(a=null==o?void 0:o.fields)||void 0===a?void 0:a[e],p;(0,r.isGroupContent)(f)&&(!l||(null==l?void 0:l.type)===i.GroupFieldType)?p=t.GroupMock.patch(n,f,l):(0,r.isGroupContent)(f)||(null==l?void 0:l.type)===i.GroupFieldType||(p=u.NestableWidgetMock.patch(n,f,l)),p?c[e]=p:delete c[e]}),{__TYPE__:r.GroupItemContentType,value:Object.entries(c)}});return{__TYPE__:r.GroupContentType,value:c}}}},73042:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceMock=void 0;let r=n(74982),i=n(74982),o=n(23535),u=n(74702),a=n(93103);function c(e,t){return function(e,t){let n=(null==t?void 0:t.nbItemsBlocks)||1;return{__TYPE__:i.SharedSliceContentType,variation:e.id,primary:e.primary?(0,a.randomGroupBlock)(Object.entries(e.primary),null==t?void 0:t.primaryFields).reduce((e,[t,n])=>({...e,[t]:n}),{}):{},items:e.items?Array(n).fill(null).map(()=>{var n,r;return n=Object.entries(e.items||{}),r=null==t?void 0:t.itemFields,n.map(([e,t])=>{let n=r&&r[e];return[e,a.NestableWidgetMock.generate(t,n)]})}).map(e=>({__TYPE__:r.GroupItemContentType,value:e})):[]}}(e,t)}function f(e,t,n){let i=Object.entries(e).reduce((e,[i,c])=>{var f;let l=null===(f=t.find(([e])=>e===i))||void 0===f?void 0:f[1],p=null==n?void 0:n[i],d;return(0,r.isGroupContent)(l)||(null==p?void 0:p.type)===o.GroupFieldType||c.op===u.DiffOperation.Removed||c.value.type===o.GroupFieldType?(!l||(0,r.isGroupContent)(l))&&(!p||p.type===o.GroupFieldType)&&(d=a.GroupMock.patch(c,l,p)):d=a.NestableWidgetMock.patch(c,l,p),{...e,...d?{[i]:d}:{}}},{}),c=t.reduce((t,[n,r])=>{let o=e[n]?i[n]:r;return o?{...t,[n]:o}:t},{});return{...c,...i}}t.SharedSliceMock={generate(e,t){var n;if(null==t?void 0:t.value)return{__TYPE__:i.SharedSliceContentType,...t.value};let r=null!==(n=e.variations.find(e=>e.id===(null==t?void 0:t.variation)))&&void 0!==n?n:e.variations[0];if(!r)throw Error(`Something happened during Shared slice generation. No variations were configured for slice ${e.id}.`);let o=(null==t?void 0:t.variations)&&t.variations[r.id];return c(r,o)},patch(e,t,n){var i,o;switch(e.op){case u.DiffOperation.Removed:if(!(null==n?void 0:n.variation)||n.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 ${n.variation}`)};case u.DiffOperation.Added:if(t)return{ok:!1,error:Error(`Content already exists for slice ${e.value.id}.`)};if(!(null==n?void 0:n.variation)||e.value.variations.find(e=>e.id===n.variation))return{ok:!0,result:this.generate(e.value,n)};return{ok:!1,error:Error(`Configured variation ${n.variation} not found in slice ${e.value.id} definition.`)};case u.DiffOperation.Updated:{let a=null!=t&&t.variation?(null==n?void 0:n.variation)&&t.variation!==(null==n?void 0:n.variation)?{ok:!1,error:Error(`Variation ${t.variation} from the content doesn't match the config ${null==n?void 0:n.variation}.`)}:{ok:!0,result:t.variation}:(null==n?void 0:n.variation)?{ok:!0,result:n.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=e.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(e,t,n,i){switch(t.op){case u.DiffOperation.Removed:return{ok:!0,result:void 0};case u.DiffOperation.Added:if(!n)return{ok:!0,result:c(t.value,i)};return{ok:!1,error:Error(`Content already exists for variation ${n.variation}.`)};case u.DiffOperation.Updated:{let o=t.value.primary&&(null==n?void 0:n.primary)?f(t.value.primary,Object.entries(null==n?void 0:n.primary),null==i?void 0:i.primaryFields):(null==n?void 0:n.primary)||{},a=(()=>{if(!t.value.items||null==n||!n.items)return(null==n?void 0:n.items)||[];{let e=t.value.items;return n.items.map(t=>({__TYPE__:r.GroupItemContentType,value:Object.entries(f(e,t.value,null==i?void 0:i.itemFields))}))}})();return{ok:!0,result:{__TYPE__:"SharedSliceContent",variation:e,primary:o,items:a}}}}}(l,p,t,p.op!==u.DiffOperation.Removed?null===(o=null==n?void 0:n.variations)||void 0===o?void 0:o[l]:void 0)}}}}},32361:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceZoneMock=void 0;let r=n(74982),i=n(60130),o=n(93103),u=n(92947);t.SliceZoneMock={generate(e,t={},n){var a;if(!(null===(a=e.config)||void 0===a?void 0:a.choices))return{__TYPE__:r.SlicesContentType,value:[]};let c=Object.entries(e.config.choices).reduce((e,[r,a])=>{let c=(null==n?void 0:n.value)&&n.value[r],f;switch(a.type){case"SharedSlice":{let l=t[r];if(!l){console.error(`You must provide the definition of the Shared Slice ${r} to get mocks.`);break}f=o.SharedSliceMock.generate(l,c);break}case"Slice":break;case"Group":f=o.GroupMock.generate(a);break;default:f=u.NestableWidgetMock.generate(a)}return f?e.concat({key:`${r}$${(0,i.v4)()}`,name:r,maybeLabel:void 0,widget:f}):e},[]);return{__TYPE__:r.SlicesContentType,value:c}}}},32033:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDMock=void 0;let r=n(74982),i=n(15801);t.UIDMock={generate(e,t){let n=(null==t?void 0:t.value)||(0,i.slug)({min:3,max:10});return{__TYPE__:r.UIDContentType,value:n}}}},93103:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948);(0,r.__exportStar)(n(44609),t),(0,r.__exportStar)(n(92947),t),(0,r.__exportStar)(n(73042),t),(0,r.__exportStar)(n(32033),t)},42386:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanMock=void 0;let r=n(74982),i=n(74702);t.BooleanMock={generate(e,t){let n="boolean"==typeof(null==t?void 0:t.value)?t.value:.5>Math.random();return{__TYPE__:r.BooleanContentType,value:n}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Boolean"===e.diff.value.type){let n=this.patch(e.diff,e.content&&e.content.__TYPE__!==r.BooleanContentType?void 0:e.content,(null===(t=e.config)||void 0===t?void 0:t.type)==="Boolean"?e.config:void 0);return{result:n}}}}},98017:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorMock=void 0;let r=n(74982),i=n(74982),o=n(74702);t.ColorMock={generate(e,t){let n=(null==t?void 0:t.value)||function(){let e="#";for(let t=0;t<6;t++)e+="0123456789abcdef"[Math.floor(16*Math.random())];return e}();return{__TYPE__:i.FieldContentType,value:n,type:"Color"}},applyPatch(e){var t;if(e.diff.op===o.DiffOperation.Removed)return{result:void 0};if("Color"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isColorContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Color"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(e.value,n)}}}},21276:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DateMock=void 0;let r=n(74982),i=n(74702);function o(e){let t=e.toISOString().split("T")[0];if(!t)throw Error("Something happened during Date generation.");return t}function u(e=new Date(2012,0,1),t=new Date){let n=new Date(e.getTime()+Math.random()*(t.getTime()-e.getTime()));return o(n)}t.DateMock={generate(e,t){let n=(null==t?void 0:t.value)?o(t.value):(null==t?void 0:t.start)&&(null==t?void 0:t.end)?u(t.start,t.end):u(new Date(2012,0,1),new Date);return{__TYPE__:r.FieldContentType,type:"Date",value:n}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Date"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isDateContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Date"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},60300:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedMock=void 0;let r=n(78948),i=n(74982),o=n(74702),u=(0,r.__importDefault)(n(19108));t.EmbedMock={generate:(e,t)=>(function(e){var t;let n=e||(null===(t=u.default[Math.floor(Math.random()*u.default.length)])||void 0===t?void 0:t.oembed);if(!n)throw Error("Something happened during Embed generation.");return{...n,all:n,__TYPE__:i.EmbedContentType}})(null==t?void 0:t.value),applyPatch(e){var t;if(e.diff.op===o.DiffOperation.Removed)return{result:void 0};if("Embed"===e.diff.value.type){let n=this.patch(e.diff,(0,i.isEmbedContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Embed"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(e.value,n)}}}},95441:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointMock=void 0;let r=n(78948),i=n(74982),o=n(74702),u=(0,r.__importDefault)(n(88416));t.GeoPointMock={generate(e,t){let n=(null==t?void 0:t.value)||function(){let e=u.default[Math.floor(Math.random()*u.default.length)];if(!e)throw Error("Something happened during GeoPoint generation.");return{latitude:e.points.latitude,longitude:e.points.longitude}}();return{__TYPE__:i.GeoPointContentType,position:{lat:n.latitude,lng:n.longitude}}},applyPatch(e){var t;if(e.diff.op===o.DiffOperation.Removed)return{result:void 0};if("GeoPoint"===e.diff.value.type){let n=this.patch(e.diff,(0,i.isGeoPointContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="GeoPoint"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(e.value,n)}}}},66947:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageMock=t.random=void 0;let r=n(78948),i=n(74982),o=n(74702),u=(0,r.__importDefault)(n(15542)),a=n(15801),c=u.default,f=(e,t)=>{let[n,r]=(()=>{let{width:n,height:r}=null!=t?t:{};return n&&r?[n,r]:n?[n,Math.round(e.height*(n/e.width))]:r?[Math.round(e.width*(r/e.height)),r]:[e.width,e.height]})(),i=Math.max(n/e.width,r/e.height),o=Math.round((e.width-n/i)/2),u=Math.round((e.height-r/i)/2);return{width:n,height:r,rect:{x:o,y:u,width:Math.round(n/i),height:Math.round(r/i)}}},l=(e,t,n)=>{let r=new URL(e),{x:i,y:o,width:u,height:a}=t;return r.searchParams.set("rect",[i,o,u,a].join(",")),r.searchParams.set("w",n.width.toString()),r.searchParams.set("h",n.height.toString()),r.toString()};function p(e){var t,n;let[r,i,o]=(()=>{let t=e.images[(0,a.randomInt)(0,e.images.length-1)],n=null==t?void 0:t.url.split("?")[0];if(!n)throw Error("Something happened during Image generation.");return[n,t.width,t.height]})(),{width:u,height:c,rect:p}=f({width:i,height:o},e.constraints),d=Boolean((null===(t=e.constraints)||void 0===t?void 0:t.width)||(null===(n=e.constraints)||void 0===n?void 0:n.height)),s=d?l(r,p,{width:u,height:c}):r;return{origin:{id:e.id,url:r,width:i,height:o},url:s,width:u,height:c,edit:{zoom:1,crop:{x:p.x,y:p.y},background:"transparent"}}}function d(e,t=c){var n,r,o;let u=p({id:"main",constraints:null===(n=e.config)||void 0===n?void 0:n.constraint,images:t}),a=null===(o=null===(r=e.config)||void 0===r?void 0:r.thumbnails)||void 0===o?void 0:o.map(e=>[e.name,p({id:e.name,constraints:{width:e.width,height:e.height},images:t}),]),f=a?{thumbnails:a.reduce((e,[t,n])=>({...e,[t]:n}),{})}:{};return{__TYPE__:i.ImageContentType,...u,...f}}t.random=d,t.ImageMock={generate:(e,t)=>d(e,(null==t?void 0:t.value)&&[t.value]),applyPatch(e){if(e.diff.op===o.DiffOperation.Removed)return{result:void 0};if("Image"===e.diff.value.type){let t=this.patch(e.diff,(0,i.isImageContent)(e.content)?e.content:void 0);return{result:t}}},patch(e,t){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(e.value)}}}},54595:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldMock=void 0;let r=n(74982),i=n(74702);t.IntegrationFieldMock={generate(e,t){let n=(null==t?void 0:t.value)||"integration-field-product-id";return{__TYPE__:r.IntegrationFieldContentType,value:n}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("IntegrationFields"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isIntegrationFieldContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="IntegrationFields"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},50107:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentLinkMock=void 0;let r=n(74982);t.DocumentLinkMock={generate:e=>r.DocumentLinkContent.encode({__TYPE__:r.DocumentLinkType,id:"mock_document_id"})}},79241:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalLinkMock=void 0;let r=n(78948),i=n(74982),o=(0,r.__importDefault)(n(83777));t.ExternalLinkMock={generate(e,t){let n=(null==t?void 0:t.value)&&{__TYPE__:i.ExternalLinkType,url:t.value}||function(){let e=o.default,t=Math.floor(Math.random()*e.length),n=e[t];if(!n)throw Error("Something happened during Web link generation.");return{__TYPE__:i.ExternalLinkType,url:n}}();return i.ExternalLinkContent.encode(n)}}},25891:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.MediaLinkMock=void 0;let r=n(74982);t.MediaLinkMock={generate(e,t){let n=(null==t?void 0:t.value)||{__TYPE__:r.FileLinkType,id:"mock_Media_link",kind:"image/jpeg",name:"mock_name",url:"https://source.unsplash.com/daily",size:"0"};return r.FileLinkContent.encode(n)}}},33610:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkMock=void 0;let r=n(78948),i=n(74982),o=n(74702),u=n(50107),a=n(79241),c=n(25891);t.LinkMock={generate(e,t){let n=(()=>{var n;switch(null===(n=e.config)||void 0===n?void 0:n.select){case"document":return u.DocumentLinkMock.generate(e);case"web":default:return a.ExternalLinkMock.generate(e,(null==t?void 0:t.value)&&t.value);case"media":return c.MediaLinkMock.generate(e,(null==t?void 0:t.value)&&t.value)}})();return{__TYPE__:i.LinkContentType,value:n}},applyPatch(e){var t;if(e.diff.op===o.DiffOperation.Removed)return{result:void 0};if("Link"===e.diff.value.type){let n=this.patch(e.diff,(0,i.isLinkContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Link"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Added:case o.DiffOperation.Updated:return this.generate(e.value,n)}}},(0,r.__exportStar)(n(50107),t),(0,r.__exportStar)(n(79241),t),(0,r.__exportStar)(n(25891),t)},628:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberMock=void 0;let r=n(74982),i=n(74702);t.NumberMock={generate(e,t){var n,i,o;let u=(null===(n=e.config)||void 0===n?void 0:n.min)?(null==t?void 0:t.min)&&t.min>e.config.min?t.min:e.config.min:0,a=(null===(i=e.config)||void 0===i?void 0:i.max)?(null==t?void 0:t.max)&&t.max<e.config.max?t.max:e.config.max:100,c=(null===(o=e.config)||void 0===o?void 0:o.step)?(null==t?void 0:t.step)&&t.step>e.config.step?t.step:e.config.step:1,f=((null==t?void 0:t.value)?t.value:function(e,t,n){let r=Math.floor(Math.random()*(t-e))+e;return r%n==0?r:Math.min(r+(n-r%n),t)}(u,a,c)).toString();return{__TYPE__:r.FieldContentType,value:f,type:"Number"}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Number"===e.diff.value.type){let n=this.patch(e.diff,e.content&&e.content.__TYPE__!==r.FieldContentType?void 0:e.content,(null===(t=e.config)||void 0===t?void 0:t.type)==="Number"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},38206:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeMock=void 0;let r=n(74982),i=n(74702);t.RangeMock={generate(e,t){var n,i,o;let u=(null===(n=e.config)||void 0===n?void 0:n.min)?(null==t?void 0:t.min)&&t.min>e.config.min?t.min:e.config.min:0,a=(null===(i=e.config)||void 0===i?void 0:i.max)?(null==t?void 0:t.max)&&t.max<e.config.max?t.max:e.config.max:100,c=(null===(o=e.config)||void 0===o?void 0:o.step)?(null==t?void 0:t.step)&&t.step>e.config.step?t.step:e.config.step:1,f=((null==t?void 0:t.value)?t.value:function(e,t,n){let r=Math.floor(Math.random()*(t-e))+e;return r%n==0?r:Math.min(r+(n-r%n),t)}(u,a,c)).toString();return{__TYPE__:r.FieldContentType,value:f,type:"Range"}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Range"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isRangeContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Range"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},13319:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextMockConfig=t.Patterns=t.LoremDefaultConfig=void 0;let r=n(23535),i=n(72788),o=n(15801);t.LoremDefaultConfig={sentencesPerParagraph:{min:1,max:3},wordsPerSentence:{min:4,max:16}},t.Patterns={PARAGRAPH:{title:"Simple Paragraph",test:e=>e.some(e=>e===r.RichTextNodeType.paragraph),value:()=>[r.RichTextNodeType.paragraph],description:"A single paragraph with a variant number of words."},HEADING:{title:"Section Title",test:e=>e.some(t.RichTextMockConfig.isHeading),value:e=>[e.find(t.RichTextMockConfig.isHeading)||r.RichTextNodeType.heading1,],description:"A single heading (h1 to h6) with a variant number of words."},STORY:{title:"Story",test:e=>e.some(t.RichTextMockConfig.isHeading)&&e.some(e=>e===r.RichTextNodeType.paragraph),value:e=>[e.find(t.RichTextMockConfig.isHeading)||r.RichTextNodeType.heading1,...t.RichTextMockConfig.optionalType(e,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:e=>0===e.indexOf("heading"),isText:e=>e===r.RichTextNodeType.paragraph||t.RichTextMockConfig.isHeading(e),isImage:e=>e===r.RichTextNodeType.image,optionalType:(e,t)=>e.find(e=>e===t)&&Math.random()>.5?[t]:[],findMatchingPattern(e){let n=Object.entries(t.Patterns).find(([,t])=>t.test(e));return n&&n.length?n[1]:t.RichTextMockConfig.INITIAL_CONFIG.pattern},generateText(e,n){let r=new i.LoremIpsum(n);if(t.RichTextMockConfig.isHeading(e)){let u=(0,o.slug)({min:5,max:10});return[u[0]&&u[0].toUpperCase(),...u.slice(1)].join("")}return r.generateParagraphs(1)}}},35650:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextMock=void 0;let r=n(78948),i=n(74982),o=n(23535),u=n(74702),a=n(66947),c=n(13319);t.RichTextMock={generate(e,t){let n=(null==t?void 0:t.value)||function(e,t){var n,r;let i=((null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.multi)||(null===(r=null==e?void 0:e.config)||void 0===r?void 0:r.single)||`${o.RichTextNodeType.paragraph}`).split(",").map(e=>e),u=(null==t?void 0:t.pattern)&&c.Patterns[t.pattern]||c.RichTextMockConfig.findMatchingPattern(i),f=u.value(i),l=Array((null==t?void 0:t.nbBlocks)||c.RichTextMockConfig.INITIAL_CONFIG.blocks).fill(null).map(()=>f.map(e=>{if(c.RichTextMockConfig.isText(e))return{type:e,content:{text:c.RichTextMockConfig.generateText(e,c.LoremDefaultConfig)}};let t=(0,a.random)({type:"Image"});return{type:o.RichTextNodeType.image,data:t}}));return l.flat()}(e,t);return{__TYPE__:i.RichTextContentType,value:n}},applyPatch(e){var t;if(e.diff.op===u.DiffOperation.Removed)return{result:void 0};if("StructuredText"===e.diff.value.type){let n=this.patch(e.diff,(0,i.isRichTextContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="StructuredText"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(e.value,n)}}},(0,r.__exportStar)(n(13319),t)},20999:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectMock=void 0;let r=n(74982),i=n(74702),o="mock_option";t.SelectMock={generate(e,t){let n=(null==t?void 0:t.value)||function(e){if(!e.config)return o;if(e.config.default_value&&.5>Math.random())return e.config.default_value;if(!e.config.options)return o;let t=Math.floor(Math.random()*e.config.options.length);return e.config.options[t]||o}(e);return{__TYPE__:r.FieldContentType,value:n,type:"Select"}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Select"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isSelectContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Select"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},14259:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorMock=void 0;let r=n(74982),i=n(74702);t.SeparatorMock={generate:()=>({__TYPE__:r.SeparatorContentType}),applyPatch(e){if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Separator"===e.diff.value.type){let t=this.patch(e.diff,(0,r.isSeparatorContent)(e.content)?e.content:void 0);return{result:t}}},patch(e,t){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value)}}}},44395:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextMock=void 0;let r=n(74982),i=n(74702),o=n(15801);t.TextMock={generate(e,t){var n,i;let u=(null==t?void 0:t.value)||(n=null==t?void 0:t.minChar,i=null==t?void 0:t.maxChar,(0,o.slug)({...n?{min:n}:{},...i?{max:i}:{}}));return{__TYPE__:r.FieldContentType,value:u,type:"Text"}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Text"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isTextContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Text"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},4424:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampMock=void 0;let r=n(74982),i=n(74702);function o(e){return e.toISOString().slice(0,19)+"Z"}function u(e=new Date(2012,0,1),t=new Date){let n=new Date(e.getTime()+Math.random()*(t.getTime()-e.getTime()));return o(n)}t.TimestampMock={generate(e,t){let n=(null==t?void 0:t.value)?o(t.value):(null==t?void 0:t.start)&&(null==t?void 0:t.end)?u(t.start,t.end):u(new Date(2012,0,1),new Date);return{__TYPE__:r.FieldContentType,type:"Timestamp",value:n}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Timestamp"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isTimestampContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Timestamp"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},92947:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidgetMock=void 0;let r=n(78948),i=n(74702),o=n(42386),u=n(98017),a=n(21276),c=n(60300),f=n(95441),l=n(66947),p=n(54595),d=n(33610),s=n(628),m=n(38206),h=n(35650),v=n(20999),y=n(14259),g=n(44395),_=n(4424);(0,r.__exportStar)(n(42386),t),(0,r.__exportStar)(n(98017),t),(0,r.__exportStar)(n(21276),t),(0,r.__exportStar)(n(60300),t),(0,r.__exportStar)(n(95441),t),(0,r.__exportStar)(n(66947),t),(0,r.__exportStar)(n(54595),t),(0,r.__exportStar)(n(33610),t),(0,r.__exportStar)(n(628),t),(0,r.__exportStar)(n(38206),t),(0,r.__exportStar)(n(35650),t),(0,r.__exportStar)(n(20999),t),(0,r.__exportStar)(n(14259),t),(0,r.__exportStar)(n(44395),t),(0,r.__exportStar)(n(4424),t),t.NestableWidgetMock={generate(e,t){switch(e.type){case"Boolean":return o.BooleanMock.generate(e,(null==t?void 0:t.type)==="Boolean"?t:void 0);case"Color":return u.ColorMock.generate(e,(null==t?void 0:t.type)==="Color"?t:void 0);case"Link":return d.LinkMock.generate(e,(null==t?void 0:t.type)==="Link"?t:void 0);case"Date":return a.DateMock.generate(e,(null==t?void 0:t.type)==="Date"?t:void 0);case"Embed":return c.EmbedMock.generate(e,(null==t?void 0:t.type)==="Embed"?t:void 0);case"GeoPoint":return f.GeoPointMock.generate(e,(null==t?void 0:t.type)==="GeoPoint"?t:void 0);case"Image":return l.ImageMock.generate(e);case"IntegrationFields":return p.IntegrationFieldMock.generate(e,(null==t?void 0:t.type)==="IntegrationFields"?t:void 0);case"Number":return s.NumberMock.generate(e,(null==t?void 0:t.type)==="Number"?t:void 0);case"Range":return m.RangeMock.generate(e,(null==t?void 0:t.type)==="Range"?t:void 0);case"StructuredText":return h.RichTextMock.generate(e,(null==t?void 0:t.type)==="StructuredText"?t:void 0);case"Select":return v.SelectMock.generate(e,(null==t?void 0:t.type)==="Select"?t:void 0);case"Text":return g.TextMock.generate(e,(null==t?void 0:t.type)==="Text"?t:void 0);case"Timestamp":return _.TimestampMock.generate(e,(null==t?void 0:t.type)==="Timestamp"?t:void 0);case"Separator":return y.SeparatorMock.generate(e)}},patch(e,t,n){if(e.op===i.DiffOperation.Removed)return;let r={diff:e,content:t,config:n},b=u.ColorMock.applyPatch(r)||a.DateMock.applyPatch(r)||_.TimestampMock.applyPatch(r)||v.SelectMock.applyPatch(r)||m.RangeMock.applyPatch(r)||g.TextMock.applyPatch(r)||s.NumberMock.applyPatch(r)||o.BooleanMock.applyPatch(r)||h.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);return null==b?void 0:b.result}}},25242:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.generateSliceMock=t.generateDocumentMock=void 0;let r=n(78948),i=n(73605);t.generateDocumentMock=function(e,t,n){let r=i.DocumentMock.generate(e,t,n);return n=>n?n(e,t,r):r},t.generateSliceMock=function(e,t){let n=i.SharedSliceMock.generate(e,t);return t=>t?t(e,n):n},(0,r.__exportStar)(n(62283),t),(0,r.__exportStar)(n(73605),t),(0,r.__exportStar)(n(86449),t)},54775:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(73985),i={urlRewriter:{optimizeImageUrl:e=>e,rewriteImageUrl:e=>e.url||"/mockURL",rewriteFileUrl:e=>e,rewriteS3Bucket:e=>e,enforceCDN:e=>e},emptyStringInsteadOfNull:!1,Extension:{DocEncoder:{encodeDocId:r.Extensions.encodeDocId},encoders:r.Extensions.IDEncoders},LinkResolver:{buildUrl:e=>"/"}};t.default=i},86449:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.renderSliceMock=t.renderDocumentMock=void 0;let r=n(78948),i=n(88985),o=n(23535),u=n(60130),a=(0,r.__importDefault)(n(54775));t.renderDocumentMock=function(e,t,n){let r=Object.entries(t).filter(e=>Boolean(e[1])),u=Object.entries(n).filter(e=>Boolean(e[1])),c=(0,o.toStatic)(e,new Map(r)),f={customTypeId:e.id,fields:Object.fromEntries((0,o.flattenSections)(c))};return(0,i.DocumentRenderer)(a.default).renderMocks(f,u)},t.renderSliceMock=function(e,t){return{...(0,i.SharedSliceRenderer)(a.default).renderMocks(e,t),id:`${e.id}$${(0,u.v4)()}`,slice_type:e.id}}},32387:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ContentPath=void 0,t.ContentPath={serialize:e=>e.map(e=>e.key).join("::"),current:e=>e[e.length-1],append:(e,t)=>e+"::"+t,make:e=>e.reduce((e,{key:t,type:n})=>t?e.concat({key:t,type:n}):e,[])}},9085:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getAssetOrThrow=void 0;let n=e=>t=>{let n=e[t];if(!n)throw Error(`Missing asset with id '${t}'!`);return n};t.getAssetOrThrow=n},97381:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getEmbedOrThrow=void 0;let n=e=>t=>{let n=e[t];if(!n)throw Error(`Missing embed with url '${t}'`);return n};t.getEmbedOrThrow=n},55962:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.HexaColor=void 0;let n=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;t.HexaColor={is:e=>n.test(e)}},70402:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetKey=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(35002),u=RegExp("^[^<>]+$");t.WidgetKey=(0,o.refineType)(i.string,"WidgetKey",e=>0===e.length||u.test(e))},31289:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(9085),t),(0,r.__exportStar)(n(97381),t),(0,r.__exportStar)(n(70402),t)},20168:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateDocument=t.collectWidgets=t.traverseDocument=t.fillDocumentWithDefaultValues=t.DocumentLegacy=t.Document=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(32387),f=n(31289),l=n(23535),p=n(33832),d=n(3845);t.Document=a.record(f.WidgetKey,p.WidgetContent);let s=a.record(f.WidgetKey,a.unknown),m=e=>new a.Type("Document",e=>!!e&&"object"==typeof e,t=>(0,u.pipe)(s.decode(t),i.either.map(t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,d.defaultCtx)(n,e),u=(0,p.WidgetLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:{...t,[n]:u.right}},{}))),t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,d.defaultCtx)(n,e),o=(0,p.WidgetLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}}));function h(e){let t=Object.entries(e),{types:n,widgets:r}=t.reduce((e,[t,n])=>{if(t.endsWith("_TYPE")){let r=d.FieldOrSliceType.decode(n);if((0,o.isRight)(r))return{...e,types:e.types.set(t.substring(0,t.length-5),r.right)}}return t.endsWith("_POSITION")||t.endsWith("_TYPE")?e:{...e,widgets:{...e.widgets,[t]:n}}},{types:new Map,widgets:{}}),i=e.slugs_INTERNAL||[],u=e.uid;return{widgets:r,types:n,uid:u,slugs:i}}function v(e){return{customTypeId:null==e?void 0:e.id,fields:Object.fromEntries((0,l.flattenSections)(e))}}function y({document:e,customType:t}){let n=t&&l.StaticCustomType.is(t)?v(t):t;return({transformWidget:t=({content:e})=>e,transformSlice:r=({content:e})=>e})=>{let i=n&&Object.entries(n.fields).reduce((e,[t,n])=>({...e,[t]:n}),{});return Object.entries(e).reduce((e,[o,u])=>{let a=i&&i[o],f=c.ContentPath.make([{key:null==n?void 0:n.customTypeId,type:"CustomType"},{key:o,type:"Widget"},]),l=(()=>{switch(u.__TYPE__){case"SliceContentType":return(0,p.traverseSlices)({path:f,key:o,model:(null==a?void 0:a.type)==="Slices"||(null==a?void 0:a.type)==="Choice"?a:void 0,content:u})({transformWidget:t,transformSlice:r});case"GroupContentType":return(0,p.traverseGroupContent)({path:f,key:o,apiId:o,model:(null==a?void 0:a.type)==="Group"?a:void 0,content:u})(t);default:return t({path:f,key:o,apiId:o,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:u})}})();return{...e,...l?{[o]:l}:{}}},{})}}function g(e,t){let n=l.StaticCustomType.is(t)?v(t):t,r=Object.values((0,l.collectSharedSlices)(n)).some(e=>Boolean(e.legacyPaths));return r?y({document:e,customType:t})({transformSlice:p.migrateSliceItem}):e}t.DocumentLegacy={_codec:m,extractMetadata:h,parse:function(e,t){let n=(0,u.pipe)(a.record(f.WidgetKey,a.unknown).decode(e),i.either.chain(e=>{let{types:t,widgets:n}=h(e);return m(t).decode(n)}));return(0,o.isLeft)(n)?void 0:g(n.right,t)},encode:function(e){let t=m().encode(e);return{...t.content,...t.types}}},t.fillDocumentWithDefaultValues=function(e,t){let{fields:n}=e&&l.StaticCustomType.is(e)?v(e):e;return Object.entries(n).reduce((e,[n,r])=>{let i=t[n],o=(()=>{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 o?{...e,[n]:o}:e},t)},t.traverseDocument=y,t.collectWidgets=function(e,t){let n={};return y({document:e})({transformWidget({content:e,path:r}){let i=c.ContentPath.serialize(r);return t(e,r)&&(n[i]=e),e}}),n},t.migrateDocument=g},3845:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCtx=t.getFieldCtx=t.LegacyContentCtx=t.FieldOrSliceType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(99814);t.FieldOrSliceType=i.union([o.FieldType,o.SlicesTypes]);class u{constructor(e,t,n){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=e,this.fieldPath=t||[],this.allTypes=n||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(e,t,n){return new u(e,[...t.fieldPath,t.fieldKey,...n||[]],t.allTypes)},t.defaultCtx=function(e,t=new Map){return new u(e,[],t)}},82646:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyContent=t.EmptyLegacy=t.isEmptyContent=t.EmptyContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237);t.EmptyContentType="EmptyContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.EmptyContentType;t.isEmptyContent=c;let f=u.union([u.null,u.type({value:u.null}),]),l=e=>new u.Type("EmptyLegacy",t.isEmptyContent,n=>(0,o.pipe)(f.decode(n),i.either.map(()=>({type:e,__TYPE__:t.EmptyContentType}))),()=>null);t.EmptyLegacy=l,t.EmptyContent=u.strict({type:u.string,__TYPE__:u.literal(t.EmptyContentType)})},22443:function(e,t,n){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=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23535),f=n(3845),l=n(58237),p=n(91366),d=n(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),m=e=>new a.Type("GroupItemLegacy",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.GroupItemContentType,n=>{let r=(0,u.pipe)(s.decode(n),i.either.map(n=>{let r=Object.entries(n).reduce((n,[r,i])=>{let u=(0,f.getFieldCtx)(r,e),a=u.fieldType===c.GroupFieldType?(0,t.GroupLegacy)(u).decode(i):(0,p.NestableLegacy)(u).decode(i);return!a||(0,o.isLeft)(a)?n:[...n,[r,a.right]]},[]);return{value:r,__TYPE__:t.GroupItemContentType}}));return r},n=>n.value.reduce((n,[r,i])=>{let o=(0,f.getFieldCtx)(r,e),u=(0,t.isGroupContent)(i)?(0,t.GroupLegacy)(o).encode(i):(0,p.NestableLegacy)(o).encode(i);return u?{content:{...n.content,[r]:u.content},types:{...n.types,...u.types}}:n},{content:{},types:{}}));t.GroupItemLegacy=m;let h=e=>{let n=a.array(a.union([a.null,(0,t.GroupItemLegacy)(e)])),r=a.array((0,t.GroupItemLegacy)(e));return new a.Type("GroupLegacy",t.isGroupContent,e=>(0,u.pipe)(n.decode(e),i.either.map(e=>({value:e.map(e=>null===e?{__TYPE__:t.GroupItemContentType,value:[]}:e),__TYPE__:t.GroupContentType}))),t=>{let n=r.encode(t.value);return{content:n.map(e=>e.content),types:n.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:c.GroupFieldType})}})};function v({path:e,key:t,apiId:n,model:r,content:i}){return o=>{var u;let a=y({path:e,model:null===(u=null==r?void 0:r.config)||void 0===u?void 0:u.fields,content:i.value})(o);return o({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,value:a}})}}function y({path:e,model:n,content:r}){return i=>r.map((r,o)=>{let u=e.concat([{key:o.toString(),type:"GroupItem"},]),a=r.value.reduce((e,[r,o])=>{let a=null==n?void 0:n[r],f;return(f=a&&(null==a?void 0:a.type)!==c.GroupFieldType||o.__TYPE__!==t.GroupContentType?i({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:a,content:o}):v({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:a,content:o})(i))&&((0,p.isNestableContent)(f)||(0,t.isGroupContent)(f))?e.concat([[r,f]]):e},[]);return{__TYPE__:r.__TYPE__,value:a}})}t.GroupLegacy=h,t.groupContentWithDefaultValues=function(e,t){var n;let r=null===(n=e.config)||void 0===n?void 0:n.fields;return r?{...t,value:(0,d.repeatableContentWithDefaultNestableContentValues)(r,t.value)}:t},t.traverseGroupContent=v,t.traverseGroupItemsContent=y},40174:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDContent=t.UIDLegacy=t.isUIDContent=t.UIDContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237);t.UIDContentType="UIDContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.UIDContentType;t.isUIDContent=c;let f=e=>new u.Type("UIDLegacy",t.isUIDContent,e=>(0,o.pipe)(u.string.decode(e),i.either.map(e=>t.UIDContent.encode({value:e,__TYPE__:t.UIDContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"UID"}}));t.UIDLegacy=f,t.UIDContent=u.type({__TYPE__:u.literal(t.UIDContentType),value:u.string})},93057:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetLegacy=t.isWidgetContent=t.WidgetContent=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(22443),u=n(91366),a=n(83592),c=n(40174);t.WidgetContent=i.union([o.GroupContent,u.NestableContent,c.UIDContent,a.SlicesContent,]);let f=e=>(0,o.isGroupContent)(e)||(0,u.isNestableContent)(e)||(0,c.isUIDContent)(e)||(0,a.isSlicesContent)(e);t.isWidgetContent=f;let l=e=>({decode(t){if(!e.fieldType)return;let n=(()=>{switch(e.fieldType){case"UID":return(0,c.UIDLegacy)(e);case"Group":return(0,o.GroupLegacy)(e);case"Choice":case"Slices":return(0,a.SlicesLegacy)(e);default:return(0,u.NestableLegacy)(e)}})();if(n)return n.decode(t)},encode(t){switch(t.__TYPE__){case c.UIDContentType:return(0,c.UIDLegacy)(e).encode(t);case o.GroupContentType:return(0,o.GroupLegacy)(e).encode(t);case a.SlicesContentType:return(0,a.SlicesLegacy)(e).encode(t);default:return(0,u.NestableLegacy)(e).encode(t)}}});t.WidgetLegacy=l},33832:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(82646),t),(0,r.__exportStar)(n(22443),t),(0,r.__exportStar)(n(91366),t),(0,r.__exportStar)(n(83592),t),(0,r.__exportStar)(n(40174),t),(0,r.__exportStar)(n(93057),t)},47451:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanContentDefaultValue=t.BooleanContent=t.BooleanLegacy=t.isBooleanContent=t.BooleanContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237);t.BooleanContentType="BooleanContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.BooleanContentType;t.isBooleanContent=c;let f=e=>new u.Type("BooleanLegacy",t.isBooleanContent,e=>(0,o.pipe)(u.boolean.decode(e),i.either.map(e=>t.BooleanContent.encode({value:e,__TYPE__:t.BooleanContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"Boolean"}}));t.BooleanLegacy=f,t.BooleanContent=u.strict({__TYPE__:u.literal(t.BooleanContentType),value:u.boolean});let l=e=>{var n;return(null===(n=e.config)||void 0===n?void 0:n.default_value)!==void 0?{__TYPE__:t.BooleanContentType,value:e.config.default_value||!1}:void 0};t.BooleanContentDefaultValue=l},11836:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedContent=t.EmbedLegacy=t.EmbedContentLegacy=t.isEmbedContent=t.EmbedContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(8597),c=n(58237);t.EmbedContentType="EmbedContent";let f=e=>(0,c.hasContentType)(e)&&e.__TYPE__===t.EmbedContentType;t.isEmbedContent=f,t.EmbedContentLegacy=u.exact(u.intersection([u.type({embed_url:u.string,type:u.string}),u.partial({version:u.union([u.string,u.number,u.null]),title:a.StringOrNull,author_name:a.StringOrNull,author_url:a.StringOrNull,provider_name:a.StringOrNull,provider_url:a.StringOrNull,cache_age:u.union([u.string,u.number,u.null]),thumbnail_url:a.StringOrNull,thumbnail_width:a.NumberOrNull,thumbnail_height:a.NumberOrNull,html:a.StringOrNull}),]));let l=e=>new u.Type("EmbedLegacy",t.isEmbedContent,e=>(0,o.pipe)(t.EmbedContentLegacy.decode(e),i.either.map(n=>({...n,all:e,__TYPE__:t.EmbedContentType}))),t=>({content:t.all,types:{[e.keyOfType]:"Embed"}}));t.EmbedLegacy=l,t.EmbedContent=u.intersection([t.EmbedContentLegacy,u.strict({__TYPE__:u.literal(t.EmbedContentType),all:u.unknown}),])},77124:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContent=t.ColorLegacy=t.isColorContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Color"===e.type;t.isColorContent=p;let d=e=>new u.Type("ColorLegacy",t.isColorContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.ColorContent.encode({value:e,type:a.ColorFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.ColorFieldType}}));t.ColorLegacy=d,t.ColorContent=u.strict({type:u.literal(a.ColorFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},62544:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DateContent=t.DateLegacy=t.isDateContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Date"===e.type;t.isDateContent=p;let d=e=>new u.Type("DateLegacy",t.isDateContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.DateContent.encode({value:e,type:a.DateFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.DateFieldType}}));t.DateLegacy=d,t.DateContent=u.strict({type:u.literal(a.DateFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},83768:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberContent=t.NumberLegacy=t.isNumberContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Number"===e.type;t.isNumberContent=p;let d=e=>new u.Type("NumberLegacy",t.isNumberContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.NumberContent.encode({value:e,type:a.NumberFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.NumberFieldType}}));t.NumberLegacy=d,t.NumberContent=u.strict({type:u.literal(a.NumberFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},8944:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeContent=t.RangeLegacy=t.isRangeContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Range"===e.type;t.isRangeContent=p;let d=e=>new u.Type("RangeLegacy",t.isRangeContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.RangeContent.encode({value:e,type:a.RangeFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.RangeFieldType}}));t.RangeLegacy=d,t.RangeContent=u.strict({type:u.literal(a.RangeFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},13221:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectContentDefaultValue=t.SelectContent=t.SelectLegacy=t.isSelectContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Select"===e.type;t.isSelectContent=p;let d=e=>new u.Type("SelectLegacy",t.isSelectContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.SelectContent.encode({value:e,type:a.SelectFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.SelectFieldType}}));t.SelectLegacy=d,t.SelectContent=u.strict({type:u.literal(a.SelectFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)});let s=e=>{var t;return(null===(t=e.config)||void 0===t?void 0:t.default_value)?{__TYPE__:l.FieldContentType,type:a.SelectFieldType,value:e.config.default_value||""}:void 0};t.SelectContentDefaultValue=s},38295:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextContent=t.TextLegacy=t.isTextContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Text"===e.type;t.isTextContent=p;let d=e=>new u.Type("TextLegacy",t.isTextContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.TextContent.encode({value:e,type:a.TextFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.TextFieldType}}));t.TextLegacy=d,t.TextContent=u.strict({type:u.literal(a.TextFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},79137:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampContent=t.TimestampLegacy=t.isTimestampContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Timestamp"===e.type;t.isTimestampContent=p;let d=e=>new u.Type("TimestampLegacy",t.isTimestampContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.TimestampContent.encode({value:e,type:a.TimestampFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.TimestampFieldType}}));t.TimestampLegacy=d,t.TimestampContent=u.strict({type:u.literal(a.TimestampFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},84929:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContentType=void 0,t.FieldContentType="FieldContent"},86649:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContent=t.FieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(77124),u=n(62544),a=n(83768),c=n(8944),f=n(13221),l=n(38295),p=n(79137);t.FieldType=i.keyof({Text:null,Date:null,Timestamp:null,Color:null,Number:null,Range:null,Select:null}),t.FieldContent=i.union([u.DateContent,o.ColorContent,a.NumberContent,c.RangeContent,f.SelectContent,l.TextContent,p.TimestampContent,]),(0,r.__exportStar)(n(77124),t),(0,r.__exportStar)(n(84929),t),(0,r.__exportStar)(n(62544),t),(0,r.__exportStar)(n(83768),t),(0,r.__exportStar)(n(8944),t),(0,r.__exportStar)(n(13221),t),(0,r.__exportStar)(n(38295),t),(0,r.__exportStar)(n(79137),t)},48896:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointContent=t.GeoPointLegacy=t.isGeoPointContent=t.GeoPointContentType=void 0;let r=n(98227),i=n(9554),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(58237);t.GeoPointContentType="GeoPointContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.GeoPointContentType;t.isGeoPointContent=c;let f=u.strict({position:u.strict({lat:u.number,lng:u.number})}),l=e=>new u.Type("GeoPointLegacy",t.isGeoPointContent,e=>(0,o.pipe)(f.decode(e),i.either.map(e=>t.GeoPointContent.encode({...e,__TYPE__:t.GeoPointContentType}))),t=>({content:{position:t.position},types:{[e.keyOfType]:"GeoPoint"}}));t.GeoPointLegacy=l,t.GeoPointContent=u.intersection([f,u.strict({__TYPE__:u.literal(t.GeoPointContentType)}),])},15764:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageContent=t.ImageLegacy=t.ImageContentView=t.isImageContent=t.ImageContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(17160),c=n(8597),f=n(58237);t.ImageContentType="ImageContent";let l=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.ImageContentType;t.isImageContent=l;let p=u.exact(u.type({id:u.string,url:u.string,width:u.number,height:u.number}));t.ImageContentView=u.exact(u.intersection([u.type({origin:p,width:u.number,height:u.number,edit:u.type({zoom:u.number,crop:u.type({x:u.number,y:u.number}),background:u.string})}),u.partial({url:u.string,credits:c.NonEmptyStringOrNull,alt:c.NonEmptyStringOrNull,provider:c.StringOrNull}),]));let d=u.intersection([t.ImageContentView,u.partial({thumbnails:u.record(u.string,t.ImageContentView)}),]),s=e=>new u.Type("ImageLegacy",t.isImageContent,e=>(0,o.pipe)(d.decode(e),i.either.map(e=>t.ImageContent.encode({...e,__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:{[e.keyOfType]:"Image"}}));t.ImageLegacy=s,t.ImageContent=u.intersection([d,u.strict({__TYPE__:u.literal(t.ImageContentType)}),])},9583:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldContent=t.IntegrationFieldLegacy=t.isIntegrationFieldContent=t.IntegrationFieldContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237);t.IntegrationFieldContentType="IntegrationFieldsContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.IntegrationFieldContentType;t.isIntegrationFieldContent=c;let f=e=>new u.Type("IntegrationFieldLegacy",t.isIntegrationFieldContent,e=>(0,o.pipe)(u.string.decode(e),i.either.map(e=>t.IntegrationFieldContent.encode({value:e,__TYPE__:t.IntegrationFieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"IntegrationFields"}}));t.IntegrationFieldLegacy=f,t.IntegrationFieldContent=u.strict({__TYPE__:u.literal(t.IntegrationFieldContentType),value:u.string})},72202:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkContent=t.Link=t.LinkContentLegacy=t.LinkLegacy=t.isLinkContent=t.LinkContentType=t.ExternalLinkContent=t.ExternalLinkType=t.DocumentLinkContent=t.DocumentLinkType=t.FileLinkContent=t.FileLinkType=t.ImageLinkContent=t.ImageLinkType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(23284),c=n(8597),f=n(35002),l=n(58237);t.ImageLinkType="ImageLink";let p=u.exact(u.intersection([u.type({id:u.string,url:u.string,height:u.string,width:u.string,size:u.string,name:u.string,kind:u.string}),u.partial({date:c.StringOrNull}),])),d=new u.Type("ImageLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ImageLinkType,e=>(0,o.pipe)(p.decode(e),i.either.map(e=>t.ImageLinkContent.encode({...e,__TYPE__:t.ImageLinkType}))),e=>p.encode(e));t.ImageLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ImageLinkType)}),p,]),t.FileLinkType="FileLink";let s=u.exact(u.intersection([u.type({id:u.string,url:u.string,name:u.string,kind:u.string,size:(0,a.withFallback)(u.string,"0")}),u.partial({date:(0,f.nullable)(u.string)}),])),m=new u.Type("FileLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.FileLinkType,e=>(0,o.pipe)(s.decode(e),i.either.map(e=>t.FileLinkContent.encode({...e,__TYPE__:t.FileLinkType}))),e=>s.encode(e));t.FileLinkContent=u.intersection([s,u.exact(u.intersection([u.type({__TYPE__:u.literal(t.FileLinkType)}),u.partial({size:(0,a.withFallback)(u.string,"0")}),])),]),t.DocumentLinkType="DocumentLink";let h=u.strict({id:c.NonEmptyString}),v=new u.Type("DocumentLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.DocumentLinkType,e=>(0,o.pipe)(h.decode(e),i.either.map(e=>t.DocumentLinkContent.encode({...e,__TYPE__:t.DocumentLinkType}))),e=>h.encode(e));t.DocumentLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.DocumentLinkType)}),h,]),t.ExternalLinkType="ExternalLink";let y=u.exact(u.intersection([u.type({url:u.string}),u.partial({kind:u.literal("web"),target:c.StringOrNull,preview:(0,f.nullable)(u.partial({title:u.string}))}),])),g=new u.Type("ExternalLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ExternalLinkType,e=>(0,o.pipe)(y.decode(e),i.either.map(e=>t.ExternalLinkContent.encode({...e,__TYPE__:t.ExternalLinkType}))),e=>y.encode(e));t.ExternalLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ExternalLinkType)}),y,]),t.LinkContentType="LinkContent";let _=e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.LinkContentType;t.isLinkContent=_,t.LinkLegacy=u.union([d,m,v,g,]);let b=e=>new u.Type("LinkLegacy",t.isLinkContent,e=>(0,o.pipe)(t.LinkLegacy.decode(e),i.either.map(e=>t.LinkContent.encode({value:e,__TYPE__:t.LinkContentType}))),n=>({content:t.LinkLegacy.encode(n.value),types:{[e.keyOfType]:"Link"}}));t.LinkContentLegacy=b,t.Link=u.union([t.ImageLinkContent,t.FileLinkContent,t.DocumentLinkContent,t.ExternalLinkContent,]),t.LinkContent=u.strict({__TYPE__:u.literal(t.LinkContentType),value:t.Link})},65090:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableLegacy=t.isNestableContent=t.NestableContentDefaultValue=t.NestableContent=void 0;let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(82646),a=n(47451),c=n(11836),f=n(86649),l=n(84929),p=n(48896),d=n(15764),s=n(9583),m=n(72202),h=n(89040),v=n(68507);t.NestableContent=o.union([u.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,m.LinkContent,h.RichTextContent,v.SeparatorContent,]);let y=e=>{switch(e.type){case"Boolean":return(0,a.BooleanContentDefaultValue)(e);case"Select":return(0,f.SelectContentDefaultValue)(e);default:return}};t.NestableContentDefaultValue=y;let g=e=>(0,f.isTextContent)(e)||(0,f.isColorContent)(e)||(0,f.isDateContent)(e)||(0,f.isTimestampContent)(e)||(0,f.isNumberContent)(e)||(0,f.isRangeContent)(e)||(0,f.isSelectContent)(e)||(0,p.isGeoPointContent)(e)||(0,h.isRichTextContent)(e)||(0,a.isBooleanContent)(e)||(0,c.isEmbedContent)(e)||(0,d.isImageContent)(e)||(0,s.isIntegrationFieldContent)(e)||(0,m.isLinkContent)(e)||(0,v.isSeparatorContent)(e)||(0,u.isEmptyContent)(e);t.isNestableContent=g;let _=e=>({decode(t){if(!e.fieldType)return;let n=(0,u.EmptyLegacy)(e.fieldType).decode(t);if((0,i.isRight)(n))return n;let r=(()=>{switch(e.fieldType){case"Text":return(0,f.TextLegacy)(e);case"Color":return(0,f.ColorLegacy)(e);case"Date":return(0,f.DateLegacy)(e);case"Timestamp":return(0,f.TimestampLegacy)(e);case"Number":return(0,f.NumberLegacy)(e);case"Range":return(0,f.RangeLegacy)(e);case"Select":return(0,f.SelectLegacy)(e);case"GeoPoint":return(0,p.GeoPointLegacy)(e);case"StructuredText":return(0,h.RichTextLegacy)(e);case"Boolean":return(0,a.BooleanLegacy)(e);case"Embed":return(0,c.EmbedLegacy)(e);case"Image":return(0,d.ImageLegacy)(e);case"IntegrationFields":return(0,s.IntegrationFieldLegacy)(e);case"Link":return(0,m.LinkContentLegacy)(e);case"Separator":return(0,v.SeparatorLegacy)(e);default:return}})();if(r)return r.decode(t)},encode(t){switch(t.__TYPE__){case l.FieldContentType:if("Text"===t.type)return(0,f.TextLegacy)(e).encode(t);if("Color"===t.type)return(0,f.ColorLegacy)(e).encode(t);if("Range"===t.type)return(0,f.RangeLegacy)(e).encode(t);if("Date"===t.type)return(0,f.DateLegacy)(e).encode(t);if("Number"===t.type)return(0,f.NumberLegacy)(e).encode(t);if("Timestamp"===t.type)return(0,f.TimestampLegacy)(e).encode(t);if("Select"===t.type)return(0,f.SelectLegacy)(e).encode(t);return;case p.GeoPointContentType:return(0,p.GeoPointLegacy)(e).encode(t);case h.RichTextContentType:return(0,h.RichTextLegacy)(e).encode(t);case c.EmbedContentType:return(0,c.EmbedLegacy)(e).encode(t);case a.BooleanContentType:return(0,a.BooleanLegacy)(e).encode(t);case d.ImageContentType:return(0,d.ImageLegacy)(e).encode(t);case s.IntegrationFieldContentType:return(0,s.IntegrationFieldLegacy)(e).encode(t);case m.LinkContentType:return(0,m.LinkContentLegacy)(e).encode(t);case v.SeparatorContentType:return(0,v.SeparatorLegacy)(e).encode(t);default:return}}});t.NestableLegacy=_},71741:function(e,t,n){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=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23284),f=n(44613),l=n(8597),p=n(35002),d=n(11836),s=n(15764),m=n(72202),h=e=>a.strict({data:e,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")}),y=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([h(m.Link),v,y]),t.SpanLegacy=a.union([h(m.LinkLegacy),v,y]);let g=e=>new a.Type("ValidatedSpans",t=>Array.isArray(t)&&t.every(e.is),(t,n)=>{if(!Array.isArray(t))return a.failure(t,n);{let r=t.reduce((t,n)=>{let r=e.decode(n);return(0,o.isLeft)(r)?t:[...t,r.right]},[]).sort((e,t)=>e.start-t.start);return a.success(r)}},t=>t.reduce((t,n)=>{let r=e.encode(n);return[...t,r]},[]));t.ValidatedSpans=g;let _=e=>a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.image),data:a.intersection([s.ImageContentView,a.partial({linkTo:(0,p.nullable)(e)}),])}),a.partial({label:l.StringOrNull,direction:l.StringOrNull}),]));t.ImageBlock=_(m.Link);let b=_(m.LinkLegacy);t.checkImageBlock=function(e){return e.type===f.RichTextNodeType.image};let S=a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.embed),data:a.unknown}),a.partial({label:l.StringOrNull,direction:l.StringOrNull}),])),T=new a.Type("EmbedBlockLegacy",e=>"embed"===e.type,e=>(0,u.pipe)(S.decode(e),i.either.chain(e=>i.either.map(t=>[e,t])(d.EmbedContentLegacy.decode(e.data))),i.either.map(([e,n])=>t.EmbedBlock.encode({...e,data:{...n,__TYPE__:d.EmbedContentType,all:e.data}}))),e=>({...S.encode(e),data:d.EmbedContentLegacy.encode(e.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(e){return e.type===f.RichTextNodeType.embed};let I=e=>a.exact(a.intersection([a.type({type:(0,p.refineType)(f.RichTextNodeTypeCodec,`string which isn't ${f.RichTextNodeType.image} ${f.RichTextNodeType.embed}`,e=>e!==f.RichTextNodeType.image&&e!==f.RichTextNodeType.embed),content:a.intersection([a.type({text:a.string}),a.partial({spans:(0,t.ValidatedSpans)(e)}),])}),a.partial({label:a.string,direction:a.string}),]));t.TextBlock=I(t.Span);let R=I(t.SpanLegacy),w=a.union([T,b,R,]);t.BlockLegacy=new a.Type("BlockLegacy",e=>T.is(e)||b.is(e)||R.is(e),e=>w.decode(e),e=>t.ImageBlock.is(e)?b.encode(e):t.EmbedBlock.is(e)?T.encode(e):R.encode(e)),t.Block=a.union([t.ImageBlock,t.EmbedBlock,t.TextBlock])},89040:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextLegacy=t.RichTextContent=t.isRichTextContent=t.RichTextContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237),c=n(71741);t.RichTextContentType="StructuredTextContent";let f=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.RichTextContentType;t.isRichTextContent=f;let l=u.array(c.BlockLegacy);t.RichTextContent=u.strict({__TYPE__:u.literal(t.RichTextContentType),value:u.array(c.Block)}),(0,r.__exportStar)(n(71741),t);let p=e=>new u.Type("RichTextLegacy",t.isRichTextContent,e=>(0,o.pipe)(l.decode(e),i.either.map(e=>({value:e,__TYPE__:t.RichTextContentType}))),t=>({content:l.encode(t.value),types:{[e.keyOfType]:"StructuredText"}}));t.RichTextLegacy=p},68507:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorContent=t.SeparatorLegacy=t.isSeparatorContent=t.SeparatorContentType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(58237);t.SeparatorContentType="SeparatorContent";let u=e=>(0,o.hasContentType)(e)&&e.__TYPE__===t.SeparatorContentType;t.isSeparatorContent=u;let a=e=>new i.Type("SeparatorLegacy",t.isSeparatorContent,()=>i.success(t.SeparatorContent.encode({__TYPE__:t.SeparatorContentType})),()=>({content:{},types:{[e.keyOfType]:"Separator"}}));t.SeparatorLegacy=a,t.SeparatorContent=i.strict({__TYPE__:i.literal(t.SeparatorContentType)})},91366:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(47451),t),(0,r.__exportStar)(n(11836),t),(0,r.__exportStar)(n(86649),t),(0,r.__exportStar)(n(48896),t),(0,r.__exportStar)(n(15764),t),(0,r.__exportStar)(n(9583),t),(0,r.__exportStar)(n(72202),t),(0,r.__exportStar)(n(65090),t),(0,r.__exportStar)(n(89040),t),(0,r.__exportStar)(n(68507),t)},53422:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateCompositeSlice=t.traverseCompositeSliceContent=t.compositeSliceContentWithDefaultValues=t.CompositeSliceContent=t.CompositeSliceLegacy=t.isCompositeSliceContent=t.CompositeSliceContentType=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(3845),f=n(58237),l=n(91366),p=n(22583),d=n(53034);t.CompositeSliceContentType="CompositeSliceContent";let s=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.CompositeSliceContentType;t.isCompositeSliceContent=s;let m=a.exact(a.partial({repeat:a.array(a.unknown),"non-repeat":a.UnknownRecord})),h=e=>new a.Type("CompositeSliceLegacy",t.isCompositeSliceContent,n=>(0,u.pipe)(m.decode(n),i.either.map(n=>{let r=(()=>{let t=(0,c.getFieldCtx)("repeat",e),r=(0,d.RepeatableWidgetsLegacy)(t).decode(n.repeat);if(!(!r||(0,o.isLeft)(r)))return r.right})()||[],i=Object.entries(n["non-repeat"]||{}).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e,["non-repeat"]);if(!i)return t;let u=(0,l.NestableLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:{...t,[n]:u.right}},{});return{nonRepeat:i,repeat:r,__TYPE__:t.CompositeSliceContentType}})),t=>{let n=Object.entries(t.nonRepeat).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e,["non-repeat"]),o=(0,l.NestableLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}}),r=(()=>{let n=(0,c.getFieldCtx)("repeat",e),r=(0,d.RepeatableWidgetsLegacy)(n).encode(t.repeat);return r})()||[];return{content:{"non-repeat":n.content,repeat:r.map(e=>e.content)},types:{[e.keyOfType]:"Slice",...n.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}});t.CompositeSliceLegacy=h,t.CompositeSliceContent=a.strict({__TYPE__:a.literal(t.CompositeSliceContentType),nonRepeat:a.record(a.string,l.NestableContent),repeat:d.RepeatableWidgets}),t.compositeSliceContentWithDefaultValues=function(e,t){var n,r;let i=(0,p.withDefaultNestableContentValues)(null!==(n=e["non-repeat"])&&void 0!==n?n:{},t.nonRepeat),o=(0,p.repeatableContentWithDefaultNestableContentValues)(null!==(r=e.repeat)&&void 0!==r?r:{},t.repeat);return{...t,nonRepeat:i,repeat:o}},t.traverseCompositeSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,u)=>{let a=Object.entries(i.widget.nonRepeat).reduce((i,[u,a])=>{var c,f,p;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[u]:null===(p=null==r?void 0:r["non-repeat"])||void 0===p?void 0:p[u],s=o({path:e.concat([{key:"non-repeat",type:"primary"},{key:u,type:"Widget"},]),key:u,apiId:n,model:d,content:a});return s?(0,l.isNestableContent)(s)?{...i,[u]:s}:(console.warn(`Warn: Non nestable content with key [${u}] detected in a composite slice [${n}] with key [${t}]`),i):i},{}),c=(0,d.traverseRepeatableWidgetItemsContent)({path:e.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})(o);return u({key:t,apiId:n,path:e,model:r,content:{...i,widget:{__TYPE__:"CompositeSliceContent",repeat:c,nonRepeat:a}}})}},t.migrateCompositeSlice=function(e,t){let[,n]=t.key.split("$");return{key:`${e.sliceName}$${n}`,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:Object.entries(t.widget.nonRepeat).reduce((n,[r,i])=>{var o;return(null===(o=e.fields.primary)||void 0===o?void 0:o[r])?{...n,[r]:i}:(console.warn(`The widget ${r} in the non-repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},{}),items:t.widget.repeat.map(n=>({__TYPE__:"GroupItemContent",value:n.value.reduce((n,[r,i])=>{var o;return(null===(o=e.fields.items)||void 0===o?void 0:o[r])?n.concat([[r,i]]):(console.warn(`The widget ${r} in the repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},[])}),[])}}}},53034:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatableWidgets=t.RepeatableWidgetsLegacy=t.traverseRepeatableWidgetItemsContent=t.traverseRepeatableWidgetContent=t.RepeatableWidgetContent=t.isRepeatableWidgetContent=t.RepeatableWidgetLegacy=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(3845),f=n(58237),l=n(22443),p=n(91366),d=a.strict({__TYPE__:a.literal(l.GroupItemContentType),value:a.array(a.tuple([a.string,p.NestableContent]))}),s=a.record(a.string,a.unknown),m=e=>new a.Type("RepeatableWidgetItemLegacy",e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.GroupItemContentType,t=>{let n=(0,u.pipe)(s.decode(t),i.either.map(t=>{let n=Object.entries(t).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e),u=(0,p.NestableLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:[...t,[n,u.right]]},[]);return{value:n,__TYPE__:l.GroupItemContentType}}));return n},t=>t.value.reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e),o=(0,p.NestableLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}})),h=e=>{let n=a.array(a.union([a.null,m(e)])),r=a.array(m(e));return new a.Type("RepeatableWidgetLegacy",t.isRepeatableWidgetContent,e=>(0,u.pipe)(n.decode(e),i.either.map(e=>({value:e.map(e=>null===e?{__TYPE__:l.GroupItemContentType,value:[]}:e),__TYPE__:l.GroupContentType}))),t=>{let n=r.encode(t.value);return{content:n.map(e=>e.content),types:n.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:"Group"})}})};t.RepeatableWidgetLegacy=h;let v=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.GroupContentType;function y({path:e,model:t,content:n}){return r=>n.map((n,i)=>{let o=e.concat([{key:i.toString(),type:"GroupItem"},]),u=n.value.reduce((e,[n,i])=>{let u=null==t?void 0:t[n],a=r({path:o.concat([{key:n,type:"Widget"},]),key:n,apiId:n,model:u,content:i});return a&&(0,p.isNestableContent)(a)?e.concat([[n,a]]):e},[]);return{__TYPE__:n.__TYPE__,value:u}})}t.isRepeatableWidgetContent=v,t.RepeatableWidgetContent=a.strict({__TYPE__:a.literal(l.GroupContentType),value:a.array(d)}),t.traverseRepeatableWidgetContent=function({path:e,key:t,apiId:n,model:r,content:i}){return o=>{var u;let a=y({path:e,model:null===(u=null==r?void 0:r.config)||void 0===u?void 0:u.fields,content:i.value})(o);return o({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,value:a}})}},t.traverseRepeatableWidgetItemsContent=y;let g=e=>a.array(m(e));t.RepeatableWidgetsLegacy=g;let _=a.tuple([a.string,p.NestableContent]),b=a.strict({__TYPE__:a.literal(l.GroupItemContentType),value:a.array(_)});t.RepeatableWidgets=a.array(b)},74951:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSharedSliceContent=t.sharedSliceContentWithDefaultValues=t.SharedSliceContent=t.SharedSliceLegacy=t.isSharedSliceContent=t.SharedSliceContentType=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23284),f=n(23535),l=n(3845),p=n(58237),d=n(22443),s=n(91366),m=n(22583),h=n(53034),v=n(12238);t.SharedSliceContentType="SharedSliceContent";let y=e=>(0,p.hasContentType)(e)&&e.__TYPE__===t.SharedSliceContentType;t.isSharedSliceContent=y;let g=a.exact(a.type({variation:a.string,items:(0,c.withFallback)(a.array(a.unknown),[]),primary:(0,c.withFallback)(a.UnknownRecord,{})})),_=e=>new a.Type("SharedSliceLegacy",t.isSharedSliceContent,n=>(0,u.pipe)(g.decode(n),i.either.map(n=>{let r=(()=>{let t=(0,l.getFieldCtx)("items",e,["variations",n.variation,]),r=(0,h.RepeatableWidgetsLegacy)(t).decode(n.items);if(!(!r||(0,o.isLeft)(r)))return r.right})()||[],i=Object.entries(n.primary).reduce((t,[r,i])=>{let u=(0,l.getFieldCtx)(r,e,["variations",n.variation,"primary",]),a=(0,v.SlicePrimaryLegacy)(u).decode(i);return!a||(0,o.isLeft)(a)?t:{...t,[r]:a.right}},{});return{variation:n.variation,primary:i,items:r,__TYPE__:t.SharedSliceContentType}})),t=>{let n=Object.entries(t.primary).reduce((n,[r,i])=>{let o=(0,l.getFieldCtx)(r,e,["variations",t.variation,"primary",]),u=(0,v.SlicePrimaryLegacy)(o).encode(i);return u?{content:{...n.content,[r]:u.content},types:{...n.types,...u.types}}:n},{content:{},types:{}}),r=(()=>{let n=(0,l.getFieldCtx)("items",e,["variations",t.variation,]),r=(0,h.RepeatableWidgetsLegacy)(n).encode(t.items);return r})()||[];return{content:{primary:n.content,items:r.map(e=>e.content),variation:t.variation},types:{[e.keyOfType]:"SharedSlice",...n.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}});t.SharedSliceLegacy=_,t.SharedSliceContent=a.strict({__TYPE__:a.literal(t.SharedSliceContentType),variation:a.string,primary:a.record(a.string,v.SlicePrimaryContent),items:h.RepeatableWidgets}),t.sharedSliceContentWithDefaultValues=function(e,t){var n,r;let i=e.variations.find(e=>e.id===t.variation),o=null!==(n=null==i?void 0:i.primary)&&void 0!==n?n:{},u=null!==(r=null==i?void 0:i.items)&&void 0!==r?r:{},a=(0,m.withDefaultSlicePrimaryContentValues)(o,t.primary),c=(0,m.repeatableContentWithDefaultNestableContentValues)(u,t.items);return{...t,primary:a,items:c}},t.traverseSharedSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,u)=>{let a=Object.entries(i.widget.primary).reduce((i,[u,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[u],m=(0,d.isGroupContent)(a)?(0,d.traverseGroupContent)({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"},]),key:u,apiId:u,content:a,model:(null==p?void 0:p.type)===f.GroupFieldType?p:void 0})(o):(0,s.isNestableContent)(a)?o({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"},]),key:u,apiId:u,model:p,content:a}):void 0;return m?((0,v.isSlicePrimaryContent)(m)||console.warn(`Warn: Non nestable or group content with key [${u}] detected in a shared slice [${n}] with key [${t}]`),{...i,[u]:m}):i},{}),c=(0,h.traverseRepeatableWidgetItemsContent)({path:e.concat([{key:"items",type:"items"}]),model:null==r?void 0:r.fields.items,content:i.widget.items})(o);return u({key:t,apiId:n,path:e,model:r,content:{...i,widget:{__TYPE__:"SharedSliceContent",variation:i.widget.variation,primary:a,items:c}}})}}},27835:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSimpleSlice=t.traverseSimpleSliceContent=t.SimpleSliceLegacy=t.isSimpleSliceContent=t.SimpleSliceContent=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(91366),u=n(53034);t.SimpleSliceContent=i.union([o.NestableContent,u.RepeatableWidgetContent,]);let a=e=>(0,o.isNestableContent)(e)||(0,u.isRepeatableWidgetContent)(e);t.isSimpleSliceContent=a;let c=e=>({decode:"Group"===e.fieldType?(0,u.RepeatableWidgetLegacy)(e).decode.bind(null):(0,o.NestableLegacy)(e).decode.bind(null),encode:t=>"GroupContentType"===t.__TYPE__?(0,u.RepeatableWidgetLegacy)(e).encode(t):(0,o.NestableLegacy)(e).encode(t)});t.SimpleSliceLegacy=c,t.traverseSimpleSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,a)=>{var c;if((0,u.isRepeatableWidgetContent)(i.widget)){let f=(0,u.traverseRepeatableWidgetContent)({path:e,key:i.key,apiId:i.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:i.widget})(o);return f&&a({key:i.key,apiId:i.name,path:e,model:r,content:{...i,widget:f}})}let l=o({key:i.key,apiId:i.name,path:e,model:(null==r?void 0:r.type)==="SharedSlice"?null===(c=r.fields.primary)||void 0===c?void 0:c[i.name]:(null==r?void 0:r.type)!=="Group"?r:void 0,content:i.widget});return l&&a({key:t,apiId:n,path:e,model:r,content:{...i,widget:l}})}},t.migrateSimpleSlice=function(e,t){var n;let[,r]=t.key.split("$"),i=`${e.sliceName}$${r}`;return"GroupContentType"===t.widget.__TYPE__?{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:{},items:t.widget.value.map(t=>({__TYPE__:"GroupItemContent",value:t.value.reduce((t,[n,r])=>{var i;return(null===(i=e.fields.items)||void 0===i?void 0:i[n])?t.concat([[n,r]]):t},[])}),[])}}:{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:(null===(n=e.fields.primary)||void 0===n?void 0:n[t.name])?{[t.name]:t.widget}:{},items:[]}}}},12238:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryContent=t.SlicePrimaryLegacy=t.SlicePrimaryContent=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(23535),u=n(22443),a=n(91366);t.SlicePrimaryContent=i.union([a.NestableContent,u.GroupContent]);let c=e=>{let t=(0,u.GroupLegacy)(e),n=(0,a.NestableLegacy)(e);return{decode:r=>e.fieldType===o.GroupFieldType?t.decode(r):n.decode(r),encode:e=>(0,u.isGroupContent)(e)?t.encode(e):n.encode(e)}};t.SlicePrimaryLegacy=c;let f=e=>(0,a.isNestableContent)(e)||(0,u.isGroupContent)(e);t.isSlicePrimaryContent=f},21925:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceContent=t.SliceLegacy=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(53422),u=n(74951),a=n(27835),c=e=>({decode(t){let n=(()=>{switch(e.fieldType){case"Slice":return(0,o.CompositeSliceLegacy)(e);case"SharedSlice":return(0,u.SharedSliceLegacy)(e);default:return(0,a.SimpleSliceLegacy)(e)}})();return n.decode(t)},encode(t){switch(t.__TYPE__){case"SharedSliceContent":return(0,u.SharedSliceLegacy)(e).encode(t);case"CompositeSliceContent":return(0,o.CompositeSliceLegacy)(e).encode(t);default:return(0,a.SimpleSliceLegacy)(e).encode(t)}}});t.SliceLegacy=c,t.SliceContent=i.union([o.CompositeSliceContent,u.SharedSliceContent,a.SimpleSliceContent,]),(0,r.__exportStar)(n(53422),t),(0,r.__exportStar)(n(53034),t),(0,r.__exportStar)(n(74951),t),(0,r.__exportStar)(n(27835),t),(0,r.__exportStar)(n(12238),t)},57495:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSliceItem=t.SlicesItemLegacy=t.sliceItemContentWithDefaultValues=t.isSimpleSliceItemContent=t.isCompositeSliceItemContent=t.isSharedSliceItemContent=t.SliceItemContent=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(35002),f=n(3845),l=n(22443),p=n(91366),d=n(22583),s=n(21925),m=n(53422),h=n(74951),v=n(27835);function y(e){return(0,m.isCompositeSliceContent)(e.widget)}function g(e){return(0,l.isGroupContent)(e.widget)||(0,p.isNestableContent)(e.widget)}t.SliceItemContent=a.type({key:a.string,name:a.string,maybeLabel:a.union([a.string,a.undefined]),widget:s.SliceContent}),t.isSharedSliceItemContent=function(e){return(0,h.isSharedSliceContent)(e.widget)},t.isCompositeSliceItemContent=y,t.isSimpleSliceItemContent=g,t.sliceItemContentWithDefaultValues=function(e,t){var n;if("SharedSlice"===e.type&&(0,h.isSharedSliceContent)(t))return(0,s.sharedSliceContentWithDefaultValues)(e,t);if("Slice"===e.type&&(0,m.isCompositeSliceContent)(t))return(0,s.compositeSliceContentWithDefaultValues)(e,t);if("Group"===e.type&&(0,l.isGroupContent)(t)&&(null===(n=e.config)||void 0===n?void 0:n.fields)){let r=(0,d.repeatableContentWithDefaultNestableContentValues)(e.config.fields,t.value);return{...t,value:r}}return t};let _=a.exact(a.intersection([a.type({key:a.string,value:a.unknown}),a.partial({label:(0,c.nullable)(a.string)}),])),b=e=>new a.Type("SlicesItemLegacy",e=>((0,h.isSharedSliceContent)(e.widget),(0,m.isCompositeSliceContent)(e.widget),(0,v.isSimpleSliceContent)(e.widget)),(t,n)=>(0,u.pipe)(_.decode(t),i.either.chain(r=>{var i;let u=r.key.indexOf("$"),c=r.key.substring(0,u>0?u:void 0),l=(0,f.getFieldCtx)(c,e),p=(0,s.SliceLegacy)(l).decode(r.value);return!p||(0,o.isLeft)(p)?a.failure(t,n):a.success({key:r.key,name:c,maybeLabel:null!==(i=r.label)&&void 0!==i?i:void 0,widget:p.right})})),t=>{let n=(0,f.getFieldCtx)(t.name,e),r=(0,s.SliceLegacy)(n).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.SlicesItemLegacy=b;let S=({model:e,content:t})=>y(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,m.migrateCompositeSlice)(e,t):g(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,v.migrateSimpleSlice)(e,t):t;t.migrateSliceItem=S},8059:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSlices=t.slicesContentWithDefaultValues=t.SlicesContent=t.SlicesLegacy=t.isSlicesContent=t.SlicesContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(32387),c=n(23535),f=n(58237),l=n(53422),p=n(74951),d=n(27835),s=n(57495);t.SlicesContentType="SliceContentType";let m=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.SlicesContentType;t.isSlicesContent=m;let h=e=>{let n=u.array((0,s.SlicesItemLegacy)(e));return new u.Type("SlicesLegacy",t.isSlicesContent,e=>(0,o.pipe)(n.decode(e),i.either.map(e=>({__TYPE__:t.SlicesContentType,value:e}))),t=>{let r=n.encode(t.value);return{content:r.map(e=>e.content),types:r.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:"Slices"})}})};t.SlicesLegacy=h,t.SlicesContent=u.type({__TYPE__:u.literal(t.SlicesContentType),value:u.array(s.SliceItemContent)}),t.slicesContentWithDefaultValues=function(e,t){var n;let r=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.choices;if(void 0===r)return t;let i=t.value.map(e=>{let t=r[e.name];if(t){let n=(0,s.sliceItemContentWithDefaultValues)(t,e.widget);return{...e,widget:n}}return e});return{...t,value:i}},t.traverseSlices=function({path:e,key:t,model:n,content:r}){return({transformWidget:i=({content:e})=>e,transformSlice:o=({content:e})=>e})=>{let u=r.value.reduce((t,r)=>{let u=n&&function(e,t,n){var r,i;let o=null===(i=null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||void 0===i?void 0:i[n.name];return(()=>{if((0,s.isSharedSliceItemContent)(n)&&o&&(0,c.isStaticSharedSlice)(o)){let e=o.variations.find(e=>e.id===n.widget.variation);return e?{type:"SharedSlice",sliceName:o.id,variationId:e.id,fields:{primary:e.primary||{},items:e.items||{}}}:void 0}})()||(()=>{var r;let i=a.ContentPath.append(a.ContentPath.serialize(e),n.name),o=Object.values((null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||{}).find(e=>{var t;return!!(0,c.isStaticSharedSlice)(e)&&!!(null===(t=e.legacyPaths)||void 0===t?void 0:t[i])});if(!o)return;let u=null==o?void 0:o.variations.find(e=>{var t;return e.id===(null===(t=o.legacyPaths)||void 0===t?void 0:t[i])});if(u)return{type:"SharedSlice",sliceName:o.id,variationId:u.id,fields:{primary:u.primary||{},items:u.items||{}}}})()||(()=>{if(o){if((0,c.isCompositeSlice)(o))return{type:"Slice","non-repeat":o["non-repeat"]||{},repeat:o.repeat||{}};if((0,c.isLegacySlice)(o))return o}})()}(e,n,r),f=(0,s.isSharedSliceItemContent)(r)?(0,p.traverseSharedSliceContent)({path:e.concat({key:r.key,type:"SharedSlice"}),sliceKey:r.key,sliceName:r.name,model:(null==u?void 0:u.type)==="SharedSlice"?u:void 0,content:r})(i,o):(0,s.isCompositeSliceItemContent)(r)?(0,l.traverseCompositeSliceContent)({path:e.concat({key:r.key,type:"Slice"}),sliceKey:r.key,sliceName:r.name,model:(null==u?void 0:u.type)==="Slice"||(null==u?void 0:u.type)==="SharedSlice"?u:void 0,content:r})(i,o):(0,s.isSimpleSliceItemContent)(r)?(0,d.traverseSimpleSliceContent)({path:e.concat({key:r.key,type:"LegacySlice"}),sliceKey:r.key,sliceName:r.name,model:u&&(null==u?void 0:u.type)!=="Slice"?u:void 0,content:r})(i,o):void 0;return f?t.concat(f):t},[]);return i({path:e,key:t,apiId:t,model:n,content:{__TYPE__:r.__TYPE__,value:u}})}}},83592:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(21925),t),(0,r.__exportStar)(n(57495),t),(0,r.__exportStar)(n(8059),t)},22583:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.repeatableContentWithDefaultNestableContentValues=t.withDefaultNestableContentValues=t.withDefaultSlicePrimaryContentValues=void 0;let r=n(23535),i=n(22443),o=n(91366);t.withDefaultSlicePrimaryContentValues=function(e,t){let n=t;for(let[u,a]of Object.entries(e)){let c=t[u];if(void 0===c){if(a.type===r.GroupFieldType)n[u]=(0,i.groupContentWithDefaultValues)(a,i.GroupContentDefaultValue);else{let f=(0,o.NestableContentDefaultValue)(a);f&&(n[u]=f)}continue}a.type===r.GroupFieldType&&(0,i.isGroupContent)(c)&&(n[u]=(0,i.groupContentWithDefaultValues)(a,c))}return n},t.withDefaultNestableContentValues=function(e,t){return Object.entries(e).reduce((e,[n,r])=>{if(void 0===t[n]){let i=(0,o.NestableContentDefaultValue)(r);return void 0!==i?{...e,[n]:i}:e}return e},t)},t.repeatableContentWithDefaultNestableContentValues=function(e,t){let n=Object.entries(e);return t.map(e=>n.reduce((t,[n,r])=>{var u;let a=e.value.find(([e])=>e===n);if("Group"===r.type){let c=(0,i.groupContentWithDefaultValues)(r,null!==(u=null==a?void 0:a[1])&&void 0!==u?u:{__TYPE__:i.GroupContentType,value:[]});return{...t,value:[...t.value.filter(([e])=>e!==n),...c?[[n,c]]:[],]}}if(!a){let f=(0,o.NestableContentDefaultValue)(r);return{...t,value:[...t.value,...f?[[n,f]]:[],]}}return t},e))}},74982:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(20168),t),(0,r.__exportStar)(n(33832),t),(0,r.__exportStar)(n(3845),t)},58237:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.hasContentType=t.hasFieldContentType=void 0;let r=n(87412),i=n(33832);function o(e){return"object"==typeof e&&null!==e&&"__TYPE__"in e}t.hasFieldContentType=function(e){return o(e)&&e.__TYPE__===i.FieldContentType&&(null==e?void 0:e.type)!==void 0&&"string"==typeof e.type&&(0,r.isRight)(i.FieldType.decode(e.type))},t.hasContentType=o},17896:function(e,t,n){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=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(69624),a=n(8597),c=n(22453);t.CustomTypeFormat={page:"page",custom:"custom"};class f extends Error{constructor(e){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=e,this.message=this._formatError(e)}_formatError(e){let t=e.map(e=>` - ${e}`);return`The following slices doesn't exists in your Prismic repository:
4
6
  ${t.join("\n")}
5
- `}}function l(e){return o.exact(o.intersection([o.type({id:o.string,label:a.StringOrNull,repeatable:(0,u.withFallback)(o.boolean,!0),json:o.record(o.string,e),status:(0,u.withFallback)(o.boolean,!0)}),o.partial({hash:o.string,format:(0,u.withFallback)(o.keyof(t.CustomTypeFormat),"custom")}),]))}function p(e){return Object.entries(e.json).reduce((e,[,t])=>{let n=Object.entries(t);return e.concat(n)},[])}function d(e,t){let n=Object.entries(e.json).reduce((e,[n,r])=>{let i=Object.entries(r).reduce((e,[n,r])=>{let i=t(n,r);return i?{...e,[n]:i}:e},{});return{...e,[n]:i}},{});return{...e,json:n}}t.StaticCustomType=l(c.StaticSection),t.CustomType=l(c.DynamicSection),t.flattenWidgets=p,t.flattenSections=function(e){return Object.entries(e.json).reduce((e,[,t])=>{let n=Object.entries(t);return e.concat(n)},[])},t.toStatic=function(e,t){let n=Object.entries(e.json).reduce((e,[n,r])=>({...e,[n]:c.Sections.toStatic(r,t)}),{});return{...e,json:n}},t.validateSlices=function(e,t){let n=(function(e){let t=function(e){let t=p(e).filter(([,e])=>"Slices"===e.type),n=t.reduce((e,[,t])=>{let n=Object.entries(t.config&&t.config.choices?t.config.choices:{}).filter(([,e])=>"SharedSlice"===e.type).map(([e])=>e);return e.concat(n)},[]);return n}(e);return function(e){return t.map(e)}})(e)(e=>{let n=t.get(e);if(!n)return e}).filter(Boolean);return n.length>0?(0,i.left)(new f(n)):(0,i.right)(e)},t.collectWidgets=d,t.filterMissingSharedSlices=function(e,t){return d(e,(e,n)=>{if("Slices"===n.type){if(!n.config||!n.config.choices)return n;let r=Object.entries(n.config.choices).reduce((e,[n,r])=>"SharedSlice"!==r.type||t.get(n)?{...e,[n]:r}:e,{}),i={...n.config,choices:r};return{...n,config:i}}return n})},t.flattenCustomTypeFields=function(e){return Object.values(e.json).reduce((e,t)=>({...e,...t}),{})},t.collectSharedSlices=function(e){return Object.entries(e.fields).reduce((e,[,t])=>{var n;return"Slices"===t.type||"Choice"===t.type?{...e,...Object.entries((null===(n=t.config)||void 0===n?void 0:n.choices)||{}).reduce((e,[t,n])=>"SharedSlice"===n.type?{...e,[t]:n}:e,{})}:e},{})}},22453:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Sections=t.DynamicSection=t.StaticSection=t.sectionReader=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(31289),u=n(53039);function a(e){return i.record(o.WidgetKey,e)}t.sectionReader=a,t.StaticSection=a(u.StaticWidget),t.DynamicSection=a(u.DynamicWidget),t.Sections={toStatic(e,t){let n=Object.entries(e).reduce((e,[n,r])=>({...e,[n]:u.Widgets.toStatic(r,t)}),{});return n}}},5480:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiffOperation=void 0,(n=t.DiffOperation||(t.DiffOperation={})).Added="added",n.Removed="removed",n.Updated="updated"},89408:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceComparator=void 0;let r=n(35566),i=n(5480),o=n(62961);t.SliceComparator={compare(e,t){if(!e&&t)return{op:i.DiffOperation.Added,value:t};if(e&&!t)return{op:i.DiffOperation.Removed};let n=function(e,t){let n=r.Objects.zipObjects(e,t);return Object.entries(n).reduce((e,[t,n])=>"variations"===t||(null==n?void 0:n.left)===(null==n?void 0:n.right)?e:{...e,[t]:null==n?void 0:n.right},{})}(e,t),u=r.Objects.zipObjects(e&&r.Arrays.toRecord(e.variations,e=>e.id),t&&r.Arrays.toRecord(t.variations,e=>e.id)),a=Object.entries(u).reduce((e,[t,n])=>{if(!n)return e;let r=o.VariationComparator.compare(n.left,n.right);return r?{...e,[t]:r}:e},{}),c={...n,...r.Objects.isNotEmpty(a)?{variations:a}:{}};if(r.Objects.isNotEmpty(c))return{op:i.DiffOperation.Updated,value:c}}}},62961:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.VariationComparator=void 0;let r=n(35566),i=n(10673),o=n(5480);function u(e,t){let n=r.Objects.zipObjects(e,t),a=Object.entries(n).reduce((e,[t,n])=>{if(JSON.stringify(null==n?void 0:n.left)===JSON.stringify(null==n?void 0:n.right))return e;let r=(()=>{var e,t,r,a,c,f,l;if((null==n?void 0:n.left)||(null==n?void 0:n.right)){if((null==n?void 0:n.left)&&!n.right)return{op:o.DiffOperation.Removed};if(!(null==n?void 0:n.left)&&(null==n?void 0:n.right)){if((null===(e=n.right)||void 0===e?void 0:e.type)===i.GroupFieldType){let p={...n.right,config:{...n.right.config,fields:{}}};return p.config.fields=u(void 0,null===(t=n.right.config)||void 0===t?void 0:t.fields)||{},{op:o.DiffOperation.Added,value:p}}return{op:o.DiffOperation.Added,value:n.right}}if((null===(r=n.right)||void 0===r?void 0:r.type)===i.GroupFieldType){let d={...n.right,config:{...n.right.config,fields:{}}};return d.config.fields=u((null===(a=n.left)||void 0===a?void 0:a.type)===i.GroupFieldType?null===(f=null===(c=n.left)||void 0===c?void 0:c.config)||void 0===f?void 0:f.fields:void 0,null===(l=n.right.config)||void 0===l?void 0:l.fields)||{},{op:o.DiffOperation.Updated,value:d}}return{op:o.DiffOperation.Updated,value:n.right}}})();return r?{...e,[t]:r}:e},{});return r.Objects.isNotEmpty(a)?a:void 0}t.VariationComparator={compare(e,t){if(e&&!t)return{op:o.DiffOperation.Removed};if(!e&&t)return{op:o.DiffOperation.Added,value:t};let n=function(e,t){let n=r.Objects.zipObjects(e,t);return Object.entries(n).reduce((e,[t,n])=>"primary"===t||"items"===t||(null==n?void 0:n.left)===(null==n?void 0:n.right)?e:{...e,[t]:null==n?void 0:n.right},{})}(e,t),i=u(null==e?void 0:e.primary,null==t?void 0:t.primary),a=u(null==e?void 0:e.items,null==t?void 0:t.items),c={...n,...i?{primary:i}:{},...a?{items:a}:{}};if(r.Objects.isNotEmpty(c))return{op:o.DiffOperation.Updated,value:c}}}},83095:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},74702:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(5480),t),(0,r.__exportStar)(n(89408),t),(0,r.__exportStar)(n(62961),t),(0,r.__exportStar)(n(83095),t)},23535:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(17896),t),(0,r.__exportStar)(n(74702),t),(0,r.__exportStar)(n(22453),t),(0,r.__exportStar)(n(99814),t)},10673:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Group=t.GroupConfig=t.NestedGroup=t.NestedGroupConfig=t.GroupFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(31289),u=n(8597),a=n(30961);t.GroupFieldType="Group";let c=e=>i.exact(i.partial({label:u.StringOrNull,repeat:i.boolean,fields:i.record(o.WidgetKey,e)})),f=e=>i.exact(i.intersection([i.type({type:i.literal(t.GroupFieldType)}),i.partial({fieldset:u.StringOrNull,icon:i.string,description:i.string,config:c(e)}),]));t.NestedGroupConfig=c(a.NestableWidget),t.NestedGroup=f(a.NestableWidget),t.GroupConfig=c(i.union([a.NestableWidget,t.NestedGroup])),t.Group=f(i.union([a.NestableWidget,t.NestedGroup]))},63437:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UID=t.UIDConfig=t.UIDFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.UIDFieldType="UID",t.UIDConfig=i.exact(i.partial({label:o.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),t.UID=i.exact(i.intersection([i.type({type:i.literal(t.UIDFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.UIDConfig}),]))},53039:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Widgets=t.FieldType=t.DynamicWidget=t.StaticWidget=t.widgetReader=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(10673),u=n(44613),a=n(30961),c=n(78110),f=n(63437);function l(e){return i.union([f.UID,a.NestableWidget,o.Group,e])}t.widgetReader=l,t.StaticWidget=l(c.StaticSlices),t.DynamicWidget=l(c.DynamicSlices),t.FieldType=i.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,[f.UIDFieldType]:null,[o.GroupFieldType]:null,[c.SlicesFieldType]:null,[c.LegacySlicesFieldType]:null}),t.Widgets={toStatic(e,t){switch(e.type){case"Choice":case"Slices":return c.Slices.toStatic(e,t);default:return e}}}},99814:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(10673),t),(0,r.__exportStar)(n(44613),t),(0,r.__exportStar)(n(77666),t),(0,r.__exportStar)(n(30324),t),(0,r.__exportStar)(n(63437),t),(0,r.__exportStar)(n(53039),t)},66014:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanField=t.BooleanConfig=t.BooleanFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.BooleanFieldType="Boolean",t.BooleanConfig=i.exact(i.partial({label:o.StringOrNull,default_value:i.boolean,placeholder_true:i.string,placeholder_false:i.string})),t.BooleanField=i.exact(i.intersection([i.type({type:i.literal(t.BooleanFieldType)}),i.partial({config:t.BooleanConfig}),]))},2330:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Color=t.ColorConfig=t.ColorFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.ColorFieldType="Color",t.ColorConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string})),t.Color=i.exact(i.intersection([i.type({type:i.literal(t.ColorFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.ColorConfig}),]))},77352:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Date=t.DateConfig=t.DateFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.DateFieldType="Date",t.DateConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,default:i.string})),t.Date=i.exact(i.intersection([i.type({type:i.literal(t.DateFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.DateConfig}),]))},53142:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Embed=t.EmbedConfig=t.EmbedFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.EmbedFieldType="Embed",t.EmbedConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,useAsTitle:i.boolean})),t.Embed=i.exact(i.intersection([i.type({type:i.literal(t.EmbedFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.EmbedConfig}),]))},46068:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPoint=t.GeoPointConfig=t.GeoPointFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.GeoPointFieldType="GeoPoint",t.GeoPointConfig=i.exact(i.partial({label:o.StringOrNull})),t.GeoPoint=i.exact(i.intersection([i.type({type:i.literal(t.GeoPointFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.GeoPointConfig}),]))},65694:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Image=t.ImageConfig=t.Thumbnail=t.ImageFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597),u=(0,r.__importDefault)(n(71747));t.ImageFieldType="Image",t.Thumbnail=i.exact(i.intersection([i.type({name:i.string}),u.default,])),t.ImageConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,constraint:u.default,thumbnails:i.readonlyArray(t.Thumbnail)})),t.Image=i.exact(i.intersection([i.type({type:i.literal(t.ImageFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.ImageConfig}),]))},60337:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationField=t.IntegrationFieldConfig=t.IntegrationFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.IntegrationFieldType="IntegrationFields",t.IntegrationFieldConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,catalog:i.string})),t.IntegrationField=i.exact(i.intersection([i.type({type:i.literal(t.IntegrationFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.IntegrationFieldConfig}),]))},64907:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Link=t.LinkConfig=t.LinkFieldType=void 0;let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(69624),a=n(8597),c=e=>{if(e instanceof Array){let t=e.reduce((e,t)=>e&&"string"==typeof t,!0);if(t)return o.success(e)}},f=e=>{if("string"==typeof e)return o.success([e])},l=new o.Type("MasksArrayString",e=>e instanceof Array,(e,t)=>i.either.chain(o.union([o.array(o.string),o.string]).validate(e,t),n=>c(n)||f(n)||o.failure(e,t)),e=>e);t.LinkFieldType="Link",t.LinkConfig=o.exact(o.partial({label:a.StringOrNull,useAsTitle:o.boolean,placeholder:o.string,select:(0,u.withFallback)(o.union([o.literal("media"),o.literal("document"),o.literal("web"),o.null,]),null),customtypes:o.readonlyArray(o.string),masks:l,tags:l,allowTargetBlank:o.boolean})),t.Link=o.exact(o.intersection([o.type({type:o.literal(t.LinkFieldType)}),o.partial({fieldset:a.StringOrNull,config:t.LinkConfig}),]))},30961:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidget=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(66014),u=n(2330),a=n(77352),c=n(53142),f=n(46068),l=n(65694),p=n(60337),d=n(64907),s=n(16879),m=n(61490),h=n(48483),v=n(44284),y=n(29881),g=n(36732),_=n(48903);t.NestableWidget=i.union([u.Color,o.BooleanField,c.Embed,f.GeoPoint,a.Date,s.Number,m.Range,h.RichText,v.Select,y.Separator,g.Text,_.Timestamp,d.Link,l.Image,p.IntegrationField,])},16879:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Number=t.NumberConfig=t.NumberFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(59054),u=n(8597);t.NumberFieldType="Number",t.NumberConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,min:i.union([i.number,o.NumberFromString]),max:i.union([i.number,o.NumberFromString]),step:i.union([i.number,o.NumberFromString])})),t.Number=i.exact(i.intersection([i.type({type:i.literal(t.NumberFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.NumberConfig}),]))},61490:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Range=t.RangeConfig=t.RangeFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(59054),u=n(8597);t.RangeFieldType="Range",t.RangeConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,min:i.union([i.number,o.NumberFromString]),max:i.union([i.number,o.NumberFromString]),step:i.union([i.number,o.NumberFromString])})),t.Range=i.exact(i.intersection([i.type({type:i.literal(t.RangeFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.RangeConfig}),]))},48483:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichText=t.RichTextConfig=t.RichTextNodeTypeCodec=t.RichTextNodeType=t.DEFAULT_OPTION=t.RichTextFieldType=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(8597),f=(0,r.__importDefault)(n(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",e=>"string"==typeof e,e=>(0,u.pipe)(a.union([a.string,a.null]).decode(e),i.either.map(e=>{if(!e)return t.DEFAULT_OPTION;let n=e.split(",").map(e=>e.trim()),r=n.filter(e=>(0,o.getOrElseW)(()=>void 0)(t.RichTextNodeTypeCodec.decode(e)));return r.length?r.join(","):t.DEFAULT_OPTION})),e=>e),p=e=>{if(!e)return a.success([])},d=e=>{if(e instanceof Object){if(!Object.entries(e).length)return a.success([]);if(e[""])return a.success(e[""].map(e=>e.name));let t=Object.entries(e).reduce((e,[,t])=>e.concat(t.map(e=>e.name)),[]).filter(Boolean);return a.success(t)}},s=e=>{if(e instanceof Array){let t=e.reduce((e,t)=>e&&"string"==typeof t,!0);if(t)return a.success(e)}},m=e=>{if("string"==typeof e)return a.success([e])},h=new a.Type("RichTextLabels",e=>e instanceof Array,(e,t)=>{let n=a.record(a.string,a.readonlyArray(a.record(a.literal("name"),a.string))),r=a.readonlyArray(a.string);return(0,u.pipe)(a.union([n,r,a.string,a.null]).decode(e),i.either.chain(n=>p(n)||s(n)||d(n)||m(n)||a.failure(e,t)))},e=>e);t.RichTextConfig=a.exact(a.partial({label:c.StringOrNull,placeholder:a.string,useAsTitle:a.boolean,single:l,multi:l,imageConstraint:f.default,labels:h,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(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Select=t.SelectConfig=t.SelectFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.SelectFieldType="Select",t.SelectConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,default_value:i.string,options:i.readonlyArray(i.union([i.string,o.StringFromNumber,o.StringFromBoolean]))})),t.Select=i.exact(i.intersection([i.type({type:i.literal(t.SelectFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.SelectConfig}),]))},29881:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Separator=t.SeparatorConfig=t.SeparatorFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.SeparatorFieldType="Separator",t.SeparatorConfig=i.exact(i.partial({label:o.StringOrNull})),t.Separator=i.exact(i.intersection([i.type({type:i.literal(t.SeparatorFieldType)}),i.partial({config:t.SeparatorConfig}),]))},36732:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextConfig=t.TextFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.TextFieldType="Text",t.TextConfig=i.exact(i.partial({label:o.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),t.Text=i.exact(i.intersection([i.type({type:i.literal(t.TextFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.TextConfig}),]))},48903:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.TimestampConfig=t.TimestampFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.TimestampFieldType="Timestamp",t.TimestampConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,default:i.string})),t.Timestamp=i.exact(i.intersection([i.type({type:i.literal(t.TimestampFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.TimestampConfig}),]))},44613:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(66014),t),(0,r.__exportStar)(n(2330),t),(0,r.__exportStar)(n(77352),t),(0,r.__exportStar)(n(53142),t),(0,r.__exportStar)(n(46068),t),(0,r.__exportStar)(n(65694),t),(0,r.__exportStar)(n(60337),t),(0,r.__exportStar)(n(64907),t),(0,r.__exportStar)(n(30961),t),(0,r.__exportStar)(n(16879),t),(0,r.__exportStar)(n(61490),t),(0,r.__exportStar)(n(48483),t),(0,r.__exportStar)(n(44284),t),(0,r.__exportStar)(n(29881),t),(0,r.__exportStar)(n(36732),t),(0,r.__exportStar)(n(48903),t)},71747:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(11621),a=n(8597),c=new o.Type("SideConstraints",e=>!e||"number"==typeof e,(e,t)=>i.either.chain(o.union([o.literal("auto"),o.literal(""),o.Int,u.IntFromString,a.IntFromNumber,a.IntFromPixels,o.null,]).validate(e,t),e=>"auto"===e||""===e?o.success(null):o.success(e)),e=>e),f=o.partial({width:c,height:c});t.default=f},77666:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConstraint=void 0;var i=n(71747);Object.defineProperty(t,"ImageConstraint",{enumerable:!0,get:function(){return r(i).default}})},26417:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isCompositeSlice=t.CompositeSlice=t.CompositeSliceConfig=t.CompositeSliceType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(31289),u=n(8597),a=n(30961);t.CompositeSliceType="Slice",t.CompositeSliceConfig=i.exact(i.partial({label:u.StringOrNull})),t.CompositeSlice=i.exact(i.intersection([i.type({type:i.literal(t.CompositeSliceType)}),i.partial({fieldset:u.StringOrNull,description:i.string,icon:i.string,display:i.string,"non-repeat":i.record(o.WidgetKey,a.NestableWidget),repeat:i.record(o.WidgetKey,a.NestableWidget),config:t.CompositeSliceConfig}),])),t.isCompositeSlice=function(e){return"Slice"===e.type}},97442:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isLegacySlice=t.LegacySlice=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(10673),u=n(30961);t.LegacySlice=i.union([u.NestableWidget,o.NestedGroup]),t.isLegacySlice=function(e){return"Slice"!==e.type&&"SharedSlice"!==e.type}},32233:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicSharedSlice=t.isStaticSharedSlice=t.SharedSlice=t.SharedSliceType=t.Variation=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(69624),u=n(31289),a=n(30961),c=n(19288);t.Variation=i.exact(i.intersection([i.type({id:i.string,name:i.string,description:i.string,imageUrl:(0,o.withFallback)(i.string,"https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format"),docURL:i.string,version:i.string}),i.partial({display:i.string,primary:i.record(u.WidgetKey,c.SlicePrimaryWidget),items:i.record(u.WidgetKey,a.NestableWidget)}),])),t.SharedSliceType="SharedSlice";let f=i.string,l=i.string;t.SharedSlice=i.exact(i.intersection([i.type({id:i.string,type:i.literal(t.SharedSliceType),name:i.string,variations:i.readonlyArray(t.Variation)}),i.partial({description:i.string,legacyPaths:i.record(f,l)}),])),t.isStaticSharedSlice=function(e){return"SharedSlice"===e.type},t.isDynamicSharedSlice=function(e){return"SharedSlice"===e.type}},73194:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceRef=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(32233);t.SharedSliceRef=i.exact(i.type({type:i.literal(o.SharedSliceType)}))},42738:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},19288:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryWidget=t.SlicePrimaryWidget=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(10673),u=n(44613);t.SlicePrimaryWidget=i.union([u.NestableWidget,o.Group]);let a=e=>u.NestableWidget.is(e)||o.Group.is(e);t.isSlicePrimaryWidget=a},78110:function(e,t,n){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=n(98227),i=(0,r.__importStar)(n(87830)),o=n(31289),u=n(8597),a=n(26417),c=n(97442),f=n(32233),l=n(73194);function p(e){return i.exact(i.partial({label:u.StringOrNull,labels:t.SlicesLabels,choices:i.record(o.WidgetKey,i.union([c.LegacySlice,a.CompositeSlice,e]))}))}t.LegacySlicesFieldType="Choice",t.SlicesFieldType="Slices",t.SlicesLabels=i.union([i.record(i.string,i.readonlyArray(i.exact(i.intersection([i.type({name:i.string}),i.partial({display:i.string}),])))),i.null,]),t.slicesConfigReader=p,t.StaticSlicesConfig=p(f.SharedSlice),t.DynamicSlicesConfig=p(l.SharedSliceRef);let d={toStatic(e,t){let n=Object.entries(e.choices||{}).reduce((e,[n,r])=>{if("SharedSlice"!==r.type)return{...e,[n]:r};{let i=t.get(n);return i?{...e,[n]:i}:e}},{});return{...e,choices:n}}};function s(e){return i.exact(i.intersection([i.type({type:i.keyof({[t.SlicesFieldType]:null,[t.LegacySlicesFieldType]:null})}),i.partial({fieldset:u.StringOrNull,config:e}),]))}t.slicesReader=s,t.StaticSlices=s(t.StaticSlicesConfig),t.DynamicSlices=s(t.DynamicSlicesConfig),t.Slices={toStatic:(e,t)=>e.config?{...e,config:d.toStatic(e.config,t)}:e}},51945:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesTypes=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(26417),u=n(32233);t.SlicesTypes=i.keyof({[o.CompositeSliceType]:null,[u.SharedSliceType]:null})},30324:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(26417),t),(0,r.__exportStar)(n(97442),t),(0,r.__exportStar)(n(32233),t),(0,r.__exportStar)(n(73194),t),(0,r.__exportStar)(n(42738),t),(0,r.__exportStar)(n(19288),t),(0,r.__exportStar)(n(78110),t),(0,r.__exportStar)(n(51945),t)},18949:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toRecord=void 0,t.toRecord=function(e,t){return e.reduce((e,n)=>{let r=t(n);return{...e,[r]:n}},{})}},17160:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mapValues=t.isObject=t.withOptionals=t.isNotEmpty=t.zipObjects=void 0;let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830));t.zipObjects=function(e,t){let n=[...new Set(Object.keys(e||{}).concat(Object.keys(t||{}))),];return n.reduce((n,r)=>{let i=null==e?void 0:e[r],o=null==t?void 0:t[r];return{...n,[r]:{left:i,right:o}}},{})},t.isNotEmpty=function(e){return Boolean(Object.keys(e).length)},t.withOptionals=function(e,t){return{...e,...t.reduce((e,[t,n])=>n?{...e,[t]:n}:e,{})}};let u=o.record(o.string,o.unknown);t.isObject=function(e){return(0,i.isRight)(u.decode(e))},t.mapValues=function(e,t){return Object.entries(e).reduce((e,[n,r])=>({...e,[n]:t(r,n)}),{})}},35566:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Objects=t.Arrays=t.HexaColorCode=void 0;let r=n(98227);t.HexaColorCode=(0,r.__importStar)(n(55962)),t.Arrays=(0,r.__importStar)(n(18949)),t.Objects=(0,r.__importStar)(n(17160))},19841:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArray=t.EmptyObject=t.Boolean=t.NumberOrNull=t.Number=t.StringOrNull=t.String=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(35002);t.String=(0,a.withCustomError)(u.string,()=>"The value must be a string"),t.StringOrNull=(0,a.withCustomError)(u.union([u.string,u.null]),()=>"The value must be a string or null"),t.Number=(0,a.withCustomError)(u.number,()=>"The value must be a number"),t.NumberOrNull=(0,a.withCustomError)(u.union([u.number,u.null]),()=>"The value must be a number or null"),t.Boolean=(0,a.withCustomError)(u.boolean,()=>"The value must be a boolean"),t.EmptyObject=u.UnknownRecord.pipe(new u.Type("emptyObject",e=>u.UnknownRecord.is(e),(e,t)=>Object.keys(e).length>0?u.failure(e,t,"The object is not empty."):u.success({}),u.identity)),t.EmptyArray=new u.Type("emptyArray",e=>u.UnknownArray.is(e)&&0===e.length,(e,t)=>(0,o.pipe)(u.UnknownArray.decode(e),i.either.chain(n=>n.length>0?u.failure(e,t,"The array is not empty."):u.success([]))),()=>[])},89394:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(8597);t.default=new u.Type("dateFromString",e=>e instanceof Date,(e,t)=>(0,o.pipe)(a.String.validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e.toISOString())},23954:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("dateFromStringOrNumber",e=>e instanceof Date,(e,t)=>(0,o.pipe)(u.union([u.number,u.string]).validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e)},72113:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("dateFromTsMs",e=>e instanceof Date,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e.getTime())},35541:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArrayOrElse=t.EmptyObjectOrElse=t.NullOrElse=t.DefaultOrElse=void 0;let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(19841),a=e=>t=>new o.Type(`DefaultOrElse<${e.name}, ${t.name}>`,e=>null===e||t.is(e),(n,r)=>(0,i.isRight)(e.validate(n,r))?o.success(null):t.validate(n,r),e=>e?t.encode(e):void 0);t.DefaultOrElse=a;let c=e=>(0,t.DefaultOrElse)(o.null)(e);t.NullOrElse=c;let f=e=>(0,t.DefaultOrElse)(u.EmptyObject)(e);t.EmptyObjectOrElse=f;let l=e=>(0,t.DefaultOrElse)(u.EmptyArray)(e);t.EmptyArrayOrElse=l},62990:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("IntFromNumber",u.Int.is,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(e=>u.Int.is(e)?u.success(e):u.success(Math.round(e)))),u.Int.encode)},64678:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830)),a=/^([0-9]+)px$/;t.default=new u.Type("IntFromPixels",u.Int.is,(e,t)=>(0,o.pipe)(u.string.validate(e,t),(0,i.chain)(n=>{try{let r=n.match(a);if(!r)return u.failure(e,t);let i=parseInt(r[1]);return u.success(i)}catch{return u.failure(e,t)}})),String)},19528:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(35002);t.default=(0,o.withCustomError)((0,o.refineType)(i.string,"nonEmptyString",e=>e.trim().length>0),()=>"The value must be a non-empty string")},89448:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=n(87830),a=(0,r.__importDefault)(n(89793));t.default=new u.Type("nonEmptyStringOrNull",e=>"string"==typeof e||null===e,(e,t)=>(0,o.pipe)(a.default.validate(e,t),(0,i.chain)(e=>"string"==typeof e&&e.length>0?(0,u.success)(e):(0,u.success)(null))),e=>e)},33805:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(35002);t.default=(0,o.nullable)(i.number)},13670:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(19841);t.default=(e,t,n)=>o.Number.pipe(new i.Type("numberInRange",e=>o.Number.is(e),(r,o)=>r>t||r<e?i.failure(r,o,`${n} must be a number between ${e} and ${t}`):i.success(r),i.identity))},32047:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("StringFromInt",u.string.is,(e,t)=>(0,o.pipe)(u.boolean.validate(e,t),(0,i.chain)(e=>u.success(e.toString()))),e=>e)},80990:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("StringFromInt",u.string.is,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(e=>u.success(e.toString()))),e=>e)},89793:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(35002);t.default=(0,o.nullable)(i.string)},38729:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("TrimmedString",u.string.is,(e,t)=>(0,o.pipe)(u.string.validate(e,t),(0,i.chain)(e=>u.success(function(e){let t=0;for(;t<e.length&&e[t]<=" ";)t++;let n=e.length;for(;t<n&&e[n-1]<=" ";)n--;return e.substring(t,n)}(e)))),e=>e)},35002:function(e,t,n){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=n(98227),i=n(9554),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(23284),c=n(47361);t.nullable=function(e){return u.union([e,u.null,u.undefined])},t.refineType=function(e,t,n){return new u.Type(t,e.is,(t,r)=>(0,o.pipe)(e.validate(t,r),i.either.chain(e=>n(e)?u.success(e):u.failure(t,r))),e.encode)},t.filterDouble=function(e){if(""===e)return null;let t=Number(e);return Number.isNaN(t)?null:t},t.formatDateTime=function(e){return e.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(e){return e.toISOString().replace(/T.*/,"")},t.grouped=function(e,t){return e.reduce((e,n,r)=>(r%t==0?e.push([n]):e[Math.floor(r/t)].push(n),e),[])},t.objectToMap=function(e){return new Map(Object.entries(e))},t.isEmpty=function(e){for(let t in e)return!1;return!0},t.addType=function(e,t){return(0,c.mapOutput)(e,e=>({...e,__TYPE__:t}))},t.withCustomError=function(e,t){return(0,a.withValidate)(e,(n,r)=>i.either.mapLeft(e=>e.find(e=>e.message)?e:[{value:n,context:r,message:t(n,r),actual:n},])(e.validate(n,r)))}},8597:function(e,t,n){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=n(98227);(0,r.__exportStar)(n(19841),t);var i=n(89394);Object.defineProperty(t,"DateFromString",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var o=n(23954);Object.defineProperty(t,"DateFromStringOrNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}});var u=n(72113);Object.defineProperty(t,"DateFromTsMs",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}}),(0,r.__exportStar)(n(35541),t),t.Function=(0,r.__importStar)(n(35002));var a=n(62990);Object.defineProperty(t,"IntFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var c=n(64678);Object.defineProperty(t,"IntFromPixels",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var f=n(19528);Object.defineProperty(t,"NonEmptyString",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var l=n(89448);Object.defineProperty(t,"NonEmptyStringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var p=n(33805);Object.defineProperty(t,"NumberOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(p).default}});var d=n(13670);Object.defineProperty(t,"NumberRange",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}});var s=n(32047);Object.defineProperty(t,"StringFromBoolean",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var m=n(80990);Object.defineProperty(t,"StringFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(m).default}});var h=n(89793);Object.defineProperty(t,"StringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(h).default}})},46111:function(e,t,n){n.r(t),n.d(t,{getApplicativeComposition:function(){return a},getApplicativeMonoid:function(){return u}});var r=n(42925),i=n(42275),o=n(67560);function u(e){var t=(0,r.getApplySemigroup)(e);return function(n){return{concat:t(n).concat,empty:e.of(n.empty)}}}function a(e,t){var n=(0,o.getFunctorComposition)(e,t).map,u=(0,r.ap)(e,t);return{map:n,of:function(n){return e.of(t.of(n))},ap:function(e,t){return(0,i.pipe)(e,u(t))}}}},42925:function(e,t,n){n.r(t),n.d(t,{ap:function(){return o},apFirst:function(){return u},apS:function(){return c},apSecond:function(){return a},getApplySemigroup:function(){return f},sequenceS:function(){return s},sequenceT:function(){return d}});var r=n(42275),i=n(97963);function o(e,t){return function(n){return function(r){return e.ap(e.map(r,function(e){return function(n){return t.ap(e,n)}}),n)}}}function u(e){return function(t){return function(n){return e.ap(e.map(n,function(e){return function(){return e}}),t)}}}function a(e){return function(t){return function(n){return e.ap(e.map(n,function(){return function(e){return e}}),t)}}}function c(e){return function(t,n){return function(r){return e.ap(e.map(r,function(e){return function(n){var r;return Object.assign({},e,((r={})[t]=n,r))}}),n)}}}function f(e){return function(t){return{concat:function(n,r){return e.ap(e.map(n,function(e){return function(n){return t.concat(e,n)}}),r)}}}}function l(e,t,n){return function(r){for(var i=Array(n.length+1),o=0;o<n.length;o++)i[o]=n[o];return i[n.length]=r,0===t?e.apply(null,i):l(e,t-1,i)}}var p={1:function(e){return[e]},2:function(e){return function(t){return[e,t]}},3:function(e){return function(t){return function(n){return[e,t,n]}}},4:function(e){return function(t){return function(n){return function(r){return[e,t,n,r]}}}},5:function(e){return function(t){return function(n){return function(r){return function(i){return[e,t,n,r,i]}}}}}};function d(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var o,u=t.length,a=(i.e$.call(p,u)||(p[u]=l(r.tuple,u-1,[])),p[u]),c=e.map(t[0],a),f=1;f<u;f++)c=e.ap(c,t[f]);return c}}function s(e){return function(t){for(var n=Object.keys(t),r=n.length,i=function(e){var t=e.length;switch(t){case 1:return function(t){var n;return(n={})[e[0]]=t,n};case 2:return function(t){return function(n){var r;return(r={})[e[0]]=t,r[e[1]]=n,r}};case 3:return function(t){return function(n){return function(r){var i;return(i={})[e[0]]=t,i[e[1]]=n,i[e[2]]=r,i}}};case 4:return function(t){return function(n){return function(r){return function(i){var o;return(o={})[e[0]]=t,o[e[1]]=n,o[e[2]]=r,o[e[3]]=i,o}}}};case 5:return function(t){return function(n){return function(r){return function(i){return function(o){var u;return(u={})[e[0]]=t,u[e[1]]=n,u[e[2]]=r,u[e[3]]=i,u[e[4]]=o,u}}}}};default:return l(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i={},o=0;o<t;o++)i[e[o]]=n[o];return i},t-1,[])}}(n),o=e.map(t[n[0]],i),u=1;u<r;u++)o=e.ap(o,t[n[u]]);return o}}},1358:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return tB},Alternative:function(){return tz},Applicative:function(){return tA},Apply:function(){return tN},Chain:function(){return tj},ChainRecBreadthFirst:function(){return t9},ChainRecDepthFirst:function(){return t5},Compactable:function(){return t$},Do:function(){return nf},Extend:function(){return tH},Filterable:function(){return tX},FilterableWithIndex:function(){return tJ},Foldable:function(){return tZ},FoldableWithIndex:function(){return tQ},FromEither:function(){return ne},Functor:function(){return tk},FunctorWithIndex:function(){return tD},Monad:function(){return tG},Pointed:function(){return tF},Traversable:function(){return t0},TraversableWithIndex:function(){return t1},URI:function(){return tT},Unfoldable:function(){return tY},Witherable:function(){return t7},Zero:function(){return tK},alt:function(){return tu},altW:function(){return to},ap:function(){return e2},apFirst:function(){return tL},apS:function(){return ns},apSecond:function(){return tU},append:function(){return g},appendW:function(){return _},array:function(){return nb},bind:function(){return nd},bindTo:function(){return nl},chain:function(){return nm},chainFirst:function(){return tq},chainRecBreadthFirst:function(){return t4},chainRecDepthFirst:function(){return t3},chainWithIndex:function(){return W},chop:function(){return eb},chunksOf:function(){return eT},compact:function(){return e9},comprehension:function(){return eR},concat:function(){return eO},concatW:function(){return ew},cons:function(){return ny},copy:function(){return er},deleteAt:function(){return eu},difference:function(){return eM},dropLeft:function(){return H},dropLeftWhile:function(){return X},dropRight:function(){return $},duplicate:function(){return tf},elem:function(){return ey},empty:function(){return nv},every:function(){return no},exists:function(){return na},extend:function(){return tc},filter:function(){return te},filterE:function(){return t6},filterMap:function(){return e4},filterMapWithIndex:function(){return e5},filterWithIndex:function(){return ta},findFirst:function(){return Z},findFirstMap:function(){return Q},findIndex:function(){return J},findLast:function(){return ee},findLastIndex:function(){return en},findLastMap:function(){return et},flap:function(){return tW},flatMap:function(){return e8},flatten:function(){return e7},foldLeft:function(){return M},foldMap:function(){return tl},foldMapWithIndex:function(){return tp},foldRight:function(){return k},fromEither:function(){return R},fromEitherK:function(){return nt},fromOption:function(){return I},fromOptionK:function(){return eI},fromPredicate:function(){return T},getDifferenceMagma:function(){return tP},getEq:function(){return tO},getIntersectionSemigroup:function(){return tE},getMonoid:function(){return tw},getOrd:function(){return tx},getSemigroup:function(){return tR},getShow:function(){return tI},getUnionMonoid:function(){return tM},getUnionSemigroup:function(){return tC},guard:function(){return tV},head:function(){return A},init:function(){return G},insertAt:function(){return ei},intercalate:function(){return nc},intersection:function(){return eC},intersperse:function(){return eh},isEmpty:function(){return m},isNonEmpty:function(){return h},isOutOfBound:function(){return L},last:function(){return j},lefts:function(){return el},let:function(){return np},lookup:function(){return U},makeBy:function(){return b},map:function(){return e1},mapWithIndex:function(){return e3},match:function(){return O},matchLeft:function(){return C},matchLeftW:function(){return x},matchRight:function(){return P},matchRightW:function(){return E},matchW:function(){return w},modifyAt:function(){return ea},of:function(){return eQ},partition:function(){return tt},partitionMap:function(){return tr},partitionMapWithIndex:function(){return ti},partitionWithIndex:function(){return tn},prepend:function(){return v},prependAll:function(){return em},prependToAll:function(){return n_},prependW:function(){return y},range:function(){return nh},reduce:function(){return td},reduceRight:function(){return tm},reduceRightWithIndex:function(){return th},reduceWithIndex:function(){return ts},replicate:function(){return S},reverse:function(){return ec},rights:function(){return ef},rotate:function(){return ev},scanLeft:function(){return F},scanRight:function(){return D},separate:function(){return e6},sequence:function(){return ty},size:function(){return N},snoc:function(){return ng},some:function(){return nu},sort:function(){return ep},sortBy:function(){return e_},spanLeft:function(){return z},splitAt:function(){return eS},tail:function(){return q},takeLeft:function(){return Y},takeLeftWhile:function(){return K},takeRight:function(){return B},traverse:function(){return tv},traverseWithIndex:function(){return tg},unfold:function(){return tS},union:function(){return ex},uniq:function(){return eg},unsafeDeleteAt:function(){return ni},unsafeInsertAt:function(){return nn},unsafeUpdateAt:function(){return nr},unzip:function(){return es},updateAt:function(){return eo},wilt:function(){return tb},wither:function(){return t_},zero:function(){return e0},zip:function(){return function e(t,n){return void 0===n?function(n){return e(n,t)}:ed(t,n,function(e,t){return[e,t]})}},zipWith:function(){return ed}});var r=n(42925),i=n(88543),o=n(25162),u=n(42275),a=n(67560),c=n(97963),f=n(43586),l=n(31583),p=n(34219),d=n(76511),s=n(28957),m=function(e){return 0===e.length},h=f.isNonEmpty,v=f.prepend,y=f.prependW,g=f.append,_=f.appendW,b=function(e,t){return e<=0?[]:f.makeBy(t)(e)},S=function(e,t){return b(e,function(){return t})};function T(e){return function(t){return e(t)?[t]:[]}}var I=function(e){return c.Wi(e)?[]:[e.value]},R=function(e){return c.nM(e)?[]:[e.right]},w=function(e,t){return function(n){return h(n)?t(n):e()}},O=w,x=function(e,t){return function(n){return h(n)?t(f.head(n),f.tail(n)):e()}},C=x,M=C,E=function(e,t){return function(n){return h(n)?t(f.init(n),f.last(n)):e()}},P=E,k=P,W=function(e){return function(t){for(var n=[],r=0;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},F=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}},D=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}},N=function(e){return e.length},L=f.isOutOfBound,U=l.lookup,A=l.head,j=l.last,q=function(e){return h(e)?c.G(f.tail(e)):c.YP},G=function(e){return h(e)?c.G(f.init(e)):c.YP},Y=function(e){return function(t){return L(e,t)?er(t):t.slice(0,e)}},B=function(e){return function(t){return L(e,t)?er(t):0===e?[]:t.slice(-e)}};function K(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];if(!e(i))break;n.push(i)}return n}}var V=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r};function z(e){return function(t){var n,r=eS(V(t,e))(t);return{init:r[0],rest:r[1]}}}var H=function(e){return function(t){return e<=0||m(t)?er(t):e>=t.length?[]:t.slice(e,t.length)}},$=function(e){return function(t){return e<=0||m(t)?er(t):e>=t.length?[]:t.slice(0,t.length-e)}};function X(e){return function(t){return t.slice(V(t,e))}}var J=l.findIndex;function Z(e){return l.findFirst(e)}var Q=l.findFirstMap;function ee(e){return l.findLast(e)}var et=l.findLastMap,en=l.findLastIndex,er=function(e){return e.slice()},ei=function(e,t){return function(n){return e<0||e>n.length?c.YP:c.G(nn(e,t,n))}},eo=function(e,t){return ea(e,function(){return t})},eu=function(e){return function(t){return L(e,t)?c.YP:c.G(ni(e,t))}},ea=function(e,t){return function(n){return L(e,n)?c.YP:c.G(nr(e,t(n[e]),n))}},ec=function(e){return m(e)?[]:e.slice().reverse()},ef=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t},el=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t},ep=function(e){return function(t){return t.length<=1?er(t):t.slice().sort(e.compare)}},ed=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r},es=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},em=function(e){var t=f.prependAll(e);return function(e){return h(e)?t(e):[]}},eh=function(e){var t=f.intersperse(e);return function(e){return h(e)?t(e):er(e)}},ev=function(e){var t=f.rotate(e);return function(e){return h(e)?t(e):er(e)}},ey=l.elem,eg=function(e){var t=f.uniq(e);return function(e){return h(e)?t(e):er(e)}},e_=function(e){var t=f.sortBy(e);return function(e){return h(e)?t(e):er(e)}},eb=function(e){var t=f.chop(e);return function(e){return h(e)?t(e):[]}},eS=function(e){return function(t){return e>=1&&h(t)?f.splitAt(e)(t):m(t)?[er(t),[]]:[[],er(t)]}},eT=function(e){var t=f.chunksOf(e);return function(e){return h(e)?t(e):[]}},eI=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return I(e.apply(void 0,t))}};function eR(e,t,n){void 0===n&&(n=function(){return!0});var r=function(e,i){return h(i)?e8(f.head(i),function(t){return r((0,u.pipe)(e,g(t)),f.tail(i))}):n.apply(void 0,e)?[t.apply(void 0,e)]:[]};return r([],e)}var ew=function(e){return function(t){return m(t)?er(e):m(e)?er(t):t.concat(e)}},eO=ew;function ex(e){var t=f.union(e);return function(n,r){if(void 0===r){var i=ex(e);return function(e){return i(e,n)}}return h(n)&&h(r)?t(r)(n):h(n)?er(n):er(r)}}function eC(e){var t=ey(e);return function(n,r){if(void 0===r){var i=eC(e);return function(e){return i(e,n)}}return n.filter(function(e){return t(e,r)})}}function eM(e){var t=ey(e);return function(n,r){if(void 0===r){var i=eM(e);return function(e){return i(e,n)}}return n.filter(function(e){return!t(e,r)})}}var eE=function(e,t){return(0,u.pipe)(e,e1(t))},eP=function(e,t){return(0,u.pipe)(e,e3(t))},ek=function(e,t){return(0,u.pipe)(e,e2(t))},eW=function(e,t){return(0,u.pipe)(e,te(t))},eF=function(e,t){return(0,u.pipe)(e,e4(t))},eD=function(e,t){return(0,u.pipe)(e,tt(t))},eN=function(e,t){return(0,u.pipe)(e,tr(t))},eL=function(e,t){return(0,u.pipe)(e,tn(t))},eU=function(e,t){return(0,u.pipe)(e,ti(t))},eA=function(e,t){return(0,u.pipe)(e,tu(t))},ej=function(e,t,n){return(0,u.pipe)(e,td(t,n))},eq=function(e){var t=tl(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eG=function(e,t,n){return(0,u.pipe)(e,tm(t,n))},eY=function(e,t,n){return(0,u.pipe)(e,ts(t,n))},eB=function(e){var t=tp(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eK=function(e,t,n){return(0,u.pipe)(e,th(t,n))},eV=function(e,t){return(0,u.pipe)(e,e5(t))},ez=function(e,t){return(0,u.pipe)(e,ta(t))},eH=function(e,t){return(0,u.pipe)(e,tc(t))},e$=function(e){var t=tv(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eX=function(e){var t=tg(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eJ=l._chainRecDepthFirst,eZ=l._chainRecBreadthFirst,eQ=f.of,e0=function(){return[]},e1=function(e){return function(t){return t.map(function(t){return e(t)})}},e2=function(e){return e8(function(t){return(0,u.pipe)(e,e1(t))})},e8=(0,u.dual)(2,function(e,t){return(0,u.pipe)(e,W(function(e,n){return t(n,e)}))}),e7=e8(u.identity),e3=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}},e5=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);c.pC(i)&&n.push(i.value)}return n}},e4=function(e){return e5(function(t,n){return e(n)})},e9=e4(u.identity),e6=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return(0,p.separated)(t,n)},te=function(e){return function(t){return t.filter(e)}},tt=function(e){return tn(function(t,n){return e(n)})},tn=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return(0,p.separated)(n,r)}},tr=function(e){return ti(function(t,n){return e(n)})},ti=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return(0,p.separated)(n,r)}},to=function(e){return function(t){return t.concat(e())}},tu=to,ta=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}},tc=function(e){return function(t){return t.map(function(n,r){return e(t.slice(r))})}},tf=tc(u.identity),tl=l.foldMap,tp=l.foldMapWithIndex,td=l.reduce,ts=l.reduceWithIndex,tm=l.reduceRight,th=l.reduceRightWithIndex,tv=function(e){var t=tg(e);return function(e){return t(function(t,n){return e(n)})}},ty=function(e){return function(t){return ej(t,e.of(e0()),function(t,n){return e.ap(e.map(t,function(e){return function(t){return(0,u.pipe)(e,g(t))}}),n)})}},tg=function(e){return function(t){return ts(e.of(e0()),function(n,r,i){return e.ap(e.map(r,function(e){return function(t){return(0,u.pipe)(e,g(t))}}),t(n,i))})}},t_=function(e){var t=t2(e);return function(e){return function(n){return t(n,e)}}},tb=function(e){var t=t8(e);return function(e){return function(n){return t(n,e)}}},tS=function(e,t){for(var n=[],r=e;;){var i=t(r);if(c.pC(i)){var o=i.value,u=o[0],a=o[1];n.push(u),r=a}else break}return n},tT="Array",tI=l.getShow,tR=function(){return{concat:function(e,t){return e.concat(t)}}},tw=function(){return{concat:tR().concat,empty:[]}},tO=l.getEq,tx=l.getOrd,tC=function(e){var t=ex(e);return{concat:function(e,n){return t(n)(e)}}},tM=function(e){return{concat:tC(e).concat,empty:[]}},tE=function(e){var t=eC(e);return{concat:function(e,n){return t(n)(e)}}},tP=function(e){var t=eM(e);return{concat:function(e,n){return t(n)(e)}}},tk={URI:tT,map:eE},tW=(0,a.flap)(tk),tF={URI:tT,of:eQ},tD={URI:tT,map:eE,mapWithIndex:eP},tN={URI:tT,map:eE,ap:ek},tL=(0,r.apFirst)(tN),tU=(0,r.apSecond)(tN),tA={URI:tT,map:eE,ap:ek,of:eQ},tj={URI:tT,map:eE,ap:ek,chain:e8},tq=(0,i.chainFirst)(tj),tG={URI:tT,map:eE,ap:ek,of:eQ,chain:e8},tY={URI:tT,unfold:tS},tB={URI:tT,map:eE,alt:eA},tK={URI:tT,zero:e0},tV=(0,s.guard)(tK,tF),tz={URI:tT,map:eE,ap:ek,of:eQ,alt:eA,zero:e0},tH={URI:tT,map:eE,extend:eH},t$={URI:tT,compact:e9,separate:e6},tX={URI:tT,map:eE,compact:e9,separate:e6,filter:eW,filterMap:eF,partition:eD,partitionMap:eN},tJ={URI:tT,map:eE,mapWithIndex:eP,compact:e9,separate:e6,filter:eW,filterMap:eF,partition:eD,partitionMap:eN,partitionMapWithIndex:eU,partitionWithIndex:eL,filterMapWithIndex:eV,filterWithIndex:ez},tZ={URI:tT,reduce:ej,foldMap:eq,reduceRight:eG},tQ={URI:tT,reduce:ej,foldMap:eq,reduceRight:eG,reduceWithIndex:eY,foldMapWithIndex:eB,reduceRightWithIndex:eK},t0={URI:tT,map:eE,reduce:ej,foldMap:eq,reduceRight:eG,traverse:e$,sequence:ty},t1={URI:tT,map:eE,mapWithIndex:eP,reduce:ej,foldMap:eq,reduceRight:eG,reduceWithIndex:eY,foldMapWithIndex:eB,reduceRightWithIndex:eK,traverse:e$,sequence:ty,traverseWithIndex:eX},t2=(0,d.witherDefault)(t0,t$),t8=(0,d.wiltDefault)(t0,t$),t7={URI:tT,map:eE,compact:e9,separate:e6,filter:eW,filterMap:eF,partition:eD,partitionMap:eN,reduce:ej,foldMap:eq,reduceRight:eG,traverse:e$,sequence:ty,wither:t2,wilt:t8},t3=l.chainRecDepthFirst,t5={URI:tT,map:eE,ap:ek,chain:e8,chainRec:eJ},t4=l.chainRecBreadthFirst,t9={URI:tT,map:eE,ap:ek,chain:e8,chainRec:eZ},t6=(0,d.filterE)(t7),ne={URI:tT,fromEither:R},nt=(0,o.fromEitherK)(ne),nn=f.unsafeInsertAt,nr=function(e,t,n){return h(n)?f.unsafeUpdateAt(e,t,n):[]},ni=function(e,t){var n=t.slice();return n.splice(e,1),n},no=l.every,nu=function(e){return function(t){return t.some(e)}},na=nu,nc=l.intercalate,nf=eQ(c.F4),nl=(0,a.bindTo)(tk),np=(0,a.let)(tk),nd=(0,i.bind)(tj),ns=(0,r.apS)(tN),nm=e8,nh=f.range,nv=[],ny=f.cons,ng=f.snoc,n_=em,nb={URI:tT,compact:e9,separate:e6,map:eE,ap:ek,of:eQ,chain:e8,filter:eW,filterMap:eF,partition:eD,partitionMap:eN,mapWithIndex:eP,partitionMapWithIndex:eU,partitionWithIndex:eL,filterMapWithIndex:eV,filterWithIndex:ez,alt:eA,zero:e0,unfold:tS,reduce:ej,foldMap:eq,reduceRight:eG,traverse:e$,sequence:ty,reduceWithIndex:eY,foldMapWithIndex:eB,reduceRightWithIndex:eK,traverseWithIndex:eX,extend:eH,wither:t2,wilt:t8}},88543:function(e,t,n){function r(e){var t=i(e);return function(e){return function(n){return t(n,e)}}}function i(e){return function(t,n){return e.chain(t,function(t){return e.map(n(t),function(){return t})})}}function o(e){return function(t,n){return function(r){return e.chain(r,function(r){return e.map(n(r),function(e){var n;return Object.assign({},r,((n={})[t]=e,n))})})}}}n.r(t),n.d(t,{bind:function(){return o},chainFirst:function(){return r},tap:function(){return i}})},56661:function(e,t,n){n.r(t),n.d(t,{tailRec:function(){return r}});var r=function(e,t){for(var n=t(e);"Left"===n._tag;)n=t(n.left);return n.right}},90817:function(e,t,n){n.r(t),n.d(t,{Bifunctor:function(){return E},Contravariant:function(){return M},Functor:function(){return x},URI:function(){return O},bimap:function(){return R},const_:function(){return P},contramap:function(){return T},flap:function(){return C},getApplicative:function(){return y},getApply:function(){return v},getBooleanAlgebra:function(){return h},getBounded:function(){return f},getEq:function(){return a},getHeytingAlgebra:function(){return m},getMonoid:function(){return p},getOrd:function(){return c},getRing:function(){return s},getSemigroup:function(){return l},getSemiring:function(){return d},getShow:function(){return u},make:function(){return o},map:function(){return I},mapLeft:function(){return w}});var r=n(42275),i=n(67560),o=r.unsafeCoerce;function u(e){return{show:function(t){return"make(".concat(e.show(t),")")}}}var a=r.identity,c=r.identity,f=r.identity,l=r.identity,p=r.identity,d=r.identity,s=r.identity,m=r.identity,h=r.identity;function v(e){return{URI:O,_E:void 0,map:_,ap:function(t,n){return o(e.concat(t,n))}}}function y(e){var t=v(e);return{URI:O,_E:void 0,map:t.map,ap:t.ap,of:function(){return o(e.empty)}}}var g=function(e,t){return(0,r.pipe)(e,T(t))},_=function(e,t){return(0,r.pipe)(e,I(t))},b=function(e,t,n){return(0,r.pipe)(e,R(t,n))},S=function(e,t){return(0,r.pipe)(e,w(t))},T=function(){return r.unsafeCoerce},I=function(){return r.unsafeCoerce},R=function(e){return function(t){return o(e(t))}},w=function(e){return function(t){return o(e(t))}},O="Const",x={URI:O,map:_},C=(0,i.flap)(x),M={URI:O,contramap:g},E={URI:O,bimap:b,mapLeft:S},P={URI:O,map:_,contramap:g,bimap:b,mapLeft:S}},81878:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return eu},ApT:function(){return e4},Applicative:function(){return K},Apply:function(){return B},Bifunctor:function(){return er},Chain:function(){return V},ChainRec:function(){return ef},Do:function(){return e0},Extend:function(){return ec},Foldable:function(){return J},FromEither:function(){return ed},Functor:function(){return L},Monad:function(){return z},MonadThrow:function(){return ep},Pointed:function(){return q},Traversable:function(){return ee},URI:function(){return x},alt:function(){return eo},altW:function(){return ei},ap:function(){return Y},apFirst:function(){return eR},apFirstW:function(){return ew},apS:function(){return e3},apSW:function(){return e5},apSecond:function(){return eO},apSecondW:function(){return ex},apW:function(){return G},as:function(){return U},asUnit:function(){return A},bimap:function(){return et},bind:function(){return e8},bindTo:function(){return e1},bindW:function(){return e7},chain:function(){return ti},chainFirst:function(){return to},chainFirstW:function(){return tu},chainNullableK:function(){return eX},chainOptionK:function(){return eW},chainOptionKW:function(){return eF},chainW:function(){return tr},duplicate:function(){return eP},either:function(){return tf},elem:function(){return function e(t){return function(n,r){if(void 0===r){var i=e(t);return function(e){return i(n,e)}}return!eh(r)&&t.equals(n,r.right)}}},exists:function(){return eQ},extend:function(){return ea},filterOrElse:function(){return eq},filterOrElseW:function(){return eG},flap:function(){return eI},flatMap:function(){return h},flatMapNullable:function(){return eA},flatMapOption:function(){return ej},flatten:function(){return eE},flattenW:function(){return eM},fold:function(){return eb},foldMap:function(){return $},foldW:function(){return eg},fromNullable:function(){return eV},fromNullableK:function(){return e$},fromOption:function(){return em},fromOptionK:function(){return ek},fromPredicate:function(){return es},getAltValidation:function(){return D},getApplicativeValidation:function(){return F},getApplyMonoid:function(){return tp},getApplySemigroup:function(){return tl},getCompactable:function(){return P},getEq:function(){return M},getFilterable:function(){return k},getOrElse:function(){return eT},getOrElseW:function(){return eS},getSemigroup:function(){return E},getShow:function(){return C},getValidation:function(){return tm},getValidationMonoid:function(){return ts},getValidationSemigroup:function(){return td},getWitherable:function(){return W},isLeft:function(){return eh},isRight:function(){return ev},left:function(){return s},let:function(){return e2},liftNullable:function(){return eN},liftOption:function(){return eL},map:function(){return N},mapLeft:function(){return en},match:function(){return e_},matchW:function(){return ey},of:function(){return j},orElse:function(){return eK},orElseW:function(){return eB},parseJSON:function(){return ta},reduce:function(){return H},reduceRight:function(){return X},right:function(){return m},sequence:function(){return Q},sequenceArray:function(){return tn},stringifyJSON:function(){return tc},swap:function(){return eY},tap:function(){return eC},throwError:function(){return el},toError:function(){return eZ},toUnion:function(){return eJ},traverse:function(){return Z},traverseArray:function(){return tt},traverseArrayWithIndex:function(){return te},traverseReadonlyArrayWithIndex:function(){return e6},traverseReadonlyNonEmptyArrayWithIndex:function(){return e9},tryCatch:function(){return ez},tryCatchK:function(){return eH}});var r=n(46111),i=n(42925),o=n(88543),u=n(56661),a=n(25162),c=n(42275),f=n(67560),l=n(97963),p=n(34219),d=n(76511),s=l.t$,m=l.F2,h=(0,c.dual)(2,function(e,t){return eh(e)?e:t(e.right)}),v=function(e,t){return(0,c.pipe)(e,N(t))},y=function(e,t){return(0,c.pipe)(e,Y(t))},g=function(e,t,n){return(0,c.pipe)(e,H(t,n))},_=function(e){return function(t,n){var r=$(e);return(0,c.pipe)(t,r(n))}},b=function(e,t,n){return(0,c.pipe)(e,X(t,n))},S=function(e){var t=Z(e);return function(e,n){return(0,c.pipe)(e,t(n))}},T=function(e,t,n){return(0,c.pipe)(e,et(t,n))},I=function(e,t){return(0,c.pipe)(e,en(t))},R=function(e,t){return(0,c.pipe)(e,eo(t))},w=function(e,t){return(0,c.pipe)(e,ea(t))},O=function(e,t){return(0,u.tailRec)(t(e),function(e){return eh(e)?m(s(e.left)):eh(e.right)?s(t(e.right.left)):m(m(e.right.right))})},x="Either",C=function(e,t){return{show:function(n){return eh(n)?"left(".concat(e.show(n.left),")"):"right(".concat(t.show(n.right),")")}}},M=function(e,t){return{equals:function(n,r){return n===r||(eh(n)?eh(r)&&e.equals(n.left,r.left):ev(r)&&t.equals(n.right,r.right))}}},E=function(e){return{concat:function(t,n){return eh(n)?t:eh(t)?n:m(e.concat(t.right,n.right))}}},P=function(e){var t=s(e.empty);return{URI:x,_E:void 0,compact:function(e){return eh(e)?e:"None"===e.right._tag?t:m(e.right.value)},separate:function(e){return eh(e)?(0,p.separated)(e,e):eh(e.right)?(0,p.separated)(m(e.right.left),t):(0,p.separated)(t,m(e.right.right))}}},k=function(e){var t,n=s(e.empty),r=P(e),i=r.compact;return{URI:x,_E:void 0,map:v,compact:i,separate:r.separate,filter:function(e,t){return eh(e)?e:t(e.right)?e:n},filterMap:function(e,t){if(eh(e))return e;var r=t(e.right);return"None"===r._tag?n:m(r.value)},partition:function(e,t){return eh(e)?(0,p.separated)(e,e):t(e.right)?(0,p.separated)(n,m(e.right)):(0,p.separated)(m(e.right),n)},partitionMap:function(e,t){if(eh(e))return(0,p.separated)(e,e);var r=t(e.right);return eh(r)?(0,p.separated)(m(r.left),n):(0,p.separated)(n,m(r.right))}}},W=function(e){var t=k(e),n=P(e);return{URI:x,_E:void 0,map:v,compact:t.compact,separate:t.separate,filter:t.filter,filterMap:t.filterMap,partition:t.partition,partitionMap:t.partitionMap,traverse:S,sequence:Q,reduce:g,foldMap:_,reduceRight:b,wither:(0,d.witherDefault)(ee,n),wilt:(0,d.wiltDefault)(ee,n)}},F=function(e){return{URI:x,_E:void 0,map:v,ap:function(t,n){return eh(t)?eh(n)?s(e.concat(t.left,n.left)):t:eh(n)?n:m(t.right(n.right))},of:j}},D=function(e){return{URI:x,_E:void 0,map:v,alt:function(t,n){if(ev(t))return t;var r=n();return eh(r)?s(e.concat(t.left,r.left)):r}}},N=function(e){return function(t){return eh(t)?t:m(e(t.right))}},L={URI:x,map:v},U=(0,c.dual)(2,(0,f.as)(L)),A=(0,f.asUnit)(L),j=m,q={URI:x,of:j},G=function(e){return function(t){return eh(t)?t:eh(e)?e:m(t.right(e.right))}},Y=G,B={URI:x,map:v,ap:y},K={URI:x,map:v,ap:y,of:j},V={URI:x,map:v,ap:y,chain:h},z={URI:x,map:v,ap:y,of:j,chain:h},H=function(e,t){return function(n){return eh(n)?e:t(e,n.right)}},$=function(e){return function(t){return function(n){return eh(n)?e.empty:t(n.right)}}},X=function(e,t){return function(n){return eh(n)?e:t(n.right,e)}},J={URI:x,reduce:g,foldMap:_,reduceRight:b},Z=function(e){return function(t){return function(n){return eh(n)?e.of(s(n.left)):e.map(t(n.right),m)}}},Q=function(e){return function(t){return eh(t)?e.of(s(t.left)):e.map(t.right,m)}},ee={URI:x,map:v,reduce:g,foldMap:_,reduceRight:b,traverse:S,sequence:Q},et=function(e,t){return function(n){return eh(n)?s(e(n.left)):m(t(n.right))}},en=function(e){return function(t){return eh(t)?s(e(t.left)):t}},er={URI:x,bimap:T,mapLeft:I},ei=function(e){return function(t){return eh(t)?e():t}},eo=ei,eu={URI:x,map:v,alt:R},ea=function(e){return function(t){return eh(t)?t:m(e(t))}},ec={URI:x,map:v,extend:w},ef={URI:x,map:v,ap:y,chain:h,chainRec:O},el=s,ep={URI:x,map:v,ap:y,of:j,chain:h,throwError:el},ed={URI:x,fromEither:c.identity},es=(0,a.fromPredicate)(ed),em=(0,a.fromOption)(ed),eh=l.nM,ev=l.tO,ey=function(e,t){return function(n){return eh(n)?e(n.left):t(n.right)}},eg=ey,e_=ey,eb=e_,eS=function(e){return function(t){return eh(t)?e(t.left):t.right}},eT=eS,eI=(0,f.flap)(L),eR=(0,i.apFirst)(B),ew=eR,eO=(0,i.apSecond)(B),ex=eO,eC=(0,c.dual)(2,o.tap(V)),eM=h(c.identity),eE=eM,eP=ea(c.identity),ek=(0,a.fromOptionK)(ed),eW=(0,a.chainOptionK)(ed,V),eF=eW,eD={fromEither:ed.fromEither},eN=l.uL(eD),eL=l.WE(eD),eU={flatMap:h},eA=l.ny(eD,eU),ej=l.hU(eD,eU),eq=(0,a.filterOrElse)(ed,V),eG=eq,eY=function(e){return eh(e)?m(e.left):s(e.right)},eB=function(e){return function(t){return eh(t)?e(t.left):t}},eK=eB,eV=function(e){return function(t){return null==t?s(e):m(t)}},ez=function(e,t){try{return m(e())}catch(n){return s(t(n))}},eH=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return ez(function(){return e.apply(void 0,n)},t)}},e$=function(e){var t=eV(e);return function(e){return(0,c.flow)(e,t)}},eX=function(e){var t=e$(e);return function(e){return h(t(e))}},eJ=eg(c.identity,c.identity);function eZ(e){return e instanceof Error?e:Error(String(e))}var eQ=function(e){return function(t){return!eh(t)&&e(t.right)}},e0=j(l.F4),e1=(0,f.bindTo)(L),e2=(0,f.let)(L),e8=o.bind(V),e7=e8,e3=(0,i.apS)(B),e5=e3,e4=j(l.Xl),e9=function(e){return function(t){var n=e(0,l.YM(t));if(eh(n))return n;for(var r=[n.right],i=1;i<t.length;i++){var o=e(i,t[i]);if(eh(o))return o;r.push(o.right)}return m(r)}},e6=function(e){var t=e9(e);return function(e){return l.Od(e)?t(e):e4}},te=e6,tt=function(e){return e6(function(t,n){return e(n)})},tn=tt(c.identity),tr=h,ti=h,to=eC,tu=eC;function ta(e,t){return ez(function(){return JSON.parse(e)},t)}var tc=function(e,t){return ez(function(){var t=JSON.stringify(e);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},t)},tf={URI:x,map:v,of:j,ap:y,chain:h,reduce:g,foldMap:_,reduceRight:b,traverse:S,sequence:Q,bimap:T,mapLeft:I,alt:R,extend:w,chainRec:O,throwError:el},tl=(0,i.getApplySemigroup)(B),tp=(0,r.getApplicativeMonoid)(K),td=function(e,t){return(0,i.getApplySemigroup)(F(e))(t)},ts=function(e,t){return(0,r.getApplicativeMonoid)(F(e))(t)};function tm(e){var t=F(e).ap,n=D(e).alt;return{URI:x,_E:void 0,map:v,of:j,chain:h,bimap:T,mapLeft:I,reduce:g,foldMap:_,reduceRight:b,extend:w,traverse:S,sequence:Q,chainRec:O,throwError:el,ap:t,alt:n}}},47797:function(e,t,n){n.r(t),n.d(t,{URI:function(){return i},getMonoid:function(){return u},getSemigroup:function(){return o}});var r=n(42275),i="Endomorphism",o=function(){return{concat:function(e,t){return(0,r.flow)(e,t)}}},u=function(){return{concat:o().concat,empty:r.identity}}},65191:function(e,t,n){n.r(t),n.d(t,{Contravariant:function(){return s},URI:function(){return c},contramap:function(){return a},eq:function(){return y},eqBoolean:function(){return g},eqDate:function(){return S},eqNumber:function(){return b},eqStrict:function(){return f},eqString:function(){return _},fromEquals:function(){return i},getMonoid:function(){return d},getSemigroup:function(){return p},getStructEq:function(){return h},getTupleEq:function(){return m},strictEqual:function(){return v},struct:function(){return o},tuple:function(){return u}});var r=n(42275),i=function(e){return{equals:function(t,n){return t===n||e(t,n)}}},o=function(e){return i(function(t,n){for(var r in e)if(!e[r].equals(t[r],n[r]))return!1;return!0})},u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(function(t,n){return e.every(function(e,r){return e.equals(t[r],n[r])})})},a=function(e){return function(t){return i(function(n,r){return t.equals(e(n),e(r))})}},c="Eq",f={equals:function(e,t){return e===t}},l={equals:function(){return!0}},p=function(){return{concat:function(e,t){return i(function(n,r){return e.equals(n,r)&&t.equals(n,r)})}}},d=function(){return{concat:p().concat,empty:l}},s={URI:c,contramap:function(e,t){return(0,r.pipe)(e,a(t))}},m=u,h=o,v=f.equals,y=s,g=f,_=f,b=f,S={equals:function(e,t){return e.valueOf()===t.valueOf()}}},25162:function(e,t,n){n.r(t),n.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 u},fromOptionK:function(){return c},fromPredicate:function(){return a},tapEither:function(){return m}});var r=n(88543),i=n(42275),o=n(97963);function u(e){return function(t){return function(n){return e.fromEither(o.Wi(n)?o.t$(t()):o.F2(n.value))}}}function a(e){return function(t,n){return function(r){return e.fromEither(t(r)?o.F2(r):o.t$(n(r)))}}}function c(e){var t=u(e);return function(e){var n=t(e);return function(e){return(0,i.flow)(e,n)}}}function f(e,t){var n=c(e);return function(e){var r=n(e);return function(e){return function(n){return t.chain(n,r(e))}}}}function l(e){return function(t){return(0,i.flow)(t,e.fromEither)}}function p(e,t){var n=l(e);return function(e){return function(r){return t.chain(r,n(e))}}}function d(e,t){var n=m(e,t);return function(e){return function(t){return n(t,e)}}}function s(e,t){return function(n,r){return function(i){return t.chain(i,function(t){return e.fromEither(n(t)?o.F2(t):o.t$(r(t)))})}}}function m(e,t){var n=l(e),i=(0,r.tap)(t);return function(e,t){return i(e,n(t))}}},67560:function(e,t,n){n.r(t),n.d(t,{as:function(){return f},asUnit:function(){return l},bindTo:function(){return u},flap:function(){return o},getFunctorComposition:function(){return c},let:function(){return a},map:function(){return i}});var r=n(42275);function i(e,t){return function(n){return function(r){return e.map(r,function(e){return t.map(e,n)})}}}function o(e){return function(t){return function(n){return e.map(n,function(e){return e(t)})}}}function u(e){return function(t){return function(n){return e.map(n,function(e){var n;return(n={})[t]=e,n})}}}function a(e){return function(t,n){return function(r){return e.map(r,function(e){var r;return Object.assign({},e,((r={})[t]=n(e),r))})}}}function c(e,t){var n=i(e,t);return{map:function(e,t){return(0,r.pipe)(e,n(t))}}}function f(e){return function(t,n){return e.map(t,function(){return n})}}function l(e){var t=f(e);return function(e){return t(e,void 0)}}},76113:function(e,t,n){n.r(t),n.d(t,{concatAll:function(){return a},endo:function(){return u},filterFirst:function(){return i},filterSecond:function(){return o},reverse:function(){return r}});var r=function(e){return{concat:function(t,n){return e.concat(n,t)}}},i=function(e){return function(t){return{concat:function(n,r){return e(n)?t.concat(n,r):r}}}},o=function(e){return function(t){return{concat:function(n,r){return e(r)?t.concat(n,r):n}}}},u=function(e){return function(t){return{concat:function(n,r){return t.concat(e(n),e(r))}}}},a=function(e){return function(t){return function(n){return n.reduce(function(t,n){return e.concat(t,n)},t)}}}},55116:function(e,t,n){n.r(t),n.d(t,{Compactable:function(){return e_},Filterable:function(){return eb},Functor:function(){return ey},URI:function(){return et},collect:function(){return g},compact:function(){return z},deleteAt:function(){return T},difference:function(){return eR},elem:function(){return h},empty:function(){return ew},filter:function(){return H},filterMap:function(){return $},filterMapWithIndex:function(){return N},filterWithIndex:function(){return L},flap:function(){return eg},foldMap:function(){return ef},foldMapWithIndex:function(){return es},fromFoldable:function(){return k},getDifferenceMagma:function(){return eo},getEq:function(){return M},getFilterableWithIndex:function(){return eu},getFoldable:function(){return ep},getFoldableWithIndex:function(){return eh},getIntersectionSemigroup:function(){return ei},getMonoid:function(){return E},getShow:function(){return p},getTraversableWithIndex:function(){return ev},getUnionMonoid:function(){return er},getUnionSemigroup:function(){return en},getWitherable:function(){return ea},insertAt:function(){return eO},intersection:function(){return eI},isEmpty:function(){return s},isSubmap:function(){return C},keys:function(){return v},lookup:function(){return x},lookupWithKey:function(){return O},map:function(){return X},mapWithIndex:function(){return J},map_:function(){return ex},member:function(){return m},modifyAt:function(){return R},partition:function(){return Z},partitionMap:function(){return Q},partitionMapWithIndex:function(){return F},partitionWithIndex:function(){return D},pop:function(){return w},reduce:function(){return ec},reduceRight:function(){return el},reduceRightWithIndex:function(){return em},reduceWithIndex:function(){return ed},separate:function(){return ee},singleton:function(){return P},size:function(){return d},toArray:function(){return _},toUnfoldable:function(){return b},union:function(){return eT},updateAt:function(){return I},upsertAt:function(){return S},values:function(){return y}});var r=n(42275),i=n(67560),o=n(97963),u=n(20492),a=n(13512),c=n(34219),f=n(76511),l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},p=a.getShow,d=a.size,s=a.isEmpty,m=a.member,h=a.elem,v=function(e){return function(t){return Array.from(t.keys()).sort(e.compare)}},y=function(e){return function(t){return Array.from(t.values()).sort(e.compare)}};function g(e){var t=v(e);return function(e){return function(n){for(var r=[],i=t(n),o=0;o<i.length;o++){var u=i[o];r.push(e(u,n.get(u)))}return r}}}function _(e){return g(e)(function(e,t){return[e,t]})}function b(e,t){var n=_(e);return function(e){var r=n(e),i=r.length;return t.unfold(0,function(e){return e<i?o.G([r[e],e+1]):o.YP})}}var S=function(e){var t=O(e);return function(e,n){var r=t(e);return function(t){var i=r(t);if(o.Wi(i)){var u=new Map(t);return u.set(e,n),u}if(i.value[1]!==n){var u=new Map(t);return u.set(i.value[0],n),u}return t}}},T=function(e){var t=O(e);return function(e){return function(n){var r=t(e,n);if(o.pC(r)){var i=new Map(n);return i.delete(r.value[0]),i}return n}}},I=function(e){var t=R(e);return function(e,n){return t(e,function(){return n})}},R=function(e){var t=O(e);return function(e,n){return function(r){var i=t(e,r);if(o.Wi(i))return o.YP;var u=new Map(r);return u.set(i.value[0],n(i.value[1])),o.G(u)}}};function w(e){var t=x(e),n=T(e);return function(e){var i=n(e);return function(n){return(0,r.pipe)(t(e,n),u.map(function(e){return[e,i(n)]}))}}}function O(e){return function(t,n){if(void 0===n){var r,i=O(e);return function(e){return i(t,e)}}for(var u=n.entries();!(r=u.next()).done;){var a=r.value,c=a[0],f=a[1];if(e.equals(c,t))return o.G([c,f])}return o.YP}}var x=a.lookup,C=a.isSubmap,M=a.getEq;function E(e,t){var n=O(e);return{concat:function(e,r){if(s(e))return r;if(s(r))return e;for(var i,u=new Map(e),a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=n(f,e);o.pC(p)?u.set(p.value[0],t.concat(p.value[1],l)):u.set(f,l)}return u},empty:new Map}}var P=function(e,t){return new Map([[e,t]])};function k(e,t,n){return function(r){var i=O(e);return n.reduce(r,new Map,function(e,n){var r=n[0],u=n[1],a=i(r,e);return o.pC(a)?e.set(a.value[0],t.concat(a.value[1],u)):e.set(r,u),e})}}var W=function(e,t){for(var n,r=new Map,i=e.entries();!(n=i.next()).done;){var o=n.value,u=o[0],a=o[1];r.set(u,t(u,a))}return r},F=function(e){return function(t){for(var n,r=new Map,i=new Map,u=t.entries();!(n=u.next()).done;){var a=n.value,f=a[0],l=e(f,a[1]);o.nM(l)?r.set(f,l.left):i.set(f,l.right)}return(0,c.separated)(r,i)}};function D(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var u=n.value,a=u[0],f=u[1];e(a,f)?i.set(a,f):r.set(a,f)}return(0,c.separated)(r,i)}}var N=function(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var u=n.value,a=u[0],c=e(a,u[1]);o.pC(c)&&r.set(a,c.value)}return r}};function L(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,u=o[0],a=o[1];e(u,a)&&r.set(u,a)}return r}}var U=function(e,t){return W(e,function(e,n){return t(n)})},A=function(e,t){return Y(e,function(e,n){return t(n)})},j=function(e,t){return B(e,function(e,n){return t(n)})},q=function(e,t){return K(e,function(e,n){return t(n)})},G=function(e,t){return V(e,function(e,n){return t(n)})},Y=function(e,t){return(0,r.pipe)(e,L(t))},B=function(e,t){return(0,r.pipe)(e,N(t))},K=function(e,t){return(0,r.pipe)(e,D(t))},V=function(e,t){return(0,r.pipe)(e,F(t))},z=function(e){for(var t,n=new Map,r=e.entries();!(t=r.next()).done;){var i=t.value,u=i[0],a=i[1];o.pC(a)&&n.set(u,a.value)}return n},H=function(e){return function(t){return A(t,e)}},$=function(e){return function(t){return j(t,e)}},X=function(e){return function(t){return U(t,e)}},J=function(e){return function(t){return W(t,e)}},Z=function(e){return function(t){return q(t,e)}},Q=function(e){return function(t){return G(t,e)}},ee=function(e){for(var t,n=new Map,r=new Map,i=e.entries();!(t=i.next()).done;){var u=t.value,a=u[0],f=u[1];o.nM(f)?n.set(a,f.left):r.set(a,f.right)}return(0,c.separated)(n,r)},et="Map",en=function(e,t){var n=eT(e,t);return{concat:function(e,t){return n(t)(e)}}},er=function(e,t){return{concat:en(e,t).concat,empty:new Map}},ei=function(e,t){var n=eI(e,t);return{concat:function(e,t){return n(t)(e)}}},eo=function(e){return function(){var t=eR(e);return{concat:function(e,n){return t(n)(e)}}}};function eu(){return{URI:et,_E:void 0,map:U,mapWithIndex:W,compact:z,separate:ee,filter:A,filterMap:j,partition:q,partitionMap:G,partitionMapWithIndex:V,partitionWithIndex:K,filterMapWithIndex:B,filterWithIndex:Y}}function ea(e){var t=ev(e);return{URI:et,_E:void 0,map:U,compact:z,separate:ee,filter:A,filterMap:j,partition:q,partitionMap:G,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,traverse:t.traverse,sequence:t.sequence,mapWithIndex:W,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverseWithIndex:t.traverseWithIndex,wilt:(0,f.wiltDefault)(t,e_),wither:(0,f.witherDefault)(t,e_)}}var ec=a.reduce,ef=a.foldMap,el=a.reduceRight,ep=function(e){return l(l({},a.getFoldable(e)),{URI:et})},ed=a.reduceWithIndex,es=a.foldMapWithIndex,em=a.reduceRightWithIndex,eh=function(e){return l(l({},a.getFoldableWithIndex(e)),{URI:et})},ev=function(e){var t=eh(e),n=v(e),r=function(e){return function(t,r){for(var i=e.of(new Map),o=n(t),u=o.length,a=0;a<u;a++)!function(n){var u=o[n],a=t.get(u);i=e.ap(e.map(i,function(e){return function(t){return e.set(u,t)}}),r(u,a))}(a);return i}},i=function(e){var t=r(e);return function(e,n){return t(e,function(e,t){return n(t)})}},o=function(e){var t=r(e);return function(e){return t(e,function(e,t){return t})}};return{URI:et,_E:void 0,map:U,mapWithIndex:W,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:i,sequence:o,traverseWithIndex:r}},ey={URI:et,map:U},eg=(0,i.flap)(ey),e_={URI:et,compact:z,separate:ee},eb={URI:et,map:U,compact:z,separate:ee,filter:A,filterMap:j,partition:q,partitionMap:G},eS=function(e){return new Map(e)},eT=function(e,t){var n=a.union(e,t);return function(e){return function(t){return s(t)?eS(e):s(e)?eS(t):n(e)(t)}}},eI=function(e,t){var n=a.intersection(e,t);return function(e){return function(t){return s(t)||s(e)?new Map:n(e)(t)}}},eR=function(e){var t=a.difference(e);return function(e){return function(n){return s(n)?eS(e):s(e)?eS(n):t(e)(n)}}},ew=new Map,eO=S,ex=eb},96576:function(e,t,n){n.r(t),n.d(t,{concatAll:function(){return d},fold:function(){return _},getDualMonoid:function(){return v},getEndomorphismMonoid:function(){return I},getFunctionMonoid:function(){return T},getJoinMonoid:function(){return y},getMeetMonoid:function(){return g},getStructMonoid:function(){return h},getTupleMonoid:function(){return m},max:function(){return c},min:function(){return a},monoidAll:function(){return b},monoidAny:function(){return S},monoidProduct:function(){return O},monoidString:function(){return R},monoidSum:function(){return w},monoidVoid:function(){return s},reverse:function(){return f},struct:function(){return l},tuple:function(){return p}});var r=n(47797),i=n(42275),o=n(97963),u=n(3291),a=function(e){return{concat:u.min(e).concat,empty:e.top}},c=function(e){return{concat:u.max(e).concat,empty:e.bottom}},f=function(e){return{concat:u.reverse(e).concat,empty:e.empty}},l=function(e){var t={};for(var n in e)o.e$.call(e,n)&&(t[n]=e[n].empty);return{concat:u.struct(e).concat,empty:t}},p=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{concat:u.tuple.apply(u,e).concat,empty:e.map(function(e){return e.empty})}},d=function(e){return u.concatAll(e)(e.empty)},s={concat:u.semigroupVoid.concat,empty:void 0},m=p,h=l,v=f,y=c,g=a,_=d,b={concat:u.semigroupAll.concat,empty:!0},S={concat:u.semigroupAny.concat,empty:!1},T=i.getMonoid,I=function(){return f((0,r.getMonoid)())},R={concat:u.semigroupString.concat,empty:""},w={concat:u.semigroupSum.concat,empty:0},O={concat:u.semigroupProduct.concat,empty:1}},43586:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return ez},Applicative:function(){return eA},Apply:function(){return eN},Chain:function(){return ej},Comonad:function(){return eH},Do:function(){return e$},Foldable:function(){return eY},FoldableWithIndex:function(){return eB},Functor:function(){return ek},FunctorWithIndex:function(){return eD},Monad:function(){return eG},Pointed:function(){return eF},Traversable:function(){return eK},TraversableWithIndex:function(){return eV},URI:function(){return ex},alt:function(){return ep},altW:function(){return el},ap:function(){return ed},apFirst:function(){return eL},apS:function(){return eQ},apSecond:function(){return eU},append:function(){return v},appendW:function(){return h},bind:function(){return eZ},bindTo:function(){return eX},chain:function(){return ti},chainFirst:function(){return eq},chainWithIndex:function(){return z},chop:function(){return H},chunksOf:function(){return X},concat:function(){return P},concatAll:function(){return e5},concatW:function(){return E},cons:function(){return tl},copy:function(){return A},duplicate:function(){return eh},extend:function(){return em},extract:function(){return eO},filter:function(){return tu},filterWithIndex:function(){return ta},flap:function(){return eW},flatMap:function(){return es},flatten:function(){return ev},fold:function(){return ts},foldMap:function(){return V},foldMapWithIndex:function(){return K},fromArray:function(){return R},fromReadonlyNonEmptyArray:function(){return I},getEq:function(){return eE},getSemigroup:function(){return eM},getShow:function(){return eC},getUnionSemigroup:function(){return eP},group:function(){return W},groupBy:function(){return F},groupSort:function(){return to},head:function(){return e0},init:function(){return e8},insertAt:function(){return N},intercalate:function(){return tr},intersperse:function(){return B},isNonEmpty:function(){return p},isOutOfBound:function(){return d},last:function(){return e2},let:function(){return eJ},makeBy:function(){return w},map:function(){return ey},mapWithIndex:function(){return eg},matchLeft:function(){return e4},matchRight:function(){return e9},max:function(){return e3},min:function(){return e7},modifyAt:function(){return U},modifyHead:function(){return e6},modifyLast:function(){return tt},nonEmptyArray:function(){return tm},of:function(){return j},prepend:function(){return m},prependAll:function(){return Y},prependToAll:function(){return td},prependW:function(){return s},range:function(){return x},reduce:function(){return e_},reduceRight:function(){return eS},reduceRightWithIndex:function(){return eT},reduceWithIndex:function(){return eb},replicate:function(){return O},reverse:function(){return k},rotate:function(){return T},sequence:function(){return eR},snoc:function(){return tp},sort:function(){return D},sortBy:function(){return b},splitAt:function(){return $},tail:function(){return e1},traverse:function(){return eI},traverseWithIndex:function(){return ew},unappend:function(){return M},uncons:function(){return tc},union:function(){return S},uniq:function(){return _},unprepend:function(){return C},unsafeInsertAt:function(){return y},unsafeUpdateAt:function(){return g},unsnoc:function(){return tf},unzip:function(){return G},updateAt:function(){return L},updateHead:function(){return te},updateLast:function(){return tn},zip:function(){return function e(t,n){return void 0===n?function(n){return e(n,t)}:q(t,n,function(e,t){return[e,t]})}},zipWith:function(){return q}});var r=n(42925),i=n(88543),o=n(42275),u=n(67560),a=n(97963),c=n(5586),f=n(28350),l=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},p=function(e){return e.length>0},d=function(e,t){return e<0||e>=t.length},s=function(e){return function(t){return l([e],t,!0)}},m=s,h=function(e){return function(t){return l(l([],t,!0),[e],!1)}},v=h,y=function(e,t,n){if(p(n)){var r=I(n);return r.splice(e,0,t),r}return[t]},g=function(e,t,n){var r=I(n);return r[e]=t,r},_=function(e){return function(t){if(1===t.length)return A(t);for(var n=[e0(t)],r=e1(t),i=function(t){n.every(function(n){return!e.equals(n,t)})&&n.push(t)},o=0;o<r.length;o++)i(r[o]);return n}},b=function(e){if(p(e)){var t=(0,c.getMonoid)();return D(e.reduce(t.concat,t.empty))}return A},S=function(e){var t=_(e);return function(e){return function(n){return t((0,o.pipe)(n,P(e)))}}},T=function(e){return function(t){var n=t.length,r=Math.round(e)%n;if(d(Math.abs(r),t)||0===r)return A(t);if(!(r<0))return T(r-n)(t);var i=$(-r)(t),u=i[0],a=i[1];return(0,o.pipe)(a,P(u))}},I=a.r1,R=function(e){return p(e)?a.G(e):a.YP},w=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}},O=function(e){return w(function(){return e})},x=function(e,t){return e<=t?w(function(t){return e+t})(t-e+1):[e]},C=function(e){return[e0(e),e1(e)]},M=function(e){return[e8(e),e2(e)]};function E(e){return function(t){return t.concat(e)}}function P(e,t){return t?e.concat(t):function(t){return t.concat(e)}}var k=function(e){return l([e2(e)],e.slice(0,-1).reverse(),!0)};function W(e){return function(t){var n=t.length;if(0===n)return[];for(var r=[],i=t[0],o=[i],u=1;u<n;u++){var a=t[u];e.equals(a,i)?o.push(a):(r.push(o),o=[i=a])}return r.push(o),r}}var F=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);a.e$.call(n,o)?n[o].push(i):n[o]=[i]}return n}},D=function(e){return function(t){return t.slice().sort(e.compare)}},N=function(e,t){return function(n){return e<0||e>n.length?a.YP:a.G(y(e,t,n))}},L=function(e,t){return U(e,function(){return t})},U=function(e,t){return function(n){return d(e,n)?a.YP:a.G(g(e,t(n[e]),n))}},A=I,j=function(e){return[e]},q=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r},G=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},Y=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}},B=function(e){return function(t){var n=e1(t);return p(n)?(0,o.pipe)(n,Y(e),m(e0(t))):A(t)}},K=f.foldMapWithIndex,V=f.foldMap,z=function(e){return function(t){for(var n=I(e(0,e0(t))),r=1;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},H=function(e){return function(t){for(var n=e(t),r=n[0],i=n[1],o=[r],u=i;p(u);){var a=e(u),c=a[0],f=a[1];o.push(c),u=f}return o}},$=function(e){return function(t){var n=Math.max(1,e);return n>=t.length?[A(t),[]]:[(0,o.pipe)(t.slice(1,n),m(e0(t))),t.slice(n)]}},X=function(e){return H($(e))},J=function(e,t){return(0,o.pipe)(e,ey(t))},Z=function(e,t){return(0,o.pipe)(e,eg(t))},Q=function(e,t){return(0,o.pipe)(e,ed(t))},ee=function(e,t){return(0,o.pipe)(e,em(t))},et=function(e,t,n){return(0,o.pipe)(e,e_(t,n))},en=function(e){var t=V(e);return function(e,n){return(0,o.pipe)(e,t(n))}},er=function(e,t,n){return(0,o.pipe)(e,eS(t,n))},ei=function(e){var t=eI(e);return function(e,n){return(0,o.pipe)(e,t(n))}},eo=function(e,t){return(0,o.pipe)(e,ep(t))},eu=function(e,t,n){return(0,o.pipe)(e,eb(t,n))},ea=function(e){var t=K(e);return function(e,n){return(0,o.pipe)(e,t(n))}},ec=function(e,t,n){return(0,o.pipe)(e,eT(t,n))},ef=function(e){var t=ew(e);return function(e,n){return(0,o.pipe)(e,t(n))}},el=function(e){return function(t){return(0,o.pipe)(t,E(e()))}},ep=el,ed=function(e){return es(function(t){return(0,o.pipe)(e,ey(t))})},es=(0,o.dual)(2,function(e,t){return(0,o.pipe)(e,z(function(e,n){return t(n,e)}))}),em=function(e){return function(t){for(var n=e1(t),r=[e(t)];p(n);)r.push(e(n)),n=e1(n);return r}},eh=em(o.identity),ev=es(o.identity),ey=function(e){return eg(function(t,n){return e(n)})},eg=function(e){return function(t){for(var n=[e(0,e0(t))],r=1;r<t.length;r++)n.push(e(r,t[r]));return n}},e_=f.reduce,eb=f.reduceWithIndex,eS=f.reduceRight,eT=f.reduceRightWithIndex,eI=function(e){var t=ew(e);return function(e){return t(function(t,n){return e(n)})}},eR=function(e){return ew(e)(function(e,t){return t})},ew=function(e){return function(t){return function(n){for(var r=e.map(t(0,e0(n)),j),i=1;i<n.length;i++)r=e.ap(e.map(r,function(e){return function(t){return(0,o.pipe)(e,v(t))}}),t(i,n[i]));return r}}},eO=f.head,ex="NonEmptyArray",eC=f.getShow,eM=function(){return{concat:P}},eE=f.getEq,eP=function(e){var t=S(e);return{concat:function(e,n){return t(n)(e)}}},ek={URI:ex,map:J},eW=(0,u.flap)(ek),eF={URI:ex,of:j},eD={URI:ex,map:J,mapWithIndex:Z},eN={URI:ex,map:J,ap:Q},eL=(0,r.apFirst)(eN),eU=(0,r.apSecond)(eN),eA={URI:ex,map:J,ap:Q,of:j},ej={URI:ex,map:J,ap:Q,chain:es},eq=(0,i.chainFirst)(ej),eG={URI:ex,map:J,ap:Q,of:j,chain:es},eY={URI:ex,reduce:et,foldMap:en,reduceRight:er},eB={URI:ex,reduce:et,foldMap:en,reduceRight:er,reduceWithIndex:eu,foldMapWithIndex:ea,reduceRightWithIndex:ec},eK={URI:ex,map:J,reduce:et,foldMap:en,reduceRight:er,traverse:ei,sequence:eR},eV={URI:ex,map:J,mapWithIndex:Z,reduce:et,foldMap:en,reduceRight:er,traverse:ei,sequence:eR,reduceWithIndex:eu,foldMapWithIndex:ea,reduceRightWithIndex:ec,traverseWithIndex:ef},ez={URI:ex,map:J,alt:eo},eH={URI:ex,map:J,extend:ee,extract:eO},e$=j(a.F4),eX=(0,u.bindTo)(ek),eJ=(0,u.let)(ek),eZ=(0,i.bind)(ej),eQ=(0,r.apS)(eN),e0=f.head,e1=function(e){return e.slice(1)},e2=f.last,e8=function(e){return e.slice(0,-1)},e7=f.min,e3=f.max,e5=function(e){return function(t){return t.reduce(e.concat)}},e4=function(e){return function(t){return e(e0(t),e1(t))}},e9=function(e){return function(t){return e(e8(t),e2(t))}},e6=function(e){return function(t){return l([e(e0(t))],e1(t),!0)}},te=function(e){return e6(function(){return e})},tt=function(e){return function(t){return(0,o.pipe)(e8(t),v(e(e2(t))))}},tn=function(e){return tt(function(){return e})},tr=f.intercalate,ti=es;function to(e){var t=D(e),n=W(e);return function(e){return p(e)?n(t(e)):[]}}function tu(e){return ta(function(t,n){return e(n)})}var ta=function(e){return function(t){return R(t.filter(function(t,n){return e(n,t)}))}},tc=C,tf=M;function tl(e,t){return void 0===t?m(e):(0,o.pipe)(t,m(e))}var tp=function(e,t){return(0,o.pipe)(e,v(t))},td=Y,ts=f.concatAll,tm={URI:ex,of:j,map:J,mapWithIndex:Z,ap:Q,chain:es,extend:ee,extract:eO,reduce:et,foldMap:en,reduceRight:er,traverse:ei,sequence:eR,reduceWithIndex:eu,foldMapWithIndex:ea,reduceRightWithIndex:ec,traverseWithIndex:ef,alt:eo}},20492:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return en},Alternative:function(){return eu},ApT:function(){return e4},Applicative:function(){return K},Apply:function(){return B},Chain:function(){return z},Compactable:function(){return ed},Do:function(){return e2},Extend:function(){return ec},Filterable:function(){return ey},Foldable:function(){return Z},FromEither:function(){return eM},Functor:function(){return U},Monad:function(){return H},MonadThrow:function(){return ex},Pointed:function(){return G},Traversable:function(){return eb},URI:function(){return k},Witherable:function(){return ew},Zero:function(){return ei},alt:function(){return et},altW:function(){return ee},ap:function(){return Y},apFirst:function(){return eA},apS:function(){return e5},apSecond:function(){return ej},as:function(){return A},asUnit:function(){return j},bind:function(){return e3},bindTo:function(){return e8},chain:function(){return tr},chainEitherK:function(){return eV},chainFirst:function(){return ti},chainFirstEitherK:function(){return ez},chainNullableK:function(){return eZ},compact:function(){return ef},duplicate:function(){return eB},elem:function(){return function e(t){return function(n,r){if(void 0===r){var i=e(t);return function(e){return i(n,e)}}return!eP(r)&&t.equals(n,r.value)}}},exists:function(){return e1},extend:function(){return ea},filter:function(){return es},filterMap:function(){return em},flap:function(){return eU},flatMap:function(){return V},flatten:function(){return eq},fold:function(){return eD},foldMap:function(){return X},foldW:function(){return eW},fromEither:function(){return eC},fromEitherK:function(){return eK},fromNullable:function(){return eH},fromNullableK:function(){return eJ},fromPredicate:function(){return y},getApplyMonoid:function(){return tf},getApplySemigroup:function(){return tc},getEq:function(){return F},getFirstMonoid:function(){return tl},getLastMonoid:function(){return tp},getLeft:function(){return g},getMonoid:function(){return N},getOrElse:function(){return eL},getOrElseW:function(){return eN},getOrd:function(){return D},getRefinement:function(){return to},getRight:function(){return _},getShow:function(){return W},guard:function(){return eo},isNone:function(){return eP},isSome:function(){return eE},let:function(){return e7},map:function(){return L},mapNullable:function(){return tu},match:function(){return eF},matchW:function(){return ek},none:function(){return h},of:function(){return q},option:function(){return ta},orElse:function(){return Q},partition:function(){return eh},partitionMap:function(){return ev},reduce:function(){return $},reduceRight:function(){return J},separate:function(){return ep},sequence:function(){return e_},sequenceArray:function(){return tn},some:function(){return v},tap:function(){return eG},tapEither:function(){return eY},throwError:function(){return eO},toNullable:function(){return eQ},toUndefined:function(){return e0},traverse:function(){return eg},traverseArray:function(){return tt},traverseArrayWithIndex:function(){return te},traverseReadonlyArrayWithIndex:function(){return e6},traverseReadonlyNonEmptyArrayWithIndex:function(){return e9},tryCatch:function(){return e$},tryCatchK:function(){return eX},wilt:function(){return eR},wither:function(){return eI},zero:function(){return er}});var r=n(46111),i=n(42925),o=n(88543),u=n(25162),a=n(42275),c=n(67560),f=n(97963),l=n(88491),p=n(3291),d=n(34219),s=n(76511),m=n(28957),h=f.YP,v=f.G;function y(e){return function(t){return e(t)?v(t):h}}var g=function(e){return"Right"===e._tag?h:v(e.left)},_=function(e){return"Left"===e._tag?h:v(e.right)},b=function(e,t){return(0,a.pipe)(e,L(t))},S=function(e,t){return(0,a.pipe)(e,Y(t))},T=function(e,t,n){return(0,a.pipe)(e,$(t,n))},I=function(e){var t=X(e);return function(e,n){return(0,a.pipe)(e,t(n))}},R=function(e,t,n){return(0,a.pipe)(e,J(t,n))},w=function(e){var t=eg(e);return function(e,n){return(0,a.pipe)(e,t(n))}},O=function(e,t){return(0,a.pipe)(e,et(t))},x=function(e,t){return(0,a.pipe)(e,es(t))},C=function(e,t){return(0,a.pipe)(e,em(t))},M=function(e,t){return(0,a.pipe)(e,ea(t))},E=function(e,t){return(0,a.pipe)(e,eh(t))},P=function(e,t){return(0,a.pipe)(e,ev(t))},k="Option",W=function(e){return{show:function(t){return eP(t)?"none":"some(".concat(e.show(t.value),")")}}},F=function(e){return{equals:function(t,n){return t===n||(eP(t)?eP(n):!eP(n)&&e.equals(t.value,n.value))}}},D=function(e){return{equals:F(e).equals,compare:function(t,n){return t===n?0:eE(t)?eE(n)?e.compare(t.value,n.value):1:-1}}},N=function(e){return{concat:function(t,n){return eP(t)?n:eP(n)?t:v(e.concat(t.value,n.value))},empty:h}},L=function(e){return function(t){return eP(t)?h:v(e(t.value))}},U={URI:k,map:b},A=(0,a.dual)(2,(0,c.as)(U)),j=(0,c.asUnit)(U),q=v,G={URI:k,of:q},Y=function(e){return function(t){return eP(t)?h:eP(e)?h:v(t.value(e.value))}},B={URI:k,map:b,ap:S},K={URI:k,map:b,ap:S,of:q},V=(0,a.dual)(2,function(e,t){return eP(e)?h:t(e.value)}),z={URI:k,map:b,ap:S,chain:V},H={URI:k,map:b,ap:S,of:q,chain:V},$=function(e,t){return function(n){return eP(n)?e:t(e,n.value)}},X=function(e){return function(t){return function(n){return eP(n)?e.empty:t(n.value)}}},J=function(e,t){return function(n){return eP(n)?e:t(n.value,e)}},Z={URI:k,reduce:T,foldMap:I,reduceRight:R},Q=(0,a.dual)(2,function(e,t){return eP(e)?t():e}),ee=Q,et=Q,en={URI:k,map:b,alt:O},er=function(){return h},ei={URI:k,zero:er},eo=(0,m.guard)(ei,G),eu={URI:k,map:b,ap:S,of:q,alt:O,zero:er},ea=function(e){return function(t){return eP(t)?h:v(e(t))}},ec={URI:k,map:b,extend:M},ef=V(a.identity),el=(0,d.separated)(h,h),ep=function(e){return eP(e)?el:(0,d.separated)(g(e.value),_(e.value))},ed={URI:k,compact:ef,separate:ep},es=function(e){return function(t){return eP(t)?h:e(t.value)?t:h}},em=function(e){return function(t){return eP(t)?h:e(t.value)}},eh=function(e){return function(t){return(0,d.separated)(x(t,(0,l.not)(e)),x(t,e))}},ev=function(e){return(0,a.flow)(L(e),ep)},ey={URI:k,map:b,compact:ef,separate:ep,filter:x,filterMap:C,partition:E,partitionMap:P},eg=function(e){return function(t){return function(n){return eP(n)?e.of(h):e.map(t(n.value),v)}}},e_=function(e){return function(t){return eP(t)?e.of(h):e.map(t.value,v)}},eb={URI:k,map:b,reduce:T,foldMap:I,reduceRight:R,traverse:w,sequence:e_},eS=(0,s.witherDefault)(eb,ed),eT=(0,s.wiltDefault)(eb,ed),eI=function(e){var t=eS(e);return function(e){return function(n){return t(n,e)}}},eR=function(e){var t=eT(e);return function(e){return function(n){return t(n,e)}}},ew={URI:k,map:b,reduce:T,foldMap:I,reduceRight:R,traverse:w,sequence:e_,compact:ef,separate:ep,filter:x,filterMap:C,partition:E,partitionMap:P,wither:eS,wilt:eT},eO=function(){return h},ex={URI:k,map:b,ap:S,of:q,chain:V,throwError:eO},eC=_,eM={URI:k,fromEither:eC},eE=f.pC,eP=function(e){return"None"===e._tag},ek=function(e,t){return function(n){return eP(n)?e():t(n.value)}},eW=ek,eF=ek,eD=eF,eN=function(e){return function(t){return eP(t)?e():t.value}},eL=eN,eU=(0,c.flap)(U),eA=(0,i.apFirst)(B),ej=(0,i.apSecond)(B),eq=ef,eG=(0,a.dual)(2,o.tap(z)),eY=(0,a.dual)(2,(0,u.tapEither)(eM,z)),eB=ea(a.identity),eK=(0,u.fromEitherK)(eM),eV=(0,u.chainEitherK)(eM,z),ez=eY,eH=function(e){return null==e?h:v(e)},e$=function(e){try{return v(e())}catch(t){return h}},eX=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e$(function(){return e.apply(void 0,t)})}},eJ=function(e){return(0,a.flow)(e,eH)},eZ=function(e){return function(t){return eP(t)?h:eH(e(t.value))}},eQ=eF(a.constNull,a.identity),e0=eF(a.constUndefined,a.identity),e1=function(e){return function(t){return!eP(t)&&e(t.value)}},e2=q(f.F4),e8=(0,c.bindTo)(U),e7=(0,c.let)(U),e3=o.bind(z),e5=(0,i.apS)(B),e4=q(f.Xl),e9=function(e){return function(t){var n=e(0,f.YM(t));if(eP(n))return h;for(var r=[n.value],i=1;i<t.length;i++){var o=e(i,t[i]);if(eP(o))return h;r.push(o.value)}return v(r)}},e6=function(e){var t=e9(e);return function(e){return f.Od(e)?t(e):e4}},te=e6,tt=function(e){return e6(function(t,n){return e(n)})},tn=tt(a.identity),tr=V,ti=eG;function to(e){return function(t){return eE(e(t))}}var tu=eZ,ta={URI:k,map:b,of:q,ap:S,chain:V,reduce:T,foldMap:I,reduceRight:R,traverse:w,sequence:e_,zero:er,alt:O,extend:M,compact:ef,separate:ep,filter:x,filterMap:C,partition:E,partitionMap:P,wither:eS,wilt:eT,throwError:eO},tc=(0,i.getApplySemigroup)(B),tf=(0,r.getApplicativeMonoid)(K),tl=function(){return N((0,p.first)())},tp=function(){return N((0,p.last)())}},5586:function(e,t,n){n.r(t),n.d(t,{Contravariant:function(){return s},URI:function(){return l},between:function(){return I},clamp:function(){return T},contramap:function(){return f},equals:function(){return h},equalsDefault:function(){return o},fromCompare:function(){return u},geq:function(){return _},getDualOrd:function(){return w},getMonoid:function(){return d},getSemigroup:function(){return p},getTupleOrd:function(){return R},gt:function(){return y},leq:function(){return g},lt:function(){return v},max:function(){return S},min:function(){return b},ord:function(){return O},ordBoolean:function(){return C},ordDate:function(){return P},ordNumber:function(){return E},ordString:function(){return M},reverse:function(){return c},trivial:function(){return m},tuple:function(){return a}});var r=n(65191),i=n(42275),o=function(e){return function(t,n){return t===n||0===e(t,n)}},u=function(e){return{equals:o(e),compare:function(t,n){return t===n?0:e(t,n)}}},a=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u(function(t,n){for(var r=0;r<e.length-1;r++){var i=e[r].compare(t[r],n[r]);if(0!==i)return i}return e[r].compare(t[r],n[r])})},c=function(e){return u(function(t,n){return e.compare(n,t)})},f=function(e){return function(t){return u(function(n,r){return t.compare(e(n),e(r))})}},l="Ord",p=function(){return{concat:function(e,t){return u(function(n,r){var i=e.compare(n,r);return 0!==i?i:t.compare(n,r)})}}},d=function(){return{concat:p().concat,empty:u(function(){return 0})}},s={URI:l,contramap:function(e,t){return(0,i.pipe)(e,f(t))}},m={equals:i.constTrue,compare:(0,i.constant)(0)},h=function(e){return function(t){return function(n){return n===t||0===e.compare(n,t)}}},v=function(e){return function(t,n){return -1===e.compare(t,n)}},y=function(e){return function(t,n){return 1===e.compare(t,n)}},g=function(e){return function(t,n){return 1!==e.compare(t,n)}},_=function(e){return function(t,n){return -1!==e.compare(t,n)}},b=function(e){return function(t,n){return t===n||1>e.compare(t,n)?t:n}},S=function(e){return function(t,n){return t===n||e.compare(t,n)>-1?t:n}},T=function(e){var t=b(e),n=S(e);return function(e,r){return function(i){return n(t(i,r),e)}}},I=function(e){var t=v(e),n=y(e);return function(e,r){return function(i){return!(t(i,e)||n(i,r))}}},R=a,w=c,O=s,x={equals:r.eqStrict.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},C=x,M=x,E=x,P=(0,i.pipe)(E,f(function(e){return e.valueOf()}))},88491:function(e,t,n){n.r(t),n.d(t,{Contravariant:function(){return l},URI:function(){return o},and:function(){return s},contramap:function(){return i},getMonoidAll:function(){return f},getMonoidAny:function(){return a},getSemigroupAll:function(){return c},getSemigroupAny:function(){return u},not:function(){return p},or:function(){return d}});var r=n(42275),i=function(e){return function(t){return(0,r.flow)(e,t)}},o="Predicate",u=function(){return{concat:function(e,t){return(0,r.pipe)(e,d(t))}}},a=function(){return{concat:u().concat,empty:r.constFalse}},c=function(){return{concat:function(e,t){return(0,r.pipe)(e,s(t))}}},f=function(){return{concat:c().concat,empty:r.constTrue}},l={URI:o,contramap:function(e,t){return(0,r.pipe)(e,i(t))}},p=function(e){return function(t){return!e(t)}},d=function(e){return function(t){return function(n){return t(n)||e(n)}}},s=function(e){return function(t){return function(n){return t(n)&&e(n)}}}},31583:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return tK},Alternative:function(){return tH},Applicative:function(){return tj},Apply:function(){return tL},Chain:function(){return tq},ChainRecBreadthFirst:function(){return t5},ChainRecDepthFirst:function(){return t7},Compactable:function(){return tX},Do:function(){return ns},Extend:function(){return t$},Filterable:function(){return tJ},FilterableWithIndex:function(){return tZ},Foldable:function(){return tQ},FoldableWithIndex:function(){return t0},FromEither:function(){return nt},Functor:function(){return tW},FunctorWithIndex:function(){return tN},Monad:function(){return tG},Pointed:function(){return tD},Traversable:function(){return t1},TraversableWithIndex:function(){return t2},URI:function(){return tI},Unfoldable:function(){return tB},Witherable:function(){return t6},Zero:function(){return tV},_chainRecBreadthFirst:function(){return eQ},_chainRecDepthFirst:function(){return eZ},alt:function(){return e8},altW:function(){return e2},ap:function(){return e7},apFirst:function(){return tU},apS:function(){return ny},apSecond:function(){return tA},append:function(){return S},appendW:function(){return T},bind:function(){return nv},bindTo:function(){return nm},chain:function(){return ng},chainFirst:function(){return tY},chainRecBreadthFirst:function(){return t3},chainRecDepthFirst:function(){return t8},chainWithIndex:function(){return N},chop:function(){return eS},chunksOf:function(){return eI},compact:function(){return tr},comprehension:function(){return ew},concat:function(){return ex},concatW:function(){return eO},cons:function(){return nb},deleteAt:function(){return ea},difference:function(){return eE},dropLeft:function(){return X},dropLeftWhile:function(){return Z},dropRight:function(){return J},duplicate:function(){return tl},elem:function(){return eg},empty:function(){return nc},every:function(){return nf},exists:function(){return np},extend:function(){return tf},filter:function(){return te},filterE:function(){return ne},filterMap:function(){return tn},filterMapWithIndex:function(){return tt},filterWithIndex:function(){return tc},findFirst:function(){return ee},findFirstMap:function(){return et},findIndex:function(){return Q},findLast:function(){return en},findLastIndex:function(){return ei},findLastMap:function(){return er},flap:function(){return tF},flatMap:function(){return e3},flatten:function(){return e5},foldLeft:function(){return k},foldMap:function(){return ts},foldMapWithIndex:function(){return tp},foldRight:function(){return D},fromArray:function(){return na},fromEither:function(){return x},fromEitherK:function(){return nn},fromOption:function(){return O},fromOptionK:function(){return eR},fromPredicate:function(){return w},getDifferenceMagma:function(){return tk},getEq:function(){return tx},getIntersectionSemigroup:function(){return tP},getMonoid:function(){return tO},getOrd:function(){return tC},getSemigroup:function(){return tw},getShow:function(){return tR},getUnionMonoid:function(){return tE},getUnionSemigroup:function(){return tM},guard:function(){return tz},head:function(){return q},init:function(){return B},insertAt:function(){return eo},intercalate:function(){return nd},intersection:function(){return eM},intersperse:function(){return ev},isEmpty:function(){return y},isNonEmpty:function(){return g},isOutOfBound:function(){return j},last:function(){return G},lefts:function(){return ep},let:function(){return nh},lookup:function(){return function e(t,n){return void 0===n?function(n){return e(t,n)}:j(t,n)?f.YP:f.G(n[t])}},makeBy:function(){return I},map:function(){return e4},mapWithIndex:function(){return e9},match:function(){return M},matchLeft:function(){return P},matchLeftW:function(){return E},matchRight:function(){return F},matchRightW:function(){return W},matchW:function(){return C},modifyAt:function(){return ec},of:function(){return e0},partition:function(){return ti},partitionMap:function(){return tu},partitionMapWithIndex:function(){return ta},partitionWithIndex:function(){return to},prepend:function(){return _},prependAll:function(){return eh},prependToAll:function(){return nT},prependW:function(){return b},range:function(){return n_},readonlyArray:function(){return nI},reduce:function(){return td},reduceRight:function(){return th},reduceRightWithIndex:function(){return tv},reduceWithIndex:function(){return tm},replicate:function(){return R},reverse:function(){return ef},rights:function(){return el},rotate:function(){return ey},scanLeft:function(){return L},scanRight:function(){return U},separate:function(){return e6},sequence:function(){return tg},size:function(){return A},snoc:function(){return nS},some:function(){return nl},sort:function(){return ed},sortBy:function(){return eb},spanLeft:function(){return $},splitAt:function(){return eT},tail:function(){return Y},takeLeft:function(){return K},takeLeftWhile:function(){return z},takeRight:function(){return V},toArray:function(){return nu},traverse:function(){return ty},traverseWithIndex:function(){return t_},unfold:function(){return tT},union:function(){return eC},uniq:function(){return e_},unsafeDeleteAt:function(){return no},unsafeInsertAt:function(){return nr},unsafeUpdateAt:function(){return ni},unzip:function(){return em},updateAt:function(){return eu},wilt:function(){return tS},wither:function(){return tb},zero:function(){return e1},zip:function(){return function e(t,n){return void 0===n?function(n){return e(n,t)}:es(t,n,function(e,t){return[e,t]})}},zipWith:function(){return es}});var r=n(42925),i=n(88543),o=n(65191),u=n(25162),a=n(42275),c=n(67560),f=n(97963),l=n(76627),p=n(5586),d=n(28350),s=n(34219),m=n(76511),h=n(28957),v=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},y=function(e){return 0===e.length},g=d.isNonEmpty,_=d.prepend,b=d.prependW,S=d.append,T=d.appendW,I=function(e,t){return e<=0?nc:d.makeBy(t)(e)},R=function(e,t){return I(e,function(){return t})};function w(e){return function(t){return e(t)?[t]:nc}}var O=function(e){return f.Wi(e)?nc:[e.value]},x=function(e){return f.nM(e)?nc:[e.right]},C=function(e,t){return function(n){return g(n)?t(n):e()}},M=C,E=function(e,t){return function(n){return g(n)?t(d.head(n),d.tail(n)):e()}},P=E,k=P,W=function(e,t){return function(n){return g(n)?t(d.init(n),d.last(n)):e()}},F=W,D=F,N=function(e){return function(t){if(y(t))return nc;for(var n=[],r=0;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},L=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}},U=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}},A=function(e){return e.length},j=d.isOutOfBound,q=function(e){return g(e)?f.G(d.head(e)):f.YP},G=function(e){return g(e)?f.G(d.last(e)):f.YP},Y=function(e){return g(e)?f.G(d.tail(e)):f.YP},B=function(e){return g(e)?f.G(d.init(e)):f.YP},K=function(e){return function(t){return j(e,t)?t:0===e?nc:t.slice(0,e)}},V=function(e){return function(t){return j(e,t)?t:0===e?nc:t.slice(-e)}};function z(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];if(!e(i))break;n.push(i)}var o=n.length;return o===t.length?t:0===o?nc:n}}var H=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r};function $(e){return function(t){var n,r=eT(H(t,e))(t);return{init:r[0],rest:r[1]}}}var X=function(e){return function(t){return e<=0||y(t)?t:e>=t.length?nc:t.slice(e,t.length)}},J=function(e){return function(t){return e<=0||y(t)?t:e>=t.length?nc:t.slice(0,t.length-e)}};function Z(e){return function(t){var n=H(t,e);return 0===n?t:n===t.length?nc:t.slice(n)}}var Q=function(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return f.G(n);return f.YP}};function ee(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return f.G(t[n]);return f.YP}}var et=function(e){return function(t){for(var n=0;n<t.length;n++){var r=e(t[n]);if(f.pC(r))return r}return f.YP}};function en(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return f.G(t[n]);return f.YP}}var er=function(e){return function(t){for(var n=t.length-1;n>=0;n--){var r=e(t[n]);if(f.pC(r))return r}return f.YP}},ei=function(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return f.G(n);return f.YP}},eo=function(e,t){return function(n){return e<0||e>n.length?f.YP:f.G(d.unsafeInsertAt(e,t,n))}},eu=function(e,t){return ec(e,function(){return t})},ea=function(e){return function(t){return j(e,t)?f.YP:f.G(no(e,t))}},ec=function(e,t){return function(n){return j(e,n)?f.YP:f.G(ni(e,t(n[e]),n))}},ef=function(e){return e.length<=1?e:e.slice().reverse()},el=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t},ep=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t},ed=function(e){return function(t){return t.length<=1?t:t.slice().sort(e.compare)}},es=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r},em=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},eh=function(e){var t=d.prependAll(e);return function(e){return g(e)?t(e):e}},ev=function(e){var t=d.intersperse(e);return function(e){return g(e)?t(e):e}},ey=function(e){var t=d.rotate(e);return function(e){return g(e)?t(e):e}};function eg(e){return function(t,n){if(void 0===n){var r,i=eg(e);return function(e){return i(t,e)}}for(var o=0;o<n.length;o++)if(r=n[o],e.equals(r,t))return!0;return!1}}var e_=function(e){var t=d.uniq(e);return function(e){return g(e)?t(e):e}},eb=function(e){var t=d.sortBy(e);return function(e){return g(e)?t(e):e}},eS=function(e){var t=d.chop(e);return function(e){return g(e)?t(e):nc}},eT=function(e){return function(t){return e>=1&&g(t)?d.splitAt(e)(t):y(t)?[t,nc]:[nc,t]}},eI=function(e){var t=d.chunksOf(e);return function(e){return g(e)?t(e):nc}},eR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return O(e.apply(void 0,t))}};function ew(e,t,n){void 0===n&&(n=function(){return!0});var r=function(e,i){return g(i)?e3(d.head(i),function(t){return r((0,a.pipe)(e,S(t)),d.tail(i))}):n.apply(void 0,e)?[t.apply(void 0,e)]:nc};return r(nc,e)}var eO=function(e){return function(t){return y(t)?e:y(e)?t:t.concat(e)}},ex=eO;function eC(e){var t=d.union(e);return function(n,r){if(void 0===r){var i=eC(e);return function(e){return i(e,n)}}return g(n)&&g(r)?t(r)(n):g(n)?n:r}}function eM(e){var t=eg(e);return function(n,r){if(void 0===r){var i=eM(e);return function(e){return i(e,n)}}return n.filter(function(e){return t(e,r)})}}function eE(e){var t=eg(e);return function(n,r){if(void 0===r){var i=eE(e);return function(e){return i(e,n)}}return n.filter(function(e){return!t(e,r)})}}var eP=function(e,t){return(0,a.pipe)(e,e4(t))},ek=function(e,t){return(0,a.pipe)(e,e9(t))},eW=function(e,t){return(0,a.pipe)(e,e7(t))},eF=function(e,t){return(0,a.pipe)(e,te(t))},eD=function(e,t){return(0,a.pipe)(e,tn(t))},eN=function(e,t){return(0,a.pipe)(e,ti(t))},eL=function(e,t){return(0,a.pipe)(e,tu(t))},eU=function(e,t){return(0,a.pipe)(e,to(t))},eA=function(e,t){return(0,a.pipe)(e,ta(t))},ej=function(e,t){return(0,a.pipe)(e,e8(t))},eq=function(e,t,n){return(0,a.pipe)(e,td(t,n))},eG=function(e){var t=ts(e);return function(e,n){return(0,a.pipe)(e,t(n))}},eY=function(e,t,n){return(0,a.pipe)(e,th(t,n))},eB=function(e,t,n){return(0,a.pipe)(e,tm(t,n))},eK=function(e){var t=tp(e);return function(e,n){return(0,a.pipe)(e,t(n))}},eV=function(e,t,n){return(0,a.pipe)(e,tv(t,n))},ez=function(e,t){return(0,a.pipe)(e,tt(t))},eH=function(e,t){return(0,a.pipe)(e,tc(t))},e$=function(e,t){return(0,a.pipe)(e,tf(t))},eX=function(e){var t=ty(e);return function(e,n){return(0,a.pipe)(e,t(n))}},eJ=function(e){var t=t_(e);return function(e,n){return(0,a.pipe)(e,t(n))}},eZ=function(e,t){return(0,a.pipe)(e,t8(t))},eQ=function(e,t){return(0,a.pipe)(e,t3(t))},e0=d.of,e1=function(){return nc},e2=function(e){return function(t){return t.concat(e())}},e8=e2,e7=function(e){return e3(function(t){return(0,a.pipe)(e,e4(t))})},e3=(0,a.dual)(2,function(e,t){return(0,a.pipe)(e,N(function(e,n){return t(n,e)}))}),e5=e3(a.identity),e4=function(e){return function(t){return t.map(function(t){return e(t)})}},e9=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}},e6=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return(0,s.separated)(t,n)},te=function(e){return function(t){return t.filter(e)}},tt=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);f.pC(i)&&n.push(i.value)}return n}},tn=function(e){return tt(function(t,n){return e(n)})},tr=tn(a.identity),ti=function(e){return to(function(t,n){return e(n)})},to=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return(0,s.separated)(n,r)}},tu=function(e){return ta(function(t,n){return e(n)})},ta=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return(0,s.separated)(n,r)}},tc=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}},tf=function(e){return function(t){return t.map(function(n,r){return e(t.slice(r))})}},tl=tf(a.identity),tp=function(e){return function(t){return function(n){return n.reduce(function(n,r,i){return e.concat(n,t(i,r))},e.empty)}}},td=function(e,t){return tm(e,function(e,n,r){return t(n,r)})},ts=function(e){var t=tp(e);return function(e){return t(function(t,n){return e(n)})}},tm=function(e,t){return function(n){for(var r=n.length,i=e,o=0;o<r;o++)i=t(o,i,n[o]);return i}},th=function(e,t){return tv(e,function(e,n,r){return t(n,r)})},tv=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}},ty=function(e){var t=t_(e);return function(e){return t(function(t,n){return e(n)})}},tg=function(e){return function(t){return eq(t,e.of(e1()),function(t,n){return e.ap(e.map(t,function(e){return function(t){return(0,a.pipe)(e,S(t))}}),n)})}},t_=function(e){return function(t){return tm(e.of(e1()),function(n,r,i){return e.ap(e.map(r,function(e){return function(t){return(0,a.pipe)(e,S(t))}}),t(n,i))})}},tb=function(e){var t=t4(e);return function(e){return function(n){return t(n,e)}}},tS=function(e){var t=t9(e);return function(e){return function(n){return t(n,e)}}},tT=function(e,t){for(var n=[],r=e;;){var i=t(r);if(f.pC(i)){var o=i.value,u=o[0],a=o[1];n.push(u),r=a}else break}return n},tI="ReadonlyArray",tR=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}},tw=function(){return{concat:function(e,t){return y(e)?t:y(t)?e:e.concat(t)}}},tO=function(){return{concat:tw().concat,empty:nc}},tx=function(e){return(0,o.fromEquals)(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})},tC=function(e){return(0,p.fromCompare)(function(t,n){for(var r=t.length,i=n.length,o=Math.min(r,i),u=0;u<o;u++){var a=e.compare(t[u],n[u]);if(0!==a)return a}return l.Ord.compare(r,i)})},tM=function(e){var t=eC(e);return{concat:function(e,n){return t(n)(e)}}},tE=function(e){return{concat:tM(e).concat,empty:nc}},tP=function(e){var t=eM(e);return{concat:function(e,n){return t(n)(e)}}},tk=function(e){var t=eE(e);return{concat:function(e,n){return t(n)(e)}}},tW={URI:tI,map:eP},tF=(0,c.flap)(tW),tD={URI:tI,of:e0},tN={URI:tI,map:eP,mapWithIndex:ek},tL={URI:tI,map:eP,ap:eW},tU=(0,r.apFirst)(tL),tA=(0,r.apSecond)(tL),tj={URI:tI,map:eP,ap:eW,of:e0},tq={URI:tI,map:eP,ap:eW,chain:e3},tG={URI:tI,map:eP,ap:eW,of:e0,chain:e3},tY=(0,i.chainFirst)(tq),tB={URI:tI,unfold:tT},tK={URI:tI,map:eP,alt:ej},tV={URI:tI,zero:e1},tz=(0,h.guard)(tV,tD),tH={URI:tI,map:eP,ap:eW,of:e0,alt:ej,zero:e1},t$={URI:tI,map:eP,extend:e$},tX={URI:tI,compact:tr,separate:e6},tJ={URI:tI,map:eP,compact:tr,separate:e6,filter:eF,filterMap:eD,partition:eN,partitionMap:eL},tZ={URI:tI,map:eP,mapWithIndex:ek,compact:tr,separate:e6,filter:eF,filterMap:eD,partition:eN,partitionMap:eL,partitionMapWithIndex:eA,partitionWithIndex:eU,filterMapWithIndex:ez,filterWithIndex:eH},tQ={URI:tI,reduce:eq,foldMap:eG,reduceRight:eY},t0={URI:tI,reduce:eq,foldMap:eG,reduceRight:eY,reduceWithIndex:eB,foldMapWithIndex:eK,reduceRightWithIndex:eV},t1={URI:tI,map:eP,reduce:eq,foldMap:eG,reduceRight:eY,traverse:eX,sequence:tg},t2={URI:tI,map:eP,mapWithIndex:ek,reduce:eq,foldMap:eG,reduceRight:eY,reduceWithIndex:eB,foldMapWithIndex:eK,reduceRightWithIndex:eV,traverse:eX,sequence:tg,traverseWithIndex:eJ},t8=function(e){return function(t){for(var n=v([],e(t),!0),r=[];n.length>0;){var i=n.shift();f.nM(i)?n.unshift.apply(n,e(i.left)):r.push(i.right)}return r}},t7={URI:tI,map:eP,ap:eW,chain:e3,chainRec:eZ},t3=function(e){return function(t){var n=e(t),r=[],i=[];function o(t){f.nM(t)?e(t.left).forEach(function(e){return r.push(e)}):i.push(t.right)}for(var u=0;u<n.length;u++)o(n[u]);for(;r.length>0;)o(r.shift());return i}},t5={URI:tI,map:eP,ap:eW,chain:e3,chainRec:eQ},t4=(0,m.witherDefault)(t1,tX),t9=(0,m.wiltDefault)(t1,tX),t6={URI:tI,map:eP,compact:tr,separate:e6,filter:eF,filterMap:eD,partition:eN,partitionMap:eL,reduce:eq,foldMap:eG,reduceRight:eY,traverse:eX,sequence:tg,wither:t4,wilt:t9},ne=(0,m.filterE)(t6),nt={URI:tI,fromEither:x},nn=(0,u.fromEitherK)(nt),nr=d.unsafeInsertAt,ni=function(e,t,n){return g(n)?d.unsafeUpdateAt(e,t,n):n},no=function(e,t){var n=t.slice();return n.splice(e,1),n},nu=function(e){return e.slice()},na=function(e){return y(e)?nc:e.slice()},nc=d.empty;function nf(e){return function(t){return t.every(e)}}var nl=function(e){return function(t){return t.some(e)}},np=nl,nd=function(e){var t=d.intercalate(e);return function(n){return M(function(){return e.empty},t(n))}},ns=e0(f.F4),nm=(0,c.bindTo)(tW),nh=(0,c.let)(tW),nv=(0,i.bind)(tq),ny=(0,r.apS)(tL),ng=e3,n_=d.range,nb=d.cons,nS=d.snoc,nT=eh,nI={URI:tI,compact:tr,separate:e6,map:eP,ap:eW,of:e0,chain:e3,filter:eF,filterMap:eD,partition:eN,partitionMap:eL,mapWithIndex:ek,partitionMapWithIndex:eA,partitionWithIndex:eU,filterMapWithIndex:ez,filterWithIndex:eH,alt:ej,zero:e1,unfold:tT,reduce:eq,foldMap:eG,reduceRight:eY,traverse:eX,sequence:tg,reduceWithIndex:eB,foldMapWithIndex:eK,reduceRightWithIndex:eV,traverseWithIndex:eJ,extend:e$,wither:t4,wilt:t9}},13512:function(e,t,n){n.r(t),n.d(t,{Compactable:function(){return ep},Filterable:function(){return ed},Functor:function(){return ec},URI:function(){return en},collect:function(){return g},compact:function(){return H},deleteAt:function(){return T},difference:function(){return eO},elem:function(){return function e(t){return function(n,r){if(void 0===r){var i,o=e(t);return function(e){return o(n,e)}}for(var u=r.values();!(i=u.next()).done;){var a=i.value;if(t.equals(n,a))return!0}return!1}}},empty:function(){return M},filter:function(){return $},filterMap:function(){return X},filterMapWithIndex:function(){return L},filterWithIndex:function(){return U},flap:function(){return ef},foldMap:function(){return em},foldMapWithIndex:function(){return eg},fromFoldable:function(){return W},fromMap:function(){return l},getDifferenceMagma:function(){return eu},getEq:function(){return E},getFilterableWithIndex:function(){return ea},getFoldable:function(){return ev},getFoldableWithIndex:function(){return eb},getFunctorWithIndex:function(){return el},getIntersectionSemigroup:function(){return eo},getMonoid:function(){return P},getShow:function(){return d},getTraversable:function(){return eS},getTraversableWithIndex:function(){return eT},getUnionMonoid:function(){return ei},getUnionSemigroup:function(){return er},getWitherable:function(){return eI},insertAt:function(){return ex},intersection:function(){return ew},isEmpty:function(){return m},isSubmap:function(){return C},keys:function(){return v},lookup:function(){return x},lookupWithKey:function(){return O},map:function(){return J},mapWithIndex:function(){return Z},member:function(){return h},modifyAt:function(){return R},partition:function(){return Q},partitionMap:function(){return ee},partitionMapWithIndex:function(){return D},partitionWithIndex:function(){return N},pop:function(){return w},readonlyMap:function(){return eC},reduce:function(){return es},reduceRight:function(){return eh},reduceRightWithIndex:function(){return e_},reduceWithIndex:function(){return ey},separate:function(){return et},singleton:function(){return k},size:function(){return s},toMap:function(){return p},toReadonlyArray:function(){return _},toUnfoldable:function(){return b},union:function(){return eR},updateAt:function(){return I},upsertAt:function(){return S},values:function(){return y}});var r=n(65191),i=n(42275),o=n(67560),u=n(97963),a=n(20492),c=n(34219),f=n(76511),l=function(e){return new Map(e)};function p(e){return new Map(e)}function d(e,t){return{show:function(n){var r=[];return n.forEach(function(n,i){r.push("[".concat(e.show(i),", ").concat(t.show(n),"]"))}),"new Map([".concat(r.sort().join(", "),"])")}}}var s=function(e){return e.size},m=function(e){return 0===e.size};function h(e){var t=x(e);return function(n,r){if(void 0===r){var i=h(e);return function(e){return i(n,e)}}return u.pC(t(n,r))}}var v=function(e){return function(t){return Array.from(t.keys()).sort(e.compare)}},y=function(e){return function(t){return Array.from(t.values()).sort(e.compare)}};function g(e){var t=v(e);return function(e){return function(n){for(var r=[],i=t(n),o=0;o<i.length;o++){var u=i[o];r.push(e(u,n.get(u)))}return r}}}var _=function(e){return g(e)(function(e,t){return[e,t]})};function b(e,t){var n=_(e);return function(e){var r=n(e),i=r.length;return t.unfold(0,function(e){return e<i?u.G([r[e],e+1]):u.YP})}}var S=function(e){var t=O(e);return function(e,n){var r=t(e);return function(t){var i=r(t);if(u.Wi(i)){var o=new Map(t);return o.set(e,n),o}if(i.value[1]!==n){var o=new Map(t);return o.set(i.value[0],n),o}return t}}},T=function(e){var t=O(e);return function(e){return function(n){var r=t(e,n);if(u.pC(r)){var i=new Map(n);return i.delete(r.value[0]),i}return n}}},I=function(e){var t=R(e);return function(e,n){return t(e,function(){return n})}},R=function(e){var t=O(e);return function(e,n){return function(r){var i=t(e,r);if(u.Wi(i))return u.YP;var o=i.value,a=o[0],c=o[1],f=n(c);if(f===c)return u.G(r);var l=new Map(r);return l.set(a,f),u.G(l)}}};function w(e){var t=x(e),n=T(e);return function(e){var r=n(e);return function(n){return(0,i.pipe)(t(e,n),a.map(function(e){return[e,r(n)]}))}}}function O(e){return function(t,n){if(void 0===n){var r,i=O(e);return function(e){return i(t,e)}}for(var o=n.entries();!(r=o.next()).done;){var a=r.value,c=a[0],f=a[1];if(e.equals(c,t))return u.G([c,f])}return u.YP}}function x(e){var t=O(e);return function(n,r){if(void 0===r){var o=x(e);return function(e){return o(n,e)}}return(0,i.pipe)(t(n,r),a.map(function(e){return e[0],e[1]}))}}function C(e,t){var n=O(e);return function(r,i){if(void 0===i){var o,a=C(e,t);return function(e){return a(e,r)}}for(var c=r.entries();!(o=c.next()).done;){var f=o.value,l=f[0],p=f[1],d=n(l,i);if(u.Wi(d)||!e.equals(l,d.value[0])||!t.equals(p,d.value[1]))return!1}return!0}}var M=new Map;function E(e,t){var n=C(e,t);return(0,r.fromEquals)(function(e,t){return n(e,t)&&n(t,e)})}function P(e,t){var n=O(e);return{concat:function(e,r){if(m(e))return r;if(m(r))return e;for(var i,o=new Map(e),a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=n(f,e);u.pC(p)?o.set(p.value[0],t.concat(p.value[1],l)):o.set(f,l)}return o},empty:M}}var k=function(e,t){return new Map([[e,t]])};function W(e,t,n){return function(r){var i=O(e);return n.reduce(r,new Map,function(e,n){var r=n[0],o=n[1],a=i(r,e);return u.pC(a)?e.set(a.value[0],t.concat(a.value[1],o)):e.set(r,o),e})}}var F=function(e,t){for(var n,r=new Map,i=e.entries();!(n=i.next()).done;){var o=n.value,u=o[0],a=o[1];r.set(u,t(u,a))}return r},D=function(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var a=n.value,f=a[0],l=e(f,a[1]);u.nM(l)?r.set(f,l.left):i.set(f,l.right)}return(0,c.separated)(r,i)}};function N(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var u=n.value,a=u[0],f=u[1];e(a,f)?i.set(a,f):r.set(a,f)}return(0,c.separated)(r,i)}}var L=function(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,a=o[0],c=e(a,o[1]);u.pC(c)&&r.set(a,c.value)}return r}};function U(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,u=o[0],a=o[1];e(u,a)&&r.set(u,a)}return r}}var A=function(e,t){return F(e,function(e,n){return t(n)})},j=function(e,t){return B(e,function(e,n){return t(n)})},q=function(e,t){return K(e,function(e,n){return t(n)})},G=function(e,t){return V(e,function(e,n){return t(n)})},Y=function(e,t){return z(e,function(e,n){return t(n)})},B=function(e,t){return(0,i.pipe)(e,U(t))},K=function(e,t){return(0,i.pipe)(e,L(t))},V=function(e,t){return(0,i.pipe)(e,N(t))},z=function(e,t){return(0,i.pipe)(e,D(t))},H=function(e){for(var t,n=new Map,r=e.entries();!(t=r.next()).done;){var i=t.value,o=i[0],a=i[1];u.pC(a)&&n.set(o,a.value)}return n},$=function(e){return function(t){return j(t,e)}},X=function(e){return function(t){return q(t,e)}},J=function(e){return function(t){return A(t,e)}},Z=function(e){return function(t){return F(t,e)}},Q=function(e){return function(t){return G(t,e)}},ee=function(e){return function(t){return Y(t,e)}},et=function(e){for(var t,n=new Map,r=new Map,i=e.entries();!(t=i.next()).done;){var o=t.value,a=o[0],f=o[1];u.nM(f)?n.set(a,f.left):r.set(a,f.right)}return(0,c.separated)(n,r)},en="ReadonlyMap",er=function(e,t){var n=eR(e,t);return{concat:function(e,t){return n(t)(e)}}},ei=function(e,t){return{concat:er(e,t).concat,empty:M}},eo=function(e,t){var n=ew(e,t);return{concat:function(e,t){return n(t)(e)}}},eu=function(e){return function(){var t=eO(e);return{concat:function(e,n){return t(n)(e)}}}};function ea(){return{URI:en,_E:void 0,map:A,mapWithIndex:F,compact:H,separate:et,filter:j,filterMap:q,partition:G,partitionMap:Y,partitionMapWithIndex:z,partitionWithIndex:V,filterMapWithIndex:K,filterWithIndex:B}}var ec={URI:en,map:A},ef=(0,o.flap)(ec),el=function(){return{URI:en,_E:void 0,map:A,mapWithIndex:F}},ep={URI:en,compact:H,separate:et},ed={URI:en,map:A,compact:H,separate:et,filter:j,filterMap:q,partition:G,partitionMap:Y},es=function(e){var t=ey(e);return function(e,n){return t(e,function(e,t,r){return n(t,r)})}},em=function(e){var t=eg(e);return function(e){var n=t(e);return function(e){return n(function(t,n){return e(n)})}}},eh=function(e){var t=e_(e);return function(e,n){return t(e,function(e,t,r){return n(t,r)})}},ev=function(e){var t=es(e),n=em(e),r=eh(e);return{URI:en,_E:void 0,reduce:function(e,n,r){return(0,i.pipe)(e,t(n,r))},foldMap:function(e){var t=n(e);return function(e,n){return(0,i.pipe)(e,t(n))}},reduceRight:function(e,t,n){return(0,i.pipe)(e,r(t,n))}}},ey=function(e){var t=v(e);return function(e,n){return function(r){for(var i=e,o=0,u=t(r);o<u.length;o++){var a=u[o];i=n(a,i,r.get(a))}return i}}},eg=function(e){var t=v(e);return function(e){return function(n){return function(r){for(var i=e.empty,o=0,u=t(r);o<u.length;o++){var a=u[o];i=e.concat(i,n(a,r.get(a)))}return i}}}},e_=function(e){var t=v(e);return function(e,n){return function(r){for(var i=e,o=t(r),u=o.length,a=u-1;a>=0;a--){var c=o[a];i=n(c,r.get(c),i)}return i}}},eb=function(e){var t=ev(e),n=ey(e),r=eg(e),o=e_(e);return{URI:en,_E:void 0,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:function(e,t,r){return(0,i.pipe)(e,n(t,r))},foldMapWithIndex:function(e){var t=r(e);return function(e,n){return(0,i.pipe)(e,t(n))}},reduceRightWithIndex:function(e,t,n){return(0,i.pipe)(e,o(t,n))}}},eS=function(e){var t=eT(e),n=ev(e);return{URI:en,_E:void 0,map:A,reduce:n.reduce,foldMap:n.foldMap,reduceRight:n.reduceRight,traverse:t.traverse,sequence:t.sequence}},eT=function(e){var t=eb(e),n=v(e),r=function(e){return function(t,r){for(var i=e.of(new Map),o=n(t),u=o.length,a=0;a<u;a++)!function(n){var u=o[n],a=t.get(u);i=e.ap(e.map(i,function(e){return function(t){return e.set(u,t)}}),r(u,a))}(a);return i}},o=function(e){var t=r(e);return function(e,n){return t(e,function(e,t){return n(t)})}},u=function(e){var t=r(e);return function(e){return t(e,i.SK)}};return{URI:en,_E:void 0,map:A,mapWithIndex:F,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:o,sequence:u,traverseWithIndex:r}};function eI(e){var t=eT(e);return{URI:en,_E:void 0,map:A,compact:H,separate:et,filter:j,filterMap:q,partition:G,partitionMap:Y,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,ep),wither:(0,f.witherDefault)(t,ep)}}var eR=function(e,t){var n=x(e);return function(e){return function(r){if(m(r))return e;if(m(e))return r;for(var i,o=new Map,a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=n(f)(e);u.pC(p)?o.set(f,t.concat(l,p.value)):o.set(f,l)}for(var d=e.entries();!(i=d.next()).done;){var s=i.value,f=s[0],l=s[1],p=n(f)(o);u.Wi(p)&&o.set(f,l)}return o}}},ew=function(e,t){var n=x(e);return function(e){return function(r){if(m(r)||m(e))return M;for(var i,o=new Map,a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=n(f)(e);u.pC(p)&&o.set(f,t.concat(l,p.value))}return o}}},eO=function(e){var t=h(e);return function(e){return function(n){if(m(n))return e;if(m(e))return n;for(var r,i=new Map,o=n.entries();!(r=o.next()).done;){var u=r.value,a=u[0],c=u[1];t(a)(e)||i.set(a,c)}for(var f=e.entries();!(r=f.next()).done;){var l=r.value,a=l[0],c=l[1];t(a)(n)||i.set(a,c)}return i}}},ex=S,eC={URI:en,map:A,compact:H,separate:et,filter:j,filterMap:q,partition:G,partitionMap:Y}},28350:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return ez},Applicative:function(){return eA},Apply:function(){return eN},Chain:function(){return ej},Comonad:function(){return eH},Do:function(){return e$},Foldable:function(){return eY},FoldableWithIndex:function(){return eB},Functor:function(){return ek},FunctorWithIndex:function(){return eD},Monad:function(){return eG},Pointed:function(){return eF},Traversable:function(){return eK},TraversableWithIndex:function(){return eV},URI:function(){return ex},alt:function(){return ef},altW:function(){return ec},ap:function(){return el},apFirst:function(){return eL},apS:function(){return eQ},apSecond:function(){return eU},append:function(){return g},appendW:function(){return y},bind:function(){return eZ},bindTo:function(){return eX},chain:function(){return ti},chainFirst:function(){return eq},chainWithIndex:function(){return B},chop:function(){return K},chunksOf:function(){return z},concat:function(){return W},concatAll:function(){return e5},concatW:function(){return k},cons:function(){return tl},duplicate:function(){return es},empty:function(){return d},extend:function(){return ed},extract:function(){return eO},filter:function(){return tu},filterWithIndex:function(){return ta},flap:function(){return eW},flatMap:function(){return ep},flatten:function(){return em},fold:function(){return tm},foldMap:function(){return eg},foldMapWithIndex:function(){return eS},fromArray:function(){return P},fromReadonlyArray:function(){return w},getEq:function(){return eE},getSemigroup:function(){return eM},getShow:function(){return eC},getUnionSemigroup:function(){return eP},group:function(){return D},groupBy:function(){return N},groupSort:function(){return to},head:function(){return e0},init:function(){return e8},insertAt:function(){return td},intercalate:function(){return tr},intersperse:function(){return Y},isNonEmpty:function(){return s},isOutOfBound:function(){return m},last:function(){return e2},let:function(){return eJ},makeBy:function(){return O},map:function(){return eh},mapWithIndex:function(){return ev},matchLeft:function(){return e4},matchRight:function(){return e9},max:function(){return e3},min:function(){return e7},modifyAt:function(){return A},modifyHead:function(){return e6},modifyLast:function(){return tt},of:function(){return ea},prepend:function(){return v},prependAll:function(){return G},prependToAll:function(){return ts},prependW:function(){return h},range:function(){return C},readonlyNonEmptyArray:function(){return th},reduce:function(){return ey},reduceRight:function(){return e_},reduceRightWithIndex:function(){return eT},reduceWithIndex:function(){return eb},replicate:function(){return x},reverse:function(){return F},rotate:function(){return R},sequence:function(){return eR},snoc:function(){return tp},sort:function(){return L},sortBy:function(){return T},splitAt:function(){return V},tail:function(){return e1},traverse:function(){return eI},traverseWithIndex:function(){return ew},unappend:function(){return E},uncons:function(){return tc},union:function(){return I},uniq:function(){return S},unprepend:function(){return M},unsafeInsertAt:function(){return _},unsafeUpdateAt:function(){return b},unsnoc:function(){return tf},unzip:function(){return q},updateAt:function(){return U},updateHead:function(){return te},updateLast:function(){return tn},zip:function(){return function e(t,n){return void 0===n?function(n){return e(n,t)}:j(t,n,function(e,t){return[e,t]})}},zipWith:function(){return j}});var r=n(42925),i=n(88543),o=n(65191),u=n(42275),a=n(67560),c=n(97963),f=n(5586),l=n(3291),p=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},d=c.Xl,s=c.Od,m=function(e,t){return e<0||e>=t.length},h=function(e){return function(t){return p([e],t,!0)}},v=h,y=function(e){return function(t){return p(p([],t,!0),[e],!1)}},g=y,_=function(e,t,n){if(s(n)){var r=c.r1(n);return r.splice(e,0,t),r}return[t]},b=function(e,t,n){if(n[e]===t)return n;var r=c.r1(n);return r[e]=t,r},S=function(e){return function(t){if(1===t.length)return t;for(var n=[e0(t)],r=e1(t),i=function(t){n.every(function(n){return!e.equals(n,t)})&&n.push(t)},o=0;o<r.length;o++)i(r[o]);return n}},T=function(e){if(s(e)){var t=(0,f.getMonoid)();return L(e.reduce(t.concat,t.empty))}return u.identity},I=function(e){var t=S(e);return function(e){return function(n){return t((0,u.pipe)(n,W(e)))}}},R=function(e){return function(t){var n=t.length,r=Math.round(e)%n;if(m(Math.abs(r),t)||0===r)return t;if(!(r<0))return R(r-n)(t);var i=V(-r)(t),o=i[0],a=i[1];return(0,u.pipe)(a,W(o))}},w=function(e){return s(e)?c.G(e):c.YP},O=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}},x=function(e){return O(function(){return e})},C=function(e,t){return e<=t?O(function(t){return e+t})(t-e+1):[e]},M=function(e){return[e0(e),e1(e)]},E=function(e){return[e8(e),e2(e)]},P=function(e){return w(e.slice())};function k(e){return function(t){return t.concat(e)}}function W(e,t){return t?e.concat(t):function(t){return t.concat(e)}}var F=function(e){return 1===e.length?e:p([e2(e)],e.slice(0,-1).reverse(),!0)};function D(e){return function(t){var n=t.length;if(0===n)return d;for(var r=[],i=t[0],o=[i],u=1;u<n;u++){var a=t[u];e.equals(a,i)?o.push(a):(r.push(o),o=[i=a])}return r.push(o),r}}var N=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);c.e$.call(n,o)?n[o].push(i):n[o]=[i]}return n}},L=function(e){return function(t){return 1===t.length?t:t.slice().sort(e.compare)}},U=function(e,t){return A(e,function(){return t})},A=function(e,t){return function(n){return m(e,n)?c.YP:c.G(b(e,t(n[e]),n))}},j=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r},q=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},G=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}},Y=function(e){return function(t){var n=e1(t);return s(n)?(0,u.pipe)(n,G(e),v(e0(t))):t}},B=function(e){return function(t){for(var n=c.r1(e(0,e0(t))),r=1;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},K=function(e){return function(t){for(var n=e(t),r=n[0],i=n[1],o=[r],u=i;s(u);){var a=e(u),c=a[0],f=a[1];o.push(c),u=f}return o}},V=function(e){return function(t){var n=Math.max(1,e);return n>=t.length?[t,d]:[(0,u.pipe)(t.slice(1,n),v(e0(t))),t.slice(n)]}},z=function(e){return K(V(e))},H=function(e,t){return(0,u.pipe)(e,eh(t))},$=function(e,t){return(0,u.pipe)(e,ev(t))},X=function(e,t){return(0,u.pipe)(e,el(t))},J=function(e,t){return(0,u.pipe)(e,ed(t))},Z=function(e,t,n){return(0,u.pipe)(e,ey(t,n))},Q=function(e){var t=eg(e);return function(e,n){return(0,u.pipe)(e,t(n))}},ee=function(e,t,n){return(0,u.pipe)(e,e_(t,n))},et=function(e){var t=eI(e);return function(e,n){return(0,u.pipe)(e,t(n))}},en=function(e,t){return(0,u.pipe)(e,ef(t))},er=function(e,t,n){return(0,u.pipe)(e,eb(t,n))},ei=function(e){var t=eS(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eo=function(e,t,n){return(0,u.pipe)(e,eT(t,n))},eu=function(e){var t=ew(e);return function(e,n){return(0,u.pipe)(e,t(n))}},ea=c.ri,ec=function(e){return function(t){return(0,u.pipe)(t,k(e()))}},ef=ec,el=function(e){return ep(function(t){return(0,u.pipe)(e,eh(t))})},ep=(0,u.dual)(2,function(e,t){return(0,u.pipe)(e,B(function(e,n){return t(n,e)}))}),ed=function(e){return function(t){for(var n=e1(t),r=[e(t)];s(n);)r.push(e(n)),n=e1(n);return r}},es=ed(u.identity),em=ep(u.identity),eh=function(e){return ev(function(t,n){return e(n)})},ev=function(e){return function(t){for(var n=[e(0,e0(t))],r=1;r<t.length;r++)n.push(e(r,t[r]));return n}},ey=function(e,t){return eb(e,function(e,n,r){return t(n,r)})},eg=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r){return e.concat(n,t(r))},t(n[0]))}}},e_=function(e,t){return eT(e,function(e,n,r){return t(n,r)})},eb=function(e,t){return function(n){return n.reduce(function(e,n,r){return t(r,e,n)},e)}},eS=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r,i){return e.concat(n,t(i+1,r))},t(0,n[0]))}}},eT=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}},eI=function(e){var t=ew(e);return function(e){return t(function(t,n){return e(n)})}},eR=function(e){return ew(e)(u.SK)},ew=function(e){return function(t){return function(n){for(var r=e.map(t(0,e0(n)),ea),i=1;i<n.length;i++)r=e.ap(e.map(r,function(e){return function(t){return(0,u.pipe)(e,g(t))}}),t(i,n[i]));return r}}},eO=c.YM,ex="ReadonlyNonEmptyArray",eC=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}},eM=function(){return{concat:W}},eE=function(e){return(0,o.fromEquals)(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})},eP=function(e){var t=I(e);return{concat:function(e,n){return t(n)(e)}}},ek={URI:ex,map:H},eW=(0,a.flap)(ek),eF={URI:ex,of:ea},eD={URI:ex,map:H,mapWithIndex:$},eN={URI:ex,map:H,ap:X},eL=(0,r.apFirst)(eN),eU=(0,r.apSecond)(eN),eA={URI:ex,map:H,ap:X,of:ea},ej={URI:ex,map:H,ap:X,chain:ep},eq=(0,i.chainFirst)(ej),eG={URI:ex,map:H,ap:X,of:ea,chain:ep},eY={URI:ex,reduce:Z,foldMap:Q,reduceRight:ee},eB={URI:ex,reduce:Z,foldMap:Q,reduceRight:ee,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo},eK={URI:ex,map:H,reduce:Z,foldMap:Q,reduceRight:ee,traverse:et,sequence:eR},eV={URI:ex,map:H,mapWithIndex:$,reduce:Z,foldMap:Q,reduceRight:ee,traverse:et,sequence:eR,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo,traverseWithIndex:eu},ez={URI:ex,map:H,alt:en},eH={URI:ex,map:H,extend:J,extract:eO},e$=ea(c.F4),eX=(0,a.bindTo)(ek),eJ=(0,a.let)(ek),eZ=(0,i.bind)(ej),eQ=(0,r.apS)(eN),e0=eO,e1=c.Gb,e2=function(e){return e[e.length-1]},e8=function(e){return e.slice(0,-1)},e7=function(e){var t=l.min(e);return function(e){return e.reduce(t.concat)}},e3=function(e){var t=l.max(e);return function(e){return e.reduce(t.concat)}},e5=function(e){return function(t){return t.reduce(e.concat)}},e4=function(e){return function(t){return e(e0(t),e1(t))}},e9=function(e){return function(t){return e(e8(t),e2(t))}},e6=function(e){return function(t){return p([e(e0(t))],e1(t),!0)}},te=function(e){return e6(function(){return e})},tt=function(e){return function(t){return(0,u.pipe)(e8(t),g(e(e2(t))))}},tn=function(e){return tt(function(){return e})},tr=function(e){var t=e5(e);return function(e){return(0,u.flow)(Y(e),t)}},ti=ep;function to(e){var t=L(e),n=D(e);return function(e){return s(e)?n(t(e)):d}}function tu(e){return ta(function(t,n){return e(n)})}var ta=function(e){return function(t){return w(t.filter(function(t,n){return e(n,t)}))}},tc=M,tf=E;function tl(e,t){return void 0===t?v(e):(0,u.pipe)(t,v(e))}var tp=function(e,t){return(0,u.pipe)(e,W([t]))},td=function(e,t){return function(n){return e<0||e>n.length?c.YP:c.G(_(e,t,n))}},ts=G,tm=e5,th={URI:ex,of:ea,map:H,mapWithIndex:$,ap:X,chain:ep,extend:J,extract:eO,reduce:Z,foldMap:Q,reduceRight:ee,traverse:et,sequence:eR,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo,traverseWithIndex:eu,alt:en}},97054:function(e,t,n){n.r(t),n.d(t,{Compactable:function(){return eF},Filterable:function(){return eD},FilterableWithIndex:function(){return eN},Foldable:function(){return eB},FoldableWithIndex:function(){return eK},Functor:function(){return eM},FunctorWithIndex:function(){return eP},Traversable:function(){return eV},TraversableWithIndex:function(){return ez},URI:function(){return eO},Witherable:function(){return eX},_filter:function(){return er},_filterMap:function(){return ei},_filterMapWithIndex:function(){return ed},_filterWithIndex:function(){return es},_foldMap:function(){return et},_foldMapWithIndex:function(){return ec},_map:function(){return Z},_mapWithIndex:function(){return Q},_partition:function(){return eo},_partitionMap:function(){return eu},_partitionMapWithIndex:function(){return el},_partitionWithIndex:function(){return ep},_reduce:function(){return ee},_reduceRight:function(){return en},_reduceRightWithIndex:function(){return ef},_reduceWithIndex:function(){return ea},_sequence:function(){return eh},_traverse:function(){return em},collect:function(){return v},compact:function(){return eR},deleteAt:function(){return S},difference:function(){return J},elem:function(){return function e(t){return function(n,r){if(void 0===r){var i=e(t);return function(e){return i(n,e)}}for(var o in r)if(t.equals(r[o],n))return!0;return!1}}},empty:function(){return x},every:function(){return z},filter:function(){return ey},filterMap:function(){return eg},filterMapWithIndex:function(){return q},filterWithIndex:function(){return G},flap:function(){return eE},foldMap:function(){return eT},foldMapWithIndex:function(){return P},fromEntries:function(){return V},fromFoldable:function(){return Y},fromFoldableMap:function(){return B},fromRecord:function(){return l},getDifferenceMagma:function(){return eY},getEq:function(){return ex},getFoldable:function(){return ek},getFoldableWithIndex:function(){return eW},getIntersectionSemigroup:function(){return eG},getMonoid:function(){return eC},getShow:function(){return function e(t){return"compare"in t?function(e){return{show:function(n){var r=v(t)(function(t,n){return"".concat(JSON.stringify(t),": ").concat(e.show(n))})(n).join(", ");return""===r?"{}":"{ ".concat(r," }")}}}:e(c.Ord)(t)}},getTraversable:function(){return eL},getTraversableWithIndex:function(){return eU},getUnionMonoid:function(){return eq},getUnionSemigroup:function(){return ej},getWitherable:function(){return eA},has:function(){return b},hasOwnProperty:function(){return eZ},insertAt:function(){return eJ},intersection:function(){return X},isEmpty:function(){return s},isSubrecord:function(){return w},keys:function(){return h},lookup:function(){return O},map:function(){return M},mapWithIndex:function(){return C},modifyAt:function(){return I},partition:function(){return e_},partitionMap:function(){return eb},partitionMapWithIndex:function(){return A},partitionWithIndex:function(){return j},pop:function(){return R},readonlyRecord:function(){return eQ},reduce:function(){return eS},reduceRight:function(){return eI},reduceRightWithIndex:function(){return k},reduceWithIndex:function(){return E},separate:function(){return ew},sequence:function(){return N},singleton:function(){return W},size:function(){return d},some:function(){return H},toEntries:function(){return K},toReadonlyArray:function(){return y},toRecord:function(){return p},toUnfoldable:function(){return g},traverse:function(){return D},traverseWithIndex:function(){return F},union:function(){return $},updateAt:function(){return T},upsertAt:function(){return _},wilt:function(){return U},wither:function(){return L}});var r=n(65191),i=n(42275),o=n(67560),u=n(97963),a=n(34219),c=n(57029),f=n(76511),l=function(e){return Object.assign({},e)},p=function(e){return Object.assign({},e)},d=function(e){return Object.keys(e).length},s=function(e){for(var t in e)if(u.e$.call(e,t))return!1;return!0},m=function(e){return function(t){return Object.keys(t).sort(e.compare)}},h=m(c.Ord);function v(e){if("function"==typeof e)return v(c.Ord)(e);var t=m(e);return function(e){return function(n){for(var r=[],i=0,o=t(n);i<o.length;i++){var u=o[i];r.push(e(u,n[u]))}return r}}}var y=v(c.Ord)(function(e,t){return[e,t]});function g(e){return function(t){var n=y(t),r=n.length;return e.unfold(0,function(e){return e<r?u.G([n[e],e+1]):u.YP})}}var _=function(e,t){return function(n){if(u.e$.call(n,e)&&n[e]===t)return n;var r=Object.assign({},n);return r[e]=t,r}},b=function(e,t){return u.e$.call(t,e)};function S(e){return function(t){if(!u.e$.call(t,e))return t;var n=Object.assign({},t);return delete n[e],n}}var T=function(e,t){return function(n){if(!b(e,n))return u.YP;if(n[e]===t)return u.G(n);var r=Object.assign({},n);return r[e]=t,u.G(r)}},I=function(e,t){return function(n){if(!b(e,n))return u.YP;var r=t(n[e]);if(r===n[e])return u.G(n);var i=Object.assign({},n);return i[e]=r,u.G(i)}};function R(e){var t=S(e);return function(n){var r=O(e,n);return u.Wi(r)?u.YP:u.G([r.value,t(n)])}}function w(e){return function(t,n){if(void 0===n){var r=w(e);return function(e){return r(e,t)}}for(var i in t)if(!u.e$.call(n,i)||!e.equals(t[i],n[i]))return!1;return!0}}function O(e,t){return void 0===t?function(t){return O(e,t)}:u.e$.call(t,e)?u.G(t[e]):u.YP}var x={};function C(e){return function(t){var n={};for(var r in t)u.e$.call(t,r)&&(n[r]=e(r,t[r]));return n}}function M(e){return C(function(t,n){return e(n)})}function E(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(2===e.length)return E(c.Ord).apply(void 0,e);var n=m(e[0]);return function(e,t){return function(r){for(var i=e,o=n(r),u=o.length,a=0;a<u;a++){var c=o[a];i=t(c,i,r[c])}return i}}}function P(e){if("compare"in e){var t=m(e);return function(e){return function(n){return function(r){for(var i=e.empty,o=t(r),u=o.length,a=0;a<u;a++){var c=o[a];i=e.concat(i,n(c,r[c]))}return i}}}}return P(c.Ord)(e)}function k(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(2===e.length)return k(c.Ord).apply(void 0,e);var n=m(e[0]);return function(e,t){return function(r){for(var i=e,o=n(r),u=o.length,a=u-1;a>=0;a--){var c=o[a];i=t(c,r[c],i)}return i}}}var W=function(e,t){var n;return(n={})[e]=t,n};function F(e){var t=ev(c.Ord)(e);return function(e){return function(n){return t(n,e)}}}function D(e){var t=em(c.Ord)(e);return function(e){return function(n){return t(n,e)}}}function N(e){return eh(c.Ord)(e)}var L=function(e){var t=D(e);return function(n){return function(r){return e.map((0,i.pipe)(r,t(n)),eR)}}},U=function(e){var t=D(e);return function(n){return function(r){return e.map((0,i.pipe)(r,t(n)),ew)}}};function A(e){return function(t){var n={},r={};for(var i in t)if(u.e$.call(t,i)){var o=e(i,t[i]);switch(o._tag){case"Left":n[i]=o.left;break;case"Right":r[i]=o.right}}return(0,a.separated)(n,r)}}function j(e){return function(t){var n={},r={};for(var i in t)if(u.e$.call(t,i)){var o=t[i];e(i,o)?r[i]=o:n[i]=o}return(0,a.separated)(n,r)}}function q(e){return function(t){var n={};for(var r in t)if(u.e$.call(t,r)){var i=e(r,t[r]);u.pC(i)&&(n[r]=i.value)}return n}}function G(e){return function(t){var n={},r=!1;for(var i in t)if(u.e$.call(t,i)){var o=t[i];e(i,o)?n[i]=o:r=!0}return r?n:t}}function Y(e,t){var n=B(e,t);return function(e){return n(e,i.identity)}}function B(e,t){return function(n,r){return t.reduce(n,{},function(t,n){var i=r(n),o=i[0],a=i[1];return t[o]=u.e$.call(t,o)?e.concat(t[o],a):a,t})}}var K=y,V=function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];t[r[0]]=r[1]}return t};function z(e){return function(t){for(var n in t)if(!e(t[n]))return!1;return!0}}function H(e){return function(t){for(var n in t)if(e(t[n]))return!0;return!1}}var $=function(e){return function(t){return function(n){if(s(n))return t;if(s(t))return n;var r={};for(var i in n)b(i,t)?r[i]=e.concat(n[i],t[i]):r[i]=n[i];for(var i in t)b(i,r)||(r[i]=t[i]);return r}}},X=function(e){return function(t){return function(n){if(s(n)||s(t))return x;var r={};for(var i in n)b(i,t)&&(r[i]=e.concat(n[i],t[i]));return r}}},J=function(e){return function(t){if(s(t))return e;if(s(e))return t;var n={};for(var r in t)b(r,e)||(n[r]=t[r]);for(var r in e)b(r,t)||(n[r]=e[r]);return n}},Z=function(e,t){return(0,i.pipe)(e,M(t))},Q=function(e,t){return(0,i.pipe)(e,C(t))},ee=function(e){var t=eS(e);return function(e,n,r){return(0,i.pipe)(e,t(n,r))}},et=function(e){return function(t){var n=eT(e)(t);return function(e,t){return(0,i.pipe)(e,n(t))}}},en=function(e){var t=eI(e);return function(e,n,r){return(0,i.pipe)(e,t(n,r))}},er=function(e,t){return(0,i.pipe)(e,ey(t))},ei=function(e,t){return(0,i.pipe)(e,eg(t))},eo=function(e,t){return(0,i.pipe)(e,e_(t))},eu=function(e,t){return(0,i.pipe)(e,eb(t))},ea=function(e){var t=E(e);return function(e,n,r){return(0,i.pipe)(e,t(n,r))}},ec=function(e){var t=P(e);return function(e){var n=t(e);return function(e,t){return(0,i.pipe)(e,n(t))}}},ef=function(e){var t=k(e);return function(e,n,r){return(0,i.pipe)(e,t(n,r))}},el=function(e,t){return(0,i.pipe)(e,A(t))},ep=function(e,t){return(0,i.pipe)(e,j(t))},ed=function(e,t){return(0,i.pipe)(e,q(t))},es=function(e,t){return(0,i.pipe)(e,G(t))},em=function(e){var t=ev(e);return function(e){var n=t(e);return function(e,t){return n(e,(0,i.flow)(i.SK,t))}}},eh=function(e){var t=em(e);return function(e){var n=t(e);return function(e){return n(e,i.identity)}}},ev=function(e){return function(t){var n=m(e);return function(e,r){var i=n(e);if(0===i.length)return t.of(x);for(var o=t.of({}),u=function(n){o=t.ap(t.map(o,function(e){return function(t){var r;return Object.assign({},e,((r={})[n]=t,r))}}),r(n,e[n]))},a=0;a<i.length;a++)u(i[a]);return o}}},ey=function(e){return G(function(t,n){return e(n)})},eg=function(e){return q(function(t,n){return e(n)})},e_=function(e){return j(function(t,n){return e(n)})},eb=function(e){return A(function(t,n){return e(n)})};function eS(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=E(e[0]);return function(e,t){return n(e,function(e,n,r){return t(n,r)})}}return eS(c.Ord).apply(void 0,e)}function eT(e){if("compare"in e){var t=P(e);return function(e){var n=t(e);return function(e){return n(function(t,n){return e(n)})}}}return eT(c.Ord)(e)}function eI(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=k(e[0]);return function(e,t){return n(e,function(e,n,r){return t(n,r)})}}return eI(c.Ord).apply(void 0,e)}var eR=function(e){var t={};for(var n in e)if(u.e$.call(e,n)){var r=e[n];u.pC(r)&&(t[n]=r.value)}return t},ew=function(e){var t={},n={};for(var r in e)if(u.e$.call(e,r)){var i=e[r];u.nM(i)?t[r]=i.left:n[r]=i.right}return(0,a.separated)(t,n)},eO="ReadonlyRecord";function ex(e){var t=w(e);return(0,r.fromEquals)(function(e,n){return t(e)(n)&&t(n)(e)})}function eC(e){return{concat:function(t,n){if(s(t))return n;if(s(n))return t;var r=Object.assign({},t);for(var i in n)u.e$.call(n,i)&&(r[i]=u.e$.call(t,i)?e.concat(t[i],n[i]):n[i]);return r},empty:x}}var eM={URI:eO,map:Z},eE=(0,o.flap)(eM),eP={URI:eO,map:Z,mapWithIndex:Q},ek=function(e){return{URI:eO,reduce:ee(e),foldMap:et(e),reduceRight:en(e)}},eW=function(e){return{URI:eO,reduce:ee(e),foldMap:et(e),reduceRight:en(e),reduceWithIndex:ea(e),foldMapWithIndex:ec(e),reduceRightWithIndex:ef(e)}},eF={URI:eO,compact:eR,separate:ew},eD={URI:eO,map:Z,compact:eR,separate:ew,filter:er,filterMap:ei,partition:eo,partitionMap:eu},eN={URI:eO,map:Z,mapWithIndex:Q,compact:eR,separate:ew,filter:er,filterMap:ei,partition:eo,partitionMap:eu,filterMapWithIndex:ed,filterWithIndex:es,partitionMapWithIndex:el,partitionWithIndex:ep},eL=function(e){return{URI:eO,map:Z,reduce:ee(e),foldMap:et(e),reduceRight:en(e),traverse:em(e),sequence:eh(e)}},eU=function(e){return{URI:eO,map:Z,mapWithIndex:Q,reduce:ee(e),foldMap:et(e),reduceRight:en(e),reduceWithIndex:ea(e),foldMapWithIndex:ec(e),reduceRightWithIndex:ef(e),traverse:em(e),sequence:eh(e),traverseWithIndex:ev(e)}},eA=function(e){var t=eL(e);return{URI:eO,map:Z,reduce:ee(e),foldMap:et(e),reduceRight:en(e),traverse:t.traverse,sequence:t.sequence,compact:eR,separate:ew,filter:er,filterMap:ei,partition:eo,partitionMap:eu,wither:(0,f.witherDefault)(t,eF),wilt:(0,f.wiltDefault)(t,eF)}},ej=function(e){var t=$(e);return{concat:function(e,n){return t(n)(e)}}},eq=function(e){return{concat:ej(e).concat,empty:x}},eG=function(e){var t=X(e);return{concat:function(e,n){return t(n)(e)}}},eY=function(){return{concat:function(e,t){return J(t)(e)}}},eB={URI:eO,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord)},eK={URI:eO,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord),reduceWithIndex:ea(c.Ord),foldMapWithIndex:ec(c.Ord),reduceRightWithIndex:ef(c.Ord)},eV={URI:eO,map:Z,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord),traverse:em(c.Ord),sequence:N},ez={URI:eO,map:Z,mapWithIndex:Q,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord),reduceWithIndex:ea(c.Ord),foldMapWithIndex:ec(c.Ord),reduceRightWithIndex:ef(c.Ord),traverse:em(c.Ord),sequence:N,traverseWithIndex:ev(c.Ord)},eH=(0,f.witherDefault)(eV,eF),e$=(0,f.wiltDefault)(eV,eF),eX={URI:eO,map:Z,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord),traverse:em(c.Ord),sequence:N,compact:eR,separate:ew,filter:er,filterMap:ei,partition:eo,partitionMap:eu,wither:eH,wilt:e$},eJ=_;function eZ(e,t){return u.e$.call(void 0===t?this:t,e)}var eQ={URI:eO,map:Z,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord),traverse:em(c.Ord),sequence:N,compact:eR,separate:ew,filter:er,filterMap:ei,partition:eo,partitionMap:eu,mapWithIndex:Q,reduceWithIndex:ea(c.Ord),foldMapWithIndex:ec(c.Ord),reduceRightWithIndex:ef(c.Ord),filterMapWithIndex:ed,filterWithIndex:es,partitionMapWithIndex:el,partitionWithIndex:ep,traverseWithIndex:ev(c.Ord),wither:eH,wilt:e$}},99156:function(e,t,n){n.r(t),n.d(t,{URI:function(){return N},chain:function(){return d},compact:function(){return w},difference:function(){return g},elem:function(){return F},empty:function(){return C},every:function(){return k},filter:function(){return s},filterMap:function(){return x},foldMap:function(){return b},fromArray:function(){return Y},fromReadonlyArray:function(){return f},fromSet:function(){return a},getDifferenceMagma:function(){return G},getEq:function(){return U},getIntersectionSemigroup:function(){return q},getShow:function(){return L},getUnionMonoid:function(){return j},getUnionSemigroup:function(){return A},insert:function(){return T},intersection:function(){return v},isEmpty:function(){return M},isSubset:function(){return W},map:function(){return p},partition:function(){return m},partitionMap:function(){return y},reduce:function(){return _},reduceRight:function(){return S},remove:function(){return I},separate:function(){return O},singleton:function(){return c},size:function(){return E},some:function(){return P},toReadonlyArray:function(){return D},toSet:function(){return l},toggle:function(){return R},union:function(){return h}});var r=n(65191),i=n(42275),o=n(88491),u=n(34219),a=function(e){return new Set(e)},c=function(e){return new Set([e])},f=function(e){return function(t){for(var n=t.length,r=new Set,i=F(e),o=0;o<n;o++){var u=t[o];i(u,r)||r.add(u)}return r}};function l(e){return new Set(e)}function p(e){var t=F(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);t(i,r)||r.add(i)}),r}}}function d(e){var t=F(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){e(n).forEach(function(e){t(e,r)||r.add(e)})}),r}}}function s(e){return function(t){for(var n,r=t.values(),i=new Set;!(n=r.next()).done;){var o=n.value;e(o)&&i.add(o)}return i}}function m(e){return function(t){for(var n,r=t.values(),i=new Set,o=new Set;!(n=r.next()).done;){var a=n.value;e(a)?i.add(a):o.add(a)}return(0,u.separated)(o,i)}}function h(e){var t=F(e);return function(n,r){if(void 0===r){var i=h(e);return function(e){return i(n,e)}}if(M(n))return r;if(M(r))return n;var o=new Set(n);return r.forEach(function(e){t(e,o)||o.add(e)}),o}}function v(e){var t=F(e);return function(n,r){if(void 0===r){var i=v(e);return function(e){return i(e,n)}}if(M(n)||M(r))return C;var o=new Set;return n.forEach(function(e){t(e,r)&&o.add(e)}),o}}function y(e,t){return function(n){return function(r){for(var i,o=r.values(),a=new Set,c=new Set,f=F(e),l=F(t);!(i=o.next()).done;){var p=n(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 g(e){var t=F(e);return function(n,r){if(void 0===r){var i=g(e);return function(e){return i(e,n)}}return s(function(e){return!t(e,r)})(n)}}function _(e){var t=D(e);return function(e,n){return function(r){return t(r).reduce(n,e)}}}function b(e,t){var n=D(e);return function(e){return function(r){return n(r).reduce(function(n,r){return t.concat(n,e(r))},t.empty)}}}var S=function(e){var t=D(e);return function(e,n){return function(r){return t(r).reduceRight(function(e,t){return n(t,e)},e)}}};function T(e){var t=F(e);return function(e){return function(n){if(t(e)(n))return n;var r=new Set(n);return r.add(e),r}}}var I=function(e){return function(t){return function(n){return s(function(n){return!e.equals(t,n)})(n)}}},R=function(e){var t=F(e),n=I(e),r=T(e);return function(e){return function(i){return(t(e,i)?n:r)(e)(i)}}},w=function(e){return x(e)(i.identity)};function O(e,t){return function(n){var r=F(e),i=F(t),o=new Set,a=new Set;return n.forEach(function(e){switch(e._tag){case"Left":r(e.left,o)||o.add(e.left);break;case"Right":i(e.right,a)||a.add(e.right)}}),(0,u.separated)(o,a)}}function x(e){var t=F(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);"Some"!==i._tag||t(i.value,r)||r.add(i.value)}),r}}}var C=new Set,M=function(e){return 0===e.size},E=function(e){return e.size},P=function(e){return function(t){for(var n,r=t.values(),i=!1;!i&&!(n=r.next()).done;)i=e(n.value);return i}};function k(e){return(0,o.not)(P((0,o.not)(e)))}function W(e){var t=F(e);return function(n,r){if(void 0===r){var i=W(e);return function(e){return i(e,n)}}return k(function(e){return t(e,r)})(n)}}function F(e){return function(t,n){if(void 0===n){var r,i=F(e);return function(e){return i(t,e)}}for(var o=n.values(),u=!1;!u&&!(r=o.next()).done;)u=e.equals(t,r.value);return u}}var D=function(e){return function(t){var n=[];return t.forEach(function(e){return n.push(e)}),n.sort(e.compare)}},N="ReadonlySet";function L(e){return{show:function(t){var n=[];return t.forEach(function(t){n.push(e.show(t))}),"new Set([".concat(n.sort().join(", "),"])")}}}function U(e){var t=W(e);return(0,r.fromEquals)(function(e,n){return t(e,n)&&t(n,e)})}var A=function(e){return{concat:h(e)}},j=function(e){return{concat:A(e).concat,empty:C}},q=function(e){return{concat:v(e)}},G=function(e){return{concat:g(e)}},Y=f},3291:function(e,t,n){n.r(t),n.d(t,{concatAll:function(){return v},constant:function(){return f},first:function(){return m},fold:function(){return x},getDualSemigroup:function(){return I},getFirstSemigroup:function(){return b},getFunctionSemigroup:function(){return E},getIntercalateSemigroup:function(){return O},getJoinSemigroup:function(){return R},getLastSemigroup:function(){return _},getMeetSemigroup:function(){return w},getObjectSemigroup:function(){return g},getStructSemigroup:function(){return T},getTupleSemigroup:function(){return S},intercalate:function(){return s},last:function(){return h},max:function(){return c},min:function(){return a},reverse:function(){return l},semigroupAll:function(){return C},semigroupAny:function(){return M},semigroupProduct:function(){return W},semigroupString:function(){return P},semigroupSum:function(){return k},semigroupVoid:function(){return y},struct:function(){return p},tuple:function(){return d}});var r=n(42275),i=n(97963),o=n(76113),u=n(5586),a=function(e){return{concat:u.min(e)}},c=function(e){return{concat:u.max(e)}},f=function(e){return{concat:function(){return e}}},l=o.reverse,p=function(e){return{concat:function(t,n){var r={};for(var o in e)i.e$.call(e,o)&&(r[o]=e[o].concat(t[o],n[o]));return r}}},d=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{concat:function(t,n){return e.map(function(e,r){return e.concat(t[r],n[r])})}}},s=function(e){return function(t){return{concat:function(n,r){return t.concat(n,t.concat(e,r))}}}},m=function(){return{concat:r.identity}},h=function(){return{concat:function(e,t){return t}}},v=o.concatAll,y=f(void 0),g=function(){return{concat:function(e,t){return Object.assign({},e,t)}}},_=h,b=m,S=d,T=p,I=l,R=c,w=a,O=s;function x(e){var t=v(e);return function(e,n){return void 0===n?t(e):t(e)(n)}}var C={concat:function(e,t){return e&&t}},M={concat:function(e,t){return e||t}},E=r.getSemigroup,P={concat:function(e,t){return e+t}},k={concat:function(e,t){return e+t}},W={concat:function(e,t){return e*t}}},34219:function(e,t,n){n.r(t),n.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 u},mapLeft:function(){return a},right:function(){return m},separated:function(){return o}});var r=n(42275),i=n(67560),o=function(e,t){return{left:e,right:t}},u=function(e){return function(t){return o(s(t),e(m(t)))}},a=function(e){return function(t){return o(e(s(t)),m(t))}},c=function(e,t){return function(n){return o(e(s(n)),t(m(n)))}},f="Separated",l={URI:f,mapLeft:function(e,t){return(0,r.pipe)(e,a(t))},bimap:function(e,t,n){return(0,r.pipe)(e,c(t,n))}},p={URI:f,map:function(e,t){return(0,r.pipe)(e,u(t))}},d=(0,i.flap)(p),s=function(e){return e.left},m=function(e){return e.right}},1214:function(e,t,n){n.r(t),n.d(t,{chain:function(){return f},compact:function(){return C},difference:function(){return h},elem:function(){return L},empty:function(){return P},every:function(){return D},filter:function(){return l},filterMap:function(){return E},foldMap:function(){return S},fromArray:function(){return x},getDifferenceMagma:function(){return _},getEq:function(){return a},getIntersectionSemigroup:function(){return g},getShow:function(){return u},getUnionMonoid:function(){return y},getUnionSemigroup:function(){return v},insert:function(){return R},intersection:function(){return s},isEmpty:function(){return k},isSubset:function(){return N},map:function(){return c},partition:function(){return p},partitionMap:function(){return m},reduce:function(){return b},reduceRight:function(){return T},remove:function(){return w},separate:function(){return M},singleton:function(){return I},size:function(){return W},some:function(){return F},subset:function(){return A},toArray:function(){return U},toggle:function(){return O},union:function(){return d}});var r=n(42275),i=n(99156),o=n(34219),u=i.getShow,a=i.getEq;function c(e){var t=L(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);t(i,r)||r.add(i)}),r}}}function f(e){var t=L(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){e(n).forEach(function(e){t(e,r)||r.add(e)})}),r}}}function l(e){return function(t){for(var n,r=t.values(),i=new Set;!(n=r.next()).done;){var o=n.value;e(o)&&i.add(o)}return i}}function p(e){return function(t){for(var n,r=t.values(),i=new Set,u=new Set;!(n=r.next()).done;){var a=n.value;e(a)?i.add(a):u.add(a)}return(0,o.separated)(u,i)}}function d(e){var t=L(e);return function(n,r){if(void 0===r){var i=d(e);return function(e){return i(n,e)}}if(k(n))return r;if(k(r))return n;var o=new Set(n);return r.forEach(function(e){t(e,o)||o.add(e)}),o}}function s(e){var t=L(e);return function(n,r){if(void 0===r){var i=s(e);return function(e){return i(e,n)}}if(k(n)||k(r))return new Set;var o=new Set;return n.forEach(function(e){t(e,r)&&o.add(e)}),o}}function m(e,t){return function(n){return function(r){for(var i,u=r.values(),a=new Set,c=new Set,f=L(e),l=L(t);!(i=u.next()).done;){var p=n(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 h(e){var t=L(e);return function(n,r){if(void 0===r){var i=h(e);return function(e){return i(e,n)}}return l(function(e){return!t(e,r)})(n)}}var v=function(e){return{concat:d(e)}},y=function(e){return{concat:v(e).concat,empty:new Set}},g=function(e){return{concat:s(e)}},_=function(e){return{concat:h(e)}},b=i.reduce,S=i.foldMap,T=i.reduceRight,I=function(e){return new Set([e])};function R(e){var t=L(e);return function(e){return function(n){if(t(e)(n))return n;var r=new Set(n);return r.add(e),r}}}var w=function(e){return function(t){return function(n){return l(function(n){return!e.equals(t,n)})(n)}}},O=function(e){var t=L(e),n=w(e),r=R(e);return function(e){return function(i){return(t(e,i)?n:r)(e)(i)}}},x=function(e){return function(t){for(var n=t.length,r=new Set,i=L(e),o=0;o<n;o++){var u=t[o];i(u,r)||r.add(u)}return r}},C=function(e){return E(e)(r.identity)};function M(e,t){return function(n){var r=L(e),i=L(t),u=new Set,a=new Set;return n.forEach(function(e){switch(e._tag){case"Left":r(e.left,u)||u.add(e.left);break;case"Right":i(e.right,a)||a.add(e.right)}}),(0,o.separated)(u,a)}}function E(e){var t=L(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);"Some"!==i._tag||t(i.value,r)||r.add(i.value)}),r}}}var P=new Set,k=function(e){return 0===e.size},W=function(e){return e.size},F=i.some,D=i.every,N=i.isSubset,L=i.elem,U=function(e){return function(t){var n=[];return t.forEach(function(e){return n.push(e)}),n.sort(e.compare)}},A=i.isSubset},76511:function(e,t,n){n.r(t),n.d(t,{filterE:function(){return u},wiltDefault:function(){return i},witherDefault:function(){return o}});var r=n(97963);function i(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.separate)}}}function o(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.compact)}}}function u(e){return function(t){var n=e.wither(t);return function(e){return function(i){return n(i,function(n){return t.map(e(n),function(e){return e?r.G(n):r.YP})})}}}}},28957:function(e,t,n){function r(e,t){return function(n){return n?t.of(void 0):e.zero()}}n.r(t),n.d(t,{guard:function(){return r}})},42275:function(e,t,n){n.r(t),n.d(t,{SK:function(){return C},absurd:function(){return I},apply:function(){return f},constFalse:function(){return m},constNull:function(){return h},constTrue:function(){return s},constUndefined:function(){return v},constVoid:function(){return y},constant:function(){return d},decrement:function(){return T},dual:function(){return P},flip:function(){return g},flow:function(){return _},getBooleanAlgebra:function(){return i},getEndomorphismMonoid:function(){return E},getMonoid:function(){return u},getRing:function(){return c},getSemigroup:function(){return o},getSemiring:function(){return a},hole:function(){return x},identity:function(){return l},increment:function(){return S},not:function(){return M},pipe:function(){return O},tuple:function(){return b},tupled:function(){return R},unsafeCoerce:function(){return p},untupled:function(){return w}});var r=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},i=function(e){return function(){return{meet:function(t,n){return function(r){return e.meet(t(r),n(r))}},join:function(t,n){return function(r){return e.join(t(r),n(r))}},zero:function(){return e.zero},one:function(){return e.one},implies:function(t,n){return function(r){return e.implies(t(r),n(r))}},not:function(t){return function(n){return e.not(t(n))}}}}},o=function(e){return function(){return{concat:function(t,n){return function(r){return e.concat(t(r),n(r))}}}}},u=function(e){var t=o(e);return function(){return{concat:t().concat,empty:function(){return e.empty}}}},a=function(e){return{add:function(t,n){return function(r){return e.add(t(r),n(r))}},zero:function(){return e.zero},mul:function(t,n){return function(r){return e.mul(t(r),n(r))}},one:function(){return e.one}}},c=function(e){var t=a(e);return{add:t.add,mul:t.mul,one:t.one,zero:t.zero,sub:function(t,n){return function(r){return e.sub(t(r),n(r))}}}},f=function(e){return function(t){return t(e)}};function l(e){return e}var p=l;function d(e){return function(){return e}}var s=d(!0),m=d(!1),h=d(null),v=d(void 0),y=v;function g(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length>1?e(t[1],t[0]):function(n){return e(n)(t[0])}}}function _(e,t,n,r,i,o,u,a,c){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return o(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return u(o(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return a(u(o(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return c(a(u(o(i(r(n(t(e.apply(this,arguments)))))))))}}}function b(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e}function S(e){return e+1}function T(e){return e-1}function I(e){throw Error("Called `absurd` function which should be uncallable")}function R(e){return function(t){return e.apply(void 0,t)}}function w(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(t)}}function O(e,t,n,r,i,o,u,a,c){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return o(i(r(n(t(e)))));case 7:return u(o(i(r(n(t(e))))));case 8:return a(u(o(i(r(n(t(e)))))));case 9:return c(a(u(o(i(r(n(t(e))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}}var x=I,C=function(e,t){return t};function M(e){return function(t){return!e(t)}}var E=function(){return{concat:function(e,t){return _(e,t)},empty:l}},P=function(e,t){var n="number"==typeof e?function(t){return t.length>=e}:e;return function(){var e=Array.from(arguments);return n(arguments)?t.apply(this,e):function(n){return t.apply(void 0,r([n],e,!1))}}}},9554:function(e,t,n){n.r(t),n.d(t,{alt:function(){return r},alternative:function(){return i},applicative:function(){return eG},apply:function(){return eA},array:function(){return eY},bifunctor:function(){return o},boolean:function(){return u},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 m},chain:function(){return to},chainRec:function(){return tu},choice:function(){return h},comonad:function(){return v},compactable:function(){return y},console:function(){return g},const:function(){return tS},contravariant:function(){return _},date:function(){return b},distributiveLattice:function(){return f},either:function(){return tE},eitherT:function(){return S},endomorphism:function(){return t7},eq:function(){return t3},extend:function(){return T},field:function(){return I},filterable:function(){return R},filterableWithIndex:function(){return w},foldable:function(){return O},foldableWithIndex:function(){return x},fromEither:function(){return n_},fromIO:function(){return C},fromReader:function(){return E},fromState:function(){return k},fromTask:function(){return W},fromThese:function(){return F},function:function(){return e8},functor:function(){return tp},functorWithIndex:function(){return D},group:function(){return N},heytingAlgebra:function(){return L},hkt:function(){return U},identity:function(){return A},invariant:function(){return j},io:function(){return q},ioEither:function(){return G},ioOption:function(){return B},ioRef:function(){return K},joinSemilattice:function(){return V},json:function(){return z},lattice:function(){return H},magma:function(){return fI},map:function(){return fR},meetSemilattice:function(){return $},monad:function(){return X},monadIO:function(){return J},monadTask:function(){return Z},monadThrow:function(){return Q},monoid:function(){return fw},naturalTransformation:function(){return ee},nonEmptyArray:function(){return fO},number:function(){return tT},option:function(){return td},optionT:function(){return Y},ord:function(){return e6},ordering:function(){return et},pipeable:function(){return fU},pointed:function(){return en},predicate:function(){return t6},profunctor:function(){return er},random:function(){return ei},reader:function(){return M},readerEither:function(){return eo},readerIO:function(){return ea},readerT:function(){return eu},readerTask:function(){return ef},readerTaskEither:function(){return ep},readonlyArray:function(){return bR},readonlyMap:function(){return bw},readonlyNonEmptyArray:function(){return bO},readonlyRecord:function(){return bx},readonlySet:function(){return bC},readonlyTuple:function(){return ed},record:function(){return es},refinement:function(){return em},ring:function(){return eh},semigroup:function(){return Su},semigroupoid:function(){return ev},semiring:function(){return ey},separated:function(){return ts},set:function(){return T8},show:function(){return eg},state:function(){return P},stateReaderTaskEither:function(){return eb},stateT:function(){return e_},store:function(){return eS},string:function(){return Sa},strong:function(){return eT},struct:function(){return eI},task:function(){return ec},taskEither:function(){return el},taskOption:function(){return eR},taskThese:function(){return ex},these:function(){return ew},theseT:function(){return eO},traced:function(){return eC},traversable:function(){return eM},traversableWithIndex:function(){return eE},tree:function(){return eP},tuple:function(){return ek},unfoldable:function(){return eW},validationT:function(){return eF},void:function(){return eD},witherable:function(){return Sc},writer:function(){return eN},writerT:function(){return eL},zero:function(){return a7}});var r={};n.r(r),n.d(r,{altAll:function(){return eU}});var i={};n.r(i),n.d(i,{altAll:function(){return ej},getAlternativeMonoid:function(){return eq}});var o={};n.r(o);var u={};n.r(u),n.d(u,{BooleanAlgebra:function(){return eX},Eq:function(){return e$},MonoidAll:function(){return eQ},MonoidAny:function(){return e0},Ord:function(){return e1},SemigroupAll:function(){return eJ},SemigroupAny:function(){return eZ},Show:function(){return e2},fold:function(){return eH},foldW:function(){return eV},isBoolean:function(){return eB},match:function(){return ez},matchW:function(){return eK}});var a={};n.r(a),n.d(a,{booleanAlgebraBoolean:function(){return e4},booleanAlgebraVoid:function(){return e3},getDualBooleanAlgebra:function(){return e5},getFunctionBooleanAlgebra:function(){return e9},reverse:function(){return e7}});var c={};n.r(c),n.d(c,{boundedNumber:function(){return tn},clamp:function(){return te},reverse:function(){return tt}});var f={};n.r(f),n.d(f,{getMinMaxDistributiveLattice:function(){return tr}});var l={};n.r(l),n.d(l,{getMinMaxBoundedDistributiveLattice:function(){return ti}});var p={};n.r(p);var d={};n.r(d);var s={};n.r(s);var m={};n.r(m);var h={};n.r(h),n.d(h,{fanIn:function(){return tc},fanin:function(){return tl},split:function(){return ta},splitChoice:function(){return tf}});var v={};n.r(v);var y={};n.r(y),n.d(y,{compact:function(){return tm},getCompactableComposition:function(){return tv},separate:function(){return th}});var g={};n.r(g),n.d(g,{error:function(){return t_},info:function(){return tb},log:function(){return ty},warn:function(){return tg}});var _={};n.r(_);var b={};n.r(b),n.d(b,{Eq:function(){return tI},Ord:function(){return tx},create:function(){return tC},eqDate:function(){return tR},eqMonth:function(){return tw},eqYear:function(){return tO},now:function(){return tM}});var S={};n.r(S),n.d(S,{alt:function(){return tG},altValidation:function(){return tz},ap:function(){return tA},bimap:function(){return tY},chain:function(){return tj},chainNullableK:function(){return tL},flatMap:function(){return tq},fromNullable:function(){return tD},fromNullableK:function(){return tN},getEitherM:function(){return t8},getOrElse:function(){return tX},left:function(){return tk},leftF:function(){return tF},map:function(){return tU},mapBoth:function(){return tB},mapError:function(){return tV},mapLeft:function(){return tK},match:function(){return tH},matchE:function(){return t$},orElse:function(){return tJ},orElseFirst:function(){return tZ},orLeft:function(){return t0},right:function(){return tP},rightF:function(){return tW},swap:function(){return t1},tapError:function(){return tQ},toUnion:function(){return t2}});var T={};n.r(T);var I={};n.r(I),n.d(I,{fieldNumber:function(){return t9},gcd:function(){return t5},lcm:function(){return t4}});var R={};n.r(R),n.d(R,{filter:function(){return ne},filterMap:function(){return nt},getFilterableComposition:function(){return ni},partition:function(){return nn},partitionMap:function(){return nr}});var w={};n.r(w);var O={};n.r(O),n.d(O,{foldM:function(){return nd},foldMap:function(){return nu},getFoldableComposition:function(){return nm},intercalate:function(){return nf},reduce:function(){return no},reduceM:function(){return nc},reduceRight:function(){return na},toArray:function(){return ns},toReadonlyArray:function(){return nl},traverse_:function(){return np}});var x={};n.r(x),n.d(x,{foldMapWithIndex:function(){return nv},getFoldableWithIndexComposition:function(){return ng},reduceRightWithIndex:function(){return ny},reduceWithIndex:function(){return nh}});var C={};n.r(C),n.d(C,{chainFirstIOK:function(){return nT},chainIOK:function(){return nS},fromIOK:function(){return nb},tapIO:function(){return nI}});var M={};n.r(M),n.d(M,{ApT:function(){return rc},Applicative:function(){return n8},Apply:function(){return nZ},Category:function(){return n9},Chain:function(){return n7},Choice:function(){return re},Do:function(){return ro},Functor:function(){return n$},Monad:function(){return n3},Pointed:function(){return nJ},Profunctor:function(){return n4},Strong:function(){return n6},URI:function(){return nH},ap:function(){return nN},apFirst:function(){return nQ},apFirstW:function(){return n0},apS:function(){return ru},apSW:function(){return ra},apSecond:function(){return n1},apSecondW:function(){return n2},apW:function(){return nD},ask:function(){return nw},asks:function(){return nO},asksReader:function(){return nM},asksReaderW:function(){return nC},bind:function(){return rr},bindTo:function(){return rt},bindW:function(){return ri},chain:function(){return rh},chainFirst:function(){return rv},chainFirstW:function(){return ry},chainW:function(){return rm},compose:function(){return nq},first:function(){return nB},flap:function(){return nX},flatMap:function(){return nU},flatten:function(){return nj},flattenW:function(){return nA},getMonoid:function(){return rb},getSemigroup:function(){return r_},id:function(){return nY},left:function(){return nV},let:function(){return rn},local:function(){return nx},map:function(){return nF},of:function(){return nL},promap:function(){return nG},reader:function(){return rg},right:function(){return nz},second:function(){return nK},sequenceArray:function(){return rs},tap:function(){return n5},traverseArray:function(){return rd},traverseArrayWithIndex:function(){return rp},traverseReadonlyArrayWithIndex:function(){return rl},traverseReadonlyNonEmptyArrayWithIndex:function(){return rf}});var E={};n.r(E),n.d(E,{ask:function(){return rS},asks:function(){return rT},chainFirstReaderK:function(){return rw},chainReaderK:function(){return rR},fromReaderK:function(){return rI},tapReader:function(){return rO}});var P={};n.r(P),n.d(P,{Applicative:function(){return rK},Apply:function(){return rG},Chain:function(){return rV},FromState:function(){return r$},Functor:function(){return rA},Monad:function(){return rz},Pointed:function(){return rq},URI:function(){return rU},ap:function(){return rF},apFirst:function(){return rY},apS:function(){return r1},apSecond:function(){return rB},bind:function(){return r0},bindTo:function(){return rZ},chain:function(){return r4},chainFirst:function(){return r9},evalState:function(){return r6},evaluate:function(){return rX},execState:function(){return ie},execute:function(){return rJ},flap:function(){return rj},flatMap:function(){return rN},flatten:function(){return rL},get:function(){return rx},gets:function(){return rE},let:function(){return rQ},map:function(){return rW},modify:function(){return rM},of:function(){return rD},put:function(){return rC},sequenceArray:function(){return r5},state:function(){return it},tap:function(){return rH},traverseArray:function(){return r3},traverseArrayWithIndex:function(){return r7},traverseReadonlyArrayWithIndex:function(){return r8},traverseReadonlyNonEmptyArrayWithIndex:function(){return r2}});var k={};n.r(k),n.d(k,{chainStateK:function(){return ic},fromStateK:function(){return ia},get:function(){return ir},gets:function(){return iu},modify:function(){return io},put:function(){return ii}});var W={};n.r(W),n.d(W,{chainFirstTaskK:function(){return id},chainTaskK:function(){return ip},fromTaskK:function(){return il},tapTask:function(){return is}});var F={};n.r(F),n.d(F,{fromTheseK:function(){return im}});var D={};n.r(D),n.d(D,{getFunctorWithIndexComposition:function(){return iv},mapWithIndex:function(){return ih}});var N={};n.r(N);var L={};n.r(L);var U={};n.r(U);var A={};n.r(A),n.d(A,{Alt:function(){return i2},Applicative:function(){return iX},Apply:function(){return iz},Chain:function(){return iJ},ChainRec:function(){return i7},Comonad:function(){return i8},Do:function(){return i3},Foldable:function(){return i0},Functor:function(){return iB},Monad:function(){return iZ},Pointed:function(){return iV},Traversable:function(){return i1},URI:function(){return iq},alt:function(){return ij},altW:function(){return iA},ap:function(){return ix},apFirst:function(){return iH},apS:function(){return i6},apSecond:function(){return i$},bind:function(){return i9},bindTo:function(){return i5},chain:function(){return oe},chainFirst:function(){return iQ},duplicate:function(){return ik},extend:function(){return iE},extract:function(){return iP},flap:function(){return iK},flatMap:function(){return iM},flatten:function(){return iW},foldMap:function(){return iD},getEq:function(){return iY},getShow:function(){return iG},identity:function(){return ot},let:function(){return i4},map:function(){return iO},of:function(){return iC},reduce:function(){return iF},reduceRight:function(){return iN},sequence:function(){return iU},traverse:function(){return iL}});var j={};n.r(j);var q={};n.r(q),n.d(q,{ApT:function(){return ok},Applicative:function(){return o_},Apply:function(){return ov},Chain:function(){return ob},ChainRec:function(){return ow},Do:function(){return ox},FromIO:function(){return oO},Functor:function(){return op},Monad:function(){return oS},MonadIO:function(){return oR},Pointed:function(){return oh},URI:function(){return ol},ap:function(){return ou},apFirst:function(){return oy},apS:function(){return oP},apSecond:function(){return og},as:function(){return od},asUnit:function(){return os},bind:function(){return oE},bindTo:function(){return oC},chain:function(){return oU},chainFirst:function(){return oA},flap:function(){return om},flatMap:function(){return oc},flatten:function(){return of},fromIO:function(){return oI},getMonoid:function(){return oG},getSemigroup:function(){return oq},io:function(){return oj},let:function(){return oM},map:function(){return oo},of:function(){return oa},sequenceArray:function(){return oL},tap:function(){return oT},traverseArray:function(){return oN},traverseArrayWithIndex:function(){return oD},traverseReadonlyArrayWithIndex:function(){return oF},traverseReadonlyNonEmptyArrayWithIndex:function(){return oW}});var G={};n.r(G),n.d(G,{Alt:function(){return uK},ApT:function(){return av},Applicative:function(){return ax},ApplicativePar:function(){return uN},ApplicativeSeq:function(){return uL},ApplyPar:function(){return uP},Bifunctor:function(){return uE},Chain:function(){return uU},Do:function(){return af},FromEither:function(){return uj},FromIO:function(){return uq},Functor:function(){return uw},Monad:function(){return uA},MonadIO:function(){return uV},MonadThrow:function(){return uz},Pointed:function(){return uM},URI:function(){return ub},alt:function(){return uy},altW:function(){return ug},ap:function(){return up},apFirst:function(){return uk},apFirstW:function(){return uW},apS:function(){return am},apSW:function(){return ah},apSecond:function(){return uF},apSecondW:function(){return uD},apW:function(){return ud},as:function(){return uO},asUnit:function(){return ux},bimap:function(){return uc},bind:function(){return ad},bindTo:function(){return al},bindW:function(){return as},bracket:function(){return aa},bracketW:function(){return ac},chain:function(){return aC},chainEitherK:function(){return u6},chainEitherKW:function(){return ae},chainFirst:function(){return aE},chainFirstEitherK:function(){return at},chainFirstEitherKW:function(){return an},chainFirstIOK:function(){return u$},chainFirstW:function(){return aP},chainIOK:function(){return u9},chainOptionK:function(){return uZ},chainOptionKW:function(){return uQ},chainW:function(){return aM},filterOrElse:function(){return ai},filterOrElseW:function(){return ao},flap:function(){return uC},flatMap:function(){return um},flatMapEither:function(){return u5},flatMapIO:function(){return u4},flatMapNullable:function(){return u7},flatMapOption:function(){return u3},flatten:function(){return uv},flattenW:function(){return uh},fold:function(){return oZ},foldW:function(){return o0},fromEither:function(){return oz},fromEitherK:function(){return au},fromIO:function(){return oH},fromIOK:function(){return uH},fromOption:function(){return uX},fromOptionK:function(){return uJ},fromPredicate:function(){return ar},getAltIOValidation:function(){return uT},getApplicativeIOValidation:function(){return uS},getApplyMonoid:function(){return aN},getApplySemigroup:function(){return aD},getCompactable:function(){return uI},getFilterable:function(){return uR},getIOValidation:function(){return aU},getOrElse:function(){return o1},getOrElseW:function(){return o2},getSemigroup:function(){return aL},ioEither:function(){return aF},left:function(){return oY},leftIO:function(){return oV},let:function(){return ap},liftNullable:function(){return u1},liftOption:function(){return u2},map:function(){return uu},mapBoth:function(){return ua},mapError:function(){return uf},mapLeft:function(){return ul},match:function(){return o$},matchE:function(){return oJ},matchEW:function(){return oQ},matchW:function(){return oX},of:function(){return us},orElse:function(){return o5},orElseFirst:function(){return ak},orElseFirstIOK:function(){return o6},orElseFirstW:function(){return aW},orElseW:function(){return o4},orLeft:function(){return ue},right:function(){return oB},rightIO:function(){return oK},sequenceArray:function(){return aI},sequenceSeqArray:function(){return aO},swap:function(){return ut},tap:function(){return uG},tapEither:function(){return uY},tapError:function(){return o9},tapIO:function(){return uB},throwError:function(){return u_},toUnion:function(){return o3},traverseArray:function(){return aT},traverseArrayWithIndex:function(){return aS},traverseReadonlyArrayWithIndex:function(){return ag},traverseReadonlyArrayWithIndexSeq:function(){return ab},traverseReadonlyNonEmptyArrayWithIndex:function(){return ay},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return a_},traverseSeqArray:function(){return aw},traverseSeqArrayWithIndex:function(){return aR},tryCatch:function(){return o8},tryCatchK:function(){return o7}});var Y={};n.r(Y),n.d(Y,{alt:function(){return a2},ap:function(){return aQ},chain:function(){return a0},chainNullableK:function(){return aB},chainOptionK:function(){return aV},flatMap:function(){return a1},fromEither:function(){return aH},fromF:function(){return aq},fromNullable:function(){return aG},fromNullableK:function(){return aY},fromOptionK:function(){return aK},fromPredicate:function(){return az},getOptionM:function(){return a8},getOrElse:function(){return aJ},map:function(){return aZ},match:function(){return a$},matchE:function(){return aX},some:function(){return aA},zero:function(){return aj}});var B={};n.r(B),n.d(B,{Alt:function(){return cZ},Alternative:function(){return c1},ApT:function(){return fm},Applicative:function(){return cK},Apply:function(){return cG},Chain:function(){return cV},Compactable:function(){return c7},Do:function(){return ff},Filterable:function(){return c3},FromEither:function(){return cz},FromIO:function(){return cH},Functor:function(){return cL},Monad:function(){return c2},MonadIO:function(){return c8},Pointed:function(){return cq},URI:function(){return cN},Zero:function(){return cQ},alt:function(){return c_},altW:function(){return cb},ap:function(){return ch},apFirst:function(){return cY},apS:function(){return fs},apSecond:function(){return cB},as:function(){return cU},asUnit:function(){return cA},bind:function(){return fd},bindTo:function(){return fl},chain:function(){return fy},chainEitherK:function(){return fu},chainFirst:function(){return fg},chainFirstEitherK:function(){return fa},chainFirstIOK:function(){return fi},chainIOK:function(){return fr},chainNullableK:function(){return cd},chainOptionK:function(){return fc},compact:function(){return cI},filter:function(){return cw},filterMap:function(){return cO},flap:function(){return cj},flatMap:function(){return cy},flatMapEither:function(){return fe},flatMapIO:function(){return c9},flatMapNullable:function(){return ft},flatMapOption:function(){return c6},flatten:function(){return cg},fold:function(){return ci},fromEither:function(){return a9},fromEitherK:function(){return fo},fromIO:function(){return a6},fromIOEither:function(){return ce},fromIOK:function(){return fn},fromNullable:function(){return cl},fromNullableK:function(){return cp},fromOption:function(){return a4},fromOptionK:function(){return cs},fromPredicate:function(){return a5},getOrElse:function(){return cu},getOrElseW:function(){return ca},guard:function(){return c0},let:function(){return fp},map:function(){return cm},match:function(){return ct},matchE:function(){return cr},matchEW:function(){return co},matchW:function(){return cn},none:function(){return cT},of:function(){return cv},partition:function(){return cx},partitionMap:function(){return cC},separate:function(){return cR},some:function(){return a3},tap:function(){return c$},tapEither:function(){return cX},tapIO:function(){return cJ},toNullable:function(){return cf},toUndefined:function(){return cc},traverseReadonlyArrayWithIndex:function(){return fv},traverseReadonlyNonEmptyArrayWithIndex:function(){return fh},zero:function(){return cS}});var K={};n.r(K),n.d(K,{IORef:function(){return f_},newIORef:function(){return fb}});var V={};n.r(V);var z={};n.r(z),n.d(z,{parse:function(){return fS},stringify:function(){return fT}});var H={};n.r(H);var $={};n.r($);var X={};n.r(X);var J={};n.r(J);var Z={};n.r(Z);var Q={};n.r(Q);var ee={};n.r(ee);var et={};n.r(et),n.d(et,{Eq:function(){return fE},Monoid:function(){return fk},Semigroup:function(){return fP},eqOrdering:function(){return fN},invert:function(){return fF},match:function(){return fC},matchW:function(){return fx},monoidOrdering:function(){return fL},reverse:function(){return fM},semigroupOrdering:function(){return fD},sign:function(){return fW}});var en={};n.r(en);var er={};n.r(er);var ei={};n.r(ei),n.d(ei,{random:function(){return fA},randomBool:function(){return fG},randomElem:function(){return fY},randomInt:function(){return fj},randomRange:function(){return fq}});var eo={};n.r(eo),n.d(eo,{Alt:function(){return lB},ApT:function(){return py},Applicative:function(){return lD},Apply:function(){return lE},Bifunctor:function(){return lY},Chain:function(){return lN},Do:function(){return pl},FromEither:function(){return lU},FromReader:function(){return lA},Functor:function(){return lw},Monad:function(){return lL},MonadThrow:function(){return lX},Pointed:function(){return lM},URI:function(){return lb},alt:function(){return ly},altW:function(){return lg},ap:function(){return lp},apFirst:function(){return lP},apFirstW:function(){return lk},apS:function(){return ph},apSW:function(){return pv},apSecond:function(){return lW},apSecondW:function(){return lF},apW:function(){return ld},as:function(){return lO},asUnit:function(){return lx},ask:function(){return lK},asks:function(){return lV},asksReaderEither:function(){return f4},asksReaderEitherW:function(){return f5},bimap:function(){return lc},bind:function(){return ps},bindTo:function(){return pp},bindW:function(){return pm},chain:function(){return pI},chainEitherK:function(){return pe},chainEitherKW:function(){return pt},chainFirst:function(){return pw},chainFirstEitherK:function(){return pn},chainFirstEitherKW:function(){return pr},chainFirstReaderK:function(){return lH},chainFirstReaderKW:function(){return l$},chainFirstW:function(){return pO},chainOptionK:function(){return lQ},chainOptionKW:function(){return l0},chainReaderK:function(){return pi},chainReaderKW:function(){return po},chainW:function(){return pR},filterOrElse:function(){return pa},filterOrElseW:function(){return pc},flap:function(){return lC},flatMap:function(){return lm},flatMapEither:function(){return l9},flatMapNullable:function(){return l5},flatMapOption:function(){return l4},flatMapReader:function(){return l6},flatten:function(){return lv},flattenW:function(){return lh},fold:function(){return fQ},foldW:function(){return f1},fromEither:function(){return fH},fromEitherK:function(){return pf},fromOption:function(){return lJ},fromOptionK:function(){return lZ},fromPredicate:function(){return pu},fromReader:function(){return f$},fromReaderK:function(){return lz},getAltReaderValidation:function(){return lR},getApplicativeReaderValidation:function(){return lI},getApplyMonoid:function(){return pP},getApplySemigroup:function(){return pE},getCompactable:function(){return lS},getFilterable:function(){return lT},getOrElse:function(){return f2},getOrElseW:function(){return f8},getReaderValidation:function(){return pW},getSemigroup:function(){return pk},left:function(){return fB},leftReader:function(){return fz},let:function(){return pd},liftNullable:function(){return l8},liftOption:function(){return l7},local:function(){return f3},map:function(){return lu},mapBoth:function(){return la},mapError:function(){return lf},mapLeft:function(){return ll},match:function(){return fX},matchE:function(){return fZ},matchEW:function(){return f0},matchW:function(){return fJ},of:function(){return ls},orElse:function(){return f9},orElseFirst:function(){return px},orElseFirstW:function(){return pC},orElseW:function(){return f6},orLeft:function(){return lt},readerEither:function(){return pM},right:function(){return fK},rightReader:function(){return fV},sequenceArray:function(){return pT},swap:function(){return ln},tap:function(){return lj},tapEither:function(){return lq},tapError:function(){return le},tapReader:function(){return lG},throwError:function(){return l_},toUnion:function(){return f7},traverseArray:function(){return pS},traverseArrayWithIndex:function(){return pb},traverseReadonlyArrayWithIndex:function(){return p_},traverseReadonlyNonEmptyArrayWithIndex:function(){return pg}});var eu={};n.r(eu),n.d(eu,{ap:function(){return pN},chain:function(){return pL},flatMap:function(){return pU},fromNaturalTransformation:function(){return pj},fromReader:function(){return pA},getReaderM:function(){return pq},map:function(){return pD},of:function(){return pF}});var ea={};n.r(ea),n.d(ea,{ApT:function(){return dP},Applicative:function(){return dt},Apply:function(){return p9},Chain:function(){return dn},Do:function(){return dw},FromIO:function(){return du},FromReader:function(){return da},Functor:function(){return p8},Monad:function(){return dr},MonadIO:function(){return di},Pointed:function(){return p4},URI:function(){return p2},ap:function(){return pX},apFirst:function(){return p6},apS:function(){return dM},apSW:function(){return dE},apSecond:function(){return de},apW:function(){return pJ},as:function(){return p7},asUnit:function(){return p3},ask:function(){return dg},asks:function(){return d_},asksReaderIO:function(){return pV},asksReaderIOW:function(){return pK},bind:function(){return dx},bindTo:function(){return dO},bindW:function(){return dC},chain:function(){return dL},chainFirst:function(){return dA},chainFirstIOK:function(){return dy},chainFirstReaderK:function(){return dI},chainFirstReaderKW:function(){return dR},chainFirstW:function(){return dj},chainIOK:function(){return dv},chainReaderK:function(){return dS},chainReaderKW:function(){return dT},chainW:function(){return dU},flap:function(){return p5},flatMap:function(){return pQ},flatMapIO:function(){return dl},flatMapReader:function(){return dp},flatten:function(){return p1},flattenW:function(){return p0},fromIO:function(){return pY},fromIOK:function(){return dh},fromReader:function(){return pG},fromReaderK:function(){return db},local:function(){return pB},map:function(){return p$},of:function(){return pZ},sequenceArray:function(){return dN},tap:function(){return dd},tapIO:function(){return ds},tapReader:function(){return dm},traverseArray:function(){return dD},traverseArrayWithIndex:function(){return dF},traverseReadonlyArrayWithIndex:function(){return dW},traverseReadonlyNonEmptyArrayWithIndex:function(){return dk}});var ec={};n.r(ec),n.d(ec,{ApT:function(){return sb},ApplicativePar:function(){return d4},ApplicativeSeq:function(){return d6},ApplyPar:function(){return d7},ApplySeq:function(){return d9},Chain:function(){return se},Do:function(){return sh},FromIO:function(){return so},FromTask:function(){return ss},Functor:function(){return dQ},Monad:function(){return st},MonadIO:function(){return sn},MonadTask:function(){return si},Pointed:function(){return d8},URI:function(){return dJ},ap:function(){return dz},apFirst:function(){return d3},apS:function(){return s_},apSecond:function(){return d5},as:function(){return d0},asUnit:function(){return d1},bind:function(){return sg},bindTo:function(){return sv},chain:function(){return sP},chainFirst:function(){return sk},chainFirstIOK:function(){return sd},chainIOK:function(){return sp},delay:function(){return dG},flap:function(){return d2},flatMap:function(){return d$},flatMapIO:function(){return sa},flatten:function(){return dX},fromIO:function(){return dq},fromIOK:function(){return sl},fromTask:function(){return sr},getMonoid:function(){return sN},getRaceMonoid:function(){return dZ},getSemigroup:function(){return sD},let:function(){return sy},map:function(){return dV},never:function(){return sm},of:function(){return dH},sequenceArray:function(){return sx},sequenceSeqArray:function(){return sE},tap:function(){return sc},tapIO:function(){return sf},task:function(){return sW},taskSeq:function(){return sF},traverseArray:function(){return sO},traverseArrayWithIndex:function(){return sw},traverseReadonlyArrayWithIndex:function(){return sT},traverseReadonlyArrayWithIndexSeq:function(){return sR},traverseReadonlyNonEmptyArrayWithIndex:function(){return sS},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return sI},traverseSeqArray:function(){return sM},traverseSeqArrayWithIndex:function(){return sC}});var ef={};n.r(ef),n.d(ef,{ApT:function(){return mK},ApplicativePar:function(){return s6},ApplicativeSeq:function(){return mt},ApplyPar:function(){return s5},ApplySeq:function(){return me},Chain:function(){return mn},Do:function(){return mU},FromIO:function(){return mu},FromReader:function(){return mc},FromTask:function(){return ma},Functor:function(){return s1},Monad:function(){return mr},MonadIO:function(){return mi},MonadTask:function(){return mo},Pointed:function(){return s3},URI:function(){return s0},ap:function(){return sH},apFirst:function(){return s4},apS:function(){return mY},apSW:function(){return mB},apSecond:function(){return s9},apW:function(){return s$},as:function(){return s2},asUnit:function(){return s8},ask:function(){return mI},asks:function(){return mR},asksReaderTask:function(){return sY},asksReaderTaskW:function(){return sG},bind:function(){return mq},bindTo:function(){return mA},bindW:function(){return mG},chain:function(){return m1},chainFirst:function(){return m8},chainFirstIOK:function(){return mT},chainFirstReaderIOK:function(){return mF},chainFirstReaderIOKW:function(){return mW},chainFirstReaderK:function(){return mC},chainFirstReaderKW:function(){return mM},chainFirstTaskK:function(){return mL},chainFirstW:function(){return m7},chainIOK:function(){return mS},chainReaderIOK:function(){return mk},chainReaderIOKW:function(){return mP},chainReaderK:function(){return mO},chainReaderKW:function(){return mx},chainTaskK:function(){return mN},chainW:function(){return m2},flap:function(){return s7},flatMap:function(){return sJ},flatMapIO:function(){return mp},flatMapReader:function(){return ms},flatMapReaderIO:function(){return mm},flatMapTask:function(){return md},flatten:function(){return sQ},flattenW:function(){return sZ},fromIO:function(){return sA},fromIOK:function(){return mb},fromReader:function(){return sL},fromReaderIO:function(){return sj},fromReaderIOK:function(){return mE},fromReaderK:function(){return mw},fromTask:function(){return sU},fromTaskK:function(){return mD},getMonoid:function(){return m6},getSemigroup:function(){return m9},let:function(){return mj},local:function(){return sq},map:function(){return sz},of:function(){return sX},readerTask:function(){return m5},readerTaskSeq:function(){return m4},run:function(){return he},sequenceArray:function(){return mZ},sequenceSeqArray:function(){return m3},tap:function(){return mh},tapIO:function(){return mv},tapReader:function(){return my},tapReaderIO:function(){return m_},tapTask:function(){return mg},traverseArray:function(){return mJ},traverseArrayWithIndex:function(){return mX},traverseReadonlyArrayWithIndex:function(){return mz},traverseReadonlyArrayWithIndexSeq:function(){return m$},traverseReadonlyNonEmptyArrayWithIndex:function(){return mV},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return mH},traverseSeqArray:function(){return m0},traverseSeqArrayWithIndex:function(){return mQ}});var el={};n.r(el),n.d(el,{Alt:function(){return vI},ApT:function(){return yn},ApplicativePar:function(){return va},ApplicativeSeq:function(){return vf},ApplyPar:function(){return vn},ApplySeq:function(){return vc},Bifunctor:function(){return vT},Chain:function(){return vl},Do:function(){return v3},FromEither:function(){return vh},FromIO:function(){return vv},FromTask:function(){return vy},Functor:function(){return h4},Monad:function(){return vp},MonadIO:function(){return vd},MonadTask:function(){return vs},MonadThrow:function(){return vm},Pointed:function(){return vt},URI:function(){return h2},alt:function(){return hZ},altW:function(){return hQ},ap:function(){return hz},apFirst:function(){return vr},apFirstW:function(){return vi},apS:function(){return ye},apSW:function(){return yt},apSecond:function(){return vo},apSecondW:function(){return vu},apW:function(){return hH},as:function(){return h9},asUnit:function(){return h6},bimap:function(){return hB},bind:function(){return v9},bindTo:function(){return v5},bindW:function(){return v6},bracket:function(){return v8},bracketW:function(){return v7},chain:function(){return ys},chainEitherK:function(){return vj},chainEitherKW:function(){return vq},chainFirst:function(){return yh},chainFirstEitherK:function(){return vG},chainFirstEitherKW:function(){return vY},chainFirstIOK:function(){return vX},chainFirstTaskK:function(){return vQ},chainFirstW:function(){return yv},chainIOEitherK:function(){return v1},chainIOEitherKW:function(){return v0},chainIOK:function(){return v$},chainNullableK:function(){return hO},chainOptionK:function(){return vO},chainOptionKW:function(){return vx},chainTaskK:function(){return vZ},chainTaskOptionK:function(){return hN},chainTaskOptionKW:function(){return hD},chainW:function(){return ym},filterOrElse:function(){return vK},filterOrElseW:function(){return vV},flap:function(){return ve},flatMap:function(){return h$},flatMapEither:function(){return vD},flatMapIO:function(){return vN},flatMapIOEither:function(){return vU},flatMapNullable:function(){return vW},flatMapOption:function(){return vF},flatMapTask:function(){return vL},flatMapTaskOption:function(){return vA},flatten:function(){return hJ},flattenW:function(){return hX},fold:function(){return hv},foldW:function(){return hg},fromEither:function(){return hl},fromEitherK:function(){return vz},fromIO:function(){return hc},fromIOEither:function(){return hp},fromIOEitherK:function(){return hL},fromIOK:function(){return vH},fromNullable:function(){return hR},fromNullableK:function(){return hw},fromOption:function(){return vR},fromOptionK:function(){return vw},fromPredicate:function(){return vB},fromTask:function(){return hf},fromTaskK:function(){return vJ},fromTaskOption:function(){return hd},fromTaskOptionK:function(){return hF},getAltTaskValidation:function(){return h7},getApplicativeTaskValidation:function(){return h8},getApplyMonoid:function(){return yT},getApplySemigroup:function(){return yS},getCompactable:function(){return h3},getFilterable:function(){return h5},getOrElse:function(){return h_},getOrElseW:function(){return hb},getSemigroup:function(){return yI},getTaskValidation:function(){return yR},left:function(){return hn},leftIO:function(){return ha},leftTask:function(){return ho},let:function(){return v4},liftNullable:function(){return vM},liftOption:function(){return vE},map:function(){return hG},mapBoth:function(){return hY},mapError:function(){return hK},mapLeft:function(){return hV},match:function(){return hs},matchE:function(){return hh},matchEW:function(){return hy},matchW:function(){return hm},of:function(){return h0},orElse:function(){return hx},orElseFirst:function(){return yy},orElseFirstIOK:function(){return hE},orElseFirstTaskK:function(){return hP},orElseFirstW:function(){return yg},orElseW:function(){return hC},orLeft:function(){return hk},right:function(){return hr},rightIO:function(){return hu},rightTask:function(){return hi},sequenceArray:function(){return yf},sequenceSeqArray:function(){return yd},swap:function(){return hW},tap:function(){return vg},tapEither:function(){return v_},tapError:function(){return hM},tapIO:function(){return vb},tapTask:function(){return vS},taskEither:function(){return y_},taskEitherSeq:function(){return yb},taskify:function(){return v2},throwError:function(){return h1},toUnion:function(){return hI},traverseArray:function(){return yc},traverseArrayWithIndex:function(){return ya},traverseReadonlyArrayWithIndex:function(){return yi},traverseReadonlyArrayWithIndexSeq:function(){return yu},traverseReadonlyNonEmptyArrayWithIndex:function(){return yr},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return yo},traverseSeqArray:function(){return yp},traverseSeqArrayWithIndex:function(){return yl},tryCatch:function(){return hS},tryCatchK:function(){return hT}});var ep={};n.r(ep),n.d(ep,{Alt:function(){return g7},ApT:function(){return be},ApplicativePar:function(){return gN},ApplicativeSeq:function(){return gU},ApplyPar:function(){return gP},ApplySeq:function(){return gL},Bifunctor:function(){return g8},Chain:function(){return gA},Do:function(){return _8},FromEither:function(){return gB},FromIO:function(){return gK},FromReader:function(){return gz},FromTask:function(){return gV},Functor:function(){return gO},Monad:function(){return gj},MonadIO:function(){return gq},MonadTask:function(){return gG},MonadThrow:function(){return gY},Pointed:function(){return gE},URI:function(){return gS},alt:function(){return gg},altW:function(){return g_},ap:function(){return gd},apFirst:function(){return gk},apFirstW:function(){return gW},apS:function(){return _9},apSW:function(){return _6},apSecond:function(){return gF},apSecondW:function(){return gD},apW:function(){return gs},as:function(){return gx},asUnit:function(){return gC},ask:function(){return g3},asks:function(){return g5},asksReaderTaskEither:function(){return y7},asksReaderTaskEitherW:function(){return y8},bimap:function(){return gf},bind:function(){return _5},bindTo:function(){return _7},bindW:function(){return _4},bracket:function(){return _1},bracketW:function(){return _2},chain:function(){return bp},chainEitherK:function(){return _M},chainEitherKW:function(){return _E},chainFirst:function(){return bs},chainFirstEitherK:function(){return _P},chainFirstEitherKW:function(){return _k},chainFirstIOK:function(){return _Y},chainFirstReaderEitherK:function(){return _t},chainFirstReaderEitherKW:function(){return _e},chainFirstReaderIOK:function(){return _f},chainFirstReaderIOKW:function(){return _c},chainFirstReaderK:function(){return g9},chainFirstReaderKW:function(){return g6},chainFirstReaderTaskK:function(){return _u},chainFirstReaderTaskKW:function(){return _o},chainFirstTaskEitherK:function(){return _r},chainFirstTaskEitherKW:function(){return _n},chainFirstTaskK:function(){return _V},chainFirstW:function(){return bm},chainIOEitherK:function(){return _Z},chainIOEitherKW:function(){return _J},chainIOK:function(){return _G},chainNullableK:function(){return y1},chainOptionK:function(){return _d},chainOptionKW:function(){return _s},chainReaderEitherK:function(){return _0},chainReaderEitherKW:function(){return _Q},chainReaderIOK:function(){return _X},chainReaderIOKW:function(){return _$},chainReaderK:function(){return _z},chainReaderKW:function(){return _H},chainReaderTaskK:function(){return _N},chainReaderTaskKW:function(){return _D},chainTaskEitherK:function(){return _F},chainTaskEitherKW:function(){return _W},chainTaskK:function(){return _K},chainW:function(){return bd},filterOrElse:function(){return _U},filterOrElseW:function(){return _A},flap:function(){return gM},flatMap:function(){return gh},flatMapEither:function(){return _b},flatMapIO:function(){return _I},flatMapIOEither:function(){return _x},flatMapNullable:function(){return _g},flatMapOption:function(){return __},flatMapReader:function(){return _w},flatMapReaderEither:function(){return _C},flatMapReaderIO:function(){return _O},flatMapReaderTask:function(){return _T},flatMapTask:function(){return _R},flatMapTaskEither:function(){return _S},flatten:function(){return gy},flattenW:function(){return gv},fold:function(){return yz},foldW:function(){return y$},fromEither:function(){return yU},fromEitherK:function(){return _j},fromIO:function(){return yj},fromIOEither:function(){return yG},fromIOEitherK:function(){return ge},fromIOK:function(){return _q},fromNullable:function(){return yQ},fromNullableK:function(){return y0},fromOption:function(){return _l},fromOptionK:function(){return _p},fromPredicate:function(){return _L},fromReader:function(){return yA},fromReaderEither:function(){return yY},fromReaderEitherK:function(){return gn},fromReaderIOK:function(){return _a},fromReaderK:function(){return g4},fromReaderTaskK:function(){return _i},fromTask:function(){return yq},fromTaskEither:function(){return yw},fromTaskEitherK:function(){return gt},fromTaskK:function(){return _B},getAltReaderTaskValidation:function(){return gw},getApplicativeReaderTaskValidation:function(){return gR},getApplyMonoid:function(){return bb},getApplySemigroup:function(){return b_},getCompactable:function(){return gT},getFilterable:function(){return gI},getOrElse:function(){return yX},getOrElseW:function(){return yJ},getReaderTaskValidation:function(){return bT},getSemigroup:function(){return bS},left:function(){return yO},leftIO:function(){return yD},leftReader:function(){return yP},leftReaderIO:function(){return yL},leftReaderTask:function(){return yW},leftTask:function(){return yM},let:function(){return _3},liftNullable:function(){return _h},liftOption:function(){return _v},local:function(){return y2},map:function(){return ga},mapBoth:function(){return gc},mapError:function(){return gl},mapLeft:function(){return gp},match:function(){return yB},matchE:function(){return yV},matchEW:function(){return yH},matchW:function(){return yK},of:function(){return gm},orElse:function(){return y3},orElseFirst:function(){return bh},orElseFirstW:function(){return bv},orElseW:function(){return y5},orLeft:function(){return y9},readerTaskEither:function(){return by},readerTaskEitherSeq:function(){return bg},right:function(){return yx},rightIO:function(){return yF},rightReader:function(){return yE},rightReaderIO:function(){return yN},rightReaderTask:function(){return yk},rightTask:function(){return yC},run:function(){return bI},sequenceArray:function(){return ba},sequenceSeqArray:function(){return bl},swap:function(){return y6},tap:function(){return gH},tapEither:function(){return g$},tapError:function(){return y4},tapIO:function(){return gX},tapReader:function(){return gZ},tapReaderEither:function(){return gQ},tapReaderIO:function(){return g2},tapReaderTask:function(){return g1},tapTask:function(){return gJ},tapTaskEither:function(){return g0},throwError:function(){return gb},toUnion:function(){return yZ},traverseArray:function(){return bu},traverseArrayWithIndex:function(){return bo},traverseReadonlyArrayWithIndex:function(){return bn},traverseReadonlyArrayWithIndexSeq:function(){return bi},traverseReadonlyNonEmptyArrayWithIndex:function(){return bt},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return br},traverseSeqArray:function(){return bf},traverseSeqArrayWithIndex:function(){return bc}});var ed={};n.r(ed),n.d(ed,{Bifunctor:function(){return Se},Comonad:function(){return Sn},Foldable:function(){return Sr},Functor:function(){return b5},Semigroupoid:function(){return St},Traversable:function(){return Si},URI:function(){return b3},bimap:function(){return bz},compose:function(){return bX},duplicate:function(){return bQ},extend:function(){return bJ},extract:function(){return bZ},flap:function(){return b4},foldMap:function(){return b1},fst:function(){return bM},getApplicative:function(){return bF},getApply:function(){return bk},getChain:function(){return bD},getChainRec:function(){return bL},getMonad:function(){return bN},map:function(){return b9},mapFst:function(){return bH},mapLeft:function(){return b6},mapSnd:function(){return b$},readonlyTuple:function(){return So},reduce:function(){return b0},reduceRight:function(){return b2},sequence:function(){return b7},snd:function(){return bE},swap:function(){return bP},traverse:function(){return b8}});var es={};n.r(es),n.d(es,{Compactable:function(){return TI},Filterable:function(){return TR},FilterableWithIndex:function(){return Tw},Foldable:function(){return TW},FoldableWithIndex:function(){return TF},Functor:function(){return Tg},FunctorWithIndex:function(){return Tb},Traversable:function(){return TD},TraversableWithIndex:function(){return TN},URI:function(){return Tm},Witherable:function(){return TA},collect:function(){return Sm},compact:function(){return Td},deleteAt:function(){return S_},difference:function(){return S$},elem:function(){return SV},empty:function(){return Tj},every:function(){return SB},filter:function(){return To},filterMap:function(){return Tu},filterMapWithIndex:function(){return SU},filterWithIndex:function(){return SA},flap:function(){return T_},foldMap:function(){return Tl},foldMapWithIndex:function(){return SC},fromEntries:function(){return SG},fromFoldable:function(){return Sj},fromFoldableMap:function(){return SY},getDifferenceMagma:function(){return Tk},getEq:function(){return Tv},getFoldable:function(){return TS},getFoldableWithIndex:function(){return TT},getIntersectionSemigroup:function(){return TP},getMonoid:function(){return Ty},getShow:function(){return Th},getTraversable:function(){return TO},getTraversableWithIndex:function(){return Tx},getUnionMonoid:function(){return TE},getUnionSemigroup:function(){return TM},getWitherable:function(){return TC},has:function(){return Sg},hasOwnProperty:function(){return TG},insertAt:function(){return Tq},intersection:function(){return SH},isEmpty:function(){return Sp},isSubrecord:function(){return SI},keys:function(){return Ss},lookup:function(){return SR},map:function(){return SO},mapWithIndex:function(){return Sw},modifyAt:function(){return SS},partition:function(){return Ta},partitionMap:function(){return Tc},partitionMapWithIndex:function(){return SN},partitionWithIndex:function(){return SL},pop:function(){return ST},record:function(){return TY},reduce:function(){return Tf},reduceRight:function(){return Tp},reduceRightWithIndex:function(){return SM},reduceWithIndex:function(){return Sx},separate:function(){return Ts},sequence:function(){return SW},singleton:function(){return SE},size:function(){return Sl},some:function(){return SK},toArray:function(){return Sh},toEntries:function(){return Sq},toUnfoldable:function(){return Sv},traverse:function(){return Sk},traverseWithIndex:function(){return SP},union:function(){return Sz},updateAt:function(){return Sb},upsertAt:function(){return Sy},wilt:function(){return SD},wither:function(){return SF}});var em={};n.r(em),n.d(em,{and:function(){return T$},compose:function(){return TJ},fromEitherK:function(){return TK},fromOptionK:function(){return TB},id:function(){return TV},not:function(){return Tz},or:function(){return TH},zero:function(){return TX}});var eh={};n.r(eh),n.d(eh,{getFunctionRing:function(){return T1},getTupleRing:function(){return T0},negate:function(){return TQ},tuple:function(){return TZ}});var ev={};n.r(ev);var ey={};n.r(ey),n.d(ey,{getFunctionSemiring:function(){return T2}});var eg={};n.r(eg),n.d(eg,{getStructShow:function(){return T4},getTupleShow:function(){return T5},showBoolean:function(){return T9},showNumber:function(){return Ie},showString:function(){return T6},struct:function(){return T7},tuple:function(){return T3}});var e_={};n.r(e_),n.d(e_,{ap:function(){return Ir},chain:function(){return Ii},evaluate:function(){return Ic},execute:function(){return If},flatMap:function(){return Io},fromF:function(){return Ia},fromState:function(){return Iu},getStateM:function(){return Il},map:function(){return In},of:function(){return It}});var eb={};n.r(eb),n.d(eb,{Alt:function(){return RN},Applicative:function(){return Rs},Apply:function(){return Rc},Bifunctor:function(){return RD},Chain:function(){return Rm},FromEither:function(){return RO},FromIO:function(){return Rx},FromReader:function(){return RM},FromState:function(){return Rh},FromTask:function(){return RC},Functor:function(){return Rr},Monad:function(){return RT},MonadIO:function(){return RI},MonadTask:function(){return RR},MonadThrow:function(){return Rw},Pointed:function(){return Ra},URI:function(){return Rn},alt:function(){return Re},altW:function(){return I6},ap:function(){return IV},apFirst:function(){return Rf},apFirstW:function(){return Rl},apS:function(){return wc},apSW:function(){return wf},apSecond:function(){return Rp},apSecondW:function(){return Rd},apW:function(){return Iz},as:function(){return Ri},asUnit:function(){return Ro},ask:function(){return RL},asks:function(){return RU},asksStateReaderTaskEither:function(){return Ik},asksStateReaderTaskEitherW:function(){return IP},bimap:function(){return IB},bind:function(){return wu},bindTo:function(){return wi},bindW:function(){return wa},chain:function(){return wh},chainEitherK:function(){return RH},chainEitherKW:function(){return R$},chainFirst:function(){return wy},chainFirstEitherK:function(){return RX},chainFirstEitherKW:function(){return RJ},chainFirstIOK:function(){return R7},chainFirstReaderK:function(){return RG},chainFirstReaderKW:function(){return RY},chainFirstTaskK:function(){return wt},chainFirstW:function(){return wg},chainIOEitherK:function(){return R9},chainIOEitherKW:function(){return R4},chainIOK:function(){return R8},chainOptionK:function(){return RV},chainOptionKW:function(){return Rz},chainReaderK:function(){return Rj},chainReaderKW:function(){return Rq},chainReaderTaskEitherK:function(){return IL},chainReaderTaskEitherKW:function(){return IN},chainStateK:function(){return RS},chainTaskEitherK:function(){return R5},chainTaskEitherKW:function(){return R3},chainTaskK:function(){return we},chainW:function(){return wv},evalState:function(){return wS},evaluate:function(){return wn},execState:function(){return wT},execute:function(){return wr},filterOrElse:function(){return RQ},filterOrElseW:function(){return R0},flap:function(){return Ru},flatMap:function(){return IX},flatMapEither:function(){return I8},flatMapIO:function(){return IQ},flatMapIOEither:function(){return I2},flatMapOption:function(){return I7},flatMapReader:function(){return I1},flatMapReaderTaskEither:function(){return I3},flatMapState:function(){return I5},flatMapTask:function(){return I0},flatMapTaskEither:function(){return IZ},flatten:function(){return I9},flattenW:function(){return I4},fromEither:function(){return IS},fromEitherK:function(){return R1},fromIO:function(){return II},fromIOEither:function(){return Ix},fromIOEitherK:function(){return IW},fromIOK:function(){return R2},fromOption:function(){return RB},fromOptionK:function(){return RK},fromPredicate:function(){return RZ},fromReader:function(){return IT},fromReaderEither:function(){return IC},fromReaderK:function(){return RA},fromReaderTaskEither:function(){return IM},fromReaderTaskEitherK:function(){return ID},fromState:function(){return Iw},fromStateK:function(){return Rb},fromTask:function(){return IR},fromTaskEither:function(){return IO},fromTaskEitherK:function(){return IF},fromTaskK:function(){return R6},get:function(){return Rv},gets:function(){return R_},left:function(){return Ip},leftIO:function(){return Ig},leftReader:function(){return Iv},leftState:function(){return Ib},leftTask:function(){return Im},let:function(){return wo},local:function(){return IE},map:function(){return IY},mapLeft:function(){return IK},modify:function(){return Rg},of:function(){return IH},put:function(){return Ry},right:function(){return Id},rightIO:function(){return Iy},rightReader:function(){return Ih},rightState:function(){return I_},rightTask:function(){return Is},run:function(){return wI},sequenceArray:function(){return wm},stateReaderTaskEither:function(){return w_},stateReaderTaskEitherSeq:function(){return wb},tap:function(){return RE},tapEither:function(){return RP},tapIO:function(){return Rk},tapReader:function(){return RF},tapTask:function(){return RW},throwError:function(){return Rt},traverseArray:function(){return ws},traverseArrayWithIndex:function(){return wd},traverseReadonlyArrayWithIndex:function(){return wp},traverseReadonlyNonEmptyArrayWithIndex:function(){return wl}});var eS={};n.r(eS),n.d(eS,{Comonad:function(){return wL},Functor:function(){return wD},URI:function(){return wF},duplicate:function(){return wk},experiment:function(){return wx},extend:function(){return wE},extract:function(){return wP},flap:function(){return wN},map:function(){return wW},peeks:function(){return wO},seek:function(){return wR},seeks:function(){return ww},store:function(){return wU}});var eT={};n.r(eT),n.d(eT,{fanOut:function(){return wj},fanout:function(){return wG},split:function(){return wA},splitStrong:function(){return wq}});var eI={};n.r(eI),n.d(eI,{evolve:function(){return wB},getAssignSemigroup:function(){return wY}});var eR={};n.r(eR),n.d(eR,{Alt:function(){return OX},Alternative:function(){return OQ},ApT:function(){return xf},ApplicativePar:function(){return OU},ApplicativeSeq:function(){return Oq},ApplyPar:function(){return OD},ApplySeq:function(){return Oj},Chain:function(){return OG},Compactable:function(){return O8},Do:function(){return xi},Filterable:function(){return O7},FromEither:function(){return OY},FromIO:function(){return OB},FromTask:function(){return OK},Functor:function(){return OE},Monad:function(){return O0},MonadIO:function(){return O1},MonadTask:function(){return O2},Pointed:function(){return OF},URI:function(){return OM},Zero:function(){return OJ},alt:function(){return Od},altW:function(){return Os},ap:function(){return Oo},apFirst:function(){return ON},apS:function(){return xc},apSecond:function(){return OL},as:function(){return OP},asUnit:function(){return Ok},bind:function(){return xa},bindTo:function(){return xo},chain:function(){return xb},chainEitherK:function(){return O6},chainFirst:function(){return xS},chainFirstEitherK:function(){return xe},chainFirstIOK:function(){return O4},chainFirstTaskK:function(){return xr},chainIOK:function(){return O5},chainNullableK:function(){return Ot},chainOptionK:function(){return Or},chainTaskK:function(){return xn},compact:function(){return Ov},filter:function(){return Og},filterMap:function(){return O_},flap:function(){return OW},flatMap:function(){return Oa},flatMapIO:function(){return Of},flatMapTask:function(){return Ol},flatten:function(){return Op},fold:function(){return w2},foldW:function(){return w7},fromEither:function(){return w$},fromEitherK:function(){return O9},fromIO:function(){return wX},fromIOK:function(){return O3},fromNullable:function(){return w4},fromNullableK:function(){return Oe},fromOption:function(){return wH},fromOptionK:function(){return On},fromPredicate:function(){return wz},fromTask:function(){return wJ},fromTaskEither:function(){return wZ},fromTaskK:function(){return xt},getOrElse:function(){return w3},getOrElseW:function(){return w5},guard:function(){return OZ},let:function(){return xu},map:function(){return Oi},match:function(){return wQ},matchE:function(){return w1},matchEW:function(){return w8},matchW:function(){return w0},none:function(){return Oh},of:function(){return Ou},partition:function(){return Ob},partitionMap:function(){return OS},separate:function(){return Oy},sequenceArray:function(){return xv},sequenceSeqArray:function(){return x_},some:function(){return wV},tap:function(){return OV},tapEither:function(){return Oz},tapIO:function(){return OH},tapTask:function(){return O$},traverseArray:function(){return xh},traverseArrayWithIndex:function(){return xm},traverseReadonlyArrayWithIndex:function(){return xp},traverseReadonlyArrayWithIndexSeq:function(){return xs},traverseReadonlyNonEmptyArrayWithIndex:function(){return xl},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return xd},traverseSeqArray:function(){return xg},traverseSeqArrayWithIndex:function(){return xy},tryCatch:function(){return w9},tryCatchK:function(){return w6},zero:function(){return Om}});var ew={};n.r(ew),n.d(ew,{ApT:function(){return Ch},Bifunctor:function(){return Cr},Foldable:function(){return Co},FromEither:function(){return Ca},FromThese:function(){return Ci},Functor:function(){return Ce},Pointed:function(){return Cn},Traversable:function(){return Cu},URI:function(){return x6},bimap:function(){return x0},both:function(){return xx},elem:function(){return Cp},exists:function(){return Cd},flap:function(){return Ct},fold:function(){return xP},foldMap:function(){return x7},foldW:function(){return xM},fromOption:function(){return Cf},fromOptionK:function(){return Cl},fromOptions:function(){return xV},fromPredicate:function(){return Cc},getApplicative:function(){return xL},getApply:function(){return xN},getChain:function(){return xU},getEq:function(){return xF},getLeft:function(){return xj},getLeftOnly:function(){return xB},getMonad:function(){return xA},getRight:function(){return xq},getRightOnly:function(){return xK},getSemigroup:function(){return xD},getShow:function(){return xW},isBoth:function(){return xR},isLeft:function(){return xT},isRight:function(){return xI},left:function(){return xw},leftOrBoth:function(){return xG},map:function(){return x2},mapLeft:function(){return x1},match:function(){return xE},matchW:function(){return xC},of:function(){return x9},reduce:function(){return x8},reduceRight:function(){return x3},right:function(){return xO},rightOrBoth:function(){return xY},sequence:function(){return x4},swap:function(){return xk},these:function(){return Cg},toTuple:function(){return Cm},toTuple2:function(){return Cs},traverse:function(){return x5},traverseReadonlyArrayWithIndex:function(){return Cy},traverseReadonlyNonEmptyArrayWithIndex:function(){return Cv}});var eO={};n.r(eO),n.d(eO,{ap:function(){return Cw},bimap:function(){return Cx},both:function(){return CS},chain:function(){return CO},getTheseM:function(){return CW},left:function(){return Cb},leftF:function(){return CI},map:function(){return CR},mapLeft:function(){return CC},match:function(){return CM},matchE:function(){return CE},right:function(){return C_},rightF:function(){return CT},swap:function(){return CP},toTuple2:function(){return Ck}});var ex={};n.r(ex),n.d(ex,{ApT:function(){return Mv},Bifunctor:function(){return Mi},FromEither:function(){return Mo},FromIO:function(){return Mp},FromTask:function(){return Ms},FromThese:function(){return Mf},Functor:function(){return Mt},Pointed:function(){return Mr},URI:function(){return C5},bifunctorTaskThese:function(){return MT},bimap:function(){return C8},both:function(){return CN},flap:function(){return Mn},fold:function(){return C$},foldW:function(){return CJ},fromEither:function(){return Cq},fromIO:function(){return CY},fromIOEither:function(){return CB},fromIOK:function(){return Md},fromOption:function(){return Mu},fromOptionK:function(){return Ma},fromPredicate:function(){return Mc},fromTask:function(){return CK},fromTaskK:function(){return Mm},fromThese:function(){return CG},fromTheseK:function(){return Ml},functorTaskThese:function(){return MS},getApplicative:function(){return C9},getApply:function(){return C4},getChain:function(){return C6},getMonad:function(){return Me},getSemigroup:function(){return Mw},left:function(){return CF},leftIO:function(){return Cj},leftTask:function(){return CU},map:function(){return C2},mapLeft:function(){return C7},match:function(){return CV},matchE:function(){return CH},matchEW:function(){return CX},matchW:function(){return Cz},of:function(){return C3},right:function(){return CD},rightIO:function(){return CA},rightTask:function(){return CL},swap:function(){return CZ},taskThese:function(){return MR},toTuple:function(){return MI},toTuple2:function(){return Mh},traverseReadonlyArrayWithIndex:function(){return Mg},traverseReadonlyArrayWithIndexSeq:function(){return Mb},traverseReadonlyNonEmptyArrayWithIndex:function(){return My},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return M_}});var eC={};n.r(eC),n.d(eC,{Functor:function(){return MF},URI:function(){return MW},censor:function(){return MM},flap:function(){return MD},getComonad:function(){return ME},listen:function(){return Mx},listens:function(){return MC},map:function(){return Mk},traced:function(){return MN},tracks:function(){return MO}});var eM={};n.r(eM),n.d(eM,{getTraversableComposition:function(){return MA},sequence:function(){return MU},traverse:function(){return ML}});var eE={};n.r(eE);var eP={};n.r(eP),n.d(eP,{Applicative:function(){return Em},Apply:function(){return Ep},Chain:function(){return Eh},Comonad:function(){return Eb},Do:function(){return ES},Foldable:function(){return Eg},Functor:function(){return Ec},Monad:function(){return Ev},Pointed:function(){return El},Traversable:function(){return E_},URI:function(){return Ea},ap:function(){return M7},apFirst:function(){return Ed},apS:function(){return Ew},apSecond:function(){return Es},bind:function(){return ER},bindTo:function(){return ET},chain:function(){return EC},chainFirst:function(){return Ey},drawForest:function(){return MB},drawTree:function(){return MK},duplicate:function(){return M4},elem:function(){return EO},exists:function(){return Ex},extend:function(){return M5},extract:function(){return Er},flap:function(){return Ef},flatMap:function(){return M3},flatten:function(){return M9},fold:function(){return MX},foldMap:function(){return Et},getEq:function(){return MG},getShow:function(){return Mq},let:function(){return EI},make:function(){return Mj},map:function(){return M6},of:function(){return Eu},reduce:function(){return Ee},reduceRight:function(){return En},sequence:function(){return Eo},traverse:function(){return Ei},tree:function(){return EM},unfoldForest:function(){return Mz},unfoldForestM:function(){return M$},unfoldTree:function(){return MV},unfoldTreeM:function(){return MH}});var ek={};n.r(ek),n.d(ek,{Bifunctor:function(){return E6},Comonad:function(){return Pt},Foldable:function(){return Pn},Functor:function(){return E4},Semigroupoid:function(){return Pe},Traversable:function(){return Pr},URI:function(){return E5},bimap:function(){return EH},compose:function(){return EJ},duplicate:function(){return EQ},extend:function(){return EZ},extract:function(){return E0},flap:function(){return E9},foldMap:function(){return E1},fst:function(){return EE},getApplicative:function(){return ED},getApply:function(){return EW},getChain:function(){return EN},getChainRec:function(){return EU},getMonad:function(){return EL},map:function(){return Pi},mapFst:function(){return E$},mapLeft:function(){return Po},mapSnd:function(){return EX},reduce:function(){return E2},reduceRight:function(){return E8},sequence:function(){return E3},snd:function(){return EP},swap:function(){return Ek},traverse:function(){return E7},tuple:function(){return Pu}});var eW={};n.r(eW);var eF={};n.r(eF),n.d(eF,{getValidationM:function(){return Pa}});var eD={};n.r(eD),n.d(eD,{Monoid:function(){return Pf},Semigroup:function(){return Pc}});var eN={};n.r(eN),n.d(eN,{Functor:function(){return PI},URI:function(){return Py},censor:function(){return Pm},evalWriter:function(){return Px},evaluate:function(){return Pw},execWriter:function(){return PC},execute:function(){return PO},flap:function(){return PR},getApplicative:function(){return Pb},getApply:function(){return P_},getChain:function(){return PS},getMonad:function(){return PT},getPointed:function(){return Pg},listen:function(){return Pp},listens:function(){return Ps},map:function(){return Pv},pass:function(){return Pd},tell:function(){return Pl},writer:function(){return PM}});var eL={};function eU(e){return function(t){return function(n){return n.reduce(function(t,n){return e.alt(t,function(){return n})},t)}}}n.r(eL),n.d(eL,{getWriterM:function(){return PE}});var eA=n(42925);function ej(e){return eU(e)(e.zero())}function eq(e){var t=(0,eA.getApplySemigroup)(e);return function(n){var r=t(n);return{concat:function(t,n){return e.alt(r.concat(t,n),function(){return e.alt(t,function(){return n})})},empty:e.zero()}}}var eG=n(46111),eY=n(1358),eB=function(e){return"boolean"==typeof e},eK=function(e,t){return function(n){return n?t():e()}},eV=eK,ez=eV,eH=ez,e$={equals:function(e,t){return e===t}},eX={meet:function(e,t){return e&&t},join:function(e,t){return e||t},zero:!1,one:!0,implies:function(e,t){return!e||t},not:function(e){return!e}},eJ={concat:function(e,t){return e&&t}},eZ={concat:function(e,t){return e||t}},eQ={concat:eJ.concat,empty:!0},e0={concat:eZ.concat,empty:!1},e1={equals:e$.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},e2={show:function(e){return JSON.stringify(e)}},e8=n(42275),e7=function(e){return{meet:function(t,n){return e.join(t,n)},join:function(t,n){return e.meet(t,n)},zero:e.one,one:e.zero,implies:function(t,n){return e.join(e.not(t),n)},not:e.not}},e3={meet:function(){},join:function(){},zero:void 0,one:void 0,implies:function(){},not:function(){}},e5=e7,e4={meet:function(e,t){return e&&t},join:function(e,t){return e||t},zero:!1,one:!0,implies:function(e,t){return!e||t},not:function(e){return!e}},e9=e8.getBooleanAlgebra,e6=n(5586),te=function(e){return e6.clamp(e)(e.bottom,e.top)},tt=function(e){var t=e6.reverse(e);return{equals:t.equals,compare:t.compare,top:e.bottom,bottom:e.top}},tn={equals:e6.ordNumber.equals,compare:e6.ordNumber.compare,top:1/0,bottom:-1/0};function tr(e){return{meet:(0,e6.min)(e),join:(0,e6.max)(e)}}function ti(e){var t=tr(e);return function(e,n){return{join:t.join,meet:t.meet,zero:e,one:n}}}var to=n(88543),tu=n(56661);function ta(e,t){return function(n,r){return t.compose(e.right(r),e.left(n))}}function tc(e,t){var n=ta(e,t);return function(r,i){return t.compose(e.promap(t.id(),function(e){return"Left"===e._tag?e.left:e.right},e8.identity),n(r,i))}}function tf(e){return ta(e,e)}function tl(e){return tc(e,e)}var tp=n(67560),td=n(20492),ts=n(34219);function tm(e,t){return function(n){return e.map(n,t.compact)}}function th(e,t,n){var r=tm(e,t),i=(0,tp.map)(e,n);return function(e){return ts.separated(r((0,e8.pipe)(e,i(td.getLeft))),r((0,e8.pipe)(e,i(td.getRight))))}}function tv(e,t){return{map:(0,tp.getFunctorComposition)(e,t).map,compact:tm(e,t),separate:th(e,t,t)}}var ty=function(e){return function(){return console.log(e)}},tg=function(e){return function(){return console.warn(e)}},t_=function(e){return function(){return console.error(e)}},tb=function(e){return function(){return console.info(e)}},tS=n(90817),tT=n(76627),tI={equals:function(e,t){return e.valueOf()===t.valueOf()}},tR={equals:function(e,t){return e.getDate()===t.getDate()}},tw={equals:function(e,t){return e.getMonth()===t.getMonth()}},tO={equals:function(e,t){return e.getFullYear()===t.getFullYear()}},tx=(0,e8.pipe)(tT.Ord,e6.contramap(function(e){return e.valueOf()})),tC=function(){return new Date},tM=function(){return new Date().getTime()},tE=n(81878);function tP(e){return(0,e8.flow)(tE.right,e.of)}function tk(e){return(0,e8.flow)(tE.left,e.of)}function tW(e){return function(t){return e.map(t,tE.right)}}function tF(e){return function(t){return e.map(t,tE.left)}}function tD(e){return function(t){return(0,e8.flow)(tE.fromNullable(t),e.of)}}function tN(e){var t=tD(e);return function(e){var n=t(e);return function(e){return(0,e8.flow)(e,n)}}}function tL(e){var t=tj(e),n=tN(e);return function(e){var r=n(e);return function(e){return t(r(e))}}}function tU(e){return(0,tp.map)(e,tE.Functor)}function tA(e){return(0,eA.ap)(e,tE.Apply)}function tj(e){var t=tq(e);return function(e){return function(n){return t(n,e)}}}function tq(e){return function(t,n){return e.chain(t,function(t){return tE.isLeft(t)?e.of(t):n(t.right)})}}function tG(e){return function(t){return function(n){return e.chain(n,function(n){return tE.isLeft(n)?t():e.of(n)})}}}function tY(e){var t=tB(e);return function(e,n){return function(r){return t(r,e,n)}}}function tB(e){return function(t,n,r){return e.map(t,tE.bimap(n,r))}}function tK(e){var t=tV(e);return function(e){return function(n){return t(n,e)}}}function tV(e){return function(t,n){return e.map(t,tE.mapLeft(n))}}function tz(e,t){return function(n){return function(r){return e.chain(r,tE.match(function(r){return e.map(n(),tE.mapLeft(function(e){return t.concat(r,e)}))},tP(e)))}}}function tH(e){return function(t,n){return function(r){return e.map(r,tE.match(t,n))}}}function t$(e){return function(t,n){return function(r){return e.chain(r,tE.match(t,n))}}}function tX(e){return function(t){return function(n){return e.chain(n,tE.match(t,e.of))}}}function tJ(e){return function(t){return function(n){return e.chain(n,function(n){return tE.isLeft(n)?t(n.left):e.of(n)})}}}function tZ(e){var t=tQ(e);return function(e){return function(n){return t(n,e)}}}function tQ(e){var t=tJ(e);return function(n,r){return(0,e8.pipe)(n,t(function(t){return e.map(r(t),function(e){return tE.isLeft(e)?e:tE.left(t)})}))}}function t0(e){return function(t){return function(n){return e.chain(n,tE.match(function(n){return e.map(t(n),tE.left)},function(t){return e.of(tE.right(t))}))}}}function t1(e){return function(t){return e.map(t,tE.swap)}}function t2(e){return function(t){return e.map(t,tE.toUnion)}}function t8(e){var t=tA(e),n=tU(e),r=tj(e),i=tG(e),o=tY(e),u=tK(e),a=t$(e),c=tX(e),f=tJ(e);return{map:function(e,t){return(0,e8.pipe)(e,n(t))},ap:function(e,n){return(0,e8.pipe)(e,t(n))},of:tP(e),chain:function(e,t){return(0,e8.pipe)(e,r(t))},alt:function(e,t){return(0,e8.pipe)(e,i(t))},bimap:function(e,t,n){return(0,e8.pipe)(e,o(t,n))},mapLeft:function(e,t){return(0,e8.pipe)(e,u(t))},fold:function(e,t,n){return(0,e8.pipe)(e,a(t,n))},getOrElse:function(e,t){return(0,e8.pipe)(e,c(t))},orElse:function(e,t){return(0,e8.pipe)(e,f(t))},swap:t1(e),rightM:tW(e),leftM:tF(e),left:tk(e)}}var t7=n(47797),t3=n(65191);function t5(e,t){var n=t.zero,r=function(i,o){return e.equals(o,n)?i:r(o,t.mod(i,o))};return r}function t4(e,t){var n=t.zero,r=t5(e,t);return function(i,o){return e.equals(i,n)||e.equals(o,n)?n:t.div(t.mul(i,o),r(i,o))}}var t9={add:function(e,t){return e+t},zero:0,mul:function(e,t){return e*t},one:1,sub:function(e,t){return e-t},degree:function(e){return 1},div:function(e,t){return e/t},mod:function(e,t){return e%t}},t6=n(88491);function ne(e,t){return function(n){return function(r){return e.map(r,function(e){return t.filter(e,n)})}}}function nt(e,t){return function(n){return function(r){return e.map(r,function(e){return t.filterMap(e,n)})}}}function nn(e,t){var n=ne(e,t);return function(e){var t=n((0,t6.not)(e)),r=n(e);return function(e){return(0,ts.separated)(t(e),r(e))}}}function nr(e,t){var n=nt(e,t);return function(e){return function(t){return(0,ts.separated)((0,e8.pipe)(t,n(function(t){return(0,td.getLeft)(e(t))})),(0,e8.pipe)(t,n(function(t){return(0,td.getRight)(e(t))})))}}}function ni(e,t){var n=(0,tp.getFunctorComposition)(e,t).map,r=tm(e,t),i=th(e,t,t),o=ne(e,t),u=nt(e,t),a=nn(e,t),c=nr(e,t);return{map:n,compact:r,separate:i,filter:function(e,t){return(0,e8.pipe)(e,o(t))},filterMap:function(e,t){return(0,e8.pipe)(e,u(t))},partition:function(e,t){return(0,e8.pipe)(e,a(t))},partitionMap:function(e,t){return(0,e8.pipe)(e,c(t))}}}function no(e,t){return function(n,r){return function(i){return e.reduce(i,n,function(e,n){return t.reduce(n,e,r)})}}}function nu(e,t){return function(n){var r=e.foldMap(n),i=t.foldMap(n);return function(e){return function(t){return r(t,function(t){return i(t,e)})}}}}function na(e,t){return function(n,r){return function(i){return e.reduceRight(i,n,function(e,n){return t.reduceRight(e,n,r)})}}}function nc(e,t){return function(n,r){return function(i){return t.reduce(i,e.of(n),function(t,n){return e.chain(t,function(e){return r(e,n)})})}}}function nf(e,t){return function(n,r){var i=function(t,r){var i=t.init,o=t.acc;return i?{init:!1,acc:r}:{init:!1,acc:e.concat(e.concat(o,n),r)}};return t.reduce(r,{init:!0,acc:e.empty},i).acc}}function nl(e){return function(t){return e.reduce(t,[],function(e,t){return e.push(t),e})}}function np(e,t){var n=e.of(void 0);return function(r,i){return t.reduce(r,n,function(t,n){var r,o;return o=i(n),e.ap(e.map(t,e8.constant),o)})}}function nd(e,t){return function(n,r,i){return t.reduce(n,e.of(r),function(t,n){return e.chain(t,function(e){return i(e,n)})})}}var ns=nl;function nm(e,t){var n=no(e,t),r=nu(e,t),i=na(e,t);return{reduce:function(e,t,r){return(0,e8.pipe)(e,n(t,r))},foldMap:function(e){var t=r(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},reduceRight:function(e,t,n){return(0,e8.pipe)(e,i(t,n))}}}function nh(e,t){return function(n,r){return function(i){return e.reduceWithIndex(i,n,function(e,n,i){return t.reduceWithIndex(i,n,function(t,n,i){return r([e,t],n,i)})})}}}function nv(e,t){return function(n){var r=e.foldMapWithIndex(n),i=t.foldMapWithIndex(n);return function(e){return function(t){return r(t,function(t,n){return i(n,function(n,r){return e([t,n],r)})})}}}}function ny(e,t){return function(n,r){return function(i){return e.reduceRightWithIndex(i,n,function(e,n,i){return t.reduceRightWithIndex(n,i,function(t,n,i){return r([e,t],n,i)})})}}}function ng(e,t){var n=nm(e,t),r=nh(e,t),i=nv(e,t),o=ny(e,t);return{reduce:n.reduce,foldMap:n.foldMap,reduceRight:n.reduceRight,reduceWithIndex:function(e,t,n){return(0,e8.pipe)(e,r(t,n))},foldMapWithIndex:function(e){var t=i(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},reduceRightWithIndex:function(e,t,n){return(0,e8.pipe)(e,o(t,n))}}}var n_=n(25162);function nb(e){return function(t){return(0,e8.flow)(t,e.fromIO)}}function nS(e,t){return function(n){var r=(0,e8.flow)(n,e.fromIO);return function(e){return t.chain(e,r)}}}function nT(e,t){var n=nI(e,t);return function(e){return function(t){return n(t,e)}}}function nI(e,t){var n=(0,to.tap)(t);return function(t,r){return n(t,(0,e8.flow)(r,e.fromIO))}}var nR=n(97963),nw=function(){return e8.identity},nO=e8.identity,nx=function(e){return function(t){return function(n){return t(e(n))}}},nC=function(e){return function(t){return e(t)(t)}},nM=nC,nE=function(e,t){return(0,e8.pipe)(e,nF(t))},nP=function(e,t){return(0,e8.pipe)(e,nN(t))},nk=function(e,t){return(0,e8.pipe)(e,nq(t))},nW=function(e,t,n){return(0,e8.pipe)(e,nG(t,n))},nF=function(e){return function(t){return function(n){return e(t(n))}}},nD=function(e){return function(t){return function(n){return t(n)(e(n))}}},nN=nD,nL=e8.constant,nU=(0,e8.dual)(2,function(e,t){return function(n){return t(e(n))(n)}}),nA=nU(e8.identity),nj=nA,nq=function(e){return function(t){return(0,e8.flow)(e,t)}},nG=function(e,t){return function(n){return function(r){return t(n(e(r)))}}},nY=function(){return e8.identity},nB=function(e){return function(t){var n=t[0],r=t[1];return[e(n),r]}},nK=function(e){return function(t){var n;return[t[0],e(t[1])]}},nV=function(e){return tE.fold(function(t){return nR.t$(e(t))},tE.right)},nz=function(e){return tE.fold(tE.left,function(t){return nR.F2(e(t))})},nH="Reader",n$={URI:nH,map:nE},nX=(0,tp.flap)(n$),nJ={URI:nH,of:nL},nZ={URI:nH,map:nE,ap:nP},nQ=(0,eA.apFirst)(nZ),n0=nQ,n1=(0,eA.apSecond)(nZ),n2=n1,n8={URI:nH,map:nE,ap:nP,of:nL},n7={URI:nH,map:nE,ap:nP,chain:nU},n3={URI:nH,map:nE,of:nL,ap:nP,chain:nU},n5=(0,e8.dual)(2,to.tap(n7)),n4={URI:nH,map:nE,promap:nW},n9={URI:nH,compose:nk,id:nY},n6={URI:nH,map:nE,promap:nW,first:nB,second:nK},re={URI:nH,map:nE,promap:nW,left:nV,right:nz},rt=(0,tp.bindTo)(n$),rn=(0,tp.let)(n$),rr=to.bind(n7),ri=rr,ro=nL(nR.F4),ru=(0,eA.apS)(nZ),ra=ru,rc=nL(nR.Xl),rf=function(e){return function(t){return function(n){for(var r=[e(0,nR.YM(t))(n)],i=1;i<t.length;i++)r.push(e(i,t[i])(n));return r}}},rl=function(e){var t=rf(e);return function(e){return nR.Od(e)?t(e):rc}},rp=rl,rd=function(e){return rl(function(t,n){return e(n)})},rs=rd(e8.identity),rm=nU,rh=nU,rv=n5,ry=n5,rg={URI:nH,map:nE,of:nL,ap:nP,chain:nU,promap:nW,compose:nk,id:nY,first:nB,second:nK,left:nV,right:nz},r_=(0,eA.getApplySemigroup)(nZ),rb=(0,eG.getApplicativeMonoid)(n8);function rS(e){return function(){return e.fromReader(nw())}}function rT(e){return e.fromReader}function rI(e){return function(t){return(0,e8.flow)(t,e.fromReader)}}function rR(e,t){var n=rI(e);return function(e){return function(r){return t.chain(r,n(e))}}}function rw(e,t){var n=rO(e,t);return function(e){return function(t){return n(t,e)}}}function rO(e,t){var n=(0,to.tap)(t);return function(t,r){return n(t,(0,e8.flow)(r,e.fromReader))}}var rx=function(){return function(e){return[e,e]}},rC=function(e){return function(){return[void 0,e]}},rM=function(e){return function(t){return[void 0,e(t)]}},rE=function(e){return function(t){return[e(t),t]}},rP=function(e,t){return(0,e8.pipe)(e,rW(t))},rk=function(e,t){return(0,e8.pipe)(e,rF(t))},rW=function(e){return function(t){return function(n){var r=t(n),i=r[0],o=r[1];return[e(i),o]}}},rF=function(e){return function(t){return function(n){var r=t(n),i=r[0],o=e(r[1]),u=o[0],a=o[1];return[i(u),a]}}},rD=function(e){return function(t){return[e,t]}},rN=(0,e8.dual)(2,function(e,t){return function(n){var r=e(n),i=r[0],o=r[1];return t(i)(o)}}),rL=rN(e8.identity),rU="State",rA={URI:rU,map:rP},rj=(0,tp.flap)(rA),rq={URI:rU,of:rD},rG={URI:rU,map:rP,ap:rk},rY=(0,eA.apFirst)(rG),rB=(0,eA.apSecond)(rG),rK={URI:rU,map:rP,ap:rk,of:rD},rV={URI:rU,map:rP,ap:rk,chain:rN},rz={URI:rU,map:rP,ap:rk,of:rD,chain:rN},rH=(0,e8.dual)(2,to.tap(rV)),r$={URI:rU,fromState:e8.identity},rX=function(e){return function(t){return t(e)[0]}},rJ=function(e){return function(t){return t(e)[1]}},rZ=(0,tp.bindTo)(rA),rQ=(0,tp.let)(rA),r0=to.bind(rV),r1=(0,eA.apS)(rG),r2=function(e){return function(t){return function(n){for(var r=e(0,nR.YM(t))(n),i=r[0],o=r[1],u=[i],a=o,c=1;c<t.length;c++){var f=e(c,t[c])(a),l=f[0],p=f[1];u.push(l),a=p}return[u,a]}}},r8=function(e){var t=r2(e);return function(e){return nR.Od(e)?t(e):rD(nR.Xl)}},r7=r8,r3=function(e){return r8(function(t,n){return e(n)})},r5=r3(e8.identity),r4=rN,r9=rH,r6=function(e,t){return e(t)[0]},ie=function(e,t){return e(t)[1]},it=rz;function ir(e){return function(){return e.fromState(rx())}}function ii(e){return function(t){return e.fromState(rC(t))}}function io(e){return(0,e8.flow)(rM,e.fromState)}function iu(e){return(0,e8.flow)(rE,e.fromState)}function ia(e){return function(t){return(0,e8.flow)(t,e.fromState)}}function ic(e,t){var n=ia(e);return function(e){return function(r){return t.chain(r,n(e))}}}function il(e){return function(t){return(0,e8.flow)(t,e.fromTask)}}function ip(e,t){return function(n){var r=(0,e8.flow)(n,e.fromTask);return function(e){return t.chain(e,r)}}}function id(e,t){var n=is(e,t);return function(e){return function(t){return n(t,e)}}}function is(e,t){var n=(0,to.tap)(t);return function(t,r){return n(t,(0,e8.flow)(r,e.fromTask))}}function im(e){return function(t){return(0,e8.flow)(t,e.fromThese)}}function ih(e,t){return function(n){return function(r){return e.mapWithIndex(r,function(e,r){return t.mapWithIndex(r,function(t,r){return n([e,t],r)})})}}}function iv(e,t){var n=(0,tp.getFunctorComposition)(e,t).map,r=ih(e,t);return{map:n,mapWithIndex:function(e,t){return(0,e8.pipe)(e,r(t))}}}var iy=function(e,t){return(0,e8.pipe)(e,iO(t))},ig=function(e,t){return(0,e8.pipe)(e,ix(t))},i_=function(e,t,n){return(0,e8.pipe)(e,iF(t,n))},ib=function(e){return function(t,n){return(0,e8.pipe)(t,iD(e)(n))}},iS=function(e,t,n){return(0,e8.pipe)(e,iN(t,n))},iT=function(e,t){return(0,e8.pipe)(e,ij(t))},iI=function(e,t){return(0,e8.pipe)(e,iE(t))},iR=function(e){var t=iL(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},iw=tu.tailRec,iO=function(e){return function(t){return e(t)}},ix=function(e){return function(t){return t(e)}},iC=e8.identity,iM=(0,e8.dual)(2,function(e,t){return t(e)}),iE=function(e){return function(t){return e(t)}},iP=e8.identity,ik=iE(e8.identity),iW=iM(e8.identity),iF=function(e,t){return function(n){return t(e,n)}},iD=function(){return function(e){return function(t){return e(t)}}},iN=function(e,t){return function(n){return t(n,e)}},iL=function(e){return function(t){return function(n){return e.map(t(n),e8.identity)}}},iU=function(e){return function(t){return e.map(t,e8.identity)}},iA=function(){return e8.identity},ij=iA,iq="Identity",iG=e8.identity,iY=e8.identity,iB={URI:iq,map:iy},iK=(0,tp.flap)(iB),iV={URI:iq,of:iC},iz={URI:iq,map:iy,ap:ig},iH=(0,eA.apFirst)(iz),i$=(0,eA.apSecond)(iz),iX={URI:iq,map:iy,ap:ig,of:iC},iJ={URI:iq,map:iy,ap:ig,chain:iM},iZ={URI:iq,map:iy,ap:ig,of:iC,chain:iM},iQ=(0,to.chainFirst)(iJ),i0={URI:iq,reduce:i_,foldMap:ib,reduceRight:iS},i1={URI:iq,map:iy,reduce:i_,foldMap:ib,reduceRight:iS,traverse:iR,sequence:iU},i2={URI:iq,map:iy,alt:iT},i8={URI:iq,map:iy,extend:iI,extract:iP},i7={URI:iq,map:iy,ap:ig,chain:iM,chainRec:iw},i3=iC(nR.F4),i5=(0,tp.bindTo)(iB),i4=(0,tp.let)(iB),i9=(0,to.bind)(iJ),i6=(0,eA.apS)(iz),oe=iM,ot={URI:iq,map:iy,ap:ig,of:iC,chain:iM,reduce:i_,foldMap:ib,reduceRight:iS,traverse:iR,sequence:iU,alt:iT,extract:iP,extend:iI,chainRec:iw},on=function(e,t){return function(){return t(e())}},or=function(e,t){return function(){return e()(t())}},oi=function(e,t){return function(){for(var n=t(e)();"Left"===n._tag;)n=t(n.left)();return n.right}},oo=function(e){return function(t){return on(t,e)}},ou=function(e){return function(t){return or(t,e)}},oa=e8.constant,oc=(0,e8.dual)(2,function(e,t){return function(){return t(e())()}}),of=oc(e8.identity),ol="IO",op={URI:ol,map:on},od=(0,e8.dual)(2,(0,tp.as)(op)),os=(0,tp.asUnit)(op),om=(0,tp.flap)(op),oh={URI:ol,of:oa},ov={URI:ol,map:on,ap:or},oy=(0,eA.apFirst)(ov),og=(0,eA.apSecond)(ov),o_={URI:ol,map:on,ap:or,of:oa},ob={URI:ol,map:on,ap:or,chain:oc},oS={URI:ol,map:on,ap:or,of:oa,chain:oc},oT=(0,e8.dual)(2,to.tap(ob)),oI=e8.identity,oR={URI:ol,map:on,ap:or,of:oa,chain:oc,fromIO:oI},ow={URI:ol,map:on,ap:or,chain:oc,chainRec:oi},oO={URI:ol,fromIO:e8.identity},ox=oa(nR.F4),oC=(0,tp.bindTo)(op),oM=(0,tp.let)(op),oE=to.bind(ob),oP=(0,eA.apS)(ov),ok=oa(nR.Xl),oW=function(e){return function(t){return function(){for(var n=[e(0,nR.YM(t))()],r=1;r<t.length;r++)n.push(e(r,t[r])());return n}}},oF=function(e){var t=oW(e);return function(e){return nR.Od(e)?t(e):ok}},oD=oF,oN=function(e){return oF(function(t,n){return e(n)})},oL=oN(e8.identity),oU=oc,oA=oT,oj={URI:ol,map:on,of:oa,ap:or,chain:oc,fromIO:oI,chainRec:oi},oq=(0,eA.getApplySemigroup)(ov),oG=(0,eG.getApplicativeMonoid)(o_),oY=tk(oh),oB=tP(oh),oK=tW(op),oV=tF(op),oz=oa,oH=oK,o$=tH(op),oX=o$,oJ=t$(oS),oZ=oJ,oQ=oJ,o0=oQ,o1=tX(oS),o2=o1,o8=function(e,t){return function(){return tE.tryCatch(e,t)}},o7=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return o8(function(){return e.apply(void 0,n)},t)}},o3=t2(op),o5=tJ(oS),o4=o5,o9=(0,e8.dual)(2,tQ(oS)),o6=function(e){return o9(uH(e))},ue=t0(oS),ut=t1(op),un=function(e,t){return(0,e8.pipe)(e,uu(t))},ur=function(e,t){return(0,e8.pipe)(e,up(t))},ui=function(e,t){return um(e,function(e){return(0,e8.pipe)(t,uu(e))})},uo=function(e,t){return(0,e8.pipe)(e,uy(t))},uu=tU(op),ua=(0,e8.dual)(3,tB(op)),uc=ua,uf=(0,e8.dual)(2,tV(op)),ul=uf,up=tA(ov),ud=up,us=oB,um=(0,e8.dual)(2,tq(oS)),uh=um(e8.identity),uv=uh,uy=tG(oS),ug=uy,u_=oY,ub="IOEither";function uS(e){var t=(0,eA.ap)(ov,tE.getApplicativeValidation(e));return{URI:ub,_E:void 0,map:un,ap:function(e,n){return(0,e8.pipe)(e,t(n))},of:us}}function uT(e){var t=tz(oS,e);return{URI:ub,_E:void 0,map:un,alt:function(e,n){return(0,e8.pipe)(e,t(n))}}}var uI=function(e){var t=tE.getCompactable(e);return{URI:ub,_E:void 0,compact:tm(op,t),separate:th(op,t,tE.Functor)}};function uR(e){var t=tE.getFilterable(e),n=uI(e),r=ne(op,t),i=nt(op,t),o=nn(op,t),u=nr(op,t);return{URI:ub,_E:void 0,map:un,compact:n.compact,separate:n.separate,filter:function(e,t){return(0,e8.pipe)(e,r(t))},filterMap:function(e,t){return(0,e8.pipe)(e,i(t))},partition:function(e,t){return(0,e8.pipe)(e,o(t))},partitionMap:function(e,t){return(0,e8.pipe)(e,u(t))}}}var uw={URI:ub,map:un},uO=(0,e8.dual)(2,(0,tp.as)(uw)),ux=(0,tp.asUnit)(uw),uC=(0,tp.flap)(uw),uM={URI:ub,of:us},uE={URI:ub,bimap:ua,mapLeft:uf},uP={URI:ub,map:un,ap:ur},uk=(0,eA.apFirst)(uP),uW=uk,uF=(0,eA.apSecond)(uP),uD=uF,uN={URI:ub,map:un,ap:ur,of:us},uL={URI:ub,map:un,ap:ui,of:us},uU={URI:ub,map:un,ap:ur,chain:um},uA={URI:ub,map:un,ap:ur,of:us,chain:um},uj={URI:ub,fromEither:oz},uq={URI:ub,fromIO:oH},uG=(0,e8.dual)(2,to.tap(uU)),uY=(0,e8.dual)(2,(0,n_.tapEither)(uj,uU)),uB=(0,e8.dual)(2,nI(uq,uU)),uK={URI:ub,map:un,alt:uo},uV={URI:ub,map:un,ap:ur,of:us,chain:um,fromIO:oH},uz={URI:ub,map:un,ap:ur,of:us,chain:um,throwError:u_},uH=nb(uq),u$=uB,uX=(0,n_.fromOption)(uj),uJ=(0,n_.fromOptionK)(uj),uZ=(0,n_.chainOptionK)(uj,uU),uQ=uZ,u0={fromEither:uj.fromEither},u1=nR.uL(u0),u2=nR.WE(u0),u8={flatMap:um},u7=nR.ny(u0,u8),u3=nR.hU(u0,u8),u5=nR.iu(u0,u8),u4=nR.we({fromIO:oH},u8),u9=u4,u6=u5,ae=u5,at=uY,an=uY,ar=(0,n_.fromPredicate)(uj),ai=(0,n_.filterOrElse)(uj,uU),ao=ai,au=(0,n_.fromEitherK)(uj),aa=function(e,t,n){return ac(e,t,n)},ac=function(e,t,n){return um(e,function(e){return oc(t(e),function(t){return um(n(e,t),function(){return oa(t)})})})},af=us(nR.F4),al=(0,tp.bindTo)(uw),ap=(0,tp.let)(uw),ad=to.bind(uU),as=ad,am=(0,eA.apS)(uP),ah=am,av=us(nR.Xl),ay=function(e){return(0,e8.flow)(oW(e),oo(tE.traverseReadonlyNonEmptyArrayWithIndex(e8.SK)))},ag=function(e){var t=ay(e);return function(e){return nR.Od(e)?t(e):av}},a_=function(e){return function(t){return function(){var n=e(0,nR.YM(t))();if(nR.nM(n))return n;for(var r=[n.right],i=1;i<t.length;i++){var o=e(i,t[i])();if(nR.nM(o))return o;r.push(o.right)}return nR.F2(r)}}},ab=function(e){var t=a_(e);return function(e){return nR.Od(e)?t(e):av}},aS=ag,aT=function(e){return ag(function(t,n){return e(n)})},aI=aT(e8.identity),aR=ab,aw=function(e){return ab(function(t,n){return e(n)})},aO=aw(e8.identity),ax=uN,aC=um,aM=um,aE=uG,aP=uG,ak=o9,aW=o9,aF={URI:ub,bimap:ua,mapLeft:uf,map:un,of:us,ap:ur,chain:um,alt:uo,fromIO:oH,throwError:u_},aD=(0,eA.getApplySemigroup)(uP),aN=(0,eG.getApplicativeMonoid)(uN),aL=function(e){return(0,eA.getApplySemigroup)(ov)(tE.getSemigroup(e))};function aU(e){var t=uS(e),n=uT(e);return{URI:ub,_E:void 0,map:un,ap:t.ap,of:us,chain:um,bimap:ua,mapLeft:uf,alt:n.alt,fromIO:oH,throwError:u_}}function aA(e){return(0,e8.flow)(td.some,e.of)}function aj(e){return(0,e8.constant)(e.of(td.none))}function aq(e){return function(t){return e.map(t,td.some)}}function aG(e){return(0,e8.flow)(td.fromNullable,e.of)}function aY(e){var t=aG(e);return function(e){return(0,e8.flow)(e,t)}}function aB(e){var t=a0(e),n=aY(e);return function(e){return t(n(e))}}function aK(e){return function(t){return(0,e8.flow)(t,e.of)}}function aV(e){var t=a0(e),n=aK(e);return function(e){return t(n(e))}}function az(e){return function(t){return function(n){return e.of(td.fromPredicate(t)(n))}}}function aH(e){return(0,e8.flow)(td.fromEither,e.of)}function a$(e){return function(t,n){return function(r){return e.map(r,td.match(t,n))}}}function aX(e){return function(t,n){return function(r){return e.chain(r,td.match(t,n))}}}function aJ(e){return function(t){return function(n){return e.chain(n,td.match(t,e.of))}}}function aZ(e){return(0,tp.map)(e,td.Functor)}function aQ(e){return(0,eA.ap)(e,td.Apply)}function a0(e){var t=a1(e);return function(e){return function(n){return t(n,e)}}}function a1(e){var t=aj(e);return function(n,r){return e.chain(n,td.match(function(){return t()},r))}}function a2(e){var t=aA(e);return function(n){return function(r){return e.chain(r,td.match(n,t))}}}function a8(e){var t=aQ(e),n=aZ(e),r=a0(e),i=a2(e),o=aX(e),u=aJ(e),a=aj(e);return{map:function(e,t){return(0,e8.pipe)(e,n(t))},ap:function(e,n){return(0,e8.pipe)(e,t(n))},of:aA(e),chain:function(e,t){return(0,e8.pipe)(e,r(t))},alt:function(e,t){return(0,e8.pipe)(e,i(t))},fold:function(e,t,n){return(0,e8.pipe)(e,o(t,n))},getOrElse:function(e,t){return(0,e8.pipe)(e,u(t))},fromM:aq(e),none:function(){return a()}}}var a7=n(28957),a3=aA(oh),a5=az(oh),a4=oa,a9=aH(oh),a6=aq(op),ce=oo(td.fromEither),ct=a$(op),cn=ct,cr=aX(ob),ci=cr,co=cr,cu=aJ(oS),ca=cu,cc=oo(td.toUndefined),cf=oo(td.toNullable),cl=aG(oh),cp=aY(oh),cd=aB(oS),cs=aK(oh),cm=aZ(op),ch=aQ(ov),cv=a3,cy=(0,e8.dual)(2,a1(oS)),cg=cy(e8.identity),c_=a2(oS),cb=c_,cS=aj(oh),cT=cS(),cI=tm(op,td.Compactable),cR=th(op,td.Compactable,td.Functor),cw=ne(op,td.Filterable),cO=nt(op,td.Filterable),cx=nn(op,td.Filterable),cC=nr(op,td.Filterable),cM=function(e,t){return(0,e8.pipe)(e,cm(t))},cE=function(e,t){return(0,e8.pipe)(e,ch(t))},cP=function(e,t){return(0,e8.pipe)(e,c_(t))},ck=function(e,t){return(0,e8.pipe)(e,cw(t))},cW=function(e,t){return(0,e8.pipe)(e,cO(t))},cF=function(e,t){return(0,e8.pipe)(e,cx(t))},cD=function(e,t){return(0,e8.pipe)(e,cC(t))},cN="IOOption",cL={URI:cN,map:cM},cU=(0,e8.dual)(2,(0,tp.as)(cL)),cA=(0,tp.asUnit)(cL),cj=(0,tp.flap)(cL),cq={URI:cN,of:cv},cG={URI:cN,map:cM,ap:cE},cY=(0,eA.apFirst)(cG),cB=(0,eA.apSecond)(cG),cK={URI:cN,map:cM,ap:cE,of:cv},cV={URI:cN,map:cM,ap:cE,chain:cy},cz={URI:cN,fromEither:a9},cH={URI:cN,fromIO:a6},c$=(0,e8.dual)(2,to.tap(cV)),cX=(0,e8.dual)(2,(0,n_.tapEither)(cz,cV)),cJ=(0,e8.dual)(2,nI(cH,cV)),cZ={URI:cN,map:cM,alt:cP},cQ={URI:cN,zero:cS},c0=(0,a7.guard)(cQ,cq),c1={URI:cN,map:cM,ap:cE,of:cv,alt:cP,zero:cS},c2={URI:cN,map:cM,ap:cE,of:cv,chain:cy},c8={URI:cN,map:cM,ap:cE,of:cv,chain:cy,fromIO:a6},c7={URI:cN,compact:cI,separate:cR},c3={URI:cN,map:cM,compact:cI,separate:cR,filter:ck,filterMap:cW,partition:cF,partitionMap:cD},c5={flatMap:cy},c4={fromIO:cH.fromIO},c9=nR.we(c4,c5),c6=(0,e8.dual)(2,function(e,t){return cy(e,cs(t))}),fe=nR.iu({fromEither:a9},c5),ft=(0,e8.dual)(2,function(e,t){return cy(e,cp(t))}),fn=nb(cH),fr=c9,fi=cJ,fo=(0,n_.fromEitherK)(cz),fu=fe,fa=cX,fc=c6,ff=cv(nR.F4),fl=(0,tp.bindTo)(cL),fp=(0,tp.let)(cL),fd=to.bind(cV),fs=(0,eA.apS)(cG),fm=cv(nR.Xl),fh=function(e){return(0,e8.flow)(oW(e),oo(td.traverseReadonlyNonEmptyArrayWithIndex(e8.SK)))},fv=function(e){var t=fh(e);return function(e){return nR.Od(e)?t(e):fm}},fy=cy,fg=c$,f_=function(){function e(e){var t=this;this.value=e,this.read=function(){return t.value},this.write=this.write.bind(this),this.modify=this.modify.bind(this)}return e.prototype.write=function(e){var t=this;return function(){t.value=e}},e.prototype.modify=function(e){var t=this;return function(){t.value=e(t.value)}},e}();function fb(e){return function(){return new f_(e)}}var fS=function(e){return(0,tE.tryCatch)(function(){return JSON.parse(e)},e8.identity)},fT=function(e){return(0,tE.tryCatch)(function(){var t=JSON.stringify(e);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},e8.identity)},fI=n(76113),fR=n(55116),fw=n(96576),fO=n(43586),fx=function(e,t,n){return function(r){return -1===r?e():0===r?t():n()}},fC=fx,fM=function(e){return -1===e?1:1===e?-1:0},fE={equals:function(e,t){return e===t}},fP={concat:function(e,t){return 0!==e?e:t}},fk={concat:fP.concat,empty:0},fW=function(e){return e<=-1?-1:e>=1?1:0},fF=fM,fD=fP,fN=fE,fL=fk,fU=n(18896),fA=function(){return Math.random()};function fj(e,t){return(0,e8.pipe)(fA,oo(function(n){return Math.floor((t-e+1)*n+e)}))}function fq(e,t){return(0,e8.pipe)(fA,oo(function(n){return(t-e)*n+e}))}var fG=(0,e8.pipe)(fA,oo(function(e){return e<.5})),fY=function(e){return(0,e8.pipe)(fj(0,e.length-1),oo(function(t){return e[t]}))},fB=tk(nJ),fK=tP(nJ),fV=tW(n$),fz=tF(n$),fH=nL,f$=fV,fX=tH(n$),fJ=fX,fZ=t$(n3),fQ=fZ,f0=fZ,f1=f0,f2=tX(n3),f8=f2,f7=t2(n$),f3=nx,f5=nC,f4=f5,f9=tJ(n3),f6=f9,le=(0,e8.dual)(2,tQ(n3)),lt=t0(n3),ln=t1(n$),lr=function(e,t){return(0,e8.pipe)(e,lu(t))},li=function(e,t){return(0,e8.pipe)(e,lp(t))},lo=function(e,t){return(0,e8.pipe)(e,ly(t))},lu=tU(n$),la=(0,e8.dual)(3,tB(n$)),lc=la,lf=(0,e8.dual)(2,tV(n$)),ll=lf,lp=tA(nZ),ld=lp,ls=fK,lm=(0,e8.dual)(2,tq(n3)),lh=lm(e8.identity),lv=lh,ly=tG(n3),lg=ly,l_=fB,lb="ReaderEither",lS=function(e){var t=tE.getCompactable(e);return{URI:lb,_E:void 0,compact:tm(n$,t),separate:th(n$,t,tE.Functor)}};function lT(e){var t=tE.getFilterable(e),n=lS(e),r=ne(n$,t),i=nt(n$,t),o=nn(n$,t),u=nr(n$,t);return{URI:lb,_E:void 0,map:lr,compact:n.compact,separate:n.separate,filter:function(e,t){return(0,e8.pipe)(e,r(t))},filterMap:function(e,t){return(0,e8.pipe)(e,i(t))},partition:function(e,t){return(0,e8.pipe)(e,o(t))},partitionMap:function(e,t){return(0,e8.pipe)(e,u(t))}}}function lI(e){var t=(0,eA.ap)(nZ,tE.getApplicativeValidation(e));return{URI:lb,_E:void 0,map:lr,ap:function(e,n){return(0,e8.pipe)(e,t(n))},of:ls}}function lR(e){var t=tz(n3,e);return{URI:lb,_E:void 0,map:lr,alt:function(e,n){return(0,e8.pipe)(e,t(n))}}}var lw={URI:lb,map:lr},lO=(0,e8.dual)(2,(0,tp.as)(lw)),lx=(0,tp.asUnit)(lw),lC=(0,tp.flap)(lw),lM={URI:lb,of:ls},lE={URI:lb,map:lr,ap:li},lP=(0,eA.apFirst)(lE),lk=lP,lW=(0,eA.apSecond)(lE),lF=lW,lD={URI:lb,map:lr,ap:li,of:ls},lN={URI:lb,map:lr,ap:li,chain:lm},lL={URI:lb,map:lr,ap:li,of:ls,chain:lm},lU={URI:lb,fromEither:fH},lA={URI:lb,fromReader:f$},lj=(0,e8.dual)(2,to.tap(lN)),lq=(0,e8.dual)(2,(0,n_.tapEither)(lU,lN)),lG=(0,e8.dual)(2,rO(lA,lN)),lY={URI:lb,bimap:la,mapLeft:lf},lB={URI:lb,map:lr,alt:lo},lK=rS(lA),lV=rT(lA),lz=rI(lA),lH=lG,l$=lG,lX={URI:lb,map:lr,ap:li,of:ls,chain:lm,throwError:l_},lJ=(0,n_.fromOption)(lU),lZ=(0,n_.fromOptionK)(lU),lQ=(0,n_.chainOptionK)(lU,lN),l0=lQ,l1={fromEither:lU.fromEither},l2={fromReader:lA.fromReader},l8=nR.uL(l1),l7=nR.WE(l1),l3={flatMap:lm},l5=nR.ny(l1,l3),l4=nR.hU(l1,l3),l9=nR.iu(l1,l3),l6=nR.on(l2,l3),pe=l9,pt=l9,pn=lq,pr=lq,pi=l6,po=l6,pu=(0,n_.fromPredicate)(lU),pa=(0,n_.filterOrElse)(lU,lN),pc=pa,pf=(0,n_.fromEitherK)(lU),pl=ls(nR.F4),pp=(0,tp.bindTo)(lw),pd=(0,tp.let)(lw),ps=to.bind(lN),pm=ps,ph=(0,eA.apS)(lE),pv=ph,py=ls(nR.Xl),pg=function(e){return(0,e8.flow)(rf(e),nF(tE.traverseReadonlyNonEmptyArrayWithIndex(e8.SK)))},p_=function(e){var t=pg(e);return function(e){return nR.Od(e)?t(e):py}},pb=p_,pS=function(e){return p_(function(t,n){return e(n)})},pT=pS(e8.identity),pI=lm,pR=lm,pw=lj,pO=lj,px=le,pC=le,pM={URI:lb,bimap:la,mapLeft:lf,map:lr,of:ls,ap:li,chain:lm,alt:lo,throwError:fB},pE=(0,eA.getApplySemigroup)(lE),pP=(0,eG.getApplicativeMonoid)(lD),pk=function(e){return(0,eA.getApplySemigroup)(nZ)(tE.getSemigroup(e))};function pW(e){var t=lI(e),n=lR(e);return{URI:lb,_E:void 0,map:lr,ap:t.ap,of:ls,chain:lm,bimap:la,mapLeft:lf,alt:n.alt,throwError:l_}}function pF(e){return function(t){return function(){return e.of(t)}}}function pD(e){return function(t){return function(n){return function(r){return e.map(n(r),t)}}}}function pN(e){return function(t){return function(n){return function(r){return e.ap(n(r),t(r))}}}}function pL(e){var t=pU(e);return function(e){return function(n){return t(n,e)}}}function pU(e){return function(t,n){return function(r){return e.chain(t(r),function(e){return n(e)(r)})}}}function pA(e){return function(t){return(0,e8.flow)(t,e.of)}}function pj(e){return function(t){return(0,e8.flow)(t,e)}}function pq(e){var t=pN(e),n=pD(e),r=pL(e);return{map:function(e,t){return(0,e8.pipe)(e,n(t))},ap:function(e,n){return(0,e8.pipe)(e,t(n))},of:pF(e),chain:function(e,t){return(0,e8.pipe)(e,r(t))},ask:function(){return e.of},asks:function(t){return(0,e8.flow)(t,e.of)},local:function(e,t){return function(n){return e(t(n))}},fromReader:pA(e),fromM:function(e){return function(){return e}}}}var pG=pA(oh),pY=nL,pB=nx,pK=nC,pV=pK,pz=function(e,t){return(0,e8.pipe)(e,p$(t))},pH=function(e,t){return(0,e8.pipe)(e,pX(t))},p$=pD(op),pX=pN(ov),pJ=pX,pZ=pF(oh),pQ=(0,e8.dual)(2,pU(oS)),p0=pQ(e8.identity),p1=p0,p2="ReaderIO",p8={URI:p2,map:pz},p7=(0,e8.dual)(2,(0,tp.as)(p8)),p3=(0,tp.asUnit)(p8),p5=(0,tp.flap)(p8),p4={URI:p2,of:pZ},p9={URI:p2,map:pz,ap:pH},p6=(0,eA.apFirst)(p9),de=(0,eA.apSecond)(p9),dt={URI:p2,map:pz,ap:pH,of:pZ},dn={URI:p2,map:pz,ap:pH,chain:pQ},dr={URI:p2,map:pz,of:pZ,ap:pH,chain:pQ},di={URI:p2,map:pz,of:pZ,ap:pH,chain:pQ,fromIO:pY},du={URI:p2,fromIO:pY},da={URI:p2,fromReader:pG},dc={flatMap:pQ},df={fromIO:du.fromIO},dl=nR.we(df,dc),dp=nR.on({fromReader:pG},dc),dd=(0,e8.dual)(2,to.tap(dn)),ds=(0,e8.dual)(2,nI(du,dn)),dm=(0,e8.dual)(2,rO(da,dn)),dh=nb(du),dv=dl,dy=ds,dg=rS(da),d_=rT(da),db=rI(da),dS=dp,dT=dp,dI=dm,dR=dm,dw=pZ(nR.F4),dO=(0,tp.bindTo)(p8),dx=to.bind(dn),dC=dx,dM=(0,eA.apS)(p9),dE=dM,dP=pZ(nR.Xl),dk=function(e){return(0,e8.flow)(rf(e),nF(oW(e8.SK)))},dW=function(e){var t=dk(e);return function(e){return nR.Od(e)?t(e):dP}},dF=dW,dD=function(e){return dW(function(t,n){return e(n)})},dN=dD(e8.identity),dL=pQ,dU=pQ,dA=dd,dj=dd,dq=function(e){return function(){return Promise.resolve().then(e)}};function dG(e){return function(t){return function(){return new Promise(function(n){setTimeout(function(){Promise.resolve().then(t).then(n)},e)})}}}var dY=function(e,t){return(0,e8.pipe)(e,dV(t))},dB=function(e,t){return(0,e8.pipe)(e,dz(t))},dK=function(e,t){return d$(e,function(e){return(0,e8.pipe)(t,dV(e))})},dV=function(e){return function(t){return function(){return Promise.resolve().then(t).then(e)}}},dz=function(e){return function(t){return function(){return Promise.all([Promise.resolve().then(t),Promise.resolve().then(e)]).then(function(e){var t;return(0,e[0])(e[1])})}}},dH=function(e){return function(){return Promise.resolve(e)}},d$=(0,e8.dual)(2,function(e,t){return function(){return Promise.resolve().then(e).then(function(e){return t(e)()})}}),dX=d$(e8.identity),dJ="Task";function dZ(){return{concat:function(e,t){return function(){return Promise.race([Promise.resolve().then(e),Promise.resolve().then(t)])}},empty:sm}}var dQ={URI:dJ,map:dY},d0=(0,e8.dual)(2,(0,tp.as)(dQ)),d1=(0,tp.asUnit)(dQ),d2=(0,tp.flap)(dQ),d8={URI:dJ,of:dH},d7={URI:dJ,map:dY,ap:dB},d3=(0,eA.apFirst)(d7),d5=(0,eA.apSecond)(d7),d4={URI:dJ,map:dY,ap:dB,of:dH},d9={URI:dJ,map:dY,ap:dK},d6={URI:dJ,map:dY,ap:dK,of:dH},se={URI:dJ,map:dY,ap:dB,chain:d$},st={URI:dJ,map:dY,of:dH,ap:dB,chain:d$},sn={URI:dJ,map:dY,of:dH,ap:dB,chain:d$,fromIO:dq},sr=e8.identity,si={URI:dJ,map:dY,of:dH,ap:dB,chain:d$,fromIO:dq,fromTask:sr},so={URI:dJ,fromIO:dq},su={fromIO:so.fromIO},sa=nR.we(su,{flatMap:d$}),sc=(0,e8.dual)(2,to.tap(se)),sf=(0,e8.dual)(2,nI(so,se)),sl=nb(so),sp=sa,sd=sf,ss={URI:dJ,fromIO:dq,fromTask:sr},sm=function(){return new Promise(function(e){})},sh=dH(nR.F4),sv=(0,tp.bindTo)(dQ),sy=(0,tp.let)(dQ),sg=to.bind(se),s_=(0,eA.apS)(d7),sb=dH(nR.Xl),sS=function(e){return function(t){return function(){return Promise.all(t.map(function(t,n){return Promise.resolve().then(function(){return e(n,t)()})}))}}},sT=function(e){var t=sS(e);return function(e){return nR.Od(e)?t(e):sb}},sI=function(e){return function(t){return function(){return nR.Gb(t).reduce(function(t,n,r){return t.then(function(t){return Promise.resolve().then(e(r+1,n)).then(function(e){return t.push(e),t})})},Promise.resolve().then(e(0,nR.YM(t))).then(nR.ri))}}},sR=function(e){var t=sI(e);return function(e){return nR.Od(e)?t(e):sb}},sw=sT,sO=function(e){return sT(function(t,n){return e(n)})},sx=sO(e8.identity),sC=sR,sM=function(e){return sR(function(t,n){return e(n)})},sE=sM(e8.identity),sP=d$,sk=sc,sW={URI:dJ,map:dY,of:dH,ap:dB,chain:d$,fromIO:dq,fromTask:sr},sF={URI:dJ,map:dY,of:dH,ap:dK,chain:d$,fromIO:dq,fromTask:sr},sD=(0,eA.getApplySemigroup)(d9),sN=(0,eG.getApplicativeMonoid)(d6),sL=pA(d8),sU=nL,sA=(0,e8.flow)(dq,sU),sj=nF(dq),sq=nx,sG=nC,sY=sG,sB=function(e,t){return(0,e8.pipe)(e,sz(t))},sK=function(e,t){return(0,e8.pipe)(e,sH(t))},sV=function(e,t){return sJ(e,function(e){return(0,e8.pipe)(t,sz(e))})},sz=pD(dQ),sH=pN(d7),s$=sH,sX=pF(d8),sJ=(0,e8.dual)(2,pU(st)),sZ=sJ(e8.identity),sQ=sZ,s0="ReaderTask",s1={URI:s0,map:sB},s2=(0,e8.dual)(2,(0,tp.as)(s1)),s8=(0,tp.asUnit)(s1),s7=(0,tp.flap)(s1),s3={URI:s0,of:sX},s5={URI:s0,map:sB,ap:sK},s4=(0,eA.apFirst)(s5),s9=(0,eA.apSecond)(s5),s6={URI:s0,map:sB,ap:sK,of:sX},me={URI:s0,map:sB,ap:sV},mt={URI:s0,map:sB,ap:sV,of:sX},mn={URI:s0,map:sB,ap:sK,chain:sJ},mr={URI:s0,map:sB,of:sX,ap:sK,chain:sJ},mi={URI:s0,map:sB,of:sX,ap:sK,chain:sJ,fromIO:sA},mo={URI:s0,map:sB,of:sX,ap:sK,chain:sJ,fromIO:sA,fromTask:sU},mu={URI:s0,fromIO:sA},ma={URI:s0,fromIO:sA,fromTask:sU},mc={URI:s0,fromReader:sL},mf={flatMap:sJ},ml={fromIO:mu.fromIO},mp=nR.we(ml,mf),md=nR.D9({fromTask:sU},mf),ms=nR.on({fromReader:sL},mf),mm=(0,e8.dual)(2,function(e,t){return sJ(e,mE(t))}),mh=(0,e8.dual)(2,to.tap(mn)),mv=(0,e8.dual)(2,nI(mu,mn)),my=(0,e8.dual)(2,rO(mc,mn)),mg=(0,e8.dual)(2,is(ma,mn)),m_=(0,e8.dual)(2,function(e,t){return mh(e,mE(t))}),mb=nb(mu),mS=mp,mT=mv,mI=rS(mc),mR=rT(mc),mw=rI(mc),mO=ms,mx=ms,mC=my,mM=my,mE=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return sj(e.apply(void 0,t))}},mP=mm,mk=mm,mW=m_,mF=m_,mD=il(ma),mN=md,mL=mg,mU=sX(nR.F4),mA=(0,tp.bindTo)(s1),mj=(0,tp.let)(s1),mq=to.bind(mn),mG=mq,mY=(0,eA.apS)(s5),mB=mY,mK=sX(nR.Xl),mV=function(e){return(0,e8.flow)(rf(e),nF(sS(e8.SK)))},mz=function(e){var t=mV(e);return function(e){return nR.Od(e)?t(e):mK}},mH=function(e){return(0,e8.flow)(rf(e),nF(sI(e8.SK)))},m$=function(e){var t=mH(e);return function(e){return nR.Od(e)?t(e):mK}},mX=mz,mJ=function(e){return mz(function(t,n){return e(n)})},mZ=mJ(e8.identity),mQ=m$,m0=function(e){return m$(function(t,n){return e(n)})},m1=sJ,m2=sJ,m8=mh,m7=mh,m3=m0(e8.identity),m5={URI:s0,map:sB,of:sX,ap:sK,chain:sJ,fromIO:sA,fromTask:sU},m4={URI:s0,map:sB,of:sX,ap:sV,chain:sJ,fromIO:sA,fromTask:sU},m9=(0,eA.getApplySemigroup)(me),m6=(0,eG.getApplicativeMonoid)(mt);function he(e,t){return e(t)()}var ht=function(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=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 u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(c){a=[6,c],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},hn=tk(d8),hr=tP(d8),hi=tW(dQ),ho=tF(dQ),hu=(0,e8.flow)(dq,hi),ha=(0,e8.flow)(dq,ho),hc=hu,hf=hi,hl=dH,hp=dq,hd=function(e){return dV(tE.fromOption(e))},hs=tH(dQ),hm=hs,hh=t$(st),hv=hh,hy=hh,hg=hy,h_=tX(st),hb=h_,hS=function(e,t){return function(){var n,r,i,o;return n=void 0,r=void 0,i=void 0,o=function(){var n;return ht(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e().then(nR.F2)];case 1:return[2,r.sent()];case 2:return n=r.sent(),[2,nR.t$(t(n))];case 3:return[2]}})},new(i||(i=Promise))(function(e,t){function u(e){try{c(o.next(e))}catch(n){t(n)}}function a(e){try{c(o.throw(e))}catch(n){t(n)}}function c(t){var n;t.done?e(t.value):((n=t.value)instanceof i?n:new i(function(e){e(n)})).then(u,a)}c((o=o.apply(n,r||[])).next())})}},hT=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return hS(function(){return e.apply(void 0,n)},t)}},hI=t2(dQ),hR=tD(d8),hw=tN(d8),hO=tL(st),hx=tJ(st),hC=hx,hM=(0,e8.dual)(2,tQ(st)),hE=function(e){return hM(vH(e))},hP=function(e){return hM(vJ(e))},hk=t0(st),hW=t1(dQ),hF=function(e){var t=hd(e);return function(e){return(0,e8.flow)(e,t)}},hD=function(e){return function(t){return function(n){return h$(n,hF(e)(t))}}},hN=hD,hL=function(e){return(0,e8.flow)(e,hp)},hU=function(e,t){return(0,e8.pipe)(e,hG(t))},hA=function(e,t){return(0,e8.pipe)(e,hz(t))},hj=function(e,t){return h$(e,function(e){return(0,e8.pipe)(t,hG(e))})},hq=function(e,t){return(0,e8.pipe)(e,hZ(t))},hG=tU(dQ),hY=(0,e8.dual)(3,tB(dQ)),hB=hY,hK=(0,e8.dual)(2,tV(dQ)),hV=hK,hz=tA(d7),hH=hz,h$=(0,e8.dual)(2,tq(st)),hX=h$(e8.identity),hJ=hX,hZ=tG(st),hQ=hZ,h0=hr,h1=hn,h2="TaskEither";function h8(e,t){var n=(0,eA.ap)(e,tE.getApplicativeValidation(t));return{URI:h2,_E:void 0,map:hU,ap:function(e,t){return(0,e8.pipe)(e,n(t))},of:h0}}function h7(e){var t=tz(st,e);return{URI:h2,_E:void 0,map:hU,alt:function(e,n){return(0,e8.pipe)(e,t(n))}}}var h3=function(e){var t=tE.getCompactable(e);return{URI:h2,_E:void 0,compact:tm(dQ,t),separate:th(dQ,t,tE.Functor)}};function h5(e){var t=tE.getFilterable(e),n=h3(e),r=ne(dQ,t),i=nt(dQ,t),o=nn(dQ,t),u=nr(dQ,t);return{URI:h2,_E:void 0,map:hU,compact:n.compact,separate:n.separate,filter:function(e,t){return(0,e8.pipe)(e,r(t))},filterMap:function(e,t){return(0,e8.pipe)(e,i(t))},partition:function(e,t){return(0,e8.pipe)(e,o(t))},partitionMap:function(e,t){return(0,e8.pipe)(e,u(t))}}}var h4={URI:h2,map:hU},h9=(0,e8.dual)(2,(0,tp.as)(h4)),h6=(0,tp.asUnit)(h4),ve=(0,tp.flap)(h4),vt={URI:h2,of:h0},vn={URI:h2,map:hU,ap:hA},vr=(0,eA.apFirst)(vn),vi=vr,vo=(0,eA.apSecond)(vn),vu=vo,va={URI:h2,map:hU,ap:hA,of:h0},vc={URI:h2,map:hU,ap:hj},vf={URI:h2,map:hU,ap:hj,of:h0},vl={URI:h2,map:hU,ap:hA,chain:h$},vp={URI:h2,map:hU,ap:hA,chain:h$,of:h0},vd={URI:h2,map:hU,ap:hA,chain:h$,of:h0,fromIO:hc},vs={URI:h2,map:hU,ap:hA,chain:h$,of:h0,fromIO:hc,fromTask:hf},vm={URI:h2,map:hU,ap:hA,chain:h$,of:h0,throwError:h1},vh={URI:h2,fromEither:hl},vv={URI:h2,fromIO:hc},vy={URI:h2,fromIO:hc,fromTask:hf},vg=(0,e8.dual)(2,to.tap(vl)),v_=(0,e8.dual)(2,(0,n_.tapEither)(vh,vl)),vb=(0,e8.dual)(2,nI(vv,vl)),vS=(0,e8.dual)(2,is(vy,vl)),vT={URI:h2,bimap:hY,mapLeft:hK},vI={URI:h2,map:hU,alt:hq},vR=(0,n_.fromOption)(vh),vw=(0,n_.fromOptionK)(vh),vO=(0,n_.chainOptionK)(vh,vl),vx=vO,vC={fromEither:vh.fromEither},vM=nR.uL(vC),vE=nR.WE(vC),vP={flatMap:h$},vk={fromIO:vv.fromIO},vW=nR.ny(vC,vP),vF=nR.hU(vC,vP),vD=nR.iu(vC,vP),vN=nR.we(vk,vP),vL=nR.D9({fromTask:hf},vP),vU=(0,e8.dual)(2,function(e,t){return h$(e,hL(t))}),vA=(0,e8.dual)(3,function(e,t,n){return h$(e,function(e){return hd(function(){return n(e)})(t(e))})}),vj=vD,vq=vD,vG=v_,vY=v_,vB=(0,n_.fromPredicate)(vh),vK=(0,n_.filterOrElse)(vh,vl),vV=vK,vz=(0,n_.fromEitherK)(vh),vH=nb(vv),v$=vN,vX=vb,vJ=il(vy),vZ=vL,vQ=vS,v0=vU,v1=vU;function v2(e){return function(){var t=Array.prototype.slice.call(arguments);return function(){return new Promise(function(n){var r=function(e,t){return null!=e?n(nR.t$(e)):n(nR.F2(t))};e.apply(null,t.concat(r))})}}}var v8=function(e,t,n){return v7(e,t,n)},v7=function(e,t,n){return h$(e,function(e){return d$(t(e),function(t){return h$(n(e,t),function(){return dH(t)})})})},v3=h0(nR.F4),v5=(0,tp.bindTo)(h4),v4=(0,tp.let)(h4),v9=to.bind(vl),v6=v9,ye=(0,eA.apS)(vn),yt=ye,yn=h0(nR.Xl),yr=function(e){return(0,e8.flow)(sS(e),dV(tE.traverseReadonlyNonEmptyArrayWithIndex(e8.SK)))},yi=function(e){var t=yr(e);return function(e){return nR.Od(e)?t(e):yn}},yo=function(e){return function(t){return function(){return nR.Gb(t).reduce(function(t,n,r){return t.then(function(i){return nR.nM(i)?t:e(r+1,n)().then(function(e){return nR.nM(e)?e:(i.right.push(e.right),i)})})},e(0,nR.YM(t))().then(tE.map(nR.ri)))}}},yu=function(e){var t=yo(e);return function(e){return nR.Od(e)?t(e):yn}},ya=yi,yc=function(e){return yi(function(t,n){return e(n)})},yf=yc(e8.identity),yl=yu,yp=function(e){return yu(function(t,n){return e(n)})},yd=yp(e8.identity),ys=h$,ym=h$,yh=vg,yv=vg,yy=hM,yg=hM,y_={URI:h2,bimap:hY,mapLeft:hK,map:hU,of:h0,ap:hA,chain:h$,alt:hq,fromIO:hc,fromTask:hf,throwError:h1},yb={URI:h2,bimap:hY,mapLeft:hK,map:hU,of:h0,ap:hj,chain:h$,alt:hq,fromIO:hc,fromTask:hf,throwError:h1},yS=(0,eA.getApplySemigroup)(vc),yT=(0,eG.getApplicativeMonoid)(vf),yI=function(e){return(0,eA.getApplySemigroup)(d9)(tE.getSemigroup(e))};function yR(e){var t=h8(d4,e),n=h7(e);return{URI:h2,_E:void 0,map:hU,ap:t.ap,of:h0,chain:h$,bimap:hY,mapLeft:hK,alt:n.alt,fromIO:hc,fromTask:hf,throwError:h1}}var yw=nL,yO=tk(s3),yx=tP(s3),yC=(0,e8.flow)(hi,yw),yM=(0,e8.flow)(ho,yw),yE=function(e){return(0,e8.flow)(e,hr)},yP=function(e){return(0,e8.flow)(e,hn)},yk=tW(s1),yW=tF(s1),yF=(0,e8.flow)(hu,yw),yD=(0,e8.flow)(ha,yw),yN=function(e){return(0,e8.flow)(e,hu)},yL=function(e){return(0,e8.flow)(e,ha)},yU=sX,yA=yE,yj=yF,yq=yC,yG=(0,e8.flow)(hp,yw),yY=function(e){return(0,e8.flow)(e,hl)},yB=tH(s1),yK=yB,yV=t$(mn),yz=yV,yH=yV,y$=yH,yX=tX(mr),yJ=yX,yZ=t2(s1),yQ=tD(s3),y0=tN(s3),y1=tL(mr),y2=nx,y8=nC,y7=y8,y3=tJ(mr),y5=y3,y4=(0,e8.dual)(2,tQ(mr)),y9=t0(mr),y6=t1(s1),ge=function(e){return(0,e8.flow)(e,yG)},gt=function(e){return(0,e8.flow)(e,yw)},gn=function(e){return(0,e8.flow)(e,yY)},gr=function(e,t){return(0,e8.pipe)(e,ga(t))},gi=function(e,t){return(0,e8.pipe)(e,gd(t))},go=function(e,t){return gh(e,function(e){return(0,e8.pipe)(t,ga(e))})},gu=function(e,t){return(0,e8.pipe)(e,gg(t))},ga=tU(s1),gc=(0,e8.dual)(3,tB(s1)),gf=gc,gl=(0,e8.dual)(2,tV(s1)),gp=gl,gd=tA(s5),gs=gd,gm=yx,gh=(0,e8.dual)(2,tq(mr)),gv=gh(e8.identity),gy=gv,gg=tG(mr),g_=gg,gb=yO,gS="ReaderTaskEither",gT=function(e){var t=tE.getCompactable(e);return{URI:gS,_E:void 0,compact:tm(s1,t),separate:th(s1,t,tE.Functor)}};function gI(e){var t=tE.getFilterable(e),n=gT(e),r=ne(s1,t),i=nt(s1,t),o=nn(s1,t),u=nr(s1,t);return{URI:gS,_E:void 0,map:gr,compact:n.compact,separate:n.separate,filter:function(e,t){return(0,e8.pipe)(e,r(t))},filterMap:function(e,t){return(0,e8.pipe)(e,i(t))},partition:function(e,t){return(0,e8.pipe)(e,o(t))},partitionMap:function(e,t){return(0,e8.pipe)(e,u(t))}}}function gR(e,t){var n=(0,eA.ap)(nZ,h8(e,t));return{URI:gS,_E:void 0,map:gr,ap:function(e,t){return(0,e8.pipe)(e,n(t))},of:gm}}function gw(e){var t=tz(mr,e);return{URI:gS,_E:void 0,map:gr,alt:function(e,n){return(0,e8.pipe)(e,t(n))}}}var gO={URI:gS,map:gr},gx=(0,e8.dual)(2,(0,tp.as)(gO)),gC=(0,tp.asUnit)(gO),gM=(0,tp.flap)(gO),gE={URI:gS,of:gm},gP={URI:gS,map:gr,ap:gi},gk=(0,eA.apFirst)(gP),gW=gk,gF=(0,eA.apSecond)(gP),gD=gF,gN={URI:gS,map:gr,ap:gi,of:gm},gL={URI:gS,map:gr,ap:go},gU={URI:gS,map:gr,ap:go,of:gm},gA={URI:gS,map:gr,ap:gi,chain:gh},gj={URI:gS,map:gr,ap:gi,chain:gh,of:gm},gq={URI:gS,map:gr,ap:gi,chain:gh,of:gm,fromIO:yj},gG={URI:gS,map:gr,ap:gi,chain:gh,of:gm,fromIO:yj,fromTask:yq},gY={URI:gS,map:gr,ap:gi,chain:gh,of:gm,throwError:gb},gB={URI:gS,fromEither:yU},gK={URI:gS,fromIO:yj},gV={URI:gS,fromIO:yj,fromTask:yq},gz={URI:gS,fromReader:yA},gH=(0,e8.dual)(2,to.tap(gA)),g$=(0,e8.dual)(2,(0,n_.tapEither)(gB,gA)),gX=(0,e8.dual)(2,nI(gK,gA)),gJ=(0,e8.dual)(2,is(gV,gA)),gZ=(0,e8.dual)(2,rO(gz,gA)),gQ=(0,e8.dual)(2,function(e,t){return gH(e,gn(t))}),g0=(0,e8.dual)(2,function(e,t){return gH(e,gt(t))}),g1=(0,e8.dual)(2,function(e,t){return gH(e,_i(t))}),g2=(0,e8.dual)(2,function(e,t){return gH(e,_a(t))}),g8={URI:gS,bimap:gc,mapLeft:gl},g7={URI:gS,map:gr,alt:gu},g3=rS(gz),g5=rT(gz),g4=rI(gz),g9=gZ,g6=gZ,_e=gQ,_t=gQ,_n=g0,_r=g0,_i=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return yk(e.apply(void 0,t))}},_o=g1,_u=g1,_a=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return yN(e.apply(void 0,t))}},_c=g2,_f=g2,_l=(0,n_.fromOption)(gB),_p=(0,n_.fromOptionK)(gB),_d=(0,n_.chainOptionK)(gB,gA),_s=_d,_m={fromEither:gB.fromEither},_h=nR.uL(_m),_v=nR.WE(_m),_y={flatMap:gh},_g=nR.ny(_m,_y),__=nR.hU(_m,_y),_b=nR.iu(_m,_y),_S=(0,e8.dual)(2,function(e,t){return gh(e,gt(t))}),_T=(0,e8.dual)(2,function(e,t){return gh(e,_i(t))}),_I=nR.we({fromIO:yj},_y),_R=nR.D9({fromTask:yq},_y),_w=nR.on({fromReader:yA},_y),_O=(0,e8.dual)(2,function(e,t){return gh(e,_a(t))}),_x=(0,e8.dual)(2,function(e,t){return gh(e,ge(t))}),_C=(0,e8.dual)(2,function(e,t){return gh(e,gn(t))}),_M=_b,_E=_b,_P=g$,_k=g$,_W=_S,_F=_S,_D=_T,_N=_T,_L=(0,n_.fromPredicate)(gB),_U=(0,n_.filterOrElse)(gB,gA),_A=_U,_j=(0,n_.fromEitherK)(gB),_q=nb(gK),_G=_I,_Y=gX,_B=il(gV),_K=_R,_V=gJ,_z=_w,_H=_w,_$=_O,_X=_O,_J=_x,_Z=_x,_Q=_C,_0=_C;function _1(e,t,n){return _2(e,t,n)}function _2(e,t,n){return function(r){return v7(e(r),function(e){return t(e)(r)},function(e,t){return n(e,t)(r)})}}var _8=gm(nR.F4),_7=(0,tp.bindTo)(gO),_3=(0,tp.let)(gO),_5=to.bind(gA),_4=_5,_9=(0,eA.apS)(gP),_6=_9,be=gm(nR.Xl),bt=function(e){return(0,e8.flow)(rf(e),nF(yr(e8.SK)))},bn=function(e){var t=bt(e);return function(e){return nR.Od(e)?t(e):be}},br=function(e){return(0,e8.flow)(rf(e),nF(yo(e8.SK)))},bi=function(e){var t=br(e);return function(e){return nR.Od(e)?t(e):be}},bo=bn,bu=function(e){return bn(function(t,n){return e(n)})},ba=bu(e8.identity),bc=bi,bf=function(e){return bi(function(t,n){return e(n)})},bl=bf(e8.identity),bp=gh,bd=gh,bs=gH,bm=gH,bh=y4,bv=y4,by={URI:gS,map:gr,of:gm,ap:gi,chain:gh,alt:gu,bimap:gc,mapLeft:gl,fromIO:yj,fromTask:yq,throwError:gb},bg={URI:gS,map:gr,of:gm,ap:go,chain:gh,alt:gu,bimap:gc,mapLeft:gl,fromIO:yj,fromTask:yq,throwError:gb},b_=(0,eA.getApplySemigroup)(gL),bb=(0,eG.getApplicativeMonoid)(gU),bS=function(e){return(0,eA.getApplySemigroup)(me)(tE.getSemigroup(e))};function bT(e){var t=gR(d4,e),n=gw(e);return{URI:gS,_E:void 0,map:gr,of:gm,chain:gh,bimap:gc,mapLeft:gl,ap:t.ap,alt:n.alt,fromIO:yj,fromTask:yq,throwError:gb}}function bI(e,t){return e(t)()}var bR=n(31583),bw=n(13512),bO=n(28350),bx=n(97054),bC=n(99156);function bM(e){return e[0]}function bE(e){return e[1]}var bP=function(e){var t;return[bE(e),e[0]]};function bk(e){return{URI:b3,_E:void 0,map:bA,ap:function(t,n){var r,i;return[(0,t[0])(n[0]),e.concat(bE(t),bE(n))]}}}var bW=function(e){return function(t){return[t,e.empty]}};function bF(e){var t=bk(e);return{URI:b3,_E:void 0,map:bA,ap:t.ap,of:bW(e)}}function bD(e){var t=bk(e);return{URI:b3,_E:void 0,map:bA,ap:t.ap,chain:function(t,n){var r,i=n(t[0]),o=i[0],u=i[1];return[o,e.concat(bE(t),u)]}}}function bN(e){var t=bD(e);return{URI:b3,_E:void 0,map:bA,ap:t.ap,chain:t.chain,of:bW(e)}}function bL(e){var t=function(t,n){for(var r,i,o=n(t),u=e.empty,a=(i=o)[0];"Left"===a._tag;)u=e.concat(u,bE(o)),a=(r=o=n(a.left))[0];return[a.right,e.concat(u,bE(o))]},n=bD(e);return{URI:b3,_E:void 0,map:bA,ap:n.ap,chain:n.chain,chainRec:t}}var bU=function(e,t){return(0,e8.pipe)(e,bX(t))},bA=function(e,t){return(0,e8.pipe)(e,bH(t))},bj=function(e,t,n){return(0,e8.pipe)(e,bz(t,n))},bq=function(e,t){return(0,e8.pipe)(e,b$(t))},bG=function(e,t){return(0,e8.pipe)(e,bJ(t))},bY=function(e,t,n){return(0,e8.pipe)(e,b0(t,n))},bB=function(e){var t=b1(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},bK=function(e,t,n){return(0,e8.pipe)(e,b2(t,n))},bV=function(e){var t=b8(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},bz=function(e,t){return function(n){var r;return[t(n[0]),e(bE(n))]}},bH=function(e){return function(t){var n;return[e(t[0]),bE(t)]}},b$=function(e){return function(t){var n;return[t[0],e(bE(t))]}},bX=function(e){return function(t){var n;return[t[0],bE(e)]}},bJ=function(e){return function(t){return[e(t),bE(t)]}},bZ=bM,bQ=bJ(e8.identity),b0=function(e,t){return function(n){var r;return t(e,n[0])}},b1=function(){return function(e){return function(t){var n;return e(t[0])}}},b2=function(e,t){return function(n){var r;return t(n[0],e)}},b8=function(e){return function(t){return function(n){var r;return e.map(t(n[0]),function(e){return[e,bE(n)]})}}},b7=function(e){return function(t){var n;return e.map(t[0],function(e){return[e,bE(t)]})}},b3="ReadonlyTuple",b5={URI:b3,map:bA},b4=(0,tp.flap)(b5),b9=bH,b6=b$,Se={URI:b3,bimap:bj,mapLeft:bq},St={URI:b3,compose:bU},Sn={URI:b3,map:bA,extend:bG,extract:bZ},Sr={URI:b3,reduce:bY,foldMap:bB,reduceRight:bK},Si={URI:b3,map:bA,reduce:bY,foldMap:bB,reduceRight:bK,traverse:bV,sequence:b7},So={URI:b3,compose:bU,map:bA,bimap:bj,mapLeft:bq,extract:bZ,extend:bG,reduce:bY,foldMap:bB,reduceRight:bK,traverse:bV,sequence:b7},Su=n(3291),Sa=n(57029),Sc=n(76511),Sf=function(){return(Sf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Sl=bx.size,Sp=bx.isEmpty,Sd=function(e){return function(t){return Object.keys(t).sort(e.compare)}},Ss=Sd(Sa.Ord);function Sm(e){if("function"==typeof e)return Sm(Sa.Ord)(e);var t=Sd(e);return function(e){return function(n){for(var r=[],i=0,o=t(n);i<o.length;i++){var u=o[i];r.push(e(u,n[u]))}return r}}}var Sh=Sm(Sa.Ord)(function(e,t){return[e,t]});function Sv(e){return function(t){var n=Sh(t),r=n.length;return e.unfold(0,function(e){return e<r?nR.G([n[e],e+1]):nR.YP})}}var Sy=bx.upsertAt,Sg=bx.has;function S_(e){return function(t){if(!nR.e$.call(t,e))return t;var n=Object.assign({},t);return delete n[e],n}}var Sb=function(e,t){return SS(e,function(){return t})},SS=function(e,t){return function(n){if(!Sg(e,n))return nR.YP;var r=Object.assign({},n);return r[e]=t(n[e]),nR.G(r)}};function ST(e){var t=S_(e);return function(n){var r=SR(e,n);return nR.Wi(r)?nR.YP:nR.G([r.value,t(n)])}}var SI=bx.isSubrecord,SR=bx.lookup,Sw=bx.mapWithIndex,SO=bx.map;function Sx(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bx.reduceWithIndex(e[0]):bx.reduceWithIndex(Sa.Ord).apply(void 0,e)}function SC(e){return"compare"in e?bx.foldMapWithIndex(e):bx.foldMapWithIndex(Sa.Ord)(e)}function SM(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bx.reduceRightWithIndex(e[0]):bx.reduceRightWithIndex(Sa.Ord).apply(void 0,e)}var SE=bx.singleton;function SP(e){return bx.traverseWithIndex(e)}function Sk(e){return bx.traverse(e)}function SW(e){return bx.sequence(e)}var SF=function(e){var t=Sk(e);return function(n){return function(r){return e.map((0,e8.pipe)(r,t(n)),Td)}}},SD=function(e){var t=Sk(e);return function(n){return function(r){return e.map((0,e8.pipe)(r,t(n)),Ts)}}},SN=bx.partitionMapWithIndex;function SL(e){return bx.partitionWithIndex(e)}var SU=bx.filterMapWithIndex;function SA(e){return bx.filterWithIndex(e)}function Sj(e,t){return bx.fromFoldable(e,t)}var Sq=Sh,SG=function(e){return Sj(Su.last(),eY.Foldable)(e)};function SY(e,t){return bx.fromFoldableMap(e,t)}var SB=bx.every,SK=bx.some,SV=bx.elem,Sz=function(e){var t=bx.union(e);return function(e){return function(n){return Sp(n)?Sf({},e):Sp(e)?Sf({},n):t(e)(n)}}},SH=function(e){return function(t){return function(n){return Sp(n)||Sp(t)?{}:bx.intersection(e)(t)(n)}}},S$=function(e){return function(t){return Sp(t)?Sf({},e):Sp(e)?Sf({},t):bx.difference(e)(t)}},SX=bx._map,SJ=bx._mapWithIndex,SZ=bx._reduce,SQ=bx._foldMap,S0=bx._reduceRight,S1=bx._filter,S2=bx._filterMap,S8=bx._partition,S7=bx._partitionMap,S3=bx._reduceWithIndex,S5=bx._foldMapWithIndex,S4=bx._reduceRightWithIndex,S9=bx._partitionMapWithIndex,S6=bx._partitionWithIndex,Te=bx._filterMapWithIndex,Tt=bx._filterWithIndex,Tn=bx._traverse,Tr=bx._sequence,Ti=function(e){return function(t){var n=Sd(e);return function(e,r){var i=n(e);if(0===i.length)return t.of({});for(var o=t.of({}),u=function(n){o=t.ap(t.map(o,function(e){return function(t){return e[n]=t,e}}),r(n,e[n]))},a=0;a<i.length;a++)u(i[a]);return o}}},To=bx.filter,Tu=bx.filterMap,Ta=bx.partition,Tc=bx.partitionMap;function Tf(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bx.reduce(e[0]):bx.reduce(Sa.Ord).apply(void 0,e)}function Tl(e){return"compare"in e?bx.foldMap(e):bx.foldMap(Sa.Ord)(e)}function Tp(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bx.reduceRight(e[0]):bx.reduceRight(Sa.Ord).apply(void 0,e)}var Td=bx.compact,Ts=bx.separate,Tm="Record";function Th(e){return"compare"in e?bx.getShow(e):bx.getShow(Sa.Ord)(e)}var Tv=bx.getEq,Ty=bx.getMonoid,Tg={URI:Tm,map:SX},T_=(0,tp.flap)(Tg),Tb={URI:Tm,map:SX,mapWithIndex:SJ},TS=function(e){return{URI:Tm,reduce:SZ(e),foldMap:SQ(e),reduceRight:S0(e)}},TT=function(e){return{URI:Tm,reduce:SZ(e),foldMap:SQ(e),reduceRight:S0(e),reduceWithIndex:S3(e),foldMapWithIndex:S5(e),reduceRightWithIndex:S4(e)}},TI={URI:Tm,compact:Td,separate:Ts},TR={URI:Tm,map:SX,compact:Td,separate:Ts,filter:S1,filterMap:S2,partition:S8,partitionMap:S7},Tw={URI:Tm,map:SX,mapWithIndex:SJ,compact:Td,separate:Ts,filter:S1,filterMap:S2,partition:S8,partitionMap:S7,filterMapWithIndex:Te,filterWithIndex:Tt,partitionMapWithIndex:S9,partitionWithIndex:S6},TO=function(e){return{URI:Tm,map:SX,reduce:SZ(e),foldMap:SQ(e),reduceRight:S0(e),traverse:Tn(e),sequence:Tr(e)}},Tx=function(e){return{URI:Tm,map:SX,mapWithIndex:SJ,reduce:SZ(e),foldMap:SQ(e),reduceRight:S0(e),reduceWithIndex:S3(e),foldMapWithIndex:S5(e),reduceRightWithIndex:S4(e),traverse:Tn(e),sequence:Tr(e),traverseWithIndex:Ti(e)}},TC=function(e){var t=TO(e);return{URI:Tm,map:SX,reduce:SZ(e),foldMap:SQ(e),reduceRight:S0(e),traverse:t.traverse,sequence:t.sequence,compact:Td,separate:Ts,filter:S1,filterMap:S2,partition:S8,partitionMap:S7,wither:(0,Sc.witherDefault)(t,TI),wilt:(0,Sc.wiltDefault)(t,TI)}},TM=function(e){var t=Sz(e);return{concat:function(e,n){return t(n)(e)}}},TE=function(e){return{concat:TM(e).concat,empty:{}}},TP=function(e){var t=SH(e);return{concat:function(e,n){return t(n)(e)}}},Tk=function(){return{concat:function(e,t){return S$(t)(e)}}},TW={URI:Tm,reduce:SZ(Sa.Ord),foldMap:SQ(Sa.Ord),reduceRight:S0(Sa.Ord)},TF={URI:Tm,reduce:SZ(Sa.Ord),foldMap:SQ(Sa.Ord),reduceRight:S0(Sa.Ord),reduceWithIndex:S3(Sa.Ord),foldMapWithIndex:S5(Sa.Ord),reduceRightWithIndex:S4(Sa.Ord)},TD={URI:Tm,map:SX,reduce:SZ(Sa.Ord),foldMap:SQ(Sa.Ord),reduceRight:S0(Sa.Ord),traverse:Tn(Sa.Ord),sequence:SW},TN={URI:Tm,map:SX,mapWithIndex:SJ,reduce:SZ(Sa.Ord),foldMap:SQ(Sa.Ord),reduceRight:S0(Sa.Ord),reduceWithIndex:S3(Sa.Ord),foldMapWithIndex:S5(Sa.Ord),reduceRightWithIndex:S4(Sa.Ord),traverse:Tn(Sa.Ord),sequence:SW,traverseWithIndex:Ti(Sa.Ord)},TL=(0,Sc.witherDefault)(TD,TI),TU=(0,Sc.wiltDefault)(TD,TI),TA={URI:Tm,map:SX,reduce:SZ(Sa.Ord),foldMap:SQ(Sa.Ord),reduceRight:S0(Sa.Ord),traverse:Tn(Sa.Ord),sequence:SW,compact:Td,separate:Ts,filter:S1,filterMap:S2,partition:S8,partitionMap:S7,wither:TL,wilt:TU},Tj={},Tq=Sy,TG=bx.hasOwnProperty,TY={URI:Tm,map:SX,reduce:SZ(Sa.Ord),foldMap:SQ(Sa.Ord),reduceRight:S0(Sa.Ord),traverse:Tn(Sa.Ord),sequence:SW,compact:Td,separate:Ts,filter:S1,filterMap:S2,partition:S8,partitionMap:S7,mapWithIndex:SJ,reduceWithIndex:S3(Sa.Ord),foldMapWithIndex:S5(Sa.Ord),reduceRightWithIndex:S4(Sa.Ord),filterMapWithIndex:Te,filterWithIndex:Tt,partitionMapWithIndex:S9,partitionWithIndex:S6,traverseWithIndex:Ti(Sa.Ord),wither:TL,wilt:TU},TB=function(e){return function(t){return nR.pC(e(t))}},TK=function(e){return function(t){return nR.tO(e(t))}},TV=function(){return function(e){return!0}},Tz=function(e){return function(t){return!e(t)}},TH=function(e){return function(t){return function(n){return t(n)||e(n)}}},T$=function(e){return function(t){return function(n){return t(n)&&e(n)}}},TX=function(){return function(e){return!1}},TJ=function(e){return function(t){return function(n){return t(n)&&e(n)}}},TZ=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{add:function(t,n){return e.map(function(e,r){return e.add(t[r],n[r])})},zero:e.map(function(e){return e.zero}),mul:function(t,n){return e.map(function(e,r){return e.mul(t[r],n[r])})},one:e.map(function(e){return e.one}),sub:function(t,n){return e.map(function(e,r){return e.sub(t[r],n[r])})}}},TQ=function(e){return function(t){return e.sub(e.zero,t)}},T0=TZ,T1=e8.getRing,T2=e8.getSemiring,T8=n(1214),T7=function(e){return{show:function(t){var n="{";for(var r in e)nR.e$.call(e,r)&&(n+=" ".concat(r,": ").concat(e[r].show(t[r]),","));return n.length>1&&(n=n.slice(0,-1)+" "),n+="}"}}},T3=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{show:function(t){return"[".concat(t.map(function(t,n){return e[n].show(t)}).join(", "),"]")}}},T5=T3,T4=T7,T9={show:function(e){return JSON.stringify(e)}},T6={show:function(e){return JSON.stringify(e)}},Ie={show:function(e){return JSON.stringify(e)}};function It(e){return function(t){return function(n){return e.of([t,n])}}}function In(e){return function(t){return function(n){return function(r){return e.map(n(r),function(e){var n=e[0],r=e[1];return[t(n),r]})}}}}function Ir(e){return function(t){return function(n){return function(r){return e.chain(n(r),function(n){var r=n[0],i=n[1];return e.map(t(i),function(e){var t=e[0],n=e[1];return[r(t),n]})})}}}}function Ii(e){var t=Io(e);return function(e){return function(n){return t(n,e)}}}function Io(e){return function(t,n){return function(r){return e.chain(t(r),function(e){var t=e[0],r=e[1];return n(t)(r)})}}}function Iu(e){return function(t){return function(n){return e.of(t(n))}}}function Ia(e){return function(t){return function(n){return e.map(t,function(e){return[e,n]})}}}function Ic(e){return function(t){return function(n){return e.map(n(t),function(e){return e[0]})}}}function If(e){return function(t){return function(n){return e.map(n(t),bE)}}}function Il(e){var t=Ir(e),n=In(e),r=Ii(e),i=Ic(e),o=If(e);return{map:function(e,t){return(0,e8.pipe)(e,n(t))},ap:function(e,n){return(0,e8.pipe)(e,t(n))},of:It(e),chain:function(e,t){return(0,e8.pipe)(e,r(t))},get:function(){return function(t){return e.of([t,t])}},put:function(t){return function(){return e.of([void 0,t])}},modify:function(t){return function(n){return e.of([void 0,t(n)])}},gets:function(t){return function(n){return e.of([t(n),n])}},fromState:Iu(e),fromM:Ia(e),evalState:function(e,t){return(0,e8.pipe)(e,i(t))},execState:function(e,t){return(0,e8.pipe)(e,o(t))}}}var Ip=function(e){return function(){return yO(e)}},Id=It(gE);function Is(e){return IM(yC(e))}function Im(e){return IM(yM(e))}function Ih(e){return IM(yE(e))}function Iv(e){return IM(yP(e))}function Iy(e){return IM(yF(e))}function Ig(e){return IM(yD(e))}var I_=function(e){return(0,e8.flow)(e,yx)},Ib=function(e){return function(t){return yO(e(t)[0])}},IS=tE.match(function(e){return Ip(e)},Id),IT=Ih,II=Iy,IR=Is,Iw=Iu(gE),IO=function(e){return IM(yw(e))},Ix=function(e){return IM(yG(e))},IC=function(e){return IM(yY(e))},IM=Ia(gO),IE=function(e){return function(t){return(0,e8.flow)(t,nx(e))}},IP=function(e){return function(t){return function(n){return e(n)(t)(n)}}},Ik=IP,IW=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Ix(e.apply(void 0,t))}},IF=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return IO(e.apply(void 0,t))}},ID=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return IM(e.apply(void 0,t))}},IN=function(e){return function(t){return IX(t,ID(e))}},IL=IN,IU=function(e,t){return(0,e8.pipe)(e,IY(t))},IA=function(e,t){return(0,e8.pipe)(e,IV(t))},Ij=function(e,t){return function(n){return(0,e8.pipe)(e(n),gg(function(){return t()(n)}))}},Iq=function(e,t,n){return function(r){return(0,e8.pipe)(e(r),gf(t,function(e){var t=e[0],r=e[1];return[n(t),r]}))}},IG=function(e,t){return function(n){return(0,e8.pipe)(e(n),gp(t))}},IY=In(gO),IB=function(e,t){return function(n){return Iq(n,e,t)}},IK=function(e){return function(t){return IG(t,e)}},IV=Ir(gA),Iz=IV,IH=Id,I$={fromEither:IS},IX=(0,e8.dual)(2,Io(gj)),IJ={flatMap:IX},IZ=(0,e8.dual)(2,function(e,t){return IX(e,function(e){return IF(t)(e)})}),IQ=nR.we({fromIO:II},IJ),I0=nR.D9({fromTask:IR},IJ),I1=nR.on({fromReader:IT},IJ),I2=(0,e8.dual)(2,function(e,t){return IX(e,function(e){return IW(t)(e)})}),I8=(0,e8.dual)(2,nR.iu(I$,IJ)),I7=nR.hU(I$,IJ),I3=(0,e8.dual)(2,function(e,t){return IX(e,function(e){return ID(t)(e)})}),I5=(0,e8.dual)(2,function(e,t){return IX(e,Rb(t))}),I4=IX(e8.identity),I9=I4,I6=function(e){return function(t){return function(n){return(0,e8.pipe)(t(n),g_(function(){return e()(n)}))}}},Re=I6,Rt=Ip,Rn="StateReaderTaskEither",Rr={URI:Rn,map:IU},Ri=(0,e8.dual)(2,(0,tp.as)(Rr)),Ro=(0,tp.asUnit)(Rr),Ru=(0,tp.flap)(Rr),Ra={URI:Rn,of:IH},Rc={URI:Rn,map:IU,ap:IA},Rf=(0,eA.apFirst)(Rc),Rl=Rf,Rp=(0,eA.apSecond)(Rc),Rd=Rp,Rs={URI:Rn,map:IU,ap:IA,of:IH},Rm={URI:Rn,map:IU,ap:IA,chain:IX},Rh={URI:Rn,fromState:Iw},Rv=ir(Rh),Ry=ii(Rh),Rg=io(Rh),R_=iu(Rh),Rb=ia(Rh),RS=ic(Rh,Rm),RT={URI:Rn,map:IU,ap:IA,of:IH,chain:IX},RI={URI:Rn,map:IU,ap:IA,of:IH,chain:IX,fromIO:II},RR={URI:Rn,map:IU,ap:IA,of:IH,chain:IX,fromIO:II,fromTask:IR},Rw={URI:Rn,map:IU,ap:IA,of:IH,chain:IX,throwError:Rt},RO={URI:Rn,fromEither:IS},Rx={URI:Rn,fromIO:II},RC={URI:Rn,fromIO:II,fromTask:IR},RM={URI:Rn,fromReader:IT},RE=(0,e8.dual)(2,to.tap(Rm)),RP=(0,e8.dual)(2,(0,n_.tapEither)(RO,Rm)),Rk=(0,e8.dual)(2,nI(Rx,Rm)),RW=(0,e8.dual)(2,is(RC,Rm)),RF=(0,e8.dual)(2,rO(RM,Rm)),RD={URI:Rn,bimap:Iq,mapLeft:IG},RN={URI:Rn,map:IU,alt:Ij},RL=rS(RM),RU=rT(RM),RA=rI(RM),Rj=I1,Rq=I1,RG=RF,RY=RF,RB=(0,n_.fromOption)(RO),RK=(0,n_.fromOptionK)(RO),RV=(0,n_.chainOptionK)(RO,Rm),Rz=RV,RH=I8,R$=I8,RX=RP,RJ=RP,RZ=(0,n_.fromPredicate)(RO),RQ=(0,n_.filterOrElse)(RO,Rm),R0=RQ,R1=(0,n_.fromEitherK)(RO),R2=nb(Rx),R8=IQ,R7=Rk,R3=IZ,R5=IZ,R4=I2,R9=I2,R6=il(RC),we=I0,wt=RW,wn=Ic(gO),wr=If(gO),wi=(0,tp.bindTo)(Rr),wo=(0,tp.let)(Rr),wu=to.bind(Rm),wa=wu,wc=(0,eA.apS)(Rc),wf=wc,wl=function(e){return function(t){return function(n){return function(r){return function(){return nR.Gb(t).reduce(function(t,n,i){return t.then(function(o){return nR.nM(o)?t:e(i+1,n)(o.right[1])(r)().then(function(e){if(nR.nM(e))return e;var t=e.right,n=t[0],r=t[1];return o.right[0].push(n),o.right[1]=r,o})})},e(0,nR.YM(t))(n)(r)().then(tE.map(function(e){var t;return[[e[0]],e[1]]})))}}}}},wp=function(e){var t=wl(e);return function(e){return nR.Od(e)?t(e):IH(nR.Xl)}},wd=wp,ws=function(e){return wp(function(t,n){return e(n)})},wm=ws(e8.identity),wh=IX,wv=IX,wy=RE,wg=RE,w_={URI:Rn,map:IU,of:IH,ap:IA,chain:IX,bimap:Iq,mapLeft:IG,alt:Ij,fromIO:II,fromTask:IR,throwError:Rt},wb={URI:Rn,map:IU,of:IH,ap:IA,chain:IX,bimap:Iq,mapLeft:IG,alt:Ij,fromIO:II,fromTask:IR,throwError:Rt},wS=function(e,t){return(0,e8.pipe)(e(t),ga(function(e){return e[0]}))},wT=function(e,t){return(0,e8.pipe)(e(t),ga(function(e){return e[0],e[1]}))};function wI(e,t,n){return e(t)(n)()}function wR(e){return function(t){return{peek:t.peek,pos:e}}}function ww(e){return function(t){return{peek:t.peek,pos:e(t.pos)}}}function wO(e){return function(t){return t.peek(e(t.pos))}}function wx(e){return function(t){return function(n){return e.map(t(n.pos),function(e){return n.peek(e)})}}}var wC=function(e,t){return(0,e8.pipe)(e,wW(t))},wM=function(e,t){return(0,e8.pipe)(e,wE(t))},wE=function(e){return function(t){return{peek:function(n){return e({peek:t.peek,pos:n})},pos:t.pos}}},wP=function(e){return e.peek(e.pos)},wk=wE(e8.identity),wW=function(e){return function(t){return{peek:function(n){return e(t.peek(n))},pos:t.pos}}},wF="Store",wD={URI:wF,map:wC},wN=(0,tp.flap)(wD),wL={URI:wF,map:wC,extend:wM,extract:wP},wU=wL;function wA(e,t){return function(n,r){return t.compose(e.second(r),e.first(n))}}function wj(e,t){var n=wA(e,t);return function(r,i){return t.compose(n(r,i),e.promap(t.id(),e8.identity,function(e){return[e,e]}))}}function wq(e){return wA(e,e)}function wG(e){return wj(e,e)}var wY=function(){return{concat:function(e,t){return Object.assign({},e,t)}}},wB=function(e){return function(t){var n={};for(var r in t)nR.e$.call(t,r)&&(n[r]=e[r](t[r]));return n}},wK=function(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=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 u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(c){a=[6,c],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},wV=aA(d8),wz=az(d8),wH=dH,w$=aH(d8),wX=function(e){return wJ(dq(e))},wJ=aq(dQ),wZ=dV(td.fromEither),wQ=a$(dQ),w0=wQ,w1=aX(se),w2=w1,w8=w1,w7=w8,w3=aJ(st),w5=w3,w4=aG(d8),w9=function(e){return function(){var t,n,r,i;return t=void 0,n=void 0,r=void 0,i=function(){return wK(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e().then(nR.G)];case 1:return[2,t.sent()];case 2:return t.sent(),[2,nR.YP];case 3:return[2]}})},new(r||(r=Promise))(function(e,o){function u(e){try{c(i.next(e))}catch(t){o(t)}}function a(e){try{c(i.throw(e))}catch(t){o(t)}}function c(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(u,a)}c((i=i.apply(t,n||[])).next())})}},w6=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return w9(function(){return e.apply(void 0,t)})}},Oe=aY(d8),Ot=aB(st),On=aK(d8),Or=aV(st),Oi=aZ(dQ),Oo=aQ(d7),Ou=wV,Oa=(0,e8.dual)(2,a1(st)),Oc={flatMap:Oa},Of=nR.we({fromIO:wX},Oc),Ol=nR.D9({fromTask:wJ},Oc),Op=Oa(e8.identity),Od=a2(st),Os=Od,Om=aj(d8),Oh=Om(),Ov=tm(dQ,td.Compactable),Oy=th(dQ,td.Compactable,td.Functor),Og=ne(dQ,td.Filterable),O_=nt(dQ,td.Filterable),Ob=nn(dQ,td.Filterable),OS=nr(dQ,td.Filterable),OT=function(e,t){return(0,e8.pipe)(e,Oi(t))},OI=function(e,t){return(0,e8.pipe)(e,Oo(t))},OR=function(e,t){return(0,e8.pipe)(e,Od(t))},Ow=function(e,t){return(0,e8.pipe)(e,Og(t))},OO=function(e,t){return(0,e8.pipe)(e,O_(t))},Ox=function(e,t){return(0,e8.pipe)(e,Ob(t))},OC=function(e,t){return(0,e8.pipe)(e,OS(t))},OM="TaskOption",OE={URI:OM,map:OT},OP=(0,e8.dual)(2,(0,tp.as)(OE)),Ok=(0,tp.asUnit)(OE),OW=(0,tp.flap)(OE),OF={URI:OM,of:Ou},OD={URI:OM,map:OT,ap:OI},ON=(0,eA.apFirst)(OD),OL=(0,eA.apSecond)(OD),OU={URI:OM,map:OT,ap:OI,of:Ou},OA=function(e,t){return Oa(e,function(e){return(0,e8.pipe)(t,Oi(e))})},Oj={URI:OM,map:OT,ap:OA},Oq={URI:OM,map:OT,ap:OA,of:Ou},OG={URI:OM,map:OT,ap:OI,chain:Oa},OY={URI:OM,fromEither:w$},OB={URI:OM,fromIO:wX},OK={URI:OM,fromIO:wX,fromTask:wJ},OV=(0,e8.dual)(2,to.tap(OG)),Oz=(0,e8.dual)(2,(0,n_.tapEither)(OY,OG)),OH=(0,e8.dual)(2,nI(OB,OG)),O$=(0,e8.dual)(2,is(OK,OG)),OX={URI:OM,map:OT,alt:OR},OJ={URI:OM,zero:Om},OZ=(0,a7.guard)(OJ,OF),OQ={URI:OM,map:OT,ap:OI,of:Ou,alt:OR,zero:Om},O0={URI:OM,map:OT,ap:OI,of:Ou,chain:Oa},O1={URI:OM,map:OT,ap:OI,of:Ou,chain:Oa,fromIO:wX},O2={URI:OM,map:OT,ap:OI,of:Ou,chain:Oa,fromIO:wX,fromTask:wJ},O8={URI:OM,compact:Ov,separate:Oy},O7={URI:OM,map:OT,compact:Ov,separate:Oy,filter:Ow,filterMap:OO,partition:Ox,partitionMap:OC},O3=nb(OB),O5=Of,O4=OH,O9=(0,n_.fromEitherK)(OY),O6=(0,n_.chainEitherK)(OY,OG),xe=Oz,xt=il(OK),xn=Ol,xr=O$,xi=Ou(nR.F4),xo=(0,tp.bindTo)(OE),xu=(0,tp.let)(OE),xa=to.bind(OG),xc=(0,eA.apS)(OD),xf=Ou(nR.Xl),xl=function(e){return(0,e8.flow)(sS(e),dV(td.traverseReadonlyNonEmptyArrayWithIndex(e8.SK)))},xp=function(e){var t=xl(e);return function(e){return nR.Od(e)?t(e):xf}},xd=function(e){return function(t){return function(){return nR.Gb(t).reduce(function(t,n,r){return t.then(function(i){return nR.Wi(i)?t:e(r+1,n)().then(function(e){return nR.Wi(e)?e:(i.value.push(e.value),i)})})},e(0,nR.YM(t))().then(td.map(nR.ri)))}}},xs=function(e){var t=xd(e);return function(e){return nR.Od(e)?t(e):xf}},xm=xp,xh=function(e){return xp(function(t,n){return e(n)})},xv=xh(e8.identity),xy=xs,xg=function(e){return xs(function(t,n){return e(n)})},x_=xg(e8.identity),xb=Oa,xS=OV,xT=function(e){return"Left"===e._tag},xI=function(e){return"Right"===e._tag};function xR(e){return"Both"===e._tag}function xw(e){return{_tag:"Left",left:e}}function xO(e){return{_tag:"Right",right:e}}function xx(e,t){return{_tag:"Both",left:e,right:t}}var xC=function(e,t,n){return function(r){switch(r._tag){case"Left":return e(r.left);case"Right":return t(r.right);case"Both":return n(r.left,r.right)}}},xM=xC,xE=xC,xP=xE,xk=xE(xO,xw,function(e,t){return xx(t,e)});function xW(e,t){return{show:xE(function(t){return"left(".concat(e.show(t),")")},function(e){return"right(".concat(t.show(e),")")},function(n,r){return"both(".concat(e.show(n),", ").concat(t.show(r),")")})}}function xF(e,t){return(0,t3.fromEquals)(function(n,r){return xT(n)?xT(r)&&e.equals(n.left,r.left):xI(n)?xI(r)&&t.equals(n.right,r.right):xR(r)&&e.equals(n.left,r.left)&&t.equals(n.right,r.right)})}function xD(e,t){return{concat:function(n,r){return xT(n)?xT(r)?xw(e.concat(n.left,r.left)):xI(r)?xx(n.left,r.right):xx(e.concat(n.left,r.left),r.right):xI(n)?xT(r)?xx(r.left,n.right):xI(r)?xO(t.concat(n.right,r.right)):xx(r.left,t.concat(n.right,r.right)):xT(r)?xx(e.concat(n.left,r.left),n.right):xI(r)?xx(n.left,t.concat(n.right,r.right)):xx(e.concat(n.left,r.left),t.concat(n.right,r.right))}}}var xN=function(e){return{URI:x6,_E:void 0,map:xz,ap:function(t,n){return xT(t)?xT(n)?xw(e.concat(t.left,n.left)):xI(n)?xw(t.left):xw(e.concat(t.left,n.left)):xI(t)?xT(n)?xw(n.left):xI(n)?xO(t.right(n.right)):xx(n.left,t.right(n.right)):xT(n)?xw(e.concat(t.left,n.left)):xI(n)?xx(t.left,t.right(n.right)):xx(e.concat(t.left,n.left),t.right(n.right))}}};function xL(e){var t=xN(e);return{URI:x6,_E:void 0,map:xz,ap:t.ap,of:x9}}function xU(e){var t=xN(e),n=function(t,n){if(xT(t))return t;if(xI(t))return n(t.right);var r=n(t.right);return xT(r)?xw(e.concat(t.left,r.left)):xI(r)?xx(t.left,r.right):xx(e.concat(t.left,r.left),r.right)};return{URI:x6,_E:void 0,map:xz,ap:t.ap,chain:n}}function xA(e){var t=xU(e);return{URI:x6,_E:void 0,map:xz,of:x9,ap:t.ap,chain:t.chain,throwError:xw}}function xj(e){return xT(e)?nR.G(e.left):xI(e)?nR.YP:nR.G(e.left)}function xq(e){return xT(e)?nR.YP:(xI(e),nR.G(e.right))}function xG(e){return function(t){return nR.Wi(t)?xw(e):xx(e,t.value)}}function xY(e){return function(t){return nR.Wi(t)?xO(e):xx(t.value,e)}}function xB(e){return xT(e)?nR.G(e.left):nR.YP}function xK(e){return xI(e)?nR.G(e.right):nR.YP}var xV=function(e,t){return nR.Wi(e)?nR.Wi(t)?nR.YP:nR.G(xO(t.value)):nR.Wi(t)?nR.G(xw(e.value)):nR.G(xx(e.value,t.value))},xz=function(e,t){return(0,e8.pipe)(e,x2(t))},xH=function(e,t,n){return(0,e8.pipe)(e,x0(t,n))},x$=function(e,t){return(0,e8.pipe)(e,x1(t))},xX=function(e,t,n){return(0,e8.pipe)(e,x8(t,n))},xJ=function(e){var t=x7(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},xZ=function(e,t,n){return(0,e8.pipe)(e,x3(t,n))},xQ=function(e){var t=x5(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},x0=function(e,t){return function(n){return xT(n)?xw(e(n.left)):xI(n)?xO(t(n.right)):xx(e(n.left),t(n.right))}},x1=function(e){return function(t){return xT(t)?xw(e(t.left)):xR(t)?xx(e(t.left),t.right):t}},x2=function(e){return function(t){return xT(t)?t:xI(t)?xO(e(t.right)):xx(t.left,e(t.right))}},x8=function(e,t){return function(n){return xT(n)?e:t(e,n.right)}},x7=function(e){return function(t){return function(n){return xT(n)?e.empty:t(n.right)}}},x3=function(e,t){return function(n){return xT(n)?e:t(n.right,e)}},x5=function(e){return function(t){return function(n){return xT(n)?e.of(n):xI(n)?e.map(t(n.right),xO):e.map(t(n.right),function(e){return xx(n.left,e)})}}},x4=function(e){return function(t){return xT(t)?e.of(t):xI(t)?e.map(t.right,xO):e.map(t.right,function(e){return xx(t.left,e)})}},x9=xO,x6="These",Ce={URI:x6,map:xz},Ct=(0,tp.flap)(Ce),Cn={URI:x6,of:x9},Cr={URI:x6,bimap:xH,mapLeft:x$},Ci={URI:x6,fromThese:e8.identity},Co={URI:x6,reduce:xX,foldMap:xJ,reduceRight:xZ},Cu={URI:x6,map:xz,reduce:xX,foldMap:xJ,reduceRight:xZ,traverse:xQ,sequence:x4},Ca={URI:x6,fromEither:e8.identity},Cc=(0,n_.fromPredicate)(Ca),Cf=(0,n_.fromOption)(Ca),Cl=(0,n_.fromOptionK)(Ca),Cp=function(e){return function(t){return function(n){return!xT(n)&&e.equals(t,n.right)}}},Cd=function(e){return function(t){return!xT(t)&&e(t.right)}},Cs=function(e,t){return function(n){return xT(n)?[n.left,t()]:xI(n)?[e(),n.right]:[n.left,n.right]}},Cm=function(e,t){return Cs(function(){return e},function(){return t})},Ch=x9(nR.Xl),Cv=function(e){return function(t){return function(n){var r=nR.YP,i=t(0,nR.YM(n));if(xT(i))return i;xR(i)&&(r=nR.G(i.left));for(var o=[i.right],u=1;u<n.length;u++){var a=t(u,n[u]);if(xT(a))return a;xR(a)&&(r=nR.Wi(r)?nR.G(a.left):nR.G(e.concat(r.value,a.left))),o.push(a.right)}return nR.Wi(r)?xO(o):xx(r.value,o)}}},Cy=function(e){return function(t){var n=Cv(e)(t);return function(e){return nR.Od(e)?n(e):Ch}}},Cg={URI:x6,map:xz,bimap:xH,mapLeft:x$,reduce:xX,foldMap:xJ,reduceRight:xZ,traverse:xQ,sequence:x4};function C_(e){return(0,e8.flow)(xO,e.of)}function Cb(e){return(0,e8.flow)(xw,e.of)}function CS(e){return(0,e8.flow)(xx,e.of)}function CT(e){return function(t){return e.map(t,xO)}}function CI(e){return function(t){return e.map(t,xw)}}function CR(e){return(0,tp.map)(e,Ce)}function Cw(e,t){return(0,eA.ap)(e,xN(t))}function CO(e,t){var n=Cb(e);return function(r){return function(i){return e.chain(i,xE(n,r,function(n,i){return e.map(r(i),xE(function(e){return xw(t.concat(n,e))},function(e){return xx(n,e)},function(e,r){return xx(t.concat(n,e),r)}))}))}}}function Cx(e){return function(t,n){return function(r){return e.map(r,x0(t,n))}}}function CC(e){return function(t){return function(n){return e.map(n,x1(t))}}}function CM(e){return function(t,n,r){return function(i){return e.map(i,xE(t,n,r))}}}function CE(e){return function(t,n,r){return function(i){return e.chain(i,xE(t,n,r))}}}function CP(e){return function(t){return e.map(t,xk)}}function Ck(e){return function(t,n){return function(r){return e.map(r,Cs(t,n))}}}function CW(e){var t=CR(e),n=Cx(e),r=CC(e),i=CE(e),o=Ck(e),u=C_(e),a=function(e,n){return(0,e8.pipe)(e,t(n))};return{map:a,bimap:function(e,t,r){return(0,e8.pipe)(e,n(t,r))},mapLeft:function(e,t){return(0,e8.pipe)(e,r(t))},fold:function(e,t,n,r){return(0,e8.pipe)(e,i(t,n,r))},swap:CP(e),rightM:CT(e),leftM:CI(e),left:Cb(e),right:C_(e),both:CS(e),toTuple:function(e,t,n){return(0,e8.pipe)(e,o(function(){return t},function(){return n}))},getMonad:function(t){var n=Cw(e,t),r=CO(e,t);return{_E:void 0,map:a,of:u,ap:function(e,t){return(0,e8.pipe)(e,n(t))},chain:function(e,t){return(0,e8.pipe)(e,r(t))}}}}}var CF=Cb(d8),CD=C_(d8),CN=CS(d8),CL=CT(dQ),CU=CI(dQ),CA=(0,e8.flow)(dq,CL),Cj=(0,e8.flow)(dq,CU),Cq=dH,CG=dH,CY=CA,CB=dq,CK=CL,CV=CM(dQ),Cz=CV,CH=CE(st),C$=CH,CX=C$,CJ=CX,CZ=CP(dQ),CQ=function(e,t){return(0,e8.pipe)(e,C2(t))},C0=function(e,t,n){return(0,e8.pipe)(e,C8(t,n))},C1=function(e,t){return(0,e8.pipe)(e,C7(t))},C2=CR(dQ),C8=Cx(dQ),C7=CC(dQ),C3=CD,C5="TaskThese",C4=function(e,t){var n=Cw(e,t);return{URI:C5,_E:void 0,map:CQ,ap:function(e,t){return(0,e8.pipe)(e,n(t))}}};function C9(e,t){var n=C4(e,t).ap;return{URI:C5,_E:void 0,map:CQ,ap:n,of:C3}}function C6(e){var t=C4(d4,e),n=CO(st,e);return{URI:C5,_E:void 0,map:CQ,ap:t.ap,chain:function(e,t){return(0,e8.pipe)(e,n(t))}}}function Me(e){var t=C9(d4,e),n=C6(e);return{URI:C5,_E:void 0,map:CQ,ap:t.ap,of:C3,chain:n.chain,fromIO:CY,fromTask:CK}}var Mt={URI:C5,map:CQ},Mn=(0,tp.flap)(Mt),Mr={URI:C5,of:C3},Mi={URI:C5,bimap:C0,mapLeft:C1},Mo={URI:C5,fromEither:Cq},Mu=(0,n_.fromOption)(Mo),Ma=(0,n_.fromOptionK)(Mo),Mc=(0,n_.fromPredicate)(Mo),Mf={URI:C5,fromThese:CG},Ml=im(Mf),Mp={URI:C5,fromIO:CY},Md=nb(Mp),Ms={URI:C5,fromIO:CY,fromTask:CK},Mm=il(Ms),Mh=Ck(dQ),Mv=C3(nR.Xl),My=function(e){var t=Cv(e);return function(e){return(0,e8.flow)(sS(e),dV(t(e8.SK)))}},Mg=function(e){return function(t){var n=My(e)(t);return function(e){return nR.Od(e)?n(e):Mv}}},M_=function(e){return function(t){return function(n){return function(){return nR.Gb(n).reduce(function(n,r,i){return n.then(function(o){return xT(o)?n:t(i+1,r)().then(function(t){if(xT(t))return t;if(xR(t)){var n=o.right;return n.push(t.right),xR(o)?xx(e.concat(o.left,t.left),n):xx(t.left,n)}return o.right.push(t.right),o})})},t(0,nR.YM(n))().then(x2(nR.ri)))}}}},Mb=function(e){return function(t){var n=M_(e)(t);return function(e){return nR.Od(e)?n(e):Mv}}},MS={URI:C5,map:CQ},MT={URI:C5,bimap:C0,mapLeft:C1},MI=function(e,t){return Mh(function(){return e},function(){return t})},MR={URI:C5,map:CQ,bimap:C0,mapLeft:C1},Mw=function(e,t){return(0,eA.getApplySemigroup)(d9)(xD(e,t))};function MO(e,t){return function(n){return n(t(n(e.empty)))}}function Mx(e){return function(t){return[e(t),t]}}function MC(e){return function(t){return function(n){return[t(n),e(n)]}}}function MM(e){return function(t){return function(n){return t(e(n))}}}function ME(e){return{URI:MW,_E:void 0,map:MP,extend:function(t,n){return function(r){return n(function(n){return t(e.concat(r,n))})}},extract:function(t){return t(e.empty)}}}var MP=function(e,t){return(0,e8.pipe)(e,Mk(t))},Mk=function(e){return function(t){return function(n){return e(t(n))}}},MW="Traced",MF={URI:MW,map:MP},MD=(0,tp.flap)(MF),MN=MF;function ML(e,t){return function(n){var r=e.traverse(n),i=t.traverse(n);return function(e){return function(t){return r(t,function(t){return i(t,e)})}}}}function MU(e,t){return function(n){var r=e.sequence(n),i=t.sequence(n);return function(t){return r(e.map(t,i))}}}function MA(e,t){var n=(0,tp.getFunctorComposition)(e,t).map,r=nm(e,t),i=ML(e,t),o=MU(e,t);return{map:n,reduce:r.reduce,foldMap:r.foldMap,reduceRight:r.reduceRight,traverse:function(e){var t=i(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},sequence:function(e){var t=o(e);return function(e){return(0,e8.pipe)(e,t)}}}}function Mj(e,t){return void 0===t&&(t=[]),{value:e,forest:t}}function Mq(e){var t=function(n){return eY.isEmpty(n.forest)?"make(".concat(e.show(n.value),")"):"make(".concat(e.show(n.value),", [").concat(n.forest.map(t).join(", "),"])")};return{show:t}}function MG(e){var t,n=(0,t3.fromEquals)(function(n,r){return e.equals(n.value,r.value)&&t.equals(n.forest,r.forest)});return t=eY.getEq(n),n}var MY=function(e,t){for(var n,r="",i=t.length,o=0;o<i;o++){n=t[o];var u=o===i-1;r+=e+(u?"└":"├")+"─ "+n.value,r+=MY(e+(i>1&&!u?"│ ":" "),n.forest)}return r};function MB(e){return MY("\n",e)}function MK(e){return e.value+MB(e.forest)}function MV(e,t){var n,r=t(e);return{value:r[0],forest:Mz(r[1],t)}}function Mz(e,t){return e.map(function(e){return MV(e,t)})}function MH(e){var t=M$(e);return function(n,r){return e.chain(r(n),function(n){var i=n[0],o=n[1];return e.map(t(o,r),function(e){return{value:i,forest:e}})})}}function M$(e){var t=eY.traverse(e);return function(n,r){return(0,e8.pipe)(n,t(function(t){return MH(e)(t,r)}))}}function MX(e){var t=function(n){return e(n.value,n.forest.map(t))};return t}var MJ=function(e,t){return(0,e8.pipe)(e,M6(t))},MZ=function(e,t){return M3(e,function(e){return(0,e8.pipe)(t,M6(e))})},MQ=function(e,t,n){return(0,e8.pipe)(e,Ee(t,n))},M0=function(e){var t=Et(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},M1=function(e,t,n){return(0,e8.pipe)(e,En(t,n))},M2=function(e,t){return(0,e8.pipe)(e,M5(t))},M8=function(e){var t=Ei(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},M7=function(e){return function(t){return MZ(t,e)}},M3=(0,e8.dual)(2,function(e,t){var n=t(e.value),r=n.value,i=n.forest;return{value:r,forest:(0,eY.getMonoid().concat)(i,e.forest.map(M3(t)))}}),M5=function(e){return function(t){return{value:e(t),forest:t.forest.map(M5(e))}}},M4=M5(e8.identity),M9=M3(e8.identity),M6=function(e){return function(t){return{value:e(t.value),forest:t.forest.map(M6(e))}}},Ee=function(e,t){return function(n){for(var r=t(e,n.value),i=n.forest.length,o=0;o<i;o++)r=(0,e8.pipe)(n.forest[o],Ee(r,t));return r}},Et=function(e){return function(t){return Ee(e.empty,function(n,r){return e.concat(n,t(r))})}},En=function(e,t){return function(n){for(var r=e,i=n.forest.length,o=i-1;o>=0;o--)r=(0,e8.pipe)(n.forest[o],En(r,t));return t(n.value,r)}},Er=function(e){return e.value},Ei=function(e){var t=eY.traverse(e),n=function(r){return function(i){return e.ap(e.map(r(i.value),function(e){return function(t){return{value:e,forest:t}}}),(0,e8.pipe)(i.forest,t(n(r))))}};return n},Eo=function(e){return Ei(e)(e8.identity)},Eu=function(e){return Mj(e)},Ea="Tree",Ec={URI:Ea,map:MJ},Ef=(0,tp.flap)(Ec),El={URI:Ea,of:Eu},Ep={URI:Ea,map:MJ,ap:MZ},Ed=(0,eA.apFirst)(Ep),Es=(0,eA.apSecond)(Ep),Em={URI:Ea,map:MJ,ap:MZ,of:Eu},Eh={URI:Ea,map:MJ,ap:MZ,chain:M3},Ev={URI:Ea,map:MJ,ap:MZ,of:Eu,chain:M3},Ey=(0,to.chainFirst)(Eh),Eg={URI:Ea,reduce:MQ,foldMap:M0,reduceRight:M1},E_={URI:Ea,map:MJ,reduce:MQ,foldMap:M0,reduceRight:M1,traverse:M8,sequence:Eo},Eb={URI:Ea,map:MJ,extend:M2,extract:Er},ES=Eu(nR.F4),ET=(0,tp.bindTo)(Ec),EI=(0,tp.let)(Ec),ER=(0,to.bind)(Eh),Ew=(0,eA.apS)(Ep);function EO(e){var t=function(n,r){return e.equals(n,r.value)||r.forest.some(function(e){return t(n,e)})};return t}var Ex=function(e){return function(t){return e(t.value)||t.forest.some(Ex(e))}},EC=M3,EM={URI:Ea,map:MJ,of:Eu,ap:MZ,chain:M3,reduce:MQ,foldMap:M0,reduceRight:M1,traverse:M8,sequence:Eo,extract:Er,extend:M2},EE=bM,EP=bE,Ek=function(e){return[EP(e),EE(e)]};function EW(e){return{URI:E5,_E:void 0,map:Ej,ap:function(t,n){return[EE(t)(EE(n)),e.concat(EP(t),EP(n))]}}}var EF=function(e){return function(t){return[t,e.empty]}};function ED(e){var t=EW(e);return{URI:E5,_E:void 0,map:t.map,ap:t.ap,of:EF(e)}}function EN(e){var t=EW(e);return{URI:E5,_E:void 0,map:t.map,ap:t.ap,chain:function(t,n){var r=n(EE(t)),i=r[0],o=r[1];return[i,e.concat(EP(t),o)]}}}function EL(e){var t=EN(e);return{URI:E5,_E:void 0,map:t.map,ap:t.ap,chain:t.chain,of:EF(e)}}function EU(e){var t=function(t,n){for(var r=n(t),i=e.empty,o=EE(r);"Left"===o._tag;)i=e.concat(i,EP(r)),r=n(o.left),o=EE(r);return[o.right,e.concat(i,EP(r))]},n=EN(e);return{URI:E5,_E:void 0,map:n.map,ap:n.ap,chain:n.chain,chainRec:t}}var EA=function(e,t){return(0,e8.pipe)(e,EJ(t))},Ej=function(e,t){return(0,e8.pipe)(e,E$(t))},Eq=function(e,t,n){return(0,e8.pipe)(e,EH(t,n))},EG=function(e,t){return(0,e8.pipe)(e,EX(t))},EY=function(e,t){return(0,e8.pipe)(e,EZ(t))},EB=function(e,t,n){return(0,e8.pipe)(e,E2(t,n))},EK=function(e){var t=E1(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},EV=function(e,t,n){return(0,e8.pipe)(e,E8(t,n))};function Ez(e){var t=E7(e);return function(e,n){return(0,e8.pipe)(e,t(n))}}var EH=function(e,t){return function(n){return[t(EE(n)),e(EP(n))]}},E$=function(e){return function(t){return[e(EE(t)),EP(t)]}},EX=function(e){return function(t){return[EE(t),e(EP(t))]}},EJ=function(e){return function(t){return[EE(t),EP(e)]}},EZ=function(e){return function(t){return[e(t),EP(t)]}},EQ=EZ(e8.identity),E0=bZ,E1=b1,E2=b0,E8=b2,E7=function(e){return function(t){return function(n){return e.map(t(EE(n)),function(e){return[e,EP(n)]})}}},E3=function(e){return function(t){return e.map(EE(t),function(e){return[e,EP(t)]})}},E5="Tuple",E4={URI:E5,map:Ej},E9=(0,tp.flap)(E4),E6={URI:E5,bimap:Eq,mapLeft:EG},Pe={URI:E5,compose:EA},Pt={URI:E5,map:Ej,extend:EY,extract:E0},Pn={URI:E5,reduce:EB,foldMap:EK,reduceRight:EV},Pr={URI:E5,map:Ej,reduce:EB,foldMap:EK,reduceRight:EV,traverse:Ez,sequence:E3},Pi=E$,Po=EX,Pu={URI:E5,compose:EA,map:Ej,bimap:Eq,mapLeft:EG,extract:E0,extend:EY,reduce:EB,foldMap:EK,reduceRight:EV,traverse:Ez,sequence:E3};function Pa(e,t){var n=(0,eG.getApplicativeComposition)(t,tE.getApplicativeValidation(e));return{map:n.map,ap:n.ap,of:n.of,chain:function(e,n){return t.chain(e,function(e){return nR.nM(e)?t.of(nR.t$(e.left)):n(e.right)})},alt:function(n,r){return t.chain(n,function(n){return nR.tO(n)?t.of(n):t.map(r(),function(t){return nR.nM(t)?nR.t$(e.concat(n.left,t.left)):t})})}}}var Pc=Su.constant(void 0),Pf={concat:Pc.concat,empty:void 0},Pl=function(e){return function(){return[void 0,e]}},Pp=function(e){return function(){var t=e(),n=t[0],r=t[1];return[[n,r],r]}},Pd=function(e){return function(){var t,n=e(),r=n[0],i=r[0];return[i,(0,r[1])(n[1])]}},Ps=function(e){return function(t){return function(){var n=t(),r=n[0],i=n[1];return[[r,e(i)],i]}}},Pm=function(e){return function(t){return function(){var n,r=t();return[r[0],e(r[1])]}}},Ph=function(e,t){return(0,e8.pipe)(e,Pv(t))},Pv=function(e){return function(t){return function(){var n=t(),r=n[0],i=n[1];return[e(r),i]}}},Py="Writer",Pg=function(e){return{URI:Py,_E:void 0,of:function(t){return function(){return[t,e.empty]}}}},P_=function(e){return{URI:Py,_E:void 0,map:Ph,ap:function(t,n){return function(){var r=t(),i=r[0],o=r[1],u=n(),a=u[0],c=u[1];return[i(a),e.concat(o,c)]}}}},Pb=function(e){var t=P_(e),n=Pg(e);return{URI:Py,_E:void 0,map:Ph,ap:t.ap,of:n.of}};function PS(e){var t=P_(e);return{URI:Py,_E:void 0,map:Ph,ap:t.ap,chain:function(t,n){return function(){var r=t(),i=r[0],o=r[1],u=n(i)(),a=u[0],c=u[1];return[a,e.concat(o,c)]}}}}function PT(e){var t=Pb(e),n=PS(e);return{URI:Py,_E:void 0,map:Ph,ap:t.ap,of:t.of,chain:n.chain}}var PI={URI:Py,map:Ph},PR=(0,tp.flap)(PI),Pw=function(e){return e()[0]},PO=function(e){return e()[1]},Px=function(e){return e()[0]},PC=function(e){return e()[1]},PM=PI;function PE(e){var t=function(t,n){return function(){return e.map(t(),function(e){var t=e[0],r=e[1];return[n(t),r]})}};return{map:t,evalWriter:function(t){return e.map(t(),function(e){return e[0]})},execWriter:function(t){return e.map(t(),function(e){return e[0],e[1]})},tell:function(t){return function(){return e.of([void 0,t])}},listen:function(t){return function(){return e.map(t(),function(e){var t=e[0],n=e[1];return[[t,n],n]})}},pass:function(t){return function(){return e.map(t(),function(e){var t,n=e[0],r=n[0];return[r,(0,n[1])(e[1])]})}},listens:function(t,n){return function(){return e.map(t(),function(e){var t=e[0],r=e[1];return[[t,n(r)],r]})}},censor:function(t,n){return function(){return e.map(t(),function(e){var t;return[e[0],n(e[1])]})}},getMonad:function(n){return{_E:void 0,map:t,of:function(t){return function(){return e.of([t,n.empty])}},ap:function(t,r){return function(){return e.chain(t(),function(t){var i=t[0],o=t[1];return e.map(r(),function(e){var t=e[0],r=e[1];return[i(t),n.concat(o,r)]})})}},chain:function(t,r){return function(){return e.chain(t(),function(t){var i=t[0],o=t[1];return e.map(r(i)(),function(e){var t=e[0],r=e[1];return[t,n.concat(o,r)]})})}}}}}}},97963:function(e,t,n){n.d(t,{D9:function(){return x},F2:function(){return d},F4:function(){return g},G:function(){return c},Gb:function(){return v},Od:function(){return m},WE:function(){return T},Wi:function(){return o},Xl:function(){return y},YM:function(){return h},YP:function(){return a},e$:function(){return _},hU:function(){return R},iu:function(){return w},nM:function(){return f},ny:function(){return I},on:function(){return C},pC:function(){return u},r1:function(){return b},ri:function(){return s},t$:function(){return p},tO:function(){return l},uL:function(){return S},we:function(){return O}});var r=n(42275),i=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},o=function(e){return"None"===e._tag},u=function(e){return"Some"===e._tag},a={_tag:"None"},c=function(e){return{_tag:"Some",value:e}},f=function(e){return"Left"===e._tag},l=function(e){return"Right"===e._tag},p=function(e){return{_tag:"Left",left:e}},d=function(e){return{_tag:"Right",right:e}},s=function(e){return[e]},m=function(e){return e.length>0},h=function(e){return e[0]},v=function(e){return e.slice(1)},y=[],g={},_=Object.prototype.hasOwnProperty,b=function(e){return i([e[0]],e.slice(1),!0)},S=function(e){return function(t,n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=t.apply(void 0,r);return e.fromEither(null==o?p(n.apply(void 0,r)):d(o))}}},T=function(e){return function(t,n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var u=t.apply(void 0,r);return e.fromEither(o(u)?p(n.apply(void 0,r)):d(u.value))}}},I=function(e,t){return(0,r.dual)(3,function(n,r,i){return t.flatMap(n,S(e)(r,i))})},R=function(e,t){return(0,r.dual)(3,function(n,r,i){return t.flatMap(n,T(e)(r,i))})},w=function(e,t){return(0,r.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromEither(r(t))})})},O=function(e,t){return(0,r.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromIO(r(t))})})},x=function(e,t){return(0,r.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromTask(r(t))})})},C=function(e,t){return(0,r.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromReader(r(t))})})}},76627:function(e,t,n){n.r(t),n.d(t,{Bounded:function(){return u},Eq:function(){return i},Field:function(){return s},MagmaSub:function(){return c},MonoidProduct:function(){return d},MonoidSum:function(){return p},Ord:function(){return o},SemigroupProduct:function(){return l},SemigroupSum:function(){return f},Show:function(){return a},isNumber:function(){return r}});var r=function(e){return"number"==typeof e},i={equals:function(e,t){return e===t}},o={equals:i.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},u={equals:i.equals,compare:o.compare,top:1/0,bottom:-1/0},a={show:function(e){return JSON.stringify(e)}},c={concat:function(e,t){return e-t}},f={concat:function(e,t){return e+t}},l={concat:function(e,t){return e*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(e){return 1},div:function(e,t){return e/t},mod:function(e,t){return e%t}}},18896:function(e,t,n){n.r(t),n.d(t,{alt:function(){return b},ap:function(){return f},bimap:function(){return p},chain:function(){return l},compose:function(){return E},contramap:function(){return a},extend:function(){return s},filter:function(){return S},filterMap:function(){return T},filterMapWithIndex:function(){return O},filterWithIndex:function(){return w},foldMap:function(){return h},foldMapWithIndex:function(){return g},map:function(){return u},mapLeft:function(){return d},mapWithIndex:function(){return c},partition:function(){return I},partitionMap:function(){return R},partitionMapWithIndex:function(){return C},partitionWithIndex:function(){return x},pipe:function(){return k},pipeable:function(){return P},promap:function(){return M},reduce:function(){return m},reduceRight:function(){return v},reduceRightWithIndex:function(){return _},reduceWithIndex:function(){return y}});var r=n(42925),i=n(88543),o=n(42275);function u(e){return function(t){return function(n){return e.map(n,t)}}}function a(e){return function(t){return function(n){return e.contramap(n,t)}}}function c(e){return function(t){return function(n){return e.mapWithIndex(n,t)}}}function f(e){return function(t){return function(n){return e.ap(n,t)}}}function l(e){return function(t){return function(n){return e.chain(n,t)}}}function p(e){return function(t,n){return function(r){return e.bimap(r,t,n)}}}function d(e){return function(t){return function(n){return e.mapLeft(n,t)}}}function s(e){return function(t){return function(n){return e.extend(n,t)}}}function m(e){return function(t,n){return function(r){return e.reduce(r,t,n)}}}function h(e){return function(t){var n=e.foldMap(t);return function(e){return function(t){return n(t,e)}}}}function v(e){return function(t,n){return function(r){return e.reduceRight(r,t,n)}}}function y(e){return function(t,n){return function(r){return e.reduceWithIndex(r,t,n)}}}function g(e){return function(t){var n=e.foldMapWithIndex(t);return function(e){return function(t){return n(t,e)}}}}function _(e){return function(t,n){return function(r){return e.reduceRightWithIndex(r,t,n)}}}function b(e){return function(t){return function(n){return e.alt(n,t)}}}function S(e){return function(t){return function(n){return e.filter(n,t)}}}function T(e){return function(t){return function(n){return e.filterMap(n,t)}}}function I(e){return function(t){return function(n){return e.partition(n,t)}}}function R(e){return function(t){return function(n){return e.partitionMap(n,t)}}}function w(e){return function(t){return function(n){return e.filterWithIndex(n,t)}}}function O(e){return function(t){return function(n){return e.filterMapWithIndex(n,t)}}}function x(e){return function(t){return function(n){return e.partitionWithIndex(n,t)}}}function C(e){return function(t){return function(n){return e.partitionMapWithIndex(n,t)}}}function M(e){return function(t,n){return function(r){return e.promap(r,t,n)}}}function E(e){return function(t){return function(n){return e.compose(n,t)}}}function P(e){var t,n,P,k,W,F,D,N,L,U,A,j,q,G,Y,B,K={};if("function"==typeof e.map&&(K.map=u(e)),"function"==typeof e.contramap&&(K.contramap=a(e)),"function"==typeof e.mapWithIndex&&(K.mapWithIndex=c(e)),"function"==typeof e.ap&&(K.ap=f(e),K.apFirst=(0,r.apFirst)(e),K.apSecond=(0,r.apSecond)(e)),"function"==typeof e.chain&&(K.chain=l(e),K.chainFirst=(0,i.chainFirst)(e),K.flatten=K.chain(o.identity)),"function"==typeof e.bimap&&(K.bimap=p(e),K.mapLeft=d(e)),"function"==typeof e.extend&&(K.extend=s(e),K.duplicate=K.extend(o.identity)),"function"==typeof e.reduce&&(K.reduce=m(e),K.foldMap=h(e),K.reduceRight=v(e)),"function"==typeof e.reduceWithIndex&&(K.reduceWithIndex=y(e),K.foldMapWithIndex=g(e),K.reduceRightWithIndex=_(e)),"function"==typeof e.alt&&(K.alt=b(e)),"function"==typeof e.compact&&(K.compact=e.compact,K.separate=e.separate),"function"==typeof e.filter&&(K.filter=S(e),K.filterMap=T(e),K.partition=I(e),K.partitionMap=R(e)),"function"==typeof e.filterWithIndex&&(K.filterWithIndex=w(e),K.filterMapWithIndex=O(e),K.partitionWithIndex=x(e),K.partitionMapWithIndex=C(e)),"function"==typeof e.promap&&(K.promap=M(e)),"function"==typeof e.compose&&(K.compose=E(e)),"function"==typeof e.throwError){var V=function(t){return function(n){return"None"===n._tag?e.throwError(t()):e.of(n.value)}},z=function(t){return"Left"===t._tag?e.throwError(t.left):e.of(t.right)},H=function(t,n){return function(r){return t(r)?e.of(r):e.throwError(n(r))}},$=function(t,n){return function(r){return e.chain(r,function(r){return t(r)?e.of(r):e.throwError(n(r))})}};K.fromOption=V,K.fromEither=z,K.fromPredicate=H,K.filterOrElse=$}return K}var k=o.pipe},57029:function(e,t,n){n.r(t),n.d(t,{Eq:function(){return i},Monoid:function(){return a},Ord:function(){return c},Semigroup:function(){return o},Show:function(){return f},empty:function(){return u},endsWith:function(){return I},includes:function(){return S},isEmpty:function(){return g},isString:function(){return l},replace:function(){return s},size:function(){return _},slice:function(){return y},split:function(){return b},startsWith:function(){return T},toLowerCase:function(){return d},toUpperCase:function(){return p},trim:function(){return m},trimLeft:function(){return h},trimRight:function(){return v}});var r=n(28350),i={equals:function(e,t){return e===t}},o={concat:function(e,t){return e+t}},u="",a={concat:o.concat,empty:u},c={equals:i.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},f={show:function(e){return JSON.stringify(e)}},l=function(e){return"string"==typeof e},p=function(e){return e.toUpperCase()},d=function(e){return e.toLowerCase()},s=function(e,t){return function(n){return n.replace(e,t)}},m=function(e){return e.trim()},h=function(e){return e.trimLeft()},v=function(e){return e.trimRight()},y=function(e,t){return function(n){return n.slice(e,t)}},g=function(e){return 0===e.length},_=function(e){return e.length},b=function(e){return function(t){var n=t.split(e);return(0,r.isNonEmpty)(n)?n:[t]}},S=function(e,t){return function(n){return n.includes(e,t)}},T=function(e,t){return function(n){return n.startsWith(e,t)}},I=function(e,t){return function(n){return n.endsWith(e,t)}}},91756:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getApplicativeComposition=t.getApplicativeMonoid=void 0;var r=n(93145),i=n(14632),o=n(8762);t.getApplicativeMonoid=function(e){var t=(0,r.getApplySemigroup)(e);return function(n){return{concat:t(n).concat,empty:e.of(n.empty)}}},t.getApplicativeComposition=function(e,t){var n=(0,o.getFunctorComposition)(e,t).map,u=(0,r.ap)(e,t);return{map:n,of:function(n){return e.of(t.of(n))},ap:function(e,t){return(0,i.pipe)(e,u(t))}}}},93145:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceS=t.sequenceT=t.getApplySemigroup=t.apS=t.apSecond=t.apFirst=t.ap=void 0;var u=n(14632),a=o(n(5309));function c(e,t,n){return function(r){for(var i=Array(n.length+1),o=0;o<n.length;o++)i[o]=n[o];return i[n.length]=r,0===t?e.apply(null,i):c(e,t-1,i)}}t.ap=function(e,t){return function(n){return function(r){return e.ap(e.map(r,function(e){return function(n){return t.ap(e,n)}}),n)}}},t.apFirst=function(e){return function(t){return function(n){return e.ap(e.map(n,function(e){return function(){return e}}),t)}}},t.apSecond=function(e){return function(t){return function(n){return e.ap(e.map(n,function(){return function(e){return e}}),t)}}},t.apS=function(e){return function(t,n){return function(r){return e.ap(e.map(r,function(e){return function(n){var r;return Object.assign({},e,((r={})[t]=n,r))}}),n)}}},t.getApplySemigroup=function(e){return function(t){return{concat:function(n,r){return e.ap(e.map(n,function(e){return function(n){return t.concat(e,n)}}),r)}}}};var f={1:function(e){return[e]},2:function(e){return function(t){return[e,t]}},3:function(e){return function(t){return function(n){return[e,t,n]}}},4:function(e){return function(t){return function(n){return function(r){return[e,t,n,r]}}}},5:function(e){return function(t){return function(n){return function(r){return function(i){return[e,t,n,r,i]}}}}}};t.sequenceT=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r,i=t.length,o=(a.has.call(f,i)||(f[i]=c(u.tuple,i-1,[])),f[i]),l=e.map(t[0],o),p=1;p<i;p++)l=e.ap(l,t[p]);return l}},t.sequenceS=function(e){return function(t){for(var n=Object.keys(t),r=n.length,i=function(e){var t=e.length;switch(t){case 1:return function(t){var n;return(n={})[e[0]]=t,n};case 2:return function(t){return function(n){var r;return(r={})[e[0]]=t,r[e[1]]=n,r}};case 3:return function(t){return function(n){return function(r){var i;return(i={})[e[0]]=t,i[e[1]]=n,i[e[2]]=r,i}}};case 4:return function(t){return function(n){return function(r){return function(i){var o;return(o={})[e[0]]=t,o[e[1]]=n,o[e[2]]=r,o[e[3]]=i,o}}}};case 5:return function(t){return function(n){return function(r){return function(i){return function(o){var u;return(u={})[e[0]]=t,u[e[1]]=n,u[e[2]]=r,u[e[3]]=i,u[e[4]]=o,u}}}}};default:return c(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i={},o=0;o<t;o++)i[e[o]]=n[o];return i},t-1,[])}}(n),o=e.map(t[n[0]],i),u=1;u<r;u++)o=e.ap(o,t[n[u]]);return o}}},92425:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),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 u=n(93145),a=n(18222),c=n(57756),f=n(14632),l=n(8762),p=o(n(5309)),d=o(n(7219)),s=o(n(78703)),m=n(4773),h=n(69706),v=n(3899),y=function(e){return 0===e.length};t.isEmpty=y,t.isNonEmpty=d.isNonEmpty,t.prepend=d.prepend,t.prependW=d.prependW,t.append=d.append,t.appendW=d.appendW;var g=function(e,t){return e<=0?[]:d.makeBy(t)(e)};t.makeBy=g;var _=function(e,n){return(0,t.makeBy)(e,function(){return n})};t.replicate=_,t.fromPredicate=function(e){return function(t){return e(t)?[t]:[]}};var b=function(e){return p.isNone(e)?[]:[e.value]};t.fromOption=b;var S=function(e){return p.isLeft(e)?[]:[e.right]};t.fromEither=S;var T=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(r):e()}};t.matchW=T,t.match=t.matchW;var I=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(d.head(r),d.tail(r)):e()}};t.matchLeftW=I,t.matchLeft=t.matchLeftW,t.foldLeft=t.matchLeft;var R=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(d.init(r),d.last(r)):e()}};t.matchRightW=R,t.matchRight=t.matchRightW,t.foldRight=t.matchRight;var w=function(e){return function(t){for(var n=[],r=0;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}};t.chainWithIndex=w;var O=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}};t.scanLeft=O;var x=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}};t.scanRight=x;var C=function(e){return e.length};t.size=C,t.isOutOfBound=d.isOutOfBound,t.lookup=s.lookup,t.head=s.head,t.last=s.last;var M=function(e){return(0,t.isNonEmpty)(e)?p.some(d.tail(e)):p.none};t.tail=M;var E=function(e){return(0,t.isNonEmpty)(e)?p.some(d.init(e)):p.none};t.init=E;var P=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?(0,t.copy)(n):n.slice(0,e)}};t.takeLeft=P;var k=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?(0,t.copy)(n):0===e?[]:n.slice(-e)}};t.takeRight=k,t.takeLeftWhile=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];if(!e(i))break;n.push(i)}return n}};var W=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r};t.spanLeft=function(e){return function(n){var r,i=(0,t.splitAt)(W(n,e))(n);return{init:i[0],rest:i[1]}}};var F=function(e){return function(n){return e<=0||(0,t.isEmpty)(n)?(0,t.copy)(n):e>=n.length?[]:n.slice(e,n.length)}};t.dropLeft=F;var D=function(e){return function(n){return e<=0||(0,t.isEmpty)(n)?(0,t.copy)(n):e>=n.length?[]:n.slice(0,n.length-e)}};t.dropRight=D,t.dropLeftWhile=function(e){return function(t){return t.slice(W(t,e))}},t.findIndex=s.findIndex,t.findFirst=function(e){return s.findFirst(e)},t.findFirstMap=s.findFirstMap,t.findLast=function(e){return s.findLast(e)},t.findLastMap=s.findLastMap,t.findLastIndex=s.findLastIndex;var N=function(e){return e.slice()};t.copy=N;var L=function(e,n){return function(r){return e<0||e>r.length?p.none:p.some((0,t.unsafeInsertAt)(e,n,r))}};t.insertAt=L;var U=function(e,n){return(0,t.modifyAt)(e,function(){return n})};t.updateAt=U;var A=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?p.none:p.some((0,t.unsafeDeleteAt)(e,n))}};t.deleteAt=A;var j=function(e,n){return function(r){return(0,t.isOutOfBound)(e,r)?p.none:p.some((0,t.unsafeUpdateAt)(e,n(r[e]),r))}};t.modifyAt=j;var q=function(e){return(0,t.isEmpty)(e)?[]:e.slice().reverse()};t.reverse=q;var G=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t};t.rights=G;var Y=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t};t.lefts=Y;var B=function(e){return function(n){return n.length<=1?(0,t.copy)(n):n.slice().sort(e.compare)}};t.sort=B;var K=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r};t.zipWith=K,t.zip=function e(n,r){return void 0===r?function(t){return e(t,n)}:(0,t.zipWith)(n,r,function(e,t){return[e,t]})};var V=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]};t.unzip=V;var z=function(e){var n=d.prependAll(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):[]}};t.prependAll=z;var H=function(e){var n=d.intersperse(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):(0,t.copy)(e)}};t.intersperse=H;var $=function(e){var n=d.rotate(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):(0,t.copy)(e)}};t.rotate=$,t.elem=s.elem;var X=function(e){var n=d.uniq(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):(0,t.copy)(e)}};t.uniq=X;var J=function(e){var n=d.sortBy(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):(0,t.copy)(e)}};t.sortBy=J;var Z=function(e){var n=d.chop(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):[]}};t.chop=Z;var Q=function(e){return function(n){return e>=1&&(0,t.isNonEmpty)(n)?d.splitAt(e)(n):(0,t.isEmpty)(n)?[(0,t.copy)(n),[]]:[[],(0,t.copy)(n)]}};t.splitAt=Q;var ee=function(e){var n=d.chunksOf(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):[]}};t.chunksOf=ee;var et=function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(0,t.fromOption)(e.apply(void 0,n))}};t.fromOptionK=et,t.comprehension=function(e,n,r){void 0===r&&(r=function(){return!0});var i=function(e,o){return(0,t.isNonEmpty)(o)?(0,t.flatMap)(d.head(o),function(n){return i((0,f.pipe)(e,(0,t.append)(n)),d.tail(o))}):r.apply(void 0,e)?[n.apply(void 0,e)]:[]};return i([],e)};var en=function(e){return function(n){return(0,t.isEmpty)(n)?(0,t.copy)(e):(0,t.isEmpty)(e)?(0,t.copy)(n):n.concat(e)}};function er(e){var n=d.union(e);return function(r,i){if(void 0===i){var o=er(e);return function(e){return o(e,r)}}return(0,t.isNonEmpty)(r)&&(0,t.isNonEmpty)(i)?n(i)(r):(0,t.isNonEmpty)(r)?(0,t.copy)(r):(0,t.copy)(i)}}function ei(e){var n=(0,t.elem)(e);return function(t,r){if(void 0===r){var i=ei(e);return function(e){return i(e,t)}}return t.filter(function(e){return n(e,r)})}}function eo(e){var n=(0,t.elem)(e);return function(t,r){if(void 0===r){var i=eo(e);return function(e){return i(e,t)}}return t.filter(function(e){return!n(e,r)})}}t.concatW=en,t.concat=t.concatW,t.union=er,t.intersection=ei,t.difference=eo;var eu=function(e,n){return(0,f.pipe)(e,(0,t.map)(n))},ea=function(e,n){return(0,f.pipe)(e,(0,t.mapWithIndex)(n))},ec=function(e,n){return(0,f.pipe)(e,(0,t.ap)(n))},ef=function(e,n){return(0,f.pipe)(e,(0,t.filter)(n))},el=function(e,n){return(0,f.pipe)(e,(0,t.filterMap)(n))},ep=function(e,n){return(0,f.pipe)(e,(0,t.partition)(n))},ed=function(e,n){return(0,f.pipe)(e,(0,t.partitionMap)(n))},es=function(e,n){return(0,f.pipe)(e,(0,t.partitionWithIndex)(n))},em=function(e,n){return(0,f.pipe)(e,(0,t.partitionMapWithIndex)(n))},eh=function(e,n){return(0,f.pipe)(e,(0,t.alt)(n))},ev=function(e,n,r){return(0,f.pipe)(e,(0,t.reduce)(n,r))},ey=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},eg=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceRight)(n,r))},e_=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceWithIndex)(n,r))},eb=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},eS=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceRightWithIndex)(n,r))},eT=function(e,n){return(0,f.pipe)(e,(0,t.filterMapWithIndex)(n))},eI=function(e,n){return(0,f.pipe)(e,(0,t.filterWithIndex)(n))},eR=function(e,n){return(0,f.pipe)(e,(0,t.extend)(n))},ew=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},eO=function(e){var n=(0,t.traverseWithIndex)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},ex=s._chainRecDepthFirst,eC=s._chainRecBreadthFirst;t.of=d.of;var eM=function(){return[]};t.zero=eM;var eE=function(e){return function(t){return t.map(function(t){return e(t)})}};t.map=eE;var eP=function(e){return(0,t.flatMap)(function(n){return(0,f.pipe)(e,(0,t.map)(n))})};t.ap=eP,t.flatMap=(0,f.dual)(2,function(e,n){return(0,f.pipe)(e,(0,t.chainWithIndex)(function(e,t){return n(t,e)}))}),t.flatten=(0,t.flatMap)(f.identity);var ek=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}};t.mapWithIndex=ek;var eW=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);p.isSome(i)&&n.push(i.value)}return n}};t.filterMapWithIndex=eW;var eF=function(e){return(0,t.filterMapWithIndex)(function(t,n){return e(n)})};t.filterMap=eF,t.compact=(0,t.filterMap)(f.identity);var eD=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return(0,m.separated)(t,n)};t.separate=eD;var eN=function(e){return function(t){return t.filter(e)}};t.filter=eN;var eL=function(e){return(0,t.partitionWithIndex)(function(t,n){return e(n)})};t.partition=eL;var eU=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return(0,m.separated)(n,r)}};t.partitionWithIndex=eU;var eA=function(e){return(0,t.partitionMapWithIndex)(function(t,n){return e(n)})};t.partitionMap=eA;var ej=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return(0,m.separated)(n,r)}};t.partitionMapWithIndex=ej;var eq=function(e){return function(t){return t.concat(e())}};t.altW=eq,t.alt=t.altW;var eG=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}};t.filterWithIndex=eG;var eY=function(e){return function(t){return t.map(function(n,r){return e(t.slice(r))})}};t.extend=eY,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;var eB=function(e){var n=(0,t.traverseWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}};t.traverse=eB;var eK=function(e){return function(n){return ev(n,e.of((0,t.zero)()),function(n,r){return e.ap(e.map(n,function(e){return function(n){return(0,f.pipe)(e,(0,t.append)(n))}}),r)})}};t.sequence=eK;var eV=function(e){return function(n){return(0,t.reduceWithIndex)(e.of((0,t.zero)()),function(r,i,o){return e.ap(e.map(i,function(e){return function(n){return(0,f.pipe)(e,(0,t.append)(n))}}),n(r,o))})}};t.traverseWithIndex=eV;var ez=function(e){var t=e2(e);return function(e){return function(n){return t(n,e)}}};t.wither=ez;var eH=function(e){var t=e8(e);return function(e){return function(n){return t(n,e)}}};t.wilt=eH;var e$=function(e,t){for(var n=[],r=e;;){var i=t(r);if(p.isSome(i)){var o=i.value,u=o[0],a=o[1];n.push(u),r=a}else break}return n};t.unfold=e$,t.URI="Array",t.getShow=s.getShow;var eX=function(){return{concat:function(e,t){return e.concat(t)}}};t.getSemigroup=eX;var eJ=function(){return{concat:(0,t.getSemigroup)().concat,empty:[]}};t.getMonoid=eJ,t.getEq=s.getEq,t.getOrd=s.getOrd;var eZ=function(e){var t=er(e);return{concat:function(e,n){return t(n)(e)}}};t.getUnionSemigroup=eZ;var eQ=function(e){return{concat:(0,t.getUnionSemigroup)(e).concat,empty:[]}};t.getUnionMonoid=eQ;var e0=function(e){var t=ei(e);return{concat:function(e,n){return t(n)(e)}}};t.getIntersectionSemigroup=e0;var e1=function(e){var t=eo(e);return{concat:function(e,n){return t(n)(e)}}};t.getDifferenceMagma=e1,t.Functor={URI:t.URI,map:eu},t.flap=(0,l.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:eu,mapWithIndex:ea},t.Apply={URI:t.URI,map:eu,ap:ec},t.apFirst=(0,u.apFirst)(t.Apply),t.apSecond=(0,u.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:eu,ap:ec,of:t.of},t.Chain={URI:t.URI,map:eu,ap:ec,chain:t.flatMap},t.chainFirst=(0,a.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:eu,ap:ec,of:t.of,chain:t.flatMap},t.Unfoldable={URI:t.URI,unfold:t.unfold},t.Alt={URI:t.URI,map:eu,alt:eh},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,v.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:eu,ap:ec,of:t.of,alt:eh,zero:t.zero},t.Extend={URI:t.URI,map:eu,extend:eR},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:eu,compact:t.compact,separate:t.separate,filter:ef,filterMap:el,partition:ep,partitionMap:ed},t.FilterableWithIndex={URI:t.URI,map:eu,mapWithIndex:ea,compact:t.compact,separate:t.separate,filter:ef,filterMap:el,partition:ep,partitionMap:ed,partitionMapWithIndex:em,partitionWithIndex:es,filterMapWithIndex:eT,filterWithIndex:eI},t.Foldable={URI:t.URI,reduce:ev,foldMap:ey,reduceRight:eg},t.FoldableWithIndex={URI:t.URI,reduce:ev,foldMap:ey,reduceRight:eg,reduceWithIndex:e_,foldMapWithIndex:eb,reduceRightWithIndex:eS},t.Traversable={URI:t.URI,map:eu,reduce:ev,foldMap:ey,reduceRight:eg,traverse:ew,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:eu,mapWithIndex:ea,reduce:ev,foldMap:ey,reduceRight:eg,reduceWithIndex:e_,foldMapWithIndex:eb,reduceRightWithIndex:eS,traverse:ew,sequence:t.sequence,traverseWithIndex:eO};var e2=(0,h.witherDefault)(t.Traversable,t.Compactable),e8=(0,h.wiltDefault)(t.Traversable,t.Compactable);t.Witherable={URI:t.URI,map:eu,compact:t.compact,separate:t.separate,filter:ef,filterMap:el,partition:ep,partitionMap:ed,reduce:ev,foldMap:ey,reduceRight:eg,traverse:ew,sequence:t.sequence,wither:e2,wilt:e8},t.chainRecDepthFirst=s.chainRecDepthFirst,t.ChainRecDepthFirst={URI:t.URI,map:eu,ap:ec,chain:t.flatMap,chainRec:ex},t.chainRecBreadthFirst=s.chainRecBreadthFirst,t.ChainRecBreadthFirst={URI:t.URI,map:eu,ap:ec,chain:t.flatMap,chainRec:eC},t.filterE=(0,h.filterE)(t.Witherable),t.FromEither={URI:t.URI,fromEither:t.fromEither},t.fromEitherK=(0,c.fromEitherK)(t.FromEither),t.unsafeInsertAt=d.unsafeInsertAt;var e7=function(e,n,r){return(0,t.isNonEmpty)(r)?d.unsafeUpdateAt(e,n,r):[]};t.unsafeUpdateAt=e7;var e3=function(e,t){var n=t.slice();return n.splice(e,1),n};t.unsafeDeleteAt=e3,t.every=s.every;var e5=function(e){return function(t){return t.some(e)}};t.some=e5,t.exists=t.some,t.intercalate=s.intercalate,t.Do=(0,t.of)(p.emptyRecord),t.bindTo=(0,l.bindTo)(t.Functor);var e4=(0,l.let)(t.Functor);t.let=e4,t.bind=(0,a.bind)(t.Chain),t.apS=(0,u.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:eu,ap:ec,of:t.of,chain:t.flatMap,filter:ef,filterMap:el,partition:ep,partitionMap:ed,mapWithIndex:ea,partitionMapWithIndex:em,partitionWithIndex:es,filterMapWithIndex:eT,filterWithIndex:eI,alt:eh,zero:t.zero,unfold:t.unfold,reduce:ev,foldMap:ey,reduceRight:eg,traverse:ew,sequence:t.sequence,reduceWithIndex:e_,foldMapWithIndex:eb,reduceRightWithIndex:eS,traverseWithIndex:eO,extend:eR,wither:e2,wilt:e8}},18222:function(e,t){function n(e){return function(t,n){return e.chain(t,function(t){return e.map(n(t),function(){return t})})}}Object.defineProperty(t,"__esModule",{value:!0}),t.bind=t.tap=t.chainFirst=void 0,t.chainFirst=function(e){var t=n(e);return function(e){return function(n){return t(n,e)}}},t.tap=n,t.bind=function(e){return function(t,n){return function(r){return e.chain(r,function(r){return e.map(n(r),function(e){var n;return Object.assign({},r,((n={})[t]=e,n))})})}}}},71166:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tailRec=void 0;var n=function(e,t){for(var n=t(e);"Left"===n._tag;)n=t(n.left);return n.right};t.tailRec=n},87412:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),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 u=n(91756),a=n(93145),c=o(n(18222)),f=n(71166),l=n(57756),p=n(14632),d=n(8762),s=o(n(5309)),m=n(4773),h=n(69706);t.left=s.left,t.right=s.right,t.flatMap=(0,p.dual)(2,function(e,n){return(0,t.isLeft)(e)?e:n(e.right)});var v=function(e,n){return(0,p.pipe)(e,(0,t.map)(n))},y=function(e,n){return(0,p.pipe)(e,(0,t.ap)(n))},g=function(e,n,r){return(0,p.pipe)(e,(0,t.reduce)(n,r))},_=function(e){return function(n,r){var i=(0,t.foldMap)(e);return(0,p.pipe)(n,i(r))}},b=function(e,n,r){return(0,p.pipe)(e,(0,t.reduceRight)(n,r))},S=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},T=function(e,n,r){return(0,p.pipe)(e,(0,t.bimap)(n,r))},I=function(e,n){return(0,p.pipe)(e,(0,t.mapLeft)(n))},R=function(e,n){return(0,p.pipe)(e,(0,t.alt)(n))},w=function(e,n){return(0,p.pipe)(e,(0,t.extend)(n))},O=function(e,n){return(0,f.tailRec)(n(e),function(e){return(0,t.isLeft)(e)?(0,t.right)((0,t.left)(e.left)):(0,t.isLeft)(e.right)?(0,t.left)(n(e.right.left)):(0,t.right)((0,t.right)(e.right.right))})};t.URI="Either";var x=function(e,n){return{show:function(r){return(0,t.isLeft)(r)?"left(".concat(e.show(r.left),")"):"right(".concat(n.show(r.right),")")}}};t.getShow=x;var C=function(e,n){return{equals:function(r,i){return r===i||((0,t.isLeft)(r)?(0,t.isLeft)(i)&&e.equals(r.left,i.left):(0,t.isRight)(i)&&n.equals(r.right,i.right))}}};t.getEq=C;var M=function(e){return{concat:function(n,r){return(0,t.isLeft)(r)?n:(0,t.isLeft)(n)?r:(0,t.right)(e.concat(n.right,r.right))}}};t.getSemigroup=M;var E=function(e){var n=(0,t.left)(e.empty);return{URI:t.URI,_E:void 0,compact:function(e){return(0,t.isLeft)(e)?e:"None"===e.right._tag?n:(0,t.right)(e.right.value)},separate:function(e){return(0,t.isLeft)(e)?(0,m.separated)(e,e):(0,t.isLeft)(e.right)?(0,m.separated)((0,t.right)(e.right.left),n):(0,m.separated)(n,(0,t.right)(e.right.right))}}};t.getCompactable=E;var P=function(e){var n=(0,t.left)(e.empty),r=(0,t.getCompactable)(e),i=r.compact,o=r.separate,u=function(e,r){return(0,t.isLeft)(e)?e:r(e.right)?e:n},a=function(e,r){return(0,t.isLeft)(e)?(0,m.separated)(e,e):r(e.right)?(0,m.separated)(n,(0,t.right)(e.right)):(0,m.separated)((0,t.right)(e.right),n)};return{URI:t.URI,_E:void 0,map:v,compact:i,separate:o,filter:u,filterMap:function(e,r){if((0,t.isLeft)(e))return e;var i=r(e.right);return"None"===i._tag?n:(0,t.right)(i.value)},partition:a,partitionMap:function(e,r){if((0,t.isLeft)(e))return(0,m.separated)(e,e);var i=r(e.right);return(0,t.isLeft)(i)?(0,m.separated)((0,t.right)(i.left),n):(0,m.separated)(n,(0,t.right)(i.right))}}};t.getFilterable=P;var k=function(e){var n=(0,t.getFilterable)(e),r=(0,t.getCompactable)(e);return{URI:t.URI,_E:void 0,map:v,compact:n.compact,separate:n.separate,filter:n.filter,filterMap:n.filterMap,partition:n.partition,partitionMap:n.partitionMap,traverse:S,sequence:t.sequence,reduce:g,foldMap:_,reduceRight:b,wither:(0,h.witherDefault)(t.Traversable,r),wilt:(0,h.wiltDefault)(t.Traversable,r)}};t.getWitherable=k;var W=function(e){return{URI:t.URI,_E:void 0,map:v,ap:function(n,r){return(0,t.isLeft)(n)?(0,t.isLeft)(r)?(0,t.left)(e.concat(n.left,r.left)):n:(0,t.isLeft)(r)?r:(0,t.right)(n.right(r.right))},of:t.of}};t.getApplicativeValidation=W;var F=function(e){return{URI:t.URI,_E:void 0,map:v,alt:function(n,r){if((0,t.isRight)(n))return n;var i=r();return(0,t.isLeft)(i)?(0,t.left)(e.concat(n.left,i.left)):i}}};t.getAltValidation=F;var D=function(e){return function(n){return(0,t.isLeft)(n)?n:(0,t.right)(e(n.right))}};t.map=D,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};var N=function(e){return function(n){return(0,t.isLeft)(n)?n:(0,t.isLeft)(e)?e:(0,t.right)(n.right(e.right))}};t.apW=N,t.ap=t.apW,t.Apply={URI:t.URI,map:v,ap:y},t.Applicative={URI:t.URI,map:v,ap:y,of:t.of},t.Chain={URI:t.URI,map:v,ap:y,chain:t.flatMap},t.Monad={URI:t.URI,map:v,ap:y,of:t.of,chain:t.flatMap};var L=function(e,n){return function(r){return(0,t.isLeft)(r)?e:n(e,r.right)}};t.reduce=L;var U=function(e){return function(n){return function(r){return(0,t.isLeft)(r)?e.empty:n(r.right)}}};t.foldMap=U;var A=function(e,n){return function(r){return(0,t.isLeft)(r)?e:n(r.right,e)}};t.reduceRight=A,t.Foldable={URI:t.URI,reduce:g,foldMap:_,reduceRight:b};var j=function(e){return function(n){return function(r){return(0,t.isLeft)(r)?e.of((0,t.left)(r.left)):e.map(n(r.right),t.right)}}};t.traverse=j;var q=function(e){return function(n){return(0,t.isLeft)(n)?e.of((0,t.left)(n.left)):e.map(n.right,t.right)}};t.sequence=q,t.Traversable={URI:t.URI,map:v,reduce:g,foldMap:_,reduceRight:b,traverse:S,sequence:t.sequence};var G=function(e,n){return function(r){return(0,t.isLeft)(r)?(0,t.left)(e(r.left)):(0,t.right)(n(r.right))}};t.bimap=G;var Y=function(e){return function(n){return(0,t.isLeft)(n)?(0,t.left)(e(n.left)):n}};t.mapLeft=Y,t.Bifunctor={URI:t.URI,bimap:T,mapLeft:I};var B=function(e){return function(n){return(0,t.isLeft)(n)?e():n}};t.altW=B,t.alt=t.altW,t.Alt={URI:t.URI,map:v,alt:R};var K=function(e){return function(n){return(0,t.isLeft)(n)?n:(0,t.right)(e(n))}};t.extend=K,t.Extend={URI:t.URI,map:v,extend:w},t.ChainRec={URI:t.URI,map:v,ap:y,chain:t.flatMap,chainRec:O},t.throwError=t.left,t.MonadThrow={URI:t.URI,map:v,ap:y,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;var V=function(e,n){return function(r){return(0,t.isLeft)(r)?e(r.left):n(r.right)}};t.matchW=V,t.foldW=t.matchW,t.match=t.matchW,t.fold=t.match;var z=function(e){return function(n){return(0,t.isLeft)(n)?e(n.left):n.right}};t.getOrElseW=z,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 H={fromEither:t.FromEither.fromEither};t.liftNullable=s.liftNullable(H),t.liftOption=s.liftOption(H);var $={flatMap:t.flatMap};t.flatMapNullable=s.flatMapNullable(H,$),t.flatMapOption=s.flatMapOption(H,$),t.filterOrElse=(0,l.filterOrElse)(t.FromEither,t.Chain),t.filterOrElseW=t.filterOrElse;var X=function(e){return(0,t.isLeft)(e)?(0,t.right)(e.left):(0,t.left)(e.right)};t.swap=X;var J=function(e){return function(n){return(0,t.isLeft)(n)?e(n.left):n}};t.orElseW=J,t.orElse=t.orElseW;var Z=function(e){return function(n){return null==n?(0,t.left)(e):(0,t.right)(n)}};t.fromNullable=Z;var Q=function(e,n){try{return(0,t.right)(e())}catch(r){return(0,t.left)(n(r))}};t.tryCatch=Q;var ee=function(e,n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return(0,t.tryCatch)(function(){return e.apply(void 0,r)},n)}};t.tryCatchK=ee;var et=function(e){var n=(0,t.fromNullable)(e);return function(e){return(0,p.flow)(e,n)}};t.fromNullableK=et;var en=function(e){var n=(0,t.fromNullableK)(e);return function(e){return(0,t.flatMap)(n(e))}};t.chainNullableK=en,t.toUnion=(0,t.foldW)(p.identity,p.identity),t.toError=function(e){return e instanceof Error?e:Error(String(e))},t.elem=function e(n){return function(r,i){if(void 0===i){var o=e(n);return function(e){return o(r,e)}}return!(0,t.isLeft)(i)&&n.equals(r,i.right)}};var er=function(e){return function(n){return!(0,t.isLeft)(n)&&e(n.right)}};t.exists=er,t.Do=(0,t.of)(s.emptyRecord),t.bindTo=(0,d.bindTo)(t.Functor);var ei=(0,d.let)(t.Functor);t.let=ei,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);var eo=function(e){return function(n){var r=e(0,s.head(n));if((0,t.isLeft)(r))return r;for(var i=[r.right],o=1;o<n.length;o++){var u=e(o,n[o]);if((0,t.isLeft)(u))return u;i.push(u.right)}return(0,t.right)(i)}};t.traverseReadonlyNonEmptyArrayWithIndex=eo;var eu=function(e){var n=(0,t.traverseReadonlyNonEmptyArrayWithIndex)(e);return function(e){return s.isNonEmpty(e)?n(e):t.ApT}};t.traverseReadonlyArrayWithIndex=eu,t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex;var ea=function(e){return(0,t.traverseReadonlyArrayWithIndex)(function(t,n){return e(n)})};t.traverseArray=ea,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(e,n){return(0,t.tryCatch)(function(){return JSON.parse(e)},n)};var ec=function(e,n){return(0,t.tryCatch)(function(){var t=JSON.stringify(e);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},n)};t.stringifyJSON=ec,t.either={URI:t.URI,map:v,of:t.of,ap:y,chain:t.flatMap,reduce:g,foldMap:_,reduceRight:b,traverse:S,sequence:t.sequence,bimap:T,mapLeft:I,alt:R,extend:w,chainRec:O,throwError:t.throwError},t.getApplySemigroup=(0,a.getApplySemigroup)(t.Apply),t.getApplyMonoid=(0,u.getApplicativeMonoid)(t.Applicative);var ef=function(e,n){return(0,a.getApplySemigroup)((0,t.getApplicativeValidation)(e))(n)};t.getValidationSemigroup=ef;var el=function(e,n){return(0,u.getApplicativeMonoid)((0,t.getApplicativeValidation)(e))(n)};t.getValidationMonoid=el,t.getValidation=function(e){var n=(0,t.getApplicativeValidation)(e).ap,r=(0,t.getAltValidation)(e).alt;return{URI:t.URI,_E:void 0,map:v,of:t.of,chain:t.flatMap,bimap:T,mapLeft:I,reduce:g,foldMap:_,reduceRight:b,extend:w,traverse:S,sequence:t.sequence,chainRec:O,throwError:t.throwError,ap:n,alt:r}}},8190:function(e,t,n){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=n(14632),i=function(e){return{equals:function(t,n){return t===n||e(t,n)}}};t.fromEquals=i;var o=function(e){return(0,t.fromEquals)(function(t,n){for(var r in e)if(!e[r].equals(t[r],n[r]))return!1;return!0})};t.struct=o;var u=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,t.fromEquals)(function(t,n){return e.every(function(e,r){return e.equals(t[r],n[r])})})};t.tuple=u;var a=function(e,n){return(0,r.pipe)(e,(0,t.contramap)(n))},c=function(e){return function(n){return(0,t.fromEquals)(function(t,r){return n.equals(e(t),e(r))})}};t.contramap=c,t.URI="Eq",t.eqStrict={equals:function(e,t){return e===t}};var f={equals:function(){return!0}},l=function(){return{concat:function(e,n){return(0,t.fromEquals)(function(t,r){return e.equals(t,r)&&n.equals(t,r)})}}};t.getSemigroup=l;var p=function(){return{concat:(0,t.getSemigroup)().concat,empty:f}};t.getMonoid=p,t.Contravariant={URI:t.URI,contramap:a},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(e,t){return e.valueOf()===t.valueOf()}}},57756:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),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 u=n(18222),a=n(14632),c=o(n(5309));function f(e){return function(t){return function(n){return e.fromEither(c.isNone(n)?c.left(t()):c.right(n.value))}}}function l(e){var t=f(e);return function(e){var n=t(e);return function(e){return(0,a.flow)(e,n)}}}function p(e){return function(t){return(0,a.flow)(t,e.fromEither)}}function d(e,t){var n=p(e),r=(0,u.tap)(t);return function(e,t){return r(e,n(t))}}t.fromOption=f,t.fromPredicate=function(e){return function(t,n){return function(r){return e.fromEither(t(r)?c.right(r):c.left(n(r)))}}},t.fromOptionK=l,t.chainOptionK=function(e,t){var n=l(e);return function(e){var r=n(e);return function(e){return function(n){return t.chain(n,r(e))}}}},t.fromEitherK=p,t.chainEitherK=function(e,t){var n=p(e);return function(e){return function(r){return t.chain(r,n(e))}}},t.chainFirstEitherK=function(e,t){var n=d(e,t);return function(e){return function(t){return n(t,e)}}},t.filterOrElse=function(e,t){return function(n,r){return function(i){return t.chain(i,function(t){return e.fromEither(n(t)?c.right(t):c.left(r(t)))})}}},t.tapEither=d},8762:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.asUnit=t.as=t.getFunctorComposition=t.let=t.bindTo=t.flap=t.map=void 0;var r=n(14632);function i(e,t){return function(n){return function(r){return e.map(r,function(e){return t.map(e,n)})}}}function o(e){return function(t,n){return e.map(t,function(){return n})}}t.map=i,t.flap=function(e){return function(t){return function(n){return e.map(n,function(e){return e(t)})}}},t.bindTo=function(e){return function(t){return function(n){return e.map(n,function(e){var n;return(n={})[t]=e,n})}}},t.let=function(e){return function(t,n){return function(r){return e.map(r,function(e){var r;return Object.assign({},e,((r={})[t]=n(e),r))})}}},t.getFunctorComposition=function(e,t){var n=i(e,t);return{map:function(e,t){return(0,r.pipe)(e,n(t))}}},t.as=o,t.asUnit=function(e){var t=o(e);return function(e){return t(e,void 0)}}},73540:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=t.endo=t.filterSecond=t.filterFirst=t.reverse=void 0;var n=function(e){return{concat:function(t,n){return e.concat(n,t)}}};t.reverse=n;var r=function(e){return function(t){return{concat:function(n,r){return e(n)?t.concat(n,r):r}}}};t.filterFirst=r;var i=function(e){return function(t){return{concat:function(n,r){return e(r)?t.concat(n,r):n}}}};t.filterSecond=i;var o=function(e){return function(t){return{concat:function(n,r){return t.concat(e(n),e(r))}}}};t.endo=o;var u=function(e){return function(t){return function(n){return n.reduce(function(t,n){return e.concat(t,n)},t)}}};t.concatAll=u},7219:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},u=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.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=n(93145),c=n(18222),f=n(14632),l=n(8762),p=o(n(5309)),d=n(83235),s=o(n(84612)),m=function(e){return e.length>0};t.isNonEmpty=m;var h=function(e,t){return e<0||e>=t.length};t.isOutOfBound=h;var v=function(e){return function(t){return u([e],t,!0)}};t.prependW=v,t.prepend=t.prependW;var y=function(e){return function(t){return u(u([],t,!0),[e],!1)}};t.appendW=y,t.append=t.appendW;var g=function(e,n,r){if((0,t.isNonEmpty)(r)){var i=(0,t.fromReadonlyNonEmptyArray)(r);return i.splice(e,0,n),i}return[n]};t.unsafeInsertAt=g;var _=function(e,n,r){var i=(0,t.fromReadonlyNonEmptyArray)(r);return i[e]=n,i};t.unsafeUpdateAt=_;var b=function(e){return function(n){if(1===n.length)return(0,t.copy)(n);for(var r=[(0,t.head)(n)],i=(0,t.tail)(n),o=function(t){r.every(function(n){return!e.equals(n,t)})&&r.push(t)},u=0;u<i.length;u++)o(i[u]);return r}};t.uniq=b;var S=function(e){if((0,t.isNonEmpty)(e)){var n=(0,d.getMonoid)();return(0,t.sort)(e.reduce(n.concat,n.empty))}return t.copy};t.sortBy=S;var T=function(e){var n=(0,t.uniq)(e);return function(e){return function(t){return n((0,f.pipe)(t,P(e)))}}};t.union=T;var I=function(e){return function(n){var r=n.length,i=Math.round(e)%r;if((0,t.isOutOfBound)(Math.abs(i),n)||0===i)return(0,t.copy)(n);if(!(i<0))return(0,t.rotate)(i-r)(n);var o=(0,t.splitAt)(-i)(n),u=o[0],a=o[1];return(0,f.pipe)(a,P(u))}};t.rotate=I,t.fromReadonlyNonEmptyArray=p.fromReadonlyNonEmptyArray;var R=function(e){return(0,t.isNonEmpty)(e)?p.some(e):p.none};t.fromArray=R;var w=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}};t.makeBy=w;var O=function(e){return(0,t.makeBy)(function(){return e})};t.replicate=O;var x=function(e,n){return e<=n?(0,t.makeBy)(function(t){return e+t})(n-e+1):[e]};t.range=x;var C=function(e){return[(0,t.head)(e),(0,t.tail)(e)]};t.unprepend=C;var M=function(e){return[(0,t.init)(e),(0,t.last)(e)]};function E(e){return function(t){return t.concat(e)}}function P(e,t){return t?e.concat(t):function(t){return t.concat(e)}}t.unappend=M,t.concatW=E,t.concat=P;var k=function(e){return u([(0,t.last)(e)],e.slice(0,-1).reverse(),!0)};function W(e){return function(t){var n=t.length;if(0===n)return[];for(var r=[],i=t[0],o=[i],u=1;u<n;u++){var a=t[u];e.equals(a,i)?o.push(a):(r.push(o),o=[i=a])}return r.push(o),r}}t.reverse=k,t.group=W;var F=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);p.has.call(n,o)?n[o].push(i):n[o]=[i]}return n}};t.groupBy=F;var D=function(e){return function(t){return t.slice().sort(e.compare)}};t.sort=D;var N=function(e,n){return function(r){return e<0||e>r.length?p.none:p.some((0,t.unsafeInsertAt)(e,n,r))}};t.insertAt=N;var L=function(e,n){return(0,t.modifyAt)(e,function(){return n})};t.updateAt=L;var U=function(e,n){return function(r){return(0,t.isOutOfBound)(e,r)?p.none:p.some((0,t.unsafeUpdateAt)(e,n(r[e]),r))}};t.modifyAt=U,t.copy=t.fromReadonlyNonEmptyArray;var A=function(e){return[e]};t.of=A;var j=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r};t.zipWith=j,t.zip=function e(n,r){return void 0===r?function(t){return e(t,n)}:(0,t.zipWith)(n,r,function(e,t){return[e,t]})};var q=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]};t.unzip=q;var G=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}};t.prependAll=G;var Y=function(e){return function(n){var r=(0,t.tail)(n);return(0,t.isNonEmpty)(r)?(0,f.pipe)(r,(0,t.prependAll)(e),(0,t.prepend)((0,t.head)(n))):(0,t.copy)(n)}};t.intersperse=Y,t.foldMapWithIndex=s.foldMapWithIndex,t.foldMap=s.foldMap;var B=function(e){return function(n){for(var r=(0,t.fromReadonlyNonEmptyArray)(e(0,(0,t.head)(n))),i=1;i<n.length;i++)r.push.apply(r,e(i,n[i]));return r}};t.chainWithIndex=B;var K=function(e){return function(n){for(var r=e(n),i=r[0],o=r[1],u=[i],a=o;(0,t.isNonEmpty)(a);){var c=e(a),f=c[0],l=c[1];u.push(f),a=l}return u}};t.chop=K;var V=function(e){return function(n){var r=Math.max(1,e);return r>=n.length?[(0,t.copy)(n),[]]:[(0,f.pipe)(n.slice(1,r),(0,t.prepend)((0,t.head)(n))),n.slice(r)]}};t.splitAt=V;var z=function(e){return(0,t.chop)((0,t.splitAt)(e))};t.chunksOf=z;var H=function(e,n){return(0,f.pipe)(e,(0,t.map)(n))},$=function(e,n){return(0,f.pipe)(e,(0,t.mapWithIndex)(n))},X=function(e,n){return(0,f.pipe)(e,(0,t.ap)(n))},J=function(e,n){return(0,f.pipe)(e,(0,t.extend)(n))},Z=function(e,n,r){return(0,f.pipe)(e,(0,t.reduce)(n,r))},Q=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},ee=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceRight)(n,r))},et=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},en=function(e,n){return(0,f.pipe)(e,(0,t.alt)(n))},er=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceWithIndex)(n,r))},ei=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},eo=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceRightWithIndex)(n,r))},eu=function(e){var n=(0,t.traverseWithIndex)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},ea=function(e){return function(t){return(0,f.pipe)(t,E(e()))}};t.altW=ea,t.alt=t.altW;var ec=function(e){return(0,t.flatMap)(function(n){return(0,f.pipe)(e,(0,t.map)(n))})};t.ap=ec,t.flatMap=(0,f.dual)(2,function(e,n){return(0,f.pipe)(e,(0,t.chainWithIndex)(function(e,t){return n(t,e)}))});var ef=function(e){return function(n){for(var r=(0,t.tail)(n),i=[e(n)];(0,t.isNonEmpty)(r);)i.push(e(r)),r=(0,t.tail)(r);return i}};t.extend=ef,t.duplicate=(0,t.extend)(f.identity),t.flatten=(0,t.flatMap)(f.identity);var el=function(e){return(0,t.mapWithIndex)(function(t,n){return e(n)})};t.map=el;var ep=function(e){return function(n){for(var r=[e(0,(0,t.head)(n))],i=1;i<n.length;i++)r.push(e(i,n[i]));return r}};t.mapWithIndex=ep,t.reduce=s.reduce,t.reduceWithIndex=s.reduceWithIndex,t.reduceRight=s.reduceRight,t.reduceRightWithIndex=s.reduceRightWithIndex;var ed=function(e){var n=(0,t.traverseWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}};t.traverse=ed;var es=function(e){return(0,t.traverseWithIndex)(e)(function(e,t){return t})};t.sequence=es;var em=function(e){return function(n){return function(r){for(var i=e.map(n(0,(0,t.head)(r)),t.of),o=1;o<r.length;o++)i=e.ap(e.map(i,function(e){return function(n){return(0,f.pipe)(e,(0,t.append)(n))}}),n(o,r[o]));return i}}};t.traverseWithIndex=em,t.extract=s.head,t.URI="NonEmptyArray",t.getShow=s.getShow;var eh=function(){return{concat:P}};t.getSemigroup=eh,t.getEq=s.getEq;var ev=function(e){var n=(0,t.union)(e);return{concat:function(e,t){return n(t)(e)}}};t.getUnionSemigroup=ev,t.Functor={URI:t.URI,map:H},t.flap=(0,l.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:H,mapWithIndex:$},t.Apply={URI:t.URI,map:H,ap:X},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:H,ap:X,of:t.of},t.Chain={URI:t.URI,map:H,ap:X,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:H,ap:X,of:t.of,chain:t.flatMap},t.Foldable={URI:t.URI,reduce:Z,foldMap:Q,reduceRight:ee},t.FoldableWithIndex={URI:t.URI,reduce:Z,foldMap:Q,reduceRight:ee,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo},t.Traversable={URI:t.URI,map:H,reduce:Z,foldMap:Q,reduceRight:ee,traverse:et,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:H,mapWithIndex:$,reduce:Z,foldMap:Q,reduceRight:ee,traverse:et,sequence:t.sequence,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo,traverseWithIndex:eu},t.Alt={URI:t.URI,map:H,alt:en},t.Comonad={URI:t.URI,map:H,extend:J,extract:t.extract},t.Do=(0,t.of)(p.emptyRecord),t.bindTo=(0,l.bindTo)(t.Functor);var ey=(0,l.let)(t.Functor);t.let=ey,t.bind=(0,c.bind)(t.Chain),t.apS=(0,a.apS)(t.Apply),t.head=s.head;var eg=function(e){return e.slice(1)};t.tail=eg,t.last=s.last;var e_=function(e){return e.slice(0,-1)};t.init=e_,t.min=s.min,t.max=s.max;var eb=function(e){return function(t){return t.reduce(e.concat)}};t.concatAll=eb;var eS=function(e){return function(n){return e((0,t.head)(n),(0,t.tail)(n))}};t.matchLeft=eS;var eT=function(e){return function(n){return e((0,t.init)(n),(0,t.last)(n))}};t.matchRight=eT;var eI=function(e){return function(n){return u([e((0,t.head)(n))],(0,t.tail)(n),!0)}};t.modifyHead=eI;var eR=function(e){return(0,t.modifyHead)(function(){return e})};t.updateHead=eR;var ew=function(e){return function(n){return(0,f.pipe)((0,t.init)(n),(0,t.append)(e((0,t.last)(n))))}};t.modifyLast=ew;var eO=function(e){return(0,t.modifyLast)(function(){return e})};t.updateLast=eO,t.intercalate=s.intercalate,t.chain=t.flatMap,t.groupSort=function(e){var n=(0,t.sort)(e),r=W(e);return function(e){return(0,t.isNonEmpty)(e)?r(n(e)):[]}},t.filter=function(e){return(0,t.filterWithIndex)(function(t,n){return e(n)})};var ex=function(e){return function(n){return(0,t.fromArray)(n.filter(function(t,n){return e(n,t)}))}};t.filterWithIndex=ex,t.uncons=t.unprepend,t.unsnoc=t.unappend,t.cons=function(e,n){return void 0===n?(0,t.prepend)(e):(0,f.pipe)(n,(0,t.prepend)(e))};var eC=function(e,n){return(0,f.pipe)(e,(0,t.append)(n))};t.snoc=eC,t.prependToAll=t.prependAll,t.fold=s.concatAll,t.nonEmptyArray={URI:t.URI,of:t.of,map:H,mapWithIndex:$,ap:X,chain:t.flatMap,extend:J,extract:t.extract,reduce:Z,foldMap:Q,reduceRight:ee,traverse:et,sequence:t.sequence,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo,traverseWithIndex:eu,alt:en}},72720:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),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 u=n(91756),a=n(93145),c=o(n(18222)),f=n(57756),l=n(14632),p=n(8762),d=o(n(5309)),s=n(87612),m=n(98744),h=n(4773),v=n(69706),y=n(3899);t.none=d.none,t.some=d.some,t.fromPredicate=function(e){return function(n){return e(n)?(0,t.some)(n):t.none}};var g=function(e){return"Right"===e._tag?t.none:(0,t.some)(e.left)};t.getLeft=g;var _=function(e){return"Left"===e._tag?t.none:(0,t.some)(e.right)};t.getRight=_;var b=function(e,n){return(0,l.pipe)(e,(0,t.map)(n))},S=function(e,n){return(0,l.pipe)(e,(0,t.ap)(n))},T=function(e,n,r){return(0,l.pipe)(e,(0,t.reduce)(n,r))},I=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},R=function(e,n,r){return(0,l.pipe)(e,(0,t.reduceRight)(n,r))},w=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},O=function(e,n){return(0,l.pipe)(e,(0,t.alt)(n))},x=function(e,n){return(0,l.pipe)(e,(0,t.filter)(n))},C=function(e,n){return(0,l.pipe)(e,(0,t.filterMap)(n))},M=function(e,n){return(0,l.pipe)(e,(0,t.extend)(n))},E=function(e,n){return(0,l.pipe)(e,(0,t.partition)(n))},P=function(e,n){return(0,l.pipe)(e,(0,t.partitionMap)(n))};t.URI="Option";var k=function(e){return{show:function(n){return(0,t.isNone)(n)?"none":"some(".concat(e.show(n.value),")")}}};t.getShow=k;var W=function(e){return{equals:function(n,r){return n===r||((0,t.isNone)(n)?(0,t.isNone)(r):!(0,t.isNone)(r)&&e.equals(n.value,r.value))}}};t.getEq=W;var F=function(e){return{equals:(0,t.getEq)(e).equals,compare:function(n,r){return n===r?0:(0,t.isSome)(n)?(0,t.isSome)(r)?e.compare(n.value,r.value):1:-1}}};t.getOrd=F;var D=function(e){return{concat:function(n,r){return(0,t.isNone)(n)?r:(0,t.isNone)(r)?n:(0,t.some)(e.concat(n.value,r.value))},empty:t.none}};t.getMonoid=D;var N=function(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.some)(e(n.value))}};t.map=N,t.Functor={URI:t.URI,map:b},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};var L=function(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.isNone)(e)?t.none:(0,t.some)(n.value(e.value))}};t.ap=L,t.Apply={URI:t.URI,map:b,ap:S},t.Applicative={URI:t.URI,map:b,ap:S,of:t.of},t.flatMap=(0,l.dual)(2,function(e,n){return(0,t.isNone)(e)?t.none:n(e.value)}),t.Chain={URI:t.URI,map:b,ap:S,chain:t.flatMap},t.Monad={URI:t.URI,map:b,ap:S,of:t.of,chain:t.flatMap};var U=function(e,n){return function(r){return(0,t.isNone)(r)?e:n(e,r.value)}};t.reduce=U;var A=function(e){return function(n){return function(r){return(0,t.isNone)(r)?e.empty:n(r.value)}}};t.foldMap=A;var j=function(e,n){return function(r){return(0,t.isNone)(r)?e:n(r.value,e)}};t.reduceRight=j,t.Foldable={URI:t.URI,reduce:T,foldMap:I,reduceRight:R},t.orElse=(0,l.dual)(2,function(e,n){return(0,t.isNone)(e)?n():e}),t.altW=t.orElse,t.alt=t.orElse,t.Alt={URI:t.URI,map:b,alt:O};var q=function(){return t.none};t.zero=q,t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,y.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:b,ap:S,of:t.of,alt:O,zero:t.zero};var G=function(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.some)(e(n))}};t.extend=G,t.Extend={URI:t.URI,map:b,extend:M},t.compact=(0,t.flatMap)(l.identity);var Y=(0,h.separated)(t.none,t.none),B=function(e){return(0,t.isNone)(e)?Y:(0,h.separated)((0,t.getLeft)(e.value),(0,t.getRight)(e.value))};t.separate=B,t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};var K=function(e){return function(n){return(0,t.isNone)(n)?t.none:e(n.value)?n:t.none}};t.filter=K;var V=function(e){return function(n){return(0,t.isNone)(n)?t.none:e(n.value)}};t.filterMap=V;var z=function(e){return function(t){return(0,h.separated)(x(t,(0,s.not)(e)),x(t,e))}};t.partition=z;var H=function(e){return(0,l.flow)((0,t.map)(e),t.separate)};t.partitionMap=H,t.Filterable={URI:t.URI,map:b,compact:t.compact,separate:t.separate,filter:x,filterMap:C,partition:E,partitionMap:P};var $=function(e){return function(n){return function(r){return(0,t.isNone)(r)?e.of(t.none):e.map(n(r.value),t.some)}}};t.traverse=$;var X=function(e){return function(n){return(0,t.isNone)(n)?e.of(t.none):e.map(n.value,t.some)}};t.sequence=X,t.Traversable={URI:t.URI,map:b,reduce:T,foldMap:I,reduceRight:R,traverse:w,sequence:t.sequence};var J=(0,v.witherDefault)(t.Traversable,t.Compactable),Z=(0,v.wiltDefault)(t.Traversable,t.Compactable),Q=function(e){var t=J(e);return function(e){return function(n){return t(n,e)}}};t.wither=Q;var ee=function(e){var t=Z(e);return function(e){return function(n){return t(n,e)}}};t.wilt=ee,t.Witherable={URI:t.URI,map:b,reduce:T,foldMap:I,reduceRight:R,traverse:w,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:x,filterMap:C,partition:E,partitionMap:P,wither:J,wilt:Z};var et=function(){return t.none};t.throwError=et,t.MonadThrow={URI:t.URI,map:b,ap:S,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;var en=function(e){return"None"===e._tag};t.isNone=en;var er=function(e,n){return function(r){return(0,t.isNone)(r)?e():n(r.value)}};t.matchW=er,t.foldW=t.matchW,t.match=t.matchW,t.fold=t.match;var ei=function(e){return function(n){return(0,t.isNone)(n)?e():n.value}};t.getOrElseW=ei,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;var eo=function(e){return null==e?t.none:(0,t.some)(e)};t.fromNullable=eo;var eu=function(e){try{return(0,t.some)(e())}catch(n){return t.none}};t.tryCatch=eu;var ea=function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(0,t.tryCatch)(function(){return e.apply(void 0,n)})}};t.tryCatchK=ea;var ec=function(e){return(0,l.flow)(e,t.fromNullable)};t.fromNullableK=ec;var ef=function(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.fromNullable)(e(n.value))}};t.chainNullableK=ef,t.toNullable=(0,t.match)(l.constNull,l.identity),t.toUndefined=(0,t.match)(l.constUndefined,l.identity),t.elem=function e(n){return function(r,i){if(void 0===i){var o=e(n);return function(e){return o(r,e)}}return!(0,t.isNone)(i)&&n.equals(r,i.value)}};var el=function(e){return function(n){return!(0,t.isNone)(n)&&e(n.value)}};t.exists=el,t.Do=(0,t.of)(d.emptyRecord),t.bindTo=(0,p.bindTo)(t.Functor);var ep=(0,p.let)(t.Functor);t.let=ep,t.bind=c.bind(t.Chain),t.apS=(0,a.apS)(t.Apply),t.ApT=(0,t.of)(d.emptyReadonlyArray);var ed=function(e){return function(n){var r=e(0,d.head(n));if((0,t.isNone)(r))return t.none;for(var i=[r.value],o=1;o<n.length;o++){var u=e(o,n[o]);if((0,t.isNone)(u))return t.none;i.push(u.value)}return(0,t.some)(i)}};t.traverseReadonlyNonEmptyArrayWithIndex=ed;var es=function(e){var n=(0,t.traverseReadonlyNonEmptyArrayWithIndex)(e);return function(e){return d.isNonEmpty(e)?n(e):t.ApT}};t.traverseReadonlyArrayWithIndex=es,t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex;var em=function(e){return(0,t.traverseReadonlyArrayWithIndex)(function(t,n){return e(n)})};t.traverseArray=em,t.sequenceArray=(0,t.traverseArray)(l.identity),t.chain=t.flatMap,t.chainFirst=t.tap,t.getRefinement=function(e){return function(n){return(0,t.isSome)(e(n))}},t.mapNullable=t.chainNullableK,t.option={URI:t.URI,map:b,of:t.of,ap:S,chain:t.flatMap,reduce:T,foldMap:I,reduceRight:R,traverse:w,sequence:t.sequence,zero:t.zero,alt:O,extend:M,compact:t.compact,separate:t.separate,filter:x,filterMap:C,partition:E,partitionMap:P,wither:J,wilt:Z,throwError:t.throwError},t.getApplySemigroup=(0,a.getApplySemigroup)(t.Apply),t.getApplyMonoid=(0,u.getApplicativeMonoid)(t.Applicative);var eh=function(){return(0,t.getMonoid)((0,m.first)())};t.getFirstMonoid=eh;var ev=function(){return(0,t.getMonoid)((0,m.last)())};t.getLastMonoid=ev},83235:function(e,t,n){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=n(8190),i=n(14632),o=function(e){return function(t,n){return t===n||0===e(t,n)}};t.equalsDefault=o;var u=function(e){return{equals:(0,t.equalsDefault)(e),compare:function(t,n){return t===n?0:e(t,n)}}};t.fromCompare=u;var a=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,t.fromCompare)(function(t,n){for(var r=0;r<e.length-1;r++){var i=e[r].compare(t[r],n[r]);if(0!==i)return i}return e[r].compare(t[r],n[r])})};t.tuple=a;var c=function(e){return(0,t.fromCompare)(function(t,n){return e.compare(n,t)})};t.reverse=c;var f=function(e,n){return(0,i.pipe)(e,(0,t.contramap)(n))},l=function(e){return function(n){return(0,t.fromCompare)(function(t,r){return n.compare(e(t),e(r))})}};t.contramap=l,t.URI="Ord";var p=function(){return{concat:function(e,n){return(0,t.fromCompare)(function(t,r){var i=e.compare(t,r);return 0!==i?i:n.compare(t,r)})}}};t.getSemigroup=p;var d=function(){return{concat:(0,t.getSemigroup)().concat,empty:(0,t.fromCompare)(function(){return 0})}};t.getMonoid=d,t.Contravariant={URI:t.URI,contramap:f},t.trivial={equals:i.constTrue,compare:(0,i.constant)(0)};var s=function(e){return function(t){return function(n){return n===t||0===e.compare(n,t)}}};t.equals=s;var m=function(e){return function(t,n){return -1===e.compare(t,n)}};t.lt=m;var h=function(e){return function(t,n){return 1===e.compare(t,n)}};t.gt=h;var v=function(e){return function(t,n){return 1!==e.compare(t,n)}};t.leq=v;var y=function(e){return function(t,n){return -1!==e.compare(t,n)}};t.geq=y;var g=function(e){return function(t,n){return t===n||1>e.compare(t,n)?t:n}};t.min=g;var _=function(e){return function(t,n){return t===n||e.compare(t,n)>-1?t:n}};t.max=_;var b=function(e){var n=(0,t.min)(e),r=(0,t.max)(e);return function(e,t){return function(i){return r(n(i,t),e)}}};t.clamp=b;var S=function(e){var n=(0,t.lt)(e),r=(0,t.gt)(e);return function(e,t){return function(i){return!(n(i,e)||r(i,t))}}};t.between=S,t.getTupleOrd=t.tuple,t.getDualOrd=t.reverse,t.ord=t.Contravariant;var T={equals:r.eqStrict.equals,compare:function(e,t){return e<t?-1:e>t?1:0}};t.ordBoolean=T,t.ordString=T,t.ordNumber=T,t.ordDate=(0,i.pipe)(t.ordNumber,(0,t.contramap)(function(e){return e.valueOf()}))},87612:function(e,t,n){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=n(14632),i=function(e,n){return(0,r.pipe)(e,(0,t.contramap)(n))},o=function(e){return function(t){return(0,r.flow)(e,t)}};t.contramap=o,t.URI="Predicate";var u=function(){return{concat:function(e,n){return(0,r.pipe)(e,(0,t.or)(n))}}};t.getSemigroupAny=u;var a=function(){return{concat:(0,t.getSemigroupAny)().concat,empty:r.constFalse}};t.getMonoidAny=a;var c=function(){return{concat:function(e,n){return(0,r.pipe)(e,(0,t.and)(n))}}};t.getSemigroupAll=c;var f=function(){return{concat:(0,t.getSemigroupAll)().concat,empty:r.constTrue}};t.getMonoidAll=f,t.Contravariant={URI:t.URI,contramap:i};var l=function(e){return function(t){return!e(t)}};t.not=l;var p=function(e){return function(t){return function(n){return t(n)||e(n)}}};t.or=p;var d=function(e){return function(t){return function(n){return t(n)&&e(n)}}};t.and=d},78703:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},u=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.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=n(93145),c=n(18222),f=n(8190),l=n(57756),p=n(14632),d=n(8762),s=o(n(5309)),m=o(n(40457)),h=n(83235),v=o(n(84612)),y=n(4773),g=n(69706),_=n(3899),b=function(e){return 0===e.length};t.isEmpty=b,t.isNonEmpty=v.isNonEmpty,t.prepend=v.prepend,t.prependW=v.prependW,t.append=v.append,t.appendW=v.appendW;var S=function(e,n){return e<=0?t.empty:v.makeBy(n)(e)};t.makeBy=S;var T=function(e,n){return(0,t.makeBy)(e,function(){return n})};t.replicate=T,t.fromPredicate=function(e){return function(n){return e(n)?[n]:t.empty}};var I=function(e){return s.isNone(e)?t.empty:[e.value]};t.fromOption=I;var R=function(e){return s.isLeft(e)?t.empty:[e.right]};t.fromEither=R;var w=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(r):e()}};t.matchW=w,t.match=t.matchW;var O=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(v.head(r),v.tail(r)):e()}};t.matchLeftW=O,t.matchLeft=t.matchLeftW,t.foldLeft=t.matchLeft;var x=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(v.init(r),v.last(r)):e()}};t.matchRightW=x,t.matchRight=t.matchRightW,t.foldRight=t.matchRight;var C=function(e){return function(n){if((0,t.isEmpty)(n))return t.empty;for(var r=[],i=0;i<n.length;i++)r.push.apply(r,e(i,n[i]));return r}};t.chainWithIndex=C;var M=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}};t.scanLeft=M;var E=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}};t.scanRight=E;var P=function(e){return e.length};t.size=P,t.isOutOfBound=v.isOutOfBound,t.lookup=function e(n,r){return void 0===r?function(t){return e(n,t)}:(0,t.isOutOfBound)(n,r)?s.none:s.some(r[n])};var k=function(e){return(0,t.isNonEmpty)(e)?s.some(v.head(e)):s.none};t.head=k;var W=function(e){return(0,t.isNonEmpty)(e)?s.some(v.last(e)):s.none};t.last=W;var F=function(e){return(0,t.isNonEmpty)(e)?s.some(v.tail(e)):s.none};t.tail=F;var D=function(e){return(0,t.isNonEmpty)(e)?s.some(v.init(e)):s.none};t.init=D;var N=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?n:0===e?t.empty:n.slice(0,e)}};t.takeLeft=N;var L=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?n:0===e?t.empty:n.slice(-e)}};t.takeRight=L,t.takeLeftWhile=function(e){return function(n){for(var r=[],i=0;i<n.length;i++){var o=n[i];if(!e(o))break;r.push(o)}var u=r.length;return u===n.length?n:0===u?t.empty:r}};var U=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r};t.spanLeft=function(e){return function(n){var r,i=(0,t.splitAt)(U(n,e))(n);return{init:i[0],rest:i[1]}}};var A=function(e){return function(n){return e<=0||(0,t.isEmpty)(n)?n:e>=n.length?t.empty:n.slice(e,n.length)}};t.dropLeft=A;var j=function(e){return function(n){return e<=0||(0,t.isEmpty)(n)?n:e>=n.length?t.empty:n.slice(0,n.length-e)}};t.dropRight=j,t.dropLeftWhile=function(e){return function(n){var r=U(n,e);return 0===r?n:r===n.length?t.empty:n.slice(r)}};var q=function(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return s.some(n);return s.none}};t.findIndex=q,t.findFirst=function(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return s.some(t[n]);return s.none}};var G=function(e){return function(t){for(var n=0;n<t.length;n++){var r=e(t[n]);if(s.isSome(r))return r}return s.none}};t.findFirstMap=G,t.findLast=function(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return s.some(t[n]);return s.none}};var Y=function(e){return function(t){for(var n=t.length-1;n>=0;n--){var r=e(t[n]);if(s.isSome(r))return r}return s.none}};t.findLastMap=Y;var B=function(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return s.some(n);return s.none}};t.findLastIndex=B;var K=function(e,t){return function(n){return e<0||e>n.length?s.none:s.some(v.unsafeInsertAt(e,t,n))}};t.insertAt=K;var V=function(e,n){return(0,t.modifyAt)(e,function(){return n})};t.updateAt=V;var z=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?s.none:s.some((0,t.unsafeDeleteAt)(e,n))}};t.deleteAt=z;var H=function(e,n){return function(r){return(0,t.isOutOfBound)(e,r)?s.none:s.some((0,t.unsafeUpdateAt)(e,n(r[e]),r))}};t.modifyAt=H;var $=function(e){return e.length<=1?e:e.slice().reverse()};t.reverse=$;var X=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t};t.rights=X;var J=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t};t.lefts=J;var Z=function(e){return function(t){return t.length<=1?t:t.slice().sort(e.compare)}};t.sort=Z;var Q=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r};t.zipWith=Q,t.zip=function e(n,r){return void 0===r?function(t){return e(t,n)}:(0,t.zipWith)(n,r,function(e,t){return[e,t]})};var ee=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]};t.unzip=ee;var et=function(e){var n=v.prependAll(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}};t.prependAll=et;var en=function(e){var n=v.intersperse(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}};t.intersperse=en;var er=function(e){var n=v.rotate(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}};function ei(e){return function(t,n){if(void 0===n){var r,i=ei(e);return function(e){return i(t,e)}}for(var o=0;o<n.length;o++)if(r=n[o],e.equals(r,t))return!0;return!1}}t.rotate=er,t.elem=ei;var eo=function(e){var n=v.uniq(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}};t.uniq=eo;var eu=function(e){var n=v.sortBy(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}};t.sortBy=eu;var ea=function(e){var n=v.chop(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):t.empty}};t.chop=ea;var ec=function(e){return function(n){return e>=1&&(0,t.isNonEmpty)(n)?v.splitAt(e)(n):(0,t.isEmpty)(n)?[n,t.empty]:[t.empty,n]}};t.splitAt=ec;var ef=function(e){var n=v.chunksOf(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):t.empty}};t.chunksOf=ef;var el=function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(0,t.fromOption)(e.apply(void 0,n))}};t.fromOptionK=el,t.comprehension=function(e,n,r){void 0===r&&(r=function(){return!0});var i=function(e,o){return(0,t.isNonEmpty)(o)?(0,t.flatMap)(v.head(o),function(n){return i((0,p.pipe)(e,(0,t.append)(n)),v.tail(o))}):r.apply(void 0,e)?[n.apply(void 0,e)]:t.empty};return i(t.empty,e)};var ep=function(e){return function(n){return(0,t.isEmpty)(n)?e:(0,t.isEmpty)(e)?n:n.concat(e)}};function ed(e){var n=v.union(e);return function(r,i){if(void 0===i){var o=ed(e);return function(e){return o(e,r)}}return(0,t.isNonEmpty)(r)&&(0,t.isNonEmpty)(i)?n(i)(r):(0,t.isNonEmpty)(r)?r:i}}function es(e){var t=ei(e);return function(n,r){if(void 0===r){var i=es(e);return function(e){return i(e,n)}}return n.filter(function(e){return t(e,r)})}}function em(e){var t=ei(e);return function(n,r){if(void 0===r){var i=em(e);return function(e){return i(e,n)}}return n.filter(function(e){return!t(e,r)})}}t.concatW=ep,t.concat=t.concatW,t.union=ed,t.intersection=es,t.difference=em;var eh=function(e,n){return(0,p.pipe)(e,(0,t.map)(n))},ev=function(e,n){return(0,p.pipe)(e,(0,t.mapWithIndex)(n))},ey=function(e,n){return(0,p.pipe)(e,(0,t.ap)(n))},eg=function(e,n){return(0,p.pipe)(e,(0,t.filter)(n))},e_=function(e,n){return(0,p.pipe)(e,(0,t.filterMap)(n))},eb=function(e,n){return(0,p.pipe)(e,(0,t.partition)(n))},eS=function(e,n){return(0,p.pipe)(e,(0,t.partitionMap)(n))},eT=function(e,n){return(0,p.pipe)(e,(0,t.partitionWithIndex)(n))},eI=function(e,n){return(0,p.pipe)(e,(0,t.partitionMapWithIndex)(n))},eR=function(e,n){return(0,p.pipe)(e,(0,t.alt)(n))},ew=function(e,n,r){return(0,p.pipe)(e,(0,t.reduce)(n,r))},eO=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},ex=function(e,n,r){return(0,p.pipe)(e,(0,t.reduceRight)(n,r))},eC=function(e,n,r){return(0,p.pipe)(e,(0,t.reduceWithIndex)(n,r))},eM=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},eE=function(e,n,r){return(0,p.pipe)(e,(0,t.reduceRightWithIndex)(n,r))},eP=function(e,n){return(0,p.pipe)(e,(0,t.filterMapWithIndex)(n))},ek=function(e,n){return(0,p.pipe)(e,(0,t.filterWithIndex)(n))},eW=function(e,n){return(0,p.pipe)(e,(0,t.extend)(n))},eF=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},eD=function(e){var n=(0,t.traverseWithIndex)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},eN=function(e,n){return(0,p.pipe)(e,(0,t.chainRecDepthFirst)(n))};t._chainRecDepthFirst=eN;var eL=function(e,n){return(0,p.pipe)(e,(0,t.chainRecBreadthFirst)(n))};t._chainRecBreadthFirst=eL,t.of=v.of;var eU=function(){return t.empty};t.zero=eU;var eA=function(e){return function(t){return t.concat(e())}};t.altW=eA,t.alt=t.altW;var ej=function(e){return(0,t.flatMap)(function(n){return(0,p.pipe)(e,(0,t.map)(n))})};t.ap=ej,t.flatMap=(0,p.dual)(2,function(e,n){return(0,p.pipe)(e,(0,t.chainWithIndex)(function(e,t){return n(t,e)}))}),t.flatten=(0,t.flatMap)(p.identity);var eq=function(e){return function(t){return t.map(function(t){return e(t)})}};t.map=eq;var eG=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}};t.mapWithIndex=eG;var eY=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return(0,y.separated)(t,n)};t.separate=eY;var eB=function(e){return function(t){return t.filter(e)}};t.filter=eB;var eK=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);s.isSome(i)&&n.push(i.value)}return n}};t.filterMapWithIndex=eK;var eV=function(e){return(0,t.filterMapWithIndex)(function(t,n){return e(n)})};t.filterMap=eV,t.compact=(0,t.filterMap)(p.identity);var ez=function(e){return(0,t.partitionWithIndex)(function(t,n){return e(n)})};t.partition=ez;var eH=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return(0,y.separated)(n,r)}};t.partitionWithIndex=eH;var e$=function(e){return(0,t.partitionMapWithIndex)(function(t,n){return e(n)})};t.partitionMap=e$;var eX=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return(0,y.separated)(n,r)}};t.partitionMapWithIndex=eX;var eJ=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}};t.filterWithIndex=eJ;var eZ=function(e){return function(t){return t.map(function(n,r){return e(t.slice(r))})}};t.extend=eZ,t.duplicate=(0,t.extend)(p.identity);var eQ=function(e){return function(t){return function(n){return n.reduce(function(n,r,i){return e.concat(n,t(i,r))},e.empty)}}};t.foldMapWithIndex=eQ;var e0=function(e,n){return(0,t.reduceWithIndex)(e,function(e,t,r){return n(t,r)})};t.reduce=e0;var e1=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}};t.foldMap=e1;var e2=function(e,t){return function(n){for(var r=n.length,i=e,o=0;o<r;o++)i=t(o,i,n[o]);return i}};t.reduceWithIndex=e2;var e8=function(e,n){return(0,t.reduceRightWithIndex)(e,function(e,t,r){return n(t,r)})};t.reduceRight=e8;var e7=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}};t.reduceRightWithIndex=e7;var e3=function(e){var n=(0,t.traverseWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}};t.traverse=e3;var e5=function(e){return function(n){return ew(n,e.of((0,t.zero)()),function(n,r){return e.ap(e.map(n,function(e){return function(n){return(0,p.pipe)(e,(0,t.append)(n))}}),r)})}};t.sequence=e5;var e4=function(e){return function(n){return(0,t.reduceWithIndex)(e.of((0,t.zero)()),function(r,i,o){return e.ap(e.map(i,function(e){return function(n){return(0,p.pipe)(e,(0,t.append)(n))}}),n(r,o))})}};t.traverseWithIndex=e4;var e9=function(e){var t=td(e);return function(e){return function(n){return t(n,e)}}};t.wither=e9;var e6=function(e){var t=ts(e);return function(e){return function(n){return t(n,e)}}};t.wilt=e6;var te=function(e,t){for(var n=[],r=e;;){var i=t(r);if(s.isSome(i)){var o=i.value,u=o[0],a=o[1];n.push(u),r=a}else break}return n};t.unfold=te,t.URI="ReadonlyArray";var tt=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}};t.getShow=tt;var tn=function(){return{concat:function(e,n){return(0,t.isEmpty)(e)?n:(0,t.isEmpty)(n)?e:e.concat(n)}}};t.getSemigroup=tn;var tr=function(){return{concat:(0,t.getSemigroup)().concat,empty:t.empty}};t.getMonoid=tr;var ti=function(e){return(0,f.fromEquals)(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})};t.getEq=ti;var to=function(e){return(0,h.fromCompare)(function(t,n){for(var r=t.length,i=n.length,o=Math.min(r,i),u=0;u<o;u++){var a=e.compare(t[u],n[u]);if(0!==a)return a}return m.Ord.compare(r,i)})};t.getOrd=to;var tu=function(e){var t=ed(e);return{concat:function(e,n){return t(n)(e)}}};t.getUnionSemigroup=tu;var ta=function(e){return{concat:(0,t.getUnionSemigroup)(e).concat,empty:t.empty}};t.getUnionMonoid=ta;var tc=function(e){var t=es(e);return{concat:function(e,n){return t(n)(e)}}};t.getIntersectionSemigroup=tc;var tf=function(e){var t=em(e);return{concat:function(e,n){return t(n)(e)}}};t.getDifferenceMagma=tf,t.Functor={URI:t.URI,map:eh},t.flap=(0,d.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:eh,mapWithIndex:ev},t.Apply={URI:t.URI,map:eh,ap:ey},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:eh,ap:ey,of:t.of},t.Chain={URI:t.URI,map:eh,ap:ey,chain:t.flatMap},t.Monad={URI:t.URI,map:eh,ap:ey,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:eh,alt:eR},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,_.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:eh,ap:ey,of:t.of,alt:eR,zero:t.zero},t.Extend={URI:t.URI,map:eh,extend:eW},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:eh,compact:t.compact,separate:t.separate,filter:eg,filterMap:e_,partition:eb,partitionMap:eS},t.FilterableWithIndex={URI:t.URI,map:eh,mapWithIndex:ev,compact:t.compact,separate:t.separate,filter:eg,filterMap:e_,partition:eb,partitionMap:eS,partitionMapWithIndex:eI,partitionWithIndex:eT,filterMapWithIndex:eP,filterWithIndex:ek},t.Foldable={URI:t.URI,reduce:ew,foldMap:eO,reduceRight:ex},t.FoldableWithIndex={URI:t.URI,reduce:ew,foldMap:eO,reduceRight:ex,reduceWithIndex:eC,foldMapWithIndex:eM,reduceRightWithIndex:eE},t.Traversable={URI:t.URI,map:eh,reduce:ew,foldMap:eO,reduceRight:ex,traverse:eF,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:eh,mapWithIndex:ev,reduce:ew,foldMap:eO,reduceRight:ex,reduceWithIndex:eC,foldMapWithIndex:eM,reduceRightWithIndex:eE,traverse:eF,sequence:t.sequence,traverseWithIndex:eD};var tl=function(e){return function(t){for(var n=u([],e(t),!0),r=[];n.length>0;){var i=n.shift();s.isLeft(i)?n.unshift.apply(n,e(i.left)):r.push(i.right)}return r}};t.chainRecDepthFirst=tl,t.ChainRecDepthFirst={URI:t.URI,map:eh,ap:ey,chain:t.flatMap,chainRec:t._chainRecDepthFirst};var tp=function(e){return function(t){var n=e(t),r=[],i=[];function o(t){s.isLeft(t)?e(t.left).forEach(function(e){return r.push(e)}):i.push(t.right)}for(var u=0;u<n.length;u++)o(n[u]);for(;r.length>0;)o(r.shift());return i}};t.chainRecBreadthFirst=tp,t.ChainRecBreadthFirst={URI:t.URI,map:eh,ap:ey,chain:t.flatMap,chainRec:t._chainRecBreadthFirst};var td=(0,g.witherDefault)(t.Traversable,t.Compactable),ts=(0,g.wiltDefault)(t.Traversable,t.Compactable);t.Witherable={URI:t.URI,map:eh,compact:t.compact,separate:t.separate,filter:eg,filterMap:e_,partition:eb,partitionMap:eS,reduce:ew,foldMap:eO,reduceRight:ex,traverse:eF,sequence:t.sequence,wither:td,wilt:ts},t.filterE=(0,g.filterE)(t.Witherable),t.FromEither={URI:t.URI,fromEither:t.fromEither},t.fromEitherK=(0,l.fromEitherK)(t.FromEither),t.unsafeInsertAt=v.unsafeInsertAt;var tm=function(e,n,r){return(0,t.isNonEmpty)(r)?v.unsafeUpdateAt(e,n,r):r};t.unsafeUpdateAt=tm;var th=function(e,t){var n=t.slice();return n.splice(e,1),n};t.unsafeDeleteAt=th;var tv=function(e){return e.slice()};t.toArray=tv;var ty=function(e){return(0,t.isEmpty)(e)?t.empty:e.slice()};t.fromArray=ty,t.empty=v.empty,t.every=function(e){return function(t){return t.every(e)}};var tg=function(e){return function(t){return t.some(e)}};t.some=tg,t.exists=t.some;var t_=function(e){var n=v.intercalate(e);return function(r){return(0,t.match)(function(){return e.empty},n(r))}};t.intercalate=t_,t.Do=(0,t.of)(s.emptyRecord),t.bindTo=(0,d.bindTo)(t.Functor);var tb=(0,d.let)(t.Functor);t.let=tb,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:eh,ap:ey,of:t.of,chain:t.flatMap,filter:eg,filterMap:e_,partition:eb,partitionMap:eS,mapWithIndex:ev,partitionMapWithIndex:eI,partitionWithIndex:eT,filterMapWithIndex:eP,filterWithIndex:ek,alt:eR,zero:t.zero,unfold:t.unfold,reduce:ew,foldMap:eO,reduceRight:ex,traverse:eF,sequence:t.sequence,reduceWithIndex:eC,foldMapWithIndex:eM,reduceRightWithIndex:eE,traverseWithIndex:eD,extend:eW,wither:td,wilt:ts}},84612:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},u=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.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=n(93145),c=n(18222),f=n(8190),l=n(14632),p=n(8762),d=o(n(5309)),s=n(83235),m=o(n(98744));t.empty=d.emptyReadonlyArray,t.isNonEmpty=d.isNonEmpty;var h=function(e,t){return e<0||e>=t.length};t.isOutOfBound=h;var v=function(e){return function(t){return u([e],t,!0)}};t.prependW=v,t.prepend=t.prependW;var y=function(e){return function(t){return u(u([],t,!0),[e],!1)}};t.appendW=y,t.append=t.appendW;var g=function(e,n,r){if((0,t.isNonEmpty)(r)){var i=d.fromReadonlyNonEmptyArray(r);return i.splice(e,0,n),i}return[n]};t.unsafeInsertAt=g;var _=function(e,t,n){if(n[e]===t)return n;var r=d.fromReadonlyNonEmptyArray(n);return r[e]=t,r};t.unsafeUpdateAt=_;var b=function(e){return function(n){if(1===n.length)return n;for(var r=[(0,t.head)(n)],i=(0,t.tail)(n),o=function(t){r.every(function(n){return!e.equals(n,t)})&&r.push(t)},u=0;u<i.length;u++)o(i[u]);return r}};t.uniq=b;var S=function(e){if((0,t.isNonEmpty)(e)){var n=(0,s.getMonoid)();return(0,t.sort)(e.reduce(n.concat,n.empty))}return l.identity};t.sortBy=S;var T=function(e){var n=(0,t.uniq)(e);return function(e){return function(t){return n((0,l.pipe)(t,k(e)))}}};t.union=T;var I=function(e){return function(n){var r=n.length,i=Math.round(e)%r;if((0,t.isOutOfBound)(Math.abs(i),n)||0===i)return n;if(!(i<0))return(0,t.rotate)(i-r)(n);var o=(0,t.splitAt)(-i)(n),u=o[0],a=o[1];return(0,l.pipe)(a,k(u))}};t.rotate=I;var R=function(e){return(0,t.isNonEmpty)(e)?d.some(e):d.none};t.fromReadonlyArray=R;var w=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}};t.makeBy=w;var O=function(e){return(0,t.makeBy)(function(){return e})};t.replicate=O;var x=function(e,n){return e<=n?(0,t.makeBy)(function(t){return e+t})(n-e+1):[e]};t.range=x;var C=function(e){return[(0,t.head)(e),(0,t.tail)(e)]};t.unprepend=C;var M=function(e){return[(0,t.init)(e),(0,t.last)(e)]};t.unappend=M;var E=function(e){return(0,t.fromReadonlyArray)(e.slice())};function P(e){return function(t){return t.concat(e)}}function k(e,t){return t?e.concat(t):function(t){return t.concat(e)}}t.fromArray=E,t.concatW=P,t.concat=k;var W=function(e){return 1===e.length?e:u([(0,t.last)(e)],e.slice(0,-1).reverse(),!0)};function F(e){return function(n){var r=n.length;if(0===r)return t.empty;for(var i=[],o=n[0],u=[o],a=1;a<r;a++){var c=n[a];e.equals(c,o)?u.push(c):(i.push(u),u=[o=c])}return i.push(u),i}}t.reverse=W,t.group=F;var D=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);d.has.call(n,o)?n[o].push(i):n[o]=[i]}return n}};t.groupBy=D;var N=function(e){return function(t){return 1===t.length?t:t.slice().sort(e.compare)}};t.sort=N;var L=function(e,n){return(0,t.modifyAt)(e,function(){return n})};t.updateAt=L;var U=function(e,n){return function(r){return(0,t.isOutOfBound)(e,r)?d.none:d.some((0,t.unsafeUpdateAt)(e,n(r[e]),r))}};t.modifyAt=U;var A=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r};t.zipWith=A,t.zip=function e(n,r){return void 0===r?function(t){return e(t,n)}:(0,t.zipWith)(n,r,function(e,t){return[e,t]})};var j=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]};t.unzip=j;var q=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}};t.prependAll=q;var G=function(e){return function(n){var r=(0,t.tail)(n);return(0,t.isNonEmpty)(r)?(0,l.pipe)(r,(0,t.prependAll)(e),(0,t.prepend)((0,t.head)(n))):n}};t.intersperse=G;var Y=function(e){return function(n){for(var r=d.fromReadonlyNonEmptyArray(e(0,(0,t.head)(n))),i=1;i<n.length;i++)r.push.apply(r,e(i,n[i]));return r}};t.chainWithIndex=Y;var B=function(e){return function(n){for(var r=e(n),i=r[0],o=r[1],u=[i],a=o;(0,t.isNonEmpty)(a);){var c=e(a),f=c[0],l=c[1];u.push(f),a=l}return u}};t.chop=B;var K=function(e){return function(n){var r=Math.max(1,e);return r>=n.length?[n,t.empty]:[(0,l.pipe)(n.slice(1,r),(0,t.prepend)((0,t.head)(n))),n.slice(r)]}};t.splitAt=K;var V=function(e){return(0,t.chop)((0,t.splitAt)(e))};t.chunksOf=V;var z=function(e,n){return(0,l.pipe)(e,(0,t.map)(n))},H=function(e,n){return(0,l.pipe)(e,(0,t.mapWithIndex)(n))},$=function(e,n){return(0,l.pipe)(e,(0,t.ap)(n))},X=function(e,n){return(0,l.pipe)(e,(0,t.extend)(n))},J=function(e,n,r){return(0,l.pipe)(e,(0,t.reduce)(n,r))},Z=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},Q=function(e,n,r){return(0,l.pipe)(e,(0,t.reduceRight)(n,r))},ee=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},et=function(e,n){return(0,l.pipe)(e,(0,t.alt)(n))},en=function(e,n,r){return(0,l.pipe)(e,(0,t.reduceWithIndex)(n,r))},er=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},ei=function(e,n,r){return(0,l.pipe)(e,(0,t.reduceRightWithIndex)(n,r))},eo=function(e){var n=(0,t.traverseWithIndex)(e);return function(e,t){return(0,l.pipe)(e,n(t))}};t.of=d.singleton;var eu=function(e){return function(t){return(0,l.pipe)(t,P(e()))}};t.altW=eu,t.alt=t.altW;var ea=function(e){return(0,t.flatMap)(function(n){return(0,l.pipe)(e,(0,t.map)(n))})};t.ap=ea,t.flatMap=(0,l.dual)(2,function(e,n){return(0,l.pipe)(e,(0,t.chainWithIndex)(function(e,t){return n(t,e)}))});var ec=function(e){return function(n){for(var r=(0,t.tail)(n),i=[e(n)];(0,t.isNonEmpty)(r);)i.push(e(r)),r=(0,t.tail)(r);return i}};t.extend=ec,t.duplicate=(0,t.extend)(l.identity),t.flatten=(0,t.flatMap)(l.identity);var ef=function(e){return(0,t.mapWithIndex)(function(t,n){return e(n)})};t.map=ef;var el=function(e){return function(n){for(var r=[e(0,(0,t.head)(n))],i=1;i<n.length;i++)r.push(e(i,n[i]));return r}};t.mapWithIndex=el;var ep=function(e,n){return(0,t.reduceWithIndex)(e,function(e,t,r){return n(t,r)})};t.reduce=ep;var ed=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r){return e.concat(n,t(r))},t(n[0]))}}};t.foldMap=ed;var es=function(e,n){return(0,t.reduceRightWithIndex)(e,function(e,t,r){return n(t,r)})};t.reduceRight=es;var em=function(e,t){return function(n){return n.reduce(function(e,n,r){return t(r,e,n)},e)}};t.reduceWithIndex=em;var eh=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r,i){return e.concat(n,t(i+1,r))},t(0,n[0]))}}};t.foldMapWithIndex=eh;var ev=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}};t.reduceRightWithIndex=ev;var ey=function(e){var n=(0,t.traverseWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}};t.traverse=ey;var eg=function(e){return(0,t.traverseWithIndex)(e)(l.SK)};t.sequence=eg;var e_=function(e){return function(n){return function(r){for(var i=e.map(n(0,(0,t.head)(r)),t.of),o=1;o<r.length;o++)i=e.ap(e.map(i,function(e){return function(n){return(0,l.pipe)(e,(0,t.append)(n))}}),n(o,r[o]));return i}}};t.traverseWithIndex=e_,t.extract=d.head,t.URI="ReadonlyNonEmptyArray";var eb=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}};t.getShow=eb;var eS=function(){return{concat:k}};t.getSemigroup=eS;var eT=function(e){return(0,f.fromEquals)(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})};t.getEq=eT;var eI=function(e){var n=(0,t.union)(e);return{concat:function(e,t){return n(t)(e)}}};t.getUnionSemigroup=eI,t.Functor={URI:t.URI,map:z},t.flap=(0,p.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:z,mapWithIndex:H},t.Apply={URI:t.URI,map:z,ap:$},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:z,ap:$,of:t.of},t.Chain={URI:t.URI,map:z,ap:$,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:z,ap:$,of:t.of,chain:t.flatMap},t.Foldable={URI:t.URI,reduce:J,foldMap:Z,reduceRight:Q},t.FoldableWithIndex={URI:t.URI,reduce:J,foldMap:Z,reduceRight:Q,reduceWithIndex:en,foldMapWithIndex:er,reduceRightWithIndex:ei},t.Traversable={URI:t.URI,map:z,reduce:J,foldMap:Z,reduceRight:Q,traverse:ee,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:z,mapWithIndex:H,reduce:J,foldMap:Z,reduceRight:Q,traverse:ee,sequence:t.sequence,reduceWithIndex:en,foldMapWithIndex:er,reduceRightWithIndex:ei,traverseWithIndex:eo},t.Alt={URI:t.URI,map:z,alt:et},t.Comonad={URI:t.URI,map:z,extend:X,extract:t.extract},t.Do=(0,t.of)(d.emptyRecord),t.bindTo=(0,p.bindTo)(t.Functor);var eR=(0,p.let)(t.Functor);t.let=eR,t.bind=(0,c.bind)(t.Chain),t.apS=(0,a.apS)(t.Apply),t.head=t.extract,t.tail=d.tail;var ew=function(e){return e[e.length-1]};t.last=ew;var eO=function(e){return e.slice(0,-1)};t.init=eO;var ex=function(e){var t=m.min(e);return function(e){return e.reduce(t.concat)}};t.min=ex;var eC=function(e){var t=m.max(e);return function(e){return e.reduce(t.concat)}};t.max=eC;var eM=function(e){return function(t){return t.reduce(e.concat)}};t.concatAll=eM;var eE=function(e){return function(n){return e((0,t.head)(n),(0,t.tail)(n))}};t.matchLeft=eE;var eP=function(e){return function(n){return e((0,t.init)(n),(0,t.last)(n))}};t.matchRight=eP;var ek=function(e){return function(n){return u([e((0,t.head)(n))],(0,t.tail)(n),!0)}};t.modifyHead=ek;var eW=function(e){return(0,t.modifyHead)(function(){return e})};t.updateHead=eW;var eF=function(e){return function(n){return(0,l.pipe)((0,t.init)(n),(0,t.append)(e((0,t.last)(n))))}};t.modifyLast=eF;var eD=function(e){return(0,t.modifyLast)(function(){return e})};t.updateLast=eD;var eN=function(e){var n=(0,t.concatAll)(e);return function(e){return(0,l.flow)((0,t.intersperse)(e),n)}};t.intercalate=eN,t.chain=t.flatMap,t.groupSort=function(e){var n=(0,t.sort)(e),r=F(e);return function(e){return(0,t.isNonEmpty)(e)?r(n(e)):t.empty}},t.filter=function(e){return(0,t.filterWithIndex)(function(t,n){return e(n)})};var eL=function(e){return function(n){return(0,t.fromReadonlyArray)(n.filter(function(t,n){return e(n,t)}))}};t.filterWithIndex=eL,t.uncons=t.unprepend,t.unsnoc=t.unappend,t.cons=function(e,n){return void 0===n?(0,t.prepend)(e):(0,l.pipe)(n,(0,t.prepend)(e))};var eU=function(e,t){return(0,l.pipe)(e,k([t]))};t.snoc=eU;var eA=function(e,n){return function(r){return e<0||e>r.length?d.none:d.some((0,t.unsafeInsertAt)(e,n,r))}};t.insertAt=eA,t.prependToAll=t.prependAll,t.fold=t.concatAll,t.readonlyNonEmptyArray={URI:t.URI,of:t.of,map:z,mapWithIndex:H,ap:$,chain:t.flatMap,extend:X,extract:t.extract,reduce:J,foldMap:Z,reduceRight:Q,traverse:ee,sequence:t.sequence,reduceWithIndex:en,foldMapWithIndex:er,reduceRightWithIndex:ei,traverseWithIndex:eo,alt:et}},98744:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),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 u=n(14632),a=o(n(5309)),c=o(n(73540)),f=o(n(83235)),l=function(e){return{concat:f.min(e)}};t.min=l;var p=function(e){return{concat:f.max(e)}};t.max=p;var d=function(e){return{concat:function(){return e}}};t.constant=d,t.reverse=c.reverse;var s=function(e){return{concat:function(t,n){var r={};for(var i in e)a.has.call(e,i)&&(r[i]=e[i].concat(t[i],n[i]));return r}}};t.struct=s;var m=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{concat:function(t,n){return e.map(function(e,r){return e.concat(t[r],n[r])})}}};t.tuple=m;var h=function(e){return function(t){return{concat:function(n,r){return t.concat(n,t.concat(e,r))}}}};t.intercalate=h;var v=function(){return{concat:u.identity}};t.first=v;var y=function(){return{concat:function(e,t){return t}}};t.last=y,t.concatAll=c.concatAll,t.semigroupVoid=(0,t.constant)(void 0);var g=function(){return{concat:function(e,t){return Object.assign({},e,t)}}};t.getObjectSemigroup=g,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(e){var n=(0,t.concatAll)(e);return function(e,t){return void 0===t?n(e):n(e)(t)}},t.semigroupAll={concat:function(e,t){return e&&t}},t.semigroupAny={concat:function(e,t){return e||t}},t.getFunctionSemigroup=u.getSemigroup,t.semigroupString={concat:function(e,t){return e+t}},t.semigroupSum={concat:function(e,t){return e+t}},t.semigroupProduct={concat:function(e,t){return e*t}}},4773:function(e,t,n){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=n(14632),i=n(8762),o=function(e,t){return{left:e,right:t}};t.separated=o;var u=function(e,n){return(0,r.pipe)(e,(0,t.map)(n))},a=function(e,n){return(0,r.pipe)(e,(0,t.mapLeft)(n))},c=function(e,n,i){return(0,r.pipe)(e,(0,t.bimap)(n,i))},f=function(e){return function(n){return(0,t.separated)((0,t.left)(n),e((0,t.right)(n)))}};t.map=f;var l=function(e){return function(n){return(0,t.separated)(e((0,t.left)(n)),(0,t.right)(n))}};t.mapLeft=l;var p=function(e,n){return function(r){return(0,t.separated)(e((0,t.left)(r)),n((0,t.right)(r)))}};t.bimap=p,t.URI="Separated",t.Bifunctor={URI:t.URI,mapLeft:a,bimap:c},t.Functor={URI:t.URI,map:u},t.flap=(0,i.flap)(t.Functor);var d=function(e){return e.left};t.left=d;var s=function(e){return e.right};t.right=s},69706:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.filterE=t.witherDefault=t.wiltDefault=void 0;var u=o(n(5309));t.wiltDefault=function(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.separate)}}},t.witherDefault=function(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.compact)}}},t.filterE=function(e){return function(t){var n=e.wither(t);return function(e){return function(r){return n(r,function(n){return t.map(e(n),function(e){return e?u.some(n):u.none})})}}}}},3899:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.guard=void 0,t.guard=function(e,t){return function(n){return n?t.of(void 0):e.zero()}}},14632:function(e,t){var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};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;var r=function(e){return function(){return{meet:function(t,n){return function(r){return e.meet(t(r),n(r))}},join:function(t,n){return function(r){return e.join(t(r),n(r))}},zero:function(){return e.zero},one:function(){return e.one},implies:function(t,n){return function(r){return e.implies(t(r),n(r))}},not:function(t){return function(n){return e.not(t(n))}}}}};t.getBooleanAlgebra=r;var i=function(e){return function(){return{concat:function(t,n){return function(r){return e.concat(t(r),n(r))}}}}};t.getSemigroup=i;var o=function(e){var n=(0,t.getSemigroup)(e);return function(){return{concat:n().concat,empty:function(){return e.empty}}}};t.getMonoid=o;var u=function(e){return{add:function(t,n){return function(r){return e.add(t(r),n(r))}},zero:function(){return e.zero},mul:function(t,n){return function(r){return e.mul(t(r),n(r))}},one:function(){return e.one}}};t.getSemiring=u;var a=function(e){var n=(0,t.getSemiring)(e);return{add:n.add,mul:n.mul,one:n.one,zero:n.zero,sub:function(t,n){return function(r){return e.sub(t(r),n(r))}}}};t.getRing=a;var c=function(e){return function(t){return t(e)}};function f(e){return e}function l(e){return function(){return e}}function p(e,t,n,r,i,o,u,a,c){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return o(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return u(o(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return a(u(o(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return c(a(u(o(i(r(n(t(e.apply(this,arguments)))))))))}}}function d(e){return e+1}function s(e){return e-1}function m(e){throw Error("Called `absurd` function which should be uncallable")}t.apply=c,t.identity=f,t.unsafeCoerce=f,t.constant=l,t.constTrue=l(!0),t.constFalse=l(!1),t.constNull=l(null),t.constUndefined=l(void 0),t.constVoid=t.constUndefined,t.flip=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length>1?e(t[1],t[0]):function(n){return e(n)(t[0])}}},t.flow=p,t.tuple=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e},t.increment=d,t.decrement=s,t.absurd=m,t.tupled=function(e){return function(t){return e.apply(void 0,t)}},t.untupled=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(t)}},t.pipe=function(e,t,n,r,i,o,u,a,c){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return o(i(r(n(t(e)))));case 7:return u(o(i(r(n(t(e))))));case 8:return a(u(o(i(r(n(t(e)))))));case 9:return c(a(u(o(i(r(n(t(e))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}},t.hole=m;var h=function(e,t){return t};t.SK=h,t.not=function(e){return function(t){return!e(t)}};var v=function(){return{concat:function(e,t){return p(e,t)},empty:f}};t.getEndomorphismMonoid=v;var y=function(e,t){var r="number"==typeof e?function(t){return t.length>=e}:e;return function(){var e=Array.from(arguments);return r(arguments)?t.apply(this,e):function(r){return t.apply(void 0,n([r],e,!1))}}};t.dual=y},5309:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.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=n(14632),o=function(e){return"None"===e._tag};t.isNone=o;var u=function(e){return"Some"===e._tag};t.isSome=u,t.none={_tag:"None"};var a=function(e){return{_tag:"Some",value:e}};t.some=a;var c=function(e){return"Left"===e._tag};t.isLeft=c;var f=function(e){return"Right"===e._tag};t.isRight=f;var l=function(e){return{_tag:"Left",left:e}};t.left=l;var p=function(e){return{_tag:"Right",right:e}};t.right=p;var d=function(e){return[e]};t.singleton=d;var s=function(e){return e.length>0};t.isNonEmpty=s;var m=function(e){return e[0]};t.head=m;var h=function(e){return e.slice(1)};t.tail=h,t.emptyReadonlyArray=[],t.emptyRecord={},t.has=Object.prototype.hasOwnProperty;var v=function(e){return r([e[0]],e.slice(1),!0)};t.fromReadonlyNonEmptyArray=v;var y=function(e){return function(n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var u=n.apply(void 0,i);return e.fromEither(null==u?(0,t.left)(r.apply(void 0,i)):(0,t.right)(u))}}};t.liftNullable=y;var g=function(e){return function(n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var u=n.apply(void 0,i);return e.fromEither((0,t.isNone)(u)?(0,t.left)(r.apply(void 0,i)):(0,t.right)(u.value))}}};t.liftOption=g;var _=function(e,n){return(0,i.dual)(3,function(r,i,o){return n.flatMap(r,(0,t.liftNullable)(e)(i,o))})};t.flatMapNullable=_;var b=function(e,n){return(0,i.dual)(3,function(r,i,o){return n.flatMap(r,(0,t.liftOption)(e)(i,o))})};t.flatMapOption=b;var S=function(e,t){return(0,i.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromEither(r(t))})})};t.flatMapEither=S;var T=function(e,t){return(0,i.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromIO(r(t))})})};t.flatMapIO=T;var I=function(e,t){return(0,i.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromTask(r(t))})})};t.flatMapTask=I;var R=function(e,t){return(0,i.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromReader(r(t))})})};t.flatMapReader=R},40457:function(e,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;var n=function(e){return"number"==typeof e};t.isNumber=n,t.Eq={equals:function(e,t){return e===t}},t.Ord={equals:t.Eq.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},t.Bounded={equals:t.Eq.equals,compare:t.Ord.compare,top:1/0,bottom:-1/0},t.Show={show:function(e){return JSON.stringify(e)}},t.MagmaSub={concat:function(e,t){return e-t}},t.SemigroupSum={concat:function(e,t){return e+t}},t.SemigroupProduct={concat:function(e,t){return e*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(e){return 1},div:function(e,t){return e/t},mod:function(e,t){return e%t}}},67794:function(e,t,n){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=n(93145),i=n(18222),o=n(14632);function u(e){return function(t){return function(n){return e.map(n,t)}}}function a(e){return function(t){return function(n){return e.contramap(n,t)}}}function c(e){return function(t){return function(n){return e.mapWithIndex(n,t)}}}function f(e){return function(t){return function(n){return e.ap(n,t)}}}function l(e){return function(t){return function(n){return e.chain(n,t)}}}function p(e){return function(t,n){return function(r){return e.bimap(r,t,n)}}}function d(e){return function(t){return function(n){return e.mapLeft(n,t)}}}function s(e){return function(t){return function(n){return e.extend(n,t)}}}function m(e){return function(t,n){return function(r){return e.reduce(r,t,n)}}}function h(e){return function(t){var n=e.foldMap(t);return function(e){return function(t){return n(t,e)}}}}function v(e){return function(t,n){return function(r){return e.reduceRight(r,t,n)}}}function y(e){return function(t,n){return function(r){return e.reduceWithIndex(r,t,n)}}}function g(e){return function(t){var n=e.foldMapWithIndex(t);return function(e){return function(t){return n(t,e)}}}}function _(e){return function(t,n){return function(r){return e.reduceRightWithIndex(r,t,n)}}}function b(e){return function(t){return function(n){return e.alt(n,t)}}}function S(e){return function(t){return function(n){return e.filter(n,t)}}}function T(e){return function(t){return function(n){return e.filterMap(n,t)}}}function I(e){return function(t){return function(n){return e.partition(n,t)}}}function R(e){return function(t){return function(n){return e.partitionMap(n,t)}}}function w(e){return function(t){return function(n){return e.filterWithIndex(n,t)}}}function O(e){return function(t){return function(n){return e.filterMapWithIndex(n,t)}}}function x(e){return function(t){return function(n){return e.partitionWithIndex(n,t)}}}function C(e){return function(t){return function(n){return e.partitionMapWithIndex(n,t)}}}function M(e){return function(t,n){return function(r){return e.promap(r,t,n)}}}function E(e){return function(t){return function(n){return e.compose(n,t)}}}t.map=u,t.contramap=a,t.mapWithIndex=c,t.ap=f,t.chain=l,t.bimap=p,t.mapLeft=d,t.extend=s,t.reduce=m,t.foldMap=h,t.reduceRight=v,t.reduceWithIndex=y,t.foldMapWithIndex=g,t.reduceRightWithIndex=_,t.alt=b,t.filter=S,t.filterMap=T,t.partition=I,t.partitionMap=R,t.filterWithIndex=w,t.filterMapWithIndex=O,t.partitionWithIndex=x,t.partitionMapWithIndex=C,t.promap=M,t.compose=E,t.pipeable=function(e){var t,n,P,k,W,F,D,N,L,U,A,j,q,G,Y,B,K={};if("function"==typeof e.map&&(K.map=u(e)),"function"==typeof e.contramap&&(K.contramap=a(e)),"function"==typeof e.mapWithIndex&&(K.mapWithIndex=c(e)),"function"==typeof e.ap&&(K.ap=f(e),K.apFirst=(0,r.apFirst)(e),K.apSecond=(0,r.apSecond)(e)),"function"==typeof e.chain&&(K.chain=l(e),K.chainFirst=(0,i.chainFirst)(e),K.flatten=K.chain(o.identity)),"function"==typeof e.bimap&&(K.bimap=p(e),K.mapLeft=d(e)),"function"==typeof e.extend&&(K.extend=s(e),K.duplicate=K.extend(o.identity)),"function"==typeof e.reduce&&(K.reduce=m(e),K.foldMap=h(e),K.reduceRight=v(e)),"function"==typeof e.reduceWithIndex&&(K.reduceWithIndex=y(e),K.foldMapWithIndex=g(e),K.reduceRightWithIndex=_(e)),"function"==typeof e.alt&&(K.alt=b(e)),"function"==typeof e.compact&&(K.compact=e.compact,K.separate=e.separate),"function"==typeof e.filter&&(K.filter=S(e),K.filterMap=T(e),K.partition=I(e),K.partitionMap=R(e)),"function"==typeof e.filterWithIndex&&(K.filterWithIndex=w(e),K.filterMapWithIndex=O(e),K.partitionWithIndex=x(e),K.partitionMapWithIndex=C(e)),"function"==typeof e.promap&&(K.promap=M(e)),"function"==typeof e.compose&&(K.compose=E(e)),"function"==typeof e.throwError){var V=function(t){return function(n){return"None"===n._tag?e.throwError(t()):e.of(n.value)}},z=function(t){return"Left"===t._tag?e.throwError(t.left):e.of(t.right)},H=function(t,n){return function(r){return t(r)?e.of(r):e.throwError(n(r))}},$=function(t,n){return function(r){return e.chain(r,function(r){return t(r)?e.of(r):e.throwError(n(r))})}};K.fromOption=V,K.fromEither=z,K.fromPredicate=H,K.filterOrElse=$}return K},t.pipe=o.pipe},23284:function(e,t,n){n.r(t),n.d(t,{BigIntFromString:function(){return tT},BooleanFromNumber:function(){return tR},BooleanFromString:function(){return tu},DateFromISOString:function(){return e4},DateFromNumber:function(){return te},DateFromUnixTime:function(){return td},IntFromString:function(){return tm},Json:function(){return ty},JsonArray:function(){return th},JsonFromString:function(){return tg},JsonRecord:function(){return tv},NonEmptyString:function(){return u},NumberFromString:function(){return ts},UUID:function(){return ti},clone:function(){return e6},date:function(){return y},either:function(){return tS},fromNewtype:function(){return e2},fromNullable:function(){return to},fromRefinement:function(){return v},getLenses:function(){return tl},mapFromEntries:function(){return tx},mapOutput:function(){return i.mapOutput},nonEmptyArray:function(){return d},option:function(){return e3},optionFromNullable:function(){return e5},readonlyMapFromEntries:function(){return tC},readonlyNonEmptyArray:function(){return e9},readonlySetFromArray:function(){return h},regexp:function(){return tp},setFromArray:function(){return m},withEncode:function(){return tI},withFallback:function(){return tn},withMessage:function(){return ta},withValidate:function(){return tt}});var r={};n.r(r),n.d(r,{Category:function(){return eD},Invariant:function(){return eW},Semigroupoid:function(){return eF},URI:function(){return ek},asOptional:function(){return eo},asTraversal:function(){return eu},atKey:function(){return eI},component:function(){return e_},compose:function(){return ea},composeIso:function(){return ef},composeLens:function(){return ec},composeOptional:function(){return ep},composePrism:function(){return el},composeTraversal:function(){return ed},filter:function(){return ev},findFirst:function(){return eC},findFirstNonEmpty:function(){return eM},fromNullable:function(){return eh},id:function(){return ei},imap:function(){return eE},index:function(){return eb},indexNonEmpty:function(){return eS},key:function(){return eT},left:function(){return eO},lens:function(){return er},modify:function(){return es},modifyF:function(){return em},prop:function(){return ey},props:function(){return eg},right:function(){return ew},some:function(){return eR},traverse:function(){return ex}});var i=n(47361),o=n(87830),u=o.brand(o.string,function(e){return e.length>0},"NonEmptyString"),a=n(43586),c=n(1358),f=n(18896),l=n(81878),p=n(20492);function d(e,t){void 0===t&&(t="NonEmptyArray<"+e.name+">");var n=o.array(e);return new o.Type(t,function(e){return n.is(e)&&(0,c.isNonEmpty)(e)},function(e,t){return(0,f.pipe)(n.validate(e,t),(0,l.chain)(function(n){var r=(0,a.fromArray)(n);return(0,p.isNone)(r)?o.failure(e,t):o.success(r.value)}))},(0,a.map)(e.encode))}var s=n(1214);function m(e,t,n){void 0===n&&(n="Set<"+e.name+">");var r=o.array(e),i=(0,s.toArray)(t),u=(0,s.fromArray)(t);return new o.Type(n,function(t){return t instanceof Set&&(0,s.every)(e.is)(t)},function(e,t){return(0,f.pipe)(r.validate(e,t),(0,l.chain)(function(n){var r=u(n);return r.size!==n.length?o.failure(e,t):o.success(r)}))},function(e){return r.encode(i(e))})}function h(e,t,n){return void 0===n&&(n="ReadonlySet<"+e.name+">"),m(e,t,n)}function v(e,t){return new o.Type(e,t,function(e,n){return t(e)?o.success(e):o.failure(e,n)},o.identity)}var y=v("Date",function(e){return e instanceof Date}),g=n(42275),_=n(90817),b=n(96576),S=n(31583),T=n(97054),I=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},R=function(e,t){return{get:e,reverseGet:t}},w=function(e){return M(e.get,(0,g.flow)(e.reverseGet,g.constant))},O=function(e){return j((0,g.flow)(e.get,p.some),e.reverseGet)},x=function(e){return V((0,g.flow)(e.get,p.some),(0,g.flow)(e.reverseGet,g.constant))},C=function(e){return Z(function(t){return function(n){return function(r){return t.map(n(e.get(r)),function(t){return e.reverseGet(t)})}}})},M=function(e,t){return{get:e,set:t}},E=function(e){return V((0,g.flow)(e.get,p.some),e.set)},P=function(e){return Z(function(t){return function(n){return function(r){return t.map(n(e.get(r)),function(t){return e.set(t)(r)})}}})},k=function(e){return function(t){return M(function(n){return e.get(t.get(n))},function(n){return function(r){return t.set(e.set(n)(t.get(r)))(r)}})}},W=function(e){return function(t){return j((0,g.flow)(t.getOption,p.chain(e.getOption)),(0,g.flow)(e.reverseGet,t.reverseGet))}},F=function(e){return function(t){return X(q(e))(E(t))}},D=function(){return M(g.identity,g.constant)},N=function(e){return function(t){return M(function(n){return t.get(n)[e]},function(n){return function(r){var i,o=t.get(r);return n===o[e]?r:t.set(Object.assign({},o,((i={})[e]=n,i)))(r)}})}},L=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return M(function(n){for(var r=t.get(n),i={},o=0;o<e.length;o++){var u=e[o];i[u]=r[u]}return i},function(n){return function(r){for(var i=t.get(r),o=0;o<e.length;o++){var u=e[o];if(n[u]!==i[u])return t.set(Object.assign({},i,n))(r)}return r}})}},U=function(e){return function(t){return M(function(n){return t.get(n)[e]},function(n){return function(r){var i=t.get(r);if(n===i[e])return r;var o=i.slice();return o[e]=n,t.set(o)(r)}})}},A=function(e){return function(t){return(0,f.pipe)(t,k(en(function(e){return M(function(t){return T.lookup(e,t)},p.fold(function(){return T.deleteAt(e)},function(t){return T.insertAt(e,t)}))}).at(e)))}},j=function(e,t){return{getOption:e,reverseGet:t}},q=function(e){return V(e.getOption,function(t){return Y(t)(e)})},G=function(e){return Z(function(t){return function(n){return function(r){return(0,f.pipe)(e.getOption(r),p.fold(function(){return t.of(r)},function(i){return t.map(n(i),function(t){return Y(t)(e)(r)})}))}}})},Y=function(e){var t;return t=function(){return e},function(e){var n,r,i=(n=e,function(e){return(0,f.pipe)(n.getOption(e),p.map(function(r){var i=t(r);return i===r?e:n.reverseGet(i)}))});return function(e){return(0,f.pipe)(i(e),p.getOrElse(function(){return e}))}}},B=function(e){return j(p.fromPredicate(e),g.identity)},K=function(){return j(g.identity,p.some)},V=function(e,t){return{getOption:e,set:t}},z=function(e){return Z(function(t){return function(n){return function(r){return(0,f.pipe)(e.getOption(r),p.fold(function(){return t.of(r)},function(i){return t.map(n(i),function(t){return e.set(t)(r)})}))}}})},H=function(e){return function(t){return function(n){return(0,f.pipe)(t.getOption(n),p.map(function(r){var i=e(r);return i===r?n:t.set(i)(n)}))}}},$=function(e){return function(t){var n=H(e)(t);return function(e){return(0,f.pipe)(n(e),p.getOrElse(function(){return e}))}}},X=function(e){return function(t){return V((0,g.flow)(t.getOption,p.chain(e.getOption)),function(n){return $(e.set(n))(t)})}},J=function(e,t,n){if(n[e]===t)return n;var r=I([n[0]],n.slice(1),!0);return r[e]=t,r},Z=function(e){return{modifyF:e}};function Q(e){return function(t){return Z(function(n){return function(r){return t.modifyF(n)(e.modifyF(n)(r))}})}}var ee={URI:"Identity",map:function(e,t){return t(e)},of:g.identity,ap:function(e,t){return e(t)}},et=function(e){return{index:e}},en=function(e){return{at:e}},er=M,ei=D,eo=E,eu=P,ea=k,ec=ea,ef=(0,g.flow)(w,ea),el=F,ep=function(e){return(0,g.flow)(eo,X(e))},ed=function(e){return(0,g.flow)(eu,Q(e))},es=function(e){return function(t){return function(n){var r=t.get(n),i=e(r);return r===i?n:t.set(i)(n)}}};function em(e){return function(t){return function(n){return function(r){return(0,f.pipe)(n.get(r),t,function(t){return e.map(t,function(e){return n.set(e)(r)})})}}}}var eh=function(e){return el(j(p.fromNullable,g.identity))(e)};function ev(e){return el(B(e))}var ey=N,eg=L,e_=U,eb=function(e){var t;return(0,g.flow)(eo,function(t){return(0,f.pipe)(t,X(et(function(e){return V(function(t){return S.lookup(e,t)},function(t){return function(n){return(0,f.pipe)(S.lookup(e,n),p.fold(function(){return n},function(){return S.unsafeUpdateAt(e,t,n)}))}})}).index(e)))})},eS=function(e){var t;return(0,g.flow)(eo,function(t){return(0,f.pipe)(t,X(et(function(e){return V(function(t){return S.lookup(e,t)},function(t){return function(n){return(0,f.pipe)(S.lookup(e,n),p.fold(function(){return n},function(){return J(e,t,n)}))}})}).index(e)))})},eT=function(e){var t;return(0,g.flow)(eo,function(t){return(0,f.pipe)(t,X(et(function(e){return V(function(t){return T.lookup(e,t)},function(t){return function(n){return n[e]===t||p.isNone(T.lookup(e,n))?n:T.insertAt(e,t)(n)}})}).index(e)))})},eI=A,eR=el(K()),ew=el(j(p.fromEither,l.right)),eO=el(j(function(e){return l.isLeft(e)?p.some(e.left):p.none},l.left));function ex(e){var t,n;return(0,g.flow)(eu,Q(Z(function(t){var n,r="Identity"===t.URI?e.map:e.traverse(t);return function(e){return function(t){return r(t,e)}}})))}function eC(e){var t;return ep(V(S.findFirst(e),function(t){return function(n){return(0,f.pipe)(S.findIndex(e)(n),p.fold(function(){return n},function(e){return S.unsafeUpdateAt(e,t,n)}))}}))}function eM(e){var t;return ep(V(S.findFirst(e),function(t){return function(n){return(0,f.pipe)(S.findIndex(e)(n),p.fold(function(){return n},function(e){return J(e,t,n)}))}}))}var eE=function(e,t){return function(n){return eP(n,e,t)}},eP=function(e,t,n){return er((0,g.flow)(e.get,t),(0,g.flow)(n,e.set))},ek="monocle-ts/Lens",eW={URI:ek,imap:eP},eF={URI:ek,compose:function(e,t){return ea(e)(t)}},eD={URI:ek,compose:eF.compose,id:ei},eN=function(e){return function(t){return t.modifyF(ee)(e)}},eL=function(e){return new eB(e.get,e.reverseGet)},eU=function(e){return new eK(e.get,e.set)},eA=function(e){return new eV(e.getOption,e.reverseGet)},ej=function(e){return new eH(e.getOption,e.set)},eq=function(e){return new e$(e.modifyF)},eG=function(e){return new eJ(function(t){return ej(e.index(t))})},eY=function(e,t,n){var r;return n===e[t]?e:Object.assign({},e,((r={})[t]=n,r))},eB=function(){function e(e,t){this.get=e,this.reverseGet=t,this._tag="Iso",this.unwrap=this.get,this.to=this.get,this.wrap=this.reverseGet,this.from=this.reverseGet}return e.prototype.reverse=function(){var e;return eL(R(this.reverseGet,this.get))},e.prototype.modify=function(e){var t,n;return n=this,function(t){return n.reverseGet(e(n.get(t)))}},e.prototype.asLens=function(){return eU(w(this))},e.prototype.asPrism=function(){return eA(O(this))},e.prototype.asOptional=function(){return ej(x(this))},e.prototype.asTraversal=function(){return eq(C(this))},e.prototype.asFold=function(){var e=this;return new eQ(function(){return function(t){return function(n){return t(e.get(n))}}})},e.prototype.asGetter=function(){var e=this;return new eZ(function(t){return e.get(t)})},e.prototype.asSetter=function(){var e=this;return new e0(function(t){return e.modify(t)})},e.prototype.compose=function(e){var t;return eL((t=e,function(e){return R((0,g.flow)(e.get,t.get),(0,g.flow)(t.reverseGet,e.reverseGet))})(this))},e.prototype.composeIso=function(e){return this.compose(e)},e.prototype.composeLens=function(e){return eU((0,f.pipe)(this,w,ea(e)))},e.prototype.composePrism=function(e){return eA((0,f.pipe)(this,O,W(e)))},e.prototype.composeOptional=function(e){return ej((0,f.pipe)(this,x,X(e)))},e.prototype.composeTraversal=function(e){return eq((0,f.pipe)(this,C,Q(e)))},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeGetter=function(e){return this.asGetter().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e}(),eK=function(){function e(e,t){this.get=e,this.set=t,this._tag="Lens"}return e.fromPath=function(){var t=e.fromProp();return function(e){var n=t(e[0]);return e.slice(1).reduce(function(e,n){return e.compose(t(n))},n)}},e.fromProp=function(){return function(e){return eU((0,f.pipe)(ei(),ey(e)))}},e.fromProps=function(){return function(e){return eU((0,f.pipe)(ei(),eg.apply(r,e)))}},e.fromNullableProp=function(){return function(t,n){return new e(function(e){var r=(0,p.fromNullable)(e[t]);return(0,p.isNone)(r)?n:r.value},function(e){return function(n){return eY(n,t,e)}})}},e.prototype.modify=function(e){return es(e)(this)},e.prototype.asOptional=function(){return ej(eo(this))},e.prototype.asTraversal=function(){return eq(eu(this))},e.prototype.asSetter=function(){var e=this;return new e0(function(t){return e.modify(t)})},e.prototype.asGetter=function(){var e=this;return new eZ(function(t){return e.get(t)})},e.prototype.asFold=function(){var e=this;return new eQ(function(){return function(t){return function(n){return t(e.get(n))}}})},e.prototype.compose=function(e){return eU(ea(e)(this))},e.prototype.composeLens=function(e){return this.compose(e)},e.prototype.composeGetter=function(e){return this.asGetter().compose(e)},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeOptional=function(e){return ej((0,f.pipe)(this,eo,X(e)))},e.prototype.composeTraversal=function(e){return eq((0,f.pipe)(this,eu,Q(e)))},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeIso=function(e){return eU((0,f.pipe)(this,ea((0,f.pipe)(e,w))))},e.prototype.composePrism=function(e){return ej(el(e)(this))},e}(),eV=function(){function e(e,t){this.getOption=e,this.reverseGet=t,this._tag="Prism"}return e.fromPredicate=function(e){return eA(B(e))},e.some=function(){return ez},e.prototype.modify=function(e){var t=this;return function(n){var r=t.modifyOption(e)(n);return(0,p.isNone)(r)?n:r.value}},e.prototype.modifyOption=function(e){var t=this;return function(n){return p.option.map(t.getOption(n),function(r){var i=e(r);return i===r?n:t.reverseGet(i)})}},e.prototype.set=function(e){return this.modify(function(){return e})},e.prototype.asOptional=function(){return ej(q(this))},e.prototype.asTraversal=function(){return eq(G(this))},e.prototype.asSetter=function(){var e=this;return new e0(function(t){return e.modify(t)})},e.prototype.asFold=function(){var e=this;return new eQ(function(t){return function(n){return function(r){var i=e.getOption(r);return(0,p.isNone)(i)?t.empty:n(i.value)}}})},e.prototype.compose=function(e){return eA(W(e)(this))},e.prototype.composePrism=function(e){return this.compose(e)},e.prototype.composeOptional=function(e){return ej((0,f.pipe)(this,q,X(e)))},e.prototype.composeTraversal=function(e){return eq((0,f.pipe)(this,G,Q(e)))},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeIso=function(e){return eA((0,f.pipe)(this,W((0,f.pipe)(e,O))))},e.prototype.composeLens=function(e){var t;return ej((t=e,function(e){return X(E(t))(q(e))})(this))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),ez=new eV(g.identity,p.some),eH=function(){function e(e,t){this.getOption=e,this.set=t,this._tag="Optional"}return e.fromPath=function(){var t=e.fromNullableProp();return function(e){var n=t(e[0]);return e.slice(1).reduce(function(e,n){return e.compose(t(n))},n)}},e.fromNullableProp=function(){return function(t){return new e(function(e){return(0,p.fromNullable)(e[t])},function(e){return function(n){return null==n[t]?n:eY(n,t,e)}})}},e.fromOptionProp=function(){var e=eK.fromProp();return function(t){return e(t).composePrism(ez)}},e.prototype.modify=function(e){return $(e)(this)},e.prototype.modifyOption=function(e){return H(e)(this)},e.prototype.asTraversal=function(){return eq(z(this))},e.prototype.asFold=function(){var e=this;return new eQ(function(t){return function(n){return function(r){var i=e.getOption(r);return(0,p.isNone)(i)?t.empty:n(i.value)}}})},e.prototype.asSetter=function(){var e=this;return new e0(function(t){return e.modify(t)})},e.prototype.compose=function(e){return ej(X(e)(this))},e.prototype.composeOptional=function(e){return this.compose(e)},e.prototype.composeTraversal=function(e){return eq((0,f.pipe)(this,z,Q(e)))},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeLens=function(e){return ej((0,f.pipe)(this,X((0,f.pipe)(e,eo))))},e.prototype.composePrism=function(e){return ej((0,f.pipe)(this,X((0,f.pipe)(e,q))))},e.prototype.composeIso=function(e){return ej((0,f.pipe)(this,X((0,f.pipe)(e,x))))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),e$=function(){function e(e){this.modifyF=e,this._tag="Traversal"}return e.prototype.modify=function(e){return eN(e)(this)},e.prototype.set=function(e){var t;return eN(function(){return e})(this)},e.prototype.filter=function(e){var t;return eq(Q(G(B(e)))(this))},e.prototype.asFold=function(){var e=this;return new eQ(function(t){return function(n){return e.modifyF((0,_.getApplicative)(t))(function(e){return(0,_.make)(n(e))})}})},e.prototype.asSetter=function(){var e=this;return new e0(function(t){return e.modify(t)})},e.prototype.compose=function(e){return eq(Q(e)(this))},e.prototype.composeTraversal=function(e){return this.compose(e)},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeOptional=function(e){return this.compose(e.asTraversal())},e.prototype.composeLens=function(e){return eq((0,f.pipe)(this,Q((0,f.pipe)(e,eu))))},e.prototype.composePrism=function(e){return eq((0,f.pipe)(this,Q((0,f.pipe)(e,G))))},e.prototype.composeIso=function(e){return eq((0,f.pipe)(this,Q((0,f.pipe)(e,C))))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),eX=function(){function e(e){this.at=e,this._tag="At"}return e.prototype.fromIso=function(e){var t,n,r;return r=this,n=en(function(t){return(0,f.pipe)(e,w,k(r.at(t)))}),new eX(function(e){return eU(n.at(e))})},e}(),eJ=function(){function e(e){this.index=e,this._tag="Index"}return e.fromAt=function(e){var t;return eG(et(function(t){return F(K())(e.at(t))}))},e.prototype.fromIso=function(e){var t,n;return eG((n=this,et(function(t){return(0,f.pipe)(e,x,X(n.index(t)))})))},e}(),eZ=function(){function e(e){this.get=e,this._tag="Getter"}return e.prototype.asFold=function(){var e=this;return new eQ(function(){return function(t){return function(n){return t(e.get(n))}}})},e.prototype.compose=function(t){var n=this;return new e(function(e){return t.get(n.get(e))})},e.prototype.composeGetter=function(e){return this.compose(e)},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeLens=function(e){return this.compose(e.asGetter())},e.prototype.composeIso=function(e){return this.compose(e.asGetter())},e.prototype.composeTraversal=function(e){return this.asFold().compose(e.asFold())},e.prototype.composeOptional=function(e){return this.asFold().compose(e.asFold())},e.prototype.composePrism=function(e){return this.asFold().compose(e.asFold())},e}(),eQ=function(){function e(e){this.foldMap=e,this._tag="Fold",this.getAll=e(c.getMonoid())(c.of),this.exist=e(b.monoidAny),this.all=e(b.monoidAll),this.foldMapFirst=e((0,p.getFirstMonoid)())}return e.prototype.compose=function(t){var n=this;return new e(function(e){return function(r){return n.foldMap(e)(t.foldMap(e)(r))}})},e.prototype.composeFold=function(e){return this.compose(e)},e.prototype.composeGetter=function(e){return this.compose(e.asFold())},e.prototype.composeTraversal=function(e){return this.compose(e.asFold())},e.prototype.composeOptional=function(e){return this.compose(e.asFold())},e.prototype.composeLens=function(e){return this.compose(e.asFold())},e.prototype.composePrism=function(e){return this.compose(e.asFold())},e.prototype.composeIso=function(e){return this.compose(e.asFold())},e.prototype.find=function(e){return this.foldMapFirst((0,p.fromPredicate)(e))},e.prototype.headOption=function(e){return this.find(function(){return!0})(e)},e}(),e0=function(){function e(e){this.modify=e,this._tag="Setter"}return e.prototype.set=function(e){return this.modify((0,g.constant)(e))},e.prototype.compose=function(t){var n=this;return new e(function(e){return n.modify(t.modify(e))})},e.prototype.composeSetter=function(e){return this.compose(e)},e.prototype.composeTraversal=function(e){return this.compose(e.asSetter())},e.prototype.composeOptional=function(e){return this.compose(e.asSetter())},e.prototype.composeLens=function(e){return this.compose(e.asSetter())},e.prototype.composePrism=function(e){return this.compose(e.asSetter())},e.prototype.composeIso=function(e){return this.compose(e.asSetter())},e}(),e1=new eB(g.unsafeCoerce,g.unsafeCoerce);function e2(e,t){return void 0===t&&(t="fromNewtype("+e.name+")"),new o.Type(t,function(t){return e.is(t)},function(t,n){return(0,f.pipe)(e.validate(t,n),(0,l.map)(e1.wrap))},function(t){return e.encode(e1.unwrap(t))})}var e8=o.strict({_tag:o.literal("None")},"None"),e7=o.literal("Some");function e3(e,t){return void 0===t&&(t="Option<"+e.name+">"),o.union([e8,o.strict({_tag:e7,value:e},"Some<"+e.name+">")],t)}function e5(e,t){return void 0===t&&(t="Option<"+e.name+">"),new o.Type(t,e3(e).is,function(t,n){return null==t?o.success(p.none):(0,f.pipe)(e.validate(t,n),(0,l.map)(p.some))},function(t){return p.toNullable((0,f.pipe)(t,p.map(e.encode)))})}var e4=new o.Type("DateFromISOString",function(e){return e instanceof Date},function(e,t){return(0,f.pipe)(o.string.validate(e,t),(0,l.chain)(function(n){var r=new Date(n);return isNaN(r.getTime())?o.failure(e,t):o.success(r)}))},function(e){return e.toISOString()});function e9(e,t){return void 0===t&&(t="ReadonlyNonEmptyArray<"+e.name+">"),d(e,t)}function e6(e){var t=Object.create(Object.getPrototypeOf(e));return Object.assign(t,e),t}var te=new o.Type("DateFromNumber",function(e){return e instanceof Date},function(e,t){return(0,f.pipe)(o.number.validate(e,t),(0,l.chain)(function(n){var r=new Date(n);return isNaN(r.getTime())?o.failure(e,t):o.success(r)}))},function(e){return e.getTime()});function tt(e,t,n){void 0===n&&(n=e.name);var r=e6(e);return r.validate=t,r.decode=function(e){return t(e,o.getDefaultContext(r))},r.name=n,r}function tn(e,t,n){return void 0===n&&(n="withFallback("+e.name+")"),tt(e,function(n,r){return(0,l.orElse)(function(){return o.success(t)})(e.validate(n,r))},n)}var tr=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,ti=o.brand(o.string,function(e){return tr.test(e)},"UUID");function to(e,t,n){return void 0===n&&(n="fromNullable("+e.name+")"),tt(e,function(n,r){return null==n?o.success(t):e.validate(n,r)},n)}var tu=new o.Type("BooleanFromString",o.boolean.is,function(e,t){return(0,f.pipe)(o.string.validate(e,t),(0,l.chain)(function(n){return"true"===n?o.success(!0):"false"===n?o.success(!1):o.failure(e,t)}))},String);function ta(e,t){return tt(e,function(n,r){return(0,l.mapLeft)(function(){return[{value:n,context:r,message:t(n,r),actual:n}]})(e.validate(n,r))})}function tc(e){switch(e._tag){case"InterfaceType":return e.props;case"ExactType":return tc(e.type)}}var tf=eK.fromProp();function tl(e){var t={};for(var n in tc(e))t[n]=tf(n);return t}var tp=v("RegExp",function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}),td=new o.Type("DateFromUnixTime",function(e){return e instanceof Date},function(e,t){return(0,f.pipe)(o.Int.validate(e,t),(0,l.chain)(function(n){var r=new Date(1e3*n);return isNaN(r.getTime())?o.failure(e,t):o.success(r)}))},function(e){return Math.floor(e.getTime()/1e3)}),ts=new o.Type("NumberFromString",o.number.is,function(e,t){return(0,f.pipe)(o.string.validate(e,t),(0,l.chain)(function(n){var r=+n;return isNaN(r)||""===n.trim()?o.failure(e,t):o.success(r)}))},String),tm=new o.Type("IntFromString",o.Int.is,function(e,t){return(0,f.pipe)(ts.validate(e,t),(0,l.chain)(function(n){return o.Int.is(n)?o.success(n):o.failure(e,t)}))},ts.encode),th=o.recursion("JsonArray",function(){return o.readonlyArray(ty)}),tv=o.recursion("JsonRecord",function(){return o.record(o.string,ty)}),ty=o.union([o.boolean,o.number,o.string,o.null,th,tv],"Json"),tg=new o.Type("JsonFromString",ty.is,function(e,t){try{return o.success(JSON.parse(e))}catch(n){return o.failure(e,t)}},function(e){return JSON.stringify(e)}),t_=o.literal("Left"),tb=o.literal("Right");function tS(e,t,n){return void 0===n&&(n="Either<"+e.name+", "+t.name+">"),o.union([o.strict({_tag:t_,left:e},"Left<"+e.name+">"),o.strict({_tag:tb,right:t},"Right<"+e.name+">")],n)}var tT=new o.Type("BigIntFromString",function(e){return"bigint"==typeof e},function(e,t){return(0,f.pipe)(o.string.validate(e,t),(0,l.chain)(function(n){if(!u.is(n.trim()))return o.failure(e,t);try{return o.success(BigInt(n))}catch(r){return o.failure(e,t)}}))},String);function tI(e,t,n){return void 0===n&&(n=e.name),new o.Type(n,e.is,e.validate,t)}var tR=new o.Type("BooleanFromNumber",o.boolean.is,function(e,t){return(0,f.pipe)(o.number.validate(e,t),(0,l.map)(function(e){return 0!==e}))},Number),tw=n(55116),tO=n(3291);function tx(e,t,n,r){void 0===r&&(r="Map<"+e.name+", "+n.name+">");var i,u,a=o.array(o.tuple([e,n])),f=(0,tw.toArray)(t),p=(0,tw.fromFoldable)(t,(0,tO.getLastSemigroup)(),c.Foldable),d=(i=e.is,u=n.is,function(e){for(var t,n=e.entries();!(t=n.next()).done;)if(!1===i(t.value[0])||!1===u(t.value[1]))return!1;return!0});return new o.Type(r,function(e){return e instanceof Map&&d(e)},function(e,t){return(0,g.pipe)(a.validate(e,t),(0,l.chain)(function(n){var r=p(n);return r.size!==n.length?o.failure(e,t):o.success(r)}))},function(e){return a.encode(f(e))})}function tC(e,t,n,r){return void 0===r&&(r="ReadonlyMap<"+e.name+", "+n.name+">"),tx(e,t,n,r)}},47361:function(e,t,n){n.r(t),n.d(t,{mapOutput:function(){return i}});var r=n(87830);function i(e,t,n){return void 0===n&&(n=e.name),new r.Type(n,e.is,e.validate,function(n){return t(e.encode(n))})}},11621:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.IntFromString=void 0;var u=o(n(87830)),a=n(59054),c=n(67794),f=n(87412);t.IntFromString=new u.Type("IntFromString",u.Int.is,function(e,t){return c.pipe(a.NumberFromString.validate(e,t),f.chain(function(n){return u.Int.is(n)?u.success(n):u.failure(e,t)}))},a.NumberFromString.encode)},59054:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NumberFromString=void 0;var u=o(n(87830)),a=n(67794),c=n(87412);t.NumberFromString=new u.Type("NumberFromString",u.number.is,function(e,t){return a.pipe(u.string.validate(e,t),c.chain(function(n){var r=+n;return isNaN(r)||""===n.trim()?u.failure(e,t):u.success(r)}))},String)},62886:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function(e){var t=Object.create(Object.getPrototypeOf(e));return Object.assign(t,e),t}},2932:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.mapOutput=void 0;var u=o(n(87830));t.mapOutput=function(e,t,n){return void 0===n&&(n=e.name),new u.Type(n,e.is,e.validate,function(n){return t(e.encode(n))})}},69624:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withFallback=void 0;var u=o(n(87830)),a=n(40308),c=n(87412);t.withFallback=function(e,t,n){return void 0===n&&(n="withFallback("+e.name+")"),a.withValidate(e,function(n,r){return c.orElse(function(){return u.success(t)})(e.validate(n,r))},n)}},40308:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withValidate=void 0;var u=o(n(87830)),a=n(62886);t.withValidate=function(e,t,n){void 0===n&&(n=e.name);var r=a.clone(e);return r.validate=t,r.decode=function(e){return t(e,u.getDefaultContext(r))},r.name=n,r}},87830:function(e,t,n){n.r(t),n.d(t,{AnyArrayType:function(){return Z},AnyDictionaryType:function(){return ee},AnyType:function(){return eU},Array:function(){return Q},ArrayType:function(){return es},BigIntType:function(){return H},BooleanType:function(){return X},Dictionary:function(){return eV},DictionaryType:function(){return e_},ExactType:function(){return ek},Function:function(){return eD},FunctionType:function(){return eF},Int:function(){return el},Integer:function(){return eq},InterfaceType:function(){return eh},IntersectionType:function(){return eI},KeyofType:function(){return ei},LiteralType:function(){return en},NeverType:function(){return eN},NullType:function(){return N},NumberType:function(){return V},ObjectType:function(){return ez},PartialType:function(){return ey},ReadonlyArrayType:function(){return eM},ReadonlyType:function(){return ex},RecursiveType:function(){return ep},RefinementType:function(){return eu},StrictType:function(){return eX},StringType:function(){return B},TaggedUnionType:function(){return eG},TupleType:function(){return ew},Type:function(){return p},UndefinedType:function(){return U},UnionType:function(){return eS},UnknownArray:function(){return Q},UnknownRecord:function(){return et},UnknownType:function(){return G},VoidType:function(){return j},alias:function(){return eZ},any:function(){return eA},appendContext:function(){return h},array:function(){return em},bigint:function(){return $},boolean:function(){return J},brand:function(){return ea},clean:function(){return eJ},dictionary:function(){return e$},emptyTags:function(){return x},exact:function(){return eW},failure:function(){return f},failures:function(){return c},getContextEntry:function(){return m},getDefaultContext:function(){return eK},getDomainKeys:function(){return T},getFunctionName:function(){return s},getIndex:function(){return D},getTags:function(){return F},getValidationError:function(){return eB},identity:function(){return d},interface:function(){return ev},intersection:function(){return eR},keyof:function(){return eo},literal:function(){return er},mergeAll:function(){return R},never:function(){return eL},null:function(){return L},nullType:function(){return L},number:function(){return z},object:function(){return eH},partial:function(){return eg},readonly:function(){return eC},readonlyArray:function(){return eE},record:function(){return eb},recursion:function(){return ed},refinement:function(){return ej},strict:function(){return eP},string:function(){return K},success:function(){return l},taggedUnion:function(){return eY},tuple:function(){return eO},type:function(){return ev},undefined:function(){return A},union:function(){return eT},unknown:function(){return Y},void:function(){return q},voidType:function(){return q}});var r,i=n(81878),o=(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},c=i.left,f=function(e,t,n){return c([{value:e,context:t,message:n}])},l=i.right,p=function(){function e(e,t,n,r){this.name=e,this.is=t,this.validate=n,this.encode=r,this.decode=this.decode.bind(this)}return e.prototype.pipe=function(t,n){var r=this;return void 0===n&&(n="pipe(".concat(this.name,", ").concat(t.name,")")),new e(n,t.is,function(e,n){var o=r.validate(e,n);return(0,i.isLeft)(o)?o:t.validate(o.right,n)},this.encode===d&&t.encode===d?d:function(e){return r.encode(t.encode(e))})},e.prototype.asDecoder=function(){return this},e.prototype.asEncoder=function(){return this},e.prototype.decode=function(e){return this.validate(e,[{key:"",type:this,actual:e}])},e}(),d=function(e){return e};function s(e){return e.displayName||e.name||"<function".concat(e.length,">")}function m(e,t){return{key:e,type:t}}function h(e,t,n,r){for(var i=e.length,o=Array(i+1),u=0;u<i;u++)o[u]=e[u];return o[i]={key:t,type:n,actual:r},o}function v(e,t){for(var n=t.length,r=0;r<n;r++)e.push(t[r])}var y=Object.prototype.hasOwnProperty;function g(e){return Object.keys(e).map(function(t){return"".concat(t,": ").concat(e[t].name)}).join(", ")}function _(e){for(var t=0;t<e.length;t++)if(e[t].encode!==d)return!1;return!0}function b(e){return"{ ".concat(g(e)," }")}function S(e){return"Partial<".concat(e,">")}function T(e){if(E(e)){var t,n,r=e.value;if(K.is(r))return(t={})[r]=null,t}else{if(n=e,"KeyofType"===n._tag)return e.keys;else if(k(e)){var i=e.types.map(function(e){return T(e)});return i.some(A.is)?void 0:Object.assign.apply(Object,a([{}],i,!1))}}}function I(e){return"("+e.map(function(e){return e.name}).join(" | ")+")"}function R(e,t){for(var n=!0,r=!0,i=!et.is(e),o=0;o<t.length;o++){var u=t[o];u!==e&&(n=!1),et.is(u)&&(r=!1)}if(n)return e;if(r)return t[t.length-1];for(var a={},c=0;c<t.length;c++){var u=t[c];for(var f in u)(!y.call(a,f)||i||u[f]!==e[f])&&(a[f]=u[f])}return a}function w(e,t){for(var n=Object.getOwnPropertyNames(e),r=!1,i={},o=0;o<n.length;o++){var u=n[o];y.call(t,u)?i[u]=e[u]:r=!0}return r?i:e}function O(e){return e.length>0}var x={};function C(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];-1!==t.indexOf(i)&&n.push(i)}return n}function M(e){return"AnyType"===e._tag}function E(e){return"LiteralType"===e._tag}function P(e){return"InterfaceType"===e._tag}function k(e){return"UnionType"===e._tag}var W=[];function F(e){if(-1!==W.indexOf(e))return x;if(P(e)||"StrictType"===(i=e)._tag){var t=x;for(var n in e.props){var r=e.props[n];E(r)&&(t===x&&(t={}),t[n]=[r.value])}return t}if("ExactType"===(o=e)._tag||"RefinementType"===(u=e)._tag)return F(e.type);if("IntersectionType"===(a=e)._tag)return e.types.reduce(function(e,t){return function(e,t){if(e===x)return t;if(t===x)return e;var n=Object.assign({},e);for(var r in t)if(y.call(e,r)){var i=C(e[r],t[r]);if(O(i))n[r]=i;else{n=x;break}}else n[r]=t[r];return n}(e,F(t))},x);if(k(e))return e.types.slice(1).reduce(function(e,t){return function(e,t){if(e===x||t===x)return x;var n=x;for(var r in e)y.call(t,r)&&0===C(e[r],t[r]).length&&(n===x&&(n={}),n[r]=e[r].concat(t[r]));return n}(e,F(t))},F(e.types[0]));if("RecursiveType"===(c=e)._tag){W.push(e);var i,o,u,a,c,f=F(e.type);return W.pop(),f}return x}function D(e){var t=F(e[0]),n=Object.keys(t),r=e.length;keys:for(var i=0;i<n.length;i++){var o=function(n){for(var i=t[n].slice(),o=[t[n]],u=1;u<r;u++){var a=F(e[u])[n];if(void 0===a||a.some(function(e){return -1!==i.indexOf(e)}))return"continue-keys";i.push.apply(i,a),o.push(a)}return{value:[n,o]}}(n[i]);if("object"==typeof o)return o.value;if("continue-keys"===o)continue keys}}var N=function(e){function t(){var t=e.call(this,"null",function(e){return null===e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="NullType",t}return o(t,e),t}(p),L=new N,U=function(e){function t(){var t=e.call(this,"undefined",function(e){return void 0===e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="UndefinedType",t}return o(t,e),t}(p),A=new U,j=function(e){function t(){var t=e.call(this,"void",A.is,A.validate,d)||this;return t._tag="VoidType",t}return o(t,e),t}(p),q=new j,G=function(e){function t(){var t=e.call(this,"unknown",function(e){return!0},l,d)||this;return t._tag="UnknownType",t}return o(t,e),t}(p),Y=new G,B=function(e){function t(){var t=e.call(this,"string",function(e){return"string"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="StringType",t}return o(t,e),t}(p),K=new B,V=function(e){function t(){var t=e.call(this,"number",function(e){return"number"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="NumberType",t}return o(t,e),t}(p),z=new V,H=function(e){function t(){var t=e.call(this,"bigint",function(e){return"bigint"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="BigIntType",t}return o(t,e),t}(p),$=new H,X=function(e){function t(){var t=e.call(this,"boolean",function(e){return"boolean"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="BooleanType",t}return o(t,e),t}(p),J=new X,Z=function(e){function t(){var t=e.call(this,"UnknownArray",Array.isArray,function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="AnyArrayType",t}return o(t,e),t}(p),Q=new Z,ee=function(e){function t(){var t=e.call(this,"UnknownRecord",function(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="AnyDictionaryType",t}return o(t,e),t}(p),et=new ee,en=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.value=o,u._tag="LiteralType",u}return o(t,e),t}(p);function er(e,t){void 0===t&&(t=JSON.stringify(e));var n=function(t){return t===e};return new en(t,n,function(t,r){return n(t)?l(e):f(t,r)},d,e)}var ei=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.keys=o,u._tag="KeyofType",u}return o(t,e),t}(p);function eo(e,t){void 0===t&&(t=Object.keys(e).map(function(e){return JSON.stringify(e)}).join(" | "));var n=function(t){return K.is(t)&&y.call(e,t)};return new ei(t,n,function(e,t){return n(e)?l(e):f(e,t)},d,e)}var eu=function(e){function t(t,n,r,i,o,u){var a=e.call(this,t,n,r,i)||this;return a.type=o,a.predicate=u,a._tag="RefinementType",a}return o(t,e),t}(p);function ea(e,t,n){return ej(e,t,n)}var ec,ef,el=ej(z,ef=function(e){return Number.isInteger(e)},"Int"),ep=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.runDefinition=o,u._tag="RecursiveType",u}return o(t,e),t}(p);function ed(e,t){var n,r=function(){return n||((n=t(i)).name=e),n},i=new ep(e,function(e){return r().is(e)},function(e,t){return r().validate(e,t)},function(e){return r().encode(e)},r);return i}Object.defineProperty(ep.prototype,"type",{get:function(){return this.runDefinition()},enumerable:!0,configurable:!0});var es=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.type=o,u._tag="ArrayType",u}return o(t,e),t}(p);function em(e,t){return void 0===t&&(t="Array<".concat(e.name,">")),new es(t,function(t){return Q.is(t)&&t.every(e.is)},function(t,n){var r=Q.validate(t,n);if((0,i.isLeft)(r))return r;for(var o=r.right,u=o.length,a=o,f=[],p=0;p<u;p++){var d=o[p],s=e.validate(d,h(n,String(p),e,d));if((0,i.isLeft)(s))v(f,s.left);else{var m=s.right;m!==d&&(a===o&&(a=o.slice()),a[p]=m)}}return f.length>0?c(f):l(a)},e.encode===d?d:function(t){return t.map(e.encode)},e)}var eh=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.props=o,u._tag="InterfaceType",u}return o(t,e),t}(p);function ev(e,t){void 0===t&&(t=b(e));var n=Object.keys(e),r=n.map(function(t){return e[t]}),o=n.length;return new eh(t,function(e){if(et.is(e)){for(var t=0;t<o;t++){var i=n[t],u=e[i];if(void 0===u&&!y.call(e,i)||!r[t].is(u))return!1}return!0}return!1},function(e,t){var a=et.validate(e,t);if((0,i.isLeft)(a))return a;for(var f=a.right,p=f,d=[],s=0;s<o;s++){var m=n[s],g=p[m],_=r[s],b=_.validate(g,h(t,m,_,g));if((0,i.isLeft)(b))v(d,b.left);else{var S=b.right;S===g&&(void 0!==S||y.call(p,m))||(p===f&&(p=u({},f)),p[m]=S)}}return d.length>0?c(d):l(p)},_(r)?d:function(e){for(var t=u({},e),i=0;i<o;i++){var a=n[i],c=r[i].encode;c!==d&&(t[a]=c(e[a]))}return t},e)}var ey=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.props=o,u._tag="PartialType",u}return o(t,e),t}(p);function eg(e,t){void 0===t&&(t=S(b(e)));var n=Object.keys(e),r=n.map(function(t){return e[t]}),o=n.length;return new ey(t,function(t){if(et.is(t)){for(var r=0;r<o;r++){var i=n[r],u=t[i];if(void 0!==u&&!e[i].is(u))return!1}return!0}return!1},function(t,r){var a=et.validate(t,r);if((0,i.isLeft)(a))return a;for(var f=a.right,p=f,d=[],s=0;s<o;s++){var m=n[s],y=p[m],g=e[m],_=g.validate(y,h(r,m,g,y));if((0,i.isLeft)(_))void 0!==y&&v(d,_.left);else{var b=_.right;b!==y&&(p===f&&(p=u({},f)),p[m]=b)}}return d.length>0?c(d):l(p)},_(r)?d:function(e){for(var t=u({},e),i=0;i<o;i++){var a=n[i],c=e[a];void 0!==c&&(t[a]=r[i].encode(c))}return t},e)}var e_=function(e){function t(t,n,r,i,o,u){var a=e.call(this,t,n,r,i)||this;return a.domain=o,a.codomain=u,a._tag="DictionaryType",a}return o(t,e),t}(p);function eb(e,t,n){var r,o,u,a,p,s,m,y,g=T(e);return g?(r=Object.keys(g),void 0===(a=n)&&(a="{ [K in ".concat(e.name,"]: ").concat(t.name," }")),p=r.length,new e_(a,function(e){return et.is(e)&&r.every(function(n){return t.is(e[n])})},function(e,n){var o=et.validate(e,n);if((0,i.isLeft)(o))return o;for(var u=o.right,a={},f=[],d=!1,s=0;s<p;s++){var m=r[s],y=u[m],g=t.validate(y,h(n,m,t,y));if((0,i.isLeft)(g))v(f,g.left);else{var _=g.right;d=d||_!==y,a[m]=_}}return f.length>0?c(f):l(d||Object.keys(u).length!==p?a:u)},t.encode===d?d:function(e){for(var n={},i=0;i<p;i++){var o=r[i];n[o]=t.encode(e[o])}return n},e,t)):(s=e,void 0===(y=n)&&(y="{ [K in ".concat(s.name,"]: ").concat(t.name," }")),new e_(y,function(e){return et.is(e)?Object.keys(e).every(function(n){return s.is(n)&&t.is(e[n])}):M(t)&&Array.isArray(e)},function(e,n){if(et.is(e)){for(var r={},o=[],u=Object.keys(e),a=u.length,p=!1,d=0;d<a;d++){var m=u[d],y=e[m],g=s.validate(m,h(n,m,s,m));if((0,i.isLeft)(g))v(o,g.left);else{var _=g.right;p=p||_!==m,m=_;var b=t.validate(y,h(n,m,t,y));if((0,i.isLeft)(b))v(o,b.left);else{var S=b.right;p=p||S!==y,r[m]=S}}}return o.length>0?c(o):l(p?r:e)}return M(t)&&Array.isArray(e)?l(e):f(e,n)},s.encode===d&&t.encode===d?d:function(e){for(var n={},r=Object.keys(e),i=r.length,o=0;o<i;o++){var u=r[o];n[String(s.encode(u))]=t.encode(e[u])}return n},s,t))}var eS=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.types=o,u._tag="UnionType",u}return o(t,e),t}(p);function eT(e,t){void 0===t&&(t=I(e));var n=D(e);if(void 0===n||!(e.length>0))return new eS(t,function(t){return e.some(function(e){return e.is(t)})},function(t,n){for(var r=[],o=0;o<e.length;o++){var u=e[o],a=u.validate(t,h(n,String(o),u,t));if(!(0,i.isLeft)(a))return l(a.right);v(r,a.left)}return c(r)},_(e)?d:function(n){for(var r=0;r<e.length;r++){var i=e[r];if(i.is(n))return i.encode(n)}throw Error("no codec found to encode value in union type ".concat(t))},e);var r=n[0],o=n[1],u=o.length,a=function(e){for(var t=0;t<u;t++)if(-1!==o[t].indexOf(e))return t};return new eG(t,function(t){if(et.is(t)){var n=a(t[r]);return void 0!==n&&e[n].is(t)}return!1},function(t,n){var o=et.validate(t,n);if((0,i.isLeft)(o))return o;var u=o.right,c=a(u[r]);if(void 0===c)return f(t,n);var l=e[c];return l.validate(u,h(n,String(c),l,u))},_(e)?d:function(n){var i=a(n[r]);if(void 0!==i)return e[i].encode(n);throw Error("no codec found to encode value in union codec ".concat(t))},e,r)}var eI=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.types=o,u._tag="IntersectionType",u}return o(t,e),t}(p);function eR(e,t){void 0===t&&(t="(".concat(e.map(function(e){return e.name}).join(" & "),")"));var n=e.length;return new eI(t,function(t){return e.every(function(e){return e.is(t)})},0===e.length?l:function(t,r){for(var o=[],u=[],a=0;a<n;a++){var f=e[a],p=f.validate(t,h(r,String(a),f,t));(0,i.isLeft)(p)?v(u,p.left):o.push(p.right)}return u.length>0?c(u):l(R(t,o))},0===e.length?d:function(t){return R(t,e.map(function(e){return e.encode(t)}))},e)}var ew=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.types=o,u._tag="TupleType",u}return o(t,e),t}(p);function eO(e,t){void 0===t&&(t="[".concat(e.map(function(e){return e.name}).join(", "),"]"));var n=e.length;return new ew(t,function(t){return Q.is(t)&&t.length===n&&e.every(function(e,n){return e.is(t[n])})},function(t,r){var o=Q.validate(t,r);if((0,i.isLeft)(o))return o;for(var u=o.right,a=u.length>n?u.slice(0,n):u,f=[],p=0;p<n;p++){var d=u[p],s=e[p],m=s.validate(d,h(r,String(p),s,d));if((0,i.isLeft)(m))v(f,m.left);else{var y=m.right;y!==d&&(a===u&&(a=u.slice()),a[p]=y)}}return f.length>0?c(f):l(a)},_(e)?d:function(t){return e.map(function(e,n){return e.encode(t[n])})},e)}var ex=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.type=o,u._tag="ReadonlyType",u}return o(t,e),t}(p);function eC(e,t){return void 0===t&&(t="Readonly<".concat(e.name,">")),new ex(t,e.is,e.validate,e.encode,e)}var eM=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.type=o,u._tag="ReadonlyArrayType",u}return o(t,e),t}(p);function eE(e,t){void 0===t&&(t="ReadonlyArray<".concat(e.name,">"));var n=em(e);return new eM(t,n.is,n.validate,n.encode,e)}var eP=function(e,t){return eW(ev(e),t)},ek=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.type=o,u._tag="ExactType",u}return o(t,e),t}(p);function eW(e,t){if(void 0===t){var n,r;t=P(e)?"{| ".concat(g(e.props)," |}"):(r=e,"PartialType"===r._tag)?S("{| ".concat(g(e.props)," |}")):"Exact<".concat(e.name,">")}var o=function e(t){switch(t._tag){case"RefinementType":case"ReadonlyType":return e(t.type);case"InterfaceType":case"StrictType":case"PartialType":return t.props;case"IntersectionType":return t.types.reduce(function(t,n){return Object.assign(t,e(n))},{})}}(e);return new ek(t,e.is,function(t,n){var r=et.validate(t,n);if((0,i.isLeft)(r))return r;var u=e.validate(t,n);return(0,i.isLeft)(u)?u:(0,i.right)(w(u.right,o))},function(t){return e.encode(w(t,o))},e)}var eF=function(e){function t(){var t=e.call(this,"Function",function(e){return"function"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="FunctionType",t}return o(t,e),t}(p),eD=new eF,eN=function(e){function t(){var t=e.call(this,"never",function(e){return!1},function(e,t){return f(e,t)},function(){throw Error("cannot encode never")})||this;return t._tag="NeverType",t}return o(t,e),t}(p),eL=new eN,eU=function(e){function t(){var t=e.call(this,"any",function(e){return!0},l,d)||this;return t._tag="AnyType",t}return o(t,e),t}(p),eA=new eU;function ej(e,t,n){return void 0===n&&(n="(".concat(e.name," | ").concat(s(t),")")),new eu(n,function(n){return e.is(n)&&t(n)},function(n,r){var o=e.validate(n,r);if((0,i.isLeft)(o))return o;var u=o.right;return t(u)?l(u):f(u,r)},e.encode,e,t)}var eq=ej(z,Number.isInteger,"Integer"),eG=function(e){function t(t,n,r,i,o,u){var a=e.call(this,t,n,r,i,o)||this;return a.tag=u,a}return o(t,e),t}(eS),eY=function(e,t,n){void 0===n&&(n=I(t));var r=eT(t,n);return r instanceof eG?r:(console.warn("[io-ts] Cannot build a tagged union for ".concat(n,", returning a de-optimized union")),new eG(n,r.is,r.validate,r.encode,t,e))},eB=function(e,t){return{value:e,context:t}},eK=function(e){return[{key:"",type:e}]},eV=et,ez=function(e){function t(){var t=e.call(this,"object",function(e){return null!==e&&"object"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="ObjectType",t}return o(t,e),t}(p),eH=new ez,e$=eb,eX=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.props=o,u._tag="StrictType",u}return o(t,e),t}(p);function eJ(e){return e}function eZ(e){return function(){return e}}},77883:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FORMAT_PLAIN=t.FORMAT_HTML=t.FORMATS=void 0;var n="html";t.FORMAT_HTML=n;var r="plain";t.FORMAT_PLAIN=r,t.FORMATS=[n,r]},779:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.LINE_ENDINGS=void 0,t.LINE_ENDINGS={POSIX:"\n",WIN32:"\r\n"}},36021:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_PLATFORMS=void 0,t.SUPPORTED_PLATFORMS={DARWIN:"darwin",LINUX:"linux",WIN32:"win32"}},90741:function(e,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 n="words";t.UNIT_WORDS=n;var r="word";t.UNIT_WORD=r;var i="sentences";t.UNIT_SENTENCES=i;var o="sentence";t.UNIT_SENTENCE=o;var u="paragraphs";t.UNIT_PARAGRAPHS=u;var a="paragraph";t.UNIT_PARAGRAPH=a,t.UNITS=[n,r,i,o,u,a]},90783:function(e,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(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoremIpsum",{enumerable:!0,get:function(){return a.default}}),t.loremIpsum=void 0;var r,i=n(77883),o=n(90741),u=n(90783),a=(r=n(55548),r&&r.__esModule?r:{default:r}),c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.count,n=void 0===t?1:t,r=e.format,c=void 0===r?i.FORMAT_PLAIN:r,f=e.paragraphLowerBound,l=e.paragraphUpperBound,p=e.random,d=e.sentenceLowerBound,s=e.sentenceUpperBound,m=e.units,h=void 0===m?o.UNIT_SENTENCES:m,v=e.words,y=void 0===v?u.WORDS:v,g=e.suffix,_=new a.default({random:p,sentencesPerParagraph:{max:void 0===l?7:l,min:void 0===f?3:f},words:y,wordsPerSentence:{max:void 0===s?15:s,min:void 0===d?5:d}},c,void 0===g?"":g);switch(h){case o.UNIT_PARAGRAPHS:case o.UNIT_PARAGRAPH:return _.generateParagraphs(n);case o.UNIT_SENTENCES:case o.UNIT_SENTENCE:return _.generateSentences(n);case o.UNIT_WORDS:case o.UNIT_WORD:return _.generateWords(n);default:return""}};t.loremIpsum=c},55548:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(77883),o=n(779),u=(r=n(40928),r&&r.__esModule?r:{default:r}),a=n(23749);function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f=function(){var e,t,n;function r(){var e,t,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.FORMAT_PLAIN,c=arguments.length>2?arguments[2]:void 0;if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),this.format=a,this.suffix=c,e=this,n=void 0,(t="generator")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,-1===i.FORMATS.indexOf(a.toLowerCase()))throw Error("".concat(a," is an invalid format. Please use ").concat(i.FORMATS.join(" or "),"."));this.generator=new u.default(o)}return t=[{key:"getLineEnding",value:function(){return this.suffix?this.suffix:!(0,a.isReactNative)()&&(0,a.isNode)()&&(0,a.isWindows)()?o.LINE_ENDINGS.WIN32:o.LINE_ENDINGS.POSIX}},{key:"formatString",value:function(e){return this.format===i.FORMAT_HTML?"<p>".concat(e,"</p>"):e}},{key:"formatStrings",value:function(e){var t=this;return e.map(function(e){return t.formatString(e)})}},{key:"generateWords",value:function(e){return this.formatString(this.generator.generateRandomWords(e))}},{key:"generateSentences",value:function(e){return this.formatString(this.generator.generateRandomParagraph(e))}},{key:"generateParagraphs",value:function(e){var t=this.generator.generateRandomParagraph.bind(this.generator);return this.formatStrings((0,a.makeArrayOfStrings)(e,t)).join(this.getLineEnding())}}],c(r.prototype,t),n&&c(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}();t.default=f},40928:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(90783),i=n(23749);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(){var e,t,n;function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.sentencesPerParagraph,n=void 0===t?{max:7,min:3}:t,i=e.wordsPerSentence,o=void 0===i?{max:15,min:5}:i,c=e.random,f=(e.seed,e.words),l=void 0===f?r.WORDS:f;if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,a),u(this,"sentencesPerParagraph",void 0),u(this,"wordsPerSentence",void 0),u(this,"random",void 0),u(this,"words",void 0),n.min>n.max)throw Error("Minimum number of sentences per paragraph (".concat(n.min,") cannot exceed maximum (").concat(n.max,")."));if(o.min>o.max)throw Error("Minimum number of words per sentence (".concat(o.min,") cannot exceed maximum (").concat(o.max,")."));this.sentencesPerParagraph=n,this.words=l,this.wordsPerSentence=o,this.random=c||Math.random}return t=[{key:"generateRandomInteger",value:function(e,t){return Math.floor(this.random()*(t-e+1)+e)}},{key:"generateRandomWords",value:function(e){var t=this,n=this.wordsPerSentence,r=n.min,o=n.max,u=e||this.generateRandomInteger(r,o);return(0,i.makeArrayOfLength)(u).reduce(function(e,n){return"".concat(t.pluckRandomWord()," ").concat(e)},"").trim()}},{key:"generateRandomSentence",value:function(e){return"".concat((0,i.capitalize)(this.generateRandomWords(e)),".")}},{key:"generateRandomParagraph",value:function(e){var t=this,n=this.sentencesPerParagraph,r=n.min,o=n.max,u=e||this.generateRandomInteger(r,o);return(0,i.makeArrayOfLength)(u).reduce(function(e,n){return"".concat(t.generateRandomSentence()," ").concat(e)},"").trim()}},{key:"pluckRandomWord",value:function(){var e=this.words.length-1,t=this.generateRandomInteger(0,e);return this.words[t]}}],o(a.prototype,t),n&&o(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}();t.default=a},79998:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){var t=e.trim();return t.charAt(0).toUpperCase()+t.slice(1)};t.default=n},23749:function(e,t,n){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 o.default}}),Object.defineProperty(t,"isWindows",{enumerable:!0,get:function(){return u.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(n(79998)),i=f(n(18077)),o=f(n(66002)),u=f(n(89759)),a=f(n(13385)),c=f(n(74523));function f(e){return e&&e.__esModule?e:{default:e}}},18077:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){return!!e.exports};t.default=n},66002:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){var e=!1;try{e="ReactNative"===navigator.product}catch(t){e=!1}return e};t.default=n},89759:function(e,t,n){var r=n(34406);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(36021),o=function(){var e=!1;try{e=r.platform===i.SUPPORTED_PLATFORMS.WIN32}catch(t){e=!1}return e};t.default=o},13385:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.apply(null,Array(e)).map(function(e,t){return t})};t.default=n},74523:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(13385),r&&r.__esModule?r:{default:r}),o=function(e,t){return(0,i.default)(e).map(function(){return t()})};t.default=o},58831:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowContainer=void 0;var i=n(52322),o=n(2784),u=n(64379),a=function(e){var t=e.childRect,n=e.popoverRect,a=e.position,c=e.arrowColor,f=e.arrowSize,l=e.arrowClassName,p=e.arrowStyle,d=e.className,s=e.children,m=e.style,h=u.useArrowContainer({childRect:t,popoverRect:n,position:a,arrowColor:c,arrowSize:f}),v=h.arrowContainerStyle,y=h.arrowStyle,g=o.useMemo(function(){return r(r({},v),m)},[v,m]),_=o.useMemo(function(){return r(r({},y),p)},[y,p]);return i.jsxs("div",r({className:d,style:g},{children:[i.jsx("div",{style:_,className:l},void 0),s]}),void 0)};t.ArrowContainer=a},19909:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Popover=t.usePopover=t.ArrowContainer=t.useArrowContainer=void 0;var i=n(52322),o=n(2784),u=n(44635),a=n(27574),c=n(61462);Object.defineProperty(t,"usePopover",{enumerable:!0,get:function(){return c.usePopover}});var f=n(70414),l=n(64379);Object.defineProperty(t,"useArrowContainer",{enumerable:!0,get:function(){return l.useArrowContainer}});var p=n(58831);Object.defineProperty(t,"ArrowContainer",{enumerable:!0,get:function(){return p.ArrowContainer}});var d=["top","left","right","bottom"],s=o.forwardRef(function(e,t){var n=e.isOpen,l=e.children,p=e.content,s=e.positions,m=e.align,h=void 0===m?"center":m,v=e.padding,y=void 0===v?0:v,g=e.reposition,_=void 0===g||g,b=e.parentElement,S=void 0===b?window.document.body:b,T=e.boundaryElement,I=e.containerClassName,R=e.containerStyle,w=e.contentLocation,O=e.boundaryInset,x=void 0===O?0:O,C=e.onClickOutside,M=e.clickOutsideCapture,E=void 0!==M&&M,P=f.useMemoizedArray(void 0===s?d:s),k=o.useRef(!1),W=o.useRef(),F=o.useRef(),D=o.useRef(_),N=o.useRef(),L=o.useState({align:h,nudgedLeft:0,nudgedTop:0,position:P[0],padding:y,childRect:a.EMPTY_CLIENT_RECT,popoverRect:a.EMPTY_CLIENT_RECT,parentRect:a.EMPTY_CLIENT_RECT,boundaryRect:a.EMPTY_CLIENT_RECT,boundaryInset:x,violations:a.EMPTY_CLIENT_RECT,hasViolations:!1}),U=L[0],A=L[1],j=o.useCallback(function(e){return A(e)},[]),q=c.usePopover({isOpen:n,childRef:N,containerClassName:void 0===I?"react-tiny-popover-container":I,parentElement:S,boundaryElement:void 0===T?S:T,contentLocation:w,positions:P,align:h,padding:y,boundaryInset:x,reposition:_,onPositionPopover:j}),G=q.positionPopover,Y=q.popoverRef,B=q.scoutRef;o.useLayoutEffect(function(){var e=!0,t=function(){var r,i;if(n&&e){var o=null===(r=null==N?void 0:N.current)||void 0===r?void 0:r.getBoundingClientRect(),u=null===(i=null==Y?void 0:Y.current)||void 0===i?void 0:i.getBoundingClientRect();null==o||null==u||a.rectsAreEqual(o,{top:U.childRect.top,left:U.childRect.left,width:U.childRect.width,height:U.childRect.height,bottom:U.childRect.top+U.childRect.height,right:U.childRect.left+U.childRect.width})&&u.width===U.popoverRect.width&&u.height===U.popoverRect.height&&U.padding===y&&U.align===h&&P===W.current&&w===F.current&&_===D.current||G(),P!==W.current&&(W.current=P),w!==F.current&&(F.current=w),_!==D.current&&(D.current=_),e&&window.requestAnimationFrame(t)}k.current=n};return window.requestAnimationFrame(t),function(){e=!1}},[h,w,n,y,Y,U.align,U.childRect.height,U.childRect.left,U.childRect.top,U.childRect.width,U.padding,U.popoverRect.height,U.popoverRect.width,G,P,_,]),o.useEffect(function(){var e=Y.current;return Object.assign(e.style,R),function(){Object.keys(null!=R?R:{}).forEach(function(t){return delete e.style[t]})}},[R,n,Y]);var K=o.useCallback(function(e){var t,r;!n||(null===(t=Y.current)||void 0===t?void 0:t.contains(e.target))||(null===(r=N.current)||void 0===r?void 0:r.contains(e.target))||null==C||C(e)},[n,C,Y]),V=o.useCallback(function(){N.current&&window.requestAnimationFrame(function(){return G()})},[G]);o.useEffect(function(){var e=S.ownerDocument.body;return e.addEventListener("click",K,E),e.addEventListener("contextmenu",K,E),e.addEventListener("resize",V),function(){e.removeEventListener("click",K,E),e.removeEventListener("contextmenu",K,E),e.removeEventListener("resize",V)}},[E,K,V,S]);var z=o.useCallback(function(e){N.current=e,null!=t&&("object"==typeof t?t.current=e:"function"==typeof t&&t(e))},[t]);return i.jsxs(i.Fragment,{children:[o.cloneElement(l,{ref:z}),n?i.jsx(u.PopoverPortal,r({element:Y.current,scoutElement:B.current,container:S},{children:"function"==typeof p?p(U):p}),void 0):null]},void 0)});t.Popover=o.forwardRef(function(e,t){return"undefined"==typeof window?e.children:i.jsx(s,r({},e,{ref:t}),void 0)})},44635:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PopoverPortal=void 0;var r=n(2784),i=n(28316),o=function(e){var t=e.container,n=e.element,o=e.scoutElement,u=e.children;return r.useLayoutEffect(function(){return t.appendChild(n),t.appendChild(o),function(){t.removeChild(n),t.removeChild(o)}},[t,n,o]),i.createPortal(u,n)};t.PopoverPortal=o},64379:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.useArrowContainer=void 0;var i=n(2784),o=function(e){var t=e.childRect,n=e.popoverRect,o=e.position,u=e.arrowSize,a=e.arrowColor,c=i.useMemo(function(){return{padding:u}},[u]),f=i.useMemo(function(){return r({position:"absolute"},function(){var e=2*u,r=t.top-n.top+t.height/2-e/2,i=t.left-n.left+t.width/2-e/2,c=n.width-u,f=n.height-u;switch(i=(i=i<u?u:i)+e>c?c-e:i,r=Number.isNaN(r=(r=r<u?u:r)+e>f?f-e:r)?0:r,i=Number.isNaN(i)?0:i,o){case"right":return{borderTop:u+"px solid transparent",borderBottom:u+"px solid transparent",borderRight:u+"px solid "+a,left:0,top:r};case"left":return{borderTop:u+"px solid transparent",borderBottom:u+"px solid transparent",borderLeft:u+"px solid "+a,right:0,top:r};case"bottom":return{borderLeft:u+"px solid transparent",borderRight:u+"px solid transparent",borderBottom:u+"px solid "+a,top:0,left:i};case"top":return{borderLeft:u+"px solid transparent",borderRight:u+"px solid transparent",borderTop:u+"px solid "+a,bottom:0,left:i};default:return{display:"hidden"}}}())},[a,u,t.height,t.left,t.top,t.width,n.height,n.left,n.top,n.width,o,]);return{arrowContainerStyle:c,arrowStyle:f}};t.useArrowContainer=o},79601:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useElementRef=void 0;var r=n(2784),i=n(27574),o=function(e,t){var n=r.useRef(),o=r.useMemo(function(){return i.createContainer(t,e)},[e,t]);return n.current=o,n};t.useElementRef=o},70414:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useMemoizedArray=void 0;var r=n(2784),i=function(e){var t=r.useRef(e);return r.useMemo(function(){if(t.current===e)return t.current;if(t.current.length!==e.length)return t.current=e,e;for(var n=0;n<e.length;n+=1)if(e[n]!==t.current[n])return t.current=e,e;return t.current},[e])};t.useMemoizedArray=i},61462:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.usePopover=void 0;var r=n(2784),i=n(27574),o=n(79601),u={position:"fixed",overflow:"visible",top:"0px",left:"0px"},a={position:"fixed",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden"},c=function(e){var t=e.isOpen,n=e.childRef,c=e.positions,f=e.containerClassName,l=e.parentElement,p=e.contentLocation,d=e.align,s=e.padding,m=e.reposition,h=e.boundaryInset,v=e.boundaryElement,y=e.onPositionPopover,g=o.useElementRef(f,u),_=o.useElementRef("react-tiny-popover-scout",a),b=r.useCallback(function(e){var r,o,u=void 0===e?{}:e,a=u.positionIndex,f=void 0===a?0:a,S=u.parentRect,T=void 0===S?l.getBoundingClientRect():S,I=u.childRect,R=void 0===I?null===(r=null==n?void 0:n.current)||void 0===r?void 0:r.getBoundingClientRect():I,w=u.scoutRect,O=void 0===w?null===(o=null==_?void 0:_.current)||void 0===o?void 0:o.getBoundingClientRect():w,x=u.popoverRect,C=void 0===x?g.current.getBoundingClientRect():x,M=u.boundaryRect,E=void 0===M?v===l?T:v.getBoundingClientRect():M;if(R&&T&&t){if(p){var P="function"==typeof p?p({childRect:R,popoverRect:C,parentRect:T,boundaryRect:E,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:h,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1}):p,k=P.top,W=P.left,F=Math.round(T.left+W-O.left),D=Math.round(T.top+k-O.top);g.current.style.transform="translate("+F+"px, "+D+"px)",y({childRect:R,popoverRect:C,parentRect:T,boundaryRect:E,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:h,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1});return}var N=f===c.length,L=N?c[0]:c[f],U=i.getNewPopoverRect({childRect:R,popoverRect:C,boundaryRect:E,position:L,align:d,padding:s,reposition:m},h),A=U.rect;if(U.boundaryViolation&&m&&!N){b({positionIndex:f+1,childRect:R,popoverRect:C,parentRect:T,boundaryRect:E});return}var j=A.top,q=A.left,G=A.width,Y=A.height,B=i.getNudgedPopoverRect(A,E,h),K=B.left,V=B.top,z=j,H=q;m&&!N&&(z=V,H=K),z=Math.round(z-O.top),H=Math.round(H-O.left),g.current.style.transform="translate("+H+"px, "+z+"px)";var $={top:E.top+h-z,left:E.left+h-H,right:H+G-E.right+h,bottom:z+Y-E.bottom+h};y({childRect:R,popoverRect:{top:z,left:H,width:G,height:Y,right:H+G,bottom:z+Y},parentRect:T,boundaryRect:E,position:L,align:d,padding:s,nudgedTop:V-j,nudgedLeft:K-q,boundaryInset:h,violations:{top:$.top<=0?0:$.top,left:$.left<=0?0:$.left,right:$.right<=0?0:$.right,bottom:$.bottom<=0?0:$.bottom},hasViolations:$.top>0||$.left>0||$.right>0||$.bottom>0})}},[l,n,_,g,v,t,p,c,d,s,m,h,y,]);return{positionPopover:b,popoverRef:g,scoutRef:_}};t.usePopover=c},27574:function(e,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};var n=function(e,t){return e===t||(null==e?void 0:e.bottom)===(null==t?void 0:t.bottom)&&(null==e?void 0:e.height)===(null==t?void 0:t.height)&&(null==e?void 0:e.left)===(null==t?void 0:t.left)&&(null==e?void 0:e.right)===(null==t?void 0:t.right)&&(null==e?void 0:e.top)===(null==t?void 0:t.top)&&(null==e?void 0:e.width)===(null==t?void 0:t.width)};t.rectsAreEqual=n;var r=function(e,t){var n=window.document.createElement("div");return t&&(n.className=t),Object.assign(n.style,e),n};t.createContainer=r;var i=function(e,t,n,r,i){var o,u,a=t.left+t.width/2,c=t.top+t.height/2,f=n.width,l=n.height;switch(e){case"left":o=c-l/2,u=t.left-r-f,"start"===i&&(o=t.top),"end"===i&&(o=t.bottom-l);break;case"bottom":o=t.bottom+r,u=a-f/2,"start"===i&&(u=t.left),"end"===i&&(u=t.right-f);break;case"right":o=c-l/2,u=t.right+r,"start"===i&&(o=t.top),"end"===i&&(o=t.bottom-l);break;default:o=t.top-l-r,u=a-f/2,"start"===i&&(u=t.left),"end"===i&&(u=t.right-f)}return{top:o,left:u,width:f,height:l,right:u+f,bottom:o+l}};t.popoverRectForPosition=i;var o=function(e,n){var r=e.position,i=e.align,o=e.childRect,u=e.popoverRect,a=e.boundaryRect,c=e.padding,f=e.reposition,l=t.popoverRectForPosition(r,o,u,c,i),p=f&&("top"===r&&l.top<a.top+n||"left"===r&&l.left<a.left+n||"right"===r&&l.right>a.right-n||"bottom"===r&&l.bottom>a.bottom-n);return{rect:l,boundaryViolation:p}};t.getNewPopoverRect=o;var u=function(e,t,n){var r=t.top+n,i=t.left+n,o=t.right-n,u=t.bottom-n,a=e.top<r?r:e.top;a=a+e.height>u?u-e.height:a;var c=e.left<i?i:e.left;return{top:a,left:c=c+e.width>o?o-e.width:c,width:e.width,height:e.height,right:c+e.width,bottom:a+e.height}};t.getNudgedPopoverRect=u},80734:function(e,t,n){/*!
7
+ `}}function l(e){return o.exact(o.intersection([o.type({id:o.string,label:a.StringOrNull,repeatable:(0,u.withFallback)(o.boolean,!0),json:o.record(o.string,e),status:(0,u.withFallback)(o.boolean,!0)}),o.partial({hash:o.string,format:(0,u.withFallback)(o.keyof(t.CustomTypeFormat),"custom")}),]))}function p(e){return Object.entries(e.json).reduce((e,[,t])=>{let n=Object.entries(t);return e.concat(n)},[])}function d(e,t){let n=Object.entries(e.json).reduce((e,[n,r])=>{let i=Object.entries(r).reduce((e,[n,r])=>{let i=t(n,r);return i?{...e,[n]:i}:e},{});return{...e,[n]:i}},{});return{...e,json:n}}t.StaticCustomType=l(c.StaticSection),t.CustomType=l(c.DynamicSection),t.flattenWidgets=p,t.flattenSections=function(e){return Object.entries(e.json).reduce((e,[,t])=>{let n=Object.entries(t);return e.concat(n)},[])},t.toStatic=function(e,t){let n=Object.entries(e.json).reduce((e,[n,r])=>({...e,[n]:c.Sections.toStatic(r,t)}),{});return{...e,json:n}},t.validateSlices=function(e,t){let n=(function(e){let t=function(e){let t=p(e).filter(([,e])=>"Slices"===e.type),n=t.reduce((e,[,t])=>{let n=Object.entries(t.config&&t.config.choices?t.config.choices:{}).filter(([,e])=>"SharedSlice"===e.type).map(([e])=>e);return e.concat(n)},[]);return n}(e);return function(e){return t.map(e)}})(e)(e=>{let n=t.get(e);if(!n)return e}).filter(Boolean);return n.length>0?(0,i.left)(new f(n)):(0,i.right)(e)},t.collectWidgets=d,t.filterMissingSharedSlices=function(e,t){return d(e,(e,n)=>{if("Slices"===n.type){if(!n.config||!n.config.choices)return n;let r=Object.entries(n.config.choices).reduce((e,[n,r])=>"SharedSlice"!==r.type||t.get(n)?{...e,[n]:r}:e,{}),i={...n.config,choices:r};return{...n,config:i}}return n})},t.flattenCustomTypeFields=function(e){return Object.values(e.json).reduce((e,t)=>({...e,...t}),{})},t.collectSharedSlices=function(e){return Object.entries(e.fields).reduce((e,[,t])=>{var n;return"Slices"===t.type||"Choice"===t.type?{...e,...Object.entries((null===(n=t.config)||void 0===n?void 0:n.choices)||{}).reduce((e,[t,n])=>"SharedSlice"===n.type?{...e,[t]:n}:e,{})}:e},{})}},22453:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Sections=t.DynamicSection=t.StaticSection=t.sectionReader=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(31289),u=n(53039);function a(e){return i.record(o.WidgetKey,e)}t.sectionReader=a,t.StaticSection=a(u.StaticWidget),t.DynamicSection=a(u.DynamicWidget),t.Sections={toStatic(e,t){let n=Object.entries(e).reduce((e,[n,r])=>({...e,[n]:u.Widgets.toStatic(r,t)}),{});return n}}},5480:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiffOperation=void 0,(n=t.DiffOperation||(t.DiffOperation={})).Added="added",n.Removed="removed",n.Updated="updated"},89408:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceComparator=void 0;let r=n(35566),i=n(5480),o=n(62961);t.SliceComparator={compare(e,t){if(!e&&t)return{op:i.DiffOperation.Added,value:t};if(e&&!t)return{op:i.DiffOperation.Removed};let n=function(e,t){let n=r.Objects.zipObjects(e,t);return Object.entries(n).reduce((e,[t,n])=>"variations"===t||(null==n?void 0:n.left)===(null==n?void 0:n.right)?e:{...e,[t]:null==n?void 0:n.right},{})}(e,t),u=r.Objects.zipObjects(e&&r.Arrays.toRecord(e.variations,e=>e.id),t&&r.Arrays.toRecord(t.variations,e=>e.id)),a=Object.entries(u).reduce((e,[t,n])=>{if(!n)return e;let r=o.VariationComparator.compare(n.left,n.right);return r?{...e,[t]:r}:e},{}),c={...n,...r.Objects.isNotEmpty(a)?{variations:a}:{}};if(r.Objects.isNotEmpty(c))return{op:i.DiffOperation.Updated,value:c}}}},62961:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.VariationComparator=void 0;let r=n(35566),i=n(10673),o=n(5480);function u(e,t){let n=r.Objects.zipObjects(e,t),a=Object.entries(n).reduce((e,[t,n])=>{if(JSON.stringify(null==n?void 0:n.left)===JSON.stringify(null==n?void 0:n.right))return e;let r=(()=>{var e,t,r,a,c,f,l;if((null==n?void 0:n.left)||(null==n?void 0:n.right)){if((null==n?void 0:n.left)&&!n.right)return{op:o.DiffOperation.Removed};if(!(null==n?void 0:n.left)&&(null==n?void 0:n.right)){if((null===(e=n.right)||void 0===e?void 0:e.type)===i.GroupFieldType){let p={...n.right,config:{...n.right.config,fields:{}}};return p.config.fields=u(void 0,null===(t=n.right.config)||void 0===t?void 0:t.fields)||{},{op:o.DiffOperation.Added,value:p}}return{op:o.DiffOperation.Added,value:n.right}}if((null===(r=n.right)||void 0===r?void 0:r.type)===i.GroupFieldType){let d={...n.right,config:{...n.right.config,fields:{}}};return d.config.fields=u((null===(a=n.left)||void 0===a?void 0:a.type)===i.GroupFieldType?null===(f=null===(c=n.left)||void 0===c?void 0:c.config)||void 0===f?void 0:f.fields:void 0,null===(l=n.right.config)||void 0===l?void 0:l.fields)||{},{op:o.DiffOperation.Updated,value:d}}return{op:o.DiffOperation.Updated,value:n.right}}})();return r?{...e,[t]:r}:e},{});return r.Objects.isNotEmpty(a)?a:void 0}t.VariationComparator={compare(e,t){if(e&&!t)return{op:o.DiffOperation.Removed};if(!e&&t)return{op:o.DiffOperation.Added,value:t};let n=function(e,t){let n=r.Objects.zipObjects(e,t);return Object.entries(n).reduce((e,[t,n])=>"primary"===t||"items"===t||(null==n?void 0:n.left)===(null==n?void 0:n.right)?e:{...e,[t]:null==n?void 0:n.right},{})}(e,t),i=u(null==e?void 0:e.primary,null==t?void 0:t.primary),a=u(null==e?void 0:e.items,null==t?void 0:t.items),c={...n,...i?{primary:i}:{},...a?{items:a}:{}};if(r.Objects.isNotEmpty(c))return{op:o.DiffOperation.Updated,value:c}}}},83095:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},74702:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(5480),t),(0,r.__exportStar)(n(89408),t),(0,r.__exportStar)(n(62961),t),(0,r.__exportStar)(n(83095),t)},23535:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(17896),t),(0,r.__exportStar)(n(74702),t),(0,r.__exportStar)(n(22453),t),(0,r.__exportStar)(n(99814),t)},10673:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Group=t.GroupConfig=t.NestedGroup=t.NestedGroupConfig=t.GroupFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(31289),u=n(8597),a=n(30961);t.GroupFieldType="Group";let c=e=>i.exact(i.partial({label:u.StringOrNull,repeat:i.boolean,fields:i.record(o.WidgetKey,e)})),f=e=>i.exact(i.intersection([i.type({type:i.literal(t.GroupFieldType)}),i.partial({fieldset:u.StringOrNull,icon:i.string,description:i.string,config:c(e)}),]));t.NestedGroupConfig=c(a.NestableWidget),t.NestedGroup=f(a.NestableWidget),t.GroupConfig=c(i.union([a.NestableWidget,t.NestedGroup])),t.Group=f(i.union([a.NestableWidget,t.NestedGroup]))},63437:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UID=t.UIDConfig=t.UIDFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.UIDFieldType="UID",t.UIDConfig=i.exact(i.partial({label:o.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),t.UID=i.exact(i.intersection([i.type({type:i.literal(t.UIDFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.UIDConfig}),]))},53039:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Widgets=t.FieldType=t.DynamicWidget=t.StaticWidget=t.widgetReader=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(10673),u=n(44613),a=n(30961),c=n(78110),f=n(63437);function l(e){return i.union([f.UID,a.NestableWidget,o.Group,e])}t.widgetReader=l,t.StaticWidget=l(c.StaticSlices),t.DynamicWidget=l(c.DynamicSlices),t.FieldType=i.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,[f.UIDFieldType]:null,[o.GroupFieldType]:null,[c.SlicesFieldType]:null,[c.LegacySlicesFieldType]:null}),t.Widgets={toStatic(e,t){switch(e.type){case"Choice":case"Slices":return c.Slices.toStatic(e,t);default:return e}}}},99814:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(10673),t),(0,r.__exportStar)(n(44613),t),(0,r.__exportStar)(n(77666),t),(0,r.__exportStar)(n(30324),t),(0,r.__exportStar)(n(63437),t),(0,r.__exportStar)(n(53039),t)},66014:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanField=t.BooleanConfig=t.BooleanFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.BooleanFieldType="Boolean",t.BooleanConfig=i.exact(i.partial({label:o.StringOrNull,default_value:i.boolean,placeholder_true:i.string,placeholder_false:i.string})),t.BooleanField=i.exact(i.intersection([i.type({type:i.literal(t.BooleanFieldType)}),i.partial({config:t.BooleanConfig}),]))},2330:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Color=t.ColorConfig=t.ColorFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.ColorFieldType="Color",t.ColorConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string})),t.Color=i.exact(i.intersection([i.type({type:i.literal(t.ColorFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.ColorConfig}),]))},77352:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Date=t.DateConfig=t.DateFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.DateFieldType="Date",t.DateConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,default:i.string})),t.Date=i.exact(i.intersection([i.type({type:i.literal(t.DateFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.DateConfig}),]))},53142:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Embed=t.EmbedConfig=t.EmbedFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.EmbedFieldType="Embed",t.EmbedConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,useAsTitle:i.boolean})),t.Embed=i.exact(i.intersection([i.type({type:i.literal(t.EmbedFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.EmbedConfig}),]))},46068:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPoint=t.GeoPointConfig=t.GeoPointFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.GeoPointFieldType="GeoPoint",t.GeoPointConfig=i.exact(i.partial({label:o.StringOrNull})),t.GeoPoint=i.exact(i.intersection([i.type({type:i.literal(t.GeoPointFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.GeoPointConfig}),]))},65694:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Image=t.ImageConfig=t.Thumbnail=t.ImageFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597),u=(0,r.__importDefault)(n(71747));t.ImageFieldType="Image",t.Thumbnail=i.exact(i.intersection([i.type({name:i.string}),u.default,])),t.ImageConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,constraint:u.default,thumbnails:i.readonlyArray(t.Thumbnail)})),t.Image=i.exact(i.intersection([i.type({type:i.literal(t.ImageFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.ImageConfig}),]))},60337:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationField=t.IntegrationFieldConfig=t.IntegrationFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.IntegrationFieldType="IntegrationFields",t.IntegrationFieldConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,catalog:i.string})),t.IntegrationField=i.exact(i.intersection([i.type({type:i.literal(t.IntegrationFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.IntegrationFieldConfig}),]))},64907:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Link=t.LinkConfig=t.LinkFieldType=void 0;let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(69624),a=n(8597),c=e=>{if(e instanceof Array){let t=e.reduce((e,t)=>e&&"string"==typeof t,!0);if(t)return o.success(e)}},f=e=>{if("string"==typeof e)return o.success([e])},l=new o.Type("MasksArrayString",e=>e instanceof Array,(e,t)=>i.either.chain(o.union([o.array(o.string),o.string]).validate(e,t),n=>c(n)||f(n)||o.failure(e,t)),e=>e);t.LinkFieldType="Link",t.LinkConfig=o.exact(o.partial({label:a.StringOrNull,useAsTitle:o.boolean,placeholder:o.string,select:(0,u.withFallback)(o.union([o.literal("media"),o.literal("document"),o.literal("web"),o.null,]),null),customtypes:o.readonlyArray(o.string),masks:l,tags:l,allowTargetBlank:o.boolean})),t.Link=o.exact(o.intersection([o.type({type:o.literal(t.LinkFieldType)}),o.partial({fieldset:a.StringOrNull,config:t.LinkConfig}),]))},30961:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidget=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(66014),u=n(2330),a=n(77352),c=n(53142),f=n(46068),l=n(65694),p=n(60337),d=n(64907),s=n(16879),m=n(61490),h=n(48483),v=n(44284),y=n(29881),g=n(36732),_=n(48903);t.NestableWidget=i.union([u.Color,o.BooleanField,c.Embed,f.GeoPoint,a.Date,s.Number,m.Range,h.RichText,v.Select,y.Separator,g.Text,_.Timestamp,d.Link,l.Image,p.IntegrationField,])},16879:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Number=t.NumberConfig=t.NumberFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(59054),u=n(8597);t.NumberFieldType="Number",t.NumberConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,min:i.union([i.number,o.NumberFromString]),max:i.union([i.number,o.NumberFromString]),step:i.union([i.number,o.NumberFromString])})),t.Number=i.exact(i.intersection([i.type({type:i.literal(t.NumberFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.NumberConfig}),]))},61490:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Range=t.RangeConfig=t.RangeFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(59054),u=n(8597);t.RangeFieldType="Range",t.RangeConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,min:i.union([i.number,o.NumberFromString]),max:i.union([i.number,o.NumberFromString]),step:i.union([i.number,o.NumberFromString])})),t.Range=i.exact(i.intersection([i.type({type:i.literal(t.RangeFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.RangeConfig}),]))},48483:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichText=t.RichTextConfig=t.RichTextNodeTypeCodec=t.RichTextNodeType=t.DEFAULT_OPTION=t.RichTextFieldType=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(8597),f=(0,r.__importDefault)(n(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",e=>"string"==typeof e,e=>(0,u.pipe)(a.union([a.string,a.null]).decode(e),i.either.map(e=>{if(!e)return t.DEFAULT_OPTION;let n=e.split(",").map(e=>e.trim()),r=n.filter(e=>(0,o.getOrElseW)(()=>void 0)(t.RichTextNodeTypeCodec.decode(e)));return r.length?r.join(","):t.DEFAULT_OPTION})),e=>e),p=e=>{if(!e)return a.success([])},d=e=>{if(e instanceof Object){if(!Object.entries(e).length)return a.success([]);if(e[""])return a.success(e[""].map(e=>e.name));let t=Object.entries(e).reduce((e,[,t])=>e.concat(t.map(e=>e.name)),[]).filter(Boolean);return a.success(t)}},s=e=>{if(e instanceof Array){let t=e.reduce((e,t)=>e&&"string"==typeof t,!0);if(t)return a.success(e)}},m=e=>{if("string"==typeof e)return a.success([e])},h=new a.Type("RichTextLabels",e=>e instanceof Array,(e,t)=>{let n=a.record(a.string,a.readonlyArray(a.record(a.literal("name"),a.string))),r=a.readonlyArray(a.string);return(0,u.pipe)(a.union([n,r,a.string,a.null]).decode(e),i.either.chain(n=>p(n)||s(n)||d(n)||m(n)||a.failure(e,t)))},e=>e);t.RichTextConfig=a.exact(a.partial({label:c.StringOrNull,placeholder:a.string,useAsTitle:a.boolean,single:l,multi:l,imageConstraint:f.default,labels:h,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(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Select=t.SelectConfig=t.SelectFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.SelectFieldType="Select",t.SelectConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,default_value:i.string,options:i.readonlyArray(i.union([i.string,o.StringFromNumber,o.StringFromBoolean]))})),t.Select=i.exact(i.intersection([i.type({type:i.literal(t.SelectFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.SelectConfig}),]))},29881:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Separator=t.SeparatorConfig=t.SeparatorFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.SeparatorFieldType="Separator",t.SeparatorConfig=i.exact(i.partial({label:o.StringOrNull})),t.Separator=i.exact(i.intersection([i.type({type:i.literal(t.SeparatorFieldType)}),i.partial({config:t.SeparatorConfig}),]))},36732:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextConfig=t.TextFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.TextFieldType="Text",t.TextConfig=i.exact(i.partial({label:o.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),t.Text=i.exact(i.intersection([i.type({type:i.literal(t.TextFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.TextConfig}),]))},48903:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.TimestampConfig=t.TimestampFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.TimestampFieldType="Timestamp",t.TimestampConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,default:i.string})),t.Timestamp=i.exact(i.intersection([i.type({type:i.literal(t.TimestampFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.TimestampConfig}),]))},44613:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(66014),t),(0,r.__exportStar)(n(2330),t),(0,r.__exportStar)(n(77352),t),(0,r.__exportStar)(n(53142),t),(0,r.__exportStar)(n(46068),t),(0,r.__exportStar)(n(65694),t),(0,r.__exportStar)(n(60337),t),(0,r.__exportStar)(n(64907),t),(0,r.__exportStar)(n(30961),t),(0,r.__exportStar)(n(16879),t),(0,r.__exportStar)(n(61490),t),(0,r.__exportStar)(n(48483),t),(0,r.__exportStar)(n(44284),t),(0,r.__exportStar)(n(29881),t),(0,r.__exportStar)(n(36732),t),(0,r.__exportStar)(n(48903),t)},71747:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(11621),a=n(8597),c=new o.Type("SideConstraints",e=>!e||"number"==typeof e,(e,t)=>i.either.chain(o.union([o.literal("auto"),o.literal(""),o.Int,u.IntFromString,a.IntFromNumber,a.IntFromPixels,o.null,]).validate(e,t),e=>"auto"===e||""===e?o.success(null):o.success(e)),e=>e),f=o.partial({width:c,height:c});t.default=f},77666:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConstraint=void 0;var i=n(71747);Object.defineProperty(t,"ImageConstraint",{enumerable:!0,get:function(){return r(i).default}})},26417:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isCompositeSlice=t.CompositeSlice=t.CompositeSliceConfig=t.CompositeSliceType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(31289),u=n(8597),a=n(30961);t.CompositeSliceType="Slice",t.CompositeSliceConfig=i.exact(i.partial({label:u.StringOrNull})),t.CompositeSlice=i.exact(i.intersection([i.type({type:i.literal(t.CompositeSliceType)}),i.partial({fieldset:u.StringOrNull,description:i.string,icon:i.string,display:i.string,"non-repeat":i.record(o.WidgetKey,a.NestableWidget),repeat:i.record(o.WidgetKey,a.NestableWidget),config:t.CompositeSliceConfig}),])),t.isCompositeSlice=function(e){return"Slice"===e.type}},97442:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isLegacySlice=t.LegacySlice=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(10673),u=n(30961);t.LegacySlice=i.union([u.NestableWidget,o.NestedGroup]),t.isLegacySlice=function(e){return"Slice"!==e.type&&"SharedSlice"!==e.type}},32233:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicSharedSlice=t.isStaticSharedSlice=t.SharedSlice=t.SharedSliceType=t.Variation=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(69624),u=n(31289),a=n(30961),c=n(19288);t.Variation=i.exact(i.intersection([i.type({id:i.string,name:i.string,description:i.string,imageUrl:(0,o.withFallback)(i.string,"https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format"),docURL:i.string,version:i.string}),i.partial({display:i.string,primary:i.record(u.WidgetKey,c.SlicePrimaryWidget),items:i.record(u.WidgetKey,a.NestableWidget)}),])),t.SharedSliceType="SharedSlice";let f=i.string,l=i.string;t.SharedSlice=i.exact(i.intersection([i.type({id:i.string,type:i.literal(t.SharedSliceType),name:i.string,variations:i.readonlyArray(t.Variation)}),i.partial({description:i.string,legacyPaths:i.record(f,l)}),])),t.isStaticSharedSlice=function(e){return"SharedSlice"===e.type},t.isDynamicSharedSlice=function(e){return"SharedSlice"===e.type}},73194:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceRef=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(32233);t.SharedSliceRef=i.exact(i.type({type:i.literal(o.SharedSliceType)}))},42738:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},19288:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryWidget=t.SlicePrimaryWidget=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(10673),u=n(44613);t.SlicePrimaryWidget=i.union([u.NestableWidget,o.Group]);let a=e=>u.NestableWidget.is(e)||o.Group.is(e);t.isSlicePrimaryWidget=a},78110:function(e,t,n){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=n(98227),i=(0,r.__importStar)(n(87830)),o=n(31289),u=n(8597),a=n(26417),c=n(97442),f=n(32233),l=n(73194);function p(e){return i.exact(i.partial({label:u.StringOrNull,labels:t.SlicesLabels,choices:i.record(o.WidgetKey,i.union([c.LegacySlice,a.CompositeSlice,e]))}))}t.LegacySlicesFieldType="Choice",t.SlicesFieldType="Slices",t.SlicesLabels=i.union([i.record(i.string,i.readonlyArray(i.exact(i.intersection([i.type({name:i.string}),i.partial({display:i.string}),])))),i.null,]),t.slicesConfigReader=p,t.StaticSlicesConfig=p(f.SharedSlice),t.DynamicSlicesConfig=p(l.SharedSliceRef);let d={toStatic(e,t){let n=Object.entries(e.choices||{}).reduce((e,[n,r])=>{if("SharedSlice"!==r.type)return{...e,[n]:r};{let i=t.get(n);return i?{...e,[n]:i}:e}},{});return{...e,choices:n}}};function s(e){return i.exact(i.intersection([i.type({type:i.keyof({[t.SlicesFieldType]:null,[t.LegacySlicesFieldType]:null})}),i.partial({fieldset:u.StringOrNull,config:e}),]))}t.slicesReader=s,t.StaticSlices=s(t.StaticSlicesConfig),t.DynamicSlices=s(t.DynamicSlicesConfig),t.Slices={toStatic:(e,t)=>e.config?{...e,config:d.toStatic(e.config,t)}:e}},51945:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesTypes=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(26417),u=n(32233);t.SlicesTypes=i.keyof({[o.CompositeSliceType]:null,[u.SharedSliceType]:null})},30324:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(26417),t),(0,r.__exportStar)(n(97442),t),(0,r.__exportStar)(n(32233),t),(0,r.__exportStar)(n(73194),t),(0,r.__exportStar)(n(42738),t),(0,r.__exportStar)(n(19288),t),(0,r.__exportStar)(n(78110),t),(0,r.__exportStar)(n(51945),t)},18949:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toRecord=void 0,t.toRecord=function(e,t){return e.reduce((e,n)=>{let r=t(n);return{...e,[r]:n}},{})}},17160:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mapValues=t.isObject=t.withOptionals=t.isNotEmpty=t.zipObjects=void 0;let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830));t.zipObjects=function(e,t){let n=[...new Set(Object.keys(e||{}).concat(Object.keys(t||{}))),];return n.reduce((n,r)=>{let i=null==e?void 0:e[r],o=null==t?void 0:t[r];return{...n,[r]:{left:i,right:o}}},{})},t.isNotEmpty=function(e){return Boolean(Object.keys(e).length)},t.withOptionals=function(e,t){return{...e,...t.reduce((e,[t,n])=>n?{...e,[t]:n}:e,{})}};let u=o.record(o.string,o.unknown);t.isObject=function(e){return(0,i.isRight)(u.decode(e))},t.mapValues=function(e,t){return Object.entries(e).reduce((e,[n,r])=>({...e,[n]:t(r,n)}),{})}},35566:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Objects=t.Arrays=t.HexaColorCode=void 0;let r=n(98227);t.HexaColorCode=(0,r.__importStar)(n(55962)),t.Arrays=(0,r.__importStar)(n(18949)),t.Objects=(0,r.__importStar)(n(17160))},19841:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArray=t.EmptyObject=t.Boolean=t.NumberOrNull=t.Number=t.StringOrNull=t.String=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(35002);t.String=(0,a.withCustomError)(u.string,()=>"The value must be a string"),t.StringOrNull=(0,a.withCustomError)(u.union([u.string,u.null]),()=>"The value must be a string or null"),t.Number=(0,a.withCustomError)(u.number,()=>"The value must be a number"),t.NumberOrNull=(0,a.withCustomError)(u.union([u.number,u.null]),()=>"The value must be a number or null"),t.Boolean=(0,a.withCustomError)(u.boolean,()=>"The value must be a boolean"),t.EmptyObject=u.UnknownRecord.pipe(new u.Type("emptyObject",e=>u.UnknownRecord.is(e),(e,t)=>Object.keys(e).length>0?u.failure(e,t,"The object is not empty."):u.success({}),u.identity)),t.EmptyArray=new u.Type("emptyArray",e=>u.UnknownArray.is(e)&&0===e.length,(e,t)=>(0,o.pipe)(u.UnknownArray.decode(e),i.either.chain(n=>n.length>0?u.failure(e,t,"The array is not empty."):u.success([]))),()=>[])},89394:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(8597);t.default=new u.Type("dateFromString",e=>e instanceof Date,(e,t)=>(0,o.pipe)(a.String.validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e.toISOString())},23954:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("dateFromStringOrNumber",e=>e instanceof Date,(e,t)=>(0,o.pipe)(u.union([u.number,u.string]).validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e)},72113:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("dateFromTsMs",e=>e instanceof Date,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e.getTime())},35541:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArrayOrElse=t.EmptyObjectOrElse=t.NullOrElse=t.DefaultOrElse=void 0;let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(19841),a=e=>t=>new o.Type(`DefaultOrElse<${e.name}, ${t.name}>`,e=>null===e||t.is(e),(n,r)=>(0,i.isRight)(e.validate(n,r))?o.success(null):t.validate(n,r),e=>e?t.encode(e):void 0);t.DefaultOrElse=a;let c=e=>(0,t.DefaultOrElse)(o.null)(e);t.NullOrElse=c;let f=e=>(0,t.DefaultOrElse)(u.EmptyObject)(e);t.EmptyObjectOrElse=f;let l=e=>(0,t.DefaultOrElse)(u.EmptyArray)(e);t.EmptyArrayOrElse=l},62990:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("IntFromNumber",u.Int.is,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(e=>u.Int.is(e)?u.success(e):u.success(Math.round(e)))),u.Int.encode)},64678:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830)),a=/^([0-9]+)px$/;t.default=new u.Type("IntFromPixels",u.Int.is,(e,t)=>(0,o.pipe)(u.string.validate(e,t),(0,i.chain)(n=>{try{let r=n.match(a);if(!r)return u.failure(e,t);let i=parseInt(r[1]);return u.success(i)}catch{return u.failure(e,t)}})),String)},19528:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(35002);t.default=(0,o.withCustomError)((0,o.refineType)(i.string,"nonEmptyString",e=>e.trim().length>0),()=>"The value must be a non-empty string")},89448:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=n(87830),a=(0,r.__importDefault)(n(89793));t.default=new u.Type("nonEmptyStringOrNull",e=>"string"==typeof e||null===e,(e,t)=>(0,o.pipe)(a.default.validate(e,t),(0,i.chain)(e=>"string"==typeof e&&e.length>0?(0,u.success)(e):(0,u.success)(null))),e=>e)},33805:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(35002);t.default=(0,o.nullable)(i.number)},13670:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(19841);t.default=(e,t,n)=>o.Number.pipe(new i.Type("numberInRange",e=>o.Number.is(e),(r,o)=>r>t||r<e?i.failure(r,o,`${n} must be a number between ${e} and ${t}`):i.success(r),i.identity))},32047:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("StringFromInt",u.string.is,(e,t)=>(0,o.pipe)(u.boolean.validate(e,t),(0,i.chain)(e=>u.success(e.toString()))),e=>e)},80990:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("StringFromInt",u.string.is,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(e=>u.success(e.toString()))),e=>e)},89793:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(35002);t.default=(0,o.nullable)(i.string)},38729:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("TrimmedString",u.string.is,(e,t)=>(0,o.pipe)(u.string.validate(e,t),(0,i.chain)(e=>u.success(function(e){let t=0;for(;t<e.length&&e[t]<=" ";)t++;let n=e.length;for(;t<n&&e[n-1]<=" ";)n--;return e.substring(t,n)}(e)))),e=>e)},35002:function(e,t,n){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=n(98227),i=n(9554),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(23284),c=n(47361);t.nullable=function(e){return u.union([e,u.null,u.undefined])},t.refineType=function(e,t,n){return new u.Type(t,e.is,(t,r)=>(0,o.pipe)(e.validate(t,r),i.either.chain(e=>n(e)?u.success(e):u.failure(t,r))),e.encode)},t.filterDouble=function(e){if(""===e)return null;let t=Number(e);return Number.isNaN(t)?null:t},t.formatDateTime=function(e){return e.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(e){return e.toISOString().replace(/T.*/,"")},t.grouped=function(e,t){return e.reduce((e,n,r)=>(r%t==0?e.push([n]):e[Math.floor(r/t)].push(n),e),[])},t.objectToMap=function(e){return new Map(Object.entries(e))},t.isEmpty=function(e){for(let t in e)return!1;return!0},t.addType=function(e,t){return(0,c.mapOutput)(e,e=>({...e,__TYPE__:t}))},t.withCustomError=function(e,t){return(0,a.withValidate)(e,(n,r)=>i.either.mapLeft(e=>e.find(e=>e.message)?e:[{value:n,context:r,message:t(n,r),actual:n},])(e.validate(n,r)))}},8597:function(e,t,n){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=n(98227);(0,r.__exportStar)(n(19841),t);var i=n(89394);Object.defineProperty(t,"DateFromString",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var o=n(23954);Object.defineProperty(t,"DateFromStringOrNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}});var u=n(72113);Object.defineProperty(t,"DateFromTsMs",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}}),(0,r.__exportStar)(n(35541),t),t.Function=(0,r.__importStar)(n(35002));var a=n(62990);Object.defineProperty(t,"IntFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var c=n(64678);Object.defineProperty(t,"IntFromPixels",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var f=n(19528);Object.defineProperty(t,"NonEmptyString",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var l=n(89448);Object.defineProperty(t,"NonEmptyStringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var p=n(33805);Object.defineProperty(t,"NumberOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(p).default}});var d=n(13670);Object.defineProperty(t,"NumberRange",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}});var s=n(32047);Object.defineProperty(t,"StringFromBoolean",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var m=n(80990);Object.defineProperty(t,"StringFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(m).default}});var h=n(89793);Object.defineProperty(t,"StringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(h).default}})},46111:function(e,t,n){n.r(t),n.d(t,{getApplicativeComposition:function(){return a},getApplicativeMonoid:function(){return u}});var r=n(42925),i=n(42275),o=n(67560);function u(e){var t=(0,r.getApplySemigroup)(e);return function(n){return{concat:t(n).concat,empty:e.of(n.empty)}}}function a(e,t){var n=(0,o.getFunctorComposition)(e,t).map,u=(0,r.ap)(e,t);return{map:n,of:function(n){return e.of(t.of(n))},ap:function(e,t){return(0,i.pipe)(e,u(t))}}}},42925:function(e,t,n){n.r(t),n.d(t,{ap:function(){return o},apFirst:function(){return u},apS:function(){return c},apSecond:function(){return a},getApplySemigroup:function(){return f},sequenceS:function(){return s},sequenceT:function(){return d}});var r=n(42275),i=n(97963);function o(e,t){return function(n){return function(r){return e.ap(e.map(r,function(e){return function(n){return t.ap(e,n)}}),n)}}}function u(e){return function(t){return function(n){return e.ap(e.map(n,function(e){return function(){return e}}),t)}}}function a(e){return function(t){return function(n){return e.ap(e.map(n,function(){return function(e){return e}}),t)}}}function c(e){return function(t,n){return function(r){return e.ap(e.map(r,function(e){return function(n){var r;return Object.assign({},e,((r={})[t]=n,r))}}),n)}}}function f(e){return function(t){return{concat:function(n,r){return e.ap(e.map(n,function(e){return function(n){return t.concat(e,n)}}),r)}}}}function l(e,t,n){return function(r){for(var i=Array(n.length+1),o=0;o<n.length;o++)i[o]=n[o];return i[n.length]=r,0===t?e.apply(null,i):l(e,t-1,i)}}var p={1:function(e){return[e]},2:function(e){return function(t){return[e,t]}},3:function(e){return function(t){return function(n){return[e,t,n]}}},4:function(e){return function(t){return function(n){return function(r){return[e,t,n,r]}}}},5:function(e){return function(t){return function(n){return function(r){return function(i){return[e,t,n,r,i]}}}}}};function d(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var o,u=t.length,a=(i.e$.call(p,u)||(p[u]=l(r.tuple,u-1,[])),p[u]),c=e.map(t[0],a),f=1;f<u;f++)c=e.ap(c,t[f]);return c}}function s(e){return function(t){for(var n=Object.keys(t),r=n.length,i=function(e){var t=e.length;switch(t){case 1:return function(t){var n;return(n={})[e[0]]=t,n};case 2:return function(t){return function(n){var r;return(r={})[e[0]]=t,r[e[1]]=n,r}};case 3:return function(t){return function(n){return function(r){var i;return(i={})[e[0]]=t,i[e[1]]=n,i[e[2]]=r,i}}};case 4:return function(t){return function(n){return function(r){return function(i){var o;return(o={})[e[0]]=t,o[e[1]]=n,o[e[2]]=r,o[e[3]]=i,o}}}};case 5:return function(t){return function(n){return function(r){return function(i){return function(o){var u;return(u={})[e[0]]=t,u[e[1]]=n,u[e[2]]=r,u[e[3]]=i,u[e[4]]=o,u}}}}};default:return l(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i={},o=0;o<t;o++)i[e[o]]=n[o];return i},t-1,[])}}(n),o=e.map(t[n[0]],i),u=1;u<r;u++)o=e.ap(o,t[n[u]]);return o}}},1358:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return tB},Alternative:function(){return tz},Applicative:function(){return tA},Apply:function(){return tN},Chain:function(){return tj},ChainRecBreadthFirst:function(){return t9},ChainRecDepthFirst:function(){return t5},Compactable:function(){return t$},Do:function(){return nf},Extend:function(){return tH},Filterable:function(){return tX},FilterableWithIndex:function(){return tJ},Foldable:function(){return tZ},FoldableWithIndex:function(){return tQ},FromEither:function(){return ne},Functor:function(){return tk},FunctorWithIndex:function(){return tD},Monad:function(){return tG},Pointed:function(){return tW},Traversable:function(){return t0},TraversableWithIndex:function(){return t1},URI:function(){return tT},Unfoldable:function(){return tY},Witherable:function(){return t7},Zero:function(){return tK},alt:function(){return tu},altW:function(){return to},ap:function(){return e2},apFirst:function(){return tL},apS:function(){return ns},apSecond:function(){return tU},append:function(){return g},appendW:function(){return _},array:function(){return nb},bind:function(){return nd},bindTo:function(){return nl},chain:function(){return nm},chainFirst:function(){return tq},chainRecBreadthFirst:function(){return t4},chainRecDepthFirst:function(){return t3},chainWithIndex:function(){return F},chop:function(){return eb},chunksOf:function(){return eT},compact:function(){return e9},comprehension:function(){return eR},concat:function(){return eO},concatW:function(){return ew},cons:function(){return ny},copy:function(){return er},deleteAt:function(){return eu},difference:function(){return eM},dropLeft:function(){return H},dropLeftWhile:function(){return X},dropRight:function(){return $},duplicate:function(){return tf},elem:function(){return ey},empty:function(){return nv},every:function(){return no},exists:function(){return na},extend:function(){return tc},filter:function(){return te},filterE:function(){return t6},filterMap:function(){return e4},filterMapWithIndex:function(){return e5},filterWithIndex:function(){return ta},findFirst:function(){return Z},findFirstMap:function(){return Q},findIndex:function(){return J},findLast:function(){return ee},findLastIndex:function(){return en},findLastMap:function(){return et},flap:function(){return tF},flatMap:function(){return e8},flatten:function(){return e7},foldLeft:function(){return M},foldMap:function(){return tl},foldMapWithIndex:function(){return tp},foldRight:function(){return k},fromEither:function(){return R},fromEitherK:function(){return nt},fromOption:function(){return I},fromOptionK:function(){return eI},fromPredicate:function(){return T},getDifferenceMagma:function(){return tP},getEq:function(){return tO},getIntersectionSemigroup:function(){return tE},getMonoid:function(){return tw},getOrd:function(){return tx},getSemigroup:function(){return tR},getShow:function(){return tI},getUnionMonoid:function(){return tM},getUnionSemigroup:function(){return tC},guard:function(){return tV},head:function(){return A},init:function(){return G},insertAt:function(){return ei},intercalate:function(){return nc},intersection:function(){return eC},intersperse:function(){return eh},isEmpty:function(){return m},isNonEmpty:function(){return h},isOutOfBound:function(){return L},last:function(){return j},lefts:function(){return el},let:function(){return np},lookup:function(){return U},makeBy:function(){return b},map:function(){return e1},mapWithIndex:function(){return e3},match:function(){return O},matchLeft:function(){return C},matchLeftW:function(){return x},matchRight:function(){return P},matchRightW:function(){return E},matchW:function(){return w},modifyAt:function(){return ea},of:function(){return eQ},partition:function(){return tt},partitionMap:function(){return tr},partitionMapWithIndex:function(){return ti},partitionWithIndex:function(){return tn},prepend:function(){return v},prependAll:function(){return em},prependToAll:function(){return n_},prependW:function(){return y},range:function(){return nh},reduce:function(){return td},reduceRight:function(){return tm},reduceRightWithIndex:function(){return th},reduceWithIndex:function(){return ts},replicate:function(){return S},reverse:function(){return ec},rights:function(){return ef},rotate:function(){return ev},scanLeft:function(){return W},scanRight:function(){return D},separate:function(){return e6},sequence:function(){return ty},size:function(){return N},snoc:function(){return ng},some:function(){return nu},sort:function(){return ep},sortBy:function(){return e_},spanLeft:function(){return z},splitAt:function(){return eS},tail:function(){return q},takeLeft:function(){return Y},takeLeftWhile:function(){return K},takeRight:function(){return B},traverse:function(){return tv},traverseWithIndex:function(){return tg},unfold:function(){return tS},union:function(){return ex},uniq:function(){return eg},unsafeDeleteAt:function(){return ni},unsafeInsertAt:function(){return nn},unsafeUpdateAt:function(){return nr},unzip:function(){return es},updateAt:function(){return eo},wilt:function(){return tb},wither:function(){return t_},zero:function(){return e0},zip:function(){return function e(t,n){return void 0===n?function(n){return e(n,t)}:ed(t,n,function(e,t){return[e,t]})}},zipWith:function(){return ed}});var r=n(42925),i=n(88543),o=n(25162),u=n(42275),a=n(67560),c=n(97963),f=n(43586),l=n(31583),p=n(34219),d=n(76511),s=n(28957),m=function(e){return 0===e.length},h=f.isNonEmpty,v=f.prepend,y=f.prependW,g=f.append,_=f.appendW,b=function(e,t){return e<=0?[]:f.makeBy(t)(e)},S=function(e,t){return b(e,function(){return t})};function T(e){return function(t){return e(t)?[t]:[]}}var I=function(e){return c.Wi(e)?[]:[e.value]},R=function(e){return c.nM(e)?[]:[e.right]},w=function(e,t){return function(n){return h(n)?t(n):e()}},O=w,x=function(e,t){return function(n){return h(n)?t(f.head(n),f.tail(n)):e()}},C=x,M=C,E=function(e,t){return function(n){return h(n)?t(f.init(n),f.last(n)):e()}},P=E,k=P,F=function(e){return function(t){for(var n=[],r=0;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},W=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}},D=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}},N=function(e){return e.length},L=f.isOutOfBound,U=l.lookup,A=l.head,j=l.last,q=function(e){return h(e)?c.G(f.tail(e)):c.YP},G=function(e){return h(e)?c.G(f.init(e)):c.YP},Y=function(e){return function(t){return L(e,t)?er(t):t.slice(0,e)}},B=function(e){return function(t){return L(e,t)?er(t):0===e?[]:t.slice(-e)}};function K(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];if(!e(i))break;n.push(i)}return n}}var V=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r};function z(e){return function(t){var n,r=eS(V(t,e))(t);return{init:r[0],rest:r[1]}}}var H=function(e){return function(t){return e<=0||m(t)?er(t):e>=t.length?[]:t.slice(e,t.length)}},$=function(e){return function(t){return e<=0||m(t)?er(t):e>=t.length?[]:t.slice(0,t.length-e)}};function X(e){return function(t){return t.slice(V(t,e))}}var J=l.findIndex;function Z(e){return l.findFirst(e)}var Q=l.findFirstMap;function ee(e){return l.findLast(e)}var et=l.findLastMap,en=l.findLastIndex,er=function(e){return e.slice()},ei=function(e,t){return function(n){return e<0||e>n.length?c.YP:c.G(nn(e,t,n))}},eo=function(e,t){return ea(e,function(){return t})},eu=function(e){return function(t){return L(e,t)?c.YP:c.G(ni(e,t))}},ea=function(e,t){return function(n){return L(e,n)?c.YP:c.G(nr(e,t(n[e]),n))}},ec=function(e){return m(e)?[]:e.slice().reverse()},ef=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t},el=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t},ep=function(e){return function(t){return t.length<=1?er(t):t.slice().sort(e.compare)}},ed=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r},es=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},em=function(e){var t=f.prependAll(e);return function(e){return h(e)?t(e):[]}},eh=function(e){var t=f.intersperse(e);return function(e){return h(e)?t(e):er(e)}},ev=function(e){var t=f.rotate(e);return function(e){return h(e)?t(e):er(e)}},ey=l.elem,eg=function(e){var t=f.uniq(e);return function(e){return h(e)?t(e):er(e)}},e_=function(e){var t=f.sortBy(e);return function(e){return h(e)?t(e):er(e)}},eb=function(e){var t=f.chop(e);return function(e){return h(e)?t(e):[]}},eS=function(e){return function(t){return e>=1&&h(t)?f.splitAt(e)(t):m(t)?[er(t),[]]:[[],er(t)]}},eT=function(e){var t=f.chunksOf(e);return function(e){return h(e)?t(e):[]}},eI=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return I(e.apply(void 0,t))}};function eR(e,t,n){void 0===n&&(n=function(){return!0});var r=function(e,i){return h(i)?e8(f.head(i),function(t){return r((0,u.pipe)(e,g(t)),f.tail(i))}):n.apply(void 0,e)?[t.apply(void 0,e)]:[]};return r([],e)}var ew=function(e){return function(t){return m(t)?er(e):m(e)?er(t):t.concat(e)}},eO=ew;function ex(e){var t=f.union(e);return function(n,r){if(void 0===r){var i=ex(e);return function(e){return i(e,n)}}return h(n)&&h(r)?t(r)(n):h(n)?er(n):er(r)}}function eC(e){var t=ey(e);return function(n,r){if(void 0===r){var i=eC(e);return function(e){return i(e,n)}}return n.filter(function(e){return t(e,r)})}}function eM(e){var t=ey(e);return function(n,r){if(void 0===r){var i=eM(e);return function(e){return i(e,n)}}return n.filter(function(e){return!t(e,r)})}}var eE=function(e,t){return(0,u.pipe)(e,e1(t))},eP=function(e,t){return(0,u.pipe)(e,e3(t))},ek=function(e,t){return(0,u.pipe)(e,e2(t))},eF=function(e,t){return(0,u.pipe)(e,te(t))},eW=function(e,t){return(0,u.pipe)(e,e4(t))},eD=function(e,t){return(0,u.pipe)(e,tt(t))},eN=function(e,t){return(0,u.pipe)(e,tr(t))},eL=function(e,t){return(0,u.pipe)(e,tn(t))},eU=function(e,t){return(0,u.pipe)(e,ti(t))},eA=function(e,t){return(0,u.pipe)(e,tu(t))},ej=function(e,t,n){return(0,u.pipe)(e,td(t,n))},eq=function(e){var t=tl(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eG=function(e,t,n){return(0,u.pipe)(e,tm(t,n))},eY=function(e,t,n){return(0,u.pipe)(e,ts(t,n))},eB=function(e){var t=tp(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eK=function(e,t,n){return(0,u.pipe)(e,th(t,n))},eV=function(e,t){return(0,u.pipe)(e,e5(t))},ez=function(e,t){return(0,u.pipe)(e,ta(t))},eH=function(e,t){return(0,u.pipe)(e,tc(t))},e$=function(e){var t=tv(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eX=function(e){var t=tg(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eJ=l._chainRecDepthFirst,eZ=l._chainRecBreadthFirst,eQ=f.of,e0=function(){return[]},e1=function(e){return function(t){return t.map(function(t){return e(t)})}},e2=function(e){return e8(function(t){return(0,u.pipe)(e,e1(t))})},e8=(0,u.dual)(2,function(e,t){return(0,u.pipe)(e,F(function(e,n){return t(n,e)}))}),e7=e8(u.identity),e3=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}},e5=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);c.pC(i)&&n.push(i.value)}return n}},e4=function(e){return e5(function(t,n){return e(n)})},e9=e4(u.identity),e6=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return(0,p.separated)(t,n)},te=function(e){return function(t){return t.filter(e)}},tt=function(e){return tn(function(t,n){return e(n)})},tn=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return(0,p.separated)(n,r)}},tr=function(e){return ti(function(t,n){return e(n)})},ti=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return(0,p.separated)(n,r)}},to=function(e){return function(t){return t.concat(e())}},tu=to,ta=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}},tc=function(e){return function(t){return t.map(function(n,r){return e(t.slice(r))})}},tf=tc(u.identity),tl=l.foldMap,tp=l.foldMapWithIndex,td=l.reduce,ts=l.reduceWithIndex,tm=l.reduceRight,th=l.reduceRightWithIndex,tv=function(e){var t=tg(e);return function(e){return t(function(t,n){return e(n)})}},ty=function(e){return function(t){return ej(t,e.of(e0()),function(t,n){return e.ap(e.map(t,function(e){return function(t){return(0,u.pipe)(e,g(t))}}),n)})}},tg=function(e){return function(t){return ts(e.of(e0()),function(n,r,i){return e.ap(e.map(r,function(e){return function(t){return(0,u.pipe)(e,g(t))}}),t(n,i))})}},t_=function(e){var t=t2(e);return function(e){return function(n){return t(n,e)}}},tb=function(e){var t=t8(e);return function(e){return function(n){return t(n,e)}}},tS=function(e,t){for(var n=[],r=e;;){var i=t(r);if(c.pC(i)){var o=i.value,u=o[0],a=o[1];n.push(u),r=a}else break}return n},tT="Array",tI=l.getShow,tR=function(){return{concat:function(e,t){return e.concat(t)}}},tw=function(){return{concat:tR().concat,empty:[]}},tO=l.getEq,tx=l.getOrd,tC=function(e){var t=ex(e);return{concat:function(e,n){return t(n)(e)}}},tM=function(e){return{concat:tC(e).concat,empty:[]}},tE=function(e){var t=eC(e);return{concat:function(e,n){return t(n)(e)}}},tP=function(e){var t=eM(e);return{concat:function(e,n){return t(n)(e)}}},tk={URI:tT,map:eE},tF=(0,a.flap)(tk),tW={URI:tT,of:eQ},tD={URI:tT,map:eE,mapWithIndex:eP},tN={URI:tT,map:eE,ap:ek},tL=(0,r.apFirst)(tN),tU=(0,r.apSecond)(tN),tA={URI:tT,map:eE,ap:ek,of:eQ},tj={URI:tT,map:eE,ap:ek,chain:e8},tq=(0,i.chainFirst)(tj),tG={URI:tT,map:eE,ap:ek,of:eQ,chain:e8},tY={URI:tT,unfold:tS},tB={URI:tT,map:eE,alt:eA},tK={URI:tT,zero:e0},tV=(0,s.guard)(tK,tW),tz={URI:tT,map:eE,ap:ek,of:eQ,alt:eA,zero:e0},tH={URI:tT,map:eE,extend:eH},t$={URI:tT,compact:e9,separate:e6},tX={URI:tT,map:eE,compact:e9,separate:e6,filter:eF,filterMap:eW,partition:eD,partitionMap:eN},tJ={URI:tT,map:eE,mapWithIndex:eP,compact:e9,separate:e6,filter:eF,filterMap:eW,partition:eD,partitionMap:eN,partitionMapWithIndex:eU,partitionWithIndex:eL,filterMapWithIndex:eV,filterWithIndex:ez},tZ={URI:tT,reduce:ej,foldMap:eq,reduceRight:eG},tQ={URI:tT,reduce:ej,foldMap:eq,reduceRight:eG,reduceWithIndex:eY,foldMapWithIndex:eB,reduceRightWithIndex:eK},t0={URI:tT,map:eE,reduce:ej,foldMap:eq,reduceRight:eG,traverse:e$,sequence:ty},t1={URI:tT,map:eE,mapWithIndex:eP,reduce:ej,foldMap:eq,reduceRight:eG,reduceWithIndex:eY,foldMapWithIndex:eB,reduceRightWithIndex:eK,traverse:e$,sequence:ty,traverseWithIndex:eX},t2=(0,d.witherDefault)(t0,t$),t8=(0,d.wiltDefault)(t0,t$),t7={URI:tT,map:eE,compact:e9,separate:e6,filter:eF,filterMap:eW,partition:eD,partitionMap:eN,reduce:ej,foldMap:eq,reduceRight:eG,traverse:e$,sequence:ty,wither:t2,wilt:t8},t3=l.chainRecDepthFirst,t5={URI:tT,map:eE,ap:ek,chain:e8,chainRec:eJ},t4=l.chainRecBreadthFirst,t9={URI:tT,map:eE,ap:ek,chain:e8,chainRec:eZ},t6=(0,d.filterE)(t7),ne={URI:tT,fromEither:R},nt=(0,o.fromEitherK)(ne),nn=f.unsafeInsertAt,nr=function(e,t,n){return h(n)?f.unsafeUpdateAt(e,t,n):[]},ni=function(e,t){var n=t.slice();return n.splice(e,1),n},no=l.every,nu=function(e){return function(t){return t.some(e)}},na=nu,nc=l.intercalate,nf=eQ(c.F4),nl=(0,a.bindTo)(tk),np=(0,a.let)(tk),nd=(0,i.bind)(tj),ns=(0,r.apS)(tN),nm=e8,nh=f.range,nv=[],ny=f.cons,ng=f.snoc,n_=em,nb={URI:tT,compact:e9,separate:e6,map:eE,ap:ek,of:eQ,chain:e8,filter:eF,filterMap:eW,partition:eD,partitionMap:eN,mapWithIndex:eP,partitionMapWithIndex:eU,partitionWithIndex:eL,filterMapWithIndex:eV,filterWithIndex:ez,alt:eA,zero:e0,unfold:tS,reduce:ej,foldMap:eq,reduceRight:eG,traverse:e$,sequence:ty,reduceWithIndex:eY,foldMapWithIndex:eB,reduceRightWithIndex:eK,traverseWithIndex:eX,extend:eH,wither:t2,wilt:t8}},88543:function(e,t,n){function r(e){var t=i(e);return function(e){return function(n){return t(n,e)}}}function i(e){return function(t,n){return e.chain(t,function(t){return e.map(n(t),function(){return t})})}}function o(e){return function(t,n){return function(r){return e.chain(r,function(r){return e.map(n(r),function(e){var n;return Object.assign({},r,((n={})[t]=e,n))})})}}}n.r(t),n.d(t,{bind:function(){return o},chainFirst:function(){return r},tap:function(){return i}})},56661:function(e,t,n){n.r(t),n.d(t,{tailRec:function(){return r}});var r=function(e,t){for(var n=t(e);"Left"===n._tag;)n=t(n.left);return n.right}},90817:function(e,t,n){n.r(t),n.d(t,{Bifunctor:function(){return E},Contravariant:function(){return M},Functor:function(){return x},URI:function(){return O},bimap:function(){return R},const_:function(){return P},contramap:function(){return T},flap:function(){return C},getApplicative:function(){return y},getApply:function(){return v},getBooleanAlgebra:function(){return h},getBounded:function(){return f},getEq:function(){return a},getHeytingAlgebra:function(){return m},getMonoid:function(){return p},getOrd:function(){return c},getRing:function(){return s},getSemigroup:function(){return l},getSemiring:function(){return d},getShow:function(){return u},make:function(){return o},map:function(){return I},mapLeft:function(){return w}});var r=n(42275),i=n(67560),o=r.unsafeCoerce;function u(e){return{show:function(t){return"make(".concat(e.show(t),")")}}}var a=r.identity,c=r.identity,f=r.identity,l=r.identity,p=r.identity,d=r.identity,s=r.identity,m=r.identity,h=r.identity;function v(e){return{URI:O,_E:void 0,map:_,ap:function(t,n){return o(e.concat(t,n))}}}function y(e){var t=v(e);return{URI:O,_E:void 0,map:t.map,ap:t.ap,of:function(){return o(e.empty)}}}var g=function(e,t){return(0,r.pipe)(e,T(t))},_=function(e,t){return(0,r.pipe)(e,I(t))},b=function(e,t,n){return(0,r.pipe)(e,R(t,n))},S=function(e,t){return(0,r.pipe)(e,w(t))},T=function(){return r.unsafeCoerce},I=function(){return r.unsafeCoerce},R=function(e){return function(t){return o(e(t))}},w=function(e){return function(t){return o(e(t))}},O="Const",x={URI:O,map:_},C=(0,i.flap)(x),M={URI:O,contramap:g},E={URI:O,bimap:b,mapLeft:S},P={URI:O,map:_,contramap:g,bimap:b,mapLeft:S}},81878:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return eu},ApT:function(){return e4},Applicative:function(){return K},Apply:function(){return B},Bifunctor:function(){return er},Chain:function(){return V},ChainRec:function(){return ef},Do:function(){return e0},Extend:function(){return ec},Foldable:function(){return J},FromEither:function(){return ed},Functor:function(){return L},Monad:function(){return z},MonadThrow:function(){return ep},Pointed:function(){return q},Traversable:function(){return ee},URI:function(){return x},alt:function(){return eo},altW:function(){return ei},ap:function(){return Y},apFirst:function(){return eR},apFirstW:function(){return ew},apS:function(){return e3},apSW:function(){return e5},apSecond:function(){return eO},apSecondW:function(){return ex},apW:function(){return G},as:function(){return U},asUnit:function(){return A},bimap:function(){return et},bind:function(){return e8},bindTo:function(){return e1},bindW:function(){return e7},chain:function(){return ti},chainFirst:function(){return to},chainFirstW:function(){return tu},chainNullableK:function(){return eX},chainOptionK:function(){return eF},chainOptionKW:function(){return eW},chainW:function(){return tr},duplicate:function(){return eP},either:function(){return tf},elem:function(){return function e(t){return function(n,r){if(void 0===r){var i=e(t);return function(e){return i(n,e)}}return!eh(r)&&t.equals(n,r.right)}}},exists:function(){return eQ},extend:function(){return ea},filterOrElse:function(){return eq},filterOrElseW:function(){return eG},flap:function(){return eI},flatMap:function(){return h},flatMapNullable:function(){return eA},flatMapOption:function(){return ej},flatten:function(){return eE},flattenW:function(){return eM},fold:function(){return eb},foldMap:function(){return $},foldW:function(){return eg},fromNullable:function(){return eV},fromNullableK:function(){return e$},fromOption:function(){return em},fromOptionK:function(){return ek},fromPredicate:function(){return es},getAltValidation:function(){return D},getApplicativeValidation:function(){return W},getApplyMonoid:function(){return tp},getApplySemigroup:function(){return tl},getCompactable:function(){return P},getEq:function(){return M},getFilterable:function(){return k},getOrElse:function(){return eT},getOrElseW:function(){return eS},getSemigroup:function(){return E},getShow:function(){return C},getValidation:function(){return tm},getValidationMonoid:function(){return ts},getValidationSemigroup:function(){return td},getWitherable:function(){return F},isLeft:function(){return eh},isRight:function(){return ev},left:function(){return s},let:function(){return e2},liftNullable:function(){return eN},liftOption:function(){return eL},map:function(){return N},mapLeft:function(){return en},match:function(){return e_},matchW:function(){return ey},of:function(){return j},orElse:function(){return eK},orElseW:function(){return eB},parseJSON:function(){return ta},reduce:function(){return H},reduceRight:function(){return X},right:function(){return m},sequence:function(){return Q},sequenceArray:function(){return tn},stringifyJSON:function(){return tc},swap:function(){return eY},tap:function(){return eC},throwError:function(){return el},toError:function(){return eZ},toUnion:function(){return eJ},traverse:function(){return Z},traverseArray:function(){return tt},traverseArrayWithIndex:function(){return te},traverseReadonlyArrayWithIndex:function(){return e6},traverseReadonlyNonEmptyArrayWithIndex:function(){return e9},tryCatch:function(){return ez},tryCatchK:function(){return eH}});var r=n(46111),i=n(42925),o=n(88543),u=n(56661),a=n(25162),c=n(42275),f=n(67560),l=n(97963),p=n(34219),d=n(76511),s=l.t$,m=l.F2,h=(0,c.dual)(2,function(e,t){return eh(e)?e:t(e.right)}),v=function(e,t){return(0,c.pipe)(e,N(t))},y=function(e,t){return(0,c.pipe)(e,Y(t))},g=function(e,t,n){return(0,c.pipe)(e,H(t,n))},_=function(e){return function(t,n){var r=$(e);return(0,c.pipe)(t,r(n))}},b=function(e,t,n){return(0,c.pipe)(e,X(t,n))},S=function(e){var t=Z(e);return function(e,n){return(0,c.pipe)(e,t(n))}},T=function(e,t,n){return(0,c.pipe)(e,et(t,n))},I=function(e,t){return(0,c.pipe)(e,en(t))},R=function(e,t){return(0,c.pipe)(e,eo(t))},w=function(e,t){return(0,c.pipe)(e,ea(t))},O=function(e,t){return(0,u.tailRec)(t(e),function(e){return eh(e)?m(s(e.left)):eh(e.right)?s(t(e.right.left)):m(m(e.right.right))})},x="Either",C=function(e,t){return{show:function(n){return eh(n)?"left(".concat(e.show(n.left),")"):"right(".concat(t.show(n.right),")")}}},M=function(e,t){return{equals:function(n,r){return n===r||(eh(n)?eh(r)&&e.equals(n.left,r.left):ev(r)&&t.equals(n.right,r.right))}}},E=function(e){return{concat:function(t,n){return eh(n)?t:eh(t)?n:m(e.concat(t.right,n.right))}}},P=function(e){var t=s(e.empty);return{URI:x,_E:void 0,compact:function(e){return eh(e)?e:"None"===e.right._tag?t:m(e.right.value)},separate:function(e){return eh(e)?(0,p.separated)(e,e):eh(e.right)?(0,p.separated)(m(e.right.left),t):(0,p.separated)(t,m(e.right.right))}}},k=function(e){var t,n=s(e.empty),r=P(e),i=r.compact;return{URI:x,_E:void 0,map:v,compact:i,separate:r.separate,filter:function(e,t){return eh(e)?e:t(e.right)?e:n},filterMap:function(e,t){if(eh(e))return e;var r=t(e.right);return"None"===r._tag?n:m(r.value)},partition:function(e,t){return eh(e)?(0,p.separated)(e,e):t(e.right)?(0,p.separated)(n,m(e.right)):(0,p.separated)(m(e.right),n)},partitionMap:function(e,t){if(eh(e))return(0,p.separated)(e,e);var r=t(e.right);return eh(r)?(0,p.separated)(m(r.left),n):(0,p.separated)(n,m(r.right))}}},F=function(e){var t=k(e),n=P(e);return{URI:x,_E:void 0,map:v,compact:t.compact,separate:t.separate,filter:t.filter,filterMap:t.filterMap,partition:t.partition,partitionMap:t.partitionMap,traverse:S,sequence:Q,reduce:g,foldMap:_,reduceRight:b,wither:(0,d.witherDefault)(ee,n),wilt:(0,d.wiltDefault)(ee,n)}},W=function(e){return{URI:x,_E:void 0,map:v,ap:function(t,n){return eh(t)?eh(n)?s(e.concat(t.left,n.left)):t:eh(n)?n:m(t.right(n.right))},of:j}},D=function(e){return{URI:x,_E:void 0,map:v,alt:function(t,n){if(ev(t))return t;var r=n();return eh(r)?s(e.concat(t.left,r.left)):r}}},N=function(e){return function(t){return eh(t)?t:m(e(t.right))}},L={URI:x,map:v},U=(0,c.dual)(2,(0,f.as)(L)),A=(0,f.asUnit)(L),j=m,q={URI:x,of:j},G=function(e){return function(t){return eh(t)?t:eh(e)?e:m(t.right(e.right))}},Y=G,B={URI:x,map:v,ap:y},K={URI:x,map:v,ap:y,of:j},V={URI:x,map:v,ap:y,chain:h},z={URI:x,map:v,ap:y,of:j,chain:h},H=function(e,t){return function(n){return eh(n)?e:t(e,n.right)}},$=function(e){return function(t){return function(n){return eh(n)?e.empty:t(n.right)}}},X=function(e,t){return function(n){return eh(n)?e:t(n.right,e)}},J={URI:x,reduce:g,foldMap:_,reduceRight:b},Z=function(e){return function(t){return function(n){return eh(n)?e.of(s(n.left)):e.map(t(n.right),m)}}},Q=function(e){return function(t){return eh(t)?e.of(s(t.left)):e.map(t.right,m)}},ee={URI:x,map:v,reduce:g,foldMap:_,reduceRight:b,traverse:S,sequence:Q},et=function(e,t){return function(n){return eh(n)?s(e(n.left)):m(t(n.right))}},en=function(e){return function(t){return eh(t)?s(e(t.left)):t}},er={URI:x,bimap:T,mapLeft:I},ei=function(e){return function(t){return eh(t)?e():t}},eo=ei,eu={URI:x,map:v,alt:R},ea=function(e){return function(t){return eh(t)?t:m(e(t))}},ec={URI:x,map:v,extend:w},ef={URI:x,map:v,ap:y,chain:h,chainRec:O},el=s,ep={URI:x,map:v,ap:y,of:j,chain:h,throwError:el},ed={URI:x,fromEither:c.identity},es=(0,a.fromPredicate)(ed),em=(0,a.fromOption)(ed),eh=l.nM,ev=l.tO,ey=function(e,t){return function(n){return eh(n)?e(n.left):t(n.right)}},eg=ey,e_=ey,eb=e_,eS=function(e){return function(t){return eh(t)?e(t.left):t.right}},eT=eS,eI=(0,f.flap)(L),eR=(0,i.apFirst)(B),ew=eR,eO=(0,i.apSecond)(B),ex=eO,eC=(0,c.dual)(2,o.tap(V)),eM=h(c.identity),eE=eM,eP=ea(c.identity),ek=(0,a.fromOptionK)(ed),eF=(0,a.chainOptionK)(ed,V),eW=eF,eD={fromEither:ed.fromEither},eN=l.uL(eD),eL=l.WE(eD),eU={flatMap:h},eA=l.ny(eD,eU),ej=l.hU(eD,eU),eq=(0,a.filterOrElse)(ed,V),eG=eq,eY=function(e){return eh(e)?m(e.left):s(e.right)},eB=function(e){return function(t){return eh(t)?e(t.left):t}},eK=eB,eV=function(e){return function(t){return null==t?s(e):m(t)}},ez=function(e,t){try{return m(e())}catch(n){return s(t(n))}},eH=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return ez(function(){return e.apply(void 0,n)},t)}},e$=function(e){var t=eV(e);return function(e){return(0,c.flow)(e,t)}},eX=function(e){var t=e$(e);return function(e){return h(t(e))}},eJ=eg(c.identity,c.identity);function eZ(e){return e instanceof Error?e:Error(String(e))}var eQ=function(e){return function(t){return!eh(t)&&e(t.right)}},e0=j(l.F4),e1=(0,f.bindTo)(L),e2=(0,f.let)(L),e8=o.bind(V),e7=e8,e3=(0,i.apS)(B),e5=e3,e4=j(l.Xl),e9=function(e){return function(t){var n=e(0,l.YM(t));if(eh(n))return n;for(var r=[n.right],i=1;i<t.length;i++){var o=e(i,t[i]);if(eh(o))return o;r.push(o.right)}return m(r)}},e6=function(e){var t=e9(e);return function(e){return l.Od(e)?t(e):e4}},te=e6,tt=function(e){return e6(function(t,n){return e(n)})},tn=tt(c.identity),tr=h,ti=h,to=eC,tu=eC;function ta(e,t){return ez(function(){return JSON.parse(e)},t)}var tc=function(e,t){return ez(function(){var t=JSON.stringify(e);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},t)},tf={URI:x,map:v,of:j,ap:y,chain:h,reduce:g,foldMap:_,reduceRight:b,traverse:S,sequence:Q,bimap:T,mapLeft:I,alt:R,extend:w,chainRec:O,throwError:el},tl=(0,i.getApplySemigroup)(B),tp=(0,r.getApplicativeMonoid)(K),td=function(e,t){return(0,i.getApplySemigroup)(W(e))(t)},ts=function(e,t){return(0,r.getApplicativeMonoid)(W(e))(t)};function tm(e){var t=W(e).ap,n=D(e).alt;return{URI:x,_E:void 0,map:v,of:j,chain:h,bimap:T,mapLeft:I,reduce:g,foldMap:_,reduceRight:b,extend:w,traverse:S,sequence:Q,chainRec:O,throwError:el,ap:t,alt:n}}},47797:function(e,t,n){n.r(t),n.d(t,{URI:function(){return i},getMonoid:function(){return u},getSemigroup:function(){return o}});var r=n(42275),i="Endomorphism",o=function(){return{concat:function(e,t){return(0,r.flow)(e,t)}}},u=function(){return{concat:o().concat,empty:r.identity}}},65191:function(e,t,n){n.r(t),n.d(t,{Contravariant:function(){return s},URI:function(){return c},contramap:function(){return a},eq:function(){return y},eqBoolean:function(){return g},eqDate:function(){return S},eqNumber:function(){return b},eqStrict:function(){return f},eqString:function(){return _},fromEquals:function(){return i},getMonoid:function(){return d},getSemigroup:function(){return p},getStructEq:function(){return h},getTupleEq:function(){return m},strictEqual:function(){return v},struct:function(){return o},tuple:function(){return u}});var r=n(42275),i=function(e){return{equals:function(t,n){return t===n||e(t,n)}}},o=function(e){return i(function(t,n){for(var r in e)if(!e[r].equals(t[r],n[r]))return!1;return!0})},u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(function(t,n){return e.every(function(e,r){return e.equals(t[r],n[r])})})},a=function(e){return function(t){return i(function(n,r){return t.equals(e(n),e(r))})}},c="Eq",f={equals:function(e,t){return e===t}},l={equals:function(){return!0}},p=function(){return{concat:function(e,t){return i(function(n,r){return e.equals(n,r)&&t.equals(n,r)})}}},d=function(){return{concat:p().concat,empty:l}},s={URI:c,contramap:function(e,t){return(0,r.pipe)(e,a(t))}},m=u,h=o,v=f.equals,y=s,g=f,_=f,b=f,S={equals:function(e,t){return e.valueOf()===t.valueOf()}}},25162:function(e,t,n){n.r(t),n.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 u},fromOptionK:function(){return c},fromPredicate:function(){return a},tapEither:function(){return m}});var r=n(88543),i=n(42275),o=n(97963);function u(e){return function(t){return function(n){return e.fromEither(o.Wi(n)?o.t$(t()):o.F2(n.value))}}}function a(e){return function(t,n){return function(r){return e.fromEither(t(r)?o.F2(r):o.t$(n(r)))}}}function c(e){var t=u(e);return function(e){var n=t(e);return function(e){return(0,i.flow)(e,n)}}}function f(e,t){var n=c(e);return function(e){var r=n(e);return function(e){return function(n){return t.chain(n,r(e))}}}}function l(e){return function(t){return(0,i.flow)(t,e.fromEither)}}function p(e,t){var n=l(e);return function(e){return function(r){return t.chain(r,n(e))}}}function d(e,t){var n=m(e,t);return function(e){return function(t){return n(t,e)}}}function s(e,t){return function(n,r){return function(i){return t.chain(i,function(t){return e.fromEither(n(t)?o.F2(t):o.t$(r(t)))})}}}function m(e,t){var n=l(e),i=(0,r.tap)(t);return function(e,t){return i(e,n(t))}}},67560:function(e,t,n){n.r(t),n.d(t,{as:function(){return f},asUnit:function(){return l},bindTo:function(){return u},flap:function(){return o},getFunctorComposition:function(){return c},let:function(){return a},map:function(){return i}});var r=n(42275);function i(e,t){return function(n){return function(r){return e.map(r,function(e){return t.map(e,n)})}}}function o(e){return function(t){return function(n){return e.map(n,function(e){return e(t)})}}}function u(e){return function(t){return function(n){return e.map(n,function(e){var n;return(n={})[t]=e,n})}}}function a(e){return function(t,n){return function(r){return e.map(r,function(e){var r;return Object.assign({},e,((r={})[t]=n(e),r))})}}}function c(e,t){var n=i(e,t);return{map:function(e,t){return(0,r.pipe)(e,n(t))}}}function f(e){return function(t,n){return e.map(t,function(){return n})}}function l(e){var t=f(e);return function(e){return t(e,void 0)}}},76113:function(e,t,n){n.r(t),n.d(t,{concatAll:function(){return a},endo:function(){return u},filterFirst:function(){return i},filterSecond:function(){return o},reverse:function(){return r}});var r=function(e){return{concat:function(t,n){return e.concat(n,t)}}},i=function(e){return function(t){return{concat:function(n,r){return e(n)?t.concat(n,r):r}}}},o=function(e){return function(t){return{concat:function(n,r){return e(r)?t.concat(n,r):n}}}},u=function(e){return function(t){return{concat:function(n,r){return t.concat(e(n),e(r))}}}},a=function(e){return function(t){return function(n){return n.reduce(function(t,n){return e.concat(t,n)},t)}}}},55116:function(e,t,n){n.r(t),n.d(t,{Compactable:function(){return e_},Filterable:function(){return eb},Functor:function(){return ey},URI:function(){return et},collect:function(){return g},compact:function(){return z},deleteAt:function(){return T},difference:function(){return eR},elem:function(){return h},empty:function(){return ew},filter:function(){return H},filterMap:function(){return $},filterMapWithIndex:function(){return N},filterWithIndex:function(){return L},flap:function(){return eg},foldMap:function(){return ef},foldMapWithIndex:function(){return es},fromFoldable:function(){return k},getDifferenceMagma:function(){return eo},getEq:function(){return M},getFilterableWithIndex:function(){return eu},getFoldable:function(){return ep},getFoldableWithIndex:function(){return eh},getIntersectionSemigroup:function(){return ei},getMonoid:function(){return E},getShow:function(){return p},getTraversableWithIndex:function(){return ev},getUnionMonoid:function(){return er},getUnionSemigroup:function(){return en},getWitherable:function(){return ea},insertAt:function(){return eO},intersection:function(){return eI},isEmpty:function(){return s},isSubmap:function(){return C},keys:function(){return v},lookup:function(){return x},lookupWithKey:function(){return O},map:function(){return X},mapWithIndex:function(){return J},map_:function(){return ex},member:function(){return m},modifyAt:function(){return R},partition:function(){return Z},partitionMap:function(){return Q},partitionMapWithIndex:function(){return W},partitionWithIndex:function(){return D},pop:function(){return w},reduce:function(){return ec},reduceRight:function(){return el},reduceRightWithIndex:function(){return em},reduceWithIndex:function(){return ed},separate:function(){return ee},singleton:function(){return P},size:function(){return d},toArray:function(){return _},toUnfoldable:function(){return b},union:function(){return eT},updateAt:function(){return I},upsertAt:function(){return S},values:function(){return y}});var r=n(42275),i=n(67560),o=n(97963),u=n(20492),a=n(13512),c=n(34219),f=n(76511),l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},p=a.getShow,d=a.size,s=a.isEmpty,m=a.member,h=a.elem,v=function(e){return function(t){return Array.from(t.keys()).sort(e.compare)}},y=function(e){return function(t){return Array.from(t.values()).sort(e.compare)}};function g(e){var t=v(e);return function(e){return function(n){for(var r=[],i=t(n),o=0;o<i.length;o++){var u=i[o];r.push(e(u,n.get(u)))}return r}}}function _(e){return g(e)(function(e,t){return[e,t]})}function b(e,t){var n=_(e);return function(e){var r=n(e),i=r.length;return t.unfold(0,function(e){return e<i?o.G([r[e],e+1]):o.YP})}}var S=function(e){var t=O(e);return function(e,n){var r=t(e);return function(t){var i=r(t);if(o.Wi(i)){var u=new Map(t);return u.set(e,n),u}if(i.value[1]!==n){var u=new Map(t);return u.set(i.value[0],n),u}return t}}},T=function(e){var t=O(e);return function(e){return function(n){var r=t(e,n);if(o.pC(r)){var i=new Map(n);return i.delete(r.value[0]),i}return n}}},I=function(e){var t=R(e);return function(e,n){return t(e,function(){return n})}},R=function(e){var t=O(e);return function(e,n){return function(r){var i=t(e,r);if(o.Wi(i))return o.YP;var u=new Map(r);return u.set(i.value[0],n(i.value[1])),o.G(u)}}};function w(e){var t=x(e),n=T(e);return function(e){var i=n(e);return function(n){return(0,r.pipe)(t(e,n),u.map(function(e){return[e,i(n)]}))}}}function O(e){return function(t,n){if(void 0===n){var r,i=O(e);return function(e){return i(t,e)}}for(var u=n.entries();!(r=u.next()).done;){var a=r.value,c=a[0],f=a[1];if(e.equals(c,t))return o.G([c,f])}return o.YP}}var x=a.lookup,C=a.isSubmap,M=a.getEq;function E(e,t){var n=O(e);return{concat:function(e,r){if(s(e))return r;if(s(r))return e;for(var i,u=new Map(e),a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=n(f,e);o.pC(p)?u.set(p.value[0],t.concat(p.value[1],l)):u.set(f,l)}return u},empty:new Map}}var P=function(e,t){return new Map([[e,t]])};function k(e,t,n){return function(r){var i=O(e);return n.reduce(r,new Map,function(e,n){var r=n[0],u=n[1],a=i(r,e);return o.pC(a)?e.set(a.value[0],t.concat(a.value[1],u)):e.set(r,u),e})}}var F=function(e,t){for(var n,r=new Map,i=e.entries();!(n=i.next()).done;){var o=n.value,u=o[0],a=o[1];r.set(u,t(u,a))}return r},W=function(e){return function(t){for(var n,r=new Map,i=new Map,u=t.entries();!(n=u.next()).done;){var a=n.value,f=a[0],l=e(f,a[1]);o.nM(l)?r.set(f,l.left):i.set(f,l.right)}return(0,c.separated)(r,i)}};function D(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var u=n.value,a=u[0],f=u[1];e(a,f)?i.set(a,f):r.set(a,f)}return(0,c.separated)(r,i)}}var N=function(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var u=n.value,a=u[0],c=e(a,u[1]);o.pC(c)&&r.set(a,c.value)}return r}};function L(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,u=o[0],a=o[1];e(u,a)&&r.set(u,a)}return r}}var U=function(e,t){return F(e,function(e,n){return t(n)})},A=function(e,t){return Y(e,function(e,n){return t(n)})},j=function(e,t){return B(e,function(e,n){return t(n)})},q=function(e,t){return K(e,function(e,n){return t(n)})},G=function(e,t){return V(e,function(e,n){return t(n)})},Y=function(e,t){return(0,r.pipe)(e,L(t))},B=function(e,t){return(0,r.pipe)(e,N(t))},K=function(e,t){return(0,r.pipe)(e,D(t))},V=function(e,t){return(0,r.pipe)(e,W(t))},z=function(e){for(var t,n=new Map,r=e.entries();!(t=r.next()).done;){var i=t.value,u=i[0],a=i[1];o.pC(a)&&n.set(u,a.value)}return n},H=function(e){return function(t){return A(t,e)}},$=function(e){return function(t){return j(t,e)}},X=function(e){return function(t){return U(t,e)}},J=function(e){return function(t){return F(t,e)}},Z=function(e){return function(t){return q(t,e)}},Q=function(e){return function(t){return G(t,e)}},ee=function(e){for(var t,n=new Map,r=new Map,i=e.entries();!(t=i.next()).done;){var u=t.value,a=u[0],f=u[1];o.nM(f)?n.set(a,f.left):r.set(a,f.right)}return(0,c.separated)(n,r)},et="Map",en=function(e,t){var n=eT(e,t);return{concat:function(e,t){return n(t)(e)}}},er=function(e,t){return{concat:en(e,t).concat,empty:new Map}},ei=function(e,t){var n=eI(e,t);return{concat:function(e,t){return n(t)(e)}}},eo=function(e){return function(){var t=eR(e);return{concat:function(e,n){return t(n)(e)}}}};function eu(){return{URI:et,_E:void 0,map:U,mapWithIndex:F,compact:z,separate:ee,filter:A,filterMap:j,partition:q,partitionMap:G,partitionMapWithIndex:V,partitionWithIndex:K,filterMapWithIndex:B,filterWithIndex:Y}}function ea(e){var t=ev(e);return{URI:et,_E:void 0,map:U,compact:z,separate:ee,filter:A,filterMap:j,partition:q,partitionMap:G,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,traverse:t.traverse,sequence:t.sequence,mapWithIndex:F,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverseWithIndex:t.traverseWithIndex,wilt:(0,f.wiltDefault)(t,e_),wither:(0,f.witherDefault)(t,e_)}}var ec=a.reduce,ef=a.foldMap,el=a.reduceRight,ep=function(e){return l(l({},a.getFoldable(e)),{URI:et})},ed=a.reduceWithIndex,es=a.foldMapWithIndex,em=a.reduceRightWithIndex,eh=function(e){return l(l({},a.getFoldableWithIndex(e)),{URI:et})},ev=function(e){var t=eh(e),n=v(e),r=function(e){return function(t,r){for(var i=e.of(new Map),o=n(t),u=o.length,a=0;a<u;a++)!function(n){var u=o[n],a=t.get(u);i=e.ap(e.map(i,function(e){return function(t){return e.set(u,t)}}),r(u,a))}(a);return i}},i=function(e){var t=r(e);return function(e,n){return t(e,function(e,t){return n(t)})}},o=function(e){var t=r(e);return function(e){return t(e,function(e,t){return t})}};return{URI:et,_E:void 0,map:U,mapWithIndex:F,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:i,sequence:o,traverseWithIndex:r}},ey={URI:et,map:U},eg=(0,i.flap)(ey),e_={URI:et,compact:z,separate:ee},eb={URI:et,map:U,compact:z,separate:ee,filter:A,filterMap:j,partition:q,partitionMap:G},eS=function(e){return new Map(e)},eT=function(e,t){var n=a.union(e,t);return function(e){return function(t){return s(t)?eS(e):s(e)?eS(t):n(e)(t)}}},eI=function(e,t){var n=a.intersection(e,t);return function(e){return function(t){return s(t)||s(e)?new Map:n(e)(t)}}},eR=function(e){var t=a.difference(e);return function(e){return function(n){return s(n)?eS(e):s(e)?eS(n):t(e)(n)}}},ew=new Map,eO=S,ex=eb},96576:function(e,t,n){n.r(t),n.d(t,{concatAll:function(){return d},fold:function(){return _},getDualMonoid:function(){return v},getEndomorphismMonoid:function(){return I},getFunctionMonoid:function(){return T},getJoinMonoid:function(){return y},getMeetMonoid:function(){return g},getStructMonoid:function(){return h},getTupleMonoid:function(){return m},max:function(){return c},min:function(){return a},monoidAll:function(){return b},monoidAny:function(){return S},monoidProduct:function(){return O},monoidString:function(){return R},monoidSum:function(){return w},monoidVoid:function(){return s},reverse:function(){return f},struct:function(){return l},tuple:function(){return p}});var r=n(47797),i=n(42275),o=n(97963),u=n(3291),a=function(e){return{concat:u.min(e).concat,empty:e.top}},c=function(e){return{concat:u.max(e).concat,empty:e.bottom}},f=function(e){return{concat:u.reverse(e).concat,empty:e.empty}},l=function(e){var t={};for(var n in e)o.e$.call(e,n)&&(t[n]=e[n].empty);return{concat:u.struct(e).concat,empty:t}},p=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{concat:u.tuple.apply(u,e).concat,empty:e.map(function(e){return e.empty})}},d=function(e){return u.concatAll(e)(e.empty)},s={concat:u.semigroupVoid.concat,empty:void 0},m=p,h=l,v=f,y=c,g=a,_=d,b={concat:u.semigroupAll.concat,empty:!0},S={concat:u.semigroupAny.concat,empty:!1},T=i.getMonoid,I=function(){return f((0,r.getMonoid)())},R={concat:u.semigroupString.concat,empty:""},w={concat:u.semigroupSum.concat,empty:0},O={concat:u.semigroupProduct.concat,empty:1}},43586:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return ez},Applicative:function(){return eA},Apply:function(){return eN},Chain:function(){return ej},Comonad:function(){return eH},Do:function(){return e$},Foldable:function(){return eY},FoldableWithIndex:function(){return eB},Functor:function(){return ek},FunctorWithIndex:function(){return eD},Monad:function(){return eG},Pointed:function(){return eW},Traversable:function(){return eK},TraversableWithIndex:function(){return eV},URI:function(){return ex},alt:function(){return ep},altW:function(){return el},ap:function(){return ed},apFirst:function(){return eL},apS:function(){return eQ},apSecond:function(){return eU},append:function(){return v},appendW:function(){return h},bind:function(){return eZ},bindTo:function(){return eX},chain:function(){return ti},chainFirst:function(){return eq},chainWithIndex:function(){return z},chop:function(){return H},chunksOf:function(){return X},concat:function(){return P},concatAll:function(){return e5},concatW:function(){return E},cons:function(){return tl},copy:function(){return A},duplicate:function(){return eh},extend:function(){return em},extract:function(){return eO},filter:function(){return tu},filterWithIndex:function(){return ta},flap:function(){return eF},flatMap:function(){return es},flatten:function(){return ev},fold:function(){return ts},foldMap:function(){return V},foldMapWithIndex:function(){return K},fromArray:function(){return R},fromReadonlyNonEmptyArray:function(){return I},getEq:function(){return eE},getSemigroup:function(){return eM},getShow:function(){return eC},getUnionSemigroup:function(){return eP},group:function(){return F},groupBy:function(){return W},groupSort:function(){return to},head:function(){return e0},init:function(){return e8},insertAt:function(){return N},intercalate:function(){return tr},intersperse:function(){return B},isNonEmpty:function(){return p},isOutOfBound:function(){return d},last:function(){return e2},let:function(){return eJ},makeBy:function(){return w},map:function(){return ey},mapWithIndex:function(){return eg},matchLeft:function(){return e4},matchRight:function(){return e9},max:function(){return e3},min:function(){return e7},modifyAt:function(){return U},modifyHead:function(){return e6},modifyLast:function(){return tt},nonEmptyArray:function(){return tm},of:function(){return j},prepend:function(){return m},prependAll:function(){return Y},prependToAll:function(){return td},prependW:function(){return s},range:function(){return x},reduce:function(){return e_},reduceRight:function(){return eS},reduceRightWithIndex:function(){return eT},reduceWithIndex:function(){return eb},replicate:function(){return O},reverse:function(){return k},rotate:function(){return T},sequence:function(){return eR},snoc:function(){return tp},sort:function(){return D},sortBy:function(){return b},splitAt:function(){return $},tail:function(){return e1},traverse:function(){return eI},traverseWithIndex:function(){return ew},unappend:function(){return M},uncons:function(){return tc},union:function(){return S},uniq:function(){return _},unprepend:function(){return C},unsafeInsertAt:function(){return y},unsafeUpdateAt:function(){return g},unsnoc:function(){return tf},unzip:function(){return G},updateAt:function(){return L},updateHead:function(){return te},updateLast:function(){return tn},zip:function(){return function e(t,n){return void 0===n?function(n){return e(n,t)}:q(t,n,function(e,t){return[e,t]})}},zipWith:function(){return q}});var r=n(42925),i=n(88543),o=n(42275),u=n(67560),a=n(97963),c=n(5586),f=n(28350),l=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},p=function(e){return e.length>0},d=function(e,t){return e<0||e>=t.length},s=function(e){return function(t){return l([e],t,!0)}},m=s,h=function(e){return function(t){return l(l([],t,!0),[e],!1)}},v=h,y=function(e,t,n){if(p(n)){var r=I(n);return r.splice(e,0,t),r}return[t]},g=function(e,t,n){var r=I(n);return r[e]=t,r},_=function(e){return function(t){if(1===t.length)return A(t);for(var n=[e0(t)],r=e1(t),i=function(t){n.every(function(n){return!e.equals(n,t)})&&n.push(t)},o=0;o<r.length;o++)i(r[o]);return n}},b=function(e){if(p(e)){var t=(0,c.getMonoid)();return D(e.reduce(t.concat,t.empty))}return A},S=function(e){var t=_(e);return function(e){return function(n){return t((0,o.pipe)(n,P(e)))}}},T=function(e){return function(t){var n=t.length,r=Math.round(e)%n;if(d(Math.abs(r),t)||0===r)return A(t);if(!(r<0))return T(r-n)(t);var i=$(-r)(t),u=i[0],a=i[1];return(0,o.pipe)(a,P(u))}},I=a.r1,R=function(e){return p(e)?a.G(e):a.YP},w=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}},O=function(e){return w(function(){return e})},x=function(e,t){return e<=t?w(function(t){return e+t})(t-e+1):[e]},C=function(e){return[e0(e),e1(e)]},M=function(e){return[e8(e),e2(e)]};function E(e){return function(t){return t.concat(e)}}function P(e,t){return t?e.concat(t):function(t){return t.concat(e)}}var k=function(e){return l([e2(e)],e.slice(0,-1).reverse(),!0)};function F(e){return function(t){var n=t.length;if(0===n)return[];for(var r=[],i=t[0],o=[i],u=1;u<n;u++){var a=t[u];e.equals(a,i)?o.push(a):(r.push(o),o=[i=a])}return r.push(o),r}}var W=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);a.e$.call(n,o)?n[o].push(i):n[o]=[i]}return n}},D=function(e){return function(t){return t.slice().sort(e.compare)}},N=function(e,t){return function(n){return e<0||e>n.length?a.YP:a.G(y(e,t,n))}},L=function(e,t){return U(e,function(){return t})},U=function(e,t){return function(n){return d(e,n)?a.YP:a.G(g(e,t(n[e]),n))}},A=I,j=function(e){return[e]},q=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r},G=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},Y=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}},B=function(e){return function(t){var n=e1(t);return p(n)?(0,o.pipe)(n,Y(e),m(e0(t))):A(t)}},K=f.foldMapWithIndex,V=f.foldMap,z=function(e){return function(t){for(var n=I(e(0,e0(t))),r=1;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},H=function(e){return function(t){for(var n=e(t),r=n[0],i=n[1],o=[r],u=i;p(u);){var a=e(u),c=a[0],f=a[1];o.push(c),u=f}return o}},$=function(e){return function(t){var n=Math.max(1,e);return n>=t.length?[A(t),[]]:[(0,o.pipe)(t.slice(1,n),m(e0(t))),t.slice(n)]}},X=function(e){return H($(e))},J=function(e,t){return(0,o.pipe)(e,ey(t))},Z=function(e,t){return(0,o.pipe)(e,eg(t))},Q=function(e,t){return(0,o.pipe)(e,ed(t))},ee=function(e,t){return(0,o.pipe)(e,em(t))},et=function(e,t,n){return(0,o.pipe)(e,e_(t,n))},en=function(e){var t=V(e);return function(e,n){return(0,o.pipe)(e,t(n))}},er=function(e,t,n){return(0,o.pipe)(e,eS(t,n))},ei=function(e){var t=eI(e);return function(e,n){return(0,o.pipe)(e,t(n))}},eo=function(e,t){return(0,o.pipe)(e,ep(t))},eu=function(e,t,n){return(0,o.pipe)(e,eb(t,n))},ea=function(e){var t=K(e);return function(e,n){return(0,o.pipe)(e,t(n))}},ec=function(e,t,n){return(0,o.pipe)(e,eT(t,n))},ef=function(e){var t=ew(e);return function(e,n){return(0,o.pipe)(e,t(n))}},el=function(e){return function(t){return(0,o.pipe)(t,E(e()))}},ep=el,ed=function(e){return es(function(t){return(0,o.pipe)(e,ey(t))})},es=(0,o.dual)(2,function(e,t){return(0,o.pipe)(e,z(function(e,n){return t(n,e)}))}),em=function(e){return function(t){for(var n=e1(t),r=[e(t)];p(n);)r.push(e(n)),n=e1(n);return r}},eh=em(o.identity),ev=es(o.identity),ey=function(e){return eg(function(t,n){return e(n)})},eg=function(e){return function(t){for(var n=[e(0,e0(t))],r=1;r<t.length;r++)n.push(e(r,t[r]));return n}},e_=f.reduce,eb=f.reduceWithIndex,eS=f.reduceRight,eT=f.reduceRightWithIndex,eI=function(e){var t=ew(e);return function(e){return t(function(t,n){return e(n)})}},eR=function(e){return ew(e)(function(e,t){return t})},ew=function(e){return function(t){return function(n){for(var r=e.map(t(0,e0(n)),j),i=1;i<n.length;i++)r=e.ap(e.map(r,function(e){return function(t){return(0,o.pipe)(e,v(t))}}),t(i,n[i]));return r}}},eO=f.head,ex="NonEmptyArray",eC=f.getShow,eM=function(){return{concat:P}},eE=f.getEq,eP=function(e){var t=S(e);return{concat:function(e,n){return t(n)(e)}}},ek={URI:ex,map:J},eF=(0,u.flap)(ek),eW={URI:ex,of:j},eD={URI:ex,map:J,mapWithIndex:Z},eN={URI:ex,map:J,ap:Q},eL=(0,r.apFirst)(eN),eU=(0,r.apSecond)(eN),eA={URI:ex,map:J,ap:Q,of:j},ej={URI:ex,map:J,ap:Q,chain:es},eq=(0,i.chainFirst)(ej),eG={URI:ex,map:J,ap:Q,of:j,chain:es},eY={URI:ex,reduce:et,foldMap:en,reduceRight:er},eB={URI:ex,reduce:et,foldMap:en,reduceRight:er,reduceWithIndex:eu,foldMapWithIndex:ea,reduceRightWithIndex:ec},eK={URI:ex,map:J,reduce:et,foldMap:en,reduceRight:er,traverse:ei,sequence:eR},eV={URI:ex,map:J,mapWithIndex:Z,reduce:et,foldMap:en,reduceRight:er,traverse:ei,sequence:eR,reduceWithIndex:eu,foldMapWithIndex:ea,reduceRightWithIndex:ec,traverseWithIndex:ef},ez={URI:ex,map:J,alt:eo},eH={URI:ex,map:J,extend:ee,extract:eO},e$=j(a.F4),eX=(0,u.bindTo)(ek),eJ=(0,u.let)(ek),eZ=(0,i.bind)(ej),eQ=(0,r.apS)(eN),e0=f.head,e1=function(e){return e.slice(1)},e2=f.last,e8=function(e){return e.slice(0,-1)},e7=f.min,e3=f.max,e5=function(e){return function(t){return t.reduce(e.concat)}},e4=function(e){return function(t){return e(e0(t),e1(t))}},e9=function(e){return function(t){return e(e8(t),e2(t))}},e6=function(e){return function(t){return l([e(e0(t))],e1(t),!0)}},te=function(e){return e6(function(){return e})},tt=function(e){return function(t){return(0,o.pipe)(e8(t),v(e(e2(t))))}},tn=function(e){return tt(function(){return e})},tr=f.intercalate,ti=es;function to(e){var t=D(e),n=F(e);return function(e){return p(e)?n(t(e)):[]}}function tu(e){return ta(function(t,n){return e(n)})}var ta=function(e){return function(t){return R(t.filter(function(t,n){return e(n,t)}))}},tc=C,tf=M;function tl(e,t){return void 0===t?m(e):(0,o.pipe)(t,m(e))}var tp=function(e,t){return(0,o.pipe)(e,v(t))},td=Y,ts=f.concatAll,tm={URI:ex,of:j,map:J,mapWithIndex:Z,ap:Q,chain:es,extend:ee,extract:eO,reduce:et,foldMap:en,reduceRight:er,traverse:ei,sequence:eR,reduceWithIndex:eu,foldMapWithIndex:ea,reduceRightWithIndex:ec,traverseWithIndex:ef,alt:eo}},20492:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return en},Alternative:function(){return eu},ApT:function(){return e4},Applicative:function(){return K},Apply:function(){return B},Chain:function(){return z},Compactable:function(){return ed},Do:function(){return e2},Extend:function(){return ec},Filterable:function(){return ey},Foldable:function(){return Z},FromEither:function(){return eM},Functor:function(){return U},Monad:function(){return H},MonadThrow:function(){return ex},Pointed:function(){return G},Traversable:function(){return eb},URI:function(){return k},Witherable:function(){return ew},Zero:function(){return ei},alt:function(){return et},altW:function(){return ee},ap:function(){return Y},apFirst:function(){return eA},apS:function(){return e5},apSecond:function(){return ej},as:function(){return A},asUnit:function(){return j},bind:function(){return e3},bindTo:function(){return e8},chain:function(){return tr},chainEitherK:function(){return eV},chainFirst:function(){return ti},chainFirstEitherK:function(){return ez},chainNullableK:function(){return eZ},compact:function(){return ef},duplicate:function(){return eB},elem:function(){return function e(t){return function(n,r){if(void 0===r){var i=e(t);return function(e){return i(n,e)}}return!eP(r)&&t.equals(n,r.value)}}},exists:function(){return e1},extend:function(){return ea},filter:function(){return es},filterMap:function(){return em},flap:function(){return eU},flatMap:function(){return V},flatten:function(){return eq},fold:function(){return eD},foldMap:function(){return X},foldW:function(){return eF},fromEither:function(){return eC},fromEitherK:function(){return eK},fromNullable:function(){return eH},fromNullableK:function(){return eJ},fromPredicate:function(){return y},getApplyMonoid:function(){return tf},getApplySemigroup:function(){return tc},getEq:function(){return W},getFirstMonoid:function(){return tl},getLastMonoid:function(){return tp},getLeft:function(){return g},getMonoid:function(){return N},getOrElse:function(){return eL},getOrElseW:function(){return eN},getOrd:function(){return D},getRefinement:function(){return to},getRight:function(){return _},getShow:function(){return F},guard:function(){return eo},isNone:function(){return eP},isSome:function(){return eE},let:function(){return e7},map:function(){return L},mapNullable:function(){return tu},match:function(){return eW},matchW:function(){return ek},none:function(){return h},of:function(){return q},option:function(){return ta},orElse:function(){return Q},partition:function(){return eh},partitionMap:function(){return ev},reduce:function(){return $},reduceRight:function(){return J},separate:function(){return ep},sequence:function(){return e_},sequenceArray:function(){return tn},some:function(){return v},tap:function(){return eG},tapEither:function(){return eY},throwError:function(){return eO},toNullable:function(){return eQ},toUndefined:function(){return e0},traverse:function(){return eg},traverseArray:function(){return tt},traverseArrayWithIndex:function(){return te},traverseReadonlyArrayWithIndex:function(){return e6},traverseReadonlyNonEmptyArrayWithIndex:function(){return e9},tryCatch:function(){return e$},tryCatchK:function(){return eX},wilt:function(){return eR},wither:function(){return eI},zero:function(){return er}});var r=n(46111),i=n(42925),o=n(88543),u=n(25162),a=n(42275),c=n(67560),f=n(97963),l=n(88491),p=n(3291),d=n(34219),s=n(76511),m=n(28957),h=f.YP,v=f.G;function y(e){return function(t){return e(t)?v(t):h}}var g=function(e){return"Right"===e._tag?h:v(e.left)},_=function(e){return"Left"===e._tag?h:v(e.right)},b=function(e,t){return(0,a.pipe)(e,L(t))},S=function(e,t){return(0,a.pipe)(e,Y(t))},T=function(e,t,n){return(0,a.pipe)(e,$(t,n))},I=function(e){var t=X(e);return function(e,n){return(0,a.pipe)(e,t(n))}},R=function(e,t,n){return(0,a.pipe)(e,J(t,n))},w=function(e){var t=eg(e);return function(e,n){return(0,a.pipe)(e,t(n))}},O=function(e,t){return(0,a.pipe)(e,et(t))},x=function(e,t){return(0,a.pipe)(e,es(t))},C=function(e,t){return(0,a.pipe)(e,em(t))},M=function(e,t){return(0,a.pipe)(e,ea(t))},E=function(e,t){return(0,a.pipe)(e,eh(t))},P=function(e,t){return(0,a.pipe)(e,ev(t))},k="Option",F=function(e){return{show:function(t){return eP(t)?"none":"some(".concat(e.show(t.value),")")}}},W=function(e){return{equals:function(t,n){return t===n||(eP(t)?eP(n):!eP(n)&&e.equals(t.value,n.value))}}},D=function(e){return{equals:W(e).equals,compare:function(t,n){return t===n?0:eE(t)?eE(n)?e.compare(t.value,n.value):1:-1}}},N=function(e){return{concat:function(t,n){return eP(t)?n:eP(n)?t:v(e.concat(t.value,n.value))},empty:h}},L=function(e){return function(t){return eP(t)?h:v(e(t.value))}},U={URI:k,map:b},A=(0,a.dual)(2,(0,c.as)(U)),j=(0,c.asUnit)(U),q=v,G={URI:k,of:q},Y=function(e){return function(t){return eP(t)?h:eP(e)?h:v(t.value(e.value))}},B={URI:k,map:b,ap:S},K={URI:k,map:b,ap:S,of:q},V=(0,a.dual)(2,function(e,t){return eP(e)?h:t(e.value)}),z={URI:k,map:b,ap:S,chain:V},H={URI:k,map:b,ap:S,of:q,chain:V},$=function(e,t){return function(n){return eP(n)?e:t(e,n.value)}},X=function(e){return function(t){return function(n){return eP(n)?e.empty:t(n.value)}}},J=function(e,t){return function(n){return eP(n)?e:t(n.value,e)}},Z={URI:k,reduce:T,foldMap:I,reduceRight:R},Q=(0,a.dual)(2,function(e,t){return eP(e)?t():e}),ee=Q,et=Q,en={URI:k,map:b,alt:O},er=function(){return h},ei={URI:k,zero:er},eo=(0,m.guard)(ei,G),eu={URI:k,map:b,ap:S,of:q,alt:O,zero:er},ea=function(e){return function(t){return eP(t)?h:v(e(t))}},ec={URI:k,map:b,extend:M},ef=V(a.identity),el=(0,d.separated)(h,h),ep=function(e){return eP(e)?el:(0,d.separated)(g(e.value),_(e.value))},ed={URI:k,compact:ef,separate:ep},es=function(e){return function(t){return eP(t)?h:e(t.value)?t:h}},em=function(e){return function(t){return eP(t)?h:e(t.value)}},eh=function(e){return function(t){return(0,d.separated)(x(t,(0,l.not)(e)),x(t,e))}},ev=function(e){return(0,a.flow)(L(e),ep)},ey={URI:k,map:b,compact:ef,separate:ep,filter:x,filterMap:C,partition:E,partitionMap:P},eg=function(e){return function(t){return function(n){return eP(n)?e.of(h):e.map(t(n.value),v)}}},e_=function(e){return function(t){return eP(t)?e.of(h):e.map(t.value,v)}},eb={URI:k,map:b,reduce:T,foldMap:I,reduceRight:R,traverse:w,sequence:e_},eS=(0,s.witherDefault)(eb,ed),eT=(0,s.wiltDefault)(eb,ed),eI=function(e){var t=eS(e);return function(e){return function(n){return t(n,e)}}},eR=function(e){var t=eT(e);return function(e){return function(n){return t(n,e)}}},ew={URI:k,map:b,reduce:T,foldMap:I,reduceRight:R,traverse:w,sequence:e_,compact:ef,separate:ep,filter:x,filterMap:C,partition:E,partitionMap:P,wither:eS,wilt:eT},eO=function(){return h},ex={URI:k,map:b,ap:S,of:q,chain:V,throwError:eO},eC=_,eM={URI:k,fromEither:eC},eE=f.pC,eP=function(e){return"None"===e._tag},ek=function(e,t){return function(n){return eP(n)?e():t(n.value)}},eF=ek,eW=ek,eD=eW,eN=function(e){return function(t){return eP(t)?e():t.value}},eL=eN,eU=(0,c.flap)(U),eA=(0,i.apFirst)(B),ej=(0,i.apSecond)(B),eq=ef,eG=(0,a.dual)(2,o.tap(z)),eY=(0,a.dual)(2,(0,u.tapEither)(eM,z)),eB=ea(a.identity),eK=(0,u.fromEitherK)(eM),eV=(0,u.chainEitherK)(eM,z),ez=eY,eH=function(e){return null==e?h:v(e)},e$=function(e){try{return v(e())}catch(t){return h}},eX=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e$(function(){return e.apply(void 0,t)})}},eJ=function(e){return(0,a.flow)(e,eH)},eZ=function(e){return function(t){return eP(t)?h:eH(e(t.value))}},eQ=eW(a.constNull,a.identity),e0=eW(a.constUndefined,a.identity),e1=function(e){return function(t){return!eP(t)&&e(t.value)}},e2=q(f.F4),e8=(0,c.bindTo)(U),e7=(0,c.let)(U),e3=o.bind(z),e5=(0,i.apS)(B),e4=q(f.Xl),e9=function(e){return function(t){var n=e(0,f.YM(t));if(eP(n))return h;for(var r=[n.value],i=1;i<t.length;i++){var o=e(i,t[i]);if(eP(o))return h;r.push(o.value)}return v(r)}},e6=function(e){var t=e9(e);return function(e){return f.Od(e)?t(e):e4}},te=e6,tt=function(e){return e6(function(t,n){return e(n)})},tn=tt(a.identity),tr=V,ti=eG;function to(e){return function(t){return eE(e(t))}}var tu=eZ,ta={URI:k,map:b,of:q,ap:S,chain:V,reduce:T,foldMap:I,reduceRight:R,traverse:w,sequence:e_,zero:er,alt:O,extend:M,compact:ef,separate:ep,filter:x,filterMap:C,partition:E,partitionMap:P,wither:eS,wilt:eT,throwError:eO},tc=(0,i.getApplySemigroup)(B),tf=(0,r.getApplicativeMonoid)(K),tl=function(){return N((0,p.first)())},tp=function(){return N((0,p.last)())}},5586:function(e,t,n){n.r(t),n.d(t,{Contravariant:function(){return s},URI:function(){return l},between:function(){return I},clamp:function(){return T},contramap:function(){return f},equals:function(){return h},equalsDefault:function(){return o},fromCompare:function(){return u},geq:function(){return _},getDualOrd:function(){return w},getMonoid:function(){return d},getSemigroup:function(){return p},getTupleOrd:function(){return R},gt:function(){return y},leq:function(){return g},lt:function(){return v},max:function(){return S},min:function(){return b},ord:function(){return O},ordBoolean:function(){return C},ordDate:function(){return P},ordNumber:function(){return E},ordString:function(){return M},reverse:function(){return c},trivial:function(){return m},tuple:function(){return a}});var r=n(65191),i=n(42275),o=function(e){return function(t,n){return t===n||0===e(t,n)}},u=function(e){return{equals:o(e),compare:function(t,n){return t===n?0:e(t,n)}}},a=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u(function(t,n){for(var r=0;r<e.length-1;r++){var i=e[r].compare(t[r],n[r]);if(0!==i)return i}return e[r].compare(t[r],n[r])})},c=function(e){return u(function(t,n){return e.compare(n,t)})},f=function(e){return function(t){return u(function(n,r){return t.compare(e(n),e(r))})}},l="Ord",p=function(){return{concat:function(e,t){return u(function(n,r){var i=e.compare(n,r);return 0!==i?i:t.compare(n,r)})}}},d=function(){return{concat:p().concat,empty:u(function(){return 0})}},s={URI:l,contramap:function(e,t){return(0,i.pipe)(e,f(t))}},m={equals:i.constTrue,compare:(0,i.constant)(0)},h=function(e){return function(t){return function(n){return n===t||0===e.compare(n,t)}}},v=function(e){return function(t,n){return -1===e.compare(t,n)}},y=function(e){return function(t,n){return 1===e.compare(t,n)}},g=function(e){return function(t,n){return 1!==e.compare(t,n)}},_=function(e){return function(t,n){return -1!==e.compare(t,n)}},b=function(e){return function(t,n){return t===n||1>e.compare(t,n)?t:n}},S=function(e){return function(t,n){return t===n||e.compare(t,n)>-1?t:n}},T=function(e){var t=b(e),n=S(e);return function(e,r){return function(i){return n(t(i,r),e)}}},I=function(e){var t=v(e),n=y(e);return function(e,r){return function(i){return!(t(i,e)||n(i,r))}}},R=a,w=c,O=s,x={equals:r.eqStrict.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},C=x,M=x,E=x,P=(0,i.pipe)(E,f(function(e){return e.valueOf()}))},88491:function(e,t,n){n.r(t),n.d(t,{Contravariant:function(){return l},URI:function(){return o},and:function(){return s},contramap:function(){return i},getMonoidAll:function(){return f},getMonoidAny:function(){return a},getSemigroupAll:function(){return c},getSemigroupAny:function(){return u},not:function(){return p},or:function(){return d}});var r=n(42275),i=function(e){return function(t){return(0,r.flow)(e,t)}},o="Predicate",u=function(){return{concat:function(e,t){return(0,r.pipe)(e,d(t))}}},a=function(){return{concat:u().concat,empty:r.constFalse}},c=function(){return{concat:function(e,t){return(0,r.pipe)(e,s(t))}}},f=function(){return{concat:c().concat,empty:r.constTrue}},l={URI:o,contramap:function(e,t){return(0,r.pipe)(e,i(t))}},p=function(e){return function(t){return!e(t)}},d=function(e){return function(t){return function(n){return t(n)||e(n)}}},s=function(e){return function(t){return function(n){return t(n)&&e(n)}}}},31583:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return tK},Alternative:function(){return tH},Applicative:function(){return tj},Apply:function(){return tL},Chain:function(){return tq},ChainRecBreadthFirst:function(){return t5},ChainRecDepthFirst:function(){return t7},Compactable:function(){return tX},Do:function(){return ns},Extend:function(){return t$},Filterable:function(){return tJ},FilterableWithIndex:function(){return tZ},Foldable:function(){return tQ},FoldableWithIndex:function(){return t0},FromEither:function(){return nt},Functor:function(){return tF},FunctorWithIndex:function(){return tN},Monad:function(){return tG},Pointed:function(){return tD},Traversable:function(){return t1},TraversableWithIndex:function(){return t2},URI:function(){return tI},Unfoldable:function(){return tB},Witherable:function(){return t6},Zero:function(){return tV},_chainRecBreadthFirst:function(){return eQ},_chainRecDepthFirst:function(){return eZ},alt:function(){return e8},altW:function(){return e2},ap:function(){return e7},apFirst:function(){return tU},apS:function(){return ny},apSecond:function(){return tA},append:function(){return S},appendW:function(){return T},bind:function(){return nv},bindTo:function(){return nm},chain:function(){return ng},chainFirst:function(){return tY},chainRecBreadthFirst:function(){return t3},chainRecDepthFirst:function(){return t8},chainWithIndex:function(){return N},chop:function(){return eS},chunksOf:function(){return eI},compact:function(){return tr},comprehension:function(){return ew},concat:function(){return ex},concatW:function(){return eO},cons:function(){return nb},deleteAt:function(){return ea},difference:function(){return eE},dropLeft:function(){return X},dropLeftWhile:function(){return Z},dropRight:function(){return J},duplicate:function(){return tl},elem:function(){return eg},empty:function(){return nc},every:function(){return nf},exists:function(){return np},extend:function(){return tf},filter:function(){return te},filterE:function(){return ne},filterMap:function(){return tn},filterMapWithIndex:function(){return tt},filterWithIndex:function(){return tc},findFirst:function(){return ee},findFirstMap:function(){return et},findIndex:function(){return Q},findLast:function(){return en},findLastIndex:function(){return ei},findLastMap:function(){return er},flap:function(){return tW},flatMap:function(){return e3},flatten:function(){return e5},foldLeft:function(){return k},foldMap:function(){return ts},foldMapWithIndex:function(){return tp},foldRight:function(){return D},fromArray:function(){return na},fromEither:function(){return x},fromEitherK:function(){return nn},fromOption:function(){return O},fromOptionK:function(){return eR},fromPredicate:function(){return w},getDifferenceMagma:function(){return tk},getEq:function(){return tx},getIntersectionSemigroup:function(){return tP},getMonoid:function(){return tO},getOrd:function(){return tC},getSemigroup:function(){return tw},getShow:function(){return tR},getUnionMonoid:function(){return tE},getUnionSemigroup:function(){return tM},guard:function(){return tz},head:function(){return q},init:function(){return B},insertAt:function(){return eo},intercalate:function(){return nd},intersection:function(){return eM},intersperse:function(){return ev},isEmpty:function(){return y},isNonEmpty:function(){return g},isOutOfBound:function(){return j},last:function(){return G},lefts:function(){return ep},let:function(){return nh},lookup:function(){return function e(t,n){return void 0===n?function(n){return e(t,n)}:j(t,n)?f.YP:f.G(n[t])}},makeBy:function(){return I},map:function(){return e4},mapWithIndex:function(){return e9},match:function(){return M},matchLeft:function(){return P},matchLeftW:function(){return E},matchRight:function(){return W},matchRightW:function(){return F},matchW:function(){return C},modifyAt:function(){return ec},of:function(){return e0},partition:function(){return ti},partitionMap:function(){return tu},partitionMapWithIndex:function(){return ta},partitionWithIndex:function(){return to},prepend:function(){return _},prependAll:function(){return eh},prependToAll:function(){return nT},prependW:function(){return b},range:function(){return n_},readonlyArray:function(){return nI},reduce:function(){return td},reduceRight:function(){return th},reduceRightWithIndex:function(){return tv},reduceWithIndex:function(){return tm},replicate:function(){return R},reverse:function(){return ef},rights:function(){return el},rotate:function(){return ey},scanLeft:function(){return L},scanRight:function(){return U},separate:function(){return e6},sequence:function(){return tg},size:function(){return A},snoc:function(){return nS},some:function(){return nl},sort:function(){return ed},sortBy:function(){return eb},spanLeft:function(){return $},splitAt:function(){return eT},tail:function(){return Y},takeLeft:function(){return K},takeLeftWhile:function(){return z},takeRight:function(){return V},toArray:function(){return nu},traverse:function(){return ty},traverseWithIndex:function(){return t_},unfold:function(){return tT},union:function(){return eC},uniq:function(){return e_},unsafeDeleteAt:function(){return no},unsafeInsertAt:function(){return nr},unsafeUpdateAt:function(){return ni},unzip:function(){return em},updateAt:function(){return eu},wilt:function(){return tS},wither:function(){return tb},zero:function(){return e1},zip:function(){return function e(t,n){return void 0===n?function(n){return e(n,t)}:es(t,n,function(e,t){return[e,t]})}},zipWith:function(){return es}});var r=n(42925),i=n(88543),o=n(65191),u=n(25162),a=n(42275),c=n(67560),f=n(97963),l=n(76627),p=n(5586),d=n(28350),s=n(34219),m=n(76511),h=n(28957),v=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},y=function(e){return 0===e.length},g=d.isNonEmpty,_=d.prepend,b=d.prependW,S=d.append,T=d.appendW,I=function(e,t){return e<=0?nc:d.makeBy(t)(e)},R=function(e,t){return I(e,function(){return t})};function w(e){return function(t){return e(t)?[t]:nc}}var O=function(e){return f.Wi(e)?nc:[e.value]},x=function(e){return f.nM(e)?nc:[e.right]},C=function(e,t){return function(n){return g(n)?t(n):e()}},M=C,E=function(e,t){return function(n){return g(n)?t(d.head(n),d.tail(n)):e()}},P=E,k=P,F=function(e,t){return function(n){return g(n)?t(d.init(n),d.last(n)):e()}},W=F,D=W,N=function(e){return function(t){if(y(t))return nc;for(var n=[],r=0;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},L=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}},U=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}},A=function(e){return e.length},j=d.isOutOfBound,q=function(e){return g(e)?f.G(d.head(e)):f.YP},G=function(e){return g(e)?f.G(d.last(e)):f.YP},Y=function(e){return g(e)?f.G(d.tail(e)):f.YP},B=function(e){return g(e)?f.G(d.init(e)):f.YP},K=function(e){return function(t){return j(e,t)?t:0===e?nc:t.slice(0,e)}},V=function(e){return function(t){return j(e,t)?t:0===e?nc:t.slice(-e)}};function z(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];if(!e(i))break;n.push(i)}var o=n.length;return o===t.length?t:0===o?nc:n}}var H=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r};function $(e){return function(t){var n,r=eT(H(t,e))(t);return{init:r[0],rest:r[1]}}}var X=function(e){return function(t){return e<=0||y(t)?t:e>=t.length?nc:t.slice(e,t.length)}},J=function(e){return function(t){return e<=0||y(t)?t:e>=t.length?nc:t.slice(0,t.length-e)}};function Z(e){return function(t){var n=H(t,e);return 0===n?t:n===t.length?nc:t.slice(n)}}var Q=function(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return f.G(n);return f.YP}};function ee(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return f.G(t[n]);return f.YP}}var et=function(e){return function(t){for(var n=0;n<t.length;n++){var r=e(t[n]);if(f.pC(r))return r}return f.YP}};function en(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return f.G(t[n]);return f.YP}}var er=function(e){return function(t){for(var n=t.length-1;n>=0;n--){var r=e(t[n]);if(f.pC(r))return r}return f.YP}},ei=function(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return f.G(n);return f.YP}},eo=function(e,t){return function(n){return e<0||e>n.length?f.YP:f.G(d.unsafeInsertAt(e,t,n))}},eu=function(e,t){return ec(e,function(){return t})},ea=function(e){return function(t){return j(e,t)?f.YP:f.G(no(e,t))}},ec=function(e,t){return function(n){return j(e,n)?f.YP:f.G(ni(e,t(n[e]),n))}},ef=function(e){return e.length<=1?e:e.slice().reverse()},el=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t},ep=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t},ed=function(e){return function(t){return t.length<=1?t:t.slice().sort(e.compare)}},es=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r},em=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},eh=function(e){var t=d.prependAll(e);return function(e){return g(e)?t(e):e}},ev=function(e){var t=d.intersperse(e);return function(e){return g(e)?t(e):e}},ey=function(e){var t=d.rotate(e);return function(e){return g(e)?t(e):e}};function eg(e){return function(t,n){if(void 0===n){var r,i=eg(e);return function(e){return i(t,e)}}for(var o=0;o<n.length;o++)if(r=n[o],e.equals(r,t))return!0;return!1}}var e_=function(e){var t=d.uniq(e);return function(e){return g(e)?t(e):e}},eb=function(e){var t=d.sortBy(e);return function(e){return g(e)?t(e):e}},eS=function(e){var t=d.chop(e);return function(e){return g(e)?t(e):nc}},eT=function(e){return function(t){return e>=1&&g(t)?d.splitAt(e)(t):y(t)?[t,nc]:[nc,t]}},eI=function(e){var t=d.chunksOf(e);return function(e){return g(e)?t(e):nc}},eR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return O(e.apply(void 0,t))}};function ew(e,t,n){void 0===n&&(n=function(){return!0});var r=function(e,i){return g(i)?e3(d.head(i),function(t){return r((0,a.pipe)(e,S(t)),d.tail(i))}):n.apply(void 0,e)?[t.apply(void 0,e)]:nc};return r(nc,e)}var eO=function(e){return function(t){return y(t)?e:y(e)?t:t.concat(e)}},ex=eO;function eC(e){var t=d.union(e);return function(n,r){if(void 0===r){var i=eC(e);return function(e){return i(e,n)}}return g(n)&&g(r)?t(r)(n):g(n)?n:r}}function eM(e){var t=eg(e);return function(n,r){if(void 0===r){var i=eM(e);return function(e){return i(e,n)}}return n.filter(function(e){return t(e,r)})}}function eE(e){var t=eg(e);return function(n,r){if(void 0===r){var i=eE(e);return function(e){return i(e,n)}}return n.filter(function(e){return!t(e,r)})}}var eP=function(e,t){return(0,a.pipe)(e,e4(t))},ek=function(e,t){return(0,a.pipe)(e,e9(t))},eF=function(e,t){return(0,a.pipe)(e,e7(t))},eW=function(e,t){return(0,a.pipe)(e,te(t))},eD=function(e,t){return(0,a.pipe)(e,tn(t))},eN=function(e,t){return(0,a.pipe)(e,ti(t))},eL=function(e,t){return(0,a.pipe)(e,tu(t))},eU=function(e,t){return(0,a.pipe)(e,to(t))},eA=function(e,t){return(0,a.pipe)(e,ta(t))},ej=function(e,t){return(0,a.pipe)(e,e8(t))},eq=function(e,t,n){return(0,a.pipe)(e,td(t,n))},eG=function(e){var t=ts(e);return function(e,n){return(0,a.pipe)(e,t(n))}},eY=function(e,t,n){return(0,a.pipe)(e,th(t,n))},eB=function(e,t,n){return(0,a.pipe)(e,tm(t,n))},eK=function(e){var t=tp(e);return function(e,n){return(0,a.pipe)(e,t(n))}},eV=function(e,t,n){return(0,a.pipe)(e,tv(t,n))},ez=function(e,t){return(0,a.pipe)(e,tt(t))},eH=function(e,t){return(0,a.pipe)(e,tc(t))},e$=function(e,t){return(0,a.pipe)(e,tf(t))},eX=function(e){var t=ty(e);return function(e,n){return(0,a.pipe)(e,t(n))}},eJ=function(e){var t=t_(e);return function(e,n){return(0,a.pipe)(e,t(n))}},eZ=function(e,t){return(0,a.pipe)(e,t8(t))},eQ=function(e,t){return(0,a.pipe)(e,t3(t))},e0=d.of,e1=function(){return nc},e2=function(e){return function(t){return t.concat(e())}},e8=e2,e7=function(e){return e3(function(t){return(0,a.pipe)(e,e4(t))})},e3=(0,a.dual)(2,function(e,t){return(0,a.pipe)(e,N(function(e,n){return t(n,e)}))}),e5=e3(a.identity),e4=function(e){return function(t){return t.map(function(t){return e(t)})}},e9=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}},e6=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return(0,s.separated)(t,n)},te=function(e){return function(t){return t.filter(e)}},tt=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);f.pC(i)&&n.push(i.value)}return n}},tn=function(e){return tt(function(t,n){return e(n)})},tr=tn(a.identity),ti=function(e){return to(function(t,n){return e(n)})},to=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return(0,s.separated)(n,r)}},tu=function(e){return ta(function(t,n){return e(n)})},ta=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return(0,s.separated)(n,r)}},tc=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}},tf=function(e){return function(t){return t.map(function(n,r){return e(t.slice(r))})}},tl=tf(a.identity),tp=function(e){return function(t){return function(n){return n.reduce(function(n,r,i){return e.concat(n,t(i,r))},e.empty)}}},td=function(e,t){return tm(e,function(e,n,r){return t(n,r)})},ts=function(e){var t=tp(e);return function(e){return t(function(t,n){return e(n)})}},tm=function(e,t){return function(n){for(var r=n.length,i=e,o=0;o<r;o++)i=t(o,i,n[o]);return i}},th=function(e,t){return tv(e,function(e,n,r){return t(n,r)})},tv=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}},ty=function(e){var t=t_(e);return function(e){return t(function(t,n){return e(n)})}},tg=function(e){return function(t){return eq(t,e.of(e1()),function(t,n){return e.ap(e.map(t,function(e){return function(t){return(0,a.pipe)(e,S(t))}}),n)})}},t_=function(e){return function(t){return tm(e.of(e1()),function(n,r,i){return e.ap(e.map(r,function(e){return function(t){return(0,a.pipe)(e,S(t))}}),t(n,i))})}},tb=function(e){var t=t4(e);return function(e){return function(n){return t(n,e)}}},tS=function(e){var t=t9(e);return function(e){return function(n){return t(n,e)}}},tT=function(e,t){for(var n=[],r=e;;){var i=t(r);if(f.pC(i)){var o=i.value,u=o[0],a=o[1];n.push(u),r=a}else break}return n},tI="ReadonlyArray",tR=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}},tw=function(){return{concat:function(e,t){return y(e)?t:y(t)?e:e.concat(t)}}},tO=function(){return{concat:tw().concat,empty:nc}},tx=function(e){return(0,o.fromEquals)(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})},tC=function(e){return(0,p.fromCompare)(function(t,n){for(var r=t.length,i=n.length,o=Math.min(r,i),u=0;u<o;u++){var a=e.compare(t[u],n[u]);if(0!==a)return a}return l.Ord.compare(r,i)})},tM=function(e){var t=eC(e);return{concat:function(e,n){return t(n)(e)}}},tE=function(e){return{concat:tM(e).concat,empty:nc}},tP=function(e){var t=eM(e);return{concat:function(e,n){return t(n)(e)}}},tk=function(e){var t=eE(e);return{concat:function(e,n){return t(n)(e)}}},tF={URI:tI,map:eP},tW=(0,c.flap)(tF),tD={URI:tI,of:e0},tN={URI:tI,map:eP,mapWithIndex:ek},tL={URI:tI,map:eP,ap:eF},tU=(0,r.apFirst)(tL),tA=(0,r.apSecond)(tL),tj={URI:tI,map:eP,ap:eF,of:e0},tq={URI:tI,map:eP,ap:eF,chain:e3},tG={URI:tI,map:eP,ap:eF,of:e0,chain:e3},tY=(0,i.chainFirst)(tq),tB={URI:tI,unfold:tT},tK={URI:tI,map:eP,alt:ej},tV={URI:tI,zero:e1},tz=(0,h.guard)(tV,tD),tH={URI:tI,map:eP,ap:eF,of:e0,alt:ej,zero:e1},t$={URI:tI,map:eP,extend:e$},tX={URI:tI,compact:tr,separate:e6},tJ={URI:tI,map:eP,compact:tr,separate:e6,filter:eW,filterMap:eD,partition:eN,partitionMap:eL},tZ={URI:tI,map:eP,mapWithIndex:ek,compact:tr,separate:e6,filter:eW,filterMap:eD,partition:eN,partitionMap:eL,partitionMapWithIndex:eA,partitionWithIndex:eU,filterMapWithIndex:ez,filterWithIndex:eH},tQ={URI:tI,reduce:eq,foldMap:eG,reduceRight:eY},t0={URI:tI,reduce:eq,foldMap:eG,reduceRight:eY,reduceWithIndex:eB,foldMapWithIndex:eK,reduceRightWithIndex:eV},t1={URI:tI,map:eP,reduce:eq,foldMap:eG,reduceRight:eY,traverse:eX,sequence:tg},t2={URI:tI,map:eP,mapWithIndex:ek,reduce:eq,foldMap:eG,reduceRight:eY,reduceWithIndex:eB,foldMapWithIndex:eK,reduceRightWithIndex:eV,traverse:eX,sequence:tg,traverseWithIndex:eJ},t8=function(e){return function(t){for(var n=v([],e(t),!0),r=[];n.length>0;){var i=n.shift();f.nM(i)?n.unshift.apply(n,e(i.left)):r.push(i.right)}return r}},t7={URI:tI,map:eP,ap:eF,chain:e3,chainRec:eZ},t3=function(e){return function(t){var n=e(t),r=[],i=[];function o(t){f.nM(t)?e(t.left).forEach(function(e){return r.push(e)}):i.push(t.right)}for(var u=0;u<n.length;u++)o(n[u]);for(;r.length>0;)o(r.shift());return i}},t5={URI:tI,map:eP,ap:eF,chain:e3,chainRec:eQ},t4=(0,m.witherDefault)(t1,tX),t9=(0,m.wiltDefault)(t1,tX),t6={URI:tI,map:eP,compact:tr,separate:e6,filter:eW,filterMap:eD,partition:eN,partitionMap:eL,reduce:eq,foldMap:eG,reduceRight:eY,traverse:eX,sequence:tg,wither:t4,wilt:t9},ne=(0,m.filterE)(t6),nt={URI:tI,fromEither:x},nn=(0,u.fromEitherK)(nt),nr=d.unsafeInsertAt,ni=function(e,t,n){return g(n)?d.unsafeUpdateAt(e,t,n):n},no=function(e,t){var n=t.slice();return n.splice(e,1),n},nu=function(e){return e.slice()},na=function(e){return y(e)?nc:e.slice()},nc=d.empty;function nf(e){return function(t){return t.every(e)}}var nl=function(e){return function(t){return t.some(e)}},np=nl,nd=function(e){var t=d.intercalate(e);return function(n){return M(function(){return e.empty},t(n))}},ns=e0(f.F4),nm=(0,c.bindTo)(tF),nh=(0,c.let)(tF),nv=(0,i.bind)(tq),ny=(0,r.apS)(tL),ng=e3,n_=d.range,nb=d.cons,nS=d.snoc,nT=eh,nI={URI:tI,compact:tr,separate:e6,map:eP,ap:eF,of:e0,chain:e3,filter:eW,filterMap:eD,partition:eN,partitionMap:eL,mapWithIndex:ek,partitionMapWithIndex:eA,partitionWithIndex:eU,filterMapWithIndex:ez,filterWithIndex:eH,alt:ej,zero:e1,unfold:tT,reduce:eq,foldMap:eG,reduceRight:eY,traverse:eX,sequence:tg,reduceWithIndex:eB,foldMapWithIndex:eK,reduceRightWithIndex:eV,traverseWithIndex:eJ,extend:e$,wither:t4,wilt:t9}},13512:function(e,t,n){n.r(t),n.d(t,{Compactable:function(){return ep},Filterable:function(){return ed},Functor:function(){return ec},URI:function(){return en},collect:function(){return g},compact:function(){return H},deleteAt:function(){return T},difference:function(){return eO},elem:function(){return function e(t){return function(n,r){if(void 0===r){var i,o=e(t);return function(e){return o(n,e)}}for(var u=r.values();!(i=u.next()).done;){var a=i.value;if(t.equals(n,a))return!0}return!1}}},empty:function(){return M},filter:function(){return $},filterMap:function(){return X},filterMapWithIndex:function(){return L},filterWithIndex:function(){return U},flap:function(){return ef},foldMap:function(){return em},foldMapWithIndex:function(){return eg},fromFoldable:function(){return F},fromMap:function(){return l},getDifferenceMagma:function(){return eu},getEq:function(){return E},getFilterableWithIndex:function(){return ea},getFoldable:function(){return ev},getFoldableWithIndex:function(){return eb},getFunctorWithIndex:function(){return el},getIntersectionSemigroup:function(){return eo},getMonoid:function(){return P},getShow:function(){return d},getTraversable:function(){return eS},getTraversableWithIndex:function(){return eT},getUnionMonoid:function(){return ei},getUnionSemigroup:function(){return er},getWitherable:function(){return eI},insertAt:function(){return ex},intersection:function(){return ew},isEmpty:function(){return m},isSubmap:function(){return C},keys:function(){return v},lookup:function(){return x},lookupWithKey:function(){return O},map:function(){return J},mapWithIndex:function(){return Z},member:function(){return h},modifyAt:function(){return R},partition:function(){return Q},partitionMap:function(){return ee},partitionMapWithIndex:function(){return D},partitionWithIndex:function(){return N},pop:function(){return w},readonlyMap:function(){return eC},reduce:function(){return es},reduceRight:function(){return eh},reduceRightWithIndex:function(){return e_},reduceWithIndex:function(){return ey},separate:function(){return et},singleton:function(){return k},size:function(){return s},toMap:function(){return p},toReadonlyArray:function(){return _},toUnfoldable:function(){return b},union:function(){return eR},updateAt:function(){return I},upsertAt:function(){return S},values:function(){return y}});var r=n(65191),i=n(42275),o=n(67560),u=n(97963),a=n(20492),c=n(34219),f=n(76511),l=function(e){return new Map(e)};function p(e){return new Map(e)}function d(e,t){return{show:function(n){var r=[];return n.forEach(function(n,i){r.push("[".concat(e.show(i),", ").concat(t.show(n),"]"))}),"new Map([".concat(r.sort().join(", "),"])")}}}var s=function(e){return e.size},m=function(e){return 0===e.size};function h(e){var t=x(e);return function(n,r){if(void 0===r){var i=h(e);return function(e){return i(n,e)}}return u.pC(t(n,r))}}var v=function(e){return function(t){return Array.from(t.keys()).sort(e.compare)}},y=function(e){return function(t){return Array.from(t.values()).sort(e.compare)}};function g(e){var t=v(e);return function(e){return function(n){for(var r=[],i=t(n),o=0;o<i.length;o++){var u=i[o];r.push(e(u,n.get(u)))}return r}}}var _=function(e){return g(e)(function(e,t){return[e,t]})};function b(e,t){var n=_(e);return function(e){var r=n(e),i=r.length;return t.unfold(0,function(e){return e<i?u.G([r[e],e+1]):u.YP})}}var S=function(e){var t=O(e);return function(e,n){var r=t(e);return function(t){var i=r(t);if(u.Wi(i)){var o=new Map(t);return o.set(e,n),o}if(i.value[1]!==n){var o=new Map(t);return o.set(i.value[0],n),o}return t}}},T=function(e){var t=O(e);return function(e){return function(n){var r=t(e,n);if(u.pC(r)){var i=new Map(n);return i.delete(r.value[0]),i}return n}}},I=function(e){var t=R(e);return function(e,n){return t(e,function(){return n})}},R=function(e){var t=O(e);return function(e,n){return function(r){var i=t(e,r);if(u.Wi(i))return u.YP;var o=i.value,a=o[0],c=o[1],f=n(c);if(f===c)return u.G(r);var l=new Map(r);return l.set(a,f),u.G(l)}}};function w(e){var t=x(e),n=T(e);return function(e){var r=n(e);return function(n){return(0,i.pipe)(t(e,n),a.map(function(e){return[e,r(n)]}))}}}function O(e){return function(t,n){if(void 0===n){var r,i=O(e);return function(e){return i(t,e)}}for(var o=n.entries();!(r=o.next()).done;){var a=r.value,c=a[0],f=a[1];if(e.equals(c,t))return u.G([c,f])}return u.YP}}function x(e){var t=O(e);return function(n,r){if(void 0===r){var o=x(e);return function(e){return o(n,e)}}return(0,i.pipe)(t(n,r),a.map(function(e){return e[0],e[1]}))}}function C(e,t){var n=O(e);return function(r,i){if(void 0===i){var o,a=C(e,t);return function(e){return a(e,r)}}for(var c=r.entries();!(o=c.next()).done;){var f=o.value,l=f[0],p=f[1],d=n(l,i);if(u.Wi(d)||!e.equals(l,d.value[0])||!t.equals(p,d.value[1]))return!1}return!0}}var M=new Map;function E(e,t){var n=C(e,t);return(0,r.fromEquals)(function(e,t){return n(e,t)&&n(t,e)})}function P(e,t){var n=O(e);return{concat:function(e,r){if(m(e))return r;if(m(r))return e;for(var i,o=new Map(e),a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=n(f,e);u.pC(p)?o.set(p.value[0],t.concat(p.value[1],l)):o.set(f,l)}return o},empty:M}}var k=function(e,t){return new Map([[e,t]])};function F(e,t,n){return function(r){var i=O(e);return n.reduce(r,new Map,function(e,n){var r=n[0],o=n[1],a=i(r,e);return u.pC(a)?e.set(a.value[0],t.concat(a.value[1],o)):e.set(r,o),e})}}var W=function(e,t){for(var n,r=new Map,i=e.entries();!(n=i.next()).done;){var o=n.value,u=o[0],a=o[1];r.set(u,t(u,a))}return r},D=function(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var a=n.value,f=a[0],l=e(f,a[1]);u.nM(l)?r.set(f,l.left):i.set(f,l.right)}return(0,c.separated)(r,i)}};function N(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var u=n.value,a=u[0],f=u[1];e(a,f)?i.set(a,f):r.set(a,f)}return(0,c.separated)(r,i)}}var L=function(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,a=o[0],c=e(a,o[1]);u.pC(c)&&r.set(a,c.value)}return r}};function U(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,u=o[0],a=o[1];e(u,a)&&r.set(u,a)}return r}}var A=function(e,t){return W(e,function(e,n){return t(n)})},j=function(e,t){return B(e,function(e,n){return t(n)})},q=function(e,t){return K(e,function(e,n){return t(n)})},G=function(e,t){return V(e,function(e,n){return t(n)})},Y=function(e,t){return z(e,function(e,n){return t(n)})},B=function(e,t){return(0,i.pipe)(e,U(t))},K=function(e,t){return(0,i.pipe)(e,L(t))},V=function(e,t){return(0,i.pipe)(e,N(t))},z=function(e,t){return(0,i.pipe)(e,D(t))},H=function(e){for(var t,n=new Map,r=e.entries();!(t=r.next()).done;){var i=t.value,o=i[0],a=i[1];u.pC(a)&&n.set(o,a.value)}return n},$=function(e){return function(t){return j(t,e)}},X=function(e){return function(t){return q(t,e)}},J=function(e){return function(t){return A(t,e)}},Z=function(e){return function(t){return W(t,e)}},Q=function(e){return function(t){return G(t,e)}},ee=function(e){return function(t){return Y(t,e)}},et=function(e){for(var t,n=new Map,r=new Map,i=e.entries();!(t=i.next()).done;){var o=t.value,a=o[0],f=o[1];u.nM(f)?n.set(a,f.left):r.set(a,f.right)}return(0,c.separated)(n,r)},en="ReadonlyMap",er=function(e,t){var n=eR(e,t);return{concat:function(e,t){return n(t)(e)}}},ei=function(e,t){return{concat:er(e,t).concat,empty:M}},eo=function(e,t){var n=ew(e,t);return{concat:function(e,t){return n(t)(e)}}},eu=function(e){return function(){var t=eO(e);return{concat:function(e,n){return t(n)(e)}}}};function ea(){return{URI:en,_E:void 0,map:A,mapWithIndex:W,compact:H,separate:et,filter:j,filterMap:q,partition:G,partitionMap:Y,partitionMapWithIndex:z,partitionWithIndex:V,filterMapWithIndex:K,filterWithIndex:B}}var ec={URI:en,map:A},ef=(0,o.flap)(ec),el=function(){return{URI:en,_E:void 0,map:A,mapWithIndex:W}},ep={URI:en,compact:H,separate:et},ed={URI:en,map:A,compact:H,separate:et,filter:j,filterMap:q,partition:G,partitionMap:Y},es=function(e){var t=ey(e);return function(e,n){return t(e,function(e,t,r){return n(t,r)})}},em=function(e){var t=eg(e);return function(e){var n=t(e);return function(e){return n(function(t,n){return e(n)})}}},eh=function(e){var t=e_(e);return function(e,n){return t(e,function(e,t,r){return n(t,r)})}},ev=function(e){var t=es(e),n=em(e),r=eh(e);return{URI:en,_E:void 0,reduce:function(e,n,r){return(0,i.pipe)(e,t(n,r))},foldMap:function(e){var t=n(e);return function(e,n){return(0,i.pipe)(e,t(n))}},reduceRight:function(e,t,n){return(0,i.pipe)(e,r(t,n))}}},ey=function(e){var t=v(e);return function(e,n){return function(r){for(var i=e,o=0,u=t(r);o<u.length;o++){var a=u[o];i=n(a,i,r.get(a))}return i}}},eg=function(e){var t=v(e);return function(e){return function(n){return function(r){for(var i=e.empty,o=0,u=t(r);o<u.length;o++){var a=u[o];i=e.concat(i,n(a,r.get(a)))}return i}}}},e_=function(e){var t=v(e);return function(e,n){return function(r){for(var i=e,o=t(r),u=o.length,a=u-1;a>=0;a--){var c=o[a];i=n(c,r.get(c),i)}return i}}},eb=function(e){var t=ev(e),n=ey(e),r=eg(e),o=e_(e);return{URI:en,_E:void 0,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:function(e,t,r){return(0,i.pipe)(e,n(t,r))},foldMapWithIndex:function(e){var t=r(e);return function(e,n){return(0,i.pipe)(e,t(n))}},reduceRightWithIndex:function(e,t,n){return(0,i.pipe)(e,o(t,n))}}},eS=function(e){var t=eT(e),n=ev(e);return{URI:en,_E:void 0,map:A,reduce:n.reduce,foldMap:n.foldMap,reduceRight:n.reduceRight,traverse:t.traverse,sequence:t.sequence}},eT=function(e){var t=eb(e),n=v(e),r=function(e){return function(t,r){for(var i=e.of(new Map),o=n(t),u=o.length,a=0;a<u;a++)!function(n){var u=o[n],a=t.get(u);i=e.ap(e.map(i,function(e){return function(t){return e.set(u,t)}}),r(u,a))}(a);return i}},o=function(e){var t=r(e);return function(e,n){return t(e,function(e,t){return n(t)})}},u=function(e){var t=r(e);return function(e){return t(e,i.SK)}};return{URI:en,_E:void 0,map:A,mapWithIndex:W,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:o,sequence:u,traverseWithIndex:r}};function eI(e){var t=eT(e);return{URI:en,_E:void 0,map:A,compact:H,separate:et,filter:j,filterMap:q,partition:G,partitionMap:Y,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,traverse:t.traverse,sequence:t.sequence,mapWithIndex:W,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverseWithIndex:t.traverseWithIndex,wilt:(0,f.wiltDefault)(t,ep),wither:(0,f.witherDefault)(t,ep)}}var eR=function(e,t){var n=x(e);return function(e){return function(r){if(m(r))return e;if(m(e))return r;for(var i,o=new Map,a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=n(f)(e);u.pC(p)?o.set(f,t.concat(l,p.value)):o.set(f,l)}for(var d=e.entries();!(i=d.next()).done;){var s=i.value,f=s[0],l=s[1],p=n(f)(o);u.Wi(p)&&o.set(f,l)}return o}}},ew=function(e,t){var n=x(e);return function(e){return function(r){if(m(r)||m(e))return M;for(var i,o=new Map,a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=n(f)(e);u.pC(p)&&o.set(f,t.concat(l,p.value))}return o}}},eO=function(e){var t=h(e);return function(e){return function(n){if(m(n))return e;if(m(e))return n;for(var r,i=new Map,o=n.entries();!(r=o.next()).done;){var u=r.value,a=u[0],c=u[1];t(a)(e)||i.set(a,c)}for(var f=e.entries();!(r=f.next()).done;){var l=r.value,a=l[0],c=l[1];t(a)(n)||i.set(a,c)}return i}}},ex=S,eC={URI:en,map:A,compact:H,separate:et,filter:j,filterMap:q,partition:G,partitionMap:Y}},28350:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return ez},Applicative:function(){return eA},Apply:function(){return eN},Chain:function(){return ej},Comonad:function(){return eH},Do:function(){return e$},Foldable:function(){return eY},FoldableWithIndex:function(){return eB},Functor:function(){return ek},FunctorWithIndex:function(){return eD},Monad:function(){return eG},Pointed:function(){return eW},Traversable:function(){return eK},TraversableWithIndex:function(){return eV},URI:function(){return ex},alt:function(){return ef},altW:function(){return ec},ap:function(){return el},apFirst:function(){return eL},apS:function(){return eQ},apSecond:function(){return eU},append:function(){return g},appendW:function(){return y},bind:function(){return eZ},bindTo:function(){return eX},chain:function(){return ti},chainFirst:function(){return eq},chainWithIndex:function(){return B},chop:function(){return K},chunksOf:function(){return z},concat:function(){return F},concatAll:function(){return e5},concatW:function(){return k},cons:function(){return tl},duplicate:function(){return es},empty:function(){return d},extend:function(){return ed},extract:function(){return eO},filter:function(){return tu},filterWithIndex:function(){return ta},flap:function(){return eF},flatMap:function(){return ep},flatten:function(){return em},fold:function(){return tm},foldMap:function(){return eg},foldMapWithIndex:function(){return eS},fromArray:function(){return P},fromReadonlyArray:function(){return w},getEq:function(){return eE},getSemigroup:function(){return eM},getShow:function(){return eC},getUnionSemigroup:function(){return eP},group:function(){return D},groupBy:function(){return N},groupSort:function(){return to},head:function(){return e0},init:function(){return e8},insertAt:function(){return td},intercalate:function(){return tr},intersperse:function(){return Y},isNonEmpty:function(){return s},isOutOfBound:function(){return m},last:function(){return e2},let:function(){return eJ},makeBy:function(){return O},map:function(){return eh},mapWithIndex:function(){return ev},matchLeft:function(){return e4},matchRight:function(){return e9},max:function(){return e3},min:function(){return e7},modifyAt:function(){return A},modifyHead:function(){return e6},modifyLast:function(){return tt},of:function(){return ea},prepend:function(){return v},prependAll:function(){return G},prependToAll:function(){return ts},prependW:function(){return h},range:function(){return C},readonlyNonEmptyArray:function(){return th},reduce:function(){return ey},reduceRight:function(){return e_},reduceRightWithIndex:function(){return eT},reduceWithIndex:function(){return eb},replicate:function(){return x},reverse:function(){return W},rotate:function(){return R},sequence:function(){return eR},snoc:function(){return tp},sort:function(){return L},sortBy:function(){return T},splitAt:function(){return V},tail:function(){return e1},traverse:function(){return eI},traverseWithIndex:function(){return ew},unappend:function(){return E},uncons:function(){return tc},union:function(){return I},uniq:function(){return S},unprepend:function(){return M},unsafeInsertAt:function(){return _},unsafeUpdateAt:function(){return b},unsnoc:function(){return tf},unzip:function(){return q},updateAt:function(){return U},updateHead:function(){return te},updateLast:function(){return tn},zip:function(){return function e(t,n){return void 0===n?function(n){return e(n,t)}:j(t,n,function(e,t){return[e,t]})}},zipWith:function(){return j}});var r=n(42925),i=n(88543),o=n(65191),u=n(42275),a=n(67560),c=n(97963),f=n(5586),l=n(3291),p=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},d=c.Xl,s=c.Od,m=function(e,t){return e<0||e>=t.length},h=function(e){return function(t){return p([e],t,!0)}},v=h,y=function(e){return function(t){return p(p([],t,!0),[e],!1)}},g=y,_=function(e,t,n){if(s(n)){var r=c.r1(n);return r.splice(e,0,t),r}return[t]},b=function(e,t,n){if(n[e]===t)return n;var r=c.r1(n);return r[e]=t,r},S=function(e){return function(t){if(1===t.length)return t;for(var n=[e0(t)],r=e1(t),i=function(t){n.every(function(n){return!e.equals(n,t)})&&n.push(t)},o=0;o<r.length;o++)i(r[o]);return n}},T=function(e){if(s(e)){var t=(0,f.getMonoid)();return L(e.reduce(t.concat,t.empty))}return u.identity},I=function(e){var t=S(e);return function(e){return function(n){return t((0,u.pipe)(n,F(e)))}}},R=function(e){return function(t){var n=t.length,r=Math.round(e)%n;if(m(Math.abs(r),t)||0===r)return t;if(!(r<0))return R(r-n)(t);var i=V(-r)(t),o=i[0],a=i[1];return(0,u.pipe)(a,F(o))}},w=function(e){return s(e)?c.G(e):c.YP},O=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}},x=function(e){return O(function(){return e})},C=function(e,t){return e<=t?O(function(t){return e+t})(t-e+1):[e]},M=function(e){return[e0(e),e1(e)]},E=function(e){return[e8(e),e2(e)]},P=function(e){return w(e.slice())};function k(e){return function(t){return t.concat(e)}}function F(e,t){return t?e.concat(t):function(t){return t.concat(e)}}var W=function(e){return 1===e.length?e:p([e2(e)],e.slice(0,-1).reverse(),!0)};function D(e){return function(t){var n=t.length;if(0===n)return d;for(var r=[],i=t[0],o=[i],u=1;u<n;u++){var a=t[u];e.equals(a,i)?o.push(a):(r.push(o),o=[i=a])}return r.push(o),r}}var N=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);c.e$.call(n,o)?n[o].push(i):n[o]=[i]}return n}},L=function(e){return function(t){return 1===t.length?t:t.slice().sort(e.compare)}},U=function(e,t){return A(e,function(){return t})},A=function(e,t){return function(n){return m(e,n)?c.YP:c.G(b(e,t(n[e]),n))}},j=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r},q=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},G=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}},Y=function(e){return function(t){var n=e1(t);return s(n)?(0,u.pipe)(n,G(e),v(e0(t))):t}},B=function(e){return function(t){for(var n=c.r1(e(0,e0(t))),r=1;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},K=function(e){return function(t){for(var n=e(t),r=n[0],i=n[1],o=[r],u=i;s(u);){var a=e(u),c=a[0],f=a[1];o.push(c),u=f}return o}},V=function(e){return function(t){var n=Math.max(1,e);return n>=t.length?[t,d]:[(0,u.pipe)(t.slice(1,n),v(e0(t))),t.slice(n)]}},z=function(e){return K(V(e))},H=function(e,t){return(0,u.pipe)(e,eh(t))},$=function(e,t){return(0,u.pipe)(e,ev(t))},X=function(e,t){return(0,u.pipe)(e,el(t))},J=function(e,t){return(0,u.pipe)(e,ed(t))},Z=function(e,t,n){return(0,u.pipe)(e,ey(t,n))},Q=function(e){var t=eg(e);return function(e,n){return(0,u.pipe)(e,t(n))}},ee=function(e,t,n){return(0,u.pipe)(e,e_(t,n))},et=function(e){var t=eI(e);return function(e,n){return(0,u.pipe)(e,t(n))}},en=function(e,t){return(0,u.pipe)(e,ef(t))},er=function(e,t,n){return(0,u.pipe)(e,eb(t,n))},ei=function(e){var t=eS(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eo=function(e,t,n){return(0,u.pipe)(e,eT(t,n))},eu=function(e){var t=ew(e);return function(e,n){return(0,u.pipe)(e,t(n))}},ea=c.ri,ec=function(e){return function(t){return(0,u.pipe)(t,k(e()))}},ef=ec,el=function(e){return ep(function(t){return(0,u.pipe)(e,eh(t))})},ep=(0,u.dual)(2,function(e,t){return(0,u.pipe)(e,B(function(e,n){return t(n,e)}))}),ed=function(e){return function(t){for(var n=e1(t),r=[e(t)];s(n);)r.push(e(n)),n=e1(n);return r}},es=ed(u.identity),em=ep(u.identity),eh=function(e){return ev(function(t,n){return e(n)})},ev=function(e){return function(t){for(var n=[e(0,e0(t))],r=1;r<t.length;r++)n.push(e(r,t[r]));return n}},ey=function(e,t){return eb(e,function(e,n,r){return t(n,r)})},eg=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r){return e.concat(n,t(r))},t(n[0]))}}},e_=function(e,t){return eT(e,function(e,n,r){return t(n,r)})},eb=function(e,t){return function(n){return n.reduce(function(e,n,r){return t(r,e,n)},e)}},eS=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r,i){return e.concat(n,t(i+1,r))},t(0,n[0]))}}},eT=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}},eI=function(e){var t=ew(e);return function(e){return t(function(t,n){return e(n)})}},eR=function(e){return ew(e)(u.SK)},ew=function(e){return function(t){return function(n){for(var r=e.map(t(0,e0(n)),ea),i=1;i<n.length;i++)r=e.ap(e.map(r,function(e){return function(t){return(0,u.pipe)(e,g(t))}}),t(i,n[i]));return r}}},eO=c.YM,ex="ReadonlyNonEmptyArray",eC=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}},eM=function(){return{concat:F}},eE=function(e){return(0,o.fromEquals)(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})},eP=function(e){var t=I(e);return{concat:function(e,n){return t(n)(e)}}},ek={URI:ex,map:H},eF=(0,a.flap)(ek),eW={URI:ex,of:ea},eD={URI:ex,map:H,mapWithIndex:$},eN={URI:ex,map:H,ap:X},eL=(0,r.apFirst)(eN),eU=(0,r.apSecond)(eN),eA={URI:ex,map:H,ap:X,of:ea},ej={URI:ex,map:H,ap:X,chain:ep},eq=(0,i.chainFirst)(ej),eG={URI:ex,map:H,ap:X,of:ea,chain:ep},eY={URI:ex,reduce:Z,foldMap:Q,reduceRight:ee},eB={URI:ex,reduce:Z,foldMap:Q,reduceRight:ee,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo},eK={URI:ex,map:H,reduce:Z,foldMap:Q,reduceRight:ee,traverse:et,sequence:eR},eV={URI:ex,map:H,mapWithIndex:$,reduce:Z,foldMap:Q,reduceRight:ee,traverse:et,sequence:eR,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo,traverseWithIndex:eu},ez={URI:ex,map:H,alt:en},eH={URI:ex,map:H,extend:J,extract:eO},e$=ea(c.F4),eX=(0,a.bindTo)(ek),eJ=(0,a.let)(ek),eZ=(0,i.bind)(ej),eQ=(0,r.apS)(eN),e0=eO,e1=c.Gb,e2=function(e){return e[e.length-1]},e8=function(e){return e.slice(0,-1)},e7=function(e){var t=l.min(e);return function(e){return e.reduce(t.concat)}},e3=function(e){var t=l.max(e);return function(e){return e.reduce(t.concat)}},e5=function(e){return function(t){return t.reduce(e.concat)}},e4=function(e){return function(t){return e(e0(t),e1(t))}},e9=function(e){return function(t){return e(e8(t),e2(t))}},e6=function(e){return function(t){return p([e(e0(t))],e1(t),!0)}},te=function(e){return e6(function(){return e})},tt=function(e){return function(t){return(0,u.pipe)(e8(t),g(e(e2(t))))}},tn=function(e){return tt(function(){return e})},tr=function(e){var t=e5(e);return function(e){return(0,u.flow)(Y(e),t)}},ti=ep;function to(e){var t=L(e),n=D(e);return function(e){return s(e)?n(t(e)):d}}function tu(e){return ta(function(t,n){return e(n)})}var ta=function(e){return function(t){return w(t.filter(function(t,n){return e(n,t)}))}},tc=M,tf=E;function tl(e,t){return void 0===t?v(e):(0,u.pipe)(t,v(e))}var tp=function(e,t){return(0,u.pipe)(e,F([t]))},td=function(e,t){return function(n){return e<0||e>n.length?c.YP:c.G(_(e,t,n))}},ts=G,tm=e5,th={URI:ex,of:ea,map:H,mapWithIndex:$,ap:X,chain:ep,extend:J,extract:eO,reduce:Z,foldMap:Q,reduceRight:ee,traverse:et,sequence:eR,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo,traverseWithIndex:eu,alt:en}},97054:function(e,t,n){n.r(t),n.d(t,{Compactable:function(){return eW},Filterable:function(){return eD},FilterableWithIndex:function(){return eN},Foldable:function(){return eB},FoldableWithIndex:function(){return eK},Functor:function(){return eM},FunctorWithIndex:function(){return eP},Traversable:function(){return eV},TraversableWithIndex:function(){return ez},URI:function(){return eO},Witherable:function(){return eX},_filter:function(){return er},_filterMap:function(){return ei},_filterMapWithIndex:function(){return ed},_filterWithIndex:function(){return es},_foldMap:function(){return et},_foldMapWithIndex:function(){return ec},_map:function(){return Z},_mapWithIndex:function(){return Q},_partition:function(){return eo},_partitionMap:function(){return eu},_partitionMapWithIndex:function(){return el},_partitionWithIndex:function(){return ep},_reduce:function(){return ee},_reduceRight:function(){return en},_reduceRightWithIndex:function(){return ef},_reduceWithIndex:function(){return ea},_sequence:function(){return eh},_traverse:function(){return em},collect:function(){return v},compact:function(){return eR},deleteAt:function(){return S},difference:function(){return J},elem:function(){return function e(t){return function(n,r){if(void 0===r){var i=e(t);return function(e){return i(n,e)}}for(var o in r)if(t.equals(r[o],n))return!0;return!1}}},empty:function(){return x},every:function(){return z},filter:function(){return ey},filterMap:function(){return eg},filterMapWithIndex:function(){return q},filterWithIndex:function(){return G},flap:function(){return eE},foldMap:function(){return eT},foldMapWithIndex:function(){return P},fromEntries:function(){return V},fromFoldable:function(){return Y},fromFoldableMap:function(){return B},fromRecord:function(){return l},getDifferenceMagma:function(){return eY},getEq:function(){return ex},getFoldable:function(){return ek},getFoldableWithIndex:function(){return eF},getIntersectionSemigroup:function(){return eG},getMonoid:function(){return eC},getShow:function(){return function e(t){return"compare"in t?function(e){return{show:function(n){var r=v(t)(function(t,n){return"".concat(JSON.stringify(t),": ").concat(e.show(n))})(n).join(", ");return""===r?"{}":"{ ".concat(r," }")}}}:e(c.Ord)(t)}},getTraversable:function(){return eL},getTraversableWithIndex:function(){return eU},getUnionMonoid:function(){return eq},getUnionSemigroup:function(){return ej},getWitherable:function(){return eA},has:function(){return b},hasOwnProperty:function(){return eZ},insertAt:function(){return eJ},intersection:function(){return X},isEmpty:function(){return s},isSubrecord:function(){return w},keys:function(){return h},lookup:function(){return O},map:function(){return M},mapWithIndex:function(){return C},modifyAt:function(){return I},partition:function(){return e_},partitionMap:function(){return eb},partitionMapWithIndex:function(){return A},partitionWithIndex:function(){return j},pop:function(){return R},readonlyRecord:function(){return eQ},reduce:function(){return eS},reduceRight:function(){return eI},reduceRightWithIndex:function(){return k},reduceWithIndex:function(){return E},separate:function(){return ew},sequence:function(){return N},singleton:function(){return F},size:function(){return d},some:function(){return H},toEntries:function(){return K},toReadonlyArray:function(){return y},toRecord:function(){return p},toUnfoldable:function(){return g},traverse:function(){return D},traverseWithIndex:function(){return W},union:function(){return $},updateAt:function(){return T},upsertAt:function(){return _},wilt:function(){return U},wither:function(){return L}});var r=n(65191),i=n(42275),o=n(67560),u=n(97963),a=n(34219),c=n(57029),f=n(76511),l=function(e){return Object.assign({},e)},p=function(e){return Object.assign({},e)},d=function(e){return Object.keys(e).length},s=function(e){for(var t in e)if(u.e$.call(e,t))return!1;return!0},m=function(e){return function(t){return Object.keys(t).sort(e.compare)}},h=m(c.Ord);function v(e){if("function"==typeof e)return v(c.Ord)(e);var t=m(e);return function(e){return function(n){for(var r=[],i=0,o=t(n);i<o.length;i++){var u=o[i];r.push(e(u,n[u]))}return r}}}var y=v(c.Ord)(function(e,t){return[e,t]});function g(e){return function(t){var n=y(t),r=n.length;return e.unfold(0,function(e){return e<r?u.G([n[e],e+1]):u.YP})}}var _=function(e,t){return function(n){if(u.e$.call(n,e)&&n[e]===t)return n;var r=Object.assign({},n);return r[e]=t,r}},b=function(e,t){return u.e$.call(t,e)};function S(e){return function(t){if(!u.e$.call(t,e))return t;var n=Object.assign({},t);return delete n[e],n}}var T=function(e,t){return function(n){if(!b(e,n))return u.YP;if(n[e]===t)return u.G(n);var r=Object.assign({},n);return r[e]=t,u.G(r)}},I=function(e,t){return function(n){if(!b(e,n))return u.YP;var r=t(n[e]);if(r===n[e])return u.G(n);var i=Object.assign({},n);return i[e]=r,u.G(i)}};function R(e){var t=S(e);return function(n){var r=O(e,n);return u.Wi(r)?u.YP:u.G([r.value,t(n)])}}function w(e){return function(t,n){if(void 0===n){var r=w(e);return function(e){return r(e,t)}}for(var i in t)if(!u.e$.call(n,i)||!e.equals(t[i],n[i]))return!1;return!0}}function O(e,t){return void 0===t?function(t){return O(e,t)}:u.e$.call(t,e)?u.G(t[e]):u.YP}var x={};function C(e){return function(t){var n={};for(var r in t)u.e$.call(t,r)&&(n[r]=e(r,t[r]));return n}}function M(e){return C(function(t,n){return e(n)})}function E(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(2===e.length)return E(c.Ord).apply(void 0,e);var n=m(e[0]);return function(e,t){return function(r){for(var i=e,o=n(r),u=o.length,a=0;a<u;a++){var c=o[a];i=t(c,i,r[c])}return i}}}function P(e){if("compare"in e){var t=m(e);return function(e){return function(n){return function(r){for(var i=e.empty,o=t(r),u=o.length,a=0;a<u;a++){var c=o[a];i=e.concat(i,n(c,r[c]))}return i}}}}return P(c.Ord)(e)}function k(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(2===e.length)return k(c.Ord).apply(void 0,e);var n=m(e[0]);return function(e,t){return function(r){for(var i=e,o=n(r),u=o.length,a=u-1;a>=0;a--){var c=o[a];i=t(c,r[c],i)}return i}}}var F=function(e,t){var n;return(n={})[e]=t,n};function W(e){var t=ev(c.Ord)(e);return function(e){return function(n){return t(n,e)}}}function D(e){var t=em(c.Ord)(e);return function(e){return function(n){return t(n,e)}}}function N(e){return eh(c.Ord)(e)}var L=function(e){var t=D(e);return function(n){return function(r){return e.map((0,i.pipe)(r,t(n)),eR)}}},U=function(e){var t=D(e);return function(n){return function(r){return e.map((0,i.pipe)(r,t(n)),ew)}}};function A(e){return function(t){var n={},r={};for(var i in t)if(u.e$.call(t,i)){var o=e(i,t[i]);switch(o._tag){case"Left":n[i]=o.left;break;case"Right":r[i]=o.right}}return(0,a.separated)(n,r)}}function j(e){return function(t){var n={},r={};for(var i in t)if(u.e$.call(t,i)){var o=t[i];e(i,o)?r[i]=o:n[i]=o}return(0,a.separated)(n,r)}}function q(e){return function(t){var n={};for(var r in t)if(u.e$.call(t,r)){var i=e(r,t[r]);u.pC(i)&&(n[r]=i.value)}return n}}function G(e){return function(t){var n={},r=!1;for(var i in t)if(u.e$.call(t,i)){var o=t[i];e(i,o)?n[i]=o:r=!0}return r?n:t}}function Y(e,t){var n=B(e,t);return function(e){return n(e,i.identity)}}function B(e,t){return function(n,r){return t.reduce(n,{},function(t,n){var i=r(n),o=i[0],a=i[1];return t[o]=u.e$.call(t,o)?e.concat(t[o],a):a,t})}}var K=y,V=function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];t[r[0]]=r[1]}return t};function z(e){return function(t){for(var n in t)if(!e(t[n]))return!1;return!0}}function H(e){return function(t){for(var n in t)if(e(t[n]))return!0;return!1}}var $=function(e){return function(t){return function(n){if(s(n))return t;if(s(t))return n;var r={};for(var i in n)b(i,t)?r[i]=e.concat(n[i],t[i]):r[i]=n[i];for(var i in t)b(i,r)||(r[i]=t[i]);return r}}},X=function(e){return function(t){return function(n){if(s(n)||s(t))return x;var r={};for(var i in n)b(i,t)&&(r[i]=e.concat(n[i],t[i]));return r}}},J=function(e){return function(t){if(s(t))return e;if(s(e))return t;var n={};for(var r in t)b(r,e)||(n[r]=t[r]);for(var r in e)b(r,t)||(n[r]=e[r]);return n}},Z=function(e,t){return(0,i.pipe)(e,M(t))},Q=function(e,t){return(0,i.pipe)(e,C(t))},ee=function(e){var t=eS(e);return function(e,n,r){return(0,i.pipe)(e,t(n,r))}},et=function(e){return function(t){var n=eT(e)(t);return function(e,t){return(0,i.pipe)(e,n(t))}}},en=function(e){var t=eI(e);return function(e,n,r){return(0,i.pipe)(e,t(n,r))}},er=function(e,t){return(0,i.pipe)(e,ey(t))},ei=function(e,t){return(0,i.pipe)(e,eg(t))},eo=function(e,t){return(0,i.pipe)(e,e_(t))},eu=function(e,t){return(0,i.pipe)(e,eb(t))},ea=function(e){var t=E(e);return function(e,n,r){return(0,i.pipe)(e,t(n,r))}},ec=function(e){var t=P(e);return function(e){var n=t(e);return function(e,t){return(0,i.pipe)(e,n(t))}}},ef=function(e){var t=k(e);return function(e,n,r){return(0,i.pipe)(e,t(n,r))}},el=function(e,t){return(0,i.pipe)(e,A(t))},ep=function(e,t){return(0,i.pipe)(e,j(t))},ed=function(e,t){return(0,i.pipe)(e,q(t))},es=function(e,t){return(0,i.pipe)(e,G(t))},em=function(e){var t=ev(e);return function(e){var n=t(e);return function(e,t){return n(e,(0,i.flow)(i.SK,t))}}},eh=function(e){var t=em(e);return function(e){var n=t(e);return function(e){return n(e,i.identity)}}},ev=function(e){return function(t){var n=m(e);return function(e,r){var i=n(e);if(0===i.length)return t.of(x);for(var o=t.of({}),u=function(n){o=t.ap(t.map(o,function(e){return function(t){var r;return Object.assign({},e,((r={})[n]=t,r))}}),r(n,e[n]))},a=0;a<i.length;a++)u(i[a]);return o}}},ey=function(e){return G(function(t,n){return e(n)})},eg=function(e){return q(function(t,n){return e(n)})},e_=function(e){return j(function(t,n){return e(n)})},eb=function(e){return A(function(t,n){return e(n)})};function eS(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=E(e[0]);return function(e,t){return n(e,function(e,n,r){return t(n,r)})}}return eS(c.Ord).apply(void 0,e)}function eT(e){if("compare"in e){var t=P(e);return function(e){var n=t(e);return function(e){return n(function(t,n){return e(n)})}}}return eT(c.Ord)(e)}function eI(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=k(e[0]);return function(e,t){return n(e,function(e,n,r){return t(n,r)})}}return eI(c.Ord).apply(void 0,e)}var eR=function(e){var t={};for(var n in e)if(u.e$.call(e,n)){var r=e[n];u.pC(r)&&(t[n]=r.value)}return t},ew=function(e){var t={},n={};for(var r in e)if(u.e$.call(e,r)){var i=e[r];u.nM(i)?t[r]=i.left:n[r]=i.right}return(0,a.separated)(t,n)},eO="ReadonlyRecord";function ex(e){var t=w(e);return(0,r.fromEquals)(function(e,n){return t(e)(n)&&t(n)(e)})}function eC(e){return{concat:function(t,n){if(s(t))return n;if(s(n))return t;var r=Object.assign({},t);for(var i in n)u.e$.call(n,i)&&(r[i]=u.e$.call(t,i)?e.concat(t[i],n[i]):n[i]);return r},empty:x}}var eM={URI:eO,map:Z},eE=(0,o.flap)(eM),eP={URI:eO,map:Z,mapWithIndex:Q},ek=function(e){return{URI:eO,reduce:ee(e),foldMap:et(e),reduceRight:en(e)}},eF=function(e){return{URI:eO,reduce:ee(e),foldMap:et(e),reduceRight:en(e),reduceWithIndex:ea(e),foldMapWithIndex:ec(e),reduceRightWithIndex:ef(e)}},eW={URI:eO,compact:eR,separate:ew},eD={URI:eO,map:Z,compact:eR,separate:ew,filter:er,filterMap:ei,partition:eo,partitionMap:eu},eN={URI:eO,map:Z,mapWithIndex:Q,compact:eR,separate:ew,filter:er,filterMap:ei,partition:eo,partitionMap:eu,filterMapWithIndex:ed,filterWithIndex:es,partitionMapWithIndex:el,partitionWithIndex:ep},eL=function(e){return{URI:eO,map:Z,reduce:ee(e),foldMap:et(e),reduceRight:en(e),traverse:em(e),sequence:eh(e)}},eU=function(e){return{URI:eO,map:Z,mapWithIndex:Q,reduce:ee(e),foldMap:et(e),reduceRight:en(e),reduceWithIndex:ea(e),foldMapWithIndex:ec(e),reduceRightWithIndex:ef(e),traverse:em(e),sequence:eh(e),traverseWithIndex:ev(e)}},eA=function(e){var t=eL(e);return{URI:eO,map:Z,reduce:ee(e),foldMap:et(e),reduceRight:en(e),traverse:t.traverse,sequence:t.sequence,compact:eR,separate:ew,filter:er,filterMap:ei,partition:eo,partitionMap:eu,wither:(0,f.witherDefault)(t,eW),wilt:(0,f.wiltDefault)(t,eW)}},ej=function(e){var t=$(e);return{concat:function(e,n){return t(n)(e)}}},eq=function(e){return{concat:ej(e).concat,empty:x}},eG=function(e){var t=X(e);return{concat:function(e,n){return t(n)(e)}}},eY=function(){return{concat:function(e,t){return J(t)(e)}}},eB={URI:eO,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord)},eK={URI:eO,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord),reduceWithIndex:ea(c.Ord),foldMapWithIndex:ec(c.Ord),reduceRightWithIndex:ef(c.Ord)},eV={URI:eO,map:Z,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord),traverse:em(c.Ord),sequence:N},ez={URI:eO,map:Z,mapWithIndex:Q,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord),reduceWithIndex:ea(c.Ord),foldMapWithIndex:ec(c.Ord),reduceRightWithIndex:ef(c.Ord),traverse:em(c.Ord),sequence:N,traverseWithIndex:ev(c.Ord)},eH=(0,f.witherDefault)(eV,eW),e$=(0,f.wiltDefault)(eV,eW),eX={URI:eO,map:Z,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord),traverse:em(c.Ord),sequence:N,compact:eR,separate:ew,filter:er,filterMap:ei,partition:eo,partitionMap:eu,wither:eH,wilt:e$},eJ=_;function eZ(e,t){return u.e$.call(void 0===t?this:t,e)}var eQ={URI:eO,map:Z,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord),traverse:em(c.Ord),sequence:N,compact:eR,separate:ew,filter:er,filterMap:ei,partition:eo,partitionMap:eu,mapWithIndex:Q,reduceWithIndex:ea(c.Ord),foldMapWithIndex:ec(c.Ord),reduceRightWithIndex:ef(c.Ord),filterMapWithIndex:ed,filterWithIndex:es,partitionMapWithIndex:el,partitionWithIndex:ep,traverseWithIndex:ev(c.Ord),wither:eH,wilt:e$}},99156:function(e,t,n){n.r(t),n.d(t,{URI:function(){return N},chain:function(){return d},compact:function(){return w},difference:function(){return g},elem:function(){return W},empty:function(){return C},every:function(){return k},filter:function(){return s},filterMap:function(){return x},foldMap:function(){return b},fromArray:function(){return Y},fromReadonlyArray:function(){return f},fromSet:function(){return a},getDifferenceMagma:function(){return G},getEq:function(){return U},getIntersectionSemigroup:function(){return q},getShow:function(){return L},getUnionMonoid:function(){return j},getUnionSemigroup:function(){return A},insert:function(){return T},intersection:function(){return v},isEmpty:function(){return M},isSubset:function(){return F},map:function(){return p},partition:function(){return m},partitionMap:function(){return y},reduce:function(){return _},reduceRight:function(){return S},remove:function(){return I},separate:function(){return O},singleton:function(){return c},size:function(){return E},some:function(){return P},toReadonlyArray:function(){return D},toSet:function(){return l},toggle:function(){return R},union:function(){return h}});var r=n(65191),i=n(42275),o=n(88491),u=n(34219),a=function(e){return new Set(e)},c=function(e){return new Set([e])},f=function(e){return function(t){for(var n=t.length,r=new Set,i=W(e),o=0;o<n;o++){var u=t[o];i(u,r)||r.add(u)}return r}};function l(e){return new Set(e)}function p(e){var t=W(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);t(i,r)||r.add(i)}),r}}}function d(e){var t=W(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){e(n).forEach(function(e){t(e,r)||r.add(e)})}),r}}}function s(e){return function(t){for(var n,r=t.values(),i=new Set;!(n=r.next()).done;){var o=n.value;e(o)&&i.add(o)}return i}}function m(e){return function(t){for(var n,r=t.values(),i=new Set,o=new Set;!(n=r.next()).done;){var a=n.value;e(a)?i.add(a):o.add(a)}return(0,u.separated)(o,i)}}function h(e){var t=W(e);return function(n,r){if(void 0===r){var i=h(e);return function(e){return i(n,e)}}if(M(n))return r;if(M(r))return n;var o=new Set(n);return r.forEach(function(e){t(e,o)||o.add(e)}),o}}function v(e){var t=W(e);return function(n,r){if(void 0===r){var i=v(e);return function(e){return i(e,n)}}if(M(n)||M(r))return C;var o=new Set;return n.forEach(function(e){t(e,r)&&o.add(e)}),o}}function y(e,t){return function(n){return function(r){for(var i,o=r.values(),a=new Set,c=new Set,f=W(e),l=W(t);!(i=o.next()).done;){var p=n(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 g(e){var t=W(e);return function(n,r){if(void 0===r){var i=g(e);return function(e){return i(e,n)}}return s(function(e){return!t(e,r)})(n)}}function _(e){var t=D(e);return function(e,n){return function(r){return t(r).reduce(n,e)}}}function b(e,t){var n=D(e);return function(e){return function(r){return n(r).reduce(function(n,r){return t.concat(n,e(r))},t.empty)}}}var S=function(e){var t=D(e);return function(e,n){return function(r){return t(r).reduceRight(function(e,t){return n(t,e)},e)}}};function T(e){var t=W(e);return function(e){return function(n){if(t(e)(n))return n;var r=new Set(n);return r.add(e),r}}}var I=function(e){return function(t){return function(n){return s(function(n){return!e.equals(t,n)})(n)}}},R=function(e){var t=W(e),n=I(e),r=T(e);return function(e){return function(i){return(t(e,i)?n:r)(e)(i)}}},w=function(e){return x(e)(i.identity)};function O(e,t){return function(n){var r=W(e),i=W(t),o=new Set,a=new Set;return n.forEach(function(e){switch(e._tag){case"Left":r(e.left,o)||o.add(e.left);break;case"Right":i(e.right,a)||a.add(e.right)}}),(0,u.separated)(o,a)}}function x(e){var t=W(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);"Some"!==i._tag||t(i.value,r)||r.add(i.value)}),r}}}var C=new Set,M=function(e){return 0===e.size},E=function(e){return e.size},P=function(e){return function(t){for(var n,r=t.values(),i=!1;!i&&!(n=r.next()).done;)i=e(n.value);return i}};function k(e){return(0,o.not)(P((0,o.not)(e)))}function F(e){var t=W(e);return function(n,r){if(void 0===r){var i=F(e);return function(e){return i(e,n)}}return k(function(e){return t(e,r)})(n)}}function W(e){return function(t,n){if(void 0===n){var r,i=W(e);return function(e){return i(t,e)}}for(var o=n.values(),u=!1;!u&&!(r=o.next()).done;)u=e.equals(t,r.value);return u}}var D=function(e){return function(t){var n=[];return t.forEach(function(e){return n.push(e)}),n.sort(e.compare)}},N="ReadonlySet";function L(e){return{show:function(t){var n=[];return t.forEach(function(t){n.push(e.show(t))}),"new Set([".concat(n.sort().join(", "),"])")}}}function U(e){var t=F(e);return(0,r.fromEquals)(function(e,n){return t(e,n)&&t(n,e)})}var A=function(e){return{concat:h(e)}},j=function(e){return{concat:A(e).concat,empty:C}},q=function(e){return{concat:v(e)}},G=function(e){return{concat:g(e)}},Y=f},3291:function(e,t,n){n.r(t),n.d(t,{concatAll:function(){return v},constant:function(){return f},first:function(){return m},fold:function(){return x},getDualSemigroup:function(){return I},getFirstSemigroup:function(){return b},getFunctionSemigroup:function(){return E},getIntercalateSemigroup:function(){return O},getJoinSemigroup:function(){return R},getLastSemigroup:function(){return _},getMeetSemigroup:function(){return w},getObjectSemigroup:function(){return g},getStructSemigroup:function(){return T},getTupleSemigroup:function(){return S},intercalate:function(){return s},last:function(){return h},max:function(){return c},min:function(){return a},reverse:function(){return l},semigroupAll:function(){return C},semigroupAny:function(){return M},semigroupProduct:function(){return F},semigroupString:function(){return P},semigroupSum:function(){return k},semigroupVoid:function(){return y},struct:function(){return p},tuple:function(){return d}});var r=n(42275),i=n(97963),o=n(76113),u=n(5586),a=function(e){return{concat:u.min(e)}},c=function(e){return{concat:u.max(e)}},f=function(e){return{concat:function(){return e}}},l=o.reverse,p=function(e){return{concat:function(t,n){var r={};for(var o in e)i.e$.call(e,o)&&(r[o]=e[o].concat(t[o],n[o]));return r}}},d=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{concat:function(t,n){return e.map(function(e,r){return e.concat(t[r],n[r])})}}},s=function(e){return function(t){return{concat:function(n,r){return t.concat(n,t.concat(e,r))}}}},m=function(){return{concat:r.identity}},h=function(){return{concat:function(e,t){return t}}},v=o.concatAll,y=f(void 0),g=function(){return{concat:function(e,t){return Object.assign({},e,t)}}},_=h,b=m,S=d,T=p,I=l,R=c,w=a,O=s;function x(e){var t=v(e);return function(e,n){return void 0===n?t(e):t(e)(n)}}var C={concat:function(e,t){return e&&t}},M={concat:function(e,t){return e||t}},E=r.getSemigroup,P={concat:function(e,t){return e+t}},k={concat:function(e,t){return e+t}},F={concat:function(e,t){return e*t}}},34219:function(e,t,n){n.r(t),n.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 u},mapLeft:function(){return a},right:function(){return m},separated:function(){return o}});var r=n(42275),i=n(67560),o=function(e,t){return{left:e,right:t}},u=function(e){return function(t){return o(s(t),e(m(t)))}},a=function(e){return function(t){return o(e(s(t)),m(t))}},c=function(e,t){return function(n){return o(e(s(n)),t(m(n)))}},f="Separated",l={URI:f,mapLeft:function(e,t){return(0,r.pipe)(e,a(t))},bimap:function(e,t,n){return(0,r.pipe)(e,c(t,n))}},p={URI:f,map:function(e,t){return(0,r.pipe)(e,u(t))}},d=(0,i.flap)(p),s=function(e){return e.left},m=function(e){return e.right}},1214:function(e,t,n){n.r(t),n.d(t,{chain:function(){return f},compact:function(){return C},difference:function(){return h},elem:function(){return L},empty:function(){return P},every:function(){return D},filter:function(){return l},filterMap:function(){return E},foldMap:function(){return S},fromArray:function(){return x},getDifferenceMagma:function(){return _},getEq:function(){return a},getIntersectionSemigroup:function(){return g},getShow:function(){return u},getUnionMonoid:function(){return y},getUnionSemigroup:function(){return v},insert:function(){return R},intersection:function(){return s},isEmpty:function(){return k},isSubset:function(){return N},map:function(){return c},partition:function(){return p},partitionMap:function(){return m},reduce:function(){return b},reduceRight:function(){return T},remove:function(){return w},separate:function(){return M},singleton:function(){return I},size:function(){return F},some:function(){return W},subset:function(){return A},toArray:function(){return U},toggle:function(){return O},union:function(){return d}});var r=n(42275),i=n(99156),o=n(34219),u=i.getShow,a=i.getEq;function c(e){var t=L(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);t(i,r)||r.add(i)}),r}}}function f(e){var t=L(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){e(n).forEach(function(e){t(e,r)||r.add(e)})}),r}}}function l(e){return function(t){for(var n,r=t.values(),i=new Set;!(n=r.next()).done;){var o=n.value;e(o)&&i.add(o)}return i}}function p(e){return function(t){for(var n,r=t.values(),i=new Set,u=new Set;!(n=r.next()).done;){var a=n.value;e(a)?i.add(a):u.add(a)}return(0,o.separated)(u,i)}}function d(e){var t=L(e);return function(n,r){if(void 0===r){var i=d(e);return function(e){return i(n,e)}}if(k(n))return r;if(k(r))return n;var o=new Set(n);return r.forEach(function(e){t(e,o)||o.add(e)}),o}}function s(e){var t=L(e);return function(n,r){if(void 0===r){var i=s(e);return function(e){return i(e,n)}}if(k(n)||k(r))return new Set;var o=new Set;return n.forEach(function(e){t(e,r)&&o.add(e)}),o}}function m(e,t){return function(n){return function(r){for(var i,u=r.values(),a=new Set,c=new Set,f=L(e),l=L(t);!(i=u.next()).done;){var p=n(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 h(e){var t=L(e);return function(n,r){if(void 0===r){var i=h(e);return function(e){return i(e,n)}}return l(function(e){return!t(e,r)})(n)}}var v=function(e){return{concat:d(e)}},y=function(e){return{concat:v(e).concat,empty:new Set}},g=function(e){return{concat:s(e)}},_=function(e){return{concat:h(e)}},b=i.reduce,S=i.foldMap,T=i.reduceRight,I=function(e){return new Set([e])};function R(e){var t=L(e);return function(e){return function(n){if(t(e)(n))return n;var r=new Set(n);return r.add(e),r}}}var w=function(e){return function(t){return function(n){return l(function(n){return!e.equals(t,n)})(n)}}},O=function(e){var t=L(e),n=w(e),r=R(e);return function(e){return function(i){return(t(e,i)?n:r)(e)(i)}}},x=function(e){return function(t){for(var n=t.length,r=new Set,i=L(e),o=0;o<n;o++){var u=t[o];i(u,r)||r.add(u)}return r}},C=function(e){return E(e)(r.identity)};function M(e,t){return function(n){var r=L(e),i=L(t),u=new Set,a=new Set;return n.forEach(function(e){switch(e._tag){case"Left":r(e.left,u)||u.add(e.left);break;case"Right":i(e.right,a)||a.add(e.right)}}),(0,o.separated)(u,a)}}function E(e){var t=L(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);"Some"!==i._tag||t(i.value,r)||r.add(i.value)}),r}}}var P=new Set,k=function(e){return 0===e.size},F=function(e){return e.size},W=i.some,D=i.every,N=i.isSubset,L=i.elem,U=function(e){return function(t){var n=[];return t.forEach(function(e){return n.push(e)}),n.sort(e.compare)}},A=i.isSubset},76511:function(e,t,n){n.r(t),n.d(t,{filterE:function(){return u},wiltDefault:function(){return i},witherDefault:function(){return o}});var r=n(97963);function i(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.separate)}}}function o(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.compact)}}}function u(e){return function(t){var n=e.wither(t);return function(e){return function(i){return n(i,function(n){return t.map(e(n),function(e){return e?r.G(n):r.YP})})}}}}},28957:function(e,t,n){function r(e,t){return function(n){return n?t.of(void 0):e.zero()}}n.r(t),n.d(t,{guard:function(){return r}})},42275:function(e,t,n){n.r(t),n.d(t,{SK:function(){return C},absurd:function(){return I},apply:function(){return f},constFalse:function(){return m},constNull:function(){return h},constTrue:function(){return s},constUndefined:function(){return v},constVoid:function(){return y},constant:function(){return d},decrement:function(){return T},dual:function(){return P},flip:function(){return g},flow:function(){return _},getBooleanAlgebra:function(){return i},getEndomorphismMonoid:function(){return E},getMonoid:function(){return u},getRing:function(){return c},getSemigroup:function(){return o},getSemiring:function(){return a},hole:function(){return x},identity:function(){return l},increment:function(){return S},not:function(){return M},pipe:function(){return O},tuple:function(){return b},tupled:function(){return R},unsafeCoerce:function(){return p},untupled:function(){return w}});var r=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},i=function(e){return function(){return{meet:function(t,n){return function(r){return e.meet(t(r),n(r))}},join:function(t,n){return function(r){return e.join(t(r),n(r))}},zero:function(){return e.zero},one:function(){return e.one},implies:function(t,n){return function(r){return e.implies(t(r),n(r))}},not:function(t){return function(n){return e.not(t(n))}}}}},o=function(e){return function(){return{concat:function(t,n){return function(r){return e.concat(t(r),n(r))}}}}},u=function(e){var t=o(e);return function(){return{concat:t().concat,empty:function(){return e.empty}}}},a=function(e){return{add:function(t,n){return function(r){return e.add(t(r),n(r))}},zero:function(){return e.zero},mul:function(t,n){return function(r){return e.mul(t(r),n(r))}},one:function(){return e.one}}},c=function(e){var t=a(e);return{add:t.add,mul:t.mul,one:t.one,zero:t.zero,sub:function(t,n){return function(r){return e.sub(t(r),n(r))}}}},f=function(e){return function(t){return t(e)}};function l(e){return e}var p=l;function d(e){return function(){return e}}var s=d(!0),m=d(!1),h=d(null),v=d(void 0),y=v;function g(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length>1?e(t[1],t[0]):function(n){return e(n)(t[0])}}}function _(e,t,n,r,i,o,u,a,c){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return o(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return u(o(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return a(u(o(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return c(a(u(o(i(r(n(t(e.apply(this,arguments)))))))))}}}function b(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e}function S(e){return e+1}function T(e){return e-1}function I(e){throw Error("Called `absurd` function which should be uncallable")}function R(e){return function(t){return e.apply(void 0,t)}}function w(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(t)}}function O(e,t,n,r,i,o,u,a,c){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return o(i(r(n(t(e)))));case 7:return u(o(i(r(n(t(e))))));case 8:return a(u(o(i(r(n(t(e)))))));case 9:return c(a(u(o(i(r(n(t(e))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}}var x=I,C=function(e,t){return t};function M(e){return function(t){return!e(t)}}var E=function(){return{concat:function(e,t){return _(e,t)},empty:l}},P=function(e,t){var n="number"==typeof e?function(t){return t.length>=e}:e;return function(){var e=Array.from(arguments);return n(arguments)?t.apply(this,e):function(n){return t.apply(void 0,r([n],e,!1))}}}},9554:function(e,t,n){n.r(t),n.d(t,{alt:function(){return r},alternative:function(){return i},applicative:function(){return eG},apply:function(){return eA},array:function(){return eY},bifunctor:function(){return o},boolean:function(){return u},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 m},chain:function(){return to},chainRec:function(){return tu},choice:function(){return h},comonad:function(){return v},compactable:function(){return y},console:function(){return g},const:function(){return tS},contravariant:function(){return _},date:function(){return b},distributiveLattice:function(){return f},either:function(){return tE},eitherT:function(){return S},endomorphism:function(){return t7},eq:function(){return t3},extend:function(){return T},field:function(){return I},filterable:function(){return R},filterableWithIndex:function(){return w},foldable:function(){return O},foldableWithIndex:function(){return x},fromEither:function(){return n_},fromIO:function(){return C},fromReader:function(){return E},fromState:function(){return k},fromTask:function(){return F},fromThese:function(){return W},function:function(){return e8},functor:function(){return tp},functorWithIndex:function(){return D},group:function(){return N},heytingAlgebra:function(){return L},hkt:function(){return U},identity:function(){return A},invariant:function(){return j},io:function(){return q},ioEither:function(){return G},ioOption:function(){return B},ioRef:function(){return K},joinSemilattice:function(){return V},json:function(){return z},lattice:function(){return H},magma:function(){return fI},map:function(){return fR},meetSemilattice:function(){return $},monad:function(){return X},monadIO:function(){return J},monadTask:function(){return Z},monadThrow:function(){return Q},monoid:function(){return fw},naturalTransformation:function(){return ee},nonEmptyArray:function(){return fO},number:function(){return tT},option:function(){return td},optionT:function(){return Y},ord:function(){return e6},ordering:function(){return et},pipeable:function(){return fU},pointed:function(){return en},predicate:function(){return t6},profunctor:function(){return er},random:function(){return ei},reader:function(){return M},readerEither:function(){return eo},readerIO:function(){return ea},readerT:function(){return eu},readerTask:function(){return ef},readerTaskEither:function(){return ep},readonlyArray:function(){return bR},readonlyMap:function(){return bw},readonlyNonEmptyArray:function(){return bO},readonlyRecord:function(){return bx},readonlySet:function(){return bC},readonlyTuple:function(){return ed},record:function(){return es},refinement:function(){return em},ring:function(){return eh},semigroup:function(){return Su},semigroupoid:function(){return ev},semiring:function(){return ey},separated:function(){return ts},set:function(){return T8},show:function(){return eg},state:function(){return P},stateReaderTaskEither:function(){return eb},stateT:function(){return e_},store:function(){return eS},string:function(){return Sa},strong:function(){return eT},struct:function(){return eI},task:function(){return ec},taskEither:function(){return el},taskOption:function(){return eR},taskThese:function(){return ex},these:function(){return ew},theseT:function(){return eO},traced:function(){return eC},traversable:function(){return eM},traversableWithIndex:function(){return eE},tree:function(){return eP},tuple:function(){return ek},unfoldable:function(){return eF},validationT:function(){return eW},void:function(){return eD},witherable:function(){return Sc},writer:function(){return eN},writerT:function(){return eL},zero:function(){return a7}});var r={};n.r(r),n.d(r,{altAll:function(){return eU}});var i={};n.r(i),n.d(i,{altAll:function(){return ej},getAlternativeMonoid:function(){return eq}});var o={};n.r(o);var u={};n.r(u),n.d(u,{BooleanAlgebra:function(){return eX},Eq:function(){return e$},MonoidAll:function(){return eQ},MonoidAny:function(){return e0},Ord:function(){return e1},SemigroupAll:function(){return eJ},SemigroupAny:function(){return eZ},Show:function(){return e2},fold:function(){return eH},foldW:function(){return eV},isBoolean:function(){return eB},match:function(){return ez},matchW:function(){return eK}});var a={};n.r(a),n.d(a,{booleanAlgebraBoolean:function(){return e4},booleanAlgebraVoid:function(){return e3},getDualBooleanAlgebra:function(){return e5},getFunctionBooleanAlgebra:function(){return e9},reverse:function(){return e7}});var c={};n.r(c),n.d(c,{boundedNumber:function(){return tn},clamp:function(){return te},reverse:function(){return tt}});var f={};n.r(f),n.d(f,{getMinMaxDistributiveLattice:function(){return tr}});var l={};n.r(l),n.d(l,{getMinMaxBoundedDistributiveLattice:function(){return ti}});var p={};n.r(p);var d={};n.r(d);var s={};n.r(s);var m={};n.r(m);var h={};n.r(h),n.d(h,{fanIn:function(){return tc},fanin:function(){return tl},split:function(){return ta},splitChoice:function(){return tf}});var v={};n.r(v);var y={};n.r(y),n.d(y,{compact:function(){return tm},getCompactableComposition:function(){return tv},separate:function(){return th}});var g={};n.r(g),n.d(g,{error:function(){return t_},info:function(){return tb},log:function(){return ty},warn:function(){return tg}});var _={};n.r(_);var b={};n.r(b),n.d(b,{Eq:function(){return tI},Ord:function(){return tx},create:function(){return tC},eqDate:function(){return tR},eqMonth:function(){return tw},eqYear:function(){return tO},now:function(){return tM}});var S={};n.r(S),n.d(S,{alt:function(){return tG},altValidation:function(){return tz},ap:function(){return tA},bimap:function(){return tY},chain:function(){return tj},chainNullableK:function(){return tL},flatMap:function(){return tq},fromNullable:function(){return tD},fromNullableK:function(){return tN},getEitherM:function(){return t8},getOrElse:function(){return tX},left:function(){return tk},leftF:function(){return tW},map:function(){return tU},mapBoth:function(){return tB},mapError:function(){return tV},mapLeft:function(){return tK},match:function(){return tH},matchE:function(){return t$},orElse:function(){return tJ},orElseFirst:function(){return tZ},orLeft:function(){return t0},right:function(){return tP},rightF:function(){return tF},swap:function(){return t1},tapError:function(){return tQ},toUnion:function(){return t2}});var T={};n.r(T);var I={};n.r(I),n.d(I,{fieldNumber:function(){return t9},gcd:function(){return t5},lcm:function(){return t4}});var R={};n.r(R),n.d(R,{filter:function(){return ne},filterMap:function(){return nt},getFilterableComposition:function(){return ni},partition:function(){return nn},partitionMap:function(){return nr}});var w={};n.r(w);var O={};n.r(O),n.d(O,{foldM:function(){return nd},foldMap:function(){return nu},getFoldableComposition:function(){return nm},intercalate:function(){return nf},reduce:function(){return no},reduceM:function(){return nc},reduceRight:function(){return na},toArray:function(){return ns},toReadonlyArray:function(){return nl},traverse_:function(){return np}});var x={};n.r(x),n.d(x,{foldMapWithIndex:function(){return nv},getFoldableWithIndexComposition:function(){return ng},reduceRightWithIndex:function(){return ny},reduceWithIndex:function(){return nh}});var C={};n.r(C),n.d(C,{chainFirstIOK:function(){return nT},chainIOK:function(){return nS},fromIOK:function(){return nb},tapIO:function(){return nI}});var M={};n.r(M),n.d(M,{ApT:function(){return rc},Applicative:function(){return n8},Apply:function(){return nZ},Category:function(){return n9},Chain:function(){return n7},Choice:function(){return re},Do:function(){return ro},Functor:function(){return n$},Monad:function(){return n3},Pointed:function(){return nJ},Profunctor:function(){return n4},Strong:function(){return n6},URI:function(){return nH},ap:function(){return nN},apFirst:function(){return nQ},apFirstW:function(){return n0},apS:function(){return ru},apSW:function(){return ra},apSecond:function(){return n1},apSecondW:function(){return n2},apW:function(){return nD},ask:function(){return nw},asks:function(){return nO},asksReader:function(){return nM},asksReaderW:function(){return nC},bind:function(){return rr},bindTo:function(){return rt},bindW:function(){return ri},chain:function(){return rh},chainFirst:function(){return rv},chainFirstW:function(){return ry},chainW:function(){return rm},compose:function(){return nq},first:function(){return nB},flap:function(){return nX},flatMap:function(){return nU},flatten:function(){return nj},flattenW:function(){return nA},getMonoid:function(){return rb},getSemigroup:function(){return r_},id:function(){return nY},left:function(){return nV},let:function(){return rn},local:function(){return nx},map:function(){return nW},of:function(){return nL},promap:function(){return nG},reader:function(){return rg},right:function(){return nz},second:function(){return nK},sequenceArray:function(){return rs},tap:function(){return n5},traverseArray:function(){return rd},traverseArrayWithIndex:function(){return rp},traverseReadonlyArrayWithIndex:function(){return rl},traverseReadonlyNonEmptyArrayWithIndex:function(){return rf}});var E={};n.r(E),n.d(E,{ask:function(){return rS},asks:function(){return rT},chainFirstReaderK:function(){return rw},chainReaderK:function(){return rR},fromReaderK:function(){return rI},tapReader:function(){return rO}});var P={};n.r(P),n.d(P,{Applicative:function(){return rK},Apply:function(){return rG},Chain:function(){return rV},FromState:function(){return r$},Functor:function(){return rA},Monad:function(){return rz},Pointed:function(){return rq},URI:function(){return rU},ap:function(){return rW},apFirst:function(){return rY},apS:function(){return r1},apSecond:function(){return rB},bind:function(){return r0},bindTo:function(){return rZ},chain:function(){return r4},chainFirst:function(){return r9},evalState:function(){return r6},evaluate:function(){return rX},execState:function(){return ie},execute:function(){return rJ},flap:function(){return rj},flatMap:function(){return rN},flatten:function(){return rL},get:function(){return rx},gets:function(){return rE},let:function(){return rQ},map:function(){return rF},modify:function(){return rM},of:function(){return rD},put:function(){return rC},sequenceArray:function(){return r5},state:function(){return it},tap:function(){return rH},traverseArray:function(){return r3},traverseArrayWithIndex:function(){return r7},traverseReadonlyArrayWithIndex:function(){return r8},traverseReadonlyNonEmptyArrayWithIndex:function(){return r2}});var k={};n.r(k),n.d(k,{chainStateK:function(){return ic},fromStateK:function(){return ia},get:function(){return ir},gets:function(){return iu},modify:function(){return io},put:function(){return ii}});var F={};n.r(F),n.d(F,{chainFirstTaskK:function(){return id},chainTaskK:function(){return ip},fromTaskK:function(){return il},tapTask:function(){return is}});var W={};n.r(W),n.d(W,{fromTheseK:function(){return im}});var D={};n.r(D),n.d(D,{getFunctorWithIndexComposition:function(){return iv},mapWithIndex:function(){return ih}});var N={};n.r(N);var L={};n.r(L);var U={};n.r(U);var A={};n.r(A),n.d(A,{Alt:function(){return i2},Applicative:function(){return iX},Apply:function(){return iz},Chain:function(){return iJ},ChainRec:function(){return i7},Comonad:function(){return i8},Do:function(){return i3},Foldable:function(){return i0},Functor:function(){return iB},Monad:function(){return iZ},Pointed:function(){return iV},Traversable:function(){return i1},URI:function(){return iq},alt:function(){return ij},altW:function(){return iA},ap:function(){return ix},apFirst:function(){return iH},apS:function(){return i6},apSecond:function(){return i$},bind:function(){return i9},bindTo:function(){return i5},chain:function(){return oe},chainFirst:function(){return iQ},duplicate:function(){return ik},extend:function(){return iE},extract:function(){return iP},flap:function(){return iK},flatMap:function(){return iM},flatten:function(){return iF},foldMap:function(){return iD},getEq:function(){return iY},getShow:function(){return iG},identity:function(){return ot},let:function(){return i4},map:function(){return iO},of:function(){return iC},reduce:function(){return iW},reduceRight:function(){return iN},sequence:function(){return iU},traverse:function(){return iL}});var j={};n.r(j);var q={};n.r(q),n.d(q,{ApT:function(){return ok},Applicative:function(){return o_},Apply:function(){return ov},Chain:function(){return ob},ChainRec:function(){return ow},Do:function(){return ox},FromIO:function(){return oO},Functor:function(){return op},Monad:function(){return oS},MonadIO:function(){return oR},Pointed:function(){return oh},URI:function(){return ol},ap:function(){return ou},apFirst:function(){return oy},apS:function(){return oP},apSecond:function(){return og},as:function(){return od},asUnit:function(){return os},bind:function(){return oE},bindTo:function(){return oC},chain:function(){return oU},chainFirst:function(){return oA},flap:function(){return om},flatMap:function(){return oc},flatten:function(){return of},fromIO:function(){return oI},getMonoid:function(){return oG},getSemigroup:function(){return oq},io:function(){return oj},let:function(){return oM},map:function(){return oo},of:function(){return oa},sequenceArray:function(){return oL},tap:function(){return oT},traverseArray:function(){return oN},traverseArrayWithIndex:function(){return oD},traverseReadonlyArrayWithIndex:function(){return oW},traverseReadonlyNonEmptyArrayWithIndex:function(){return oF}});var G={};n.r(G),n.d(G,{Alt:function(){return uK},ApT:function(){return av},Applicative:function(){return ax},ApplicativePar:function(){return uN},ApplicativeSeq:function(){return uL},ApplyPar:function(){return uP},Bifunctor:function(){return uE},Chain:function(){return uU},Do:function(){return af},FromEither:function(){return uj},FromIO:function(){return uq},Functor:function(){return uw},Monad:function(){return uA},MonadIO:function(){return uV},MonadThrow:function(){return uz},Pointed:function(){return uM},URI:function(){return ub},alt:function(){return uy},altW:function(){return ug},ap:function(){return up},apFirst:function(){return uk},apFirstW:function(){return uF},apS:function(){return am},apSW:function(){return ah},apSecond:function(){return uW},apSecondW:function(){return uD},apW:function(){return ud},as:function(){return uO},asUnit:function(){return ux},bimap:function(){return uc},bind:function(){return ad},bindTo:function(){return al},bindW:function(){return as},bracket:function(){return aa},bracketW:function(){return ac},chain:function(){return aC},chainEitherK:function(){return u6},chainEitherKW:function(){return ae},chainFirst:function(){return aE},chainFirstEitherK:function(){return at},chainFirstEitherKW:function(){return an},chainFirstIOK:function(){return u$},chainFirstW:function(){return aP},chainIOK:function(){return u9},chainOptionK:function(){return uZ},chainOptionKW:function(){return uQ},chainW:function(){return aM},filterOrElse:function(){return ai},filterOrElseW:function(){return ao},flap:function(){return uC},flatMap:function(){return um},flatMapEither:function(){return u5},flatMapIO:function(){return u4},flatMapNullable:function(){return u7},flatMapOption:function(){return u3},flatten:function(){return uv},flattenW:function(){return uh},fold:function(){return oZ},foldW:function(){return o0},fromEither:function(){return oz},fromEitherK:function(){return au},fromIO:function(){return oH},fromIOK:function(){return uH},fromOption:function(){return uX},fromOptionK:function(){return uJ},fromPredicate:function(){return ar},getAltIOValidation:function(){return uT},getApplicativeIOValidation:function(){return uS},getApplyMonoid:function(){return aN},getApplySemigroup:function(){return aD},getCompactable:function(){return uI},getFilterable:function(){return uR},getIOValidation:function(){return aU},getOrElse:function(){return o1},getOrElseW:function(){return o2},getSemigroup:function(){return aL},ioEither:function(){return aW},left:function(){return oY},leftIO:function(){return oV},let:function(){return ap},liftNullable:function(){return u1},liftOption:function(){return u2},map:function(){return uu},mapBoth:function(){return ua},mapError:function(){return uf},mapLeft:function(){return ul},match:function(){return o$},matchE:function(){return oJ},matchEW:function(){return oQ},matchW:function(){return oX},of:function(){return us},orElse:function(){return o5},orElseFirst:function(){return ak},orElseFirstIOK:function(){return o6},orElseFirstW:function(){return aF},orElseW:function(){return o4},orLeft:function(){return ue},right:function(){return oB},rightIO:function(){return oK},sequenceArray:function(){return aI},sequenceSeqArray:function(){return aO},swap:function(){return ut},tap:function(){return uG},tapEither:function(){return uY},tapError:function(){return o9},tapIO:function(){return uB},throwError:function(){return u_},toUnion:function(){return o3},traverseArray:function(){return aT},traverseArrayWithIndex:function(){return aS},traverseReadonlyArrayWithIndex:function(){return ag},traverseReadonlyArrayWithIndexSeq:function(){return ab},traverseReadonlyNonEmptyArrayWithIndex:function(){return ay},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return a_},traverseSeqArray:function(){return aw},traverseSeqArrayWithIndex:function(){return aR},tryCatch:function(){return o8},tryCatchK:function(){return o7}});var Y={};n.r(Y),n.d(Y,{alt:function(){return a2},ap:function(){return aQ},chain:function(){return a0},chainNullableK:function(){return aB},chainOptionK:function(){return aV},flatMap:function(){return a1},fromEither:function(){return aH},fromF:function(){return aq},fromNullable:function(){return aG},fromNullableK:function(){return aY},fromOptionK:function(){return aK},fromPredicate:function(){return az},getOptionM:function(){return a8},getOrElse:function(){return aJ},map:function(){return aZ},match:function(){return a$},matchE:function(){return aX},some:function(){return aA},zero:function(){return aj}});var B={};n.r(B),n.d(B,{Alt:function(){return cZ},Alternative:function(){return c1},ApT:function(){return fm},Applicative:function(){return cK},Apply:function(){return cG},Chain:function(){return cV},Compactable:function(){return c7},Do:function(){return ff},Filterable:function(){return c3},FromEither:function(){return cz},FromIO:function(){return cH},Functor:function(){return cL},Monad:function(){return c2},MonadIO:function(){return c8},Pointed:function(){return cq},URI:function(){return cN},Zero:function(){return cQ},alt:function(){return c_},altW:function(){return cb},ap:function(){return ch},apFirst:function(){return cY},apS:function(){return fs},apSecond:function(){return cB},as:function(){return cU},asUnit:function(){return cA},bind:function(){return fd},bindTo:function(){return fl},chain:function(){return fy},chainEitherK:function(){return fu},chainFirst:function(){return fg},chainFirstEitherK:function(){return fa},chainFirstIOK:function(){return fi},chainIOK:function(){return fr},chainNullableK:function(){return cd},chainOptionK:function(){return fc},compact:function(){return cI},filter:function(){return cw},filterMap:function(){return cO},flap:function(){return cj},flatMap:function(){return cy},flatMapEither:function(){return fe},flatMapIO:function(){return c9},flatMapNullable:function(){return ft},flatMapOption:function(){return c6},flatten:function(){return cg},fold:function(){return ci},fromEither:function(){return a9},fromEitherK:function(){return fo},fromIO:function(){return a6},fromIOEither:function(){return ce},fromIOK:function(){return fn},fromNullable:function(){return cl},fromNullableK:function(){return cp},fromOption:function(){return a4},fromOptionK:function(){return cs},fromPredicate:function(){return a5},getOrElse:function(){return cu},getOrElseW:function(){return ca},guard:function(){return c0},let:function(){return fp},map:function(){return cm},match:function(){return ct},matchE:function(){return cr},matchEW:function(){return co},matchW:function(){return cn},none:function(){return cT},of:function(){return cv},partition:function(){return cx},partitionMap:function(){return cC},separate:function(){return cR},some:function(){return a3},tap:function(){return c$},tapEither:function(){return cX},tapIO:function(){return cJ},toNullable:function(){return cf},toUndefined:function(){return cc},traverseReadonlyArrayWithIndex:function(){return fv},traverseReadonlyNonEmptyArrayWithIndex:function(){return fh},zero:function(){return cS}});var K={};n.r(K),n.d(K,{IORef:function(){return f_},newIORef:function(){return fb}});var V={};n.r(V);var z={};n.r(z),n.d(z,{parse:function(){return fS},stringify:function(){return fT}});var H={};n.r(H);var $={};n.r($);var X={};n.r(X);var J={};n.r(J);var Z={};n.r(Z);var Q={};n.r(Q);var ee={};n.r(ee);var et={};n.r(et),n.d(et,{Eq:function(){return fE},Monoid:function(){return fk},Semigroup:function(){return fP},eqOrdering:function(){return fN},invert:function(){return fW},match:function(){return fC},matchW:function(){return fx},monoidOrdering:function(){return fL},reverse:function(){return fM},semigroupOrdering:function(){return fD},sign:function(){return fF}});var en={};n.r(en);var er={};n.r(er);var ei={};n.r(ei),n.d(ei,{random:function(){return fA},randomBool:function(){return fG},randomElem:function(){return fY},randomInt:function(){return fj},randomRange:function(){return fq}});var eo={};n.r(eo),n.d(eo,{Alt:function(){return lB},ApT:function(){return py},Applicative:function(){return lD},Apply:function(){return lE},Bifunctor:function(){return lY},Chain:function(){return lN},Do:function(){return pl},FromEither:function(){return lU},FromReader:function(){return lA},Functor:function(){return lw},Monad:function(){return lL},MonadThrow:function(){return lX},Pointed:function(){return lM},URI:function(){return lb},alt:function(){return ly},altW:function(){return lg},ap:function(){return lp},apFirst:function(){return lP},apFirstW:function(){return lk},apS:function(){return ph},apSW:function(){return pv},apSecond:function(){return lF},apSecondW:function(){return lW},apW:function(){return ld},as:function(){return lO},asUnit:function(){return lx},ask:function(){return lK},asks:function(){return lV},asksReaderEither:function(){return f4},asksReaderEitherW:function(){return f5},bimap:function(){return lc},bind:function(){return ps},bindTo:function(){return pp},bindW:function(){return pm},chain:function(){return pI},chainEitherK:function(){return pe},chainEitherKW:function(){return pt},chainFirst:function(){return pw},chainFirstEitherK:function(){return pn},chainFirstEitherKW:function(){return pr},chainFirstReaderK:function(){return lH},chainFirstReaderKW:function(){return l$},chainFirstW:function(){return pO},chainOptionK:function(){return lQ},chainOptionKW:function(){return l0},chainReaderK:function(){return pi},chainReaderKW:function(){return po},chainW:function(){return pR},filterOrElse:function(){return pa},filterOrElseW:function(){return pc},flap:function(){return lC},flatMap:function(){return lm},flatMapEither:function(){return l9},flatMapNullable:function(){return l5},flatMapOption:function(){return l4},flatMapReader:function(){return l6},flatten:function(){return lv},flattenW:function(){return lh},fold:function(){return fQ},foldW:function(){return f1},fromEither:function(){return fH},fromEitherK:function(){return pf},fromOption:function(){return lJ},fromOptionK:function(){return lZ},fromPredicate:function(){return pu},fromReader:function(){return f$},fromReaderK:function(){return lz},getAltReaderValidation:function(){return lR},getApplicativeReaderValidation:function(){return lI},getApplyMonoid:function(){return pP},getApplySemigroup:function(){return pE},getCompactable:function(){return lS},getFilterable:function(){return lT},getOrElse:function(){return f2},getOrElseW:function(){return f8},getReaderValidation:function(){return pF},getSemigroup:function(){return pk},left:function(){return fB},leftReader:function(){return fz},let:function(){return pd},liftNullable:function(){return l8},liftOption:function(){return l7},local:function(){return f3},map:function(){return lu},mapBoth:function(){return la},mapError:function(){return lf},mapLeft:function(){return ll},match:function(){return fX},matchE:function(){return fZ},matchEW:function(){return f0},matchW:function(){return fJ},of:function(){return ls},orElse:function(){return f9},orElseFirst:function(){return px},orElseFirstW:function(){return pC},orElseW:function(){return f6},orLeft:function(){return lt},readerEither:function(){return pM},right:function(){return fK},rightReader:function(){return fV},sequenceArray:function(){return pT},swap:function(){return ln},tap:function(){return lj},tapEither:function(){return lq},tapError:function(){return le},tapReader:function(){return lG},throwError:function(){return l_},toUnion:function(){return f7},traverseArray:function(){return pS},traverseArrayWithIndex:function(){return pb},traverseReadonlyArrayWithIndex:function(){return p_},traverseReadonlyNonEmptyArrayWithIndex:function(){return pg}});var eu={};n.r(eu),n.d(eu,{ap:function(){return pN},chain:function(){return pL},flatMap:function(){return pU},fromNaturalTransformation:function(){return pj},fromReader:function(){return pA},getReaderM:function(){return pq},map:function(){return pD},of:function(){return pW}});var ea={};n.r(ea),n.d(ea,{ApT:function(){return dP},Applicative:function(){return dt},Apply:function(){return p9},Chain:function(){return dn},Do:function(){return dw},FromIO:function(){return du},FromReader:function(){return da},Functor:function(){return p8},Monad:function(){return dr},MonadIO:function(){return di},Pointed:function(){return p4},URI:function(){return p2},ap:function(){return pX},apFirst:function(){return p6},apS:function(){return dM},apSW:function(){return dE},apSecond:function(){return de},apW:function(){return pJ},as:function(){return p7},asUnit:function(){return p3},ask:function(){return dg},asks:function(){return d_},asksReaderIO:function(){return pV},asksReaderIOW:function(){return pK},bind:function(){return dx},bindTo:function(){return dO},bindW:function(){return dC},chain:function(){return dL},chainFirst:function(){return dA},chainFirstIOK:function(){return dy},chainFirstReaderK:function(){return dI},chainFirstReaderKW:function(){return dR},chainFirstW:function(){return dj},chainIOK:function(){return dv},chainReaderK:function(){return dS},chainReaderKW:function(){return dT},chainW:function(){return dU},flap:function(){return p5},flatMap:function(){return pQ},flatMapIO:function(){return dl},flatMapReader:function(){return dp},flatten:function(){return p1},flattenW:function(){return p0},fromIO:function(){return pY},fromIOK:function(){return dh},fromReader:function(){return pG},fromReaderK:function(){return db},local:function(){return pB},map:function(){return p$},of:function(){return pZ},sequenceArray:function(){return dN},tap:function(){return dd},tapIO:function(){return ds},tapReader:function(){return dm},traverseArray:function(){return dD},traverseArrayWithIndex:function(){return dW},traverseReadonlyArrayWithIndex:function(){return dF},traverseReadonlyNonEmptyArrayWithIndex:function(){return dk}});var ec={};n.r(ec),n.d(ec,{ApT:function(){return sb},ApplicativePar:function(){return d4},ApplicativeSeq:function(){return d6},ApplyPar:function(){return d7},ApplySeq:function(){return d9},Chain:function(){return se},Do:function(){return sh},FromIO:function(){return so},FromTask:function(){return ss},Functor:function(){return dQ},Monad:function(){return st},MonadIO:function(){return sn},MonadTask:function(){return si},Pointed:function(){return d8},URI:function(){return dJ},ap:function(){return dz},apFirst:function(){return d3},apS:function(){return s_},apSecond:function(){return d5},as:function(){return d0},asUnit:function(){return d1},bind:function(){return sg},bindTo:function(){return sv},chain:function(){return sP},chainFirst:function(){return sk},chainFirstIOK:function(){return sd},chainIOK:function(){return sp},delay:function(){return dG},flap:function(){return d2},flatMap:function(){return d$},flatMapIO:function(){return sa},flatten:function(){return dX},fromIO:function(){return dq},fromIOK:function(){return sl},fromTask:function(){return sr},getMonoid:function(){return sN},getRaceMonoid:function(){return dZ},getSemigroup:function(){return sD},let:function(){return sy},map:function(){return dV},never:function(){return sm},of:function(){return dH},sequenceArray:function(){return sx},sequenceSeqArray:function(){return sE},tap:function(){return sc},tapIO:function(){return sf},task:function(){return sF},taskSeq:function(){return sW},traverseArray:function(){return sO},traverseArrayWithIndex:function(){return sw},traverseReadonlyArrayWithIndex:function(){return sT},traverseReadonlyArrayWithIndexSeq:function(){return sR},traverseReadonlyNonEmptyArrayWithIndex:function(){return sS},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return sI},traverseSeqArray:function(){return sM},traverseSeqArrayWithIndex:function(){return sC}});var ef={};n.r(ef),n.d(ef,{ApT:function(){return mK},ApplicativePar:function(){return s6},ApplicativeSeq:function(){return mt},ApplyPar:function(){return s5},ApplySeq:function(){return me},Chain:function(){return mn},Do:function(){return mU},FromIO:function(){return mu},FromReader:function(){return mc},FromTask:function(){return ma},Functor:function(){return s1},Monad:function(){return mr},MonadIO:function(){return mi},MonadTask:function(){return mo},Pointed:function(){return s3},URI:function(){return s0},ap:function(){return sH},apFirst:function(){return s4},apS:function(){return mY},apSW:function(){return mB},apSecond:function(){return s9},apW:function(){return s$},as:function(){return s2},asUnit:function(){return s8},ask:function(){return mI},asks:function(){return mR},asksReaderTask:function(){return sY},asksReaderTaskW:function(){return sG},bind:function(){return mq},bindTo:function(){return mA},bindW:function(){return mG},chain:function(){return m1},chainFirst:function(){return m8},chainFirstIOK:function(){return mT},chainFirstReaderIOK:function(){return mW},chainFirstReaderIOKW:function(){return mF},chainFirstReaderK:function(){return mC},chainFirstReaderKW:function(){return mM},chainFirstTaskK:function(){return mL},chainFirstW:function(){return m7},chainIOK:function(){return mS},chainReaderIOK:function(){return mk},chainReaderIOKW:function(){return mP},chainReaderK:function(){return mO},chainReaderKW:function(){return mx},chainTaskK:function(){return mN},chainW:function(){return m2},flap:function(){return s7},flatMap:function(){return sJ},flatMapIO:function(){return mp},flatMapReader:function(){return ms},flatMapReaderIO:function(){return mm},flatMapTask:function(){return md},flatten:function(){return sQ},flattenW:function(){return sZ},fromIO:function(){return sA},fromIOK:function(){return mb},fromReader:function(){return sL},fromReaderIO:function(){return sj},fromReaderIOK:function(){return mE},fromReaderK:function(){return mw},fromTask:function(){return sU},fromTaskK:function(){return mD},getMonoid:function(){return m6},getSemigroup:function(){return m9},let:function(){return mj},local:function(){return sq},map:function(){return sz},of:function(){return sX},readerTask:function(){return m5},readerTaskSeq:function(){return m4},run:function(){return he},sequenceArray:function(){return mZ},sequenceSeqArray:function(){return m3},tap:function(){return mh},tapIO:function(){return mv},tapReader:function(){return my},tapReaderIO:function(){return m_},tapTask:function(){return mg},traverseArray:function(){return mJ},traverseArrayWithIndex:function(){return mX},traverseReadonlyArrayWithIndex:function(){return mz},traverseReadonlyArrayWithIndexSeq:function(){return m$},traverseReadonlyNonEmptyArrayWithIndex:function(){return mV},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return mH},traverseSeqArray:function(){return m0},traverseSeqArrayWithIndex:function(){return mQ}});var el={};n.r(el),n.d(el,{Alt:function(){return vI},ApT:function(){return yn},ApplicativePar:function(){return va},ApplicativeSeq:function(){return vf},ApplyPar:function(){return vn},ApplySeq:function(){return vc},Bifunctor:function(){return vT},Chain:function(){return vl},Do:function(){return v3},FromEither:function(){return vh},FromIO:function(){return vv},FromTask:function(){return vy},Functor:function(){return h4},Monad:function(){return vp},MonadIO:function(){return vd},MonadTask:function(){return vs},MonadThrow:function(){return vm},Pointed:function(){return vt},URI:function(){return h2},alt:function(){return hZ},altW:function(){return hQ},ap:function(){return hz},apFirst:function(){return vr},apFirstW:function(){return vi},apS:function(){return ye},apSW:function(){return yt},apSecond:function(){return vo},apSecondW:function(){return vu},apW:function(){return hH},as:function(){return h9},asUnit:function(){return h6},bimap:function(){return hB},bind:function(){return v9},bindTo:function(){return v5},bindW:function(){return v6},bracket:function(){return v8},bracketW:function(){return v7},chain:function(){return ys},chainEitherK:function(){return vj},chainEitherKW:function(){return vq},chainFirst:function(){return yh},chainFirstEitherK:function(){return vG},chainFirstEitherKW:function(){return vY},chainFirstIOK:function(){return vX},chainFirstTaskK:function(){return vQ},chainFirstW:function(){return yv},chainIOEitherK:function(){return v1},chainIOEitherKW:function(){return v0},chainIOK:function(){return v$},chainNullableK:function(){return hO},chainOptionK:function(){return vO},chainOptionKW:function(){return vx},chainTaskK:function(){return vZ},chainTaskOptionK:function(){return hN},chainTaskOptionKW:function(){return hD},chainW:function(){return ym},filterOrElse:function(){return vK},filterOrElseW:function(){return vV},flap:function(){return ve},flatMap:function(){return h$},flatMapEither:function(){return vD},flatMapIO:function(){return vN},flatMapIOEither:function(){return vU},flatMapNullable:function(){return vF},flatMapOption:function(){return vW},flatMapTask:function(){return vL},flatMapTaskOption:function(){return vA},flatten:function(){return hJ},flattenW:function(){return hX},fold:function(){return hv},foldW:function(){return hg},fromEither:function(){return hl},fromEitherK:function(){return vz},fromIO:function(){return hc},fromIOEither:function(){return hp},fromIOEitherK:function(){return hL},fromIOK:function(){return vH},fromNullable:function(){return hR},fromNullableK:function(){return hw},fromOption:function(){return vR},fromOptionK:function(){return vw},fromPredicate:function(){return vB},fromTask:function(){return hf},fromTaskK:function(){return vJ},fromTaskOption:function(){return hd},fromTaskOptionK:function(){return hW},getAltTaskValidation:function(){return h7},getApplicativeTaskValidation:function(){return h8},getApplyMonoid:function(){return yT},getApplySemigroup:function(){return yS},getCompactable:function(){return h3},getFilterable:function(){return h5},getOrElse:function(){return h_},getOrElseW:function(){return hb},getSemigroup:function(){return yI},getTaskValidation:function(){return yR},left:function(){return hn},leftIO:function(){return ha},leftTask:function(){return ho},let:function(){return v4},liftNullable:function(){return vM},liftOption:function(){return vE},map:function(){return hG},mapBoth:function(){return hY},mapError:function(){return hK},mapLeft:function(){return hV},match:function(){return hs},matchE:function(){return hh},matchEW:function(){return hy},matchW:function(){return hm},of:function(){return h0},orElse:function(){return hx},orElseFirst:function(){return yy},orElseFirstIOK:function(){return hE},orElseFirstTaskK:function(){return hP},orElseFirstW:function(){return yg},orElseW:function(){return hC},orLeft:function(){return hk},right:function(){return hr},rightIO:function(){return hu},rightTask:function(){return hi},sequenceArray:function(){return yf},sequenceSeqArray:function(){return yd},swap:function(){return hF},tap:function(){return vg},tapEither:function(){return v_},tapError:function(){return hM},tapIO:function(){return vb},tapTask:function(){return vS},taskEither:function(){return y_},taskEitherSeq:function(){return yb},taskify:function(){return v2},throwError:function(){return h1},toUnion:function(){return hI},traverseArray:function(){return yc},traverseArrayWithIndex:function(){return ya},traverseReadonlyArrayWithIndex:function(){return yi},traverseReadonlyArrayWithIndexSeq:function(){return yu},traverseReadonlyNonEmptyArrayWithIndex:function(){return yr},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return yo},traverseSeqArray:function(){return yp},traverseSeqArrayWithIndex:function(){return yl},tryCatch:function(){return hS},tryCatchK:function(){return hT}});var ep={};n.r(ep),n.d(ep,{Alt:function(){return g7},ApT:function(){return be},ApplicativePar:function(){return gN},ApplicativeSeq:function(){return gU},ApplyPar:function(){return gP},ApplySeq:function(){return gL},Bifunctor:function(){return g8},Chain:function(){return gA},Do:function(){return _8},FromEither:function(){return gB},FromIO:function(){return gK},FromReader:function(){return gz},FromTask:function(){return gV},Functor:function(){return gO},Monad:function(){return gj},MonadIO:function(){return gq},MonadTask:function(){return gG},MonadThrow:function(){return gY},Pointed:function(){return gE},URI:function(){return gS},alt:function(){return gg},altW:function(){return g_},ap:function(){return gd},apFirst:function(){return gk},apFirstW:function(){return gF},apS:function(){return _9},apSW:function(){return _6},apSecond:function(){return gW},apSecondW:function(){return gD},apW:function(){return gs},as:function(){return gx},asUnit:function(){return gC},ask:function(){return g3},asks:function(){return g5},asksReaderTaskEither:function(){return y7},asksReaderTaskEitherW:function(){return y8},bimap:function(){return gf},bind:function(){return _5},bindTo:function(){return _7},bindW:function(){return _4},bracket:function(){return _1},bracketW:function(){return _2},chain:function(){return bp},chainEitherK:function(){return _M},chainEitherKW:function(){return _E},chainFirst:function(){return bs},chainFirstEitherK:function(){return _P},chainFirstEitherKW:function(){return _k},chainFirstIOK:function(){return _Y},chainFirstReaderEitherK:function(){return _t},chainFirstReaderEitherKW:function(){return _e},chainFirstReaderIOK:function(){return _f},chainFirstReaderIOKW:function(){return _c},chainFirstReaderK:function(){return g9},chainFirstReaderKW:function(){return g6},chainFirstReaderTaskK:function(){return _u},chainFirstReaderTaskKW:function(){return _o},chainFirstTaskEitherK:function(){return _r},chainFirstTaskEitherKW:function(){return _n},chainFirstTaskK:function(){return _V},chainFirstW:function(){return bm},chainIOEitherK:function(){return _Z},chainIOEitherKW:function(){return _J},chainIOK:function(){return _G},chainNullableK:function(){return y1},chainOptionK:function(){return _d},chainOptionKW:function(){return _s},chainReaderEitherK:function(){return _0},chainReaderEitherKW:function(){return _Q},chainReaderIOK:function(){return _X},chainReaderIOKW:function(){return _$},chainReaderK:function(){return _z},chainReaderKW:function(){return _H},chainReaderTaskK:function(){return _N},chainReaderTaskKW:function(){return _D},chainTaskEitherK:function(){return _W},chainTaskEitherKW:function(){return _F},chainTaskK:function(){return _K},chainW:function(){return bd},filterOrElse:function(){return _U},filterOrElseW:function(){return _A},flap:function(){return gM},flatMap:function(){return gh},flatMapEither:function(){return _b},flatMapIO:function(){return _I},flatMapIOEither:function(){return _x},flatMapNullable:function(){return _g},flatMapOption:function(){return __},flatMapReader:function(){return _w},flatMapReaderEither:function(){return _C},flatMapReaderIO:function(){return _O},flatMapReaderTask:function(){return _T},flatMapTask:function(){return _R},flatMapTaskEither:function(){return _S},flatten:function(){return gy},flattenW:function(){return gv},fold:function(){return yz},foldW:function(){return y$},fromEither:function(){return yU},fromEitherK:function(){return _j},fromIO:function(){return yj},fromIOEither:function(){return yG},fromIOEitherK:function(){return ge},fromIOK:function(){return _q},fromNullable:function(){return yQ},fromNullableK:function(){return y0},fromOption:function(){return _l},fromOptionK:function(){return _p},fromPredicate:function(){return _L},fromReader:function(){return yA},fromReaderEither:function(){return yY},fromReaderEitherK:function(){return gn},fromReaderIOK:function(){return _a},fromReaderK:function(){return g4},fromReaderTaskK:function(){return _i},fromTask:function(){return yq},fromTaskEither:function(){return yw},fromTaskEitherK:function(){return gt},fromTaskK:function(){return _B},getAltReaderTaskValidation:function(){return gw},getApplicativeReaderTaskValidation:function(){return gR},getApplyMonoid:function(){return bb},getApplySemigroup:function(){return b_},getCompactable:function(){return gT},getFilterable:function(){return gI},getOrElse:function(){return yX},getOrElseW:function(){return yJ},getReaderTaskValidation:function(){return bT},getSemigroup:function(){return bS},left:function(){return yO},leftIO:function(){return yD},leftReader:function(){return yP},leftReaderIO:function(){return yL},leftReaderTask:function(){return yF},leftTask:function(){return yM},let:function(){return _3},liftNullable:function(){return _h},liftOption:function(){return _v},local:function(){return y2},map:function(){return ga},mapBoth:function(){return gc},mapError:function(){return gl},mapLeft:function(){return gp},match:function(){return yB},matchE:function(){return yV},matchEW:function(){return yH},matchW:function(){return yK},of:function(){return gm},orElse:function(){return y3},orElseFirst:function(){return bh},orElseFirstW:function(){return bv},orElseW:function(){return y5},orLeft:function(){return y9},readerTaskEither:function(){return by},readerTaskEitherSeq:function(){return bg},right:function(){return yx},rightIO:function(){return yW},rightReader:function(){return yE},rightReaderIO:function(){return yN},rightReaderTask:function(){return yk},rightTask:function(){return yC},run:function(){return bI},sequenceArray:function(){return ba},sequenceSeqArray:function(){return bl},swap:function(){return y6},tap:function(){return gH},tapEither:function(){return g$},tapError:function(){return y4},tapIO:function(){return gX},tapReader:function(){return gZ},tapReaderEither:function(){return gQ},tapReaderIO:function(){return g2},tapReaderTask:function(){return g1},tapTask:function(){return gJ},tapTaskEither:function(){return g0},throwError:function(){return gb},toUnion:function(){return yZ},traverseArray:function(){return bu},traverseArrayWithIndex:function(){return bo},traverseReadonlyArrayWithIndex:function(){return bn},traverseReadonlyArrayWithIndexSeq:function(){return bi},traverseReadonlyNonEmptyArrayWithIndex:function(){return bt},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return br},traverseSeqArray:function(){return bf},traverseSeqArrayWithIndex:function(){return bc}});var ed={};n.r(ed),n.d(ed,{Bifunctor:function(){return Se},Comonad:function(){return Sn},Foldable:function(){return Sr},Functor:function(){return b5},Semigroupoid:function(){return St},Traversable:function(){return Si},URI:function(){return b3},bimap:function(){return bz},compose:function(){return bX},duplicate:function(){return bQ},extend:function(){return bJ},extract:function(){return bZ},flap:function(){return b4},foldMap:function(){return b1},fst:function(){return bM},getApplicative:function(){return bW},getApply:function(){return bk},getChain:function(){return bD},getChainRec:function(){return bL},getMonad:function(){return bN},map:function(){return b9},mapFst:function(){return bH},mapLeft:function(){return b6},mapSnd:function(){return b$},readonlyTuple:function(){return So},reduce:function(){return b0},reduceRight:function(){return b2},sequence:function(){return b7},snd:function(){return bE},swap:function(){return bP},traverse:function(){return b8}});var es={};n.r(es),n.d(es,{Compactable:function(){return TI},Filterable:function(){return TR},FilterableWithIndex:function(){return Tw},Foldable:function(){return TF},FoldableWithIndex:function(){return TW},Functor:function(){return Tg},FunctorWithIndex:function(){return Tb},Traversable:function(){return TD},TraversableWithIndex:function(){return TN},URI:function(){return Tm},Witherable:function(){return TA},collect:function(){return Sm},compact:function(){return Td},deleteAt:function(){return S_},difference:function(){return S$},elem:function(){return SV},empty:function(){return Tj},every:function(){return SB},filter:function(){return To},filterMap:function(){return Tu},filterMapWithIndex:function(){return SU},filterWithIndex:function(){return SA},flap:function(){return T_},foldMap:function(){return Tl},foldMapWithIndex:function(){return SC},fromEntries:function(){return SG},fromFoldable:function(){return Sj},fromFoldableMap:function(){return SY},getDifferenceMagma:function(){return Tk},getEq:function(){return Tv},getFoldable:function(){return TS},getFoldableWithIndex:function(){return TT},getIntersectionSemigroup:function(){return TP},getMonoid:function(){return Ty},getShow:function(){return Th},getTraversable:function(){return TO},getTraversableWithIndex:function(){return Tx},getUnionMonoid:function(){return TE},getUnionSemigroup:function(){return TM},getWitherable:function(){return TC},has:function(){return Sg},hasOwnProperty:function(){return TG},insertAt:function(){return Tq},intersection:function(){return SH},isEmpty:function(){return Sp},isSubrecord:function(){return SI},keys:function(){return Ss},lookup:function(){return SR},map:function(){return SO},mapWithIndex:function(){return Sw},modifyAt:function(){return SS},partition:function(){return Ta},partitionMap:function(){return Tc},partitionMapWithIndex:function(){return SN},partitionWithIndex:function(){return SL},pop:function(){return ST},record:function(){return TY},reduce:function(){return Tf},reduceRight:function(){return Tp},reduceRightWithIndex:function(){return SM},reduceWithIndex:function(){return Sx},separate:function(){return Ts},sequence:function(){return SF},singleton:function(){return SE},size:function(){return Sl},some:function(){return SK},toArray:function(){return Sh},toEntries:function(){return Sq},toUnfoldable:function(){return Sv},traverse:function(){return Sk},traverseWithIndex:function(){return SP},union:function(){return Sz},updateAt:function(){return Sb},upsertAt:function(){return Sy},wilt:function(){return SD},wither:function(){return SW}});var em={};n.r(em),n.d(em,{and:function(){return T$},compose:function(){return TJ},fromEitherK:function(){return TK},fromOptionK:function(){return TB},id:function(){return TV},not:function(){return Tz},or:function(){return TH},zero:function(){return TX}});var eh={};n.r(eh),n.d(eh,{getFunctionRing:function(){return T1},getTupleRing:function(){return T0},negate:function(){return TQ},tuple:function(){return TZ}});var ev={};n.r(ev);var ey={};n.r(ey),n.d(ey,{getFunctionSemiring:function(){return T2}});var eg={};n.r(eg),n.d(eg,{getStructShow:function(){return T4},getTupleShow:function(){return T5},showBoolean:function(){return T9},showNumber:function(){return Ie},showString:function(){return T6},struct:function(){return T7},tuple:function(){return T3}});var e_={};n.r(e_),n.d(e_,{ap:function(){return Ir},chain:function(){return Ii},evaluate:function(){return Ic},execute:function(){return If},flatMap:function(){return Io},fromF:function(){return Ia},fromState:function(){return Iu},getStateM:function(){return Il},map:function(){return In},of:function(){return It}});var eb={};n.r(eb),n.d(eb,{Alt:function(){return RN},Applicative:function(){return Rs},Apply:function(){return Rc},Bifunctor:function(){return RD},Chain:function(){return Rm},FromEither:function(){return RO},FromIO:function(){return Rx},FromReader:function(){return RM},FromState:function(){return Rh},FromTask:function(){return RC},Functor:function(){return Rr},Monad:function(){return RT},MonadIO:function(){return RI},MonadTask:function(){return RR},MonadThrow:function(){return Rw},Pointed:function(){return Ra},URI:function(){return Rn},alt:function(){return Re},altW:function(){return I6},ap:function(){return IV},apFirst:function(){return Rf},apFirstW:function(){return Rl},apS:function(){return wc},apSW:function(){return wf},apSecond:function(){return Rp},apSecondW:function(){return Rd},apW:function(){return Iz},as:function(){return Ri},asUnit:function(){return Ro},ask:function(){return RL},asks:function(){return RU},asksStateReaderTaskEither:function(){return Ik},asksStateReaderTaskEitherW:function(){return IP},bimap:function(){return IB},bind:function(){return wu},bindTo:function(){return wi},bindW:function(){return wa},chain:function(){return wh},chainEitherK:function(){return RH},chainEitherKW:function(){return R$},chainFirst:function(){return wy},chainFirstEitherK:function(){return RX},chainFirstEitherKW:function(){return RJ},chainFirstIOK:function(){return R7},chainFirstReaderK:function(){return RG},chainFirstReaderKW:function(){return RY},chainFirstTaskK:function(){return wt},chainFirstW:function(){return wg},chainIOEitherK:function(){return R9},chainIOEitherKW:function(){return R4},chainIOK:function(){return R8},chainOptionK:function(){return RV},chainOptionKW:function(){return Rz},chainReaderK:function(){return Rj},chainReaderKW:function(){return Rq},chainReaderTaskEitherK:function(){return IL},chainReaderTaskEitherKW:function(){return IN},chainStateK:function(){return RS},chainTaskEitherK:function(){return R5},chainTaskEitherKW:function(){return R3},chainTaskK:function(){return we},chainW:function(){return wv},evalState:function(){return wS},evaluate:function(){return wn},execState:function(){return wT},execute:function(){return wr},filterOrElse:function(){return RQ},filterOrElseW:function(){return R0},flap:function(){return Ru},flatMap:function(){return IX},flatMapEither:function(){return I8},flatMapIO:function(){return IQ},flatMapIOEither:function(){return I2},flatMapOption:function(){return I7},flatMapReader:function(){return I1},flatMapReaderTaskEither:function(){return I3},flatMapState:function(){return I5},flatMapTask:function(){return I0},flatMapTaskEither:function(){return IZ},flatten:function(){return I9},flattenW:function(){return I4},fromEither:function(){return IS},fromEitherK:function(){return R1},fromIO:function(){return II},fromIOEither:function(){return Ix},fromIOEitherK:function(){return IF},fromIOK:function(){return R2},fromOption:function(){return RB},fromOptionK:function(){return RK},fromPredicate:function(){return RZ},fromReader:function(){return IT},fromReaderEither:function(){return IC},fromReaderK:function(){return RA},fromReaderTaskEither:function(){return IM},fromReaderTaskEitherK:function(){return ID},fromState:function(){return Iw},fromStateK:function(){return Rb},fromTask:function(){return IR},fromTaskEither:function(){return IO},fromTaskEitherK:function(){return IW},fromTaskK:function(){return R6},get:function(){return Rv},gets:function(){return R_},left:function(){return Ip},leftIO:function(){return Ig},leftReader:function(){return Iv},leftState:function(){return Ib},leftTask:function(){return Im},let:function(){return wo},local:function(){return IE},map:function(){return IY},mapLeft:function(){return IK},modify:function(){return Rg},of:function(){return IH},put:function(){return Ry},right:function(){return Id},rightIO:function(){return Iy},rightReader:function(){return Ih},rightState:function(){return I_},rightTask:function(){return Is},run:function(){return wI},sequenceArray:function(){return wm},stateReaderTaskEither:function(){return w_},stateReaderTaskEitherSeq:function(){return wb},tap:function(){return RE},tapEither:function(){return RP},tapIO:function(){return Rk},tapReader:function(){return RW},tapTask:function(){return RF},throwError:function(){return Rt},traverseArray:function(){return ws},traverseArrayWithIndex:function(){return wd},traverseReadonlyArrayWithIndex:function(){return wp},traverseReadonlyNonEmptyArrayWithIndex:function(){return wl}});var eS={};n.r(eS),n.d(eS,{Comonad:function(){return wL},Functor:function(){return wD},URI:function(){return wW},duplicate:function(){return wk},experiment:function(){return wx},extend:function(){return wE},extract:function(){return wP},flap:function(){return wN},map:function(){return wF},peeks:function(){return wO},seek:function(){return wR},seeks:function(){return ww},store:function(){return wU}});var eT={};n.r(eT),n.d(eT,{fanOut:function(){return wj},fanout:function(){return wG},split:function(){return wA},splitStrong:function(){return wq}});var eI={};n.r(eI),n.d(eI,{evolve:function(){return wB},getAssignSemigroup:function(){return wY}});var eR={};n.r(eR),n.d(eR,{Alt:function(){return OX},Alternative:function(){return OQ},ApT:function(){return xf},ApplicativePar:function(){return OU},ApplicativeSeq:function(){return Oq},ApplyPar:function(){return OD},ApplySeq:function(){return Oj},Chain:function(){return OG},Compactable:function(){return O8},Do:function(){return xi},Filterable:function(){return O7},FromEither:function(){return OY},FromIO:function(){return OB},FromTask:function(){return OK},Functor:function(){return OE},Monad:function(){return O0},MonadIO:function(){return O1},MonadTask:function(){return O2},Pointed:function(){return OW},URI:function(){return OM},Zero:function(){return OJ},alt:function(){return Od},altW:function(){return Os},ap:function(){return Oo},apFirst:function(){return ON},apS:function(){return xc},apSecond:function(){return OL},as:function(){return OP},asUnit:function(){return Ok},bind:function(){return xa},bindTo:function(){return xo},chain:function(){return xb},chainEitherK:function(){return O6},chainFirst:function(){return xS},chainFirstEitherK:function(){return xe},chainFirstIOK:function(){return O4},chainFirstTaskK:function(){return xr},chainIOK:function(){return O5},chainNullableK:function(){return Ot},chainOptionK:function(){return Or},chainTaskK:function(){return xn},compact:function(){return Ov},filter:function(){return Og},filterMap:function(){return O_},flap:function(){return OF},flatMap:function(){return Oa},flatMapIO:function(){return Of},flatMapTask:function(){return Ol},flatten:function(){return Op},fold:function(){return w2},foldW:function(){return w7},fromEither:function(){return w$},fromEitherK:function(){return O9},fromIO:function(){return wX},fromIOK:function(){return O3},fromNullable:function(){return w4},fromNullableK:function(){return Oe},fromOption:function(){return wH},fromOptionK:function(){return On},fromPredicate:function(){return wz},fromTask:function(){return wJ},fromTaskEither:function(){return wZ},fromTaskK:function(){return xt},getOrElse:function(){return w3},getOrElseW:function(){return w5},guard:function(){return OZ},let:function(){return xu},map:function(){return Oi},match:function(){return wQ},matchE:function(){return w1},matchEW:function(){return w8},matchW:function(){return w0},none:function(){return Oh},of:function(){return Ou},partition:function(){return Ob},partitionMap:function(){return OS},separate:function(){return Oy},sequenceArray:function(){return xv},sequenceSeqArray:function(){return x_},some:function(){return wV},tap:function(){return OV},tapEither:function(){return Oz},tapIO:function(){return OH},tapTask:function(){return O$},traverseArray:function(){return xh},traverseArrayWithIndex:function(){return xm},traverseReadonlyArrayWithIndex:function(){return xp},traverseReadonlyArrayWithIndexSeq:function(){return xs},traverseReadonlyNonEmptyArrayWithIndex:function(){return xl},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return xd},traverseSeqArray:function(){return xg},traverseSeqArrayWithIndex:function(){return xy},tryCatch:function(){return w9},tryCatchK:function(){return w6},zero:function(){return Om}});var ew={};n.r(ew),n.d(ew,{ApT:function(){return Ch},Bifunctor:function(){return Cr},Foldable:function(){return Co},FromEither:function(){return Ca},FromThese:function(){return Ci},Functor:function(){return Ce},Pointed:function(){return Cn},Traversable:function(){return Cu},URI:function(){return x6},bimap:function(){return x0},both:function(){return xx},elem:function(){return Cp},exists:function(){return Cd},flap:function(){return Ct},fold:function(){return xP},foldMap:function(){return x7},foldW:function(){return xM},fromOption:function(){return Cf},fromOptionK:function(){return Cl},fromOptions:function(){return xV},fromPredicate:function(){return Cc},getApplicative:function(){return xL},getApply:function(){return xN},getChain:function(){return xU},getEq:function(){return xW},getLeft:function(){return xj},getLeftOnly:function(){return xB},getMonad:function(){return xA},getRight:function(){return xq},getRightOnly:function(){return xK},getSemigroup:function(){return xD},getShow:function(){return xF},isBoth:function(){return xR},isLeft:function(){return xT},isRight:function(){return xI},left:function(){return xw},leftOrBoth:function(){return xG},map:function(){return x2},mapLeft:function(){return x1},match:function(){return xE},matchW:function(){return xC},of:function(){return x9},reduce:function(){return x8},reduceRight:function(){return x3},right:function(){return xO},rightOrBoth:function(){return xY},sequence:function(){return x4},swap:function(){return xk},these:function(){return Cg},toTuple:function(){return Cm},toTuple2:function(){return Cs},traverse:function(){return x5},traverseReadonlyArrayWithIndex:function(){return Cy},traverseReadonlyNonEmptyArrayWithIndex:function(){return Cv}});var eO={};n.r(eO),n.d(eO,{ap:function(){return Cw},bimap:function(){return Cx},both:function(){return CS},chain:function(){return CO},getTheseM:function(){return CF},left:function(){return Cb},leftF:function(){return CI},map:function(){return CR},mapLeft:function(){return CC},match:function(){return CM},matchE:function(){return CE},right:function(){return C_},rightF:function(){return CT},swap:function(){return CP},toTuple2:function(){return Ck}});var ex={};n.r(ex),n.d(ex,{ApT:function(){return Mv},Bifunctor:function(){return Mi},FromEither:function(){return Mo},FromIO:function(){return Mp},FromTask:function(){return Ms},FromThese:function(){return Mf},Functor:function(){return Mt},Pointed:function(){return Mr},URI:function(){return C5},bifunctorTaskThese:function(){return MT},bimap:function(){return C8},both:function(){return CN},flap:function(){return Mn},fold:function(){return C$},foldW:function(){return CJ},fromEither:function(){return Cq},fromIO:function(){return CY},fromIOEither:function(){return CB},fromIOK:function(){return Md},fromOption:function(){return Mu},fromOptionK:function(){return Ma},fromPredicate:function(){return Mc},fromTask:function(){return CK},fromTaskK:function(){return Mm},fromThese:function(){return CG},fromTheseK:function(){return Ml},functorTaskThese:function(){return MS},getApplicative:function(){return C9},getApply:function(){return C4},getChain:function(){return C6},getMonad:function(){return Me},getSemigroup:function(){return Mw},left:function(){return CW},leftIO:function(){return Cj},leftTask:function(){return CU},map:function(){return C2},mapLeft:function(){return C7},match:function(){return CV},matchE:function(){return CH},matchEW:function(){return CX},matchW:function(){return Cz},of:function(){return C3},right:function(){return CD},rightIO:function(){return CA},rightTask:function(){return CL},swap:function(){return CZ},taskThese:function(){return MR},toTuple:function(){return MI},toTuple2:function(){return Mh},traverseReadonlyArrayWithIndex:function(){return Mg},traverseReadonlyArrayWithIndexSeq:function(){return Mb},traverseReadonlyNonEmptyArrayWithIndex:function(){return My},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return M_}});var eC={};n.r(eC),n.d(eC,{Functor:function(){return MW},URI:function(){return MF},censor:function(){return MM},flap:function(){return MD},getComonad:function(){return ME},listen:function(){return Mx},listens:function(){return MC},map:function(){return Mk},traced:function(){return MN},tracks:function(){return MO}});var eM={};n.r(eM),n.d(eM,{getTraversableComposition:function(){return MA},sequence:function(){return MU},traverse:function(){return ML}});var eE={};n.r(eE);var eP={};n.r(eP),n.d(eP,{Applicative:function(){return Em},Apply:function(){return Ep},Chain:function(){return Eh},Comonad:function(){return Eb},Do:function(){return ES},Foldable:function(){return Eg},Functor:function(){return Ec},Monad:function(){return Ev},Pointed:function(){return El},Traversable:function(){return E_},URI:function(){return Ea},ap:function(){return M7},apFirst:function(){return Ed},apS:function(){return Ew},apSecond:function(){return Es},bind:function(){return ER},bindTo:function(){return ET},chain:function(){return EC},chainFirst:function(){return Ey},drawForest:function(){return MB},drawTree:function(){return MK},duplicate:function(){return M4},elem:function(){return EO},exists:function(){return Ex},extend:function(){return M5},extract:function(){return Er},flap:function(){return Ef},flatMap:function(){return M3},flatten:function(){return M9},fold:function(){return MX},foldMap:function(){return Et},getEq:function(){return MG},getShow:function(){return Mq},let:function(){return EI},make:function(){return Mj},map:function(){return M6},of:function(){return Eu},reduce:function(){return Ee},reduceRight:function(){return En},sequence:function(){return Eo},traverse:function(){return Ei},tree:function(){return EM},unfoldForest:function(){return Mz},unfoldForestM:function(){return M$},unfoldTree:function(){return MV},unfoldTreeM:function(){return MH}});var ek={};n.r(ek),n.d(ek,{Bifunctor:function(){return E6},Comonad:function(){return Pt},Foldable:function(){return Pn},Functor:function(){return E4},Semigroupoid:function(){return Pe},Traversable:function(){return Pr},URI:function(){return E5},bimap:function(){return EH},compose:function(){return EJ},duplicate:function(){return EQ},extend:function(){return EZ},extract:function(){return E0},flap:function(){return E9},foldMap:function(){return E1},fst:function(){return EE},getApplicative:function(){return ED},getApply:function(){return EF},getChain:function(){return EN},getChainRec:function(){return EU},getMonad:function(){return EL},map:function(){return Pi},mapFst:function(){return E$},mapLeft:function(){return Po},mapSnd:function(){return EX},reduce:function(){return E2},reduceRight:function(){return E8},sequence:function(){return E3},snd:function(){return EP},swap:function(){return Ek},traverse:function(){return E7},tuple:function(){return Pu}});var eF={};n.r(eF);var eW={};n.r(eW),n.d(eW,{getValidationM:function(){return Pa}});var eD={};n.r(eD),n.d(eD,{Monoid:function(){return Pf},Semigroup:function(){return Pc}});var eN={};n.r(eN),n.d(eN,{Functor:function(){return PI},URI:function(){return Py},censor:function(){return Pm},evalWriter:function(){return Px},evaluate:function(){return Pw},execWriter:function(){return PC},execute:function(){return PO},flap:function(){return PR},getApplicative:function(){return Pb},getApply:function(){return P_},getChain:function(){return PS},getMonad:function(){return PT},getPointed:function(){return Pg},listen:function(){return Pp},listens:function(){return Ps},map:function(){return Pv},pass:function(){return Pd},tell:function(){return Pl},writer:function(){return PM}});var eL={};function eU(e){return function(t){return function(n){return n.reduce(function(t,n){return e.alt(t,function(){return n})},t)}}}n.r(eL),n.d(eL,{getWriterM:function(){return PE}});var eA=n(42925);function ej(e){return eU(e)(e.zero())}function eq(e){var t=(0,eA.getApplySemigroup)(e);return function(n){var r=t(n);return{concat:function(t,n){return e.alt(r.concat(t,n),function(){return e.alt(t,function(){return n})})},empty:e.zero()}}}var eG=n(46111),eY=n(1358),eB=function(e){return"boolean"==typeof e},eK=function(e,t){return function(n){return n?t():e()}},eV=eK,ez=eV,eH=ez,e$={equals:function(e,t){return e===t}},eX={meet:function(e,t){return e&&t},join:function(e,t){return e||t},zero:!1,one:!0,implies:function(e,t){return!e||t},not:function(e){return!e}},eJ={concat:function(e,t){return e&&t}},eZ={concat:function(e,t){return e||t}},eQ={concat:eJ.concat,empty:!0},e0={concat:eZ.concat,empty:!1},e1={equals:e$.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},e2={show:function(e){return JSON.stringify(e)}},e8=n(42275),e7=function(e){return{meet:function(t,n){return e.join(t,n)},join:function(t,n){return e.meet(t,n)},zero:e.one,one:e.zero,implies:function(t,n){return e.join(e.not(t),n)},not:e.not}},e3={meet:function(){},join:function(){},zero:void 0,one:void 0,implies:function(){},not:function(){}},e5=e7,e4={meet:function(e,t){return e&&t},join:function(e,t){return e||t},zero:!1,one:!0,implies:function(e,t){return!e||t},not:function(e){return!e}},e9=e8.getBooleanAlgebra,e6=n(5586),te=function(e){return e6.clamp(e)(e.bottom,e.top)},tt=function(e){var t=e6.reverse(e);return{equals:t.equals,compare:t.compare,top:e.bottom,bottom:e.top}},tn={equals:e6.ordNumber.equals,compare:e6.ordNumber.compare,top:1/0,bottom:-1/0};function tr(e){return{meet:(0,e6.min)(e),join:(0,e6.max)(e)}}function ti(e){var t=tr(e);return function(e,n){return{join:t.join,meet:t.meet,zero:e,one:n}}}var to=n(88543),tu=n(56661);function ta(e,t){return function(n,r){return t.compose(e.right(r),e.left(n))}}function tc(e,t){var n=ta(e,t);return function(r,i){return t.compose(e.promap(t.id(),function(e){return"Left"===e._tag?e.left:e.right},e8.identity),n(r,i))}}function tf(e){return ta(e,e)}function tl(e){return tc(e,e)}var tp=n(67560),td=n(20492),ts=n(34219);function tm(e,t){return function(n){return e.map(n,t.compact)}}function th(e,t,n){var r=tm(e,t),i=(0,tp.map)(e,n);return function(e){return ts.separated(r((0,e8.pipe)(e,i(td.getLeft))),r((0,e8.pipe)(e,i(td.getRight))))}}function tv(e,t){return{map:(0,tp.getFunctorComposition)(e,t).map,compact:tm(e,t),separate:th(e,t,t)}}var ty=function(e){return function(){return console.log(e)}},tg=function(e){return function(){return console.warn(e)}},t_=function(e){return function(){return console.error(e)}},tb=function(e){return function(){return console.info(e)}},tS=n(90817),tT=n(76627),tI={equals:function(e,t){return e.valueOf()===t.valueOf()}},tR={equals:function(e,t){return e.getDate()===t.getDate()}},tw={equals:function(e,t){return e.getMonth()===t.getMonth()}},tO={equals:function(e,t){return e.getFullYear()===t.getFullYear()}},tx=(0,e8.pipe)(tT.Ord,e6.contramap(function(e){return e.valueOf()})),tC=function(){return new Date},tM=function(){return new Date().getTime()},tE=n(81878);function tP(e){return(0,e8.flow)(tE.right,e.of)}function tk(e){return(0,e8.flow)(tE.left,e.of)}function tF(e){return function(t){return e.map(t,tE.right)}}function tW(e){return function(t){return e.map(t,tE.left)}}function tD(e){return function(t){return(0,e8.flow)(tE.fromNullable(t),e.of)}}function tN(e){var t=tD(e);return function(e){var n=t(e);return function(e){return(0,e8.flow)(e,n)}}}function tL(e){var t=tj(e),n=tN(e);return function(e){var r=n(e);return function(e){return t(r(e))}}}function tU(e){return(0,tp.map)(e,tE.Functor)}function tA(e){return(0,eA.ap)(e,tE.Apply)}function tj(e){var t=tq(e);return function(e){return function(n){return t(n,e)}}}function tq(e){return function(t,n){return e.chain(t,function(t){return tE.isLeft(t)?e.of(t):n(t.right)})}}function tG(e){return function(t){return function(n){return e.chain(n,function(n){return tE.isLeft(n)?t():e.of(n)})}}}function tY(e){var t=tB(e);return function(e,n){return function(r){return t(r,e,n)}}}function tB(e){return function(t,n,r){return e.map(t,tE.bimap(n,r))}}function tK(e){var t=tV(e);return function(e){return function(n){return t(n,e)}}}function tV(e){return function(t,n){return e.map(t,tE.mapLeft(n))}}function tz(e,t){return function(n){return function(r){return e.chain(r,tE.match(function(r){return e.map(n(),tE.mapLeft(function(e){return t.concat(r,e)}))},tP(e)))}}}function tH(e){return function(t,n){return function(r){return e.map(r,tE.match(t,n))}}}function t$(e){return function(t,n){return function(r){return e.chain(r,tE.match(t,n))}}}function tX(e){return function(t){return function(n){return e.chain(n,tE.match(t,e.of))}}}function tJ(e){return function(t){return function(n){return e.chain(n,function(n){return tE.isLeft(n)?t(n.left):e.of(n)})}}}function tZ(e){var t=tQ(e);return function(e){return function(n){return t(n,e)}}}function tQ(e){var t=tJ(e);return function(n,r){return(0,e8.pipe)(n,t(function(t){return e.map(r(t),function(e){return tE.isLeft(e)?e:tE.left(t)})}))}}function t0(e){return function(t){return function(n){return e.chain(n,tE.match(function(n){return e.map(t(n),tE.left)},function(t){return e.of(tE.right(t))}))}}}function t1(e){return function(t){return e.map(t,tE.swap)}}function t2(e){return function(t){return e.map(t,tE.toUnion)}}function t8(e){var t=tA(e),n=tU(e),r=tj(e),i=tG(e),o=tY(e),u=tK(e),a=t$(e),c=tX(e),f=tJ(e);return{map:function(e,t){return(0,e8.pipe)(e,n(t))},ap:function(e,n){return(0,e8.pipe)(e,t(n))},of:tP(e),chain:function(e,t){return(0,e8.pipe)(e,r(t))},alt:function(e,t){return(0,e8.pipe)(e,i(t))},bimap:function(e,t,n){return(0,e8.pipe)(e,o(t,n))},mapLeft:function(e,t){return(0,e8.pipe)(e,u(t))},fold:function(e,t,n){return(0,e8.pipe)(e,a(t,n))},getOrElse:function(e,t){return(0,e8.pipe)(e,c(t))},orElse:function(e,t){return(0,e8.pipe)(e,f(t))},swap:t1(e),rightM:tF(e),leftM:tW(e),left:tk(e)}}var t7=n(47797),t3=n(65191);function t5(e,t){var n=t.zero,r=function(i,o){return e.equals(o,n)?i:r(o,t.mod(i,o))};return r}function t4(e,t){var n=t.zero,r=t5(e,t);return function(i,o){return e.equals(i,n)||e.equals(o,n)?n:t.div(t.mul(i,o),r(i,o))}}var t9={add:function(e,t){return e+t},zero:0,mul:function(e,t){return e*t},one:1,sub:function(e,t){return e-t},degree:function(e){return 1},div:function(e,t){return e/t},mod:function(e,t){return e%t}},t6=n(88491);function ne(e,t){return function(n){return function(r){return e.map(r,function(e){return t.filter(e,n)})}}}function nt(e,t){return function(n){return function(r){return e.map(r,function(e){return t.filterMap(e,n)})}}}function nn(e,t){var n=ne(e,t);return function(e){var t=n((0,t6.not)(e)),r=n(e);return function(e){return(0,ts.separated)(t(e),r(e))}}}function nr(e,t){var n=nt(e,t);return function(e){return function(t){return(0,ts.separated)((0,e8.pipe)(t,n(function(t){return(0,td.getLeft)(e(t))})),(0,e8.pipe)(t,n(function(t){return(0,td.getRight)(e(t))})))}}}function ni(e,t){var n=(0,tp.getFunctorComposition)(e,t).map,r=tm(e,t),i=th(e,t,t),o=ne(e,t),u=nt(e,t),a=nn(e,t),c=nr(e,t);return{map:n,compact:r,separate:i,filter:function(e,t){return(0,e8.pipe)(e,o(t))},filterMap:function(e,t){return(0,e8.pipe)(e,u(t))},partition:function(e,t){return(0,e8.pipe)(e,a(t))},partitionMap:function(e,t){return(0,e8.pipe)(e,c(t))}}}function no(e,t){return function(n,r){return function(i){return e.reduce(i,n,function(e,n){return t.reduce(n,e,r)})}}}function nu(e,t){return function(n){var r=e.foldMap(n),i=t.foldMap(n);return function(e){return function(t){return r(t,function(t){return i(t,e)})}}}}function na(e,t){return function(n,r){return function(i){return e.reduceRight(i,n,function(e,n){return t.reduceRight(e,n,r)})}}}function nc(e,t){return function(n,r){return function(i){return t.reduce(i,e.of(n),function(t,n){return e.chain(t,function(e){return r(e,n)})})}}}function nf(e,t){return function(n,r){var i=function(t,r){var i=t.init,o=t.acc;return i?{init:!1,acc:r}:{init:!1,acc:e.concat(e.concat(o,n),r)}};return t.reduce(r,{init:!0,acc:e.empty},i).acc}}function nl(e){return function(t){return e.reduce(t,[],function(e,t){return e.push(t),e})}}function np(e,t){var n=e.of(void 0);return function(r,i){return t.reduce(r,n,function(t,n){var r,o;return o=i(n),e.ap(e.map(t,e8.constant),o)})}}function nd(e,t){return function(n,r,i){return t.reduce(n,e.of(r),function(t,n){return e.chain(t,function(e){return i(e,n)})})}}var ns=nl;function nm(e,t){var n=no(e,t),r=nu(e,t),i=na(e,t);return{reduce:function(e,t,r){return(0,e8.pipe)(e,n(t,r))},foldMap:function(e){var t=r(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},reduceRight:function(e,t,n){return(0,e8.pipe)(e,i(t,n))}}}function nh(e,t){return function(n,r){return function(i){return e.reduceWithIndex(i,n,function(e,n,i){return t.reduceWithIndex(i,n,function(t,n,i){return r([e,t],n,i)})})}}}function nv(e,t){return function(n){var r=e.foldMapWithIndex(n),i=t.foldMapWithIndex(n);return function(e){return function(t){return r(t,function(t,n){return i(n,function(n,r){return e([t,n],r)})})}}}}function ny(e,t){return function(n,r){return function(i){return e.reduceRightWithIndex(i,n,function(e,n,i){return t.reduceRightWithIndex(n,i,function(t,n,i){return r([e,t],n,i)})})}}}function ng(e,t){var n=nm(e,t),r=nh(e,t),i=nv(e,t),o=ny(e,t);return{reduce:n.reduce,foldMap:n.foldMap,reduceRight:n.reduceRight,reduceWithIndex:function(e,t,n){return(0,e8.pipe)(e,r(t,n))},foldMapWithIndex:function(e){var t=i(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},reduceRightWithIndex:function(e,t,n){return(0,e8.pipe)(e,o(t,n))}}}var n_=n(25162);function nb(e){return function(t){return(0,e8.flow)(t,e.fromIO)}}function nS(e,t){return function(n){var r=(0,e8.flow)(n,e.fromIO);return function(e){return t.chain(e,r)}}}function nT(e,t){var n=nI(e,t);return function(e){return function(t){return n(t,e)}}}function nI(e,t){var n=(0,to.tap)(t);return function(t,r){return n(t,(0,e8.flow)(r,e.fromIO))}}var nR=n(97963),nw=function(){return e8.identity},nO=e8.identity,nx=function(e){return function(t){return function(n){return t(e(n))}}},nC=function(e){return function(t){return e(t)(t)}},nM=nC,nE=function(e,t){return(0,e8.pipe)(e,nW(t))},nP=function(e,t){return(0,e8.pipe)(e,nN(t))},nk=function(e,t){return(0,e8.pipe)(e,nq(t))},nF=function(e,t,n){return(0,e8.pipe)(e,nG(t,n))},nW=function(e){return function(t){return function(n){return e(t(n))}}},nD=function(e){return function(t){return function(n){return t(n)(e(n))}}},nN=nD,nL=e8.constant,nU=(0,e8.dual)(2,function(e,t){return function(n){return t(e(n))(n)}}),nA=nU(e8.identity),nj=nA,nq=function(e){return function(t){return(0,e8.flow)(e,t)}},nG=function(e,t){return function(n){return function(r){return t(n(e(r)))}}},nY=function(){return e8.identity},nB=function(e){return function(t){var n=t[0],r=t[1];return[e(n),r]}},nK=function(e){return function(t){var n;return[t[0],e(t[1])]}},nV=function(e){return tE.fold(function(t){return nR.t$(e(t))},tE.right)},nz=function(e){return tE.fold(tE.left,function(t){return nR.F2(e(t))})},nH="Reader",n$={URI:nH,map:nE},nX=(0,tp.flap)(n$),nJ={URI:nH,of:nL},nZ={URI:nH,map:nE,ap:nP},nQ=(0,eA.apFirst)(nZ),n0=nQ,n1=(0,eA.apSecond)(nZ),n2=n1,n8={URI:nH,map:nE,ap:nP,of:nL},n7={URI:nH,map:nE,ap:nP,chain:nU},n3={URI:nH,map:nE,of:nL,ap:nP,chain:nU},n5=(0,e8.dual)(2,to.tap(n7)),n4={URI:nH,map:nE,promap:nF},n9={URI:nH,compose:nk,id:nY},n6={URI:nH,map:nE,promap:nF,first:nB,second:nK},re={URI:nH,map:nE,promap:nF,left:nV,right:nz},rt=(0,tp.bindTo)(n$),rn=(0,tp.let)(n$),rr=to.bind(n7),ri=rr,ro=nL(nR.F4),ru=(0,eA.apS)(nZ),ra=ru,rc=nL(nR.Xl),rf=function(e){return function(t){return function(n){for(var r=[e(0,nR.YM(t))(n)],i=1;i<t.length;i++)r.push(e(i,t[i])(n));return r}}},rl=function(e){var t=rf(e);return function(e){return nR.Od(e)?t(e):rc}},rp=rl,rd=function(e){return rl(function(t,n){return e(n)})},rs=rd(e8.identity),rm=nU,rh=nU,rv=n5,ry=n5,rg={URI:nH,map:nE,of:nL,ap:nP,chain:nU,promap:nF,compose:nk,id:nY,first:nB,second:nK,left:nV,right:nz},r_=(0,eA.getApplySemigroup)(nZ),rb=(0,eG.getApplicativeMonoid)(n8);function rS(e){return function(){return e.fromReader(nw())}}function rT(e){return e.fromReader}function rI(e){return function(t){return(0,e8.flow)(t,e.fromReader)}}function rR(e,t){var n=rI(e);return function(e){return function(r){return t.chain(r,n(e))}}}function rw(e,t){var n=rO(e,t);return function(e){return function(t){return n(t,e)}}}function rO(e,t){var n=(0,to.tap)(t);return function(t,r){return n(t,(0,e8.flow)(r,e.fromReader))}}var rx=function(){return function(e){return[e,e]}},rC=function(e){return function(){return[void 0,e]}},rM=function(e){return function(t){return[void 0,e(t)]}},rE=function(e){return function(t){return[e(t),t]}},rP=function(e,t){return(0,e8.pipe)(e,rF(t))},rk=function(e,t){return(0,e8.pipe)(e,rW(t))},rF=function(e){return function(t){return function(n){var r=t(n),i=r[0],o=r[1];return[e(i),o]}}},rW=function(e){return function(t){return function(n){var r=t(n),i=r[0],o=e(r[1]),u=o[0],a=o[1];return[i(u),a]}}},rD=function(e){return function(t){return[e,t]}},rN=(0,e8.dual)(2,function(e,t){return function(n){var r=e(n),i=r[0],o=r[1];return t(i)(o)}}),rL=rN(e8.identity),rU="State",rA={URI:rU,map:rP},rj=(0,tp.flap)(rA),rq={URI:rU,of:rD},rG={URI:rU,map:rP,ap:rk},rY=(0,eA.apFirst)(rG),rB=(0,eA.apSecond)(rG),rK={URI:rU,map:rP,ap:rk,of:rD},rV={URI:rU,map:rP,ap:rk,chain:rN},rz={URI:rU,map:rP,ap:rk,of:rD,chain:rN},rH=(0,e8.dual)(2,to.tap(rV)),r$={URI:rU,fromState:e8.identity},rX=function(e){return function(t){return t(e)[0]}},rJ=function(e){return function(t){return t(e)[1]}},rZ=(0,tp.bindTo)(rA),rQ=(0,tp.let)(rA),r0=to.bind(rV),r1=(0,eA.apS)(rG),r2=function(e){return function(t){return function(n){for(var r=e(0,nR.YM(t))(n),i=r[0],o=r[1],u=[i],a=o,c=1;c<t.length;c++){var f=e(c,t[c])(a),l=f[0],p=f[1];u.push(l),a=p}return[u,a]}}},r8=function(e){var t=r2(e);return function(e){return nR.Od(e)?t(e):rD(nR.Xl)}},r7=r8,r3=function(e){return r8(function(t,n){return e(n)})},r5=r3(e8.identity),r4=rN,r9=rH,r6=function(e,t){return e(t)[0]},ie=function(e,t){return e(t)[1]},it=rz;function ir(e){return function(){return e.fromState(rx())}}function ii(e){return function(t){return e.fromState(rC(t))}}function io(e){return(0,e8.flow)(rM,e.fromState)}function iu(e){return(0,e8.flow)(rE,e.fromState)}function ia(e){return function(t){return(0,e8.flow)(t,e.fromState)}}function ic(e,t){var n=ia(e);return function(e){return function(r){return t.chain(r,n(e))}}}function il(e){return function(t){return(0,e8.flow)(t,e.fromTask)}}function ip(e,t){return function(n){var r=(0,e8.flow)(n,e.fromTask);return function(e){return t.chain(e,r)}}}function id(e,t){var n=is(e,t);return function(e){return function(t){return n(t,e)}}}function is(e,t){var n=(0,to.tap)(t);return function(t,r){return n(t,(0,e8.flow)(r,e.fromTask))}}function im(e){return function(t){return(0,e8.flow)(t,e.fromThese)}}function ih(e,t){return function(n){return function(r){return e.mapWithIndex(r,function(e,r){return t.mapWithIndex(r,function(t,r){return n([e,t],r)})})}}}function iv(e,t){var n=(0,tp.getFunctorComposition)(e,t).map,r=ih(e,t);return{map:n,mapWithIndex:function(e,t){return(0,e8.pipe)(e,r(t))}}}var iy=function(e,t){return(0,e8.pipe)(e,iO(t))},ig=function(e,t){return(0,e8.pipe)(e,ix(t))},i_=function(e,t,n){return(0,e8.pipe)(e,iW(t,n))},ib=function(e){return function(t,n){return(0,e8.pipe)(t,iD(e)(n))}},iS=function(e,t,n){return(0,e8.pipe)(e,iN(t,n))},iT=function(e,t){return(0,e8.pipe)(e,ij(t))},iI=function(e,t){return(0,e8.pipe)(e,iE(t))},iR=function(e){var t=iL(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},iw=tu.tailRec,iO=function(e){return function(t){return e(t)}},ix=function(e){return function(t){return t(e)}},iC=e8.identity,iM=(0,e8.dual)(2,function(e,t){return t(e)}),iE=function(e){return function(t){return e(t)}},iP=e8.identity,ik=iE(e8.identity),iF=iM(e8.identity),iW=function(e,t){return function(n){return t(e,n)}},iD=function(){return function(e){return function(t){return e(t)}}},iN=function(e,t){return function(n){return t(n,e)}},iL=function(e){return function(t){return function(n){return e.map(t(n),e8.identity)}}},iU=function(e){return function(t){return e.map(t,e8.identity)}},iA=function(){return e8.identity},ij=iA,iq="Identity",iG=e8.identity,iY=e8.identity,iB={URI:iq,map:iy},iK=(0,tp.flap)(iB),iV={URI:iq,of:iC},iz={URI:iq,map:iy,ap:ig},iH=(0,eA.apFirst)(iz),i$=(0,eA.apSecond)(iz),iX={URI:iq,map:iy,ap:ig,of:iC},iJ={URI:iq,map:iy,ap:ig,chain:iM},iZ={URI:iq,map:iy,ap:ig,of:iC,chain:iM},iQ=(0,to.chainFirst)(iJ),i0={URI:iq,reduce:i_,foldMap:ib,reduceRight:iS},i1={URI:iq,map:iy,reduce:i_,foldMap:ib,reduceRight:iS,traverse:iR,sequence:iU},i2={URI:iq,map:iy,alt:iT},i8={URI:iq,map:iy,extend:iI,extract:iP},i7={URI:iq,map:iy,ap:ig,chain:iM,chainRec:iw},i3=iC(nR.F4),i5=(0,tp.bindTo)(iB),i4=(0,tp.let)(iB),i9=(0,to.bind)(iJ),i6=(0,eA.apS)(iz),oe=iM,ot={URI:iq,map:iy,ap:ig,of:iC,chain:iM,reduce:i_,foldMap:ib,reduceRight:iS,traverse:iR,sequence:iU,alt:iT,extract:iP,extend:iI,chainRec:iw},on=function(e,t){return function(){return t(e())}},or=function(e,t){return function(){return e()(t())}},oi=function(e,t){return function(){for(var n=t(e)();"Left"===n._tag;)n=t(n.left)();return n.right}},oo=function(e){return function(t){return on(t,e)}},ou=function(e){return function(t){return or(t,e)}},oa=e8.constant,oc=(0,e8.dual)(2,function(e,t){return function(){return t(e())()}}),of=oc(e8.identity),ol="IO",op={URI:ol,map:on},od=(0,e8.dual)(2,(0,tp.as)(op)),os=(0,tp.asUnit)(op),om=(0,tp.flap)(op),oh={URI:ol,of:oa},ov={URI:ol,map:on,ap:or},oy=(0,eA.apFirst)(ov),og=(0,eA.apSecond)(ov),o_={URI:ol,map:on,ap:or,of:oa},ob={URI:ol,map:on,ap:or,chain:oc},oS={URI:ol,map:on,ap:or,of:oa,chain:oc},oT=(0,e8.dual)(2,to.tap(ob)),oI=e8.identity,oR={URI:ol,map:on,ap:or,of:oa,chain:oc,fromIO:oI},ow={URI:ol,map:on,ap:or,chain:oc,chainRec:oi},oO={URI:ol,fromIO:e8.identity},ox=oa(nR.F4),oC=(0,tp.bindTo)(op),oM=(0,tp.let)(op),oE=to.bind(ob),oP=(0,eA.apS)(ov),ok=oa(nR.Xl),oF=function(e){return function(t){return function(){for(var n=[e(0,nR.YM(t))()],r=1;r<t.length;r++)n.push(e(r,t[r])());return n}}},oW=function(e){var t=oF(e);return function(e){return nR.Od(e)?t(e):ok}},oD=oW,oN=function(e){return oW(function(t,n){return e(n)})},oL=oN(e8.identity),oU=oc,oA=oT,oj={URI:ol,map:on,of:oa,ap:or,chain:oc,fromIO:oI,chainRec:oi},oq=(0,eA.getApplySemigroup)(ov),oG=(0,eG.getApplicativeMonoid)(o_),oY=tk(oh),oB=tP(oh),oK=tF(op),oV=tW(op),oz=oa,oH=oK,o$=tH(op),oX=o$,oJ=t$(oS),oZ=oJ,oQ=oJ,o0=oQ,o1=tX(oS),o2=o1,o8=function(e,t){return function(){return tE.tryCatch(e,t)}},o7=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return o8(function(){return e.apply(void 0,n)},t)}},o3=t2(op),o5=tJ(oS),o4=o5,o9=(0,e8.dual)(2,tQ(oS)),o6=function(e){return o9(uH(e))},ue=t0(oS),ut=t1(op),un=function(e,t){return(0,e8.pipe)(e,uu(t))},ur=function(e,t){return(0,e8.pipe)(e,up(t))},ui=function(e,t){return um(e,function(e){return(0,e8.pipe)(t,uu(e))})},uo=function(e,t){return(0,e8.pipe)(e,uy(t))},uu=tU(op),ua=(0,e8.dual)(3,tB(op)),uc=ua,uf=(0,e8.dual)(2,tV(op)),ul=uf,up=tA(ov),ud=up,us=oB,um=(0,e8.dual)(2,tq(oS)),uh=um(e8.identity),uv=uh,uy=tG(oS),ug=uy,u_=oY,ub="IOEither";function uS(e){var t=(0,eA.ap)(ov,tE.getApplicativeValidation(e));return{URI:ub,_E:void 0,map:un,ap:function(e,n){return(0,e8.pipe)(e,t(n))},of:us}}function uT(e){var t=tz(oS,e);return{URI:ub,_E:void 0,map:un,alt:function(e,n){return(0,e8.pipe)(e,t(n))}}}var uI=function(e){var t=tE.getCompactable(e);return{URI:ub,_E:void 0,compact:tm(op,t),separate:th(op,t,tE.Functor)}};function uR(e){var t=tE.getFilterable(e),n=uI(e),r=ne(op,t),i=nt(op,t),o=nn(op,t),u=nr(op,t);return{URI:ub,_E:void 0,map:un,compact:n.compact,separate:n.separate,filter:function(e,t){return(0,e8.pipe)(e,r(t))},filterMap:function(e,t){return(0,e8.pipe)(e,i(t))},partition:function(e,t){return(0,e8.pipe)(e,o(t))},partitionMap:function(e,t){return(0,e8.pipe)(e,u(t))}}}var uw={URI:ub,map:un},uO=(0,e8.dual)(2,(0,tp.as)(uw)),ux=(0,tp.asUnit)(uw),uC=(0,tp.flap)(uw),uM={URI:ub,of:us},uE={URI:ub,bimap:ua,mapLeft:uf},uP={URI:ub,map:un,ap:ur},uk=(0,eA.apFirst)(uP),uF=uk,uW=(0,eA.apSecond)(uP),uD=uW,uN={URI:ub,map:un,ap:ur,of:us},uL={URI:ub,map:un,ap:ui,of:us},uU={URI:ub,map:un,ap:ur,chain:um},uA={URI:ub,map:un,ap:ur,of:us,chain:um},uj={URI:ub,fromEither:oz},uq={URI:ub,fromIO:oH},uG=(0,e8.dual)(2,to.tap(uU)),uY=(0,e8.dual)(2,(0,n_.tapEither)(uj,uU)),uB=(0,e8.dual)(2,nI(uq,uU)),uK={URI:ub,map:un,alt:uo},uV={URI:ub,map:un,ap:ur,of:us,chain:um,fromIO:oH},uz={URI:ub,map:un,ap:ur,of:us,chain:um,throwError:u_},uH=nb(uq),u$=uB,uX=(0,n_.fromOption)(uj),uJ=(0,n_.fromOptionK)(uj),uZ=(0,n_.chainOptionK)(uj,uU),uQ=uZ,u0={fromEither:uj.fromEither},u1=nR.uL(u0),u2=nR.WE(u0),u8={flatMap:um},u7=nR.ny(u0,u8),u3=nR.hU(u0,u8),u5=nR.iu(u0,u8),u4=nR.we({fromIO:oH},u8),u9=u4,u6=u5,ae=u5,at=uY,an=uY,ar=(0,n_.fromPredicate)(uj),ai=(0,n_.filterOrElse)(uj,uU),ao=ai,au=(0,n_.fromEitherK)(uj),aa=function(e,t,n){return ac(e,t,n)},ac=function(e,t,n){return um(e,function(e){return oc(t(e),function(t){return um(n(e,t),function(){return oa(t)})})})},af=us(nR.F4),al=(0,tp.bindTo)(uw),ap=(0,tp.let)(uw),ad=to.bind(uU),as=ad,am=(0,eA.apS)(uP),ah=am,av=us(nR.Xl),ay=function(e){return(0,e8.flow)(oF(e),oo(tE.traverseReadonlyNonEmptyArrayWithIndex(e8.SK)))},ag=function(e){var t=ay(e);return function(e){return nR.Od(e)?t(e):av}},a_=function(e){return function(t){return function(){var n=e(0,nR.YM(t))();if(nR.nM(n))return n;for(var r=[n.right],i=1;i<t.length;i++){var o=e(i,t[i])();if(nR.nM(o))return o;r.push(o.right)}return nR.F2(r)}}},ab=function(e){var t=a_(e);return function(e){return nR.Od(e)?t(e):av}},aS=ag,aT=function(e){return ag(function(t,n){return e(n)})},aI=aT(e8.identity),aR=ab,aw=function(e){return ab(function(t,n){return e(n)})},aO=aw(e8.identity),ax=uN,aC=um,aM=um,aE=uG,aP=uG,ak=o9,aF=o9,aW={URI:ub,bimap:ua,mapLeft:uf,map:un,of:us,ap:ur,chain:um,alt:uo,fromIO:oH,throwError:u_},aD=(0,eA.getApplySemigroup)(uP),aN=(0,eG.getApplicativeMonoid)(uN),aL=function(e){return(0,eA.getApplySemigroup)(ov)(tE.getSemigroup(e))};function aU(e){var t=uS(e),n=uT(e);return{URI:ub,_E:void 0,map:un,ap:t.ap,of:us,chain:um,bimap:ua,mapLeft:uf,alt:n.alt,fromIO:oH,throwError:u_}}function aA(e){return(0,e8.flow)(td.some,e.of)}function aj(e){return(0,e8.constant)(e.of(td.none))}function aq(e){return function(t){return e.map(t,td.some)}}function aG(e){return(0,e8.flow)(td.fromNullable,e.of)}function aY(e){var t=aG(e);return function(e){return(0,e8.flow)(e,t)}}function aB(e){var t=a0(e),n=aY(e);return function(e){return t(n(e))}}function aK(e){return function(t){return(0,e8.flow)(t,e.of)}}function aV(e){var t=a0(e),n=aK(e);return function(e){return t(n(e))}}function az(e){return function(t){return function(n){return e.of(td.fromPredicate(t)(n))}}}function aH(e){return(0,e8.flow)(td.fromEither,e.of)}function a$(e){return function(t,n){return function(r){return e.map(r,td.match(t,n))}}}function aX(e){return function(t,n){return function(r){return e.chain(r,td.match(t,n))}}}function aJ(e){return function(t){return function(n){return e.chain(n,td.match(t,e.of))}}}function aZ(e){return(0,tp.map)(e,td.Functor)}function aQ(e){return(0,eA.ap)(e,td.Apply)}function a0(e){var t=a1(e);return function(e){return function(n){return t(n,e)}}}function a1(e){var t=aj(e);return function(n,r){return e.chain(n,td.match(function(){return t()},r))}}function a2(e){var t=aA(e);return function(n){return function(r){return e.chain(r,td.match(n,t))}}}function a8(e){var t=aQ(e),n=aZ(e),r=a0(e),i=a2(e),o=aX(e),u=aJ(e),a=aj(e);return{map:function(e,t){return(0,e8.pipe)(e,n(t))},ap:function(e,n){return(0,e8.pipe)(e,t(n))},of:aA(e),chain:function(e,t){return(0,e8.pipe)(e,r(t))},alt:function(e,t){return(0,e8.pipe)(e,i(t))},fold:function(e,t,n){return(0,e8.pipe)(e,o(t,n))},getOrElse:function(e,t){return(0,e8.pipe)(e,u(t))},fromM:aq(e),none:function(){return a()}}}var a7=n(28957),a3=aA(oh),a5=az(oh),a4=oa,a9=aH(oh),a6=aq(op),ce=oo(td.fromEither),ct=a$(op),cn=ct,cr=aX(ob),ci=cr,co=cr,cu=aJ(oS),ca=cu,cc=oo(td.toUndefined),cf=oo(td.toNullable),cl=aG(oh),cp=aY(oh),cd=aB(oS),cs=aK(oh),cm=aZ(op),ch=aQ(ov),cv=a3,cy=(0,e8.dual)(2,a1(oS)),cg=cy(e8.identity),c_=a2(oS),cb=c_,cS=aj(oh),cT=cS(),cI=tm(op,td.Compactable),cR=th(op,td.Compactable,td.Functor),cw=ne(op,td.Filterable),cO=nt(op,td.Filterable),cx=nn(op,td.Filterable),cC=nr(op,td.Filterable),cM=function(e,t){return(0,e8.pipe)(e,cm(t))},cE=function(e,t){return(0,e8.pipe)(e,ch(t))},cP=function(e,t){return(0,e8.pipe)(e,c_(t))},ck=function(e,t){return(0,e8.pipe)(e,cw(t))},cF=function(e,t){return(0,e8.pipe)(e,cO(t))},cW=function(e,t){return(0,e8.pipe)(e,cx(t))},cD=function(e,t){return(0,e8.pipe)(e,cC(t))},cN="IOOption",cL={URI:cN,map:cM},cU=(0,e8.dual)(2,(0,tp.as)(cL)),cA=(0,tp.asUnit)(cL),cj=(0,tp.flap)(cL),cq={URI:cN,of:cv},cG={URI:cN,map:cM,ap:cE},cY=(0,eA.apFirst)(cG),cB=(0,eA.apSecond)(cG),cK={URI:cN,map:cM,ap:cE,of:cv},cV={URI:cN,map:cM,ap:cE,chain:cy},cz={URI:cN,fromEither:a9},cH={URI:cN,fromIO:a6},c$=(0,e8.dual)(2,to.tap(cV)),cX=(0,e8.dual)(2,(0,n_.tapEither)(cz,cV)),cJ=(0,e8.dual)(2,nI(cH,cV)),cZ={URI:cN,map:cM,alt:cP},cQ={URI:cN,zero:cS},c0=(0,a7.guard)(cQ,cq),c1={URI:cN,map:cM,ap:cE,of:cv,alt:cP,zero:cS},c2={URI:cN,map:cM,ap:cE,of:cv,chain:cy},c8={URI:cN,map:cM,ap:cE,of:cv,chain:cy,fromIO:a6},c7={URI:cN,compact:cI,separate:cR},c3={URI:cN,map:cM,compact:cI,separate:cR,filter:ck,filterMap:cF,partition:cW,partitionMap:cD},c5={flatMap:cy},c4={fromIO:cH.fromIO},c9=nR.we(c4,c5),c6=(0,e8.dual)(2,function(e,t){return cy(e,cs(t))}),fe=nR.iu({fromEither:a9},c5),ft=(0,e8.dual)(2,function(e,t){return cy(e,cp(t))}),fn=nb(cH),fr=c9,fi=cJ,fo=(0,n_.fromEitherK)(cz),fu=fe,fa=cX,fc=c6,ff=cv(nR.F4),fl=(0,tp.bindTo)(cL),fp=(0,tp.let)(cL),fd=to.bind(cV),fs=(0,eA.apS)(cG),fm=cv(nR.Xl),fh=function(e){return(0,e8.flow)(oF(e),oo(td.traverseReadonlyNonEmptyArrayWithIndex(e8.SK)))},fv=function(e){var t=fh(e);return function(e){return nR.Od(e)?t(e):fm}},fy=cy,fg=c$,f_=function(){function e(e){var t=this;this.value=e,this.read=function(){return t.value},this.write=this.write.bind(this),this.modify=this.modify.bind(this)}return e.prototype.write=function(e){var t=this;return function(){t.value=e}},e.prototype.modify=function(e){var t=this;return function(){t.value=e(t.value)}},e}();function fb(e){return function(){return new f_(e)}}var fS=function(e){return(0,tE.tryCatch)(function(){return JSON.parse(e)},e8.identity)},fT=function(e){return(0,tE.tryCatch)(function(){var t=JSON.stringify(e);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},e8.identity)},fI=n(76113),fR=n(55116),fw=n(96576),fO=n(43586),fx=function(e,t,n){return function(r){return -1===r?e():0===r?t():n()}},fC=fx,fM=function(e){return -1===e?1:1===e?-1:0},fE={equals:function(e,t){return e===t}},fP={concat:function(e,t){return 0!==e?e:t}},fk={concat:fP.concat,empty:0},fF=function(e){return e<=-1?-1:e>=1?1:0},fW=fM,fD=fP,fN=fE,fL=fk,fU=n(18896),fA=function(){return Math.random()};function fj(e,t){return(0,e8.pipe)(fA,oo(function(n){return Math.floor((t-e+1)*n+e)}))}function fq(e,t){return(0,e8.pipe)(fA,oo(function(n){return(t-e)*n+e}))}var fG=(0,e8.pipe)(fA,oo(function(e){return e<.5})),fY=function(e){return(0,e8.pipe)(fj(0,e.length-1),oo(function(t){return e[t]}))},fB=tk(nJ),fK=tP(nJ),fV=tF(n$),fz=tW(n$),fH=nL,f$=fV,fX=tH(n$),fJ=fX,fZ=t$(n3),fQ=fZ,f0=fZ,f1=f0,f2=tX(n3),f8=f2,f7=t2(n$),f3=nx,f5=nC,f4=f5,f9=tJ(n3),f6=f9,le=(0,e8.dual)(2,tQ(n3)),lt=t0(n3),ln=t1(n$),lr=function(e,t){return(0,e8.pipe)(e,lu(t))},li=function(e,t){return(0,e8.pipe)(e,lp(t))},lo=function(e,t){return(0,e8.pipe)(e,ly(t))},lu=tU(n$),la=(0,e8.dual)(3,tB(n$)),lc=la,lf=(0,e8.dual)(2,tV(n$)),ll=lf,lp=tA(nZ),ld=lp,ls=fK,lm=(0,e8.dual)(2,tq(n3)),lh=lm(e8.identity),lv=lh,ly=tG(n3),lg=ly,l_=fB,lb="ReaderEither",lS=function(e){var t=tE.getCompactable(e);return{URI:lb,_E:void 0,compact:tm(n$,t),separate:th(n$,t,tE.Functor)}};function lT(e){var t=tE.getFilterable(e),n=lS(e),r=ne(n$,t),i=nt(n$,t),o=nn(n$,t),u=nr(n$,t);return{URI:lb,_E:void 0,map:lr,compact:n.compact,separate:n.separate,filter:function(e,t){return(0,e8.pipe)(e,r(t))},filterMap:function(e,t){return(0,e8.pipe)(e,i(t))},partition:function(e,t){return(0,e8.pipe)(e,o(t))},partitionMap:function(e,t){return(0,e8.pipe)(e,u(t))}}}function lI(e){var t=(0,eA.ap)(nZ,tE.getApplicativeValidation(e));return{URI:lb,_E:void 0,map:lr,ap:function(e,n){return(0,e8.pipe)(e,t(n))},of:ls}}function lR(e){var t=tz(n3,e);return{URI:lb,_E:void 0,map:lr,alt:function(e,n){return(0,e8.pipe)(e,t(n))}}}var lw={URI:lb,map:lr},lO=(0,e8.dual)(2,(0,tp.as)(lw)),lx=(0,tp.asUnit)(lw),lC=(0,tp.flap)(lw),lM={URI:lb,of:ls},lE={URI:lb,map:lr,ap:li},lP=(0,eA.apFirst)(lE),lk=lP,lF=(0,eA.apSecond)(lE),lW=lF,lD={URI:lb,map:lr,ap:li,of:ls},lN={URI:lb,map:lr,ap:li,chain:lm},lL={URI:lb,map:lr,ap:li,of:ls,chain:lm},lU={URI:lb,fromEither:fH},lA={URI:lb,fromReader:f$},lj=(0,e8.dual)(2,to.tap(lN)),lq=(0,e8.dual)(2,(0,n_.tapEither)(lU,lN)),lG=(0,e8.dual)(2,rO(lA,lN)),lY={URI:lb,bimap:la,mapLeft:lf},lB={URI:lb,map:lr,alt:lo},lK=rS(lA),lV=rT(lA),lz=rI(lA),lH=lG,l$=lG,lX={URI:lb,map:lr,ap:li,of:ls,chain:lm,throwError:l_},lJ=(0,n_.fromOption)(lU),lZ=(0,n_.fromOptionK)(lU),lQ=(0,n_.chainOptionK)(lU,lN),l0=lQ,l1={fromEither:lU.fromEither},l2={fromReader:lA.fromReader},l8=nR.uL(l1),l7=nR.WE(l1),l3={flatMap:lm},l5=nR.ny(l1,l3),l4=nR.hU(l1,l3),l9=nR.iu(l1,l3),l6=nR.on(l2,l3),pe=l9,pt=l9,pn=lq,pr=lq,pi=l6,po=l6,pu=(0,n_.fromPredicate)(lU),pa=(0,n_.filterOrElse)(lU,lN),pc=pa,pf=(0,n_.fromEitherK)(lU),pl=ls(nR.F4),pp=(0,tp.bindTo)(lw),pd=(0,tp.let)(lw),ps=to.bind(lN),pm=ps,ph=(0,eA.apS)(lE),pv=ph,py=ls(nR.Xl),pg=function(e){return(0,e8.flow)(rf(e),nW(tE.traverseReadonlyNonEmptyArrayWithIndex(e8.SK)))},p_=function(e){var t=pg(e);return function(e){return nR.Od(e)?t(e):py}},pb=p_,pS=function(e){return p_(function(t,n){return e(n)})},pT=pS(e8.identity),pI=lm,pR=lm,pw=lj,pO=lj,px=le,pC=le,pM={URI:lb,bimap:la,mapLeft:lf,map:lr,of:ls,ap:li,chain:lm,alt:lo,throwError:fB},pE=(0,eA.getApplySemigroup)(lE),pP=(0,eG.getApplicativeMonoid)(lD),pk=function(e){return(0,eA.getApplySemigroup)(nZ)(tE.getSemigroup(e))};function pF(e){var t=lI(e),n=lR(e);return{URI:lb,_E:void 0,map:lr,ap:t.ap,of:ls,chain:lm,bimap:la,mapLeft:lf,alt:n.alt,throwError:l_}}function pW(e){return function(t){return function(){return e.of(t)}}}function pD(e){return function(t){return function(n){return function(r){return e.map(n(r),t)}}}}function pN(e){return function(t){return function(n){return function(r){return e.ap(n(r),t(r))}}}}function pL(e){var t=pU(e);return function(e){return function(n){return t(n,e)}}}function pU(e){return function(t,n){return function(r){return e.chain(t(r),function(e){return n(e)(r)})}}}function pA(e){return function(t){return(0,e8.flow)(t,e.of)}}function pj(e){return function(t){return(0,e8.flow)(t,e)}}function pq(e){var t=pN(e),n=pD(e),r=pL(e);return{map:function(e,t){return(0,e8.pipe)(e,n(t))},ap:function(e,n){return(0,e8.pipe)(e,t(n))},of:pW(e),chain:function(e,t){return(0,e8.pipe)(e,r(t))},ask:function(){return e.of},asks:function(t){return(0,e8.flow)(t,e.of)},local:function(e,t){return function(n){return e(t(n))}},fromReader:pA(e),fromM:function(e){return function(){return e}}}}var pG=pA(oh),pY=nL,pB=nx,pK=nC,pV=pK,pz=function(e,t){return(0,e8.pipe)(e,p$(t))},pH=function(e,t){return(0,e8.pipe)(e,pX(t))},p$=pD(op),pX=pN(ov),pJ=pX,pZ=pW(oh),pQ=(0,e8.dual)(2,pU(oS)),p0=pQ(e8.identity),p1=p0,p2="ReaderIO",p8={URI:p2,map:pz},p7=(0,e8.dual)(2,(0,tp.as)(p8)),p3=(0,tp.asUnit)(p8),p5=(0,tp.flap)(p8),p4={URI:p2,of:pZ},p9={URI:p2,map:pz,ap:pH},p6=(0,eA.apFirst)(p9),de=(0,eA.apSecond)(p9),dt={URI:p2,map:pz,ap:pH,of:pZ},dn={URI:p2,map:pz,ap:pH,chain:pQ},dr={URI:p2,map:pz,of:pZ,ap:pH,chain:pQ},di={URI:p2,map:pz,of:pZ,ap:pH,chain:pQ,fromIO:pY},du={URI:p2,fromIO:pY},da={URI:p2,fromReader:pG},dc={flatMap:pQ},df={fromIO:du.fromIO},dl=nR.we(df,dc),dp=nR.on({fromReader:pG},dc),dd=(0,e8.dual)(2,to.tap(dn)),ds=(0,e8.dual)(2,nI(du,dn)),dm=(0,e8.dual)(2,rO(da,dn)),dh=nb(du),dv=dl,dy=ds,dg=rS(da),d_=rT(da),db=rI(da),dS=dp,dT=dp,dI=dm,dR=dm,dw=pZ(nR.F4),dO=(0,tp.bindTo)(p8),dx=to.bind(dn),dC=dx,dM=(0,eA.apS)(p9),dE=dM,dP=pZ(nR.Xl),dk=function(e){return(0,e8.flow)(rf(e),nW(oF(e8.SK)))},dF=function(e){var t=dk(e);return function(e){return nR.Od(e)?t(e):dP}},dW=dF,dD=function(e){return dF(function(t,n){return e(n)})},dN=dD(e8.identity),dL=pQ,dU=pQ,dA=dd,dj=dd,dq=function(e){return function(){return Promise.resolve().then(e)}};function dG(e){return function(t){return function(){return new Promise(function(n){setTimeout(function(){Promise.resolve().then(t).then(n)},e)})}}}var dY=function(e,t){return(0,e8.pipe)(e,dV(t))},dB=function(e,t){return(0,e8.pipe)(e,dz(t))},dK=function(e,t){return d$(e,function(e){return(0,e8.pipe)(t,dV(e))})},dV=function(e){return function(t){return function(){return Promise.resolve().then(t).then(e)}}},dz=function(e){return function(t){return function(){return Promise.all([Promise.resolve().then(t),Promise.resolve().then(e)]).then(function(e){var t;return(0,e[0])(e[1])})}}},dH=function(e){return function(){return Promise.resolve(e)}},d$=(0,e8.dual)(2,function(e,t){return function(){return Promise.resolve().then(e).then(function(e){return t(e)()})}}),dX=d$(e8.identity),dJ="Task";function dZ(){return{concat:function(e,t){return function(){return Promise.race([Promise.resolve().then(e),Promise.resolve().then(t)])}},empty:sm}}var dQ={URI:dJ,map:dY},d0=(0,e8.dual)(2,(0,tp.as)(dQ)),d1=(0,tp.asUnit)(dQ),d2=(0,tp.flap)(dQ),d8={URI:dJ,of:dH},d7={URI:dJ,map:dY,ap:dB},d3=(0,eA.apFirst)(d7),d5=(0,eA.apSecond)(d7),d4={URI:dJ,map:dY,ap:dB,of:dH},d9={URI:dJ,map:dY,ap:dK},d6={URI:dJ,map:dY,ap:dK,of:dH},se={URI:dJ,map:dY,ap:dB,chain:d$},st={URI:dJ,map:dY,of:dH,ap:dB,chain:d$},sn={URI:dJ,map:dY,of:dH,ap:dB,chain:d$,fromIO:dq},sr=e8.identity,si={URI:dJ,map:dY,of:dH,ap:dB,chain:d$,fromIO:dq,fromTask:sr},so={URI:dJ,fromIO:dq},su={fromIO:so.fromIO},sa=nR.we(su,{flatMap:d$}),sc=(0,e8.dual)(2,to.tap(se)),sf=(0,e8.dual)(2,nI(so,se)),sl=nb(so),sp=sa,sd=sf,ss={URI:dJ,fromIO:dq,fromTask:sr},sm=function(){return new Promise(function(e){})},sh=dH(nR.F4),sv=(0,tp.bindTo)(dQ),sy=(0,tp.let)(dQ),sg=to.bind(se),s_=(0,eA.apS)(d7),sb=dH(nR.Xl),sS=function(e){return function(t){return function(){return Promise.all(t.map(function(t,n){return Promise.resolve().then(function(){return e(n,t)()})}))}}},sT=function(e){var t=sS(e);return function(e){return nR.Od(e)?t(e):sb}},sI=function(e){return function(t){return function(){return nR.Gb(t).reduce(function(t,n,r){return t.then(function(t){return Promise.resolve().then(e(r+1,n)).then(function(e){return t.push(e),t})})},Promise.resolve().then(e(0,nR.YM(t))).then(nR.ri))}}},sR=function(e){var t=sI(e);return function(e){return nR.Od(e)?t(e):sb}},sw=sT,sO=function(e){return sT(function(t,n){return e(n)})},sx=sO(e8.identity),sC=sR,sM=function(e){return sR(function(t,n){return e(n)})},sE=sM(e8.identity),sP=d$,sk=sc,sF={URI:dJ,map:dY,of:dH,ap:dB,chain:d$,fromIO:dq,fromTask:sr},sW={URI:dJ,map:dY,of:dH,ap:dK,chain:d$,fromIO:dq,fromTask:sr},sD=(0,eA.getApplySemigroup)(d9),sN=(0,eG.getApplicativeMonoid)(d6),sL=pA(d8),sU=nL,sA=(0,e8.flow)(dq,sU),sj=nW(dq),sq=nx,sG=nC,sY=sG,sB=function(e,t){return(0,e8.pipe)(e,sz(t))},sK=function(e,t){return(0,e8.pipe)(e,sH(t))},sV=function(e,t){return sJ(e,function(e){return(0,e8.pipe)(t,sz(e))})},sz=pD(dQ),sH=pN(d7),s$=sH,sX=pW(d8),sJ=(0,e8.dual)(2,pU(st)),sZ=sJ(e8.identity),sQ=sZ,s0="ReaderTask",s1={URI:s0,map:sB},s2=(0,e8.dual)(2,(0,tp.as)(s1)),s8=(0,tp.asUnit)(s1),s7=(0,tp.flap)(s1),s3={URI:s0,of:sX},s5={URI:s0,map:sB,ap:sK},s4=(0,eA.apFirst)(s5),s9=(0,eA.apSecond)(s5),s6={URI:s0,map:sB,ap:sK,of:sX},me={URI:s0,map:sB,ap:sV},mt={URI:s0,map:sB,ap:sV,of:sX},mn={URI:s0,map:sB,ap:sK,chain:sJ},mr={URI:s0,map:sB,of:sX,ap:sK,chain:sJ},mi={URI:s0,map:sB,of:sX,ap:sK,chain:sJ,fromIO:sA},mo={URI:s0,map:sB,of:sX,ap:sK,chain:sJ,fromIO:sA,fromTask:sU},mu={URI:s0,fromIO:sA},ma={URI:s0,fromIO:sA,fromTask:sU},mc={URI:s0,fromReader:sL},mf={flatMap:sJ},ml={fromIO:mu.fromIO},mp=nR.we(ml,mf),md=nR.D9({fromTask:sU},mf),ms=nR.on({fromReader:sL},mf),mm=(0,e8.dual)(2,function(e,t){return sJ(e,mE(t))}),mh=(0,e8.dual)(2,to.tap(mn)),mv=(0,e8.dual)(2,nI(mu,mn)),my=(0,e8.dual)(2,rO(mc,mn)),mg=(0,e8.dual)(2,is(ma,mn)),m_=(0,e8.dual)(2,function(e,t){return mh(e,mE(t))}),mb=nb(mu),mS=mp,mT=mv,mI=rS(mc),mR=rT(mc),mw=rI(mc),mO=ms,mx=ms,mC=my,mM=my,mE=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return sj(e.apply(void 0,t))}},mP=mm,mk=mm,mF=m_,mW=m_,mD=il(ma),mN=md,mL=mg,mU=sX(nR.F4),mA=(0,tp.bindTo)(s1),mj=(0,tp.let)(s1),mq=to.bind(mn),mG=mq,mY=(0,eA.apS)(s5),mB=mY,mK=sX(nR.Xl),mV=function(e){return(0,e8.flow)(rf(e),nW(sS(e8.SK)))},mz=function(e){var t=mV(e);return function(e){return nR.Od(e)?t(e):mK}},mH=function(e){return(0,e8.flow)(rf(e),nW(sI(e8.SK)))},m$=function(e){var t=mH(e);return function(e){return nR.Od(e)?t(e):mK}},mX=mz,mJ=function(e){return mz(function(t,n){return e(n)})},mZ=mJ(e8.identity),mQ=m$,m0=function(e){return m$(function(t,n){return e(n)})},m1=sJ,m2=sJ,m8=mh,m7=mh,m3=m0(e8.identity),m5={URI:s0,map:sB,of:sX,ap:sK,chain:sJ,fromIO:sA,fromTask:sU},m4={URI:s0,map:sB,of:sX,ap:sV,chain:sJ,fromIO:sA,fromTask:sU},m9=(0,eA.getApplySemigroup)(me),m6=(0,eG.getApplicativeMonoid)(mt);function he(e,t){return e(t)()}var ht=function(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=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 u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(c){a=[6,c],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},hn=tk(d8),hr=tP(d8),hi=tF(dQ),ho=tW(dQ),hu=(0,e8.flow)(dq,hi),ha=(0,e8.flow)(dq,ho),hc=hu,hf=hi,hl=dH,hp=dq,hd=function(e){return dV(tE.fromOption(e))},hs=tH(dQ),hm=hs,hh=t$(st),hv=hh,hy=hh,hg=hy,h_=tX(st),hb=h_,hS=function(e,t){return function(){var n,r,i,o;return n=void 0,r=void 0,i=void 0,o=function(){var n;return ht(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e().then(nR.F2)];case 1:return[2,r.sent()];case 2:return n=r.sent(),[2,nR.t$(t(n))];case 3:return[2]}})},new(i||(i=Promise))(function(e,t){function u(e){try{c(o.next(e))}catch(n){t(n)}}function a(e){try{c(o.throw(e))}catch(n){t(n)}}function c(t){var n;t.done?e(t.value):((n=t.value)instanceof i?n:new i(function(e){e(n)})).then(u,a)}c((o=o.apply(n,r||[])).next())})}},hT=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return hS(function(){return e.apply(void 0,n)},t)}},hI=t2(dQ),hR=tD(d8),hw=tN(d8),hO=tL(st),hx=tJ(st),hC=hx,hM=(0,e8.dual)(2,tQ(st)),hE=function(e){return hM(vH(e))},hP=function(e){return hM(vJ(e))},hk=t0(st),hF=t1(dQ),hW=function(e){var t=hd(e);return function(e){return(0,e8.flow)(e,t)}},hD=function(e){return function(t){return function(n){return h$(n,hW(e)(t))}}},hN=hD,hL=function(e){return(0,e8.flow)(e,hp)},hU=function(e,t){return(0,e8.pipe)(e,hG(t))},hA=function(e,t){return(0,e8.pipe)(e,hz(t))},hj=function(e,t){return h$(e,function(e){return(0,e8.pipe)(t,hG(e))})},hq=function(e,t){return(0,e8.pipe)(e,hZ(t))},hG=tU(dQ),hY=(0,e8.dual)(3,tB(dQ)),hB=hY,hK=(0,e8.dual)(2,tV(dQ)),hV=hK,hz=tA(d7),hH=hz,h$=(0,e8.dual)(2,tq(st)),hX=h$(e8.identity),hJ=hX,hZ=tG(st),hQ=hZ,h0=hr,h1=hn,h2="TaskEither";function h8(e,t){var n=(0,eA.ap)(e,tE.getApplicativeValidation(t));return{URI:h2,_E:void 0,map:hU,ap:function(e,t){return(0,e8.pipe)(e,n(t))},of:h0}}function h7(e){var t=tz(st,e);return{URI:h2,_E:void 0,map:hU,alt:function(e,n){return(0,e8.pipe)(e,t(n))}}}var h3=function(e){var t=tE.getCompactable(e);return{URI:h2,_E:void 0,compact:tm(dQ,t),separate:th(dQ,t,tE.Functor)}};function h5(e){var t=tE.getFilterable(e),n=h3(e),r=ne(dQ,t),i=nt(dQ,t),o=nn(dQ,t),u=nr(dQ,t);return{URI:h2,_E:void 0,map:hU,compact:n.compact,separate:n.separate,filter:function(e,t){return(0,e8.pipe)(e,r(t))},filterMap:function(e,t){return(0,e8.pipe)(e,i(t))},partition:function(e,t){return(0,e8.pipe)(e,o(t))},partitionMap:function(e,t){return(0,e8.pipe)(e,u(t))}}}var h4={URI:h2,map:hU},h9=(0,e8.dual)(2,(0,tp.as)(h4)),h6=(0,tp.asUnit)(h4),ve=(0,tp.flap)(h4),vt={URI:h2,of:h0},vn={URI:h2,map:hU,ap:hA},vr=(0,eA.apFirst)(vn),vi=vr,vo=(0,eA.apSecond)(vn),vu=vo,va={URI:h2,map:hU,ap:hA,of:h0},vc={URI:h2,map:hU,ap:hj},vf={URI:h2,map:hU,ap:hj,of:h0},vl={URI:h2,map:hU,ap:hA,chain:h$},vp={URI:h2,map:hU,ap:hA,chain:h$,of:h0},vd={URI:h2,map:hU,ap:hA,chain:h$,of:h0,fromIO:hc},vs={URI:h2,map:hU,ap:hA,chain:h$,of:h0,fromIO:hc,fromTask:hf},vm={URI:h2,map:hU,ap:hA,chain:h$,of:h0,throwError:h1},vh={URI:h2,fromEither:hl},vv={URI:h2,fromIO:hc},vy={URI:h2,fromIO:hc,fromTask:hf},vg=(0,e8.dual)(2,to.tap(vl)),v_=(0,e8.dual)(2,(0,n_.tapEither)(vh,vl)),vb=(0,e8.dual)(2,nI(vv,vl)),vS=(0,e8.dual)(2,is(vy,vl)),vT={URI:h2,bimap:hY,mapLeft:hK},vI={URI:h2,map:hU,alt:hq},vR=(0,n_.fromOption)(vh),vw=(0,n_.fromOptionK)(vh),vO=(0,n_.chainOptionK)(vh,vl),vx=vO,vC={fromEither:vh.fromEither},vM=nR.uL(vC),vE=nR.WE(vC),vP={flatMap:h$},vk={fromIO:vv.fromIO},vF=nR.ny(vC,vP),vW=nR.hU(vC,vP),vD=nR.iu(vC,vP),vN=nR.we(vk,vP),vL=nR.D9({fromTask:hf},vP),vU=(0,e8.dual)(2,function(e,t){return h$(e,hL(t))}),vA=(0,e8.dual)(3,function(e,t,n){return h$(e,function(e){return hd(function(){return n(e)})(t(e))})}),vj=vD,vq=vD,vG=v_,vY=v_,vB=(0,n_.fromPredicate)(vh),vK=(0,n_.filterOrElse)(vh,vl),vV=vK,vz=(0,n_.fromEitherK)(vh),vH=nb(vv),v$=vN,vX=vb,vJ=il(vy),vZ=vL,vQ=vS,v0=vU,v1=vU;function v2(e){return function(){var t=Array.prototype.slice.call(arguments);return function(){return new Promise(function(n){var r=function(e,t){return null!=e?n(nR.t$(e)):n(nR.F2(t))};e.apply(null,t.concat(r))})}}}var v8=function(e,t,n){return v7(e,t,n)},v7=function(e,t,n){return h$(e,function(e){return d$(t(e),function(t){return h$(n(e,t),function(){return dH(t)})})})},v3=h0(nR.F4),v5=(0,tp.bindTo)(h4),v4=(0,tp.let)(h4),v9=to.bind(vl),v6=v9,ye=(0,eA.apS)(vn),yt=ye,yn=h0(nR.Xl),yr=function(e){return(0,e8.flow)(sS(e),dV(tE.traverseReadonlyNonEmptyArrayWithIndex(e8.SK)))},yi=function(e){var t=yr(e);return function(e){return nR.Od(e)?t(e):yn}},yo=function(e){return function(t){return function(){return nR.Gb(t).reduce(function(t,n,r){return t.then(function(i){return nR.nM(i)?t:e(r+1,n)().then(function(e){return nR.nM(e)?e:(i.right.push(e.right),i)})})},e(0,nR.YM(t))().then(tE.map(nR.ri)))}}},yu=function(e){var t=yo(e);return function(e){return nR.Od(e)?t(e):yn}},ya=yi,yc=function(e){return yi(function(t,n){return e(n)})},yf=yc(e8.identity),yl=yu,yp=function(e){return yu(function(t,n){return e(n)})},yd=yp(e8.identity),ys=h$,ym=h$,yh=vg,yv=vg,yy=hM,yg=hM,y_={URI:h2,bimap:hY,mapLeft:hK,map:hU,of:h0,ap:hA,chain:h$,alt:hq,fromIO:hc,fromTask:hf,throwError:h1},yb={URI:h2,bimap:hY,mapLeft:hK,map:hU,of:h0,ap:hj,chain:h$,alt:hq,fromIO:hc,fromTask:hf,throwError:h1},yS=(0,eA.getApplySemigroup)(vc),yT=(0,eG.getApplicativeMonoid)(vf),yI=function(e){return(0,eA.getApplySemigroup)(d9)(tE.getSemigroup(e))};function yR(e){var t=h8(d4,e),n=h7(e);return{URI:h2,_E:void 0,map:hU,ap:t.ap,of:h0,chain:h$,bimap:hY,mapLeft:hK,alt:n.alt,fromIO:hc,fromTask:hf,throwError:h1}}var yw=nL,yO=tk(s3),yx=tP(s3),yC=(0,e8.flow)(hi,yw),yM=(0,e8.flow)(ho,yw),yE=function(e){return(0,e8.flow)(e,hr)},yP=function(e){return(0,e8.flow)(e,hn)},yk=tF(s1),yF=tW(s1),yW=(0,e8.flow)(hu,yw),yD=(0,e8.flow)(ha,yw),yN=function(e){return(0,e8.flow)(e,hu)},yL=function(e){return(0,e8.flow)(e,ha)},yU=sX,yA=yE,yj=yW,yq=yC,yG=(0,e8.flow)(hp,yw),yY=function(e){return(0,e8.flow)(e,hl)},yB=tH(s1),yK=yB,yV=t$(mn),yz=yV,yH=yV,y$=yH,yX=tX(mr),yJ=yX,yZ=t2(s1),yQ=tD(s3),y0=tN(s3),y1=tL(mr),y2=nx,y8=nC,y7=y8,y3=tJ(mr),y5=y3,y4=(0,e8.dual)(2,tQ(mr)),y9=t0(mr),y6=t1(s1),ge=function(e){return(0,e8.flow)(e,yG)},gt=function(e){return(0,e8.flow)(e,yw)},gn=function(e){return(0,e8.flow)(e,yY)},gr=function(e,t){return(0,e8.pipe)(e,ga(t))},gi=function(e,t){return(0,e8.pipe)(e,gd(t))},go=function(e,t){return gh(e,function(e){return(0,e8.pipe)(t,ga(e))})},gu=function(e,t){return(0,e8.pipe)(e,gg(t))},ga=tU(s1),gc=(0,e8.dual)(3,tB(s1)),gf=gc,gl=(0,e8.dual)(2,tV(s1)),gp=gl,gd=tA(s5),gs=gd,gm=yx,gh=(0,e8.dual)(2,tq(mr)),gv=gh(e8.identity),gy=gv,gg=tG(mr),g_=gg,gb=yO,gS="ReaderTaskEither",gT=function(e){var t=tE.getCompactable(e);return{URI:gS,_E:void 0,compact:tm(s1,t),separate:th(s1,t,tE.Functor)}};function gI(e){var t=tE.getFilterable(e),n=gT(e),r=ne(s1,t),i=nt(s1,t),o=nn(s1,t),u=nr(s1,t);return{URI:gS,_E:void 0,map:gr,compact:n.compact,separate:n.separate,filter:function(e,t){return(0,e8.pipe)(e,r(t))},filterMap:function(e,t){return(0,e8.pipe)(e,i(t))},partition:function(e,t){return(0,e8.pipe)(e,o(t))},partitionMap:function(e,t){return(0,e8.pipe)(e,u(t))}}}function gR(e,t){var n=(0,eA.ap)(nZ,h8(e,t));return{URI:gS,_E:void 0,map:gr,ap:function(e,t){return(0,e8.pipe)(e,n(t))},of:gm}}function gw(e){var t=tz(mr,e);return{URI:gS,_E:void 0,map:gr,alt:function(e,n){return(0,e8.pipe)(e,t(n))}}}var gO={URI:gS,map:gr},gx=(0,e8.dual)(2,(0,tp.as)(gO)),gC=(0,tp.asUnit)(gO),gM=(0,tp.flap)(gO),gE={URI:gS,of:gm},gP={URI:gS,map:gr,ap:gi},gk=(0,eA.apFirst)(gP),gF=gk,gW=(0,eA.apSecond)(gP),gD=gW,gN={URI:gS,map:gr,ap:gi,of:gm},gL={URI:gS,map:gr,ap:go},gU={URI:gS,map:gr,ap:go,of:gm},gA={URI:gS,map:gr,ap:gi,chain:gh},gj={URI:gS,map:gr,ap:gi,chain:gh,of:gm},gq={URI:gS,map:gr,ap:gi,chain:gh,of:gm,fromIO:yj},gG={URI:gS,map:gr,ap:gi,chain:gh,of:gm,fromIO:yj,fromTask:yq},gY={URI:gS,map:gr,ap:gi,chain:gh,of:gm,throwError:gb},gB={URI:gS,fromEither:yU},gK={URI:gS,fromIO:yj},gV={URI:gS,fromIO:yj,fromTask:yq},gz={URI:gS,fromReader:yA},gH=(0,e8.dual)(2,to.tap(gA)),g$=(0,e8.dual)(2,(0,n_.tapEither)(gB,gA)),gX=(0,e8.dual)(2,nI(gK,gA)),gJ=(0,e8.dual)(2,is(gV,gA)),gZ=(0,e8.dual)(2,rO(gz,gA)),gQ=(0,e8.dual)(2,function(e,t){return gH(e,gn(t))}),g0=(0,e8.dual)(2,function(e,t){return gH(e,gt(t))}),g1=(0,e8.dual)(2,function(e,t){return gH(e,_i(t))}),g2=(0,e8.dual)(2,function(e,t){return gH(e,_a(t))}),g8={URI:gS,bimap:gc,mapLeft:gl},g7={URI:gS,map:gr,alt:gu},g3=rS(gz),g5=rT(gz),g4=rI(gz),g9=gZ,g6=gZ,_e=gQ,_t=gQ,_n=g0,_r=g0,_i=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return yk(e.apply(void 0,t))}},_o=g1,_u=g1,_a=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return yN(e.apply(void 0,t))}},_c=g2,_f=g2,_l=(0,n_.fromOption)(gB),_p=(0,n_.fromOptionK)(gB),_d=(0,n_.chainOptionK)(gB,gA),_s=_d,_m={fromEither:gB.fromEither},_h=nR.uL(_m),_v=nR.WE(_m),_y={flatMap:gh},_g=nR.ny(_m,_y),__=nR.hU(_m,_y),_b=nR.iu(_m,_y),_S=(0,e8.dual)(2,function(e,t){return gh(e,gt(t))}),_T=(0,e8.dual)(2,function(e,t){return gh(e,_i(t))}),_I=nR.we({fromIO:yj},_y),_R=nR.D9({fromTask:yq},_y),_w=nR.on({fromReader:yA},_y),_O=(0,e8.dual)(2,function(e,t){return gh(e,_a(t))}),_x=(0,e8.dual)(2,function(e,t){return gh(e,ge(t))}),_C=(0,e8.dual)(2,function(e,t){return gh(e,gn(t))}),_M=_b,_E=_b,_P=g$,_k=g$,_F=_S,_W=_S,_D=_T,_N=_T,_L=(0,n_.fromPredicate)(gB),_U=(0,n_.filterOrElse)(gB,gA),_A=_U,_j=(0,n_.fromEitherK)(gB),_q=nb(gK),_G=_I,_Y=gX,_B=il(gV),_K=_R,_V=gJ,_z=_w,_H=_w,_$=_O,_X=_O,_J=_x,_Z=_x,_Q=_C,_0=_C;function _1(e,t,n){return _2(e,t,n)}function _2(e,t,n){return function(r){return v7(e(r),function(e){return t(e)(r)},function(e,t){return n(e,t)(r)})}}var _8=gm(nR.F4),_7=(0,tp.bindTo)(gO),_3=(0,tp.let)(gO),_5=to.bind(gA),_4=_5,_9=(0,eA.apS)(gP),_6=_9,be=gm(nR.Xl),bt=function(e){return(0,e8.flow)(rf(e),nW(yr(e8.SK)))},bn=function(e){var t=bt(e);return function(e){return nR.Od(e)?t(e):be}},br=function(e){return(0,e8.flow)(rf(e),nW(yo(e8.SK)))},bi=function(e){var t=br(e);return function(e){return nR.Od(e)?t(e):be}},bo=bn,bu=function(e){return bn(function(t,n){return e(n)})},ba=bu(e8.identity),bc=bi,bf=function(e){return bi(function(t,n){return e(n)})},bl=bf(e8.identity),bp=gh,bd=gh,bs=gH,bm=gH,bh=y4,bv=y4,by={URI:gS,map:gr,of:gm,ap:gi,chain:gh,alt:gu,bimap:gc,mapLeft:gl,fromIO:yj,fromTask:yq,throwError:gb},bg={URI:gS,map:gr,of:gm,ap:go,chain:gh,alt:gu,bimap:gc,mapLeft:gl,fromIO:yj,fromTask:yq,throwError:gb},b_=(0,eA.getApplySemigroup)(gL),bb=(0,eG.getApplicativeMonoid)(gU),bS=function(e){return(0,eA.getApplySemigroup)(me)(tE.getSemigroup(e))};function bT(e){var t=gR(d4,e),n=gw(e);return{URI:gS,_E:void 0,map:gr,of:gm,chain:gh,bimap:gc,mapLeft:gl,ap:t.ap,alt:n.alt,fromIO:yj,fromTask:yq,throwError:gb}}function bI(e,t){return e(t)()}var bR=n(31583),bw=n(13512),bO=n(28350),bx=n(97054),bC=n(99156);function bM(e){return e[0]}function bE(e){return e[1]}var bP=function(e){var t;return[bE(e),e[0]]};function bk(e){return{URI:b3,_E:void 0,map:bA,ap:function(t,n){var r,i;return[(0,t[0])(n[0]),e.concat(bE(t),bE(n))]}}}var bF=function(e){return function(t){return[t,e.empty]}};function bW(e){var t=bk(e);return{URI:b3,_E:void 0,map:bA,ap:t.ap,of:bF(e)}}function bD(e){var t=bk(e);return{URI:b3,_E:void 0,map:bA,ap:t.ap,chain:function(t,n){var r,i=n(t[0]),o=i[0],u=i[1];return[o,e.concat(bE(t),u)]}}}function bN(e){var t=bD(e);return{URI:b3,_E:void 0,map:bA,ap:t.ap,chain:t.chain,of:bF(e)}}function bL(e){var t=function(t,n){for(var r,i,o=n(t),u=e.empty,a=(i=o)[0];"Left"===a._tag;)u=e.concat(u,bE(o)),a=(r=o=n(a.left))[0];return[a.right,e.concat(u,bE(o))]},n=bD(e);return{URI:b3,_E:void 0,map:bA,ap:n.ap,chain:n.chain,chainRec:t}}var bU=function(e,t){return(0,e8.pipe)(e,bX(t))},bA=function(e,t){return(0,e8.pipe)(e,bH(t))},bj=function(e,t,n){return(0,e8.pipe)(e,bz(t,n))},bq=function(e,t){return(0,e8.pipe)(e,b$(t))},bG=function(e,t){return(0,e8.pipe)(e,bJ(t))},bY=function(e,t,n){return(0,e8.pipe)(e,b0(t,n))},bB=function(e){var t=b1(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},bK=function(e,t,n){return(0,e8.pipe)(e,b2(t,n))},bV=function(e){var t=b8(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},bz=function(e,t){return function(n){var r;return[t(n[0]),e(bE(n))]}},bH=function(e){return function(t){var n;return[e(t[0]),bE(t)]}},b$=function(e){return function(t){var n;return[t[0],e(bE(t))]}},bX=function(e){return function(t){var n;return[t[0],bE(e)]}},bJ=function(e){return function(t){return[e(t),bE(t)]}},bZ=bM,bQ=bJ(e8.identity),b0=function(e,t){return function(n){var r;return t(e,n[0])}},b1=function(){return function(e){return function(t){var n;return e(t[0])}}},b2=function(e,t){return function(n){var r;return t(n[0],e)}},b8=function(e){return function(t){return function(n){var r;return e.map(t(n[0]),function(e){return[e,bE(n)]})}}},b7=function(e){return function(t){var n;return e.map(t[0],function(e){return[e,bE(t)]})}},b3="ReadonlyTuple",b5={URI:b3,map:bA},b4=(0,tp.flap)(b5),b9=bH,b6=b$,Se={URI:b3,bimap:bj,mapLeft:bq},St={URI:b3,compose:bU},Sn={URI:b3,map:bA,extend:bG,extract:bZ},Sr={URI:b3,reduce:bY,foldMap:bB,reduceRight:bK},Si={URI:b3,map:bA,reduce:bY,foldMap:bB,reduceRight:bK,traverse:bV,sequence:b7},So={URI:b3,compose:bU,map:bA,bimap:bj,mapLeft:bq,extract:bZ,extend:bG,reduce:bY,foldMap:bB,reduceRight:bK,traverse:bV,sequence:b7},Su=n(3291),Sa=n(57029),Sc=n(76511),Sf=function(){return(Sf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Sl=bx.size,Sp=bx.isEmpty,Sd=function(e){return function(t){return Object.keys(t).sort(e.compare)}},Ss=Sd(Sa.Ord);function Sm(e){if("function"==typeof e)return Sm(Sa.Ord)(e);var t=Sd(e);return function(e){return function(n){for(var r=[],i=0,o=t(n);i<o.length;i++){var u=o[i];r.push(e(u,n[u]))}return r}}}var Sh=Sm(Sa.Ord)(function(e,t){return[e,t]});function Sv(e){return function(t){var n=Sh(t),r=n.length;return e.unfold(0,function(e){return e<r?nR.G([n[e],e+1]):nR.YP})}}var Sy=bx.upsertAt,Sg=bx.has;function S_(e){return function(t){if(!nR.e$.call(t,e))return t;var n=Object.assign({},t);return delete n[e],n}}var Sb=function(e,t){return SS(e,function(){return t})},SS=function(e,t){return function(n){if(!Sg(e,n))return nR.YP;var r=Object.assign({},n);return r[e]=t(n[e]),nR.G(r)}};function ST(e){var t=S_(e);return function(n){var r=SR(e,n);return nR.Wi(r)?nR.YP:nR.G([r.value,t(n)])}}var SI=bx.isSubrecord,SR=bx.lookup,Sw=bx.mapWithIndex,SO=bx.map;function Sx(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bx.reduceWithIndex(e[0]):bx.reduceWithIndex(Sa.Ord).apply(void 0,e)}function SC(e){return"compare"in e?bx.foldMapWithIndex(e):bx.foldMapWithIndex(Sa.Ord)(e)}function SM(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bx.reduceRightWithIndex(e[0]):bx.reduceRightWithIndex(Sa.Ord).apply(void 0,e)}var SE=bx.singleton;function SP(e){return bx.traverseWithIndex(e)}function Sk(e){return bx.traverse(e)}function SF(e){return bx.sequence(e)}var SW=function(e){var t=Sk(e);return function(n){return function(r){return e.map((0,e8.pipe)(r,t(n)),Td)}}},SD=function(e){var t=Sk(e);return function(n){return function(r){return e.map((0,e8.pipe)(r,t(n)),Ts)}}},SN=bx.partitionMapWithIndex;function SL(e){return bx.partitionWithIndex(e)}var SU=bx.filterMapWithIndex;function SA(e){return bx.filterWithIndex(e)}function Sj(e,t){return bx.fromFoldable(e,t)}var Sq=Sh,SG=function(e){return Sj(Su.last(),eY.Foldable)(e)};function SY(e,t){return bx.fromFoldableMap(e,t)}var SB=bx.every,SK=bx.some,SV=bx.elem,Sz=function(e){var t=bx.union(e);return function(e){return function(n){return Sp(n)?Sf({},e):Sp(e)?Sf({},n):t(e)(n)}}},SH=function(e){return function(t){return function(n){return Sp(n)||Sp(t)?{}:bx.intersection(e)(t)(n)}}},S$=function(e){return function(t){return Sp(t)?Sf({},e):Sp(e)?Sf({},t):bx.difference(e)(t)}},SX=bx._map,SJ=bx._mapWithIndex,SZ=bx._reduce,SQ=bx._foldMap,S0=bx._reduceRight,S1=bx._filter,S2=bx._filterMap,S8=bx._partition,S7=bx._partitionMap,S3=bx._reduceWithIndex,S5=bx._foldMapWithIndex,S4=bx._reduceRightWithIndex,S9=bx._partitionMapWithIndex,S6=bx._partitionWithIndex,Te=bx._filterMapWithIndex,Tt=bx._filterWithIndex,Tn=bx._traverse,Tr=bx._sequence,Ti=function(e){return function(t){var n=Sd(e);return function(e,r){var i=n(e);if(0===i.length)return t.of({});for(var o=t.of({}),u=function(n){o=t.ap(t.map(o,function(e){return function(t){return e[n]=t,e}}),r(n,e[n]))},a=0;a<i.length;a++)u(i[a]);return o}}},To=bx.filter,Tu=bx.filterMap,Ta=bx.partition,Tc=bx.partitionMap;function Tf(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bx.reduce(e[0]):bx.reduce(Sa.Ord).apply(void 0,e)}function Tl(e){return"compare"in e?bx.foldMap(e):bx.foldMap(Sa.Ord)(e)}function Tp(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bx.reduceRight(e[0]):bx.reduceRight(Sa.Ord).apply(void 0,e)}var Td=bx.compact,Ts=bx.separate,Tm="Record";function Th(e){return"compare"in e?bx.getShow(e):bx.getShow(Sa.Ord)(e)}var Tv=bx.getEq,Ty=bx.getMonoid,Tg={URI:Tm,map:SX},T_=(0,tp.flap)(Tg),Tb={URI:Tm,map:SX,mapWithIndex:SJ},TS=function(e){return{URI:Tm,reduce:SZ(e),foldMap:SQ(e),reduceRight:S0(e)}},TT=function(e){return{URI:Tm,reduce:SZ(e),foldMap:SQ(e),reduceRight:S0(e),reduceWithIndex:S3(e),foldMapWithIndex:S5(e),reduceRightWithIndex:S4(e)}},TI={URI:Tm,compact:Td,separate:Ts},TR={URI:Tm,map:SX,compact:Td,separate:Ts,filter:S1,filterMap:S2,partition:S8,partitionMap:S7},Tw={URI:Tm,map:SX,mapWithIndex:SJ,compact:Td,separate:Ts,filter:S1,filterMap:S2,partition:S8,partitionMap:S7,filterMapWithIndex:Te,filterWithIndex:Tt,partitionMapWithIndex:S9,partitionWithIndex:S6},TO=function(e){return{URI:Tm,map:SX,reduce:SZ(e),foldMap:SQ(e),reduceRight:S0(e),traverse:Tn(e),sequence:Tr(e)}},Tx=function(e){return{URI:Tm,map:SX,mapWithIndex:SJ,reduce:SZ(e),foldMap:SQ(e),reduceRight:S0(e),reduceWithIndex:S3(e),foldMapWithIndex:S5(e),reduceRightWithIndex:S4(e),traverse:Tn(e),sequence:Tr(e),traverseWithIndex:Ti(e)}},TC=function(e){var t=TO(e);return{URI:Tm,map:SX,reduce:SZ(e),foldMap:SQ(e),reduceRight:S0(e),traverse:t.traverse,sequence:t.sequence,compact:Td,separate:Ts,filter:S1,filterMap:S2,partition:S8,partitionMap:S7,wither:(0,Sc.witherDefault)(t,TI),wilt:(0,Sc.wiltDefault)(t,TI)}},TM=function(e){var t=Sz(e);return{concat:function(e,n){return t(n)(e)}}},TE=function(e){return{concat:TM(e).concat,empty:{}}},TP=function(e){var t=SH(e);return{concat:function(e,n){return t(n)(e)}}},Tk=function(){return{concat:function(e,t){return S$(t)(e)}}},TF={URI:Tm,reduce:SZ(Sa.Ord),foldMap:SQ(Sa.Ord),reduceRight:S0(Sa.Ord)},TW={URI:Tm,reduce:SZ(Sa.Ord),foldMap:SQ(Sa.Ord),reduceRight:S0(Sa.Ord),reduceWithIndex:S3(Sa.Ord),foldMapWithIndex:S5(Sa.Ord),reduceRightWithIndex:S4(Sa.Ord)},TD={URI:Tm,map:SX,reduce:SZ(Sa.Ord),foldMap:SQ(Sa.Ord),reduceRight:S0(Sa.Ord),traverse:Tn(Sa.Ord),sequence:SF},TN={URI:Tm,map:SX,mapWithIndex:SJ,reduce:SZ(Sa.Ord),foldMap:SQ(Sa.Ord),reduceRight:S0(Sa.Ord),reduceWithIndex:S3(Sa.Ord),foldMapWithIndex:S5(Sa.Ord),reduceRightWithIndex:S4(Sa.Ord),traverse:Tn(Sa.Ord),sequence:SF,traverseWithIndex:Ti(Sa.Ord)},TL=(0,Sc.witherDefault)(TD,TI),TU=(0,Sc.wiltDefault)(TD,TI),TA={URI:Tm,map:SX,reduce:SZ(Sa.Ord),foldMap:SQ(Sa.Ord),reduceRight:S0(Sa.Ord),traverse:Tn(Sa.Ord),sequence:SF,compact:Td,separate:Ts,filter:S1,filterMap:S2,partition:S8,partitionMap:S7,wither:TL,wilt:TU},Tj={},Tq=Sy,TG=bx.hasOwnProperty,TY={URI:Tm,map:SX,reduce:SZ(Sa.Ord),foldMap:SQ(Sa.Ord),reduceRight:S0(Sa.Ord),traverse:Tn(Sa.Ord),sequence:SF,compact:Td,separate:Ts,filter:S1,filterMap:S2,partition:S8,partitionMap:S7,mapWithIndex:SJ,reduceWithIndex:S3(Sa.Ord),foldMapWithIndex:S5(Sa.Ord),reduceRightWithIndex:S4(Sa.Ord),filterMapWithIndex:Te,filterWithIndex:Tt,partitionMapWithIndex:S9,partitionWithIndex:S6,traverseWithIndex:Ti(Sa.Ord),wither:TL,wilt:TU},TB=function(e){return function(t){return nR.pC(e(t))}},TK=function(e){return function(t){return nR.tO(e(t))}},TV=function(){return function(e){return!0}},Tz=function(e){return function(t){return!e(t)}},TH=function(e){return function(t){return function(n){return t(n)||e(n)}}},T$=function(e){return function(t){return function(n){return t(n)&&e(n)}}},TX=function(){return function(e){return!1}},TJ=function(e){return function(t){return function(n){return t(n)&&e(n)}}},TZ=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{add:function(t,n){return e.map(function(e,r){return e.add(t[r],n[r])})},zero:e.map(function(e){return e.zero}),mul:function(t,n){return e.map(function(e,r){return e.mul(t[r],n[r])})},one:e.map(function(e){return e.one}),sub:function(t,n){return e.map(function(e,r){return e.sub(t[r],n[r])})}}},TQ=function(e){return function(t){return e.sub(e.zero,t)}},T0=TZ,T1=e8.getRing,T2=e8.getSemiring,T8=n(1214),T7=function(e){return{show:function(t){var n="{";for(var r in e)nR.e$.call(e,r)&&(n+=" ".concat(r,": ").concat(e[r].show(t[r]),","));return n.length>1&&(n=n.slice(0,-1)+" "),n+="}"}}},T3=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{show:function(t){return"[".concat(t.map(function(t,n){return e[n].show(t)}).join(", "),"]")}}},T5=T3,T4=T7,T9={show:function(e){return JSON.stringify(e)}},T6={show:function(e){return JSON.stringify(e)}},Ie={show:function(e){return JSON.stringify(e)}};function It(e){return function(t){return function(n){return e.of([t,n])}}}function In(e){return function(t){return function(n){return function(r){return e.map(n(r),function(e){var n=e[0],r=e[1];return[t(n),r]})}}}}function Ir(e){return function(t){return function(n){return function(r){return e.chain(n(r),function(n){var r=n[0],i=n[1];return e.map(t(i),function(e){var t=e[0],n=e[1];return[r(t),n]})})}}}}function Ii(e){var t=Io(e);return function(e){return function(n){return t(n,e)}}}function Io(e){return function(t,n){return function(r){return e.chain(t(r),function(e){var t=e[0],r=e[1];return n(t)(r)})}}}function Iu(e){return function(t){return function(n){return e.of(t(n))}}}function Ia(e){return function(t){return function(n){return e.map(t,function(e){return[e,n]})}}}function Ic(e){return function(t){return function(n){return e.map(n(t),function(e){return e[0]})}}}function If(e){return function(t){return function(n){return e.map(n(t),bE)}}}function Il(e){var t=Ir(e),n=In(e),r=Ii(e),i=Ic(e),o=If(e);return{map:function(e,t){return(0,e8.pipe)(e,n(t))},ap:function(e,n){return(0,e8.pipe)(e,t(n))},of:It(e),chain:function(e,t){return(0,e8.pipe)(e,r(t))},get:function(){return function(t){return e.of([t,t])}},put:function(t){return function(){return e.of([void 0,t])}},modify:function(t){return function(n){return e.of([void 0,t(n)])}},gets:function(t){return function(n){return e.of([t(n),n])}},fromState:Iu(e),fromM:Ia(e),evalState:function(e,t){return(0,e8.pipe)(e,i(t))},execState:function(e,t){return(0,e8.pipe)(e,o(t))}}}var Ip=function(e){return function(){return yO(e)}},Id=It(gE);function Is(e){return IM(yC(e))}function Im(e){return IM(yM(e))}function Ih(e){return IM(yE(e))}function Iv(e){return IM(yP(e))}function Iy(e){return IM(yW(e))}function Ig(e){return IM(yD(e))}var I_=function(e){return(0,e8.flow)(e,yx)},Ib=function(e){return function(t){return yO(e(t)[0])}},IS=tE.match(function(e){return Ip(e)},Id),IT=Ih,II=Iy,IR=Is,Iw=Iu(gE),IO=function(e){return IM(yw(e))},Ix=function(e){return IM(yG(e))},IC=function(e){return IM(yY(e))},IM=Ia(gO),IE=function(e){return function(t){return(0,e8.flow)(t,nx(e))}},IP=function(e){return function(t){return function(n){return e(n)(t)(n)}}},Ik=IP,IF=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Ix(e.apply(void 0,t))}},IW=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return IO(e.apply(void 0,t))}},ID=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return IM(e.apply(void 0,t))}},IN=function(e){return function(t){return IX(t,ID(e))}},IL=IN,IU=function(e,t){return(0,e8.pipe)(e,IY(t))},IA=function(e,t){return(0,e8.pipe)(e,IV(t))},Ij=function(e,t){return function(n){return(0,e8.pipe)(e(n),gg(function(){return t()(n)}))}},Iq=function(e,t,n){return function(r){return(0,e8.pipe)(e(r),gf(t,function(e){var t=e[0],r=e[1];return[n(t),r]}))}},IG=function(e,t){return function(n){return(0,e8.pipe)(e(n),gp(t))}},IY=In(gO),IB=function(e,t){return function(n){return Iq(n,e,t)}},IK=function(e){return function(t){return IG(t,e)}},IV=Ir(gA),Iz=IV,IH=Id,I$={fromEither:IS},IX=(0,e8.dual)(2,Io(gj)),IJ={flatMap:IX},IZ=(0,e8.dual)(2,function(e,t){return IX(e,function(e){return IW(t)(e)})}),IQ=nR.we({fromIO:II},IJ),I0=nR.D9({fromTask:IR},IJ),I1=nR.on({fromReader:IT},IJ),I2=(0,e8.dual)(2,function(e,t){return IX(e,function(e){return IF(t)(e)})}),I8=(0,e8.dual)(2,nR.iu(I$,IJ)),I7=nR.hU(I$,IJ),I3=(0,e8.dual)(2,function(e,t){return IX(e,function(e){return ID(t)(e)})}),I5=(0,e8.dual)(2,function(e,t){return IX(e,Rb(t))}),I4=IX(e8.identity),I9=I4,I6=function(e){return function(t){return function(n){return(0,e8.pipe)(t(n),g_(function(){return e()(n)}))}}},Re=I6,Rt=Ip,Rn="StateReaderTaskEither",Rr={URI:Rn,map:IU},Ri=(0,e8.dual)(2,(0,tp.as)(Rr)),Ro=(0,tp.asUnit)(Rr),Ru=(0,tp.flap)(Rr),Ra={URI:Rn,of:IH},Rc={URI:Rn,map:IU,ap:IA},Rf=(0,eA.apFirst)(Rc),Rl=Rf,Rp=(0,eA.apSecond)(Rc),Rd=Rp,Rs={URI:Rn,map:IU,ap:IA,of:IH},Rm={URI:Rn,map:IU,ap:IA,chain:IX},Rh={URI:Rn,fromState:Iw},Rv=ir(Rh),Ry=ii(Rh),Rg=io(Rh),R_=iu(Rh),Rb=ia(Rh),RS=ic(Rh,Rm),RT={URI:Rn,map:IU,ap:IA,of:IH,chain:IX},RI={URI:Rn,map:IU,ap:IA,of:IH,chain:IX,fromIO:II},RR={URI:Rn,map:IU,ap:IA,of:IH,chain:IX,fromIO:II,fromTask:IR},Rw={URI:Rn,map:IU,ap:IA,of:IH,chain:IX,throwError:Rt},RO={URI:Rn,fromEither:IS},Rx={URI:Rn,fromIO:II},RC={URI:Rn,fromIO:II,fromTask:IR},RM={URI:Rn,fromReader:IT},RE=(0,e8.dual)(2,to.tap(Rm)),RP=(0,e8.dual)(2,(0,n_.tapEither)(RO,Rm)),Rk=(0,e8.dual)(2,nI(Rx,Rm)),RF=(0,e8.dual)(2,is(RC,Rm)),RW=(0,e8.dual)(2,rO(RM,Rm)),RD={URI:Rn,bimap:Iq,mapLeft:IG},RN={URI:Rn,map:IU,alt:Ij},RL=rS(RM),RU=rT(RM),RA=rI(RM),Rj=I1,Rq=I1,RG=RW,RY=RW,RB=(0,n_.fromOption)(RO),RK=(0,n_.fromOptionK)(RO),RV=(0,n_.chainOptionK)(RO,Rm),Rz=RV,RH=I8,R$=I8,RX=RP,RJ=RP,RZ=(0,n_.fromPredicate)(RO),RQ=(0,n_.filterOrElse)(RO,Rm),R0=RQ,R1=(0,n_.fromEitherK)(RO),R2=nb(Rx),R8=IQ,R7=Rk,R3=IZ,R5=IZ,R4=I2,R9=I2,R6=il(RC),we=I0,wt=RF,wn=Ic(gO),wr=If(gO),wi=(0,tp.bindTo)(Rr),wo=(0,tp.let)(Rr),wu=to.bind(Rm),wa=wu,wc=(0,eA.apS)(Rc),wf=wc,wl=function(e){return function(t){return function(n){return function(r){return function(){return nR.Gb(t).reduce(function(t,n,i){return t.then(function(o){return nR.nM(o)?t:e(i+1,n)(o.right[1])(r)().then(function(e){if(nR.nM(e))return e;var t=e.right,n=t[0],r=t[1];return o.right[0].push(n),o.right[1]=r,o})})},e(0,nR.YM(t))(n)(r)().then(tE.map(function(e){var t;return[[e[0]],e[1]]})))}}}}},wp=function(e){var t=wl(e);return function(e){return nR.Od(e)?t(e):IH(nR.Xl)}},wd=wp,ws=function(e){return wp(function(t,n){return e(n)})},wm=ws(e8.identity),wh=IX,wv=IX,wy=RE,wg=RE,w_={URI:Rn,map:IU,of:IH,ap:IA,chain:IX,bimap:Iq,mapLeft:IG,alt:Ij,fromIO:II,fromTask:IR,throwError:Rt},wb={URI:Rn,map:IU,of:IH,ap:IA,chain:IX,bimap:Iq,mapLeft:IG,alt:Ij,fromIO:II,fromTask:IR,throwError:Rt},wS=function(e,t){return(0,e8.pipe)(e(t),ga(function(e){return e[0]}))},wT=function(e,t){return(0,e8.pipe)(e(t),ga(function(e){return e[0],e[1]}))};function wI(e,t,n){return e(t)(n)()}function wR(e){return function(t){return{peek:t.peek,pos:e}}}function ww(e){return function(t){return{peek:t.peek,pos:e(t.pos)}}}function wO(e){return function(t){return t.peek(e(t.pos))}}function wx(e){return function(t){return function(n){return e.map(t(n.pos),function(e){return n.peek(e)})}}}var wC=function(e,t){return(0,e8.pipe)(e,wF(t))},wM=function(e,t){return(0,e8.pipe)(e,wE(t))},wE=function(e){return function(t){return{peek:function(n){return e({peek:t.peek,pos:n})},pos:t.pos}}},wP=function(e){return e.peek(e.pos)},wk=wE(e8.identity),wF=function(e){return function(t){return{peek:function(n){return e(t.peek(n))},pos:t.pos}}},wW="Store",wD={URI:wW,map:wC},wN=(0,tp.flap)(wD),wL={URI:wW,map:wC,extend:wM,extract:wP},wU=wL;function wA(e,t){return function(n,r){return t.compose(e.second(r),e.first(n))}}function wj(e,t){var n=wA(e,t);return function(r,i){return t.compose(n(r,i),e.promap(t.id(),e8.identity,function(e){return[e,e]}))}}function wq(e){return wA(e,e)}function wG(e){return wj(e,e)}var wY=function(){return{concat:function(e,t){return Object.assign({},e,t)}}},wB=function(e){return function(t){var n={};for(var r in t)nR.e$.call(t,r)&&(n[r]=e[r](t[r]));return n}},wK=function(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=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 u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(c){a=[6,c],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},wV=aA(d8),wz=az(d8),wH=dH,w$=aH(d8),wX=function(e){return wJ(dq(e))},wJ=aq(dQ),wZ=dV(td.fromEither),wQ=a$(dQ),w0=wQ,w1=aX(se),w2=w1,w8=w1,w7=w8,w3=aJ(st),w5=w3,w4=aG(d8),w9=function(e){return function(){var t,n,r,i;return t=void 0,n=void 0,r=void 0,i=function(){return wK(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e().then(nR.G)];case 1:return[2,t.sent()];case 2:return t.sent(),[2,nR.YP];case 3:return[2]}})},new(r||(r=Promise))(function(e,o){function u(e){try{c(i.next(e))}catch(t){o(t)}}function a(e){try{c(i.throw(e))}catch(t){o(t)}}function c(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(u,a)}c((i=i.apply(t,n||[])).next())})}},w6=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return w9(function(){return e.apply(void 0,t)})}},Oe=aY(d8),Ot=aB(st),On=aK(d8),Or=aV(st),Oi=aZ(dQ),Oo=aQ(d7),Ou=wV,Oa=(0,e8.dual)(2,a1(st)),Oc={flatMap:Oa},Of=nR.we({fromIO:wX},Oc),Ol=nR.D9({fromTask:wJ},Oc),Op=Oa(e8.identity),Od=a2(st),Os=Od,Om=aj(d8),Oh=Om(),Ov=tm(dQ,td.Compactable),Oy=th(dQ,td.Compactable,td.Functor),Og=ne(dQ,td.Filterable),O_=nt(dQ,td.Filterable),Ob=nn(dQ,td.Filterable),OS=nr(dQ,td.Filterable),OT=function(e,t){return(0,e8.pipe)(e,Oi(t))},OI=function(e,t){return(0,e8.pipe)(e,Oo(t))},OR=function(e,t){return(0,e8.pipe)(e,Od(t))},Ow=function(e,t){return(0,e8.pipe)(e,Og(t))},OO=function(e,t){return(0,e8.pipe)(e,O_(t))},Ox=function(e,t){return(0,e8.pipe)(e,Ob(t))},OC=function(e,t){return(0,e8.pipe)(e,OS(t))},OM="TaskOption",OE={URI:OM,map:OT},OP=(0,e8.dual)(2,(0,tp.as)(OE)),Ok=(0,tp.asUnit)(OE),OF=(0,tp.flap)(OE),OW={URI:OM,of:Ou},OD={URI:OM,map:OT,ap:OI},ON=(0,eA.apFirst)(OD),OL=(0,eA.apSecond)(OD),OU={URI:OM,map:OT,ap:OI,of:Ou},OA=function(e,t){return Oa(e,function(e){return(0,e8.pipe)(t,Oi(e))})},Oj={URI:OM,map:OT,ap:OA},Oq={URI:OM,map:OT,ap:OA,of:Ou},OG={URI:OM,map:OT,ap:OI,chain:Oa},OY={URI:OM,fromEither:w$},OB={URI:OM,fromIO:wX},OK={URI:OM,fromIO:wX,fromTask:wJ},OV=(0,e8.dual)(2,to.tap(OG)),Oz=(0,e8.dual)(2,(0,n_.tapEither)(OY,OG)),OH=(0,e8.dual)(2,nI(OB,OG)),O$=(0,e8.dual)(2,is(OK,OG)),OX={URI:OM,map:OT,alt:OR},OJ={URI:OM,zero:Om},OZ=(0,a7.guard)(OJ,OW),OQ={URI:OM,map:OT,ap:OI,of:Ou,alt:OR,zero:Om},O0={URI:OM,map:OT,ap:OI,of:Ou,chain:Oa},O1={URI:OM,map:OT,ap:OI,of:Ou,chain:Oa,fromIO:wX},O2={URI:OM,map:OT,ap:OI,of:Ou,chain:Oa,fromIO:wX,fromTask:wJ},O8={URI:OM,compact:Ov,separate:Oy},O7={URI:OM,map:OT,compact:Ov,separate:Oy,filter:Ow,filterMap:OO,partition:Ox,partitionMap:OC},O3=nb(OB),O5=Of,O4=OH,O9=(0,n_.fromEitherK)(OY),O6=(0,n_.chainEitherK)(OY,OG),xe=Oz,xt=il(OK),xn=Ol,xr=O$,xi=Ou(nR.F4),xo=(0,tp.bindTo)(OE),xu=(0,tp.let)(OE),xa=to.bind(OG),xc=(0,eA.apS)(OD),xf=Ou(nR.Xl),xl=function(e){return(0,e8.flow)(sS(e),dV(td.traverseReadonlyNonEmptyArrayWithIndex(e8.SK)))},xp=function(e){var t=xl(e);return function(e){return nR.Od(e)?t(e):xf}},xd=function(e){return function(t){return function(){return nR.Gb(t).reduce(function(t,n,r){return t.then(function(i){return nR.Wi(i)?t:e(r+1,n)().then(function(e){return nR.Wi(e)?e:(i.value.push(e.value),i)})})},e(0,nR.YM(t))().then(td.map(nR.ri)))}}},xs=function(e){var t=xd(e);return function(e){return nR.Od(e)?t(e):xf}},xm=xp,xh=function(e){return xp(function(t,n){return e(n)})},xv=xh(e8.identity),xy=xs,xg=function(e){return xs(function(t,n){return e(n)})},x_=xg(e8.identity),xb=Oa,xS=OV,xT=function(e){return"Left"===e._tag},xI=function(e){return"Right"===e._tag};function xR(e){return"Both"===e._tag}function xw(e){return{_tag:"Left",left:e}}function xO(e){return{_tag:"Right",right:e}}function xx(e,t){return{_tag:"Both",left:e,right:t}}var xC=function(e,t,n){return function(r){switch(r._tag){case"Left":return e(r.left);case"Right":return t(r.right);case"Both":return n(r.left,r.right)}}},xM=xC,xE=xC,xP=xE,xk=xE(xO,xw,function(e,t){return xx(t,e)});function xF(e,t){return{show:xE(function(t){return"left(".concat(e.show(t),")")},function(e){return"right(".concat(t.show(e),")")},function(n,r){return"both(".concat(e.show(n),", ").concat(t.show(r),")")})}}function xW(e,t){return(0,t3.fromEquals)(function(n,r){return xT(n)?xT(r)&&e.equals(n.left,r.left):xI(n)?xI(r)&&t.equals(n.right,r.right):xR(r)&&e.equals(n.left,r.left)&&t.equals(n.right,r.right)})}function xD(e,t){return{concat:function(n,r){return xT(n)?xT(r)?xw(e.concat(n.left,r.left)):xI(r)?xx(n.left,r.right):xx(e.concat(n.left,r.left),r.right):xI(n)?xT(r)?xx(r.left,n.right):xI(r)?xO(t.concat(n.right,r.right)):xx(r.left,t.concat(n.right,r.right)):xT(r)?xx(e.concat(n.left,r.left),n.right):xI(r)?xx(n.left,t.concat(n.right,r.right)):xx(e.concat(n.left,r.left),t.concat(n.right,r.right))}}}var xN=function(e){return{URI:x6,_E:void 0,map:xz,ap:function(t,n){return xT(t)?xT(n)?xw(e.concat(t.left,n.left)):xI(n)?xw(t.left):xw(e.concat(t.left,n.left)):xI(t)?xT(n)?xw(n.left):xI(n)?xO(t.right(n.right)):xx(n.left,t.right(n.right)):xT(n)?xw(e.concat(t.left,n.left)):xI(n)?xx(t.left,t.right(n.right)):xx(e.concat(t.left,n.left),t.right(n.right))}}};function xL(e){var t=xN(e);return{URI:x6,_E:void 0,map:xz,ap:t.ap,of:x9}}function xU(e){var t=xN(e),n=function(t,n){if(xT(t))return t;if(xI(t))return n(t.right);var r=n(t.right);return xT(r)?xw(e.concat(t.left,r.left)):xI(r)?xx(t.left,r.right):xx(e.concat(t.left,r.left),r.right)};return{URI:x6,_E:void 0,map:xz,ap:t.ap,chain:n}}function xA(e){var t=xU(e);return{URI:x6,_E:void 0,map:xz,of:x9,ap:t.ap,chain:t.chain,throwError:xw}}function xj(e){return xT(e)?nR.G(e.left):xI(e)?nR.YP:nR.G(e.left)}function xq(e){return xT(e)?nR.YP:(xI(e),nR.G(e.right))}function xG(e){return function(t){return nR.Wi(t)?xw(e):xx(e,t.value)}}function xY(e){return function(t){return nR.Wi(t)?xO(e):xx(t.value,e)}}function xB(e){return xT(e)?nR.G(e.left):nR.YP}function xK(e){return xI(e)?nR.G(e.right):nR.YP}var xV=function(e,t){return nR.Wi(e)?nR.Wi(t)?nR.YP:nR.G(xO(t.value)):nR.Wi(t)?nR.G(xw(e.value)):nR.G(xx(e.value,t.value))},xz=function(e,t){return(0,e8.pipe)(e,x2(t))},xH=function(e,t,n){return(0,e8.pipe)(e,x0(t,n))},x$=function(e,t){return(0,e8.pipe)(e,x1(t))},xX=function(e,t,n){return(0,e8.pipe)(e,x8(t,n))},xJ=function(e){var t=x7(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},xZ=function(e,t,n){return(0,e8.pipe)(e,x3(t,n))},xQ=function(e){var t=x5(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},x0=function(e,t){return function(n){return xT(n)?xw(e(n.left)):xI(n)?xO(t(n.right)):xx(e(n.left),t(n.right))}},x1=function(e){return function(t){return xT(t)?xw(e(t.left)):xR(t)?xx(e(t.left),t.right):t}},x2=function(e){return function(t){return xT(t)?t:xI(t)?xO(e(t.right)):xx(t.left,e(t.right))}},x8=function(e,t){return function(n){return xT(n)?e:t(e,n.right)}},x7=function(e){return function(t){return function(n){return xT(n)?e.empty:t(n.right)}}},x3=function(e,t){return function(n){return xT(n)?e:t(n.right,e)}},x5=function(e){return function(t){return function(n){return xT(n)?e.of(n):xI(n)?e.map(t(n.right),xO):e.map(t(n.right),function(e){return xx(n.left,e)})}}},x4=function(e){return function(t){return xT(t)?e.of(t):xI(t)?e.map(t.right,xO):e.map(t.right,function(e){return xx(t.left,e)})}},x9=xO,x6="These",Ce={URI:x6,map:xz},Ct=(0,tp.flap)(Ce),Cn={URI:x6,of:x9},Cr={URI:x6,bimap:xH,mapLeft:x$},Ci={URI:x6,fromThese:e8.identity},Co={URI:x6,reduce:xX,foldMap:xJ,reduceRight:xZ},Cu={URI:x6,map:xz,reduce:xX,foldMap:xJ,reduceRight:xZ,traverse:xQ,sequence:x4},Ca={URI:x6,fromEither:e8.identity},Cc=(0,n_.fromPredicate)(Ca),Cf=(0,n_.fromOption)(Ca),Cl=(0,n_.fromOptionK)(Ca),Cp=function(e){return function(t){return function(n){return!xT(n)&&e.equals(t,n.right)}}},Cd=function(e){return function(t){return!xT(t)&&e(t.right)}},Cs=function(e,t){return function(n){return xT(n)?[n.left,t()]:xI(n)?[e(),n.right]:[n.left,n.right]}},Cm=function(e,t){return Cs(function(){return e},function(){return t})},Ch=x9(nR.Xl),Cv=function(e){return function(t){return function(n){var r=nR.YP,i=t(0,nR.YM(n));if(xT(i))return i;xR(i)&&(r=nR.G(i.left));for(var o=[i.right],u=1;u<n.length;u++){var a=t(u,n[u]);if(xT(a))return a;xR(a)&&(r=nR.Wi(r)?nR.G(a.left):nR.G(e.concat(r.value,a.left))),o.push(a.right)}return nR.Wi(r)?xO(o):xx(r.value,o)}}},Cy=function(e){return function(t){var n=Cv(e)(t);return function(e){return nR.Od(e)?n(e):Ch}}},Cg={URI:x6,map:xz,bimap:xH,mapLeft:x$,reduce:xX,foldMap:xJ,reduceRight:xZ,traverse:xQ,sequence:x4};function C_(e){return(0,e8.flow)(xO,e.of)}function Cb(e){return(0,e8.flow)(xw,e.of)}function CS(e){return(0,e8.flow)(xx,e.of)}function CT(e){return function(t){return e.map(t,xO)}}function CI(e){return function(t){return e.map(t,xw)}}function CR(e){return(0,tp.map)(e,Ce)}function Cw(e,t){return(0,eA.ap)(e,xN(t))}function CO(e,t){var n=Cb(e);return function(r){return function(i){return e.chain(i,xE(n,r,function(n,i){return e.map(r(i),xE(function(e){return xw(t.concat(n,e))},function(e){return xx(n,e)},function(e,r){return xx(t.concat(n,e),r)}))}))}}}function Cx(e){return function(t,n){return function(r){return e.map(r,x0(t,n))}}}function CC(e){return function(t){return function(n){return e.map(n,x1(t))}}}function CM(e){return function(t,n,r){return function(i){return e.map(i,xE(t,n,r))}}}function CE(e){return function(t,n,r){return function(i){return e.chain(i,xE(t,n,r))}}}function CP(e){return function(t){return e.map(t,xk)}}function Ck(e){return function(t,n){return function(r){return e.map(r,Cs(t,n))}}}function CF(e){var t=CR(e),n=Cx(e),r=CC(e),i=CE(e),o=Ck(e),u=C_(e),a=function(e,n){return(0,e8.pipe)(e,t(n))};return{map:a,bimap:function(e,t,r){return(0,e8.pipe)(e,n(t,r))},mapLeft:function(e,t){return(0,e8.pipe)(e,r(t))},fold:function(e,t,n,r){return(0,e8.pipe)(e,i(t,n,r))},swap:CP(e),rightM:CT(e),leftM:CI(e),left:Cb(e),right:C_(e),both:CS(e),toTuple:function(e,t,n){return(0,e8.pipe)(e,o(function(){return t},function(){return n}))},getMonad:function(t){var n=Cw(e,t),r=CO(e,t);return{_E:void 0,map:a,of:u,ap:function(e,t){return(0,e8.pipe)(e,n(t))},chain:function(e,t){return(0,e8.pipe)(e,r(t))}}}}}var CW=Cb(d8),CD=C_(d8),CN=CS(d8),CL=CT(dQ),CU=CI(dQ),CA=(0,e8.flow)(dq,CL),Cj=(0,e8.flow)(dq,CU),Cq=dH,CG=dH,CY=CA,CB=dq,CK=CL,CV=CM(dQ),Cz=CV,CH=CE(st),C$=CH,CX=C$,CJ=CX,CZ=CP(dQ),CQ=function(e,t){return(0,e8.pipe)(e,C2(t))},C0=function(e,t,n){return(0,e8.pipe)(e,C8(t,n))},C1=function(e,t){return(0,e8.pipe)(e,C7(t))},C2=CR(dQ),C8=Cx(dQ),C7=CC(dQ),C3=CD,C5="TaskThese",C4=function(e,t){var n=Cw(e,t);return{URI:C5,_E:void 0,map:CQ,ap:function(e,t){return(0,e8.pipe)(e,n(t))}}};function C9(e,t){var n=C4(e,t).ap;return{URI:C5,_E:void 0,map:CQ,ap:n,of:C3}}function C6(e){var t=C4(d4,e),n=CO(st,e);return{URI:C5,_E:void 0,map:CQ,ap:t.ap,chain:function(e,t){return(0,e8.pipe)(e,n(t))}}}function Me(e){var t=C9(d4,e),n=C6(e);return{URI:C5,_E:void 0,map:CQ,ap:t.ap,of:C3,chain:n.chain,fromIO:CY,fromTask:CK}}var Mt={URI:C5,map:CQ},Mn=(0,tp.flap)(Mt),Mr={URI:C5,of:C3},Mi={URI:C5,bimap:C0,mapLeft:C1},Mo={URI:C5,fromEither:Cq},Mu=(0,n_.fromOption)(Mo),Ma=(0,n_.fromOptionK)(Mo),Mc=(0,n_.fromPredicate)(Mo),Mf={URI:C5,fromThese:CG},Ml=im(Mf),Mp={URI:C5,fromIO:CY},Md=nb(Mp),Ms={URI:C5,fromIO:CY,fromTask:CK},Mm=il(Ms),Mh=Ck(dQ),Mv=C3(nR.Xl),My=function(e){var t=Cv(e);return function(e){return(0,e8.flow)(sS(e),dV(t(e8.SK)))}},Mg=function(e){return function(t){var n=My(e)(t);return function(e){return nR.Od(e)?n(e):Mv}}},M_=function(e){return function(t){return function(n){return function(){return nR.Gb(n).reduce(function(n,r,i){return n.then(function(o){return xT(o)?n:t(i+1,r)().then(function(t){if(xT(t))return t;if(xR(t)){var n=o.right;return n.push(t.right),xR(o)?xx(e.concat(o.left,t.left),n):xx(t.left,n)}return o.right.push(t.right),o})})},t(0,nR.YM(n))().then(x2(nR.ri)))}}}},Mb=function(e){return function(t){var n=M_(e)(t);return function(e){return nR.Od(e)?n(e):Mv}}},MS={URI:C5,map:CQ},MT={URI:C5,bimap:C0,mapLeft:C1},MI=function(e,t){return Mh(function(){return e},function(){return t})},MR={URI:C5,map:CQ,bimap:C0,mapLeft:C1},Mw=function(e,t){return(0,eA.getApplySemigroup)(d9)(xD(e,t))};function MO(e,t){return function(n){return n(t(n(e.empty)))}}function Mx(e){return function(t){return[e(t),t]}}function MC(e){return function(t){return function(n){return[t(n),e(n)]}}}function MM(e){return function(t){return function(n){return t(e(n))}}}function ME(e){return{URI:MF,_E:void 0,map:MP,extend:function(t,n){return function(r){return n(function(n){return t(e.concat(r,n))})}},extract:function(t){return t(e.empty)}}}var MP=function(e,t){return(0,e8.pipe)(e,Mk(t))},Mk=function(e){return function(t){return function(n){return e(t(n))}}},MF="Traced",MW={URI:MF,map:MP},MD=(0,tp.flap)(MW),MN=MW;function ML(e,t){return function(n){var r=e.traverse(n),i=t.traverse(n);return function(e){return function(t){return r(t,function(t){return i(t,e)})}}}}function MU(e,t){return function(n){var r=e.sequence(n),i=t.sequence(n);return function(t){return r(e.map(t,i))}}}function MA(e,t){var n=(0,tp.getFunctorComposition)(e,t).map,r=nm(e,t),i=ML(e,t),o=MU(e,t);return{map:n,reduce:r.reduce,foldMap:r.foldMap,reduceRight:r.reduceRight,traverse:function(e){var t=i(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},sequence:function(e){var t=o(e);return function(e){return(0,e8.pipe)(e,t)}}}}function Mj(e,t){return void 0===t&&(t=[]),{value:e,forest:t}}function Mq(e){var t=function(n){return eY.isEmpty(n.forest)?"make(".concat(e.show(n.value),")"):"make(".concat(e.show(n.value),", [").concat(n.forest.map(t).join(", "),"])")};return{show:t}}function MG(e){var t,n=(0,t3.fromEquals)(function(n,r){return e.equals(n.value,r.value)&&t.equals(n.forest,r.forest)});return t=eY.getEq(n),n}var MY=function(e,t){for(var n,r="",i=t.length,o=0;o<i;o++){n=t[o];var u=o===i-1;r+=e+(u?"└":"├")+"─ "+n.value,r+=MY(e+(i>1&&!u?"│ ":" "),n.forest)}return r};function MB(e){return MY("\n",e)}function MK(e){return e.value+MB(e.forest)}function MV(e,t){var n,r=t(e);return{value:r[0],forest:Mz(r[1],t)}}function Mz(e,t){return e.map(function(e){return MV(e,t)})}function MH(e){var t=M$(e);return function(n,r){return e.chain(r(n),function(n){var i=n[0],o=n[1];return e.map(t(o,r),function(e){return{value:i,forest:e}})})}}function M$(e){var t=eY.traverse(e);return function(n,r){return(0,e8.pipe)(n,t(function(t){return MH(e)(t,r)}))}}function MX(e){var t=function(n){return e(n.value,n.forest.map(t))};return t}var MJ=function(e,t){return(0,e8.pipe)(e,M6(t))},MZ=function(e,t){return M3(e,function(e){return(0,e8.pipe)(t,M6(e))})},MQ=function(e,t,n){return(0,e8.pipe)(e,Ee(t,n))},M0=function(e){var t=Et(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},M1=function(e,t,n){return(0,e8.pipe)(e,En(t,n))},M2=function(e,t){return(0,e8.pipe)(e,M5(t))},M8=function(e){var t=Ei(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},M7=function(e){return function(t){return MZ(t,e)}},M3=(0,e8.dual)(2,function(e,t){var n=t(e.value),r=n.value,i=n.forest;return{value:r,forest:(0,eY.getMonoid().concat)(i,e.forest.map(M3(t)))}}),M5=function(e){return function(t){return{value:e(t),forest:t.forest.map(M5(e))}}},M4=M5(e8.identity),M9=M3(e8.identity),M6=function(e){return function(t){return{value:e(t.value),forest:t.forest.map(M6(e))}}},Ee=function(e,t){return function(n){for(var r=t(e,n.value),i=n.forest.length,o=0;o<i;o++)r=(0,e8.pipe)(n.forest[o],Ee(r,t));return r}},Et=function(e){return function(t){return Ee(e.empty,function(n,r){return e.concat(n,t(r))})}},En=function(e,t){return function(n){for(var r=e,i=n.forest.length,o=i-1;o>=0;o--)r=(0,e8.pipe)(n.forest[o],En(r,t));return t(n.value,r)}},Er=function(e){return e.value},Ei=function(e){var t=eY.traverse(e),n=function(r){return function(i){return e.ap(e.map(r(i.value),function(e){return function(t){return{value:e,forest:t}}}),(0,e8.pipe)(i.forest,t(n(r))))}};return n},Eo=function(e){return Ei(e)(e8.identity)},Eu=function(e){return Mj(e)},Ea="Tree",Ec={URI:Ea,map:MJ},Ef=(0,tp.flap)(Ec),El={URI:Ea,of:Eu},Ep={URI:Ea,map:MJ,ap:MZ},Ed=(0,eA.apFirst)(Ep),Es=(0,eA.apSecond)(Ep),Em={URI:Ea,map:MJ,ap:MZ,of:Eu},Eh={URI:Ea,map:MJ,ap:MZ,chain:M3},Ev={URI:Ea,map:MJ,ap:MZ,of:Eu,chain:M3},Ey=(0,to.chainFirst)(Eh),Eg={URI:Ea,reduce:MQ,foldMap:M0,reduceRight:M1},E_={URI:Ea,map:MJ,reduce:MQ,foldMap:M0,reduceRight:M1,traverse:M8,sequence:Eo},Eb={URI:Ea,map:MJ,extend:M2,extract:Er},ES=Eu(nR.F4),ET=(0,tp.bindTo)(Ec),EI=(0,tp.let)(Ec),ER=(0,to.bind)(Eh),Ew=(0,eA.apS)(Ep);function EO(e){var t=function(n,r){return e.equals(n,r.value)||r.forest.some(function(e){return t(n,e)})};return t}var Ex=function(e){return function(t){return e(t.value)||t.forest.some(Ex(e))}},EC=M3,EM={URI:Ea,map:MJ,of:Eu,ap:MZ,chain:M3,reduce:MQ,foldMap:M0,reduceRight:M1,traverse:M8,sequence:Eo,extract:Er,extend:M2},EE=bM,EP=bE,Ek=function(e){return[EP(e),EE(e)]};function EF(e){return{URI:E5,_E:void 0,map:Ej,ap:function(t,n){return[EE(t)(EE(n)),e.concat(EP(t),EP(n))]}}}var EW=function(e){return function(t){return[t,e.empty]}};function ED(e){var t=EF(e);return{URI:E5,_E:void 0,map:t.map,ap:t.ap,of:EW(e)}}function EN(e){var t=EF(e);return{URI:E5,_E:void 0,map:t.map,ap:t.ap,chain:function(t,n){var r=n(EE(t)),i=r[0],o=r[1];return[i,e.concat(EP(t),o)]}}}function EL(e){var t=EN(e);return{URI:E5,_E:void 0,map:t.map,ap:t.ap,chain:t.chain,of:EW(e)}}function EU(e){var t=function(t,n){for(var r=n(t),i=e.empty,o=EE(r);"Left"===o._tag;)i=e.concat(i,EP(r)),r=n(o.left),o=EE(r);return[o.right,e.concat(i,EP(r))]},n=EN(e);return{URI:E5,_E:void 0,map:n.map,ap:n.ap,chain:n.chain,chainRec:t}}var EA=function(e,t){return(0,e8.pipe)(e,EJ(t))},Ej=function(e,t){return(0,e8.pipe)(e,E$(t))},Eq=function(e,t,n){return(0,e8.pipe)(e,EH(t,n))},EG=function(e,t){return(0,e8.pipe)(e,EX(t))},EY=function(e,t){return(0,e8.pipe)(e,EZ(t))},EB=function(e,t,n){return(0,e8.pipe)(e,E2(t,n))},EK=function(e){var t=E1(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},EV=function(e,t,n){return(0,e8.pipe)(e,E8(t,n))};function Ez(e){var t=E7(e);return function(e,n){return(0,e8.pipe)(e,t(n))}}var EH=function(e,t){return function(n){return[t(EE(n)),e(EP(n))]}},E$=function(e){return function(t){return[e(EE(t)),EP(t)]}},EX=function(e){return function(t){return[EE(t),e(EP(t))]}},EJ=function(e){return function(t){return[EE(t),EP(e)]}},EZ=function(e){return function(t){return[e(t),EP(t)]}},EQ=EZ(e8.identity),E0=bZ,E1=b1,E2=b0,E8=b2,E7=function(e){return function(t){return function(n){return e.map(t(EE(n)),function(e){return[e,EP(n)]})}}},E3=function(e){return function(t){return e.map(EE(t),function(e){return[e,EP(t)]})}},E5="Tuple",E4={URI:E5,map:Ej},E9=(0,tp.flap)(E4),E6={URI:E5,bimap:Eq,mapLeft:EG},Pe={URI:E5,compose:EA},Pt={URI:E5,map:Ej,extend:EY,extract:E0},Pn={URI:E5,reduce:EB,foldMap:EK,reduceRight:EV},Pr={URI:E5,map:Ej,reduce:EB,foldMap:EK,reduceRight:EV,traverse:Ez,sequence:E3},Pi=E$,Po=EX,Pu={URI:E5,compose:EA,map:Ej,bimap:Eq,mapLeft:EG,extract:E0,extend:EY,reduce:EB,foldMap:EK,reduceRight:EV,traverse:Ez,sequence:E3};function Pa(e,t){var n=(0,eG.getApplicativeComposition)(t,tE.getApplicativeValidation(e));return{map:n.map,ap:n.ap,of:n.of,chain:function(e,n){return t.chain(e,function(e){return nR.nM(e)?t.of(nR.t$(e.left)):n(e.right)})},alt:function(n,r){return t.chain(n,function(n){return nR.tO(n)?t.of(n):t.map(r(),function(t){return nR.nM(t)?nR.t$(e.concat(n.left,t.left)):t})})}}}var Pc=Su.constant(void 0),Pf={concat:Pc.concat,empty:void 0},Pl=function(e){return function(){return[void 0,e]}},Pp=function(e){return function(){var t=e(),n=t[0],r=t[1];return[[n,r],r]}},Pd=function(e){return function(){var t,n=e(),r=n[0],i=r[0];return[i,(0,r[1])(n[1])]}},Ps=function(e){return function(t){return function(){var n=t(),r=n[0],i=n[1];return[[r,e(i)],i]}}},Pm=function(e){return function(t){return function(){var n,r=t();return[r[0],e(r[1])]}}},Ph=function(e,t){return(0,e8.pipe)(e,Pv(t))},Pv=function(e){return function(t){return function(){var n=t(),r=n[0],i=n[1];return[e(r),i]}}},Py="Writer",Pg=function(e){return{URI:Py,_E:void 0,of:function(t){return function(){return[t,e.empty]}}}},P_=function(e){return{URI:Py,_E:void 0,map:Ph,ap:function(t,n){return function(){var r=t(),i=r[0],o=r[1],u=n(),a=u[0],c=u[1];return[i(a),e.concat(o,c)]}}}},Pb=function(e){var t=P_(e),n=Pg(e);return{URI:Py,_E:void 0,map:Ph,ap:t.ap,of:n.of}};function PS(e){var t=P_(e);return{URI:Py,_E:void 0,map:Ph,ap:t.ap,chain:function(t,n){return function(){var r=t(),i=r[0],o=r[1],u=n(i)(),a=u[0],c=u[1];return[a,e.concat(o,c)]}}}}function PT(e){var t=Pb(e),n=PS(e);return{URI:Py,_E:void 0,map:Ph,ap:t.ap,of:t.of,chain:n.chain}}var PI={URI:Py,map:Ph},PR=(0,tp.flap)(PI),Pw=function(e){return e()[0]},PO=function(e){return e()[1]},Px=function(e){return e()[0]},PC=function(e){return e()[1]},PM=PI;function PE(e){var t=function(t,n){return function(){return e.map(t(),function(e){var t=e[0],r=e[1];return[n(t),r]})}};return{map:t,evalWriter:function(t){return e.map(t(),function(e){return e[0]})},execWriter:function(t){return e.map(t(),function(e){return e[0],e[1]})},tell:function(t){return function(){return e.of([void 0,t])}},listen:function(t){return function(){return e.map(t(),function(e){var t=e[0],n=e[1];return[[t,n],n]})}},pass:function(t){return function(){return e.map(t(),function(e){var t,n=e[0],r=n[0];return[r,(0,n[1])(e[1])]})}},listens:function(t,n){return function(){return e.map(t(),function(e){var t=e[0],r=e[1];return[[t,n(r)],r]})}},censor:function(t,n){return function(){return e.map(t(),function(e){var t;return[e[0],n(e[1])]})}},getMonad:function(n){return{_E:void 0,map:t,of:function(t){return function(){return e.of([t,n.empty])}},ap:function(t,r){return function(){return e.chain(t(),function(t){var i=t[0],o=t[1];return e.map(r(),function(e){var t=e[0],r=e[1];return[i(t),n.concat(o,r)]})})}},chain:function(t,r){return function(){return e.chain(t(),function(t){var i=t[0],o=t[1];return e.map(r(i)(),function(e){var t=e[0],r=e[1];return[t,n.concat(o,r)]})})}}}}}}},97963:function(e,t,n){n.d(t,{D9:function(){return x},F2:function(){return d},F4:function(){return g},G:function(){return c},Gb:function(){return v},Od:function(){return m},WE:function(){return T},Wi:function(){return o},Xl:function(){return y},YM:function(){return h},YP:function(){return a},e$:function(){return _},hU:function(){return R},iu:function(){return w},nM:function(){return f},ny:function(){return I},on:function(){return C},pC:function(){return u},r1:function(){return b},ri:function(){return s},t$:function(){return p},tO:function(){return l},uL:function(){return S},we:function(){return O}});var r=n(42275),i=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},o=function(e){return"None"===e._tag},u=function(e){return"Some"===e._tag},a={_tag:"None"},c=function(e){return{_tag:"Some",value:e}},f=function(e){return"Left"===e._tag},l=function(e){return"Right"===e._tag},p=function(e){return{_tag:"Left",left:e}},d=function(e){return{_tag:"Right",right:e}},s=function(e){return[e]},m=function(e){return e.length>0},h=function(e){return e[0]},v=function(e){return e.slice(1)},y=[],g={},_=Object.prototype.hasOwnProperty,b=function(e){return i([e[0]],e.slice(1),!0)},S=function(e){return function(t,n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=t.apply(void 0,r);return e.fromEither(null==o?p(n.apply(void 0,r)):d(o))}}},T=function(e){return function(t,n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var u=t.apply(void 0,r);return e.fromEither(o(u)?p(n.apply(void 0,r)):d(u.value))}}},I=function(e,t){return(0,r.dual)(3,function(n,r,i){return t.flatMap(n,S(e)(r,i))})},R=function(e,t){return(0,r.dual)(3,function(n,r,i){return t.flatMap(n,T(e)(r,i))})},w=function(e,t){return(0,r.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromEither(r(t))})})},O=function(e,t){return(0,r.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromIO(r(t))})})},x=function(e,t){return(0,r.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromTask(r(t))})})},C=function(e,t){return(0,r.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromReader(r(t))})})}},76627:function(e,t,n){n.r(t),n.d(t,{Bounded:function(){return u},Eq:function(){return i},Field:function(){return s},MagmaSub:function(){return c},MonoidProduct:function(){return d},MonoidSum:function(){return p},Ord:function(){return o},SemigroupProduct:function(){return l},SemigroupSum:function(){return f},Show:function(){return a},isNumber:function(){return r}});var r=function(e){return"number"==typeof e},i={equals:function(e,t){return e===t}},o={equals:i.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},u={equals:i.equals,compare:o.compare,top:1/0,bottom:-1/0},a={show:function(e){return JSON.stringify(e)}},c={concat:function(e,t){return e-t}},f={concat:function(e,t){return e+t}},l={concat:function(e,t){return e*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(e){return 1},div:function(e,t){return e/t},mod:function(e,t){return e%t}}},18896:function(e,t,n){n.r(t),n.d(t,{alt:function(){return b},ap:function(){return f},bimap:function(){return p},chain:function(){return l},compose:function(){return E},contramap:function(){return a},extend:function(){return s},filter:function(){return S},filterMap:function(){return T},filterMapWithIndex:function(){return O},filterWithIndex:function(){return w},foldMap:function(){return h},foldMapWithIndex:function(){return g},map:function(){return u},mapLeft:function(){return d},mapWithIndex:function(){return c},partition:function(){return I},partitionMap:function(){return R},partitionMapWithIndex:function(){return C},partitionWithIndex:function(){return x},pipe:function(){return k},pipeable:function(){return P},promap:function(){return M},reduce:function(){return m},reduceRight:function(){return v},reduceRightWithIndex:function(){return _},reduceWithIndex:function(){return y}});var r=n(42925),i=n(88543),o=n(42275);function u(e){return function(t){return function(n){return e.map(n,t)}}}function a(e){return function(t){return function(n){return e.contramap(n,t)}}}function c(e){return function(t){return function(n){return e.mapWithIndex(n,t)}}}function f(e){return function(t){return function(n){return e.ap(n,t)}}}function l(e){return function(t){return function(n){return e.chain(n,t)}}}function p(e){return function(t,n){return function(r){return e.bimap(r,t,n)}}}function d(e){return function(t){return function(n){return e.mapLeft(n,t)}}}function s(e){return function(t){return function(n){return e.extend(n,t)}}}function m(e){return function(t,n){return function(r){return e.reduce(r,t,n)}}}function h(e){return function(t){var n=e.foldMap(t);return function(e){return function(t){return n(t,e)}}}}function v(e){return function(t,n){return function(r){return e.reduceRight(r,t,n)}}}function y(e){return function(t,n){return function(r){return e.reduceWithIndex(r,t,n)}}}function g(e){return function(t){var n=e.foldMapWithIndex(t);return function(e){return function(t){return n(t,e)}}}}function _(e){return function(t,n){return function(r){return e.reduceRightWithIndex(r,t,n)}}}function b(e){return function(t){return function(n){return e.alt(n,t)}}}function S(e){return function(t){return function(n){return e.filter(n,t)}}}function T(e){return function(t){return function(n){return e.filterMap(n,t)}}}function I(e){return function(t){return function(n){return e.partition(n,t)}}}function R(e){return function(t){return function(n){return e.partitionMap(n,t)}}}function w(e){return function(t){return function(n){return e.filterWithIndex(n,t)}}}function O(e){return function(t){return function(n){return e.filterMapWithIndex(n,t)}}}function x(e){return function(t){return function(n){return e.partitionWithIndex(n,t)}}}function C(e){return function(t){return function(n){return e.partitionMapWithIndex(n,t)}}}function M(e){return function(t,n){return function(r){return e.promap(r,t,n)}}}function E(e){return function(t){return function(n){return e.compose(n,t)}}}function P(e){var t,n,P,k,F,W,D,N,L,U,A,j,q,G,Y,B,K={};if("function"==typeof e.map&&(K.map=u(e)),"function"==typeof e.contramap&&(K.contramap=a(e)),"function"==typeof e.mapWithIndex&&(K.mapWithIndex=c(e)),"function"==typeof e.ap&&(K.ap=f(e),K.apFirst=(0,r.apFirst)(e),K.apSecond=(0,r.apSecond)(e)),"function"==typeof e.chain&&(K.chain=l(e),K.chainFirst=(0,i.chainFirst)(e),K.flatten=K.chain(o.identity)),"function"==typeof e.bimap&&(K.bimap=p(e),K.mapLeft=d(e)),"function"==typeof e.extend&&(K.extend=s(e),K.duplicate=K.extend(o.identity)),"function"==typeof e.reduce&&(K.reduce=m(e),K.foldMap=h(e),K.reduceRight=v(e)),"function"==typeof e.reduceWithIndex&&(K.reduceWithIndex=y(e),K.foldMapWithIndex=g(e),K.reduceRightWithIndex=_(e)),"function"==typeof e.alt&&(K.alt=b(e)),"function"==typeof e.compact&&(K.compact=e.compact,K.separate=e.separate),"function"==typeof e.filter&&(K.filter=S(e),K.filterMap=T(e),K.partition=I(e),K.partitionMap=R(e)),"function"==typeof e.filterWithIndex&&(K.filterWithIndex=w(e),K.filterMapWithIndex=O(e),K.partitionWithIndex=x(e),K.partitionMapWithIndex=C(e)),"function"==typeof e.promap&&(K.promap=M(e)),"function"==typeof e.compose&&(K.compose=E(e)),"function"==typeof e.throwError){var V=function(t){return function(n){return"None"===n._tag?e.throwError(t()):e.of(n.value)}},z=function(t){return"Left"===t._tag?e.throwError(t.left):e.of(t.right)},H=function(t,n){return function(r){return t(r)?e.of(r):e.throwError(n(r))}},$=function(t,n){return function(r){return e.chain(r,function(r){return t(r)?e.of(r):e.throwError(n(r))})}};K.fromOption=V,K.fromEither=z,K.fromPredicate=H,K.filterOrElse=$}return K}var k=o.pipe},57029:function(e,t,n){n.r(t),n.d(t,{Eq:function(){return i},Monoid:function(){return a},Ord:function(){return c},Semigroup:function(){return o},Show:function(){return f},empty:function(){return u},endsWith:function(){return I},includes:function(){return S},isEmpty:function(){return g},isString:function(){return l},replace:function(){return s},size:function(){return _},slice:function(){return y},split:function(){return b},startsWith:function(){return T},toLowerCase:function(){return d},toUpperCase:function(){return p},trim:function(){return m},trimLeft:function(){return h},trimRight:function(){return v}});var r=n(28350),i={equals:function(e,t){return e===t}},o={concat:function(e,t){return e+t}},u="",a={concat:o.concat,empty:u},c={equals:i.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},f={show:function(e){return JSON.stringify(e)}},l=function(e){return"string"==typeof e},p=function(e){return e.toUpperCase()},d=function(e){return e.toLowerCase()},s=function(e,t){return function(n){return n.replace(e,t)}},m=function(e){return e.trim()},h=function(e){return e.trimLeft()},v=function(e){return e.trimRight()},y=function(e,t){return function(n){return n.slice(e,t)}},g=function(e){return 0===e.length},_=function(e){return e.length},b=function(e){return function(t){var n=t.split(e);return(0,r.isNonEmpty)(n)?n:[t]}},S=function(e,t){return function(n){return n.includes(e,t)}},T=function(e,t){return function(n){return n.startsWith(e,t)}},I=function(e,t){return function(n){return n.endsWith(e,t)}}},91756:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getApplicativeComposition=t.getApplicativeMonoid=void 0;var r=n(93145),i=n(14632),o=n(8762);t.getApplicativeMonoid=function(e){var t=(0,r.getApplySemigroup)(e);return function(n){return{concat:t(n).concat,empty:e.of(n.empty)}}},t.getApplicativeComposition=function(e,t){var n=(0,o.getFunctorComposition)(e,t).map,u=(0,r.ap)(e,t);return{map:n,of:function(n){return e.of(t.of(n))},ap:function(e,t){return(0,i.pipe)(e,u(t))}}}},93145:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceS=t.sequenceT=t.getApplySemigroup=t.apS=t.apSecond=t.apFirst=t.ap=void 0;var u=n(14632),a=o(n(5309));function c(e,t,n){return function(r){for(var i=Array(n.length+1),o=0;o<n.length;o++)i[o]=n[o];return i[n.length]=r,0===t?e.apply(null,i):c(e,t-1,i)}}t.ap=function(e,t){return function(n){return function(r){return e.ap(e.map(r,function(e){return function(n){return t.ap(e,n)}}),n)}}},t.apFirst=function(e){return function(t){return function(n){return e.ap(e.map(n,function(e){return function(){return e}}),t)}}},t.apSecond=function(e){return function(t){return function(n){return e.ap(e.map(n,function(){return function(e){return e}}),t)}}},t.apS=function(e){return function(t,n){return function(r){return e.ap(e.map(r,function(e){return function(n){var r;return Object.assign({},e,((r={})[t]=n,r))}}),n)}}},t.getApplySemigroup=function(e){return function(t){return{concat:function(n,r){return e.ap(e.map(n,function(e){return function(n){return t.concat(e,n)}}),r)}}}};var f={1:function(e){return[e]},2:function(e){return function(t){return[e,t]}},3:function(e){return function(t){return function(n){return[e,t,n]}}},4:function(e){return function(t){return function(n){return function(r){return[e,t,n,r]}}}},5:function(e){return function(t){return function(n){return function(r){return function(i){return[e,t,n,r,i]}}}}}};t.sequenceT=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r,i=t.length,o=(a.has.call(f,i)||(f[i]=c(u.tuple,i-1,[])),f[i]),l=e.map(t[0],o),p=1;p<i;p++)l=e.ap(l,t[p]);return l}},t.sequenceS=function(e){return function(t){for(var n=Object.keys(t),r=n.length,i=function(e){var t=e.length;switch(t){case 1:return function(t){var n;return(n={})[e[0]]=t,n};case 2:return function(t){return function(n){var r;return(r={})[e[0]]=t,r[e[1]]=n,r}};case 3:return function(t){return function(n){return function(r){var i;return(i={})[e[0]]=t,i[e[1]]=n,i[e[2]]=r,i}}};case 4:return function(t){return function(n){return function(r){return function(i){var o;return(o={})[e[0]]=t,o[e[1]]=n,o[e[2]]=r,o[e[3]]=i,o}}}};case 5:return function(t){return function(n){return function(r){return function(i){return function(o){var u;return(u={})[e[0]]=t,u[e[1]]=n,u[e[2]]=r,u[e[3]]=i,u[e[4]]=o,u}}}}};default:return c(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i={},o=0;o<t;o++)i[e[o]]=n[o];return i},t-1,[])}}(n),o=e.map(t[n[0]],i),u=1;u<r;u++)o=e.ap(o,t[n[u]]);return o}}},92425:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),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 u=n(93145),a=n(18222),c=n(57756),f=n(14632),l=n(8762),p=o(n(5309)),d=o(n(7219)),s=o(n(78703)),m=n(4773),h=n(69706),v=n(3899),y=function(e){return 0===e.length};t.isEmpty=y,t.isNonEmpty=d.isNonEmpty,t.prepend=d.prepend,t.prependW=d.prependW,t.append=d.append,t.appendW=d.appendW;var g=function(e,t){return e<=0?[]:d.makeBy(t)(e)};t.makeBy=g;var _=function(e,n){return(0,t.makeBy)(e,function(){return n})};t.replicate=_,t.fromPredicate=function(e){return function(t){return e(t)?[t]:[]}};var b=function(e){return p.isNone(e)?[]:[e.value]};t.fromOption=b;var S=function(e){return p.isLeft(e)?[]:[e.right]};t.fromEither=S;var T=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(r):e()}};t.matchW=T,t.match=t.matchW;var I=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(d.head(r),d.tail(r)):e()}};t.matchLeftW=I,t.matchLeft=t.matchLeftW,t.foldLeft=t.matchLeft;var R=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(d.init(r),d.last(r)):e()}};t.matchRightW=R,t.matchRight=t.matchRightW,t.foldRight=t.matchRight;var w=function(e){return function(t){for(var n=[],r=0;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}};t.chainWithIndex=w;var O=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}};t.scanLeft=O;var x=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}};t.scanRight=x;var C=function(e){return e.length};t.size=C,t.isOutOfBound=d.isOutOfBound,t.lookup=s.lookup,t.head=s.head,t.last=s.last;var M=function(e){return(0,t.isNonEmpty)(e)?p.some(d.tail(e)):p.none};t.tail=M;var E=function(e){return(0,t.isNonEmpty)(e)?p.some(d.init(e)):p.none};t.init=E;var P=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?(0,t.copy)(n):n.slice(0,e)}};t.takeLeft=P;var k=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?(0,t.copy)(n):0===e?[]:n.slice(-e)}};t.takeRight=k,t.takeLeftWhile=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];if(!e(i))break;n.push(i)}return n}};var F=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r};t.spanLeft=function(e){return function(n){var r,i=(0,t.splitAt)(F(n,e))(n);return{init:i[0],rest:i[1]}}};var W=function(e){return function(n){return e<=0||(0,t.isEmpty)(n)?(0,t.copy)(n):e>=n.length?[]:n.slice(e,n.length)}};t.dropLeft=W;var D=function(e){return function(n){return e<=0||(0,t.isEmpty)(n)?(0,t.copy)(n):e>=n.length?[]:n.slice(0,n.length-e)}};t.dropRight=D,t.dropLeftWhile=function(e){return function(t){return t.slice(F(t,e))}},t.findIndex=s.findIndex,t.findFirst=function(e){return s.findFirst(e)},t.findFirstMap=s.findFirstMap,t.findLast=function(e){return s.findLast(e)},t.findLastMap=s.findLastMap,t.findLastIndex=s.findLastIndex;var N=function(e){return e.slice()};t.copy=N;var L=function(e,n){return function(r){return e<0||e>r.length?p.none:p.some((0,t.unsafeInsertAt)(e,n,r))}};t.insertAt=L;var U=function(e,n){return(0,t.modifyAt)(e,function(){return n})};t.updateAt=U;var A=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?p.none:p.some((0,t.unsafeDeleteAt)(e,n))}};t.deleteAt=A;var j=function(e,n){return function(r){return(0,t.isOutOfBound)(e,r)?p.none:p.some((0,t.unsafeUpdateAt)(e,n(r[e]),r))}};t.modifyAt=j;var q=function(e){return(0,t.isEmpty)(e)?[]:e.slice().reverse()};t.reverse=q;var G=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t};t.rights=G;var Y=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t};t.lefts=Y;var B=function(e){return function(n){return n.length<=1?(0,t.copy)(n):n.slice().sort(e.compare)}};t.sort=B;var K=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r};t.zipWith=K,t.zip=function e(n,r){return void 0===r?function(t){return e(t,n)}:(0,t.zipWith)(n,r,function(e,t){return[e,t]})};var V=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]};t.unzip=V;var z=function(e){var n=d.prependAll(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):[]}};t.prependAll=z;var H=function(e){var n=d.intersperse(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):(0,t.copy)(e)}};t.intersperse=H;var $=function(e){var n=d.rotate(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):(0,t.copy)(e)}};t.rotate=$,t.elem=s.elem;var X=function(e){var n=d.uniq(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):(0,t.copy)(e)}};t.uniq=X;var J=function(e){var n=d.sortBy(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):(0,t.copy)(e)}};t.sortBy=J;var Z=function(e){var n=d.chop(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):[]}};t.chop=Z;var Q=function(e){return function(n){return e>=1&&(0,t.isNonEmpty)(n)?d.splitAt(e)(n):(0,t.isEmpty)(n)?[(0,t.copy)(n),[]]:[[],(0,t.copy)(n)]}};t.splitAt=Q;var ee=function(e){var n=d.chunksOf(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):[]}};t.chunksOf=ee;var et=function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(0,t.fromOption)(e.apply(void 0,n))}};t.fromOptionK=et,t.comprehension=function(e,n,r){void 0===r&&(r=function(){return!0});var i=function(e,o){return(0,t.isNonEmpty)(o)?(0,t.flatMap)(d.head(o),function(n){return i((0,f.pipe)(e,(0,t.append)(n)),d.tail(o))}):r.apply(void 0,e)?[n.apply(void 0,e)]:[]};return i([],e)};var en=function(e){return function(n){return(0,t.isEmpty)(n)?(0,t.copy)(e):(0,t.isEmpty)(e)?(0,t.copy)(n):n.concat(e)}};function er(e){var n=d.union(e);return function(r,i){if(void 0===i){var o=er(e);return function(e){return o(e,r)}}return(0,t.isNonEmpty)(r)&&(0,t.isNonEmpty)(i)?n(i)(r):(0,t.isNonEmpty)(r)?(0,t.copy)(r):(0,t.copy)(i)}}function ei(e){var n=(0,t.elem)(e);return function(t,r){if(void 0===r){var i=ei(e);return function(e){return i(e,t)}}return t.filter(function(e){return n(e,r)})}}function eo(e){var n=(0,t.elem)(e);return function(t,r){if(void 0===r){var i=eo(e);return function(e){return i(e,t)}}return t.filter(function(e){return!n(e,r)})}}t.concatW=en,t.concat=t.concatW,t.union=er,t.intersection=ei,t.difference=eo;var eu=function(e,n){return(0,f.pipe)(e,(0,t.map)(n))},ea=function(e,n){return(0,f.pipe)(e,(0,t.mapWithIndex)(n))},ec=function(e,n){return(0,f.pipe)(e,(0,t.ap)(n))},ef=function(e,n){return(0,f.pipe)(e,(0,t.filter)(n))},el=function(e,n){return(0,f.pipe)(e,(0,t.filterMap)(n))},ep=function(e,n){return(0,f.pipe)(e,(0,t.partition)(n))},ed=function(e,n){return(0,f.pipe)(e,(0,t.partitionMap)(n))},es=function(e,n){return(0,f.pipe)(e,(0,t.partitionWithIndex)(n))},em=function(e,n){return(0,f.pipe)(e,(0,t.partitionMapWithIndex)(n))},eh=function(e,n){return(0,f.pipe)(e,(0,t.alt)(n))},ev=function(e,n,r){return(0,f.pipe)(e,(0,t.reduce)(n,r))},ey=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},eg=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceRight)(n,r))},e_=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceWithIndex)(n,r))},eb=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},eS=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceRightWithIndex)(n,r))},eT=function(e,n){return(0,f.pipe)(e,(0,t.filterMapWithIndex)(n))},eI=function(e,n){return(0,f.pipe)(e,(0,t.filterWithIndex)(n))},eR=function(e,n){return(0,f.pipe)(e,(0,t.extend)(n))},ew=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},eO=function(e){var n=(0,t.traverseWithIndex)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},ex=s._chainRecDepthFirst,eC=s._chainRecBreadthFirst;t.of=d.of;var eM=function(){return[]};t.zero=eM;var eE=function(e){return function(t){return t.map(function(t){return e(t)})}};t.map=eE;var eP=function(e){return(0,t.flatMap)(function(n){return(0,f.pipe)(e,(0,t.map)(n))})};t.ap=eP,t.flatMap=(0,f.dual)(2,function(e,n){return(0,f.pipe)(e,(0,t.chainWithIndex)(function(e,t){return n(t,e)}))}),t.flatten=(0,t.flatMap)(f.identity);var ek=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}};t.mapWithIndex=ek;var eF=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);p.isSome(i)&&n.push(i.value)}return n}};t.filterMapWithIndex=eF;var eW=function(e){return(0,t.filterMapWithIndex)(function(t,n){return e(n)})};t.filterMap=eW,t.compact=(0,t.filterMap)(f.identity);var eD=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return(0,m.separated)(t,n)};t.separate=eD;var eN=function(e){return function(t){return t.filter(e)}};t.filter=eN;var eL=function(e){return(0,t.partitionWithIndex)(function(t,n){return e(n)})};t.partition=eL;var eU=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return(0,m.separated)(n,r)}};t.partitionWithIndex=eU;var eA=function(e){return(0,t.partitionMapWithIndex)(function(t,n){return e(n)})};t.partitionMap=eA;var ej=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return(0,m.separated)(n,r)}};t.partitionMapWithIndex=ej;var eq=function(e){return function(t){return t.concat(e())}};t.altW=eq,t.alt=t.altW;var eG=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}};t.filterWithIndex=eG;var eY=function(e){return function(t){return t.map(function(n,r){return e(t.slice(r))})}};t.extend=eY,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;var eB=function(e){var n=(0,t.traverseWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}};t.traverse=eB;var eK=function(e){return function(n){return ev(n,e.of((0,t.zero)()),function(n,r){return e.ap(e.map(n,function(e){return function(n){return(0,f.pipe)(e,(0,t.append)(n))}}),r)})}};t.sequence=eK;var eV=function(e){return function(n){return(0,t.reduceWithIndex)(e.of((0,t.zero)()),function(r,i,o){return e.ap(e.map(i,function(e){return function(n){return(0,f.pipe)(e,(0,t.append)(n))}}),n(r,o))})}};t.traverseWithIndex=eV;var ez=function(e){var t=e2(e);return function(e){return function(n){return t(n,e)}}};t.wither=ez;var eH=function(e){var t=e8(e);return function(e){return function(n){return t(n,e)}}};t.wilt=eH;var e$=function(e,t){for(var n=[],r=e;;){var i=t(r);if(p.isSome(i)){var o=i.value,u=o[0],a=o[1];n.push(u),r=a}else break}return n};t.unfold=e$,t.URI="Array",t.getShow=s.getShow;var eX=function(){return{concat:function(e,t){return e.concat(t)}}};t.getSemigroup=eX;var eJ=function(){return{concat:(0,t.getSemigroup)().concat,empty:[]}};t.getMonoid=eJ,t.getEq=s.getEq,t.getOrd=s.getOrd;var eZ=function(e){var t=er(e);return{concat:function(e,n){return t(n)(e)}}};t.getUnionSemigroup=eZ;var eQ=function(e){return{concat:(0,t.getUnionSemigroup)(e).concat,empty:[]}};t.getUnionMonoid=eQ;var e0=function(e){var t=ei(e);return{concat:function(e,n){return t(n)(e)}}};t.getIntersectionSemigroup=e0;var e1=function(e){var t=eo(e);return{concat:function(e,n){return t(n)(e)}}};t.getDifferenceMagma=e1,t.Functor={URI:t.URI,map:eu},t.flap=(0,l.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:eu,mapWithIndex:ea},t.Apply={URI:t.URI,map:eu,ap:ec},t.apFirst=(0,u.apFirst)(t.Apply),t.apSecond=(0,u.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:eu,ap:ec,of:t.of},t.Chain={URI:t.URI,map:eu,ap:ec,chain:t.flatMap},t.chainFirst=(0,a.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:eu,ap:ec,of:t.of,chain:t.flatMap},t.Unfoldable={URI:t.URI,unfold:t.unfold},t.Alt={URI:t.URI,map:eu,alt:eh},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,v.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:eu,ap:ec,of:t.of,alt:eh,zero:t.zero},t.Extend={URI:t.URI,map:eu,extend:eR},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:eu,compact:t.compact,separate:t.separate,filter:ef,filterMap:el,partition:ep,partitionMap:ed},t.FilterableWithIndex={URI:t.URI,map:eu,mapWithIndex:ea,compact:t.compact,separate:t.separate,filter:ef,filterMap:el,partition:ep,partitionMap:ed,partitionMapWithIndex:em,partitionWithIndex:es,filterMapWithIndex:eT,filterWithIndex:eI},t.Foldable={URI:t.URI,reduce:ev,foldMap:ey,reduceRight:eg},t.FoldableWithIndex={URI:t.URI,reduce:ev,foldMap:ey,reduceRight:eg,reduceWithIndex:e_,foldMapWithIndex:eb,reduceRightWithIndex:eS},t.Traversable={URI:t.URI,map:eu,reduce:ev,foldMap:ey,reduceRight:eg,traverse:ew,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:eu,mapWithIndex:ea,reduce:ev,foldMap:ey,reduceRight:eg,reduceWithIndex:e_,foldMapWithIndex:eb,reduceRightWithIndex:eS,traverse:ew,sequence:t.sequence,traverseWithIndex:eO};var e2=(0,h.witherDefault)(t.Traversable,t.Compactable),e8=(0,h.wiltDefault)(t.Traversable,t.Compactable);t.Witherable={URI:t.URI,map:eu,compact:t.compact,separate:t.separate,filter:ef,filterMap:el,partition:ep,partitionMap:ed,reduce:ev,foldMap:ey,reduceRight:eg,traverse:ew,sequence:t.sequence,wither:e2,wilt:e8},t.chainRecDepthFirst=s.chainRecDepthFirst,t.ChainRecDepthFirst={URI:t.URI,map:eu,ap:ec,chain:t.flatMap,chainRec:ex},t.chainRecBreadthFirst=s.chainRecBreadthFirst,t.ChainRecBreadthFirst={URI:t.URI,map:eu,ap:ec,chain:t.flatMap,chainRec:eC},t.filterE=(0,h.filterE)(t.Witherable),t.FromEither={URI:t.URI,fromEither:t.fromEither},t.fromEitherK=(0,c.fromEitherK)(t.FromEither),t.unsafeInsertAt=d.unsafeInsertAt;var e7=function(e,n,r){return(0,t.isNonEmpty)(r)?d.unsafeUpdateAt(e,n,r):[]};t.unsafeUpdateAt=e7;var e3=function(e,t){var n=t.slice();return n.splice(e,1),n};t.unsafeDeleteAt=e3,t.every=s.every;var e5=function(e){return function(t){return t.some(e)}};t.some=e5,t.exists=t.some,t.intercalate=s.intercalate,t.Do=(0,t.of)(p.emptyRecord),t.bindTo=(0,l.bindTo)(t.Functor);var e4=(0,l.let)(t.Functor);t.let=e4,t.bind=(0,a.bind)(t.Chain),t.apS=(0,u.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:eu,ap:ec,of:t.of,chain:t.flatMap,filter:ef,filterMap:el,partition:ep,partitionMap:ed,mapWithIndex:ea,partitionMapWithIndex:em,partitionWithIndex:es,filterMapWithIndex:eT,filterWithIndex:eI,alt:eh,zero:t.zero,unfold:t.unfold,reduce:ev,foldMap:ey,reduceRight:eg,traverse:ew,sequence:t.sequence,reduceWithIndex:e_,foldMapWithIndex:eb,reduceRightWithIndex:eS,traverseWithIndex:eO,extend:eR,wither:e2,wilt:e8}},18222:function(e,t){function n(e){return function(t,n){return e.chain(t,function(t){return e.map(n(t),function(){return t})})}}Object.defineProperty(t,"__esModule",{value:!0}),t.bind=t.tap=t.chainFirst=void 0,t.chainFirst=function(e){var t=n(e);return function(e){return function(n){return t(n,e)}}},t.tap=n,t.bind=function(e){return function(t,n){return function(r){return e.chain(r,function(r){return e.map(n(r),function(e){var n;return Object.assign({},r,((n={})[t]=e,n))})})}}}},71166:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tailRec=void 0;var n=function(e,t){for(var n=t(e);"Left"===n._tag;)n=t(n.left);return n.right};t.tailRec=n},87412:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),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 u=n(91756),a=n(93145),c=o(n(18222)),f=n(71166),l=n(57756),p=n(14632),d=n(8762),s=o(n(5309)),m=n(4773),h=n(69706);t.left=s.left,t.right=s.right,t.flatMap=(0,p.dual)(2,function(e,n){return(0,t.isLeft)(e)?e:n(e.right)});var v=function(e,n){return(0,p.pipe)(e,(0,t.map)(n))},y=function(e,n){return(0,p.pipe)(e,(0,t.ap)(n))},g=function(e,n,r){return(0,p.pipe)(e,(0,t.reduce)(n,r))},_=function(e){return function(n,r){var i=(0,t.foldMap)(e);return(0,p.pipe)(n,i(r))}},b=function(e,n,r){return(0,p.pipe)(e,(0,t.reduceRight)(n,r))},S=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},T=function(e,n,r){return(0,p.pipe)(e,(0,t.bimap)(n,r))},I=function(e,n){return(0,p.pipe)(e,(0,t.mapLeft)(n))},R=function(e,n){return(0,p.pipe)(e,(0,t.alt)(n))},w=function(e,n){return(0,p.pipe)(e,(0,t.extend)(n))},O=function(e,n){return(0,f.tailRec)(n(e),function(e){return(0,t.isLeft)(e)?(0,t.right)((0,t.left)(e.left)):(0,t.isLeft)(e.right)?(0,t.left)(n(e.right.left)):(0,t.right)((0,t.right)(e.right.right))})};t.URI="Either";var x=function(e,n){return{show:function(r){return(0,t.isLeft)(r)?"left(".concat(e.show(r.left),")"):"right(".concat(n.show(r.right),")")}}};t.getShow=x;var C=function(e,n){return{equals:function(r,i){return r===i||((0,t.isLeft)(r)?(0,t.isLeft)(i)&&e.equals(r.left,i.left):(0,t.isRight)(i)&&n.equals(r.right,i.right))}}};t.getEq=C;var M=function(e){return{concat:function(n,r){return(0,t.isLeft)(r)?n:(0,t.isLeft)(n)?r:(0,t.right)(e.concat(n.right,r.right))}}};t.getSemigroup=M;var E=function(e){var n=(0,t.left)(e.empty);return{URI:t.URI,_E:void 0,compact:function(e){return(0,t.isLeft)(e)?e:"None"===e.right._tag?n:(0,t.right)(e.right.value)},separate:function(e){return(0,t.isLeft)(e)?(0,m.separated)(e,e):(0,t.isLeft)(e.right)?(0,m.separated)((0,t.right)(e.right.left),n):(0,m.separated)(n,(0,t.right)(e.right.right))}}};t.getCompactable=E;var P=function(e){var n=(0,t.left)(e.empty),r=(0,t.getCompactable)(e),i=r.compact,o=r.separate,u=function(e,r){return(0,t.isLeft)(e)?e:r(e.right)?e:n},a=function(e,r){return(0,t.isLeft)(e)?(0,m.separated)(e,e):r(e.right)?(0,m.separated)(n,(0,t.right)(e.right)):(0,m.separated)((0,t.right)(e.right),n)};return{URI:t.URI,_E:void 0,map:v,compact:i,separate:o,filter:u,filterMap:function(e,r){if((0,t.isLeft)(e))return e;var i=r(e.right);return"None"===i._tag?n:(0,t.right)(i.value)},partition:a,partitionMap:function(e,r){if((0,t.isLeft)(e))return(0,m.separated)(e,e);var i=r(e.right);return(0,t.isLeft)(i)?(0,m.separated)((0,t.right)(i.left),n):(0,m.separated)(n,(0,t.right)(i.right))}}};t.getFilterable=P;var k=function(e){var n=(0,t.getFilterable)(e),r=(0,t.getCompactable)(e);return{URI:t.URI,_E:void 0,map:v,compact:n.compact,separate:n.separate,filter:n.filter,filterMap:n.filterMap,partition:n.partition,partitionMap:n.partitionMap,traverse:S,sequence:t.sequence,reduce:g,foldMap:_,reduceRight:b,wither:(0,h.witherDefault)(t.Traversable,r),wilt:(0,h.wiltDefault)(t.Traversable,r)}};t.getWitherable=k;var F=function(e){return{URI:t.URI,_E:void 0,map:v,ap:function(n,r){return(0,t.isLeft)(n)?(0,t.isLeft)(r)?(0,t.left)(e.concat(n.left,r.left)):n:(0,t.isLeft)(r)?r:(0,t.right)(n.right(r.right))},of:t.of}};t.getApplicativeValidation=F;var W=function(e){return{URI:t.URI,_E:void 0,map:v,alt:function(n,r){if((0,t.isRight)(n))return n;var i=r();return(0,t.isLeft)(i)?(0,t.left)(e.concat(n.left,i.left)):i}}};t.getAltValidation=W;var D=function(e){return function(n){return(0,t.isLeft)(n)?n:(0,t.right)(e(n.right))}};t.map=D,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};var N=function(e){return function(n){return(0,t.isLeft)(n)?n:(0,t.isLeft)(e)?e:(0,t.right)(n.right(e.right))}};t.apW=N,t.ap=t.apW,t.Apply={URI:t.URI,map:v,ap:y},t.Applicative={URI:t.URI,map:v,ap:y,of:t.of},t.Chain={URI:t.URI,map:v,ap:y,chain:t.flatMap},t.Monad={URI:t.URI,map:v,ap:y,of:t.of,chain:t.flatMap};var L=function(e,n){return function(r){return(0,t.isLeft)(r)?e:n(e,r.right)}};t.reduce=L;var U=function(e){return function(n){return function(r){return(0,t.isLeft)(r)?e.empty:n(r.right)}}};t.foldMap=U;var A=function(e,n){return function(r){return(0,t.isLeft)(r)?e:n(r.right,e)}};t.reduceRight=A,t.Foldable={URI:t.URI,reduce:g,foldMap:_,reduceRight:b};var j=function(e){return function(n){return function(r){return(0,t.isLeft)(r)?e.of((0,t.left)(r.left)):e.map(n(r.right),t.right)}}};t.traverse=j;var q=function(e){return function(n){return(0,t.isLeft)(n)?e.of((0,t.left)(n.left)):e.map(n.right,t.right)}};t.sequence=q,t.Traversable={URI:t.URI,map:v,reduce:g,foldMap:_,reduceRight:b,traverse:S,sequence:t.sequence};var G=function(e,n){return function(r){return(0,t.isLeft)(r)?(0,t.left)(e(r.left)):(0,t.right)(n(r.right))}};t.bimap=G;var Y=function(e){return function(n){return(0,t.isLeft)(n)?(0,t.left)(e(n.left)):n}};t.mapLeft=Y,t.Bifunctor={URI:t.URI,bimap:T,mapLeft:I};var B=function(e){return function(n){return(0,t.isLeft)(n)?e():n}};t.altW=B,t.alt=t.altW,t.Alt={URI:t.URI,map:v,alt:R};var K=function(e){return function(n){return(0,t.isLeft)(n)?n:(0,t.right)(e(n))}};t.extend=K,t.Extend={URI:t.URI,map:v,extend:w},t.ChainRec={URI:t.URI,map:v,ap:y,chain:t.flatMap,chainRec:O},t.throwError=t.left,t.MonadThrow={URI:t.URI,map:v,ap:y,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;var V=function(e,n){return function(r){return(0,t.isLeft)(r)?e(r.left):n(r.right)}};t.matchW=V,t.foldW=t.matchW,t.match=t.matchW,t.fold=t.match;var z=function(e){return function(n){return(0,t.isLeft)(n)?e(n.left):n.right}};t.getOrElseW=z,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 H={fromEither:t.FromEither.fromEither};t.liftNullable=s.liftNullable(H),t.liftOption=s.liftOption(H);var $={flatMap:t.flatMap};t.flatMapNullable=s.flatMapNullable(H,$),t.flatMapOption=s.flatMapOption(H,$),t.filterOrElse=(0,l.filterOrElse)(t.FromEither,t.Chain),t.filterOrElseW=t.filterOrElse;var X=function(e){return(0,t.isLeft)(e)?(0,t.right)(e.left):(0,t.left)(e.right)};t.swap=X;var J=function(e){return function(n){return(0,t.isLeft)(n)?e(n.left):n}};t.orElseW=J,t.orElse=t.orElseW;var Z=function(e){return function(n){return null==n?(0,t.left)(e):(0,t.right)(n)}};t.fromNullable=Z;var Q=function(e,n){try{return(0,t.right)(e())}catch(r){return(0,t.left)(n(r))}};t.tryCatch=Q;var ee=function(e,n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return(0,t.tryCatch)(function(){return e.apply(void 0,r)},n)}};t.tryCatchK=ee;var et=function(e){var n=(0,t.fromNullable)(e);return function(e){return(0,p.flow)(e,n)}};t.fromNullableK=et;var en=function(e){var n=(0,t.fromNullableK)(e);return function(e){return(0,t.flatMap)(n(e))}};t.chainNullableK=en,t.toUnion=(0,t.foldW)(p.identity,p.identity),t.toError=function(e){return e instanceof Error?e:Error(String(e))},t.elem=function e(n){return function(r,i){if(void 0===i){var o=e(n);return function(e){return o(r,e)}}return!(0,t.isLeft)(i)&&n.equals(r,i.right)}};var er=function(e){return function(n){return!(0,t.isLeft)(n)&&e(n.right)}};t.exists=er,t.Do=(0,t.of)(s.emptyRecord),t.bindTo=(0,d.bindTo)(t.Functor);var ei=(0,d.let)(t.Functor);t.let=ei,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);var eo=function(e){return function(n){var r=e(0,s.head(n));if((0,t.isLeft)(r))return r;for(var i=[r.right],o=1;o<n.length;o++){var u=e(o,n[o]);if((0,t.isLeft)(u))return u;i.push(u.right)}return(0,t.right)(i)}};t.traverseReadonlyNonEmptyArrayWithIndex=eo;var eu=function(e){var n=(0,t.traverseReadonlyNonEmptyArrayWithIndex)(e);return function(e){return s.isNonEmpty(e)?n(e):t.ApT}};t.traverseReadonlyArrayWithIndex=eu,t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex;var ea=function(e){return(0,t.traverseReadonlyArrayWithIndex)(function(t,n){return e(n)})};t.traverseArray=ea,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(e,n){return(0,t.tryCatch)(function(){return JSON.parse(e)},n)};var ec=function(e,n){return(0,t.tryCatch)(function(){var t=JSON.stringify(e);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},n)};t.stringifyJSON=ec,t.either={URI:t.URI,map:v,of:t.of,ap:y,chain:t.flatMap,reduce:g,foldMap:_,reduceRight:b,traverse:S,sequence:t.sequence,bimap:T,mapLeft:I,alt:R,extend:w,chainRec:O,throwError:t.throwError},t.getApplySemigroup=(0,a.getApplySemigroup)(t.Apply),t.getApplyMonoid=(0,u.getApplicativeMonoid)(t.Applicative);var ef=function(e,n){return(0,a.getApplySemigroup)((0,t.getApplicativeValidation)(e))(n)};t.getValidationSemigroup=ef;var el=function(e,n){return(0,u.getApplicativeMonoid)((0,t.getApplicativeValidation)(e))(n)};t.getValidationMonoid=el,t.getValidation=function(e){var n=(0,t.getApplicativeValidation)(e).ap,r=(0,t.getAltValidation)(e).alt;return{URI:t.URI,_E:void 0,map:v,of:t.of,chain:t.flatMap,bimap:T,mapLeft:I,reduce:g,foldMap:_,reduceRight:b,extend:w,traverse:S,sequence:t.sequence,chainRec:O,throwError:t.throwError,ap:n,alt:r}}},8190:function(e,t,n){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=n(14632),i=function(e){return{equals:function(t,n){return t===n||e(t,n)}}};t.fromEquals=i;var o=function(e){return(0,t.fromEquals)(function(t,n){for(var r in e)if(!e[r].equals(t[r],n[r]))return!1;return!0})};t.struct=o;var u=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,t.fromEquals)(function(t,n){return e.every(function(e,r){return e.equals(t[r],n[r])})})};t.tuple=u;var a=function(e,n){return(0,r.pipe)(e,(0,t.contramap)(n))},c=function(e){return function(n){return(0,t.fromEquals)(function(t,r){return n.equals(e(t),e(r))})}};t.contramap=c,t.URI="Eq",t.eqStrict={equals:function(e,t){return e===t}};var f={equals:function(){return!0}},l=function(){return{concat:function(e,n){return(0,t.fromEquals)(function(t,r){return e.equals(t,r)&&n.equals(t,r)})}}};t.getSemigroup=l;var p=function(){return{concat:(0,t.getSemigroup)().concat,empty:f}};t.getMonoid=p,t.Contravariant={URI:t.URI,contramap:a},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(e,t){return e.valueOf()===t.valueOf()}}},57756:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),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 u=n(18222),a=n(14632),c=o(n(5309));function f(e){return function(t){return function(n){return e.fromEither(c.isNone(n)?c.left(t()):c.right(n.value))}}}function l(e){var t=f(e);return function(e){var n=t(e);return function(e){return(0,a.flow)(e,n)}}}function p(e){return function(t){return(0,a.flow)(t,e.fromEither)}}function d(e,t){var n=p(e),r=(0,u.tap)(t);return function(e,t){return r(e,n(t))}}t.fromOption=f,t.fromPredicate=function(e){return function(t,n){return function(r){return e.fromEither(t(r)?c.right(r):c.left(n(r)))}}},t.fromOptionK=l,t.chainOptionK=function(e,t){var n=l(e);return function(e){var r=n(e);return function(e){return function(n){return t.chain(n,r(e))}}}},t.fromEitherK=p,t.chainEitherK=function(e,t){var n=p(e);return function(e){return function(r){return t.chain(r,n(e))}}},t.chainFirstEitherK=function(e,t){var n=d(e,t);return function(e){return function(t){return n(t,e)}}},t.filterOrElse=function(e,t){return function(n,r){return function(i){return t.chain(i,function(t){return e.fromEither(n(t)?c.right(t):c.left(r(t)))})}}},t.tapEither=d},8762:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.asUnit=t.as=t.getFunctorComposition=t.let=t.bindTo=t.flap=t.map=void 0;var r=n(14632);function i(e,t){return function(n){return function(r){return e.map(r,function(e){return t.map(e,n)})}}}function o(e){return function(t,n){return e.map(t,function(){return n})}}t.map=i,t.flap=function(e){return function(t){return function(n){return e.map(n,function(e){return e(t)})}}},t.bindTo=function(e){return function(t){return function(n){return e.map(n,function(e){var n;return(n={})[t]=e,n})}}},t.let=function(e){return function(t,n){return function(r){return e.map(r,function(e){var r;return Object.assign({},e,((r={})[t]=n(e),r))})}}},t.getFunctorComposition=function(e,t){var n=i(e,t);return{map:function(e,t){return(0,r.pipe)(e,n(t))}}},t.as=o,t.asUnit=function(e){var t=o(e);return function(e){return t(e,void 0)}}},73540:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=t.endo=t.filterSecond=t.filterFirst=t.reverse=void 0;var n=function(e){return{concat:function(t,n){return e.concat(n,t)}}};t.reverse=n;var r=function(e){return function(t){return{concat:function(n,r){return e(n)?t.concat(n,r):r}}}};t.filterFirst=r;var i=function(e){return function(t){return{concat:function(n,r){return e(r)?t.concat(n,r):n}}}};t.filterSecond=i;var o=function(e){return function(t){return{concat:function(n,r){return t.concat(e(n),e(r))}}}};t.endo=o;var u=function(e){return function(t){return function(n){return n.reduce(function(t,n){return e.concat(t,n)},t)}}};t.concatAll=u},7219:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},u=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.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=n(93145),c=n(18222),f=n(14632),l=n(8762),p=o(n(5309)),d=n(83235),s=o(n(84612)),m=function(e){return e.length>0};t.isNonEmpty=m;var h=function(e,t){return e<0||e>=t.length};t.isOutOfBound=h;var v=function(e){return function(t){return u([e],t,!0)}};t.prependW=v,t.prepend=t.prependW;var y=function(e){return function(t){return u(u([],t,!0),[e],!1)}};t.appendW=y,t.append=t.appendW;var g=function(e,n,r){if((0,t.isNonEmpty)(r)){var i=(0,t.fromReadonlyNonEmptyArray)(r);return i.splice(e,0,n),i}return[n]};t.unsafeInsertAt=g;var _=function(e,n,r){var i=(0,t.fromReadonlyNonEmptyArray)(r);return i[e]=n,i};t.unsafeUpdateAt=_;var b=function(e){return function(n){if(1===n.length)return(0,t.copy)(n);for(var r=[(0,t.head)(n)],i=(0,t.tail)(n),o=function(t){r.every(function(n){return!e.equals(n,t)})&&r.push(t)},u=0;u<i.length;u++)o(i[u]);return r}};t.uniq=b;var S=function(e){if((0,t.isNonEmpty)(e)){var n=(0,d.getMonoid)();return(0,t.sort)(e.reduce(n.concat,n.empty))}return t.copy};t.sortBy=S;var T=function(e){var n=(0,t.uniq)(e);return function(e){return function(t){return n((0,f.pipe)(t,P(e)))}}};t.union=T;var I=function(e){return function(n){var r=n.length,i=Math.round(e)%r;if((0,t.isOutOfBound)(Math.abs(i),n)||0===i)return(0,t.copy)(n);if(!(i<0))return(0,t.rotate)(i-r)(n);var o=(0,t.splitAt)(-i)(n),u=o[0],a=o[1];return(0,f.pipe)(a,P(u))}};t.rotate=I,t.fromReadonlyNonEmptyArray=p.fromReadonlyNonEmptyArray;var R=function(e){return(0,t.isNonEmpty)(e)?p.some(e):p.none};t.fromArray=R;var w=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}};t.makeBy=w;var O=function(e){return(0,t.makeBy)(function(){return e})};t.replicate=O;var x=function(e,n){return e<=n?(0,t.makeBy)(function(t){return e+t})(n-e+1):[e]};t.range=x;var C=function(e){return[(0,t.head)(e),(0,t.tail)(e)]};t.unprepend=C;var M=function(e){return[(0,t.init)(e),(0,t.last)(e)]};function E(e){return function(t){return t.concat(e)}}function P(e,t){return t?e.concat(t):function(t){return t.concat(e)}}t.unappend=M,t.concatW=E,t.concat=P;var k=function(e){return u([(0,t.last)(e)],e.slice(0,-1).reverse(),!0)};function F(e){return function(t){var n=t.length;if(0===n)return[];for(var r=[],i=t[0],o=[i],u=1;u<n;u++){var a=t[u];e.equals(a,i)?o.push(a):(r.push(o),o=[i=a])}return r.push(o),r}}t.reverse=k,t.group=F;var W=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);p.has.call(n,o)?n[o].push(i):n[o]=[i]}return n}};t.groupBy=W;var D=function(e){return function(t){return t.slice().sort(e.compare)}};t.sort=D;var N=function(e,n){return function(r){return e<0||e>r.length?p.none:p.some((0,t.unsafeInsertAt)(e,n,r))}};t.insertAt=N;var L=function(e,n){return(0,t.modifyAt)(e,function(){return n})};t.updateAt=L;var U=function(e,n){return function(r){return(0,t.isOutOfBound)(e,r)?p.none:p.some((0,t.unsafeUpdateAt)(e,n(r[e]),r))}};t.modifyAt=U,t.copy=t.fromReadonlyNonEmptyArray;var A=function(e){return[e]};t.of=A;var j=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r};t.zipWith=j,t.zip=function e(n,r){return void 0===r?function(t){return e(t,n)}:(0,t.zipWith)(n,r,function(e,t){return[e,t]})};var q=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]};t.unzip=q;var G=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}};t.prependAll=G;var Y=function(e){return function(n){var r=(0,t.tail)(n);return(0,t.isNonEmpty)(r)?(0,f.pipe)(r,(0,t.prependAll)(e),(0,t.prepend)((0,t.head)(n))):(0,t.copy)(n)}};t.intersperse=Y,t.foldMapWithIndex=s.foldMapWithIndex,t.foldMap=s.foldMap;var B=function(e){return function(n){for(var r=(0,t.fromReadonlyNonEmptyArray)(e(0,(0,t.head)(n))),i=1;i<n.length;i++)r.push.apply(r,e(i,n[i]));return r}};t.chainWithIndex=B;var K=function(e){return function(n){for(var r=e(n),i=r[0],o=r[1],u=[i],a=o;(0,t.isNonEmpty)(a);){var c=e(a),f=c[0],l=c[1];u.push(f),a=l}return u}};t.chop=K;var V=function(e){return function(n){var r=Math.max(1,e);return r>=n.length?[(0,t.copy)(n),[]]:[(0,f.pipe)(n.slice(1,r),(0,t.prepend)((0,t.head)(n))),n.slice(r)]}};t.splitAt=V;var z=function(e){return(0,t.chop)((0,t.splitAt)(e))};t.chunksOf=z;var H=function(e,n){return(0,f.pipe)(e,(0,t.map)(n))},$=function(e,n){return(0,f.pipe)(e,(0,t.mapWithIndex)(n))},X=function(e,n){return(0,f.pipe)(e,(0,t.ap)(n))},J=function(e,n){return(0,f.pipe)(e,(0,t.extend)(n))},Z=function(e,n,r){return(0,f.pipe)(e,(0,t.reduce)(n,r))},Q=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},ee=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceRight)(n,r))},et=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},en=function(e,n){return(0,f.pipe)(e,(0,t.alt)(n))},er=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceWithIndex)(n,r))},ei=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},eo=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceRightWithIndex)(n,r))},eu=function(e){var n=(0,t.traverseWithIndex)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},ea=function(e){return function(t){return(0,f.pipe)(t,E(e()))}};t.altW=ea,t.alt=t.altW;var ec=function(e){return(0,t.flatMap)(function(n){return(0,f.pipe)(e,(0,t.map)(n))})};t.ap=ec,t.flatMap=(0,f.dual)(2,function(e,n){return(0,f.pipe)(e,(0,t.chainWithIndex)(function(e,t){return n(t,e)}))});var ef=function(e){return function(n){for(var r=(0,t.tail)(n),i=[e(n)];(0,t.isNonEmpty)(r);)i.push(e(r)),r=(0,t.tail)(r);return i}};t.extend=ef,t.duplicate=(0,t.extend)(f.identity),t.flatten=(0,t.flatMap)(f.identity);var el=function(e){return(0,t.mapWithIndex)(function(t,n){return e(n)})};t.map=el;var ep=function(e){return function(n){for(var r=[e(0,(0,t.head)(n))],i=1;i<n.length;i++)r.push(e(i,n[i]));return r}};t.mapWithIndex=ep,t.reduce=s.reduce,t.reduceWithIndex=s.reduceWithIndex,t.reduceRight=s.reduceRight,t.reduceRightWithIndex=s.reduceRightWithIndex;var ed=function(e){var n=(0,t.traverseWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}};t.traverse=ed;var es=function(e){return(0,t.traverseWithIndex)(e)(function(e,t){return t})};t.sequence=es;var em=function(e){return function(n){return function(r){for(var i=e.map(n(0,(0,t.head)(r)),t.of),o=1;o<r.length;o++)i=e.ap(e.map(i,function(e){return function(n){return(0,f.pipe)(e,(0,t.append)(n))}}),n(o,r[o]));return i}}};t.traverseWithIndex=em,t.extract=s.head,t.URI="NonEmptyArray",t.getShow=s.getShow;var eh=function(){return{concat:P}};t.getSemigroup=eh,t.getEq=s.getEq;var ev=function(e){var n=(0,t.union)(e);return{concat:function(e,t){return n(t)(e)}}};t.getUnionSemigroup=ev,t.Functor={URI:t.URI,map:H},t.flap=(0,l.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:H,mapWithIndex:$},t.Apply={URI:t.URI,map:H,ap:X},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:H,ap:X,of:t.of},t.Chain={URI:t.URI,map:H,ap:X,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:H,ap:X,of:t.of,chain:t.flatMap},t.Foldable={URI:t.URI,reduce:Z,foldMap:Q,reduceRight:ee},t.FoldableWithIndex={URI:t.URI,reduce:Z,foldMap:Q,reduceRight:ee,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo},t.Traversable={URI:t.URI,map:H,reduce:Z,foldMap:Q,reduceRight:ee,traverse:et,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:H,mapWithIndex:$,reduce:Z,foldMap:Q,reduceRight:ee,traverse:et,sequence:t.sequence,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo,traverseWithIndex:eu},t.Alt={URI:t.URI,map:H,alt:en},t.Comonad={URI:t.URI,map:H,extend:J,extract:t.extract},t.Do=(0,t.of)(p.emptyRecord),t.bindTo=(0,l.bindTo)(t.Functor);var ey=(0,l.let)(t.Functor);t.let=ey,t.bind=(0,c.bind)(t.Chain),t.apS=(0,a.apS)(t.Apply),t.head=s.head;var eg=function(e){return e.slice(1)};t.tail=eg,t.last=s.last;var e_=function(e){return e.slice(0,-1)};t.init=e_,t.min=s.min,t.max=s.max;var eb=function(e){return function(t){return t.reduce(e.concat)}};t.concatAll=eb;var eS=function(e){return function(n){return e((0,t.head)(n),(0,t.tail)(n))}};t.matchLeft=eS;var eT=function(e){return function(n){return e((0,t.init)(n),(0,t.last)(n))}};t.matchRight=eT;var eI=function(e){return function(n){return u([e((0,t.head)(n))],(0,t.tail)(n),!0)}};t.modifyHead=eI;var eR=function(e){return(0,t.modifyHead)(function(){return e})};t.updateHead=eR;var ew=function(e){return function(n){return(0,f.pipe)((0,t.init)(n),(0,t.append)(e((0,t.last)(n))))}};t.modifyLast=ew;var eO=function(e){return(0,t.modifyLast)(function(){return e})};t.updateLast=eO,t.intercalate=s.intercalate,t.chain=t.flatMap,t.groupSort=function(e){var n=(0,t.sort)(e),r=F(e);return function(e){return(0,t.isNonEmpty)(e)?r(n(e)):[]}},t.filter=function(e){return(0,t.filterWithIndex)(function(t,n){return e(n)})};var ex=function(e){return function(n){return(0,t.fromArray)(n.filter(function(t,n){return e(n,t)}))}};t.filterWithIndex=ex,t.uncons=t.unprepend,t.unsnoc=t.unappend,t.cons=function(e,n){return void 0===n?(0,t.prepend)(e):(0,f.pipe)(n,(0,t.prepend)(e))};var eC=function(e,n){return(0,f.pipe)(e,(0,t.append)(n))};t.snoc=eC,t.prependToAll=t.prependAll,t.fold=s.concatAll,t.nonEmptyArray={URI:t.URI,of:t.of,map:H,mapWithIndex:$,ap:X,chain:t.flatMap,extend:J,extract:t.extract,reduce:Z,foldMap:Q,reduceRight:ee,traverse:et,sequence:t.sequence,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo,traverseWithIndex:eu,alt:en}},72720:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),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 u=n(91756),a=n(93145),c=o(n(18222)),f=n(57756),l=n(14632),p=n(8762),d=o(n(5309)),s=n(87612),m=n(98744),h=n(4773),v=n(69706),y=n(3899);t.none=d.none,t.some=d.some,t.fromPredicate=function(e){return function(n){return e(n)?(0,t.some)(n):t.none}};var g=function(e){return"Right"===e._tag?t.none:(0,t.some)(e.left)};t.getLeft=g;var _=function(e){return"Left"===e._tag?t.none:(0,t.some)(e.right)};t.getRight=_;var b=function(e,n){return(0,l.pipe)(e,(0,t.map)(n))},S=function(e,n){return(0,l.pipe)(e,(0,t.ap)(n))},T=function(e,n,r){return(0,l.pipe)(e,(0,t.reduce)(n,r))},I=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},R=function(e,n,r){return(0,l.pipe)(e,(0,t.reduceRight)(n,r))},w=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},O=function(e,n){return(0,l.pipe)(e,(0,t.alt)(n))},x=function(e,n){return(0,l.pipe)(e,(0,t.filter)(n))},C=function(e,n){return(0,l.pipe)(e,(0,t.filterMap)(n))},M=function(e,n){return(0,l.pipe)(e,(0,t.extend)(n))},E=function(e,n){return(0,l.pipe)(e,(0,t.partition)(n))},P=function(e,n){return(0,l.pipe)(e,(0,t.partitionMap)(n))};t.URI="Option";var k=function(e){return{show:function(n){return(0,t.isNone)(n)?"none":"some(".concat(e.show(n.value),")")}}};t.getShow=k;var F=function(e){return{equals:function(n,r){return n===r||((0,t.isNone)(n)?(0,t.isNone)(r):!(0,t.isNone)(r)&&e.equals(n.value,r.value))}}};t.getEq=F;var W=function(e){return{equals:(0,t.getEq)(e).equals,compare:function(n,r){return n===r?0:(0,t.isSome)(n)?(0,t.isSome)(r)?e.compare(n.value,r.value):1:-1}}};t.getOrd=W;var D=function(e){return{concat:function(n,r){return(0,t.isNone)(n)?r:(0,t.isNone)(r)?n:(0,t.some)(e.concat(n.value,r.value))},empty:t.none}};t.getMonoid=D;var N=function(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.some)(e(n.value))}};t.map=N,t.Functor={URI:t.URI,map:b},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};var L=function(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.isNone)(e)?t.none:(0,t.some)(n.value(e.value))}};t.ap=L,t.Apply={URI:t.URI,map:b,ap:S},t.Applicative={URI:t.URI,map:b,ap:S,of:t.of},t.flatMap=(0,l.dual)(2,function(e,n){return(0,t.isNone)(e)?t.none:n(e.value)}),t.Chain={URI:t.URI,map:b,ap:S,chain:t.flatMap},t.Monad={URI:t.URI,map:b,ap:S,of:t.of,chain:t.flatMap};var U=function(e,n){return function(r){return(0,t.isNone)(r)?e:n(e,r.value)}};t.reduce=U;var A=function(e){return function(n){return function(r){return(0,t.isNone)(r)?e.empty:n(r.value)}}};t.foldMap=A;var j=function(e,n){return function(r){return(0,t.isNone)(r)?e:n(r.value,e)}};t.reduceRight=j,t.Foldable={URI:t.URI,reduce:T,foldMap:I,reduceRight:R},t.orElse=(0,l.dual)(2,function(e,n){return(0,t.isNone)(e)?n():e}),t.altW=t.orElse,t.alt=t.orElse,t.Alt={URI:t.URI,map:b,alt:O};var q=function(){return t.none};t.zero=q,t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,y.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:b,ap:S,of:t.of,alt:O,zero:t.zero};var G=function(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.some)(e(n))}};t.extend=G,t.Extend={URI:t.URI,map:b,extend:M},t.compact=(0,t.flatMap)(l.identity);var Y=(0,h.separated)(t.none,t.none),B=function(e){return(0,t.isNone)(e)?Y:(0,h.separated)((0,t.getLeft)(e.value),(0,t.getRight)(e.value))};t.separate=B,t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};var K=function(e){return function(n){return(0,t.isNone)(n)?t.none:e(n.value)?n:t.none}};t.filter=K;var V=function(e){return function(n){return(0,t.isNone)(n)?t.none:e(n.value)}};t.filterMap=V;var z=function(e){return function(t){return(0,h.separated)(x(t,(0,s.not)(e)),x(t,e))}};t.partition=z;var H=function(e){return(0,l.flow)((0,t.map)(e),t.separate)};t.partitionMap=H,t.Filterable={URI:t.URI,map:b,compact:t.compact,separate:t.separate,filter:x,filterMap:C,partition:E,partitionMap:P};var $=function(e){return function(n){return function(r){return(0,t.isNone)(r)?e.of(t.none):e.map(n(r.value),t.some)}}};t.traverse=$;var X=function(e){return function(n){return(0,t.isNone)(n)?e.of(t.none):e.map(n.value,t.some)}};t.sequence=X,t.Traversable={URI:t.URI,map:b,reduce:T,foldMap:I,reduceRight:R,traverse:w,sequence:t.sequence};var J=(0,v.witherDefault)(t.Traversable,t.Compactable),Z=(0,v.wiltDefault)(t.Traversable,t.Compactable),Q=function(e){var t=J(e);return function(e){return function(n){return t(n,e)}}};t.wither=Q;var ee=function(e){var t=Z(e);return function(e){return function(n){return t(n,e)}}};t.wilt=ee,t.Witherable={URI:t.URI,map:b,reduce:T,foldMap:I,reduceRight:R,traverse:w,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:x,filterMap:C,partition:E,partitionMap:P,wither:J,wilt:Z};var et=function(){return t.none};t.throwError=et,t.MonadThrow={URI:t.URI,map:b,ap:S,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;var en=function(e){return"None"===e._tag};t.isNone=en;var er=function(e,n){return function(r){return(0,t.isNone)(r)?e():n(r.value)}};t.matchW=er,t.foldW=t.matchW,t.match=t.matchW,t.fold=t.match;var ei=function(e){return function(n){return(0,t.isNone)(n)?e():n.value}};t.getOrElseW=ei,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;var eo=function(e){return null==e?t.none:(0,t.some)(e)};t.fromNullable=eo;var eu=function(e){try{return(0,t.some)(e())}catch(n){return t.none}};t.tryCatch=eu;var ea=function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(0,t.tryCatch)(function(){return e.apply(void 0,n)})}};t.tryCatchK=ea;var ec=function(e){return(0,l.flow)(e,t.fromNullable)};t.fromNullableK=ec;var ef=function(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.fromNullable)(e(n.value))}};t.chainNullableK=ef,t.toNullable=(0,t.match)(l.constNull,l.identity),t.toUndefined=(0,t.match)(l.constUndefined,l.identity),t.elem=function e(n){return function(r,i){if(void 0===i){var o=e(n);return function(e){return o(r,e)}}return!(0,t.isNone)(i)&&n.equals(r,i.value)}};var el=function(e){return function(n){return!(0,t.isNone)(n)&&e(n.value)}};t.exists=el,t.Do=(0,t.of)(d.emptyRecord),t.bindTo=(0,p.bindTo)(t.Functor);var ep=(0,p.let)(t.Functor);t.let=ep,t.bind=c.bind(t.Chain),t.apS=(0,a.apS)(t.Apply),t.ApT=(0,t.of)(d.emptyReadonlyArray);var ed=function(e){return function(n){var r=e(0,d.head(n));if((0,t.isNone)(r))return t.none;for(var i=[r.value],o=1;o<n.length;o++){var u=e(o,n[o]);if((0,t.isNone)(u))return t.none;i.push(u.value)}return(0,t.some)(i)}};t.traverseReadonlyNonEmptyArrayWithIndex=ed;var es=function(e){var n=(0,t.traverseReadonlyNonEmptyArrayWithIndex)(e);return function(e){return d.isNonEmpty(e)?n(e):t.ApT}};t.traverseReadonlyArrayWithIndex=es,t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex;var em=function(e){return(0,t.traverseReadonlyArrayWithIndex)(function(t,n){return e(n)})};t.traverseArray=em,t.sequenceArray=(0,t.traverseArray)(l.identity),t.chain=t.flatMap,t.chainFirst=t.tap,t.getRefinement=function(e){return function(n){return(0,t.isSome)(e(n))}},t.mapNullable=t.chainNullableK,t.option={URI:t.URI,map:b,of:t.of,ap:S,chain:t.flatMap,reduce:T,foldMap:I,reduceRight:R,traverse:w,sequence:t.sequence,zero:t.zero,alt:O,extend:M,compact:t.compact,separate:t.separate,filter:x,filterMap:C,partition:E,partitionMap:P,wither:J,wilt:Z,throwError:t.throwError},t.getApplySemigroup=(0,a.getApplySemigroup)(t.Apply),t.getApplyMonoid=(0,u.getApplicativeMonoid)(t.Applicative);var eh=function(){return(0,t.getMonoid)((0,m.first)())};t.getFirstMonoid=eh;var ev=function(){return(0,t.getMonoid)((0,m.last)())};t.getLastMonoid=ev},83235:function(e,t,n){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=n(8190),i=n(14632),o=function(e){return function(t,n){return t===n||0===e(t,n)}};t.equalsDefault=o;var u=function(e){return{equals:(0,t.equalsDefault)(e),compare:function(t,n){return t===n?0:e(t,n)}}};t.fromCompare=u;var a=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,t.fromCompare)(function(t,n){for(var r=0;r<e.length-1;r++){var i=e[r].compare(t[r],n[r]);if(0!==i)return i}return e[r].compare(t[r],n[r])})};t.tuple=a;var c=function(e){return(0,t.fromCompare)(function(t,n){return e.compare(n,t)})};t.reverse=c;var f=function(e,n){return(0,i.pipe)(e,(0,t.contramap)(n))},l=function(e){return function(n){return(0,t.fromCompare)(function(t,r){return n.compare(e(t),e(r))})}};t.contramap=l,t.URI="Ord";var p=function(){return{concat:function(e,n){return(0,t.fromCompare)(function(t,r){var i=e.compare(t,r);return 0!==i?i:n.compare(t,r)})}}};t.getSemigroup=p;var d=function(){return{concat:(0,t.getSemigroup)().concat,empty:(0,t.fromCompare)(function(){return 0})}};t.getMonoid=d,t.Contravariant={URI:t.URI,contramap:f},t.trivial={equals:i.constTrue,compare:(0,i.constant)(0)};var s=function(e){return function(t){return function(n){return n===t||0===e.compare(n,t)}}};t.equals=s;var m=function(e){return function(t,n){return -1===e.compare(t,n)}};t.lt=m;var h=function(e){return function(t,n){return 1===e.compare(t,n)}};t.gt=h;var v=function(e){return function(t,n){return 1!==e.compare(t,n)}};t.leq=v;var y=function(e){return function(t,n){return -1!==e.compare(t,n)}};t.geq=y;var g=function(e){return function(t,n){return t===n||1>e.compare(t,n)?t:n}};t.min=g;var _=function(e){return function(t,n){return t===n||e.compare(t,n)>-1?t:n}};t.max=_;var b=function(e){var n=(0,t.min)(e),r=(0,t.max)(e);return function(e,t){return function(i){return r(n(i,t),e)}}};t.clamp=b;var S=function(e){var n=(0,t.lt)(e),r=(0,t.gt)(e);return function(e,t){return function(i){return!(n(i,e)||r(i,t))}}};t.between=S,t.getTupleOrd=t.tuple,t.getDualOrd=t.reverse,t.ord=t.Contravariant;var T={equals:r.eqStrict.equals,compare:function(e,t){return e<t?-1:e>t?1:0}};t.ordBoolean=T,t.ordString=T,t.ordNumber=T,t.ordDate=(0,i.pipe)(t.ordNumber,(0,t.contramap)(function(e){return e.valueOf()}))},87612:function(e,t,n){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=n(14632),i=function(e,n){return(0,r.pipe)(e,(0,t.contramap)(n))},o=function(e){return function(t){return(0,r.flow)(e,t)}};t.contramap=o,t.URI="Predicate";var u=function(){return{concat:function(e,n){return(0,r.pipe)(e,(0,t.or)(n))}}};t.getSemigroupAny=u;var a=function(){return{concat:(0,t.getSemigroupAny)().concat,empty:r.constFalse}};t.getMonoidAny=a;var c=function(){return{concat:function(e,n){return(0,r.pipe)(e,(0,t.and)(n))}}};t.getSemigroupAll=c;var f=function(){return{concat:(0,t.getSemigroupAll)().concat,empty:r.constTrue}};t.getMonoidAll=f,t.Contravariant={URI:t.URI,contramap:i};var l=function(e){return function(t){return!e(t)}};t.not=l;var p=function(e){return function(t){return function(n){return t(n)||e(n)}}};t.or=p;var d=function(e){return function(t){return function(n){return t(n)&&e(n)}}};t.and=d},78703:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},u=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.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=n(93145),c=n(18222),f=n(8190),l=n(57756),p=n(14632),d=n(8762),s=o(n(5309)),m=o(n(40457)),h=n(83235),v=o(n(84612)),y=n(4773),g=n(69706),_=n(3899),b=function(e){return 0===e.length};t.isEmpty=b,t.isNonEmpty=v.isNonEmpty,t.prepend=v.prepend,t.prependW=v.prependW,t.append=v.append,t.appendW=v.appendW;var S=function(e,n){return e<=0?t.empty:v.makeBy(n)(e)};t.makeBy=S;var T=function(e,n){return(0,t.makeBy)(e,function(){return n})};t.replicate=T,t.fromPredicate=function(e){return function(n){return e(n)?[n]:t.empty}};var I=function(e){return s.isNone(e)?t.empty:[e.value]};t.fromOption=I;var R=function(e){return s.isLeft(e)?t.empty:[e.right]};t.fromEither=R;var w=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(r):e()}};t.matchW=w,t.match=t.matchW;var O=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(v.head(r),v.tail(r)):e()}};t.matchLeftW=O,t.matchLeft=t.matchLeftW,t.foldLeft=t.matchLeft;var x=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(v.init(r),v.last(r)):e()}};t.matchRightW=x,t.matchRight=t.matchRightW,t.foldRight=t.matchRight;var C=function(e){return function(n){if((0,t.isEmpty)(n))return t.empty;for(var r=[],i=0;i<n.length;i++)r.push.apply(r,e(i,n[i]));return r}};t.chainWithIndex=C;var M=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}};t.scanLeft=M;var E=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}};t.scanRight=E;var P=function(e){return e.length};t.size=P,t.isOutOfBound=v.isOutOfBound,t.lookup=function e(n,r){return void 0===r?function(t){return e(n,t)}:(0,t.isOutOfBound)(n,r)?s.none:s.some(r[n])};var k=function(e){return(0,t.isNonEmpty)(e)?s.some(v.head(e)):s.none};t.head=k;var F=function(e){return(0,t.isNonEmpty)(e)?s.some(v.last(e)):s.none};t.last=F;var W=function(e){return(0,t.isNonEmpty)(e)?s.some(v.tail(e)):s.none};t.tail=W;var D=function(e){return(0,t.isNonEmpty)(e)?s.some(v.init(e)):s.none};t.init=D;var N=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?n:0===e?t.empty:n.slice(0,e)}};t.takeLeft=N;var L=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?n:0===e?t.empty:n.slice(-e)}};t.takeRight=L,t.takeLeftWhile=function(e){return function(n){for(var r=[],i=0;i<n.length;i++){var o=n[i];if(!e(o))break;r.push(o)}var u=r.length;return u===n.length?n:0===u?t.empty:r}};var U=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r};t.spanLeft=function(e){return function(n){var r,i=(0,t.splitAt)(U(n,e))(n);return{init:i[0],rest:i[1]}}};var A=function(e){return function(n){return e<=0||(0,t.isEmpty)(n)?n:e>=n.length?t.empty:n.slice(e,n.length)}};t.dropLeft=A;var j=function(e){return function(n){return e<=0||(0,t.isEmpty)(n)?n:e>=n.length?t.empty:n.slice(0,n.length-e)}};t.dropRight=j,t.dropLeftWhile=function(e){return function(n){var r=U(n,e);return 0===r?n:r===n.length?t.empty:n.slice(r)}};var q=function(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return s.some(n);return s.none}};t.findIndex=q,t.findFirst=function(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return s.some(t[n]);return s.none}};var G=function(e){return function(t){for(var n=0;n<t.length;n++){var r=e(t[n]);if(s.isSome(r))return r}return s.none}};t.findFirstMap=G,t.findLast=function(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return s.some(t[n]);return s.none}};var Y=function(e){return function(t){for(var n=t.length-1;n>=0;n--){var r=e(t[n]);if(s.isSome(r))return r}return s.none}};t.findLastMap=Y;var B=function(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return s.some(n);return s.none}};t.findLastIndex=B;var K=function(e,t){return function(n){return e<0||e>n.length?s.none:s.some(v.unsafeInsertAt(e,t,n))}};t.insertAt=K;var V=function(e,n){return(0,t.modifyAt)(e,function(){return n})};t.updateAt=V;var z=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?s.none:s.some((0,t.unsafeDeleteAt)(e,n))}};t.deleteAt=z;var H=function(e,n){return function(r){return(0,t.isOutOfBound)(e,r)?s.none:s.some((0,t.unsafeUpdateAt)(e,n(r[e]),r))}};t.modifyAt=H;var $=function(e){return e.length<=1?e:e.slice().reverse()};t.reverse=$;var X=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t};t.rights=X;var J=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t};t.lefts=J;var Z=function(e){return function(t){return t.length<=1?t:t.slice().sort(e.compare)}};t.sort=Z;var Q=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r};t.zipWith=Q,t.zip=function e(n,r){return void 0===r?function(t){return e(t,n)}:(0,t.zipWith)(n,r,function(e,t){return[e,t]})};var ee=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]};t.unzip=ee;var et=function(e){var n=v.prependAll(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}};t.prependAll=et;var en=function(e){var n=v.intersperse(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}};t.intersperse=en;var er=function(e){var n=v.rotate(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}};function ei(e){return function(t,n){if(void 0===n){var r,i=ei(e);return function(e){return i(t,e)}}for(var o=0;o<n.length;o++)if(r=n[o],e.equals(r,t))return!0;return!1}}t.rotate=er,t.elem=ei;var eo=function(e){var n=v.uniq(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}};t.uniq=eo;var eu=function(e){var n=v.sortBy(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}};t.sortBy=eu;var ea=function(e){var n=v.chop(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):t.empty}};t.chop=ea;var ec=function(e){return function(n){return e>=1&&(0,t.isNonEmpty)(n)?v.splitAt(e)(n):(0,t.isEmpty)(n)?[n,t.empty]:[t.empty,n]}};t.splitAt=ec;var ef=function(e){var n=v.chunksOf(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):t.empty}};t.chunksOf=ef;var el=function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(0,t.fromOption)(e.apply(void 0,n))}};t.fromOptionK=el,t.comprehension=function(e,n,r){void 0===r&&(r=function(){return!0});var i=function(e,o){return(0,t.isNonEmpty)(o)?(0,t.flatMap)(v.head(o),function(n){return i((0,p.pipe)(e,(0,t.append)(n)),v.tail(o))}):r.apply(void 0,e)?[n.apply(void 0,e)]:t.empty};return i(t.empty,e)};var ep=function(e){return function(n){return(0,t.isEmpty)(n)?e:(0,t.isEmpty)(e)?n:n.concat(e)}};function ed(e){var n=v.union(e);return function(r,i){if(void 0===i){var o=ed(e);return function(e){return o(e,r)}}return(0,t.isNonEmpty)(r)&&(0,t.isNonEmpty)(i)?n(i)(r):(0,t.isNonEmpty)(r)?r:i}}function es(e){var t=ei(e);return function(n,r){if(void 0===r){var i=es(e);return function(e){return i(e,n)}}return n.filter(function(e){return t(e,r)})}}function em(e){var t=ei(e);return function(n,r){if(void 0===r){var i=em(e);return function(e){return i(e,n)}}return n.filter(function(e){return!t(e,r)})}}t.concatW=ep,t.concat=t.concatW,t.union=ed,t.intersection=es,t.difference=em;var eh=function(e,n){return(0,p.pipe)(e,(0,t.map)(n))},ev=function(e,n){return(0,p.pipe)(e,(0,t.mapWithIndex)(n))},ey=function(e,n){return(0,p.pipe)(e,(0,t.ap)(n))},eg=function(e,n){return(0,p.pipe)(e,(0,t.filter)(n))},e_=function(e,n){return(0,p.pipe)(e,(0,t.filterMap)(n))},eb=function(e,n){return(0,p.pipe)(e,(0,t.partition)(n))},eS=function(e,n){return(0,p.pipe)(e,(0,t.partitionMap)(n))},eT=function(e,n){return(0,p.pipe)(e,(0,t.partitionWithIndex)(n))},eI=function(e,n){return(0,p.pipe)(e,(0,t.partitionMapWithIndex)(n))},eR=function(e,n){return(0,p.pipe)(e,(0,t.alt)(n))},ew=function(e,n,r){return(0,p.pipe)(e,(0,t.reduce)(n,r))},eO=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},ex=function(e,n,r){return(0,p.pipe)(e,(0,t.reduceRight)(n,r))},eC=function(e,n,r){return(0,p.pipe)(e,(0,t.reduceWithIndex)(n,r))},eM=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},eE=function(e,n,r){return(0,p.pipe)(e,(0,t.reduceRightWithIndex)(n,r))},eP=function(e,n){return(0,p.pipe)(e,(0,t.filterMapWithIndex)(n))},ek=function(e,n){return(0,p.pipe)(e,(0,t.filterWithIndex)(n))},eF=function(e,n){return(0,p.pipe)(e,(0,t.extend)(n))},eW=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},eD=function(e){var n=(0,t.traverseWithIndex)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},eN=function(e,n){return(0,p.pipe)(e,(0,t.chainRecDepthFirst)(n))};t._chainRecDepthFirst=eN;var eL=function(e,n){return(0,p.pipe)(e,(0,t.chainRecBreadthFirst)(n))};t._chainRecBreadthFirst=eL,t.of=v.of;var eU=function(){return t.empty};t.zero=eU;var eA=function(e){return function(t){return t.concat(e())}};t.altW=eA,t.alt=t.altW;var ej=function(e){return(0,t.flatMap)(function(n){return(0,p.pipe)(e,(0,t.map)(n))})};t.ap=ej,t.flatMap=(0,p.dual)(2,function(e,n){return(0,p.pipe)(e,(0,t.chainWithIndex)(function(e,t){return n(t,e)}))}),t.flatten=(0,t.flatMap)(p.identity);var eq=function(e){return function(t){return t.map(function(t){return e(t)})}};t.map=eq;var eG=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}};t.mapWithIndex=eG;var eY=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return(0,y.separated)(t,n)};t.separate=eY;var eB=function(e){return function(t){return t.filter(e)}};t.filter=eB;var eK=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);s.isSome(i)&&n.push(i.value)}return n}};t.filterMapWithIndex=eK;var eV=function(e){return(0,t.filterMapWithIndex)(function(t,n){return e(n)})};t.filterMap=eV,t.compact=(0,t.filterMap)(p.identity);var ez=function(e){return(0,t.partitionWithIndex)(function(t,n){return e(n)})};t.partition=ez;var eH=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return(0,y.separated)(n,r)}};t.partitionWithIndex=eH;var e$=function(e){return(0,t.partitionMapWithIndex)(function(t,n){return e(n)})};t.partitionMap=e$;var eX=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return(0,y.separated)(n,r)}};t.partitionMapWithIndex=eX;var eJ=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}};t.filterWithIndex=eJ;var eZ=function(e){return function(t){return t.map(function(n,r){return e(t.slice(r))})}};t.extend=eZ,t.duplicate=(0,t.extend)(p.identity);var eQ=function(e){return function(t){return function(n){return n.reduce(function(n,r,i){return e.concat(n,t(i,r))},e.empty)}}};t.foldMapWithIndex=eQ;var e0=function(e,n){return(0,t.reduceWithIndex)(e,function(e,t,r){return n(t,r)})};t.reduce=e0;var e1=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}};t.foldMap=e1;var e2=function(e,t){return function(n){for(var r=n.length,i=e,o=0;o<r;o++)i=t(o,i,n[o]);return i}};t.reduceWithIndex=e2;var e8=function(e,n){return(0,t.reduceRightWithIndex)(e,function(e,t,r){return n(t,r)})};t.reduceRight=e8;var e7=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}};t.reduceRightWithIndex=e7;var e3=function(e){var n=(0,t.traverseWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}};t.traverse=e3;var e5=function(e){return function(n){return ew(n,e.of((0,t.zero)()),function(n,r){return e.ap(e.map(n,function(e){return function(n){return(0,p.pipe)(e,(0,t.append)(n))}}),r)})}};t.sequence=e5;var e4=function(e){return function(n){return(0,t.reduceWithIndex)(e.of((0,t.zero)()),function(r,i,o){return e.ap(e.map(i,function(e){return function(n){return(0,p.pipe)(e,(0,t.append)(n))}}),n(r,o))})}};t.traverseWithIndex=e4;var e9=function(e){var t=td(e);return function(e){return function(n){return t(n,e)}}};t.wither=e9;var e6=function(e){var t=ts(e);return function(e){return function(n){return t(n,e)}}};t.wilt=e6;var te=function(e,t){for(var n=[],r=e;;){var i=t(r);if(s.isSome(i)){var o=i.value,u=o[0],a=o[1];n.push(u),r=a}else break}return n};t.unfold=te,t.URI="ReadonlyArray";var tt=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}};t.getShow=tt;var tn=function(){return{concat:function(e,n){return(0,t.isEmpty)(e)?n:(0,t.isEmpty)(n)?e:e.concat(n)}}};t.getSemigroup=tn;var tr=function(){return{concat:(0,t.getSemigroup)().concat,empty:t.empty}};t.getMonoid=tr;var ti=function(e){return(0,f.fromEquals)(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})};t.getEq=ti;var to=function(e){return(0,h.fromCompare)(function(t,n){for(var r=t.length,i=n.length,o=Math.min(r,i),u=0;u<o;u++){var a=e.compare(t[u],n[u]);if(0!==a)return a}return m.Ord.compare(r,i)})};t.getOrd=to;var tu=function(e){var t=ed(e);return{concat:function(e,n){return t(n)(e)}}};t.getUnionSemigroup=tu;var ta=function(e){return{concat:(0,t.getUnionSemigroup)(e).concat,empty:t.empty}};t.getUnionMonoid=ta;var tc=function(e){var t=es(e);return{concat:function(e,n){return t(n)(e)}}};t.getIntersectionSemigroup=tc;var tf=function(e){var t=em(e);return{concat:function(e,n){return t(n)(e)}}};t.getDifferenceMagma=tf,t.Functor={URI:t.URI,map:eh},t.flap=(0,d.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:eh,mapWithIndex:ev},t.Apply={URI:t.URI,map:eh,ap:ey},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:eh,ap:ey,of:t.of},t.Chain={URI:t.URI,map:eh,ap:ey,chain:t.flatMap},t.Monad={URI:t.URI,map:eh,ap:ey,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:eh,alt:eR},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,_.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:eh,ap:ey,of:t.of,alt:eR,zero:t.zero},t.Extend={URI:t.URI,map:eh,extend:eF},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:eh,compact:t.compact,separate:t.separate,filter:eg,filterMap:e_,partition:eb,partitionMap:eS},t.FilterableWithIndex={URI:t.URI,map:eh,mapWithIndex:ev,compact:t.compact,separate:t.separate,filter:eg,filterMap:e_,partition:eb,partitionMap:eS,partitionMapWithIndex:eI,partitionWithIndex:eT,filterMapWithIndex:eP,filterWithIndex:ek},t.Foldable={URI:t.URI,reduce:ew,foldMap:eO,reduceRight:ex},t.FoldableWithIndex={URI:t.URI,reduce:ew,foldMap:eO,reduceRight:ex,reduceWithIndex:eC,foldMapWithIndex:eM,reduceRightWithIndex:eE},t.Traversable={URI:t.URI,map:eh,reduce:ew,foldMap:eO,reduceRight:ex,traverse:eW,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:eh,mapWithIndex:ev,reduce:ew,foldMap:eO,reduceRight:ex,reduceWithIndex:eC,foldMapWithIndex:eM,reduceRightWithIndex:eE,traverse:eW,sequence:t.sequence,traverseWithIndex:eD};var tl=function(e){return function(t){for(var n=u([],e(t),!0),r=[];n.length>0;){var i=n.shift();s.isLeft(i)?n.unshift.apply(n,e(i.left)):r.push(i.right)}return r}};t.chainRecDepthFirst=tl,t.ChainRecDepthFirst={URI:t.URI,map:eh,ap:ey,chain:t.flatMap,chainRec:t._chainRecDepthFirst};var tp=function(e){return function(t){var n=e(t),r=[],i=[];function o(t){s.isLeft(t)?e(t.left).forEach(function(e){return r.push(e)}):i.push(t.right)}for(var u=0;u<n.length;u++)o(n[u]);for(;r.length>0;)o(r.shift());return i}};t.chainRecBreadthFirst=tp,t.ChainRecBreadthFirst={URI:t.URI,map:eh,ap:ey,chain:t.flatMap,chainRec:t._chainRecBreadthFirst};var td=(0,g.witherDefault)(t.Traversable,t.Compactable),ts=(0,g.wiltDefault)(t.Traversable,t.Compactable);t.Witherable={URI:t.URI,map:eh,compact:t.compact,separate:t.separate,filter:eg,filterMap:e_,partition:eb,partitionMap:eS,reduce:ew,foldMap:eO,reduceRight:ex,traverse:eW,sequence:t.sequence,wither:td,wilt:ts},t.filterE=(0,g.filterE)(t.Witherable),t.FromEither={URI:t.URI,fromEither:t.fromEither},t.fromEitherK=(0,l.fromEitherK)(t.FromEither),t.unsafeInsertAt=v.unsafeInsertAt;var tm=function(e,n,r){return(0,t.isNonEmpty)(r)?v.unsafeUpdateAt(e,n,r):r};t.unsafeUpdateAt=tm;var th=function(e,t){var n=t.slice();return n.splice(e,1),n};t.unsafeDeleteAt=th;var tv=function(e){return e.slice()};t.toArray=tv;var ty=function(e){return(0,t.isEmpty)(e)?t.empty:e.slice()};t.fromArray=ty,t.empty=v.empty,t.every=function(e){return function(t){return t.every(e)}};var tg=function(e){return function(t){return t.some(e)}};t.some=tg,t.exists=t.some;var t_=function(e){var n=v.intercalate(e);return function(r){return(0,t.match)(function(){return e.empty},n(r))}};t.intercalate=t_,t.Do=(0,t.of)(s.emptyRecord),t.bindTo=(0,d.bindTo)(t.Functor);var tb=(0,d.let)(t.Functor);t.let=tb,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:eh,ap:ey,of:t.of,chain:t.flatMap,filter:eg,filterMap:e_,partition:eb,partitionMap:eS,mapWithIndex:ev,partitionMapWithIndex:eI,partitionWithIndex:eT,filterMapWithIndex:eP,filterWithIndex:ek,alt:eR,zero:t.zero,unfold:t.unfold,reduce:ew,foldMap:eO,reduceRight:ex,traverse:eW,sequence:t.sequence,reduceWithIndex:eC,foldMapWithIndex:eM,reduceRightWithIndex:eE,traverseWithIndex:eD,extend:eF,wither:td,wilt:ts}},84612:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},u=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.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=n(93145),c=n(18222),f=n(8190),l=n(14632),p=n(8762),d=o(n(5309)),s=n(83235),m=o(n(98744));t.empty=d.emptyReadonlyArray,t.isNonEmpty=d.isNonEmpty;var h=function(e,t){return e<0||e>=t.length};t.isOutOfBound=h;var v=function(e){return function(t){return u([e],t,!0)}};t.prependW=v,t.prepend=t.prependW;var y=function(e){return function(t){return u(u([],t,!0),[e],!1)}};t.appendW=y,t.append=t.appendW;var g=function(e,n,r){if((0,t.isNonEmpty)(r)){var i=d.fromReadonlyNonEmptyArray(r);return i.splice(e,0,n),i}return[n]};t.unsafeInsertAt=g;var _=function(e,t,n){if(n[e]===t)return n;var r=d.fromReadonlyNonEmptyArray(n);return r[e]=t,r};t.unsafeUpdateAt=_;var b=function(e){return function(n){if(1===n.length)return n;for(var r=[(0,t.head)(n)],i=(0,t.tail)(n),o=function(t){r.every(function(n){return!e.equals(n,t)})&&r.push(t)},u=0;u<i.length;u++)o(i[u]);return r}};t.uniq=b;var S=function(e){if((0,t.isNonEmpty)(e)){var n=(0,s.getMonoid)();return(0,t.sort)(e.reduce(n.concat,n.empty))}return l.identity};t.sortBy=S;var T=function(e){var n=(0,t.uniq)(e);return function(e){return function(t){return n((0,l.pipe)(t,k(e)))}}};t.union=T;var I=function(e){return function(n){var r=n.length,i=Math.round(e)%r;if((0,t.isOutOfBound)(Math.abs(i),n)||0===i)return n;if(!(i<0))return(0,t.rotate)(i-r)(n);var o=(0,t.splitAt)(-i)(n),u=o[0],a=o[1];return(0,l.pipe)(a,k(u))}};t.rotate=I;var R=function(e){return(0,t.isNonEmpty)(e)?d.some(e):d.none};t.fromReadonlyArray=R;var w=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}};t.makeBy=w;var O=function(e){return(0,t.makeBy)(function(){return e})};t.replicate=O;var x=function(e,n){return e<=n?(0,t.makeBy)(function(t){return e+t})(n-e+1):[e]};t.range=x;var C=function(e){return[(0,t.head)(e),(0,t.tail)(e)]};t.unprepend=C;var M=function(e){return[(0,t.init)(e),(0,t.last)(e)]};t.unappend=M;var E=function(e){return(0,t.fromReadonlyArray)(e.slice())};function P(e){return function(t){return t.concat(e)}}function k(e,t){return t?e.concat(t):function(t){return t.concat(e)}}t.fromArray=E,t.concatW=P,t.concat=k;var F=function(e){return 1===e.length?e:u([(0,t.last)(e)],e.slice(0,-1).reverse(),!0)};function W(e){return function(n){var r=n.length;if(0===r)return t.empty;for(var i=[],o=n[0],u=[o],a=1;a<r;a++){var c=n[a];e.equals(c,o)?u.push(c):(i.push(u),u=[o=c])}return i.push(u),i}}t.reverse=F,t.group=W;var D=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);d.has.call(n,o)?n[o].push(i):n[o]=[i]}return n}};t.groupBy=D;var N=function(e){return function(t){return 1===t.length?t:t.slice().sort(e.compare)}};t.sort=N;var L=function(e,n){return(0,t.modifyAt)(e,function(){return n})};t.updateAt=L;var U=function(e,n){return function(r){return(0,t.isOutOfBound)(e,r)?d.none:d.some((0,t.unsafeUpdateAt)(e,n(r[e]),r))}};t.modifyAt=U;var A=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r};t.zipWith=A,t.zip=function e(n,r){return void 0===r?function(t){return e(t,n)}:(0,t.zipWith)(n,r,function(e,t){return[e,t]})};var j=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]};t.unzip=j;var q=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}};t.prependAll=q;var G=function(e){return function(n){var r=(0,t.tail)(n);return(0,t.isNonEmpty)(r)?(0,l.pipe)(r,(0,t.prependAll)(e),(0,t.prepend)((0,t.head)(n))):n}};t.intersperse=G;var Y=function(e){return function(n){for(var r=d.fromReadonlyNonEmptyArray(e(0,(0,t.head)(n))),i=1;i<n.length;i++)r.push.apply(r,e(i,n[i]));return r}};t.chainWithIndex=Y;var B=function(e){return function(n){for(var r=e(n),i=r[0],o=r[1],u=[i],a=o;(0,t.isNonEmpty)(a);){var c=e(a),f=c[0],l=c[1];u.push(f),a=l}return u}};t.chop=B;var K=function(e){return function(n){var r=Math.max(1,e);return r>=n.length?[n,t.empty]:[(0,l.pipe)(n.slice(1,r),(0,t.prepend)((0,t.head)(n))),n.slice(r)]}};t.splitAt=K;var V=function(e){return(0,t.chop)((0,t.splitAt)(e))};t.chunksOf=V;var z=function(e,n){return(0,l.pipe)(e,(0,t.map)(n))},H=function(e,n){return(0,l.pipe)(e,(0,t.mapWithIndex)(n))},$=function(e,n){return(0,l.pipe)(e,(0,t.ap)(n))},X=function(e,n){return(0,l.pipe)(e,(0,t.extend)(n))},J=function(e,n,r){return(0,l.pipe)(e,(0,t.reduce)(n,r))},Z=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},Q=function(e,n,r){return(0,l.pipe)(e,(0,t.reduceRight)(n,r))},ee=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},et=function(e,n){return(0,l.pipe)(e,(0,t.alt)(n))},en=function(e,n,r){return(0,l.pipe)(e,(0,t.reduceWithIndex)(n,r))},er=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},ei=function(e,n,r){return(0,l.pipe)(e,(0,t.reduceRightWithIndex)(n,r))},eo=function(e){var n=(0,t.traverseWithIndex)(e);return function(e,t){return(0,l.pipe)(e,n(t))}};t.of=d.singleton;var eu=function(e){return function(t){return(0,l.pipe)(t,P(e()))}};t.altW=eu,t.alt=t.altW;var ea=function(e){return(0,t.flatMap)(function(n){return(0,l.pipe)(e,(0,t.map)(n))})};t.ap=ea,t.flatMap=(0,l.dual)(2,function(e,n){return(0,l.pipe)(e,(0,t.chainWithIndex)(function(e,t){return n(t,e)}))});var ec=function(e){return function(n){for(var r=(0,t.tail)(n),i=[e(n)];(0,t.isNonEmpty)(r);)i.push(e(r)),r=(0,t.tail)(r);return i}};t.extend=ec,t.duplicate=(0,t.extend)(l.identity),t.flatten=(0,t.flatMap)(l.identity);var ef=function(e){return(0,t.mapWithIndex)(function(t,n){return e(n)})};t.map=ef;var el=function(e){return function(n){for(var r=[e(0,(0,t.head)(n))],i=1;i<n.length;i++)r.push(e(i,n[i]));return r}};t.mapWithIndex=el;var ep=function(e,n){return(0,t.reduceWithIndex)(e,function(e,t,r){return n(t,r)})};t.reduce=ep;var ed=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r){return e.concat(n,t(r))},t(n[0]))}}};t.foldMap=ed;var es=function(e,n){return(0,t.reduceRightWithIndex)(e,function(e,t,r){return n(t,r)})};t.reduceRight=es;var em=function(e,t){return function(n){return n.reduce(function(e,n,r){return t(r,e,n)},e)}};t.reduceWithIndex=em;var eh=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r,i){return e.concat(n,t(i+1,r))},t(0,n[0]))}}};t.foldMapWithIndex=eh;var ev=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}};t.reduceRightWithIndex=ev;var ey=function(e){var n=(0,t.traverseWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}};t.traverse=ey;var eg=function(e){return(0,t.traverseWithIndex)(e)(l.SK)};t.sequence=eg;var e_=function(e){return function(n){return function(r){for(var i=e.map(n(0,(0,t.head)(r)),t.of),o=1;o<r.length;o++)i=e.ap(e.map(i,function(e){return function(n){return(0,l.pipe)(e,(0,t.append)(n))}}),n(o,r[o]));return i}}};t.traverseWithIndex=e_,t.extract=d.head,t.URI="ReadonlyNonEmptyArray";var eb=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}};t.getShow=eb;var eS=function(){return{concat:k}};t.getSemigroup=eS;var eT=function(e){return(0,f.fromEquals)(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})};t.getEq=eT;var eI=function(e){var n=(0,t.union)(e);return{concat:function(e,t){return n(t)(e)}}};t.getUnionSemigroup=eI,t.Functor={URI:t.URI,map:z},t.flap=(0,p.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:z,mapWithIndex:H},t.Apply={URI:t.URI,map:z,ap:$},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:z,ap:$,of:t.of},t.Chain={URI:t.URI,map:z,ap:$,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:z,ap:$,of:t.of,chain:t.flatMap},t.Foldable={URI:t.URI,reduce:J,foldMap:Z,reduceRight:Q},t.FoldableWithIndex={URI:t.URI,reduce:J,foldMap:Z,reduceRight:Q,reduceWithIndex:en,foldMapWithIndex:er,reduceRightWithIndex:ei},t.Traversable={URI:t.URI,map:z,reduce:J,foldMap:Z,reduceRight:Q,traverse:ee,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:z,mapWithIndex:H,reduce:J,foldMap:Z,reduceRight:Q,traverse:ee,sequence:t.sequence,reduceWithIndex:en,foldMapWithIndex:er,reduceRightWithIndex:ei,traverseWithIndex:eo},t.Alt={URI:t.URI,map:z,alt:et},t.Comonad={URI:t.URI,map:z,extend:X,extract:t.extract},t.Do=(0,t.of)(d.emptyRecord),t.bindTo=(0,p.bindTo)(t.Functor);var eR=(0,p.let)(t.Functor);t.let=eR,t.bind=(0,c.bind)(t.Chain),t.apS=(0,a.apS)(t.Apply),t.head=t.extract,t.tail=d.tail;var ew=function(e){return e[e.length-1]};t.last=ew;var eO=function(e){return e.slice(0,-1)};t.init=eO;var ex=function(e){var t=m.min(e);return function(e){return e.reduce(t.concat)}};t.min=ex;var eC=function(e){var t=m.max(e);return function(e){return e.reduce(t.concat)}};t.max=eC;var eM=function(e){return function(t){return t.reduce(e.concat)}};t.concatAll=eM;var eE=function(e){return function(n){return e((0,t.head)(n),(0,t.tail)(n))}};t.matchLeft=eE;var eP=function(e){return function(n){return e((0,t.init)(n),(0,t.last)(n))}};t.matchRight=eP;var ek=function(e){return function(n){return u([e((0,t.head)(n))],(0,t.tail)(n),!0)}};t.modifyHead=ek;var eF=function(e){return(0,t.modifyHead)(function(){return e})};t.updateHead=eF;var eW=function(e){return function(n){return(0,l.pipe)((0,t.init)(n),(0,t.append)(e((0,t.last)(n))))}};t.modifyLast=eW;var eD=function(e){return(0,t.modifyLast)(function(){return e})};t.updateLast=eD;var eN=function(e){var n=(0,t.concatAll)(e);return function(e){return(0,l.flow)((0,t.intersperse)(e),n)}};t.intercalate=eN,t.chain=t.flatMap,t.groupSort=function(e){var n=(0,t.sort)(e),r=W(e);return function(e){return(0,t.isNonEmpty)(e)?r(n(e)):t.empty}},t.filter=function(e){return(0,t.filterWithIndex)(function(t,n){return e(n)})};var eL=function(e){return function(n){return(0,t.fromReadonlyArray)(n.filter(function(t,n){return e(n,t)}))}};t.filterWithIndex=eL,t.uncons=t.unprepend,t.unsnoc=t.unappend,t.cons=function(e,n){return void 0===n?(0,t.prepend)(e):(0,l.pipe)(n,(0,t.prepend)(e))};var eU=function(e,t){return(0,l.pipe)(e,k([t]))};t.snoc=eU;var eA=function(e,n){return function(r){return e<0||e>r.length?d.none:d.some((0,t.unsafeInsertAt)(e,n,r))}};t.insertAt=eA,t.prependToAll=t.prependAll,t.fold=t.concatAll,t.readonlyNonEmptyArray={URI:t.URI,of:t.of,map:z,mapWithIndex:H,ap:$,chain:t.flatMap,extend:X,extract:t.extract,reduce:J,foldMap:Z,reduceRight:Q,traverse:ee,sequence:t.sequence,reduceWithIndex:en,foldMapWithIndex:er,reduceRightWithIndex:ei,traverseWithIndex:eo,alt:et}},98744:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),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 u=n(14632),a=o(n(5309)),c=o(n(73540)),f=o(n(83235)),l=function(e){return{concat:f.min(e)}};t.min=l;var p=function(e){return{concat:f.max(e)}};t.max=p;var d=function(e){return{concat:function(){return e}}};t.constant=d,t.reverse=c.reverse;var s=function(e){return{concat:function(t,n){var r={};for(var i in e)a.has.call(e,i)&&(r[i]=e[i].concat(t[i],n[i]));return r}}};t.struct=s;var m=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{concat:function(t,n){return e.map(function(e,r){return e.concat(t[r],n[r])})}}};t.tuple=m;var h=function(e){return function(t){return{concat:function(n,r){return t.concat(n,t.concat(e,r))}}}};t.intercalate=h;var v=function(){return{concat:u.identity}};t.first=v;var y=function(){return{concat:function(e,t){return t}}};t.last=y,t.concatAll=c.concatAll,t.semigroupVoid=(0,t.constant)(void 0);var g=function(){return{concat:function(e,t){return Object.assign({},e,t)}}};t.getObjectSemigroup=g,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(e){var n=(0,t.concatAll)(e);return function(e,t){return void 0===t?n(e):n(e)(t)}},t.semigroupAll={concat:function(e,t){return e&&t}},t.semigroupAny={concat:function(e,t){return e||t}},t.getFunctionSemigroup=u.getSemigroup,t.semigroupString={concat:function(e,t){return e+t}},t.semigroupSum={concat:function(e,t){return e+t}},t.semigroupProduct={concat:function(e,t){return e*t}}},4773:function(e,t,n){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=n(14632),i=n(8762),o=function(e,t){return{left:e,right:t}};t.separated=o;var u=function(e,n){return(0,r.pipe)(e,(0,t.map)(n))},a=function(e,n){return(0,r.pipe)(e,(0,t.mapLeft)(n))},c=function(e,n,i){return(0,r.pipe)(e,(0,t.bimap)(n,i))},f=function(e){return function(n){return(0,t.separated)((0,t.left)(n),e((0,t.right)(n)))}};t.map=f;var l=function(e){return function(n){return(0,t.separated)(e((0,t.left)(n)),(0,t.right)(n))}};t.mapLeft=l;var p=function(e,n){return function(r){return(0,t.separated)(e((0,t.left)(r)),n((0,t.right)(r)))}};t.bimap=p,t.URI="Separated",t.Bifunctor={URI:t.URI,mapLeft:a,bimap:c},t.Functor={URI:t.URI,map:u},t.flap=(0,i.flap)(t.Functor);var d=function(e){return e.left};t.left=d;var s=function(e){return e.right};t.right=s},69706:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.filterE=t.witherDefault=t.wiltDefault=void 0;var u=o(n(5309));t.wiltDefault=function(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.separate)}}},t.witherDefault=function(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.compact)}}},t.filterE=function(e){return function(t){var n=e.wither(t);return function(e){return function(r){return n(r,function(n){return t.map(e(n),function(e){return e?u.some(n):u.none})})}}}}},3899:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.guard=void 0,t.guard=function(e,t){return function(n){return n?t.of(void 0):e.zero()}}},14632:function(e,t){var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};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;var r=function(e){return function(){return{meet:function(t,n){return function(r){return e.meet(t(r),n(r))}},join:function(t,n){return function(r){return e.join(t(r),n(r))}},zero:function(){return e.zero},one:function(){return e.one},implies:function(t,n){return function(r){return e.implies(t(r),n(r))}},not:function(t){return function(n){return e.not(t(n))}}}}};t.getBooleanAlgebra=r;var i=function(e){return function(){return{concat:function(t,n){return function(r){return e.concat(t(r),n(r))}}}}};t.getSemigroup=i;var o=function(e){var n=(0,t.getSemigroup)(e);return function(){return{concat:n().concat,empty:function(){return e.empty}}}};t.getMonoid=o;var u=function(e){return{add:function(t,n){return function(r){return e.add(t(r),n(r))}},zero:function(){return e.zero},mul:function(t,n){return function(r){return e.mul(t(r),n(r))}},one:function(){return e.one}}};t.getSemiring=u;var a=function(e){var n=(0,t.getSemiring)(e);return{add:n.add,mul:n.mul,one:n.one,zero:n.zero,sub:function(t,n){return function(r){return e.sub(t(r),n(r))}}}};t.getRing=a;var c=function(e){return function(t){return t(e)}};function f(e){return e}function l(e){return function(){return e}}function p(e,t,n,r,i,o,u,a,c){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return o(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return u(o(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return a(u(o(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return c(a(u(o(i(r(n(t(e.apply(this,arguments)))))))))}}}function d(e){return e+1}function s(e){return e-1}function m(e){throw Error("Called `absurd` function which should be uncallable")}t.apply=c,t.identity=f,t.unsafeCoerce=f,t.constant=l,t.constTrue=l(!0),t.constFalse=l(!1),t.constNull=l(null),t.constUndefined=l(void 0),t.constVoid=t.constUndefined,t.flip=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length>1?e(t[1],t[0]):function(n){return e(n)(t[0])}}},t.flow=p,t.tuple=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e},t.increment=d,t.decrement=s,t.absurd=m,t.tupled=function(e){return function(t){return e.apply(void 0,t)}},t.untupled=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(t)}},t.pipe=function(e,t,n,r,i,o,u,a,c){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return o(i(r(n(t(e)))));case 7:return u(o(i(r(n(t(e))))));case 8:return a(u(o(i(r(n(t(e)))))));case 9:return c(a(u(o(i(r(n(t(e))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}},t.hole=m;var h=function(e,t){return t};t.SK=h,t.not=function(e){return function(t){return!e(t)}};var v=function(){return{concat:function(e,t){return p(e,t)},empty:f}};t.getEndomorphismMonoid=v;var y=function(e,t){var r="number"==typeof e?function(t){return t.length>=e}:e;return function(){var e=Array.from(arguments);return r(arguments)?t.apply(this,e):function(r){return t.apply(void 0,n([r],e,!1))}}};t.dual=y},5309:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.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=n(14632),o=function(e){return"None"===e._tag};t.isNone=o;var u=function(e){return"Some"===e._tag};t.isSome=u,t.none={_tag:"None"};var a=function(e){return{_tag:"Some",value:e}};t.some=a;var c=function(e){return"Left"===e._tag};t.isLeft=c;var f=function(e){return"Right"===e._tag};t.isRight=f;var l=function(e){return{_tag:"Left",left:e}};t.left=l;var p=function(e){return{_tag:"Right",right:e}};t.right=p;var d=function(e){return[e]};t.singleton=d;var s=function(e){return e.length>0};t.isNonEmpty=s;var m=function(e){return e[0]};t.head=m;var h=function(e){return e.slice(1)};t.tail=h,t.emptyReadonlyArray=[],t.emptyRecord={},t.has=Object.prototype.hasOwnProperty;var v=function(e){return r([e[0]],e.slice(1),!0)};t.fromReadonlyNonEmptyArray=v;var y=function(e){return function(n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var u=n.apply(void 0,i);return e.fromEither(null==u?(0,t.left)(r.apply(void 0,i)):(0,t.right)(u))}}};t.liftNullable=y;var g=function(e){return function(n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var u=n.apply(void 0,i);return e.fromEither((0,t.isNone)(u)?(0,t.left)(r.apply(void 0,i)):(0,t.right)(u.value))}}};t.liftOption=g;var _=function(e,n){return(0,i.dual)(3,function(r,i,o){return n.flatMap(r,(0,t.liftNullable)(e)(i,o))})};t.flatMapNullable=_;var b=function(e,n){return(0,i.dual)(3,function(r,i,o){return n.flatMap(r,(0,t.liftOption)(e)(i,o))})};t.flatMapOption=b;var S=function(e,t){return(0,i.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromEither(r(t))})})};t.flatMapEither=S;var T=function(e,t){return(0,i.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromIO(r(t))})})};t.flatMapIO=T;var I=function(e,t){return(0,i.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromTask(r(t))})})};t.flatMapTask=I;var R=function(e,t){return(0,i.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromReader(r(t))})})};t.flatMapReader=R},40457:function(e,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;var n=function(e){return"number"==typeof e};t.isNumber=n,t.Eq={equals:function(e,t){return e===t}},t.Ord={equals:t.Eq.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},t.Bounded={equals:t.Eq.equals,compare:t.Ord.compare,top:1/0,bottom:-1/0},t.Show={show:function(e){return JSON.stringify(e)}},t.MagmaSub={concat:function(e,t){return e-t}},t.SemigroupSum={concat:function(e,t){return e+t}},t.SemigroupProduct={concat:function(e,t){return e*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(e){return 1},div:function(e,t){return e/t},mod:function(e,t){return e%t}}},67794:function(e,t,n){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=n(93145),i=n(18222),o=n(14632);function u(e){return function(t){return function(n){return e.map(n,t)}}}function a(e){return function(t){return function(n){return e.contramap(n,t)}}}function c(e){return function(t){return function(n){return e.mapWithIndex(n,t)}}}function f(e){return function(t){return function(n){return e.ap(n,t)}}}function l(e){return function(t){return function(n){return e.chain(n,t)}}}function p(e){return function(t,n){return function(r){return e.bimap(r,t,n)}}}function d(e){return function(t){return function(n){return e.mapLeft(n,t)}}}function s(e){return function(t){return function(n){return e.extend(n,t)}}}function m(e){return function(t,n){return function(r){return e.reduce(r,t,n)}}}function h(e){return function(t){var n=e.foldMap(t);return function(e){return function(t){return n(t,e)}}}}function v(e){return function(t,n){return function(r){return e.reduceRight(r,t,n)}}}function y(e){return function(t,n){return function(r){return e.reduceWithIndex(r,t,n)}}}function g(e){return function(t){var n=e.foldMapWithIndex(t);return function(e){return function(t){return n(t,e)}}}}function _(e){return function(t,n){return function(r){return e.reduceRightWithIndex(r,t,n)}}}function b(e){return function(t){return function(n){return e.alt(n,t)}}}function S(e){return function(t){return function(n){return e.filter(n,t)}}}function T(e){return function(t){return function(n){return e.filterMap(n,t)}}}function I(e){return function(t){return function(n){return e.partition(n,t)}}}function R(e){return function(t){return function(n){return e.partitionMap(n,t)}}}function w(e){return function(t){return function(n){return e.filterWithIndex(n,t)}}}function O(e){return function(t){return function(n){return e.filterMapWithIndex(n,t)}}}function x(e){return function(t){return function(n){return e.partitionWithIndex(n,t)}}}function C(e){return function(t){return function(n){return e.partitionMapWithIndex(n,t)}}}function M(e){return function(t,n){return function(r){return e.promap(r,t,n)}}}function E(e){return function(t){return function(n){return e.compose(n,t)}}}t.map=u,t.contramap=a,t.mapWithIndex=c,t.ap=f,t.chain=l,t.bimap=p,t.mapLeft=d,t.extend=s,t.reduce=m,t.foldMap=h,t.reduceRight=v,t.reduceWithIndex=y,t.foldMapWithIndex=g,t.reduceRightWithIndex=_,t.alt=b,t.filter=S,t.filterMap=T,t.partition=I,t.partitionMap=R,t.filterWithIndex=w,t.filterMapWithIndex=O,t.partitionWithIndex=x,t.partitionMapWithIndex=C,t.promap=M,t.compose=E,t.pipeable=function(e){var t,n,P,k,F,W,D,N,L,U,A,j,q,G,Y,B,K={};if("function"==typeof e.map&&(K.map=u(e)),"function"==typeof e.contramap&&(K.contramap=a(e)),"function"==typeof e.mapWithIndex&&(K.mapWithIndex=c(e)),"function"==typeof e.ap&&(K.ap=f(e),K.apFirst=(0,r.apFirst)(e),K.apSecond=(0,r.apSecond)(e)),"function"==typeof e.chain&&(K.chain=l(e),K.chainFirst=(0,i.chainFirst)(e),K.flatten=K.chain(o.identity)),"function"==typeof e.bimap&&(K.bimap=p(e),K.mapLeft=d(e)),"function"==typeof e.extend&&(K.extend=s(e),K.duplicate=K.extend(o.identity)),"function"==typeof e.reduce&&(K.reduce=m(e),K.foldMap=h(e),K.reduceRight=v(e)),"function"==typeof e.reduceWithIndex&&(K.reduceWithIndex=y(e),K.foldMapWithIndex=g(e),K.reduceRightWithIndex=_(e)),"function"==typeof e.alt&&(K.alt=b(e)),"function"==typeof e.compact&&(K.compact=e.compact,K.separate=e.separate),"function"==typeof e.filter&&(K.filter=S(e),K.filterMap=T(e),K.partition=I(e),K.partitionMap=R(e)),"function"==typeof e.filterWithIndex&&(K.filterWithIndex=w(e),K.filterMapWithIndex=O(e),K.partitionWithIndex=x(e),K.partitionMapWithIndex=C(e)),"function"==typeof e.promap&&(K.promap=M(e)),"function"==typeof e.compose&&(K.compose=E(e)),"function"==typeof e.throwError){var V=function(t){return function(n){return"None"===n._tag?e.throwError(t()):e.of(n.value)}},z=function(t){return"Left"===t._tag?e.throwError(t.left):e.of(t.right)},H=function(t,n){return function(r){return t(r)?e.of(r):e.throwError(n(r))}},$=function(t,n){return function(r){return e.chain(r,function(r){return t(r)?e.of(r):e.throwError(n(r))})}};K.fromOption=V,K.fromEither=z,K.fromPredicate=H,K.filterOrElse=$}return K},t.pipe=o.pipe},23284:function(e,t,n){n.r(t),n.d(t,{BigIntFromString:function(){return tT},BooleanFromNumber:function(){return tR},BooleanFromString:function(){return tu},DateFromISOString:function(){return e4},DateFromNumber:function(){return te},DateFromUnixTime:function(){return td},IntFromString:function(){return tm},Json:function(){return ty},JsonArray:function(){return th},JsonFromString:function(){return tg},JsonRecord:function(){return tv},NonEmptyString:function(){return u},NumberFromString:function(){return ts},UUID:function(){return ti},clone:function(){return e6},date:function(){return y},either:function(){return tS},fromNewtype:function(){return e2},fromNullable:function(){return to},fromRefinement:function(){return v},getLenses:function(){return tl},mapFromEntries:function(){return tx},mapOutput:function(){return i.mapOutput},nonEmptyArray:function(){return d},option:function(){return e3},optionFromNullable:function(){return e5},readonlyMapFromEntries:function(){return tC},readonlyNonEmptyArray:function(){return e9},readonlySetFromArray:function(){return h},regexp:function(){return tp},setFromArray:function(){return m},withEncode:function(){return tI},withFallback:function(){return tn},withMessage:function(){return ta},withValidate:function(){return tt}});var r={};n.r(r),n.d(r,{Category:function(){return eD},Invariant:function(){return eF},Semigroupoid:function(){return eW},URI:function(){return ek},asOptional:function(){return eo},asTraversal:function(){return eu},atKey:function(){return eI},component:function(){return e_},compose:function(){return ea},composeIso:function(){return ef},composeLens:function(){return ec},composeOptional:function(){return ep},composePrism:function(){return el},composeTraversal:function(){return ed},filter:function(){return ev},findFirst:function(){return eC},findFirstNonEmpty:function(){return eM},fromNullable:function(){return eh},id:function(){return ei},imap:function(){return eE},index:function(){return eb},indexNonEmpty:function(){return eS},key:function(){return eT},left:function(){return eO},lens:function(){return er},modify:function(){return es},modifyF:function(){return em},prop:function(){return ey},props:function(){return eg},right:function(){return ew},some:function(){return eR},traverse:function(){return ex}});var i=n(47361),o=n(87830),u=o.brand(o.string,function(e){return e.length>0},"NonEmptyString"),a=n(43586),c=n(1358),f=n(18896),l=n(81878),p=n(20492);function d(e,t){void 0===t&&(t="NonEmptyArray<"+e.name+">");var n=o.array(e);return new o.Type(t,function(e){return n.is(e)&&(0,c.isNonEmpty)(e)},function(e,t){return(0,f.pipe)(n.validate(e,t),(0,l.chain)(function(n){var r=(0,a.fromArray)(n);return(0,p.isNone)(r)?o.failure(e,t):o.success(r.value)}))},(0,a.map)(e.encode))}var s=n(1214);function m(e,t,n){void 0===n&&(n="Set<"+e.name+">");var r=o.array(e),i=(0,s.toArray)(t),u=(0,s.fromArray)(t);return new o.Type(n,function(t){return t instanceof Set&&(0,s.every)(e.is)(t)},function(e,t){return(0,f.pipe)(r.validate(e,t),(0,l.chain)(function(n){var r=u(n);return r.size!==n.length?o.failure(e,t):o.success(r)}))},function(e){return r.encode(i(e))})}function h(e,t,n){return void 0===n&&(n="ReadonlySet<"+e.name+">"),m(e,t,n)}function v(e,t){return new o.Type(e,t,function(e,n){return t(e)?o.success(e):o.failure(e,n)},o.identity)}var y=v("Date",function(e){return e instanceof Date}),g=n(42275),_=n(90817),b=n(96576),S=n(31583),T=n(97054),I=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},R=function(e,t){return{get:e,reverseGet:t}},w=function(e){return M(e.get,(0,g.flow)(e.reverseGet,g.constant))},O=function(e){return j((0,g.flow)(e.get,p.some),e.reverseGet)},x=function(e){return V((0,g.flow)(e.get,p.some),(0,g.flow)(e.reverseGet,g.constant))},C=function(e){return Z(function(t){return function(n){return function(r){return t.map(n(e.get(r)),function(t){return e.reverseGet(t)})}}})},M=function(e,t){return{get:e,set:t}},E=function(e){return V((0,g.flow)(e.get,p.some),e.set)},P=function(e){return Z(function(t){return function(n){return function(r){return t.map(n(e.get(r)),function(t){return e.set(t)(r)})}}})},k=function(e){return function(t){return M(function(n){return e.get(t.get(n))},function(n){return function(r){return t.set(e.set(n)(t.get(r)))(r)}})}},F=function(e){return function(t){return j((0,g.flow)(t.getOption,p.chain(e.getOption)),(0,g.flow)(e.reverseGet,t.reverseGet))}},W=function(e){return function(t){return X(q(e))(E(t))}},D=function(){return M(g.identity,g.constant)},N=function(e){return function(t){return M(function(n){return t.get(n)[e]},function(n){return function(r){var i,o=t.get(r);return n===o[e]?r:t.set(Object.assign({},o,((i={})[e]=n,i)))(r)}})}},L=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return M(function(n){for(var r=t.get(n),i={},o=0;o<e.length;o++){var u=e[o];i[u]=r[u]}return i},function(n){return function(r){for(var i=t.get(r),o=0;o<e.length;o++){var u=e[o];if(n[u]!==i[u])return t.set(Object.assign({},i,n))(r)}return r}})}},U=function(e){return function(t){return M(function(n){return t.get(n)[e]},function(n){return function(r){var i=t.get(r);if(n===i[e])return r;var o=i.slice();return o[e]=n,t.set(o)(r)}})}},A=function(e){return function(t){return(0,f.pipe)(t,k(en(function(e){return M(function(t){return T.lookup(e,t)},p.fold(function(){return T.deleteAt(e)},function(t){return T.insertAt(e,t)}))}).at(e)))}},j=function(e,t){return{getOption:e,reverseGet:t}},q=function(e){return V(e.getOption,function(t){return Y(t)(e)})},G=function(e){return Z(function(t){return function(n){return function(r){return(0,f.pipe)(e.getOption(r),p.fold(function(){return t.of(r)},function(i){return t.map(n(i),function(t){return Y(t)(e)(r)})}))}}})},Y=function(e){var t;return t=function(){return e},function(e){var n,r,i=(n=e,function(e){return(0,f.pipe)(n.getOption(e),p.map(function(r){var i=t(r);return i===r?e:n.reverseGet(i)}))});return function(e){return(0,f.pipe)(i(e),p.getOrElse(function(){return e}))}}},B=function(e){return j(p.fromPredicate(e),g.identity)},K=function(){return j(g.identity,p.some)},V=function(e,t){return{getOption:e,set:t}},z=function(e){return Z(function(t){return function(n){return function(r){return(0,f.pipe)(e.getOption(r),p.fold(function(){return t.of(r)},function(i){return t.map(n(i),function(t){return e.set(t)(r)})}))}}})},H=function(e){return function(t){return function(n){return(0,f.pipe)(t.getOption(n),p.map(function(r){var i=e(r);return i===r?n:t.set(i)(n)}))}}},$=function(e){return function(t){var n=H(e)(t);return function(e){return(0,f.pipe)(n(e),p.getOrElse(function(){return e}))}}},X=function(e){return function(t){return V((0,g.flow)(t.getOption,p.chain(e.getOption)),function(n){return $(e.set(n))(t)})}},J=function(e,t,n){if(n[e]===t)return n;var r=I([n[0]],n.slice(1),!0);return r[e]=t,r},Z=function(e){return{modifyF:e}};function Q(e){return function(t){return Z(function(n){return function(r){return t.modifyF(n)(e.modifyF(n)(r))}})}}var ee={URI:"Identity",map:function(e,t){return t(e)},of:g.identity,ap:function(e,t){return e(t)}},et=function(e){return{index:e}},en=function(e){return{at:e}},er=M,ei=D,eo=E,eu=P,ea=k,ec=ea,ef=(0,g.flow)(w,ea),el=W,ep=function(e){return(0,g.flow)(eo,X(e))},ed=function(e){return(0,g.flow)(eu,Q(e))},es=function(e){return function(t){return function(n){var r=t.get(n),i=e(r);return r===i?n:t.set(i)(n)}}};function em(e){return function(t){return function(n){return function(r){return(0,f.pipe)(n.get(r),t,function(t){return e.map(t,function(e){return n.set(e)(r)})})}}}}var eh=function(e){return el(j(p.fromNullable,g.identity))(e)};function ev(e){return el(B(e))}var ey=N,eg=L,e_=U,eb=function(e){var t;return(0,g.flow)(eo,function(t){return(0,f.pipe)(t,X(et(function(e){return V(function(t){return S.lookup(e,t)},function(t){return function(n){return(0,f.pipe)(S.lookup(e,n),p.fold(function(){return n},function(){return S.unsafeUpdateAt(e,t,n)}))}})}).index(e)))})},eS=function(e){var t;return(0,g.flow)(eo,function(t){return(0,f.pipe)(t,X(et(function(e){return V(function(t){return S.lookup(e,t)},function(t){return function(n){return(0,f.pipe)(S.lookup(e,n),p.fold(function(){return n},function(){return J(e,t,n)}))}})}).index(e)))})},eT=function(e){var t;return(0,g.flow)(eo,function(t){return(0,f.pipe)(t,X(et(function(e){return V(function(t){return T.lookup(e,t)},function(t){return function(n){return n[e]===t||p.isNone(T.lookup(e,n))?n:T.insertAt(e,t)(n)}})}).index(e)))})},eI=A,eR=el(K()),ew=el(j(p.fromEither,l.right)),eO=el(j(function(e){return l.isLeft(e)?p.some(e.left):p.none},l.left));function ex(e){var t,n;return(0,g.flow)(eu,Q(Z(function(t){var n,r="Identity"===t.URI?e.map:e.traverse(t);return function(e){return function(t){return r(t,e)}}})))}function eC(e){var t;return ep(V(S.findFirst(e),function(t){return function(n){return(0,f.pipe)(S.findIndex(e)(n),p.fold(function(){return n},function(e){return S.unsafeUpdateAt(e,t,n)}))}}))}function eM(e){var t;return ep(V(S.findFirst(e),function(t){return function(n){return(0,f.pipe)(S.findIndex(e)(n),p.fold(function(){return n},function(e){return J(e,t,n)}))}}))}var eE=function(e,t){return function(n){return eP(n,e,t)}},eP=function(e,t,n){return er((0,g.flow)(e.get,t),(0,g.flow)(n,e.set))},ek="monocle-ts/Lens",eF={URI:ek,imap:eP},eW={URI:ek,compose:function(e,t){return ea(e)(t)}},eD={URI:ek,compose:eW.compose,id:ei},eN=function(e){return function(t){return t.modifyF(ee)(e)}},eL=function(e){return new eB(e.get,e.reverseGet)},eU=function(e){return new eK(e.get,e.set)},eA=function(e){return new eV(e.getOption,e.reverseGet)},ej=function(e){return new eH(e.getOption,e.set)},eq=function(e){return new e$(e.modifyF)},eG=function(e){return new eJ(function(t){return ej(e.index(t))})},eY=function(e,t,n){var r;return n===e[t]?e:Object.assign({},e,((r={})[t]=n,r))},eB=function(){function e(e,t){this.get=e,this.reverseGet=t,this._tag="Iso",this.unwrap=this.get,this.to=this.get,this.wrap=this.reverseGet,this.from=this.reverseGet}return e.prototype.reverse=function(){var e;return eL(R(this.reverseGet,this.get))},e.prototype.modify=function(e){var t,n;return n=this,function(t){return n.reverseGet(e(n.get(t)))}},e.prototype.asLens=function(){return eU(w(this))},e.prototype.asPrism=function(){return eA(O(this))},e.prototype.asOptional=function(){return ej(x(this))},e.prototype.asTraversal=function(){return eq(C(this))},e.prototype.asFold=function(){var e=this;return new eQ(function(){return function(t){return function(n){return t(e.get(n))}}})},e.prototype.asGetter=function(){var e=this;return new eZ(function(t){return e.get(t)})},e.prototype.asSetter=function(){var e=this;return new e0(function(t){return e.modify(t)})},e.prototype.compose=function(e){var t;return eL((t=e,function(e){return R((0,g.flow)(e.get,t.get),(0,g.flow)(t.reverseGet,e.reverseGet))})(this))},e.prototype.composeIso=function(e){return this.compose(e)},e.prototype.composeLens=function(e){return eU((0,f.pipe)(this,w,ea(e)))},e.prototype.composePrism=function(e){return eA((0,f.pipe)(this,O,F(e)))},e.prototype.composeOptional=function(e){return ej((0,f.pipe)(this,x,X(e)))},e.prototype.composeTraversal=function(e){return eq((0,f.pipe)(this,C,Q(e)))},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeGetter=function(e){return this.asGetter().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e}(),eK=function(){function e(e,t){this.get=e,this.set=t,this._tag="Lens"}return e.fromPath=function(){var t=e.fromProp();return function(e){var n=t(e[0]);return e.slice(1).reduce(function(e,n){return e.compose(t(n))},n)}},e.fromProp=function(){return function(e){return eU((0,f.pipe)(ei(),ey(e)))}},e.fromProps=function(){return function(e){return eU((0,f.pipe)(ei(),eg.apply(r,e)))}},e.fromNullableProp=function(){return function(t,n){return new e(function(e){var r=(0,p.fromNullable)(e[t]);return(0,p.isNone)(r)?n:r.value},function(e){return function(n){return eY(n,t,e)}})}},e.prototype.modify=function(e){return es(e)(this)},e.prototype.asOptional=function(){return ej(eo(this))},e.prototype.asTraversal=function(){return eq(eu(this))},e.prototype.asSetter=function(){var e=this;return new e0(function(t){return e.modify(t)})},e.prototype.asGetter=function(){var e=this;return new eZ(function(t){return e.get(t)})},e.prototype.asFold=function(){var e=this;return new eQ(function(){return function(t){return function(n){return t(e.get(n))}}})},e.prototype.compose=function(e){return eU(ea(e)(this))},e.prototype.composeLens=function(e){return this.compose(e)},e.prototype.composeGetter=function(e){return this.asGetter().compose(e)},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeOptional=function(e){return ej((0,f.pipe)(this,eo,X(e)))},e.prototype.composeTraversal=function(e){return eq((0,f.pipe)(this,eu,Q(e)))},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeIso=function(e){return eU((0,f.pipe)(this,ea((0,f.pipe)(e,w))))},e.prototype.composePrism=function(e){return ej(el(e)(this))},e}(),eV=function(){function e(e,t){this.getOption=e,this.reverseGet=t,this._tag="Prism"}return e.fromPredicate=function(e){return eA(B(e))},e.some=function(){return ez},e.prototype.modify=function(e){var t=this;return function(n){var r=t.modifyOption(e)(n);return(0,p.isNone)(r)?n:r.value}},e.prototype.modifyOption=function(e){var t=this;return function(n){return p.option.map(t.getOption(n),function(r){var i=e(r);return i===r?n:t.reverseGet(i)})}},e.prototype.set=function(e){return this.modify(function(){return e})},e.prototype.asOptional=function(){return ej(q(this))},e.prototype.asTraversal=function(){return eq(G(this))},e.prototype.asSetter=function(){var e=this;return new e0(function(t){return e.modify(t)})},e.prototype.asFold=function(){var e=this;return new eQ(function(t){return function(n){return function(r){var i=e.getOption(r);return(0,p.isNone)(i)?t.empty:n(i.value)}}})},e.prototype.compose=function(e){return eA(F(e)(this))},e.prototype.composePrism=function(e){return this.compose(e)},e.prototype.composeOptional=function(e){return ej((0,f.pipe)(this,q,X(e)))},e.prototype.composeTraversal=function(e){return eq((0,f.pipe)(this,G,Q(e)))},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeIso=function(e){return eA((0,f.pipe)(this,F((0,f.pipe)(e,O))))},e.prototype.composeLens=function(e){var t;return ej((t=e,function(e){return X(E(t))(q(e))})(this))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),ez=new eV(g.identity,p.some),eH=function(){function e(e,t){this.getOption=e,this.set=t,this._tag="Optional"}return e.fromPath=function(){var t=e.fromNullableProp();return function(e){var n=t(e[0]);return e.slice(1).reduce(function(e,n){return e.compose(t(n))},n)}},e.fromNullableProp=function(){return function(t){return new e(function(e){return(0,p.fromNullable)(e[t])},function(e){return function(n){return null==n[t]?n:eY(n,t,e)}})}},e.fromOptionProp=function(){var e=eK.fromProp();return function(t){return e(t).composePrism(ez)}},e.prototype.modify=function(e){return $(e)(this)},e.prototype.modifyOption=function(e){return H(e)(this)},e.prototype.asTraversal=function(){return eq(z(this))},e.prototype.asFold=function(){var e=this;return new eQ(function(t){return function(n){return function(r){var i=e.getOption(r);return(0,p.isNone)(i)?t.empty:n(i.value)}}})},e.prototype.asSetter=function(){var e=this;return new e0(function(t){return e.modify(t)})},e.prototype.compose=function(e){return ej(X(e)(this))},e.prototype.composeOptional=function(e){return this.compose(e)},e.prototype.composeTraversal=function(e){return eq((0,f.pipe)(this,z,Q(e)))},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeLens=function(e){return ej((0,f.pipe)(this,X((0,f.pipe)(e,eo))))},e.prototype.composePrism=function(e){return ej((0,f.pipe)(this,X((0,f.pipe)(e,q))))},e.prototype.composeIso=function(e){return ej((0,f.pipe)(this,X((0,f.pipe)(e,x))))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),e$=function(){function e(e){this.modifyF=e,this._tag="Traversal"}return e.prototype.modify=function(e){return eN(e)(this)},e.prototype.set=function(e){var t;return eN(function(){return e})(this)},e.prototype.filter=function(e){var t;return eq(Q(G(B(e)))(this))},e.prototype.asFold=function(){var e=this;return new eQ(function(t){return function(n){return e.modifyF((0,_.getApplicative)(t))(function(e){return(0,_.make)(n(e))})}})},e.prototype.asSetter=function(){var e=this;return new e0(function(t){return e.modify(t)})},e.prototype.compose=function(e){return eq(Q(e)(this))},e.prototype.composeTraversal=function(e){return this.compose(e)},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeOptional=function(e){return this.compose(e.asTraversal())},e.prototype.composeLens=function(e){return eq((0,f.pipe)(this,Q((0,f.pipe)(e,eu))))},e.prototype.composePrism=function(e){return eq((0,f.pipe)(this,Q((0,f.pipe)(e,G))))},e.prototype.composeIso=function(e){return eq((0,f.pipe)(this,Q((0,f.pipe)(e,C))))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),eX=function(){function e(e){this.at=e,this._tag="At"}return e.prototype.fromIso=function(e){var t,n,r;return r=this,n=en(function(t){return(0,f.pipe)(e,w,k(r.at(t)))}),new eX(function(e){return eU(n.at(e))})},e}(),eJ=function(){function e(e){this.index=e,this._tag="Index"}return e.fromAt=function(e){var t;return eG(et(function(t){return W(K())(e.at(t))}))},e.prototype.fromIso=function(e){var t,n;return eG((n=this,et(function(t){return(0,f.pipe)(e,x,X(n.index(t)))})))},e}(),eZ=function(){function e(e){this.get=e,this._tag="Getter"}return e.prototype.asFold=function(){var e=this;return new eQ(function(){return function(t){return function(n){return t(e.get(n))}}})},e.prototype.compose=function(t){var n=this;return new e(function(e){return t.get(n.get(e))})},e.prototype.composeGetter=function(e){return this.compose(e)},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeLens=function(e){return this.compose(e.asGetter())},e.prototype.composeIso=function(e){return this.compose(e.asGetter())},e.prototype.composeTraversal=function(e){return this.asFold().compose(e.asFold())},e.prototype.composeOptional=function(e){return this.asFold().compose(e.asFold())},e.prototype.composePrism=function(e){return this.asFold().compose(e.asFold())},e}(),eQ=function(){function e(e){this.foldMap=e,this._tag="Fold",this.getAll=e(c.getMonoid())(c.of),this.exist=e(b.monoidAny),this.all=e(b.monoidAll),this.foldMapFirst=e((0,p.getFirstMonoid)())}return e.prototype.compose=function(t){var n=this;return new e(function(e){return function(r){return n.foldMap(e)(t.foldMap(e)(r))}})},e.prototype.composeFold=function(e){return this.compose(e)},e.prototype.composeGetter=function(e){return this.compose(e.asFold())},e.prototype.composeTraversal=function(e){return this.compose(e.asFold())},e.prototype.composeOptional=function(e){return this.compose(e.asFold())},e.prototype.composeLens=function(e){return this.compose(e.asFold())},e.prototype.composePrism=function(e){return this.compose(e.asFold())},e.prototype.composeIso=function(e){return this.compose(e.asFold())},e.prototype.find=function(e){return this.foldMapFirst((0,p.fromPredicate)(e))},e.prototype.headOption=function(e){return this.find(function(){return!0})(e)},e}(),e0=function(){function e(e){this.modify=e,this._tag="Setter"}return e.prototype.set=function(e){return this.modify((0,g.constant)(e))},e.prototype.compose=function(t){var n=this;return new e(function(e){return n.modify(t.modify(e))})},e.prototype.composeSetter=function(e){return this.compose(e)},e.prototype.composeTraversal=function(e){return this.compose(e.asSetter())},e.prototype.composeOptional=function(e){return this.compose(e.asSetter())},e.prototype.composeLens=function(e){return this.compose(e.asSetter())},e.prototype.composePrism=function(e){return this.compose(e.asSetter())},e.prototype.composeIso=function(e){return this.compose(e.asSetter())},e}(),e1=new eB(g.unsafeCoerce,g.unsafeCoerce);function e2(e,t){return void 0===t&&(t="fromNewtype("+e.name+")"),new o.Type(t,function(t){return e.is(t)},function(t,n){return(0,f.pipe)(e.validate(t,n),(0,l.map)(e1.wrap))},function(t){return e.encode(e1.unwrap(t))})}var e8=o.strict({_tag:o.literal("None")},"None"),e7=o.literal("Some");function e3(e,t){return void 0===t&&(t="Option<"+e.name+">"),o.union([e8,o.strict({_tag:e7,value:e},"Some<"+e.name+">")],t)}function e5(e,t){return void 0===t&&(t="Option<"+e.name+">"),new o.Type(t,e3(e).is,function(t,n){return null==t?o.success(p.none):(0,f.pipe)(e.validate(t,n),(0,l.map)(p.some))},function(t){return p.toNullable((0,f.pipe)(t,p.map(e.encode)))})}var e4=new o.Type("DateFromISOString",function(e){return e instanceof Date},function(e,t){return(0,f.pipe)(o.string.validate(e,t),(0,l.chain)(function(n){var r=new Date(n);return isNaN(r.getTime())?o.failure(e,t):o.success(r)}))},function(e){return e.toISOString()});function e9(e,t){return void 0===t&&(t="ReadonlyNonEmptyArray<"+e.name+">"),d(e,t)}function e6(e){var t=Object.create(Object.getPrototypeOf(e));return Object.assign(t,e),t}var te=new o.Type("DateFromNumber",function(e){return e instanceof Date},function(e,t){return(0,f.pipe)(o.number.validate(e,t),(0,l.chain)(function(n){var r=new Date(n);return isNaN(r.getTime())?o.failure(e,t):o.success(r)}))},function(e){return e.getTime()});function tt(e,t,n){void 0===n&&(n=e.name);var r=e6(e);return r.validate=t,r.decode=function(e){return t(e,o.getDefaultContext(r))},r.name=n,r}function tn(e,t,n){return void 0===n&&(n="withFallback("+e.name+")"),tt(e,function(n,r){return(0,l.orElse)(function(){return o.success(t)})(e.validate(n,r))},n)}var tr=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,ti=o.brand(o.string,function(e){return tr.test(e)},"UUID");function to(e,t,n){return void 0===n&&(n="fromNullable("+e.name+")"),tt(e,function(n,r){return null==n?o.success(t):e.validate(n,r)},n)}var tu=new o.Type("BooleanFromString",o.boolean.is,function(e,t){return(0,f.pipe)(o.string.validate(e,t),(0,l.chain)(function(n){return"true"===n?o.success(!0):"false"===n?o.success(!1):o.failure(e,t)}))},String);function ta(e,t){return tt(e,function(n,r){return(0,l.mapLeft)(function(){return[{value:n,context:r,message:t(n,r),actual:n}]})(e.validate(n,r))})}function tc(e){switch(e._tag){case"InterfaceType":return e.props;case"ExactType":return tc(e.type)}}var tf=eK.fromProp();function tl(e){var t={};for(var n in tc(e))t[n]=tf(n);return t}var tp=v("RegExp",function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}),td=new o.Type("DateFromUnixTime",function(e){return e instanceof Date},function(e,t){return(0,f.pipe)(o.Int.validate(e,t),(0,l.chain)(function(n){var r=new Date(1e3*n);return isNaN(r.getTime())?o.failure(e,t):o.success(r)}))},function(e){return Math.floor(e.getTime()/1e3)}),ts=new o.Type("NumberFromString",o.number.is,function(e,t){return(0,f.pipe)(o.string.validate(e,t),(0,l.chain)(function(n){var r=+n;return isNaN(r)||""===n.trim()?o.failure(e,t):o.success(r)}))},String),tm=new o.Type("IntFromString",o.Int.is,function(e,t){return(0,f.pipe)(ts.validate(e,t),(0,l.chain)(function(n){return o.Int.is(n)?o.success(n):o.failure(e,t)}))},ts.encode),th=o.recursion("JsonArray",function(){return o.readonlyArray(ty)}),tv=o.recursion("JsonRecord",function(){return o.record(o.string,ty)}),ty=o.union([o.boolean,o.number,o.string,o.null,th,tv],"Json"),tg=new o.Type("JsonFromString",ty.is,function(e,t){try{return o.success(JSON.parse(e))}catch(n){return o.failure(e,t)}},function(e){return JSON.stringify(e)}),t_=o.literal("Left"),tb=o.literal("Right");function tS(e,t,n){return void 0===n&&(n="Either<"+e.name+", "+t.name+">"),o.union([o.strict({_tag:t_,left:e},"Left<"+e.name+">"),o.strict({_tag:tb,right:t},"Right<"+e.name+">")],n)}var tT=new o.Type("BigIntFromString",function(e){return"bigint"==typeof e},function(e,t){return(0,f.pipe)(o.string.validate(e,t),(0,l.chain)(function(n){if(!u.is(n.trim()))return o.failure(e,t);try{return o.success(BigInt(n))}catch(r){return o.failure(e,t)}}))},String);function tI(e,t,n){return void 0===n&&(n=e.name),new o.Type(n,e.is,e.validate,t)}var tR=new o.Type("BooleanFromNumber",o.boolean.is,function(e,t){return(0,f.pipe)(o.number.validate(e,t),(0,l.map)(function(e){return 0!==e}))},Number),tw=n(55116),tO=n(3291);function tx(e,t,n,r){void 0===r&&(r="Map<"+e.name+", "+n.name+">");var i,u,a=o.array(o.tuple([e,n])),f=(0,tw.toArray)(t),p=(0,tw.fromFoldable)(t,(0,tO.getLastSemigroup)(),c.Foldable),d=(i=e.is,u=n.is,function(e){for(var t,n=e.entries();!(t=n.next()).done;)if(!1===i(t.value[0])||!1===u(t.value[1]))return!1;return!0});return new o.Type(r,function(e){return e instanceof Map&&d(e)},function(e,t){return(0,g.pipe)(a.validate(e,t),(0,l.chain)(function(n){var r=p(n);return r.size!==n.length?o.failure(e,t):o.success(r)}))},function(e){return a.encode(f(e))})}function tC(e,t,n,r){return void 0===r&&(r="ReadonlyMap<"+e.name+", "+n.name+">"),tx(e,t,n,r)}},47361:function(e,t,n){n.r(t),n.d(t,{mapOutput:function(){return i}});var r=n(87830);function i(e,t,n){return void 0===n&&(n=e.name),new r.Type(n,e.is,e.validate,function(n){return t(e.encode(n))})}},11621:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.IntFromString=void 0;var u=o(n(87830)),a=n(59054),c=n(67794),f=n(87412);t.IntFromString=new u.Type("IntFromString",u.Int.is,function(e,t){return c.pipe(a.NumberFromString.validate(e,t),f.chain(function(n){return u.Int.is(n)?u.success(n):u.failure(e,t)}))},a.NumberFromString.encode)},59054:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NumberFromString=void 0;var u=o(n(87830)),a=n(67794),c=n(87412);t.NumberFromString=new u.Type("NumberFromString",u.number.is,function(e,t){return a.pipe(u.string.validate(e,t),c.chain(function(n){var r=+n;return isNaN(r)||""===n.trim()?u.failure(e,t):u.success(r)}))},String)},62886:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function(e){var t=Object.create(Object.getPrototypeOf(e));return Object.assign(t,e),t}},2932:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.mapOutput=void 0;var u=o(n(87830));t.mapOutput=function(e,t,n){return void 0===n&&(n=e.name),new u.Type(n,e.is,e.validate,function(n){return t(e.encode(n))})}},69624:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withFallback=void 0;var u=o(n(87830)),a=n(40308),c=n(87412);t.withFallback=function(e,t,n){return void 0===n&&(n="withFallback("+e.name+")"),a.withValidate(e,function(n,r){return c.orElse(function(){return u.success(t)})(e.validate(n,r))},n)}},40308:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withValidate=void 0;var u=o(n(87830)),a=n(62886);t.withValidate=function(e,t,n){void 0===n&&(n=e.name);var r=a.clone(e);return r.validate=t,r.decode=function(e){return t(e,u.getDefaultContext(r))},r.name=n,r}},87830:function(e,t,n){n.r(t),n.d(t,{AnyArrayType:function(){return Z},AnyDictionaryType:function(){return ee},AnyType:function(){return eU},Array:function(){return Q},ArrayType:function(){return es},BigIntType:function(){return H},BooleanType:function(){return X},Dictionary:function(){return eV},DictionaryType:function(){return e_},ExactType:function(){return ek},Function:function(){return eD},FunctionType:function(){return eW},Int:function(){return el},Integer:function(){return eq},InterfaceType:function(){return eh},IntersectionType:function(){return eI},KeyofType:function(){return ei},LiteralType:function(){return en},NeverType:function(){return eN},NullType:function(){return N},NumberType:function(){return V},ObjectType:function(){return ez},PartialType:function(){return ey},ReadonlyArrayType:function(){return eM},ReadonlyType:function(){return ex},RecursiveType:function(){return ep},RefinementType:function(){return eu},StrictType:function(){return eX},StringType:function(){return B},TaggedUnionType:function(){return eG},TupleType:function(){return ew},Type:function(){return p},UndefinedType:function(){return U},UnionType:function(){return eS},UnknownArray:function(){return Q},UnknownRecord:function(){return et},UnknownType:function(){return G},VoidType:function(){return j},alias:function(){return eZ},any:function(){return eA},appendContext:function(){return h},array:function(){return em},bigint:function(){return $},boolean:function(){return J},brand:function(){return ea},clean:function(){return eJ},dictionary:function(){return e$},emptyTags:function(){return x},exact:function(){return eF},failure:function(){return f},failures:function(){return c},getContextEntry:function(){return m},getDefaultContext:function(){return eK},getDomainKeys:function(){return T},getFunctionName:function(){return s},getIndex:function(){return D},getTags:function(){return W},getValidationError:function(){return eB},identity:function(){return d},interface:function(){return ev},intersection:function(){return eR},keyof:function(){return eo},literal:function(){return er},mergeAll:function(){return R},never:function(){return eL},null:function(){return L},nullType:function(){return L},number:function(){return z},object:function(){return eH},partial:function(){return eg},readonly:function(){return eC},readonlyArray:function(){return eE},record:function(){return eb},recursion:function(){return ed},refinement:function(){return ej},strict:function(){return eP},string:function(){return K},success:function(){return l},taggedUnion:function(){return eY},tuple:function(){return eO},type:function(){return ev},undefined:function(){return A},union:function(){return eT},unknown:function(){return Y},void:function(){return q},voidType:function(){return q}});var r,i=n(81878),o=(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},c=i.left,f=function(e,t,n){return c([{value:e,context:t,message:n}])},l=i.right,p=function(){function e(e,t,n,r){this.name=e,this.is=t,this.validate=n,this.encode=r,this.decode=this.decode.bind(this)}return e.prototype.pipe=function(t,n){var r=this;return void 0===n&&(n="pipe(".concat(this.name,", ").concat(t.name,")")),new e(n,t.is,function(e,n){var o=r.validate(e,n);return(0,i.isLeft)(o)?o:t.validate(o.right,n)},this.encode===d&&t.encode===d?d:function(e){return r.encode(t.encode(e))})},e.prototype.asDecoder=function(){return this},e.prototype.asEncoder=function(){return this},e.prototype.decode=function(e){return this.validate(e,[{key:"",type:this,actual:e}])},e}(),d=function(e){return e};function s(e){return e.displayName||e.name||"<function".concat(e.length,">")}function m(e,t){return{key:e,type:t}}function h(e,t,n,r){for(var i=e.length,o=Array(i+1),u=0;u<i;u++)o[u]=e[u];return o[i]={key:t,type:n,actual:r},o}function v(e,t){for(var n=t.length,r=0;r<n;r++)e.push(t[r])}var y=Object.prototype.hasOwnProperty;function g(e){return Object.keys(e).map(function(t){return"".concat(t,": ").concat(e[t].name)}).join(", ")}function _(e){for(var t=0;t<e.length;t++)if(e[t].encode!==d)return!1;return!0}function b(e){return"{ ".concat(g(e)," }")}function S(e){return"Partial<".concat(e,">")}function T(e){if(E(e)){var t,n,r=e.value;if(K.is(r))return(t={})[r]=null,t}else{if(n=e,"KeyofType"===n._tag)return e.keys;else if(k(e)){var i=e.types.map(function(e){return T(e)});return i.some(A.is)?void 0:Object.assign.apply(Object,a([{}],i,!1))}}}function I(e){return"("+e.map(function(e){return e.name}).join(" | ")+")"}function R(e,t){for(var n=!0,r=!0,i=!et.is(e),o=0;o<t.length;o++){var u=t[o];u!==e&&(n=!1),et.is(u)&&(r=!1)}if(n)return e;if(r)return t[t.length-1];for(var a={},c=0;c<t.length;c++){var u=t[c];for(var f in u)(!y.call(a,f)||i||u[f]!==e[f])&&(a[f]=u[f])}return a}function w(e,t){for(var n=Object.getOwnPropertyNames(e),r=!1,i={},o=0;o<n.length;o++){var u=n[o];y.call(t,u)?i[u]=e[u]:r=!0}return r?i:e}function O(e){return e.length>0}var x={};function C(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];-1!==t.indexOf(i)&&n.push(i)}return n}function M(e){return"AnyType"===e._tag}function E(e){return"LiteralType"===e._tag}function P(e){return"InterfaceType"===e._tag}function k(e){return"UnionType"===e._tag}var F=[];function W(e){if(-1!==F.indexOf(e))return x;if(P(e)||"StrictType"===(i=e)._tag){var t=x;for(var n in e.props){var r=e.props[n];E(r)&&(t===x&&(t={}),t[n]=[r.value])}return t}if("ExactType"===(o=e)._tag||"RefinementType"===(u=e)._tag)return W(e.type);if("IntersectionType"===(a=e)._tag)return e.types.reduce(function(e,t){return function(e,t){if(e===x)return t;if(t===x)return e;var n=Object.assign({},e);for(var r in t)if(y.call(e,r)){var i=C(e[r],t[r]);if(O(i))n[r]=i;else{n=x;break}}else n[r]=t[r];return n}(e,W(t))},x);if(k(e))return e.types.slice(1).reduce(function(e,t){return function(e,t){if(e===x||t===x)return x;var n=x;for(var r in e)y.call(t,r)&&0===C(e[r],t[r]).length&&(n===x&&(n={}),n[r]=e[r].concat(t[r]));return n}(e,W(t))},W(e.types[0]));if("RecursiveType"===(c=e)._tag){F.push(e);var i,o,u,a,c,f=W(e.type);return F.pop(),f}return x}function D(e){var t=W(e[0]),n=Object.keys(t),r=e.length;keys:for(var i=0;i<n.length;i++){var o=function(n){for(var i=t[n].slice(),o=[t[n]],u=1;u<r;u++){var a=W(e[u])[n];if(void 0===a||a.some(function(e){return -1!==i.indexOf(e)}))return"continue-keys";i.push.apply(i,a),o.push(a)}return{value:[n,o]}}(n[i]);if("object"==typeof o)return o.value;if("continue-keys"===o)continue keys}}var N=function(e){function t(){var t=e.call(this,"null",function(e){return null===e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="NullType",t}return o(t,e),t}(p),L=new N,U=function(e){function t(){var t=e.call(this,"undefined",function(e){return void 0===e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="UndefinedType",t}return o(t,e),t}(p),A=new U,j=function(e){function t(){var t=e.call(this,"void",A.is,A.validate,d)||this;return t._tag="VoidType",t}return o(t,e),t}(p),q=new j,G=function(e){function t(){var t=e.call(this,"unknown",function(e){return!0},l,d)||this;return t._tag="UnknownType",t}return o(t,e),t}(p),Y=new G,B=function(e){function t(){var t=e.call(this,"string",function(e){return"string"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="StringType",t}return o(t,e),t}(p),K=new B,V=function(e){function t(){var t=e.call(this,"number",function(e){return"number"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="NumberType",t}return o(t,e),t}(p),z=new V,H=function(e){function t(){var t=e.call(this,"bigint",function(e){return"bigint"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="BigIntType",t}return o(t,e),t}(p),$=new H,X=function(e){function t(){var t=e.call(this,"boolean",function(e){return"boolean"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="BooleanType",t}return o(t,e),t}(p),J=new X,Z=function(e){function t(){var t=e.call(this,"UnknownArray",Array.isArray,function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="AnyArrayType",t}return o(t,e),t}(p),Q=new Z,ee=function(e){function t(){var t=e.call(this,"UnknownRecord",function(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="AnyDictionaryType",t}return o(t,e),t}(p),et=new ee,en=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.value=o,u._tag="LiteralType",u}return o(t,e),t}(p);function er(e,t){void 0===t&&(t=JSON.stringify(e));var n=function(t){return t===e};return new en(t,n,function(t,r){return n(t)?l(e):f(t,r)},d,e)}var ei=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.keys=o,u._tag="KeyofType",u}return o(t,e),t}(p);function eo(e,t){void 0===t&&(t=Object.keys(e).map(function(e){return JSON.stringify(e)}).join(" | "));var n=function(t){return K.is(t)&&y.call(e,t)};return new ei(t,n,function(e,t){return n(e)?l(e):f(e,t)},d,e)}var eu=function(e){function t(t,n,r,i,o,u){var a=e.call(this,t,n,r,i)||this;return a.type=o,a.predicate=u,a._tag="RefinementType",a}return o(t,e),t}(p);function ea(e,t,n){return ej(e,t,n)}var ec,ef,el=ej(z,ef=function(e){return Number.isInteger(e)},"Int"),ep=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.runDefinition=o,u._tag="RecursiveType",u}return o(t,e),t}(p);function ed(e,t){var n,r=function(){return n||((n=t(i)).name=e),n},i=new ep(e,function(e){return r().is(e)},function(e,t){return r().validate(e,t)},function(e){return r().encode(e)},r);return i}Object.defineProperty(ep.prototype,"type",{get:function(){return this.runDefinition()},enumerable:!0,configurable:!0});var es=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.type=o,u._tag="ArrayType",u}return o(t,e),t}(p);function em(e,t){return void 0===t&&(t="Array<".concat(e.name,">")),new es(t,function(t){return Q.is(t)&&t.every(e.is)},function(t,n){var r=Q.validate(t,n);if((0,i.isLeft)(r))return r;for(var o=r.right,u=o.length,a=o,f=[],p=0;p<u;p++){var d=o[p],s=e.validate(d,h(n,String(p),e,d));if((0,i.isLeft)(s))v(f,s.left);else{var m=s.right;m!==d&&(a===o&&(a=o.slice()),a[p]=m)}}return f.length>0?c(f):l(a)},e.encode===d?d:function(t){return t.map(e.encode)},e)}var eh=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.props=o,u._tag="InterfaceType",u}return o(t,e),t}(p);function ev(e,t){void 0===t&&(t=b(e));var n=Object.keys(e),r=n.map(function(t){return e[t]}),o=n.length;return new eh(t,function(e){if(et.is(e)){for(var t=0;t<o;t++){var i=n[t],u=e[i];if(void 0===u&&!y.call(e,i)||!r[t].is(u))return!1}return!0}return!1},function(e,t){var a=et.validate(e,t);if((0,i.isLeft)(a))return a;for(var f=a.right,p=f,d=[],s=0;s<o;s++){var m=n[s],g=p[m],_=r[s],b=_.validate(g,h(t,m,_,g));if((0,i.isLeft)(b))v(d,b.left);else{var S=b.right;S===g&&(void 0!==S||y.call(p,m))||(p===f&&(p=u({},f)),p[m]=S)}}return d.length>0?c(d):l(p)},_(r)?d:function(e){for(var t=u({},e),i=0;i<o;i++){var a=n[i],c=r[i].encode;c!==d&&(t[a]=c(e[a]))}return t},e)}var ey=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.props=o,u._tag="PartialType",u}return o(t,e),t}(p);function eg(e,t){void 0===t&&(t=S(b(e)));var n=Object.keys(e),r=n.map(function(t){return e[t]}),o=n.length;return new ey(t,function(t){if(et.is(t)){for(var r=0;r<o;r++){var i=n[r],u=t[i];if(void 0!==u&&!e[i].is(u))return!1}return!0}return!1},function(t,r){var a=et.validate(t,r);if((0,i.isLeft)(a))return a;for(var f=a.right,p=f,d=[],s=0;s<o;s++){var m=n[s],y=p[m],g=e[m],_=g.validate(y,h(r,m,g,y));if((0,i.isLeft)(_))void 0!==y&&v(d,_.left);else{var b=_.right;b!==y&&(p===f&&(p=u({},f)),p[m]=b)}}return d.length>0?c(d):l(p)},_(r)?d:function(e){for(var t=u({},e),i=0;i<o;i++){var a=n[i],c=e[a];void 0!==c&&(t[a]=r[i].encode(c))}return t},e)}var e_=function(e){function t(t,n,r,i,o,u){var a=e.call(this,t,n,r,i)||this;return a.domain=o,a.codomain=u,a._tag="DictionaryType",a}return o(t,e),t}(p);function eb(e,t,n){var r,o,u,a,p,s,m,y,g=T(e);return g?(r=Object.keys(g),void 0===(a=n)&&(a="{ [K in ".concat(e.name,"]: ").concat(t.name," }")),p=r.length,new e_(a,function(e){return et.is(e)&&r.every(function(n){return t.is(e[n])})},function(e,n){var o=et.validate(e,n);if((0,i.isLeft)(o))return o;for(var u=o.right,a={},f=[],d=!1,s=0;s<p;s++){var m=r[s],y=u[m],g=t.validate(y,h(n,m,t,y));if((0,i.isLeft)(g))v(f,g.left);else{var _=g.right;d=d||_!==y,a[m]=_}}return f.length>0?c(f):l(d||Object.keys(u).length!==p?a:u)},t.encode===d?d:function(e){for(var n={},i=0;i<p;i++){var o=r[i];n[o]=t.encode(e[o])}return n},e,t)):(s=e,void 0===(y=n)&&(y="{ [K in ".concat(s.name,"]: ").concat(t.name," }")),new e_(y,function(e){return et.is(e)?Object.keys(e).every(function(n){return s.is(n)&&t.is(e[n])}):M(t)&&Array.isArray(e)},function(e,n){if(et.is(e)){for(var r={},o=[],u=Object.keys(e),a=u.length,p=!1,d=0;d<a;d++){var m=u[d],y=e[m],g=s.validate(m,h(n,m,s,m));if((0,i.isLeft)(g))v(o,g.left);else{var _=g.right;p=p||_!==m,m=_;var b=t.validate(y,h(n,m,t,y));if((0,i.isLeft)(b))v(o,b.left);else{var S=b.right;p=p||S!==y,r[m]=S}}}return o.length>0?c(o):l(p?r:e)}return M(t)&&Array.isArray(e)?l(e):f(e,n)},s.encode===d&&t.encode===d?d:function(e){for(var n={},r=Object.keys(e),i=r.length,o=0;o<i;o++){var u=r[o];n[String(s.encode(u))]=t.encode(e[u])}return n},s,t))}var eS=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.types=o,u._tag="UnionType",u}return o(t,e),t}(p);function eT(e,t){void 0===t&&(t=I(e));var n=D(e);if(void 0===n||!(e.length>0))return new eS(t,function(t){return e.some(function(e){return e.is(t)})},function(t,n){for(var r=[],o=0;o<e.length;o++){var u=e[o],a=u.validate(t,h(n,String(o),u,t));if(!(0,i.isLeft)(a))return l(a.right);v(r,a.left)}return c(r)},_(e)?d:function(n){for(var r=0;r<e.length;r++){var i=e[r];if(i.is(n))return i.encode(n)}throw Error("no codec found to encode value in union type ".concat(t))},e);var r=n[0],o=n[1],u=o.length,a=function(e){for(var t=0;t<u;t++)if(-1!==o[t].indexOf(e))return t};return new eG(t,function(t){if(et.is(t)){var n=a(t[r]);return void 0!==n&&e[n].is(t)}return!1},function(t,n){var o=et.validate(t,n);if((0,i.isLeft)(o))return o;var u=o.right,c=a(u[r]);if(void 0===c)return f(t,n);var l=e[c];return l.validate(u,h(n,String(c),l,u))},_(e)?d:function(n){var i=a(n[r]);if(void 0!==i)return e[i].encode(n);throw Error("no codec found to encode value in union codec ".concat(t))},e,r)}var eI=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.types=o,u._tag="IntersectionType",u}return o(t,e),t}(p);function eR(e,t){void 0===t&&(t="(".concat(e.map(function(e){return e.name}).join(" & "),")"));var n=e.length;return new eI(t,function(t){return e.every(function(e){return e.is(t)})},0===e.length?l:function(t,r){for(var o=[],u=[],a=0;a<n;a++){var f=e[a],p=f.validate(t,h(r,String(a),f,t));(0,i.isLeft)(p)?v(u,p.left):o.push(p.right)}return u.length>0?c(u):l(R(t,o))},0===e.length?d:function(t){return R(t,e.map(function(e){return e.encode(t)}))},e)}var ew=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.types=o,u._tag="TupleType",u}return o(t,e),t}(p);function eO(e,t){void 0===t&&(t="[".concat(e.map(function(e){return e.name}).join(", "),"]"));var n=e.length;return new ew(t,function(t){return Q.is(t)&&t.length===n&&e.every(function(e,n){return e.is(t[n])})},function(t,r){var o=Q.validate(t,r);if((0,i.isLeft)(o))return o;for(var u=o.right,a=u.length>n?u.slice(0,n):u,f=[],p=0;p<n;p++){var d=u[p],s=e[p],m=s.validate(d,h(r,String(p),s,d));if((0,i.isLeft)(m))v(f,m.left);else{var y=m.right;y!==d&&(a===u&&(a=u.slice()),a[p]=y)}}return f.length>0?c(f):l(a)},_(e)?d:function(t){return e.map(function(e,n){return e.encode(t[n])})},e)}var ex=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.type=o,u._tag="ReadonlyType",u}return o(t,e),t}(p);function eC(e,t){return void 0===t&&(t="Readonly<".concat(e.name,">")),new ex(t,e.is,e.validate,e.encode,e)}var eM=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.type=o,u._tag="ReadonlyArrayType",u}return o(t,e),t}(p);function eE(e,t){void 0===t&&(t="ReadonlyArray<".concat(e.name,">"));var n=em(e);return new eM(t,n.is,n.validate,n.encode,e)}var eP=function(e,t){return eF(ev(e),t)},ek=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.type=o,u._tag="ExactType",u}return o(t,e),t}(p);function eF(e,t){if(void 0===t){var n,r;t=P(e)?"{| ".concat(g(e.props)," |}"):(r=e,"PartialType"===r._tag)?S("{| ".concat(g(e.props)," |}")):"Exact<".concat(e.name,">")}var o=function e(t){switch(t._tag){case"RefinementType":case"ReadonlyType":return e(t.type);case"InterfaceType":case"StrictType":case"PartialType":return t.props;case"IntersectionType":return t.types.reduce(function(t,n){return Object.assign(t,e(n))},{})}}(e);return new ek(t,e.is,function(t,n){var r=et.validate(t,n);if((0,i.isLeft)(r))return r;var u=e.validate(t,n);return(0,i.isLeft)(u)?u:(0,i.right)(w(u.right,o))},function(t){return e.encode(w(t,o))},e)}var eW=function(e){function t(){var t=e.call(this,"Function",function(e){return"function"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="FunctionType",t}return o(t,e),t}(p),eD=new eW,eN=function(e){function t(){var t=e.call(this,"never",function(e){return!1},function(e,t){return f(e,t)},function(){throw Error("cannot encode never")})||this;return t._tag="NeverType",t}return o(t,e),t}(p),eL=new eN,eU=function(e){function t(){var t=e.call(this,"any",function(e){return!0},l,d)||this;return t._tag="AnyType",t}return o(t,e),t}(p),eA=new eU;function ej(e,t,n){return void 0===n&&(n="(".concat(e.name," | ").concat(s(t),")")),new eu(n,function(n){return e.is(n)&&t(n)},function(n,r){var o=e.validate(n,r);if((0,i.isLeft)(o))return o;var u=o.right;return t(u)?l(u):f(u,r)},e.encode,e,t)}var eq=ej(z,Number.isInteger,"Integer"),eG=function(e){function t(t,n,r,i,o,u){var a=e.call(this,t,n,r,i,o)||this;return a.tag=u,a}return o(t,e),t}(eS),eY=function(e,t,n){void 0===n&&(n=I(t));var r=eT(t,n);return r instanceof eG?r:(console.warn("[io-ts] Cannot build a tagged union for ".concat(n,", returning a de-optimized union")),new eG(n,r.is,r.validate,r.encode,t,e))},eB=function(e,t){return{value:e,context:t}},eK=function(e){return[{key:"",type:e}]},eV=et,ez=function(e){function t(){var t=e.call(this,"object",function(e){return null!==e&&"object"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="ObjectType",t}return o(t,e),t}(p),eH=new ez,e$=eb,eX=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.props=o,u._tag="StrictType",u}return o(t,e),t}(p);function eJ(e){return e}function eZ(e){return function(){return e}}},77883:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FORMAT_PLAIN=t.FORMAT_HTML=t.FORMATS=void 0;var n="html";t.FORMAT_HTML=n;var r="plain";t.FORMAT_PLAIN=r,t.FORMATS=[n,r]},779:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.LINE_ENDINGS=void 0,t.LINE_ENDINGS={POSIX:"\n",WIN32:"\r\n"}},36021:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_PLATFORMS=void 0,t.SUPPORTED_PLATFORMS={DARWIN:"darwin",LINUX:"linux",WIN32:"win32"}},90741:function(e,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 n="words";t.UNIT_WORDS=n;var r="word";t.UNIT_WORD=r;var i="sentences";t.UNIT_SENTENCES=i;var o="sentence";t.UNIT_SENTENCE=o;var u="paragraphs";t.UNIT_PARAGRAPHS=u;var a="paragraph";t.UNIT_PARAGRAPH=a,t.UNITS=[n,r,i,o,u,a]},90783:function(e,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(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoremIpsum",{enumerable:!0,get:function(){return a.default}}),t.loremIpsum=void 0;var r,i=n(77883),o=n(90741),u=n(90783),a=(r=n(55548),r&&r.__esModule?r:{default:r}),c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.count,n=void 0===t?1:t,r=e.format,c=void 0===r?i.FORMAT_PLAIN:r,f=e.paragraphLowerBound,l=e.paragraphUpperBound,p=e.random,d=e.sentenceLowerBound,s=e.sentenceUpperBound,m=e.units,h=void 0===m?o.UNIT_SENTENCES:m,v=e.words,y=void 0===v?u.WORDS:v,g=e.suffix,_=new a.default({random:p,sentencesPerParagraph:{max:void 0===l?7:l,min:void 0===f?3:f},words:y,wordsPerSentence:{max:void 0===s?15:s,min:void 0===d?5:d}},c,void 0===g?"":g);switch(h){case o.UNIT_PARAGRAPHS:case o.UNIT_PARAGRAPH:return _.generateParagraphs(n);case o.UNIT_SENTENCES:case o.UNIT_SENTENCE:return _.generateSentences(n);case o.UNIT_WORDS:case o.UNIT_WORD:return _.generateWords(n);default:return""}};t.loremIpsum=c},55548:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(77883),o=n(779),u=(r=n(40928),r&&r.__esModule?r:{default:r}),a=n(23749);function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f=function(){var e,t,n;function r(){var e,t,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.FORMAT_PLAIN,c=arguments.length>2?arguments[2]:void 0;if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),this.format=a,this.suffix=c,e=this,n=void 0,(t="generator")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,-1===i.FORMATS.indexOf(a.toLowerCase()))throw Error("".concat(a," is an invalid format. Please use ").concat(i.FORMATS.join(" or "),"."));this.generator=new u.default(o)}return t=[{key:"getLineEnding",value:function(){return this.suffix?this.suffix:!(0,a.isReactNative)()&&(0,a.isNode)()&&(0,a.isWindows)()?o.LINE_ENDINGS.WIN32:o.LINE_ENDINGS.POSIX}},{key:"formatString",value:function(e){return this.format===i.FORMAT_HTML?"<p>".concat(e,"</p>"):e}},{key:"formatStrings",value:function(e){var t=this;return e.map(function(e){return t.formatString(e)})}},{key:"generateWords",value:function(e){return this.formatString(this.generator.generateRandomWords(e))}},{key:"generateSentences",value:function(e){return this.formatString(this.generator.generateRandomParagraph(e))}},{key:"generateParagraphs",value:function(e){var t=this.generator.generateRandomParagraph.bind(this.generator);return this.formatStrings((0,a.makeArrayOfStrings)(e,t)).join(this.getLineEnding())}}],c(r.prototype,t),n&&c(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}();t.default=f},40928:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(90783),i=n(23749);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(){var e,t,n;function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.sentencesPerParagraph,n=void 0===t?{max:7,min:3}:t,i=e.wordsPerSentence,o=void 0===i?{max:15,min:5}:i,c=e.random,f=(e.seed,e.words),l=void 0===f?r.WORDS:f;if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,a),u(this,"sentencesPerParagraph",void 0),u(this,"wordsPerSentence",void 0),u(this,"random",void 0),u(this,"words",void 0),n.min>n.max)throw Error("Minimum number of sentences per paragraph (".concat(n.min,") cannot exceed maximum (").concat(n.max,")."));if(o.min>o.max)throw Error("Minimum number of words per sentence (".concat(o.min,") cannot exceed maximum (").concat(o.max,")."));this.sentencesPerParagraph=n,this.words=l,this.wordsPerSentence=o,this.random=c||Math.random}return t=[{key:"generateRandomInteger",value:function(e,t){return Math.floor(this.random()*(t-e+1)+e)}},{key:"generateRandomWords",value:function(e){var t=this,n=this.wordsPerSentence,r=n.min,o=n.max,u=e||this.generateRandomInteger(r,o);return(0,i.makeArrayOfLength)(u).reduce(function(e,n){return"".concat(t.pluckRandomWord()," ").concat(e)},"").trim()}},{key:"generateRandomSentence",value:function(e){return"".concat((0,i.capitalize)(this.generateRandomWords(e)),".")}},{key:"generateRandomParagraph",value:function(e){var t=this,n=this.sentencesPerParagraph,r=n.min,o=n.max,u=e||this.generateRandomInteger(r,o);return(0,i.makeArrayOfLength)(u).reduce(function(e,n){return"".concat(t.generateRandomSentence()," ").concat(e)},"").trim()}},{key:"pluckRandomWord",value:function(){var e=this.words.length-1,t=this.generateRandomInteger(0,e);return this.words[t]}}],o(a.prototype,t),n&&o(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}();t.default=a},79998:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){var t=e.trim();return t.charAt(0).toUpperCase()+t.slice(1)};t.default=n},23749:function(e,t,n){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 o.default}}),Object.defineProperty(t,"isWindows",{enumerable:!0,get:function(){return u.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(n(79998)),i=f(n(18077)),o=f(n(66002)),u=f(n(89759)),a=f(n(13385)),c=f(n(74523));function f(e){return e&&e.__esModule?e:{default:e}}},18077:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){return!!e.exports};t.default=n},66002:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){var e=!1;try{e="ReactNative"===navigator.product}catch(t){e=!1}return e};t.default=n},89759:function(e,t,n){var r=n(34406);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(36021),o=function(){var e=!1;try{e=r.platform===i.SUPPORTED_PLATFORMS.WIN32}catch(t){e=!1}return e};t.default=o},13385:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.apply(null,Array(e)).map(function(e,t){return t})};t.default=n},74523:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(13385),r&&r.__esModule?r:{default:r}),o=function(e,t){return(0,i.default)(e).map(function(){return t()})};t.default=o},58831:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowContainer=void 0;var i=n(52322),o=n(2784),u=n(64379),a=function(e){var t=e.childRect,n=e.popoverRect,a=e.position,c=e.arrowColor,f=e.arrowSize,l=e.arrowClassName,p=e.arrowStyle,d=e.className,s=e.children,m=e.style,h=u.useArrowContainer({childRect:t,popoverRect:n,position:a,arrowColor:c,arrowSize:f}),v=h.arrowContainerStyle,y=h.arrowStyle,g=o.useMemo(function(){return r(r({},v),m)},[v,m]),_=o.useMemo(function(){return r(r({},y),p)},[y,p]);return i.jsxs("div",r({className:d,style:g},{children:[i.jsx("div",{style:_,className:l},void 0),s]}),void 0)};t.ArrowContainer=a},19909:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Popover=t.usePopover=t.ArrowContainer=t.useArrowContainer=void 0;var i=n(52322),o=n(2784),u=n(44635),a=n(27574),c=n(61462);Object.defineProperty(t,"usePopover",{enumerable:!0,get:function(){return c.usePopover}});var f=n(70414),l=n(64379);Object.defineProperty(t,"useArrowContainer",{enumerable:!0,get:function(){return l.useArrowContainer}});var p=n(58831);Object.defineProperty(t,"ArrowContainer",{enumerable:!0,get:function(){return p.ArrowContainer}});var d=["top","left","right","bottom"],s=o.forwardRef(function(e,t){var n=e.isOpen,l=e.children,p=e.content,s=e.positions,m=e.align,h=void 0===m?"center":m,v=e.padding,y=void 0===v?0:v,g=e.reposition,_=void 0===g||g,b=e.parentElement,S=void 0===b?window.document.body:b,T=e.boundaryElement,I=e.containerClassName,R=e.containerStyle,w=e.contentLocation,O=e.boundaryInset,x=void 0===O?0:O,C=e.onClickOutside,M=e.clickOutsideCapture,E=void 0!==M&&M,P=f.useMemoizedArray(void 0===s?d:s),k=o.useRef(!1),F=o.useRef(),W=o.useRef(),D=o.useRef(_),N=o.useRef(),L=o.useState({align:h,nudgedLeft:0,nudgedTop:0,position:P[0],padding:y,childRect:a.EMPTY_CLIENT_RECT,popoverRect:a.EMPTY_CLIENT_RECT,parentRect:a.EMPTY_CLIENT_RECT,boundaryRect:a.EMPTY_CLIENT_RECT,boundaryInset:x,violations:a.EMPTY_CLIENT_RECT,hasViolations:!1}),U=L[0],A=L[1],j=o.useCallback(function(e){return A(e)},[]),q=c.usePopover({isOpen:n,childRef:N,containerClassName:void 0===I?"react-tiny-popover-container":I,parentElement:S,boundaryElement:void 0===T?S:T,contentLocation:w,positions:P,align:h,padding:y,boundaryInset:x,reposition:_,onPositionPopover:j}),G=q.positionPopover,Y=q.popoverRef,B=q.scoutRef;o.useLayoutEffect(function(){var e=!0,t=function(){var r,i;if(n&&e){var o=null===(r=null==N?void 0:N.current)||void 0===r?void 0:r.getBoundingClientRect(),u=null===(i=null==Y?void 0:Y.current)||void 0===i?void 0:i.getBoundingClientRect();null==o||null==u||a.rectsAreEqual(o,{top:U.childRect.top,left:U.childRect.left,width:U.childRect.width,height:U.childRect.height,bottom:U.childRect.top+U.childRect.height,right:U.childRect.left+U.childRect.width})&&u.width===U.popoverRect.width&&u.height===U.popoverRect.height&&U.padding===y&&U.align===h&&P===F.current&&w===W.current&&_===D.current||G(),P!==F.current&&(F.current=P),w!==W.current&&(W.current=w),_!==D.current&&(D.current=_),e&&window.requestAnimationFrame(t)}k.current=n};return window.requestAnimationFrame(t),function(){e=!1}},[h,w,n,y,Y,U.align,U.childRect.height,U.childRect.left,U.childRect.top,U.childRect.width,U.padding,U.popoverRect.height,U.popoverRect.width,G,P,_,]),o.useEffect(function(){var e=Y.current;return Object.assign(e.style,R),function(){Object.keys(null!=R?R:{}).forEach(function(t){return delete e.style[t]})}},[R,n,Y]);var K=o.useCallback(function(e){var t,r;!n||(null===(t=Y.current)||void 0===t?void 0:t.contains(e.target))||(null===(r=N.current)||void 0===r?void 0:r.contains(e.target))||null==C||C(e)},[n,C,Y]),V=o.useCallback(function(){N.current&&window.requestAnimationFrame(function(){return G()})},[G]);o.useEffect(function(){var e=S.ownerDocument.body;return e.addEventListener("click",K,E),e.addEventListener("contextmenu",K,E),e.addEventListener("resize",V),function(){e.removeEventListener("click",K,E),e.removeEventListener("contextmenu",K,E),e.removeEventListener("resize",V)}},[E,K,V,S]);var z=o.useCallback(function(e){N.current=e,null!=t&&("object"==typeof t?t.current=e:"function"==typeof t&&t(e))},[t]);return i.jsxs(i.Fragment,{children:[o.cloneElement(l,{ref:z}),n?i.jsx(u.PopoverPortal,r({element:Y.current,scoutElement:B.current,container:S},{children:"function"==typeof p?p(U):p}),void 0):null]},void 0)});t.Popover=o.forwardRef(function(e,t){return"undefined"==typeof window?e.children:i.jsx(s,r({},e,{ref:t}),void 0)})},44635:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PopoverPortal=void 0;var r=n(2784),i=n(28316),o=function(e){var t=e.container,n=e.element,o=e.scoutElement,u=e.children;return r.useLayoutEffect(function(){return t.appendChild(n),t.appendChild(o),function(){t.removeChild(n),t.removeChild(o)}},[t,n,o]),i.createPortal(u,n)};t.PopoverPortal=o},64379:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.useArrowContainer=void 0;var i=n(2784),o=function(e){var t=e.childRect,n=e.popoverRect,o=e.position,u=e.arrowSize,a=e.arrowColor,c=i.useMemo(function(){return{padding:u}},[u]),f=i.useMemo(function(){return r({position:"absolute"},function(){var e=2*u,r=t.top-n.top+t.height/2-e/2,i=t.left-n.left+t.width/2-e/2,c=n.width-u,f=n.height-u;switch(i=(i=i<u?u:i)+e>c?c-e:i,r=Number.isNaN(r=(r=r<u?u:r)+e>f?f-e:r)?0:r,i=Number.isNaN(i)?0:i,o){case"right":return{borderTop:u+"px solid transparent",borderBottom:u+"px solid transparent",borderRight:u+"px solid "+a,left:0,top:r};case"left":return{borderTop:u+"px solid transparent",borderBottom:u+"px solid transparent",borderLeft:u+"px solid "+a,right:0,top:r};case"bottom":return{borderLeft:u+"px solid transparent",borderRight:u+"px solid transparent",borderBottom:u+"px solid "+a,top:0,left:i};case"top":return{borderLeft:u+"px solid transparent",borderRight:u+"px solid transparent",borderTop:u+"px solid "+a,bottom:0,left:i};default:return{display:"hidden"}}}())},[a,u,t.height,t.left,t.top,t.width,n.height,n.left,n.top,n.width,o,]);return{arrowContainerStyle:c,arrowStyle:f}};t.useArrowContainer=o},79601:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useElementRef=void 0;var r=n(2784),i=n(27574),o=function(e,t){var n=r.useRef(),o=r.useMemo(function(){return i.createContainer(t,e)},[e,t]);return n.current=o,n};t.useElementRef=o},70414:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useMemoizedArray=void 0;var r=n(2784),i=function(e){var t=r.useRef(e);return r.useMemo(function(){if(t.current===e)return t.current;if(t.current.length!==e.length)return t.current=e,e;for(var n=0;n<e.length;n+=1)if(e[n]!==t.current[n])return t.current=e,e;return t.current},[e])};t.useMemoizedArray=i},61462:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.usePopover=void 0;var r=n(2784),i=n(27574),o=n(79601),u={position:"fixed",overflow:"visible",top:"0px",left:"0px"},a={position:"fixed",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden"},c=function(e){var t=e.isOpen,n=e.childRef,c=e.positions,f=e.containerClassName,l=e.parentElement,p=e.contentLocation,d=e.align,s=e.padding,m=e.reposition,h=e.boundaryInset,v=e.boundaryElement,y=e.onPositionPopover,g=o.useElementRef(f,u),_=o.useElementRef("react-tiny-popover-scout",a),b=r.useCallback(function(e){var r,o,u=void 0===e?{}:e,a=u.positionIndex,f=void 0===a?0:a,S=u.parentRect,T=void 0===S?l.getBoundingClientRect():S,I=u.childRect,R=void 0===I?null===(r=null==n?void 0:n.current)||void 0===r?void 0:r.getBoundingClientRect():I,w=u.scoutRect,O=void 0===w?null===(o=null==_?void 0:_.current)||void 0===o?void 0:o.getBoundingClientRect():w,x=u.popoverRect,C=void 0===x?g.current.getBoundingClientRect():x,M=u.boundaryRect,E=void 0===M?v===l?T:v.getBoundingClientRect():M;if(R&&T&&t){if(p){var P="function"==typeof p?p({childRect:R,popoverRect:C,parentRect:T,boundaryRect:E,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:h,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1}):p,k=P.top,F=P.left,W=Math.round(T.left+F-O.left),D=Math.round(T.top+k-O.top);g.current.style.transform="translate("+W+"px, "+D+"px)",y({childRect:R,popoverRect:C,parentRect:T,boundaryRect:E,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:h,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1});return}var N=f===c.length,L=N?c[0]:c[f],U=i.getNewPopoverRect({childRect:R,popoverRect:C,boundaryRect:E,position:L,align:d,padding:s,reposition:m},h),A=U.rect;if(U.boundaryViolation&&m&&!N){b({positionIndex:f+1,childRect:R,popoverRect:C,parentRect:T,boundaryRect:E});return}var j=A.top,q=A.left,G=A.width,Y=A.height,B=i.getNudgedPopoverRect(A,E,h),K=B.left,V=B.top,z=j,H=q;m&&!N&&(z=V,H=K),z=Math.round(z-O.top),H=Math.round(H-O.left),g.current.style.transform="translate("+H+"px, "+z+"px)";var $={top:E.top+h-z,left:E.left+h-H,right:H+G-E.right+h,bottom:z+Y-E.bottom+h};y({childRect:R,popoverRect:{top:z,left:H,width:G,height:Y,right:H+G,bottom:z+Y},parentRect:T,boundaryRect:E,position:L,align:d,padding:s,nudgedTop:V-j,nudgedLeft:K-q,boundaryInset:h,violations:{top:$.top<=0?0:$.top,left:$.left<=0?0:$.left,right:$.right<=0?0:$.right,bottom:$.bottom<=0?0:$.bottom},hasViolations:$.top>0||$.left>0||$.right>0||$.bottom>0})}},[l,n,_,g,v,t,p,c,d,s,m,h,y,]);return{positionPopover:b,popoverRef:g,scoutRef:_}};t.usePopover=c},27574:function(e,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};var n=function(e,t){return e===t||(null==e?void 0:e.bottom)===(null==t?void 0:t.bottom)&&(null==e?void 0:e.height)===(null==t?void 0:t.height)&&(null==e?void 0:e.left)===(null==t?void 0:t.left)&&(null==e?void 0:e.right)===(null==t?void 0:t.right)&&(null==e?void 0:e.top)===(null==t?void 0:t.top)&&(null==e?void 0:e.width)===(null==t?void 0:t.width)};t.rectsAreEqual=n;var r=function(e,t){var n=window.document.createElement("div");return t&&(n.className=t),Object.assign(n.style,e),n};t.createContainer=r;var i=function(e,t,n,r,i){var o,u,a=t.left+t.width/2,c=t.top+t.height/2,f=n.width,l=n.height;switch(e){case"left":o=c-l/2,u=t.left-r-f,"start"===i&&(o=t.top),"end"===i&&(o=t.bottom-l);break;case"bottom":o=t.bottom+r,u=a-f/2,"start"===i&&(u=t.left),"end"===i&&(u=t.right-f);break;case"right":o=c-l/2,u=t.right+r,"start"===i&&(o=t.top),"end"===i&&(o=t.bottom-l);break;default:o=t.top-l-r,u=a-f/2,"start"===i&&(u=t.left),"end"===i&&(u=t.right-f)}return{top:o,left:u,width:f,height:l,right:u+f,bottom:o+l}};t.popoverRectForPosition=i;var o=function(e,n){var r=e.position,i=e.align,o=e.childRect,u=e.popoverRect,a=e.boundaryRect,c=e.padding,f=e.reposition,l=t.popoverRectForPosition(r,o,u,c,i),p=f&&("top"===r&&l.top<a.top+n||"left"===r&&l.left<a.left+n||"right"===r&&l.right>a.right-n||"bottom"===r&&l.bottom>a.bottom-n);return{rect:l,boundaryViolation:p}};t.getNewPopoverRect=o;var u=function(e,t,n){var r=t.top+n,i=t.left+n,o=t.right-n,u=t.bottom-n,a=e.top<r?r:e.top;a=a+e.height>u?u-e.height:a;var c=e.left<i?i:e.left;return{top:a,left:c=c+e.width>o?o-e.width:c,width:e.width,height:e.height,right:c+e.width,bottom:a+e.height}};t.getNudgedPopoverRect=u},80734:function(e,t,n){/*!
6
8
  * statuses
7
9
  * Copyright(c) 2014 Jonathan Ong
8
10
  * Copyright(c) 2016 Douglas Christopher Wilson
9
11
  * MIT Licensed
10
- */ var r,i,o,u=n(1710);function a(e){if(!Object.prototype.hasOwnProperty.call(c.message,e))throw Error("invalid status code: "+e);return c.message[e]}function c(e){if("number"==typeof e)return a(e);if("string"!=typeof e)throw TypeError("code must be a number or string");var t=parseInt(e,10);return isNaN(t)?function(e){var t=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(c.code,t))throw Error('invalid status message: "'+e+'"');return c.code[t]}(e):a(t)}e.exports=c,c.message=u,c.code=(r=u,i={},Object.keys(r).forEach(function(e){var t=r[e],n=Number(e);i[t.toLowerCase()]=n}),i),c.codes=(o=u,Object.keys(o).map(function(e){return Number(e)})),c.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},c.empty={204:!0,205:!0,304:!0},c.retry={502:!0,503:!0,504:!0}},60130:function(e,t,n){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 o.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return u.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(n(27343)),i=d(n(46076)),o=d(n(85854)),u=d(n(95899)),a=d(n(15384)),c=d(n(25791)),f=d(n(77888)),l=d(n(49926)),p=d(n(9964));function d(e){return e&&e.__esModule?e:{default:e}}},2763:function(e,t){function n(e){return(e+64>>>9<<4)+14+1}function r(e,t){let n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,o,u){var a,c;return r((a=r(r(t,e),r(i,u)))<<o|a>>>32-o,n)}function o(e,t,n,r,o,u,a){return i(t&n|~t&r,e,t,o,u,a)}function u(e,t,n,r,o,u,a){return i(t&r|n&~r,e,t,o,u,a)}function a(e,t,n,r,o,u,a){return i(t^n^r,e,t,o,u,a)}function c(e,t,n,r,o,u,a){return i(n^(t|~r),e,t,o,u,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let i=0;i<t.length;++i)e[i]=t.charCodeAt(i)}return function(e){let t=[],n=32*e.length,r="0123456789abcdef";for(let i=0;i<n;i+=8){let o=e[i>>5]>>>i%32&255,u=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(u)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let i=1732584193,f=-271733879,l=-1732584194,p=271733878;for(let d=0;d<e.length;d+=16){let s=i,m=f,h=l,v=p;i=o(i,f,l,p,e[d],7,-680876936),p=o(p,i,f,l,e[d+1],12,-389564586),l=o(l,p,i,f,e[d+2],17,606105819),f=o(f,l,p,i,e[d+3],22,-1044525330),i=o(i,f,l,p,e[d+4],7,-176418897),p=o(p,i,f,l,e[d+5],12,1200080426),l=o(l,p,i,f,e[d+6],17,-1473231341),f=o(f,l,p,i,e[d+7],22,-45705983),i=o(i,f,l,p,e[d+8],7,1770035416),p=o(p,i,f,l,e[d+9],12,-1958414417),l=o(l,p,i,f,e[d+10],17,-42063),f=o(f,l,p,i,e[d+11],22,-1990404162),i=o(i,f,l,p,e[d+12],7,1804603682),p=o(p,i,f,l,e[d+13],12,-40341101),l=o(l,p,i,f,e[d+14],17,-1502002290),f=o(f,l,p,i,e[d+15],22,1236535329),i=u(i,f,l,p,e[d+1],5,-165796510),p=u(p,i,f,l,e[d+6],9,-1069501632),l=u(l,p,i,f,e[d+11],14,643717713),f=u(f,l,p,i,e[d],20,-373897302),i=u(i,f,l,p,e[d+5],5,-701558691),p=u(p,i,f,l,e[d+10],9,38016083),l=u(l,p,i,f,e[d+15],14,-660478335),f=u(f,l,p,i,e[d+4],20,-405537848),i=u(i,f,l,p,e[d+9],5,568446438),p=u(p,i,f,l,e[d+14],9,-1019803690),l=u(l,p,i,f,e[d+3],14,-187363961),f=u(f,l,p,i,e[d+8],20,1163531501),i=u(i,f,l,p,e[d+13],5,-1444681467),p=u(p,i,f,l,e[d+2],9,-51403784),l=u(l,p,i,f,e[d+7],14,1735328473),f=u(f,l,p,i,e[d+12],20,-1926607734),i=a(i,f,l,p,e[d+5],4,-378558),p=a(p,i,f,l,e[d+8],11,-2022574463),l=a(l,p,i,f,e[d+11],16,1839030562),f=a(f,l,p,i,e[d+14],23,-35309556),i=a(i,f,l,p,e[d+1],4,-1530992060),p=a(p,i,f,l,e[d+4],11,1272893353),l=a(l,p,i,f,e[d+7],16,-155497632),f=a(f,l,p,i,e[d+10],23,-1094730640),i=a(i,f,l,p,e[d+13],4,681279174),p=a(p,i,f,l,e[d],11,-358537222),l=a(l,p,i,f,e[d+3],16,-722521979),f=a(f,l,p,i,e[d+6],23,76029189),i=a(i,f,l,p,e[d+9],4,-640364487),p=a(p,i,f,l,e[d+12],11,-421815835),l=a(l,p,i,f,e[d+15],16,530742520),f=a(f,l,p,i,e[d+2],23,-995338651),i=c(i,f,l,p,e[d],6,-198630844),p=c(p,i,f,l,e[d+7],10,1126891415),l=c(l,p,i,f,e[d+14],15,-1416354905),f=c(f,l,p,i,e[d+5],21,-57434055),i=c(i,f,l,p,e[d+12],6,1700485571),p=c(p,i,f,l,e[d+3],10,-1894986606),l=c(l,p,i,f,e[d+10],15,-1051523),f=c(f,l,p,i,e[d+1],21,-2054922799),i=c(i,f,l,p,e[d+8],6,1873313359),p=c(p,i,f,l,e[d+15],10,-30611744),l=c(l,p,i,f,e[d+6],15,-1560198380),f=c(f,l,p,i,e[d+13],21,1309151649),i=c(i,f,l,p,e[d+4],6,-145523070),p=c(p,i,f,l,e[d+11],10,-1120210379),l=c(l,p,i,f,e[d+2],15,718787259),f=c(f,l,p,i,e[d+9],21,-343485551),i=r(i,s),f=r(f,m),l=r(l,h),p=r(p,v)}return[i,f,l,p]}(function(e){if(0===e.length)return[];let t=8*e.length,r=new Uint32Array(n(t));for(let i=0;i<t;i+=8)r[i>>5]|=(255&e[i/8])<<i%32;return r}(e),8*e.length))};t.default=f},74267:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:n}},15384:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},9964:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(77888),r&&r.__esModule?r:{default:r}),o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");let t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};t.default=o},76678:function(e,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(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&!(n="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 n(r)};let n,r=new Uint8Array(16)},13254:function(e,t){function n(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function r(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){let t=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){let o=unescape(encodeURIComponent(e));e=[];for(let u=0;u<o.length;++u)e.push(o.charCodeAt(u))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let a=e.length/4+2,c=Math.ceil(a/16),f=Array(c);for(let l=0;l<c;++l){let p=new Uint32Array(16);for(let d=0;d<16;++d)p[d]=e[64*l+4*d]<<24|e[64*l+4*d+1]<<16|e[64*l+4*d+2]<<8|e[64*l+4*d+3];f[l]=p}f[c-1][14]=(e.length-1)*8/4294967296,f[c-1][14]=Math.floor(f[c-1][14]),f[c-1][15]=(e.length-1)*8&4294967295;for(let s=0;s<c;++s){let m=new Uint32Array(80);for(let h=0;h<16;++h)m[h]=f[s][h];for(let v=16;v<80;++v)m[v]=r(m[v-3]^m[v-8]^m[v-14]^m[v-16],1);let y=i[0],g=i[1],_=i[2],b=i[3],S=i[4];for(let T=0;T<80;++T){let I=Math.floor(T/20),R=r(y,5)+n(I,g,_,b)+S+t[I]+m[T]>>>0;S=b,b=_,_=r(g,30)>>>0,g=y,y=R}i[0]=i[0]+y>>>0,i[1]=i[1]+g>>>0,i[2]=i[2]+_>>>0,i[3]=i[3]+b>>>0,i[4]=i[4]+S>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]};t.default=i},49926:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var r,i=(r=n(77888),r&&r.__esModule?r:{default:r});let o=[];for(let u=0;u<256;++u)o.push((u+256).toString(16).slice(1));function a(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}var c=function(e,t=0){let n=a(e,t);if(!(0,i.default)(n))throw TypeError("Stringified UUID is invalid");return n};t.default=c},27343:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(41874),r&&r.__esModule?r:{default:r}),o=n(49926);let u,a,c=0,f=0;var l=function(e,t,n){let r=t&&n||0,l=t||Array(16),p=(e=e||{}).node||u,d=void 0!==e.clockseq?e.clockseq:a;if(null==p||null==d){let s=e.random||(e.rng||i.default)();null==p&&(p=u=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==d&&(d=a=(s[6]<<8|s[7])&16383)}let m=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:f+1,v=m-c+(h-f)/1e4;if(v<0&&void 0===e.clockseq&&(d=d+1&16383),(v<0||m>c)&&void 0===e.nsecs&&(h=0),h>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");c=m,f=h,a=d,m+=122192928e5;let y=((268435455&m)*1e4+h)%4294967296;l[r++]=y>>>24&255,l[r++]=y>>>16&255,l[r++]=y>>>8&255,l[r++]=255&y;let g=m/4294967296*1e4&268435455;l[r++]=g>>>8&255,l[r++]=255&g,l[r++]=g>>>24&15|16,l[r++]=g>>>16&255,l[r++]=d>>>8|128,l[r++]=255&d;for(let _=0;_<6;++_)l[r+_]=p[_];return t||(0,o.unsafeStringify)(l)};t.default=l},46076:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(18679)),i=o(n(2763));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v3",48,i.default);t.default=u},18679:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,u,a){var c;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=(0,o.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+e.length);if(f.set(r),f.set(e,r.length),(f=n(f))[6]=15&f[6]|t,f[8]=63&f[8]|128,u){a=a||0;for(let l=0;l<16;++l)u[a+l]=f[l];return u}return(0,i.unsafeStringify)(f)}try{r.name=e}catch(c){}return r.DNS=u,r.URL=a,r};var r,i=n(49926),o=(r=n(9964),r&&r.__esModule?r:{default:r});let u="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=u;let a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a},85854:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(74267)),i=u(n(41874)),o=n(49926);function u(e){return e&&e.__esModule?e:{default:e}}var a=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();e=e||{};let u=e.random||(e.rng||i.default)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){n=n||0;for(let a=0;a<16;++a)t[n+a]=u[a];return t}return(0,o.unsafeStringify)(u)};t.default=a},95899:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(18679)),i=o(n(13254));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v5",80,i.default);t.default=u},77888:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(76678),r&&r.__esModule?r:{default:r}),o=function(e){return"string"==typeof e&&i.default.test(e)};t.default=o},25791:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(77888),r&&r.__esModule?r:{default:r}),o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};t.default=o},87783:function(e,t,n){n.r(t),n.d(t,{__assign:function(){return o},__asyncDelegator:function(){return w},__asyncGenerator:function(){return R},__asyncValues:function(){return O},__await:function(){return I},__awaiter:function(){return m},__classPrivateFieldGet:function(){return P},__classPrivateFieldIn:function(){return W},__classPrivateFieldSet:function(){return k},__createBinding:function(){return v},__decorate:function(){return a},__esDecorate:function(){return f},__exportStar:function(){return y},__extends:function(){return i},__generator:function(){return h},__importDefault:function(){return E},__importStar:function(){return M},__makeTemplateObject:function(){return x},__metadata:function(){return s},__param:function(){return c},__propKey:function(){return p},__read:function(){return _},__rest:function(){return u},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return b},__spreadArray:function(){return T},__spreadArrays:function(){return S},__values:function(){return g}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){var i,o=arguments.length,u=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(u=(o<3?i(u):o>3?i(t,n,u):i(t,n))||u);return o>3&&u&&Object.defineProperty(t,n,u),u}function c(e,t){return function(n,r){t(n,r,e)}}function f(e,t,n,r,i,o){function u(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,c=r.kind,f="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?r.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,s=n.length-1;s>=0;s--){var m={};for(var h in r)m[h]="access"===h?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");o.push(u(e||null))};var v=(0,n[s])("accessor"===c?{get:p.get,set:p.set}:p[f],m);if("accessor"===c){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(a=u(v.get))&&(p.get=a),(a=u(v.set))&&(p.set=a),(a=u(v.init))&&i.unshift(a)}else(a=u(v))&&("field"===c?i.unshift(a):p[f]=a)}l&&Object.defineProperty(l,r.name,p),d=!0}function l(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function m(e,t,n,r){return new(n||(n=Promise))(function(i,o){function u(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(u,a)}c((r=r.apply(e,t||[])).next())})}function h(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=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 u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(c){a=[6,c],r=0}finally{n=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(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||v(t,e,n)}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e}function S(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r}function T(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function I(e){return this instanceof I?(this.v=e,this):new I(e)}function R(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})})}function a(e,t){try{var n;n=i[e](t),n.value instanceof I?Promise.resolve(n.value.v).then(c,f):l(o[0][2],n)}catch(r){l(o[0][3],r)}}function c(e){a("next",e)}function f(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:I(e[r](t)),done:!1}:i?i(t):t}:i}}function O(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=g(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function M(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&v(t,e,n);return C(t,e),t}function E(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function k(e,t,n,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?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function W(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}t.default={__extends:i,__assign:o,__rest:u,__decorate:a,__param:c,__metadata:s,__awaiter:m,__generator:h,__createBinding:v,__exportStar:y,__values:g,__read:_,__spread:b,__spreadArrays:S,__spreadArray:T,__await:I,__asyncGenerator:R,__asyncDelegator:w,__asyncValues:O,__makeTemplateObject:x,__importStar:M,__importDefault:E,__classPrivateFieldGet:P,__classPrivateFieldSet:k,__classPrivateFieldIn:W}},78948:function(e,t,n){n.r(t),n.d(t,{__assign:function(){return o},__asyncDelegator:function(){return w},__asyncGenerator:function(){return R},__asyncValues:function(){return O},__await:function(){return I},__awaiter:function(){return m},__classPrivateFieldGet:function(){return P},__classPrivateFieldIn:function(){return W},__classPrivateFieldSet:function(){return k},__createBinding:function(){return v},__decorate:function(){return a},__esDecorate:function(){return f},__exportStar:function(){return y},__extends:function(){return i},__generator:function(){return h},__importDefault:function(){return E},__importStar:function(){return M},__makeTemplateObject:function(){return x},__metadata:function(){return s},__param:function(){return c},__propKey:function(){return p},__read:function(){return _},__rest:function(){return u},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return b},__spreadArray:function(){return T},__spreadArrays:function(){return S},__values:function(){return g}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){var i,o=arguments.length,u=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(u=(o<3?i(u):o>3?i(t,n,u):i(t,n))||u);return o>3&&u&&Object.defineProperty(t,n,u),u}function c(e,t){return function(n,r){t(n,r,e)}}function f(e,t,n,r,i,o){function u(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,c=r.kind,f="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?r.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,s=n.length-1;s>=0;s--){var m={};for(var h in r)m[h]="access"===h?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");o.push(u(e||null))};var v=(0,n[s])("accessor"===c?{get:p.get,set:p.set}:p[f],m);if("accessor"===c){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(a=u(v.get))&&(p.get=a),(a=u(v.set))&&(p.set=a),(a=u(v.init))&&i.unshift(a)}else(a=u(v))&&("field"===c?i.unshift(a):p[f]=a)}l&&Object.defineProperty(l,r.name,p),d=!0}function l(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function m(e,t,n,r){return new(n||(n=Promise))(function(i,o){function u(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(u,a)}c((r=r.apply(e,t||[])).next())})}function h(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=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 u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(c){a=[6,c],r=0}finally{n=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(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||v(t,e,n)}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e}function S(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r}function T(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function I(e){return this instanceof I?(this.v=e,this):new I(e)}function R(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})})}function a(e,t){try{var n;n=i[e](t),n.value instanceof I?Promise.resolve(n.value.v).then(c,f):l(o[0][2],n)}catch(r){l(o[0][3],r)}}function c(e){a("next",e)}function f(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:I(e[r](t)),done:!1}:i?i(t):t}:i}}function O(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=g(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function M(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&v(t,e,n);return C(t,e),t}function E(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function k(e,t,n,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?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function W(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}t.default={__extends:i,__assign:o,__rest:u,__decorate:a,__param:c,__metadata:s,__awaiter:m,__generator:h,__createBinding:v,__exportStar:y,__values:g,__read:_,__spread:b,__spreadArrays:S,__spreadArray:T,__await:I,__asyncGenerator:R,__asyncDelegator:w,__asyncValues:O,__makeTemplateObject:x,__importStar:M,__importDefault:E,__classPrivateFieldGet:P,__classPrivateFieldSet:k,__classPrivateFieldIn:W}},16:function(e,t,n){n.d(t,{SH:function(){return z}}),(r=o||(o={})).SetActiveSlice="setActiveSlice",r.SetSliceZoneSize="setSliceZoneSize",(i=u||(u={})).Ping="ping",i.SetSliceZone="setSliceZone",i.ScrollToSlice="scrollToSlice";var r,i,o,u,a,c,f,l,p,d,s,m=n(80734);(d=a||(a={})).Connect="connect",(s=c||(c={})).Ready="ready";var h=Object.defineProperty,v=(e,t,n)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t,n)=>(v(e,"symbol"!=typeof t?t+"":t,n),n);class g extends Error{constructor(e){super(e.msg),y(this,"response"),this.response=e}}class _ extends Error{constructor(){super("Connection timed out")}}class b extends Error{constructor(e){super("Too many concurrent requests"),y(this,"request"),this.request=e}}class S extends Error{constructor(e){super(`Request \`${e.requestID}\` timed out`),y(this,"request"),this.request=e}}class T extends Error{}class I extends Error{constructor(){super("Port is not set")}}class R extends Error{constructor(){super("Channel is not set")}}let w=0,O=(e,t,n="")=>({requestID:`${n}${w++}`,type:e,data:t}),x=(e,t,n=200)=>{var r;if(n>=400)throw TypeError(`Invalid success status code, expected status to be within \`[100;400[\`, got \`${n}\``);return{requestID:e,status:n,msg:(null==(r=m.message[n])?void 0:r.replace(/\.$/,"").toLowerCase())??"",data:t}},C=(e,t,n=400)=>{var r;if(n<400)throw TypeError(`Invalid error status code, expected status to be within \`[500;600[\`, got \`${n}\``);return{requestID:e,status:n,msg:(null==(r=m.message[n])?void 0:r.replace(/\.$/,"").toLowerCase())??"",error:t}},M=e=>{if("object"!=typeof e||null===e)throw TypeError(`Invalid message received, expected message to be of type \`object\`, got \`${typeof e}\``);if(Object.keys(e).every(e=>["requestID","type","data","status","msg","error"].includes(e))){if("string"!=typeof e.requestID)throw TypeError(`Invalid message received, expected \`message.requestID\` to be of type \`string\`, got \`${typeof e.id}\``)}else throw TypeError(`Invalid message received: ${JSON.stringify(e)}`);return e},E=e=>"type"in e,P=e=>!("type"in e),k=e=>P(e)&&!("error"in e);var W=Object.defineProperty,F=(e,t,n)=>t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D=(e,t,n)=>(F(e,"symbol"!=typeof t?t+"":t,n),n);let N={debug:!1,maximumRequestConcurrency:20,defaultTimeout:5e3,requestIDPrefix:"channel-"};class L{constructor(e,t){D(this,"requestHandlers"),D(this,"options"),D(this,"_port",null),D(this,"_pendingRequests",new Map),this.requestHandlers=e,this.options={...N,...t}}get port(){if(!this._port)throw new I;return this._port}set port(e){this._port&&(this._port.onmessage=null),this._port=e,this._port&&(this._port.onmessage=this.onMessage.bind(this))}createRequestMessage(e,t){return O(e,t,this.options.requestIDPrefix)}async onMessage(e){this.options.debug&&console.debug(e.data);try{let t=M(e.data);if(E(t)){if(this.requestHandlers[t.type])try{let n=await this.requestHandlers[t.type](t,{success:x.bind(this,t.requestID),error:C.bind(this,t.requestID)});this.postResponse(n)}catch(r){this.postResponse(C(t.requestID,r,500))}else this.postResponse(C(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(i){if(i instanceof TypeError)console.warn(i.message);else throw i}}postRequest(e,t=e=>this.port.postMessage(e),n={}){if(this.options.debug&&console.debug(e),this._pendingRequests.size>=this.options.maximumRequestConcurrency)throw new b(e);return new Promise((r,i)=>{let o=setTimeout(()=>{this._pendingRequests.has(e.requestID)&&this._pendingRequests.delete(e.requestID),i(new S(e))},n.timeout||this.options.defaultTimeout);this._pendingRequests.set(e.requestID,e=>{clearTimeout(o),k(e)?r(e):i(new g(e))}),t(e)})}postResponse(e,t=e=>this.port.postMessage(e)){return this.options.debug&&console.debug(e),t(e),e}}var U=Object.defineProperty,A=(e,t,n)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j=(e,t,n)=>(A(e,"symbol"!=typeof t?t+"":t,n),n);let q={connectTimeout:2e4,requestIDPrefix:"emitter-"};class G extends L{constructor(e,t,n){super(t,{...q,...n}),j(this,"_target"),j(this,"_channel",null),j(this,"_receiverReady",""),j(this,"_receiverReadyCallback",null),j(this,"_connected",!1),this._target=e,window.addEventListener("message",e=>{this._onPublicMessage(e)})}get channel(){if(!this._channel)throw new R;return this._channel}set channel(e){this._channel=e,this._channel?this.port=this._channel.port1:this.port=null}get connected(){return this._connected}connect(e={},t=!1){return this.disconnect(),t&&(this._receiverReady=""),new Promise((t,n)=>{this._target.addEventListener("load",()=>{if(!this._target.contentWindow)return n(Error("Target window is not available"));let r=setTimeout(()=>{n(new _)},this.options.connectTimeout),i=async()=>{clearTimeout(r),this.channel=new MessageChannel;let n=this.createRequestMessage(a.Connect,e),i=await this.postRequest(n,e=>{this._target.contentWindow.postMessage(e,"*",[this.channel.port2])});this.postResponse(x(this._receiverReady,void 0),e=>{this._target.contentWindow.postMessage(e,"*")}),this._connected=!0,t(i)};this._receiverReady?i():this._receiverReadyCallback=i},{once:!0})})}disconnect(){this._connected=!1,this.channel=null}async _onPublicMessage(e){if(e.source===this._target.contentWindow)try{let t=M(e.data);if(E(t)){if(this.options.debug&&console.debug(e.data),t.type===c.Ready){if(this._receiverReady=t.requestID,this._receiverReadyCallback){let n=this._receiverReadyCallback();this._receiverReadyCallback=null,await n}}else this.postResponse(C(t.requestID,void 0),t=>{e.source.postMessage(t,e.origin)})}}catch(r){if(r instanceof TypeError);else throw r}}postFormattedRequest(e,t,n={}){if(!this._connected)throw new T("Emitter is not connected, use `ChannelEmitter.connect()` first");return this.postRequest(this.createRequestMessage(e,t),void 0,n)}}var Y=Object.defineProperty,B=(e,t,n)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K=(e,t,n)=>(B(e,"symbol"!=typeof t?t+"":t,n),n);let V={requestIDPrefix:"client-"};class z extends G{constructor(e,t,n){var r,i;let a=(null==n?void 0:n.debug)||/[?&]debug=true/i.test(decodeURIComponent(window.location.search));super(e,{[o.SetActiveSlice]:(e,t)=>t.success(),[o.SetSliceZoneSize]:(e,t)=>t.success(),...t},{...V,...n,debug:a}),K(this,f,async()=>await this.postFormattedRequest(u.Ping)),K(this,l,async e=>await this.postFormattedRequest(u.SetSliceZone,e)),K(this,p,async e=>await this.postFormattedRequest(u.ScrollToSlice,e)),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=u.Ping,l=u.SetSliceZone,p=u.ScrollToSlice,o.SetActiveSlice,o.SetSliceZoneSize},98227:function(e,t,n){n.r(t),n.d(t,{__assign:function(){return o},__asyncDelegator:function(){return w},__asyncGenerator:function(){return R},__asyncValues:function(){return O},__await:function(){return I},__awaiter:function(){return m},__classPrivateFieldGet:function(){return P},__classPrivateFieldIn:function(){return W},__classPrivateFieldSet:function(){return k},__createBinding:function(){return v},__decorate:function(){return a},__esDecorate:function(){return f},__exportStar:function(){return y},__extends:function(){return i},__generator:function(){return h},__importDefault:function(){return E},__importStar:function(){return M},__makeTemplateObject:function(){return x},__metadata:function(){return s},__param:function(){return c},__propKey:function(){return p},__read:function(){return _},__rest:function(){return u},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return b},__spreadArray:function(){return T},__spreadArrays:function(){return S},__values:function(){return g}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){var i,o=arguments.length,u=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(u=(o<3?i(u):o>3?i(t,n,u):i(t,n))||u);return o>3&&u&&Object.defineProperty(t,n,u),u}function c(e,t){return function(n,r){t(n,r,e)}}function f(e,t,n,r,i,o){function u(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,c=r.kind,f="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?r.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,s=n.length-1;s>=0;s--){var m={};for(var h in r)m[h]="access"===h?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");o.push(u(e||null))};var v=(0,n[s])("accessor"===c?{get:p.get,set:p.set}:p[f],m);if("accessor"===c){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(a=u(v.get))&&(p.get=a),(a=u(v.set))&&(p.set=a),(a=u(v.init))&&i.unshift(a)}else(a=u(v))&&("field"===c?i.unshift(a):p[f]=a)}l&&Object.defineProperty(l,r.name,p),d=!0}function l(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function m(e,t,n,r){return new(n||(n=Promise))(function(i,o){function u(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(u,a)}c((r=r.apply(e,t||[])).next())})}function h(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=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 u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(c){a=[6,c],r=0}finally{n=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(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||v(t,e,n)}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e}function S(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r}function T(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function I(e){return this instanceof I?(this.v=e,this):new I(e)}function R(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})})}function a(e,t){try{var n;n=i[e](t),n.value instanceof I?Promise.resolve(n.value.v).then(c,f):l(o[0][2],n)}catch(r){l(o[0][3],r)}}function c(e){a("next",e)}function f(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:I(e[r](t)),done:!1}:i?i(t):t}:i}}function O(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=g(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function M(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&v(t,e,n);return C(t,e),t}function E(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function k(e,t,n,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?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function W(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}t.default={__extends:i,__assign:o,__rest:u,__decorate:a,__param:c,__metadata:s,__awaiter:m,__generator:h,__createBinding:v,__exportStar:y,__values:g,__read:_,__spread:b,__spreadArrays:S,__spreadArray:T,__await:I,__asyncGenerator:R,__asyncDelegator:w,__asyncValues:O,__makeTemplateObject:x,__importStar:M,__importDefault:E,__classPrivateFieldGet:P,__classPrivateFieldSet:k,__classPrivateFieldIn:W}},19108:function(e){e.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(e){e.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(e){e.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(e){e.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(e){e.exports=JSON.parse('["https://slicemachine.dev","https://prismic.io","http://google.com","http://twitter.com"]')},1710:function(e){e.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"}')}}]);
12
+ */ var r,i,o,u=n(1710);function a(e){if(!Object.prototype.hasOwnProperty.call(c.message,e))throw Error("invalid status code: "+e);return c.message[e]}function c(e){if("number"==typeof e)return a(e);if("string"!=typeof e)throw TypeError("code must be a number or string");var t=parseInt(e,10);return isNaN(t)?function(e){var t=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(c.code,t))throw Error('invalid status message: "'+e+'"');return c.code[t]}(e):a(t)}e.exports=c,c.message=u,c.code=(r=u,i={},Object.keys(r).forEach(function(e){var t=r[e],n=Number(e);i[t.toLowerCase()]=n}),i),c.codes=(o=u,Object.keys(o).map(function(e){return Number(e)})),c.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},c.empty={204:!0,205:!0,304:!0},c.retry={502:!0,503:!0,504:!0}},60130:function(e,t,n){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 o.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return u.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(n(27343)),i=d(n(46076)),o=d(n(85854)),u=d(n(95899)),a=d(n(15384)),c=d(n(25791)),f=d(n(77888)),l=d(n(49926)),p=d(n(9964));function d(e){return e&&e.__esModule?e:{default:e}}},2763:function(e,t){function n(e){return(e+64>>>9<<4)+14+1}function r(e,t){let n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,o,u){var a,c;return r((a=r(r(t,e),r(i,u)))<<o|a>>>32-o,n)}function o(e,t,n,r,o,u,a){return i(t&n|~t&r,e,t,o,u,a)}function u(e,t,n,r,o,u,a){return i(t&r|n&~r,e,t,o,u,a)}function a(e,t,n,r,o,u,a){return i(t^n^r,e,t,o,u,a)}function c(e,t,n,r,o,u,a){return i(n^(t|~r),e,t,o,u,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let i=0;i<t.length;++i)e[i]=t.charCodeAt(i)}return function(e){let t=[],n=32*e.length,r="0123456789abcdef";for(let i=0;i<n;i+=8){let o=e[i>>5]>>>i%32&255,u=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(u)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let i=1732584193,f=-271733879,l=-1732584194,p=271733878;for(let d=0;d<e.length;d+=16){let s=i,m=f,h=l,v=p;i=o(i,f,l,p,e[d],7,-680876936),p=o(p,i,f,l,e[d+1],12,-389564586),l=o(l,p,i,f,e[d+2],17,606105819),f=o(f,l,p,i,e[d+3],22,-1044525330),i=o(i,f,l,p,e[d+4],7,-176418897),p=o(p,i,f,l,e[d+5],12,1200080426),l=o(l,p,i,f,e[d+6],17,-1473231341),f=o(f,l,p,i,e[d+7],22,-45705983),i=o(i,f,l,p,e[d+8],7,1770035416),p=o(p,i,f,l,e[d+9],12,-1958414417),l=o(l,p,i,f,e[d+10],17,-42063),f=o(f,l,p,i,e[d+11],22,-1990404162),i=o(i,f,l,p,e[d+12],7,1804603682),p=o(p,i,f,l,e[d+13],12,-40341101),l=o(l,p,i,f,e[d+14],17,-1502002290),f=o(f,l,p,i,e[d+15],22,1236535329),i=u(i,f,l,p,e[d+1],5,-165796510),p=u(p,i,f,l,e[d+6],9,-1069501632),l=u(l,p,i,f,e[d+11],14,643717713),f=u(f,l,p,i,e[d],20,-373897302),i=u(i,f,l,p,e[d+5],5,-701558691),p=u(p,i,f,l,e[d+10],9,38016083),l=u(l,p,i,f,e[d+15],14,-660478335),f=u(f,l,p,i,e[d+4],20,-405537848),i=u(i,f,l,p,e[d+9],5,568446438),p=u(p,i,f,l,e[d+14],9,-1019803690),l=u(l,p,i,f,e[d+3],14,-187363961),f=u(f,l,p,i,e[d+8],20,1163531501),i=u(i,f,l,p,e[d+13],5,-1444681467),p=u(p,i,f,l,e[d+2],9,-51403784),l=u(l,p,i,f,e[d+7],14,1735328473),f=u(f,l,p,i,e[d+12],20,-1926607734),i=a(i,f,l,p,e[d+5],4,-378558),p=a(p,i,f,l,e[d+8],11,-2022574463),l=a(l,p,i,f,e[d+11],16,1839030562),f=a(f,l,p,i,e[d+14],23,-35309556),i=a(i,f,l,p,e[d+1],4,-1530992060),p=a(p,i,f,l,e[d+4],11,1272893353),l=a(l,p,i,f,e[d+7],16,-155497632),f=a(f,l,p,i,e[d+10],23,-1094730640),i=a(i,f,l,p,e[d+13],4,681279174),p=a(p,i,f,l,e[d],11,-358537222),l=a(l,p,i,f,e[d+3],16,-722521979),f=a(f,l,p,i,e[d+6],23,76029189),i=a(i,f,l,p,e[d+9],4,-640364487),p=a(p,i,f,l,e[d+12],11,-421815835),l=a(l,p,i,f,e[d+15],16,530742520),f=a(f,l,p,i,e[d+2],23,-995338651),i=c(i,f,l,p,e[d],6,-198630844),p=c(p,i,f,l,e[d+7],10,1126891415),l=c(l,p,i,f,e[d+14],15,-1416354905),f=c(f,l,p,i,e[d+5],21,-57434055),i=c(i,f,l,p,e[d+12],6,1700485571),p=c(p,i,f,l,e[d+3],10,-1894986606),l=c(l,p,i,f,e[d+10],15,-1051523),f=c(f,l,p,i,e[d+1],21,-2054922799),i=c(i,f,l,p,e[d+8],6,1873313359),p=c(p,i,f,l,e[d+15],10,-30611744),l=c(l,p,i,f,e[d+6],15,-1560198380),f=c(f,l,p,i,e[d+13],21,1309151649),i=c(i,f,l,p,e[d+4],6,-145523070),p=c(p,i,f,l,e[d+11],10,-1120210379),l=c(l,p,i,f,e[d+2],15,718787259),f=c(f,l,p,i,e[d+9],21,-343485551),i=r(i,s),f=r(f,m),l=r(l,h),p=r(p,v)}return[i,f,l,p]}(function(e){if(0===e.length)return[];let t=8*e.length,r=new Uint32Array(n(t));for(let i=0;i<t;i+=8)r[i>>5]|=(255&e[i/8])<<i%32;return r}(e),8*e.length))};t.default=f},74267:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:n}},15384:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},9964:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(77888),r&&r.__esModule?r:{default:r}),o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");let t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};t.default=o},76678:function(e,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(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&!(n="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 n(r)};let n,r=new Uint8Array(16)},13254:function(e,t){function n(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function r(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){let t=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){let o=unescape(encodeURIComponent(e));e=[];for(let u=0;u<o.length;++u)e.push(o.charCodeAt(u))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let a=e.length/4+2,c=Math.ceil(a/16),f=Array(c);for(let l=0;l<c;++l){let p=new Uint32Array(16);for(let d=0;d<16;++d)p[d]=e[64*l+4*d]<<24|e[64*l+4*d+1]<<16|e[64*l+4*d+2]<<8|e[64*l+4*d+3];f[l]=p}f[c-1][14]=(e.length-1)*8/4294967296,f[c-1][14]=Math.floor(f[c-1][14]),f[c-1][15]=(e.length-1)*8&4294967295;for(let s=0;s<c;++s){let m=new Uint32Array(80);for(let h=0;h<16;++h)m[h]=f[s][h];for(let v=16;v<80;++v)m[v]=r(m[v-3]^m[v-8]^m[v-14]^m[v-16],1);let y=i[0],g=i[1],_=i[2],b=i[3],S=i[4];for(let T=0;T<80;++T){let I=Math.floor(T/20),R=r(y,5)+n(I,g,_,b)+S+t[I]+m[T]>>>0;S=b,b=_,_=r(g,30)>>>0,g=y,y=R}i[0]=i[0]+y>>>0,i[1]=i[1]+g>>>0,i[2]=i[2]+_>>>0,i[3]=i[3]+b>>>0,i[4]=i[4]+S>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]};t.default=i},49926:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var r,i=(r=n(77888),r&&r.__esModule?r:{default:r});let o=[];for(let u=0;u<256;++u)o.push((u+256).toString(16).slice(1));function a(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}var c=function(e,t=0){let n=a(e,t);if(!(0,i.default)(n))throw TypeError("Stringified UUID is invalid");return n};t.default=c},27343:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(41874),r&&r.__esModule?r:{default:r}),o=n(49926);let u,a,c=0,f=0;var l=function(e,t,n){let r=t&&n||0,l=t||Array(16),p=(e=e||{}).node||u,d=void 0!==e.clockseq?e.clockseq:a;if(null==p||null==d){let s=e.random||(e.rng||i.default)();null==p&&(p=u=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==d&&(d=a=(s[6]<<8|s[7])&16383)}let m=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:f+1,v=m-c+(h-f)/1e4;if(v<0&&void 0===e.clockseq&&(d=d+1&16383),(v<0||m>c)&&void 0===e.nsecs&&(h=0),h>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");c=m,f=h,a=d,m+=122192928e5;let y=((268435455&m)*1e4+h)%4294967296;l[r++]=y>>>24&255,l[r++]=y>>>16&255,l[r++]=y>>>8&255,l[r++]=255&y;let g=m/4294967296*1e4&268435455;l[r++]=g>>>8&255,l[r++]=255&g,l[r++]=g>>>24&15|16,l[r++]=g>>>16&255,l[r++]=d>>>8|128,l[r++]=255&d;for(let _=0;_<6;++_)l[r+_]=p[_];return t||(0,o.unsafeStringify)(l)};t.default=l},46076:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(18679)),i=o(n(2763));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v3",48,i.default);t.default=u},18679:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,u,a){var c;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=(0,o.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+e.length);if(f.set(r),f.set(e,r.length),(f=n(f))[6]=15&f[6]|t,f[8]=63&f[8]|128,u){a=a||0;for(let l=0;l<16;++l)u[a+l]=f[l];return u}return(0,i.unsafeStringify)(f)}try{r.name=e}catch(c){}return r.DNS=u,r.URL=a,r};var r,i=n(49926),o=(r=n(9964),r&&r.__esModule?r:{default:r});let u="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=u;let a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a},85854:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(74267)),i=u(n(41874)),o=n(49926);function u(e){return e&&e.__esModule?e:{default:e}}var a=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();e=e||{};let u=e.random||(e.rng||i.default)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){n=n||0;for(let a=0;a<16;++a)t[n+a]=u[a];return t}return(0,o.unsafeStringify)(u)};t.default=a},95899:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(18679)),i=o(n(13254));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v5",80,i.default);t.default=u},77888:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(76678),r&&r.__esModule?r:{default:r}),o=function(e){return"string"==typeof e&&i.default.test(e)};t.default=o},25791:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(77888),r&&r.__esModule?r:{default:r}),o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};t.default=o},87783:function(e,t,n){n.r(t),n.d(t,{__assign:function(){return o},__asyncDelegator:function(){return w},__asyncGenerator:function(){return R},__asyncValues:function(){return O},__await:function(){return I},__awaiter:function(){return m},__classPrivateFieldGet:function(){return P},__classPrivateFieldIn:function(){return F},__classPrivateFieldSet:function(){return k},__createBinding:function(){return v},__decorate:function(){return a},__esDecorate:function(){return f},__exportStar:function(){return y},__extends:function(){return i},__generator:function(){return h},__importDefault:function(){return E},__importStar:function(){return M},__makeTemplateObject:function(){return x},__metadata:function(){return s},__param:function(){return c},__propKey:function(){return p},__read:function(){return _},__rest:function(){return u},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return b},__spreadArray:function(){return T},__spreadArrays:function(){return S},__values:function(){return g}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){var i,o=arguments.length,u=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(u=(o<3?i(u):o>3?i(t,n,u):i(t,n))||u);return o>3&&u&&Object.defineProperty(t,n,u),u}function c(e,t){return function(n,r){t(n,r,e)}}function f(e,t,n,r,i,o){function u(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,c=r.kind,f="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?r.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,s=n.length-1;s>=0;s--){var m={};for(var h in r)m[h]="access"===h?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");o.push(u(e||null))};var v=(0,n[s])("accessor"===c?{get:p.get,set:p.set}:p[f],m);if("accessor"===c){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(a=u(v.get))&&(p.get=a),(a=u(v.set))&&(p.set=a),(a=u(v.init))&&i.unshift(a)}else(a=u(v))&&("field"===c?i.unshift(a):p[f]=a)}l&&Object.defineProperty(l,r.name,p),d=!0}function l(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function m(e,t,n,r){return new(n||(n=Promise))(function(i,o){function u(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(u,a)}c((r=r.apply(e,t||[])).next())})}function h(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=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 u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(c){a=[6,c],r=0}finally{n=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(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||v(t,e,n)}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e}function S(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r}function T(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function I(e){return this instanceof I?(this.v=e,this):new I(e)}function R(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})})}function a(e,t){try{var n;n=i[e](t),n.value instanceof I?Promise.resolve(n.value.v).then(c,f):l(o[0][2],n)}catch(r){l(o[0][3],r)}}function c(e){a("next",e)}function f(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:I(e[r](t)),done:!1}:i?i(t):t}:i}}function O(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=g(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function M(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&v(t,e,n);return C(t,e),t}function E(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function k(e,t,n,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?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function F(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}t.default={__extends:i,__assign:o,__rest:u,__decorate:a,__param:c,__metadata:s,__awaiter:m,__generator:h,__createBinding:v,__exportStar:y,__values:g,__read:_,__spread:b,__spreadArrays:S,__spreadArray:T,__await:I,__asyncGenerator:R,__asyncDelegator:w,__asyncValues:O,__makeTemplateObject:x,__importStar:M,__importDefault:E,__classPrivateFieldGet:P,__classPrivateFieldSet:k,__classPrivateFieldIn:F}},78948:function(e,t,n){n.r(t),n.d(t,{__assign:function(){return o},__asyncDelegator:function(){return w},__asyncGenerator:function(){return R},__asyncValues:function(){return O},__await:function(){return I},__awaiter:function(){return m},__classPrivateFieldGet:function(){return P},__classPrivateFieldIn:function(){return F},__classPrivateFieldSet:function(){return k},__createBinding:function(){return v},__decorate:function(){return a},__esDecorate:function(){return f},__exportStar:function(){return y},__extends:function(){return i},__generator:function(){return h},__importDefault:function(){return E},__importStar:function(){return M},__makeTemplateObject:function(){return x},__metadata:function(){return s},__param:function(){return c},__propKey:function(){return p},__read:function(){return _},__rest:function(){return u},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return b},__spreadArray:function(){return T},__spreadArrays:function(){return S},__values:function(){return g}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){var i,o=arguments.length,u=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(u=(o<3?i(u):o>3?i(t,n,u):i(t,n))||u);return o>3&&u&&Object.defineProperty(t,n,u),u}function c(e,t){return function(n,r){t(n,r,e)}}function f(e,t,n,r,i,o){function u(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,c=r.kind,f="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?r.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,s=n.length-1;s>=0;s--){var m={};for(var h in r)m[h]="access"===h?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");o.push(u(e||null))};var v=(0,n[s])("accessor"===c?{get:p.get,set:p.set}:p[f],m);if("accessor"===c){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(a=u(v.get))&&(p.get=a),(a=u(v.set))&&(p.set=a),(a=u(v.init))&&i.unshift(a)}else(a=u(v))&&("field"===c?i.unshift(a):p[f]=a)}l&&Object.defineProperty(l,r.name,p),d=!0}function l(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function m(e,t,n,r){return new(n||(n=Promise))(function(i,o){function u(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(u,a)}c((r=r.apply(e,t||[])).next())})}function h(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=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 u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(c){a=[6,c],r=0}finally{n=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(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||v(t,e,n)}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e}function S(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r}function T(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function I(e){return this instanceof I?(this.v=e,this):new I(e)}function R(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})})}function a(e,t){try{var n;n=i[e](t),n.value instanceof I?Promise.resolve(n.value.v).then(c,f):l(o[0][2],n)}catch(r){l(o[0][3],r)}}function c(e){a("next",e)}function f(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:I(e[r](t)),done:!1}:i?i(t):t}:i}}function O(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=g(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function M(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&v(t,e,n);return C(t,e),t}function E(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function k(e,t,n,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?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function F(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}t.default={__extends:i,__assign:o,__rest:u,__decorate:a,__param:c,__metadata:s,__awaiter:m,__generator:h,__createBinding:v,__exportStar:y,__values:g,__read:_,__spread:b,__spreadArrays:S,__spreadArray:T,__await:I,__asyncGenerator:R,__asyncDelegator:w,__asyncValues:O,__makeTemplateObject:x,__importStar:M,__importDefault:E,__classPrivateFieldGet:P,__classPrivateFieldSet:k,__classPrivateFieldIn:F}},16:function(e,t,n){n.d(t,{SH:function(){return z}}),(r=o||(o={})).SetActiveSlice="setActiveSlice",r.SetSliceZoneSize="setSliceZoneSize",(i=u||(u={})).Ping="ping",i.SetSliceZone="setSliceZone",i.ScrollToSlice="scrollToSlice";var r,i,o,u,a,c,f,l,p,d,s,m=n(80734);(d=a||(a={})).Connect="connect",(s=c||(c={})).Ready="ready";var h=Object.defineProperty,v=(e,t,n)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t,n)=>(v(e,"symbol"!=typeof t?t+"":t,n),n);class g extends Error{constructor(e){super(e.msg),y(this,"response"),this.response=e}}class _ extends Error{constructor(){super("Connection timed out")}}class b extends Error{constructor(e){super("Too many concurrent requests"),y(this,"request"),this.request=e}}class S extends Error{constructor(e){super(`Request \`${e.requestID}\` timed out`),y(this,"request"),this.request=e}}class T extends Error{}class I extends Error{constructor(){super("Port is not set")}}class R extends Error{constructor(){super("Channel is not set")}}let w=0,O=(e,t,n="")=>({requestID:`${n}${w++}`,type:e,data:t}),x=(e,t,n=200)=>{var r;if(n>=400)throw TypeError(`Invalid success status code, expected status to be within \`[100;400[\`, got \`${n}\``);return{requestID:e,status:n,msg:(null==(r=m.message[n])?void 0:r.replace(/\.$/,"").toLowerCase())??"",data:t}},C=(e,t,n=400)=>{var r;if(n<400)throw TypeError(`Invalid error status code, expected status to be within \`[500;600[\`, got \`${n}\``);return{requestID:e,status:n,msg:(null==(r=m.message[n])?void 0:r.replace(/\.$/,"").toLowerCase())??"",error:t}},M=e=>{if("object"!=typeof e||null===e)throw TypeError(`Invalid message received, expected message to be of type \`object\`, got \`${typeof e}\``);if(Object.keys(e).every(e=>["requestID","type","data","status","msg","error"].includes(e))){if("string"!=typeof e.requestID)throw TypeError(`Invalid message received, expected \`message.requestID\` to be of type \`string\`, got \`${typeof e.id}\``)}else throw TypeError(`Invalid message received: ${JSON.stringify(e)}`);return e},E=e=>"type"in e,P=e=>!("type"in e),k=e=>P(e)&&!("error"in e);var F=Object.defineProperty,W=(e,t,n)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D=(e,t,n)=>(W(e,"symbol"!=typeof t?t+"":t,n),n);let N={debug:!1,maximumRequestConcurrency:20,defaultTimeout:5e3,requestIDPrefix:"channel-"};class L{constructor(e,t){D(this,"requestHandlers"),D(this,"options"),D(this,"_port",null),D(this,"_pendingRequests",new Map),this.requestHandlers=e,this.options={...N,...t}}get port(){if(!this._port)throw new I;return this._port}set port(e){this._port&&(this._port.onmessage=null),this._port=e,this._port&&(this._port.onmessage=this.onMessage.bind(this))}createRequestMessage(e,t){return O(e,t,this.options.requestIDPrefix)}async onMessage(e){this.options.debug&&console.debug(e.data);try{let t=M(e.data);if(E(t)){if(this.requestHandlers[t.type])try{let n=await this.requestHandlers[t.type](t,{success:x.bind(this,t.requestID),error:C.bind(this,t.requestID)});this.postResponse(n)}catch(r){this.postResponse(C(t.requestID,r,500))}else this.postResponse(C(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(i){if(i instanceof TypeError)console.warn(i.message);else throw i}}postRequest(e,t=e=>this.port.postMessage(e),n={}){if(this.options.debug&&console.debug(e),this._pendingRequests.size>=this.options.maximumRequestConcurrency)throw new b(e);return new Promise((r,i)=>{let o=setTimeout(()=>{this._pendingRequests.has(e.requestID)&&this._pendingRequests.delete(e.requestID),i(new S(e))},n.timeout||this.options.defaultTimeout);this._pendingRequests.set(e.requestID,e=>{clearTimeout(o),k(e)?r(e):i(new g(e))}),t(e)})}postResponse(e,t=e=>this.port.postMessage(e)){return this.options.debug&&console.debug(e),t(e),e}}var U=Object.defineProperty,A=(e,t,n)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j=(e,t,n)=>(A(e,"symbol"!=typeof t?t+"":t,n),n);let q={connectTimeout:2e4,requestIDPrefix:"emitter-"};class G extends L{constructor(e,t,n){super(t,{...q,...n}),j(this,"_target"),j(this,"_channel",null),j(this,"_receiverReady",""),j(this,"_receiverReadyCallback",null),j(this,"_connected",!1),this._target=e,window.addEventListener("message",e=>{this._onPublicMessage(e)})}get channel(){if(!this._channel)throw new R;return this._channel}set channel(e){this._channel=e,this._channel?this.port=this._channel.port1:this.port=null}get connected(){return this._connected}connect(e={},t=!1){return this.disconnect(),t&&(this._receiverReady=""),new Promise((t,n)=>{this._target.addEventListener("load",()=>{if(!this._target.contentWindow)return n(Error("Target window is not available"));let r=setTimeout(()=>{n(new _)},this.options.connectTimeout),i=async()=>{clearTimeout(r),this.channel=new MessageChannel;let n=this.createRequestMessage(a.Connect,e),i=await this.postRequest(n,e=>{this._target.contentWindow.postMessage(e,"*",[this.channel.port2])});this.postResponse(x(this._receiverReady,void 0),e=>{this._target.contentWindow.postMessage(e,"*")}),this._connected=!0,t(i)};this._receiverReady?i():this._receiverReadyCallback=i},{once:!0})})}disconnect(){this._connected=!1,this.channel=null}async _onPublicMessage(e){if(e.source===this._target.contentWindow)try{let t=M(e.data);if(E(t)){if(this.options.debug&&console.debug(e.data),t.type===c.Ready){if(this._receiverReady=t.requestID,this._receiverReadyCallback){let n=this._receiverReadyCallback();this._receiverReadyCallback=null,await n}}else this.postResponse(C(t.requestID,void 0),t=>{e.source.postMessage(t,e.origin)})}}catch(r){if(r instanceof TypeError);else throw r}}postFormattedRequest(e,t,n={}){if(!this._connected)throw new T("Emitter is not connected, use `ChannelEmitter.connect()` first");return this.postRequest(this.createRequestMessage(e,t),void 0,n)}}var Y=Object.defineProperty,B=(e,t,n)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K=(e,t,n)=>(B(e,"symbol"!=typeof t?t+"":t,n),n);let V={requestIDPrefix:"client-"};class z extends G{constructor(e,t,n){var r,i;let a=(null==n?void 0:n.debug)||/[?&]debug=true/i.test(decodeURIComponent(window.location.search));super(e,{[o.SetActiveSlice]:(e,t)=>t.success(),[o.SetSliceZoneSize]:(e,t)=>t.success(),...t},{...V,...n,debug:a}),K(this,f,async()=>await this.postFormattedRequest(u.Ping)),K(this,l,async e=>await this.postFormattedRequest(u.SetSliceZone,e)),K(this,p,async e=>await this.postFormattedRequest(u.ScrollToSlice,e)),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=u.Ping,l=u.SetSliceZone,p=u.ScrollToSlice,o.SetActiveSlice,o.SetSliceZoneSize},98227:function(e,t,n){n.r(t),n.d(t,{__assign:function(){return o},__asyncDelegator:function(){return w},__asyncGenerator:function(){return R},__asyncValues:function(){return O},__await:function(){return I},__awaiter:function(){return m},__classPrivateFieldGet:function(){return P},__classPrivateFieldIn:function(){return F},__classPrivateFieldSet:function(){return k},__createBinding:function(){return v},__decorate:function(){return a},__esDecorate:function(){return f},__exportStar:function(){return y},__extends:function(){return i},__generator:function(){return h},__importDefault:function(){return E},__importStar:function(){return M},__makeTemplateObject:function(){return x},__metadata:function(){return s},__param:function(){return c},__propKey:function(){return p},__read:function(){return _},__rest:function(){return u},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return b},__spreadArray:function(){return T},__spreadArrays:function(){return S},__values:function(){return g}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){var i,o=arguments.length,u=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(u=(o<3?i(u):o>3?i(t,n,u):i(t,n))||u);return o>3&&u&&Object.defineProperty(t,n,u),u}function c(e,t){return function(n,r){t(n,r,e)}}function f(e,t,n,r,i,o){function u(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,c=r.kind,f="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?r.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,s=n.length-1;s>=0;s--){var m={};for(var h in r)m[h]="access"===h?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");o.push(u(e||null))};var v=(0,n[s])("accessor"===c?{get:p.get,set:p.set}:p[f],m);if("accessor"===c){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(a=u(v.get))&&(p.get=a),(a=u(v.set))&&(p.set=a),(a=u(v.init))&&i.unshift(a)}else(a=u(v))&&("field"===c?i.unshift(a):p[f]=a)}l&&Object.defineProperty(l,r.name,p),d=!0}function l(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function m(e,t,n,r){return new(n||(n=Promise))(function(i,o){function u(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(u,a)}c((r=r.apply(e,t||[])).next())})}function h(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=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 u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(c){a=[6,c],r=0}finally{n=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(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||v(t,e,n)}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e}function S(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r}function T(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function I(e){return this instanceof I?(this.v=e,this):new I(e)}function R(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})})}function a(e,t){try{var n;n=i[e](t),n.value instanceof I?Promise.resolve(n.value.v).then(c,f):l(o[0][2],n)}catch(r){l(o[0][3],r)}}function c(e){a("next",e)}function f(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:I(e[r](t)),done:!1}:i?i(t):t}:i}}function O(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=g(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function M(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&v(t,e,n);return C(t,e),t}function E(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function k(e,t,n,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?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function F(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}t.default={__extends:i,__assign:o,__rest:u,__decorate:a,__param:c,__metadata:s,__awaiter:m,__generator:h,__createBinding:v,__exportStar:y,__values:g,__read:_,__spread:b,__spreadArrays:S,__spreadArray:T,__await:I,__asyncGenerator:R,__asyncDelegator:w,__asyncValues:O,__makeTemplateObject:x,__importStar:M,__importDefault:E,__classPrivateFieldGet:P,__classPrivateFieldSet:k,__classPrivateFieldIn:F}},19108:function(e){e.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(e){e.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(e){e.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(e){e.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(e){e.exports=JSON.parse('["https://slicemachine.dev","https://prismic.io","http://google.com","http://twitter.com"]')},1710:function(e){e.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"}')}}]);